@localix-ai/agent-plugins 0.2.0 → 0.3.0
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/CHANGELOG.md +386 -0
- package/dist/agents/catalog/builtin.d.ts +9 -3
- package/dist/agents/catalog/builtin.d.ts.map +1 -1
- package/dist/agents/catalog/builtin.js +16 -2
- package/dist/agents/catalog/builtin.js.map +1 -1
- package/dist/agents/catalog/scan.d.ts +4 -1
- package/dist/agents/catalog/scan.d.ts.map +1 -1
- package/dist/agents/catalog/scan.js +1 -0
- package/dist/agents/catalog/scan.js.map +1 -1
- package/dist/agents/index.d.ts +3 -2
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +3 -2
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/launch-model.d.ts +31 -6
- package/dist/agents/launch-model.d.ts.map +1 -1
- package/dist/agents/launch-model.js +43 -22
- package/dist/agents/launch-model.js.map +1 -1
- package/dist/agents/launch.d.ts +18 -4
- package/dist/agents/launch.d.ts.map +1 -1
- package/dist/agents/launch.js +29 -15
- package/dist/agents/launch.js.map +1 -1
- package/dist/agents/model-choice.d.ts +10 -2
- package/dist/agents/model-choice.d.ts.map +1 -1
- package/dist/agents/model-choice.js +10 -4
- package/dist/agents/model-choice.js.map +1 -1
- package/dist/agents/task-list.d.ts +24 -0
- package/dist/agents/task-list.d.ts.map +1 -0
- package/dist/agents/task-list.js +12 -0
- package/dist/agents/task-list.js.map +1 -0
- package/dist/agents/tool-filters.d.ts +11 -2
- package/dist/agents/tool-filters.d.ts.map +1 -1
- package/dist/agents/tool-filters.js +9 -1
- package/dist/agents/tool-filters.js.map +1 -1
- package/dist/agents/tool-resolution.d.ts.map +1 -1
- package/dist/agents/tool-resolution.js +19 -3
- package/dist/agents/tool-resolution.js.map +1 -1
- package/dist/agents/workflow/replay.d.ts +3 -2
- package/dist/agents/workflow/replay.d.ts.map +1 -1
- package/dist/agents/workflow/replay.js +11 -2
- package/dist/agents/workflow/replay.js.map +1 -1
- package/dist/agents/workflow/usage-limit.d.ts +19 -5
- package/dist/agents/workflow/usage-limit.d.ts.map +1 -1
- package/dist/agents/workflow/usage-limit.js +32 -4
- package/dist/agents/workflow/usage-limit.js.map +1 -1
- package/dist/cli/command-table.d.ts +1 -1
- package/dist/cli/command-table.d.ts.map +1 -1
- package/dist/cli/command-table.js +2 -0
- package/dist/cli/command-table.js.map +1 -1
- package/dist/cli/flags/session.d.ts.map +1 -1
- package/dist/cli/flags/session.js +2 -1
- package/dist/cli/flags/session.js.map +1 -1
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +3 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/install-command-outcome.d.ts +31 -0
- package/dist/cli/install-command-outcome.d.ts.map +1 -0
- package/dist/cli/install-command-outcome.js +34 -0
- package/dist/cli/install-command-outcome.js.map +1 -0
- package/dist/cli/install-command-step.d.ts +13 -0
- package/dist/cli/install-command-step.d.ts.map +1 -0
- package/dist/cli/install-command-step.js +52 -0
- package/dist/cli/install-command-step.js.map +1 -0
- package/dist/cli/install-engines.d.ts +27 -0
- package/dist/cli/install-engines.d.ts.map +1 -0
- package/dist/cli/install-engines.js +29 -0
- package/dist/cli/install-engines.js.map +1 -0
- package/dist/cli/install-plan.d.ts +6 -0
- package/dist/cli/install-plan.d.ts.map +1 -1
- package/dist/cli/install-plan.js +31 -61
- package/dist/cli/install-plan.js.map +1 -1
- package/dist/cli/install-refusals.d.ts +5 -0
- package/dist/cli/install-refusals.d.ts.map +1 -1
- package/dist/cli/install-refusals.js +5 -0
- package/dist/cli/install-refusals.js.map +1 -1
- package/dist/cli/install-success.d.ts +17 -0
- package/dist/cli/install-success.d.ts.map +1 -0
- package/dist/cli/install-success.js +13 -0
- package/dist/cli/install-success.js.map +1 -0
- package/dist/cli/marketplace-list.js +1 -1
- package/dist/cli/marketplace-list.js.map +1 -1
- package/dist/cli/marketplace-update.d.ts +3 -1
- package/dist/cli/marketplace-update.d.ts.map +1 -1
- package/dist/cli/marketplace-update.js +5 -0
- package/dist/cli/marketplace-update.js.map +1 -1
- package/dist/cli/restore-set-aside.d.ts +38 -0
- package/dist/cli/restore-set-aside.d.ts.map +1 -0
- package/dist/cli/restore-set-aside.js +25 -0
- package/dist/cli/restore-set-aside.js.map +1 -0
- package/dist/cli/result.d.ts +6 -0
- package/dist/cli/result.d.ts.map +1 -1
- package/dist/cli/result.js +6 -2
- package/dist/cli/result.js.map +1 -1
- package/dist/cli/uninstall-data.d.ts +13 -1
- package/dist/cli/uninstall-data.d.ts.map +1 -1
- package/dist/cli/uninstall-data.js +4 -0
- package/dist/cli/uninstall-data.js.map +1 -1
- package/dist/cli/update-dependencies.d.ts +31 -0
- package/dist/cli/update-dependencies.d.ts.map +1 -0
- package/dist/cli/update-dependencies.js +35 -0
- package/dist/cli/update-dependencies.js.map +1 -0
- package/dist/cli/update-facts.d.ts +12 -0
- package/dist/cli/update-facts.d.ts.map +1 -1
- package/dist/cli/update-plan.d.ts +10 -0
- package/dist/cli/update-plan.d.ts.map +1 -1
- package/dist/cli/update-plan.js +34 -6
- package/dist/cli/update-plan.js.map +1 -1
- package/dist/cli/validate-lists.d.ts +66 -0
- package/dist/cli/validate-lists.d.ts.map +1 -0
- package/dist/cli/validate-lists.js +107 -0
- package/dist/cli/validate-lists.js.map +1 -0
- package/dist/cli/validate-run.d.ts +13 -8
- package/dist/cli/validate-run.d.ts.map +1 -1
- package/dist/cli/validate-run.js +3 -0
- package/dist/cli/validate-run.js.map +1 -1
- package/dist/entry/mods.d.ts +1 -1
- package/dist/entry/mods.d.ts.map +1 -1
- package/dist/entry/mods.js +1 -1
- package/dist/entry/mods.js.map +1 -1
- package/dist/format/add-dir-gate.d.ts +27 -0
- package/dist/format/add-dir-gate.d.ts.map +1 -0
- package/dist/format/add-dir-gate.js +16 -0
- package/dist/format/add-dir-gate.js.map +1 -0
- package/dist/format/agent-scalars.d.ts +5 -8
- package/dist/format/agent-scalars.d.ts.map +1 -1
- package/dist/format/agent-scalars.js +7 -8
- package/dist/format/agent-scalars.js.map +1 -1
- package/dist/format/engines.d.ts +63 -0
- package/dist/format/engines.d.ts.map +1 -0
- package/dist/format/engines.js +78 -0
- package/dist/format/engines.js.map +1 -0
- package/dist/format/hooks-handlers.d.ts.map +1 -1
- package/dist/format/hooks-handlers.js +2 -0
- package/dist/format/hooks-handlers.js.map +1 -1
- package/dist/format/host-errors.d.ts.map +1 -1
- package/dist/format/host-errors.js +1 -1
- package/dist/format/host-errors.js.map +1 -1
- package/dist/format/index.d.ts +4 -1
- package/dist/format/index.d.ts.map +1 -1
- package/dist/format/index.js +4 -1
- package/dist/format/index.js.map +1 -1
- package/dist/format/locate.d.ts +1 -1
- package/dist/format/locate.js +1 -1
- package/dist/format/manifest-schema.d.ts +4 -0
- package/dist/format/manifest-schema.d.ts.map +1 -1
- package/dist/format/manifest-schema.js +3 -0
- package/dist/format/manifest-schema.js.map +1 -1
- package/dist/format/manifest.d.ts +3 -0
- package/dist/format/manifest.d.ts.map +1 -1
- package/dist/format/manifest.js +84 -12
- package/dist/format/manifest.js.map +1 -1
- package/dist/format/marketplace/entries.d.ts.map +1 -1
- package/dist/format/marketplace/entries.js +13 -5
- package/dist/format/marketplace/entries.js.map +1 -1
- package/dist/format/marketplace/entry-display.d.ts +22 -0
- package/dist/format/marketplace/entry-display.d.ts.map +1 -0
- package/dist/format/marketplace/entry-display.js +60 -0
- package/dist/format/marketplace/entry-display.js.map +1 -0
- package/dist/format/marketplace/entry-schema.d.ts +1 -1
- package/dist/format/marketplace/entry-schema.d.ts.map +1 -1
- package/dist/format/marketplace/entry-schema.js +4 -1
- package/dist/format/marketplace/entry-schema.js.map +1 -1
- package/dist/format/marketplace/index.d.ts +2 -1
- package/dist/format/marketplace/index.d.ts.map +1 -1
- package/dist/format/marketplace/index.js +2 -1
- package/dist/format/marketplace/index.js.map +1 -1
- package/dist/format/marketplace/marketplace-name-lists.d.ts +0 -2
- package/dist/format/marketplace/marketplace-name-lists.d.ts.map +1 -1
- package/dist/format/marketplace/marketplace-name-lists.js +0 -9
- package/dist/format/marketplace/marketplace-name-lists.js.map +1 -1
- package/dist/format/marketplace/marketplace-names.d.ts +2 -0
- package/dist/format/marketplace/marketplace-names.d.ts.map +1 -1
- package/dist/format/marketplace/marketplace-names.js +14 -16
- package/dist/format/marketplace/marketplace-names.js.map +1 -1
- package/dist/format/marketplace/plugin-source.d.ts.map +1 -1
- package/dist/format/marketplace/plugin-source.js +9 -4
- package/dist/format/marketplace/plugin-source.js.map +1 -1
- package/dist/format/marketplace/settings-source-plugins.d.ts.map +1 -1
- package/dist/format/marketplace/settings-source-plugins.js +3 -2
- package/dist/format/marketplace/settings-source-plugins.js.map +1 -1
- package/dist/format/marketplace/types.d.ts +11 -0
- package/dist/format/marketplace/types.d.ts.map +1 -1
- package/dist/format/marketplace/types.js.map +1 -1
- package/dist/format/mcp-bundles.js +5 -5
- package/dist/format/mcp-bundles.js.map +1 -1
- package/dist/format/mcp-contract.d.ts +2 -1
- package/dist/format/mcp-contract.d.ts.map +1 -1
- package/dist/format/mcp-contract.js +2 -1
- package/dist/format/mcp-contract.js.map +1 -1
- package/dist/format/mcp-task-timing.d.ts +29 -0
- package/dist/format/mcp-task-timing.d.ts.map +1 -0
- package/dist/format/mcp-task-timing.js +22 -0
- package/dist/format/mcp-task-timing.js.map +1 -0
- package/dist/format/mcp-tool-schema.d.ts +11 -3
- package/dist/format/mcp-tool-schema.d.ts.map +1 -1
- package/dist/format/mcp-tool-schema.js +11 -0
- package/dist/format/mcp-tool-schema.js.map +1 -1
- package/dist/format/network.d.ts +6 -0
- package/dist/format/network.d.ts.map +1 -0
- package/dist/format/network.js +37 -0
- package/dist/format/network.js.map +1 -0
- package/dist/format/plugin-notes.d.ts +15 -0
- package/dist/format/plugin-notes.d.ts.map +1 -0
- package/dist/format/plugin-notes.js +13 -0
- package/dist/format/plugin-notes.js.map +1 -0
- package/dist/format/plugin-settings.d.ts +15 -9
- package/dist/format/plugin-settings.d.ts.map +1 -1
- package/dist/format/plugin-settings.js +11 -8
- package/dist/format/plugin-settings.js.map +1 -1
- package/dist/format/server-paths.d.ts +7 -0
- package/dist/format/server-paths.d.ts.map +1 -0
- package/dist/format/server-paths.js +43 -0
- package/dist/format/server-paths.js.map +1 -0
- package/dist/format/validate/plugin-fields.d.ts +5 -0
- package/dist/format/validate/plugin-fields.d.ts.map +1 -1
- package/dist/format/validate/plugin-fields.js +15 -0
- package/dist/format/validate/plugin-fields.js.map +1 -1
- package/dist/format/validate/plugin-manifest.d.ts.map +1 -1
- package/dist/format/validate/plugin-manifest.js +4 -1
- package/dist/format/validate/plugin-manifest.js.map +1 -1
- package/dist/format/validate/settings-deprecation.d.ts +4 -0
- package/dist/format/validate/settings-deprecation.d.ts.map +1 -0
- package/dist/format/validate/settings-deprecation.js +25 -0
- package/dist/format/validate/settings-deprecation.js.map +1 -0
- package/dist/format/validate/unknown-fields.d.ts.map +1 -1
- package/dist/format/validate/unknown-fields.js +1 -9
- package/dist/format/validate/unknown-fields.js.map +1 -1
- package/dist/foundation/scope-folders.d.ts +3 -1
- package/dist/foundation/scope-folders.d.ts.map +1 -1
- package/dist/foundation/scope-folders.js +3 -1
- package/dist/foundation/scope-folders.js.map +1 -1
- package/dist/hooks/assemble.d.ts.map +1 -1
- package/dist/hooks/assemble.js +8 -1
- package/dist/hooks/assemble.js.map +1 -1
- package/dist/hooks/core/profiles.d.ts +1 -1
- package/dist/hooks/dispatch.d.ts.map +1 -1
- package/dist/hooks/dispatch.js +29 -4
- package/dist/hooks/dispatch.js.map +1 -1
- package/dist/hooks/handlers/context.d.ts +4 -1
- package/dist/hooks/handlers/context.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/http-policy.d.ts +15 -6
- package/dist/hooks/handlers/remote/http-policy.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/http-policy.js +2 -0
- package/dist/hooks/handlers/remote/http-policy.js.map +1 -1
- package/dist/hooks/handlers/remote/http.js +2 -2
- package/dist/hooks/handlers/remote/http.js.map +1 -1
- package/dist/hooks/handlers/remote/mcp-tool.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/mcp-tool.js +20 -1
- package/dist/hooks/handlers/remote/mcp-tool.js.map +1 -1
- package/dist/hooks/handlers/remote/types.d.ts +8 -0
- package/dist/hooks/handlers/remote/types.d.ts.map +1 -1
- package/dist/hooks/input/facts-agents.d.ts +2 -2
- package/dist/hooks/input/facts-agents.d.ts.map +1 -1
- package/dist/hooks/input/facts-agents.js +11 -3
- package/dist/hooks/input/facts-agents.js.map +1 -1
- package/dist/hooks/input/facts.d.ts +2 -2
- package/dist/hooks/outcome.d.ts +31 -0
- package/dist/hooks/outcome.d.ts.map +1 -1
- package/dist/hooks/output/caps.d.ts.map +1 -1
- package/dist/hooks/output/caps.js +4 -3
- package/dist/hooks/output/caps.js.map +1 -1
- package/dist/hooks/output/cowork-answers.d.ts +15 -0
- package/dist/hooks/output/cowork-answers.d.ts.map +1 -0
- package/dist/hooks/output/cowork-answers.js +19 -0
- package/dist/hooks/output/cowork-answers.js.map +1 -0
- package/dist/hooks/output/merge-simple.d.ts.map +1 -1
- package/dist/hooks/output/merge-simple.js +5 -2
- package/dist/hooks/output/merge-simple.js.map +1 -1
- package/dist/hooks/output/merge.d.ts.map +1 -1
- package/dist/hooks/output/merge.js +1 -1
- package/dist/hooks/output/merge.js.map +1 -1
- package/dist/hooks/output/tool-output.d.ts +2 -9
- package/dist/hooks/output/tool-output.d.ts.map +1 -1
- package/dist/hooks/output/tool-output.js +42 -1
- package/dist/hooks/output/tool-output.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-1.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-1.js +3 -0
- package/dist/hooks/output/tool-shapes/shapes-1.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-3.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-3.js +1 -0
- package/dist/hooks/output/tool-shapes/shapes-3.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-4.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-4.js +12 -1
- package/dist/hooks/output/tool-shapes/shapes-4.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-5.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-5.js +9 -1
- package/dist/hooks/output/tool-shapes/shapes-5.js.map +1 -1
- package/dist/hooks/run-all.d.ts.map +1 -1
- package/dist/hooks/run-all.js +1 -0
- package/dist/hooks/run-all.js.map +1 -1
- package/dist/hooks/select/event-catalog.d.ts.map +1 -1
- package/dist/hooks/select/event-catalog.js +4 -1
- package/dist/hooks/select/event-catalog.js.map +1 -1
- package/dist/hooks/select/matcher-values.d.ts +2 -2
- package/dist/hooks/select/matcher-values.d.ts.map +1 -1
- package/dist/hooks/select/matcher-values.js +0 -1
- package/dist/hooks/select/matcher-values.js.map +1 -1
- package/dist/hooks/verdict/exit2.d.ts +5 -0
- package/dist/hooks/verdict/exit2.d.ts.map +1 -1
- package/dist/hooks/verdict/exit2.js +1 -1
- package/dist/hooks/verdict/exit2.js.map +1 -1
- package/dist/hooks/verdict/interpret.d.ts +2 -0
- package/dist/hooks/verdict/interpret.d.ts.map +1 -1
- package/dist/hooks/verdict/interpret.js +5 -5
- package/dist/hooks/verdict/interpret.js.map +1 -1
- package/dist/hooks/verdict/mcp-answer.d.ts +5 -0
- package/dist/hooks/verdict/mcp-answer.d.ts.map +1 -0
- package/dist/hooks/verdict/mcp-answer.js +57 -0
- package/dist/hooks/verdict/mcp-answer.js.map +1 -0
- package/dist/hooks/verdict/model-verdict.d.ts.map +1 -1
- package/dist/hooks/verdict/model-verdict.js +1 -1
- package/dist/hooks/verdict/model-verdict.js.map +1 -1
- package/dist/hooks/verdict/on-failure.d.ts +12 -2
- package/dist/hooks/verdict/on-failure.d.ts.map +1 -1
- package/dist/hooks/verdict/on-failure.js +43 -7
- package/dist/hooks/verdict/on-failure.js.map +1 -1
- package/dist/hooks/verdict/subject.d.ts +2 -0
- package/dist/hooks/verdict/subject.d.ts.map +1 -1
- package/dist/hooks/verdict/suspect-capture.d.ts.map +1 -1
- package/dist/hooks/verdict/suspect-capture.js +6 -1
- package/dist/hooks/verdict/suspect-capture.js.map +1 -1
- package/dist/host/session-agents.d.ts +5 -11
- package/dist/host/session-agents.d.ts.map +1 -1
- package/dist/host/session-agents.js +9 -13
- package/dist/host/session-agents.js.map +1 -1
- package/dist/host/session-bare-repository.d.ts +13 -0
- package/dist/host/session-bare-repository.d.ts.map +1 -0
- package/dist/host/session-bare-repository.js +32 -0
- package/dist/host/session-bare-repository.js.map +1 -0
- package/dist/host/session-engine.d.ts.map +1 -1
- package/dist/host/session-engine.js +2 -1
- package/dist/host/session-engine.js.map +1 -1
- package/dist/host/session-hooks.d.ts.map +1 -1
- package/dist/host/session-hooks.js +15 -1
- package/dist/host/session-hooks.js.map +1 -1
- package/dist/host/session-registry.d.ts +7 -0
- package/dist/host/session-registry.d.ts.map +1 -1
- package/dist/host/session-registry.js +12 -0
- package/dist/host/session-registry.js.map +1 -1
- package/dist/host/session-skill-expand.d.ts +5 -0
- package/dist/host/session-skill-expand.d.ts.map +1 -1
- package/dist/host/session-skill-expand.js +5 -20
- package/dist/host/session-skill-expand.js.map +1 -1
- package/dist/host/session-skill-permission.d.ts +9 -0
- package/dist/host/session-skill-permission.d.ts.map +1 -0
- package/dist/host/session-skill-permission.js +21 -0
- package/dist/host/session-skill-permission.js.map +1 -0
- package/dist/host/session-skills.d.ts.map +1 -1
- package/dist/host/session-skills.js +20 -13
- package/dist/host/session-skills.js.map +1 -1
- package/dist/host/session-types.d.ts +7 -0
- package/dist/host/session-types.d.ts.map +1 -1
- package/dist/host/session.d.ts.map +1 -1
- package/dist/host/session.js +0 -1
- package/dist/host/session.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/loading/load-notes.d.ts +21 -0
- package/dist/loading/load-notes.d.ts.map +1 -0
- package/dist/loading/load-notes.js +34 -0
- package/dist/loading/load-notes.js.map +1 -0
- package/dist/loading/load-plugin.d.ts +12 -0
- package/dist/loading/load-plugin.d.ts.map +1 -1
- package/dist/loading/load-plugin.js +20 -3
- package/dist/loading/load-plugin.js.map +1 -1
- package/dist/loading/manifest-gate.d.ts +1 -1
- package/dist/loading/plugin-folder.d.ts +2 -1
- package/dist/loading/plugin-folder.d.ts.map +1 -1
- package/dist/loading/plugin-folder.js +4 -1
- package/dist/loading/plugin-folder.js.map +1 -1
- package/dist/loading/plugin-model.d.ts +8 -0
- package/dist/loading/plugin-model.d.ts.map +1 -1
- package/dist/loading/validate/marketplace-target.d.ts.map +1 -1
- package/dist/loading/validate/marketplace-target.js +22 -4
- package/dist/loading/validate/marketplace-target.js.map +1 -1
- package/dist/loading/validate/plugin-contents.d.ts.map +1 -1
- package/dist/loading/validate/plugin-contents.js +8 -0
- package/dist/loading/validate/plugin-contents.js.map +1 -1
- package/dist/loading/walk.js +3 -3
- package/dist/loading/walk.js.map +1 -1
- package/dist/marketplace/dependency-graph.d.ts +5 -0
- package/dist/marketplace/dependency-graph.d.ts.map +1 -1
- package/dist/marketplace/dependency-graph.js.map +1 -1
- package/dist/marketplace/dependency-install-plan.d.ts +6 -5
- package/dist/marketplace/dependency-install-plan.d.ts.map +1 -1
- package/dist/marketplace/dependency-install-plan.js +6 -4
- package/dist/marketplace/dependency-install-plan.js.map +1 -1
- package/dist/marketplace/enablement-notes.d.ts +22 -7
- package/dist/marketplace/enablement-notes.d.ts.map +1 -1
- package/dist/marketplace/enablement-notes.js +36 -13
- package/dist/marketplace/enablement-notes.js.map +1 -1
- package/dist/marketplace/headless-report.d.ts +12 -0
- package/dist/marketplace/headless-report.d.ts.map +1 -1
- package/dist/marketplace/headless-report.js +11 -1
- package/dist/marketplace/headless-report.js.map +1 -1
- package/dist/marketplace/index.d.ts +1 -1
- package/dist/marketplace/index.d.ts.map +1 -1
- package/dist/marketplace/index.js +1 -1
- package/dist/marketplace/index.js.map +1 -1
- package/dist/marketplace/install-commands.d.ts +5 -0
- package/dist/marketplace/install-commands.d.ts.map +1 -1
- package/dist/marketplace/install-commands.js +6 -3
- package/dist/marketplace/install-commands.js.map +1 -1
- package/dist/marketplace/install-errors.d.ts +5 -4
- package/dist/marketplace/install-errors.d.ts.map +1 -1
- package/dist/marketplace/install-errors.js +8 -7
- package/dist/marketplace/install-errors.js.map +1 -1
- package/dist/marketplace/install-lifecycle-index.d.ts +4 -2
- package/dist/marketplace/install-lifecycle-index.d.ts.map +1 -1
- package/dist/marketplace/install-lifecycle-index.js +2 -0
- package/dist/marketplace/install-lifecycle-index.js.map +1 -1
- package/dist/marketplace/install-plan.d.ts +2 -0
- package/dist/marketplace/install-plan.d.ts.map +1 -1
- package/dist/marketplace/install-plan.js +5 -0
- package/dist/marketplace/install-plan.js.map +1 -1
- package/dist/marketplace/install-plans.d.ts +3 -3
- package/dist/marketplace/install-plans.d.ts.map +1 -1
- package/dist/marketplace/install-plans.js +3 -4
- package/dist/marketplace/install-plans.js.map +1 -1
- package/dist/marketplace/managed-take-back.d.ts +25 -0
- package/dist/marketplace/managed-take-back.d.ts.map +1 -0
- package/dist/marketplace/managed-take-back.js +24 -0
- package/dist/marketplace/managed-take-back.js.map +1 -0
- package/dist/marketplace/marketplace-fetch-plan.d.ts.map +1 -1
- package/dist/marketplace/marketplace-fetch-plan.js +2 -0
- package/dist/marketplace/marketplace-fetch-plan.js.map +1 -1
- package/dist/marketplace/reload-summary.d.ts +5 -0
- package/dist/marketplace/reload-summary.d.ts.map +1 -1
- package/dist/marketplace/reload-summary.js +8 -3
- package/dist/marketplace/reload-summary.js.map +1 -1
- package/dist/marketplace/removal.d.ts +4 -4
- package/dist/marketplace/removal.d.ts.map +1 -1
- package/dist/marketplace/removal.js +3 -3
- package/dist/marketplace/removal.js.map +1 -1
- package/dist/marketplace/seed-registry.d.ts +7 -5
- package/dist/marketplace/seed-registry.d.ts.map +1 -1
- package/dist/marketplace/seed-registry.js +7 -5
- package/dist/marketplace/seed-registry.js.map +1 -1
- package/dist/marketplace/store-layout.d.ts +9 -3
- package/dist/marketplace/store-layout.d.ts.map +1 -1
- package/dist/marketplace/store-layout.js +9 -4
- package/dist/marketplace/store-layout.js.map +1 -1
- package/dist/marketplace/types.d.ts +5 -0
- package/dist/marketplace/types.d.ts.map +1 -1
- package/dist/mods/api/agent.d.ts.map +1 -1
- package/dist/mods/api/agent.js +28 -0
- package/dist/mods/api/agent.js.map +1 -1
- package/dist/mods/api/audio.d.ts.map +1 -1
- package/dist/mods/api/audio.js +19 -5
- package/dist/mods/api/audio.js.map +1 -1
- package/dist/mods/api/build.d.ts +1 -1
- package/dist/mods/api/build.d.ts.map +1 -1
- package/dist/mods/api/build.js +6 -2
- package/dist/mods/api/build.js.map +1 -1
- package/dist/mods/api/call.d.ts.map +1 -1
- package/dist/mods/api/call.js +7 -0
- package/dist/mods/api/call.js.map +1 -1
- package/dist/mods/api/command.d.ts +11 -0
- package/dist/mods/api/command.d.ts.map +1 -1
- package/dist/mods/api/command.js +19 -1
- package/dist/mods/api/command.js.map +1 -1
- package/dist/mods/api/declared-port-types.d.ts +116 -0
- package/dist/mods/api/declared-port-types.d.ts.map +1 -0
- package/dist/mods/api/declared-port-types.js +31 -0
- package/dist/mods/api/declared-port-types.js.map +1 -0
- package/dist/mods/api/engine-create.d.ts +2 -0
- package/dist/mods/api/engine-create.d.ts.map +1 -1
- package/dist/mods/api/engine-create.js +6 -0
- package/dist/mods/api/engine-create.js.map +1 -1
- package/dist/mods/api/exec.d.ts.map +1 -1
- package/dist/mods/api/exec.js +3 -0
- package/dist/mods/api/exec.js.map +1 -1
- package/dist/mods/api/fs-ports.d.ts +8 -2
- package/dist/mods/api/fs-ports.d.ts.map +1 -1
- package/dist/mods/api/fs.d.ts.map +1 -1
- package/dist/mods/api/fs.js +26 -7
- package/dist/mods/api/fs.js.map +1 -1
- package/dist/mods/api/gate.d.ts +3 -3
- package/dist/mods/api/gate.d.ts.map +1 -1
- package/dist/mods/api/gate.js +3 -3
- package/dist/mods/api/gate.js.map +1 -1
- package/dist/mods/api/host-ports.d.ts +2 -1
- package/dist/mods/api/host-ports.d.ts.map +1 -1
- package/dist/mods/api/host-ports.js +15 -0
- package/dist/mods/api/host-ports.js.map +1 -1
- package/dist/mods/api/index.d.ts +4 -3
- package/dist/mods/api/index.d.ts.map +1 -1
- package/dist/mods/api/index.js +3 -2
- package/dist/mods/api/index.js.map +1 -1
- package/dist/mods/api/mcp.d.ts.map +1 -1
- package/dist/mods/api/mcp.js +6 -1
- package/dist/mods/api/mcp.js.map +1 -1
- package/dist/mods/api/optional-port-types.d.ts +52 -18
- package/dist/mods/api/optional-port-types.d.ts.map +1 -1
- package/dist/mods/api/ports.d.ts +5 -42
- package/dist/mods/api/ports.d.ts.map +1 -1
- package/dist/mods/api/ports.js.map +1 -1
- package/dist/mods/api/registries.d.ts +9 -10
- package/dist/mods/api/registries.d.ts.map +1 -1
- package/dist/mods/api/registries.js +8 -8
- package/dist/mods/api/registries.js.map +1 -1
- package/dist/mods/api/session-ports.d.ts +54 -0
- package/dist/mods/api/session-ports.d.ts.map +1 -0
- package/dist/mods/api/session-ports.js +2 -0
- package/dist/mods/api/session-ports.js.map +1 -0
- package/dist/mods/api/session.d.ts.map +1 -1
- package/dist/mods/api/session.js +28 -2
- package/dist/mods/api/session.js.map +1 -1
- package/dist/mods/api/theme.d.ts +11 -4
- package/dist/mods/api/theme.d.ts.map +1 -1
- package/dist/mods/api/theme.js +116 -30
- package/dist/mods/api/theme.js.map +1 -1
- package/dist/mods/api/vcs.d.ts +4 -0
- package/dist/mods/api/vcs.d.ts.map +1 -0
- package/dist/mods/api/vcs.js +60 -0
- package/dist/mods/api/vcs.js.map +1 -0
- package/dist/mods/api/wasm.d.ts +4 -0
- package/dist/mods/api/wasm.d.ts.map +1 -0
- package/dist/mods/api/wasm.js +69 -0
- package/dist/mods/api/wasm.js.map +1 -0
- package/dist/mods/chain/api-guard.d.ts +10 -1
- package/dist/mods/chain/api-guard.d.ts.map +1 -1
- package/dist/mods/chain/api-guard.js +23 -7
- package/dist/mods/chain/api-guard.js.map +1 -1
- package/dist/mods/chain/context.d.ts +6 -0
- package/dist/mods/chain/context.d.ts.map +1 -1
- package/dist/mods/chain/context.js +6 -0
- package/dist/mods/chain/context.js.map +1 -1
- package/dist/mods/chain/default-matcher.d.ts +11 -0
- package/dist/mods/chain/default-matcher.d.ts.map +1 -0
- package/dist/mods/chain/default-matcher.js +61 -0
- package/dist/mods/chain/default-matcher.js.map +1 -0
- package/dist/mods/chain/dispatch.d.ts.map +1 -1
- package/dist/mods/chain/dispatch.js +19 -1
- package/dist/mods/chain/dispatch.js.map +1 -1
- package/dist/mods/chain/failure.d.ts +2 -0
- package/dist/mods/chain/failure.d.ts.map +1 -1
- package/dist/mods/chain/failure.js +6 -0
- package/dist/mods/chain/failure.js.map +1 -1
- package/dist/mods/chain/guarded.d.ts +2 -0
- package/dist/mods/chain/guarded.d.ts.map +1 -1
- package/dist/mods/chain/guarded.js +6 -2
- package/dist/mods/chain/guarded.js.map +1 -1
- package/dist/mods/chain/invoke.d.ts.map +1 -1
- package/dist/mods/chain/invoke.js +25 -5
- package/dist/mods/chain/invoke.js.map +1 -1
- package/dist/mods/chain/validate.d.ts.map +1 -1
- package/dist/mods/chain/validate.js +2 -1
- package/dist/mods/chain/validate.js.map +1 -1
- package/dist/mods/events/agent.d.ts.map +1 -1
- package/dist/mods/events/agent.js +7 -3
- package/dist/mods/events/agent.js.map +1 -1
- package/dist/mods/events/declared.d.ts +12 -0
- package/dist/mods/events/declared.d.ts.map +1 -0
- package/dist/mods/events/declared.js +43 -0
- package/dist/mods/events/declared.js.map +1 -0
- package/dist/mods/events/index.d.ts +6 -0
- package/dist/mods/events/index.d.ts.map +1 -1
- package/dist/mods/events/index.js +4 -1
- package/dist/mods/events/index.js.map +1 -1
- package/dist/mods/events/pinned.d.ts +7 -0
- package/dist/mods/events/pinned.d.ts.map +1 -0
- package/dist/mods/events/pinned.js +21 -0
- package/dist/mods/events/pinned.js.map +1 -0
- package/dist/mods/events/session.d.ts.map +1 -1
- package/dist/mods/events/session.js +17 -4
- package/dist/mods/events/session.js.map +1 -1
- package/dist/mods/events/spec.d.ts +2 -0
- package/dist/mods/events/spec.d.ts.map +1 -1
- package/dist/mods/events/spec.js.map +1 -1
- package/dist/mods/events/tool.d.ts +2 -2
- package/dist/mods/events/tool.d.ts.map +1 -1
- package/dist/mods/events/tool.js +50 -10
- package/dist/mods/events/tool.js.map +1 -1
- package/dist/mods/events/turn.d.ts.map +1 -1
- package/dist/mods/events/turn.js +12 -1
- package/dist/mods/events/turn.js.map +1 -1
- package/dist/mods/load/auto-mode-approval.d.ts +6 -9
- package/dist/mods/load/auto-mode-approval.d.ts.map +1 -1
- package/dist/mods/load/auto-mode-approval.js +1 -1
- package/dist/mods/load/auto-mode-approval.js.map +1 -1
- package/dist/mods/load/commands/module-facts.d.ts +22 -0
- package/dist/mods/load/commands/module-facts.d.ts.map +1 -0
- package/dist/mods/load/commands/module-facts.js +18 -0
- package/dist/mods/load/commands/module-facts.js.map +1 -0
- package/dist/mods/load/commands/scan-lead.d.ts +2 -0
- package/dist/mods/load/commands/scan-lead.d.ts.map +1 -1
- package/dist/mods/load/commands/scan-lead.js +5 -2
- package/dist/mods/load/commands/scan-lead.js.map +1 -1
- package/dist/mods/load/commands/scan-lines.d.ts.map +1 -1
- package/dist/mods/load/commands/scan-lines.js +32 -1
- package/dist/mods/load/commands/scan-lines.js.map +1 -1
- package/dist/mods/load/commands/sha256.d.ts +7 -0
- package/dist/mods/load/commands/sha256.d.ts.map +1 -0
- package/dist/mods/load/commands/sha256.js +75 -0
- package/dist/mods/load/commands/sha256.js.map +1 -0
- package/dist/mods/load/commands/validate-report.d.ts +9 -0
- package/dist/mods/load/commands/validate-report.d.ts.map +1 -1
- package/dist/mods/load/commands/validate.d.ts.map +1 -1
- package/dist/mods/load/commands/validate.js +23 -16
- package/dist/mods/load/commands/validate.js.map +1 -1
- package/dist/mods/load/commands/wasm-read.d.ts +21 -0
- package/dist/mods/load/commands/wasm-read.d.ts.map +1 -0
- package/dist/mods/load/commands/wasm-read.js +169 -0
- package/dist/mods/load/commands/wasm-read.js.map +1 -0
- package/dist/mods/load/guard-protection.d.ts +7 -0
- package/dist/mods/load/guard-protection.d.ts.map +1 -1
- package/dist/mods/load/guard-protection.js +8 -3
- package/dist/mods/load/guard-protection.js.map +1 -1
- package/dist/mods/load/guard-surfaces.d.ts.map +1 -1
- package/dist/mods/load/guard-surfaces.js +2 -0
- package/dist/mods/load/guard-surfaces.js.map +1 -1
- package/dist/mods/load/guard-tools.d.ts +25 -0
- package/dist/mods/load/guard-tools.d.ts.map +1 -0
- package/dist/mods/load/guard-tools.js +29 -0
- package/dist/mods/load/guard-tools.js.map +1 -0
- package/dist/mods/load/guard.d.ts +3 -0
- package/dist/mods/load/guard.d.ts.map +1 -1
- package/dist/mods/load/guard.js +19 -8
- package/dist/mods/load/guard.js.map +1 -1
- package/dist/mods/load/host-support.d.ts +16 -3
- package/dist/mods/load/host-support.d.ts.map +1 -1
- package/dist/mods/load/host-support.js +28 -7
- package/dist/mods/load/host-support.js.map +1 -1
- package/dist/mods/load/host.d.ts +15 -2
- package/dist/mods/load/host.d.ts.map +1 -1
- package/dist/mods/load/host.js +4 -3
- package/dist/mods/load/host.js.map +1 -1
- package/dist/mods/load/in-turn.d.ts +6 -0
- package/dist/mods/load/in-turn.d.ts.map +1 -0
- package/dist/mods/load/in-turn.js +13 -0
- package/dist/mods/load/in-turn.js.map +1 -0
- package/dist/mods/load/index.d.ts +6 -3
- package/dist/mods/load/index.d.ts.map +1 -1
- package/dist/mods/load/index.js +4 -3
- package/dist/mods/load/index.js.map +1 -1
- package/dist/mods/load/loader.d.ts +13 -2
- package/dist/mods/load/loader.d.ts.map +1 -1
- package/dist/mods/load/loader.js +14 -10
- package/dist/mods/load/loader.js.map +1 -1
- package/dist/mods/load/mod-set.d.ts +3 -0
- package/dist/mods/load/mod-set.d.ts.map +1 -1
- package/dist/mods/load/mod-set.js +6 -15
- package/dist/mods/load/mod-set.js.map +1 -1
- package/dist/mods/load/order.js +2 -2
- package/dist/mods/load/order.js.map +1 -1
- package/dist/mods/load/plugin-dirs.d.ts +14 -4
- package/dist/mods/load/plugin-dirs.d.ts.map +1 -1
- package/dist/mods/load/plugin-dirs.js +14 -9
- package/dist/mods/load/plugin-dirs.js.map +1 -1
- package/dist/mods/load/policy.d.ts +12 -8
- package/dist/mods/load/policy.d.ts.map +1 -1
- package/dist/mods/load/policy.js +47 -19
- package/dist/mods/load/policy.js.map +1 -1
- package/dist/mods/load/prepare.d.ts +4 -0
- package/dist/mods/load/prepare.d.ts.map +1 -1
- package/dist/mods/load/prepare.js +21 -3
- package/dist/mods/load/prepare.js.map +1 -1
- package/dist/mods/load/provides.d.ts +25 -0
- package/dist/mods/load/provides.d.ts.map +1 -0
- package/dist/mods/load/provides.js +128 -0
- package/dist/mods/load/provides.js.map +1 -0
- package/dist/mods/load/register-ask.d.ts +32 -0
- package/dist/mods/load/register-ask.d.ts.map +1 -0
- package/dist/mods/load/register-ask.js +45 -0
- package/dist/mods/load/register-ask.js.map +1 -0
- package/dist/mods/load/register-call.d.ts +23 -13
- package/dist/mods/load/register-call.d.ts.map +1 -1
- package/dist/mods/load/register-call.js +69 -23
- package/dist/mods/load/register-call.js.map +1 -1
- package/dist/mods/load/register-event.d.ts +70 -0
- package/dist/mods/load/register-event.d.ts.map +1 -0
- package/dist/mods/load/register-event.js +35 -0
- package/dist/mods/load/register-event.js.map +1 -0
- package/dist/mods/load/scan/client-modules.d.ts +2 -0
- package/dist/mods/load/scan/client-modules.d.ts.map +1 -1
- package/dist/mods/load/scan/client-modules.js +1 -1
- package/dist/mods/load/scan/client-modules.js.map +1 -1
- package/dist/mods/load/scan/event-names.d.ts.map +1 -1
- package/dist/mods/load/scan/event-names.js +2 -0
- package/dist/mods/load/scan/event-names.js.map +1 -1
- package/dist/mods/load/scan/found.d.ts +5 -0
- package/dist/mods/load/scan/found.d.ts.map +1 -1
- package/dist/mods/load/scan/found.js +3 -0
- package/dist/mods/load/scan/found.js.map +1 -1
- package/dist/mods/load/scan/hosts.d.ts +5 -0
- package/dist/mods/load/scan/hosts.d.ts.map +1 -0
- package/dist/mods/load/scan/hosts.js +44 -0
- package/dist/mods/load/scan/hosts.js.map +1 -0
- package/dist/mods/load/scan/index.d.ts +1 -0
- package/dist/mods/load/scan/index.d.ts.map +1 -1
- package/dist/mods/load/scan/index.js +7 -0
- package/dist/mods/load/scan/index.js.map +1 -1
- package/dist/mods/load/scan/rules.d.ts.map +1 -1
- package/dist/mods/load/scan/rules.js +4 -0
- package/dist/mods/load/scan/rules.js.map +1 -1
- package/dist/mods/load/scan/uses.d.ts +8 -0
- package/dist/mods/load/scan/uses.d.ts.map +1 -1
- package/dist/mods/load/scan/uses.js +2 -0
- package/dist/mods/load/scan/uses.js.map +1 -1
- package/dist/mods/load/scan/wasm-paths.d.ts +17 -0
- package/dist/mods/load/scan/wasm-paths.d.ts.map +1 -0
- package/dist/mods/load/scan/wasm-paths.js +16 -0
- package/dist/mods/load/scan/wasm-paths.js.map +1 -0
- package/dist/mods/load/tool-flow.d.ts +1 -1
- package/dist/mods/load/tool-flow.d.ts.map +1 -1
- package/dist/mods/load/tool-flow.js +15 -2
- package/dist/mods/load/tool-flow.js.map +1 -1
- package/dist/mods/load/wasm-files.d.ts +35 -0
- package/dist/mods/load/wasm-files.d.ts.map +1 -0
- package/dist/mods/load/wasm-files.js +40 -0
- package/dist/mods/load/wasm-files.js.map +1 -0
- package/dist/mods/load/wiring.d.ts.map +1 -1
- package/dist/mods/load/wiring.js +20 -8
- package/dist/mods/load/wiring.js.map +1 -1
- package/dist/mods/load/written-mods.d.ts +16 -3
- package/dist/mods/load/written-mods.d.ts.map +1 -1
- package/dist/mods/load/written-mods.js +26 -25
- package/dist/mods/load/written-mods.js.map +1 -1
- package/dist/mods/types.d.ts +10 -9
- package/dist/mods/types.d.ts.map +1 -1
- package/dist/mods/ui/controls/hotkeys.d.ts +8 -0
- package/dist/mods/ui/controls/hotkeys.d.ts.map +1 -1
- package/dist/mods/ui/controls/hotkeys.js +30 -3
- package/dist/mods/ui/controls/hotkeys.js.map +1 -1
- package/dist/mods/ui/elements/box.d.ts.map +1 -1
- package/dist/mods/ui/elements/box.js +5 -2
- package/dist/mods/ui/elements/box.js.map +1 -1
- package/dist/mods/ui/elements/limits.d.ts.map +1 -1
- package/dist/mods/ui/elements/limits.js +5 -3
- package/dist/mods/ui/elements/limits.js.map +1 -1
- package/dist/mods/ui/elements/progress.d.ts +8 -0
- package/dist/mods/ui/elements/progress.d.ts.map +1 -0
- package/dist/mods/ui/elements/progress.js +17 -0
- package/dist/mods/ui/elements/progress.js.map +1 -0
- package/dist/mods/ui/elements/prop-size.d.ts +10 -0
- package/dist/mods/ui/elements/prop-size.d.ts.map +1 -0
- package/dist/mods/ui/elements/prop-size.js +34 -0
- package/dist/mods/ui/elements/prop-size.js.map +1 -0
- package/dist/mods/ui/elements/registry.d.ts.map +1 -1
- package/dist/mods/ui/elements/registry.js +4 -0
- package/dist/mods/ui/elements/registry.js.map +1 -1
- package/dist/mods/ui/elements/shader-place.d.ts +8 -0
- package/dist/mods/ui/elements/shader-place.d.ts.map +1 -0
- package/dist/mods/ui/elements/shader-place.js +36 -0
- package/dist/mods/ui/elements/shader-place.js.map +1 -0
- package/dist/mods/ui/elements/shader.d.ts +11 -0
- package/dist/mods/ui/elements/shader.d.ts.map +1 -0
- package/dist/mods/ui/elements/shader.js +28 -0
- package/dist/mods/ui/elements/shader.js.map +1 -0
- package/dist/mods/ui/elements/svg.d.ts +3 -0
- package/dist/mods/ui/elements/svg.d.ts.map +1 -1
- package/dist/mods/ui/elements/svg.js +2 -0
- package/dist/mods/ui/elements/svg.js.map +1 -1
- package/dist/mods/ui/elements/table.d.ts.map +1 -1
- package/dist/mods/ui/elements/table.js +2 -0
- package/dist/mods/ui/elements/table.js.map +1 -1
- package/dist/mods/ui/elements/text.d.ts.map +1 -1
- package/dist/mods/ui/elements/text.js +7 -1
- package/dist/mods/ui/elements/text.js.map +1 -1
- package/dist/mods/ui/elements/validate.d.ts.map +1 -1
- package/dist/mods/ui/elements/validate.js +3 -1
- package/dist/mods/ui/elements/validate.js.map +1 -1
- package/dist/mods/ui/index.d.ts +1 -0
- package/dist/mods/ui/index.d.ts.map +1 -1
- package/dist/mods/ui/index.js.map +1 -1
- package/dist/mods/ui/keyboard/keys.d.ts +3 -0
- package/dist/mods/ui/keyboard/keys.d.ts.map +1 -1
- package/dist/mods/ui/keyboard/keys.js.map +1 -1
- package/dist/mods/ui/panes/open.d.ts +2 -0
- package/dist/mods/ui/panes/open.d.ts.map +1 -1
- package/dist/mods/ui/panes/open.js +3 -1
- package/dist/mods/ui/panes/open.js.map +1 -1
- package/dist/mods/ui/panes/pane-request.d.ts +9 -0
- package/dist/mods/ui/panes/pane-request.d.ts.map +1 -0
- package/dist/mods/ui/panes/pane-request.js +19 -0
- package/dist/mods/ui/panes/pane-request.js.map +1 -0
- package/dist/mods/ui/panes/registry.d.ts +1 -1
- package/dist/mods/ui/panes/registry.d.ts.map +1 -1
- package/dist/mods/ui/panes/registry.js +4 -0
- package/dist/mods/ui/panes/registry.js.map +1 -1
- package/dist/mods/ui/rules.d.ts.map +1 -1
- package/dist/mods/ui/rules.js +3 -0
- package/dist/mods/ui/rules.js.map +1 -1
- package/dist/mods/ui/runtime.d.ts +6 -0
- package/dist/mods/ui/runtime.d.ts.map +1 -1
- package/dist/mods/ui/runtime.js +25 -9
- package/dist/mods/ui/runtime.js.map +1 -1
- package/dist/mods/ui/sites/agent-row.d.ts +7 -0
- package/dist/mods/ui/sites/agent-row.d.ts.map +1 -0
- package/dist/mods/ui/sites/agent-row.js +22 -0
- package/dist/mods/ui/sites/agent-row.js.map +1 -0
- package/dist/mods/ui/sites/backdrop.d.ts +2 -2
- package/dist/mods/ui/sites/backdrop.js +2 -2
- package/dist/mods/ui/sites/band-list.d.ts +10 -0
- package/dist/mods/ui/sites/band-list.d.ts.map +1 -0
- package/dist/mods/ui/sites/band-list.js +41 -0
- package/dist/mods/ui/sites/band-list.js.map +1 -0
- package/dist/mods/ui/sites/band-rows.d.ts +33 -0
- package/dist/mods/ui/sites/band-rows.d.ts.map +1 -0
- package/dist/mods/ui/sites/band-rows.js +61 -0
- package/dist/mods/ui/sites/band-rows.js.map +1 -0
- package/dist/mods/ui/sites/fold.d.ts +2 -0
- package/dist/mods/ui/sites/fold.d.ts.map +1 -1
- package/dist/mods/ui/sites/fold.js +2 -2
- package/dist/mods/ui/sites/fold.js.map +1 -1
- package/dist/mods/ui/sites/registry.d.ts +8 -1
- package/dist/mods/ui/sites/registry.d.ts.map +1 -1
- package/dist/mods/ui/sites/registry.js +21 -14
- package/dist/mods/ui/sites/registry.js.map +1 -1
- package/dist/ports/files.d.ts +1 -1
- package/dist/ports/mcp-bundle.d.ts +3 -2
- package/dist/ports/mcp-bundle.d.ts.map +1 -1
- package/dist/ports/mcp-caller.d.ts +7 -0
- package/dist/ports/mcp-caller.d.ts.map +1 -1
- package/dist/protocol/mods-api-names.d.ts +20 -8
- package/dist/protocol/mods-api-names.d.ts.map +1 -1
- package/dist/protocol/mods-api-names.js +16 -4
- package/dist/protocol/mods-api-names.js.map +1 -1
- package/dist/protocol/mods-events.d.ts +11 -8
- package/dist/protocol/mods-events.d.ts.map +1 -1
- package/dist/protocol/mods-events.js +14 -5
- package/dist/protocol/mods-events.js.map +1 -1
- package/dist/protocol/mods-limits.d.ts +9 -1
- package/dist/protocol/mods-limits.d.ts.map +1 -1
- package/dist/protocol/mods-limits.js +9 -1
- package/dist/protocol/mods-limits.js.map +1 -1
- package/dist/protocol/mods-ui-names.d.ts +42 -11
- package/dist/protocol/mods-ui-names.d.ts.map +1 -1
- package/dist/protocol/mods-ui-names.js +62 -8
- package/dist/protocol/mods-ui-names.js.map +1 -1
- package/dist/protocol/official.d.ts +1 -1
- package/dist/protocol/official.d.ts.map +1 -1
- package/dist/protocol/tool-names.d.ts +12 -5
- package/dist/protocol/tool-names.d.ts.map +1 -1
- package/dist/protocol/tool-names.js +21 -2
- package/dist/protocol/tool-names.js.map +1 -1
- package/dist/rules/bash/wrappers.d.ts +2 -0
- package/dist/rules/bash/wrappers.d.ts.map +1 -1
- package/dist/rules/bash/wrappers.js +2 -0
- package/dist/rules/bash/wrappers.js.map +1 -1
- package/dist/rules/decide/auto-dropped.d.ts.map +1 -1
- package/dist/rules/decide/auto-dropped.js +23 -4
- package/dist/rules/decide/auto-dropped.js.map +1 -1
- package/dist/rules/decide/context.d.ts +5 -2
- package/dist/rules/decide/context.d.ts.map +1 -1
- package/dist/rules/decide/decide.d.ts.map +1 -1
- package/dist/rules/decide/decide.js +11 -0
- package/dist/rules/decide/decide.js.map +1 -1
- package/dist/rules/decide/facts.js +3 -3
- package/dist/rules/decide/facts.js.map +1 -1
- package/dist/rules/decide/modes.d.ts +7 -0
- package/dist/rules/decide/modes.d.ts.map +1 -1
- package/dist/rules/decide/modes.js +5 -0
- package/dist/rules/decide/modes.js.map +1 -1
- package/dist/rules/tools/catalog.d.ts.map +1 -1
- package/dist/rules/tools/catalog.js +13 -3
- package/dist/rules/tools/catalog.js.map +1 -1
- package/dist/rules/types.d.ts +6 -0
- package/dist/rules/types.d.ts.map +1 -1
- package/dist/settings/add-dir-layer.d.ts +17 -0
- package/dist/settings/add-dir-layer.d.ts.map +1 -0
- package/dist/settings/add-dir-layer.js +20 -0
- package/dist/settings/add-dir-layer.js.map +1 -0
- package/dist/settings/env/code-mode.d.ts +21 -0
- package/dist/settings/env/code-mode.d.ts.map +1 -0
- package/dist/settings/env/code-mode.js +8 -0
- package/dist/settings/env/code-mode.js.map +1 -0
- package/dist/settings/env/ignored-variables.d.ts +1 -1
- package/dist/settings/env/ignored-variables.d.ts.map +1 -1
- package/dist/settings/env/ignored-variables.js +7 -0
- package/dist/settings/env/ignored-variables.js.map +1 -1
- package/dist/settings/env/index.d.ts +1 -0
- package/dist/settings/env/index.d.ts.map +1 -1
- package/dist/settings/env/index.js +1 -0
- package/dist/settings/env/index.js.map +1 -1
- package/dist/settings/general/checks.d.ts.map +1 -1
- package/dist/settings/general/checks.js +0 -1
- package/dist/settings/general/checks.js.map +1 -1
- package/dist/settings/general/command-lines.d.ts +1 -20
- package/dist/settings/general/command-lines.d.ts.map +1 -1
- package/dist/settings/general/command-lines.js +1 -15
- package/dist/settings/general/command-lines.js.map +1 -1
- package/dist/settings/general/edit-effect.d.ts +10 -1
- package/dist/settings/general/edit-effect.d.ts.map +1 -1
- package/dist/settings/general/edit-effect.js +8 -1
- package/dist/settings/general/edit-effect.js.map +1 -1
- package/dist/settings/general/index.d.ts +2 -3
- package/dist/settings/general/index.d.ts.map +1 -1
- package/dist/settings/general/index.js +1 -2
- package/dist/settings/general/index.js.map +1 -1
- package/dist/settings/general/keys.d.ts +1 -2
- package/dist/settings/general/keys.d.ts.map +1 -1
- package/dist/settings/general/keys.js +0 -1
- package/dist/settings/general/keys.js.map +1 -1
- package/dist/settings/general/plugin-defaults.d.ts +15 -4
- package/dist/settings/general/plugin-defaults.d.ts.map +1 -1
- package/dist/settings/general/plugin-defaults.js +11 -10
- package/dist/settings/general/plugin-defaults.js.map +1 -1
- package/dist/settings/general/rows.d.ts.map +1 -1
- package/dist/settings/general/rows.js +0 -1
- package/dist/settings/general/rows.js.map +1 -1
- package/dist/settings/hooks/custom-commands.d.ts +1 -2
- package/dist/settings/hooks/custom-commands.d.ts.map +1 -1
- package/dist/settings/hooks/custom-commands.js +1 -1
- package/dist/settings/hooks/custom-commands.js.map +1 -1
- package/dist/settings/hooks/http-policy.d.ts +17 -4
- package/dist/settings/hooks/http-policy.d.ts.map +1 -1
- package/dist/settings/hooks/http-policy.js +25 -6
- package/dist/settings/hooks/http-policy.js.map +1 -1
- package/dist/settings/hooks/index.d.ts +1 -1
- package/dist/settings/hooks/index.d.ts.map +1 -1
- package/dist/settings/hooks/index.js.map +1 -1
- package/dist/settings/hooks/policy.d.ts +1 -1
- package/dist/settings/hooks/policy.js +1 -1
- package/dist/settings/hooks/policy.js.map +1 -1
- package/dist/settings/hooks/session-gates.d.ts +11 -6
- package/dist/settings/hooks/session-gates.d.ts.map +1 -1
- package/dist/settings/hooks/session-gates.js +3 -7
- package/dist/settings/hooks/session-gates.js.map +1 -1
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.d.ts.map +1 -1
- package/dist/settings/index.js +1 -0
- package/dist/settings/index.js.map +1 -1
- package/dist/settings/managed/compose.d.ts +0 -6
- package/dist/settings/managed/compose.d.ts.map +1 -1
- package/dist/settings/managed/compose.js +4 -25
- package/dist/settings/managed/compose.js.map +1 -1
- package/dist/settings/managed/helper-run.js +1 -1
- package/dist/settings/managed/helper-run.js.map +1 -1
- package/dist/settings/managed/helper-settings.d.ts +9 -0
- package/dist/settings/managed/helper-settings.d.ts.map +1 -0
- package/dist/settings/managed/helper-settings.js +26 -0
- package/dist/settings/managed/helper-settings.js.map +1 -0
- package/dist/settings/managed/index.d.ts +4 -1
- package/dist/settings/managed/index.d.ts.map +1 -1
- package/dist/settings/managed/index.js +4 -1
- package/dist/settings/managed/index.js.map +1 -1
- package/dist/settings/managed/login-keys.d.ts +4 -0
- package/dist/settings/managed/login-keys.d.ts.map +1 -1
- package/dist/settings/managed/login-keys.js +17 -0
- package/dist/settings/managed/login-keys.js.map +1 -1
- package/dist/settings/managed/ports.d.ts +8 -1
- package/dist/settings/managed/ports.d.ts.map +1 -1
- package/dist/settings/managed/server-cache.d.ts +56 -0
- package/dist/settings/managed/server-cache.d.ts.map +1 -0
- package/dist/settings/managed/server-cache.js +27 -0
- package/dist/settings/managed/server-cache.js.map +1 -0
- package/dist/settings/managed/server-groups.d.ts +34 -0
- package/dist/settings/managed/server-groups.d.ts.map +1 -0
- package/dist/settings/managed/server-groups.js +28 -0
- package/dist/settings/managed/server-groups.js.map +1 -0
- package/dist/settings/mcp/exclusive.d.ts +5 -1
- package/dist/settings/mcp/exclusive.d.ts.map +1 -1
- package/dist/settings/mcp/exclusive.js +4 -2
- package/dist/settings/mcp/exclusive.js.map +1 -1
- package/dist/settings/mcp/scope.d.ts +5 -0
- package/dist/settings/mcp/scope.d.ts.map +1 -1
- package/dist/settings/mcp/scope.js +5 -0
- package/dist/settings/mcp/scope.js.map +1 -1
- package/dist/settings/permissions/default-mode.d.ts +0 -1
- package/dist/settings/permissions/default-mode.d.ts.map +1 -1
- package/dist/settings/permissions/default-mode.js +2 -2
- package/dist/settings/permissions/default-mode.js.map +1 -1
- package/dist/skills/bare-repository.d.ts +9 -0
- package/dist/skills/bare-repository.d.ts.map +1 -0
- package/dist/skills/bare-repository.js +11 -0
- package/dist/skills/bare-repository.js.map +1 -0
- package/dist/skills/execution.d.ts +1 -1
- package/dist/skills/execution.d.ts.map +1 -1
- package/dist/skills/expand-shell.d.ts.map +1 -1
- package/dist/skills/expand-shell.js +1 -0
- package/dist/skills/expand-shell.js.map +1 -1
- package/dist/skills/expand-types.d.ts +5 -0
- package/dist/skills/expand-types.d.ts.map +1 -1
- package/dist/skills/index.d.ts +1 -0
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +1 -0
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/invocation.d.ts.map +1 -1
- package/dist/skills/invocation.js +4 -3
- package/dist/skills/invocation.js.map +1 -1
- package/dist/skills/path-gate.d.ts +11 -2
- package/dist/skills/path-gate.d.ts.map +1 -1
- package/dist/skills/path-gate.js +17 -2
- package/dist/skills/path-gate.js.map +1 -1
- package/dist/skills/shell-run.d.ts +5 -0
- package/dist/skills/shell-run.d.ts.map +1 -1
- package/dist/skills/shell-run.js +18 -1
- package/dist/skills/shell-run.js.map +1 -1
- package/dist/testing/mods/expect-equal.d.ts +24 -0
- package/dist/testing/mods/expect-equal.d.ts.map +1 -0
- package/dist/testing/mods/expect-equal.js +55 -0
- package/dist/testing/mods/expect-equal.js.map +1 -0
- package/dist/testing/mods/expect-matchers.d.ts +111 -0
- package/dist/testing/mods/expect-matchers.d.ts.map +1 -0
- package/dist/testing/mods/expect-matchers.js +111 -0
- package/dist/testing/mods/expect-matchers.js.map +1 -0
- package/dist/testing/mods/expect.d.ts +27 -44
- package/dist/testing/mods/expect.d.ts.map +1 -1
- package/dist/testing/mods/expect.js +70 -97
- package/dist/testing/mods/expect.js.map +1 -1
- package/dist/testing/mods/fake-ports.d.ts.map +1 -1
- package/dist/testing/mods/fake-ports.js +12 -0
- package/dist/testing/mods/fake-ports.js.map +1 -1
- package/dist/testing/mods/kit.d.ts.map +1 -1
- package/dist/testing/mods/kit.js +7 -2
- package/dist/testing/mods/kit.js.map +1 -1
- package/dist/testing/mods/mock.d.ts +3 -2
- package/dist/testing/mods/mock.d.ts.map +1 -1
- package/dist/testing/mods/mock.js.map +1 -1
- package/dist/testing/mods/mount.d.ts +2 -0
- package/dist/testing/mods/mount.d.ts.map +1 -1
- package/dist/testing/mods/mount.js +30 -3
- package/dist/testing/mods/mount.js.map +1 -1
- package/dist/testing/mods/stub-matcher.d.ts +9 -0
- package/dist/testing/mods/stub-matcher.d.ts.map +1 -0
- package/dist/testing/mods/stub-matcher.js +24 -0
- package/dist/testing/mods/stub-matcher.js.map +1 -0
- package/dist/testing/mods/stubs.d.ts +4 -1
- package/dist/testing/mods/stubs.d.ts.map +1 -1
- package/dist/testing/mods/stubs.js +10 -5
- package/dist/testing/mods/stubs.js.map +1 -1
- package/dist/testing/mods/world.d.ts +2 -1
- package/dist/testing/mods/world.d.ts.map +1 -1
- package/dist/testing/mods/world.js +2 -2
- package/dist/testing/mods/world.js.map +1 -1
- package/package.json +3 -3
- package/src/agents/catalog/builtin.ts +25 -2
- package/src/agents/catalog/scan.ts +5 -1
- package/src/agents/index.ts +3 -0
- package/src/agents/launch-model.ts +67 -26
- package/src/agents/launch.ts +37 -14
- package/src/agents/model-choice.ts +18 -5
- package/src/agents/task-list.ts +31 -0
- package/src/agents/tool-filters.ts +15 -1
- package/src/agents/tool-resolution.ts +20 -3
- package/src/agents/workflow/replay.ts +21 -3
- package/src/agents/workflow/usage-limit.ts +43 -4
- package/src/cli/command-table.ts +2 -0
- package/src/cli/flags/session.ts +2 -1
- package/src/cli/index.ts +25 -0
- package/src/cli/install-command-outcome.ts +69 -0
- package/src/cli/install-command-step.ts +91 -0
- package/src/cli/install-engines.ts +58 -0
- package/src/cli/install-plan.ts +40 -116
- package/src/cli/install-refusals.ts +7 -0
- package/src/cli/install-success.ts +32 -0
- package/src/cli/marketplace-list.ts +1 -1
- package/src/cli/marketplace-update.ts +9 -1
- package/src/cli/restore-set-aside.ts +70 -0
- package/src/cli/result.ts +17 -2
- package/src/cli/uninstall-data.ts +16 -1
- package/src/cli/update-dependencies.ts +62 -0
- package/src/cli/update-facts.ts +12 -0
- package/src/cli/update-plan.ts +50 -6
- package/src/cli/validate-lists.ts +172 -0
- package/src/cli/validate-run.ts +17 -0
- package/src/entry/mods.ts +1 -0
- package/src/format/add-dir-gate.ts +44 -0
- package/src/format/agent-scalars.ts +7 -8
- package/src/format/engines.ts +139 -0
- package/src/format/hooks-handlers.ts +2 -0
- package/src/format/host-errors.ts +1 -1
- package/src/format/index.ts +13 -1
- package/src/format/locate.ts +1 -1
- package/src/format/manifest-schema.ts +3 -0
- package/src/format/manifest.ts +102 -11
- package/src/format/marketplace/entries.ts +15 -5
- package/src/format/marketplace/entry-display.ts +78 -0
- package/src/format/marketplace/entry-schema.ts +5 -2
- package/src/format/marketplace/index.ts +1 -1
- package/src/format/marketplace/marketplace-name-lists.ts +0 -10
- package/src/format/marketplace/marketplace-names.ts +17 -18
- package/src/format/marketplace/plugin-source.ts +11 -3
- package/src/format/marketplace/settings-source-plugins.ts +3 -2
- package/src/format/marketplace/types.ts +11 -0
- package/src/format/mcp-bundles.ts +5 -5
- package/src/format/mcp-contract.ts +8 -0
- package/src/format/mcp-task-timing.ts +42 -0
- package/src/format/mcp-tool-schema.ts +19 -3
- package/src/format/network.ts +48 -0
- package/src/format/plugin-notes.ts +21 -0
- package/src/format/plugin-settings.ts +17 -13
- package/src/format/server-paths.ts +50 -0
- package/src/format/validate/plugin-fields.ts +16 -0
- package/src/format/validate/plugin-manifest.ts +4 -0
- package/src/format/validate/settings-deprecation.ts +26 -0
- package/src/format/validate/unknown-fields.ts +1 -9
- package/src/foundation/scope-folders.ts +8 -2
- package/src/hooks/assemble.ts +11 -1
- package/src/hooks/core/profiles.ts +1 -1
- package/src/hooks/dispatch.ts +36 -5
- package/src/hooks/handlers/context.ts +4 -1
- package/src/hooks/handlers/remote/http-policy.ts +20 -6
- package/src/hooks/handlers/remote/http.ts +2 -2
- package/src/hooks/handlers/remote/mcp-tool.ts +27 -1
- package/src/hooks/handlers/remote/types.ts +9 -0
- package/src/hooks/input/facts-agents.ts +14 -3
- package/src/hooks/outcome.ts +31 -0
- package/src/hooks/output/caps.ts +4 -3
- package/src/hooks/output/cowork-answers.ts +19 -0
- package/src/hooks/output/merge-simple.ts +5 -2
- package/src/hooks/output/merge.ts +2 -0
- package/src/hooks/output/tool-output.ts +48 -2
- package/src/hooks/output/tool-shapes/shapes-1.ts +3 -0
- package/src/hooks/output/tool-shapes/shapes-3.ts +1 -0
- package/src/hooks/output/tool-shapes/shapes-4.ts +12 -1
- package/src/hooks/output/tool-shapes/shapes-5.ts +9 -1
- package/src/hooks/run-all.ts +1 -0
- package/src/hooks/select/event-catalog.ts +4 -1
- package/src/hooks/select/matcher-values.ts +0 -1
- package/src/hooks/verdict/exit2.ts +6 -1
- package/src/hooks/verdict/interpret.ts +7 -7
- package/src/hooks/verdict/mcp-answer.ts +64 -0
- package/src/hooks/verdict/model-verdict.ts +1 -1
- package/src/hooks/verdict/on-failure.ts +51 -7
- package/src/hooks/verdict/subject.ts +2 -0
- package/src/hooks/verdict/suspect-capture.ts +7 -1
- package/src/host/session-agents.ts +15 -26
- package/src/host/session-bare-repository.ts +38 -0
- package/src/host/session-engine.ts +2 -1
- package/src/host/session-hooks.ts +16 -1
- package/src/host/session-registry.ts +12 -0
- package/src/host/session-skill-expand.ts +11 -29
- package/src/host/session-skill-permission.ts +29 -0
- package/src/host/session-skills.ts +31 -18
- package/src/host/session-types.ts +7 -0
- package/src/host/session.ts +0 -1
- package/src/index.ts +3 -0
- package/src/loading/load-notes.ts +62 -0
- package/src/loading/load-plugin.ts +36 -3
- package/src/loading/manifest-gate.ts +1 -1
- package/src/loading/plugin-folder.ts +4 -1
- package/src/loading/plugin-model.ts +8 -0
- package/src/loading/validate/marketplace-target.ts +34 -6
- package/src/loading/validate/plugin-contents.ts +12 -0
- package/src/loading/walk.ts +3 -3
- package/src/marketplace/dependency-graph.ts +5 -0
- package/src/marketplace/dependency-install-plan.ts +6 -4
- package/src/marketplace/enablement-notes.ts +49 -12
- package/src/marketplace/headless-report.ts +26 -1
- package/src/marketplace/index.ts +1 -1
- package/src/marketplace/install-commands.ts +12 -3
- package/src/marketplace/install-errors.ts +8 -7
- package/src/marketplace/install-lifecycle-index.ts +10 -0
- package/src/marketplace/install-plan.ts +7 -0
- package/src/marketplace/install-plans.ts +4 -5
- package/src/marketplace/managed-take-back.ts +38 -0
- package/src/marketplace/marketplace-fetch-plan.ts +2 -0
- package/src/marketplace/reload-summary.ts +14 -3
- package/src/marketplace/removal.ts +5 -5
- package/src/marketplace/seed-registry.ts +7 -5
- package/src/marketplace/store-layout.ts +17 -4
- package/src/marketplace/types.ts +5 -0
- package/src/mods/api/agent.ts +28 -0
- package/src/mods/api/audio.ts +18 -5
- package/src/mods/api/build.ts +7 -3
- package/src/mods/api/call.ts +7 -0
- package/src/mods/api/command.ts +22 -2
- package/src/mods/api/declared-port-types.ts +155 -0
- package/src/mods/api/engine-create.ts +8 -1
- package/src/mods/api/exec.ts +4 -0
- package/src/mods/api/fs-ports.ts +9 -1
- package/src/mods/api/fs.ts +29 -10
- package/src/mods/api/gate.ts +3 -4
- package/src/mods/api/host-ports.ts +18 -1
- package/src/mods/api/index.ts +9 -3
- package/src/mods/api/mcp.ts +10 -2
- package/src/mods/api/optional-port-types.ts +48 -16
- package/src/mods/api/ports.ts +26 -42
- package/src/mods/api/registries.ts +17 -18
- package/src/mods/api/session-ports.ts +57 -0
- package/src/mods/api/session.ts +30 -5
- package/src/mods/api/theme.ts +132 -33
- package/src/mods/api/vcs.ts +71 -0
- package/src/mods/api/wasm.ts +74 -0
- package/src/mods/chain/api-guard.ts +35 -7
- package/src/mods/chain/context.ts +15 -0
- package/src/mods/chain/default-matcher.ts +69 -0
- package/src/mods/chain/dispatch.ts +19 -1
- package/src/mods/chain/failure.ts +7 -0
- package/src/mods/chain/guarded.ts +8 -2
- package/src/mods/chain/invoke.ts +25 -5
- package/src/mods/chain/validate.ts +2 -1
- package/src/mods/events/agent.ts +7 -3
- package/src/mods/events/declared.ts +51 -0
- package/src/mods/events/index.ts +4 -1
- package/src/mods/events/pinned.ts +23 -0
- package/src/mods/events/session.ts +26 -4
- package/src/mods/events/spec.ts +2 -0
- package/src/mods/events/tool.ts +57 -12
- package/src/mods/events/turn.ts +17 -1
- package/src/mods/load/auto-mode-approval.ts +7 -11
- package/src/mods/load/commands/module-facts.ts +32 -0
- package/src/mods/load/commands/scan-lead.ts +6 -2
- package/src/mods/load/commands/scan-lines.ts +33 -1
- package/src/mods/load/commands/sha256.ts +80 -0
- package/src/mods/load/commands/validate-report.ts +9 -0
- package/src/mods/load/commands/validate.ts +24 -16
- package/src/mods/load/commands/wasm-read.ts +183 -0
- package/src/mods/load/guard-protection.ts +15 -5
- package/src/mods/load/guard-surfaces.ts +2 -0
- package/src/mods/load/guard-tools.ts +45 -0
- package/src/mods/load/guard.ts +21 -8
- package/src/mods/load/host-support.ts +51 -11
- package/src/mods/load/host.ts +24 -4
- package/src/mods/load/in-turn.ts +12 -0
- package/src/mods/load/index.ts +22 -2
- package/src/mods/load/loader.ts +23 -10
- package/src/mods/load/mod-set.ts +9 -18
- package/src/mods/load/order.ts +2 -2
- package/src/mods/load/plugin-dirs.ts +29 -8
- package/src/mods/load/policy.ts +61 -25
- package/src/mods/load/prepare.ts +34 -4
- package/src/mods/load/provides.ts +134 -0
- package/src/mods/load/register-ask.ts +82 -0
- package/src/mods/load/register-call.ts +98 -38
- package/src/mods/load/register-event.ts +104 -0
- package/src/mods/load/scan/client-modules.ts +1 -1
- package/src/mods/load/scan/event-names.ts +2 -0
- package/src/mods/load/scan/found.ts +8 -0
- package/src/mods/load/scan/hosts.ts +40 -0
- package/src/mods/load/scan/index.ts +8 -0
- package/src/mods/load/scan/rules.ts +4 -0
- package/src/mods/load/scan/uses.ts +10 -0
- package/src/mods/load/scan/wasm-paths.ts +35 -0
- package/src/mods/load/tool-flow.ts +16 -2
- package/src/mods/load/wasm-files.ts +77 -0
- package/src/mods/load/wiring.ts +30 -7
- package/src/mods/load/written-mods.ts +42 -27
- package/src/mods/types.ts +10 -9
- package/src/mods/ui/controls/hotkeys.ts +36 -2
- package/src/mods/ui/elements/box.ts +6 -1
- package/src/mods/ui/elements/limits.ts +5 -3
- package/src/mods/ui/elements/progress.ts +19 -0
- package/src/mods/ui/elements/prop-size.ts +41 -0
- package/src/mods/ui/elements/registry.ts +4 -0
- package/src/mods/ui/elements/shader-place.ts +38 -0
- package/src/mods/ui/elements/shader.ts +36 -0
- package/src/mods/ui/elements/svg.ts +4 -0
- package/src/mods/ui/elements/table.ts +2 -0
- package/src/mods/ui/elements/text.ts +9 -0
- package/src/mods/ui/elements/validate.ts +3 -1
- package/src/mods/ui/index.ts +1 -0
- package/src/mods/ui/keyboard/keys.ts +2 -0
- package/src/mods/ui/panes/open.ts +5 -1
- package/src/mods/ui/panes/pane-request.ts +19 -0
- package/src/mods/ui/panes/registry.ts +5 -1
- package/src/mods/ui/rules.ts +4 -0
- package/src/mods/ui/runtime.ts +43 -12
- package/src/mods/ui/sites/agent-row.ts +24 -0
- package/src/mods/ui/sites/backdrop.ts +2 -2
- package/src/mods/ui/sites/band-list.ts +40 -0
- package/src/mods/ui/sites/band-rows.ts +100 -0
- package/src/mods/ui/sites/fold.ts +2 -2
- package/src/mods/ui/sites/registry.ts +33 -17
- package/src/ports/files.ts +1 -1
- package/src/ports/mcp-bundle.ts +3 -2
- package/src/ports/mcp-caller.ts +7 -0
- package/src/protocol/mods-api-names.ts +17 -4
- package/src/protocol/mods-events.ts +14 -5
- package/src/protocol/mods-limits.ts +9 -1
- package/src/protocol/mods-ui-names.ts +63 -8
- package/src/protocol/official.ts +1 -0
- package/src/protocol/tool-names.ts +27 -5
- package/src/rules/bash/wrappers.ts +3 -0
- package/src/rules/decide/auto-dropped.ts +29 -6
- package/src/rules/decide/context.ts +5 -2
- package/src/rules/decide/decide.ts +14 -0
- package/src/rules/decide/facts.ts +3 -3
- package/src/rules/decide/modes.ts +12 -0
- package/src/rules/tools/catalog.ts +13 -3
- package/src/rules/types.ts +6 -0
- package/src/settings/add-dir-layer.ts +34 -0
- package/src/settings/env/code-mode.ts +26 -0
- package/src/settings/env/ignored-variables.ts +7 -0
- package/src/settings/env/index.ts +1 -0
- package/src/settings/general/checks.ts +0 -1
- package/src/settings/general/command-lines.ts +1 -29
- package/src/settings/general/edit-effect.ts +14 -1
- package/src/settings/general/index.ts +5 -14
- package/src/settings/general/keys.ts +0 -2
- package/src/settings/general/plugin-defaults.ts +23 -12
- package/src/settings/general/rows.ts +0 -1
- package/src/settings/hooks/custom-commands.ts +2 -3
- package/src/settings/hooks/http-policy.ts +47 -10
- package/src/settings/hooks/index.ts +6 -1
- package/src/settings/hooks/policy.ts +2 -2
- package/src/settings/hooks/session-gates.ts +18 -12
- package/src/settings/index.ts +1 -0
- package/src/settings/managed/compose.ts +10 -34
- package/src/settings/managed/helper-run.ts +1 -1
- package/src/settings/managed/helper-settings.ts +36 -0
- package/src/settings/managed/index.ts +16 -1
- package/src/settings/managed/login-keys.ts +23 -0
- package/src/settings/managed/ports.ts +8 -1
- package/src/settings/managed/server-cache.ts +69 -0
- package/src/settings/managed/server-groups.ts +63 -0
- package/src/settings/mcp/exclusive.ts +6 -1
- package/src/settings/mcp/scope.ts +10 -0
- package/src/settings/permissions/default-mode.ts +2 -2
- package/src/skills/bare-repository.ts +12 -0
- package/src/skills/execution.ts +1 -1
- package/src/skills/expand-shell.ts +1 -0
- package/src/skills/expand-types.ts +5 -0
- package/src/skills/index.ts +1 -0
- package/src/skills/invocation.ts +4 -3
- package/src/skills/path-gate.ts +25 -3
- package/src/skills/shell-run.ts +24 -1
- package/src/testing/mods/expect-equal.ts +66 -0
- package/src/testing/mods/expect-matchers.ts +127 -0
- package/src/testing/mods/expect.ts +136 -98
- package/src/testing/mods/fake-ports.ts +12 -0
- package/src/testing/mods/kit.ts +6 -2
- package/src/testing/mods/mock.ts +3 -2
- package/src/testing/mods/mount.ts +34 -3
- package/src/testing/mods/stub-matcher.ts +28 -0
- package/src/testing/mods/stubs.ts +22 -7
- package/src/testing/mods/world.ts +4 -2
- package/dist/settings/general/subagent-status-line.d.ts +0 -66
- package/dist/settings/general/subagent-status-line.d.ts.map +0 -1
- package/dist/settings/general/subagent-status-line.js +0 -58
- package/dist/settings/general/subagent-status-line.js.map +0 -1
- package/src/settings/general/subagent-status-line.ts +0 -121
package/src/cli/install-plan.ts
CHANGED
|
@@ -3,30 +3,21 @@ import { installClosure, type InstallStep } from '../marketplace/dependency-inst
|
|
|
3
3
|
import type { InstallScope } from '../marketplace/install-scopes.ts';
|
|
4
4
|
import type { RegisteredMarketplace } from '../format/marketplace/marketplace-names.ts';
|
|
5
5
|
import type { Sha256 } from '../ports/marketplace.ts';
|
|
6
|
-
import {
|
|
7
|
-
decideAcceptance,
|
|
8
|
-
type CommandAcceptance,
|
|
9
|
-
type DisplayedCommand,
|
|
10
|
-
type ShownCommand,
|
|
11
|
-
} from './command-acceptance.ts';
|
|
6
|
+
import { stopAtCommand } from './install-command-step.ts';
|
|
12
7
|
import type { SavedValues } from './configure-plan.ts';
|
|
8
|
+
import { applyConfig, type ConfigOutcome, type InstallOptions } from './install-config.ts';
|
|
9
|
+
import { closureRefusal, configRefusal, invalidEntryRefusal } from './install-refusals.ts';
|
|
10
|
+
import { invalidEntryMessage } from '../format/marketplace/entry-display.ts';
|
|
13
11
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from './install-config.ts';
|
|
20
|
-
import { closureRefusal, configRefusal } from './install-refusals.ts';
|
|
12
|
+
installEngineCheck,
|
|
13
|
+
type InstallEngineCheck,
|
|
14
|
+
type InstallEngineFacts,
|
|
15
|
+
} from './install-engines.ts';
|
|
16
|
+
import { successLines } from './install-success.ts';
|
|
21
17
|
import { recordsRefusal } from './records-refusal.ts';
|
|
22
18
|
import type { PendingInstall } from './install-start.ts';
|
|
23
|
-
import { beforeLines,
|
|
24
|
-
import {
|
|
25
|
-
commandFailed,
|
|
26
|
-
commandSucceeded,
|
|
27
|
-
type CommandOutput,
|
|
28
|
-
type ResultFields,
|
|
29
|
-
} from './result.ts';
|
|
19
|
+
import { beforeLines, locate, marketplaceRefusal } from './install-lookup.ts';
|
|
20
|
+
import { commandSucceeded, type CommandOutput, type ResultFields } from './result.ts';
|
|
30
21
|
|
|
31
22
|
/**
|
|
32
23
|
* The second half of `claude plugin install <plugin>` (plugins/cli-reference.md, "plugin install",
|
|
@@ -71,6 +62,11 @@ export interface InstallFound {
|
|
|
71
62
|
* cannot read, or a format it does not know; the command then refuses (§16.6.2 item 1).
|
|
72
63
|
*/
|
|
73
64
|
readonly unreadableRecords?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The `engines` of the version to install and the running client's version (spec §2.4): absent,
|
|
67
|
+
* the range is not checked.
|
|
68
|
+
*/
|
|
69
|
+
readonly engines?: InstallEngineFacts;
|
|
74
70
|
}
|
|
75
71
|
|
|
76
72
|
/** What the host carries out for a successful install. */
|
|
@@ -110,30 +106,6 @@ const ended = (output: CommandOutput, before: readonly string[]): InstallRun =>
|
|
|
110
106
|
|
|
111
107
|
const fieldsOf = (id: string, scope: InstallScope): ResultFields => ({ pluginId: id, scope });
|
|
112
108
|
|
|
113
|
-
const shownFields = (shown: ShownCommand, id: string, scope: InstallScope): ResultFields => ({
|
|
114
|
-
...fieldsOf(id, scope),
|
|
115
|
-
shownCommand: { ...shown },
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
/** A run that printed the command and did not run it. */
|
|
119
|
-
function notRun(
|
|
120
|
-
acceptance: Extract<CommandAcceptance, { ask: false }>,
|
|
121
|
-
context: {
|
|
122
|
-
readonly id: string;
|
|
123
|
-
readonly scope: InstallScope;
|
|
124
|
-
readonly before: readonly string[];
|
|
125
|
-
readonly command: string;
|
|
126
|
-
},
|
|
127
|
-
): InstallRun {
|
|
128
|
-
return ended(
|
|
129
|
-
commandFailed('install', acceptance.line, {
|
|
130
|
-
failureCode: 'command_not_accepted',
|
|
131
|
-
fields: shownFields(acceptance.shownCommand, context.id, context.scope),
|
|
132
|
-
}),
|
|
133
|
-
[...context.before, context.command],
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
109
|
function alreadyInstalled(
|
|
138
110
|
id: string,
|
|
139
111
|
pending: PendingInstall,
|
|
@@ -166,77 +138,20 @@ function alreadyInstalled(
|
|
|
166
138
|
const isInstalledAt = (id: string, scope: InstallScope, graph: GraphFacts): boolean =>
|
|
167
139
|
graph.installed.some((record) => record.id === id && record.scope === scope);
|
|
168
140
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
readonly
|
|
172
|
-
readonly steps: readonly InstallStep[];
|
|
173
|
-
readonly config: ConfigOutcome;
|
|
174
|
-
readonly options: InstallOptions;
|
|
175
|
-
readonly leftOut: readonly string[];
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/** "The success message lists them": ` (+ N dependencies: <ids>)` (wording: spec/judgments.md). */
|
|
179
|
-
const dependencyList = (steps: readonly InstallStep[]): string =>
|
|
180
|
-
steps.length === 0
|
|
181
|
-
? ''
|
|
182
|
-
: ` (+ ${steps.length} dependencies: ${steps.map((step) => step.id).join(', ')})`;
|
|
183
|
-
|
|
184
|
-
/** The success lines: the install, what `--config` did not apply, the options still unset, dependencies left to the user. */
|
|
185
|
-
function successLines(done: Succeeded): string {
|
|
186
|
-
const unset = notYetSetLine(done.id, done.config);
|
|
187
|
-
return [
|
|
188
|
-
`Successfully installed plugin: ${done.id} (scope: ${done.scope})${dependencyList(done.steps)}`,
|
|
189
|
-
...notAppliedLines(done.config, done.options),
|
|
190
|
-
...(unset === undefined ? [] : [unset]),
|
|
191
|
-
...done.leftOut,
|
|
192
|
-
].join('\n');
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
const acceptanceOf = (
|
|
196
|
-
shown: DisplayedCommand,
|
|
197
|
-
pending: PendingInstall,
|
|
198
|
-
found: InstallFound,
|
|
199
|
-
sha256: Sha256,
|
|
200
|
-
): Promise<CommandAcceptance> =>
|
|
201
|
-
decideAcceptance(
|
|
202
|
-
{
|
|
203
|
-
shown,
|
|
204
|
-
catalog: found.catalog,
|
|
205
|
-
flags: {
|
|
206
|
-
...(pending.yes ? { yes: true } : {}),
|
|
207
|
-
...(pending.acceptCommand === undefined ? {} : { acceptCommand: pending.acceptCommand }),
|
|
208
|
-
},
|
|
209
|
-
session: pending.session,
|
|
210
|
-
tty: pending.tty,
|
|
211
|
-
...(found.answer === undefined ? {} : { answer: found.answer }),
|
|
212
|
-
},
|
|
213
|
-
sha256,
|
|
214
|
-
);
|
|
215
|
-
|
|
216
|
-
interface Shown {
|
|
217
|
-
readonly id: string;
|
|
218
|
-
readonly entry: CatalogPlugin;
|
|
219
|
-
readonly before: readonly string[];
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/** The run that ends the install at its command: the question, or the refusal. `undefined` when the command runs or the entry has none. */
|
|
223
|
-
async function stopAtCommand(
|
|
224
|
-
at: Shown,
|
|
141
|
+
/** The entry's validity, the `engines` range and the `--config` values, checked before the closure. */
|
|
142
|
+
function checkedInput(
|
|
143
|
+
{ id, entry }: { readonly id: string; readonly entry: CatalogPlugin },
|
|
225
144
|
pending: PendingInstall,
|
|
226
145
|
found: InstallFound,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
if (
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
scope: pending.scope,
|
|
237
|
-
before: at.before,
|
|
238
|
-
command: shown.command,
|
|
239
|
-
});
|
|
146
|
+
):
|
|
147
|
+
| { readonly refusal: CommandOutput }
|
|
148
|
+
| { readonly engine: InstallEngineCheck; readonly config: ConfigOutcome } {
|
|
149
|
+
const invalid = invalidEntryMessage(entry);
|
|
150
|
+
if (invalid !== undefined) return { refusal: invalidEntryRefusal(invalid) };
|
|
151
|
+
const engine = installEngineCheck(id, found.engines);
|
|
152
|
+
if (engine.refusal !== undefined) return { refusal: engine.refusal };
|
|
153
|
+
const config = applyConfig(pending.given, found.options);
|
|
154
|
+
return config.refused.length > 0 ? { refusal: configRefusal(config) } : { engine, config };
|
|
240
155
|
}
|
|
241
156
|
|
|
242
157
|
/** What `claude plugin install` prints and does, once the host added the marketplace and refreshed. */
|
|
@@ -257,8 +172,9 @@ export async function planInstall(
|
|
|
257
172
|
if (isInstalledAt(id, scope, found.graph) && found.installedCopyPresent !== false) {
|
|
258
173
|
return alreadyInstalled(id, pending, found, before);
|
|
259
174
|
}
|
|
260
|
-
const
|
|
261
|
-
if (
|
|
175
|
+
const checked = checkedInput({ id, entry }, pending, found);
|
|
176
|
+
if ('refusal' in checked) return ended(checked.refusal, before);
|
|
177
|
+
const { engine, config } = checked;
|
|
262
178
|
const closure = installClosure({ root: id, scope, operation: 'install' }, found.graph);
|
|
263
179
|
if (closure.needs.length > 0) return { before, needs: closure.needs };
|
|
264
180
|
if (!closure.ok) {
|
|
@@ -277,7 +193,15 @@ export async function planInstall(
|
|
|
277
193
|
before,
|
|
278
194
|
output: commandSucceeded(
|
|
279
195
|
'install',
|
|
280
|
-
successLines({
|
|
196
|
+
successLines({
|
|
197
|
+
id,
|
|
198
|
+
scope,
|
|
199
|
+
steps: closure.steps,
|
|
200
|
+
config,
|
|
201
|
+
options: found.options,
|
|
202
|
+
leftOut,
|
|
203
|
+
engineNote: engine.suffix,
|
|
204
|
+
}),
|
|
281
205
|
{
|
|
282
206
|
fields: fieldsOf(id, scope),
|
|
283
207
|
},
|
|
@@ -15,3 +15,10 @@ export function closureRefusal(id: string, messages: readonly string[]): Command
|
|
|
15
15
|
failureCode: 'dependency_error',
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* An entry whose display field is malformed (spec §15.5.3): its message as the spec quotes it, with
|
|
21
|
+
* `failureCode` `invalid_entry` (the code is the kit's, spec/judgments.md, J15.15).
|
|
22
|
+
*/
|
|
23
|
+
export const invalidEntryRefusal = (message: string): CommandOutput =>
|
|
24
|
+
commandFailed('install', message, { failureCode: 'invalid_entry' });
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { InstallStep } from '../marketplace/dependency-install-plan.ts';
|
|
2
|
+
import type { InstallScope } from '../marketplace/install-scopes.ts';
|
|
3
|
+
import {
|
|
4
|
+
notAppliedLines,
|
|
5
|
+
notYetSetLine,
|
|
6
|
+
type ConfigOutcome,
|
|
7
|
+
type InstallOptions,
|
|
8
|
+
} from './install-config.ts';
|
|
9
|
+
import { dependencyList } from './update-dependencies.ts';
|
|
10
|
+
|
|
11
|
+
/** What a successful `claude plugin install` reports on. */
|
|
12
|
+
export interface Succeeded {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly scope: InstallScope;
|
|
15
|
+
readonly steps: readonly InstallStep[];
|
|
16
|
+
readonly config: ConfigOutcome;
|
|
17
|
+
readonly options: InstallOptions;
|
|
18
|
+
readonly leftOut: readonly string[];
|
|
19
|
+
/** The `engines` note of a local-folder plugin outside its range (§2.4); empty otherwise. */
|
|
20
|
+
readonly engineNote: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** The success lines: the install, what `--config` did not apply, the options still unset, dependencies left to the user. */
|
|
24
|
+
export function successLines(done: Succeeded): string {
|
|
25
|
+
const unset = notYetSetLine(done.id, done.config);
|
|
26
|
+
return [
|
|
27
|
+
`Successfully installed plugin: ${done.id} (scope: ${done.scope})${done.engineNote}${dependencyList(done.steps)}`,
|
|
28
|
+
...notAppliedLines(done.config, done.options),
|
|
29
|
+
...(unset === undefined ? [] : [unset]),
|
|
30
|
+
...done.leftOut,
|
|
31
|
+
].join('\n');
|
|
32
|
+
}
|
|
@@ -81,7 +81,7 @@ const SOURCES: { readonly [K in ListedSource['kind']]: SourceRow<K> } = {
|
|
|
81
81
|
},
|
|
82
82
|
directory: {
|
|
83
83
|
fields: (source) => ({ source: 'directory', path: source.path }),
|
|
84
|
-
describe: (source) => `
|
|
84
|
+
describe: (source) => `Folder (${source.path})`,
|
|
85
85
|
},
|
|
86
86
|
file: {
|
|
87
87
|
fields: (source) => ({ source: 'file', path: source.path }),
|
|
@@ -28,7 +28,7 @@ export interface UpdateArguments {
|
|
|
28
28
|
|
|
29
29
|
export interface RegisteredForUpdate {
|
|
30
30
|
readonly name: string;
|
|
31
|
-
/** The branch or
|
|
31
|
+
/** The branch, tag or full commit SHA it was added with. */
|
|
32
32
|
readonly ref?: string;
|
|
33
33
|
/** `CLAUDE_CODE_PLUGIN_SEED_DIR` supplied it: the directory; it is read-only. */
|
|
34
34
|
readonly seeded?: string;
|
|
@@ -42,8 +42,13 @@ export interface RefreshTarget {
|
|
|
42
42
|
readonly name: string;
|
|
43
43
|
/** "Updates to the latest commit of that ref, not the repository's default branch." */
|
|
44
44
|
readonly ref?: string;
|
|
45
|
+
/** `ref` is a full commit SHA: the marketplace stays on that commit (spec §15.7, §17.14.4). */
|
|
46
|
+
readonly pinnedCommit?: true;
|
|
45
47
|
}
|
|
46
48
|
|
|
49
|
+
/** The full lower-case SHA of a commit (spec §15.7 `ref`, 2.1.324 or later). */
|
|
50
|
+
const FULL_SHA = /^[0-9a-f]{40}$/;
|
|
51
|
+
|
|
47
52
|
export interface MarketplaceUpdatePlan {
|
|
48
53
|
readonly output: CommandOutput;
|
|
49
54
|
readonly refresh: readonly RefreshTarget[];
|
|
@@ -60,6 +65,9 @@ const nothing = (output: CommandOutput): MarketplaceUpdatePlan => ({
|
|
|
60
65
|
const targetOf = (marketplace: RegisteredForUpdate): RefreshTarget => ({
|
|
61
66
|
name: marketplace.name,
|
|
62
67
|
...(marketplace.ref === undefined ? {} : { ref: marketplace.ref }),
|
|
68
|
+
...(marketplace.ref !== undefined && FULL_SHA.test(marketplace.ref)
|
|
69
|
+
? { pinnedCommit: true as const }
|
|
70
|
+
: {}),
|
|
63
71
|
});
|
|
64
72
|
|
|
65
73
|
const plural = (count: number): string =>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { commandSucceeded, usageError, type CommandOutput } from './result.ts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `claude plugin restore-set-aside <plugin>@<marketplace> [--discard]` as a plan (spec §17.10.1):
|
|
5
|
+
* when managed settings replaced a marketplace the user added, the client set aside the `userConfig`
|
|
6
|
+
* options and secrets saved under that marketplace's ids; this command restores them under the id,
|
|
7
|
+
* or deletes them with `--discard`. Only the full id the `claude plugin list` note gives is matched,
|
|
8
|
+
* so a bare name never has anything set aside. Pure: the host knows which ids hold set-aside values
|
|
9
|
+
* and carries out `action`.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export interface RestoreSetAsideArguments {
|
|
13
|
+
/** The full `name@marketplace` id. */
|
|
14
|
+
readonly plugin: string;
|
|
15
|
+
/** `--discard`: delete the set-aside values instead of restoring them. */
|
|
16
|
+
readonly discard?: boolean;
|
|
17
|
+
/** `--json`, which the command does not take (Judgment J17.34). */
|
|
18
|
+
readonly json?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface RestoreSetAsideFacts {
|
|
22
|
+
/** The ids that hold set-aside options or secrets. */
|
|
23
|
+
readonly setAside: readonly string[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** What the host does with the set-aside values of `id`. */
|
|
27
|
+
export interface SetAsideAction {
|
|
28
|
+
readonly kind: 'restore' | 'discard';
|
|
29
|
+
readonly id: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface RestoreSetAsidePlan {
|
|
33
|
+
readonly output: CommandOutput;
|
|
34
|
+
/** Absent when nothing changes. */
|
|
35
|
+
readonly action?: SetAsideAction;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const LINES: { readonly [K in SetAsideAction['kind']]: (id: string) => string } = {
|
|
39
|
+
restore: (id) => `Restored the options and secrets set aside for ${id}.`,
|
|
40
|
+
discard: (id) => `Discarded the options and secrets set aside for ${id}.`,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export function planRestoreSetAside(
|
|
44
|
+
args: RestoreSetAsideArguments,
|
|
45
|
+
facts: RestoreSetAsideFacts,
|
|
46
|
+
): RestoreSetAsidePlan {
|
|
47
|
+
if (args.json === true) return { output: usageError("error: unknown option '--json'") };
|
|
48
|
+
if (!facts.setAside.includes(args.plugin)) {
|
|
49
|
+
return {
|
|
50
|
+
output: commandSucceeded(
|
|
51
|
+
'restore-set-aside',
|
|
52
|
+
`No options or secrets are set aside for ${args.plugin}.`,
|
|
53
|
+
),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
const action: SetAsideAction = {
|
|
57
|
+
kind: args.discard === true ? 'discard' : 'restore',
|
|
58
|
+
id: args.plugin,
|
|
59
|
+
};
|
|
60
|
+
return { output: commandSucceeded('restore-set-aside', LINES[action.kind](action.id)), action };
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The values an id holds after a restore: a value it already holds for an option is kept and the
|
|
65
|
+
* set-aside one dropped, which §17.10.1 item 1 allows.
|
|
66
|
+
*/
|
|
67
|
+
export const restoredValues = <V>(
|
|
68
|
+
current: Readonly<Record<string, V>>,
|
|
69
|
+
setAside: Readonly<Record<string, V>>,
|
|
70
|
+
): Readonly<Record<string, V>> => ({ ...setAside, ...current });
|
package/src/cli/result.ts
CHANGED
|
@@ -52,8 +52,23 @@ export interface RenderOptions {
|
|
|
52
52
|
readonly json: boolean;
|
|
53
53
|
/** What the command printed before its result (a marketplace-declared command, for one). */
|
|
54
54
|
readonly before?: readonly string[];
|
|
55
|
+
/**
|
|
56
|
+
* Whether stdout and stderr are both a terminal. Then a `Successfully <verb> …` line, the result's
|
|
57
|
+
* and any printed before it, begins with the capitalised verb instead (spec §17.2.1, J17.33);
|
|
58
|
+
* unset, the output is taken as not a terminal. The `--json` message keeps `Successfully`.
|
|
59
|
+
*/
|
|
60
|
+
readonly terminal?: boolean;
|
|
55
61
|
}
|
|
56
62
|
|
|
63
|
+
const SUCCESSFULLY = /^Successfully ([a-z])/;
|
|
64
|
+
|
|
65
|
+
/** `Successfully installed plugin: …` as a terminal shows it: `Installed plugin: …`. */
|
|
66
|
+
const terminalLine = (line: string): string =>
|
|
67
|
+
line.replace(SUCCESSFULLY, (_, first: string) => first.toUpperCase());
|
|
68
|
+
|
|
69
|
+
const shown = (lines: readonly string[], options: RenderOptions): readonly string[] =>
|
|
70
|
+
options.terminal === true ? lines.map(terminalLine) : lines;
|
|
71
|
+
|
|
57
72
|
interface Extras {
|
|
58
73
|
readonly failureCode?: string;
|
|
59
74
|
readonly fields?: ResultFields;
|
|
@@ -139,7 +154,7 @@ const HUMAN_STREAM: { readonly [O in CommandOutcome]: 'stdout' | 'stderr' } = {
|
|
|
139
154
|
|
|
140
155
|
/** A result's human line goes to stdout on success and stderr on failure; with `--json` both are the last stdout line. */
|
|
141
156
|
function renderResult(found: PluginCommandResult, options: RenderOptions): Rendered {
|
|
142
|
-
const before = options.before ?? [];
|
|
157
|
+
const before = shown(options.before ?? [], options);
|
|
143
158
|
const exitCode = EXIT[found.outcome];
|
|
144
159
|
if (options.json) {
|
|
145
160
|
const line = toJsonValue(resultObject(found));
|
|
@@ -147,7 +162,7 @@ function renderResult(found: PluginCommandResult, options: RenderOptions): Rende
|
|
|
147
162
|
}
|
|
148
163
|
const onStderr = HUMAN_STREAM[found.outcome] === 'stderr';
|
|
149
164
|
return {
|
|
150
|
-
stdout: onStderr ? [...before] : [...before, found.message],
|
|
165
|
+
stdout: onStderr ? [...before] : [...before, ...shown([found.message], options)],
|
|
151
166
|
stderr: onStderr ? [found.message] : [],
|
|
152
167
|
exitCode,
|
|
153
168
|
};
|
|
@@ -11,7 +11,9 @@ import type { InstallScope } from '../marketplace/install-scopes.ts';
|
|
|
11
11
|
* folder on a case-insensitive file system, so there folders are compared without regard to case,
|
|
12
12
|
* J3.19); and installed plugins that cannot be read
|
|
13
13
|
* back after the removal keep the options, the secrets and the directory ("the plugin may still be
|
|
14
|
-
* installed at another scope").
|
|
14
|
+
* installed at another scope"). With the options go the files extracted into `mcpb/` from the
|
|
15
|
+
* plugin's MCP bundles, unless another plugin uses an identical bundle (spec §17.5.1). Pure over
|
|
16
|
+
* what the host read back.
|
|
15
17
|
*/
|
|
16
18
|
|
|
17
19
|
/** Why the data directory stayed. `other-scope` is the judgment that a plugin still installed somewhere keeps everything. */
|
|
@@ -37,6 +39,11 @@ export interface RetentionFacts {
|
|
|
37
39
|
* cannot tell keeps a folder rather than deleting one another plugin may use.
|
|
38
40
|
*/
|
|
39
41
|
readonly caseInsensitiveFileSystem?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The bundles extracted into `mcpb/` under the plugins root (spec §2.9, §16.6), by the host's key
|
|
44
|
+
* for an identical bundle: those of this plugin, and those another installed plugin uses.
|
|
45
|
+
*/
|
|
46
|
+
readonly bundles?: { readonly own: readonly string[]; readonly usedByOthers: readonly string[] };
|
|
40
47
|
}
|
|
41
48
|
|
|
42
49
|
export interface Retention {
|
|
@@ -49,8 +56,14 @@ export interface Retention {
|
|
|
49
56
|
readonly dataKeptBecause?: DataKeptBecause;
|
|
50
57
|
/** The folder name under `~/.claude/plugins/data/`. */
|
|
51
58
|
readonly dataFolder: string;
|
|
59
|
+
/** The extracted bundles to delete with the options: never one another plugin uses (spec §17.5.1). */
|
|
60
|
+
readonly mcpbDelete: readonly string[];
|
|
52
61
|
}
|
|
53
62
|
|
|
63
|
+
/** With the options go the plugin's extracted bundles, except one an identical bundle of another plugin needs. */
|
|
64
|
+
const mcpbToDelete = (facts: RetentionFacts): readonly string[] =>
|
|
65
|
+
(facts.bundles?.own ?? []).filter((key) => !facts.bundles?.usedByOthers.includes(key));
|
|
66
|
+
|
|
54
67
|
const folded = (id: string, fold: boolean): string =>
|
|
55
68
|
fold ? pluginDataId(id).toLowerCase() : pluginDataId(id);
|
|
56
69
|
|
|
@@ -80,6 +93,7 @@ export function uninstallRetention(facts: RetentionFacts): Retention {
|
|
|
80
93
|
savedKept: SAVED_KEPT_UNREADABLE,
|
|
81
94
|
dataKeptBecause: 'install_records_unreadable',
|
|
82
95
|
dataFolder,
|
|
96
|
+
mcpbDelete: [],
|
|
83
97
|
};
|
|
84
98
|
}
|
|
85
99
|
const because = keptBecause(facts, facts.remaining);
|
|
@@ -89,6 +103,7 @@ export function uninstallRetention(facts: RetentionFacts): Retention {
|
|
|
89
103
|
data: because === undefined ? 'delete' : 'keep',
|
|
90
104
|
...(because === undefined ? {} : { dataKeptBecause: because }),
|
|
91
105
|
dataFolder,
|
|
106
|
+
mcpbDelete: savedStays ? [] : mcpbToDelete(facts),
|
|
92
107
|
};
|
|
93
108
|
}
|
|
94
109
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { GraphFacts } from '../marketplace/dependency-graph.ts';
|
|
2
|
+
import { installClosure, type InstallStep } from '../marketplace/dependency-install-plan.ts';
|
|
3
|
+
import type { InstallScope } from '../marketplace/install-scopes.ts';
|
|
4
|
+
import type { Environment } from '../ports/environment.ts';
|
|
5
|
+
import { DISABLE_NONESSENTIAL_TRAFFIC, isSet } from '../updates/env-flags.ts';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The dependencies `claude plugin update` installs (spec §16.24.1 item 4, §17.7): a declared
|
|
9
|
+
* dependency the plugin is missing is installed under the limits of an install, except while
|
|
10
|
+
* `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` is set; the ones left unmet are listed after `still
|
|
11
|
+
* unresolved:`, with why none was installed when traffic is off (§16.30). The opening of that line
|
|
12
|
+
* and the `(+ N dependencies: …)` list are the kit's (spec/judgments.md).
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/** "The success message lists them": ` (+ N dependencies: <ids>)` (wording: spec/judgments.md). */
|
|
16
|
+
export const dependencyList = (steps: readonly InstallStep[]): string =>
|
|
17
|
+
steps.length === 0
|
|
18
|
+
? ''
|
|
19
|
+
: ` (+ ${steps.length} dependencies: ${steps.map((step) => step.id).join(', ')})`;
|
|
20
|
+
|
|
21
|
+
const NO_TRAFFIC_LINE = 'Dependencies are not installed while non-essential traffic is turned off.';
|
|
22
|
+
|
|
23
|
+
/** What an update does about the plugin's dependencies. */
|
|
24
|
+
type UpdateDependencies =
|
|
25
|
+
/** The catalog plugins to fetch before planning again (as `InstallPlan.needs`). */
|
|
26
|
+
| { readonly needs: readonly string[] }
|
|
27
|
+
| {
|
|
28
|
+
/** The dependencies to install with the update; empty when none is. */
|
|
29
|
+
readonly steps: readonly InstallStep[];
|
|
30
|
+
/** The lines added after the success line. */
|
|
31
|
+
readonly lines: readonly string[];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const NOTHING: UpdateDependencies = { steps: [], lines: [] };
|
|
35
|
+
|
|
36
|
+
const idOfIssue = (path: string): string => path.replace(/^dependencies\./, '');
|
|
37
|
+
|
|
38
|
+
const unresolvedLine = (ids: readonly string[]): readonly string[] =>
|
|
39
|
+
ids.length === 0 ? [] : [`Dependencies still unresolved: ${[...new Set(ids)].join(', ')}`];
|
|
40
|
+
|
|
41
|
+
/** The dependencies of `id` the update installs, or names as unresolved; nothing without `graph`. */
|
|
42
|
+
export function updateDependencies(
|
|
43
|
+
target: { readonly id: string; readonly scope: InstallScope },
|
|
44
|
+
graph: GraphFacts | undefined,
|
|
45
|
+
env: Environment,
|
|
46
|
+
): UpdateDependencies {
|
|
47
|
+
if (graph === undefined || graph.catalog[target.id] === undefined) return NOTHING;
|
|
48
|
+
const closure = installClosure(
|
|
49
|
+
{ root: target.id, scope: target.scope, operation: 'update' },
|
|
50
|
+
graph,
|
|
51
|
+
);
|
|
52
|
+
const left = closure.leftOut.map((one) => one.id);
|
|
53
|
+
if (isSet(env, DISABLE_NONESSENTIAL_TRAFFIC)) {
|
|
54
|
+
const unmet = [...closure.steps.map((step) => step.id), ...left];
|
|
55
|
+
return unmet.length === 0
|
|
56
|
+
? NOTHING
|
|
57
|
+
: { steps: [], lines: [...unresolvedLine(unmet), NO_TRAFFIC_LINE] };
|
|
58
|
+
}
|
|
59
|
+
if (closure.needs.length > 0) return { needs: closure.needs };
|
|
60
|
+
const failed = closure.issues.map((issue) => idOfIssue(issue.path));
|
|
61
|
+
return { steps: closure.steps, lines: unresolvedLine([...failed, ...left]) };
|
|
62
|
+
}
|
package/src/cli/update-facts.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { InstallEngineFacts } from './install-engines.ts';
|
|
2
|
+
import type { GraphFacts } from '../marketplace/dependency-graph.ts';
|
|
1
3
|
import type { InstallScope } from '../marketplace/install-scopes.ts';
|
|
2
4
|
import type { UpdateSubject } from '../marketplace/update-detection.ts';
|
|
3
5
|
import type { Environment } from '../ports/environment.ts';
|
|
@@ -33,6 +35,11 @@ export interface UpdatableInstall {
|
|
|
33
35
|
/** The entry sets a `headersHelper`: every update shows it. */
|
|
34
36
|
readonly headersHelper?: string;
|
|
35
37
|
readonly dependencyInstall: DependencyInstallState;
|
|
38
|
+
/**
|
|
39
|
+
* The `engines` of the newer version and the client's version (spec §2.4): a newer version whose
|
|
40
|
+
* range excludes the client is not updated to. Absent, the range is not checked.
|
|
41
|
+
*/
|
|
42
|
+
readonly engines?: InstallEngineFacts;
|
|
36
43
|
}
|
|
37
44
|
|
|
38
45
|
export interface PluginUpdateFacts {
|
|
@@ -50,4 +57,9 @@ export interface PluginUpdateFacts {
|
|
|
50
57
|
* cannot read, or a format it does not know; the command then refuses (§16.6.2 item 1).
|
|
51
58
|
*/
|
|
52
59
|
readonly unreadableRecords?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The installed plugins and the catalogs after the refresh: the update installs the declared
|
|
62
|
+
* dependencies the plugin is missing (§16.24.1 item 4). Absent, it plans none.
|
|
63
|
+
*/
|
|
64
|
+
readonly graph?: GraphFacts;
|
|
53
65
|
}
|
package/src/cli/update-plan.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { installEngineCheck } from './install-engines.ts';
|
|
1
2
|
import { checkForUpdate, upToDateMessage } from '../marketplace/update-detection.ts';
|
|
2
3
|
import { UNKNOWN_VERSION } from '../marketplace/version-resolution.ts';
|
|
3
4
|
import type { InstallScope } from '../marketplace/install-scopes.ts';
|
|
4
5
|
import type { Sha256 } from '../ports/marketplace.ts';
|
|
6
|
+
import type { InstallStep } from '../marketplace/dependency-install-plan.ts';
|
|
5
7
|
import { DISABLE_NONESSENTIAL_TRAFFIC, isSet } from '../updates/env-flags.ts';
|
|
6
8
|
import {
|
|
7
9
|
decideAcceptance,
|
|
@@ -20,6 +22,7 @@ import { recordsRefusal } from './records-refusal.ts';
|
|
|
20
22
|
import { chooseScope } from './scope.ts';
|
|
21
23
|
import { commandToAccept, failureLine, locate } from './update-locate.ts';
|
|
22
24
|
import type { UpdatableInstall, PluginUpdateArguments, PluginUpdateFacts } from './update-facts.ts';
|
|
25
|
+
import { dependencyList, updateDependencies } from './update-dependencies.ts';
|
|
23
26
|
|
|
24
27
|
/**
|
|
25
28
|
* `claude plugin update <plugin>` as a plan (plugins/cli-reference.md, "plugin update"): "Claude Code
|
|
@@ -51,16 +54,22 @@ export interface RetryRequest {
|
|
|
51
54
|
readonly argument: string;
|
|
52
55
|
readonly latest: string;
|
|
53
56
|
readonly fields: ResultFields;
|
|
57
|
+
/** The missing dependencies the update installs with it (§16.24.1). */
|
|
58
|
+
readonly dependencies?: readonly InstallStep[];
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
export type UpdateRun =
|
|
57
62
|
/** The host prints `before`, asks `prompt` and calls again with the answer. */
|
|
58
63
|
| { readonly before: readonly string[]; readonly prompt: string }
|
|
59
64
|
| { readonly before: readonly string[]; readonly retry: RetryRequest }
|
|
65
|
+
/** The dependency plan `needs` catalog plugins fetched: the host fills them in `graph` and calls again. */
|
|
66
|
+
| { readonly before: readonly string[]; readonly needs: readonly string[] }
|
|
60
67
|
| {
|
|
61
68
|
readonly before: readonly string[];
|
|
62
69
|
readonly output: CommandOutput;
|
|
63
70
|
readonly update?: UpdateEffects;
|
|
71
|
+
/** The missing dependencies to install with the update, dependencies first (§16.24.1 item 4). */
|
|
72
|
+
readonly dependencies?: readonly InstallStep[];
|
|
64
73
|
};
|
|
65
74
|
|
|
66
75
|
const ended = (output: CommandOutput, before: readonly string[] = []): UpdateRun => ({
|
|
@@ -80,27 +89,54 @@ function atLatest(
|
|
|
80
89
|
args: PluginUpdateArguments,
|
|
81
90
|
facts: PluginUpdateFacts,
|
|
82
91
|
): UpdateRun {
|
|
92
|
+
const deps = updateDependencies(install, facts.graph, facts.env);
|
|
93
|
+
if ('needs' in deps) return { before: checking(args.plugin), needs: deps.needs };
|
|
83
94
|
const version = install.installedVersion ?? UNKNOWN_VERSION;
|
|
84
|
-
const latest = upToDateMessage(nameOf(install.id), version);
|
|
95
|
+
const latest = withDependencies(upToDateMessage(nameOf(install.id), version), deps);
|
|
85
96
|
const fields = fieldsOf(install.id, install.scope);
|
|
97
|
+
const installing = stepsOf(deps.steps);
|
|
86
98
|
const retries =
|
|
87
99
|
install.dependencyInstall === 'unfinished' && !isSet(facts.env, DISABLE_NONESSENTIAL_TRAFFIC);
|
|
88
100
|
if (!retries) {
|
|
89
|
-
return
|
|
101
|
+
return {
|
|
102
|
+
...ended(commandSucceeded('update', latest, { fields }), checking(args.plugin)),
|
|
103
|
+
...installing,
|
|
104
|
+
};
|
|
90
105
|
}
|
|
91
106
|
return {
|
|
92
107
|
before: checking(args.plugin),
|
|
93
|
-
retry: {
|
|
108
|
+
retry: {
|
|
109
|
+
id: install.id,
|
|
110
|
+
scope: install.scope,
|
|
111
|
+
argument: args.plugin,
|
|
112
|
+
latest,
|
|
113
|
+
fields,
|
|
114
|
+
...installing,
|
|
115
|
+
},
|
|
94
116
|
};
|
|
95
117
|
}
|
|
96
118
|
|
|
119
|
+
/** The success line with the dependencies listed, then the lines about the unresolved ones. */
|
|
120
|
+
const withDependencies = (
|
|
121
|
+
line: string,
|
|
122
|
+
deps: { readonly steps: readonly InstallStep[]; readonly lines: readonly string[] },
|
|
123
|
+
): string => [`${line}${dependencyList(deps.steps)}`, ...deps.lines].join('\n');
|
|
124
|
+
|
|
125
|
+
const stepsOf = (
|
|
126
|
+
steps: readonly InstallStep[],
|
|
127
|
+
): { readonly dependencies?: readonly InstallStep[] } =>
|
|
128
|
+
steps.length === 0 ? {} : { dependencies: steps };
|
|
129
|
+
|
|
97
130
|
type RetryOutcome = { readonly ok: true } | { readonly ok: false; readonly reason: string };
|
|
98
131
|
|
|
99
132
|
/** The result once the host has retried the dependency install: the failure fails the command, the success leaves the latest-version line. */
|
|
100
133
|
export function concludeRetry(request: RetryRequest, outcome: RetryOutcome): UpdateRun {
|
|
101
134
|
const before = checking(request.argument);
|
|
102
135
|
if (outcome.ok) {
|
|
103
|
-
return
|
|
136
|
+
return {
|
|
137
|
+
...ended(commandSucceeded('update', request.latest, { fields: request.fields }), before),
|
|
138
|
+
...(request.dependencies === undefined ? {} : { dependencies: request.dependencies }),
|
|
139
|
+
};
|
|
104
140
|
}
|
|
105
141
|
return ended(
|
|
106
142
|
commandFailed('update', failureLine(request.argument, outcome.reason), {
|
|
@@ -177,8 +213,14 @@ async function updateTo(
|
|
|
177
213
|
);
|
|
178
214
|
if (stopped !== undefined) return stopped;
|
|
179
215
|
}
|
|
180
|
-
const
|
|
216
|
+
const deps = updateDependencies(install, facts.graph, facts.env);
|
|
217
|
+
if ('needs' in deps) return { before: checking(args.plugin), needs: deps.needs };
|
|
218
|
+
const message = withDependencies(
|
|
219
|
+
`Successfully updated plugin: ${nameOf(install.id)} to version ${to} (scope: ${install.scope})`,
|
|
220
|
+
deps,
|
|
221
|
+
);
|
|
181
222
|
return {
|
|
223
|
+
...stepsOf(deps.steps),
|
|
182
224
|
before: checking(args.plugin),
|
|
183
225
|
output: commandSucceeded('update', message, { fields: fieldsOf(install.id, install.scope) }),
|
|
184
226
|
update: {
|
|
@@ -209,7 +251,9 @@ export async function planPluginUpdate(
|
|
|
209
251
|
if ('end' in located) return ended(located.end);
|
|
210
252
|
const { install } = located;
|
|
211
253
|
const verdict = await checkForUpdate(install.subject, install.installedVersion, sha256);
|
|
212
|
-
|
|
254
|
+
// A newer version outside its `engines` range is not one to move to (spec §2.4).
|
|
255
|
+
const fits = installEngineCheck(install.id, install.engines).refusal === undefined;
|
|
256
|
+
return verdict.check === 'new copy' && fits
|
|
213
257
|
? updateTo({ install, to: verdict.version }, args, facts, sha256)
|
|
214
258
|
: atLatest(install, args, facts);
|
|
215
259
|
}
|