@agi-fans/dsh-tui 0.22.0 → 0.23.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/LICENSE +26 -0
- package/lib/CHANGELOG.md +219 -1
- package/lib/chrome/box.d.ts +1 -18
- package/lib/chrome/box.js +2 -45
- package/lib/chrome/box.js.map +1 -1
- package/lib/chrome/code-highlight.js +4 -4
- package/lib/chrome/code-highlight.js.map +1 -1
- package/lib/chrome/command-output.d.ts +0 -1
- package/lib/chrome/command-output.js +11 -5
- package/lib/chrome/command-output.js.map +1 -1
- package/lib/chrome/goal-bar.js +1 -1
- package/lib/chrome/goal-bar.js.map +1 -1
- package/lib/chrome/main-screen-renderer.js +4 -3
- package/lib/chrome/main-screen-renderer.js.map +1 -1
- package/lib/chrome/markdown.d.ts +3 -3
- package/lib/chrome/markdown.js +85 -36
- package/lib/chrome/markdown.js.map +1 -1
- package/lib/chrome/md-style.d.ts +5 -2
- package/lib/chrome/md-style.js +13 -4
- package/lib/chrome/md-style.js.map +1 -1
- package/lib/chrome/renderer.d.ts +37 -1
- package/lib/chrome/renderer.js.map +1 -1
- package/lib/chrome/status-line.d.ts +3 -3
- package/lib/chrome/status-line.js +5 -5
- package/lib/chrome/status-line.js.map +1 -1
- package/lib/chrome/theme.d.ts +8 -3
- package/lib/chrome/theme.js +51 -153
- package/lib/chrome/theme.js.map +1 -1
- package/lib/commands/auth-account.d.ts +9 -0
- package/lib/commands/auth-account.js +202 -0
- package/lib/commands/auth-account.js.map +1 -0
- package/lib/commands/auth.js +238 -414
- package/lib/commands/auth.js.map +1 -1
- package/lib/commands/diff.js +22 -16
- package/lib/commands/diff.js.map +1 -1
- package/lib/commands/export.d.ts +0 -1
- package/lib/commands/export.js +99 -32
- package/lib/commands/export.js.map +1 -1
- package/lib/commands/files.js +11 -9
- package/lib/commands/files.js.map +1 -1
- package/lib/commands/integrations.d.ts +12 -1
- package/lib/commands/integrations.js +120 -23
- package/lib/commands/integrations.js.map +1 -1
- package/lib/commands/jobs-browser.d.ts +3 -0
- package/lib/commands/jobs-browser.js +152 -0
- package/lib/commands/jobs-browser.js.map +1 -0
- package/lib/commands/jobs.d.ts +3 -14
- package/lib/commands/jobs.js +26 -18
- package/lib/commands/jobs.js.map +1 -1
- package/lib/commands/model.d.ts +3 -0
- package/lib/commands/model.js +212 -128
- package/lib/commands/model.js.map +1 -1
- package/lib/commands/open-external.d.ts +2 -0
- package/lib/commands/open-external.js +19 -0
- package/lib/commands/open-external.js.map +1 -0
- package/lib/commands/permission.js +65 -54
- package/lib/commands/permission.js.map +1 -1
- package/lib/commands/plugins.js +381 -139
- package/lib/commands/plugins.js.map +1 -1
- package/lib/commands/schedule-catalog.d.ts +12 -0
- package/lib/commands/schedule-catalog.js +41 -0
- package/lib/commands/schedule-catalog.js.map +1 -0
- package/lib/commands/schedule-history.d.ts +4 -0
- package/lib/commands/schedule-history.js +62 -0
- package/lib/commands/schedule-history.js.map +1 -0
- package/lib/commands/schedule.d.ts +12 -15
- package/lib/commands/schedule.js +220 -187
- package/lib/commands/schedule.js.map +1 -1
- package/lib/commands/session-configuration.d.ts +3 -0
- package/lib/commands/session-configuration.js +62 -28
- package/lib/commands/session-configuration.js.map +1 -1
- package/lib/commands/session.js +116 -66
- package/lib/commands/session.js.map +1 -1
- package/lib/commands/terminal.js +14 -8
- package/lib/commands/terminal.js.map +1 -1
- package/lib/definition.d.ts +115 -15
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/input/actions.d.ts +1 -1
- package/lib/input/actions.js +5 -2
- package/lib/input/actions.js.map +1 -1
- package/lib/input/composer-files.d.ts +2 -0
- package/lib/input/composer-files.js +13 -3
- package/lib/input/composer-files.js.map +1 -1
- package/lib/input/image-paste.d.ts +5 -12
- package/lib/input/image-paste.js +32 -28
- package/lib/input/image-paste.js.map +1 -1
- package/lib/input/key-test.d.ts +5 -0
- package/lib/input/key-test.js +19 -0
- package/lib/input/key-test.js.map +1 -0
- package/lib/input/keys.d.ts +2 -0
- package/lib/input/keys.js +4 -1
- package/lib/input/keys.js.map +1 -1
- package/lib/locale/index.d.ts +6 -0
- package/lib/locale/index.js +32 -0
- package/lib/locale/index.js.map +1 -0
- package/lib/locale/prompt.d.ts +4 -0
- package/lib/locale/prompt.js +24 -0
- package/lib/locale/prompt.js.map +1 -0
- package/lib/locale/zh.d.ts +1114 -0
- package/lib/locale/zh.js +1115 -0
- package/lib/locale/zh.js.map +1 -0
- package/lib/prompt-intents.d.ts +4 -0
- package/lib/prompt-intents.js +4 -0
- package/lib/prompt-intents.js.map +1 -1
- package/lib/runtime/account-settings.d.ts +18 -0
- package/lib/runtime/account-settings.js +241 -0
- package/lib/runtime/account-settings.js.map +1 -0
- package/lib/runtime/agent-profile.d.ts +3 -3
- package/lib/runtime/agent-profile.js +4 -4
- package/lib/runtime/agent-profile.js.map +1 -1
- package/lib/runtime/btw-policy.js +2 -1
- package/lib/runtime/btw-policy.js.map +1 -1
- package/lib/runtime/btw.js +1 -2
- package/lib/runtime/btw.js.map +1 -1
- package/lib/runtime/composer-images.d.ts +2 -2
- package/lib/runtime/composer-images.js +4 -4
- package/lib/runtime/composer-images.js.map +1 -1
- package/lib/runtime/composer-shell.js +27 -1
- package/lib/runtime/composer-shell.js.map +1 -1
- package/lib/runtime/file-browser.d.ts +19 -0
- package/lib/runtime/file-browser.js +291 -0
- package/lib/runtime/file-browser.js.map +1 -0
- package/lib/runtime/file-review.d.ts +6 -9
- package/lib/runtime/file-review.js +91 -7
- package/lib/runtime/file-review.js.map +1 -1
- package/lib/runtime/help-reader.d.ts +12 -0
- package/lib/runtime/help-reader.js +50 -0
- package/lib/runtime/help-reader.js.map +1 -0
- package/lib/runtime/human-interaction.js +1 -1
- package/lib/runtime/human-interaction.js.map +1 -1
- package/lib/runtime/model-catalog-editor.d.ts +12 -0
- package/lib/runtime/model-catalog-editor.js +215 -0
- package/lib/runtime/model-catalog-editor.js.map +1 -0
- package/lib/runtime/model-settings.d.ts +11 -0
- package/lib/runtime/model-settings.js +404 -0
- package/lib/runtime/model-settings.js.map +1 -0
- package/lib/runtime/plugin-settings.d.ts +4 -1
- package/lib/runtime/plugin-settings.js +164 -88
- package/lib/runtime/plugin-settings.js.map +1 -1
- package/lib/runtime/prompt-browser.d.ts +9 -0
- package/lib/runtime/prompt-browser.js +19 -0
- package/lib/runtime/prompt-browser.js.map +1 -0
- package/lib/runtime/provider-local.d.ts +27 -27
- package/lib/runtime/provider-local.js +1288 -308
- package/lib/runtime/provider-local.js.map +1 -1
- package/lib/runtime/reference-reader.d.ts +15 -0
- package/lib/runtime/reference-reader.js +78 -0
- package/lib/runtime/reference-reader.js.map +1 -0
- package/lib/runtime/runner.js +38 -29
- package/lib/runtime/runner.js.map +1 -1
- package/lib/runtime/session-runtime.js +1 -1
- package/lib/runtime/session-runtime.js.map +1 -1
- package/lib/runtime/settings-draft.d.ts +21 -0
- package/lib/runtime/settings-draft.js +166 -0
- package/lib/runtime/settings-draft.js.map +1 -0
- package/lib/runtime/settings-preferences.js +1 -1
- package/lib/runtime/settings-preferences.js.map +1 -1
- package/lib/runtime/startup-notices.d.ts +0 -1
- package/lib/runtime/startup-notices.js +35 -6
- package/lib/runtime/startup-notices.js.map +1 -1
- package/lib/runtime/subagent-model-selection.js +2 -1
- package/lib/runtime/subagent-model-selection.js.map +1 -1
- package/lib/runtime/subagent-settings.d.ts +14 -0
- package/lib/runtime/subagent-settings.js +288 -0
- package/lib/runtime/subagent-settings.js.map +1 -0
- package/lib/runtime/terminal-notifications.d.ts +3 -0
- package/lib/runtime/terminal-notifications.js +13 -8
- package/lib/runtime/terminal-notifications.js.map +1 -1
- package/lib/runtime/terminal-probe.d.ts +2 -0
- package/lib/runtime/terminal-probe.js +9 -0
- package/lib/runtime/terminal-probe.js.map +1 -1
- package/lib/runtime/tool-presentation.js.map +1 -1
- package/lib/runtime/tool-reader.d.ts +5 -0
- package/lib/runtime/tool-reader.js +27 -0
- package/lib/runtime/tool-reader.js.map +1 -0
- package/lib/runtime/web-settings.d.ts +14 -0
- package/lib/runtime/web-settings.js +339 -0
- package/lib/runtime/web-settings.js.map +1 -0
- package/lib/session/command-attachments.d.ts +17 -0
- package/lib/session/command-attachments.js +50 -0
- package/lib/session/command-attachments.js.map +1 -0
- package/lib/session/context-diagnostics.d.ts +16 -0
- package/lib/session/context-diagnostics.js +15 -0
- package/lib/session/context-diagnostics.js.map +1 -1
- package/lib/session/external-agents.d.ts +3 -1
- package/lib/session/external-agents.js +35 -10
- package/lib/session/external-agents.js.map +1 -1
- package/lib/session/generation-continuation.d.ts +11 -0
- package/lib/session/generation-continuation.js +34 -0
- package/lib/session/generation-continuation.js.map +1 -0
- package/lib/session/goal-controls.d.ts +5 -0
- package/lib/session/goal-controls.js +81 -0
- package/lib/session/goal-controls.js.map +1 -0
- package/lib/session/interaction-adapter.d.ts +7 -3
- package/lib/session/interaction-adapter.js +121 -49
- package/lib/session/interaction-adapter.js.map +1 -1
- package/lib/session/message-queue.d.ts +2 -0
- package/lib/session/message-queue.js +102 -17
- package/lib/session/message-queue.js.map +1 -1
- package/lib/session/pending-inputs.d.ts +30 -0
- package/lib/session/pending-inputs.js +183 -0
- package/lib/session/pending-inputs.js.map +1 -0
- package/lib/session/session-configuration.js +1 -1
- package/lib/session/session-configuration.js.map +1 -1
- package/lib/session/session-controller.d.ts +33 -20
- package/lib/session/session-controller.js +500 -129
- package/lib/session/session-controller.js.map +1 -1
- package/lib/session/session-library.d.ts +3 -1
- package/lib/session/session-library.js +15 -0
- package/lib/session/session-library.js.map +1 -1
- package/lib/session/subagent-roster.d.ts +1 -0
- package/lib/session/subagent-roster.js +16 -5
- package/lib/session/subagent-roster.js.map +1 -1
- package/lib/session/subagent-tracker.d.ts +2 -0
- package/lib/session/subagent-tracker.js +18 -0
- package/lib/session/subagent-tracker.js.map +1 -1
- package/lib/session/tui-settings.d.ts +9 -5
- package/lib/session/tui-settings.js +3 -1
- package/lib/session/tui-settings.js.map +1 -1
- package/lib/session/workflow-projection.d.ts +2 -1
- package/lib/session/workflow-projection.js +34 -4
- package/lib/session/workflow-projection.js.map +1 -1
- package/lib/views/autocomplete.d.ts +12 -12
- package/lib/views/autocomplete.js +54 -45
- package/lib/views/autocomplete.js.map +1 -1
- package/lib/views/context-overview.d.ts +4 -0
- package/lib/views/context-overview.js +43 -0
- package/lib/views/context-overview.js.map +1 -0
- package/lib/views/copy-targets.d.ts +6 -2
- package/lib/views/copy-targets.js +19 -14
- package/lib/views/copy-targets.js.map +1 -1
- package/lib/views/document-reader.d.ts +10 -1
- package/lib/views/document-reader.js +63 -6
- package/lib/views/document-reader.js.map +1 -1
- package/lib/views/event-views.js +29 -11
- package/lib/views/event-views.js.map +1 -1
- package/lib/views/file-actions.js +21 -0
- package/lib/views/file-actions.js.map +1 -1
- package/lib/views/file-browser.d.ts +98 -0
- package/lib/views/file-browser.js +120 -0
- package/lib/views/file-browser.js.map +1 -0
- package/lib/views/history-search.js +4 -4
- package/lib/views/history-search.js.map +1 -1
- package/lib/views/hotkey-format.d.ts +3 -2
- package/lib/views/hotkey-format.js +4 -3
- package/lib/views/hotkey-format.js.map +1 -1
- package/lib/views/hotkeys.js +10 -12
- package/lib/views/hotkeys.js.map +1 -1
- package/lib/views/list-view.js +16 -11
- package/lib/views/list-view.js.map +1 -1
- package/lib/views/prompt-selector.d.ts +23 -1
- package/lib/views/prompt-selector.js +123 -60
- package/lib/views/prompt-selector.js.map +1 -1
- package/lib/views/settings-list.d.ts +6 -1
- package/lib/views/settings-list.js +69 -46
- package/lib/views/settings-list.js.map +1 -1
- package/lib/views/tool-actions.d.ts +16 -0
- package/lib/views/tool-actions.js +29 -0
- package/lib/views/tool-actions.js.map +1 -0
- package/lib/views/trajectory-timeline.d.ts +5 -6
- package/lib/views/trajectory-timeline.js +25 -15
- package/lib/views/trajectory-timeline.js.map +1 -1
- package/lib/views/trajectory.d.ts +23 -2
- package/lib/views/trajectory.js +404 -186
- package/lib/views/trajectory.js.map +1 -1
- package/lib/views/transcript-render.d.ts +39 -15
- package/lib/views/transcript-render.js +406 -208
- package/lib/views/transcript-render.js.map +1 -1
- package/lib/views/transcript-types.d.ts +3 -2
- package/lib/views/transcript-types.js.map +1 -1
- package/lib/views/workflow.d.ts +16 -0
- package/lib/views/workflow.js +42 -0
- package/lib/views/workflow.js.map +1 -0
- package/package.json +61 -58
- package/lib/chrome/welcome-tips.d.ts +0 -23
- package/lib/chrome/welcome-tips.js +0 -24
- package/lib/chrome/welcome-tips.js.map +0 -1
- package/lib/session/steering.d.ts +0 -3
- package/lib/session/steering.js +0 -9
- package/lib/session/steering.js.map +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export function rosterItems(roster) {
|
|
2
|
+
return [
|
|
3
|
+
...(roster?.workflows ?? []).map(run => ({ key: `workflow:${run.id}`, kind: 'workflow', run })),
|
|
4
|
+
...(roster?.agents ?? []).map(agent => ({ key: `agent:${agent.id}`, kind: 'agent', agent })),
|
|
5
|
+
];
|
|
6
|
+
}
|
|
7
|
+
export function workflowStatus(status) {
|
|
8
|
+
return { open: 'Running', completed: 'Completed', error: 'Failed', failed: 'Failed', cancelled: 'Cancelled', interrupted: 'Interrupted' }[status] ?? status;
|
|
9
|
+
}
|
|
10
|
+
export function workflowMemberStatus(run, member) {
|
|
11
|
+
return member.outcome ?? (run.status === 'interrupted' ? 'interrupted' : 'open');
|
|
12
|
+
}
|
|
13
|
+
function badge(status) {
|
|
14
|
+
return { label: workflowStatus(status), tone: status === 'completed' ? 'success' : status === 'failed' || status === 'error' ? 'error' : status === 'open' ? 'muted' : 'warning' };
|
|
15
|
+
}
|
|
16
|
+
/** Only actual member starts create groups; absent and empty phase names stay distinct. */
|
|
17
|
+
export function workflowOptions(run, canOpen) {
|
|
18
|
+
const options = [
|
|
19
|
+
{ label: run.name, value: 'run', disabled: true, badge: badge(run.status) },
|
|
20
|
+
];
|
|
21
|
+
const phases = new Map();
|
|
22
|
+
for (const member of run.members) {
|
|
23
|
+
const members = phases.get(member.phase) ?? [];
|
|
24
|
+
members.push(member);
|
|
25
|
+
phases.set(member.phase, members);
|
|
26
|
+
}
|
|
27
|
+
for (const [phase, members] of phases) {
|
|
28
|
+
const value = phase === undefined ? 'phase:missing' : `phase:value:${phase}`;
|
|
29
|
+
const statuses = members.map(member => workflowMemberStatus(run, member));
|
|
30
|
+
const status = ['failed', 'interrupted', 'cancelled', 'open', 'completed'].find(status => statuses.includes(status)) ?? 'open';
|
|
31
|
+
options.push({ label: phase === undefined ? '—' : phase === '' ? '“”' : phase, value, parentValue: 'run', disabled: true,
|
|
32
|
+
badge: { ...badge(status), label: `${members.length} · ${workflowStatus(status)}` } });
|
|
33
|
+
for (const member of members) {
|
|
34
|
+
const available = canOpen(member);
|
|
35
|
+
const status = workflowMemberStatus(run, member);
|
|
36
|
+
options.push({ label: member.label, value: `member:${member.seq}`, parentValue: value,
|
|
37
|
+
badge: status === 'open' && !available ? { ...badge(status), label: 'Running · Not available to open' } : badge(status), disabled: !available, submitLabel: 'open' });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return options;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/views/workflow.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,WAAW,CAAC,MAAqC;IAC/D,OAAO;QACL,GAAG,CAAC,MAAM,EAAE,SAAS,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,UAAmB,EAAE,GAAG,EAAE,CAAC,CAAC;QACxG,GAAG,CAAC,MAAM,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,KAAK,C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A;YACjC,MAAM,MAAM,GAAG,oBAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;YAChD,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,MAAM,CAAC,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK;gBACnF,KAAK,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,iCAAiC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAA;QACzK,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agi-fans/dsh-tui",
|
|
3
3
|
"description": "Library-only Cordis plugin suite for DeepSeek Harness terminal presentation and interaction",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.23.1",
|
|
5
5
|
"homepage": "https://omdsh.agi.fans/",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"omdsh",
|
|
@@ -160,59 +160,62 @@
|
|
|
160
160
|
"access": "public"
|
|
161
161
|
},
|
|
162
162
|
"dependencies": {
|
|
163
|
-
"@deepseek-ai/cordis-plugin-loader": "1.0
|
|
164
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
165
|
-
"@deepseek-ai/dsh-agent-default-model": "0.2.
|
|
166
|
-
"@deepseek-ai/dsh-agent-preset-registry": "0.2.
|
|
167
|
-
"@deepseek-ai/dsh-attachment": "0.2.
|
|
168
|
-
"@deepseek-ai/dsh-authorization": "0.2.
|
|
169
|
-
"@deepseek-ai/dsh-cmdline": "0.2.
|
|
170
|
-
"@deepseek-ai/dsh-commands": "0.2.
|
|
171
|
-
"@deepseek-ai/dsh-compaction": "0.2.
|
|
172
|
-
"@deepseek-ai/dsh-credentials": "0.2.
|
|
173
|
-
"@deepseek-ai/dsh-
|
|
174
|
-
"@deepseek-ai/dsh-
|
|
175
|
-
"@deepseek-ai/dsh-
|
|
176
|
-
"@deepseek-ai/dsh-
|
|
177
|
-
"@deepseek-ai/dsh-
|
|
178
|
-
"@deepseek-ai/dsh-
|
|
179
|
-
"@deepseek-ai/dsh-hooks-
|
|
180
|
-
"@deepseek-ai/dsh-
|
|
181
|
-
"@deepseek-ai/dsh-
|
|
182
|
-
"@deepseek-ai/dsh-llm
|
|
183
|
-
"@deepseek-ai/dsh-
|
|
184
|
-
"@deepseek-ai/dsh-
|
|
185
|
-
"@deepseek-ai/dsh-
|
|
186
|
-
"@deepseek-ai/dsh-
|
|
187
|
-
"@deepseek-ai/dsh-plugin-
|
|
188
|
-
"@deepseek-ai/dsh-
|
|
189
|
-
"@deepseek-ai/dsh-sandbox
|
|
190
|
-
"@deepseek-ai/dsh-
|
|
191
|
-
"@deepseek-ai/dsh-
|
|
192
|
-
"@deepseek-ai/dsh-session
|
|
193
|
-
"@deepseek-ai/dsh-session-
|
|
194
|
-
"@deepseek-ai/dsh-session-
|
|
195
|
-
"@deepseek-ai/dsh-session-
|
|
196
|
-
"@deepseek-ai/dsh-session-
|
|
197
|
-
"@deepseek-ai/dsh-session-
|
|
198
|
-
"@deepseek-ai/dsh-
|
|
199
|
-
"@deepseek-ai/dsh-
|
|
200
|
-
"@deepseek-ai/dsh-
|
|
201
|
-
"@deepseek-ai/dsh-
|
|
202
|
-
"@deepseek-ai/dsh-
|
|
203
|
-
"@deepseek-ai/dsh-
|
|
204
|
-
"@deepseek-ai/dsh-
|
|
205
|
-
"@deepseek-ai/dsh-
|
|
206
|
-
"@deepseek-ai/dsh-tool-
|
|
207
|
-
"@deepseek-ai/dsh-tool-
|
|
208
|
-
"@deepseek-ai/dsh-tool-
|
|
209
|
-
"@deepseek-ai/dsh-
|
|
210
|
-
"@deepseek-ai/dsh-
|
|
211
|
-
"@deepseek-ai/dsh-
|
|
212
|
-
"@deepseek-ai/dsh-
|
|
213
|
-
"@deepseek-ai/dsh-
|
|
214
|
-
"@deepseek-ai/dsh-
|
|
215
|
-
"@deepseek-ai/
|
|
163
|
+
"@deepseek-ai/cordis-plugin-loader": "1.1.0",
|
|
164
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
165
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.2-rc.1",
|
|
166
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.2-rc.1",
|
|
167
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
|
|
168
|
+
"@deepseek-ai/dsh-authorization": "0.2.2-rc.1",
|
|
169
|
+
"@deepseek-ai/dsh-cmdline": "0.2.2-rc.1",
|
|
170
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.1",
|
|
171
|
+
"@deepseek-ai/dsh-compaction": "0.2.2-rc.1",
|
|
172
|
+
"@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
|
|
173
|
+
"@deepseek-ai/dsh-deepseek-account": "0.2.2-rc.1",
|
|
174
|
+
"@deepseek-ai/dsh-experimental-worktree": "0.2.2-rc.1",
|
|
175
|
+
"@deepseek-ai/dsh-file-reference": "0.2.2-rc.1",
|
|
176
|
+
"@deepseek-ai/dsh-fs": "0.2.2-rc.1",
|
|
177
|
+
"@deepseek-ai/dsh-goal": "0.2.2-rc.1",
|
|
178
|
+
"@deepseek-ai/dsh-hook-protocol": "0.2.2-rc.1",
|
|
179
|
+
"@deepseek-ai/dsh-hooks-claude-code": "0.2.2-rc.1",
|
|
180
|
+
"@deepseek-ai/dsh-hooks-codex": "0.2.2-rc.1",
|
|
181
|
+
"@deepseek-ai/dsh-jobs": "0.2.2-rc.1",
|
|
182
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
183
|
+
"@deepseek-ai/dsh-llm-retry": "0.2.2-rc.1",
|
|
184
|
+
"@deepseek-ai/dsh-message-feedback": "0.2.2-rc.1",
|
|
185
|
+
"@deepseek-ai/dsh-permission-presets": "0.2.2-rc.1",
|
|
186
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.2-rc.1",
|
|
187
|
+
"@deepseek-ai/dsh-plugin-manager": "0.2.2-rc.1",
|
|
188
|
+
"@deepseek-ai/dsh-plugin-market": "0.2.2-rc.1",
|
|
189
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-rc.1",
|
|
190
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.1",
|
|
191
|
+
"@deepseek-ai/dsh-schedule": "0.2.2-rc.1",
|
|
192
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
193
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-rc.1",
|
|
194
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
|
|
195
|
+
"@deepseek-ai/dsh-session-query": "0.2.2-rc.1",
|
|
196
|
+
"@deepseek-ai/dsh-session-reference": "0.2.2-rc.1",
|
|
197
|
+
"@deepseek-ai/dsh-session-stats": "0.2.2-rc.1",
|
|
198
|
+
"@deepseek-ai/dsh-session-title": "0.2.2-rc.1",
|
|
199
|
+
"@deepseek-ai/dsh-settings": "0.2.2-rc.1",
|
|
200
|
+
"@deepseek-ai/dsh-skill": "0.2.2-rc.1",
|
|
201
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
|
|
202
|
+
"@deepseek-ai/dsh-subprocess": "0.2.2-rc.1",
|
|
203
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
|
|
204
|
+
"@deepseek-ai/dsh-terminal": "0.2.2-rc.1",
|
|
205
|
+
"@deepseek-ai/dsh-token-meter": "0.2.2-rc.1",
|
|
206
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
|
|
207
|
+
"@deepseek-ai/dsh-tool-executor-ptc": "0.2.2-rc.1",
|
|
208
|
+
"@deepseek-ai/dsh-tool-present": "0.2.2-rc.1",
|
|
209
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.2-rc.1",
|
|
210
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.2-rc.1",
|
|
211
|
+
"@deepseek-ai/dsh-tool-workflow": "0.2.2-rc.1",
|
|
212
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
213
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-rc.1",
|
|
214
|
+
"@deepseek-ai/dsh-user-questions": "0.2.2-rc.1",
|
|
215
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-rc.1",
|
|
216
|
+
"@deepseek-ai/dsh-workspace": "0.2.2-rc.1",
|
|
217
|
+
"@deepseek-ai/dsh-workspace-changes": "0.2.2-rc.1",
|
|
218
|
+
"@deepseek-ai/schemastery": "3.19.0",
|
|
216
219
|
"diff": "9.0.0",
|
|
217
220
|
"fflate": "0.8.3",
|
|
218
221
|
"lovely-mermaid": "0.3.3",
|
|
@@ -221,12 +224,12 @@
|
|
|
221
224
|
"sharp": "0.35.5"
|
|
222
225
|
},
|
|
223
226
|
"peerDependencies": {
|
|
224
|
-
"@deepseek-ai/cordis": "~4.0
|
|
227
|
+
"@deepseek-ai/cordis": "~4.1.0"
|
|
225
228
|
},
|
|
226
229
|
"devDependencies": {
|
|
227
|
-
"@deepseek-ai/cordis": "4.0
|
|
228
|
-
"@deepseek-ai/dsh-scope": "0.2.
|
|
229
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.
|
|
230
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
231
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.1",
|
|
232
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-rc.1",
|
|
230
233
|
"@types/node": "^22.10.0",
|
|
231
234
|
"@types/prismjs": "1.26.6",
|
|
232
235
|
"@xterm/headless": "6.0.0",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** The fixed startup hint line that sits under the header. */
|
|
2
|
-
/** One key/action pair: the key, then what it opens. */
|
|
3
|
-
export interface WelcomeHint {
|
|
4
|
-
key: string;
|
|
5
|
-
text: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* What the header teaches, in the order a new reader needs it.
|
|
9
|
-
*
|
|
10
|
-
* Four entries, and each one has to earn its place on two counts: it must be
|
|
11
|
-
* impossible to guess, and it must change what the reader can do. That is why
|
|
12
|
-
* `Ctrl+R` is not here — history search is a shortcut you go looking for once
|
|
13
|
-
* you already have a history, not an affordance that changes the first session.
|
|
14
|
-
* `!` is the opposite: no reader guesses that a bang runs a Shell line outside
|
|
15
|
-
* the model's context, and once they know, they use it every day.
|
|
16
|
-
*
|
|
17
|
-
* The line carries no universal key either. `Esc` cancels and `Enter` sends;
|
|
18
|
-
* a reminder of either is a permanent row about something learned in a minute.
|
|
19
|
-
* The last entry is the exit hatch — `/help` holds the rest of the catalog.
|
|
20
|
-
*/
|
|
21
|
-
export declare const WELCOME_HINTS: readonly WelcomeHint[];
|
|
22
|
-
/** The label that marks the line as advice rather than as chrome. */
|
|
23
|
-
export declare const HINT_LABEL = "Tips:";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** The fixed startup hint line that sits under the header. */
|
|
2
|
-
/**
|
|
3
|
-
* What the header teaches, in the order a new reader needs it.
|
|
4
|
-
*
|
|
5
|
-
* Four entries, and each one has to earn its place on two counts: it must be
|
|
6
|
-
* impossible to guess, and it must change what the reader can do. That is why
|
|
7
|
-
* `Ctrl+R` is not here — history search is a shortcut you go looking for once
|
|
8
|
-
* you already have a history, not an affordance that changes the first session.
|
|
9
|
-
* `!` is the opposite: no reader guesses that a bang runs a Shell line outside
|
|
10
|
-
* the model's context, and once they know, they use it every day.
|
|
11
|
-
*
|
|
12
|
-
* The line carries no universal key either. `Esc` cancels and `Enter` sends;
|
|
13
|
-
* a reminder of either is a permanent row about something learned in a minute.
|
|
14
|
-
* The last entry is the exit hatch — `/help` holds the rest of the catalog.
|
|
15
|
-
*/
|
|
16
|
-
export const WELCOME_HINTS = [
|
|
17
|
-
{ key: '/', text: 'commands' },
|
|
18
|
-
{ key: '@', text: 'files' },
|
|
19
|
-
{ key: '!', text: 'shell' },
|
|
20
|
-
{ key: '/help', text: 'all shortcuts' },
|
|
21
|
-
];
|
|
22
|
-
/** The label that marks the line as advice rather than as chrome. */
|
|
23
|
-
export const HINT_LABEL = 'Tips:';
|
|
24
|
-
//# sourceMappingURL=welcome-tips.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"welcome-tips.js","sourceRoot":"","sources":["../../src/chrome/welcome-tips.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAQ9D;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,aAAa,GAA2B;IACnD,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE;IAC9B,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE;IAC3B,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE;IAC3B,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE;CACxC,CAAA;AAED,qEAAqE;AACrE,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAA"}
|
package/lib/session/steering.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createUserMessage } from '@deepseek-ai/dsh-llm';
|
|
2
|
-
export function steerAgent(agent, text) {
|
|
3
|
-
if (text.trim() === '')
|
|
4
|
-
throw new Error('Enter guidance for the active turn.');
|
|
5
|
-
if (agent?.status !== 'running')
|
|
6
|
-
throw new Error('Steering needs an active turn. Use Enter to send the next message.');
|
|
7
|
-
agent.steer(createUserMessage({ content: [{ type: 'text', text }], source: { kind: 'user' } }));
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=steering.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"steering.js","sourceRoot":"","sources":["../../src/session/steering.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAExD,MAAM,UAAU,UAAU,CAAC,KAAwB,EAAE,IAAY;IAC/D,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;IAC9E,IAAI,KAAK,EAAE,MAAM,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,oEAAoE,CAAC,CAAA;IACtH,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;AACjG,CAAC"}
|