@localix-ai/agent-plugins 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +386 -0
- package/dist/agents/catalog/builtin.d.ts +9 -3
- package/dist/agents/catalog/builtin.d.ts.map +1 -1
- package/dist/agents/catalog/builtin.js +16 -2
- package/dist/agents/catalog/builtin.js.map +1 -1
- package/dist/agents/catalog/scan.d.ts +4 -1
- package/dist/agents/catalog/scan.d.ts.map +1 -1
- package/dist/agents/catalog/scan.js +1 -0
- package/dist/agents/catalog/scan.js.map +1 -1
- package/dist/agents/index.d.ts +3 -2
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +3 -2
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/launch-model.d.ts +31 -6
- package/dist/agents/launch-model.d.ts.map +1 -1
- package/dist/agents/launch-model.js +43 -22
- package/dist/agents/launch-model.js.map +1 -1
- package/dist/agents/launch.d.ts +18 -4
- package/dist/agents/launch.d.ts.map +1 -1
- package/dist/agents/launch.js +29 -15
- package/dist/agents/launch.js.map +1 -1
- package/dist/agents/model-choice.d.ts +10 -2
- package/dist/agents/model-choice.d.ts.map +1 -1
- package/dist/agents/model-choice.js +10 -4
- package/dist/agents/model-choice.js.map +1 -1
- package/dist/agents/task-list.d.ts +24 -0
- package/dist/agents/task-list.d.ts.map +1 -0
- package/dist/agents/task-list.js +12 -0
- package/dist/agents/task-list.js.map +1 -0
- package/dist/agents/tool-filters.d.ts +11 -2
- package/dist/agents/tool-filters.d.ts.map +1 -1
- package/dist/agents/tool-filters.js +9 -1
- package/dist/agents/tool-filters.js.map +1 -1
- package/dist/agents/tool-resolution.d.ts.map +1 -1
- package/dist/agents/tool-resolution.js +19 -3
- package/dist/agents/tool-resolution.js.map +1 -1
- package/dist/agents/workflow/replay.d.ts +3 -2
- package/dist/agents/workflow/replay.d.ts.map +1 -1
- package/dist/agents/workflow/replay.js +11 -2
- package/dist/agents/workflow/replay.js.map +1 -1
- package/dist/agents/workflow/usage-limit.d.ts +19 -5
- package/dist/agents/workflow/usage-limit.d.ts.map +1 -1
- package/dist/agents/workflow/usage-limit.js +32 -4
- package/dist/agents/workflow/usage-limit.js.map +1 -1
- package/dist/cli/command-table.d.ts +1 -1
- package/dist/cli/command-table.d.ts.map +1 -1
- package/dist/cli/command-table.js +2 -0
- package/dist/cli/command-table.js.map +1 -1
- package/dist/cli/flags/session.d.ts.map +1 -1
- package/dist/cli/flags/session.js +2 -1
- package/dist/cli/flags/session.js.map +1 -1
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +3 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/install-command-outcome.d.ts +31 -0
- package/dist/cli/install-command-outcome.d.ts.map +1 -0
- package/dist/cli/install-command-outcome.js +34 -0
- package/dist/cli/install-command-outcome.js.map +1 -0
- package/dist/cli/install-command-step.d.ts +13 -0
- package/dist/cli/install-command-step.d.ts.map +1 -0
- package/dist/cli/install-command-step.js +52 -0
- package/dist/cli/install-command-step.js.map +1 -0
- package/dist/cli/install-engines.d.ts +27 -0
- package/dist/cli/install-engines.d.ts.map +1 -0
- package/dist/cli/install-engines.js +29 -0
- package/dist/cli/install-engines.js.map +1 -0
- package/dist/cli/install-plan.d.ts +6 -0
- package/dist/cli/install-plan.d.ts.map +1 -1
- package/dist/cli/install-plan.js +31 -61
- package/dist/cli/install-plan.js.map +1 -1
- package/dist/cli/install-refusals.d.ts +5 -0
- package/dist/cli/install-refusals.d.ts.map +1 -1
- package/dist/cli/install-refusals.js +5 -0
- package/dist/cli/install-refusals.js.map +1 -1
- package/dist/cli/install-success.d.ts +17 -0
- package/dist/cli/install-success.d.ts.map +1 -0
- package/dist/cli/install-success.js +13 -0
- package/dist/cli/install-success.js.map +1 -0
- package/dist/cli/marketplace-list.js +1 -1
- package/dist/cli/marketplace-list.js.map +1 -1
- package/dist/cli/marketplace-update.d.ts +3 -1
- package/dist/cli/marketplace-update.d.ts.map +1 -1
- package/dist/cli/marketplace-update.js +5 -0
- package/dist/cli/marketplace-update.js.map +1 -1
- package/dist/cli/restore-set-aside.d.ts +38 -0
- package/dist/cli/restore-set-aside.d.ts.map +1 -0
- package/dist/cli/restore-set-aside.js +25 -0
- package/dist/cli/restore-set-aside.js.map +1 -0
- package/dist/cli/result.d.ts +6 -0
- package/dist/cli/result.d.ts.map +1 -1
- package/dist/cli/result.js +6 -2
- package/dist/cli/result.js.map +1 -1
- package/dist/cli/uninstall-data.d.ts +13 -1
- package/dist/cli/uninstall-data.d.ts.map +1 -1
- package/dist/cli/uninstall-data.js +4 -0
- package/dist/cli/uninstall-data.js.map +1 -1
- package/dist/cli/update-dependencies.d.ts +31 -0
- package/dist/cli/update-dependencies.d.ts.map +1 -0
- package/dist/cli/update-dependencies.js +35 -0
- package/dist/cli/update-dependencies.js.map +1 -0
- package/dist/cli/update-facts.d.ts +12 -0
- package/dist/cli/update-facts.d.ts.map +1 -1
- package/dist/cli/update-plan.d.ts +10 -0
- package/dist/cli/update-plan.d.ts.map +1 -1
- package/dist/cli/update-plan.js +34 -6
- package/dist/cli/update-plan.js.map +1 -1
- package/dist/cli/validate-lists.d.ts +66 -0
- package/dist/cli/validate-lists.d.ts.map +1 -0
- package/dist/cli/validate-lists.js +107 -0
- package/dist/cli/validate-lists.js.map +1 -0
- package/dist/cli/validate-run.d.ts +13 -8
- package/dist/cli/validate-run.d.ts.map +1 -1
- package/dist/cli/validate-run.js +3 -0
- package/dist/cli/validate-run.js.map +1 -1
- package/dist/entry/mods.d.ts +1 -1
- package/dist/entry/mods.d.ts.map +1 -1
- package/dist/entry/mods.js +1 -1
- package/dist/entry/mods.js.map +1 -1
- package/dist/format/add-dir-gate.d.ts +27 -0
- package/dist/format/add-dir-gate.d.ts.map +1 -0
- package/dist/format/add-dir-gate.js +16 -0
- package/dist/format/add-dir-gate.js.map +1 -0
- package/dist/format/agent-scalars.d.ts +5 -8
- package/dist/format/agent-scalars.d.ts.map +1 -1
- package/dist/format/agent-scalars.js +7 -8
- package/dist/format/agent-scalars.js.map +1 -1
- package/dist/format/engines.d.ts +63 -0
- package/dist/format/engines.d.ts.map +1 -0
- package/dist/format/engines.js +78 -0
- package/dist/format/engines.js.map +1 -0
- package/dist/format/hooks-handlers.d.ts.map +1 -1
- package/dist/format/hooks-handlers.js +2 -0
- package/dist/format/hooks-handlers.js.map +1 -1
- package/dist/format/host-errors.d.ts.map +1 -1
- package/dist/format/host-errors.js +1 -1
- package/dist/format/host-errors.js.map +1 -1
- package/dist/format/index.d.ts +4 -1
- package/dist/format/index.d.ts.map +1 -1
- package/dist/format/index.js +4 -1
- package/dist/format/index.js.map +1 -1
- package/dist/format/locate.d.ts +1 -1
- package/dist/format/locate.js +1 -1
- package/dist/format/manifest-schema.d.ts +4 -0
- package/dist/format/manifest-schema.d.ts.map +1 -1
- package/dist/format/manifest-schema.js +3 -0
- package/dist/format/manifest-schema.js.map +1 -1
- package/dist/format/manifest.d.ts +3 -0
- package/dist/format/manifest.d.ts.map +1 -1
- package/dist/format/manifest.js +84 -12
- package/dist/format/manifest.js.map +1 -1
- package/dist/format/marketplace/entries.d.ts.map +1 -1
- package/dist/format/marketplace/entries.js +13 -5
- package/dist/format/marketplace/entries.js.map +1 -1
- package/dist/format/marketplace/entry-display.d.ts +22 -0
- package/dist/format/marketplace/entry-display.d.ts.map +1 -0
- package/dist/format/marketplace/entry-display.js +60 -0
- package/dist/format/marketplace/entry-display.js.map +1 -0
- package/dist/format/marketplace/entry-schema.d.ts +1 -1
- package/dist/format/marketplace/entry-schema.d.ts.map +1 -1
- package/dist/format/marketplace/entry-schema.js +4 -1
- package/dist/format/marketplace/entry-schema.js.map +1 -1
- package/dist/format/marketplace/index.d.ts +2 -1
- package/dist/format/marketplace/index.d.ts.map +1 -1
- package/dist/format/marketplace/index.js +2 -1
- package/dist/format/marketplace/index.js.map +1 -1
- package/dist/format/marketplace/marketplace-name-lists.d.ts +0 -2
- package/dist/format/marketplace/marketplace-name-lists.d.ts.map +1 -1
- package/dist/format/marketplace/marketplace-name-lists.js +0 -9
- package/dist/format/marketplace/marketplace-name-lists.js.map +1 -1
- package/dist/format/marketplace/marketplace-names.d.ts +2 -0
- package/dist/format/marketplace/marketplace-names.d.ts.map +1 -1
- package/dist/format/marketplace/marketplace-names.js +14 -16
- package/dist/format/marketplace/marketplace-names.js.map +1 -1
- package/dist/format/marketplace/plugin-source.d.ts.map +1 -1
- package/dist/format/marketplace/plugin-source.js +9 -4
- package/dist/format/marketplace/plugin-source.js.map +1 -1
- package/dist/format/marketplace/settings-source-plugins.d.ts.map +1 -1
- package/dist/format/marketplace/settings-source-plugins.js +3 -2
- package/dist/format/marketplace/settings-source-plugins.js.map +1 -1
- package/dist/format/marketplace/types.d.ts +11 -0
- package/dist/format/marketplace/types.d.ts.map +1 -1
- package/dist/format/marketplace/types.js.map +1 -1
- package/dist/format/mcp-bundles.js +5 -5
- package/dist/format/mcp-bundles.js.map +1 -1
- package/dist/format/mcp-contract.d.ts +2 -1
- package/dist/format/mcp-contract.d.ts.map +1 -1
- package/dist/format/mcp-contract.js +2 -1
- package/dist/format/mcp-contract.js.map +1 -1
- package/dist/format/mcp-task-timing.d.ts +29 -0
- package/dist/format/mcp-task-timing.d.ts.map +1 -0
- package/dist/format/mcp-task-timing.js +22 -0
- package/dist/format/mcp-task-timing.js.map +1 -0
- package/dist/format/mcp-tool-schema.d.ts +11 -3
- package/dist/format/mcp-tool-schema.d.ts.map +1 -1
- package/dist/format/mcp-tool-schema.js +11 -0
- package/dist/format/mcp-tool-schema.js.map +1 -1
- package/dist/format/network.d.ts +6 -0
- package/dist/format/network.d.ts.map +1 -0
- package/dist/format/network.js +37 -0
- package/dist/format/network.js.map +1 -0
- package/dist/format/plugin-notes.d.ts +15 -0
- package/dist/format/plugin-notes.d.ts.map +1 -0
- package/dist/format/plugin-notes.js +13 -0
- package/dist/format/plugin-notes.js.map +1 -0
- package/dist/format/plugin-settings.d.ts +15 -9
- package/dist/format/plugin-settings.d.ts.map +1 -1
- package/dist/format/plugin-settings.js +11 -8
- package/dist/format/plugin-settings.js.map +1 -1
- package/dist/format/server-paths.d.ts +7 -0
- package/dist/format/server-paths.d.ts.map +1 -0
- package/dist/format/server-paths.js +43 -0
- package/dist/format/server-paths.js.map +1 -0
- package/dist/format/validate/plugin-fields.d.ts +5 -0
- package/dist/format/validate/plugin-fields.d.ts.map +1 -1
- package/dist/format/validate/plugin-fields.js +15 -0
- package/dist/format/validate/plugin-fields.js.map +1 -1
- package/dist/format/validate/plugin-manifest.d.ts.map +1 -1
- package/dist/format/validate/plugin-manifest.js +4 -1
- package/dist/format/validate/plugin-manifest.js.map +1 -1
- package/dist/format/validate/settings-deprecation.d.ts +4 -0
- package/dist/format/validate/settings-deprecation.d.ts.map +1 -0
- package/dist/format/validate/settings-deprecation.js +25 -0
- package/dist/format/validate/settings-deprecation.js.map +1 -0
- package/dist/format/validate/unknown-fields.d.ts.map +1 -1
- package/dist/format/validate/unknown-fields.js +1 -9
- package/dist/format/validate/unknown-fields.js.map +1 -1
- package/dist/foundation/scope-folders.d.ts +3 -1
- package/dist/foundation/scope-folders.d.ts.map +1 -1
- package/dist/foundation/scope-folders.js +3 -1
- package/dist/foundation/scope-folders.js.map +1 -1
- package/dist/hooks/assemble.d.ts.map +1 -1
- package/dist/hooks/assemble.js +8 -1
- package/dist/hooks/assemble.js.map +1 -1
- package/dist/hooks/core/profiles.d.ts +1 -1
- package/dist/hooks/dispatch.d.ts.map +1 -1
- package/dist/hooks/dispatch.js +29 -4
- package/dist/hooks/dispatch.js.map +1 -1
- package/dist/hooks/handlers/context.d.ts +4 -1
- package/dist/hooks/handlers/context.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/http-policy.d.ts +15 -6
- package/dist/hooks/handlers/remote/http-policy.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/http-policy.js +2 -0
- package/dist/hooks/handlers/remote/http-policy.js.map +1 -1
- package/dist/hooks/handlers/remote/http.js +2 -2
- package/dist/hooks/handlers/remote/http.js.map +1 -1
- package/dist/hooks/handlers/remote/mcp-tool.d.ts.map +1 -1
- package/dist/hooks/handlers/remote/mcp-tool.js +20 -1
- package/dist/hooks/handlers/remote/mcp-tool.js.map +1 -1
- package/dist/hooks/handlers/remote/types.d.ts +8 -0
- package/dist/hooks/handlers/remote/types.d.ts.map +1 -1
- package/dist/hooks/input/facts-agents.d.ts +2 -2
- package/dist/hooks/input/facts-agents.d.ts.map +1 -1
- package/dist/hooks/input/facts-agents.js +11 -3
- package/dist/hooks/input/facts-agents.js.map +1 -1
- package/dist/hooks/input/facts.d.ts +2 -2
- package/dist/hooks/outcome.d.ts +31 -0
- package/dist/hooks/outcome.d.ts.map +1 -1
- package/dist/hooks/output/caps.d.ts.map +1 -1
- package/dist/hooks/output/caps.js +4 -3
- package/dist/hooks/output/caps.js.map +1 -1
- package/dist/hooks/output/cowork-answers.d.ts +15 -0
- package/dist/hooks/output/cowork-answers.d.ts.map +1 -0
- package/dist/hooks/output/cowork-answers.js +19 -0
- package/dist/hooks/output/cowork-answers.js.map +1 -0
- package/dist/hooks/output/merge-simple.d.ts.map +1 -1
- package/dist/hooks/output/merge-simple.js +5 -2
- package/dist/hooks/output/merge-simple.js.map +1 -1
- package/dist/hooks/output/merge.d.ts.map +1 -1
- package/dist/hooks/output/merge.js +1 -1
- package/dist/hooks/output/merge.js.map +1 -1
- package/dist/hooks/output/tool-output.d.ts +2 -9
- package/dist/hooks/output/tool-output.d.ts.map +1 -1
- package/dist/hooks/output/tool-output.js +42 -1
- package/dist/hooks/output/tool-output.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-1.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-1.js +3 -0
- package/dist/hooks/output/tool-shapes/shapes-1.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-3.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-3.js +1 -0
- package/dist/hooks/output/tool-shapes/shapes-3.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-4.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-4.js +12 -1
- package/dist/hooks/output/tool-shapes/shapes-4.js.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-5.d.ts.map +1 -1
- package/dist/hooks/output/tool-shapes/shapes-5.js +9 -1
- package/dist/hooks/output/tool-shapes/shapes-5.js.map +1 -1
- package/dist/hooks/run-all.d.ts.map +1 -1
- package/dist/hooks/run-all.js +1 -0
- package/dist/hooks/run-all.js.map +1 -1
- package/dist/hooks/select/event-catalog.d.ts.map +1 -1
- package/dist/hooks/select/event-catalog.js +4 -1
- package/dist/hooks/select/event-catalog.js.map +1 -1
- package/dist/hooks/select/matcher-values.d.ts +2 -2
- package/dist/hooks/select/matcher-values.d.ts.map +1 -1
- package/dist/hooks/select/matcher-values.js +0 -1
- package/dist/hooks/select/matcher-values.js.map +1 -1
- package/dist/hooks/verdict/exit2.d.ts +5 -0
- package/dist/hooks/verdict/exit2.d.ts.map +1 -1
- package/dist/hooks/verdict/exit2.js +1 -1
- package/dist/hooks/verdict/exit2.js.map +1 -1
- package/dist/hooks/verdict/interpret.d.ts +2 -0
- package/dist/hooks/verdict/interpret.d.ts.map +1 -1
- package/dist/hooks/verdict/interpret.js +5 -5
- package/dist/hooks/verdict/interpret.js.map +1 -1
- package/dist/hooks/verdict/mcp-answer.d.ts +5 -0
- package/dist/hooks/verdict/mcp-answer.d.ts.map +1 -0
- package/dist/hooks/verdict/mcp-answer.js +57 -0
- package/dist/hooks/verdict/mcp-answer.js.map +1 -0
- package/dist/hooks/verdict/model-verdict.d.ts.map +1 -1
- package/dist/hooks/verdict/model-verdict.js +1 -1
- package/dist/hooks/verdict/model-verdict.js.map +1 -1
- package/dist/hooks/verdict/on-failure.d.ts +12 -2
- package/dist/hooks/verdict/on-failure.d.ts.map +1 -1
- package/dist/hooks/verdict/on-failure.js +43 -7
- package/dist/hooks/verdict/on-failure.js.map +1 -1
- package/dist/hooks/verdict/subject.d.ts +2 -0
- package/dist/hooks/verdict/subject.d.ts.map +1 -1
- package/dist/hooks/verdict/suspect-capture.d.ts.map +1 -1
- package/dist/hooks/verdict/suspect-capture.js +6 -1
- package/dist/hooks/verdict/suspect-capture.js.map +1 -1
- package/dist/host/session-agents.d.ts +5 -11
- package/dist/host/session-agents.d.ts.map +1 -1
- package/dist/host/session-agents.js +9 -13
- package/dist/host/session-agents.js.map +1 -1
- package/dist/host/session-bare-repository.d.ts +13 -0
- package/dist/host/session-bare-repository.d.ts.map +1 -0
- package/dist/host/session-bare-repository.js +32 -0
- package/dist/host/session-bare-repository.js.map +1 -0
- package/dist/host/session-engine.d.ts.map +1 -1
- package/dist/host/session-engine.js +2 -1
- package/dist/host/session-engine.js.map +1 -1
- package/dist/host/session-hooks.d.ts.map +1 -1
- package/dist/host/session-hooks.js +15 -1
- package/dist/host/session-hooks.js.map +1 -1
- package/dist/host/session-registry.d.ts +7 -0
- package/dist/host/session-registry.d.ts.map +1 -1
- package/dist/host/session-registry.js +12 -0
- package/dist/host/session-registry.js.map +1 -1
- package/dist/host/session-skill-expand.d.ts +5 -0
- package/dist/host/session-skill-expand.d.ts.map +1 -1
- package/dist/host/session-skill-expand.js +5 -20
- package/dist/host/session-skill-expand.js.map +1 -1
- package/dist/host/session-skill-permission.d.ts +9 -0
- package/dist/host/session-skill-permission.d.ts.map +1 -0
- package/dist/host/session-skill-permission.js +21 -0
- package/dist/host/session-skill-permission.js.map +1 -0
- package/dist/host/session-skills.d.ts.map +1 -1
- package/dist/host/session-skills.js +20 -13
- package/dist/host/session-skills.js.map +1 -1
- package/dist/host/session-types.d.ts +7 -0
- package/dist/host/session-types.d.ts.map +1 -1
- package/dist/host/session.d.ts.map +1 -1
- package/dist/host/session.js +0 -1
- package/dist/host/session.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/loading/load-notes.d.ts +21 -0
- package/dist/loading/load-notes.d.ts.map +1 -0
- package/dist/loading/load-notes.js +34 -0
- package/dist/loading/load-notes.js.map +1 -0
- package/dist/loading/load-plugin.d.ts +12 -0
- package/dist/loading/load-plugin.d.ts.map +1 -1
- package/dist/loading/load-plugin.js +20 -3
- package/dist/loading/load-plugin.js.map +1 -1
- package/dist/loading/manifest-gate.d.ts +1 -1
- package/dist/loading/plugin-folder.d.ts +2 -1
- package/dist/loading/plugin-folder.d.ts.map +1 -1
- package/dist/loading/plugin-folder.js +4 -1
- package/dist/loading/plugin-folder.js.map +1 -1
- package/dist/loading/plugin-model.d.ts +8 -0
- package/dist/loading/plugin-model.d.ts.map +1 -1
- package/dist/loading/validate/marketplace-target.d.ts.map +1 -1
- package/dist/loading/validate/marketplace-target.js +22 -4
- package/dist/loading/validate/marketplace-target.js.map +1 -1
- package/dist/loading/validate/plugin-contents.d.ts.map +1 -1
- package/dist/loading/validate/plugin-contents.js +8 -0
- package/dist/loading/validate/plugin-contents.js.map +1 -1
- package/dist/loading/walk.js +3 -3
- package/dist/loading/walk.js.map +1 -1
- package/dist/marketplace/dependency-graph.d.ts +5 -0
- package/dist/marketplace/dependency-graph.d.ts.map +1 -1
- package/dist/marketplace/dependency-graph.js.map +1 -1
- package/dist/marketplace/dependency-install-plan.d.ts +6 -5
- package/dist/marketplace/dependency-install-plan.d.ts.map +1 -1
- package/dist/marketplace/dependency-install-plan.js +6 -4
- package/dist/marketplace/dependency-install-plan.js.map +1 -1
- package/dist/marketplace/enablement-notes.d.ts +22 -7
- package/dist/marketplace/enablement-notes.d.ts.map +1 -1
- package/dist/marketplace/enablement-notes.js +36 -13
- package/dist/marketplace/enablement-notes.js.map +1 -1
- package/dist/marketplace/headless-report.d.ts +12 -0
- package/dist/marketplace/headless-report.d.ts.map +1 -1
- package/dist/marketplace/headless-report.js +11 -1
- package/dist/marketplace/headless-report.js.map +1 -1
- package/dist/marketplace/index.d.ts +1 -1
- package/dist/marketplace/index.d.ts.map +1 -1
- package/dist/marketplace/index.js +1 -1
- package/dist/marketplace/index.js.map +1 -1
- package/dist/marketplace/install-commands.d.ts +5 -0
- package/dist/marketplace/install-commands.d.ts.map +1 -1
- package/dist/marketplace/install-commands.js +6 -3
- package/dist/marketplace/install-commands.js.map +1 -1
- package/dist/marketplace/install-errors.d.ts +5 -4
- package/dist/marketplace/install-errors.d.ts.map +1 -1
- package/dist/marketplace/install-errors.js +8 -7
- package/dist/marketplace/install-errors.js.map +1 -1
- package/dist/marketplace/install-lifecycle-index.d.ts +4 -2
- package/dist/marketplace/install-lifecycle-index.d.ts.map +1 -1
- package/dist/marketplace/install-lifecycle-index.js +2 -0
- package/dist/marketplace/install-lifecycle-index.js.map +1 -1
- package/dist/marketplace/install-plan.d.ts +2 -0
- package/dist/marketplace/install-plan.d.ts.map +1 -1
- package/dist/marketplace/install-plan.js +5 -0
- package/dist/marketplace/install-plan.js.map +1 -1
- package/dist/marketplace/install-plans.d.ts +3 -3
- package/dist/marketplace/install-plans.d.ts.map +1 -1
- package/dist/marketplace/install-plans.js +3 -4
- package/dist/marketplace/install-plans.js.map +1 -1
- package/dist/marketplace/managed-take-back.d.ts +25 -0
- package/dist/marketplace/managed-take-back.d.ts.map +1 -0
- package/dist/marketplace/managed-take-back.js +24 -0
- package/dist/marketplace/managed-take-back.js.map +1 -0
- package/dist/marketplace/marketplace-fetch-plan.d.ts.map +1 -1
- package/dist/marketplace/marketplace-fetch-plan.js +2 -0
- package/dist/marketplace/marketplace-fetch-plan.js.map +1 -1
- package/dist/marketplace/reload-summary.d.ts +5 -0
- package/dist/marketplace/reload-summary.d.ts.map +1 -1
- package/dist/marketplace/reload-summary.js +8 -3
- package/dist/marketplace/reload-summary.js.map +1 -1
- package/dist/marketplace/removal.d.ts +4 -4
- package/dist/marketplace/removal.d.ts.map +1 -1
- package/dist/marketplace/removal.js +3 -3
- package/dist/marketplace/removal.js.map +1 -1
- package/dist/marketplace/seed-registry.d.ts +7 -5
- package/dist/marketplace/seed-registry.d.ts.map +1 -1
- package/dist/marketplace/seed-registry.js +7 -5
- package/dist/marketplace/seed-registry.js.map +1 -1
- package/dist/marketplace/store-layout.d.ts +9 -3
- package/dist/marketplace/store-layout.d.ts.map +1 -1
- package/dist/marketplace/store-layout.js +9 -4
- package/dist/marketplace/store-layout.js.map +1 -1
- package/dist/marketplace/types.d.ts +5 -0
- package/dist/marketplace/types.d.ts.map +1 -1
- package/dist/mods/api/agent.d.ts.map +1 -1
- package/dist/mods/api/agent.js +28 -0
- package/dist/mods/api/agent.js.map +1 -1
- package/dist/mods/api/audio.d.ts.map +1 -1
- package/dist/mods/api/audio.js +19 -5
- package/dist/mods/api/audio.js.map +1 -1
- package/dist/mods/api/build.d.ts +1 -1
- package/dist/mods/api/build.d.ts.map +1 -1
- package/dist/mods/api/build.js +6 -2
- package/dist/mods/api/build.js.map +1 -1
- package/dist/mods/api/call.d.ts.map +1 -1
- package/dist/mods/api/call.js +7 -0
- package/dist/mods/api/call.js.map +1 -1
- package/dist/mods/api/command.d.ts +11 -0
- package/dist/mods/api/command.d.ts.map +1 -1
- package/dist/mods/api/command.js +19 -1
- package/dist/mods/api/command.js.map +1 -1
- package/dist/mods/api/declared-port-types.d.ts +116 -0
- package/dist/mods/api/declared-port-types.d.ts.map +1 -0
- package/dist/mods/api/declared-port-types.js +31 -0
- package/dist/mods/api/declared-port-types.js.map +1 -0
- package/dist/mods/api/engine-create.d.ts +2 -0
- package/dist/mods/api/engine-create.d.ts.map +1 -1
- package/dist/mods/api/engine-create.js +6 -0
- package/dist/mods/api/engine-create.js.map +1 -1
- package/dist/mods/api/exec.d.ts.map +1 -1
- package/dist/mods/api/exec.js +3 -0
- package/dist/mods/api/exec.js.map +1 -1
- package/dist/mods/api/fs-ports.d.ts +8 -2
- package/dist/mods/api/fs-ports.d.ts.map +1 -1
- package/dist/mods/api/fs.d.ts.map +1 -1
- package/dist/mods/api/fs.js +26 -7
- package/dist/mods/api/fs.js.map +1 -1
- package/dist/mods/api/gate.d.ts +3 -3
- package/dist/mods/api/gate.d.ts.map +1 -1
- package/dist/mods/api/gate.js +3 -3
- package/dist/mods/api/gate.js.map +1 -1
- package/dist/mods/api/host-ports.d.ts +2 -1
- package/dist/mods/api/host-ports.d.ts.map +1 -1
- package/dist/mods/api/host-ports.js +15 -0
- package/dist/mods/api/host-ports.js.map +1 -1
- package/dist/mods/api/index.d.ts +4 -3
- package/dist/mods/api/index.d.ts.map +1 -1
- package/dist/mods/api/index.js +3 -2
- package/dist/mods/api/index.js.map +1 -1
- package/dist/mods/api/mcp.d.ts.map +1 -1
- package/dist/mods/api/mcp.js +6 -1
- package/dist/mods/api/mcp.js.map +1 -1
- package/dist/mods/api/optional-port-types.d.ts +52 -18
- package/dist/mods/api/optional-port-types.d.ts.map +1 -1
- package/dist/mods/api/ports.d.ts +5 -42
- package/dist/mods/api/ports.d.ts.map +1 -1
- package/dist/mods/api/ports.js.map +1 -1
- package/dist/mods/api/registries.d.ts +9 -10
- package/dist/mods/api/registries.d.ts.map +1 -1
- package/dist/mods/api/registries.js +8 -8
- package/dist/mods/api/registries.js.map +1 -1
- package/dist/mods/api/session-ports.d.ts +54 -0
- package/dist/mods/api/session-ports.d.ts.map +1 -0
- package/dist/mods/api/session-ports.js +2 -0
- package/dist/mods/api/session-ports.js.map +1 -0
- package/dist/mods/api/session.d.ts.map +1 -1
- package/dist/mods/api/session.js +28 -2
- package/dist/mods/api/session.js.map +1 -1
- package/dist/mods/api/theme.d.ts +11 -4
- package/dist/mods/api/theme.d.ts.map +1 -1
- package/dist/mods/api/theme.js +116 -30
- package/dist/mods/api/theme.js.map +1 -1
- package/dist/mods/api/vcs.d.ts +4 -0
- package/dist/mods/api/vcs.d.ts.map +1 -0
- package/dist/mods/api/vcs.js +60 -0
- package/dist/mods/api/vcs.js.map +1 -0
- package/dist/mods/api/wasm.d.ts +4 -0
- package/dist/mods/api/wasm.d.ts.map +1 -0
- package/dist/mods/api/wasm.js +69 -0
- package/dist/mods/api/wasm.js.map +1 -0
- package/dist/mods/chain/api-guard.d.ts +10 -1
- package/dist/mods/chain/api-guard.d.ts.map +1 -1
- package/dist/mods/chain/api-guard.js +23 -7
- package/dist/mods/chain/api-guard.js.map +1 -1
- package/dist/mods/chain/context.d.ts +6 -0
- package/dist/mods/chain/context.d.ts.map +1 -1
- package/dist/mods/chain/context.js +6 -0
- package/dist/mods/chain/context.js.map +1 -1
- package/dist/mods/chain/default-matcher.d.ts +11 -0
- package/dist/mods/chain/default-matcher.d.ts.map +1 -0
- package/dist/mods/chain/default-matcher.js +61 -0
- package/dist/mods/chain/default-matcher.js.map +1 -0
- package/dist/mods/chain/dispatch.d.ts.map +1 -1
- package/dist/mods/chain/dispatch.js +19 -1
- package/dist/mods/chain/dispatch.js.map +1 -1
- package/dist/mods/chain/failure.d.ts +2 -0
- package/dist/mods/chain/failure.d.ts.map +1 -1
- package/dist/mods/chain/failure.js +6 -0
- package/dist/mods/chain/failure.js.map +1 -1
- package/dist/mods/chain/guarded.d.ts +2 -0
- package/dist/mods/chain/guarded.d.ts.map +1 -1
- package/dist/mods/chain/guarded.js +6 -2
- package/dist/mods/chain/guarded.js.map +1 -1
- package/dist/mods/chain/invoke.d.ts.map +1 -1
- package/dist/mods/chain/invoke.js +25 -5
- package/dist/mods/chain/invoke.js.map +1 -1
- package/dist/mods/chain/validate.d.ts.map +1 -1
- package/dist/mods/chain/validate.js +2 -1
- package/dist/mods/chain/validate.js.map +1 -1
- package/dist/mods/events/agent.d.ts.map +1 -1
- package/dist/mods/events/agent.js +7 -3
- package/dist/mods/events/agent.js.map +1 -1
- package/dist/mods/events/declared.d.ts +12 -0
- package/dist/mods/events/declared.d.ts.map +1 -0
- package/dist/mods/events/declared.js +43 -0
- package/dist/mods/events/declared.js.map +1 -0
- package/dist/mods/events/index.d.ts +6 -0
- package/dist/mods/events/index.d.ts.map +1 -1
- package/dist/mods/events/index.js +4 -1
- package/dist/mods/events/index.js.map +1 -1
- package/dist/mods/events/pinned.d.ts +7 -0
- package/dist/mods/events/pinned.d.ts.map +1 -0
- package/dist/mods/events/pinned.js +21 -0
- package/dist/mods/events/pinned.js.map +1 -0
- package/dist/mods/events/session.d.ts.map +1 -1
- package/dist/mods/events/session.js +17 -4
- package/dist/mods/events/session.js.map +1 -1
- package/dist/mods/events/spec.d.ts +2 -0
- package/dist/mods/events/spec.d.ts.map +1 -1
- package/dist/mods/events/spec.js.map +1 -1
- package/dist/mods/events/tool.d.ts +2 -2
- package/dist/mods/events/tool.d.ts.map +1 -1
- package/dist/mods/events/tool.js +50 -10
- package/dist/mods/events/tool.js.map +1 -1
- package/dist/mods/events/turn.d.ts.map +1 -1
- package/dist/mods/events/turn.js +12 -1
- package/dist/mods/events/turn.js.map +1 -1
- package/dist/mods/load/auto-mode-approval.d.ts +6 -9
- package/dist/mods/load/auto-mode-approval.d.ts.map +1 -1
- package/dist/mods/load/auto-mode-approval.js +1 -1
- package/dist/mods/load/auto-mode-approval.js.map +1 -1
- package/dist/mods/load/commands/module-facts.d.ts +22 -0
- package/dist/mods/load/commands/module-facts.d.ts.map +1 -0
- package/dist/mods/load/commands/module-facts.js +18 -0
- package/dist/mods/load/commands/module-facts.js.map +1 -0
- package/dist/mods/load/commands/scan-lead.d.ts +2 -0
- package/dist/mods/load/commands/scan-lead.d.ts.map +1 -1
- package/dist/mods/load/commands/scan-lead.js +5 -2
- package/dist/mods/load/commands/scan-lead.js.map +1 -1
- package/dist/mods/load/commands/scan-lines.d.ts.map +1 -1
- package/dist/mods/load/commands/scan-lines.js +32 -1
- package/dist/mods/load/commands/scan-lines.js.map +1 -1
- package/dist/mods/load/commands/sha256.d.ts +7 -0
- package/dist/mods/load/commands/sha256.d.ts.map +1 -0
- package/dist/mods/load/commands/sha256.js +75 -0
- package/dist/mods/load/commands/sha256.js.map +1 -0
- package/dist/mods/load/commands/validate-report.d.ts +9 -0
- package/dist/mods/load/commands/validate-report.d.ts.map +1 -1
- package/dist/mods/load/commands/validate.d.ts.map +1 -1
- package/dist/mods/load/commands/validate.js +23 -16
- package/dist/mods/load/commands/validate.js.map +1 -1
- package/dist/mods/load/commands/wasm-read.d.ts +21 -0
- package/dist/mods/load/commands/wasm-read.d.ts.map +1 -0
- package/dist/mods/load/commands/wasm-read.js +169 -0
- package/dist/mods/load/commands/wasm-read.js.map +1 -0
- package/dist/mods/load/guard-protection.d.ts +7 -0
- package/dist/mods/load/guard-protection.d.ts.map +1 -1
- package/dist/mods/load/guard-protection.js +8 -3
- package/dist/mods/load/guard-protection.js.map +1 -1
- package/dist/mods/load/guard-surfaces.d.ts.map +1 -1
- package/dist/mods/load/guard-surfaces.js +2 -0
- package/dist/mods/load/guard-surfaces.js.map +1 -1
- package/dist/mods/load/guard-tools.d.ts +25 -0
- package/dist/mods/load/guard-tools.d.ts.map +1 -0
- package/dist/mods/load/guard-tools.js +29 -0
- package/dist/mods/load/guard-tools.js.map +1 -0
- package/dist/mods/load/guard.d.ts +3 -0
- package/dist/mods/load/guard.d.ts.map +1 -1
- package/dist/mods/load/guard.js +19 -8
- package/dist/mods/load/guard.js.map +1 -1
- package/dist/mods/load/host-support.d.ts +16 -3
- package/dist/mods/load/host-support.d.ts.map +1 -1
- package/dist/mods/load/host-support.js +28 -7
- package/dist/mods/load/host-support.js.map +1 -1
- package/dist/mods/load/host.d.ts +15 -2
- package/dist/mods/load/host.d.ts.map +1 -1
- package/dist/mods/load/host.js +4 -3
- package/dist/mods/load/host.js.map +1 -1
- package/dist/mods/load/in-turn.d.ts +6 -0
- package/dist/mods/load/in-turn.d.ts.map +1 -0
- package/dist/mods/load/in-turn.js +13 -0
- package/dist/mods/load/in-turn.js.map +1 -0
- package/dist/mods/load/index.d.ts +6 -3
- package/dist/mods/load/index.d.ts.map +1 -1
- package/dist/mods/load/index.js +4 -3
- package/dist/mods/load/index.js.map +1 -1
- package/dist/mods/load/loader.d.ts +13 -2
- package/dist/mods/load/loader.d.ts.map +1 -1
- package/dist/mods/load/loader.js +14 -10
- package/dist/mods/load/loader.js.map +1 -1
- package/dist/mods/load/mod-set.d.ts +3 -0
- package/dist/mods/load/mod-set.d.ts.map +1 -1
- package/dist/mods/load/mod-set.js +6 -15
- package/dist/mods/load/mod-set.js.map +1 -1
- package/dist/mods/load/order.js +2 -2
- package/dist/mods/load/order.js.map +1 -1
- package/dist/mods/load/plugin-dirs.d.ts +14 -4
- package/dist/mods/load/plugin-dirs.d.ts.map +1 -1
- package/dist/mods/load/plugin-dirs.js +14 -9
- package/dist/mods/load/plugin-dirs.js.map +1 -1
- package/dist/mods/load/policy.d.ts +12 -8
- package/dist/mods/load/policy.d.ts.map +1 -1
- package/dist/mods/load/policy.js +47 -19
- package/dist/mods/load/policy.js.map +1 -1
- package/dist/mods/load/prepare.d.ts +4 -0
- package/dist/mods/load/prepare.d.ts.map +1 -1
- package/dist/mods/load/prepare.js +21 -3
- package/dist/mods/load/prepare.js.map +1 -1
- package/dist/mods/load/provides.d.ts +25 -0
- package/dist/mods/load/provides.d.ts.map +1 -0
- package/dist/mods/load/provides.js +128 -0
- package/dist/mods/load/provides.js.map +1 -0
- package/dist/mods/load/register-ask.d.ts +32 -0
- package/dist/mods/load/register-ask.d.ts.map +1 -0
- package/dist/mods/load/register-ask.js +45 -0
- package/dist/mods/load/register-ask.js.map +1 -0
- package/dist/mods/load/register-call.d.ts +23 -13
- package/dist/mods/load/register-call.d.ts.map +1 -1
- package/dist/mods/load/register-call.js +69 -23
- package/dist/mods/load/register-call.js.map +1 -1
- package/dist/mods/load/register-event.d.ts +70 -0
- package/dist/mods/load/register-event.d.ts.map +1 -0
- package/dist/mods/load/register-event.js +35 -0
- package/dist/mods/load/register-event.js.map +1 -0
- package/dist/mods/load/scan/client-modules.d.ts +2 -0
- package/dist/mods/load/scan/client-modules.d.ts.map +1 -1
- package/dist/mods/load/scan/client-modules.js +1 -1
- package/dist/mods/load/scan/client-modules.js.map +1 -1
- package/dist/mods/load/scan/event-names.d.ts.map +1 -1
- package/dist/mods/load/scan/event-names.js +2 -0
- package/dist/mods/load/scan/event-names.js.map +1 -1
- package/dist/mods/load/scan/found.d.ts +5 -0
- package/dist/mods/load/scan/found.d.ts.map +1 -1
- package/dist/mods/load/scan/found.js +3 -0
- package/dist/mods/load/scan/found.js.map +1 -1
- package/dist/mods/load/scan/hosts.d.ts +5 -0
- package/dist/mods/load/scan/hosts.d.ts.map +1 -0
- package/dist/mods/load/scan/hosts.js +44 -0
- package/dist/mods/load/scan/hosts.js.map +1 -0
- package/dist/mods/load/scan/index.d.ts +1 -0
- package/dist/mods/load/scan/index.d.ts.map +1 -1
- package/dist/mods/load/scan/index.js +7 -0
- package/dist/mods/load/scan/index.js.map +1 -1
- package/dist/mods/load/scan/rules.d.ts.map +1 -1
- package/dist/mods/load/scan/rules.js +4 -0
- package/dist/mods/load/scan/rules.js.map +1 -1
- package/dist/mods/load/scan/uses.d.ts +8 -0
- package/dist/mods/load/scan/uses.d.ts.map +1 -1
- package/dist/mods/load/scan/uses.js +2 -0
- package/dist/mods/load/scan/uses.js.map +1 -1
- package/dist/mods/load/scan/wasm-paths.d.ts +17 -0
- package/dist/mods/load/scan/wasm-paths.d.ts.map +1 -0
- package/dist/mods/load/scan/wasm-paths.js +16 -0
- package/dist/mods/load/scan/wasm-paths.js.map +1 -0
- package/dist/mods/load/tool-flow.d.ts +1 -1
- package/dist/mods/load/tool-flow.d.ts.map +1 -1
- package/dist/mods/load/tool-flow.js +15 -2
- package/dist/mods/load/tool-flow.js.map +1 -1
- package/dist/mods/load/wasm-files.d.ts +35 -0
- package/dist/mods/load/wasm-files.d.ts.map +1 -0
- package/dist/mods/load/wasm-files.js +40 -0
- package/dist/mods/load/wasm-files.js.map +1 -0
- package/dist/mods/load/wiring.d.ts.map +1 -1
- package/dist/mods/load/wiring.js +20 -8
- package/dist/mods/load/wiring.js.map +1 -1
- package/dist/mods/load/written-mods.d.ts +16 -3
- package/dist/mods/load/written-mods.d.ts.map +1 -1
- package/dist/mods/load/written-mods.js +26 -25
- package/dist/mods/load/written-mods.js.map +1 -1
- package/dist/mods/types.d.ts +10 -9
- package/dist/mods/types.d.ts.map +1 -1
- package/dist/mods/ui/controls/hotkeys.d.ts +8 -0
- package/dist/mods/ui/controls/hotkeys.d.ts.map +1 -1
- package/dist/mods/ui/controls/hotkeys.js +30 -3
- package/dist/mods/ui/controls/hotkeys.js.map +1 -1
- package/dist/mods/ui/elements/box.d.ts.map +1 -1
- package/dist/mods/ui/elements/box.js +5 -2
- package/dist/mods/ui/elements/box.js.map +1 -1
- package/dist/mods/ui/elements/limits.d.ts.map +1 -1
- package/dist/mods/ui/elements/limits.js +5 -3
- package/dist/mods/ui/elements/limits.js.map +1 -1
- package/dist/mods/ui/elements/progress.d.ts +8 -0
- package/dist/mods/ui/elements/progress.d.ts.map +1 -0
- package/dist/mods/ui/elements/progress.js +17 -0
- package/dist/mods/ui/elements/progress.js.map +1 -0
- package/dist/mods/ui/elements/prop-size.d.ts +10 -0
- package/dist/mods/ui/elements/prop-size.d.ts.map +1 -0
- package/dist/mods/ui/elements/prop-size.js +34 -0
- package/dist/mods/ui/elements/prop-size.js.map +1 -0
- package/dist/mods/ui/elements/registry.d.ts.map +1 -1
- package/dist/mods/ui/elements/registry.js +4 -0
- package/dist/mods/ui/elements/registry.js.map +1 -1
- package/dist/mods/ui/elements/shader-place.d.ts +8 -0
- package/dist/mods/ui/elements/shader-place.d.ts.map +1 -0
- package/dist/mods/ui/elements/shader-place.js +36 -0
- package/dist/mods/ui/elements/shader-place.js.map +1 -0
- package/dist/mods/ui/elements/shader.d.ts +11 -0
- package/dist/mods/ui/elements/shader.d.ts.map +1 -0
- package/dist/mods/ui/elements/shader.js +28 -0
- package/dist/mods/ui/elements/shader.js.map +1 -0
- package/dist/mods/ui/elements/svg.d.ts +3 -0
- package/dist/mods/ui/elements/svg.d.ts.map +1 -1
- package/dist/mods/ui/elements/svg.js +2 -0
- package/dist/mods/ui/elements/svg.js.map +1 -1
- package/dist/mods/ui/elements/table.d.ts.map +1 -1
- package/dist/mods/ui/elements/table.js +2 -0
- package/dist/mods/ui/elements/table.js.map +1 -1
- package/dist/mods/ui/elements/text.d.ts.map +1 -1
- package/dist/mods/ui/elements/text.js +7 -1
- package/dist/mods/ui/elements/text.js.map +1 -1
- package/dist/mods/ui/elements/validate.d.ts.map +1 -1
- package/dist/mods/ui/elements/validate.js +3 -1
- package/dist/mods/ui/elements/validate.js.map +1 -1
- package/dist/mods/ui/index.d.ts +1 -0
- package/dist/mods/ui/index.d.ts.map +1 -1
- package/dist/mods/ui/index.js.map +1 -1
- package/dist/mods/ui/keyboard/keys.d.ts +3 -0
- package/dist/mods/ui/keyboard/keys.d.ts.map +1 -1
- package/dist/mods/ui/keyboard/keys.js.map +1 -1
- package/dist/mods/ui/panes/open.d.ts +2 -0
- package/dist/mods/ui/panes/open.d.ts.map +1 -1
- package/dist/mods/ui/panes/open.js +3 -1
- package/dist/mods/ui/panes/open.js.map +1 -1
- package/dist/mods/ui/panes/pane-request.d.ts +9 -0
- package/dist/mods/ui/panes/pane-request.d.ts.map +1 -0
- package/dist/mods/ui/panes/pane-request.js +19 -0
- package/dist/mods/ui/panes/pane-request.js.map +1 -0
- package/dist/mods/ui/panes/registry.d.ts +1 -1
- package/dist/mods/ui/panes/registry.d.ts.map +1 -1
- package/dist/mods/ui/panes/registry.js +4 -0
- package/dist/mods/ui/panes/registry.js.map +1 -1
- package/dist/mods/ui/rules.d.ts.map +1 -1
- package/dist/mods/ui/rules.js +3 -0
- package/dist/mods/ui/rules.js.map +1 -1
- package/dist/mods/ui/runtime.d.ts +6 -0
- package/dist/mods/ui/runtime.d.ts.map +1 -1
- package/dist/mods/ui/runtime.js +25 -9
- package/dist/mods/ui/runtime.js.map +1 -1
- package/dist/mods/ui/sites/agent-row.d.ts +7 -0
- package/dist/mods/ui/sites/agent-row.d.ts.map +1 -0
- package/dist/mods/ui/sites/agent-row.js +22 -0
- package/dist/mods/ui/sites/agent-row.js.map +1 -0
- package/dist/mods/ui/sites/backdrop.d.ts +2 -2
- package/dist/mods/ui/sites/backdrop.js +2 -2
- package/dist/mods/ui/sites/band-list.d.ts +10 -0
- package/dist/mods/ui/sites/band-list.d.ts.map +1 -0
- package/dist/mods/ui/sites/band-list.js +41 -0
- package/dist/mods/ui/sites/band-list.js.map +1 -0
- package/dist/mods/ui/sites/band-rows.d.ts +33 -0
- package/dist/mods/ui/sites/band-rows.d.ts.map +1 -0
- package/dist/mods/ui/sites/band-rows.js +61 -0
- package/dist/mods/ui/sites/band-rows.js.map +1 -0
- package/dist/mods/ui/sites/fold.d.ts +2 -0
- package/dist/mods/ui/sites/fold.d.ts.map +1 -1
- package/dist/mods/ui/sites/fold.js +2 -2
- package/dist/mods/ui/sites/fold.js.map +1 -1
- package/dist/mods/ui/sites/registry.d.ts +8 -1
- package/dist/mods/ui/sites/registry.d.ts.map +1 -1
- package/dist/mods/ui/sites/registry.js +21 -14
- package/dist/mods/ui/sites/registry.js.map +1 -1
- package/dist/ports/files.d.ts +1 -1
- package/dist/ports/mcp-bundle.d.ts +3 -2
- package/dist/ports/mcp-bundle.d.ts.map +1 -1
- package/dist/ports/mcp-caller.d.ts +7 -0
- package/dist/ports/mcp-caller.d.ts.map +1 -1
- package/dist/protocol/mods-api-names.d.ts +20 -8
- package/dist/protocol/mods-api-names.d.ts.map +1 -1
- package/dist/protocol/mods-api-names.js +16 -4
- package/dist/protocol/mods-api-names.js.map +1 -1
- package/dist/protocol/mods-events.d.ts +11 -8
- package/dist/protocol/mods-events.d.ts.map +1 -1
- package/dist/protocol/mods-events.js +14 -5
- package/dist/protocol/mods-events.js.map +1 -1
- package/dist/protocol/mods-limits.d.ts +9 -1
- package/dist/protocol/mods-limits.d.ts.map +1 -1
- package/dist/protocol/mods-limits.js +9 -1
- package/dist/protocol/mods-limits.js.map +1 -1
- package/dist/protocol/mods-ui-names.d.ts +42 -11
- package/dist/protocol/mods-ui-names.d.ts.map +1 -1
- package/dist/protocol/mods-ui-names.js +62 -8
- package/dist/protocol/mods-ui-names.js.map +1 -1
- package/dist/protocol/official.d.ts +1 -1
- package/dist/protocol/official.d.ts.map +1 -1
- package/dist/protocol/tool-names.d.ts +12 -5
- package/dist/protocol/tool-names.d.ts.map +1 -1
- package/dist/protocol/tool-names.js +21 -2
- package/dist/protocol/tool-names.js.map +1 -1
- package/dist/rules/bash/wrappers.d.ts +2 -0
- package/dist/rules/bash/wrappers.d.ts.map +1 -1
- package/dist/rules/bash/wrappers.js +2 -0
- package/dist/rules/bash/wrappers.js.map +1 -1
- package/dist/rules/decide/auto-dropped.d.ts.map +1 -1
- package/dist/rules/decide/auto-dropped.js +23 -4
- package/dist/rules/decide/auto-dropped.js.map +1 -1
- package/dist/rules/decide/context.d.ts +5 -2
- package/dist/rules/decide/context.d.ts.map +1 -1
- package/dist/rules/decide/decide.d.ts.map +1 -1
- package/dist/rules/decide/decide.js +11 -0
- package/dist/rules/decide/decide.js.map +1 -1
- package/dist/rules/decide/facts.js +3 -3
- package/dist/rules/decide/facts.js.map +1 -1
- package/dist/rules/decide/modes.d.ts +7 -0
- package/dist/rules/decide/modes.d.ts.map +1 -1
- package/dist/rules/decide/modes.js +5 -0
- package/dist/rules/decide/modes.js.map +1 -1
- package/dist/rules/tools/catalog.d.ts.map +1 -1
- package/dist/rules/tools/catalog.js +13 -3
- package/dist/rules/tools/catalog.js.map +1 -1
- package/dist/rules/types.d.ts +6 -0
- package/dist/rules/types.d.ts.map +1 -1
- package/dist/settings/add-dir-layer.d.ts +17 -0
- package/dist/settings/add-dir-layer.d.ts.map +1 -0
- package/dist/settings/add-dir-layer.js +20 -0
- package/dist/settings/add-dir-layer.js.map +1 -0
- package/dist/settings/env/code-mode.d.ts +21 -0
- package/dist/settings/env/code-mode.d.ts.map +1 -0
- package/dist/settings/env/code-mode.js +8 -0
- package/dist/settings/env/code-mode.js.map +1 -0
- package/dist/settings/env/ignored-variables.d.ts +1 -1
- package/dist/settings/env/ignored-variables.d.ts.map +1 -1
- package/dist/settings/env/ignored-variables.js +7 -0
- package/dist/settings/env/ignored-variables.js.map +1 -1
- package/dist/settings/env/index.d.ts +1 -0
- package/dist/settings/env/index.d.ts.map +1 -1
- package/dist/settings/env/index.js +1 -0
- package/dist/settings/env/index.js.map +1 -1
- package/dist/settings/general/checks.d.ts.map +1 -1
- package/dist/settings/general/checks.js +0 -1
- package/dist/settings/general/checks.js.map +1 -1
- package/dist/settings/general/command-lines.d.ts +1 -20
- package/dist/settings/general/command-lines.d.ts.map +1 -1
- package/dist/settings/general/command-lines.js +1 -15
- package/dist/settings/general/command-lines.js.map +1 -1
- package/dist/settings/general/edit-effect.d.ts +10 -1
- package/dist/settings/general/edit-effect.d.ts.map +1 -1
- package/dist/settings/general/edit-effect.js +8 -1
- package/dist/settings/general/edit-effect.js.map +1 -1
- package/dist/settings/general/index.d.ts +2 -3
- package/dist/settings/general/index.d.ts.map +1 -1
- package/dist/settings/general/index.js +1 -2
- package/dist/settings/general/index.js.map +1 -1
- package/dist/settings/general/keys.d.ts +1 -2
- package/dist/settings/general/keys.d.ts.map +1 -1
- package/dist/settings/general/keys.js +0 -1
- package/dist/settings/general/keys.js.map +1 -1
- package/dist/settings/general/plugin-defaults.d.ts +15 -4
- package/dist/settings/general/plugin-defaults.d.ts.map +1 -1
- package/dist/settings/general/plugin-defaults.js +11 -10
- package/dist/settings/general/plugin-defaults.js.map +1 -1
- package/dist/settings/general/rows.d.ts.map +1 -1
- package/dist/settings/general/rows.js +0 -1
- package/dist/settings/general/rows.js.map +1 -1
- package/dist/settings/hooks/custom-commands.d.ts +1 -2
- package/dist/settings/hooks/custom-commands.d.ts.map +1 -1
- package/dist/settings/hooks/custom-commands.js +1 -1
- package/dist/settings/hooks/custom-commands.js.map +1 -1
- package/dist/settings/hooks/http-policy.d.ts +17 -4
- package/dist/settings/hooks/http-policy.d.ts.map +1 -1
- package/dist/settings/hooks/http-policy.js +25 -6
- package/dist/settings/hooks/http-policy.js.map +1 -1
- package/dist/settings/hooks/index.d.ts +1 -1
- package/dist/settings/hooks/index.d.ts.map +1 -1
- package/dist/settings/hooks/index.js.map +1 -1
- package/dist/settings/hooks/policy.d.ts +1 -1
- package/dist/settings/hooks/policy.js +1 -1
- package/dist/settings/hooks/policy.js.map +1 -1
- package/dist/settings/hooks/session-gates.d.ts +11 -6
- package/dist/settings/hooks/session-gates.d.ts.map +1 -1
- package/dist/settings/hooks/session-gates.js +3 -7
- package/dist/settings/hooks/session-gates.js.map +1 -1
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.d.ts.map +1 -1
- package/dist/settings/index.js +1 -0
- package/dist/settings/index.js.map +1 -1
- package/dist/settings/managed/compose.d.ts +0 -6
- package/dist/settings/managed/compose.d.ts.map +1 -1
- package/dist/settings/managed/compose.js +4 -25
- package/dist/settings/managed/compose.js.map +1 -1
- package/dist/settings/managed/helper-run.js +1 -1
- package/dist/settings/managed/helper-run.js.map +1 -1
- package/dist/settings/managed/helper-settings.d.ts +9 -0
- package/dist/settings/managed/helper-settings.d.ts.map +1 -0
- package/dist/settings/managed/helper-settings.js +26 -0
- package/dist/settings/managed/helper-settings.js.map +1 -0
- package/dist/settings/managed/index.d.ts +4 -1
- package/dist/settings/managed/index.d.ts.map +1 -1
- package/dist/settings/managed/index.js +4 -1
- package/dist/settings/managed/index.js.map +1 -1
- package/dist/settings/managed/login-keys.d.ts +4 -0
- package/dist/settings/managed/login-keys.d.ts.map +1 -1
- package/dist/settings/managed/login-keys.js +17 -0
- package/dist/settings/managed/login-keys.js.map +1 -1
- package/dist/settings/managed/ports.d.ts +8 -1
- package/dist/settings/managed/ports.d.ts.map +1 -1
- package/dist/settings/managed/server-cache.d.ts +56 -0
- package/dist/settings/managed/server-cache.d.ts.map +1 -0
- package/dist/settings/managed/server-cache.js +27 -0
- package/dist/settings/managed/server-cache.js.map +1 -0
- package/dist/settings/managed/server-groups.d.ts +34 -0
- package/dist/settings/managed/server-groups.d.ts.map +1 -0
- package/dist/settings/managed/server-groups.js +28 -0
- package/dist/settings/managed/server-groups.js.map +1 -0
- package/dist/settings/mcp/exclusive.d.ts +5 -1
- package/dist/settings/mcp/exclusive.d.ts.map +1 -1
- package/dist/settings/mcp/exclusive.js +4 -2
- package/dist/settings/mcp/exclusive.js.map +1 -1
- package/dist/settings/mcp/scope.d.ts +5 -0
- package/dist/settings/mcp/scope.d.ts.map +1 -1
- package/dist/settings/mcp/scope.js +5 -0
- package/dist/settings/mcp/scope.js.map +1 -1
- package/dist/settings/permissions/default-mode.d.ts +0 -1
- package/dist/settings/permissions/default-mode.d.ts.map +1 -1
- package/dist/settings/permissions/default-mode.js +2 -2
- package/dist/settings/permissions/default-mode.js.map +1 -1
- package/dist/skills/bare-repository.d.ts +9 -0
- package/dist/skills/bare-repository.d.ts.map +1 -0
- package/dist/skills/bare-repository.js +11 -0
- package/dist/skills/bare-repository.js.map +1 -0
- package/dist/skills/execution.d.ts +1 -1
- package/dist/skills/execution.d.ts.map +1 -1
- package/dist/skills/expand-shell.d.ts.map +1 -1
- package/dist/skills/expand-shell.js +1 -0
- package/dist/skills/expand-shell.js.map +1 -1
- package/dist/skills/expand-types.d.ts +5 -0
- package/dist/skills/expand-types.d.ts.map +1 -1
- package/dist/skills/index.d.ts +1 -0
- package/dist/skills/index.d.ts.map +1 -1
- package/dist/skills/index.js +1 -0
- package/dist/skills/index.js.map +1 -1
- package/dist/skills/invocation.d.ts.map +1 -1
- package/dist/skills/invocation.js +4 -3
- package/dist/skills/invocation.js.map +1 -1
- package/dist/skills/path-gate.d.ts +11 -2
- package/dist/skills/path-gate.d.ts.map +1 -1
- package/dist/skills/path-gate.js +17 -2
- package/dist/skills/path-gate.js.map +1 -1
- package/dist/skills/shell-run.d.ts +5 -0
- package/dist/skills/shell-run.d.ts.map +1 -1
- package/dist/skills/shell-run.js +18 -1
- package/dist/skills/shell-run.js.map +1 -1
- package/dist/testing/mods/expect-equal.d.ts +24 -0
- package/dist/testing/mods/expect-equal.d.ts.map +1 -0
- package/dist/testing/mods/expect-equal.js +55 -0
- package/dist/testing/mods/expect-equal.js.map +1 -0
- package/dist/testing/mods/expect-matchers.d.ts +111 -0
- package/dist/testing/mods/expect-matchers.d.ts.map +1 -0
- package/dist/testing/mods/expect-matchers.js +111 -0
- package/dist/testing/mods/expect-matchers.js.map +1 -0
- package/dist/testing/mods/expect.d.ts +27 -44
- package/dist/testing/mods/expect.d.ts.map +1 -1
- package/dist/testing/mods/expect.js +70 -97
- package/dist/testing/mods/expect.js.map +1 -1
- package/dist/testing/mods/fake-ports.d.ts.map +1 -1
- package/dist/testing/mods/fake-ports.js +12 -0
- package/dist/testing/mods/fake-ports.js.map +1 -1
- package/dist/testing/mods/kit.d.ts.map +1 -1
- package/dist/testing/mods/kit.js +7 -2
- package/dist/testing/mods/kit.js.map +1 -1
- package/dist/testing/mods/mock.d.ts +3 -2
- package/dist/testing/mods/mock.d.ts.map +1 -1
- package/dist/testing/mods/mock.js.map +1 -1
- package/dist/testing/mods/mount.d.ts +2 -0
- package/dist/testing/mods/mount.d.ts.map +1 -1
- package/dist/testing/mods/mount.js +30 -3
- package/dist/testing/mods/mount.js.map +1 -1
- package/dist/testing/mods/stub-matcher.d.ts +9 -0
- package/dist/testing/mods/stub-matcher.d.ts.map +1 -0
- package/dist/testing/mods/stub-matcher.js +24 -0
- package/dist/testing/mods/stub-matcher.js.map +1 -0
- package/dist/testing/mods/stubs.d.ts +4 -1
- package/dist/testing/mods/stubs.d.ts.map +1 -1
- package/dist/testing/mods/stubs.js +10 -5
- package/dist/testing/mods/stubs.js.map +1 -1
- package/dist/testing/mods/world.d.ts +2 -1
- package/dist/testing/mods/world.d.ts.map +1 -1
- package/dist/testing/mods/world.js +2 -2
- package/dist/testing/mods/world.js.map +1 -1
- package/package.json +3 -3
- package/src/agents/catalog/builtin.ts +25 -2
- package/src/agents/catalog/scan.ts +5 -1
- package/src/agents/index.ts +3 -0
- package/src/agents/launch-model.ts +67 -26
- package/src/agents/launch.ts +37 -14
- package/src/agents/model-choice.ts +18 -5
- package/src/agents/task-list.ts +31 -0
- package/src/agents/tool-filters.ts +15 -1
- package/src/agents/tool-resolution.ts +20 -3
- package/src/agents/workflow/replay.ts +21 -3
- package/src/agents/workflow/usage-limit.ts +43 -4
- package/src/cli/command-table.ts +2 -0
- package/src/cli/flags/session.ts +2 -1
- package/src/cli/index.ts +25 -0
- package/src/cli/install-command-outcome.ts +69 -0
- package/src/cli/install-command-step.ts +91 -0
- package/src/cli/install-engines.ts +58 -0
- package/src/cli/install-plan.ts +40 -116
- package/src/cli/install-refusals.ts +7 -0
- package/src/cli/install-success.ts +32 -0
- package/src/cli/marketplace-list.ts +1 -1
- package/src/cli/marketplace-update.ts +9 -1
- package/src/cli/restore-set-aside.ts +70 -0
- package/src/cli/result.ts +17 -2
- package/src/cli/uninstall-data.ts +16 -1
- package/src/cli/update-dependencies.ts +62 -0
- package/src/cli/update-facts.ts +12 -0
- package/src/cli/update-plan.ts +50 -6
- package/src/cli/validate-lists.ts +172 -0
- package/src/cli/validate-run.ts +17 -0
- package/src/entry/mods.ts +1 -0
- package/src/format/add-dir-gate.ts +44 -0
- package/src/format/agent-scalars.ts +7 -8
- package/src/format/engines.ts +139 -0
- package/src/format/hooks-handlers.ts +2 -0
- package/src/format/host-errors.ts +1 -1
- package/src/format/index.ts +13 -1
- package/src/format/locate.ts +1 -1
- package/src/format/manifest-schema.ts +3 -0
- package/src/format/manifest.ts +102 -11
- package/src/format/marketplace/entries.ts +15 -5
- package/src/format/marketplace/entry-display.ts +78 -0
- package/src/format/marketplace/entry-schema.ts +5 -2
- package/src/format/marketplace/index.ts +1 -1
- package/src/format/marketplace/marketplace-name-lists.ts +0 -10
- package/src/format/marketplace/marketplace-names.ts +17 -18
- package/src/format/marketplace/plugin-source.ts +11 -3
- package/src/format/marketplace/settings-source-plugins.ts +3 -2
- package/src/format/marketplace/types.ts +11 -0
- package/src/format/mcp-bundles.ts +5 -5
- package/src/format/mcp-contract.ts +8 -0
- package/src/format/mcp-task-timing.ts +42 -0
- package/src/format/mcp-tool-schema.ts +19 -3
- package/src/format/network.ts +48 -0
- package/src/format/plugin-notes.ts +21 -0
- package/src/format/plugin-settings.ts +17 -13
- package/src/format/server-paths.ts +50 -0
- package/src/format/validate/plugin-fields.ts +16 -0
- package/src/format/validate/plugin-manifest.ts +4 -0
- package/src/format/validate/settings-deprecation.ts +26 -0
- package/src/format/validate/unknown-fields.ts +1 -9
- package/src/foundation/scope-folders.ts +8 -2
- package/src/hooks/assemble.ts +11 -1
- package/src/hooks/core/profiles.ts +1 -1
- package/src/hooks/dispatch.ts +36 -5
- package/src/hooks/handlers/context.ts +4 -1
- package/src/hooks/handlers/remote/http-policy.ts +20 -6
- package/src/hooks/handlers/remote/http.ts +2 -2
- package/src/hooks/handlers/remote/mcp-tool.ts +27 -1
- package/src/hooks/handlers/remote/types.ts +9 -0
- package/src/hooks/input/facts-agents.ts +14 -3
- package/src/hooks/outcome.ts +31 -0
- package/src/hooks/output/caps.ts +4 -3
- package/src/hooks/output/cowork-answers.ts +19 -0
- package/src/hooks/output/merge-simple.ts +5 -2
- package/src/hooks/output/merge.ts +2 -0
- package/src/hooks/output/tool-output.ts +48 -2
- package/src/hooks/output/tool-shapes/shapes-1.ts +3 -0
- package/src/hooks/output/tool-shapes/shapes-3.ts +1 -0
- package/src/hooks/output/tool-shapes/shapes-4.ts +12 -1
- package/src/hooks/output/tool-shapes/shapes-5.ts +9 -1
- package/src/hooks/run-all.ts +1 -0
- package/src/hooks/select/event-catalog.ts +4 -1
- package/src/hooks/select/matcher-values.ts +0 -1
- package/src/hooks/verdict/exit2.ts +6 -1
- package/src/hooks/verdict/interpret.ts +7 -7
- package/src/hooks/verdict/mcp-answer.ts +64 -0
- package/src/hooks/verdict/model-verdict.ts +1 -1
- package/src/hooks/verdict/on-failure.ts +51 -7
- package/src/hooks/verdict/subject.ts +2 -0
- package/src/hooks/verdict/suspect-capture.ts +7 -1
- package/src/host/session-agents.ts +15 -26
- package/src/host/session-bare-repository.ts +38 -0
- package/src/host/session-engine.ts +2 -1
- package/src/host/session-hooks.ts +16 -1
- package/src/host/session-registry.ts +12 -0
- package/src/host/session-skill-expand.ts +11 -29
- package/src/host/session-skill-permission.ts +29 -0
- package/src/host/session-skills.ts +31 -18
- package/src/host/session-types.ts +7 -0
- package/src/host/session.ts +0 -1
- package/src/index.ts +3 -0
- package/src/loading/load-notes.ts +62 -0
- package/src/loading/load-plugin.ts +36 -3
- package/src/loading/manifest-gate.ts +1 -1
- package/src/loading/plugin-folder.ts +4 -1
- package/src/loading/plugin-model.ts +8 -0
- package/src/loading/validate/marketplace-target.ts +34 -6
- package/src/loading/validate/plugin-contents.ts +12 -0
- package/src/loading/walk.ts +3 -3
- package/src/marketplace/dependency-graph.ts +5 -0
- package/src/marketplace/dependency-install-plan.ts +6 -4
- package/src/marketplace/enablement-notes.ts +49 -12
- package/src/marketplace/headless-report.ts +26 -1
- package/src/marketplace/index.ts +1 -1
- package/src/marketplace/install-commands.ts +12 -3
- package/src/marketplace/install-errors.ts +8 -7
- package/src/marketplace/install-lifecycle-index.ts +10 -0
- package/src/marketplace/install-plan.ts +7 -0
- package/src/marketplace/install-plans.ts +4 -5
- package/src/marketplace/managed-take-back.ts +38 -0
- package/src/marketplace/marketplace-fetch-plan.ts +2 -0
- package/src/marketplace/reload-summary.ts +14 -3
- package/src/marketplace/removal.ts +5 -5
- package/src/marketplace/seed-registry.ts +7 -5
- package/src/marketplace/store-layout.ts +17 -4
- package/src/marketplace/types.ts +5 -0
- package/src/mods/api/agent.ts +28 -0
- package/src/mods/api/audio.ts +18 -5
- package/src/mods/api/build.ts +7 -3
- package/src/mods/api/call.ts +7 -0
- package/src/mods/api/command.ts +22 -2
- package/src/mods/api/declared-port-types.ts +155 -0
- package/src/mods/api/engine-create.ts +8 -1
- package/src/mods/api/exec.ts +4 -0
- package/src/mods/api/fs-ports.ts +9 -1
- package/src/mods/api/fs.ts +29 -10
- package/src/mods/api/gate.ts +3 -4
- package/src/mods/api/host-ports.ts +18 -1
- package/src/mods/api/index.ts +9 -3
- package/src/mods/api/mcp.ts +10 -2
- package/src/mods/api/optional-port-types.ts +48 -16
- package/src/mods/api/ports.ts +26 -42
- package/src/mods/api/registries.ts +17 -18
- package/src/mods/api/session-ports.ts +57 -0
- package/src/mods/api/session.ts +30 -5
- package/src/mods/api/theme.ts +132 -33
- package/src/mods/api/vcs.ts +71 -0
- package/src/mods/api/wasm.ts +74 -0
- package/src/mods/chain/api-guard.ts +35 -7
- package/src/mods/chain/context.ts +15 -0
- package/src/mods/chain/default-matcher.ts +69 -0
- package/src/mods/chain/dispatch.ts +19 -1
- package/src/mods/chain/failure.ts +7 -0
- package/src/mods/chain/guarded.ts +8 -2
- package/src/mods/chain/invoke.ts +25 -5
- package/src/mods/chain/validate.ts +2 -1
- package/src/mods/events/agent.ts +7 -3
- package/src/mods/events/declared.ts +51 -0
- package/src/mods/events/index.ts +4 -1
- package/src/mods/events/pinned.ts +23 -0
- package/src/mods/events/session.ts +26 -4
- package/src/mods/events/spec.ts +2 -0
- package/src/mods/events/tool.ts +57 -12
- package/src/mods/events/turn.ts +17 -1
- package/src/mods/load/auto-mode-approval.ts +7 -11
- package/src/mods/load/commands/module-facts.ts +32 -0
- package/src/mods/load/commands/scan-lead.ts +6 -2
- package/src/mods/load/commands/scan-lines.ts +33 -1
- package/src/mods/load/commands/sha256.ts +80 -0
- package/src/mods/load/commands/validate-report.ts +9 -0
- package/src/mods/load/commands/validate.ts +24 -16
- package/src/mods/load/commands/wasm-read.ts +183 -0
- package/src/mods/load/guard-protection.ts +15 -5
- package/src/mods/load/guard-surfaces.ts +2 -0
- package/src/mods/load/guard-tools.ts +45 -0
- package/src/mods/load/guard.ts +21 -8
- package/src/mods/load/host-support.ts +51 -11
- package/src/mods/load/host.ts +24 -4
- package/src/mods/load/in-turn.ts +12 -0
- package/src/mods/load/index.ts +22 -2
- package/src/mods/load/loader.ts +23 -10
- package/src/mods/load/mod-set.ts +9 -18
- package/src/mods/load/order.ts +2 -2
- package/src/mods/load/plugin-dirs.ts +29 -8
- package/src/mods/load/policy.ts +61 -25
- package/src/mods/load/prepare.ts +34 -4
- package/src/mods/load/provides.ts +134 -0
- package/src/mods/load/register-ask.ts +82 -0
- package/src/mods/load/register-call.ts +98 -38
- package/src/mods/load/register-event.ts +104 -0
- package/src/mods/load/scan/client-modules.ts +1 -1
- package/src/mods/load/scan/event-names.ts +2 -0
- package/src/mods/load/scan/found.ts +8 -0
- package/src/mods/load/scan/hosts.ts +40 -0
- package/src/mods/load/scan/index.ts +8 -0
- package/src/mods/load/scan/rules.ts +4 -0
- package/src/mods/load/scan/uses.ts +10 -0
- package/src/mods/load/scan/wasm-paths.ts +35 -0
- package/src/mods/load/tool-flow.ts +16 -2
- package/src/mods/load/wasm-files.ts +77 -0
- package/src/mods/load/wiring.ts +30 -7
- package/src/mods/load/written-mods.ts +42 -27
- package/src/mods/types.ts +10 -9
- package/src/mods/ui/controls/hotkeys.ts +36 -2
- package/src/mods/ui/elements/box.ts +6 -1
- package/src/mods/ui/elements/limits.ts +5 -3
- package/src/mods/ui/elements/progress.ts +19 -0
- package/src/mods/ui/elements/prop-size.ts +41 -0
- package/src/mods/ui/elements/registry.ts +4 -0
- package/src/mods/ui/elements/shader-place.ts +38 -0
- package/src/mods/ui/elements/shader.ts +36 -0
- package/src/mods/ui/elements/svg.ts +4 -0
- package/src/mods/ui/elements/table.ts +2 -0
- package/src/mods/ui/elements/text.ts +9 -0
- package/src/mods/ui/elements/validate.ts +3 -1
- package/src/mods/ui/index.ts +1 -0
- package/src/mods/ui/keyboard/keys.ts +2 -0
- package/src/mods/ui/panes/open.ts +5 -1
- package/src/mods/ui/panes/pane-request.ts +19 -0
- package/src/mods/ui/panes/registry.ts +5 -1
- package/src/mods/ui/rules.ts +4 -0
- package/src/mods/ui/runtime.ts +43 -12
- package/src/mods/ui/sites/agent-row.ts +24 -0
- package/src/mods/ui/sites/backdrop.ts +2 -2
- package/src/mods/ui/sites/band-list.ts +40 -0
- package/src/mods/ui/sites/band-rows.ts +100 -0
- package/src/mods/ui/sites/fold.ts +2 -2
- package/src/mods/ui/sites/registry.ts +33 -17
- package/src/ports/files.ts +1 -1
- package/src/ports/mcp-bundle.ts +3 -2
- package/src/ports/mcp-caller.ts +7 -0
- package/src/protocol/mods-api-names.ts +17 -4
- package/src/protocol/mods-events.ts +14 -5
- package/src/protocol/mods-limits.ts +9 -1
- package/src/protocol/mods-ui-names.ts +63 -8
- package/src/protocol/official.ts +1 -0
- package/src/protocol/tool-names.ts +27 -5
- package/src/rules/bash/wrappers.ts +3 -0
- package/src/rules/decide/auto-dropped.ts +29 -6
- package/src/rules/decide/context.ts +5 -2
- package/src/rules/decide/decide.ts +14 -0
- package/src/rules/decide/facts.ts +3 -3
- package/src/rules/decide/modes.ts +12 -0
- package/src/rules/tools/catalog.ts +13 -3
- package/src/rules/types.ts +6 -0
- package/src/settings/add-dir-layer.ts +34 -0
- package/src/settings/env/code-mode.ts +26 -0
- package/src/settings/env/ignored-variables.ts +7 -0
- package/src/settings/env/index.ts +1 -0
- package/src/settings/general/checks.ts +0 -1
- package/src/settings/general/command-lines.ts +1 -29
- package/src/settings/general/edit-effect.ts +14 -1
- package/src/settings/general/index.ts +5 -14
- package/src/settings/general/keys.ts +0 -2
- package/src/settings/general/plugin-defaults.ts +23 -12
- package/src/settings/general/rows.ts +0 -1
- package/src/settings/hooks/custom-commands.ts +2 -3
- package/src/settings/hooks/http-policy.ts +47 -10
- package/src/settings/hooks/index.ts +6 -1
- package/src/settings/hooks/policy.ts +2 -2
- package/src/settings/hooks/session-gates.ts +18 -12
- package/src/settings/index.ts +1 -0
- package/src/settings/managed/compose.ts +10 -34
- package/src/settings/managed/helper-run.ts +1 -1
- package/src/settings/managed/helper-settings.ts +36 -0
- package/src/settings/managed/index.ts +16 -1
- package/src/settings/managed/login-keys.ts +23 -0
- package/src/settings/managed/ports.ts +8 -1
- package/src/settings/managed/server-cache.ts +69 -0
- package/src/settings/managed/server-groups.ts +63 -0
- package/src/settings/mcp/exclusive.ts +6 -1
- package/src/settings/mcp/scope.ts +10 -0
- package/src/settings/permissions/default-mode.ts +2 -2
- package/src/skills/bare-repository.ts +12 -0
- package/src/skills/execution.ts +1 -1
- package/src/skills/expand-shell.ts +1 -0
- package/src/skills/expand-types.ts +5 -0
- package/src/skills/index.ts +1 -0
- package/src/skills/invocation.ts +4 -3
- package/src/skills/path-gate.ts +25 -3
- package/src/skills/shell-run.ts +24 -1
- package/src/testing/mods/expect-equal.ts +66 -0
- package/src/testing/mods/expect-matchers.ts +127 -0
- package/src/testing/mods/expect.ts +136 -98
- package/src/testing/mods/fake-ports.ts +12 -0
- package/src/testing/mods/kit.ts +6 -2
- package/src/testing/mods/mock.ts +3 -2
- package/src/testing/mods/mount.ts +34 -3
- package/src/testing/mods/stub-matcher.ts +28 -0
- package/src/testing/mods/stubs.ts +22 -7
- package/src/testing/mods/world.ts +4 -2
- package/dist/settings/general/subagent-status-line.d.ts +0 -66
- package/dist/settings/general/subagent-status-line.d.ts.map +0 -1
- package/dist/settings/general/subagent-status-line.js +0 -58
- package/dist/settings/general/subagent-status-line.js.map +0 -1
- package/src/settings/general/subagent-status-line.ts +0 -121
package/src/mods/types.ts
CHANGED
|
@@ -159,20 +159,20 @@ export interface ModPluginInfo {
|
|
|
159
159
|
/** Native modules remain trusted even when the host places them in the user tier. */
|
|
160
160
|
readonly isBuiltin?: boolean;
|
|
161
161
|
/**
|
|
162
|
-
* Where the mod runs
|
|
163
|
-
*
|
|
164
|
-
* with none run after those with one, in the order they registered (judgment).
|
|
162
|
+
* Where the mod runs in its tier, a lower number first, whenever it registered (a host loading one
|
|
163
|
+
* at a time gives each one); mods with none run after, in the order they registered (judgment).
|
|
165
164
|
*/
|
|
166
165
|
readonly position?: number;
|
|
167
166
|
}
|
|
168
167
|
|
|
169
|
-
/** Admission
|
|
168
|
+
/** Admission reads the original frozen input, not a rewrite. */
|
|
170
169
|
export interface HookAccess {
|
|
171
170
|
readonly event: string;
|
|
172
171
|
readonly tier: ModTier;
|
|
173
172
|
readonly isBuiltin: boolean;
|
|
174
|
-
/** The event as the host fired it
|
|
173
|
+
/** The event as the host fired it (an identity fact is checked on it), and who fired it (§10.19.7). */
|
|
175
174
|
readonly input: unknown;
|
|
175
|
+
readonly origin: HookOrigin;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
/**
|
|
@@ -226,6 +226,8 @@ export interface EventRule {
|
|
|
226
226
|
readonly coreInput?: (original: unknown, passed: unknown) => unknown;
|
|
227
227
|
/** A hook's result as it counts, for example with an over-long reason cut. */
|
|
228
228
|
readonly settle?: (result: unknown) => unknown;
|
|
229
|
+
/** For a behaviour run once per dispatch (`tool.judge`, `tool.run`): a later `next(e)` gets this of the first answer. */
|
|
230
|
+
readonly coreAgain?: (first: unknown) => unknown;
|
|
229
231
|
}
|
|
230
232
|
|
|
231
233
|
/** The rules of the events one part of mods knows, keyed by event name. */
|
|
@@ -253,13 +255,12 @@ export interface DispatchOptions {
|
|
|
253
255
|
* on one intercepts calls from the mods that run after it").
|
|
254
256
|
*/
|
|
255
257
|
readonly caller?: HookOrigin;
|
|
256
|
-
/**
|
|
257
|
-
* Only this mod's hooks handle the event: what Claude Code fires for one mod alone (`ui.message`
|
|
258
|
-
* and `ui.fault` reach the mod that drew the `Client`, reference.md, "Interface").
|
|
259
|
-
*/
|
|
258
|
+
/** Only these mods' hooks handle it (`ui.message` and `ui.fault` reach the mod that drew the `Client`). */
|
|
260
259
|
readonly only?: string | ReadonlySet<string>;
|
|
261
260
|
/** The debug log: the chain says there which mod answered without calling `next`. */
|
|
262
261
|
readonly debug?: (line: string) => void;
|
|
262
|
+
/** Told each mod whose hook answered without calling `next`: `/mcp` names it (§14.9.2 item 3). */
|
|
263
|
+
readonly answered?: (by: HookOrigin) => void;
|
|
263
264
|
/** The limit all the hooks of the event share, in milliseconds; `session.end` has one by default. */
|
|
264
265
|
readonly groupMs?: number;
|
|
265
266
|
/** Observes each valid hook result before outer hooks can replace it (engine settings refusals). */
|
|
@@ -12,6 +12,11 @@ export interface HotkeyContext {
|
|
|
12
12
|
readonly hasFocus: boolean;
|
|
13
13
|
/** Whether an `Input` of the drawing has the focus: "every printable key goes to the field". */
|
|
14
14
|
readonly isInputFocused: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The band's rows, each mod's tree (2.1.323 or later): given, hotkeys are read from them and not
|
|
17
|
+
* from the tree, so two mods' rows on one key are told apart.
|
|
18
|
+
*/
|
|
19
|
+
readonly rows?: readonly { readonly plugin: string; readonly tree: unknown }[] | undefined;
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
/** Buttons of a tree in document order. */
|
|
@@ -29,9 +34,8 @@ const pressableByKey = (context: HotkeyContext): boolean =>
|
|
|
29
34
|
* The button each hotkey names, wherever the keyboard focus is: "when two buttons in one drawing
|
|
30
35
|
* name the same `hotkey`, the later one gets it" (reference.md, "Elements").
|
|
31
36
|
*/
|
|
32
|
-
function
|
|
37
|
+
function treeHotkeys(tree: unknown): Map<string, ElementNode> {
|
|
33
38
|
const table = new Map<string, ElementNode>();
|
|
34
|
-
if (!pressableByKey(context)) return table;
|
|
35
39
|
for (const button of buttons(tree)) {
|
|
36
40
|
const { hotkey } = button.props;
|
|
37
41
|
if (typeof hotkey === 'string') table.set(hotkey, button);
|
|
@@ -39,6 +43,36 @@ function namedHotkeys(tree: unknown, context: HotkeyContext): ReadonlyMap<string
|
|
|
39
43
|
return table;
|
|
40
44
|
}
|
|
41
45
|
|
|
46
|
+
/**
|
|
47
|
+
* The hotkeys of the band's rows: "Buttons of two mods' rows of the band on the same key: in the
|
|
48
|
+
* terminal the key presses neither" (Agent Plugins Extended §10.10.5 item 4, §10.44.10); the
|
|
49
|
+
* client does not pick one of the mods. The Desktop app keeps the later row's (judgment: the spec
|
|
50
|
+
* states the rule for the terminal alone).
|
|
51
|
+
*/
|
|
52
|
+
function rowHotkeys(
|
|
53
|
+
rows: NonNullable<HotkeyContext['rows']>,
|
|
54
|
+
surface: UiSurface,
|
|
55
|
+
): Map<string, ElementNode> {
|
|
56
|
+
const table = new Map<string, ElementNode>();
|
|
57
|
+
const owner = new Map<string, string>();
|
|
58
|
+
const shared = new Set<string>();
|
|
59
|
+
for (const row of rows) {
|
|
60
|
+
for (const [hotkey, button] of treeHotkeys(row.tree)) {
|
|
61
|
+
const other = owner.get(hotkey);
|
|
62
|
+
if (other !== undefined && other !== row.plugin) shared.add(hotkey);
|
|
63
|
+
owner.set(hotkey, row.plugin);
|
|
64
|
+
table.set(hotkey, button);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (surface === 'terminal') for (const hotkey of shared) table.delete(hotkey);
|
|
68
|
+
return table;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function namedHotkeys(tree: unknown, context: HotkeyContext): ReadonlyMap<string, ElementNode> {
|
|
72
|
+
if (!pressableByKey(context)) return new Map();
|
|
73
|
+
return context.rows === undefined ? treeHotkeys(tree) : rowHotkeys(context.rows, context.surface);
|
|
74
|
+
}
|
|
75
|
+
|
|
42
76
|
/**
|
|
43
77
|
* The button each hotkey presses now: a hotkey presses its button only while the pane or band has
|
|
44
78
|
* keyboard focus, and while an `Input` has it every printable key goes to the field (interface.md,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BORDER_STYLES,
|
|
3
|
+
BOX_OVERFLOW_X,
|
|
3
4
|
FLEX_DIRECTIONS,
|
|
4
5
|
SPACING_STEPS,
|
|
5
6
|
type SpacingStep,
|
|
@@ -70,11 +71,15 @@ export const BOX: ElementDef = {
|
|
|
70
71
|
'right',
|
|
71
72
|
'bottom',
|
|
72
73
|
'overflow',
|
|
74
|
+
'overflowX',
|
|
73
75
|
'display',
|
|
74
76
|
'hover',
|
|
75
77
|
],
|
|
76
78
|
children: 'any',
|
|
77
|
-
check: (props) =>
|
|
79
|
+
check: (props) =>
|
|
80
|
+
oneOf('Box', props, 'flexDirection', FLEX_DIRECTIONS) ??
|
|
81
|
+
oneOf('Box', props, 'overflowX', BOX_OVERFLOW_X) ??
|
|
82
|
+
spacingProblem(props),
|
|
78
83
|
};
|
|
79
84
|
|
|
80
85
|
/** Whether `node` is a `Box`. */
|
|
@@ -3,6 +3,7 @@ import { imageBytes, isImage } from './image.ts';
|
|
|
3
3
|
import { isElementNode, walkTree, type ElementNode, type TreeChild } from './node.ts';
|
|
4
4
|
import { isRaster, rasterCells } from './raster.ts';
|
|
5
5
|
import { childrenFrom } from './children.ts';
|
|
6
|
+
import { propSizeProblem } from './prop-size.ts';
|
|
6
7
|
|
|
7
8
|
/** What one tree holds, measured against the Limits table. */
|
|
8
9
|
export interface TreeSize {
|
|
@@ -46,9 +47,10 @@ export function sizeProblem(tree: unknown): string | undefined {
|
|
|
46
47
|
if (size.rasterCells > MOD_LIMITS.rasterCells) {
|
|
47
48
|
return `Raster cells over ${MOD_LIMITS.rasterCells}; nothing was drawn`;
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
if (size.imageBytes > MOD_LIMITS.imageBytes) {
|
|
51
|
+
return `Image bytes over ${MOD_LIMITS.imageBytes}; nothing was drawn`;
|
|
52
|
+
}
|
|
53
|
+
return propSizeProblem(tree);
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
interface Budget {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { firstProblem, textOf, type ElementDef } from './def.ts';
|
|
2
|
+
|
|
3
|
+
/** `label` "Not blank" (`ProgressProps`, claude-code/index.d.ts:10940 of 2.1.330). */
|
|
4
|
+
const labelProblem = (label: unknown): string | undefined =>
|
|
5
|
+
typeof label === 'string' && label.trim() !== ''
|
|
6
|
+
? undefined
|
|
7
|
+
: 'Progress prop "label" must not be blank';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* `Progress`: how far along a task is, a leaf. In the 2.1.330 declarations' tables for every
|
|
11
|
+
* surface and not in the documentation's (Agent Plugins Extended §10.10, Judgment J10.24). A `value`
|
|
12
|
+
* absent or not finite draws as running, and past either end as that end, so it is never refused.
|
|
13
|
+
*/
|
|
14
|
+
export const PROGRESS: ElementDef = {
|
|
15
|
+
name: 'Progress',
|
|
16
|
+
props: ['label', 'value', 'max', 'valueText', 'color'],
|
|
17
|
+
children: 'none',
|
|
18
|
+
check: (props) => firstProblem(labelProblem(props.label), textOf('Progress', props, 'valueText')),
|
|
19
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { MOD_LIMITS } from '../../../protocol/mods-limits.ts';
|
|
2
|
+
|
|
3
|
+
interface Frame {
|
|
4
|
+
readonly value: unknown;
|
|
5
|
+
/** Lists and objects this value sits in, itself included when it is one. */
|
|
6
|
+
readonly depth: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** Bytes (an `Image`'s `source`) cross as one value, never as a list of numbers (judgment). */
|
|
10
|
+
const isNested = (value: unknown): value is object =>
|
|
11
|
+
typeof value === 'object' &&
|
|
12
|
+
value !== null &&
|
|
13
|
+
!ArrayBuffer.isView(value) &&
|
|
14
|
+
!(value instanceof ArrayBuffer);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Why a tree counted with its prop values is refused, or `undefined` (reference.md, "Limits": "Depth
|
|
18
|
+
* and size of a tree counted with its prop values", from v2.1.326): `nested more than 100 lists and
|
|
19
|
+
* objects deep`, or `more than 1000000 values once written out`. A level is one array or object, a
|
|
20
|
+
* scalar 0 levels (Judgment J10.10); every value counts once, a list or object as one beside what it
|
|
21
|
+
* holds; bytes are one value (spec/judgments.md). Walked without recursion, and a value met twice (a cycle) counts as written out again until
|
|
22
|
+
* the size limit stops it.
|
|
23
|
+
*/
|
|
24
|
+
export function propSizeProblem(tree: unknown): string | undefined {
|
|
25
|
+
const stack: Frame[] = [{ value: tree, depth: isNested(tree) ? 1 : 0 }];
|
|
26
|
+
let values = 0;
|
|
27
|
+
for (let frame = stack.pop(); frame; frame = stack.pop()) {
|
|
28
|
+
values += 1;
|
|
29
|
+
if (values > MOD_LIMITS.propValues) {
|
|
30
|
+
return `more than ${MOD_LIMITS.propValues} values once written out`;
|
|
31
|
+
}
|
|
32
|
+
if (frame.depth > MOD_LIMITS.propDepth) {
|
|
33
|
+
return `nested more than ${MOD_LIMITS.propDepth} lists and objects deep`;
|
|
34
|
+
}
|
|
35
|
+
if (!isNested(frame.value)) continue;
|
|
36
|
+
for (const inner of Object.values(frame.value)) {
|
|
37
|
+
stack.push({ value: inner, depth: frame.depth + (isNested(inner) ? 1 : 0) });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
@@ -8,8 +8,10 @@ import { IMAGE } from './image.ts';
|
|
|
8
8
|
import { INPUT } from './input.ts';
|
|
9
9
|
import { LINK } from './link.ts';
|
|
10
10
|
import { MARKDOWN } from './markdown.ts';
|
|
11
|
+
import { PROGRESS } from './progress.ts';
|
|
11
12
|
import { RASTER } from './raster.ts';
|
|
12
13
|
import { SELECT } from './select.ts';
|
|
14
|
+
import { SHADER } from './shader.ts';
|
|
13
15
|
import { SVG } from './svg.ts';
|
|
14
16
|
import { TEXT } from './text.ts';
|
|
15
17
|
|
|
@@ -27,4 +29,6 @@ export const ELEMENT_DEFS: { readonly [N in ElementName]: ElementDef } = {
|
|
|
27
29
|
Client: CLIENT,
|
|
28
30
|
Raster: RASTER,
|
|
29
31
|
Image: IMAGE,
|
|
32
|
+
Progress: PROGRESS,
|
|
33
|
+
Shader: SHADER,
|
|
30
34
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { RenderSite } from '../../../protocol/mods-ui-names.ts';
|
|
2
|
+
import { isBox } from './box.ts';
|
|
3
|
+
import { isElementNode, walkTree, type ElementNode } from './node.ts';
|
|
4
|
+
import { isShader } from './shader.ts';
|
|
5
|
+
import { isSvg } from './svg.ts';
|
|
6
|
+
|
|
7
|
+
/** The one site a `Shader` draws at. */
|
|
8
|
+
const BACKDROP: RenderSite = 'Backdrop';
|
|
9
|
+
|
|
10
|
+
/** Why one `Shader` is out of place, or `undefined`: its site, its parent, its one `Svg`. */
|
|
11
|
+
function placeProblem(
|
|
12
|
+
site: RenderSite,
|
|
13
|
+
shader: ElementNode,
|
|
14
|
+
parent: ElementNode | undefined,
|
|
15
|
+
): string | undefined {
|
|
16
|
+
if (site !== BACKDROP) return 'Shader draws only in a Backdrop';
|
|
17
|
+
if (parent !== undefined && !isBox(parent)) return 'a Shader sits at the root or in a Box';
|
|
18
|
+
const [only, ...rest] = shader.children;
|
|
19
|
+
const oneSvg = rest.length === 0 && isElementNode(only) && isSvg(only);
|
|
20
|
+
return oneSvg ? undefined : 'Shader holds exactly one Svg';
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Why the `Shader`s of a tree are refused, or `undefined`: "A `Shader` draws only in a `Backdrop`,
|
|
25
|
+
* at most one, at the root or in a `Box`; anywhere else, or over anything but one `Svg`, the tree is
|
|
26
|
+
* refused" (Agent Plugins Extended §10.10, Judgment J10.24). The wording is the kit's.
|
|
27
|
+
*/
|
|
28
|
+
export function shaderProblem(site: RenderSite, tree: unknown): string | undefined {
|
|
29
|
+
let count = 0;
|
|
30
|
+
for (const { node, parent } of walkTree(tree)) {
|
|
31
|
+
if (!isElementNode(node) || !isShader(node)) continue;
|
|
32
|
+
count += 1;
|
|
33
|
+
if (count > 1) return 'a Backdrop holds at most one Shader';
|
|
34
|
+
const found = placeProblem(site, node, parent);
|
|
35
|
+
if (found !== undefined) return found;
|
|
36
|
+
}
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MOD_LIMITS } from '../../../protocol/mods-limits.ts';
|
|
2
|
+
import { firstProblem, textOf, type ElementDef } from './def.ts';
|
|
3
|
+
import type { ElementNode } from './node.ts';
|
|
4
|
+
import { isRecord } from '../../../protocol/is-record.ts';
|
|
5
|
+
|
|
6
|
+
/** `values`: "Finite numbers ... 8 at most" (`ShaderProps`, claude-code/index.d.ts:15868 of 2.1.330). */
|
|
7
|
+
const SHADER_VALUES = 8;
|
|
8
|
+
|
|
9
|
+
function valuesProblem(values: unknown): string | undefined {
|
|
10
|
+
if (values === undefined) return undefined;
|
|
11
|
+
const numbers = isRecord(values) ? Object.values(values) : [];
|
|
12
|
+
const fits =
|
|
13
|
+
isRecord(values) &&
|
|
14
|
+
numbers.length <= SHADER_VALUES &&
|
|
15
|
+
numbers.every((value) => typeof value === 'number' && Number.isFinite(value));
|
|
16
|
+
return fits ? undefined : `Shader prop "values" holds at most ${SHADER_VALUES} finite numbers`;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* `Shader`: a scene the Desktop app plays on the GPU over exactly one `Svg`, in a `Backdrop` only
|
|
21
|
+
* (Agent Plugins Extended §10.10, Judgment J10.24). Where it is placed is checked over the tree
|
|
22
|
+
* (`shaderProblem`); the file `module` names is the host's to read.
|
|
23
|
+
*/
|
|
24
|
+
export const SHADER: ElementDef = {
|
|
25
|
+
name: 'Shader',
|
|
26
|
+
props: ['module', 'values'],
|
|
27
|
+
children: 'any',
|
|
28
|
+
check: (props) =>
|
|
29
|
+
firstProblem(
|
|
30
|
+
textOf('Shader', props, 'module', MOD_LIMITS.fieldChars),
|
|
31
|
+
valuesProblem(props.values),
|
|
32
|
+
),
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** Whether `node` is a `Shader`. */
|
|
36
|
+
export const isShader = (node: ElementNode): boolean => node.type === SHADER.name;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { firstProblem, textOf, type ElementDef } from './def.ts';
|
|
2
|
+
import type { ElementNode } from './node.ts';
|
|
2
3
|
|
|
3
4
|
/** `Svg` takes "a `source` of SVG markup up to 131,072 characters" (reference.md, "Elements"). */
|
|
4
5
|
const SVG_SOURCE_CHARS = 131_072;
|
|
@@ -10,3 +11,6 @@ export const SVG: ElementDef = {
|
|
|
10
11
|
check: (props) =>
|
|
11
12
|
firstProblem(textOf('Svg', props, 'source', SVG_SOURCE_CHARS), textOf('Svg', props, 'alt')),
|
|
12
13
|
};
|
|
14
|
+
|
|
15
|
+
/** Whether `node` is an `Svg`. */
|
|
16
|
+
export const isSvg = (node: ElementNode): boolean => node.type === SVG.name;
|
|
@@ -49,6 +49,8 @@ const CONSTRUCTORS: { readonly [N in ElementName]: ElementFn } = Object.freeze({
|
|
|
49
49
|
Client: construct('Client'),
|
|
50
50
|
Raster: construct('Raster'),
|
|
51
51
|
Image: construct('Image'),
|
|
52
|
+
Progress: construct('Progress'),
|
|
53
|
+
Shader: construct('Shader'),
|
|
52
54
|
});
|
|
53
55
|
const NAMES: ReadonlyMap<unknown, ElementName> = new Map(
|
|
54
56
|
ELEMENT_NAMES.map((name) => [CONSTRUCTORS[name], name]),
|
|
@@ -8,6 +8,12 @@ import {
|
|
|
8
8
|
} from '../../../protocol/mods-ui-names.ts';
|
|
9
9
|
import { firstProblem, oneOf, type ElementDef } from './def.ts';
|
|
10
10
|
|
|
11
|
+
/** `maxLines`: "a whole number from 1" (claude-code/index.d.ts:16840). */
|
|
12
|
+
const fromOne = (value: unknown): string | undefined =>
|
|
13
|
+
value === undefined || (Number.isInteger(value) && typeof value === 'number' && value >= 1)
|
|
14
|
+
? undefined
|
|
15
|
+
: 'Text prop "maxLines" must be a whole number from 1';
|
|
16
|
+
|
|
11
17
|
/** What `Text`'s `dir` takes (claude-code/index.d.ts:13935). */
|
|
12
18
|
const TEXT_DIRECTIONS = ['ltr', 'rtl'] as const;
|
|
13
19
|
import type { ElementNode, Props } from './node.ts';
|
|
@@ -24,6 +30,8 @@ export const TEXT: ElementDef = {
|
|
|
24
30
|
'dimColor',
|
|
25
31
|
'inverse',
|
|
26
32
|
'wrap',
|
|
33
|
+
// The most rows drawn, the last ending in an ellipsis (claude-code/index.d.ts:16840, 2.1.326).
|
|
34
|
+
'maxLines',
|
|
27
35
|
'size',
|
|
28
36
|
'weight',
|
|
29
37
|
'mono',
|
|
@@ -39,6 +47,7 @@ export const TEXT: ElementDef = {
|
|
|
39
47
|
oneOf('Text', props, 'size', TEXT_SIZES),
|
|
40
48
|
oneOf('Text', props, 'weight', TEXT_WEIGHTS),
|
|
41
49
|
oneOf('Text', props, 'dir', TEXT_DIRECTIONS),
|
|
50
|
+
fromOne(props.maxLines),
|
|
42
51
|
),
|
|
43
52
|
};
|
|
44
53
|
|
|
@@ -8,6 +8,7 @@ import { buttonKey, isButton } from './button.ts';
|
|
|
8
8
|
import { childProblem } from './children.ts';
|
|
9
9
|
import { isElementNode, isEngineRef, isTree, walkTree, type ElementNode } from './node.ts';
|
|
10
10
|
import { ELEMENT_DEFS } from './registry.ts';
|
|
11
|
+
import { shaderProblem } from './shader-place.ts';
|
|
11
12
|
|
|
12
13
|
/** Elements whose `key` addresses them and must be given: "Give every `Input` and `Select` a `key` prop". */
|
|
13
14
|
const NEEDS_KEY: ReadonlySet<ElementName> = new Set(['Input', 'Select']);
|
|
@@ -58,7 +59,8 @@ export function treeProblem(
|
|
|
58
59
|
if (drawnTwice.has(id)) return refuses(`${id} is drawn twice; each takes its own key`);
|
|
59
60
|
drawnTwice.add(id);
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
+
const misplaced = shaderProblem(site, tree);
|
|
63
|
+
return misplaced === undefined ? undefined : refuses(misplaced);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
/** How many times Claude Code's own drawing sits in `tree`. */
|
package/src/mods/ui/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './elements/index.ts';
|
|
|
7
7
|
export { decideSite, renderEvent, type RenderEvent, type RenderRequest } from './sites/registry.ts';
|
|
8
8
|
export { backdropRender } from './sites/backdrop.ts';
|
|
9
9
|
export { foldRender, type Drawn, type FoldOptions } from './sites/fold.ts';
|
|
10
|
+
export type { BandDrawn, BandRequest, BandRow } from './sites/band-rows.ts';
|
|
10
11
|
|
|
11
12
|
export type { Viewport } from './sites/viewport.ts';
|
|
12
13
|
export { parseOpen, type OpenRequest } from './panes/open.ts';
|
|
@@ -15,6 +15,8 @@ export interface KeyContext {
|
|
|
15
15
|
readonly surface: UiSurface;
|
|
16
16
|
/** The drawing is the band above the prompt. */
|
|
17
17
|
readonly isBand: boolean;
|
|
18
|
+
/** The band's rows, each mod's tree, as `HotkeyContext.rows`. */
|
|
19
|
+
readonly rows?: HotkeyContext['rows'] | undefined;
|
|
18
20
|
readonly isCollapsed: boolean;
|
|
19
21
|
/** The pane or band has keyboard focus. */
|
|
20
22
|
readonly hasFocus: boolean;
|
|
@@ -13,6 +13,8 @@ export type OpenRequest = {
|
|
|
13
13
|
readonly rows?: number;
|
|
14
14
|
/** The width to ask for beside the transcript. */
|
|
15
15
|
readonly columns?: number;
|
|
16
|
+
/** `'widget'`: the Desktop app draws the pane as a widget (2.1.330, claude-code/index.d.ts:9478). */
|
|
17
|
+
readonly placement?: 'widget';
|
|
16
18
|
};
|
|
17
19
|
|
|
18
20
|
/** The fields that "accept only `true`": `false` throws `ui.open: focus is true or left out`. */
|
|
@@ -61,5 +63,7 @@ export function parseOpen(value: unknown): OpenRequest {
|
|
|
61
63
|
if (problem !== undefined || typeof value.id !== 'string') {
|
|
62
64
|
throw new Error(`ui.open: ${problem ?? 'the id is not valid'}`);
|
|
63
65
|
}
|
|
64
|
-
|
|
66
|
+
// Any `placement` but `'widget'` is ignored (Agent Plugins Extended §10.25.1).
|
|
67
|
+
const widget = value.placement === 'widget' ? { placement: 'widget' as const } : {};
|
|
68
|
+
return { id: value.id, ...optionalFields(value), ...flagsOf(value), ...widget };
|
|
65
69
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RenderRequest } from '../sites/registry.ts';
|
|
2
|
+
import type { PaneRegistry } from './registry.ts';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A `Pane` request as the kit completes it from the pane the mod opened: `plugin` names the mod
|
|
6
|
+
* whose pane it is (§10.13.3), and in the Desktop app, the one surface with widgets, a pane opened
|
|
7
|
+
* with `placement: 'widget'` says so in its props (§10.25.1, §10.9). Other requests pass unchanged.
|
|
8
|
+
*/
|
|
9
|
+
export function paneRequest(panes: PaneRegistry, request: RenderRequest): RenderRequest {
|
|
10
|
+
if (request.site !== 'Pane') return request;
|
|
11
|
+
const pane = panes.list().find((open) => open.id === request.requestId);
|
|
12
|
+
if (pane === undefined) return request;
|
|
13
|
+
const widget = request.surface === 'desktop' && pane.request.placement === 'widget';
|
|
14
|
+
return {
|
|
15
|
+
...request,
|
|
16
|
+
plugin: pane.plugin,
|
|
17
|
+
...(widget ? { props: { ...request.props, placement: 'widget' } } : {}),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -33,7 +33,7 @@ export interface PaneRegistryOptions {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export interface PaneRegistry {
|
|
36
|
-
/** Opens (or reopens) a pane and says whether it appears. */
|
|
36
|
+
/** Opens (or reopens) a pane and says whether it appears; throws for an id another mod has open. */
|
|
37
37
|
open(plugin: string, request: OpenRequest, origin: OpenOrigin, context: PaneContext): Placement;
|
|
38
38
|
/** Removes a pane: the effect of a close. Whether it existed. */
|
|
39
39
|
remove(id: string): boolean;
|
|
@@ -76,6 +76,10 @@ export function createPaneRegistry(options: PaneRegistryOptions): PaneRegistry {
|
|
|
76
76
|
};
|
|
77
77
|
return {
|
|
78
78
|
open(plugin, request, origin, context) {
|
|
79
|
+
// "opening an id another mod has open MUST reject (2.1.330)" (§10.25.1); the wording is the kit's.
|
|
80
|
+
if ((panes.get(request.id)?.plugin ?? plugin) !== plugin) {
|
|
81
|
+
throw new Error(`ui.open: the pane ${request.id} is open in another mod`);
|
|
82
|
+
}
|
|
79
83
|
const placement = place(request.id, origin, context);
|
|
80
84
|
if (origin === 'user') userOpened.add(request.id);
|
|
81
85
|
panes.set(request.id, {
|
package/src/mods/ui/rules.ts
CHANGED
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
import type { EventRuleBook } from '../types.ts';
|
|
8
8
|
import { treeProblem } from './elements/validate.ts';
|
|
9
9
|
import { bandProblem } from './sites/band.ts';
|
|
10
|
+
import { rowsChangeProblem } from './sites/band-list.ts';
|
|
11
|
+
import { agentRowChangeProblem } from './sites/agent-row.ts';
|
|
10
12
|
import { tableProblem } from './tables.ts';
|
|
11
13
|
import { isRecord } from '../../protocol/is-record.ts';
|
|
12
14
|
|
|
@@ -39,6 +41,8 @@ export function uiRules(): EventRuleBook {
|
|
|
39
41
|
);
|
|
40
42
|
},
|
|
41
43
|
shapeDebug: 'a hook returned a tree that does not validate',
|
|
44
|
+
changeProblem: (original, changed) =>
|
|
45
|
+
rowsChangeProblem(original, changed) ?? agentRowChangeProblem(original, changed),
|
|
42
46
|
settle(result) {
|
|
43
47
|
if (typeof result === 'object' && result !== null) inner.add(result);
|
|
44
48
|
return result;
|
package/src/mods/ui/runtime.ts
CHANGED
|
@@ -5,12 +5,19 @@ import { ENGINE_TYPE } from './elements/node.ts';
|
|
|
5
5
|
import { faultReason } from './elements/client.ts';
|
|
6
6
|
import type { ModInterface } from './ports.ts';
|
|
7
7
|
import { createPaneRegistry, type PaneRegistry } from './panes/registry.ts';
|
|
8
|
+
import { paneRequest } from './panes/pane-request.ts';
|
|
8
9
|
import { createPlacedRows, type PlacedRows } from './placed/rows.ts';
|
|
9
10
|
import { createInvalidator, type Invalidator } from './redraw/invalidate.ts';
|
|
10
|
-
import { trackStateReads } from './redraw/subscribe.ts';
|
|
11
|
+
import { trackStateReads, type StateReads } from './redraw/subscribe.ts';
|
|
11
12
|
import type { StateStore } from '../api/state.ts';
|
|
12
13
|
import { foldRender, type Drawn, type FoldOptions } from './sites/fold.ts';
|
|
13
14
|
import { renderEvent, type RenderRequest } from './sites/registry.ts';
|
|
15
|
+
import {
|
|
16
|
+
drawBand,
|
|
17
|
+
type BandDrawn,
|
|
18
|
+
type BandRequest,
|
|
19
|
+
type SettleRender,
|
|
20
|
+
} from './sites/band-rows.ts';
|
|
14
21
|
import { createElementTables, resolveTables, type ElementTables } from './tables.ts';
|
|
15
22
|
import { createToastBoard, type ToastBoard } from './toast.ts';
|
|
16
23
|
import { uiApi, type UiParts } from './ui-api.ts';
|
|
@@ -46,6 +53,11 @@ export interface ModsUi extends UiParts {
|
|
|
46
53
|
readonly api: (deps: Deps) => ModsNamespaceApi<'ui'>;
|
|
47
54
|
/** Fires `ui.resolve` for a mod that loaded, once for each app and render site. */
|
|
48
55
|
loadMod(plugin: string): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Draws the band (2.1.323 or later): one `AbovePrompt` row for each of `mods` (the loaded mods, in
|
|
58
|
+
* the order they run in) that hooks `ui.render`, stacked through `AbovePromptList`.
|
|
59
|
+
*/
|
|
60
|
+
drawBand(request: BandRequest, mods: readonly string[]): Promise<BandDrawn>;
|
|
49
61
|
/** Draws one render site: fires `ui.render` and folds what the chain settled on. */
|
|
50
62
|
draw(
|
|
51
63
|
request: RenderRequest,
|
|
@@ -67,6 +79,26 @@ export interface ModsUi extends UiParts {
|
|
|
67
79
|
): Promise<unknown>;
|
|
68
80
|
}
|
|
69
81
|
|
|
82
|
+
/** Fires `ui.render` for one request; the sites a hook read `$.state` at redraw when it changes. */
|
|
83
|
+
function settler(options: ModsUiOptions, reads: StateReads): SettleRender {
|
|
84
|
+
const { chain, signal, report } = options;
|
|
85
|
+
return async (request) => {
|
|
86
|
+
const built = renderEvent(request);
|
|
87
|
+
if ('problem' in built) return undefined;
|
|
88
|
+
const key = `${request.site}:${built.event.requestId}:${request.plugin ?? ''}`;
|
|
89
|
+
return reads.track(key, () =>
|
|
90
|
+
chain.dispatch('ui.render', built.event, {
|
|
91
|
+
origin: ENGINE_ORIGIN,
|
|
92
|
+
signal,
|
|
93
|
+
report,
|
|
94
|
+
debug: options.debug,
|
|
95
|
+
// Claude Code's own drawing, with the props the last `next(e)` gave it.
|
|
96
|
+
core: (e) => Promise.resolve({ type: ENGINE_TYPE, ref: e }),
|
|
97
|
+
}),
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
70
102
|
/**
|
|
71
103
|
* The interface part of mods: what `$.ui` needs, and what the host asks of it (draw a site, report
|
|
72
104
|
* a failed `Client`, deliver a posted message). The host passes `api` as `ModsApiOptions.ui` and
|
|
@@ -106,23 +138,22 @@ export function createModsUi(options: ModsUiOptions): ModsUi {
|
|
|
106
138
|
report,
|
|
107
139
|
core: (e) => Promise.resolve(e),
|
|
108
140
|
});
|
|
141
|
+
const settle = settler(options, reads);
|
|
109
142
|
return {
|
|
110
143
|
...parts,
|
|
111
144
|
api: (deps) => uiApi(deps, parts),
|
|
145
|
+
drawBand: (request, mods) =>
|
|
146
|
+
drawBand(
|
|
147
|
+
settle,
|
|
148
|
+
request,
|
|
149
|
+
mods.filter((plugin) => chain.hears('ui.render', plugin)),
|
|
150
|
+
),
|
|
112
151
|
loadMod: (plugin) => resolveTables({ chain, tables, signal, report }, plugin),
|
|
113
|
-
async draw(
|
|
152
|
+
async draw(given, fold) {
|
|
153
|
+
const request = paneRequest(panes, given);
|
|
114
154
|
const built = renderEvent(request);
|
|
115
155
|
if ('problem' in built) return built;
|
|
116
|
-
const settled = await
|
|
117
|
-
chain.dispatch('ui.render', built.event, {
|
|
118
|
-
origin: ENGINE_ORIGIN,
|
|
119
|
-
signal,
|
|
120
|
-
report,
|
|
121
|
-
debug: options.debug,
|
|
122
|
-
// Claude Code's own drawing, with the props the last `next(e)` gave it.
|
|
123
|
-
core: (e) => Promise.resolve({ type: ENGINE_TYPE, ref: e }),
|
|
124
|
-
}),
|
|
125
|
-
);
|
|
156
|
+
const settled = await settle(request);
|
|
126
157
|
const drawn = foldRender(request.site, request.surface, settled, fold);
|
|
127
158
|
// troubleshoot.md, "A `ui.render` line says refused": the debug log's line beside the transcript's.
|
|
128
159
|
if ('refused' in drawn) {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { isRecord } from '../../../protocol/is-record.ts';
|
|
2
|
+
import { sameValue } from './band-list.ts';
|
|
3
|
+
|
|
4
|
+
/** The `AgentRow` props a hook may change: "read-only but for `label`, `body` ... and `isHidden`". */
|
|
5
|
+
const WRITABLE: ReadonlySet<string> = new Set(['label', 'body', 'isHidden']);
|
|
6
|
+
|
|
7
|
+
const agentRowProps = (e: unknown): Readonly<Record<string, unknown>> | undefined =>
|
|
8
|
+
isRecord(e) && e.component === 'AgentRow' && isRecord(e.props) ? e.props : undefined;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Why the `AgentRow` event a hook passes to `next` is refused (Agent Plugins Extended §10.9 item 5,
|
|
12
|
+
* claude-code/index.d.ts:13702 of 2.1.330): a prop other than `label`, `body` and `isHidden` changed
|
|
13
|
+
* or dropped. The wording is the kit's.
|
|
14
|
+
*/
|
|
15
|
+
export function agentRowChangeProblem(original: unknown, changed: unknown): string | undefined {
|
|
16
|
+
const given = agentRowProps(original);
|
|
17
|
+
if (given === undefined) return undefined;
|
|
18
|
+
const passed = agentRowProps(changed) ?? {};
|
|
19
|
+
const keys = new Set([...Object.keys(given), ...Object.keys(passed)]);
|
|
20
|
+
const moved = [...keys].find((key) => !WRITABLE.has(key) && !sameValue(given[key], passed[key]));
|
|
21
|
+
return moved === undefined
|
|
22
|
+
? undefined
|
|
23
|
+
: `AgentRow prop "${moved}" is read-only: a hook changes label, body and isHidden only`;
|
|
24
|
+
}
|
|
@@ -7,8 +7,8 @@ import type { Viewport } from './viewport.ts';
|
|
|
7
7
|
/**
|
|
8
8
|
* The `ui.render` event of the `Backdrop` site when the Desktop or mobile app asks to draw the
|
|
9
9
|
* session's backdrop (reference.md, "Render sites"; interface.md, "Put a backdrop behind the
|
|
10
|
-
* conversation"): `e.props` holds `
|
|
11
|
-
* and `
|
|
10
|
+
* conversation"): `e.props` holds `scene`, `plugin`, `glass` with its defaults filled in or `false`,
|
|
11
|
+
* and `overrideColorScheme` when it was set (2.1.323 or later); `e.requestId` is `backdrop`. With no backdrop set there is
|
|
12
12
|
* nothing to draw.
|
|
13
13
|
*/
|
|
14
14
|
export function backdropRender(
|