@waq666/pneuma 0.8.1 → 0.9.2
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 +87 -18
- package/bin/dsc.js +25 -2
- package/lib/adapter/transcript.d.ts +94 -1
- package/lib/adapter/transcript.js +398 -12
- package/lib/boot.js +6 -27
- package/lib/contract/approval.d.ts +41 -4
- package/lib/contract/fonts.d.ts +101 -0
- package/lib/contract/fonts.js +157 -0
- package/lib/contract/memory.d.ts +93 -0
- package/lib/contract/memory.js +12 -0
- package/lib/contract/plugin.d.ts +106 -5
- package/lib/contract/remote.d.ts +8 -0
- package/lib/contract/remote.js +8 -0
- package/lib/contract/runtime.d.ts +240 -11
- package/lib/contract/session.d.ts +69 -6
- package/lib/contract/settings.d.ts +143 -3
- package/lib/contract/snapshot.d.ts +22 -5
- package/lib/contract/task.d.ts +38 -2
- package/lib/contract/transcript.d.ts +209 -13
- package/lib/contract/transcript.js +47 -1
- package/lib/contract.d.ts +3 -1
- package/lib/contract.js +3 -1
- package/lib/core/bytes.d.ts +1 -1
- package/lib/core/bytes.js +2 -2
- package/lib/core/child-env.d.ts +31 -0
- package/lib/core/child-env.js +70 -0
- package/lib/core/command-intent.d.ts +121 -0
- package/lib/core/command-intent.js +380 -0
- package/lib/core/command-policy.js +10 -46
- package/lib/core/config-store.js +6 -1
- package/lib/core/config.d.ts +98 -0
- package/lib/core/config.js +286 -4
- package/lib/core/context-injection-report.d.ts +107 -0
- package/lib/core/context-injection-report.js +132 -0
- package/lib/core/dock-browser.d.ts +30 -1
- package/lib/core/dock-browser.js +2 -1
- package/lib/core/dock-ops.d.ts +4 -4
- package/lib/core/dock-ops.js +2 -2
- package/lib/core/dock-session.d.ts +1 -2
- package/lib/core/dsh-compat/resolve-hook.d.ts +29 -1
- package/lib/core/dsh-compat/resolve-hook.js +272 -15
- package/lib/core/dsh-compat/service-map.js +1 -1
- package/lib/core/events.d.ts +52 -4
- package/lib/core/executable.d.ts +38 -0
- package/lib/core/executable.js +115 -0
- package/lib/core/git-exec.d.ts +11 -2
- package/lib/core/git-exec.js +27 -3
- package/lib/core/guard-session.d.ts +50 -0
- package/lib/core/guard-session.js +58 -0
- package/lib/core/host-browser-link.d.ts +1 -2
- package/lib/core/host-methods.d.ts +1 -1
- package/lib/core/host-methods.js +14 -1
- package/lib/core/http-debug.d.ts +43 -0
- package/lib/core/http-debug.js +65 -0
- package/lib/core/i18n-text.d.ts +39 -0
- package/lib/core/i18n-text.js +50 -0
- package/lib/core/i18n.d.ts +28 -0
- package/lib/core/i18n.js +109 -0
- package/lib/core/image-diet.d.ts +77 -22
- package/lib/core/image-diet.js +233 -9
- package/lib/core/llm.d.ts +76 -9
- package/lib/core/llm.js +151 -22
- package/lib/core/lockfile.d.ts +4 -5
- package/lib/core/lockfile.js +78 -16
- package/lib/core/log-config.d.ts +35 -0
- package/lib/core/log-config.js +71 -0
- package/lib/core/mention.d.ts +25 -15
- package/lib/core/mention.js +153 -32
- package/lib/core/migrate.d.ts +18 -0
- package/lib/core/native-bridge.d.ts +1 -1
- package/lib/core/native-bridge.js +1 -1
- package/lib/core/os-lock.d.ts +30 -0
- package/lib/core/os-lock.js +232 -0
- package/lib/core/path-policy.d.ts +13 -2
- package/lib/core/path-policy.js +30 -2
- package/lib/core/plugin-bundle.d.ts +90 -8
- package/lib/core/plugin-bundle.js +184 -22
- package/lib/core/plugin-loader.d.ts +238 -8
- package/lib/core/plugin-loader.js +1288 -152
- package/lib/core/plugin-locale.d.ts +42 -0
- package/lib/core/plugin-locale.js +132 -0
- package/lib/core/plugin-npm.d.ts +44 -0
- package/lib/core/plugin-npm.js +459 -0
- package/lib/core/plugin-patch.d.ts +17 -0
- package/lib/core/plugin-patch.js +23 -1
- package/lib/core/plugin-registry.d.ts +72 -13
- package/lib/core/plugin-registry.js +275 -76
- package/lib/core/plugin-watch.d.ts +128 -0
- package/lib/core/plugin-watch.js +880 -0
- package/lib/core/prefs.d.ts +7 -1
- package/lib/core/prefs.js +125 -33
- package/lib/core/profile-bootstrap.d.ts +5 -0
- package/lib/core/profile-bootstrap.js +33 -0
- package/lib/core/profile-dir.js +7 -3
- package/lib/core/records.d.ts +1 -1
- package/lib/core/records.js +1 -1
- package/lib/core/redact.d.ts +20 -0
- package/lib/core/redact.js +52 -0
- package/lib/core/repeat-reminder.d.ts +152 -0
- package/lib/core/repeat-reminder.js +175 -0
- package/lib/core/request-invariant.js +1 -1
- package/lib/core/schedule/runner.d.ts +18 -2
- package/lib/core/schedule/runner.js +50 -15
- package/lib/core/session.d.ts +192 -11
- package/lib/core/session.js +250 -19
- package/lib/core/shell-quote.d.ts +2 -2
- package/lib/core/shell-quote.js +2 -2
- package/lib/core/skills.d.ts +14 -0
- package/lib/core/skills.js +31 -0
- package/lib/core/team-board.d.ts +94 -10
- package/lib/core/team-board.js +226 -7
- package/lib/core/terminal-env.d.ts +18 -4
- package/lib/core/terminal-env.js +151 -15
- package/lib/core/todo-reminder-cadence.d.ts +86 -0
- package/lib/core/todo-reminder-cadence.js +76 -0
- package/lib/core/token-estimate.d.ts +1 -1
- package/lib/core/token-estimate.js +1 -1
- package/lib/core/tool-guards.d.ts +42 -0
- package/lib/core/tool-guards.js +43 -1
- package/lib/core/tools/command-runner.d.ts +11 -0
- package/lib/core/tools/fs-tools.js +6 -0
- package/lib/core/tools.d.ts +21 -4
- package/lib/core/transcript-text.d.ts +1 -1
- package/lib/core/transcript-text.js +1 -1
- package/lib/core/ui-boot-source.d.ts +3 -1
- package/lib/core/ui-boot-source.js +1 -1
- package/lib/core/ui-bundles.d.ts +13 -4
- package/lib/core/ui-bundles.js +122 -29
- package/lib/core/ui-graph-frames.d.ts +47 -0
- package/lib/core/ui-graph-frames.js +54 -0
- package/lib/core/ui-hmr.d.ts +1 -1
- package/lib/core/ui-manifest.d.ts +224 -0
- package/lib/core/ui-manifest.js +185 -0
- package/lib/core/ui-methods.d.ts +1 -1
- package/lib/core/ui-methods.js +54 -2
- package/lib/core/ui-server.d.ts +3 -2
- package/lib/core/ui-server.js +18 -18
- package/lib/core/usage-log.d.ts +58 -1
- package/lib/core/usage-log.js +140 -1
- package/lib/headless.js +4 -24
- package/lib/host/kernel.d.ts +7 -15
- package/lib/host/kernel.js +65 -434
- package/lib/host/launch.d.ts +20 -0
- package/lib/host/launch.js +48 -0
- package/lib/host/startup.d.ts +8 -0
- package/lib/host/startup.js +74 -0
- package/lib/node_modules/@pneuma/agent/cache-probe.d.ts +1 -0
- package/lib/node_modules/@pneuma/agent/cache-probe.js +1 -0
- package/lib/node_modules/@pneuma/agent/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/agent/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/agent/index.js +1 -0
- package/lib/node_modules/@pneuma/agent/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/agent/package.json +38 -0
- package/lib/node_modules/@pneuma/approval/approval.d.ts +1 -0
- package/lib/node_modules/@pneuma/approval/approval.js +1 -0
- package/lib/node_modules/@pneuma/approval/call-meaning.d.ts +1 -0
- package/lib/node_modules/@pneuma/approval/call-meaning.js +1 -0
- package/lib/node_modules/@pneuma/approval/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/approval/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/approval/index.js +1 -0
- package/lib/node_modules/@pneuma/approval/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/approval/package.json +38 -0
- package/lib/node_modules/@pneuma/approval-floor/approval-floor.d.ts +1 -0
- package/lib/node_modules/@pneuma/approval-floor/approval-floor.js +1 -0
- package/lib/node_modules/@pneuma/approval-floor/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/approval-floor/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/approval-floor/index.js +1 -0
- package/lib/node_modules/@pneuma/approval-floor/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/approval-floor/locale/ui.en.json +28 -0
- package/lib/node_modules/@pneuma/approval-floor/locale/ui.zh.json +28 -0
- package/lib/node_modules/@pneuma/approval-floor/package.json +40 -0
- package/lib/node_modules/@pneuma/ask/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/ask/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ask/index.js +1 -0
- package/lib/node_modules/@pneuma/ask/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ask/package.json +38 -0
- package/lib/node_modules/@pneuma/base/cordis.patch.yml +176 -0
- package/lib/node_modules/@pneuma/base/package.json +12 -0
- package/lib/node_modules/@pneuma/browser/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/browser/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/browser/index.js +1 -0
- package/lib/node_modules/@pneuma/browser/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/browser/locale/ui.en.json +61 -0
- package/lib/node_modules/@pneuma/browser/locale/ui.zh.json +61 -0
- package/lib/node_modules/@pneuma/browser/package.json +40 -0
- package/lib/node_modules/@pneuma/cdp/actions.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/actions.js +1 -0
- package/lib/node_modules/@pneuma/cdp/cloud-metadata.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/cloud-metadata.js +1 -0
- package/lib/node_modules/@pneuma/cdp/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/index.js +1 -0
- package/lib/node_modules/@pneuma/cdp/launch.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/launch.js +1 -0
- package/lib/node_modules/@pneuma/cdp/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/cdp/package.json +40 -0
- package/lib/node_modules/@pneuma/cdp/report.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/report.js +1 -0
- package/lib/node_modules/@pneuma/cdp/ring-buffer.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/ring-buffer.js +1 -0
- package/lib/node_modules/@pneuma/cdp/snapshot.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/snapshot.js +1 -0
- package/lib/node_modules/@pneuma/cdp/transport.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/transport.js +1 -0
- package/lib/node_modules/@pneuma/checkpoint/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/checkpoint/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/checkpoint/index.js +1 -0
- package/lib/node_modules/@pneuma/checkpoint/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/checkpoint/locale/ui.en.json +15 -0
- package/lib/node_modules/@pneuma/checkpoint/locale/ui.zh.json +15 -0
- package/lib/node_modules/@pneuma/checkpoint/package.json +38 -0
- package/lib/node_modules/@pneuma/checkpoint/shadow.d.ts +1 -0
- package/lib/node_modules/@pneuma/checkpoint/shadow.js +1 -0
- package/lib/node_modules/@pneuma/cli/config-cli.d.ts +1 -0
- package/lib/node_modules/@pneuma/cli/config-cli.js +1 -0
- package/lib/node_modules/@pneuma/cli/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/cli/index.js +1 -0
- package/lib/node_modules/@pneuma/cli/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/cli/package.json +35 -0
- package/lib/node_modules/@pneuma/cli/plugin-cli.d.ts +1 -0
- package/lib/node_modules/@pneuma/cli/plugin-cli.js +1 -0
- package/lib/node_modules/@pneuma/cli/pnpm-builds.d.ts +1 -0
- package/lib/node_modules/@pneuma/cli/pnpm-builds.js +1 -0
- package/lib/node_modules/@pneuma/commands/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/commands/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/commands/index.js +1 -0
- package/lib/node_modules/@pneuma/commands/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/commands/package.json +38 -0
- package/lib/node_modules/@pneuma/commands/session-export.d.ts +1 -0
- package/lib/node_modules/@pneuma/commands/session-export.js +1 -0
- package/lib/node_modules/@pneuma/commands-core/commands-completion.d.ts +1 -0
- package/lib/node_modules/@pneuma/commands-core/commands-completion.js +1 -0
- package/lib/node_modules/@pneuma/commands-core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/commands-core/index.js +1 -0
- package/lib/node_modules/@pneuma/commands-core/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/commands-core/package.json +34 -0
- package/lib/node_modules/@pneuma/compact/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/compact/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/compact/index.js +1 -0
- package/lib/node_modules/@pneuma/compact/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/compact/locale/ui.en.json +24 -0
- package/lib/node_modules/@pneuma/compact/locale/ui.zh.json +24 -0
- package/lib/node_modules/@pneuma/compact/package.json +39 -0
- package/lib/node_modules/@pneuma/computer-use/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/computer-use/desktop-control.d.ts +1 -0
- package/lib/node_modules/@pneuma/computer-use/desktop-control.js +1 -0
- package/lib/node_modules/@pneuma/computer-use/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/computer-use/index.js +1 -0
- package/lib/node_modules/@pneuma/computer-use/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/computer-use/locale/ui.en.json +41 -0
- package/lib/node_modules/@pneuma/computer-use/locale/ui.zh.json +41 -0
- package/lib/node_modules/@pneuma/computer-use/package.json +40 -0
- package/lib/node_modules/@pneuma/config-core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/config-core/index.js +1 -0
- package/lib/node_modules/@pneuma/config-core/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/config-core/market.d.ts +1 -0
- package/lib/node_modules/@pneuma/config-core/market.js +1 -0
- package/lib/node_modules/@pneuma/config-core/package.json +35 -0
- package/lib/node_modules/@pneuma/config-core/presets.d.ts +1 -0
- package/lib/node_modules/@pneuma/config-core/presets.js +1 -0
- package/lib/node_modules/@pneuma/desktop-dock/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/desktop-dock/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/desktop-dock/index.js +1 -0
- package/lib/node_modules/@pneuma/desktop-dock/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/desktop-dock/locale/ui.en.json +11 -0
- package/lib/node_modules/@pneuma/desktop-dock/locale/ui.zh.json +11 -0
- package/lib/node_modules/@pneuma/desktop-dock/package.json +38 -0
- package/lib/node_modules/@pneuma/dock-browser/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/dock-browser/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/dock-browser/index.js +1 -0
- package/lib/node_modules/@pneuma/dock-browser/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/dock-browser/locale/ui.en.json +10 -0
- package/lib/node_modules/@pneuma/dock-browser/locale/ui.zh.json +10 -0
- package/lib/node_modules/@pneuma/dock-browser/package.json +40 -0
- package/lib/node_modules/@pneuma/doctor/bundle.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/bundle.js +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/data.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/data.js +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/ecosystem.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/ecosystem.js +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/environment.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/environment.js +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/util.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/util.js +1 -0
- package/lib/node_modules/@pneuma/doctor/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/doctor/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/index.js +1 -0
- package/lib/node_modules/@pneuma/doctor/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/doctor/package.json +39 -0
- package/lib/node_modules/@pneuma/dsh-compat/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/dsh-compat/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/dsh-compat/index.js +1 -0
- package/lib/node_modules/@pneuma/dsh-compat/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/dsh-compat/package.json +40 -0
- package/lib/node_modules/@pneuma/git/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/git/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/git/index.js +1 -0
- package/lib/node_modules/@pneuma/git/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/git/package.json +38 -0
- package/lib/node_modules/@pneuma/goal/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/goal/goal.d.ts +1 -0
- package/lib/node_modules/@pneuma/goal/goal.js +1 -0
- package/lib/node_modules/@pneuma/goal/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/goal/index.js +1 -0
- package/lib/node_modules/@pneuma/goal/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/goal/locale/ui.en.json +10 -0
- package/lib/node_modules/@pneuma/goal/locale/ui.zh.json +10 -0
- package/lib/node_modules/@pneuma/goal/package.json +39 -0
- package/lib/node_modules/@pneuma/guards/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/guards/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/guards/index.js +1 -0
- package/lib/node_modules/@pneuma/guards/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/guards/package.json +38 -0
- package/lib/node_modules/@pneuma/hooks/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/hooks/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/hooks/index.js +1 -0
- package/lib/node_modules/@pneuma/hooks/lifecycle-hooks.d.ts +1 -0
- package/lib/node_modules/@pneuma/hooks/lifecycle-hooks.js +1 -0
- package/lib/node_modules/@pneuma/hooks/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/hooks/locale/ui.en.json +111 -0
- package/lib/node_modules/@pneuma/hooks/locale/ui.zh.json +111 -0
- package/lib/node_modules/@pneuma/hooks/package.json +39 -0
- package/lib/node_modules/@pneuma/host-stdio/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/host-stdio/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/host-stdio/index.js +1 -0
- package/lib/node_modules/@pneuma/host-stdio/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/host-stdio/package.json +38 -0
- package/lib/node_modules/@pneuma/image-diet/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/image-diet/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/image-diet/index.js +1 -0
- package/lib/node_modules/@pneuma/image-diet/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/image-diet/locale/ui.en.json +14 -0
- package/lib/node_modules/@pneuma/image-diet/locale/ui.zh.json +14 -0
- package/lib/node_modules/@pneuma/image-diet/package.json +39 -0
- package/lib/node_modules/@pneuma/llm/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/llm/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/llm/index.js +1 -0
- package/lib/node_modules/@pneuma/llm/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/llm/package.json +38 -0
- package/lib/node_modules/@pneuma/log/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/log/filter.d.ts +1 -0
- package/lib/node_modules/@pneuma/log/filter.js +1 -0
- package/lib/node_modules/@pneuma/log/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/log/index.js +1 -0
- package/lib/node_modules/@pneuma/log/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/log/locale/ui.en.json +30 -0
- package/lib/node_modules/@pneuma/log/locale/ui.zh.json +30 -0
- package/lib/node_modules/@pneuma/log/package.json +40 -0
- package/lib/node_modules/@pneuma/log/sink.d.ts +1 -0
- package/lib/node_modules/@pneuma/log/sink.js +1 -0
- package/lib/node_modules/@pneuma/lsp/client.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/client.js +1 -0
- package/lib/node_modules/@pneuma/lsp/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/lsp/framing.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/framing.js +1 -0
- package/lib/node_modules/@pneuma/lsp/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/index.js +1 -0
- package/lib/node_modules/@pneuma/lsp/line-shift.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/line-shift.js +1 -0
- package/lib/node_modules/@pneuma/lsp/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/lsp/locale/ui.en.json +17 -0
- package/lib/node_modules/@pneuma/lsp/locale/ui.zh.json +17 -0
- package/lib/node_modules/@pneuma/lsp/manager.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/manager.js +1 -0
- package/lib/node_modules/@pneuma/lsp/normalize.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/normalize.js +1 -0
- package/lib/node_modules/@pneuma/lsp/package.json +40 -0
- package/lib/node_modules/@pneuma/lsp/servers.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/servers.js +1 -0
- package/lib/node_modules/@pneuma/lsp/uri.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/uri.js +1 -0
- package/lib/node_modules/@pneuma/mcp/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/mcp/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/mcp/index.js +1 -0
- package/lib/node_modules/@pneuma/mcp/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/mcp/locale/ui.en.json +28 -0
- package/lib/node_modules/@pneuma/mcp/locale/ui.zh.json +28 -0
- package/lib/node_modules/@pneuma/mcp/mcp.d.ts +1 -0
- package/lib/node_modules/@pneuma/mcp/mcp.js +1 -0
- package/lib/node_modules/@pneuma/mcp/package.json +40 -0
- package/lib/node_modules/@pneuma/memory/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/memory/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/memory/index.js +1 -0
- package/lib/node_modules/@pneuma/memory/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/memory/locale/ui.en.json +67 -0
- package/lib/node_modules/@pneuma/memory/locale/ui.zh.json +67 -0
- package/lib/node_modules/@pneuma/memory/memory-eval.d.ts +1 -0
- package/lib/node_modules/@pneuma/memory/memory-eval.js +1 -0
- package/lib/node_modules/@pneuma/memory/memory.d.ts +1 -0
- package/lib/node_modules/@pneuma/memory/memory.js +1 -0
- package/lib/node_modules/@pneuma/memory/package.json +39 -0
- package/lib/node_modules/@pneuma/microcompact/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/microcompact/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/microcompact/index.js +1 -0
- package/lib/node_modules/@pneuma/microcompact/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/microcompact/locale/ui.en.json +20 -0
- package/lib/node_modules/@pneuma/microcompact/locale/ui.zh.json +20 -0
- package/lib/node_modules/@pneuma/microcompact/microcompact.d.ts +1 -0
- package/lib/node_modules/@pneuma/microcompact/microcompact.js +1 -0
- package/lib/node_modules/@pneuma/microcompact/package.json +39 -0
- package/lib/node_modules/@pneuma/mode/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/mode/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/mode/index.js +1 -0
- package/lib/node_modules/@pneuma/mode/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/mode/package.json +38 -0
- package/lib/node_modules/@pneuma/ops/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ops/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ops/index.js +1 -0
- package/lib/node_modules/@pneuma/ops/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ops/locale/ui.en.json +21 -0
- package/lib/node_modules/@pneuma/ops/locale/ui.zh.json +21 -0
- package/lib/node_modules/@pneuma/ops/package.json +41 -0
- package/lib/node_modules/@pneuma/ops/render.d.ts +1 -0
- package/lib/node_modules/@pneuma/ops/render.js +1 -0
- package/lib/node_modules/@pneuma/ops/tools.d.ts +1 -0
- package/lib/node_modules/@pneuma/ops/tools.js +1 -0
- package/lib/node_modules/@pneuma/ops/worker.d.ts +1 -0
- package/lib/node_modules/@pneuma/ops/worker.js +1 -0
- package/lib/node_modules/@pneuma/permission-core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/permission-core/index.js +1 -0
- package/lib/node_modules/@pneuma/permission-core/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/permission-core/package.json +35 -0
- package/lib/node_modules/@pneuma/permission-core/permission-presets.d.ts +1 -0
- package/lib/node_modules/@pneuma/permission-core/permission-presets.js +1 -0
- package/lib/node_modules/@pneuma/permission-core/permission-scope.d.ts +1 -0
- package/lib/node_modules/@pneuma/permission-core/permission-scope.js +1 -0
- package/lib/node_modules/@pneuma/permission-presets/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/permission-presets/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/permission-presets/index.js +1 -0
- package/lib/node_modules/@pneuma/permission-presets/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/permission-presets/locale/ui.en.json +10 -0
- package/lib/node_modules/@pneuma/permission-presets/locale/ui.zh.json +10 -0
- package/lib/node_modules/@pneuma/permission-presets/package.json +38 -0
- package/lib/node_modules/@pneuma/plan/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/plan/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/plan/index.js +1 -0
- package/lib/node_modules/@pneuma/plan/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/plan/package.json +38 -0
- package/lib/node_modules/@pneuma/plugin-manager/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/plugin-manager/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/plugin-manager/index.js +1 -0
- package/lib/node_modules/@pneuma/plugin-manager/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/plugin-manager/package.json +38 -0
- package/lib/node_modules/@pneuma/presets/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/presets/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/presets/index.js +1 -0
- package/lib/node_modules/@pneuma/presets/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/presets/locale/ui.en.json +10 -0
- package/lib/node_modules/@pneuma/presets/locale/ui.zh.json +10 -0
- package/lib/node_modules/@pneuma/presets/package.json +38 -0
- package/lib/node_modules/@pneuma/prompt/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/prompt/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/prompt/index.js +1 -0
- package/lib/node_modules/@pneuma/prompt/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/prompt/package.json +38 -0
- package/lib/node_modules/@pneuma/prompt/tool-result-prune.d.ts +1 -0
- package/lib/node_modules/@pneuma/prompt/tool-result-prune.js +1 -0
- package/lib/node_modules/@pneuma/ptc/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/ptc/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ptc/index.js +1 -0
- package/lib/node_modules/@pneuma/ptc/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ptc/package.json +38 -0
- package/lib/node_modules/@pneuma/remote/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/remote/http.d.ts +1 -0
- package/lib/node_modules/@pneuma/remote/http.js +1 -0
- package/lib/node_modules/@pneuma/remote/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/remote/index.js +1 -0
- package/lib/node_modules/@pneuma/remote/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/remote/locale/ui.en.json +76 -0
- package/lib/node_modules/@pneuma/remote/locale/ui.zh.json +76 -0
- package/lib/node_modules/@pneuma/remote/package.json +38 -0
- package/lib/node_modules/@pneuma/remote/routes.d.ts +1 -0
- package/lib/node_modules/@pneuma/remote/routes.js +1 -0
- package/lib/node_modules/@pneuma/remote/types.d.ts +1 -0
- package/lib/node_modules/@pneuma/remote/types.js +1 -0
- package/lib/node_modules/@pneuma/runtime/adapter/transcript.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/adapter/transcript.js +1 -0
- package/lib/node_modules/@pneuma/runtime/boot.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/boot.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/approval.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/approval.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/fonts.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/fonts.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/memory.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/memory.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/mode.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/mode.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/plugin.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/plugin.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/remote.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/remote.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/runtime.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/runtime.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/session.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/session.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/settings.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/settings.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/snapshot.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/snapshot.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/task.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/task.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/transcript.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/transcript.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/usage.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/usage.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/attachments.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/attachments.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/audit.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/audit.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/boot-notices.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/boot-notices.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/bytes.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/bytes.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/child-env.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/child-env.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/clamp.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/clamp.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/clock.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/clock.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/command-intent.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/command-intent.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/command-policy.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/command-policy.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/compact-anchors.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/compact-anchors.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/config-store.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/config-store.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/config.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/config.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/context-injection-report.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/context-injection-report.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/diff-text.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/diff-text.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-browser.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-browser.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-ops.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-ops.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-session.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-session.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/llm-usage-event.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/llm-usage-event.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/presentation.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/presentation.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/resolve-hook.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/resolve-hook.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/service-map.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/service-map.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-bridge.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-bridge.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-events.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-events.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/credentials.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/credentials.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/home-paths.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/home-paths.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/tools-facade.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/tools-facade.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/err-text.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/err-text.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/events.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/events.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/executable.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/executable.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-exec.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-exec.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-info.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-info.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-surface.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-surface.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/guard-session.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/guard-session.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/host-browser-link.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/host-browser-link.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/host-methods.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/host-methods.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/http-debug.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/http-debug.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/i18n-text.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/i18n-text.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/i18n.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/i18n.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/image-diet.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/image-diet.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/json-text.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/json-text.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/llm.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/llm.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/lockfile.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/lockfile.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/log-config.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/log-config.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/mention.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/mention.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/migrate.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/migrate.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/model-caps.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/model-caps.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/native-bridge.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/native-bridge.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/os-lock.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/os-lock.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/path-policy.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/path-policy.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-bundle.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-bundle.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-loader.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-loader.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-locale.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-locale.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-npm.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-npm.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-patch.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-patch.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-registry.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-registry.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-watch.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-watch.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/prefs.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/prefs.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/pricing.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/pricing.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/profile-bootstrap.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/profile-bootstrap.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/profile-dir.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/profile-dir.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ptc.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ptc.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/records.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/records.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/redact.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/redact.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/frames.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/frames.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/notify.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/notify.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/owner.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/owner.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/pairing.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/pairing.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/push.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/push.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/store.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/store.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/tickets.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/tickets.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/uploads.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/uploads.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/repeat-reminder.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/repeat-reminder.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/request-attribution.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/request-attribution.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/request-invariant.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/request-invariant.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/rule.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/rule.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/runner.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/runner.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/store.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/store.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/secrets.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/secrets.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/session-meta.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/session-meta.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/session.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/session.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/shell-quote.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/shell-quote.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/side-ask.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/side-ask.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/skills.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/skills.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/snapshot-throttle.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/snapshot-throttle.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/spill.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/spill.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/strings.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/strings.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/team-board.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/team-board.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/terminal-env.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/terminal-env.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/text-format.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/text-format.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/throughput.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/throughput.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/todo-reminder-cadence.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/todo-reminder-cadence.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/todo-reminder.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/todo-reminder.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/token-estimate.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/token-estimate.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tool-guards.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tool-guards.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/command-runner.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/command-runner.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/fs-tools.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/fs-tools.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/path-args.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/path-args.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/sandbox-args.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/sandbox-args.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/transcript-text.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/transcript-text.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-boot-source.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-boot-source.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-bundles.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-bundles.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-combo.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-combo.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-events.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-events.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-graph-frames.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-graph-frames.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-hmr.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-hmr.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-manifest.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-manifest.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-methods.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-methods.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-route.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-route.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-server.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-server.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-trust.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-trust.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/unified-diff.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/unified-diff.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/untrusted.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/untrusted.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/update-check.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/update-check.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/usage-log.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/usage-log.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/version.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/version.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/web-http.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/web-http.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/web-static.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/web-static.js +1 -0
- package/lib/node_modules/@pneuma/runtime/headless.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/headless.js +1 -0
- package/lib/node_modules/@pneuma/runtime/package.json +11 -0
- package/lib/node_modules/@pneuma/runtime/services/types.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/services/types.js +1 -0
- package/lib/node_modules/@pneuma/runtime-adapter/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/runtime-adapter/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime-adapter/index.js +1 -0
- package/lib/node_modules/@pneuma/runtime-adapter/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/runtime-adapter/package.json +38 -0
- package/lib/node_modules/@pneuma/runtime-api/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/runtime-api/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime-api/index.js +1 -0
- package/lib/node_modules/@pneuma/runtime-api/inspect.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime-api/inspect.js +1 -0
- package/lib/node_modules/@pneuma/runtime-api/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/runtime-api/package.json +38 -0
- package/lib/node_modules/@pneuma/sandbox/backends.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/backends.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/sandbox/execpolicy.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/execpolicy.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/index.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/sandbox/locale/ui.en.json +78 -0
- package/lib/node_modules/@pneuma/sandbox/locale/ui.zh.json +78 -0
- package/lib/node_modules/@pneuma/sandbox/net-proxy.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/net-proxy.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/package.json +40 -0
- package/lib/node_modules/@pneuma/sandbox/policy.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/policy.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/review.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/review.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/abi.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/abi.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/account.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/account.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/acl.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/acl.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/backend.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/backend.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/doctor.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/doctor.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/ffi.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/ffi.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/interpreter.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/interpreter.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/net-abi.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/net-abi.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/runner-entry.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/runner-entry.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/setup.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/setup.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/sweep.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/sweep.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/token.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/token.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/utf16.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/utf16.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/wfp.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/wfp.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/workspace-sid.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/workspace-sid.js +1 -0
- package/lib/node_modules/@pneuma/schedule/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/schedule/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/schedule/index.js +1 -0
- package/lib/node_modules/@pneuma/schedule/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/schedule/locale/ui.en.json +29 -0
- package/lib/node_modules/@pneuma/schedule/locale/ui.zh.json +29 -0
- package/lib/node_modules/@pneuma/schedule/package.json +40 -0
- package/lib/node_modules/@pneuma/self-improve/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/self-improve/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/self-improve/index.js +1 -0
- package/lib/node_modules/@pneuma/self-improve/ledger.d.ts +1 -0
- package/lib/node_modules/@pneuma/self-improve/ledger.js +1 -0
- package/lib/node_modules/@pneuma/self-improve/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/self-improve/locale/ui.en.json +31 -0
- package/lib/node_modules/@pneuma/self-improve/locale/ui.zh.json +31 -0
- package/lib/node_modules/@pneuma/self-improve/package.json +41 -0
- package/lib/node_modules/@pneuma/self-improve/skill-write.d.ts +1 -0
- package/lib/node_modules/@pneuma/self-improve/skill-write.js +1 -0
- package/lib/node_modules/@pneuma/self-improve/store.d.ts +1 -0
- package/lib/node_modules/@pneuma/self-improve/store.js +1 -0
- package/lib/node_modules/@pneuma/session/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/session/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/session/index.js +1 -0
- package/lib/node_modules/@pneuma/session/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/session/package.json +38 -0
- package/lib/node_modules/@pneuma/session-core/compact.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/compact.js +1 -0
- package/lib/node_modules/@pneuma/session-core/hooks.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/hooks.js +1 -0
- package/lib/node_modules/@pneuma/session-core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/index.js +1 -0
- package/lib/node_modules/@pneuma/session-core/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/session-core/loop.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/loop.js +1 -0
- package/lib/node_modules/@pneuma/session-core/modes.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/modes.js +1 -0
- package/lib/node_modules/@pneuma/session-core/package.json +38 -0
- package/lib/node_modules/@pneuma/session-core/prompt.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/prompt.js +1 -0
- package/lib/node_modules/@pneuma/session-search/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/session-search/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-search/index.js +1 -0
- package/lib/node_modules/@pneuma/session-search/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/session-search/locale/ui.en.json +29 -0
- package/lib/node_modules/@pneuma/session-search/locale/ui.zh.json +29 -0
- package/lib/node_modules/@pneuma/session-search/package.json +40 -0
- package/lib/node_modules/@pneuma/session-search/session-index.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-search/session-index.js +1 -0
- package/lib/node_modules/@pneuma/session-title/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/session-title/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-title/index.js +1 -0
- package/lib/node_modules/@pneuma/session-title/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/session-title/package.json +38 -0
- package/lib/node_modules/@pneuma/settings/connection-test.d.ts +1 -0
- package/lib/node_modules/@pneuma/settings/connection-test.js +1 -0
- package/lib/node_modules/@pneuma/settings/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/settings/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/settings/index.js +1 -0
- package/lib/node_modules/@pneuma/settings/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/settings/locale/ui.en.json +94 -0
- package/lib/node_modules/@pneuma/settings/locale/ui.zh.json +94 -0
- package/lib/node_modules/@pneuma/settings/model-discovery.d.ts +1 -0
- package/lib/node_modules/@pneuma/settings/model-discovery.js +1 -0
- package/lib/node_modules/@pneuma/settings/package.json +38 -0
- package/lib/node_modules/@pneuma/skills/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/skills/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/skills/index.js +1 -0
- package/lib/node_modules/@pneuma/skills/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/skills/package.json +38 -0
- package/lib/node_modules/@pneuma/spill/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/spill/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/spill/index.js +1 -0
- package/lib/node_modules/@pneuma/spill/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/spill/locale/ui.en.json +31 -0
- package/lib/node_modules/@pneuma/spill/locale/ui.zh.json +31 -0
- package/lib/node_modules/@pneuma/spill/package.json +40 -0
- package/lib/node_modules/@pneuma/subagent/agent-roles.d.ts +1 -0
- package/lib/node_modules/@pneuma/subagent/agent-roles.js +1 -0
- package/lib/node_modules/@pneuma/subagent/board-snapshot.d.ts +1 -0
- package/lib/node_modules/@pneuma/subagent/board-snapshot.js +1 -0
- package/lib/node_modules/@pneuma/subagent/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/subagent/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/subagent/index.js +1 -0
- package/lib/node_modules/@pneuma/subagent/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/subagent/locale/ui.en.json +51 -0
- package/lib/node_modules/@pneuma/subagent/locale/ui.zh.json +51 -0
- package/lib/node_modules/@pneuma/subagent/package.json +40 -0
- package/lib/node_modules/@pneuma/superagent/app/api.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/api.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/assessment.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/assessment.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/cache.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/cache.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/cards.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/cards.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/context.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/context.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/delivery.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/delivery.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/effects.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/effects.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/execution-environment.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/execution-environment.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/links.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/links.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/migration.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/migration.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/notices.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/notices.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/outbox.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/outbox.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/passes.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/passes.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/prompts.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/prompts.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/resources.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/resources.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/retry-health.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/retry-health.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/role-models.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/role-models.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/runtime.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/runtime.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/sessions.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/sessions.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/settings-history.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/settings-history.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/settings.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/settings.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/setup.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/setup.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/skill-files.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/skill-files.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/source-context.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/source-context.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/store-read.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/store-read.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/store.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/store.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/executor.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/executor.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/main.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/main.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/tool.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/tool.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/versions.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/versions.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/overview.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/overview.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/records.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/records.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/settings.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/settings.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/sources.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/sources.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/text.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/text.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/threads.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/threads.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/tickets.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/tickets.js +1 -0
- package/lib/node_modules/@pneuma/superagent/cordis.patch.yml +7 -0
- package/lib/node_modules/@pneuma/superagent/core/admission.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/admission.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/assignments.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/assignments.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/engine.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/engine.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/errors.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/errors.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/evals.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/evals.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/ids.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/ids.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/index.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/intake.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/intake.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/limits.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/limits.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/memory.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/memory.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/model.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/model.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/part.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/part.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/policy.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/policy.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/ports.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/ports.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/reasons.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/reasons.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/replies.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/replies.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/stage.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/stage.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/tickets.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/tickets.js +1 -0
- package/lib/node_modules/@pneuma/superagent/deployment.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/deployment.js +1 -0
- package/lib/node_modules/@pneuma/superagent/executor/background.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/executor/background.js +1 -0
- package/lib/node_modules/@pneuma/superagent/executor/dsh.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/executor/dsh.js +1 -0
- package/lib/node_modules/@pneuma/superagent/host/command.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/host/command.js +1 -0
- package/lib/node_modules/@pneuma/superagent/host/health.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/host/health.js +1 -0
- package/lib/node_modules/@pneuma/superagent/host/settings-section.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/host/settings-section.js +1 -0
- package/lib/node_modules/@pneuma/superagent/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/index.js +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/commands.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/commands.js +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/environment.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/environment.js +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/health.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/health.js +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/text.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/text.js +1 -0
- package/lib/node_modules/@pneuma/superagent/kv.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/kv.js +1 -0
- package/lib/node_modules/@pneuma/superagent/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/superagent/locale/ui.en.json +26 -0
- package/lib/node_modules/@pneuma/superagent/locale/ui.zh.json +26 -0
- package/lib/node_modules/@pneuma/superagent/package.json +46 -0
- package/lib/node_modules/@pneuma/superagent/paths.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/paths.js +1 -0
- package/lib/node_modules/@pneuma/superagent/prompts/admission.md +68 -0
- package/lib/node_modules/@pneuma/superagent/prompts/cli.md +17 -0
- package/lib/node_modules/@pneuma/superagent/prompts/dispatch.md +59 -0
- package/lib/node_modules/@pneuma/superagent/prompts/handoff-orchestrator.md +4 -0
- package/lib/node_modules/@pneuma/superagent/prompts/handoff-worker.md +7 -0
- package/lib/node_modules/@pneuma/superagent/prompts/handoff.md +6 -0
- package/lib/node_modules/@pneuma/superagent/prompts/orchestrator.md +16 -0
- package/lib/node_modules/@pneuma/superagent/prompts/replies.md +35 -0
- package/lib/node_modules/@pneuma/superagent/prompts/shared.md +7 -0
- package/lib/node_modules/@pneuma/superagent/prompts/subscriptions.md +13 -0
- package/lib/node_modules/@pneuma/superagent/prompts/team/communication.md +97 -0
- package/lib/node_modules/@pneuma/superagent/prompts/team/delivery.md +28 -0
- package/lib/node_modules/@pneuma/superagent/prompts/team/scope.md +22 -0
- package/lib/node_modules/@pneuma/superagent/prompts/work.md +49 -0
- package/lib/node_modules/@pneuma/superagent/prompts/worker.md +10 -0
- package/lib/node_modules/@pneuma/superagent/setup.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/setup.js +1 -0
- package/lib/node_modules/@pneuma/superagent/skills/dsh-superagent-feishu/SKILL.md +12 -0
- package/lib/node_modules/@pneuma/superagent/skills/dsh-superagent-github/SKILL.md +14 -0
- package/lib/node_modules/@pneuma/superagent/sources/admission-context.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/admission-context.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-channel.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-channel.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-image.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-image.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-loops.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-loops.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-read.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-read.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-trigger.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-trigger.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-channel.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-channel.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-pull.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-pull.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-read.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-read.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-trigger.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-trigger.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/host.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/host.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/kind.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/kind.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/poll.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/poll.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/registry.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/registry.js +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/cordis.patch.yml +9 -0
- package/lib/node_modules/@pneuma/superagent-webhook/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/index.js +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/superagent-webhook/package.json +39 -0
- package/lib/node_modules/@pneuma/superagent-webhook/tests/settings-contract.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/tests/settings-contract.js +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/webhook.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/webhook.js +1 -0
- package/lib/node_modules/@pneuma/surfaces/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/surfaces/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/surfaces/index.js +1 -0
- package/lib/node_modules/@pneuma/surfaces/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/surfaces/package.json +38 -0
- package/lib/node_modules/@pneuma/surfaces/surface-registry.d.ts +1 -0
- package/lib/node_modules/@pneuma/surfaces/surface-registry.js +1 -0
- package/lib/node_modules/@pneuma/todo/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/todo/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/todo/index.js +1 -0
- package/lib/node_modules/@pneuma/todo/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/todo/locale/ui.en.json +11 -0
- package/lib/node_modules/@pneuma/todo/locale/ui.zh.json +11 -0
- package/lib/node_modules/@pneuma/todo/package.json +39 -0
- package/lib/node_modules/@pneuma/todo/todo.d.ts +1 -0
- package/lib/node_modules/@pneuma/todo/todo.js +1 -0
- package/lib/node_modules/@pneuma/tool-search/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/tool-search/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/tool-search/index.js +1 -0
- package/lib/node_modules/@pneuma/tool-search/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/tool-search/locale/ui.en.json +36 -0
- package/lib/node_modules/@pneuma/tool-search/locale/ui.zh.json +36 -0
- package/lib/node_modules/@pneuma/tool-search/package.json +40 -0
- package/lib/node_modules/@pneuma/tool-search/tool-search.d.ts +1 -0
- package/lib/node_modules/@pneuma/tool-search/tool-search.js +1 -0
- package/lib/node_modules/@pneuma/tools/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/tools/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools/index.js +1 -0
- package/lib/node_modules/@pneuma/tools/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/tools/package.json +38 -0
- package/lib/node_modules/@pneuma/tools-default/bash.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools-default/bash.js +1 -0
- package/lib/node_modules/@pneuma/tools-default/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/tools-default/image-tool.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools-default/image-tool.js +1 -0
- package/lib/node_modules/@pneuma/tools-default/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools-default/index.js +1 -0
- package/lib/node_modules/@pneuma/tools-default/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/tools-default/locale/ui.en.json +27 -0
- package/lib/node_modules/@pneuma/tools-default/locale/ui.zh.json +27 -0
- package/lib/node_modules/@pneuma/tools-default/package.json +39 -0
- package/lib/node_modules/@pneuma/tools-default/persistent-shell.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools-default/persistent-shell.js +1 -0
- package/lib/node_modules/@pneuma/tools-default/search-tools.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools-default/search-tools.js +1 -0
- package/lib/node_modules/@pneuma/transcript/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/transcript/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/transcript/index.js +1 -0
- package/lib/node_modules/@pneuma/transcript/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/transcript/package.json +38 -0
- package/lib/node_modules/@pneuma/tui/app/AgentsOverlay.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/AgentsOverlay.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/App.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/App.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/ApprovalCard.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/ApprovalCard.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/AskCard.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/AskCard.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/ChatView.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/ChatView.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/Composer.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/Composer.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/DiffBlock.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/DiffBlock.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/MarkdownView.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/MarkdownView.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/ModelPicker.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/ModelPicker.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/PickerFrame.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/PickerFrame.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/PlanReviewCard.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/PlanReviewCard.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/PresetPicker.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/PresetPicker.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/PreviewOverlay.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/PreviewOverlay.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/SessionPicker.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/SessionPicker.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/SettingsOverlay.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/SettingsOverlay.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/SkillsPicker.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/SkillsPicker.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/StatusBar.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/StatusBar.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/TaskStrips.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/TaskStrips.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/TimelineRail.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/TimelineRail.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/ToolCard.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/ToolCard.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/TranscriptOverlay.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/TranscriptOverlay.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/TranscriptViewport.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/TranscriptViewport.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/Welcome.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/Welcome.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/attach.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/attach.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/click.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/click.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/clipboard-image.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/clipboard-image.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/cursor.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/cursor.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/display-width.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/display-width.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/history-store.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/history-store.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/image-blocks.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/image-blocks.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/keymap.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/keymap.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/markdown.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/markdown.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/mouse.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/mouse.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/pointer.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/pointer.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/scroll-model.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/scroll-model.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/settings-model.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/settings-model.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/snapshot-subscribe.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/snapshot-subscribe.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/theme.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/theme.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/ticker.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/ticker.js +1 -0
- package/lib/node_modules/@pneuma/tui/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/tui/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/index.js +1 -0
- package/lib/node_modules/@pneuma/tui/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/tui/package.json +38 -0
- package/lib/node_modules/@pneuma/ui-actions/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-actions/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-actions/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-actions/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-actions/locale/ui.en.json +3 -0
- package/lib/node_modules/@pneuma/ui-actions/locale/ui.zh.json +3 -0
- package/lib/node_modules/@pneuma/ui-actions/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-ask/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-ask/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-ask/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-ask/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-ask/locale/ui.en.json +28 -0
- package/lib/node_modules/@pneuma/ui-ask/locale/ui.zh.json +28 -0
- package/lib/node_modules/@pneuma/ui-ask/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-boot/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-boot/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-boot/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-boot/locale/ui.en.json +28 -0
- package/lib/node_modules/@pneuma/ui-boot/locale/ui.zh.json +28 -0
- package/lib/node_modules/@pneuma/ui-boot/package.json +38 -0
- package/lib/node_modules/@pneuma/ui-browser/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-browser/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-browser/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-browser/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-browser/locale/ui.en.json +17 -0
- package/lib/node_modules/@pneuma/ui-browser/locale/ui.zh.json +17 -0
- package/lib/node_modules/@pneuma/ui-browser/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-composer/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-composer/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-composer/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-composer/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-composer/locale/ui.en.json +161 -0
- package/lib/node_modules/@pneuma/ui-composer/locale/ui.zh.json +161 -0
- package/lib/node_modules/@pneuma/ui-composer/package.json +44 -0
- package/lib/node_modules/@pneuma/ui-core/arrival.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/arrival.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/frames.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/frames.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/i18n.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/i18n.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-core/package.json +37 -0
- package/lib/node_modules/@pneuma/ui-core/plugin.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/plugin.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/scoped-slots.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/scoped-slots.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/services-react.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/services-react.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/services.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/services.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/signal.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/signal.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots-ink.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots-ink.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots-react.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots-react.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/store.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/store.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/tui-plugin-api.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/tui-plugin-api.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/tui-plugins.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/tui-plugins.js +1 -0
- package/lib/node_modules/@pneuma/ui-dockkit/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-dockkit/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-dockkit/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-dockkit/locale/ui.en.json +21 -0
- package/lib/node_modules/@pneuma/ui-dockkit/locale/ui.zh.json +21 -0
- package/lib/node_modules/@pneuma/ui-dockkit/package.json +33 -0
- package/lib/node_modules/@pneuma/ui-files/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-files/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-files/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-files/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-files/locale/ui.en.json +43 -0
- package/lib/node_modules/@pneuma/ui-files/locale/ui.zh.json +43 -0
- package/lib/node_modules/@pneuma/ui-files/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-layout/cordis.patch.yml +7 -0
- package/lib/node_modules/@pneuma/ui-layout/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-layout/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-layout/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-layout/locale/ui.en.json +112 -0
- package/lib/node_modules/@pneuma/ui-layout/locale/ui.zh.json +112 -0
- package/lib/node_modules/@pneuma/ui-layout/package.json +44 -0
- package/lib/node_modules/@pneuma/ui-palette/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-palette/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-palette/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-palette/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-palette/locale/ui.en.json +35 -0
- package/lib/node_modules/@pneuma/ui-palette/locale/ui.zh.json +35 -0
- package/lib/node_modules/@pneuma/ui-palette/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-plugins/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-plugins/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-plugins/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-plugins/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-plugins/locale/ui.en.json +134 -0
- package/lib/node_modules/@pneuma/ui-plugins/locale/ui.zh.json +134 -0
- package/lib/node_modules/@pneuma/ui-plugins/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-preview/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-preview/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-preview/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-preview/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-preview/locale/ui.en.json +29 -0
- package/lib/node_modules/@pneuma/ui-preview/locale/ui.zh.json +29 -0
- package/lib/node_modules/@pneuma/ui-preview/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-primitives/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-primitives/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-primitives/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-primitives/locale/ui.en.json +167 -0
- package/lib/node_modules/@pneuma/ui-primitives/locale/ui.zh.json +167 -0
- package/lib/node_modules/@pneuma/ui-primitives/package.json +33 -0
- package/lib/node_modules/@pneuma/ui-prompt/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-prompt/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-prompt/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-prompt/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-prompt/locale/ui.en.json +73 -0
- package/lib/node_modules/@pneuma/ui-prompt/locale/ui.zh.json +73 -0
- package/lib/node_modules/@pneuma/ui-prompt/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-renderer/cordis.patch.yml +7 -0
- package/lib/node_modules/@pneuma/ui-renderer/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-renderer/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-renderer/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-renderer/locale/ui.en.json +14 -0
- package/lib/node_modules/@pneuma/ui-renderer/locale/ui.zh.json +14 -0
- package/lib/node_modules/@pneuma/ui-renderer/package.json +45 -0
- package/lib/node_modules/@pneuma/ui-runtime/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-runtime/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-runtime/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-runtime/locale/ui.en.json +5 -0
- package/lib/node_modules/@pneuma/ui-runtime/locale/ui.zh.json +5 -0
- package/lib/node_modules/@pneuma/ui-runtime/package.json +33 -0
- package/lib/node_modules/@pneuma/ui-sessions/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-sessions/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-sessions/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-sessions/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-sessions/locale/ui.en.json +119 -0
- package/lib/node_modules/@pneuma/ui-sessions/locale/ui.zh.json +119 -0
- package/lib/node_modules/@pneuma/ui-sessions/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-settings/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-settings/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-settings/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-settings/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-settings/locale/ui.en.json +490 -0
- package/lib/node_modules/@pneuma/ui-settings/locale/ui.zh.json +490 -0
- package/lib/node_modules/@pneuma/ui-settings/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-skills/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-skills/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-skills/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-skills/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-skills/locale/ui.en.json +93 -0
- package/lib/node_modules/@pneuma/ui-skills/locale/ui.zh.json +93 -0
- package/lib/node_modules/@pneuma/ui-skills/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-slots/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-slots/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-slots/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-slots/locale/ui.en.json +4 -0
- package/lib/node_modules/@pneuma/ui-slots/locale/ui.zh.json +4 -0
- package/lib/node_modules/@pneuma/ui-slots/package.json +33 -0
- package/lib/node_modules/@pneuma/ui-status/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-status/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-status/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-status/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-status/locale/ui.en.json +134 -0
- package/lib/node_modules/@pneuma/ui-status/locale/ui.zh.json +134 -0
- package/lib/node_modules/@pneuma/ui-status/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-statusbar/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-statusbar/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-statusbar/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-statusbar/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-statusbar/locale/ui.en.json +33 -0
- package/lib/node_modules/@pneuma/ui-statusbar/locale/ui.zh.json +33 -0
- package/lib/node_modules/@pneuma/ui-statusbar/package.json +44 -0
- package/lib/node_modules/@pneuma/ui-superagent/cordis.patch.yml +10 -0
- package/lib/node_modules/@pneuma/ui-superagent/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-superagent/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-superagent/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-superagent/locale/ui.en.json +117 -0
- package/lib/node_modules/@pneuma/ui-superagent/locale/ui.zh.json +117 -0
- package/lib/node_modules/@pneuma/ui-superagent/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-tasks/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-tasks/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-tasks/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-tasks/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-tasks/locale/ui.en.json +22 -0
- package/lib/node_modules/@pneuma/ui-tasks/locale/ui.zh.json +22 -0
- package/lib/node_modules/@pneuma/ui-tasks/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-team/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-team/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-team/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-team/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-team/locale/ui.en.json +19 -0
- package/lib/node_modules/@pneuma/ui-team/locale/ui.zh.json +19 -0
- package/lib/node_modules/@pneuma/ui-team/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-terminal/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-terminal/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-terminal/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-terminal/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-terminal/locale/ui.en.json +9 -0
- package/lib/node_modules/@pneuma/ui-terminal/locale/ui.zh.json +9 -0
- package/lib/node_modules/@pneuma/ui-terminal/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-trace/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-trace/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-trace/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-trace/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-trace/locale/ui.en.json +118 -0
- package/lib/node_modules/@pneuma/ui-trace/locale/ui.zh.json +118 -0
- package/lib/node_modules/@pneuma/ui-trace/package.json +46 -0
- package/lib/node_modules/@pneuma/ui-transcript/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/ui-transcript/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-transcript/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-transcript/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-transcript/locale/ui.en.json +281 -0
- package/lib/node_modules/@pneuma/ui-transcript/locale/ui.zh.json +281 -0
- package/lib/node_modules/@pneuma/ui-transcript/package.json +43 -0
- package/lib/node_modules/@pneuma/waiting/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/waiting/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/waiting/index.js +1 -0
- package/lib/node_modules/@pneuma/waiting/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/waiting/package.json +38 -0
- package/lib/node_modules/@pneuma/web-fetch/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/web-fetch/html.d.ts +1 -0
- package/lib/node_modules/@pneuma/web-fetch/html.js +1 -0
- package/lib/node_modules/@pneuma/web-fetch/http.d.ts +1 -0
- package/lib/node_modules/@pneuma/web-fetch/http.js +1 -0
- package/lib/node_modules/@pneuma/web-fetch/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/web-fetch/index.js +1 -0
- package/lib/node_modules/@pneuma/web-fetch/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/web-fetch/locale/ui.en.json +14 -0
- package/lib/node_modules/@pneuma/web-fetch/locale/ui.zh.json +14 -0
- package/lib/node_modules/@pneuma/web-fetch/package.json +40 -0
- package/lib/node_modules/@pneuma/web-search/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/web-search/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/web-search/index.js +1 -0
- package/lib/node_modules/@pneuma/web-search/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/web-search/locale/ui.en.json +30 -0
- package/lib/node_modules/@pneuma/web-search/locale/ui.zh.json +30 -0
- package/lib/node_modules/@pneuma/web-search/package.json +40 -0
- package/lib/node_modules/@pneuma/webserver/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/webserver/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/webserver/index.js +1 -0
- package/lib/node_modules/@pneuma/webserver/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/webserver/package.json +38 -0
- package/lib/packages/agent/cache-probe.d.ts +56 -0
- package/lib/packages/agent/cache-probe.js +169 -0
- package/lib/packages/agent/index.d.ts +21 -0
- package/lib/packages/agent/index.js +511 -0
- package/lib/packages/agent/locale/en.json +4 -0
- package/lib/packages/approval/approval.d.ts +11 -0
- package/lib/packages/approval/approval.js +11 -0
- package/lib/packages/approval/call-meaning.js +347 -0
- package/lib/packages/approval/index.d.ts +26 -0
- package/lib/packages/approval/index.js +1413 -0
- package/lib/packages/approval/locale/en.json +4 -0
- package/lib/packages/approval-floor/approval-floor.d.ts +192 -0
- package/lib/packages/approval-floor/approval-floor.js +851 -0
- package/lib/packages/approval-floor/index.js +236 -0
- package/lib/packages/approval-floor/locale/en.json +4 -0
- package/lib/packages/approval-floor/locale/ui.en.json +28 -0
- package/lib/packages/approval-floor/locale/ui.zh.json +28 -0
- package/lib/packages/ask/index.js +298 -0
- package/lib/packages/ask/locale/en.json +4 -0
- package/lib/packages/browser/index.d.ts +72 -0
- package/lib/packages/browser/index.js +1286 -0
- package/lib/packages/browser/locale/en.json +4 -0
- package/lib/packages/browser/locale/ui.en.json +61 -0
- package/lib/packages/browser/locale/ui.zh.json +61 -0
- package/lib/packages/cdp/actions.js +655 -0
- package/lib/packages/cdp/cloud-metadata.d.ts +9 -0
- package/lib/packages/cdp/cloud-metadata.js +16 -0
- package/lib/packages/cdp/index.d.ts +21 -0
- package/lib/packages/cdp/index.js +21 -0
- package/lib/packages/cdp/launch.js +491 -0
- package/lib/packages/cdp/locale/en.json +4 -0
- package/lib/packages/cdp/report.d.ts +42 -0
- package/lib/packages/cdp/report.js +76 -0
- package/lib/packages/cdp/ring-buffer.d.ts +25 -0
- package/lib/packages/cdp/ring-buffer.js +44 -0
- package/lib/packages/cdp/snapshot.d.ts +139 -0
- package/lib/packages/cdp/snapshot.js +312 -0
- package/lib/packages/cdp/transport.d.ts +147 -0
- package/lib/packages/cdp/transport.js +359 -0
- package/lib/packages/checkpoint/index.d.ts +21 -0
- package/lib/packages/checkpoint/index.js +360 -0
- package/lib/packages/checkpoint/locale/en.json +4 -0
- package/lib/packages/checkpoint/locale/ui.en.json +15 -0
- package/lib/packages/checkpoint/locale/ui.zh.json +15 -0
- package/lib/packages/checkpoint/shadow.d.ts +166 -0
- package/lib/packages/checkpoint/shadow.js +832 -0
- package/lib/packages/cli/config-cli.js +89 -0
- package/lib/packages/cli/index.d.ts +20 -0
- package/lib/packages/cli/index.js +18 -0
- package/lib/packages/cli/locale/en.json +4 -0
- package/lib/packages/cli/plugin-cli.js +626 -0
- package/lib/packages/cli/pnpm-builds.d.ts +26 -0
- package/lib/packages/cli/pnpm-builds.js +68 -0
- package/lib/packages/commands/index.d.ts +28 -0
- package/lib/packages/commands/index.js +620 -0
- package/lib/packages/commands/locale/en.json +4 -0
- package/lib/packages/commands/session-export.d.ts +18 -0
- package/lib/packages/commands/session-export.js +73 -0
- package/lib/packages/commands-core/commands-completion.d.ts +106 -0
- package/lib/packages/commands-core/index.d.ts +16 -0
- package/lib/packages/commands-core/index.js +16 -0
- package/lib/packages/commands-core/locale/en.json +4 -0
- package/lib/packages/compact/index.d.ts +21 -0
- package/lib/packages/compact/index.js +457 -0
- package/lib/packages/compact/locale/en.json +4 -0
- package/lib/packages/compact/locale/ui.en.json +24 -0
- package/lib/packages/compact/locale/ui.zh.json +24 -0
- package/lib/packages/computer-use/desktop-control.d.ts +298 -0
- package/lib/packages/computer-use/desktop-control.js +1309 -0
- package/lib/packages/computer-use/index.d.ts +47 -0
- package/lib/packages/computer-use/index.js +564 -0
- package/lib/packages/computer-use/locale/en.json +4 -0
- package/lib/packages/computer-use/locale/ui.en.json +41 -0
- package/lib/packages/computer-use/locale/ui.zh.json +41 -0
- package/lib/packages/config-core/index.d.ts +15 -0
- package/lib/packages/config-core/index.js +15 -0
- package/lib/packages/config-core/locale/en.json +4 -0
- package/lib/packages/config-core/market.d.ts +107 -0
- package/lib/packages/config-core/market.js +730 -0
- package/lib/packages/config-core/presets.d.ts +104 -0
- package/lib/packages/config-core/presets.js +423 -0
- package/lib/packages/desktop-dock/index.d.ts +13 -0
- package/lib/packages/desktop-dock/index.js +719 -0
- package/lib/packages/desktop-dock/locale/en.json +4 -0
- package/lib/packages/desktop-dock/locale/ui.en.json +11 -0
- package/lib/packages/desktop-dock/locale/ui.zh.json +11 -0
- package/lib/packages/dock-browser/index.d.ts +38 -0
- package/lib/packages/dock-browser/index.js +898 -0
- package/lib/packages/dock-browser/locale/en.json +4 -0
- package/lib/packages/dock-browser/locale/ui.en.json +10 -0
- package/lib/packages/dock-browser/locale/ui.zh.json +10 -0
- package/lib/packages/doctor/bundle.d.ts +93 -0
- package/lib/packages/doctor/bundle.js +159 -0
- package/lib/packages/doctor/checks/data.d.ts +19 -0
- package/lib/packages/doctor/checks/data.js +143 -0
- package/lib/packages/doctor/checks/ecosystem.d.ts +12 -0
- package/lib/packages/doctor/checks/ecosystem.js +125 -0
- package/lib/packages/doctor/checks/environment.d.ts +9 -0
- package/lib/packages/doctor/checks/environment.js +130 -0
- package/lib/packages/doctor/checks/util.d.ts +27 -0
- package/lib/packages/doctor/checks/util.js +100 -0
- package/lib/packages/doctor/index.d.ts +26 -0
- package/lib/packages/doctor/index.js +168 -0
- package/lib/packages/doctor/locale/en.json +4 -0
- package/lib/packages/dsh-compat/index.js +44 -0
- package/lib/packages/dsh-compat/locale/en.json +4 -0
- package/lib/packages/git/index.js +177 -0
- package/lib/packages/git/locale/en.json +4 -0
- package/lib/packages/goal/goal.d.ts +77 -0
- package/lib/packages/goal/index.d.ts +22 -0
- package/lib/packages/goal/index.js +333 -0
- package/lib/packages/goal/locale/en.json +4 -0
- package/lib/packages/goal/locale/ui.en.json +10 -0
- package/lib/packages/goal/locale/ui.zh.json +10 -0
- package/lib/packages/guards/index.js +22 -0
- package/lib/packages/guards/locale/en.json +4 -0
- package/lib/packages/hooks/index.d.ts +26 -0
- package/lib/packages/hooks/index.js +966 -0
- package/lib/packages/hooks/lifecycle-hooks.d.ts +217 -0
- package/lib/packages/hooks/lifecycle-hooks.js +608 -0
- package/lib/packages/hooks/locale/en.json +4 -0
- package/lib/packages/hooks/locale/ui.en.json +111 -0
- package/lib/packages/hooks/locale/ui.zh.json +111 -0
- package/lib/packages/host-stdio/index.d.ts +88 -0
- package/lib/packages/host-stdio/index.js +330 -0
- package/lib/packages/host-stdio/locale/en.json +4 -0
- package/lib/packages/image-diet/index.js +92 -0
- package/lib/packages/image-diet/locale/en.json +4 -0
- package/lib/packages/image-diet/locale/ui.en.json +14 -0
- package/lib/packages/image-diet/locale/ui.zh.json +14 -0
- package/lib/packages/llm/index.d.ts +13 -0
- package/lib/packages/llm/index.js +275 -0
- package/lib/packages/llm/locale/en.json +4 -0
- package/lib/packages/log/filter.d.ts +37 -0
- package/lib/packages/log/filter.js +43 -0
- package/lib/packages/log/index.d.ts +30 -0
- package/lib/packages/log/index.js +311 -0
- package/lib/packages/log/locale/en.json +4 -0
- package/lib/packages/log/locale/ui.en.json +30 -0
- package/lib/packages/log/locale/ui.zh.json +30 -0
- package/lib/packages/log/sink.d.ts +91 -0
- package/lib/packages/log/sink.js +286 -0
- package/lib/packages/lsp/client.js +703 -0
- package/lib/packages/lsp/index.d.ts +54 -0
- package/lib/packages/lsp/index.js +616 -0
- package/lib/packages/lsp/locale/en.json +4 -0
- package/lib/packages/lsp/locale/ui.en.json +17 -0
- package/lib/packages/lsp/locale/ui.zh.json +17 -0
- package/lib/packages/lsp/manager.js +418 -0
- package/lib/packages/lsp/normalize.js +134 -0
- package/lib/packages/lsp/servers.js +349 -0
- package/lib/packages/mcp/index.js +717 -0
- package/lib/packages/mcp/locale/en.json +4 -0
- package/lib/packages/mcp/locale/ui.en.json +28 -0
- package/lib/packages/mcp/locale/ui.zh.json +28 -0
- package/lib/packages/mcp/mcp.d.ts +207 -0
- package/lib/packages/mcp/mcp.js +807 -0
- package/lib/packages/memory/index.d.ts +36 -0
- package/lib/packages/memory/index.js +930 -0
- package/lib/packages/memory/locale/en.json +4 -0
- package/lib/packages/memory/locale/ui.en.json +67 -0
- package/lib/packages/memory/locale/ui.zh.json +67 -0
- package/lib/packages/memory/memory.d.ts +187 -0
- package/lib/packages/memory/memory.js +704 -0
- package/lib/packages/microcompact/index.d.ts +31 -0
- package/lib/packages/microcompact/index.js +261 -0
- package/lib/packages/microcompact/locale/en.json +4 -0
- package/lib/packages/microcompact/locale/ui.en.json +20 -0
- package/lib/packages/microcompact/locale/ui.zh.json +20 -0
- package/lib/packages/microcompact/microcompact.d.ts +142 -0
- package/lib/packages/microcompact/microcompact.js +268 -0
- package/lib/packages/mode/index.d.ts +18 -0
- package/lib/packages/mode/index.js +138 -0
- package/lib/packages/mode/locale/en.json +4 -0
- package/lib/packages/ops/index.d.ts +36 -0
- package/lib/packages/ops/index.js +187 -0
- package/lib/packages/ops/locale/en.json +4 -0
- package/lib/packages/ops/locale/ui.en.json +21 -0
- package/lib/packages/ops/locale/ui.zh.json +21 -0
- package/lib/packages/ops/render.d.ts +43 -0
- package/lib/packages/ops/render.js +324 -0
- package/lib/packages/ops/tools.d.ts +17 -0
- package/lib/packages/ops/tools.js +640 -0
- package/lib/packages/ops/worker.d.ts +63 -0
- package/lib/packages/ops/worker.js +294 -0
- package/lib/packages/permission-core/index.d.ts +15 -0
- package/lib/packages/permission-core/index.js +15 -0
- package/lib/packages/permission-core/locale/en.json +4 -0
- package/lib/packages/permission-core/permission-presets.d.ts +71 -0
- package/lib/packages/permission-core/permission-scope.d.ts +65 -0
- package/lib/packages/permission-presets/index.d.ts +19 -0
- package/lib/packages/permission-presets/index.js +176 -0
- package/lib/packages/permission-presets/locale/en.json +4 -0
- package/lib/packages/permission-presets/locale/ui.en.json +10 -0
- package/lib/packages/permission-presets/locale/ui.zh.json +10 -0
- package/lib/packages/plan/index.js +261 -0
- package/lib/packages/plan/locale/en.json +4 -0
- package/lib/packages/plugin-manager/index.js +217 -0
- package/lib/packages/plugin-manager/locale/en.json +4 -0
- package/lib/packages/presets/index.js +243 -0
- package/lib/packages/presets/locale/en.json +4 -0
- package/lib/packages/presets/locale/ui.en.json +10 -0
- package/lib/packages/presets/locale/ui.zh.json +10 -0
- package/lib/packages/prompt/index.d.ts +25 -0
- package/lib/packages/prompt/index.js +441 -0
- package/lib/packages/prompt/locale/en.json +4 -0
- package/lib/packages/prompt/tool-result-prune.d.ts +93 -0
- package/lib/packages/prompt/tool-result-prune.js +212 -0
- package/lib/packages/ptc/index.js +377 -0
- package/lib/packages/ptc/locale/en.json +4 -0
- package/lib/packages/remote/http.d.ts +11 -0
- package/lib/packages/remote/http.js +11 -0
- package/lib/packages/remote/index.d.ts +17 -0
- package/lib/packages/remote/index.js +1189 -0
- package/lib/packages/remote/locale/en.json +4 -0
- package/lib/packages/remote/locale/ui.en.json +76 -0
- package/lib/packages/remote/locale/ui.zh.json +76 -0
- package/lib/packages/remote/routes.js +384 -0
- package/lib/packages/remote/types.d.ts +135 -0
- package/lib/packages/remote/types.js +102 -0
- package/lib/packages/runtime/index.js +678 -0
- package/lib/packages/runtime/locale/en.json +4 -0
- package/lib/packages/runtime-api/index.js +126 -0
- package/lib/packages/runtime-api/inspect.d.ts +29 -0
- package/lib/packages/runtime-api/inspect.js +73 -0
- package/lib/packages/runtime-api/locale/en.json +4 -0
- package/lib/packages/sandbox/backends.d.ts +64 -0
- package/lib/packages/sandbox/execpolicy.d.ts +74 -0
- package/lib/packages/sandbox/execpolicy.js +244 -0
- package/lib/packages/sandbox/index.js +1132 -0
- package/lib/packages/sandbox/locale/en.json +4 -0
- package/lib/packages/sandbox/locale/ui.en.json +78 -0
- package/lib/packages/sandbox/locale/ui.zh.json +78 -0
- package/lib/packages/sandbox/net-proxy.js +202 -0
- package/lib/packages/sandbox/policy.d.ts +294 -0
- package/lib/packages/sandbox/policy.js +674 -0
- package/lib/packages/sandbox/review.d.ts +141 -0
- package/lib/packages/sandbox/review.js +348 -0
- package/lib/packages/sandbox/win/account.js +203 -0
- package/lib/packages/sandbox/win/backend.d.ts +107 -0
- package/lib/packages/sandbox/win/backend.js +425 -0
- package/lib/packages/sandbox/win/doctor.js +269 -0
- package/lib/packages/sandbox/win/ffi.d.ts +116 -0
- package/lib/packages/sandbox/win/ffi.js +185 -0
- package/lib/packages/sandbox/win/interpreter.d.ts +44 -0
- package/lib/packages/sandbox/win/interpreter.js +47 -0
- package/lib/packages/sandbox/win/runner-entry.d.ts +61 -0
- package/lib/packages/sandbox/win/runner-entry.js +898 -0
- package/lib/packages/sandbox/win/setup.d.ts +134 -0
- package/lib/packages/sandbox/win/setup.js +1384 -0
- package/lib/packages/sandbox/win/sweep.d.ts +36 -0
- package/lib/packages/sandbox/win/sweep.js +115 -0
- package/lib/packages/sandbox/win/wfp.js +197 -0
- package/lib/packages/schedule/index.d.ts +41 -0
- package/lib/packages/schedule/index.js +612 -0
- package/lib/packages/schedule/locale/en.json +4 -0
- package/lib/packages/schedule/locale/ui.en.json +29 -0
- package/lib/packages/schedule/locale/ui.zh.json +29 -0
- package/lib/packages/self-improve/index.d.ts +140 -0
- package/lib/packages/self-improve/index.js +1312 -0
- package/lib/packages/self-improve/ledger.d.ts +75 -0
- package/lib/packages/self-improve/ledger.js +364 -0
- package/lib/packages/self-improve/locale/en.json +4 -0
- package/lib/packages/self-improve/locale/ui.en.json +31 -0
- package/lib/packages/self-improve/locale/ui.zh.json +31 -0
- package/lib/packages/self-improve/skill-write.d.ts +257 -0
- package/lib/packages/self-improve/skill-write.js +890 -0
- package/lib/packages/self-improve/store.js +266 -0
- package/lib/packages/session/index.js +383 -0
- package/lib/packages/session/locale/en.json +4 -0
- package/lib/packages/session-core/compact.d.ts +140 -0
- package/lib/packages/session-core/compact.js +282 -0
- package/lib/packages/session-core/hooks.d.ts +289 -0
- package/lib/packages/session-core/hooks.js +862 -0
- package/lib/packages/session-core/index.d.ts +20 -0
- package/lib/packages/session-core/index.js +20 -0
- package/lib/packages/session-core/locale/en.json +4 -0
- package/lib/packages/session-core/loop.d.ts +215 -0
- package/lib/packages/session-core/loop.js +726 -0
- package/lib/packages/session-core/modes.d.ts +72 -0
- package/lib/packages/session-core/modes.js +152 -0
- package/lib/packages/session-core/prompt.d.ts +124 -0
- package/lib/packages/session-core/prompt.js +436 -0
- package/lib/packages/session-search/index.js +323 -0
- package/lib/packages/session-search/locale/en.json +4 -0
- package/lib/packages/session-search/locale/ui.en.json +29 -0
- package/lib/packages/session-search/locale/ui.zh.json +29 -0
- package/lib/packages/session-search/session-index.js +849 -0
- package/lib/packages/session-title/index.js +109 -0
- package/lib/packages/session-title/locale/en.json +4 -0
- package/lib/packages/settings/connection-test.d.ts +60 -0
- package/lib/packages/settings/connection-test.js +84 -0
- package/lib/packages/settings/index.d.ts +3 -0
- package/lib/packages/settings/index.js +689 -0
- package/lib/packages/settings/locale/en.json +4 -0
- package/lib/packages/settings/locale/ui.en.json +94 -0
- package/lib/packages/settings/locale/ui.zh.json +94 -0
- package/lib/packages/skills/index.d.ts +13 -0
- package/lib/packages/skills/index.js +499 -0
- package/lib/packages/skills/locale/en.json +4 -0
- package/lib/packages/spill/index.js +223 -0
- package/lib/packages/spill/locale/en.json +4 -0
- package/lib/packages/spill/locale/ui.en.json +31 -0
- package/lib/packages/spill/locale/ui.zh.json +31 -0
- package/lib/packages/subagent/agent-roles.d.ts +78 -0
- package/lib/packages/subagent/agent-roles.js +425 -0
- package/lib/packages/subagent/board-snapshot.d.ts +114 -0
- package/lib/packages/subagent/board-snapshot.js +194 -0
- package/lib/packages/subagent/index.d.ts +133 -0
- package/lib/packages/subagent/index.js +2414 -0
- package/lib/packages/subagent/locale/en.json +4 -0
- package/lib/packages/subagent/locale/ui.en.json +51 -0
- package/lib/packages/subagent/locale/ui.zh.json +51 -0
- package/lib/packages/superagent/app/api.d.ts +99 -0
- package/lib/packages/superagent/app/api.js +556 -0
- package/lib/packages/superagent/app/assessment.d.ts +573 -0
- package/lib/packages/superagent/app/assessment.js +303 -0
- package/lib/packages/superagent/app/cache.d.ts +22 -0
- package/lib/packages/superagent/app/cache.js +42 -0
- package/lib/packages/superagent/app/cards.d.ts +278 -0
- package/lib/packages/superagent/app/cards.js +103 -0
- package/lib/packages/superagent/app/context.d.ts +35 -0
- package/lib/packages/superagent/app/context.js +49 -0
- package/lib/packages/superagent/app/delivery.d.ts +118 -0
- package/lib/packages/superagent/app/delivery.js +189 -0
- package/lib/packages/superagent/app/effects.d.ts +97 -0
- package/lib/packages/superagent/app/effects.js +162 -0
- package/lib/packages/superagent/app/execution-environment.d.ts +42 -0
- package/lib/packages/superagent/app/execution-environment.js +47 -0
- package/lib/packages/superagent/app/links.d.ts +192 -0
- package/lib/packages/superagent/app/links.js +59 -0
- package/lib/packages/superagent/app/migration.d.ts +40 -0
- package/lib/packages/superagent/app/migration.js +674 -0
- package/lib/packages/superagent/app/notices.d.ts +60 -0
- package/lib/packages/superagent/app/notices.js +128 -0
- package/lib/packages/superagent/app/outbox.d.ts +39 -0
- package/lib/packages/superagent/app/outbox.js +50 -0
- package/lib/packages/superagent/app/passes.d.ts +44 -0
- package/lib/packages/superagent/app/passes.js +65 -0
- package/lib/packages/superagent/app/prompts.d.ts +220 -0
- package/lib/packages/superagent/app/prompts.js +259 -0
- package/lib/packages/superagent/app/resources.d.ts +41 -0
- package/lib/packages/superagent/app/resources.js +394 -0
- package/lib/packages/superagent/app/retry-health.d.ts +36 -0
- package/lib/packages/superagent/app/retry-health.js +112 -0
- package/lib/packages/superagent/app/role-models.d.ts +45 -0
- package/lib/packages/superagent/app/role-models.js +26 -0
- package/lib/packages/superagent/app/runtime.d.ts +94 -0
- package/lib/packages/superagent/app/runtime.js +331 -0
- package/lib/packages/superagent/app/sessions.d.ts +275 -0
- package/lib/packages/superagent/app/sessions.js +676 -0
- package/lib/packages/superagent/app/settings-history.d.ts +34 -0
- package/lib/packages/superagent/app/settings-history.js +105 -0
- package/lib/packages/superagent/app/settings.d.ts +198 -0
- package/lib/packages/superagent/app/settings.js +260 -0
- package/lib/packages/superagent/app/setup.d.ts +67 -0
- package/lib/packages/superagent/app/setup.js +98 -0
- package/lib/packages/superagent/app/skill-files.d.ts +19 -0
- package/lib/packages/superagent/app/skill-files.js +54 -0
- package/lib/packages/superagent/app/source-context.d.ts +46 -0
- package/lib/packages/superagent/app/source-context.js +48 -0
- package/lib/packages/superagent/app/store-read.d.ts +69 -0
- package/lib/packages/superagent/app/store-read.js +75 -0
- package/lib/packages/superagent/app/store.d.ts +179 -0
- package/lib/packages/superagent/app/store.js +384 -0
- package/lib/packages/superagent/app/tools/executor.d.ts +16 -0
- package/lib/packages/superagent/app/tools/executor.js +114 -0
- package/lib/packages/superagent/app/tools/main.d.ts +47 -0
- package/lib/packages/superagent/app/tools/main.js +286 -0
- package/lib/packages/superagent/app/tools/tool.d.ts +28 -0
- package/lib/packages/superagent/app/tools/tool.js +36 -0
- package/lib/packages/superagent/app/versions.d.ts +35 -0
- package/lib/packages/superagent/app/versions.js +36 -0
- package/lib/packages/superagent/app/views/overview.d.ts +327 -0
- package/lib/packages/superagent/app/views/overview.js +91 -0
- package/lib/packages/superagent/app/views/records.d.ts +478 -0
- package/lib/packages/superagent/app/views/records.js +203 -0
- package/lib/packages/superagent/app/views/settings.d.ts +111 -0
- package/lib/packages/superagent/app/views/settings.js +50 -0
- package/lib/packages/superagent/app/views/sources.d.ts +97 -0
- package/lib/packages/superagent/app/views/sources.js +70 -0
- package/lib/packages/superagent/app/views/text.d.ts +6 -0
- package/lib/packages/superagent/app/views/text.js +53 -0
- package/lib/packages/superagent/app/views/threads.d.ts +582 -0
- package/lib/packages/superagent/app/views/threads.js +117 -0
- package/lib/packages/superagent/app/views/tickets.d.ts +1852 -0
- package/lib/packages/superagent/app/views/tickets.js +96 -0
- package/lib/packages/superagent/core/admission.d.ts +17 -0
- package/lib/packages/superagent/core/admission.js +4 -0
- package/lib/packages/superagent/core/assignments.d.ts +53 -0
- package/lib/packages/superagent/core/assignments.js +160 -0
- package/lib/packages/superagent/core/engine.d.ts +191 -0
- package/lib/packages/superagent/core/engine.js +244 -0
- package/lib/packages/superagent/core/errors.d.ts +58 -0
- package/lib/packages/superagent/core/errors.js +63 -0
- package/lib/packages/superagent/core/evals.d.ts +99 -0
- package/lib/packages/superagent/core/evals.js +381 -0
- package/lib/packages/superagent/core/ids.d.ts +1 -0
- package/lib/packages/superagent/core/ids.js +5 -0
- package/lib/packages/superagent/core/index.d.ts +9 -0
- package/lib/packages/superagent/core/index.js +9 -0
- package/lib/packages/superagent/core/intake.d.ts +15 -0
- package/lib/packages/superagent/core/intake.js +68 -0
- package/lib/packages/superagent/core/limits.d.ts +26 -0
- package/lib/packages/superagent/core/limits.js +11 -0
- package/lib/packages/superagent/core/memory.d.ts +40 -0
- package/lib/packages/superagent/core/memory.js +51 -0
- package/lib/packages/superagent/core/model.d.ts +432 -0
- package/lib/packages/superagent/core/model.js +79 -0
- package/lib/packages/superagent/core/part.d.ts +49 -0
- package/lib/packages/superagent/core/part.js +71 -0
- package/lib/packages/superagent/core/policy.d.ts +187 -0
- package/lib/packages/superagent/core/policy.js +244 -0
- package/lib/packages/superagent/core/ports.d.ts +217 -0
- package/lib/packages/superagent/core/ports.js +1 -0
- package/lib/packages/superagent/core/reasons.d.ts +36 -0
- package/lib/packages/superagent/core/reasons.js +35 -0
- package/lib/packages/superagent/core/replies.d.ts +55 -0
- package/lib/packages/superagent/core/replies.js +94 -0
- package/lib/packages/superagent/core/stage.d.ts +18 -0
- package/lib/packages/superagent/core/stage.js +27 -0
- package/lib/packages/superagent/core/tickets.d.ts +151 -0
- package/lib/packages/superagent/core/tickets.js +487 -0
- package/lib/packages/superagent/deployment.d.ts +54 -0
- package/lib/packages/superagent/deployment.js +160 -0
- package/lib/packages/superagent/executor/background.d.ts +93 -0
- package/lib/packages/superagent/executor/background.js +192 -0
- package/lib/packages/superagent/executor/dsh.d.ts +304 -0
- package/lib/packages/superagent/executor/dsh.js +776 -0
- package/lib/packages/superagent/host/command.d.ts +89 -0
- package/lib/packages/superagent/host/command.js +198 -0
- package/lib/packages/superagent/host/health.d.ts +45 -0
- package/lib/packages/superagent/host/health.js +355 -0
- package/lib/packages/superagent/host/settings-section.d.ts +32 -0
- package/lib/packages/superagent/host/settings-section.js +528 -0
- package/lib/packages/superagent/index.d.ts +82 -0
- package/lib/packages/superagent/index.js +140 -0
- package/lib/packages/superagent/infra/commands.d.ts +55 -0
- package/lib/packages/superagent/infra/commands.js +144 -0
- package/lib/packages/superagent/infra/environment.d.ts +44 -0
- package/lib/packages/superagent/infra/environment.js +227 -0
- package/lib/packages/superagent/infra/health.d.ts +27 -0
- package/lib/packages/superagent/infra/health.js +29 -0
- package/lib/packages/superagent/infra/text.d.ts +10 -0
- package/lib/packages/superagent/infra/text.js +31 -0
- package/lib/packages/superagent/kv.d.ts +102 -0
- package/lib/packages/superagent/kv.js +44 -0
- package/lib/packages/superagent/locale/en.json +4 -0
- package/lib/packages/superagent/locale/ui.en.json +26 -0
- package/lib/packages/superagent/locale/ui.zh.json +26 -0
- package/lib/packages/superagent/paths.d.ts +21 -0
- package/lib/packages/superagent/paths.js +50 -0
- package/lib/packages/superagent/prompts/admission.md +68 -0
- package/lib/packages/superagent/prompts/cli.md +17 -0
- package/lib/packages/superagent/prompts/dispatch.md +59 -0
- package/lib/packages/superagent/prompts/handoff-orchestrator.md +4 -0
- package/lib/packages/superagent/prompts/handoff-worker.md +7 -0
- package/lib/packages/superagent/prompts/handoff.md +6 -0
- package/lib/packages/superagent/prompts/orchestrator.md +16 -0
- package/lib/packages/superagent/prompts/replies.md +35 -0
- package/lib/packages/superagent/prompts/shared.md +7 -0
- package/lib/packages/superagent/prompts/subscriptions.md +13 -0
- package/lib/packages/superagent/prompts/team/communication.md +97 -0
- package/lib/packages/superagent/prompts/team/delivery.md +28 -0
- package/lib/packages/superagent/prompts/team/scope.md +22 -0
- package/lib/packages/superagent/prompts/work.md +49 -0
- package/lib/packages/superagent/prompts/worker.md +10 -0
- package/lib/packages/superagent/setup.d.ts +37 -0
- package/lib/packages/superagent/setup.js +46 -0
- package/lib/packages/superagent/skills/dsh-superagent-feishu/SKILL.md +12 -0
- package/lib/packages/superagent/skills/dsh-superagent-github/SKILL.md +14 -0
- package/lib/packages/superagent/sources/admission-context.d.ts +43 -0
- package/lib/packages/superagent/sources/admission-context.js +42 -0
- package/lib/packages/superagent/sources/feishu-channel.d.ts +20 -0
- package/lib/packages/superagent/sources/feishu-channel.js +33 -0
- package/lib/packages/superagent/sources/feishu-image.d.ts +12 -0
- package/lib/packages/superagent/sources/feishu-image.js +81 -0
- package/lib/packages/superagent/sources/feishu-loops.d.ts +18 -0
- package/lib/packages/superagent/sources/feishu-loops.js +330 -0
- package/lib/packages/superagent/sources/feishu-read.d.ts +81 -0
- package/lib/packages/superagent/sources/feishu-read.js +183 -0
- package/lib/packages/superagent/sources/feishu-trigger.d.ts +95 -0
- package/lib/packages/superagent/sources/feishu-trigger.js +96 -0
- package/lib/packages/superagent/sources/feishu.d.ts +56 -0
- package/lib/packages/superagent/sources/feishu.js +164 -0
- package/lib/packages/superagent/sources/github-channel.d.ts +6 -0
- package/lib/packages/superagent/sources/github-channel.js +62 -0
- package/lib/packages/superagent/sources/github-pull.d.ts +82 -0
- package/lib/packages/superagent/sources/github-pull.js +112 -0
- package/lib/packages/superagent/sources/github-read.d.ts +54 -0
- package/lib/packages/superagent/sources/github-read.js +184 -0
- package/lib/packages/superagent/sources/github-trigger.d.ts +140 -0
- package/lib/packages/superagent/sources/github-trigger.js +107 -0
- package/lib/packages/superagent/sources/github.d.ts +52 -0
- package/lib/packages/superagent/sources/github.js +559 -0
- package/lib/packages/superagent/sources/host.d.ts +101 -0
- package/lib/packages/superagent/sources/host.js +13 -0
- package/lib/packages/superagent/sources/kind.d.ts +229 -0
- package/lib/packages/superagent/sources/kind.js +1 -0
- package/lib/packages/superagent/sources/poll.d.ts +21 -0
- package/lib/packages/superagent/sources/poll.js +53 -0
- package/lib/packages/superagent/sources/registry.d.ts +402 -0
- package/lib/packages/superagent/sources/registry.js +162 -0
- package/lib/packages/superagent-webhook/index.d.ts +47 -0
- package/lib/packages/superagent-webhook/index.js +83 -0
- package/lib/packages/superagent-webhook/locale/en.json +4 -0
- package/lib/packages/superagent-webhook/tests/settings-contract.d.ts +34 -0
- package/lib/packages/superagent-webhook/tests/settings-contract.js +66 -0
- package/lib/packages/superagent-webhook/webhook.d.ts +87 -0
- package/lib/packages/superagent-webhook/webhook.js +199 -0
- package/lib/packages/surfaces/index.d.ts +11 -0
- package/lib/packages/surfaces/index.js +20 -0
- package/lib/packages/surfaces/locale/en.json +4 -0
- package/lib/packages/todo/index.d.ts +21 -0
- package/lib/packages/todo/index.js +351 -0
- package/lib/packages/todo/locale/en.json +4 -0
- package/lib/packages/todo/locale/ui.en.json +11 -0
- package/lib/packages/todo/locale/ui.zh.json +11 -0
- package/lib/packages/todo/todo.d.ts +73 -0
- package/lib/packages/tool-search/index.js +474 -0
- package/lib/packages/tool-search/locale/en.json +4 -0
- package/lib/packages/tool-search/locale/ui.en.json +36 -0
- package/lib/packages/tool-search/locale/ui.zh.json +36 -0
- package/lib/packages/tool-search/tool-search.d.ts +153 -0
- package/lib/packages/tools/locale/en.json +4 -0
- package/lib/packages/tools-default/bash.d.ts +332 -0
- package/lib/packages/tools-default/bash.js +1139 -0
- package/lib/packages/tools-default/image-tool.d.ts +2 -0
- package/lib/packages/tools-default/image-tool.js +59 -0
- package/lib/packages/tools-default/index.js +407 -0
- package/lib/packages/tools-default/locale/en.json +4 -0
- package/lib/packages/tools-default/locale/ui.en.json +27 -0
- package/lib/packages/tools-default/locale/ui.zh.json +27 -0
- package/lib/packages/tools-default/persistent-shell.d.ts +79 -0
- package/lib/packages/tools-default/persistent-shell.js +247 -0
- package/lib/packages/tools-default/search-tools.d.ts +40 -0
- package/lib/packages/tools-default/search-tools.js +484 -0
- package/lib/packages/transcript/index.d.ts +48 -0
- package/lib/packages/transcript/index.js +436 -0
- package/lib/packages/transcript/locale/en.json +4 -0
- package/lib/packages/tui/app/AgentsOverlay.d.ts +18 -0
- package/lib/packages/tui/app/App.d.ts +21 -0
- package/lib/packages/tui/app/App.js +1788 -0
- package/lib/packages/tui/app/ApprovalCard.d.ts +12 -0
- package/lib/packages/tui/app/ApprovalCard.js +82 -0
- package/lib/packages/tui/app/AskCard.d.ts +20 -0
- package/lib/packages/tui/app/ChatView.d.ts +67 -0
- package/lib/packages/tui/app/ChatView.js +314 -0
- package/lib/packages/tui/app/Composer.d.ts +56 -0
- package/lib/packages/tui/app/Composer.js +306 -0
- package/lib/packages/tui/app/DiffBlock.d.ts +6 -0
- package/lib/packages/tui/app/DiffBlock.js +39 -0
- package/lib/packages/tui/app/ModelPicker.d.ts +7 -0
- package/lib/packages/tui/app/PlanReviewCard.d.ts +13 -0
- package/lib/packages/tui/app/PresetPicker.d.ts +11 -0
- package/lib/packages/tui/app/SessionPicker.d.ts +43 -0
- package/lib/packages/tui/app/SettingsOverlay.d.ts +36 -0
- package/lib/packages/tui/app/SettingsOverlay.js +265 -0
- package/lib/packages/tui/app/SkillsPicker.d.ts +7 -0
- package/lib/packages/tui/app/StatusBar.d.ts +22 -0
- package/lib/packages/tui/app/StatusBar.js +189 -0
- package/lib/packages/tui/app/TaskStrips.d.ts +13 -0
- package/lib/packages/tui/app/TaskStrips.js +37 -0
- package/lib/packages/tui/app/ToolCard.d.ts +11 -0
- package/lib/packages/tui/app/ToolCard.js +62 -0
- package/lib/packages/tui/app/TranscriptOverlay.d.ts +27 -0
- package/lib/packages/tui/app/TranscriptViewport.d.ts +85 -0
- package/lib/packages/tui/app/TranscriptViewport.js +233 -0
- package/lib/packages/tui/app/Welcome.js +68 -0
- package/lib/packages/tui/app/clipboard-image.js +66 -0
- package/lib/packages/tui/app/display-width.d.ts +16 -0
- package/lib/packages/tui/app/display-width.js +33 -0
- package/lib/packages/tui/app/history-store.js +41 -0
- package/lib/packages/tui/app/image-blocks.js +125 -0
- package/lib/packages/tui/app/scroll-model.d.ts +240 -0
- package/lib/packages/tui/app/settings-model.d.ts +128 -0
- package/lib/packages/tui/app/settings-model.js +215 -0
- package/lib/packages/tui/app/snapshot-subscribe.js +110 -0
- package/lib/packages/tui/index.js +102 -0
- package/lib/packages/tui/locale/en.json +4 -0
- package/lib/packages/ui-actions/index.d.ts +27 -0
- package/lib/packages/ui-actions/index.js +27 -0
- package/lib/packages/ui-actions/locale/en.json +4 -0
- package/lib/packages/ui-actions/locale/ui.en.json +3 -0
- package/lib/packages/ui-actions/locale/ui.zh.json +3 -0
- package/lib/packages/ui-ask/index.d.ts +29 -0
- package/lib/packages/ui-ask/index.js +29 -0
- package/lib/packages/ui-ask/locale/en.json +4 -0
- package/lib/packages/ui-ask/locale/ui.en.json +28 -0
- package/lib/packages/ui-ask/locale/ui.zh.json +28 -0
- package/lib/packages/ui-boot/index.d.ts +13 -0
- package/lib/packages/ui-boot/index.js +1 -0
- package/lib/packages/ui-boot/locale/en.json +4 -0
- package/lib/packages/ui-boot/locale/ui.en.json +28 -0
- package/lib/packages/ui-boot/locale/ui.zh.json +28 -0
- package/lib/packages/ui-browser/index.d.ts +29 -0
- package/lib/packages/ui-browser/index.js +29 -0
- package/lib/packages/ui-browser/locale/en.json +4 -0
- package/lib/packages/ui-browser/locale/ui.en.json +17 -0
- package/lib/packages/ui-browser/locale/ui.zh.json +17 -0
- package/lib/packages/ui-composer/index.d.ts +28 -0
- package/lib/packages/ui-composer/index.js +28 -0
- package/lib/packages/ui-composer/locale/en.json +4 -0
- package/lib/packages/ui-composer/locale/ui.en.json +161 -0
- package/lib/packages/ui-composer/locale/ui.zh.json +161 -0
- package/lib/packages/ui-core/frames.js +144 -0
- package/lib/packages/ui-core/i18n.d.ts +33 -0
- package/lib/packages/ui-core/i18n.js +42 -0
- package/lib/packages/ui-core/index.d.ts +102 -0
- package/lib/packages/ui-core/index.js +93 -0
- package/lib/packages/ui-core/locale/en.json +4 -0
- package/lib/packages/ui-core/plugin.d.ts +168 -0
- package/lib/packages/ui-core/scoped-slots.d.ts +20 -0
- package/lib/packages/ui-core/slots-ink.d.ts +26 -0
- package/lib/packages/ui-core/slots-ink.js +78 -0
- package/lib/packages/ui-core/slots.d.ts +490 -0
- package/lib/packages/ui-core/tui-plugin-api.d.ts +23 -0
- package/lib/packages/ui-core/tui-plugin-api.js +23 -0
- package/lib/packages/ui-core/tui-plugins.d.ts +47 -0
- package/lib/packages/ui-core/tui-plugins.js +293 -0
- package/lib/packages/ui-dockkit/index.d.ts +13 -0
- package/lib/packages/ui-dockkit/index.js +13 -0
- package/lib/packages/ui-dockkit/locale/en.json +4 -0
- package/lib/packages/ui-dockkit/locale/ui.en.json +21 -0
- package/lib/packages/ui-dockkit/locale/ui.zh.json +21 -0
- package/lib/packages/ui-files/index.d.ts +27 -0
- package/lib/packages/ui-files/index.js +27 -0
- package/lib/packages/ui-files/locale/en.json +4 -0
- package/lib/packages/ui-files/locale/ui.en.json +43 -0
- package/lib/packages/ui-files/locale/ui.zh.json +43 -0
- package/lib/packages/ui-layout/index.d.ts +30 -0
- package/lib/packages/ui-layout/index.js +30 -0
- package/lib/packages/ui-layout/locale/en.json +4 -0
- package/lib/packages/ui-layout/locale/ui.en.json +112 -0
- package/lib/packages/ui-layout/locale/ui.zh.json +112 -0
- package/lib/packages/ui-palette/index.d.ts +27 -0
- package/lib/packages/ui-palette/index.js +27 -0
- package/lib/packages/ui-palette/locale/en.json +4 -0
- package/lib/packages/ui-palette/locale/ui.en.json +35 -0
- package/lib/packages/ui-palette/locale/ui.zh.json +35 -0
- package/lib/packages/ui-plugins/index.d.ts +27 -0
- package/lib/packages/ui-plugins/index.js +27 -0
- package/lib/packages/ui-plugins/locale/en.json +4 -0
- package/lib/packages/ui-plugins/locale/ui.en.json +134 -0
- package/lib/packages/ui-plugins/locale/ui.zh.json +134 -0
- package/lib/packages/ui-preview/index.d.ts +27 -0
- package/lib/packages/ui-preview/index.js +27 -0
- package/lib/packages/ui-preview/locale/en.json +4 -0
- package/lib/packages/ui-preview/locale/ui.en.json +29 -0
- package/lib/packages/ui-preview/locale/ui.zh.json +29 -0
- package/lib/packages/ui-primitives/index.d.ts +13 -0
- package/lib/packages/ui-primitives/index.js +13 -0
- package/lib/packages/ui-primitives/locale/en.json +4 -0
- package/lib/packages/ui-primitives/locale/ui.en.json +167 -0
- package/lib/packages/ui-primitives/locale/ui.zh.json +167 -0
- package/lib/packages/ui-prompt/index.d.ts +29 -0
- package/lib/packages/ui-prompt/index.js +29 -0
- package/lib/packages/ui-prompt/locale/en.json +4 -0
- package/lib/packages/ui-prompt/locale/ui.en.json +73 -0
- package/lib/packages/ui-prompt/locale/ui.zh.json +73 -0
- package/lib/packages/ui-renderer/index.d.ts +26 -0
- package/lib/packages/ui-renderer/index.js +26 -0
- package/lib/packages/ui-renderer/locale/en.json +4 -0
- package/lib/packages/ui-renderer/locale/ui.en.json +14 -0
- package/lib/packages/ui-renderer/locale/ui.zh.json +14 -0
- package/lib/packages/ui-runtime/index.d.ts +17 -0
- package/lib/packages/ui-runtime/index.js +17 -0
- package/lib/packages/ui-runtime/locale/en.json +4 -0
- package/lib/packages/ui-runtime/locale/ui.en.json +5 -0
- package/lib/packages/ui-runtime/locale/ui.zh.json +5 -0
- package/lib/packages/ui-sessions/index.d.ts +27 -0
- package/lib/packages/ui-sessions/index.js +27 -0
- package/lib/packages/ui-sessions/locale/en.json +4 -0
- package/lib/packages/ui-sessions/locale/ui.en.json +119 -0
- package/lib/packages/ui-sessions/locale/ui.zh.json +119 -0
- package/lib/packages/ui-settings/index.d.ts +29 -0
- package/lib/packages/ui-settings/index.js +29 -0
- package/lib/packages/ui-settings/locale/en.json +4 -0
- package/lib/packages/ui-settings/locale/ui.en.json +490 -0
- package/lib/packages/ui-settings/locale/ui.zh.json +490 -0
- package/lib/packages/ui-skills/index.d.ts +29 -0
- package/lib/packages/ui-skills/index.js +29 -0
- package/lib/packages/ui-skills/locale/en.json +4 -0
- package/lib/packages/ui-skills/locale/ui.en.json +93 -0
- package/lib/packages/ui-skills/locale/ui.zh.json +93 -0
- package/lib/packages/ui-slots/index.d.ts +13 -0
- package/lib/packages/ui-slots/index.js +13 -0
- package/lib/packages/ui-slots/locale/en.json +4 -0
- package/lib/packages/ui-slots/locale/ui.en.json +4 -0
- package/lib/packages/ui-slots/locale/ui.zh.json +4 -0
- package/lib/packages/ui-status/index.d.ts +27 -0
- package/lib/packages/ui-status/index.js +27 -0
- package/lib/packages/ui-status/locale/en.json +4 -0
- package/lib/packages/ui-status/locale/ui.en.json +134 -0
- package/lib/packages/ui-status/locale/ui.zh.json +134 -0
- package/lib/packages/ui-statusbar/index.d.ts +28 -0
- package/lib/packages/ui-statusbar/index.js +28 -0
- package/lib/packages/ui-statusbar/locale/en.json +4 -0
- package/lib/packages/ui-statusbar/locale/ui.en.json +33 -0
- package/lib/packages/ui-statusbar/locale/ui.zh.json +33 -0
- package/lib/packages/ui-superagent/index.d.ts +31 -0
- package/lib/packages/ui-superagent/index.js +31 -0
- package/lib/packages/ui-superagent/locale/en.json +4 -0
- package/lib/packages/ui-superagent/locale/ui.en.json +117 -0
- package/lib/packages/ui-superagent/locale/ui.zh.json +117 -0
- package/lib/packages/ui-tasks/index.d.ts +27 -0
- package/lib/packages/ui-tasks/index.js +27 -0
- package/lib/packages/ui-tasks/locale/en.json +4 -0
- package/lib/packages/ui-tasks/locale/ui.en.json +22 -0
- package/lib/packages/ui-tasks/locale/ui.zh.json +22 -0
- package/lib/packages/ui-team/index.d.ts +29 -0
- package/lib/packages/ui-team/index.js +29 -0
- package/lib/packages/ui-team/locale/en.json +4 -0
- package/lib/packages/ui-team/locale/ui.en.json +19 -0
- package/lib/packages/ui-team/locale/ui.zh.json +19 -0
- package/lib/packages/ui-terminal/index.d.ts +27 -0
- package/lib/packages/ui-terminal/index.js +27 -0
- package/lib/packages/ui-terminal/locale/en.json +4 -0
- package/lib/packages/ui-terminal/locale/ui.en.json +9 -0
- package/lib/packages/ui-terminal/locale/ui.zh.json +9 -0
- package/lib/packages/ui-trace/index.d.ts +28 -0
- package/lib/packages/ui-trace/index.js +28 -0
- package/lib/packages/ui-trace/locale/en.json +4 -0
- package/lib/packages/ui-trace/locale/ui.en.json +118 -0
- package/lib/packages/ui-trace/locale/ui.zh.json +118 -0
- package/lib/packages/ui-transcript/index.d.ts +30 -0
- package/lib/packages/ui-transcript/index.js +30 -0
- package/lib/packages/ui-transcript/locale/en.json +4 -0
- package/lib/packages/ui-transcript/locale/ui.en.json +281 -0
- package/lib/packages/ui-transcript/locale/ui.zh.json +281 -0
- package/lib/packages/waiting/index.d.ts +17 -0
- package/lib/packages/waiting/index.js +53 -0
- package/lib/packages/waiting/locale/en.json +4 -0
- package/lib/packages/web-fetch/html.d.ts +26 -0
- package/lib/packages/web-fetch/html.js +249 -0
- package/lib/packages/web-fetch/http.d.ts +97 -0
- package/lib/packages/web-fetch/http.js +252 -0
- package/lib/packages/web-fetch/index.d.ts +17 -0
- package/lib/packages/web-fetch/index.js +165 -0
- package/lib/packages/web-fetch/locale/en.json +4 -0
- package/lib/packages/web-fetch/locale/ui.en.json +14 -0
- package/lib/packages/web-fetch/locale/ui.zh.json +14 -0
- package/lib/packages/web-search/index.d.ts +15 -0
- package/lib/packages/web-search/index.js +521 -0
- package/lib/packages/web-search/locale/en.json +4 -0
- package/lib/packages/web-search/locale/ui.en.json +30 -0
- package/lib/packages/web-search/locale/ui.zh.json +30 -0
- package/lib/packages/webserver/index.d.ts +51 -0
- package/lib/packages/webserver/index.js +316 -0
- package/lib/packages/webserver/locale/en.json +4 -0
- package/lib/services/types.d.ts +318 -21
- package/package.json +64 -8
- package/lib/adapter/core-runtime.d.ts +0 -11
- package/lib/adapter/core-runtime.js +0 -259
- package/lib/adapter/host.d.ts +0 -18
- package/lib/adapter/host.js +0 -14
- package/lib/adapter/runtime.d.ts +0 -15
- package/lib/adapter/runtime.js +0 -290
- package/lib/app/AgentsOverlay.d.ts +0 -18
- package/lib/app/App.d.ts +0 -15
- package/lib/app/App.js +0 -1650
- package/lib/app/App.js.nv-backup +0 -1650
- package/lib/app/ApprovalCard.d.ts +0 -12
- package/lib/app/ApprovalCard.js +0 -82
- package/lib/app/AskCard.d.ts +0 -20
- package/lib/app/ChatView.d.ts +0 -65
- package/lib/app/ChatView.js +0 -314
- package/lib/app/Composer.d.ts +0 -50
- package/lib/app/Composer.js +0 -300
- package/lib/app/DiffBlock.d.ts +0 -6
- package/lib/app/DiffBlock.js +0 -37
- package/lib/app/ModelPicker.d.ts +0 -7
- package/lib/app/PlanReviewCard.d.ts +0 -13
- package/lib/app/PresetPicker.d.ts +0 -11
- package/lib/app/SessionPicker.d.ts +0 -43
- package/lib/app/SettingsOverlay.d.ts +0 -32
- package/lib/app/SettingsOverlay.js +0 -157
- package/lib/app/SkillsPicker.d.ts +0 -7
- package/lib/app/StatusBar.d.ts +0 -22
- package/lib/app/StatusBar.js +0 -189
- package/lib/app/TaskStrips.d.ts +0 -13
- package/lib/app/TaskStrips.js +0 -37
- package/lib/app/TimelineRail.js.negbak +0 -98
- package/lib/app/TimelineRail.js.nv-backup +0 -160
- package/lib/app/ToolCard.d.ts +0 -11
- package/lib/app/ToolCard.js +0 -60
- package/lib/app/ToolCard.js.nv-backup +0 -64
- package/lib/app/TranscriptOverlay.d.ts +0 -27
- package/lib/app/TranscriptViewport.d.ts +0 -78
- package/lib/app/TranscriptViewport.js +0 -218
- package/lib/app/Welcome.js +0 -68
- package/lib/app/clipboard-image.js +0 -66
- package/lib/app/display-width.d.ts +0 -16
- package/lib/app/display-width.js +0 -33
- package/lib/app/hello.d.ts +0 -11
- package/lib/app/hello.js +0 -8
- package/lib/app/history-store.js +0 -41
- package/lib/app/image-blocks.js +0 -125
- package/lib/app/scroll-model.d.ts +0 -240
- package/lib/app/settings-model.d.ts +0 -69
- package/lib/app/settings-model.js +0 -114
- package/lib/app/snapshot-subscribe.js +0 -110
- package/lib/commands.d.ts +0 -49
- package/lib/commands.js +0 -115
- package/lib/core/agent-roles.d.ts +0 -52
- package/lib/core/agent-roles.js +0 -275
- package/lib/core/approval-floor.d.ts +0 -192
- package/lib/core/approval-floor.js +0 -806
- package/lib/core/approval.d.ts +0 -42
- package/lib/core/approval.js +0 -8
- package/lib/core/call-meaning.js +0 -347
- package/lib/core/cdp/actions.js +0 -655
- package/lib/core/cdp/launch.js +0 -491
- package/lib/core/cdp/report.d.ts +0 -27
- package/lib/core/cdp/report.js +0 -50
- package/lib/core/cdp/ring-buffer.d.ts +0 -25
- package/lib/core/cdp/ring-buffer.js +0 -44
- package/lib/core/cdp/snapshot.d.ts +0 -139
- package/lib/core/cdp/snapshot.js +0 -312
- package/lib/core/cdp/transport.d.ts +0 -160
- package/lib/core/cdp/transport.js +0 -359
- package/lib/core/commands-completion.d.ts +0 -106
- package/lib/core/compact.d.ts +0 -140
- package/lib/core/compact.js +0 -282
- package/lib/core/connection-test.d.ts +0 -60
- package/lib/core/connection-test.js +0 -84
- package/lib/core/desktop-control.d.ts +0 -298
- package/lib/core/desktop-control.js +0 -1309
- package/lib/core/dsh-compat/hook.d.ts +0 -18
- package/lib/core/dsh-compat/hook.js +0 -52
- package/lib/core/goal.d.ts +0 -89
- package/lib/core/hooks.d.ts +0 -289
- package/lib/core/hooks.js +0 -862
- package/lib/core/learnings/ledger.d.ts +0 -73
- package/lib/core/learnings/ledger.js +0 -273
- package/lib/core/learnings/skill-write.d.ts +0 -244
- package/lib/core/learnings/skill-write.js +0 -820
- package/lib/core/learnings/store.js +0 -266
- package/lib/core/lifecycle-hooks.d.ts +0 -197
- package/lib/core/lifecycle-hooks.js +0 -567
- package/lib/core/loop.d.ts +0 -195
- package/lib/core/loop.js +0 -654
- package/lib/core/lsp/client.js +0 -703
- package/lib/core/lsp/manager.js +0 -418
- package/lib/core/lsp/normalize.js +0 -134
- package/lib/core/lsp/servers.js +0 -349
- package/lib/core/market.d.ts +0 -51
- package/lib/core/market.js +0 -358
- package/lib/core/mcp.d.ts +0 -219
- package/lib/core/mcp.js +0 -880
- package/lib/core/memory.d.ts +0 -266
- package/lib/core/memory.js +0 -703
- package/lib/core/microcompact.d.ts +0 -93
- package/lib/core/microcompact.js +0 -207
- package/lib/core/modes.d.ts +0 -72
- package/lib/core/modes.js +0 -152
- package/lib/core/permission-presets.d.ts +0 -71
- package/lib/core/permission-scope.d.ts +0 -65
- package/lib/core/presets.d.ts +0 -91
- package/lib/core/presets.js +0 -412
- package/lib/core/prompt.d.ts +0 -92
- package/lib/core/prompt.js +0 -375
- package/lib/core/sandbox/backends.d.ts +0 -64
- package/lib/core/sandbox/execpolicy.d.ts +0 -93
- package/lib/core/sandbox/execpolicy.js +0 -476
- package/lib/core/sandbox/net-proxy.js +0 -162
- package/lib/core/sandbox/policy.d.ts +0 -211
- package/lib/core/sandbox/policy.js +0 -565
- package/lib/core/sandbox/win/account.js +0 -203
- package/lib/core/sandbox/win/backend.d.ts +0 -82
- package/lib/core/sandbox/win/backend.js +0 -299
- package/lib/core/sandbox/win/doctor.js +0 -269
- package/lib/core/sandbox/win/ffi.d.ts +0 -107
- package/lib/core/sandbox/win/ffi.js +0 -166
- package/lib/core/sandbox/win/runner-entry.d.ts +0 -35
- package/lib/core/sandbox/win/runner-entry.js +0 -386
- package/lib/core/sandbox/win/setup.d.ts +0 -60
- package/lib/core/sandbox/win/setup.js +0 -983
- package/lib/core/sandbox/win/wfp.js +0 -197
- package/lib/core/session-export.d.ts +0 -18
- package/lib/core/session-export.js +0 -73
- package/lib/core/session-index.js +0 -849
- package/lib/core/todo.d.ts +0 -81
- package/lib/core/tool-result-prune.d.ts +0 -42
- package/lib/core/tool-result-prune.js +0 -47
- package/lib/core/tool-search.d.ts +0 -153
- package/lib/core/tools/bash.d.ts +0 -313
- package/lib/core/tools/bash.js +0 -998
- package/lib/core/tools/image-tool.d.ts +0 -2
- package/lib/core/tools/image-tool.js +0 -59
- package/lib/core/tools/index.d.ts +0 -8
- package/lib/core/tools/index.js +0 -4
- package/lib/core/tools/search-tools.d.ts +0 -33
- package/lib/core/tools/search-tools.js +0 -440
- package/lib/index.d.ts +0 -41
- package/lib/index.js +0 -35
- package/lib/plugins/agent.d.ts +0 -2
- package/lib/plugins/agent.js +0 -355
- package/lib/plugins/approval-floor.js +0 -227
- package/lib/plugins/approval.d.ts +0 -16
- package/lib/plugins/approval.js +0 -846
- package/lib/plugins/ask.js +0 -297
- package/lib/plugins/browser.d.ts +0 -68
- package/lib/plugins/browser.js +0 -1289
- package/lib/plugins/commands.d.ts +0 -23
- package/lib/plugins/commands.js +0 -608
- package/lib/plugins/compact.d.ts +0 -21
- package/lib/plugins/compact.js +0 -444
- package/lib/plugins/computer-use.d.ts +0 -47
- package/lib/plugins/computer-use.js +0 -555
- package/lib/plugins/desktop-dock.d.ts +0 -2
- package/lib/plugins/desktop-dock.js +0 -626
- package/lib/plugins/dock-browser.d.ts +0 -34
- package/lib/plugins/dock-browser.js +0 -724
- package/lib/plugins/dsh-compat.js +0 -44
- package/lib/plugins/file-review.d.ts +0 -108
- package/lib/plugins/file-review.js +0 -437
- package/lib/plugins/git.js +0 -140
- package/lib/plugins/goal.d.ts +0 -20
- package/lib/plugins/goal.js +0 -246
- package/lib/plugins/guards.js +0 -18
- package/lib/plugins/hooks.d.ts +0 -19
- package/lib/plugins/hooks.js +0 -585
- package/lib/plugins/host-stdio.d.ts +0 -88
- package/lib/plugins/host-stdio.js +0 -315
- package/lib/plugins/image-diet.js +0 -85
- package/lib/plugins/lifecycle-hooks.d.ts +0 -27
- package/lib/plugins/lifecycle-hooks.js +0 -340
- package/lib/plugins/llm.d.ts +0 -13
- package/lib/plugins/llm.js +0 -256
- package/lib/plugins/lsp.d.ts +0 -54
- package/lib/plugins/lsp.js +0 -603
- package/lib/plugins/mcp.js +0 -672
- package/lib/plugins/memory.d.ts +0 -17
- package/lib/plugins/memory.js +0 -837
- package/lib/plugins/microcompact.d.ts +0 -21
- package/lib/plugins/microcompact.js +0 -217
- package/lib/plugins/mode.d.ts +0 -18
- package/lib/plugins/mode.js +0 -134
- package/lib/plugins/permission-presets.d.ts +0 -19
- package/lib/plugins/permission-presets.js +0 -155
- package/lib/plugins/plan.js +0 -192
- package/lib/plugins/plugin-manager.js +0 -163
- package/lib/plugins/presets.js +0 -211
- package/lib/plugins/prompt.d.ts +0 -2
- package/lib/plugins/prompt.js +0 -307
- package/lib/plugins/ptc.js +0 -369
- package/lib/plugins/remote/http.d.ts +0 -11
- package/lib/plugins/remote/http.js +0 -11
- package/lib/plugins/remote/routes.js +0 -384
- package/lib/plugins/remote/types.d.ts +0 -135
- package/lib/plugins/remote/types.js +0 -98
- package/lib/plugins/remote.d.ts +0 -17
- package/lib/plugins/remote.js +0 -1027
- package/lib/plugins/runtime-api.js +0 -99
- package/lib/plugins/runtime.js +0 -528
- package/lib/plugins/sandbox.js +0 -882
- package/lib/plugins/schedule.d.ts +0 -26
- package/lib/plugins/schedule.js +0 -539
- package/lib/plugins/self-improve.d.ts +0 -61
- package/lib/plugins/self-improve.js +0 -963
- package/lib/plugins/session-search.js +0 -313
- package/lib/plugins/session-title.js +0 -109
- package/lib/plugins/session.js +0 -374
- package/lib/plugins/settings.d.ts +0 -3
- package/lib/plugins/settings.js +0 -681
- package/lib/plugins/skills.d.ts +0 -2
- package/lib/plugins/skills.js +0 -377
- package/lib/plugins/spill.js +0 -207
- package/lib/plugins/subagent.d.ts +0 -2
- package/lib/plugins/subagent.js +0 -1062
- package/lib/plugins/surfaces.d.ts +0 -11
- package/lib/plugins/surfaces.js +0 -20
- package/lib/plugins/team.d.ts +0 -16
- package/lib/plugins/team.js +0 -155
- package/lib/plugins/todo.d.ts +0 -19
- package/lib/plugins/todo.js +0 -194
- package/lib/plugins/tool-search.js +0 -453
- package/lib/plugins/tool-search.js.nv-backup +0 -434
- package/lib/plugins/tools-default.js +0 -359
- package/lib/plugins/transcript.d.ts +0 -15
- package/lib/plugins/transcript.js +0 -418
- package/lib/plugins/tui.js +0 -98
- package/lib/plugins/waiting.d.ts +0 -12
- package/lib/plugins/waiting.js +0 -34
- package/lib/plugins/web-search.d.ts +0 -14
- package/lib/plugins/web-search.js +0 -272
- package/lib/plugins/webserver.d.ts +0 -48
- package/lib/plugins/webserver.js +0 -261
- package/lib/remote/assets/app-B3Id1EBq.js +0 -14
- package/lib/remote/assets/icon-192.png +0 -0
- package/lib/remote/assets/icon-512.png +0 -0
- package/lib/remote/assets/index.html +0 -34
- package/lib/remote/assets/manifest.json +0 -27
- package/lib/remote/assets/style-NtlpbKOI.css +0 -1
- package/lib/remote/assets/sw.js +0 -66
- package/lib/tools/config-cli.js +0 -89
- package/lib/tools/plugin-cli.js +0 -209
- package/lib/ui/assets/app-B-Jx5dnh.js +0 -90
- package/lib/ui/assets/chunk-2UxHyX5q.js +0 -1
- package/lib/ui/assets/chunk-B1dDrJ26.js +0 -1
- package/lib/ui/assets/chunk-B6aJPvgy.js +0 -1
- package/lib/ui/assets/chunk-BEwlwnbL.js +0 -1
- package/lib/ui/assets/chunk-BIGW1oBm.js +0 -1
- package/lib/ui/assets/chunk-BPQ3VLAy.js +0 -1
- package/lib/ui/assets/chunk-BRH0KZbk.js +0 -141
- package/lib/ui/assets/chunk-BX6H_ySx.js +0 -1
- package/lib/ui/assets/chunk-B_P3UbPa.js +0 -1
- package/lib/ui/assets/chunk-B_TYUkTI.js +0 -1
- package/lib/ui/assets/chunk-B_vNuMnf.js +0 -1
- package/lib/ui/assets/chunk-BdnUsdx6.js +0 -1
- package/lib/ui/assets/chunk-Bfdlo8Me.js +0 -10
- package/lib/ui/assets/chunk-Buea-lGh.js +0 -1
- package/lib/ui/assets/chunk-C0PvZCCE.js +0 -1
- package/lib/ui/assets/chunk-C0m74zRD.js +0 -1
- package/lib/ui/assets/chunk-C27-OAKa.js +0 -1
- package/lib/ui/assets/chunk-C2oV4EkX.js +0 -1
- package/lib/ui/assets/chunk-C7zT0LnQ.js +0 -1
- package/lib/ui/assets/chunk-C9GSunVT.js +0 -1
- package/lib/ui/assets/chunk-C9tS-k6U.js +0 -1
- package/lib/ui/assets/chunk-CHLpvVh8.js +0 -1
- package/lib/ui/assets/chunk-CLxacb5B.js +0 -1
- package/lib/ui/assets/chunk-COt5Ahok.js +0 -1
- package/lib/ui/assets/chunk-CPTIWCL2.js +0 -1
- package/lib/ui/assets/chunk-CQLl-L-p.js +0 -1
- package/lib/ui/assets/chunk-CUWRgxuq.js +0 -55
- package/lib/ui/assets/chunk-CWanVSXC.js +0 -1
- package/lib/ui/assets/chunk-Cf5RLm7j.js +0 -1
- package/lib/ui/assets/chunk-CickPsom.js +0 -1
- package/lib/ui/assets/chunk-Cj5Yp3dK.js +0 -1
- package/lib/ui/assets/chunk-Cmh6b_Ma.js +0 -1
- package/lib/ui/assets/chunk-Cp-IABpG.js +0 -1
- package/lib/ui/assets/chunk-CqE71os6.js +0 -1
- package/lib/ui/assets/chunk-CtKP3W-j.js +0 -1
- package/lib/ui/assets/chunk-Cvjx9yec.js +0 -1
- package/lib/ui/assets/chunk-CxGP3dtY.js +0 -1
- package/lib/ui/assets/chunk-CylS5w8V.js +0 -1
- package/lib/ui/assets/chunk-D38fbIBN.js +0 -1
- package/lib/ui/assets/chunk-D97Zzqfu.js +0 -1
- package/lib/ui/assets/chunk-DAi9KRSo.js +0 -1
- package/lib/ui/assets/chunk-DGX-i4eb.js +0 -12
- package/lib/ui/assets/chunk-DHK4yRfg.js +0 -1
- package/lib/ui/assets/chunk-DJeabLx-.js +0 -1
- package/lib/ui/assets/chunk-DNRxmY5a.js +0 -1
- package/lib/ui/assets/chunk-DNSN1z5r.js +0 -1
- package/lib/ui/assets/chunk-DNasK_ZG.js +0 -1
- package/lib/ui/assets/chunk-DPvrY3IQ.js +0 -1
- package/lib/ui/assets/chunk-DXmwc3jG.js +0 -1
- package/lib/ui/assets/chunk-Dd0kTxKP.js +0 -1
- package/lib/ui/assets/chunk-De0Btta0.js +0 -1
- package/lib/ui/assets/chunk-Des-eS-w.js +0 -1
- package/lib/ui/assets/chunk-Df6bDoY_.js +0 -1
- package/lib/ui/assets/chunk-DijEV5ha.js +0 -1
- package/lib/ui/assets/chunk-DkvoVjww.js +0 -1
- package/lib/ui/assets/chunk-DlC-OlHO.js +0 -1
- package/lib/ui/assets/chunk-DnzrXTVv.js +0 -1
- package/lib/ui/assets/chunk-Dualf0xi.js +0 -1
- package/lib/ui/assets/chunk-EXT84bkm.js +0 -1
- package/lib/ui/assets/chunk-GwR3hkPK.js +0 -1
- package/lib/ui/assets/chunk-P80f7IUj.js +0 -1
- package/lib/ui/assets/chunk-VOosw3JB.js +0 -1
- package/lib/ui/assets/chunk-YQ4lDkt_.js +0 -140
- package/lib/ui/assets/chunk-Yzrsuije.js +0 -1
- package/lib/ui/assets/chunk-Z72CF80r.js +0 -1
- package/lib/ui/assets/chunk-g9-lgVsj.js +0 -1
- package/lib/ui/assets/chunk-vGWfd6FD.js +0 -1
- package/lib/ui/assets/chunk-wDzz0qaB.js +0 -1
- package/lib/ui/assets/chunk-ySF7HWmS.js +0 -1
- package/lib/ui/assets/icon.png +0 -0
- package/lib/ui/assets/index.html +0 -62
- package/lib/ui/assets/pdf.worker.min-CjEcRF4W.mjs +0 -28
- package/lib/ui/assets/style-WzxwEPaE.css +0 -1
- package/lib/ui/frames.js +0 -144
- package/lib/ui/index.d.ts +0 -88
- package/lib/ui/index.js +0 -79
- package/lib/ui/manifest.d.ts +0 -190
- package/lib/ui/manifest.js +0 -159
- package/lib/ui/plugin.d.ts +0 -161
- package/lib/ui/plugins/actions/bundle.json +0 -8
- package/lib/ui/plugins/actions/client.js +0 -43
- package/lib/ui/plugins/ask/bundle.json +0 -8
- package/lib/ui/plugins/ask/client.js +0 -415
- package/lib/ui/plugins/browser/bundle.json +0 -8
- package/lib/ui/plugins/browser/client.js +0 -290
- package/lib/ui/plugins/browser/icon.png +0 -0
- package/lib/ui/plugins/composer/bundle.json +0 -9
- package/lib/ui/plugins/composer/client.js +0 -2562
- package/lib/ui/plugins/composer/icon.png +0 -0
- package/lib/ui/plugins/files/bundle.json +0 -8
- package/lib/ui/plugins/files/client.js +0 -561
- package/lib/ui/plugins/files/icon.png +0 -0
- package/lib/ui/plugins/manifest.json +0 -4
- package/lib/ui/plugins/palette/bundle.json +0 -8
- package/lib/ui/plugins/palette/client.js +0 -360
- package/lib/ui/plugins/plugins/bundle.json +0 -8
- package/lib/ui/plugins/plugins/client.js +0 -760
- package/lib/ui/plugins/plugins/icon.png +0 -0
- package/lib/ui/plugins/preview/bundle.json +0 -8
- package/lib/ui/plugins/preview/client.js +0 -187
- package/lib/ui/plugins/preview/icon.png +0 -0
- package/lib/ui/plugins/prompt/bundle.json +0 -8
- package/lib/ui/plugins/prompt/client.js +0 -687
- package/lib/ui/plugins/prompt/icon.png +0 -0
- package/lib/ui/plugins/sessions/bundle.json +0 -8
- package/lib/ui/plugins/sessions/client.js +0 -1623
- package/lib/ui/plugins/sessions/icon.png +0 -0
- package/lib/ui/plugins/settings/bundle.json +0 -8
- package/lib/ui/plugins/settings/client.js +0 -5484
- package/lib/ui/plugins/settings/icon.png +0 -0
- package/lib/ui/plugins/skills/bundle.json +0 -8
- package/lib/ui/plugins/skills/client.js +0 -567
- package/lib/ui/plugins/skills/icon.png +0 -0
- package/lib/ui/plugins/status/bundle.json +0 -8
- package/lib/ui/plugins/status/client.js +0 -1559
- package/lib/ui/plugins/status/icon.png +0 -0
- package/lib/ui/plugins/statusbar/bundle.json +0 -9
- package/lib/ui/plugins/statusbar/client.js +0 -460
- package/lib/ui/plugins/statusbar/icon.png +0 -0
- package/lib/ui/plugins/tasks/bundle.json +0 -8
- package/lib/ui/plugins/tasks/client.js +0 -52
- package/lib/ui/plugins/tasks/icon.png +0 -0
- package/lib/ui/plugins/team/bundle.json +0 -8
- package/lib/ui/plugins/team/client.js +0 -529
- package/lib/ui/plugins/team/icon.png +0 -0
- package/lib/ui/plugins/terminal/bundle.json +0 -8
- package/lib/ui/plugins/terminal/client.js +0 -226
- package/lib/ui/plugins/terminal/icon.png +0 -0
- package/lib/ui/plugins/trace/bundle.json +0 -11
- package/lib/ui/plugins/trace/client.js +0 -1283
- package/lib/ui/plugins/trace/icon.png +0 -0
- package/lib/ui/plugins/transcript/bundle.json +0 -8
- package/lib/ui/plugins/transcript/client.js +0 -3026
- package/lib/ui/plugins/transcript/icon.png +0 -0
- package/lib/ui/scoped-slots.d.ts +0 -20
- package/lib/ui/sdk/@dsc/ui/index.d.ts +0 -280
- package/lib/ui/sdk/@dsc/ui/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-core/contract.d.ts +0 -25
- package/lib/ui/sdk/@dsc/ui-core/core/attachments.d.ts +0 -185
- package/lib/ui/sdk/@dsc/ui-core/core/bytes.d.ts +0 -14
- package/lib/ui/sdk/@dsc/ui-core/core/diff-text.d.ts +0 -74
- package/lib/ui/sdk/@dsc/ui-core/core/dock-browser.d.ts +0 -137
- package/lib/ui/sdk/@dsc/ui-core/core/dock-ops.d.ts +0 -59
- package/lib/ui/sdk/@dsc/ui-core/core/err-text.d.ts +0 -18
- package/lib/ui/sdk/@dsc/ui-core/core/git-surface.d.ts +0 -17
- package/lib/ui/sdk/@dsc/ui-core/core/json-text.d.ts +0 -11
- package/lib/ui/sdk/@dsc/ui-core/core/model-caps.d.ts +0 -83
- package/lib/ui/sdk/@dsc/ui-core/core/native-bridge.d.ts +0 -135
- package/lib/ui/sdk/@dsc/ui-core/core/path-policy.d.ts +0 -44
- package/lib/ui/sdk/@dsc/ui-core/core/records.d.ts +0 -16
- package/lib/ui/sdk/@dsc/ui-core/core/throughput.d.ts +0 -46
- package/lib/ui/sdk/@dsc/ui-core/core/token-estimate.d.ts +0 -71
- package/lib/ui/sdk/@dsc/ui-core/core/unified-diff.d.ts +0 -35
- package/lib/ui/sdk/@dsc/ui-core/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-core/ui/arrival.d.ts +0 -72
- package/lib/ui/sdk/@dsc/ui-core/ui/frames.d.ts +0 -67
- package/lib/ui/sdk/@dsc/ui-core/ui/index.d.ts +0 -88
- package/lib/ui/sdk/@dsc/ui-core/ui/manifest.d.ts +0 -190
- package/lib/ui/sdk/@dsc/ui-core/ui/plugin.d.ts +0 -161
- package/lib/ui/sdk/@dsc/ui-core/ui/scoped-slots.d.ts +0 -20
- package/lib/ui/sdk/@dsc/ui-core/ui/slots.d.ts +0 -481
- package/lib/ui/sdk/@dsc/ui-dockkit/dock-model.d.ts +0 -252
- package/lib/ui/sdk/@dsc/ui-dockkit/dock-state.d.ts +0 -163
- package/lib/ui/sdk/@dsc/ui-dockkit/dock.d.ts +0 -24
- package/lib/ui/sdk/@dsc/ui-dockkit/index.d.ts +0 -15
- package/lib/ui/sdk/@dsc/ui-dockkit/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-layout/app.d.ts +0 -78
- package/lib/ui/sdk/@dsc/ui-layout/appearance.d.ts +0 -75
- package/lib/ui/sdk/@dsc/ui-layout/host-channel.d.ts +0 -133
- package/lib/ui/sdk/@dsc/ui-layout/index.d.ts +0 -35
- package/lib/ui/sdk/@dsc/ui-layout/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-layout/page-state.d.ts +0 -14
- package/lib/ui/sdk/@dsc/ui-layout/review-pane.d.ts +0 -21
- package/lib/ui/sdk/@dsc/ui-layout/runtime-context.d.ts +0 -53
- package/lib/ui/sdk/@dsc/ui-layout/thread-view.d.ts +0 -28
- package/lib/ui/sdk/@dsc/ui-layout/update-button.d.ts +0 -21
- package/lib/ui/sdk/@dsc/ui-layout/usage-today.d.ts +0 -11
- package/lib/ui/sdk/@dsc/ui-primitives/code-file-icon-artwork.d.ts +0 -53
- package/lib/ui/sdk/@dsc/ui-primitives/code-view.d.ts +0 -15
- package/lib/ui/sdk/@dsc/ui-primitives/compat.d.ts +0 -27
- package/lib/ui/sdk/@dsc/ui-primitives/completion-sound.d.ts +0 -24
- package/lib/ui/sdk/@dsc/ui-primitives/confirm.d.ts +0 -33
- package/lib/ui/sdk/@dsc/ui-primitives/css.d.ts +0 -47
- package/lib/ui/sdk/@dsc/ui-primitives/dialog-focus.d.ts +0 -30
- package/lib/ui/sdk/@dsc/ui-primitives/diff-rows.d.ts +0 -20
- package/lib/ui/sdk/@dsc/ui-primitives/error-text.d.ts +0 -12
- package/lib/ui/sdk/@dsc/ui-primitives/file-icons.d.ts +0 -38
- package/lib/ui/sdk/@dsc/ui-primitives/file-type-classify.d.ts +0 -66
- package/lib/ui/sdk/@dsc/ui-primitives/file-type-icon.d.ts +0 -57
- package/lib/ui/sdk/@dsc/ui-primitives/git-surface.d.ts +0 -9
- package/lib/ui/sdk/@dsc/ui-primitives/highlight.d.ts +0 -47
- package/lib/ui/sdk/@dsc/ui-primitives/hover-delay.d.ts +0 -17
- package/lib/ui/sdk/@dsc/ui-primitives/humanize-error.d.ts +0 -35
- package/lib/ui/sdk/@dsc/ui-primitives/icons-workspace.d.ts +0 -33
- package/lib/ui/sdk/@dsc/ui-primitives/icons.d.ts +0 -127
- package/lib/ui/sdk/@dsc/ui-primitives/image-lightbox.d.ts +0 -21
- package/lib/ui/sdk/@dsc/ui-primitives/index.d.ts +0 -71
- package/lib/ui/sdk/@dsc/ui-primitives/lang-table.d.ts +0 -10
- package/lib/ui/sdk/@dsc/ui-primitives/markdown.d.ts +0 -16
- package/lib/ui/sdk/@dsc/ui-primitives/native.d.ts +0 -41
- package/lib/ui/sdk/@dsc/ui-primitives/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-primitives/panels.d.ts +0 -109
- package/lib/ui/sdk/@dsc/ui-primitives/paths.d.ts +0 -13
- package/lib/ui/sdk/@dsc/ui-primitives/pdf-view.d.ts +0 -13
- package/lib/ui/sdk/@dsc/ui-primitives/plugin-text.d.ts +0 -15
- package/lib/ui/sdk/@dsc/ui-primitives/review-findings-card.d.ts +0 -25
- package/lib/ui/sdk/@dsc/ui-primitives/review-findings.d.ts +0 -64
- package/lib/ui/sdk/@dsc/ui-primitives/review-notice-card.d.ts +0 -27
- package/lib/ui/sdk/@dsc/ui-primitives/review-notice.d.ts +0 -80
- package/lib/ui/sdk/@dsc/ui-primitives/select.d.ts +0 -35
- package/lib/ui/sdk/@dsc/ui-primitives/signal.d.ts +0 -9
- package/lib/ui/sdk/@dsc/ui-primitives/sizes.d.ts +0 -15
- package/lib/ui/sdk/@dsc/ui-primitives/skeleton.d.ts +0 -39
- package/lib/ui/sdk/@dsc/ui-primitives/snapshot.d.ts +0 -46
- package/lib/ui/sdk/@dsc/ui-primitives/table-view.d.ts +0 -23
- package/lib/ui/sdk/@dsc/ui-primitives/thread-resizer.d.ts +0 -22
- package/lib/ui/sdk/@dsc/ui-primitives/throughput.d.ts +0 -13
- package/lib/ui/sdk/@dsc/ui-primitives/time.d.ts +0 -33
- package/lib/ui/sdk/@dsc/ui-primitives/toast.d.ts +0 -16
- package/lib/ui/sdk/@dsc/ui-primitives/tokens.d.ts +0 -23
- package/lib/ui/sdk/@dsc/ui-primitives/tool-args.d.ts +0 -49
- package/lib/ui/sdk/@dsc/ui-primitives/tool-summary.d.ts +0 -88
- package/lib/ui/sdk/@dsc/ui-primitives/unified-diff.d.ts +0 -10
- package/lib/ui/sdk/@dsc/ui-renderer/boot.d.ts +0 -130
- package/lib/ui/sdk/@dsc/ui-renderer/cordis-host.d.ts +0 -113
- package/lib/ui/sdk/@dsc/ui-renderer/hmr.d.ts +0 -43
- package/lib/ui/sdk/@dsc/ui-renderer/index.d.ts +0 -20
- package/lib/ui/sdk/@dsc/ui-renderer/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-slots/index.d.ts +0 -19
- package/lib/ui/sdk/@dsc/ui-slots/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-slots/slots-react.d.ts +0 -48
- package/lib/ui/sdk/@dsc/ui-slots/slots.d.ts +0 -102
- package/lib/ui/services-react.d.ts +0 -27
- package/lib/ui/services.d.ts +0 -74
- package/lib/ui/signal.d.ts +0 -49
- package/lib/ui/slots-ink.d.ts +0 -26
- package/lib/ui/slots-ink.js +0 -78
- package/lib/ui/slots-react.d.ts +0 -28
- package/lib/ui/slots.d.ts +0 -481
- package/lib/ui/store.d.ts +0 -89
- package/lib/ui/tui-plugin-api.d.ts +0 -23
- package/lib/ui/tui-plugin-api.js +0 -23
- package/lib/ui/tui-plugins.d.ts +0 -47
- package/lib/ui/tui-plugins.js +0 -240
- /package/lib/{core → packages/approval}/call-meaning.d.ts +0 -0
- /package/lib/{plugins/approval-floor.d.ts → packages/approval-floor/index.d.ts} +0 -0
- /package/lib/{plugins/ask.d.ts → packages/ask/index.d.ts} +0 -0
- /package/lib/{core → packages}/cdp/actions.d.ts +0 -0
- /package/lib/{core → packages}/cdp/launch.d.ts +0 -0
- /package/lib/{tools → packages/cli}/config-cli.d.ts +0 -0
- /package/lib/{tools → packages/cli}/plugin-cli.d.ts +0 -0
- /package/lib/{core → packages/commands-core}/commands-completion.js +0 -0
- /package/lib/{plugins/dsh-compat.d.ts → packages/dsh-compat/index.d.ts} +0 -0
- /package/lib/{plugins/git.d.ts → packages/git/index.d.ts} +0 -0
- /package/lib/{core → packages/goal}/goal.js +0 -0
- /package/lib/{plugins/guards.d.ts → packages/guards/index.d.ts} +0 -0
- /package/lib/{plugins/image-diet.d.ts → packages/image-diet/index.d.ts} +0 -0
- /package/lib/{core → packages}/lsp/client.d.ts +0 -0
- /package/lib/{core → packages}/lsp/framing.d.ts +0 -0
- /package/lib/{core → packages}/lsp/framing.js +0 -0
- /package/lib/{core → packages}/lsp/line-shift.d.ts +0 -0
- /package/lib/{core → packages}/lsp/line-shift.js +0 -0
- /package/lib/{core → packages}/lsp/manager.d.ts +0 -0
- /package/lib/{core → packages}/lsp/normalize.d.ts +0 -0
- /package/lib/{core → packages}/lsp/servers.d.ts +0 -0
- /package/lib/{core → packages}/lsp/uri.d.ts +0 -0
- /package/lib/{core → packages}/lsp/uri.js +0 -0
- /package/lib/{plugins/mcp.d.ts → packages/mcp/index.d.ts} +0 -0
- /package/lib/{core → packages/memory}/memory-eval.d.ts +0 -0
- /package/lib/{core → packages/memory}/memory-eval.js +0 -0
- /package/lib/{core → packages/permission-core}/permission-presets.js +0 -0
- /package/lib/{core → packages/permission-core}/permission-scope.js +0 -0
- /package/lib/{plugins/plan.d.ts → packages/plan/index.d.ts} +0 -0
- /package/lib/{plugins/plugin-manager.d.ts → packages/plugin-manager/index.d.ts} +0 -0
- /package/lib/{plugins/presets.d.ts → packages/presets/index.d.ts} +0 -0
- /package/lib/{plugins/ptc.d.ts → packages/ptc/index.d.ts} +0 -0
- /package/lib/{plugins → packages}/remote/routes.d.ts +0 -0
- /package/lib/{plugins/runtime.d.ts → packages/runtime/index.d.ts} +0 -0
- /package/lib/{plugins/runtime-api.d.ts → packages/runtime-api/index.d.ts} +0 -0
- /package/lib/{core → packages}/sandbox/backends.js +0 -0
- /package/lib/{plugins/sandbox.d.ts → packages/sandbox/index.d.ts} +0 -0
- /package/lib/{core → packages}/sandbox/net-proxy.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/abi.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/abi.js +0 -0
- /package/lib/{core → packages}/sandbox/win/account.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/acl.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/acl.js +0 -0
- /package/lib/{core → packages}/sandbox/win/doctor.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/net-abi.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/net-abi.js +0 -0
- /package/lib/{core → packages}/sandbox/win/token.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/token.js +0 -0
- /package/lib/{core → packages}/sandbox/win/utf16.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/utf16.js +0 -0
- /package/lib/{core → packages}/sandbox/win/wfp.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/workspace-sid.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/workspace-sid.js +0 -0
- /package/lib/{core/learnings → packages/self-improve}/store.d.ts +0 -0
- /package/lib/{plugins/session.d.ts → packages/session/index.d.ts} +0 -0
- /package/lib/{plugins/session-search.d.ts → packages/session-search/index.d.ts} +0 -0
- /package/lib/{core → packages/session-search}/session-index.d.ts +0 -0
- /package/lib/{plugins/session-title.d.ts → packages/session-title/index.d.ts} +0 -0
- /package/lib/{core → packages/settings}/model-discovery.d.ts +0 -0
- /package/lib/{core → packages/settings}/model-discovery.js +0 -0
- /package/lib/{plugins/spill.d.ts → packages/spill/index.d.ts} +0 -0
- /package/lib/{core → packages/surfaces}/surface-registry.d.ts +0 -0
- /package/lib/{core → packages/surfaces}/surface-registry.js +0 -0
- /package/lib/{core → packages/todo}/todo.js +0 -0
- /package/lib/{plugins/tool-search.d.ts → packages/tool-search/index.d.ts} +0 -0
- /package/lib/{core → packages/tool-search}/tool-search.js +0 -0
- /package/lib/{plugins/tools.d.ts → packages/tools/index.d.ts} +0 -0
- /package/lib/{plugins/tools.js → packages/tools/index.js} +0 -0
- /package/lib/{plugins/tools-default.d.ts → packages/tools-default/index.d.ts} +0 -0
- /package/lib/{app → packages/tui/app}/AgentsOverlay.js +0 -0
- /package/lib/{app → packages/tui/app}/AskCard.js +0 -0
- /package/lib/{app → packages/tui/app}/MarkdownView.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/MarkdownView.js +0 -0
- /package/lib/{app → packages/tui/app}/ModelPicker.js +0 -0
- /package/lib/{app → packages/tui/app}/PickerFrame.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/PickerFrame.js +0 -0
- /package/lib/{app → packages/tui/app}/PlanReviewCard.js +0 -0
- /package/lib/{app → packages/tui/app}/PresetPicker.js +0 -0
- /package/lib/{app → packages/tui/app}/PreviewOverlay.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/PreviewOverlay.js +0 -0
- /package/lib/{app → packages/tui/app}/SessionPicker.js +0 -0
- /package/lib/{app → packages/tui/app}/SkillsPicker.js +0 -0
- /package/lib/{app → packages/tui/app}/TimelineRail.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/TimelineRail.js +0 -0
- /package/lib/{app → packages/tui/app}/TranscriptOverlay.js +0 -0
- /package/lib/{app → packages/tui/app}/Welcome.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/attach.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/attach.js +0 -0
- /package/lib/{app → packages/tui/app}/click.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/click.js +0 -0
- /package/lib/{app → packages/tui/app}/clipboard-image.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/cursor.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/cursor.js +0 -0
- /package/lib/{app → packages/tui/app}/history-store.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/image-blocks.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/keymap.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/keymap.js +0 -0
- /package/lib/{app → packages/tui/app}/markdown.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/markdown.js +0 -0
- /package/lib/{app → packages/tui/app}/mouse.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/mouse.js +0 -0
- /package/lib/{app → packages/tui/app}/pointer.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/pointer.js +0 -0
- /package/lib/{app → packages/tui/app}/scroll-model.js +0 -0
- /package/lib/{app → packages/tui/app}/snapshot-subscribe.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/theme.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/theme.js +0 -0
- /package/lib/{app → packages/tui/app}/ticker.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/ticker.js +0 -0
- /package/lib/{plugins/tui.d.ts → packages/tui/index.d.ts} +0 -0
- /package/lib/{ui → packages/ui-core}/arrival.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/arrival.js +0 -0
- /package/lib/{ui → packages/ui-core}/frames.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/plugin.js +0 -0
- /package/lib/{ui → packages/ui-core}/scoped-slots.js +0 -0
- /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/services-react.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/services-react.js +0 -0
- /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/services.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/services.js +0 -0
- /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/signal.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/signal.js +0 -0
- /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/slots-react.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/slots-react.js +0 -0
- /package/lib/{ui → packages/ui-core}/slots.js +0 -0
- /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/store.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/store.js +0 -0
|
@@ -1,3026 +0,0 @@
|
|
|
1
|
-
(globalThis.__DSC_UI_FACTORIES__ ??= {})["transcript"] = function (require, module, exports) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
-
const react = require("react");
|
|
6
|
-
const ui$1 = require("@dsc/ui");
|
|
7
|
-
const uiPrimitives = require("@dsc/ui-primitives");
|
|
8
|
-
const reactDom = require("react-dom");
|
|
9
|
-
function tsOf(entry) {
|
|
10
|
-
const ts = entry.ts;
|
|
11
|
-
return typeof ts === "number" && Number.isFinite(ts) && ts > 0 ? ts : null;
|
|
12
|
-
}
|
|
13
|
-
function splitRounds(entries) {
|
|
14
|
-
const rounds = [];
|
|
15
|
-
entries.forEach((entry, index) => {
|
|
16
|
-
if (entry.kind === "user") {
|
|
17
|
-
const current2 = rounds[rounds.length - 1];
|
|
18
|
-
if (entry.steering === true && current2 !== void 0) {
|
|
19
|
-
current2.endIndex = index;
|
|
20
|
-
const steeringTs = tsOf(entry);
|
|
21
|
-
if (steeringTs !== null) current2.endTs = steeringTs;
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
rounds.push({
|
|
25
|
-
index: rounds.length,
|
|
26
|
-
startIndex: index,
|
|
27
|
-
endIndex: index,
|
|
28
|
-
startTs: tsOf(entry),
|
|
29
|
-
endTs: null,
|
|
30
|
-
answered: false
|
|
31
|
-
});
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
const current = rounds[rounds.length - 1];
|
|
35
|
-
if (current === void 0 || entry.kind === "system") return;
|
|
36
|
-
current.endIndex = index;
|
|
37
|
-
current.answered = true;
|
|
38
|
-
const ts = tsOf(entry);
|
|
39
|
-
if (ts !== null) current.endTs = ts;
|
|
40
|
-
});
|
|
41
|
-
for (const round of rounds) {
|
|
42
|
-
if (round.endTs !== null && round.startTs !== null && round.endTs < round.startTs) round.endTs = null;
|
|
43
|
-
}
|
|
44
|
-
const seats = rounds.map((round, i) => {
|
|
45
|
-
const next = rounds[i + 1];
|
|
46
|
-
const stop = next === void 0 ? entries.length - 1 : next.startIndex - 1;
|
|
47
|
-
const indices = [];
|
|
48
|
-
for (let at = round.startIndex; at <= stop; at += 1) indices.push(at);
|
|
49
|
-
return { round: round.index, indices };
|
|
50
|
-
});
|
|
51
|
-
const firstStart = rounds[0]?.startIndex ?? entries.length;
|
|
52
|
-
const leading = [];
|
|
53
|
-
for (let at = 0; at < firstStart; at += 1) leading.push(at);
|
|
54
|
-
return { rounds, seats, leading };
|
|
55
|
-
}
|
|
56
|
-
const TEAMMATE_REPORT_OPEN = "<teammate-report ";
|
|
57
|
-
function teammateReport(text) {
|
|
58
|
-
if (!text.startsWith(TEAMMATE_REPORT_OPEN)) return null;
|
|
59
|
-
const close = text.indexOf(">");
|
|
60
|
-
const head = close === -1 ? text : text.slice(0, close);
|
|
61
|
-
const from = /\bfrom="([^"]*)"/.exec(head)?.[1] ?? null;
|
|
62
|
-
const state = /\bstate="([^"]*)"/.exec(head)?.[1] ?? null;
|
|
63
|
-
return { from, state };
|
|
64
|
-
}
|
|
65
|
-
function teammateReportLabel(text) {
|
|
66
|
-
const report = teammateReport(text);
|
|
67
|
-
if (report === null) return "子任务汇报";
|
|
68
|
-
const who = report.from === null || report.from === "" ? "队友" : `队友 ${report.from}`;
|
|
69
|
-
const verb = report.state === "已失败" ? "失败了" : report.state === "已停止" ? "停了下来" : "汇报了运行结果";
|
|
70
|
-
return `${who} ${verb}`;
|
|
71
|
-
}
|
|
72
|
-
function internalLabel(text) {
|
|
73
|
-
if (text.startsWith(TEAMMATE_REPORT_OPEN)) return teammateReportLabel(text);
|
|
74
|
-
const job = /^后台作业\s+(\S+?)\s*((|\(|启动失败|成功|失败)/.exec(text);
|
|
75
|
-
if (job !== null) {
|
|
76
|
-
const id = job[1] ?? "";
|
|
77
|
-
const failed = text.includes("失败");
|
|
78
|
-
return failed ? `后台作业 ${id} 失败了` : `后台作业 ${id} 完成了`;
|
|
79
|
-
}
|
|
80
|
-
return "运行时通知";
|
|
81
|
-
}
|
|
82
|
-
function liveActivity(entries, turnState) {
|
|
83
|
-
if (turnState === "idle") return null;
|
|
84
|
-
if (turnState === "awaiting-approval") {
|
|
85
|
-
return { text: "等待你的确认", covered: false };
|
|
86
|
-
}
|
|
87
|
-
const tail = entries[entries.length - 1];
|
|
88
|
-
if (tail !== void 0 && tail.id < 0 && tail.kind === "thinking") {
|
|
89
|
-
return { text: "正在分析请求", covered: false };
|
|
90
|
-
}
|
|
91
|
-
if (tail !== void 0 && tail.id < 0 && tail.kind === "text") {
|
|
92
|
-
return { text: "正在整理回复", covered: false };
|
|
93
|
-
}
|
|
94
|
-
const running = [...entries].reverse().find(
|
|
95
|
-
(entry) => entry.kind === "tool" && (entry.call.status === "running" || entry.call.status === "preparing")
|
|
96
|
-
);
|
|
97
|
-
if (running !== void 0) {
|
|
98
|
-
const name = typeof running.call.name === "string" && running.call.name !== "" ? running.call.name : "未知工具";
|
|
99
|
-
return {
|
|
100
|
-
// 「准备中」是模型还在吐参数、「正在调用」是工具真的开跑了——两句话不同
|
|
101
|
-
text: running.call.status === "preparing" ? `正在准备 ${name}` : `正在调用 ${name}`,
|
|
102
|
-
// 工具在跑 = 过程组头正在画同一件事(除非用户把过程折叠关成了竖排)
|
|
103
|
-
covered: true
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
if (turnState === "working") return { text: "正在执行工具", covered: false };
|
|
107
|
-
return { text: "正在分析请求", covered: false };
|
|
108
|
-
}
|
|
109
|
-
function roundDuration(round) {
|
|
110
|
-
if (round.startTs === null || round.endTs === null) return null;
|
|
111
|
-
const ms = round.endTs - round.startTs;
|
|
112
|
-
return Number.isFinite(ms) && ms >= 0 ? ms : null;
|
|
113
|
-
}
|
|
114
|
-
const folds = /* @__PURE__ */ new Map();
|
|
115
|
-
function readFold(key, fallback) {
|
|
116
|
-
return foldStateOf(key, fallback).open;
|
|
117
|
-
}
|
|
118
|
-
function foldStateOf(key, fallback) {
|
|
119
|
-
if (key === void 0) return { open: fallback, manual: false };
|
|
120
|
-
const stored = folds.get(key);
|
|
121
|
-
if (stored === void 0) return { open: fallback, manual: false };
|
|
122
|
-
return { open: stored, manual: true };
|
|
123
|
-
}
|
|
124
|
-
function followFallback(current, key, fallback) {
|
|
125
|
-
const state = foldStateOf(key, fallback);
|
|
126
|
-
return state.manual ? current : state.open;
|
|
127
|
-
}
|
|
128
|
-
function writeFold(key, open) {
|
|
129
|
-
if (key === void 0) return;
|
|
130
|
-
folds.set(key, open);
|
|
131
|
-
}
|
|
132
|
-
function turnFoldKey(sessionId, roundIndex) {
|
|
133
|
-
return `${sessionId ?? ""}:turn:${String(roundIndex)}`;
|
|
134
|
-
}
|
|
135
|
-
function stepGroupFoldKey(sessionId, roundIndex, groupSeq) {
|
|
136
|
-
return `${sessionId ?? ""}:step:${String(roundIndex)}:${String(groupSeq)}`;
|
|
137
|
-
}
|
|
138
|
-
const PROCESS_FOLD_POLICIES = {
|
|
139
|
-
// 紧凑档也带摘要(2026-10-30 用户拍板):这一档管的是「定稿的回合收成一行用时」,
|
|
140
|
-
// 它不该顺手把行内摘要一起删掉——摘要回答的是「这条思考讲了什么」,与整轮折不折是两件事。
|
|
141
|
-
// 删掉之后紧凑档的过程行只剩「思考 ∨」「工具调用 · run_code」这种没有内容的标题,
|
|
142
|
-
// 用户的原话是「现在的思考行没有思考摘要显示」。
|
|
143
|
-
compact: { foldTurns: true, stepGrouping: "collapsed", liveDetail: false, reasoningPreview: true },
|
|
144
|
-
standard: { foldTurns: true, stepGrouping: "collapsed", liveDetail: true, reasoningPreview: true },
|
|
145
|
-
detailed: { foldTurns: true, stepGrouping: "history", liveDetail: true, reasoningPreview: true },
|
|
146
|
-
verbose: { foldTurns: false, stepGrouping: "none", liveDetail: false, reasoningPreview: true }
|
|
147
|
-
};
|
|
148
|
-
function processFoldPolicy(fold) {
|
|
149
|
-
return PROCESS_FOLD_POLICIES[fold ?? "standard"];
|
|
150
|
-
}
|
|
151
|
-
function buildRoundFolds(entries, rounds, options) {
|
|
152
|
-
const out = /* @__PURE__ */ new Map();
|
|
153
|
-
for (const round of rounds) {
|
|
154
|
-
let answerIndex = -1;
|
|
155
|
-
for (let at = round.endIndex; at > round.startIndex; at -= 1) {
|
|
156
|
-
const entry = entries[at];
|
|
157
|
-
if (entry !== void 0 && entry.kind === "text" && entry.id >= 0) {
|
|
158
|
-
answerIndex = at;
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
let startIndex = -1;
|
|
163
|
-
let endIndex = -1;
|
|
164
|
-
let hasLiveEntry = false;
|
|
165
|
-
let hasSteering = false;
|
|
166
|
-
let endReason;
|
|
167
|
-
for (let at = round.startIndex + 1; at <= round.endIndex; at += 1) {
|
|
168
|
-
const entry = entries[at];
|
|
169
|
-
if (entry === void 0) continue;
|
|
170
|
-
if (entry.id < 0) hasLiveEntry = true;
|
|
171
|
-
if (entry.kind === "user" && entry.steering === true) hasSteering = true;
|
|
172
|
-
if (entry.kind === "turn-end") endReason = entry.reason;
|
|
173
|
-
if (entry.kind !== "thinking" && entry.kind !== "tool" && entry.kind !== "text") continue;
|
|
174
|
-
if (answerIndex >= 0 && at >= answerIndex) continue;
|
|
175
|
-
if (startIndex < 0) startIndex = at;
|
|
176
|
-
endIndex = at;
|
|
177
|
-
}
|
|
178
|
-
const hasContent = startIndex >= 0;
|
|
179
|
-
out.set(round.index, {
|
|
180
|
-
roundIndex: round.index,
|
|
181
|
-
startIndex,
|
|
182
|
-
endIndex,
|
|
183
|
-
hasContent,
|
|
184
|
-
foldable: options.foldTurns,
|
|
185
|
-
// 跑动中的两种形态都算「这一轮还没收尾」:出现了直播条目(id<0),或者这就是最后一轮
|
|
186
|
-
// 而回合还没结束,或者用户刚发完消息、助手一个字都还没回(answered 为假)。
|
|
187
|
-
running: hasLiveEntry || options.live && round.index === options.lastRoundIndex || !round.answered,
|
|
188
|
-
blocked: hasSteering || endReason === "aborted" || endReason === "error",
|
|
189
|
-
endReason
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
return out;
|
|
193
|
-
}
|
|
194
|
-
function TurnFoldRow(props) {
|
|
195
|
-
const used = uiPrimitives.formatDuration(roundDuration(props.round));
|
|
196
|
-
const label = props.endReason === "aborted" ? "已停止" : props.endReason === "error" ? "过程失败" : used === null ? "已完成" : `用时 ${used}`;
|
|
197
|
-
const toggle = (event) => {
|
|
198
|
-
if (event.key !== "Enter" && event.key !== " ") return;
|
|
199
|
-
event.preventDefault();
|
|
200
|
-
props.onToggle();
|
|
201
|
-
};
|
|
202
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
203
|
-
"button",
|
|
204
|
-
{
|
|
205
|
-
type: "button",
|
|
206
|
-
className: "turn-fold",
|
|
207
|
-
"data-open": props.open ? "1" : void 0,
|
|
208
|
-
"data-round-index": props.round.index,
|
|
209
|
-
"data-turn-blocked": props.disabled ? "1" : void 0,
|
|
210
|
-
disabled: props.disabled,
|
|
211
|
-
"aria-expanded": props.disabled ? void 0 : props.open,
|
|
212
|
-
"data-tip": props.disabled ? props.endReason === "aborted" ? "这一轮被中断,过程保持展开" : props.endReason === "error" ? "这一轮跑挂了,过程保持展开" : "这一轮没有可折叠的过程内容" : props.open ? "收起这一轮的过程(思考与工具调用)" : "展开这一轮的过程(思考与工具调用)",
|
|
213
|
-
onClick: props.onToggle,
|
|
214
|
-
onKeyDown: toggle,
|
|
215
|
-
children: [
|
|
216
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "turn-fold-label", children: label }),
|
|
217
|
-
props.disabled ? null : /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 11, className: "turn-fold-chevron" })
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
function useFoldMemory() {
|
|
223
|
-
const [map, setMap] = react.useState({});
|
|
224
|
-
const open = react.useCallback(
|
|
225
|
-
(key, fallback) => map[key] ?? readFold(key, fallback),
|
|
226
|
-
[map]
|
|
227
|
-
);
|
|
228
|
-
const set = react.useCallback((key, next) => {
|
|
229
|
-
writeFold(key, next);
|
|
230
|
-
setMap((current) => ({ ...current, [key]: next }));
|
|
231
|
-
}, []);
|
|
232
|
-
const reset = react.useCallback((keys) => {
|
|
233
|
-
if (keys.length === 0) return;
|
|
234
|
-
for (const key of keys) writeFold(key, false);
|
|
235
|
-
setMap((current) => {
|
|
236
|
-
let next = current;
|
|
237
|
-
for (const key of keys) {
|
|
238
|
-
if (next[key] === void 0) continue;
|
|
239
|
-
if (next === current) next = { ...current };
|
|
240
|
-
delete next[key];
|
|
241
|
-
}
|
|
242
|
-
return next;
|
|
243
|
-
});
|
|
244
|
-
}, []);
|
|
245
|
-
return react.useMemo(() => ({ open, set, reset }), [open, set, reset]);
|
|
246
|
-
}
|
|
247
|
-
function seatPlan(ats, grouping) {
|
|
248
|
-
const items = [];
|
|
249
|
-
for (const at of ats) {
|
|
250
|
-
const head = grouping.headAt.get(at);
|
|
251
|
-
if (head !== void 0) {
|
|
252
|
-
const members = [];
|
|
253
|
-
for (let index = head.startIndex; index <= head.endIndex; index += 1) members.push(index);
|
|
254
|
-
items.push({ kind: "group", group: head, members });
|
|
255
|
-
continue;
|
|
256
|
-
}
|
|
257
|
-
if (grouping.at.has(at)) continue;
|
|
258
|
-
items.push({ kind: "row", at });
|
|
259
|
-
}
|
|
260
|
-
return items;
|
|
261
|
-
}
|
|
262
|
-
function needsGroupHeader(group) {
|
|
263
|
-
return group.size >= 2;
|
|
264
|
-
}
|
|
265
|
-
function activityOf(name) {
|
|
266
|
-
const tool = typeof name === "string" ? name.toLowerCase() : "";
|
|
267
|
-
if (tool === "read") return "read";
|
|
268
|
-
if (tool === "read_image") return "readImage";
|
|
269
|
-
if (tool === "grep" || tool === "glob" || tool === "search" || tool === "session_search" || tool.endsWith("_inspect")) return "search";
|
|
270
|
-
if (tool === "write") return "write";
|
|
271
|
-
if (tool === "edit" || tool === "apply_patch") return "edit";
|
|
272
|
-
if (tool === "bash" || tool === "pwsh" || tool === "exec_command" || tool === "write_stdin" || tool.startsWith("terminal_")) return "commands";
|
|
273
|
-
if (tool === "run_code") return "code";
|
|
274
|
-
if (tool === "web_search") return "webSearch";
|
|
275
|
-
if (tool === "web_fetch") return "webFetch";
|
|
276
|
-
if (tool === "browser") return "browser";
|
|
277
|
-
if (tool === "subagent" || tool.startsWith("subagent_")) return "subagents";
|
|
278
|
-
if (tool === "todo_write" || tool === "create_goal" || tool === "update_goal" || tool === "get_goal" || tool === "exit_plan_mode") return "plan";
|
|
279
|
-
if (tool === "ask_user" || tool === "ask_user_question" || tool === "request_user_input") return "questions";
|
|
280
|
-
return "tools";
|
|
281
|
-
}
|
|
282
|
-
const DONE_LABEL = {
|
|
283
|
-
read: "已读取文件",
|
|
284
|
-
readImage: "已读取图片",
|
|
285
|
-
search: "已搜索代码",
|
|
286
|
-
write: "已写入文件",
|
|
287
|
-
edit: "修改了文件",
|
|
288
|
-
commands: "执行了命令",
|
|
289
|
-
code: "运行了代码",
|
|
290
|
-
webSearch: "已搜索网页",
|
|
291
|
-
webFetch: "已访问网页",
|
|
292
|
-
browser: "已浏览网页",
|
|
293
|
-
subagents: "已协调子智能体",
|
|
294
|
-
plan: "更新了计划",
|
|
295
|
-
questions: "向用户提出了问题",
|
|
296
|
-
tools: "已调用工具"
|
|
297
|
-
};
|
|
298
|
-
function liveTitleOf(group) {
|
|
299
|
-
return {
|
|
300
|
-
activity: group.running ?? "thinking",
|
|
301
|
-
detail: group.runningDetail ?? "",
|
|
302
|
-
preparing: group.preparing === true
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
function sameLiveTitle(left, right) {
|
|
306
|
-
return left.activity === right.activity && left.detail === right.detail && left.preparing === right.preparing;
|
|
307
|
-
}
|
|
308
|
-
const PROCESS_TITLE_MINIMUM_MS = 150;
|
|
309
|
-
function liveTitleDecision(shown, desired, heldMs) {
|
|
310
|
-
if (sameLiveTitle(shown, desired)) return { keep: true, waitMs: 0 };
|
|
311
|
-
const remaining = PROCESS_TITLE_MINIMUM_MS - heldMs;
|
|
312
|
-
if (remaining <= 0) return { keep: false, waitMs: 0 };
|
|
313
|
-
return { keep: true, waitMs: remaining };
|
|
314
|
-
}
|
|
315
|
-
const RUNNING_LABEL = {
|
|
316
|
-
read: "正在读取文件",
|
|
317
|
-
readImage: "正在读取图片",
|
|
318
|
-
search: "正在搜索代码",
|
|
319
|
-
write: "正在写入文件",
|
|
320
|
-
edit: "正在编辑文件",
|
|
321
|
-
commands: "正在运行命令",
|
|
322
|
-
code: "正在运行代码",
|
|
323
|
-
webSearch: "正在搜索网页",
|
|
324
|
-
webFetch: "正在访问网页",
|
|
325
|
-
browser: "正在浏览网页",
|
|
326
|
-
subagents: "正在协调子智能体",
|
|
327
|
-
plan: "正在更新计划",
|
|
328
|
-
questions: "等待你的操作",
|
|
329
|
-
tools: "正在调用工具"
|
|
330
|
-
};
|
|
331
|
-
const DONE_THINKING = "已完成分析";
|
|
332
|
-
const RUNNING_THINKING = "正在分析请求";
|
|
333
|
-
const PREPARE_LABEL = {
|
|
334
|
-
read: "准备读取文件",
|
|
335
|
-
readImage: "准备读取图片",
|
|
336
|
-
search: "准备搜索代码",
|
|
337
|
-
write: "准备写入文件",
|
|
338
|
-
edit: "准备编辑文件",
|
|
339
|
-
commands: "准备运行命令",
|
|
340
|
-
code: "准备运行代码",
|
|
341
|
-
webSearch: "准备搜索网页",
|
|
342
|
-
webFetch: "准备访问网页",
|
|
343
|
-
browser: "准备浏览网页",
|
|
344
|
-
subagents: "准备协调子智能体",
|
|
345
|
-
plan: "准备更新计划",
|
|
346
|
-
questions: "准备提问",
|
|
347
|
-
tools: "准备调用工具"
|
|
348
|
-
};
|
|
349
|
-
const COMMA = ",";
|
|
350
|
-
const JOIN_TWO = "并";
|
|
351
|
-
const SHARED_PREFIX = "已";
|
|
352
|
-
const MORE = "等";
|
|
353
|
-
const TITLE_MAX_KINDS = 3;
|
|
354
|
-
function stepGroupTitle(counts, closed, running, preparing) {
|
|
355
|
-
if (!closed) {
|
|
356
|
-
if (running === void 0) return RUNNING_THINKING;
|
|
357
|
-
return preparing === true ? PREPARE_LABEL[running] : RUNNING_LABEL[running];
|
|
358
|
-
}
|
|
359
|
-
const labels = counts.slice(0, TITLE_MAX_KINDS).map((item) => DONE_LABEL[item.kind]);
|
|
360
|
-
const first = labels[0];
|
|
361
|
-
if (first === void 0) return DONE_THINKING;
|
|
362
|
-
const second = labels[1];
|
|
363
|
-
if (second === void 0) return first;
|
|
364
|
-
if (labels.length === 2) {
|
|
365
|
-
const shared = first.startsWith(SHARED_PREFIX) && second.startsWith(SHARED_PREFIX);
|
|
366
|
-
const tail = shared ? second.slice(SHARED_PREFIX.length) : second;
|
|
367
|
-
return `${first}${JOIN_TWO}${tail}`;
|
|
368
|
-
}
|
|
369
|
-
const title = labels.join(COMMA);
|
|
370
|
-
return counts.length > TITLE_MAX_KINDS ? `${title}${MORE}` : title;
|
|
371
|
-
}
|
|
372
|
-
function countActivities(entries, indexes) {
|
|
373
|
-
const counts = /* @__PURE__ */ new Map();
|
|
374
|
-
for (const index of indexes) {
|
|
375
|
-
const entry = entries[index];
|
|
376
|
-
if (entry === void 0 || entry.kind !== "tool") continue;
|
|
377
|
-
const kind = activityOf(entry.call.name);
|
|
378
|
-
counts.set(kind, (counts.get(kind) ?? 0) + 1);
|
|
379
|
-
}
|
|
380
|
-
return [...counts].map(([kind, count]) => ({ kind, count })).sort((left, right) => right.count - left.count);
|
|
381
|
-
}
|
|
382
|
-
function countFailures(entries, indexes) {
|
|
383
|
-
let failures = 0;
|
|
384
|
-
for (const index of indexes) {
|
|
385
|
-
const entry = entries[index];
|
|
386
|
-
if (entry !== void 0 && entry.kind === "tool" && entry.call.status === "failed") failures += 1;
|
|
387
|
-
}
|
|
388
|
-
return failures;
|
|
389
|
-
}
|
|
390
|
-
function groupSteps(entries, rounds, isRunning, settledOnly = false) {
|
|
391
|
-
const groups = [];
|
|
392
|
-
for (const round of rounds) {
|
|
393
|
-
if (settledOnly && isRunning(round.index)) continue;
|
|
394
|
-
let pending = [];
|
|
395
|
-
let seq = 0;
|
|
396
|
-
const flush = (closed) => {
|
|
397
|
-
const first = pending[0];
|
|
398
|
-
const last = pending[pending.length - 1];
|
|
399
|
-
if (first === void 0 || last === void 0) return;
|
|
400
|
-
const group = {
|
|
401
|
-
roundIndex: round.index,
|
|
402
|
-
seq,
|
|
403
|
-
startIndex: first,
|
|
404
|
-
endIndex: last,
|
|
405
|
-
size: pending.length,
|
|
406
|
-
counts: countActivities(entries, pending),
|
|
407
|
-
failures: countFailures(entries, pending),
|
|
408
|
-
closed
|
|
409
|
-
};
|
|
410
|
-
groups.push(group);
|
|
411
|
-
seq += 1;
|
|
412
|
-
pending = [];
|
|
413
|
-
};
|
|
414
|
-
for (let at2 = round.startIndex + 1; at2 <= round.endIndex; at2 += 1) {
|
|
415
|
-
const entry = entries[at2];
|
|
416
|
-
if (entry === void 0) continue;
|
|
417
|
-
if (entry.kind === "tool") {
|
|
418
|
-
pending.push(at2);
|
|
419
|
-
continue;
|
|
420
|
-
}
|
|
421
|
-
if (entry.kind === "thinking") {
|
|
422
|
-
flush(true);
|
|
423
|
-
continue;
|
|
424
|
-
}
|
|
425
|
-
if (entry.kind === "text" || entry.kind === "plan" || entry.kind === "user" || entry.kind === "turn-end" || entry.kind === "turn-max-tokens" || entry.kind === "model-retry") {
|
|
426
|
-
flush(true);
|
|
427
|
-
continue;
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
if (isRunning(round.index)) pending = [];
|
|
431
|
-
else flush(true);
|
|
432
|
-
}
|
|
433
|
-
const headAt = /* @__PURE__ */ new Map();
|
|
434
|
-
const at = /* @__PURE__ */ new Map();
|
|
435
|
-
for (const group of groups) {
|
|
436
|
-
headAt.set(group.startIndex, group);
|
|
437
|
-
for (let index = group.startIndex; index <= group.endIndex; index += 1) at.set(index, group);
|
|
438
|
-
}
|
|
439
|
-
return { groups, headAt, at };
|
|
440
|
-
}
|
|
441
|
-
function dedupeByRound(rows) {
|
|
442
|
-
const seen = /* @__PURE__ */ new Set();
|
|
443
|
-
const anchors = [];
|
|
444
|
-
for (const row of rows) {
|
|
445
|
-
if (seen.has(row.round)) continue;
|
|
446
|
-
seen.add(row.round);
|
|
447
|
-
anchors.push(row);
|
|
448
|
-
}
|
|
449
|
-
return anchors;
|
|
450
|
-
}
|
|
451
|
-
function pickCurrentRound(probe) {
|
|
452
|
-
if (probe.atBottom && probe.lastRound >= 0) return probe.lastRound;
|
|
453
|
-
if (probe.hitRound !== null) return probe.hitRound;
|
|
454
|
-
if (probe.anchors.length === 0) return -1;
|
|
455
|
-
let current = -1;
|
|
456
|
-
for (const anchor of probe.anchors) {
|
|
457
|
-
if (anchor.top <= probe.probeTop) current = anchor.round;
|
|
458
|
-
else break;
|
|
459
|
-
}
|
|
460
|
-
return current === -1 ? probe.anchors[0]?.round ?? -1 : current;
|
|
461
|
-
}
|
|
462
|
-
const PROBE_INSET = 8;
|
|
463
|
-
const AT_BOTTOM_EPS = 32;
|
|
464
|
-
const RAIL_MIN_WIDTH = 900;
|
|
465
|
-
const TICK_STEP = 10;
|
|
466
|
-
const FADE_PX = 24;
|
|
467
|
-
const REVEAL_TRIES = 40;
|
|
468
|
-
function measureCurrent(scroller, rounds) {
|
|
469
|
-
const box = scroller.getBoundingClientRect();
|
|
470
|
-
const { scrollTop } = scroller;
|
|
471
|
-
const maxScroll = scroller.scrollHeight - scroller.clientHeight;
|
|
472
|
-
const rows = [];
|
|
473
|
-
for (const row of scroller.querySelectorAll("[data-round]")) {
|
|
474
|
-
const value = Number(row.getAttribute("data-round"));
|
|
475
|
-
if (!Number.isInteger(value) || value < 0) continue;
|
|
476
|
-
if (row.getClientRects().length === 0) continue;
|
|
477
|
-
rows.push({ round: value, top: row.getBoundingClientRect().top - box.top + scrollTop });
|
|
478
|
-
}
|
|
479
|
-
const probeY = box.top + PROBE_INSET;
|
|
480
|
-
const probeX = box.left + scroller.clientWidth / 2;
|
|
481
|
-
const hit = document.elementFromPoint(probeX, probeY);
|
|
482
|
-
let hitRound = null;
|
|
483
|
-
if (hit !== null && scroller.contains(hit)) {
|
|
484
|
-
const row = hit.closest("[data-round]");
|
|
485
|
-
const value = row === null ? Number.NaN : Number(row.getAttribute("data-round"));
|
|
486
|
-
if (Number.isInteger(value) && value >= 0) hitRound = value;
|
|
487
|
-
}
|
|
488
|
-
return pickCurrentRound({
|
|
489
|
-
atBottom: maxScroll > 0 && maxScroll - scrollTop <= AT_BOTTOM_EPS,
|
|
490
|
-
lastRound: rounds.at(-1)?.round ?? -1,
|
|
491
|
-
hitRound,
|
|
492
|
-
anchors: dedupeByRound(rows),
|
|
493
|
-
probeTop: scrollTop + PROBE_INSET
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
function flatten(text, limit) {
|
|
497
|
-
const flat = text.replace(/\s+/g, " ").trim();
|
|
498
|
-
return flat.length > limit ? `${flat.slice(0, limit)}…` : flat;
|
|
499
|
-
}
|
|
500
|
-
const PREVIEW_LIMITS = { prompt: 50, response: 120 };
|
|
501
|
-
function previewText(text, kind) {
|
|
502
|
-
return flatten(text, PREVIEW_LIMITS[kind]);
|
|
503
|
-
}
|
|
504
|
-
function JumpRail(props) {
|
|
505
|
-
const wrapRef = react.useRef(null);
|
|
506
|
-
const scrollerRef = react.useRef(null);
|
|
507
|
-
const scrollRef = react.useRef(null);
|
|
508
|
-
const [host, setHost] = react.useState(null);
|
|
509
|
-
const [current, setCurrent] = react.useState(-1);
|
|
510
|
-
const [wide, setWide] = react.useState(true);
|
|
511
|
-
const [edges, setEdges] = react.useState({ up: false, down: false });
|
|
512
|
-
const [preview, setPreview] = react.useState(null);
|
|
513
|
-
const [previewCenter, setPreviewCenter] = react.useState(0);
|
|
514
|
-
const [busy, setBusy] = react.useState(null);
|
|
515
|
-
const pointerInside = react.useRef(false);
|
|
516
|
-
react.useEffect(() => {
|
|
517
|
-
const wrap = wrapRef.current?.closest(".chat-wrap");
|
|
518
|
-
if (!(wrap instanceof HTMLElement)) return;
|
|
519
|
-
const scroller = wrap.querySelector(".chat");
|
|
520
|
-
setHost(wrap);
|
|
521
|
-
scrollerRef.current = scroller instanceof HTMLElement ? scroller : null;
|
|
522
|
-
}, []);
|
|
523
|
-
react.useEffect(() => {
|
|
524
|
-
const scroller = scrollerRef.current;
|
|
525
|
-
if (host === null || scroller === null) return void 0;
|
|
526
|
-
let raf = 0;
|
|
527
|
-
const measure = () => {
|
|
528
|
-
raf = 0;
|
|
529
|
-
setCurrent(measureCurrent(scroller, props.rounds));
|
|
530
|
-
};
|
|
531
|
-
const schedule = () => {
|
|
532
|
-
if (raf === 0) raf = requestAnimationFrame(measure);
|
|
533
|
-
};
|
|
534
|
-
schedule();
|
|
535
|
-
scroller.addEventListener("scroll", schedule, { passive: true });
|
|
536
|
-
const observer = new ResizeObserver(schedule);
|
|
537
|
-
observer.observe(scroller);
|
|
538
|
-
const inner = scroller.firstElementChild;
|
|
539
|
-
if (inner !== null) observer.observe(inner);
|
|
540
|
-
return () => {
|
|
541
|
-
scroller.removeEventListener("scroll", schedule);
|
|
542
|
-
observer.disconnect();
|
|
543
|
-
if (raf !== 0) cancelAnimationFrame(raf);
|
|
544
|
-
};
|
|
545
|
-
}, [host, props.rounds.length, props.renderedFrom]);
|
|
546
|
-
react.useEffect(() => {
|
|
547
|
-
if (host === null) return void 0;
|
|
548
|
-
const measure = () => setWide(host.clientWidth >= RAIL_MIN_WIDTH);
|
|
549
|
-
measure();
|
|
550
|
-
const observer = new ResizeObserver(measure);
|
|
551
|
-
observer.observe(host);
|
|
552
|
-
return () => observer.disconnect();
|
|
553
|
-
}, [host]);
|
|
554
|
-
const syncEdges = react.useCallback(() => {
|
|
555
|
-
const scroll = scrollRef.current;
|
|
556
|
-
if (scroll === null) return;
|
|
557
|
-
const limit = scroll.scrollHeight - scroll.clientHeight;
|
|
558
|
-
const up = scroll.scrollTop > 1;
|
|
559
|
-
const down = limit > 0 && scroll.scrollTop < limit - 1;
|
|
560
|
-
setEdges((prev) => prev.up === up && prev.down === down ? prev : { up, down });
|
|
561
|
-
}, []);
|
|
562
|
-
react.useEffect(syncEdges, [syncEdges, props.rounds.length]);
|
|
563
|
-
react.useEffect(() => {
|
|
564
|
-
if (preview === null) return;
|
|
565
|
-
const scroll = scrollRef.current;
|
|
566
|
-
const tick = scroll?.querySelector(`[data-turn="${String(preview)}"]`);
|
|
567
|
-
if (scroll === null || tick === null || tick === void 0) return;
|
|
568
|
-
setPreviewCenter(tick.offsetTop + TICK_STEP / 2 - scroll.scrollTop);
|
|
569
|
-
}, [preview]);
|
|
570
|
-
react.useEffect(() => {
|
|
571
|
-
if (current < 0 || pointerInside.current) return;
|
|
572
|
-
const scroll = scrollRef.current;
|
|
573
|
-
const tick = scroll?.querySelector(`[data-turn="${String(current)}"]`);
|
|
574
|
-
if (scroll === null || tick === null || tick === void 0) return;
|
|
575
|
-
const height = scroll.clientHeight;
|
|
576
|
-
const limit = scroll.scrollHeight - height;
|
|
577
|
-
if (limit <= 0) return;
|
|
578
|
-
const center = tick.offsetTop + TICK_STEP / 2;
|
|
579
|
-
if (center >= scroll.scrollTop + FADE_PX && center <= scroll.scrollTop + height - FADE_PX) return;
|
|
580
|
-
const target = Math.max(0, Math.min(limit, center - height / 2));
|
|
581
|
-
scroll.scrollTo({ top: target, behavior: "smooth" });
|
|
582
|
-
}, [current]);
|
|
583
|
-
const jump = react.useCallback(
|
|
584
|
-
(round) => {
|
|
585
|
-
const scroller = scrollerRef.current;
|
|
586
|
-
if (scroller === null) return;
|
|
587
|
-
const find = () => scroller.querySelector(`[data-round="${String(round)}"] .entry-user`) ?? scroller.querySelector(`[data-round="${String(round)}"]`);
|
|
588
|
-
void (async () => {
|
|
589
|
-
let node = find();
|
|
590
|
-
if (node === null && round < props.renderedFrom) {
|
|
591
|
-
setBusy(round);
|
|
592
|
-
props.onReveal(round);
|
|
593
|
-
for (let i = 0; i < REVEAL_TRIES && node === null; i += 1) {
|
|
594
|
-
await new Promise((resolve) => requestAnimationFrame(resolve));
|
|
595
|
-
node = find();
|
|
596
|
-
}
|
|
597
|
-
setBusy(null);
|
|
598
|
-
}
|
|
599
|
-
node?.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
600
|
-
})();
|
|
601
|
-
},
|
|
602
|
-
[props]
|
|
603
|
-
);
|
|
604
|
-
const previewRound = preview === null ? void 0 : props.rounds.find((item) => item.round === preview);
|
|
605
|
-
const visible = host !== null && wide && props.rounds.length >= 2;
|
|
606
|
-
const rail = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
607
|
-
"div",
|
|
608
|
-
{
|
|
609
|
-
className: "jump-rail",
|
|
610
|
-
role: "navigation",
|
|
611
|
-
"aria-label": "回合刻度条",
|
|
612
|
-
hidden: !visible,
|
|
613
|
-
onPointerEnter: () => {
|
|
614
|
-
pointerInside.current = true;
|
|
615
|
-
},
|
|
616
|
-
onPointerLeave: () => {
|
|
617
|
-
pointerInside.current = false;
|
|
618
|
-
setPreview(null);
|
|
619
|
-
},
|
|
620
|
-
children: [
|
|
621
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
622
|
-
"div",
|
|
623
|
-
{
|
|
624
|
-
ref: scrollRef,
|
|
625
|
-
className: "jump-rail-scroll",
|
|
626
|
-
"data-fade-up": edges.up ? "" : void 0,
|
|
627
|
-
"data-fade-down": edges.down ? "" : void 0,
|
|
628
|
-
onScroll: syncEdges,
|
|
629
|
-
children: props.rounds.map((item) => {
|
|
630
|
-
const active = item.round === current;
|
|
631
|
-
const unloaded = item.round < props.renderedFrom;
|
|
632
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
633
|
-
"button",
|
|
634
|
-
{
|
|
635
|
-
type: "button",
|
|
636
|
-
className: `jump-tick${active ? " on" : ""}${unloaded ? " is-unloaded" : ""}${busy === item.round ? " is-busy" : ""}`,
|
|
637
|
-
"data-turn": item.round,
|
|
638
|
-
"aria-label": `第 ${String(item.round + 1)} 轮${unloaded ? "(还没画出来,点了先放出来)" : ""}:${item.prompt}`,
|
|
639
|
-
"aria-current": active ? "true" : void 0,
|
|
640
|
-
"aria-busy": busy === item.round ? "true" : void 0,
|
|
641
|
-
onPointerEnter: () => setPreview(item.round),
|
|
642
|
-
onFocus: () => {
|
|
643
|
-
setPreview(item.round);
|
|
644
|
-
},
|
|
645
|
-
onBlur: () => setPreview(null),
|
|
646
|
-
onClick: () => {
|
|
647
|
-
jump(item.round);
|
|
648
|
-
}
|
|
649
|
-
},
|
|
650
|
-
item.round
|
|
651
|
-
);
|
|
652
|
-
})
|
|
653
|
-
}
|
|
654
|
-
),
|
|
655
|
-
previewRound === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
656
|
-
"div",
|
|
657
|
-
{
|
|
658
|
-
className: "jump-preview",
|
|
659
|
-
role: "tooltip",
|
|
660
|
-
style: { "--jump-preview-center": `${String(previewCenter)}px` },
|
|
661
|
-
children: [
|
|
662
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "jump-preview-prompt", children: previewRound.prompt === "" ? `第 ${String(previewRound.round + 1)} 轮` : previewRound.prompt }),
|
|
663
|
-
previewRound.response === "" ? null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "jump-preview-response", children: previewRound.response })
|
|
664
|
-
]
|
|
665
|
-
}
|
|
666
|
-
)
|
|
667
|
-
]
|
|
668
|
-
}
|
|
669
|
-
);
|
|
670
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
671
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: wrapRef, hidden: true }),
|
|
672
|
-
host === null ? null : reactDom.createPortal(rail, host)
|
|
673
|
-
] });
|
|
674
|
-
}
|
|
675
|
-
const PAGE_MIN_ENTRIES = 50;
|
|
676
|
-
const PAGE_MIN_ROUNDS = 2;
|
|
677
|
-
const PAGE_MAX_ENTRIES = 500;
|
|
678
|
-
function pageStartRound(roundSizes, beforeRound) {
|
|
679
|
-
let start = beforeRound;
|
|
680
|
-
let entries = 0;
|
|
681
|
-
let rounds = 0;
|
|
682
|
-
for (let index = beforeRound - 1; index >= 0; index -= 1) {
|
|
683
|
-
const size = roundSizes[index] ?? 0;
|
|
684
|
-
if (entries > 0 && entries + size > PAGE_MAX_ENTRIES) break;
|
|
685
|
-
start = index;
|
|
686
|
-
entries += size;
|
|
687
|
-
rounds += 1;
|
|
688
|
-
if (entries >= PAGE_MAX_ENTRIES) break;
|
|
689
|
-
if (entries >= PAGE_MIN_ENTRIES && rounds >= PAGE_MIN_ROUNDS) break;
|
|
690
|
-
}
|
|
691
|
-
return start;
|
|
692
|
-
}
|
|
693
|
-
function useFoldState(storeKey, fallback) {
|
|
694
|
-
const [open, setOpen] = react.useState(() => foldStateOf(storeKey, fallback).open);
|
|
695
|
-
react.useEffect(() => {
|
|
696
|
-
setOpen((current) => followFallback(current, storeKey, fallback));
|
|
697
|
-
}, [storeKey, fallback]);
|
|
698
|
-
const set = react.useCallback(
|
|
699
|
-
(next) => {
|
|
700
|
-
writeFold(storeKey, next);
|
|
701
|
-
setOpen(next);
|
|
702
|
-
},
|
|
703
|
-
[storeKey]
|
|
704
|
-
);
|
|
705
|
-
return [open, set];
|
|
706
|
-
}
|
|
707
|
-
const RESULT_TAIL_LINES = 0;
|
|
708
|
-
const PREVIEW_LINE_MAX_CHARS = 300;
|
|
709
|
-
function resultTail(text, limit = RESULT_TAIL_LINES) {
|
|
710
|
-
if (text === void 0 || text.trim() === "") return null;
|
|
711
|
-
const all = text.replace(/\r\n?/g, "\n").split("\n");
|
|
712
|
-
let end = all.length;
|
|
713
|
-
while (end > 0 && (all[end - 1] ?? "").trim() === "") end -= 1;
|
|
714
|
-
const kept = [];
|
|
715
|
-
for (let index = 0; index < end; index += 1) {
|
|
716
|
-
const line = (all[index] ?? "").replace(/[ \t]+$/, "");
|
|
717
|
-
if (line.trim() === "") continue;
|
|
718
|
-
kept.push(clipLine(line));
|
|
719
|
-
}
|
|
720
|
-
if (kept.length === 0) return null;
|
|
721
|
-
const cap = Math.max(0, limit);
|
|
722
|
-
const lines = cap === 0 ? [] : kept.slice(-cap);
|
|
723
|
-
return { lines, hidden: kept.length - lines.length };
|
|
724
|
-
}
|
|
725
|
-
function clipLine(line) {
|
|
726
|
-
if (line.length <= PREVIEW_LINE_MAX_CHARS) return line;
|
|
727
|
-
return `${Array.from(line).slice(0, PREVIEW_LINE_MAX_CHARS - 1).join("")}…`;
|
|
728
|
-
}
|
|
729
|
-
const MAX_DIFF_LINES = 800;
|
|
730
|
-
function parseIntended(name, argsText) {
|
|
731
|
-
if (name !== "write" && name !== "edit") return null;
|
|
732
|
-
let parsed;
|
|
733
|
-
try {
|
|
734
|
-
parsed = JSON.parse(argsText);
|
|
735
|
-
} catch {
|
|
736
|
-
return null;
|
|
737
|
-
}
|
|
738
|
-
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) return null;
|
|
739
|
-
const args = parsed;
|
|
740
|
-
const path = typeof args.path === "string" ? args.path : "";
|
|
741
|
-
if (path === "") return null;
|
|
742
|
-
if (name === "write") {
|
|
743
|
-
return typeof args.content === "string" ? { path, content: args.content } : null;
|
|
744
|
-
}
|
|
745
|
-
if (typeof args.old !== "string" || typeof args.new !== "string") return null;
|
|
746
|
-
return { path, content: args.new, old: args.old };
|
|
747
|
-
}
|
|
748
|
-
function toAbsPath(path, cwd) {
|
|
749
|
-
if (/^[A-Za-z]:[\\/]/.test(path) || path.startsWith("\\\\") || path.startsWith("/")) return path;
|
|
750
|
-
if (cwd === "") return path;
|
|
751
|
-
const sep = cwd.includes("\\") ? "\\" : "/";
|
|
752
|
-
return `${cwd.replace(/[\\/]+$/, "")}${sep}${path}`;
|
|
753
|
-
}
|
|
754
|
-
function diffToView(path, before, after) {
|
|
755
|
-
const result = ui$1.diffLines(before, after, 3);
|
|
756
|
-
if (!result.ok || result.hunks.length === 0) return null;
|
|
757
|
-
const hunks = [];
|
|
758
|
-
let budget = MAX_DIFF_LINES;
|
|
759
|
-
for (const hunk of result.hunks) {
|
|
760
|
-
if (budget <= 0) break;
|
|
761
|
-
const lines = hunk.lines.length <= budget ? hunk.lines : hunk.lines.slice(0, budget);
|
|
762
|
-
hunks.push(lines.length === hunk.lines.length ? hunk : { ...hunk, lines });
|
|
763
|
-
budget -= lines.length;
|
|
764
|
-
}
|
|
765
|
-
return {
|
|
766
|
-
path,
|
|
767
|
-
added: result.added,
|
|
768
|
-
removed: result.removed,
|
|
769
|
-
hunks,
|
|
770
|
-
...hunks.length < result.hunks.length ? { truncated: true } : {},
|
|
771
|
-
status: before === "" ? "added" : "modified"
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
function useIntendedDiff(call, workdir, enabled = true) {
|
|
775
|
-
const channel = ui$1.useHostChannel();
|
|
776
|
-
const input = react.useMemo(() => parseIntended(call.name, call.argsText), [call.name, call.argsText]);
|
|
777
|
-
const [state, setState] = react.useState(null);
|
|
778
|
-
const absPath = input === null ? null : toAbsPath(input.path, workdir);
|
|
779
|
-
react.useEffect(() => {
|
|
780
|
-
if (!enabled || input === null || absPath === null || call.status !== "running") {
|
|
781
|
-
setState(null);
|
|
782
|
-
return;
|
|
783
|
-
}
|
|
784
|
-
let on = true;
|
|
785
|
-
setState(null);
|
|
786
|
-
const apply = (before) => {
|
|
787
|
-
if (before !== null && input.old !== void 0) {
|
|
788
|
-
const at = before.indexOf(input.old);
|
|
789
|
-
if (at < 0) {
|
|
790
|
-
setState({ absPath, file: diffToView(absPath, input.old, input.content), fellBack: false, mismatch: "missing" });
|
|
791
|
-
return;
|
|
792
|
-
}
|
|
793
|
-
if (before.indexOf(input.old, at + 1) >= 0) {
|
|
794
|
-
setState({ absPath, file: diffToView(absPath, input.old, input.content), fellBack: false, mismatch: "ambiguous" });
|
|
795
|
-
return;
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
const fellBack = before === null;
|
|
799
|
-
let after;
|
|
800
|
-
let effectiveBefore;
|
|
801
|
-
if (input.old === void 0) {
|
|
802
|
-
effectiveBefore = before ?? "";
|
|
803
|
-
after = input.content;
|
|
804
|
-
} else if (before !== null) {
|
|
805
|
-
const at = before.indexOf(input.old);
|
|
806
|
-
effectiveBefore = before;
|
|
807
|
-
after = before.slice(0, at) + input.content + before.slice(at + input.old.length);
|
|
808
|
-
} else {
|
|
809
|
-
effectiveBefore = input.old;
|
|
810
|
-
after = input.content;
|
|
811
|
-
}
|
|
812
|
-
setState({ absPath, file: diffToView(absPath, effectiveBefore, after), fellBack });
|
|
813
|
-
};
|
|
814
|
-
void channel.invoke("dock", ["fs-read", { file: absPath }]).then((raw) => {
|
|
815
|
-
if (!on) return;
|
|
816
|
-
apply(raw.kind === "text" && typeof raw.text === "string" ? raw.text : null);
|
|
817
|
-
}).catch(() => {
|
|
818
|
-
if (on) apply(null);
|
|
819
|
-
});
|
|
820
|
-
return () => {
|
|
821
|
-
on = false;
|
|
822
|
-
};
|
|
823
|
-
}, [absPath, call.status, enabled, input, channel]);
|
|
824
|
-
return state;
|
|
825
|
-
}
|
|
826
|
-
const TOOLCARD_FACTORY = "transcript.tool-card";
|
|
827
|
-
const TOOLCARD_FOOTER_SLOT = "transcript.toolcard.footer";
|
|
828
|
-
const BAR_MIN_CONTENT_H$1 = 400;
|
|
829
|
-
function expandedContentHeight$1(body) {
|
|
830
|
-
let total = 0;
|
|
831
|
-
for (const child of Array.from(body.children)) {
|
|
832
|
-
if (!(child instanceof HTMLElement)) continue;
|
|
833
|
-
if (child.dataset.tcChrome !== void 0) continue;
|
|
834
|
-
total += Math.max(child.scrollHeight, child.offsetHeight);
|
|
835
|
-
}
|
|
836
|
-
return total;
|
|
837
|
-
}
|
|
838
|
-
function dshPatchOf(presentation) {
|
|
839
|
-
const card = presentation?.result;
|
|
840
|
-
if (card === void 0 || card["card"] !== "diff") return null;
|
|
841
|
-
const diffs = card["diffs"];
|
|
842
|
-
if (!Array.isArray(diffs) || diffs.length === 0) return null;
|
|
843
|
-
const first = diffs[0];
|
|
844
|
-
if (typeof first.path !== "string" || typeof first.newText !== "string") return null;
|
|
845
|
-
const before = typeof first.oldText === "string" ? first.oldText : "";
|
|
846
|
-
const diff = ui$1.diffLines(before, first.newText, 3);
|
|
847
|
-
if (!diff.ok || diff.identical) return null;
|
|
848
|
-
return {
|
|
849
|
-
path: first.path,
|
|
850
|
-
added: diff.added,
|
|
851
|
-
removed: diff.removed,
|
|
852
|
-
hunks: diff.hunks,
|
|
853
|
-
status: first.oldText === null ? "added" : "modified"
|
|
854
|
-
};
|
|
855
|
-
}
|
|
856
|
-
function registerToolCard(ui2) {
|
|
857
|
-
ui2.slots.registerFactory(
|
|
858
|
-
{
|
|
859
|
-
name: TOOLCARD_FACTORY,
|
|
860
|
-
children: { [TOOLCARD_FOOTER_SLOT]: "list" },
|
|
861
|
-
slots: { preview: {}, statusDetail: {}, bodyExtra: {}, trailing: {} }
|
|
862
|
-
},
|
|
863
|
-
ToolCard
|
|
864
|
-
);
|
|
865
|
-
}
|
|
866
|
-
function ToolCard(props) {
|
|
867
|
-
const { entry, storeKey, persistKey, match: electedMatch, foldPrefs, cwd = "" } = props;
|
|
868
|
-
const variant = props.variant ?? "chat";
|
|
869
|
-
const call = entry.call;
|
|
870
|
-
const [open, setOpenPersisted] = useFoldState(persistKey, foldPrefs?.toolOpen ?? false);
|
|
871
|
-
const [barVisible, setBarVisible] = react.useState(false);
|
|
872
|
-
const expandable = call.status !== "preparing";
|
|
873
|
-
const bodyOpen = open && expandable;
|
|
874
|
-
const running = call.status === "running";
|
|
875
|
-
const summary = uiPrimitives.toolSummary(call.name, call.argsText);
|
|
876
|
-
const match = electedMatch ?? uiPrimitives.matchTool(call.name);
|
|
877
|
-
const Icon = match.Icon;
|
|
878
|
-
const targetPath = fileTargetOf(call.name, call.argsText, cwd);
|
|
879
|
-
const intended = useIntendedDiff(call, cwd, variant === "chat");
|
|
880
|
-
const bodyRef = react.useRef(null);
|
|
881
|
-
const barRef = react.useRef(null);
|
|
882
|
-
const Preview = props.useFactorySlot("preview", SummaryPreview);
|
|
883
|
-
const StatusDetail = props.useFactorySlot("statusDetail", ChatStatus);
|
|
884
|
-
const BodyExtra = props.useFactorySlot("bodyExtra", IntendedBody);
|
|
885
|
-
const Trailing = props.useFactorySlot("trailing", NoTrailing);
|
|
886
|
-
const dshPatch = dshPatchOf(call.presentation);
|
|
887
|
-
const patch = intended?.file ?? call.change ?? dshPatch;
|
|
888
|
-
const argView = uiPrimitives.toolArgFields(call.name, call.argsText);
|
|
889
|
-
const paramsAsFields = patch !== null && argView.mutating;
|
|
890
|
-
const tail = react.useMemo(
|
|
891
|
-
() => bodyOpen || variant !== "chat" || running ? null : resultTail(call.resultText),
|
|
892
|
-
[bodyOpen, variant, running, call.resultText]
|
|
893
|
-
);
|
|
894
|
-
const toggle = () => {
|
|
895
|
-
if (expandable) setOpenPersisted(!open);
|
|
896
|
-
};
|
|
897
|
-
react.useEffect(() => {
|
|
898
|
-
const body = bodyRef.current;
|
|
899
|
-
if (body === null || !bodyOpen || variant !== "chat") {
|
|
900
|
-
setBarVisible(false);
|
|
901
|
-
return void 0;
|
|
902
|
-
}
|
|
903
|
-
const measure = () => {
|
|
904
|
-
setBarVisible(expandedContentHeight$1(body) > BAR_MIN_CONTENT_H$1);
|
|
905
|
-
};
|
|
906
|
-
measure();
|
|
907
|
-
const observer = new ResizeObserver(measure);
|
|
908
|
-
observer.observe(body);
|
|
909
|
-
return () => {
|
|
910
|
-
observer.disconnect();
|
|
911
|
-
};
|
|
912
|
-
}, [bodyOpen, variant, call.argsText, call.resultText, call.status]);
|
|
913
|
-
react.useEffect(() => {
|
|
914
|
-
if (!bodyOpen || !barVisible || variant !== "chat") return void 0;
|
|
915
|
-
const bar = barRef.current;
|
|
916
|
-
const body = bodyRef.current;
|
|
917
|
-
if (bar === null || body === null) return void 0;
|
|
918
|
-
const chat = body.closest(".chat");
|
|
919
|
-
if (!(chat instanceof HTMLElement)) return void 0;
|
|
920
|
-
const padTop = Number.parseFloat(getComputedStyle(chat).paddingTop);
|
|
921
|
-
const threshold = (Number.isFinite(padTop) ? padTop : 12) + 1.5;
|
|
922
|
-
const sync = () => {
|
|
923
|
-
const gap = bar.getBoundingClientRect().top - chat.getBoundingClientRect().top;
|
|
924
|
-
bar.classList.toggle("stuck", gap <= threshold);
|
|
925
|
-
};
|
|
926
|
-
sync();
|
|
927
|
-
chat.addEventListener("scroll", sync, { passive: true });
|
|
928
|
-
return () => {
|
|
929
|
-
chat.removeEventListener("scroll", sync);
|
|
930
|
-
};
|
|
931
|
-
}, [bodyOpen, barVisible, variant, call.argsText, call.resultText, call.status]);
|
|
932
|
-
const duration = uiPrimitives.formatDuration(call.durationMs ?? null);
|
|
933
|
-
const barStatus = running || duration === null ? uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status : `${uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status} · 用时 ${duration}`;
|
|
934
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `entry tool-card status-${call.status}${bodyOpen ? " open" : ""}`, children: [
|
|
935
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
936
|
-
"div",
|
|
937
|
-
{
|
|
938
|
-
className: "tool-head",
|
|
939
|
-
"data-tip": expandable ? bodyOpen ? "收起参数与结果" : "展开参数与结果" : "正在准备参数",
|
|
940
|
-
children: [
|
|
941
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
942
|
-
"span",
|
|
943
|
-
{
|
|
944
|
-
className: `tool-click${expandable ? "" : " inert"}`,
|
|
945
|
-
role: expandable ? "button" : void 0,
|
|
946
|
-
tabIndex: expandable ? 0 : -1,
|
|
947
|
-
...expandable ? { "aria-expanded": bodyOpen } : {},
|
|
948
|
-
onClick: expandable ? toggle : void 0,
|
|
949
|
-
onKeyDown: (event) => {
|
|
950
|
-
if (event.key !== "Enter" && event.key !== " ") return;
|
|
951
|
-
event.preventDefault();
|
|
952
|
-
toggle();
|
|
953
|
-
},
|
|
954
|
-
children: [
|
|
955
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "tool-leading", "aria-hidden": "true", children: [
|
|
956
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "tool-dot" }),
|
|
957
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 12, className: "tool-icon" })
|
|
958
|
-
] }),
|
|
959
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "verb", children: uiPrimitives.toolVerb(match.base, call.status) }),
|
|
960
|
-
match.known || call.name === "" ? null : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: `· ${call.name}` }),
|
|
961
|
-
/* @__PURE__ */ jsxRuntime.jsx(Preview, { intended, summary, cwd, targetPath, change: call.change ?? null })
|
|
962
|
-
]
|
|
963
|
-
}
|
|
964
|
-
),
|
|
965
|
-
tail !== null && tail.hidden > 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-more", title: `结果还有 ${String(tail.hidden)} 行,点开看全部`, children: `+${String(tail.hidden)} 行` }) : null,
|
|
966
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatusDetail, { call }),
|
|
967
|
-
/* @__PURE__ */ jsxRuntime.jsx(Trailing, { entry }),
|
|
968
|
-
expandable ? /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 11, className: "tc-chevron" }) : null
|
|
969
|
-
]
|
|
970
|
-
}
|
|
971
|
-
),
|
|
972
|
-
bodyOpen ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tool-body", ref: bodyRef, children: [
|
|
973
|
-
barVisible && variant === "chat" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-bar", "data-tc-chrome": "1", ref: barRef, children: [
|
|
974
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-bar-status", children: barStatus }),
|
|
975
|
-
running ? null : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
976
|
-
"button",
|
|
977
|
-
{
|
|
978
|
-
type: "button",
|
|
979
|
-
className: "tc-collapse",
|
|
980
|
-
title: "收起这张工具卡",
|
|
981
|
-
onClick: () => {
|
|
982
|
-
setOpenPersisted(false);
|
|
983
|
-
},
|
|
984
|
-
children: [
|
|
985
|
-
"收起",
|
|
986
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronUp, { size: 11 })
|
|
987
|
-
]
|
|
988
|
-
}
|
|
989
|
-
)
|
|
990
|
-
] }) : null,
|
|
991
|
-
/* @__PURE__ */ jsxRuntime.jsx(BodyExtra, { intended, change: call.change ?? dshPatch }),
|
|
992
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "label", children: "参数" }),
|
|
993
|
-
paramsAsFields ? (
|
|
994
|
-
/* 会改文件的工具:正文已经在上面那块 diff 里,这里只列剩下的字段。
|
|
995
|
-
dsh 对 write / edit 干脆一个参数字段都不印,壳多留一栏是因为
|
|
996
|
-
dsc 的 write / edit 还带 justification / sandbox_permissions 这类
|
|
997
|
-
「这次为什么这么写」的元信息,扔掉可惜;形状仍是一行一字段,不是 JSON。 */
|
|
998
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "args arg-fields", "data-tc-argfields": "", children: argView.fields.map((field) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "arg-field", children: [
|
|
999
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "arg-key", children: field.key }),
|
|
1000
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "arg-value", children: field.value })
|
|
1001
|
-
] }, field.key)) })
|
|
1002
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "args", children: uiPrimitives.prettyJson(call.argsText) }),
|
|
1003
|
-
call.resultText === void 0 || call.resultText === "" ? null : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1004
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "label", children: "结果" }),
|
|
1005
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "result", children: call.resultText })
|
|
1006
|
-
] }),
|
|
1007
|
-
props.renderSlot(TOOLCARD_FOOTER_SLOT, { entry })
|
|
1008
|
-
] }) : null
|
|
1009
|
-
] });
|
|
1010
|
-
}
|
|
1011
|
-
function SummaryPreview(props) {
|
|
1012
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "preview", children: props.summary });
|
|
1013
|
-
}
|
|
1014
|
-
function ChatStatus(props) {
|
|
1015
|
-
const call = props.call;
|
|
1016
|
-
const duration = uiPrimitives.formatDuration(call.durationMs ?? null);
|
|
1017
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "status", children: [
|
|
1018
|
-
call.status === "running" ? /* @__PURE__ */ jsxRuntime.jsx("i", { className: "tc-spin", "aria-hidden": "true" }) : null,
|
|
1019
|
-
call.status === "done" ? "" : uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status,
|
|
1020
|
-
duration === null || call.status === "done" ? "" : ` · 用时 ${duration}`
|
|
1021
|
-
] });
|
|
1022
|
-
}
|
|
1023
|
-
function NoTrailing() {
|
|
1024
|
-
return null;
|
|
1025
|
-
}
|
|
1026
|
-
function fileTargetOf(name, argsText, cwd) {
|
|
1027
|
-
if (name !== "read" && name !== "write" && name !== "edit") return null;
|
|
1028
|
-
try {
|
|
1029
|
-
const args = JSON.parse(argsText);
|
|
1030
|
-
const raw = [args.file_path, args.path].find(
|
|
1031
|
-
(value) => typeof value === "string" && value !== ""
|
|
1032
|
-
);
|
|
1033
|
-
if (raw === void 0) return null;
|
|
1034
|
-
if (raw.startsWith("/") || /^[A-Za-z]:[\\/]/.test(raw)) return raw;
|
|
1035
|
-
if (cwd === "") return raw;
|
|
1036
|
-
const sep = cwd.includes("\\") && !cwd.includes("/") ? "\\" : "/";
|
|
1037
|
-
return `${cwd.replace(/[\\/]+$/, "")}${sep}${raw.replace(/^[\\/]+/, "")}`;
|
|
1038
|
-
} catch {
|
|
1039
|
-
return null;
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
function OpenPathButton({
|
|
1043
|
-
absPath,
|
|
1044
|
-
cwd,
|
|
1045
|
-
patch = null
|
|
1046
|
-
}) {
|
|
1047
|
-
const opensPatch = patch !== null;
|
|
1048
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1049
|
-
"button",
|
|
1050
|
-
{
|
|
1051
|
-
type: "button",
|
|
1052
|
-
className: "tc-path tc-path-btn",
|
|
1053
|
-
"data-tc-open": absPath,
|
|
1054
|
-
"data-tc-source": opensPatch ? "patch" : "file",
|
|
1055
|
-
title: opensPatch ? `${absPath}(在右侧边栏看这次改动)` : `${absPath}(在右侧边栏预览)`,
|
|
1056
|
-
onClick: (event) => {
|
|
1057
|
-
event.stopPropagation();
|
|
1058
|
-
ui$1.setDockPreview(opensPatch ? { path: absPath, cwd, patch } : { path: absPath, cwd });
|
|
1059
|
-
},
|
|
1060
|
-
onKeyDown: (event) => {
|
|
1061
|
-
event.stopPropagation();
|
|
1062
|
-
},
|
|
1063
|
-
children: uiPrimitives.displayPathOf(absPath, cwd)
|
|
1064
|
-
}
|
|
1065
|
-
);
|
|
1066
|
-
}
|
|
1067
|
-
function IntendedPreview(props) {
|
|
1068
|
-
const { intended, summary, cwd, targetPath, change } = props;
|
|
1069
|
-
const patch = intended?.file ?? change ?? null;
|
|
1070
|
-
const absPath = intended?.absPath ?? change?.path ?? targetPath;
|
|
1071
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "preview", children: absPath !== null ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1072
|
-
/* @__PURE__ */ jsxRuntime.jsx(OpenPathButton, { absPath, cwd, patch }),
|
|
1073
|
-
patch !== null && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-counts", children: [
|
|
1074
|
-
patch.status === "added" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "diff-badge", children: "新增" }),
|
|
1075
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-added", children: `+${String(patch.added)}` }),
|
|
1076
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-removed", children: `-${String(patch.removed)}` })
|
|
1077
|
-
] }),
|
|
1078
|
-
intended?.mismatch === "missing" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 不在当前文件里" }),
|
|
1079
|
-
intended?.mismatch === "ambiguous" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 匹配多处" })
|
|
1080
|
-
] }) : summary });
|
|
1081
|
-
}
|
|
1082
|
-
function IntendedBody(props) {
|
|
1083
|
-
const intended = props.intended;
|
|
1084
|
-
const change = props.change;
|
|
1085
|
-
if (intended !== null) {
|
|
1086
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended", children: [
|
|
1087
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended-head", children: [
|
|
1088
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-intended-title", children: "将做的改动" }),
|
|
1089
|
-
intended.fellBack && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "读不到文件当前内容,以下按参数推算" }),
|
|
1090
|
-
intended.mismatch === "missing" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 在文件中不存在,执行会失败" }),
|
|
1091
|
-
intended.mismatch === "ambiguous" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 匹配多处,执行会失败" })
|
|
1092
|
-
] }),
|
|
1093
|
-
intended.file === null ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "tc-intended-note", children: "两段内容一致,不会有实际改动。" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tc-intended-diff", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.DiffRows, { hunks: intended.file.hunks, path: intended.absPath }) })
|
|
1094
|
-
] });
|
|
1095
|
-
}
|
|
1096
|
-
if (change === null) return null;
|
|
1097
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended", "data-tc-change": "", children: [
|
|
1098
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended-head", children: [
|
|
1099
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-intended-title", children: "这次改动" }),
|
|
1100
|
-
change.truncated === true && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "改动较大,这里只显示了前一部分" })
|
|
1101
|
-
] }),
|
|
1102
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "tc-intended-diff", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.DiffRows, { hunks: change.hunks, path: change.path }) })
|
|
1103
|
-
] });
|
|
1104
|
-
}
|
|
1105
|
-
function TraceJumpButton(props) {
|
|
1106
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1107
|
-
"button",
|
|
1108
|
-
{
|
|
1109
|
-
type: "button",
|
|
1110
|
-
className: "tc-trace",
|
|
1111
|
-
"data-trace-jump": String(props.entry.id),
|
|
1112
|
-
"data-tip": "在轨迹页查看这条调用的时刻与耗时",
|
|
1113
|
-
"aria-label": "在轨迹中查看",
|
|
1114
|
-
onClick: (event) => {
|
|
1115
|
-
event.stopPropagation();
|
|
1116
|
-
ui$1.openTrace(props.entry.id);
|
|
1117
|
-
},
|
|
1118
|
-
onKeyDown: (event) => {
|
|
1119
|
-
event.stopPropagation();
|
|
1120
|
-
},
|
|
1121
|
-
children: "在轨迹中查看"
|
|
1122
|
-
}
|
|
1123
|
-
);
|
|
1124
|
-
}
|
|
1125
|
-
const FOLD_PREFS = { policy: processFoldPolicy("standard"), reasoningOpen: false, toolOpen: false };
|
|
1126
|
-
const FoldPrefsContext = react.createContext(FOLD_PREFS);
|
|
1127
|
-
const NO_ACTIONS = { editAndResend: () => void 0, busy: false };
|
|
1128
|
-
const FlowActionsContext = react.createContext(NO_ACTIONS);
|
|
1129
|
-
const ShellCwdContext = react.createContext("");
|
|
1130
|
-
const ShellSessionContext = react.createContext(null);
|
|
1131
|
-
const TOOLVIEW_SLOT = "transcript.toolview";
|
|
1132
|
-
const TURN_INDEPENDENT = /* @__PURE__ */ new Set(["user", "plan", "system", "turn-end", "turn-max-tokens"]);
|
|
1133
|
-
const EMPTY_STEP_GROUPING = { groups: [], headAt: /* @__PURE__ */ new Map(), at: /* @__PURE__ */ new Map() };
|
|
1134
|
-
function keyOf(row, sessionKey) {
|
|
1135
|
-
return `${sessionKey}|${String(row.entry.id)}`;
|
|
1136
|
-
}
|
|
1137
|
-
function buildSeats(entries, live) {
|
|
1138
|
-
const all = [...entries, ...live];
|
|
1139
|
-
const split = splitRounds(all);
|
|
1140
|
-
const rowOf = (at) => ({ entry: all[at], live: at >= entries.length, at });
|
|
1141
|
-
return {
|
|
1142
|
-
leading: split.leading.map(rowOf),
|
|
1143
|
-
rounds: split.seats.map((seat) => ({ round: seat.round, rows: seat.indices.map(rowOf) })),
|
|
1144
|
-
infos: split.rounds
|
|
1145
|
-
};
|
|
1146
|
-
}
|
|
1147
|
-
const FOLLOW_BOTTOM_PX = 24;
|
|
1148
|
-
const FOLLOW_SETTLE_MS = 180;
|
|
1149
|
-
const UP_KEYS = /* @__PURE__ */ new Set(["ArrowUp", "PageUp", "Home"]);
|
|
1150
|
-
function useFollowBottom(dep, sessionKey) {
|
|
1151
|
-
const [end, setEnd] = react.useState(null);
|
|
1152
|
-
const following = react.useRef(true);
|
|
1153
|
-
const written = react.useRef(0);
|
|
1154
|
-
const settleTimer = react.useRef(null);
|
|
1155
|
-
const control = react.useRef(null);
|
|
1156
|
-
const [paused, setPaused] = react.useState(false);
|
|
1157
|
-
const pinnedFor = react.useRef("");
|
|
1158
|
-
react.useEffect(() => {
|
|
1159
|
-
const scroller = end?.closest(".chat");
|
|
1160
|
-
if (!(scroller instanceof HTMLElement)) return void 0;
|
|
1161
|
-
const floor = () => Math.max(0, scroller.scrollHeight - scroller.clientHeight);
|
|
1162
|
-
const pinnedHeight = { current: scroller.scrollHeight };
|
|
1163
|
-
const pin = () => {
|
|
1164
|
-
scroller.scrollTop = scroller.scrollHeight;
|
|
1165
|
-
written.current = scroller.scrollTop;
|
|
1166
|
-
pinnedHeight.current = scroller.scrollHeight;
|
|
1167
|
-
};
|
|
1168
|
-
const clearSettle = () => {
|
|
1169
|
-
if (settleTimer.current !== null) window.clearTimeout(settleTimer.current);
|
|
1170
|
-
settleTimer.current = null;
|
|
1171
|
-
};
|
|
1172
|
-
const settle = () => {
|
|
1173
|
-
clearSettle();
|
|
1174
|
-
if (following.current) {
|
|
1175
|
-
pin();
|
|
1176
|
-
return;
|
|
1177
|
-
}
|
|
1178
|
-
if (floor() - scroller.scrollTop <= FOLLOW_BOTTOM_PX) {
|
|
1179
|
-
following.current = true;
|
|
1180
|
-
setPaused(false);
|
|
1181
|
-
pin();
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1184
|
-
const schedule = () => {
|
|
1185
|
-
clearSettle();
|
|
1186
|
-
settleTimer.current = window.setTimeout(settle, FOLLOW_SETTLE_MS);
|
|
1187
|
-
};
|
|
1188
|
-
const onScroll = () => {
|
|
1189
|
-
const top = scroller.scrollTop;
|
|
1190
|
-
const heightChanged = pinnedHeight.current !== scroller.scrollHeight;
|
|
1191
|
-
if (Math.abs(top - written.current) <= 1) {
|
|
1192
|
-
written.current = top;
|
|
1193
|
-
if (heightChanged) pinnedHeight.current = scroller.scrollHeight;
|
|
1194
|
-
return;
|
|
1195
|
-
}
|
|
1196
|
-
if (heightChanged) {
|
|
1197
|
-
pinnedHeight.current = scroller.scrollHeight;
|
|
1198
|
-
if (floor() - top <= FOLLOW_BOTTOM_PX) {
|
|
1199
|
-
written.current = top;
|
|
1200
|
-
if (!following.current) schedule();
|
|
1201
|
-
return;
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
written.current = top;
|
|
1205
|
-
if (following.current) {
|
|
1206
|
-
following.current = false;
|
|
1207
|
-
setPaused(true);
|
|
1208
|
-
}
|
|
1209
|
-
schedule();
|
|
1210
|
-
};
|
|
1211
|
-
const onGesture = () => {
|
|
1212
|
-
following.current = false;
|
|
1213
|
-
schedule();
|
|
1214
|
-
};
|
|
1215
|
-
const onWheel = (event) => {
|
|
1216
|
-
if (event.ctrlKey || event.deltaY >= 0) return;
|
|
1217
|
-
onGesture();
|
|
1218
|
-
};
|
|
1219
|
-
const onKey = (event) => {
|
|
1220
|
-
if (UP_KEYS.has(event.key)) onGesture();
|
|
1221
|
-
};
|
|
1222
|
-
const onResize = () => {
|
|
1223
|
-
if (!following.current) return;
|
|
1224
|
-
if (floor() - scroller.scrollTop > 4) pin();
|
|
1225
|
-
};
|
|
1226
|
-
control.current = {
|
|
1227
|
-
pin,
|
|
1228
|
-
stop: () => {
|
|
1229
|
-
clearSettle();
|
|
1230
|
-
following.current = false;
|
|
1231
|
-
setPaused(true);
|
|
1232
|
-
}
|
|
1233
|
-
};
|
|
1234
|
-
scroller.addEventListener("scroll", onScroll, { passive: true });
|
|
1235
|
-
scroller.addEventListener("scrollend", settle);
|
|
1236
|
-
scroller.addEventListener("wheel", onWheel, { passive: true });
|
|
1237
|
-
scroller.addEventListener("keydown", onKey);
|
|
1238
|
-
const observer = typeof ResizeObserver === "function" ? new ResizeObserver(onResize) : void 0;
|
|
1239
|
-
observer?.observe(scroller);
|
|
1240
|
-
const content = scroller.firstElementChild;
|
|
1241
|
-
if (content !== null) observer?.observe(content);
|
|
1242
|
-
return () => {
|
|
1243
|
-
clearSettle();
|
|
1244
|
-
control.current = null;
|
|
1245
|
-
scroller.removeEventListener("scroll", onScroll);
|
|
1246
|
-
scroller.removeEventListener("scrollend", settle);
|
|
1247
|
-
scroller.removeEventListener("wheel", onWheel);
|
|
1248
|
-
scroller.removeEventListener("keydown", onKey);
|
|
1249
|
-
observer?.disconnect();
|
|
1250
|
-
};
|
|
1251
|
-
}, [end]);
|
|
1252
|
-
react.useEffect(() => {
|
|
1253
|
-
if (pinnedFor.current !== sessionKey) {
|
|
1254
|
-
pinnedFor.current = sessionKey;
|
|
1255
|
-
following.current = true;
|
|
1256
|
-
setPaused(false);
|
|
1257
|
-
}
|
|
1258
|
-
if (!following.current) return;
|
|
1259
|
-
control.current?.pin();
|
|
1260
|
-
}, [sessionKey, end, dep]);
|
|
1261
|
-
const resume = () => {
|
|
1262
|
-
following.current = true;
|
|
1263
|
-
setPaused(false);
|
|
1264
|
-
control.current?.pin();
|
|
1265
|
-
};
|
|
1266
|
-
const pause = () => {
|
|
1267
|
-
control.current?.stop();
|
|
1268
|
-
};
|
|
1269
|
-
return { setEnd, end, paused, resume, pause };
|
|
1270
|
-
}
|
|
1271
|
-
const ACTIVITY_ICON = {
|
|
1272
|
-
thinking: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconSpark, { size: 12 }),
|
|
1273
|
-
read: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconFolder, { size: 12 }),
|
|
1274
|
-
readImage: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconFolder, { size: 12 }),
|
|
1275
|
-
search: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconSearch, { size: 12 }),
|
|
1276
|
-
write: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconEdit, { size: 12 }),
|
|
1277
|
-
edit: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconEdit, { size: 12 }),
|
|
1278
|
-
commands: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconTerminal, { size: 12 }),
|
|
1279
|
-
code: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconCode, { size: 12 }),
|
|
1280
|
-
webSearch: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconGlobe, { size: 12 }),
|
|
1281
|
-
webFetch: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconGlobe, { size: 12 }),
|
|
1282
|
-
browser: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconGlobe, { size: 12 }),
|
|
1283
|
-
subagents: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconTree, { size: 12 }),
|
|
1284
|
-
plan: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconQueue, { size: 12 }),
|
|
1285
|
-
questions: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconInfo, { size: 12 }),
|
|
1286
|
-
tools: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconBolt, { size: 12 })
|
|
1287
|
-
};
|
|
1288
|
-
function useStableLiveTitle(desired, active) {
|
|
1289
|
-
const [shown, setShown] = react.useState(desired);
|
|
1290
|
-
const shownRef = react.useRef(shown);
|
|
1291
|
-
const wantedRef = react.useRef(desired);
|
|
1292
|
-
const shownAtRef = react.useRef(Date.now());
|
|
1293
|
-
react.useEffect(() => {
|
|
1294
|
-
wantedRef.current = desired;
|
|
1295
|
-
if (!active) return;
|
|
1296
|
-
const commit = (next) => {
|
|
1297
|
-
shownRef.current = next;
|
|
1298
|
-
shownAtRef.current = Date.now();
|
|
1299
|
-
setShown(next);
|
|
1300
|
-
};
|
|
1301
|
-
const decision = liveTitleDecision(shownRef.current, desired, Date.now() - shownAtRef.current);
|
|
1302
|
-
if (!decision.keep) {
|
|
1303
|
-
commit(desired);
|
|
1304
|
-
return;
|
|
1305
|
-
}
|
|
1306
|
-
if (decision.waitMs <= 0) return;
|
|
1307
|
-
const timer = setTimeout(() => {
|
|
1308
|
-
const next = wantedRef.current;
|
|
1309
|
-
if (sameLiveTitle(shownRef.current, next)) return;
|
|
1310
|
-
commit(next);
|
|
1311
|
-
}, decision.waitMs);
|
|
1312
|
-
return () => {
|
|
1313
|
-
clearTimeout(timer);
|
|
1314
|
-
};
|
|
1315
|
-
}, [active, desired.activity, desired.detail]);
|
|
1316
|
-
return active ? shown : desired;
|
|
1317
|
-
}
|
|
1318
|
-
function StepGroupRow(props) {
|
|
1319
|
-
const closed = props.group.closed;
|
|
1320
|
-
const live = useStableLiveTitle(liveTitleOf(props.group), !closed);
|
|
1321
|
-
const activity = closed ? props.group.counts[0]?.kind ?? "thinking" : live.activity;
|
|
1322
|
-
const label = stepGroupTitle(
|
|
1323
|
-
props.group.counts,
|
|
1324
|
-
closed,
|
|
1325
|
-
activity === "thinking" ? void 0 : activity,
|
|
1326
|
-
// 「准备读取文件」与「正在读取文件」是两句不同的话:模型还在吐参数 vs 工具真的开跑了
|
|
1327
|
-
live.preparing
|
|
1328
|
-
);
|
|
1329
|
-
const detail = closed || !props.showDetail ? "" : live.detail;
|
|
1330
|
-
const counts = props.group.counts.map((item) => `${item.kind}=${String(item.count)}`).join(",");
|
|
1331
|
-
const failNote = props.group.failures > 0 ? `,其中 ${String(props.group.failures)} 项失败` : "";
|
|
1332
|
-
const tip = props.open ? `收起这一阶段(${String(props.group.size)} 次工具调用${failNote})` : `展开这一阶段,放出 ${String(props.group.size)} 次工具调用${failNote}`;
|
|
1333
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1334
|
-
"button",
|
|
1335
|
-
{
|
|
1336
|
-
type: "button",
|
|
1337
|
-
className: "step-fold",
|
|
1338
|
-
"data-open": props.open ? "1" : void 0,
|
|
1339
|
-
"data-step-group": `${String(props.group.roundIndex)}:${String(props.group.seq)}`,
|
|
1340
|
-
"data-step-activity": activity,
|
|
1341
|
-
"data-step-closed": closed ? "1" : void 0,
|
|
1342
|
-
"data-step-counts": counts,
|
|
1343
|
-
"data-step-detail": detail === "" ? void 0 : detail,
|
|
1344
|
-
"aria-expanded": props.open,
|
|
1345
|
-
"data-tip": tip,
|
|
1346
|
-
onClick: (event) => {
|
|
1347
|
-
event.currentTarget.focus();
|
|
1348
|
-
props.onToggle();
|
|
1349
|
-
},
|
|
1350
|
-
children: [
|
|
1351
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-leading", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-icon", "data-step-icon": true, children: ACTIVITY_ICON[activity] }) }),
|
|
1352
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "step-fold-text", children: [
|
|
1353
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "step-fold-line", children: [
|
|
1354
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1355
|
-
"span",
|
|
1356
|
-
{
|
|
1357
|
-
className: "step-fold-label",
|
|
1358
|
-
"data-shimmer": closed ? void 0 : label,
|
|
1359
|
-
children: label
|
|
1360
|
-
}
|
|
1361
|
-
),
|
|
1362
|
-
props.task === "" ? null : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1363
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-dot", "aria-hidden": "true" }),
|
|
1364
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-task", title: props.task, children: props.task })
|
|
1365
|
-
] })
|
|
1366
|
-
] }),
|
|
1367
|
-
detail !== "" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-detail", "data-shimmer": detail, children: detail })
|
|
1368
|
-
] }),
|
|
1369
|
-
props.group.failures > 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-fail", "data-step-failures": props.group.failures, children: props.group.failures === 1 ? "1 失败" : `${String(props.group.failures)} 失败` }) : null,
|
|
1370
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-count", "data-step-size": props.group.size, children: `${String(props.group.size)} 项` }),
|
|
1371
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-chevron", "data-step-chevron": true, children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 12 }) })
|
|
1372
|
-
]
|
|
1373
|
-
}
|
|
1374
|
-
);
|
|
1375
|
-
}
|
|
1376
|
-
function useStableCallback(callback) {
|
|
1377
|
-
const ref = react.useRef(callback);
|
|
1378
|
-
react.useLayoutEffect(() => {
|
|
1379
|
-
ref.current = callback;
|
|
1380
|
-
}, [callback]);
|
|
1381
|
-
return react.useCallback(((...args) => {
|
|
1382
|
-
ref.current(...args);
|
|
1383
|
-
}), []);
|
|
1384
|
-
}
|
|
1385
|
-
function foldHideDelayMs() {
|
|
1386
|
-
const raw = globalThis.getComputedStyle(document.documentElement).getPropertyValue("--dsc-dur-slow").trim();
|
|
1387
|
-
const value = Number.parseFloat(raw);
|
|
1388
|
-
if (!Number.isFinite(value) || value <= 0) return 180;
|
|
1389
|
-
return raw.endsWith("ms") ? value : value * 1e3;
|
|
1390
|
-
}
|
|
1391
|
-
function useSearchableHidden(hidden, reveal, options) {
|
|
1392
|
-
const ref = react.useRef(null);
|
|
1393
|
-
const delay = options?.delayMs ?? 0;
|
|
1394
|
-
react.useLayoutEffect(() => {
|
|
1395
|
-
const element = ref.current;
|
|
1396
|
-
if (element === null) return;
|
|
1397
|
-
if (!hidden) {
|
|
1398
|
-
element.removeAttribute("hidden");
|
|
1399
|
-
return;
|
|
1400
|
-
}
|
|
1401
|
-
if (element.contains(element.ownerDocument.activeElement)) {
|
|
1402
|
-
reveal();
|
|
1403
|
-
return;
|
|
1404
|
-
}
|
|
1405
|
-
if (delay <= 0) {
|
|
1406
|
-
element.setAttribute("hidden", "until-found");
|
|
1407
|
-
return;
|
|
1408
|
-
}
|
|
1409
|
-
const timer = globalThis.setTimeout(() => {
|
|
1410
|
-
element.setAttribute("hidden", "until-found");
|
|
1411
|
-
}, delay);
|
|
1412
|
-
return () => {
|
|
1413
|
-
globalThis.clearTimeout(timer);
|
|
1414
|
-
};
|
|
1415
|
-
}, [hidden, reveal, delay]);
|
|
1416
|
-
react.useLayoutEffect(() => {
|
|
1417
|
-
const element = ref.current;
|
|
1418
|
-
if (element === null) return;
|
|
1419
|
-
element.addEventListener("beforematch", reveal);
|
|
1420
|
-
return () => {
|
|
1421
|
-
element.removeEventListener("beforematch", reveal);
|
|
1422
|
-
};
|
|
1423
|
-
}, [reveal]);
|
|
1424
|
-
return ref;
|
|
1425
|
-
}
|
|
1426
|
-
const NO_EDGES = { up: false, down: false };
|
|
1427
|
-
const PROCESS_BOTTOM_EPS = 4;
|
|
1428
|
-
const PROCESS_SETTLE_MS = 140;
|
|
1429
|
-
const PROCESS_UP_KEYS = /* @__PURE__ */ new Set(["ArrowUp", "PageUp", "Home"]);
|
|
1430
|
-
function useProcessScroll(bodyRef, contentRef, open, live) {
|
|
1431
|
-
const follow = react.useRef(live);
|
|
1432
|
-
const written = react.useRef(0);
|
|
1433
|
-
const settleTimer = react.useRef(null);
|
|
1434
|
-
const [edges, setEdges] = react.useState(NO_EDGES);
|
|
1435
|
-
const wasOpen = react.useRef(false);
|
|
1436
|
-
react.useLayoutEffect(() => {
|
|
1437
|
-
const body = bodyRef.current;
|
|
1438
|
-
if (body === null || !open) {
|
|
1439
|
-
wasOpen.current = open;
|
|
1440
|
-
return;
|
|
1441
|
-
}
|
|
1442
|
-
if (!wasOpen.current) {
|
|
1443
|
-
follow.current = live;
|
|
1444
|
-
body.scrollTop = live ? body.scrollHeight : 0;
|
|
1445
|
-
written.current = body.scrollTop;
|
|
1446
|
-
}
|
|
1447
|
-
wasOpen.current = open;
|
|
1448
|
-
}, [bodyRef, open, live]);
|
|
1449
|
-
react.useLayoutEffect(() => {
|
|
1450
|
-
const body = bodyRef.current;
|
|
1451
|
-
const content = contentRef.current;
|
|
1452
|
-
if (body === null || !open) return;
|
|
1453
|
-
const pin = () => {
|
|
1454
|
-
body.scrollTop = body.scrollHeight;
|
|
1455
|
-
written.current = body.scrollTop;
|
|
1456
|
-
};
|
|
1457
|
-
const readEdges = () => {
|
|
1458
|
-
const limit = body.scrollHeight - body.clientHeight;
|
|
1459
|
-
const top = body.scrollTop;
|
|
1460
|
-
const next = { up: top > 1, down: limit > 0 && top < limit - 1 };
|
|
1461
|
-
setEdges((previous) => previous.up === next.up && previous.down === next.down ? previous : next);
|
|
1462
|
-
};
|
|
1463
|
-
const clearSettle = () => {
|
|
1464
|
-
if (settleTimer.current !== null) window.clearTimeout(settleTimer.current);
|
|
1465
|
-
settleTimer.current = null;
|
|
1466
|
-
};
|
|
1467
|
-
const settle = () => {
|
|
1468
|
-
clearSettle();
|
|
1469
|
-
const limit = body.scrollHeight - body.clientHeight;
|
|
1470
|
-
follow.current = limit - body.scrollTop <= PROCESS_BOTTOM_EPS;
|
|
1471
|
-
if (follow.current && limit > 0) pin();
|
|
1472
|
-
readEdges();
|
|
1473
|
-
};
|
|
1474
|
-
const schedule = () => {
|
|
1475
|
-
clearSettle();
|
|
1476
|
-
settleTimer.current = window.setTimeout(settle, PROCESS_SETTLE_MS);
|
|
1477
|
-
};
|
|
1478
|
-
const onScroll = () => {
|
|
1479
|
-
const top = body.scrollTop;
|
|
1480
|
-
if (Math.abs(top - written.current) <= 1) {
|
|
1481
|
-
written.current = top;
|
|
1482
|
-
readEdges();
|
|
1483
|
-
return;
|
|
1484
|
-
}
|
|
1485
|
-
follow.current = false;
|
|
1486
|
-
schedule();
|
|
1487
|
-
readEdges();
|
|
1488
|
-
};
|
|
1489
|
-
const onGesture = () => {
|
|
1490
|
-
follow.current = false;
|
|
1491
|
-
schedule();
|
|
1492
|
-
};
|
|
1493
|
-
const onWheel = (event) => {
|
|
1494
|
-
if (event.ctrlKey || event.deltaY >= 0) return;
|
|
1495
|
-
onGesture();
|
|
1496
|
-
};
|
|
1497
|
-
const onKey = (event) => {
|
|
1498
|
-
if (PROCESS_UP_KEYS.has(event.key)) onGesture();
|
|
1499
|
-
};
|
|
1500
|
-
const observe = () => {
|
|
1501
|
-
if (follow.current) {
|
|
1502
|
-
const limit = body.scrollHeight - body.clientHeight;
|
|
1503
|
-
if (limit > 0 && limit - body.scrollTop > 2) pin();
|
|
1504
|
-
}
|
|
1505
|
-
readEdges();
|
|
1506
|
-
};
|
|
1507
|
-
onScroll();
|
|
1508
|
-
body.addEventListener("scroll", onScroll, { passive: true });
|
|
1509
|
-
body.addEventListener("scrollend", settle);
|
|
1510
|
-
body.addEventListener("wheel", onWheel, { passive: true });
|
|
1511
|
-
body.addEventListener("keydown", onKey);
|
|
1512
|
-
const observer = typeof ResizeObserver === "function" ? new ResizeObserver(observe) : void 0;
|
|
1513
|
-
observer?.observe(body);
|
|
1514
|
-
if (content !== null) observer?.observe(content);
|
|
1515
|
-
return () => {
|
|
1516
|
-
clearSettle();
|
|
1517
|
-
body.removeEventListener("scroll", onScroll);
|
|
1518
|
-
body.removeEventListener("scrollend", settle);
|
|
1519
|
-
body.removeEventListener("wheel", onWheel);
|
|
1520
|
-
body.removeEventListener("keydown", onKey);
|
|
1521
|
-
observer?.disconnect();
|
|
1522
|
-
};
|
|
1523
|
-
}, [bodyRef, contentRef, open]);
|
|
1524
|
-
return edges;
|
|
1525
|
-
}
|
|
1526
|
-
function RowSeat(props) {
|
|
1527
|
-
const reveal = useStableCallback(props.onReveal);
|
|
1528
|
-
const ref = useSearchableHidden(props.hidden, reveal, { delayMs: foldHideDelayMs() });
|
|
1529
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1530
|
-
"div",
|
|
1531
|
-
{
|
|
1532
|
-
ref,
|
|
1533
|
-
className: "entry-row",
|
|
1534
|
-
"data-round": props.roundIndex === void 0 ? void 0 : props.roundIndex,
|
|
1535
|
-
children: props.children
|
|
1536
|
-
}
|
|
1537
|
-
);
|
|
1538
|
-
}
|
|
1539
|
-
function StepGroupSeat(props) {
|
|
1540
|
-
const revealTurn = useStableCallback(props.onRevealTurn);
|
|
1541
|
-
const seatRef = useSearchableHidden(props.turnCollapsed, revealTurn, { delayMs: foldHideDelayMs() });
|
|
1542
|
-
const revealGroup = useStableCallback(() => {
|
|
1543
|
-
if (!props.open) props.onToggle();
|
|
1544
|
-
});
|
|
1545
|
-
const bodyRef = useSearchableHidden(!props.open, revealGroup);
|
|
1546
|
-
const contentRef = react.useRef(null);
|
|
1547
|
-
const edges = useProcessScroll(bodyRef, contentRef, props.open, !props.group.closed);
|
|
1548
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: seatRef, className: "step-seat", children: [
|
|
1549
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1550
|
-
StepGroupRow,
|
|
1551
|
-
{
|
|
1552
|
-
group: props.group,
|
|
1553
|
-
open: props.open,
|
|
1554
|
-
showDetail: props.showDetail,
|
|
1555
|
-
task: props.task,
|
|
1556
|
-
onToggle: props.onToggle
|
|
1557
|
-
}
|
|
1558
|
-
),
|
|
1559
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1560
|
-
"div",
|
|
1561
|
-
{
|
|
1562
|
-
ref: bodyRef,
|
|
1563
|
-
className: "step-body",
|
|
1564
|
-
"data-step-body": true,
|
|
1565
|
-
"data-scroll-up": edges.up ? "1" : void 0,
|
|
1566
|
-
"data-scroll-down": edges.down ? "1" : void 0,
|
|
1567
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: contentRef, className: "step-content", children: props.children })
|
|
1568
|
-
}
|
|
1569
|
-
)
|
|
1570
|
-
] });
|
|
1571
|
-
}
|
|
1572
|
-
function UserFileCards({ files }) {
|
|
1573
|
-
if (files === void 0 || files.length === 0) return null;
|
|
1574
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-user-files", children: files.map(
|
|
1575
|
-
(file) => file.kind === "video" && file.url !== void 0 && file.url !== "" ? /* @__PURE__ */ jsxRuntime.jsxs("figure", { className: "user-file-card user-video-card", "data-file-kind": "video", children: [
|
|
1576
|
-
/* @__PURE__ */ jsxRuntime.jsx("video", { src: file.url, controls: true, playsInline: true, preload: "metadata", "aria-label": file.name }),
|
|
1577
|
-
/* @__PURE__ */ jsxRuntime.jsx("figcaption", { className: "user-file-name", title: file.path, children: file.name }),
|
|
1578
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "user-file-meta", children: uiPrimitives.formatBytes(file.bytes) })
|
|
1579
|
-
] }, file.sha) : /* @__PURE__ */ jsxRuntime.jsx(FileAttachmentCard, { file }, file.sha)
|
|
1580
|
-
) });
|
|
1581
|
-
}
|
|
1582
|
-
function FileAttachmentCard({ file }) {
|
|
1583
|
-
const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1584
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.FileIcon, { name: file.name, size: 16 }),
|
|
1585
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "user-file-name", title: file.path, children: file.name }),
|
|
1586
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "user-file-meta", children: uiPrimitives.formatBytes(file.bytes) })
|
|
1587
|
-
] });
|
|
1588
|
-
if (file.url === void 0 || file.url === "") {
|
|
1589
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "user-file-card", "data-file-kind": "file", children: body });
|
|
1590
|
-
}
|
|
1591
|
-
return /* @__PURE__ */ jsxRuntime.jsx("a", { className: "user-file-card", "data-file-kind": "file", href: file.url, target: "_blank", rel: "noreferrer", title: file.path, children: body });
|
|
1592
|
-
}
|
|
1593
|
-
function UserRow({ entry }) {
|
|
1594
|
-
const actions = react.useContext(FlowActionsContext);
|
|
1595
|
-
const cwd = react.useContext(ShellCwdContext);
|
|
1596
|
-
const [draft, setDraft] = react.useState(null);
|
|
1597
|
-
const [zoom, setZoom] = react.useState(null);
|
|
1598
|
-
const findings = uiPrimitives.parseReviewFindings(entry.text);
|
|
1599
|
-
if (findings !== null) {
|
|
1600
|
-
return /* @__PURE__ */ jsxRuntime.jsx(uiPrimitives.ReviewFindingsCard, { doc: findings, cwd, onOpenLocation: (path) => ui$1.setDockPreview({ path }) });
|
|
1601
|
-
}
|
|
1602
|
-
if (entry.internal === true) {
|
|
1603
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system", "data-internal": "1", title: entry.text, children: internalLabel(entry.text) });
|
|
1604
|
-
}
|
|
1605
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1606
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "user-turn", children: [
|
|
1607
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `entry-user${draft === null ? "" : " editing"}`, children: [
|
|
1608
|
-
entry.images === void 0 || entry.images.length === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-user-images", children: entry.images.map((url, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1609
|
-
"button",
|
|
1610
|
-
{
|
|
1611
|
-
type: "button",
|
|
1612
|
-
className: "entry-shot",
|
|
1613
|
-
"data-tip": "点开看原图",
|
|
1614
|
-
"aria-label": `放大第 ${String(index + 1)} 张贴图`,
|
|
1615
|
-
onClick: () => {
|
|
1616
|
-
setZoom(url);
|
|
1617
|
-
},
|
|
1618
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: url, alt: `第 ${String(index + 1)} 张贴图` })
|
|
1619
|
-
},
|
|
1620
|
-
index
|
|
1621
|
-
)) }),
|
|
1622
|
-
/* @__PURE__ */ jsxRuntime.jsx(UserFileCards, { files: entry.files }),
|
|
1623
|
-
draft === null ? entry.text : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "user-edit", children: [
|
|
1624
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1625
|
-
"textarea",
|
|
1626
|
-
{
|
|
1627
|
-
className: "user-edit-box",
|
|
1628
|
-
value: draft,
|
|
1629
|
-
autoFocus: true,
|
|
1630
|
-
rows: Math.min(10, Math.max(2, draft.split("\n").length)),
|
|
1631
|
-
"aria-label": "编辑这条消息",
|
|
1632
|
-
onChange: (event) => {
|
|
1633
|
-
setDraft(event.target.value);
|
|
1634
|
-
},
|
|
1635
|
-
onKeyDown: (event) => {
|
|
1636
|
-
if (event.key === "Escape") {
|
|
1637
|
-
event.preventDefault();
|
|
1638
|
-
setDraft(null);
|
|
1639
|
-
return;
|
|
1640
|
-
}
|
|
1641
|
-
if (event.key !== "Enter" || event.shiftKey || event.nativeEvent.isComposing) return;
|
|
1642
|
-
event.preventDefault();
|
|
1643
|
-
const text = draft.trim();
|
|
1644
|
-
if (text === "") return;
|
|
1645
|
-
setDraft(null);
|
|
1646
|
-
actions.editAndResend(entry, text);
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
),
|
|
1650
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "user-edit-note", children: "Enter 重发(这条之后的回答会作废,在当前会话里重来) · Shift+Enter 换行 · Esc 取消" }),
|
|
1651
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "user-edit-actions", children: [
|
|
1652
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1653
|
-
"button",
|
|
1654
|
-
{
|
|
1655
|
-
type: "button",
|
|
1656
|
-
className: "dsc-btn",
|
|
1657
|
-
"data-variant": "ghost",
|
|
1658
|
-
"data-size": "xs",
|
|
1659
|
-
onClick: () => {
|
|
1660
|
-
setDraft(null);
|
|
1661
|
-
},
|
|
1662
|
-
children: "取消"
|
|
1663
|
-
}
|
|
1664
|
-
),
|
|
1665
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1666
|
-
"button",
|
|
1667
|
-
{
|
|
1668
|
-
type: "button",
|
|
1669
|
-
className: "dsc-btn",
|
|
1670
|
-
"data-variant": "primary",
|
|
1671
|
-
"data-size": "xs",
|
|
1672
|
-
disabled: draft.trim() === "",
|
|
1673
|
-
onClick: () => {
|
|
1674
|
-
const text = draft.trim();
|
|
1675
|
-
if (text === "") return;
|
|
1676
|
-
setDraft(null);
|
|
1677
|
-
actions.editAndResend(entry, text);
|
|
1678
|
-
},
|
|
1679
|
-
children: "重发"
|
|
1680
|
-
}
|
|
1681
|
-
)
|
|
1682
|
-
] })
|
|
1683
|
-
] })
|
|
1684
|
-
] }),
|
|
1685
|
-
draft === null ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "user-actions", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1686
|
-
"button",
|
|
1687
|
-
{
|
|
1688
|
-
type: "button",
|
|
1689
|
-
className: "user-act",
|
|
1690
|
-
title: actions.busy ? "这一轮还在跑,先等它结束或打断再编辑" : "编辑这条消息并重发(这条之后的回答会作废,在当前会话里重来)",
|
|
1691
|
-
"aria-label": "编辑并重发这条消息",
|
|
1692
|
-
disabled: actions.busy,
|
|
1693
|
-
onClick: () => {
|
|
1694
|
-
setDraft(entry.text);
|
|
1695
|
-
},
|
|
1696
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconEdit, { size: 15 })
|
|
1697
|
-
}
|
|
1698
|
-
) }) : null
|
|
1699
|
-
] }),
|
|
1700
|
-
zoom === null ? null : /* @__PURE__ */ jsxRuntime.jsx(uiPrimitives.ImageLightbox, { src: zoom, alt: "放大的贴图", onClose: () => {
|
|
1701
|
-
setZoom(null);
|
|
1702
|
-
} })
|
|
1703
|
-
] });
|
|
1704
|
-
}
|
|
1705
|
-
function ReadonlyUserRow({ entry }) {
|
|
1706
|
-
const cwd = react.useContext(ShellCwdContext);
|
|
1707
|
-
const [zoom, setZoom] = react.useState(null);
|
|
1708
|
-
const findings = uiPrimitives.parseReviewFindings(entry.text);
|
|
1709
|
-
if (findings !== null) {
|
|
1710
|
-
return /* @__PURE__ */ jsxRuntime.jsx(uiPrimitives.ReviewFindingsCard, { doc: findings, cwd, onOpenLocation: (path) => ui$1.setDockPreview({ path }) });
|
|
1711
|
-
}
|
|
1712
|
-
if (entry.internal === true) return /* @__PURE__ */ jsxRuntime.jsx(UserRow, { entry });
|
|
1713
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1714
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "user-turn", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "entry-user", children: [
|
|
1715
|
-
entry.images === void 0 || entry.images.length === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-user-images", children: entry.images.map((url, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1716
|
-
"button",
|
|
1717
|
-
{
|
|
1718
|
-
type: "button",
|
|
1719
|
-
className: "entry-shot",
|
|
1720
|
-
"data-tip": "点开看原图",
|
|
1721
|
-
"aria-label": `放大第 ${String(index + 1)} 张贴图`,
|
|
1722
|
-
onClick: () => {
|
|
1723
|
-
setZoom(url);
|
|
1724
|
-
},
|
|
1725
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: url, alt: `第 ${String(index + 1)} 张贴图` })
|
|
1726
|
-
},
|
|
1727
|
-
index
|
|
1728
|
-
)) }),
|
|
1729
|
-
/* @__PURE__ */ jsxRuntime.jsx(UserFileCards, { files: entry.files }),
|
|
1730
|
-
entry.text
|
|
1731
|
-
] }) }),
|
|
1732
|
-
zoom === null ? null : /* @__PURE__ */ jsxRuntime.jsx(uiPrimitives.ImageLightbox, { src: zoom, alt: "放大的贴图", onClose: () => {
|
|
1733
|
-
setZoom(null);
|
|
1734
|
-
} })
|
|
1735
|
-
] });
|
|
1736
|
-
}
|
|
1737
|
-
const BAR_MIN_CONTENT_H = 400;
|
|
1738
|
-
function expandedContentHeight(body) {
|
|
1739
|
-
let total = 0;
|
|
1740
|
-
for (const child of Array.from(body.children)) {
|
|
1741
|
-
if (!(child instanceof HTMLElement)) continue;
|
|
1742
|
-
if (child.dataset.tcChrome !== void 0) continue;
|
|
1743
|
-
total += Math.max(child.scrollHeight, child.offsetHeight);
|
|
1744
|
-
}
|
|
1745
|
-
return total;
|
|
1746
|
-
}
|
|
1747
|
-
function firstLine(text) {
|
|
1748
|
-
const newline = text.indexOf("\n");
|
|
1749
|
-
return newline === -1 ? text : text.slice(0, newline);
|
|
1750
|
-
}
|
|
1751
|
-
const MAX_SUMMARY_CHARS = 80;
|
|
1752
|
-
function clipSummary(text) {
|
|
1753
|
-
const chars = Array.from(text);
|
|
1754
|
-
return chars.length > MAX_SUMMARY_CHARS ? `${chars.slice(0, MAX_SUMMARY_CHARS).join("")}…` : text;
|
|
1755
|
-
}
|
|
1756
|
-
function latestCompletedParagraphFirstLine(text) {
|
|
1757
|
-
let summary = "";
|
|
1758
|
-
let paragraphStart = 0;
|
|
1759
|
-
const separator = /\r?\n(?:[\t ]*\r?\n)+/g;
|
|
1760
|
-
while (true) {
|
|
1761
|
-
const nextParagraph = separator.exec(text);
|
|
1762
|
-
const paragraphEnd = nextParagraph === null ? text.length : nextParagraph.index + nextParagraph[0].indexOf("\n");
|
|
1763
|
-
const newline = text.indexOf("\n", paragraphStart);
|
|
1764
|
-
if (newline !== -1 && newline <= paragraphEnd) {
|
|
1765
|
-
const candidate = text.slice(paragraphStart, newline).trim();
|
|
1766
|
-
if (candidate !== "") summary = candidate;
|
|
1767
|
-
}
|
|
1768
|
-
if (nextParagraph === null) return summary;
|
|
1769
|
-
paragraphStart = nextParagraph.index + nextParagraph[0].length;
|
|
1770
|
-
}
|
|
1771
|
-
}
|
|
1772
|
-
function ThinkRow({
|
|
1773
|
-
entry,
|
|
1774
|
-
live,
|
|
1775
|
-
storeKey
|
|
1776
|
-
}) {
|
|
1777
|
-
const prefs = react.useContext(FoldPrefsContext);
|
|
1778
|
-
const [open, setOpenPersisted] = useFoldState(storeKey, prefs.reasoningOpen);
|
|
1779
|
-
const [barVisible, setBarVisible] = react.useState(false);
|
|
1780
|
-
const bodyRef = react.useRef(null);
|
|
1781
|
-
const toggle = () => {
|
|
1782
|
-
setOpenPersisted(!open);
|
|
1783
|
-
};
|
|
1784
|
-
const summary = clipSummary(
|
|
1785
|
-
(live ? latestCompletedParagraphFirstLine(entry.text) : firstLine(entry.text)).replaceAll("**", "")
|
|
1786
|
-
);
|
|
1787
|
-
const preview = summary !== "" && (live || prefs.policy.reasoningPreview);
|
|
1788
|
-
react.useEffect(() => {
|
|
1789
|
-
const body = bodyRef.current;
|
|
1790
|
-
if (body === null || !open) {
|
|
1791
|
-
setBarVisible(false);
|
|
1792
|
-
return void 0;
|
|
1793
|
-
}
|
|
1794
|
-
const measure = () => {
|
|
1795
|
-
setBarVisible(expandedContentHeight(body) > BAR_MIN_CONTENT_H);
|
|
1796
|
-
};
|
|
1797
|
-
measure();
|
|
1798
|
-
const observer = new ResizeObserver(measure);
|
|
1799
|
-
observer.observe(body);
|
|
1800
|
-
return () => {
|
|
1801
|
-
observer.disconnect();
|
|
1802
|
-
};
|
|
1803
|
-
}, [open, entry.text]);
|
|
1804
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1805
|
-
"div",
|
|
1806
|
-
{
|
|
1807
|
-
className: `think-block${live ? " live" : ""}${open ? " open" : ""}`,
|
|
1808
|
-
"data-state": live ? "running" : "ok",
|
|
1809
|
-
"data-preview": preview ? "1" : void 0,
|
|
1810
|
-
children: [
|
|
1811
|
-
live ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-sr", children: "正在思考" }) : null,
|
|
1812
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1813
|
-
"div",
|
|
1814
|
-
{
|
|
1815
|
-
className: "think-head",
|
|
1816
|
-
role: "button",
|
|
1817
|
-
tabIndex: 0,
|
|
1818
|
-
"aria-expanded": open,
|
|
1819
|
-
"data-tip": open ? "收起这段思考" : "展开这段思考",
|
|
1820
|
-
onClick: toggle,
|
|
1821
|
-
onKeyDown: (event) => {
|
|
1822
|
-
if (event.key !== "Enter" && event.key !== " ") return;
|
|
1823
|
-
event.preventDefault();
|
|
1824
|
-
toggle();
|
|
1825
|
-
},
|
|
1826
|
-
children: [
|
|
1827
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-leading", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconSpark, { size: 12, className: "think-star" }) }),
|
|
1828
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-label", children: "思考" }),
|
|
1829
|
-
preview ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-dot", "aria-hidden": "true" }) : null,
|
|
1830
|
-
preview ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-summary", "data-streaming": live ? "1" : void 0, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-summary-text", "data-shimmer": live ? summary : void 0, children: summary }) }) : null,
|
|
1831
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-status", children: live ? /* @__PURE__ */ jsxRuntime.jsx("i", { className: "think-spin", "aria-hidden": "true" }) : null }),
|
|
1832
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 11, className: "think-chevron" })
|
|
1833
|
-
]
|
|
1834
|
-
}
|
|
1835
|
-
),
|
|
1836
|
-
open && barVisible ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "think-bar", "data-think-chrome": "1", children: [
|
|
1837
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "think-bar-status", children: [
|
|
1838
|
-
"思考 · ",
|
|
1839
|
-
live ? "进行中" : "已完成"
|
|
1840
|
-
] }),
|
|
1841
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1842
|
-
"button",
|
|
1843
|
-
{
|
|
1844
|
-
type: "button",
|
|
1845
|
-
className: "think-collapse",
|
|
1846
|
-
title: "收起这段思考",
|
|
1847
|
-
onClick: () => {
|
|
1848
|
-
setOpenPersisted(false);
|
|
1849
|
-
},
|
|
1850
|
-
children: [
|
|
1851
|
-
"收起",
|
|
1852
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronUp, { size: 11 })
|
|
1853
|
-
]
|
|
1854
|
-
}
|
|
1855
|
-
)
|
|
1856
|
-
] }) : null,
|
|
1857
|
-
open ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "think-body", ref: bodyRef, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "think-body-clip", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "think-text", children: entry.text }) }) }) : null
|
|
1858
|
-
]
|
|
1859
|
-
}
|
|
1860
|
-
);
|
|
1861
|
-
}
|
|
1862
|
-
function BuiltinToolView(props) {
|
|
1863
|
-
const prefs = react.useContext(FoldPrefsContext);
|
|
1864
|
-
const cwd = react.useContext(ShellCwdContext);
|
|
1865
|
-
return props.renderFactorySlot(
|
|
1866
|
-
TOOLCARD_FACTORY,
|
|
1867
|
-
{
|
|
1868
|
-
entry: props.entry,
|
|
1869
|
-
storeKey: props.storeKey,
|
|
1870
|
-
persistKey: props.storeKey,
|
|
1871
|
-
variant: "chat",
|
|
1872
|
-
match: props.matched,
|
|
1873
|
-
foldPrefs: prefs,
|
|
1874
|
-
cwd
|
|
1875
|
-
},
|
|
1876
|
-
{
|
|
1877
|
-
slots: {
|
|
1878
|
-
preview: IntendedPreview,
|
|
1879
|
-
statusDetail: ChatStatus,
|
|
1880
|
-
bodyExtra: IntendedBody,
|
|
1881
|
-
trailing: TraceJumpButton
|
|
1882
|
-
},
|
|
1883
|
-
fallback: /* @__PURE__ */ jsxRuntime.jsx(ToolRow, { entry: props.entry, matched: props.matched, storeKey: props.storeKey })
|
|
1884
|
-
}
|
|
1885
|
-
);
|
|
1886
|
-
}
|
|
1887
|
-
function ToolRow({ entry, matched, storeKey }) {
|
|
1888
|
-
const call = entry.call;
|
|
1889
|
-
const prefs = react.useContext(FoldPrefsContext);
|
|
1890
|
-
const cwd = react.useContext(ShellCwdContext);
|
|
1891
|
-
const [open, setOpenPersisted] = useFoldState(storeKey, prefs.toolOpen);
|
|
1892
|
-
const [barVisible, setBarVisible] = react.useState(false);
|
|
1893
|
-
const expandable = call.status !== "preparing";
|
|
1894
|
-
const bodyOpen = open && expandable;
|
|
1895
|
-
const running = call.status === "running";
|
|
1896
|
-
const summary = uiPrimitives.toolSummary(call.name, call.argsText);
|
|
1897
|
-
const match = matched ?? uiPrimitives.matchTool(call.name);
|
|
1898
|
-
const Icon = match.Icon;
|
|
1899
|
-
const targetPath = fileTargetOf(call.name, call.argsText, cwd);
|
|
1900
|
-
const intended = useIntendedDiff(call, cwd);
|
|
1901
|
-
const bodyRef = react.useRef(null);
|
|
1902
|
-
const barRef = react.useRef(null);
|
|
1903
|
-
const toggle = () => {
|
|
1904
|
-
if (expandable) setOpenPersisted(!open);
|
|
1905
|
-
};
|
|
1906
|
-
react.useEffect(() => {
|
|
1907
|
-
const body = bodyRef.current;
|
|
1908
|
-
if (body === null || !bodyOpen) {
|
|
1909
|
-
setBarVisible(false);
|
|
1910
|
-
return void 0;
|
|
1911
|
-
}
|
|
1912
|
-
const measure = () => {
|
|
1913
|
-
setBarVisible(expandedContentHeight(body) > BAR_MIN_CONTENT_H);
|
|
1914
|
-
};
|
|
1915
|
-
measure();
|
|
1916
|
-
const observer = new ResizeObserver(measure);
|
|
1917
|
-
observer.observe(body);
|
|
1918
|
-
return () => {
|
|
1919
|
-
observer.disconnect();
|
|
1920
|
-
};
|
|
1921
|
-
}, [bodyOpen, call.argsText, call.resultText, call.status]);
|
|
1922
|
-
react.useEffect(() => {
|
|
1923
|
-
if (!bodyOpen || !barVisible) return void 0;
|
|
1924
|
-
const bar = barRef.current;
|
|
1925
|
-
const body = bodyRef.current;
|
|
1926
|
-
if (bar === null || body === null) return void 0;
|
|
1927
|
-
const chat = body.closest(".chat");
|
|
1928
|
-
if (!(chat instanceof HTMLElement)) return void 0;
|
|
1929
|
-
const padTop = Number.parseFloat(getComputedStyle(chat).paddingTop);
|
|
1930
|
-
const threshold = (Number.isFinite(padTop) ? padTop : 12) + 1.5;
|
|
1931
|
-
const sync = () => {
|
|
1932
|
-
const gap = bar.getBoundingClientRect().top - chat.getBoundingClientRect().top;
|
|
1933
|
-
bar.classList.toggle("stuck", gap <= threshold);
|
|
1934
|
-
};
|
|
1935
|
-
sync();
|
|
1936
|
-
chat.addEventListener("scroll", sync, { passive: true });
|
|
1937
|
-
return () => {
|
|
1938
|
-
chat.removeEventListener("scroll", sync);
|
|
1939
|
-
};
|
|
1940
|
-
}, [bodyOpen, barVisible, call.argsText, call.resultText, call.status]);
|
|
1941
|
-
const duration = uiPrimitives.formatDuration(call.durationMs ?? null);
|
|
1942
|
-
const barStatus = running || duration === null ? uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status : `${uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status} · 用时 ${duration}`;
|
|
1943
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `entry tool-card status-${call.status}${bodyOpen ? " open" : ""}`, children: [
|
|
1944
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1945
|
-
"div",
|
|
1946
|
-
{
|
|
1947
|
-
className: "tool-head",
|
|
1948
|
-
role: "button",
|
|
1949
|
-
tabIndex: expandable ? 0 : -1,
|
|
1950
|
-
...expandable ? { "aria-expanded": bodyOpen } : {},
|
|
1951
|
-
"data-tip": expandable ? bodyOpen ? "收起参数与结果" : "展开参数与结果" : "正在准备参数",
|
|
1952
|
-
onClick: toggle,
|
|
1953
|
-
onKeyDown: (event) => {
|
|
1954
|
-
if (event.key !== "Enter" && event.key !== " ") return;
|
|
1955
|
-
event.preventDefault();
|
|
1956
|
-
toggle();
|
|
1957
|
-
},
|
|
1958
|
-
children: [
|
|
1959
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "tool-leading", "aria-hidden": "true", children: [
|
|
1960
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "tool-dot" }),
|
|
1961
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 14, className: "tool-icon" })
|
|
1962
|
-
] }),
|
|
1963
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "verb", children: uiPrimitives.toolVerb(match.base, call.status) }),
|
|
1964
|
-
match.known || call.name === "" ? null : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: `· ${call.name}` }),
|
|
1965
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "preview", children: intended !== null ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1966
|
-
/* @__PURE__ */ jsxRuntime.jsx(OpenPathButton, { absPath: intended.absPath, cwd, patch: intended.file ?? call.change ?? null }),
|
|
1967
|
-
intended.file !== null && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-counts", children: [
|
|
1968
|
-
intended.file.status === "added" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "diff-badge", children: "新增" }),
|
|
1969
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-added", children: `+${String(intended.file.added)}` }),
|
|
1970
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-removed", children: `-${String(intended.file.removed)}` })
|
|
1971
|
-
] }),
|
|
1972
|
-
intended.mismatch === "missing" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 不在当前文件里" }),
|
|
1973
|
-
intended.mismatch === "ambiguous" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 匹配多处" })
|
|
1974
|
-
] }) : targetPath !== null ? /* @__PURE__ */ jsxRuntime.jsx(OpenPathButton, { absPath: targetPath, cwd, patch: call.change ?? null }) : summary }),
|
|
1975
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "status", children: [
|
|
1976
|
-
call.status === "running" ? /* @__PURE__ */ jsxRuntime.jsx("i", { className: "tc-spin", "aria-hidden": "true" }) : null,
|
|
1977
|
-
call.status === "done" ? "" : uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status,
|
|
1978
|
-
duration === null || call.status === "done" ? "" : ` · 用时 ${duration}`
|
|
1979
|
-
] }),
|
|
1980
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1981
|
-
"button",
|
|
1982
|
-
{
|
|
1983
|
-
type: "button",
|
|
1984
|
-
className: "tc-trace",
|
|
1985
|
-
"data-trace-jump": String(entry.id),
|
|
1986
|
-
"data-tip": "在轨迹页查看这条调用的时刻与耗时",
|
|
1987
|
-
"aria-label": "在轨迹中查看",
|
|
1988
|
-
onClick: (event) => {
|
|
1989
|
-
event.stopPropagation();
|
|
1990
|
-
ui$1.openTrace(entry.id);
|
|
1991
|
-
},
|
|
1992
|
-
children: "在轨迹中查看"
|
|
1993
|
-
}
|
|
1994
|
-
),
|
|
1995
|
-
expandable ? /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 11, className: "tc-chevron" }) : null
|
|
1996
|
-
]
|
|
1997
|
-
}
|
|
1998
|
-
),
|
|
1999
|
-
bodyOpen ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tool-body", ref: bodyRef, children: [
|
|
2000
|
-
barVisible ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-bar", "data-tc-chrome": "1", ref: barRef, children: [
|
|
2001
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-bar-status", children: barStatus }),
|
|
2002
|
-
running ? null : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2003
|
-
"button",
|
|
2004
|
-
{
|
|
2005
|
-
type: "button",
|
|
2006
|
-
className: "tc-collapse",
|
|
2007
|
-
title: "收起这张工具卡",
|
|
2008
|
-
onClick: () => {
|
|
2009
|
-
setOpenPersisted(false);
|
|
2010
|
-
},
|
|
2011
|
-
children: [
|
|
2012
|
-
"收起",
|
|
2013
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronUp, { size: 11 })
|
|
2014
|
-
]
|
|
2015
|
-
}
|
|
2016
|
-
)
|
|
2017
|
-
] }) : null,
|
|
2018
|
-
intended !== null ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended", children: [
|
|
2019
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended-head", children: [
|
|
2020
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-intended-title", children: "将做的改动" }),
|
|
2021
|
-
intended.fellBack && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "读不到文件当前内容,以下按参数推算" }),
|
|
2022
|
-
intended.mismatch === "missing" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 在文件中不存在,执行会失败" }),
|
|
2023
|
-
intended.mismatch === "ambiguous" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 匹配多处,执行会失败" })
|
|
2024
|
-
] }),
|
|
2025
|
-
intended.file === null ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "tc-intended-note", children: "两段内容一致,不会有实际改动。" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tc-intended-diff", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.DiffRows, { hunks: intended.file.hunks, path: intended.absPath }) })
|
|
2026
|
-
] }) : null,
|
|
2027
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "label", children: "参数" }),
|
|
2028
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "args", children: uiPrimitives.prettyJson(call.argsText) }),
|
|
2029
|
-
call.resultText === void 0 || call.resultText === "" ? null : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2030
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "label", children: "结果" }),
|
|
2031
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "result", children: call.resultText })
|
|
2032
|
-
] })
|
|
2033
|
-
] }) : null
|
|
2034
|
-
] });
|
|
2035
|
-
}
|
|
2036
|
-
const SUB_STATE_TEXT = {
|
|
2037
|
-
working: "干活中",
|
|
2038
|
-
idle: "已收工",
|
|
2039
|
-
stopped: "被打断",
|
|
2040
|
-
failed: "过程失败"
|
|
2041
|
-
};
|
|
2042
|
-
function SubagentRow({ entry }) {
|
|
2043
|
-
const sub = entry.sub;
|
|
2044
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "shell-subagent", "data-state": sub.state, children: [
|
|
2045
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "shell-subagent-head", children: [
|
|
2046
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shell-subagent-name", children: sub.name }),
|
|
2047
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shell-subagent-role", children: sub.role }),
|
|
2048
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shell-subagent-state", children: SUB_STATE_TEXT[sub.state] ?? sub.state })
|
|
2049
|
-
] }),
|
|
2050
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "shell-subagent-task", children: uiPrimitives.oneLine(sub.task, 160) }),
|
|
2051
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "shell-subagent-meta", children: [
|
|
2052
|
-
sub.rounds,
|
|
2053
|
-
" 轮 · ",
|
|
2054
|
-
sub.toolCalls,
|
|
2055
|
-
" 次工具",
|
|
2056
|
-
sub.tokens === void 0 ? "" : ` · ${uiPrimitives.formatTokens(sub.tokens)} tok`,
|
|
2057
|
-
sub.lastTool === void 0 ? "" : ` · 当前 ${sub.lastTool.name}`
|
|
2058
|
-
] }),
|
|
2059
|
-
sub.error === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "shell-subagent-error", children: sub.error })
|
|
2060
|
-
] });
|
|
2061
|
-
}
|
|
2062
|
-
function mergeChanges(rows) {
|
|
2063
|
-
const turnDiff = uiPrimitives.findLast(rows, (row) => row.entry.kind === "turnDiff");
|
|
2064
|
-
if (turnDiff !== void 0 && turnDiff.entry.kind === "turnDiff") return turnDiff.entry.files;
|
|
2065
|
-
const byPath = /* @__PURE__ */ new Map();
|
|
2066
|
-
for (const row of rows) {
|
|
2067
|
-
if (row.entry.kind !== "changes") continue;
|
|
2068
|
-
const file = row.entry.file;
|
|
2069
|
-
const existing = byPath.get(file.path);
|
|
2070
|
-
byPath.set(
|
|
2071
|
-
file.path,
|
|
2072
|
-
existing === void 0 ? file : {
|
|
2073
|
-
...existing,
|
|
2074
|
-
added: existing.added + file.added,
|
|
2075
|
-
removed: existing.removed + file.removed,
|
|
2076
|
-
hunks: [...existing.hunks, ...file.hunks],
|
|
2077
|
-
...existing.truncated === true || file.truncated === true ? { truncated: true } : {}
|
|
2078
|
-
}
|
|
2079
|
-
);
|
|
2080
|
-
}
|
|
2081
|
-
return [...byPath.values()];
|
|
2082
|
-
}
|
|
2083
|
-
const COLLAPSED_ROWS = 4;
|
|
2084
|
-
function Counts({ added, removed }) {
|
|
2085
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-counts", children: [
|
|
2086
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-added", children: `+${String(added)}` }),
|
|
2087
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-removed", children: `-${String(removed)}` })
|
|
2088
|
-
] });
|
|
2089
|
-
}
|
|
2090
|
-
function DiffHoverCard({
|
|
2091
|
-
file,
|
|
2092
|
-
anchor,
|
|
2093
|
-
cardWidth,
|
|
2094
|
-
cwd,
|
|
2095
|
-
onKeep,
|
|
2096
|
-
onLeave,
|
|
2097
|
-
onClose
|
|
2098
|
-
}) {
|
|
2099
|
-
react.useEffect(() => {
|
|
2100
|
-
const onKey = (event) => {
|
|
2101
|
-
if (event.key !== "Escape") return;
|
|
2102
|
-
event.stopPropagation();
|
|
2103
|
-
onClose();
|
|
2104
|
-
};
|
|
2105
|
-
window.addEventListener("keydown", onKey, true);
|
|
2106
|
-
return () => window.removeEventListener("keydown", onKey, true);
|
|
2107
|
-
}, [onClose]);
|
|
2108
|
-
const width = Math.max(320, Math.min(cardWidth - 48, window.innerWidth - 16));
|
|
2109
|
-
const maxHeight = Math.min(420, window.innerHeight - 24);
|
|
2110
|
-
const left = Math.min(Math.max(8, anchor.left - 24), Math.max(8, window.innerWidth - width - 8));
|
|
2111
|
-
const style = anchor.top - 12 >= maxHeight ? { left: `${String(left)}px`, bottom: `${String(window.innerHeight - anchor.top + 6)}px`, width: `${String(width)}px`, maxHeight: `${String(maxHeight)}px` } : { left: `${String(left)}px`, top: `${String(anchor.bottom + 6)}px`, width: `${String(width)}px`, maxHeight: `${String(maxHeight)}px` };
|
|
2112
|
-
return reactDom.createPortal(
|
|
2113
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hover-preview", style, onMouseEnter: onKeep, onMouseLeave: onLeave, children: [
|
|
2114
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hover-preview-head", children: [
|
|
2115
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.FileIcon, { name: file.path, size: 14 }),
|
|
2116
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "hover-preview-name", title: file.path, children: uiPrimitives.displayPathOf(file.path, cwd) }),
|
|
2117
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "hover-preview-stat", children: [
|
|
2118
|
-
file.status === "added" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "diff-badge", children: "新增" }),
|
|
2119
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-added", children: `+${String(file.added)}` }),
|
|
2120
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-removed", children: `-${String(file.removed)}` })
|
|
2121
|
-
] })
|
|
2122
|
-
] }),
|
|
2123
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "hover-preview-diff", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.DiffRows, { hunks: file.hunks, path: file.path }) })
|
|
2124
|
-
] }),
|
|
2125
|
-
document.body
|
|
2126
|
-
);
|
|
2127
|
-
}
|
|
2128
|
-
function ChangesCard({ rows, cwd }) {
|
|
2129
|
-
const files = react.useMemo(() => mergeChanges(rows), [rows]);
|
|
2130
|
-
const [expanded, setExpanded] = react.useState(true);
|
|
2131
|
-
const cardRef = react.useRef(null);
|
|
2132
|
-
const hoverDelay = uiPrimitives.useHoverDelay();
|
|
2133
|
-
const { hover } = hoverDelay;
|
|
2134
|
-
react.useEffect(() => {
|
|
2135
|
-
setExpanded(files.length <= COLLAPSED_ROWS);
|
|
2136
|
-
}, [files.length]);
|
|
2137
|
-
if (files.length === 0) return null;
|
|
2138
|
-
const totalAdded = files.reduce((sum, file) => sum + file.added, 0);
|
|
2139
|
-
const totalRemoved = files.reduce((sum, file) => sum + file.removed, 0);
|
|
2140
|
-
const single = files.length === 1 ? files[0] : void 0;
|
|
2141
|
-
const visible = expanded ? files : files.slice(0, COLLAPSED_ROWS);
|
|
2142
|
-
const reviewAt = (index) => {
|
|
2143
|
-
ui$1.setDockReview({ files, index, cwd });
|
|
2144
|
-
};
|
|
2145
|
-
const openAt = (path) => {
|
|
2146
|
-
ui$1.setDockPreview({ path, cwd });
|
|
2147
|
-
};
|
|
2148
|
-
const armHover = (file, anchor) => {
|
|
2149
|
-
hoverDelay.arm(file, anchor, cardRef.current?.offsetWidth ?? 480);
|
|
2150
|
-
};
|
|
2151
|
-
return (
|
|
2152
|
-
// 不再包 `.entry-row`:旧版里 `.changes-card` 是 `.turn-seat` 的直接子项,间距靠
|
|
2153
|
-
// `.turn-seat > .changes-card` 那条规则给(多包一层会让选择器失配)。
|
|
2154
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "changes-card", ref: cardRef, "data-changed-files": "", ...single === void 0 ? {} : { "data-single": "1" }, children: [
|
|
2155
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2156
|
-
"button",
|
|
2157
|
-
{
|
|
2158
|
-
type: "button",
|
|
2159
|
-
className: "changes-head",
|
|
2160
|
-
onClick: () => {
|
|
2161
|
-
reviewAt(files.indexOf(single ?? files[0]));
|
|
2162
|
-
},
|
|
2163
|
-
children: [
|
|
2164
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-tile", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.FileIcon, { name: (single ?? files[0]).path, size: 20 }) }),
|
|
2165
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-titles", children: [
|
|
2166
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-title", children: single === void 0 ? `已编辑 ${String(files.length)} 个文件` : uiPrimitives.baseNameOf(single.path) }),
|
|
2167
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-stat", children: [
|
|
2168
|
-
/* @__PURE__ */ jsxRuntime.jsx(Counts, { added: totalAdded, removed: totalRemoved }),
|
|
2169
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-hint", children: "点击审查改动" })
|
|
2170
|
-
] })
|
|
2171
|
-
] })
|
|
2172
|
-
]
|
|
2173
|
-
}
|
|
2174
|
-
),
|
|
2175
|
-
single === void 0 ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "changes-list", children: visible.map((file) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2176
|
-
"li",
|
|
2177
|
-
{
|
|
2178
|
-
className: "changes-row-wrap",
|
|
2179
|
-
onMouseEnter: (event) => armHover(file, event.currentTarget.getBoundingClientRect()),
|
|
2180
|
-
onMouseLeave: hoverDelay.disarm,
|
|
2181
|
-
children: [
|
|
2182
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2183
|
-
"button",
|
|
2184
|
-
{
|
|
2185
|
-
type: "button",
|
|
2186
|
-
className: "changes-row",
|
|
2187
|
-
onClick: () => {
|
|
2188
|
-
reviewAt(files.indexOf(file));
|
|
2189
|
-
},
|
|
2190
|
-
children: [
|
|
2191
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-path", title: file.path, children: [
|
|
2192
|
-
file.status === "added" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-badge", children: "新增" }),
|
|
2193
|
-
uiPrimitives.displayPathOf(file.path, cwd)
|
|
2194
|
-
] }),
|
|
2195
|
-
/* @__PURE__ */ jsxRuntime.jsx(Counts, { added: file.added, removed: file.removed })
|
|
2196
|
-
]
|
|
2197
|
-
}
|
|
2198
|
-
),
|
|
2199
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-act", children: [
|
|
2200
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2201
|
-
"button",
|
|
2202
|
-
{
|
|
2203
|
-
type: "button",
|
|
2204
|
-
className: "changes-btn",
|
|
2205
|
-
onClick: () => {
|
|
2206
|
-
reviewAt(files.indexOf(file));
|
|
2207
|
-
},
|
|
2208
|
-
children: "审查"
|
|
2209
|
-
}
|
|
2210
|
-
),
|
|
2211
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2212
|
-
"button",
|
|
2213
|
-
{
|
|
2214
|
-
type: "button",
|
|
2215
|
-
className: "changes-btn",
|
|
2216
|
-
onClick: () => {
|
|
2217
|
-
openAt(file.path);
|
|
2218
|
-
},
|
|
2219
|
-
children: "打开"
|
|
2220
|
-
}
|
|
2221
|
-
)
|
|
2222
|
-
] })
|
|
2223
|
-
]
|
|
2224
|
-
},
|
|
2225
|
-
file.path
|
|
2226
|
-
)) }) : null,
|
|
2227
|
-
single === void 0 && files.length > COLLAPSED_ROWS ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2228
|
-
"button",
|
|
2229
|
-
{
|
|
2230
|
-
type: "button",
|
|
2231
|
-
className: "changes-toggle",
|
|
2232
|
-
onClick: () => {
|
|
2233
|
-
setExpanded((value) => !value);
|
|
2234
|
-
},
|
|
2235
|
-
children: expanded ? "收起" : `展开全部 ${String(files.length)} 个文件`
|
|
2236
|
-
}
|
|
2237
|
-
) : null,
|
|
2238
|
-
single !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "changes-act changes-act-single", children: [
|
|
2239
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2240
|
-
"button",
|
|
2241
|
-
{
|
|
2242
|
-
type: "button",
|
|
2243
|
-
className: "changes-btn",
|
|
2244
|
-
onClick: () => {
|
|
2245
|
-
reviewAt(0);
|
|
2246
|
-
},
|
|
2247
|
-
children: "审查"
|
|
2248
|
-
}
|
|
2249
|
-
),
|
|
2250
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2251
|
-
"button",
|
|
2252
|
-
{
|
|
2253
|
-
type: "button",
|
|
2254
|
-
className: "changes-btn",
|
|
2255
|
-
onClick: () => {
|
|
2256
|
-
openAt(single.path);
|
|
2257
|
-
},
|
|
2258
|
-
children: "打开"
|
|
2259
|
-
}
|
|
2260
|
-
)
|
|
2261
|
-
] }) : null,
|
|
2262
|
-
hover !== null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2263
|
-
DiffHoverCard,
|
|
2264
|
-
{
|
|
2265
|
-
file: hover.item,
|
|
2266
|
-
anchor: hover.anchor,
|
|
2267
|
-
cardWidth: hover.cardWidth,
|
|
2268
|
-
cwd,
|
|
2269
|
-
onKeep: hoverDelay.keep,
|
|
2270
|
-
onLeave: hoverDelay.disarm,
|
|
2271
|
-
onClose: hoverDelay.close
|
|
2272
|
-
}
|
|
2273
|
-
) : null
|
|
2274
|
-
] })
|
|
2275
|
-
);
|
|
2276
|
-
}
|
|
2277
|
-
function RoundFoot(props) {
|
|
2278
|
-
const clock = props.running ? null : uiPrimitives.formatClock(props.round.startTs);
|
|
2279
|
-
const used = props.running ? null : uiPrimitives.formatDuration(roundDuration(props.round));
|
|
2280
|
-
const measured = props.running ? null : props.usage;
|
|
2281
|
-
const real = measured !== null && measured.inputTokens + measured.outputTokens > 0 ? measured.inputTokens + measured.outputTokens : null;
|
|
2282
|
-
const estimated = real !== null || props.running || props.tokens === null || props.tokens <= 0 ? null : props.tokens;
|
|
2283
|
-
const copy = !props.running && props.copyText !== void 0 && props.copyText !== "";
|
|
2284
|
-
const fork = !props.running && props.onFork !== void 0;
|
|
2285
|
-
if (clock === null && !copy && !fork && real === null && estimated === null) return null;
|
|
2286
|
-
return (
|
|
2287
|
-
// 与 `.changes-card` 同理:不再包 `.entry-row`,让 `.turn-seat > .round-foot` 的
|
|
2288
|
-
// 间距规则命中——包一层之后那条规则失配,回落到 `.round-foot` 自带的 -15px
|
|
2289
|
-
// 负外边距(它本来是给旧版 `.chat-inner` 的 16px 间距设计的),会把这一行顶进
|
|
2290
|
-
// 上面的改动卡里(截图里的「底部按钮与文件变更重叠」就是这么来的)。
|
|
2291
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2292
|
-
"div",
|
|
2293
|
-
{
|
|
2294
|
-
className: "round-foot",
|
|
2295
|
-
title: used === null ? void 0 : `用时 ${used}(从发出这条消息到这一轮最后一次写入,中间的工具调用与思考都算在内)`,
|
|
2296
|
-
children: [
|
|
2297
|
-
copy ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2298
|
-
"button",
|
|
2299
|
-
{
|
|
2300
|
-
type: "button",
|
|
2301
|
-
className: "round-act",
|
|
2302
|
-
title: "复制这条回复的原文",
|
|
2303
|
-
"aria-label": "复制这条回复的原文",
|
|
2304
|
-
onClick: () => {
|
|
2305
|
-
void navigator.clipboard.writeText(props.copyText ?? "").catch(() => void 0);
|
|
2306
|
-
},
|
|
2307
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconCopy, { size: 17 })
|
|
2308
|
-
}
|
|
2309
|
-
) : null,
|
|
2310
|
-
fork ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2311
|
-
"button",
|
|
2312
|
-
{
|
|
2313
|
-
type: "button",
|
|
2314
|
-
className: "user-act",
|
|
2315
|
-
title: "以这条消息为界分叉出新会话",
|
|
2316
|
-
"aria-label": "以这条消息为界分叉出新会话",
|
|
2317
|
-
onClick: props.onFork,
|
|
2318
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconBranch, { size: 15 })
|
|
2319
|
-
}
|
|
2320
|
-
) : null,
|
|
2321
|
-
real !== null ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2322
|
-
"span",
|
|
2323
|
-
{
|
|
2324
|
-
className: "round-tokens",
|
|
2325
|
-
title: "这一轮所有模型请求的 prompt 与 completion 之和(宿主上报的真实用量)",
|
|
2326
|
-
children: [
|
|
2327
|
-
"用量 ",
|
|
2328
|
-
uiPrimitives.formatTokens(real),
|
|
2329
|
-
" tok"
|
|
2330
|
-
]
|
|
2331
|
-
}
|
|
2332
|
-
) : null,
|
|
2333
|
-
estimated !== null ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2334
|
-
"span",
|
|
2335
|
-
{
|
|
2336
|
-
className: "round-tokens",
|
|
2337
|
-
title: "助手正文的 token 估算值(老会话无宿主上报用量)",
|
|
2338
|
-
children: [
|
|
2339
|
-
"~",
|
|
2340
|
-
uiPrimitives.formatTokens(estimated),
|
|
2341
|
-
" tok"
|
|
2342
|
-
]
|
|
2343
|
-
}
|
|
2344
|
-
) : null,
|
|
2345
|
-
clock !== null && (real !== null || estimated !== null) ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "round-sep", "aria-hidden": "true", children: "·" }) : null,
|
|
2346
|
-
clock !== null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "round-clock", title: "这条消息发出的时刻(本机时区)", children: clock }) : null
|
|
2347
|
-
]
|
|
2348
|
-
}
|
|
2349
|
-
)
|
|
2350
|
-
);
|
|
2351
|
-
}
|
|
2352
|
-
function TurnStatusLine(props) {
|
|
2353
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "turn-status", children: [
|
|
2354
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "turn-status-spin", "aria-hidden": "true" }),
|
|
2355
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "turn-status-stage", role: "status", children: props.text }),
|
|
2356
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "turn-status-dots", "aria-hidden": "true", children: [
|
|
2357
|
-
/* @__PURE__ */ jsxRuntime.jsx("i", {}),
|
|
2358
|
-
/* @__PURE__ */ jsxRuntime.jsx("i", {}),
|
|
2359
|
-
/* @__PURE__ */ jsxRuntime.jsx("i", {})
|
|
2360
|
-
] })
|
|
2361
|
-
] });
|
|
2362
|
-
}
|
|
2363
|
-
function groupTask(members) {
|
|
2364
|
-
for (const member of members) {
|
|
2365
|
-
const entry = member.entry;
|
|
2366
|
-
if (entry.kind !== "tool") continue;
|
|
2367
|
-
const text = uiPrimitives.toolSummary(entry.call.name, entry.call.argsText);
|
|
2368
|
-
if (text !== "") return text;
|
|
2369
|
-
}
|
|
2370
|
-
return "";
|
|
2371
|
-
}
|
|
2372
|
-
function SeatBody({
|
|
2373
|
-
seat,
|
|
2374
|
-
round,
|
|
2375
|
-
running,
|
|
2376
|
-
sessionId,
|
|
2377
|
-
sessionKey,
|
|
2378
|
-
cwd,
|
|
2379
|
-
roundFolds,
|
|
2380
|
-
foldMemory,
|
|
2381
|
-
stepGrouping,
|
|
2382
|
-
renderSlot,
|
|
2383
|
-
onFork
|
|
2384
|
-
}) {
|
|
2385
|
-
const fold = roundFolds.get(seat.round);
|
|
2386
|
-
const foldRunning = fold?.running === true;
|
|
2387
|
-
const foldable = fold !== void 0 && fold.foldable && fold.hasContent && !foldRunning && !fold.blocked;
|
|
2388
|
-
const turnKey = turnFoldKey(sessionId, seat.round);
|
|
2389
|
-
const turnOpen = foldMemory.open(turnKey, false);
|
|
2390
|
-
const collapsed = foldable && !turnOpen;
|
|
2391
|
-
const reveal = () => {
|
|
2392
|
-
foldMemory.set(turnKey, true);
|
|
2393
|
-
};
|
|
2394
|
-
const showFoldRow = fold !== void 0 && fold.foldable && !foldRunning;
|
|
2395
|
-
const roundInfo = round ?? {
|
|
2396
|
-
index: seat.round,
|
|
2397
|
-
startIndex: seat.rows[0]?.at ?? 0,
|
|
2398
|
-
endIndex: seat.rows[seat.rows.length - 1]?.at ?? 0,
|
|
2399
|
-
startTs: null,
|
|
2400
|
-
endTs: null,
|
|
2401
|
-
answered: true
|
|
2402
|
-
};
|
|
2403
|
-
const answer = seat.rows.map((row) => row.entry).filter((entry) => entry.kind === "text" && entry.id >= 0).at(-1);
|
|
2404
|
-
const tokens = seat.rows.reduce(
|
|
2405
|
-
(sum, row) => row.entry.kind === "text" && row.entry.id >= 0 ? sum + ui$1.estimateTextTokens(row.entry.text) : sum,
|
|
2406
|
-
0
|
|
2407
|
-
);
|
|
2408
|
-
const usage = uiPrimitives.findLast(
|
|
2409
|
-
seat.rows,
|
|
2410
|
-
(row) => (row.entry.kind === "text" || row.entry.kind === "tool") && row.entry.usage !== void 0
|
|
2411
|
-
)?.entry.usage;
|
|
2412
|
-
const seatRow = (row, hidden) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2413
|
-
RowSeat,
|
|
2414
|
-
{
|
|
2415
|
-
hidden,
|
|
2416
|
-
onReveal: reveal,
|
|
2417
|
-
roundIndex: seat.round,
|
|
2418
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(RowBoundary, { entry: row.entry, children: /* @__PURE__ */ jsxRuntime.jsx(RowBody, { row, renderSlot }) })
|
|
2419
|
-
},
|
|
2420
|
-
keyOf(row, sessionKey)
|
|
2421
|
-
);
|
|
2422
|
-
const groupOpen = (group) => foldMemory.open(stepGroupFoldKey(sessionId, group.roundIndex, group.seq), false);
|
|
2423
|
-
const toggleGroup = (group) => {
|
|
2424
|
-
foldMemory.set(stepGroupFoldKey(sessionId, group.roundIndex, group.seq), !groupOpen(group));
|
|
2425
|
-
};
|
|
2426
|
-
const liveDetail = react.useContext(FoldPrefsContext).policy.liveDetail;
|
|
2427
|
-
const rowByAt = new Map(seat.rows.map((row) => [row.at, row]));
|
|
2428
|
-
const processBlocks = [];
|
|
2429
|
-
const afterBlocks = [];
|
|
2430
|
-
const inProcessOf = (row) => fold !== void 0 && fold.foldable && fold.hasContent && row.at >= fold.startIndex && row.at <= fold.endIndex;
|
|
2431
|
-
const pushRow = (row) => {
|
|
2432
|
-
if (inProcessOf(row) && !TURN_INDEPENDENT.has(row.entry.kind)) processBlocks.push(seatRow(row, collapsed));
|
|
2433
|
-
else afterBlocks.push(seatRow(row, false));
|
|
2434
|
-
};
|
|
2435
|
-
for (const item of seatPlan(seat.rows.slice(1).map((row) => row.at), stepGrouping)) {
|
|
2436
|
-
if (item.kind === "group") {
|
|
2437
|
-
const head = item.group;
|
|
2438
|
-
const members = item.members.map((at) => rowByAt.get(at)).filter((member) => member !== void 0);
|
|
2439
|
-
if (!needsGroupHeader(head)) {
|
|
2440
|
-
const only = members[0];
|
|
2441
|
-
if (only !== void 0) pushRow(only);
|
|
2442
|
-
continue;
|
|
2443
|
-
}
|
|
2444
|
-
processBlocks.push(
|
|
2445
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2446
|
-
StepGroupSeat,
|
|
2447
|
-
{
|
|
2448
|
-
group: head,
|
|
2449
|
-
turnCollapsed: collapsed,
|
|
2450
|
-
open: groupOpen(head),
|
|
2451
|
-
showDetail: liveDetail,
|
|
2452
|
-
task: head.closed ? groupTask(members) : "",
|
|
2453
|
-
onToggle: () => toggleGroup(head),
|
|
2454
|
-
onRevealTurn: reveal,
|
|
2455
|
-
children: members.map((member) => seatRow(member, false))
|
|
2456
|
-
},
|
|
2457
|
-
`step-${String(head.roundIndex)}-${String(head.seq)}`
|
|
2458
|
-
)
|
|
2459
|
-
);
|
|
2460
|
-
continue;
|
|
2461
|
-
}
|
|
2462
|
-
const row = rowByAt.get(item.at);
|
|
2463
|
-
if (row === void 0) continue;
|
|
2464
|
-
pushRow(row);
|
|
2465
|
-
}
|
|
2466
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2467
|
-
seat.rows.length === 0 ? null : seatRow(seat.rows[0], false),
|
|
2468
|
-
showFoldRow && fold !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-row", "data-round": seat.round, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2469
|
-
TurnFoldRow,
|
|
2470
|
-
{
|
|
2471
|
-
open: !collapsed,
|
|
2472
|
-
round: roundInfo,
|
|
2473
|
-
disabled: !fold.hasContent || fold.blocked,
|
|
2474
|
-
endReason: fold.endReason,
|
|
2475
|
-
onToggle: () => {
|
|
2476
|
-
foldMemory.set(turnKey, collapsed);
|
|
2477
|
-
}
|
|
2478
|
-
}
|
|
2479
|
-
) }) : null,
|
|
2480
|
-
processBlocks.length === 0 ? null : (
|
|
2481
|
-
// 过程区**包一层**再折:整轮收起是「这一片高度从 0 长回来 / 缩回 0」,一片一起动才行。
|
|
2482
|
-
// 平铺在座位上折不了——收起的行是 `hidden`(不产生盒子),夹在它们之间的 6px flex gap
|
|
2483
|
-
// 会留下来,几十行的轮收起来就是一片空白的间隙堆。包进一格之后,座位的 gap 只算这一格。
|
|
2484
|
-
// 高度动画本身在 CSS:`.turn-process` 的 grid-template-rows 0fr↔1fr(不需要 JS 量高度)。
|
|
2485
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "turn-process", "data-fold": collapsed ? "closed" : "open", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "turn-process-body", children: processBlocks }) })
|
|
2486
|
-
),
|
|
2487
|
-
afterBlocks,
|
|
2488
|
-
running ? null : /* @__PURE__ */ jsxRuntime.jsx(ChangesCard, { rows: seat.rows, cwd }),
|
|
2489
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2490
|
-
RoundFoot,
|
|
2491
|
-
{
|
|
2492
|
-
round: roundInfo,
|
|
2493
|
-
running,
|
|
2494
|
-
copyText: answer?.text,
|
|
2495
|
-
usage: usage ?? null,
|
|
2496
|
-
tokens: tokens > 0 ? tokens : null,
|
|
2497
|
-
onFork
|
|
2498
|
-
}
|
|
2499
|
-
)
|
|
2500
|
-
] });
|
|
2501
|
-
}
|
|
2502
|
-
function RowBody({
|
|
2503
|
-
row,
|
|
2504
|
-
renderSlot
|
|
2505
|
-
}) {
|
|
2506
|
-
const sessionId = react.useContext(ShellSessionContext);
|
|
2507
|
-
const cwd = react.useContext(ShellCwdContext);
|
|
2508
|
-
const entry = row.entry;
|
|
2509
|
-
switch (entry.kind) {
|
|
2510
|
-
case "user":
|
|
2511
|
-
return /* @__PURE__ */ jsxRuntime.jsx(UserRow, { entry });
|
|
2512
|
-
case "text":
|
|
2513
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: row.live ? "entry-text live" : "entry-text", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.MarkdownView, { text: entry.text, path: "", streaming: row.live }) });
|
|
2514
|
-
case "thinking":
|
|
2515
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2516
|
-
ThinkRow,
|
|
2517
|
-
{
|
|
2518
|
-
entry,
|
|
2519
|
-
live: row.live,
|
|
2520
|
-
storeKey: `${sessionId ?? ""}:think:${String(entry.id)}`
|
|
2521
|
-
}
|
|
2522
|
-
);
|
|
2523
|
-
case "tool": {
|
|
2524
|
-
const storeKey = `${sessionId ?? ""}:${String(row.at)}`;
|
|
2525
|
-
return renderSlot?.(TOOLVIEW_SLOT, { entry, storeKey }) ?? /* @__PURE__ */ jsxRuntime.jsx(ToolRow, { entry, storeKey });
|
|
2526
|
-
}
|
|
2527
|
-
case "system": {
|
|
2528
|
-
const notice = uiPrimitives.parseReviewNotice(entry.text);
|
|
2529
|
-
if (notice !== null) return /* @__PURE__ */ jsxRuntime.jsx(uiPrimitives.ReviewNoticeCard, { notice, cwd });
|
|
2530
|
-
return entry.command === true ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system-command", children: entry.text }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system", children: entry.text });
|
|
2531
|
-
}
|
|
2532
|
-
case "turn-max-tokens":
|
|
2533
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system", "data-turn-notice": "max-tokens", children: "这一轮的输出达到长度上限,已被截断" });
|
|
2534
|
-
case "model-retry":
|
|
2535
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "entry-system", "data-turn-notice": "model-retry", children: [
|
|
2536
|
-
"模型请求失败,正在重试(第 ",
|
|
2537
|
-
entry.attempt,
|
|
2538
|
-
" 次):",
|
|
2539
|
-
entry.text
|
|
2540
|
-
] });
|
|
2541
|
-
case "turn-end":
|
|
2542
|
-
if (entry.reason === "completed") return null;
|
|
2543
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system", children: entry.reason === "aborted" ? "这一轮被中断" : "这一轮过程失败" });
|
|
2544
|
-
case "plan":
|
|
2545
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `plan-card ${entry.plan.decision === "pending" ? "pending" : "settled"}`, children: [
|
|
2546
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "plan-head", children: [
|
|
2547
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "plan-title", children: entry.plan.title }),
|
|
2548
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "plan-verdict", children: entry.plan.decision === "pending" ? "等你批" : entry.plan.decision === "approved" ? "已批准" : "未批准" })
|
|
2549
|
-
] }),
|
|
2550
|
-
/* @__PURE__ */ jsxRuntime.jsx("pre", { className: "plan-body", children: entry.plan.text }),
|
|
2551
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "plan-foot", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "plan-file", title: entry.plan.file, children: entry.plan.file }) })
|
|
2552
|
-
] });
|
|
2553
|
-
case "subagent":
|
|
2554
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SubagentRow, { entry });
|
|
2555
|
-
case "changes":
|
|
2556
|
-
case "turnDiff":
|
|
2557
|
-
return null;
|
|
2558
|
-
default: {
|
|
2559
|
-
const kind = entry.kind;
|
|
2560
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "entry-system", children: [
|
|
2561
|
-
"认不出的条目:",
|
|
2562
|
-
String(kind)
|
|
2563
|
-
] });
|
|
2564
|
-
}
|
|
2565
|
-
}
|
|
2566
|
-
}
|
|
2567
|
-
class RowBoundary extends react.Component {
|
|
2568
|
-
state = { error: null };
|
|
2569
|
-
static getDerivedStateFromError(error) {
|
|
2570
|
-
return { error };
|
|
2571
|
-
}
|
|
2572
|
-
componentDidUpdate(previous) {
|
|
2573
|
-
if (this.state.error !== null && previous.entry !== this.props.entry) this.setState({ error: null });
|
|
2574
|
-
}
|
|
2575
|
-
render() {
|
|
2576
|
-
if (this.state.error !== null) {
|
|
2577
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "entry-system", children: [
|
|
2578
|
-
"这一条没画出来:",
|
|
2579
|
-
this.state.error.message
|
|
2580
|
-
] });
|
|
2581
|
-
}
|
|
2582
|
-
return this.props.children;
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
const WELCOME_CARDS = [
|
|
2586
|
-
{ id: "read", Icon: ui$1.IconCode, title: "看懂代码", hint: "解释一处实现的来龙去脉", prompt: "帮我讲清楚这段代码在做什么:\n" },
|
|
2587
|
-
{ id: "build", Icon: ui$1.IconSpark, title: "做点东西", hint: "从需求一路写到能跑", prompt: "帮我实现:" },
|
|
2588
|
-
{
|
|
2589
|
-
id: "review",
|
|
2590
|
-
Icon: ui$1.IconDiff,
|
|
2591
|
-
title: "审查改动",
|
|
2592
|
-
hint: "看未提交的改动有没有坑",
|
|
2593
|
-
prompt: "审查当前未提交的改动,指出风险、遗漏和可以简化的地方。"
|
|
2594
|
-
},
|
|
2595
|
-
{ id: "fix", Icon: ui$1.IconTarget, title: "排查问题", hint: "从一个报错查到根因", prompt: "帮我排查一下这个问题:\n" }
|
|
2596
|
-
];
|
|
2597
|
-
const WELCOME_ICON_BY_ID = new Map(
|
|
2598
|
-
WELCOME_CARDS.map((card) => [`welcome.${card.id}`, card.Icon])
|
|
2599
|
-
);
|
|
2600
|
-
function elapsedLabel(at) {
|
|
2601
|
-
const minutes = Math.max(Math.round((Date.now() - at) / 6e4), 0);
|
|
2602
|
-
if (minutes < 1) return "刚刚";
|
|
2603
|
-
if (minutes < 60) return `${String(minutes)} 分钟前`;
|
|
2604
|
-
const hours = Math.round(minutes / 60);
|
|
2605
|
-
if (hours < 24) return `${String(hours)} 小时前`;
|
|
2606
|
-
return `${String(Math.round(hours / 24))} 天前`;
|
|
2607
|
-
}
|
|
2608
|
-
function WelcomeState({ cards, resume, leading, sessionKey, cwd, composerReady, onResume }) {
|
|
2609
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "welcome", children: [
|
|
2610
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { children: "有什么可以帮忙的?" }),
|
|
2611
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
2612
|
-
"输入 ",
|
|
2613
|
-
/* @__PURE__ */ jsxRuntime.jsx("code", { children: "/" }),
|
|
2614
|
-
" 查看可用指令 · 消息会携带当前工作目录上下文"
|
|
2615
|
-
] }),
|
|
2616
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "welcome-cards", children: cards.map((card) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2617
|
-
"button",
|
|
2618
|
-
{
|
|
2619
|
-
type: "button",
|
|
2620
|
-
className: "welcome-card",
|
|
2621
|
-
disabled: !composerReady,
|
|
2622
|
-
onClick: card.run,
|
|
2623
|
-
children: [
|
|
2624
|
-
/* @__PURE__ */ jsxRuntime.jsx(card.Icon, { size: 16 }),
|
|
2625
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "welcome-card-text", children: [
|
|
2626
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "welcome-card-title", children: card.title }),
|
|
2627
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "welcome-card-hint", children: card.hint })
|
|
2628
|
-
] })
|
|
2629
|
-
]
|
|
2630
|
-
},
|
|
2631
|
-
card.id
|
|
2632
|
-
)) }),
|
|
2633
|
-
resume === null ? null : /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "welcome-resume", onClick: () => onResume(resume.id), children: [
|
|
2634
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconClock, { size: 13 }),
|
|
2635
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "welcome-resume-title", children: [
|
|
2636
|
-
"接着上次:",
|
|
2637
|
-
resume.title
|
|
2638
|
-
] }),
|
|
2639
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "welcome-resume-time", children: elapsedLabel(resume.updatedAt) })
|
|
2640
|
-
] }),
|
|
2641
|
-
leading.map((row) => {
|
|
2642
|
-
if (row.entry.kind !== "system") return null;
|
|
2643
|
-
if (row.entry.command === true) {
|
|
2644
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system-command", children: row.entry.text }, keyOf(row, sessionKey));
|
|
2645
|
-
}
|
|
2646
|
-
const notice = uiPrimitives.parseReviewNotice(row.entry.text);
|
|
2647
|
-
if (notice === null) return null;
|
|
2648
|
-
return /* @__PURE__ */ jsxRuntime.jsx(uiPrimitives.ReviewNoticeCard, { notice, cwd }, keyOf(row, sessionKey));
|
|
2649
|
-
})
|
|
2650
|
-
] });
|
|
2651
|
-
}
|
|
2652
|
-
const SUBAGENT_FLOW_SLOT = "shell.subagent.flow";
|
|
2653
|
-
function SubagentFlow(props) {
|
|
2654
|
-
const entries = props.entries ?? uiPrimitives.NO_ENTRIES;
|
|
2655
|
-
const cwd = props.cwd ?? "";
|
|
2656
|
-
const toolRender = props.renderSlot ?? ((_name, owner) => /* @__PURE__ */ jsxRuntime.jsx(ToolRow, { entry: owner.entry, storeKey: owner.storeKey }));
|
|
2657
|
-
const rows = react.useMemo(() => entries.map((entry, at) => ({ entry, live: false, at })), [entries]);
|
|
2658
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ShellSessionContext.Provider, { value: props.sessionKey ?? null, children: /* @__PURE__ */ jsxRuntime.jsx(ShellCwdContext.Provider, { value: cwd, children: /* @__PURE__ */ jsxRuntime.jsx(FoldPrefsContext.Provider, { value: FOLD_PREFS, children: /* @__PURE__ */ jsxRuntime.jsx(FlowActionsContext.Provider, { value: NO_ACTIONS, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "chat-inner subagent-flow", children: rows.map((row) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-row", children: /* @__PURE__ */ jsxRuntime.jsx(RowBoundary, { entry: row.entry, children: row.entry.kind === "user" ? /* @__PURE__ */ jsxRuntime.jsx(ReadonlyUserRow, { entry: row.entry }) : /* @__PURE__ */ jsxRuntime.jsx(RowBody, { row, renderSlot: toolRender }) }) }, `sub|${row.entry.kind}|${String(row.entry.id)}`)) }) }) }) }) });
|
|
2659
|
-
}
|
|
2660
|
-
const BUILTIN_TOOLVIEW_PRIORITY = 100;
|
|
2661
|
-
const ui = ui$1.defineUiPlugin({
|
|
2662
|
-
name: "消息流",
|
|
2663
|
-
apply(ui2) {
|
|
2664
|
-
registerToolCard(ui2);
|
|
2665
|
-
ui2.slots.register(
|
|
2666
|
-
"shell.main",
|
|
2667
|
-
{ id: "transcript.flow", order: 1, children: { [TOOLVIEW_SLOT]: "chain" } },
|
|
2668
|
-
TranscriptFlow
|
|
2669
|
-
);
|
|
2670
|
-
ui2.slots.register(
|
|
2671
|
-
TOOLVIEW_SLOT,
|
|
2672
|
-
{
|
|
2673
|
-
id: "transcript.toolview.builtin",
|
|
2674
|
-
priority: BUILTIN_TOOLVIEW_PRIORITY,
|
|
2675
|
-
// owner 的类型来自 SlotMap 的声明(D1):entry 就是渲染方传的那条工具调用,
|
|
2676
|
-
// 不需要再对 unknown 做断言。
|
|
2677
|
-
select: (owner) => uiPrimitives.matchTool(owner.entry.call.name)
|
|
2678
|
-
},
|
|
2679
|
-
BuiltinToolView
|
|
2680
|
-
);
|
|
2681
|
-
ui2.slots.declare(SUBAGENT_FLOW_SLOT, "list");
|
|
2682
|
-
ui2.slots.register(
|
|
2683
|
-
SUBAGENT_FLOW_SLOT,
|
|
2684
|
-
{ id: "transcript.subagent.flow", order: 1, children: { [TOOLVIEW_SLOT]: "chain" } },
|
|
2685
|
-
SubagentFlow
|
|
2686
|
-
);
|
|
2687
|
-
ui2.provide("transcriptFlow", { Component: SubagentFlow, slot: SUBAGENT_FLOW_SLOT });
|
|
2688
|
-
}
|
|
2689
|
-
});
|
|
2690
|
-
function TranscriptFlow({
|
|
2691
|
-
renderSlot
|
|
2692
|
-
}) {
|
|
2693
|
-
const entries = ui$1.useHostSelector(uiPrimitives.readEntries);
|
|
2694
|
-
const live = ui$1.useHostSelector(uiPrimitives.readLive);
|
|
2695
|
-
const turnState = ui$1.useHostSelector(uiPrimitives.readTurnState);
|
|
2696
|
-
const compactingSince = ui$1.useHostSelector(uiPrimitives.readCompactingSince);
|
|
2697
|
-
const sessionPath = ui$1.useHostSelector(uiPrimitives.readSessionPath);
|
|
2698
|
-
const sessionId = ui$1.useHostSelector(readSessionId);
|
|
2699
|
-
const cwd = ui$1.useHostSelector(uiPrimitives.readCwd) ?? "";
|
|
2700
|
-
const channel = ui$1.useHostChannel();
|
|
2701
|
-
const sessionKey = sessionPath ?? sessionId ?? "";
|
|
2702
|
-
const seats = react.useMemo(() => buildSeats(entries, live), [entries, live]);
|
|
2703
|
-
const follow = useFollowBottom(entries.length + live.length, sessionKey);
|
|
2704
|
-
const [prefs, setPrefs] = react.useState(FOLD_PREFS);
|
|
2705
|
-
const [behavior, setBehavior] = react.useState({
|
|
2706
|
-
sound: true,
|
|
2707
|
-
variant: 1,
|
|
2708
|
-
notify: true
|
|
2709
|
-
});
|
|
2710
|
-
react.useEffect(() => {
|
|
2711
|
-
const read = () => {
|
|
2712
|
-
void channel.invoke("getUiPrefs", []).then((value) => {
|
|
2713
|
-
setPrefs({
|
|
2714
|
-
policy: processFoldPolicy(readFoldValue(value["processFold"])),
|
|
2715
|
-
reasoningOpen: value["reasoningDefaultOpen"] === true,
|
|
2716
|
-
toolOpen: value["toolDefaultOpen"] === true
|
|
2717
|
-
});
|
|
2718
|
-
const variant = value["turnCompleteSoundVariant"];
|
|
2719
|
-
setBehavior({
|
|
2720
|
-
sound: value["turnCompleteSound"] !== false,
|
|
2721
|
-
variant: typeof variant === "number" && Number.isFinite(variant) ? variant : 1,
|
|
2722
|
-
notify: value["turnCompleteNotify"] !== false
|
|
2723
|
-
});
|
|
2724
|
-
}).catch(() => void 0);
|
|
2725
|
-
};
|
|
2726
|
-
read();
|
|
2727
|
-
window.addEventListener("shell.uiprefs", read);
|
|
2728
|
-
return () => window.removeEventListener("shell.uiprefs", read);
|
|
2729
|
-
}, [channel]);
|
|
2730
|
-
const prevState = react.useRef(turnState);
|
|
2731
|
-
const behaviorRef = react.useRef(behavior);
|
|
2732
|
-
behaviorRef.current = behavior;
|
|
2733
|
-
const sessionRef = react.useRef(sessionPath);
|
|
2734
|
-
react.useEffect(() => {
|
|
2735
|
-
const was = prevState.current;
|
|
2736
|
-
prevState.current = turnState;
|
|
2737
|
-
if (was === "idle" || turnState !== "idle") return;
|
|
2738
|
-
if (sessionRef.current !== sessionPath) return;
|
|
2739
|
-
if (behaviorRef.current.sound) uiPrimitives.playCompletionSound(behaviorRef.current.variant);
|
|
2740
|
-
const background = document.hidden || !document.hasFocus();
|
|
2741
|
-
const native = ui$1.getHostNative();
|
|
2742
|
-
if (background && behaviorRef.current.notify && native.available) {
|
|
2743
|
-
const last = [...entries].reverse().find((entry) => entry.kind === "text");
|
|
2744
|
-
const body = last !== void 0 && last.kind === "text" ? last.text.replace(/\s+/g, " ").trim().slice(0, 120) : "任务完成";
|
|
2745
|
-
void native.invoke("notify", [{ title: "任务完成", body }]).catch(() => void 0);
|
|
2746
|
-
}
|
|
2747
|
-
}, [turnState, sessionPath, entries]);
|
|
2748
|
-
const [earliest, setEarliest] = react.useState(null);
|
|
2749
|
-
const roundSizes = react.useMemo(() => seats.rounds.map((seat) => seat.rows.length), [seats.rounds]);
|
|
2750
|
-
const tailStart = react.useMemo(() => pageStartRound(roundSizes, roundSizes.length), [roundSizes]);
|
|
2751
|
-
const firstVisible = earliest === null ? tailStart : Math.min(earliest, tailStart);
|
|
2752
|
-
const visibleSeats = react.useMemo(
|
|
2753
|
-
() => seats.rounds.filter((seat) => seat.round >= firstVisible),
|
|
2754
|
-
[seats.rounds, firstVisible]
|
|
2755
|
-
);
|
|
2756
|
-
const earlierRounds = react.useMemo(
|
|
2757
|
-
() => firstVisible - pageStartRound(roundSizes, firstVisible),
|
|
2758
|
-
[roundSizes, firstVisible]
|
|
2759
|
-
);
|
|
2760
|
-
const cleared = seats.rounds.length === 0;
|
|
2761
|
-
react.useEffect(() => {
|
|
2762
|
-
setEarliest(null);
|
|
2763
|
-
}, [sessionKey, cleared]);
|
|
2764
|
-
const earlierRef = react.useRef(null);
|
|
2765
|
-
const pageAnchor = react.useRef(null);
|
|
2766
|
-
const beginPaging = () => {
|
|
2767
|
-
const button = earlierRef.current;
|
|
2768
|
-
if (button === null) return;
|
|
2769
|
-
const scroller = button.closest(".chat");
|
|
2770
|
-
if (!(scroller instanceof HTMLElement)) return;
|
|
2771
|
-
const seat = scroller.querySelector("[data-round-seat]");
|
|
2772
|
-
pageAnchor.current = seat === null ? null : { node: seat, top: seat.getBoundingClientRect().top - scroller.getBoundingClientRect().top, from: firstVisible };
|
|
2773
|
-
};
|
|
2774
|
-
const release = (startRound) => {
|
|
2775
|
-
if (startRound >= firstVisible) return;
|
|
2776
|
-
beginPaging();
|
|
2777
|
-
follow.pause();
|
|
2778
|
-
setEarliest(startRound);
|
|
2779
|
-
};
|
|
2780
|
-
react.useLayoutEffect(() => {
|
|
2781
|
-
const anchor = pageAnchor.current;
|
|
2782
|
-
if (anchor === null) return;
|
|
2783
|
-
pageAnchor.current = null;
|
|
2784
|
-
if (firstVisible >= anchor.from || !anchor.node.isConnected) return;
|
|
2785
|
-
const scroller = anchor.node.closest(".chat");
|
|
2786
|
-
if (!(scroller instanceof HTMLElement)) return;
|
|
2787
|
-
const top = anchor.node.getBoundingClientRect().top - scroller.getBoundingClientRect().top;
|
|
2788
|
-
scroller.scrollTop += top - anchor.top;
|
|
2789
|
-
}, [firstVisible]);
|
|
2790
|
-
const foldMemory = useFoldMemory();
|
|
2791
|
-
const rounds = seats.infos;
|
|
2792
|
-
const liveRoundIndex = rounds.length - 1;
|
|
2793
|
-
const roundFolds = react.useMemo(
|
|
2794
|
-
() => buildRoundFolds([...entries, ...live], rounds, { foldTurns: prefs.policy.foldTurns, live: turnState !== "idle", lastRoundIndex: liveRoundIndex }),
|
|
2795
|
-
[entries, live, rounds, prefs.policy.foldTurns, turnState, liveRoundIndex]
|
|
2796
|
-
);
|
|
2797
|
-
const stepGrouping = react.useMemo(
|
|
2798
|
-
() => prefs.policy.stepGrouping === "none" ? EMPTY_STEP_GROUPING : groupSteps(
|
|
2799
|
-
[...entries, ...live],
|
|
2800
|
-
rounds,
|
|
2801
|
-
// running 谓词直接复用 roundFold——口径单点,别处不再重判
|
|
2802
|
-
(roundIndex) => roundFolds.get(roundIndex)?.running ?? false,
|
|
2803
|
-
prefs.policy.stepGrouping === "history"
|
|
2804
|
-
),
|
|
2805
|
-
[entries, live, rounds, roundFolds, prefs.policy.stepGrouping]
|
|
2806
|
-
);
|
|
2807
|
-
const runningRounds = react.useMemo(() => {
|
|
2808
|
-
const set = /* @__PURE__ */ new Set();
|
|
2809
|
-
for (const fold of roundFolds.values()) if (fold.running) set.add(fold.roundIndex);
|
|
2810
|
-
return set;
|
|
2811
|
-
}, [roundFolds]);
|
|
2812
|
-
const prevRunningRounds = react.useRef(/* @__PURE__ */ new Set());
|
|
2813
|
-
react.useEffect(() => {
|
|
2814
|
-
const settled = [];
|
|
2815
|
-
for (const roundIndex of prevRunningRounds.current) {
|
|
2816
|
-
if (runningRounds.has(roundIndex)) continue;
|
|
2817
|
-
settled.push(turnFoldKey(sessionId, roundIndex));
|
|
2818
|
-
for (const group of stepGrouping.groups) {
|
|
2819
|
-
if (group.roundIndex === roundIndex) settled.push(stepGroupFoldKey(sessionId, roundIndex, group.seq));
|
|
2820
|
-
}
|
|
2821
|
-
}
|
|
2822
|
-
foldMemory.reset(settled);
|
|
2823
|
-
prevRunningRounds.current = runningRounds;
|
|
2824
|
-
}, [runningRounds, stepGrouping, sessionId]);
|
|
2825
|
-
const forkRound = (seat) => {
|
|
2826
|
-
if (sessionPath === null) return;
|
|
2827
|
-
const roundNo = seat.round + 1;
|
|
2828
|
-
void (async () => {
|
|
2829
|
-
try {
|
|
2830
|
-
const result = await channel.invoke("forkSession", [sessionPath, roundNo]);
|
|
2831
|
-
if (result.ok !== true) {
|
|
2832
|
-
ui$1.toastErr(result.error ?? "分叉失败");
|
|
2833
|
-
return;
|
|
2834
|
-
}
|
|
2835
|
-
await channel.invoke("openSession", result.path === void 0 ? [] : [result.path]);
|
|
2836
|
-
await channel.invoke("refreshSessions", []);
|
|
2837
|
-
ui$1.toastOk("已从这一轮分叉出新会话");
|
|
2838
|
-
} catch (reason) {
|
|
2839
|
-
ui$1.toastErr(`分叉失败:${reason instanceof Error ? reason.message : String(reason)}`);
|
|
2840
|
-
}
|
|
2841
|
-
})();
|
|
2842
|
-
};
|
|
2843
|
-
const editAndResend = (entry, text) => {
|
|
2844
|
-
const all = [...entries, ...live];
|
|
2845
|
-
const at = all.findIndex((item) => item.id === entry.id);
|
|
2846
|
-
if (at < 0) {
|
|
2847
|
-
ui$1.toastErr("这条消息已经不在会话里了,刷新后再试");
|
|
2848
|
-
return;
|
|
2849
|
-
}
|
|
2850
|
-
const keep = all.slice(0, at).filter((item) => item.kind === "user" && item.internal !== true).length;
|
|
2851
|
-
if (sessionPath === null) {
|
|
2852
|
-
ui$1.toastErr("这条会话还没落盘,先发一条消息再编辑");
|
|
2853
|
-
return;
|
|
2854
|
-
}
|
|
2855
|
-
void (async () => {
|
|
2856
|
-
try {
|
|
2857
|
-
const result = await channel.invoke("rewindSession", [sessionPath, keep, text]);
|
|
2858
|
-
if (result?.ok !== true) {
|
|
2859
|
-
ui$1.toastErr(result?.error ?? "编辑失败");
|
|
2860
|
-
return;
|
|
2861
|
-
}
|
|
2862
|
-
await channel.invoke("submit", [text]);
|
|
2863
|
-
await channel.invoke("refreshSessions", []);
|
|
2864
|
-
} catch (reason) {
|
|
2865
|
-
ui$1.toastErr(`重发失败:${reason instanceof Error ? reason.message : String(reason)}`);
|
|
2866
|
-
}
|
|
2867
|
-
})();
|
|
2868
|
-
};
|
|
2869
|
-
const actions = { editAndResend, busy: turnState !== "idle" };
|
|
2870
|
-
const activity = react.useMemo(() => liveActivity([...entries, ...live], turnState), [entries, live, turnState]);
|
|
2871
|
-
const railRounds = react.useMemo(
|
|
2872
|
-
() => seats.rounds.map((seat) => {
|
|
2873
|
-
const user = seat.rows[0]?.entry;
|
|
2874
|
-
const answer = seat.rows.map((row) => row.entry).filter((entry) => entry.kind === "text" && entry.id >= 0).at(-1);
|
|
2875
|
-
return {
|
|
2876
|
-
round: seat.round,
|
|
2877
|
-
// 题面预览只在来源是**人**时才填(对照 dsh 的 turnOutline:非 user 来源不留题面)。
|
|
2878
|
-
// internal 消息(队友汇报、后台作业通知……)有刻度但不给原文,改给一句人话——
|
|
2879
|
-
// 绝不把 `<teammate-report …>` 或作业通知原文当题面塞进悬停卡。
|
|
2880
|
-
prompt: user?.kind !== "user" ? "" : user.internal === true ? internalLabel(user.text) : previewText(user.text, "prompt"),
|
|
2881
|
-
response: answer === void 0 ? "" : previewText(answer.text, "response")
|
|
2882
|
-
};
|
|
2883
|
-
}),
|
|
2884
|
-
[seats.rounds]
|
|
2885
|
-
);
|
|
2886
|
-
const revealRound = (round) => {
|
|
2887
|
-
release(round);
|
|
2888
|
-
};
|
|
2889
|
-
const composerDraft = ui$1.useService("composerDraft");
|
|
2890
|
-
const actionsHandle = ui$1.useService(ui$1.ACTIONS_SERVICE);
|
|
2891
|
-
react.useEffect(() => {
|
|
2892
|
-
if (actionsHandle === void 0) return void 0;
|
|
2893
|
-
return actionsHandle.register(
|
|
2894
|
-
"transcript",
|
|
2895
|
-
WELCOME_CARDS.map((card) => ({
|
|
2896
|
-
id: `welcome.${card.id}`,
|
|
2897
|
-
label: card.title,
|
|
2898
|
-
hint: card.hint,
|
|
2899
|
-
group: "提示词",
|
|
2900
|
-
keywords: ["提示词", "prompt"],
|
|
2901
|
-
run: () => {
|
|
2902
|
-
composerDraft?.insert(card.prompt);
|
|
2903
|
-
}
|
|
2904
|
-
}))
|
|
2905
|
-
);
|
|
2906
|
-
}, [actionsHandle, composerDraft]);
|
|
2907
|
-
const sessions = ui$1.useHostSelector(uiPrimitives.readSessions);
|
|
2908
|
-
const resume = react.useMemo(() => {
|
|
2909
|
-
const now = Date.now();
|
|
2910
|
-
return [...sessions].filter(
|
|
2911
|
-
(session) => session.archivedAt === void 0 && session.id !== sessionPath && (session.title ?? "") !== "" && now - session.updatedAt < 7 * 24 * 60 * 60 * 1e3
|
|
2912
|
-
).sort((a, b) => b.updatedAt - a.updatedAt)[0] ?? null;
|
|
2913
|
-
}, [sessions, sessionPath]);
|
|
2914
|
-
const registeredActions = ui$1.useActions();
|
|
2915
|
-
const promptActions = react.useMemo(
|
|
2916
|
-
() => registeredActions.filter((action) => action.group === "提示词"),
|
|
2917
|
-
[registeredActions]
|
|
2918
|
-
);
|
|
2919
|
-
const welcomeCards = react.useMemo(() => {
|
|
2920
|
-
if (promptActions.length > 0) {
|
|
2921
|
-
return promptActions.map((action) => ({
|
|
2922
|
-
id: action.id,
|
|
2923
|
-
Icon: WELCOME_ICON_BY_ID.get(action.id) ?? ui$1.IconSpark,
|
|
2924
|
-
title: action.label,
|
|
2925
|
-
hint: action.hint ?? "",
|
|
2926
|
-
run: action.run
|
|
2927
|
-
}));
|
|
2928
|
-
}
|
|
2929
|
-
return WELCOME_CARDS.map((card) => ({
|
|
2930
|
-
id: card.id,
|
|
2931
|
-
Icon: card.Icon,
|
|
2932
|
-
title: card.title,
|
|
2933
|
-
hint: card.hint,
|
|
2934
|
-
run: () => {
|
|
2935
|
-
composerDraft?.insert(card.prompt);
|
|
2936
|
-
}
|
|
2937
|
-
}));
|
|
2938
|
-
}, [promptActions, composerDraft]);
|
|
2939
|
-
const bootError = react.useMemo(() => {
|
|
2940
|
-
const row = seats.leading.find((item) => item.entry.kind === "system" && item.entry.level === "error");
|
|
2941
|
-
return row !== void 0 && row.entry.kind === "system" ? row.entry : null;
|
|
2942
|
-
}, [seats.leading]);
|
|
2943
|
-
react.useEffect(() => {
|
|
2944
|
-
if (bootError === null) return;
|
|
2945
|
-
ui$1.toastErr(bootError.text.split("\n")[0] ?? "启动时有问题需要处理");
|
|
2946
|
-
}, [bootError?.id, sessionKey]);
|
|
2947
|
-
if (seats.rounds.length === 0 && seats.leading.every((row) => row.entry.kind === "system")) {
|
|
2948
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2949
|
-
WelcomeState,
|
|
2950
|
-
{
|
|
2951
|
-
cards: welcomeCards,
|
|
2952
|
-
resume,
|
|
2953
|
-
leading: seats.leading,
|
|
2954
|
-
sessionKey,
|
|
2955
|
-
cwd,
|
|
2956
|
-
composerReady: composerDraft !== void 0,
|
|
2957
|
-
onResume: (id) => {
|
|
2958
|
-
void (async () => {
|
|
2959
|
-
await channel.invoke("openSession", [id]);
|
|
2960
|
-
await channel.invoke("refreshSessions", []);
|
|
2961
|
-
})();
|
|
2962
|
-
}
|
|
2963
|
-
}
|
|
2964
|
-
);
|
|
2965
|
-
}
|
|
2966
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ShellSessionContext.Provider, { value: sessionId, children: /* @__PURE__ */ jsxRuntime.jsx(ShellCwdContext.Provider, { value: cwd ?? "", children: /* @__PURE__ */ jsxRuntime.jsx(FoldPrefsContext.Provider, { value: prefs, children: /* @__PURE__ */ jsxRuntime.jsxs(FlowActionsContext.Provider, { value: actions, children: [
|
|
2967
|
-
/* @__PURE__ */ jsxRuntime.jsx(JumpRail, { rounds: railRounds, renderedFrom: firstVisible, onReveal: revealRound }),
|
|
2968
|
-
firstVisible > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2969
|
-
"button",
|
|
2970
|
-
{
|
|
2971
|
-
type: "button",
|
|
2972
|
-
className: "chat-earlier",
|
|
2973
|
-
ref: earlierRef,
|
|
2974
|
-
"data-earlier-rounds": firstVisible,
|
|
2975
|
-
"data-tip": "把更早的几轮画出来(一页至少 50 条且 2 轮),你现在看的位置不会动",
|
|
2976
|
-
onClick: () => {
|
|
2977
|
-
release(firstVisible - earlierRounds);
|
|
2978
|
-
},
|
|
2979
|
-
children: `加载更早的 ${String(earlierRounds)} 轮(上面还有 ${String(firstVisible)} 轮)`
|
|
2980
|
-
}
|
|
2981
|
-
) : null,
|
|
2982
|
-
seats.leading.map((row) => /* @__PURE__ */ jsxRuntime.jsx(RowBoundary, { entry: row.entry, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-row", children: /* @__PURE__ */ jsxRuntime.jsx(RowBody, { row, renderSlot }) }) }, keyOf(row, sessionKey))),
|
|
2983
|
-
visibleSeats.map((seat) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "turn-seat", "data-round-seat": seat.round, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2984
|
-
SeatBody,
|
|
2985
|
-
{
|
|
2986
|
-
seat,
|
|
2987
|
-
round: rounds[seat.round],
|
|
2988
|
-
running: turnState !== "idle" && seat.round === rounds.length - 1,
|
|
2989
|
-
sessionId,
|
|
2990
|
-
sessionKey,
|
|
2991
|
-
cwd,
|
|
2992
|
-
roundFolds,
|
|
2993
|
-
foldMemory,
|
|
2994
|
-
stepGrouping,
|
|
2995
|
-
renderSlot,
|
|
2996
|
-
onFork: sessionPath === null || seat.round === 0 ? void 0 : () => forkRound(seat)
|
|
2997
|
-
}
|
|
2998
|
-
) }, seat.round)),
|
|
2999
|
-
compactingSince !== null ? /* @__PURE__ */ jsxRuntime.jsx(TurnStatusLine, { text: "正在压缩上下文" }) : null,
|
|
3000
|
-
activity !== null && compactingSince === null && !(activity.covered && stepGrouping.groups.length > 0) ? /* @__PURE__ */ jsxRuntime.jsx(TurnStatusLine, { text: activity.text }) : null,
|
|
3001
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: follow.setEnd }),
|
|
3002
|
-
follow.paused ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3003
|
-
"button",
|
|
3004
|
-
{
|
|
3005
|
-
type: "button",
|
|
3006
|
-
className: "chat-to-bottom",
|
|
3007
|
-
title: "回到最新一条(自动跟随会重新打开)",
|
|
3008
|
-
onClick: follow.resume,
|
|
3009
|
-
children: "回到底部"
|
|
3010
|
-
}
|
|
3011
|
-
) : null
|
|
3012
|
-
] }) }) }) });
|
|
3013
|
-
}
|
|
3014
|
-
function readFoldValue(value) {
|
|
3015
|
-
return value === "compact" || value === "detailed" || value === "verbose" ? value : "standard";
|
|
3016
|
-
}
|
|
3017
|
-
function readSessionId(snapshot) {
|
|
3018
|
-
const status = snapshot?.["status"];
|
|
3019
|
-
if (typeof status !== "object" || status === null) return null;
|
|
3020
|
-
const value = status["sessionId"];
|
|
3021
|
-
return typeof value === "string" && value !== "" ? value : null;
|
|
3022
|
-
}
|
|
3023
|
-
exports.SUBAGENT_FLOW_SLOT = SUBAGENT_FLOW_SLOT;
|
|
3024
|
-
exports.TOOLVIEW_SLOT = TOOLVIEW_SLOT;
|
|
3025
|
-
exports.default = ui;
|
|
3026
|
-
};
|