From e71db15d1afcf694b11abece0cba0f3fd5eebb7e Mon Sep 17 00:00:00 2001 From: Yichen Jiang Date: Mon, 31 Aug 2026 01:07:42 +0800 Subject: [PATCH] chore(release): align session-turn-outline with root 0.1.2-alpha.2, mark mirrored preview clone The dsh 0.1.2-alpha.2 release bumped every workspace after this branch forked, so the new package failed the workspace version constraint in the merge tree. The bounded preview() also grew identical enough to its deliberate host/client mirror to trip clone detection; the client copy now carries a jscpd ignore region naming the wire-boundary rationale. --- .../ui-chat/src/client/conversation-nodes/turn-navigation.ts | 4 ++++ packages/session/session-turn-outline/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/client/ui-chat/src/client/conversation-nodes/turn-navigation.ts b/packages/client/ui-chat/src/client/conversation-nodes/turn-navigation.ts index 8687c7afa4..331840e80c 100644 --- a/packages/client/ui-chat/src/client/conversation-nodes/turn-navigation.ts +++ b/packages/client/ui-chat/src/client/conversation-nodes/turn-navigation.ts @@ -12,6 +12,9 @@ const PROMPT_PREVIEW_LIMIT = 50 const RESPONSE_PREVIEW_LIMIT = 120 /** Join rendered text, collapse whitespace, and cap at `limit` with a trailing ellipsis when clipped. */ +// Deliberate mirror of the turnOutline projection's preview(): the wire +// boundary forbids sharing code with the host package. +/* jscpd:ignore-start */ function preview(parts: Iterable, limit: number): string { let text = '' let unread = false @@ -35,6 +38,7 @@ function preview(parts: Iterable, limit: number): string { if (normalized.length > limit - 1) return `${normalized.slice(0, limit - 1).trimEnd()}…` return unread ? `${normalized}…` : normalized } +/* jscpd:ignore-end */ function promptText(node: ChatNode): string { if (node.kind !== 'user') return '' diff --git a/packages/session/session-turn-outline/package.json b/packages/session/session-turn-outline/package.json index 7c12ba5162..c1be737fc0 100644 --- a/packages/session/session-turn-outline/package.json +++ b/packages/session/session-turn-outline/package.json @@ -1,7 +1,7 @@ { "name": "@deepseek-ai/dsh-session-turn-outline", "description": "Whole-log turn outline projection (turnOutline) for the DeepSeek Harness", - "version": "0.1.2-alpha.1", + "version": "0.1.2-alpha.2", "publishConfig": { "access": "public" },