@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/api/audio.ts
CHANGED
|
@@ -2,7 +2,12 @@ import { z } from 'zod';
|
|
|
2
2
|
import type { ModsNamespaceApi } from '../types.ts';
|
|
3
3
|
import { call, parse, type Deps } from './call.ts';
|
|
4
4
|
|
|
5
|
-
const speak = z.looseObject({ text: z.string() });
|
|
5
|
+
const speak = z.looseObject({ text: z.string(), voice: z.string().optional() });
|
|
6
|
+
/** `speak(text, { voice?, signal? })` (2.1.330 declarations): the signal stops the utterance and does not cross. */
|
|
7
|
+
const speakOptions = z.object({
|
|
8
|
+
voice: z.string().optional(),
|
|
9
|
+
signal: z.instanceof(AbortSignal).optional(),
|
|
10
|
+
});
|
|
6
11
|
|
|
7
12
|
/**
|
|
8
13
|
* `AudioClip` (claude-code/index.d.ts:787): the plugin's own file `{ asset }`, a URL the engine
|
|
@@ -41,9 +46,17 @@ export const audioApi = (deps: Deps): ModsNamespaceApi<'audio'> => ({
|
|
|
41
46
|
);
|
|
42
47
|
},
|
|
43
48
|
// "which synthesizer spoke, once the utterance has ended" (claude-code/index.d.ts:2839): the platform's own.
|
|
44
|
-
speak: async (...args) =>
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
speak: async (...args) => {
|
|
50
|
+
const { voice, signal } = parse('$.audio.speak', speakOptions, args[1] ?? {});
|
|
51
|
+
const input = {
|
|
52
|
+
text: parse('$.audio.speak', z.string(), args[0]),
|
|
53
|
+
...(voice === undefined ? {} : { voice }),
|
|
54
|
+
};
|
|
55
|
+
return call(deps, 'audio.speak', input, async (e) => {
|
|
56
|
+
const asked = parse('$.audio.speak', speak, e);
|
|
57
|
+
const said = asked.voice === undefined ? {} : { voice: asked.voice };
|
|
58
|
+
await deps.ports.audio.speak(asked.text, { ...said, signal: signal ?? deps.signal });
|
|
47
59
|
return { via: 'system' };
|
|
48
|
-
})
|
|
60
|
+
});
|
|
61
|
+
},
|
|
49
62
|
});
|
package/src/mods/api/build.ts
CHANGED
|
@@ -29,6 +29,8 @@ import { telemetryApi } from './telemetry.ts';
|
|
|
29
29
|
import { themeApi } from './theme.ts';
|
|
30
30
|
import { toolApi } from './tool.ts';
|
|
31
31
|
import { turnApi } from './turn.ts';
|
|
32
|
+
import { vcsApi } from './vcs.ts';
|
|
33
|
+
import { wasmApi } from './wasm.ts';
|
|
32
34
|
|
|
33
35
|
/** What every mod's `$` shares: the chain its calls fire events through, the ports they reach, what mods registered. */
|
|
34
36
|
export interface ModsApiOptions {
|
|
@@ -71,7 +73,7 @@ export interface ModsApiHandle {
|
|
|
71
73
|
/** The `$` the mod's hooks receive, after the hooks of other mods on `engine.create` changed it. */
|
|
72
74
|
readonly api: ModsApi;
|
|
73
75
|
readonly scope: Scope;
|
|
74
|
-
/** Unloads the mod: its timers stop, what it registered and the
|
|
76
|
+
/** Unloads the mod: its timers stop, what it registered and the theme it set go, its scope leaves the book. */
|
|
75
77
|
dispose(): void;
|
|
76
78
|
}
|
|
77
79
|
|
|
@@ -164,8 +166,10 @@ export async function createModsApi(
|
|
|
164
166
|
http: httpApi(deps),
|
|
165
167
|
process: processApi(deps),
|
|
166
168
|
mcp: mcpApi(deps),
|
|
169
|
+
wasm: wasmApi(deps),
|
|
167
170
|
audio: audioApi(deps),
|
|
168
171
|
telemetry: telemetryApi(deps),
|
|
172
|
+
vcs: vcsApi(deps),
|
|
169
173
|
});
|
|
170
174
|
const api = await fireEngineCreate(deps, built, {
|
|
171
175
|
book: options.scopes,
|
|
@@ -177,8 +181,8 @@ export async function createModsApi(
|
|
|
177
181
|
dispose() {
|
|
178
182
|
background.abort(new Error(`${name} was unloaded`));
|
|
179
183
|
options.scopes.delete(name);
|
|
180
|
-
// A
|
|
181
|
-
if (options.registries.
|
|
184
|
+
// A mod that unloads takes its own theme with it (§10.25.6 item 3); a reload does not keep it.
|
|
185
|
+
if (options.registries.theme.removePlugin(name)) options.ports.theme.changed(undefined);
|
|
182
186
|
for (const registry of [
|
|
183
187
|
options.registries.commands,
|
|
184
188
|
options.registries.tools,
|
package/src/mods/api/call.ts
CHANGED
|
@@ -58,6 +58,13 @@ const EVENT_ANSWERED = [
|
|
|
58
58
|
'prompt.suggest',
|
|
59
59
|
'session.send',
|
|
60
60
|
'agent.spawn',
|
|
61
|
+
// `$.vcs` resolves to its event's result, which the client raises for its own work too (§10.19.8).
|
|
62
|
+
'vcs.detect',
|
|
63
|
+
'vcs.diff',
|
|
64
|
+
'vcs.isolate',
|
|
65
|
+
'vcs.list',
|
|
66
|
+
'vcs.release',
|
|
67
|
+
'vcs.status',
|
|
61
68
|
] as const satisfies readonly ApiEventName[];
|
|
62
69
|
|
|
63
70
|
const EVENT_ANSWERED_SET: ReadonlySet<string> = new Set(EVENT_ANSWERED);
|
package/src/mods/api/command.ts
CHANGED
|
@@ -71,6 +71,23 @@ async function listCommands(deps: Deps): Promise<readonly CommandListing[]> {
|
|
|
71
71
|
return [...host, ...registered];
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* A `command.run` answer as the model may read it (Agent Plugins Extended §10.30.1, "Hiding command
|
|
76
|
+
* text from Claude", 2.1.326): `isTextDisplayOnly: true` stands only when a hook answered without
|
|
77
|
+
* calling `next` (`answeredByHook`) for a command registered without `immediate`; otherwise it is
|
|
78
|
+
* dropped, so the host gives the text to the model too. A host prints `text` and keeps it from the
|
|
79
|
+
* model when the answer still carries the flag.
|
|
80
|
+
*/
|
|
81
|
+
export function displayOnlyReply(
|
|
82
|
+
reply: unknown,
|
|
83
|
+
facts: { readonly answeredByHook: boolean; readonly immediate: boolean },
|
|
84
|
+
): unknown {
|
|
85
|
+
if (typeof reply !== 'object' || reply === null || !('isTextDisplayOnly' in reply)) return reply;
|
|
86
|
+
if (facts.answeredByHook && !facts.immediate && reply.isTextDisplayOnly === true) return reply;
|
|
87
|
+
const { isTextDisplayOnly: _dropped, ...rest } = reply;
|
|
88
|
+
return rest;
|
|
89
|
+
}
|
|
90
|
+
|
|
74
91
|
/** The core of `$.command.run`: the host's command body, marked as running so a nested `runCommand` for it does not fire again. */
|
|
75
92
|
async function runCommandBody(deps: Deps, e: unknown): Promise<unknown> {
|
|
76
93
|
const command = parse('$.command.run', run, e);
|
|
@@ -99,14 +116,17 @@ export function commandApi(deps: Deps): ModsNamespaceApi<'command'> {
|
|
|
99
116
|
origin: pluginOrigin(deps),
|
|
100
117
|
presentation: deps.presentation?.() ?? commandPresentation(undefined),
|
|
101
118
|
};
|
|
102
|
-
|
|
119
|
+
let reached = false;
|
|
120
|
+
const answer = await deps.replay.once(deps.plugin, 'command.run', () =>
|
|
103
121
|
call(
|
|
104
122
|
deps,
|
|
105
123
|
'command.run',
|
|
106
124
|
request,
|
|
107
|
-
refusing(deps, 'command.run', (e) => runCommandBody(deps, e)),
|
|
125
|
+
refusing(deps, 'command.run', (e) => ((reached = true), runCommandBody(deps, e))),
|
|
108
126
|
),
|
|
109
127
|
);
|
|
128
|
+
const immediate = deps.registries.commands.get(request.command)?.immediate === true;
|
|
129
|
+
return displayOnlyReply(answer, { answeredByHook: !reached, immediate });
|
|
110
130
|
},
|
|
111
131
|
list: async () => call(deps, 'command.list', {}, () => listCommands(deps)),
|
|
112
132
|
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { EventData } from './ports.ts';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The optional ports of the members of `$` the 2.1.330 declarations add (Agent Plugins Extended
|
|
5
|
+
* §10.7.1, §10.19.8): what each asks of the host, and what each answers where the host gives none
|
|
6
|
+
* (`DECLARED_PORT_DEFAULTS`, joined into `OPTIONAL_PORT_DEFAULTS`).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/** What `$.agent.limits()` resolves to (`AgentLimits`, claude-code/index.d.ts:364). */
|
|
10
|
+
export interface AgentLimits {
|
|
11
|
+
readonly concurrent: number;
|
|
12
|
+
readonly depth: number;
|
|
13
|
+
readonly isBackgroundEnabled: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** A tool call `$.agent.call` makes as an agent's own (`{ tool, input, agentId? }`, :3922). */
|
|
17
|
+
export interface AgentToolCall {
|
|
18
|
+
readonly tool: string;
|
|
19
|
+
readonly input: EventData;
|
|
20
|
+
/** The agent whose loop makes the call; absent, the main conversation. */
|
|
21
|
+
readonly agentId?: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** The agents' loops: a tool run as one agent's own call, and how many agents the session allows. */
|
|
25
|
+
export interface ModAgentCalls {
|
|
26
|
+
/**
|
|
27
|
+
* Runs the call in that agent's loop as its model's call would run (its rules, hooks, dialog and
|
|
28
|
+
* `tool.judge`; `tool.call` fires there), adding nothing to its conversation; answers the tool's
|
|
29
|
+
* `ToolCallResult` or `{ deny }`.
|
|
30
|
+
*/
|
|
31
|
+
call(request: AgentToolCall, signal: AbortSignal): Promise<unknown>;
|
|
32
|
+
limits(): Promise<AgentLimits>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** What `$.session.info()` resolves to (`SessionInfo`, :14833). */
|
|
36
|
+
export interface SessionInfo {
|
|
37
|
+
readonly transcriptPath: string;
|
|
38
|
+
readonly scratchpadDir?: string;
|
|
39
|
+
readonly promptId?: string;
|
|
40
|
+
readonly agentType?: string;
|
|
41
|
+
readonly configRoot?: string;
|
|
42
|
+
readonly platform?: 'macos' | 'linux' | 'windows' | 'wsl' | 'unknown';
|
|
43
|
+
readonly isHosted?: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** What `$.session.machine()` resolves to (`SessionMachine`, :14888), read without running a program. */
|
|
47
|
+
export interface SessionMachine {
|
|
48
|
+
/** As `uname -s`, `-r` and `-m` print them. */
|
|
49
|
+
readonly sysname: string;
|
|
50
|
+
readonly release: string;
|
|
51
|
+
readonly machine: string;
|
|
52
|
+
/** Which of npm, yarn, pnpm and bun are on the `PATH`. */
|
|
53
|
+
readonly packageManagers: readonly string[];
|
|
54
|
+
/** Which of bun, deno and node are on the `PATH`. */
|
|
55
|
+
readonly runtimes: readonly string[];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Facts of the session and its machine. */
|
|
59
|
+
export interface ModSessionFacts {
|
|
60
|
+
info(): Promise<SessionInfo>;
|
|
61
|
+
machine(): Promise<SessionMachine>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The variables a command hook of `plugin` gets (`hookEnv()` of `$` for processes, :4361): `CLAUDECODE`,
|
|
66
|
+
* `CLAUDE_CODE_SESSION_ID`, `CLAUDE_CODE_CHILD_SESSION`, `CLAUDE_CODE_SESSION_ATTENDED`,
|
|
67
|
+
* `CLAUDE_PID`, `CLAUDE_PROJECT_DIR`, `CLAUDE_PLUGIN_ROOT`, `CLAUDE_PLUGIN_DATA` (the host creates
|
|
68
|
+
* that folder, and rejects when it cannot) and `TRACEPARENT` while a trace is passed on.
|
|
69
|
+
*/
|
|
70
|
+
export interface ModHookEnv {
|
|
71
|
+
of(plugin: string, signal: AbortSignal): Promise<Readonly<Record<string, string>>>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** The bytes `$.wasm.compile` hands over, as its event carries them (`{ base64, path? }`). */
|
|
75
|
+
export interface WasmSource {
|
|
76
|
+
readonly base64: string;
|
|
77
|
+
/** The file the bytes were read from, absolute; absent when the mod passed the bytes. */
|
|
78
|
+
readonly path?: string | undefined;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The mod environment's WebAssembly (§10.3.5 item 5): compiles the bytes into a module the mod
|
|
83
|
+
* passes to `WebAssembly.instantiate`; rejects for a module with no room.
|
|
84
|
+
*/
|
|
85
|
+
export interface ModWasm {
|
|
86
|
+
compile(source: WasmSource, plugin: string, signal: AbortSignal): Promise<unknown>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Version control (`$.vcs`, experimental in the 2.1.330 declarations, :4440; events :5552–:5787):
|
|
91
|
+
* the client's own behaviour behind each `vcs.*` event, which answers for Git or with nothing
|
|
92
|
+
* (Agent Plugins Extended §10.19.8, J10.23). Each takes the event as the hooks left it.
|
|
93
|
+
*/
|
|
94
|
+
export interface ModVcs {
|
|
95
|
+
/** The working copy at `path`: `{ vcs, root, mainRoot, revision, branch, defaultBranch, remote }`, or `null`. */
|
|
96
|
+
detect(request: EventData, signal: AbortSignal): Promise<unknown>;
|
|
97
|
+
/** `{ base, files }`, or `{ unknown }`. */
|
|
98
|
+
diff(request: EventData, signal: AbortSignal): Promise<unknown>;
|
|
99
|
+
/** `{ path, vcs, revision?, branch? }`, or `{ deny }`. */
|
|
100
|
+
isolate(request: EventData, signal: AbortSignal): Promise<unknown>;
|
|
101
|
+
/** The working copies of the repository holding `path`: `[{ path, vcs, branch? }]`. */
|
|
102
|
+
list(request: EventData, signal: AbortSignal): Promise<unknown>;
|
|
103
|
+
/** `{ isReleased: true }` for a copy the client made, `{ kept }` for any other. */
|
|
104
|
+
release(request: EventData, signal: AbortSignal): Promise<unknown>;
|
|
105
|
+
/** `{ changes, revision?, unpublished }`, or `{ unknown }`. */
|
|
106
|
+
status(request: EventData, signal: AbortSignal): Promise<unknown>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** The optional ports of this file, by the name `ModOptionalPorts` gives each. */
|
|
110
|
+
export interface DeclaredOptionalPorts {
|
|
111
|
+
/** `$.agent.call` and `$.agent.limits` (:3922, :364). */
|
|
112
|
+
readonly agentCalls: ModAgentCalls;
|
|
113
|
+
/** `$.session.info` and `$.session.machine` (:3449, :3470). */
|
|
114
|
+
readonly sessionFacts: ModSessionFacts;
|
|
115
|
+
/** `hookEnv` of the processes namespace of `$` (:4361). */
|
|
116
|
+
readonly hookEnv: ModHookEnv;
|
|
117
|
+
/** `$.wasm.compile` (:4605). */
|
|
118
|
+
readonly wasm: ModWasm;
|
|
119
|
+
/** `$.vcs` and the `vcs.*` events (:4440). */
|
|
120
|
+
readonly vcs: ModVcs;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// The layer gate reads `process` and a dot as the global, so the namespace is named once, apart.
|
|
124
|
+
const PROCESS = 'process';
|
|
125
|
+
|
|
126
|
+
const refuse = (reason: string) => (): Promise<never> => Promise.reject(new Error(reason));
|
|
127
|
+
|
|
128
|
+
/** Judgment: no working copy is known without the host, so core answers as for a folder that is none. */
|
|
129
|
+
const NO_VCS = 'no version control system is known for this path';
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* What each port answers where the host gives none: a call that needs the host rejects naming what
|
|
133
|
+
* is missing; `$.vcs` answers as core does where no working copy is found: `detect` `null`, `diff`
|
|
134
|
+
* and `status` `{ unknown }`, `isolate` `{ deny }`, `list` none, `release` `{ kept }`.
|
|
135
|
+
*/
|
|
136
|
+
export const DECLARED_PORT_DEFAULTS: DeclaredOptionalPorts = Object.freeze({
|
|
137
|
+
agentCalls: Object.freeze({
|
|
138
|
+
call: refuse('$.agent.call: this host runs no agent loop for mods'),
|
|
139
|
+
limits: refuse('$.agent.limits: this host does not tell its agent limits'),
|
|
140
|
+
}),
|
|
141
|
+
sessionFacts: Object.freeze({
|
|
142
|
+
info: refuse('$.session.info: this host does not tell the session info'),
|
|
143
|
+
machine: refuse('$.session.machine: this host does not tell the machine'),
|
|
144
|
+
}),
|
|
145
|
+
hookEnv: Object.freeze({ of: refuse(`$.${PROCESS}.hookEnv: this host runs no command hooks`) }),
|
|
146
|
+
wasm: Object.freeze({ compile: refuse('$.wasm.compile: this host compiles no WebAssembly') }),
|
|
147
|
+
vcs: Object.freeze({
|
|
148
|
+
detect: () => Promise.resolve(null),
|
|
149
|
+
diff: () => Promise.resolve({ unknown: NO_VCS }),
|
|
150
|
+
isolate: () => Promise.resolve({ deny: NO_VCS }),
|
|
151
|
+
list: () => Promise.resolve([]),
|
|
152
|
+
release: () => Promise.resolve({ kept: NO_VCS }),
|
|
153
|
+
status: () => Promise.resolve({ unknown: NO_VCS }),
|
|
154
|
+
}),
|
|
155
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MODS_API } from '../../protocol/mods-api-names.ts';
|
|
2
|
-
import { ENGINE_ORIGIN } from '../../protocol/mods-events.ts';
|
|
2
|
+
import { ENGINE_ORIGIN, type ModTier } from '../../protocol/mods-events.ts';
|
|
3
3
|
import type { ModsApi } from '../types.ts';
|
|
4
4
|
import { type Deps } from './call.ts';
|
|
5
5
|
import type { CallContext, Scope } from './scope.ts';
|
|
@@ -17,6 +17,13 @@ export interface ModApiSettlementOptions extends ApiOwner {
|
|
|
17
17
|
readonly canWithhold: boolean;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* The tiers whose mods may withhold a namespace at `engine.create`: `prepend` and `append` (§10.19.5,
|
|
22
|
+
* 2.1.330; before, every tier but `user`, the built-in one included).
|
|
23
|
+
*/
|
|
24
|
+
const WITHHOLDING_TIERS: ReadonlySet<ModTier> = new Set<ModTier>(['prepend', 'append']);
|
|
25
|
+
export const mayWithhold = (tier: ModTier): boolean => WITHHOLDING_TIERS.has(tier);
|
|
26
|
+
|
|
20
27
|
/** Runs `run` with `context` as the current one in every scope of `scopes`, until it settles. */
|
|
21
28
|
function inAll<T>(
|
|
22
29
|
scopes: readonly Scope[],
|
package/src/mods/api/exec.ts
CHANGED
|
@@ -42,6 +42,7 @@ const spawnEvent = spawnRequest.extend({ cwd: z.string() });
|
|
|
42
42
|
const NAMESPACE = 'process';
|
|
43
43
|
const RUN = `${NAMESPACE}.run` as const;
|
|
44
44
|
const SPAWN = `${NAMESPACE}.spawn` as const;
|
|
45
|
+
const HOOK_ENV = `${NAMESPACE}.hookEnv` as const;
|
|
45
46
|
const LABEL_RUN = `$.${RUN}`;
|
|
46
47
|
const LABEL_SPAWN = `$.${SPAWN}`;
|
|
47
48
|
|
|
@@ -153,4 +154,7 @@ async function* spawn(deps: Deps, args: readonly unknown[]): AsyncGenerator<unkn
|
|
|
153
154
|
export const processApi = (deps: Deps): ModsNamespaceApi<'process'> => ({
|
|
154
155
|
run: async (...args) => call(deps, RUN, await runInput(deps, args), (e) => run(deps, e)),
|
|
155
156
|
spawn: (...args) => spawn(deps, args),
|
|
157
|
+
// The variables a command hook of this plugin gets (claude-code/index.d.ts:4361); `run` and `spawn` set none of them.
|
|
158
|
+
hookEnv: async () =>
|
|
159
|
+
call(deps, HOOK_ENV, {}, () => deps.ports.hookEnv.of(deps.plugin, deps.signal)),
|
|
156
160
|
});
|
package/src/mods/api/fs-ports.ts
CHANGED
|
@@ -39,16 +39,24 @@ export interface FsAncestorsRequest {
|
|
|
39
39
|
readonly below?: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
/** A range of a file in bytes (`$.fs.read`'s `offset` and `length`, v2.1.326): absent `length`, to the end. */
|
|
43
|
+
export interface FsRange {
|
|
44
|
+
readonly offset: number;
|
|
45
|
+
readonly length?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
42
48
|
/** The host's file system, with the same permissions as the user running Claude Code. Paths are absolute. */
|
|
43
49
|
export interface ModFs {
|
|
44
50
|
/**
|
|
45
51
|
* The file's text and its size in bytes, or `undefined` when there is no such file; asked `as:
|
|
46
|
-
* 'bytes'`, also its bytes as standard padded `base64` (claude-code/index.d.ts:5216).
|
|
52
|
+
* 'bytes'`, also its bytes as standard padded `base64` (claude-code/index.d.ts:5216). Given a
|
|
53
|
+
* `range`, only those bytes, and `bytes` is how many were read.
|
|
47
54
|
*/
|
|
48
55
|
read(
|
|
49
56
|
path: string,
|
|
50
57
|
signal: AbortSignal,
|
|
51
58
|
as?: 'text' | 'bytes',
|
|
59
|
+
range?: FsRange,
|
|
52
60
|
): Promise<{ text: string; bytes: number; base64?: string } | undefined>;
|
|
53
61
|
write(path: string, text: string, signal: AbortSignal): Promise<void>;
|
|
54
62
|
list(path: string, signal: AbortSignal): Promise<readonly FsEntry[] | undefined>;
|
package/src/mods/api/fs.ts
CHANGED
|
@@ -4,13 +4,19 @@ import type { ModsNamespaceApi } from '../types.ts';
|
|
|
4
4
|
import { call, parse, type Deps } from './call.ts';
|
|
5
5
|
import { absolutePath, workingDirectory } from './paths.ts';
|
|
6
6
|
import { ancestors } from './fs-ancestors.ts';
|
|
7
|
-
import type { FsEntry, FsStat } from './ports.ts';
|
|
7
|
+
import type { FsEntry, FsRange, FsStat } from './ports.ts';
|
|
8
8
|
import { utf8Length } from '../../format/utf8.ts';
|
|
9
9
|
|
|
10
10
|
const pathEvent = z.looseObject({ path: z.string() });
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
/**
|
|
12
|
+
* `$.fs.read(path, { as?, offset?, length? })` (`FsReadBytesOptions`, claude-code/index.d.ts:6539):
|
|
13
|
+
* `text`, the default, or `bytes` as `{ base64 }`; from v2.1.326 `offset` and `length`, in bytes,
|
|
14
|
+
* read a range. Its event pins `as` and carries the range when given.
|
|
15
|
+
*/
|
|
16
|
+
const byteCount = z.number().int().min(0);
|
|
17
|
+
const range = { offset: byteCount.optional(), length: byteCount.optional() };
|
|
18
|
+
const readOptions = z.looseObject({ as: z.enum(['text', 'bytes']).default('text'), ...range });
|
|
19
|
+
const readEvent = z.looseObject({ path: z.string(), as: z.enum(['text', 'bytes']), ...range });
|
|
14
20
|
/** `$.fs.stat(path, { resolve? })` (:3525): `resolve` false when left out, as its event pins it (:7582). */
|
|
15
21
|
const statOptions = z.looseObject({ resolve: z.boolean().default(false) });
|
|
16
22
|
const statEvent = z.looseObject({ path: z.string(), resolve: z.boolean() });
|
|
@@ -40,9 +46,18 @@ const statOf = (stat: FsStat, resolve: boolean): FsStat => ({
|
|
|
40
46
|
const overLimit = (path: string, bytes: number): string =>
|
|
41
47
|
`${path}: ${bytes} bytes is over the ${MOD_LIMITS.fileBytes}-byte limit`;
|
|
42
48
|
|
|
49
|
+
/** The range the event asks for, when it asks for one: the port reads only those bytes. */
|
|
50
|
+
const rangeOf = (offset: number | undefined, length: number | undefined): FsRange | undefined =>
|
|
51
|
+
offset === undefined && length === undefined
|
|
52
|
+
? undefined
|
|
53
|
+
: { offset: offset ?? 0, ...(length === undefined ? {} : { length }) };
|
|
54
|
+
|
|
43
55
|
async function read(deps: Deps, e: unknown): Promise<string | { base64: string }> {
|
|
44
|
-
const { path, as } = parse('$.fs.read', readEvent, e);
|
|
45
|
-
|
|
56
|
+
const { path, as, offset, length } = parse('$.fs.read', readEvent, e);
|
|
57
|
+
// 4 MiB for one file, or for one range read (reference.md §10.12, "Limits").
|
|
58
|
+
if (length !== undefined && length > MOD_LIMITS.fileBytes)
|
|
59
|
+
throw new Error(overLimit(path, length));
|
|
60
|
+
const file = await deps.ports.fs.read(path, deps.signal, as, rangeOf(offset, length));
|
|
46
61
|
if (file === undefined) throw new Error(`${path}: no such file`);
|
|
47
62
|
if (file.bytes > MOD_LIMITS.fileBytes) throw new Error(overLimit(path, file.bytes));
|
|
48
63
|
if (as === 'text') return file.text;
|
|
@@ -81,10 +96,14 @@ export function fsApi(deps: Deps): ModsNamespaceApi<'fs'> {
|
|
|
81
96
|
});
|
|
82
97
|
return {
|
|
83
98
|
read: async (...args) => {
|
|
84
|
-
const { as } = parse('$.fs.read', readOptions, args[1] ?? {});
|
|
85
|
-
|
|
86
|
-
read
|
|
87
|
-
|
|
99
|
+
const { as, offset, length } = parse('$.fs.read', readOptions, args[1] ?? {});
|
|
100
|
+
const asked = {
|
|
101
|
+
...(await at('$.fs.read', args[0])),
|
|
102
|
+
as,
|
|
103
|
+
...(offset === undefined ? {} : { offset }),
|
|
104
|
+
...(length === undefined ? {} : { length }),
|
|
105
|
+
};
|
|
106
|
+
return call(deps, 'fs.read', asked, (e) => read(deps, e));
|
|
88
107
|
},
|
|
89
108
|
write: async (...args) => {
|
|
90
109
|
const text = parse('$.fs.write', z.string(), args[1]);
|
package/src/mods/api/gate.ts
CHANGED
|
@@ -25,11 +25,10 @@ export const unsentReason = {
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* The toast Claude Code shows when the user stopped a turn and a mod then tried to start work on its
|
|
28
|
-
* own and was refused (
|
|
29
|
-
*
|
|
28
|
+
* own and was refused (spec §10.43.2, "`stopped · type a message to continue`", the 2.1.330 wording).
|
|
29
|
+
* Nothing needs fixing: after the next message, mods can start work again.
|
|
30
30
|
*/
|
|
31
|
-
export const STOPPED_TOAST =
|
|
32
|
-
'Stopped: type a message to continue; a mod cannot resume work after Stop';
|
|
31
|
+
export const STOPPED_TOAST = 'stopped · type a message to continue';
|
|
33
32
|
|
|
34
33
|
/** What a call that waited in the queue gives when the user stops the turn before it ran. */
|
|
35
34
|
export const QUEUE_DROPS = {
|
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
ModTurns,
|
|
22
22
|
PromptPainted,
|
|
23
23
|
} from './ports.ts';
|
|
24
|
+
import { DECLARED_PORT_DEFAULTS, type DeclaredOptionalPorts } from './declared-port-types.ts';
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* The ports `createModsHost` takes, by group (docs/API.md, "Mods"). A host gives the platform and
|
|
@@ -62,7 +63,7 @@ export interface ModSessionPorts {
|
|
|
62
63
|
* app that draws a backdrop, telemetry the engine itself does nothing with, no sign-in to tell, a
|
|
63
64
|
* prompt box that takes no decorations and holds no media, and no host that raises notifications.
|
|
64
65
|
*/
|
|
65
|
-
export interface ModOptionalPorts {
|
|
66
|
+
export interface ModOptionalPorts extends DeclaredOptionalPorts {
|
|
66
67
|
readonly mcp: McpCaller;
|
|
67
68
|
readonly audio: ModAudio;
|
|
68
69
|
readonly theme: ModTheme;
|
|
@@ -116,6 +117,7 @@ const promptBoxOver = (
|
|
|
116
117
|
* notifications, `isSent: false` (:2534).
|
|
117
118
|
*/
|
|
118
119
|
export const OPTIONAL_PORT_DEFAULTS: ModOptionalPorts = Object.freeze({
|
|
120
|
+
...DECLARED_PORT_DEFAULTS,
|
|
119
121
|
audio: Object.freeze({ play: () => Promise.resolve(), speak: noSynthesizer }),
|
|
120
122
|
mcp: Object.freeze({
|
|
121
123
|
ensureConnected: () => Promise.resolve('unavailable' as const),
|
|
@@ -140,6 +142,12 @@ export const OPTIONAL_PORT_DEFAULTS: ModOptionalPorts = Object.freeze({
|
|
|
140
142
|
/** `given` with each optional port it left out filled from `OPTIONAL_PORT_DEFAULTS`. */
|
|
141
143
|
export const withDefaultPorts = (given: ModHostPortsInput): ModHostPorts => ({
|
|
142
144
|
...given,
|
|
145
|
+
...documentedDefaults(given),
|
|
146
|
+
...declaredDefaults(given),
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
/** The optional ports of the documented members, each filled when `given` left it out. */
|
|
150
|
+
const documentedDefaults = (given: ModHostPortsInput) => ({
|
|
143
151
|
audio: given.audio ?? OPTIONAL_PORT_DEFAULTS.audio,
|
|
144
152
|
mcp: given.mcp ?? OPTIONAL_PORT_DEFAULTS.mcp,
|
|
145
153
|
theme: given.theme ?? OPTIONAL_PORT_DEFAULTS.theme,
|
|
@@ -148,3 +156,12 @@ export const withDefaultPorts = (given: ModHostPortsInput): ModHostPorts => ({
|
|
|
148
156
|
promptBox: given.promptBox ?? promptBoxOver(() => given.prompts.read()),
|
|
149
157
|
notifications: given.notifications ?? OPTIONAL_PORT_DEFAULTS.notifications,
|
|
150
158
|
});
|
|
159
|
+
|
|
160
|
+
/** The optional ports of the members only the 2.1.330 declarations name, each filled when left out. */
|
|
161
|
+
const declaredDefaults = (given: ModHostPortsInput) => ({
|
|
162
|
+
agentCalls: given.agentCalls ?? OPTIONAL_PORT_DEFAULTS.agentCalls,
|
|
163
|
+
sessionFacts: given.sessionFacts ?? OPTIONAL_PORT_DEFAULTS.sessionFacts,
|
|
164
|
+
hookEnv: given.hookEnv ?? OPTIONAL_PORT_DEFAULTS.hookEnv,
|
|
165
|
+
wasm: given.wasm ?? OPTIONAL_PORT_DEFAULTS.wasm,
|
|
166
|
+
vcs: given.vcs ?? OPTIONAL_PORT_DEFAULTS.vcs,
|
|
167
|
+
});
|
package/src/mods/api/index.ts
CHANGED
|
@@ -16,15 +16,16 @@ export {
|
|
|
16
16
|
export {
|
|
17
17
|
createRegistries,
|
|
18
18
|
type AgentType,
|
|
19
|
-
type BackdropBoard,
|
|
20
19
|
type CommandDef,
|
|
21
20
|
type CommandRunDepth,
|
|
22
21
|
type CommandRuns,
|
|
23
22
|
type ModRegistries,
|
|
24
23
|
type RegisteredKind,
|
|
25
24
|
type Registry,
|
|
25
|
+
type ThemeBoard,
|
|
26
26
|
type ToolDef,
|
|
27
27
|
} from './registries.ts';
|
|
28
|
+
export { sceneBackdrop } from './theme.ts';
|
|
28
29
|
export {
|
|
29
30
|
createReplayLedger,
|
|
30
31
|
replayedLine,
|
|
@@ -81,8 +82,13 @@ export {
|
|
|
81
82
|
} from './settings-layers.ts';
|
|
82
83
|
export { readEngineSettings, type EngineReadOptions } from './engine-settings.ts';
|
|
83
84
|
export { API_RULES } from './rules.ts';
|
|
84
|
-
export { commandPresentation, type CommandPresentation } from './command.ts';
|
|
85
|
-
export {
|
|
85
|
+
export { commandPresentation, displayOnlyReply, type CommandPresentation } from './command.ts';
|
|
86
|
+
export {
|
|
87
|
+
mayWithhold,
|
|
88
|
+
settleModApi,
|
|
89
|
+
type ModApiSettlementOptions,
|
|
90
|
+
type ScopeBook,
|
|
91
|
+
} from './engine-create.ts';
|
|
86
92
|
export { runScopedModCall } from './scoped-call.ts';
|
|
87
93
|
export type * from './ports.ts';
|
|
88
94
|
export {
|
package/src/mods/api/mcp.ts
CHANGED
|
@@ -70,8 +70,16 @@ export const mcpApi = (deps: Deps): ModsNamespaceApi<'mcp'> => ({
|
|
|
70
70
|
const given = { server: args[0], tool: args[1], args: args[2] ?? {} };
|
|
71
71
|
return call(deps, 'mcp.call', parse('$.mcp.call', request, given), (e) => callTool(deps, e));
|
|
72
72
|
},
|
|
73
|
+
// `provider` is `{ plugin, tier }` of whoever configured the server (2.1.330; Agent Plugins
|
|
74
|
+
// Extended §10.19.7): the plugin whose manifest lists it, the only one a mod connects.
|
|
73
75
|
connect: async (...args) =>
|
|
74
|
-
call(
|
|
75
|
-
|
|
76
|
+
call(
|
|
77
|
+
deps,
|
|
78
|
+
'mcp.connect',
|
|
79
|
+
{
|
|
80
|
+
server: parse('$.mcp.connect', z.string(), args[0]),
|
|
81
|
+
provider: { plugin: deps.plugin, tier: deps.tier },
|
|
82
|
+
},
|
|
83
|
+
(e) => connectOwn(deps, e),
|
|
76
84
|
),
|
|
77
85
|
});
|
|
@@ -12,26 +12,53 @@ export interface ModAudio {
|
|
|
12
12
|
* loop plays until it aborts), the caller's own or the call's.
|
|
13
13
|
*/
|
|
14
14
|
play(request: EventData, signal?: AbortSignal): Promise<void>;
|
|
15
|
-
|
|
15
|
+
/** Speaks `text` in `voice` when given; `signal` stops the utterance, the caller's own or the call's. */
|
|
16
|
+
speak(
|
|
17
|
+
text: string,
|
|
18
|
+
options?: { readonly voice?: string; readonly signal?: AbortSignal },
|
|
19
|
+
): Promise<void>;
|
|
16
20
|
}
|
|
17
21
|
|
|
22
|
+
/** How a surface frosts its panels over a scene, defaults filled in, or `false` where they stay as they are. */
|
|
23
|
+
export type BackdropGlass =
|
|
24
|
+
| { readonly blur: number; readonly tint?: string; readonly opacity: number }
|
|
25
|
+
| false;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The session's backdrop (`ThemeBackdrop`, claude-code/index.d.ts:16859): a scene the mod's
|
|
29
|
+
* `Backdrop` hook draws, with its glass, or a still ground no hook draws, `{ color }`,
|
|
30
|
+
* `{ gradient }` or `{ vector }` (`ThemeGround`, :17128), passed to the surface as given.
|
|
31
|
+
*/
|
|
32
|
+
export type ThemeBackdrop =
|
|
33
|
+
| { readonly scene: string; readonly glass: BackdropGlass }
|
|
34
|
+
| { readonly color: string }
|
|
35
|
+
| { readonly gradient: Readonly<Record<string, unknown>> }
|
|
36
|
+
| { readonly vector: Readonly<Record<string, unknown>> };
|
|
37
|
+
|
|
18
38
|
/**
|
|
19
|
-
* The session's
|
|
20
|
-
*
|
|
39
|
+
* The session's one theme (Agent Plugins Extended §10.25.6 item 3): what the last `$.theme.set`
|
|
40
|
+
* gave, and `plugin`, the mod that set it. `colors`, `sound` and `style` are the Desktop app's,
|
|
41
|
+
* passed as given (J10.113).
|
|
42
|
+
*/
|
|
43
|
+
export interface SessionTheme {
|
|
44
|
+
readonly plugin: string;
|
|
45
|
+
readonly backdrop?: ThemeBackdrop;
|
|
46
|
+
/** Overrides the user's light or dark mode, so a surface draws its own text to suit. */
|
|
47
|
+
readonly overrideColorScheme?: 'light' | 'dark';
|
|
48
|
+
readonly colors?: Readonly<Record<string, unknown>>;
|
|
49
|
+
readonly sound?: Readonly<Record<string, unknown>>;
|
|
50
|
+
readonly style?: Readonly<Record<string, unknown>>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The `Backdrop` render site's props (reference.md, "Render sites"): the scene, the mod that set
|
|
55
|
+
* it, its glass with the defaults filled in or `false`, and `overrideColorScheme` when given.
|
|
21
56
|
*/
|
|
22
57
|
export interface SessionBackdrop {
|
|
23
|
-
readonly
|
|
58
|
+
readonly scene: string;
|
|
24
59
|
readonly plugin: string;
|
|
25
|
-
|
|
26
|
-
readonly
|
|
27
|
-
/**
|
|
28
|
-
* How the surface frosts its panels over the drawing, defaults filled in (`blur` 16, `opacity`
|
|
29
|
-
* 0.6), or `false` where they stay as they are (`RenderPropsOf` `Backdrop`, claude-code/index.d.ts:11396).
|
|
30
|
-
* `$.theme.set` always fills it; a backdrop a host builds without it draws with the default glass.
|
|
31
|
-
*/
|
|
32
|
-
readonly glass?:
|
|
33
|
-
| { readonly blur: number; readonly tint?: string; readonly opacity: number }
|
|
34
|
-
| false;
|
|
60
|
+
readonly glass?: BackdropGlass;
|
|
61
|
+
readonly overrideColorScheme?: 'light' | 'dark';
|
|
35
62
|
}
|
|
36
63
|
|
|
37
64
|
/** What `$.theme.set` resolves to (interface.md, "Put a backdrop behind the conversation"). */
|
|
@@ -46,8 +73,11 @@ export interface ModTheme {
|
|
|
46
73
|
* backdrops; otherwise `isDrawn: false` and the reason, such as no such app being connected.
|
|
47
74
|
*/
|
|
48
75
|
drawn(): Promise<BackdropDrawn>;
|
|
49
|
-
/**
|
|
50
|
-
|
|
76
|
+
/**
|
|
77
|
+
* The session's theme is now `theme`, or none: the apps paint it, raising the `Backdrop` site for
|
|
78
|
+
* a scene (`sceneBackdrop` gives its props), or take it off.
|
|
79
|
+
*/
|
|
80
|
+
changed(theme: SessionTheme | undefined): void;
|
|
51
81
|
}
|
|
52
82
|
/**
|
|
53
83
|
* How the session is signed in (`SessionIdentity`, claude-code/index.d.ts:12152): `kind`
|
|
@@ -60,6 +90,8 @@ export interface SessionIdentity {
|
|
|
60
90
|
readonly organizationId?: string;
|
|
61
91
|
readonly organizationType?: string;
|
|
62
92
|
readonly email?: string;
|
|
93
|
+
/** The email of the account the session's context belongs to, where the host tells it (2.1.330). */
|
|
94
|
+
readonly contextEmail?: string;
|
|
63
95
|
readonly isVerified: boolean;
|
|
64
96
|
}
|
|
65
97
|
|