@waq666/pneuma 0.8.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -18
- package/bin/dsc.js +25 -2
- package/lib/adapter/transcript.d.ts +94 -1
- package/lib/adapter/transcript.js +398 -12
- package/lib/boot.js +6 -27
- package/lib/contract/approval.d.ts +41 -4
- package/lib/contract/fonts.d.ts +101 -0
- package/lib/contract/fonts.js +157 -0
- package/lib/contract/memory.d.ts +93 -0
- package/lib/contract/memory.js +12 -0
- package/lib/contract/plugin.d.ts +106 -5
- package/lib/contract/remote.d.ts +8 -0
- package/lib/contract/remote.js +8 -0
- package/lib/contract/runtime.d.ts +240 -11
- package/lib/contract/session.d.ts +69 -6
- package/lib/contract/settings.d.ts +143 -3
- package/lib/contract/snapshot.d.ts +22 -5
- package/lib/contract/task.d.ts +38 -2
- package/lib/contract/transcript.d.ts +209 -13
- package/lib/contract/transcript.js +47 -1
- package/lib/contract.d.ts +3 -1
- package/lib/contract.js +3 -1
- package/lib/core/bytes.d.ts +1 -1
- package/lib/core/bytes.js +2 -2
- package/lib/core/child-env.d.ts +31 -0
- package/lib/core/child-env.js +70 -0
- package/lib/core/command-intent.d.ts +121 -0
- package/lib/core/command-intent.js +380 -0
- package/lib/core/command-policy.js +10 -46
- package/lib/core/config-store.js +6 -1
- package/lib/core/config.d.ts +98 -0
- package/lib/core/config.js +286 -4
- package/lib/core/context-injection-report.d.ts +107 -0
- package/lib/core/context-injection-report.js +132 -0
- package/lib/core/dock-browser.d.ts +30 -1
- package/lib/core/dock-browser.js +2 -1
- package/lib/core/dock-ops.d.ts +4 -4
- package/lib/core/dock-ops.js +2 -2
- package/lib/core/dock-session.d.ts +1 -2
- package/lib/core/dsh-compat/resolve-hook.d.ts +29 -1
- package/lib/core/dsh-compat/resolve-hook.js +272 -15
- package/lib/core/dsh-compat/service-map.js +1 -1
- package/lib/core/events.d.ts +52 -4
- package/lib/core/executable.d.ts +38 -0
- package/lib/core/executable.js +115 -0
- package/lib/core/git-exec.d.ts +11 -2
- package/lib/core/git-exec.js +27 -3
- package/lib/core/guard-session.d.ts +50 -0
- package/lib/core/guard-session.js +58 -0
- package/lib/core/host-browser-link.d.ts +1 -2
- package/lib/core/host-methods.d.ts +1 -1
- package/lib/core/host-methods.js +14 -1
- package/lib/core/http-debug.d.ts +43 -0
- package/lib/core/http-debug.js +65 -0
- package/lib/core/i18n-text.d.ts +39 -0
- package/lib/core/i18n-text.js +50 -0
- package/lib/core/i18n.d.ts +28 -0
- package/lib/core/i18n.js +109 -0
- package/lib/core/image-diet.d.ts +77 -22
- package/lib/core/image-diet.js +233 -9
- package/lib/core/llm.d.ts +76 -9
- package/lib/core/llm.js +151 -22
- package/lib/core/lockfile.d.ts +4 -5
- package/lib/core/lockfile.js +78 -16
- package/lib/core/log-config.d.ts +35 -0
- package/lib/core/log-config.js +71 -0
- package/lib/core/mention.d.ts +25 -15
- package/lib/core/mention.js +153 -32
- package/lib/core/migrate.d.ts +18 -0
- package/lib/core/native-bridge.d.ts +1 -1
- package/lib/core/native-bridge.js +1 -1
- package/lib/core/os-lock.d.ts +30 -0
- package/lib/core/os-lock.js +232 -0
- package/lib/core/path-policy.d.ts +13 -2
- package/lib/core/path-policy.js +30 -2
- package/lib/core/plugin-bundle.d.ts +90 -8
- package/lib/core/plugin-bundle.js +184 -22
- package/lib/core/plugin-loader.d.ts +238 -8
- package/lib/core/plugin-loader.js +1288 -152
- package/lib/core/plugin-locale.d.ts +42 -0
- package/lib/core/plugin-locale.js +132 -0
- package/lib/core/plugin-npm.d.ts +44 -0
- package/lib/core/plugin-npm.js +459 -0
- package/lib/core/plugin-patch.d.ts +17 -0
- package/lib/core/plugin-patch.js +23 -1
- package/lib/core/plugin-registry.d.ts +72 -13
- package/lib/core/plugin-registry.js +275 -76
- package/lib/core/plugin-watch.d.ts +128 -0
- package/lib/core/plugin-watch.js +880 -0
- package/lib/core/prefs.d.ts +7 -1
- package/lib/core/prefs.js +125 -33
- package/lib/core/profile-bootstrap.d.ts +5 -0
- package/lib/core/profile-bootstrap.js +33 -0
- package/lib/core/profile-dir.js +7 -3
- package/lib/core/records.d.ts +1 -1
- package/lib/core/records.js +1 -1
- package/lib/core/redact.d.ts +20 -0
- package/lib/core/redact.js +52 -0
- package/lib/core/repeat-reminder.d.ts +152 -0
- package/lib/core/repeat-reminder.js +175 -0
- package/lib/core/request-invariant.js +1 -1
- package/lib/core/schedule/runner.d.ts +18 -2
- package/lib/core/schedule/runner.js +50 -15
- package/lib/core/session.d.ts +192 -11
- package/lib/core/session.js +250 -19
- package/lib/core/shell-quote.d.ts +2 -2
- package/lib/core/shell-quote.js +2 -2
- package/lib/core/skills.d.ts +14 -0
- package/lib/core/skills.js +31 -0
- package/lib/core/team-board.d.ts +94 -10
- package/lib/core/team-board.js +226 -7
- package/lib/core/terminal-env.d.ts +18 -4
- package/lib/core/terminal-env.js +151 -15
- package/lib/core/todo-reminder-cadence.d.ts +86 -0
- package/lib/core/todo-reminder-cadence.js +76 -0
- package/lib/core/token-estimate.d.ts +1 -1
- package/lib/core/token-estimate.js +1 -1
- package/lib/core/tool-guards.d.ts +42 -0
- package/lib/core/tool-guards.js +43 -1
- package/lib/core/tools/command-runner.d.ts +11 -0
- package/lib/core/tools/fs-tools.js +6 -0
- package/lib/core/tools.d.ts +21 -4
- package/lib/core/transcript-text.d.ts +1 -1
- package/lib/core/transcript-text.js +1 -1
- package/lib/core/ui-boot-source.d.ts +3 -1
- package/lib/core/ui-boot-source.js +1 -1
- package/lib/core/ui-bundles.d.ts +13 -4
- package/lib/core/ui-bundles.js +122 -29
- package/lib/core/ui-graph-frames.d.ts +47 -0
- package/lib/core/ui-graph-frames.js +54 -0
- package/lib/core/ui-hmr.d.ts +1 -1
- package/lib/core/ui-manifest.d.ts +224 -0
- package/lib/core/ui-manifest.js +185 -0
- package/lib/core/ui-methods.d.ts +1 -1
- package/lib/core/ui-methods.js +54 -2
- package/lib/core/ui-server.d.ts +3 -2
- package/lib/core/ui-server.js +18 -18
- package/lib/core/usage-log.d.ts +58 -1
- package/lib/core/usage-log.js +140 -1
- package/lib/headless.js +4 -24
- package/lib/host/kernel.d.ts +7 -15
- package/lib/host/kernel.js +65 -434
- package/lib/host/launch.d.ts +20 -0
- package/lib/host/launch.js +48 -0
- package/lib/host/startup.d.ts +8 -0
- package/lib/host/startup.js +74 -0
- package/lib/node_modules/@pneuma/agent/cache-probe.d.ts +1 -0
- package/lib/node_modules/@pneuma/agent/cache-probe.js +1 -0
- package/lib/node_modules/@pneuma/agent/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/agent/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/agent/index.js +1 -0
- package/lib/node_modules/@pneuma/agent/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/agent/package.json +38 -0
- package/lib/node_modules/@pneuma/approval/approval.d.ts +1 -0
- package/lib/node_modules/@pneuma/approval/approval.js +1 -0
- package/lib/node_modules/@pneuma/approval/call-meaning.d.ts +1 -0
- package/lib/node_modules/@pneuma/approval/call-meaning.js +1 -0
- package/lib/node_modules/@pneuma/approval/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/approval/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/approval/index.js +1 -0
- package/lib/node_modules/@pneuma/approval/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/approval/package.json +38 -0
- package/lib/node_modules/@pneuma/approval-floor/approval-floor.d.ts +1 -0
- package/lib/node_modules/@pneuma/approval-floor/approval-floor.js +1 -0
- package/lib/node_modules/@pneuma/approval-floor/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/approval-floor/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/approval-floor/index.js +1 -0
- package/lib/node_modules/@pneuma/approval-floor/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/approval-floor/locale/ui.en.json +28 -0
- package/lib/node_modules/@pneuma/approval-floor/locale/ui.zh.json +28 -0
- package/lib/node_modules/@pneuma/approval-floor/package.json +40 -0
- package/lib/node_modules/@pneuma/ask/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/ask/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ask/index.js +1 -0
- package/lib/node_modules/@pneuma/ask/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ask/package.json +38 -0
- package/lib/node_modules/@pneuma/base/cordis.patch.yml +176 -0
- package/lib/node_modules/@pneuma/base/package.json +12 -0
- package/lib/node_modules/@pneuma/browser/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/browser/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/browser/index.js +1 -0
- package/lib/node_modules/@pneuma/browser/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/browser/locale/ui.en.json +61 -0
- package/lib/node_modules/@pneuma/browser/locale/ui.zh.json +61 -0
- package/lib/node_modules/@pneuma/browser/package.json +40 -0
- package/lib/node_modules/@pneuma/cdp/actions.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/actions.js +1 -0
- package/lib/node_modules/@pneuma/cdp/cloud-metadata.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/cloud-metadata.js +1 -0
- package/lib/node_modules/@pneuma/cdp/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/index.js +1 -0
- package/lib/node_modules/@pneuma/cdp/launch.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/launch.js +1 -0
- package/lib/node_modules/@pneuma/cdp/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/cdp/package.json +40 -0
- package/lib/node_modules/@pneuma/cdp/report.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/report.js +1 -0
- package/lib/node_modules/@pneuma/cdp/ring-buffer.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/ring-buffer.js +1 -0
- package/lib/node_modules/@pneuma/cdp/snapshot.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/snapshot.js +1 -0
- package/lib/node_modules/@pneuma/cdp/transport.d.ts +1 -0
- package/lib/node_modules/@pneuma/cdp/transport.js +1 -0
- package/lib/node_modules/@pneuma/checkpoint/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/checkpoint/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/checkpoint/index.js +1 -0
- package/lib/node_modules/@pneuma/checkpoint/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/checkpoint/locale/ui.en.json +15 -0
- package/lib/node_modules/@pneuma/checkpoint/locale/ui.zh.json +15 -0
- package/lib/node_modules/@pneuma/checkpoint/package.json +38 -0
- package/lib/node_modules/@pneuma/checkpoint/shadow.d.ts +1 -0
- package/lib/node_modules/@pneuma/checkpoint/shadow.js +1 -0
- package/lib/node_modules/@pneuma/cli/config-cli.d.ts +1 -0
- package/lib/node_modules/@pneuma/cli/config-cli.js +1 -0
- package/lib/node_modules/@pneuma/cli/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/cli/index.js +1 -0
- package/lib/node_modules/@pneuma/cli/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/cli/package.json +35 -0
- package/lib/node_modules/@pneuma/cli/plugin-cli.d.ts +1 -0
- package/lib/node_modules/@pneuma/cli/plugin-cli.js +1 -0
- package/lib/node_modules/@pneuma/cli/pnpm-builds.d.ts +1 -0
- package/lib/node_modules/@pneuma/cli/pnpm-builds.js +1 -0
- package/lib/node_modules/@pneuma/commands/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/commands/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/commands/index.js +1 -0
- package/lib/node_modules/@pneuma/commands/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/commands/package.json +38 -0
- package/lib/node_modules/@pneuma/commands/session-export.d.ts +1 -0
- package/lib/node_modules/@pneuma/commands/session-export.js +1 -0
- package/lib/node_modules/@pneuma/commands-core/commands-completion.d.ts +1 -0
- package/lib/node_modules/@pneuma/commands-core/commands-completion.js +1 -0
- package/lib/node_modules/@pneuma/commands-core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/commands-core/index.js +1 -0
- package/lib/node_modules/@pneuma/commands-core/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/commands-core/package.json +34 -0
- package/lib/node_modules/@pneuma/compact/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/compact/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/compact/index.js +1 -0
- package/lib/node_modules/@pneuma/compact/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/compact/locale/ui.en.json +24 -0
- package/lib/node_modules/@pneuma/compact/locale/ui.zh.json +24 -0
- package/lib/node_modules/@pneuma/compact/package.json +39 -0
- package/lib/node_modules/@pneuma/computer-use/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/computer-use/desktop-control.d.ts +1 -0
- package/lib/node_modules/@pneuma/computer-use/desktop-control.js +1 -0
- package/lib/node_modules/@pneuma/computer-use/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/computer-use/index.js +1 -0
- package/lib/node_modules/@pneuma/computer-use/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/computer-use/locale/ui.en.json +41 -0
- package/lib/node_modules/@pneuma/computer-use/locale/ui.zh.json +41 -0
- package/lib/node_modules/@pneuma/computer-use/package.json +40 -0
- package/lib/node_modules/@pneuma/config-core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/config-core/index.js +1 -0
- package/lib/node_modules/@pneuma/config-core/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/config-core/market.d.ts +1 -0
- package/lib/node_modules/@pneuma/config-core/market.js +1 -0
- package/lib/node_modules/@pneuma/config-core/package.json +35 -0
- package/lib/node_modules/@pneuma/config-core/presets.d.ts +1 -0
- package/lib/node_modules/@pneuma/config-core/presets.js +1 -0
- package/lib/node_modules/@pneuma/desktop-dock/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/desktop-dock/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/desktop-dock/index.js +1 -0
- package/lib/node_modules/@pneuma/desktop-dock/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/desktop-dock/locale/ui.en.json +11 -0
- package/lib/node_modules/@pneuma/desktop-dock/locale/ui.zh.json +11 -0
- package/lib/node_modules/@pneuma/desktop-dock/package.json +38 -0
- package/lib/node_modules/@pneuma/dock-browser/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/dock-browser/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/dock-browser/index.js +1 -0
- package/lib/node_modules/@pneuma/dock-browser/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/dock-browser/locale/ui.en.json +10 -0
- package/lib/node_modules/@pneuma/dock-browser/locale/ui.zh.json +10 -0
- package/lib/node_modules/@pneuma/dock-browser/package.json +40 -0
- package/lib/node_modules/@pneuma/doctor/bundle.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/bundle.js +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/data.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/data.js +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/ecosystem.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/ecosystem.js +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/environment.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/environment.js +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/util.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/checks/util.js +1 -0
- package/lib/node_modules/@pneuma/doctor/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/doctor/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/doctor/index.js +1 -0
- package/lib/node_modules/@pneuma/doctor/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/doctor/package.json +39 -0
- package/lib/node_modules/@pneuma/dsh-compat/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/dsh-compat/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/dsh-compat/index.js +1 -0
- package/lib/node_modules/@pneuma/dsh-compat/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/dsh-compat/package.json +40 -0
- package/lib/node_modules/@pneuma/git/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/git/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/git/index.js +1 -0
- package/lib/node_modules/@pneuma/git/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/git/package.json +38 -0
- package/lib/node_modules/@pneuma/goal/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/goal/goal.d.ts +1 -0
- package/lib/node_modules/@pneuma/goal/goal.js +1 -0
- package/lib/node_modules/@pneuma/goal/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/goal/index.js +1 -0
- package/lib/node_modules/@pneuma/goal/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/goal/locale/ui.en.json +10 -0
- package/lib/node_modules/@pneuma/goal/locale/ui.zh.json +10 -0
- package/lib/node_modules/@pneuma/goal/package.json +39 -0
- package/lib/node_modules/@pneuma/guards/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/guards/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/guards/index.js +1 -0
- package/lib/node_modules/@pneuma/guards/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/guards/package.json +38 -0
- package/lib/node_modules/@pneuma/hooks/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/hooks/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/hooks/index.js +1 -0
- package/lib/node_modules/@pneuma/hooks/lifecycle-hooks.d.ts +1 -0
- package/lib/node_modules/@pneuma/hooks/lifecycle-hooks.js +1 -0
- package/lib/node_modules/@pneuma/hooks/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/hooks/locale/ui.en.json +111 -0
- package/lib/node_modules/@pneuma/hooks/locale/ui.zh.json +111 -0
- package/lib/node_modules/@pneuma/hooks/package.json +39 -0
- package/lib/node_modules/@pneuma/host-stdio/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/host-stdio/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/host-stdio/index.js +1 -0
- package/lib/node_modules/@pneuma/host-stdio/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/host-stdio/package.json +38 -0
- package/lib/node_modules/@pneuma/image-diet/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/image-diet/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/image-diet/index.js +1 -0
- package/lib/node_modules/@pneuma/image-diet/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/image-diet/locale/ui.en.json +14 -0
- package/lib/node_modules/@pneuma/image-diet/locale/ui.zh.json +14 -0
- package/lib/node_modules/@pneuma/image-diet/package.json +39 -0
- package/lib/node_modules/@pneuma/llm/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/llm/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/llm/index.js +1 -0
- package/lib/node_modules/@pneuma/llm/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/llm/package.json +38 -0
- package/lib/node_modules/@pneuma/log/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/log/filter.d.ts +1 -0
- package/lib/node_modules/@pneuma/log/filter.js +1 -0
- package/lib/node_modules/@pneuma/log/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/log/index.js +1 -0
- package/lib/node_modules/@pneuma/log/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/log/locale/ui.en.json +30 -0
- package/lib/node_modules/@pneuma/log/locale/ui.zh.json +30 -0
- package/lib/node_modules/@pneuma/log/package.json +40 -0
- package/lib/node_modules/@pneuma/log/sink.d.ts +1 -0
- package/lib/node_modules/@pneuma/log/sink.js +1 -0
- package/lib/node_modules/@pneuma/lsp/client.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/client.js +1 -0
- package/lib/node_modules/@pneuma/lsp/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/lsp/framing.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/framing.js +1 -0
- package/lib/node_modules/@pneuma/lsp/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/index.js +1 -0
- package/lib/node_modules/@pneuma/lsp/line-shift.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/line-shift.js +1 -0
- package/lib/node_modules/@pneuma/lsp/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/lsp/locale/ui.en.json +17 -0
- package/lib/node_modules/@pneuma/lsp/locale/ui.zh.json +17 -0
- package/lib/node_modules/@pneuma/lsp/manager.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/manager.js +1 -0
- package/lib/node_modules/@pneuma/lsp/normalize.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/normalize.js +1 -0
- package/lib/node_modules/@pneuma/lsp/package.json +40 -0
- package/lib/node_modules/@pneuma/lsp/servers.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/servers.js +1 -0
- package/lib/node_modules/@pneuma/lsp/uri.d.ts +1 -0
- package/lib/node_modules/@pneuma/lsp/uri.js +1 -0
- package/lib/node_modules/@pneuma/mcp/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/mcp/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/mcp/index.js +1 -0
- package/lib/node_modules/@pneuma/mcp/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/mcp/locale/ui.en.json +28 -0
- package/lib/node_modules/@pneuma/mcp/locale/ui.zh.json +28 -0
- package/lib/node_modules/@pneuma/mcp/mcp.d.ts +1 -0
- package/lib/node_modules/@pneuma/mcp/mcp.js +1 -0
- package/lib/node_modules/@pneuma/mcp/package.json +40 -0
- package/lib/node_modules/@pneuma/memory/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/memory/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/memory/index.js +1 -0
- package/lib/node_modules/@pneuma/memory/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/memory/locale/ui.en.json +67 -0
- package/lib/node_modules/@pneuma/memory/locale/ui.zh.json +67 -0
- package/lib/node_modules/@pneuma/memory/memory-eval.d.ts +1 -0
- package/lib/node_modules/@pneuma/memory/memory-eval.js +1 -0
- package/lib/node_modules/@pneuma/memory/memory.d.ts +1 -0
- package/lib/node_modules/@pneuma/memory/memory.js +1 -0
- package/lib/node_modules/@pneuma/memory/package.json +39 -0
- package/lib/node_modules/@pneuma/microcompact/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/microcompact/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/microcompact/index.js +1 -0
- package/lib/node_modules/@pneuma/microcompact/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/microcompact/locale/ui.en.json +20 -0
- package/lib/node_modules/@pneuma/microcompact/locale/ui.zh.json +20 -0
- package/lib/node_modules/@pneuma/microcompact/microcompact.d.ts +1 -0
- package/lib/node_modules/@pneuma/microcompact/microcompact.js +1 -0
- package/lib/node_modules/@pneuma/microcompact/package.json +39 -0
- package/lib/node_modules/@pneuma/mode/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/mode/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/mode/index.js +1 -0
- package/lib/node_modules/@pneuma/mode/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/mode/package.json +38 -0
- package/lib/node_modules/@pneuma/ops/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ops/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ops/index.js +1 -0
- package/lib/node_modules/@pneuma/ops/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ops/locale/ui.en.json +21 -0
- package/lib/node_modules/@pneuma/ops/locale/ui.zh.json +21 -0
- package/lib/node_modules/@pneuma/ops/package.json +41 -0
- package/lib/node_modules/@pneuma/ops/render.d.ts +1 -0
- package/lib/node_modules/@pneuma/ops/render.js +1 -0
- package/lib/node_modules/@pneuma/ops/tools.d.ts +1 -0
- package/lib/node_modules/@pneuma/ops/tools.js +1 -0
- package/lib/node_modules/@pneuma/ops/worker.d.ts +1 -0
- package/lib/node_modules/@pneuma/ops/worker.js +1 -0
- package/lib/node_modules/@pneuma/permission-core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/permission-core/index.js +1 -0
- package/lib/node_modules/@pneuma/permission-core/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/permission-core/package.json +35 -0
- package/lib/node_modules/@pneuma/permission-core/permission-presets.d.ts +1 -0
- package/lib/node_modules/@pneuma/permission-core/permission-presets.js +1 -0
- package/lib/node_modules/@pneuma/permission-core/permission-scope.d.ts +1 -0
- package/lib/node_modules/@pneuma/permission-core/permission-scope.js +1 -0
- package/lib/node_modules/@pneuma/permission-presets/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/permission-presets/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/permission-presets/index.js +1 -0
- package/lib/node_modules/@pneuma/permission-presets/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/permission-presets/locale/ui.en.json +10 -0
- package/lib/node_modules/@pneuma/permission-presets/locale/ui.zh.json +10 -0
- package/lib/node_modules/@pneuma/permission-presets/package.json +38 -0
- package/lib/node_modules/@pneuma/plan/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/plan/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/plan/index.js +1 -0
- package/lib/node_modules/@pneuma/plan/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/plan/package.json +38 -0
- package/lib/node_modules/@pneuma/plugin-manager/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/plugin-manager/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/plugin-manager/index.js +1 -0
- package/lib/node_modules/@pneuma/plugin-manager/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/plugin-manager/package.json +38 -0
- package/lib/node_modules/@pneuma/presets/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/presets/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/presets/index.js +1 -0
- package/lib/node_modules/@pneuma/presets/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/presets/locale/ui.en.json +10 -0
- package/lib/node_modules/@pneuma/presets/locale/ui.zh.json +10 -0
- package/lib/node_modules/@pneuma/presets/package.json +38 -0
- package/lib/node_modules/@pneuma/prompt/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/prompt/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/prompt/index.js +1 -0
- package/lib/node_modules/@pneuma/prompt/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/prompt/package.json +38 -0
- package/lib/node_modules/@pneuma/prompt/tool-result-prune.d.ts +1 -0
- package/lib/node_modules/@pneuma/prompt/tool-result-prune.js +1 -0
- package/lib/node_modules/@pneuma/ptc/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/ptc/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ptc/index.js +1 -0
- package/lib/node_modules/@pneuma/ptc/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ptc/package.json +38 -0
- package/lib/node_modules/@pneuma/remote/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/remote/http.d.ts +1 -0
- package/lib/node_modules/@pneuma/remote/http.js +1 -0
- package/lib/node_modules/@pneuma/remote/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/remote/index.js +1 -0
- package/lib/node_modules/@pneuma/remote/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/remote/locale/ui.en.json +76 -0
- package/lib/node_modules/@pneuma/remote/locale/ui.zh.json +76 -0
- package/lib/node_modules/@pneuma/remote/package.json +38 -0
- package/lib/node_modules/@pneuma/remote/routes.d.ts +1 -0
- package/lib/node_modules/@pneuma/remote/routes.js +1 -0
- package/lib/node_modules/@pneuma/remote/types.d.ts +1 -0
- package/lib/node_modules/@pneuma/remote/types.js +1 -0
- package/lib/node_modules/@pneuma/runtime/adapter/transcript.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/adapter/transcript.js +1 -0
- package/lib/node_modules/@pneuma/runtime/boot.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/boot.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/approval.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/approval.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/fonts.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/fonts.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/memory.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/memory.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/mode.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/mode.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/plugin.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/plugin.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/remote.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/remote.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/runtime.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/runtime.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/session.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/session.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/settings.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/settings.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/snapshot.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/snapshot.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/task.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/task.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/transcript.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/transcript.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/usage.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract/usage.js +1 -0
- package/lib/node_modules/@pneuma/runtime/contract.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/contract.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/attachments.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/attachments.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/audit.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/audit.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/boot-notices.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/boot-notices.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/bytes.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/bytes.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/child-env.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/child-env.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/clamp.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/clamp.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/clock.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/clock.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/command-intent.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/command-intent.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/command-policy.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/command-policy.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/compact-anchors.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/compact-anchors.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/config-store.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/config-store.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/config.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/config.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/context-injection-report.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/context-injection-report.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/diff-text.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/diff-text.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-browser.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-browser.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-ops.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-ops.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-session.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dock-session.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/llm-usage-event.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/llm-usage-event.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/presentation.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/presentation.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/resolve-hook.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/resolve-hook.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/service-map.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/service-map.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-bridge.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-bridge.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-events.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-events.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/credentials.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/credentials.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/home-paths.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/home-paths.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/tools-facade.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/dsh-compat/tools-facade.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/err-text.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/err-text.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/events.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/events.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/executable.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/executable.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-exec.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-exec.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-info.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-info.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-surface.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/git-surface.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/guard-session.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/guard-session.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/host-browser-link.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/host-browser-link.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/host-methods.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/host-methods.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/http-debug.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/http-debug.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/i18n-text.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/i18n-text.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/i18n.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/i18n.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/image-diet.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/image-diet.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/json-text.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/json-text.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/llm.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/llm.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/lockfile.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/lockfile.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/log-config.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/log-config.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/mention.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/mention.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/migrate.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/migrate.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/model-caps.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/model-caps.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/native-bridge.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/native-bridge.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/os-lock.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/os-lock.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/path-policy.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/path-policy.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-bundle.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-bundle.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-loader.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-loader.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-locale.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-locale.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-npm.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-npm.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-patch.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-patch.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-registry.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-registry.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-watch.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/plugin-watch.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/prefs.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/prefs.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/pricing.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/pricing.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/profile-bootstrap.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/profile-bootstrap.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/profile-dir.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/profile-dir.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ptc.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ptc.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/records.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/records.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/redact.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/redact.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/frames.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/frames.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/notify.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/notify.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/owner.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/owner.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/pairing.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/pairing.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/push.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/push.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/store.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/store.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/tickets.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/tickets.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/uploads.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/remote/uploads.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/repeat-reminder.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/repeat-reminder.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/request-attribution.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/request-attribution.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/request-invariant.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/request-invariant.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/rule.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/rule.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/runner.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/runner.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/store.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/schedule/store.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/secrets.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/secrets.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/session-meta.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/session-meta.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/session.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/session.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/shell-quote.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/shell-quote.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/side-ask.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/side-ask.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/skills.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/skills.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/snapshot-throttle.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/snapshot-throttle.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/spill.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/spill.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/strings.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/strings.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/team-board.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/team-board.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/terminal-env.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/terminal-env.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/text-format.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/text-format.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/throughput.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/throughput.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/todo-reminder-cadence.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/todo-reminder-cadence.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/todo-reminder.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/todo-reminder.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/token-estimate.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/token-estimate.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tool-guards.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tool-guards.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/command-runner.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/command-runner.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/fs-tools.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/fs-tools.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/path-args.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/path-args.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/sandbox-args.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools/sandbox-args.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/tools.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/transcript-text.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/transcript-text.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-boot-source.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-boot-source.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-bundles.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-bundles.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-combo.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-combo.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-events.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-events.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-graph-frames.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-graph-frames.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-hmr.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-hmr.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-manifest.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-manifest.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-methods.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-methods.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-route.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-route.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-server.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-server.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-trust.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/ui-trust.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/unified-diff.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/unified-diff.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/untrusted.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/untrusted.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/update-check.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/update-check.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/usage-log.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/usage-log.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/version.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/version.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/web-http.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/web-http.js +1 -0
- package/lib/node_modules/@pneuma/runtime/core/web-static.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/core/web-static.js +1 -0
- package/lib/node_modules/@pneuma/runtime/headless.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/headless.js +1 -0
- package/lib/node_modules/@pneuma/runtime/package.json +11 -0
- package/lib/node_modules/@pneuma/runtime/services/types.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime/services/types.js +1 -0
- package/lib/node_modules/@pneuma/runtime-adapter/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/runtime-adapter/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime-adapter/index.js +1 -0
- package/lib/node_modules/@pneuma/runtime-adapter/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/runtime-adapter/package.json +38 -0
- package/lib/node_modules/@pneuma/runtime-api/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/runtime-api/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime-api/index.js +1 -0
- package/lib/node_modules/@pneuma/runtime-api/inspect.d.ts +1 -0
- package/lib/node_modules/@pneuma/runtime-api/inspect.js +1 -0
- package/lib/node_modules/@pneuma/runtime-api/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/runtime-api/package.json +38 -0
- package/lib/node_modules/@pneuma/sandbox/backends.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/backends.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/sandbox/execpolicy.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/execpolicy.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/index.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/sandbox/locale/ui.en.json +78 -0
- package/lib/node_modules/@pneuma/sandbox/locale/ui.zh.json +78 -0
- package/lib/node_modules/@pneuma/sandbox/net-proxy.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/net-proxy.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/package.json +40 -0
- package/lib/node_modules/@pneuma/sandbox/policy.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/policy.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/review.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/review.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/abi.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/abi.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/account.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/account.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/acl.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/acl.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/backend.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/backend.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/doctor.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/doctor.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/ffi.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/ffi.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/interpreter.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/interpreter.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/net-abi.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/net-abi.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/runner-entry.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/runner-entry.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/setup.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/setup.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/sweep.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/sweep.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/token.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/token.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/utf16.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/utf16.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/wfp.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/wfp.js +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/workspace-sid.d.ts +1 -0
- package/lib/node_modules/@pneuma/sandbox/win/workspace-sid.js +1 -0
- package/lib/node_modules/@pneuma/schedule/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/schedule/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/schedule/index.js +1 -0
- package/lib/node_modules/@pneuma/schedule/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/schedule/locale/ui.en.json +29 -0
- package/lib/node_modules/@pneuma/schedule/locale/ui.zh.json +29 -0
- package/lib/node_modules/@pneuma/schedule/package.json +40 -0
- package/lib/node_modules/@pneuma/self-improve/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/self-improve/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/self-improve/index.js +1 -0
- package/lib/node_modules/@pneuma/self-improve/ledger.d.ts +1 -0
- package/lib/node_modules/@pneuma/self-improve/ledger.js +1 -0
- package/lib/node_modules/@pneuma/self-improve/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/self-improve/locale/ui.en.json +31 -0
- package/lib/node_modules/@pneuma/self-improve/locale/ui.zh.json +31 -0
- package/lib/node_modules/@pneuma/self-improve/package.json +41 -0
- package/lib/node_modules/@pneuma/self-improve/skill-write.d.ts +1 -0
- package/lib/node_modules/@pneuma/self-improve/skill-write.js +1 -0
- package/lib/node_modules/@pneuma/self-improve/store.d.ts +1 -0
- package/lib/node_modules/@pneuma/self-improve/store.js +1 -0
- package/lib/node_modules/@pneuma/session/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/session/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/session/index.js +1 -0
- package/lib/node_modules/@pneuma/session/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/session/package.json +38 -0
- package/lib/node_modules/@pneuma/session-core/compact.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/compact.js +1 -0
- package/lib/node_modules/@pneuma/session-core/hooks.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/hooks.js +1 -0
- package/lib/node_modules/@pneuma/session-core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/index.js +1 -0
- package/lib/node_modules/@pneuma/session-core/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/session-core/loop.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/loop.js +1 -0
- package/lib/node_modules/@pneuma/session-core/modes.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/modes.js +1 -0
- package/lib/node_modules/@pneuma/session-core/package.json +38 -0
- package/lib/node_modules/@pneuma/session-core/prompt.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-core/prompt.js +1 -0
- package/lib/node_modules/@pneuma/session-search/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/session-search/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-search/index.js +1 -0
- package/lib/node_modules/@pneuma/session-search/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/session-search/locale/ui.en.json +29 -0
- package/lib/node_modules/@pneuma/session-search/locale/ui.zh.json +29 -0
- package/lib/node_modules/@pneuma/session-search/package.json +40 -0
- package/lib/node_modules/@pneuma/session-search/session-index.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-search/session-index.js +1 -0
- package/lib/node_modules/@pneuma/session-title/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/session-title/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/session-title/index.js +1 -0
- package/lib/node_modules/@pneuma/session-title/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/session-title/package.json +38 -0
- package/lib/node_modules/@pneuma/settings/connection-test.d.ts +1 -0
- package/lib/node_modules/@pneuma/settings/connection-test.js +1 -0
- package/lib/node_modules/@pneuma/settings/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/settings/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/settings/index.js +1 -0
- package/lib/node_modules/@pneuma/settings/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/settings/locale/ui.en.json +94 -0
- package/lib/node_modules/@pneuma/settings/locale/ui.zh.json +94 -0
- package/lib/node_modules/@pneuma/settings/model-discovery.d.ts +1 -0
- package/lib/node_modules/@pneuma/settings/model-discovery.js +1 -0
- package/lib/node_modules/@pneuma/settings/package.json +38 -0
- package/lib/node_modules/@pneuma/skills/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/skills/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/skills/index.js +1 -0
- package/lib/node_modules/@pneuma/skills/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/skills/package.json +38 -0
- package/lib/node_modules/@pneuma/spill/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/spill/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/spill/index.js +1 -0
- package/lib/node_modules/@pneuma/spill/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/spill/locale/ui.en.json +31 -0
- package/lib/node_modules/@pneuma/spill/locale/ui.zh.json +31 -0
- package/lib/node_modules/@pneuma/spill/package.json +40 -0
- package/lib/node_modules/@pneuma/subagent/agent-roles.d.ts +1 -0
- package/lib/node_modules/@pneuma/subagent/agent-roles.js +1 -0
- package/lib/node_modules/@pneuma/subagent/board-snapshot.d.ts +1 -0
- package/lib/node_modules/@pneuma/subagent/board-snapshot.js +1 -0
- package/lib/node_modules/@pneuma/subagent/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/subagent/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/subagent/index.js +1 -0
- package/lib/node_modules/@pneuma/subagent/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/subagent/locale/ui.en.json +51 -0
- package/lib/node_modules/@pneuma/subagent/locale/ui.zh.json +51 -0
- package/lib/node_modules/@pneuma/subagent/package.json +40 -0
- package/lib/node_modules/@pneuma/superagent/app/api.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/api.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/assessment.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/assessment.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/cache.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/cache.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/cards.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/cards.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/context.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/context.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/delivery.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/delivery.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/effects.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/effects.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/execution-environment.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/execution-environment.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/links.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/links.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/migration.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/migration.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/notices.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/notices.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/outbox.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/outbox.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/passes.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/passes.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/prompts.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/prompts.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/resources.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/resources.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/retry-health.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/retry-health.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/role-models.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/role-models.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/runtime.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/runtime.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/sessions.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/sessions.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/settings-history.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/settings-history.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/settings.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/settings.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/setup.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/setup.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/skill-files.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/skill-files.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/source-context.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/source-context.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/store-read.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/store-read.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/store.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/store.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/executor.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/executor.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/main.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/main.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/tool.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/tools/tool.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/versions.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/versions.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/overview.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/overview.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/records.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/records.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/settings.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/settings.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/sources.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/sources.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/text.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/text.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/threads.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/threads.js +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/tickets.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/app/views/tickets.js +1 -0
- package/lib/node_modules/@pneuma/superagent/cordis.patch.yml +7 -0
- package/lib/node_modules/@pneuma/superagent/core/admission.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/admission.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/assignments.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/assignments.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/engine.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/engine.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/errors.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/errors.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/evals.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/evals.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/ids.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/ids.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/index.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/intake.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/intake.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/limits.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/limits.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/memory.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/memory.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/model.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/model.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/part.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/part.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/policy.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/policy.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/ports.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/ports.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/reasons.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/reasons.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/replies.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/replies.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/stage.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/stage.js +1 -0
- package/lib/node_modules/@pneuma/superagent/core/tickets.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/core/tickets.js +1 -0
- package/lib/node_modules/@pneuma/superagent/deployment.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/deployment.js +1 -0
- package/lib/node_modules/@pneuma/superagent/executor/background.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/executor/background.js +1 -0
- package/lib/node_modules/@pneuma/superagent/executor/dsh.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/executor/dsh.js +1 -0
- package/lib/node_modules/@pneuma/superagent/host/command.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/host/command.js +1 -0
- package/lib/node_modules/@pneuma/superagent/host/health.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/host/health.js +1 -0
- package/lib/node_modules/@pneuma/superagent/host/settings-section.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/host/settings-section.js +1 -0
- package/lib/node_modules/@pneuma/superagent/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/index.js +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/commands.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/commands.js +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/environment.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/environment.js +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/health.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/health.js +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/text.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/infra/text.js +1 -0
- package/lib/node_modules/@pneuma/superagent/kv.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/kv.js +1 -0
- package/lib/node_modules/@pneuma/superagent/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/superagent/locale/ui.en.json +26 -0
- package/lib/node_modules/@pneuma/superagent/locale/ui.zh.json +26 -0
- package/lib/node_modules/@pneuma/superagent/package.json +46 -0
- package/lib/node_modules/@pneuma/superagent/paths.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/paths.js +1 -0
- package/lib/node_modules/@pneuma/superagent/prompts/admission.md +68 -0
- package/lib/node_modules/@pneuma/superagent/prompts/cli.md +17 -0
- package/lib/node_modules/@pneuma/superagent/prompts/dispatch.md +59 -0
- package/lib/node_modules/@pneuma/superagent/prompts/handoff-orchestrator.md +4 -0
- package/lib/node_modules/@pneuma/superagent/prompts/handoff-worker.md +7 -0
- package/lib/node_modules/@pneuma/superagent/prompts/handoff.md +6 -0
- package/lib/node_modules/@pneuma/superagent/prompts/orchestrator.md +16 -0
- package/lib/node_modules/@pneuma/superagent/prompts/replies.md +35 -0
- package/lib/node_modules/@pneuma/superagent/prompts/shared.md +7 -0
- package/lib/node_modules/@pneuma/superagent/prompts/subscriptions.md +13 -0
- package/lib/node_modules/@pneuma/superagent/prompts/team/communication.md +97 -0
- package/lib/node_modules/@pneuma/superagent/prompts/team/delivery.md +28 -0
- package/lib/node_modules/@pneuma/superagent/prompts/team/scope.md +22 -0
- package/lib/node_modules/@pneuma/superagent/prompts/work.md +49 -0
- package/lib/node_modules/@pneuma/superagent/prompts/worker.md +10 -0
- package/lib/node_modules/@pneuma/superagent/setup.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/setup.js +1 -0
- package/lib/node_modules/@pneuma/superagent/skills/dsh-superagent-feishu/SKILL.md +12 -0
- package/lib/node_modules/@pneuma/superagent/skills/dsh-superagent-github/SKILL.md +14 -0
- package/lib/node_modules/@pneuma/superagent/sources/admission-context.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/admission-context.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-channel.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-channel.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-image.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-image.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-loops.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-loops.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-read.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-read.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-trigger.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu-trigger.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/feishu.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-channel.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-channel.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-pull.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-pull.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-read.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-read.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-trigger.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github-trigger.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/github.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/host.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/host.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/kind.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/kind.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/poll.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/poll.js +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/registry.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent/sources/registry.js +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/cordis.patch.yml +9 -0
- package/lib/node_modules/@pneuma/superagent-webhook/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/index.js +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/superagent-webhook/package.json +39 -0
- package/lib/node_modules/@pneuma/superagent-webhook/tests/settings-contract.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/tests/settings-contract.js +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/webhook.d.ts +1 -0
- package/lib/node_modules/@pneuma/superagent-webhook/webhook.js +1 -0
- package/lib/node_modules/@pneuma/surfaces/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/surfaces/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/surfaces/index.js +1 -0
- package/lib/node_modules/@pneuma/surfaces/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/surfaces/package.json +38 -0
- package/lib/node_modules/@pneuma/surfaces/surface-registry.d.ts +1 -0
- package/lib/node_modules/@pneuma/surfaces/surface-registry.js +1 -0
- package/lib/node_modules/@pneuma/todo/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/todo/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/todo/index.js +1 -0
- package/lib/node_modules/@pneuma/todo/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/todo/locale/ui.en.json +11 -0
- package/lib/node_modules/@pneuma/todo/locale/ui.zh.json +11 -0
- package/lib/node_modules/@pneuma/todo/package.json +39 -0
- package/lib/node_modules/@pneuma/todo/todo.d.ts +1 -0
- package/lib/node_modules/@pneuma/todo/todo.js +1 -0
- package/lib/node_modules/@pneuma/tool-search/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/tool-search/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/tool-search/index.js +1 -0
- package/lib/node_modules/@pneuma/tool-search/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/tool-search/locale/ui.en.json +36 -0
- package/lib/node_modules/@pneuma/tool-search/locale/ui.zh.json +36 -0
- package/lib/node_modules/@pneuma/tool-search/package.json +40 -0
- package/lib/node_modules/@pneuma/tool-search/tool-search.d.ts +1 -0
- package/lib/node_modules/@pneuma/tool-search/tool-search.js +1 -0
- package/lib/node_modules/@pneuma/tools/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/tools/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools/index.js +1 -0
- package/lib/node_modules/@pneuma/tools/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/tools/package.json +38 -0
- package/lib/node_modules/@pneuma/tools-default/bash.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools-default/bash.js +1 -0
- package/lib/node_modules/@pneuma/tools-default/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/tools-default/image-tool.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools-default/image-tool.js +1 -0
- package/lib/node_modules/@pneuma/tools-default/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools-default/index.js +1 -0
- package/lib/node_modules/@pneuma/tools-default/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/tools-default/locale/ui.en.json +27 -0
- package/lib/node_modules/@pneuma/tools-default/locale/ui.zh.json +27 -0
- package/lib/node_modules/@pneuma/tools-default/package.json +39 -0
- package/lib/node_modules/@pneuma/tools-default/persistent-shell.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools-default/persistent-shell.js +1 -0
- package/lib/node_modules/@pneuma/tools-default/search-tools.d.ts +1 -0
- package/lib/node_modules/@pneuma/tools-default/search-tools.js +1 -0
- package/lib/node_modules/@pneuma/transcript/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/transcript/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/transcript/index.js +1 -0
- package/lib/node_modules/@pneuma/transcript/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/transcript/package.json +38 -0
- package/lib/node_modules/@pneuma/tui/app/AgentsOverlay.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/AgentsOverlay.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/App.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/App.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/ApprovalCard.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/ApprovalCard.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/AskCard.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/AskCard.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/ChatView.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/ChatView.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/Composer.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/Composer.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/DiffBlock.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/DiffBlock.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/MarkdownView.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/MarkdownView.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/ModelPicker.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/ModelPicker.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/PickerFrame.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/PickerFrame.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/PlanReviewCard.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/PlanReviewCard.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/PresetPicker.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/PresetPicker.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/PreviewOverlay.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/PreviewOverlay.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/SessionPicker.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/SessionPicker.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/SettingsOverlay.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/SettingsOverlay.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/SkillsPicker.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/SkillsPicker.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/StatusBar.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/StatusBar.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/TaskStrips.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/TaskStrips.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/TimelineRail.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/TimelineRail.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/ToolCard.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/ToolCard.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/TranscriptOverlay.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/TranscriptOverlay.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/TranscriptViewport.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/TranscriptViewport.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/Welcome.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/Welcome.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/attach.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/attach.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/click.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/click.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/clipboard-image.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/clipboard-image.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/cursor.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/cursor.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/display-width.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/display-width.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/history-store.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/history-store.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/image-blocks.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/image-blocks.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/keymap.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/keymap.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/markdown.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/markdown.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/mouse.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/mouse.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/pointer.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/pointer.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/scroll-model.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/scroll-model.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/settings-model.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/settings-model.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/snapshot-subscribe.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/snapshot-subscribe.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/theme.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/theme.js +1 -0
- package/lib/node_modules/@pneuma/tui/app/ticker.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/app/ticker.js +1 -0
- package/lib/node_modules/@pneuma/tui/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/tui/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/tui/index.js +1 -0
- package/lib/node_modules/@pneuma/tui/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/tui/package.json +38 -0
- package/lib/node_modules/@pneuma/ui-actions/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-actions/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-actions/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-actions/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-actions/locale/ui.en.json +3 -0
- package/lib/node_modules/@pneuma/ui-actions/locale/ui.zh.json +3 -0
- package/lib/node_modules/@pneuma/ui-actions/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-ask/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-ask/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-ask/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-ask/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-ask/locale/ui.en.json +28 -0
- package/lib/node_modules/@pneuma/ui-ask/locale/ui.zh.json +28 -0
- package/lib/node_modules/@pneuma/ui-ask/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-boot/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-boot/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-boot/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-boot/locale/ui.en.json +28 -0
- package/lib/node_modules/@pneuma/ui-boot/locale/ui.zh.json +28 -0
- package/lib/node_modules/@pneuma/ui-boot/package.json +38 -0
- package/lib/node_modules/@pneuma/ui-browser/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-browser/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-browser/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-browser/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-browser/locale/ui.en.json +17 -0
- package/lib/node_modules/@pneuma/ui-browser/locale/ui.zh.json +17 -0
- package/lib/node_modules/@pneuma/ui-browser/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-composer/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-composer/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-composer/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-composer/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-composer/locale/ui.en.json +161 -0
- package/lib/node_modules/@pneuma/ui-composer/locale/ui.zh.json +161 -0
- package/lib/node_modules/@pneuma/ui-composer/package.json +44 -0
- package/lib/node_modules/@pneuma/ui-core/arrival.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/arrival.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/frames.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/frames.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/i18n.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/i18n.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-core/package.json +37 -0
- package/lib/node_modules/@pneuma/ui-core/plugin.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/plugin.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/scoped-slots.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/scoped-slots.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/services-react.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/services-react.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/services.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/services.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/signal.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/signal.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots-ink.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots-ink.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots-react.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots-react.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/slots.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/store.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/store.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/tui-plugin-api.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/tui-plugin-api.js +1 -0
- package/lib/node_modules/@pneuma/ui-core/tui-plugins.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-core/tui-plugins.js +1 -0
- package/lib/node_modules/@pneuma/ui-dockkit/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-dockkit/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-dockkit/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-dockkit/locale/ui.en.json +21 -0
- package/lib/node_modules/@pneuma/ui-dockkit/locale/ui.zh.json +21 -0
- package/lib/node_modules/@pneuma/ui-dockkit/package.json +33 -0
- package/lib/node_modules/@pneuma/ui-files/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-files/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-files/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-files/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-files/locale/ui.en.json +43 -0
- package/lib/node_modules/@pneuma/ui-files/locale/ui.zh.json +43 -0
- package/lib/node_modules/@pneuma/ui-files/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-layout/cordis.patch.yml +7 -0
- package/lib/node_modules/@pneuma/ui-layout/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-layout/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-layout/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-layout/locale/ui.en.json +112 -0
- package/lib/node_modules/@pneuma/ui-layout/locale/ui.zh.json +112 -0
- package/lib/node_modules/@pneuma/ui-layout/package.json +44 -0
- package/lib/node_modules/@pneuma/ui-palette/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-palette/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-palette/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-palette/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-palette/locale/ui.en.json +35 -0
- package/lib/node_modules/@pneuma/ui-palette/locale/ui.zh.json +35 -0
- package/lib/node_modules/@pneuma/ui-palette/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-plugins/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-plugins/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-plugins/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-plugins/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-plugins/locale/ui.en.json +134 -0
- package/lib/node_modules/@pneuma/ui-plugins/locale/ui.zh.json +134 -0
- package/lib/node_modules/@pneuma/ui-plugins/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-preview/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-preview/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-preview/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-preview/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-preview/locale/ui.en.json +29 -0
- package/lib/node_modules/@pneuma/ui-preview/locale/ui.zh.json +29 -0
- package/lib/node_modules/@pneuma/ui-preview/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-primitives/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-primitives/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-primitives/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-primitives/locale/ui.en.json +167 -0
- package/lib/node_modules/@pneuma/ui-primitives/locale/ui.zh.json +167 -0
- package/lib/node_modules/@pneuma/ui-primitives/package.json +33 -0
- package/lib/node_modules/@pneuma/ui-prompt/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-prompt/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-prompt/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-prompt/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-prompt/locale/ui.en.json +73 -0
- package/lib/node_modules/@pneuma/ui-prompt/locale/ui.zh.json +73 -0
- package/lib/node_modules/@pneuma/ui-prompt/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-renderer/cordis.patch.yml +7 -0
- package/lib/node_modules/@pneuma/ui-renderer/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-renderer/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-renderer/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-renderer/locale/ui.en.json +14 -0
- package/lib/node_modules/@pneuma/ui-renderer/locale/ui.zh.json +14 -0
- package/lib/node_modules/@pneuma/ui-renderer/package.json +45 -0
- package/lib/node_modules/@pneuma/ui-runtime/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-runtime/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-runtime/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-runtime/locale/ui.en.json +5 -0
- package/lib/node_modules/@pneuma/ui-runtime/locale/ui.zh.json +5 -0
- package/lib/node_modules/@pneuma/ui-runtime/package.json +33 -0
- package/lib/node_modules/@pneuma/ui-sessions/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-sessions/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-sessions/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-sessions/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-sessions/locale/ui.en.json +119 -0
- package/lib/node_modules/@pneuma/ui-sessions/locale/ui.zh.json +119 -0
- package/lib/node_modules/@pneuma/ui-sessions/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-settings/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-settings/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-settings/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-settings/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-settings/locale/ui.en.json +490 -0
- package/lib/node_modules/@pneuma/ui-settings/locale/ui.zh.json +490 -0
- package/lib/node_modules/@pneuma/ui-settings/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-skills/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-skills/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-skills/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-skills/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-skills/locale/ui.en.json +93 -0
- package/lib/node_modules/@pneuma/ui-skills/locale/ui.zh.json +93 -0
- package/lib/node_modules/@pneuma/ui-skills/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-slots/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-slots/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-slots/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-slots/locale/ui.en.json +4 -0
- package/lib/node_modules/@pneuma/ui-slots/locale/ui.zh.json +4 -0
- package/lib/node_modules/@pneuma/ui-slots/package.json +33 -0
- package/lib/node_modules/@pneuma/ui-status/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-status/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-status/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-status/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-status/locale/ui.en.json +134 -0
- package/lib/node_modules/@pneuma/ui-status/locale/ui.zh.json +134 -0
- package/lib/node_modules/@pneuma/ui-status/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-statusbar/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-statusbar/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-statusbar/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-statusbar/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-statusbar/locale/ui.en.json +33 -0
- package/lib/node_modules/@pneuma/ui-statusbar/locale/ui.zh.json +33 -0
- package/lib/node_modules/@pneuma/ui-statusbar/package.json +44 -0
- package/lib/node_modules/@pneuma/ui-superagent/cordis.patch.yml +10 -0
- package/lib/node_modules/@pneuma/ui-superagent/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-superagent/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-superagent/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-superagent/locale/ui.en.json +117 -0
- package/lib/node_modules/@pneuma/ui-superagent/locale/ui.zh.json +117 -0
- package/lib/node_modules/@pneuma/ui-superagent/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-tasks/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-tasks/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-tasks/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-tasks/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-tasks/locale/ui.en.json +22 -0
- package/lib/node_modules/@pneuma/ui-tasks/locale/ui.zh.json +22 -0
- package/lib/node_modules/@pneuma/ui-tasks/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-team/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-team/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-team/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-team/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-team/locale/ui.en.json +19 -0
- package/lib/node_modules/@pneuma/ui-team/locale/ui.zh.json +19 -0
- package/lib/node_modules/@pneuma/ui-team/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-terminal/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-terminal/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-terminal/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-terminal/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-terminal/locale/ui.en.json +9 -0
- package/lib/node_modules/@pneuma/ui-terminal/locale/ui.zh.json +9 -0
- package/lib/node_modules/@pneuma/ui-terminal/package.json +43 -0
- package/lib/node_modules/@pneuma/ui-trace/cordis.patch.yml +5 -0
- package/lib/node_modules/@pneuma/ui-trace/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-trace/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-trace/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-trace/locale/ui.en.json +118 -0
- package/lib/node_modules/@pneuma/ui-trace/locale/ui.zh.json +118 -0
- package/lib/node_modules/@pneuma/ui-trace/package.json +46 -0
- package/lib/node_modules/@pneuma/ui-transcript/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/ui-transcript/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/ui-transcript/index.js +1 -0
- package/lib/node_modules/@pneuma/ui-transcript/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/ui-transcript/locale/ui.en.json +281 -0
- package/lib/node_modules/@pneuma/ui-transcript/locale/ui.zh.json +281 -0
- package/lib/node_modules/@pneuma/ui-transcript/package.json +43 -0
- package/lib/node_modules/@pneuma/waiting/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/waiting/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/waiting/index.js +1 -0
- package/lib/node_modules/@pneuma/waiting/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/waiting/package.json +38 -0
- package/lib/node_modules/@pneuma/web-fetch/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/web-fetch/html.d.ts +1 -0
- package/lib/node_modules/@pneuma/web-fetch/html.js +1 -0
- package/lib/node_modules/@pneuma/web-fetch/http.d.ts +1 -0
- package/lib/node_modules/@pneuma/web-fetch/http.js +1 -0
- package/lib/node_modules/@pneuma/web-fetch/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/web-fetch/index.js +1 -0
- package/lib/node_modules/@pneuma/web-fetch/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/web-fetch/locale/ui.en.json +14 -0
- package/lib/node_modules/@pneuma/web-fetch/locale/ui.zh.json +14 -0
- package/lib/node_modules/@pneuma/web-fetch/package.json +40 -0
- package/lib/node_modules/@pneuma/web-search/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/web-search/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/web-search/index.js +1 -0
- package/lib/node_modules/@pneuma/web-search/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/web-search/locale/ui.en.json +30 -0
- package/lib/node_modules/@pneuma/web-search/locale/ui.zh.json +30 -0
- package/lib/node_modules/@pneuma/web-search/package.json +40 -0
- package/lib/node_modules/@pneuma/webserver/cordis.patch.yml +4 -0
- package/lib/node_modules/@pneuma/webserver/index.d.ts +1 -0
- package/lib/node_modules/@pneuma/webserver/index.js +1 -0
- package/lib/node_modules/@pneuma/webserver/locale/en.json +4 -0
- package/lib/node_modules/@pneuma/webserver/package.json +38 -0
- package/lib/packages/agent/cache-probe.d.ts +56 -0
- package/lib/packages/agent/cache-probe.js +169 -0
- package/lib/packages/agent/index.d.ts +21 -0
- package/lib/packages/agent/index.js +511 -0
- package/lib/packages/agent/locale/en.json +4 -0
- package/lib/packages/approval/approval.d.ts +11 -0
- package/lib/packages/approval/approval.js +11 -0
- package/lib/packages/approval/call-meaning.js +347 -0
- package/lib/packages/approval/index.d.ts +26 -0
- package/lib/packages/approval/index.js +1413 -0
- package/lib/packages/approval/locale/en.json +4 -0
- package/lib/packages/approval-floor/approval-floor.d.ts +192 -0
- package/lib/packages/approval-floor/approval-floor.js +851 -0
- package/lib/packages/approval-floor/index.js +236 -0
- package/lib/packages/approval-floor/locale/en.json +4 -0
- package/lib/packages/approval-floor/locale/ui.en.json +28 -0
- package/lib/packages/approval-floor/locale/ui.zh.json +28 -0
- package/lib/packages/ask/index.js +298 -0
- package/lib/packages/ask/locale/en.json +4 -0
- package/lib/packages/browser/index.d.ts +72 -0
- package/lib/packages/browser/index.js +1286 -0
- package/lib/packages/browser/locale/en.json +4 -0
- package/lib/packages/browser/locale/ui.en.json +61 -0
- package/lib/packages/browser/locale/ui.zh.json +61 -0
- package/lib/packages/cdp/actions.js +655 -0
- package/lib/packages/cdp/cloud-metadata.d.ts +9 -0
- package/lib/packages/cdp/cloud-metadata.js +16 -0
- package/lib/packages/cdp/index.d.ts +21 -0
- package/lib/packages/cdp/index.js +21 -0
- package/lib/packages/cdp/launch.js +491 -0
- package/lib/packages/cdp/locale/en.json +4 -0
- package/lib/packages/cdp/report.d.ts +42 -0
- package/lib/packages/cdp/report.js +76 -0
- package/lib/packages/cdp/ring-buffer.d.ts +25 -0
- package/lib/packages/cdp/ring-buffer.js +44 -0
- package/lib/packages/cdp/snapshot.d.ts +139 -0
- package/lib/packages/cdp/snapshot.js +312 -0
- package/lib/packages/cdp/transport.d.ts +147 -0
- package/lib/packages/cdp/transport.js +359 -0
- package/lib/packages/checkpoint/index.d.ts +21 -0
- package/lib/packages/checkpoint/index.js +360 -0
- package/lib/packages/checkpoint/locale/en.json +4 -0
- package/lib/packages/checkpoint/locale/ui.en.json +15 -0
- package/lib/packages/checkpoint/locale/ui.zh.json +15 -0
- package/lib/packages/checkpoint/shadow.d.ts +166 -0
- package/lib/packages/checkpoint/shadow.js +832 -0
- package/lib/packages/cli/config-cli.js +89 -0
- package/lib/packages/cli/index.d.ts +20 -0
- package/lib/packages/cli/index.js +18 -0
- package/lib/packages/cli/locale/en.json +4 -0
- package/lib/packages/cli/plugin-cli.js +626 -0
- package/lib/packages/cli/pnpm-builds.d.ts +26 -0
- package/lib/packages/cli/pnpm-builds.js +68 -0
- package/lib/packages/commands/index.d.ts +28 -0
- package/lib/packages/commands/index.js +620 -0
- package/lib/packages/commands/locale/en.json +4 -0
- package/lib/packages/commands/session-export.d.ts +18 -0
- package/lib/packages/commands/session-export.js +73 -0
- package/lib/packages/commands-core/commands-completion.d.ts +106 -0
- package/lib/packages/commands-core/index.d.ts +16 -0
- package/lib/packages/commands-core/index.js +16 -0
- package/lib/packages/commands-core/locale/en.json +4 -0
- package/lib/packages/compact/index.d.ts +21 -0
- package/lib/packages/compact/index.js +457 -0
- package/lib/packages/compact/locale/en.json +4 -0
- package/lib/packages/compact/locale/ui.en.json +24 -0
- package/lib/packages/compact/locale/ui.zh.json +24 -0
- package/lib/packages/computer-use/desktop-control.d.ts +298 -0
- package/lib/packages/computer-use/desktop-control.js +1309 -0
- package/lib/packages/computer-use/index.d.ts +47 -0
- package/lib/packages/computer-use/index.js +564 -0
- package/lib/packages/computer-use/locale/en.json +4 -0
- package/lib/packages/computer-use/locale/ui.en.json +41 -0
- package/lib/packages/computer-use/locale/ui.zh.json +41 -0
- package/lib/packages/config-core/index.d.ts +15 -0
- package/lib/packages/config-core/index.js +15 -0
- package/lib/packages/config-core/locale/en.json +4 -0
- package/lib/packages/config-core/market.d.ts +107 -0
- package/lib/packages/config-core/market.js +730 -0
- package/lib/packages/config-core/presets.d.ts +104 -0
- package/lib/packages/config-core/presets.js +423 -0
- package/lib/packages/desktop-dock/index.d.ts +13 -0
- package/lib/packages/desktop-dock/index.js +719 -0
- package/lib/packages/desktop-dock/locale/en.json +4 -0
- package/lib/packages/desktop-dock/locale/ui.en.json +11 -0
- package/lib/packages/desktop-dock/locale/ui.zh.json +11 -0
- package/lib/packages/dock-browser/index.d.ts +38 -0
- package/lib/packages/dock-browser/index.js +898 -0
- package/lib/packages/dock-browser/locale/en.json +4 -0
- package/lib/packages/dock-browser/locale/ui.en.json +10 -0
- package/lib/packages/dock-browser/locale/ui.zh.json +10 -0
- package/lib/packages/doctor/bundle.d.ts +93 -0
- package/lib/packages/doctor/bundle.js +159 -0
- package/lib/packages/doctor/checks/data.d.ts +19 -0
- package/lib/packages/doctor/checks/data.js +143 -0
- package/lib/packages/doctor/checks/ecosystem.d.ts +12 -0
- package/lib/packages/doctor/checks/ecosystem.js +125 -0
- package/lib/packages/doctor/checks/environment.d.ts +9 -0
- package/lib/packages/doctor/checks/environment.js +130 -0
- package/lib/packages/doctor/checks/util.d.ts +27 -0
- package/lib/packages/doctor/checks/util.js +100 -0
- package/lib/packages/doctor/index.d.ts +26 -0
- package/lib/packages/doctor/index.js +168 -0
- package/lib/packages/doctor/locale/en.json +4 -0
- package/lib/packages/dsh-compat/index.js +44 -0
- package/lib/packages/dsh-compat/locale/en.json +4 -0
- package/lib/packages/git/index.js +177 -0
- package/lib/packages/git/locale/en.json +4 -0
- package/lib/packages/goal/goal.d.ts +77 -0
- package/lib/packages/goal/index.d.ts +22 -0
- package/lib/packages/goal/index.js +333 -0
- package/lib/packages/goal/locale/en.json +4 -0
- package/lib/packages/goal/locale/ui.en.json +10 -0
- package/lib/packages/goal/locale/ui.zh.json +10 -0
- package/lib/packages/guards/index.js +22 -0
- package/lib/packages/guards/locale/en.json +4 -0
- package/lib/packages/hooks/index.d.ts +26 -0
- package/lib/packages/hooks/index.js +966 -0
- package/lib/packages/hooks/lifecycle-hooks.d.ts +217 -0
- package/lib/packages/hooks/lifecycle-hooks.js +608 -0
- package/lib/packages/hooks/locale/en.json +4 -0
- package/lib/packages/hooks/locale/ui.en.json +111 -0
- package/lib/packages/hooks/locale/ui.zh.json +111 -0
- package/lib/packages/host-stdio/index.d.ts +88 -0
- package/lib/packages/host-stdio/index.js +330 -0
- package/lib/packages/host-stdio/locale/en.json +4 -0
- package/lib/packages/image-diet/index.js +92 -0
- package/lib/packages/image-diet/locale/en.json +4 -0
- package/lib/packages/image-diet/locale/ui.en.json +14 -0
- package/lib/packages/image-diet/locale/ui.zh.json +14 -0
- package/lib/packages/llm/index.d.ts +13 -0
- package/lib/packages/llm/index.js +275 -0
- package/lib/packages/llm/locale/en.json +4 -0
- package/lib/packages/log/filter.d.ts +37 -0
- package/lib/packages/log/filter.js +43 -0
- package/lib/packages/log/index.d.ts +30 -0
- package/lib/packages/log/index.js +311 -0
- package/lib/packages/log/locale/en.json +4 -0
- package/lib/packages/log/locale/ui.en.json +30 -0
- package/lib/packages/log/locale/ui.zh.json +30 -0
- package/lib/packages/log/sink.d.ts +91 -0
- package/lib/packages/log/sink.js +286 -0
- package/lib/packages/lsp/client.js +703 -0
- package/lib/packages/lsp/index.d.ts +54 -0
- package/lib/packages/lsp/index.js +616 -0
- package/lib/packages/lsp/locale/en.json +4 -0
- package/lib/packages/lsp/locale/ui.en.json +17 -0
- package/lib/packages/lsp/locale/ui.zh.json +17 -0
- package/lib/packages/lsp/manager.js +418 -0
- package/lib/packages/lsp/normalize.js +134 -0
- package/lib/packages/lsp/servers.js +349 -0
- package/lib/packages/mcp/index.js +717 -0
- package/lib/packages/mcp/locale/en.json +4 -0
- package/lib/packages/mcp/locale/ui.en.json +28 -0
- package/lib/packages/mcp/locale/ui.zh.json +28 -0
- package/lib/packages/mcp/mcp.d.ts +207 -0
- package/lib/packages/mcp/mcp.js +807 -0
- package/lib/packages/memory/index.d.ts +36 -0
- package/lib/packages/memory/index.js +930 -0
- package/lib/packages/memory/locale/en.json +4 -0
- package/lib/packages/memory/locale/ui.en.json +67 -0
- package/lib/packages/memory/locale/ui.zh.json +67 -0
- package/lib/packages/memory/memory.d.ts +187 -0
- package/lib/packages/memory/memory.js +704 -0
- package/lib/packages/microcompact/index.d.ts +31 -0
- package/lib/packages/microcompact/index.js +261 -0
- package/lib/packages/microcompact/locale/en.json +4 -0
- package/lib/packages/microcompact/locale/ui.en.json +20 -0
- package/lib/packages/microcompact/locale/ui.zh.json +20 -0
- package/lib/packages/microcompact/microcompact.d.ts +142 -0
- package/lib/packages/microcompact/microcompact.js +268 -0
- package/lib/packages/mode/index.d.ts +18 -0
- package/lib/packages/mode/index.js +138 -0
- package/lib/packages/mode/locale/en.json +4 -0
- package/lib/packages/ops/index.d.ts +36 -0
- package/lib/packages/ops/index.js +187 -0
- package/lib/packages/ops/locale/en.json +4 -0
- package/lib/packages/ops/locale/ui.en.json +21 -0
- package/lib/packages/ops/locale/ui.zh.json +21 -0
- package/lib/packages/ops/render.d.ts +43 -0
- package/lib/packages/ops/render.js +324 -0
- package/lib/packages/ops/tools.d.ts +17 -0
- package/lib/packages/ops/tools.js +640 -0
- package/lib/packages/ops/worker.d.ts +63 -0
- package/lib/packages/ops/worker.js +294 -0
- package/lib/packages/permission-core/index.d.ts +15 -0
- package/lib/packages/permission-core/index.js +15 -0
- package/lib/packages/permission-core/locale/en.json +4 -0
- package/lib/packages/permission-core/permission-presets.d.ts +71 -0
- package/lib/packages/permission-core/permission-scope.d.ts +65 -0
- package/lib/packages/permission-presets/index.d.ts +19 -0
- package/lib/packages/permission-presets/index.js +176 -0
- package/lib/packages/permission-presets/locale/en.json +4 -0
- package/lib/packages/permission-presets/locale/ui.en.json +10 -0
- package/lib/packages/permission-presets/locale/ui.zh.json +10 -0
- package/lib/packages/plan/index.js +261 -0
- package/lib/packages/plan/locale/en.json +4 -0
- package/lib/packages/plugin-manager/index.js +217 -0
- package/lib/packages/plugin-manager/locale/en.json +4 -0
- package/lib/packages/presets/index.js +243 -0
- package/lib/packages/presets/locale/en.json +4 -0
- package/lib/packages/presets/locale/ui.en.json +10 -0
- package/lib/packages/presets/locale/ui.zh.json +10 -0
- package/lib/packages/prompt/index.d.ts +25 -0
- package/lib/packages/prompt/index.js +441 -0
- package/lib/packages/prompt/locale/en.json +4 -0
- package/lib/packages/prompt/tool-result-prune.d.ts +93 -0
- package/lib/packages/prompt/tool-result-prune.js +212 -0
- package/lib/packages/ptc/index.js +377 -0
- package/lib/packages/ptc/locale/en.json +4 -0
- package/lib/packages/remote/http.d.ts +11 -0
- package/lib/packages/remote/http.js +11 -0
- package/lib/packages/remote/index.d.ts +17 -0
- package/lib/packages/remote/index.js +1189 -0
- package/lib/packages/remote/locale/en.json +4 -0
- package/lib/packages/remote/locale/ui.en.json +76 -0
- package/lib/packages/remote/locale/ui.zh.json +76 -0
- package/lib/packages/remote/routes.js +384 -0
- package/lib/packages/remote/types.d.ts +135 -0
- package/lib/packages/remote/types.js +102 -0
- package/lib/packages/runtime/index.js +678 -0
- package/lib/packages/runtime/locale/en.json +4 -0
- package/lib/packages/runtime-api/index.js +126 -0
- package/lib/packages/runtime-api/inspect.d.ts +29 -0
- package/lib/packages/runtime-api/inspect.js +73 -0
- package/lib/packages/runtime-api/locale/en.json +4 -0
- package/lib/packages/sandbox/backends.d.ts +64 -0
- package/lib/packages/sandbox/execpolicy.d.ts +74 -0
- package/lib/packages/sandbox/execpolicy.js +244 -0
- package/lib/packages/sandbox/index.js +1132 -0
- package/lib/packages/sandbox/locale/en.json +4 -0
- package/lib/packages/sandbox/locale/ui.en.json +78 -0
- package/lib/packages/sandbox/locale/ui.zh.json +78 -0
- package/lib/packages/sandbox/net-proxy.js +202 -0
- package/lib/packages/sandbox/policy.d.ts +294 -0
- package/lib/packages/sandbox/policy.js +674 -0
- package/lib/packages/sandbox/review.d.ts +141 -0
- package/lib/packages/sandbox/review.js +348 -0
- package/lib/packages/sandbox/win/account.js +203 -0
- package/lib/packages/sandbox/win/backend.d.ts +107 -0
- package/lib/packages/sandbox/win/backend.js +425 -0
- package/lib/packages/sandbox/win/doctor.js +269 -0
- package/lib/packages/sandbox/win/ffi.d.ts +116 -0
- package/lib/packages/sandbox/win/ffi.js +185 -0
- package/lib/packages/sandbox/win/interpreter.d.ts +44 -0
- package/lib/packages/sandbox/win/interpreter.js +47 -0
- package/lib/packages/sandbox/win/runner-entry.d.ts +61 -0
- package/lib/packages/sandbox/win/runner-entry.js +898 -0
- package/lib/packages/sandbox/win/setup.d.ts +134 -0
- package/lib/packages/sandbox/win/setup.js +1384 -0
- package/lib/packages/sandbox/win/sweep.d.ts +36 -0
- package/lib/packages/sandbox/win/sweep.js +115 -0
- package/lib/packages/sandbox/win/wfp.js +197 -0
- package/lib/packages/schedule/index.d.ts +41 -0
- package/lib/packages/schedule/index.js +612 -0
- package/lib/packages/schedule/locale/en.json +4 -0
- package/lib/packages/schedule/locale/ui.en.json +29 -0
- package/lib/packages/schedule/locale/ui.zh.json +29 -0
- package/lib/packages/self-improve/index.d.ts +140 -0
- package/lib/packages/self-improve/index.js +1312 -0
- package/lib/packages/self-improve/ledger.d.ts +75 -0
- package/lib/packages/self-improve/ledger.js +364 -0
- package/lib/packages/self-improve/locale/en.json +4 -0
- package/lib/packages/self-improve/locale/ui.en.json +31 -0
- package/lib/packages/self-improve/locale/ui.zh.json +31 -0
- package/lib/packages/self-improve/skill-write.d.ts +257 -0
- package/lib/packages/self-improve/skill-write.js +890 -0
- package/lib/packages/self-improve/store.js +266 -0
- package/lib/packages/session/index.js +383 -0
- package/lib/packages/session/locale/en.json +4 -0
- package/lib/packages/session-core/compact.d.ts +140 -0
- package/lib/packages/session-core/compact.js +282 -0
- package/lib/packages/session-core/hooks.d.ts +289 -0
- package/lib/packages/session-core/hooks.js +862 -0
- package/lib/packages/session-core/index.d.ts +20 -0
- package/lib/packages/session-core/index.js +20 -0
- package/lib/packages/session-core/locale/en.json +4 -0
- package/lib/packages/session-core/loop.d.ts +215 -0
- package/lib/packages/session-core/loop.js +726 -0
- package/lib/packages/session-core/modes.d.ts +72 -0
- package/lib/packages/session-core/modes.js +152 -0
- package/lib/packages/session-core/prompt.d.ts +124 -0
- package/lib/packages/session-core/prompt.js +436 -0
- package/lib/packages/session-search/index.js +323 -0
- package/lib/packages/session-search/locale/en.json +4 -0
- package/lib/packages/session-search/locale/ui.en.json +29 -0
- package/lib/packages/session-search/locale/ui.zh.json +29 -0
- package/lib/packages/session-search/session-index.js +849 -0
- package/lib/packages/session-title/index.js +109 -0
- package/lib/packages/session-title/locale/en.json +4 -0
- package/lib/packages/settings/connection-test.d.ts +60 -0
- package/lib/packages/settings/connection-test.js +84 -0
- package/lib/packages/settings/index.d.ts +3 -0
- package/lib/packages/settings/index.js +689 -0
- package/lib/packages/settings/locale/en.json +4 -0
- package/lib/packages/settings/locale/ui.en.json +94 -0
- package/lib/packages/settings/locale/ui.zh.json +94 -0
- package/lib/packages/skills/index.d.ts +13 -0
- package/lib/packages/skills/index.js +499 -0
- package/lib/packages/skills/locale/en.json +4 -0
- package/lib/packages/spill/index.js +223 -0
- package/lib/packages/spill/locale/en.json +4 -0
- package/lib/packages/spill/locale/ui.en.json +31 -0
- package/lib/packages/spill/locale/ui.zh.json +31 -0
- package/lib/packages/subagent/agent-roles.d.ts +78 -0
- package/lib/packages/subagent/agent-roles.js +425 -0
- package/lib/packages/subagent/board-snapshot.d.ts +114 -0
- package/lib/packages/subagent/board-snapshot.js +194 -0
- package/lib/packages/subagent/index.d.ts +133 -0
- package/lib/packages/subagent/index.js +2414 -0
- package/lib/packages/subagent/locale/en.json +4 -0
- package/lib/packages/subagent/locale/ui.en.json +51 -0
- package/lib/packages/subagent/locale/ui.zh.json +51 -0
- package/lib/packages/superagent/app/api.d.ts +99 -0
- package/lib/packages/superagent/app/api.js +556 -0
- package/lib/packages/superagent/app/assessment.d.ts +573 -0
- package/lib/packages/superagent/app/assessment.js +303 -0
- package/lib/packages/superagent/app/cache.d.ts +22 -0
- package/lib/packages/superagent/app/cache.js +42 -0
- package/lib/packages/superagent/app/cards.d.ts +278 -0
- package/lib/packages/superagent/app/cards.js +103 -0
- package/lib/packages/superagent/app/context.d.ts +35 -0
- package/lib/packages/superagent/app/context.js +49 -0
- package/lib/packages/superagent/app/delivery.d.ts +118 -0
- package/lib/packages/superagent/app/delivery.js +189 -0
- package/lib/packages/superagent/app/effects.d.ts +97 -0
- package/lib/packages/superagent/app/effects.js +162 -0
- package/lib/packages/superagent/app/execution-environment.d.ts +42 -0
- package/lib/packages/superagent/app/execution-environment.js +47 -0
- package/lib/packages/superagent/app/links.d.ts +192 -0
- package/lib/packages/superagent/app/links.js +59 -0
- package/lib/packages/superagent/app/migration.d.ts +40 -0
- package/lib/packages/superagent/app/migration.js +674 -0
- package/lib/packages/superagent/app/notices.d.ts +60 -0
- package/lib/packages/superagent/app/notices.js +128 -0
- package/lib/packages/superagent/app/outbox.d.ts +39 -0
- package/lib/packages/superagent/app/outbox.js +50 -0
- package/lib/packages/superagent/app/passes.d.ts +44 -0
- package/lib/packages/superagent/app/passes.js +65 -0
- package/lib/packages/superagent/app/prompts.d.ts +220 -0
- package/lib/packages/superagent/app/prompts.js +259 -0
- package/lib/packages/superagent/app/resources.d.ts +41 -0
- package/lib/packages/superagent/app/resources.js +394 -0
- package/lib/packages/superagent/app/retry-health.d.ts +36 -0
- package/lib/packages/superagent/app/retry-health.js +112 -0
- package/lib/packages/superagent/app/role-models.d.ts +45 -0
- package/lib/packages/superagent/app/role-models.js +26 -0
- package/lib/packages/superagent/app/runtime.d.ts +94 -0
- package/lib/packages/superagent/app/runtime.js +331 -0
- package/lib/packages/superagent/app/sessions.d.ts +275 -0
- package/lib/packages/superagent/app/sessions.js +676 -0
- package/lib/packages/superagent/app/settings-history.d.ts +34 -0
- package/lib/packages/superagent/app/settings-history.js +105 -0
- package/lib/packages/superagent/app/settings.d.ts +198 -0
- package/lib/packages/superagent/app/settings.js +260 -0
- package/lib/packages/superagent/app/setup.d.ts +67 -0
- package/lib/packages/superagent/app/setup.js +98 -0
- package/lib/packages/superagent/app/skill-files.d.ts +19 -0
- package/lib/packages/superagent/app/skill-files.js +54 -0
- package/lib/packages/superagent/app/source-context.d.ts +46 -0
- package/lib/packages/superagent/app/source-context.js +48 -0
- package/lib/packages/superagent/app/store-read.d.ts +69 -0
- package/lib/packages/superagent/app/store-read.js +75 -0
- package/lib/packages/superagent/app/store.d.ts +179 -0
- package/lib/packages/superagent/app/store.js +384 -0
- package/lib/packages/superagent/app/tools/executor.d.ts +16 -0
- package/lib/packages/superagent/app/tools/executor.js +114 -0
- package/lib/packages/superagent/app/tools/main.d.ts +47 -0
- package/lib/packages/superagent/app/tools/main.js +286 -0
- package/lib/packages/superagent/app/tools/tool.d.ts +28 -0
- package/lib/packages/superagent/app/tools/tool.js +36 -0
- package/lib/packages/superagent/app/versions.d.ts +35 -0
- package/lib/packages/superagent/app/versions.js +36 -0
- package/lib/packages/superagent/app/views/overview.d.ts +327 -0
- package/lib/packages/superagent/app/views/overview.js +91 -0
- package/lib/packages/superagent/app/views/records.d.ts +478 -0
- package/lib/packages/superagent/app/views/records.js +203 -0
- package/lib/packages/superagent/app/views/settings.d.ts +111 -0
- package/lib/packages/superagent/app/views/settings.js +50 -0
- package/lib/packages/superagent/app/views/sources.d.ts +97 -0
- package/lib/packages/superagent/app/views/sources.js +70 -0
- package/lib/packages/superagent/app/views/text.d.ts +6 -0
- package/lib/packages/superagent/app/views/text.js +53 -0
- package/lib/packages/superagent/app/views/threads.d.ts +582 -0
- package/lib/packages/superagent/app/views/threads.js +117 -0
- package/lib/packages/superagent/app/views/tickets.d.ts +1852 -0
- package/lib/packages/superagent/app/views/tickets.js +96 -0
- package/lib/packages/superagent/core/admission.d.ts +17 -0
- package/lib/packages/superagent/core/admission.js +4 -0
- package/lib/packages/superagent/core/assignments.d.ts +53 -0
- package/lib/packages/superagent/core/assignments.js +160 -0
- package/lib/packages/superagent/core/engine.d.ts +191 -0
- package/lib/packages/superagent/core/engine.js +244 -0
- package/lib/packages/superagent/core/errors.d.ts +58 -0
- package/lib/packages/superagent/core/errors.js +63 -0
- package/lib/packages/superagent/core/evals.d.ts +99 -0
- package/lib/packages/superagent/core/evals.js +381 -0
- package/lib/packages/superagent/core/ids.d.ts +1 -0
- package/lib/packages/superagent/core/ids.js +5 -0
- package/lib/packages/superagent/core/index.d.ts +9 -0
- package/lib/packages/superagent/core/index.js +9 -0
- package/lib/packages/superagent/core/intake.d.ts +15 -0
- package/lib/packages/superagent/core/intake.js +68 -0
- package/lib/packages/superagent/core/limits.d.ts +26 -0
- package/lib/packages/superagent/core/limits.js +11 -0
- package/lib/packages/superagent/core/memory.d.ts +40 -0
- package/lib/packages/superagent/core/memory.js +51 -0
- package/lib/packages/superagent/core/model.d.ts +432 -0
- package/lib/packages/superagent/core/model.js +79 -0
- package/lib/packages/superagent/core/part.d.ts +49 -0
- package/lib/packages/superagent/core/part.js +71 -0
- package/lib/packages/superagent/core/policy.d.ts +187 -0
- package/lib/packages/superagent/core/policy.js +244 -0
- package/lib/packages/superagent/core/ports.d.ts +217 -0
- package/lib/packages/superagent/core/ports.js +1 -0
- package/lib/packages/superagent/core/reasons.d.ts +36 -0
- package/lib/packages/superagent/core/reasons.js +35 -0
- package/lib/packages/superagent/core/replies.d.ts +55 -0
- package/lib/packages/superagent/core/replies.js +94 -0
- package/lib/packages/superagent/core/stage.d.ts +18 -0
- package/lib/packages/superagent/core/stage.js +27 -0
- package/lib/packages/superagent/core/tickets.d.ts +151 -0
- package/lib/packages/superagent/core/tickets.js +487 -0
- package/lib/packages/superagent/deployment.d.ts +54 -0
- package/lib/packages/superagent/deployment.js +160 -0
- package/lib/packages/superagent/executor/background.d.ts +93 -0
- package/lib/packages/superagent/executor/background.js +192 -0
- package/lib/packages/superagent/executor/dsh.d.ts +304 -0
- package/lib/packages/superagent/executor/dsh.js +776 -0
- package/lib/packages/superagent/host/command.d.ts +89 -0
- package/lib/packages/superagent/host/command.js +198 -0
- package/lib/packages/superagent/host/health.d.ts +45 -0
- package/lib/packages/superagent/host/health.js +355 -0
- package/lib/packages/superagent/host/settings-section.d.ts +32 -0
- package/lib/packages/superagent/host/settings-section.js +528 -0
- package/lib/packages/superagent/index.d.ts +82 -0
- package/lib/packages/superagent/index.js +140 -0
- package/lib/packages/superagent/infra/commands.d.ts +55 -0
- package/lib/packages/superagent/infra/commands.js +144 -0
- package/lib/packages/superagent/infra/environment.d.ts +44 -0
- package/lib/packages/superagent/infra/environment.js +227 -0
- package/lib/packages/superagent/infra/health.d.ts +27 -0
- package/lib/packages/superagent/infra/health.js +29 -0
- package/lib/packages/superagent/infra/text.d.ts +10 -0
- package/lib/packages/superagent/infra/text.js +31 -0
- package/lib/packages/superagent/kv.d.ts +102 -0
- package/lib/packages/superagent/kv.js +44 -0
- package/lib/packages/superagent/locale/en.json +4 -0
- package/lib/packages/superagent/locale/ui.en.json +26 -0
- package/lib/packages/superagent/locale/ui.zh.json +26 -0
- package/lib/packages/superagent/paths.d.ts +21 -0
- package/lib/packages/superagent/paths.js +50 -0
- package/lib/packages/superagent/prompts/admission.md +68 -0
- package/lib/packages/superagent/prompts/cli.md +17 -0
- package/lib/packages/superagent/prompts/dispatch.md +59 -0
- package/lib/packages/superagent/prompts/handoff-orchestrator.md +4 -0
- package/lib/packages/superagent/prompts/handoff-worker.md +7 -0
- package/lib/packages/superagent/prompts/handoff.md +6 -0
- package/lib/packages/superagent/prompts/orchestrator.md +16 -0
- package/lib/packages/superagent/prompts/replies.md +35 -0
- package/lib/packages/superagent/prompts/shared.md +7 -0
- package/lib/packages/superagent/prompts/subscriptions.md +13 -0
- package/lib/packages/superagent/prompts/team/communication.md +97 -0
- package/lib/packages/superagent/prompts/team/delivery.md +28 -0
- package/lib/packages/superagent/prompts/team/scope.md +22 -0
- package/lib/packages/superagent/prompts/work.md +49 -0
- package/lib/packages/superagent/prompts/worker.md +10 -0
- package/lib/packages/superagent/setup.d.ts +37 -0
- package/lib/packages/superagent/setup.js +46 -0
- package/lib/packages/superagent/skills/dsh-superagent-feishu/SKILL.md +12 -0
- package/lib/packages/superagent/skills/dsh-superagent-github/SKILL.md +14 -0
- package/lib/packages/superagent/sources/admission-context.d.ts +43 -0
- package/lib/packages/superagent/sources/admission-context.js +42 -0
- package/lib/packages/superagent/sources/feishu-channel.d.ts +20 -0
- package/lib/packages/superagent/sources/feishu-channel.js +33 -0
- package/lib/packages/superagent/sources/feishu-image.d.ts +12 -0
- package/lib/packages/superagent/sources/feishu-image.js +81 -0
- package/lib/packages/superagent/sources/feishu-loops.d.ts +18 -0
- package/lib/packages/superagent/sources/feishu-loops.js +330 -0
- package/lib/packages/superagent/sources/feishu-read.d.ts +81 -0
- package/lib/packages/superagent/sources/feishu-read.js +183 -0
- package/lib/packages/superagent/sources/feishu-trigger.d.ts +95 -0
- package/lib/packages/superagent/sources/feishu-trigger.js +96 -0
- package/lib/packages/superagent/sources/feishu.d.ts +56 -0
- package/lib/packages/superagent/sources/feishu.js +164 -0
- package/lib/packages/superagent/sources/github-channel.d.ts +6 -0
- package/lib/packages/superagent/sources/github-channel.js +62 -0
- package/lib/packages/superagent/sources/github-pull.d.ts +82 -0
- package/lib/packages/superagent/sources/github-pull.js +112 -0
- package/lib/packages/superagent/sources/github-read.d.ts +54 -0
- package/lib/packages/superagent/sources/github-read.js +184 -0
- package/lib/packages/superagent/sources/github-trigger.d.ts +140 -0
- package/lib/packages/superagent/sources/github-trigger.js +107 -0
- package/lib/packages/superagent/sources/github.d.ts +52 -0
- package/lib/packages/superagent/sources/github.js +559 -0
- package/lib/packages/superagent/sources/host.d.ts +101 -0
- package/lib/packages/superagent/sources/host.js +13 -0
- package/lib/packages/superagent/sources/kind.d.ts +229 -0
- package/lib/packages/superagent/sources/kind.js +1 -0
- package/lib/packages/superagent/sources/poll.d.ts +21 -0
- package/lib/packages/superagent/sources/poll.js +53 -0
- package/lib/packages/superagent/sources/registry.d.ts +402 -0
- package/lib/packages/superagent/sources/registry.js +162 -0
- package/lib/packages/superagent-webhook/index.d.ts +47 -0
- package/lib/packages/superagent-webhook/index.js +83 -0
- package/lib/packages/superagent-webhook/locale/en.json +4 -0
- package/lib/packages/superagent-webhook/tests/settings-contract.d.ts +34 -0
- package/lib/packages/superagent-webhook/tests/settings-contract.js +66 -0
- package/lib/packages/superagent-webhook/webhook.d.ts +87 -0
- package/lib/packages/superagent-webhook/webhook.js +199 -0
- package/lib/packages/surfaces/index.d.ts +11 -0
- package/lib/packages/surfaces/index.js +20 -0
- package/lib/packages/surfaces/locale/en.json +4 -0
- package/lib/packages/todo/index.d.ts +21 -0
- package/lib/packages/todo/index.js +351 -0
- package/lib/packages/todo/locale/en.json +4 -0
- package/lib/packages/todo/locale/ui.en.json +11 -0
- package/lib/packages/todo/locale/ui.zh.json +11 -0
- package/lib/packages/todo/todo.d.ts +73 -0
- package/lib/packages/tool-search/index.js +474 -0
- package/lib/packages/tool-search/locale/en.json +4 -0
- package/lib/packages/tool-search/locale/ui.en.json +36 -0
- package/lib/packages/tool-search/locale/ui.zh.json +36 -0
- package/lib/packages/tool-search/tool-search.d.ts +153 -0
- package/lib/packages/tools/locale/en.json +4 -0
- package/lib/packages/tools-default/bash.d.ts +332 -0
- package/lib/packages/tools-default/bash.js +1139 -0
- package/lib/packages/tools-default/image-tool.d.ts +2 -0
- package/lib/packages/tools-default/image-tool.js +59 -0
- package/lib/packages/tools-default/index.js +407 -0
- package/lib/packages/tools-default/locale/en.json +4 -0
- package/lib/packages/tools-default/locale/ui.en.json +27 -0
- package/lib/packages/tools-default/locale/ui.zh.json +27 -0
- package/lib/packages/tools-default/persistent-shell.d.ts +79 -0
- package/lib/packages/tools-default/persistent-shell.js +247 -0
- package/lib/packages/tools-default/search-tools.d.ts +40 -0
- package/lib/packages/tools-default/search-tools.js +484 -0
- package/lib/packages/transcript/index.d.ts +48 -0
- package/lib/packages/transcript/index.js +436 -0
- package/lib/packages/transcript/locale/en.json +4 -0
- package/lib/packages/tui/app/AgentsOverlay.d.ts +18 -0
- package/lib/packages/tui/app/App.d.ts +21 -0
- package/lib/packages/tui/app/App.js +1788 -0
- package/lib/packages/tui/app/ApprovalCard.d.ts +12 -0
- package/lib/packages/tui/app/ApprovalCard.js +82 -0
- package/lib/packages/tui/app/AskCard.d.ts +20 -0
- package/lib/packages/tui/app/ChatView.d.ts +67 -0
- package/lib/packages/tui/app/ChatView.js +314 -0
- package/lib/packages/tui/app/Composer.d.ts +56 -0
- package/lib/packages/tui/app/Composer.js +306 -0
- package/lib/packages/tui/app/DiffBlock.d.ts +6 -0
- package/lib/packages/tui/app/DiffBlock.js +39 -0
- package/lib/packages/tui/app/ModelPicker.d.ts +7 -0
- package/lib/packages/tui/app/PlanReviewCard.d.ts +13 -0
- package/lib/packages/tui/app/PresetPicker.d.ts +11 -0
- package/lib/packages/tui/app/SessionPicker.d.ts +43 -0
- package/lib/packages/tui/app/SettingsOverlay.d.ts +36 -0
- package/lib/packages/tui/app/SettingsOverlay.js +265 -0
- package/lib/packages/tui/app/SkillsPicker.d.ts +7 -0
- package/lib/packages/tui/app/StatusBar.d.ts +22 -0
- package/lib/packages/tui/app/StatusBar.js +189 -0
- package/lib/packages/tui/app/TaskStrips.d.ts +13 -0
- package/lib/packages/tui/app/TaskStrips.js +37 -0
- package/lib/packages/tui/app/ToolCard.d.ts +11 -0
- package/lib/packages/tui/app/ToolCard.js +62 -0
- package/lib/packages/tui/app/TranscriptOverlay.d.ts +27 -0
- package/lib/packages/tui/app/TranscriptViewport.d.ts +85 -0
- package/lib/packages/tui/app/TranscriptViewport.js +233 -0
- package/lib/packages/tui/app/Welcome.js +68 -0
- package/lib/packages/tui/app/clipboard-image.js +66 -0
- package/lib/packages/tui/app/display-width.d.ts +16 -0
- package/lib/packages/tui/app/display-width.js +33 -0
- package/lib/packages/tui/app/history-store.js +41 -0
- package/lib/packages/tui/app/image-blocks.js +125 -0
- package/lib/packages/tui/app/scroll-model.d.ts +240 -0
- package/lib/packages/tui/app/settings-model.d.ts +128 -0
- package/lib/packages/tui/app/settings-model.js +215 -0
- package/lib/packages/tui/app/snapshot-subscribe.js +110 -0
- package/lib/packages/tui/index.js +102 -0
- package/lib/packages/tui/locale/en.json +4 -0
- package/lib/packages/ui-actions/index.d.ts +27 -0
- package/lib/packages/ui-actions/index.js +27 -0
- package/lib/packages/ui-actions/locale/en.json +4 -0
- package/lib/packages/ui-actions/locale/ui.en.json +3 -0
- package/lib/packages/ui-actions/locale/ui.zh.json +3 -0
- package/lib/packages/ui-ask/index.d.ts +29 -0
- package/lib/packages/ui-ask/index.js +29 -0
- package/lib/packages/ui-ask/locale/en.json +4 -0
- package/lib/packages/ui-ask/locale/ui.en.json +28 -0
- package/lib/packages/ui-ask/locale/ui.zh.json +28 -0
- package/lib/packages/ui-boot/index.d.ts +13 -0
- package/lib/packages/ui-boot/index.js +1 -0
- package/lib/packages/ui-boot/locale/en.json +4 -0
- package/lib/packages/ui-boot/locale/ui.en.json +28 -0
- package/lib/packages/ui-boot/locale/ui.zh.json +28 -0
- package/lib/packages/ui-browser/index.d.ts +29 -0
- package/lib/packages/ui-browser/index.js +29 -0
- package/lib/packages/ui-browser/locale/en.json +4 -0
- package/lib/packages/ui-browser/locale/ui.en.json +17 -0
- package/lib/packages/ui-browser/locale/ui.zh.json +17 -0
- package/lib/packages/ui-composer/index.d.ts +28 -0
- package/lib/packages/ui-composer/index.js +28 -0
- package/lib/packages/ui-composer/locale/en.json +4 -0
- package/lib/packages/ui-composer/locale/ui.en.json +161 -0
- package/lib/packages/ui-composer/locale/ui.zh.json +161 -0
- package/lib/packages/ui-core/frames.js +144 -0
- package/lib/packages/ui-core/i18n.d.ts +33 -0
- package/lib/packages/ui-core/i18n.js +42 -0
- package/lib/packages/ui-core/index.d.ts +102 -0
- package/lib/packages/ui-core/index.js +93 -0
- package/lib/packages/ui-core/locale/en.json +4 -0
- package/lib/packages/ui-core/plugin.d.ts +168 -0
- package/lib/packages/ui-core/scoped-slots.d.ts +20 -0
- package/lib/packages/ui-core/slots-ink.d.ts +26 -0
- package/lib/packages/ui-core/slots-ink.js +78 -0
- package/lib/packages/ui-core/slots.d.ts +490 -0
- package/lib/packages/ui-core/tui-plugin-api.d.ts +23 -0
- package/lib/packages/ui-core/tui-plugin-api.js +23 -0
- package/lib/packages/ui-core/tui-plugins.d.ts +47 -0
- package/lib/packages/ui-core/tui-plugins.js +293 -0
- package/lib/packages/ui-dockkit/index.d.ts +13 -0
- package/lib/packages/ui-dockkit/index.js +13 -0
- package/lib/packages/ui-dockkit/locale/en.json +4 -0
- package/lib/packages/ui-dockkit/locale/ui.en.json +21 -0
- package/lib/packages/ui-dockkit/locale/ui.zh.json +21 -0
- package/lib/packages/ui-files/index.d.ts +27 -0
- package/lib/packages/ui-files/index.js +27 -0
- package/lib/packages/ui-files/locale/en.json +4 -0
- package/lib/packages/ui-files/locale/ui.en.json +43 -0
- package/lib/packages/ui-files/locale/ui.zh.json +43 -0
- package/lib/packages/ui-layout/index.d.ts +30 -0
- package/lib/packages/ui-layout/index.js +30 -0
- package/lib/packages/ui-layout/locale/en.json +4 -0
- package/lib/packages/ui-layout/locale/ui.en.json +112 -0
- package/lib/packages/ui-layout/locale/ui.zh.json +112 -0
- package/lib/packages/ui-palette/index.d.ts +27 -0
- package/lib/packages/ui-palette/index.js +27 -0
- package/lib/packages/ui-palette/locale/en.json +4 -0
- package/lib/packages/ui-palette/locale/ui.en.json +35 -0
- package/lib/packages/ui-palette/locale/ui.zh.json +35 -0
- package/lib/packages/ui-plugins/index.d.ts +27 -0
- package/lib/packages/ui-plugins/index.js +27 -0
- package/lib/packages/ui-plugins/locale/en.json +4 -0
- package/lib/packages/ui-plugins/locale/ui.en.json +134 -0
- package/lib/packages/ui-plugins/locale/ui.zh.json +134 -0
- package/lib/packages/ui-preview/index.d.ts +27 -0
- package/lib/packages/ui-preview/index.js +27 -0
- package/lib/packages/ui-preview/locale/en.json +4 -0
- package/lib/packages/ui-preview/locale/ui.en.json +29 -0
- package/lib/packages/ui-preview/locale/ui.zh.json +29 -0
- package/lib/packages/ui-primitives/index.d.ts +13 -0
- package/lib/packages/ui-primitives/index.js +13 -0
- package/lib/packages/ui-primitives/locale/en.json +4 -0
- package/lib/packages/ui-primitives/locale/ui.en.json +167 -0
- package/lib/packages/ui-primitives/locale/ui.zh.json +167 -0
- package/lib/packages/ui-prompt/index.d.ts +29 -0
- package/lib/packages/ui-prompt/index.js +29 -0
- package/lib/packages/ui-prompt/locale/en.json +4 -0
- package/lib/packages/ui-prompt/locale/ui.en.json +73 -0
- package/lib/packages/ui-prompt/locale/ui.zh.json +73 -0
- package/lib/packages/ui-renderer/index.d.ts +26 -0
- package/lib/packages/ui-renderer/index.js +26 -0
- package/lib/packages/ui-renderer/locale/en.json +4 -0
- package/lib/packages/ui-renderer/locale/ui.en.json +14 -0
- package/lib/packages/ui-renderer/locale/ui.zh.json +14 -0
- package/lib/packages/ui-runtime/index.d.ts +17 -0
- package/lib/packages/ui-runtime/index.js +17 -0
- package/lib/packages/ui-runtime/locale/en.json +4 -0
- package/lib/packages/ui-runtime/locale/ui.en.json +5 -0
- package/lib/packages/ui-runtime/locale/ui.zh.json +5 -0
- package/lib/packages/ui-sessions/index.d.ts +27 -0
- package/lib/packages/ui-sessions/index.js +27 -0
- package/lib/packages/ui-sessions/locale/en.json +4 -0
- package/lib/packages/ui-sessions/locale/ui.en.json +119 -0
- package/lib/packages/ui-sessions/locale/ui.zh.json +119 -0
- package/lib/packages/ui-settings/index.d.ts +29 -0
- package/lib/packages/ui-settings/index.js +29 -0
- package/lib/packages/ui-settings/locale/en.json +4 -0
- package/lib/packages/ui-settings/locale/ui.en.json +490 -0
- package/lib/packages/ui-settings/locale/ui.zh.json +490 -0
- package/lib/packages/ui-skills/index.d.ts +29 -0
- package/lib/packages/ui-skills/index.js +29 -0
- package/lib/packages/ui-skills/locale/en.json +4 -0
- package/lib/packages/ui-skills/locale/ui.en.json +93 -0
- package/lib/packages/ui-skills/locale/ui.zh.json +93 -0
- package/lib/packages/ui-slots/index.d.ts +13 -0
- package/lib/packages/ui-slots/index.js +13 -0
- package/lib/packages/ui-slots/locale/en.json +4 -0
- package/lib/packages/ui-slots/locale/ui.en.json +4 -0
- package/lib/packages/ui-slots/locale/ui.zh.json +4 -0
- package/lib/packages/ui-status/index.d.ts +27 -0
- package/lib/packages/ui-status/index.js +27 -0
- package/lib/packages/ui-status/locale/en.json +4 -0
- package/lib/packages/ui-status/locale/ui.en.json +134 -0
- package/lib/packages/ui-status/locale/ui.zh.json +134 -0
- package/lib/packages/ui-statusbar/index.d.ts +28 -0
- package/lib/packages/ui-statusbar/index.js +28 -0
- package/lib/packages/ui-statusbar/locale/en.json +4 -0
- package/lib/packages/ui-statusbar/locale/ui.en.json +33 -0
- package/lib/packages/ui-statusbar/locale/ui.zh.json +33 -0
- package/lib/packages/ui-superagent/index.d.ts +31 -0
- package/lib/packages/ui-superagent/index.js +31 -0
- package/lib/packages/ui-superagent/locale/en.json +4 -0
- package/lib/packages/ui-superagent/locale/ui.en.json +117 -0
- package/lib/packages/ui-superagent/locale/ui.zh.json +117 -0
- package/lib/packages/ui-tasks/index.d.ts +27 -0
- package/lib/packages/ui-tasks/index.js +27 -0
- package/lib/packages/ui-tasks/locale/en.json +4 -0
- package/lib/packages/ui-tasks/locale/ui.en.json +22 -0
- package/lib/packages/ui-tasks/locale/ui.zh.json +22 -0
- package/lib/packages/ui-team/index.d.ts +29 -0
- package/lib/packages/ui-team/index.js +29 -0
- package/lib/packages/ui-team/locale/en.json +4 -0
- package/lib/packages/ui-team/locale/ui.en.json +19 -0
- package/lib/packages/ui-team/locale/ui.zh.json +19 -0
- package/lib/packages/ui-terminal/index.d.ts +27 -0
- package/lib/packages/ui-terminal/index.js +27 -0
- package/lib/packages/ui-terminal/locale/en.json +4 -0
- package/lib/packages/ui-terminal/locale/ui.en.json +9 -0
- package/lib/packages/ui-terminal/locale/ui.zh.json +9 -0
- package/lib/packages/ui-trace/index.d.ts +28 -0
- package/lib/packages/ui-trace/index.js +28 -0
- package/lib/packages/ui-trace/locale/en.json +4 -0
- package/lib/packages/ui-trace/locale/ui.en.json +118 -0
- package/lib/packages/ui-trace/locale/ui.zh.json +118 -0
- package/lib/packages/ui-transcript/index.d.ts +30 -0
- package/lib/packages/ui-transcript/index.js +30 -0
- package/lib/packages/ui-transcript/locale/en.json +4 -0
- package/lib/packages/ui-transcript/locale/ui.en.json +281 -0
- package/lib/packages/ui-transcript/locale/ui.zh.json +281 -0
- package/lib/packages/waiting/index.d.ts +17 -0
- package/lib/packages/waiting/index.js +53 -0
- package/lib/packages/waiting/locale/en.json +4 -0
- package/lib/packages/web-fetch/html.d.ts +26 -0
- package/lib/packages/web-fetch/html.js +249 -0
- package/lib/packages/web-fetch/http.d.ts +97 -0
- package/lib/packages/web-fetch/http.js +252 -0
- package/lib/packages/web-fetch/index.d.ts +17 -0
- package/lib/packages/web-fetch/index.js +165 -0
- package/lib/packages/web-fetch/locale/en.json +4 -0
- package/lib/packages/web-fetch/locale/ui.en.json +14 -0
- package/lib/packages/web-fetch/locale/ui.zh.json +14 -0
- package/lib/packages/web-search/index.d.ts +15 -0
- package/lib/packages/web-search/index.js +521 -0
- package/lib/packages/web-search/locale/en.json +4 -0
- package/lib/packages/web-search/locale/ui.en.json +30 -0
- package/lib/packages/web-search/locale/ui.zh.json +30 -0
- package/lib/packages/webserver/index.d.ts +51 -0
- package/lib/packages/webserver/index.js +316 -0
- package/lib/packages/webserver/locale/en.json +4 -0
- package/lib/services/types.d.ts +318 -21
- package/package.json +64 -8
- package/lib/adapter/core-runtime.d.ts +0 -11
- package/lib/adapter/core-runtime.js +0 -259
- package/lib/adapter/host.d.ts +0 -18
- package/lib/adapter/host.js +0 -14
- package/lib/adapter/runtime.d.ts +0 -15
- package/lib/adapter/runtime.js +0 -290
- package/lib/app/AgentsOverlay.d.ts +0 -18
- package/lib/app/App.d.ts +0 -15
- package/lib/app/App.js +0 -1650
- package/lib/app/App.js.nv-backup +0 -1650
- package/lib/app/ApprovalCard.d.ts +0 -12
- package/lib/app/ApprovalCard.js +0 -82
- package/lib/app/AskCard.d.ts +0 -20
- package/lib/app/ChatView.d.ts +0 -65
- package/lib/app/ChatView.js +0 -314
- package/lib/app/Composer.d.ts +0 -50
- package/lib/app/Composer.js +0 -300
- package/lib/app/DiffBlock.d.ts +0 -6
- package/lib/app/DiffBlock.js +0 -37
- package/lib/app/ModelPicker.d.ts +0 -7
- package/lib/app/PlanReviewCard.d.ts +0 -13
- package/lib/app/PresetPicker.d.ts +0 -11
- package/lib/app/SessionPicker.d.ts +0 -43
- package/lib/app/SettingsOverlay.d.ts +0 -32
- package/lib/app/SettingsOverlay.js +0 -157
- package/lib/app/SkillsPicker.d.ts +0 -7
- package/lib/app/StatusBar.d.ts +0 -22
- package/lib/app/StatusBar.js +0 -189
- package/lib/app/TaskStrips.d.ts +0 -13
- package/lib/app/TaskStrips.js +0 -37
- package/lib/app/TimelineRail.js.negbak +0 -98
- package/lib/app/TimelineRail.js.nv-backup +0 -160
- package/lib/app/ToolCard.d.ts +0 -11
- package/lib/app/ToolCard.js +0 -60
- package/lib/app/ToolCard.js.nv-backup +0 -64
- package/lib/app/TranscriptOverlay.d.ts +0 -27
- package/lib/app/TranscriptViewport.d.ts +0 -78
- package/lib/app/TranscriptViewport.js +0 -218
- package/lib/app/Welcome.js +0 -68
- package/lib/app/clipboard-image.js +0 -66
- package/lib/app/display-width.d.ts +0 -16
- package/lib/app/display-width.js +0 -33
- package/lib/app/hello.d.ts +0 -11
- package/lib/app/hello.js +0 -8
- package/lib/app/history-store.js +0 -41
- package/lib/app/image-blocks.js +0 -125
- package/lib/app/scroll-model.d.ts +0 -240
- package/lib/app/settings-model.d.ts +0 -69
- package/lib/app/settings-model.js +0 -114
- package/lib/app/snapshot-subscribe.js +0 -110
- package/lib/commands.d.ts +0 -49
- package/lib/commands.js +0 -115
- package/lib/core/agent-roles.d.ts +0 -52
- package/lib/core/agent-roles.js +0 -275
- package/lib/core/approval-floor.d.ts +0 -192
- package/lib/core/approval-floor.js +0 -806
- package/lib/core/approval.d.ts +0 -42
- package/lib/core/approval.js +0 -8
- package/lib/core/call-meaning.js +0 -347
- package/lib/core/cdp/actions.js +0 -655
- package/lib/core/cdp/launch.js +0 -491
- package/lib/core/cdp/report.d.ts +0 -27
- package/lib/core/cdp/report.js +0 -50
- package/lib/core/cdp/ring-buffer.d.ts +0 -25
- package/lib/core/cdp/ring-buffer.js +0 -44
- package/lib/core/cdp/snapshot.d.ts +0 -139
- package/lib/core/cdp/snapshot.js +0 -312
- package/lib/core/cdp/transport.d.ts +0 -160
- package/lib/core/cdp/transport.js +0 -359
- package/lib/core/commands-completion.d.ts +0 -106
- package/lib/core/compact.d.ts +0 -140
- package/lib/core/compact.js +0 -282
- package/lib/core/connection-test.d.ts +0 -60
- package/lib/core/connection-test.js +0 -84
- package/lib/core/desktop-control.d.ts +0 -298
- package/lib/core/desktop-control.js +0 -1309
- package/lib/core/dsh-compat/hook.d.ts +0 -18
- package/lib/core/dsh-compat/hook.js +0 -52
- package/lib/core/goal.d.ts +0 -89
- package/lib/core/hooks.d.ts +0 -289
- package/lib/core/hooks.js +0 -862
- package/lib/core/learnings/ledger.d.ts +0 -73
- package/lib/core/learnings/ledger.js +0 -273
- package/lib/core/learnings/skill-write.d.ts +0 -244
- package/lib/core/learnings/skill-write.js +0 -820
- package/lib/core/learnings/store.js +0 -266
- package/lib/core/lifecycle-hooks.d.ts +0 -197
- package/lib/core/lifecycle-hooks.js +0 -567
- package/lib/core/loop.d.ts +0 -195
- package/lib/core/loop.js +0 -654
- package/lib/core/lsp/client.js +0 -703
- package/lib/core/lsp/manager.js +0 -418
- package/lib/core/lsp/normalize.js +0 -134
- package/lib/core/lsp/servers.js +0 -349
- package/lib/core/market.d.ts +0 -51
- package/lib/core/market.js +0 -358
- package/lib/core/mcp.d.ts +0 -219
- package/lib/core/mcp.js +0 -880
- package/lib/core/memory.d.ts +0 -266
- package/lib/core/memory.js +0 -703
- package/lib/core/microcompact.d.ts +0 -93
- package/lib/core/microcompact.js +0 -207
- package/lib/core/modes.d.ts +0 -72
- package/lib/core/modes.js +0 -152
- package/lib/core/permission-presets.d.ts +0 -71
- package/lib/core/permission-scope.d.ts +0 -65
- package/lib/core/presets.d.ts +0 -91
- package/lib/core/presets.js +0 -412
- package/lib/core/prompt.d.ts +0 -92
- package/lib/core/prompt.js +0 -375
- package/lib/core/sandbox/backends.d.ts +0 -64
- package/lib/core/sandbox/execpolicy.d.ts +0 -93
- package/lib/core/sandbox/execpolicy.js +0 -476
- package/lib/core/sandbox/net-proxy.js +0 -162
- package/lib/core/sandbox/policy.d.ts +0 -211
- package/lib/core/sandbox/policy.js +0 -565
- package/lib/core/sandbox/win/account.js +0 -203
- package/lib/core/sandbox/win/backend.d.ts +0 -82
- package/lib/core/sandbox/win/backend.js +0 -299
- package/lib/core/sandbox/win/doctor.js +0 -269
- package/lib/core/sandbox/win/ffi.d.ts +0 -107
- package/lib/core/sandbox/win/ffi.js +0 -166
- package/lib/core/sandbox/win/runner-entry.d.ts +0 -35
- package/lib/core/sandbox/win/runner-entry.js +0 -386
- package/lib/core/sandbox/win/setup.d.ts +0 -60
- package/lib/core/sandbox/win/setup.js +0 -983
- package/lib/core/sandbox/win/wfp.js +0 -197
- package/lib/core/session-export.d.ts +0 -18
- package/lib/core/session-export.js +0 -73
- package/lib/core/session-index.js +0 -849
- package/lib/core/todo.d.ts +0 -81
- package/lib/core/tool-result-prune.d.ts +0 -42
- package/lib/core/tool-result-prune.js +0 -47
- package/lib/core/tool-search.d.ts +0 -153
- package/lib/core/tools/bash.d.ts +0 -313
- package/lib/core/tools/bash.js +0 -998
- package/lib/core/tools/image-tool.d.ts +0 -2
- package/lib/core/tools/image-tool.js +0 -59
- package/lib/core/tools/index.d.ts +0 -8
- package/lib/core/tools/index.js +0 -4
- package/lib/core/tools/search-tools.d.ts +0 -33
- package/lib/core/tools/search-tools.js +0 -440
- package/lib/index.d.ts +0 -41
- package/lib/index.js +0 -35
- package/lib/plugins/agent.d.ts +0 -2
- package/lib/plugins/agent.js +0 -355
- package/lib/plugins/approval-floor.js +0 -227
- package/lib/plugins/approval.d.ts +0 -16
- package/lib/plugins/approval.js +0 -846
- package/lib/plugins/ask.js +0 -297
- package/lib/plugins/browser.d.ts +0 -68
- package/lib/plugins/browser.js +0 -1289
- package/lib/plugins/commands.d.ts +0 -23
- package/lib/plugins/commands.js +0 -608
- package/lib/plugins/compact.d.ts +0 -21
- package/lib/plugins/compact.js +0 -444
- package/lib/plugins/computer-use.d.ts +0 -47
- package/lib/plugins/computer-use.js +0 -555
- package/lib/plugins/desktop-dock.d.ts +0 -2
- package/lib/plugins/desktop-dock.js +0 -626
- package/lib/plugins/dock-browser.d.ts +0 -34
- package/lib/plugins/dock-browser.js +0 -724
- package/lib/plugins/dsh-compat.js +0 -44
- package/lib/plugins/file-review.d.ts +0 -108
- package/lib/plugins/file-review.js +0 -437
- package/lib/plugins/git.js +0 -140
- package/lib/plugins/goal.d.ts +0 -20
- package/lib/plugins/goal.js +0 -246
- package/lib/plugins/guards.js +0 -18
- package/lib/plugins/hooks.d.ts +0 -19
- package/lib/plugins/hooks.js +0 -585
- package/lib/plugins/host-stdio.d.ts +0 -88
- package/lib/plugins/host-stdio.js +0 -315
- package/lib/plugins/image-diet.js +0 -85
- package/lib/plugins/lifecycle-hooks.d.ts +0 -27
- package/lib/plugins/lifecycle-hooks.js +0 -340
- package/lib/plugins/llm.d.ts +0 -13
- package/lib/plugins/llm.js +0 -256
- package/lib/plugins/lsp.d.ts +0 -54
- package/lib/plugins/lsp.js +0 -603
- package/lib/plugins/mcp.js +0 -672
- package/lib/plugins/memory.d.ts +0 -17
- package/lib/plugins/memory.js +0 -837
- package/lib/plugins/microcompact.d.ts +0 -21
- package/lib/plugins/microcompact.js +0 -217
- package/lib/plugins/mode.d.ts +0 -18
- package/lib/plugins/mode.js +0 -134
- package/lib/plugins/permission-presets.d.ts +0 -19
- package/lib/plugins/permission-presets.js +0 -155
- package/lib/plugins/plan.js +0 -192
- package/lib/plugins/plugin-manager.js +0 -163
- package/lib/plugins/presets.js +0 -211
- package/lib/plugins/prompt.d.ts +0 -2
- package/lib/plugins/prompt.js +0 -307
- package/lib/plugins/ptc.js +0 -369
- package/lib/plugins/remote/http.d.ts +0 -11
- package/lib/plugins/remote/http.js +0 -11
- package/lib/plugins/remote/routes.js +0 -384
- package/lib/plugins/remote/types.d.ts +0 -135
- package/lib/plugins/remote/types.js +0 -98
- package/lib/plugins/remote.d.ts +0 -17
- package/lib/plugins/remote.js +0 -1027
- package/lib/plugins/runtime-api.js +0 -99
- package/lib/plugins/runtime.js +0 -528
- package/lib/plugins/sandbox.js +0 -882
- package/lib/plugins/schedule.d.ts +0 -26
- package/lib/plugins/schedule.js +0 -539
- package/lib/plugins/self-improve.d.ts +0 -61
- package/lib/plugins/self-improve.js +0 -963
- package/lib/plugins/session-search.js +0 -313
- package/lib/plugins/session-title.js +0 -109
- package/lib/plugins/session.js +0 -374
- package/lib/plugins/settings.d.ts +0 -3
- package/lib/plugins/settings.js +0 -681
- package/lib/plugins/skills.d.ts +0 -2
- package/lib/plugins/skills.js +0 -377
- package/lib/plugins/spill.js +0 -207
- package/lib/plugins/subagent.d.ts +0 -2
- package/lib/plugins/subagent.js +0 -1062
- package/lib/plugins/surfaces.d.ts +0 -11
- package/lib/plugins/surfaces.js +0 -20
- package/lib/plugins/team.d.ts +0 -16
- package/lib/plugins/team.js +0 -155
- package/lib/plugins/todo.d.ts +0 -19
- package/lib/plugins/todo.js +0 -194
- package/lib/plugins/tool-search.js +0 -453
- package/lib/plugins/tool-search.js.nv-backup +0 -434
- package/lib/plugins/tools-default.js +0 -359
- package/lib/plugins/transcript.d.ts +0 -15
- package/lib/plugins/transcript.js +0 -418
- package/lib/plugins/tui.js +0 -98
- package/lib/plugins/waiting.d.ts +0 -12
- package/lib/plugins/waiting.js +0 -34
- package/lib/plugins/web-search.d.ts +0 -14
- package/lib/plugins/web-search.js +0 -272
- package/lib/plugins/webserver.d.ts +0 -48
- package/lib/plugins/webserver.js +0 -261
- package/lib/remote/assets/app-B3Id1EBq.js +0 -14
- package/lib/remote/assets/icon-192.png +0 -0
- package/lib/remote/assets/icon-512.png +0 -0
- package/lib/remote/assets/index.html +0 -34
- package/lib/remote/assets/manifest.json +0 -27
- package/lib/remote/assets/style-NtlpbKOI.css +0 -1
- package/lib/remote/assets/sw.js +0 -66
- package/lib/tools/config-cli.js +0 -89
- package/lib/tools/plugin-cli.js +0 -209
- package/lib/ui/assets/app-B-Jx5dnh.js +0 -90
- package/lib/ui/assets/chunk-2UxHyX5q.js +0 -1
- package/lib/ui/assets/chunk-B1dDrJ26.js +0 -1
- package/lib/ui/assets/chunk-B6aJPvgy.js +0 -1
- package/lib/ui/assets/chunk-BEwlwnbL.js +0 -1
- package/lib/ui/assets/chunk-BIGW1oBm.js +0 -1
- package/lib/ui/assets/chunk-BPQ3VLAy.js +0 -1
- package/lib/ui/assets/chunk-BRH0KZbk.js +0 -141
- package/lib/ui/assets/chunk-BX6H_ySx.js +0 -1
- package/lib/ui/assets/chunk-B_P3UbPa.js +0 -1
- package/lib/ui/assets/chunk-B_TYUkTI.js +0 -1
- package/lib/ui/assets/chunk-B_vNuMnf.js +0 -1
- package/lib/ui/assets/chunk-BdnUsdx6.js +0 -1
- package/lib/ui/assets/chunk-Bfdlo8Me.js +0 -10
- package/lib/ui/assets/chunk-Buea-lGh.js +0 -1
- package/lib/ui/assets/chunk-C0PvZCCE.js +0 -1
- package/lib/ui/assets/chunk-C0m74zRD.js +0 -1
- package/lib/ui/assets/chunk-C27-OAKa.js +0 -1
- package/lib/ui/assets/chunk-C2oV4EkX.js +0 -1
- package/lib/ui/assets/chunk-C7zT0LnQ.js +0 -1
- package/lib/ui/assets/chunk-C9GSunVT.js +0 -1
- package/lib/ui/assets/chunk-C9tS-k6U.js +0 -1
- package/lib/ui/assets/chunk-CHLpvVh8.js +0 -1
- package/lib/ui/assets/chunk-CLxacb5B.js +0 -1
- package/lib/ui/assets/chunk-COt5Ahok.js +0 -1
- package/lib/ui/assets/chunk-CPTIWCL2.js +0 -1
- package/lib/ui/assets/chunk-CQLl-L-p.js +0 -1
- package/lib/ui/assets/chunk-CUWRgxuq.js +0 -55
- package/lib/ui/assets/chunk-CWanVSXC.js +0 -1
- package/lib/ui/assets/chunk-Cf5RLm7j.js +0 -1
- package/lib/ui/assets/chunk-CickPsom.js +0 -1
- package/lib/ui/assets/chunk-Cj5Yp3dK.js +0 -1
- package/lib/ui/assets/chunk-Cmh6b_Ma.js +0 -1
- package/lib/ui/assets/chunk-Cp-IABpG.js +0 -1
- package/lib/ui/assets/chunk-CqE71os6.js +0 -1
- package/lib/ui/assets/chunk-CtKP3W-j.js +0 -1
- package/lib/ui/assets/chunk-Cvjx9yec.js +0 -1
- package/lib/ui/assets/chunk-CxGP3dtY.js +0 -1
- package/lib/ui/assets/chunk-CylS5w8V.js +0 -1
- package/lib/ui/assets/chunk-D38fbIBN.js +0 -1
- package/lib/ui/assets/chunk-D97Zzqfu.js +0 -1
- package/lib/ui/assets/chunk-DAi9KRSo.js +0 -1
- package/lib/ui/assets/chunk-DGX-i4eb.js +0 -12
- package/lib/ui/assets/chunk-DHK4yRfg.js +0 -1
- package/lib/ui/assets/chunk-DJeabLx-.js +0 -1
- package/lib/ui/assets/chunk-DNRxmY5a.js +0 -1
- package/lib/ui/assets/chunk-DNSN1z5r.js +0 -1
- package/lib/ui/assets/chunk-DNasK_ZG.js +0 -1
- package/lib/ui/assets/chunk-DPvrY3IQ.js +0 -1
- package/lib/ui/assets/chunk-DXmwc3jG.js +0 -1
- package/lib/ui/assets/chunk-Dd0kTxKP.js +0 -1
- package/lib/ui/assets/chunk-De0Btta0.js +0 -1
- package/lib/ui/assets/chunk-Des-eS-w.js +0 -1
- package/lib/ui/assets/chunk-Df6bDoY_.js +0 -1
- package/lib/ui/assets/chunk-DijEV5ha.js +0 -1
- package/lib/ui/assets/chunk-DkvoVjww.js +0 -1
- package/lib/ui/assets/chunk-DlC-OlHO.js +0 -1
- package/lib/ui/assets/chunk-DnzrXTVv.js +0 -1
- package/lib/ui/assets/chunk-Dualf0xi.js +0 -1
- package/lib/ui/assets/chunk-EXT84bkm.js +0 -1
- package/lib/ui/assets/chunk-GwR3hkPK.js +0 -1
- package/lib/ui/assets/chunk-P80f7IUj.js +0 -1
- package/lib/ui/assets/chunk-VOosw3JB.js +0 -1
- package/lib/ui/assets/chunk-YQ4lDkt_.js +0 -140
- package/lib/ui/assets/chunk-Yzrsuije.js +0 -1
- package/lib/ui/assets/chunk-Z72CF80r.js +0 -1
- package/lib/ui/assets/chunk-g9-lgVsj.js +0 -1
- package/lib/ui/assets/chunk-vGWfd6FD.js +0 -1
- package/lib/ui/assets/chunk-wDzz0qaB.js +0 -1
- package/lib/ui/assets/chunk-ySF7HWmS.js +0 -1
- package/lib/ui/assets/icon.png +0 -0
- package/lib/ui/assets/index.html +0 -62
- package/lib/ui/assets/pdf.worker.min-CjEcRF4W.mjs +0 -28
- package/lib/ui/assets/style-WzxwEPaE.css +0 -1
- package/lib/ui/frames.js +0 -144
- package/lib/ui/index.d.ts +0 -88
- package/lib/ui/index.js +0 -79
- package/lib/ui/manifest.d.ts +0 -190
- package/lib/ui/manifest.js +0 -159
- package/lib/ui/plugin.d.ts +0 -161
- package/lib/ui/plugins/actions/bundle.json +0 -8
- package/lib/ui/plugins/actions/client.js +0 -43
- package/lib/ui/plugins/ask/bundle.json +0 -8
- package/lib/ui/plugins/ask/client.js +0 -415
- package/lib/ui/plugins/browser/bundle.json +0 -8
- package/lib/ui/plugins/browser/client.js +0 -290
- package/lib/ui/plugins/browser/icon.png +0 -0
- package/lib/ui/plugins/composer/bundle.json +0 -9
- package/lib/ui/plugins/composer/client.js +0 -2562
- package/lib/ui/plugins/composer/icon.png +0 -0
- package/lib/ui/plugins/files/bundle.json +0 -8
- package/lib/ui/plugins/files/client.js +0 -561
- package/lib/ui/plugins/files/icon.png +0 -0
- package/lib/ui/plugins/manifest.json +0 -4
- package/lib/ui/plugins/palette/bundle.json +0 -8
- package/lib/ui/plugins/palette/client.js +0 -360
- package/lib/ui/plugins/plugins/bundle.json +0 -8
- package/lib/ui/plugins/plugins/client.js +0 -760
- package/lib/ui/plugins/plugins/icon.png +0 -0
- package/lib/ui/plugins/preview/bundle.json +0 -8
- package/lib/ui/plugins/preview/client.js +0 -187
- package/lib/ui/plugins/preview/icon.png +0 -0
- package/lib/ui/plugins/prompt/bundle.json +0 -8
- package/lib/ui/plugins/prompt/client.js +0 -687
- package/lib/ui/plugins/prompt/icon.png +0 -0
- package/lib/ui/plugins/sessions/bundle.json +0 -8
- package/lib/ui/plugins/sessions/client.js +0 -1623
- package/lib/ui/plugins/sessions/icon.png +0 -0
- package/lib/ui/plugins/settings/bundle.json +0 -8
- package/lib/ui/plugins/settings/client.js +0 -5484
- package/lib/ui/plugins/settings/icon.png +0 -0
- package/lib/ui/plugins/skills/bundle.json +0 -8
- package/lib/ui/plugins/skills/client.js +0 -567
- package/lib/ui/plugins/skills/icon.png +0 -0
- package/lib/ui/plugins/status/bundle.json +0 -8
- package/lib/ui/plugins/status/client.js +0 -1559
- package/lib/ui/plugins/status/icon.png +0 -0
- package/lib/ui/plugins/statusbar/bundle.json +0 -9
- package/lib/ui/plugins/statusbar/client.js +0 -460
- package/lib/ui/plugins/statusbar/icon.png +0 -0
- package/lib/ui/plugins/tasks/bundle.json +0 -8
- package/lib/ui/plugins/tasks/client.js +0 -52
- package/lib/ui/plugins/tasks/icon.png +0 -0
- package/lib/ui/plugins/team/bundle.json +0 -8
- package/lib/ui/plugins/team/client.js +0 -529
- package/lib/ui/plugins/team/icon.png +0 -0
- package/lib/ui/plugins/terminal/bundle.json +0 -8
- package/lib/ui/plugins/terminal/client.js +0 -226
- package/lib/ui/plugins/terminal/icon.png +0 -0
- package/lib/ui/plugins/trace/bundle.json +0 -11
- package/lib/ui/plugins/trace/client.js +0 -1283
- package/lib/ui/plugins/trace/icon.png +0 -0
- package/lib/ui/plugins/transcript/bundle.json +0 -8
- package/lib/ui/plugins/transcript/client.js +0 -3026
- package/lib/ui/plugins/transcript/icon.png +0 -0
- package/lib/ui/scoped-slots.d.ts +0 -20
- package/lib/ui/sdk/@dsc/ui/index.d.ts +0 -280
- package/lib/ui/sdk/@dsc/ui/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-core/contract.d.ts +0 -25
- package/lib/ui/sdk/@dsc/ui-core/core/attachments.d.ts +0 -185
- package/lib/ui/sdk/@dsc/ui-core/core/bytes.d.ts +0 -14
- package/lib/ui/sdk/@dsc/ui-core/core/diff-text.d.ts +0 -74
- package/lib/ui/sdk/@dsc/ui-core/core/dock-browser.d.ts +0 -137
- package/lib/ui/sdk/@dsc/ui-core/core/dock-ops.d.ts +0 -59
- package/lib/ui/sdk/@dsc/ui-core/core/err-text.d.ts +0 -18
- package/lib/ui/sdk/@dsc/ui-core/core/git-surface.d.ts +0 -17
- package/lib/ui/sdk/@dsc/ui-core/core/json-text.d.ts +0 -11
- package/lib/ui/sdk/@dsc/ui-core/core/model-caps.d.ts +0 -83
- package/lib/ui/sdk/@dsc/ui-core/core/native-bridge.d.ts +0 -135
- package/lib/ui/sdk/@dsc/ui-core/core/path-policy.d.ts +0 -44
- package/lib/ui/sdk/@dsc/ui-core/core/records.d.ts +0 -16
- package/lib/ui/sdk/@dsc/ui-core/core/throughput.d.ts +0 -46
- package/lib/ui/sdk/@dsc/ui-core/core/token-estimate.d.ts +0 -71
- package/lib/ui/sdk/@dsc/ui-core/core/unified-diff.d.ts +0 -35
- package/lib/ui/sdk/@dsc/ui-core/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-core/ui/arrival.d.ts +0 -72
- package/lib/ui/sdk/@dsc/ui-core/ui/frames.d.ts +0 -67
- package/lib/ui/sdk/@dsc/ui-core/ui/index.d.ts +0 -88
- package/lib/ui/sdk/@dsc/ui-core/ui/manifest.d.ts +0 -190
- package/lib/ui/sdk/@dsc/ui-core/ui/plugin.d.ts +0 -161
- package/lib/ui/sdk/@dsc/ui-core/ui/scoped-slots.d.ts +0 -20
- package/lib/ui/sdk/@dsc/ui-core/ui/slots.d.ts +0 -481
- package/lib/ui/sdk/@dsc/ui-dockkit/dock-model.d.ts +0 -252
- package/lib/ui/sdk/@dsc/ui-dockkit/dock-state.d.ts +0 -163
- package/lib/ui/sdk/@dsc/ui-dockkit/dock.d.ts +0 -24
- package/lib/ui/sdk/@dsc/ui-dockkit/index.d.ts +0 -15
- package/lib/ui/sdk/@dsc/ui-dockkit/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-layout/app.d.ts +0 -78
- package/lib/ui/sdk/@dsc/ui-layout/appearance.d.ts +0 -75
- package/lib/ui/sdk/@dsc/ui-layout/host-channel.d.ts +0 -133
- package/lib/ui/sdk/@dsc/ui-layout/index.d.ts +0 -35
- package/lib/ui/sdk/@dsc/ui-layout/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-layout/page-state.d.ts +0 -14
- package/lib/ui/sdk/@dsc/ui-layout/review-pane.d.ts +0 -21
- package/lib/ui/sdk/@dsc/ui-layout/runtime-context.d.ts +0 -53
- package/lib/ui/sdk/@dsc/ui-layout/thread-view.d.ts +0 -28
- package/lib/ui/sdk/@dsc/ui-layout/update-button.d.ts +0 -21
- package/lib/ui/sdk/@dsc/ui-layout/usage-today.d.ts +0 -11
- package/lib/ui/sdk/@dsc/ui-primitives/code-file-icon-artwork.d.ts +0 -53
- package/lib/ui/sdk/@dsc/ui-primitives/code-view.d.ts +0 -15
- package/lib/ui/sdk/@dsc/ui-primitives/compat.d.ts +0 -27
- package/lib/ui/sdk/@dsc/ui-primitives/completion-sound.d.ts +0 -24
- package/lib/ui/sdk/@dsc/ui-primitives/confirm.d.ts +0 -33
- package/lib/ui/sdk/@dsc/ui-primitives/css.d.ts +0 -47
- package/lib/ui/sdk/@dsc/ui-primitives/dialog-focus.d.ts +0 -30
- package/lib/ui/sdk/@dsc/ui-primitives/diff-rows.d.ts +0 -20
- package/lib/ui/sdk/@dsc/ui-primitives/error-text.d.ts +0 -12
- package/lib/ui/sdk/@dsc/ui-primitives/file-icons.d.ts +0 -38
- package/lib/ui/sdk/@dsc/ui-primitives/file-type-classify.d.ts +0 -66
- package/lib/ui/sdk/@dsc/ui-primitives/file-type-icon.d.ts +0 -57
- package/lib/ui/sdk/@dsc/ui-primitives/git-surface.d.ts +0 -9
- package/lib/ui/sdk/@dsc/ui-primitives/highlight.d.ts +0 -47
- package/lib/ui/sdk/@dsc/ui-primitives/hover-delay.d.ts +0 -17
- package/lib/ui/sdk/@dsc/ui-primitives/humanize-error.d.ts +0 -35
- package/lib/ui/sdk/@dsc/ui-primitives/icons-workspace.d.ts +0 -33
- package/lib/ui/sdk/@dsc/ui-primitives/icons.d.ts +0 -127
- package/lib/ui/sdk/@dsc/ui-primitives/image-lightbox.d.ts +0 -21
- package/lib/ui/sdk/@dsc/ui-primitives/index.d.ts +0 -71
- package/lib/ui/sdk/@dsc/ui-primitives/lang-table.d.ts +0 -10
- package/lib/ui/sdk/@dsc/ui-primitives/markdown.d.ts +0 -16
- package/lib/ui/sdk/@dsc/ui-primitives/native.d.ts +0 -41
- package/lib/ui/sdk/@dsc/ui-primitives/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-primitives/panels.d.ts +0 -109
- package/lib/ui/sdk/@dsc/ui-primitives/paths.d.ts +0 -13
- package/lib/ui/sdk/@dsc/ui-primitives/pdf-view.d.ts +0 -13
- package/lib/ui/sdk/@dsc/ui-primitives/plugin-text.d.ts +0 -15
- package/lib/ui/sdk/@dsc/ui-primitives/review-findings-card.d.ts +0 -25
- package/lib/ui/sdk/@dsc/ui-primitives/review-findings.d.ts +0 -64
- package/lib/ui/sdk/@dsc/ui-primitives/review-notice-card.d.ts +0 -27
- package/lib/ui/sdk/@dsc/ui-primitives/review-notice.d.ts +0 -80
- package/lib/ui/sdk/@dsc/ui-primitives/select.d.ts +0 -35
- package/lib/ui/sdk/@dsc/ui-primitives/signal.d.ts +0 -9
- package/lib/ui/sdk/@dsc/ui-primitives/sizes.d.ts +0 -15
- package/lib/ui/sdk/@dsc/ui-primitives/skeleton.d.ts +0 -39
- package/lib/ui/sdk/@dsc/ui-primitives/snapshot.d.ts +0 -46
- package/lib/ui/sdk/@dsc/ui-primitives/table-view.d.ts +0 -23
- package/lib/ui/sdk/@dsc/ui-primitives/thread-resizer.d.ts +0 -22
- package/lib/ui/sdk/@dsc/ui-primitives/throughput.d.ts +0 -13
- package/lib/ui/sdk/@dsc/ui-primitives/time.d.ts +0 -33
- package/lib/ui/sdk/@dsc/ui-primitives/toast.d.ts +0 -16
- package/lib/ui/sdk/@dsc/ui-primitives/tokens.d.ts +0 -23
- package/lib/ui/sdk/@dsc/ui-primitives/tool-args.d.ts +0 -49
- package/lib/ui/sdk/@dsc/ui-primitives/tool-summary.d.ts +0 -88
- package/lib/ui/sdk/@dsc/ui-primitives/unified-diff.d.ts +0 -10
- package/lib/ui/sdk/@dsc/ui-renderer/boot.d.ts +0 -130
- package/lib/ui/sdk/@dsc/ui-renderer/cordis-host.d.ts +0 -113
- package/lib/ui/sdk/@dsc/ui-renderer/hmr.d.ts +0 -43
- package/lib/ui/sdk/@dsc/ui-renderer/index.d.ts +0 -20
- package/lib/ui/sdk/@dsc/ui-renderer/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-slots/index.d.ts +0 -19
- package/lib/ui/sdk/@dsc/ui-slots/package.json +0 -16
- package/lib/ui/sdk/@dsc/ui-slots/slots-react.d.ts +0 -48
- package/lib/ui/sdk/@dsc/ui-slots/slots.d.ts +0 -102
- package/lib/ui/services-react.d.ts +0 -27
- package/lib/ui/services.d.ts +0 -74
- package/lib/ui/signal.d.ts +0 -49
- package/lib/ui/slots-ink.d.ts +0 -26
- package/lib/ui/slots-ink.js +0 -78
- package/lib/ui/slots-react.d.ts +0 -28
- package/lib/ui/slots.d.ts +0 -481
- package/lib/ui/store.d.ts +0 -89
- package/lib/ui/tui-plugin-api.d.ts +0 -23
- package/lib/ui/tui-plugin-api.js +0 -23
- package/lib/ui/tui-plugins.d.ts +0 -47
- package/lib/ui/tui-plugins.js +0 -240
- /package/lib/{core → packages/approval}/call-meaning.d.ts +0 -0
- /package/lib/{plugins/approval-floor.d.ts → packages/approval-floor/index.d.ts} +0 -0
- /package/lib/{plugins/ask.d.ts → packages/ask/index.d.ts} +0 -0
- /package/lib/{core → packages}/cdp/actions.d.ts +0 -0
- /package/lib/{core → packages}/cdp/launch.d.ts +0 -0
- /package/lib/{tools → packages/cli}/config-cli.d.ts +0 -0
- /package/lib/{tools → packages/cli}/plugin-cli.d.ts +0 -0
- /package/lib/{core → packages/commands-core}/commands-completion.js +0 -0
- /package/lib/{plugins/dsh-compat.d.ts → packages/dsh-compat/index.d.ts} +0 -0
- /package/lib/{plugins/git.d.ts → packages/git/index.d.ts} +0 -0
- /package/lib/{core → packages/goal}/goal.js +0 -0
- /package/lib/{plugins/guards.d.ts → packages/guards/index.d.ts} +0 -0
- /package/lib/{plugins/image-diet.d.ts → packages/image-diet/index.d.ts} +0 -0
- /package/lib/{core → packages}/lsp/client.d.ts +0 -0
- /package/lib/{core → packages}/lsp/framing.d.ts +0 -0
- /package/lib/{core → packages}/lsp/framing.js +0 -0
- /package/lib/{core → packages}/lsp/line-shift.d.ts +0 -0
- /package/lib/{core → packages}/lsp/line-shift.js +0 -0
- /package/lib/{core → packages}/lsp/manager.d.ts +0 -0
- /package/lib/{core → packages}/lsp/normalize.d.ts +0 -0
- /package/lib/{core → packages}/lsp/servers.d.ts +0 -0
- /package/lib/{core → packages}/lsp/uri.d.ts +0 -0
- /package/lib/{core → packages}/lsp/uri.js +0 -0
- /package/lib/{plugins/mcp.d.ts → packages/mcp/index.d.ts} +0 -0
- /package/lib/{core → packages/memory}/memory-eval.d.ts +0 -0
- /package/lib/{core → packages/memory}/memory-eval.js +0 -0
- /package/lib/{core → packages/permission-core}/permission-presets.js +0 -0
- /package/lib/{core → packages/permission-core}/permission-scope.js +0 -0
- /package/lib/{plugins/plan.d.ts → packages/plan/index.d.ts} +0 -0
- /package/lib/{plugins/plugin-manager.d.ts → packages/plugin-manager/index.d.ts} +0 -0
- /package/lib/{plugins/presets.d.ts → packages/presets/index.d.ts} +0 -0
- /package/lib/{plugins/ptc.d.ts → packages/ptc/index.d.ts} +0 -0
- /package/lib/{plugins → packages}/remote/routes.d.ts +0 -0
- /package/lib/{plugins/runtime.d.ts → packages/runtime/index.d.ts} +0 -0
- /package/lib/{plugins/runtime-api.d.ts → packages/runtime-api/index.d.ts} +0 -0
- /package/lib/{core → packages}/sandbox/backends.js +0 -0
- /package/lib/{plugins/sandbox.d.ts → packages/sandbox/index.d.ts} +0 -0
- /package/lib/{core → packages}/sandbox/net-proxy.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/abi.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/abi.js +0 -0
- /package/lib/{core → packages}/sandbox/win/account.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/acl.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/acl.js +0 -0
- /package/lib/{core → packages}/sandbox/win/doctor.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/net-abi.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/net-abi.js +0 -0
- /package/lib/{core → packages}/sandbox/win/token.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/token.js +0 -0
- /package/lib/{core → packages}/sandbox/win/utf16.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/utf16.js +0 -0
- /package/lib/{core → packages}/sandbox/win/wfp.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/workspace-sid.d.ts +0 -0
- /package/lib/{core → packages}/sandbox/win/workspace-sid.js +0 -0
- /package/lib/{core/learnings → packages/self-improve}/store.d.ts +0 -0
- /package/lib/{plugins/session.d.ts → packages/session/index.d.ts} +0 -0
- /package/lib/{plugins/session-search.d.ts → packages/session-search/index.d.ts} +0 -0
- /package/lib/{core → packages/session-search}/session-index.d.ts +0 -0
- /package/lib/{plugins/session-title.d.ts → packages/session-title/index.d.ts} +0 -0
- /package/lib/{core → packages/settings}/model-discovery.d.ts +0 -0
- /package/lib/{core → packages/settings}/model-discovery.js +0 -0
- /package/lib/{plugins/spill.d.ts → packages/spill/index.d.ts} +0 -0
- /package/lib/{core → packages/surfaces}/surface-registry.d.ts +0 -0
- /package/lib/{core → packages/surfaces}/surface-registry.js +0 -0
- /package/lib/{core → packages/todo}/todo.js +0 -0
- /package/lib/{plugins/tool-search.d.ts → packages/tool-search/index.d.ts} +0 -0
- /package/lib/{core → packages/tool-search}/tool-search.js +0 -0
- /package/lib/{plugins/tools.d.ts → packages/tools/index.d.ts} +0 -0
- /package/lib/{plugins/tools.js → packages/tools/index.js} +0 -0
- /package/lib/{plugins/tools-default.d.ts → packages/tools-default/index.d.ts} +0 -0
- /package/lib/{app → packages/tui/app}/AgentsOverlay.js +0 -0
- /package/lib/{app → packages/tui/app}/AskCard.js +0 -0
- /package/lib/{app → packages/tui/app}/MarkdownView.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/MarkdownView.js +0 -0
- /package/lib/{app → packages/tui/app}/ModelPicker.js +0 -0
- /package/lib/{app → packages/tui/app}/PickerFrame.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/PickerFrame.js +0 -0
- /package/lib/{app → packages/tui/app}/PlanReviewCard.js +0 -0
- /package/lib/{app → packages/tui/app}/PresetPicker.js +0 -0
- /package/lib/{app → packages/tui/app}/PreviewOverlay.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/PreviewOverlay.js +0 -0
- /package/lib/{app → packages/tui/app}/SessionPicker.js +0 -0
- /package/lib/{app → packages/tui/app}/SkillsPicker.js +0 -0
- /package/lib/{app → packages/tui/app}/TimelineRail.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/TimelineRail.js +0 -0
- /package/lib/{app → packages/tui/app}/TranscriptOverlay.js +0 -0
- /package/lib/{app → packages/tui/app}/Welcome.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/attach.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/attach.js +0 -0
- /package/lib/{app → packages/tui/app}/click.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/click.js +0 -0
- /package/lib/{app → packages/tui/app}/clipboard-image.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/cursor.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/cursor.js +0 -0
- /package/lib/{app → packages/tui/app}/history-store.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/image-blocks.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/keymap.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/keymap.js +0 -0
- /package/lib/{app → packages/tui/app}/markdown.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/markdown.js +0 -0
- /package/lib/{app → packages/tui/app}/mouse.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/mouse.js +0 -0
- /package/lib/{app → packages/tui/app}/pointer.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/pointer.js +0 -0
- /package/lib/{app → packages/tui/app}/scroll-model.js +0 -0
- /package/lib/{app → packages/tui/app}/snapshot-subscribe.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/theme.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/theme.js +0 -0
- /package/lib/{app → packages/tui/app}/ticker.d.ts +0 -0
- /package/lib/{app → packages/tui/app}/ticker.js +0 -0
- /package/lib/{plugins/tui.d.ts → packages/tui/index.d.ts} +0 -0
- /package/lib/{ui → packages/ui-core}/arrival.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/arrival.js +0 -0
- /package/lib/{ui → packages/ui-core}/frames.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/plugin.js +0 -0
- /package/lib/{ui → packages/ui-core}/scoped-slots.js +0 -0
- /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/services-react.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/services-react.js +0 -0
- /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/services.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/services.js +0 -0
- /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/signal.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/signal.js +0 -0
- /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/slots-react.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/slots-react.js +0 -0
- /package/lib/{ui → packages/ui-core}/slots.js +0 -0
- /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/store.d.ts +0 -0
- /package/lib/{ui → packages/ui-core}/store.js +0 -0
|
@@ -0,0 +1,1384 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 二级网络管控的**一次性提权 setup**:生成 PowerShell 5.1 脚本(内嵌 C# 做 WFP 安装)+ 提权执行。
|
|
3
|
+
*
|
|
4
|
+
* 分工:TS 这边只负责「把要做的事写成一个可审计的 .ps1」(`buildSetupScript` 是纯函数,不碰盘),
|
|
5
|
+
* 真正的提权动作全在那个脚本里(建账号、布防火墙、装 WFP filter)。`runSetupElevated` 负责落盘 + 拉起 UAC。
|
|
6
|
+
*
|
|
7
|
+
* 顺序即安全纪律(中断也不留「有账号没布防」的窗口):
|
|
8
|
+
* 建组 → 生成密码 → **-Disabled 建账号** → 进组 → 隐藏账号 → DPAPI 存密码 →
|
|
9
|
+
* 5 条防火墙规则 → 12 条 WFP filter(单事务持久)→ 写 setup-state.json → **最后才 Enable-LocalUser**。
|
|
10
|
+
* 任何一步抛错都 exit 1、账号停在禁用态;重跑脚本幂等。
|
|
11
|
+
*
|
|
12
|
+
* 与 codex 的两处刻意不同:
|
|
13
|
+
* 1. 环回 TCP 的端口补集一步到位(不做「先全堵再收窄」两段式)——因为本脚本全程把账号钉在禁用态,
|
|
14
|
+
* 不存在 codex 那种「账号已启用、规则还在装」的敞口;
|
|
15
|
+
* 2. 账本(setup-state.json)写在 Enable-LocalUser **之前**:这份账本也是「布防」的一部分,
|
|
16
|
+
* 这样「账号已启用」就一定意味着「账本已在」,doctor 不会读到半截状态。
|
|
17
|
+
*
|
|
18
|
+
* @module dsc/core/sandbox/win/setup
|
|
19
|
+
*/
|
|
20
|
+
import { spawn } from 'node:child_process';
|
|
21
|
+
import { mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
22
|
+
import { join } from 'node:path';
|
|
23
|
+
import { DSC_WFP_FILTERS, DSC_WFP_PROVIDER_GUID, DSC_WFP_SUBLAYER_GUID, firewallRuleSpecs, } from './net-abi.js';
|
|
24
|
+
import { sandboxDir, setupErrorPath, setupScriptPath, readSetupState } from './account.js';
|
|
25
|
+
import { bindAll, tryLoadFfi } from './ffi.js';
|
|
26
|
+
import { utf16Buffer } from './utf16.js';
|
|
27
|
+
import { errText as errorText } from '../../../core/err-text.js';
|
|
28
|
+
/** 固定的离线沙箱账号名(普通本地账号,不是服务账号)。 */
|
|
29
|
+
export const DSC_SANDBOX_ACCOUNT = 'dsc-sandbox-offline';
|
|
30
|
+
/** 沙箱账号组的名字(便于以后整体清理/识别)。 */
|
|
31
|
+
export const DSC_SANDBOX_GROUP = 'DscSandboxUsers';
|
|
32
|
+
/** 默认代理端口:沙箱里唯一被放行的环回 TCP 出口。 */
|
|
33
|
+
export const DSC_SANDBOX_DEFAULT_PROXY_PORT = 3128;
|
|
34
|
+
/** 账本版本号(改了脚本语义就加一,doctor 可以据此判新旧)。 */
|
|
35
|
+
export const DSC_SETUP_STATE_VERSION = 1;
|
|
36
|
+
/**
|
|
37
|
+
* 生成完整的提权脚本(纯函数:同样的入参给同样的文本)。
|
|
38
|
+
*
|
|
39
|
+
* 输入有一处会被写进 PowerShell 单引号字符串(dscHome 与几个名字),所以这里先校一遍形状,
|
|
40
|
+
* 不合法就直接抛——把「路径里带单引号导致脚本被改写」这种事挡在生成阶段。
|
|
41
|
+
*/
|
|
42
|
+
export function buildSetupScript(options) {
|
|
43
|
+
const dscHome = options.dscHome;
|
|
44
|
+
if (typeof dscHome !== 'string' || dscHome === '') {
|
|
45
|
+
throw new Error('buildSetupScript:dscHome 必须是非空字符串');
|
|
46
|
+
}
|
|
47
|
+
if (dscHome.includes("'") || /[\r\n]/.test(dscHome)) {
|
|
48
|
+
throw new Error(`buildSetupScript:dscHome 不能含单引号或换行(会破坏生成的 PowerShell 文本):${JSON.stringify(dscHome)}`);
|
|
49
|
+
}
|
|
50
|
+
const proxyPort = options.proxyPort ?? DSC_SANDBOX_DEFAULT_PROXY_PORT;
|
|
51
|
+
const guidProvider = options.guidProvider ?? DSC_WFP_PROVIDER_GUID;
|
|
52
|
+
const guidSublayer = options.guidSublayer ?? DSC_WFP_SUBLAYER_GUID;
|
|
53
|
+
assertGuid(guidProvider, 'guidProvider');
|
|
54
|
+
assertGuid(guidSublayer, 'guidSublayer');
|
|
55
|
+
const rules = firewallRuleSpecs(proxyPort); // 顺带校验 proxyPort 合法(不合法会抛 RangeError)
|
|
56
|
+
const ruleNameList = rules.map((rule) => `'${rule.name}'`).join(', ');
|
|
57
|
+
const firewallBlock = rules
|
|
58
|
+
.map((rule) => [` Remove-NetFirewallRule -Name '${rule.name}' -ErrorAction SilentlyContinue`, ` ${renderFirewallRule(rule)}`].join('\n'))
|
|
59
|
+
.join('\n');
|
|
60
|
+
const filterBlock = DSC_WFP_FILTERS.map((spec) => ` '${spec.key}|${spec.name}|${spec.layer}|${spec.protocol === null ? '' : String(spec.protocol)}|${spec.remotePort === null ? '' : String(spec.remotePort)}'`).join('\n');
|
|
61
|
+
return `# dsc 沙箱「网络管控第二级」一次性提权 setup。
|
|
62
|
+
# 由 src/core/sandbox/win/setup.ts 的 buildSetupScript() 生成 —— 要看改了什么就看那个函数,别手改本文件。
|
|
63
|
+
#
|
|
64
|
+
# 纪律:账号先以 -Disabled 建出来 → 防火墙 5 条 + WFP 12 条全部布防成功 → 写账本 → 最后才 Enable-LocalUser。
|
|
65
|
+
# 任何一步失败都会写 ~/.dsc/sandbox/setup-error.txt 并 exit 1,账号停在禁用态;重跑本脚本即幂等重做。
|
|
66
|
+
\$ErrorActionPreference = 'Stop'
|
|
67
|
+
\$DscHome = '${dscHome}'
|
|
68
|
+
\$DscSandboxDir = Join-Path \$DscHome 'sandbox'
|
|
69
|
+
\$DscAccount = '${DSC_SANDBOX_ACCOUNT}'
|
|
70
|
+
\$DscGroup = '${DSC_SANDBOX_GROUP}'
|
|
71
|
+
\$DscProxyPort = ${String(proxyPort)}
|
|
72
|
+
\$DscAccountDescription = 'dsc 沙箱离线账号(网络管控第二级用,非交互登录)'
|
|
73
|
+
\$DscProviderGuid = '${guidProvider}'
|
|
74
|
+
\$DscSublayerGuid = '${guidSublayer}'
|
|
75
|
+
\$DscStatePath = Join-Path \$DscSandboxDir 'setup-state.json'
|
|
76
|
+
\$DscSecretPath = Join-Path \$DscSandboxDir 'account.bin'
|
|
77
|
+
\$DscErrorPath = Join-Path \$DscSandboxDir 'setup-error.txt'
|
|
78
|
+
\$DscRuleNames = @(${ruleNameList})
|
|
79
|
+
\$DscFilters = @(
|
|
80
|
+
${filterBlock}
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
function Write-DscSetupError([string]\$Message) {
|
|
84
|
+
# 失败原因单独落一个文件:提权窗口一闪而过,控制台输出经常来不及看
|
|
85
|
+
try {
|
|
86
|
+
New-Item -ItemType Directory -Force -Path \$DscSandboxDir | Out-Null
|
|
87
|
+
\$text = ('[{0}] {1}' -f (Get-Date).ToUniversalTime().ToString('o'), \$Message)
|
|
88
|
+
[System.IO.File]::WriteAllText(\$DscErrorPath, \$text, (New-Object System.Text.UTF8Encoding(\$false)))
|
|
89
|
+
} catch {
|
|
90
|
+
# 连错误文件都写不进去就只能靠控制台了
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function Get-DscRandomIndex([int]\$Max) {
|
|
95
|
+
# 用密码学 RNG,不用 Get-Random(后者是给测试用的可预测源)
|
|
96
|
+
\$bytes = New-Object byte[] 4
|
|
97
|
+
\$DscRng.GetBytes(\$bytes)
|
|
98
|
+
return [int]([System.BitConverter]::ToUInt32(\$bytes, 0) % [uint32]\$Max)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function Get-DscRandomChar([char[]]\$Set) {
|
|
102
|
+
return \$Set[(Get-DscRandomIndex \$Set.Length)]
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
try {
|
|
106
|
+
New-Item -ItemType Directory -Force -Path \$DscSandboxDir | Out-Null
|
|
107
|
+
|
|
108
|
+
# ── 1. 组:存在就跳过 ──
|
|
109
|
+
if (\$null -eq (Get-LocalGroup -Name \$DscGroup -ErrorAction SilentlyContinue)) {
|
|
110
|
+
New-LocalGroup -Name \$DscGroup -Description 'dsc 沙箱账号组(二级网络管控用)' | Out-Null
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
# ── 2. 随机 24 位密码:四类字符各至少 2 个,再洗牌 ──
|
|
114
|
+
# 只用 RandomNumberGenerator + 自己拼的字符集,不依赖 .NET Framework 里那套已废弃的成员解析类
|
|
115
|
+
\$DscRng = [System.Security.Cryptography.RandomNumberGenerator]::Create()
|
|
116
|
+
\$DscUpper = 'ABCDEFGHJKLMNPQRSTUVWXYZ'.ToCharArray()
|
|
117
|
+
\$DscLower = 'abcdefghijkmnopqrstuvwxyz'.ToCharArray()
|
|
118
|
+
\$DscDigit = '23456789'.ToCharArray()
|
|
119
|
+
\$DscSymbol = '!@#%^&*()-_=+'.ToCharArray()
|
|
120
|
+
\$DscAll = \$DscUpper + \$DscLower + \$DscDigit + \$DscSymbol
|
|
121
|
+
\$DscChars = New-Object System.Collections.Generic.List[char]
|
|
122
|
+
foreach (\$set in @(\$DscUpper, \$DscLower, \$DscDigit, \$DscSymbol)) {
|
|
123
|
+
1..2 | ForEach-Object { \$DscChars.Add((Get-DscRandomChar \$set)) }
|
|
124
|
+
}
|
|
125
|
+
1..16 | ForEach-Object { \$DscChars.Add((Get-DscRandomChar \$DscAll)) }
|
|
126
|
+
for (\$i = \$DscChars.Count - 1; \$i -gt 0; \$i--) {
|
|
127
|
+
\$j = Get-DscRandomIndex (\$i + 1)
|
|
128
|
+
\$tmp = \$DscChars[\$i]; \$DscChars[\$i] = \$DscChars[\$j]; \$DscChars[\$j] = \$tmp
|
|
129
|
+
}
|
|
130
|
+
\$DscPassword = -join \$DscChars
|
|
131
|
+
\$DscSecure = ConvertTo-SecureString -String \$DscPassword -AsPlainText -Force
|
|
132
|
+
|
|
133
|
+
# ── 3. 账号:新建立刻是禁用态;已存在则重置密码并强制回禁用(中断后重跑的关键)──
|
|
134
|
+
\$DscExisting = Get-LocalUser -Name \$DscAccount -ErrorAction SilentlyContinue
|
|
135
|
+
if (\$null -eq \$DscExisting) {
|
|
136
|
+
New-LocalUser -Name \$DscAccount -Password \$DscSecure -Description \$DscAccountDescription -PasswordNeverExpires -UserMayNotChangePassword -Disabled | Out-Null
|
|
137
|
+
} else {
|
|
138
|
+
Set-LocalUser -Name \$DscAccount -Password \$DscSecure -PasswordNeverExpires \$true
|
|
139
|
+
Disable-LocalUser -Name \$DscAccount
|
|
140
|
+
}
|
|
141
|
+
\$DscSid = (Get-LocalUser -Name \$DscAccount).Sid.Value
|
|
142
|
+
if (\$DscSid -notlike 'S-1-5-21-*') {
|
|
143
|
+
throw "沙箱账号 SID 形状不对(本地账号应以 S-1-5-21- 开头):\$DscSid"
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
# ── 4. 进组:Users(按 SID 找,免得撞上本地化组名)+ dsc 自己的组;按 SID 比对成员,已在组里就跳过 ──
|
|
147
|
+
\$DscGroupTargets = @(\$DscGroup)
|
|
148
|
+
\$DscUsersGroup = Get-LocalGroup -SID 'S-1-5-32-545' -ErrorAction SilentlyContinue
|
|
149
|
+
if (\$null -ne \$DscUsersGroup) { \$DscGroupTargets += \$DscUsersGroup.Name }
|
|
150
|
+
foreach (\$g in \$DscGroupTargets) {
|
|
151
|
+
\$DscMemberSids = @(Get-LocalGroupMember -Group \$g -ErrorAction SilentlyContinue | ForEach-Object { \$_.SID.Value })
|
|
152
|
+
if (\$DscMemberSids -notcontains \$DscSid) {
|
|
153
|
+
Add-LocalGroupMember -Group \$g -Member \$DscAccount | Out-Null
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
# ── 5. 从登录界面藏起来(SpecialAccounts\\UserList;只影响登录界面列表,不禁用账号)──
|
|
158
|
+
\$DscWinlogonKey = 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList'
|
|
159
|
+
if (-not (Test-Path \$DscWinlogonKey)) { New-Item -Path \$DscWinlogonKey -Force | Out-Null }
|
|
160
|
+
New-ItemProperty -Path \$DscWinlogonKey -Name \$DscAccount -PropertyType DWord -Value 0 -Force | Out-Null
|
|
161
|
+
|
|
162
|
+
# ── 6. 密码用 DPAPI(CurrentUser)加密后落盘:提权只是提升完整性,还是同一个用户的 DPAPI 密钥,
|
|
163
|
+
# 所以之后免提权也能解开 ──
|
|
164
|
+
try {
|
|
165
|
+
Add-Type -AssemblyName System.Security -ErrorAction Stop
|
|
166
|
+
} catch {
|
|
167
|
+
Add-Type -AssemblyName System.Security.Cryptography.ProtectedData -ErrorAction Stop
|
|
168
|
+
}
|
|
169
|
+
\$DscPlain = [System.Text.Encoding]::UTF8.GetBytes(\$DscPassword)
|
|
170
|
+
\$DscBlob = [System.Security.Cryptography.ProtectedData]::Protect(\$DscPlain, \$null, [System.Security.Cryptography.DataProtectionScope]::CurrentUser)
|
|
171
|
+
[System.IO.File]::WriteAllBytes(\$DscSecretPath, \$DscBlob)
|
|
172
|
+
\$DscPassword = \$null
|
|
173
|
+
|
|
174
|
+
# ── 7. 防火墙 5 条:全部按账号 SID 限定作用域(LocalUser 的 SDDL 掩码 CC 就是 0x1 = FWP_ACTRL_MATCH_FILTER 同款语义)──
|
|
175
|
+
# 代理端口的放行靠「block 规则的端口补集」,不靠 allow 规则——Windows 防火墙里显式 block 优先于 allow。
|
|
176
|
+
${firewallBlock}
|
|
177
|
+
\$DscRuleCount = @(Get-NetFirewallRule -Name \$DscRuleNames -ErrorAction SilentlyContinue).Count
|
|
178
|
+
if (\$DscRuleCount -ne \$DscRuleNames.Count) {
|
|
179
|
+
throw "防火墙规则只装上 \$DscRuleCount / \$(\$DscRuleNames.Count) 条"
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
# ── 8. WFP:持久 provider + sublayer + 12 条 BLOCK filter,单事务提交(内嵌 C#,见下面的 P/Invoke)──
|
|
183
|
+
\$DscWfpSource = @'
|
|
184
|
+
${WFP_CSHARP_SOURCE}
|
|
185
|
+
'@
|
|
186
|
+
Add-Type -TypeDefinition \$DscWfpSource -Language CSharp
|
|
187
|
+
\$DscLayout = [DscWfp]::SelfTest()
|
|
188
|
+
if (-not \$DscLayout.StartsWith('OK')) { throw "WFP 结构体布局自检没通过:\$DscLayout" }
|
|
189
|
+
\$DscInstalled = [DscWfp]::Install(\$DscAccount, \$DscSid, \$DscProviderGuid, \$DscSublayerGuid, \$DscFilters)
|
|
190
|
+
if (\$DscInstalled -ne \$DscFilters.Count) {
|
|
191
|
+
throw "WFP filter 只装上 \$DscInstalled / \$(\$DscFilters.Count) 条"
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
# ── 9. 账本:写在这里而不是最后,是为了让「账号已启用」必然蕴含「账本已在」──
|
|
195
|
+
\$DscState = [ordered]@{
|
|
196
|
+
version = ${String(DSC_SETUP_STATE_VERSION)}
|
|
197
|
+
account = \$DscAccount
|
|
198
|
+
sid = \$DscSid
|
|
199
|
+
proxyPort = \$DscProxyPort
|
|
200
|
+
firewallRules = \$DscRuleNames
|
|
201
|
+
wfpProviderGuid = \$DscProviderGuid
|
|
202
|
+
wfpSublayerGuid = \$DscSublayerGuid
|
|
203
|
+
wfpFilterCount = \$DscInstalled
|
|
204
|
+
at = (Get-Date).ToUniversalTime().ToString('o')
|
|
205
|
+
}
|
|
206
|
+
\$DscJson = \$DscState | ConvertTo-Json -Depth 5
|
|
207
|
+
\$DscStateTmp = (\$DscStatePath + '.tmp')
|
|
208
|
+
# 不带 BOM 的 UTF-8:PowerShell 5.1 的 -Encoding UTF8 会写 BOM,node 侧 JSON.parse 会直接报错
|
|
209
|
+
[System.IO.File]::WriteAllText(\$DscStateTmp, \$DscJson, (New-Object System.Text.UTF8Encoding(\$false)))
|
|
210
|
+
Move-Item -Path \$DscStateTmp -Destination \$DscStatePath -Force
|
|
211
|
+
|
|
212
|
+
# ── 10. 最后一步:解禁。走到这里说明布防全部成功了 ──
|
|
213
|
+
Enable-LocalUser -Name \$DscAccount
|
|
214
|
+
|
|
215
|
+
Write-Output ('dsc 沙箱二级网络管控布防完成:账号 {0}({1}),防火墙 {2} 条,WFP filter {3} 条,代理端口 {4},账本 {5}' -f \$DscAccount, \$DscSid, \$DscRuleCount, \$DscInstalled, \$DscProxyPort, \$DscStatePath)
|
|
216
|
+
exit 0
|
|
217
|
+
} catch {
|
|
218
|
+
\$message = ('setup 失败:{0} @ {1}' -f \$_.Exception.Message, \$_.InvocationInfo.PositionMessage)
|
|
219
|
+
Write-DscSetupError \$message
|
|
220
|
+
# 用 [Console]::Error 而不是 Write-Error:$ErrorActionPreference='Stop' 下 Write-Error 自己也会抛,
|
|
221
|
+
# 那样就走不到 exit 1 了(虽然 PowerShell 最终也会以非零码退出,但把语义写明确更好)
|
|
222
|
+
[Console]::Error.WriteLine(\$message)
|
|
223
|
+
exit 1
|
|
224
|
+
}
|
|
225
|
+
`;
|
|
226
|
+
}
|
|
227
|
+
/** 生成一条 New-NetFirewallRule 调用(单行,避免 PowerShell 续行符那点麻烦)。 */
|
|
228
|
+
function renderFirewallRule(rule) {
|
|
229
|
+
const parts = [
|
|
230
|
+
'New-NetFirewallRule',
|
|
231
|
+
`-Name '${rule.name}'`,
|
|
232
|
+
`-DisplayName '${rule.displayName}'`,
|
|
233
|
+
`-Description 'dsc 沙箱账号网络围栏(二级网络管控,由 dsc setup 生成)'`,
|
|
234
|
+
`-Direction ${rule.direction}`,
|
|
235
|
+
'-Action Block',
|
|
236
|
+
'-Enabled True',
|
|
237
|
+
'-Profile Any',
|
|
238
|
+
`-Protocol ${rule.protocol}`,
|
|
239
|
+
'-LocalUser "O:LSD:(A;;CC;;;$DscSid)"',
|
|
240
|
+
`-RemoteAddresses '${rule.remoteAddresses}'`,
|
|
241
|
+
];
|
|
242
|
+
if (rule.remotePorts !== null)
|
|
243
|
+
parts.push(`-RemotePorts '${rule.remotePorts}'`);
|
|
244
|
+
return parts.join(' ');
|
|
245
|
+
}
|
|
246
|
+
/** GUID 字面量校验(生成脚本前就挡掉,别让 PowerShell 那边报看不懂的错)。 */
|
|
247
|
+
function assertGuid(guid, label) {
|
|
248
|
+
if (!/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(guid)) {
|
|
249
|
+
throw new Error(`buildSetupScript:${label} 不是合法 GUID 字面量:${JSON.stringify(guid)}`);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
// ── 并发互斥:同一个用户点两次「安装」不能并发建账号/装规则 ────────────────────
|
|
253
|
+
/**
|
|
254
|
+
* 互斥体名字:`Local\` 前缀(会话命名空间)。
|
|
255
|
+
*
|
|
256
|
+
* 不用 `Global\`:那要 SeCreateGlobalPrivilege,普通提权会话也未必有;而安装本来就是
|
|
257
|
+
* 「同一个登录会话里的两个 dsc 窗口别撞车」,会话内互斥正好够用。
|
|
258
|
+
*/
|
|
259
|
+
export const SETUP_MUTEX_NAME = 'Local\\dsc-sandbox-setup';
|
|
260
|
+
/** 已经有人拿着互斥体时给用户看的那句话(安装与卸载共用)。 */
|
|
261
|
+
export const SETUP_BUSY_DETAIL = '另一个沙箱安装正在运行,等它结束再试';
|
|
262
|
+
/** `CreateMutexW` 的「同名已存在」错误码(GetLastError 读到它,句柄其实照样给了)。 */
|
|
263
|
+
const ERROR_ALREADY_EXISTS = 183;
|
|
264
|
+
/** 不需要互斥时的空实现(非 Windows / koffi 缺失:那种环境本来也跑不了提权 setup)。 */
|
|
265
|
+
const NOOP_MUTEX = { release: () => { } };
|
|
266
|
+
/**
|
|
267
|
+
* 拿一把命名互斥体(`acquireSetupMutex` 的返回形状用于 try/finally)。
|
|
268
|
+
*
|
|
269
|
+
* 判定「已有别人拿着」靠 `GetLastError() === ERROR_ALREADY_EXISTS(183)`:CreateMutexW
|
|
270
|
+
* 在重名时**仍然**返回一个有效句柄,只看返回值会把并发安装放过去。
|
|
271
|
+
* 无论成败,本函数都不泄漏句柄:被拒时立刻关掉自己那份。
|
|
272
|
+
*
|
|
273
|
+
* 自检可以直接连调两次:第二次必然被拒(同线程重入也照样返回 183)。
|
|
274
|
+
*/
|
|
275
|
+
export function acquireSetupMutex(name = SETUP_MUTEX_NAME) {
|
|
276
|
+
if (process.platform !== 'win32')
|
|
277
|
+
return { ok: true, mutex: NOOP_MUTEX };
|
|
278
|
+
let bound;
|
|
279
|
+
try {
|
|
280
|
+
const loaded = tryLoadFfi();
|
|
281
|
+
// koffi 缺失时退化:这条路径上受限令牌后端本身也起不来,用「锁的问题」挡住安装没有意义
|
|
282
|
+
if (!loaded.ok)
|
|
283
|
+
return { ok: true, mutex: NOOP_MUTEX };
|
|
284
|
+
bound = bindAll(loaded.ffi);
|
|
285
|
+
}
|
|
286
|
+
catch {
|
|
287
|
+
return { ok: true, mutex: NOOP_MUTEX };
|
|
288
|
+
}
|
|
289
|
+
let handle = 0;
|
|
290
|
+
try {
|
|
291
|
+
handle = Number(bound.createMutexW(null, 1, utf16Buffer(name)));
|
|
292
|
+
}
|
|
293
|
+
catch (error) {
|
|
294
|
+
return { ok: false, why: `CreateMutexW 调用失败:${errorText(error)}` };
|
|
295
|
+
}
|
|
296
|
+
if (handle === 0) {
|
|
297
|
+
let why = 'CreateMutexW 返回空句柄';
|
|
298
|
+
try {
|
|
299
|
+
const code = Number(bound.getLastLastError()) >>> 0;
|
|
300
|
+
why = `CreateMutexW 返回空句柄(Win32 错误码 ${String(code)})`;
|
|
301
|
+
}
|
|
302
|
+
catch {
|
|
303
|
+
/* 拿不到错误码就按空句柄报 */
|
|
304
|
+
}
|
|
305
|
+
return { ok: false, why };
|
|
306
|
+
}
|
|
307
|
+
let existing = false;
|
|
308
|
+
try {
|
|
309
|
+
existing = (Number(bound.getLastLastError()) >>> 0) === ERROR_ALREADY_EXISTS;
|
|
310
|
+
}
|
|
311
|
+
catch {
|
|
312
|
+
// 读不到 GetLastError 时按「没人持有」处理:宁可并发一次,也不让锁的读错误挡住安装
|
|
313
|
+
existing = false;
|
|
314
|
+
}
|
|
315
|
+
if (existing) {
|
|
316
|
+
// 重名时我们拿到的是同一把互斥体的另一个句柄,自己关掉,别顺手把别人的锁放了
|
|
317
|
+
try {
|
|
318
|
+
bound.closeHandle(handle);
|
|
319
|
+
}
|
|
320
|
+
catch {
|
|
321
|
+
/* 关不掉也不影响结论 */
|
|
322
|
+
}
|
|
323
|
+
return { ok: false, why: SETUP_BUSY_DETAIL };
|
|
324
|
+
}
|
|
325
|
+
let released = false;
|
|
326
|
+
const mutex = {
|
|
327
|
+
release: () => {
|
|
328
|
+
if (released)
|
|
329
|
+
return;
|
|
330
|
+
released = true;
|
|
331
|
+
try {
|
|
332
|
+
bound.releaseMutex(handle);
|
|
333
|
+
}
|
|
334
|
+
catch {
|
|
335
|
+
// 不是本线程持有(或已被系统回收)时 ReleaseMutex 会失败;句柄照关
|
|
336
|
+
}
|
|
337
|
+
try {
|
|
338
|
+
bound.closeHandle(handle);
|
|
339
|
+
}
|
|
340
|
+
catch {
|
|
341
|
+
/* 同上:进程退出时系统也会回收 */
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
};
|
|
345
|
+
return { ok: true, mutex };
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* 落盘脚本并提权执行(会弹一次 UAC:`Start-Process -Verb RunAs`)。
|
|
349
|
+
*
|
|
350
|
+
* 结论取自三处:拉起进程的 exit code、`setup-state.json`(成功账本)、`setup-error.txt`(失败原因)。
|
|
351
|
+
* 三处对不上时按「失败」报,并把能看到的信息都写进 detail —— 提权子进程崩了也不能只回一句「失败」。
|
|
352
|
+
*
|
|
353
|
+
* 并发:**提权之前**在当前进程先拿命名互斥体;已有安装在跑就直接返回,不弹 UAC。
|
|
354
|
+
* 成功、失败、抛错三条路都在 finally 里放锁,进程正常活着时锁不会漏。
|
|
355
|
+
*
|
|
356
|
+
* 注意:本任务里**不调用**它(会弹 UAC,且当前 shell 非管理员);这里保证的是代码正确。
|
|
357
|
+
*/
|
|
358
|
+
export async function runSetupElevated(dscHome, options = {}) {
|
|
359
|
+
const gate = acquireSetupMutex();
|
|
360
|
+
if (!gate.ok)
|
|
361
|
+
return { ok: false, detail: gate.why };
|
|
362
|
+
try {
|
|
363
|
+
return await installElevated(dscHome, options);
|
|
364
|
+
}
|
|
365
|
+
finally {
|
|
366
|
+
gate.mutex.release();
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
/** `runSetupElevated` 的正文(不含互斥):落盘脚本 → 提权 → 对三处证据下结论。 */
|
|
370
|
+
async function installElevated(dscHome, options = {}) {
|
|
371
|
+
const scriptPath = setupScriptPath(dscHome);
|
|
372
|
+
let script;
|
|
373
|
+
try {
|
|
374
|
+
script = buildSetupScript({
|
|
375
|
+
dscHome,
|
|
376
|
+
guidProvider: DSC_WFP_PROVIDER_GUID,
|
|
377
|
+
guidSublayer: DSC_WFP_SUBLAYER_GUID,
|
|
378
|
+
...(options.proxyPort === undefined ? {} : { proxyPort: options.proxyPort }),
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
catch (error) {
|
|
382
|
+
return { ok: false, detail: `生成 setup 脚本失败:${errorText(error)}` };
|
|
383
|
+
}
|
|
384
|
+
try {
|
|
385
|
+
mkdirSync(sandboxDir(dscHome), { recursive: true });
|
|
386
|
+
// 必须带 BOM:Windows PowerShell 5.1 只有在看到 BOM 时才按 UTF-8 读 .ps1,
|
|
387
|
+
// 否则会按系统 ANSI 代码页解释,脚本里的中文(显示名、注释)会变乱码甚至解析失败。
|
|
388
|
+
writeFileSync(scriptPath, `\uFEFF${script}`, { encoding: 'utf8' });
|
|
389
|
+
}
|
|
390
|
+
catch (error) {
|
|
391
|
+
return { ok: false, detail: `写 setup 脚本失败(${scriptPath}):${errorText(error)}` };
|
|
392
|
+
}
|
|
393
|
+
// 上一轮的失败记录必须先清掉,否则这一轮的结论会被旧文件带偏
|
|
394
|
+
try {
|
|
395
|
+
rmSync(setupErrorPath(dscHome), { force: true });
|
|
396
|
+
}
|
|
397
|
+
catch (error) {
|
|
398
|
+
return { ok: false, detail: `清理旧 setup-error.txt 失败(${setupErrorPath(dscHome)}):${errorText(error)}` };
|
|
399
|
+
}
|
|
400
|
+
let launcher;
|
|
401
|
+
try {
|
|
402
|
+
launcher = buildElevationLauncher(scriptPath);
|
|
403
|
+
}
|
|
404
|
+
catch (error) {
|
|
405
|
+
return { ok: false, detail: `拼提权命令失败:${errorText(error)}` };
|
|
406
|
+
}
|
|
407
|
+
const outcome = await runPowerShell(launcher, options.timeoutMs ?? 15 * 60 * 1000);
|
|
408
|
+
const state = readSetupState(dscHome);
|
|
409
|
+
const failureText = readSetupErrorText(dscHome);
|
|
410
|
+
if (outcome.timedOut) {
|
|
411
|
+
return { ok: false, detail: `提权 setup 超时未结束(可能在等 UAC 授权,或脚本卡住):${outcome.stderr.trim()}` };
|
|
412
|
+
}
|
|
413
|
+
if (outcome.code === 0 && state !== null && state.ok) {
|
|
414
|
+
return {
|
|
415
|
+
ok: true,
|
|
416
|
+
detail: `提权 setup 成功:账号 ${state.state.account}(${state.state.sid})已启用,防火墙 ${String(state.state.firewallRules.length)} 条,WFP filter ${String(state.state.wfpFilterCount ?? -1)} 条`,
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
const pieces = [`提权 setup 退出码 ${String(outcome.code)}`];
|
|
420
|
+
if (failureText !== '')
|
|
421
|
+
pieces.push(`脚本报错:${failureText}`);
|
|
422
|
+
if (outcome.stderr.trim() !== '')
|
|
423
|
+
pieces.push(`stderr:${outcome.stderr.trim().slice(0, 500)}`);
|
|
424
|
+
if (state === null) {
|
|
425
|
+
pieces.push('没有 setup-state.json(布防没走完)');
|
|
426
|
+
}
|
|
427
|
+
else if (!state.ok) {
|
|
428
|
+
pieces.push(`账本读不动:${state.error}`);
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
pieces.push(`账本在(${state.state.at})但退出码非 0,属半成品,请重跑 setup`);
|
|
432
|
+
}
|
|
433
|
+
return { ok: false, detail: pieces.join(';') };
|
|
434
|
+
}
|
|
435
|
+
/** `~/.dsc/sandbox/uninstall.ps1`:卸载脚本的落盘位置(与 setup.ps1 同目录,便于审计)。 */
|
|
436
|
+
export function uninstallScriptPath(dscHome) {
|
|
437
|
+
return join(sandboxDir(dscHome), 'uninstall.ps1');
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* 生成卸载脚本(纯函数:同样的入参给同样的文本)。
|
|
441
|
+
*
|
|
442
|
+
* 四类动作按「先拆对象、最后删账本」排:账号(含组与登录界面隐藏项)→ 防火墙规则 →
|
|
443
|
+
* WFP filter/sublayer/provider → 状态文件。账本放最后删,这样中途失败时
|
|
444
|
+
* `readSetupState` 仍然说「装过」,设置页的卸载按钮不会凭空消失、可以重试。
|
|
445
|
+
*
|
|
446
|
+
* **失败原因写进 setup-error.txt**(与 setup 同一份口径、同一个函数名),提权窗口一闪而过,
|
|
447
|
+
* 控制台输出经常来不及看。
|
|
448
|
+
*/
|
|
449
|
+
export function buildUninstallScript(options) {
|
|
450
|
+
const dscHome = options.dscHome;
|
|
451
|
+
if (typeof dscHome !== 'string' || dscHome === '') {
|
|
452
|
+
throw new Error('buildUninstallScript:dscHome 必须是非空字符串');
|
|
453
|
+
}
|
|
454
|
+
if (dscHome.includes("'") || /[\r\n]/.test(dscHome)) {
|
|
455
|
+
throw new Error(`buildUninstallScript:dscHome 不能含单引号或换行(会破坏生成的 PowerShell 文本):${JSON.stringify(dscHome)}`);
|
|
456
|
+
}
|
|
457
|
+
const account = options.account ?? DSC_SANDBOX_ACCOUNT;
|
|
458
|
+
if (account.includes("'") || /[\r\n]/.test(account)) {
|
|
459
|
+
throw new Error(`buildUninstallScript:账号名不能含单引号或换行:${JSON.stringify(account)}`);
|
|
460
|
+
}
|
|
461
|
+
const guidProvider = options.guidProvider ?? DSC_WFP_PROVIDER_GUID;
|
|
462
|
+
const guidSublayer = options.guidSublayer ?? DSC_WFP_SUBLAYER_GUID;
|
|
463
|
+
assertGuid(guidProvider, 'guidProvider');
|
|
464
|
+
assertGuid(guidSublayer, 'guidSublayer');
|
|
465
|
+
const ruleNameList = firewallRuleSpecs(options.proxyPort ?? DSC_SANDBOX_DEFAULT_PROXY_PORT)
|
|
466
|
+
.map((rule) => `'${rule.name}'`)
|
|
467
|
+
.join(', ');
|
|
468
|
+
// filter 的 key 是安装时那批硬编码 GUID(net-abi 里一次生成、永不变),卸载按同一批 key 删
|
|
469
|
+
const filterKeyList = DSC_WFP_FILTERS.map((spec) => `'${spec.key}'`).join(', ');
|
|
470
|
+
return `# dsc 沙箱「网络管控第二级」卸载脚本。
|
|
471
|
+
# 由 src/packages/sandbox/win/setup.ts 的 buildUninstallScript() 生成 —— 要看改了什么就看那个函数,别手改本文件。
|
|
472
|
+
#
|
|
473
|
+
# 四类动作:删账号(含组与登录界面隐藏项)→ 删防火墙规则 → 删 WFP filter/sublayer/provider → 删状态文件。
|
|
474
|
+
# 任何一步失败都会写 ~/.dsc/sandbox/setup-error.txt 并 exit 1;重跑本脚本幂等。
|
|
475
|
+
\$ErrorActionPreference = 'Stop'
|
|
476
|
+
\$DscHome = '${dscHome}'
|
|
477
|
+
\$DscSandboxDir = Join-Path \$DscHome 'sandbox'
|
|
478
|
+
\$DscAccount = '${account}'
|
|
479
|
+
\$DscGroup = '${DSC_SANDBOX_GROUP}'
|
|
480
|
+
\$DscProviderGuid = '${guidProvider}'
|
|
481
|
+
\$DscSublayerGuid = '${guidSublayer}'
|
|
482
|
+
\$DscScriptPath = Join-Path \$DscSandboxDir 'setup.ps1'
|
|
483
|
+
\$DscStatePath = Join-Path \$DscSandboxDir 'setup-state.json'
|
|
484
|
+
\$DscSecretPath = Join-Path \$DscSandboxDir 'account.bin'
|
|
485
|
+
\$DscErrorPath = Join-Path \$DscSandboxDir 'setup-error.txt'
|
|
486
|
+
\$DscRuleNames = @(${ruleNameList})
|
|
487
|
+
\$DscFilterKeys = @(${filterKeyList})
|
|
488
|
+
|
|
489
|
+
function Write-DscUninstallError([string]\$Message) {
|
|
490
|
+
# 与 setup 同口径:失败原因单独落一个文件,提权窗口一闪而过,控制台经常来不及看
|
|
491
|
+
try {
|
|
492
|
+
New-Item -ItemType Directory -Force -Path \$DscSandboxDir | Out-Null
|
|
493
|
+
\$text = ('[{0}] {1}' -f (Get-Date).ToUniversalTime().ToString('o'), \$Message)
|
|
494
|
+
[System.IO.File]::WriteAllText(\$DscErrorPath, \$text, (New-Object System.Text.UTF8Encoding(\$false)))
|
|
495
|
+
} catch {
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
try {
|
|
500
|
+
New-Item -ItemType Directory -Force -Path \$DscSandboxDir | Out-Null
|
|
501
|
+
|
|
502
|
+
# ── 1. 账号:不存在就跳过(局部删干净也不影响后面的规则清理)──
|
|
503
|
+
\$DscUser = Get-LocalUser -Name \$DscAccount -ErrorAction SilentlyContinue
|
|
504
|
+
if (\$null -eq \$DscUser) {
|
|
505
|
+
Write-Output ('账号 {0} 本就不存在,跳过' -f \$DscAccount)
|
|
506
|
+
} else {
|
|
507
|
+
if (\$null -ne (Get-LocalGroup -Name \$DscGroup -ErrorAction SilentlyContinue)) {
|
|
508
|
+
Remove-LocalGroupMember -Group \$DscGroup -Member \$DscAccount -ErrorAction SilentlyContinue
|
|
509
|
+
}
|
|
510
|
+
Remove-LocalUser -Name \$DscAccount -ErrorAction Stop
|
|
511
|
+
Write-Output ('已删除账号 {0}' -f \$DscAccount)
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
# 登录界面上的隐藏项(SpecialAccounts\\UserList),账号没了它就成了死条目
|
|
515
|
+
\$DscWinlogonKey = 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList'
|
|
516
|
+
if (Test-Path \$DscWinlogonKey) {
|
|
517
|
+
Remove-ItemProperty -Path \$DscWinlogonKey -Name \$DscAccount -ErrorAction SilentlyContinue
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
# 组:成员都删掉之后再删组
|
|
521
|
+
if (\$null -ne (Get-LocalGroup -Name \$DscGroup -ErrorAction SilentlyContinue)) {
|
|
522
|
+
Remove-LocalGroup -Name \$DscGroup -ErrorAction Stop
|
|
523
|
+
Write-Output ('已删除账号组 {0}' -f \$DscGroup)
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
# ── 2. 防火墙规则:按名字删(生成的 5 条 + 账本里记的),再按显示名前缀兜一遍 ──
|
|
527
|
+
\$DscFromState = @()
|
|
528
|
+
if (Test-Path \$DscStatePath) {
|
|
529
|
+
try { \$DscFromState = @((Get-Content -Raw -Path \$DscStatePath | ConvertFrom-Json).firewallRules) } catch { }
|
|
530
|
+
}
|
|
531
|
+
\$DscAllRules = @(@(\$DscRuleNames) + @(\$DscFromState) | Where-Object { \$_ -ne \$null -and "\$_" -ne '' } | Select-Object -Unique)
|
|
532
|
+
if (\$DscAllRules.Count -gt 0) {
|
|
533
|
+
Remove-NetFirewallRule -Name \$DscAllRules -ErrorAction SilentlyContinue
|
|
534
|
+
}
|
|
535
|
+
Get-NetFirewallRule -ErrorAction SilentlyContinue |
|
|
536
|
+
Where-Object { \$_.DisplayName -ne \$null -and \$_.DisplayName.StartsWith('[dsc] 沙箱') } |
|
|
537
|
+
Remove-NetFirewallRule -ErrorAction SilentlyContinue
|
|
538
|
+
\$DscRulesLeft = @(\$DscAllRules | ForEach-Object { Get-NetFirewallRule -Name \$_ -ErrorAction SilentlyContinue }).Count
|
|
539
|
+
if (\$DscRulesLeft -ne 0) { throw ('防火墙规则还剩 {0} 条没删掉' -f \$DscRulesLeft) }
|
|
540
|
+
Write-Output ('已删除防火墙规则 {0} 条' -f \$DscAllRules.Count)
|
|
541
|
+
|
|
542
|
+
# ── 3. WFP:filter → sublayer → provider,单事务;不存在的对象跳过(幂等)──
|
|
543
|
+
\$DscWfpSource = @'
|
|
544
|
+
${WFP_CSHARP_SOURCE}
|
|
545
|
+
'@
|
|
546
|
+
Add-Type -TypeDefinition \$DscWfpSource -Language CSharp
|
|
547
|
+
\$DscRemoved = [DscWfp]::Uninstall(\$DscProviderGuid, \$DscSublayerGuid, \$DscFilterKeys)
|
|
548
|
+
Write-Output ('已删除 WFP 对象 {0} 个' -f \$DscRemoved)
|
|
549
|
+
|
|
550
|
+
# ── 4. 状态文件:最后删。删掉 setup-state.json 就等于「这台机器没装过」──
|
|
551
|
+
foreach (\$DscFile in @(\$DscStatePath, \$DscSecretPath, \$DscErrorPath, \$DscScriptPath)) {
|
|
552
|
+
Remove-Item -LiteralPath \$DscFile -Force -ErrorAction SilentlyContinue
|
|
553
|
+
}
|
|
554
|
+
if (Test-Path \$DscStatePath) { throw 'setup-state.json 还在,卸载没走完' }
|
|
555
|
+
|
|
556
|
+
Write-Output 'dsc 沙箱二级网络管控已卸载:账号、防火墙规则、WFP filter 与状态文件都已清掉'
|
|
557
|
+
exit 0
|
|
558
|
+
} catch {
|
|
559
|
+
\$message = ('卸载失败:{0} @ {1}' -f \$_.Exception.Message, \$_.InvocationInfo.PositionMessage)
|
|
560
|
+
Write-DscUninstallError \$message
|
|
561
|
+
[Console]::Error.WriteLine(\$message)
|
|
562
|
+
exit 1
|
|
563
|
+
}
|
|
564
|
+
`;
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* 落盘卸载脚本并以管理员身份执行(同样弹一次 UAC)。
|
|
568
|
+
*
|
|
569
|
+
* 结论与 setup 同形:退出码 0 **且** `setup-state.json` 已经不在了才算成功——
|
|
570
|
+
* 只看退出码的话,脚本中途被杀(或某个 cmdlet 静默失败)会误报「已卸载」。
|
|
571
|
+
*
|
|
572
|
+
* 与 setup 共用同一把命名互斥体:安装与卸载也不能同时跑。
|
|
573
|
+
*/
|
|
574
|
+
export async function runUninstallElevated(dscHome, options = {}) {
|
|
575
|
+
const gate = acquireSetupMutex();
|
|
576
|
+
if (!gate.ok)
|
|
577
|
+
return { ok: false, detail: gate.why };
|
|
578
|
+
try {
|
|
579
|
+
return await uninstallElevated(dscHome, options);
|
|
580
|
+
}
|
|
581
|
+
finally {
|
|
582
|
+
gate.mutex.release();
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
/** `runUninstallElevated` 的正文(不含互斥)。 */
|
|
586
|
+
async function uninstallElevated(dscHome, options) {
|
|
587
|
+
// 账号名与 GUID 优先取账本:账本记的是「当时真正装了什么」,比默认值可信
|
|
588
|
+
const state = readSetupState(dscHome);
|
|
589
|
+
const recorded = state !== null && state.ok ? state.state : null;
|
|
590
|
+
let script;
|
|
591
|
+
try {
|
|
592
|
+
script = buildUninstallScript({
|
|
593
|
+
dscHome,
|
|
594
|
+
...(recorded === null ? {} : {
|
|
595
|
+
account: recorded.account,
|
|
596
|
+
guidProvider: recorded.wfpProviderGuid,
|
|
597
|
+
guidSublayer: recorded.wfpSublayerGuid,
|
|
598
|
+
proxyPort: recorded.proxyPort,
|
|
599
|
+
}),
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
catch (error) {
|
|
603
|
+
return { ok: false, detail: `生成卸载脚本失败:${errorText(error)}` };
|
|
604
|
+
}
|
|
605
|
+
const scriptPath = uninstallScriptPath(dscHome);
|
|
606
|
+
try {
|
|
607
|
+
mkdirSync(sandboxDir(dscHome), { recursive: true });
|
|
608
|
+
// 与 setup 同理:必须带 BOM,否则 PowerShell 5.1 会按 ANSI 代码页读中文
|
|
609
|
+
writeFileSync(scriptPath, `\uFEFF${script}`, { encoding: 'utf8' });
|
|
610
|
+
}
|
|
611
|
+
catch (error) {
|
|
612
|
+
return { ok: false, detail: `写卸载脚本失败(${scriptPath}):${errorText(error)}` };
|
|
613
|
+
}
|
|
614
|
+
try {
|
|
615
|
+
rmSync(setupErrorPath(dscHome), { force: true });
|
|
616
|
+
}
|
|
617
|
+
catch (error) {
|
|
618
|
+
return { ok: false, detail: `清理旧 setup-error.txt 失败(${setupErrorPath(dscHome)}):${errorText(error)}` };
|
|
619
|
+
}
|
|
620
|
+
let launcher;
|
|
621
|
+
try {
|
|
622
|
+
launcher = buildElevationLauncher(scriptPath);
|
|
623
|
+
}
|
|
624
|
+
catch (error) {
|
|
625
|
+
return { ok: false, detail: `拼提权命令失败:${errorText(error)}` };
|
|
626
|
+
}
|
|
627
|
+
const outcome = await runPowerShell(launcher, options.timeoutMs ?? 10 * 60 * 1000);
|
|
628
|
+
const after = readSetupState(dscHome);
|
|
629
|
+
const failureText = readSetupErrorText(dscHome);
|
|
630
|
+
if (outcome.timedOut) {
|
|
631
|
+
return { ok: false, detail: `提权卸载超时未结束(可能在等 UAC 授权,或脚本卡住):${outcome.stderr.trim()}` };
|
|
632
|
+
}
|
|
633
|
+
if (outcome.code === 0 && after === null) {
|
|
634
|
+
return { ok: true, detail: '提权卸载完成:账号、防火墙规则、WFP filter 与状态文件都已清掉' };
|
|
635
|
+
}
|
|
636
|
+
const pieces = [`提权卸载退出码 ${String(outcome.code)}`];
|
|
637
|
+
if (failureText !== '')
|
|
638
|
+
pieces.push(`脚本报错:${failureText}`);
|
|
639
|
+
if (outcome.stderr.trim() !== '')
|
|
640
|
+
pieces.push(`stderr:${outcome.stderr.trim().slice(0, 500)}`);
|
|
641
|
+
if (after !== null) {
|
|
642
|
+
pieces.push(after.ok ? `setup-state.json 还在(${after.state.at}),卸载没走完` : `账本读不动:${after.error}`);
|
|
643
|
+
}
|
|
644
|
+
return { ok: false, detail: pieces.join(';') };
|
|
645
|
+
}
|
|
646
|
+
/** 拼「非提权 PowerShell 拉起提权 PowerShell」的那一行(-Wait -PassThru 后把退出码透传出来)。 */
|
|
647
|
+
function buildElevationLauncher(scriptPath) {
|
|
648
|
+
if (/[\r\n]/.test(scriptPath))
|
|
649
|
+
throw new Error(`setup 脚本路径不能含换行:${JSON.stringify(scriptPath)}`);
|
|
650
|
+
const quoted = `'${scriptPath.replace(/'/g, "''")}'`;
|
|
651
|
+
return [
|
|
652
|
+
'$ErrorActionPreference = "Stop"',
|
|
653
|
+
`$p = Start-Process -FilePath 'powershell.exe' -Verb RunAs -Wait -PassThru -ArgumentList @('-NoProfile','-ExecutionPolicy','Bypass','-File',${quoted})`,
|
|
654
|
+
'exit $p.ExitCode',
|
|
655
|
+
].join('; ');
|
|
656
|
+
}
|
|
657
|
+
/** 系统自带的 Windows PowerShell 5.1(Get-LocalUser / Get-NetFirewallRule / Add-Type 都在它这儿)。 */
|
|
658
|
+
function systemPowerShellPath() {
|
|
659
|
+
const systemRoot = process.env.SystemRoot ?? 'C:\\Windows';
|
|
660
|
+
return join(systemRoot, 'System32', 'WindowsPowerShell', 'v1.0', 'powershell.exe');
|
|
661
|
+
}
|
|
662
|
+
/** 跑一次 powershell -Command,收退出码与输出(带超时,超时就杀)。 */
|
|
663
|
+
function runPowerShell(command, timeoutMs) {
|
|
664
|
+
return new Promise((resolve) => {
|
|
665
|
+
let stdout = '';
|
|
666
|
+
let stderr = '';
|
|
667
|
+
let settled = false;
|
|
668
|
+
const child = spawn(systemPowerShellPath(), ['-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'Bypass', '-Command', command], { windowsHide: true, stdio: ['ignore', 'pipe', 'pipe'] });
|
|
669
|
+
const timer = setTimeout(() => {
|
|
670
|
+
if (!settled) {
|
|
671
|
+
child.kill();
|
|
672
|
+
settled = true;
|
|
673
|
+
resolve({ code: -1, stdout, stderr, timedOut: true });
|
|
674
|
+
}
|
|
675
|
+
}, timeoutMs);
|
|
676
|
+
child.stdout?.on('data', (chunk) => {
|
|
677
|
+
stdout += chunk.toString('utf8');
|
|
678
|
+
});
|
|
679
|
+
child.stderr?.on('data', (chunk) => {
|
|
680
|
+
stderr += chunk.toString('utf8');
|
|
681
|
+
});
|
|
682
|
+
child.on('error', (error) => {
|
|
683
|
+
if (settled)
|
|
684
|
+
return;
|
|
685
|
+
settled = true;
|
|
686
|
+
clearTimeout(timer);
|
|
687
|
+
resolve({ code: -1, stdout, stderr: `${stderr}${errorText(error)}`, timedOut: false });
|
|
688
|
+
});
|
|
689
|
+
child.on('close', (code) => {
|
|
690
|
+
if (settled)
|
|
691
|
+
return;
|
|
692
|
+
settled = true;
|
|
693
|
+
clearTimeout(timer);
|
|
694
|
+
resolve({ code: code ?? -1, stdout, stderr, timedOut: false });
|
|
695
|
+
});
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
/** 读 setup-error.txt(没有就空串;顺手剥掉 BOM)。 */
|
|
699
|
+
function readSetupErrorText(dscHome) {
|
|
700
|
+
try {
|
|
701
|
+
const text = readFileSync(setupErrorPath(dscHome), 'utf8');
|
|
702
|
+
return (text.charCodeAt(0) === 0xfeff ? text.slice(1) : text).trim();
|
|
703
|
+
}
|
|
704
|
+
catch {
|
|
705
|
+
return '';
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
// ── 内嵌 C#:WFP 安装器 ──────────────────────────────────────────────────────
|
|
709
|
+
//
|
|
710
|
+
// 为什么用 C#(而不是 koffi 直接装):装持久 filter 要管理员 + 单事务 + 一堆手写结构体,
|
|
711
|
+
// 这些在提权 PowerShell 里跑最省事(Add-Type 自带 C# 编译器,不用额外分发原生模块),
|
|
712
|
+
// 而 koffi 只留着做免提权读(见 wfp.ts)。
|
|
713
|
+
//
|
|
714
|
+
// **结构体布局是本文件最难的部分**,全部按 Windows SDK 头(fwpmtypes.h/fwptypes.h)逐字段写,
|
|
715
|
+
// 并逐条核对过 windows-sys 0.61.2 的 Rust 定义(同一份 Win32 元数据生成,字段序与 C 头一致)。
|
|
716
|
+
// x64 下的 sizeof 推算如下(MSVC 默认 Pack=8;含指针/uint64 的 union 对齐 8):
|
|
717
|
+
//
|
|
718
|
+
// FWP_BYTE_BLOB = 4(cbData) + 4(补) + 8(pbData) = 16
|
|
719
|
+
// FWPM_DISPLAY_DATA0 = 8(name) + 8(description) = 16
|
|
720
|
+
// FWP_VALUE0 = 4(type) + 4(补,union 里含 UINT64* 故对齐 8) + 8(union) = 16
|
|
721
|
+
// FWPM_FILTER_CONDITION0 = 16(fieldKey) + 4(matchType) + 4(补) + 16(conditionValue)= 40
|
|
722
|
+
// FWPM_ACTION0 = 4(type) + 4(补) + 16(union{GUID|UINT64}) = 24
|
|
723
|
+
// FWPM_FILTER0 = 见下面逐行偏移注释 = 200
|
|
724
|
+
// FWPM_PROVIDER0 = 16+16(displayData)+4+4(补)+16(providerData)+8(service) = 64
|
|
725
|
+
// FWPM_SUBLAYER0 = 16+16+4+4(补)+8(providerKey)+16(providerData)+2(weight)
|
|
726
|
+
// + 6(补到 8 的倍数) = 72
|
|
727
|
+
// EXPLICIT_ACCESS_W = 4+4+4 + 4(补) + 32(TRUSTEE_W) = 48
|
|
728
|
+
// (与仓库已有的 abi.ts 里 EA_OFFSETS 完全一致:ptstrName@40、TrusteeForm@28)
|
|
729
|
+
//
|
|
730
|
+
// 这些数字不是「算得差不多」就行的:C# 里 union 用 Explicit 布局单独声明,外层结构体用
|
|
731
|
+
// Sequential + Pack=8 并把「C 里靠对齐自然出现」的 4 字节补洞写成显式的 pad 字段,
|
|
732
|
+
// 这样 CLR 的打点不会因为自己对齐规则不同而跑偏。SelfTest() 会在装之前把
|
|
733
|
+
// 每个 sizeof 与关键字段偏移都验一遍,对不上就抛(宁可不装,也不装一份条件错位的 filter)。
|
|
734
|
+
const WFP_CSHARP_SOURCE = `using System;
|
|
735
|
+
using System.Collections.Generic;
|
|
736
|
+
using System.Globalization;
|
|
737
|
+
using System.Runtime.InteropServices;
|
|
738
|
+
using System.Text;
|
|
739
|
+
|
|
740
|
+
// dsc 沙箱网络管控第二级:WFP 持久 provider + sublayer + 12 条 BLOCK filter 的安装器。
|
|
741
|
+
// 全部条件都以 ALE_USER_ID(SD 主体 = 沙箱账号 SID)限定,只影响沙箱账号。
|
|
742
|
+
public static class DscWfp
|
|
743
|
+
{
|
|
744
|
+
// ── 常量(与 net-abi.ts 同源;值取自 Windows SDK,已与 windows-sys 0.61.2 逐条核对)──
|
|
745
|
+
// FWP_ACTION_BLOCK 是 0x1001 而不是 0x1:0x1000 是 FWP_ACTION_FLAG_TERMINATING。
|
|
746
|
+
private const uint FWP_ACTION_BLOCK = 0x1001;
|
|
747
|
+
private const int FWP_MATCH_EQUAL = 0;
|
|
748
|
+
private const int FWP_EMPTY = 0;
|
|
749
|
+
private const int FWP_UINT8 = 1;
|
|
750
|
+
private const int FWP_UINT16 = 2;
|
|
751
|
+
private const int FWP_SECURITY_DESCRIPTOR_TYPE = 14;
|
|
752
|
+
private const uint FWPM_FILTER_FLAG_PERSISTENT = 0x1;
|
|
753
|
+
private const uint FWPM_PROVIDER_FLAG_PERSISTENT = 0x1;
|
|
754
|
+
private const uint FWPM_SUBLAYER_FLAG_PERSISTENT = 0x1;
|
|
755
|
+
private const uint FWP_ACTRL_MATCH_FILTER = 0x1;
|
|
756
|
+
private const uint GRANT_ACCESS = 2;
|
|
757
|
+
private const uint RPC_C_AUTHN_WINNT = 10;
|
|
758
|
+
private const ushort DSC_SUBLAYER_WEIGHT = 0x8000;
|
|
759
|
+
private const uint FWP_E_FILTER_NOT_FOUND = 0x80320003;
|
|
760
|
+
private const uint FWP_E_PROVIDER_NOT_FOUND = 0x80320005;
|
|
761
|
+
private const uint FWP_E_SUBLAYER_NOT_FOUND = 0x80320007;
|
|
762
|
+
private const uint FWP_E_NOT_FOUND = 0x80320008;
|
|
763
|
+
private const uint FWP_E_ALREADY_EXISTS = 0x80320009;
|
|
764
|
+
private const uint FWP_E_IN_USE = 0x8032000a;
|
|
765
|
+
private const int AclSizeInformation = 2;
|
|
766
|
+
private const string ProviderName = "dsc Windows Sandbox WFP";
|
|
767
|
+
private const string SublayerName = "dsc Windows Sandbox WFP";
|
|
768
|
+
private const string ProviderDescription = "dsc 沙箱网络管控的持久 WFP provider";
|
|
769
|
+
private const string SublayerDescription = "dsc 沙箱网络管控的持久 WFP sublayer(12 条 BLOCK filter 挂这里)";
|
|
770
|
+
|
|
771
|
+
// 条件 GUID(Windows 官方常量,fwpmu.h)
|
|
772
|
+
private static readonly Guid CondAleUserId = new Guid("af043a0a-b34d-4f86-979c-c90371af6e66");
|
|
773
|
+
private static readonly Guid CondIpProtocol = new Guid("3971ef2b-623e-4f9a-8cb1-6e79b806b9a7");
|
|
774
|
+
private static readonly Guid CondIpRemotePort = new Guid("c35a604d-d22b-4e1a-91b4-68f674ee674b");
|
|
775
|
+
|
|
776
|
+
// ── 结构体(x64,Pack=8;sizeof 推算见 setup.ts 顶部注释)──
|
|
777
|
+
|
|
778
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
779
|
+
internal struct FWP_BYTE_BLOB // 16:size@0,data@8
|
|
780
|
+
{
|
|
781
|
+
public uint size;
|
|
782
|
+
public IntPtr data;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
786
|
+
internal struct FWPM_DISPLAY_DATA0 // 16:name@0,description@8
|
|
787
|
+
{
|
|
788
|
+
public IntPtr name;
|
|
789
|
+
public IntPtr description;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
// FWP_VALUE0 / FWP_CONDITION_VALUE0 的匿名 union:x64 上取最大成员(指针)= 8 字节。
|
|
793
|
+
// 数值型条件(UINT8/UINT16)也走这里:小端下低地址就是最低字节,所以写 sd 这个指针槽
|
|
794
|
+
// 等于把协议号/端口号写进了 union 的低位,读法一致。
|
|
795
|
+
[StructLayout(LayoutKind.Explicit, Pack = 8)]
|
|
796
|
+
internal struct FWP_VALUE0_UNION // 8
|
|
797
|
+
{
|
|
798
|
+
[FieldOffset(0)] public byte uint8;
|
|
799
|
+
[FieldOffset(0)] public ushort uint16;
|
|
800
|
+
[FieldOffset(0)] public uint uint32;
|
|
801
|
+
[FieldOffset(0)] public IntPtr sd;
|
|
802
|
+
[FieldOffset(0)] public IntPtr uint64;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
806
|
+
internal struct FWP_VALUE0 // 16:type@0,补 4,union@8
|
|
807
|
+
{
|
|
808
|
+
public int type;
|
|
809
|
+
private int pad0;
|
|
810
|
+
public FWP_VALUE0_UNION value;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
814
|
+
internal struct FWPM_FILTER_CONDITION0 // 40:fieldKey@0,matchType@16,补 4,conditionValue@24
|
|
815
|
+
{
|
|
816
|
+
public Guid fieldKey;
|
|
817
|
+
public int matchType;
|
|
818
|
+
private int pad0;
|
|
819
|
+
public FWP_VALUE0 conditionValue; // FWP_CONDITION_VALUE0 与 FWP_VALUE0 同布局
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
[StructLayout(LayoutKind.Explicit, Pack = 8)]
|
|
823
|
+
internal struct FWPM_ACTION0_UNION // 16:filterType(GUID) / calloutKey(UINT64) 叠在一起
|
|
824
|
+
{
|
|
825
|
+
[FieldOffset(0)] public Guid filterType;
|
|
826
|
+
[FieldOffset(0)] public ulong calloutKey;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
830
|
+
internal struct FWPM_ACTION0 // 24:type@0,补 4,union@8
|
|
831
|
+
{
|
|
832
|
+
public uint type;
|
|
833
|
+
private uint pad0;
|
|
834
|
+
public FWPM_ACTION0_UNION action;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
[StructLayout(LayoutKind.Explicit, Pack = 8)]
|
|
838
|
+
internal struct FWPM_FILTER0_UNION // 16:rawContext(UINT64) / providerContextKey(GUID)
|
|
839
|
+
{
|
|
840
|
+
[FieldOffset(0)] public ulong rawContext;
|
|
841
|
+
[FieldOffset(0)] public Guid providerContextKey;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
845
|
+
internal struct FWPM_FILTER0 // 200
|
|
846
|
+
{
|
|
847
|
+
public Guid filterKey; // 0 .. 16
|
|
848
|
+
public FWPM_DISPLAY_DATA0 displayData; // 16 .. 32
|
|
849
|
+
public uint flags; // 32 .. 36
|
|
850
|
+
private uint pad0; // 36 .. 40(providerKey 是指针,C 里自然补 4)
|
|
851
|
+
public IntPtr providerKey; // 40 .. 48
|
|
852
|
+
public FWP_BYTE_BLOB providerData; // 48 .. 64
|
|
853
|
+
public Guid layerKey; // 64 .. 80
|
|
854
|
+
public Guid subLayerKey; // 80 .. 96
|
|
855
|
+
public FWP_VALUE0 weight; // 96 .. 112(对齐 8)
|
|
856
|
+
public uint numFilterConditions; // 112 .. 116
|
|
857
|
+
private uint pad1; // 116 .. 120(filterCondition 是指针)
|
|
858
|
+
public IntPtr filterCondition; // 120 .. 128
|
|
859
|
+
public FWPM_ACTION0 action; // 128 .. 152
|
|
860
|
+
public FWPM_FILTER0_UNION anon; // 152 .. 168
|
|
861
|
+
public IntPtr reserved; // 168 .. 176
|
|
862
|
+
public ulong filterId; // 176 .. 184
|
|
863
|
+
public FWP_VALUE0 effectiveWeight; // 184 .. 200
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
867
|
+
internal struct FWPM_PROVIDER0 // 64
|
|
868
|
+
{
|
|
869
|
+
public Guid providerKey; // 0 .. 16
|
|
870
|
+
public FWPM_DISPLAY_DATA0 displayData; // 16 .. 32
|
|
871
|
+
public uint flags; // 32 .. 36
|
|
872
|
+
private uint pad0; // 36 .. 40
|
|
873
|
+
public FWP_BYTE_BLOB providerData; // 40 .. 56
|
|
874
|
+
public IntPtr serviceName; // 56 .. 64
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
878
|
+
internal struct FWPM_SUBLAYER0 // 72(weight 之后补 6 字节到 8 的倍数,CLR 自动补)
|
|
879
|
+
{
|
|
880
|
+
public Guid subLayerKey; // 0 .. 16
|
|
881
|
+
public FWPM_DISPLAY_DATA0 displayData; // 16 .. 32
|
|
882
|
+
public uint flags; // 32 .. 36
|
|
883
|
+
private uint pad0; // 36 .. 40
|
|
884
|
+
public IntPtr providerKey; // 40 .. 48
|
|
885
|
+
public FWP_BYTE_BLOB providerData; // 48 .. 64
|
|
886
|
+
public ushort weight; // 64 .. 66
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
890
|
+
internal struct TRUSTEE_W // 32
|
|
891
|
+
{
|
|
892
|
+
public IntPtr pMultipleTrustee; // 0 .. 8
|
|
893
|
+
public int MultipleTrusteeOperation; // 8 .. 12
|
|
894
|
+
public int TrusteeForm; // 12 .. 16
|
|
895
|
+
public int TrusteeType; // 16 .. 20
|
|
896
|
+
private int pad0; // 20 .. 24
|
|
897
|
+
public IntPtr ptstrName; // 24 .. 32
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
901
|
+
internal struct EXPLICIT_ACCESS_W // 48(与 abi.ts 的 EA_OFFSETS 一致)
|
|
902
|
+
{
|
|
903
|
+
public uint grfAccessPermissions; // 0 .. 4
|
|
904
|
+
public uint grfAccessMode; // 4 .. 8
|
|
905
|
+
public uint grfInheritance; // 8 .. 12
|
|
906
|
+
private uint pad0; // 12 .. 16
|
|
907
|
+
public TRUSTEE_W Trustee; // 16 .. 48
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
[StructLayout(LayoutKind.Sequential, Pack = 8)]
|
|
911
|
+
internal struct ACL_SIZE_INFORMATION // 12
|
|
912
|
+
{
|
|
913
|
+
public uint AceCount;
|
|
914
|
+
public uint AclBytesInUse;
|
|
915
|
+
public uint AclBytesFree;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
// ── P/Invoke ──
|
|
919
|
+
//
|
|
920
|
+
// 全部写 ExactSpelling = true:带 W 后缀的入口名已经写全了,不要让运行时再去猜
|
|
921
|
+
// 「名字 + W」「名字 + A」那套探测(探测不到才回落,容易埋下莫名其妙的 EntryPointNotFound)。
|
|
922
|
+
|
|
923
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
924
|
+
private static extern uint FwpmEngineOpen0(IntPtr serverName, uint authnService, IntPtr authIdentity, IntPtr session, out IntPtr engineHandle);
|
|
925
|
+
|
|
926
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
927
|
+
private static extern uint FwpmEngineClose0(IntPtr engineHandle);
|
|
928
|
+
|
|
929
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
930
|
+
private static extern uint FwpmTransactionBegin0(IntPtr engineHandle, uint flags);
|
|
931
|
+
|
|
932
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
933
|
+
private static extern uint FwpmTransactionCommit0(IntPtr engineHandle);
|
|
934
|
+
|
|
935
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
936
|
+
private static extern uint FwpmTransactionAbort0(IntPtr engineHandle);
|
|
937
|
+
|
|
938
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
939
|
+
private static extern uint FwpmProviderAdd0(IntPtr engineHandle, ref FWPM_PROVIDER0 provider, IntPtr sd);
|
|
940
|
+
|
|
941
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
942
|
+
private static extern uint FwpmSubLayerAdd0(IntPtr engineHandle, ref FWPM_SUBLAYER0 subLayer, IntPtr sd);
|
|
943
|
+
|
|
944
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
945
|
+
private static extern uint FwpmFilterAdd0(IntPtr engineHandle, ref FWPM_FILTER0 filter, IntPtr sd, out ulong id);
|
|
946
|
+
|
|
947
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
948
|
+
private static extern uint FwpmFilterDeleteByKey0(IntPtr engineHandle, ref Guid key);
|
|
949
|
+
|
|
950
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
951
|
+
private static extern uint FwpmSubLayerDeleteByKey0(IntPtr engineHandle, ref Guid key);
|
|
952
|
+
|
|
953
|
+
[DllImport("fwpuclnt.dll", ExactSpelling = true)]
|
|
954
|
+
private static extern uint FwpmProviderDeleteByKey0(IntPtr engineHandle, ref Guid key);
|
|
955
|
+
|
|
956
|
+
[DllImport("advapi32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)]
|
|
957
|
+
private static extern void BuildExplicitAccessWithNameW(ref EXPLICIT_ACCESS_W pExplicitAccess, IntPtr pTrusteeName, uint accessPermissions, uint accessMode, uint inheritance);
|
|
958
|
+
|
|
959
|
+
[DllImport("advapi32.dll", ExactSpelling = true)]
|
|
960
|
+
private static extern uint BuildSecurityDescriptorW(IntPtr pOwner, IntPtr pGroup, uint cCountOfAccessEntries, ref EXPLICIT_ACCESS_W pListOfAccessEntries, uint cCountOfAuditEntries, IntPtr pListOfAuditEntries, IntPtr pOldSD, out uint pSizeNewSD, out IntPtr pNewSD);
|
|
961
|
+
|
|
962
|
+
[DllImport("advapi32.dll", CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
|
|
963
|
+
private static extern bool ConvertStringSidToSidW(string stringSid, out IntPtr sid);
|
|
964
|
+
|
|
965
|
+
// LocalFree 在 kernel32(winbase.h),不在 advapi32:写错 DLL 名要到运行时才炸
|
|
966
|
+
// (EntryPointNotFoundException),而且是炸在 finally 的释放路径上,最难查。
|
|
967
|
+
[DllImport("kernel32.dll", ExactSpelling = true, SetLastError = true)]
|
|
968
|
+
private static extern IntPtr LocalFree(IntPtr hMem);
|
|
969
|
+
|
|
970
|
+
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
|
|
971
|
+
private static extern bool GetSecurityDescriptorDacl(IntPtr pSecurityDescriptor, out bool bDaclPresent, out IntPtr pDacl, out bool bDaclDefaulted);
|
|
972
|
+
|
|
973
|
+
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
|
|
974
|
+
private static extern bool GetAclInformation(IntPtr pAcl, out ACL_SIZE_INFORMATION pAclInformation, uint nAclInformationLength, int dwAclInformationClass);
|
|
975
|
+
|
|
976
|
+
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
|
|
977
|
+
private static extern bool GetAce(IntPtr pAcl, uint dwAceIndex, out IntPtr pAce);
|
|
978
|
+
|
|
979
|
+
[DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)]
|
|
980
|
+
private static extern bool EqualSid(IntPtr pSid1, IntPtr pSid2);
|
|
981
|
+
|
|
982
|
+
// ── 布局自检:装之前先把「我对 C 布局的理解」验一遍 ──
|
|
983
|
+
|
|
984
|
+
private static void ExpectSize(StringBuilder report, string name, int actual, int expected)
|
|
985
|
+
{
|
|
986
|
+
report.Append(name).Append('=').Append(actual.ToString(CultureInfo.InvariantCulture)).Append(' ');
|
|
987
|
+
if (actual != expected)
|
|
988
|
+
{
|
|
989
|
+
throw new InvalidOperationException("结构体布局与 C 头不一致:" + name + " CLR=" + actual.ToString(CultureInfo.InvariantCulture) + " 期望=" + expected.ToString(CultureInfo.InvariantCulture));
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
private static void ExpectOffset(StringBuilder report, string label, int actual, int expected)
|
|
994
|
+
{
|
|
995
|
+
report.Append(label).Append(actual.ToString(CultureInfo.InvariantCulture)).Append(' ');
|
|
996
|
+
if (actual != expected)
|
|
997
|
+
{
|
|
998
|
+
throw new InvalidOperationException("结构体字段偏移与 C 头不一致:" + label + " CLR=" + actual.ToString(CultureInfo.InvariantCulture) + " 期望=" + expected.ToString(CultureInfo.InvariantCulture));
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
public static string SelfTest()
|
|
1003
|
+
{
|
|
1004
|
+
StringBuilder report = new StringBuilder();
|
|
1005
|
+
ExpectSize(report, "FWP_BYTE_BLOB", Marshal.SizeOf(typeof(FWP_BYTE_BLOB)), 16);
|
|
1006
|
+
ExpectSize(report, "FWPM_DISPLAY_DATA0", Marshal.SizeOf(typeof(FWPM_DISPLAY_DATA0)), 16);
|
|
1007
|
+
ExpectSize(report, "FWP_VALUE0", Marshal.SizeOf(typeof(FWP_VALUE0)), 16);
|
|
1008
|
+
ExpectSize(report, "FWPM_FILTER_CONDITION0", Marshal.SizeOf(typeof(FWPM_FILTER_CONDITION0)), 40);
|
|
1009
|
+
ExpectSize(report, "FWPM_ACTION0", Marshal.SizeOf(typeof(FWPM_ACTION0)), 24);
|
|
1010
|
+
ExpectSize(report, "FWPM_FILTER0", Marshal.SizeOf(typeof(FWPM_FILTER0)), 200);
|
|
1011
|
+
ExpectSize(report, "FWPM_PROVIDER0", Marshal.SizeOf(typeof(FWPM_PROVIDER0)), 64);
|
|
1012
|
+
ExpectSize(report, "FWPM_SUBLAYER0", Marshal.SizeOf(typeof(FWPM_SUBLAYER0)), 72);
|
|
1013
|
+
ExpectSize(report, "EXPLICIT_ACCESS_W", Marshal.SizeOf(typeof(EXPLICIT_ACCESS_W)), 48);
|
|
1014
|
+
// sizeof 对得上也可能是把两个字段的位置互换了,所以关键偏移也钉住
|
|
1015
|
+
ExpectOffset(report, "FWPM_FILTER0.action@", (int)Marshal.OffsetOf(typeof(FWPM_FILTER0), "action"), 128);
|
|
1016
|
+
ExpectOffset(report, "FWPM_FILTER0.effectiveWeight@", (int)Marshal.OffsetOf(typeof(FWPM_FILTER0), "effectiveWeight"), 184);
|
|
1017
|
+
ExpectOffset(report, "FWP_VALUE0.value@", (int)Marshal.OffsetOf(typeof(FWP_VALUE0), "value"), 8);
|
|
1018
|
+
ExpectOffset(report, "FWPM_ACTION0.action@", (int)Marshal.OffsetOf(typeof(FWPM_ACTION0), "action"), 8);
|
|
1019
|
+
ExpectOffset(report, "FWPM_FILTER_CONDITION0.conditionValue@", (int)Marshal.OffsetOf(typeof(FWPM_FILTER_CONDITION0), "conditionValue"), 24);
|
|
1020
|
+
ExpectOffset(report, "EXPLICIT_ACCESS_W.Trustee@", (int)Marshal.OffsetOf(typeof(EXPLICIT_ACCESS_W), "Trustee"), 16);
|
|
1021
|
+
return "OK " + report.ToString().Trim();
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
// ── 安装 ──
|
|
1025
|
+
|
|
1026
|
+
/// <summary>
|
|
1027
|
+
/// 装持久 provider + sublayer + 每条 filter(单事务,persistent)。
|
|
1028
|
+
/// filters 每行形如 filterKey|name|layerKey|protocol|remotePort(后两个字段可空)。
|
|
1029
|
+
/// </summary>
|
|
1030
|
+
public static int Install(string account, string expectedSid, string providerGuid, string sublayerGuid, string[] filters)
|
|
1031
|
+
{
|
|
1032
|
+
if (String.IsNullOrEmpty(account)) throw new ArgumentException("沙箱账号名为空");
|
|
1033
|
+
if (filters == null || filters.Length == 0) throw new ArgumentException("filter 规格为空");
|
|
1034
|
+
Guid providerKey = Guid.Parse(providerGuid);
|
|
1035
|
+
Guid sublayerKey = Guid.Parse(sublayerGuid);
|
|
1036
|
+
|
|
1037
|
+
IntPtr engine = IntPtr.Zero;
|
|
1038
|
+
IntPtr securityDescriptor = IntPtr.Zero;
|
|
1039
|
+
IntPtr expectedSidPtr = IntPtr.Zero;
|
|
1040
|
+
IntPtr accountNamePtr = IntPtr.Zero;
|
|
1041
|
+
IntPtr conditionBlobPtr = IntPtr.Zero;
|
|
1042
|
+
List<IntPtr> owned = new List<IntPtr>();
|
|
1043
|
+
uint sizeNewSd = 0;
|
|
1044
|
+
bool inTransaction = false;
|
|
1045
|
+
try
|
|
1046
|
+
{
|
|
1047
|
+
// 引擎:serverName=null、认证 RPC_C_AUTHN_WINNT、session=null。装持久对象要求管理员令牌。
|
|
1048
|
+
uint rc = FwpmEngineOpen0(IntPtr.Zero, RPC_C_AUTHN_WINNT, IntPtr.Zero, IntPtr.Zero, out engine);
|
|
1049
|
+
Fail(rc, "FwpmEngineOpen0(装 WFP 需要管理员权限)");
|
|
1050
|
+
|
|
1051
|
+
// ALE_USER_ID 的条件值是一个自相对 SD,主体 = 沙箱账号 SID,ACE 掩码 = FWP_ACTRL_MATCH_FILTER(1)。
|
|
1052
|
+
// 用 BuildExplicitAccessWithNameW 按名字解析(提权会话下账号已存在),再让 BuildSecurityDescriptorW 造 SD。
|
|
1053
|
+
accountNamePtr = Marshal.StringToHGlobalUni(account);
|
|
1054
|
+
EXPLICIT_ACCESS_W access = new EXPLICIT_ACCESS_W();
|
|
1055
|
+
BuildExplicitAccessWithNameW(ref access, accountNamePtr, FWP_ACTRL_MATCH_FILTER, GRANT_ACCESS, 0);
|
|
1056
|
+
rc = BuildSecurityDescriptorW(IntPtr.Zero, IntPtr.Zero, 1, ref access, 0, IntPtr.Zero, IntPtr.Zero, out sizeNewSd, out securityDescriptor);
|
|
1057
|
+
Fail(rc, "BuildSecurityDescriptorW");
|
|
1058
|
+
if (securityDescriptor == IntPtr.Zero) throw new InvalidOperationException("BuildSecurityDescriptorW 给出空 SD");
|
|
1059
|
+
if (!ConvertStringSidToSidW(expectedSid, out expectedSidPtr)) throw Win32("ConvertStringSidToSidW");
|
|
1060
|
+
// 读回校验:SD 里的 SID 必须是 Get-LocalUser 报的那个,否则 filter 会挂在别人身上(fail-closed)
|
|
1061
|
+
VerifyUserSid(securityDescriptor, expectedSidPtr);
|
|
1062
|
+
|
|
1063
|
+
// FWP_BYTE_BLOB{size, data} 自己也要住在非托管内存里,直到所有 FwpmFilterAdd0 都返回
|
|
1064
|
+
FWP_BYTE_BLOB conditionBlob = new FWP_BYTE_BLOB();
|
|
1065
|
+
conditionBlob.size = sizeNewSd;
|
|
1066
|
+
conditionBlob.data = securityDescriptor;
|
|
1067
|
+
conditionBlobPtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(FWP_BYTE_BLOB)));
|
|
1068
|
+
Marshal.StructureToPtr(conditionBlob, conditionBlobPtr, false);
|
|
1069
|
+
|
|
1070
|
+
rc = FwpmTransactionBegin0(engine, 0);
|
|
1071
|
+
Fail(rc, "FwpmTransactionBegin0");
|
|
1072
|
+
inTransaction = true;
|
|
1073
|
+
|
|
1074
|
+
AddProvider(engine, providerKey);
|
|
1075
|
+
AddSublayer(engine, sublayerKey, providerKey);
|
|
1076
|
+
|
|
1077
|
+
int installed = 0;
|
|
1078
|
+
for (int i = 0; i < filters.Length; i++)
|
|
1079
|
+
{
|
|
1080
|
+
AddOneFilter(engine, filters[i], sublayerKey, providerKey, conditionBlobPtr, owned);
|
|
1081
|
+
installed++;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
rc = FwpmTransactionCommit0(engine);
|
|
1085
|
+
Fail(rc, "FwpmTransactionCommit0");
|
|
1086
|
+
inTransaction = false;
|
|
1087
|
+
return installed;
|
|
1088
|
+
}
|
|
1089
|
+
catch
|
|
1090
|
+
{
|
|
1091
|
+
if (inTransaction)
|
|
1092
|
+
{
|
|
1093
|
+
try { FwpmTransactionAbort0(engine); } catch { }
|
|
1094
|
+
}
|
|
1095
|
+
throw;
|
|
1096
|
+
}
|
|
1097
|
+
finally
|
|
1098
|
+
{
|
|
1099
|
+
if (securityDescriptor != IntPtr.Zero) LocalFree(securityDescriptor);
|
|
1100
|
+
if (expectedSidPtr != IntPtr.Zero) LocalFree(expectedSidPtr);
|
|
1101
|
+
if (conditionBlobPtr != IntPtr.Zero) Marshal.FreeHGlobal(conditionBlobPtr);
|
|
1102
|
+
if (accountNamePtr != IntPtr.Zero) Marshal.FreeHGlobal(accountNamePtr);
|
|
1103
|
+
for (int i = 0; i < owned.Count; i++) Marshal.FreeHGlobal(owned[i]);
|
|
1104
|
+
if (engine != IntPtr.Zero) FwpmEngineClose0(engine);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
/// <summary>
|
|
1109
|
+
/// 卸掉持久 filter / sublayer / provider(单事务)。filterKeys 与安装时那批 key 同源。
|
|
1110
|
+
/// 不存在的对象跳过(幂等);返回真正删掉的对象条数。
|
|
1111
|
+
/// </summary>
|
|
1112
|
+
public static int Uninstall(string providerGuid, string sublayerGuid, string[] filterKeys)
|
|
1113
|
+
{
|
|
1114
|
+
if (String.IsNullOrEmpty(providerGuid)) throw new ArgumentException("provider GUID 为空");
|
|
1115
|
+
if (String.IsNullOrEmpty(sublayerGuid)) throw new ArgumentException("sublayer GUID 为空");
|
|
1116
|
+
Guid providerKey = Guid.Parse(providerGuid);
|
|
1117
|
+
Guid sublayerKey = Guid.Parse(sublayerGuid);
|
|
1118
|
+
|
|
1119
|
+
IntPtr engine = IntPtr.Zero;
|
|
1120
|
+
bool inTransaction = false;
|
|
1121
|
+
int removed = 0;
|
|
1122
|
+
try
|
|
1123
|
+
{
|
|
1124
|
+
// 卸持久对象同样要求管理员令牌:这条路径只该从提权 PowerShell 进来
|
|
1125
|
+
uint rc = FwpmEngineOpen0(IntPtr.Zero, RPC_C_AUTHN_WINNT, IntPtr.Zero, IntPtr.Zero, out engine);
|
|
1126
|
+
Fail(rc, "FwpmEngineOpen0(卸 WFP 需要管理员权限)");
|
|
1127
|
+
rc = FwpmTransactionBegin0(engine, 0);
|
|
1128
|
+
Fail(rc, "FwpmTransactionBegin0");
|
|
1129
|
+
inTransaction = true;
|
|
1130
|
+
|
|
1131
|
+
// 顺序即依赖:filter 挂在 sublayer 上,sublayer 又挂在 provider 上
|
|
1132
|
+
if (filterKeys != null)
|
|
1133
|
+
{
|
|
1134
|
+
for (int i = 0; i < filterKeys.Length; i++)
|
|
1135
|
+
{
|
|
1136
|
+
Guid filterKey = Guid.Parse(filterKeys[i]);
|
|
1137
|
+
uint del = FwpmFilterDeleteByKey0(engine, ref filterKey);
|
|
1138
|
+
if (del == 0) removed++;
|
|
1139
|
+
else if (!IsMissing(del)) Fail(del, "FwpmFilterDeleteByKey0(" + filterKeys[i] + ")");
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
uint sub = FwpmSubLayerDeleteByKey0(engine, ref sublayerKey);
|
|
1144
|
+
if (sub == 0) removed++;
|
|
1145
|
+
else if (!IsMissing(sub) && sub != FWP_E_IN_USE) Fail(sub, "FwpmSubLayerDeleteByKey0");
|
|
1146
|
+
|
|
1147
|
+
uint prov = FwpmProviderDeleteByKey0(engine, ref providerKey);
|
|
1148
|
+
if (prov == 0) removed++;
|
|
1149
|
+
else if (!IsMissing(prov) && prov != FWP_E_IN_USE) Fail(prov, "FwpmProviderDeleteByKey0");
|
|
1150
|
+
|
|
1151
|
+
rc = FwpmTransactionCommit0(engine);
|
|
1152
|
+
Fail(rc, "FwpmTransactionCommit0");
|
|
1153
|
+
inTransaction = false;
|
|
1154
|
+
return removed;
|
|
1155
|
+
}
|
|
1156
|
+
catch
|
|
1157
|
+
{
|
|
1158
|
+
if (inTransaction)
|
|
1159
|
+
{
|
|
1160
|
+
try { FwpmTransactionAbort0(engine); } catch { }
|
|
1161
|
+
}
|
|
1162
|
+
throw;
|
|
1163
|
+
}
|
|
1164
|
+
finally
|
|
1165
|
+
{
|
|
1166
|
+
if (engine != IntPtr.Zero) FwpmEngineClose0(engine);
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
/// <summary>「这个对象本就不在」的返回码集合:卸载时一律容忍。</summary>
|
|
1171
|
+
private static bool IsMissing(uint code)
|
|
1172
|
+
{
|
|
1173
|
+
return code == FWP_E_FILTER_NOT_FOUND || code == FWP_E_SUBLAYER_NOT_FOUND
|
|
1174
|
+
|| code == FWP_E_PROVIDER_NOT_FOUND || code == FWP_E_NOT_FOUND;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
/// <summary>
|
|
1178
|
+
/// 免提权自检:按账号名造一份 ALE_USER_ID 用的 SD,再把 SID 与 ACE 掩码读回来核对。
|
|
1179
|
+
/// 这段逻辑(BuildExplicitAccessWithNameW + BuildSecurityDescriptorW + DACL 读回)不碰 WFP、
|
|
1180
|
+
/// 不改系统,所以普通权限就能验——它是整套条件里最容易出错、代价最大的一环(SID 挂错账号
|
|
1181
|
+
/// 等于围栏形同虚设),值得留一个能在装机前单独跑的验法。
|
|
1182
|
+
/// </summary>
|
|
1183
|
+
public static string SelfTestUserSd(string accountName, string expectedSid)
|
|
1184
|
+
{
|
|
1185
|
+
IntPtr securityDescriptor = IntPtr.Zero;
|
|
1186
|
+
IntPtr expectedSidPtr = IntPtr.Zero;
|
|
1187
|
+
IntPtr accountNamePtr = IntPtr.Zero;
|
|
1188
|
+
try
|
|
1189
|
+
{
|
|
1190
|
+
accountNamePtr = Marshal.StringToHGlobalUni(accountName);
|
|
1191
|
+
EXPLICIT_ACCESS_W access = new EXPLICIT_ACCESS_W();
|
|
1192
|
+
BuildExplicitAccessWithNameW(ref access, accountNamePtr, FWP_ACTRL_MATCH_FILTER, GRANT_ACCESS, 0);
|
|
1193
|
+
uint sizeNewSd = 0;
|
|
1194
|
+
uint rc = BuildSecurityDescriptorW(IntPtr.Zero, IntPtr.Zero, 1, ref access, 0, IntPtr.Zero, IntPtr.Zero, out sizeNewSd, out securityDescriptor);
|
|
1195
|
+
Fail(rc, "BuildSecurityDescriptorW");
|
|
1196
|
+
if (securityDescriptor == IntPtr.Zero) throw new InvalidOperationException("BuildSecurityDescriptorW 给出空 SD");
|
|
1197
|
+
if (!ConvertStringSidToSidW(expectedSid, out expectedSidPtr)) throw Win32("ConvertStringSidToSidW");
|
|
1198
|
+
VerifyUserSid(securityDescriptor, expectedSidPtr);
|
|
1199
|
+
return "OK sdSize=" + sizeNewSd.ToString(CultureInfo.InvariantCulture);
|
|
1200
|
+
}
|
|
1201
|
+
finally
|
|
1202
|
+
{
|
|
1203
|
+
if (securityDescriptor != IntPtr.Zero) LocalFree(securityDescriptor);
|
|
1204
|
+
if (expectedSidPtr != IntPtr.Zero) LocalFree(expectedSidPtr);
|
|
1205
|
+
if (accountNamePtr != IntPtr.Zero) Marshal.FreeHGlobal(accountNamePtr);
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
private static void AddProvider(IntPtr engine, Guid providerKey)
|
|
1210
|
+
{
|
|
1211
|
+
IntPtr namePtr = Marshal.StringToHGlobalUni(ProviderName);
|
|
1212
|
+
IntPtr descPtr = Marshal.StringToHGlobalUni(ProviderDescription);
|
|
1213
|
+
try
|
|
1214
|
+
{
|
|
1215
|
+
FWPM_PROVIDER0 provider = new FWPM_PROVIDER0();
|
|
1216
|
+
provider.providerKey = providerKey;
|
|
1217
|
+
provider.displayData.name = namePtr;
|
|
1218
|
+
provider.displayData.description = descPtr;
|
|
1219
|
+
provider.flags = FWPM_PROVIDER_FLAG_PERSISTENT;
|
|
1220
|
+
provider.providerData.size = 0;
|
|
1221
|
+
provider.providerData.data = IntPtr.Zero;
|
|
1222
|
+
provider.serviceName = IntPtr.Zero;
|
|
1223
|
+
uint rc = FwpmProviderAdd0(engine, ref provider, IntPtr.Zero);
|
|
1224
|
+
// 已存在就是上一次装过(持久对象不会随进程消失),照常往下走
|
|
1225
|
+
if (rc != 0 && rc != FWP_E_ALREADY_EXISTS) Fail(rc, "FwpmProviderAdd0");
|
|
1226
|
+
}
|
|
1227
|
+
finally
|
|
1228
|
+
{
|
|
1229
|
+
Marshal.FreeHGlobal(namePtr);
|
|
1230
|
+
Marshal.FreeHGlobal(descPtr);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
private static void AddSublayer(IntPtr engine, Guid sublayerKey, Guid providerKey)
|
|
1235
|
+
{
|
|
1236
|
+
IntPtr providerKeyPtr = Marshal.AllocHGlobal(16);
|
|
1237
|
+
Marshal.StructureToPtr(providerKey, providerKeyPtr, false);
|
|
1238
|
+
IntPtr namePtr = Marshal.StringToHGlobalUni(SublayerName);
|
|
1239
|
+
IntPtr descPtr = Marshal.StringToHGlobalUni(SublayerDescription);
|
|
1240
|
+
try
|
|
1241
|
+
{
|
|
1242
|
+
FWPM_SUBLAYER0 sublayer = new FWPM_SUBLAYER0();
|
|
1243
|
+
sublayer.subLayerKey = sublayerKey;
|
|
1244
|
+
sublayer.displayData.name = namePtr;
|
|
1245
|
+
sublayer.displayData.description = descPtr;
|
|
1246
|
+
sublayer.flags = FWPM_SUBLAYER_FLAG_PERSISTENT;
|
|
1247
|
+
sublayer.providerKey = providerKeyPtr;
|
|
1248
|
+
sublayer.providerData.size = 0;
|
|
1249
|
+
sublayer.providerData.data = IntPtr.Zero;
|
|
1250
|
+
sublayer.weight = DSC_SUBLAYER_WEIGHT;
|
|
1251
|
+
uint rc = FwpmSubLayerAdd0(engine, ref sublayer, IntPtr.Zero);
|
|
1252
|
+
if (rc != 0 && rc != FWP_E_ALREADY_EXISTS) Fail(rc, "FwpmSubLayerAdd0");
|
|
1253
|
+
}
|
|
1254
|
+
finally
|
|
1255
|
+
{
|
|
1256
|
+
Marshal.FreeHGlobal(providerKeyPtr);
|
|
1257
|
+
Marshal.FreeHGlobal(namePtr);
|
|
1258
|
+
Marshal.FreeHGlobal(descPtr);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
private static void AddOneFilter(IntPtr engine, string line, Guid sublayerKey, Guid providerKey, IntPtr conditionBlobPtr, List<IntPtr> owned)
|
|
1263
|
+
{
|
|
1264
|
+
string[] parts = line.Split('|');
|
|
1265
|
+
if (parts.Length != 5) throw new ArgumentException("filter 规格行字段数应为 5:" + line);
|
|
1266
|
+
Guid filterKey = Guid.Parse(parts[0]);
|
|
1267
|
+
string name = parts[1];
|
|
1268
|
+
Guid layerKey = Guid.Parse(parts[2]);
|
|
1269
|
+
string protocolText = parts[3];
|
|
1270
|
+
string portText = parts[4];
|
|
1271
|
+
|
|
1272
|
+
IntPtr namePtr = Marshal.StringToHGlobalUni(name);
|
|
1273
|
+
owned.Add(namePtr);
|
|
1274
|
+
IntPtr descPtr = Marshal.StringToHGlobalUni(name + " —— dsc 沙箱账号网络围栏");
|
|
1275
|
+
owned.Add(descPtr);
|
|
1276
|
+
IntPtr providerKeyPtr = Marshal.AllocHGlobal(16);
|
|
1277
|
+
Marshal.StructureToPtr(providerKey, providerKeyPtr, false);
|
|
1278
|
+
owned.Add(providerKeyPtr);
|
|
1279
|
+
|
|
1280
|
+
int conditionCount = 1 + (protocolText.Length > 0 ? 1 : 0) + (portText.Length > 0 ? 1 : 0);
|
|
1281
|
+
int conditionSize = Marshal.SizeOf(typeof(FWPM_FILTER_CONDITION0));
|
|
1282
|
+
IntPtr conditions = Marshal.AllocHGlobal(conditionSize * conditionCount);
|
|
1283
|
+
owned.Add(conditions);
|
|
1284
|
+
int index = 0;
|
|
1285
|
+
WriteCondition(conditions, conditionSize, index, CondAleUserId, FWP_SECURITY_DESCRIPTOR_TYPE, conditionBlobPtr);
|
|
1286
|
+
index++;
|
|
1287
|
+
if (protocolText.Length > 0)
|
|
1288
|
+
{
|
|
1289
|
+
int protocol = Int32.Parse(protocolText, CultureInfo.InvariantCulture);
|
|
1290
|
+
WriteCondition(conditions, conditionSize, index, CondIpProtocol, FWP_UINT8, new IntPtr(protocol));
|
|
1291
|
+
index++;
|
|
1292
|
+
}
|
|
1293
|
+
if (portText.Length > 0)
|
|
1294
|
+
{
|
|
1295
|
+
int port = Int32.Parse(portText, CultureInfo.InvariantCulture);
|
|
1296
|
+
WriteCondition(conditions, conditionSize, index, CondIpRemotePort, FWP_UINT16, new IntPtr(port));
|
|
1297
|
+
index++;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
// delete-if-present:同 key 的老 filter 先删(不存在就容忍),保证重跑幂等
|
|
1301
|
+
uint del = FwpmFilterDeleteByKey0(engine, ref filterKey);
|
|
1302
|
+
if (del != 0 && del != FWP_E_FILTER_NOT_FOUND && del != FWP_E_NOT_FOUND) Fail(del, "FwpmFilterDeleteByKey0(" + name + ")");
|
|
1303
|
+
|
|
1304
|
+
FWPM_FILTER0 filter = new FWPM_FILTER0();
|
|
1305
|
+
filter.filterKey = filterKey;
|
|
1306
|
+
filter.displayData.name = namePtr;
|
|
1307
|
+
filter.displayData.description = descPtr;
|
|
1308
|
+
filter.flags = FWPM_FILTER_FLAG_PERSISTENT;
|
|
1309
|
+
filter.providerKey = providerKeyPtr;
|
|
1310
|
+
filter.providerData.size = 0;
|
|
1311
|
+
filter.providerData.data = IntPtr.Zero;
|
|
1312
|
+
filter.layerKey = layerKey;
|
|
1313
|
+
filter.subLayerKey = sublayerKey;
|
|
1314
|
+
filter.weight.type = FWP_EMPTY; // 不指定权重:由 sublayer 权重 0x8000 决定先于防火墙默认子层被评估
|
|
1315
|
+
filter.numFilterConditions = (uint)conditionCount;
|
|
1316
|
+
filter.filterCondition = conditions;
|
|
1317
|
+
filter.action.type = FWP_ACTION_BLOCK;
|
|
1318
|
+
filter.action.action.filterType = Guid.Empty;
|
|
1319
|
+
filter.anon.rawContext = 0;
|
|
1320
|
+
filter.reserved = IntPtr.Zero;
|
|
1321
|
+
filter.filterId = 0;
|
|
1322
|
+
filter.effectiveWeight.type = FWP_EMPTY;
|
|
1323
|
+
|
|
1324
|
+
ulong filterId;
|
|
1325
|
+
uint rc = FwpmFilterAdd0(engine, ref filter, IntPtr.Zero, out filterId);
|
|
1326
|
+
Fail(rc, "FwpmFilterAdd0(" + name + ")");
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
/// <summary>写一条 FWPM_FILTER_CONDITION0:小数/端口与 SD 指针都落在 union 的同一处。</summary>
|
|
1330
|
+
private static void WriteCondition(IntPtr basePtr, int size, int index, Guid fieldKey, int valueType, IntPtr value)
|
|
1331
|
+
{
|
|
1332
|
+
FWPM_FILTER_CONDITION0 condition = new FWPM_FILTER_CONDITION0();
|
|
1333
|
+
condition.fieldKey = fieldKey;
|
|
1334
|
+
condition.matchType = FWP_MATCH_EQUAL;
|
|
1335
|
+
condition.conditionValue.type = valueType;
|
|
1336
|
+
condition.conditionValue.value.sd = value;
|
|
1337
|
+
Marshal.StructureToPtr(condition, new IntPtr(basePtr.ToInt64() + (long)index * size), false);
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
/// <summary>读回 SD 的 DACL:ACE 条数 1、掩码 = FWP_ACTRL_MATCH_FILTER、SID = 期望的那个。</summary>
|
|
1341
|
+
private static void VerifyUserSid(IntPtr securityDescriptor, IntPtr expectedSid)
|
|
1342
|
+
{
|
|
1343
|
+
bool daclPresent;
|
|
1344
|
+
bool daclDefaulted;
|
|
1345
|
+
IntPtr dacl;
|
|
1346
|
+
if (!GetSecurityDescriptorDacl(securityDescriptor, out daclPresent, out dacl, out daclDefaulted) || !daclPresent || dacl == IntPtr.Zero)
|
|
1347
|
+
{
|
|
1348
|
+
throw new InvalidOperationException("构造出的账号 SD 没有 DACL,拒绝继续装 WFP filter");
|
|
1349
|
+
}
|
|
1350
|
+
ACL_SIZE_INFORMATION aclInfo = new ACL_SIZE_INFORMATION();
|
|
1351
|
+
if (!GetAclInformation(dacl, out aclInfo, (uint)Marshal.SizeOf(typeof(ACL_SIZE_INFORMATION)), AclSizeInformation)) throw Win32("GetAclInformation");
|
|
1352
|
+
if (aclInfo.AceCount != 1)
|
|
1353
|
+
{
|
|
1354
|
+
throw new InvalidOperationException("账号 SD 的 ACE 条数应为 1,实际 " + aclInfo.AceCount.ToString(CultureInfo.InvariantCulture));
|
|
1355
|
+
}
|
|
1356
|
+
IntPtr ace;
|
|
1357
|
+
if (!GetAce(dacl, 0, out ace)) throw Win32("GetAce");
|
|
1358
|
+
// ACCESS_ALLOWED_ACE:AceType@0(u8)、AceFlags@1(u8)、AceSize@2(u16)、Mask@4(u32)、SidStart@8
|
|
1359
|
+
int mask = Marshal.ReadInt32(ace, 4);
|
|
1360
|
+
if (mask != (int)FWP_ACTRL_MATCH_FILTER)
|
|
1361
|
+
{
|
|
1362
|
+
throw new InvalidOperationException("账号 SD 的 ACE 掩码应为 FWP_ACTRL_MATCH_FILTER(1),实际 " + mask.ToString(CultureInfo.InvariantCulture));
|
|
1363
|
+
}
|
|
1364
|
+
IntPtr aceSid = new IntPtr(ace.ToInt64() + 8);
|
|
1365
|
+
if (!EqualSid(aceSid, expectedSid))
|
|
1366
|
+
{
|
|
1367
|
+
throw new InvalidOperationException("账号 SD 里的 SID 与 Get-LocalUser 报的 SID 不一致:ALE_USER_ID 会指向别的账号,拒绝继续");
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
private static void Fail(uint code, string operation)
|
|
1372
|
+
{
|
|
1373
|
+
if (code != 0)
|
|
1374
|
+
{
|
|
1375
|
+
throw new InvalidOperationException(operation + " 失败:0x" + code.ToString("X8", CultureInfo.InvariantCulture));
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
private static Exception Win32(string api)
|
|
1380
|
+
{
|
|
1381
|
+
return new InvalidOperationException(api + " 失败:Win32 错误码 " + Marshal.GetLastWin32Error().ToString(CultureInfo.InvariantCulture));
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
`;
|