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.
This commit is contained in:
Yichen Jiang
2026-08-31 19:46:55 +08:00
committed by imccyu
parent b7053eba79
commit e71db15d1a
2 changed files with 5 additions and 1 deletions
@@ -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<string>, limit: number): string {
let text = ''
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()}`
return unread ? `${normalized}` : normalized
}
/* jscpd:ignore-end */
function promptText(node: ChatNode): string {
if (node.kind !== 'user') return ''
@@ -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"
},