@deepseek-harness-tui/dsh-tui 0.19.0 → 0.20.1
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 +67 -57
- package/bin/dsh-tui.js +26 -8
- package/cordis.patch.yml +5 -3
- package/cordis.yml +3 -2
- package/guide/dsh-tui-guide/claude-backend.en.md +6 -5
- package/guide/dsh-tui-guide/claude-backend.md +5 -5
- 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/migrate.en.md +5 -0
- package/guide/dsh-tui-guide/migrate.md +4 -0
- package/guide/dsh-tui-guide/plugins.en.md +17 -1
- package/guide/dsh-tui-guide/plugins.md +12 -1
- 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/kernel/host-facade.d.ts +3 -1
- package/lib/types/adapter/kernel/host-facade.d.ts.map +1 -1
- package/lib/types/adapter/kernel/host-facade.js +6 -0
- package/lib/types/adapter/kernel/runtime.d.ts.map +1 -1
- package/lib/types/adapter/kernel/runtime.js +5 -0
- package/lib/types/adapter/kernel/slices/extensions.d.ts +1 -0
- package/lib/types/adapter/kernel/slices/extensions.d.ts.map +1 -1
- package/lib/types/adapter/kernel/slices/extensions.js +6 -1
- package/lib/types/adapter/kernel/slices/index.d.ts +1 -1
- package/lib/types/adapter/kernel/slices/index.d.ts.map +1 -1
- package/lib/types/adapter/kernel/slices/index.js +3 -2
- package/lib/types/adapter/ports/channel-catalog.d.ts +19 -0
- package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -1
- 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/adapter/ports/extensions.d.ts +9 -0
- package/lib/types/adapter/ports/extensions.d.ts.map +1 -1
- package/lib/types/adapter/ports/index.d.ts +1 -1
- package/lib/types/adapter/ports/index.d.ts.map +1 -1
- package/lib/types/adapter/upstream/extensions-driver.d.ts +4 -1
- package/lib/types/adapter/upstream/extensions-driver.d.ts.map +1 -1
- package/lib/types/adapter/upstream/extensions-driver.js +111 -1
- package/lib/types/adapter/upstream/index.d.ts +1 -1
- package/lib/types/adapter/upstream/index.d.ts.map +1 -1
- package/lib/types/adapter/upstream/index.js +1 -1
- package/lib/types/agent/events.d.ts +3 -1
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/api.d.ts +1 -1
- package/lib/types/api.d.ts.map +1 -1
- package/lib/types/backends/claude/backend.d.ts.map +1 -1
- package/lib/types/backends/claude/backend.js +7 -2
- 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/FileSuggestions.d.ts +2 -2
- package/lib/types/components/FileSuggestions.d.ts.map +1 -1
- package/lib/types/components/FileSuggestions.js +25 -5
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +3 -3
- package/lib/types/components/PromptInput.d.ts +7 -1
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +81 -23
- 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/childStderr.d.ts +1 -1
- package/lib/types/dsh-adapter/childStderr.d.ts.map +1 -1
- package/lib/types/dsh-adapter/childStderr.js +5 -0
- 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 +12 -5
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +15 -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/extensions.d.ts +3 -2
- package/lib/types/dsh-adapter/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/extensions.js +5 -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 +6 -0
- package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-dsh.js +29 -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/mention-providers.d.ts +91 -0
- package/lib/types/dsh-adapter/mention-providers.d.ts.map +1 -0
- package/lib/types/dsh-adapter/mention-providers.js +214 -0
- package/lib/types/dsh-adapter/migrate/entry.d.ts +2 -0
- package/lib/types/dsh-adapter/migrate/entry.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/entry.js +46 -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 +611 -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/extensions.d.ts +2 -0
- package/lib/types/extensions.d.ts.map +1 -1
- package/lib/types/extensions.js +4 -1
- package/lib/types/i18n.d.ts +71 -11
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +32 -9
- 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 +8 -4
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +40 -11
- 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/lib/types/utils/fileSuggestions.d.ts +14 -3
- package/lib/types/utils/fileSuggestions.d.ts.map +1 -1
- package/lib/types/utils/fileSuggestions.js +33 -0
- package/package.json +117 -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
|
@@ -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;
|
|
@@ -50,7 +50,7 @@ export interface ChildStderrReporterOptions {
|
|
|
50
50
|
export interface ChildStderrReporter {
|
|
51
51
|
/** Feed one raw stderr line. */
|
|
52
52
|
push(line: string): void;
|
|
53
|
-
/**
|
|
53
|
+
/** Stop accepting lines and cancel pending debounce timers (teardown). */
|
|
54
54
|
dispose(): void;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"childStderr.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/childStderr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAgEH;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,MAAM,IAAI,CA8BhF;AAED,0EAA0E;AAC1E,MAAM,WAAW,iBAAiB;IAChC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAChG;AAED,MAAM,WAAW,0BAA0B;IACzC,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,yFAAyF;IACzF,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,gCAAgC;IAChC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,
|
|
1
|
+
{"version":3,"file":"childStderr.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/childStderr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAgEH;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,MAAM,IAAI,CA8BhF;AAED,0EAA0E;AAC1E,MAAM,WAAW,iBAAiB;IAChC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAChG;AAED,MAAM,WAAW,0BAA0B;IACzC,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,yFAAyF;IACzF,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,gCAAgC;IAChC,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,0EAA0E;IAC1E,OAAO,IAAI,IAAI,CAAA;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,iBAAiB,EACzB,OAAO,GAAE,0BAA+B,GACvC,mBAAmB,CAyDrB"}
|
|
@@ -132,8 +132,11 @@ export function createChildStderrReporter(notify, options = {}) {
|
|
|
132
132
|
const maxLineLength = options.maxLineLength ?? 200;
|
|
133
133
|
const groups = new Map();
|
|
134
134
|
const mutedUntil = new Map();
|
|
135
|
+
let disposed = false;
|
|
135
136
|
return {
|
|
136
137
|
push(raw) {
|
|
138
|
+
if (disposed)
|
|
139
|
+
return;
|
|
137
140
|
const cleaned = raw.replace(ANSI_PATTERN, '').trim();
|
|
138
141
|
if (cleaned.length === 0)
|
|
139
142
|
return;
|
|
@@ -172,9 +175,11 @@ export function createChildStderrReporter(notify, options = {}) {
|
|
|
172
175
|
}
|
|
173
176
|
},
|
|
174
177
|
dispose() {
|
|
178
|
+
disposed = true;
|
|
175
179
|
for (const group of groups.values())
|
|
176
180
|
clearTimeout(group.timer);
|
|
177
181
|
groups.clear();
|
|
182
|
+
mutedUntil.clear();
|
|
178
183
|
},
|
|
179
184
|
};
|
|
180
185
|
}
|
|
@@ -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.3";
|
|
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,15 @@ 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.3 = primary continuous-CI line (a release-train bump: the
|
|
19
|
+
* published code is identical to rc.2 apart from the web-only
|
|
20
|
+
* deepseek-chat-import bundle and one Cordis API catalog entry, so the
|
|
21
|
+
* replica and patch surfaces are unchanged);
|
|
22
|
+
* 0.2.2-rc.2 = previous 0.2.2 prerelease (AgentTeam moved into dsh-base
|
|
23
|
+
* with a per-session switch and named subagents, account notifications
|
|
24
|
+
* replaced the bonus API, DeepSeek Search/Fetch split their settings);
|
|
25
|
+
* 0.2.2-rc.1 = earlier 0.2.2 prerelease (the model-selection projection,
|
|
26
|
+
* Agent.model seam and PromptPresentation split land there); 0.2.1-rc.5 =
|
|
20
27
|
* previous family still source-checked where CI covers it; 0.2.1-rc.4/rc.3/rc.2 = earlier
|
|
21
28
|
* prereleases of the same family (published code compared with the primary);
|
|
22
29
|
* 0.2.0-rc.2/rc.1 = previous family (mapped compatibility);
|
|
@@ -33,14 +40,14 @@ export declare const UPSTREAM_HOST_PEER_PACKAGE: "@deepseek-ai/dsh-app-boot";
|
|
|
33
40
|
* The peer range in package.json is deliberately wider than this list: an
|
|
34
41
|
* install on an older or newer line is allowed but reports drift at boot.
|
|
35
42
|
*/
|
|
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"];
|
|
43
|
+
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", "0.2.2-rc.3"];
|
|
37
44
|
/**
|
|
38
45
|
* Framework packages version on their own lines; the contract validates
|
|
39
46
|
* their MAJOR (breaking surface), not the harness prerelease number.
|
|
40
47
|
*/
|
|
41
48
|
export declare const UPSTREAM_FRAMEWORK_MAJORS: Record<string, number>;
|
|
42
49
|
/** Official packages the adapter consumes at runtime or as types. */
|
|
43
|
-
export declare const UPSTREAM_BLESSED_PACKAGES: readonly ["@deepseek-ai/cordis", "@deepseek-ai/schemastery", "@deepseek-ai/dsh-agent", "@deepseek-ai/dsh-agent-instructions", "@deepseek-ai/dsh-agent-preset-registry", "@deepseek-ai/dsh-atomic-write", "@deepseek-ai/dsh-ptc-runtime-node", "@deepseek-ai/dsh-commands", "@deepseek-ai/dsh-cordis-host-runner", "@deepseek-ai/dsh-deepseek-account", "@deepseek-ai/dsh-host-webserver", "@deepseek-ai/dsh-llm", "@deepseek-ai/dsh-llm-pi-ai", "@deepseek-ai/dsh-persona", "@deepseek-ai/dsh-scope", "@deepseek-ai/dsh-session", "@deepseek-ai/dsh-settings", "@deepseek-ai/dsh-skill", "@deepseek-ai/dsh-storage", "@deepseek-ai/dsh-storage-domain", "@deepseek-ai/dsh-storage-json", "@deepseek-ai/dsh-workspace", "@deepseek-ai/dsh-web-app", "@deepseek-ai/dsh-system-prompt", "@deepseek-ai/dsh-terminal", "@deepseek-ai/dsh-terminal-bash", "@deepseek-ai/dsh-tool-ask-user", "@deepseek-ai/dsh-tool-bash-persistent", "@deepseek-ai/dsh-tool-cordis", "@deepseek-ai/dsh-tool-subagent", "@deepseek-ai/dsh-user-approval", "@deepseek-ai/dsh-user-questions", "@deepseek-ai/dsh-app-boot", "@deepseek-ai/dsh-cmdline", "@deepseek-ai/dsh-home-paths", "@deepseek-ai/dsh-http-proxy", "@deepseek-ai/dsh-launch-environment", "@deepseek-ai/dsh-plugin-manager"];
|
|
50
|
+
export declare const UPSTREAM_BLESSED_PACKAGES: readonly ["@deepseek-ai/cordis", "@deepseek-ai/schemastery", "@deepseek-ai/dsh-agent", "@deepseek-ai/dsh-agent-instructions", "@deepseek-ai/dsh-agent-preset-registry", "@deepseek-ai/dsh-atomic-write", "@deepseek-ai/dsh-ptc-runtime-node", "@deepseek-ai/dsh-commands", "@deepseek-ai/dsh-cordis-host-runner", "@deepseek-ai/dsh-deepseek-account", "@deepseek-ai/dsh-host-webserver", "@deepseek-ai/dsh-llm", "@deepseek-ai/dsh-llm-pi-ai", "@deepseek-ai/dsh-persona", "@deepseek-ai/dsh-scope", "@deepseek-ai/dsh-session", "@deepseek-ai/dsh-session-persistence-jsonl", "@deepseek-ai/dsh-settings", "@deepseek-ai/dsh-skill", "@deepseek-ai/dsh-storage", "@deepseek-ai/dsh-storage-domain", "@deepseek-ai/dsh-storage-json", "@deepseek-ai/dsh-workspace", "@deepseek-ai/dsh-web-app", "@deepseek-ai/dsh-system-prompt", "@deepseek-ai/dsh-terminal", "@deepseek-ai/dsh-terminal-bash", "@deepseek-ai/dsh-tool-ask-user", "@deepseek-ai/dsh-tool-bash-persistent", "@deepseek-ai/dsh-tool-cordis", "@deepseek-ai/dsh-tool-subagent", "@deepseek-ai/dsh-user-approval", "@deepseek-ai/dsh-user-questions", "@deepseek-ai/dsh-app-boot", "@deepseek-ai/dsh-cmdline", "@deepseek-ai/dsh-home-paths", "@deepseek-ai/dsh-http-proxy", "@deepseek-ai/dsh-launch-environment", "@deepseek-ai/dsh-plugin-manager"];
|
|
44
51
|
export interface UpstreamDriftEntry {
|
|
45
52
|
package: string;
|
|
46
53
|
installed: string | undefined;
|
|
@@ -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,MAAM,qBAAqB,qBAAe,CAAA;AAUjD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,6BAA4B,CAAA;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,2BAA2B,6WAyB9B,CAAA;AAEV;;;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pC,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.3) 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.3';
|
|
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,15 @@ 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.3 = primary continuous-CI line (a release-train bump: the
|
|
45
|
+
* published code is identical to rc.2 apart from the web-only
|
|
46
|
+
* deepseek-chat-import bundle and one Cordis API catalog entry, so the
|
|
47
|
+
* replica and patch surfaces are unchanged);
|
|
48
|
+
* 0.2.2-rc.2 = previous 0.2.2 prerelease (AgentTeam moved into dsh-base
|
|
49
|
+
* with a per-session switch and named subagents, account notifications
|
|
50
|
+
* replaced the bonus API, DeepSeek Search/Fetch split their settings);
|
|
51
|
+
* 0.2.2-rc.1 = earlier 0.2.2 prerelease (the model-selection projection,
|
|
52
|
+
* Agent.model seam and PromptPresentation split land there); 0.2.1-rc.5 =
|
|
46
53
|
* previous family still source-checked where CI covers it; 0.2.1-rc.4/rc.3/rc.2 = earlier
|
|
47
54
|
* prereleases of the same family (published code compared with the primary);
|
|
48
55
|
* 0.2.0-rc.2/rc.1 = previous family (mapped compatibility);
|
|
@@ -82,6 +89,8 @@ export const UPSTREAM_VALIDATED_VERSIONS = [
|
|
|
82
89
|
'0.2.1-rc.4',
|
|
83
90
|
'0.2.1-rc.5',
|
|
84
91
|
'0.2.2-rc.1',
|
|
92
|
+
'0.2.2-rc.2',
|
|
93
|
+
'0.2.2-rc.3',
|
|
85
94
|
];
|
|
86
95
|
/**
|
|
87
96
|
* Framework packages version on their own lines; the contract validates
|
|
@@ -109,6 +118,7 @@ export const UPSTREAM_BLESSED_PACKAGES = [
|
|
|
109
118
|
'@deepseek-ai/dsh-persona',
|
|
110
119
|
'@deepseek-ai/dsh-scope',
|
|
111
120
|
'@deepseek-ai/dsh-session',
|
|
121
|
+
'@deepseek-ai/dsh-session-persistence-jsonl',
|
|
112
122
|
'@deepseek-ai/dsh-settings',
|
|
113
123
|
'@deepseek-ai/dsh-skill',
|
|
114
124
|
'@deepseek-ai/dsh-storage',
|
|
@@ -140,6 +150,7 @@ const OPTIONAL_RUNTIME_PACKAGES = new Set([
|
|
|
140
150
|
'@deepseek-ai/dsh-deepseek-account',
|
|
141
151
|
'@deepseek-ai/dsh-host-webserver',
|
|
142
152
|
'@deepseek-ai/dsh-web-app',
|
|
153
|
+
'@deepseek-ai/dsh-session-persistence-jsonl',
|
|
143
154
|
// Never resolved from this package at run time: the standalone entry loads
|
|
144
155
|
// them from the installed dsh by realpath (./host-dsh.ts), and a profile
|
|
145
156
|
// has no copy of them (peers are not auto-installed there).
|
|
@@ -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' },
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* - `ctx.tuiRenderers` — custom session-entry text renderers
|
|
14
14
|
* - `ctx.tuiToast` — transient fire-and-forget notifications
|
|
15
15
|
* - `ctx.tuiThemes` — runtime theme declarations (host-readable)
|
|
16
|
+
* - `ctx.tuiMentions` — plugin rows in the composer's `@` completion
|
|
16
17
|
*
|
|
17
18
|
* The decision-point events (`tui/input`, `tui/rewind-prompt`, …) need no
|
|
18
19
|
* separate service — they are fired by the channel and answered through the
|
|
@@ -27,8 +28,8 @@
|
|
|
27
28
|
*
|
|
28
29
|
* Every consumer (`channel.ts`, `Chat.tsx`) reads these with `ctx.get`
|
|
29
30
|
* softly: without this row the TUI degrades to no dialogs/status/shortcuts/
|
|
30
|
-
* renderers/themes, and plugin.ts logs the skew warning once
|
|
31
|
-
* launches.
|
|
31
|
+
* renderers/themes/plugin mentions, and plugin.ts logs the skew warning once
|
|
32
|
+
* for profile launches.
|
|
32
33
|
*/
|
|
33
34
|
import { Context } from '@deepseek-ai/cordis';
|
|
34
35
|
export declare const name = "dsh-tui-extensions";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/extensions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAY7C,eAAO,MAAM,IAAI,uBAAuB,CAAA;AAExC,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CASxC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* - `ctx.tuiRenderers` — custom session-entry text renderers
|
|
14
14
|
* - `ctx.tuiToast` — transient fire-and-forget notifications
|
|
15
15
|
* - `ctx.tuiThemes` — runtime theme declarations (host-readable)
|
|
16
|
+
* - `ctx.tuiMentions` — plugin rows in the composer's `@` completion
|
|
16
17
|
*
|
|
17
18
|
* The decision-point events (`tui/input`, `tui/rewind-prompt`, …) need no
|
|
18
19
|
* separate service — they are fired by the channel and answered through the
|
|
@@ -27,8 +28,8 @@
|
|
|
27
28
|
*
|
|
28
29
|
* Every consumer (`channel.ts`, `Chat.tsx`) reads these with `ctx.get`
|
|
29
30
|
* softly: without this row the TUI degrades to no dialogs/status/shortcuts/
|
|
30
|
-
* renderers/themes, and plugin.ts logs the skew warning once
|
|
31
|
-
* launches.
|
|
31
|
+
* renderers/themes/plugin mentions, and plugin.ts logs the skew warning once
|
|
32
|
+
* for profile launches.
|
|
32
33
|
*/
|
|
33
34
|
import TuiDialogRuntime from './dialogs.js';
|
|
34
35
|
import TuiStatusRuntime from './status.js';
|
|
@@ -36,6 +37,7 @@ import TuiShortcutRuntime from './shortcuts.js';
|
|
|
36
37
|
import TuiRendererRuntime from './renderers.js';
|
|
37
38
|
import TuiToastRuntime from './toast.js';
|
|
38
39
|
import TuiThemeRuntime from './themes.js';
|
|
40
|
+
import TuiMentionRuntime from './mention-providers.js';
|
|
39
41
|
import { installDecisionGuard } from './decision-guard.js';
|
|
40
42
|
import { readGrantStore } from '../adapter/standard/grants.js';
|
|
41
43
|
import { adapterRuntimeFor } from '../adapter/kernel/runtime-context.js';
|
|
@@ -48,4 +50,5 @@ export function apply(ctx) {
|
|
|
48
50
|
ctx.plugin(TuiRendererRuntime);
|
|
49
51
|
ctx.plugin(TuiToastRuntime);
|
|
50
52
|
ctx.plugin(TuiThemeRuntime);
|
|
53
|
+
ctx.plugin(TuiMentionRuntime);
|
|
51
54
|
}
|
|
@@ -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.3";
|
|
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.3';
|
|
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
|
}
|
|
@@ -93,6 +95,10 @@ export interface PrepareHostRootOptions {
|
|
|
93
95
|
/** Routes `ctx.appExit(code)` to the TUI's exit funnel; the bounded `shutdown` when unfilled or refused. */
|
|
94
96
|
readonly exitSeam?: ProcessExitSeam;
|
|
95
97
|
}
|
|
98
|
+
/** Install only package resolution for a child command, without composing or
|
|
99
|
+
* rewriting its profile. Even loadProfileDirectory can migrate the manifest,
|
|
100
|
+
* so use the resolver's supported synthetic profile instead. */
|
|
101
|
+
export declare function prepareHostModuleResolution(host: HostDsh, profileDir: string): Promise<Context>;
|
|
96
102
|
export declare function prepareHostRoot(host: HostDsh, options: PrepareHostRootOptions): Promise<HostRoot>;
|
|
97
103
|
/** A composition failure, with the startup report saved for it. */
|
|
98
104
|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215
215
|
};
|
|
216
216
|
}
|
|
217
|
+
/** Install only package resolution for a child command, without composing or
|
|
218
|
+
* rewriting its profile. Even loadProfileDirectory can migrate the manifest,
|
|
219
|
+
* so use the resolver's supported synthetic profile instead. */
|
|
220
|
+
export async function prepareHostModuleResolution(host, profileDir) {
|
|
221
|
+
const profile = {
|
|
222
|
+
name: basename(profileDir),
|
|
223
|
+
dir: profileDir,
|
|
224
|
+
layers: [],
|
|
225
|
+
patchPath: join(profileDir, 'cordis.patch.yml'),
|
|
226
|
+
patches: [],
|
|
227
|
+
skippedBundles: [],
|
|
228
|
+
};
|
|
229
|
+
const resolution = await host.appBoot.createRuntimeResolution({
|
|
230
|
+
installAnchor: host.profileBoot.INSTALL_ANCHOR,
|
|
231
|
+
profile,
|
|
232
|
+
});
|
|
233
|
+
const ctx = new host.Context();
|
|
234
|
+
try {
|
|
235
|
+
await ctx.plugin(host.appBoot.PluginPackages, { resolution });
|
|
236
|
+
return ctx;
|
|
237
|
+
}
|
|
238
|
+
catch (error) {
|
|
239
|
+
await ctx.fiber.dispose().catch(() => undefined);
|
|
240
|
+
throw error;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
217
243
|
/**
|
|
218
244
|
* Build the entry's root from the host's `cordis` and install the host's
|
|
219
245
|
* module resolution on it before any TUI module is imported, so the TUI and
|
|
@@ -294,6 +320,9 @@ export async function prepareHostRoot(host, options) {
|
|
|
294
320
|
// uses the same final answer for its slot and for this composition mode.
|
|
295
321
|
try {
|
|
296
322
|
if (dsh) {
|
|
323
|
+
if (typeof profileBoot.userAgentProfile === 'function') {
|
|
324
|
+
process.env.DSH_USER_AGENT_SUFFIX = `dsh-profile/${profileBoot.userAgentProfile(options.profile)}`;
|
|
325
|
+
}
|
|
297
326
|
const disposeProxy = await host.httpProxy.installProxyFromEnvironment(environment, message => { process.stderr.write(`${BIN_NAME}: ${message}\n`); });
|
|
298
327
|
if (disposeProxy !== undefined)
|
|
299
328
|
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,KAA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AI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD;;wEAEoE;IACpE,GAAG,CAAC,EAAE;QACJ,yEAAyE;QACzE,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB;2EACmE;QACnE,aAAa,CAAC,EAAE,MAAM,CAAA;KACvB,CAAA;IACD;;;;sCAIkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAA;IACrD;;;yDAGqD;IACrD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;IACzB;;;;;;sEAMkE;IAClE,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;6EAE6E;AAC7E,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAElF;AAED,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAsKH,CAAA;AAEtD;;;;;;GAMG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CA+BtF;AAqCD,OAAO,EACL,OAAO,EACP,wBAAwB,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']),
|