@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
|
@@ -11,21 +11,43 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module dsc/core/plugin-loader
|
|
13
13
|
*/
|
|
14
|
-
import { existsSync, readFileSync, readdirSync, statSync } from 'node:fs';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { existsSync, readFileSync, readdirSync, realpathSync, statSync } from 'node:fs';
|
|
15
|
+
import { createRequire } from 'node:module';
|
|
16
|
+
import { basename, dirname, isAbsolute, join, relative, resolve } from 'node:path';
|
|
17
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
18
|
+
import { bumpGeneration, currentGeneration, ensureResolveHook, registerGenerationRoot, setResolveHookAppRoot, setResolveHookCompat, } from './dsh-compat/resolve-hook.js';
|
|
18
19
|
import { dshToolsFacade } from './dsh-compat/tools-facade.js';
|
|
19
|
-
import { checkApiVersion, getPluginConfig, getPluginMeta, isPluginEnabled,
|
|
20
|
+
import { checkApiVersion, getPluginConfig, getPluginMeta, isPluginEnabled, registerPluginAlias, registerPluginMeta, registerRowConfig, resolvePluginConfig, writePluginEnabled, KERNEL_API_VERSION, } from './plugin-registry.js';
|
|
20
21
|
import { errText as err } from './err-text.js';
|
|
22
|
+
import { activeConfigFile } from './config-store.js';
|
|
21
23
|
import { describeForeignServices } from './dsh-compat/service-map.js';
|
|
22
24
|
import { compatServiceOf } from './dsh-compat/session-bridge.js';
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
+
import { pluginDisplayOf, languageOfConfigFile } from './plugin-locale.js';
|
|
26
|
+
import { applyPatchLayers, readPatchFile } from './plugin-patch.js';
|
|
27
|
+
import { bundleDirOf, enginesProblem, exemptionAllows, exemptionMissProblem, pneumaEnginesProblem, readBundle, readProfile, } from './plugin-bundle.js';
|
|
25
28
|
import { dscPath } from './path-policy.js';
|
|
26
29
|
import { activeProfileDir } from './profile-dir.js';
|
|
27
30
|
/** 内核插件 API 版本(重导出,供宿主/文档引用)。 */
|
|
28
31
|
export { KERNEL_API_VERSION };
|
|
32
|
+
/**
|
|
33
|
+
* 功能包模块的「代数」重导出(热重挂的机制在 dsh-compat/resolve-hook)。
|
|
34
|
+
*
|
|
35
|
+
* 代数 0 = 启动态(不打戳);`bumpGeneration()` 之后功能包解析结果带 `?g=`,
|
|
36
|
+
* 下一次 `import` 就会拿到新代码。{@link remountExternalPlugin} 自己会换代,
|
|
37
|
+
* 这里转出是给探针与排障用的。
|
|
38
|
+
*/
|
|
39
|
+
export { bumpGeneration, currentGeneration };
|
|
40
|
+
/**
|
|
41
|
+
* 应用安装目录 = 运行中 Pneuma 的 `package.json` 所在目录。
|
|
42
|
+
*
|
|
43
|
+
* 构建产物住在 `<应用根>/lib/core/plugin-loader.js`,往上两级即是应用根
|
|
44
|
+
* (桌面端是 `dsc-core/`)。应用侧的包统一落在 `<应用根>/lib/node_modules/` 下
|
|
45
|
+
* (运行时适配包与各功能包同住一层,Node 从任何一个包目录向上都能命中同一个
|
|
46
|
+
* `@pneuma/runtime`,单实例由目录唯一性保证)。
|
|
47
|
+
*/
|
|
48
|
+
export const APP_INSTALL_DIR = fileURLToPath(new URL('../../', import.meta.url));
|
|
49
|
+
// 解析钩子(含 dsh-compat 插件的兜底调用)缺省用这个应用根,不必自己按文件深度算。
|
|
50
|
+
setResolveHookAppRoot(APP_INSTALL_DIR);
|
|
29
51
|
/**
|
|
30
52
|
* dsc 自己的全部服务名(services/types.ts 的 Context 声明)。外部插件 inject 里
|
|
31
53
|
* 出现这张表之外的名字,就认定是 dsh 风格的插件,走兼容层挂载路径。
|
|
@@ -39,7 +61,7 @@ const DSC_SERVICE_NAMES = new Set([
|
|
|
39
61
|
/**
|
|
40
62
|
* 读插件声明的 dsh 客户端能力名(只读,不加载)。
|
|
41
63
|
*
|
|
42
|
-
* dsh 的 `
|
|
64
|
+
* dsh 的 `pneuma.client` 是个对象(platform / inject / modules…),我们把**键名**当能力列出来;
|
|
43
65
|
* 数组就给里面的字符串;字符串原样。认不出给空数组(不猜)。
|
|
44
66
|
* @param raw - 插件模块上的 client / dshClient 导出
|
|
45
67
|
* @returns 能力名清单(去重、按出现顺序)
|
|
@@ -69,20 +91,150 @@ function clientCapabilitiesOf(raw) {
|
|
|
69
91
|
}
|
|
70
92
|
return names;
|
|
71
93
|
}
|
|
72
|
-
/** 兼容层开着的判定与说明文案在挂载路径里;这里只留服务名清单。 */
|
|
73
|
-
/** 已挂载的外部插件:文件名 → cordis Fiber(dispose 即卸载)。 */
|
|
74
|
-
const mounted = new Map();
|
|
75
94
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
95
|
+
* 把模块的 `inject` 归成字符串数组。
|
|
96
|
+
*
|
|
97
|
+
* cordis 允许 `inject` 写字符串或字符串数组;dsh 插件偶尔还写对象(可选依赖)。
|
|
98
|
+
* 认不出的部分一律当「没声明」,不猜。
|
|
99
|
+
* @param raw - 模块导出的 inject
|
|
100
|
+
* @returns 服务名清单(保持原顺序)
|
|
101
|
+
*/
|
|
102
|
+
function injectNamesOf(raw) {
|
|
103
|
+
if (typeof raw === 'string')
|
|
104
|
+
return raw === '' ? [] : [raw];
|
|
105
|
+
if (!Array.isArray(raw))
|
|
106
|
+
return [];
|
|
107
|
+
return raw.filter((name) => typeof name === 'string' && name !== '');
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 已挂载的插件:**身份** → cordis Fiber(dispose 即卸载)。
|
|
111
|
+
*
|
|
112
|
+
* 身份 = 行 id(契约 §4)。外部单文件插件没有行,身份就退回文件名(老行为);
|
|
113
|
+
* 组合包里的行即使是同一个包的不同子路径,也是各自独立的身份与开关。
|
|
114
|
+
*/
|
|
115
|
+
const mountedByRoot = new WeakMap();
|
|
116
|
+
/** 这个 root 上「身份 → Fiber」的表。按 root 分开:自检会在一个进程里连开多个内核。 */
|
|
117
|
+
function mountedOf(root) {
|
|
118
|
+
let table = mountedByRoot.get(root);
|
|
119
|
+
if (table === undefined) {
|
|
120
|
+
table = new Map();
|
|
121
|
+
mountedByRoot.set(root, table);
|
|
122
|
+
}
|
|
123
|
+
return table;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 身份 → 它的磁盘入口文件。
|
|
127
|
+
*
|
|
128
|
+
* 组合包的行 id(例如 `ops`)和入口文件名(例如 `index.js`)不是一个东西,
|
|
129
|
+
* 热启停时要靠这张表把 id 换回文件;默认关的行也要登记,否则用户打开开关时无路可走。
|
|
130
|
+
*/
|
|
131
|
+
const pluginSources = new Map();
|
|
132
|
+
/** 登记一个插件身份对应的磁盘入口(组合包默认关的行也要登记)。 */
|
|
133
|
+
export function registerPluginSource(identity, file) {
|
|
134
|
+
pluginSources.set(identity, file);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* 一个入口文件所属的包目录(自下而上找最近的 `package.json`,最多 8 层)。
|
|
138
|
+
*
|
|
139
|
+
* 热更要盯的是「包目录下所有 .js/.json」,入口文件本身不够——应用自带包的入口是
|
|
140
|
+
* 一层再导出桩(`lib/node_modules/@pneuma/<id>/index.js`),真正的代码在
|
|
141
|
+
* `lib/packages/<id>/` 里,桩的 mtime 永远不会跟着变。
|
|
142
|
+
* @param file - 入口文件绝对路径
|
|
143
|
+
* @returns 包目录;找不到清单(外部单文件插件)给 null
|
|
144
|
+
*/
|
|
145
|
+
export function pluginPackageDirOf(file) {
|
|
146
|
+
let dir = dirname(file);
|
|
147
|
+
for (let depth = 0; depth < 8; depth += 1) {
|
|
148
|
+
if (existsSync(join(dir, 'package.json')))
|
|
149
|
+
return dir;
|
|
150
|
+
const parent = dirname(dir);
|
|
151
|
+
if (parent === dir)
|
|
152
|
+
return null;
|
|
153
|
+
dir = parent;
|
|
154
|
+
}
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* 把一行的包目录登记成「功能包路径」(代数戳的落点)。
|
|
159
|
+
*
|
|
160
|
+
* 只认 `node_modules` 里的包:用户目录里的单文件插件没有包边界,把它的父目录当
|
|
161
|
+
* 「包」登记会让整片目录被戳(连别人的依赖一起换代)。
|
|
162
|
+
* @param file - 入口文件绝对路径
|
|
163
|
+
*/
|
|
164
|
+
function registerPackageGenerationRoot(file) {
|
|
165
|
+
const pkgDir = pluginPackageDirOf(file);
|
|
166
|
+
if (pkgDir === null)
|
|
167
|
+
return;
|
|
168
|
+
const segments = resolve(pkgDir).split(/[\\/]/);
|
|
169
|
+
if (!segments.includes('node_modules'))
|
|
170
|
+
return;
|
|
171
|
+
registerGenerationRoot(pkgDir);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* 把应用自带的 `@pneuma` 包目录逐个登记成「功能包路径」。
|
|
175
|
+
*
|
|
176
|
+
* 功能包挂载时会顺带登记自己的桩目录({@link registerPackageGenerationRoot}),
|
|
177
|
+
* **库包没有行、永远不走挂载**,所以它的再导出桩
|
|
178
|
+
* (`lib/node_modules/@pneuma/<id>/index.js`)会一直停在 0 代:引用它的插件换代重挂后,
|
|
179
|
+
* 解析到的仍是第一次加载的那份旧库。这里在装配时把整层 `@pneuma/*` 一次登记完,
|
|
180
|
+
* 库包换代就与功能包走同一套机制。
|
|
181
|
+
*
|
|
182
|
+
* 重复登记由 registerGenerationRoot 自己去重;`@pneuma/runtime` 与 `lib/core` 也在那边
|
|
183
|
+
* 排掉(运行时包一个戳都不许有)。
|
|
184
|
+
* @param appDir - 应用安装目录(自检会指到临时目录)
|
|
185
|
+
*/
|
|
186
|
+
function registerLibraryGenerationRoots(appDir) {
|
|
187
|
+
const scopeDir = join(appDir, 'lib', 'node_modules', '@pneuma');
|
|
188
|
+
let entries;
|
|
189
|
+
try {
|
|
190
|
+
entries = readdirSync(scopeDir, { withFileTypes: true });
|
|
191
|
+
}
|
|
192
|
+
catch {
|
|
193
|
+
// 还没构建(没有 lib/node_modules):没有可登记的,照常启动。
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
for (const entry of entries) {
|
|
197
|
+
if (!entry.isDirectory())
|
|
198
|
+
continue;
|
|
199
|
+
registerGenerationRoot(join(scopeDir, entry.name));
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
const mountDetailsByRoot = new WeakMap();
|
|
203
|
+
/** 这个 root 上「身份 → 挂载明细」的表(与 {@link mountedOf} 同生命周期)。 */
|
|
204
|
+
function mountDetailsOf(root) {
|
|
205
|
+
let table = mountDetailsByRoot.get(root);
|
|
206
|
+
if (table === undefined) {
|
|
207
|
+
table = new Map();
|
|
208
|
+
mountDetailsByRoot.set(root, table);
|
|
209
|
+
}
|
|
210
|
+
return table;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* 行级挂载选项(身份 → inject / 宿主或 patch 给的配置),在 `mountRow` 解析出入口文件之后、
|
|
214
|
+
* 开关判定与幂等判断**之前**登记。
|
|
215
|
+
*
|
|
216
|
+
* 为什么要单独一张表:启动时就停用的行不会挂载,`mountDetails` 里没有它的选项,插件中心
|
|
217
|
+
* 点「启用」时只能拿到磁盘配置,patch 给的 config 就丢了(与「停用→启用」那条同类)。
|
|
218
|
+
* 为什么不直接塞进 `mountDetails`:那张表兼着热重挂失败时的回滚材料(`plugin` / `config`),
|
|
219
|
+
* 没挂过的行放进去会被当成「有旧版本可回滚」。
|
|
220
|
+
* 重扫(`mountBundlePlugins` / `mountApplicationRows`)每次都重算覆盖;行真的消失时由
|
|
221
|
+
* `reconcileProfileBundles` 调 {@link forgetRowRegistration} 清掉,防止同一个 id 被别的包
|
|
222
|
+
* 复用时串味。
|
|
78
223
|
*/
|
|
79
|
-
const
|
|
224
|
+
const rowOptionsOf = new Map();
|
|
80
225
|
/**
|
|
81
|
-
*
|
|
82
|
-
*
|
|
226
|
+
* 忘掉一行的登记:行选项、`mountDetails` 里那份、以及 patch 配置登记。
|
|
227
|
+
*
|
|
228
|
+
* 只在这一行**真的不存在了**(组合包卸载、profile 的 patch 删掉一条 insert)时调;
|
|
229
|
+
* 停用只是暂时不挂,插件中心随时会启用,那时还得按同一份行选项重挂(见 `setPluginEnabledHot`)。
|
|
230
|
+
* @param identity - 行 id(运行时身份)
|
|
83
231
|
*/
|
|
84
|
-
|
|
85
|
-
|
|
232
|
+
function forgetRowRegistration(identity) {
|
|
233
|
+
const current = rootRef;
|
|
234
|
+
if (current !== null)
|
|
235
|
+
mountDetailsOf(current).delete(identity);
|
|
236
|
+
rowOptionsOf.delete(identity);
|
|
237
|
+
registerRowConfig(identity, undefined);
|
|
86
238
|
}
|
|
87
239
|
/**
|
|
88
240
|
* 登记一个“启动时就挂上”的官方插件 fiber(宿主装配时调用一次)。
|
|
@@ -90,17 +242,48 @@ export function registerBuiltinMount(file, plugin) {
|
|
|
90
242
|
* 为什么需要:createKernel 不走 mountExternalPlugin(启动失败应该响亮,不能静默停用),
|
|
91
243
|
* 但热停用只认 {@link mounted} 这张表。不登记的话,停用只写盘、fiber 照跑;
|
|
92
244
|
* 再启用又会挂第二份,带 provide 的插件还会因服务重名直接失败。
|
|
93
|
-
* @param file -
|
|
245
|
+
* @param file - 开关键(行 id),与 `registerPluginMeta` 的 `file` 同一套。
|
|
94
246
|
* @param fiber - root.plugin() 返回的 fiber;卸载时由 unmountExternalPlugin 统一 dispose。
|
|
95
247
|
*/
|
|
96
248
|
export function trackBuiltinMount(file, fiber) {
|
|
97
|
-
|
|
249
|
+
const fiberRoot = rootRef;
|
|
250
|
+
if (fiberRoot !== null)
|
|
251
|
+
mountedOf(fiberRoot).set(basename(file), fiber);
|
|
98
252
|
}
|
|
99
253
|
/** 初始化(宿主启动时调用一次,传入内核 root)。 */
|
|
100
254
|
let rootRef = null;
|
|
101
255
|
export function initPluginRuntime(root) {
|
|
102
256
|
rootRef = root;
|
|
103
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* 从模块里认出插件对象。
|
|
260
|
+
*
|
|
261
|
+
* 为什么要有这一层:dsh 插件把 `apply` 直接写在模块上(`export function apply`),
|
|
262
|
+
* 而 Pneuma 的功能包导出的是 `export const xxxPlugin: Plugin.Object = { apply }`——
|
|
263
|
+
* 名字随包不同,不能靠猜。规则按优先级:
|
|
264
|
+
* 1. 默认导出带 `apply` → 用它;
|
|
265
|
+
* 2. 恰好一个命名导出带 `apply` → 用它(多于一个说明模块没说清,报错让人补默认导出);
|
|
266
|
+
* 3. 模块自身带 `apply`(dsh 形状) → 用它。
|
|
267
|
+
* 找到之后与模块级字段合并:模块上还能写 `Config` / `client` / `apiVersion` 这类旁挂声明。
|
|
268
|
+
* @param mod - 导入到的模块
|
|
269
|
+
* @returns 插件对象;认不出给 null
|
|
270
|
+
*/
|
|
271
|
+
function pickPluginObject(mod) {
|
|
272
|
+
const hasApply = (value) => value !== null && typeof value === 'object' && typeof value.apply === 'function';
|
|
273
|
+
const base = mod;
|
|
274
|
+
if (hasApply(mod.default))
|
|
275
|
+
return { ...base, ...mod.default };
|
|
276
|
+
const named = [];
|
|
277
|
+
for (const [key, value] of Object.entries(base)) {
|
|
278
|
+
if (key !== 'default' && hasApply(value))
|
|
279
|
+
named.push([key, value]);
|
|
280
|
+
}
|
|
281
|
+
if (named.length === 1)
|
|
282
|
+
return { ...base, ...named[0][1] };
|
|
283
|
+
if (hasApply(base))
|
|
284
|
+
return base;
|
|
285
|
+
return null;
|
|
286
|
+
}
|
|
104
287
|
/**
|
|
105
288
|
* 读取插件模块(按 mtime 破坏 ESM 缓存,保证文件变更后重载新代码)。
|
|
106
289
|
* @returns null = 模块不可用(错误已写入 meta.problem)。
|
|
@@ -130,107 +313,164 @@ async function importPluginModule(file, meta) {
|
|
|
130
313
|
}
|
|
131
314
|
}
|
|
132
315
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
316
|
+
* 这一行此刻该用的配置(三档,从强到弱,与插件运行期现读配置同一套口径):
|
|
317
|
+
* 1. 宿主直给(`configOrigin: 'host'`):整块替换,不碰磁盘;
|
|
318
|
+
* 2. `plugins.json` 里这一行的条目(用户设置):逐键盖过第 3 档;
|
|
319
|
+
* 3. 组合包 patch 行(`configOrigin: 'row'`):默认值层。
|
|
320
|
+
*
|
|
321
|
+
* 第 2、3 档的合并只走 `resolvePluginConfig`——插件 `apply` 之后自己调它取配置,用的是
|
|
322
|
+
* 同一个函数,于是「首次挂载 / 热开关重挂 / apply 后 resolve」三处对同一个键给出同一个值。
|
|
323
|
+
* 每次都现读磁盘而不是留挂载那一刻的快照:用户改过的设置不必重启就生效。
|
|
324
|
+
* @param identity - 行 id
|
|
325
|
+
* @param options - 行级覆盖
|
|
136
326
|
*/
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const needsCompat = isPluginEnabled('dsh-compat');
|
|
168
|
-
if (needsCompat) {
|
|
169
|
-
ensureResolveHook([DSC_PLUGINS_DIR]);
|
|
327
|
+
function configForRow(identity, options) {
|
|
328
|
+
if (options.config === undefined)
|
|
329
|
+
return getPluginConfig(identity);
|
|
330
|
+
if (options.configOrigin === 'row')
|
|
331
|
+
return resolvePluginConfig(identity, options.config);
|
|
332
|
+
return options.config;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* 导入一个插件模块并做全部挂载前校验(首次挂载与热重挂共用)。
|
|
336
|
+
*
|
|
337
|
+
* 为什么拆出来:热重挂必须「先导入 + 校验,全过了才动旧 fiber」;两条路径各写一遍
|
|
338
|
+
* 判定迟早会漂移(比如一边认 apiVersion 一边不认)。这里只做判定与读元数据,
|
|
339
|
+
* **不卸载任何东西**——回滚语义由调用方决定(首次挂载失败 = 停用;热重挂失败 = 保旧)。
|
|
340
|
+
* @param file - 入口文件绝对路径
|
|
341
|
+
* @param identity - 运行时身份(行 id)
|
|
342
|
+
* @param rowOptions - 行级覆盖(inject / 宿主配置 / native)
|
|
343
|
+
* @param meta - 这一行的元数据(模块声明的展示字段会写进来)
|
|
344
|
+
*/
|
|
345
|
+
async function inspectPluginModule(file, identity, rowOptions, meta) {
|
|
346
|
+
const native = rowOptions.native === true;
|
|
347
|
+
const needsCompat = !native && isPluginEnabled('dsh-compat');
|
|
348
|
+
// 解析钩子必须在**导入之前**就位:插件在模块顶层就 import @pneuma/runtime 与
|
|
349
|
+
// @deepseek-ai/* 的东西,等 apply 时再注册已经太晚(import 早就抛 ERR_MODULE_NOT_FOUND 了)。
|
|
350
|
+
// 注册**不再依赖 dsh-compat 开关**:dsh 兼容层只是"能不能跑 dsh 插件"的判定,
|
|
351
|
+
// 而 @pneuma/runtime 的重定向与开关无关。
|
|
352
|
+
ensureResolveHook([DSC_PLUGINS_DIR], APP_INSTALL_DIR);
|
|
353
|
+
// 钩子永远在(@pneuma/runtime 要单实例),但 @deepseek-ai/* 的重定向跟着开关走:
|
|
354
|
+
// 关掉兼容层时让 dsh 插件在 import 阶段就失败,用户才看得到「先启用 dsh-compat」。
|
|
355
|
+
setResolveHookCompat(isPluginEnabled('dsh-compat'));
|
|
356
|
+
if (needsCompat)
|
|
170
357
|
normalizeDshHome();
|
|
171
|
-
|
|
358
|
+
// 代数戳的落点:这一行的包目录算「功能包路径」,换代后 import 到的才是新代码。
|
|
359
|
+
// 0 代不加戳,所以首次挂载登记它没有任何副作用(启动态与探针仍是同一实例)。
|
|
360
|
+
registerPackageGenerationRoot(file);
|
|
172
361
|
const mod = await importPluginModule(file, meta);
|
|
173
|
-
if (mod === null)
|
|
174
|
-
|
|
175
|
-
|
|
362
|
+
if (mod === null)
|
|
363
|
+
return { ok: false, problem: meta.problem ?? '模块导入失败' };
|
|
364
|
+
// 包入口导出插件对象(默认导出或唯一一个带 apply 的命名导出);dsh 插件则是模块自带 apply。
|
|
365
|
+
const entry = pickPluginObject(mod);
|
|
366
|
+
if (entry === null) {
|
|
367
|
+
return { ok: false, problem: '模块里找不到插件对象:既没有默认导出,也没有唯一一个带 apply 的命名导出' };
|
|
176
368
|
}
|
|
177
|
-
if (typeof
|
|
369
|
+
if (typeof entry.name === 'string' && entry.name !== '')
|
|
370
|
+
meta.name = entry.name;
|
|
371
|
+
else if (typeof mod.name === 'string' && mod.name !== '')
|
|
178
372
|
meta.name = mod.name;
|
|
179
|
-
if (typeof
|
|
373
|
+
if (typeof entry.description === 'string' && entry.description !== '')
|
|
374
|
+
meta.description = entry.description;
|
|
375
|
+
else if (typeof mod.description === 'string' && mod.description !== '')
|
|
180
376
|
meta.description = mod.description;
|
|
181
|
-
if (typeof
|
|
377
|
+
if (typeof entry.apiVersion === 'number')
|
|
378
|
+
meta.apiVersion = entry.apiVersion;
|
|
379
|
+
else if (typeof mod.apiVersion === 'number')
|
|
182
380
|
meta.apiVersion = mod.apiVersion;
|
|
381
|
+
// 外部单文件插件没有 package.json 可读,设置分区只能靠模块导出(契约 §2 的缺省口径)。
|
|
382
|
+
if (typeof mod.settingsSection === 'string' && mod.settingsSection !== '')
|
|
383
|
+
meta.settingsSection = mod.settingsSection;
|
|
183
384
|
const capabilities = clientCapabilitiesOf(mod.client ?? mod.dshClient);
|
|
184
385
|
if (capabilities.length > 0)
|
|
185
386
|
meta.clientCapabilities = capabilities;
|
|
186
387
|
// ---- 版本管理:不兼容自动回滚(停用并写盘) ----
|
|
187
388
|
const problem = checkApiVersion(meta.apiVersion);
|
|
188
|
-
if (problem !== null)
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
return false;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
meta.problem = '缺少 apply 导出(不是 cordis object plugin)';
|
|
195
|
-
await disableSilently(base);
|
|
196
|
-
return false;
|
|
197
|
-
}
|
|
389
|
+
if (problem !== null)
|
|
390
|
+
return { ok: false, problem };
|
|
391
|
+
if (typeof entry.apply !== 'function')
|
|
392
|
+
return { ok: false, problem: '缺少 apply(不是 cordis object plugin)' };
|
|
393
|
+
// ---- 行级 inject:行上写了就盖过模块自带的(依赖关系属于装配,不属于包本身) ----
|
|
394
|
+
const rowInject = rowOptions.inject === undefined ? undefined : [...rowOptions.inject];
|
|
198
395
|
// ---- dsh 风格识别 ----
|
|
199
396
|
// inject 里有 dsc 不认识的服务名 = dsh 生态的插件。兼容层没开就提示先开它;开了也
|
|
200
397
|
// 垫不起的(sessionProjections、agents 这类要整个 dsh 会话语义的),话说明白再回滚。
|
|
201
|
-
const injectNames =
|
|
202
|
-
const foreign = injectNames.filter((n) => !DSC_SERVICE_NAMES.has(n));
|
|
398
|
+
const injectNames = rowInject ?? injectNamesOf(entry.inject ?? mod.inject);
|
|
399
|
+
const foreign = native ? [] : injectNames.filter((n) => !DSC_SERVICE_NAMES.has(n));
|
|
203
400
|
if (foreign.length > 0) {
|
|
204
401
|
// 一句「超出范围」帮不到插件作者:这张表给每个常见 dsh 服务名一句判定
|
|
205
402
|
// (有对应但语义不同 / 根本没有),见 core/dsh-compat/service-map.ts。
|
|
206
403
|
const detail = describeForeignServices(foreign);
|
|
207
404
|
if (!isPluginEnabled('dsh-compat')) {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
405
|
+
return {
|
|
406
|
+
ok: false,
|
|
407
|
+
problem: `插件需要 dsc 不认识的服务:${detail}。若这是 dsh(DeepSeek Harness)风格的插件,` +
|
|
408
|
+
'请先在插件中心启用「dsh 兼容层」(dsh-compat)再打开本插件',
|
|
409
|
+
};
|
|
211
410
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
await disableSilently(base);
|
|
218
|
-
return false;
|
|
411
|
+
return {
|
|
412
|
+
ok: false,
|
|
413
|
+
problem: `这个 dsh 插件要的服务 Pneuma 没有或对不上:${detail}。` +
|
|
414
|
+
'依赖这些语义的插件在 Pneuma 上跑不起来,需要改写(或等对应服务做出来)',
|
|
415
|
+
};
|
|
219
416
|
}
|
|
220
417
|
// ---- 配置校验(dsh 插件用 schemastery 导出 Config;有就调一次,失败响亮回滚) ----
|
|
221
|
-
|
|
222
|
-
|
|
418
|
+
// 三档优先级见 `configForRow`:宿主直给整块替换,patch 行与磁盘同走一个合并。
|
|
419
|
+
let configForApply = configForRow(identity, rowOptions);
|
|
420
|
+
const configSchema = mod.Config ?? entry.Config;
|
|
421
|
+
if (typeof configSchema === 'function') {
|
|
223
422
|
try {
|
|
224
|
-
const validated =
|
|
423
|
+
const validated = configSchema(configForApply);
|
|
225
424
|
if (validated !== null && typeof validated === 'object')
|
|
226
425
|
configForApply = validated;
|
|
227
426
|
}
|
|
228
427
|
catch (error) {
|
|
229
|
-
|
|
230
|
-
await disableSilently(base);
|
|
231
|
-
return false;
|
|
428
|
+
return { ok: false, problem: `插件配置校验失败:${err(error)}(检查 ~/.dsc/plugins.json 里这条目目的 config)` };
|
|
232
429
|
}
|
|
233
430
|
}
|
|
431
|
+
return { ok: true, value: { entry, mod, configForApply, inject: rowInject, needsCompat } };
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* 挂载一个外部插件(热;已挂载时先卸载旧 fiber)。
|
|
435
|
+
* 失败路径:apiVersion 不兼容 / 模块损坏 / 缺 apply → 元数据记 problem,
|
|
436
|
+
* 自动停用(写盘回滚到可用状态),返回 false。
|
|
437
|
+
* @param file - 入口文件绝对路径
|
|
438
|
+
* @param identity - 运行时身份(行 id)。不传 = 退回文件名(外部单文件插件的老行为)
|
|
439
|
+
* @param rowOptions - 行级覆盖(inject / 配置 / native)
|
|
440
|
+
*/
|
|
441
|
+
export async function mountExternalPlugin(file, identity, rowOptions = {}) {
|
|
442
|
+
const root = rootRef;
|
|
443
|
+
if (root === null)
|
|
444
|
+
throw new Error('plugin runtime 未初始化');
|
|
445
|
+
// 身份 = 行 id(契约 §4):mounted / plugins.json / 插件中心 / settingsSection 全按它。
|
|
446
|
+
const base = identity !== undefined && identity !== '' ? identity : basename(file);
|
|
447
|
+
// 行 id 与文件名不一致时登记旧键:0.8.1 写的 plugins.json 里是文件名,双查才能读到老配置。
|
|
448
|
+
if (base !== basename(file))
|
|
449
|
+
registerPluginAlias(base, basename(file));
|
|
450
|
+
registerPluginSource(base, file);
|
|
451
|
+
// 已经登记过(应用自带行在挂之前先登记了来源与展示文案)就沿用那一份:
|
|
452
|
+
// 覆盖成 external 会把内置包全赶到插件中心的「自定义」组里,连能不能停用也一并丢掉。
|
|
453
|
+
// `defaultDisabled` 也要带过来:它是「条目树里没有这条记录时默认关」的声明,
|
|
454
|
+
// 挂载这一趟把 meta 重建一次(下面 registerPluginMeta)若丢掉它,
|
|
455
|
+
// `readEnabledPlugins` 对同一份 plugins.json 的结论会随「挂过没挂过」变脸(P0-4)。
|
|
456
|
+
const previous = getPluginMeta(base);
|
|
457
|
+
const meta = {
|
|
458
|
+
file: base,
|
|
459
|
+
name: previous?.name ?? base.replace(/\.js$/, ''),
|
|
460
|
+
description: previous?.description ?? '',
|
|
461
|
+
source: previous?.source ?? 'external',
|
|
462
|
+
...(previous?.toggleable === true ? { toggleable: true } : {}),
|
|
463
|
+
...(previous?.defaultDisabled === true ? { defaultDisabled: true } : {}),
|
|
464
|
+
};
|
|
465
|
+
registerPluginMeta(meta);
|
|
466
|
+
// 导入 + 校验:与热重挂(remountExternalPlugin)共用同一套判定,避免两条路径各判一遍。
|
|
467
|
+
const inspected = await inspectPluginModule(file, base, rowOptions, meta);
|
|
468
|
+
if (!inspected.ok) {
|
|
469
|
+
meta.problem = inspected.problem;
|
|
470
|
+
await disableSilently(base);
|
|
471
|
+
return false;
|
|
472
|
+
}
|
|
473
|
+
const { entry, mod, configForApply, inject: rowInject, needsCompat } = inspected.value;
|
|
234
474
|
// ---- 挂载 ----
|
|
235
475
|
await unmountExternalPlugin(base);
|
|
236
476
|
// 兼容层开着:外部插件的 ctx.tools 换成双形状兼容面(dsc ToolEntry 与 dsh
|
|
@@ -241,12 +481,14 @@ export async function mountExternalPlugin(file) {
|
|
|
241
481
|
try {
|
|
242
482
|
const pluginObject = {
|
|
243
483
|
name: meta.name,
|
|
244
|
-
inject: mod.inject,
|
|
245
|
-
apply: (innerCtx, config) =>
|
|
484
|
+
inject: rowInject ?? (entry.inject ?? mod.inject),
|
|
485
|
+
apply: (innerCtx, config) => entry.apply(needsCompat ? compatCtx(innerCtx, base, asked) : innerCtx, config),
|
|
246
486
|
};
|
|
247
487
|
const fiber = root.plugin(pluginObject, configForApply);
|
|
248
488
|
await fiber;
|
|
249
|
-
|
|
489
|
+
mountedOf(root).set(base, fiber);
|
|
490
|
+
// 留住插件对象与配置:热重挂失败时要靠它把旧版本原样放回去(Fiber 只能 dispose)。
|
|
491
|
+
mountDetailsOf(root).set(base, { plugin: pluginObject, config: configForApply, options: rowOptions });
|
|
250
492
|
meta.problem = undefined;
|
|
251
493
|
return true;
|
|
252
494
|
}
|
|
@@ -263,6 +505,195 @@ export async function mountExternalPlugin(file) {
|
|
|
263
505
|
return false;
|
|
264
506
|
}
|
|
265
507
|
}
|
|
508
|
+
/**
|
|
509
|
+
* 把一行**已挂载**的插件换成磁盘上的新代码(改代码不重启即生效)。
|
|
510
|
+
*
|
|
511
|
+
* 时序(与 dsh 的有意差异:dsh 是先逐出、失败即失败;我们要保旧的):
|
|
512
|
+
* 1. 换代({@link bumpGeneration})——之后功能包的解析结果都带 `?g=<新代数>`;
|
|
513
|
+
* 2. **先**导入新模块并做与首次挂载同一套校验(插件对象 / apiVersion / Config);
|
|
514
|
+
* 3. 全过了才 dispose 旧 fiber,再用新对象挂载;
|
|
515
|
+
* 4. 挂载这一步失败 → 用留住的旧对象与配置再挂一次(回滚),原因写 meta.problem。
|
|
516
|
+
*
|
|
517
|
+
* 任何一步失败都**不碰** `plugins.json`(不 disableSilently):用户装的东西不能被
|
|
518
|
+
* 一次手滑的语法错误停掉。失败只写 meta.problem 并返回 false。
|
|
519
|
+
*
|
|
520
|
+
* 一次要换多行时走 {@link remountExternalPlugins}:它保证同一批只换一代。
|
|
521
|
+
* @param identity - 行 id(首次挂载时的身份;不是文件路径)
|
|
522
|
+
*/
|
|
523
|
+
export async function remountExternalPlugin(identity) {
|
|
524
|
+
const [result] = await remountExternalPlugins([identity]);
|
|
525
|
+
return result ?? { ok: false, generation: currentGeneration(), problem: '没有可重挂的行' };
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* 批量重挂一组行:**一次调用只换代一次**(库包变更命中多行时用)。
|
|
529
|
+
*
|
|
530
|
+
* 为什么必须批量换一代:代数戳是解析结果的一部分,同一个库包在同一代里只解析出
|
|
531
|
+
* 一个实例。如果两行各换各的代,它们会各自 import 一份新的库对象——模块级单例
|
|
532
|
+
* (计数器、缓存、注册表)当场裂成两份。一次库变更命中两行时,两行必须落在同一个
|
|
533
|
+
* 代数上,才能拿到同一个库。
|
|
534
|
+
*
|
|
535
|
+
* 失败语义与单行重挂完全一致(复用 {@link remountOne}):
|
|
536
|
+
* - 先做前置检查(没挂载 / 文件不在)——这些行不参与换代,返回失败;
|
|
537
|
+
* - 有任何一行值得重挂才 bump 一次,再逐行导入、校验、换 fiber;
|
|
538
|
+
* - 单行导入失败或挂载失败不拖累同批其余行,失败的行保留旧 fiber 与旧元数据。
|
|
539
|
+
* @param identities - 行 id 列表(重复项自动去重;结果按入参顺序返回)
|
|
540
|
+
* @returns 与 identities 一一对应的结果
|
|
541
|
+
*/
|
|
542
|
+
export async function remountExternalPlugins(identities) {
|
|
543
|
+
const root = rootRef;
|
|
544
|
+
const unique = [];
|
|
545
|
+
for (const identity of identities)
|
|
546
|
+
if (!unique.includes(identity))
|
|
547
|
+
unique.push(identity);
|
|
548
|
+
/** 身份 → 结果;最后按入参顺序摊平,重复项拿到同一份。 */
|
|
549
|
+
const results = new Map();
|
|
550
|
+
if (root === null) {
|
|
551
|
+
for (const identity of unique) {
|
|
552
|
+
results.set(identity, { ok: false, generation: currentGeneration(), problem: '插件运行时还没初始化' });
|
|
553
|
+
}
|
|
554
|
+
return identities.map((identity) => results.get(identity));
|
|
555
|
+
}
|
|
556
|
+
const table = mountedOf(root);
|
|
557
|
+
/** 过了前置检查、真的需要重挂的行。 */
|
|
558
|
+
const queue = [];
|
|
559
|
+
for (const identity of unique) {
|
|
560
|
+
// 幂等判断(mountRow 用的那一处)只拦「首次挂载」;热重挂走的正是「已经挂上了」这一支。
|
|
561
|
+
if (!table.has(identity)) {
|
|
562
|
+
results.set(identity, {
|
|
563
|
+
ok: false,
|
|
564
|
+
generation: currentGeneration(),
|
|
565
|
+
problem: '这一行当前没有挂载,热重挂只对已挂载的行生效',
|
|
566
|
+
});
|
|
567
|
+
continue;
|
|
568
|
+
}
|
|
569
|
+
const file = pluginSources.get(identity) ?? resolveEntryPath(identity);
|
|
570
|
+
if (file === null || !existsSync(file)) {
|
|
571
|
+
const problem = `找不到这一行的入口文件(${identity}),无法热重挂`;
|
|
572
|
+
const missing = getPluginMeta(identity);
|
|
573
|
+
if (missing !== undefined)
|
|
574
|
+
missing.problem = problem;
|
|
575
|
+
results.set(identity, { ok: false, generation: currentGeneration(), problem });
|
|
576
|
+
continue;
|
|
577
|
+
}
|
|
578
|
+
queue.push({ identity, file });
|
|
579
|
+
}
|
|
580
|
+
// 换代只做一次:同一批(例如一次库包变更命中的两行)落在同一个代数上。
|
|
581
|
+
const generation = queue.length > 0 ? bumpGeneration() : currentGeneration();
|
|
582
|
+
for (const item of queue) {
|
|
583
|
+
try {
|
|
584
|
+
results.set(item.identity, await remountOne(root, item.identity, item.file, generation));
|
|
585
|
+
}
|
|
586
|
+
catch (error) {
|
|
587
|
+
// 单行出事不拖累同批其余行:记下这一行的失败,后面的照常换新。
|
|
588
|
+
results.set(item.identity, {
|
|
589
|
+
ok: false,
|
|
590
|
+
generation,
|
|
591
|
+
problem: `热重挂出错:${err(error)}(旧版本继续运行)`,
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
return identities.map((identity) => results.get(identity));
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* 重挂一行(单行与批量路径共用)。代数由调用方给:这里不再自己 bump,
|
|
599
|
+
* 否则批量重挂会变成「几行几个代」。
|
|
600
|
+
* @param root - 内核 root
|
|
601
|
+
* @param identity - 行 id
|
|
602
|
+
* @param file - 已确认存在的入口文件
|
|
603
|
+
* @param generation - 这一批用的代数
|
|
604
|
+
*/
|
|
605
|
+
async function remountOne(root, identity, file, generation) {
|
|
606
|
+
const table = mountedOf(root);
|
|
607
|
+
const meta = getPluginMeta(identity) ?? {
|
|
608
|
+
file: identity,
|
|
609
|
+
name: identity.replace(/\.js$/, ''),
|
|
610
|
+
description: '',
|
|
611
|
+
source: 'external',
|
|
612
|
+
};
|
|
613
|
+
const details = mountDetailsOf(root);
|
|
614
|
+
const previous = details.get(identity);
|
|
615
|
+
// 失败时连元数据一起还原:新模块可能已经把 name/apiVersion 改成新值,旧 fiber 却还在跑。
|
|
616
|
+
const metaBefore = { ...meta };
|
|
617
|
+
// 行级 inject / 宿主配置沿用挂载时那一份(重挂不是重新装配);优先取 `rowOptionsOf`——
|
|
618
|
+
// 重扫会用它刷新,patch 改过之后重挂拿到的是新配置(与热开关同一条口径)。
|
|
619
|
+
const options = rowOptionsOf.get(identity) ?? previous?.options ?? {};
|
|
620
|
+
const inspected = await inspectPluginModule(file, identity, options, meta);
|
|
621
|
+
if (!inspected.ok) {
|
|
622
|
+
restoreMeta(meta, metaBefore);
|
|
623
|
+
meta.problem = `热重挂失败:${inspected.problem}(旧版本继续运行)`;
|
|
624
|
+
return { ok: false, generation, problem: meta.problem };
|
|
625
|
+
}
|
|
626
|
+
const { entry, mod, configForApply, inject, needsCompat } = inspected.value;
|
|
627
|
+
/** 插件运行时直接 `ctx.get` 过的服务名(诊断用)。 */
|
|
628
|
+
const asked = [];
|
|
629
|
+
const pluginObject = {
|
|
630
|
+
name: meta.name,
|
|
631
|
+
inject: inject ?? (entry.inject ?? mod.inject),
|
|
632
|
+
apply: (innerCtx, config) => entry.apply(needsCompat ? compatCtx(innerCtx, identity, asked) : innerCtx, config),
|
|
633
|
+
};
|
|
634
|
+
// 导入与校验都过了,才动旧 fiber:cordis 里两份同时 provide 同一个服务会直接失败,
|
|
635
|
+
// 所以顺序只能是「先卸再挂」。
|
|
636
|
+
await unmountExternalPlugin(identity);
|
|
637
|
+
try {
|
|
638
|
+
const fiber = root.plugin(pluginObject, configForApply);
|
|
639
|
+
await fiber;
|
|
640
|
+
table.set(identity, fiber);
|
|
641
|
+
details.set(identity, { plugin: pluginObject, config: configForApply, options });
|
|
642
|
+
meta.problem = undefined;
|
|
643
|
+
return { ok: true, generation };
|
|
644
|
+
}
|
|
645
|
+
catch (error) {
|
|
646
|
+
const failure = `新版本挂载失败:${err(error)}`;
|
|
647
|
+
let restored = false;
|
|
648
|
+
if (previous !== undefined) {
|
|
649
|
+
try {
|
|
650
|
+
const fiber = root.plugin(previous.plugin, previous.config);
|
|
651
|
+
await fiber;
|
|
652
|
+
table.set(identity, fiber);
|
|
653
|
+
restored = true;
|
|
654
|
+
}
|
|
655
|
+
catch {
|
|
656
|
+
// 旧版本也起不来:下面的文案会说清「没能恢复」,不留一句假安慰。
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
restoreMeta(meta, metaBefore);
|
|
660
|
+
meta.problem = restored
|
|
661
|
+
? `${failure};已回滚到旧版本(${identity} 仍在运行)`
|
|
662
|
+
: `${failure};旧版本也没能恢复`;
|
|
663
|
+
return { ok: false, generation, problem: meta.problem };
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* 把元数据还原成热重挂之前的样子。
|
|
668
|
+
*
|
|
669
|
+
* `Object.assign` 只覆盖、不删除:新模块可能新增过 apiVersion / clientCapabilities,
|
|
670
|
+
* 不先删掉新键的话,插件中心会显示一份并不在跑的声明。
|
|
671
|
+
*/
|
|
672
|
+
function restoreMeta(meta, before) {
|
|
673
|
+
for (const key of Object.keys(meta)) {
|
|
674
|
+
if (!(key in before))
|
|
675
|
+
delete meta[key];
|
|
676
|
+
}
|
|
677
|
+
Object.assign(meta, before);
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* 当前已挂载、且从磁盘加载的行(行 id → 入口文件)。功能包热更轮询用。
|
|
681
|
+
*
|
|
682
|
+
* 已卸载的行不在名单里;组合包默认关的行虽然登记了来源,但没挂载,也不该被轮询。
|
|
683
|
+
*/
|
|
684
|
+
export function listMountedPluginSources() {
|
|
685
|
+
const root = rootRef;
|
|
686
|
+
if (root === null)
|
|
687
|
+
return [];
|
|
688
|
+
const table = mountedOf(root);
|
|
689
|
+
const sources = [];
|
|
690
|
+
for (const [identity, file] of pluginSources) {
|
|
691
|
+
if (!table.has(identity))
|
|
692
|
+
continue;
|
|
693
|
+
sources.push({ identity, file });
|
|
694
|
+
}
|
|
695
|
+
return sources;
|
|
696
|
+
}
|
|
266
697
|
/**
|
|
267
698
|
* dsh 兼容的 ctx 视图:`ctx.tools` 换成双形状的兼容面(risk 的映射每次 register
|
|
268
699
|
* 时现读插件条目配置),其余服务原样透传。logger 是 cordis 内置服务,不用垫。
|
|
@@ -319,12 +750,16 @@ function resolveRiskConfig(file) {
|
|
|
319
750
|
const raw = getPluginConfig(file);
|
|
320
751
|
return { risk: raw.risk, risks: raw.risks };
|
|
321
752
|
}
|
|
322
|
-
/**
|
|
753
|
+
/** 卸载外部插件(未挂载时静默;只动当前 root 上的那份)。 */
|
|
323
754
|
export async function unmountExternalPlugin(file) {
|
|
324
|
-
const
|
|
755
|
+
const current = rootRef;
|
|
756
|
+
if (current === null)
|
|
757
|
+
return;
|
|
758
|
+
const table = mountedOf(current);
|
|
759
|
+
const fiber = table.get(file);
|
|
325
760
|
if (fiber === undefined)
|
|
326
761
|
return;
|
|
327
|
-
|
|
762
|
+
table.delete(file);
|
|
328
763
|
try {
|
|
329
764
|
await fiber.dispose();
|
|
330
765
|
}
|
|
@@ -343,11 +778,20 @@ async function disableSilently(file) {
|
|
|
343
778
|
*/
|
|
344
779
|
export async function setPluginEnabledHot(file, enabled) {
|
|
345
780
|
if (enabled) {
|
|
346
|
-
//
|
|
347
|
-
const entryFile =
|
|
781
|
+
// 组合包的行按行 id 找回它原来那个入口;其余(外部单文件插件)仍按 ~/.dsc/plugins/ 里的文件找。
|
|
782
|
+
const entryFile = pluginSources.get(file) ?? resolveEntryPath(file);
|
|
348
783
|
if (entryFile === null)
|
|
349
784
|
return { ok: false, problem: `找不到插件文件 ${file}(检查 ~/.dsc/plugins/)` };
|
|
350
|
-
|
|
785
|
+
// 重挂不是重新装配:行选项在挂载(或启动时的扫描)那一步就登记了,这里原样取回。
|
|
786
|
+
// 优先取 `rowOptionsOf`:重扫会刷新它,用户改过 patch 之后再拔一次开关拿到的是新配置;
|
|
787
|
+
// `mountDetails` 里那份是上一次挂载时的快照,留作兜底。**不能**把 options.config
|
|
788
|
+
// 直接塞回去:那是快照,用户之后改过磁盘配置,得按同一套三档优先级(见 `configForRow`)
|
|
789
|
+
// 现读重建。修前这里一个选项都不传,拔一次开关 patch 的 config 就丢了。
|
|
790
|
+
const current = rootRef;
|
|
791
|
+
const details = current === null ? undefined : mountDetailsOf(current).get(file);
|
|
792
|
+
const rowOptions = rowOptionsOf.get(file) ?? details?.options ?? {};
|
|
793
|
+
// 身份 = 行 id:文件与 id 不同时才显式传,单文件插件仍走文件名(兼容现状)。
|
|
794
|
+
const ok = await mountExternalPlugin(entryFile, file === basename(entryFile) ? undefined : file, rowOptions);
|
|
351
795
|
if (!ok)
|
|
352
796
|
return { ok: false, problem: getPluginMeta(file)?.problem ?? '挂载失败' };
|
|
353
797
|
// 挂载成功后确保条目树里是启用状态
|
|
@@ -378,7 +822,10 @@ export async function mountAllExternalPlugins(root, extraPaths) {
|
|
|
378
822
|
files.set(basename(extra), extra);
|
|
379
823
|
const failures = [];
|
|
380
824
|
for (const [base, file] of files) {
|
|
381
|
-
|
|
825
|
+
// 开关判定只走 plugin-registry 的 `isPluginEnabled`(内部 `readEnabledPlugins`):
|
|
826
|
+
// 旧键别名、`defaultDisabled`、批版口径都在那里一套写完。这里以前另有一份
|
|
827
|
+
// 「精确 file 比对」,同一份 plugins.json 会和插件中心得出相反结论(P0-4)。
|
|
828
|
+
if (!isPluginEnabled(base))
|
|
382
829
|
continue;
|
|
383
830
|
const ok = await mountExternalPlugin(file);
|
|
384
831
|
if (!ok) {
|
|
@@ -396,9 +843,70 @@ export async function mountAllExternalPlugins(root, extraPaths) {
|
|
|
396
843
|
for (const warning of bundles.warnings) {
|
|
397
844
|
root.transcript.system(`组合包:${warning}`, 'error');
|
|
398
845
|
}
|
|
846
|
+
// 装包不重启:把「profile 清单」这一路接进热更轮询。startPluginHotUpdate 是幂等的——
|
|
847
|
+
// 装配路径(mountApplicationRows)可能已经先拉起过轮询器,第二次调用只补上这一路。
|
|
848
|
+
await startPluginHotUpdate(root, APP_INSTALL_DIR, profileDir);
|
|
399
849
|
}
|
|
400
850
|
return failures;
|
|
401
851
|
}
|
|
852
|
+
/**
|
|
853
|
+
* 扫一遍外部插件目录:把**盘上新出现的** `.js` 挂上,把**已经不在盘上的**卸掉。
|
|
854
|
+
*
|
|
855
|
+
* 为什么需要:{@link mountAllExternalPlugins} 只在启动时扫一次,用户手工把文件拷进
|
|
856
|
+
* `~/.dsc/plugins/`(不走插件工具的安装动作)在加这一路之前只能重启宿主才挂上。热更轮询发现
|
|
857
|
+
* 目录变了就调这里一次;「该不该挂」的规则仍只有这一份:plugins.json 里停用过的跳过、
|
|
858
|
+
* 已经挂着的不重挂。
|
|
859
|
+
*
|
|
860
|
+
* 为什么收 `only`:刚拷进来的文件可能还没写完,挂一个半截文件会失败、而失败路径会把
|
|
861
|
+
* 它写盘停用(用户刚装的插件被永久关掉)。轮询器因此只把「连续两轮指纹没变」的名字
|
|
862
|
+
* 交进来,其余留在下一轮。省略这个参数 = 盘上有几个就挂几个(启动路径的语义)。
|
|
863
|
+
* @param only - 只考虑这些文件名(省略 = 全部)
|
|
864
|
+
* @returns 装上的行 id、卸掉的行 id、失败清单(与启动路径同形)
|
|
865
|
+
*/
|
|
866
|
+
export async function adoptPluginsFromDisk(only) {
|
|
867
|
+
const root = rootRef;
|
|
868
|
+
const result = { mounted: [], unmounted: [], failures: [] };
|
|
869
|
+
if (root === null)
|
|
870
|
+
return result;
|
|
871
|
+
const dir = DSC_PLUGINS_DIR;
|
|
872
|
+
let names = [];
|
|
873
|
+
try {
|
|
874
|
+
names = readdirSync(dir).filter((name) => name.endsWith('.js')).sort();
|
|
875
|
+
}
|
|
876
|
+
catch {
|
|
877
|
+
// 目录不在:没有可挂的。已经挂着的文件被删那一种,下面那一半照样能处理。
|
|
878
|
+
}
|
|
879
|
+
const present = new Set(names);
|
|
880
|
+
// 先卸「文件已经不在了」的:先让 disposer 跑完,后来的挂载不会与它争同一个服务名。
|
|
881
|
+
for (const [identity, file] of [...pluginSources]) {
|
|
882
|
+
if (dirname(file) !== dir)
|
|
883
|
+
continue;
|
|
884
|
+
if (present.has(basename(file)))
|
|
885
|
+
continue;
|
|
886
|
+
if (!mountedOf(root).has(identity))
|
|
887
|
+
continue;
|
|
888
|
+
await unmountExternalPlugin(identity);
|
|
889
|
+
result.unmounted.push(identity);
|
|
890
|
+
}
|
|
891
|
+
for (const name of names) {
|
|
892
|
+
if (only !== undefined && !only.has(name))
|
|
893
|
+
continue;
|
|
894
|
+
// 同 mountAllExternalPlugins:开关只问 plugin-registry 那一套判定,别再维护第二份。
|
|
895
|
+
if (!isPluginEnabled(name))
|
|
896
|
+
continue;
|
|
897
|
+
if (mountedOf(root).has(name))
|
|
898
|
+
continue;
|
|
899
|
+
const ok = await mountExternalPlugin(join(dir, name));
|
|
900
|
+
if (ok) {
|
|
901
|
+
result.mounted.push(name);
|
|
902
|
+
continue;
|
|
903
|
+
}
|
|
904
|
+
const meta = getPluginMeta(name);
|
|
905
|
+
if (meta?.problem !== undefined)
|
|
906
|
+
result.failures.push({ file: name, name: meta.name, problem: meta.problem });
|
|
907
|
+
}
|
|
908
|
+
return result;
|
|
909
|
+
}
|
|
402
910
|
/**
|
|
403
911
|
* 当前生效的 profile 目录(没配就是 null = 不加载组合包)。
|
|
404
912
|
*
|
|
@@ -417,21 +925,25 @@ export { activeProfileDir };
|
|
|
417
925
|
* compatibility.json 里登记了豁免)。
|
|
418
926
|
* @param root - 内核 root(组合包也走同一条热挂载路径)
|
|
419
927
|
* @param profileDir - profile 目录
|
|
928
|
+
* @param options - 应用锚点(自检用;缺省按构建产物位置推算)
|
|
420
929
|
* @returns 挂载失败清单(与 mountAllExternalPlugins 同形)+ 告警
|
|
930
|
+
* @throws {Error} 行 id 重复、同一包名解析出两个物理目录(都是配置错误,带着跑只会更糟)
|
|
421
931
|
*/
|
|
422
|
-
export async function mountBundlePlugins(root, profileDir) {
|
|
932
|
+
export async function mountBundlePlugins(root, profileDir, options = {}) {
|
|
423
933
|
initPluginRuntime(root);
|
|
424
|
-
|
|
425
|
-
//
|
|
426
|
-
//
|
|
427
|
-
|
|
428
|
-
|
|
934
|
+
const appDir = options.appDir ?? APP_INSTALL_DIR;
|
|
935
|
+
// 组合包的插件代码在 profile 自己的 node_modules 里,它们 import @pneuma/runtime 与
|
|
936
|
+
// @deepseek-ai/* 时要把这个目录也当成「允许重定向的插件根」——只认 ~/.dsc/plugins/ 的话,
|
|
937
|
+
// 真装一个组合包会在 import 阶段就 ERR_MODULE_NOT_FOUND。
|
|
938
|
+
// 无条件注册:@pneuma/runtime 的重定向与 dsh-compat 开关无关。
|
|
939
|
+
ensureResolveHook([join(profileDir, 'node_modules')], appDir);
|
|
940
|
+
setResolveHookCompat(isPluginEnabled('dsh-compat'));
|
|
429
941
|
const profile = readProfile(profileDir);
|
|
430
942
|
const layers = [];
|
|
431
943
|
const warnings = [];
|
|
432
944
|
/** 每一层是哪个包的(解析相对路径时按它来)。 */
|
|
433
945
|
const layerOwner = new Map();
|
|
434
|
-
/** 包名 → 读盘结果(挂上之后要拿它的 `
|
|
946
|
+
/** 包名 → 读盘结果(挂上之后要拿它的 `pneuma.client` 给插件中心看)。 */
|
|
435
947
|
const bundleInfoOf = new Map();
|
|
436
948
|
for (const name of profile.bundles) {
|
|
437
949
|
const dir = bundleDirOf(profileDir, name);
|
|
@@ -452,15 +964,21 @@ export async function mountBundlePlugins(root, profileDir) {
|
|
|
452
964
|
continue;
|
|
453
965
|
}
|
|
454
966
|
bundleInfoOf.set(info.name, info);
|
|
967
|
+
// 读包时发现的问题(patch 数组里有非文件项之类)照样要传到用户眼前。
|
|
968
|
+
warnings.push(...info.warnings);
|
|
455
969
|
const manifest = JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8'));
|
|
456
970
|
const engineProblem = enginesProblem(manifest);
|
|
457
|
-
if (engineProblem !== null && !profile.exemptions.
|
|
458
|
-
|
|
971
|
+
if (engineProblem !== null && !exemptionAllows(profile.exemptions, info.name, info.version)) {
|
|
972
|
+
// 登记过但版本对不上时要说清是哪一条对不上,并给出重按命令(见 exemptionMissProblem)。
|
|
973
|
+
const missed = exemptionMissProblem(profile.exemptions, info.name, info.version);
|
|
974
|
+
warnings.push(missed === null ? `${info.name}:${engineProblem}` : `${info.name}:${engineProblem} ${missed}`);
|
|
459
975
|
continue;
|
|
460
976
|
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
977
|
+
// 一个包可以声明多份 patch(dsh 的字符串数组写法):按声明顺序逐层叠,
|
|
978
|
+
// 后面的层看得见前面层 insert 的行,也盖前面的配置。
|
|
979
|
+
for (const layer of info.patch) {
|
|
980
|
+
layers.push(layer);
|
|
981
|
+
layerOwner.set(layer.label, dir);
|
|
464
982
|
}
|
|
465
983
|
}
|
|
466
984
|
if (profile.patch !== null)
|
|
@@ -483,59 +1001,680 @@ export async function mountBundlePlugins(root, profileDir) {
|
|
|
483
1001
|
const base = [];
|
|
484
1002
|
const applied = applyPatchLayers(base, layers);
|
|
485
1003
|
warnings.push(...applied.warnings);
|
|
1004
|
+
// 行 id 重复是配置错误:dsh 那边静默让后写覆盖前写,两个来源抢一个身份,出问题查不出来。
|
|
1005
|
+
if (applied.duplicates.length > 0)
|
|
1006
|
+
throw duplicateRowsError(applied.duplicates, '组合包');
|
|
1007
|
+
// 这一代组合出的**行 id 全集**(含 group 的子行):重算时按它判「哪一行还在」。
|
|
1008
|
+
// 按 id 判而不是按「哪个包给的」,是因为 profile 自己那层 patch 插的行没有包归属——
|
|
1009
|
+
// dsh 也是这么判的(packages/boot/app-boot/src/index.ts:350-355 比 listed 与 composed)。
|
|
1010
|
+
const composedIds = collectRowIds(applied.rows);
|
|
486
1011
|
const failures = [];
|
|
1012
|
+
const ctx = {
|
|
1013
|
+
profileDir,
|
|
1014
|
+
appDir,
|
|
1015
|
+
overrideDir: profileDir,
|
|
1016
|
+
where: '组合包',
|
|
1017
|
+
layerOwner,
|
|
1018
|
+
ownerOf,
|
|
1019
|
+
bundleInfoOf,
|
|
1020
|
+
hostConfig: undefined,
|
|
1021
|
+
exemptions: profile.exemptions,
|
|
1022
|
+
warnings,
|
|
1023
|
+
root,
|
|
1024
|
+
language: languageOfConfigFile(activeConfigFile()),
|
|
1025
|
+
};
|
|
487
1026
|
for (const row of applied.rows) {
|
|
488
|
-
const
|
|
489
|
-
if (
|
|
490
|
-
|
|
491
|
-
|
|
1027
|
+
const failure = await mountRow(row, ctx);
|
|
1028
|
+
if (failure !== null)
|
|
1029
|
+
failures.push(failure);
|
|
1030
|
+
}
|
|
1031
|
+
return { failures, warnings, rows: composedIds };
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* 一层行(含 group 的子行)里所有稳定的行 id。
|
|
1035
|
+
*
|
|
1036
|
+
* 只认写了 id 的行:没 id 的行按文件名当身份(见 `mountRow`),文件名不在这一层决定得了,
|
|
1037
|
+
* 所以它们不参与「这一代还剩哪些行」的判断——那种行只有装包/卸包(`meta.bundle`)能认领。
|
|
1038
|
+
* @param rows - 一层的行
|
|
1039
|
+
*/
|
|
1040
|
+
function collectRowIds(rows) {
|
|
1041
|
+
const ids = [];
|
|
1042
|
+
const walk = (list) => {
|
|
1043
|
+
for (const row of list) {
|
|
1044
|
+
if (typeof row.id === 'string' && row.id !== '')
|
|
1045
|
+
ids.push(row.id);
|
|
1046
|
+
// group 行:`config` 就是子行数组(见 docs/plugin-model.md §3 第 6 条)。
|
|
1047
|
+
if (Array.isArray(row.config))
|
|
1048
|
+
walk(row.config);
|
|
492
1049
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
1050
|
+
};
|
|
1051
|
+
walk(rows);
|
|
1052
|
+
return ids;
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* 按 profile 清单重算组合包:新加的行挂上,清单里已经删掉的包的行卸掉。
|
|
1056
|
+
*
|
|
1057
|
+
* 为什么要有它:{@link mountBundlePlugins} 只在宿主启动时跑一次,所以 `numa plugin add`
|
|
1058
|
+
* 之后必须重启。这里把「清单说了算」做成一次可以反复做的计算——热更轮询发现 profile
|
|
1059
|
+
* 清单变了就调它(见 `core/plugin-watch`),装包因此不用重启宿主。
|
|
1060
|
+
*
|
|
1061
|
+
* 卸载按**身份**(行 id)走,不按文件路径:一个包可以给多行,行 id 与文件名也不是一回事,
|
|
1062
|
+
* {@link unmountExternalPlugin} 认的正是身份。
|
|
1063
|
+
*
|
|
1064
|
+
* 判据是**行 id 集合的差**(与 dsh 的 `recomposeProfile` 同一个做法:比 listed 与 composed):
|
|
1065
|
+
* - 属于这份 profile 的行:组合包给的行(`meta.bundle` 有值)与 profile 自己那层
|
|
1066
|
+
* patch 插的行(入口文件落在 profile 目录里);
|
|
1067
|
+
* - 还在这一代的行 id 里就留着,否则卸掉——所以从 profile 的 `cordis.patch.yml` 里删掉
|
|
1068
|
+
* 一条 insert,那一行也会跟着下线。
|
|
1069
|
+
*
|
|
1070
|
+
* profile 目录里的 package.json 不在了(用户删了 profile)不抛错:当成「清单为空」,
|
|
1071
|
+
* 把这一份 profile 挂的行全部卸掉。
|
|
1072
|
+
* @param root - 内核 root(组合包走同一条热挂载路径)
|
|
1073
|
+
* @param profileDir - profile 目录
|
|
1074
|
+
* @param options - 应用锚点(自检把应用指到临时目录时用)
|
|
1075
|
+
* @returns 这一轮挂了哪些、卸了哪些、哪些没挂上、有哪些告警
|
|
1076
|
+
* @throws {Error} 行 id 重复、同一包名解析出两个物理目录(配置错误,跟启动时一样响亮)
|
|
1077
|
+
*/
|
|
1078
|
+
export async function reconcileProfileBundles(root, profileDir, options = {}) {
|
|
1079
|
+
initPluginRuntime(root);
|
|
1080
|
+
const profileExists = existsSync(join(profileDir, 'package.json'));
|
|
1081
|
+
const table = mountedOf(root);
|
|
1082
|
+
const before = new Set(table.keys());
|
|
1083
|
+
let failures = [];
|
|
1084
|
+
const warnings = [];
|
|
1085
|
+
/** 这一代组合出的行 id 全集;profile 不在时是空集(整份都算被删)。 */
|
|
1086
|
+
let listed = new Set();
|
|
1087
|
+
if (profileExists) {
|
|
1088
|
+
// 已经挂上的行由 mountRow 自己跳过(幂等),这里只负责把新加的行挂上。
|
|
1089
|
+
const mountedNow = await mountBundlePlugins(root, profileDir, options);
|
|
1090
|
+
failures = mountedNow.failures;
|
|
1091
|
+
warnings.push(...mountedNow.warnings);
|
|
1092
|
+
listed = new Set(mountedNow.rows);
|
|
1093
|
+
}
|
|
1094
|
+
const unmounted = [];
|
|
1095
|
+
/**
|
|
1096
|
+
* 这一行是不是这份 profile 的:组合包给的行(`meta.bundle` 有值)与 profile 自己那层 patch
|
|
1097
|
+
* 插的行(入口文件落在 profile 目录里)。应用自带行与 `~/.dsc/plugins/*.js` 两样都不占。
|
|
1098
|
+
* 注意**不能**拿新清单的包名判归属:包刚被删掉,它已经不在这份清单里了,那样会漏卸。
|
|
1099
|
+
*/
|
|
1100
|
+
const ownedByProfile = (identity) => getPluginMeta(identity)?.bundle !== undefined || fileUnderProfile(identity, profileDir);
|
|
1101
|
+
for (const identity of [...table.keys()]) {
|
|
1102
|
+
if (!ownedByProfile(identity))
|
|
496
1103
|
continue;
|
|
497
|
-
|
|
498
|
-
|
|
1104
|
+
// 还在这一代的行 id 里就留着。按 id 判,不看它由哪个包给的——profile 自己那层 patch
|
|
1105
|
+
// 删掉一条 insert 时,那一行没有包归属,只有 id 能证明它已经不在了。
|
|
1106
|
+
if (listed.has(identity))
|
|
499
1107
|
continue;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
1108
|
+
await unmountExternalPlugin(identity);
|
|
1109
|
+
unmounted.push(identity);
|
|
1110
|
+
}
|
|
1111
|
+
// 停用中的行从来没进 `table`,但它们留着行选项与 patch 配置登记:这一代里没有这个 id 了,
|
|
1112
|
+
// 登记就得一起忘掉——否则同一个 id 后来被别的包复用,会拿到上一份 patch 配置(串味)。
|
|
1113
|
+
const registered = new Set([...rowOptionsOf.keys(), ...mountDetailsOf(root).keys()]);
|
|
1114
|
+
for (const identity of registered) {
|
|
1115
|
+
if (listed.has(identity))
|
|
1116
|
+
continue;
|
|
1117
|
+
if (!ownedByProfile(identity))
|
|
1118
|
+
continue;
|
|
1119
|
+
forgetRowRegistration(identity);
|
|
1120
|
+
}
|
|
1121
|
+
return {
|
|
1122
|
+
// 卸载之后再算「新挂上的」:同一轮里被挂上又立刻卸掉的行不该报成成功。
|
|
1123
|
+
mounted: [...table.keys()].filter((identity) => !before.has(identity)),
|
|
1124
|
+
unmounted,
|
|
1125
|
+
failures,
|
|
1126
|
+
warnings,
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
/** 这一行的入口是不是从 profile 目录里加载的(profile 被删时用来认领它挂过的行)。 */
|
|
1130
|
+
function fileUnderProfile(identity, profileDir) {
|
|
1131
|
+
const file = pluginSources.get(identity);
|
|
1132
|
+
if (file === undefined)
|
|
1133
|
+
return false;
|
|
1134
|
+
const target = physicalDir(file);
|
|
1135
|
+
return [resolve(profileDir), physicalDir(profileDir)].some((dir) => isInside(dir, target));
|
|
1136
|
+
}
|
|
1137
|
+
/** target 落在 dir 里面吗(相对路径以两个点开头就说明在外面)。 */
|
|
1138
|
+
function isInside(dir, target) {
|
|
1139
|
+
const rel = relative(dir, target);
|
|
1140
|
+
return rel !== '' && !rel.startsWith('..') && !isAbsolute(rel);
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* 界面形态 → 不挂的行 id。
|
|
1144
|
+
*
|
|
1145
|
+
* **这是「界面形态决定哪些行不挂」的唯一出处**:kernel / boot / headless 只把 surface
|
|
1146
|
+
* 传进来,不许各自再写一遍判断;patch 里也不表达这件事(同一份 patch 要能同时喂给三种壳)。
|
|
1147
|
+
* 未传 surface 时这张表不生效(都挂),留给自检与单进程调试。
|
|
1148
|
+
*/
|
|
1149
|
+
export const SURFACE_ROW_SKIPS = {
|
|
1150
|
+
// 终端界面:交互式宿主那条 stdio 行不该起来(它会把 stdio 抢走)
|
|
1151
|
+
tui: ['host-stdio'],
|
|
1152
|
+
// 无界面(桌面宿主):TUI 行不该起来
|
|
1153
|
+
headless: ['tui'],
|
|
1154
|
+
// 不传 surface 的默认值:三个「界面/外部连接」行都不挂。
|
|
1155
|
+
//
|
|
1156
|
+
// 为什么要这个默认值:探针会直接 createKernel。TUI 行一挂就起 ink 渲染与定时器,
|
|
1157
|
+
// 进程不退出;host-stdio 会抢 stdin。以前这两行由入口挂,探针天然没有;
|
|
1158
|
+
// 包化之后必须由 surface 表达「这是测试宿主」。
|
|
1159
|
+
none: ['tui', 'host-stdio', 'remote'],
|
|
1160
|
+
};
|
|
1161
|
+
/**
|
|
1162
|
+
* 一个 profile 里登记豁免的包名;没有 profile 就是空名单。
|
|
1163
|
+
*
|
|
1164
|
+
* 每次挂应用自带行现读一次:内核只在启动时调一次,省不到什么,反而会和
|
|
1165
|
+
* `numa plugin add` 刚写完的 compatibility.json 漂移。
|
|
1166
|
+
* @param dir - profile 目录(null = 没有 profile)
|
|
1167
|
+
*/
|
|
1168
|
+
function profileExemptionsOf(dir) {
|
|
1169
|
+
if (dir === null || !existsSync(join(dir, 'package.json')))
|
|
1170
|
+
return [];
|
|
1171
|
+
return readProfile(dir).exemptions;
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* 挂「应用自带行」:`<appDir>/lib/node_modules/@pneuma/base/cordis.patch.yml` 里的 insert 行。
|
|
1175
|
+
*
|
|
1176
|
+
* 内核自己的 llm / session / tools 这些行将来都从这份 patch 来,走的是与 profile 组合包
|
|
1177
|
+
* **同一条**「解析 → 身份 → 挂载」路径,差别只有三处:不叠 profile 层;界面形态决定跳过
|
|
1178
|
+
* 哪些行;已经挂上的身份跳过(这个入口会被重复调用)。
|
|
1179
|
+
*
|
|
1180
|
+
* 「文件不存在」是 P3 期间的正常状态(base 包还没生成):不报错,返回空数组,记一条 warning。
|
|
1181
|
+
* @param root - 内核 root
|
|
1182
|
+
* @param options - 应用安装目录与界面形态
|
|
1183
|
+
* @returns 挂载失败清单(与 mountAllExternalPlugins 同形)
|
|
1184
|
+
* @throws {Error} 行 id 重复、同一包名解析出两个物理目录、patch 含 `!!js`(都是配置错误)
|
|
1185
|
+
*/
|
|
1186
|
+
export async function mountApplicationRows(root, options = {}) {
|
|
1187
|
+
initPluginRuntime(root);
|
|
1188
|
+
const appDir = options.appDir ?? APP_INSTALL_DIR;
|
|
1189
|
+
// 代数戳的落点:应用自带包的真实文件住在 <应用根>/lib/packages/**。钩子按 appRootHint
|
|
1190
|
+
// 也能推出来,但自检把 appDir 指到临时目录时它推不到——显式登记一次,两条路都成立。
|
|
1191
|
+
const appPackagesDir = join(appDir, 'lib', 'packages');
|
|
1192
|
+
if (existsSync(appPackagesDir))
|
|
1193
|
+
registerGenerationRoot(appPackagesDir);
|
|
1194
|
+
// 库包没有行、不会走 mountRow,它的桩目录也就没人登记——单独补一遍。
|
|
1195
|
+
registerLibraryGenerationRoots(appDir);
|
|
1196
|
+
const baseDir = join(appDir, 'lib', 'node_modules', '@pneuma', 'base');
|
|
1197
|
+
const patchFile = join(baseDir, 'cordis.patch.yml');
|
|
1198
|
+
if (!existsSync(patchFile)) {
|
|
1199
|
+
warnApplicationRow(root, `应用自带的插件清单还没生成(${patchFile} 不存在),这次不挂任何内置行`);
|
|
1200
|
+
return [];
|
|
1201
|
+
}
|
|
1202
|
+
// 读失败(!!js / 坏 YAML)照常抛:构建产物写错了,带着跑只会更糟。
|
|
1203
|
+
const layer = readPatchFile(patchFile, '@pneuma/base');
|
|
1204
|
+
if (layer === null)
|
|
1205
|
+
return [];
|
|
1206
|
+
const applied = applyPatchLayers([], [layer]);
|
|
1207
|
+
for (const warning of applied.warnings)
|
|
1208
|
+
warnApplicationRow(root, `应用自带行:${warning}`);
|
|
1209
|
+
if (applied.duplicates.length > 0)
|
|
1210
|
+
throw duplicateRowsError(applied.duplicates, '应用自带行');
|
|
1211
|
+
// 不传 surface = 'none':探针/自检直接 createKernel 时不该把 TUI 或 stdio 行拉起来。
|
|
1212
|
+
const surface = options.surface ?? 'none';
|
|
1213
|
+
const skipped = new Set(SURFACE_ROW_SKIPS[surface]);
|
|
1214
|
+
const warnings = [];
|
|
1215
|
+
// 应用自带行的相对路径按 base 包算;包级覆盖去用户 profile 里找。
|
|
1216
|
+
// 两条解析链必须分开:混用会让「./x」这种相对路径跑进 profile,或者覆盖永远不生效。
|
|
1217
|
+
const overrideDir = options.overrideDir === undefined ? activeProfileDir() : options.overrideDir;
|
|
1218
|
+
// profile 里的覆盖版会 import @pneuma/runtime,那个说明符要能重定向到应用内那一份。
|
|
1219
|
+
if (overrideDir !== null)
|
|
1220
|
+
ensureResolveHook([join(overrideDir, 'node_modules')], appDir);
|
|
1221
|
+
const ctx = {
|
|
1222
|
+
profileDir: baseDir,
|
|
1223
|
+
appDir,
|
|
1224
|
+
overrideDir,
|
|
1225
|
+
where: '应用自带行',
|
|
1226
|
+
layerOwner: new Map([[layer.label, baseDir]]),
|
|
1227
|
+
ownerOf: new Map(),
|
|
1228
|
+
bundleInfoOf: new Map(),
|
|
1229
|
+
hostConfig: options.hostConfig,
|
|
1230
|
+
// 覆盖版是 profile 给的,豁免名单也读同一份 profile(不能各读一个目录)。
|
|
1231
|
+
exemptions: (options.exemptions ?? profileExemptionsOf(overrideDir)).map(exemptionNormalized),
|
|
1232
|
+
warnings,
|
|
1233
|
+
root,
|
|
1234
|
+
language: languageOfConfigFile(activeConfigFile()),
|
|
1235
|
+
};
|
|
1236
|
+
const failures = [];
|
|
1237
|
+
for (const row of applied.rows) {
|
|
1238
|
+
if (skipped !== undefined && typeof row.id === 'string' && skipped.has(row.id))
|
|
1239
|
+
continue;
|
|
1240
|
+
const failure = await mountRow(row, ctx);
|
|
1241
|
+
if (failure !== null)
|
|
1242
|
+
failures.push(failure);
|
|
1243
|
+
}
|
|
1244
|
+
for (const warning of warnings)
|
|
1245
|
+
warnApplicationRow(root, `应用自带行:${warning}`);
|
|
1246
|
+
// 热更轮询在这里拉起:内核装配每次都走这个入口,「默认开」不必宿主再记一条调用。
|
|
1247
|
+
// 失败不影响启动(探针/自检里通常是空转:夹具文件在挂载后不再变化)。
|
|
1248
|
+
await startPluginHotUpdate(root, appDir);
|
|
1249
|
+
return failures;
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* 启动功能包热更轮询(幂等,`DSC_HOT=0` 关闭)。
|
|
1253
|
+
*
|
|
1254
|
+
* 为什么由加载器自己拉起而不是内核显式调用:{@link mountApplicationRows} 是每次装配
|
|
1255
|
+
* 的必经之路(连探针都走它),默认开就落在这一处;宿主想自己控制时调
|
|
1256
|
+
* `plugin-watch` 的 `startPluginWatch` 也是幂等的。
|
|
1257
|
+
*
|
|
1258
|
+
* `appDir` 要跟着传下去:轮询器要靠它读「哪些是库包」(`<appDir>/lib/node_modules/@pneuma`),
|
|
1259
|
+
* 自检把应用指到临时目录时不能去扫真实安装目录。
|
|
1260
|
+
*
|
|
1261
|
+
* `profileDir` 是第二条路:传了就让轮询器盯 profile 清单,`numa plugin add/remove`
|
|
1262
|
+
* 之后不用重启。装配路径与宿主启动路径的先后不保证,所以本函数允许被调两次:
|
|
1263
|
+
* 已经有一个轮询器时,第二次只把 profile 这一路补上(基线重新立,不立刻重算)。
|
|
1264
|
+
*
|
|
1265
|
+
* 动态 import 而不是静态:plugin-watch 反过来要用本模块的
|
|
1266
|
+
* `listMountedPluginSources` / `remountExternalPlugin`,静态 import 会成环。
|
|
1267
|
+
*/
|
|
1268
|
+
async function startPluginHotUpdate(root, appDir, profileDir) {
|
|
1269
|
+
if (process.env['DSC_HOT'] === '0')
|
|
1270
|
+
return;
|
|
1271
|
+
try {
|
|
1272
|
+
const watch = await import('./plugin-watch.js');
|
|
1273
|
+
watch.startPluginWatch(root, {
|
|
1274
|
+
appDir,
|
|
1275
|
+
...(profileDir === undefined ? {} : { profileDir }),
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
catch (error) {
|
|
1279
|
+
warnApplicationRow(root, `功能包热更没起来:${err(error)}(不影响启动)`);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
/** 应用自带行的告警走对话流;没有 transcript 的宿主(自检里的裸 Context)就只丢一条。 */
|
|
1283
|
+
function warnApplicationRow(root, text) {
|
|
1284
|
+
const transcript = root.get('transcript');
|
|
1285
|
+
if (transcript !== undefined && typeof transcript.system === 'function')
|
|
1286
|
+
transcript.system(text);
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* 挂 patch 里的一行:解析目标 → 登记目录 → 按身份挂载。
|
|
1290
|
+
*
|
|
1291
|
+
* 组合包与应用自带行走同一条路,差异由 {@link RowMountContext} 收口——
|
|
1292
|
+
* 以后再加一种「行从哪来」时只补上下文,不要再把这段抄一遍。
|
|
1293
|
+
* @param row - patch 里的行
|
|
1294
|
+
* @param ctx - 挂载上下文
|
|
1295
|
+
* @returns 失败信息;挂上或被跳过给 null
|
|
1296
|
+
*/
|
|
1297
|
+
async function mountRow(row, ctx) {
|
|
1298
|
+
const target = typeof row.name === 'string' ? row.name : undefined;
|
|
1299
|
+
if (target === undefined) {
|
|
1300
|
+
ctx.warnings.push(`${ctx.where}里有一行没有 name(不知道加载什么),已跳过`);
|
|
1301
|
+
return null;
|
|
1302
|
+
}
|
|
1303
|
+
const resolved = resolveBundleTarget(ctx.profileDir, target, ctx.layerOwner, ctx.appDir, ctx.overrideDir);
|
|
1304
|
+
if (resolved === null) {
|
|
1305
|
+
// 缺包不是「静默跳过」:目录里要留一条带 problem 的记录,插件中心看得见,
|
|
1306
|
+
// 内核也会把它当失败条目报出来(契约 §5)。
|
|
1307
|
+
const rowId = typeof row.id === 'string' && row.id !== '' ? row.id : target;
|
|
1308
|
+
const problem = `${ctx.where}里的「${target}」找不到对应文件(包没装,或者 exports 里没有这一路)`;
|
|
1309
|
+
registerPluginMeta({ file: rowId, name: rowId, description: '', source: 'external', problem });
|
|
1310
|
+
ctx.warnings.push(problem + ',已跳过');
|
|
1311
|
+
return { file: rowId, name: rowId, problem };
|
|
1312
|
+
}
|
|
1313
|
+
ctx.warnings.push(...resolved.warnings);
|
|
1314
|
+
const file = resolved.file;
|
|
1315
|
+
// 身份 = 行 id(契约 §4);没有 id 的行退回文件名,老行为不变。
|
|
1316
|
+
const rowId = typeof row.id === 'string' && row.id !== '' ? row.id : basename(file);
|
|
1317
|
+
// 行上的 inject 盖过模块自带的(依赖关系属于装配,不属于包);
|
|
1318
|
+
// 配置三档,优先级从强到弱(与插件运行期现读配置同一套,见 `configForRow`):
|
|
1319
|
+
// 宿主直给(ctx.hostConfig)> patch 行(row.config)> plugins.json(逐键)。
|
|
1320
|
+
// 为什么 patch 行一定要在这里接住:`applyPatchLayers` 把组合包 `config:` 整块落到行上之后,
|
|
1321
|
+
// 挂载侧不看就静默丢了——插件拿到的永远是磁盘那一条,用户还查不出为什么「配置没生效」。
|
|
1322
|
+
// 为什么还要登记进注册表:只在这里算一次不够,插件运行期会再调 `resolvePluginConfig`
|
|
1323
|
+
// 现读配置;两边各用一套顺序,就会出现「apply 里是 patch 的值、resolve 里是磁盘旧值」。
|
|
1324
|
+
const hostConfig = ctx.hostConfig === undefined ? undefined : ctx.hostConfig[rowId];
|
|
1325
|
+
const hostGiven = hostConfig !== null && typeof hostConfig === 'object' && !Array.isArray(hostConfig)
|
|
1326
|
+
? hostConfig
|
|
1327
|
+
: undefined;
|
|
1328
|
+
// group 行的 `config` 是子行数组(见 collectRowIds),不能当插件配置递出去。
|
|
1329
|
+
const rowGiven = row.group === true || row.config === null || typeof row.config !== 'object' || Array.isArray(row.config)
|
|
1330
|
+
? undefined
|
|
1331
|
+
: row.config;
|
|
1332
|
+
const rowOptions = {
|
|
1333
|
+
inject: rowInjectOf(row),
|
|
1334
|
+
native: typeof row.name === 'string' && row.name.startsWith('@pneuma/'),
|
|
1335
|
+
...(hostGiven === undefined && rowGiven === undefined
|
|
1336
|
+
? {}
|
|
1337
|
+
: {
|
|
1338
|
+
config: hostGiven ?? rowGiven,
|
|
1339
|
+
configOrigin: hostGiven === undefined ? 'row' : 'host',
|
|
1340
|
+
}),
|
|
1341
|
+
};
|
|
1342
|
+
// 登记放在开关判定与幂等判断**之前**:启动时就停用的行不会挂载,但插件中心点「启用」时
|
|
1343
|
+
// 要按当初算好的行选项热挂,否则 patch 的 config 只剩磁盘那份,直到重启;已经挂上的行
|
|
1344
|
+
// 也会被重扫刷新(用户改过 patch 之后再拔一次开关,拿到的是新配置)。
|
|
1345
|
+
// 只登记入口文件真在盘上的行:缺包的行走不到这里(上面已 return),这里再兜一次。
|
|
1346
|
+
if (existsSync(file)) {
|
|
1347
|
+
rowOptionsOf.set(rowId, rowOptions);
|
|
1348
|
+
registerRowConfig(rowId, rowGiven);
|
|
1349
|
+
}
|
|
1350
|
+
// 幂等:已经挂上的身份直接返回(应用自带行重复调用不该再挂一份)
|
|
1351
|
+
if (mountedOf(ctx.root).has(rowId))
|
|
1352
|
+
return null;
|
|
1353
|
+
const owner = typeof row.id === 'string' ? ctx.ownerOf.get(row.id) : undefined;
|
|
1354
|
+
const found = manifestOfFile(file, ctx.profileDir);
|
|
1355
|
+
const manifest = found?.manifest ?? null;
|
|
1356
|
+
const pneuma = pneumaFieldsOf(manifest);
|
|
1357
|
+
// 给用户看的两行字走译本:locale/en.json 优先,没译过就回落 pneuma.title/description。
|
|
1358
|
+
const display = pluginDisplayOf(manifest, found?.dir ?? dirname(file), ctx.language);
|
|
1359
|
+
const rowName = display.title ?? basename(file).replace(/\.js$/, '');
|
|
1360
|
+
// 版本闸(契约 §7):判的是**这一行实际解析到的包**,不是组合包自己写的要求——
|
|
1361
|
+
// overridable 的行会被 profile 里的副本换掉,换上来那份要求哪一代契约只有它自己知道。
|
|
1362
|
+
const engineProblem = pneumaEnginesProblem(manifest);
|
|
1363
|
+
// 豁免按「包名 × 包版本 × 运行时版本」判;判不过时再问一次「是不是登记过、但版本对不上」,
|
|
1364
|
+
// 否则契约升一次,用户会被指去重复一遍他已经做过的动作。
|
|
1365
|
+
const exemptTarget = engineProblem === null ? null : exemptionTargetOf(manifest, target);
|
|
1366
|
+
const exempt = exemptTarget !== null && exemptionAllows(ctx.exemptions, exemptTarget.name, exemptTarget.version);
|
|
1367
|
+
const missed = exemptTarget !== null && !exempt
|
|
1368
|
+
? exemptionMissProblem(ctx.exemptions, exemptTarget.name, exemptTarget.version)
|
|
1369
|
+
: null;
|
|
1370
|
+
const skippedByGate = engineProblem !== null && !exempt;
|
|
1371
|
+
// 来源决定插件中心分到哪一组,也决定能不能停用:应用自带包(base 层合出来的行)是内置,
|
|
1372
|
+
// 内置里只有标了 `pneuma.toggleable` 的才给开关,其余是运行内核(停掉就没有对话能力了)。
|
|
1373
|
+
// profile 里装的组合包与 `~/.dsc/plugins` 下的单文件都是用户自装,一律算自定义。
|
|
1374
|
+
const builtin = ctx.where === '应用自带行';
|
|
1375
|
+
registerPluginSource(rowId, file);
|
|
1376
|
+
// 旧键(= 文件名)登记进来:0.8.1 的 plugins.json 按文件名写,双查才读得到老配置。
|
|
1377
|
+
registerPluginAlias(rowId, basename(file));
|
|
1378
|
+
// 目录先登记:默认关的行也要在插件中心看得见(只是不 import、不挂载)。
|
|
1379
|
+
registerPluginMeta({
|
|
1380
|
+
file: rowId,
|
|
1381
|
+
name: rowName,
|
|
1382
|
+
description: display.description ?? '',
|
|
1383
|
+
source: builtin ? 'builtin' : 'external',
|
|
1384
|
+
...(builtin && pneuma.toggleable === true ? { toggleable: true } : {}),
|
|
1385
|
+
...(pneuma.experimental === true ? { experimental: true } : {}),
|
|
1386
|
+
...(pneuma.settingsSection === undefined ? {} : { settingsSection: pneuma.settingsSection }),
|
|
1387
|
+
...(row.disabled === true ? { defaultDisabled: true } : {}),
|
|
1388
|
+
...(owner === undefined ? {} : { bundle: owner }),
|
|
1389
|
+
...(skippedByGate ? { problem: String(engineProblem) } : {}),
|
|
1390
|
+
});
|
|
1391
|
+
// 开关:plugins.json 里有这条记录就按记录,没有才按行的 disabled(行只是默认值)。
|
|
1392
|
+
if (!isPluginEnabled(rowId))
|
|
1393
|
+
return null;
|
|
1394
|
+
// 闸放在开关之后:用户已经关掉的行不该每次启动都报一条失败。
|
|
1395
|
+
if (exempt)
|
|
1396
|
+
ctx.warnings.push(`${ctx.where}:「${rowName}」的版本闸没过(${engineProblem}),已在 compatibility.json 登记豁免,照常挂载`);
|
|
1397
|
+
if (skippedByGate) {
|
|
1398
|
+
const problem = missed === null
|
|
1399
|
+
? `${engineProblem};这一行已跳过(在 profile 的 compatibility.json 里登记豁免可以强行启用)`
|
|
1400
|
+
: `${engineProblem};这一行已跳过。${missed}`;
|
|
1401
|
+
ctx.warnings.push(`${ctx.where}:「${rowName}」的版本闸没过:${problem}`);
|
|
1402
|
+
return { file: rowId, name: rowName, problem };
|
|
1403
|
+
}
|
|
1404
|
+
// 行选项(inject / 三档配置)在开关判定之前就算好并登记了,见上面 `rowOptionsOf`。
|
|
1405
|
+
const ok = await mountExternalPlugin(file, rowId, rowOptions);
|
|
1406
|
+
const meta = getPluginMeta(rowId);
|
|
1407
|
+
if (meta !== undefined) {
|
|
1408
|
+
// package.json 是插件中心的显示口径;模块导出只作缺省(外部单文件插件没有清单)。
|
|
1409
|
+
// 译本算在「清单」这一侧:它和清单同源,模块导出的那两行字不翻译。
|
|
1410
|
+
if (display.title !== undefined)
|
|
1411
|
+
meta.name = display.title;
|
|
1412
|
+
if (display.description !== undefined)
|
|
1413
|
+
meta.description = display.description;
|
|
1414
|
+
if (pneuma.settingsSection !== undefined)
|
|
1415
|
+
meta.settingsSection = pneuma.settingsSection;
|
|
1416
|
+
// 挂载那一趟会用模块导出重建 meta(见 mountExternalPlugin),实验标记得在这里补回来。
|
|
1417
|
+
if (pneuma.experimental === true)
|
|
1418
|
+
meta.experimental = true;
|
|
1419
|
+
if (owner !== undefined)
|
|
1420
|
+
meta.bundle = owner;
|
|
1421
|
+
// 有的包把界面能力写在 package.json 的 pneuma.client(不在模块导出里)。
|
|
1422
|
+
// 只列不加载,但要列得出来,否则用户在插件中心看不到「它还想改界面」。
|
|
1423
|
+
//
|
|
1424
|
+
// 例外:platform = 'pneuma' 的是**我们自己会加载**的界面半(见 core/ui-bundles 的
|
|
1425
|
+
// discoverPackageUiArtifacts)。把它列成「dsh 客户端插件 · 只列不加载」是假话。
|
|
1426
|
+
const declared = owner === undefined ? undefined : ctx.bundleInfoOf.get(owner)?.client;
|
|
1427
|
+
const platform = declared?.platform;
|
|
1428
|
+
if (meta.clientCapabilities === undefined && declared !== undefined && platform !== 'pneuma') {
|
|
1429
|
+
meta.clientCapabilities = clientCapabilitiesOf(declared);
|
|
519
1430
|
}
|
|
520
1431
|
}
|
|
521
|
-
|
|
1432
|
+
if (!ok && meta?.problem !== undefined)
|
|
1433
|
+
return { file: rowId, name: meta.name, problem: meta.problem };
|
|
1434
|
+
return null;
|
|
1435
|
+
}
|
|
1436
|
+
/**
|
|
1437
|
+
* 行 id 重复的启动失败文案(组合包与应用自带行共用)。
|
|
1438
|
+
* @param duplicates - 重复清单
|
|
1439
|
+
* @param where - 哪一批行(组合包 / 应用自带行)
|
|
1440
|
+
*/
|
|
1441
|
+
function duplicateRowsError(duplicates, where) {
|
|
1442
|
+
const detail = duplicates.map((item) => `「${item.id}」分别来自 ${item.first} 与 ${item.second}`).join(';');
|
|
1443
|
+
return new Error(`${where}的行 id 重复:${detail}。行 id 是运行时身份(开关、配置、设置分区都按它),` +
|
|
1444
|
+
'同一个 id 只能出现一次,请改掉重复的那一行。');
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* 全进程一张解析表:包名 → 已选定的物理目录。
|
|
1448
|
+
*
|
|
1449
|
+
* 同一个包名第二次解析出另一个目录就启动失败:两份实体 = 两份服务实例,出问题只会表现成
|
|
1450
|
+
* 「一边的配置改了、另一边没动」。pinned / overridable 的「两边都有」由口径裁决,不算冲突。
|
|
1451
|
+
*/
|
|
1452
|
+
const resolvedDirs = new Map();
|
|
1453
|
+
/** 每个锚点一个 `createRequire`(解析起点固定,不必每次重建)。 */
|
|
1454
|
+
const requires = new Map();
|
|
1455
|
+
/** 物理目录(解开 pnpm 的软链);解不开就用原路径。 */
|
|
1456
|
+
function physicalDir(dir) {
|
|
1457
|
+
try {
|
|
1458
|
+
return realpathSync(dir);
|
|
1459
|
+
}
|
|
1460
|
+
catch {
|
|
1461
|
+
return resolve(dir);
|
|
1462
|
+
}
|
|
522
1463
|
}
|
|
523
1464
|
/**
|
|
524
1465
|
* 把行里的 `name` 解析成文件路径。
|
|
525
1466
|
*
|
|
526
|
-
* 三种写法:绝对路径、以 `./` `../` 开头(相对 profile
|
|
527
|
-
*
|
|
1467
|
+
* 三种写法:绝对路径、以 `./` `../` 开头(相对 profile 目录)、或包名。包名**交给
|
|
1468
|
+
* Node 自己解析**(`createRequire(锚点/package.json).resolve(name)`):`pkg/sub` 因此
|
|
1469
|
+
* 走包自己的 `exports` 子路径、conditions 与通配——这些手写展开一定会漏。
|
|
1470
|
+
* @param profileDir - 相对路径的基准目录(组合包 = profile,应用自带行 = base 包)
|
|
1471
|
+
* @param target - 行上的 name
|
|
1472
|
+
* @param layerOwner - 层标签 → 包目录(相对路径按写它的那层算)
|
|
1473
|
+
* @param appDir - 应用安装目录
|
|
1474
|
+
* @param overrideDir - 包级覆盖的锚点(用户 profile);null = 不查 profile
|
|
1475
|
+
* @returns 入口文件 + 告警;解析不出来给 null(调用方记一条「缺包」告警并跳过该行)
|
|
1476
|
+
* @throws {Error} 同一包名解析出两个物理目录
|
|
528
1477
|
*/
|
|
529
|
-
function resolveBundleTarget(profileDir, target, layerOwner) {
|
|
530
|
-
if (isAbsolute(target))
|
|
531
|
-
|
|
1478
|
+
function resolveBundleTarget(profileDir, target, layerOwner, appDir, overrideDir) {
|
|
1479
|
+
if (isAbsolute(target)) {
|
|
1480
|
+
const file = entryFileOf(target);
|
|
1481
|
+
return file === null ? null : { file, warnings: [] };
|
|
1482
|
+
}
|
|
532
1483
|
if (target.startsWith('./') || target.startsWith('../')) {
|
|
533
1484
|
// 相对路径按「哪一层的 patch 写的」算:bundle 的 patch 相对它自己的包目录。
|
|
534
1485
|
const owner = [...layerOwner.values()].find((dir) => existsSync(join(dir, target)));
|
|
535
1486
|
const candidate = owner === undefined ? join(profileDir, target) : join(owner, target);
|
|
536
|
-
|
|
1487
|
+
const file = entryFileOf(candidate);
|
|
1488
|
+
return file === null ? null : { file, warnings: [] };
|
|
537
1489
|
}
|
|
538
|
-
return
|
|
1490
|
+
return resolvePackageRow(profileDir, target, appDir, overrideDir);
|
|
1491
|
+
}
|
|
1492
|
+
/**
|
|
1493
|
+
* 按包名解析一行:先定口径(pinned / overridable),再按顺序在两个锚点上解析。
|
|
1494
|
+
*
|
|
1495
|
+
* 应用侧的包住在 `<应用根>/lib/node_modules/`(运行时适配包与功能包同一层)。两边都有
|
|
1496
|
+
* 同名包时由包自己的 `pneuma.resolution` 裁决,不报冲突;只有「同一个包名在一次启动里
|
|
1497
|
+
* 被解析成两个目录」才失败。
|
|
1498
|
+
*/
|
|
1499
|
+
function resolvePackageRow(profileDir, target, appDir, overrideDir) {
|
|
1500
|
+
const pkgName = packageNameOf(target);
|
|
1501
|
+
if (pkgName === null)
|
|
1502
|
+
return null;
|
|
1503
|
+
const parts = pkgName.split('/');
|
|
1504
|
+
// 覆盖锚点与「相对路径基准」不是一回事:应用自带行的相对路径按 base 包算,
|
|
1505
|
+
// 但它的包级覆盖要去用户 profile 里找(契约 §5:overridable 的用户副本优先)。
|
|
1506
|
+
const overrideRoot = overrideDir ?? profileDir;
|
|
1507
|
+
const profilePkgDir = join(overrideRoot, 'node_modules', ...parts);
|
|
1508
|
+
const appPkgDir = appPackageDir(appDir, parts);
|
|
1509
|
+
const profileManifest = existsSync(profilePkgDir) ? readJsonObject(join(profilePkgDir, 'package.json')) : null;
|
|
1510
|
+
const appManifest = appPkgDir === null ? null : readJsonObject(join(appPkgDir, 'package.json'));
|
|
1511
|
+
// 两份都在时先看应用那份:pinned 的那一份才该决定口径。
|
|
1512
|
+
const policy = resolutionOf(appManifest ?? profileManifest);
|
|
1513
|
+
const profileAnchor = {
|
|
1514
|
+
label: 'profile',
|
|
1515
|
+
requireFrom: join(overrideRoot, 'package.json'),
|
|
1516
|
+
pkgDir: existsSync(profilePkgDir) ? profilePkgDir : null,
|
|
1517
|
+
lookup: join(overrideRoot, 'node_modules'),
|
|
1518
|
+
};
|
|
1519
|
+
const appAnchor = {
|
|
1520
|
+
label: '应用安装目录',
|
|
1521
|
+
requireFrom: join(appDir, 'lib', 'node_modules', '_.js'),
|
|
1522
|
+
pkgDir: appPkgDir,
|
|
1523
|
+
lookup: join(appDir, 'lib', 'node_modules'),
|
|
1524
|
+
};
|
|
1525
|
+
const anchors = policy === 'pinned' ? [appAnchor, profileAnchor] : [profileAnchor, appAnchor];
|
|
1526
|
+
for (const anchor of anchors) {
|
|
1527
|
+
if (anchor.pkgDir === null)
|
|
1528
|
+
continue;
|
|
1529
|
+
const file = entryFromAnchor(anchor, target);
|
|
1530
|
+
if (file === null)
|
|
1531
|
+
continue;
|
|
1532
|
+
rememberResolvedDir(pkgName, anchor.pkgDir);
|
|
1533
|
+
const warnings = [];
|
|
1534
|
+
// pinned 包在 profile 里也有同名副本:用应用那份,并把「你不生效的那份在哪」说出来。
|
|
1535
|
+
if (policy === 'pinned' && anchor === appAnchor && profileAnchor.pkgDir !== null) {
|
|
1536
|
+
warnings.push(`「${pkgName}」声明为 pinned:profile 里的同名副本(${profilePkgDir})不生效,` +
|
|
1537
|
+
`用的是应用安装目录里的 ${String(anchor.pkgDir)}`);
|
|
1538
|
+
}
|
|
1539
|
+
return { file, warnings };
|
|
1540
|
+
}
|
|
1541
|
+
return null;
|
|
1542
|
+
}
|
|
1543
|
+
/** 应用侧的包目录:优先 `<应用根>/lib/node_modules/<包名>`,再退回仓库根的 node_modules。 */
|
|
1544
|
+
function appPackageDir(appDir, parts) {
|
|
1545
|
+
for (const root of [join(appDir, 'lib', 'node_modules'), join(appDir, 'node_modules')]) {
|
|
1546
|
+
const candidate = join(root, ...parts);
|
|
1547
|
+
if (existsSync(candidate))
|
|
1548
|
+
return candidate;
|
|
1549
|
+
}
|
|
1550
|
+
return null;
|
|
1551
|
+
}
|
|
1552
|
+
/** 从锚点解析一个行目标;Node 解析不出来再退回原来的「猜入口」逻辑。 */
|
|
1553
|
+
function entryFromAnchor(anchor, target) {
|
|
1554
|
+
try {
|
|
1555
|
+
let require = requires.get(anchor.requireFrom);
|
|
1556
|
+
if (require === undefined) {
|
|
1557
|
+
require = createRequire(anchor.requireFrom);
|
|
1558
|
+
requires.set(anchor.requireFrom, require);
|
|
1559
|
+
}
|
|
1560
|
+
// 交给 Node 自己解析:exports 子路径、conditions、通配都由它算,不手写展开。
|
|
1561
|
+
return require.resolve(target);
|
|
1562
|
+
}
|
|
1563
|
+
catch {
|
|
1564
|
+
// Node 解析不出来(老包没有 exports,或只写了目录)→ 退回下面的入口猜测
|
|
1565
|
+
}
|
|
1566
|
+
return entryFileOf(join(anchor.lookup, ...target.split('/')));
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
* 登记一个包名的物理目录;第二次解析出别的目录就抛错。
|
|
1570
|
+
* @param pkgName - 包名
|
|
1571
|
+
* @param dir - 这次选定的包目录
|
|
1572
|
+
*/
|
|
1573
|
+
function rememberResolvedDir(pkgName, dir) {
|
|
1574
|
+
const physical = physicalDir(dir);
|
|
1575
|
+
const previous = resolvedDirs.get(pkgName);
|
|
1576
|
+
if (previous === undefined) {
|
|
1577
|
+
resolvedDirs.set(pkgName, physical);
|
|
1578
|
+
return;
|
|
1579
|
+
}
|
|
1580
|
+
if (previous === physical)
|
|
1581
|
+
return;
|
|
1582
|
+
throw new Error(`包「${pkgName}」在这次启动里解析出两个不同的目录:${previous} 与 ${physical}。` +
|
|
1583
|
+
'同一个包名只能有一份实体(否则会挂出两份服务实例),请检查 profile 与应用安装目录里是不是各装了一份。');
|
|
1584
|
+
}
|
|
1585
|
+
/** 从包名/子路径里取出包名(`@scope/name/sub` → `@scope/name`)。 */
|
|
1586
|
+
function packageNameOf(target) {
|
|
1587
|
+
if (target === '' || target.startsWith('.') || isAbsolute(target))
|
|
1588
|
+
return null;
|
|
1589
|
+
const parts = target.split('/');
|
|
1590
|
+
if (target.startsWith('@'))
|
|
1591
|
+
return parts.length >= 2 && parts[1] !== '' ? `${parts[0]}/${parts[1]}` : null;
|
|
1592
|
+
return parts[0] === '' ? null : parts[0];
|
|
1593
|
+
}
|
|
1594
|
+
/** 包清单里的 `pneuma.resolution`(缺省 overridable;`dsh.*` 包没这个字段,同样是 overridable)。 */
|
|
1595
|
+
function resolutionOf(manifest) {
|
|
1596
|
+
const raw = manifest?.['pneuma'];
|
|
1597
|
+
if (raw === null || typeof raw !== 'object')
|
|
1598
|
+
return 'overridable';
|
|
1599
|
+
return raw['resolution'] === 'pinned' ? 'pinned' : 'overridable';
|
|
1600
|
+
}
|
|
1601
|
+
/**
|
|
1602
|
+
* 这一行的包在豁免账本里叫什么、是哪一版(判豁免与解释「为什么对不上」都要它)。
|
|
1603
|
+
*
|
|
1604
|
+
* 判据是 dsh 的口径:**精确 包@版本 ↔ 精确 运行时版本**。只写包名的老记录仍然放行
|
|
1605
|
+
* (向 0.8.x 写下的文件让一步),但新写入的记录由 `numa plugin allow-version` 带上两个版本,
|
|
1606
|
+
* 换个版本就得重新同意——一次点头不该永久有效。
|
|
1607
|
+
*
|
|
1608
|
+
* 包名优先取行目标(`@p2/foo/sub` → `@p2/foo`);相对路径的行没有包名,
|
|
1609
|
+
* 退回它自己 package.json 的 `name`。
|
|
1610
|
+
* @param manifest - 行的包清单(可能没有)
|
|
1611
|
+
* @param target - 行上的 name
|
|
1612
|
+
* @returns 包名与版本;包名都推不出来给 null
|
|
1613
|
+
*/
|
|
1614
|
+
function exemptionTargetOf(manifest, target) {
|
|
1615
|
+
const declared = manifest?.['name'];
|
|
1616
|
+
const pkgName = packageNameOf(target) ?? (typeof declared === 'string' && declared !== '' ? declared : null);
|
|
1617
|
+
if (pkgName === null)
|
|
1618
|
+
return null;
|
|
1619
|
+
const version = typeof manifest?.['version'] === 'string' ? manifest['version'] : undefined;
|
|
1620
|
+
return { name: pkgName, version };
|
|
1621
|
+
}
|
|
1622
|
+
/** 把 `string | Exemption` 统一成豁免记录(自检与宿主传字符串的老调用点还用得上)。 */
|
|
1623
|
+
function exemptionNormalized(entry) {
|
|
1624
|
+
return typeof entry === 'string' ? { package: entry } : entry;
|
|
1625
|
+
}
|
|
1626
|
+
/** 读包清单里的 `pneuma` 展示字段(不加载代码也能列进插件中心)。 */
|
|
1627
|
+
function pneumaFieldsOf(manifest) {
|
|
1628
|
+
const raw = manifest?.['pneuma'];
|
|
1629
|
+
if (raw === null || typeof raw !== 'object')
|
|
1630
|
+
return {};
|
|
1631
|
+
const record = raw;
|
|
1632
|
+
const pick = (key) => {
|
|
1633
|
+
const value = record[key];
|
|
1634
|
+
return typeof value === 'string' && value !== '' ? value : undefined;
|
|
1635
|
+
};
|
|
1636
|
+
return {
|
|
1637
|
+
title: pick('title'),
|
|
1638
|
+
description: pick('description'),
|
|
1639
|
+
settingsSection: pick('settingsSection'),
|
|
1640
|
+
...(record['toggleable'] === true ? { toggleable: true } : {}),
|
|
1641
|
+
...(record['experimental'] === true ? { experimental: true } : {}),
|
|
1642
|
+
};
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* 从入口文件往上找它所属包的 package.json(最多 8 层,走到 profile 目录为止)。
|
|
1646
|
+
*
|
|
1647
|
+
* 绝对/相对路径的行没有包名可查,但它们的展示字段仍写在最近的 package.json 里。
|
|
1648
|
+
* 目录一起返回:清单里的两行字要按**这个目录**去查 `locale/<语言>.json`。
|
|
1649
|
+
* @returns `{ dir, manifest }`;没找到给 null
|
|
1650
|
+
*/
|
|
1651
|
+
function manifestOfFile(file, stopAt) {
|
|
1652
|
+
let dir = dirname(file);
|
|
1653
|
+
const stop = resolve(stopAt);
|
|
1654
|
+
for (let depth = 0; depth < 8; depth += 1) {
|
|
1655
|
+
const manifest = readJsonObject(join(dir, 'package.json'));
|
|
1656
|
+
if (manifest !== null)
|
|
1657
|
+
return { dir, manifest };
|
|
1658
|
+
if (resolve(dir) === stop)
|
|
1659
|
+
return null;
|
|
1660
|
+
const parent = dirname(dir);
|
|
1661
|
+
if (parent === dir)
|
|
1662
|
+
return null;
|
|
1663
|
+
dir = parent;
|
|
1664
|
+
}
|
|
1665
|
+
return null;
|
|
1666
|
+
}
|
|
1667
|
+
/**
|
|
1668
|
+
* 行上的 `inject`(字符串或数组);没写给 undefined = 用模块自带的那份。
|
|
1669
|
+
* @param row - patch 行
|
|
1670
|
+
*/
|
|
1671
|
+
function rowInjectOf(row) {
|
|
1672
|
+
const raw = row['inject'];
|
|
1673
|
+
if (typeof raw === 'string')
|
|
1674
|
+
return raw === '' ? [] : [raw];
|
|
1675
|
+
if (!Array.isArray(raw))
|
|
1676
|
+
return undefined;
|
|
1677
|
+
return raw.filter((name) => typeof name === 'string' && name !== '');
|
|
539
1678
|
}
|
|
540
1679
|
/**
|
|
541
1680
|
* 把一个「可能是包目录」的路径落成真正的入口文件。
|
|
@@ -601,9 +1740,6 @@ function readJsonObject(file) {
|
|
|
601
1740
|
return null;
|
|
602
1741
|
}
|
|
603
1742
|
}
|
|
604
|
-
function isDisabledByEntry(file) {
|
|
605
|
-
return readPluginEntries().find((entry) => entry.file === file)?.disabled ?? false;
|
|
606
|
-
}
|
|
607
1743
|
/** 解析条目树里的文件名 → 绝对路径(仅 ~/.dsc/plugins/ 下的外部插件)。 */
|
|
608
1744
|
function resolveEntryPath(file) {
|
|
609
1745
|
const candidate = dscPath('plugins', file);
|