@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
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { isRecord } from '../protocol/is-record.ts';
|
|
2
|
+
import { warningAt, type Finding } from './validate/finding.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `network` of `plugin.json` (spec §2.4, Judgment J2.10): the hosts a plugin says it reaches,
|
|
6
|
+
* `{ "hosts": [ … ] }`, each in `sandbox.network.allowedDomains` syntax. It neither allows nor
|
|
7
|
+
* blocks a host; `claude plugin validate` lists them (§17.13.4). Every problem is a warning and the
|
|
8
|
+
* value, or the one host, is ignored at load.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const NOT_A_LIST =
|
|
12
|
+
'\'network\' must be an object with a list of hosts, such as { "hosts": ["api.example.com"] }. It will be ignored at load time.';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The spec quotes the start of the host warning only; the rest is the kit's (spec/judgments.md,
|
|
16
|
+
* J2.10).
|
|
17
|
+
*/
|
|
18
|
+
const NOT_A_HOST =
|
|
19
|
+
'Must be a host as sandbox.network.allowedDomains takes it, such as "api.example.com" or "*.example.com", without a scheme or path. It will be ignored at load time.';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A host as `allowedDomains` takes it: plain ASCII labels, an optional leading `*.` wildcard, no
|
|
23
|
+
* scheme, port or path (the kit's reading of the syntax, spec/judgments.md).
|
|
24
|
+
*/
|
|
25
|
+
const HOST =
|
|
26
|
+
/^(?:\*\.)?[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)*$/;
|
|
27
|
+
|
|
28
|
+
const isHost = (value: unknown): value is string => typeof value === 'string' && HOST.test(value);
|
|
29
|
+
|
|
30
|
+
/** The declared hosts that load: the well-formed ones, in order, each once. */
|
|
31
|
+
export function declaredHosts(value: unknown): readonly string[] {
|
|
32
|
+
if (!isRecord(value) || !Array.isArray(value.hosts)) return [];
|
|
33
|
+
return [...new Set(value.hosts.filter(isHost))];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** The validator's warnings for a `network` value. */
|
|
37
|
+
export function networkFindings(value: unknown): Finding[] {
|
|
38
|
+
if (!isRecord(value) || !Array.isArray(value.hosts)) return [warningAt('network', NOT_A_LIST)];
|
|
39
|
+
const unknown = Object.keys(value)
|
|
40
|
+
.filter((key) => key !== 'hosts')
|
|
41
|
+
.map((key) =>
|
|
42
|
+
warningAt(`network.${key}`, `Unknown field '${key}'. Claude Code ignores it at load time.`),
|
|
43
|
+
);
|
|
44
|
+
const hosts = value.hosts.flatMap((host: unknown, index) =>
|
|
45
|
+
isHost(host) ? [] : [warningAt(`network.hosts[${index}]`, NOT_A_HOST)],
|
|
46
|
+
);
|
|
47
|
+
return [...hosts, ...unknown];
|
|
48
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The notes a plugin loads with (spec §2.1 item 3, §2.4, §17.8.2): something about the plugin that
|
|
3
|
+
* did not stop it loading but that `claude plugin list` and `/plugin` show, each with the
|
|
4
|
+
* `noteDetails` type Claude Code gives it. A note is not an issue: the plugin is fine to use.
|
|
5
|
+
*/
|
|
6
|
+
export const PLUGIN_NOTE_TYPES = [
|
|
7
|
+
'manifest-field-ignored',
|
|
8
|
+
'engine-range-exempt',
|
|
9
|
+
'engine-range-invalid',
|
|
10
|
+
'plugin-agent-setting-deprecated',
|
|
11
|
+
] as const;
|
|
12
|
+
export type PluginNoteType = (typeof PLUGIN_NOTE_TYPES)[number];
|
|
13
|
+
|
|
14
|
+
export interface PluginNote {
|
|
15
|
+
/** The `noteDetails` type of `claude plugin list --json`. */
|
|
16
|
+
readonly type: PluginNoteType;
|
|
17
|
+
/** The line `claude plugin list` prints after `Note:`. */
|
|
18
|
+
readonly message: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const note = (type: PluginNoteType, message: string): PluginNote => ({ type, message });
|
|
@@ -4,20 +4,24 @@ import { warning, type PluginIssue } from './issues.ts';
|
|
|
4
4
|
import { isRecord } from '../protocol/is-record.ts';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* A plugin's default settings (
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* A plugin's default settings (spec §12.6): the `settings.json` at the plugin root or the inline
|
|
8
|
+
* `settings` manifest key. A deprecated feature: "Only `agent` takes effect. Every other key MUST be
|
|
9
|
+
* dropped at load", `subagentStatusLine` included since 2.1.323 (Judgment J12.17). The type is the
|
|
10
|
+
* official `Settings` one; applying the value (the lowest settings layer) is the host's.
|
|
11
11
|
*/
|
|
12
|
-
export type PluginSettings = Pick<Settings, 'agent'
|
|
12
|
+
export type PluginSettings = Pick<Settings, 'agent'>;
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* The deprecation warning a validator gives for a plugin's `agent` default, whatever the value,
|
|
16
|
+
* without failing (spec §12.6 item 2): the text after the `agent:` path. The client's startup and
|
|
17
|
+
* `claude plugin list` warnings use the same text (Judgment J12.14).
|
|
18
|
+
*/
|
|
19
|
+
export const PLUGIN_AGENT_DEPRECATED =
|
|
20
|
+
"A plugin's `agent` setting is deprecated and will stop applying in a future release. Tell people to set `agent` in their own settings or pass --agent.";
|
|
16
21
|
|
|
17
22
|
/** One strategy per applied key: the value it keeps, or `undefined` when it is not valid. */
|
|
18
23
|
const APPLIED: { readonly [K in keyof PluginSettings]-?: (value: unknown) => PluginSettings[K] } = {
|
|
19
24
|
agent: (value) => z.string().safeParse(value).data,
|
|
20
|
-
subagentStatusLine: (value) => subagentStatusLine.safeParse(value).data,
|
|
21
25
|
};
|
|
22
26
|
|
|
23
27
|
const isApplied = (name: string): name is keyof PluginSettings => Object.hasOwn(APPLIED, name);
|
|
@@ -28,15 +32,15 @@ export interface PluginSettingsRead {
|
|
|
28
32
|
readonly issues: readonly PluginIssue[];
|
|
29
33
|
}
|
|
30
34
|
|
|
31
|
-
/** True when a read holds
|
|
35
|
+
/** True when a read holds a valid `agent`: `settings.json` then wins over the manifest (J12.10). */
|
|
32
36
|
export const hasAppliedSettings = (read: PluginSettingsRead): boolean =>
|
|
33
37
|
Object.keys(read.settings).length > 0;
|
|
34
38
|
|
|
35
39
|
/**
|
|
36
40
|
* Reads one settings object. Judgment (spec/judgments.md): a dropped key and an invalid value for an
|
|
37
|
-
* applied key are warnings (the
|
|
38
|
-
* object is a warning naming `origin`: a plugin's defaults never fail the plugin (spec §12.6 item
|
|
39
|
-
* J12.10).
|
|
41
|
+
* applied key are warnings (the spec says "dropped" and names no message), and a value that is not
|
|
42
|
+
* an object is a warning naming `origin`: a plugin's defaults never fail the plugin (spec §12.6 item
|
|
43
|
+
* 1, J12.10).
|
|
40
44
|
*/
|
|
41
45
|
export function readPluginSettings(raw: unknown, origin: string): PluginSettingsRead {
|
|
42
46
|
if (!isRecord(raw)) {
|
|
@@ -52,7 +56,7 @@ export function readPluginSettings(raw: unknown, origin: string): PluginSettings
|
|
|
52
56
|
issues.push(
|
|
53
57
|
warning(
|
|
54
58
|
`${origin}.${name}`,
|
|
55
|
-
`Setting "${name}" in ${origin} is dropped: only "agent"
|
|
59
|
+
`Setting "${name}" in ${origin} is dropped: only "agent" takes effect from a plugin`,
|
|
56
60
|
),
|
|
57
61
|
);
|
|
58
62
|
continue;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { warning, type PluginIssue } from './issues.ts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An `mcpServers` or `lspServers` file path that is absolute or has a `..` part is not read, even
|
|
5
|
+
* when it stays inside the plugin; the rest of the plugin loads, without the servers that file
|
|
6
|
+
* defines (spec §2.5 item 2, §17.18.12). The validator still reports such a path as the error §2.5
|
|
7
|
+
* gives; loading drops it with this message instead.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
const COMPONENT = { mcpServers: 'mcp-servers', lspServers: 'lsp-servers' } as const;
|
|
11
|
+
type ServerKey = keyof typeof COMPONENT;
|
|
12
|
+
const SERVER_KEYS: readonly ServerKey[] = ['mcpServers', 'lspServers'];
|
|
13
|
+
|
|
14
|
+
const isAbsolute = (path: string): boolean => /^(?:[/\\]|[A-Za-z]:)/.test(path);
|
|
15
|
+
const hasParentPart = (path: string): boolean => path.split(/[/\\]/).includes('..');
|
|
16
|
+
|
|
17
|
+
/** A server file path loading does not read. */
|
|
18
|
+
const notRead = (value: unknown): value is string =>
|
|
19
|
+
typeof value === 'string' && (isAbsolute(value) || hasParentPart(value));
|
|
20
|
+
|
|
21
|
+
/** `mcp-servers path not read: ./sub/../x.json is absolute or has a ".." part`. */
|
|
22
|
+
const notReadIssue = (key: ServerKey, path: string): PluginIssue =>
|
|
23
|
+
warning(key, `${COMPONENT[key]} path not read: ${path} is absolute or has a ".." part`);
|
|
24
|
+
|
|
25
|
+
function dropOne(key: ServerKey, value: unknown): { kept: unknown; issues: PluginIssue[] } {
|
|
26
|
+
if (notRead(value)) return { kept: undefined, issues: [notReadIssue(key, value)] };
|
|
27
|
+
if (!Array.isArray(value)) return { kept: value, issues: [] };
|
|
28
|
+
const dropped = value.filter(notRead);
|
|
29
|
+
return {
|
|
30
|
+
kept: value.filter((entry: unknown) => !notRead(entry)),
|
|
31
|
+
issues: dropped.map((path) => notReadIssue(key, path)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** The manifest without the server paths loading does not read, and a message for each. */
|
|
36
|
+
export function withoutUnreadServerPaths(manifest: Readonly<Record<string, unknown>>): {
|
|
37
|
+
readonly manifest: Readonly<Record<string, unknown>>;
|
|
38
|
+
readonly issues: readonly PluginIssue[];
|
|
39
|
+
} {
|
|
40
|
+
const kept: Record<string, unknown> = { ...manifest };
|
|
41
|
+
const issues: PluginIssue[] = [];
|
|
42
|
+
for (const key of SERVER_KEYS) {
|
|
43
|
+
if (!Object.hasOwn(manifest, key)) continue;
|
|
44
|
+
const one = dropOne(key, manifest[key]);
|
|
45
|
+
issues.push(...one.issues);
|
|
46
|
+
if (one.kept === undefined) delete kept[key];
|
|
47
|
+
else kept[key] = one.kept;
|
|
48
|
+
}
|
|
49
|
+
return { manifest: kept, issues };
|
|
50
|
+
}
|
|
@@ -8,6 +8,8 @@ import { zodFindings } from './zod-findings.ts';
|
|
|
8
8
|
import { isRecord } from '../../protocol/is-record.ts';
|
|
9
9
|
import { USER_CONFIG_KEY } from '../user-config-refs.ts';
|
|
10
10
|
import { dependencyText, userConfigOptionSchema } from '../manifest-schema.ts';
|
|
11
|
+
import { enginesFindings } from '../engines.ts';
|
|
12
|
+
import { networkFindings } from '../network.ts';
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* The type rules of `plugin.json` as `claude plugin validate` applies them (oracle 2.1.319): one
|
|
@@ -69,6 +71,8 @@ const ORDER = [
|
|
|
69
71
|
'mcpServers',
|
|
70
72
|
'lspServers',
|
|
71
73
|
'settings',
|
|
74
|
+
'engines',
|
|
75
|
+
'network',
|
|
72
76
|
'userConfig',
|
|
73
77
|
] as const;
|
|
74
78
|
|
|
@@ -126,6 +130,18 @@ const NOT_AN_OBJECT = (key: string, what: string, outcome: string, value: unknow
|
|
|
126
130
|
`'${key}' must be ${what}; got ${kindOf(value)}. It will be ${outcome} at load time.`,
|
|
127
131
|
);
|
|
128
132
|
|
|
133
|
+
/**
|
|
134
|
+
* `engines` and `network` (spec §2.4, J2.10): an invalid `claude-code` range is an error, every other
|
|
135
|
+
* problem a warning; loading ignores each.
|
|
136
|
+
*/
|
|
137
|
+
export function enginesNetworkFindings(manifest: Readonly<Record<string, unknown>>): Finding[] {
|
|
138
|
+
const { engines, network } = manifest;
|
|
139
|
+
return [
|
|
140
|
+
...(engines === undefined ? [] : enginesFindings(engines)),
|
|
141
|
+
...(network === undefined ? [] : networkFindings(network)),
|
|
142
|
+
];
|
|
143
|
+
}
|
|
144
|
+
|
|
129
145
|
/** The free-form `metadata` and the `experimental` block: a wrong type is only a warning. */
|
|
130
146
|
export function looseObjectFindings(manifest: Readonly<Record<string, unknown>>): Finding[] {
|
|
131
147
|
const found: Finding[] = [];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { errorAt, warningAt, type Finding } from './finding.ts';
|
|
2
2
|
import {
|
|
3
|
+
enginesNetworkFindings,
|
|
3
4
|
fieldFindings,
|
|
4
5
|
looseObjectFindings,
|
|
5
6
|
missingName,
|
|
@@ -13,6 +14,7 @@ import { claimsOf, type PathClaim } from './path-claims.ts';
|
|
|
13
14
|
import { inlineFindings } from './mcp-check.ts';
|
|
14
15
|
import { hooksMapFindings } from './hooks-check.ts';
|
|
15
16
|
import { unknownFieldFinding } from './unknown-fields.ts';
|
|
17
|
+
import { settingsDeprecations } from './settings-deprecation.ts';
|
|
16
18
|
import { isRecord } from '../../protocol/is-record.ts';
|
|
17
19
|
|
|
18
20
|
/**
|
|
@@ -153,6 +155,8 @@ export function checkPluginManifest(raw: unknown, options: ManifestOptions = {})
|
|
|
153
155
|
...(sound ? name.advice : []),
|
|
154
156
|
...unknownKeys(raw),
|
|
155
157
|
...looseObjectFindings(raw),
|
|
158
|
+
...enginesNetworkFindings(raw),
|
|
159
|
+
...settingsDeprecations(raw.settings, 'settings.'),
|
|
156
160
|
...advice(raw),
|
|
157
161
|
...(sound
|
|
158
162
|
? RECOMMENDED.filter(([key]) => raw[key] === undefined || raw[key] === '').map(
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { isRecord } from '../../protocol/is-record.ts';
|
|
2
|
+
import { PLUGIN_AGENT_DEPRECATED } from '../plugin-settings.ts';
|
|
3
|
+
import { warningAt, type Finding } from './finding.ts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The validator's deprecation warnings for a plugin's defaults (spec §12.6 item 2, Judgment J2.9):
|
|
7
|
+
* `agent` and `subagentStatusLine` in the manifest's `settings` or the root `settings.json`, whatever
|
|
8
|
+
* the value; nothing for any other key, a value of the wrong type or a file that does not parse.
|
|
9
|
+
* `subagentStatusLine`'s text names the key itself, so the kit gives it the path `root`, which names
|
|
10
|
+
* no field (spec/judgments.md).
|
|
11
|
+
*/
|
|
12
|
+
const STATUS_LINE =
|
|
13
|
+
'subagentStatusLine is deprecated in favor of mods and will stop working in a future release.';
|
|
14
|
+
|
|
15
|
+
/** `prefix` is `settings.` for the manifest and empty for `settings.json`. */
|
|
16
|
+
export function settingsDeprecations(value: unknown, prefix: string): Finding[] {
|
|
17
|
+
if (!isRecord(value)) return [];
|
|
18
|
+
return [
|
|
19
|
+
...(Object.hasOwn(value, 'agent')
|
|
20
|
+
? [warningAt(`${prefix}agent`, PLUGIN_AGENT_DEPRECATED)]
|
|
21
|
+
: []),
|
|
22
|
+
...(Object.hasOwn(value, 'subagentStatusLine')
|
|
23
|
+
? [warningAt('root', `${prefix}${STATUS_LINE}`)]
|
|
24
|
+
: []),
|
|
25
|
+
];
|
|
26
|
+
}
|
|
@@ -15,15 +15,7 @@ const COMMONLY_SEEN: Readonly<Record<string, string>> = Object.fromEntries(
|
|
|
15
15
|
[
|
|
16
16
|
[
|
|
17
17
|
'a VS Code/Cursor extension manifest',
|
|
18
|
-
[
|
|
19
|
-
'publisher',
|
|
20
|
-
'categories',
|
|
21
|
-
'engines',
|
|
22
|
-
'activationEvents',
|
|
23
|
-
'contributes',
|
|
24
|
-
'preview',
|
|
25
|
-
'icon',
|
|
26
|
-
],
|
|
18
|
+
['publisher', 'categories', 'activationEvents', 'contributes', 'preview', 'icon'],
|
|
27
19
|
],
|
|
28
20
|
[
|
|
29
21
|
'an npm package.json',
|
|
@@ -207,12 +207,18 @@ export async function readScopeFiles(
|
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
/** The folder to watch below an opened base: its host path when the scope watches it and it exists
|
|
210
|
+
/** The folder to watch below an opened base: its host path when the scope watches it and it exists, or always with `evenAbsent`. */
|
|
211
211
|
export async function watchedFolder(
|
|
212
212
|
base: ScanFolder,
|
|
213
213
|
container: string,
|
|
214
|
-
options: {
|
|
214
|
+
options: {
|
|
215
|
+
readonly watched: boolean;
|
|
216
|
+
/** Watch the folder even before it exists, so its first file loads (agents, §5.4.1). */
|
|
217
|
+
readonly evenAbsent?: boolean;
|
|
218
|
+
readonly signal?: AbortSignal | undefined;
|
|
219
|
+
},
|
|
215
220
|
): Promise<readonly string[]> {
|
|
216
221
|
if (!options.watched) return [];
|
|
222
|
+
if (options.evenAbsent === true) return [base.hostPath(container)];
|
|
217
223
|
return (await base.files.exists(container, options.signal)) ? [base.hostPath(container)] : [];
|
|
218
224
|
}
|
package/src/hooks/assemble.ts
CHANGED
|
@@ -33,13 +33,23 @@ function replacement(merged: MergedOutput, handlerId: string): string | undefine
|
|
|
33
33
|
: undefined;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Agent Plugins Extended §7.4.1.2 (2.1.330): on these events an exit-2 hook's own `continue: false`
|
|
38
|
+
* wins over the exit code, so Claude or the subagent ends its turn instead of being sent back.
|
|
39
|
+
*/
|
|
40
|
+
const STOP_WINS_OVER_EXIT2: ReadonlySet<HookEvent> = new Set<HookEvent>(['Stop', 'SubagentStop']);
|
|
41
|
+
|
|
42
|
+
const blocksHere = (event: HookEvent, verdict: HandlerVerdict): boolean =>
|
|
43
|
+
verdict.block !== undefined &&
|
|
44
|
+
!(STOP_WINS_OVER_EXIT2.has(event) && verdict.output?.continue === false);
|
|
45
|
+
|
|
36
46
|
/** The verdict-level block of the first hook that has one, its reason replaced by its own JSON decision's. */
|
|
37
47
|
function exitBlock(
|
|
38
48
|
event: HookEvent,
|
|
39
49
|
verdicts: readonly HandlerVerdict[],
|
|
40
50
|
merged: MergedOutput,
|
|
41
51
|
): Blocked {
|
|
42
|
-
const found = verdicts.find((verdict) => verdict
|
|
52
|
+
const found = verdicts.find((verdict) => blocksHere(event, verdict));
|
|
43
53
|
if (found?.block === undefined) return undefined;
|
|
44
54
|
const decision = replacement(merged, found.handler.id);
|
|
45
55
|
const block =
|
|
@@ -3,7 +3,7 @@ import type { CoreCallFacts, CoreToolProfile } from './types.ts';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The portable view of a pending Claude Code call (Agent Plugins Extended §18.2.7; core §7.3.6): a
|
|
6
|
-
* table by Claude Code tool name of 2.1.
|
|
6
|
+
* table by Claude Code tool name of 2.1.330, each entry deciding from the call's defined operation
|
|
7
7
|
* and input whether its profile applies. A tool the table does not name gets none (`Glob`, `Grep`,
|
|
8
8
|
* `Agent`, `Skill`, `AskUserQuestion` and every bookkeeping tool), and so does a call the entry's
|
|
9
9
|
* criteria exclude (a `Monitor` with `ws`, a `WebFetch` of a relative URL).
|
package/src/hooks/dispatch.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type { selectHandlers } from './select/select.ts';
|
|
|
13
13
|
import type { IfEvaluator } from './select/if-guard.ts';
|
|
14
14
|
import type { OnceClaims } from './select/once.ts';
|
|
15
15
|
import { interruptPlan, withInterrupt } from './interrupt.ts';
|
|
16
|
+
import { withCoworkAnswers } from './output/cowork-answers.ts';
|
|
16
17
|
import { withResolvedWatchPaths } from './output/watch-paths.ts';
|
|
17
18
|
import { withOriginalPrompt } from './verdict/blocked-prompt.ts';
|
|
18
19
|
import { isToolCall, type StopBlockCap } from './verdict/stop-block-cap.ts';
|
|
@@ -161,6 +162,38 @@ function selectionOf<E extends HookEvent>(
|
|
|
161
162
|
});
|
|
162
163
|
}
|
|
163
164
|
|
|
165
|
+
/**
|
|
166
|
+
* The events no hook runs on when the occurrence is Code Mode's code output: from 2.1.328
|
|
167
|
+
* `UserPromptSubmit` hooks "don't receive code output, even when an administrator sets them in
|
|
168
|
+
* managed settings" (code-mode.md, "Move a check from a `UserPromptSubmit` hook"; Agent Plugins
|
|
169
|
+
* Extended §7.6.11.3 item 4, §7.5.8).
|
|
170
|
+
*/
|
|
171
|
+
const SKIPS_CODE_OUTPUT: ReadonlySet<HookEvent> = new Set<HookEvent>(['UserPromptSubmit']);
|
|
172
|
+
|
|
173
|
+
/** The events on which the built-in `web-fetch` agent runs only managed hooks (§7.5.18, §7.5.19). */
|
|
174
|
+
const WEB_FETCH_MANAGED_ONLY: ReadonlySet<HookEvent> = new Set<HookEvent>([
|
|
175
|
+
'SubagentStart',
|
|
176
|
+
'SubagentStop',
|
|
177
|
+
]);
|
|
178
|
+
|
|
179
|
+
/** Whether only the hooks of managed settings run on this occurrence. */
|
|
180
|
+
const managedOnly = <E extends HookEvent>(request: DispatchRequest<E>): boolean =>
|
|
181
|
+
request.failedCall === true ||
|
|
182
|
+
(request.webFetchAgent === true && WEB_FETCH_MANAGED_ONLY.has(request.event));
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* J7.215: on a failed call `PostToolUse` runs only the hooks of managed settings; code output runs
|
|
186
|
+
* no `UserPromptSubmit` hook at all. For the built-in `web-fetch` agent `SubagentStart` and
|
|
187
|
+
* `SubagentStop` run only the hooks of managed settings (§7.6.3 item 8).
|
|
188
|
+
*/
|
|
189
|
+
function forCall<E extends HookEvent>(
|
|
190
|
+
selected: readonly RegisteredHandler[],
|
|
191
|
+
request: DispatchRequest<E>,
|
|
192
|
+
): readonly RegisteredHandler[] {
|
|
193
|
+
if (request.fromCode === true && SKIPS_CODE_OUTPUT.has(request.event)) return [];
|
|
194
|
+
return managedOnly(request) ? selected.filter((each) => each.source.managed === true) : selected;
|
|
195
|
+
}
|
|
196
|
+
|
|
164
197
|
export async function dispatchEvent<E extends HookEvent>(
|
|
165
198
|
registry: HookRegistry,
|
|
166
199
|
request: DispatchRequest<E>,
|
|
@@ -176,10 +209,8 @@ export async function dispatchEvent<E extends HookEvent>(
|
|
|
176
209
|
const built = stages.build(event, facts, session);
|
|
177
210
|
const issues: readonly PluginIssue[] = [...selection.issues, ...built.issues];
|
|
178
211
|
// A `once` handler another dispatch runs, or a run spent, is left out (`OnceClaims`).
|
|
179
|
-
const selected
|
|
180
|
-
|
|
181
|
-
? []
|
|
182
|
-
: (config.onceClaims?.take(selection.selected) ?? selection.selected);
|
|
212
|
+
const eligible = forCall(selection.selected, request);
|
|
213
|
+
const selected = built.input === undefined ? [] : (config.onceClaims?.take(eligible) ?? eligible);
|
|
183
214
|
if (built.input === undefined || selected.length === 0)
|
|
184
215
|
return finishedIdle(idleOutcome(event, issues), request, config);
|
|
185
216
|
const plan = interruptPlan(event, request.interrupt, config.ports.environment);
|
|
@@ -190,7 +221,7 @@ export async function dispatchEvent<E extends HookEvent>(
|
|
|
190
221
|
});
|
|
191
222
|
report(config.observer, event, verdicts);
|
|
192
223
|
const limited = await stages.output.limit(event, verdicts.map(tagged), request.signal);
|
|
193
|
-
const merged = stages.output.merge(event, limited.outputs, facts);
|
|
224
|
+
const merged = withCoworkAnswers(stages.output.merge(event, limited.outputs, facts), request);
|
|
194
225
|
return finished(
|
|
195
226
|
assemble(event, verdicts, merged, [...issues, ...limited.issues]),
|
|
196
227
|
request,
|
|
@@ -86,7 +86,10 @@ export interface RunContext {
|
|
|
86
86
|
* Plugin directory does not exist` (plugins/troubleshooting.md). The engine turns it on unless the host sets `checkPluginDirectories: false`.
|
|
87
87
|
*/
|
|
88
88
|
readonly checkPluginDirectory?: boolean;
|
|
89
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* The merged `allowedHttpHookUrls` and `httpHookAllowedEnvVars`: the top level covers every hook
|
|
91
|
+
* but those of managed settings, `managed` covers those (J12.18); unset: no limit.
|
|
92
|
+
*/
|
|
90
93
|
readonly httpPolicy?: HttpHookPolicy;
|
|
91
94
|
readonly signal: AbortSignal;
|
|
92
95
|
}
|
|
@@ -2,12 +2,20 @@ import { warning, type PluginIssue } from '../../../format/issues.ts';
|
|
|
2
2
|
import { matchesWildcard } from '../../../format/wildcard.ts';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* The two outer limits on `http` hooks (hooks.md, "Hook locations";
|
|
6
|
-
* `allowedHttpHookUrls` and `httpHookAllowedEnvVars`).
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* The two outer limits on `http` hooks (hooks.md, "Hook locations", "Limit HTTP hooks";
|
|
6
|
+
* settings-reference.md, `allowedHttpHookUrls` and `httpHookAllowedEnvVars`). From 2.1.330 (Agent
|
|
7
|
+
* Plugins Extended §7.3.4 item 3, J12.18) a list set in managed settings covers the hooks of managed
|
|
8
|
+
* settings and a list set in any file covers every other hook, each checked against the list merged
|
|
9
|
+
* across files. The settings stream merges them; the host passes them in `RunContext.httpPolicy`:
|
|
10
|
+
* the top-level lists for the other hooks, `managed` for the hooks of managed settings.
|
|
9
11
|
*/
|
|
10
|
-
export interface HttpHookPolicy {
|
|
12
|
+
export interface HttpHookPolicy extends HttpHookLimits {
|
|
13
|
+
/** The lists that cover the hooks of managed settings; absent: no limit on them. */
|
|
14
|
+
readonly managed?: HttpHookLimits;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** One pair of merged lists. */
|
|
18
|
+
export interface HttpHookLimits {
|
|
11
19
|
/**
|
|
12
20
|
* "When you define this key, Claude Code runs an HTTP hook only if its URL matches one of the
|
|
13
21
|
* patterns and blocks the rest without running them; an empty array blocks every HTTP hook."
|
|
@@ -44,10 +52,16 @@ export function urlAllowed(url: string, allowedUrls: readonly string[] | undefin
|
|
|
44
52
|
return allowedUrls.some((pattern) => matchesWildcard(normalizeUrl(pattern), target));
|
|
45
53
|
}
|
|
46
54
|
|
|
55
|
+
/** The lists that cover a hook: `managed` for a hook of managed settings, the top level for any other. */
|
|
56
|
+
export const limitsFor = (
|
|
57
|
+
policy: HttpHookPolicy | undefined,
|
|
58
|
+
managedHook: boolean,
|
|
59
|
+
): HttpHookLimits | undefined => (managedHook ? policy?.managed : policy);
|
|
60
|
+
|
|
47
61
|
/** The variables a hook may interpolate: its own list, cut to the settings list when one is set. */
|
|
48
62
|
export function permittedEnvVars(
|
|
49
63
|
own: readonly string[] | undefined,
|
|
50
|
-
policy:
|
|
64
|
+
policy: HttpHookLimits | undefined,
|
|
51
65
|
): readonly string[] | undefined {
|
|
52
66
|
const outer = policy?.allowedEnvVars;
|
|
53
67
|
if (outer === undefined) return own;
|
|
@@ -3,7 +3,7 @@ import type { HandlerEntry, HandlerResult, RunContext } from '../context.ts';
|
|
|
3
3
|
import { handlerTimeoutMs } from '../timeouts.ts';
|
|
4
4
|
import { failureRun, remotePath, withoutPort } from './failure-run.ts';
|
|
5
5
|
import { interpolateHeaders } from './http-env.ts';
|
|
6
|
-
import { blockedUrlIssue, permittedEnvVars, urlAllowed } from './http-policy.ts';
|
|
6
|
+
import { blockedUrlIssue, limitsFor, permittedEnvVars, urlAllowed } from './http-policy.ts';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* An `http` hook (hooks.md, "HTTP hook fields"): "Claude Code sends the hook's JSON input as the
|
|
@@ -20,7 +20,7 @@ export async function runHttp(
|
|
|
20
20
|
const client: HttpClient | undefined = context.ports.http;
|
|
21
21
|
if (client === undefined) return withoutPort(entry, 'http', 'HttpClient');
|
|
22
22
|
const { url, headers, allowedEnvVars } = entry.handler;
|
|
23
|
-
const
|
|
23
|
+
const httpPolicy = limitsFor(context.httpPolicy, entry.source.managed === true);
|
|
24
24
|
if (!urlAllowed(url, httpPolicy?.allowedUrls)) {
|
|
25
25
|
const issue = blockedUrlIssue(remotePath(entry, 'url'), url);
|
|
26
26
|
return { run: { kind: 'skipped', reason: issue.message }, issues: [issue] };
|
|
@@ -5,6 +5,7 @@ import type { HandlerEntry, HandlerResult, RawRun, RunContext } from '../context
|
|
|
5
5
|
import { handlerTimeoutMs } from '../timeouts.ts';
|
|
6
6
|
import { failureRun, remotePath, withoutPort } from './failure-run.ts';
|
|
7
7
|
import { substituteInput } from './mcp-input.ts';
|
|
8
|
+
import type { McpRun, McpUnreadable } from './types.ts';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* An `mcp_tool` hook (hooks.md, "MCP tool hook fields"). The `server` is passed as the hook writes
|
|
@@ -142,7 +143,32 @@ export async function runMcpTool(
|
|
|
142
143
|
});
|
|
143
144
|
const run =
|
|
144
145
|
'failure' in answer
|
|
145
|
-
?
|
|
146
|
+
? (unreadableRun(answer.failure, server, tool) ??
|
|
147
|
+
failureRun(answer, (text) => ({ kind: 'mcp', isError: true, text })))
|
|
146
148
|
: ({ kind: 'mcp', isError: answer.isError, text: answer.text } as const);
|
|
147
149
|
return { run, issues: args.issues };
|
|
148
150
|
}
|
|
151
|
+
|
|
152
|
+
const SMALLER = 'If this keeps happening, the tool must send a smaller answer.';
|
|
153
|
+
|
|
154
|
+
/** The hook errors of an answer the client could not read (hooks.md, "How the tool's result is read"). */
|
|
155
|
+
const UNREADABLE: { readonly [U in McpUnreadable]: (server: string, tool: string) => string } = {
|
|
156
|
+
'message-too-large': (server, tool) =>
|
|
157
|
+
`MCP tool "${tool}" on server "${server}" gave no answer that could be read, because a message from the server was too large, so this hook gave no verdict. ${SMALLER}`,
|
|
158
|
+
'missing-text': (server, tool) =>
|
|
159
|
+
`MCP tool "${tool}" on server "${server}" answered without its text, which happens when a result is too large, so this hook gave no verdict. ${SMALLER}`,
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
const isUnreadable = (failure: string): failure is McpUnreadable =>
|
|
163
|
+
Object.hasOwn(UNREADABLE, failure);
|
|
164
|
+
|
|
165
|
+
/** A port failure that says the answer could not be read, as the run the interpreter refuses on. */
|
|
166
|
+
function unreadableRun(failure: string, server: string, tool: string): McpRun | undefined {
|
|
167
|
+
if (!isUnreadable(failure)) return undefined;
|
|
168
|
+
return {
|
|
169
|
+
kind: 'mcp',
|
|
170
|
+
isError: true,
|
|
171
|
+
unreadable: failure,
|
|
172
|
+
text: UNREADABLE[failure](server, tool),
|
|
173
|
+
};
|
|
174
|
+
}
|
|
@@ -24,8 +24,17 @@ export interface McpRun {
|
|
|
24
24
|
readonly kind: 'mcp';
|
|
25
25
|
readonly isError: boolean;
|
|
26
26
|
readonly text: string;
|
|
27
|
+
/**
|
|
28
|
+
* The client could not read the answer (hooks.md, "How the tool's result is read", 2.1.330): the
|
|
29
|
+
* server's message was too large, or the result came without its text. `text` is then the hook
|
|
30
|
+
* error, and the hook gives no verdict.
|
|
31
|
+
*/
|
|
32
|
+
readonly unreadable?: McpUnreadable;
|
|
27
33
|
}
|
|
28
34
|
|
|
35
|
+
/** Why an `mcp_tool` hook's answer could not be read: the port failure kinds of `McpCaller.callTool`. */
|
|
36
|
+
export type McpUnreadable = 'message-too-large' | 'missing-text';
|
|
37
|
+
|
|
29
38
|
/** The model's verdict, validated against the response schema (hooks.md, "Response schema"). */
|
|
30
39
|
export interface ModelRun {
|
|
31
40
|
readonly kind: 'model';
|
|
@@ -46,8 +46,8 @@ export const SubagentStopFacts = z.object({
|
|
|
46
46
|
}) satisfies z.ZodType<EventFactsOf<'SubagentStop'>>;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* The error types of a failed turn: the docs'
|
|
50
|
-
* (spec/judgments.md).
|
|
49
|
+
* The error types of a failed turn: the docs' eleven, the SDK's `verification_required`
|
|
50
|
+
* (spec/judgments.md), and the SDK's `overloaded`, read as `server_error` below.
|
|
51
51
|
*/
|
|
52
52
|
const STOP_FAILURE_ERRORS = [
|
|
53
53
|
'authentication_failed',
|
|
@@ -65,8 +65,19 @@ const STOP_FAILURE_ERRORS = [
|
|
|
65
65
|
'cloud_credential_error',
|
|
66
66
|
] as const;
|
|
67
67
|
|
|
68
|
+
type StopFailureError = (typeof STOP_FAILURE_ERRORS)[number];
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* 2.1.330: "An HTTP `529` overloaded response is reported as `server_error`; there is no
|
|
72
|
+
* `overloaded` value" (Agent Plugins Extended §7.5.23). The SDK type still has it, so it is read,
|
|
73
|
+
* not refused, and a hook sees what Claude Code reports.
|
|
74
|
+
*/
|
|
75
|
+
const REPORTED_AS: Partial<Record<StopFailureError, StopFailureError>> = {
|
|
76
|
+
overloaded: 'server_error',
|
|
77
|
+
};
|
|
78
|
+
|
|
68
79
|
export const StopFailureFacts = z.object({
|
|
69
|
-
error: z.enum(STOP_FAILURE_ERRORS),
|
|
80
|
+
error: z.enum(STOP_FAILURE_ERRORS).transform((error) => REPORTED_AS[error] ?? error),
|
|
70
81
|
error_details: optional(z.string()),
|
|
71
82
|
last_assistant_message: optional(z.string()),
|
|
72
83
|
}) satisfies z.ZodType<EventFactsOf<'StopFailure'>>;
|
package/src/hooks/outcome.ts
CHANGED
|
@@ -37,6 +37,37 @@ export interface DispatchRequest<E extends HookEvent> {
|
|
|
37
37
|
* where `continue: false` holds.
|
|
38
38
|
*/
|
|
39
39
|
readonly taskCompletedBy?: 'task-update' | 'teammate-turn';
|
|
40
|
+
/**
|
|
41
|
+
* `PostToolUse` only: the call failed, and `facts.tool_response` is its error text. Only the hooks
|
|
42
|
+
* of managed settings run (hooks.md, "PostToolUse", 2.1.330: they "also run after some failed
|
|
43
|
+
* calls"; Agent Plugins Extended J7.215). Which failed calls is the host's; `PostToolUseFailure`
|
|
44
|
+
* still fires for the same failure.
|
|
45
|
+
*/
|
|
46
|
+
readonly failedCall?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* `PreToolUse` only: Code Mode's code made the call (code-mode.md, "Tool call refused by a hook";
|
|
49
|
+
* Agent Plugins Extended §7.6.11.4, J7.213). A hook that times out, or an agent hook that ends
|
|
50
|
+
* without a decision, refuses the call with `the hook did not finish` unless `onFailure` is set.
|
|
51
|
+
* `UserPromptSubmit`: the prompt is the output of Code Mode's code (before 2.1.328 it reached
|
|
52
|
+
* these hooks with `source` `poll_event`). No `UserPromptSubmit` hook runs on it, managed ones
|
|
53
|
+
* included, and the outcome lets it through (code-mode.md, "Move a check from a
|
|
54
|
+
* `UserPromptSubmit` hook"; Agent Plugins Extended §7.6.11.3 item 4).
|
|
55
|
+
*/
|
|
56
|
+
readonly fromCode?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* `SubagentStart` and `SubagentStop` only: the subagent is the built-in `web-fetch` agent (not a
|
|
59
|
+
* custom agent of that name, which replaces it). Only the hooks of managed settings run; the
|
|
60
|
+
* `PreToolUse` and `PostToolUse` hooks matching `WebFetch` still run for its fetches, so the flag
|
|
61
|
+
* changes nothing on the other events (Agent Plugins Extended §7.5.18, §7.5.19, §7.6.3 item 8,
|
|
62
|
+
* §5.12.1).
|
|
63
|
+
*/
|
|
64
|
+
readonly webFetchAgent?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* `PostToolUse` only: the session is a Cowork cloud session. A hook's `updatedToolOutput` for
|
|
67
|
+
* `AskUserQuestion` or `ExitPlanMode` is then ignored, and Claude reads the original answer or
|
|
68
|
+
* plan (Agent Plugins Extended §7.5.13); other tools keep the replacement.
|
|
69
|
+
*/
|
|
70
|
+
readonly coworkCloud?: boolean;
|
|
40
71
|
}
|
|
41
72
|
|
|
42
73
|
/** What an event came to, merged over every handler that ran. */
|
package/src/hooks/output/caps.ts
CHANGED
|
@@ -65,9 +65,10 @@ export const OUTPUT_CAPS: { readonly [E in HookEvent]: OutputCap } = {
|
|
|
65
65
|
PostCompact: capOf(['continue', 'systemMessage', 'decision']),
|
|
66
66
|
// "Run for notification and logging purposes only": only `terminalSequence` counts.
|
|
67
67
|
StopFailure: capOf(['continue', 'systemMessage', 'decision', 'specific']),
|
|
68
|
-
//
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
// 2.1.330: a top-level `decision: "block"` keeps the teammate working or the task open, and
|
|
69
|
+
// `continue: false` lets the teammate go idle (Agent Plugins Extended §7.5.21, §7.5.24, J7.121).
|
|
70
|
+
TeammateIdle: capOf([]),
|
|
71
|
+
TaskCompleted: capOf([]),
|
|
71
72
|
// "Claude Code ignores `continue: false` from this event".
|
|
72
73
|
TaskCreated: capOf(['continue']),
|
|
73
74
|
// "Claude Code acts on the blocking decision ... and discards `systemMessage` and `continue`."
|