@localix-ai/agent-plugins 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +386 -0
- package/dist/agents/catalog/builtin.d.ts +9 -3
- package/dist/agents/catalog/builtin.d.ts.map +1 -1
- package/dist/agents/catalog/builtin.js +16 -2
- package/dist/agents/catalog/builtin.js.map +1 -1
- package/dist/agents/catalog/scan.d.ts +4 -1
- package/dist/agents/catalog/scan.d.ts.map +1 -1
- package/dist/agents/catalog/scan.js +1 -0
- package/dist/agents/catalog/scan.js.map +1 -1
- package/dist/agents/index.d.ts +3 -2
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +3 -2
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/launch-model.d.ts +31 -6
- package/dist/agents/launch-model.d.ts.map +1 -1
- package/dist/agents/launch-model.js +43 -22
- package/dist/agents/launch-model.js.map +1 -1
- package/dist/agents/launch.d.ts +18 -4
- package/dist/agents/launch.d.ts.map +1 -1
- package/dist/agents/launch.js +29 -15
- package/dist/agents/launch.js.map +1 -1
- package/dist/agents/model-choice.d.ts +10 -2
- package/dist/agents/model-choice.d.ts.map +1 -1
- package/dist/agents/model-choice.js +10 -4
- package/dist/agents/model-choice.js.map +1 -1
- package/dist/agents/task-list.d.ts +24 -0
- package/dist/agents/task-list.d.ts.map +1 -0
- package/dist/agents/task-list.js +12 -0
- package/dist/agents/task-list.js.map +1 -0
- package/dist/agents/tool-filters.d.ts +11 -2
- package/dist/agents/tool-filters.d.ts.map +1 -1
- package/dist/agents/tool-filters.js +9 -1
- package/dist/agents/tool-filters.js.map +1 -1
- package/dist/agents/tool-resolution.d.ts.map +1 -1
- package/dist/agents/tool-resolution.js +19 -3
- package/dist/agents/tool-resolution.js.map +1 -1
- package/dist/agents/workflow/replay.d.ts +3 -2
- package/dist/agents/workflow/replay.d.ts.map +1 -1
- package/dist/agents/workflow/replay.js +11 -2
- package/dist/agents/workflow/replay.js.map +1 -1
- package/dist/agents/workflow/usage-limit.d.ts +19 -5
- package/dist/agents/workflow/usage-limit.d.ts.map +1 -1
- package/dist/agents/workflow/usage-limit.js +32 -4
- package/dist/agents/workflow/usage-limit.js.map +1 -1
- package/dist/cli/command-table.d.ts +1 -1
- package/dist/cli/command-table.d.ts.map +1 -1
- package/dist/cli/command-table.js +2 -0
- package/dist/cli/command-table.js.map +1 -1
- package/dist/cli/flags/session.d.ts.map +1 -1
- package/dist/cli/flags/session.js +2 -1
- package/dist/cli/flags/session.js.map +1 -1
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +3 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/install-command-outcome.d.ts +31 -0
- package/dist/cli/install-command-outcome.d.ts.map +1 -0
- package/dist/cli/install-command-outcome.js +34 -0
- package/dist/cli/install-command-outcome.js.map +1 -0
- package/dist/cli/install-command-step.d.ts +13 -0
- package/dist/cli/install-command-step.d.ts.map +1 -0
- package/dist/cli/install-command-step.js +52 -0
- package/dist/cli/install-command-step.js.map +1 -0
- package/dist/cli/install-engines.d.ts +27 -0
- package/dist/cli/install-engines.d.ts.map +1 -0
- package/dist/cli/install-engines.js +29 -0
- package/dist/cli/install-engines.js.map +1 -0
- package/dist/cli/install-plan.d.ts +6 -0
- package/dist/cli/install-plan.d.ts.map +1 -1
- package/dist/cli/install-plan.js +31 -61
- package/dist/cli/install-plan.js.map +1 -1
- package/dist/cli/install-refusals.d.ts +5 -0
- package/dist/cli/install-refusals.d.ts.map +1 -1
- package/dist/cli/install-refusals.js +5 -0
- package/dist/cli/install-refusals.js.map +1 -1
- package/dist/cli/install-success.d.ts +17 -0
- package/dist/cli/install-success.d.ts.map +1 -0
- package/dist/cli/install-success.js +13 -0
- package/dist/cli/install-success.js.map +1 -0
- package/dist/cli/marketplace-list.js +1 -1
- package/dist/cli/marketplace-list.js.map +1 -1
- package/dist/cli/marketplace-update.d.ts +3 -1
- package/dist/cli/marketplace-update.d.ts.map +1 -1
- package/dist/cli/marketplace-update.js +5 -0
- package/dist/cli/marketplace-update.js.map +1 -1
- package/dist/cli/restore-set-aside.d.ts +38 -0
- package/dist/cli/restore-set-aside.d.ts.map +1 -0
- package/dist/cli/restore-set-aside.js +25 -0
- package/dist/cli/restore-set-aside.js.map +1 -0
- package/dist/cli/result.d.ts +6 -0
- package/dist/cli/result.d.ts.map +1 -1
- package/dist/cli/result.js +6 -2
- package/dist/cli/result.js.map +1 -1
- package/dist/cli/uninstall-data.d.ts +13 -1
- package/dist/cli/uninstall-data.d.ts.map +1 -1
- package/dist/cli/uninstall-data.js +4 -0
- package/dist/cli/uninstall-data.js.map +1 -1
- package/dist/cli/update-dependencies.d.ts +31 -0
- package/dist/cli/update-dependencies.d.ts.map +1 -0
- package/dist/cli/update-dependencies.js +35 -0
- package/dist/cli/update-dependencies.js.map +1 -0
- package/dist/cli/update-facts.d.ts +12 -0
- package/dist/cli/update-facts.d.ts.map +1 -1
- package/dist/cli/update-plan.d.ts +10 -0
- package/dist/cli/update-plan.d.ts.map +1 -1
- package/dist/cli/update-plan.js +34 -6
- package/dist/cli/update-plan.js.map +1 -1
- package/dist/cli/validate-lists.d.ts +66 -0
- package/dist/cli/validate-lists.d.ts.map +1 -0
- package/dist/cli/validate-lists.js +107 -0
- package/dist/cli/validate-lists.js.map +1 -0
- package/dist/cli/validate-run.d.ts +13 -8
- package/dist/cli/validate-run.d.ts.map +1 -1
- package/dist/cli/validate-run.js +3 -0
- package/dist/cli/validate-run.js.map +1 -1
- package/dist/entry/mods.d.ts +1 -1
- package/dist/entry/mods.d.ts.map +1 -1
- package/dist/entry/mods.js +1 -1
- package/dist/entry/mods.js.map +1 -1
- package/dist/format/add-dir-gate.d.ts +27 -0
- package/dist/format/add-dir-gate.d.ts.map +1 -0
- package/dist/format/add-dir-gate.js +16 -0
- package/dist/format/add-dir-gate.js.map +1 -0
- package/dist/format/agent-scalars.d.ts +5 -8
- package/dist/format/agent-scalars.d.ts.map +1 -1
- package/dist/format/agent-scalars.js +7 -8
- package/dist/format/agent-scalars.js.map +1 -1
- package/dist/format/engines.d.ts +63 -0
- package/dist/format/engines.d.ts.map +1 -0
- package/dist/format/engines.js +78 -0
- package/dist/format/engines.js.map +1 -0
- package/dist/format/hooks-handlers.d.ts.map +1 -1
- package/dist/format/hooks-handlers.js +2 -0
- package/dist/format/hooks-handlers.js.map +1 -1
- package/dist/format/host-errors.d.ts.map +1 -1
- package/dist/format/host-errors.js +1 -1
- package/dist/format/host-errors.js.map +1 -1
- package/dist/format/index.d.ts +4 -1
- package/dist/format/index.d.ts.map +1 -1
- package/dist/format/index.js +4 -1
- package/dist/format/index.js.map +1 -1
- package/dist/format/locate.d.ts +1 -1
- package/dist/format/locate.js +1 -1
- package/dist/format/manifest-schema.d.ts +4 -0
- package/dist/format/manifest-schema.d.ts.map +1 -1
- package/dist/format/manifest-schema.js +3 -0
- package/dist/format/manifest-schema.js.map +1 -1
- package/dist/format/manifest.d.ts +3 -0
- package/dist/format/manifest.d.ts.map +1 -1
- package/dist/format/manifest.js +84 -12
- package/dist/format/manifest.js.map +1 -1
- package/dist/format/marketplace/entries.d.ts.map +1 -1
- package/dist/format/marketplace/entries.js +13 -5
- package/dist/format/marketplace/entries.js.map +1 -1
- package/dist/format/marketplace/entry-display.d.ts +22 -0
- package/dist/format/marketplace/entry-display.d.ts.map +1 -0
- package/dist/format/marketplace/entry-display.js +60 -0
- package/dist/format/marketplace/entry-display.js.map +1 -0
- package/dist/format/marketplace/entry-schema.d.ts +1 -1
- package/dist/format/marketplace/entry-schema.d.ts.map +1 -1
- package/dist/format/marketplace/entry-schema.js +4 -1
- package/dist/format/marketplace/entry-schema.js.map +1 -1
- package/dist/format/marketplace/index.d.ts +2 -1
- package/dist/format/marketplace/index.d.ts.map +1 -1
- package/dist/format/marketplace/index.js +2 -1
- package/dist/format/marketplace/index.js.map +1 -1
- package/dist/format/marketplace/marketplace-name-lists.d.ts +0 -2
- package/dist/format/marketplace/marketplace-name-lists.d.ts.map +1 -1
- package/dist/format/marketplace/marketplace-name-lists.js +0 -9
- package/dist/format/marketplace/marketplace-name-lists.js.map +1 -1
- package/dist/format/marketplace/marketplace-names.d.ts +2 -0
- package/dist/format/marketplace/marketplace-names.d.ts.map +1 -1
- package/dist/format/marketplace/marketplace-names.js +14 -16
- package/dist/format/marketplace/marketplace-names.js.map +1 -1
- package/dist/format/marketplace/plugin-source.d.ts.map +1 -1
- package/dist/format/marketplace/plugin-source.js +9 -4
- package/dist/format/marketplace/plugin-source.js.map +1 -1
- package/dist/format/marketplace/settings-source-plugins.d.ts.map +1 -1
- package/dist/format/marketplace/settings-source-plugins.js +3 -2
- package/dist/format/marketplace/settings-source-plugins.js.map +1 -1
- package/dist/format/marketplace/types.d.ts +11 -0
- package/dist/format/marketplace/types.d.ts.map +1 -1
- package/dist/format/marketplace/types.js.map +1 -1
- package/dist/format/mcp-bundles.js +5 -5
- package/dist/format/mcp-bundles.js.map +1 -1
- package/dist/format/mcp-contract.d.ts +2 -1
- package/dist/format/mcp-contract.d.ts.map +1 -1
- package/dist/format/mcp-contract.js +2 -1
- package/dist/format/mcp-contract.js.map +1 -1
- package/dist/format/mcp-task-timing.d.ts +29 -0
- package/dist/format/mcp-task-timing.d.ts.map +1 -0
- package/dist/format/mcp-task-timing.js +22 -0
- package/dist/format/mcp-task-timing.js.map +1 -0
- package/dist/format/mcp-tool-schema.d.ts +11 -3
- package/dist/format/mcp-tool-schema.d.ts.map +1 -1
- package/dist/format/mcp-tool-schema.js +11 -0
- package/dist/format/mcp-tool-schema.js.map +1 -1
- package/dist/format/network.d.ts +6 -0
- package/dist/format/network.d.ts.map +1 -0
- package/dist/format/network.js +37 -0
- package/dist/format/network.js.map +1 -0
- package/dist/format/plugin-notes.d.ts +15 -0
- package/dist/format/plugin-notes.d.ts.map +1 -0
- package/dist/format/plugin-notes.js +13 -0
- package/dist/format/plugin-notes.js.map +1 -0
- package/dist/format/plugin-settings.d.ts +15 -9
- package/dist/format/plugin-settings.d.ts.map +1 -1
- package/dist/format/plugin-settings.js +11 -8
- package/dist/format/plugin-settings.js.map +1 -1
- package/dist/format/server-paths.d.ts +7 -0
- package/dist/format/server-paths.d.ts.map +1 -0
- package/dist/format/server-paths.js +43 -0
- package/dist/format/server-paths.js.map +1 -0
- package/dist/format/validate/plugin-fields.d.ts +5 -0
- package/dist/format/validate/plugin-fields.d.ts.map +1 -1
- package/dist/format/validate/plugin-fields.js +15 -0
- package/dist/format/validate/plugin-fields.js.map +1 -1
- package/dist/format/validate/plugin-manifest.d.ts.map +1 -1
- package/dist/format/validate/plugin-manifest.js +4 -1
- package/dist/format/validate/plugin-manifest.js.map +1 -1
- package/dist/format/validate/settings-deprecation.d.ts +4 -0
- package/dist/format/validate/settings-deprecation.d.ts.map +1 -0
- package/dist/format/validate/settings-deprecation.js +25 -0
- package/dist/format/validate/settings-deprecation.js.map +1 -0
- package/dist/format/validate/unknown-fields.d.ts.map +1 -1
- package/dist/format/validate/unknown-fields.js +1 -9
- package/dist/format/validate/unknown-fields.js.map +1 -1
- package/dist/foundation/scope-folders.d.ts +3 -1
- package/dist/foundation/scope-folders.d.ts.map +1 -1
- package/dist/foundation/scope-folders.js +3 -1
- package/dist/foundation/scope-folders.js.map +1 -1
- package/dist/hooks/assemble.d.ts.map +1 -1
- package/dist/hooks/assemble.js +8 -1
- package/dist/hooks/assemble.js.map +1 -1
- package/dist/hooks/core/profiles.d.ts +1 -1
- package/dist/hooks/dispatch.d.ts.map +1 -1
- package/dist/hooks/dispatch.js +29 -4
- package/dist/hooks/dispatch.js.map +1 -1
- package/dist/hooks/handlers/context.d.ts +4 -1
- package/dist/hooks/handlers/context.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/http-policy.d.ts +15 -6
- package/dist/hooks/handlers/remote/http-policy.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/http-policy.js +2 -0
- package/dist/hooks/handlers/remote/http-policy.js.map +1 -1
- package/dist/hooks/handlers/remote/http.js +2 -2
- package/dist/hooks/handlers/remote/http.js.map +1 -1
- package/dist/hooks/handlers/remote/mcp-tool.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/mcp-tool.js +20 -1
- package/dist/hooks/handlers/remote/mcp-tool.js.map +1 -1
- package/dist/hooks/handlers/remote/types.d.ts +8 -0
- package/dist/hooks/handlers/remote/types.d.ts.map +1 -1
- package/dist/hooks/input/facts-agents.d.ts +2 -2
- package/dist/hooks/input/facts-agents.d.ts.map +1 -1
- package/dist/hooks/input/facts-agents.js +11 -3
- package/dist/hooks/input/facts-agents.js.map +1 -1
- package/dist/hooks/input/facts.d.ts +2 -2
- package/dist/hooks/outcome.d.ts +31 -0
- package/dist/hooks/outcome.d.ts.map +1 -1
- package/dist/hooks/output/caps.d.ts.map +1 -1
- package/dist/hooks/output/caps.js +4 -3
- package/dist/hooks/output/caps.js.map +1 -1
- package/dist/hooks/output/cowork-answers.d.ts +15 -0
- package/dist/hooks/output/cowork-answers.d.ts.map +1 -0
- package/dist/hooks/output/cowork-answers.js +19 -0
- package/dist/hooks/output/cowork-answers.js.map +1 -0
- package/dist/hooks/output/merge-simple.d.ts.map +1 -1
- package/dist/hooks/output/merge-simple.js +5 -2
- package/dist/hooks/output/merge-simple.js.map +1 -1
- package/dist/hooks/output/merge.d.ts.map +1 -1
- package/dist/hooks/output/merge.js +1 -1
- package/dist/hooks/output/merge.js.map +1 -1
- package/dist/hooks/output/tool-output.d.ts +2 -9
- package/dist/hooks/output/tool-output.d.ts.map +1 -1
- package/dist/hooks/output/tool-output.js +42 -1
- package/dist/hooks/output/tool-output.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-1.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-1.js +3 -0
- package/dist/hooks/output/tool-shapes/shapes-1.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-3.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-3.js +1 -0
- package/dist/hooks/output/tool-shapes/shapes-3.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-4.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-4.js +12 -1
- package/dist/hooks/output/tool-shapes/shapes-4.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-5.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-5.js +9 -1
- package/dist/hooks/output/tool-shapes/shapes-5.js.map +1 -1
- package/dist/hooks/run-all.d.ts.map +1 -1
- package/dist/hooks/run-all.js +1 -0
- package/dist/hooks/run-all.js.map +1 -1
- package/dist/hooks/select/event-catalog.d.ts.map +1 -1
- package/dist/hooks/select/event-catalog.js +4 -1
- package/dist/hooks/select/event-catalog.js.map +1 -1
- package/dist/hooks/select/matcher-values.d.ts +2 -2
- package/dist/hooks/select/matcher-values.d.ts.map +1 -1
- package/dist/hooks/select/matcher-values.js +0 -1
- package/dist/hooks/select/matcher-values.js.map +1 -1
- package/dist/hooks/verdict/exit2.d.ts +5 -0
- package/dist/hooks/verdict/exit2.d.ts.map +1 -1
- package/dist/hooks/verdict/exit2.js +1 -1
- package/dist/hooks/verdict/exit2.js.map +1 -1
- package/dist/hooks/verdict/interpret.d.ts +2 -0
- package/dist/hooks/verdict/interpret.d.ts.map +1 -1
- package/dist/hooks/verdict/interpret.js +5 -5
- package/dist/hooks/verdict/interpret.js.map +1 -1
- package/dist/hooks/verdict/mcp-answer.d.ts +5 -0
- package/dist/hooks/verdict/mcp-answer.d.ts.map +1 -0
- package/dist/hooks/verdict/mcp-answer.js +57 -0
- package/dist/hooks/verdict/mcp-answer.js.map +1 -0
- package/dist/hooks/verdict/model-verdict.d.ts.map +1 -1
- package/dist/hooks/verdict/model-verdict.js +1 -1
- package/dist/hooks/verdict/model-verdict.js.map +1 -1
- package/dist/hooks/verdict/on-failure.d.ts +12 -2
- package/dist/hooks/verdict/on-failure.d.ts.map +1 -1
- package/dist/hooks/verdict/on-failure.js +43 -7
- package/dist/hooks/verdict/on-failure.js.map +1 -1
- package/dist/hooks/verdict/subject.d.ts +2 -0
- package/dist/hooks/verdict/subject.d.ts.map +1 -1
- package/dist/hooks/verdict/suspect-capture.d.ts.map +1 -1
- package/dist/hooks/verdict/suspect-capture.js +6 -1
- package/dist/hooks/verdict/suspect-capture.js.map +1 -1
- package/dist/host/session-agents.d.ts +5 -11
- package/dist/host/session-agents.d.ts.map +1 -1
- package/dist/host/session-agents.js +9 -13
- package/dist/host/session-agents.js.map +1 -1
- package/dist/host/session-bare-repository.d.ts +13 -0
- package/dist/host/session-bare-repository.d.ts.map +1 -0
- package/dist/host/session-bare-repository.js +32 -0
- package/dist/host/session-bare-repository.js.map +1 -0
- package/dist/host/session-engine.d.ts.map +1 -1
- package/dist/host/session-engine.js +2 -1
- package/dist/host/session-engine.js.map +1 -1
- package/dist/host/session-hooks.d.ts.map +1 -1
- package/dist/host/session-hooks.js +15 -1
- package/dist/host/session-hooks.js.map +1 -1
- package/dist/host/session-registry.d.ts +7 -0
- package/dist/host/session-registry.d.ts.map +1 -1
- package/dist/host/session-registry.js +12 -0
- package/dist/host/session-registry.js.map +1 -1
- package/dist/host/session-skill-expand.d.ts +5 -0
- package/dist/host/session-skill-expand.d.ts.map +1 -1
- package/dist/host/session-skill-expand.js +5 -20
- package/dist/host/session-skill-expand.js.map +1 -1
- package/dist/host/session-skill-permission.d.ts +9 -0
- package/dist/host/session-skill-permission.d.ts.map +1 -0
- package/dist/host/session-skill-permission.js +21 -0
- package/dist/host/session-skill-permission.js.map +1 -0
- package/dist/host/session-skills.d.ts.map +1 -1
- package/dist/host/session-skills.js +20 -13
- package/dist/host/session-skills.js.map +1 -1
- package/dist/host/session-types.d.ts +7 -0
- package/dist/host/session-types.d.ts.map +1 -1
- package/dist/host/session.d.ts.map +1 -1
- package/dist/host/session.js +0 -1
- package/dist/host/session.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/loading/load-notes.d.ts +21 -0
- package/dist/loading/load-notes.d.ts.map +1 -0
- package/dist/loading/load-notes.js +34 -0
- package/dist/loading/load-notes.js.map +1 -0
- package/dist/loading/load-plugin.d.ts +12 -0
- package/dist/loading/load-plugin.d.ts.map +1 -1
- package/dist/loading/load-plugin.js +20 -3
- package/dist/loading/load-plugin.js.map +1 -1
- package/dist/loading/manifest-gate.d.ts +1 -1
- package/dist/loading/plugin-folder.d.ts +2 -1
- package/dist/loading/plugin-folder.d.ts.map +1 -1
- package/dist/loading/plugin-folder.js +4 -1
- package/dist/loading/plugin-folder.js.map +1 -1
- package/dist/loading/plugin-model.d.ts +8 -0
- package/dist/loading/plugin-model.d.ts.map +1 -1
- package/dist/loading/validate/marketplace-target.d.ts.map +1 -1
- package/dist/loading/validate/marketplace-target.js +22 -4
- package/dist/loading/validate/marketplace-target.js.map +1 -1
- package/dist/loading/validate/plugin-contents.d.ts.map +1 -1
- package/dist/loading/validate/plugin-contents.js +8 -0
- package/dist/loading/validate/plugin-contents.js.map +1 -1
- package/dist/loading/walk.js +3 -3
- package/dist/loading/walk.js.map +1 -1
- package/dist/marketplace/dependency-graph.d.ts +5 -0
- package/dist/marketplace/dependency-graph.d.ts.map +1 -1
- package/dist/marketplace/dependency-graph.js.map +1 -1
- package/dist/marketplace/dependency-install-plan.d.ts +6 -5
- package/dist/marketplace/dependency-install-plan.d.ts.map +1 -1
- package/dist/marketplace/dependency-install-plan.js +6 -4
- package/dist/marketplace/dependency-install-plan.js.map +1 -1
- package/dist/marketplace/enablement-notes.d.ts +22 -7
- package/dist/marketplace/enablement-notes.d.ts.map +1 -1
- package/dist/marketplace/enablement-notes.js +36 -13
- package/dist/marketplace/enablement-notes.js.map +1 -1
- package/dist/marketplace/headless-report.d.ts +12 -0
- package/dist/marketplace/headless-report.d.ts.map +1 -1
- package/dist/marketplace/headless-report.js +11 -1
- package/dist/marketplace/headless-report.js.map +1 -1
- package/dist/marketplace/index.d.ts +1 -1
- package/dist/marketplace/index.d.ts.map +1 -1
- package/dist/marketplace/index.js +1 -1
- package/dist/marketplace/index.js.map +1 -1
- package/dist/marketplace/install-commands.d.ts +5 -0
- package/dist/marketplace/install-commands.d.ts.map +1 -1
- package/dist/marketplace/install-commands.js +6 -3
- package/dist/marketplace/install-commands.js.map +1 -1
- package/dist/marketplace/install-errors.d.ts +5 -4
- package/dist/marketplace/install-errors.d.ts.map +1 -1
- package/dist/marketplace/install-errors.js +8 -7
- package/dist/marketplace/install-errors.js.map +1 -1
- package/dist/marketplace/install-lifecycle-index.d.ts +4 -2
- package/dist/marketplace/install-lifecycle-index.d.ts.map +1 -1
- package/dist/marketplace/install-lifecycle-index.js +2 -0
- package/dist/marketplace/install-lifecycle-index.js.map +1 -1
- package/dist/marketplace/install-plan.d.ts +2 -0
- package/dist/marketplace/install-plan.d.ts.map +1 -1
- package/dist/marketplace/install-plan.js +5 -0
- package/dist/marketplace/install-plan.js.map +1 -1
- package/dist/marketplace/install-plans.d.ts +3 -3
- package/dist/marketplace/install-plans.d.ts.map +1 -1
- package/dist/marketplace/install-plans.js +3 -4
- package/dist/marketplace/install-plans.js.map +1 -1
- package/dist/marketplace/managed-take-back.d.ts +25 -0
- package/dist/marketplace/managed-take-back.d.ts.map +1 -0
- package/dist/marketplace/managed-take-back.js +24 -0
- package/dist/marketplace/managed-take-back.js.map +1 -0
- package/dist/marketplace/marketplace-fetch-plan.d.ts.map +1 -1
- package/dist/marketplace/marketplace-fetch-plan.js +2 -0
- package/dist/marketplace/marketplace-fetch-plan.js.map +1 -1
- package/dist/marketplace/reload-summary.d.ts +5 -0
- package/dist/marketplace/reload-summary.d.ts.map +1 -1
- package/dist/marketplace/reload-summary.js +8 -3
- package/dist/marketplace/reload-summary.js.map +1 -1
- package/dist/marketplace/removal.d.ts +4 -4
- package/dist/marketplace/removal.d.ts.map +1 -1
- package/dist/marketplace/removal.js +3 -3
- package/dist/marketplace/removal.js.map +1 -1
- package/dist/marketplace/seed-registry.d.ts +7 -5
- package/dist/marketplace/seed-registry.d.ts.map +1 -1
- package/dist/marketplace/seed-registry.js +7 -5
- package/dist/marketplace/seed-registry.js.map +1 -1
- package/dist/marketplace/store-layout.d.ts +9 -3
- package/dist/marketplace/store-layout.d.ts.map +1 -1
- package/dist/marketplace/store-layout.js +9 -4
- package/dist/marketplace/store-layout.js.map +1 -1
- package/dist/marketplace/types.d.ts +5 -0
- package/dist/marketplace/types.d.ts.map +1 -1
- package/dist/mods/api/agent.d.ts.map +1 -1
- package/dist/mods/api/agent.js +28 -0
- package/dist/mods/api/agent.js.map +1 -1
- package/dist/mods/api/audio.d.ts.map +1 -1
- package/dist/mods/api/audio.js +19 -5
- package/dist/mods/api/audio.js.map +1 -1
- package/dist/mods/api/build.d.ts +1 -1
- package/dist/mods/api/build.d.ts.map +1 -1
- package/dist/mods/api/build.js +6 -2
- package/dist/mods/api/build.js.map +1 -1
- package/dist/mods/api/call.d.ts.map +1 -1
- package/dist/mods/api/call.js +7 -0
- package/dist/mods/api/call.js.map +1 -1
- package/dist/mods/api/command.d.ts +11 -0
- package/dist/mods/api/command.d.ts.map +1 -1
- package/dist/mods/api/command.js +19 -1
- package/dist/mods/api/command.js.map +1 -1
- package/dist/mods/api/declared-port-types.d.ts +116 -0
- package/dist/mods/api/declared-port-types.d.ts.map +1 -0
- package/dist/mods/api/declared-port-types.js +31 -0
- package/dist/mods/api/declared-port-types.js.map +1 -0
- package/dist/mods/api/engine-create.d.ts +2 -0
- package/dist/mods/api/engine-create.d.ts.map +1 -1
- package/dist/mods/api/engine-create.js +6 -0
- package/dist/mods/api/engine-create.js.map +1 -1
- package/dist/mods/api/exec.d.ts.map +1 -1
- package/dist/mods/api/exec.js +3 -0
- package/dist/mods/api/exec.js.map +1 -1
- package/dist/mods/api/fs-ports.d.ts +8 -2
- package/dist/mods/api/fs-ports.d.ts.map +1 -1
- package/dist/mods/api/fs.d.ts.map +1 -1
- package/dist/mods/api/fs.js +26 -7
- package/dist/mods/api/fs.js.map +1 -1
- package/dist/mods/api/gate.d.ts +3 -3
- package/dist/mods/api/gate.d.ts.map +1 -1
- package/dist/mods/api/gate.js +3 -3
- package/dist/mods/api/gate.js.map +1 -1
- package/dist/mods/api/host-ports.d.ts +2 -1
- package/dist/mods/api/host-ports.d.ts.map +1 -1
- package/dist/mods/api/host-ports.js +15 -0
- package/dist/mods/api/host-ports.js.map +1 -1
- package/dist/mods/api/index.d.ts +4 -3
- package/dist/mods/api/index.d.ts.map +1 -1
- package/dist/mods/api/index.js +3 -2
- package/dist/mods/api/index.js.map +1 -1
- package/dist/mods/api/mcp.d.ts.map +1 -1
- package/dist/mods/api/mcp.js +6 -1
- package/dist/mods/api/mcp.js.map +1 -1
- package/dist/mods/api/optional-port-types.d.ts +52 -18
- package/dist/mods/api/optional-port-types.d.ts.map +1 -1
- package/dist/mods/api/ports.d.ts +5 -42
- package/dist/mods/api/ports.d.ts.map +1 -1
- package/dist/mods/api/ports.js.map +1 -1
- package/dist/mods/api/registries.d.ts +9 -10
- package/dist/mods/api/registries.d.ts.map +1 -1
- package/dist/mods/api/registries.js +8 -8
- package/dist/mods/api/registries.js.map +1 -1
- package/dist/mods/api/session-ports.d.ts +54 -0
- package/dist/mods/api/session-ports.d.ts.map +1 -0
- package/dist/mods/api/session-ports.js +2 -0
- package/dist/mods/api/session-ports.js.map +1 -0
- package/dist/mods/api/session.d.ts.map +1 -1
- package/dist/mods/api/session.js +28 -2
- package/dist/mods/api/session.js.map +1 -1
- package/dist/mods/api/theme.d.ts +11 -4
- package/dist/mods/api/theme.d.ts.map +1 -1
- package/dist/mods/api/theme.js +116 -30
- package/dist/mods/api/theme.js.map +1 -1
- package/dist/mods/api/vcs.d.ts +4 -0
- package/dist/mods/api/vcs.d.ts.map +1 -0
- package/dist/mods/api/vcs.js +60 -0
- package/dist/mods/api/vcs.js.map +1 -0
- package/dist/mods/api/wasm.d.ts +4 -0
- package/dist/mods/api/wasm.d.ts.map +1 -0
- package/dist/mods/api/wasm.js +69 -0
- package/dist/mods/api/wasm.js.map +1 -0
- package/dist/mods/chain/api-guard.d.ts +10 -1
- package/dist/mods/chain/api-guard.d.ts.map +1 -1
- package/dist/mods/chain/api-guard.js +23 -7
- package/dist/mods/chain/api-guard.js.map +1 -1
- package/dist/mods/chain/context.d.ts +6 -0
- package/dist/mods/chain/context.d.ts.map +1 -1
- package/dist/mods/chain/context.js +6 -0
- package/dist/mods/chain/context.js.map +1 -1
- package/dist/mods/chain/default-matcher.d.ts +11 -0
- package/dist/mods/chain/default-matcher.d.ts.map +1 -0
- package/dist/mods/chain/default-matcher.js +61 -0
- package/dist/mods/chain/default-matcher.js.map +1 -0
- package/dist/mods/chain/dispatch.d.ts.map +1 -1
- package/dist/mods/chain/dispatch.js +19 -1
- package/dist/mods/chain/dispatch.js.map +1 -1
- package/dist/mods/chain/failure.d.ts +2 -0
- package/dist/mods/chain/failure.d.ts.map +1 -1
- package/dist/mods/chain/failure.js +6 -0
- package/dist/mods/chain/failure.js.map +1 -1
- package/dist/mods/chain/guarded.d.ts +2 -0
- package/dist/mods/chain/guarded.d.ts.map +1 -1
- package/dist/mods/chain/guarded.js +6 -2
- package/dist/mods/chain/guarded.js.map +1 -1
- package/dist/mods/chain/invoke.d.ts.map +1 -1
- package/dist/mods/chain/invoke.js +25 -5
- package/dist/mods/chain/invoke.js.map +1 -1
- package/dist/mods/chain/validate.d.ts.map +1 -1
- package/dist/mods/chain/validate.js +2 -1
- package/dist/mods/chain/validate.js.map +1 -1
- package/dist/mods/events/agent.d.ts.map +1 -1
- package/dist/mods/events/agent.js +7 -3
- package/dist/mods/events/agent.js.map +1 -1
- package/dist/mods/events/declared.d.ts +12 -0
- package/dist/mods/events/declared.d.ts.map +1 -0
- package/dist/mods/events/declared.js +43 -0
- package/dist/mods/events/declared.js.map +1 -0
- package/dist/mods/events/index.d.ts +6 -0
- package/dist/mods/events/index.d.ts.map +1 -1
- package/dist/mods/events/index.js +4 -1
- package/dist/mods/events/index.js.map +1 -1
- package/dist/mods/events/pinned.d.ts +7 -0
- package/dist/mods/events/pinned.d.ts.map +1 -0
- package/dist/mods/events/pinned.js +21 -0
- package/dist/mods/events/pinned.js.map +1 -0
- package/dist/mods/events/session.d.ts.map +1 -1
- package/dist/mods/events/session.js +17 -4
- package/dist/mods/events/session.js.map +1 -1
- package/dist/mods/events/spec.d.ts +2 -0
- package/dist/mods/events/spec.d.ts.map +1 -1
- package/dist/mods/events/spec.js.map +1 -1
- package/dist/mods/events/tool.d.ts +2 -2
- package/dist/mods/events/tool.d.ts.map +1 -1
- package/dist/mods/events/tool.js +50 -10
- package/dist/mods/events/tool.js.map +1 -1
- package/dist/mods/events/turn.d.ts.map +1 -1
- package/dist/mods/events/turn.js +12 -1
- package/dist/mods/events/turn.js.map +1 -1
- package/dist/mods/load/auto-mode-approval.d.ts +6 -9
- package/dist/mods/load/auto-mode-approval.d.ts.map +1 -1
- package/dist/mods/load/auto-mode-approval.js +1 -1
- package/dist/mods/load/auto-mode-approval.js.map +1 -1
- package/dist/mods/load/commands/module-facts.d.ts +22 -0
- package/dist/mods/load/commands/module-facts.d.ts.map +1 -0
- package/dist/mods/load/commands/module-facts.js +18 -0
- package/dist/mods/load/commands/module-facts.js.map +1 -0
- package/dist/mods/load/commands/scan-lead.d.ts +2 -0
- package/dist/mods/load/commands/scan-lead.d.ts.map +1 -1
- package/dist/mods/load/commands/scan-lead.js +5 -2
- package/dist/mods/load/commands/scan-lead.js.map +1 -1
- package/dist/mods/load/commands/scan-lines.d.ts.map +1 -1
- package/dist/mods/load/commands/scan-lines.js +32 -1
- package/dist/mods/load/commands/scan-lines.js.map +1 -1
- package/dist/mods/load/commands/sha256.d.ts +7 -0
- package/dist/mods/load/commands/sha256.d.ts.map +1 -0
- package/dist/mods/load/commands/sha256.js +75 -0
- package/dist/mods/load/commands/sha256.js.map +1 -0
- package/dist/mods/load/commands/validate-report.d.ts +9 -0
- package/dist/mods/load/commands/validate-report.d.ts.map +1 -1
- package/dist/mods/load/commands/validate.d.ts.map +1 -1
- package/dist/mods/load/commands/validate.js +23 -16
- package/dist/mods/load/commands/validate.js.map +1 -1
- package/dist/mods/load/commands/wasm-read.d.ts +21 -0
- package/dist/mods/load/commands/wasm-read.d.ts.map +1 -0
- package/dist/mods/load/commands/wasm-read.js +169 -0
- package/dist/mods/load/commands/wasm-read.js.map +1 -0
- package/dist/mods/load/guard-protection.d.ts +7 -0
- package/dist/mods/load/guard-protection.d.ts.map +1 -1
- package/dist/mods/load/guard-protection.js +8 -3
- package/dist/mods/load/guard-protection.js.map +1 -1
- package/dist/mods/load/guard-surfaces.d.ts.map +1 -1
- package/dist/mods/load/guard-surfaces.js +2 -0
- package/dist/mods/load/guard-surfaces.js.map +1 -1
- package/dist/mods/load/guard-tools.d.ts +25 -0
- package/dist/mods/load/guard-tools.d.ts.map +1 -0
- package/dist/mods/load/guard-tools.js +29 -0
- package/dist/mods/load/guard-tools.js.map +1 -0
- package/dist/mods/load/guard.d.ts +3 -0
- package/dist/mods/load/guard.d.ts.map +1 -1
- package/dist/mods/load/guard.js +19 -8
- package/dist/mods/load/guard.js.map +1 -1
- package/dist/mods/load/host-support.d.ts +16 -3
- package/dist/mods/load/host-support.d.ts.map +1 -1
- package/dist/mods/load/host-support.js +28 -7
- package/dist/mods/load/host-support.js.map +1 -1
- package/dist/mods/load/host.d.ts +15 -2
- package/dist/mods/load/host.d.ts.map +1 -1
- package/dist/mods/load/host.js +4 -3
- package/dist/mods/load/host.js.map +1 -1
- package/dist/mods/load/in-turn.d.ts +6 -0
- package/dist/mods/load/in-turn.d.ts.map +1 -0
- package/dist/mods/load/in-turn.js +13 -0
- package/dist/mods/load/in-turn.js.map +1 -0
- package/dist/mods/load/index.d.ts +6 -3
- package/dist/mods/load/index.d.ts.map +1 -1
- package/dist/mods/load/index.js +4 -3
- package/dist/mods/load/index.js.map +1 -1
- package/dist/mods/load/loader.d.ts +13 -2
- package/dist/mods/load/loader.d.ts.map +1 -1
- package/dist/mods/load/loader.js +14 -10
- package/dist/mods/load/loader.js.map +1 -1
- package/dist/mods/load/mod-set.d.ts +3 -0
- package/dist/mods/load/mod-set.d.ts.map +1 -1
- package/dist/mods/load/mod-set.js +6 -15
- package/dist/mods/load/mod-set.js.map +1 -1
- package/dist/mods/load/order.js +2 -2
- package/dist/mods/load/order.js.map +1 -1
- package/dist/mods/load/plugin-dirs.d.ts +14 -4
- package/dist/mods/load/plugin-dirs.d.ts.map +1 -1
- package/dist/mods/load/plugin-dirs.js +14 -9
- package/dist/mods/load/plugin-dirs.js.map +1 -1
- package/dist/mods/load/policy.d.ts +12 -8
- package/dist/mods/load/policy.d.ts.map +1 -1
- package/dist/mods/load/policy.js +47 -19
- package/dist/mods/load/policy.js.map +1 -1
- package/dist/mods/load/prepare.d.ts +4 -0
- package/dist/mods/load/prepare.d.ts.map +1 -1
- package/dist/mods/load/prepare.js +21 -3
- package/dist/mods/load/prepare.js.map +1 -1
- package/dist/mods/load/provides.d.ts +25 -0
- package/dist/mods/load/provides.d.ts.map +1 -0
- package/dist/mods/load/provides.js +128 -0
- package/dist/mods/load/provides.js.map +1 -0
- package/dist/mods/load/register-ask.d.ts +32 -0
- package/dist/mods/load/register-ask.d.ts.map +1 -0
- package/dist/mods/load/register-ask.js +45 -0
- package/dist/mods/load/register-ask.js.map +1 -0
- package/dist/mods/load/register-call.d.ts +23 -13
- package/dist/mods/load/register-call.d.ts.map +1 -1
- package/dist/mods/load/register-call.js +69 -23
- package/dist/mods/load/register-call.js.map +1 -1
- package/dist/mods/load/register-event.d.ts +70 -0
- package/dist/mods/load/register-event.d.ts.map +1 -0
- package/dist/mods/load/register-event.js +35 -0
- package/dist/mods/load/register-event.js.map +1 -0
- package/dist/mods/load/scan/client-modules.d.ts +2 -0
- package/dist/mods/load/scan/client-modules.d.ts.map +1 -1
- package/dist/mods/load/scan/client-modules.js +1 -1
- package/dist/mods/load/scan/client-modules.js.map +1 -1
- package/dist/mods/load/scan/event-names.d.ts.map +1 -1
- package/dist/mods/load/scan/event-names.js +2 -0
- package/dist/mods/load/scan/event-names.js.map +1 -1
- package/dist/mods/load/scan/found.d.ts +5 -0
- package/dist/mods/load/scan/found.d.ts.map +1 -1
- package/dist/mods/load/scan/found.js +3 -0
- package/dist/mods/load/scan/found.js.map +1 -1
- package/dist/mods/load/scan/hosts.d.ts +5 -0
- package/dist/mods/load/scan/hosts.d.ts.map +1 -0
- package/dist/mods/load/scan/hosts.js +44 -0
- package/dist/mods/load/scan/hosts.js.map +1 -0
- package/dist/mods/load/scan/index.d.ts +1 -0
- package/dist/mods/load/scan/index.d.ts.map +1 -1
- package/dist/mods/load/scan/index.js +7 -0
- package/dist/mods/load/scan/index.js.map +1 -1
- package/dist/mods/load/scan/rules.d.ts.map +1 -1
- package/dist/mods/load/scan/rules.js +4 -0
- package/dist/mods/load/scan/rules.js.map +1 -1
- package/dist/mods/load/scan/uses.d.ts +8 -0
- package/dist/mods/load/scan/uses.d.ts.map +1 -1
- package/dist/mods/load/scan/uses.js +2 -0
- package/dist/mods/load/scan/uses.js.map +1 -1
- package/dist/mods/load/scan/wasm-paths.d.ts +17 -0
- package/dist/mods/load/scan/wasm-paths.d.ts.map +1 -0
- package/dist/mods/load/scan/wasm-paths.js +16 -0
- package/dist/mods/load/scan/wasm-paths.js.map +1 -0
- package/dist/mods/load/tool-flow.d.ts +1 -1
- package/dist/mods/load/tool-flow.d.ts.map +1 -1
- package/dist/mods/load/tool-flow.js +15 -2
- package/dist/mods/load/tool-flow.js.map +1 -1
- package/dist/mods/load/wasm-files.d.ts +35 -0
- package/dist/mods/load/wasm-files.d.ts.map +1 -0
- package/dist/mods/load/wasm-files.js +40 -0
- package/dist/mods/load/wasm-files.js.map +1 -0
- package/dist/mods/load/wiring.d.ts.map +1 -1
- package/dist/mods/load/wiring.js +20 -8
- package/dist/mods/load/wiring.js.map +1 -1
- package/dist/mods/load/written-mods.d.ts +16 -3
- package/dist/mods/load/written-mods.d.ts.map +1 -1
- package/dist/mods/load/written-mods.js +26 -25
- package/dist/mods/load/written-mods.js.map +1 -1
- package/dist/mods/types.d.ts +10 -9
- package/dist/mods/types.d.ts.map +1 -1
- package/dist/mods/ui/controls/hotkeys.d.ts +8 -0
- package/dist/mods/ui/controls/hotkeys.d.ts.map +1 -1
- package/dist/mods/ui/controls/hotkeys.js +30 -3
- package/dist/mods/ui/controls/hotkeys.js.map +1 -1
- package/dist/mods/ui/elements/box.d.ts.map +1 -1
- package/dist/mods/ui/elements/box.js +5 -2
- package/dist/mods/ui/elements/box.js.map +1 -1
- package/dist/mods/ui/elements/limits.d.ts.map +1 -1
- package/dist/mods/ui/elements/limits.js +5 -3
- package/dist/mods/ui/elements/limits.js.map +1 -1
- package/dist/mods/ui/elements/progress.d.ts +8 -0
- package/dist/mods/ui/elements/progress.d.ts.map +1 -0
- package/dist/mods/ui/elements/progress.js +17 -0
- package/dist/mods/ui/elements/progress.js.map +1 -0
- package/dist/mods/ui/elements/prop-size.d.ts +10 -0
- package/dist/mods/ui/elements/prop-size.d.ts.map +1 -0
- package/dist/mods/ui/elements/prop-size.js +34 -0
- package/dist/mods/ui/elements/prop-size.js.map +1 -0
- package/dist/mods/ui/elements/registry.d.ts.map +1 -1
- package/dist/mods/ui/elements/registry.js +4 -0
- package/dist/mods/ui/elements/registry.js.map +1 -1
- package/dist/mods/ui/elements/shader-place.d.ts +8 -0
- package/dist/mods/ui/elements/shader-place.d.ts.map +1 -0
- package/dist/mods/ui/elements/shader-place.js +36 -0
- package/dist/mods/ui/elements/shader-place.js.map +1 -0
- package/dist/mods/ui/elements/shader.d.ts +11 -0
- package/dist/mods/ui/elements/shader.d.ts.map +1 -0
- package/dist/mods/ui/elements/shader.js +28 -0
- package/dist/mods/ui/elements/shader.js.map +1 -0
- package/dist/mods/ui/elements/svg.d.ts +3 -0
- package/dist/mods/ui/elements/svg.d.ts.map +1 -1
- package/dist/mods/ui/elements/svg.js +2 -0
- package/dist/mods/ui/elements/svg.js.map +1 -1
- package/dist/mods/ui/elements/table.d.ts.map +1 -1
- package/dist/mods/ui/elements/table.js +2 -0
- package/dist/mods/ui/elements/table.js.map +1 -1
- package/dist/mods/ui/elements/text.d.ts.map +1 -1
- package/dist/mods/ui/elements/text.js +7 -1
- package/dist/mods/ui/elements/text.js.map +1 -1
- package/dist/mods/ui/elements/validate.d.ts.map +1 -1
- package/dist/mods/ui/elements/validate.js +3 -1
- package/dist/mods/ui/elements/validate.js.map +1 -1
- package/dist/mods/ui/index.d.ts +1 -0
- package/dist/mods/ui/index.d.ts.map +1 -1
- package/dist/mods/ui/index.js.map +1 -1
- package/dist/mods/ui/keyboard/keys.d.ts +3 -0
- package/dist/mods/ui/keyboard/keys.d.ts.map +1 -1
- package/dist/mods/ui/keyboard/keys.js.map +1 -1
- package/dist/mods/ui/panes/open.d.ts +2 -0
- package/dist/mods/ui/panes/open.d.ts.map +1 -1
- package/dist/mods/ui/panes/open.js +3 -1
- package/dist/mods/ui/panes/open.js.map +1 -1
- package/dist/mods/ui/panes/pane-request.d.ts +9 -0
- package/dist/mods/ui/panes/pane-request.d.ts.map +1 -0
- package/dist/mods/ui/panes/pane-request.js +19 -0
- package/dist/mods/ui/panes/pane-request.js.map +1 -0
- package/dist/mods/ui/panes/registry.d.ts +1 -1
- package/dist/mods/ui/panes/registry.d.ts.map +1 -1
- package/dist/mods/ui/panes/registry.js +4 -0
- package/dist/mods/ui/panes/registry.js.map +1 -1
- package/dist/mods/ui/rules.d.ts.map +1 -1
- package/dist/mods/ui/rules.js +3 -0
- package/dist/mods/ui/rules.js.map +1 -1
- package/dist/mods/ui/runtime.d.ts +6 -0
- package/dist/mods/ui/runtime.d.ts.map +1 -1
- package/dist/mods/ui/runtime.js +25 -9
- package/dist/mods/ui/runtime.js.map +1 -1
- package/dist/mods/ui/sites/agent-row.d.ts +7 -0
- package/dist/mods/ui/sites/agent-row.d.ts.map +1 -0
- package/dist/mods/ui/sites/agent-row.js +22 -0
- package/dist/mods/ui/sites/agent-row.js.map +1 -0
- package/dist/mods/ui/sites/backdrop.d.ts +2 -2
- package/dist/mods/ui/sites/backdrop.js +2 -2
- package/dist/mods/ui/sites/band-list.d.ts +10 -0
- package/dist/mods/ui/sites/band-list.d.ts.map +1 -0
- package/dist/mods/ui/sites/band-list.js +41 -0
- package/dist/mods/ui/sites/band-list.js.map +1 -0
- package/dist/mods/ui/sites/band-rows.d.ts +33 -0
- package/dist/mods/ui/sites/band-rows.d.ts.map +1 -0
- package/dist/mods/ui/sites/band-rows.js +61 -0
- package/dist/mods/ui/sites/band-rows.js.map +1 -0
- package/dist/mods/ui/sites/fold.d.ts +2 -0
- package/dist/mods/ui/sites/fold.d.ts.map +1 -1
- package/dist/mods/ui/sites/fold.js +2 -2
- package/dist/mods/ui/sites/fold.js.map +1 -1
- package/dist/mods/ui/sites/registry.d.ts +8 -1
- package/dist/mods/ui/sites/registry.d.ts.map +1 -1
- package/dist/mods/ui/sites/registry.js +21 -14
- package/dist/mods/ui/sites/registry.js.map +1 -1
- package/dist/ports/files.d.ts +1 -1
- package/dist/ports/mcp-bundle.d.ts +3 -2
- package/dist/ports/mcp-bundle.d.ts.map +1 -1
- package/dist/ports/mcp-caller.d.ts +7 -0
- package/dist/ports/mcp-caller.d.ts.map +1 -1
- package/dist/protocol/mods-api-names.d.ts +20 -8
- package/dist/protocol/mods-api-names.d.ts.map +1 -1
- package/dist/protocol/mods-api-names.js +16 -4
- package/dist/protocol/mods-api-names.js.map +1 -1
- package/dist/protocol/mods-events.d.ts +11 -8
- package/dist/protocol/mods-events.d.ts.map +1 -1
- package/dist/protocol/mods-events.js +14 -5
- package/dist/protocol/mods-events.js.map +1 -1
- package/dist/protocol/mods-limits.d.ts +9 -1
- package/dist/protocol/mods-limits.d.ts.map +1 -1
- package/dist/protocol/mods-limits.js +9 -1
- package/dist/protocol/mods-limits.js.map +1 -1
- package/dist/protocol/mods-ui-names.d.ts +42 -11
- package/dist/protocol/mods-ui-names.d.ts.map +1 -1
- package/dist/protocol/mods-ui-names.js +62 -8
- package/dist/protocol/mods-ui-names.js.map +1 -1
- package/dist/protocol/official.d.ts +1 -1
- package/dist/protocol/official.d.ts.map +1 -1
- package/dist/protocol/tool-names.d.ts +12 -5
- package/dist/protocol/tool-names.d.ts.map +1 -1
- package/dist/protocol/tool-names.js +21 -2
- package/dist/protocol/tool-names.js.map +1 -1
- package/dist/rules/bash/wrappers.d.ts +2 -0
- package/dist/rules/bash/wrappers.d.ts.map +1 -1
- package/dist/rules/bash/wrappers.js +2 -0
- package/dist/rules/bash/wrappers.js.map +1 -1
- package/dist/rules/decide/auto-dropped.d.ts.map +1 -1
- package/dist/rules/decide/auto-dropped.js +23 -4
- package/dist/rules/decide/auto-dropped.js.map +1 -1
- package/dist/rules/decide/context.d.ts +5 -2
- package/dist/rules/decide/context.d.ts.map +1 -1
- package/dist/rules/decide/decide.d.ts.map +1 -1
- package/dist/rules/decide/decide.js +11 -0
- package/dist/rules/decide/decide.js.map +1 -1
- package/dist/rules/decide/facts.js +3 -3
- package/dist/rules/decide/facts.js.map +1 -1
- package/dist/rules/decide/modes.d.ts +7 -0
- package/dist/rules/decide/modes.d.ts.map +1 -1
- package/dist/rules/decide/modes.js +5 -0
- package/dist/rules/decide/modes.js.map +1 -1
- package/dist/rules/tools/catalog.d.ts.map +1 -1
- package/dist/rules/tools/catalog.js +13 -3
- package/dist/rules/tools/catalog.js.map +1 -1
- package/dist/rules/types.d.ts +6 -0
- package/dist/rules/types.d.ts.map +1 -1
- package/dist/settings/add-dir-layer.d.ts +17 -0
- package/dist/settings/add-dir-layer.d.ts.map +1 -0
- package/dist/settings/add-dir-layer.js +20 -0
- package/dist/settings/add-dir-layer.js.map +1 -0
- package/dist/settings/env/code-mode.d.ts +21 -0
- package/dist/settings/env/code-mode.d.ts.map +1 -0
- package/dist/settings/env/code-mode.js +8 -0
- package/dist/settings/env/code-mode.js.map +1 -0
- package/dist/settings/env/ignored-variables.d.ts +1 -1
- package/dist/settings/env/ignored-variables.d.ts.map +1 -1
- package/dist/settings/env/ignored-variables.js +7 -0
- package/dist/settings/env/ignored-variables.js.map +1 -1
- package/dist/settings/env/index.d.ts +1 -0
- package/dist/settings/env/index.d.ts.map +1 -1
- package/dist/settings/env/index.js +1 -0
- package/dist/settings/env/index.js.map +1 -1
- package/dist/settings/general/checks.d.ts.map +1 -1
- package/dist/settings/general/checks.js +0 -1
- package/dist/settings/general/checks.js.map +1 -1
- package/dist/settings/general/command-lines.d.ts +1 -20
- package/dist/settings/general/command-lines.d.ts.map +1 -1
- package/dist/settings/general/command-lines.js +1 -15
- package/dist/settings/general/command-lines.js.map +1 -1
- package/dist/settings/general/edit-effect.d.ts +10 -1
- package/dist/settings/general/edit-effect.d.ts.map +1 -1
- package/dist/settings/general/edit-effect.js +8 -1
- package/dist/settings/general/edit-effect.js.map +1 -1
- package/dist/settings/general/index.d.ts +2 -3
- package/dist/settings/general/index.d.ts.map +1 -1
- package/dist/settings/general/index.js +1 -2
- package/dist/settings/general/index.js.map +1 -1
- package/dist/settings/general/keys.d.ts +1 -2
- package/dist/settings/general/keys.d.ts.map +1 -1
- package/dist/settings/general/keys.js +0 -1
- package/dist/settings/general/keys.js.map +1 -1
- package/dist/settings/general/plugin-defaults.d.ts +15 -4
- package/dist/settings/general/plugin-defaults.d.ts.map +1 -1
- package/dist/settings/general/plugin-defaults.js +11 -10
- package/dist/settings/general/plugin-defaults.js.map +1 -1
- package/dist/settings/general/rows.d.ts.map +1 -1
- package/dist/settings/general/rows.js +0 -1
- package/dist/settings/general/rows.js.map +1 -1
- package/dist/settings/hooks/custom-commands.d.ts +1 -2
- package/dist/settings/hooks/custom-commands.d.ts.map +1 -1
- package/dist/settings/hooks/custom-commands.js +1 -1
- package/dist/settings/hooks/custom-commands.js.map +1 -1
- package/dist/settings/hooks/http-policy.d.ts +17 -4
- package/dist/settings/hooks/http-policy.d.ts.map +1 -1
- package/dist/settings/hooks/http-policy.js +25 -6
- package/dist/settings/hooks/http-policy.js.map +1 -1
- package/dist/settings/hooks/index.d.ts +1 -1
- package/dist/settings/hooks/index.d.ts.map +1 -1
- package/dist/settings/hooks/index.js.map +1 -1
- package/dist/settings/hooks/policy.d.ts +1 -1
- package/dist/settings/hooks/policy.js +1 -1
- package/dist/settings/hooks/policy.js.map +1 -1
- package/dist/settings/hooks/session-gates.d.ts +11 -6
- package/dist/settings/hooks/session-gates.d.ts.map +1 -1
- package/dist/settings/hooks/session-gates.js +3 -7
- package/dist/settings/hooks/session-gates.js.map +1 -1
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.d.ts.map +1 -1
- package/dist/settings/index.js +1 -0
- package/dist/settings/index.js.map +1 -1
- package/dist/settings/managed/compose.d.ts +0 -6
- package/dist/settings/managed/compose.d.ts.map +1 -1
- package/dist/settings/managed/compose.js +4 -25
- package/dist/settings/managed/compose.js.map +1 -1
- package/dist/settings/managed/helper-run.js +1 -1
- package/dist/settings/managed/helper-run.js.map +1 -1
- package/dist/settings/managed/helper-settings.d.ts +9 -0
- package/dist/settings/managed/helper-settings.d.ts.map +1 -0
- package/dist/settings/managed/helper-settings.js +26 -0
- package/dist/settings/managed/helper-settings.js.map +1 -0
- package/dist/settings/managed/index.d.ts +4 -1
- package/dist/settings/managed/index.d.ts.map +1 -1
- package/dist/settings/managed/index.js +4 -1
- package/dist/settings/managed/index.js.map +1 -1
- package/dist/settings/managed/login-keys.d.ts +4 -0
- package/dist/settings/managed/login-keys.d.ts.map +1 -1
- package/dist/settings/managed/login-keys.js +17 -0
- package/dist/settings/managed/login-keys.js.map +1 -1
- package/dist/settings/managed/ports.d.ts +8 -1
- package/dist/settings/managed/ports.d.ts.map +1 -1
- package/dist/settings/managed/server-cache.d.ts +56 -0
- package/dist/settings/managed/server-cache.d.ts.map +1 -0
- package/dist/settings/managed/server-cache.js +27 -0
- package/dist/settings/managed/server-cache.js.map +1 -0
- package/dist/settings/managed/server-groups.d.ts +34 -0
- package/dist/settings/managed/server-groups.d.ts.map +1 -0
- package/dist/settings/managed/server-groups.js +28 -0
- package/dist/settings/managed/server-groups.js.map +1 -0
- package/dist/settings/mcp/exclusive.d.ts +5 -1
- package/dist/settings/mcp/exclusive.d.ts.map +1 -1
- package/dist/settings/mcp/exclusive.js +4 -2
- package/dist/settings/mcp/exclusive.js.map +1 -1
- package/dist/settings/mcp/scope.d.ts +5 -0
- package/dist/settings/mcp/scope.d.ts.map +1 -1
- package/dist/settings/mcp/scope.js +5 -0
- package/dist/settings/mcp/scope.js.map +1 -1
- package/dist/settings/permissions/default-mode.d.ts +0 -1
- package/dist/settings/permissions/default-mode.d.ts.map +1 -1
- package/dist/settings/permissions/default-mode.js +2 -2
- package/dist/settings/permissions/default-mode.js.map +1 -1
- package/dist/skills/bare-repository.d.ts +9 -0
- package/dist/skills/bare-repository.d.ts.map +1 -0
- package/dist/skills/bare-repository.js +11 -0
- package/dist/skills/bare-repository.js.map +1 -0
- package/dist/skills/execution.d.ts +1 -1
- package/dist/skills/execution.d.ts.map +1 -1
- package/dist/skills/expand-shell.d.ts.map +1 -1
- package/dist/skills/expand-shell.js +1 -0
- package/dist/skills/expand-shell.js.map +1 -1
- package/dist/skills/expand-types.d.ts +5 -0
- package/dist/skills/expand-types.d.ts.map +1 -1
- package/dist/skills/index.d.ts +1 -0
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +1 -0
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/invocation.d.ts.map +1 -1
- package/dist/skills/invocation.js +4 -3
- package/dist/skills/invocation.js.map +1 -1
- package/dist/skills/path-gate.d.ts +11 -2
- package/dist/skills/path-gate.d.ts.map +1 -1
- package/dist/skills/path-gate.js +17 -2
- package/dist/skills/path-gate.js.map +1 -1
- package/dist/skills/shell-run.d.ts +5 -0
- package/dist/skills/shell-run.d.ts.map +1 -1
- package/dist/skills/shell-run.js +18 -1
- package/dist/skills/shell-run.js.map +1 -1
- package/dist/testing/mods/expect-equal.d.ts +24 -0
- package/dist/testing/mods/expect-equal.d.ts.map +1 -0
- package/dist/testing/mods/expect-equal.js +55 -0
- package/dist/testing/mods/expect-equal.js.map +1 -0
- package/dist/testing/mods/expect-matchers.d.ts +111 -0
- package/dist/testing/mods/expect-matchers.d.ts.map +1 -0
- package/dist/testing/mods/expect-matchers.js +111 -0
- package/dist/testing/mods/expect-matchers.js.map +1 -0
- package/dist/testing/mods/expect.d.ts +27 -44
- package/dist/testing/mods/expect.d.ts.map +1 -1
- package/dist/testing/mods/expect.js +70 -97
- package/dist/testing/mods/expect.js.map +1 -1
- package/dist/testing/mods/fake-ports.d.ts.map +1 -1
- package/dist/testing/mods/fake-ports.js +12 -0
- package/dist/testing/mods/fake-ports.js.map +1 -1
- package/dist/testing/mods/kit.d.ts.map +1 -1
- package/dist/testing/mods/kit.js +7 -2
- package/dist/testing/mods/kit.js.map +1 -1
- package/dist/testing/mods/mock.d.ts +3 -2
- package/dist/testing/mods/mock.d.ts.map +1 -1
- package/dist/testing/mods/mock.js.map +1 -1
- package/dist/testing/mods/mount.d.ts +2 -0
- package/dist/testing/mods/mount.d.ts.map +1 -1
- package/dist/testing/mods/mount.js +30 -3
- package/dist/testing/mods/mount.js.map +1 -1
- package/dist/testing/mods/stub-matcher.d.ts +9 -0
- package/dist/testing/mods/stub-matcher.d.ts.map +1 -0
- package/dist/testing/mods/stub-matcher.js +24 -0
- package/dist/testing/mods/stub-matcher.js.map +1 -0
- package/dist/testing/mods/stubs.d.ts +4 -1
- package/dist/testing/mods/stubs.d.ts.map +1 -1
- package/dist/testing/mods/stubs.js +10 -5
- package/dist/testing/mods/stubs.js.map +1 -1
- package/dist/testing/mods/world.d.ts +2 -1
- package/dist/testing/mods/world.d.ts.map +1 -1
- package/dist/testing/mods/world.js +2 -2
- package/dist/testing/mods/world.js.map +1 -1
- package/package.json +3 -3
- package/src/agents/catalog/builtin.ts +25 -2
- package/src/agents/catalog/scan.ts +5 -1
- package/src/agents/index.ts +3 -0
- package/src/agents/launch-model.ts +67 -26
- package/src/agents/launch.ts +37 -14
- package/src/agents/model-choice.ts +18 -5
- package/src/agents/task-list.ts +31 -0
- package/src/agents/tool-filters.ts +15 -1
- package/src/agents/tool-resolution.ts +20 -3
- package/src/agents/workflow/replay.ts +21 -3
- package/src/agents/workflow/usage-limit.ts +43 -4
- package/src/cli/command-table.ts +2 -0
- package/src/cli/flags/session.ts +2 -1
- package/src/cli/index.ts +25 -0
- package/src/cli/install-command-outcome.ts +69 -0
- package/src/cli/install-command-step.ts +91 -0
- package/src/cli/install-engines.ts +58 -0
- package/src/cli/install-plan.ts +40 -116
- package/src/cli/install-refusals.ts +7 -0
- package/src/cli/install-success.ts +32 -0
- package/src/cli/marketplace-list.ts +1 -1
- package/src/cli/marketplace-update.ts +9 -1
- package/src/cli/restore-set-aside.ts +70 -0
- package/src/cli/result.ts +17 -2
- package/src/cli/uninstall-data.ts +16 -1
- package/src/cli/update-dependencies.ts +62 -0
- package/src/cli/update-facts.ts +12 -0
- package/src/cli/update-plan.ts +50 -6
- package/src/cli/validate-lists.ts +172 -0
- package/src/cli/validate-run.ts +17 -0
- package/src/entry/mods.ts +1 -0
- package/src/format/add-dir-gate.ts +44 -0
- package/src/format/agent-scalars.ts +7 -8
- package/src/format/engines.ts +139 -0
- package/src/format/hooks-handlers.ts +2 -0
- package/src/format/host-errors.ts +1 -1
- package/src/format/index.ts +13 -1
- package/src/format/locate.ts +1 -1
- package/src/format/manifest-schema.ts +3 -0
- package/src/format/manifest.ts +102 -11
- package/src/format/marketplace/entries.ts +15 -5
- package/src/format/marketplace/entry-display.ts +78 -0
- package/src/format/marketplace/entry-schema.ts +5 -2
- package/src/format/marketplace/index.ts +1 -1
- package/src/format/marketplace/marketplace-name-lists.ts +0 -10
- package/src/format/marketplace/marketplace-names.ts +17 -18
- package/src/format/marketplace/plugin-source.ts +11 -3
- package/src/format/marketplace/settings-source-plugins.ts +3 -2
- package/src/format/marketplace/types.ts +11 -0
- package/src/format/mcp-bundles.ts +5 -5
- package/src/format/mcp-contract.ts +8 -0
- package/src/format/mcp-task-timing.ts +42 -0
- package/src/format/mcp-tool-schema.ts +19 -3
- package/src/format/network.ts +48 -0
- package/src/format/plugin-notes.ts +21 -0
- package/src/format/plugin-settings.ts +17 -13
- package/src/format/server-paths.ts +50 -0
- package/src/format/validate/plugin-fields.ts +16 -0
- package/src/format/validate/plugin-manifest.ts +4 -0
- package/src/format/validate/settings-deprecation.ts +26 -0
- package/src/format/validate/unknown-fields.ts +1 -9
- package/src/foundation/scope-folders.ts +8 -2
- package/src/hooks/assemble.ts +11 -1
- package/src/hooks/core/profiles.ts +1 -1
- package/src/hooks/dispatch.ts +36 -5
- package/src/hooks/handlers/context.ts +4 -1
- package/src/hooks/handlers/remote/http-policy.ts +20 -6
- package/src/hooks/handlers/remote/http.ts +2 -2
- package/src/hooks/handlers/remote/mcp-tool.ts +27 -1
- package/src/hooks/handlers/remote/types.ts +9 -0
- package/src/hooks/input/facts-agents.ts +14 -3
- package/src/hooks/outcome.ts +31 -0
- package/src/hooks/output/caps.ts +4 -3
- package/src/hooks/output/cowork-answers.ts +19 -0
- package/src/hooks/output/merge-simple.ts +5 -2
- package/src/hooks/output/merge.ts +2 -0
- package/src/hooks/output/tool-output.ts +48 -2
- package/src/hooks/output/tool-shapes/shapes-1.ts +3 -0
- package/src/hooks/output/tool-shapes/shapes-3.ts +1 -0
- package/src/hooks/output/tool-shapes/shapes-4.ts +12 -1
- package/src/hooks/output/tool-shapes/shapes-5.ts +9 -1
- package/src/hooks/run-all.ts +1 -0
- package/src/hooks/select/event-catalog.ts +4 -1
- package/src/hooks/select/matcher-values.ts +0 -1
- package/src/hooks/verdict/exit2.ts +6 -1
- package/src/hooks/verdict/interpret.ts +7 -7
- package/src/hooks/verdict/mcp-answer.ts +64 -0
- package/src/hooks/verdict/model-verdict.ts +1 -1
- package/src/hooks/verdict/on-failure.ts +51 -7
- package/src/hooks/verdict/subject.ts +2 -0
- package/src/hooks/verdict/suspect-capture.ts +7 -1
- package/src/host/session-agents.ts +15 -26
- package/src/host/session-bare-repository.ts +38 -0
- package/src/host/session-engine.ts +2 -1
- package/src/host/session-hooks.ts +16 -1
- package/src/host/session-registry.ts +12 -0
- package/src/host/session-skill-expand.ts +11 -29
- package/src/host/session-skill-permission.ts +29 -0
- package/src/host/session-skills.ts +31 -18
- package/src/host/session-types.ts +7 -0
- package/src/host/session.ts +0 -1
- package/src/index.ts +3 -0
- package/src/loading/load-notes.ts +62 -0
- package/src/loading/load-plugin.ts +36 -3
- package/src/loading/manifest-gate.ts +1 -1
- package/src/loading/plugin-folder.ts +4 -1
- package/src/loading/plugin-model.ts +8 -0
- package/src/loading/validate/marketplace-target.ts +34 -6
- package/src/loading/validate/plugin-contents.ts +12 -0
- package/src/loading/walk.ts +3 -3
- package/src/marketplace/dependency-graph.ts +5 -0
- package/src/marketplace/dependency-install-plan.ts +6 -4
- package/src/marketplace/enablement-notes.ts +49 -12
- package/src/marketplace/headless-report.ts +26 -1
- package/src/marketplace/index.ts +1 -1
- package/src/marketplace/install-commands.ts +12 -3
- package/src/marketplace/install-errors.ts +8 -7
- package/src/marketplace/install-lifecycle-index.ts +10 -0
- package/src/marketplace/install-plan.ts +7 -0
- package/src/marketplace/install-plans.ts +4 -5
- package/src/marketplace/managed-take-back.ts +38 -0
- package/src/marketplace/marketplace-fetch-plan.ts +2 -0
- package/src/marketplace/reload-summary.ts +14 -3
- package/src/marketplace/removal.ts +5 -5
- package/src/marketplace/seed-registry.ts +7 -5
- package/src/marketplace/store-layout.ts +17 -4
- package/src/marketplace/types.ts +5 -0
- package/src/mods/api/agent.ts +28 -0
- package/src/mods/api/audio.ts +18 -5
- package/src/mods/api/build.ts +7 -3
- package/src/mods/api/call.ts +7 -0
- package/src/mods/api/command.ts +22 -2
- package/src/mods/api/declared-port-types.ts +155 -0
- package/src/mods/api/engine-create.ts +8 -1
- package/src/mods/api/exec.ts +4 -0
- package/src/mods/api/fs-ports.ts +9 -1
- package/src/mods/api/fs.ts +29 -10
- package/src/mods/api/gate.ts +3 -4
- package/src/mods/api/host-ports.ts +18 -1
- package/src/mods/api/index.ts +9 -3
- package/src/mods/api/mcp.ts +10 -2
- package/src/mods/api/optional-port-types.ts +48 -16
- package/src/mods/api/ports.ts +26 -42
- package/src/mods/api/registries.ts +17 -18
- package/src/mods/api/session-ports.ts +57 -0
- package/src/mods/api/session.ts +30 -5
- package/src/mods/api/theme.ts +132 -33
- package/src/mods/api/vcs.ts +71 -0
- package/src/mods/api/wasm.ts +74 -0
- package/src/mods/chain/api-guard.ts +35 -7
- package/src/mods/chain/context.ts +15 -0
- package/src/mods/chain/default-matcher.ts +69 -0
- package/src/mods/chain/dispatch.ts +19 -1
- package/src/mods/chain/failure.ts +7 -0
- package/src/mods/chain/guarded.ts +8 -2
- package/src/mods/chain/invoke.ts +25 -5
- package/src/mods/chain/validate.ts +2 -1
- package/src/mods/events/agent.ts +7 -3
- package/src/mods/events/declared.ts +51 -0
- package/src/mods/events/index.ts +4 -1
- package/src/mods/events/pinned.ts +23 -0
- package/src/mods/events/session.ts +26 -4
- package/src/mods/events/spec.ts +2 -0
- package/src/mods/events/tool.ts +57 -12
- package/src/mods/events/turn.ts +17 -1
- package/src/mods/load/auto-mode-approval.ts +7 -11
- package/src/mods/load/commands/module-facts.ts +32 -0
- package/src/mods/load/commands/scan-lead.ts +6 -2
- package/src/mods/load/commands/scan-lines.ts +33 -1
- package/src/mods/load/commands/sha256.ts +80 -0
- package/src/mods/load/commands/validate-report.ts +9 -0
- package/src/mods/load/commands/validate.ts +24 -16
- package/src/mods/load/commands/wasm-read.ts +183 -0
- package/src/mods/load/guard-protection.ts +15 -5
- package/src/mods/load/guard-surfaces.ts +2 -0
- package/src/mods/load/guard-tools.ts +45 -0
- package/src/mods/load/guard.ts +21 -8
- package/src/mods/load/host-support.ts +51 -11
- package/src/mods/load/host.ts +24 -4
- package/src/mods/load/in-turn.ts +12 -0
- package/src/mods/load/index.ts +22 -2
- package/src/mods/load/loader.ts +23 -10
- package/src/mods/load/mod-set.ts +9 -18
- package/src/mods/load/order.ts +2 -2
- package/src/mods/load/plugin-dirs.ts +29 -8
- package/src/mods/load/policy.ts +61 -25
- package/src/mods/load/prepare.ts +34 -4
- package/src/mods/load/provides.ts +134 -0
- package/src/mods/load/register-ask.ts +82 -0
- package/src/mods/load/register-call.ts +98 -38
- package/src/mods/load/register-event.ts +104 -0
- package/src/mods/load/scan/client-modules.ts +1 -1
- package/src/mods/load/scan/event-names.ts +2 -0
- package/src/mods/load/scan/found.ts +8 -0
- package/src/mods/load/scan/hosts.ts +40 -0
- package/src/mods/load/scan/index.ts +8 -0
- package/src/mods/load/scan/rules.ts +4 -0
- package/src/mods/load/scan/uses.ts +10 -0
- package/src/mods/load/scan/wasm-paths.ts +35 -0
- package/src/mods/load/tool-flow.ts +16 -2
- package/src/mods/load/wasm-files.ts +77 -0
- package/src/mods/load/wiring.ts +30 -7
- package/src/mods/load/written-mods.ts +42 -27
- package/src/mods/types.ts +10 -9
- package/src/mods/ui/controls/hotkeys.ts +36 -2
- package/src/mods/ui/elements/box.ts +6 -1
- package/src/mods/ui/elements/limits.ts +5 -3
- package/src/mods/ui/elements/progress.ts +19 -0
- package/src/mods/ui/elements/prop-size.ts +41 -0
- package/src/mods/ui/elements/registry.ts +4 -0
- package/src/mods/ui/elements/shader-place.ts +38 -0
- package/src/mods/ui/elements/shader.ts +36 -0
- package/src/mods/ui/elements/svg.ts +4 -0
- package/src/mods/ui/elements/table.ts +2 -0
- package/src/mods/ui/elements/text.ts +9 -0
- package/src/mods/ui/elements/validate.ts +3 -1
- package/src/mods/ui/index.ts +1 -0
- package/src/mods/ui/keyboard/keys.ts +2 -0
- package/src/mods/ui/panes/open.ts +5 -1
- package/src/mods/ui/panes/pane-request.ts +19 -0
- package/src/mods/ui/panes/registry.ts +5 -1
- package/src/mods/ui/rules.ts +4 -0
- package/src/mods/ui/runtime.ts +43 -12
- package/src/mods/ui/sites/agent-row.ts +24 -0
- package/src/mods/ui/sites/backdrop.ts +2 -2
- package/src/mods/ui/sites/band-list.ts +40 -0
- package/src/mods/ui/sites/band-rows.ts +100 -0
- package/src/mods/ui/sites/fold.ts +2 -2
- package/src/mods/ui/sites/registry.ts +33 -17
- package/src/ports/files.ts +1 -1
- package/src/ports/mcp-bundle.ts +3 -2
- package/src/ports/mcp-caller.ts +7 -0
- package/src/protocol/mods-api-names.ts +17 -4
- package/src/protocol/mods-events.ts +14 -5
- package/src/protocol/mods-limits.ts +9 -1
- package/src/protocol/mods-ui-names.ts +63 -8
- package/src/protocol/official.ts +1 -0
- package/src/protocol/tool-names.ts +27 -5
- package/src/rules/bash/wrappers.ts +3 -0
- package/src/rules/decide/auto-dropped.ts +29 -6
- package/src/rules/decide/context.ts +5 -2
- package/src/rules/decide/decide.ts +14 -0
- package/src/rules/decide/facts.ts +3 -3
- package/src/rules/decide/modes.ts +12 -0
- package/src/rules/tools/catalog.ts +13 -3
- package/src/rules/types.ts +6 -0
- package/src/settings/add-dir-layer.ts +34 -0
- package/src/settings/env/code-mode.ts +26 -0
- package/src/settings/env/ignored-variables.ts +7 -0
- package/src/settings/env/index.ts +1 -0
- package/src/settings/general/checks.ts +0 -1
- package/src/settings/general/command-lines.ts +1 -29
- package/src/settings/general/edit-effect.ts +14 -1
- package/src/settings/general/index.ts +5 -14
- package/src/settings/general/keys.ts +0 -2
- package/src/settings/general/plugin-defaults.ts +23 -12
- package/src/settings/general/rows.ts +0 -1
- package/src/settings/hooks/custom-commands.ts +2 -3
- package/src/settings/hooks/http-policy.ts +47 -10
- package/src/settings/hooks/index.ts +6 -1
- package/src/settings/hooks/policy.ts +2 -2
- package/src/settings/hooks/session-gates.ts +18 -12
- package/src/settings/index.ts +1 -0
- package/src/settings/managed/compose.ts +10 -34
- package/src/settings/managed/helper-run.ts +1 -1
- package/src/settings/managed/helper-settings.ts +36 -0
- package/src/settings/managed/index.ts +16 -1
- package/src/settings/managed/login-keys.ts +23 -0
- package/src/settings/managed/ports.ts +8 -1
- package/src/settings/managed/server-cache.ts +69 -0
- package/src/settings/managed/server-groups.ts +63 -0
- package/src/settings/mcp/exclusive.ts +6 -1
- package/src/settings/mcp/scope.ts +10 -0
- package/src/settings/permissions/default-mode.ts +2 -2
- package/src/skills/bare-repository.ts +12 -0
- package/src/skills/execution.ts +1 -1
- package/src/skills/expand-shell.ts +1 -0
- package/src/skills/expand-types.ts +5 -0
- package/src/skills/index.ts +1 -0
- package/src/skills/invocation.ts +4 -3
- package/src/skills/path-gate.ts +25 -3
- package/src/skills/shell-run.ts +24 -1
- package/src/testing/mods/expect-equal.ts +66 -0
- package/src/testing/mods/expect-matchers.ts +127 -0
- package/src/testing/mods/expect.ts +136 -98
- package/src/testing/mods/fake-ports.ts +12 -0
- package/src/testing/mods/kit.ts +6 -2
- package/src/testing/mods/mock.ts +3 -2
- package/src/testing/mods/mount.ts +34 -3
- package/src/testing/mods/stub-matcher.ts +28 -0
- package/src/testing/mods/stubs.ts +22 -7
- package/src/testing/mods/world.ts +4 -2
- package/dist/settings/general/subagent-status-line.d.ts +0 -66
- package/dist/settings/general/subagent-status-line.d.ts.map +0 -1
- package/dist/settings/general/subagent-status-line.js +0 -58
- package/dist/settings/general/subagent-status-line.js.map +0 -1
- package/src/settings/general/subagent-status-line.ts +0 -121
package/src/mods/events/turn.ts
CHANGED
|
@@ -14,6 +14,22 @@ const usage = z.looseObject({
|
|
|
14
14
|
model: text.optional(),
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
+
/** The two cache-write parts of a turn's usage (2.1.330): present together or not at all (:19084). */
|
|
18
|
+
const EPHEMERAL = ['ephemeral_5m_input_tokens', 'ephemeral_1h_input_tokens'] as const;
|
|
19
|
+
const turnUsage = z
|
|
20
|
+
.looseObject({
|
|
21
|
+
ephemeral_5m_input_tokens: count.optional(),
|
|
22
|
+
ephemeral_1h_input_tokens: count.optional(),
|
|
23
|
+
})
|
|
24
|
+
.refine(
|
|
25
|
+
(given) =>
|
|
26
|
+
EPHEMERAL.every((key) => given[key] === undefined) ||
|
|
27
|
+
EPHEMERAL.every((key) => given[key] !== undefined),
|
|
28
|
+
{
|
|
29
|
+
error: 'ephemeral_5m_input_tokens and ephemeral_1h_input_tokens come together or not at all',
|
|
30
|
+
},
|
|
31
|
+
);
|
|
32
|
+
|
|
17
33
|
export const TURN_SPECS: { readonly [N in TurnEvent]: EventSpec } = {
|
|
18
34
|
// `e.turnId` identifies the turn in the other two events (events.md, "Follow a turn").
|
|
19
35
|
'turn.start': { input: fields({ turnId: text }), result: passThrough },
|
|
@@ -41,7 +57,7 @@ export const TURN_SPECS: { readonly [N in TurnEvent]: EventSpec } = {
|
|
|
41
57
|
isAborted: flag.optional(),
|
|
42
58
|
answer: text.optional(),
|
|
43
59
|
durationMs: count.optional(),
|
|
44
|
-
usage:
|
|
60
|
+
usage: turnUsage.optional(),
|
|
45
61
|
agentId: text.optional(),
|
|
46
62
|
}),
|
|
47
63
|
result: answer({ text: text.optional() }),
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Whether a call a user's mod approved
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
2
|
+
* Whether a call a user's mod approved in auto mode skips the classifier (Agent Plugins Extended
|
|
3
|
+
* §14.9.2 item 4, §13.11 item 2; permissions.md of 2.1.330, "Precedence among rules, hooks, and
|
|
4
|
+
* mods"): only without the built-in guard. Where the guard loads, a mod's approval skips neither
|
|
5
|
+
* the classifier nor what `dontAsk` denies, and `allowModsToOverrideDenyRules` does not bring it
|
|
6
|
+
* (Judgment J14.14). Before 2.1.330 the guard kept the classifier only in front of a prompt tool or
|
|
7
|
+
* a `canUseTool` callback.
|
|
7
8
|
*/
|
|
8
9
|
export interface ModApprovalFacts {
|
|
9
10
|
/** The built-in guard is loaded in this session. */
|
|
10
11
|
readonly guardLoaded: boolean;
|
|
11
|
-
/** The session runs with `--permission-prompt-tool`. */
|
|
12
|
-
readonly permissionPromptTool: boolean;
|
|
13
|
-
/** The session is an Agent SDK session with a `canUseTool` callback. */
|
|
14
|
-
readonly canUseTool: boolean;
|
|
15
12
|
}
|
|
16
13
|
|
|
17
14
|
/** True when the approved call runs without a classifier check. */
|
|
18
|
-
export const modApprovalSkipsClassifier = (facts: ModApprovalFacts): boolean =>
|
|
19
|
-
!(facts.guardLoaded && (facts.permissionPromptTool || facts.canUseTool));
|
|
15
|
+
export const modApprovalSkipsClassifier = (facts: ModApprovalFacts): boolean => !facts.guardLoaded;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { registerUses, type RegisterUses } from '../register-event.ts';
|
|
2
|
+
import { combineScans, type ModScan } from '../scan/index.ts';
|
|
3
|
+
import { hookLabel } from '../scan/uses.ts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* One item of a hooks module's `modules` in the validator's `--json` result (Agent Plugins Extended
|
|
7
|
+
* §17.13.4: "one item per hooks module with fields such as `hooks` and `uses`"; 2.1.326 on). Judgment
|
|
8
|
+
* (spec/judgments.md): `module` is its path from the plugin root, as `e.provides.modules` names it,
|
|
9
|
+
* `hooks` the `hooks:` line's entries and `uses` what `plugin.register` hands a policy mod as `e.uses`.
|
|
10
|
+
*/
|
|
11
|
+
export interface ModuleFacts {
|
|
12
|
+
readonly module: string;
|
|
13
|
+
readonly hooks: readonly string[];
|
|
14
|
+
readonly uses: RegisterUses;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const moduleFacts = (entry: string, scan: ModScan): ModuleFacts => ({
|
|
18
|
+
module: entry,
|
|
19
|
+
hooks: scan.hooks.map(hookLabel),
|
|
20
|
+
uses: registerUses(combineScans([scan])),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
/** The module's hooks that can refuse an action, as each `--json` result lists them (J17.15). */
|
|
24
|
+
export const gatingHooksOf = (written: string, scan: ModScan) =>
|
|
25
|
+
scan.hooks
|
|
26
|
+
.filter((hook) => hook.isGating)
|
|
27
|
+
.map((hook) => ({
|
|
28
|
+
module: written,
|
|
29
|
+
pattern: hook.event,
|
|
30
|
+
hook: hookLabel(hook),
|
|
31
|
+
hasCatch: hook.hasCatch,
|
|
32
|
+
}));
|
|
@@ -68,10 +68,14 @@ export function ledEntry(issue: PluginIssue, place: LeadPlace): ReportEntry {
|
|
|
68
68
|
if (!isScanIssue(issue) || issue.rule === undefined || !IN_THE_TABLE[issue.code]) {
|
|
69
69
|
return { path: issue.path, message: issue.message };
|
|
70
70
|
}
|
|
71
|
+
return ledRule(place, issue.line ?? 1, issue.rule);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** A rule of the table broken at `line` of the module, printed with the lead and the reminder. */
|
|
75
|
+
export function ledRule(place: LeadPlace, line: number, rule: string): ReportEntry {
|
|
71
76
|
const file = `${place.root.replace(/\/+$/, '')}/${place.entry}`;
|
|
72
|
-
const line = String(issue.line ?? 1);
|
|
73
77
|
return {
|
|
74
78
|
path: `modules.${place.written}`,
|
|
75
|
-
message: `${lastSegment(place.root)}: ${file}:${line}: ${
|
|
79
|
+
message: `${lastSegment(place.root)}: ${file}:${String(line)}: ${rule}; ${REMINDER}`,
|
|
76
80
|
};
|
|
77
81
|
}
|
|
@@ -36,6 +36,38 @@ function foldLines(written: string, { engine }: ModScan): string[] {
|
|
|
36
36
|
];
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* The default matcher keys of the events on another mod's controls and drawings (§10.13.3, "Other
|
|
41
|
+
* mods' drawings and controls"): `claude plugin validate` 2.1.330 follows a hook whose matcher leaves
|
|
42
|
+
* one out with ` (default matcher key: <keys>)` (§10.4.3; oracle 2.1.330). Judgment: `plugin` and
|
|
43
|
+
* `component` for each, as the two quoted lines give them; a wildcard pattern gets no note.
|
|
44
|
+
*/
|
|
45
|
+
const DEFAULT_KEYS: readonly string[] = ['plugin', 'component'];
|
|
46
|
+
const DEFAULT_KEYED: ReadonlySet<string> = new Set([
|
|
47
|
+
'ui.press',
|
|
48
|
+
'ui.input',
|
|
49
|
+
'ui.select',
|
|
50
|
+
'ui.focus',
|
|
51
|
+
'ui.render',
|
|
52
|
+
]);
|
|
53
|
+
|
|
54
|
+
/** The render sites where the client sets `e.plugin`: a mod's `Pane` and its row of the band. */
|
|
55
|
+
const MOD_SITES: ReadonlySet<string> = new Set(['Pane', 'AbovePrompt']);
|
|
56
|
+
|
|
57
|
+
/** A hook's entry on the `hooks:` line, with the default matcher keys its matcher leaves out. */
|
|
58
|
+
function hooksEntry(hook: ScannedHook): string {
|
|
59
|
+
const label = hookLabel(hook);
|
|
60
|
+
if (!DEFAULT_KEYED.has(hook.event)) return label;
|
|
61
|
+
const pairs = (hook.matcher ?? '').split(',').map((pair) => pair.split('='));
|
|
62
|
+
const component = pairs.find(([key]) => key === 'component')?.[1];
|
|
63
|
+
// A site the client draws itself carries no `plugin` (§10.13.3 item 1): only a mod's pane and band row do.
|
|
64
|
+
const isClientSite = hook.event === 'ui.render' && component !== undefined;
|
|
65
|
+
if (isClientSite && !MOD_SITES.has(component)) return label;
|
|
66
|
+
const named = pairs.map(([key]) => key);
|
|
67
|
+
const missing = DEFAULT_KEYS.filter((key) => !named.includes(key));
|
|
68
|
+
return missing.length === 0 ? label : `${label} (default matcher key: ${missing.join(', ')})`;
|
|
69
|
+
}
|
|
70
|
+
|
|
39
71
|
const OTHER_STATE =
|
|
40
72
|
'state of other plugins, not checked (run validate in a session with them enabled)';
|
|
41
73
|
|
|
@@ -57,7 +89,7 @@ export function scanLines(written: string, scan: ModScan, plugin?: string): stri
|
|
|
57
89
|
lines.push(` ❯ ${written} ${noun} writes: ${listed(writes)}`);
|
|
58
90
|
lines.push(` ❯ ${written} ${noun} reads: ${listed(reads)}`);
|
|
59
91
|
};
|
|
60
|
-
add('hooks', scan.hooks.map(
|
|
92
|
+
add('hooks', scan.hooks.map(hooksEntry));
|
|
61
93
|
add('answers its own command', scan.hooks.filter(answersCommand).map(hookLabel));
|
|
62
94
|
const calls = scan.calls.map(callLabel);
|
|
63
95
|
lines.push(` ❯ ${written} calls: ${calls.length === 0 ? 'nothing on $' : listed(calls)}`);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SHA-256 of bytes as 64 lower-case hex digits (FIPS 180-4), computed in place: the validator's
|
|
3
|
+
* `wasm <path>: <n> bytes, sha256 <hex>` line (Agent Plugins Extended §10.4.3) needs it, and `src/`
|
|
4
|
+
* reaches no `crypto` (L3). Pure and synchronous; the files it hashes are at most 64 MiB.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const K = new Uint32Array([
|
|
8
|
+
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
|
|
9
|
+
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
|
|
10
|
+
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
|
|
11
|
+
0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
|
|
12
|
+
0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
|
|
13
|
+
0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
|
|
14
|
+
0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
|
|
15
|
+
0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2,
|
|
16
|
+
]);
|
|
17
|
+
|
|
18
|
+
const INITIAL = [
|
|
19
|
+
0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
const rotr = (x: number, n: number): number => (x >>> n) | (x << (32 - n));
|
|
23
|
+
|
|
24
|
+
/** The message padded to a whole number of 64-byte blocks, its bit length at the end. */
|
|
25
|
+
function padded(bytes: Uint8Array): Uint8Array {
|
|
26
|
+
const length = Math.ceil((bytes.length + 9) / 64) * 64;
|
|
27
|
+
const out = new Uint8Array(length);
|
|
28
|
+
out.set(bytes);
|
|
29
|
+
out[bytes.length] = 0x80;
|
|
30
|
+
const view = new DataView(out.buffer);
|
|
31
|
+
const bits = bytes.length * 8;
|
|
32
|
+
view.setUint32(length - 8, Math.floor(bits / 0x100000000));
|
|
33
|
+
view.setUint32(length - 4, bits >>> 0);
|
|
34
|
+
return out;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** An entry of a word array: every index read here is in range. */
|
|
38
|
+
const at = (words: ArrayLike<number>, index: number): number => words[index] ?? 0;
|
|
39
|
+
|
|
40
|
+
/** The message schedule of the block at `offset`. */
|
|
41
|
+
function schedule(view: DataView, offset: number, w: Uint32Array): void {
|
|
42
|
+
for (let t = 0; t < 16; t += 1) w[t] = view.getUint32(offset + t * 4);
|
|
43
|
+
for (let t = 16; t < 64; t += 1) {
|
|
44
|
+
const a = at(w, t - 15);
|
|
45
|
+
const b = at(w, t - 2);
|
|
46
|
+
const s0 = rotr(a, 7) ^ rotr(a, 18) ^ (a >>> 3);
|
|
47
|
+
const s1 = rotr(b, 17) ^ rotr(b, 19) ^ (b >>> 10);
|
|
48
|
+
w[t] = (at(w, t - 16) + s0 + at(w, t - 7) + s1) >>> 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** One block's 64 rounds over the state `h`, the working variables in `v` (a to h). */
|
|
53
|
+
function compress(h: Uint32Array, w: Uint32Array): void {
|
|
54
|
+
const v = Uint32Array.from(h);
|
|
55
|
+
for (let t = 0; t < 64; t += 1) {
|
|
56
|
+
const e = at(v, 4);
|
|
57
|
+
const a = at(v, 0);
|
|
58
|
+
const s1 = rotr(e, 6) ^ rotr(e, 11) ^ rotr(e, 25);
|
|
59
|
+
const choice = (e & at(v, 5)) ^ (~e & at(v, 6));
|
|
60
|
+
const t1 = at(v, 7) + s1 + choice + at(K, t) + at(w, t);
|
|
61
|
+
const s0 = rotr(a, 2) ^ rotr(a, 13) ^ rotr(a, 22);
|
|
62
|
+
const t2 = s0 + ((a & at(v, 1)) ^ (a & at(v, 2)) ^ (at(v, 1) & at(v, 2)));
|
|
63
|
+
v.copyWithin(1, 0, 7);
|
|
64
|
+
v[4] = at(v, 4) + t1;
|
|
65
|
+
v[0] = t1 + t2;
|
|
66
|
+
}
|
|
67
|
+
for (let i = 0; i < 8; i += 1) h[i] = at(h, i) + at(v, i);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function sha256Hex(bytes: Uint8Array): string {
|
|
71
|
+
const message = padded(bytes);
|
|
72
|
+
const view = new DataView(message.buffer);
|
|
73
|
+
const h = Uint32Array.from(INITIAL);
|
|
74
|
+
const w = new Uint32Array(64);
|
|
75
|
+
for (let offset = 0; offset < message.length; offset += 64) {
|
|
76
|
+
schedule(view, offset, w);
|
|
77
|
+
compress(h, w);
|
|
78
|
+
}
|
|
79
|
+
return [...h].map((word) => word.toString(16).padStart(8, '0')).join('');
|
|
80
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { PluginFiles } from '../../../ports/index.ts';
|
|
2
2
|
import type { ModCompiler } from '../../ports.ts';
|
|
3
|
+
import type { WasmFacts } from '../wasm-files.ts';
|
|
4
|
+
import type { ModuleFacts } from './module-facts.ts';
|
|
3
5
|
|
|
4
6
|
/** What `validateMod` reads and what it reports (plugins/cli-reference.md, "Output and exit codes"). */
|
|
5
7
|
|
|
@@ -36,6 +38,13 @@ export interface FileReport {
|
|
|
36
38
|
readonly hook: string;
|
|
37
39
|
readonly hasCatch: boolean;
|
|
38
40
|
}[];
|
|
41
|
+
/**
|
|
42
|
+
* The hooks module's result only: the WebAssembly files its `$.wasm.compile` calls name (§17.13.4,
|
|
43
|
+
* `wasm`); `imports` and `exports` absent for a file that does not parse.
|
|
44
|
+
*/
|
|
45
|
+
readonly wasm?: readonly WasmFacts[];
|
|
46
|
+
/** The hooks module's result only: the module (§17.13.4), `null` when its code could not be read. */
|
|
47
|
+
readonly modules?: readonly ModuleFacts[] | null;
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
/** The `--json` object (cli-reference.md, "Output and exit codes"). */
|
|
@@ -9,8 +9,9 @@ import { scanSourceOf, type CompileResult } from '../compile-output.ts';
|
|
|
9
9
|
import { thrownByCompiler } from '../engine-faults.ts';
|
|
10
10
|
import { declaredState, missingTypes, readTypes } from '../types-decl.ts';
|
|
11
11
|
import { scanHooksModule, type ModScan } from '../scan/index.ts';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { ledEntry, ledRule } from './scan-lead.ts';
|
|
13
|
+
import { checkWasmFiles, wasmLines } from '../wasm-files.ts';
|
|
14
|
+
import { gatingHooksOf, moduleFacts } from './module-facts.ts';
|
|
14
15
|
import { scanLines, typesNotes } from './scan-lines.ts';
|
|
15
16
|
import { readJson } from '../../../format/read-json.ts';
|
|
16
17
|
import { isRecord } from '../../../protocol/is-record.ts';
|
|
@@ -134,6 +135,7 @@ async function checkModule(
|
|
|
134
135
|
warnings: [],
|
|
135
136
|
notes: [],
|
|
136
137
|
gatingHooks: [],
|
|
138
|
+
modules: null,
|
|
137
139
|
},
|
|
138
140
|
lines: [],
|
|
139
141
|
};
|
|
@@ -148,25 +150,31 @@ async function checkModule(
|
|
|
148
150
|
const issues = [...scan.issues, ...(await missingSurfaces(input, written, scan))];
|
|
149
151
|
const needed = types === undefined ? missingTypes(scan, written, typesPath) : undefined;
|
|
150
152
|
if (needed !== undefined) issues.push(error(typesPath ?? JSON_PATH, needed));
|
|
151
|
-
const lines = scanLines(written, scan, plugin);
|
|
152
153
|
const place = { written, entry, root: input.root ?? input.target };
|
|
154
|
+
const wasm = await checkWasmFiles(input.files, scan.wasmFiles, {
|
|
155
|
+
...place,
|
|
156
|
+
signal: input.signal,
|
|
157
|
+
});
|
|
158
|
+
const lines = [...scanLines(written, scan, plugin), ...wasmLines(written, wasm.files)];
|
|
159
|
+
const led = (severity: 'error' | 'warning') =>
|
|
160
|
+
wasm.problems
|
|
161
|
+
.filter((problem) => problem.severity === severity)
|
|
162
|
+
.map((problem) => ledRule(place, problem.line, problem.message));
|
|
153
163
|
return {
|
|
154
164
|
lines,
|
|
155
165
|
report: {
|
|
156
166
|
file: written,
|
|
157
|
-
errors:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
167
|
+
errors: [
|
|
168
|
+
...issues
|
|
169
|
+
.filter((issue) => issue.severity === 'error')
|
|
170
|
+
.map((issue) => ledEntry(issue, place)),
|
|
171
|
+
...led('error'),
|
|
172
|
+
],
|
|
173
|
+
warnings: led('warning'),
|
|
161
174
|
notes: lines.map((line) => line.replace(/^ {2}❯ /, '')),
|
|
162
|
-
gatingHooks: scan
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
module: written,
|
|
166
|
-
pattern: hook.event,
|
|
167
|
-
hook: hookLabel(hook),
|
|
168
|
-
hasCatch: hook.hasCatch,
|
|
169
|
-
})),
|
|
175
|
+
gatingHooks: gatingHooksOf(written, scan),
|
|
176
|
+
wasm: wasm.files,
|
|
177
|
+
modules: [moduleFacts(entry, scan)],
|
|
170
178
|
},
|
|
171
179
|
};
|
|
172
180
|
}
|
|
@@ -267,7 +275,7 @@ export async function validateMod(
|
|
|
267
275
|
const lines = [
|
|
268
276
|
`Validating plugin manifest: ${input.target}/${JSON_PATH}`,
|
|
269
277
|
...all.flatMap((file) => file.errors.map((entry) => ` ✘ ${printed(entry)}`)),
|
|
270
|
-
...
|
|
278
|
+
...all.flatMap((file) => file.warnings.map((entry) => ` ⚠ ${printed(entry)}`)),
|
|
271
279
|
...manifest.notes.map((line) => ` ❯ ${line}`),
|
|
272
280
|
...modules.lines,
|
|
273
281
|
done.line,
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the validator reads of a WebAssembly file a `$.wasm.compile` call names (Agent Plugins
|
|
3
|
+
* Extended §10.4.2, §10.4.3; Claude Code 2.1.330): its imports and exports, or where it does not
|
|
4
|
+
* parse, worded as `WebAssembly.Module` words it (`<path>: WebAssembly.Module doesn't parse at byte
|
|
5
|
+
* <n>: <reason>`). Judgment (spec/judgments.md): the kit reads the header, each section's frame and
|
|
6
|
+
* the import and export sections, not the rest of the module; the header and frame reasons are the
|
|
7
|
+
* engine's words, those of a cut-short import or export the kit's in the same form.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export interface WasmEntries {
|
|
11
|
+
/** `<module>.<name> (<kind>)`, in the file's order. */
|
|
12
|
+
readonly imports: readonly string[];
|
|
13
|
+
/** `<name> (<kind>)`, in the file's order. */
|
|
14
|
+
readonly exports: readonly string[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface WasmParseFailure {
|
|
18
|
+
readonly at: number;
|
|
19
|
+
readonly reason: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const MAGIC = [0x00, 0x61, 0x73, 0x6d];
|
|
23
|
+
const SECTION_NAMES = [
|
|
24
|
+
'Custom',
|
|
25
|
+
'Type',
|
|
26
|
+
'Import',
|
|
27
|
+
'Function',
|
|
28
|
+
'Table',
|
|
29
|
+
'Memory',
|
|
30
|
+
'Global',
|
|
31
|
+
'Export',
|
|
32
|
+
'Start',
|
|
33
|
+
'Element',
|
|
34
|
+
'Code',
|
|
35
|
+
'Data',
|
|
36
|
+
'DataCount',
|
|
37
|
+
'Tag',
|
|
38
|
+
];
|
|
39
|
+
const KINDS = ['function', 'table', 'memory', 'global', 'tag'];
|
|
40
|
+
const IMPORT = 2;
|
|
41
|
+
const EXPORT = 7;
|
|
42
|
+
|
|
43
|
+
/** Thrown inside the reader only, and caught where it starts. */
|
|
44
|
+
class Stop extends Error {
|
|
45
|
+
readonly at: number;
|
|
46
|
+
readonly reason: string;
|
|
47
|
+
constructor(at: number, reason: string) {
|
|
48
|
+
super(reason);
|
|
49
|
+
this.at = at;
|
|
50
|
+
this.reason = reason;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
class Cursor {
|
|
55
|
+
at = 0;
|
|
56
|
+
readonly bytes: Uint8Array;
|
|
57
|
+
readonly end: number;
|
|
58
|
+
constructor(bytes: Uint8Array, end: number) {
|
|
59
|
+
this.bytes = bytes;
|
|
60
|
+
this.end = end;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
byte(what: string): number {
|
|
64
|
+
const value = this.at < this.end ? this.bytes[this.at] : undefined;
|
|
65
|
+
if (value === undefined) throw new Stop(this.at, `can't get ${what}`);
|
|
66
|
+
this.at += 1;
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** An unsigned LEB128 of up to 32 bits. */
|
|
71
|
+
u32(what: string): number {
|
|
72
|
+
let value = 0;
|
|
73
|
+
for (let shift = 0; shift < 35; shift += 7) {
|
|
74
|
+
const byte = this.byte(what);
|
|
75
|
+
value += (byte & 0x7f) * 2 ** shift;
|
|
76
|
+
if ((byte & 0x80) === 0) return value;
|
|
77
|
+
}
|
|
78
|
+
throw new Stop(this.at, `can't get ${what}`);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
name(what: string): string {
|
|
82
|
+
const length = this.u32(`${what}'s length`);
|
|
83
|
+
if (this.at + length > this.end)
|
|
84
|
+
throw new Stop(this.at, `can't get ${what} of length ${length}`);
|
|
85
|
+
const text = new TextDecoder().decode(this.bytes.subarray(this.at, this.at + length));
|
|
86
|
+
this.at += length;
|
|
87
|
+
return text;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const limits = (cursor: Cursor, what: string): void => {
|
|
92
|
+
const flags = cursor.byte(`${what}'s limits`);
|
|
93
|
+
cursor.u32(`${what}'s minimum`);
|
|
94
|
+
if ((flags & 1) === 1) cursor.u32(`${what}'s maximum`);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/** How each kind of import describes what it takes, read past (kind order as in `KINDS`). */
|
|
98
|
+
const DESCRIPTIONS: readonly ((cursor: Cursor, what: string) => void)[] = [
|
|
99
|
+
(cursor, what) => void cursor.u32(`${what}'s signature`),
|
|
100
|
+
(cursor, what) => (cursor.byte(`${what}'s element type`), limits(cursor, what)),
|
|
101
|
+
(cursor, what) => limits(cursor, what),
|
|
102
|
+
(cursor, what) => (cursor.byte(`${what}'s type`), cursor.byte(`${what}'s mutability`)),
|
|
103
|
+
(cursor, what) => (cursor.byte(`${what}'s attribute`), cursor.u32(`${what}'s signature`)),
|
|
104
|
+
];
|
|
105
|
+
|
|
106
|
+
function kindOf(cursor: Cursor, what: string): string {
|
|
107
|
+
const at = cursor.at;
|
|
108
|
+
const kind = cursor.byte(`${what}'s kind`);
|
|
109
|
+
const name = KINDS[kind];
|
|
110
|
+
if (name === undefined) throw new Stop(at, `${what} has unknown kind ${kind}`);
|
|
111
|
+
return name;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function readImports(cursor: Cursor): string[] {
|
|
115
|
+
const count = cursor.u32("Import section's count");
|
|
116
|
+
const out: string[] = [];
|
|
117
|
+
for (let i = 0; i < count; i += 1) {
|
|
118
|
+
const what = `${i}th Import`;
|
|
119
|
+
const module = cursor.name(`${what}'s module name`);
|
|
120
|
+
const field = cursor.name(`${what}'s field name`);
|
|
121
|
+
const kind = kindOf(cursor, what);
|
|
122
|
+
DESCRIPTIONS[KINDS.indexOf(kind)]?.(cursor, what);
|
|
123
|
+
out.push(`${module}.${field} (${kind})`);
|
|
124
|
+
}
|
|
125
|
+
return out;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function readExports(cursor: Cursor): string[] {
|
|
129
|
+
const count = cursor.u32("Export section's count");
|
|
130
|
+
const out: string[] = [];
|
|
131
|
+
for (let i = 0; i < count; i += 1) {
|
|
132
|
+
const what = `${i}th Export`;
|
|
133
|
+
const name = cursor.name(`${what}'s field name`);
|
|
134
|
+
const kind = kindOf(cursor, what);
|
|
135
|
+
cursor.u32(`${what}'s index`);
|
|
136
|
+
out.push(`${name} (${kind})`);
|
|
137
|
+
}
|
|
138
|
+
return out;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function header(bytes: Uint8Array): void {
|
|
142
|
+
if (bytes.length < 8) throw new Stop(0, 'expected a module of at least 8 bytes');
|
|
143
|
+
if (MAGIC.some((byte, at) => bytes[at] !== byte)) {
|
|
144
|
+
throw new Stop(0, "module doesn't start with '\\0asm'");
|
|
145
|
+
}
|
|
146
|
+
const version = new DataView(bytes.buffer, bytes.byteOffset, 8).getUint32(4, true);
|
|
147
|
+
if (version !== 1) throw new Stop(0, `unexpected version number ${version} expected 1`);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
function sections(bytes: Uint8Array): WasmEntries {
|
|
151
|
+
const cursor = new Cursor(bytes, bytes.length);
|
|
152
|
+
cursor.at = 8;
|
|
153
|
+
let imports: string[] = [];
|
|
154
|
+
let exports: string[] = [];
|
|
155
|
+
while (cursor.at < bytes.length) {
|
|
156
|
+
const idAt = cursor.at;
|
|
157
|
+
const id = cursor.byte('section id');
|
|
158
|
+
const name = SECTION_NAMES[id];
|
|
159
|
+
if (name === undefined) throw new Stop(idAt, 'invalid section');
|
|
160
|
+
const size = cursor.u32(`${name} section's size`);
|
|
161
|
+
const start = cursor.at;
|
|
162
|
+
if (start + size > bytes.length) {
|
|
163
|
+
throw new Stop(start, `${name} section of size ${size} would overflow Module's size`);
|
|
164
|
+
}
|
|
165
|
+
const inner = new Cursor(bytes, start + size);
|
|
166
|
+
inner.at = start;
|
|
167
|
+
if (id === IMPORT) imports = readImports(inner);
|
|
168
|
+
if (id === EXPORT) exports = readExports(inner);
|
|
169
|
+
cursor.at = start + size;
|
|
170
|
+
}
|
|
171
|
+
return { imports, exports };
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/** The imports and exports of a module, or where and why it does not parse. */
|
|
175
|
+
export function readWasm(bytes: Uint8Array): WasmEntries | WasmParseFailure {
|
|
176
|
+
try {
|
|
177
|
+
header(bytes);
|
|
178
|
+
return sections(bytes);
|
|
179
|
+
} catch (thrown) {
|
|
180
|
+
if (thrown instanceof Stop) return { at: thrown.at, reason: thrown.reason };
|
|
181
|
+
throw thrown;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { ENGINE_ORIGIN, type ModTier } from '../../protocol/mods-events.ts';
|
|
2
2
|
import { GUARD_ID } from '../../protocol/mods-settings.ts';
|
|
3
3
|
import type { HookAccess } from '../types.ts';
|
|
4
4
|
import { once } from './guard.ts';
|
|
@@ -6,6 +6,7 @@ import type { LoadedMod } from './loader.ts';
|
|
|
6
6
|
import { protectedHookNotes } from './guard-notes.ts';
|
|
7
7
|
import { GUARDED_DOORS, GUARDED_EVENTS } from './guard-surfaces.ts';
|
|
8
8
|
import { isRecord } from '../../protocol/is-record.ts';
|
|
9
|
+
import { offersManagedTool, type ManagedToolInfo } from './guard-tools.ts';
|
|
9
10
|
|
|
10
11
|
/** Identity facts the embedding host knows before it emits an event. */
|
|
11
12
|
export interface ManagedModData {
|
|
@@ -13,6 +14,12 @@ export interface ManagedModData {
|
|
|
13
14
|
readonly isManagedTool?: (input: unknown) => boolean;
|
|
14
15
|
/** Additional protected conversation rows, such as the stored text of a skill. */
|
|
15
16
|
readonly isProtectedRow?: (input: unknown) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The tools of the managed MCP servers connected now, as the host lists them in the client's tool
|
|
19
|
+
* pool (`mcp__<server>__<tool>`): the guard keeps them in the pool the client's own `tool.list`
|
|
20
|
+
* resolves, and a user's `tool.offer` hook does not run for one (§14.9.2 item 3).
|
|
21
|
+
*/
|
|
22
|
+
readonly managedTools?: () => readonly ManagedToolInfo[];
|
|
16
23
|
}
|
|
17
24
|
|
|
18
25
|
const USER_TIER: Record<ModTier, boolean> = {
|
|
@@ -37,9 +44,12 @@ export interface GuardProtection {
|
|
|
37
44
|
/** admin.md § Know which hooks of a user's mod don't run; Enforce on the original event. */
|
|
38
45
|
export function createGuardProtection(given: ManagedModData): GuardProtection {
|
|
39
46
|
let current: object | undefined;
|
|
40
|
-
const conditional: Readonly<Record<string, ((
|
|
41
|
-
'session.append': (input) => protectedRow(input, given),
|
|
42
|
-
'tool.describe': (input) => given.isManagedTool?.(input) ?? false,
|
|
47
|
+
const conditional: Readonly<Record<string, ((access: HookAccess) => boolean) | undefined>> = {
|
|
48
|
+
'session.append': ({ input }) => protectedRow(input, given),
|
|
49
|
+
'tool.describe': ({ input }) => given.isManagedTool?.(input) ?? false,
|
|
50
|
+
'tool.offer': ({ input }) => offersManagedTool(input, given.managedTools?.() ?? []),
|
|
51
|
+
// The client's own requests reach only the organization's mods (§10.19.7, 2.1.321 on).
|
|
52
|
+
'http.fetch': ({ origin }) => origin.plugin === ENGINE_ORIGIN.plugin,
|
|
43
53
|
};
|
|
44
54
|
return {
|
|
45
55
|
admit: (access) => {
|
|
@@ -49,7 +59,7 @@ export function createGuardProtection(given: ManagedModData): GuardProtection {
|
|
|
49
59
|
const check = Object.hasOwn(conditional, access.event)
|
|
50
60
|
? conditional[access.event]
|
|
51
61
|
: undefined;
|
|
52
|
-
return !(check?.(access
|
|
62
|
+
return !(check?.(access) ?? false);
|
|
53
63
|
} catch {
|
|
54
64
|
// Judgment: an unavailable identity fact cannot establish that an untrusted hook is safe.
|
|
55
65
|
return false;
|
|
@@ -13,6 +13,8 @@ export const GUARDED_EVENTS: Readonly<Record<string, boolean | undefined>> = Obj
|
|
|
13
13
|
'attribution.text',
|
|
14
14
|
'session.compact',
|
|
15
15
|
'settings.read',
|
|
16
|
+
// A record bound for an OpenTelemetry collector, passed over from Claude Code 2.1.328 (§14.9.4).
|
|
17
|
+
'telemetry.log',
|
|
16
18
|
].map((name): readonly [string, boolean] => [name, true]),
|
|
17
19
|
);
|
|
18
20
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ENGINE_ORIGIN } from '../../protocol/mods-events.ts';
|
|
2
|
+
import { isRecord } from '../../protocol/is-record.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The guard's hold on the tools of a managed MCP server that has connected (spec §14.9.2 item 3):
|
|
6
|
+
* where it loads, a user's mod cannot rewrite "the tool list and tool descriptions of a managed MCP
|
|
7
|
+
* server that has connected". The tool descriptions are kept by not admitting a user's
|
|
8
|
+
* `tool.describe` hook for such a tool (`isManagedTool`); the list is kept here.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** One tool of a managed MCP server, as the host lists it in the client's pool (`ToolInfo`). */
|
|
12
|
+
export interface ManagedToolInfo {
|
|
13
|
+
readonly name: string;
|
|
14
|
+
readonly [field: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const nameOf = (tool: unknown): unknown => (isRecord(tool) ? tool.name : undefined);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The pool the client's own `tool.list` resolves with the managed tools as the host gave them: an
|
|
21
|
+
* entry that names one is replaced by the host's copy where it stands, and one the hooks after the
|
|
22
|
+
* guard left out is added at the end. Any answer but `{ value: [...] }` (a `{ deny }`, a malformed
|
|
23
|
+
* value) becomes the managed tools alone: a user's mod cannot empty the pool of them either.
|
|
24
|
+
*/
|
|
25
|
+
export function keepManagedTools(result: unknown, managed: readonly ManagedToolInfo[]): unknown {
|
|
26
|
+
if (managed.length === 0) return result;
|
|
27
|
+
const byName = new Map(managed.map((tool) => [tool.name, tool]));
|
|
28
|
+
const list = isRecord(result) && Array.isArray(result.value) ? result.value : [];
|
|
29
|
+
const kept = list.map((tool: unknown) => {
|
|
30
|
+
const name = nameOf(tool);
|
|
31
|
+
return typeof name === 'string' ? (byName.get(name) ?? tool) : tool;
|
|
32
|
+
});
|
|
33
|
+
const present = new Set(kept.map(nameOf));
|
|
34
|
+
return { value: [...kept, ...managed.filter((tool) => !present.has(tool.name))] };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** A pool shaped by the client itself: a mod's `$.tool.list` lists mods' tools, never a server's. */
|
|
38
|
+
export const isClientsOwn = (origin: { readonly plugin: string }): boolean =>
|
|
39
|
+
origin.plugin === ENGINE_ORIGIN.plugin;
|
|
40
|
+
|
|
41
|
+
/** Whether a `tool.offer` input names one of the managed tools. */
|
|
42
|
+
export function offersManagedTool(input: unknown, managed: readonly ManagedToolInfo[]): boolean {
|
|
43
|
+
const tool = isRecord(input) ? input.tool : undefined;
|
|
44
|
+
return typeof tool === 'string' && managed.some((one) => one.name === tool);
|
|
45
|
+
}
|