@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
|
@@ -20,11 +20,33 @@ const direct: Within = (call) => call();
|
|
|
20
20
|
interface Guard {
|
|
21
21
|
readonly budget: Budget;
|
|
22
22
|
readonly within: Within;
|
|
23
|
+
/** The time the hook may wait on `$` calls, with the calls that do not count (§10.11). */
|
|
24
|
+
readonly wait?: { readonly budget: Budget; readonly exempt: ReadonlySet<string> };
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** The hook leaves the floor for a `$` call: its own time stops, the time it waits on calls runs. */
|
|
28
|
+
function meter(
|
|
29
|
+
guard: Guard,
|
|
30
|
+
label: string,
|
|
31
|
+
): { readonly enter: () => void; readonly leave: () => void } {
|
|
32
|
+
const waits =
|
|
33
|
+
guard.wait !== undefined && !guard.wait.exempt.has(label) ? guard.wait.budget : undefined;
|
|
34
|
+
return {
|
|
35
|
+
enter: () => {
|
|
36
|
+
guard.budget.pause();
|
|
37
|
+
waits?.resume();
|
|
38
|
+
},
|
|
39
|
+
leave: () => {
|
|
40
|
+
waits?.pause();
|
|
41
|
+
guard.budget.resume();
|
|
42
|
+
},
|
|
43
|
+
};
|
|
23
44
|
}
|
|
24
45
|
|
|
25
46
|
function guardedCall(method: Method, owner: object, label: string, guard: Guard): Method {
|
|
26
|
-
const {
|
|
47
|
+
const { within } = guard;
|
|
27
48
|
const metered = !OWN_TIME_CALLS.has(label);
|
|
49
|
+
const { enter, leave } = meter(guard, label);
|
|
28
50
|
const atOnce = AT_ONCE_CALLS.has(label);
|
|
29
51
|
return (...args) => {
|
|
30
52
|
for (const argument of args) {
|
|
@@ -37,16 +59,16 @@ function guardedCall(method: Method, owner: object, label: string, guard: Guard)
|
|
|
37
59
|
}
|
|
38
60
|
const apply = (): unknown => within(() => Reflect.apply(method, owner, args));
|
|
39
61
|
if (!metered) return apply();
|
|
40
|
-
|
|
62
|
+
enter();
|
|
41
63
|
try {
|
|
42
64
|
const result = apply();
|
|
43
65
|
if (!isThenable(result)) {
|
|
44
|
-
|
|
66
|
+
leave(); // a synchronous result is back: the hook has the floor again
|
|
45
67
|
return result;
|
|
46
68
|
}
|
|
47
|
-
return Promise.resolve(result).finally(
|
|
69
|
+
return Promise.resolve(result).finally(leave); // a promise resumes when it settles
|
|
48
70
|
} catch (error) {
|
|
49
|
-
|
|
71
|
+
leave();
|
|
50
72
|
throw error;
|
|
51
73
|
}
|
|
52
74
|
};
|
|
@@ -96,7 +118,13 @@ function guardedNamespace(target: object, path: readonly string[], guard: Guard)
|
|
|
96
118
|
* argument nests deeper than the limit rejects with a message ending `nesting deeper than 28000
|
|
97
119
|
* levels is not supported`. `within` runs each call as the hook's (the chain's `AsyncSlot`).
|
|
98
120
|
*/
|
|
99
|
-
export function guardApi(
|
|
121
|
+
export function guardApi(
|
|
122
|
+
api: ModsApi,
|
|
123
|
+
budget: Budget,
|
|
124
|
+
within: Within = direct,
|
|
125
|
+
wait?: Guard['wait'],
|
|
126
|
+
): ModsApi {
|
|
127
|
+
const guard: Guard = wait === undefined ? { budget, within } : { budget, within, wait };
|
|
100
128
|
// oxlint-disable-next-line typescript/no-unsafe-type-assertion -- the proxy forwards every property of `api`, so it has the same shape
|
|
101
|
-
return guardedNamespace(api, [],
|
|
129
|
+
return guardedNamespace(api, [], guard) as ModsApi;
|
|
102
130
|
}
|
|
@@ -46,5 +46,20 @@ export const GROUP_MS: Readonly<Record<string, number>> = {
|
|
|
46
46
|
|
|
47
47
|
export const hookMs = (event: string): number => HOOK_MS[event] ?? MOD_LIMITS.hookMs;
|
|
48
48
|
|
|
49
|
+
/** How long a hook of an event may wait on `$` calls for one event, and the calls that do not count (§10.11). */
|
|
50
|
+
export interface WaitLimit {
|
|
51
|
+
readonly ms: number;
|
|
52
|
+
readonly exempt: ReadonlySet<string>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** The events whose hooks may wait on `$` calls only so long: `ui.render` 30 s, `plugin.register` 10 s but `$.ui.ask`. */
|
|
56
|
+
const WAIT_LIMITS: Readonly<Record<string, WaitLimit>> = {
|
|
57
|
+
'ui.render': { ms: MOD_LIMITS.renderWaitMs, exempt: new Set() },
|
|
58
|
+
'plugin.register': { ms: MOD_LIMITS.registerWaitMs, exempt: new Set(['ui.ask']) },
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const waitLimit = (event: string): WaitLimit | undefined =>
|
|
62
|
+
Object.hasOwn(WAIT_LIMITS, event) ? WAIT_LIMITS[event] : undefined;
|
|
63
|
+
|
|
49
64
|
/** The events whose hook results may nest deeper than the limit: the interface trees are measured by their own limit. */
|
|
50
65
|
export const NESTING_EXEMPT: ReadonlySet<string> = new Set(['ui.render', 'ui.resolve']);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ModMatcher } from '../../protocol/mods-matcher.ts';
|
|
2
|
+
import { isRecord } from '../../protocol/is-record.ts';
|
|
3
|
+
import type { ChainEntry } from './registry.ts';
|
|
4
|
+
import { isUnfiltered } from './match-local.ts';
|
|
5
|
+
import { isWildcard } from './wildcard.ts';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* What a matcher means beyond its own fields (spec §10.13.3, "Other mods' drawings and controls";
|
|
9
|
+
* `Matcher`, claude-code/index.d.ts:7505 of 2.1.330), and the `tool.check` events only a hook naming
|
|
10
|
+
* `op` hears (§10.16.3 item 1).
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/** The events whose `plugin` is a default matcher key: left out, it names the hook's own plugin. */
|
|
14
|
+
const PLUGIN_KEYED: ReadonlySet<string> = new Set([
|
|
15
|
+
'ui.press',
|
|
16
|
+
'ui.input',
|
|
17
|
+
'ui.select',
|
|
18
|
+
'ui.focus',
|
|
19
|
+
'ui.render',
|
|
20
|
+
]);
|
|
21
|
+
|
|
22
|
+
/** The events raised for a mod's own `$` call with `op` set, heard only by a matcher that names `op`. */
|
|
23
|
+
const OP_KEYED: ReadonlySet<string> = new Set(['tool.check', 'tool.judge']);
|
|
24
|
+
|
|
25
|
+
/** The band's stack: a `component` matcher keeps a hook off it unless it names the list (§10.21.1 item 4). */
|
|
26
|
+
const LIST = 'AbovePromptList';
|
|
27
|
+
|
|
28
|
+
/** `{ plugin: '*' }`: every mod, and an event that carries no `plugin` (J10.12). */
|
|
29
|
+
const ANY_PLUGIN = '*';
|
|
30
|
+
|
|
31
|
+
const names = (matcher: ModMatcher | undefined, field: string): boolean =>
|
|
32
|
+
matcher?.[field] !== undefined;
|
|
33
|
+
|
|
34
|
+
/** The matcher as its own fields are tested: `plugin: '*'` is no filter of a value. */
|
|
35
|
+
export function fieldsTested(matcher: ModMatcher | undefined): ModMatcher | undefined {
|
|
36
|
+
if (matcher?.plugin !== ANY_PLUGIN) return matcher;
|
|
37
|
+
const { plugin: _any, ...rest } = matcher;
|
|
38
|
+
return rest;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Whether a hook without `plugin` hears the event: a bare wildcard hears every mod, any other its own. */
|
|
42
|
+
function ownOrBare(entry: ChainEntry, plugin: unknown): boolean {
|
|
43
|
+
const { event, matcher } = entry.hook;
|
|
44
|
+
if (isWildcard(event) && isUnfiltered(matcher)) return true;
|
|
45
|
+
return plugin === entry.plugin.name;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** Whether a matcher naming another `component` keeps a `ui.render` hook off the band's stack. */
|
|
49
|
+
const keptOffList = (matcher: ModMatcher | undefined, component: unknown): boolean =>
|
|
50
|
+
component === LIST && names(matcher, 'component') && matcher?.component !== LIST;
|
|
51
|
+
|
|
52
|
+
/** Whether an event raised for a mod's own call (`op`) passes a hook whose matcher does not name `op`. */
|
|
53
|
+
const opUnnamed = (event: string, matcher: ModMatcher | undefined, op: unknown): boolean =>
|
|
54
|
+
OP_KEYED.has(event) && op !== undefined && !names(matcher, 'op');
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Whether the hook of `entry` may hear `e` before its matcher's fields are tested: a hook on another
|
|
58
|
+
* mod's control or drawing needs `plugin`; a matcher naming another `component` keeps a `ui.render`
|
|
59
|
+
* hook off `AbovePromptList`; an event with `op` reaches only a matcher that names `op`.
|
|
60
|
+
*/
|
|
61
|
+
export function admitsByDefault(entry: ChainEntry, event: string, e: unknown): boolean {
|
|
62
|
+
if (!isRecord(e)) return true;
|
|
63
|
+
const { matcher } = entry.hook;
|
|
64
|
+
if (opUnnamed(event, matcher, e.op)) return false;
|
|
65
|
+
if (!PLUGIN_KEYED.has(event)) return true;
|
|
66
|
+
if (keptOffList(matcher, e.component)) return false;
|
|
67
|
+
if (names(matcher, 'plugin') || typeof e.plugin !== 'string') return true;
|
|
68
|
+
return ownOrBare(entry, e.plugin);
|
|
69
|
+
}
|
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
ChunkOf,
|
|
9
9
|
DispatchOptions,
|
|
10
10
|
EventOf,
|
|
11
|
+
EventRule,
|
|
11
12
|
EventRuleBook,
|
|
12
13
|
HookAccess,
|
|
13
14
|
ModChain,
|
|
@@ -57,6 +58,21 @@ async function collect(stream: Stream): Promise<unknown> {
|
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Claude Code's own behaviour as the chain reaches it: once per dispatch where the event's rule says
|
|
63
|
+
* so (`EventRule.coreAgain`), every later call answering from the first run's result.
|
|
64
|
+
*/
|
|
65
|
+
function coreOf(rule: EventRule, core: DispatchOptions['core']): DispatchOptions['core'] {
|
|
66
|
+
const again = rule.coreAgain;
|
|
67
|
+
if (again === undefined) return core;
|
|
68
|
+
let first: Promise<unknown> | undefined;
|
|
69
|
+
return async (e) => {
|
|
70
|
+
if (first !== undefined) return again(await first);
|
|
71
|
+
first = Promise.resolve(core(e));
|
|
72
|
+
return first;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
60
76
|
/** The time all the hooks of `event` share, stopped until the settings hooks finish (§10.11). */
|
|
61
77
|
const groupOf = (clock: Clock, event: string, ms: number | undefined): Pick<Context, 'group'> =>
|
|
62
78
|
ms === undefined ? {} : { group: { budget: createBudget(clock, ms, { paused: true }), event } };
|
|
@@ -78,10 +94,12 @@ export function createModChain(options: ModChainOptions): ModChain {
|
|
|
78
94
|
const groupMs = opts.groupMs ?? GROUP_MS[name];
|
|
79
95
|
// The host keeps its own object: hooks see a frozen copy.
|
|
80
96
|
const frozen = frozenCopy(input);
|
|
97
|
+
const rule = ruleOf(rules, name);
|
|
81
98
|
const ctx: Context = {
|
|
82
99
|
name,
|
|
83
100
|
options: {
|
|
84
101
|
...opts,
|
|
102
|
+
core: coreOf(rule, opts.core),
|
|
85
103
|
origin: deepFreeze({ ...opts.origin }),
|
|
86
104
|
...(opts.caller === undefined ? {} : { caller: deepFreeze({ ...opts.caller }) }),
|
|
87
105
|
},
|
|
@@ -91,7 +109,7 @@ export function createModChain(options: ModChainOptions): ModChain {
|
|
|
91
109
|
.filter((entry) => isAmong(opts.only, entry.plugin.name)),
|
|
92
110
|
input: frozen,
|
|
93
111
|
fired: input,
|
|
94
|
-
rule
|
|
112
|
+
rule,
|
|
95
113
|
matcherMs: options.matcherMs ?? MATCHER_MS,
|
|
96
114
|
...hostParts,
|
|
97
115
|
calling: { frames, followed: running !== undefined, frame: running?.current() },
|
|
@@ -91,6 +91,13 @@ export const timedOut = (ms: number): Failure => ({
|
|
|
91
91
|
skip: 'timeout',
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
+
/** A hook that waited on `$` calls past what its event allows (§10.11: `ui.render`, `plugin.register`). */
|
|
95
|
+
export const waitedOut = (ms: number): Failure => ({
|
|
96
|
+
kind: 'timeout',
|
|
97
|
+
reason: `timed out: waited on $ calls past its ${ms} ms limit`,
|
|
98
|
+
skip: 'timeout',
|
|
99
|
+
});
|
|
100
|
+
|
|
94
101
|
/** The hooks of one event that used up the time they share. */
|
|
95
102
|
export const groupTimedOut = (event: string, ms: number): Failure => ({
|
|
96
103
|
kind: 'timeout',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Budget } from '../../foundation/index.ts';
|
|
2
|
-
import { groupTimedOut, thrown, timedOut, type Failure } from './failure.ts';
|
|
2
|
+
import { groupTimedOut, thrown, timedOut, waitedOut, type Failure } from './failure.ts';
|
|
3
3
|
import { isHookBody } from './hook-body.ts';
|
|
4
4
|
import type { LingerWatch } from './linger.ts';
|
|
5
5
|
import type { Floor } from './next.ts';
|
|
@@ -13,13 +13,19 @@ export interface Limits {
|
|
|
13
13
|
readonly group?: { readonly budget: Budget; readonly event: string };
|
|
14
14
|
/** Whether the hook waits inside `next`, where the shared time running out is not its fault. */
|
|
15
15
|
readonly floor?: Floor;
|
|
16
|
+
/** The time the hook may wait on `$` calls, for the events that bound it (§10.11). */
|
|
17
|
+
readonly wait?: Budget;
|
|
16
18
|
/** Told each step the hook's own code is running, for `HookBudget.lingerMs`. */
|
|
17
19
|
readonly watch?: LingerWatch;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
/** Resolves with the failure once a limit is spent; never resolves while both have time. */
|
|
21
23
|
function expiry(limits: Limits): Promise<{ readonly failed: Failure }> {
|
|
22
|
-
const
|
|
24
|
+
const ownTime = limits.budget.expired.then(() => ({ failed: timedOut(limits.budget.ms) }));
|
|
25
|
+
const { wait } = limits;
|
|
26
|
+
const own = wait
|
|
27
|
+
? Promise.race([ownTime, wait.expired.then(() => ({ failed: waitedOut(wait.ms) }))])
|
|
28
|
+
: ownTime;
|
|
23
29
|
if (!limits.group) return own;
|
|
24
30
|
const { budget, event } = limits.group;
|
|
25
31
|
// The shared clock never stops (§10.11): it fails the hook that has the floor when it runs out,
|
package/src/mods/chain/invoke.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { createBudget, deepFreeze } from '../../foundation/index.ts';
|
|
|
2
2
|
import { MOD_LIMITS } from '../../protocol/mods-limits.ts';
|
|
3
3
|
import type { ModsApi, SkipKind } from '../types.ts';
|
|
4
4
|
import { guardApi } from './api-guard.ts';
|
|
5
|
-
import { hookMs, type Context } from './context.ts';
|
|
5
|
+
import { hookMs, waitLimit, type Context } from './context.ts';
|
|
6
6
|
import { createDownstream, finish, type Stream } from './downstream.ts';
|
|
7
7
|
import {
|
|
8
8
|
EXPIRED,
|
|
@@ -30,6 +30,7 @@ import { reentrySkips } from './reentry.ts';
|
|
|
30
30
|
import { TIER_RANK } from './tiers.ts';
|
|
31
31
|
import { hookStep } from './trace.ts';
|
|
32
32
|
import { runCore } from './core.ts';
|
|
33
|
+
import { admitsByDefault } from './default-matcher.ts';
|
|
33
34
|
|
|
34
35
|
/** What to run for a hook or for its handler, and how long it has. */
|
|
35
36
|
interface Run {
|
|
@@ -58,9 +59,11 @@ export async function* runFrom(
|
|
|
58
59
|
tier: entry.tier,
|
|
59
60
|
isBuiltin: entry.plugin.isBuiltin ?? false,
|
|
60
61
|
input: ctx.fired,
|
|
62
|
+
origin: ctx.options.origin,
|
|
61
63
|
}) === false
|
|
62
64
|
)
|
|
63
65
|
continue;
|
|
66
|
+
if (!admitsByDefault(entry, ctx.name, e)) continue;
|
|
64
67
|
const verdict = await entry.matcher.test(e, run);
|
|
65
68
|
if (verdict.matched)
|
|
66
69
|
return yield* counted(
|
|
@@ -101,12 +104,27 @@ function partsOf(
|
|
|
101
104
|
};
|
|
102
105
|
}
|
|
103
106
|
|
|
107
|
+
/** A run's own time and, for the events that bound it, the time it may wait on `$` calls (§10.11). */
|
|
108
|
+
function budgetsOf(ctx: Context, ms: number) {
|
|
109
|
+
const budget = createBudget(ctx.clock, ms);
|
|
110
|
+
const limit = waitLimit(ctx.name);
|
|
111
|
+
const wait = limit && {
|
|
112
|
+
budget: createBudget(ctx.clock, limit.ms, { paused: true }),
|
|
113
|
+
exempt: limit.exempt,
|
|
114
|
+
};
|
|
115
|
+
const dispose = (): void => {
|
|
116
|
+
budget.dispose();
|
|
117
|
+
wait?.budget.dispose();
|
|
118
|
+
};
|
|
119
|
+
return { budget, wait, dispose };
|
|
120
|
+
}
|
|
121
|
+
|
|
104
122
|
/** One run of a hook or of its handler, under its time limit, until it returns or fails. */
|
|
105
123
|
async function* attempt(site: Site, run: Run): AsyncGenerator<unknown, Outcome> {
|
|
106
124
|
const { ctx, entry } = site;
|
|
107
125
|
if (ctx.group?.budget.isExpired())
|
|
108
126
|
return { failed: groupTimedOut(ctx.group.event, ctx.group.budget.ms) };
|
|
109
|
-
const budget =
|
|
127
|
+
const { budget, wait, dispose } = budgetsOf(ctx, run.ms);
|
|
110
128
|
const floor = { inNext: 0 };
|
|
111
129
|
const abandon = new AbortController();
|
|
112
130
|
const signal = AbortSignal.any([ctx.options.signal, abandon.signal]);
|
|
@@ -121,14 +139,14 @@ async function* attempt(site: Site, run: Run): AsyncGenerator<unknown, Outcome>
|
|
|
121
139
|
try {
|
|
122
140
|
out = within(() =>
|
|
123
141
|
run.start(
|
|
124
|
-
guardApi(entry.plugin.api, budget, within),
|
|
142
|
+
guardApi(entry.plugin.api, budget, within, wait),
|
|
125
143
|
deepFreeze(site.e),
|
|
126
144
|
partsOf(site, { budget, floor }, signal),
|
|
127
145
|
),
|
|
128
146
|
);
|
|
129
147
|
} catch (error) {
|
|
130
148
|
leave();
|
|
131
|
-
|
|
149
|
+
dispose();
|
|
132
150
|
return { failed: thrown(error) };
|
|
133
151
|
}
|
|
134
152
|
let ended: Outcome;
|
|
@@ -139,11 +157,12 @@ async function* attempt(site: Site, run: Run): AsyncGenerator<unknown, Outcome>
|
|
|
139
157
|
floor,
|
|
140
158
|
watch,
|
|
141
159
|
...(ctx.group ? { group: ctx.group } : {}),
|
|
160
|
+
...(wait ? { wait: wait.budget } : {}),
|
|
142
161
|
});
|
|
143
162
|
} finally {
|
|
144
163
|
leave();
|
|
145
164
|
}
|
|
146
|
-
|
|
165
|
+
dispose();
|
|
147
166
|
if ('failed' in ended) {
|
|
148
167
|
abandon.abort(new Error(ended.failed.message)); // judgment: a hook that failed has its background work stopped
|
|
149
168
|
return ended;
|
|
@@ -245,6 +264,7 @@ function noteAnswer(site: Site): void {
|
|
|
245
264
|
const { ctx, entry } = site;
|
|
246
265
|
if (site.downstream.latest() !== undefined) return;
|
|
247
266
|
ctx.options.debug?.(`${entry.plugin.name} (${entry.tier}) answered ${ctx.name} without next()`);
|
|
267
|
+
ctx.options.answered?.({ plugin: entry.plugin.name, tier: entry.tier });
|
|
248
268
|
}
|
|
249
269
|
|
|
250
270
|
async function* invoke(site: Site): Stream {
|
|
@@ -2,6 +2,7 @@ import { error, type PluginIssue } from '../../format/issues.ts';
|
|
|
2
2
|
import { TELEMETRY_FILTER, type ModMatcher, type ModTier } from '../../protocol/mods-events.ts';
|
|
3
3
|
import type { MatcherEngine } from '../ports.ts';
|
|
4
4
|
import type { RegisteredHook } from '../types.ts';
|
|
5
|
+
import { fieldsTested } from './default-matcher.ts';
|
|
5
6
|
import { acceptsField, compileMatcher, isUnfiltered, type CompiledMatcher } from './matcher.ts';
|
|
6
7
|
import { isKnownEvent, isStreamEvent, isWildcard, selectsTelemetry } from './wildcard.ts';
|
|
7
8
|
|
|
@@ -76,7 +77,7 @@ export function checkHooks(
|
|
|
76
77
|
for (const hook of hooks) {
|
|
77
78
|
const found = formProblem(hook) ?? telemetryProblem(hook, tier);
|
|
78
79
|
if (found) issues.push(found);
|
|
79
|
-
const compiled = compileMatcher(hook.matcher, engine);
|
|
80
|
+
const compiled = compileMatcher(fieldsTested(hook.matcher), engine);
|
|
80
81
|
if ('test' in compiled) matchers.push(compiled);
|
|
81
82
|
else issues.push(error(at(hook.event), `on("${hook.event}"): ${compiled.problem}`));
|
|
82
83
|
}
|
package/src/mods/events/agent.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MOD_EVENT_GROUPS } from '../../protocol/mods-events.ts';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { answer, fields, flag,
|
|
3
|
+
import { answer, fields, flag, text, type EventSpec } from './spec.ts';
|
|
4
4
|
import { isRecord } from '../../protocol/is-record.ts';
|
|
5
5
|
|
|
6
6
|
/** The subagent events (reference.md, "Subagents"). */
|
|
@@ -17,8 +17,12 @@ function spawnedAs(original: unknown, passed: unknown): unknown {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const AGENT_SPECS: { readonly [N in AgentEvent]: EventSpec } = {
|
|
20
|
-
// A hook answers `{ isOffered: false }` to withhold the subagent type
|
|
21
|
-
|
|
20
|
+
// A hook answers `{ isOffered: false }` to withhold the subagent type from the listing and refuse
|
|
21
|
+
// its dispatch; `e.agentId` is set on the offer to resume an agent of that type (2.1.330).
|
|
22
|
+
'agent.offer': {
|
|
23
|
+
input: fields({ agentId: text.optional() }),
|
|
24
|
+
result: answer({ isOffered: flag.optional() }),
|
|
25
|
+
},
|
|
22
26
|
// `e.isTeammate` is `true` for a teammate, `e.resume` is `{ agentId }` for a resumed run. A hook
|
|
23
27
|
// passes `{ ...e, model }` to choose the model of one that is starting, or answers `{ deny }`.
|
|
24
28
|
'agent.spawn': {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { DECLARED_EVENT_NAMES } from '../../protocol/mods-events.ts';
|
|
3
|
+
import { answer, count, fields, flag, passThrough, text, type EventSpec } from './spec.ts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The engine's events only the 2.1.330 declarations define (spec Judgment J10.22; §10.16, §10.19.3,
|
|
7
|
+
* §10.19.4). `prompt.change` has its own file.
|
|
8
|
+
*/
|
|
9
|
+
type DeclaredEvent = Exclude<(typeof DECLARED_EVENT_NAMES)[number], 'prompt.change'>;
|
|
10
|
+
|
|
11
|
+
/** `{ plugin, tier }` of whoever defined the tool or the agent. */
|
|
12
|
+
const provider = z.looseObject({ plugin: text, tier: text });
|
|
13
|
+
|
|
14
|
+
export const DECLARED_SPECS: { readonly [N in DeclaredEvent]: EventSpec } = {
|
|
15
|
+
// `ToolOfferInput` (claude-code/index.d.ts:5400): `{ isOffered: false }` keeps the tool from the
|
|
16
|
+
// loop's model; `next(e)` resolves `{ isOffered: true }`; a hook that fails passes the tool through.
|
|
17
|
+
'tool.offer': {
|
|
18
|
+
input: fields({
|
|
19
|
+
tool: text,
|
|
20
|
+
provider,
|
|
21
|
+
agentId: text.optional(),
|
|
22
|
+
subagentType: text.optional(),
|
|
23
|
+
}),
|
|
24
|
+
result: answer({ isOffered: flag }),
|
|
25
|
+
},
|
|
26
|
+
// `AgentReportInput` (:5219): what the outermost hook returns is delivered, `{ text }` or
|
|
27
|
+
// `{ consumed: reason }`.
|
|
28
|
+
'agent.report': {
|
|
29
|
+
input: fields({
|
|
30
|
+
agentId: text,
|
|
31
|
+
parentAgentId: text.optional(),
|
|
32
|
+
subagentType: text,
|
|
33
|
+
status: z.enum(['completed', 'failed', 'stopped']),
|
|
34
|
+
text,
|
|
35
|
+
provider,
|
|
36
|
+
}),
|
|
37
|
+
result: answer({ text: text.optional(), consumed: text.optional() }),
|
|
38
|
+
},
|
|
39
|
+
// `UiPointerInput` (:5134): a click on the backdrop, seen only by the mod that set the theme;
|
|
40
|
+
// observe only.
|
|
41
|
+
'ui.pointer': {
|
|
42
|
+
input: fields({
|
|
43
|
+
type: z.literal('click'),
|
|
44
|
+
x: count,
|
|
45
|
+
y: count,
|
|
46
|
+
scene: text,
|
|
47
|
+
component: z.literal('Backdrop'),
|
|
48
|
+
}),
|
|
49
|
+
result: passThrough,
|
|
50
|
+
},
|
|
51
|
+
};
|
package/src/mods/events/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { AGENT_SPECS } from './agent.ts';
|
|
|
5
5
|
import { ATTRIBUTION_SPEC } from './attribution.ts';
|
|
6
6
|
import { COMMAND_SPECS } from './command.ts';
|
|
7
7
|
import { CONFIG_SPECS } from './config.ts';
|
|
8
|
+
import { DECLARED_SPECS } from './declared.ts';
|
|
8
9
|
import { PROMPT_CHANGE_SPEC, PROMPT_SPECS } from './prompt.ts';
|
|
9
10
|
import { SESSION_SPECS } from './session.ts';
|
|
10
11
|
import { SKILL_PROMPT_SPEC } from './skill.ts';
|
|
@@ -28,6 +29,7 @@ export const EVENT_SPECS = {
|
|
|
28
29
|
...TURN_SPECS,
|
|
29
30
|
...SESSION_SPECS,
|
|
30
31
|
...AGENT_SPECS,
|
|
32
|
+
...DECLARED_SPECS,
|
|
31
33
|
} as const satisfies Readonly<Record<string, EventSpec>>;
|
|
32
34
|
|
|
33
35
|
export type SpecifiedEventName = keyof typeof EVENT_SPECS;
|
|
@@ -52,7 +54,7 @@ export function eventInputProblem(event: string, input: unknown): string | undef
|
|
|
52
54
|
* wording is the kit's), and one returned after `next` was answered is checked once more.
|
|
53
55
|
*/
|
|
54
56
|
function ruleOfSpec(event: string, spec: EventSpec): EventRule {
|
|
55
|
-
const { changeProblem, coreInput, settle } = spec;
|
|
57
|
+
const { changeProblem, coreInput, settle, coreAgain } = spec;
|
|
56
58
|
return {
|
|
57
59
|
shapeProblem(result, answered) {
|
|
58
60
|
const parsed = spec.result.safeParse(result);
|
|
@@ -62,6 +64,7 @@ function ruleOfSpec(event: string, spec: EventSpec): EventRule {
|
|
|
62
64
|
...(changeProblem ? { changeProblem } : {}),
|
|
63
65
|
...(coreInput ? { coreInput } : {}),
|
|
64
66
|
...(settle ? { settle } : {}),
|
|
67
|
+
...(coreAgain ? { coreAgain } : {}),
|
|
65
68
|
};
|
|
66
69
|
}
|
|
67
70
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isRecord } from '../../protocol/is-record.ts';
|
|
2
|
+
import { sameData } from './spec.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The refusal of an event passed to `next` with a pinned field changed (spec §10.16: `tool.check`'s
|
|
6
|
+
* `isCeilingUnread` and `op`, `tool.describe`'s `mcpServer`, every field of `tool.run`). `'every'`
|
|
7
|
+
* pins every field the event was fired with, and one a hook adds.
|
|
8
|
+
*/
|
|
9
|
+
export function pinnedFields(
|
|
10
|
+
event: string,
|
|
11
|
+
pinned: readonly string[] | 'every',
|
|
12
|
+
): (original: unknown, changed: unknown) => string | undefined {
|
|
13
|
+
return (original, changed) => {
|
|
14
|
+
if (!isRecord(original) || !isRecord(changed)) return undefined;
|
|
15
|
+
const names =
|
|
16
|
+
pinned === 'every' ? new Set([...Object.keys(original), ...Object.keys(changed)]) : pinned;
|
|
17
|
+
const field = [...names].find((name) => !sameData(original[name], changed[name]));
|
|
18
|
+
if (field === undefined) return undefined;
|
|
19
|
+
return pinned === 'every'
|
|
20
|
+
? `${event}: every field of the call is pinned; "${field}" was changed`
|
|
21
|
+
: `${event}: "${field}" is pinned; a hook cannot change it`;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { SESSION_END_REASONS } from '../../protocol/exit-reasons.ts';
|
|
3
3
|
import type { MOD_EVENT_GROUPS } from '../../protocol/mods-events.ts';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
answer,
|
|
6
|
+
count,
|
|
7
|
+
fields,
|
|
8
|
+
flag,
|
|
9
|
+
noFields,
|
|
10
|
+
passThrough,
|
|
11
|
+
text,
|
|
12
|
+
type EventSpec,
|
|
13
|
+
} from './spec.ts';
|
|
5
14
|
import { isRecord } from '../../protocol/is-record.ts';
|
|
6
15
|
|
|
7
16
|
/** The session events (reference.md, "Session"; api.md, "Send and receive messages between sessions"). */
|
|
@@ -38,8 +47,12 @@ export const SESSION_SPECS: { readonly [N in SessionEvent]: EventSpec } = {
|
|
|
38
47
|
}),
|
|
39
48
|
result: passThrough,
|
|
40
49
|
},
|
|
41
|
-
// A hook answers `{ skip: reason }` to stop the compaction.
|
|
42
|
-
|
|
50
|
+
// A hook answers `{ skip: reason }` to stop the compaction. Each message may carry its `uuid`
|
|
51
|
+
// (2.1.330, spec §10.19.2).
|
|
52
|
+
'session.compact': {
|
|
53
|
+
input: fields({ messages: z.array(z.looseObject({ uuid: text.optional() })).optional() }),
|
|
54
|
+
result: answer({ skip: text.optional() }),
|
|
55
|
+
},
|
|
43
56
|
// `e.text` is the message and `e.origin.kind` says where it came from (`peer`,
|
|
44
57
|
// `peer-send-message`, `task-notification`, `scheduled-trigger`...); `{ consumed: reason }` keeps it from Claude.
|
|
45
58
|
'session.receive': {
|
|
@@ -66,5 +79,14 @@ export const SESSION_SPECS: { readonly [N in SessionEvent]: EventSpec } = {
|
|
|
66
79
|
},
|
|
67
80
|
'session.attach': { input: noFields, result: passThrough },
|
|
68
81
|
'session.detach': { input: noFields, result: passThrough },
|
|
69
|
-
|
|
82
|
+
// `cost` is `{ usd, hasUnknownPrice? }` (claude-code/index.d.ts:14657 of 2.1.330).
|
|
83
|
+
'session.measure': {
|
|
84
|
+
input: fields({
|
|
85
|
+
cost: z.looseObject({ usd: count, hasUnknownPrice: flag.optional() }).optional(),
|
|
86
|
+
}),
|
|
87
|
+
result: passThrough,
|
|
88
|
+
},
|
|
89
|
+
// §10.19.2: observe only; the stop goes on whatever a hook does, and `next(e)` resolves
|
|
90
|
+
// `{ isTurnRunning }` (`SessionStopInput`, claude-code/index.d.ts:5900).
|
|
91
|
+
'session.stop': { input: fields({ isTurnRunning: flag }), result: passThrough },
|
|
70
92
|
};
|
package/src/mods/events/spec.ts
CHANGED
|
@@ -20,6 +20,8 @@ export interface EventSpec {
|
|
|
20
20
|
readonly coreInput?: (original: unknown, passed: unknown) => unknown;
|
|
21
21
|
/** A hook's result as it counts, for example with an over-long reason cut. */
|
|
22
22
|
readonly settle?: (result: unknown) => unknown;
|
|
23
|
+
/** What a later `next(e)` answers when Claude Code's own behaviour runs once per event. */
|
|
24
|
+
readonly coreAgain?: (first: unknown) => unknown;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export const text = z.string();
|
package/src/mods/events/tool.ts
CHANGED
|
@@ -1,14 +1,45 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { PERMISSION_BEHAVIORS } from '../../protocol/permission-modes.ts';
|
|
3
3
|
import type { MOD_EVENT_GROUPS } from '../../protocol/mods-events.ts';
|
|
4
|
+
import { pinnedFields } from './pinned.ts';
|
|
4
5
|
import { answer, fields, flag, text, type EventSpec } from './spec.ts';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
|
-
* The tool events (reference.md, "Tools"; events.md, "Guard or change a tool call" and
|
|
8
|
-
* refuse a tool call before the user is asked").
|
|
8
|
+
* The tool events (spec §10.16; reference.md, "Tools"; events.md, "Guard or change a tool call" and
|
|
9
|
+
* "Approve or refuse a tool call before the user is asked").
|
|
9
10
|
*/
|
|
10
11
|
type ToolEvent = (typeof MOD_EVENT_GROUPS.tools)[number];
|
|
11
12
|
|
|
13
|
+
// The layer gate reads `process` and a dot in code as the global, so the namespace is named once, apart.
|
|
14
|
+
const PROCESS_NAMESPACE = 'process';
|
|
15
|
+
|
|
16
|
+
/** The `$` calls a `tool.check` or `tool.judge` with no tool stands for (`e.op`, claude-code/index.d.ts:17969). */
|
|
17
|
+
const TOOL_CHECK_OPS = [
|
|
18
|
+
'fs.read',
|
|
19
|
+
'fs.list',
|
|
20
|
+
'fs.write',
|
|
21
|
+
`${PROCESS_NAMESPACE}.run`,
|
|
22
|
+
`${PROCESS_NAMESPACE}.spawn`,
|
|
23
|
+
] as const;
|
|
24
|
+
|
|
25
|
+
/** The fields `tool.check` and `tool.judge` share (`ToolCheckInput`, `ToolJudgeInput`). */
|
|
26
|
+
const checkFields = {
|
|
27
|
+
tool: text,
|
|
28
|
+
input: z.record(z.string(), z.unknown()),
|
|
29
|
+
agentId: text.optional(),
|
|
30
|
+
approver: z.enum(['host', 'person']).optional(),
|
|
31
|
+
ceiling: z.enum(PERMISSION_BEHAVIORS).optional(),
|
|
32
|
+
isCeilingUnread: z.literal(true).optional(),
|
|
33
|
+
isReadOnly: z.literal(true).optional(),
|
|
34
|
+
op: z.enum(TOOL_CHECK_OPS).optional(),
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** A decision: `allow`, `ask` or `deny`, with an optional reason. */
|
|
38
|
+
const decided = answer({ decision: z.enum(PERMISSION_BEHAVIORS), reason: text.optional() });
|
|
39
|
+
|
|
40
|
+
/** What a second `next(e)` in a `tool.run` hook answers: the tool ran once already (§10.16.6 item 3). */
|
|
41
|
+
const TOOL_RAN_ONCE = 'tool.run: the call already ran; next(e) runs it once';
|
|
42
|
+
|
|
12
43
|
export const TOOL_SPECS: { readonly [N in ToolEvent]: EventSpec } = {
|
|
13
44
|
// `e.tool` is the tool's name and its arguments are fields of `e`, such as `e.command` for Bash.
|
|
14
45
|
// A hook answers `{ deny }` or `{ result }`; what `next` resolves to is the tool's own result,
|
|
@@ -18,25 +49,39 @@ export const TOOL_SPECS: { readonly [N in ToolEvent]: EventSpec } = {
|
|
|
18
49
|
result: answer({ deny: text.optional(), isError: flag.optional() }),
|
|
19
50
|
},
|
|
20
51
|
// `e.input` holds the arguments. `e.isReadOnly` is `true` or absent, "not `false`". The decision
|
|
21
|
-
// `next(e)` resolves to is an object whose `decision` is allow, ask or deny.
|
|
52
|
+
// `next(e)` resolves to is an object whose `decision` is allow, ask or deny. `isCeilingUnread` and
|
|
53
|
+
// `op` are set by the client and pinned (claude-code/index.d.ts:17959, :17969 of 2.1.330).
|
|
22
54
|
'tool.check': {
|
|
23
|
-
input: fields(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
55
|
+
input: fields(checkFields),
|
|
56
|
+
result: decided,
|
|
57
|
+
changeProblem: pinnedFields('tool.check', ['isCeilingUnread', 'op']),
|
|
58
|
+
},
|
|
59
|
+
// §10.16.5: `next(e)` asks the classifier once however often a hook calls it; a hook decides in
|
|
60
|
+
// its place with `{ decision }`.
|
|
61
|
+
'tool.judge': {
|
|
62
|
+
input: fields({ ...checkFields, tool_use_id: text }),
|
|
63
|
+
result: decided,
|
|
64
|
+
changeProblem: pinnedFields('tool.judge', ['isCeilingUnread', 'op']),
|
|
65
|
+
coreAgain: (first) => first,
|
|
66
|
+
},
|
|
67
|
+
// §10.16.6: the call as allowed, every field pinned; `next(e)` runs the tool once, a second call
|
|
68
|
+
// starts nothing and resolves to a `{ deny }`.
|
|
69
|
+
'tool.run': {
|
|
70
|
+
input: fields({ tool: text }),
|
|
71
|
+
result: answer({ deny: text.optional(), isError: flag.optional() }),
|
|
72
|
+
changeProblem: pinnedFields('tool.run', 'every'),
|
|
73
|
+
coreAgain: () => ({ deny: TOOL_RAN_ONCE }),
|
|
31
74
|
},
|
|
32
75
|
// `e.description` is the text Claude reads; a hook answers `{ description }` and may set
|
|
33
76
|
// `isDeferred`, and `breakPromptCache: true` to send a changed description on the next turn.
|
|
77
|
+
// `e.mcpServer` is read off the connection that listed the tool and pinned (:18111 of 2.1.330).
|
|
34
78
|
'tool.describe': {
|
|
35
|
-
input: fields({ description: text }),
|
|
79
|
+
input: fields({ description: text, mcpServer: z.looseObject({ type: text }).optional() }),
|
|
36
80
|
result: answer({
|
|
37
81
|
description: text,
|
|
38
82
|
isDeferred: flag.optional(),
|
|
39
83
|
breakPromptCache: flag.optional(),
|
|
40
84
|
}),
|
|
85
|
+
changeProblem: pinnedFields('tool.describe', ['mcpServer']),
|
|
41
86
|
},
|
|
42
87
|
};
|