@waq666/pneuma 0.8.0 → 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 +97 -23
- package/bin/dsc.js +25 -2
- package/lib/adapter/transcript.d.ts +94 -1
- package/lib/adapter/transcript.js +410 -13
- 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 +114 -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 +77 -6
- package/lib/contract/settings.d.ts +143 -3
- package/lib/contract/snapshot.d.ts +27 -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 +57 -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/git-info.d.ts +127 -15
- package/lib/core/git-info.js +307 -32
- 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 +15 -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 +85 -9
- package/lib/core/llm.js +152 -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 +240 -18
- package/lib/core/session.js +511 -26
- 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 +60 -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/commands-completion.js +245 -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-core/permission-scope.js +109 -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 +384 -29
- 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 -288
- 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 -274
- 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 -89
- package/lib/core/commands-completion.js +0 -192
- package/lib/core/compact.d.ts +0 -110
- package/lib/core/compact.js +0 -210
- 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 -648
- 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 -54
- package/lib/core/permission-scope.js +0 -84
- package/lib/core/presets.d.ts +0 -91
- package/lib/core/presets.js +0 -384
- 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 -314
- 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 -504
- package/lib/plugins/compact.d.ts +0 -21
- package/lib/plugins/compact.js +0 -316
- 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 -126
- package/lib/plugins/goal.d.ts +0 -20
- package/lib/plugins/goal.js +0 -242
- 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 -305
- 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 -18
- package/lib/plugins/microcompact.js +0 -191
- 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 -1021
- package/lib/plugins/runtime-api.js +0 -99
- package/lib/plugins/runtime.js +0 -523
- 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 -300
- 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 -361
- package/lib/plugins/spill.js +0 -207
- package/lib/plugins/subagent.d.ts +0 -2
- package/lib/plugins/subagent.js +0 -1026
- 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-MhfBFsp-.js +0 -89
- 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-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-CA5f1pGf.js +0 -12
- 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-Cq7xGE-D.js +0 -10
- 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-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-CIJVQKkj.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 -2509
- 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 -1595
- 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 -1406
- 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 -2966
- 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 -116
- package/lib/ui/sdk/@dsc/ui-primitives/index.d.ts +0 -68
- 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-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/{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/{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,1309 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 桌面操作实现(Windows):截屏、点鼠标、敲键盘、拖拽、列窗口/应用/显示器,
|
|
3
|
-
* 以及无障碍(UIA)元素观察与定向动作。全部通过一次 PowerShell 子进程 +
|
|
4
|
-
* user32 P/Invoke + System.Windows.Automation + System.Drawing 完成,零 npm 依赖。
|
|
5
|
-
*
|
|
6
|
-
* 坐标系说明(重要):一律用**虚拟屏幕物理像素**。每次动作前进程内先
|
|
7
|
-
* `SetProcessDPIAware()`,于是截屏像素与屏幕像素一比一对齐;截图被缩放过时,
|
|
8
|
-
* 调用方传进来的仍是图上的像素,本模块自己按缩放系数换算回去。
|
|
9
|
-
*
|
|
10
|
-
* 无障碍观察(0.6.68 parity 补齐):新增 `get_app_state` 观察路径,用 UIA
|
|
11
|
-
* 枚举窗口控件树,产出结构化 elements + 文本树 + state_id。
|
|
12
|
-
* - 元素索引作用域 = 该窗口**最近一次观察**;元素消失一律 fail-closed(报错,
|
|
13
|
-
* 绝不退回坐标去乱点)。
|
|
14
|
-
* - 目标两种(判别字段 `type`):`{type:'element', index}` 或
|
|
15
|
-
* `{type:'coordinate', x, y}`(与 ZCode 的 target 语义一致)。
|
|
16
|
-
*
|
|
17
|
-
* 两个自研坑(dsh 把桌面操作外包给 Rust driver,所以它没有这两个坑):
|
|
18
|
-
* - `Graphics.CopyFromScreen` 在 DPI 缩放下会拍到缩放过的图,所以必须先声明 DPI 感知;
|
|
19
|
-
* - 文本输入走剪贴板粘贴,绕开 SendKeys 对中文和 `{}` 之类的限制,代价是覆盖剪贴板,
|
|
20
|
-
* 因此这里会先把原来的**文本**剪贴板存回去(图片/文件类剪贴板内容保不住)。
|
|
21
|
-
*
|
|
22
|
-
* @module dsc/core/desktop-control
|
|
23
|
-
*/
|
|
24
|
-
import { spawn } from 'node:child_process';
|
|
25
|
-
import { appendFileSync, mkdirSync } from 'node:fs';
|
|
26
|
-
import { dirname, join } from 'node:path';
|
|
27
|
-
import { errText } from './err-text.js';
|
|
28
|
-
/** 桌面动作(工具 action 枚举;名字尽量照 ZCode 语义)。 */
|
|
29
|
-
export const DESKTOP_ACTIONS = [
|
|
30
|
-
'screenshot',
|
|
31
|
-
'click',
|
|
32
|
-
'type',
|
|
33
|
-
'key',
|
|
34
|
-
'scroll',
|
|
35
|
-
'drag',
|
|
36
|
-
'paste',
|
|
37
|
-
'set_value',
|
|
38
|
-
'select_text',
|
|
39
|
-
'perform_action',
|
|
40
|
-
'cursor',
|
|
41
|
-
'list_windows',
|
|
42
|
-
'list_apps',
|
|
43
|
-
'screens',
|
|
44
|
-
'get_app_state',
|
|
45
|
-
'stop',
|
|
46
|
-
];
|
|
47
|
-
/** 旧名兼容:`window_list` 是 `list_windows` 的历史叫法(老配置里可能还写着它)。 */
|
|
48
|
-
export const ACTION_ALIASES = { window_list: 'list_windows' };
|
|
49
|
-
/** 把(可能是旧名的)动作名归一成规范名;不认识返回 null。 */
|
|
50
|
-
export function canonicalAction(name) {
|
|
51
|
-
if (DESKTOP_ACTIONS.includes(name))
|
|
52
|
-
return name;
|
|
53
|
-
return ACTION_ALIASES[name] ?? null;
|
|
54
|
-
}
|
|
55
|
-
/** 只读观察动作(看,不动手):免审批的那一档就是它们。 */
|
|
56
|
-
export const READ_ACTIONS = [
|
|
57
|
-
'screenshot',
|
|
58
|
-
'cursor',
|
|
59
|
-
'list_windows',
|
|
60
|
-
'list_apps',
|
|
61
|
-
'screens',
|
|
62
|
-
'get_app_state',
|
|
63
|
-
];
|
|
64
|
-
const DPI_A = "using System.Runtime.InteropServices; public class DscDpi { [DllImport(\"user32.dll\")] public static extern bool SetProcessDPIAware(); }";
|
|
65
|
-
const MOUSE_TYPE = `using System; using System.Runtime.InteropServices; public class DscMouse {
|
|
66
|
-
[DllImport("user32.dll")] public static extern bool SetCursorPos(int x, int y);
|
|
67
|
-
[DllImport("user32.dll")] public static extern void mouse_event(uint f, uint dx, uint dy, uint d, UIntPtr e);
|
|
68
|
-
[DllImport("user32.dll")] public static extern bool GetCursorPos(out POINT p); public struct POINT { public int X; public int Y; } }`;
|
|
69
|
-
/** 窗口查询/激活的 P/Invoke(前台判断、白名单、窗口绑定、激活都用它)。 */
|
|
70
|
-
const WINDOW_TYPE = `using System; using System.Diagnostics; using System.Runtime.InteropServices; public class DscWin {
|
|
71
|
-
[DllImport("user32.dll")] public static extern IntPtr GetForegroundWindow();
|
|
72
|
-
[DllImport("user32.dll")] public static extern bool SetForegroundWindow(IntPtr h);
|
|
73
|
-
[DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr h, int cmd);
|
|
74
|
-
[DllImport("user32.dll")] public static extern uint GetWindowThreadProcessId(IntPtr h, out uint pid);
|
|
75
|
-
[DllImport("user32.dll", CharSet=CharSet.Auto, SetLastError=true)] public static extern int GetWindowText(IntPtr h, System.Text.StringBuilder s, int n);
|
|
76
|
-
[DllImport("user32.dll")] public static extern bool GetWindowRect(IntPtr h, out RECT r);
|
|
77
|
-
[DllImport("user32.dll")] public static extern bool IsWindowVisible(IntPtr h);
|
|
78
|
-
[DllImport("user32.dll")] public static extern bool IsIconic(IntPtr h);
|
|
79
|
-
public struct RECT { public int Left; public int Top; public int Right; public int Bottom; }
|
|
80
|
-
static string Proc(IntPtr h) { uint pid = 0; GetWindowThreadProcessId(h, out pid); try { return Process.GetProcessById((int)pid).ProcessName; } catch { return "?"; } }
|
|
81
|
-
public static string Describe() { IntPtr h = GetForegroundWindow(); var sb = new System.Text.StringBuilder(512); GetWindowText(h, sb, sb.Capacity); return Proc(h) + "|" + sb.ToString(); } }`;
|
|
82
|
-
/** UIA 引导(观察与元素动作共用)。这段 PowerShell 里定义了 Walk / Patterns-Of / Value-Of 等小函数。 */
|
|
83
|
-
const UIA_BOOT = `Add-Type -AssemblyName UIAutomationClient
|
|
84
|
-
Add-Type -AssemblyName UIAutomationTypes
|
|
85
|
-
Add-Type -AssemblyName WindowsBase
|
|
86
|
-
Add-Type -TypeDefinition '${DPI_A}'
|
|
87
|
-
[DscDpi]::SetProcessDPIAware() | Out-Null
|
|
88
|
-
Add-Type -TypeDefinition '${WINDOW_TYPE}'
|
|
89
|
-
$scopeChildren = [System.Windows.Automation.TreeScope]::Children
|
|
90
|
-
$cond = [System.Windows.Automation.Condition]::TrueCondition
|
|
91
|
-
$walker = [System.Windows.Automation.TreeWalker]::ControlViewWalker
|
|
92
|
-
function Resolve-Win([int]$winId, [string]$winText) {
|
|
93
|
-
$w = $null
|
|
94
|
-
if ($winId -gt 0) { try { $w = [System.Windows.Automation.AutomationElement]::FromHandle([IntPtr]$winId) } catch { $w = $null } }
|
|
95
|
-
if ($null -eq $w -and $winText -ne '') {
|
|
96
|
-
$all = [System.Windows.Automation.AutomationElement]::RootElement.FindAll($scopeChildren, $cond)
|
|
97
|
-
foreach ($c in $all) { try { if ($c.Current.Name.IndexOf($winText, [System.StringComparison]::OrdinalIgnoreCase) -ge 0) { $w = $c; break } } catch { } }
|
|
98
|
-
}
|
|
99
|
-
if ($null -eq $w) { try { $w = [System.Windows.Automation.AutomationElement]::FromHandle([DscWin]::GetForegroundWindow()) } catch { $w = $null } }
|
|
100
|
-
return $w
|
|
101
|
-
}
|
|
102
|
-
function Proc-Of([int]$h) { $p = 0; [DscWin]::GetWindowThreadProcessId([IntPtr]$h, [ref]$p) | Out-Null; try { return [System.Diagnostics.Process]::GetProcessById($p).ProcessName } catch { return '?' } }
|
|
103
|
-
function Rect-Of($el) { try { $r = $el.Current.BoundingRectangle; if ($r.IsEmpty) { return $null }; return [pscustomobject]@{ x=[int]$r.X; y=[int]$r.Y; width=[int]$r.Width; height=[int]$r.Height } } catch { return $null } }
|
|
104
|
-
function Patterns-Of($el) {
|
|
105
|
-
$p = New-Object System.Collections.ArrayList
|
|
106
|
-
$o = $null
|
|
107
|
-
try { if ($el.TryGetCurrentPattern([System.Windows.Automation.InvokePattern]::Pattern, [ref]$o)) { [void]$p.Add('Invoke') } } catch { }
|
|
108
|
-
$o = $null
|
|
109
|
-
try { if ($el.TryGetCurrentPattern([System.Windows.Automation.TogglePattern]::Pattern, [ref]$o)) { [void]$p.Add('Toggle') } } catch { }
|
|
110
|
-
$o = $null
|
|
111
|
-
try { if ($el.TryGetCurrentPattern([System.Windows.Automation.SelectionItemPattern]::Pattern, [ref]$o)) { [void]$p.Add('SelectionItem') } } catch { }
|
|
112
|
-
$o = $null
|
|
113
|
-
try { if ($el.TryGetCurrentPattern([System.Windows.Automation.ExpandCollapsePattern]::Pattern, [ref]$o)) { [void]$p.Add('ExpandCollapse') } } catch { }
|
|
114
|
-
$o = $null
|
|
115
|
-
try { if ($el.TryGetCurrentPattern([System.Windows.Automation.ValuePattern]::Pattern, [ref]$o)) { [void]$p.Add('Value') } } catch { }
|
|
116
|
-
$o = $null
|
|
117
|
-
try { if ($el.TryGetCurrentPattern([System.Windows.Automation.ScrollPattern]::Pattern, [ref]$o)) { [void]$p.Add('Scroll') } } catch { }
|
|
118
|
-
$o = $null
|
|
119
|
-
try { if ($el.TryGetCurrentPattern([System.Windows.Automation.RangeValuePattern]::Pattern, [ref]$o)) { [void]$p.Add('RangeValue') } } catch { }
|
|
120
|
-
$o = $null
|
|
121
|
-
try { if ($el.TryGetCurrentPattern([System.Windows.Automation.TextPattern]::Pattern, [ref]$o)) { [void]$p.Add('Text') } } catch { }
|
|
122
|
-
return $p
|
|
123
|
-
}
|
|
124
|
-
function Value-Of($el) { try { $vp = $el.GetCurrentPattern([System.Windows.Automation.ValuePattern]::Pattern); return [string]$vp.Current.Value } catch { return '' } }
|
|
125
|
-
function Read-El($el, [int]$i) {
|
|
126
|
-
$ct = ''; $nm = ''; $aid = ''; $val = ''; $en = $true; $off = $false
|
|
127
|
-
try { $ct = [string]$el.Current.ControlType.ProgrammaticName; if ($ct.StartsWith('ControlType.')) { $ct = $ct.Substring(12) } } catch { }
|
|
128
|
-
try { $nm = [string]$el.Current.Name } catch { }
|
|
129
|
-
try { $aid = [string]$el.Current.AutomationId } catch { }
|
|
130
|
-
try { $en = [bool]$el.Current.IsEnabled } catch { }
|
|
131
|
-
try { $off = [bool]$el.Current.IsOffscreen } catch { }
|
|
132
|
-
if (-not $off) { $val = Value-Of $el }
|
|
133
|
-
return [pscustomobject]@{ index=$i; controlType=$ct; title=$nm; automaid=$aid; value=$val; bounds=(Rect-Of $el); patterns=(Patterns-Of $el); enabled=$en; offscreen=$off }
|
|
134
|
-
}`;
|
|
135
|
-
/** 鼠标键 → 按下/抬起事件位。 */
|
|
136
|
-
const BUTTON_EVENT = {
|
|
137
|
-
left: [2, 4],
|
|
138
|
-
right: [8, 16],
|
|
139
|
-
middle: [32, 64],
|
|
140
|
-
};
|
|
141
|
-
/** SendKeys 键名白名单(不认识的键名一律拒绝,避免把任意文本当语法喂进去)。 */
|
|
142
|
-
const KEY_MAP = {
|
|
143
|
-
enter: '{ENTER}',
|
|
144
|
-
tab: '{TAB}',
|
|
145
|
-
esc: '{ESC}',
|
|
146
|
-
escape: '{ESC}',
|
|
147
|
-
space: ' ',
|
|
148
|
-
backspace: '{BACKSPACE}',
|
|
149
|
-
delete: '{DELETE}',
|
|
150
|
-
insert: '{INSERT}',
|
|
151
|
-
home: '{HOME}',
|
|
152
|
-
end: '{END}',
|
|
153
|
-
pageup: '{PGUP}',
|
|
154
|
-
pagedown: '{PGDN}',
|
|
155
|
-
up: '{UP}',
|
|
156
|
-
down: '{DOWN}',
|
|
157
|
-
left: '{LEFT}',
|
|
158
|
-
right: '{RIGHT}',
|
|
159
|
-
f1: '{F1}',
|
|
160
|
-
f2: '{F2}',
|
|
161
|
-
f3: '{F3}',
|
|
162
|
-
f4: '{F4}',
|
|
163
|
-
f5: '{F5}',
|
|
164
|
-
f6: '{F6}',
|
|
165
|
-
f7: '{F7}',
|
|
166
|
-
f8: '{F8}',
|
|
167
|
-
f9: '{F9}',
|
|
168
|
-
f10: '{F10}',
|
|
169
|
-
f11: '{F11}',
|
|
170
|
-
f12: '{F12}',
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* 明确禁止的按键组合。SendKeys 本来就发不出 Win 键,这里再挡一层
|
|
174
|
-
* 那些「一发出去就把人锁在门外」的组合。
|
|
175
|
-
*/
|
|
176
|
-
const BANNED_KEYS = ['win', 'cmd', 'super', 'meta'];
|
|
177
|
-
/** 观察/遍历上限(防止一棵病态树把上下文撑爆;超了在文本里明说被截断)。 */
|
|
178
|
-
export const OBSERVE_MAX_ELEMENTS = 400;
|
|
179
|
-
/** PowerShell 单引号字符串转义。 */
|
|
180
|
-
function psQuote(text) {
|
|
181
|
-
return `'${text.replace(/'/g, "''")}'`;
|
|
182
|
-
}
|
|
183
|
-
/** 正在跑的 PowerShell 子进程(急停时一次性杀掉)。 */
|
|
184
|
-
const activeChildren = new Set();
|
|
185
|
-
/**
|
|
186
|
-
* 急停:杀掉所有在跑的 PowerShell 子进程。
|
|
187
|
-
* @returns 实际尝试杀掉的进程数(0 = 当时没有在跑的)。
|
|
188
|
-
*/
|
|
189
|
-
export function killAllPowerShell() {
|
|
190
|
-
const count = activeChildren.size;
|
|
191
|
-
for (const child of activeChildren) {
|
|
192
|
-
try {
|
|
193
|
-
child.kill();
|
|
194
|
-
}
|
|
195
|
-
catch {
|
|
196
|
-
// 已经退出/杀不掉都无所谓,急停只求尽快
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
activeChildren.clear();
|
|
200
|
-
return count;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* 跑一段 PowerShell 并取 stdout。
|
|
204
|
-
* @param signal - 外部取消时立刻杀掉子进程(用户中断这一轮,不该留一个正在点鼠标的进程)。
|
|
205
|
-
*/
|
|
206
|
-
export function runPowerShell(script, timeoutMs = 20000, signal) {
|
|
207
|
-
return new Promise((resolve, reject) => {
|
|
208
|
-
const child = spawn('powershell.exe', ['-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'Bypass', '-Command', script], { windowsHide: true });
|
|
209
|
-
activeChildren.add(child);
|
|
210
|
-
let out = '';
|
|
211
|
-
let err = '';
|
|
212
|
-
const timer = setTimeout(() => {
|
|
213
|
-
child.kill();
|
|
214
|
-
reject(new Error(`桌面操作超时(${Math.round(timeoutMs / 1000)} 秒)`));
|
|
215
|
-
}, timeoutMs);
|
|
216
|
-
const abort = () => {
|
|
217
|
-
child.kill();
|
|
218
|
-
reject(new Error('桌面操作被取消'));
|
|
219
|
-
};
|
|
220
|
-
signal?.addEventListener('abort', abort, { once: true });
|
|
221
|
-
const clean = () => {
|
|
222
|
-
activeChildren.delete(child);
|
|
223
|
-
clearTimeout(timer);
|
|
224
|
-
signal?.removeEventListener('abort', abort);
|
|
225
|
-
};
|
|
226
|
-
child.stdout.on('data', (chunk) => {
|
|
227
|
-
out += chunk.toString();
|
|
228
|
-
});
|
|
229
|
-
child.stderr.on('data', (chunk) => {
|
|
230
|
-
err += chunk.toString();
|
|
231
|
-
});
|
|
232
|
-
child.on('close', (code) => {
|
|
233
|
-
clean();
|
|
234
|
-
if (code === 0)
|
|
235
|
-
resolve(out);
|
|
236
|
-
else
|
|
237
|
-
reject(new Error(err.trim() !== '' ? err.trim() : `powershell 退出码 ${String(code)}`));
|
|
238
|
-
});
|
|
239
|
-
child.on('error', (error) => {
|
|
240
|
-
clean();
|
|
241
|
-
reject(error);
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
/** 把 `ctrl+shift+s` 这类键名翻成 SendKeys 语法。 */
|
|
246
|
-
export function toSendKeys(key) {
|
|
247
|
-
const parts = String(key)
|
|
248
|
-
.toLowerCase()
|
|
249
|
-
.split('+')
|
|
250
|
-
.map((part) => part.trim())
|
|
251
|
-
.filter((part) => part !== '');
|
|
252
|
-
let modifiers = '';
|
|
253
|
-
const singles = [];
|
|
254
|
-
for (const part of parts) {
|
|
255
|
-
if (part === 'ctrl')
|
|
256
|
-
modifiers += '^';
|
|
257
|
-
else if (part === 'alt')
|
|
258
|
-
modifiers += '%';
|
|
259
|
-
else if (part === 'shift')
|
|
260
|
-
modifiers += '+';
|
|
261
|
-
else if (BANNED_KEYS.includes(part)) {
|
|
262
|
-
throw new Error(`不允许按 Win 键(${part}):这类按键会把桌面切走,请用 click 点你要的地方`);
|
|
263
|
-
}
|
|
264
|
-
else if (KEY_MAP[part] !== undefined)
|
|
265
|
-
singles.push(KEY_MAP[part]);
|
|
266
|
-
else if (part.length === 1)
|
|
267
|
-
singles.push(part);
|
|
268
|
-
else
|
|
269
|
-
throw new Error(`不认识的按键「${part}」。认得的:${Object.keys(KEY_MAP).join(' / ')},或单字符`);
|
|
270
|
-
}
|
|
271
|
-
if (singles.length === 0)
|
|
272
|
-
throw new Error(`按键 ${key} 里没有可执行的键`);
|
|
273
|
-
return modifiers + singles.join('');
|
|
274
|
-
}
|
|
275
|
-
// ── 脚本生成(全部导出,自检直接对文本断言) ─────────────────────────────
|
|
276
|
-
/** 截屏脚本:DPI 感知 → 抓虚拟屏(或裁切块)→ 需要时缩放 → 按质量存 JPEG/PNG → base64。 */
|
|
277
|
-
export function screenshotScript(maxEdge, format, quality, clip) {
|
|
278
|
-
const encode = format === 'jpeg'
|
|
279
|
-
? `$codec = [System.Drawing.Imaging.ImageCodecInfo]::GetImageEncoders() | Where-Object { $_.MimeType -eq 'image/jpeg' }
|
|
280
|
-
$ep = New-Object System.Drawing.Imaging.EncoderParameters 1
|
|
281
|
-
$ep.Param[0] = New-Object System.Drawing.Imaging.EncoderParameter([System.Drawing.Imaging.Encoder]::Quality, [long]${quality})
|
|
282
|
-
$bmp.Save($ms, $codec, $ep)`
|
|
283
|
-
: '$bmp.Save($ms, [System.Drawing.Imaging.ImageFormat]::Png)';
|
|
284
|
-
const hasClip = clip !== undefined && clip.width > 0 && clip.height > 0;
|
|
285
|
-
const region = hasClip
|
|
286
|
-
? `$srcRect = New-Object System.Drawing.Rectangle ([int]($b.Left + ${Math.round(clip.x)})), ([int]($b.Top + ${Math.round(clip.y)})), ${Math.round(clip.width)}, ${Math.round(clip.height)}
|
|
287
|
-
$ox = ${Math.round(clip.x)}; $oy = ${Math.round(clip.y)}`
|
|
288
|
-
: `$srcRect = New-Object System.Drawing.Rectangle $b.Left, $b.Top, $b.Width, $b.Height
|
|
289
|
-
$ox = 0; $oy = 0`;
|
|
290
|
-
return `
|
|
291
|
-
Add-Type -AssemblyName System.Windows.Forms
|
|
292
|
-
Add-Type -AssemblyName System.Drawing
|
|
293
|
-
Add-Type -TypeDefinition '${DPI_A}'
|
|
294
|
-
[DscDpi]::SetProcessDPIAware() | Out-Null
|
|
295
|
-
$b = [System.Windows.Forms.SystemInformation]::VirtualScreen
|
|
296
|
-
${region}
|
|
297
|
-
$src = New-Object System.Drawing.Bitmap $srcRect.Width, $srcRect.Height
|
|
298
|
-
$g = [System.Drawing.Graphics]::FromImage($src)
|
|
299
|
-
$g.CopyFromScreen($srcRect.Left, $srcRect.Top, 0, 0, $src.Size)
|
|
300
|
-
$max = ${maxEdge}
|
|
301
|
-
$w = $src.Width; $h = $src.Height
|
|
302
|
-
if ($w -gt $max -or $h -gt $max) {
|
|
303
|
-
if ($w -ge $h) { $nh = [int]([double]$max * $h / $w); $nw = $max } else { $nw = [int]([double]$max * $w / $h); $nh = $max }
|
|
304
|
-
$bmp = New-Object System.Drawing.Bitmap $nw, $nh
|
|
305
|
-
$g2 = [System.Drawing.Graphics]::FromImage($bmp)
|
|
306
|
-
$g2.InterpolationMode = [System.Drawing.Drawing2D.InterpolationMode]::HighQualityBicubic
|
|
307
|
-
$g2.DrawImage($src, 0, 0, $w, $h)
|
|
308
|
-
} else { $bmp = $src; $nw = $w; $nh = $h }
|
|
309
|
-
$ms = New-Object System.IO.MemoryStream
|
|
310
|
-
${encode}
|
|
311
|
-
"$nw,$nh,$srcRect.Width,$srcRect.Height,$ox,$oy,$($b.Left),$($b.Top),$($b.Width),$($b.Height)|" + [Convert]::ToBase64String($ms.ToArray())
|
|
312
|
-
`;
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* 无障碍观察脚本:枚举目标窗口(或前台窗口)的控件树,输出一行 JSON。
|
|
316
|
-
* UIA 不可用时输出 `{ok:false,error:"…"}`(Node 侧抛成明确中文),绝不静默。
|
|
317
|
-
*/
|
|
318
|
-
export function observeScript(options = {}) {
|
|
319
|
-
const winId = Math.max(0, Math.round(options.windowId ?? 0));
|
|
320
|
-
const winText = psQuote(String(options.windowText ?? ''));
|
|
321
|
-
const max = Math.max(10, Math.round(options.maxElements ?? OBSERVE_MAX_ELEMENTS));
|
|
322
|
-
return `
|
|
323
|
-
$ErrorActionPreference = 'Stop'
|
|
324
|
-
try {
|
|
325
|
-
${UIA_BOOT}
|
|
326
|
-
$win = Resolve-Win ${winId} ${winText}
|
|
327
|
-
if ($null -eq $win) { throw '拿不到目标窗口(前台窗口句柄无效,或标题没匹配上)' }
|
|
328
|
-
$wh = [int]$win.Current.NativeWindowHandle
|
|
329
|
-
$wtitle = ''; try { $wtitle = [string]$win.Current.Name } catch { }
|
|
330
|
-
$proc = Proc-Of $wh
|
|
331
|
-
$wb = Rect-Of $win
|
|
332
|
-
$max = ${max}
|
|
333
|
-
$script:idx = 0
|
|
334
|
-
$items = New-Object System.Collections.ArrayList
|
|
335
|
-
$lines = New-Object System.Collections.ArrayList
|
|
336
|
-
function Walk($el, [int]$depth) {
|
|
337
|
-
if ($script:idx -ge $max) { return }
|
|
338
|
-
$i = $script:idx; $script:idx = $i + 1
|
|
339
|
-
$o = Read-El $el $i
|
|
340
|
-
[void]$items.Add($o)
|
|
341
|
-
$line = (' ' * $depth) + '[' + $i + '] ' + $o.controlType
|
|
342
|
-
if ($o.title -ne '') { $line += ' "' + $o.title + '"' }
|
|
343
|
-
if ($o.value -ne '') { $line += ' = "' + $o.value + '"' }
|
|
344
|
-
if ($o.offscreen) { $line += ' (屏外)' }
|
|
345
|
-
[void]$lines.Add($line)
|
|
346
|
-
$child = $walker.GetFirstChild($el)
|
|
347
|
-
while ($null -ne $child) {
|
|
348
|
-
if ($script:idx -ge $max) { break }
|
|
349
|
-
Walk $child ($depth + 1)
|
|
350
|
-
$child = $walker.GetNextSibling($child)
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
Walk $win 0
|
|
354
|
-
if ($script:idx -ge $max) { [void]$lines.Add('…(控件数超过 ' + $max + ',已截断)') }
|
|
355
|
-
$obj = [pscustomobject]@{ ok=$true; error=''; app=$proc; window=[pscustomobject]@{ id=$wh; title=$wtitle; bounds=$wb }; elements=$items; text=($lines -join "\`n") }
|
|
356
|
-
$obj | ConvertTo-Json -Depth 8 -Compress
|
|
357
|
-
} catch {
|
|
358
|
-
[pscustomobject]@{ ok=$false; error=[string]$_.Exception.Message; app=''; window=$null; elements=@(); text='' } | ConvertTo-Json -Depth 8 -Compress
|
|
359
|
-
}
|
|
360
|
-
`;
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* 元素动作脚本:重新遍历到第 index 个控件,按 pattern 派发(set_value / select_text / perform_action)。
|
|
364
|
-
* 输出 JSON `{ok, error, method}`;method='none' 表示该控件没有对应模式(Node 侧据此回退)。
|
|
365
|
-
*/
|
|
366
|
-
export function elementActionScript(kind, options) {
|
|
367
|
-
const winId = Math.max(0, Math.round(options.windowId ?? 0));
|
|
368
|
-
const winText = psQuote(String(options.windowText ?? ''));
|
|
369
|
-
const index = Math.max(0, Math.round(options.index));
|
|
370
|
-
const dispatch = buildElementDispatch(kind, options.pattern, options.value);
|
|
371
|
-
return `
|
|
372
|
-
$ErrorActionPreference = 'Stop'
|
|
373
|
-
try {
|
|
374
|
-
${UIA_BOOT}
|
|
375
|
-
$win = Resolve-Win ${winId} ${winText}
|
|
376
|
-
if ($null -eq $win) { throw '拿不到目标窗口,元素索引无法解析' }
|
|
377
|
-
$target = ${index}
|
|
378
|
-
$script:idx = 0
|
|
379
|
-
$script:found = $null
|
|
380
|
-
function Find($el) {
|
|
381
|
-
if ($null -ne $script:found) { return }
|
|
382
|
-
if ($script:idx -eq $target) { $script:found = $el; return }
|
|
383
|
-
$script:idx = $script:idx + 1
|
|
384
|
-
$child = $walker.GetFirstChild($el)
|
|
385
|
-
while ($null -ne $child) {
|
|
386
|
-
if ($null -ne $script:found) { return }
|
|
387
|
-
Find $child
|
|
388
|
-
$child = $walker.GetNextSibling($child)
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
Find $win
|
|
392
|
-
if ($null -eq $script:found) { throw '元素 #' + $target + ' 已经不在了(界面可能变了,请重新 get_app_state)' }
|
|
393
|
-
$method = ${dispatch}
|
|
394
|
-
[pscustomobject]@{ ok=$true; error=''; method=$method } | ConvertTo-Json -Compress
|
|
395
|
-
} catch {
|
|
396
|
-
[pscustomobject]@{ ok=$false; error=[string]$_.Exception.Message; method='error' } | ConvertTo-Json -Compress
|
|
397
|
-
}
|
|
398
|
-
`;
|
|
399
|
-
}
|
|
400
|
-
/** 生成元素动作的 PowerShell 派发片段(返回值:'value' | 'invoke' | 'toggle' | 'expand' | 'collapse' | 'select' | 'selecttext' | 'scrollinto' | 'none')。 */
|
|
401
|
-
function buildElementDispatch(kind, pattern, value) {
|
|
402
|
-
if (kind === 'set_value') {
|
|
403
|
-
return `$vp = $null
|
|
404
|
-
if ($script:found.TryGetCurrentPattern([System.Windows.Automation.ValuePattern]::Pattern, [ref]$vp)) { $vp.SetValue(${psQuote(String(value ?? ''))}); 'value' } else { 'none' }`;
|
|
405
|
-
}
|
|
406
|
-
if (kind === 'select_text') {
|
|
407
|
-
return `$tp = $null
|
|
408
|
-
if ($script:found.TryGetCurrentPattern([System.Windows.Automation.TextPattern]::Pattern, [ref]$tp)) { $tp.DocumentRange.Select(); 'selecttext' }
|
|
409
|
-
else { $si = $null; if ($script:found.TryGetCurrentPattern([System.Windows.Automation.SelectionItemPattern]::Pattern, [ref]$si)) { $si.Select(); 'select' } else { 'none' } }`;
|
|
410
|
-
}
|
|
411
|
-
const name = String(pattern ?? 'invoke').toLowerCase();
|
|
412
|
-
const map = {
|
|
413
|
-
invoke: `$p = $null; if ($script:found.TryGetCurrentPattern([System.Windows.Automation.InvokePattern]::Pattern, [ref]$p)) { $p.Invoke(); 'invoke' } else { 'none' }`,
|
|
414
|
-
toggle: `$p = $null; if ($script:found.TryGetCurrentPattern([System.Windows.Automation.TogglePattern]::Pattern, [ref]$p)) { $p.Toggle(); 'toggle' } else { 'none' }`,
|
|
415
|
-
expand: `$p = $null; if ($script:found.TryGetCurrentPattern([System.Windows.Automation.ExpandCollapsePattern]::Pattern, [ref]$p)) { $p.Expand(); 'expand' } else { 'none' }`,
|
|
416
|
-
collapse: `$p = $null; if ($script:found.TryGetCurrentPattern([System.Windows.Automation.ExpandCollapsePattern]::Pattern, [ref]$p)) { $p.Collapse(); 'collapse' } else { 'none' }`,
|
|
417
|
-
select: `$p = $null; if ($script:found.TryGetCurrentPattern([System.Windows.Automation.SelectionItemPattern]::Pattern, [ref]$p)) { $p.Select(); 'select' } else { 'none' }`,
|
|
418
|
-
scrollintoview: `$p = $null; if ($script:found.TryGetCurrentPattern([System.Windows.Automation.ScrollItemPattern]::Pattern, [ref]$p)) { $p.ScrollIntoView(); 'scrollinto' } else { 'none' }`,
|
|
419
|
-
};
|
|
420
|
-
const body = map[name];
|
|
421
|
-
if (body === undefined) {
|
|
422
|
-
return `throw '不认识的 action「${name}」。认得的:${Object.keys(map).join(' / ')}'`;
|
|
423
|
-
}
|
|
424
|
-
return body;
|
|
425
|
-
}
|
|
426
|
-
/** 拖拽脚本:起点按下 → 分步插值移动到终点 → **finally 里保证抬起**。 */
|
|
427
|
-
export function dragScript(from, to, steps, stepDelayMs) {
|
|
428
|
-
const n = Math.max(2, Math.round(steps));
|
|
429
|
-
const delay = Math.max(0, Math.round(stepDelayMs));
|
|
430
|
-
return `
|
|
431
|
-
Add-Type -TypeDefinition '${MOUSE_TYPE}'
|
|
432
|
-
[DscMouse]::SetCursorPos(${Math.round(from.x)}, ${Math.round(from.y)}) | Out-Null
|
|
433
|
-
Start-Sleep -Milliseconds 60
|
|
434
|
-
[DscMouse]::mouse_event(2,0,0,0,[UIntPtr]::Zero)
|
|
435
|
-
try {
|
|
436
|
-
for ($i = 1; $i -le ${n}; $i++) {
|
|
437
|
-
$px = [int](${Math.round(from.x)} + (${Math.round(to.x)} - ${Math.round(from.x)}) * $i / ${n})
|
|
438
|
-
$py = [int](${Math.round(from.y)} + (${Math.round(to.y)} - ${Math.round(from.y)}) * $i / ${n})
|
|
439
|
-
[DscMouse]::SetCursorPos($px, $py) | Out-Null
|
|
440
|
-
Start-Sleep -Milliseconds ${delay}
|
|
441
|
-
}
|
|
442
|
-
} finally {
|
|
443
|
-
[DscMouse]::mouse_event(4,0,0,0,[UIntPtr]::Zero)
|
|
444
|
-
}
|
|
445
|
-
'Done'
|
|
446
|
-
`;
|
|
447
|
-
}
|
|
448
|
-
/** 点击脚本:移动到点 → 单击/双击(可选先激活窗口)。 */
|
|
449
|
-
export function clickScript(point, button, double, activateLine, pauseMs) {
|
|
450
|
-
const events = BUTTON_EVENT[button] ?? BUTTON_EVENT.left;
|
|
451
|
-
const pause = pauseMs > 0 ? `Start-Sleep -Milliseconds ${pauseMs}` : '';
|
|
452
|
-
const clicks = double ? 2 : 1;
|
|
453
|
-
const clickLines = Array.from({ length: clicks }, () => `[DscMouse]::mouse_event(${events[0]},0,0,0,[UIntPtr]::Zero); Start-Sleep -Milliseconds 30; [DscMouse]::mouse_event(${events[1]},0,0,0,[UIntPtr]::Zero)`).join(`; ${pause}; `);
|
|
454
|
-
return `
|
|
455
|
-
Add-Type -TypeDefinition '${MOUSE_TYPE}'
|
|
456
|
-
Add-Type -TypeDefinition '${WINDOW_TYPE}'
|
|
457
|
-
${activateLine}
|
|
458
|
-
[DscMouse]::SetCursorPos(${Math.round(point.x)}, ${Math.round(point.y)}) | Out-Null
|
|
459
|
-
${pause}
|
|
460
|
-
${clickLines}
|
|
461
|
-
'Done'
|
|
462
|
-
`;
|
|
463
|
-
}
|
|
464
|
-
/** 滚轮脚本:可选先把鼠标移到某点,再滚 amount 档。 */
|
|
465
|
-
export function scrollScript(amount, move, pauseMs) {
|
|
466
|
-
const pause = pauseMs > 0 ? `Start-Sleep -Milliseconds ${pauseMs}` : '';
|
|
467
|
-
const step = amount > 0 ? '4294967176' : '120';
|
|
468
|
-
return `
|
|
469
|
-
Add-Type -TypeDefinition '${MOUSE_TYPE}'
|
|
470
|
-
${move}
|
|
471
|
-
for ($i = 0; $i -lt ${Math.abs(amount)}; $i++) { [DscMouse]::mouse_event(0x0800, 0, 0, ${step}, [UIntPtr]::Zero); ${pause} }
|
|
472
|
-
'Done'
|
|
473
|
-
`;
|
|
474
|
-
}
|
|
475
|
-
/** 按键脚本:按住 hold_seconds(可选)再松开,repeat 次。 */
|
|
476
|
-
export function keyScript(keys, repeat, holdSeconds) {
|
|
477
|
-
const hold = holdSeconds > 0 ? `Start-Sleep -Milliseconds ${Math.round(holdSeconds * 1000)}` : '';
|
|
478
|
-
return `
|
|
479
|
-
Add-Type -AssemblyName System.Windows.Forms
|
|
480
|
-
for ($i = 0; $i -lt ${Math.max(1, Math.round(repeat))}; $i++) {
|
|
481
|
-
[System.Windows.Forms.SendKeys]::SendWait(${psQuote(keys)})
|
|
482
|
-
${hold}
|
|
483
|
-
}
|
|
484
|
-
'Done'
|
|
485
|
-
`;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* 粘贴脚本:把 text(可选)写进系统剪贴板,Ctrl+V,然后**还原用户原来的文本剪贴板**。
|
|
489
|
-
* `text` 省略时直接用当前剪贴板(不动它,也不还原)。
|
|
490
|
-
*/
|
|
491
|
-
export function pasteScript(text) {
|
|
492
|
-
if (text === undefined) {
|
|
493
|
-
return `
|
|
494
|
-
Add-Type -AssemblyName System.Windows.Forms
|
|
495
|
-
[System.Windows.Forms.SendKeys]::SendWait('^v')
|
|
496
|
-
'Done'
|
|
497
|
-
`;
|
|
498
|
-
}
|
|
499
|
-
return `
|
|
500
|
-
Add-Type -AssemblyName System.Windows.Forms
|
|
501
|
-
$old = $null
|
|
502
|
-
try { $old = Get-Clipboard -TextFormatType Text } catch { }
|
|
503
|
-
Set-Clipboard -Value ${psQuote(text)}
|
|
504
|
-
[System.Windows.Forms.SendKeys]::SendWait('^v')
|
|
505
|
-
Start-Sleep -Milliseconds 80
|
|
506
|
-
if ($null -ne $old) { Set-Clipboard -Value $old }
|
|
507
|
-
'Done'
|
|
508
|
-
`;
|
|
509
|
-
}
|
|
510
|
-
/** 文本输入脚本:写剪贴板 → 粘贴 → 还原原剪贴板。 */
|
|
511
|
-
export function typeScript(text) {
|
|
512
|
-
return `
|
|
513
|
-
Add-Type -AssemblyName System.Windows.Forms
|
|
514
|
-
$old = $null
|
|
515
|
-
try { $old = Get-Clipboard -TextFormatType Text } catch { }
|
|
516
|
-
Set-Clipboard -Value ${psQuote(text)}
|
|
517
|
-
[System.Windows.Forms.SendKeys]::SendWait('^v')
|
|
518
|
-
Start-Sleep -Milliseconds 80
|
|
519
|
-
if ($null -ne $old) { Set-Clipboard -Value $old }
|
|
520
|
-
'Done'
|
|
521
|
-
`;
|
|
522
|
-
}
|
|
523
|
-
/** 列窗口脚本(增强:window_id/title/app/bounds/main/focused/onscreen)。 */
|
|
524
|
-
export function listWindowsScript() {
|
|
525
|
-
return `
|
|
526
|
-
$ErrorActionPreference = 'Stop'
|
|
527
|
-
try {
|
|
528
|
-
${UIA_BOOT}
|
|
529
|
-
$root = [System.Windows.Automation.AutomationElement]::RootElement
|
|
530
|
-
$fg = [int][DscWin]::GetForegroundWindow()
|
|
531
|
-
$wins = $root.FindAll($scopeChildren, $cond)
|
|
532
|
-
$out = New-Object System.Collections.ArrayList
|
|
533
|
-
foreach ($w in $wins) {
|
|
534
|
-
try {
|
|
535
|
-
$h = [int]$w.Current.NativeWindowHandle
|
|
536
|
-
if ($h -le 0) { continue }
|
|
537
|
-
$mainH = 0
|
|
538
|
-
try { $p = 0; [DscWin]::GetWindowThreadProcessId([IntPtr]$h, [ref]$p) | Out-Null; $mainH = [int]([System.Diagnostics.Process]::GetProcessById($p)).MainWindowHandle } catch { $mainH = 0 }
|
|
539
|
-
$r = Rect-Of $w
|
|
540
|
-
[void]$out.Add([pscustomobject]@{ window_id=$h; title=[string]$w.Current.Name; app=(Proc-Of $h); bounds=$r; main=($h -eq $mainH); focused=($h -eq $fg); onscreen=(-not [bool]$w.Current.IsOffscreen) })
|
|
541
|
-
} catch { }
|
|
542
|
-
}
|
|
543
|
-
[pscustomobject]@{ ok=$true; error=''; windows=$out } | ConvertTo-Json -Depth 6 -Compress
|
|
544
|
-
} catch {
|
|
545
|
-
[pscustomobject]@{ ok=$false; error=[string]$_.Exception.Message; windows=@() } | ConvertTo-Json -Depth 6 -Compress
|
|
546
|
-
}
|
|
547
|
-
`;
|
|
548
|
-
}
|
|
549
|
-
/** 列应用脚本:进程名 + 主窗口 + 是否前台。 */
|
|
550
|
-
export function listAppsScript() {
|
|
551
|
-
return `
|
|
552
|
-
$ErrorActionPreference = 'Stop'
|
|
553
|
-
try {
|
|
554
|
-
Add-Type -TypeDefinition '${DPI_A}'
|
|
555
|
-
[DscDpi]::SetProcessDPIAware() | Out-Null
|
|
556
|
-
Add-Type -TypeDefinition '${WINDOW_TYPE}'
|
|
557
|
-
$fgh = [DscWin]::GetForegroundWindow()
|
|
558
|
-
$fgp = 0
|
|
559
|
-
[DscWin]::GetWindowThreadProcessId($fgh, [ref]$fgp) | Out-Null
|
|
560
|
-
$out = New-Object System.Collections.ArrayList
|
|
561
|
-
foreach ($p in (Get-Process | Where-Object { $_.MainWindowHandle -ne 0 } | Sort-Object ProcessName -Unique)) {
|
|
562
|
-
[void]$out.Add([pscustomobject]@{ pid=$p.Id; app=$p.ProcessName; title=$p.MainWindowTitle; foreground=($p.Id -eq [int]$fgp) })
|
|
563
|
-
}
|
|
564
|
-
[pscustomobject]@{ ok=$true; error=''; apps=$out } | ConvertTo-Json -Depth 6 -Compress
|
|
565
|
-
} catch {
|
|
566
|
-
[pscustomobject]@{ ok=$false; error=[string]$_.Exception.Message; apps=@() } | ConvertTo-Json -Depth 6 -Compress
|
|
567
|
-
}
|
|
568
|
-
`;
|
|
569
|
-
}
|
|
570
|
-
/** 显示器枚举脚本(含负坐标)。 */
|
|
571
|
-
export function screensScript() {
|
|
572
|
-
return `
|
|
573
|
-
$ErrorActionPreference = 'Stop'
|
|
574
|
-
try {
|
|
575
|
-
Add-Type -AssemblyName System.Windows.Forms
|
|
576
|
-
Add-Type -TypeDefinition '${DPI_A}'
|
|
577
|
-
[DscDpi]::SetProcessDPIAware() | Out-Null
|
|
578
|
-
$out = New-Object System.Collections.ArrayList
|
|
579
|
-
foreach ($s in [System.Windows.Forms.Screen]::AllScreens) {
|
|
580
|
-
[void]$out.Add([pscustomobject]@{ device=$s.DeviceName; primary=$s.Primary; bounds=[pscustomobject]@{ x=[int]$s.Bounds.X; y=[int]$s.Bounds.Y; width=[int]$s.Bounds.Width; height=[int]$s.Bounds.Height } })
|
|
581
|
-
}
|
|
582
|
-
[pscustomobject]@{ ok=$true; error=''; screens=$out } | ConvertTo-Json -Depth 6 -Compress
|
|
583
|
-
} catch {
|
|
584
|
-
[pscustomobject]@{ ok=$false; error=[string]$_.Exception.Message; screens=@() } | ConvertTo-Json -Depth 6 -Compress
|
|
585
|
-
}
|
|
586
|
-
`;
|
|
587
|
-
}
|
|
588
|
-
/** 窗口探测脚本:解析 window 选择器,返回句柄 + 标题 + 矩形(绑定坐标与激活用)。 */
|
|
589
|
-
export function probeWindowScript(selector) {
|
|
590
|
-
const isHandle = typeof selector === 'number' || /^\d+$/.test(String(selector).trim());
|
|
591
|
-
const winId = isHandle ? Math.max(0, Math.round(Number(selector))) : 0;
|
|
592
|
-
const winText = isHandle ? '' : String(selector);
|
|
593
|
-
return `
|
|
594
|
-
$ErrorActionPreference = 'Stop'
|
|
595
|
-
try {
|
|
596
|
-
Add-Type -TypeDefinition '${DPI_A}'
|
|
597
|
-
[DscDpi]::SetProcessDPIAware() | Out-Null
|
|
598
|
-
Add-Type -TypeDefinition '${WINDOW_TYPE}'
|
|
599
|
-
$h = [IntPtr]::Zero
|
|
600
|
-
$winId = ${winId}
|
|
601
|
-
$winText = ${psQuote(winText)}
|
|
602
|
-
if ($winId -gt 0) { $h = [IntPtr]$winId }
|
|
603
|
-
elseif ($winText -ne '') {
|
|
604
|
-
foreach ($p in (Get-Process | Where-Object { $_.MainWindowHandle -ne 0 })) {
|
|
605
|
-
try { if ($p.MainWindowTitle.IndexOf($winText, [System.StringComparison]::OrdinalIgnoreCase) -ge 0 -or $p.ProcessName.IndexOf($winText, [System.StringComparison]::OrdinalIgnoreCase) -ge 0) { $h = $p.MainWindowHandle; break } } catch { }
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
if ($h -eq [IntPtr]::Zero) { throw '找不到窗口「' + $winText + '」' }
|
|
609
|
-
$r = New-Object DscWin+RECT
|
|
610
|
-
[DscWin]::GetWindowRect($h, [ref]$r) | Out-Null
|
|
611
|
-
$sb = New-Object System.Text.StringBuilder 512
|
|
612
|
-
[DscWin]::GetWindowText($h, $sb, $sb.Capacity) | Out-Null
|
|
613
|
-
[pscustomobject]@{ ok=$true; error=''; id=[int]$h; title=$sb.ToString(); bounds=[pscustomobject]@{ x=$r.Left; y=$r.Top; width=($r.Right - $r.Left); height=($r.Bottom - $r.Top) } } | ConvertTo-Json -Compress
|
|
614
|
-
} catch {
|
|
615
|
-
[pscustomobject]@{ ok=$false; error=[string]$_.Exception.Message; id=0; title=''; bounds=$null } | ConvertTo-Json -Compress
|
|
616
|
-
}
|
|
617
|
-
`;
|
|
618
|
-
}
|
|
619
|
-
// ── 纯函数:目标解析 / 帧解析 / 差分 / settle ─────────────────────────────
|
|
620
|
-
function assertInt(value, label) {
|
|
621
|
-
const num = Number(value);
|
|
622
|
-
if (!Number.isInteger(num))
|
|
623
|
-
throw new Error(`${label} 必须是整数,收到 ${String(value)}`);
|
|
624
|
-
return num;
|
|
625
|
-
}
|
|
626
|
-
/**
|
|
627
|
-
* 把截图像素坐标换算成屏幕物理坐标。
|
|
628
|
-
* @throws 小数坐标,或换算后落在屏幕外(这里不靠 SetCursorPos 静默夹紧,越界就是要告诉模型)。
|
|
629
|
-
*/
|
|
630
|
-
export function resolveScreenPoint(args, bounds, scale) {
|
|
631
|
-
const rawX = args.x;
|
|
632
|
-
const rawY = args.y;
|
|
633
|
-
if (rawX === undefined || rawY === undefined)
|
|
634
|
-
throw new Error('这个动作要带 x 与 y(截图上的像素坐标)');
|
|
635
|
-
if (!Number.isInteger(rawX) || !Number.isInteger(rawY)) {
|
|
636
|
-
throw new Error(`x 与 y 必须是整数,收到 (${String(rawX)}, ${String(rawY)})`);
|
|
637
|
-
}
|
|
638
|
-
return clampToScreen(Math.round(rawX / scale), Math.round(rawY / scale), bounds);
|
|
639
|
-
}
|
|
640
|
-
function clampToScreen(x, y, bounds) {
|
|
641
|
-
if (x < bounds.left || x >= bounds.left + bounds.width || y < bounds.top || y >= bounds.top + bounds.height) {
|
|
642
|
-
throw new Error(`坐标 (${x}, ${y}) 在屏幕外(有效范围 ${bounds.left},${bounds.top} 到 ${bounds.left + bounds.width - 1},${bounds.top + bounds.height - 1})。先 screenshot 看清界面再点`);
|
|
643
|
-
}
|
|
644
|
-
return { x, y };
|
|
645
|
-
}
|
|
646
|
-
/**
|
|
647
|
-
* 解析一个动作目标成屏幕物理坐标(纯函数,自检直接调)。
|
|
648
|
-
*
|
|
649
|
-
* - coordinate:图上的整数像素(按 scale 换算);若绑定了窗口,则相对该窗口左上角。
|
|
650
|
-
* - element:走该窗口**最近一次观察**(frame)里的 index;**元素不存在一律 fail-closed**
|
|
651
|
-
* (抛 ELEMENT_UNAVAILABLE,绝不退回坐标);元素在屏外/无矩形同样报错。
|
|
652
|
-
*
|
|
653
|
-
* @param target - 元素或坐标目标。缺省时用 legacy 的扁平 x/y(兼容旧参数形状)。
|
|
654
|
-
* @param frame - 该窗口最近一次观察(element 目标必须有)。
|
|
655
|
-
* @param bounds - 虚拟屏幕矩形。
|
|
656
|
-
* @param scale - 最近一张截图的缩放系数。
|
|
657
|
-
* @param windowBounds - 绑定窗口的矩形(给了则坐标按窗口左上角解析)。
|
|
658
|
-
*/
|
|
659
|
-
export function resolveTarget(target, legacy, frame, bounds, scale, windowBounds) {
|
|
660
|
-
const actual = target ?? (legacy?.x !== undefined && legacy?.y !== undefined ? { type: 'coordinate', x: legacy.x, y: legacy.y } : undefined);
|
|
661
|
-
if (actual === undefined) {
|
|
662
|
-
throw new Error('这个动作要带 target({type:\'element\', index} 或 {type:\'coordinate\', x, y})');
|
|
663
|
-
}
|
|
664
|
-
if (actual.type === 'coordinate') {
|
|
665
|
-
const x = assertInt(actual.x, 'coordinate.x');
|
|
666
|
-
const y = assertInt(actual.y, 'coordinate.y');
|
|
667
|
-
const ox = windowBounds?.x ?? 0;
|
|
668
|
-
const oy = windowBounds?.y ?? 0;
|
|
669
|
-
const point = clampToScreen(Math.round(x / scale) + ox, Math.round(y / scale) + oy, bounds);
|
|
670
|
-
const label = windowBounds === undefined || windowBounds === null
|
|
671
|
-
? `坐标 (${point.x}, ${point.y})`
|
|
672
|
-
: `窗口内坐标 (${x}, ${y}) → 屏幕 (${point.x}, ${point.y})`;
|
|
673
|
-
return { x: point.x, y: point.y, label };
|
|
674
|
-
}
|
|
675
|
-
// element
|
|
676
|
-
const index = assertInt(actual.index, 'element.index');
|
|
677
|
-
if (frame === undefined) {
|
|
678
|
-
throw new Error(`元素目标要有该窗口的观察结果,先 get_app_state 观察一次再点(当前没有任何观察)`);
|
|
679
|
-
}
|
|
680
|
-
if (actual.state_id !== undefined && actual.state_id !== frame.state_id) {
|
|
681
|
-
throw new Error(`ELEMENT_UNAVAILABLE:state_id「${actual.state_id}」不是该窗口最近的观察「${frame.state_id}」,索引已失效,请重新 get_app_state`);
|
|
682
|
-
}
|
|
683
|
-
if (index < 0 || index >= frame.elements.length) {
|
|
684
|
-
throw new Error(`ELEMENT_UNAVAILABLE:元素 #${index} 不存在(该窗口最近一次观察有 ${frame.elements.length} 个控件),请重新 get_app_state`);
|
|
685
|
-
}
|
|
686
|
-
const element = frame.elements[index];
|
|
687
|
-
if (element.offscreen || element.bounds === null || element.bounds.width <= 0 || element.bounds.height <= 0) {
|
|
688
|
-
throw new Error(`ELEMENT_UNAVAILABLE:元素 #${index}(${element.controlType}「${element.title}」)在屏外或没有矩形,无法定位`);
|
|
689
|
-
}
|
|
690
|
-
const cx = element.bounds.x + Math.floor(element.bounds.width / 2);
|
|
691
|
-
const cy = element.bounds.y + Math.floor(element.bounds.height / 2);
|
|
692
|
-
clampToScreen(cx, cy, bounds);
|
|
693
|
-
return { x: cx, y: cy, label: `元素 #${index}(${element.controlType}「${element.title}」)`, element };
|
|
694
|
-
}
|
|
695
|
-
/** 把一次的 JSON 控件对象规整成 DesktopElement。 */
|
|
696
|
-
function normalizeElement(raw, fallbackIndex) {
|
|
697
|
-
const item = (raw ?? {});
|
|
698
|
-
const boundsRaw = item.bounds;
|
|
699
|
-
const bounds = boundsRaw === null || boundsRaw === undefined
|
|
700
|
-
? null
|
|
701
|
-
: {
|
|
702
|
-
x: Number(boundsRaw.x ?? 0),
|
|
703
|
-
y: Number(boundsRaw.y ?? 0),
|
|
704
|
-
width: Number(boundsRaw.width ?? 0),
|
|
705
|
-
height: Number(boundsRaw.height ?? 0),
|
|
706
|
-
};
|
|
707
|
-
const patternsRaw = item.patterns;
|
|
708
|
-
const patterns = Array.isArray(patternsRaw)
|
|
709
|
-
? patternsRaw.map((p) => String(p))
|
|
710
|
-
: patternsRaw === undefined || patternsRaw === null
|
|
711
|
-
? []
|
|
712
|
-
: [String(patternsRaw)];
|
|
713
|
-
return {
|
|
714
|
-
index: Number.isInteger(item.index) ? item.index : fallbackIndex,
|
|
715
|
-
controlType: String(item.controlType ?? ''),
|
|
716
|
-
title: String(item.title ?? ''),
|
|
717
|
-
automaid: String(item.automaid ?? ''),
|
|
718
|
-
value: String(item.value ?? ''),
|
|
719
|
-
bounds,
|
|
720
|
-
patterns,
|
|
721
|
-
enabled: item.enabled !== false,
|
|
722
|
-
offscreen: item.offscreen === true,
|
|
723
|
-
};
|
|
724
|
-
}
|
|
725
|
-
/** 观察编号计数器(进程内单调递增)。 */
|
|
726
|
-
let stateCounter = 0;
|
|
727
|
-
/** 观察结果缓存:窗口键 → 最近一次观察。 */
|
|
728
|
-
const framesByWindow = new Map();
|
|
729
|
-
/** 最近一次观察(不指定窗口时的元素作用域与差分基线)。 */
|
|
730
|
-
let latestFrame;
|
|
731
|
-
/** 自检用:清空观察缓存(生产路径不调用)。 */
|
|
732
|
-
export function resetFrames() {
|
|
733
|
-
framesByWindow.clear();
|
|
734
|
-
latestFrame = undefined;
|
|
735
|
-
stateCounter = 0;
|
|
736
|
-
}
|
|
737
|
-
/** 该窗口最近一次观察。 */
|
|
738
|
-
export function frameForWindow(windowKey) {
|
|
739
|
-
if (windowKey === undefined)
|
|
740
|
-
return latestFrame;
|
|
741
|
-
return framesByWindow.get(String(windowKey));
|
|
742
|
-
}
|
|
743
|
-
/** 解析观察脚本的 JSON,产出 DesktopFrame 并写入缓存。 */
|
|
744
|
-
export function parseFrame(raw) {
|
|
745
|
-
const trimmed = raw.trim();
|
|
746
|
-
let data;
|
|
747
|
-
try {
|
|
748
|
-
data = JSON.parse(trimmed);
|
|
749
|
-
}
|
|
750
|
-
catch {
|
|
751
|
-
throw new Error(`无障碍观察返回的不是 JSON:${trimmed.slice(0, 120)}`);
|
|
752
|
-
}
|
|
753
|
-
if (data.ok !== true) {
|
|
754
|
-
throw new Error(`无障碍观察失败:${String(data.error ?? '未知原因')}(这台机器可能不支持 UIA,或目标窗口已关闭)`);
|
|
755
|
-
}
|
|
756
|
-
const winRaw = (data.window ?? {});
|
|
757
|
-
const boundsRaw = winRaw.bounds;
|
|
758
|
-
const window = {
|
|
759
|
-
id: Number(winRaw.id ?? 0),
|
|
760
|
-
title: String(winRaw.title ?? ''),
|
|
761
|
-
bounds: boundsRaw === null || boundsRaw === undefined
|
|
762
|
-
? null
|
|
763
|
-
: {
|
|
764
|
-
x: Number(boundsRaw.x ?? 0),
|
|
765
|
-
y: Number(boundsRaw.y ?? 0),
|
|
766
|
-
width: Number(boundsRaw.width ?? 0),
|
|
767
|
-
height: Number(boundsRaw.height ?? 0),
|
|
768
|
-
},
|
|
769
|
-
};
|
|
770
|
-
const rawElements = data.elements;
|
|
771
|
-
const list = Array.isArray(rawElements) ? rawElements : rawElements === undefined || rawElements === null ? [] : [rawElements];
|
|
772
|
-
const elements = list.map((item, i) => normalizeElement(item, i));
|
|
773
|
-
stateCounter += 1;
|
|
774
|
-
const frame = {
|
|
775
|
-
state_id: `st-${stateCounter}`,
|
|
776
|
-
app: String(data.app ?? ''),
|
|
777
|
-
window,
|
|
778
|
-
elements,
|
|
779
|
-
text: String(data.text ?? ''),
|
|
780
|
-
snapshot_mode: 'full',
|
|
781
|
-
};
|
|
782
|
-
framesByWindow.set(String(window.id), frame);
|
|
783
|
-
latestFrame = frame;
|
|
784
|
-
return frame;
|
|
785
|
-
}
|
|
786
|
-
/** 帧差分:按 index 对齐(未变的索引仍有效),得出 added/removed/changed。 */
|
|
787
|
-
export function diffFrames(base, next) {
|
|
788
|
-
const removed = [];
|
|
789
|
-
const added = [];
|
|
790
|
-
const changed = [];
|
|
791
|
-
const max = Math.max(base.elements.length, next.elements.length);
|
|
792
|
-
for (let i = 0; i < max; i += 1) {
|
|
793
|
-
const a = base.elements[i];
|
|
794
|
-
const b = next.elements[i];
|
|
795
|
-
if (a === undefined && b !== undefined)
|
|
796
|
-
added.push(i);
|
|
797
|
-
else if (a !== undefined && b === undefined)
|
|
798
|
-
removed.push(i);
|
|
799
|
-
else if (a !== undefined && b !== undefined) {
|
|
800
|
-
const same = a.controlType === b.controlType &&
|
|
801
|
-
a.title === b.title &&
|
|
802
|
-
a.value === b.value &&
|
|
803
|
-
a.automaid === b.automaid &&
|
|
804
|
-
JSON.stringify(a.bounds) === JSON.stringify(b.bounds);
|
|
805
|
-
if (!same)
|
|
806
|
-
changed.push(i);
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
return { removed, added, changed };
|
|
810
|
-
}
|
|
811
|
-
/** 把差分结论写成给人/模型看的文本。 */
|
|
812
|
-
export function diffText(base, next, diff) {
|
|
813
|
-
const head = `观察 ${next.state_id}(相对 ${base.state_id} 的变化;未列出的索引按上次的树不变):` +
|
|
814
|
-
`新增 [${diff.added.join(', ')}],移除 [${diff.removed.join(', ')}],变化 [${diff.changed.join(', ')}]`;
|
|
815
|
-
const details = [];
|
|
816
|
-
for (const i of diff.changed) {
|
|
817
|
-
const b = next.elements[i];
|
|
818
|
-
if (b === undefined)
|
|
819
|
-
continue;
|
|
820
|
-
details.push(` [${i}] ${b.controlType} "${b.title}" = "${b.value}"`);
|
|
821
|
-
}
|
|
822
|
-
return details.length === 0 ? head : `${head}\n${details.join('\n')}`;
|
|
823
|
-
}
|
|
824
|
-
/** 默认 sleep(注入点之外的真实实现)。 */
|
|
825
|
-
function defaultSleep(ms) {
|
|
826
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
827
|
-
}
|
|
828
|
-
/**
|
|
829
|
-
* 观察稳定性判定:连续两次指纹相同即算稳定;超时上限到了就如实返回 stable:false。
|
|
830
|
-
*
|
|
831
|
-
* 为什么要 settle:动作发出去到界面真正变化之间有延迟,直接观察容易拍到中间态。
|
|
832
|
-
* 禁止模型自己轮询/setTimeout,所以等待发生在这里,且必须有上限。
|
|
833
|
-
*/
|
|
834
|
-
export async function settleObserve(snapshot, fingerprint, options = {}) {
|
|
835
|
-
const intervalMs = Math.max(0, Math.round(options.intervalMs ?? 120));
|
|
836
|
-
const timeoutMs = Math.max(intervalMs, Math.round(options.timeoutMs ?? 1500));
|
|
837
|
-
const sleep = options.sleep ?? defaultSleep;
|
|
838
|
-
const now = options.now ?? Date.now;
|
|
839
|
-
const started = now();
|
|
840
|
-
let previous = fingerprint(await snapshot());
|
|
841
|
-
let attempts = 1;
|
|
842
|
-
while (now() - started < timeoutMs) {
|
|
843
|
-
await sleep(intervalMs);
|
|
844
|
-
const current = fingerprint(await snapshot());
|
|
845
|
-
attempts += 1;
|
|
846
|
-
if (current === previous) {
|
|
847
|
-
return { stable: true, attempts, waitedMs: now() - started, fingerprint: current };
|
|
848
|
-
}
|
|
849
|
-
previous = current;
|
|
850
|
-
if (now() - started >= timeoutMs)
|
|
851
|
-
break;
|
|
852
|
-
}
|
|
853
|
-
return { stable: false, attempts, waitedMs: now() - started, fingerprint: previous };
|
|
854
|
-
}
|
|
855
|
-
// ── 进程内动作 ────────────────────────────────────────────────────────────
|
|
856
|
-
/** 屏幕边界 + 前台窗口,一次进程问清楚(越界判断与白名单判断都要用)。 */
|
|
857
|
-
async function probeScreen(signal) {
|
|
858
|
-
const out = await runPowerShell(`
|
|
859
|
-
Add-Type -AssemblyName System.Windows.Forms
|
|
860
|
-
Add-Type -TypeDefinition '${DPI_A}'
|
|
861
|
-
Add-Type -TypeDefinition '${WINDOW_TYPE}'
|
|
862
|
-
[DscDpi]::SetProcessDPIAware() | Out-Null
|
|
863
|
-
$b = [System.Windows.Forms.SystemInformation]::VirtualScreen
|
|
864
|
-
"$($b.Left),$($b.Top),$($b.Width),$($b.Height)|" + [DscWin]::Describe()
|
|
865
|
-
`, 12000, signal);
|
|
866
|
-
// 前台窗口那一段自己可能带竖线(进程|标题),所以只按第一个竖线切
|
|
867
|
-
const parts = out.trim().split('|');
|
|
868
|
-
const geom = parts.shift() ?? '';
|
|
869
|
-
const foreground = parts.join('|');
|
|
870
|
-
const [left, top, width, height] = geom.split(',').map((part) => Number.parseInt(part, 10));
|
|
871
|
-
if ([left, top, width, height].some((value) => !Number.isFinite(value))) {
|
|
872
|
-
throw new Error(`读屏幕边界失败,收到「${out.trim()}」`);
|
|
873
|
-
}
|
|
874
|
-
return { left: left, top: top, width: width, height: height, foreground };
|
|
875
|
-
}
|
|
876
|
-
/** 应用白名单:前台窗口的进程名或标题命中白名单才放行。 */
|
|
877
|
-
function assertAllowedApp(foreground, allowed) {
|
|
878
|
-
if (allowed.length === 0)
|
|
879
|
-
return;
|
|
880
|
-
const [processName = '', ...titleParts] = foreground.split('|');
|
|
881
|
-
const title = titleParts.join('|');
|
|
882
|
-
const hit = allowed.some((entry) => {
|
|
883
|
-
const needle = entry.trim().toLowerCase();
|
|
884
|
-
if (needle === '')
|
|
885
|
-
return false;
|
|
886
|
-
return processName.toLowerCase().includes(needle) || title.toLowerCase().includes(needle);
|
|
887
|
-
});
|
|
888
|
-
if (!hit) {
|
|
889
|
-
throw new Error(`当前前台窗口是「${title || processName}」,不在你设的应用白名单(${allowed.join('、')})里,这一步被拦下了`);
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
/** 观察目标窗口的无障碍树(新动作 get_app_state 的实现)。 */
|
|
893
|
-
export async function observeAppState(options = {}, signal) {
|
|
894
|
-
const sel = options.window;
|
|
895
|
-
const isHandle = typeof sel === 'number' || (sel !== undefined && /^\d+$/.test(String(sel).trim()));
|
|
896
|
-
const script = observeScript({
|
|
897
|
-
windowId: isHandle ? Number(sel) : 0,
|
|
898
|
-
windowText: isHandle || sel === undefined ? '' : String(sel),
|
|
899
|
-
maxElements: options.maxElements,
|
|
900
|
-
});
|
|
901
|
-
const raw = await runPowerShell(script, 25000, signal).catch((error) => {
|
|
902
|
-
throw new Error(`无障碍观察失败:${errText(error)}`);
|
|
903
|
-
});
|
|
904
|
-
// parseFrame 会把新帧写进缓存;基线要在写入之前快照下来(引用拷贝,parseFrame 只 set 不 mutate)。
|
|
905
|
-
const before = new Map(framesByWindow);
|
|
906
|
-
const beforeLatest = latestFrame;
|
|
907
|
-
const frame = parseFrame(raw);
|
|
908
|
-
const base = options.disableDiffing === true ? undefined : before.get(String(frame.window.id)) ?? beforeLatest;
|
|
909
|
-
let text;
|
|
910
|
-
if (base !== undefined && base.state_id !== frame.state_id && base.window.id === frame.window.id) {
|
|
911
|
-
const diff = diffFrames(base, frame);
|
|
912
|
-
frame.snapshot_mode = 'diff';
|
|
913
|
-
frame.base_state_id = base.state_id;
|
|
914
|
-
frame.diff = diff;
|
|
915
|
-
const quiet = diff.added.length === 0 && diff.removed.length === 0 && diff.changed.length === 0;
|
|
916
|
-
text =
|
|
917
|
-
`窗口「${frame.window.title}」(进程 ${frame.app},句柄 ${frame.window.id}),无障碍观察 ${frame.state_id},共 ${frame.elements.length} 个控件。\n` +
|
|
918
|
-
(quiet ? '与上次观察相比:**没有变化**(界面稳定)。' : diffText(base, frame, diff)) +
|
|
919
|
-
(frame.snapshot_mode === 'diff' ? `\n(增量模式;需要全树就再调一次 get_app_state 带 disable_diffing:true)` : '');
|
|
920
|
-
}
|
|
921
|
-
else {
|
|
922
|
-
text =
|
|
923
|
-
`窗口「${frame.window.title}」(进程 ${frame.app},句柄 ${frame.window.id}),无障碍观察 ${frame.state_id},共 ${frame.elements.length} 个控件。\n` +
|
|
924
|
-
`元素索引只对「这次观察」有效;界面一变就要重新观察。\n\n${frame.text}`;
|
|
925
|
-
}
|
|
926
|
-
return { text, frame };
|
|
927
|
-
}
|
|
928
|
-
/** 解析窗口选择器,得到句柄 + 标题 + 矩形。 */
|
|
929
|
-
async function probeWindow(selector, signal) {
|
|
930
|
-
const raw = await runPowerShell(probeWindowScript(selector), 12000, signal);
|
|
931
|
-
const data = JSON.parse(raw.trim());
|
|
932
|
-
if (data.ok !== true)
|
|
933
|
-
throw new Error(String(data.error ?? '窗口解析失败'));
|
|
934
|
-
const b = (data.bounds ?? {});
|
|
935
|
-
return {
|
|
936
|
-
id: Number(data.id ?? 0),
|
|
937
|
-
title: String(data.title ?? ''),
|
|
938
|
-
bounds: { x: Number(b.x ?? 0), y: Number(b.y ?? 0), width: Number(b.width ?? 0), height: Number(b.height ?? 0) },
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
/** 绑定窗口:解析 `args.window`,返回该窗口的观察帧、矩形与激活脚本片段。 */
|
|
942
|
-
async function bindWindow(args, signal) {
|
|
943
|
-
if (args.window === undefined)
|
|
944
|
-
return { frame: latestFrame, activateLine: '' };
|
|
945
|
-
const info = await probeWindow(args.window, signal);
|
|
946
|
-
const activateLine = `[DscWin]::SetForegroundWindow([IntPtr]${info.id}) | Out-Null; Start-Sleep -Milliseconds 80`;
|
|
947
|
-
return {
|
|
948
|
-
frame: frameForWindow(String(info.id)) ?? latestFrame,
|
|
949
|
-
windowBounds: info.bounds,
|
|
950
|
-
windowKey: String(info.id),
|
|
951
|
-
activateLine,
|
|
952
|
-
};
|
|
953
|
-
}
|
|
954
|
-
/** 执行点击(内部复用:set_value 回退也要用)。 */
|
|
955
|
-
async function clickAt(point, button, double, activateLine, pauseMs, signal) {
|
|
956
|
-
await runPowerShell(clickScript(point, button, double, activateLine, pauseMs), 15000, signal);
|
|
957
|
-
}
|
|
958
|
-
/** 执行文本输入(内部复用)。 */
|
|
959
|
-
async function typeText(text, signal) {
|
|
960
|
-
await runPowerShell(typeScript(text), 15000, signal);
|
|
961
|
-
}
|
|
962
|
-
/**
|
|
963
|
-
* 执行一个桌面动作。
|
|
964
|
-
* @param scale - 上一次截屏的缩放系数(点/滚动的坐标按它换算回物理像素)。
|
|
965
|
-
* @param allowedApps - 应用白名单(进程名或窗口标题的子串);空数组 = 不限。
|
|
966
|
-
*/
|
|
967
|
-
export async function runDesktopAction(action, args, options, signal) {
|
|
968
|
-
const canonical = canonicalAction(String(action));
|
|
969
|
-
if (canonical === null) {
|
|
970
|
-
throw new Error(`不认识的 action「${String(action)}」。要用的值:${DESKTOP_ACTIONS.join(' / ')}`);
|
|
971
|
-
}
|
|
972
|
-
const pauseMs = options.actionDelayMs;
|
|
973
|
-
switch (canonical) {
|
|
974
|
-
case 'screenshot': {
|
|
975
|
-
throw new Error('内部错误:screenshot 要走 takeScreenshot()');
|
|
976
|
-
}
|
|
977
|
-
case 'get_app_state': {
|
|
978
|
-
return await observeAppState({ window: args.window, disableDiffing: args.disableDiffing === true }, signal);
|
|
979
|
-
}
|
|
980
|
-
case 'click': {
|
|
981
|
-
const bounds = await probeScreen(signal);
|
|
982
|
-
assertAllowedApp(bounds.foreground, options.allowedApps);
|
|
983
|
-
const bind = await bindWindow(args, signal);
|
|
984
|
-
const point = resolveTarget(args.target, args, bind.frame, bounds, options.scale, bind.windowBounds);
|
|
985
|
-
const button = String(args.button ?? 'left');
|
|
986
|
-
if (BUTTON_EVENT[button] === undefined)
|
|
987
|
-
throw new Error(`不认识的鼠标键「${button}」`);
|
|
988
|
-
await clickAt(point, button, args.double === true, bind.activateLine, pauseMs, signal);
|
|
989
|
-
return { text: `已在 ${point.label} ${args.double === true ? '双击' : '单击'}${button}。再截一张确认点中了什么。` };
|
|
990
|
-
}
|
|
991
|
-
case 'drag': {
|
|
992
|
-
const steps = args.amount !== undefined ? Math.min(Math.max(Math.round(args.amount), 2), 200) : 24;
|
|
993
|
-
const bounds = await probeScreen(signal);
|
|
994
|
-
assertAllowedApp(bounds.foreground, options.allowedApps);
|
|
995
|
-
const bind = await bindWindow(args, signal);
|
|
996
|
-
const from = resolveTarget(args.from, undefined, bind.frame, bounds, options.scale, bind.windowBounds);
|
|
997
|
-
const to = resolveTarget(args.to, undefined, bind.frame, bounds, options.scale, bind.windowBounds);
|
|
998
|
-
await runPowerShell(dragScript(from, to, steps, Math.max(8, Math.round(pauseMs / 4))), 20000, signal);
|
|
999
|
-
return { text: `已从 ${from.label} 拖到 ${to.label}(分 ${steps} 步,鼠标已保证抬起)。` };
|
|
1000
|
-
}
|
|
1001
|
-
case 'type': {
|
|
1002
|
-
const text = String(args.text ?? '');
|
|
1003
|
-
if (text === '')
|
|
1004
|
-
throw new Error('type 要带 text');
|
|
1005
|
-
if (text.length > 4000)
|
|
1006
|
-
throw new Error(`一次最多输 4000 字,这次有 ${text.length} 字,拆开输`);
|
|
1007
|
-
const bounds = await probeScreen(signal);
|
|
1008
|
-
assertAllowedApp(bounds.foreground, options.allowedApps);
|
|
1009
|
-
const bind = await bindWindow(args, signal);
|
|
1010
|
-
if (bind.activateLine !== '')
|
|
1011
|
-
await runPowerShell(`Add-Type -TypeDefinition '${WINDOW_TYPE}'\n${bind.activateLine}\n'Done'`, 12000, signal);
|
|
1012
|
-
await typeText(text, signal);
|
|
1013
|
-
return { text: `已输入 ${text.length} 个字符(走剪贴板粘贴;原来的文本剪贴板已还原)。` };
|
|
1014
|
-
}
|
|
1015
|
-
case 'paste': {
|
|
1016
|
-
const bounds = await probeScreen(signal);
|
|
1017
|
-
assertAllowedApp(bounds.foreground, options.allowedApps);
|
|
1018
|
-
const bind = await bindWindow(args, signal);
|
|
1019
|
-
if (bind.activateLine !== '')
|
|
1020
|
-
await runPowerShell(`Add-Type -TypeDefinition '${WINDOW_TYPE}'\n${bind.activateLine}\n'Done'`, 12000, signal);
|
|
1021
|
-
const text = args.text === undefined ? undefined : String(args.text);
|
|
1022
|
-
await runPowerShell(pasteScript(text), 15000, signal);
|
|
1023
|
-
return {
|
|
1024
|
-
text: text === undefined
|
|
1025
|
-
? '已按 Ctrl+V 粘贴当前剪贴板内容(没有改动剪贴板)。'
|
|
1026
|
-
: `已把 ${text.length} 个字符经剪贴板粘贴进去,并还原了你原来的文本剪贴板。`,
|
|
1027
|
-
};
|
|
1028
|
-
}
|
|
1029
|
-
case 'set_value': {
|
|
1030
|
-
const value = String(args.value ?? '');
|
|
1031
|
-
const index = args.target?.type === 'element' ? args.target.index : undefined;
|
|
1032
|
-
if (index === undefined)
|
|
1033
|
-
throw new Error('set_value 要带 {type:\'element\', index} 目标');
|
|
1034
|
-
const bounds = await probeScreen(signal);
|
|
1035
|
-
assertAllowedApp(bounds.foreground, options.allowedApps);
|
|
1036
|
-
const bind = await bindWindow(args, signal);
|
|
1037
|
-
const frame = bind.frame;
|
|
1038
|
-
// 先确认元素还在(fail-closed)
|
|
1039
|
-
resolveTarget(args.target, undefined, frame, bounds, options.scale, bind.windowBounds);
|
|
1040
|
-
const winSel = args.window;
|
|
1041
|
-
const info = await elementAction('set_value', { window: winSel, frame, index, value, pattern: args.pattern }, signal);
|
|
1042
|
-
if (info.method === 'none') {
|
|
1043
|
-
// 落不到 ValuePattern:回退成「点一下元素再 type」
|
|
1044
|
-
const point = resolveTarget(args.target, undefined, frame, bounds, options.scale, bind.windowBounds);
|
|
1045
|
-
await clickAt(point, 'left', false, bind.activateLine, pauseMs, signal);
|
|
1046
|
-
await typeText(value, signal);
|
|
1047
|
-
return { text: `元素 #${index} 不支持直接设值,已回退为「点击后输入」${value.length} 个字符。` };
|
|
1048
|
-
}
|
|
1049
|
-
return { text: `已把元素 #${index} 的值设为「${value}」(ValuePattern)。` };
|
|
1050
|
-
}
|
|
1051
|
-
case 'select_text': {
|
|
1052
|
-
const index = args.target?.type === 'element' ? args.target.index : undefined;
|
|
1053
|
-
if (index === undefined)
|
|
1054
|
-
throw new Error('select_text 要带 {type:\'element\', index} 目标');
|
|
1055
|
-
const bounds = await probeScreen(signal);
|
|
1056
|
-
assertAllowedApp(bounds.foreground, options.allowedApps);
|
|
1057
|
-
const bind = await bindWindow(args, signal);
|
|
1058
|
-
resolveTarget(args.target, undefined, bind.frame, bounds, options.scale, bind.windowBounds);
|
|
1059
|
-
const info = await elementAction('select_text', { window: args.window, frame: bind.frame, index }, signal);
|
|
1060
|
-
if (info.method === 'none')
|
|
1061
|
-
throw new Error(`元素 #${index} 不支持选择文本(没有 TextPattern / SelectionItemPattern)`);
|
|
1062
|
-
return { text: `已选中元素 #${index} 的文本(${info.method})。` };
|
|
1063
|
-
}
|
|
1064
|
-
case 'perform_action': {
|
|
1065
|
-
const index = args.target?.type === 'element' ? args.target.index : undefined;
|
|
1066
|
-
if (index === undefined)
|
|
1067
|
-
throw new Error('perform_action 要带 {type:\'element\', index} 目标');
|
|
1068
|
-
if (args.pattern === undefined || String(args.pattern).trim() === '')
|
|
1069
|
-
throw new Error('perform_action 要带 pattern,例如 invoke / toggle / expand / collapse / select');
|
|
1070
|
-
const bounds = await probeScreen(signal);
|
|
1071
|
-
assertAllowedApp(bounds.foreground, options.allowedApps);
|
|
1072
|
-
const bind = await bindWindow(args, signal);
|
|
1073
|
-
resolveTarget(args.target, undefined, bind.frame, bounds, options.scale, bind.windowBounds);
|
|
1074
|
-
const info = await elementAction('perform_action', { window: args.window, frame: bind.frame, index, pattern: args.pattern }, signal);
|
|
1075
|
-
if (info.method === 'none')
|
|
1076
|
-
throw new Error(`元素 #${index} 不支持 pattern「${String(args.pattern)}」对应的 UIA 模式`);
|
|
1077
|
-
return { text: `已对元素 #${index} 执行 ${String(args.pattern)}(${info.method})。` };
|
|
1078
|
-
}
|
|
1079
|
-
case 'key': {
|
|
1080
|
-
const keys = toSendKeys(String(args.key ?? ''));
|
|
1081
|
-
const bounds = await probeScreen(signal);
|
|
1082
|
-
assertAllowedApp(bounds.foreground, options.allowedApps);
|
|
1083
|
-
const bind = await bindWindow(args, signal);
|
|
1084
|
-
if (bind.activateLine !== '')
|
|
1085
|
-
await runPowerShell(`Add-Type -TypeDefinition '${WINDOW_TYPE}'\n${bind.activateLine}\n'Done'`, 12000, signal);
|
|
1086
|
-
const repeat = args.repeat === undefined ? 1 : Math.min(Math.max(Math.round(args.repeat), 1), 50);
|
|
1087
|
-
const hold = args.holdSeconds === undefined ? 0 : Math.min(Math.max(Number(args.holdSeconds), 0), 10);
|
|
1088
|
-
await runPowerShell(keyScript(keys, repeat, hold), 15000, signal);
|
|
1089
|
-
return { text: `已按键 ${String(args.key)}${repeat > 1 ? ` × ${repeat}` : ''}。` };
|
|
1090
|
-
}
|
|
1091
|
-
case 'scroll': {
|
|
1092
|
-
const amount = assertInt(args.amount ?? 3, 'amount');
|
|
1093
|
-
if (Math.abs(amount) > 30)
|
|
1094
|
-
throw new Error('一次最多滚 30 档');
|
|
1095
|
-
const bounds = await probeScreen(signal);
|
|
1096
|
-
assertAllowedApp(bounds.foreground, options.allowedApps);
|
|
1097
|
-
const bind = await bindWindow(args, signal);
|
|
1098
|
-
let move = '';
|
|
1099
|
-
if (args.target !== undefined || (args.x !== undefined && args.y !== undefined)) {
|
|
1100
|
-
const point = resolveTarget(args.target, args, bind.frame, bounds, options.scale, bind.windowBounds);
|
|
1101
|
-
move = `[DscMouse]::SetCursorPos(${point.x}, ${point.y}) | Out-Null`;
|
|
1102
|
-
}
|
|
1103
|
-
await runPowerShell(scrollScript(amount, move, pauseMs), 15000, signal);
|
|
1104
|
-
return { text: `已滚动 ${amount} 档(正数向上,负数向下)。` };
|
|
1105
|
-
}
|
|
1106
|
-
case 'cursor': {
|
|
1107
|
-
const out = await runPowerShell(`
|
|
1108
|
-
Add-Type -TypeDefinition '${MOUSE_TYPE}'
|
|
1109
|
-
$p = New-Object DscMouse+POINT
|
|
1110
|
-
[DscMouse]::GetCursorPos([ref]$p) | Out-Null
|
|
1111
|
-
"$($p.X),$($p.Y)"
|
|
1112
|
-
`, 12000, signal);
|
|
1113
|
-
const [x = '?', y = '?'] = out.trim().split(',');
|
|
1114
|
-
return { text: `鼠标当前位置:屏幕 (${x}, ${y})。` };
|
|
1115
|
-
}
|
|
1116
|
-
case 'list_windows': {
|
|
1117
|
-
const raw = await runPowerShell(listWindowsScript(), 15000, signal);
|
|
1118
|
-
const data = JSON.parse(raw.trim());
|
|
1119
|
-
if (data.ok !== true)
|
|
1120
|
-
throw new Error(`列窗口失败:${String(data.error ?? '未知原因')}`);
|
|
1121
|
-
const rawList = data.windows;
|
|
1122
|
-
const list = Array.isArray(rawList) ? rawList : rawList === undefined || rawList === null ? [] : [rawList];
|
|
1123
|
-
if (list.length === 0)
|
|
1124
|
-
return { text: '(没找到带标题的窗口)' };
|
|
1125
|
-
const lines = list.map((item) => {
|
|
1126
|
-
const w = item;
|
|
1127
|
-
const b = (w.bounds ?? {});
|
|
1128
|
-
const flags = [w.focused === true ? '前台' : '', w.main === true ? '主窗口' : '', w.onscreen === false ? '最小化/屏外' : ''].filter((f) => f !== '');
|
|
1129
|
-
return ` id=${String(w.window_id)} [${String(w.app)}] ${w.title === '' ? '(无标题)' : String(w.title)} @ ${b.x},${b.y} ${b.width}×${b.height}${flags.length > 0 ? `(${flags.join('、')})` : ''}`;
|
|
1130
|
-
});
|
|
1131
|
-
return { text: `窗口清单(id 用作用户 window 参数):\n${lines.join('\n')}` };
|
|
1132
|
-
}
|
|
1133
|
-
case 'list_apps': {
|
|
1134
|
-
const raw = await runPowerShell(listAppsScript(), 15000, signal);
|
|
1135
|
-
const data = JSON.parse(raw.trim());
|
|
1136
|
-
if (data.ok !== true)
|
|
1137
|
-
throw new Error(`列应用失败:${String(data.error ?? '未知原因')}`);
|
|
1138
|
-
const rawList = data.apps;
|
|
1139
|
-
const list = Array.isArray(rawList) ? rawList : rawList === undefined || rawList === null ? [] : [rawList];
|
|
1140
|
-
const lines = list.map((item) => {
|
|
1141
|
-
const a = item;
|
|
1142
|
-
return ` ${String(a.app)}(pid ${String(a.pid)})${a.title === '' ? '' : ` — ${String(a.title)}`}${a.foreground === true ? ' 【前台】' : ''}`;
|
|
1143
|
-
});
|
|
1144
|
-
return { text: `有主窗口的应用(进程名 + 主窗口 + 是否前台):\n${lines.join('\n')}` };
|
|
1145
|
-
}
|
|
1146
|
-
case 'screens': {
|
|
1147
|
-
const raw = await runPowerShell(screensScript(), 12000, signal);
|
|
1148
|
-
const data = JSON.parse(raw.trim());
|
|
1149
|
-
if (data.ok !== true)
|
|
1150
|
-
throw new Error(`枚举显示器失败:${String(data.error ?? '未知原因')}`);
|
|
1151
|
-
const rawList = data.screens;
|
|
1152
|
-
const list = Array.isArray(rawList) ? rawList : rawList === undefined || rawList === null ? [] : [rawList];
|
|
1153
|
-
const lines = list.map((item) => {
|
|
1154
|
-
const s = item;
|
|
1155
|
-
const b = (s.bounds ?? {});
|
|
1156
|
-
return ` ${String(s.device)}${s.primary === true ? '(主)' : ''} @ ${b.x},${b.y} ${b.width}×${b.height}`;
|
|
1157
|
-
});
|
|
1158
|
-
return { text: `显示器(虚拟屏坐标,可含负坐标):\n${lines.join('\n')}` };
|
|
1159
|
-
}
|
|
1160
|
-
case 'stop': {
|
|
1161
|
-
throw new Error('内部错误:stop 由插件处理(要联动取消信号与动作面)');
|
|
1162
|
-
}
|
|
1163
|
-
default: {
|
|
1164
|
-
throw new Error(`不认识的 action「${canonical}」。要用的值:${DESKTOP_ACTIONS.join(' / ')}`);
|
|
1165
|
-
}
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
/** 跑一次元素动作脚本(set_value / select_text / perform_action),返回 {method}。 */
|
|
1169
|
-
async function elementAction(kind, input, signal) {
|
|
1170
|
-
const sel = input.window;
|
|
1171
|
-
const isHandle = typeof sel === 'number' || (sel !== undefined && /^\d+$/.test(String(sel).trim()));
|
|
1172
|
-
const script = elementActionScript(kind, {
|
|
1173
|
-
windowId: isHandle ? Number(sel) : input.frame?.window.id ?? 0,
|
|
1174
|
-
windowText: isHandle || sel === undefined ? '' : String(sel),
|
|
1175
|
-
index: input.index,
|
|
1176
|
-
value: input.value,
|
|
1177
|
-
pattern: input.pattern,
|
|
1178
|
-
});
|
|
1179
|
-
const raw = await runPowerShell(script, 20000, signal);
|
|
1180
|
-
const data = JSON.parse(raw.trim());
|
|
1181
|
-
if (data.ok !== true)
|
|
1182
|
-
throw new Error(String(data.error ?? '元素动作失败'));
|
|
1183
|
-
return { method: String(data.method ?? 'none') };
|
|
1184
|
-
}
|
|
1185
|
-
/**
|
|
1186
|
-
* 抓一张全屏图(或裁切块)。
|
|
1187
|
-
* @returns 图像 data URL + 缩放系数(点坐标要按它换算)。
|
|
1188
|
-
*/
|
|
1189
|
-
export async function takeScreenshot(options, signal) {
|
|
1190
|
-
const clip = options.clip;
|
|
1191
|
-
if (clip !== undefined) {
|
|
1192
|
-
for (const [key, value] of Object.entries(clip)) {
|
|
1193
|
-
if (!Number.isFinite(Number(value)))
|
|
1194
|
-
throw new Error(`截图的 clip.${key} 要是数字,收到 ${String(value)}`);
|
|
1195
|
-
}
|
|
1196
|
-
if (clip.width <= 0 || clip.height <= 0)
|
|
1197
|
-
throw new Error('截图的 clip.width / clip.height 要大于 0');
|
|
1198
|
-
}
|
|
1199
|
-
const out = await runPowerShell(screenshotScript(Math.min(Math.max(Math.round(options.maxEdge), 640), 3840), options.format === 'png' ? 'png' : 'jpeg', Math.min(Math.max(Math.round(options.quality), 30), 100), clip), 30000, signal).catch((error) => {
|
|
1200
|
-
throw new Error(`截屏失败:${errText(error)}`);
|
|
1201
|
-
});
|
|
1202
|
-
const trimmed = out.trim();
|
|
1203
|
-
const at = trimmed.indexOf('|');
|
|
1204
|
-
if (at < 0)
|
|
1205
|
-
throw new Error(`截屏返回看不懂的格式:${trimmed.slice(0, 60)}`);
|
|
1206
|
-
const head = trimmed.slice(0, at);
|
|
1207
|
-
const base64 = trimmed.slice(at + 1);
|
|
1208
|
-
const nums = head.split(',').map((part) => Number.parseInt(part, 10));
|
|
1209
|
-
const [imageWidth = 0, imageHeight = 0, clipWidth = 0, clipHeight = 0, originX = 0, originY = 0, vLeft = 0, vTop = 0, vWidth = 0, vHeight = 0] = nums;
|
|
1210
|
-
if (base64 === '')
|
|
1211
|
-
throw new Error('截屏是空的');
|
|
1212
|
-
const sourceWidth = clipWidth || imageWidth || vWidth;
|
|
1213
|
-
const scale = sourceWidth > 0 ? sourceWidth / (imageWidth || sourceWidth) : 1;
|
|
1214
|
-
const mime = options.format === 'png' ? 'image/png' : 'image/jpeg';
|
|
1215
|
-
const regionText = clip === undefined
|
|
1216
|
-
? `整个桌面`
|
|
1217
|
-
: `裁切区域(相对虚拟屏左上角 ${vLeft},${vTop})起点 (${originX}, ${originY}) 大小 ${clipWidth}×${clipHeight}`;
|
|
1218
|
-
return {
|
|
1219
|
-
text: `这是${regionText}的截图,图片尺寸 ${String(imageWidth)}×${String(imageHeight)};` +
|
|
1220
|
-
`虚拟屏分辨率 ${String(vWidth)}×${String(vHeight)},起点 (${String(vLeft)}, ${String(vTop)})。` +
|
|
1221
|
-
`要点的坐标用这张图上的像素值(坐标相对裁切区域左上角),Pneuma 会换算(当前换算系数 ${scale.toFixed(2)})。` +
|
|
1222
|
-
`鼠标现在指的位置可用 cursor 查。`,
|
|
1223
|
-
images: [`data:${mime};base64,${base64}`],
|
|
1224
|
-
scale,
|
|
1225
|
-
};
|
|
1226
|
-
}
|
|
1227
|
-
/** 前台窗口是谁(白名单提示与自查用)。 */
|
|
1228
|
-
export async function foregroundWindow(signal) {
|
|
1229
|
-
const bounds = await probeScreen(signal);
|
|
1230
|
-
return bounds.foreground;
|
|
1231
|
-
}
|
|
1232
|
-
/** 枚举显示器(screens 动作的独立入口,自检/诊断用)。 */
|
|
1233
|
-
export async function listScreens(signal) {
|
|
1234
|
-
const raw = await runPowerShell(screensScript(), 12000, signal);
|
|
1235
|
-
const data = JSON.parse(raw.trim());
|
|
1236
|
-
if (data.ok !== true)
|
|
1237
|
-
throw new Error(String(data.error ?? '枚举显示器失败'));
|
|
1238
|
-
const rawList = data.screens;
|
|
1239
|
-
const list = Array.isArray(rawList) ? rawList : rawList === undefined || rawList === null ? [] : [rawList];
|
|
1240
|
-
return list.map((item) => {
|
|
1241
|
-
const s = item;
|
|
1242
|
-
const b = (s.bounds ?? {});
|
|
1243
|
-
return {
|
|
1244
|
-
device: String(s.device ?? ''),
|
|
1245
|
-
primary: s.primary === true,
|
|
1246
|
-
bounds: { x: Number(b.x ?? 0), y: Number(b.y ?? 0), width: Number(b.width ?? 0), height: Number(b.height ?? 0) },
|
|
1247
|
-
};
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
// ── 危险分级与独立审计 ────────────────────────────────────────────────────
|
|
1251
|
-
/** 「系统级」动作的命中形状:任务管理器、注册表、命令解释器、系统配置工具这类。 */
|
|
1252
|
-
const SYSTEM_HINTS = /(taskmgr|任务管理器|regedit|注册表|reg\.exe|reg\.exe|taskkill|cmd\.exe|powershell|pwsh|wscript|cscript|mshta|rundll32|control\.exe|services\.msc|gpedit|secpol|diskmgmt|bcdedit|diskpart|net\.exe|net\s+user|shutdown|format\.com|lusrmgr|userpasswords)/i;
|
|
1253
|
-
/**
|
|
1254
|
-
* 危险分级:
|
|
1255
|
-
* - `read`:只读观察(截图/查鼠标/列窗口/列应用/列显示器/get_app_state),免审批那一档;
|
|
1256
|
-
* - `input`:普通输入与点击(要审批);
|
|
1257
|
-
* - `system`:系统级(急停 stop,或目标/文本命中系统工具形状),最严。
|
|
1258
|
-
*/
|
|
1259
|
-
export function gradeDesktopAction(action, args = {}) {
|
|
1260
|
-
if (action === 'stop')
|
|
1261
|
-
return 'system';
|
|
1262
|
-
if (READ_ACTIONS.includes(action))
|
|
1263
|
-
return 'read';
|
|
1264
|
-
let blob = '';
|
|
1265
|
-
try {
|
|
1266
|
-
blob = JSON.stringify(args ?? {});
|
|
1267
|
-
}
|
|
1268
|
-
catch {
|
|
1269
|
-
blob = String(args);
|
|
1270
|
-
}
|
|
1271
|
-
if (SYSTEM_HINTS.test(blob))
|
|
1272
|
-
return 'system';
|
|
1273
|
-
return 'input';
|
|
1274
|
-
}
|
|
1275
|
-
/** 电脑操作审计文件:`<home>/audit/computer-use.jsonl`(home 来自 ctx.settings.about().home,不硬编码)。 */
|
|
1276
|
-
export function computerAuditPath(home) {
|
|
1277
|
-
return join(home, 'audit', 'computer-use.jsonl');
|
|
1278
|
-
}
|
|
1279
|
-
/** 把一条审计记录压成一行 JSON(含换行;自检直接断言这一行的形状)。 */
|
|
1280
|
-
export function auditLine(record) {
|
|
1281
|
-
return `${JSON.stringify(record)}\n`;
|
|
1282
|
-
}
|
|
1283
|
-
/** 追加一行审计(写失败吞掉:审计是辅助面,不该卡住动作)。 */
|
|
1284
|
-
export function appendComputerAudit(home, record) {
|
|
1285
|
-
try {
|
|
1286
|
-
const path = computerAuditPath(home);
|
|
1287
|
-
mkdirSync(dirname(path), { recursive: true });
|
|
1288
|
-
appendFileSync(path, auditLine(record), 'utf8');
|
|
1289
|
-
}
|
|
1290
|
-
catch {
|
|
1291
|
-
// 磁盘问题不影响动作本身
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
/**
|
|
1295
|
-
* 沙箱接入结论(P2-8,如实记录):
|
|
1296
|
-
*
|
|
1297
|
-
* 现有的沙箱执行缝是 `src/core/tools/command-runner.ts` 的 `planCommand`,
|
|
1298
|
-
* 它是为「命令执行工具」换执行体设计的。电脑操作的 PowerShell **不能**走这条缝,原因是
|
|
1299
|
-
* 结构性的、不是偷懒:
|
|
1300
|
-
* 1. 隔离后端(docker 容器 / Windows 受限令牌)拿不到**交互式用户桌面**——
|
|
1301
|
-
* 容器里没有 user32 的桌面对象,受限令牌换了会话也就没有输入注入能力,
|
|
1302
|
-
* 真接上去的结果是电脑操作直接不可用;
|
|
1303
|
-
* 2. `command-runner` 的 base 计划是「一条 shell 命令」,而电脑操作是一串
|
|
1304
|
-
* P/Invoke 脚本,语义对不上(容器后端会把 `powershell -Command <脚本>` 再套一层 shell);
|
|
1305
|
-
* 3. 沙箱守卫链按 `input.command` 判 exec 类,`computer` 工具没有 command 参数,
|
|
1306
|
-
* 策略层天然看不到它——它不是「漏判」,而是这类动作本就不该由命令沙箱兜。
|
|
1307
|
-
* 因此保持现状:电脑操作由审批卡 + 应用白名单 + 危险分级 + 独立审计兜底。
|
|
1308
|
-
*/
|
|
1309
|
-
export const SANDBOX_NOTE = '桌面控制的 PowerShell 不走命令沙箱执行缝(隔离后端拿不到交互式桌面);由审批 + 白名单 + 危险分级 + 独立审计兜底。';
|