@deepseek-harness-tui/dsh-tui 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -57
- package/cordis.patch.yml +5 -3
- package/cordis.yml +3 -2
- package/guide/dsh-tui-guide/configuration.en.md +1 -1
- package/guide/dsh-tui-guide/configuration.md +1 -1
- package/guide/dsh-tui-guide/getting-started.en.md +2 -2
- package/guide/dsh-tui-guide/getting-started.md +2 -2
- package/guide/dsh-tui-guide/user-guide.en.md +7 -2
- package/guide/dsh-tui-guide/user-guide.md +7 -2
- package/lib/settings.json +24 -8
- package/lib/types/adapter/ports/channel-view.d.ts +39 -3
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/agent/events.d.ts +3 -1
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/backends/claude/tools.d.ts.map +1 -1
- package/lib/types/backends/claude/tools.js +8 -3
- package/lib/types/backends/codex/translate/presentation.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/presentation.js +5 -2
- package/lib/types/channel/interaction.d.ts.map +1 -1
- package/lib/types/channel/interaction.js +1 -0
- package/lib/types/channel/permissions.d.ts +15 -0
- package/lib/types/channel/permissions.d.ts.map +1 -1
- package/lib/types/channel/permissions.js +28 -0
- package/lib/types/channel/projection.d.ts.map +1 -1
- package/lib/types/channel/projection.js +11 -1
- package/lib/types/channel/questions.d.ts +26 -0
- package/lib/types/channel/questions.d.ts.map +1 -1
- package/lib/types/channel/questions.js +43 -0
- package/lib/types/commands.js +1 -1
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +3 -3
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +3 -2
- package/lib/types/components/StarPrompt.d.ts +5 -3
- package/lib/types/components/StarPrompt.d.ts.map +1 -1
- package/lib/types/components/StarPrompt.js +56 -6
- package/lib/types/components/SubagentCard.d.ts.map +1 -1
- package/lib/types/components/SubagentCard.js +1 -1
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +3 -2
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +121 -23
- package/lib/types/components/teamRoster.d.ts +6 -3
- package/lib/types/components/teamRoster.d.ts.map +1 -1
- package/lib/types/dsh-adapter/approvals.d.ts +19 -0
- package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
- package/lib/types/dsh-adapter/approvals.js +17 -1
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +15 -3
- package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/extensions.js +7 -4
- package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/local-actions.js +7 -3
- package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/projection-helpers.js +4 -2
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +179 -33
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +55 -4
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-projection.js +80 -16
- package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-transcript.js +6 -5
- package/lib/types/dsh-adapter/channel/task-completion.js +2 -10
- package/lib/types/dsh-adapter/compat/compaction-previews.d.ts +11 -0
- package/lib/types/dsh-adapter/compat/compaction-previews.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/compaction-previews.js +38 -0
- package/lib/types/dsh-adapter/compat/messages.d.ts +1 -1
- package/lib/types/dsh-adapter/compat/messages.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/messages.js +2 -2
- package/lib/types/dsh-adapter/contract.d.ts +7 -4
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +8 -4
- package/lib/types/dsh-adapter/experimental-bundles.d.ts +5 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.js +0 -2
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.js +2 -2
- package/lib/types/dsh-adapter/host-dsh.d.ts +2 -0
- package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-dsh.js +3 -0
- package/lib/types/dsh-adapter/index.d.ts +9 -1
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +5 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.d.ts +73 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.d.ts.map +1 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.js +250 -0
- package/lib/types/dsh-adapter/oauth/bonus.d.ts +34 -9
- package/lib/types/dsh-adapter/oauth/bonus.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/bonus.js +47 -5
- package/lib/types/dsh-adapter/oauth/deepseek.d.ts +7 -2
- package/lib/types/dsh-adapter/oauth/deepseek.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/deepseek.js +6 -1
- package/lib/types/dsh-adapter/oauth/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/index.js +44 -0
- package/lib/types/dsh-adapter/oauth/service.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/service.js +5 -6
- package/lib/types/dsh-adapter/plugin-manage.d.ts +6 -4
- package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-manage.js +3 -2
- package/lib/types/dsh-adapter/plugin.d.ts +237 -6
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +608 -23
- package/lib/types/dsh-adapter/session-projection-store.d.ts +1 -1
- package/lib/types/dsh-adapter/session-projection-store.d.ts.map +1 -1
- package/lib/types/dsh-adapter/session-projection-store.js +30 -23
- package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessionTree.js +4 -1
- package/lib/types/dsh-adapter/subagents.d.ts +1 -0
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
- package/lib/types/dsh-adapter/subagents.js +10 -2
- package/lib/types/dsh-adapter/team-mode.d.ts +29 -17
- package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-mode.js +138 -17
- package/lib/types/dsh-adapter/team-roster.d.ts +53 -18
- package/lib/types/dsh-adapter/team-roster.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-roster.js +206 -39
- package/lib/types/dsh-adapter/team-tools.d.ts +25 -12
- package/lib/types/dsh-adapter/team-tools.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-tools.js +81 -26
- package/lib/types/i18n.d.ts +65 -9
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +29 -8
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/ink/dom.js +13 -3
- package/lib/types/ink/flush-tick.d.ts +6 -0
- package/lib/types/ink/flush-tick.d.ts.map +1 -1
- package/lib/types/ink/flush-tick.js +31 -0
- package/lib/types/ink/hooks/use-terminal-title.d.ts +15 -0
- package/lib/types/ink/hooks/use-terminal-title.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-terminal-title.js +23 -3
- package/lib/types/ink/ink.js +2 -2
- package/lib/types/ink/jumpback-state.d.ts +33 -0
- package/lib/types/ink/jumpback-state.d.ts.map +1 -0
- package/lib/types/ink/jumpback-state.js +51 -0
- package/lib/types/ink/jumpback.d.ts +78 -0
- package/lib/types/ink/jumpback.d.ts.map +1 -0
- package/lib/types/ink/jumpback.js +515 -0
- package/lib/types/ink/log-update.js +37 -14
- package/lib/types/ink/notify-helper/activate.cs +836 -0
- package/lib/types/ink/notify-helper/compile.d.ts +30 -0
- package/lib/types/ink/notify-helper/compile.d.ts.map +1 -0
- package/lib/types/ink/notify-helper/compile.js +235 -0
- package/lib/types/ink/terminal-notification-windows.d.ts +8 -4
- package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification-windows.js +14 -21
- package/lib/types/ink/terminal-notification.d.ts +31 -2
- package/lib/types/ink/terminal-notification.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification.js +51 -0
- package/lib/types/ink/terminal.d.ts +2 -1
- package/lib/types/ink/terminal.d.ts.map +1 -1
- package/lib/types/ink/terminal.js +9 -4
- package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
- package/lib/types/screens/AgentTranscriptScene.js +1 -1
- package/lib/types/screens/Chat.d.ts +4 -3
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +38 -9
- package/lib/types/settings/definitions.d.ts +12 -0
- package/lib/types/settings/definitions.d.ts.map +1 -1
- package/lib/types/settings/definitions.js +15 -7
- package/package.json +112 -112
- package/presets/liangshen/agent.cordis.yml +4 -0
- package/tui-profile/feed/README.md +1 -1
- package/tui-profile/feed/first-party.json +1 -1
|
@@ -17,6 +17,36 @@ function relayTextOf(source, content) {
|
|
|
17
17
|
* consuming a later delegation's title without retaining unbounded text.
|
|
18
18
|
*/
|
|
19
19
|
const MAX_PENDING_TASK_DESCRIPTIONS = 32;
|
|
20
|
+
/**
|
|
21
|
+
* Read one parent's direct children through whichever roster method the host
|
|
22
|
+
* service serves (shape probe, not version gate). Rejects when neither the
|
|
23
|
+
* legacy `listChildren` nor the rc.2 `listDescendants` exists, so a missing
|
|
24
|
+
* service is never mistaken for an empty roster.
|
|
25
|
+
*/
|
|
26
|
+
export async function listDirectChildren(service, parentSessionId, signal) {
|
|
27
|
+
if (service?.listChildren !== undefined) {
|
|
28
|
+
const rows = await service.listChildren(parentSessionId, signal);
|
|
29
|
+
return rows.map(row => ({
|
|
30
|
+
id: row.id,
|
|
31
|
+
mode: row.mode,
|
|
32
|
+
...(row.label === undefined ? {} : { label: row.label }),
|
|
33
|
+
...(row.name === undefined ? {} : { name: row.name }),
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
if (service?.listDescendants !== undefined) {
|
|
37
|
+
const rows = await service.listDescendants(parentSessionId, signal);
|
|
38
|
+
return rows.flatMap(row => row.kind !== 'child' || row.parentId !== parentSessionId
|
|
39
|
+
? []
|
|
40
|
+
: [{
|
|
41
|
+
id: row.id,
|
|
42
|
+
mode: row.mode ?? 'unknown',
|
|
43
|
+
...(row.label === undefined ? {} : { label: row.label }),
|
|
44
|
+
...((row.path ?? row.name) === undefined ? {} : { name: row.path ?? row.name }),
|
|
45
|
+
...(row.activity === undefined ? {} : { activity: row.activity }),
|
|
46
|
+
}]);
|
|
47
|
+
}
|
|
48
|
+
throw new Error('dsh-tui: the subagents continuation service is unavailable');
|
|
49
|
+
}
|
|
20
50
|
/**
|
|
21
51
|
* Keep each parked parent's reducer alive, including session links and the
|
|
22
52
|
* stream attempt/settlement cursor. A display snapshot cannot resume either
|
|
@@ -32,7 +62,31 @@ export function createSubagentProjection(getState, deps) {
|
|
|
32
62
|
let active = make();
|
|
33
63
|
let activeParent = deps.agent();
|
|
34
64
|
let restored = false;
|
|
35
|
-
const childProjection = (id, parent) => {
|
|
65
|
+
const childProjection = (id, parent, parentSessionId) => {
|
|
66
|
+
// rc.2 names the direct creator in the payload but dispatches on its
|
|
67
|
+
// exact live tree root. A durable id alone cannot authenticate a carrier
|
|
68
|
+
// from an older activation of that tree.
|
|
69
|
+
if (parentSessionId !== undefined) {
|
|
70
|
+
const service = deps.subagents();
|
|
71
|
+
const matches = (agent) => {
|
|
72
|
+
if (String(agent.session.id) !== parentSessionId || parent == null)
|
|
73
|
+
return false;
|
|
74
|
+
if (service?.rootOf === undefined)
|
|
75
|
+
return parent === agent;
|
|
76
|
+
try {
|
|
77
|
+
return service.rootOf(agent) === parent;
|
|
78
|
+
}
|
|
79
|
+
catch {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
if (matches(activeParent))
|
|
84
|
+
return active;
|
|
85
|
+
for (const [agent, projection] of parked)
|
|
86
|
+
if (matches(agent))
|
|
87
|
+
return projection;
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
36
90
|
// A lifecycle carrier names the DIRECT delegating parent. Its visibility
|
|
37
91
|
// filter also admits ancestors, which is not evidence of ownership.
|
|
38
92
|
if (parent != null)
|
|
@@ -93,27 +147,32 @@ export function createSubagentProjection(getState, deps) {
|
|
|
93
147
|
};
|
|
94
148
|
/**
|
|
95
149
|
* The addressable roster: the parent's durable direct-child catalog,
|
|
96
|
-
* filtered to continuable children only. One-shot, unknown-mode
|
|
97
|
-
* diagnostic rows are not addressable (fail closed), and a missing
|
|
150
|
+
* filtered to continuable children only. One-shot, external, unknown-mode
|
|
151
|
+
* and diagnostic rows are not addressable (fail closed), and a missing
|
|
98
152
|
* continuation service rejects instead of answering an empty roster.
|
|
153
|
+
*
|
|
154
|
+
* The roster read is probed by shape, not version: 0.2.2-rc.2 removed the
|
|
155
|
+
* service's `listChildren` and kept only the recursive `listDescendants`
|
|
156
|
+
* (direct children = depth 1). Older hosts serve `listChildren` directly.
|
|
99
157
|
*/
|
|
100
158
|
const listTargets = async () => {
|
|
101
159
|
const service = deps.subagents();
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return entries
|
|
106
|
-
.filter(entry => entry.mode === 'continuable')
|
|
107
|
-
.map(entry => {
|
|
108
|
-
const status = active.store.get(entry.id)?.status;
|
|
160
|
+
const parentSessionId = String(deps.agent().session.id);
|
|
161
|
+
const identityOf = (id, info) => {
|
|
162
|
+
const status = active.store.get(id)?.status;
|
|
109
163
|
return {
|
|
110
|
-
agentId:
|
|
111
|
-
sessionId:
|
|
112
|
-
...(
|
|
164
|
+
agentId: id,
|
|
165
|
+
sessionId: id,
|
|
166
|
+
...(info.name === undefined ? {} : { name: info.name }),
|
|
167
|
+
...(info.label === undefined ? {} : { label: info.label }),
|
|
113
168
|
mode: 'continuable',
|
|
114
169
|
...(status === undefined ? {} : { status }),
|
|
115
170
|
};
|
|
116
|
-
}
|
|
171
|
+
};
|
|
172
|
+
const children = await listDirectChildren(service, parentSessionId);
|
|
173
|
+
return children
|
|
174
|
+
.filter(child => child.mode === 'continuable')
|
|
175
|
+
.map(child => identityOf(child.id, { name: child.name, label: child.label }));
|
|
117
176
|
};
|
|
118
177
|
return {
|
|
119
178
|
get store() { return active.store; },
|
|
@@ -156,8 +215,8 @@ export function createSubagentProjection(getState, deps) {
|
|
|
156
215
|
return true;
|
|
157
216
|
return active.onStreamFrame(agent, frame);
|
|
158
217
|
},
|
|
159
|
-
onStart(info, parent) { childProjection(info.id, parent)?.onStart(info); },
|
|
160
|
-
onEnd(info, parent) { childProjection(info.id, parent)?.onEnd(info); },
|
|
218
|
+
onStart(info, parent) { childProjection(info.id, parent, info.parentSessionId)?.onStart(info); },
|
|
219
|
+
onEnd(info, parent) { childProjection(info.id, parent, info.parentSessionId)?.onEnd(info); },
|
|
161
220
|
onParentEvent: (event) => active.onParentEvent(event),
|
|
162
221
|
bootstrapFromLog(events) {
|
|
163
222
|
// Live parked reducers already consumed this log. Re-folding historical
|
|
@@ -223,6 +282,7 @@ function createSessionSubagentProjection(getState, deps) {
|
|
|
223
282
|
}
|
|
224
283
|
const view = {
|
|
225
284
|
agentId: sub.agentId, runId: sub.runId, description: sub.description,
|
|
285
|
+
...(sub.name === undefined ? {} : { name: sub.name }),
|
|
226
286
|
...(sub.mode === undefined ? {} : { mode: sub.mode }),
|
|
227
287
|
provider: sub.provider, model: sub.model || 'default', effort: sub.effort,
|
|
228
288
|
status: sub.status, startedAt: sub.startedAt, completedAt: sub.completedAt,
|
|
@@ -380,6 +440,7 @@ function createSessionSubagentProjection(getState, deps) {
|
|
|
380
440
|
const running = child?.status === 'running';
|
|
381
441
|
store.onDiscovered(childId, {
|
|
382
442
|
label: info.label,
|
|
443
|
+
name: info.name,
|
|
383
444
|
childCreatedAt: info.childCreatedAt,
|
|
384
445
|
live: running,
|
|
385
446
|
provider: info.provider ?? child?.options?.provider,
|
|
@@ -448,8 +509,11 @@ function createSessionSubagentProjection(getState, deps) {
|
|
|
448
509
|
if (childId === undefined)
|
|
449
510
|
return;
|
|
450
511
|
const rawMode = typeof data.mode === 'string' ? data.mode : undefined;
|
|
512
|
+
const rawName = typeof data.name === 'string' && data.name !== '' ? data.name : undefined;
|
|
451
513
|
discover(childId, {
|
|
452
514
|
label: typeof data.label === 'string' ? data.label : undefined,
|
|
515
|
+
// v3 adds the sibling-unique (path) name; older payloads carry none.
|
|
516
|
+
name: rawName,
|
|
453
517
|
childCreatedAt: typeof data.childCreatedAt === 'number' ? data.childCreatedAt : eventTime(event),
|
|
454
518
|
// v0 rows carry no mode; v1 also retains 'unknown' children.
|
|
455
519
|
...(rawMode === 'one-shot' || rawMode === 'continuable' || rawMode === 'unknown' ? { mode: rawMode } : {}),
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
import { type SessionEvent } from '@deepseek-ai/dsh-session';
|
|
32
32
|
import type { SubagentTranscriptPage, SubagentTranscriptWindow } from '../../agent/capabilities.js';
|
|
33
33
|
import type { DshTranslator } from '../backend/translate.js';
|
|
34
|
-
import type
|
|
34
|
+
import { type SubagentsServiceView } from './subagent-projection.js';
|
|
35
35
|
/**
|
|
36
36
|
* One page window in source events. Claude pages by 400 SDK messages
|
|
37
37
|
* (`SUBAGENT_TRANSCRIPT_PAGE`) and the shared "load older" chunk is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subagent-transcript.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/subagent-transcript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACpF,OAAO,KAAK,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAGnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"subagent-transcript.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/channel/subagent-transcript.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACpF,OAAO,KAAK,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAGnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D,OAAO,EAAsB,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAExF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,MAAM,CAAA;AAc/C,8EAA8E;AAC9E,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B;8DAC0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AAED,8EAA8E;AAC9E,MAAM,WAAW,sBAAsB;IACrC,qEAAqE;IACrE,IAAI,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,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G,SAAS,CAAA;IAC7C,0EAA0E;IAC1E,WAAW,IAAI,sBAAsB,GAAG,SAAS,CAAA;IACjD,wEAAwE;IACxE,aAAa,IAAI,kBAAkB,GAAG,SAAS,CAAA;IAC/C,qEAAqE;IACrE,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG;QAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,SAAS,CAAA;IACnE;;iCAE6B;IAC7B,gBAAgB,IAAI,aAAa,CAAA;IACjC,oEAAoE;IACpE,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAA;CACnC;AAqDD;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,wBAAwB,GAChC,OAAO,CAAC,sBAAsB,GAAG,IAAI,CAAC,CA6IxC"}
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
import { SESSION_FORMAT_VERSION } from '@deepseek-ai/dsh-session';
|
|
32
32
|
import { textOfBlocks } from '../../channel/projection.js';
|
|
33
33
|
import { toolErrorText } from './transcript.js';
|
|
34
|
+
import { listDirectChildren } from './subagent-projection.js';
|
|
34
35
|
/**
|
|
35
36
|
* One page window in source events. Claude pages by 400 SDK messages
|
|
36
37
|
* (`SUBAGENT_TRANSCRIPT_PAGE`) and the shared "load older" chunk is
|
|
@@ -113,15 +114,15 @@ export async function readChildTranscriptPage(deps, agentId, window) {
|
|
|
113
114
|
const signal = deps.ownerSignal;
|
|
114
115
|
signal?.throwIfAborted();
|
|
115
116
|
const service = deps.subagents();
|
|
116
|
-
if (service?.listChildren === undefined)
|
|
117
|
-
throw new Error('dsh-tui: the subagents continuation service is unavailable');
|
|
118
117
|
const persistence = deps.persistence();
|
|
119
118
|
if (persistence === undefined)
|
|
120
119
|
throw new Error('dsh-tui: session persistence is unavailable');
|
|
121
|
-
// 1. ownership: only a child this parent's own catalog names is opened
|
|
122
|
-
|
|
120
|
+
// 1. ownership: only a child this parent's own catalog names is opened
|
|
121
|
+
// (`listChildren` on an older host, `listDescendants` depth-1 rows on
|
|
122
|
+
// 0.2.2-rc.2 — see listDirectChildren).
|
|
123
|
+
const roster = await listDirectChildren(service, capture.sessionId, signal);
|
|
123
124
|
guard();
|
|
124
|
-
if (!
|
|
125
|
+
if (!roster.some(entry => String(entry.id) === agentId))
|
|
125
126
|
return null;
|
|
126
127
|
// 2. durability barrier for a still-live child (best effort; when it fails
|
|
127
128
|
// the read below sees whatever prefix is already persisted).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import stripAnsi from 'strip-ansi';
|
|
2
2
|
import { Lexer } from 'marked';
|
|
3
3
|
import { textOfBlocks } from '../../channel/projection.js';
|
|
4
|
-
import {
|
|
4
|
+
import { notificationText } from '../../ink/terminal-notification.js';
|
|
5
5
|
/** Notify once a successful live turn has settled with no automatic follow-up. */
|
|
6
6
|
export function createTaskCompletion(state, owner, notify) {
|
|
7
7
|
let generation = -1;
|
|
@@ -75,15 +75,7 @@ export function createTaskCompletion(state, owner, notify) {
|
|
|
75
75
|
}
|
|
76
76
|
/** Plain-text preview; notification daemons may interpret raw Markdown headings. */
|
|
77
77
|
function notificationPreview(text) {
|
|
78
|
-
|
|
79
|
-
const flat = plain.replace(/[\x00-\x1f\x7f-\x9f]/g, ' ').replace(/\s+/g, ' ').trim();
|
|
80
|
-
const graphemes = [];
|
|
81
|
-
for (const { segment } of getGraphemeSegmenter().segment(flat)) {
|
|
82
|
-
if (graphemes.length === 200)
|
|
83
|
-
return `${graphemes.slice(0, 199).join('')}…`;
|
|
84
|
-
graphemes.push(segment);
|
|
85
|
-
}
|
|
86
|
-
return graphemes.join('') || undefined;
|
|
78
|
+
return notificationText(markdownText(Lexer.lex(stripAnsi(text), { gfm: true }))) || undefined;
|
|
87
79
|
}
|
|
88
80
|
function isMarkdownToken(token, kind) {
|
|
89
81
|
return token.type === kind;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Match a partial checkpoint to its durable summary, never to framing prose. */
|
|
2
|
+
import type { SessionEvent } from '@deepseek-ai/dsh-session';
|
|
3
|
+
export declare class CompactionPreviews {
|
|
4
|
+
private readonly summaries;
|
|
5
|
+
observe(event: SessionEvent): void;
|
|
6
|
+
take(source: {
|
|
7
|
+
kind: string;
|
|
8
|
+
}): string | undefined;
|
|
9
|
+
clear(): void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=compaction-previews.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compaction-previews.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/compat/compaction-previews.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA4B;IAEtD,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;IAkBlC,IAAI,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,GAAG,SAAS;IASlD,KAAK,IAAI,IAAI;CAGd"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export class CompactionPreviews {
|
|
2
|
+
summaries = new Map();
|
|
3
|
+
observe(event) {
|
|
4
|
+
const type = event.type;
|
|
5
|
+
if (type !== 'compaction/summary' && type !== 'compaction/end')
|
|
6
|
+
return;
|
|
7
|
+
const data = event.data;
|
|
8
|
+
if (typeof data.compactionId !== 'string')
|
|
9
|
+
return;
|
|
10
|
+
if (type === 'compaction/end') {
|
|
11
|
+
this.summaries.delete(data.compactionId);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (!Array.isArray(data.summary))
|
|
15
|
+
return;
|
|
16
|
+
const text = data.summary.flatMap((block) => {
|
|
17
|
+
if (block === null || typeof block !== 'object')
|
|
18
|
+
return [];
|
|
19
|
+
const item = block;
|
|
20
|
+
return item.type === 'text' && typeof item.text === 'string' ? [item.text] : [];
|
|
21
|
+
}).join('\n').trim();
|
|
22
|
+
if (text)
|
|
23
|
+
this.summaries.set(data.compactionId, text);
|
|
24
|
+
}
|
|
25
|
+
take(source) {
|
|
26
|
+
if (source.kind !== 'spine-checkpoint')
|
|
27
|
+
return undefined;
|
|
28
|
+
const id = source.compactionId;
|
|
29
|
+
if (typeof id !== 'string')
|
|
30
|
+
return undefined;
|
|
31
|
+
const text = this.summaries.get(id);
|
|
32
|
+
this.summaries.delete(id);
|
|
33
|
+
return text;
|
|
34
|
+
}
|
|
35
|
+
clear() {
|
|
36
|
+
this.summaries.clear();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -13,7 +13,7 @@ export declare function answeredToolCallIds(message: {
|
|
|
13
13
|
readonly toolCallId?: string;
|
|
14
14
|
readonly content: readonly ContentBlock[];
|
|
15
15
|
}): string[];
|
|
16
|
-
/**
|
|
16
|
+
/** Full and partial checkpoints share transcript cards, not replacement scope. */
|
|
17
17
|
export declare function isCompactionCheckpointSource(source: {
|
|
18
18
|
kind: string;
|
|
19
19
|
plugin?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/compat/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IAC1C,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAC3B,GAAG,SAAS,GAAG;IAAE,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAarE;AAED,2FAA2F;AAC3F,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;CAC1C,GAAG,MAAM,EAAE,CAMX;AAED
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/compat/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IACzC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,YAAY,EAAE,CAAA;IAC1C,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAC3B,GAAG,SAAS,GAAG;IAAE,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAarE;AAED,2FAA2F;AAC3F,wBAAgB,mBAAmB,CAAC,OAAO,EAAE;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;CAC1C,GAAG,MAAM,EAAE,CAMX;AAED,kFAAkF;AAClF,wBAAgB,4BAA4B,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAE/F"}
|
|
@@ -18,7 +18,7 @@ export function answeredToolCallIds(message) {
|
|
|
18
18
|
}
|
|
19
19
|
return ids;
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
21
|
+
/** Full and partial checkpoints share transcript cards, not replacement scope. */
|
|
22
22
|
export function isCompactionCheckpointSource(source) {
|
|
23
|
-
return source.kind === 'compact-checkpoint' || (source.kind === 'plugin' && source.plugin === 'compact');
|
|
23
|
+
return source.kind === 'spine-checkpoint' || source.kind === 'compact-checkpoint' || (source.kind === 'plugin' && source.plugin === 'compact');
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Primary validated upstream line (newest). */
|
|
2
|
-
export declare const UPSTREAM_VALIDATED_VERSION = "0.2.2-rc.
|
|
2
|
+
export declare const UPSTREAM_VALIDATED_VERSION = "0.2.2-rc.2";
|
|
3
3
|
/**
|
|
4
4
|
* The host CLI package whose installation `/update` aligns with the TUI.
|
|
5
5
|
* Re-exported here (the literal stays in host-contract.ts) so engine planning
|
|
@@ -15,8 +15,11 @@ export declare const UPSTREAM_HOST_PEER_PACKAGE: "@deepseek-ai/dsh-app-boot";
|
|
|
15
15
|
/**
|
|
16
16
|
* Explicitly supported upstream prerelease lines, oldest first.
|
|
17
17
|
*
|
|
18
|
-
* 0.2.2-rc.
|
|
19
|
-
*
|
|
18
|
+
* 0.2.2-rc.2 = primary continuous-CI line (AgentTeam moved into dsh-base
|
|
19
|
+
* with a per-session switch and named subagents, account notifications
|
|
20
|
+
* replaced the bonus API, DeepSeek Search/Fetch split their settings);
|
|
21
|
+
* 0.2.2-rc.1 = previous 0.2.2 prerelease (the model-selection projection,
|
|
22
|
+
* Agent.model seam and PromptPresentation split land there); 0.2.1-rc.5 =
|
|
20
23
|
* previous family still source-checked where CI covers it; 0.2.1-rc.4/rc.3/rc.2 = earlier
|
|
21
24
|
* prereleases of the same family (published code compared with the primary);
|
|
22
25
|
* 0.2.0-rc.2/rc.1 = previous family (mapped compatibility);
|
|
@@ -33,7 +36,7 @@ export declare const UPSTREAM_HOST_PEER_PACKAGE: "@deepseek-ai/dsh-app-boot";
|
|
|
33
36
|
* The peer range in package.json is deliberately wider than this list: an
|
|
34
37
|
* install on an older or newer line is allowed but reports drift at boot.
|
|
35
38
|
*/
|
|
36
|
-
export declare const UPSTREAM_VALIDATED_VERSIONS: readonly ["0.1.0-rc.6", "0.1.0-rc.7", "0.1.0-rc.8", "0.1.1-rc.1", "0.1.1-rc.2", "0.1.2-alpha.3", "0.1.2-alpha.4", "0.1.2-alpha.5", "0.1.2-rc.1", "0.1.3-alpha.2", "0.1.5-alpha.1", "0.1.5-alpha.2", "0.1.5-rc.1", "0.1.7-rc.1", "0.1.7-rc.2", "0.2.0-rc.1", "0.2.0-rc.2", "0.2.1-rc.2", "0.2.1-rc.3", "0.2.1-rc.4", "0.2.1-rc.5", "0.2.2-rc.1"];
|
|
39
|
+
export declare const UPSTREAM_VALIDATED_VERSIONS: readonly ["0.1.0-rc.6", "0.1.0-rc.7", "0.1.0-rc.8", "0.1.1-rc.1", "0.1.1-rc.2", "0.1.2-alpha.3", "0.1.2-alpha.4", "0.1.2-alpha.5", "0.1.2-rc.1", "0.1.3-alpha.2", "0.1.5-alpha.1", "0.1.5-alpha.2", "0.1.5-rc.1", "0.1.7-rc.1", "0.1.7-rc.2", "0.2.0-rc.1", "0.2.0-rc.2", "0.2.1-rc.2", "0.2.1-rc.3", "0.2.1-rc.4", "0.2.1-rc.5", "0.2.2-rc.1", "0.2.2-rc.2"];
|
|
37
40
|
/**
|
|
38
41
|
* Framework packages version on their own lines; the contract validates
|
|
39
42
|
* their MAJOR (breaking surface), not the harness prerelease number.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/contract.ts"],"names":[],"mappings":"AAoBA,gDAAgD;AAChD,eAAO,MAAM,0BAA0B,eAAe,CAAA;AAEtD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,qBAAe,CAAA;AAUjD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,6BAA4B,CAAA;AAEnE
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/contract.ts"],"names":[],"mappings":"AAoBA,gDAAgD;AAChD,eAAO,MAAM,0BAA0B,eAAe,CAAA;AAEtD;;;;GAIG;AACH,eAAO,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,IAAI,MAAM,GAAG,SAAS,CAM9D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAKnF;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,MAAM,EAAE,CAQV;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,kBAAkB,EAAE,CAuBtB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEtE,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,iBAAiB,CAAA;IACvB,sFAAsF;IACtF,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,oBAAoB,GAAG,SAAS,CA0BlC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Upstream compatibility contract.
|
|
3
3
|
*
|
|
4
4
|
* The TUI is validated against a set of upstream prerelease lines — the
|
|
5
|
-
* current primary (0.2.2-rc.
|
|
5
|
+
* current primary (0.2.2-rc.2) plus older lines kept in backward
|
|
6
6
|
* compatibility across the 0.2.0, 0.1.7, 0.1.5, 0.1.3, 0.1.2, 0.1.1 and 0.1.0
|
|
7
7
|
* release families.
|
|
8
8
|
* Every official package this adapter touches is blessed here; anything
|
|
@@ -18,7 +18,7 @@ import { dirname } from 'node:path';
|
|
|
18
18
|
import { fileURLToPath } from 'node:url';
|
|
19
19
|
import { ADAPTER_TYPE_PACKAGES, HOST_MODULES, HOST_PACKAGE, HOST_TYPE_PACKAGES } from './host-contract.js';
|
|
20
20
|
/** Primary validated upstream line (newest). */
|
|
21
|
-
export const UPSTREAM_VALIDATED_VERSION = '0.2.2-rc.
|
|
21
|
+
export const UPSTREAM_VALIDATED_VERSION = '0.2.2-rc.2';
|
|
22
22
|
/**
|
|
23
23
|
* The host CLI package whose installation `/update` aligns with the TUI.
|
|
24
24
|
* Re-exported here (the literal stays in host-contract.ts) so engine planning
|
|
@@ -41,8 +41,11 @@ export const UPSTREAM_HOST_PEER_PACKAGE = APP_BOOT_MODULE.specifier;
|
|
|
41
41
|
/**
|
|
42
42
|
* Explicitly supported upstream prerelease lines, oldest first.
|
|
43
43
|
*
|
|
44
|
-
* 0.2.2-rc.
|
|
45
|
-
*
|
|
44
|
+
* 0.2.2-rc.2 = primary continuous-CI line (AgentTeam moved into dsh-base
|
|
45
|
+
* with a per-session switch and named subagents, account notifications
|
|
46
|
+
* replaced the bonus API, DeepSeek Search/Fetch split their settings);
|
|
47
|
+
* 0.2.2-rc.1 = previous 0.2.2 prerelease (the model-selection projection,
|
|
48
|
+
* Agent.model seam and PromptPresentation split land there); 0.2.1-rc.5 =
|
|
46
49
|
* previous family still source-checked where CI covers it; 0.2.1-rc.4/rc.3/rc.2 = earlier
|
|
47
50
|
* prereleases of the same family (published code compared with the primary);
|
|
48
51
|
* 0.2.0-rc.2/rc.1 = previous family (mapped compatibility);
|
|
@@ -82,6 +85,7 @@ export const UPSTREAM_VALIDATED_VERSIONS = [
|
|
|
82
85
|
'0.2.1-rc.4',
|
|
83
86
|
'0.2.1-rc.5',
|
|
84
87
|
'0.2.2-rc.1',
|
|
88
|
+
'0.2.2-rc.2',
|
|
85
89
|
];
|
|
86
90
|
/**
|
|
87
91
|
* Framework packages version on their own lines; the contract validates
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
* intersects this list with what the running installation supplies, so an
|
|
9
9
|
* older dsh simply shows nothing.
|
|
10
10
|
*
|
|
11
|
+
* Agent Teams is deliberately absent: `0.2.2-rc.2` moved it into `dsh-base`
|
|
12
|
+
* as a per-session selection (`/team on|off`), so there is no bundle to
|
|
13
|
+
* advertise or install. A bundle host (`0.2.2-rc.1` and earlier) still ships
|
|
14
|
+
* the retired profile package, but the TUI no longer sells it.
|
|
15
|
+
*
|
|
11
16
|
* @module
|
|
12
17
|
*/
|
|
13
18
|
import type { I18nKey } from '../i18n.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental-bundles.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/experimental-bundles.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"experimental-bundles.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/experimental-bundles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEzC,2DAA2D;AAC3D,eAAO,MAAM,kBAAkB,8CAA8C,CAAA;AAE7E,sEAAsE;AACtE,eAAO,MAAM,qBAAqB,iDAAiD,CAAA;AAEnF;4EAC4E;AAC5E,eAAO,MAAM,eAAe,gDAAgD,CAAA;AAE5E,uEAAuE;AACvE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CACvB;AAED,gEAAgE;AAChE,eAAO,MAAM,wBAAwB,EAAE,SAAS,qBAAqB,EAIpE,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TEAM_BUNDLE } from './team-roster.js';
|
|
2
1
|
/** The bundle that mounts the `auto` permission preset. */
|
|
3
2
|
export const AUTO_REVIEW_BUNDLE = '@deepseek-ai/dsh-experimental-auto-review';
|
|
4
3
|
/** The bundle that mounts the five read-only session-search tools. */
|
|
@@ -8,7 +7,6 @@ export const SESSION_SEARCH_BUNDLE = '@deepseek-ai/dsh-experimental-session-sear
|
|
|
8
7
|
export const WORKTREE_BUNDLE = '@deepseek-ai/dsh-experimental-tool-worktree';
|
|
9
8
|
/** The features `/plugin list` advertises, in product order. */
|
|
10
9
|
export const TUI_EXPERIMENTAL_BUNDLES = [
|
|
11
|
-
{ name: TEAM_BUNDLE, hint: 'plugins-experimental-team-hint' },
|
|
12
10
|
{ name: AUTO_REVIEW_BUNDLE, hint: 'plugins-experimental-auto-review-hint' },
|
|
13
11
|
{ name: SESSION_SEARCH_BUNDLE, hint: 'plugins-experimental-session-search-hint' },
|
|
14
12
|
{ name: WORKTREE_BUNDLE, hint: 'plugins-experimental-worktree-hint' },
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/** The host CLI package whose installation the entry loads. */
|
|
8
8
|
export declare const HOST_PACKAGE = "@deepseek-ai/dsh";
|
|
9
9
|
/** The host line the reproduced pieces were checked against (host-replica.snapshot.json). */
|
|
10
|
-
export declare const HOST_REPLICA_VERSION = "0.2.2-rc.
|
|
10
|
+
export declare const HOST_REPLICA_VERSION = "0.2.2-rc.2";
|
|
11
11
|
/** Where the entry resolves a host module from. */
|
|
12
12
|
export type HostModuleVia =
|
|
13
13
|
/** The host package's own `createRequire` (its nested node_modules). */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/** The host CLI package whose installation the entry loads. */
|
|
8
8
|
export const HOST_PACKAGE = '@deepseek-ai/dsh';
|
|
9
9
|
/** The host line the reproduced pieces were checked against (host-replica.snapshot.json). */
|
|
10
|
-
export const HOST_REPLICA_VERSION = '0.2.2-rc.
|
|
10
|
+
export const HOST_REPLICA_VERSION = '0.2.2-rc.2';
|
|
11
11
|
/** The host modules the entry loads, all from one installation, in load order. */
|
|
12
12
|
export const HOST_MODULES = [
|
|
13
13
|
{ key: 'cordis', specifier: '@deepseek-ai/cordis', via: 'host', exports: ['Context'] },
|
|
@@ -57,7 +57,7 @@ export const HOST_REPLICAS = [
|
|
|
57
57
|
{ id: 'process-shutdown-timeout', package: HOST_PACKAGE, symbol: 'PROCESS_SHUTDOWN_TIMEOUT_MS', kind: 'const', local: 'process-exit.ts PROCESS_SHUTDOWN_TIMEOUT_MS' },
|
|
58
58
|
{ id: 'app-ready', package: HOST_PACKAGE, symbol: 'createAppReady', kind: 'function', local: 'createAppReady' },
|
|
59
59
|
{ id: 'compose-profile', package: HOST_PACKAGE, symbol: 'composeProfile', kind: 'function', local: 'prepareHostRoot steps 1–2 (no overlays, no resolvedProfile)' },
|
|
60
|
-
{ id: 'run-profile', package: HOST_PACKAGE, symbol: 'runProfile', kind: 'function', local: 'prepareHostRoot (PluginPackages), HostRoot.selectKernel (proxy, fail-loud, profileContext, launch environment, provideCmdline) and HostRoot.compose\'s appReady.commit' },
|
|
60
|
+
{ id: 'run-profile', package: HOST_PACKAGE, symbol: 'runProfile', kind: 'function', local: 'prepareHostRoot (DSH_USER_AGENT_SUFFIX from its first line only when the selected host exports userAgentProfile, PluginPackages), HostRoot.selectKernel (proxy, fail-loud, profileContext, launch environment, provideCmdline) and HostRoot.compose\'s appReady.commit' },
|
|
61
61
|
{ id: 'boot', package: '@deepseek-ai/dsh-app-boot', symbol: 'boot', kind: 'function', local: 'prepareHostRoot step 4 (baseUrl, dshHomePath, Loader — the pre-0.2.2 internal/update hook is version-gated) and HostRoot.compose (startup-log exporter, mountRootInclude, loader.await, auditStartupEntries, StartupError.startup)' },
|
|
62
62
|
{ id: 'startup-report', package: HOST_PACKAGE, symbol: 'reportStartupFailure', kind: 'function', local: 'writeStartupReport: the file half' },
|
|
63
63
|
{ id: 'run-cli', package: HOST_PACKAGE, symbol: 'runCli', kind: 'function', local: 'prepareHostRoot\'s loadLayeredEnv call before the profile; the StartupError-only report' },
|
|
@@ -14,6 +14,8 @@ type AppBootModule = Pick<typeof AppBoot, ContractExports<'appBoot'>>;
|
|
|
14
14
|
/** `@deepseek-ai/dsh/profile-boot`, declared locally: the host CLI is not a dependency. */
|
|
15
15
|
interface ProfileBootModule {
|
|
16
16
|
prepareProfile(name: string, userLayer?: boolean, fromDefaultProfile?: string): AppBoot.Profile;
|
|
17
|
+
/** Added in 0.2.2-rc.2; older hosts keep their existing attribution. */
|
|
18
|
+
userAgentProfile?(name: string): string;
|
|
17
19
|
readonly INSTALL_ANCHOR: string;
|
|
18
20
|
readonly PROFILE_ROOT_FILENAME: 'cordis.yml';
|
|
19
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-dsh.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/host-dsh.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,KAAK,OAAO,MAAM,2BAA2B,CAAA;AACzD,OAAO,KAAK,KAAK,SAAS,MAAM,6BAA6B,CAAA;AAC7D,OAAO,KAAK,KAAK,OAAO,MAAM,0BAA0B,CAAA;AACxD,OAAO,KAAK,KAAK,SAAS,MAAM,6BAA6B,CAAA;AAG7D,OAAO,EAAE,YAAY,EAAgB,MAAM,oBAAoB,CAAA;AAE/D,OAAO,EAA+B,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAOrF,KAAK,IAAI,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;AAElC,sGAAsG;AACtG,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,EAAE;IAAE,GAAG,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;AAE5I,KAAK,aAAa,GAAG,IAAI,CAAC,OAAO,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,CAAA;AACrE,2FAA2F;AAC3F,UAAU,iBAAiB;IACzB,cAAc,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AE,OAAO,EAAE,MAAM,GAAG,SAAS;CAKpE"}
|
|
@@ -294,6 +294,9 @@ export async function prepareHostRoot(host, options) {
|
|
|
294
294
|
// uses the same final answer for its slot and for this composition mode.
|
|
295
295
|
try {
|
|
296
296
|
if (dsh) {
|
|
297
|
+
if (typeof profileBoot.userAgentProfile === 'function') {
|
|
298
|
+
process.env.DSH_USER_AGENT_SUFFIX = `dsh-profile/${profileBoot.userAgentProfile(options.profile)}`;
|
|
299
|
+
}
|
|
297
300
|
const disposeProxy = await host.httpProxy.installProxyFromEnvironment(environment, message => { process.stderr.write(`${BIN_NAME}: ${message}\n`); });
|
|
298
301
|
if (disposeProxy !== undefined)
|
|
299
302
|
ctx.effect(() => () => { void Promise.resolve(disposeProxy()).catch(() => undefined); }, 'dsh-tui host proxy');
|
|
@@ -170,11 +170,19 @@ export interface Config {
|
|
|
170
170
|
* a ~30fps reveal instead of jumping per provider burst — bursty or
|
|
171
171
|
* one-shot deliveries read as an even flow. On by default. */
|
|
172
172
|
smoothStreaming?: boolean;
|
|
173
|
-
/**
|
|
173
|
+
/** System notifications for successful task completions, waiting
|
|
174
|
+
* approvals, waiting questions and waiting plan reviews: off, unfocused
|
|
175
|
+
* (default), or always. */
|
|
174
176
|
taskNotifications?: TaskNotifications;
|
|
175
177
|
/** Notification transport: auto (default), OSC 9, BEL, or the native Windows
|
|
176
178
|
* toast, which off Windows resolves back to the probed terminal protocol. */
|
|
177
179
|
notificationMethod?: NotificationMethod;
|
|
180
|
+
/** Jump back from notification toasts (settings `dsh-tui.jumpBack`): on
|
|
181
|
+
* Windows the pane title gains a ` [dsh-tui:<16 hex>]` suffix so a toast can
|
|
182
|
+
* reopen this exact pane; enabling also registers a per-user HKCU protocol
|
|
183
|
+
* key on the first toast. Off by default — the title stays untouched and
|
|
184
|
+
* nothing is registered. */
|
|
185
|
+
jumpBack?: boolean;
|
|
178
186
|
/** Mermaid diagrams (settings `dsh-tui.mermaidDiagrams`): ```mermaid
|
|
179
187
|
* fences in replies render as Unicode box-drawing art — flowcharts,
|
|
180
188
|
* sequence/state/class/ER diagrams, pie, mindmap, timeline, gitGraph —
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAE5F,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,EAA2Q,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACjf,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC5E,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAC1F,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACzE,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAIzE,eAAO,MAAM,IAAI,YAAY,CAAA;AAU7B,eAAO,MAAM,MAAM,UAAa,CAAA;AAEhC;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;;;;;;;gCAa4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;;kBAOc;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC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wB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,WAAW,GACjB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -85,6 +85,11 @@ export const Config = editableConfig(Schema.object({
|
|
|
85
85
|
smoothStreaming: Schema.boolean().default(true),
|
|
86
86
|
taskNotifications: Schema.union(['off', 'unfocused', 'always']),
|
|
87
87
|
notificationMethod: Schema.union(['auto', 'osc9', 'bel', 'windows']),
|
|
88
|
+
// No `.default()` on purpose (same rule as recapOnOpen): an unset key must
|
|
89
|
+
// stay distinguishable from an explicit `false` so cordis.yml keeps the
|
|
90
|
+
// deciding vote; the setting parser resolves `value.jumpBack ??
|
|
91
|
+
// config.jumpBack ?? false` at the read site.
|
|
92
|
+
jumpBack: Schema.boolean(),
|
|
88
93
|
mermaidDiagrams: Schema.boolean().default(true),
|
|
89
94
|
codeFrameStyle: Schema.union(['light', 'full']),
|
|
90
95
|
mathRendering: Schema.union(['auto', 'image', 'unicode', 'source']),
|