mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-09 04:02:35 +00:00
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:
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user