@agentxm/client-core 0.10.1 → 0.11.1
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/dist/src/unstable/agent-capabilities/catalog.generated.d.ts +429 -0
- package/dist/src/unstable/agent-capabilities/catalog.generated.d.ts.map +1 -0
- package/dist/src/unstable/agent-capabilities/catalog.generated.js +474 -0
- package/dist/src/unstable/agent-capabilities/catalog.generated.js.map +1 -0
- package/dist/src/unstable/agent-capabilities/derive.d.ts +121 -0
- package/dist/src/unstable/agent-capabilities/derive.d.ts.map +1 -0
- package/dist/src/unstable/agent-capabilities/derive.js +72 -0
- package/dist/src/unstable/agent-capabilities/derive.js.map +1 -0
- package/dist/src/unstable/agent-capabilities/index.d.ts +13 -0
- package/dist/src/unstable/agent-capabilities/index.d.ts.map +1 -0
- package/dist/src/unstable/agent-capabilities/index.js +13 -0
- package/dist/src/unstable/agent-capabilities/index.js.map +1 -0
- package/dist/src/unstable/agent-capabilities/lookup.d.ts +10 -0
- package/dist/src/unstable/agent-capabilities/lookup.d.ts.map +1 -0
- package/dist/src/unstable/agent-capabilities/lookup.js +9 -0
- package/dist/src/unstable/agent-capabilities/lookup.js.map +1 -0
- package/dist/src/unstable/agent-capabilities/schema.d.ts +254 -0
- package/dist/src/unstable/agent-capabilities/schema.d.ts.map +1 -0
- package/dist/src/unstable/agent-capabilities/schema.js +178 -0
- package/dist/src/unstable/agent-capabilities/schema.js.map +1 -0
- package/dist/src/unstable/agent-capabilities/standards.d.ts +24 -0
- package/dist/src/unstable/agent-capabilities/standards.d.ts.map +1 -0
- package/dist/src/unstable/agent-capabilities/standards.js +24 -0
- package/dist/src/unstable/agent-capabilities/standards.js.map +1 -0
- package/dist/src/unstable/agent-capabilities/validate.d.ts +19 -0
- package/dist/src/unstable/agent-capabilities/validate.d.ts.map +1 -0
- package/dist/src/unstable/agent-capabilities/validate.js +107 -0
- package/dist/src/unstable/agent-capabilities/validate.js.map +1 -0
- package/dist/src/unstable/agents/coding-agent.d.ts +1 -0
- package/dist/src/unstable/agents/coding-agent.d.ts.map +1 -1
- package/dist/src/unstable/agents/coding-agent.js.map +1 -1
- package/dist/src/unstable/agents/detection.d.ts +4 -4
- package/dist/src/unstable/agents/registry.d.ts.map +1 -1
- package/dist/src/unstable/agents/registry.js +2 -0
- package/dist/src/unstable/agents/registry.js.map +1 -1
- package/dist/src/unstable/agents/repository.d.ts.map +1 -1
- package/dist/src/unstable/agents/repository.js +6 -1
- package/dist/src/unstable/agents/repository.js.map +1 -1
- package/dist/src/unstable/agents/types.d.ts +7 -1
- package/dist/src/unstable/agents/types.d.ts.map +1 -1
- package/dist/src/unstable/agents/types.js +5 -0
- package/dist/src/unstable/agents/types.js.map +1 -1
- package/dist/src/unstable/agents/universal/descriptor.d.ts +14 -0
- package/dist/src/unstable/agents/universal/descriptor.d.ts.map +1 -0
- package/dist/src/unstable/agents/universal/descriptor.js +21 -0
- package/dist/src/unstable/agents/universal/descriptor.js.map +1 -0
- package/dist/src/unstable/agents/universal/index.d.ts +8 -0
- package/dist/src/unstable/agents/universal/index.d.ts.map +1 -0
- package/dist/src/unstable/agents/universal/index.js +8 -0
- package/dist/src/unstable/agents/universal/index.js.map +1 -0
- package/dist/src/unstable/app-error/app-error.d.ts +2 -0
- package/dist/src/unstable/app-error/app-error.d.ts.map +1 -1
- package/dist/src/unstable/app-error/app-error.js +15 -0
- package/dist/src/unstable/app-error/app-error.js.map +1 -1
- package/dist/src/unstable/app-error/index.d.ts +1 -1
- package/dist/src/unstable/app-error/index.d.ts.map +1 -1
- package/dist/src/unstable/app-error/index.js +1 -1
- package/dist/src/unstable/app-error/index.js.map +1 -1
- package/dist/src/unstable/auth/credential-store.d.ts +1 -1
- package/dist/src/unstable/auth/guard-interaction.d.ts +1 -1
- package/dist/src/unstable/cli-runtime/telemetry.d.ts +1 -1
- package/dist/src/unstable/cli-runtime/telemetry.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/telemetry.js +3 -0
- package/dist/src/unstable/cli-runtime/telemetry.js.map +1 -1
- package/dist/src/unstable/commands/manager.d.ts +3 -2
- package/dist/src/unstable/commands/manager.d.ts.map +1 -1
- package/dist/src/unstable/commands/manager.js +34 -19
- package/dist/src/unstable/commands/manager.js.map +1 -1
- package/dist/src/unstable/commands/operations/disable.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/disable.js +4 -1
- package/dist/src/unstable/commands/operations/disable.js.map +1 -1
- package/dist/src/unstable/commands/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/install.js +12 -2
- package/dist/src/unstable/commands/operations/install.js.map +1 -1
- package/dist/src/unstable/commands/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/publish.js +7 -0
- package/dist/src/unstable/commands/operations/publish.js.map +1 -1
- package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +8 -8
- package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/shared-command-helpers.js +14 -1
- package/dist/src/unstable/commands/operations/shared-command-helpers.js.map +1 -1
- package/dist/src/unstable/commands/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/uninstall.js +3 -1
- package/dist/src/unstable/commands/operations/uninstall.js.map +1 -1
- package/dist/src/unstable/commands/paths.d.ts +4 -3
- package/dist/src/unstable/commands/paths.d.ts.map +1 -1
- package/dist/src/unstable/commands/paths.js +10 -3
- package/dist/src/unstable/commands/paths.js.map +1 -1
- package/dist/src/unstable/commands/renderers/render-markdown-only.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/render-markdown-only.js +8 -1
- package/dist/src/unstable/commands/renderers/render-markdown-only.js.map +1 -1
- package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.js +8 -1
- package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.js.map +1 -1
- package/dist/src/unstable/commands/renderers/render-plain-text.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/render-plain-text.js +8 -1
- package/dist/src/unstable/commands/renderers/render-plain-text.js.map +1 -1
- package/dist/src/unstable/commands/renderers/render-prompt-md.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/render-prompt-md.js +8 -1
- package/dist/src/unstable/commands/renderers/render-prompt-md.js.map +1 -1
- package/dist/src/unstable/commands/renderers/render-toml.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/render-toml.js +2 -1
- package/dist/src/unstable/commands/renderers/render-toml.js.map +1 -1
- package/dist/src/unstable/commands/renderers/types.d.ts +2 -1
- package/dist/src/unstable/commands/renderers/types.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/types.js.map +1 -1
- package/dist/src/unstable/discover/discover.d.ts +1 -1
- package/dist/src/unstable/extensions/common.d.ts +12 -1
- package/dist/src/unstable/extensions/common.d.ts.map +1 -1
- package/dist/src/unstable/extensions/common.js +15 -1
- package/dist/src/unstable/extensions/common.js.map +1 -1
- package/dist/src/unstable/extensions/index.d.ts +1 -1
- package/dist/src/unstable/extensions/index.d.ts.map +1 -1
- package/dist/src/unstable/extensions/index.js +1 -1
- package/dist/src/unstable/extensions/index.js.map +1 -1
- package/dist/src/unstable/extensions/rendered-files.d.ts +6 -3
- package/dist/src/unstable/extensions/rendered-files.d.ts.map +1 -1
- package/dist/src/unstable/extensions/rendered-files.js +6 -2
- package/dist/src/unstable/extensions/rendered-files.js.map +1 -1
- package/dist/src/unstable/install-meta/install-meta.d.ts +4 -4
- package/dist/src/unstable/install-method/install-method.d.ts +3 -3
- package/dist/src/unstable/lint/catalog/command/manifest-keys-recognized.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/command/manifest-keys-recognized.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/command/manifest-keys-recognized.js +14 -0
- package/dist/src/unstable/lint/catalog/command/manifest-keys-recognized.js.map +1 -0
- package/dist/src/unstable/lint/catalog/command/manifest-present.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/command/manifest-present.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/command/manifest-present.js +24 -0
- package/dist/src/unstable/lint/catalog/command/manifest-present.js.map +1 -0
- package/dist/src/unstable/lint/catalog/command/manifest-schema-valid.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/command/manifest-schema-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/command/manifest-schema-valid.js +12 -0
- package/dist/src/unstable/lint/catalog/command/manifest-schema-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/command.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/command.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/command.js +11 -0
- package/dist/src/unstable/lint/catalog/command.js.map +1 -0
- package/dist/src/unstable/lint/catalog/index.d.ts +3 -0
- package/dist/src/unstable/lint/catalog/index.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/index.js +9 -0
- package/dist/src/unstable/lint/catalog/index.js.map +1 -1
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-keys-recognized.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-keys-recognized.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-keys-recognized.js +14 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-keys-recognized.js.map +1 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-present.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-present.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-present.js +24 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-present.js.map +1 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-schema-valid.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-schema-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-schema-valid.js +12 -0
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-schema-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/mcp-server.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/mcp-server.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/mcp-server.js +11 -0
- package/dist/src/unstable/lint/catalog/mcp-server.js.map +1 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.d.ts +3 -6
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js +5 -8
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js.map +1 -1
- package/dist/src/unstable/lint/catalog/pack.d.ts +1 -1
- package/dist/src/unstable/lint/catalog/pack.js +1 -1
- package/dist/src/unstable/lint/catalog/shared/manifest-json.d.ts +18 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-json.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-json.js +43 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-json.js.map +1 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js +13 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js.map +1 -1
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.d.ts +2 -2
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.js +4 -4
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.js.map +1 -1
- package/dist/src/unstable/lint/catalog/skill.d.ts +1 -1
- package/dist/src/unstable/lint/catalog/skill.js +1 -1
- package/dist/src/unstable/lint/catalog/subagent/manifest-keys-recognized.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-keys-recognized.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-keys-recognized.js +14 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-keys-recognized.js.map +1 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-present.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-present.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-present.js +24 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-present.js.map +1 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-schema-valid.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-schema-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-schema-valid.js +12 -0
- package/dist/src/unstable/lint/catalog/subagent/manifest-schema-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/subagent.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/subagent.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/subagent.js +11 -0
- package/dist/src/unstable/lint/catalog/subagent.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-correct.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-correct.js +3 -2
- package/dist/src/unstable/lint/catalog/workspace/skills-artifacts-correct.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/skills-universal-artifact-present.d.ts +1 -1
- package/dist/src/unstable/lint/catalog/workspace/skills-universal-artifact-present.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/skills-universal-artifact-present.js +8 -21
- package/dist/src/unstable/lint/catalog/workspace/skills-universal-artifact-present.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace-fixtures/interpret-ops.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace-fixtures/interpret-ops.js +11 -22
- package/dist/src/unstable/lint/catalog/workspace-fixtures/interpret-ops.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.d.ts +4 -1
- package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js +158 -11
- package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace-read-model/manifest-json.d.ts +14 -0
- package/dist/src/unstable/lint/catalog/workspace-read-model/manifest-json.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace-read-model/manifest-json.js +27 -0
- package/dist/src/unstable/lint/catalog/workspace-read-model/manifest-json.js.map +1 -0
- package/dist/src/unstable/lint/cli.d.ts +9 -3
- package/dist/src/unstable/lint/cli.d.ts.map +1 -1
- package/dist/src/unstable/lint/cli.js +19 -10
- package/dist/src/unstable/lint/cli.js.map +1 -1
- package/dist/src/unstable/lint/context.d.ts +36 -0
- package/dist/src/unstable/lint/context.d.ts.map +1 -1
- package/dist/src/unstable/lint/publish.d.ts +5 -2
- package/dist/src/unstable/lint/publish.d.ts.map +1 -1
- package/dist/src/unstable/lint/publish.js +24 -0
- package/dist/src/unstable/lint/publish.js.map +1 -1
- package/dist/src/unstable/lockfile/index.d.ts +2 -1
- package/dist/src/unstable/lockfile/index.d.ts.map +1 -1
- package/dist/src/unstable/lockfile/index.js +2 -1
- package/dist/src/unstable/lockfile/index.js.map +1 -1
- package/dist/src/unstable/lockfile/lockfile.d.ts +1 -1
- package/dist/src/unstable/lockfile/migration.d.ts +3 -0
- package/dist/src/unstable/lockfile/migration.d.ts.map +1 -0
- package/dist/src/unstable/lockfile/migration.js +32 -0
- package/dist/src/unstable/lockfile/migration.js.map +1 -0
- package/dist/src/unstable/lockfile/schema.d.ts +65 -149
- package/dist/src/unstable/lockfile/schema.d.ts.map +1 -1
- package/dist/src/unstable/lockfile/schema.js +12 -11
- package/dist/src/unstable/lockfile/schema.js.map +1 -1
- package/dist/src/unstable/mcp-servers/manager.d.ts +1 -1
- package/dist/src/unstable/mcp-servers/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/mcp-servers/operations/publish.js +7 -0
- package/dist/src/unstable/mcp-servers/operations/publish.js.map +1 -1
- package/dist/src/unstable/package-urls/companion-package.d.ts.map +1 -1
- package/dist/src/unstable/package-urls/companion-package.js +7 -4
- package/dist/src/unstable/package-urls/companion-package.js.map +1 -1
- package/dist/src/unstable/package-urls/companion-package.spec.js +39 -0
- package/dist/src/unstable/package-urls/companion-package.spec.js.map +1 -1
- package/dist/src/unstable/package-urls/internal.d.ts.map +1 -1
- package/dist/src/unstable/package-urls/internal.js +6 -3
- package/dist/src/unstable/package-urls/internal.js.map +1 -1
- package/dist/src/unstable/package-urls/vers-range.d.ts +2 -0
- package/dist/src/unstable/package-urls/vers-range.d.ts.map +1 -1
- package/dist/src/unstable/package-urls/vers-range.js +2 -2
- package/dist/src/unstable/package-urls/vers-range.js.map +1 -1
- package/dist/src/unstable/packaging/detect.d.ts +1 -1
- package/dist/src/unstable/packaging/jsr.d.ts +1 -1
- package/dist/src/unstable/packaging/jsr.d.ts.map +1 -1
- package/dist/src/unstable/packaging/jsr.js +4 -11
- package/dist/src/unstable/packaging/jsr.js.map +1 -1
- package/dist/src/unstable/packaging/mojo.d.ts +1 -1
- package/dist/src/unstable/packaging/mojo.js +4 -4
- package/dist/src/unstable/packaging/mojo.js.map +1 -1
- package/dist/src/unstable/packaging/read.d.ts +1 -1
- package/dist/src/unstable/packaging/zig.d.ts +1 -1
- package/dist/src/unstable/packaging/zig.js +3 -3
- package/dist/src/unstable/packaging/zig.js.map +1 -1
- package/dist/src/unstable/packs/manager.d.ts +1 -1
- package/dist/src/unstable/packs/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/publish.js +7 -0
- package/dist/src/unstable/packs/operations/publish.js.map +1 -1
- package/dist/src/unstable/packs/paths.d.ts +2 -1
- package/dist/src/unstable/packs/paths.d.ts.map +1 -1
- package/dist/src/unstable/packs/paths.js +2 -1
- package/dist/src/unstable/packs/paths.js.map +1 -1
- package/dist/src/unstable/plan/resolve-plan.d.ts +1 -1
- package/dist/src/unstable/plan/resolve-plan.d.ts.map +1 -1
- package/dist/src/unstable/plan/resolve-plan.js +4 -3
- package/dist/src/unstable/plan/resolve-plan.js.map +1 -1
- package/dist/src/unstable/publish/lint-gate.d.ts +37 -0
- package/dist/src/unstable/publish/lint-gate.d.ts.map +1 -0
- package/dist/src/unstable/publish/lint-gate.js +102 -0
- package/dist/src/unstable/publish/lint-gate.js.map +1 -0
- package/dist/src/unstable/registry/client.d.ts +1 -1
- package/dist/src/unstable/registry/utils.d.ts +1 -1
- package/dist/src/unstable/settings/schema.d.ts +1 -1
- package/dist/src/unstable/settings/schema.js +2 -2
- package/dist/src/unstable/settings/schema.js.map +1 -1
- package/dist/src/unstable/settings/settings.d.ts +1 -1
- package/dist/src/unstable/skills/manager.d.ts +1 -1
- package/dist/src/unstable/skills/manager.d.ts.map +1 -1
- package/dist/src/unstable/skills/manager.js +38 -24
- package/dist/src/unstable/skills/manager.js.map +1 -1
- package/dist/src/unstable/skills/operations/disable.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/disable.js +34 -22
- package/dist/src/unstable/skills/operations/disable.js.map +1 -1
- package/dist/src/unstable/skills/operations/enable.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/enable.js +18 -23
- package/dist/src/unstable/skills/operations/enable.js.map +1 -1
- package/dist/src/unstable/skills/operations/install.d.ts +2 -2
- package/dist/src/unstable/skills/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/install.js +24 -53
- package/dist/src/unstable/skills/operations/install.js.map +1 -1
- package/dist/src/unstable/skills/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/publish.js +7 -0
- package/dist/src/unstable/skills/operations/publish.js.map +1 -1
- package/dist/src/unstable/skills/operations/source-hash.d.ts +5 -0
- package/dist/src/unstable/skills/operations/source-hash.d.ts.map +1 -0
- package/dist/src/unstable/skills/operations/source-hash.js +15 -0
- package/dist/src/unstable/skills/operations/source-hash.js.map +1 -0
- package/dist/src/unstable/skills/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/uninstall.js +30 -12
- package/dist/src/unstable/skills/operations/uninstall.js.map +1 -1
- package/dist/src/unstable/skills/paths.d.ts +3 -2
- package/dist/src/unstable/skills/paths.d.ts.map +1 -1
- package/dist/src/unstable/skills/paths.js +9 -2
- package/dist/src/unstable/skills/paths.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/git-hosting.d.ts +4 -4
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts +1 -1
- package/dist/src/unstable/source-resolution/resolve-identifier.d.ts +1 -1
- package/dist/src/unstable/source-resolution/resolve-source-pattern.d.ts +2 -1
- package/dist/src/unstable/source-resolution/resolve-source-pattern.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-source-pattern.js +10 -5
- package/dist/src/unstable/source-resolution/resolve-source-pattern.js.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-source.d.ts +1 -1
- package/dist/src/unstable/source-resolution/service.d.ts +2 -2
- package/dist/src/unstable/sources/lock-entry-to-ref.d.ts +2 -0
- package/dist/src/unstable/sources/lock-entry-to-ref.d.ts.map +1 -1
- package/dist/src/unstable/sources/lock-entry-to-ref.js +21 -12
- package/dist/src/unstable/sources/lock-entry-to-ref.js.map +1 -1
- package/dist/src/unstable/sources/source-to-lock-entry.d.ts +2 -0
- package/dist/src/unstable/sources/source-to-lock-entry.d.ts.map +1 -1
- package/dist/src/unstable/sources/source-to-lock-entry.js +2 -1
- package/dist/src/unstable/sources/source-to-lock-entry.js.map +1 -1
- package/dist/src/unstable/subagents/lock-entry-builder.d.ts +2 -1
- package/dist/src/unstable/subagents/lock-entry-builder.d.ts.map +1 -1
- package/dist/src/unstable/subagents/lock-entry-builder.js +3 -2
- package/dist/src/unstable/subagents/lock-entry-builder.js.map +1 -1
- package/dist/src/unstable/subagents/manager.d.ts +1 -1
- package/dist/src/unstable/subagents/manager.d.ts.map +1 -1
- package/dist/src/unstable/subagents/manager.js +29 -15
- package/dist/src/unstable/subagents/manager.js.map +1 -1
- package/dist/src/unstable/subagents/operations/enable.d.ts.map +1 -1
- package/dist/src/unstable/subagents/operations/enable.js +16 -6
- package/dist/src/unstable/subagents/operations/enable.js.map +1 -1
- package/dist/src/unstable/subagents/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/subagents/operations/publish.js +7 -0
- package/dist/src/unstable/subagents/operations/publish.js.map +1 -1
- package/dist/src/unstable/subagents/paths.d.ts +4 -3
- package/dist/src/unstable/subagents/paths.d.ts.map +1 -1
- package/dist/src/unstable/subagents/paths.js +10 -3
- package/dist/src/unstable/subagents/paths.js.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/json.d.ts.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/json.js +2 -3
- package/dist/src/unstable/subagents/rendering/adapters/json.js.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.d.ts.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js +2 -3
- package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/toml.d.ts.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/toml.js +2 -3
- package/dist/src/unstable/subagents/rendering/adapters/toml.js.map +1 -1
- package/dist/src/unstable/subagents/rendering/types.d.ts +2 -2
- package/dist/src/unstable/subagents/rendering/types.d.ts.map +1 -1
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.d.ts +3 -0
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.d.ts.map +1 -1
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.js +4 -0
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.js.map +1 -1
- package/dist/src/unstable/telemetry/client.d.ts +2 -0
- package/dist/src/unstable/telemetry/client.d.ts.map +1 -1
- package/dist/src/unstable/telemetry/client.js +1 -0
- package/dist/src/unstable/telemetry/client.js.map +1 -1
- package/dist/src/unstable/telemetry/index.d.ts +1 -1
- package/dist/src/unstable/telemetry/index.d.ts.map +1 -1
- package/dist/src/unstable/telemetry/index.js.map +1 -1
- package/dist/src/unstable/update-check/update-check.d.ts +3 -3
- package/dist/src/unstable/utils/build-zip-archive.d.ts +1 -1
- package/dist/src/unstable/utils/create-symlink.d.ts +1 -1
- package/dist/src/unstable/utils/index.d.ts +2 -1
- package/dist/src/unstable/utils/index.d.ts.map +1 -1
- package/dist/src/unstable/utils/index.js +2 -1
- package/dist/src/unstable/utils/index.js.map +1 -1
- package/dist/src/unstable/utils/path-safety.d.ts +12 -0
- package/dist/src/unstable/utils/path-safety.d.ts.map +1 -1
- package/dist/src/unstable/utils/path-safety.js +18 -0
- package/dist/src/unstable/utils/path-safety.js.map +1 -1
- package/dist/src/unstable/utils/path-types.d.ts +22 -0
- package/dist/src/unstable/utils/path-types.d.ts.map +1 -0
- package/dist/src/unstable/utils/path-types.js +48 -0
- package/dist/src/unstable/utils/path-types.js.map +1 -0
- package/dist/src/unstable/workflows/install-command/workflow.d.ts +1 -1
- package/dist/src/unstable/workflows/uninstall-command/workflow.d.ts +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts +5 -5
- package/dist/src/unstable/workspace/initialization-interaction.d.ts +1 -1
- package/dist/src/unstable/workspace/initialization.d.ts +33 -32
- package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
- package/dist/src/unstable/workspace/initialization.js +17 -18
- package/dist/src/unstable/workspace/initialization.js.map +1 -1
- package/dist/src/unstable/workspace/paths.d.ts +6 -5
- package/dist/src/unstable/workspace/paths.d.ts.map +1 -1
- package/dist/src/unstable/workspace/paths.js +4 -3
- package/dist/src/unstable/workspace/paths.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/builder.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/builder.js +14 -3
- package/dist/src/unstable/workspace/read-model/__fixtures__/builder.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js +13 -8
- package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/test-layer.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/test-layer.js +4 -3
- package/dist/src/unstable/workspace/read-model/__fixtures__/test-layer.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/agents/index.d.ts +2 -2
- package/dist/src/unstable/workspace/read-model/agents/index.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/agents/index.js +8 -4
- package/dist/src/unstable/workspace/read-model/agents/index.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/discovery/subagents.d.ts +3 -3
- package/dist/src/unstable/workspace/read-model/scanners/agent-dir.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js +7 -4
- package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/agent-settings.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/agent-settings.js +2 -1
- package/dist/src/unstable/workspace/read-model/scanners/agent-settings.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js +4 -2
- package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/mcp-config.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/mcp-config.js +5 -2
- package/dist/src/unstable/workspace/read-model/scanners/mcp-config.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/types.d.ts +8 -7
- package/dist/src/unstable/workspace/read-model/scanners/types.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/types.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/service.d.ts +4 -3
- package/dist/src/unstable/workspace/read-model/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/service.js +3 -2
- package/dist/src/unstable/workspace/read-model/service.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/state.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/state.js +2 -1
- package/dist/src/unstable/workspace/read-model/state.js.map +1 -1
- package/dist/src/unstable/workspace/reconciliation.js +2 -2
- package/dist/src/unstable/workspace/reconciliation.js.map +1 -1
- package/dist/src/unstable/workspace/resolve-plan-interaction.d.ts +1 -1
- package/dist/src/unstable/workspace/service.d.ts +77 -133
- package/dist/src/unstable/workspace/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/service.js +8 -7
- package/dist/src/unstable/workspace/service.js.map +1 -1
- package/dist/src/unstable/workspace/skill-snapshot.d.ts +3 -3
- package/dist/src/unstable/workspace/skill-snapshot.d.ts.map +1 -1
- package/dist/src/unstable/workspace/skill-snapshot.js +5 -4
- package/dist/src/unstable/workspace/skill-snapshot.js.map +1 -1
- package/dist/src/unstable/workspace/test-stubs.d.ts.map +1 -1
- package/dist/src/unstable/workspace/test-stubs.js +2 -1
- package/dist/src/unstable/workspace/test-stubs.js.map +1 -1
- package/package.json +6 -2
- package/site-content/__generated__/schemas/axm-lock.schema.json +1 -99
- package/site-content/__generated__/schemas/settings.schema.json +3 -3
- package/dist/src/unstable/skills/operations/universal-artifact.d.ts +0 -43
- package/dist/src/unstable/skills/operations/universal-artifact.d.ts.map +0 -1
- package/dist/src/unstable/skills/operations/universal-artifact.js +0 -77
- package/dist/src/unstable/skills/operations/universal-artifact.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2BAA2B;AAC3B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,sCAAsC,EACtC,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,6CAA6C,EAC7C,yBAAyB,EACzB,qBAAqB,EACrB,kCAAkC,EAClC,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,EAC3B,yBAAyB,EACzB,iCAAiC,EACjC,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2BAA2B;AAC3B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,sCAAsC,EACtC,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,6CAA6C,EAC7C,yBAAyB,EACzB,qBAAqB,EACrB,kCAAkC,EAClC,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,EAC3B,yBAAyB,EACzB,iCAAiC,EACjC,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,QAAQ,GAeT,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAC5B,uBAAuB,EACvB,gCAAgC,EAChC,uBAAuB,EACvB,+BAA+B,EAC/B,sBAAsB,GAGvB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,yBAAyB,EACzB,sCAAsC,EACtC,8BAA8B,EAC9B,oCAAoC,EACpC,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,GAGjC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,aAAa,EACb,cAAc,GAGf,MAAM,aAAa,CAAC;AAErB,cAAc;AACd,OAAO,EACL,SAAS,EACT,QAAQ,EACR,eAAe,EACf,eAAe,EACf,yBAAyB,GAC1B,MAAM,UAAU,CAAC;AAElB,YAAY;AACZ,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAElF,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,oBAAoB,EACpB,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AAiBnC,mBAAmB;AACnB,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEtF,2BAA2B;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,uBAAuB;AACvB,OAAO,EAKL,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACb,OAAO,EACP,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AAEvC,0BAA0B;AAC1B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,GAIlB,MAAM,qBAAqB,CAAC;AAE7B,sBAAsB;AACtB,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GAErB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,cAAc,EACd,qBAAqB,GAGtB,MAAM,sBAAsB,CAAC"}
|
|
@@ -20,11 +20,14 @@ export declare const SourceHashSchema: Schema.brand<Schema.String, "SourceHash">
|
|
|
20
20
|
*/
|
|
21
21
|
export type SourceHash = Schema.Schema.Type<typeof SourceHashSchema>;
|
|
22
22
|
/**
|
|
23
|
-
* Branded string for rendered file paths.
|
|
23
|
+
* Branded string for rendered file paths tracked in lockfiles.
|
|
24
|
+
*
|
|
25
|
+
* These are workspace-root-relative managed-output paths. Lockfiles must not
|
|
26
|
+
* persist host-specific absolute paths.
|
|
24
27
|
*
|
|
25
28
|
* @experimental This API is unstable and may change without notice.
|
|
26
29
|
*/
|
|
27
|
-
export declare const RenderedFilePathSchema: Schema.brand<Schema.String, "RenderedFilePath">;
|
|
30
|
+
export declare const RenderedFilePathSchema: Schema.brand<Schema.brand<Schema.String, "RelativePath">, "RenderedFilePath">;
|
|
28
31
|
/**
|
|
29
32
|
* Branded RenderedFilePath type.
|
|
30
33
|
*
|
|
@@ -41,7 +44,7 @@ export type RenderedFilePath = Schema.Schema.Type<typeof RenderedFilePathSchema>
|
|
|
41
44
|
* @experimental This API is unstable and may change without notice.
|
|
42
45
|
*/
|
|
43
46
|
export declare const RenderedFilesMapSchema: Schema.$Record<Schema.String, Schema.$Array<Schema.Struct<{
|
|
44
|
-
readonly path: Schema.brand<Schema.String, "RenderedFilePath">;
|
|
47
|
+
readonly path: Schema.brand<Schema.brand<Schema.String, "RelativePath">, "RenderedFilePath">;
|
|
45
48
|
}>>>;
|
|
46
49
|
/**
|
|
47
50
|
* Inferred type for the rendered files map.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rendered-files.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/rendered-files.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"rendered-files.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/rendered-files.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2CAAiD,CAAC;AAE/E;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAErE;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,+EAA4D,CAAC;AAEhG;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAWjF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB;;IAGlC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAIjF;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,KAAG,UACyB,CAAC"}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import * as crypto from "node:crypto";
|
|
10
10
|
import * as Schema from "effect/Schema";
|
|
11
|
+
import { RelativePathSchema } from "../utils/path-types.js";
|
|
11
12
|
/**
|
|
12
13
|
* Branded string for content source hashes.
|
|
13
14
|
*
|
|
@@ -15,11 +16,14 @@ import * as Schema from "effect/Schema";
|
|
|
15
16
|
*/
|
|
16
17
|
export const SourceHashSchema = Schema.String.pipe(Schema.brand("SourceHash"));
|
|
17
18
|
/**
|
|
18
|
-
* Branded string for rendered file paths.
|
|
19
|
+
* Branded string for rendered file paths tracked in lockfiles.
|
|
20
|
+
*
|
|
21
|
+
* These are workspace-root-relative managed-output paths. Lockfiles must not
|
|
22
|
+
* persist host-specific absolute paths.
|
|
19
23
|
*
|
|
20
24
|
* @experimental This API is unstable and may change without notice.
|
|
21
25
|
*/
|
|
22
|
-
export const RenderedFilePathSchema =
|
|
26
|
+
export const RenderedFilePathSchema = RelativePathSchema.pipe(Schema.brand("RenderedFilePath"));
|
|
23
27
|
/**
|
|
24
28
|
* Schema for a single rendered file entry.
|
|
25
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rendered-files.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/rendered-files.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"rendered-files.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/rendered-files.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AAS/E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAShG;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,sBAAsB;CAC7B,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CACjD,MAAM,CAAC,MAAM,EACb,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtC,CAAC;AASF,MAAM,gBAAgB,GAAG,MAAM,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAEpE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAe,EAAc,EAAE,CAC/D,gBAAgB,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC"}
|
|
@@ -54,7 +54,7 @@ export declare class InstallMeta extends InstallMeta_base {
|
|
|
54
54
|
export declare const readInstallMeta: (dataDir: string) => Effect.Effect<Option.Option<{
|
|
55
55
|
readonly method: "npm" | "script" | "homebrew";
|
|
56
56
|
readonly installedAt: string;
|
|
57
|
-
}>, never,
|
|
57
|
+
}>, never, Path.Path | FileSystem.FileSystem>;
|
|
58
58
|
/**
|
|
59
59
|
* Write `install-meta.json` to the given directory.
|
|
60
60
|
* Creates the directory if it does not exist.
|
|
@@ -63,18 +63,18 @@ export declare const readInstallMeta: (dataDir: string) => Effect.Effect<Option.
|
|
|
63
63
|
*
|
|
64
64
|
* @experimental This API is unstable and may change without notice.
|
|
65
65
|
*/
|
|
66
|
-
export declare const writeInstallMeta: (dataDir: string, data: InstallMetaData) => Effect.Effect<void, never,
|
|
66
|
+
export declare const writeInstallMeta: (dataDir: string, data: InstallMetaData) => Effect.Effect<void, never, Path.Path | FileSystem.FileSystem>;
|
|
67
67
|
/**
|
|
68
68
|
* Live layer providing the `InstallMeta` service.
|
|
69
69
|
*
|
|
70
70
|
* @experimental This API is unstable and may change without notice.
|
|
71
71
|
*/
|
|
72
|
-
export declare const InstallMetaLive: Layer.Layer<InstallMeta, never,
|
|
72
|
+
export declare const InstallMetaLive: Layer.Layer<InstallMeta, never, Path.Path | FileSystem.FileSystem>;
|
|
73
73
|
/**
|
|
74
74
|
* Create an `InstallMeta` layer for testing with a configurable data directory.
|
|
75
75
|
*
|
|
76
76
|
* @experimental This API is unstable and may change without notice.
|
|
77
77
|
*/
|
|
78
|
-
export declare const InstallMetaTest: (dataDir: string) => Layer.Layer<InstallMeta, never,
|
|
78
|
+
export declare const InstallMetaTest: (dataDir: string) => Layer.Layer<InstallMeta, never, Path.Path | FileSystem.FileSystem>;
|
|
79
79
|
export {};
|
|
80
80
|
//# sourceMappingURL=install-meta.d.ts.map
|
|
@@ -71,11 +71,11 @@ export interface InstallMethodInputs {
|
|
|
71
71
|
* Detect install method from the given inputs.
|
|
72
72
|
* Exposed for testability — the live layer calls this with real values.
|
|
73
73
|
*/
|
|
74
|
-
export declare const detectFromInputs: (inputs: InstallMethodInputs) => Effect.Effect<InstallMethodType, never,
|
|
75
|
-
export declare const InstallMethodLive: Layer.Layer<InstallMethod, never,
|
|
74
|
+
export declare const detectFromInputs: (inputs: InstallMethodInputs) => Effect.Effect<InstallMethodType, never, Path.Path | FileSystem.FileSystem>;
|
|
75
|
+
export declare const InstallMethodLive: Layer.Layer<InstallMethod, never, Path.Path | FileSystem.FileSystem>;
|
|
76
76
|
/**
|
|
77
77
|
* Create an InstallMethod layer for testing with configurable inputs.
|
|
78
78
|
*/
|
|
79
|
-
export declare const InstallMethodTest: (inputs: InstallMethodInputs) => Layer.Layer<InstallMethod, never,
|
|
79
|
+
export declare const InstallMethodTest: (inputs: InstallMethodInputs) => Layer.Layer<InstallMethod, never, Path.Path | FileSystem.FileSystem>;
|
|
80
80
|
export {};
|
|
81
81
|
//# sourceMappingURL=install-method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-keys-recognized.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/command/manifest-keys-recognized.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AASlD,eAAO,MAAM,0BAA0B,EAAE,YAAY,CAAC,kBAAkB,CAevE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import { CommandManifestSchema } from "../../../commands/manifest-schema.js";
|
|
3
|
+
import { enumerateUnknownTopLevelKeys, structFieldKeys } from "../shared/schema-rule.js";
|
|
4
|
+
const RULE_ID = "command/manifest-keys-recognized";
|
|
5
|
+
const COMMAND_JSON = "command.json";
|
|
6
|
+
const allowedKeys = structFieldKeys(CommandManifestSchema);
|
|
7
|
+
export const manifestKeysRecognizedRule = {
|
|
8
|
+
id: RULE_ID,
|
|
9
|
+
description: "command.json uses only supported top-level fields.",
|
|
10
|
+
kind: "advisory",
|
|
11
|
+
severity: "error",
|
|
12
|
+
check: (context) => Effect.succeed(enumerateUnknownTopLevelKeys(RULE_ID, "error", COMMAND_JSON, allowedKeys, context.subject.commandJson)),
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=manifest-keys-recognized.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-keys-recognized.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/command/manifest-keys-recognized.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,4BAA4B,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,OAAO,GAAG,kCAAkC,CAAC;AACnD,MAAM,YAAY,GAAG,cAAc,CAAC;AAEpC,MAAM,WAAW,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AAE3D,MAAM,CAAC,MAAM,0BAA0B,GAAqC;IAC1E,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,oDAAoD;IACjE,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CACjB,MAAM,CAAC,OAAO,CACZ,4BAA4B,CAC1B,OAAO,EACP,OAAO,EACP,YAAY,EACZ,WAAW,EACX,OAAO,CAAC,OAAO,CAAC,WAAW,CAC5B,CACF;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-present.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/command/manifest-present.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,eAAe,CAAC;AAKnE,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,kBAAkB,CAqBhE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
const RULE_ID = "command/manifest-present";
|
|
3
|
+
const COMMAND_JSON = "command.json";
|
|
4
|
+
export const manifestPresentRule = {
|
|
5
|
+
id: RULE_ID,
|
|
6
|
+
description: "Commands include a root command.json manifest.",
|
|
7
|
+
kind: "advisory",
|
|
8
|
+
severity: "error",
|
|
9
|
+
check: (context) => Effect.map(context.files.exists(COMMAND_JSON), (present) => {
|
|
10
|
+
if (present) {
|
|
11
|
+
return [];
|
|
12
|
+
}
|
|
13
|
+
return [
|
|
14
|
+
{
|
|
15
|
+
kind: "advisory",
|
|
16
|
+
ruleId: RULE_ID,
|
|
17
|
+
severity: "error",
|
|
18
|
+
message: "command.json is missing. Create command.json with the required manifest fields (`owner`, `type`, `name`, `version`).",
|
|
19
|
+
location: { file: COMMAND_JSON },
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
}),
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=manifest-present.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-present.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/command/manifest-present.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAC3C,MAAM,YAAY,GAAG,cAAc,CAAC;AAEpC,MAAM,CAAC,MAAM,mBAAmB,GAAqC;IACnE,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,gDAAgD;IAC7D,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CACjB,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,OAAO,EAAkC,EAAE;QACzF,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,OAAO;YACL;gBACE,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,OAAO;gBACf,QAAQ,EAAE,OAAO;gBACjB,OAAO,EACL,sHAAsH;gBACxH,QAAQ,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;aACjC;SACF,CAAC;IACJ,CAAC,CAAC;CACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-schema-valid.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/command/manifest-schema-valid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAOlD,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,kBAAkB,CAapE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommandManifestSchema } from "../../../commands/manifest-schema.js";
|
|
2
|
+
import { schemaDecodeFindings } from "../shared/schema-rule.js";
|
|
3
|
+
const RULE_ID = "command/manifest-schema-valid";
|
|
4
|
+
const COMMAND_JSON = "command.json";
|
|
5
|
+
export const manifestSchemaValidRule = {
|
|
6
|
+
id: RULE_ID,
|
|
7
|
+
description: "command.json defines a valid command manifest.",
|
|
8
|
+
kind: "advisory",
|
|
9
|
+
severity: "error",
|
|
10
|
+
check: (context) => schemaDecodeFindings(RULE_ID, "error", COMMAND_JSON, CommandManifestSchema, context.subject.commandJson),
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=manifest-schema-valid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-schema-valid.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/command/manifest-schema-valid.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,OAAO,GAAG,+BAA+B,CAAC;AAChD,MAAM,YAAY,GAAG,cAAc,CAAC;AAEpC,MAAM,CAAC,MAAM,uBAAuB,GAAqC;IACvE,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,gDAAgD;IAC7D,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CACjB,oBAAoB,CAClB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,qBAAqB,EACrB,OAAO,CAAC,OAAO,CAAC,WAAW,CAC5B;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/command.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAK3C,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAIpE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { registerLintRuleIds } from "../config.js";
|
|
2
|
+
import { manifestKeysRecognizedRule } from "./command/manifest-keys-recognized.js";
|
|
3
|
+
import { manifestPresentRule } from "./command/manifest-present.js";
|
|
4
|
+
import { manifestSchemaValidRule } from "./command/manifest-schema-valid.js";
|
|
5
|
+
export const commandRules = [
|
|
6
|
+
manifestPresentRule,
|
|
7
|
+
manifestSchemaValidRule,
|
|
8
|
+
manifestKeysRecognizedRule,
|
|
9
|
+
];
|
|
10
|
+
registerLintRuleIds(commandRules.map((r) => r.id));
|
|
11
|
+
//# sourceMappingURL=command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAgD;IACvE,mBAAmB;IACnB,uBAAuB;IACvB,0BAA0B;CAC3B,CAAC;AAEF,mBAAmB,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export { skillRules } from "./skill.js";
|
|
17
17
|
export { packRules } from "./pack.js";
|
|
18
|
+
export { commandRules } from "./command.js";
|
|
19
|
+
export { subagentRules } from "./subagent.js";
|
|
20
|
+
export { mcpServerRules } from "./mcp-server.js";
|
|
18
21
|
export { workspaceRules } from "./workspace.js";
|
|
19
22
|
export { makeVftSkillFileAccessor, makeVftSkillFileAccessorScoped, type VFTNode, } from "./skill-accessor/vft.js";
|
|
20
23
|
export { makePlatformSkillFileAccessor, type SkillAccessorPlatform, } from "./skill-accessor/platform.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,KAAK,OAAO,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,6BAA6B,EAC7B,KAAK,qBAAqB,GAC3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAG/F,OAAO,EAAE,uBAAuB,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACnF,OAAO,EACL,4BAA4B,EAC5B,KAAK,oBAAoB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAG5F,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,+BAA+B,EAC/B,sBAAsB,EACtB,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,EACtC,KAAK,aAAa,EAClB,KAAK,iBAAiB,GACvB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,KAAK,yBAAyB,GAC/B,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAAC,MAAM,CAOnD,CAAC"}
|
|
@@ -15,9 +15,15 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { skillRules } from "./skill.js";
|
|
17
17
|
import { packRules } from "./pack.js";
|
|
18
|
+
import { commandRules } from "./command.js";
|
|
19
|
+
import { subagentRules } from "./subagent.js";
|
|
20
|
+
import { mcpServerRules } from "./mcp-server.js";
|
|
18
21
|
import { workspaceRules } from "./workspace.js";
|
|
19
22
|
export { skillRules } from "./skill.js";
|
|
20
23
|
export { packRules } from "./pack.js";
|
|
24
|
+
export { commandRules } from "./command.js";
|
|
25
|
+
export { subagentRules } from "./subagent.js";
|
|
26
|
+
export { mcpServerRules } from "./mcp-server.js";
|
|
21
27
|
export { workspaceRules } from "./workspace.js";
|
|
22
28
|
// Phase 3a accessor + context-builder helpers.
|
|
23
29
|
export { makeVftSkillFileAccessor, makeVftSkillFileAccessorScoped, } from "./skill-accessor/vft.js";
|
|
@@ -43,6 +49,9 @@ export { PER_EXTENSION_OPERATION_NAMES, isPerExtensionOperationName, } from "./w
|
|
|
43
49
|
export const allCatalogRuleIds = [
|
|
44
50
|
...skillRules.map((r) => r.id),
|
|
45
51
|
...packRules.map((r) => r.id),
|
|
52
|
+
...commandRules.map((r) => r.id),
|
|
53
|
+
...subagentRules.map((r) => r.id),
|
|
54
|
+
...mcpServerRules.map((r) => r.id),
|
|
46
55
|
...workspaceRules.map((r) => r.id),
|
|
47
56
|
];
|
|
48
57
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,+CAA+C;AAC/C,OAAO,EACL,wBAAwB,EACxB,8BAA8B,GAE/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,6BAA6B,GAE9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAA2B,MAAM,8BAA8B,CAAC;AAE/F,+CAA+C;AAC/C,OAAO,EAAE,uBAAuB,EAAoB,MAAM,wBAAwB,CAAC;AACnF,OAAO,EACL,4BAA4B,GAE7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAA0B,MAAM,6BAA6B,CAAC;AAE5F,iDAAiD;AACjD,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,+BAA+B,EAC/B,sBAAsB,EACtB,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,GAOxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,GAE5B,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA0B;IACtD,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7B,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;CACnC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,+CAA+C;AAC/C,OAAO,EACL,wBAAwB,EACxB,8BAA8B,GAE/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,6BAA6B,GAE9B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAA2B,MAAM,8BAA8B,CAAC;AAE/F,+CAA+C;AAC/C,OAAO,EAAE,uBAAuB,EAAoB,MAAM,wBAAwB,CAAC;AACnF,OAAO,EACL,4BAA4B,GAE7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAA0B,MAAM,6BAA6B,CAAC;AAE5F,iDAAiD;AACjD,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,+BAA+B,EAC/B,sBAAsB,EACtB,wBAAwB,EACxB,8BAA8B,EAC9B,uBAAuB,GAOxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,GAE5B,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA0B;IACtD,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7B,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAChC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAClC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-keys-recognized.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/mcp-server/manifest-keys-recognized.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AASlD,eAAO,MAAM,0BAA0B,EAAE,YAAY,CAAC,oBAAoB,CAezE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import { McpServerManifestSchema } from "../../../mcp-servers/manifest-schema.js";
|
|
3
|
+
import { enumerateUnknownTopLevelKeys, structFieldKeys } from "../shared/schema-rule.js";
|
|
4
|
+
const RULE_ID = "mcp-server/manifest-keys-recognized";
|
|
5
|
+
const MCP_SERVER_JSON = "mcp-server.json";
|
|
6
|
+
const allowedKeys = structFieldKeys(McpServerManifestSchema);
|
|
7
|
+
export const manifestKeysRecognizedRule = {
|
|
8
|
+
id: RULE_ID,
|
|
9
|
+
description: "mcp-server.json uses only supported top-level fields.",
|
|
10
|
+
kind: "advisory",
|
|
11
|
+
severity: "error",
|
|
12
|
+
check: (context) => Effect.succeed(enumerateUnknownTopLevelKeys(RULE_ID, "error", MCP_SERVER_JSON, allowedKeys, context.subject.mcpServerJson)),
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=manifest-keys-recognized.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-keys-recognized.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/mcp-server/manifest-keys-recognized.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,4BAA4B,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,OAAO,GAAG,qCAAqC,CAAC;AACtD,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAE1C,MAAM,WAAW,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAE7D,MAAM,CAAC,MAAM,0BAA0B,GAAuC;IAC5E,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,uDAAuD;IACpE,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CACjB,MAAM,CAAC,OAAO,CACZ,4BAA4B,CAC1B,OAAO,EACP,OAAO,EACP,eAAe,EACf,WAAW,EACX,OAAO,CAAC,OAAO,CAAC,aAAa,CAC9B,CACF;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-present.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/mcp-server/manifest-present.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAmB,YAAY,EAAE,MAAM,eAAe,CAAC;AAKnE,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,oBAAoB,CAqBlE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
const RULE_ID = "mcp-server/manifest-present";
|
|
3
|
+
const MCP_SERVER_JSON = "mcp-server.json";
|
|
4
|
+
export const manifestPresentRule = {
|
|
5
|
+
id: RULE_ID,
|
|
6
|
+
description: "MCP servers include a root mcp-server.json manifest.",
|
|
7
|
+
kind: "advisory",
|
|
8
|
+
severity: "error",
|
|
9
|
+
check: (context) => Effect.map(context.files.exists(MCP_SERVER_JSON), (present) => {
|
|
10
|
+
if (present) {
|
|
11
|
+
return [];
|
|
12
|
+
}
|
|
13
|
+
return [
|
|
14
|
+
{
|
|
15
|
+
kind: "advisory",
|
|
16
|
+
ruleId: RULE_ID,
|
|
17
|
+
severity: "error",
|
|
18
|
+
message: "mcp-server.json is missing. Create mcp-server.json with the required manifest fields (`owner`, `type`, `name`, `version`).",
|
|
19
|
+
location: { file: MCP_SERVER_JSON },
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
}),
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=manifest-present.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-present.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/mcp-server/manifest-present.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,MAAM,OAAO,GAAG,6BAA6B,CAAC;AAC9C,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAE1C,MAAM,CAAC,MAAM,mBAAmB,GAAuC;IACrE,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,sDAAsD;IACnE,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CACjB,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAkC,EAAE;QAC5F,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,OAAO;YACL;gBACE,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,OAAO;gBACf,QAAQ,EAAE,OAAO;gBACjB,OAAO,EACL,4HAA4H;gBAC9H,QAAQ,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;aACpC;SACF,CAAC;IACJ,CAAC,CAAC;CACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-schema-valid.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/mcp-server/manifest-schema-valid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAOlD,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,oBAAoB,CAatE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { McpServerManifestSchema } from "../../../mcp-servers/manifest-schema.js";
|
|
2
|
+
import { schemaDecodeFindings } from "../shared/schema-rule.js";
|
|
3
|
+
const RULE_ID = "mcp-server/manifest-schema-valid";
|
|
4
|
+
const MCP_SERVER_JSON = "mcp-server.json";
|
|
5
|
+
export const manifestSchemaValidRule = {
|
|
6
|
+
id: RULE_ID,
|
|
7
|
+
description: "mcp-server.json defines a valid MCP server manifest.",
|
|
8
|
+
kind: "advisory",
|
|
9
|
+
severity: "error",
|
|
10
|
+
check: (context) => schemaDecodeFindings(RULE_ID, "error", MCP_SERVER_JSON, McpServerManifestSchema, context.subject.mcpServerJson),
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=manifest-schema-valid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-schema-valid.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/mcp-server/manifest-schema-valid.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,OAAO,GAAG,kCAAkC,CAAC;AACnD,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAE1C,MAAM,CAAC,MAAM,uBAAuB,GAAuC;IACzE,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,sDAAsD;IACnE,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CACjB,oBAAoB,CAClB,OAAO,EACP,OAAO,EACP,eAAe,EACf,uBAAuB,EACvB,OAAO,CAAC,OAAO,CAAC,aAAa,CAC9B;CACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/mcp-server.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAK3C,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAIxE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { registerLintRuleIds } from "../config.js";
|
|
2
|
+
import { manifestKeysRecognizedRule } from "./mcp-server/manifest-keys-recognized.js";
|
|
3
|
+
import { manifestPresentRule } from "./mcp-server/manifest-present.js";
|
|
4
|
+
import { manifestSchemaValidRule } from "./mcp-server/manifest-schema-valid.js";
|
|
5
|
+
export const mcpServerRules = [
|
|
6
|
+
manifestPresentRule,
|
|
7
|
+
manifestSchemaValidRule,
|
|
8
|
+
manifestKeysRecognizedRule,
|
|
9
|
+
];
|
|
10
|
+
registerLintRuleIds(mcpServerRules.map((r) => r.id));
|
|
11
|
+
//# sourceMappingURL=mcp-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../../../../src/unstable/lint/catalog/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,MAAM,CAAC,MAAM,cAAc,GAAkD;IAC3E,mBAAmB;IACnB,uBAAuB;IACvB,0BAA0B;CAC3B,CAAC;AAEF,mBAAmB,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
* declared by `PackManifestSchema`.
|
|
4
4
|
*
|
|
5
5
|
* The paired `-schema-valid` rule ignores excess properties by construction
|
|
6
|
-
* (`onExcessProperty: "ignore"`); this rule
|
|
7
|
-
*
|
|
6
|
+
* (`onExcessProperty: "ignore"`); this rule rejects them so publish never
|
|
7
|
+
* silently drops unrecognized manifest data.
|
|
8
8
|
*
|
|
9
9
|
* A forbidden `packs:` dependency section (ONTOLOGY D015 "Cross-Domain
|
|
10
10
|
* Pack Semantics") decodes as an unrecognized top-level key here
|
|
11
|
-
* and surfaces at
|
|
12
|
-
* rule for the `packs:` case — see `docs/design/lint-engine.md §10.pack
|
|
13
|
-
* (Notes)`. A stricter error-severity enforcement can ship in v1.5+ if real
|
|
14
|
-
* publish traffic motivates it.
|
|
11
|
+
* and surfaces at error severity here.
|
|
15
12
|
*
|
|
16
13
|
* Allowed-keys set is derived from `PackManifestSchema.fields` — no
|
|
17
14
|
* copy-paste of field names. A schema gain (or rename) automatically updates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-keys-recognized.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/pack/manifest-keys-recognized.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"manifest-keys-recognized.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/pack/manifest-keys-recognized.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AASlD,eAAO,MAAM,0BAA0B,EAAE,YAAY,CAAC,eAAe,CAepE,CAAC"}
|
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
* declared by `PackManifestSchema`.
|
|
4
4
|
*
|
|
5
5
|
* The paired `-schema-valid` rule ignores excess properties by construction
|
|
6
|
-
* (`onExcessProperty: "ignore"`); this rule
|
|
7
|
-
*
|
|
6
|
+
* (`onExcessProperty: "ignore"`); this rule rejects them so publish never
|
|
7
|
+
* silently drops unrecognized manifest data.
|
|
8
8
|
*
|
|
9
9
|
* A forbidden `packs:` dependency section (ONTOLOGY D015 "Cross-Domain
|
|
10
10
|
* Pack Semantics") decodes as an unrecognized top-level key here
|
|
11
|
-
* and surfaces at
|
|
12
|
-
* rule for the `packs:` case — see `docs/design/lint-engine.md §10.pack
|
|
13
|
-
* (Notes)`. A stricter error-severity enforcement can ship in v1.5+ if real
|
|
14
|
-
* publish traffic motivates it.
|
|
11
|
+
* and surfaces at error severity here.
|
|
15
12
|
*
|
|
16
13
|
* Allowed-keys set is derived from `PackManifestSchema.fields` — no
|
|
17
14
|
* copy-paste of field names. A schema gain (or rename) automatically updates
|
|
@@ -35,7 +32,7 @@ export const manifestKeysRecognizedRule = {
|
|
|
35
32
|
id: RULE_ID,
|
|
36
33
|
description: "pack.json uses only supported top-level fields.",
|
|
37
34
|
kind: "advisory",
|
|
38
|
-
severity: "
|
|
39
|
-
check: (context) => Effect.succeed(enumerateUnknownTopLevelKeys(RULE_ID, "
|
|
35
|
+
severity: "error",
|
|
36
|
+
check: (context) => Effect.succeed(enumerateUnknownTopLevelKeys(RULE_ID, "error", PACK_JSON, allowedKeys, context.subject.packJson)),
|
|
40
37
|
};
|
|
41
38
|
//# sourceMappingURL=manifest-keys-recognized.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-keys-recognized.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/pack/manifest-keys-recognized.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"manifest-keys-recognized.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/pack/manifest-keys-recognized.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,4BAA4B,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,OAAO,GAAG,+BAA+B,CAAC;AAChD,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B,MAAM,WAAW,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,0BAA0B,GAAkC;IACvE,EAAE,EAAE,OAAO;IACX,WAAW,EAAE,iDAAiD;IAC9D,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CACjB,MAAM,CAAC,OAAO,CACZ,4BAA4B,CAC1B,OAAO,EACP,OAAO,EACP,SAAS,EACT,WAAW,EACX,OAAO,CAAC,OAAO,CAAC,QAAQ,CACzB,CACF;CACJ,CAAC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* | ------------------------------- | -------- | ------- |
|
|
9
9
|
* | `pack/manifest-present` | error | — |
|
|
10
10
|
* | `pack/manifest-schema-valid` | error | — |
|
|
11
|
-
* | `pack/manifest-keys-recognized` |
|
|
11
|
+
* | `pack/manifest-keys-recognized` | error | — |
|
|
12
12
|
*
|
|
13
13
|
* All three ship `kind: "advisory"`. Packs are registry-only at v1 (no
|
|
14
14
|
* non-native arm), so there is no applicability discriminator — every pack
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* | ------------------------------- | -------- | ------- |
|
|
9
9
|
* | `pack/manifest-present` | error | — |
|
|
10
10
|
* | `pack/manifest-schema-valid` | error | — |
|
|
11
|
-
* | `pack/manifest-keys-recognized` |
|
|
11
|
+
* | `pack/manifest-keys-recognized` | error | — |
|
|
12
12
|
*
|
|
13
13
|
* All three ship `kind: "advisory"`. Packs are registry-only at v1 (no
|
|
14
14
|
* non-native arm), so there is no applicability discriminator — every pack
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared loose-manifest JSON helpers.
|
|
3
|
+
*
|
|
4
|
+
* Workspace lint parses installed manifests before per-extension rules run.
|
|
5
|
+
* The parsed value must stay raw JSON, not a schema-decoded manifest, so
|
|
6
|
+
* `*-keys-recognized` rules can still see excess top-level fields.
|
|
7
|
+
*
|
|
8
|
+
* @experimental This API is unstable and may change without notice.
|
|
9
|
+
*/
|
|
10
|
+
import type { AdvisoryFinding, Severity } from "../../rule.js";
|
|
11
|
+
export interface ManifestJsonParseFailure {
|
|
12
|
+
readonly _tag: "ManifestJsonParseFailure";
|
|
13
|
+
readonly file: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const makeManifestJsonParseFailure: (file: string) => ManifestJsonParseFailure;
|
|
16
|
+
export declare const isManifestJsonParseFailure: (value: unknown) => value is ManifestJsonParseFailure;
|
|
17
|
+
export declare const manifestJsonParseFailureToFinding: (ruleId: string, severity: Severity, file: string, input: ManifestJsonParseFailure) => AdvisoryFinding;
|
|
18
|
+
//# sourceMappingURL=manifest-json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-json.d.ts","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/shared/manifest-json.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE/D,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,0BAA0B,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,4BAA4B,GAAI,MAAM,MAAM,KAAG,wBAG1D,CAAC;AAEH,eAAO,MAAM,0BAA0B,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,wBAKpE,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC5C,QAAQ,MAAM,EACd,UAAU,QAAQ,EAClB,MAAM,MAAM,EACZ,OAAO,wBAAwB,KAC9B,eAMD,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared loose-manifest JSON helpers.
|
|
3
|
+
*
|
|
4
|
+
* Workspace lint parses installed manifests before per-extension rules run.
|
|
5
|
+
* The parsed value must stay raw JSON, not a schema-decoded manifest, so
|
|
6
|
+
* `*-keys-recognized` rules can still see excess top-level fields.
|
|
7
|
+
*
|
|
8
|
+
* @experimental This API is unstable and may change without notice.
|
|
9
|
+
*/
|
|
10
|
+
export const makeManifestJsonParseFailure = (file) => ({
|
|
11
|
+
_tag: "ManifestJsonParseFailure",
|
|
12
|
+
file,
|
|
13
|
+
});
|
|
14
|
+
export const isManifestJsonParseFailure = (value) => {
|
|
15
|
+
if (value === null || typeof value !== "object") {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
return "_tag" in value && value._tag === "ManifestJsonParseFailure";
|
|
19
|
+
};
|
|
20
|
+
export const manifestJsonParseFailureToFinding = (ruleId, severity, file, input) => ({
|
|
21
|
+
kind: "advisory",
|
|
22
|
+
ruleId,
|
|
23
|
+
severity,
|
|
24
|
+
message: `${describeManifest(file)} contains invalid JSON. Edit \`${input.file}\` and fix the JSON syntax.`,
|
|
25
|
+
location: { file },
|
|
26
|
+
});
|
|
27
|
+
const describeManifest = (file) => {
|
|
28
|
+
switch (file) {
|
|
29
|
+
case "command.json":
|
|
30
|
+
return "Command manifest";
|
|
31
|
+
case "mcp-server.json":
|
|
32
|
+
return "MCP server manifest";
|
|
33
|
+
case "pack.json":
|
|
34
|
+
return "Pack manifest";
|
|
35
|
+
case "skill.json":
|
|
36
|
+
return "Skill manifest";
|
|
37
|
+
case "subagent.json":
|
|
38
|
+
return "Subagent manifest";
|
|
39
|
+
default:
|
|
40
|
+
return "Manifest";
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=manifest-json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-json.js","sourceRoot":"","sources":["../../../../../../src/unstable/lint/catalog/shared/manifest-json.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,IAAY,EAA4B,EAAE,CAAC,CAAC;IACvF,IAAI,EAAE,0BAA0B;IAChC,IAAI;CACL,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,KAAc,EAAqC,EAAE;IAC9F,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAChD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,0BAA0B,CAAC;AACtE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,MAAc,EACd,QAAkB,EAClB,IAAY,EACZ,KAA+B,EACd,EAAE,CAAC,CAAC;IACrB,IAAI,EAAE,UAAU;IAChB,MAAM;IACN,QAAQ;IACR,OAAO,EAAE,GAAG,gBAAgB,CAAC,IAAI,CAAC,kCAAkC,KAAK,CAAC,IAAI,6BAA6B;IAC3G,QAAQ,EAAE,EAAE,IAAI,EAAE;CACnB,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAU,EAAE;IAChD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,cAAc;YACjB,OAAO,kBAAkB,CAAC;QAC5B,KAAK,iBAAiB;YACpB,OAAO,qBAAqB,CAAC;QAC/B,KAAK,WAAW;YACd,OAAO,eAAe,CAAC;QACzB,KAAK,YAAY;YACf,OAAO,gBAAgB,CAAC;QAC1B,KAAK,eAAe;YAClB,OAAO,mBAAmB,CAAC;QAC7B;YACE,OAAO,UAAU,CAAC;IACtB,CAAC;AACH,CAAC,CAAC"}
|