@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,2562 +0,0 @@
|
|
|
1
|
-
(globalThis.__DSC_UI_FACTORIES__ ??= {})["composer"] = 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 MAX_FILES = 500;
|
|
9
|
-
const MAX_DEPTH = 4;
|
|
10
|
-
const CACHE_MS = 6e4;
|
|
11
|
-
const MAX_CANDIDATES = 8;
|
|
12
|
-
let cache$1 = null;
|
|
13
|
-
async function listWorkspaceFiles(channel) {
|
|
14
|
-
if (cache$1 !== null && Date.now() - cache$1.at < CACHE_MS) return cache$1.files;
|
|
15
|
-
const files = [];
|
|
16
|
-
const walk = async (dir, depth) => {
|
|
17
|
-
if (depth > MAX_DEPTH || files.length >= MAX_FILES) {
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
let entries = [];
|
|
21
|
-
try {
|
|
22
|
-
const listing = await channel.invoke("dock", [
|
|
23
|
-
"fs-list",
|
|
24
|
-
{ dir }
|
|
25
|
-
]);
|
|
26
|
-
entries = listing.entries ?? [];
|
|
27
|
-
} catch {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
for (const entry of entries) {
|
|
31
|
-
const path = dir === "." ? entry.name : `${dir}/${entry.name}`;
|
|
32
|
-
if (entry.dir) {
|
|
33
|
-
await walk(path, depth + 1);
|
|
34
|
-
if (files.length >= MAX_FILES) return;
|
|
35
|
-
} else {
|
|
36
|
-
files.push(path.replaceAll("\\", "/"));
|
|
37
|
-
if (files.length >= MAX_FILES) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
await walk(".", 1);
|
|
44
|
-
cache$1 = { at: Date.now(), files };
|
|
45
|
-
return files;
|
|
46
|
-
}
|
|
47
|
-
function rankFiles(files, query) {
|
|
48
|
-
const q = query.toLowerCase();
|
|
49
|
-
const scored = [];
|
|
50
|
-
for (const path of files) {
|
|
51
|
-
const lower = path.toLowerCase();
|
|
52
|
-
const nameAt = lower.lastIndexOf("/");
|
|
53
|
-
const name = nameAt < 0 ? lower : lower.slice(nameAt + 1);
|
|
54
|
-
let score = null;
|
|
55
|
-
if (q === "") score = 0;
|
|
56
|
-
else if (name.startsWith(q)) score = 0;
|
|
57
|
-
else if (name.includes(q)) score = 1;
|
|
58
|
-
else if (lower.includes(q)) score = 2;
|
|
59
|
-
if (score !== null) scored.push({ path, score });
|
|
60
|
-
}
|
|
61
|
-
return scored.sort((left, right) => left.score - right.score || left.path.length - right.path.length).slice(0, MAX_CANDIDATES).map((item) => item.path);
|
|
62
|
-
}
|
|
63
|
-
function tokenBefore(value, caret) {
|
|
64
|
-
let at = -1;
|
|
65
|
-
for (let index = caret - 1; index >= 0; index -= 1) {
|
|
66
|
-
const char = value[index];
|
|
67
|
-
if (char === "@") {
|
|
68
|
-
at = index;
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
if (char === " " || char === "\n" || char === " ") return null;
|
|
72
|
-
}
|
|
73
|
-
if (at < 0) return null;
|
|
74
|
-
const query = value.slice(at + 1, caret);
|
|
75
|
-
if (query.length > 120) return null;
|
|
76
|
-
return { from: at, query };
|
|
77
|
-
}
|
|
78
|
-
function useMention(options) {
|
|
79
|
-
const { channel, area, apply } = options;
|
|
80
|
-
const [open, setOpen] = react.useState(false);
|
|
81
|
-
const [items, setItems] = react.useState([]);
|
|
82
|
-
const [loading, setLoading] = react.useState(false);
|
|
83
|
-
const [at, setAt] = react.useState(0);
|
|
84
|
-
const latest = react.useRef(null);
|
|
85
|
-
const dismissed = react.useRef(null);
|
|
86
|
-
const current = react.useRef([]);
|
|
87
|
-
const track = (value, caret) => {
|
|
88
|
-
const token = tokenBefore(value, caret);
|
|
89
|
-
if (token === null) {
|
|
90
|
-
latest.current = null;
|
|
91
|
-
if (open) setOpen(false);
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
const key = `${token.from}:${token.query}`;
|
|
95
|
-
if (dismissed.current === key) return;
|
|
96
|
-
latest.current = { value, caret, ...token };
|
|
97
|
-
setOpen(true);
|
|
98
|
-
if (cache$1 === null) {
|
|
99
|
-
setLoading(true);
|
|
100
|
-
void listWorkspaceFiles(channel).then((files) => {
|
|
101
|
-
const ranked = rankFiles(files, token.query);
|
|
102
|
-
current.current = ranked;
|
|
103
|
-
setItems(ranked);
|
|
104
|
-
setAt(0);
|
|
105
|
-
setLoading(false);
|
|
106
|
-
}).catch(() => {
|
|
107
|
-
setLoading(false);
|
|
108
|
-
});
|
|
109
|
-
} else {
|
|
110
|
-
const ranked = rankFiles(cache$1.files, token.query);
|
|
111
|
-
current.current = ranked;
|
|
112
|
-
setItems(ranked);
|
|
113
|
-
setAt(0);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
const move = (delta) => {
|
|
117
|
-
const count = current.current.length;
|
|
118
|
-
if (count === 0) return;
|
|
119
|
-
setAt((index) => (index + delta + count) % count);
|
|
120
|
-
};
|
|
121
|
-
const close = () => {
|
|
122
|
-
const token = latest.current;
|
|
123
|
-
if (token !== null) dismissed.current = `${token.from}:${token.query}`;
|
|
124
|
-
latest.current = null;
|
|
125
|
-
setOpen(false);
|
|
126
|
-
};
|
|
127
|
-
const pick = () => {
|
|
128
|
-
const token = latest.current;
|
|
129
|
-
const path = current.current[at];
|
|
130
|
-
if (token === null || path === void 0) return;
|
|
131
|
-
const before = token.value.slice(0, token.from);
|
|
132
|
-
const after = token.value.slice(token.caret);
|
|
133
|
-
const inserted = `@${path} `;
|
|
134
|
-
const next = `${before}${inserted}${after}`;
|
|
135
|
-
const caret = token.from + inserted.length;
|
|
136
|
-
latest.current = null;
|
|
137
|
-
setOpen(false);
|
|
138
|
-
apply(next, caret);
|
|
139
|
-
area.current?.focus();
|
|
140
|
-
};
|
|
141
|
-
return { open, items, loading, at, track, move, pick, close };
|
|
142
|
-
}
|
|
143
|
-
function commandQuery(value, caret) {
|
|
144
|
-
if (!value.startsWith("/")) return null;
|
|
145
|
-
if (caret < 1) return null;
|
|
146
|
-
const word = value.slice(1, caret);
|
|
147
|
-
if (/\s/.test(word)) return null;
|
|
148
|
-
return word.toLowerCase();
|
|
149
|
-
}
|
|
150
|
-
function filterCommands(commands, query) {
|
|
151
|
-
const lower = query.toLowerCase();
|
|
152
|
-
return commands.filter((command) => command.name.toLowerCase().startsWith(lower));
|
|
153
|
-
}
|
|
154
|
-
function insertCommand(command) {
|
|
155
|
-
return `/${command.name}${command.args === "" ? "" : " "}`;
|
|
156
|
-
}
|
|
157
|
-
function blockedNow(command, working) {
|
|
158
|
-
return working && command.duringTask === "deny";
|
|
159
|
-
}
|
|
160
|
-
function claimInput(commands, value) {
|
|
161
|
-
const trimmed = value.trimEnd();
|
|
162
|
-
if (!trimmed.startsWith("/")) return null;
|
|
163
|
-
const body = trimmed.slice(1);
|
|
164
|
-
const match = /^(\S+)(?:\s+([\s\S]*))?$/.exec(body);
|
|
165
|
-
if (match === null) return null;
|
|
166
|
-
const word = match[1] ?? "";
|
|
167
|
-
if ((match[2] ?? "").trim() !== "") return null;
|
|
168
|
-
const lower = word.toLowerCase();
|
|
169
|
-
const exact = commands.find((command) => command.name === word);
|
|
170
|
-
const prefix = commands.filter((command) => command.name.toLowerCase().startsWith(lower));
|
|
171
|
-
const spec = exact ?? (prefix.length === 1 ? prefix[0] : void 0) ?? (prefix.filter((command) => command.input !== void 0).length === 1 ? prefix.find((command) => command.input !== void 0) : void 0);
|
|
172
|
-
if (spec === void 0 || spec.input === void 0) return null;
|
|
173
|
-
return { insert: `/${spec.name} `, hint: spec.input.hint };
|
|
174
|
-
}
|
|
175
|
-
let cache = null;
|
|
176
|
-
let unavailable = false;
|
|
177
|
-
function useCommandMenu(options) {
|
|
178
|
-
const { channel, apply, onUnavailable } = options;
|
|
179
|
-
const [open, setOpen] = react.useState(false);
|
|
180
|
-
const [rows, setRows] = react.useState([]);
|
|
181
|
-
const [loading, setLoading] = react.useState(false);
|
|
182
|
-
const [at, setAt] = react.useState(0);
|
|
183
|
-
const latest = react.useRef(null);
|
|
184
|
-
const dismissed = react.useRef(null);
|
|
185
|
-
const current = react.useRef([]);
|
|
186
|
-
const show = (query) => {
|
|
187
|
-
const filtered = filterCommands(cache ?? [], query);
|
|
188
|
-
current.current = filtered;
|
|
189
|
-
setRows(filtered);
|
|
190
|
-
setAt(0);
|
|
191
|
-
};
|
|
192
|
-
const track = (value, caret) => {
|
|
193
|
-
const query = commandQuery(value, caret);
|
|
194
|
-
if (query === null || unavailable) {
|
|
195
|
-
latest.current = null;
|
|
196
|
-
if (open) setOpen(false);
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
if (cache !== null) {
|
|
200
|
-
if (dismissed.current === query) return;
|
|
201
|
-
latest.current = { value, caret, query };
|
|
202
|
-
setOpen(true);
|
|
203
|
-
show(query);
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
if (dismissed.current === query) return;
|
|
207
|
-
latest.current = { value, caret, query };
|
|
208
|
-
setOpen(true);
|
|
209
|
-
setLoading(true);
|
|
210
|
-
void channel.invoke("listUiCommands").then((list) => {
|
|
211
|
-
cache = Array.isArray(list) ? list : [];
|
|
212
|
-
setLoading(false);
|
|
213
|
-
const now = latest.current;
|
|
214
|
-
if (now !== null) show(now.query);
|
|
215
|
-
}).catch(() => {
|
|
216
|
-
unavailable = true;
|
|
217
|
-
setLoading(false);
|
|
218
|
-
latest.current = null;
|
|
219
|
-
setOpen(false);
|
|
220
|
-
onUnavailable?.();
|
|
221
|
-
});
|
|
222
|
-
};
|
|
223
|
-
const move = (delta) => {
|
|
224
|
-
const count = current.current.length;
|
|
225
|
-
if (count === 0) return;
|
|
226
|
-
setAt((index) => (index + delta + count) % count);
|
|
227
|
-
};
|
|
228
|
-
const close = () => {
|
|
229
|
-
const token = latest.current;
|
|
230
|
-
if (token !== null) dismissed.current = token.query;
|
|
231
|
-
latest.current = null;
|
|
232
|
-
setOpen(false);
|
|
233
|
-
};
|
|
234
|
-
const hide = () => {
|
|
235
|
-
latest.current = null;
|
|
236
|
-
dismissed.current = null;
|
|
237
|
-
setOpen(false);
|
|
238
|
-
};
|
|
239
|
-
const pick = () => {
|
|
240
|
-
const inserted = insertText();
|
|
241
|
-
if (inserted === null) return;
|
|
242
|
-
adopt(inserted);
|
|
243
|
-
};
|
|
244
|
-
const adopt = (text) => {
|
|
245
|
-
latest.current = null;
|
|
246
|
-
dismissed.current = null;
|
|
247
|
-
setOpen(false);
|
|
248
|
-
apply(text, text.length);
|
|
249
|
-
};
|
|
250
|
-
const claim = (value) => {
|
|
251
|
-
if (cache === null) return null;
|
|
252
|
-
return claimInput(cache, value);
|
|
253
|
-
};
|
|
254
|
-
const insertText = () => {
|
|
255
|
-
if (latest.current === null) return null;
|
|
256
|
-
const command = current.current[at];
|
|
257
|
-
return command === void 0 ? null : insertCommand(command);
|
|
258
|
-
};
|
|
259
|
-
return { open, rows, loading, at, track, move, pick, close, hide, insertText, claim, adopt };
|
|
260
|
-
}
|
|
261
|
-
const GLYPHS = {
|
|
262
|
-
new: ui$1.IconNewChat,
|
|
263
|
-
compact: ui$1.IconLayers,
|
|
264
|
-
status: ui$1.IconActivity,
|
|
265
|
-
usage: ui$1.IconChart,
|
|
266
|
-
diff: ui$1.IconDiff,
|
|
267
|
-
review: ui$1.IconCode,
|
|
268
|
-
help: ui$1.IconInfo
|
|
269
|
-
};
|
|
270
|
-
function commandGlyph(name) {
|
|
271
|
-
return GLYPHS[name] ?? null;
|
|
272
|
-
}
|
|
273
|
-
const EMPTY_DRAFT = { value: "", history: [], attachments: [] };
|
|
274
|
-
function draftScopeOf(input) {
|
|
275
|
-
if (input.unsaved && input.cwd !== "") {
|
|
276
|
-
return { key: `new:${input.cwd}`, sessionId: input.sessionId, unsaved: true };
|
|
277
|
-
}
|
|
278
|
-
return { key: input.sessionPath, sessionId: input.sessionId, unsaved: false };
|
|
279
|
-
}
|
|
280
|
-
function carryDraft(store, previous, next, current) {
|
|
281
|
-
if (previous.key === next.key) return current;
|
|
282
|
-
const sameSessionSettled = previous.unsaved && !next.unsaved && previous.sessionId !== "" && previous.sessionId === next.sessionId;
|
|
283
|
-
if (sameSessionSettled) store.set(previous.key, EMPTY_DRAFT);
|
|
284
|
-
else store.set(previous.key, current);
|
|
285
|
-
return store.get(next.key) ?? EMPTY_DRAFT;
|
|
286
|
-
}
|
|
287
|
-
const MAX_IMAGES = 20;
|
|
288
|
-
const MAX_IMAGE_BYTES = 20 * 1024 * 1024;
|
|
289
|
-
const TARGET_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
290
|
-
const MAX_IMAGE_EDGE = 2048;
|
|
291
|
-
const MAX_FRAME_EDGE = 1280;
|
|
292
|
-
const SEEK_TIMEOUT_MS = 5e3;
|
|
293
|
-
const FRAME_TOTAL_TIMEOUT_MS = 45e3;
|
|
294
|
-
const IMAGE_MIME = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/jpg", "image/webp", "image/gif"]);
|
|
295
|
-
const IMAGE_EXT = /\.(png|jpe?g|webp|gif)$/i;
|
|
296
|
-
const IMAGE_FORMAT_ERROR = "仅支持 PNG、JPG、WebP、GIF 格式的图片";
|
|
297
|
-
const IMAGE_TOO_LARGE_ERROR = "单张图片超过 20 MB,先缩小一点";
|
|
298
|
-
let nextId = 0;
|
|
299
|
-
function newAttachmentId() {
|
|
300
|
-
nextId += 1;
|
|
301
|
-
return `attach-${String(Date.now())}-${String(nextId)}`;
|
|
302
|
-
}
|
|
303
|
-
function displayNameOf(file, kind) {
|
|
304
|
-
if (file.name !== "") return file.name;
|
|
305
|
-
if (kind === "image") return "粘贴的图片.png";
|
|
306
|
-
if (kind === "video") return "粘贴的视频.mp4";
|
|
307
|
-
return "附件";
|
|
308
|
-
}
|
|
309
|
-
function kindOf(file) {
|
|
310
|
-
if (file.type.startsWith("image/")) return "image";
|
|
311
|
-
if (file.type.startsWith("video/")) return "video";
|
|
312
|
-
return "file";
|
|
313
|
-
}
|
|
314
|
-
function uploadFile(file, name, onProgress) {
|
|
315
|
-
return new Promise((resolve, reject) => {
|
|
316
|
-
const xhr = new XMLHttpRequest();
|
|
317
|
-
xhr.open("POST", `/api/attachments?name=${encodeURIComponent(name)}`);
|
|
318
|
-
xhr.responseType = "text";
|
|
319
|
-
xhr.upload.onprogress = (event) => {
|
|
320
|
-
if (!event.lengthComputable || event.total <= 0) return;
|
|
321
|
-
onProgress?.(Math.min(1, event.loaded / event.total));
|
|
322
|
-
};
|
|
323
|
-
xhr.onload = () => {
|
|
324
|
-
const parsed = parseAttachmentResponse(xhr.responseText);
|
|
325
|
-
if (xhr.status >= 200 && xhr.status < 300 && parsed.ok && parsed.meta !== null) {
|
|
326
|
-
resolve(parsed.meta);
|
|
327
|
-
return;
|
|
328
|
-
}
|
|
329
|
-
reject(new Error(parsed.error !== "" ? parsed.error : `上传失败(HTTP ${String(xhr.status)})`));
|
|
330
|
-
};
|
|
331
|
-
xhr.onerror = () => {
|
|
332
|
-
reject(new Error("上传失败:网络连接中断"));
|
|
333
|
-
};
|
|
334
|
-
xhr.ontimeout = () => {
|
|
335
|
-
reject(new Error("上传失败:等宿主响应超时"));
|
|
336
|
-
};
|
|
337
|
-
xhr.onabort = () => {
|
|
338
|
-
reject(new Error("上传已取消"));
|
|
339
|
-
};
|
|
340
|
-
xhr.send(file);
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
function parseAttachmentResponse(text) {
|
|
344
|
-
let body = null;
|
|
345
|
-
try {
|
|
346
|
-
body = JSON.parse(text);
|
|
347
|
-
} catch {
|
|
348
|
-
return { ok: false, meta: null, error: "" };
|
|
349
|
-
}
|
|
350
|
-
if (typeof body !== "object" || body === null) return { ok: false, meta: null, error: "" };
|
|
351
|
-
const record = body;
|
|
352
|
-
const error = typeof record["error"] === "string" ? record["error"] : "";
|
|
353
|
-
if (record["ok"] !== true) return { ok: false, meta: null, error };
|
|
354
|
-
const meta = record["attachment"];
|
|
355
|
-
if (typeof meta !== "object" || meta === null) return { ok: false, meta: null, error };
|
|
356
|
-
const item = meta;
|
|
357
|
-
const kind = item["kind"];
|
|
358
|
-
if (kind !== "image" && kind !== "video" && kind !== "file") return { ok: false, meta: null, error };
|
|
359
|
-
if (typeof item["sha"] !== "string" || typeof item["name"] !== "string" || typeof item["mime"] !== "string" || typeof item["bytes"] !== "number" || typeof item["url"] !== "string" || typeof item["path"] !== "string") {
|
|
360
|
-
return { ok: false, meta: null, error };
|
|
361
|
-
}
|
|
362
|
-
return {
|
|
363
|
-
ok: true,
|
|
364
|
-
meta: {
|
|
365
|
-
sha: item["sha"],
|
|
366
|
-
kind,
|
|
367
|
-
name: item["name"],
|
|
368
|
-
mime: item["mime"],
|
|
369
|
-
bytes: item["bytes"],
|
|
370
|
-
url: item["url"],
|
|
371
|
-
path: item["path"]
|
|
372
|
-
},
|
|
373
|
-
error
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
async function normalizeImage(file) {
|
|
377
|
-
if (file.size > MAX_IMAGE_BYTES) throw new Error(IMAGE_TOO_LARGE_ERROR);
|
|
378
|
-
const mime = file.type.toLowerCase();
|
|
379
|
-
if (!IMAGE_MIME.has(mime) && !IMAGE_EXT.test(file.name)) throw new Error(IMAGE_FORMAT_ERROR);
|
|
380
|
-
const gif = mime === "image/gif" || /\.gif$/i.test(file.name);
|
|
381
|
-
const direct = !gif && (mime === "image/png" || mime === "image/jpeg" || mime === "image/jpg" || mime === "image/webp") && file.size <= TARGET_IMAGE_BYTES;
|
|
382
|
-
const bitmap = await createImageBitmap(file, { imageOrientation: "from-image" });
|
|
383
|
-
try {
|
|
384
|
-
const edge = Math.max(bitmap.width, bitmap.height);
|
|
385
|
-
const scale = edge > MAX_IMAGE_EDGE ? MAX_IMAGE_EDGE / edge : 1;
|
|
386
|
-
const width = Math.max(1, Math.round(bitmap.width * scale));
|
|
387
|
-
const height = Math.max(1, Math.round(bitmap.height * scale));
|
|
388
|
-
const resized = width !== bitmap.width || height !== bitmap.height;
|
|
389
|
-
if (direct && !resized) return file;
|
|
390
|
-
const canvas = document.createElement("canvas");
|
|
391
|
-
canvas.width = width;
|
|
392
|
-
canvas.height = height;
|
|
393
|
-
const context = canvas.getContext("2d");
|
|
394
|
-
if (context === null) throw new Error("图片处理失败:浏览器画布不可用");
|
|
395
|
-
context.drawImage(bitmap, 0, 0, width, height);
|
|
396
|
-
const hasAlpha = mayHaveAlpha(mime, file.name) && canvasHasTransparency(context, width, height);
|
|
397
|
-
if (hasAlpha) {
|
|
398
|
-
const webp = await canvasToBlob(canvas, "image/webp", 0.85);
|
|
399
|
-
if (webp === null) throw new Error("图片处理失败:无法编码 WebP");
|
|
400
|
-
if (webp.size > TARGET_IMAGE_BYTES) throw new Error("图片压缩后仍超过 4 MB,先换一张小一点的");
|
|
401
|
-
return webp;
|
|
402
|
-
}
|
|
403
|
-
for (const quality of [0.85, 0.75, 0.6]) {
|
|
404
|
-
const jpeg = await canvasToBlob(canvas, "image/jpeg", quality);
|
|
405
|
-
if (jpeg === null) throw new Error("图片处理失败:无法编码 JPEG");
|
|
406
|
-
if (jpeg.size <= TARGET_IMAGE_BYTES) return jpeg;
|
|
407
|
-
}
|
|
408
|
-
throw new Error("图片压缩后仍超过 4 MB,先换一张小一点的");
|
|
409
|
-
} finally {
|
|
410
|
-
bitmap.close();
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
function mayHaveAlpha(mime, name) {
|
|
414
|
-
if (mime === "image/jpeg" || mime === "image/jpg") return false;
|
|
415
|
-
if (/\.jpe?g$/i.test(name)) return false;
|
|
416
|
-
return true;
|
|
417
|
-
}
|
|
418
|
-
function canvasHasTransparency(context, width, height) {
|
|
419
|
-
const data = context.getImageData(0, 0, width, height).data;
|
|
420
|
-
for (let index = 3; index < data.length; index += 4) {
|
|
421
|
-
if (data[index] < 255) return true;
|
|
422
|
-
}
|
|
423
|
-
return false;
|
|
424
|
-
}
|
|
425
|
-
function canvasToBlob(canvas, type, quality) {
|
|
426
|
-
return new Promise((resolve) => {
|
|
427
|
-
canvas.toBlob((blob) => {
|
|
428
|
-
resolve(blob);
|
|
429
|
-
}, type, quality);
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
async function extractVideoFrames(url, count = 6) {
|
|
433
|
-
const frames = [];
|
|
434
|
-
if (typeof document === "undefined" || count <= 0) return frames;
|
|
435
|
-
const video = document.createElement("video");
|
|
436
|
-
video.muted = true;
|
|
437
|
-
video.playsInline = true;
|
|
438
|
-
video.preload = "metadata";
|
|
439
|
-
video.crossOrigin = "anonymous";
|
|
440
|
-
video.setAttribute("aria-hidden", "true");
|
|
441
|
-
video.style.cssText = "position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0;pointer-events:none";
|
|
442
|
-
document.body.appendChild(video);
|
|
443
|
-
return new Promise((resolve) => {
|
|
444
|
-
let finished = false;
|
|
445
|
-
let totalTimer = 0;
|
|
446
|
-
const finish = () => {
|
|
447
|
-
if (finished) return;
|
|
448
|
-
finished = true;
|
|
449
|
-
window.clearTimeout(totalTimer);
|
|
450
|
-
video.pause();
|
|
451
|
-
video.removeAttribute("src");
|
|
452
|
-
video.load();
|
|
453
|
-
video.remove();
|
|
454
|
-
resolve(frames);
|
|
455
|
-
};
|
|
456
|
-
totalTimer = window.setTimeout(finish, FRAME_TOTAL_TIMEOUT_MS);
|
|
457
|
-
video.onerror = () => {
|
|
458
|
-
finish();
|
|
459
|
-
};
|
|
460
|
-
video.onloadedmetadata = () => {
|
|
461
|
-
void (async () => {
|
|
462
|
-
const duration = video.duration;
|
|
463
|
-
if (!Number.isFinite(duration) || duration <= 0) {
|
|
464
|
-
finish();
|
|
465
|
-
return;
|
|
466
|
-
}
|
|
467
|
-
for (let index = 0; index < count; index += 1) {
|
|
468
|
-
if (finished) return;
|
|
469
|
-
const time = duration * (index + 0.5) / count;
|
|
470
|
-
const sought = await seekTo(video, time);
|
|
471
|
-
if (!sought || finished) break;
|
|
472
|
-
const frame = await grabFrame(video);
|
|
473
|
-
if (frame !== null) frames.push(frame);
|
|
474
|
-
}
|
|
475
|
-
finish();
|
|
476
|
-
})();
|
|
477
|
-
};
|
|
478
|
-
video.src = url;
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
function seekTo(video, time) {
|
|
482
|
-
if (Math.abs(video.currentTime - time) < 1e-3) return Promise.resolve(true);
|
|
483
|
-
return new Promise((resolve) => {
|
|
484
|
-
let settled = false;
|
|
485
|
-
const timer = window.setTimeout(() => {
|
|
486
|
-
if (settled) return;
|
|
487
|
-
settled = true;
|
|
488
|
-
video.removeEventListener("seeked", onSeeked);
|
|
489
|
-
resolve(false);
|
|
490
|
-
}, SEEK_TIMEOUT_MS);
|
|
491
|
-
function onSeeked() {
|
|
492
|
-
if (settled) return;
|
|
493
|
-
settled = true;
|
|
494
|
-
window.clearTimeout(timer);
|
|
495
|
-
video.removeEventListener("seeked", onSeeked);
|
|
496
|
-
resolve(true);
|
|
497
|
-
}
|
|
498
|
-
video.addEventListener("seeked", onSeeked);
|
|
499
|
-
try {
|
|
500
|
-
video.currentTime = time;
|
|
501
|
-
} catch {
|
|
502
|
-
if (!settled) {
|
|
503
|
-
settled = true;
|
|
504
|
-
window.clearTimeout(timer);
|
|
505
|
-
video.removeEventListener("seeked", onSeeked);
|
|
506
|
-
resolve(false);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
async function grabFrame(video) {
|
|
512
|
-
const sourceWidth = video.videoWidth;
|
|
513
|
-
const sourceHeight = video.videoHeight;
|
|
514
|
-
if (sourceWidth <= 0 || sourceHeight <= 0) return null;
|
|
515
|
-
const scale = Math.min(1, MAX_FRAME_EDGE / Math.max(sourceWidth, sourceHeight));
|
|
516
|
-
const width = Math.max(1, Math.round(sourceWidth * scale));
|
|
517
|
-
const height = Math.max(1, Math.round(sourceHeight * scale));
|
|
518
|
-
const canvas = document.createElement("canvas");
|
|
519
|
-
canvas.width = width;
|
|
520
|
-
canvas.height = height;
|
|
521
|
-
const context = canvas.getContext("2d");
|
|
522
|
-
if (context === null) return null;
|
|
523
|
-
context.drawImage(video, 0, 0, width, height);
|
|
524
|
-
return canvasToBlob(canvas, "image/jpeg", 0.82);
|
|
525
|
-
}
|
|
526
|
-
function composeSubmit(list) {
|
|
527
|
-
const images = [];
|
|
528
|
-
const files = [];
|
|
529
|
-
for (const item of list) {
|
|
530
|
-
if (item.meta === null) continue;
|
|
531
|
-
if (item.kind === "image") {
|
|
532
|
-
images.push(item.meta.url);
|
|
533
|
-
continue;
|
|
534
|
-
}
|
|
535
|
-
files.push({
|
|
536
|
-
sha: item.meta.sha,
|
|
537
|
-
kind: item.kind,
|
|
538
|
-
name: item.meta.name,
|
|
539
|
-
mime: item.meta.mime,
|
|
540
|
-
bytes: item.meta.bytes,
|
|
541
|
-
path: item.meta.path,
|
|
542
|
-
...item.kind === "video" && item.frames.length > 0 ? { frames: [...item.frames] } : {}
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
const frameCount = files.reduce((sum, file) => sum + (file.frames?.length ?? 0), 0);
|
|
546
|
-
const dropped = Math.max(0, images.length + frameCount - MAX_IMAGES);
|
|
547
|
-
let budget = Math.max(0, MAX_IMAGES - images.length);
|
|
548
|
-
for (const file of files) {
|
|
549
|
-
if (file.frames === void 0) continue;
|
|
550
|
-
const keep = Math.min(file.frames.length, budget);
|
|
551
|
-
budget -= keep;
|
|
552
|
-
if (keep === 0) delete file.frames;
|
|
553
|
-
else if (keep < file.frames.length) file.frames = file.frames.slice(0, keep);
|
|
554
|
-
}
|
|
555
|
-
return { images: images.slice(0, MAX_IMAGES), files, dropped };
|
|
556
|
-
}
|
|
557
|
-
function filteredBranches(rows, query) {
|
|
558
|
-
const needle = query.trim().toLowerCase();
|
|
559
|
-
if (needle === "") return rows;
|
|
560
|
-
return rows.filter((row) => row.name.toLowerCase().includes(needle));
|
|
561
|
-
}
|
|
562
|
-
function wouldOverwrite(text) {
|
|
563
|
-
return /would be overwritten|Please commit your changes or stash/i.test(text);
|
|
564
|
-
}
|
|
565
|
-
function BranchMenu({ open, onOpenChange, git, channel, onFault }) {
|
|
566
|
-
const [branchList, setBranchList] = react.useState(null);
|
|
567
|
-
const [branchQuery, setBranchQuery] = react.useState("");
|
|
568
|
-
const [branchBusy, setBranchBusy] = react.useState(false);
|
|
569
|
-
const [branchCreateOpen, setBranchCreateOpen] = react.useState(false);
|
|
570
|
-
const [newBranchName, setNewBranchName] = react.useState("");
|
|
571
|
-
const branchRows = react.useRef(null);
|
|
572
|
-
react.useEffect(() => {
|
|
573
|
-
if (!open) return void 0;
|
|
574
|
-
let alive = true;
|
|
575
|
-
setBranchQuery("");
|
|
576
|
-
setBranchCreateOpen(false);
|
|
577
|
-
setNewBranchName("");
|
|
578
|
-
void channel.invoke("dock", ["git-branches", {}]).then((list) => {
|
|
579
|
-
if (alive) setBranchList(list);
|
|
580
|
-
}).catch((reason) => {
|
|
581
|
-
if (!alive) return;
|
|
582
|
-
setBranchList(null);
|
|
583
|
-
onFault(`读分支清单失败:${reason instanceof Error ? reason.message : String(reason)}`);
|
|
584
|
-
});
|
|
585
|
-
return () => {
|
|
586
|
-
alive = false;
|
|
587
|
-
};
|
|
588
|
-
}, [open, channel, git.branch]);
|
|
589
|
-
react.useEffect(() => {
|
|
590
|
-
if (!open || branchList === null) return;
|
|
591
|
-
const node = branchRows.current?.querySelector('[data-branch-current="true"]');
|
|
592
|
-
node?.scrollIntoView({ block: "nearest" });
|
|
593
|
-
}, [open, branchList]);
|
|
594
|
-
const switchBranch = (name) => {
|
|
595
|
-
setBranchBusy(true);
|
|
596
|
-
onFault(null);
|
|
597
|
-
onOpenChange(false);
|
|
598
|
-
void channel.invoke("dock", ["git-checkout", { branch: name }], { timeoutMs: ui$1.HUMAN_WAIT_TIMEOUT_MS }).then(() => {
|
|
599
|
-
ui$1.toastOk(`已切到分支「${name}」`);
|
|
600
|
-
}).catch((reason) => {
|
|
601
|
-
const text = reason instanceof Error ? reason.message : String(reason);
|
|
602
|
-
onFault(wouldOverwrite(text) ? `${text}(先提交或暂存这些改动再切:右侧边栏「变更」页签可以提交)` : text);
|
|
603
|
-
}).finally(() => {
|
|
604
|
-
setBranchBusy(false);
|
|
605
|
-
});
|
|
606
|
-
};
|
|
607
|
-
const createBranch = () => {
|
|
608
|
-
const name = newBranchName.trim();
|
|
609
|
-
if (name === "") return;
|
|
610
|
-
setBranchBusy(true);
|
|
611
|
-
onFault(null);
|
|
612
|
-
onOpenChange(false);
|
|
613
|
-
void channel.invoke("dock", ["git-branch-create", { branch: name }], { timeoutMs: ui$1.HUMAN_WAIT_TIMEOUT_MS }).then(() => {
|
|
614
|
-
setBranchCreateOpen(false);
|
|
615
|
-
setNewBranchName("");
|
|
616
|
-
ui$1.toastOk(`已新建并切到分支「${name}」`);
|
|
617
|
-
}).catch((reason) => {
|
|
618
|
-
onFault(reason instanceof Error ? reason.message : String(reason));
|
|
619
|
-
}).finally(() => {
|
|
620
|
-
setBranchBusy(false);
|
|
621
|
-
});
|
|
622
|
-
};
|
|
623
|
-
return git.repo ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "composer-git", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "model-anchor", children: [
|
|
624
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
625
|
-
"button",
|
|
626
|
-
{
|
|
627
|
-
type: "button",
|
|
628
|
-
className: `model-btn git-btn${open ? " open" : ""}`,
|
|
629
|
-
"data-tip": git.detached ? "HEAD 已分离(不在任何分支上);点开可以切回一个分支" : `当前分支:${git.branch}`,
|
|
630
|
-
"aria-haspopup": "menu",
|
|
631
|
-
"aria-expanded": open,
|
|
632
|
-
onClick: () => {
|
|
633
|
-
onOpenChange(!open);
|
|
634
|
-
},
|
|
635
|
-
children: [
|
|
636
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconBranch, { size: 13 }),
|
|
637
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "git-branch-name", children: git.branch }),
|
|
638
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 12 })
|
|
639
|
-
]
|
|
640
|
-
}
|
|
641
|
-
),
|
|
642
|
-
open ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
643
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
644
|
-
"div",
|
|
645
|
-
{
|
|
646
|
-
className: "pop-mask",
|
|
647
|
-
onClick: () => {
|
|
648
|
-
onOpenChange(false);
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
),
|
|
652
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "model-pop git-pop", role: "menu", "aria-label": "切换分支", children: [
|
|
653
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pop-label", children: [
|
|
654
|
-
"切换分支",
|
|
655
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "pop-note", children: [
|
|
656
|
-
branchList?.detached === true ? "HEAD 已分离" : `当前 ${branchList?.current ?? git.branch}`,
|
|
657
|
-
git.dirtyFileCount > 0 ? ` · ${String(git.dirtyFileCount)} 个文件已更改` : ""
|
|
658
|
-
] })
|
|
659
|
-
] }),
|
|
660
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "git-search", children: [
|
|
661
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconSearch, { size: 13 }),
|
|
662
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
663
|
-
"input",
|
|
664
|
-
{
|
|
665
|
-
type: "text",
|
|
666
|
-
value: branchQuery,
|
|
667
|
-
placeholder: "搜索分支…",
|
|
668
|
-
"aria-label": "搜索分支",
|
|
669
|
-
autoFocus: true,
|
|
670
|
-
onChange: (event) => {
|
|
671
|
-
setBranchQuery(event.target.value);
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
)
|
|
675
|
-
] }),
|
|
676
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "model-list git-branch-list", ref: branchRows, children: branchList === null ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pop-item", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: "正在读取分支…" }) }) : filteredBranches(branchList.branches, branchQuery).length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pop-item", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: branchQuery.trim() === "" ? "这个仓库还没有分支" : "没有匹配的分支" }) }) : filteredBranches(branchList.branches, branchQuery).map((row) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
677
|
-
"button",
|
|
678
|
-
{
|
|
679
|
-
type: "button",
|
|
680
|
-
role: "menuitemradio",
|
|
681
|
-
"aria-checked": row.current,
|
|
682
|
-
className: `pop-item${row.current ? " on" : ""}`,
|
|
683
|
-
title: row.current ? `${row.name}(当前分支)` : `切到 ${row.name}`,
|
|
684
|
-
disabled: row.current || branchBusy,
|
|
685
|
-
...row.current ? { "data-branch-current": "true" } : {},
|
|
686
|
-
onClick: () => {
|
|
687
|
-
switchBranch(row.name);
|
|
688
|
-
},
|
|
689
|
-
children: [
|
|
690
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconBranch, { size: 13, className: "git-item-icon" }),
|
|
691
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: row.name }),
|
|
692
|
-
row.current ? /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconCheck, { size: 14, className: "check" }) : null
|
|
693
|
-
]
|
|
694
|
-
},
|
|
695
|
-
row.name
|
|
696
|
-
)) }),
|
|
697
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "git-foot", children: branchCreateOpen ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
698
|
-
"form",
|
|
699
|
-
{
|
|
700
|
-
className: "git-create",
|
|
701
|
-
onSubmit: (event) => {
|
|
702
|
-
event.preventDefault();
|
|
703
|
-
createBranch();
|
|
704
|
-
},
|
|
705
|
-
children: [
|
|
706
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
707
|
-
"input",
|
|
708
|
-
{
|
|
709
|
-
type: "text",
|
|
710
|
-
value: newBranchName,
|
|
711
|
-
placeholder: "新分支名,如 feat/xxx",
|
|
712
|
-
"aria-label": "新分支名",
|
|
713
|
-
autoFocus: true,
|
|
714
|
-
disabled: branchBusy,
|
|
715
|
-
onChange: (event) => {
|
|
716
|
-
setNewBranchName(event.target.value);
|
|
717
|
-
},
|
|
718
|
-
onKeyDown: (event) => {
|
|
719
|
-
if (event.key === "Escape") {
|
|
720
|
-
event.preventDefault();
|
|
721
|
-
setBranchCreateOpen(false);
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
),
|
|
726
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "submit", disabled: branchBusy || newBranchName.trim() === "", children: "创建并切换" })
|
|
727
|
-
]
|
|
728
|
-
}
|
|
729
|
-
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
730
|
-
"button",
|
|
731
|
-
{
|
|
732
|
-
type: "button",
|
|
733
|
-
className: "git-foot-btn",
|
|
734
|
-
disabled: branchBusy,
|
|
735
|
-
onClick: () => {
|
|
736
|
-
setBranchCreateOpen(true);
|
|
737
|
-
},
|
|
738
|
-
children: [
|
|
739
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconPlus, { size: 13 }),
|
|
740
|
-
"新建分支…"
|
|
741
|
-
]
|
|
742
|
-
}
|
|
743
|
-
) })
|
|
744
|
-
] })
|
|
745
|
-
] }) : null
|
|
746
|
-
] }) }) : null;
|
|
747
|
-
}
|
|
748
|
-
const EFFORT_LABELS = {
|
|
749
|
-
default: "默认",
|
|
750
|
-
off: "关",
|
|
751
|
-
low: "低",
|
|
752
|
-
high: "高",
|
|
753
|
-
max: "最大"
|
|
754
|
-
};
|
|
755
|
-
const EFFORT_FALLBACK = ["default", "off", "low", "high", "max"];
|
|
756
|
-
function groupModels(choices) {
|
|
757
|
-
const groups = /* @__PURE__ */ new Map();
|
|
758
|
-
const buckets = /* @__PURE__ */ new Map();
|
|
759
|
-
for (const choice of choices) {
|
|
760
|
-
const bucket = buckets.get(choice.provider);
|
|
761
|
-
if (bucket === void 0) buckets.set(choice.provider, [choice]);
|
|
762
|
-
else bucket.push(choice);
|
|
763
|
-
if (!groups.has(choice.provider)) {
|
|
764
|
-
groups.set(choice.provider, {
|
|
765
|
-
provider: choice.provider,
|
|
766
|
-
displayName: choice.providerDisplayName === "" ? choice.provider : choice.providerDisplayName,
|
|
767
|
-
models: []
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
return [...groups.values()].map((group) => ({
|
|
772
|
-
...group,
|
|
773
|
-
models: buckets.get(group.provider) ?? []
|
|
774
|
-
}));
|
|
775
|
-
}
|
|
776
|
-
function findCurrent(groups, provider, model) {
|
|
777
|
-
if (model === "") return { entry: void 0, group: void 0, exact: false };
|
|
778
|
-
if (provider !== "") {
|
|
779
|
-
const group = groups.find((item) => item.provider === provider);
|
|
780
|
-
const entry = group?.models.find((item) => item.model === model);
|
|
781
|
-
if (entry !== void 0 && group !== void 0) return { entry, group, exact: true };
|
|
782
|
-
}
|
|
783
|
-
for (const group of groups) {
|
|
784
|
-
const entry = group.models.find((item) => item.value === model);
|
|
785
|
-
if (entry !== void 0) return { entry, group, exact: group.provider === provider };
|
|
786
|
-
}
|
|
787
|
-
for (const group of groups) {
|
|
788
|
-
const entry = group.models.find((item) => item.model === model);
|
|
789
|
-
if (entry !== void 0) return { entry, group, exact: false };
|
|
790
|
-
}
|
|
791
|
-
return { entry: void 0, group: void 0, exact: false };
|
|
792
|
-
}
|
|
793
|
-
function modelChipText(groups, provider, model) {
|
|
794
|
-
const current = findCurrent(groups, provider, model);
|
|
795
|
-
const name = current.entry?.model ?? (model === "" ? "未知模型" : model);
|
|
796
|
-
const displayName = current.group?.displayName ?? groups.find((item) => item.provider === provider)?.displayName ?? provider;
|
|
797
|
-
const usable = groups.length > 1 && displayName !== "" && name !== "未知模型";
|
|
798
|
-
const prefix = usable ? `${displayName}/` : "";
|
|
799
|
-
return { prefix, name, full: `${prefix}${name}` };
|
|
800
|
-
}
|
|
801
|
-
function effortChoices(entry) {
|
|
802
|
-
if (entry === void 0) return EFFORT_FALLBACK;
|
|
803
|
-
const levels = entry.thinkingLevels;
|
|
804
|
-
const rest = [];
|
|
805
|
-
for (const level of levels) {
|
|
806
|
-
if (level === "off" || level === "low" || level === "high" || level === "max") rest.push(level);
|
|
807
|
-
}
|
|
808
|
-
return ["default", ...rest];
|
|
809
|
-
}
|
|
810
|
-
function effortLabel(effort) {
|
|
811
|
-
return EFFORT_LABELS[effort] ?? effort;
|
|
812
|
-
}
|
|
813
|
-
function modelBadges(entry) {
|
|
814
|
-
const badges = [];
|
|
815
|
-
if (entry.modalities.includes("image")) badges.push("图");
|
|
816
|
-
if (entry.modalities.includes("video")) badges.push("视频");
|
|
817
|
-
return badges;
|
|
818
|
-
}
|
|
819
|
-
function contextLabel(contextWindow) {
|
|
820
|
-
if (!Number.isFinite(contextWindow) || contextWindow <= 0) return "";
|
|
821
|
-
return `${Math.round(contextWindow / 1e3)}k`;
|
|
822
|
-
}
|
|
823
|
-
function shouldShowProviderLevel(groups) {
|
|
824
|
-
return groups.length > 1;
|
|
825
|
-
}
|
|
826
|
-
function providerHint(group, current) {
|
|
827
|
-
if (current.group === void 0 || current.group.provider !== group.provider) return "";
|
|
828
|
-
if (current.entry === void 0) return "";
|
|
829
|
-
return current.entry.model;
|
|
830
|
-
}
|
|
831
|
-
const FLYOUT_WIDTH = 264;
|
|
832
|
-
const FLYOUT_MAX_HEIGHT = 288;
|
|
833
|
-
function chooseFlyoutSide(panel, bounds, cardWidth, gap = 6, margin = 8) {
|
|
834
|
-
const roomRight = bounds.right - margin - panel.right;
|
|
835
|
-
const roomLeft = panel.left - bounds.left - margin;
|
|
836
|
-
if (roomRight >= cardWidth + gap) return "right";
|
|
837
|
-
if (roomLeft >= cardWidth + gap) return "left";
|
|
838
|
-
return "overlay";
|
|
839
|
-
}
|
|
840
|
-
function clampShift(panel, bounds, margin = 4) {
|
|
841
|
-
const overLeft = bounds.left + margin - panel.left;
|
|
842
|
-
if (overLeft > 0) return overLeft;
|
|
843
|
-
const overRight = panel.right - (bounds.right - margin);
|
|
844
|
-
if (overRight > 0) return -overRight;
|
|
845
|
-
return 0;
|
|
846
|
-
}
|
|
847
|
-
function placeFlyout(rowTop, rowBottom, panelHeight, cardHeight, pad = 12) {
|
|
848
|
-
const room = Math.max(0, panelHeight - pad * 2);
|
|
849
|
-
const height = Math.min(cardHeight, FLYOUT_MAX_HEIGHT, room);
|
|
850
|
-
const wanted = rowTop + height <= panelHeight - pad ? rowTop : rowBottom - height;
|
|
851
|
-
const top = Math.max(pad, Math.min(wanted, panelHeight - pad - height));
|
|
852
|
-
return { top, maxHeight: height };
|
|
853
|
-
}
|
|
854
|
-
function percentOf(index, count) {
|
|
855
|
-
if (count <= 1) return 100;
|
|
856
|
-
return Math.max(0, Math.min(index, count - 1)) / (count - 1) * 100;
|
|
857
|
-
}
|
|
858
|
-
function EffortSlider({
|
|
859
|
-
levels,
|
|
860
|
-
value,
|
|
861
|
-
note,
|
|
862
|
-
onCommit
|
|
863
|
-
}) {
|
|
864
|
-
const railRef = react.useRef(null);
|
|
865
|
-
const dragRef = react.useRef(null);
|
|
866
|
-
const [drag, setDrag] = react.useState(null);
|
|
867
|
-
const selected = levels.indexOf(value);
|
|
868
|
-
const index = drag ?? selected;
|
|
869
|
-
const unset = index < 0;
|
|
870
|
-
const activeLevel = unset ? "unset" : levels[Math.min(index, levels.length - 1)];
|
|
871
|
-
const indexAt = (clientX) => {
|
|
872
|
-
const rail = railRef.current;
|
|
873
|
-
if (rail === null) return 0;
|
|
874
|
-
const box = rail.getBoundingClientRect();
|
|
875
|
-
if (box.width === 0 || levels.length <= 1) return 0;
|
|
876
|
-
const ratio = Math.max(0, Math.min(1, (clientX - box.left) / box.width));
|
|
877
|
-
return Math.round(ratio * (levels.length - 1));
|
|
878
|
-
};
|
|
879
|
-
const onPointerDown = (event) => {
|
|
880
|
-
if (event.button !== 0) return;
|
|
881
|
-
event.preventDefault();
|
|
882
|
-
try {
|
|
883
|
-
event.currentTarget.setPointerCapture(event.pointerId);
|
|
884
|
-
} catch {
|
|
885
|
-
}
|
|
886
|
-
const next = indexAt(event.clientX);
|
|
887
|
-
dragRef.current = next;
|
|
888
|
-
setDrag(next);
|
|
889
|
-
};
|
|
890
|
-
const onPointerMove = (event) => {
|
|
891
|
-
if (dragRef.current === null) return;
|
|
892
|
-
const next = indexAt(event.clientX);
|
|
893
|
-
if (next === dragRef.current) return;
|
|
894
|
-
dragRef.current = next;
|
|
895
|
-
setDrag(next);
|
|
896
|
-
};
|
|
897
|
-
const finish = (event) => {
|
|
898
|
-
const at = dragRef.current;
|
|
899
|
-
if (at === null) return;
|
|
900
|
-
dragRef.current = null;
|
|
901
|
-
setDrag(null);
|
|
902
|
-
if (event.currentTarget.hasPointerCapture(event.pointerId)) {
|
|
903
|
-
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
904
|
-
}
|
|
905
|
-
const level = levels[at];
|
|
906
|
-
if (level !== void 0 && level !== value) onCommit(level);
|
|
907
|
-
};
|
|
908
|
-
const onKeyDown = (event) => {
|
|
909
|
-
const from = unset ? 0 : selected;
|
|
910
|
-
let next = null;
|
|
911
|
-
if (event.key === "ArrowLeft" || event.key === "ArrowDown") next = Math.max(0, from - 1);
|
|
912
|
-
else if (event.key === "ArrowRight" || event.key === "ArrowUp") next = Math.min(levels.length - 1, from + 1);
|
|
913
|
-
else if (event.key === "Home") next = 0;
|
|
914
|
-
else if (event.key === "End") next = levels.length - 1;
|
|
915
|
-
if (next === null) return;
|
|
916
|
-
event.preventDefault();
|
|
917
|
-
const level = levels[next];
|
|
918
|
-
if (level !== void 0 && level !== value) onCommit(level);
|
|
919
|
-
};
|
|
920
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "effort-slider", "data-effort-slider": "", children: [
|
|
921
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "effort-slider-head", children: [
|
|
922
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "effort-slider-title", children: "思考强度" }),
|
|
923
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "effort-now" + (unset ? " unset" : ""), "data-effort-now": unset ? "unset" : value, children: unset ? "未设置" : effortLabel(value) })
|
|
924
|
-
] }),
|
|
925
|
-
note === null ? null : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "effort-note", children: note }),
|
|
926
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
927
|
-
"div",
|
|
928
|
-
{
|
|
929
|
-
className: "effort-track",
|
|
930
|
-
"data-level": activeLevel,
|
|
931
|
-
"data-unset": unset ? "1" : void 0,
|
|
932
|
-
"data-dragging": drag === null ? void 0 : "1",
|
|
933
|
-
"data-effort-track": "",
|
|
934
|
-
role: "slider",
|
|
935
|
-
tabIndex: 0,
|
|
936
|
-
"aria-label": "思考强度",
|
|
937
|
-
"aria-valuemin": 0,
|
|
938
|
-
"aria-valuemax": Math.max(0, levels.length - 1),
|
|
939
|
-
"aria-valuenow": unset ? 0 : index,
|
|
940
|
-
"aria-valuetext": unset ? "未设置" : effortLabel(value),
|
|
941
|
-
onPointerDown,
|
|
942
|
-
onPointerMove,
|
|
943
|
-
onPointerUp: finish,
|
|
944
|
-
onPointerCancel: finish,
|
|
945
|
-
onKeyDown,
|
|
946
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "effort-rail", ref: railRef, children: [
|
|
947
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
948
|
-
"span",
|
|
949
|
-
{
|
|
950
|
-
className: "effort-rail-fill",
|
|
951
|
-
"data-effort-fill": "",
|
|
952
|
-
style: { "--effort-fill": (unset ? 0 : percentOf(index, levels.length)) + "%" }
|
|
953
|
-
}
|
|
954
|
-
),
|
|
955
|
-
levels.map((level, at) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
956
|
-
"span",
|
|
957
|
-
{
|
|
958
|
-
className: "effort-dot",
|
|
959
|
-
"data-effort-dot": level,
|
|
960
|
-
"data-lit": !unset && at <= index ? "1" : void 0,
|
|
961
|
-
style: { left: percentOf(at, levels.length) + "%" }
|
|
962
|
-
},
|
|
963
|
-
level
|
|
964
|
-
)),
|
|
965
|
-
unset ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
966
|
-
"span",
|
|
967
|
-
{
|
|
968
|
-
className: "effort-knob",
|
|
969
|
-
"data-effort-knob": "",
|
|
970
|
-
style: { left: percentOf(index, levels.length) + "%" }
|
|
971
|
-
}
|
|
972
|
-
)
|
|
973
|
-
] })
|
|
974
|
-
}
|
|
975
|
-
)
|
|
976
|
-
] });
|
|
977
|
-
}
|
|
978
|
-
const EMPTY_PERMISSION_PRESETS = { current: "", defaultName: "", options: [] };
|
|
979
|
-
const EMPTY_PRESET = { current: "", defaultName: "", options: [], droppable: [] };
|
|
980
|
-
const EMPTY_GIT = { repo: false, branch: "", detached: false, dirtyFileCount: 0 };
|
|
981
|
-
function sameQueued(left, right) {
|
|
982
|
-
if (left === right) return true;
|
|
983
|
-
if (left.length !== right.length) return false;
|
|
984
|
-
return left.every((item, index) => {
|
|
985
|
-
const other = right[index];
|
|
986
|
-
if (other === void 0) return false;
|
|
987
|
-
return item.index === other.index && item.text === other.text && (item.images?.join("|") ?? "") === (other.images?.join("|") ?? "");
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
function readModel(snapshot) {
|
|
991
|
-
const status = snapshot?.["status"];
|
|
992
|
-
if (typeof status !== "object" || status === null) return "";
|
|
993
|
-
const value = status["model"];
|
|
994
|
-
return typeof value === "string" ? value : "";
|
|
995
|
-
}
|
|
996
|
-
function readProvider(snapshot) {
|
|
997
|
-
const status = snapshot?.["status"];
|
|
998
|
-
if (typeof status !== "object" || status === null) return "";
|
|
999
|
-
const value = status["provider"];
|
|
1000
|
-
return typeof value === "string" ? value : "";
|
|
1001
|
-
}
|
|
1002
|
-
function readEffort(snapshot) {
|
|
1003
|
-
const status = snapshot?.["status"];
|
|
1004
|
-
if (typeof status !== "object" || status === null) return "default";
|
|
1005
|
-
const value = status["effort"];
|
|
1006
|
-
return typeof value === "string" ? value : "default";
|
|
1007
|
-
}
|
|
1008
|
-
function readHasApproval(snapshot) {
|
|
1009
|
-
const surfaces = snapshot?.["surfaces"];
|
|
1010
|
-
if (typeof surfaces !== "object" || surfaces === null) return false;
|
|
1011
|
-
const pending = surfaces["pendingApproval"];
|
|
1012
|
-
return pending !== null && pending !== void 0;
|
|
1013
|
-
}
|
|
1014
|
-
function readSessionPath(snapshot) {
|
|
1015
|
-
const status = snapshot?.["status"];
|
|
1016
|
-
if (typeof status !== "object" || status === null) return "";
|
|
1017
|
-
const path = status["sessionPath"];
|
|
1018
|
-
return typeof path === "string" ? path : "";
|
|
1019
|
-
}
|
|
1020
|
-
function readSessionId(snapshot) {
|
|
1021
|
-
const status = snapshot?.["status"];
|
|
1022
|
-
if (typeof status !== "object" || status === null) return "";
|
|
1023
|
-
const value = status["sessionId"];
|
|
1024
|
-
return typeof value === "string" ? value : "";
|
|
1025
|
-
}
|
|
1026
|
-
function readDraftCwd(snapshot) {
|
|
1027
|
-
const status = snapshot?.["status"];
|
|
1028
|
-
if (typeof status !== "object" || status === null) return "";
|
|
1029
|
-
const value = status["cwd"];
|
|
1030
|
-
return typeof value === "string" ? value : "";
|
|
1031
|
-
}
|
|
1032
|
-
function readSessionUnsaved(snapshot) {
|
|
1033
|
-
const status = snapshot?.["status"];
|
|
1034
|
-
if (typeof status !== "object" || status === null) return false;
|
|
1035
|
-
return status["sessionUnsaved"] === true;
|
|
1036
|
-
}
|
|
1037
|
-
function readPermissionPresets(snapshot) {
|
|
1038
|
-
const surfaces = snapshot?.["surfaces"];
|
|
1039
|
-
if (typeof surfaces !== "object" || surfaces === null) return EMPTY_PERMISSION_PRESETS;
|
|
1040
|
-
const presets = surfaces["permissionPresets"];
|
|
1041
|
-
if (typeof presets !== "object" || presets === null) return EMPTY_PERMISSION_PRESETS;
|
|
1042
|
-
const record = presets;
|
|
1043
|
-
const current = record["current"];
|
|
1044
|
-
const options = record["options"];
|
|
1045
|
-
if (typeof current !== "string" || !Array.isArray(options)) return EMPTY_PERMISSION_PRESETS;
|
|
1046
|
-
return {
|
|
1047
|
-
current,
|
|
1048
|
-
defaultName: typeof record["defaultName"] === "string" ? record["defaultName"] : "",
|
|
1049
|
-
options
|
|
1050
|
-
};
|
|
1051
|
-
}
|
|
1052
|
-
function samePermissionPresets(left, right) {
|
|
1053
|
-
if (left === right) return true;
|
|
1054
|
-
if (left.current !== right.current || left.defaultName !== right.defaultName) return false;
|
|
1055
|
-
if (left.options.length !== right.options.length) return false;
|
|
1056
|
-
return left.options.every((item, index) => {
|
|
1057
|
-
const other = right.options[index];
|
|
1058
|
-
return other !== void 0 && item.name === other.name && item.label === other.label && item.description === other.description && item.builtin === other.builtin;
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
function readPresetSurface(snapshot) {
|
|
1062
|
-
const surfaces = snapshot?.["surfaces"];
|
|
1063
|
-
if (typeof surfaces !== "object" || surfaces === null) return EMPTY_PRESET;
|
|
1064
|
-
const preset = surfaces["preset"];
|
|
1065
|
-
if (typeof preset !== "object" || preset === null) return EMPTY_PRESET;
|
|
1066
|
-
const record = preset;
|
|
1067
|
-
const current = record["current"];
|
|
1068
|
-
const options = record["options"];
|
|
1069
|
-
if (typeof current !== "string" || !Array.isArray(options)) return EMPTY_PRESET;
|
|
1070
|
-
return {
|
|
1071
|
-
current,
|
|
1072
|
-
defaultName: typeof record["defaultName"] === "string" ? record["defaultName"] : "",
|
|
1073
|
-
options,
|
|
1074
|
-
droppable: Array.isArray(record["droppable"]) ? record["droppable"] : []
|
|
1075
|
-
};
|
|
1076
|
-
}
|
|
1077
|
-
function samePresetSurface(left, right) {
|
|
1078
|
-
if (left === right) return true;
|
|
1079
|
-
if (left.current !== right.current || left.defaultName !== right.defaultName) return false;
|
|
1080
|
-
if (left.options.length !== right.options.length) return false;
|
|
1081
|
-
return left.options.every((item, index) => {
|
|
1082
|
-
const other = right.options[index];
|
|
1083
|
-
return other !== void 0 && item.name === other.name && item.label === other.label && item.description === other.description && item.problem === other.problem;
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
function readInboxCount(snapshot) {
|
|
1087
|
-
const queued = snapshot?.["queued"];
|
|
1088
|
-
const notices = snapshot?.["notices"];
|
|
1089
|
-
return (Array.isArray(queued) ? queued.length : 0) + (Array.isArray(notices) ? notices.length : 0);
|
|
1090
|
-
}
|
|
1091
|
-
function readQueued(snapshot) {
|
|
1092
|
-
const value = snapshot?.["queued"];
|
|
1093
|
-
return Array.isArray(value) ? value : EMPTY_QUEUE;
|
|
1094
|
-
}
|
|
1095
|
-
const EMPTY_QUEUE = Object.freeze([]);
|
|
1096
|
-
function sameNotices(left, right) {
|
|
1097
|
-
if (left === right) return true;
|
|
1098
|
-
if (left.length !== right.length) return false;
|
|
1099
|
-
return left.every((item, index) => {
|
|
1100
|
-
const other = right[index];
|
|
1101
|
-
return other !== void 0 && item.index === other.index && item.text === other.text;
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
function readNotices(snapshot) {
|
|
1105
|
-
const value = snapshot?.["notices"];
|
|
1106
|
-
return Array.isArray(value) ? value : EMPTY_NOTICES;
|
|
1107
|
-
}
|
|
1108
|
-
const EMPTY_NOTICES = Object.freeze([]);
|
|
1109
|
-
function readGit(snapshot) {
|
|
1110
|
-
const surfaces = snapshot?.["surfaces"];
|
|
1111
|
-
if (typeof surfaces !== "object" || surfaces === null) return EMPTY_GIT;
|
|
1112
|
-
const raw = surfaces["git"];
|
|
1113
|
-
if (typeof raw !== "object" || raw === null) return EMPTY_GIT;
|
|
1114
|
-
const record = raw;
|
|
1115
|
-
return {
|
|
1116
|
-
repo: record["repo"] === true,
|
|
1117
|
-
branch: typeof record["branch"] === "string" ? record["branch"] : "",
|
|
1118
|
-
detached: record["detached"] === true,
|
|
1119
|
-
dirtyFileCount: typeof record["dirtyFileCount"] === "number" ? record["dirtyFileCount"] : 0
|
|
1120
|
-
};
|
|
1121
|
-
}
|
|
1122
|
-
function useModelControls({ channel, onFault, onTakeOver }) {
|
|
1123
|
-
const model = ui$1.useHostSelector(readModel);
|
|
1124
|
-
const effort = ui$1.useHostSelector(readEffort);
|
|
1125
|
-
const [pendingEffort, setPendingEffort] = react.useState(null);
|
|
1126
|
-
react.useEffect(() => {
|
|
1127
|
-
if (pendingEffort !== null && effort === pendingEffort) setPendingEffort(null);
|
|
1128
|
-
}, [effort, pendingEffort]);
|
|
1129
|
-
react.useEffect(() => {
|
|
1130
|
-
if (pendingEffort === null) return void 0;
|
|
1131
|
-
const timer = setTimeout(() => setPendingEffort(null), 1500);
|
|
1132
|
-
return () => clearTimeout(timer);
|
|
1133
|
-
}, [pendingEffort]);
|
|
1134
|
-
const [models, setModels] = react.useState([]);
|
|
1135
|
-
const [modelOpen, setModelOpen] = react.useState(false);
|
|
1136
|
-
const [effortOpen, setEffortOpen] = react.useState(false);
|
|
1137
|
-
const [hoverProvider, setHoverProvider] = react.useState(null);
|
|
1138
|
-
const [flyout, setFlyout] = react.useState(null);
|
|
1139
|
-
const [flyoutSide, setFlyoutSide] = react.useState("right");
|
|
1140
|
-
const [dropPrefix, setDropPrefix] = react.useState(false);
|
|
1141
|
-
const [panelShift, setPanelShift] = react.useState(0);
|
|
1142
|
-
const [measureTick, setMeasureTick] = react.useState(0);
|
|
1143
|
-
const modelPanelRef = react.useRef(null);
|
|
1144
|
-
const shiftRef = react.useRef(0);
|
|
1145
|
-
const modelRows = react.useRef(null);
|
|
1146
|
-
const flyoutCardRef = react.useRef(null);
|
|
1147
|
-
const barRef = react.useRef(null);
|
|
1148
|
-
const [barWidth, setBarWidth] = react.useState(0);
|
|
1149
|
-
react.useEffect(() => {
|
|
1150
|
-
const node = barRef.current;
|
|
1151
|
-
if (node === null || typeof ResizeObserver === "undefined") return void 0;
|
|
1152
|
-
setBarWidth(node.clientWidth);
|
|
1153
|
-
const observer = new ResizeObserver(() => {
|
|
1154
|
-
setBarWidth(node.clientWidth);
|
|
1155
|
-
});
|
|
1156
|
-
observer.observe(node);
|
|
1157
|
-
return () => {
|
|
1158
|
-
observer.disconnect();
|
|
1159
|
-
};
|
|
1160
|
-
}, []);
|
|
1161
|
-
const modelChipRef = react.useRef(null);
|
|
1162
|
-
react.useEffect(() => {
|
|
1163
|
-
if (!modelOpen && !effortOpen) return void 0;
|
|
1164
|
-
const onKey = (event) => {
|
|
1165
|
-
if (event.key !== "Escape" || event.defaultPrevented) return;
|
|
1166
|
-
event.preventDefault();
|
|
1167
|
-
setModelOpen(false);
|
|
1168
|
-
setEffortOpen(false);
|
|
1169
|
-
};
|
|
1170
|
-
window.addEventListener("keydown", onKey);
|
|
1171
|
-
return () => window.removeEventListener("keydown", onKey);
|
|
1172
|
-
}, [modelOpen, effortOpen]);
|
|
1173
|
-
react.useEffect(() => {
|
|
1174
|
-
let alive = true;
|
|
1175
|
-
void channel.invoke("listModels").then((list) => {
|
|
1176
|
-
if (alive) setModels(Array.isArray(list) ? list : []);
|
|
1177
|
-
}).catch(() => {
|
|
1178
|
-
});
|
|
1179
|
-
return () => {
|
|
1180
|
-
alive = false;
|
|
1181
|
-
};
|
|
1182
|
-
}, [channel, modelOpen]);
|
|
1183
|
-
const groups = groupModels(models);
|
|
1184
|
-
const provider = ui$1.useHostSelector(readProvider);
|
|
1185
|
-
const current = findCurrent(groups, provider, model);
|
|
1186
|
-
const imageInputAllowed = current.entry === void 0 || current.entry.modalities.includes("image");
|
|
1187
|
-
const chip = modelChipText(groups, provider, model);
|
|
1188
|
-
const twoLevel = shouldShowProviderLevel(groups);
|
|
1189
|
-
const hoveredGroup = groups.find((item) => item.provider === hoverProvider);
|
|
1190
|
-
const visibleModels = twoLevel ? hoveredGroup?.models ?? [] : groups[0]?.models ?? [];
|
|
1191
|
-
const flyoutShown = twoLevel && flyout !== null && hoveredGroup !== void 0;
|
|
1192
|
-
const levelOptions = effortChoices(current.entry);
|
|
1193
|
-
const sliderLevels = levelOptions.filter((level) => level !== "default");
|
|
1194
|
-
const switchEffort = sliderLevels.length > 0;
|
|
1195
|
-
const shownEffort = pendingEffort ?? effort;
|
|
1196
|
-
const effortText = effortLabel(shownEffort);
|
|
1197
|
-
const commitEffort = (level) => {
|
|
1198
|
-
setPendingEffort(level);
|
|
1199
|
-
onFault(null);
|
|
1200
|
-
void channel.invoke("setEffort", [level, true]).catch((reason) => {
|
|
1201
|
-
setPendingEffort(null);
|
|
1202
|
-
onFault(reason instanceof Error ? reason.message : String(reason));
|
|
1203
|
-
});
|
|
1204
|
-
};
|
|
1205
|
-
const clipBoxOf = (el) => {
|
|
1206
|
-
let node = el.parentElement;
|
|
1207
|
-
while (node !== null) {
|
|
1208
|
-
if (getComputedStyle(node).overflowX !== "visible") {
|
|
1209
|
-
const box = node.getBoundingClientRect();
|
|
1210
|
-
return { left: Math.max(0, box.left), right: Math.min(window.innerWidth, box.right) };
|
|
1211
|
-
}
|
|
1212
|
-
node = node.parentElement;
|
|
1213
|
-
}
|
|
1214
|
-
return { left: 0, right: window.innerWidth };
|
|
1215
|
-
};
|
|
1216
|
-
const openFlyout = (providerName, row) => {
|
|
1217
|
-
setHoverProvider(providerName);
|
|
1218
|
-
const panel = modelPanelRef.current;
|
|
1219
|
-
if (panel === null || row === null) return;
|
|
1220
|
-
const panelBox = panel.getBoundingClientRect();
|
|
1221
|
-
const rowBox = row.getBoundingClientRect();
|
|
1222
|
-
setFlyoutSide(
|
|
1223
|
-
chooseFlyoutSide(
|
|
1224
|
-
{ left: panelBox.left, right: panelBox.right },
|
|
1225
|
-
clipBoxOf(panel),
|
|
1226
|
-
FLYOUT_WIDTH
|
|
1227
|
-
)
|
|
1228
|
-
);
|
|
1229
|
-
setFlyout(
|
|
1230
|
-
placeFlyout(
|
|
1231
|
-
rowBox.top - panelBox.top,
|
|
1232
|
-
rowBox.bottom - panelBox.top,
|
|
1233
|
-
panelBox.height,
|
|
1234
|
-
Number.POSITIVE_INFINITY
|
|
1235
|
-
)
|
|
1236
|
-
);
|
|
1237
|
-
};
|
|
1238
|
-
react.useLayoutEffect(() => {
|
|
1239
|
-
if (hoverProvider === null) return;
|
|
1240
|
-
const panel = modelPanelRef.current;
|
|
1241
|
-
const card = flyoutCardRef.current;
|
|
1242
|
-
if (panel === null || card === null) return;
|
|
1243
|
-
const row = panel.querySelector(`[data-model-provider="${CSS.escape(hoverProvider)}"]`);
|
|
1244
|
-
if (row === null) return;
|
|
1245
|
-
const panelBox = panel.getBoundingClientRect();
|
|
1246
|
-
const rowBox = row.getBoundingClientRect();
|
|
1247
|
-
const next = placeFlyout(
|
|
1248
|
-
rowBox.top - panelBox.top,
|
|
1249
|
-
rowBox.bottom - panelBox.top,
|
|
1250
|
-
panelBox.height,
|
|
1251
|
-
card.scrollHeight
|
|
1252
|
-
);
|
|
1253
|
-
setFlyout(
|
|
1254
|
-
(prev) => prev !== null && prev.top === next.top && prev.maxHeight === next.maxHeight ? prev : next
|
|
1255
|
-
);
|
|
1256
|
-
}, [hoverProvider, models.length, flyoutSide, measureTick]);
|
|
1257
|
-
react.useLayoutEffect(() => {
|
|
1258
|
-
if (!modelOpen) return void 0;
|
|
1259
|
-
const panel = modelPanelRef.current;
|
|
1260
|
-
if (panel === null) return void 0;
|
|
1261
|
-
const bump = () => {
|
|
1262
|
-
setMeasureTick((tick) => tick + 1);
|
|
1263
|
-
};
|
|
1264
|
-
const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(bump);
|
|
1265
|
-
observer?.observe(panel);
|
|
1266
|
-
window.addEventListener("resize", bump);
|
|
1267
|
-
return () => {
|
|
1268
|
-
observer?.disconnect();
|
|
1269
|
-
window.removeEventListener("resize", bump);
|
|
1270
|
-
};
|
|
1271
|
-
}, [modelOpen]);
|
|
1272
|
-
react.useLayoutEffect(() => {
|
|
1273
|
-
if (!modelOpen) return;
|
|
1274
|
-
const panel = modelPanelRef.current;
|
|
1275
|
-
if (panel === null) return;
|
|
1276
|
-
const box = panel.getBoundingClientRect();
|
|
1277
|
-
const raw = { left: box.left - shiftRef.current, right: box.right - shiftRef.current };
|
|
1278
|
-
const shift = clampShift(raw, clipBoxOf(panel));
|
|
1279
|
-
shiftRef.current = shift;
|
|
1280
|
-
setPanelShift((prev) => prev === shift ? prev : shift);
|
|
1281
|
-
}, [modelOpen, models.length, twoLevel, measureTick]);
|
|
1282
|
-
react.useEffect(() => {
|
|
1283
|
-
if (!modelOpen) return;
|
|
1284
|
-
if (hoverProvider === null) return;
|
|
1285
|
-
modelRows.current?.querySelector('[data-model-current="true"]')?.scrollIntoView({ block: "nearest" });
|
|
1286
|
-
}, [modelOpen, hoverProvider, models.length]);
|
|
1287
|
-
const modelRowList = (choices) => {
|
|
1288
|
-
if (choices.length === 0) {
|
|
1289
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pop-item", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: models.length === 0 ? "清单没取到" : "这个端点还没有模型" }) });
|
|
1290
|
-
}
|
|
1291
|
-
return choices.map((choice) => {
|
|
1292
|
-
const on = current.entry?.value === choice.value;
|
|
1293
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1294
|
-
"button",
|
|
1295
|
-
{
|
|
1296
|
-
type: "button",
|
|
1297
|
-
role: "menuitemradio",
|
|
1298
|
-
"aria-checked": on,
|
|
1299
|
-
className: `pop-item model-picker-row${on ? " on" : ""}`,
|
|
1300
|
-
title: choice.description,
|
|
1301
|
-
"data-model-current": on ? "true" : void 0,
|
|
1302
|
-
onClick: () => {
|
|
1303
|
-
setModelOpen(false);
|
|
1304
|
-
onFault(null);
|
|
1305
|
-
void channel.invoke("setModel", [choice.value]).catch((reason) => {
|
|
1306
|
-
onFault(reason instanceof Error ? reason.message : String(reason));
|
|
1307
|
-
});
|
|
1308
|
-
},
|
|
1309
|
-
children: [
|
|
1310
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: choice.model }),
|
|
1311
|
-
modelBadges(choice).map((badge) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pop-badge", children: badge }, badge)),
|
|
1312
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "ctx", children: contextLabel(choice.contextWindow) }),
|
|
1313
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "model-picker-check", children: on ? /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconCheck, { size: 14, className: "check" }) : null })
|
|
1314
|
-
]
|
|
1315
|
-
},
|
|
1316
|
-
choice.value
|
|
1317
|
-
);
|
|
1318
|
-
});
|
|
1319
|
-
};
|
|
1320
|
-
const chipMeasureKey = `${chip.full}|${String(models.length)}|${String(barWidth)}`;
|
|
1321
|
-
react.useLayoutEffect(() => {
|
|
1322
|
-
setDropPrefix(false);
|
|
1323
|
-
}, [chipMeasureKey]);
|
|
1324
|
-
react.useLayoutEffect(() => {
|
|
1325
|
-
if (dropPrefix) return;
|
|
1326
|
-
const node = modelChipRef.current;
|
|
1327
|
-
const bar = barRef.current;
|
|
1328
|
-
if (node === null || bar === null) return;
|
|
1329
|
-
const cut = (selector) => {
|
|
1330
|
-
const el = node.querySelector(selector);
|
|
1331
|
-
return el !== null && el.scrollWidth > el.clientWidth + 1;
|
|
1332
|
-
};
|
|
1333
|
-
const tight = cut(".model-name") || cut(".composer-model-provider") || bar.scrollWidth > bar.clientWidth + 1;
|
|
1334
|
-
if (tight) setDropPrefix(true);
|
|
1335
|
-
}, [dropPrefix, chipMeasureKey]);
|
|
1336
|
-
const openModelsSettings = () => {
|
|
1337
|
-
window.dispatchEvent(new CustomEvent("shell.settings.open", { detail: { section: "models" } }));
|
|
1338
|
-
};
|
|
1339
|
-
return {
|
|
1340
|
-
node: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1341
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "model-anchor", children: [
|
|
1342
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1343
|
-
"button",
|
|
1344
|
-
{
|
|
1345
|
-
type: "button",
|
|
1346
|
-
ref: modelChipRef,
|
|
1347
|
-
className: `model-btn composer-model-chip${modelOpen ? " open" : ""}`,
|
|
1348
|
-
title: `模型:${chip.full}(点开换)`,
|
|
1349
|
-
"aria-haspopup": "menu",
|
|
1350
|
-
"aria-expanded": modelOpen,
|
|
1351
|
-
"aria-label": `当前模型 ${chip.full}`,
|
|
1352
|
-
"data-composer-model": current.entry?.value ?? chip.full,
|
|
1353
|
-
onClick: () => {
|
|
1354
|
-
setModelOpen((open) => !open);
|
|
1355
|
-
setHoverProvider(null);
|
|
1356
|
-
setFlyout(null);
|
|
1357
|
-
shiftRef.current = 0;
|
|
1358
|
-
setPanelShift(0);
|
|
1359
|
-
setEffortOpen(false);
|
|
1360
|
-
onTakeOver();
|
|
1361
|
-
},
|
|
1362
|
-
children: [
|
|
1363
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconPackage, { size: 13 }),
|
|
1364
|
-
chip.prefix === "" || dropPrefix ? null : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "composer-model-provider", children: chip.prefix }),
|
|
1365
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "model-name", children: chip.name }),
|
|
1366
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 12 })
|
|
1367
|
-
]
|
|
1368
|
-
}
|
|
1369
|
-
),
|
|
1370
|
-
modelOpen ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1371
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1372
|
-
"div",
|
|
1373
|
-
{
|
|
1374
|
-
className: "pop-mask",
|
|
1375
|
-
onClick: () => {
|
|
1376
|
-
setModelOpen(false);
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
),
|
|
1380
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1381
|
-
"div",
|
|
1382
|
-
{
|
|
1383
|
-
className: `model-pop model-picker${twoLevel ? "" : " flat"}`,
|
|
1384
|
-
role: "menu",
|
|
1385
|
-
"aria-label": "选择模型",
|
|
1386
|
-
ref: modelPanelRef,
|
|
1387
|
-
"data-flyout-side": flyoutShown ? flyoutSide : void 0,
|
|
1388
|
-
style: panelShift === 0 ? void 0 : { transform: `translateX(${String(panelShift)}px)` },
|
|
1389
|
-
onMouseLeave: () => {
|
|
1390
|
-
setHoverProvider(null);
|
|
1391
|
-
setFlyout(null);
|
|
1392
|
-
},
|
|
1393
|
-
children: [
|
|
1394
|
-
current.entry === void 0 && model !== "" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pop-item model-unknown", "data-model-unknown": "true", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "name", children: [
|
|
1395
|
-
"当前:",
|
|
1396
|
-
model,
|
|
1397
|
-
" —— 清单里没有这个模型"
|
|
1398
|
-
] }) }) : null,
|
|
1399
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "model-picker-body", children: twoLevel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1400
|
-
"div",
|
|
1401
|
-
{
|
|
1402
|
-
className: "model-providers",
|
|
1403
|
-
"data-model-providers": "",
|
|
1404
|
-
onScroll: () => {
|
|
1405
|
-
if (hoverProvider === null) return;
|
|
1406
|
-
const row = modelPanelRef.current?.querySelector(
|
|
1407
|
-
`[data-model-provider="${CSS.escape(hoverProvider)}"]`
|
|
1408
|
-
) ?? null;
|
|
1409
|
-
openFlyout(hoverProvider, row);
|
|
1410
|
-
},
|
|
1411
|
-
children: groups.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pop-item", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: "清单没取到" }) }) : groups.map((group) => {
|
|
1412
|
-
const owns = current.group?.provider === group.provider;
|
|
1413
|
-
const hint = providerHint(group, current);
|
|
1414
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1415
|
-
"button",
|
|
1416
|
-
{
|
|
1417
|
-
type: "button",
|
|
1418
|
-
role: "menuitem",
|
|
1419
|
-
"aria-current": owns,
|
|
1420
|
-
className: `pop-item provider-row${group.provider === hoverProvider ? " on" : ""}`,
|
|
1421
|
-
"data-model-provider": group.provider,
|
|
1422
|
-
"data-provider-current": owns ? "true" : void 0,
|
|
1423
|
-
title: hint === "" ? `${group.displayName} · ${String(group.models.length)} 个模型` : `${group.displayName} · 当前 ${hint}`,
|
|
1424
|
-
onMouseEnter: (event) => {
|
|
1425
|
-
openFlyout(group.provider, event.currentTarget);
|
|
1426
|
-
},
|
|
1427
|
-
onFocus: (event) => {
|
|
1428
|
-
openFlyout(group.provider, event.currentTarget);
|
|
1429
|
-
},
|
|
1430
|
-
onClick: (event) => {
|
|
1431
|
-
openFlyout(group.provider, event.currentTarget);
|
|
1432
|
-
},
|
|
1433
|
-
children: [
|
|
1434
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: group.displayName }),
|
|
1435
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "model-picker-check", children: owns ? /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconCheck, { size: 13, className: "check" }) : null }),
|
|
1436
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronRight, { size: 12, className: "provider-arrow" })
|
|
1437
|
-
]
|
|
1438
|
-
},
|
|
1439
|
-
group.provider
|
|
1440
|
-
);
|
|
1441
|
-
})
|
|
1442
|
-
}
|
|
1443
|
-
) : modelRowList(visibleModels) }),
|
|
1444
|
-
flyoutShown ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1445
|
-
"div",
|
|
1446
|
-
{
|
|
1447
|
-
className: `model-flyout${flyoutSide === "overlay" ? " model-flyout-inline" : ""}`,
|
|
1448
|
-
"data-model-flyout": "",
|
|
1449
|
-
"data-side": flyoutSide,
|
|
1450
|
-
style: flyoutSide === "overlay" ? void 0 : {
|
|
1451
|
-
"--flyout-top": `${String(flyout.top)}px`,
|
|
1452
|
-
"--flyout-max": `${String(flyout.maxHeight)}px`,
|
|
1453
|
-
"--flyout-w": `${String(FLYOUT_WIDTH)}px`
|
|
1454
|
-
},
|
|
1455
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1456
|
-
"div",
|
|
1457
|
-
{
|
|
1458
|
-
className: "model-flyout-card",
|
|
1459
|
-
role: "menu",
|
|
1460
|
-
"aria-label": `${hoveredGroup.displayName} 的模型`,
|
|
1461
|
-
ref: flyoutCardRef,
|
|
1462
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "model-picker-rows", "data-model-rows": "", ref: modelRows, children: modelRowList(visibleModels) })
|
|
1463
|
-
}
|
|
1464
|
-
)
|
|
1465
|
-
}
|
|
1466
|
-
) : null,
|
|
1467
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1468
|
-
"button",
|
|
1469
|
-
{
|
|
1470
|
-
type: "button",
|
|
1471
|
-
className: "pop-item model-manage",
|
|
1472
|
-
"data-model-manage": "",
|
|
1473
|
-
onClick: () => {
|
|
1474
|
-
setModelOpen(false);
|
|
1475
|
-
openModelsSettings();
|
|
1476
|
-
},
|
|
1477
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: "管理模型" })
|
|
1478
|
-
}
|
|
1479
|
-
)
|
|
1480
|
-
]
|
|
1481
|
-
}
|
|
1482
|
-
)
|
|
1483
|
-
] }) : null
|
|
1484
|
-
] }),
|
|
1485
|
-
switchEffort ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "model-anchor model-anchor-sheet", children: [
|
|
1486
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1487
|
-
"button",
|
|
1488
|
-
{
|
|
1489
|
-
type: "button",
|
|
1490
|
-
className: `model-btn composer-effort-chip${effortOpen ? " open" : ""}`,
|
|
1491
|
-
title: `思考强度:${effortText}(点开换档)`,
|
|
1492
|
-
"aria-haspopup": "menu",
|
|
1493
|
-
"aria-expanded": effortOpen,
|
|
1494
|
-
"aria-label": `当前思考强度 ${effortText}`,
|
|
1495
|
-
"data-composer-effort": shownEffort,
|
|
1496
|
-
onClick: () => {
|
|
1497
|
-
setEffortOpen((open) => !open);
|
|
1498
|
-
setModelOpen(false);
|
|
1499
|
-
onTakeOver();
|
|
1500
|
-
},
|
|
1501
|
-
children: [
|
|
1502
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconBrain, { size: 13 }),
|
|
1503
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "model-name", children: effortText }),
|
|
1504
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 12 })
|
|
1505
|
-
]
|
|
1506
|
-
}
|
|
1507
|
-
),
|
|
1508
|
-
effortOpen ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1509
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1510
|
-
"div",
|
|
1511
|
-
{
|
|
1512
|
-
className: "pop-mask",
|
|
1513
|
-
onClick: () => {
|
|
1514
|
-
setEffortOpen(false);
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
),
|
|
1518
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "model-pop effort-pop", role: "group", "aria-label": "思考强度", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1519
|
-
EffortSlider,
|
|
1520
|
-
{
|
|
1521
|
-
levels: sliderLevels,
|
|
1522
|
-
value: shownEffort,
|
|
1523
|
-
note: current.entry === void 0 && model !== "" ? "模型不在清单里,列的是它声明的全部档位" : null,
|
|
1524
|
-
onCommit: commitEffort
|
|
1525
|
-
}
|
|
1526
|
-
) })
|
|
1527
|
-
] }) : null
|
|
1528
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1529
|
-
"span",
|
|
1530
|
-
{
|
|
1531
|
-
className: "model-btn composer-effort-chip fixed",
|
|
1532
|
-
title: `思考强度:${effortText}(这个模型没有可切换的档位)`,
|
|
1533
|
-
"data-composer-effort": effort,
|
|
1534
|
-
children: [
|
|
1535
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconBrain, { size: 13 }),
|
|
1536
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "model-name", children: effortText })
|
|
1537
|
-
]
|
|
1538
|
-
}
|
|
1539
|
-
)
|
|
1540
|
-
] }),
|
|
1541
|
-
allowImage: imageInputAllowed,
|
|
1542
|
-
close: () => {
|
|
1543
|
-
setModelOpen(false);
|
|
1544
|
-
setEffortOpen(false);
|
|
1545
|
-
},
|
|
1546
|
-
barRef
|
|
1547
|
-
};
|
|
1548
|
-
}
|
|
1549
|
-
const TEAMMATE_REPORT_OPEN = "<teammate-report ";
|
|
1550
|
-
const REVIEW_FINDINGS_OPEN = "<review-findings ";
|
|
1551
|
-
const MESSAGE_OPEN = "<message ";
|
|
1552
|
-
const DETAIL_CHARS = 120;
|
|
1553
|
-
function attrOf(text, key) {
|
|
1554
|
-
const match = new RegExp(`${key}="([^"]*)"`).exec(text);
|
|
1555
|
-
return match?.[1] ?? "";
|
|
1556
|
-
}
|
|
1557
|
-
function flatten(text) {
|
|
1558
|
-
const flat = text.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
|
|
1559
|
-
const chars = Array.from(flat);
|
|
1560
|
-
return chars.length > DETAIL_CHARS ? `${chars.slice(0, DETAIL_CHARS).join("")}…` : flat;
|
|
1561
|
-
}
|
|
1562
|
-
function summarizeNotice(text) {
|
|
1563
|
-
if (text.startsWith(TEAMMATE_REPORT_OPEN)) {
|
|
1564
|
-
const name = attrOf(text, "from");
|
|
1565
|
-
const state = attrOf(text, "state");
|
|
1566
|
-
const who = name === "" ? "一个队友" : `队友 ${name}`;
|
|
1567
|
-
const reportAt = text.indexOf("它的汇报:");
|
|
1568
|
-
const body = reportAt === -1 ? text : text.slice(reportAt + "它的汇报:".length);
|
|
1569
|
-
return {
|
|
1570
|
-
label: `${who}${state === "" ? "" : ` ${state}`},汇报了,本步结束会交给模型`,
|
|
1571
|
-
detail: flatten(body)
|
|
1572
|
-
};
|
|
1573
|
-
}
|
|
1574
|
-
if (text.startsWith(REVIEW_FINDINGS_OPEN)) {
|
|
1575
|
-
const name = attrOf(text, "teammate");
|
|
1576
|
-
const state = attrOf(text, "state");
|
|
1577
|
-
const who = name === "" ? "审查队友" : `审查队友 ${name}`;
|
|
1578
|
-
const open = text.indexOf(">");
|
|
1579
|
-
const close = text.lastIndexOf("</review-findings>");
|
|
1580
|
-
const body = open === -1 ? text : close === -1 ? text.slice(open + 1) : text.slice(open + 1, close);
|
|
1581
|
-
return {
|
|
1582
|
-
label: `${who}${state === "" ? "" : ` ${state}`},交回了 findings,本步结束会交给模型`,
|
|
1583
|
-
detail: flatten(body)
|
|
1584
|
-
};
|
|
1585
|
-
}
|
|
1586
|
-
if (text.startsWith(MESSAGE_OPEN)) {
|
|
1587
|
-
const from = attrOf(text, "from");
|
|
1588
|
-
const who = from === "" || from === "user" ? "队友" : `队友 ${from}`;
|
|
1589
|
-
const open = text.indexOf(">");
|
|
1590
|
-
const close = text.lastIndexOf("</message>");
|
|
1591
|
-
const body = open === -1 ? text : close === -1 ? text.slice(open + 1) : text.slice(open + 1, close);
|
|
1592
|
-
return {
|
|
1593
|
-
label: `${who} 传来一条消息,本步结束会交给模型`,
|
|
1594
|
-
detail: flatten(body)
|
|
1595
|
-
};
|
|
1596
|
-
}
|
|
1597
|
-
return { label: "有一条待投递通知,本步结束会交给模型", detail: flatten(text) };
|
|
1598
|
-
}
|
|
1599
|
-
function NoticeStrip() {
|
|
1600
|
-
const notices = ui$1.useHostSelector(readNotices, sameNotices);
|
|
1601
|
-
if (notices.length === 0) return null;
|
|
1602
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "notice-strip", "data-notice-strip": "", children: notices.map((item) => {
|
|
1603
|
-
const summary = summarizeNotice(item.text);
|
|
1604
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "notice-row", children: [
|
|
1605
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "notice-lead", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconSpark, { size: 13 }) }),
|
|
1606
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "notice-label", "data-tip": summary.detail === "" ? summary.label : summary.detail, children: summary.label }),
|
|
1607
|
-
summary.detail === "" ? null : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "notice-detail", children: summary.detail })
|
|
1608
|
-
] }, item.index);
|
|
1609
|
-
}) });
|
|
1610
|
-
}
|
|
1611
|
-
const PREVIEW_CHARS = 200;
|
|
1612
|
-
function previewOf(text) {
|
|
1613
|
-
const flat = text.replace(/\s+/g, " ").trim();
|
|
1614
|
-
const chars = Array.from(flat);
|
|
1615
|
-
return chars.length > PREVIEW_CHARS ? `${chars.slice(0, PREVIEW_CHARS).join("")}…` : flat;
|
|
1616
|
-
}
|
|
1617
|
-
function QueueDock() {
|
|
1618
|
-
const channel = ui$1.useHostChannel();
|
|
1619
|
-
const items = ui$1.useHostSelector(readQueued, sameQueued);
|
|
1620
|
-
const turnState = ui$1.useHostSelector(uiPrimitives.readTurnState);
|
|
1621
|
-
const [collapsed, setCollapsed] = react.useState(true);
|
|
1622
|
-
const [editing, setEditing] = react.useState(null);
|
|
1623
|
-
const [busy, setBusy] = react.useState(false);
|
|
1624
|
-
const [fault, setFault] = react.useState(null);
|
|
1625
|
-
const count = items.length;
|
|
1626
|
-
react.useEffect(() => {
|
|
1627
|
-
if (count === 0 && !collapsed) setCollapsed(true);
|
|
1628
|
-
if (editing !== null && !items.some((item) => item.index === editing.index)) setEditing(null);
|
|
1629
|
-
}, [collapsed, editing, items, count]);
|
|
1630
|
-
if (count === 0) return null;
|
|
1631
|
-
const expanded = count === 1 || !collapsed || editing !== null;
|
|
1632
|
-
const running = turnState !== "idle";
|
|
1633
|
-
const act = async (work, failure) => {
|
|
1634
|
-
setBusy(true);
|
|
1635
|
-
setFault(null);
|
|
1636
|
-
try {
|
|
1637
|
-
return await work() ? "ok" : "rejected";
|
|
1638
|
-
} catch (error) {
|
|
1639
|
-
setFault(`${failure}:${error instanceof Error ? error.message : String(error)}`);
|
|
1640
|
-
return "failed";
|
|
1641
|
-
} finally {
|
|
1642
|
-
setBusy(false);
|
|
1643
|
-
}
|
|
1644
|
-
};
|
|
1645
|
-
const save = async (index) => {
|
|
1646
|
-
const value = editing?.text.trim() ?? "";
|
|
1647
|
-
if (value === "") return;
|
|
1648
|
-
const outcome = await act(() => channel.invoke("editQueued", [index, value]), "编辑失败");
|
|
1649
|
-
if (outcome === "ok") {
|
|
1650
|
-
setEditing(null);
|
|
1651
|
-
return;
|
|
1652
|
-
}
|
|
1653
|
-
if (outcome === "rejected") setFault("编辑失败:这条已经开始发送了");
|
|
1654
|
-
};
|
|
1655
|
-
const remove = async (index) => {
|
|
1656
|
-
const outcome = await act(() => channel.invoke("removeQueued", [index]), "撤掉失败");
|
|
1657
|
-
if (outcome === "rejected") setFault("撤掉失败:这条已经开始发送了");
|
|
1658
|
-
};
|
|
1659
|
-
const steer = async (index) => {
|
|
1660
|
-
const ahead = index;
|
|
1661
|
-
const detail = ahead > 0 ? `会打断模型当前的输出,让这条以及排在它前面的 ${String(ahead)} 条立刻作为新一轮发出去(模型已经说出的半截会保留)。` : "会打断模型当前的输出,让这条立刻作为新一轮发出去(模型已经说出的半截会保留)。";
|
|
1662
|
-
if (!window.confirm(`打断并插话?
|
|
1663
|
-
|
|
1664
|
-
${detail}`)) return;
|
|
1665
|
-
const outcome = await act(() => channel.invoke("steerQueued", [index]), "插话失败");
|
|
1666
|
-
if (outcome === "rejected") setFault("插话没赶上:这一轮刚结束,排队消息会自己发出去");
|
|
1667
|
-
};
|
|
1668
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "queue-dock", "data-queue-dock": "", children: [
|
|
1669
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "queue-panel", children: [
|
|
1670
|
-
count > 1 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1671
|
-
"button",
|
|
1672
|
-
{
|
|
1673
|
-
type: "button",
|
|
1674
|
-
className: "queue-head",
|
|
1675
|
-
"aria-expanded": expanded,
|
|
1676
|
-
disabled: busy || editing !== null,
|
|
1677
|
-
"data-tip": expanded ? "收起排队消息" : "展开排队消息",
|
|
1678
|
-
onClick: () => {
|
|
1679
|
-
setCollapsed((current) => !current);
|
|
1680
|
-
},
|
|
1681
|
-
children: [
|
|
1682
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "queue-lead", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconQueue, { size: 13 }) }),
|
|
1683
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "queue-count", children: [
|
|
1684
|
-
count,
|
|
1685
|
-
" 条排队消息"
|
|
1686
|
-
] }),
|
|
1687
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "queue-note", children: "这一轮跑完自动发出" }),
|
|
1688
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "queue-caret", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 13 }) })
|
|
1689
|
-
]
|
|
1690
|
-
}
|
|
1691
|
-
) : null,
|
|
1692
|
-
expanded ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "queue-list", children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx("li", { className: "queue-row", children: editing?.index === item.index ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1693
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1694
|
-
"textarea",
|
|
1695
|
-
{
|
|
1696
|
-
className: "queue-edit-box",
|
|
1697
|
-
value: editing.text,
|
|
1698
|
-
autoFocus: true,
|
|
1699
|
-
rows: Math.min(8, Math.max(1, editing.text.split("\n").length)),
|
|
1700
|
-
"aria-label": "编辑排队消息",
|
|
1701
|
-
onChange: (event) => {
|
|
1702
|
-
setEditing({ index: item.index, text: event.target.value });
|
|
1703
|
-
},
|
|
1704
|
-
onKeyDown: (event) => {
|
|
1705
|
-
if (event.key === "Enter" && !event.shiftKey) {
|
|
1706
|
-
event.preventDefault();
|
|
1707
|
-
void save(item.index);
|
|
1708
|
-
return;
|
|
1709
|
-
}
|
|
1710
|
-
if (event.key === "Escape") {
|
|
1711
|
-
event.preventDefault();
|
|
1712
|
-
setEditing(null);
|
|
1713
|
-
}
|
|
1714
|
-
}
|
|
1715
|
-
}
|
|
1716
|
-
),
|
|
1717
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1718
|
-
"button",
|
|
1719
|
-
{
|
|
1720
|
-
type: "button",
|
|
1721
|
-
className: "queue-act",
|
|
1722
|
-
"aria-label": "保存排队消息",
|
|
1723
|
-
"data-tip": "保存(回车)",
|
|
1724
|
-
disabled: busy || editing.text.trim() === "",
|
|
1725
|
-
onClick: () => void save(item.index),
|
|
1726
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconCheck, { size: 13 })
|
|
1727
|
-
}
|
|
1728
|
-
),
|
|
1729
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1730
|
-
"button",
|
|
1731
|
-
{
|
|
1732
|
-
type: "button",
|
|
1733
|
-
className: "queue-act",
|
|
1734
|
-
"aria-label": "取消编辑",
|
|
1735
|
-
"data-tip": "取消(Esc)",
|
|
1736
|
-
disabled: busy,
|
|
1737
|
-
onClick: () => {
|
|
1738
|
-
setEditing(null);
|
|
1739
|
-
},
|
|
1740
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconClose, { size: 13 })
|
|
1741
|
-
}
|
|
1742
|
-
)
|
|
1743
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1744
|
-
count === 1 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "queue-lead", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconQueue, { size: 13 }) }) : null,
|
|
1745
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "queue-text", "data-tip": item.text, children: previewOf(item.text) }),
|
|
1746
|
-
item.images === void 0 || item.images.length === 0 ? null : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "queue-badge", "data-tip": `随这条一起排队的 ${String(item.images.length)} 张图`, children: [
|
|
1747
|
-
"+",
|
|
1748
|
-
item.images.length,
|
|
1749
|
-
" 图"
|
|
1750
|
-
] }),
|
|
1751
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "queue-acts", children: [
|
|
1752
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1753
|
-
"button",
|
|
1754
|
-
{
|
|
1755
|
-
type: "button",
|
|
1756
|
-
className: "queue-act",
|
|
1757
|
-
"aria-label": "编辑排队消息",
|
|
1758
|
-
"data-tip": "改这条排队消息",
|
|
1759
|
-
disabled: busy,
|
|
1760
|
-
onClick: () => {
|
|
1761
|
-
setEditing({ index: item.index, text: item.text });
|
|
1762
|
-
},
|
|
1763
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconEdit, { size: 13 })
|
|
1764
|
-
}
|
|
1765
|
-
),
|
|
1766
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1767
|
-
"button",
|
|
1768
|
-
{
|
|
1769
|
-
type: "button",
|
|
1770
|
-
className: "queue-act",
|
|
1771
|
-
"aria-label": "撤回排队消息",
|
|
1772
|
-
"data-tip": "撤掉这条(还没发出去)",
|
|
1773
|
-
disabled: busy,
|
|
1774
|
-
onClick: () => void remove(item.index),
|
|
1775
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconTrash, { size: 13 })
|
|
1776
|
-
}
|
|
1777
|
-
),
|
|
1778
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1779
|
-
"button",
|
|
1780
|
-
{
|
|
1781
|
-
type: "button",
|
|
1782
|
-
className: "queue-act",
|
|
1783
|
-
"aria-label": "插话发送",
|
|
1784
|
-
"data-tip": running ? "打断当前输出,让这条立刻发出去(模型已说出的半截保留)" : "这一轮已经跑完,排队消息会自己发出去",
|
|
1785
|
-
disabled: busy || !running,
|
|
1786
|
-
onClick: () => void steer(item.index),
|
|
1787
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconArrowUp, { size: 13 })
|
|
1788
|
-
}
|
|
1789
|
-
)
|
|
1790
|
-
] })
|
|
1791
|
-
] }) }, item.index)) }) : null
|
|
1792
|
-
] }),
|
|
1793
|
-
fault === null ? null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shell-composer-fault", children: fault })
|
|
1794
|
-
] });
|
|
1795
|
-
}
|
|
1796
|
-
const MAX_INPUT_HEIGHT = 200;
|
|
1797
|
-
const HISTORY_LIMIT = 50;
|
|
1798
|
-
let insertDraft = null;
|
|
1799
|
-
const DRAFT_STORE = /* @__PURE__ */ new Map();
|
|
1800
|
-
const ui = ui$1.defineUiPlugin({
|
|
1801
|
-
name: "输入区",
|
|
1802
|
-
apply(ui2) {
|
|
1803
|
-
ui2.provide("composerDraft", {
|
|
1804
|
-
insert: (text) => {
|
|
1805
|
-
insertDraft?.(text);
|
|
1806
|
-
}
|
|
1807
|
-
});
|
|
1808
|
-
ui2.slots.register("shell.composer", { id: "composer.notices", order: 40 }, NoticeStrip);
|
|
1809
|
-
ui2.slots.register("shell.composer", { id: "composer.box", order: 50 }, ComposerBox);
|
|
1810
|
-
ui2.slots.register("shell.composer", { id: "composer.queue", order: 60 }, QueueDock);
|
|
1811
|
-
}
|
|
1812
|
-
});
|
|
1813
|
-
function ComposerBox() {
|
|
1814
|
-
const channel = ui$1.useHostChannel();
|
|
1815
|
-
const turnState = ui$1.useHostSelector(uiPrimitives.readTurnState);
|
|
1816
|
-
const blocked = ui$1.useHostSelector(readHasApproval);
|
|
1817
|
-
const queuedCount = ui$1.useHostSelector(readInboxCount);
|
|
1818
|
-
const permissionPresets = ui$1.useHostSelector(readPermissionPresets, samePermissionPresets);
|
|
1819
|
-
const preset = ui$1.useHostSelector(readPresetSurface, samePresetSurface);
|
|
1820
|
-
const git = ui$1.useHostSelector(readGit, uiPrimitives.sameGitSurface);
|
|
1821
|
-
const draftKey = ui$1.useHostSelector(readSessionPath);
|
|
1822
|
-
const [text, setText] = react.useState("");
|
|
1823
|
-
const [fault, setFault] = react.useState(null);
|
|
1824
|
-
const [sending, setSending] = react.useState(false);
|
|
1825
|
-
const [attachments, setAttachments] = react.useState([]);
|
|
1826
|
-
const [dragOver, setDragOver] = react.useState(false);
|
|
1827
|
-
const [zoom, setZoom] = react.useState(null);
|
|
1828
|
-
const [permOpen, setPermOpen] = react.useState(false);
|
|
1829
|
-
const [presetOpen, setPresetOpen] = react.useState(false);
|
|
1830
|
-
const [branchOpen, setBranchOpen] = react.useState(false);
|
|
1831
|
-
const controls = useModelControls({
|
|
1832
|
-
channel,
|
|
1833
|
-
onFault: setFault,
|
|
1834
|
-
onTakeOver: () => {
|
|
1835
|
-
setPermOpen(false);
|
|
1836
|
-
setPresetOpen(false);
|
|
1837
|
-
setBranchOpen(false);
|
|
1838
|
-
}
|
|
1839
|
-
});
|
|
1840
|
-
const area = react.useRef(null);
|
|
1841
|
-
react.useEffect(() => {
|
|
1842
|
-
insertDraft = (value) => {
|
|
1843
|
-
setText(value);
|
|
1844
|
-
const node = area.current;
|
|
1845
|
-
if (node === null) return;
|
|
1846
|
-
node.focus();
|
|
1847
|
-
node.setSelectionRange(value.length, value.length);
|
|
1848
|
-
};
|
|
1849
|
-
return () => {
|
|
1850
|
-
insertDraft = null;
|
|
1851
|
-
};
|
|
1852
|
-
}, []);
|
|
1853
|
-
const history = react.useRef([]);
|
|
1854
|
-
const [historyAt, setHistoryAt] = react.useState(null);
|
|
1855
|
-
const drafts = react.useRef(DRAFT_STORE);
|
|
1856
|
-
const draftSessionId = ui$1.useHostSelector(readSessionId);
|
|
1857
|
-
const draftCwd = ui$1.useHostSelector(readDraftCwd);
|
|
1858
|
-
const draftUnsaved = ui$1.useHostSelector(readSessionUnsaved);
|
|
1859
|
-
const draftScope = draftScopeOf({
|
|
1860
|
-
sessionPath: draftKey,
|
|
1861
|
-
sessionId: draftSessionId,
|
|
1862
|
-
cwd: draftCwd,
|
|
1863
|
-
unsaved: draftUnsaved
|
|
1864
|
-
});
|
|
1865
|
-
const draftScopeRef = react.useRef(draftScope);
|
|
1866
|
-
const patchDraftsAttachment = (id, patch) => {
|
|
1867
|
-
for (const [key, draft] of drafts.current) {
|
|
1868
|
-
const list = draft.attachments;
|
|
1869
|
-
if (list === void 0 || !list.some((item) => item.id === id)) continue;
|
|
1870
|
-
const next = patch === null ? list.filter((item) => item.id !== id) : list.map((item) => item.id === id ? { ...item, ...patch } : item);
|
|
1871
|
-
drafts.current.set(key, { ...draft, attachments: next });
|
|
1872
|
-
}
|
|
1873
|
-
};
|
|
1874
|
-
const updateAttachment = (id, patch) => {
|
|
1875
|
-
setAttachments((list) => list.map((item) => item.id === id ? { ...item, ...patch } : item));
|
|
1876
|
-
patchDraftsAttachment(id, patch);
|
|
1877
|
-
};
|
|
1878
|
-
const removeAttachment = (id) => {
|
|
1879
|
-
const target = attachments.find((item) => item.id === id);
|
|
1880
|
-
if (target?.localUrl !== void 0) URL.revokeObjectURL(target.localUrl);
|
|
1881
|
-
setAttachments((list) => list.filter((item) => item.id !== id));
|
|
1882
|
-
patchDraftsAttachment(id, null);
|
|
1883
|
-
};
|
|
1884
|
-
const clearDraftAttachments = () => {
|
|
1885
|
-
for (const item of attachments) {
|
|
1886
|
-
if (item.localUrl !== void 0) URL.revokeObjectURL(item.localUrl);
|
|
1887
|
-
}
|
|
1888
|
-
setAttachments([]);
|
|
1889
|
-
const key = draftScopeRef.current.key;
|
|
1890
|
-
const saved = drafts.current.get(key);
|
|
1891
|
-
if (saved !== void 0) drafts.current.set(key, { ...saved, attachments: [] });
|
|
1892
|
-
};
|
|
1893
|
-
const working = turnState !== "idle";
|
|
1894
|
-
const restored = react.useRef(false);
|
|
1895
|
-
react.useEffect(() => {
|
|
1896
|
-
if (restored.current) return;
|
|
1897
|
-
restored.current = true;
|
|
1898
|
-
const key = draftScopeRef.current.key;
|
|
1899
|
-
if (key === "") return;
|
|
1900
|
-
const saved = DRAFT_STORE.get(key);
|
|
1901
|
-
if (saved === void 0) return;
|
|
1902
|
-
setText(saved.value);
|
|
1903
|
-
history.current = [...saved.history];
|
|
1904
|
-
setAttachments([...saved.attachments ?? []]);
|
|
1905
|
-
}, []);
|
|
1906
|
-
react.useEffect(() => {
|
|
1907
|
-
const key = draftScopeRef.current.key;
|
|
1908
|
-
if (key === "") return;
|
|
1909
|
-
DRAFT_STORE.set(key, { value: text, history: history.current, attachments });
|
|
1910
|
-
}, [text, attachments]);
|
|
1911
|
-
react.useEffect(() => {
|
|
1912
|
-
if (draftScopeRef.current.key === draftScope.key) return;
|
|
1913
|
-
const next = carryDraft(drafts.current, draftScopeRef.current, draftScope, {
|
|
1914
|
-
value: text,
|
|
1915
|
-
history: history.current,
|
|
1916
|
-
attachments
|
|
1917
|
-
});
|
|
1918
|
-
draftScopeRef.current = draftScope;
|
|
1919
|
-
setText(next.value);
|
|
1920
|
-
history.current = [...next.history];
|
|
1921
|
-
setAttachments([...next.attachments ?? []]);
|
|
1922
|
-
setHistoryAt(null);
|
|
1923
|
-
}, [draftScope.key, draftScope.sessionId, draftScope.unsaved, text, attachments]);
|
|
1924
|
-
react.useEffect(() => {
|
|
1925
|
-
const node = area.current;
|
|
1926
|
-
if (node === null) return;
|
|
1927
|
-
node.style.height = "auto";
|
|
1928
|
-
node.style.height = `${String(Math.min(node.scrollHeight, MAX_INPUT_HEIGHT))}px`;
|
|
1929
|
-
}, [text]);
|
|
1930
|
-
const send = (steer) => {
|
|
1931
|
-
const typed = text.trim();
|
|
1932
|
-
const picked = command.open && typed !== "/" ? command.insertText()?.trim() ?? null : null;
|
|
1933
|
-
const value = picked ?? typed;
|
|
1934
|
-
if (value === "" && attachments.length === 0 || blocked || sending) return;
|
|
1935
|
-
const claim = attachments.length === 0 ? command.claim(value) : null;
|
|
1936
|
-
if (claim !== null) {
|
|
1937
|
-
setFault(null);
|
|
1938
|
-
command.adopt(claim.insert);
|
|
1939
|
-
return;
|
|
1940
|
-
}
|
|
1941
|
-
if (value.startsWith("/") && attachments.length === 0) {
|
|
1942
|
-
command.hide();
|
|
1943
|
-
const target = value;
|
|
1944
|
-
setFault(null);
|
|
1945
|
-
void channel.invoke("runUiCommand", [target]).then(() => {
|
|
1946
|
-
history.current = [...history.current.filter((item) => item !== target), target].slice(-HISTORY_LIMIT);
|
|
1947
|
-
setHistoryAt(null);
|
|
1948
|
-
setText("");
|
|
1949
|
-
}).catch((reason) => {
|
|
1950
|
-
const message = reason instanceof Error ? reason.message : String(reason);
|
|
1951
|
-
setFault(
|
|
1952
|
-
message.includes("协议不允许调用的方法") ? "“/” 命令要宿主支持:当前宿主没把这条路接到界面通道,请在桌面端或终端里执行" : message
|
|
1953
|
-
);
|
|
1954
|
-
});
|
|
1955
|
-
return;
|
|
1956
|
-
}
|
|
1957
|
-
if (attachments.some((item) => item.uploading !== null)) {
|
|
1958
|
-
setFault("附件还在上传,请等上传完成后再发送");
|
|
1959
|
-
return;
|
|
1960
|
-
}
|
|
1961
|
-
const payload = composeSubmit(attachments);
|
|
1962
|
-
const steerIndex = steer && working ? queuedCount : null;
|
|
1963
|
-
setSending(true);
|
|
1964
|
-
setFault(null);
|
|
1965
|
-
void (async () => {
|
|
1966
|
-
try {
|
|
1967
|
-
if (payload.files.length > 0) {
|
|
1968
|
-
await channel.invoke("submit", [value, payload.images, payload.files]);
|
|
1969
|
-
} else if (payload.images.length > 0) {
|
|
1970
|
-
await channel.invoke("submit", [value, payload.images]);
|
|
1971
|
-
} else {
|
|
1972
|
-
await channel.invoke("submit", [value]);
|
|
1973
|
-
}
|
|
1974
|
-
if (value !== "") {
|
|
1975
|
-
history.current = [...history.current.filter((item) => item !== value), value].slice(-HISTORY_LIMIT);
|
|
1976
|
-
}
|
|
1977
|
-
setHistoryAt(null);
|
|
1978
|
-
void channel.invoke("refreshSessions").catch(() => void 0);
|
|
1979
|
-
if (steerIndex !== null) {
|
|
1980
|
-
const done = await channel.invoke("steerQueued", [steerIndex]);
|
|
1981
|
-
if (done !== true) setFault("插话没赶上:这一轮刚结束,这条消息会自己发出去");
|
|
1982
|
-
}
|
|
1983
|
-
setText("");
|
|
1984
|
-
clearDraftAttachments();
|
|
1985
|
-
if (payload.dropped > 0) {
|
|
1986
|
-
setFault(`图片最多 ${String(MAX_IMAGES)} 张,已发送前 ${String(MAX_IMAGES)} 张(${String(payload.dropped)} 张未发送)`);
|
|
1987
|
-
}
|
|
1988
|
-
} catch (reason) {
|
|
1989
|
-
setFault(reason instanceof Error ? reason.message : String(reason));
|
|
1990
|
-
} finally {
|
|
1991
|
-
setSending(false);
|
|
1992
|
-
}
|
|
1993
|
-
})();
|
|
1994
|
-
};
|
|
1995
|
-
const interrupt = () => {
|
|
1996
|
-
setFault(null);
|
|
1997
|
-
void channel.invoke("interrupt").catch((reason) => {
|
|
1998
|
-
setFault(reason instanceof Error ? reason.message : String(reason));
|
|
1999
|
-
});
|
|
2000
|
-
};
|
|
2001
|
-
const choosePermissionPreset = (name, label) => {
|
|
2002
|
-
setPermOpen(false);
|
|
2003
|
-
setFault(null);
|
|
2004
|
-
const native = ui$1.getHostNative();
|
|
2005
|
-
if (!native.available) {
|
|
2006
|
-
setFault("切权限预设这条口子只在桌面窗口里开(浏览器页签与远程页面够不着),请用桌面端或终端改");
|
|
2007
|
-
return;
|
|
2008
|
-
}
|
|
2009
|
-
void native.invoke("usePermissionPreset", [name]).then(() => {
|
|
2010
|
-
ui$1.toastOk(`权限预设已切到「${label}」`);
|
|
2011
|
-
}).catch((reason) => {
|
|
2012
|
-
setFault(`切权限预设失败:${reason instanceof Error ? reason.message : String(reason)}`);
|
|
2013
|
-
});
|
|
2014
|
-
};
|
|
2015
|
-
const choosePreset = (name, label) => {
|
|
2016
|
-
setPresetOpen(false);
|
|
2017
|
-
setFault(null);
|
|
2018
|
-
void channel.invoke("usePreset", [name]).then(() => {
|
|
2019
|
-
ui$1.toastOk(`已切到「${label}」模式`);
|
|
2020
|
-
}).catch((reason) => {
|
|
2021
|
-
ui$1.toastErr(`切换失败:${reason instanceof Error ? reason.message : String(reason)}`);
|
|
2022
|
-
});
|
|
2023
|
-
};
|
|
2024
|
-
const mention = useMention({
|
|
2025
|
-
channel,
|
|
2026
|
-
area,
|
|
2027
|
-
apply: (next, caret) => {
|
|
2028
|
-
setText(next);
|
|
2029
|
-
window.requestAnimationFrame(() => {
|
|
2030
|
-
area.current?.setSelectionRange(caret, caret);
|
|
2031
|
-
});
|
|
2032
|
-
}
|
|
2033
|
-
});
|
|
2034
|
-
const command = useCommandMenu({
|
|
2035
|
-
channel,
|
|
2036
|
-
apply: (next, caret) => {
|
|
2037
|
-
setText(next);
|
|
2038
|
-
window.requestAnimationFrame(() => {
|
|
2039
|
-
area.current?.setSelectionRange(caret, caret);
|
|
2040
|
-
});
|
|
2041
|
-
},
|
|
2042
|
-
onUnavailable: () => {
|
|
2043
|
-
setFault("当前宿主没接“/”命令通道:菜单不可用,请用桌面端或终端执行(升级宿主后自动可用)");
|
|
2044
|
-
}
|
|
2045
|
-
});
|
|
2046
|
-
const onKeyDown = (event) => {
|
|
2047
|
-
if (command.open) {
|
|
2048
|
-
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
2049
|
-
event.preventDefault();
|
|
2050
|
-
command.move(event.key === "ArrowDown" ? 1 : -1);
|
|
2051
|
-
return;
|
|
2052
|
-
}
|
|
2053
|
-
if (event.key === "Tab") {
|
|
2054
|
-
event.preventDefault();
|
|
2055
|
-
event.stopPropagation();
|
|
2056
|
-
command.pick();
|
|
2057
|
-
return;
|
|
2058
|
-
}
|
|
2059
|
-
if (event.key === "Escape") {
|
|
2060
|
-
event.preventDefault();
|
|
2061
|
-
command.close();
|
|
2062
|
-
return;
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
2065
|
-
if (mention.open) {
|
|
2066
|
-
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
2067
|
-
event.preventDefault();
|
|
2068
|
-
mention.move(event.key === "ArrowDown" ? 1 : -1);
|
|
2069
|
-
return;
|
|
2070
|
-
}
|
|
2071
|
-
if (event.key === "Tab" || event.key === "Enter") {
|
|
2072
|
-
event.preventDefault();
|
|
2073
|
-
event.stopPropagation();
|
|
2074
|
-
mention.pick();
|
|
2075
|
-
return;
|
|
2076
|
-
}
|
|
2077
|
-
if (event.key === "Escape") {
|
|
2078
|
-
event.preventDefault();
|
|
2079
|
-
mention.close();
|
|
2080
|
-
return;
|
|
2081
|
-
}
|
|
2082
|
-
}
|
|
2083
|
-
if (event.key === "Backspace" && text === "" && attachments.length > 0) {
|
|
2084
|
-
event.preventDefault();
|
|
2085
|
-
const last = attachments[attachments.length - 1];
|
|
2086
|
-
if (last !== void 0) removeAttachment(last.id);
|
|
2087
|
-
return;
|
|
2088
|
-
}
|
|
2089
|
-
if (event.key === "Enter") {
|
|
2090
|
-
if (event.shiftKey || event.nativeEvent.isComposing) return;
|
|
2091
|
-
event.preventDefault();
|
|
2092
|
-
send(event.ctrlKey || event.metaKey);
|
|
2093
|
-
return;
|
|
2094
|
-
}
|
|
2095
|
-
if (event.key === "ArrowUp" && (text === "" || historyAt !== null) && history.current.length > 0) {
|
|
2096
|
-
event.preventDefault();
|
|
2097
|
-
const next = historyAt === null ? history.current.length - 1 : Math.max(0, historyAt - 1);
|
|
2098
|
-
setHistoryAt(next);
|
|
2099
|
-
setText(history.current[next] ?? "");
|
|
2100
|
-
return;
|
|
2101
|
-
}
|
|
2102
|
-
if (event.key === "ArrowDown" && historyAt !== null) {
|
|
2103
|
-
event.preventDefault();
|
|
2104
|
-
const next = historyAt + 1;
|
|
2105
|
-
if (next >= history.current.length) {
|
|
2106
|
-
setHistoryAt(null);
|
|
2107
|
-
setText("");
|
|
2108
|
-
} else {
|
|
2109
|
-
setHistoryAt(next);
|
|
2110
|
-
setText(history.current[next] ?? "");
|
|
2111
|
-
}
|
|
2112
|
-
}
|
|
2113
|
-
};
|
|
2114
|
-
const onTextChange = (value, caret) => {
|
|
2115
|
-
setText(value);
|
|
2116
|
-
setHistoryAt(null);
|
|
2117
|
-
command.track(value, caret);
|
|
2118
|
-
if (commandQuery(value, caret) === null) mention.track(value, caret);
|
|
2119
|
-
else mention.close();
|
|
2120
|
-
};
|
|
2121
|
-
const sendable = text.trim() !== "" || attachments.length > 0;
|
|
2122
|
-
const inputHint = command.claim(text)?.hint ?? null;
|
|
2123
|
-
const queueing = working && sendable;
|
|
2124
|
-
const permOption = permissionPresets.options.find((item) => item.name === permissionPresets.current);
|
|
2125
|
-
const presetOption = preset.options.find((item) => item.name === preset.current);
|
|
2126
|
-
const addOneFile = async (file, kind) => {
|
|
2127
|
-
const id = newAttachmentId();
|
|
2128
|
-
const name = displayNameOf(file, kind);
|
|
2129
|
-
const localUrl = URL.createObjectURL(file);
|
|
2130
|
-
const placeholder2 = {
|
|
2131
|
-
id,
|
|
2132
|
-
kind,
|
|
2133
|
-
name,
|
|
2134
|
-
mime: file.type,
|
|
2135
|
-
bytes: file.size,
|
|
2136
|
-
meta: null,
|
|
2137
|
-
previewUrl: localUrl,
|
|
2138
|
-
localUrl,
|
|
2139
|
-
frames: [],
|
|
2140
|
-
uploading: 0,
|
|
2141
|
-
error: null
|
|
2142
|
-
};
|
|
2143
|
-
setAttachments((list) => [...list, placeholder2]);
|
|
2144
|
-
try {
|
|
2145
|
-
const payload = kind === "image" ? await normalizeImage(file) : file;
|
|
2146
|
-
const meta = await uploadFile(payload, name, (ratio) => {
|
|
2147
|
-
updateAttachment(id, { uploading: ratio });
|
|
2148
|
-
});
|
|
2149
|
-
updateAttachment(id, { meta, previewUrl: meta.url, uploading: null, localUrl: void 0 });
|
|
2150
|
-
URL.revokeObjectURL(localUrl);
|
|
2151
|
-
if (kind !== "video") return;
|
|
2152
|
-
const frames = await extractVideoFrames(meta.url, 6);
|
|
2153
|
-
const base = name.replace(/\.[^.]+$/, "");
|
|
2154
|
-
const urls = [];
|
|
2155
|
-
for (const [index, frame] of frames.entries()) {
|
|
2156
|
-
try {
|
|
2157
|
-
const frameMeta = await uploadFile(frame, `${base}-帧${String(index + 1)}.jpg`);
|
|
2158
|
-
urls.push(frameMeta.url);
|
|
2159
|
-
updateAttachment(id, { frames: [...urls] });
|
|
2160
|
-
} catch {
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
|
-
} catch (reason) {
|
|
2164
|
-
URL.revokeObjectURL(localUrl);
|
|
2165
|
-
setAttachments((list) => list.filter((item) => item.id !== id));
|
|
2166
|
-
patchDraftsAttachment(id, null);
|
|
2167
|
-
setFault(`上传失败:${reason instanceof Error ? reason.message : String(reason)}`);
|
|
2168
|
-
}
|
|
2169
|
-
};
|
|
2170
|
-
const addFiles = (files) => {
|
|
2171
|
-
if (files.length === 0) return;
|
|
2172
|
-
setFault(null);
|
|
2173
|
-
let rejected = false;
|
|
2174
|
-
for (const file of files) {
|
|
2175
|
-
const kind = kindOf(file);
|
|
2176
|
-
if (kind !== "file" && !controls.allowImage) {
|
|
2177
|
-
rejected = true;
|
|
2178
|
-
continue;
|
|
2179
|
-
}
|
|
2180
|
-
void addOneFile(file, kind);
|
|
2181
|
-
}
|
|
2182
|
-
if (rejected) setFault("当前模型不支持图片,请切换支持图片的模型");
|
|
2183
|
-
};
|
|
2184
|
-
const placeholder = blocked ? "等待审批…" : working ? "回合进行中:回车把消息排进队里,Ctrl+Enter 插话(打断当前输出)" : "发消息,@ 引用文件,可贴图 / 拖图片、视频或文件进来,回车发送,Ctrl+Enter 插话";
|
|
2185
|
-
return (
|
|
2186
|
-
// 这一层是「输入框外面那一列」:分支行在上、输入框在下,各占一行、各带自己的边。
|
|
2187
|
-
// 为什么不让分支行长在 `.composer` 里(原来就是):`.composer` 是带描边和圆角的
|
|
2188
|
-
// 输入框本体,住在里面的东西会被同一个外框一起圈住,分支钮看着就成了输入框的一部分
|
|
2189
|
-
// (用户报「git 管理按钮,需要与输入框作出区分」)。参考实现里这一行也在输入框上方的
|
|
2190
|
-
// 框外。`.composer-zone` 的「与正文列同宽」打在插件根节点上,所以这一层要接住它。
|
|
2191
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "composer-stack", style: { marginTop: 10 }, children: [
|
|
2192
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2193
|
-
BranchMenu,
|
|
2194
|
-
{
|
|
2195
|
-
open: branchOpen,
|
|
2196
|
-
onOpenChange: (open) => {
|
|
2197
|
-
setBranchOpen(open);
|
|
2198
|
-
if (!open) return;
|
|
2199
|
-
setPermOpen(false);
|
|
2200
|
-
setPresetOpen(false);
|
|
2201
|
-
controls.close();
|
|
2202
|
-
},
|
|
2203
|
-
git,
|
|
2204
|
-
channel,
|
|
2205
|
-
onFault: setFault
|
|
2206
|
-
}
|
|
2207
|
-
),
|
|
2208
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2209
|
-
"div",
|
|
2210
|
-
{
|
|
2211
|
-
className: "composer",
|
|
2212
|
-
onClick: (event) => {
|
|
2213
|
-
const target = event.target;
|
|
2214
|
-
if (target !== null && target.closest("button, textarea, input, .model-pop, .pop-mask") !== null) return;
|
|
2215
|
-
area.current?.focus();
|
|
2216
|
-
},
|
|
2217
|
-
onPaste: (event) => {
|
|
2218
|
-
const files = Array.from(event.clipboardData.files);
|
|
2219
|
-
if (files.length === 0) return;
|
|
2220
|
-
event.preventDefault();
|
|
2221
|
-
addFiles(files);
|
|
2222
|
-
},
|
|
2223
|
-
onDrop: (event) => {
|
|
2224
|
-
const files = Array.from(event.dataTransfer.files);
|
|
2225
|
-
setDragOver(false);
|
|
2226
|
-
if (files.length === 0) return;
|
|
2227
|
-
event.preventDefault();
|
|
2228
|
-
addFiles(files);
|
|
2229
|
-
},
|
|
2230
|
-
onDragEnter: (event) => {
|
|
2231
|
-
if (!event.dataTransfer.types.includes("Files")) return;
|
|
2232
|
-
event.preventDefault();
|
|
2233
|
-
setDragOver(true);
|
|
2234
|
-
},
|
|
2235
|
-
onDragOver: (event) => {
|
|
2236
|
-
if (!event.dataTransfer.types.includes("Files")) return;
|
|
2237
|
-
event.preventDefault();
|
|
2238
|
-
setDragOver(true);
|
|
2239
|
-
},
|
|
2240
|
-
onDragLeave: (event) => {
|
|
2241
|
-
const next = event.relatedTarget;
|
|
2242
|
-
if (next instanceof Node && event.currentTarget.contains(next)) return;
|
|
2243
|
-
setDragOver(false);
|
|
2244
|
-
},
|
|
2245
|
-
"data-drag": dragOver ? "1" : void 0,
|
|
2246
|
-
children: [
|
|
2247
|
-
attachments.length === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "composer-attachments", "aria-label": "待发送的附件", children: attachments.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2248
|
-
"div",
|
|
2249
|
-
{
|
|
2250
|
-
className: "attach-item",
|
|
2251
|
-
"data-kind": item.kind,
|
|
2252
|
-
"data-uploading": item.uploading !== null ? "1" : void 0,
|
|
2253
|
-
children: [
|
|
2254
|
-
item.kind === "file" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "attach-file", children: [
|
|
2255
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconPackage, { size: 14 }),
|
|
2256
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "attach-name", title: item.name, children: item.name }),
|
|
2257
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "attach-bytes", children: uiPrimitives.formatBytes(item.bytes) })
|
|
2258
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2259
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "attach-thumb", children: item.kind === "image" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2260
|
-
"button",
|
|
2261
|
-
{
|
|
2262
|
-
type: "button",
|
|
2263
|
-
className: "attach-zoom",
|
|
2264
|
-
"data-tip": "点开看大图",
|
|
2265
|
-
"aria-label": `预览 ${item.name}`,
|
|
2266
|
-
onClick: () => {
|
|
2267
|
-
setZoom({ src: item.previewUrl, alt: item.name });
|
|
2268
|
-
},
|
|
2269
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: item.previewUrl, alt: item.name })
|
|
2270
|
-
}
|
|
2271
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2272
|
-
"video",
|
|
2273
|
-
{
|
|
2274
|
-
muted: true,
|
|
2275
|
-
playsInline: true,
|
|
2276
|
-
preload: "metadata",
|
|
2277
|
-
src: item.previewUrl,
|
|
2278
|
-
"aria-label": item.name
|
|
2279
|
-
}
|
|
2280
|
-
) }),
|
|
2281
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "attach-name", title: item.name, children: item.name }),
|
|
2282
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "attach-bytes", children: uiPrimitives.formatBytes(item.bytes) }),
|
|
2283
|
-
item.frames.length === 0 ? null : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "attach-hint", children: [
|
|
2284
|
-
item.frames.length,
|
|
2285
|
-
" 帧"
|
|
2286
|
-
] })
|
|
2287
|
-
] }),
|
|
2288
|
-
item.uploading === null ? null : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "attach-progress", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: { width: `${String(Math.round(item.uploading * 100))}%` } }) }),
|
|
2289
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2290
|
-
"button",
|
|
2291
|
-
{
|
|
2292
|
-
type: "button",
|
|
2293
|
-
className: "attach-remove",
|
|
2294
|
-
"aria-label": `移除 ${item.name}`,
|
|
2295
|
-
title: `移除 ${item.name}`,
|
|
2296
|
-
onClick: () => {
|
|
2297
|
-
removeAttachment(item.id);
|
|
2298
|
-
},
|
|
2299
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconClose, { size: 12 })
|
|
2300
|
-
}
|
|
2301
|
-
)
|
|
2302
|
-
]
|
|
2303
|
-
},
|
|
2304
|
-
item.id
|
|
2305
|
-
)) }),
|
|
2306
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2307
|
-
"textarea",
|
|
2308
|
-
{
|
|
2309
|
-
ref: area,
|
|
2310
|
-
rows: 1,
|
|
2311
|
-
value: text,
|
|
2312
|
-
placeholder,
|
|
2313
|
-
disabled: blocked,
|
|
2314
|
-
"aria-label": "消息输入框",
|
|
2315
|
-
onChange: (event) => {
|
|
2316
|
-
onTextChange(event.target.value, event.target.selectionStart ?? event.target.value.length);
|
|
2317
|
-
},
|
|
2318
|
-
onKeyDown
|
|
2319
|
-
}
|
|
2320
|
-
),
|
|
2321
|
-
command.open ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "slash-pop", role: "listbox", "aria-label": "命令候选", children: [
|
|
2322
|
-
command.loading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "slash-item", "data-loading": "1", children: "正在读取命令清单…" }) : command.rows.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "slash-item", "data-empty": "1", children: "没有匹配的命令" }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2323
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "slash-section", role: "presentation", children: "指令" }),
|
|
2324
|
-
command.rows.map((row, index) => {
|
|
2325
|
-
const off = blockedNow(row, working);
|
|
2326
|
-
const Glyph = commandGlyph(row.name);
|
|
2327
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2328
|
-
"button",
|
|
2329
|
-
{
|
|
2330
|
-
type: "button",
|
|
2331
|
-
role: "option",
|
|
2332
|
-
"aria-selected": index === command.at,
|
|
2333
|
-
className: `slash-item${index === command.at ? " on" : ""}${off ? " off" : ""}`,
|
|
2334
|
-
title: row.description,
|
|
2335
|
-
onMouseDown: (event) => {
|
|
2336
|
-
event.preventDefault();
|
|
2337
|
-
command.pick();
|
|
2338
|
-
},
|
|
2339
|
-
children: [
|
|
2340
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "slash-icon", "aria-hidden": "true", children: Glyph === null ? null : /* @__PURE__ */ jsxRuntime.jsx(Glyph, { size: 14 }) }),
|
|
2341
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "slash-label", children: row.label ?? `/${row.name}` }),
|
|
2342
|
-
row.label === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "slash-name", children: row.name }),
|
|
2343
|
-
off ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "slash-flag", children: "回合中不可用" }) : null,
|
|
2344
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "slash-desc", children: row.description })
|
|
2345
|
-
]
|
|
2346
|
-
},
|
|
2347
|
-
row.name
|
|
2348
|
-
);
|
|
2349
|
-
})
|
|
2350
|
-
] }),
|
|
2351
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "slash-hint", children: "↑↓ 选 · Tab 补全 · Enter 执行 · Esc 关闭" })
|
|
2352
|
-
] }) : null,
|
|
2353
|
-
mention.open ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mention-pop", role: "listbox", "aria-label": "文件提及候选", children: [
|
|
2354
|
-
mention.loading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mention-item", "data-loading": "1", children: "正在读取工作区文件…" }) : mention.items.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mention-item", "data-empty": "1", children: "没有匹配的文件" }) : mention.items.map((path, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2355
|
-
"button",
|
|
2356
|
-
{
|
|
2357
|
-
type: "button",
|
|
2358
|
-
role: "option",
|
|
2359
|
-
"aria-selected": index === mention.at,
|
|
2360
|
-
className: `mention-item${index === mention.at ? " on" : ""}`,
|
|
2361
|
-
title: path,
|
|
2362
|
-
onMouseDown: (event) => {
|
|
2363
|
-
event.preventDefault();
|
|
2364
|
-
mention.pick();
|
|
2365
|
-
},
|
|
2366
|
-
children: path
|
|
2367
|
-
},
|
|
2368
|
-
path
|
|
2369
|
-
)),
|
|
2370
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mention-hint", children: "↑↓ 选 · Tab/Enter 补全 · Esc 关闭" })
|
|
2371
|
-
] }) : null,
|
|
2372
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "composer-bar", ref: controls.barRef, children: [
|
|
2373
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bar-left", children: [
|
|
2374
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2375
|
-
"button",
|
|
2376
|
-
{
|
|
2377
|
-
type: "button",
|
|
2378
|
-
className: "icon-btn",
|
|
2379
|
-
"data-tip": "插入指令(/)",
|
|
2380
|
-
"aria-label": "插入指令",
|
|
2381
|
-
onClick: () => {
|
|
2382
|
-
if (text.trim() !== "") return;
|
|
2383
|
-
setText("/");
|
|
2384
|
-
window.requestAnimationFrame(() => {
|
|
2385
|
-
area.current?.focus();
|
|
2386
|
-
area.current?.setSelectionRange(1, 1);
|
|
2387
|
-
});
|
|
2388
|
-
},
|
|
2389
|
-
children: "+"
|
|
2390
|
-
}
|
|
2391
|
-
),
|
|
2392
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "model-anchor model-anchor-sheet", children: [
|
|
2393
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2394
|
-
"button",
|
|
2395
|
-
{
|
|
2396
|
-
type: "button",
|
|
2397
|
-
className: `model-btn${permOpen ? " open" : ""}`,
|
|
2398
|
-
"data-tip": permOption?.description ?? "当前三项旋钮的组合不匹配任何预设;在设置里逐格改出来的状态",
|
|
2399
|
-
"aria-haspopup": "menu",
|
|
2400
|
-
"aria-expanded": permOpen,
|
|
2401
|
-
"aria-label": `权限预设:${permOption?.label ?? "自定义"}`,
|
|
2402
|
-
onClick: () => {
|
|
2403
|
-
setPermOpen((open) => !open);
|
|
2404
|
-
setPresetOpen(false);
|
|
2405
|
-
controls.close();
|
|
2406
|
-
setBranchOpen(false);
|
|
2407
|
-
},
|
|
2408
|
-
children: [
|
|
2409
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconShield, { size: 13 }),
|
|
2410
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "chip-label", children: permOption?.label ?? "自定义" }),
|
|
2411
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 12 })
|
|
2412
|
-
]
|
|
2413
|
-
}
|
|
2414
|
-
),
|
|
2415
|
-
permOpen ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2416
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2417
|
-
"div",
|
|
2418
|
-
{
|
|
2419
|
-
className: "pop-mask",
|
|
2420
|
-
onClick: () => {
|
|
2421
|
-
setPermOpen(false);
|
|
2422
|
-
}
|
|
2423
|
-
}
|
|
2424
|
-
),
|
|
2425
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "model-pop policy-pop", role: "menu", "aria-label": "权限预设", children: [
|
|
2426
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pop-label", children: [
|
|
2427
|
-
"权限预设",
|
|
2428
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pop-note", children: "沙箱 + 权限 + 审阅者 三合一" })
|
|
2429
|
-
] }),
|
|
2430
|
-
permissionPresets.options.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pop-item", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: "清单没取到" }) }) : permissionPresets.options.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2431
|
-
"button",
|
|
2432
|
-
{
|
|
2433
|
-
type: "button",
|
|
2434
|
-
role: "menuitemradio",
|
|
2435
|
-
"aria-checked": item.name === permissionPresets.current,
|
|
2436
|
-
className: `pop-item${item.name === permissionPresets.current ? " on" : ""}`,
|
|
2437
|
-
title: item.description,
|
|
2438
|
-
disabled: item.name === permissionPresets.current,
|
|
2439
|
-
onClick: () => {
|
|
2440
|
-
choosePermissionPreset(item.name, item.label);
|
|
2441
|
-
},
|
|
2442
|
-
children: [
|
|
2443
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: item.label }),
|
|
2444
|
-
item.name === permissionPresets.current ? /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconCheck, { size: 14, className: "check" }) : null
|
|
2445
|
-
]
|
|
2446
|
-
},
|
|
2447
|
-
item.name
|
|
2448
|
-
))
|
|
2449
|
-
] })
|
|
2450
|
-
] }) : null
|
|
2451
|
-
] }),
|
|
2452
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "model-anchor model-anchor-sheet", children: [
|
|
2453
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2454
|
-
"button",
|
|
2455
|
-
{
|
|
2456
|
-
type: "button",
|
|
2457
|
-
className: `model-btn${presetOpen ? " open" : ""}`,
|
|
2458
|
-
"data-tip": presetOption?.problem ?? presetOption?.description ?? "模式:模型是谁、手上有什么、被叮嘱了什么",
|
|
2459
|
-
"aria-haspopup": "menu",
|
|
2460
|
-
"aria-expanded": presetOpen,
|
|
2461
|
-
"aria-label": `模式:${presetOption?.label ?? preset.current}`,
|
|
2462
|
-
onClick: () => {
|
|
2463
|
-
setPresetOpen((open) => !open);
|
|
2464
|
-
setPermOpen(false);
|
|
2465
|
-
controls.close();
|
|
2466
|
-
setBranchOpen(false);
|
|
2467
|
-
},
|
|
2468
|
-
children: [
|
|
2469
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconLayers, { size: 13 }),
|
|
2470
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "chip-label", children: presetOption?.label ?? preset.current }),
|
|
2471
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 12 })
|
|
2472
|
-
]
|
|
2473
|
-
}
|
|
2474
|
-
),
|
|
2475
|
-
presetOpen ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2476
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2477
|
-
"div",
|
|
2478
|
-
{
|
|
2479
|
-
className: "pop-mask",
|
|
2480
|
-
onClick: () => {
|
|
2481
|
-
setPresetOpen(false);
|
|
2482
|
-
}
|
|
2483
|
-
}
|
|
2484
|
-
),
|
|
2485
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "model-pop preset-pop", role: "menu", "aria-label": "模式", children: [
|
|
2486
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pop-label", children: "模式" }),
|
|
2487
|
-
preset.options.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pop-item", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: "清单没取到" }) }) : preset.options.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2488
|
-
"button",
|
|
2489
|
-
{
|
|
2490
|
-
type: "button",
|
|
2491
|
-
role: "menuitemradio",
|
|
2492
|
-
"aria-checked": item.name === preset.current,
|
|
2493
|
-
className: `pop-item${item.name === preset.current ? " on" : ""}`,
|
|
2494
|
-
title: item.problem ?? item.description,
|
|
2495
|
-
disabled: item.name === preset.current,
|
|
2496
|
-
onClick: () => {
|
|
2497
|
-
choosePreset(item.name, item.label);
|
|
2498
|
-
},
|
|
2499
|
-
children: [
|
|
2500
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "name", children: [
|
|
2501
|
-
item.label,
|
|
2502
|
-
item.name === preset.defaultName && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pop-badge", children: "默认" }),
|
|
2503
|
-
item.problem !== void 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "pop-badge warn", children: "有问题" })
|
|
2504
|
-
] }),
|
|
2505
|
-
item.name === preset.current ? /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconCheck, { size: 14, className: "check" }) : null
|
|
2506
|
-
]
|
|
2507
|
-
},
|
|
2508
|
-
item.name
|
|
2509
|
-
))
|
|
2510
|
-
] })
|
|
2511
|
-
] }) : null
|
|
2512
|
-
] })
|
|
2513
|
-
] }),
|
|
2514
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bar-right", children: [
|
|
2515
|
-
controls.node,
|
|
2516
|
-
working ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2517
|
-
"button",
|
|
2518
|
-
{
|
|
2519
|
-
type: "button",
|
|
2520
|
-
className: `send-btn stop${queueing ? " dim" : ""}`,
|
|
2521
|
-
"aria-label": "停止生成",
|
|
2522
|
-
"data-tip": "停止生成",
|
|
2523
|
-
onClick: interrupt,
|
|
2524
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconStop, { size: 16 })
|
|
2525
|
-
}
|
|
2526
|
-
) : null,
|
|
2527
|
-
!working || queueing ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2528
|
-
"button",
|
|
2529
|
-
{
|
|
2530
|
-
type: "button",
|
|
2531
|
-
className: "send-btn",
|
|
2532
|
-
"aria-label": working ? "排队发送" : "发送",
|
|
2533
|
-
disabled: !sendable || blocked || sending,
|
|
2534
|
-
"data-tip": working ? "排队发送:这一轮跑完立刻发出(Ctrl+Enter 插话:打断当前输出先发这条)" : "发送,快捷键 Enter",
|
|
2535
|
-
onClick: () => {
|
|
2536
|
-
send(false);
|
|
2537
|
-
},
|
|
2538
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconArrowUp, { size: 16 })
|
|
2539
|
-
}
|
|
2540
|
-
) : null
|
|
2541
|
-
] })
|
|
2542
|
-
] })
|
|
2543
|
-
]
|
|
2544
|
-
}
|
|
2545
|
-
),
|
|
2546
|
-
inputHint === null ? null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shell-composer-hint", children: inputHint }),
|
|
2547
|
-
fault === null ? null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shell-composer-fault", children: fault }),
|
|
2548
|
-
zoom === null ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2549
|
-
uiPrimitives.ImageLightbox,
|
|
2550
|
-
{
|
|
2551
|
-
src: zoom.src,
|
|
2552
|
-
alt: zoom.alt,
|
|
2553
|
-
onClose: () => {
|
|
2554
|
-
setZoom(null);
|
|
2555
|
-
}
|
|
2556
|
-
}
|
|
2557
|
-
)
|
|
2558
|
-
] })
|
|
2559
|
-
);
|
|
2560
|
-
}
|
|
2561
|
-
exports.default = ui;
|
|
2562
|
-
};
|