@agi-fans/dsh-tui 0.20.0 → 0.22.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/lib/CHANGELOG.md +249 -3
- package/lib/chrome/box.d.ts +47 -16
- package/lib/chrome/box.js +172 -130
- package/lib/chrome/box.js.map +1 -1
- package/lib/chrome/code-highlight.d.ts +15 -0
- package/lib/chrome/code-highlight.js +60 -4
- package/lib/chrome/code-highlight.js.map +1 -1
- package/lib/chrome/command-output.d.ts +29 -2
- package/lib/chrome/command-output.js +100 -4
- package/lib/chrome/command-output.js.map +1 -1
- package/lib/chrome/main-screen-renderer.d.ts +18 -0
- package/lib/chrome/main-screen-renderer.js +58 -5
- package/lib/chrome/main-screen-renderer.js.map +1 -1
- package/lib/chrome/markdown.js +30 -10
- package/lib/chrome/markdown.js.map +1 -1
- package/lib/chrome/relative-time.d.ts +17 -0
- package/lib/chrome/relative-time.js +36 -0
- package/lib/chrome/relative-time.js.map +1 -1
- package/lib/chrome/renderer.d.ts +9 -0
- package/lib/chrome/renderer.js +1 -1
- package/lib/chrome/renderer.js.map +1 -1
- package/lib/chrome/secret-mask.d.ts +35 -0
- package/lib/chrome/secret-mask.js +180 -0
- package/lib/chrome/secret-mask.js.map +1 -0
- package/lib/chrome/status-config.d.ts +161 -51
- package/lib/chrome/status-config.js +237 -126
- package/lib/chrome/status-config.js.map +1 -1
- package/lib/chrome/status-line.d.ts +3 -2
- package/lib/chrome/status-line.js +105 -63
- package/lib/chrome/status-line.js.map +1 -1
- package/lib/chrome/terminal-colors.d.ts +85 -0
- package/lib/chrome/terminal-colors.js +230 -0
- package/lib/chrome/terminal-colors.js.map +1 -0
- package/lib/chrome/terminal-images.d.ts +9 -1
- package/lib/chrome/terminal-images.js +27 -4
- package/lib/chrome/terminal-images.js.map +1 -1
- package/lib/chrome/theme.d.ts +32 -9
- package/lib/chrome/theme.js +616 -520
- package/lib/chrome/theme.js.map +1 -1
- package/lib/chrome/tool-args.d.ts +1 -1
- package/lib/chrome/tool-args.js +3 -1
- package/lib/chrome/tool-args.js.map +1 -1
- package/lib/chrome/tool-renderers.d.ts +2 -0
- package/lib/chrome/tool-renderers.js +69 -3
- package/lib/chrome/tool-renderers.js.map +1 -1
- package/lib/chrome/tools-list.d.ts +1 -4
- package/lib/chrome/tools-list.js +1 -41
- package/lib/chrome/tools-list.js.map +1 -1
- package/lib/chrome/welcome-tips.d.ts +20 -7
- package/lib/chrome/welcome-tips.js +22 -41
- package/lib/chrome/welcome-tips.js.map +1 -1
- package/lib/commands/auth-ids.d.ts +25 -0
- package/lib/commands/auth-ids.js +27 -0
- package/lib/commands/auth-ids.js.map +1 -0
- package/lib/commands/auth-input.d.ts +34 -0
- package/lib/commands/auth-input.js +96 -0
- package/lib/commands/auth-input.js.map +1 -0
- package/lib/commands/auth-providers.d.ts +39 -0
- package/lib/commands/auth-providers.js +125 -0
- package/lib/commands/auth-providers.js.map +1 -0
- package/lib/commands/auth.d.ts +16 -22
- package/lib/commands/auth.js +346 -299
- package/lib/commands/auth.js.map +1 -1
- package/lib/commands/btw.d.ts +27 -0
- package/lib/commands/btw.js +59 -0
- package/lib/commands/btw.js.map +1 -0
- package/lib/commands/diff.js +30 -5
- package/lib/commands/diff.js.map +1 -1
- package/lib/commands/export.d.ts +1 -1
- package/lib/commands/export.js +5 -3
- package/lib/commands/export.js.map +1 -1
- package/lib/commands/files.d.ts +17 -1
- package/lib/commands/files.js +69 -61
- package/lib/commands/files.js.map +1 -1
- package/lib/commands/integrations.js +18 -6
- package/lib/commands/integrations.js.map +1 -1
- package/lib/commands/jobs.d.ts +19 -4
- package/lib/commands/jobs.js +50 -7
- package/lib/commands/jobs.js.map +1 -1
- package/lib/commands/model.js +109 -76
- package/lib/commands/model.js.map +1 -1
- package/lib/commands/permission.js +46 -13
- package/lib/commands/permission.js.map +1 -1
- package/lib/commands/plugins.js +196 -42
- package/lib/commands/plugins.js.map +1 -1
- package/lib/commands/schedule.d.ts +29 -0
- package/lib/commands/schedule.js +228 -0
- package/lib/commands/schedule.js.map +1 -0
- package/lib/commands/session-configuration.d.ts +1 -1
- package/lib/commands/session-configuration.js +29 -28
- package/lib/commands/session-configuration.js.map +1 -1
- package/lib/commands/session.js +75 -80
- package/lib/commands/session.js.map +1 -1
- package/lib/commands/terminal.d.ts +24 -4
- package/lib/commands/terminal.js +38 -94
- package/lib/commands/terminal.js.map +1 -1
- package/lib/commands/trajectory.js +4 -1
- package/lib/commands/trajectory.js.map +1 -1
- package/lib/definition.d.ts +150 -11
- 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 +51 -0
- package/lib/input/actions.js +120 -0
- package/lib/input/actions.js.map +1 -0
- package/lib/input/editor-discovery.js +2 -2
- package/lib/input/editor-discovery.js.map +1 -1
- package/lib/input/editor.d.ts +0 -10
- package/lib/input/editor.js +11 -9
- package/lib/input/editor.js.map +1 -1
- package/lib/input/image-paste.d.ts +19 -1
- package/lib/input/image-paste.js +82 -1
- package/lib/input/image-paste.js.map +1 -1
- package/lib/input/keybindings-config.d.ts +15 -4
- package/lib/input/keybindings-config.js +57 -35
- package/lib/input/keybindings-config.js.map +1 -1
- package/lib/input/keys.d.ts +18 -0
- package/lib/input/keys.js +48 -3
- package/lib/input/keys.js.map +1 -1
- package/lib/input/wheel-scroll.d.ts +46 -0
- package/lib/input/wheel-scroll.js +69 -0
- package/lib/input/wheel-scroll.js.map +1 -0
- package/lib/prompt-intents.d.ts +182 -0
- package/lib/prompt-intents.js +127 -0
- package/lib/prompt-intents.js.map +1 -0
- package/lib/runtime/agent-profile.d.ts +5 -0
- package/lib/runtime/agent-profile.js +12 -0
- package/lib/runtime/agent-profile.js.map +1 -1
- package/lib/runtime/approval-rules.d.ts +59 -0
- package/lib/runtime/approval-rules.js +179 -0
- package/lib/runtime/approval-rules.js.map +1 -0
- package/lib/runtime/btw-policy.d.ts +7 -0
- package/lib/runtime/btw-policy.js +18 -0
- package/lib/runtime/btw-policy.js.map +1 -0
- package/lib/runtime/btw.d.ts +47 -0
- package/lib/runtime/btw.js +200 -0
- package/lib/runtime/btw.js.map +1 -0
- package/lib/runtime/cancellable.d.ts +75 -0
- package/lib/runtime/cancellable.js +76 -0
- package/lib/runtime/cancellable.js.map +1 -0
- package/lib/runtime/composer-images.js +5 -4
- package/lib/runtime/composer-images.js.map +1 -1
- package/lib/runtime/composer-shell.d.ts +30 -0
- package/lib/runtime/composer-shell.js +150 -0
- package/lib/runtime/composer-shell.js.map +1 -0
- package/lib/runtime/file-recovery-local.d.ts +73 -0
- package/lib/runtime/file-recovery-local.js +351 -0
- package/lib/runtime/file-recovery-local.js.map +1 -0
- package/lib/runtime/file-recovery-recording.d.ts +23 -0
- package/lib/runtime/file-recovery-recording.js +131 -0
- package/lib/runtime/file-recovery-recording.js.map +1 -0
- package/lib/runtime/file-recovery-review.d.ts +3 -0
- package/lib/runtime/file-recovery-review.js +130 -0
- package/lib/runtime/file-recovery-review.js.map +1 -0
- package/lib/runtime/file-recovery-store.d.ts +83 -0
- package/lib/runtime/file-recovery-store.js +329 -0
- package/lib/runtime/file-recovery-store.js.map +1 -0
- package/lib/runtime/file-recovery-worker.d.ts +22 -0
- package/lib/runtime/file-recovery-worker.js +153 -0
- package/lib/runtime/file-recovery-worker.js.map +1 -0
- package/lib/runtime/file-review.d.ts +6 -3
- package/lib/runtime/file-review.js +44 -7
- package/lib/runtime/file-review.js.map +1 -1
- package/lib/runtime/herdr-agent.d.ts +4 -13
- package/lib/runtime/herdr-agent.js +19 -63
- package/lib/runtime/herdr-agent.js.map +1 -1
- package/lib/runtime/plain-tui.d.ts +2 -0
- package/lib/runtime/plain-tui.js +7 -1
- package/lib/runtime/plain-tui.js.map +1 -1
- package/lib/runtime/plugin-settings.d.ts +25 -2
- package/lib/runtime/plugin-settings.js +329 -31
- package/lib/runtime/plugin-settings.js.map +1 -1
- package/lib/runtime/provider-local.d.ts +81 -24
- package/lib/runtime/provider-local.js +1807 -608
- package/lib/runtime/provider-local.js.map +1 -1
- package/lib/runtime/runner.js +52 -12
- package/lib/runtime/runner.js.map +1 -1
- package/lib/runtime/session-archive.d.ts +6 -0
- package/lib/runtime/session-archive.js +129 -3
- package/lib/runtime/session-archive.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-preferences.d.ts +5 -0
- package/lib/runtime/settings-preferences.js +34 -0
- package/lib/runtime/settings-preferences.js.map +1 -0
- package/lib/runtime/startup-notices.js +2 -0
- package/lib/runtime/startup-notices.js.map +1 -1
- package/lib/runtime/terminal-modes.d.ts +47 -0
- package/lib/runtime/terminal-modes.js +86 -0
- package/lib/runtime/terminal-modes.js.map +1 -0
- package/lib/runtime/terminal-notifications.d.ts +3 -5
- package/lib/runtime/terminal-notifications.js +4 -8
- package/lib/runtime/terminal-notifications.js.map +1 -1
- package/lib/runtime/terminal-probe.d.ts +36 -0
- package/lib/runtime/terminal-probe.js +37 -0
- package/lib/runtime/terminal-probe.js.map +1 -0
- package/lib/runtime/terminal-session.d.ts +57 -0
- package/lib/runtime/terminal-session.js +164 -0
- package/lib/runtime/terminal-session.js.map +1 -0
- package/lib/runtime/terminal-state.d.ts +29 -0
- package/lib/runtime/terminal-state.js +62 -0
- package/lib/runtime/terminal-state.js.map +1 -0
- package/lib/runtime/tool-presentation.js +50 -14
- package/lib/runtime/tool-presentation.js.map +1 -1
- package/lib/session/external-agents.d.ts +5 -0
- package/lib/session/external-agents.js +27 -0
- package/lib/session/external-agents.js.map +1 -0
- package/lib/session/feature-toggles.d.ts +1 -1
- package/lib/session/feature-toggles.js +1 -1
- package/lib/session/interaction-adapter.d.ts +1 -6
- package/lib/session/interaction-adapter.js +95 -18
- package/lib/session/interaction-adapter.js.map +1 -1
- package/lib/session/message-queue.js +1 -1
- package/lib/session/message-queue.js.map +1 -1
- package/lib/session/model-readiness.d.ts +16 -0
- package/lib/session/model-readiness.js +43 -0
- package/lib/session/model-readiness.js.map +1 -0
- package/lib/session/package-metadata.d.ts +8 -0
- package/lib/session/package-metadata.js +8 -0
- package/lib/session/package-metadata.js.map +1 -1
- package/lib/session/project-context.d.ts +5 -0
- package/lib/session/project-context.js +36 -0
- package/lib/session/project-context.js.map +1 -1
- package/lib/session/session-controller.d.ts +10 -13
- package/lib/session/session-controller.js +183 -98
- package/lib/session/session-controller.js.map +1 -1
- package/lib/session/session-library.js +2 -0
- package/lib/session/session-library.js.map +1 -1
- package/lib/session/session-tree.d.ts +3 -0
- package/lib/session/session-tree.js +3 -1
- package/lib/session/session-tree.js.map +1 -1
- package/lib/session/subagent-roster.d.ts +2 -1
- package/lib/session/subagent-roster.js +24 -3
- package/lib/session/subagent-roster.js.map +1 -1
- package/lib/session/subagent-tracker.d.ts +6 -2
- package/lib/session/subagent-tracker.js +49 -2
- package/lib/session/subagent-tracker.js.map +1 -1
- package/lib/session/tui-settings.d.ts +47 -13
- package/lib/session/tui-settings.js +76 -34
- package/lib/session/tui-settings.js.map +1 -1
- package/lib/session/working-directory.d.ts +4 -0
- package/lib/session/working-directory.js +4 -0
- package/lib/session/working-directory.js.map +1 -0
- package/lib/session/worktrees.d.ts +13 -0
- package/lib/session/worktrees.js +49 -0
- package/lib/session/worktrees.js.map +1 -0
- package/lib/views/approval-rule.d.ts +3 -0
- package/lib/views/approval-rule.js +4 -0
- package/lib/views/approval-rule.js.map +1 -0
- package/lib/views/at-complete.d.ts +8 -0
- package/lib/views/at-complete.js +64 -2
- package/lib/views/at-complete.js.map +1 -1
- package/lib/views/autocomplete.d.ts +22 -2
- package/lib/views/autocomplete.js +70 -40
- package/lib/views/autocomplete.js.map +1 -1
- package/lib/views/copy-targets.d.ts +13 -14
- package/lib/views/copy-targets.js +42 -54
- package/lib/views/copy-targets.js.map +1 -1
- package/lib/views/document-reader.js +18 -5
- package/lib/views/document-reader.js.map +1 -1
- package/lib/views/event-views.d.ts +1 -1
- package/lib/views/event-views.js +60 -6
- package/lib/views/event-views.js.map +1 -1
- package/lib/views/file-actions.d.ts +12 -0
- package/lib/views/file-actions.js +72 -0
- package/lib/views/file-actions.js.map +1 -0
- package/lib/views/history-search.js +15 -21
- package/lib/views/history-search.js.map +1 -1
- package/lib/views/hotkeys.d.ts +8 -1
- package/lib/views/hotkeys.js +53 -26
- package/lib/views/hotkeys.js.map +1 -1
- package/lib/views/list-navigation.d.ts +62 -0
- package/lib/views/list-navigation.js +73 -0
- package/lib/views/list-navigation.js.map +1 -0
- package/lib/views/list-view.d.ts +99 -0
- package/lib/views/list-view.js +165 -0
- package/lib/views/list-view.js.map +1 -0
- package/lib/views/prompt-selector.d.ts +34 -4
- package/lib/views/prompt-selector.js +270 -134
- package/lib/views/prompt-selector.js.map +1 -1
- package/lib/views/session-files.d.ts +1 -2
- package/lib/views/session-files.js +1 -11
- package/lib/views/session-files.js.map +1 -1
- package/lib/views/settings-list.d.ts +51 -10
- package/lib/views/settings-list.js +267 -315
- package/lib/views/settings-list.js.map +1 -1
- package/lib/views/trajectory-timeline.d.ts +72 -0
- package/lib/views/trajectory-timeline.js +133 -0
- package/lib/views/trajectory-timeline.js.map +1 -0
- package/lib/views/trajectory.d.ts +15 -4
- package/lib/views/trajectory.js +557 -123
- package/lib/views/trajectory.js.map +1 -1
- package/lib/views/transcript-export.js +9 -0
- package/lib/views/transcript-export.js.map +1 -1
- package/lib/views/transcript-render.d.ts +97 -25
- package/lib/views/transcript-render.js +542 -170
- package/lib/views/transcript-render.js.map +1 -1
- package/lib/views/transcript-search.d.ts +39 -6
- package/lib/views/transcript-search.js +46 -11
- package/lib/views/transcript-search.js.map +1 -1
- package/lib/views/transcript-types.d.ts +63 -5
- package/lib/views/transcript-types.js +23 -11
- package/lib/views/transcript-types.js.map +1 -1
- package/package.json +95 -65
- package/lib/commands/loop.d.ts +0 -52
- package/lib/commands/loop.js +0 -307
- package/lib/commands/loop.js.map +0 -1
- package/lib/commands/steer.d.ts +0 -5
- package/lib/commands/steer.js +0 -24
- package/lib/commands/steer.js.map +0 -1
- package/lib/runtime/terminal-reader.d.ts +0 -11
- package/lib/runtime/terminal-reader.js +0 -87
- package/lib/runtime/terminal-reader.js.map +0 -1
- package/lib/views/agent-hub.d.ts +0 -32
- package/lib/views/agent-hub.js +0 -206
- package/lib/views/agent-hub.js.map +0 -1
- package/lib/views/copy-selector.d.ts +0 -51
- package/lib/views/copy-selector.js +0 -139
- package/lib/views/copy-selector.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript-search.js","sourceRoot":"","sources":["../../src/views/transcript-search.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAkB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"transcript-search.js","sourceRoot":"","sources":["../../src/views/transcript-search.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAkB,MAAM,oBAAoB,CAAA;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAkBrD,MAAM,UAAU,sBAAsB;IACpC,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAA;AAChD,CAAC;AAED,SAAS,QAAQ,CAAC,KAAa;IAC7B,OAAO,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;AACnC,CAAC;AA2BD;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,MAAkC,EAAE,KAAa;IAC7E,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC9B,IAAI,MAAM,KAAK,EAAE;QAAE,OAAO,EAAE,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essage } from '@deepseek-ai/dsh-llm';
|
|
8
|
+
import type { ImageAttachmentRef } from '@deepseek-ai/dsh-attachment';
|
|
8
9
|
import type { SessionEvent } from '@deepseek-ai/dsh-session';
|
|
9
10
|
import type { WorkspaceChangesSummary } from '@deepseek-ai/dsh-workspace-changes';
|
|
10
11
|
import type { TuiToolPresentation } from '../chrome/tool-renderers.ts';
|
|
11
|
-
import type { ToolInfo } from '../chrome/tools-list.ts';
|
|
12
12
|
export type TodoItem = Extract<SessionEvent, {
|
|
13
13
|
type: 'todo/write';
|
|
14
14
|
}>['data']['todos'][number];
|
|
@@ -32,6 +32,8 @@ export interface WorkspaceBlock {
|
|
|
32
32
|
export type Block = {
|
|
33
33
|
kind: 'user';
|
|
34
34
|
text: string;
|
|
35
|
+
/** The first image the reader attached, kept so it can be previewed inline. */
|
|
36
|
+
image?: ImageAttachmentRef;
|
|
35
37
|
} | {
|
|
36
38
|
kind: 'assistant';
|
|
37
39
|
turn: number;
|
|
@@ -54,6 +56,11 @@ export type Block = {
|
|
|
54
56
|
status: 'completed' | 'failed' | 'killed';
|
|
55
57
|
detail?: string;
|
|
56
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* The first image this call returned, kept so the live view can preview it
|
|
61
|
+
* and the reader can still open it after the rows fall into history.
|
|
62
|
+
*/
|
|
63
|
+
image?: ImageAttachmentRef;
|
|
57
64
|
partial?: boolean;
|
|
58
65
|
presentation?: TuiToolPresentation;
|
|
59
66
|
/**
|
|
@@ -68,13 +75,46 @@ export type Block = {
|
|
|
68
75
|
parentCallId?: ToolCallId;
|
|
69
76
|
/** The turn that made the call, so two turns with no prompt between them still read as two runs. */
|
|
70
77
|
turn?: number;
|
|
71
|
-
} | {
|
|
72
|
-
kind: 'toolCatalog';
|
|
73
|
-
tools: readonly ToolInfo[];
|
|
74
78
|
} | {
|
|
75
79
|
kind: 'commandOutput';
|
|
76
80
|
command: string;
|
|
77
81
|
text: string;
|
|
82
|
+
surface?: 'aside';
|
|
83
|
+
} | {
|
|
84
|
+
/**
|
|
85
|
+
* A finished side question, kept as one line.
|
|
86
|
+
*
|
|
87
|
+
* The answer arrived in the pane above the composer; leaving it there would
|
|
88
|
+
* mean the reader has to choose between the screen space and the text. Closing
|
|
89
|
+
* the pane collapses it into this block instead, so the exchange stays where
|
|
90
|
+
* the terminal keeps everything already read: one row, with the answer behind
|
|
91
|
+
* the same `Ctrl+O` that opens any other fold.
|
|
92
|
+
*
|
|
93
|
+
* A local presentation block, not a session event: the side conversation has
|
|
94
|
+
* its own durable log, and this session's log is left untouched — which is why
|
|
95
|
+
* the row does not come back after a resume, exactly like any other command
|
|
96
|
+
* output.
|
|
97
|
+
*/
|
|
98
|
+
kind: 'aside';
|
|
99
|
+
question: string;
|
|
100
|
+
text: string;
|
|
101
|
+
} | {
|
|
102
|
+
/**
|
|
103
|
+
* A Shell line the reader ran themselves with a leading `!`.
|
|
104
|
+
*
|
|
105
|
+
* It is a transcript block rather than a full-screen reader because the
|
|
106
|
+
* output is the answer to a question the reader just asked: it belongs where
|
|
107
|
+
* the conversation is, streams as it arrives, and is finished when the
|
|
108
|
+
* command exits. Nothing here waits for an exit gesture.
|
|
109
|
+
*/
|
|
110
|
+
kind: 'shell';
|
|
111
|
+
command: string;
|
|
112
|
+
output: string;
|
|
113
|
+
status: 'running' | 'ok' | 'error';
|
|
114
|
+
/** Exit code, once the command settled. */
|
|
115
|
+
code?: number;
|
|
116
|
+
/** The reader asked for the output to enter the conversation. */
|
|
117
|
+
shared?: boolean;
|
|
78
118
|
} | WorkspaceBlock | {
|
|
79
119
|
kind: 'notice';
|
|
80
120
|
level: 'info' | 'warning' | 'error';
|
|
@@ -150,10 +190,28 @@ export interface TranscriptState {
|
|
|
150
190
|
start: number;
|
|
151
191
|
end?: number;
|
|
152
192
|
}>>;
|
|
193
|
+
/**
|
|
194
|
+
* Turns the reader stopped before they finished.
|
|
195
|
+
*
|
|
196
|
+
* Their runs keep their rows until the next submission. Interrupting is an
|
|
197
|
+
* action taken while watching that work, so folding at that moment takes the
|
|
198
|
+
* rows out from under the reader — and, because a fold shortens the document,
|
|
199
|
+
* it also exposes rows already committed to native history. A completed run
|
|
200
|
+
* folds because its summary describes finished work; an interrupted one has no
|
|
201
|
+
* conclusion to summarize.
|
|
202
|
+
*/
|
|
203
|
+
stoppedTurns?: readonly number[];
|
|
153
204
|
}
|
|
154
205
|
/** Empty starting state. */
|
|
155
206
|
export declare function initialTranscript(): TranscriptState;
|
|
156
|
-
/**
|
|
207
|
+
/**
|
|
208
|
+
* Extract plain text from text blocks, naming other block kinds.
|
|
209
|
+
*
|
|
210
|
+
* The name is deliberately bare, the way Pi and oh-my-pi name one: the picture
|
|
211
|
+
* itself is the content, so the text only says what kind of thing sits at this
|
|
212
|
+
* point. Dimensions, byte counts and the full MIME string belong in the tool
|
|
213
|
+
* that produced the file, not in every message that carries it.
|
|
214
|
+
*/
|
|
157
215
|
export declare function contentToText(content: readonly ContentBlock[]): string;
|
|
158
216
|
/** Extract reasoning text from reasoning blocks. */
|
|
159
217
|
export declare function contentToReasoning(content: readonly ContentBlock[]): string;
|
|
@@ -19,23 +19,35 @@ export function initialTranscript() {
|
|
|
19
19
|
turnError: undefined,
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* Extract plain text from text blocks, naming other block kinds.
|
|
24
|
+
*
|
|
25
|
+
* The name is deliberately bare, the way Pi and oh-my-pi name one: the picture
|
|
26
|
+
* itself is the content, so the text only says what kind of thing sits at this
|
|
27
|
+
* point. Dimensions, byte counts and the full MIME string belong in the tool
|
|
28
|
+
* that produced the file, not in every message that carries it.
|
|
29
|
+
*/
|
|
23
30
|
export function contentToText(content) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if (block.type === 'text')
|
|
27
|
-
|
|
31
|
+
let text = '';
|
|
32
|
+
for (const block of content) {
|
|
33
|
+
if (block.type === 'text') {
|
|
34
|
+
text += block.text;
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if (block.type !== 'image' && block.type !== 'file')
|
|
38
|
+
continue;
|
|
39
|
+
if (text !== '' && !/\s$/u.test(text))
|
|
40
|
+
text += ' ';
|
|
28
41
|
if (block.type === 'image') {
|
|
29
42
|
const ref = block.attachment;
|
|
30
|
-
|
|
43
|
+
text += `[Image: ${ref.mediaType}]`;
|
|
31
44
|
}
|
|
32
|
-
|
|
45
|
+
else {
|
|
33
46
|
const ref = block.attachment;
|
|
34
|
-
|
|
47
|
+
text += `[File: ${ref.name}]`;
|
|
35
48
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.join('');
|
|
49
|
+
}
|
|
50
|
+
return text;
|
|
39
51
|
}
|
|
40
52
|
/** Extract reasoning text from reasoning blocks. */
|
|
41
53
|
export function contentToReasoning(content) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript-types.js","sourceRoot":"","sources":["../../src/views/transcript-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"transcript-types.js","sourceRoot":"","sources":["../../src/views/transcript-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AA6LvD,4BAA4B;AAC5B,MAAM,UAAU,iBAAiB;IAC/B,OAAO;QACL,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,EAAE;QACT,gBAAgB,EAAE,SAAS;QAC3B,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,EAAE;QACjB,aAAa,EAAE,EAAE;QACjB,SAAS,EAAE,SAAS;KACrB,CAAA;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAAC,OAAgC;IAC5D,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,KAAK,MAAM,KAAK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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.22.0",
|
|
5
5
|
"homepage": "https://omdsh.agi.fans/",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"omdsh",
|
|
@@ -26,6 +26,14 @@
|
|
|
26
26
|
"main": "lib/index.js",
|
|
27
27
|
"types": "lib/index.d.ts",
|
|
28
28
|
"exports": {
|
|
29
|
+
"./file-recovery-local": {
|
|
30
|
+
"types": "./lib/runtime/file-recovery-local.d.ts",
|
|
31
|
+
"default": "./lib/runtime/file-recovery-local.js"
|
|
32
|
+
},
|
|
33
|
+
"./approval-rules": {
|
|
34
|
+
"types": "./lib/runtime/approval-rules.d.ts",
|
|
35
|
+
"default": "./lib/runtime/approval-rules.js"
|
|
36
|
+
},
|
|
29
37
|
".": {
|
|
30
38
|
"types": "./lib/index.d.ts",
|
|
31
39
|
"default": "./lib/index.js"
|
|
@@ -66,14 +74,6 @@
|
|
|
66
74
|
"types": "./lib/commands/session-configuration.d.ts",
|
|
67
75
|
"default": "./lib/commands/session-configuration.js"
|
|
68
76
|
},
|
|
69
|
-
"./command-steer": {
|
|
70
|
-
"types": "./lib/commands/steer.d.ts",
|
|
71
|
-
"default": "./lib/commands/steer.js"
|
|
72
|
-
},
|
|
73
|
-
"./command-loop": {
|
|
74
|
-
"types": "./lib/commands/loop.d.ts",
|
|
75
|
-
"default": "./lib/commands/loop.js"
|
|
76
|
-
},
|
|
77
77
|
"./command-model": {
|
|
78
78
|
"types": "./lib/commands/model.d.ts",
|
|
79
79
|
"default": "./lib/commands/model.js"
|
|
@@ -86,10 +86,26 @@
|
|
|
86
86
|
"types": "./lib/commands/jobs.d.ts",
|
|
87
87
|
"default": "./lib/commands/jobs.js"
|
|
88
88
|
},
|
|
89
|
+
"./model-readiness": {
|
|
90
|
+
"types": "./lib/session/model-readiness.d.ts",
|
|
91
|
+
"default": "./lib/session/model-readiness.js"
|
|
92
|
+
},
|
|
89
93
|
"./command-auth": {
|
|
90
94
|
"types": "./lib/commands/auth.d.ts",
|
|
91
95
|
"default": "./lib/commands/auth.js"
|
|
92
96
|
},
|
|
97
|
+
"./command-plugins": {
|
|
98
|
+
"types": "./lib/commands/plugins.d.ts",
|
|
99
|
+
"default": "./lib/commands/plugins.js"
|
|
100
|
+
},
|
|
101
|
+
"./command-schedule": {
|
|
102
|
+
"types": "./lib/commands/schedule.d.ts",
|
|
103
|
+
"default": "./lib/commands/schedule.js"
|
|
104
|
+
},
|
|
105
|
+
"./command-trajectory": {
|
|
106
|
+
"types": "./lib/commands/trajectory.d.ts",
|
|
107
|
+
"default": "./lib/commands/trajectory.js"
|
|
108
|
+
},
|
|
93
109
|
"./command-diff": {
|
|
94
110
|
"types": "./lib/commands/diff.d.ts",
|
|
95
111
|
"default": "./lib/commands/diff.js"
|
|
@@ -98,10 +114,6 @@
|
|
|
98
114
|
"types": "./lib/commands/export.d.ts",
|
|
99
115
|
"default": "./lib/commands/export.js"
|
|
100
116
|
},
|
|
101
|
-
"./command-trajectory": {
|
|
102
|
-
"types": "./lib/commands/trajectory.d.ts",
|
|
103
|
-
"default": "./lib/commands/trajectory.js"
|
|
104
|
-
},
|
|
105
117
|
"./command-integrations": {
|
|
106
118
|
"types": "./lib/commands/integrations.d.ts",
|
|
107
119
|
"default": "./lib/commands/integrations.js"
|
|
@@ -111,10 +123,6 @@
|
|
|
111
123
|
"default": "./lib/runtime/startup-notices.js"
|
|
112
124
|
},
|
|
113
125
|
"./package.json": "./package.json",
|
|
114
|
-
"./command-plugins": {
|
|
115
|
-
"types": "./lib/commands/plugins.d.ts",
|
|
116
|
-
"default": "./lib/commands/plugins.js"
|
|
117
|
-
},
|
|
118
126
|
"./subagent-model-selection": {
|
|
119
127
|
"types": "./lib/runtime/subagent-model-selection.d.ts",
|
|
120
128
|
"default": "./lib/runtime/subagent-model-selection.js"
|
|
@@ -130,6 +138,18 @@
|
|
|
130
138
|
"./hook-settings": {
|
|
131
139
|
"types": "./lib/runtime/hook-settings.d.ts",
|
|
132
140
|
"default": "./lib/runtime/hook-settings.js"
|
|
141
|
+
},
|
|
142
|
+
"./btw-policy": {
|
|
143
|
+
"types": "./lib/runtime/btw-policy.d.ts",
|
|
144
|
+
"default": "./lib/runtime/btw-policy.js"
|
|
145
|
+
},
|
|
146
|
+
"./btw": {
|
|
147
|
+
"types": "./lib/runtime/btw.d.ts",
|
|
148
|
+
"default": "./lib/runtime/btw.js"
|
|
149
|
+
},
|
|
150
|
+
"./command-btw": {
|
|
151
|
+
"types": "./lib/commands/btw.d.ts",
|
|
152
|
+
"default": "./lib/commands/btw.js"
|
|
133
153
|
}
|
|
134
154
|
},
|
|
135
155
|
"files": [
|
|
@@ -140,63 +160,73 @@
|
|
|
140
160
|
"access": "public"
|
|
141
161
|
},
|
|
142
162
|
"dependencies": {
|
|
143
|
-
"@deepseek-ai/cordis-plugin-loader": "1.0.6
|
|
144
|
-
"@deepseek-ai/dsh-agent": "0.2.1-
|
|
145
|
-
"@deepseek-ai/dsh-agent-default-model": "0.2.1-
|
|
146
|
-
"@deepseek-ai/dsh-agent-preset-registry": "0.2.1-
|
|
147
|
-
"@deepseek-ai/dsh-attachment": "0.2.1-
|
|
148
|
-
"@deepseek-ai/dsh-authorization": "0.2.1-
|
|
149
|
-
"@deepseek-ai/dsh-cmdline": "0.2.1-
|
|
150
|
-
"@deepseek-ai/dsh-commands": "0.2.1-
|
|
151
|
-
"@deepseek-ai/dsh-compaction": "0.2.1-
|
|
152
|
-
"@deepseek-ai/dsh-credentials": "0.2.1-
|
|
153
|
-
"@deepseek-ai/dsh-
|
|
154
|
-
"@deepseek-ai/dsh-
|
|
155
|
-
"@deepseek-ai/dsh-
|
|
156
|
-
"@deepseek-ai/dsh-
|
|
157
|
-
"@deepseek-ai/dsh-
|
|
158
|
-
"@deepseek-ai/dsh-
|
|
159
|
-
"@deepseek-ai/dsh-
|
|
160
|
-
"@deepseek-ai/dsh-
|
|
161
|
-
"@deepseek-ai/dsh-
|
|
162
|
-
"@deepseek-ai/dsh-
|
|
163
|
-
"@deepseek-ai/dsh-
|
|
164
|
-
"@deepseek-ai/dsh-
|
|
165
|
-
"@deepseek-ai/dsh-
|
|
166
|
-
"@deepseek-ai/dsh-
|
|
167
|
-
"@deepseek-ai/dsh-
|
|
168
|
-
"@deepseek-ai/dsh-
|
|
169
|
-
"@deepseek-ai/dsh-
|
|
170
|
-
"@deepseek-ai/dsh-
|
|
171
|
-
"@deepseek-ai/dsh-
|
|
172
|
-
"@deepseek-ai/dsh-
|
|
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-
|
|
180
|
-
"@deepseek-ai/dsh-
|
|
181
|
-
"@deepseek-ai/dsh-
|
|
182
|
-
"@deepseek-ai/dsh-
|
|
183
|
-
"@deepseek-ai/dsh-
|
|
184
|
-
"@deepseek-ai/dsh-
|
|
185
|
-
"@deepseek-ai/
|
|
163
|
+
"@deepseek-ai/cordis-plugin-loader": "1.0.6",
|
|
164
|
+
"@deepseek-ai/dsh-agent": "0.2.1-rc.5",
|
|
165
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.1-rc.5",
|
|
166
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.1-rc.5",
|
|
167
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-rc.5",
|
|
168
|
+
"@deepseek-ai/dsh-authorization": "0.2.1-rc.5",
|
|
169
|
+
"@deepseek-ai/dsh-cmdline": "0.2.1-rc.5",
|
|
170
|
+
"@deepseek-ai/dsh-commands": "0.2.1-rc.5",
|
|
171
|
+
"@deepseek-ai/dsh-compaction": "0.2.1-rc.5",
|
|
172
|
+
"@deepseek-ai/dsh-credentials": "0.2.1-rc.5",
|
|
173
|
+
"@deepseek-ai/dsh-experimental-worktree": "0.2.1-rc.5",
|
|
174
|
+
"@deepseek-ai/dsh-file-reference": "0.2.1-rc.5",
|
|
175
|
+
"@deepseek-ai/dsh-fs": "0.2.1-rc.5",
|
|
176
|
+
"@deepseek-ai/dsh-goal": "0.2.1-rc.5",
|
|
177
|
+
"@deepseek-ai/dsh-hook-protocol": "0.2.1-rc.5",
|
|
178
|
+
"@deepseek-ai/dsh-hooks-claude-code": "0.2.1-rc.5",
|
|
179
|
+
"@deepseek-ai/dsh-hooks-codex": "0.2.1-rc.5",
|
|
180
|
+
"@deepseek-ai/dsh-jobs": "0.2.1-rc.5",
|
|
181
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.5",
|
|
182
|
+
"@deepseek-ai/dsh-llm-retry": "0.2.1-rc.5",
|
|
183
|
+
"@deepseek-ai/dsh-message-feedback": "0.2.1-rc.5",
|
|
184
|
+
"@deepseek-ai/dsh-permission-presets": "0.2.1-rc.5",
|
|
185
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.1-rc.5",
|
|
186
|
+
"@deepseek-ai/dsh-plugin-manager": "0.2.1-rc.5",
|
|
187
|
+
"@deepseek-ai/dsh-plugin-market": "0.2.1-rc.5",
|
|
188
|
+
"@deepseek-ai/dsh-sandbox": "0.2.1-rc.5",
|
|
189
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.5",
|
|
190
|
+
"@deepseek-ai/dsh-schedule": "0.2.1-rc.5",
|
|
191
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.5",
|
|
192
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.1-rc.5",
|
|
193
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.5",
|
|
194
|
+
"@deepseek-ai/dsh-session-query": "0.2.1-rc.5",
|
|
195
|
+
"@deepseek-ai/dsh-session-reference": "0.2.1-rc.5",
|
|
196
|
+
"@deepseek-ai/dsh-session-stats": "0.2.1-rc.5",
|
|
197
|
+
"@deepseek-ai/dsh-session-title": "0.2.1-rc.5",
|
|
198
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.5",
|
|
199
|
+
"@deepseek-ai/dsh-skill": "0.2.1-rc.5",
|
|
200
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-rc.5",
|
|
201
|
+
"@deepseek-ai/dsh-subprocess": "0.2.1-rc.5",
|
|
202
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.5",
|
|
203
|
+
"@deepseek-ai/dsh-terminal": "0.2.1-rc.5",
|
|
204
|
+
"@deepseek-ai/dsh-token-meter": "0.2.1-rc.5",
|
|
205
|
+
"@deepseek-ai/dsh-tool-present": "0.2.1-rc.5",
|
|
206
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.1-rc.5",
|
|
207
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.1-rc.5",
|
|
208
|
+
"@deepseek-ai/dsh-tool-workflow": "0.2.1-rc.5",
|
|
209
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.5",
|
|
210
|
+
"@deepseek-ai/dsh-user-approval": "0.2.1-rc.5",
|
|
211
|
+
"@deepseek-ai/dsh-user-questions": "0.2.1-rc.5",
|
|
212
|
+
"@deepseek-ai/dsh-working-directory": "0.2.1-rc.5",
|
|
213
|
+
"@deepseek-ai/dsh-workspace": "0.2.1-rc.5",
|
|
214
|
+
"@deepseek-ai/dsh-workspace-changes": "0.2.1-rc.5",
|
|
215
|
+
"@deepseek-ai/schemastery": "3.18.5",
|
|
186
216
|
"diff": "9.0.0",
|
|
187
217
|
"fflate": "0.8.3",
|
|
188
218
|
"lovely-mermaid": "0.3.3",
|
|
189
219
|
"marked": "15.0.12",
|
|
190
220
|
"prismjs": "1.30.0",
|
|
191
|
-
"sharp": "0.35.
|
|
221
|
+
"sharp": "0.35.5"
|
|
192
222
|
},
|
|
193
223
|
"peerDependencies": {
|
|
194
|
-
"@deepseek-ai/cordis": "~4.0.5
|
|
224
|
+
"@deepseek-ai/cordis": "~4.0.5"
|
|
195
225
|
},
|
|
196
226
|
"devDependencies": {
|
|
197
|
-
"@deepseek-ai/cordis": "4.0.5
|
|
198
|
-
"@deepseek-ai/dsh-scope": "0.2.1-
|
|
199
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-
|
|
227
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
228
|
+
"@deepseek-ai/dsh-scope": "0.2.1-rc.5",
|
|
229
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.5",
|
|
200
230
|
"@types/node": "^22.10.0",
|
|
201
231
|
"@types/prismjs": "1.26.6",
|
|
202
232
|
"@xterm/headless": "6.0.0",
|
package/lib/commands/loop.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/** Process-local prompt loop contributed as an independent omdsh plugin. */
|
|
2
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
-
import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
4
|
-
import type { TuiService, TuiSubmission } from '../definition.ts';
|
|
5
|
-
export declare const name = "omdsh-command-loop";
|
|
6
|
-
export declare const inject: string[];
|
|
7
|
-
export type LoopLimit = {
|
|
8
|
-
kind: 'iterations';
|
|
9
|
-
count: number;
|
|
10
|
-
} | {
|
|
11
|
-
kind: 'duration';
|
|
12
|
-
durationMs: number;
|
|
13
|
-
label: string;
|
|
14
|
-
};
|
|
15
|
-
export interface LoopRequest {
|
|
16
|
-
limit?: LoopLimit;
|
|
17
|
-
prompt?: string;
|
|
18
|
-
}
|
|
19
|
-
interface LoopSessionPort {
|
|
20
|
-
readonly agent: Agent | undefined;
|
|
21
|
-
assertActive(agent: Agent): void;
|
|
22
|
-
send(input: string | TuiSubmission, agent?: Agent): Promise<void>;
|
|
23
|
-
}
|
|
24
|
-
/** Parse the oh-my-pi-compatible `/loop [count|duration] [prompt]` tail. */
|
|
25
|
-
export declare function parseLoopRequest(rawInput: string): LoopRequest;
|
|
26
|
-
/** Runtime state for one top-level omdsh loop; intentionally not persisted. */
|
|
27
|
-
export declare class LoopRuntime {
|
|
28
|
-
#private;
|
|
29
|
-
private readonly session;
|
|
30
|
-
private readonly tui;
|
|
31
|
-
private readonly repeatDelayMs;
|
|
32
|
-
private readonly completionMs;
|
|
33
|
-
constructor(session: LoopSessionPort, tui: Pick<TuiService, 'notice' | 'setLoopStatus'>, repeatDelayMs?: number, completionMs?: number);
|
|
34
|
-
isEnabled(agent?: Agent): boolean;
|
|
35
|
-
enable(agent: Agent, request: LoopRequest): Promise<void>;
|
|
36
|
-
disable(agent?: Agent): boolean;
|
|
37
|
-
/** Atomically accept, dispatch, and arm a human composer submission. */
|
|
38
|
-
submit(submission: TuiSubmission, agent: Agent): Promise<boolean>;
|
|
39
|
-
/** Interrupt the current iteration and wait for a new prompt without disabling Loop. */
|
|
40
|
-
pause(agent?: Agent): boolean;
|
|
41
|
-
/** Drop a loop as soon as a command replaces the active session. */
|
|
42
|
-
syncAgent(agent: Agent | undefined): void;
|
|
43
|
-
dispose(): void;
|
|
44
|
-
}
|
|
45
|
-
declare module '@deepseek-ai/cordis' {
|
|
46
|
-
interface Context {
|
|
47
|
-
/** Process-local repeated-prompt scheduler contributed by `/loop`. */
|
|
48
|
-
omdshLoop: LoopRuntime;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
export declare function apply(ctx: Context): void;
|
|
52
|
-
export {};
|