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" },