@localix-ai/agent-plugins 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +386 -0
- package/dist/agents/catalog/builtin.d.ts +9 -3
- package/dist/agents/catalog/builtin.d.ts.map +1 -1
- package/dist/agents/catalog/builtin.js +16 -2
- package/dist/agents/catalog/builtin.js.map +1 -1
- package/dist/agents/catalog/scan.d.ts +4 -1
- package/dist/agents/catalog/scan.d.ts.map +1 -1
- package/dist/agents/catalog/scan.js +1 -0
- package/dist/agents/catalog/scan.js.map +1 -1
- package/dist/agents/index.d.ts +3 -2
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +3 -2
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/launch-model.d.ts +31 -6
- package/dist/agents/launch-model.d.ts.map +1 -1
- package/dist/agents/launch-model.js +43 -22
- package/dist/agents/launch-model.js.map +1 -1
- package/dist/agents/launch.d.ts +18 -4
- package/dist/agents/launch.d.ts.map +1 -1
- package/dist/agents/launch.js +29 -15
- package/dist/agents/launch.js.map +1 -1
- package/dist/agents/model-choice.d.ts +10 -2
- package/dist/agents/model-choice.d.ts.map +1 -1
- package/dist/agents/model-choice.js +10 -4
- package/dist/agents/model-choice.js.map +1 -1
- package/dist/agents/task-list.d.ts +24 -0
- package/dist/agents/task-list.d.ts.map +1 -0
- package/dist/agents/task-list.js +12 -0
- package/dist/agents/task-list.js.map +1 -0
- package/dist/agents/tool-filters.d.ts +11 -2
- package/dist/agents/tool-filters.d.ts.map +1 -1
- package/dist/agents/tool-filters.js +9 -1
- package/dist/agents/tool-filters.js.map +1 -1
- package/dist/agents/tool-resolution.d.ts.map +1 -1
- package/dist/agents/tool-resolution.js +19 -3
- package/dist/agents/tool-resolution.js.map +1 -1
- package/dist/agents/workflow/replay.d.ts +3 -2
- package/dist/agents/workflow/replay.d.ts.map +1 -1
- package/dist/agents/workflow/replay.js +11 -2
- package/dist/agents/workflow/replay.js.map +1 -1
- package/dist/agents/workflow/usage-limit.d.ts +19 -5
- package/dist/agents/workflow/usage-limit.d.ts.map +1 -1
- package/dist/agents/workflow/usage-limit.js +32 -4
- package/dist/agents/workflow/usage-limit.js.map +1 -1
- package/dist/cli/command-table.d.ts +1 -1
- package/dist/cli/command-table.d.ts.map +1 -1
- package/dist/cli/command-table.js +2 -0
- package/dist/cli/command-table.js.map +1 -1
- package/dist/cli/flags/session.d.ts.map +1 -1
- package/dist/cli/flags/session.js +2 -1
- package/dist/cli/flags/session.js.map +1 -1
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +3 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/install-command-outcome.d.ts +31 -0
- package/dist/cli/install-command-outcome.d.ts.map +1 -0
- package/dist/cli/install-command-outcome.js +34 -0
- package/dist/cli/install-command-outcome.js.map +1 -0
- package/dist/cli/install-command-step.d.ts +13 -0
- package/dist/cli/install-command-step.d.ts.map +1 -0
- package/dist/cli/install-command-step.js +52 -0
- package/dist/cli/install-command-step.js.map +1 -0
- package/dist/cli/install-engines.d.ts +27 -0
- package/dist/cli/install-engines.d.ts.map +1 -0
- package/dist/cli/install-engines.js +29 -0
- package/dist/cli/install-engines.js.map +1 -0
- package/dist/cli/install-plan.d.ts +6 -0
- package/dist/cli/install-plan.d.ts.map +1 -1
- package/dist/cli/install-plan.js +31 -61
- package/dist/cli/install-plan.js.map +1 -1
- package/dist/cli/install-refusals.d.ts +5 -0
- package/dist/cli/install-refusals.d.ts.map +1 -1
- package/dist/cli/install-refusals.js +5 -0
- package/dist/cli/install-refusals.js.map +1 -1
- package/dist/cli/install-success.d.ts +17 -0
- package/dist/cli/install-success.d.ts.map +1 -0
- package/dist/cli/install-success.js +13 -0
- package/dist/cli/install-success.js.map +1 -0
- package/dist/cli/marketplace-list.js +1 -1
- package/dist/cli/marketplace-list.js.map +1 -1
- package/dist/cli/marketplace-update.d.ts +3 -1
- package/dist/cli/marketplace-update.d.ts.map +1 -1
- package/dist/cli/marketplace-update.js +5 -0
- package/dist/cli/marketplace-update.js.map +1 -1
- package/dist/cli/restore-set-aside.d.ts +38 -0
- package/dist/cli/restore-set-aside.d.ts.map +1 -0
- package/dist/cli/restore-set-aside.js +25 -0
- package/dist/cli/restore-set-aside.js.map +1 -0
- package/dist/cli/result.d.ts +6 -0
- package/dist/cli/result.d.ts.map +1 -1
- package/dist/cli/result.js +6 -2
- package/dist/cli/result.js.map +1 -1
- package/dist/cli/uninstall-data.d.ts +13 -1
- package/dist/cli/uninstall-data.d.ts.map +1 -1
- package/dist/cli/uninstall-data.js +4 -0
- package/dist/cli/uninstall-data.js.map +1 -1
- package/dist/cli/update-dependencies.d.ts +31 -0
- package/dist/cli/update-dependencies.d.ts.map +1 -0
- package/dist/cli/update-dependencies.js +35 -0
- package/dist/cli/update-dependencies.js.map +1 -0
- package/dist/cli/update-facts.d.ts +12 -0
- package/dist/cli/update-facts.d.ts.map +1 -1
- package/dist/cli/update-plan.d.ts +10 -0
- package/dist/cli/update-plan.d.ts.map +1 -1
- package/dist/cli/update-plan.js +34 -6
- package/dist/cli/update-plan.js.map +1 -1
- package/dist/cli/validate-lists.d.ts +66 -0
- package/dist/cli/validate-lists.d.ts.map +1 -0
- package/dist/cli/validate-lists.js +107 -0
- package/dist/cli/validate-lists.js.map +1 -0
- package/dist/cli/validate-run.d.ts +13 -8
- package/dist/cli/validate-run.d.ts.map +1 -1
- package/dist/cli/validate-run.js +3 -0
- package/dist/cli/validate-run.js.map +1 -1
- package/dist/entry/mods.d.ts +1 -1
- package/dist/entry/mods.d.ts.map +1 -1
- package/dist/entry/mods.js +1 -1
- package/dist/entry/mods.js.map +1 -1
- package/dist/format/add-dir-gate.d.ts +27 -0
- package/dist/format/add-dir-gate.d.ts.map +1 -0
- package/dist/format/add-dir-gate.js +16 -0
- package/dist/format/add-dir-gate.js.map +1 -0
- package/dist/format/agent-scalars.d.ts +5 -8
- package/dist/format/agent-scalars.d.ts.map +1 -1
- package/dist/format/agent-scalars.js +7 -8
- package/dist/format/agent-scalars.js.map +1 -1
- package/dist/format/engines.d.ts +63 -0
- package/dist/format/engines.d.ts.map +1 -0
- package/dist/format/engines.js +78 -0
- package/dist/format/engines.js.map +1 -0
- package/dist/format/hooks-handlers.d.ts.map +1 -1
- package/dist/format/hooks-handlers.js +2 -0
- package/dist/format/hooks-handlers.js.map +1 -1
- package/dist/format/host-errors.d.ts.map +1 -1
- package/dist/format/host-errors.js +1 -1
- package/dist/format/host-errors.js.map +1 -1
- package/dist/format/index.d.ts +4 -1
- package/dist/format/index.d.ts.map +1 -1
- package/dist/format/index.js +4 -1
- package/dist/format/index.js.map +1 -1
- package/dist/format/locate.d.ts +1 -1
- package/dist/format/locate.js +1 -1
- package/dist/format/manifest-schema.d.ts +4 -0
- package/dist/format/manifest-schema.d.ts.map +1 -1
- package/dist/format/manifest-schema.js +3 -0
- package/dist/format/manifest-schema.js.map +1 -1
- package/dist/format/manifest.d.ts +3 -0
- package/dist/format/manifest.d.ts.map +1 -1
- package/dist/format/manifest.js +84 -12
- package/dist/format/manifest.js.map +1 -1
- package/dist/format/marketplace/entries.d.ts.map +1 -1
- package/dist/format/marketplace/entries.js +13 -5
- package/dist/format/marketplace/entries.js.map +1 -1
- package/dist/format/marketplace/entry-display.d.ts +22 -0
- package/dist/format/marketplace/entry-display.d.ts.map +1 -0
- package/dist/format/marketplace/entry-display.js +60 -0
- package/dist/format/marketplace/entry-display.js.map +1 -0
- package/dist/format/marketplace/entry-schema.d.ts +1 -1
- package/dist/format/marketplace/entry-schema.d.ts.map +1 -1
- package/dist/format/marketplace/entry-schema.js +4 -1
- package/dist/format/marketplace/entry-schema.js.map +1 -1
- package/dist/format/marketplace/index.d.ts +2 -1
- package/dist/format/marketplace/index.d.ts.map +1 -1
- package/dist/format/marketplace/index.js +2 -1
- package/dist/format/marketplace/index.js.map +1 -1
- package/dist/format/marketplace/marketplace-name-lists.d.ts +0 -2
- package/dist/format/marketplace/marketplace-name-lists.d.ts.map +1 -1
- package/dist/format/marketplace/marketplace-name-lists.js +0 -9
- package/dist/format/marketplace/marketplace-name-lists.js.map +1 -1
- package/dist/format/marketplace/marketplace-names.d.ts +2 -0
- package/dist/format/marketplace/marketplace-names.d.ts.map +1 -1
- package/dist/format/marketplace/marketplace-names.js +14 -16
- package/dist/format/marketplace/marketplace-names.js.map +1 -1
- package/dist/format/marketplace/plugin-source.d.ts.map +1 -1
- package/dist/format/marketplace/plugin-source.js +9 -4
- package/dist/format/marketplace/plugin-source.js.map +1 -1
- package/dist/format/marketplace/settings-source-plugins.d.ts.map +1 -1
- package/dist/format/marketplace/settings-source-plugins.js +3 -2
- package/dist/format/marketplace/settings-source-plugins.js.map +1 -1
- package/dist/format/marketplace/types.d.ts +11 -0
- package/dist/format/marketplace/types.d.ts.map +1 -1
- package/dist/format/marketplace/types.js.map +1 -1
- package/dist/format/mcp-bundles.js +5 -5
- package/dist/format/mcp-bundles.js.map +1 -1
- package/dist/format/mcp-contract.d.ts +2 -1
- package/dist/format/mcp-contract.d.ts.map +1 -1
- package/dist/format/mcp-contract.js +2 -1
- package/dist/format/mcp-contract.js.map +1 -1
- package/dist/format/mcp-task-timing.d.ts +29 -0
- package/dist/format/mcp-task-timing.d.ts.map +1 -0
- package/dist/format/mcp-task-timing.js +22 -0
- package/dist/format/mcp-task-timing.js.map +1 -0
- package/dist/format/mcp-tool-schema.d.ts +11 -3
- package/dist/format/mcp-tool-schema.d.ts.map +1 -1
- package/dist/format/mcp-tool-schema.js +11 -0
- package/dist/format/mcp-tool-schema.js.map +1 -1
- package/dist/format/network.d.ts +6 -0
- package/dist/format/network.d.ts.map +1 -0
- package/dist/format/network.js +37 -0
- package/dist/format/network.js.map +1 -0
- package/dist/format/plugin-notes.d.ts +15 -0
- package/dist/format/plugin-notes.d.ts.map +1 -0
- package/dist/format/plugin-notes.js +13 -0
- package/dist/format/plugin-notes.js.map +1 -0
- package/dist/format/plugin-settings.d.ts +15 -9
- package/dist/format/plugin-settings.d.ts.map +1 -1
- package/dist/format/plugin-settings.js +11 -8
- package/dist/format/plugin-settings.js.map +1 -1
- package/dist/format/server-paths.d.ts +7 -0
- package/dist/format/server-paths.d.ts.map +1 -0
- package/dist/format/server-paths.js +43 -0
- package/dist/format/server-paths.js.map +1 -0
- package/dist/format/validate/plugin-fields.d.ts +5 -0
- package/dist/format/validate/plugin-fields.d.ts.map +1 -1
- package/dist/format/validate/plugin-fields.js +15 -0
- package/dist/format/validate/plugin-fields.js.map +1 -1
- package/dist/format/validate/plugin-manifest.d.ts.map +1 -1
- package/dist/format/validate/plugin-manifest.js +4 -1
- package/dist/format/validate/plugin-manifest.js.map +1 -1
- package/dist/format/validate/settings-deprecation.d.ts +4 -0
- package/dist/format/validate/settings-deprecation.d.ts.map +1 -0
- package/dist/format/validate/settings-deprecation.js +25 -0
- package/dist/format/validate/settings-deprecation.js.map +1 -0
- package/dist/format/validate/unknown-fields.d.ts.map +1 -1
- package/dist/format/validate/unknown-fields.js +1 -9
- package/dist/format/validate/unknown-fields.js.map +1 -1
- package/dist/foundation/scope-folders.d.ts +3 -1
- package/dist/foundation/scope-folders.d.ts.map +1 -1
- package/dist/foundation/scope-folders.js +3 -1
- package/dist/foundation/scope-folders.js.map +1 -1
- package/dist/hooks/assemble.d.ts.map +1 -1
- package/dist/hooks/assemble.js +8 -1
- package/dist/hooks/assemble.js.map +1 -1
- package/dist/hooks/core/profiles.d.ts +1 -1
- package/dist/hooks/dispatch.d.ts.map +1 -1
- package/dist/hooks/dispatch.js +29 -4
- package/dist/hooks/dispatch.js.map +1 -1
- package/dist/hooks/handlers/context.d.ts +4 -1
- package/dist/hooks/handlers/context.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/http-policy.d.ts +15 -6
- package/dist/hooks/handlers/remote/http-policy.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/http-policy.js +2 -0
- package/dist/hooks/handlers/remote/http-policy.js.map +1 -1
- package/dist/hooks/handlers/remote/http.js +2 -2
- package/dist/hooks/handlers/remote/http.js.map +1 -1
- package/dist/hooks/handlers/remote/mcp-tool.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/mcp-tool.js +20 -1
- package/dist/hooks/handlers/remote/mcp-tool.js.map +1 -1
- package/dist/hooks/handlers/remote/types.d.ts +8 -0
- package/dist/hooks/handlers/remote/types.d.ts.map +1 -1
- package/dist/hooks/input/facts-agents.d.ts +2 -2
- package/dist/hooks/input/facts-agents.d.ts.map +1 -1
- package/dist/hooks/input/facts-agents.js +11 -3
- package/dist/hooks/input/facts-agents.js.map +1 -1
- package/dist/hooks/input/facts.d.ts +2 -2
- package/dist/hooks/outcome.d.ts +31 -0
- package/dist/hooks/outcome.d.ts.map +1 -1
- package/dist/hooks/output/caps.d.ts.map +1 -1
- package/dist/hooks/output/caps.js +4 -3
- package/dist/hooks/output/caps.js.map +1 -1
- package/dist/hooks/output/cowork-answers.d.ts +15 -0
- package/dist/hooks/output/cowork-answers.d.ts.map +1 -0
- package/dist/hooks/output/cowork-answers.js +19 -0
- package/dist/hooks/output/cowork-answers.js.map +1 -0
- package/dist/hooks/output/merge-simple.d.ts.map +1 -1
- package/dist/hooks/output/merge-simple.js +5 -2
- package/dist/hooks/output/merge-simple.js.map +1 -1
- package/dist/hooks/output/merge.d.ts.map +1 -1
- package/dist/hooks/output/merge.js +1 -1
- package/dist/hooks/output/merge.js.map +1 -1
- package/dist/hooks/output/tool-output.d.ts +2 -9
- package/dist/hooks/output/tool-output.d.ts.map +1 -1
- package/dist/hooks/output/tool-output.js +42 -1
- package/dist/hooks/output/tool-output.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-1.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-1.js +3 -0
- package/dist/hooks/output/tool-shapes/shapes-1.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-3.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-3.js +1 -0
- package/dist/hooks/output/tool-shapes/shapes-3.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-4.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-4.js +12 -1
- package/dist/hooks/output/tool-shapes/shapes-4.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-5.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-5.js +9 -1
- package/dist/hooks/output/tool-shapes/shapes-5.js.map +1 -1
- package/dist/hooks/run-all.d.ts.map +1 -1
- package/dist/hooks/run-all.js +1 -0
- package/dist/hooks/run-all.js.map +1 -1
- package/dist/hooks/select/event-catalog.d.ts.map +1 -1
- package/dist/hooks/select/event-catalog.js +4 -1
- package/dist/hooks/select/event-catalog.js.map +1 -1
- package/dist/hooks/select/matcher-values.d.ts +2 -2
- package/dist/hooks/select/matcher-values.d.ts.map +1 -1
- package/dist/hooks/select/matcher-values.js +0 -1
- package/dist/hooks/select/matcher-values.js.map +1 -1
- package/dist/hooks/verdict/exit2.d.ts +5 -0
- package/dist/hooks/verdict/exit2.d.ts.map +1 -1
- package/dist/hooks/verdict/exit2.js +1 -1
- package/dist/hooks/verdict/exit2.js.map +1 -1
- package/dist/hooks/verdict/interpret.d.ts +2 -0
- package/dist/hooks/verdict/interpret.d.ts.map +1 -1
- package/dist/hooks/verdict/interpret.js +5 -5
- package/dist/hooks/verdict/interpret.js.map +1 -1
- package/dist/hooks/verdict/mcp-answer.d.ts +5 -0
- package/dist/hooks/verdict/mcp-answer.d.ts.map +1 -0
- package/dist/hooks/verdict/mcp-answer.js +57 -0
- package/dist/hooks/verdict/mcp-answer.js.map +1 -0
- package/dist/hooks/verdict/model-verdict.d.ts.map +1 -1
- package/dist/hooks/verdict/model-verdict.js +1 -1
- package/dist/hooks/verdict/model-verdict.js.map +1 -1
- package/dist/hooks/verdict/on-failure.d.ts +12 -2
- package/dist/hooks/verdict/on-failure.d.ts.map +1 -1
- package/dist/hooks/verdict/on-failure.js +43 -7
- package/dist/hooks/verdict/on-failure.js.map +1 -1
- package/dist/hooks/verdict/subject.d.ts +2 -0
- package/dist/hooks/verdict/subject.d.ts.map +1 -1
- package/dist/hooks/verdict/suspect-capture.d.ts.map +1 -1
- package/dist/hooks/verdict/suspect-capture.js +6 -1
- package/dist/hooks/verdict/suspect-capture.js.map +1 -1
- package/dist/host/session-agents.d.ts +5 -11
- package/dist/host/session-agents.d.ts.map +1 -1
- package/dist/host/session-agents.js +9 -13
- package/dist/host/session-agents.js.map +1 -1
- package/dist/host/session-bare-repository.d.ts +13 -0
- package/dist/host/session-bare-repository.d.ts.map +1 -0
- package/dist/host/session-bare-repository.js +32 -0
- package/dist/host/session-bare-repository.js.map +1 -0
- package/dist/host/session-engine.d.ts.map +1 -1
- package/dist/host/session-engine.js +2 -1
- package/dist/host/session-engine.js.map +1 -1
- package/dist/host/session-hooks.d.ts.map +1 -1
- package/dist/host/session-hooks.js +15 -1
- package/dist/host/session-hooks.js.map +1 -1
- package/dist/host/session-registry.d.ts +7 -0
- package/dist/host/session-registry.d.ts.map +1 -1
- package/dist/host/session-registry.js +12 -0
- package/dist/host/session-registry.js.map +1 -1
- package/dist/host/session-skill-expand.d.ts +5 -0
- package/dist/host/session-skill-expand.d.ts.map +1 -1
- package/dist/host/session-skill-expand.js +5 -20
- package/dist/host/session-skill-expand.js.map +1 -1
- package/dist/host/session-skill-permission.d.ts +9 -0
- package/dist/host/session-skill-permission.d.ts.map +1 -0
- package/dist/host/session-skill-permission.js +21 -0
- package/dist/host/session-skill-permission.js.map +1 -0
- package/dist/host/session-skills.d.ts.map +1 -1
- package/dist/host/session-skills.js +20 -13
- package/dist/host/session-skills.js.map +1 -1
- package/dist/host/session-types.d.ts +7 -0
- package/dist/host/session-types.d.ts.map +1 -1
- package/dist/host/session.d.ts.map +1 -1
- package/dist/host/session.js +0 -1
- package/dist/host/session.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/loading/load-notes.d.ts +21 -0
- package/dist/loading/load-notes.d.ts.map +1 -0
- package/dist/loading/load-notes.js +34 -0
- package/dist/loading/load-notes.js.map +1 -0
- package/dist/loading/load-plugin.d.ts +12 -0
- package/dist/loading/load-plugin.d.ts.map +1 -1
- package/dist/loading/load-plugin.js +20 -3
- package/dist/loading/load-plugin.js.map +1 -1
- package/dist/loading/manifest-gate.d.ts +1 -1
- package/dist/loading/plugin-folder.d.ts +2 -1
- package/dist/loading/plugin-folder.d.ts.map +1 -1
- package/dist/loading/plugin-folder.js +4 -1
- package/dist/loading/plugin-folder.js.map +1 -1
- package/dist/loading/plugin-model.d.ts +8 -0
- package/dist/loading/plugin-model.d.ts.map +1 -1
- package/dist/loading/validate/marketplace-target.d.ts.map +1 -1
- package/dist/loading/validate/marketplace-target.js +22 -4
- package/dist/loading/validate/marketplace-target.js.map +1 -1
- package/dist/loading/validate/plugin-contents.d.ts.map +1 -1
- package/dist/loading/validate/plugin-contents.js +8 -0
- package/dist/loading/validate/plugin-contents.js.map +1 -1
- package/dist/loading/walk.js +3 -3
- package/dist/loading/walk.js.map +1 -1
- package/dist/marketplace/dependency-graph.d.ts +5 -0
- package/dist/marketplace/dependency-graph.d.ts.map +1 -1
- package/dist/marketplace/dependency-graph.js.map +1 -1
- package/dist/marketplace/dependency-install-plan.d.ts +6 -5
- package/dist/marketplace/dependency-install-plan.d.ts.map +1 -1
- package/dist/marketplace/dependency-install-plan.js +6 -4
- package/dist/marketplace/dependency-install-plan.js.map +1 -1
- package/dist/marketplace/enablement-notes.d.ts +22 -7
- package/dist/marketplace/enablement-notes.d.ts.map +1 -1
- package/dist/marketplace/enablement-notes.js +36 -13
- package/dist/marketplace/enablement-notes.js.map +1 -1
- package/dist/marketplace/headless-report.d.ts +12 -0
- package/dist/marketplace/headless-report.d.ts.map +1 -1
- package/dist/marketplace/headless-report.js +11 -1
- package/dist/marketplace/headless-report.js.map +1 -1
- package/dist/marketplace/index.d.ts +1 -1
- package/dist/marketplace/index.d.ts.map +1 -1
- package/dist/marketplace/index.js +1 -1
- package/dist/marketplace/index.js.map +1 -1
- package/dist/marketplace/install-commands.d.ts +5 -0
- package/dist/marketplace/install-commands.d.ts.map +1 -1
- package/dist/marketplace/install-commands.js +6 -3
- package/dist/marketplace/install-commands.js.map +1 -1
- package/dist/marketplace/install-errors.d.ts +5 -4
- package/dist/marketplace/install-errors.d.ts.map +1 -1
- package/dist/marketplace/install-errors.js +8 -7
- package/dist/marketplace/install-errors.js.map +1 -1
- package/dist/marketplace/install-lifecycle-index.d.ts +4 -2
- package/dist/marketplace/install-lifecycle-index.d.ts.map +1 -1
- package/dist/marketplace/install-lifecycle-index.js +2 -0
- package/dist/marketplace/install-lifecycle-index.js.map +1 -1
- package/dist/marketplace/install-plan.d.ts +2 -0
- package/dist/marketplace/install-plan.d.ts.map +1 -1
- package/dist/marketplace/install-plan.js +5 -0
- package/dist/marketplace/install-plan.js.map +1 -1
- package/dist/marketplace/install-plans.d.ts +3 -3
- package/dist/marketplace/install-plans.d.ts.map +1 -1
- package/dist/marketplace/install-plans.js +3 -4
- package/dist/marketplace/install-plans.js.map +1 -1
- package/dist/marketplace/managed-take-back.d.ts +25 -0
- package/dist/marketplace/managed-take-back.d.ts.map +1 -0
- package/dist/marketplace/managed-take-back.js +24 -0
- package/dist/marketplace/managed-take-back.js.map +1 -0
- package/dist/marketplace/marketplace-fetch-plan.d.ts.map +1 -1
- package/dist/marketplace/marketplace-fetch-plan.js +2 -0
- package/dist/marketplace/marketplace-fetch-plan.js.map +1 -1
- package/dist/marketplace/reload-summary.d.ts +5 -0
- package/dist/marketplace/reload-summary.d.ts.map +1 -1
- package/dist/marketplace/reload-summary.js +8 -3
- package/dist/marketplace/reload-summary.js.map +1 -1
- package/dist/marketplace/removal.d.ts +4 -4
- package/dist/marketplace/removal.d.ts.map +1 -1
- package/dist/marketplace/removal.js +3 -3
- package/dist/marketplace/removal.js.map +1 -1
- package/dist/marketplace/seed-registry.d.ts +7 -5
- package/dist/marketplace/seed-registry.d.ts.map +1 -1
- package/dist/marketplace/seed-registry.js +7 -5
- package/dist/marketplace/seed-registry.js.map +1 -1
- package/dist/marketplace/store-layout.d.ts +9 -3
- package/dist/marketplace/store-layout.d.ts.map +1 -1
- package/dist/marketplace/store-layout.js +9 -4
- package/dist/marketplace/store-layout.js.map +1 -1
- package/dist/marketplace/types.d.ts +5 -0
- package/dist/marketplace/types.d.ts.map +1 -1
- package/dist/mods/api/agent.d.ts.map +1 -1
- package/dist/mods/api/agent.js +28 -0
- package/dist/mods/api/agent.js.map +1 -1
- package/dist/mods/api/audio.d.ts.map +1 -1
- package/dist/mods/api/audio.js +19 -5
- package/dist/mods/api/audio.js.map +1 -1
- package/dist/mods/api/build.d.ts +1 -1
- package/dist/mods/api/build.d.ts.map +1 -1
- package/dist/mods/api/build.js +6 -2
- package/dist/mods/api/build.js.map +1 -1
- package/dist/mods/api/call.d.ts.map +1 -1
- package/dist/mods/api/call.js +7 -0
- package/dist/mods/api/call.js.map +1 -1
- package/dist/mods/api/command.d.ts +11 -0
- package/dist/mods/api/command.d.ts.map +1 -1
- package/dist/mods/api/command.js +19 -1
- package/dist/mods/api/command.js.map +1 -1
- package/dist/mods/api/declared-port-types.d.ts +116 -0
- package/dist/mods/api/declared-port-types.d.ts.map +1 -0
- package/dist/mods/api/declared-port-types.js +31 -0
- package/dist/mods/api/declared-port-types.js.map +1 -0
- package/dist/mods/api/engine-create.d.ts +2 -0
- package/dist/mods/api/engine-create.d.ts.map +1 -1
- package/dist/mods/api/engine-create.js +6 -0
- package/dist/mods/api/engine-create.js.map +1 -1
- package/dist/mods/api/exec.d.ts.map +1 -1
- package/dist/mods/api/exec.js +3 -0
- package/dist/mods/api/exec.js.map +1 -1
- package/dist/mods/api/fs-ports.d.ts +8 -2
- package/dist/mods/api/fs-ports.d.ts.map +1 -1
- package/dist/mods/api/fs.d.ts.map +1 -1
- package/dist/mods/api/fs.js +26 -7
- package/dist/mods/api/fs.js.map +1 -1
- package/dist/mods/api/gate.d.ts +3 -3
- package/dist/mods/api/gate.d.ts.map +1 -1
- package/dist/mods/api/gate.js +3 -3
- package/dist/mods/api/gate.js.map +1 -1
- package/dist/mods/api/host-ports.d.ts +2 -1
- package/dist/mods/api/host-ports.d.ts.map +1 -1
- package/dist/mods/api/host-ports.js +15 -0
- package/dist/mods/api/host-ports.js.map +1 -1
- package/dist/mods/api/index.d.ts +4 -3
- package/dist/mods/api/index.d.ts.map +1 -1
- package/dist/mods/api/index.js +3 -2
- package/dist/mods/api/index.js.map +1 -1
- package/dist/mods/api/mcp.d.ts.map +1 -1
- package/dist/mods/api/mcp.js +6 -1
- package/dist/mods/api/mcp.js.map +1 -1
- package/dist/mods/api/optional-port-types.d.ts +52 -18
- package/dist/mods/api/optional-port-types.d.ts.map +1 -1
- package/dist/mods/api/ports.d.ts +5 -42
- package/dist/mods/api/ports.d.ts.map +1 -1
- package/dist/mods/api/ports.js.map +1 -1
- package/dist/mods/api/registries.d.ts +9 -10
- package/dist/mods/api/registries.d.ts.map +1 -1
- package/dist/mods/api/registries.js +8 -8
- package/dist/mods/api/registries.js.map +1 -1
- package/dist/mods/api/session-ports.d.ts +54 -0
- package/dist/mods/api/session-ports.d.ts.map +1 -0
- package/dist/mods/api/session-ports.js +2 -0
- package/dist/mods/api/session-ports.js.map +1 -0
- package/dist/mods/api/session.d.ts.map +1 -1
- package/dist/mods/api/session.js +28 -2
- package/dist/mods/api/session.js.map +1 -1
- package/dist/mods/api/theme.d.ts +11 -4
- package/dist/mods/api/theme.d.ts.map +1 -1
- package/dist/mods/api/theme.js +116 -30
- package/dist/mods/api/theme.js.map +1 -1
- package/dist/mods/api/vcs.d.ts +4 -0
- package/dist/mods/api/vcs.d.ts.map +1 -0
- package/dist/mods/api/vcs.js +60 -0
- package/dist/mods/api/vcs.js.map +1 -0
- package/dist/mods/api/wasm.d.ts +4 -0
- package/dist/mods/api/wasm.d.ts.map +1 -0
- package/dist/mods/api/wasm.js +69 -0
- package/dist/mods/api/wasm.js.map +1 -0
- package/dist/mods/chain/api-guard.d.ts +10 -1
- package/dist/mods/chain/api-guard.d.ts.map +1 -1
- package/dist/mods/chain/api-guard.js +23 -7
- package/dist/mods/chain/api-guard.js.map +1 -1
- package/dist/mods/chain/context.d.ts +6 -0
- package/dist/mods/chain/context.d.ts.map +1 -1
- package/dist/mods/chain/context.js +6 -0
- package/dist/mods/chain/context.js.map +1 -1
- package/dist/mods/chain/default-matcher.d.ts +11 -0
- package/dist/mods/chain/default-matcher.d.ts.map +1 -0
- package/dist/mods/chain/default-matcher.js +61 -0
- package/dist/mods/chain/default-matcher.js.map +1 -0
- package/dist/mods/chain/dispatch.d.ts.map +1 -1
- package/dist/mods/chain/dispatch.js +19 -1
- package/dist/mods/chain/dispatch.js.map +1 -1
- package/dist/mods/chain/failure.d.ts +2 -0
- package/dist/mods/chain/failure.d.ts.map +1 -1
- package/dist/mods/chain/failure.js +6 -0
- package/dist/mods/chain/failure.js.map +1 -1
- package/dist/mods/chain/guarded.d.ts +2 -0
- package/dist/mods/chain/guarded.d.ts.map +1 -1
- package/dist/mods/chain/guarded.js +6 -2
- package/dist/mods/chain/guarded.js.map +1 -1
- package/dist/mods/chain/invoke.d.ts.map +1 -1
- package/dist/mods/chain/invoke.js +25 -5
- package/dist/mods/chain/invoke.js.map +1 -1
- package/dist/mods/chain/validate.d.ts.map +1 -1
- package/dist/mods/chain/validate.js +2 -1
- package/dist/mods/chain/validate.js.map +1 -1
- package/dist/mods/events/agent.d.ts.map +1 -1
- package/dist/mods/events/agent.js +7 -3
- package/dist/mods/events/agent.js.map +1 -1
- package/dist/mods/events/declared.d.ts +12 -0
- package/dist/mods/events/declared.d.ts.map +1 -0
- package/dist/mods/events/declared.js +43 -0
- package/dist/mods/events/declared.js.map +1 -0
- package/dist/mods/events/index.d.ts +6 -0
- package/dist/mods/events/index.d.ts.map +1 -1
- package/dist/mods/events/index.js +4 -1
- package/dist/mods/events/index.js.map +1 -1
- package/dist/mods/events/pinned.d.ts +7 -0
- package/dist/mods/events/pinned.d.ts.map +1 -0
- package/dist/mods/events/pinned.js +21 -0
- package/dist/mods/events/pinned.js.map +1 -0
- package/dist/mods/events/session.d.ts.map +1 -1
- package/dist/mods/events/session.js +17 -4
- package/dist/mods/events/session.js.map +1 -1
- package/dist/mods/events/spec.d.ts +2 -0
- package/dist/mods/events/spec.d.ts.map +1 -1
- package/dist/mods/events/spec.js.map +1 -1
- package/dist/mods/events/tool.d.ts +2 -2
- package/dist/mods/events/tool.d.ts.map +1 -1
- package/dist/mods/events/tool.js +50 -10
- package/dist/mods/events/tool.js.map +1 -1
- package/dist/mods/events/turn.d.ts.map +1 -1
- package/dist/mods/events/turn.js +12 -1
- package/dist/mods/events/turn.js.map +1 -1
- package/dist/mods/load/auto-mode-approval.d.ts +6 -9
- package/dist/mods/load/auto-mode-approval.d.ts.map +1 -1
- package/dist/mods/load/auto-mode-approval.js +1 -1
- package/dist/mods/load/auto-mode-approval.js.map +1 -1
- package/dist/mods/load/commands/module-facts.d.ts +22 -0
- package/dist/mods/load/commands/module-facts.d.ts.map +1 -0
- package/dist/mods/load/commands/module-facts.js +18 -0
- package/dist/mods/load/commands/module-facts.js.map +1 -0
- package/dist/mods/load/commands/scan-lead.d.ts +2 -0
- package/dist/mods/load/commands/scan-lead.d.ts.map +1 -1
- package/dist/mods/load/commands/scan-lead.js +5 -2
- package/dist/mods/load/commands/scan-lead.js.map +1 -1
- package/dist/mods/load/commands/scan-lines.d.ts.map +1 -1
- package/dist/mods/load/commands/scan-lines.js +32 -1
- package/dist/mods/load/commands/scan-lines.js.map +1 -1
- package/dist/mods/load/commands/sha256.d.ts +7 -0
- package/dist/mods/load/commands/sha256.d.ts.map +1 -0
- package/dist/mods/load/commands/sha256.js +75 -0
- package/dist/mods/load/commands/sha256.js.map +1 -0
- package/dist/mods/load/commands/validate-report.d.ts +9 -0
- package/dist/mods/load/commands/validate-report.d.ts.map +1 -1
- package/dist/mods/load/commands/validate.d.ts.map +1 -1
- package/dist/mods/load/commands/validate.js +23 -16
- package/dist/mods/load/commands/validate.js.map +1 -1
- package/dist/mods/load/commands/wasm-read.d.ts +21 -0
- package/dist/mods/load/commands/wasm-read.d.ts.map +1 -0
- package/dist/mods/load/commands/wasm-read.js +169 -0
- package/dist/mods/load/commands/wasm-read.js.map +1 -0
- package/dist/mods/load/guard-protection.d.ts +7 -0
- package/dist/mods/load/guard-protection.d.ts.map +1 -1
- package/dist/mods/load/guard-protection.js +8 -3
- package/dist/mods/load/guard-protection.js.map +1 -1
- package/dist/mods/load/guard-surfaces.d.ts.map +1 -1
- package/dist/mods/load/guard-surfaces.js +2 -0
- package/dist/mods/load/guard-surfaces.js.map +1 -1
- package/dist/mods/load/guard-tools.d.ts +25 -0
- package/dist/mods/load/guard-tools.d.ts.map +1 -0
- package/dist/mods/load/guard-tools.js +29 -0
- package/dist/mods/load/guard-tools.js.map +1 -0
- package/dist/mods/load/guard.d.ts +3 -0
- package/dist/mods/load/guard.d.ts.map +1 -1
- package/dist/mods/load/guard.js +19 -8
- package/dist/mods/load/guard.js.map +1 -1
- package/dist/mods/load/host-support.d.ts +16 -3
- package/dist/mods/load/host-support.d.ts.map +1 -1
- package/dist/mods/load/host-support.js +28 -7
- package/dist/mods/load/host-support.js.map +1 -1
- package/dist/mods/load/host.d.ts +15 -2
- package/dist/mods/load/host.d.ts.map +1 -1
- package/dist/mods/load/host.js +4 -3
- package/dist/mods/load/host.js.map +1 -1
- package/dist/mods/load/in-turn.d.ts +6 -0
- package/dist/mods/load/in-turn.d.ts.map +1 -0
- package/dist/mods/load/in-turn.js +13 -0
- package/dist/mods/load/in-turn.js.map +1 -0
- package/dist/mods/load/index.d.ts +6 -3
- package/dist/mods/load/index.d.ts.map +1 -1
- package/dist/mods/load/index.js +4 -3
- package/dist/mods/load/index.js.map +1 -1
- package/dist/mods/load/loader.d.ts +13 -2
- package/dist/mods/load/loader.d.ts.map +1 -1
- package/dist/mods/load/loader.js +14 -10
- package/dist/mods/load/loader.js.map +1 -1
- package/dist/mods/load/mod-set.d.ts +3 -0
- package/dist/mods/load/mod-set.d.ts.map +1 -1
- package/dist/mods/load/mod-set.js +6 -15
- package/dist/mods/load/mod-set.js.map +1 -1
- package/dist/mods/load/order.js +2 -2
- package/dist/mods/load/order.js.map +1 -1
- package/dist/mods/load/plugin-dirs.d.ts +14 -4
- package/dist/mods/load/plugin-dirs.d.ts.map +1 -1
- package/dist/mods/load/plugin-dirs.js +14 -9
- package/dist/mods/load/plugin-dirs.js.map +1 -1
- package/dist/mods/load/policy.d.ts +12 -8
- package/dist/mods/load/policy.d.ts.map +1 -1
- package/dist/mods/load/policy.js +47 -19
- package/dist/mods/load/policy.js.map +1 -1
- package/dist/mods/load/prepare.d.ts +4 -0
- package/dist/mods/load/prepare.d.ts.map +1 -1
- package/dist/mods/load/prepare.js +21 -3
- package/dist/mods/load/prepare.js.map +1 -1
- package/dist/mods/load/provides.d.ts +25 -0
- package/dist/mods/load/provides.d.ts.map +1 -0
- package/dist/mods/load/provides.js +128 -0
- package/dist/mods/load/provides.js.map +1 -0
- package/dist/mods/load/register-ask.d.ts +32 -0
- package/dist/mods/load/register-ask.d.ts.map +1 -0
- package/dist/mods/load/register-ask.js +45 -0
- package/dist/mods/load/register-ask.js.map +1 -0
- package/dist/mods/load/register-call.d.ts +23 -13
- package/dist/mods/load/register-call.d.ts.map +1 -1
- package/dist/mods/load/register-call.js +69 -23
- package/dist/mods/load/register-call.js.map +1 -1
- package/dist/mods/load/register-event.d.ts +70 -0
- package/dist/mods/load/register-event.d.ts.map +1 -0
- package/dist/mods/load/register-event.js +35 -0
- package/dist/mods/load/register-event.js.map +1 -0
- package/dist/mods/load/scan/client-modules.d.ts +2 -0
- package/dist/mods/load/scan/client-modules.d.ts.map +1 -1
- package/dist/mods/load/scan/client-modules.js +1 -1
- package/dist/mods/load/scan/client-modules.js.map +1 -1
- package/dist/mods/load/scan/event-names.d.ts.map +1 -1
- package/dist/mods/load/scan/event-names.js +2 -0
- package/dist/mods/load/scan/event-names.js.map +1 -1
- package/dist/mods/load/scan/found.d.ts +5 -0
- package/dist/mods/load/scan/found.d.ts.map +1 -1
- package/dist/mods/load/scan/found.js +3 -0
- package/dist/mods/load/scan/found.js.map +1 -1
- package/dist/mods/load/scan/hosts.d.ts +5 -0
- package/dist/mods/load/scan/hosts.d.ts.map +1 -0
- package/dist/mods/load/scan/hosts.js +44 -0
- package/dist/mods/load/scan/hosts.js.map +1 -0
- package/dist/mods/load/scan/index.d.ts +1 -0
- package/dist/mods/load/scan/index.d.ts.map +1 -1
- package/dist/mods/load/scan/index.js +7 -0
- package/dist/mods/load/scan/index.js.map +1 -1
- package/dist/mods/load/scan/rules.d.ts.map +1 -1
- package/dist/mods/load/scan/rules.js +4 -0
- package/dist/mods/load/scan/rules.js.map +1 -1
- package/dist/mods/load/scan/uses.d.ts +8 -0
- package/dist/mods/load/scan/uses.d.ts.map +1 -1
- package/dist/mods/load/scan/uses.js +2 -0
- package/dist/mods/load/scan/uses.js.map +1 -1
- package/dist/mods/load/scan/wasm-paths.d.ts +17 -0
- package/dist/mods/load/scan/wasm-paths.d.ts.map +1 -0
- package/dist/mods/load/scan/wasm-paths.js +16 -0
- package/dist/mods/load/scan/wasm-paths.js.map +1 -0
- package/dist/mods/load/tool-flow.d.ts +1 -1
- package/dist/mods/load/tool-flow.d.ts.map +1 -1
- package/dist/mods/load/tool-flow.js +15 -2
- package/dist/mods/load/tool-flow.js.map +1 -1
- package/dist/mods/load/wasm-files.d.ts +35 -0
- package/dist/mods/load/wasm-files.d.ts.map +1 -0
- package/dist/mods/load/wasm-files.js +40 -0
- package/dist/mods/load/wasm-files.js.map +1 -0
- package/dist/mods/load/wiring.d.ts.map +1 -1
- package/dist/mods/load/wiring.js +20 -8
- package/dist/mods/load/wiring.js.map +1 -1
- package/dist/mods/load/written-mods.d.ts +16 -3
- package/dist/mods/load/written-mods.d.ts.map +1 -1
- package/dist/mods/load/written-mods.js +26 -25
- package/dist/mods/load/written-mods.js.map +1 -1
- package/dist/mods/types.d.ts +10 -9
- package/dist/mods/types.d.ts.map +1 -1
- package/dist/mods/ui/controls/hotkeys.d.ts +8 -0
- package/dist/mods/ui/controls/hotkeys.d.ts.map +1 -1
- package/dist/mods/ui/controls/hotkeys.js +30 -3
- package/dist/mods/ui/controls/hotkeys.js.map +1 -1
- package/dist/mods/ui/elements/box.d.ts.map +1 -1
- package/dist/mods/ui/elements/box.js +5 -2
- package/dist/mods/ui/elements/box.js.map +1 -1
- package/dist/mods/ui/elements/limits.d.ts.map +1 -1
- package/dist/mods/ui/elements/limits.js +5 -3
- package/dist/mods/ui/elements/limits.js.map +1 -1
- package/dist/mods/ui/elements/progress.d.ts +8 -0
- package/dist/mods/ui/elements/progress.d.ts.map +1 -0
- package/dist/mods/ui/elements/progress.js +17 -0
- package/dist/mods/ui/elements/progress.js.map +1 -0
- package/dist/mods/ui/elements/prop-size.d.ts +10 -0
- package/dist/mods/ui/elements/prop-size.d.ts.map +1 -0
- package/dist/mods/ui/elements/prop-size.js +34 -0
- package/dist/mods/ui/elements/prop-size.js.map +1 -0
- package/dist/mods/ui/elements/registry.d.ts.map +1 -1
- package/dist/mods/ui/elements/registry.js +4 -0
- package/dist/mods/ui/elements/registry.js.map +1 -1
- package/dist/mods/ui/elements/shader-place.d.ts +8 -0
- package/dist/mods/ui/elements/shader-place.d.ts.map +1 -0
- package/dist/mods/ui/elements/shader-place.js +36 -0
- package/dist/mods/ui/elements/shader-place.js.map +1 -0
- package/dist/mods/ui/elements/shader.d.ts +11 -0
- package/dist/mods/ui/elements/shader.d.ts.map +1 -0
- package/dist/mods/ui/elements/shader.js +28 -0
- package/dist/mods/ui/elements/shader.js.map +1 -0
- package/dist/mods/ui/elements/svg.d.ts +3 -0
- package/dist/mods/ui/elements/svg.d.ts.map +1 -1
- package/dist/mods/ui/elements/svg.js +2 -0
- package/dist/mods/ui/elements/svg.js.map +1 -1
- package/dist/mods/ui/elements/table.d.ts.map +1 -1
- package/dist/mods/ui/elements/table.js +2 -0
- package/dist/mods/ui/elements/table.js.map +1 -1
- package/dist/mods/ui/elements/text.d.ts.map +1 -1
- package/dist/mods/ui/elements/text.js +7 -1
- package/dist/mods/ui/elements/text.js.map +1 -1
- package/dist/mods/ui/elements/validate.d.ts.map +1 -1
- package/dist/mods/ui/elements/validate.js +3 -1
- package/dist/mods/ui/elements/validate.js.map +1 -1
- package/dist/mods/ui/index.d.ts +1 -0
- package/dist/mods/ui/index.d.ts.map +1 -1
- package/dist/mods/ui/index.js.map +1 -1
- package/dist/mods/ui/keyboard/keys.d.ts +3 -0
- package/dist/mods/ui/keyboard/keys.d.ts.map +1 -1
- package/dist/mods/ui/keyboard/keys.js.map +1 -1
- package/dist/mods/ui/panes/open.d.ts +2 -0
- package/dist/mods/ui/panes/open.d.ts.map +1 -1
- package/dist/mods/ui/panes/open.js +3 -1
- package/dist/mods/ui/panes/open.js.map +1 -1
- package/dist/mods/ui/panes/pane-request.d.ts +9 -0
- package/dist/mods/ui/panes/pane-request.d.ts.map +1 -0
- package/dist/mods/ui/panes/pane-request.js +19 -0
- package/dist/mods/ui/panes/pane-request.js.map +1 -0
- package/dist/mods/ui/panes/registry.d.ts +1 -1
- package/dist/mods/ui/panes/registry.d.ts.map +1 -1
- package/dist/mods/ui/panes/registry.js +4 -0
- package/dist/mods/ui/panes/registry.js.map +1 -1
- package/dist/mods/ui/rules.d.ts.map +1 -1
- package/dist/mods/ui/rules.js +3 -0
- package/dist/mods/ui/rules.js.map +1 -1
- package/dist/mods/ui/runtime.d.ts +6 -0
- package/dist/mods/ui/runtime.d.ts.map +1 -1
- package/dist/mods/ui/runtime.js +25 -9
- package/dist/mods/ui/runtime.js.map +1 -1
- package/dist/mods/ui/sites/agent-row.d.ts +7 -0
- package/dist/mods/ui/sites/agent-row.d.ts.map +1 -0
- package/dist/mods/ui/sites/agent-row.js +22 -0
- package/dist/mods/ui/sites/agent-row.js.map +1 -0
- package/dist/mods/ui/sites/backdrop.d.ts +2 -2
- package/dist/mods/ui/sites/backdrop.js +2 -2
- package/dist/mods/ui/sites/band-list.d.ts +10 -0
- package/dist/mods/ui/sites/band-list.d.ts.map +1 -0
- package/dist/mods/ui/sites/band-list.js +41 -0
- package/dist/mods/ui/sites/band-list.js.map +1 -0
- package/dist/mods/ui/sites/band-rows.d.ts +33 -0
- package/dist/mods/ui/sites/band-rows.d.ts.map +1 -0
- package/dist/mods/ui/sites/band-rows.js +61 -0
- package/dist/mods/ui/sites/band-rows.js.map +1 -0
- package/dist/mods/ui/sites/fold.d.ts +2 -0
- package/dist/mods/ui/sites/fold.d.ts.map +1 -1
- package/dist/mods/ui/sites/fold.js +2 -2
- package/dist/mods/ui/sites/fold.js.map +1 -1
- package/dist/mods/ui/sites/registry.d.ts +8 -1
- package/dist/mods/ui/sites/registry.d.ts.map +1 -1
- package/dist/mods/ui/sites/registry.js +21 -14
- package/dist/mods/ui/sites/registry.js.map +1 -1
- package/dist/ports/files.d.ts +1 -1
- package/dist/ports/mcp-bundle.d.ts +3 -2
- package/dist/ports/mcp-bundle.d.ts.map +1 -1
- package/dist/ports/mcp-caller.d.ts +7 -0
- package/dist/ports/mcp-caller.d.ts.map +1 -1
- package/dist/protocol/mods-api-names.d.ts +20 -8
- package/dist/protocol/mods-api-names.d.ts.map +1 -1
- package/dist/protocol/mods-api-names.js +16 -4
- package/dist/protocol/mods-api-names.js.map +1 -1
- package/dist/protocol/mods-events.d.ts +11 -8
- package/dist/protocol/mods-events.d.ts.map +1 -1
- package/dist/protocol/mods-events.js +14 -5
- package/dist/protocol/mods-events.js.map +1 -1
- package/dist/protocol/mods-limits.d.ts +9 -1
- package/dist/protocol/mods-limits.d.ts.map +1 -1
- package/dist/protocol/mods-limits.js +9 -1
- package/dist/protocol/mods-limits.js.map +1 -1
- package/dist/protocol/mods-ui-names.d.ts +42 -11
- package/dist/protocol/mods-ui-names.d.ts.map +1 -1
- package/dist/protocol/mods-ui-names.js +62 -8
- package/dist/protocol/mods-ui-names.js.map +1 -1
- package/dist/protocol/official.d.ts +1 -1
- package/dist/protocol/official.d.ts.map +1 -1
- package/dist/protocol/tool-names.d.ts +12 -5
- package/dist/protocol/tool-names.d.ts.map +1 -1
- package/dist/protocol/tool-names.js +21 -2
- package/dist/protocol/tool-names.js.map +1 -1
- package/dist/rules/bash/wrappers.d.ts +2 -0
- package/dist/rules/bash/wrappers.d.ts.map +1 -1
- package/dist/rules/bash/wrappers.js +2 -0
- package/dist/rules/bash/wrappers.js.map +1 -1
- package/dist/rules/decide/auto-dropped.d.ts.map +1 -1
- package/dist/rules/decide/auto-dropped.js +23 -4
- package/dist/rules/decide/auto-dropped.js.map +1 -1
- package/dist/rules/decide/context.d.ts +5 -2
- package/dist/rules/decide/context.d.ts.map +1 -1
- package/dist/rules/decide/decide.d.ts.map +1 -1
- package/dist/rules/decide/decide.js +11 -0
- package/dist/rules/decide/decide.js.map +1 -1
- package/dist/rules/decide/facts.js +3 -3
- package/dist/rules/decide/facts.js.map +1 -1
- package/dist/rules/decide/modes.d.ts +7 -0
- package/dist/rules/decide/modes.d.ts.map +1 -1
- package/dist/rules/decide/modes.js +5 -0
- package/dist/rules/decide/modes.js.map +1 -1
- package/dist/rules/tools/catalog.d.ts.map +1 -1
- package/dist/rules/tools/catalog.js +13 -3
- package/dist/rules/tools/catalog.js.map +1 -1
- package/dist/rules/types.d.ts +6 -0
- package/dist/rules/types.d.ts.map +1 -1
- package/dist/settings/add-dir-layer.d.ts +17 -0
- package/dist/settings/add-dir-layer.d.ts.map +1 -0
- package/dist/settings/add-dir-layer.js +20 -0
- package/dist/settings/add-dir-layer.js.map +1 -0
- package/dist/settings/env/code-mode.d.ts +21 -0
- package/dist/settings/env/code-mode.d.ts.map +1 -0
- package/dist/settings/env/code-mode.js +8 -0
- package/dist/settings/env/code-mode.js.map +1 -0
- package/dist/settings/env/ignored-variables.d.ts +1 -1
- package/dist/settings/env/ignored-variables.d.ts.map +1 -1
- package/dist/settings/env/ignored-variables.js +7 -0
- package/dist/settings/env/ignored-variables.js.map +1 -1
- package/dist/settings/env/index.d.ts +1 -0
- package/dist/settings/env/index.d.ts.map +1 -1
- package/dist/settings/env/index.js +1 -0
- package/dist/settings/env/index.js.map +1 -1
- package/dist/settings/general/checks.d.ts.map +1 -1
- package/dist/settings/general/checks.js +0 -1
- package/dist/settings/general/checks.js.map +1 -1
- package/dist/settings/general/command-lines.d.ts +1 -20
- package/dist/settings/general/command-lines.d.ts.map +1 -1
- package/dist/settings/general/command-lines.js +1 -15
- package/dist/settings/general/command-lines.js.map +1 -1
- package/dist/settings/general/edit-effect.d.ts +10 -1
- package/dist/settings/general/edit-effect.d.ts.map +1 -1
- package/dist/settings/general/edit-effect.js +8 -1
- package/dist/settings/general/edit-effect.js.map +1 -1
- package/dist/settings/general/index.d.ts +2 -3
- package/dist/settings/general/index.d.ts.map +1 -1
- package/dist/settings/general/index.js +1 -2
- package/dist/settings/general/index.js.map +1 -1
- package/dist/settings/general/keys.d.ts +1 -2
- package/dist/settings/general/keys.d.ts.map +1 -1
- package/dist/settings/general/keys.js +0 -1
- package/dist/settings/general/keys.js.map +1 -1
- package/dist/settings/general/plugin-defaults.d.ts +15 -4
- package/dist/settings/general/plugin-defaults.d.ts.map +1 -1
- package/dist/settings/general/plugin-defaults.js +11 -10
- package/dist/settings/general/plugin-defaults.js.map +1 -1
- package/dist/settings/general/rows.d.ts.map +1 -1
- package/dist/settings/general/rows.js +0 -1
- package/dist/settings/general/rows.js.map +1 -1
- package/dist/settings/hooks/custom-commands.d.ts +1 -2
- package/dist/settings/hooks/custom-commands.d.ts.map +1 -1
- package/dist/settings/hooks/custom-commands.js +1 -1
- package/dist/settings/hooks/custom-commands.js.map +1 -1
- package/dist/settings/hooks/http-policy.d.ts +17 -4
- package/dist/settings/hooks/http-policy.d.ts.map +1 -1
- package/dist/settings/hooks/http-policy.js +25 -6
- package/dist/settings/hooks/http-policy.js.map +1 -1
- package/dist/settings/hooks/index.d.ts +1 -1
- package/dist/settings/hooks/index.d.ts.map +1 -1
- package/dist/settings/hooks/index.js.map +1 -1
- package/dist/settings/hooks/policy.d.ts +1 -1
- package/dist/settings/hooks/policy.js +1 -1
- package/dist/settings/hooks/policy.js.map +1 -1
- package/dist/settings/hooks/session-gates.d.ts +11 -6
- package/dist/settings/hooks/session-gates.d.ts.map +1 -1
- package/dist/settings/hooks/session-gates.js +3 -7
- package/dist/settings/hooks/session-gates.js.map +1 -1
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.d.ts.map +1 -1
- package/dist/settings/index.js +1 -0
- package/dist/settings/index.js.map +1 -1
- package/dist/settings/managed/compose.d.ts +0 -6
- package/dist/settings/managed/compose.d.ts.map +1 -1
- package/dist/settings/managed/compose.js +4 -25
- package/dist/settings/managed/compose.js.map +1 -1
- package/dist/settings/managed/helper-run.js +1 -1
- package/dist/settings/managed/helper-run.js.map +1 -1
- package/dist/settings/managed/helper-settings.d.ts +9 -0
- package/dist/settings/managed/helper-settings.d.ts.map +1 -0
- package/dist/settings/managed/helper-settings.js +26 -0
- package/dist/settings/managed/helper-settings.js.map +1 -0
- package/dist/settings/managed/index.d.ts +4 -1
- package/dist/settings/managed/index.d.ts.map +1 -1
- package/dist/settings/managed/index.js +4 -1
- package/dist/settings/managed/index.js.map +1 -1
- package/dist/settings/managed/login-keys.d.ts +4 -0
- package/dist/settings/managed/login-keys.d.ts.map +1 -1
- package/dist/settings/managed/login-keys.js +17 -0
- package/dist/settings/managed/login-keys.js.map +1 -1
- package/dist/settings/managed/ports.d.ts +8 -1
- package/dist/settings/managed/ports.d.ts.map +1 -1
- package/dist/settings/managed/server-cache.d.ts +56 -0
- package/dist/settings/managed/server-cache.d.ts.map +1 -0
- package/dist/settings/managed/server-cache.js +27 -0
- package/dist/settings/managed/server-cache.js.map +1 -0
- package/dist/settings/managed/server-groups.d.ts +34 -0
- package/dist/settings/managed/server-groups.d.ts.map +1 -0
- package/dist/settings/managed/server-groups.js +28 -0
- package/dist/settings/managed/server-groups.js.map +1 -0
- package/dist/settings/mcp/exclusive.d.ts +5 -1
- package/dist/settings/mcp/exclusive.d.ts.map +1 -1
- package/dist/settings/mcp/exclusive.js +4 -2
- package/dist/settings/mcp/exclusive.js.map +1 -1
- package/dist/settings/mcp/scope.d.ts +5 -0
- package/dist/settings/mcp/scope.d.ts.map +1 -1
- package/dist/settings/mcp/scope.js +5 -0
- package/dist/settings/mcp/scope.js.map +1 -1
- package/dist/settings/permissions/default-mode.d.ts +0 -1
- package/dist/settings/permissions/default-mode.d.ts.map +1 -1
- package/dist/settings/permissions/default-mode.js +2 -2
- package/dist/settings/permissions/default-mode.js.map +1 -1
- package/dist/skills/bare-repository.d.ts +9 -0
- package/dist/skills/bare-repository.d.ts.map +1 -0
- package/dist/skills/bare-repository.js +11 -0
- package/dist/skills/bare-repository.js.map +1 -0
- package/dist/skills/execution.d.ts +1 -1
- package/dist/skills/execution.d.ts.map +1 -1
- package/dist/skills/expand-shell.d.ts.map +1 -1
- package/dist/skills/expand-shell.js +1 -0
- package/dist/skills/expand-shell.js.map +1 -1
- package/dist/skills/expand-types.d.ts +5 -0
- package/dist/skills/expand-types.d.ts.map +1 -1
- package/dist/skills/index.d.ts +1 -0
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +1 -0
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/invocation.d.ts.map +1 -1
- package/dist/skills/invocation.js +4 -3
- package/dist/skills/invocation.js.map +1 -1
- package/dist/skills/path-gate.d.ts +11 -2
- package/dist/skills/path-gate.d.ts.map +1 -1
- package/dist/skills/path-gate.js +17 -2
- package/dist/skills/path-gate.js.map +1 -1
- package/dist/skills/shell-run.d.ts +5 -0
- package/dist/skills/shell-run.d.ts.map +1 -1
- package/dist/skills/shell-run.js +18 -1
- package/dist/skills/shell-run.js.map +1 -1
- package/dist/testing/mods/expect-equal.d.ts +24 -0
- package/dist/testing/mods/expect-equal.d.ts.map +1 -0
- package/dist/testing/mods/expect-equal.js +55 -0
- package/dist/testing/mods/expect-equal.js.map +1 -0
- package/dist/testing/mods/expect-matchers.d.ts +111 -0
- package/dist/testing/mods/expect-matchers.d.ts.map +1 -0
- package/dist/testing/mods/expect-matchers.js +111 -0
- package/dist/testing/mods/expect-matchers.js.map +1 -0
- package/dist/testing/mods/expect.d.ts +27 -44
- package/dist/testing/mods/expect.d.ts.map +1 -1
- package/dist/testing/mods/expect.js +70 -97
- package/dist/testing/mods/expect.js.map +1 -1
- package/dist/testing/mods/fake-ports.d.ts.map +1 -1
- package/dist/testing/mods/fake-ports.js +12 -0
- package/dist/testing/mods/fake-ports.js.map +1 -1
- package/dist/testing/mods/kit.d.ts.map +1 -1
- package/dist/testing/mods/kit.js +7 -2
- package/dist/testing/mods/kit.js.map +1 -1
- package/dist/testing/mods/mock.d.ts +3 -2
- package/dist/testing/mods/mock.d.ts.map +1 -1
- package/dist/testing/mods/mock.js.map +1 -1
- package/dist/testing/mods/mount.d.ts +2 -0
- package/dist/testing/mods/mount.d.ts.map +1 -1
- package/dist/testing/mods/mount.js +30 -3
- package/dist/testing/mods/mount.js.map +1 -1
- package/dist/testing/mods/stub-matcher.d.ts +9 -0
- package/dist/testing/mods/stub-matcher.d.ts.map +1 -0
- package/dist/testing/mods/stub-matcher.js +24 -0
- package/dist/testing/mods/stub-matcher.js.map +1 -0
- package/dist/testing/mods/stubs.d.ts +4 -1
- package/dist/testing/mods/stubs.d.ts.map +1 -1
- package/dist/testing/mods/stubs.js +10 -5
- package/dist/testing/mods/stubs.js.map +1 -1
- package/dist/testing/mods/world.d.ts +2 -1
- package/dist/testing/mods/world.d.ts.map +1 -1
- package/dist/testing/mods/world.js +2 -2
- package/dist/testing/mods/world.js.map +1 -1
- package/package.json +3 -3
- package/src/agents/catalog/builtin.ts +25 -2
- package/src/agents/catalog/scan.ts +5 -1
- package/src/agents/index.ts +3 -0
- package/src/agents/launch-model.ts +67 -26
- package/src/agents/launch.ts +37 -14
- package/src/agents/model-choice.ts +18 -5
- package/src/agents/task-list.ts +31 -0
- package/src/agents/tool-filters.ts +15 -1
- package/src/agents/tool-resolution.ts +20 -3
- package/src/agents/workflow/replay.ts +21 -3
- package/src/agents/workflow/usage-limit.ts +43 -4
- package/src/cli/command-table.ts +2 -0
- package/src/cli/flags/session.ts +2 -1
- package/src/cli/index.ts +25 -0
- package/src/cli/install-command-outcome.ts +69 -0
- package/src/cli/install-command-step.ts +91 -0
- package/src/cli/install-engines.ts +58 -0
- package/src/cli/install-plan.ts +40 -116
- package/src/cli/install-refusals.ts +7 -0
- package/src/cli/install-success.ts +32 -0
- package/src/cli/marketplace-list.ts +1 -1
- package/src/cli/marketplace-update.ts +9 -1
- package/src/cli/restore-set-aside.ts +70 -0
- package/src/cli/result.ts +17 -2
- package/src/cli/uninstall-data.ts +16 -1
- package/src/cli/update-dependencies.ts +62 -0
- package/src/cli/update-facts.ts +12 -0
- package/src/cli/update-plan.ts +50 -6
- package/src/cli/validate-lists.ts +172 -0
- package/src/cli/validate-run.ts +17 -0
- package/src/entry/mods.ts +1 -0
- package/src/format/add-dir-gate.ts +44 -0
- package/src/format/agent-scalars.ts +7 -8
- package/src/format/engines.ts +139 -0
- package/src/format/hooks-handlers.ts +2 -0
- package/src/format/host-errors.ts +1 -1
- package/src/format/index.ts +13 -1
- package/src/format/locate.ts +1 -1
- package/src/format/manifest-schema.ts +3 -0
- package/src/format/manifest.ts +102 -11
- package/src/format/marketplace/entries.ts +15 -5
- package/src/format/marketplace/entry-display.ts +78 -0
- package/src/format/marketplace/entry-schema.ts +5 -2
- package/src/format/marketplace/index.ts +1 -1
- package/src/format/marketplace/marketplace-name-lists.ts +0 -10
- package/src/format/marketplace/marketplace-names.ts +17 -18
- package/src/format/marketplace/plugin-source.ts +11 -3
- package/src/format/marketplace/settings-source-plugins.ts +3 -2
- package/src/format/marketplace/types.ts +11 -0
- package/src/format/mcp-bundles.ts +5 -5
- package/src/format/mcp-contract.ts +8 -0
- package/src/format/mcp-task-timing.ts +42 -0
- package/src/format/mcp-tool-schema.ts +19 -3
- package/src/format/network.ts +48 -0
- package/src/format/plugin-notes.ts +21 -0
- package/src/format/plugin-settings.ts +17 -13
- package/src/format/server-paths.ts +50 -0
- package/src/format/validate/plugin-fields.ts +16 -0
- package/src/format/validate/plugin-manifest.ts +4 -0
- package/src/format/validate/settings-deprecation.ts +26 -0
- package/src/format/validate/unknown-fields.ts +1 -9
- package/src/foundation/scope-folders.ts +8 -2
- package/src/hooks/assemble.ts +11 -1
- package/src/hooks/core/profiles.ts +1 -1
- package/src/hooks/dispatch.ts +36 -5
- package/src/hooks/handlers/context.ts +4 -1
- package/src/hooks/handlers/remote/http-policy.ts +20 -6
- package/src/hooks/handlers/remote/http.ts +2 -2
- package/src/hooks/handlers/remote/mcp-tool.ts +27 -1
- package/src/hooks/handlers/remote/types.ts +9 -0
- package/src/hooks/input/facts-agents.ts +14 -3
- package/src/hooks/outcome.ts +31 -0
- package/src/hooks/output/caps.ts +4 -3
- package/src/hooks/output/cowork-answers.ts +19 -0
- package/src/hooks/output/merge-simple.ts +5 -2
- package/src/hooks/output/merge.ts +2 -0
- package/src/hooks/output/tool-output.ts +48 -2
- package/src/hooks/output/tool-shapes/shapes-1.ts +3 -0
- package/src/hooks/output/tool-shapes/shapes-3.ts +1 -0
- package/src/hooks/output/tool-shapes/shapes-4.ts +12 -1
- package/src/hooks/output/tool-shapes/shapes-5.ts +9 -1
- package/src/hooks/run-all.ts +1 -0
- package/src/hooks/select/event-catalog.ts +4 -1
- package/src/hooks/select/matcher-values.ts +0 -1
- package/src/hooks/verdict/exit2.ts +6 -1
- package/src/hooks/verdict/interpret.ts +7 -7
- package/src/hooks/verdict/mcp-answer.ts +64 -0
- package/src/hooks/verdict/model-verdict.ts +1 -1
- package/src/hooks/verdict/on-failure.ts +51 -7
- package/src/hooks/verdict/subject.ts +2 -0
- package/src/hooks/verdict/suspect-capture.ts +7 -1
- package/src/host/session-agents.ts +15 -26
- package/src/host/session-bare-repository.ts +38 -0
- package/src/host/session-engine.ts +2 -1
- package/src/host/session-hooks.ts +16 -1
- package/src/host/session-registry.ts +12 -0
- package/src/host/session-skill-expand.ts +11 -29
- package/src/host/session-skill-permission.ts +29 -0
- package/src/host/session-skills.ts +31 -18
- package/src/host/session-types.ts +7 -0
- package/src/host/session.ts +0 -1
- package/src/index.ts +3 -0
- package/src/loading/load-notes.ts +62 -0
- package/src/loading/load-plugin.ts +36 -3
- package/src/loading/manifest-gate.ts +1 -1
- package/src/loading/plugin-folder.ts +4 -1
- package/src/loading/plugin-model.ts +8 -0
- package/src/loading/validate/marketplace-target.ts +34 -6
- package/src/loading/validate/plugin-contents.ts +12 -0
- package/src/loading/walk.ts +3 -3
- package/src/marketplace/dependency-graph.ts +5 -0
- package/src/marketplace/dependency-install-plan.ts +6 -4
- package/src/marketplace/enablement-notes.ts +49 -12
- package/src/marketplace/headless-report.ts +26 -1
- package/src/marketplace/index.ts +1 -1
- package/src/marketplace/install-commands.ts +12 -3
- package/src/marketplace/install-errors.ts +8 -7
- package/src/marketplace/install-lifecycle-index.ts +10 -0
- package/src/marketplace/install-plan.ts +7 -0
- package/src/marketplace/install-plans.ts +4 -5
- package/src/marketplace/managed-take-back.ts +38 -0
- package/src/marketplace/marketplace-fetch-plan.ts +2 -0
- package/src/marketplace/reload-summary.ts +14 -3
- package/src/marketplace/removal.ts +5 -5
- package/src/marketplace/seed-registry.ts +7 -5
- package/src/marketplace/store-layout.ts +17 -4
- package/src/marketplace/types.ts +5 -0
- package/src/mods/api/agent.ts +28 -0
- package/src/mods/api/audio.ts +18 -5
- package/src/mods/api/build.ts +7 -3
- package/src/mods/api/call.ts +7 -0
- package/src/mods/api/command.ts +22 -2
- package/src/mods/api/declared-port-types.ts +155 -0
- package/src/mods/api/engine-create.ts +8 -1
- package/src/mods/api/exec.ts +4 -0
- package/src/mods/api/fs-ports.ts +9 -1
- package/src/mods/api/fs.ts +29 -10
- package/src/mods/api/gate.ts +3 -4
- package/src/mods/api/host-ports.ts +18 -1
- package/src/mods/api/index.ts +9 -3
- package/src/mods/api/mcp.ts +10 -2
- package/src/mods/api/optional-port-types.ts +48 -16
- package/src/mods/api/ports.ts +26 -42
- package/src/mods/api/registries.ts +17 -18
- package/src/mods/api/session-ports.ts +57 -0
- package/src/mods/api/session.ts +30 -5
- package/src/mods/api/theme.ts +132 -33
- package/src/mods/api/vcs.ts +71 -0
- package/src/mods/api/wasm.ts +74 -0
- package/src/mods/chain/api-guard.ts +35 -7
- package/src/mods/chain/context.ts +15 -0
- package/src/mods/chain/default-matcher.ts +69 -0
- package/src/mods/chain/dispatch.ts +19 -1
- package/src/mods/chain/failure.ts +7 -0
- package/src/mods/chain/guarded.ts +8 -2
- package/src/mods/chain/invoke.ts +25 -5
- package/src/mods/chain/validate.ts +2 -1
- package/src/mods/events/agent.ts +7 -3
- package/src/mods/events/declared.ts +51 -0
- package/src/mods/events/index.ts +4 -1
- package/src/mods/events/pinned.ts +23 -0
- package/src/mods/events/session.ts +26 -4
- package/src/mods/events/spec.ts +2 -0
- package/src/mods/events/tool.ts +57 -12
- package/src/mods/events/turn.ts +17 -1
- package/src/mods/load/auto-mode-approval.ts +7 -11
- package/src/mods/load/commands/module-facts.ts +32 -0
- package/src/mods/load/commands/scan-lead.ts +6 -2
- package/src/mods/load/commands/scan-lines.ts +33 -1
- package/src/mods/load/commands/sha256.ts +80 -0
- package/src/mods/load/commands/validate-report.ts +9 -0
- package/src/mods/load/commands/validate.ts +24 -16
- package/src/mods/load/commands/wasm-read.ts +183 -0
- package/src/mods/load/guard-protection.ts +15 -5
- package/src/mods/load/guard-surfaces.ts +2 -0
- package/src/mods/load/guard-tools.ts +45 -0
- package/src/mods/load/guard.ts +21 -8
- package/src/mods/load/host-support.ts +51 -11
- package/src/mods/load/host.ts +24 -4
- package/src/mods/load/in-turn.ts +12 -0
- package/src/mods/load/index.ts +22 -2
- package/src/mods/load/loader.ts +23 -10
- package/src/mods/load/mod-set.ts +9 -18
- package/src/mods/load/order.ts +2 -2
- package/src/mods/load/plugin-dirs.ts +29 -8
- package/src/mods/load/policy.ts +61 -25
- package/src/mods/load/prepare.ts +34 -4
- package/src/mods/load/provides.ts +134 -0
- package/src/mods/load/register-ask.ts +82 -0
- package/src/mods/load/register-call.ts +98 -38
- package/src/mods/load/register-event.ts +104 -0
- package/src/mods/load/scan/client-modules.ts +1 -1
- package/src/mods/load/scan/event-names.ts +2 -0
- package/src/mods/load/scan/found.ts +8 -0
- package/src/mods/load/scan/hosts.ts +40 -0
- package/src/mods/load/scan/index.ts +8 -0
- package/src/mods/load/scan/rules.ts +4 -0
- package/src/mods/load/scan/uses.ts +10 -0
- package/src/mods/load/scan/wasm-paths.ts +35 -0
- package/src/mods/load/tool-flow.ts +16 -2
- package/src/mods/load/wasm-files.ts +77 -0
- package/src/mods/load/wiring.ts +30 -7
- package/src/mods/load/written-mods.ts +42 -27
- package/src/mods/types.ts +10 -9
- package/src/mods/ui/controls/hotkeys.ts +36 -2
- package/src/mods/ui/elements/box.ts +6 -1
- package/src/mods/ui/elements/limits.ts +5 -3
- package/src/mods/ui/elements/progress.ts +19 -0
- package/src/mods/ui/elements/prop-size.ts +41 -0
- package/src/mods/ui/elements/registry.ts +4 -0
- package/src/mods/ui/elements/shader-place.ts +38 -0
- package/src/mods/ui/elements/shader.ts +36 -0
- package/src/mods/ui/elements/svg.ts +4 -0
- package/src/mods/ui/elements/table.ts +2 -0
- package/src/mods/ui/elements/text.ts +9 -0
- package/src/mods/ui/elements/validate.ts +3 -1
- package/src/mods/ui/index.ts +1 -0
- package/src/mods/ui/keyboard/keys.ts +2 -0
- package/src/mods/ui/panes/open.ts +5 -1
- package/src/mods/ui/panes/pane-request.ts +19 -0
- package/src/mods/ui/panes/registry.ts +5 -1
- package/src/mods/ui/rules.ts +4 -0
- package/src/mods/ui/runtime.ts +43 -12
- package/src/mods/ui/sites/agent-row.ts +24 -0
- package/src/mods/ui/sites/backdrop.ts +2 -2
- package/src/mods/ui/sites/band-list.ts +40 -0
- package/src/mods/ui/sites/band-rows.ts +100 -0
- package/src/mods/ui/sites/fold.ts +2 -2
- package/src/mods/ui/sites/registry.ts +33 -17
- package/src/ports/files.ts +1 -1
- package/src/ports/mcp-bundle.ts +3 -2
- package/src/ports/mcp-caller.ts +7 -0
- package/src/protocol/mods-api-names.ts +17 -4
- package/src/protocol/mods-events.ts +14 -5
- package/src/protocol/mods-limits.ts +9 -1
- package/src/protocol/mods-ui-names.ts +63 -8
- package/src/protocol/official.ts +1 -0
- package/src/protocol/tool-names.ts +27 -5
- package/src/rules/bash/wrappers.ts +3 -0
- package/src/rules/decide/auto-dropped.ts +29 -6
- package/src/rules/decide/context.ts +5 -2
- package/src/rules/decide/decide.ts +14 -0
- package/src/rules/decide/facts.ts +3 -3
- package/src/rules/decide/modes.ts +12 -0
- package/src/rules/tools/catalog.ts +13 -3
- package/src/rules/types.ts +6 -0
- package/src/settings/add-dir-layer.ts +34 -0
- package/src/settings/env/code-mode.ts +26 -0
- package/src/settings/env/ignored-variables.ts +7 -0
- package/src/settings/env/index.ts +1 -0
- package/src/settings/general/checks.ts +0 -1
- package/src/settings/general/command-lines.ts +1 -29
- package/src/settings/general/edit-effect.ts +14 -1
- package/src/settings/general/index.ts +5 -14
- package/src/settings/general/keys.ts +0 -2
- package/src/settings/general/plugin-defaults.ts +23 -12
- package/src/settings/general/rows.ts +0 -1
- package/src/settings/hooks/custom-commands.ts +2 -3
- package/src/settings/hooks/http-policy.ts +47 -10
- package/src/settings/hooks/index.ts +6 -1
- package/src/settings/hooks/policy.ts +2 -2
- package/src/settings/hooks/session-gates.ts +18 -12
- package/src/settings/index.ts +1 -0
- package/src/settings/managed/compose.ts +10 -34
- package/src/settings/managed/helper-run.ts +1 -1
- package/src/settings/managed/helper-settings.ts +36 -0
- package/src/settings/managed/index.ts +16 -1
- package/src/settings/managed/login-keys.ts +23 -0
- package/src/settings/managed/ports.ts +8 -1
- package/src/settings/managed/server-cache.ts +69 -0
- package/src/settings/managed/server-groups.ts +63 -0
- package/src/settings/mcp/exclusive.ts +6 -1
- package/src/settings/mcp/scope.ts +10 -0
- package/src/settings/permissions/default-mode.ts +2 -2
- package/src/skills/bare-repository.ts +12 -0
- package/src/skills/execution.ts +1 -1
- package/src/skills/expand-shell.ts +1 -0
- package/src/skills/expand-types.ts +5 -0
- package/src/skills/index.ts +1 -0
- package/src/skills/invocation.ts +4 -3
- package/src/skills/path-gate.ts +25 -3
- package/src/skills/shell-run.ts +24 -1
- package/src/testing/mods/expect-equal.ts +66 -0
- package/src/testing/mods/expect-matchers.ts +127 -0
- package/src/testing/mods/expect.ts +136 -98
- package/src/testing/mods/fake-ports.ts +12 -0
- package/src/testing/mods/kit.ts +6 -2
- package/src/testing/mods/mock.ts +3 -2
- package/src/testing/mods/mount.ts +34 -3
- package/src/testing/mods/stub-matcher.ts +28 -0
- package/src/testing/mods/stubs.ts +22 -7
- package/src/testing/mods/world.ts +4 -2
- package/dist/settings/general/subagent-status-line.d.ts +0 -66
- package/dist/settings/general/subagent-status-line.d.ts.map +0 -1
- package/dist/settings/general/subagent-status-line.js +0 -58
- package/dist/settings/general/subagent-status-line.js.map +0 -1
- package/src/settings/general/subagent-status-line.ts +0 -121
package/src/format/manifest.ts
CHANGED
|
@@ -11,6 +11,10 @@ import { nameLoadIssues } from './names.ts';
|
|
|
11
11
|
import { checkPluginManifest, manifestPathFindings } from './validate/plugin-manifest.ts';
|
|
12
12
|
import { isRecord } from '../protocol/is-record.ts';
|
|
13
13
|
import { USER_CONFIG_KEY } from './user-config-refs.ts';
|
|
14
|
+
import { note, type PluginNote } from './plugin-notes.ts';
|
|
15
|
+
import { enginesFindings } from './engines.ts';
|
|
16
|
+
import { networkFindings } from './network.ts';
|
|
17
|
+
import { withoutUnreadServerPaths } from './server-paths.ts';
|
|
14
18
|
|
|
15
19
|
/**
|
|
16
20
|
* Reading `.claude-plugin/plugin.json` as Claude Code loads it (plugins/manifest-reference.md):
|
|
@@ -22,6 +26,51 @@ export interface ManifestResult {
|
|
|
22
26
|
/** Undefined when an error keeps the plugin from loading. */
|
|
23
27
|
readonly manifest: PluginManifest | undefined;
|
|
24
28
|
readonly issues: readonly PluginIssue[];
|
|
29
|
+
/** What the plugin loads with that `claude plugin list` notes, such as an ignored display field. */
|
|
30
|
+
readonly notes: readonly PluginNote[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The display fields: a value of the wrong type is ignored with a note, and the plugin loads
|
|
35
|
+
* (spec §2.1 item 3, Judgment J2.6).
|
|
36
|
+
*/
|
|
37
|
+
const DISPLAY = new Set([
|
|
38
|
+
'$schema',
|
|
39
|
+
'displayName',
|
|
40
|
+
'description',
|
|
41
|
+
'author',
|
|
42
|
+
'homepage',
|
|
43
|
+
'repository',
|
|
44
|
+
'license',
|
|
45
|
+
'keywords',
|
|
46
|
+
]);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* A malformed value loading ignores without a note: `metadata` or `experimental` that is not an
|
|
50
|
+
* object, or an `icon` that is not a string. Claude Code 2.1.330 loads the plugin (Judgment J2.6);
|
|
51
|
+
* the validator warns about the first two and says nothing of `icon`. A wrong value inside an
|
|
52
|
+
* `experimental` object still fails (§2.2).
|
|
53
|
+
*/
|
|
54
|
+
const ignoredWhole = (key: string, value: unknown): boolean =>
|
|
55
|
+
key === 'icon' || ((key === 'metadata' || key === 'experimental') && !isRecord(value));
|
|
56
|
+
|
|
57
|
+
/** `"a"`, `"a" and "b"`, `"a", "b" and "c"`: the kit's joining past two (spec/judgments.md). */
|
|
58
|
+
function quotedList(fields: readonly string[]): string {
|
|
59
|
+
const quoted = fields.map((field) => `"${field}"`);
|
|
60
|
+
const last = quoted.pop() ?? '';
|
|
61
|
+
return quoted.length === 0 ? last : `${quoted.join(', ')} and ${last}`;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** The `manifest-field-ignored` note for the display fields loading dropped (§2.1 item 3). */
|
|
65
|
+
function ignoredNote(fields: readonly string[]): PluginNote[] {
|
|
66
|
+
if (fields.length === 0) return [];
|
|
67
|
+
const verb = fields.length === 1 ? 'is' : 'are';
|
|
68
|
+
return [
|
|
69
|
+
note(
|
|
70
|
+
'manifest-field-ignored',
|
|
71
|
+
`${quotedList(fields)} in plugin.json ${verb} malformed and ignored. Earlier versions of Claude Code refused this plugin`,
|
|
72
|
+
),
|
|
73
|
+
];
|
|
25
74
|
}
|
|
26
75
|
|
|
27
76
|
/** Keys moved under `experimental` that still load at the top level ("Fields"). */
|
|
@@ -50,8 +99,19 @@ function userConfigIssues(value: unknown): PluginIssue[] {
|
|
|
50
99
|
});
|
|
51
100
|
}
|
|
52
101
|
|
|
102
|
+
/**
|
|
103
|
+
* `engines` and `network` never fail a plugin (spec §2.4, J2.10): what is wrong is a warning, the
|
|
104
|
+
* value is dropped when it is not an object, and an invalid range becomes a note (`engineNotes`).
|
|
105
|
+
*/
|
|
106
|
+
const LENIENT: Readonly<Record<string, (value: unknown) => PluginIssue[]>> = {
|
|
107
|
+
engines: (value) => (isRecord(value) ? [] : enginesFindings(value)),
|
|
108
|
+
network: networkFindings,
|
|
109
|
+
};
|
|
110
|
+
|
|
53
111
|
function keyIssues(key: string, value: unknown): PluginIssue[] {
|
|
54
112
|
if (!isManifestKey(key)) return [warning(key, `Unknown field "${key}"`)];
|
|
113
|
+
const lenient = LENIENT[key];
|
|
114
|
+
if (lenient !== undefined) return lenient(value);
|
|
55
115
|
const parsed = MANIFEST_SCHEMAS[key].safeParse(value);
|
|
56
116
|
if (!parsed.success) {
|
|
57
117
|
return key === 'userConfig'
|
|
@@ -61,32 +121,63 @@ function keyIssues(key: string, value: unknown): PluginIssue[] {
|
|
|
61
121
|
return MOVED.has(key) ? [warning(key, `"${key}" belongs under "experimental"`)] : [];
|
|
62
122
|
}
|
|
63
123
|
|
|
124
|
+
/** One key's issues as loading keeps them: a display or ignored key's error is not one. */
|
|
125
|
+
function loadIssues(
|
|
126
|
+
key: string,
|
|
127
|
+
value: unknown,
|
|
128
|
+
found: readonly PluginIssue[],
|
|
129
|
+
): readonly PluginIssue[] {
|
|
130
|
+
if (DISPLAY.has(key) && blocksLoading(found)) return [];
|
|
131
|
+
if (ignoredWhole(key, value) && blocksLoading(found)) {
|
|
132
|
+
return found.map((issue) => ({ ...issue, severity: 'warning' }));
|
|
133
|
+
}
|
|
134
|
+
return found;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface KeptKeys {
|
|
138
|
+
readonly kept: Readonly<Record<string, unknown>>;
|
|
139
|
+
readonly issues: readonly PluginIssue[];
|
|
140
|
+
readonly dropped: readonly string[];
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function keepKeys(raw: Readonly<Record<string, unknown>>): KeptKeys {
|
|
144
|
+
const issues: PluginIssue[] = [];
|
|
145
|
+
const kept: Record<string, unknown> = {};
|
|
146
|
+
const dropped: string[] = [];
|
|
147
|
+
for (const [key, value] of Object.entries(raw)) {
|
|
148
|
+
const found = keyIssues(key, value);
|
|
149
|
+
if (DISPLAY.has(key) && blocksLoading(found)) dropped.push(key);
|
|
150
|
+
issues.push(...loadIssues(key, value, found));
|
|
151
|
+
const droppedLenient = Object.hasOwn(LENIENT, key) && !isRecord(value);
|
|
152
|
+
if (isManifestKey(key) && !blocksLoading(found) && !droppedLenient) kept[key] = value;
|
|
153
|
+
}
|
|
154
|
+
return { kept, issues, dropped };
|
|
155
|
+
}
|
|
156
|
+
|
|
64
157
|
export function readManifest(raw: unknown): ManifestResult {
|
|
65
158
|
if (!isRecord(raw)) {
|
|
66
159
|
return {
|
|
67
160
|
manifest: undefined,
|
|
68
161
|
issues: [error('plugin.json', 'The manifest is not a JSON object')],
|
|
162
|
+
notes: [],
|
|
69
163
|
};
|
|
70
164
|
}
|
|
71
|
-
const
|
|
72
|
-
const kept
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
issues.push(...found);
|
|
76
|
-
if (isManifestKey(key) && !blocksLoading(found)) kept[key] = value;
|
|
77
|
-
}
|
|
165
|
+
const unread = withoutUnreadServerPaths(raw);
|
|
166
|
+
const { kept, dropped, ...found } = keepKeys(unread.manifest);
|
|
167
|
+
const issues = [...unread.issues, ...found.issues];
|
|
168
|
+
const notes = ignoredNote(dropped);
|
|
78
169
|
if (typeof kept.name !== 'string') {
|
|
79
|
-
if (!issues.some((
|
|
170
|
+
if (!issues.some((issue) => issue.path === 'name')) {
|
|
80
171
|
issues.push(error('name', 'The manifest has no "name"'));
|
|
81
172
|
}
|
|
82
|
-
return { manifest: undefined, issues };
|
|
173
|
+
return { manifest: undefined, issues, notes };
|
|
83
174
|
}
|
|
84
175
|
issues.push(...nameLoadIssues(kept.name));
|
|
85
176
|
// Every kept key passed its own schema, so the whole parses; this types it without a cast.
|
|
86
177
|
const parsed = manifestSchema.safeParse(kept);
|
|
87
|
-
if (blocksLoading(issues) || !parsed.success) return { manifest: undefined, issues };
|
|
178
|
+
if (blocksLoading(issues) || !parsed.success) return { manifest: undefined, issues, notes };
|
|
88
179
|
issues.push(...manifestPathFindings(kept));
|
|
89
|
-
return { manifest: blocksLoading(issues) ? undefined : parsed.data, issues };
|
|
180
|
+
return { manifest: blocksLoading(issues) ? undefined : parsed.data, issues, notes };
|
|
90
181
|
}
|
|
91
182
|
|
|
92
183
|
/**
|
|
@@ -2,6 +2,7 @@ import { blocksLoading, error, warning, type PluginIssue } from '../issues.ts';
|
|
|
2
2
|
import { MANIFEST_SCHEMAS } from '../manifest-schema.ts';
|
|
3
3
|
import { defined } from '../defined.ts';
|
|
4
4
|
import { headerIssues, nameReports, versionIssues } from './entry-checks.ts';
|
|
5
|
+
import { readEntryEngines, splitDisplayIssues } from './entry-display.ts';
|
|
5
6
|
import { ENTRY_KEYS, isEntryKey, readEntryFields, type EntryFields } from './entry-schema.ts';
|
|
6
7
|
import type { EntryReader, EntryReading, EntrySlot } from './marketplace.ts';
|
|
7
8
|
import { mismatch, typeName, unknownField } from './marketplace-schema.ts';
|
|
@@ -85,21 +86,24 @@ function readExperimental(raw: unknown, path: string) {
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
/** The fields an entry reads with a reader of their own. */
|
|
88
|
-
function readApart(raw: Readonly<Record<string, unknown>>, base: string) {
|
|
89
|
+
function readApart(raw: Readonly<Record<string, unknown>>, base: string, slot: EntrySlot) {
|
|
89
90
|
const metadata = objectOrWarning(raw.metadata, `${base}.metadata`, 'a free-form object');
|
|
90
91
|
const experimental = readExperimental(raw.experimental, `${base}.experimental`);
|
|
91
92
|
const relevance = readRelevance(raw.relevance, `${base}.relevance`);
|
|
93
|
+
const engines = readEntryEngines(raw.engines, base, slot.mode ?? 'load');
|
|
92
94
|
return {
|
|
93
95
|
metadata: metadata.value,
|
|
94
96
|
experimental: experimental.value,
|
|
95
97
|
relevance: relevance.relevance,
|
|
98
|
+
engines: engines.engines,
|
|
96
99
|
issues: [...metadata.issues, ...experimental.issues, ...relevance.issues],
|
|
100
|
+
advisory: engines.issues,
|
|
97
101
|
};
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
type Apart = ReturnType<typeof readApart>;
|
|
101
105
|
|
|
102
|
-
function build({ fields, name, source }: Parts, apart: Apart): MarketplaceEntry {
|
|
106
|
+
function build({ fields, name, source, invalid }: Parts, apart: Apart): MarketplaceEntry {
|
|
103
107
|
return {
|
|
104
108
|
name,
|
|
105
109
|
source,
|
|
@@ -116,6 +120,8 @@ function build({ fields, name, source }: Parts, apart: Apart): MarketplaceEntry
|
|
|
116
120
|
metadata: apart.metadata,
|
|
117
121
|
headers: fields.headers,
|
|
118
122
|
headersHelper: fields.headersHelper,
|
|
123
|
+
engines: apart.engines,
|
|
124
|
+
invalid: invalid.length === 0 ? undefined : invalid,
|
|
119
125
|
}),
|
|
120
126
|
components: defined({
|
|
121
127
|
commands: fields.commands,
|
|
@@ -149,6 +155,8 @@ interface Parts {
|
|
|
149
155
|
readonly fields: EntryFields;
|
|
150
156
|
readonly name: string;
|
|
151
157
|
readonly source: PluginSource;
|
|
158
|
+
/** The display-field problems that make the entry invalid to install (J15.15). */
|
|
159
|
+
readonly invalid: readonly string[];
|
|
152
160
|
}
|
|
153
161
|
|
|
154
162
|
/** The reports that need the parsed fields and the parsed source together. */
|
|
@@ -178,9 +186,10 @@ export function readEntry(raw: unknown, slot: EntrySlot, parseSource: SourcePars
|
|
|
178
186
|
if (!isRecord(raw)) {
|
|
179
187
|
return dropped(mismatch(base, 'object', raw));
|
|
180
188
|
}
|
|
181
|
-
const { fields, issues:
|
|
189
|
+
const { fields, issues: read } = readEntryFields(raw, base);
|
|
190
|
+
const { issues: fieldIssues, invalid } = splitDisplayIssues(read, base, slot.mode ?? 'load');
|
|
182
191
|
const source = readSource(raw.source, slot, base, parseSource);
|
|
183
|
-
const apart = readApart(raw, base);
|
|
192
|
+
const apart = readApart(raw, base, slot);
|
|
184
193
|
const named = readName(raw, base, slot);
|
|
185
194
|
const issues = [
|
|
186
195
|
...named.shape,
|
|
@@ -188,6 +197,7 @@ export function readEntry(raw: unknown, slot: EntrySlot, parseSource: SourcePars
|
|
|
188
197
|
...fieldIssues,
|
|
189
198
|
...source.issues,
|
|
190
199
|
...apart.issues,
|
|
200
|
+
...apart.advisory,
|
|
191
201
|
...unknownKeys(raw, base),
|
|
192
202
|
];
|
|
193
203
|
// The reserved-name ruling does not stop the comparison with the entry's manifest (oracle 2.1.319).
|
|
@@ -196,7 +206,7 @@ export function readEntry(raw: unknown, slot: EntrySlot, parseSource: SourcePars
|
|
|
196
206
|
if (fields === undefined || name === undefined || source.source === undefined) {
|
|
197
207
|
return dropped(...issues);
|
|
198
208
|
}
|
|
199
|
-
const parts = { fields, name, source: source.source };
|
|
209
|
+
const parts = { fields, name, source: source.source, invalid };
|
|
200
210
|
issues.push(...crossIssues(parts, slot, base, sound));
|
|
201
211
|
if (blocksLoading(issues)) return { entry: undefined, issues, schemaSound: sound };
|
|
202
212
|
return { entry: build(parts, apart), issues };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { PluginIssue } from '../issues.ts';
|
|
2
|
+
import { enginesFindings, readEngines, type EnginesRead } from '../engines.ts';
|
|
3
|
+
import type { MarketplaceEntry, ReadMode } from './types.ts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The two entry fields whose problems do not drop an entry at load (spec §15.4, §15.5.3; Judgment
|
|
7
|
+
* J15.15): a display field of the wrong type, or a `homepage` that is not a URL, keeps the entry
|
|
8
|
+
* listed but makes it invalid to install; a malformed `engines` is ignored and the entry installs.
|
|
9
|
+
* A validator reports both as `claude plugin validate` does.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** The display fields of `plugin.json` (§2.1 item 3) as an entry carries them. */
|
|
13
|
+
const DISPLAY_KEYS = [
|
|
14
|
+
'$schema',
|
|
15
|
+
'displayName',
|
|
16
|
+
'description',
|
|
17
|
+
'author',
|
|
18
|
+
'homepage',
|
|
19
|
+
'repository',
|
|
20
|
+
'license',
|
|
21
|
+
'keywords',
|
|
22
|
+
] as const;
|
|
23
|
+
|
|
24
|
+
/** The display field an issue at `path` is about, when it is one. */
|
|
25
|
+
function displayKeyOf(path: string, base: string): string | undefined {
|
|
26
|
+
return DISPLAY_KEYS.find((key) => {
|
|
27
|
+
const at = `${base}.${key}`;
|
|
28
|
+
return path === at || path.startsWith(`${at}.`) || path.startsWith(`${at}[`);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface DisplaySplit {
|
|
33
|
+
/** The issues an entry is read with. */
|
|
34
|
+
readonly issues: readonly PluginIssue[];
|
|
35
|
+
/** At load, each display problem as `<field>: <problem>`; the entry is kept and refuses to install. */
|
|
36
|
+
readonly invalid: readonly string[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** At load, the display fields' errors leave the issues and become the entry's `invalid` list. */
|
|
40
|
+
export function splitDisplayIssues(
|
|
41
|
+
issues: readonly PluginIssue[],
|
|
42
|
+
base: string,
|
|
43
|
+
mode: ReadMode,
|
|
44
|
+
): DisplaySplit {
|
|
45
|
+
if (mode === 'validate') return { issues, invalid: [] };
|
|
46
|
+
const kept: PluginIssue[] = [];
|
|
47
|
+
const invalid: string[] = [];
|
|
48
|
+
for (const found of issues) {
|
|
49
|
+
const key = displayKeyOf(found.path, base);
|
|
50
|
+
if (key === undefined) kept.push(found);
|
|
51
|
+
else invalid.push(`${found.path.slice(base.length + 1)}: ${found.message}`);
|
|
52
|
+
}
|
|
53
|
+
return { issues: kept, invalid };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** `engines`: the validator's findings in `validate` mode; what loading takes from it either way. */
|
|
57
|
+
export function readEntryEngines(
|
|
58
|
+
value: unknown,
|
|
59
|
+
base: string,
|
|
60
|
+
mode: ReadMode,
|
|
61
|
+
): { readonly engines: EnginesRead | undefined; readonly issues: readonly PluginIssue[] } {
|
|
62
|
+
if (value === undefined) return { engines: undefined, issues: [] };
|
|
63
|
+
const issues = mode === 'validate' ? enginesFindings(value, `${base}.engines`) : [];
|
|
64
|
+
const read = readEngines(value);
|
|
65
|
+
const engines = read.range === undefined && read.invalid === undefined ? undefined : read;
|
|
66
|
+
return { engines, issues };
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Why installing this entry fails (§15.5.3): `This plugin's marketplace entry is invalid:` and its
|
|
71
|
+
* problems joined by `, `; `undefined` for an entry that installs.
|
|
72
|
+
*/
|
|
73
|
+
export function invalidEntryMessage(entry: Pick<MarketplaceEntry, 'invalid'>): string | undefined {
|
|
74
|
+
const problems = entry.invalid ?? [];
|
|
75
|
+
return problems.length === 0
|
|
76
|
+
? undefined
|
|
77
|
+
: `This plugin's marketplace entry is invalid: ${problems.join(', ')}`;
|
|
78
|
+
}
|
|
@@ -22,7 +22,7 @@ const DIRECTORY_LISTING_FIELDS = [
|
|
|
22
22
|
type ListingField = (typeof DIRECTORY_LISTING_FIELDS)[number];
|
|
23
23
|
|
|
24
24
|
/** Keys of a manifest that an entry reads with a reader of its own (`entries.ts`). */
|
|
25
|
-
type ReadApart = 'name' | 'metadata' | 'experimental';
|
|
25
|
+
type ReadApart = 'name' | 'metadata' | 'experimental' | 'engines' | 'network' | 'homepage';
|
|
26
26
|
|
|
27
27
|
/** The manifest's schemas for the fields an entry shares; a new manifest key fails to compile until it is placed. */
|
|
28
28
|
const SHARED: {
|
|
@@ -33,7 +33,6 @@ const SHARED: {
|
|
|
33
33
|
version: MANIFEST_SCHEMAS.version,
|
|
34
34
|
description: MANIFEST_SCHEMAS.description,
|
|
35
35
|
author: MANIFEST_SCHEMAS.author,
|
|
36
|
-
homepage: MANIFEST_SCHEMAS.homepage,
|
|
37
36
|
repository: MANIFEST_SCHEMAS.repository,
|
|
38
37
|
license: MANIFEST_SCHEMAS.license,
|
|
39
38
|
keywords: MANIFEST_SCHEMAS.keywords,
|
|
@@ -58,6 +57,8 @@ const SHARED: {
|
|
|
58
57
|
/** The entry's own fields (the field table of "Plugin entries"), beyond `source`, `relevance` and `metadata`. */
|
|
59
58
|
const OWN = {
|
|
60
59
|
name: z.string(),
|
|
60
|
+
/** A `homepage` that is not a URL is the schema check's `Invalid URL` (spec §15.5.3, J15.15). */
|
|
61
|
+
homepage: z.url(),
|
|
61
62
|
category: z.string(),
|
|
62
63
|
tags: z.array(z.string()),
|
|
63
64
|
strict: z.boolean(),
|
|
@@ -77,6 +78,8 @@ export const ENTRY_KEYS: readonly string[] = [
|
|
|
77
78
|
'relevance',
|
|
78
79
|
'metadata',
|
|
79
80
|
'experimental',
|
|
81
|
+
'engines',
|
|
82
|
+
'network',
|
|
80
83
|
...Object.keys(FIELD_SCHEMAS),
|
|
81
84
|
];
|
|
82
85
|
|
|
@@ -27,7 +27,6 @@ export {
|
|
|
27
27
|
type IdPart,
|
|
28
28
|
} from './ids.ts';
|
|
29
29
|
export {
|
|
30
|
-
ANY_CASING_NAMES,
|
|
31
30
|
COMMUNITY_NAMES,
|
|
32
31
|
DIRECTORY_NAMES,
|
|
33
32
|
NON_MARKETPLACE_NAMES,
|
|
@@ -55,6 +54,7 @@ export {
|
|
|
55
54
|
} from './marketplace.ts';
|
|
56
55
|
export { parsePluginSource } from './plugin-source.ts';
|
|
57
56
|
export { createEntryReader, readEntry, type SourceParser, type SourceReading } from './entries.ts';
|
|
57
|
+
export { invalidEntryMessage } from './entry-display.ts';
|
|
58
58
|
export { ENTRY_KEYS } from './entry-schema.ts';
|
|
59
59
|
export { effectiveDisplayName, mergeEntryWithManifest, type EntryMerge } from './entry-merge.ts';
|
|
60
60
|
export { effectiveTopic } from './relevance.ts';
|
|
@@ -54,16 +54,6 @@ export const NON_MARKETPLACE_NAMES: ReadonlyMap<string, string> = new Map([
|
|
|
54
54
|
['claude-plugin-test', 'is reserved for plugins loaded by claude plugin test'],
|
|
55
55
|
]);
|
|
56
56
|
|
|
57
|
-
/** Reserved "in any casing" (requires Claude Code v2.1.275 or later). */
|
|
58
|
-
export const ANY_CASING_NAMES: ReadonlySet<string> = new Set([
|
|
59
|
-
'npm',
|
|
60
|
-
'pip',
|
|
61
|
-
'uv',
|
|
62
|
-
'cargo',
|
|
63
|
-
'github',
|
|
64
|
-
'gh',
|
|
65
|
-
]);
|
|
66
|
-
|
|
67
57
|
/** Member names every JavaScript object has (requires Claude Code v2.1.296 or later). */
|
|
68
58
|
export const OBJECT_MEMBER_NAMES: ReadonlySet<string> = new Set([
|
|
69
59
|
'constructor',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { error, type PluginIssue } from '../issues.ts';
|
|
2
2
|
import {
|
|
3
|
-
ANY_CASING_NAMES,
|
|
4
3
|
COMMUNITY_NAMES,
|
|
5
4
|
DIRECTORY_NAMES,
|
|
6
5
|
NON_MARKETPLACE_NAMES,
|
|
@@ -93,24 +92,9 @@ export function impersonates(name: string): boolean {
|
|
|
93
92
|
return besideOfficial(words) || leadsWithBrand(words);
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
const reservedIssue = (name: string): PluginIssue =>
|
|
97
|
-
error(PATH, `Marketplace name "${name}" is reserved`);
|
|
98
|
-
|
|
99
95
|
function reservedVariantIssues(name: string): PluginIssue[] {
|
|
100
96
|
const reason = NON_MARKETPLACE_NAMES.get(name);
|
|
101
|
-
|
|
102
|
-
return ANY_CASING_NAMES.has(name) ? [reservedIssue(name)] : [];
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* The six package-manager names are reserved in any letter case, but a validator reports only the
|
|
107
|
-
* lower case; adding or loading refuses the other casings (spec J15.3: the 2.1.321 table for the
|
|
108
|
-
* verdict, oracle 2.1.325 passes `NPM`).
|
|
109
|
-
*/
|
|
110
|
-
function otherCasingIssues(name: string): PluginIssue[] {
|
|
111
|
-
return name !== name.toLowerCase() && ANY_CASING_NAMES.has(name.toLowerCase())
|
|
112
|
-
? [reservedIssue(name)]
|
|
113
|
-
: [];
|
|
97
|
+
return reason === undefined ? [] : [error(PATH, `Marketplace name "${name}" ${reason}`)];
|
|
114
98
|
}
|
|
115
99
|
|
|
116
100
|
/** What `claude plugin validate` reports about a marketplace's name beyond the id grammar. */
|
|
@@ -206,6 +190,21 @@ function claudeAiIssues(name: string, hostedOnClaudeAi: boolean): PluginIssue[]
|
|
|
206
190
|
];
|
|
207
191
|
}
|
|
208
192
|
|
|
193
|
+
/** A full lower-case commit SHA, which pins a marketplace's `ref` (spec §15.7, 2.1.324). */
|
|
194
|
+
export const isCommitSha = (ref: string): boolean => /^[0-9a-f]{40}$/.test(ref);
|
|
195
|
+
|
|
196
|
+
/** A reserved name is never pinned to a commit (§15.7 `ref`); the wording is the kit's (spec/judgments.md). */
|
|
197
|
+
function pinnedIssues(name: string, origin: MarketplaceSource | undefined): PluginIssue[] {
|
|
198
|
+
const ref = origin !== undefined && 'ref' in origin ? origin.ref : undefined;
|
|
199
|
+
if (!OFFICIAL_LISTS.has(name) || ref === undefined || !isCommitSha(ref)) return [];
|
|
200
|
+
return [
|
|
201
|
+
error(
|
|
202
|
+
PATH,
|
|
203
|
+
`The name '${name}' is reserved for official Anthropic marketplaces, which cannot be pinned to a commit. Use a branch or tag as "ref".`,
|
|
204
|
+
),
|
|
205
|
+
];
|
|
206
|
+
}
|
|
207
|
+
|
|
209
208
|
export interface NameOrigin {
|
|
210
209
|
/** Where the marketplace came from; only a `github` or `git` source under `github.com/anthropics/` may use an official name. */
|
|
211
210
|
readonly origin?: MarketplaceSource;
|
|
@@ -216,8 +215,8 @@ export interface NameOrigin {
|
|
|
216
215
|
/** What adding or loading a marketplace refuses about its name, on top of `validationNameIssues`. */
|
|
217
216
|
export function loadNameIssues(name: string, where: NameOrigin = {}): PluginIssue[] {
|
|
218
217
|
return [
|
|
219
|
-
...otherCasingIssues(name),
|
|
220
218
|
...officialNameIssues(name, where.origin),
|
|
219
|
+
...pinnedIssues(name, where.origin),
|
|
221
220
|
...spellingIssues(name),
|
|
222
221
|
...memberIssues(name),
|
|
223
222
|
...claudeAiIssues(name, where.hostedOnClaudeAi === true),
|
|
@@ -45,15 +45,23 @@ function rootPath(pluginRoot: string, site: SourceSite): string | undefined {
|
|
|
45
45
|
return bad ? undefined : rootRelative(path);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
const unresolvable = (name: string, pluginRoot: string): string =>
|
|
49
|
+
`Bare source name "${name}" cannot resolve: metadata.pluginRoot ("${pluginRoot}") must be a relative path inside the marketplace (e.g. "./plugins").`;
|
|
50
|
+
|
|
48
51
|
/** A bare name: "a single directory name with no `/`", resolved under `metadata.pluginRoot`. */
|
|
49
52
|
function bareName(raw: string, site: SourceSite): SourceReading {
|
|
50
53
|
const root = site.pluginRoot === undefined ? undefined : rootPath(site.pluginRoot, site);
|
|
51
54
|
if (site.pluginRoot === undefined || raw.includes('/') || raw === '') {
|
|
52
55
|
return { source: undefined, issues: [error(site.path, MUST_START)] };
|
|
53
56
|
}
|
|
54
|
-
// A root that climbs out or is absolute leaves the bare name without a base: oracle 2.1.
|
|
55
|
-
// reports the bare name like one without
|
|
56
|
-
if (root === undefined)
|
|
57
|
+
// A root that climbs out or is absolute leaves the bare name without a base: oracle 2.1.330
|
|
58
|
+
// reports the bare name like one without `./`, and why it cannot resolve (spec J15.6).
|
|
59
|
+
if (root === undefined) {
|
|
60
|
+
return {
|
|
61
|
+
source: undefined,
|
|
62
|
+
issues: [error(site.path, MUST_START), error(site.path, unresolvable(raw, site.pluginRoot))],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
57
65
|
const path = root === '.' ? raw : `${root}/${raw}`;
|
|
58
66
|
return { source: { kind: 'relative', path, bare: true }, issues: [] };
|
|
59
67
|
}
|
|
@@ -11,18 +11,19 @@ import { isRecord } from '../../protocol/is-record.ts';
|
|
|
11
11
|
* The inline catalog of a `settings` marketplace source (plugins/marketplace-reference.md, "Fields
|
|
12
12
|
* by type": "Each item takes `name`, `source`, `description`, `version`, `strict`, `headers`, and
|
|
13
13
|
* `headersHelper`. Write each item's `source` as an object type, because a relative path has no
|
|
14
|
-
* repository to resolve against"; settings-reference.md, `extraKnownMarketplaces`: "an entry in
|
|
14
|
+
* repository to resolve against", and `engines` too, spec §15.7; settings-reference.md, `extraKnownMarketplaces`: "an entry in
|
|
15
15
|
* settings doesn't need `"strict": false`, because a settings file carries no manifest fields to
|
|
16
16
|
* inline"). Issue paths are `plugins[i]...`, relative to the source object.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
/** The
|
|
19
|
+
/** The keys an item takes (`engines` since the SDK 0.3.330 `Settings` type, spec §15.7); any other is unknown and ignored (spec/judgments.md). */
|
|
20
20
|
const SETTINGS_ENTRY_KEYS = [
|
|
21
21
|
'name',
|
|
22
22
|
'source',
|
|
23
23
|
'description',
|
|
24
24
|
'version',
|
|
25
25
|
'strict',
|
|
26
|
+
'engines',
|
|
26
27
|
'headers',
|
|
27
28
|
'headersHelper',
|
|
28
29
|
] as const;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EnginesRead } from '../engines.ts';
|
|
1
2
|
import { MARKETPLACE_SOURCE_KINDS } from '../../protocol/settings-keys.ts';
|
|
2
3
|
import type { PluginDependency, PluginManifest } from '../manifest-schema.ts';
|
|
3
4
|
import type { PluginIssue } from '../issues.ts';
|
|
@@ -127,6 +128,16 @@ export interface MarketplaceEntry {
|
|
|
127
128
|
readonly headersHelper?: string;
|
|
128
129
|
readonly components: Readonly<Partial<Pick<PluginManifest, ComponentKey>>>;
|
|
129
130
|
readonly display: Readonly<Partial<Pick<PluginManifest, DisplayKey>>>;
|
|
131
|
+
/**
|
|
132
|
+
* `engines` read (spec §15.4, §2.4): the `claude-code` range, or the value that is not one, which
|
|
133
|
+
* is ignored. Absent when the entry has none.
|
|
134
|
+
*/
|
|
135
|
+
readonly engines?: EnginesRead;
|
|
136
|
+
/**
|
|
137
|
+
* The entry's display-field problems, `<field>: <problem>` (spec §15.5.3, J15.15): the entry is
|
|
138
|
+
* listed, but installing it fails (`invalidEntryMessage`). Absent for an entry that installs.
|
|
139
|
+
*/
|
|
140
|
+
readonly invalid?: readonly string[];
|
|
130
141
|
}
|
|
131
142
|
|
|
132
143
|
/** A marketplace source (`MarketplaceSourceKind`); the `path` of git sources defaults to `.claude-plugin/marketplace.json`. */
|
|
@@ -7,15 +7,15 @@ import { readMcpbOptions } from './mcpb-manifest.ts';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* MCP bundles (plugins/manifest-reference.md, "mcpServers"; plugins/components.md, "Include a
|
|
10
|
-
* packaged MCPB server"). The host opens a bundle (extracts or downloads it into
|
|
11
|
-
* under the
|
|
10
|
+
* packaged MCPB server"; spec §2.9). The host opens a bundle (extracts or downloads it into `mcpb/`
|
|
11
|
+
* under the plugins root, not the plugin's folder, and reads its manifest into a server config); the kit decides what a manifest
|
|
12
12
|
* value is, that it ends in `.mcpb` or `.dxt`, which server name results and what the bundle's
|
|
13
13
|
* settings are. Whether the server may start and what its `${user_config.KEY}` references stand for
|
|
14
14
|
* are decided when it is resolved, from the session's saved values (`loading/resolve/bundle-scope.ts`).
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
/** Where the host
|
|
18
|
-
const
|
|
17
|
+
/** Where the host extracts a bundle: `mcpb/`, relative to the plugins root (spec §2.9, §16.6; 2.1.324). */
|
|
18
|
+
const MCPB_DIR = 'mcpb';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* What a source needs to load: the plugin's files and what decides whether a path leaves them
|
|
@@ -73,7 +73,7 @@ export async function loadBundle(
|
|
|
73
73
|
const missing = warning(FIELD, `MCP bundle ${value} needs an extractor: the host gave none`);
|
|
74
74
|
return nothing(missing);
|
|
75
75
|
}
|
|
76
|
-
const opened = await context.bundles.open(source,
|
|
76
|
+
const opened = await context.bundles.open(source, MCPB_DIR, context.signal);
|
|
77
77
|
return bundledServer(value, opened);
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -44,10 +44,18 @@ export {
|
|
|
44
44
|
type McpSendCheck,
|
|
45
45
|
type McpToolHints,
|
|
46
46
|
} from './mcp-tool.ts';
|
|
47
|
+
export {
|
|
48
|
+
MCP_TASK_MIN_RESULT_KEEP_MS,
|
|
49
|
+
recommendedMcpTaskTiming,
|
|
50
|
+
type McpTaskTiming,
|
|
51
|
+
type McpTaskTimingInput,
|
|
52
|
+
} from './mcp-task-timing.ts';
|
|
47
53
|
export {
|
|
48
54
|
excludedToolsNotice,
|
|
55
|
+
mcpToolPolicy,
|
|
49
56
|
prepareMcpTool,
|
|
50
57
|
refusedSchemaFallback,
|
|
58
|
+
type McpFlagState,
|
|
51
59
|
type McpListedTool,
|
|
52
60
|
type McpToolDeclaration,
|
|
53
61
|
type McpToolPolicy,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `ttlMs` and `pollIntervalMs` an MCP server SHOULD send in a task answer and every `tasks/get`
|
|
3
|
+
* response (mcp.md, "Choose a time to live and a poll interval"; §8.10): `ttlMs` is how long the
|
|
4
|
+
* server keeps the task from its creation, its longest run time plus the time it keeps the result
|
|
5
|
+
* (at least an hour, so a user who exits and resumes the session still gets it), or `null` for no
|
|
6
|
+
* limit; `pollIntervalMs` is 10000 to 30000 for a job longer than a minute and 2000 for a shorter one.
|
|
7
|
+
* For a plugin author's server or its tests; the client polls as the server says.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** "At least an hour": how long a finished task's result is kept by default. */
|
|
11
|
+
export const MCP_TASK_MIN_RESULT_KEEP_MS = 60 * 60 * 1000;
|
|
12
|
+
|
|
13
|
+
const MINUTE_MS = 60 * 1000;
|
|
14
|
+
const LONG_JOB_POLL = { min: 10_000, max: 30_000 } as const;
|
|
15
|
+
const SHORT_JOB_POLL = { min: 2000, max: 2000 } as const;
|
|
16
|
+
|
|
17
|
+
export interface McpTaskTimingInput {
|
|
18
|
+
/** The longest the job runs, in milliseconds. */
|
|
19
|
+
readonly longestRunMs: number;
|
|
20
|
+
/** How long the result is kept after the job ends; at least an hour is what the docs advise. */
|
|
21
|
+
readonly keepResultMs?: number;
|
|
22
|
+
/** The server keeps tasks with no limit: `ttlMs` is `null`. */
|
|
23
|
+
readonly unlimited?: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface McpTaskTiming {
|
|
27
|
+
readonly ttlMs: number | null;
|
|
28
|
+
/** The interval range to send: one value inside it. */
|
|
29
|
+
readonly pollIntervalMs: { readonly min: number; readonly max: number };
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** What a server SHOULD send for a job: a 30-minute job kept one hour has `ttlMs` 5400000. */
|
|
33
|
+
export function recommendedMcpTaskTiming(input: McpTaskTimingInput): McpTaskTiming {
|
|
34
|
+
const keep = Math.max(
|
|
35
|
+
input.keepResultMs ?? MCP_TASK_MIN_RESULT_KEEP_MS,
|
|
36
|
+
MCP_TASK_MIN_RESULT_KEEP_MS,
|
|
37
|
+
);
|
|
38
|
+
return {
|
|
39
|
+
ttlMs: input.unlimited === true ? null : input.longestRunMs + keep,
|
|
40
|
+
pollIntervalMs: input.longestRunMs > MINUTE_MS ? LONG_JOB_POLL : SHORT_JOB_POLL,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -19,15 +19,31 @@ export type McpListedTool = Pick<Tool, 'name' | 'description'> & {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export interface McpToolPolicy {
|
|
22
|
-
/** The
|
|
22
|
+
/** The root-level combinators are rewritten: not while the flags are pending (`mcpToolPolicy`). */
|
|
23
23
|
readonly rewriteRootCombinators: boolean;
|
|
24
24
|
/**
|
|
25
|
-
* The checks of "Tools with invalid input schemas" exclude the tool: false
|
|
26
|
-
* fetching is
|
|
25
|
+
* The checks of "Tools with invalid input schemas" exclude the tool: false only while feature-flag
|
|
26
|
+
* fetching is on and the flags have not arrived yet (the tool is sent and the log records it).
|
|
27
27
|
*/
|
|
28
28
|
readonly excludeInvalid: boolean;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/** Feature-flag fetching: turned off, on and still waiting for the flags, or on with them arrived. */
|
|
32
|
+
export type McpFlagState = 'off' | 'pending' | 'arrived';
|
|
33
|
+
|
|
34
|
+
const POLICY_BY_FLAGS: { readonly [S in McpFlagState]: McpToolPolicy } = {
|
|
35
|
+
off: { rewriteRootCombinators: true, excludeInvalid: true },
|
|
36
|
+
pending: { rewriteRootCombinators: false, excludeInvalid: false },
|
|
37
|
+
arrived: { rewriteRootCombinators: true, excludeInvalid: true },
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The policy of a session by its feature flags (§8.8, 2.1.328 and later): with fetching off the
|
|
42
|
+
* rewrite runs and the checks apply, as once the flags arrived; only while they are pending (the
|
|
43
|
+
* first session after an install or upgrade) is a combinator tool skipped and an invalid one sent.
|
|
44
|
+
*/
|
|
45
|
+
export const mcpToolPolicy = (flags: McpFlagState): McpToolPolicy => POLICY_BY_FLAGS[flags];
|
|
46
|
+
|
|
31
47
|
export type McpToolPreparation =
|
|
32
48
|
| { readonly sent: true; readonly tool: McpToolDeclaration; readonly log: readonly string[] }
|
|
33
49
|
| { readonly sent: false; readonly reasons: readonly string[]; readonly log: readonly string[] };
|