@agentxm/client-core 0.5.1 → 0.5.3
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/agents/mcp-sync.d.ts.map +1 -1
- package/dist/src/unstable/agents/mcp-sync.js +1 -0
- package/dist/src/unstable/agents/mcp-sync.js.map +1 -1
- package/dist/src/unstable/app-error/app-error.d.ts +79 -3
- package/dist/src/unstable/app-error/app-error.d.ts.map +1 -1
- package/dist/src/unstable/app-error/app-error.js +114 -38
- package/dist/src/unstable/app-error/app-error.js.map +1 -1
- package/dist/src/unstable/app-error/builders.d.ts.map +1 -1
- package/dist/src/unstable/app-error/builders.js +1 -2
- package/dist/src/unstable/app-error/builders.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/auth-client.d.ts.map +1 -1
- package/dist/src/unstable/auth/auth-client.js +10 -11
- package/dist/src/unstable/auth/auth-client.js.map +1 -1
- package/dist/src/unstable/auth/credential-store.d.ts.map +1 -1
- package/dist/src/unstable/auth/credential-store.js +1 -4
- package/dist/src/unstable/auth/credential-store.js.map +1 -1
- package/dist/src/unstable/auth/guard.js +1 -1
- package/dist/src/unstable/auth/guard.js.map +1 -1
- package/dist/src/unstable/auth/token-resolution.js +1 -1
- package/dist/src/unstable/auth/token-resolution.js.map +1 -1
- package/dist/src/unstable/cli/prompt/helpers.js +1 -1
- package/dist/src/unstable/cli/prompt/helpers.js.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-interactive.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js +1 -7
- package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-machine.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-machine.js +9 -11
- package/dist/src/unstable/cli-renderer/cli-renderer-machine.js.map +1 -1
- package/dist/src/unstable/cli-runtime/breadcrumb.d.ts +0 -2
- package/dist/src/unstable/cli-runtime/breadcrumb.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/breadcrumb.js +7 -4
- package/dist/src/unstable/cli-runtime/breadcrumb.js.map +1 -1
- package/dist/src/unstable/cli-runtime/graceful-shutdown.d.ts +1 -1
- package/dist/src/unstable/cli-runtime/graceful-shutdown.js +2 -2
- package/dist/src/unstable/cli-runtime/handle-error.d.ts +3 -4
- package/dist/src/unstable/cli-runtime/handle-error.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/handle-error.js +10 -20
- package/dist/src/unstable/cli-runtime/handle-error.js.map +1 -1
- package/dist/src/unstable/cli-runtime/json-envelope.d.ts +3 -14
- package/dist/src/unstable/cli-runtime/json-envelope.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/json-envelope.js +3 -6
- package/dist/src/unstable/cli-runtime/json-envelope.js.map +1 -1
- package/dist/src/unstable/cli-runtime/output-mode.d.ts +0 -3
- package/dist/src/unstable/cli-runtime/output-mode.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/output-mode.js +1 -4
- package/dist/src/unstable/cli-runtime/output-mode.js.map +1 -1
- package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts +10 -0
- package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/runtime-envelope.js +32 -17
- package/dist/src/unstable/cli-runtime/runtime-envelope.js.map +1 -1
- package/dist/src/unstable/commands/command-content.d.ts +10 -0
- package/dist/src/unstable/commands/command-content.d.ts.map +1 -1
- package/dist/src/unstable/commands/command-content.js +17 -3
- package/dist/src/unstable/commands/command-content.js.map +1 -1
- package/dist/src/unstable/commands/manager.js +4 -4
- package/dist/src/unstable/commands/manager.js.map +1 -1
- package/dist/src/unstable/commands/manifest-schema.d.ts +11 -8
- package/dist/src/unstable/commands/manifest-schema.d.ts.map +1 -1
- package/dist/src/unstable/commands/manifest-schema.js +8 -6
- package/dist/src/unstable/commands/manifest-schema.js.map +1 -1
- package/dist/src/unstable/commands/operations/enable.js +3 -3
- package/dist/src/unstable/commands/operations/enable.js.map +1 -1
- package/dist/src/unstable/commands/operations/install.d.ts +1 -1
- package/dist/src/unstable/commands/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/install.js +3 -3
- package/dist/src/unstable/commands/operations/install.js.map +1 -1
- package/dist/src/unstable/commands/operations/new-command.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/new-command.js +5 -4
- package/dist/src/unstable/commands/operations/new-command.js.map +1 -1
- package/dist/src/unstable/commands/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/publish.js +12 -5
- package/dist/src/unstable/commands/operations/publish.js.map +1 -1
- package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +11 -7
- package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/shared-command-helpers.js +33 -7
- package/dist/src/unstable/commands/operations/shared-command-helpers.js.map +1 -1
- package/dist/src/unstable/commands/reconciliation-adapter.js +2 -2
- package/dist/src/unstable/commands/reconciliation-adapter.js.map +1 -1
- package/dist/src/unstable/commands/registry-ref-builder.d.ts +2 -2
- package/dist/src/unstable/commands/registry-ref-builder.d.ts.map +1 -1
- package/dist/src/unstable/commands/registry-ref-builder.js +2 -2
- package/dist/src/unstable/commands/registry-ref-builder.js.map +1 -1
- package/dist/src/unstable/discover/discover.js +5 -5
- package/dist/src/unstable/discover/discover.js.map +1 -1
- package/dist/src/unstable/extensions/common.d.ts +117 -23
- package/dist/src/unstable/extensions/common.d.ts.map +1 -1
- package/dist/src/unstable/extensions/common.js +185 -43
- package/dist/src/unstable/extensions/common.js.map +1 -1
- package/dist/src/unstable/extensions/fqn.d.ts +38 -10
- package/dist/src/unstable/extensions/fqn.d.ts.map +1 -1
- package/dist/src/unstable/extensions/fqn.js +44 -25
- package/dist/src/unstable/extensions/fqn.js.map +1 -1
- package/dist/src/unstable/extensions/frontmatter.d.ts.map +1 -1
- package/dist/src/unstable/extensions/frontmatter.js +0 -1
- package/dist/src/unstable/extensions/frontmatter.js.map +1 -1
- package/dist/src/unstable/extensions/index.d.ts +4 -4
- package/dist/src/unstable/extensions/index.d.ts.map +1 -1
- package/dist/src/unstable/extensions/index.js +3 -3
- package/dist/src/unstable/extensions/index.js.map +1 -1
- package/dist/src/unstable/extensions/materializable-from-disk.d.ts +2 -2
- package/dist/src/unstable/extensions/materializable-from-disk.d.ts.map +1 -1
- package/dist/src/unstable/extensions/materializable-from-disk.js +9 -12
- package/dist/src/unstable/extensions/materializable-from-disk.js.map +1 -1
- package/dist/src/unstable/extensions/operations.d.ts +4 -4
- package/dist/src/unstable/extensions/operations.d.ts.map +1 -1
- package/dist/src/unstable/extensions/operations.js +10 -10
- package/dist/src/unstable/extensions/operations.js.map +1 -1
- package/dist/src/unstable/extensions/ref-base.d.ts +6 -9
- package/dist/src/unstable/extensions/ref-base.d.ts.map +1 -1
- package/dist/src/unstable/extensions/refs.d.ts +2 -2
- package/dist/src/unstable/extensions/refs.d.ts.map +1 -1
- package/dist/src/unstable/extensions/registry-source.d.ts +8 -8
- package/dist/src/unstable/extensions/registry-source.js +13 -13
- package/dist/src/unstable/extensions/registry-source.js.map +1 -1
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.d.ts +4 -4
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js +9 -9
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js.map +1 -1
- package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts +1 -1
- package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/pack/manifest-present.js +6 -6
- package/dist/src/unstable/lint/catalog/pack/manifest-present.js.map +1 -1
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts +5 -5
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js +9 -9
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js.map +1 -1
- package/dist/src/unstable/lint/catalog/pack-accessor/contexts.d.ts +1 -1
- package/dist/src/unstable/lint/catalog/pack-accessor/contexts.js +1 -1
- package/dist/src/unstable/lint/catalog/pack-accessor/platform.d.ts +3 -3
- package/dist/src/unstable/lint/catalog/pack-accessor/platform.js +3 -3
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js +1 -1
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js.map +1 -1
- package/dist/src/unstable/lint/catalog/skill/manifest-present.d.ts +1 -1
- package/dist/src/unstable/lint/catalog/skill/manifest-present.js +1 -1
- package/dist/src/unstable/lint/catalog/skill-accessor/vft.d.ts +1 -1
- package/dist/src/unstable/lint/catalog/skill-accessor/vft.js +1 -1
- package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.d.ts +1 -1
- package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.js +1 -1
- package/dist/src/unstable/lint/catalog/workspace/helpers/registry-source.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.d.ts +1 -1
- package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.js +1 -1
- package/dist/src/unstable/lint/catalog/workspace/packs-dependencies-resolved.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.js +1 -1
- package/dist/src/unstable/lint/catalog/workspace/skills-lockfile-aligned.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace-fixtures/interpret-ops.js +3 -3
- 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 +1 -1
- package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js +1 -1
- package/dist/src/unstable/lint/context.d.ts +7 -7
- package/dist/src/unstable/lint/issues-to-findings.js +1 -1
- package/dist/src/unstable/lint/issues-to-findings.js.map +1 -1
- package/dist/src/unstable/lockfile/index.d.ts +2 -2
- package/dist/src/unstable/lockfile/index.d.ts.map +1 -1
- package/dist/src/unstable/lockfile/index.js +1 -1
- package/dist/src/unstable/lockfile/index.js.map +1 -1
- package/dist/src/unstable/lockfile/resolved-version.d.ts.map +1 -1
- package/dist/src/unstable/lockfile/resolved-version.js +3 -4
- package/dist/src/unstable/lockfile/resolved-version.js.map +1 -1
- package/dist/src/unstable/lockfile/schema.d.ts +61 -61
- package/dist/src/unstable/lockfile/schema.d.ts.map +1 -1
- package/dist/src/unstable/lockfile/schema.js +20 -17
- package/dist/src/unstable/lockfile/schema.js.map +1 -1
- package/dist/src/unstable/mcp-servers/manager.js +2 -2
- package/dist/src/unstable/mcp-servers/manager.js.map +1 -1
- package/dist/src/unstable/mcp-servers/manifest-schema.d.ts +9 -5
- package/dist/src/unstable/mcp-servers/manifest-schema.d.ts.map +1 -1
- package/dist/src/unstable/mcp-servers/manifest-schema.js +6 -3
- package/dist/src/unstable/mcp-servers/manifest-schema.js.map +1 -1
- package/dist/src/unstable/mcp-servers/operations/install.d.ts +1 -1
- package/dist/src/unstable/mcp-servers/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/mcp-servers/operations/install.js +2 -2
- package/dist/src/unstable/mcp-servers/operations/install.js.map +1 -1
- package/dist/src/unstable/mcp-servers/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/mcp-servers/operations/publish.js +5 -4
- package/dist/src/unstable/mcp-servers/operations/publish.js.map +1 -1
- package/dist/src/unstable/mcp-servers/reconciliation-adapter.js +2 -2
- package/dist/src/unstable/mcp-servers/reconciliation-adapter.js.map +1 -1
- package/dist/src/unstable/mcp-servers/registry-ref-builder.d.ts +2 -2
- package/dist/src/unstable/mcp-servers/registry-ref-builder.d.ts.map +1 -1
- package/dist/src/unstable/mcp-servers/registry-ref-builder.js +2 -2
- package/dist/src/unstable/mcp-servers/registry-ref-builder.js.map +1 -1
- package/dist/src/unstable/packaging/axm-package-meta.d.ts +1 -1
- package/dist/src/unstable/packaging/axm-package-meta.js +2 -2
- package/dist/src/unstable/packaging/axm-package-meta.js.map +1 -1
- package/dist/src/unstable/packaging/package-type.d.ts +4 -0
- package/dist/src/unstable/packaging/package-type.d.ts.map +1 -1
- package/dist/src/unstable/packaging/package-type.js +17 -4
- package/dist/src/unstable/packaging/package-type.js.map +1 -1
- package/dist/src/unstable/packaging/package-url.d.ts +7 -1
- package/dist/src/unstable/packaging/package-url.d.ts.map +1 -1
- package/dist/src/unstable/packaging/package-url.js +38 -5
- package/dist/src/unstable/packaging/package-url.js.map +1 -1
- package/dist/src/unstable/packaging/read.d.ts +1 -1
- package/dist/src/unstable/packaging/read.d.ts.map +1 -1
- package/dist/src/unstable/packaging/types.d.ts +2 -2
- package/dist/src/unstable/packaging/types.d.ts.map +1 -1
- package/dist/src/unstable/packs/dependency-resolution.d.ts +3 -3
- package/dist/src/unstable/packs/dependency-resolution.d.ts.map +1 -1
- package/dist/src/unstable/packs/dependency-resolution.js +66 -27
- package/dist/src/unstable/packs/dependency-resolution.js.map +1 -1
- package/dist/src/unstable/packs/expansion.d.ts +14 -14
- package/dist/src/unstable/packs/expansion.d.ts.map +1 -1
- package/dist/src/unstable/packs/expansion.js +18 -18
- package/dist/src/unstable/packs/expansion.js.map +1 -1
- package/dist/src/unstable/packs/index.d.ts +22 -22
- package/dist/src/unstable/packs/index.d.ts.map +1 -1
- package/dist/src/unstable/packs/index.js +14 -14
- package/dist/src/unstable/packs/index.js.map +1 -1
- package/dist/src/unstable/packs/manager.d.ts +7 -7
- package/dist/src/unstable/packs/manager.d.ts.map +1 -1
- package/dist/src/unstable/packs/manager.js +26 -30
- package/dist/src/unstable/packs/manager.js.map +1 -1
- package/dist/src/unstable/packs/manifest-schema.d.ts +16 -17
- package/dist/src/unstable/packs/manifest-schema.d.ts.map +1 -1
- package/dist/src/unstable/packs/manifest-schema.js +14 -15
- package/dist/src/unstable/packs/manifest-schema.js.map +1 -1
- package/dist/src/unstable/packs/operations/add-to-pack.d.ts +7 -7
- package/dist/src/unstable/packs/operations/add-to-pack.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/add-to-pack.js +19 -42
- package/dist/src/unstable/packs/operations/add-to-pack.js.map +1 -1
- package/dist/src/unstable/packs/operations/install.d.ts +17 -17
- package/dist/src/unstable/packs/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/install.js +37 -33
- package/dist/src/unstable/packs/operations/install.js.map +1 -1
- package/dist/src/unstable/packs/operations/new-pack.d.ts +12 -12
- package/dist/src/unstable/packs/operations/new-pack.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/new-pack.js +29 -32
- package/dist/src/unstable/packs/operations/new-pack.js.map +1 -1
- package/dist/src/unstable/packs/operations/publish.d.ts +8 -8
- package/dist/src/unstable/packs/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/publish.js +21 -31
- package/dist/src/unstable/packs/operations/publish.js.map +1 -1
- package/dist/src/unstable/packs/operations/remove-from-pack.d.ts +7 -7
- package/dist/src/unstable/packs/operations/remove-from-pack.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/remove-from-pack.js +18 -27
- package/dist/src/unstable/packs/operations/remove-from-pack.js.map +1 -1
- package/dist/src/unstable/packs/operations/uninstall.d.ts +11 -11
- package/dist/src/unstable/packs/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/uninstall.js +17 -17
- package/dist/src/unstable/packs/operations/uninstall.js.map +1 -1
- package/dist/src/unstable/packs/operations/unpack.d.ts +10 -10
- package/dist/src/unstable/packs/operations/unpack.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/unpack.js +42 -20
- package/dist/src/unstable/packs/operations/unpack.js.map +1 -1
- package/dist/src/unstable/packs/paths.d.ts +9 -9
- package/dist/src/unstable/packs/paths.d.ts.map +1 -1
- package/dist/src/unstable/packs/paths.js +7 -7
- package/dist/src/unstable/packs/paths.js.map +1 -1
- package/dist/src/unstable/packs/reconciliation-adapter.d.ts +1 -1
- package/dist/src/unstable/packs/reconciliation-adapter.d.ts.map +1 -1
- package/dist/src/unstable/packs/reconciliation-adapter.js +120 -79
- package/dist/src/unstable/packs/reconciliation-adapter.js.map +1 -1
- package/dist/src/unstable/packs/refs.d.ts +5 -5
- package/dist/src/unstable/packs/refs.d.ts.map +1 -1
- package/dist/src/unstable/packs/refs.js +2 -2
- package/dist/src/unstable/plan/resolve-plan.d.ts.map +1 -1
- package/dist/src/unstable/plan/resolve-plan.js +3 -4
- package/dist/src/unstable/plan/resolve-plan.js.map +1 -1
- package/dist/src/unstable/publish/input-normalization.d.ts +3 -3
- package/dist/src/unstable/publish/input-normalization.d.ts.map +1 -1
- package/dist/src/unstable/publish/manifest-policy.d.ts +49 -34
- package/dist/src/unstable/publish/manifest-policy.d.ts.map +1 -1
- package/dist/src/unstable/publish/manifest-policy.js +19 -8
- package/dist/src/unstable/publish/manifest-policy.js.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts +4 -4
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.js +2 -2
- package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
- package/dist/src/unstable/registry/client.d.ts +7 -7
- package/dist/src/unstable/registry/client.d.ts.map +1 -1
- package/dist/src/unstable/registry/client.js.map +1 -1
- package/dist/src/unstable/registry/discover-schema.d.ts +8 -6
- package/dist/src/unstable/registry/discover-schema.d.ts.map +1 -1
- package/dist/src/unstable/registry/discover-schema.js +2 -2
- package/dist/src/unstable/registry/discover-schema.js.map +1 -1
- package/dist/src/unstable/registry/error-mapping.d.ts.map +1 -1
- package/dist/src/unstable/registry/error-mapping.js +2 -6
- package/dist/src/unstable/registry/error-mapping.js.map +1 -1
- package/dist/src/unstable/registry/local-client.js +10 -10
- package/dist/src/unstable/registry/local-client.js.map +1 -1
- package/dist/src/unstable/registry/remote-client.d.ts.map +1 -1
- package/dist/src/unstable/registry/remote-client.js +17 -23
- package/dist/src/unstable/registry/remote-client.js.map +1 -1
- package/dist/src/unstable/registry/schema.d.ts +11 -7
- package/dist/src/unstable/registry/schema.d.ts.map +1 -1
- package/dist/src/unstable/registry/schema.js +3 -3
- package/dist/src/unstable/registry/schema.js.map +1 -1
- package/dist/src/unstable/registry/utils.d.ts +1 -1
- package/dist/src/unstable/registry/utils.d.ts.map +1 -1
- package/dist/src/unstable/registry/utils.js +4 -4
- package/dist/src/unstable/registry/utils.js.map +1 -1
- package/dist/src/unstable/settings/ignored-patterns.d.ts.map +1 -1
- package/dist/src/unstable/settings/ignored-patterns.js +1 -4
- package/dist/src/unstable/settings/ignored-patterns.js.map +1 -1
- package/dist/src/unstable/settings/index.d.ts +2 -2
- package/dist/src/unstable/settings/index.d.ts.map +1 -1
- package/dist/src/unstable/settings/index.js +1 -1
- package/dist/src/unstable/settings/index.js.map +1 -1
- package/dist/src/unstable/settings/schema.d.ts +27 -27
- package/dist/src/unstable/settings/schema.d.ts.map +1 -1
- package/dist/src/unstable/settings/schema.js +57 -73
- package/dist/src/unstable/settings/schema.js.map +1 -1
- package/dist/src/unstable/skills/index.d.ts +2 -1
- package/dist/src/unstable/skills/index.d.ts.map +1 -1
- package/dist/src/unstable/skills/index.js +2 -1
- package/dist/src/unstable/skills/index.js.map +1 -1
- package/dist/src/unstable/skills/manager.d.ts.map +1 -1
- package/dist/src/unstable/skills/manager.js +5 -5
- package/dist/src/unstable/skills/manager.js.map +1 -1
- package/dist/src/unstable/skills/manifest-schema.d.ts +9 -5
- package/dist/src/unstable/skills/manifest-schema.d.ts.map +1 -1
- package/dist/src/unstable/skills/manifest-schema.js +6 -3
- package/dist/src/unstable/skills/manifest-schema.js.map +1 -1
- package/dist/src/unstable/skills/operations/copy.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/copy.js +3 -2
- package/dist/src/unstable/skills/operations/copy.js.map +1 -1
- package/dist/src/unstable/skills/operations/disable.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/disable.js +1 -3
- 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 +4 -1
- package/dist/src/unstable/skills/operations/enable.js.map +1 -1
- package/dist/src/unstable/skills/operations/install.d.ts +1 -1
- package/dist/src/unstable/skills/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/install.js +8 -8
- package/dist/src/unstable/skills/operations/install.js.map +1 -1
- package/dist/src/unstable/skills/operations/new-skill.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/new-skill.js +3 -4
- package/dist/src/unstable/skills/operations/new-skill.js.map +1 -1
- package/dist/src/unstable/skills/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/publish.js +4 -4
- package/dist/src/unstable/skills/operations/publish.js.map +1 -1
- package/dist/src/unstable/skills/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/uninstall.js +4 -6
- package/dist/src/unstable/skills/operations/uninstall.js.map +1 -1
- package/dist/src/unstable/skills/reconciliation-adapter.js +2 -2
- package/dist/src/unstable/skills/reconciliation-adapter.js.map +1 -1
- package/dist/src/unstable/skills/registry-ref-builder.d.ts +2 -2
- package/dist/src/unstable/skills/registry-ref-builder.d.ts.map +1 -1
- package/dist/src/unstable/skills/registry-ref-builder.js +2 -2
- package/dist/src/unstable/skills/registry-ref-builder.js.map +1 -1
- package/dist/src/unstable/skills/utils.d.ts +7 -7
- package/dist/src/unstable/skills/utils.d.ts.map +1 -1
- package/dist/src/unstable/skills/utils.js +6 -6
- package/dist/src/unstable/skills/utils.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts +2 -2
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.js +13 -28
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-identifier.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-identifier.js +5 -10
- package/dist/src/unstable/source-resolution/resolve-identifier.js.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-source-pattern.js +1 -1
- package/dist/src/unstable/source-resolution/resolve-source-pattern.js.map +1 -1
- package/dist/src/unstable/sources/index.d.ts +1 -1
- package/dist/src/unstable/sources/index.d.ts.map +1 -1
- package/dist/src/unstable/sources/index.js +1 -1
- package/dist/src/unstable/sources/index.js.map +1 -1
- package/dist/src/unstable/sources/lock-entry-to-ref.d.ts +3 -3
- package/dist/src/unstable/sources/lock-entry-to-ref.d.ts.map +1 -1
- package/dist/src/unstable/sources/lock-entry-to-ref.js +7 -10
- package/dist/src/unstable/sources/lock-entry-to-ref.js.map +1 -1
- package/dist/src/unstable/sources/parser.d.ts +2 -2
- package/dist/src/unstable/sources/parser.d.ts.map +1 -1
- package/dist/src/unstable/sources/parser.js +1 -1
- package/dist/src/unstable/sources/parser.js.map +1 -1
- package/dist/src/unstable/sources/provider.d.ts +2 -2
- package/dist/src/unstable/sources/provider.d.ts.map +1 -1
- package/dist/src/unstable/subagents/manager.d.ts.map +1 -1
- package/dist/src/unstable/subagents/manager.js +0 -1
- package/dist/src/unstable/subagents/manager.js.map +1 -1
- package/dist/src/unstable/subagents/manifest-schema.d.ts +9 -5
- package/dist/src/unstable/subagents/manifest-schema.d.ts.map +1 -1
- package/dist/src/unstable/subagents/manifest-schema.js +6 -3
- package/dist/src/unstable/subagents/manifest-schema.js.map +1 -1
- package/dist/src/unstable/subagents/operations/disable.d.ts.map +1 -1
- package/dist/src/unstable/subagents/operations/disable.js +1 -3
- package/dist/src/unstable/subagents/operations/disable.js.map +1 -1
- package/dist/src/unstable/subagents/operations/enable.d.ts.map +1 -1
- package/dist/src/unstable/subagents/operations/enable.js +1 -2
- 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 +4 -5
- package/dist/src/unstable/subagents/operations/publish.js.map +1 -1
- package/dist/src/unstable/subagents/reconciliation-adapter.js +2 -2
- package/dist/src/unstable/subagents/reconciliation-adapter.js.map +1 -1
- package/dist/src/unstable/subagents/registry-ref-builder.d.ts +2 -2
- package/dist/src/unstable/subagents/registry-ref-builder.d.ts.map +1 -1
- package/dist/src/unstable/subagents/registry-ref-builder.js +2 -2
- package/dist/src/unstable/subagents/registry-ref-builder.js.map +1 -1
- package/dist/src/unstable/subagents/subagent-content.d.ts.map +1 -1
- package/dist/src/unstable/subagents/subagent-content.js +3 -10
- package/dist/src/unstable/subagents/subagent-content.js.map +1 -1
- package/dist/src/unstable/utils/build-zip-archive.d.ts.map +1 -1
- package/dist/src/unstable/utils/build-zip-archive.js +0 -1
- package/dist/src/unstable/utils/build-zip-archive.js.map +1 -1
- package/dist/src/unstable/version-constraints/version-constraints.d.ts +30 -23
- package/dist/src/unstable/version-constraints/version-constraints.d.ts.map +1 -1
- package/dist/src/unstable/version-constraints/version-constraints.js +52 -43
- package/dist/src/unstable/version-constraints/version-constraints.js.map +1 -1
- package/dist/src/unstable/version-resolution/version-resolution.d.ts.map +1 -1
- package/dist/src/unstable/version-resolution/version-resolution.js +1 -7
- package/dist/src/unstable/version-resolution/version-resolution.js.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts +6 -6
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js +26 -38
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/types.d.ts +4 -4
- package/dist/src/unstable/workspace/configured-entry-resolution/types.d.ts.map +1 -1
- package/dist/src/unstable/workspace/index.d.ts +1 -1
- package/dist/src/unstable/workspace/index.d.ts.map +1 -1
- package/dist/src/unstable/workspace/initialization.d.ts +20 -20
- package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
- package/dist/src/unstable/workspace/initialization.js +1 -3
- package/dist/src/unstable/workspace/initialization.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/pack.d.ts +4 -4
- package/dist/src/unstable/workspace/read-model/extensions/pack.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/pack.js +2 -2
- package/dist/src/unstable/workspace/read-model/extensions/pack.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/package-root.d.ts +4 -0
- package/dist/src/unstable/workspace/read-model/extensions/package-root.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/package-root.js +18 -1
- package/dist/src/unstable/workspace/read-model/extensions/package-root.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/service.js +2 -2
- package/dist/src/unstable/workspace/read-model/service.js.map +1 -1
- package/dist/src/unstable/workspace/read-model-record-readers.js +2 -2
- package/dist/src/unstable/workspace/read-model-record-readers.js.map +1 -1
- package/dist/src/unstable/workspace/reconciliation-types.d.ts +2 -2
- package/dist/src/unstable/workspace/reconciliation-types.d.ts.map +1 -1
- package/dist/src/unstable/workspace/reconciliation.js.map +1 -1
- package/dist/src/unstable/workspace/service-interface.d.ts +17 -17
- package/dist/src/unstable/workspace/service-interface.d.ts.map +1 -1
- package/dist/src/unstable/workspace/service-interface.js.map +1 -1
- package/dist/src/unstable/workspace/service.d.ts +38 -38
- package/dist/src/unstable/workspace/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/service.js +24 -28
- package/dist/src/unstable/workspace/service.js.map +1 -1
- package/dist/src/unstable/workspace/test-stubs.d.ts +8 -8
- package/dist/src/unstable/workspace/test-stubs.d.ts.map +1 -1
- package/dist/src/unstable/workspace/test-stubs.js +16 -16
- package/dist/src/unstable/workspace/test-stubs.js.map +1 -1
- package/dist/src/unstable/workspace/version-currency/check-currency.d.ts +5 -5
- package/dist/src/unstable/workspace/version-currency/check-currency.d.ts.map +1 -1
- package/dist/src/unstable/workspace/version-currency/check-currency.js +2 -2
- package/dist/src/unstable/workspace/version-currency/check-currency.js.map +1 -1
- package/dist/src/unstable/workspace/version-currency/collectors.d.ts +3 -3
- package/dist/src/unstable/workspace/version-currency/collectors.d.ts.map +1 -1
- package/dist/src/unstable/workspace/version-currency/collectors.js +2 -2
- package/dist/src/unstable/workspace/version-currency/collectors.js.map +1 -1
- package/dist/src/unstable/workspace/version-currency/test-stubs.js +2 -2
- package/dist/src/unstable/workspace/version-currency/test-stubs.js.map +1 -1
- package/package.json +2 -2
- package/site-content/__generated__/schemas/axm-lock.schema.json +54 -23
- package/site-content/__generated__/schemas/axm-package-meta.schema.json +13 -2
- package/site-content/__generated__/schemas/command.schema.json +123 -19
- package/site-content/__generated__/schemas/mcp-server.schema.json +124 -14
- package/site-content/__generated__/schemas/pack.schema.json +173 -0
- package/site-content/__generated__/schemas/settings.schema.json +107 -22
- package/site-content/__generated__/schemas/skill.schema.json +124 -14
- package/site-content/__generated__/schemas/subagent.schema.json +176 -0
- package/site-content/install.md +1 -1
- package/site-content/__generated__/schemas/extension-pack.schema.json +0 -103
|
@@ -9,7 +9,7 @@ import * as Result from "effect/Result";
|
|
|
9
9
|
import { AGENT_IDS } from "../agents/types.js";
|
|
10
10
|
import { HANDLE_PATTERN_SOURCE, HandleSchema } from "./handle.js";
|
|
11
11
|
import { PackageUrlSchema } from "../packaging/package-url.js";
|
|
12
|
-
import {
|
|
12
|
+
import { VersionSchema, VersionRangeSchema } from "../version-constraints/version-constraints.js";
|
|
13
13
|
/**
|
|
14
14
|
* Author information for a manifest.
|
|
15
15
|
*
|
|
@@ -22,7 +22,7 @@ export const AuthorSchema = Schema.Struct({
|
|
|
22
22
|
}).annotate({
|
|
23
23
|
identifier: "Author",
|
|
24
24
|
title: "Author",
|
|
25
|
-
description: "
|
|
25
|
+
description: "A person credited as a creator or maintainer of this extension.",
|
|
26
26
|
});
|
|
27
27
|
/** Convert schema-decoded author shape into runtime/domain Author. */
|
|
28
28
|
export const toAuthor = (author) => ({
|
|
@@ -97,7 +97,7 @@ export const extensionTypeSentenceLabels = {
|
|
|
97
97
|
subagent: "subagent",
|
|
98
98
|
file: "file",
|
|
99
99
|
rule: "rule",
|
|
100
|
-
pack: "
|
|
100
|
+
pack: "pack",
|
|
101
101
|
};
|
|
102
102
|
export const extensionTypePluralSentenceLabels = {
|
|
103
103
|
skills: "skills",
|
|
@@ -106,19 +106,34 @@ export const extensionTypePluralSentenceLabels = {
|
|
|
106
106
|
subagents: "subagents",
|
|
107
107
|
files: "files",
|
|
108
108
|
rules: "rules",
|
|
109
|
-
packs: "
|
|
109
|
+
packs: "packs",
|
|
110
110
|
};
|
|
111
111
|
const EXTENSION_TYPE_PLURAL_PATTERN_SOURCE = extensionTypePluralSegments.join("|");
|
|
112
|
+
/**
|
|
113
|
+
* Plural extension-type segments that may appear as dependency keys —
|
|
114
|
+
* everything except `packs`. Packs cannot depend on other packs.
|
|
115
|
+
*
|
|
116
|
+
* @experimental This API is unstable and may change without notice.
|
|
117
|
+
*/
|
|
118
|
+
export const nonPackExtensionTypePluralSegments = [
|
|
119
|
+
"skills",
|
|
120
|
+
"commands",
|
|
121
|
+
"mcp-servers",
|
|
122
|
+
"subagents",
|
|
123
|
+
"files",
|
|
124
|
+
"rules",
|
|
125
|
+
];
|
|
126
|
+
const NON_PACK_EXTENSION_TYPE_PLURAL_PATTERN_SOURCE = nonPackExtensionTypePluralSegments.join("|");
|
|
112
127
|
const EXTENSION_NAME_MAX_LENGTH = 64;
|
|
113
128
|
const EXTENSION_NAME_PATTERN_SOURCE = "[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?";
|
|
114
129
|
const EXTENSION_NAME_BRAND = "ExtensionName";
|
|
115
|
-
const
|
|
116
|
-
const makeExtensionNameSchema = () => Schema.
|
|
130
|
+
const INVALID_EXTENSION_NAME_MESSAGE = `Expected a valid extension name: max ${EXTENSION_NAME_MAX_LENGTH} characters, lowercase letters, numbers, and hyphens only, and not starting or ending with a hyphen (e.g., my-skill)`;
|
|
131
|
+
const makeExtensionNameSchema = () => Schema.NonEmptyString.pipe(Schema.check(Schema.isPattern(EXTENSION_NAME_PATTERN, { message: INVALID_EXTENSION_NAME_MESSAGE })), Schema.annotate({
|
|
117
132
|
identifier: "ExtensionName",
|
|
118
133
|
title: "Extension Name",
|
|
119
134
|
description: "The name of an extension — lowercase letters, numbers, and hyphens (e.g. my-skill).",
|
|
120
135
|
examples: ["my-skill", "code-review", "prettier"],
|
|
121
|
-
message:
|
|
136
|
+
message: INVALID_EXTENSION_NAME_MESSAGE,
|
|
122
137
|
}), Schema.brand(EXTENSION_NAME_BRAND));
|
|
123
138
|
/**
|
|
124
139
|
* Fully qualified name regex: `@<handle>/<type>/<name>` where handle and name
|
|
@@ -127,6 +142,23 @@ const makeExtensionNameSchema = () => Schema.String.pipe(Schema.check(Schema.mak
|
|
|
127
142
|
* @experimental This API is unstable and may change without notice.
|
|
128
143
|
*/
|
|
129
144
|
export const FQN_PATTERN = new RegExp(`^(${HANDLE_PATTERN_SOURCE})\\/(${EXTENSION_TYPE_PLURAL_PATTERN_SOURCE})\\/(${EXTENSION_NAME_PATTERN_SOURCE})$`);
|
|
145
|
+
/**
|
|
146
|
+
* Fully qualified name regex restricted to non-pack extension types. Matches
|
|
147
|
+
* `@<handle>/<type>/<name>` where `<type>` is any plural extension type other
|
|
148
|
+
* than `packs`.
|
|
149
|
+
*
|
|
150
|
+
* @experimental This API is unstable and may change without notice.
|
|
151
|
+
*/
|
|
152
|
+
export const NON_PACK_FQN_PATTERN = new RegExp(`^(${HANDLE_PATTERN_SOURCE})\\/(${NON_PACK_EXTENSION_TYPE_PLURAL_PATTERN_SOURCE})\\/(${EXTENSION_NAME_PATTERN_SOURCE})$`);
|
|
153
|
+
/**
|
|
154
|
+
* Fully qualified name regex restricted to the pack extension type. Matches
|
|
155
|
+
* `@<handle>/packs/<name>`.
|
|
156
|
+
*
|
|
157
|
+
* @experimental This API is unstable and may change without notice.
|
|
158
|
+
*/
|
|
159
|
+
export const PACK_FQN_PATTERN = new RegExp(`^(${HANDLE_PATTERN_SOURCE})\\/packs\\/(${EXTENSION_NAME_PATTERN_SOURCE})$`);
|
|
160
|
+
const EXTENSION_SPEC_PATTERN = new RegExp(`^(${HANDLE_PATTERN_SOURCE})\\/(${EXTENSION_TYPE_PLURAL_PATTERN_SOURCE})\\/(${EXTENSION_NAME_PATTERN_SOURCE})(?:@.+)?$`);
|
|
161
|
+
const PACK_SPEC_PATTERN = new RegExp(`^(${HANDLE_PATTERN_SOURCE})\\/packs\\/(${EXTENSION_NAME_PATTERN_SOURCE})(?:@.+)?$`);
|
|
130
162
|
/**
|
|
131
163
|
* Canonical extension short name regex.
|
|
132
164
|
*/
|
|
@@ -161,22 +193,22 @@ export const ExtensionTypePluralSchema = Schema.Literals(extensionTypePluralSegm
|
|
|
161
193
|
*
|
|
162
194
|
* @experimental This API is unstable and may change without notice.
|
|
163
195
|
*/
|
|
164
|
-
export const
|
|
196
|
+
export const ExtensionFqnPartsSchema = Schema.Struct({
|
|
165
197
|
owner: HandleSchema,
|
|
166
198
|
type: ExtensionTypeSchema,
|
|
167
199
|
name: ExtensionNameSchema,
|
|
168
200
|
}).annotate({
|
|
169
|
-
identifier: "
|
|
170
|
-
title: "
|
|
201
|
+
identifier: "ExtensionFqnParts",
|
|
202
|
+
title: "Extension FQN Parts",
|
|
171
203
|
description: "The parts of a full extension identifier like @my-org/skills/code-review.",
|
|
172
204
|
});
|
|
173
|
-
const
|
|
205
|
+
const decodeExtensionFqnParts = Schema.decodeUnknownResult(ExtensionFqnPartsSchema);
|
|
174
206
|
/**
|
|
175
207
|
* Parse a fully qualified name string into validated structured parts.
|
|
176
208
|
*
|
|
177
209
|
* @experimental This API is unstable and may change without notice.
|
|
178
210
|
*/
|
|
179
|
-
export const
|
|
211
|
+
export const parseExtensionFqnParts = (input) => {
|
|
180
212
|
const parts = input.split("/");
|
|
181
213
|
if (parts.length !== 3) {
|
|
182
214
|
return undefined;
|
|
@@ -189,70 +221,147 @@ export const parseFullyQualifiedNameParts = (input) => {
|
|
|
189
221
|
return undefined;
|
|
190
222
|
}
|
|
191
223
|
const type = toExtensionType(typeSegment);
|
|
192
|
-
const result =
|
|
224
|
+
const result = decodeExtensionFqnParts({ owner, type, name });
|
|
193
225
|
return Result.isSuccess(result) ? result.success : undefined;
|
|
194
226
|
};
|
|
195
227
|
/**
|
|
196
|
-
* Parse
|
|
228
|
+
* Parse an extension spec string (with optional version constraint) into parts.
|
|
197
229
|
* Strips the version constraint suffix and returns the validated FQN parts.
|
|
198
230
|
*
|
|
199
231
|
* @experimental This API is unstable and may change without notice.
|
|
200
232
|
*/
|
|
201
|
-
export const
|
|
233
|
+
export const parseExtensionSpecParts = (input) => {
|
|
202
234
|
const lastSlash = input.lastIndexOf("/");
|
|
203
235
|
const constraintAt = lastSlash > 0 ? input.indexOf("@", lastSlash + 1) : -1;
|
|
204
236
|
const fqnPart = constraintAt > 0 ? input.slice(0, constraintAt) : input;
|
|
205
|
-
return
|
|
237
|
+
return parseExtensionFqnParts(fqnPart);
|
|
206
238
|
};
|
|
239
|
+
const INVALID_EXTENSION_FQN_MESSAGE = "Expected fully qualified name in @handle/(skills|commands|mcp-servers|subagents|files|rules|packs)/name form";
|
|
207
240
|
/**
|
|
208
|
-
* Fully qualified name string schema validated
|
|
241
|
+
* Fully qualified name string schema validated against the composed handle,
|
|
242
|
+
* type, and name patterns. Annotated so JSON Schema generation surfaces a
|
|
243
|
+
* `pattern` and a top-level `ExtensionFqn` definition that `Schema.Record`
|
|
244
|
+
* keys can reference via `propertyNames`.
|
|
209
245
|
*
|
|
210
246
|
* @experimental This API is unstable and may change without notice.
|
|
211
247
|
*/
|
|
212
|
-
export const
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
248
|
+
export const ExtensionFqnSchema = Schema.String.pipe(Schema.check(Schema.isPattern(FQN_PATTERN, { message: INVALID_EXTENSION_FQN_MESSAGE })), Schema.annotate({
|
|
249
|
+
identifier: "ExtensionFqn",
|
|
250
|
+
title: "Extension FQN",
|
|
251
|
+
description: "Canonical extension identifier in @owner/<type>s/<name> form.",
|
|
252
|
+
examples: ["@acme/skills/code-review", "@my-org/commands/format"],
|
|
253
|
+
message: INVALID_EXTENSION_FQN_MESSAGE,
|
|
254
|
+
}));
|
|
255
|
+
const INVALID_NON_PACK_EXTENSION_FQN_MESSAGE = "Expected fully qualified name in @handle/(skills|commands|mcp-servers|subagents|files|rules)/name form (packs are not allowed)";
|
|
217
256
|
/**
|
|
218
|
-
* Fully qualified
|
|
257
|
+
* Fully qualified name string schema restricted to non-pack extension types.
|
|
258
|
+
* Used wherever pack-typed FQNs are not permitted, like the keys of a pack
|
|
259
|
+
* manifest's `dependencies` map.
|
|
219
260
|
*
|
|
220
|
-
*
|
|
221
|
-
|
|
222
|
-
|
|
261
|
+
* @experimental This API is unstable and may change without notice.
|
|
262
|
+
*/
|
|
263
|
+
export const NonPackExtensionFqnSchema = Schema.String.pipe(Schema.check(Schema.isPattern(NON_PACK_FQN_PATTERN, { message: INVALID_NON_PACK_EXTENSION_FQN_MESSAGE })), Schema.annotate({
|
|
264
|
+
identifier: "NonPackExtensionFqn",
|
|
265
|
+
title: "Non-Pack Extension FQN",
|
|
266
|
+
description: "Extension identifier restricted to non-pack types (skills, commands, mcp-servers, subagents, files, rules).",
|
|
267
|
+
examples: ["@acme/skills/code-review", "@my-org/commands/format"],
|
|
268
|
+
message: INVALID_NON_PACK_EXTENSION_FQN_MESSAGE,
|
|
269
|
+
}));
|
|
270
|
+
const INVALID_PACK_FQN_MESSAGE = "Expected fully qualified pack name in @handle/packs/name form";
|
|
271
|
+
/**
|
|
272
|
+
* Fully qualified name string schema restricted to the pack extension type.
|
|
273
|
+
* Used wherever only pack-typed FQNs are permitted, like the items of a
|
|
274
|
+
* non-pack manifest's `recommendedPacks` list.
|
|
275
|
+
*
|
|
276
|
+
* @experimental This API is unstable and may change without notice.
|
|
277
|
+
*/
|
|
278
|
+
export const PackFqnSchema = Schema.String.pipe(Schema.check(Schema.isPattern(PACK_FQN_PATTERN, { message: INVALID_PACK_FQN_MESSAGE })), Schema.annotate({
|
|
279
|
+
identifier: "PackFqn",
|
|
280
|
+
title: "Pack FQN",
|
|
281
|
+
description: "Pack identifier in @owner/packs/<name> form.",
|
|
282
|
+
examples: ["@acme/packs/typescript", "@my-org/packs/web"],
|
|
283
|
+
message: INVALID_PACK_FQN_MESSAGE,
|
|
284
|
+
}));
|
|
285
|
+
/**
|
|
286
|
+
* Extension spec — fully qualified extension name with an optional version
|
|
287
|
+
* constraint suffix. Accepts `@owner/type/name` or `@owner/type/name@constraint`
|
|
288
|
+
* where the FQN portion validates through ExtensionFqnSchema and the optional
|
|
289
|
+
* constraint validates as a semver VersionRange.
|
|
223
290
|
*
|
|
224
291
|
* @experimental This API is unstable and may change without notice.
|
|
225
292
|
*/
|
|
226
|
-
export const
|
|
293
|
+
export const ExtensionSpecSchema = Schema.NonEmptyString.pipe(Schema.check(Schema.makeFilter((value) => {
|
|
227
294
|
// Find the constraint separator: the @ after the last slash
|
|
228
295
|
const lastSlash = value.lastIndexOf("/");
|
|
229
296
|
const constraintAt = lastSlash > 0 ? value.indexOf("@", lastSlash + 1) : -1;
|
|
230
297
|
const fqnPart = constraintAt > 0 ? value.slice(0, constraintAt) : value;
|
|
231
298
|
const constraintPart = constraintAt > 0 ? value.slice(constraintAt + 1) : undefined;
|
|
232
299
|
// Validate FQN portion
|
|
233
|
-
if (
|
|
234
|
-
return `Expected
|
|
300
|
+
if (parseExtensionFqnParts(fqnPart) === undefined) {
|
|
301
|
+
return `Expected extension spec in @handle/type/name[@constraint] form, got: ${value}`;
|
|
235
302
|
}
|
|
236
303
|
// Validate constraint portion if present
|
|
237
304
|
if (constraintPart !== undefined) {
|
|
238
|
-
const constraintResult = Schema.decodeUnknownResult(
|
|
305
|
+
const constraintResult = Schema.decodeUnknownResult(VersionRangeSchema)(constraintPart);
|
|
239
306
|
if (Result.isFailure(constraintResult)) {
|
|
240
307
|
return `Expected valid version constraint after @, got: ${constraintPart}`;
|
|
241
308
|
}
|
|
242
309
|
}
|
|
243
310
|
return undefined;
|
|
311
|
+
})), Schema.check(Schema.isPattern(EXTENSION_SPEC_PATTERN, {
|
|
312
|
+
message: "Expected extension spec in @handle/type/name[@constraint] form",
|
|
244
313
|
})), Schema.annotate({
|
|
245
|
-
identifier: "
|
|
246
|
-
title: "
|
|
247
|
-
description: "
|
|
314
|
+
identifier: "ExtensionSpec",
|
|
315
|
+
title: "Extension Spec",
|
|
316
|
+
description: "Extension reference with an optional version constraint suffix.",
|
|
248
317
|
examples: ["@acme/skills/code-review", "@acme/skills/code-review@^1.0.0"],
|
|
249
|
-
}), Schema.brand("
|
|
318
|
+
}), Schema.brand("ExtensionSpec"));
|
|
319
|
+
/**
|
|
320
|
+
* Pack spec — fully qualified pack name with an optional version constraint
|
|
321
|
+
* suffix. Accepts `@owner/packs/name` or `@owner/packs/name@constraint` where
|
|
322
|
+
* the FQN portion validates through PackFqnSchema and the optional constraint
|
|
323
|
+
* validates as a semver VersionRange.
|
|
324
|
+
*
|
|
325
|
+
* @experimental This API is unstable and may change without notice.
|
|
326
|
+
*/
|
|
327
|
+
export const PackSpecSchema = Schema.NonEmptyString.pipe(Schema.check(Schema.makeFilter((value) => {
|
|
328
|
+
const lastSlash = value.lastIndexOf("/");
|
|
329
|
+
const constraintAt = lastSlash > 0 ? value.indexOf("@", lastSlash + 1) : -1;
|
|
330
|
+
const fqnPart = constraintAt > 0 ? value.slice(0, constraintAt) : value;
|
|
331
|
+
const constraintPart = constraintAt > 0 ? value.slice(constraintAt + 1) : undefined;
|
|
332
|
+
if (!PACK_FQN_PATTERN.test(fqnPart)) {
|
|
333
|
+
return `Expected pack spec in @handle/packs/name[@constraint] form, got: ${value}`;
|
|
334
|
+
}
|
|
335
|
+
if (constraintPart !== undefined) {
|
|
336
|
+
const constraintResult = Schema.decodeUnknownResult(VersionRangeSchema)(constraintPart);
|
|
337
|
+
if (Result.isFailure(constraintResult)) {
|
|
338
|
+
return `Expected valid version constraint after @, got: ${constraintPart}`;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
return undefined;
|
|
342
|
+
})), Schema.check(Schema.isPattern(PACK_SPEC_PATTERN, {
|
|
343
|
+
message: "Expected pack spec in @handle/packs/name[@constraint] form",
|
|
344
|
+
})), Schema.annotate({
|
|
345
|
+
identifier: "PackSpec",
|
|
346
|
+
title: "Pack Spec",
|
|
347
|
+
description: "Pack reference with an optional version constraint suffix.",
|
|
348
|
+
examples: ["@acme/packs/typescript", "@acme/packs/typescript@^1.0.0"],
|
|
349
|
+
}), Schema.brand("PackSpec"));
|
|
250
350
|
/**
|
|
251
351
|
* Map of fully-qualified extension names to semver constraints.
|
|
252
352
|
*
|
|
253
353
|
* @experimental This API is unstable and may change without notice.
|
|
254
354
|
*/
|
|
255
|
-
export const ExtensionDependencyConstraintMapSchema = Schema.Record(
|
|
355
|
+
export const ExtensionDependencyConstraintMapSchema = Schema.Record(ExtensionFqnSchema, VersionRangeSchema);
|
|
356
|
+
/**
|
|
357
|
+
* Map of non-pack fully-qualified extension names to semver constraints.
|
|
358
|
+
* Used for pack manifest `dependencies`, which cannot include other packs.
|
|
359
|
+
*
|
|
360
|
+
* @experimental This API is unstable and may change without notice.
|
|
361
|
+
*/
|
|
362
|
+
export const NonPackExtensionDependencyConstraintMapSchema = Schema.Record(NonPackExtensionFqnSchema, VersionRangeSchema).annotate({
|
|
363
|
+
description: "Map of fully-qualified non-pack extension names to version ranges. Packs cannot depend on other packs.",
|
|
364
|
+
});
|
|
256
365
|
/**
|
|
257
366
|
* Common base fields shared across manifest types.
|
|
258
367
|
* Type-specific manifests provide their own `type` and `name` fields explicitly.
|
|
@@ -261,15 +370,48 @@ export const ExtensionDependencyConstraintMapSchema = Schema.Record(FullyQualifi
|
|
|
261
370
|
*/
|
|
262
371
|
export const CommonManifestBaseFields = {
|
|
263
372
|
owner: HandleSchema.pipe(Schema.annotateKey({ messageMissingKey: "owner is required" })),
|
|
264
|
-
version:
|
|
265
|
-
description: Schema.optional(Schema.String
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
373
|
+
version: VersionSchema.pipe(Schema.annotateKey({ messageMissingKey: "version is required" })),
|
|
374
|
+
description: Schema.optional(Schema.String.annotate({
|
|
375
|
+
description: "Short, registry-facing summary of this extension shown in listings and search results.",
|
|
376
|
+
})),
|
|
377
|
+
keywords: Schema.optional(Schema.Array(Schema.NonEmptyString).annotate({
|
|
378
|
+
examples: [["lint", "typescript", "review"]],
|
|
379
|
+
})),
|
|
380
|
+
repository: Schema.optional(Schema.String.annotate({
|
|
381
|
+
examples: ["https://github.com/acme/code-review"],
|
|
382
|
+
format: "uri",
|
|
383
|
+
})),
|
|
384
|
+
homepage: Schema.optional(Schema.String.annotate({
|
|
385
|
+
examples: ["https://acme.dev/code-review"],
|
|
386
|
+
format: "uri",
|
|
387
|
+
})),
|
|
388
|
+
license: Schema.optional(Schema.NonEmptyString.annotate({
|
|
389
|
+
examples: ["MIT", "Apache-2.0"],
|
|
390
|
+
})),
|
|
391
|
+
bugs: Schema.optional(Schema.String.annotate({
|
|
392
|
+
examples: ["https://github.com/acme/code-review/issues"],
|
|
393
|
+
format: "uri",
|
|
394
|
+
})),
|
|
271
395
|
authors: Schema.optional(Schema.Array(AuthorSchema)),
|
|
272
|
-
|
|
396
|
+
companionPackages: Schema.optional(Schema.Array(PackageUrlSchema).pipe(Schema.annotate({
|
|
397
|
+
description: "External ecosystem packages this extension is designed to work with (e.g. the npm or PyPI package an MCP server wraps), identified by Package URL (purl).",
|
|
398
|
+
}))),
|
|
399
|
+
};
|
|
400
|
+
/**
|
|
401
|
+
* Fields shared across non-pack extension manifests (skills, commands,
|
|
402
|
+
* MCP servers, subagents). These describe how an extension relates to
|
|
403
|
+
* packs.
|
|
404
|
+
*
|
|
405
|
+
* @experimental This API is unstable and may change without notice.
|
|
406
|
+
*/
|
|
407
|
+
export const NonPackManifestFields = {
|
|
408
|
+
recommendedPacks: Schema.optional(Schema.Array(PackSpecSchema).pipe(Schema.annotate({
|
|
409
|
+
description: "Packs this extension is designed to work alongside. Each entry is a pack spec, optionally pinned to a version range.",
|
|
410
|
+
}))),
|
|
411
|
+
standalone: Schema.optional(Schema.Boolean.pipe(Schema.annotate({
|
|
412
|
+
description: "Set to false to indicate this extension only makes sense when installed alongside one of its recommendedPacks.",
|
|
413
|
+
default: true,
|
|
414
|
+
}))),
|
|
273
415
|
};
|
|
274
416
|
/**
|
|
275
417
|
* Agent identifier enumeration for supported coding agents.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/common.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,+CAA+C,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,CAAC,CAAC;IAC9F,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,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C,KAAK,CAAC,cAAc,CAAC,CAAC,IAAI,CAC/B,MAAM,CAAC,QAAQ,CAAC;QACd,WAAW,EACT,sHAAsH;KACzH,CAAC,CACH,CACF;IACD,UAAU,EAAE,MAAM,CAAC,QAAQ,CACzB,MAAM,CAAC,OAAO,CAAC,IAAI,CACjB,MAAM,CAAC,QAAQ,CAAC;QACd,WAAW,EACT,gHAAgH;QAClH,OAAO,EAAE,IAAI;KACd,CAAC,CACH,CACF;CACF,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC"}
|
|
@@ -5,28 +5,56 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @experimental This API is unstable and may change without notice.
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
9
|
-
import { type
|
|
8
|
+
import * as Result from "effect/Result";
|
|
9
|
+
import { type AppError } from "../app-error/index.js";
|
|
10
|
+
import { type ExtensionFqnParts } from "./common.js";
|
|
11
|
+
declare const FqnInvalidError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
12
|
+
readonly _tag: "FqnInvalidError";
|
|
13
|
+
} & Readonly<A>;
|
|
14
|
+
/**
|
|
15
|
+
* Failure produced when an FQN string does not match the canonical
|
|
16
|
+
* `@owner/type-plural/name` shape.
|
|
17
|
+
*
|
|
18
|
+
* @experimental This API is unstable and may change without notice.
|
|
19
|
+
*/
|
|
20
|
+
export declare class FqnInvalidError extends FqnInvalidError_base<{
|
|
21
|
+
readonly input: string;
|
|
22
|
+
}> {
|
|
23
|
+
}
|
|
10
24
|
/**
|
|
11
25
|
* Parse a 3-segment FQN string into its parts.
|
|
12
26
|
*
|
|
27
|
+
* Pure synchronous validation — yield the Result in `Effect.gen` to bridge
|
|
28
|
+
* failures into the surrounding error channel, or pattern-match on it directly
|
|
29
|
+
* for synchronous callers.
|
|
30
|
+
*
|
|
13
31
|
* @experimental This API is unstable and may change without notice.
|
|
14
32
|
*/
|
|
15
|
-
export declare const parseFqn: (input: string) =>
|
|
16
|
-
readonly type: "command" | "skill" | "mcp-server" | "subagent" | "file" | "rule" | "pack";
|
|
17
|
-
readonly name: string & import("effect/Brand").Brand<"ExtensionName">;
|
|
18
|
-
readonly owner: string & import("effect/Brand").Brand<"Handle">;
|
|
19
|
-
}, import("../app-error/app-error.ts").AppError, never>;
|
|
33
|
+
export declare const parseFqn: (input: string) => Result.Result<ExtensionFqnParts, FqnInvalidError>;
|
|
20
34
|
/**
|
|
21
|
-
*
|
|
35
|
+
* Translate a `FqnInvalidError` into a CLI-facing `AppError` with the canonical
|
|
36
|
+
* format breadcrumb. Use at user-input boundaries (CLI handlers, publish
|
|
37
|
+
* operations) where the parse failure is a user error.
|
|
38
|
+
*
|
|
39
|
+
* @experimental This API is unstable and may change without notice.
|
|
40
|
+
*/
|
|
41
|
+
export declare const fqnInvalidErrorToAppError: (error: FqnInvalidError) => AppError;
|
|
42
|
+
/**
|
|
43
|
+
* Parse a schema-validated FQN, throwing as a defect on failure.
|
|
44
|
+
*
|
|
45
|
+
* Use only at call sites where the input has already been validated against
|
|
46
|
+
* an FQN schema (e.g., manifest dependency keys, lockfile resolved maps).
|
|
47
|
+
* A failure here is an invariant violation, not a user error — inside
|
|
48
|
+
* `Effect.gen`, the synchronous throw surfaces as `Cause.Die`.
|
|
22
49
|
*
|
|
23
50
|
* @experimental This API is unstable and may change without notice.
|
|
24
51
|
*/
|
|
25
|
-
export declare const parseFqnOrThrow: (input: string) =>
|
|
52
|
+
export declare const parseFqnOrThrow: (input: string) => ExtensionFqnParts;
|
|
26
53
|
/**
|
|
27
54
|
* Format a parsed FQN back into a string.
|
|
28
55
|
*
|
|
29
56
|
* @experimental This API is unstable and may change without notice.
|
|
30
57
|
*/
|
|
31
|
-
export declare const formatFqn: (fqn:
|
|
58
|
+
export declare const formatFqn: (fqn: ExtensionFqnParts) => string;
|
|
59
|
+
export {};
|
|
32
60
|
//# sourceMappingURL=fqn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fqn.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/fqn.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"fqn.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/fqn.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAiD,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;;;;AAEpG;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,qBAAoC;IACvE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;CAAG;AAEL;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAKxF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GAAI,OAAO,eAAe,KAAG,QAW/D,CAAC;AAEL;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,iBACU,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,KAAK,iBAAiB,KAAG,MACY,CAAC"}
|
|
@@ -5,42 +5,61 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @experimental This API is unstable and may change without notice.
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
8
|
+
import * as Data from "effect/Data";
|
|
9
|
+
import * as Result from "effect/Result";
|
|
9
10
|
import { makeAppError } from "../app-error/index.js";
|
|
10
|
-
import {
|
|
11
|
+
import { parseExtensionFqnParts, toExtensionTypePlural } from "./common.js";
|
|
12
|
+
/**
|
|
13
|
+
* Failure produced when an FQN string does not match the canonical
|
|
14
|
+
* `@owner/type-plural/name` shape.
|
|
15
|
+
*
|
|
16
|
+
* @experimental This API is unstable and may change without notice.
|
|
17
|
+
*/
|
|
18
|
+
export class FqnInvalidError extends Data.TaggedError("FqnInvalidError") {
|
|
19
|
+
}
|
|
11
20
|
/**
|
|
12
21
|
* Parse a 3-segment FQN string into its parts.
|
|
13
22
|
*
|
|
23
|
+
* Pure synchronous validation — yield the Result in `Effect.gen` to bridge
|
|
24
|
+
* failures into the surrounding error channel, or pattern-match on it directly
|
|
25
|
+
* for synchronous callers.
|
|
26
|
+
*
|
|
27
|
+
* @experimental This API is unstable and may change without notice.
|
|
28
|
+
*/
|
|
29
|
+
export const parseFqn = (input) => {
|
|
30
|
+
const parsed = parseExtensionFqnParts(input);
|
|
31
|
+
return parsed === undefined
|
|
32
|
+
? Result.fail(new FqnInvalidError({ input }))
|
|
33
|
+
: Result.succeed(parsed);
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Translate a `FqnInvalidError` into a CLI-facing `AppError` with the canonical
|
|
37
|
+
* format breadcrumb. Use at user-input boundaries (CLI handlers, publish
|
|
38
|
+
* operations) where the parse failure is a user error.
|
|
39
|
+
*
|
|
14
40
|
* @experimental This API is unstable and may change without notice.
|
|
15
41
|
*/
|
|
16
|
-
export const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
description: "Use the 3-segment format: @handle/(skills|commands|mcp-servers|subagents|files|rules|packs)/name",
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return parsed;
|
|
42
|
+
export const fqnInvalidErrorToAppError = (error) => makeAppError({
|
|
43
|
+
code: "validation",
|
|
44
|
+
message: `Invalid fully qualified name: ${error.input}`,
|
|
45
|
+
breadcrumbs: [
|
|
46
|
+
{
|
|
47
|
+
description: "Use the 3-segment format: @handle/(skills|commands|mcp-servers|subagents|files|rules|packs)/name",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
cause: error,
|
|
31
51
|
});
|
|
32
52
|
/**
|
|
33
|
-
* Parse a
|
|
53
|
+
* Parse a schema-validated FQN, throwing as a defect on failure.
|
|
54
|
+
*
|
|
55
|
+
* Use only at call sites where the input has already been validated against
|
|
56
|
+
* an FQN schema (e.g., manifest dependency keys, lockfile resolved maps).
|
|
57
|
+
* A failure here is an invariant violation, not a user error — inside
|
|
58
|
+
* `Effect.gen`, the synchronous throw surfaces as `Cause.Die`.
|
|
34
59
|
*
|
|
35
60
|
* @experimental This API is unstable and may change without notice.
|
|
36
61
|
*/
|
|
37
|
-
export const parseFqnOrThrow = (input) =>
|
|
38
|
-
const parsed = parseFullyQualifiedNameParts(input);
|
|
39
|
-
if (parsed === undefined) {
|
|
40
|
-
throw new Error(`Invalid fully qualified name: ${input}. Expected format: @handle/(skills|commands|mcp-servers|subagents|files|rules|packs)/name`);
|
|
41
|
-
}
|
|
42
|
-
return parsed;
|
|
43
|
-
};
|
|
62
|
+
export const parseFqnOrThrow = (input) => Result.getOrThrowWith(parseFqn(input), (error) => error);
|
|
44
63
|
/**
|
|
45
64
|
* Format a parsed FQN back into a string.
|
|
46
65
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fqn.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/fqn.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"fqn.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/fqn.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC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
1
|
-
{"version":3,"file":"frontmatter.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAkCD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,KAAG,iBAWtD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,MAAM,KACd,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"frontmatter.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAkCD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,KAAG,iBAWtD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,MAAM,KACd,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,QAAQ,CAcxC,CAAC"}
|
|
@@ -65,7 +65,6 @@ export const parseFrontmatterEffect = (content) => Effect.try({
|
|
|
65
65
|
message: "YAML frontmatter could not be parsed",
|
|
66
66
|
breadcrumbs: [
|
|
67
67
|
{
|
|
68
|
-
task: "Recover",
|
|
69
68
|
description: "Ensure the frontmatter block contains valid YAML between --- delimiters.",
|
|
70
69
|
},
|
|
71
70
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontmatter.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAiB,MAAM,uBAAuB,CAAC;AAcpE,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAEpC;;;GAGG;AACH,MAAM,yBAAyB,GAAG,CAChC,OAAe,EACuC,EAAE;IACxD,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,CAAC;QAC/C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,qBAAqB,EAAE,EAAE,YAAY,CAAC,CAAC;IACjF,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,UAAU,GAAG,YAAY,GAAG,CAAC,GAAG,qBAAqB,CAAC,MAAM,CAAC;IACnE,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAE7E,OAAO;QACL,SAAS,EAAE,YAAY,GAAG,CAAC;QAC3B,SAAS;KACV,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,CAAC,CAAC,CAAC;IAC9F,MAAM,WAAW,GAAY,IAAI,CAAC,KAAK,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;IAC3D,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAEjD,OAAO,EAAE,WAAW,EAAE,WAAW,IAAI,SAAS,EAAE,IAAI,EAAE,CAAC;AACzD,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,OAAe,EAC6B,EAAE,CAC9C,MAAM,CAAC,GAAG,CAAC;IACT,GAAG,EAAE,GAAG,EAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC;IACxC,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CACf,YAAY,CAAC;QACX,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,sCAAsC;QAC/C,WAAW,EAAE;YACX;gBACE,WAAW,EAAE,0EAA0E;aACxF;SACF;QACD,KAAK,EAAE,KAAK;KACb,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
* @experimental All exports from this module are unstable and may change without notice.
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
export { AgentIdSchema, AuthorSchema, CommonManifestBaseFields, EXTENSION_NAME_PATTERN, ExtensionNameSchema, ExtensionTypePluralSchema, ExtensionDependencyConstraintMapSchema, ExtensionTypeSchema, FQN_PATTERN,
|
|
7
|
+
export { AgentIdSchema, AuthorSchema, CommonManifestBaseFields, EXTENSION_NAME_PATTERN, ExtensionNameSchema, ExtensionTypePluralSchema, ExtensionDependencyConstraintMapSchema, ExtensionTypeSchema, FQN_PATTERN, ExtensionFqnPartsSchema, ExtensionFqnSchema, ExtensionSpecSchema, NON_PACK_FQN_PATTERN, NonPackExtensionDependencyConstraintMapSchema, NonPackExtensionFqnSchema, NonPackManifestFields, nonPackExtensionTypePluralSegments, PACK_FQN_PATTERN, PackFqnSchema, PackSpecSchema, parseExtensionSpecParts, decodeExtensionNameSync, extensionTypeFromPlural, extensionTypeLabels, extensionTypePluralSegments, extensionTypePluralLabels, extensionTypePluralSentenceLabels, extensionTypeSentenceLabels, extensionTypeToPlural, extensionTypes, isExtensionType, isExtensionTypePlural, parseExtensionFqnParts, toExtensionType, toExtensionTypePlural, toAuthor, type Author, type ExtensionName, type ExtensionDependencyConstraintMap, type ExtensionFqnParts, type ExtensionType, type ExtensionTypePlural, type ExtensionFqn, type ExtensionSpec, type NonPackExtensionDependencyConstraintMap, type NonPackExtensionFqn, type NonPackExtensionTypePlural, type PackFqn, type PackSpec, } from "./common.js";
|
|
8
8
|
export { RegistrySourcePatternPartsSchema, RegistrySourcePatternSchema, RegistrySourceRefPartsSchema, RegistrySourceRefSchema, formatRegistrySourcePatternParts, formatRegistrySourceRef, parseRegistrySourcePatternParts, parseRegistrySourceRef, type RegistrySourcePatternParts, type RegistrySourceRefParts, } from "./registry-source.js";
|
|
9
9
|
export { installableExtensionTypes, installableExtensionTypePluralSegments, InstallableExtensionTypeSchema, InstallableExtensionTypePluralSchema, isInstallableExtensionType, isInstallableExtensionTypePlural, toInstallableExtensionType, toInstallableExtensionTypePlural, type InstallableExtensionType, type InstallableExtensionTypePlural, } from "./installable-types.js";
|
|
10
10
|
export { HANDLE_PATTERN, HANDLE_PATTERN_SOURCE, HandleSchema, SLUG_PATTERN, SLUG_PATTERN_SOURCE, SlugSchema, decodeHandleSync, decodeSlugSync, handleFromSlug, normalizeHandle, normalizeSlug, slugFromHandle, type Handle, type Slug, } from "./handle.js";
|
|
11
|
-
export { formatFqn, parseFqn, parseFqnOrThrow } from "./fqn.js";
|
|
11
|
+
export { formatFqn, parseFqn, parseFqnOrThrow, FqnInvalidError, fqnInvalidErrorToAppError, } from "./fqn.js";
|
|
12
12
|
export { EXTERNAL_EXTENSIONS_DIR, REGISTRY_EXTENSIONS_DIR } from "./constants.js";
|
|
13
13
|
export { UNIVERSAL_SKILLS_DIR, UNIVERSAL_SKILLS_DIR_SEGMENT, isUniversalSkillsDir, isUniversalSkillsRelativeDir, resolveUniversalDirPresence, } from "./universal-skills-dir.js";
|
|
14
|
-
export type { ExtensionRefBase, SkillExtensionRefBase, CommandExtensionRefBase, McpServerExtensionRefBase,
|
|
14
|
+
export type { ExtensionRefBase, SkillExtensionRefBase, CommandExtensionRefBase, McpServerExtensionRefBase, PackRefBase, GitHostedRefDetails, RegistryRefDetails, LocalRefDetails, } from "./ref-base.js";
|
|
15
15
|
export type { ExtensionRef } from "./refs.js";
|
|
16
16
|
export { sanitizeName, copyExtensionDirectory, validatePathSafety } from "./utils.js";
|
|
17
17
|
export { readAndDecodeManifest } from "./reconciliation-utils.js";
|
|
18
|
-
export { type InstallOperationArgs, type MaterializeOperationArgs, type UninstallOperationArgs, type UninstallRetentionPolicy, buildInstallOperation, buildMaterializeOperation, buildUninstallOperation, formatPackageUrlParts, targetFromRef, toLabel,
|
|
18
|
+
export { type InstallOperationArgs, type MaterializeOperationArgs, type UninstallOperationArgs, type UninstallRetentionPolicy, buildInstallOperation, buildMaterializeOperation, buildUninstallOperation, formatPackageUrlParts, targetFromRef, toLabel, toLabelWithCompanions, } from "./operations.js";
|
|
19
19
|
export { configuredCommandsToDiskRefs, configuredMcpServersToDiskRefs, configuredPacksToDiskRefs, configuredSkillsToDiskRefs, configuredSubagentsToDiskRefs, } from "./materializable-from-disk.js";
|
|
20
20
|
export { RenderedFilePathSchema, RenderedFilesMapSchema, SourceHashSchema, computeSourceHash, type RenderedFilePath, type RenderedFilesMap, type SourceHash, } from "./rendered-files.js";
|
|
21
21
|
export { parseFrontmatterEffect, parseFrontmatterSync, type FrontmatterResult, } from "./frontmatter.js";
|