Browse Source

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.
Yichen Jiang 1 month ago
parent
commit
e71db15d1a

+ 4 - 0
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
 const RESPONSE_PREVIEW_LIMIT = 120
 
 
 /** Join rendered text, collapse whitespace, and cap at `limit` with a trailing ellipsis when clipped. */
 /** 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<string>, limit: number): string {
 function preview(parts: Iterable<string>, limit: number): string {
   let text = ''
   let text = ''
   let unread = false
   let unread = false
@@ -35,6 +38,7 @@ function preview(parts: Iterable<string>, limit: number): string {
   if (normalized.length > limit - 1) return `${normalized.slice(0, limit - 1).trimEnd()}…`
   if (normalized.length > limit - 1) return `${normalized.slice(0, limit - 1).trimEnd()}…`
   return unread ? `${normalized}…` : normalized
   return unread ? `${normalized}…` : normalized
 }
 }
+/* jscpd:ignore-end */
 
 
 function promptText(node: ChatNode): string {
 function promptText(node: ChatNode): string {
   if (node.kind !== 'user') return ''
   if (node.kind !== 'user') return ''

+ 1 - 1
packages/session/session-turn-outline/package.json

@@ -1,7 +1,7 @@
 {
 {
   "name": "@deepseek-ai/dsh-session-turn-outline",
   "name": "@deepseek-ai/dsh-session-turn-outline",
   "description": "Whole-log turn outline projection (turnOutline) for the DeepSeek Harness",
   "description": "Whole-log turn outline projection (turnOutline) for the DeepSeek Harness",
-  "version": "0.1.2-alpha.1",
+  "version": "0.1.2-alpha.2",
   "publishConfig": {
   "publishConfig": {
     "access": "public"
     "access": "public"
   },
   },