@songtonyli/dsh-cli 0.1.62 → 0.1.63
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 +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@deepseek-ai/cordis/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
- package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
- package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh/package.json +117 -117
- package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-agent/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +34 -34
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +42 -42
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +72 -72
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-base/package.json +96 -96
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-store/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +40 -40
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +36 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +41 -41
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-goal/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-llm/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +44 -44
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-otel/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +34 -34
- package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-settings/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +45 -45
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +32 -32
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-tools/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +6 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +6 -5
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +396 -111
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +81 -81
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +146 -146
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-webhook/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -36
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
- package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
- package/package.json +291 -291
|
@@ -3837,6 +3837,8 @@ var UserBlock = class {
|
|
|
3837
3837
|
highlightLevel = 0;
|
|
3838
3838
|
/** The wrapped prompt, by width and whether the gutter narrowed it. */
|
|
3839
3839
|
drawn = new LastDrawn();
|
|
3840
|
+
/** The prompt's one section, built on the first read; the text never changes. */
|
|
3841
|
+
sections;
|
|
3840
3842
|
constructor(theme, text, turn, kind = "prompt") {
|
|
3841
3843
|
this.theme = theme;
|
|
3842
3844
|
this.text = text;
|
|
@@ -3848,10 +3850,11 @@ var UserBlock = class {
|
|
|
3848
3850
|
* @returns the single `user` part, carrying the submitted text.
|
|
3849
3851
|
*/
|
|
3850
3852
|
parts() {
|
|
3851
|
-
|
|
3853
|
+
this.sections ??= [{
|
|
3852
3854
|
kind: "user",
|
|
3853
3855
|
rows: this.text.split("\n")
|
|
3854
3856
|
}];
|
|
3857
|
+
return this.sections;
|
|
3855
3858
|
}
|
|
3856
3859
|
/**
|
|
3857
3860
|
* Draw this prompt with the focus gutter, or without it.
|
|
@@ -4126,6 +4129,8 @@ var AssistantBlock = class {
|
|
|
4126
4129
|
drawn = new LastDrawn();
|
|
4127
4130
|
/** Counts every change to the text, the reasoning, or the committed state. */
|
|
4128
4131
|
revision = 0;
|
|
4132
|
+
/** The sections last read, and the revision they were built at. */
|
|
4133
|
+
sections;
|
|
4129
4134
|
constructor(theme, turn) {
|
|
4130
4135
|
this.theme = theme;
|
|
4131
4136
|
this.turn = turn;
|
|
@@ -4145,6 +4150,7 @@ var AssistantBlock = class {
|
|
|
4145
4150
|
* message has no reasoning, so a tool-call step does not add a blank section.
|
|
4146
4151
|
*/
|
|
4147
4152
|
parts() {
|
|
4153
|
+
if (this.sections?.revision === this.revision) return this.sections.parts;
|
|
4148
4154
|
const parts = [];
|
|
4149
4155
|
if (this.reasoning.trim() !== "") parts.push({
|
|
4150
4156
|
kind: "reasoning",
|
|
@@ -4154,6 +4160,10 @@ var AssistantBlock = class {
|
|
|
4154
4160
|
kind: "reply",
|
|
4155
4161
|
rows: this.text.split("\n")
|
|
4156
4162
|
});
|
|
4163
|
+
this.sections = {
|
|
4164
|
+
revision: this.revision,
|
|
4165
|
+
parts
|
|
4166
|
+
};
|
|
4157
4167
|
return parts;
|
|
4158
4168
|
}
|
|
4159
4169
|
/**
|
|
@@ -4406,6 +4416,8 @@ var ToolBlock = class {
|
|
|
4406
4416
|
drawn = new LastDrawn();
|
|
4407
4417
|
/** Counts every call or result the card was given. */
|
|
4408
4418
|
revision = 0;
|
|
4419
|
+
/** The sections last read, and the revision they were built at. */
|
|
4420
|
+
sections;
|
|
4409
4421
|
/** How many of the card's rows are drawn while it unrolls; absent draws every row. */
|
|
4410
4422
|
reveal;
|
|
4411
4423
|
/** The card's full row count, the leading blank line excluded, at its last render. */
|
|
@@ -4434,6 +4446,7 @@ var ToolBlock = class {
|
|
|
4434
4446
|
* @returns the call section, then the result section once the tool answered.
|
|
4435
4447
|
*/
|
|
4436
4448
|
parts() {
|
|
4449
|
+
if (this.sections?.revision === this.revision) return this.sections.parts;
|
|
4437
4450
|
const title = this.call.title === "" ? [] : [this.call.title];
|
|
4438
4451
|
const call = [...title, ...this.call.lines];
|
|
4439
4452
|
const parts = [call.length === 0 ? {
|
|
@@ -4452,6 +4465,10 @@ var ToolBlock = class {
|
|
|
4452
4465
|
rows: this.resultLines,
|
|
4453
4466
|
...this.resultCode === void 0 ? {} : { code: this.resultCode }
|
|
4454
4467
|
});
|
|
4468
|
+
this.sections = {
|
|
4469
|
+
revision: this.revision,
|
|
4470
|
+
parts
|
|
4471
|
+
};
|
|
4455
4472
|
return parts;
|
|
4456
4473
|
}
|
|
4457
4474
|
/**
|
|
@@ -4864,25 +4881,139 @@ const ACTIVITY_SPINNERS = {
|
|
|
4864
4881
|
]
|
|
4865
4882
|
};
|
|
4866
4883
|
/**
|
|
4867
|
-
* The animation
|
|
4868
|
-
*
|
|
4869
|
-
*
|
|
4870
|
-
* two
|
|
4871
|
-
*
|
|
4872
|
-
*
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
+
* The animation a running tool card draws, by tool family; a folded subagent
|
|
4885
|
+
* row draws `subagent`, and the activity board's in-progress todo rows draw
|
|
4886
|
+
* `todo`. Each cycle mixes flowers, blooms, and stars. No frame is braille,
|
|
4887
|
+
* no two families share a glyph, and the eight frames of one family all
|
|
4888
|
+
* differ, so two indicators of that family at different phases never draw the
|
|
4889
|
+
* same glyph at the same instant. A presentation choice of this terminal
|
|
4890
|
+
* surface, not a deployment setting.
|
|
4891
|
+
*/
|
|
4892
|
+
const TOOL_SPINNERS = {
|
|
4893
|
+
/** Command execution: four-pointed stars, teardrop blooms, and florettes. */
|
|
4894
|
+
shell: [
|
|
4895
|
+
"✧",
|
|
4896
|
+
"✢",
|
|
4897
|
+
"✽",
|
|
4898
|
+
"✿",
|
|
4899
|
+
"❋",
|
|
4900
|
+
"✸",
|
|
4901
|
+
"❀",
|
|
4902
|
+
"✹"
|
|
4903
|
+
],
|
|
4904
|
+
/** File mutation: florettes between outlined stars and an open bloom. */
|
|
4905
|
+
edit: [
|
|
4906
|
+
"✩",
|
|
4907
|
+
"✤",
|
|
4908
|
+
"✾",
|
|
4909
|
+
"❁",
|
|
4910
|
+
"✭",
|
|
4911
|
+
"✮",
|
|
4912
|
+
"❂",
|
|
4913
|
+
"✲"
|
|
4914
|
+
],
|
|
4915
|
+
/** Reading and searching: flowers and an open bloom among stars. */
|
|
4916
|
+
search: [
|
|
4917
|
+
"⋆",
|
|
4918
|
+
"✱",
|
|
4919
|
+
"✵",
|
|
4920
|
+
"⚘",
|
|
4921
|
+
"❃",
|
|
4922
|
+
"✶",
|
|
4923
|
+
"⁕",
|
|
4924
|
+
"✷"
|
|
4925
|
+
],
|
|
4926
|
+
/** Delegation, a folded subagent row included: floral hearts, pinwheel blooms, and stars. */
|
|
4927
|
+
subagent: [
|
|
4928
|
+
"✦",
|
|
4929
|
+
"✣",
|
|
4930
|
+
"❊",
|
|
4931
|
+
"❦",
|
|
4932
|
+
"❉",
|
|
4933
|
+
"✪",
|
|
4934
|
+
"✫",
|
|
4935
|
+
"❧"
|
|
4936
|
+
],
|
|
4937
|
+
/** Planning and scheduling, and an in-progress todo row: a florette, teardrop blooms, and stars. */
|
|
4938
|
+
todo: [
|
|
4939
|
+
"☆",
|
|
4940
|
+
"✥",
|
|
4941
|
+
"✼",
|
|
4942
|
+
"❅",
|
|
4943
|
+
"✻",
|
|
4944
|
+
"✬",
|
|
4945
|
+
"★",
|
|
4946
|
+
"✰"
|
|
4947
|
+
],
|
|
4948
|
+
/** A tool with no family of its own: a sparkle and a florette among stars. */
|
|
4949
|
+
other: [
|
|
4950
|
+
"∗",
|
|
4951
|
+
"❈",
|
|
4952
|
+
"⁎",
|
|
4953
|
+
"❆",
|
|
4954
|
+
"⚝",
|
|
4955
|
+
"✺",
|
|
4956
|
+
"⚹",
|
|
4957
|
+
"✯"
|
|
4958
|
+
]
|
|
4959
|
+
};
|
|
4884
4960
|
/** Blank steps between two shimmer passes, so the sweep pauses past the word's end. */
|
|
4885
4961
|
const SHIMMER_GAP = 6;
|
|
4962
|
+
/** Tool names that execute commands. */
|
|
4963
|
+
const SHELL_TOOLS = new Set([
|
|
4964
|
+
"bash",
|
|
4965
|
+
"pwsh",
|
|
4966
|
+
"run_code"
|
|
4967
|
+
]);
|
|
4968
|
+
/** Tool names that mutate files. */
|
|
4969
|
+
const EDIT_TOOLS = new Set([
|
|
4970
|
+
"edit",
|
|
4971
|
+
"write",
|
|
4972
|
+
"str_replace_editor"
|
|
4973
|
+
]);
|
|
4974
|
+
/** Tool names that read or search, beyond the `TOOL_PREFIXES` below. */
|
|
4975
|
+
const SEARCH_TOOLS = new Set([
|
|
4976
|
+
"read",
|
|
4977
|
+
"read_image",
|
|
4978
|
+
"glob",
|
|
4979
|
+
"grep",
|
|
4980
|
+
"lsp",
|
|
4981
|
+
"skill",
|
|
4982
|
+
"web_fetch",
|
|
4983
|
+
"web_search",
|
|
4984
|
+
"load_workspace_dependencies",
|
|
4985
|
+
"list_subagent_models"
|
|
4986
|
+
]);
|
|
4987
|
+
/** Tool names that delegate or steer a child agent, beyond `subagent` itself. */
|
|
4988
|
+
const SUBAGENT_TOOLS = new Set([
|
|
4989
|
+
"send_message",
|
|
4990
|
+
"interrupt_agent",
|
|
4991
|
+
"list_agents",
|
|
4992
|
+
"ralph",
|
|
4993
|
+
"workflow",
|
|
4994
|
+
"spawn_teammate",
|
|
4995
|
+
"wait_agent"
|
|
4996
|
+
]);
|
|
4997
|
+
/** Tool names that plan or schedule work. */
|
|
4998
|
+
const TODO_TOOLS = new Set([
|
|
4999
|
+
"todo_write",
|
|
5000
|
+
"create_goal",
|
|
5001
|
+
"get_goal",
|
|
5002
|
+
"update_goal"
|
|
5003
|
+
]);
|
|
5004
|
+
/**
|
|
5005
|
+
* Tool-name prefixes per family, checked after the exact sets above. An MCP
|
|
5006
|
+
* or custom tool that keeps its family's prefix inherits the animation.
|
|
5007
|
+
*/
|
|
5008
|
+
const TOOL_PREFIXES = [
|
|
5009
|
+
["terminal_", "shell"],
|
|
5010
|
+
["session_", "search"],
|
|
5011
|
+
["cordis_inspect_", "search"],
|
|
5012
|
+
["list_mcp_", "search"],
|
|
5013
|
+
["read_mcp_", "search"],
|
|
5014
|
+
["team_task_", "subagent"],
|
|
5015
|
+
["schedule_", "todo"]
|
|
5016
|
+
];
|
|
4886
5017
|
/** The activity line's label while a compaction condenses history. */
|
|
4887
5018
|
const COMPACTING_ACTIVITY = "compacting";
|
|
4888
5019
|
/**
|
|
@@ -4917,6 +5048,20 @@ function activityStatus(activity) {
|
|
|
4917
5048
|
return "thinking";
|
|
4918
5049
|
}
|
|
4919
5050
|
/**
|
|
5051
|
+
* The family whose animation a running tool card draws for `name`.
|
|
5052
|
+
* @param name - the tool the model called.
|
|
5053
|
+
* @returns the tool's family, or `other` for a tool with no family.
|
|
5054
|
+
*/
|
|
5055
|
+
function toolFamily(name) {
|
|
5056
|
+
if (SHELL_TOOLS.has(name)) return "shell";
|
|
5057
|
+
if (EDIT_TOOLS.has(name)) return "edit";
|
|
5058
|
+
if (SEARCH_TOOLS.has(name)) return "search";
|
|
5059
|
+
if (isSubagentTool(name) || SUBAGENT_TOOLS.has(name)) return "subagent";
|
|
5060
|
+
if (TODO_TOOLS.has(name)) return "todo";
|
|
5061
|
+
for (const [prefix, family] of TOOL_PREFIXES) if (name.startsWith(prefix)) return family;
|
|
5062
|
+
return "other";
|
|
5063
|
+
}
|
|
5064
|
+
/**
|
|
4920
5065
|
* The frame an indicator draws at one instant. The frame index advances
|
|
4921
5066
|
* once per `periodMs` of wall clock, so indicators drawn at the same instant
|
|
4922
5067
|
* step together, and a change of animation keeps the beat.
|
|
@@ -4931,13 +5076,13 @@ function spinnerFrame(frames, now, periodMs, phase = 0) {
|
|
|
4931
5076
|
return frames[(Math.floor(now / periodMs) + phase) % 8] ?? frames[0];
|
|
4932
5077
|
}
|
|
4933
5078
|
/**
|
|
4934
|
-
* The phase a new
|
|
4935
|
-
*
|
|
4936
|
-
*
|
|
4937
|
-
*
|
|
4938
|
-
* nearest neighbour first and the lowest on a tie; once
|
|
4939
|
-
* the lowest phase held by the fewest indicators.
|
|
4940
|
-
* @param taken - the phases of the indicators spinning now, one per indicator.
|
|
5079
|
+
* The phase a new indicator spins at beside the indicators of the same
|
|
5080
|
+
* animation already spinning. Every {@link TOOL_SPINNERS} animation uses
|
|
5081
|
+
* eight different frames, so two indicators of one family at different phases
|
|
5082
|
+
* never draw the same glyph. A phase no indicator holds is taken, the one
|
|
5083
|
+
* farthest from its nearest neighbour first and the lowest on a tie; once
|
|
5084
|
+
* every phase is held, the lowest phase held by the fewest indicators.
|
|
5085
|
+
* @param taken - the phases of the indicators of that animation spinning now, one per indicator.
|
|
4941
5086
|
* @returns a phase from 0 to {@link SPINNER_CYCLE} - 1.
|
|
4942
5087
|
*/
|
|
4943
5088
|
function staggerPhase(taken) {
|
|
@@ -9363,10 +9508,6 @@ function rowTone(block, part, row) {
|
|
|
9363
9508
|
}
|
|
9364
9509
|
/** An unstyled palette, which is all measuring needs: styling never changes a row count. */
|
|
9365
9510
|
const MEASURING = createPalette(false);
|
|
9366
|
-
/** Replies whose measured rows {@link measuredReplies} keeps before it starts over. */
|
|
9367
|
-
const MEASURED_REPLIES = 256;
|
|
9368
|
-
/** Measured reply rows, by width and text. */
|
|
9369
|
-
const measuredReplies = /* @__PURE__ */ new Map();
|
|
9370
9511
|
/**
|
|
9371
9512
|
* The source rows a section's body draws. A call whose first row repeats the
|
|
9372
9513
|
* headline the header already names starts after it; every other row is the
|
|
@@ -9396,19 +9537,21 @@ function bodySource(block, part) {
|
|
|
9396
9537
|
* @returns the rows, trailing padding removed.
|
|
9397
9538
|
*/
|
|
9398
9539
|
function replyRows(rows, width, look) {
|
|
9399
|
-
const text = rows.join("\n");
|
|
9400
|
-
const key = look.palette === MEASURING ? `${String(width)}\n${text}` : void 0;
|
|
9401
|
-
const known = key === void 0 ? void 0 : measuredReplies.get(key);
|
|
9402
|
-
if (known !== void 0) return known;
|
|
9403
9540
|
const theme = markdownTheme(look.palette, look.highlight);
|
|
9404
9541
|
const listBullet = theme.listBullet;
|
|
9405
9542
|
theme.listBullet = (marker) => listBullet(marker === MARKDOWN_BULLET ? BULLET : marker);
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9543
|
+
return new Markdown(rows.join("\n"), 0, 0, theme).render(width).map((line) => line.trimEnd());
|
|
9544
|
+
}
|
|
9545
|
+
/**
|
|
9546
|
+
* Cut one styled text to at most a number of columns, as `truncateToWidth`
|
|
9547
|
+
* does, without walking its graphemes when it already fits: the width of a
|
|
9548
|
+
* row drawn again unchanged is answered from pi-tui's width cache.
|
|
9549
|
+
* @param text - the text, already styled.
|
|
9550
|
+
* @param width - the columns it may take; at least 1.
|
|
9551
|
+
* @returns the text itself when it fits, and otherwise cut with an ellipsis.
|
|
9552
|
+
*/
|
|
9553
|
+
function fit(text, width) {
|
|
9554
|
+
return visibleWidth(text) <= width ? text : truncateToWidth(text, width, ELLIPSIS$1);
|
|
9412
9555
|
}
|
|
9413
9556
|
/**
|
|
9414
9557
|
* Fit one styled text to an exact number of columns.
|
|
@@ -9417,7 +9560,7 @@ function replyRows(rows, width, look) {
|
|
|
9417
9560
|
* @returns the text cut and padded to exactly `width`.
|
|
9418
9561
|
*/
|
|
9419
9562
|
function cell(text, width) {
|
|
9420
|
-
const cut =
|
|
9563
|
+
const cut = fit(text, Math.max(1, width));
|
|
9421
9564
|
return `${cut}${" ".repeat(Math.max(0, width - visibleWidth(cut)))}`;
|
|
9422
9565
|
}
|
|
9423
9566
|
/**
|
|
@@ -9448,7 +9591,7 @@ function promptRows(rows, width, look) {
|
|
|
9448
9591
|
*/
|
|
9449
9592
|
function headerRow(block, part, width, look) {
|
|
9450
9593
|
const { palette, held } = look;
|
|
9451
|
-
return
|
|
9594
|
+
return fit(`${part.kind === "result" ? RESULT_INDENT : ""}${held ? palette.bold(palette.accent(`${sectionGlyph(block, part)} ${sectionName(block, part)}`)) : restingHeader(block, part, palette)}`, Math.max(1, width));
|
|
9452
9595
|
}
|
|
9453
9596
|
/**
|
|
9454
9597
|
* One wrapped body row, painted in its tone.
|
|
@@ -9484,23 +9627,20 @@ function bodyRow(line, tone, indent, width, look) {
|
|
|
9484
9627
|
* is where the rest of the text is. How many rows come back depends on the
|
|
9485
9628
|
* text and the width alone, never on the palette, the bands, or whether the
|
|
9486
9629
|
* section is held.
|
|
9487
|
-
* @param
|
|
9488
|
-
* @param
|
|
9630
|
+
* @param block - the block the section belongs to.
|
|
9631
|
+
* @param part - the section.
|
|
9489
9632
|
* @param width - the panel's columns, the gutter included.
|
|
9490
9633
|
* @param look - the palette, the bands, the highlighter, and whether the reader holds the section.
|
|
9491
|
-
* @
|
|
9634
|
+
* @param header - the section's header row, unused for a prompt.
|
|
9635
|
+
* @returns the rows.
|
|
9492
9636
|
*/
|
|
9493
|
-
function
|
|
9494
|
-
const found = sectionAt(cursor, blocks);
|
|
9495
|
-
if (found === void 0) return [];
|
|
9496
|
-
const { block, part } = found;
|
|
9637
|
+
function drawSection(block, part, width, look, header) {
|
|
9497
9638
|
const content = Math.max(1, width - visibleWidth(GUTTER));
|
|
9498
9639
|
let rows;
|
|
9499
9640
|
if (block.blockKind === "user") rows = promptRows(part.rows, content, look);
|
|
9500
9641
|
else {
|
|
9501
9642
|
const indent = part.kind === "result" ? `${RESULT_INDENT}${BODY_INDENT}` : BODY_INDENT;
|
|
9502
9643
|
const room = Math.max(1, content - visibleWidth(indent));
|
|
9503
|
-
const header = headerRow(block, part, content, look);
|
|
9504
9644
|
if (block.blockKind === "assistant" && part.kind === "reply") rows = [header, ...replyRows(part.rows, room, look).map((line) => `${indent}${line}`)];
|
|
9505
9645
|
else {
|
|
9506
9646
|
const source = bodySource(block, part);
|
|
@@ -9514,39 +9654,138 @@ function sectionRows(cursor, blocks, width, look) {
|
|
|
9514
9654
|
return rows.map((row) => `${gutter}${row}`);
|
|
9515
9655
|
}
|
|
9516
9656
|
/**
|
|
9517
|
-
*
|
|
9518
|
-
*
|
|
9519
|
-
* @param blocks - the navigable blocks.
|
|
9520
|
-
* @param width - the panel's columns.
|
|
9521
|
-
* @param look - the palette and bands, and which section the reader holds.
|
|
9522
|
-
* @returns each section's rows, the blank row after it included, in reading order.
|
|
9657
|
+
* Measurement keeps row counts instead of expanded output. Drawn rows use a
|
|
9658
|
+
* bounded LRU, so reading a long turn does not retain a second full rendering.
|
|
9523
9659
|
*/
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9660
|
+
const MAX_CACHED_DRAWN_ROWS = 4096;
|
|
9661
|
+
const MAX_CACHED_DRAWN_SECTIONS = 256;
|
|
9662
|
+
/** Each block's measurements, indexed by its part number. */
|
|
9663
|
+
const sectionRowsCaches = /* @__PURE__ */ new WeakMap();
|
|
9664
|
+
/** A bounded LRU; values contain no reference to their source block. */
|
|
9665
|
+
const drawnSections = /* @__PURE__ */ new Map();
|
|
9666
|
+
let cachedDrawnRows = 0;
|
|
9667
|
+
/**
|
|
9668
|
+
* Whether two lists hold the same entries in the same order.
|
|
9669
|
+
* @param left - one list.
|
|
9670
|
+
* @param right - the other.
|
|
9671
|
+
* @returns true when every entry is identical to its counterpart.
|
|
9672
|
+
*/
|
|
9673
|
+
function sameEntries(left, right) {
|
|
9674
|
+
if (left === right) return true;
|
|
9675
|
+
if (left === void 0 || right === void 0 || left.length !== right.length) return false;
|
|
9676
|
+
return left.every((entry, index) => entry === right[index]);
|
|
9677
|
+
}
|
|
9678
|
+
/**
|
|
9679
|
+
* The cache for one section of a block.
|
|
9680
|
+
* @param block - the transcript block.
|
|
9681
|
+
* @param part - the section's index in the block.
|
|
9682
|
+
* @returns the cache, creating it when this section has not been read before.
|
|
9683
|
+
*/
|
|
9684
|
+
function sectionRowsCache(block, part) {
|
|
9685
|
+
let parts = sectionRowsCaches.get(block);
|
|
9686
|
+
if (parts === void 0) {
|
|
9687
|
+
parts = /* @__PURE__ */ new Map();
|
|
9688
|
+
sectionRowsCaches.set(block, parts);
|
|
9689
|
+
}
|
|
9690
|
+
let cache = parts.get(part);
|
|
9691
|
+
if (cache === void 0) {
|
|
9692
|
+
cache = {};
|
|
9693
|
+
parts.set(part, cache);
|
|
9694
|
+
}
|
|
9695
|
+
return cache;
|
|
9696
|
+
}
|
|
9697
|
+
/** Remove one section's rendered rows from the shared LRU. */
|
|
9698
|
+
function forgetDrawn(cache) {
|
|
9699
|
+
const drawn = cache.drawn;
|
|
9700
|
+
if (drawn === void 0) return;
|
|
9701
|
+
drawnSections.delete(drawn);
|
|
9702
|
+
cachedDrawnRows -= drawn.lines.length;
|
|
9703
|
+
cache.drawn = void 0;
|
|
9704
|
+
}
|
|
9705
|
+
/** Retain one drawn section within both LRU limits. */
|
|
9706
|
+
function rememberDrawn(cache, drawn) {
|
|
9707
|
+
forgetDrawn(cache);
|
|
9708
|
+
if (drawn.lines.length > MAX_CACHED_DRAWN_ROWS) return;
|
|
9709
|
+
cache.drawn = drawn;
|
|
9710
|
+
drawnSections.set(drawn, cache);
|
|
9711
|
+
cachedDrawnRows += drawn.lines.length;
|
|
9712
|
+
while (drawnSections.size > MAX_CACHED_DRAWN_SECTIONS || cachedDrawnRows > MAX_CACHED_DRAWN_ROWS) for (const [expired, owner] of drawnSections) {
|
|
9713
|
+
drawnSections.delete(expired);
|
|
9714
|
+
cachedDrawnRows -= expired.lines.length;
|
|
9715
|
+
owner.drawn = void 0;
|
|
9716
|
+
break;
|
|
9717
|
+
}
|
|
9718
|
+
}
|
|
9719
|
+
/** Measure a section and retain only the row count needed by geometry. */
|
|
9720
|
+
function sectionRowCount(cursor, blocks, width) {
|
|
9721
|
+
const found = sectionAt(cursor, blocks);
|
|
9722
|
+
if (found === void 0) return 0;
|
|
9723
|
+
const { block, part } = found;
|
|
9724
|
+
const cache = sectionRowsCache(block, cursor.part);
|
|
9725
|
+
const known = cache.measured;
|
|
9726
|
+
if (known !== void 0 && known.width === width && known.kind === part.kind && sameEntries(known.rows, part.rows) && sameEntries(known.code, part.code)) return known.count;
|
|
9727
|
+
const lines = drawSection(block, part, width, {
|
|
9728
|
+
palette: MEASURING,
|
|
9729
|
+
held: false
|
|
9730
|
+
}, "");
|
|
9731
|
+
cache.measured = {
|
|
9732
|
+
width,
|
|
9733
|
+
kind: part.kind,
|
|
9734
|
+
rows: part.rows,
|
|
9735
|
+
code: part.code,
|
|
9736
|
+
count: lines.length
|
|
9737
|
+
};
|
|
9738
|
+
return lines.length;
|
|
9739
|
+
}
|
|
9740
|
+
/**
|
|
9741
|
+
* Draw one section, reusing cached rows when its content and presentation match.
|
|
9742
|
+
* @param cursor - the section to draw.
|
|
9743
|
+
* @param blocks - the current navigable blocks.
|
|
9744
|
+
* @param width - the panel's columns, gutter included.
|
|
9745
|
+
* @param look - the palette, tint, highlighter, and held section.
|
|
9746
|
+
* @returns its drawn rows, or none when the transcript no longer carries it.
|
|
9747
|
+
*/
|
|
9748
|
+
function sectionRows(cursor, blocks, width, look) {
|
|
9749
|
+
const found = sectionAt(cursor, blocks);
|
|
9750
|
+
if (found === void 0) return [];
|
|
9751
|
+
const { block, part } = found;
|
|
9752
|
+
const header = block.blockKind === "user" ? "" : headerRow(block, part, Math.max(1, width - visibleWidth(GUTTER)), look);
|
|
9753
|
+
const cache = sectionRowsCache(block, cursor.part);
|
|
9754
|
+
const known = cache.drawn;
|
|
9755
|
+
if (known !== void 0 && known.width === width && known.kind === part.kind && known.header === header && known.look.palette === look.palette && known.look.tints === look.tints && known.look.highlight === look.highlight && known.highlightRevision === look.highlight?.revision && known.look.held === look.held && sameEntries(known.rows, part.rows) && sameEntries(known.code, part.code)) {
|
|
9756
|
+
drawnSections.delete(known);
|
|
9757
|
+
drawnSections.set(known, cache);
|
|
9758
|
+
return known.lines;
|
|
9759
|
+
}
|
|
9760
|
+
const lines = drawSection(block, part, width, look, header);
|
|
9761
|
+
rememberDrawn(cache, {
|
|
9762
|
+
width,
|
|
9763
|
+
kind: part.kind,
|
|
9764
|
+
look,
|
|
9765
|
+
highlightRevision: look.highlight?.revision,
|
|
9766
|
+
header,
|
|
9767
|
+
rows: part.rows,
|
|
9768
|
+
code: part.code,
|
|
9769
|
+
lines
|
|
9535
9770
|
});
|
|
9771
|
+
return lines;
|
|
9536
9772
|
}
|
|
9537
9773
|
/**
|
|
9538
9774
|
* Measure the turn panel, which is what the scroll keys move over.
|
|
9539
9775
|
* @param group - the turn the panel shows.
|
|
9540
9776
|
* @param blocks - the navigable blocks.
|
|
9541
9777
|
* @param width - the panel's columns.
|
|
9542
|
-
* @returns where each section's first row lands and how many rows the panel
|
|
9778
|
+
* @returns where each section's first row lands and how many rows the panel
|
|
9779
|
+
* has, a blank row between each two sections.
|
|
9543
9780
|
*/
|
|
9544
9781
|
function measurePane(group, blocks, width) {
|
|
9545
9782
|
const headers = [];
|
|
9546
9783
|
let total = 0;
|
|
9547
|
-
|
|
9784
|
+
const last = group.sections.length - 1;
|
|
9785
|
+
for (const [index, section] of group.sections.entries()) {
|
|
9548
9786
|
headers.push(total);
|
|
9549
|
-
|
|
9787
|
+
const count = sectionRowCount(section, blocks, width);
|
|
9788
|
+
total += index === last || count === 0 ? count : count + 1;
|
|
9550
9789
|
}
|
|
9551
9790
|
return {
|
|
9552
9791
|
headers,
|
|
@@ -9942,39 +10181,50 @@ function listColumn(rows, blocks, look, body) {
|
|
|
9942
10181
|
return rows.slice(start, start + body).map((row) => row.kind === "turn" ? turnRow(row.group, row.open, look) : outlineSectionRow(row.cursor, blocks, row.held, look));
|
|
9943
10182
|
}
|
|
9944
10183
|
/**
|
|
9945
|
-
* The turn panel's rows:
|
|
9946
|
-
* the prompt on its band and every other
|
|
9947
|
-
* reveal in flight floating out the rows
|
|
10184
|
+
* The turn panel's rows in view: the sections of the held turn that reach
|
|
10185
|
+
* the scroll window, in reading order, the prompt on its band and every other
|
|
10186
|
+
* section under its own header, with a reveal in flight floating out the rows
|
|
10187
|
+
* it covers. Sections outside the window are not drawn.
|
|
9948
10188
|
* @param group - the turn the panel shows.
|
|
9949
10189
|
* @param blocks - the navigable blocks.
|
|
9950
|
-
* @param
|
|
10190
|
+
* @param state - where the reader is: the section it holds and the first visible row.
|
|
9951
10191
|
* @param render - the palette, the bands, and the reveal.
|
|
9952
|
-
* @param
|
|
9953
|
-
* @returns
|
|
10192
|
+
* @param geometry - the panel's columns and rows, and where each section starts.
|
|
10193
|
+
* @returns at most `geometry.body` rows, from the first visible one.
|
|
9954
10194
|
*/
|
|
9955
|
-
function paneColumn(group, blocks,
|
|
10195
|
+
function paneColumn(group, blocks, state, render, geometry) {
|
|
9956
10196
|
const { palette, tints, reveal, highlight } = render;
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
10197
|
+
const { headers, total } = geometry.measure;
|
|
10198
|
+
const top = state.offset;
|
|
10199
|
+
const bottom = top + geometry.body;
|
|
10200
|
+
const rows = [];
|
|
10201
|
+
for (const [index, section] of group.sections.entries()) {
|
|
10202
|
+
const start = headers[index];
|
|
10203
|
+
if ((headers[index + 1] ?? total) <= top) continue;
|
|
10204
|
+
if (start >= bottom) break;
|
|
10205
|
+
const held = sameSection(section, state.cursor);
|
|
10206
|
+
const drawn = sectionRows(section, blocks, geometry.pane, {
|
|
10207
|
+
palette,
|
|
10208
|
+
tints,
|
|
10209
|
+
highlight,
|
|
10210
|
+
held
|
|
10211
|
+
});
|
|
10212
|
+
const shown = (index === group.sections.length - 1 || drawn.length === 0 ? drawn : [...drawn, ""]).slice(Math.max(0, top - start), bottom - start);
|
|
10213
|
+
const covered = reveal !== void 0 && (reveal.section === void 0 || sameSection(section, reveal.section));
|
|
10214
|
+
rows.push(...covered ? recolorLines(shown, reveal.age, reveal.style) : shown);
|
|
10215
|
+
}
|
|
10216
|
+
return rows;
|
|
9966
10217
|
}
|
|
9967
10218
|
/**
|
|
9968
10219
|
* Assemble one body row from the columns that are drawn.
|
|
9969
10220
|
* @param columns - the columns in drawing order.
|
|
9970
10221
|
* @param row - which of their rows to draw.
|
|
9971
10222
|
* @param palette - the palette the borders are styled with.
|
|
9972
|
-
* @
|
|
9973
|
-
* @returns the row, no wider than `width`.
|
|
10223
|
+
* @returns the row, exactly as wide as the frame.
|
|
9974
10224
|
*/
|
|
9975
|
-
function frameRow(columns, row, palette
|
|
10225
|
+
function frameRow(columns, row, palette) {
|
|
9976
10226
|
const inner = columns.map((column) => cell(column.rows[row] ?? "", column.width)).join(`${palette.dim(SIDE)} `);
|
|
9977
|
-
return
|
|
10227
|
+
return `${palette.accent(SIDE)} ${inner} ${palette.accent(SIDE)}`;
|
|
9978
10228
|
}
|
|
9979
10229
|
/**
|
|
9980
10230
|
* What the legend rule says on its left: the query line while one is open, or
|
|
@@ -10022,12 +10272,14 @@ function readout(state, groups, geometry, totalTurns) {
|
|
|
10022
10272
|
* @param groups - the turns the list names, already narrowed by the query.
|
|
10023
10273
|
* @param render - the palette, the blocks, the geometry inputs, the turn
|
|
10024
10274
|
* total, and the bands and reveal the turn panel is drawn with.
|
|
10275
|
+
* @param measured - the geometry {@link readerGeometryFor} already returned
|
|
10276
|
+
* for this state, groups, and render; measured afresh when omitted.
|
|
10025
10277
|
* @returns exactly `render.rows` lines, none wider than `render.width`.
|
|
10026
10278
|
*/
|
|
10027
|
-
function readerRows(state, groups, render) {
|
|
10279
|
+
function readerRows(state, groups, render, measured) {
|
|
10028
10280
|
const { palette, blocks, width, totalTurns } = render;
|
|
10029
10281
|
const rows = Math.max(1, render.rows);
|
|
10030
|
-
const geometry = readerGeometryFor(state, groups, blocks, width, rows, render.minColumns);
|
|
10282
|
+
const geometry = measured ?? readerGeometryFor(state, groups, blocks, width, rows, render.minColumns);
|
|
10031
10283
|
if (geometry.tiny) {
|
|
10032
10284
|
const lines = Array.from({ length: rows }, () => "");
|
|
10033
10285
|
lines[0] = truncateToWidth(palette.dim(TOO_SMALL), Math.max(1, width), ELLIPSIS$1);
|
|
@@ -10050,10 +10302,10 @@ function readerRows(state, groups, render) {
|
|
|
10050
10302
|
}
|
|
10051
10303
|
if (geometry.pane > 0) columns.push({
|
|
10052
10304
|
width: geometry.pane,
|
|
10053
|
-
rows: group === void 0 ? [] : paneColumn(group, blocks, state
|
|
10305
|
+
rows: group === void 0 ? [] : paneColumn(group, blocks, state, render, geometry)
|
|
10054
10306
|
});
|
|
10055
10307
|
const body = [];
|
|
10056
|
-
for (let row = 0; row < geometry.body; row += 1) body.push(frameRow(columns, row, palette
|
|
10308
|
+
for (let row = 0; row < geometry.body; row += 1) body.push(frameRow(columns, row, palette));
|
|
10057
10309
|
const report = readout(state, groups, geometry, totalTurns);
|
|
10058
10310
|
const legendRoom = ruleRoom(width) - visibleWidth(report) - 1;
|
|
10059
10311
|
const prompt = group?.sections.map((section) => blocks[section.block]?.parts()[section.part]).find((part) => part?.kind === "user");
|
|
@@ -10309,8 +10561,9 @@ var PointerTerminal = class {
|
|
|
10309
10561
|
* the screen: it is told how many rows the terminal has and returns exactly
|
|
10310
10562
|
* that many.
|
|
10311
10563
|
*
|
|
10312
|
-
* The pane
|
|
10313
|
-
*
|
|
10564
|
+
* The pane reads current transcript blocks on every render. The reader reuses
|
|
10565
|
+
* cached section rows when their content, width, and styling match, and draws
|
|
10566
|
+
* only sections in view, so a streaming reply grows inside it,
|
|
10314
10567
|
* a tool result that lands appears, and a new turn joins the list, all with
|
|
10315
10568
|
* no push and no second clock.
|
|
10316
10569
|
*
|
|
@@ -10400,6 +10653,8 @@ var ReaderPane = class {
|
|
|
10400
10653
|
shownTurn;
|
|
10401
10654
|
/** The reveal in flight, and the one section it covers when it covers no whole turn. */
|
|
10402
10655
|
reveal;
|
|
10656
|
+
/** The bands last drawn with, and the settings they were mixed for. */
|
|
10657
|
+
tints;
|
|
10403
10658
|
/**
|
|
10404
10659
|
* @param options - the palette, the live transcript reads, and the section to open on.
|
|
10405
10660
|
*/
|
|
@@ -10453,10 +10708,10 @@ var ReaderPane = class {
|
|
|
10453
10708
|
rows,
|
|
10454
10709
|
minColumns: this.options.minColumns,
|
|
10455
10710
|
totalTurns: groups.length,
|
|
10456
|
-
tints: effects === void 0 ? void 0 :
|
|
10711
|
+
tints: effects === void 0 ? void 0 : this.tintsFor(effects.style(), effects.background()),
|
|
10457
10712
|
reveal: this.revealNow(),
|
|
10458
10713
|
highlight: this.options.highlight
|
|
10459
|
-
});
|
|
10714
|
+
}, geometry);
|
|
10460
10715
|
}
|
|
10461
10716
|
/**
|
|
10462
10717
|
* Answer one key press.
|
|
@@ -10489,6 +10744,24 @@ var ReaderPane = class {
|
|
|
10489
10744
|
this.close("editor");
|
|
10490
10745
|
}
|
|
10491
10746
|
/**
|
|
10747
|
+
* The bands for the terminal's current settings, the same object for as
|
|
10748
|
+
* long as they hold, so the sections drawn with them are not drawn again.
|
|
10749
|
+
* @param style - the fade drawing settings.
|
|
10750
|
+
* @param background - the terminal's background color.
|
|
10751
|
+
* @returns the bands, or undefined where the terminal draws none.
|
|
10752
|
+
*/
|
|
10753
|
+
tintsFor(style, background) {
|
|
10754
|
+
const known = this.tints;
|
|
10755
|
+
if (known?.style === style && known.background === background) return known.tints;
|
|
10756
|
+
const tints = readerTints(style, background);
|
|
10757
|
+
this.tints = {
|
|
10758
|
+
style,
|
|
10759
|
+
background,
|
|
10760
|
+
tints
|
|
10761
|
+
};
|
|
10762
|
+
return tints;
|
|
10763
|
+
}
|
|
10764
|
+
/**
|
|
10492
10765
|
* Start a reveal, replacing the one in flight.
|
|
10493
10766
|
* @param section - the one section it covers; undefined covers the whole turn.
|
|
10494
10767
|
*/
|
|
@@ -10869,6 +11142,14 @@ function parseHexColor(color) {
|
|
|
10869
11142
|
*/
|
|
10870
11143
|
var SyntaxHighlighter = class {
|
|
10871
11144
|
options;
|
|
11145
|
+
revisionCount = 0;
|
|
11146
|
+
/**
|
|
11147
|
+
* How many grammar loads may change the rows a prior code draw would produce.
|
|
11148
|
+
* @returns the code-rendering revision.
|
|
11149
|
+
*/
|
|
11150
|
+
get revision() {
|
|
11151
|
+
return this.revisionCount;
|
|
11152
|
+
}
|
|
10872
11153
|
/** The shiki core, once a theme and one grammar have landed. */
|
|
10873
11154
|
core;
|
|
10874
11155
|
/**
|
|
@@ -10954,6 +11235,7 @@ var SyntaxHighlighter = class {
|
|
|
10954
11235
|
} finally {
|
|
10955
11236
|
this.pending.delete(id);
|
|
10956
11237
|
}
|
|
11238
|
+
this.revisionCount += 1;
|
|
10957
11239
|
this.options.changed();
|
|
10958
11240
|
}
|
|
10959
11241
|
/**
|
|
@@ -13125,7 +13407,7 @@ var TuiApp = class {
|
|
|
13125
13407
|
this.syncBoardSpinners(this.deps.reducedMotion ? [] : spinningTodos(view));
|
|
13126
13408
|
const now = this.deps.now();
|
|
13127
13409
|
const spinners = /* @__PURE__ */ new Map();
|
|
13128
|
-
for (const [content, phase] of this.boardSpinners) spinners.set(content, spinnerFrame(
|
|
13410
|
+
for (const [content, phase] of this.boardSpinners) spinners.set(content, spinnerFrame(TOOL_SPINNERS.todo, now, this.deps.spinnerMs, phase));
|
|
13129
13411
|
const text = renderActivityBoard(view, {
|
|
13130
13412
|
palette: this.deps.palette,
|
|
13131
13413
|
todoFades: this.activityTodoFades,
|
|
@@ -13152,7 +13434,7 @@ var TuiApp = class {
|
|
|
13152
13434
|
for (const content of this.boardSpinners.keys()) if (!contents.includes(content)) this.boardSpinners.delete(content);
|
|
13153
13435
|
for (const content of contents) {
|
|
13154
13436
|
if (this.boardSpinners.has(content)) continue;
|
|
13155
|
-
this.boardSpinners.set(content, staggerPhase(this.spinningPhases()));
|
|
13437
|
+
this.boardSpinners.set(content, staggerPhase(this.spinningPhases("todo")));
|
|
13156
13438
|
}
|
|
13157
13439
|
}
|
|
13158
13440
|
/**
|
|
@@ -15792,28 +16074,31 @@ var TuiApp = class {
|
|
|
15792
16074
|
this.trackReveal(block);
|
|
15793
16075
|
}
|
|
15794
16076
|
/**
|
|
15795
|
-
* Spin a new card's glyph in
|
|
15796
|
-
* a phase staggered against the other
|
|
15797
|
-
* for the card's whole run. A card drawn from a replayed log, and
|
|
15798
|
-
* card under reduced motion, draws the static glyph.
|
|
16077
|
+
* Spin a new card's glyph in its tool family's animation until its result
|
|
16078
|
+
* lands, at a phase staggered against the other indicators of that family
|
|
16079
|
+
* and kept for the card's whole run. A card drawn from a replayed log, and
|
|
16080
|
+
* every card under reduced motion, draws the static glyph.
|
|
15799
16081
|
* @param block - the card that was just mounted.
|
|
15800
16082
|
*/
|
|
15801
16083
|
spinBlock(block) {
|
|
15802
16084
|
if (this.replaying || this.deps.reducedMotion) return;
|
|
15803
|
-
const
|
|
15804
|
-
|
|
16085
|
+
const family = toolFamily(block.name);
|
|
16086
|
+
const phase = staggerPhase(this.spinningPhases(family));
|
|
16087
|
+
block.setSpinner(() => spinnerFrame(TOOL_SPINNERS[family], this.deps.now(), this.deps.spinnerMs, phase));
|
|
15805
16088
|
this.spinners.set(block, phase);
|
|
15806
16089
|
this.updateSpinTicker();
|
|
15807
16090
|
}
|
|
15808
16091
|
/**
|
|
15809
|
-
* The phases of the
|
|
15810
|
-
* the activity board's in-progress todo rows
|
|
15811
|
-
*
|
|
16092
|
+
* The phases of the indicators of `family` spinning right now: running
|
|
16093
|
+
* cards of that family, and the activity board's in-progress todo rows
|
|
16094
|
+
* when `family` is `todo`.
|
|
16095
|
+
* @param family - the animation those indicators draw.
|
|
16096
|
+
* @returns one phase per spinning indicator of that family.
|
|
15812
16097
|
*/
|
|
15813
|
-
spinningPhases() {
|
|
16098
|
+
spinningPhases(family) {
|
|
15814
16099
|
const phases = [];
|
|
15815
|
-
for (const [block, phase] of this.spinners) if (block.spinning()) phases.push(phase);
|
|
15816
|
-
phases.push(...this.boardSpinners.values());
|
|
16100
|
+
for (const [block, phase] of this.spinners) if (block.spinning() && toolFamily(block.name) === family) phases.push(phase);
|
|
16101
|
+
if (family === "todo") phases.push(...this.boardSpinners.values());
|
|
15817
16102
|
return phases;
|
|
15818
16103
|
}
|
|
15819
16104
|
/**
|