@agentxm/client-core 0.5.0 → 0.5.2
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/augment/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/augment/service.js +12 -8
- package/dist/src/unstable/agents/augment/service.js.map +1 -1
- package/dist/src/unstable/agents/coding-agent.d.ts +1 -1
- package/dist/src/unstable/agents/coding-agent.d.ts.map +1 -1
- package/dist/src/unstable/agents/coding-agent.js +1 -1
- package/dist/src/unstable/agents/coding-agent.js.map +1 -1
- package/dist/src/unstable/agents/command-sync.d.ts +2 -2
- package/dist/src/unstable/agents/command-sync.d.ts.map +1 -1
- package/dist/src/unstable/agents/command-sync.js +44 -23
- package/dist/src/unstable/agents/command-sync.js.map +1 -1
- package/dist/src/unstable/agents/detection.js +3 -3
- package/dist/src/unstable/agents/detection.js.map +1 -1
- package/dist/src/unstable/agents/index.d.ts +1 -1
- package/dist/src/unstable/agents/index.d.ts.map +1 -1
- package/dist/src/unstable/agents/index.js +1 -1
- package/dist/src/unstable/agents/index.js.map +1 -1
- package/dist/src/unstable/agents/mcp-sync.d.ts.map +1 -1
- package/dist/src/unstable/agents/mcp-sync.js +15 -20
- package/dist/src/unstable/agents/mcp-sync.js.map +1 -1
- package/dist/src/unstable/agents/repository.js +2 -2
- package/dist/src/unstable/agents/repository.js.map +1 -1
- package/dist/src/unstable/agents/subagent-sync.js +14 -14
- package/dist/src/unstable/agents/subagent-sync.js.map +1 -1
- package/dist/src/unstable/app-error/app-error.d.ts +84 -9
- package/dist/src/unstable/app-error/app-error.d.ts.map +1 -1
- package/dist/src/unstable/app-error/app-error.js +104 -4
- package/dist/src/unstable/app-error/app-error.js.map +1 -1
- package/dist/src/unstable/app-error/builders.d.ts +21 -0
- package/dist/src/unstable/app-error/builders.d.ts.map +1 -0
- package/dist/src/unstable/app-error/builders.js +46 -0
- package/dist/src/unstable/app-error/builders.js.map +1 -0
- package/dist/src/unstable/app-error/index.d.ts +2 -1
- package/dist/src/unstable/app-error/index.d.ts.map +1 -1
- package/dist/src/unstable/app-error/index.js +2 -1
- package/dist/src/unstable/app-error/index.js.map +1 -1
- package/dist/src/unstable/app-error/render.d.ts.map +1 -1
- package/dist/src/unstable/app-error/render.js +6 -24
- package/dist/src/unstable/app-error/render.js.map +1 -1
- package/dist/src/unstable/auth/auth-client.d.ts +1 -1
- package/dist/src/unstable/auth/auth-client.d.ts.map +1 -1
- package/dist/src/unstable/auth/auth-client.js +76 -42
- package/dist/src/unstable/auth/auth-client.js.map +1 -1
- package/dist/src/unstable/auth/credential-store.d.ts +1 -1
- package/dist/src/unstable/auth/credential-store.d.ts.map +1 -1
- package/dist/src/unstable/auth/credential-store.js +22 -24
- package/dist/src/unstable/auth/credential-store.js.map +1 -1
- package/dist/src/unstable/auth/device-login.d.ts +1 -1
- package/dist/src/unstable/auth/device-login.d.ts.map +1 -1
- package/dist/src/unstable/auth/device-login.js +1 -1
- package/dist/src/unstable/auth/device-login.js.map +1 -1
- package/dist/src/unstable/auth/guard-interaction.d.ts +1 -1
- package/dist/src/unstable/auth/guard-interaction.d.ts.map +1 -1
- package/dist/src/unstable/auth/guard-interaction.js +1 -1
- package/dist/src/unstable/auth/guard-interaction.js.map +1 -1
- package/dist/src/unstable/auth/guard.d.ts.map +1 -1
- package/dist/src/unstable/auth/guard.js +5 -9
- package/dist/src/unstable/auth/guard.js.map +1 -1
- package/dist/src/unstable/auth/login-interaction.d.ts +1 -1
- package/dist/src/unstable/auth/login-interaction.d.ts.map +1 -1
- package/dist/src/unstable/auth/login-interaction.js +1 -1
- package/dist/src/unstable/auth/login-interaction.js.map +1 -1
- package/dist/src/unstable/auth/registry-url.d.ts +1 -1
- package/dist/src/unstable/auth/registry-url.js +1 -1
- package/dist/src/unstable/auth/registry-url.js.map +1 -1
- package/dist/src/unstable/auth/token-resolution.d.ts +1 -1
- package/dist/src/unstable/auth/token-resolution.d.ts.map +1 -1
- package/dist/src/unstable/auth/token-resolution.js +6 -10
- package/dist/src/unstable/auth/token-resolution.js.map +1 -1
- package/dist/src/unstable/cli/prompt/helpers.d.ts +1 -1
- package/dist/src/unstable/cli/prompt/helpers.js +3 -3
- package/dist/src/unstable/cli/prompt/helpers.js.map +1 -1
- package/dist/src/unstable/cli-flags/verbosity.d.ts +1 -1
- package/dist/src/unstable/cli-flags/verbosity.d.ts.map +1 -1
- package/dist/src/unstable/cli-flags/verbosity.js +1 -1
- package/dist/src/unstable/cli-flags/verbosity.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 +128 -9
- 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 +53 -18
- package/dist/src/unstable/cli-renderer/cli-renderer-machine.js.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-test.d.ts +2 -0
- package/dist/src/unstable/cli-renderer/cli-renderer-test.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-test.js +80 -21
- package/dist/src/unstable/cli-renderer/cli-renderer-test.js.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer.d.ts +32 -7
- package/dist/src/unstable/cli-renderer/cli-renderer.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer.js +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer.js.map +1 -1
- package/dist/src/unstable/cli-renderer/entity-registry.d.ts +15 -0
- package/dist/src/unstable/cli-renderer/entity-registry.d.ts.map +1 -0
- package/dist/src/unstable/cli-renderer/entity-registry.js +17 -0
- package/dist/src/unstable/cli-renderer/entity-registry.js.map +1 -0
- package/dist/src/unstable/cli-renderer/index.d.ts +2 -1
- package/dist/src/unstable/cli-renderer/index.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/index.js +1 -0
- package/dist/src/unstable/cli-renderer/index.js.map +1 -1
- package/dist/src/unstable/cli-runtime/breadcrumb.d.ts +9 -0
- package/dist/src/unstable/cli-runtime/breadcrumb.d.ts.map +1 -0
- package/dist/src/unstable/cli-runtime/breadcrumb.js +12 -0
- package/dist/src/unstable/cli-runtime/breadcrumb.js.map +1 -0
- package/dist/src/unstable/cli-runtime/command-argv.d.ts +1 -1
- package/dist/src/unstable/cli-runtime/command-argv.js +1 -1
- package/dist/src/unstable/cli-runtime/command-argv.js.map +1 -1
- package/dist/src/unstable/cli-runtime/graceful-shutdown.d.ts +1 -1
- package/dist/src/unstable/cli-runtime/graceful-shutdown.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/graceful-shutdown.js +5 -3
- package/dist/src/unstable/cli-runtime/graceful-shutdown.js.map +1 -1
- package/dist/src/unstable/cli-runtime/handle-error.d.ts +5 -4
- package/dist/src/unstable/cli-runtime/handle-error.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/handle-error.js +46 -17
- package/dist/src/unstable/cli-runtime/handle-error.js.map +1 -1
- package/dist/src/unstable/cli-runtime/index.d.ts +4 -4
- package/dist/src/unstable/cli-runtime/index.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/index.js +3 -3
- package/dist/src/unstable/cli-runtime/index.js.map +1 -1
- package/dist/src/unstable/cli-runtime/json-envelope.d.ts +50 -14
- package/dist/src/unstable/cli-runtime/json-envelope.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/json-envelope.js +58 -19
- package/dist/src/unstable/cli-runtime/json-envelope.js.map +1 -1
- package/dist/src/unstable/cli-runtime/output-mode.d.ts +9 -9
- package/dist/src/unstable/cli-runtime/output-mode.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/output-mode.js +11 -8
- 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 +76 -8
- package/dist/src/unstable/cli-runtime/runtime-envelope.js.map +1 -1
- package/dist/src/unstable/cli-runtime/telemetry.d.ts +2 -1
- package/dist/src/unstable/cli-runtime/telemetry.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/telemetry.js +4 -4
- package/dist/src/unstable/cli-runtime/telemetry.js.map +1 -1
- package/dist/src/unstable/commands/command-argument.d.ts +2 -2
- package/dist/src/unstable/commands/command-argument.js +2 -2
- package/dist/src/unstable/commands/command-content.d.ts +21 -24
- package/dist/src/unstable/commands/command-content.d.ts.map +1 -1
- package/dist/src/unstable/commands/command-content.js +50 -37
- package/dist/src/unstable/commands/command-content.js.map +1 -1
- package/dist/src/unstable/commands/index.d.ts +2 -1
- package/dist/src/unstable/commands/index.d.ts.map +1 -1
- package/dist/src/unstable/commands/index.js +1 -0
- package/dist/src/unstable/commands/index.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 +65 -42
- package/dist/src/unstable/commands/manager.js.map +1 -1
- package/dist/src/unstable/commands/manifest-schema.d.ts +10 -8
- package/dist/src/unstable/commands/manifest-schema.d.ts.map +1 -1
- package/dist/src/unstable/commands/manifest-schema.js +8 -7
- package/dist/src/unstable/commands/manifest-schema.js.map +1 -1
- package/dist/src/unstable/commands/operations/disable.js +2 -2
- package/dist/src/unstable/commands/operations/disable.js.map +1 -1
- package/dist/src/unstable/commands/operations/enable.d.ts +1 -1
- package/dist/src/unstable/commands/operations/enable.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/enable.js +22 -11
- package/dist/src/unstable/commands/operations/enable.js.map +1 -1
- package/dist/src/unstable/commands/operations/install.d.ts +5 -5
- package/dist/src/unstable/commands/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/install.js +38 -36
- package/dist/src/unstable/commands/operations/install.js.map +1 -1
- package/dist/src/unstable/commands/operations/new-command.d.ts +8 -3
- package/dist/src/unstable/commands/operations/new-command.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/new-command.js +71 -20
- 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 +30 -15
- package/dist/src/unstable/commands/operations/publish.js.map +1 -1
- package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +20 -20
- package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/shared-command-helpers.js +59 -43
- package/dist/src/unstable/commands/operations/shared-command-helpers.js.map +1 -1
- package/dist/src/unstable/commands/operations/uninstall.js +2 -2
- package/dist/src/unstable/commands/operations/uninstall.js.map +1 -1
- package/dist/src/unstable/commands/paths.d.ts +64 -0
- package/dist/src/unstable/commands/paths.d.ts.map +1 -0
- package/dist/src/unstable/commands/paths.js +41 -0
- package/dist/src/unstable/commands/paths.js.map +1 -0
- package/dist/src/unstable/commands/reconciliation-adapter.d.ts.map +1 -1
- package/dist/src/unstable/commands/reconciliation-adapter.js +6 -7
- 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.map +1 -1
- package/dist/src/unstable/commands/renderers/index.d.ts +6 -5
- package/dist/src/unstable/commands/renderers/index.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/index.js +3 -2
- package/dist/src/unstable/commands/renderers/index.js.map +1 -1
- package/dist/src/unstable/commands/renderers/render-markdown-only.d.ts +2 -2
- package/dist/src/unstable/commands/renderers/render-markdown-only.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/render-markdown-only.js +3 -28
- 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 +2 -2
- 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 +5 -42
- 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 +2 -2
- 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 -31
- package/dist/src/unstable/commands/renderers/render-plain-text.js.map +1 -1
- package/dist/src/unstable/commands/renderers/render-prompt-md.d.ts +2 -2
- package/dist/src/unstable/commands/renderers/render-prompt-md.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/render-prompt-md.js +5 -33
- package/dist/src/unstable/commands/renderers/render-prompt-md.js.map +1 -1
- package/dist/src/unstable/commands/renderers/render-toml.d.ts +4 -5
- package/dist/src/unstable/commands/renderers/render-toml.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/render-toml.js +36 -51
- package/dist/src/unstable/commands/renderers/render-toml.js.map +1 -1
- package/dist/src/unstable/commands/renderers/types.d.ts +45 -39
- package/dist/src/unstable/commands/renderers/types.d.ts.map +1 -1
- package/dist/src/unstable/commands/renderers/types.js +19 -1
- package/dist/src/unstable/commands/renderers/types.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/agent-overrides.d.ts +45 -0
- package/dist/src/unstable/extensions/agent-overrides.d.ts.map +1 -0
- package/dist/src/unstable/extensions/agent-overrides.js +66 -0
- package/dist/src/unstable/extensions/agent-overrides.js.map +1 -0
- package/dist/src/unstable/extensions/common.d.ts +116 -22
- package/dist/src/unstable/extensions/common.d.ts.map +1 -1
- package/dist/src/unstable/extensions/common.js +187 -45
- package/dist/src/unstable/extensions/common.js.map +1 -1
- package/dist/src/unstable/extensions/fqn.d.ts +4 -4
- package/dist/src/unstable/extensions/fqn.d.ts.map +1 -1
- package/dist/src/unstable/extensions/fqn.js +11 -7
- 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 +8 -4
- package/dist/src/unstable/extensions/frontmatter.js.map +1 -1
- package/dist/src/unstable/extensions/index.d.ts +4 -2
- package/dist/src/unstable/extensions/index.d.ts.map +1 -1
- package/dist/src/unstable/extensions/index.js +3 -1
- package/dist/src/unstable/extensions/index.js.map +1 -1
- package/dist/src/unstable/extensions/materializable-from-disk.d.ts +24 -0
- package/dist/src/unstable/extensions/materializable-from-disk.d.ts.map +1 -0
- package/dist/src/unstable/extensions/materializable-from-disk.js +232 -0
- package/dist/src/unstable/extensions/materializable-from-disk.js.map +1 -0
- package/dist/src/unstable/extensions/operations.d.ts +1 -1
- package/dist/src/unstable/extensions/operations.d.ts.map +1 -1
- package/dist/src/unstable/extensions/operations.js +1 -1
- package/dist/src/unstable/extensions/operations.js.map +1 -1
- package/dist/src/unstable/extensions/reconciliation-utils.js +2 -2
- package/dist/src/unstable/extensions/reconciliation-utils.js.map +1 -1
- package/dist/src/unstable/extensions/ref-base.d.ts +5 -8
- 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/extensions/utils.d.ts +1 -1
- package/dist/src/unstable/extensions/utils.d.ts.map +1 -1
- package/dist/src/unstable/extensions/utils.js +3 -3
- package/dist/src/unstable/extensions/utils.js.map +1 -1
- package/dist/src/unstable/git/operations.d.ts.map +1 -1
- package/dist/src/unstable/git/operations.js +2 -8
- package/dist/src/unstable/git/operations.js.map +1 -1
- package/dist/src/unstable/install-meta/install-meta.d.ts +1 -1
- package/dist/src/unstable/install-meta/install-meta.js +1 -1
- package/dist/src/unstable/install-meta/install-meta.js.map +1 -1
- package/dist/src/unstable/install-method/install-method.d.ts +1 -1
- package/dist/src/unstable/install-method/install-method.js +1 -1
- package/dist/src/unstable/install-method/install-method.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/configured-but-not-installed.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.js +78 -0
- package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.js.map +1 -0
- 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/catalog/workspace.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace.js +2 -0
- package/dist/src/unstable/lint/catalog/workspace.js.map +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/lockfile.js +10 -10
- package/dist/src/unstable/lockfile/lockfile.js.map +1 -1
- package/dist/src/unstable/lockfile/resolved-version.js +10 -10
- 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.d.ts +1 -1
- package/dist/src/unstable/mcp-servers/manager.d.ts.map +1 -1
- package/dist/src/unstable/mcp-servers/manager.js +20 -25
- package/dist/src/unstable/mcp-servers/manager.js.map +1 -1
- package/dist/src/unstable/mcp-servers/manifest-schema.d.ts +8 -4
- 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 +25 -33
- 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 +14 -15
- package/dist/src/unstable/mcp-servers/operations/publish.js.map +1 -1
- package/dist/src/unstable/mcp-servers/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/mcp-servers/operations/uninstall.js +10 -17
- package/dist/src/unstable/mcp-servers/operations/uninstall.js.map +1 -1
- package/dist/src/unstable/mcp-servers/reconciliation-adapter.js +4 -4
- 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.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 +63 -25
- 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 +20 -20
- 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 +31 -37
- package/dist/src/unstable/packs/manager.js.map +1 -1
- package/dist/src/unstable/packs/manifest-schema.d.ts +15 -16
- 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 +26 -43
- 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 +48 -39
- 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 +38 -35
- 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 +31 -43
- 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 +25 -28
- 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 +19 -19
- 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 +44 -17
- 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 +123 -65
- 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/apply-plan.d.ts.map +1 -1
- package/dist/src/unstable/plan/apply-plan.js +5 -6
- package/dist/src/unstable/plan/apply-plan.js.map +1 -1
- package/dist/src/unstable/plan/resolve-plan.d.ts.map +1 -1
- package/dist/src/unstable/plan/resolve-plan.js +15 -11
- 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 -39
- package/dist/src/unstable/publish/manifest-policy.d.ts.map +1 -1
- package/dist/src/unstable/publish/manifest-policy.js +29 -5
- package/dist/src/unstable/publish/manifest-policy.js.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts +1271 -51
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.js +403 -47
- package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
- package/dist/src/unstable/registry/client.d.ts +6 -6
- 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 +7 -6
- package/dist/src/unstable/registry/error-mapping.d.ts.map +1 -1
- package/dist/src/unstable/registry/error-mapping.js +44 -31
- package/dist/src/unstable/registry/error-mapping.js.map +1 -1
- package/dist/src/unstable/registry/index.d.ts +1 -1
- package/dist/src/unstable/registry/index.d.ts.map +1 -1
- package/dist/src/unstable/registry/index.js +1 -1
- package/dist/src/unstable/registry/index.js.map +1 -1
- package/dist/src/unstable/registry/local-client.d.ts.map +1 -1
- package/dist/src/unstable/registry/local-client.js +51 -43
- 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 +90 -107
- package/dist/src/unstable/registry/remote-client.js.map +1 -1
- package/dist/src/unstable/registry/schema.d.ts +9 -5
- package/dist/src/unstable/registry/schema.d.ts.map +1 -1
- package/dist/src/unstable/registry/schema.js +2 -2
- 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 +12 -12
- 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 +13 -7
- 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 +28 -28
- package/dist/src/unstable/settings/schema.d.ts.map +1 -1
- package/dist/src/unstable/settings/schema.js +58 -74
- package/dist/src/unstable/settings/schema.js.map +1 -1
- package/dist/src/unstable/settings/settings.js +6 -6
- package/dist/src/unstable/settings/settings.js.map +1 -1
- package/dist/src/unstable/skills/index.d.ts +1 -3
- package/dist/src/unstable/skills/index.d.ts.map +1 -1
- package/dist/src/unstable/skills/index.js +1 -2
- package/dist/src/unstable/skills/index.js.map +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 +12 -19
- package/dist/src/unstable/skills/manager.js.map +1 -1
- package/dist/src/unstable/skills/manifest-schema.d.ts +8 -5
- package/dist/src/unstable/skills/manifest-schema.d.ts.map +1 -1
- package/dist/src/unstable/skills/manifest-schema.js +6 -4
- package/dist/src/unstable/skills/manifest-schema.js.map +1 -1
- package/dist/src/unstable/skills/materialization.d.ts.map +1 -1
- package/dist/src/unstable/skills/materialization.js +11 -12
- package/dist/src/unstable/skills/materialization.js.map +1 -1
- package/dist/src/unstable/skills/operations/copy.js +6 -6
- 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 +7 -5
- 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 +5 -3
- 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 +27 -36
- 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 +17 -12
- 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 +26 -24
- 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 +8 -10
- 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.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/index.d.ts +1 -0
- package/dist/src/unstable/source-resolution/index.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/index.js +1 -0
- package/dist/src/unstable/source-resolution/index.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.js +4 -6
- package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/azurerepos/scp.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/azurerepos/scp.js +4 -6
- package/dist/src/unstable/source-resolution/providers/azurerepos/scp.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/azurerepos/url.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/azurerepos/url.js +6 -9
- package/dist/src/unstable/source-resolution/providers/azurerepos/url.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.js +3 -4
- package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/bitbucket/scp.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/bitbucket/scp.js +4 -6
- package/dist/src/unstable/source-resolution/providers/bitbucket/scp.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/bitbucket/url.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/bitbucket/url.js +6 -9
- package/dist/src/unstable/source-resolution/providers/bitbucket/url.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/git-hosting.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/git-hosting.js +6 -8
- package/dist/src/unstable/source-resolution/providers/git-hosting.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/git.js +4 -4
- package/dist/src/unstable/source-resolution/providers/git.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/github/resolve-repo.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/github/resolve-repo.js +3 -4
- package/dist/src/unstable/source-resolution/providers/github/resolve-repo.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/github/scp.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/github/scp.js +4 -6
- package/dist/src/unstable/source-resolution/providers/github/scp.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/github/url.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/github/url.js +6 -9
- package/dist/src/unstable/source-resolution/providers/github/url.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.js +3 -4
- package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/gitlab/scp.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/gitlab/scp.js +4 -6
- package/dist/src/unstable/source-resolution/providers/gitlab/scp.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/gitlab/url.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/gitlab/url.js +6 -9
- package/dist/src/unstable/source-resolution/providers/gitlab/url.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/local.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/local.js +4 -5
- package/dist/src/unstable/source-resolution/providers/local.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.d.ts +1 -1
- package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.js +5 -7
- package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.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 +17 -33
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-identifier.d.ts +61 -0
- package/dist/src/unstable/source-resolution/resolve-identifier.d.ts.map +1 -0
- package/dist/src/unstable/source-resolution/resolve-identifier.js +322 -0
- package/dist/src/unstable/source-resolution/resolve-identifier.js.map +1 -0
- 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 -6
- package/dist/src/unstable/source-resolution/resolve-source-pattern.js.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-source.d.ts +2 -2
- package/dist/src/unstable/source-resolution/resolve-source.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-source.js +50 -73
- package/dist/src/unstable/source-resolution/resolve-source.js.map +1 -1
- package/dist/src/unstable/source-resolution/service.d.ts +1 -1
- package/dist/src/unstable/source-resolution/service.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/service.js +1 -1
- package/dist/src/unstable/source-resolution/service.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 +10 -13
- 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/index.d.ts +3 -4
- package/dist/src/unstable/subagents/index.d.ts.map +1 -1
- package/dist/src/unstable/subagents/index.js +3 -5
- package/dist/src/unstable/subagents/index.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 +51 -65
- package/dist/src/unstable/subagents/manager.js.map +1 -1
- package/dist/src/unstable/subagents/manifest-schema.d.ts +12 -11
- package/dist/src/unstable/subagents/manifest-schema.d.ts.map +1 -1
- package/dist/src/unstable/subagents/manifest-schema.js +10 -12
- 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 +7 -5
- package/dist/src/unstable/subagents/operations/disable.js.map +1 -1
- package/dist/src/unstable/subagents/operations/enable.d.ts +1 -1
- package/dist/src/unstable/subagents/operations/enable.d.ts.map +1 -1
- package/dist/src/unstable/subagents/operations/enable.js +39 -16
- package/dist/src/unstable/subagents/operations/enable.js.map +1 -1
- package/dist/src/unstable/subagents/operations/publish.d.ts +1 -1
- package/dist/src/unstable/subagents/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/subagents/operations/publish.js +53 -52
- package/dist/src/unstable/subagents/operations/publish.js.map +1 -1
- package/dist/src/unstable/subagents/paths.d.ts +7 -1
- package/dist/src/unstable/subagents/paths.d.ts.map +1 -1
- package/dist/src/unstable/subagents/paths.js +7 -1
- package/dist/src/unstable/subagents/paths.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.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/json.d.ts +2 -1
- package/dist/src/unstable/subagents/rendering/adapters/json.d.ts.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/json.js +7 -39
- package/dist/src/unstable/subagents/rendering/adapters/json.js.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.d.ts +2 -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 +17 -101
- package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/roo.d.ts +5 -1
- package/dist/src/unstable/subagents/rendering/adapters/roo.d.ts.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/roo.js +18 -36
- package/dist/src/unstable/subagents/rendering/adapters/roo.js.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/toml.d.ts +3 -2
- package/dist/src/unstable/subagents/rendering/adapters/toml.d.ts.map +1 -1
- package/dist/src/unstable/subagents/rendering/adapters/toml.js +24 -54
- package/dist/src/unstable/subagents/rendering/adapters/toml.js.map +1 -1
- package/dist/src/unstable/subagents/rendering/index.d.ts +1 -4
- package/dist/src/unstable/subagents/rendering/index.d.ts.map +1 -1
- package/dist/src/unstable/subagents/rendering/index.js +1 -2
- package/dist/src/unstable/subagents/rendering/index.js.map +1 -1
- package/dist/src/unstable/subagents/rendering/overrides.d.ts +2 -0
- package/dist/src/unstable/subagents/rendering/overrides.d.ts.map +1 -0
- package/dist/src/unstable/subagents/rendering/overrides.js +2 -0
- package/dist/src/unstable/subagents/rendering/overrides.js.map +1 -0
- package/dist/src/unstable/subagents/rendering/types.d.ts +9 -16
- package/dist/src/unstable/subagents/rendering/types.d.ts.map +1 -1
- package/dist/src/unstable/subagents/rendering/types.js +3 -2
- package/dist/src/unstable/subagents/rendering/types.js.map +1 -1
- package/dist/src/unstable/subagents/subagent-content.d.ts +16 -56
- package/dist/src/unstable/subagents/subagent-content.d.ts.map +1 -1
- package/dist/src/unstable/subagents/subagent-content.js +69 -60
- package/dist/src/unstable/subagents/subagent-content.js.map +1 -1
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.d.ts +10 -10
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.d.ts.map +1 -1
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.js +8 -5
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.js.map +1 -1
- package/dist/src/unstable/telemetry/client.d.ts +2 -2
- package/dist/src/unstable/telemetry/client.d.ts.map +1 -1
- package/dist/src/unstable/telemetry/client.js +5 -2
- package/dist/src/unstable/telemetry/client.js.map +1 -1
- package/dist/src/unstable/update-check/update-check.d.ts +1 -1
- package/dist/src/unstable/update-check/update-check.js +1 -1
- package/dist/src/unstable/update-check/update-check.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 +11 -6
- package/dist/src/unstable/utils/build-zip-archive.js.map +1 -1
- package/dist/src/unstable/utils/create-symlink.js +8 -8
- package/dist/src/unstable/utils/create-symlink.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 +38 -21
- 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 +118 -84
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/timeout.d.ts +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/timeout.d.ts.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/timeout.js +3 -4
- package/dist/src/unstable/workspace/configured-entry-resolution/timeout.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/configured-entry-resolution/types.js +5 -8
- package/dist/src/unstable/workspace/configured-entry-resolution/types.js.map +1 -1
- package/dist/src/unstable/workspace/index.d.ts +2 -1
- package/dist/src/unstable/workspace/index.d.ts.map +1 -1
- package/dist/src/unstable/workspace/index.js +1 -0
- package/dist/src/unstable/workspace/index.js.map +1 -1
- package/dist/src/unstable/workspace/initialization-interaction.d.ts +1 -1
- package/dist/src/unstable/workspace/initialization-interaction.d.ts.map +1 -1
- package/dist/src/unstable/workspace/initialization-interaction.js +1 -1
- package/dist/src/unstable/workspace/initialization-interaction.js.map +1 -1
- package/dist/src/unstable/workspace/initialization.d.ts +44 -44
- package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
- package/dist/src/unstable/workspace/initialization.js +13 -11
- package/dist/src/unstable/workspace/initialization.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 +8 -9
- package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/agent-root-resolver.d.ts +1 -1
- package/dist/src/unstable/workspace/read-model/agent-root-resolver.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/agent-root-resolver.js +1 -1
- package/dist/src/unstable/workspace/read-model/agent-root-resolver.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/discovery/skills.js +4 -4
- package/dist/src/unstable/workspace/read-model/discovery/skills.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/discovery/subagents.js +2 -2
- package/dist/src/unstable/workspace/read-model/discovery/subagents.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/subagent.js +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/subagent.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js +11 -7
- package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js +12 -8
- package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/types.d.ts +2 -2
- package/dist/src/unstable/workspace/read-model/service.d.ts +1 -1
- package/dist/src/unstable/workspace/read-model/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/service.js +3 -3
- 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.d.ts +1 -1
- package/dist/src/unstable/workspace/reconciliation.d.ts.map +1 -1
- package/dist/src/unstable/workspace/reconciliation.js +13 -15
- package/dist/src/unstable/workspace/reconciliation.js.map +1 -1
- package/dist/src/unstable/workspace/rendered-file-cleanup.d.ts +15 -0
- package/dist/src/unstable/workspace/rendered-file-cleanup.d.ts.map +1 -0
- package/dist/src/unstable/workspace/rendered-file-cleanup.js +58 -0
- package/dist/src/unstable/workspace/rendered-file-cleanup.js.map +1 -0
- package/dist/src/unstable/workspace/resolve-plan-interaction.d.ts +1 -1
- package/dist/src/unstable/workspace/resolve-plan-interaction.d.ts.map +1 -1
- package/dist/src/unstable/workspace/resolve-plan-interaction.js +1 -1
- package/dist/src/unstable/workspace/resolve-plan-interaction.js.map +1 -1
- package/dist/src/unstable/workspace/service-interface.d.ts +18 -20
- package/dist/src/unstable/workspace/service-interface.d.ts.map +1 -1
- package/dist/src/unstable/workspace/service-interface.js +1 -1
- package/dist/src/unstable/workspace/service-interface.js.map +1 -1
- package/dist/src/unstable/workspace/service.d.ts +76 -77
- package/dist/src/unstable/workspace/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/service.js +46 -69
- package/dist/src/unstable/workspace/service.js.map +1 -1
- package/dist/src/unstable/workspace/skill-snapshot.js +1 -1
- package/dist/src/unstable/workspace/skill-snapshot.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 -17
- 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 +11 -11
- 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 +118 -20
- package/site-content/__generated__/schemas/mcp-server.schema.json +123 -13
- 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 +122 -18
- package/site-content/__generated__/schemas/subagent.schema.json +176 -0
- package/site-content/install.md +1 -1
- package/dist/src/unstable/cli-runtime/command-document.d.ts +0 -12
- package/dist/src/unstable/cli-runtime/command-document.d.ts.map +0 -1
- package/dist/src/unstable/cli-runtime/command-document.js +0 -13
- package/dist/src/unstable/cli-runtime/command-document.js.map +0 -1
- package/dist/src/unstable/skills/operations/rename.d.ts +0 -34
- package/dist/src/unstable/skills/operations/rename.d.ts.map +0 -1
- package/dist/src/unstable/skills/operations/rename.js +0 -117
- package/dist/src/unstable/skills/operations/rename.js.map +0 -1
- package/dist/src/unstable/subagents/rendering/model-mapping.d.ts +0 -31
- package/dist/src/unstable/subagents/rendering/model-mapping.d.ts.map +0 -1
- package/dist/src/unstable/subagents/rendering/model-mapping.js +0 -127
- package/dist/src/unstable/subagents/rendering/model-mapping.js.map +0 -1
- package/dist/src/unstable/subagents/rendering/tool-access-mapping.d.ts +0 -31
- package/dist/src/unstable/subagents/rendering/tool-access-mapping.d.ts.map +0 -1
- package/dist/src/unstable/subagents/rendering/tool-access-mapping.js +0 -169
- package/dist/src/unstable/subagents/rendering/tool-access-mapping.js.map +0 -1
- package/dist/src/unstable/subagents/tool-access.d.ts +0 -11
- package/dist/src/unstable/subagents/tool-access.d.ts.map +0 -1
- package/dist/src/unstable/subagents/tool-access.js +0 -15
- package/dist/src/unstable/subagents/tool-access.js.map +0 -1
- package/site-content/__generated__/schemas/extension-pack.schema.json +0 -103
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axm-package-meta.js","sourceRoot":"","sources":["../../../../src/unstable/packaging/axm-package-meta.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"axm-package-meta.js","sourceRoot":"","sources":["../../../../src/unstable/packaging/axm-package-meta.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,qBAAqB,EAAE,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC;CACzD,CAAC,CAAC,QAAQ,CAAC;IACV,UAAU,EAAE,gBAAgB;IAC5B,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EAAE,+EAA+E;CAC7F,CAAC,CAAC"}
|
|
@@ -7,6 +7,10 @@ import * as Schema from "effect/Schema";
|
|
|
7
7
|
/**
|
|
8
8
|
* Branded string schema for purl package types (e.g. "npm", "pypi", "maven").
|
|
9
9
|
*
|
|
10
|
+
* Enforces the purl spec character set and lowercase canonical form. To
|
|
11
|
+
* accept inputs in any case, decode through {@link PackageUrlSchema} which
|
|
12
|
+
* normalises the type before constructing parts.
|
|
13
|
+
*
|
|
10
14
|
* @experimental This API is unstable and may change without notice.
|
|
11
15
|
*/
|
|
12
16
|
export declare const PackageTypeSchema: Schema.brand<Schema.String, "PackageType">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-type.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packaging/package-type.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"package-type.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packaging/package-type.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAYxC;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,4CAY7B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -4,15 +4,28 @@
|
|
|
4
4
|
* @experimental This API is unstable and may change without notice.
|
|
5
5
|
*/
|
|
6
6
|
import * as Schema from "effect/Schema";
|
|
7
|
+
/**
|
|
8
|
+
* Spec-conformant character set for a purl type: lowercase ASCII letters,
|
|
9
|
+
* digits, period, plus, and dash; must start with a letter. The purl spec
|
|
10
|
+
* declares `type` case-insensitive with a lowercase canonical form, so this
|
|
11
|
+
* schema accepts only the canonical form.
|
|
12
|
+
*
|
|
13
|
+
* @see https://github.com/package-url/purl-spec
|
|
14
|
+
*/
|
|
15
|
+
const PACKAGE_TYPE_PATTERN = /^[a-z][a-z0-9.+-]*$/;
|
|
7
16
|
/**
|
|
8
17
|
* Branded string schema for purl package types (e.g. "npm", "pypi", "maven").
|
|
9
18
|
*
|
|
19
|
+
* Enforces the purl spec character set and lowercase canonical form. To
|
|
20
|
+
* accept inputs in any case, decode through {@link PackageUrlSchema} which
|
|
21
|
+
* normalises the type before constructing parts.
|
|
22
|
+
*
|
|
10
23
|
* @experimental This API is unstable and may change without notice.
|
|
11
24
|
*/
|
|
12
|
-
export const PackageTypeSchema = Schema.String.pipe(Schema.
|
|
13
|
-
identifier: "PackageType",
|
|
25
|
+
export const PackageTypeSchema = Schema.String.pipe(Schema.check(Schema.isPattern(PACKAGE_TYPE_PATTERN, {
|
|
14
26
|
title: "Package Type",
|
|
15
|
-
description: "A purl package type identifier (e.g. npm, pypi, maven).",
|
|
27
|
+
description: "A purl package type identifier in canonical lowercase form (e.g. npm, pypi, maven). Allowed characters: ASCII letters, digits, '.', '+', '-'; must start with a letter.",
|
|
16
28
|
examples: ["npm", "pypi", "maven", "golang"],
|
|
17
|
-
|
|
29
|
+
message: "Expected a lowercase purl package type like npm or pypi",
|
|
30
|
+
})), Schema.brand("PackageType"), Schema.annotate({ identifier: "PackageType" }));
|
|
18
31
|
//# sourceMappingURL=package-type.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-type.js","sourceRoot":"","sources":["../../../../src/unstable/packaging/package-type.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"package-type.js","sourceRoot":"","sources":["../../../../src/unstable/packaging/package-type.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,oBAAoB,GAAG,qBAAqB,CAAC;AAEnD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CACjD,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,SAAS,CAAC,oBAAoB,EAAE;IACrC,KAAK,EAAE,cAAc;IACrB,WAAW,EACT,yKAAyK;IAC3K,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC;IAC5C,OAAO,EAAE,yDAAyD;CACnE,CAAC,CACH,EACD,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,EAC3B,MAAM,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAC/C,CAAC"}
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as Schema from "effect/Schema";
|
|
9
9
|
/**
|
|
10
|
-
* Structured purl components schema
|
|
10
|
+
* Structured purl components schema covering the seven spec components:
|
|
11
|
+
* type, namespace, name, version, qualifiers, and subpath. The `pkg` scheme
|
|
12
|
+
* is implicit.
|
|
11
13
|
*
|
|
12
14
|
* @experimental This API is unstable and may change without notice.
|
|
13
15
|
*/
|
|
@@ -16,6 +18,8 @@ export declare const PackageUrlPartsSchema: Schema.Struct<{
|
|
|
16
18
|
readonly namespace: Schema.optional<Schema.String>;
|
|
17
19
|
readonly name: Schema.String;
|
|
18
20
|
readonly version: Schema.optional<Schema.String>;
|
|
21
|
+
readonly qualifiers: Schema.optional<Schema.$Record<Schema.String, Schema.NonEmptyString>>;
|
|
22
|
+
readonly subpath: Schema.optional<Schema.NonEmptyString>;
|
|
19
23
|
}>;
|
|
20
24
|
/**
|
|
21
25
|
* Inferred type for decomposed purl parts.
|
|
@@ -40,5 +44,7 @@ export declare const PackageUrlSchema: Schema.decodeTo<Schema.toType<Schema.Stru
|
|
|
40
44
|
readonly namespace: Schema.optional<Schema.String>;
|
|
41
45
|
readonly name: Schema.String;
|
|
42
46
|
readonly version: Schema.optional<Schema.String>;
|
|
47
|
+
readonly qualifiers: Schema.optional<Schema.$Record<Schema.String, Schema.NonEmptyString>>;
|
|
48
|
+
readonly subpath: Schema.optional<Schema.NonEmptyString>;
|
|
43
49
|
}>>, Schema.String, never, never>;
|
|
44
50
|
//# sourceMappingURL=package-url.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-url.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packaging/package-url.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"package-url.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packaging/package-url.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AA4BxC;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;EAYhC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,OAAO,eAAe,KAAG,MAC7B,CAAC;AAYlC;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;;;iCA+C5B,CAAC"}
|
|
@@ -13,7 +13,24 @@ import * as SchemaTransformation from "effect/SchemaTransformation";
|
|
|
13
13
|
import { PackageURL } from "packageurl-js";
|
|
14
14
|
import { PackageTypeSchema } from "./package-type.js";
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Spec-conformant character set for a purl qualifier key: lowercase ASCII
|
|
17
|
+
* letters, digits, period, dash, and underscore; must start with a letter.
|
|
18
|
+
* The purl spec declares qualifier keys case-insensitive with a lowercase
|
|
19
|
+
* canonical form, so this schema accepts only the canonical form.
|
|
20
|
+
*
|
|
21
|
+
* @see https://github.com/package-url/purl-spec
|
|
22
|
+
*/
|
|
23
|
+
const PURL_QUALIFIER_KEY_PATTERN = /^[a-z][a-z0-9._-]*$/;
|
|
24
|
+
const PurlQualifierKeySchema = Schema.String.pipe(Schema.check(Schema.isPattern(PURL_QUALIFIER_KEY_PATTERN, {
|
|
25
|
+
title: "Purl Qualifier Key",
|
|
26
|
+
description: "A purl qualifier key in canonical lowercase form. Allowed characters: ASCII letters, digits, '.', '-', '_'; must start with a letter.",
|
|
27
|
+
examples: ["repository_url", "classifier", "arch"],
|
|
28
|
+
message: "Expected a lowercase purl qualifier key like classifier or arch",
|
|
29
|
+
})));
|
|
30
|
+
/**
|
|
31
|
+
* Structured purl components schema covering the seven spec components:
|
|
32
|
+
* type, namespace, name, version, qualifiers, and subpath. The `pkg` scheme
|
|
33
|
+
* is implicit.
|
|
17
34
|
*
|
|
18
35
|
* @experimental This API is unstable and may change without notice.
|
|
19
36
|
*/
|
|
@@ -22,10 +39,12 @@ export const PackageUrlPartsSchema = Schema.Struct({
|
|
|
22
39
|
namespace: Schema.optional(Schema.String),
|
|
23
40
|
name: Schema.String,
|
|
24
41
|
version: Schema.optional(Schema.String),
|
|
42
|
+
qualifiers: Schema.optional(Schema.Record(PurlQualifierKeySchema, Schema.NonEmptyString)),
|
|
43
|
+
subpath: Schema.optional(Schema.NonEmptyString),
|
|
25
44
|
}).annotate({
|
|
26
45
|
identifier: "PackageUrlParts",
|
|
27
46
|
title: "Package URL Parts",
|
|
28
|
-
description: "Decomposed purl components: type, namespace, name, and
|
|
47
|
+
description: "Decomposed purl components: type, namespace, name, version, qualifiers, and subpath.",
|
|
29
48
|
});
|
|
30
49
|
/**
|
|
31
50
|
* Format a PackageUrlParts as a human-readable display string: `name (type)`.
|
|
@@ -34,13 +53,25 @@ export const PackageUrlPartsSchema = Schema.Struct({
|
|
|
34
53
|
*/
|
|
35
54
|
export const formatPackageDisplay = (parts) => `${parts.name} (${parts.type})`;
|
|
36
55
|
const decodePackageTypeSync = Schema.decodeUnknownSync(PackageTypeSchema);
|
|
56
|
+
/**
|
|
57
|
+
* Loose Package URL shape pattern: `pkg:<type>/<rest>`. The scheme is
|
|
58
|
+
* case-insensitive per the purl spec, so the prefix accepts both cases.
|
|
59
|
+
* The full purl structure is validated by `PackageURL.fromString` during
|
|
60
|
+
* decoding; this pattern exists to expose a useful shape hint in JSON Schema.
|
|
61
|
+
*/
|
|
62
|
+
const PACKAGE_URL_PATTERN = /^[Pp][Kk][Gg]:[a-zA-Z][a-zA-Z0-9.+-]*\/.+$/;
|
|
37
63
|
/**
|
|
38
64
|
* Schema that decodes purl strings into structured PackageUrlParts and
|
|
39
65
|
* encodes parts back to canonical purl strings.
|
|
40
66
|
*
|
|
41
67
|
* @experimental This API is unstable and may change without notice.
|
|
42
68
|
*/
|
|
43
|
-
export const PackageUrlSchema = Schema.String.pipe(Schema.
|
|
69
|
+
export const PackageUrlSchema = Schema.String.pipe(Schema.check(Schema.isPattern(PACKAGE_URL_PATTERN, {
|
|
70
|
+
title: "Package URL",
|
|
71
|
+
description: "A Package URL (purl) string identifying a package across ecosystems (e.g. pkg:npm/react@18.2.0).",
|
|
72
|
+
examples: ["pkg:npm/react@18.2.0", "pkg:pypi/requests@2.31.0", "pkg:cargo/serde@1.0"],
|
|
73
|
+
message: "Expected a Package URL like pkg:npm/react@18.2.0",
|
|
74
|
+
})), Schema.decodeTo(Schema.toType(PackageUrlPartsSchema), SchemaTransformation.transformOrFail({
|
|
44
75
|
decode: (input) => {
|
|
45
76
|
try {
|
|
46
77
|
const parsed = PackageURL.fromString(input);
|
|
@@ -49,6 +80,8 @@ export const PackageUrlSchema = Schema.String.pipe(Schema.decodeTo(Schema.toType
|
|
|
49
80
|
name: parsed.name,
|
|
50
81
|
...(parsed.namespace != null ? { namespace: parsed.namespace } : {}),
|
|
51
82
|
...(parsed.version != null ? { version: parsed.version } : {}),
|
|
83
|
+
...(parsed.qualifiers != null ? { qualifiers: { ...parsed.qualifiers } } : {}),
|
|
84
|
+
...(parsed.subpath != null ? { subpath: parsed.subpath } : {}),
|
|
52
85
|
};
|
|
53
86
|
return Effect.succeed(parts);
|
|
54
87
|
}
|
|
@@ -58,6 +91,6 @@ export const PackageUrlSchema = Schema.String.pipe(Schema.decodeTo(Schema.toType
|
|
|
58
91
|
}));
|
|
59
92
|
}
|
|
60
93
|
},
|
|
61
|
-
encode: (value) => Effect.succeed(new PackageURL(value.type, value.namespace ?? null, value.name, value.version ?? null, null, null).toString()),
|
|
62
|
-
})));
|
|
94
|
+
encode: (value) => Effect.succeed(new PackageURL(value.type, value.namespace ?? null, value.name, value.version ?? null, value.qualifiers ?? null, value.subpath ?? null).toString()),
|
|
95
|
+
})), Schema.annotate({ identifier: "PackageUrl" }));
|
|
63
96
|
//# sourceMappingURL=package-url.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-url.js","sourceRoot":"","sources":["../../../../src/unstable/packaging/package-url.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,K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Q,EAAE,CACb;CACJ,CAAC,CACH,EACD,MAAM,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAC9C,CAAC"}
|
|
@@ -13,5 +13,5 @@ import type { DetectedPackage, PackageReader } from "./types.js";
|
|
|
13
13
|
*
|
|
14
14
|
* @experimental This API is unstable and may change without notice.
|
|
15
15
|
*/
|
|
16
|
-
export declare const readLocalRecommendations: (packages: readonly DetectedPackage[], readers: readonly PackageReader[]) => Effect.Effect<HashMap.HashMap<string, readonly (string & import("effect/Brand").Brand<"
|
|
16
|
+
export declare const readLocalRecommendations: (packages: readonly DetectedPackage[], readers: readonly PackageReader[]) => Effect.Effect<HashMap.HashMap<string, readonly (string & import("effect/Brand").Brand<"ExtensionSpec">)[]>, never, import("effect/FileSystem").FileSystem | import("effect/Path").Path>;
|
|
17
17
|
//# sourceMappingURL=read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packaging/read.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAI1C,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAIjE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packaging/read.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAI1C,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAIjE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,sQAqBnC,CAAC"}
|
|
@@ -8,7 +8,7 @@ import type * as Effect from "effect/Effect";
|
|
|
8
8
|
import type * as Option from "effect/Option";
|
|
9
9
|
import type * as FileSystem from "effect/FileSystem";
|
|
10
10
|
import type * as Path from "effect/Path";
|
|
11
|
-
import type {
|
|
11
|
+
import type { ExtensionSpec } from "../extensions/common.js";
|
|
12
12
|
import type { PackageType } from "./package-type.js";
|
|
13
13
|
import type { PackageUrlParts } from "./package-url.js";
|
|
14
14
|
/**
|
|
@@ -38,6 +38,6 @@ export interface PackageDetector {
|
|
|
38
38
|
*/
|
|
39
39
|
export interface PackageReader {
|
|
40
40
|
readonly type: PackageType;
|
|
41
|
-
readonly read: (pkg: DetectedPackage) => Effect.Effect<Option.Option<ReadonlyArray<
|
|
41
|
+
readonly read: (pkg: DetectedPackage) => Effect.Effect<Option.Option<ReadonlyArray<ExtensionSpec>>, never, FileSystem.FileSystem | Path.Path>;
|
|
42
42
|
}
|
|
43
43
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packaging/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,KAAK,IAAI,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packaging/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,KAAK,IAAI,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,CACf,UAAU,EAAE,MAAM,KACf,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;CAC9F;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,CACb,GAAG,EAAE,eAAe,KACjB,MAAM,CAAC,MAAM,CAChB,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,EAC3C,KAAK,EACL,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAClC,CAAC;CACH"}
|
|
@@ -3,13 +3,13 @@ import type { ExtensionRef } from "../extensions/index.js";
|
|
|
3
3
|
import type { ResolvedExtensionMap } from "../lockfile/index.js";
|
|
4
4
|
import type { SourceHostProvidersService } from "../source-resolution/index.js";
|
|
5
5
|
import { type AppError } from "../app-error/index.js";
|
|
6
|
-
import type {
|
|
7
|
-
export interface
|
|
6
|
+
import type { PackRef } from "./refs.js";
|
|
7
|
+
export interface ResolvedPackDependencies {
|
|
8
8
|
readonly resolvedSkills: ResolvedExtensionMap;
|
|
9
9
|
readonly resolvedCommands: ResolvedExtensionMap;
|
|
10
10
|
readonly resolvedMcpServers: ResolvedExtensionMap;
|
|
11
11
|
readonly resolvedSubagents: ResolvedExtensionMap;
|
|
12
12
|
readonly dependencyRefs: ReadonlyArray<ExtensionRef>;
|
|
13
13
|
}
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const resolvePackDependencies: (pack: PackRef, sources: SourceHostProvidersService) => Effect.Effect<ResolvedPackDependencies, AppError>;
|
|
15
15
|
//# sourceMappingURL=dependency-resolution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependency-resolution.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packs/dependency-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAwC,MAAM,wBAAwB,CAAC;AAEjG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"dependency-resolution.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packs/dependency-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAwC,MAAM,wBAAwB,CAAC;AAEjG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEhF,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmBzC,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,cAAc,EAAE,oBAAoB,CAAC;IAC9C,QAAQ,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;IAChD,QAAQ,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;IAClD,QAAQ,CAAC,iBAAiB,EAAE,oBAAoB,CAAC;IACjD,QAAQ,CAAC,cAAc,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;CACtD;AAkID,eAAO,MAAM,uBAAuB,GAClC,MAAM,OAAO,EACb,SAAS,0BAA0B,KAClC,MAAM,CAAC,MAAM,CAAC,wBAAwB,EAAE,QAAQ,CA+E/C,CAAC"}
|
|
@@ -6,22 +6,12 @@ import { buildRegistrySkillRef } from "../skills/registry-ref-builder.js";
|
|
|
6
6
|
import { buildRegistryCommandRef } from "../commands/registry-ref-builder.js";
|
|
7
7
|
import { buildRegistryMcpServerRef } from "../mcp-servers/registry-ref-builder.js";
|
|
8
8
|
import { buildRegistrySubagentRef } from "../subagents/registry-ref-builder.js";
|
|
9
|
-
import {
|
|
10
|
-
const resolveDependencyType = (expectedType, parsedType) => {
|
|
11
|
-
if (parsedType === expectedType) {
|
|
12
|
-
return Effect.void;
|
|
13
|
-
}
|
|
14
|
-
return Effect.fail(makeAppError({
|
|
15
|
-
code: "PACK_DEPENDENCY_RESOLUTION_FAILED",
|
|
16
|
-
what: `Extension pack dependency type mismatch for expected ${expectedType}`,
|
|
17
|
-
details: [`Expected ${expectedType}, received ${parsedType}`],
|
|
18
|
-
}));
|
|
19
|
-
};
|
|
9
|
+
import { decodeVersionSync, } from "../version-constraints/version-constraints.js";
|
|
20
10
|
const registrySourceForDependency = (pack, owner) => {
|
|
21
11
|
if (pack.source.type !== "registry") {
|
|
22
12
|
return Effect.fail(makeAppError({
|
|
23
|
-
code: "
|
|
24
|
-
|
|
13
|
+
code: "usage",
|
|
14
|
+
message: `Cannot resolve pack dependencies from non-registry source`,
|
|
25
15
|
}));
|
|
26
16
|
}
|
|
27
17
|
return Effect.succeed({
|
|
@@ -31,13 +21,18 @@ const registrySourceForDependency = (pack, owner) => {
|
|
|
31
21
|
};
|
|
32
22
|
const resolveDependencyRef = (pack, expectedType, fqn, constraint, sources) => Effect.gen(function* () {
|
|
33
23
|
const parsed = parseFqnOrThrow(fqn);
|
|
34
|
-
|
|
24
|
+
if (parsed.type !== expectedType) {
|
|
25
|
+
return yield* makeAppError({
|
|
26
|
+
code: "usage",
|
|
27
|
+
message: `Pack dependency type mismatch for expected ${expectedType}`,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
35
30
|
const source = yield* registrySourceForDependency(pack, parsed.owner);
|
|
36
31
|
const matches = yield* Effect.scoped(sources.find(source, {
|
|
37
32
|
names: [parsed.name],
|
|
38
33
|
type: expectedType,
|
|
39
34
|
owner: Option.some(parsed.owner),
|
|
40
|
-
|
|
35
|
+
versionRange: Option.some(constraint),
|
|
41
36
|
}));
|
|
42
37
|
const matchingRef = matches.find((candidate) => candidate.type === expectedType &&
|
|
43
38
|
candidate.refType === "registry" &&
|
|
@@ -45,22 +40,65 @@ const resolveDependencyRef = (pack, expectedType, fqn, constraint, sources) => E
|
|
|
45
40
|
candidate.name === parsed.name);
|
|
46
41
|
if (matchingRef === undefined) {
|
|
47
42
|
return yield* makeAppError({
|
|
48
|
-
code: "
|
|
49
|
-
|
|
43
|
+
code: "usage",
|
|
44
|
+
message: `Unable to resolve pack dependency ${fqn}@${constraint}`,
|
|
50
45
|
});
|
|
51
46
|
}
|
|
52
|
-
return {
|
|
47
|
+
return {
|
|
48
|
+
owner: parsed.owner,
|
|
49
|
+
type: expectedType,
|
|
50
|
+
name: parsed.name,
|
|
51
|
+
ref: matchingRef,
|
|
52
|
+
source,
|
|
53
|
+
};
|
|
53
54
|
});
|
|
54
55
|
const toResolvedMap = (dependencies) => Object.fromEntries(dependencies.map((dependency) => [
|
|
55
56
|
formatFqn(dependency),
|
|
56
|
-
|
|
57
|
+
decodeVersionSync(dependency.ref.version),
|
|
57
58
|
]));
|
|
58
|
-
const resolveDependencyGroup = (pack, dependencies, expectedType, sources) => Effect.forEach(
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
const
|
|
59
|
+
const resolveDependencyGroup = (pack, dependencies, expectedType, sources) => Effect.forEach(dependencies, ([fqn, constraint]) => resolveDependencyRef(pack, expectedType, fqn, constraint, sources), { concurrency: "unbounded" });
|
|
60
|
+
const partitionDependencies = (dependencies) => {
|
|
61
|
+
const skills = [];
|
|
62
|
+
const commands = [];
|
|
63
|
+
const mcpServers = [];
|
|
64
|
+
const subagents = [];
|
|
65
|
+
const unsupported = [];
|
|
66
|
+
for (const [fqn, constraint] of Object.entries(dependencies)) {
|
|
67
|
+
const parsed = parseFqnOrThrow(fqn);
|
|
68
|
+
switch (parsed.type) {
|
|
69
|
+
case "skill":
|
|
70
|
+
skills.push([fqn, constraint]);
|
|
71
|
+
break;
|
|
72
|
+
case "command":
|
|
73
|
+
commands.push([fqn, constraint]);
|
|
74
|
+
break;
|
|
75
|
+
case "mcp-server":
|
|
76
|
+
mcpServers.push([fqn, constraint]);
|
|
77
|
+
break;
|
|
78
|
+
case "subagent":
|
|
79
|
+
subagents.push([fqn, constraint]);
|
|
80
|
+
break;
|
|
81
|
+
case "file":
|
|
82
|
+
case "rule":
|
|
83
|
+
case "pack":
|
|
84
|
+
unsupported.push(fqn);
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return { skills, commands, mcpServers, subagents, unsupported };
|
|
89
|
+
};
|
|
90
|
+
export const resolvePackDependencies = (pack, sources) => Effect.gen(function* () {
|
|
91
|
+
const dependencies = partitionDependencies(pack.pack.dependencies);
|
|
92
|
+
if (dependencies.unsupported.length > 0) {
|
|
93
|
+
return yield* makeAppError({
|
|
94
|
+
code: "usage",
|
|
95
|
+
message: `Pack declares unsupported dependency type(s): ${dependencies.unsupported.join(", ")}`,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
const resolvedSkills = yield* resolveDependencyGroup(pack, dependencies.skills, "skill", sources);
|
|
99
|
+
const resolvedCommands = yield* resolveDependencyGroup(pack, dependencies.commands, "command", sources);
|
|
100
|
+
const resolvedMcpServers = yield* resolveDependencyGroup(pack, dependencies.mcpServers, "mcp-server", sources);
|
|
101
|
+
const resolvedSubagents = yield* resolveDependencyGroup(pack, dependencies.subagents, "subagent", sources);
|
|
64
102
|
return {
|
|
65
103
|
resolvedSkills: toResolvedMap(resolvedSkills),
|
|
66
104
|
resolvedCommands: toResolvedMap(resolvedCommands),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependency-resolution.js","sourceRoot":"","sources":["../../../../src/unstable/packs/dependency-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIpE,OAAO,EAAE,YAAY,EAAiB,MAAM,uBAAuB,CAAC;AAGpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"dependency-resolution.js","sourceRoot":"","sources":["../../../../src/unstable/packs/dependency-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAIpE,OAAO,EAAE,YAAY,EAAiB,MAAM,uBAAuB,CAAC;AAGpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAm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C,qBAAqB,CACnB,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,IAAI,EACf,UAAU,CAAC,GAAG,CAAC,OAAO,EACtB,UAAU,CAAC,MAAM,EACjB,UAAU,CAAC,GAAG,CAAC,kBAAkB,CAClC,CACF;YACD,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CACrC,uBAAuB,CACrB,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,IAAI,EACf,UAAU,CAAC,GAAG,CAAC,OAAO,EACtB,UAAU,CAAC,MAAM,EACjB,UAAU,CAAC,GAAG,CAAC,kBAAkB,CAClC,CACF;YACD,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CACvC,yBAAyB,CACvB,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,IAAI,EACf,UAAU,CAAC,GAAG,CAAC,OAAO,EACtB,UAAU,CAAC,MAAM,EACjB,UAAU,CAAC,GAAG,CAAC,kBAAkB,CAClC,CACF;YACD,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CACtC,wBAAwB,CACtB,UAAU,CAAC,KAAK,EAChB,UAAU,CAAC,IAAI,EACf,UAAU,CAAC,GAAG,CAAC,OAAO,EACtB,UAAU,CAAC,MAAM,EACjB,UAAU,CAAC,GAAG,CAAC,kBAAkB,CAClC,CACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Pack expansion helpers for cross-type dependency expansion.
|
|
3
3
|
*
|
|
4
|
-
* -
|
|
5
|
-
* -
|
|
4
|
+
* - expandPackInstallRefs: Expands a pack ref into install refs (pack + dependencies)
|
|
5
|
+
* - expandPackUninstallTargets: Computes removable uninstall targets (pack + orphaned deps)
|
|
6
6
|
* - resolveSkillUninstallTargetsFromLockfile: Resolves skill names to targets via lockfile
|
|
7
7
|
*
|
|
8
8
|
* @experimental This API is unstable and may change without notice.
|
|
@@ -11,22 +11,22 @@ import * as Effect from "effect/Effect";
|
|
|
11
11
|
import { type AppError } from "../app-error/index.js";
|
|
12
12
|
import { type ExtensionName, type ExtensionType } from "../extensions/index.js";
|
|
13
13
|
import type { ExtensionRef } from "../extensions/index.js";
|
|
14
|
-
import type {
|
|
14
|
+
import type { PackRef } from "./refs.js";
|
|
15
15
|
import type { ExtensionTarget, PackExtensionTarget, SkillExtensionTarget } from "../workspace/service-interface.js";
|
|
16
16
|
import type { Lockfile } from "../lockfile/index.js";
|
|
17
17
|
import type { SourceHostProvidersService } from "../source-resolution/index.js";
|
|
18
18
|
/**
|
|
19
|
-
* Expand
|
|
19
|
+
* Expand a pack ref into its cross-type dependency refs.
|
|
20
20
|
*
|
|
21
|
-
* Returns the
|
|
21
|
+
* Returns the pack ref first, followed by dependency refs (skill, command,
|
|
22
22
|
* mcp-server) in declaration order. Only dependency types listed in
|
|
23
23
|
* `supportedDependencyTypes` are included.
|
|
24
24
|
*
|
|
25
|
-
* Dependency refs use the
|
|
25
|
+
* Dependency refs use the pack's registry source and empty integrity
|
|
26
26
|
* (integrity is resolved during materialization, not at expansion time).
|
|
27
27
|
*/
|
|
28
|
-
export declare const
|
|
29
|
-
readonly pack:
|
|
28
|
+
export declare const expandPackInstallRefs: (args: {
|
|
29
|
+
readonly pack: PackRef;
|
|
30
30
|
readonly supportedDependencyTypes: ReadonlyArray<ExtensionType>;
|
|
31
31
|
readonly sources: SourceHostProvidersService;
|
|
32
32
|
}) => Effect.Effect<ReadonlyArray<ExtensionRef>, AppError>;
|
|
@@ -38,16 +38,16 @@ export interface UninstallSettingsContext {
|
|
|
38
38
|
readonly subagents: Readonly<Record<string, string>>;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* Compute removable uninstall targets for
|
|
41
|
+
* Compute removable uninstall targets for a pack.
|
|
42
42
|
*
|
|
43
|
-
* Returns the
|
|
44
|
-
* Orphaned =
|
|
45
|
-
* - dependencies still referenced by remaining installed
|
|
43
|
+
* Returns the pack target first, followed by orphaned dependency targets.
|
|
44
|
+
* Orphaned = pack dependency candidates minus:
|
|
45
|
+
* - dependencies still referenced by remaining installed packs
|
|
46
46
|
* - dependencies directly configured in settings
|
|
47
47
|
*
|
|
48
48
|
* Only dependency types listed in `supportedDependencyTypes` are considered.
|
|
49
49
|
*/
|
|
50
|
-
export declare const
|
|
50
|
+
export declare const expandPackUninstallTargets: (args: {
|
|
51
51
|
readonly pack: PackExtensionTarget;
|
|
52
52
|
readonly supportedDependencyTypes: ReadonlyArray<ExtensionType>;
|
|
53
53
|
readonly lockfile: Lockfile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expansion.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packs/expansion.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"expansion.d.ts","sourceRoot":"","sources":["../../../../src/unstable/packs/expansion.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EACV,eAAe,EACf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AAC;AAMF;;;;GAIG;AACH,eAAO,MAAM,wCAAwC,GACnD,QAAQ,aAAa,CAAC;IAAE,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAA;CAAE,CAAC,EAC5D,UAAU,QAAQ,KACjB,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,oBAAoB,CAAC,EAAE,QAAQ,CAe1D,CAAC"}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Pack expansion helpers for cross-type dependency expansion.
|
|
3
3
|
*
|
|
4
|
-
* -
|
|
5
|
-
* -
|
|
4
|
+
* - expandPackInstallRefs: Expands a pack ref into install refs (pack + dependencies)
|
|
5
|
+
* - expandPackUninstallTargets: Computes removable uninstall targets (pack + orphaned deps)
|
|
6
6
|
* - resolveSkillUninstallTargetsFromLockfile: Resolves skill names to targets via lockfile
|
|
7
7
|
*
|
|
8
8
|
* @experimental This API is unstable and may change without notice.
|
|
9
9
|
*/
|
|
10
10
|
import * as Effect from "effect/Effect";
|
|
11
11
|
import { makeAppError } from "../app-error/index.js";
|
|
12
|
-
import { decodeExtensionNameSync,
|
|
13
|
-
import {
|
|
12
|
+
import { decodeExtensionNameSync, parseExtensionFqnParts, } from "../extensions/index.js";
|
|
13
|
+
import { resolvePackDependencies } from "./dependency-resolution.js";
|
|
14
14
|
// -----------------------------------------------------------------------------
|
|
15
|
-
//
|
|
15
|
+
// expandPackInstallRefs
|
|
16
16
|
// -----------------------------------------------------------------------------
|
|
17
17
|
const nameFromFqn = (fqn) => {
|
|
18
|
-
return
|
|
18
|
+
return parseExtensionFqnParts(fqn)?.name ?? decodeExtensionNameSync(fqn);
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
|
-
* Expand
|
|
21
|
+
* Expand a pack ref into its cross-type dependency refs.
|
|
22
22
|
*
|
|
23
|
-
* Returns the
|
|
23
|
+
* Returns the pack ref first, followed by dependency refs (skill, command,
|
|
24
24
|
* mcp-server) in declaration order. Only dependency types listed in
|
|
25
25
|
* `supportedDependencyTypes` are included.
|
|
26
26
|
*
|
|
27
|
-
* Dependency refs use the
|
|
27
|
+
* Dependency refs use the pack's registry source and empty integrity
|
|
28
28
|
* (integrity is resolved during materialization, not at expansion time).
|
|
29
29
|
*/
|
|
30
|
-
export const
|
|
30
|
+
export const expandPackInstallRefs = (args) => Effect.gen(function* () {
|
|
31
31
|
const { pack, supportedDependencyTypes, sources } = args;
|
|
32
|
-
const resolved = yield*
|
|
32
|
+
const resolved = yield* resolvePackDependencies(pack, sources);
|
|
33
33
|
const deps = resolved.dependencyRefs.filter((ref) => supportedDependencyTypes.includes(ref.type));
|
|
34
34
|
const packRef = pack;
|
|
35
35
|
return [packRef, ...deps];
|
|
36
36
|
});
|
|
37
37
|
/**
|
|
38
|
-
* Compute removable uninstall targets for
|
|
38
|
+
* Compute removable uninstall targets for a pack.
|
|
39
39
|
*
|
|
40
|
-
* Returns the
|
|
41
|
-
* Orphaned =
|
|
42
|
-
* - dependencies still referenced by remaining installed
|
|
40
|
+
* Returns the pack target first, followed by orphaned dependency targets.
|
|
41
|
+
* Orphaned = pack dependency candidates minus:
|
|
42
|
+
* - dependencies still referenced by remaining installed packs
|
|
43
43
|
* - dependencies directly configured in settings
|
|
44
44
|
*
|
|
45
45
|
* Only dependency types listed in `supportedDependencyTypes` are considered.
|
|
46
46
|
*/
|
|
47
|
-
export const
|
|
47
|
+
export const expandPackUninstallTargets = (args) => {
|
|
48
48
|
const { pack, supportedDependencyTypes, lockfile, settings } = args;
|
|
49
49
|
const packs = lockfile.packs ?? {};
|
|
50
50
|
const packEntry = packs[pack.name];
|
|
@@ -136,9 +136,9 @@ export const expandExtensionPackUninstallTargets = (args) => {
|
|
|
136
136
|
export const resolveSkillUninstallTargetsFromLockfile = (skills, lockfile) => Effect.forEach(skills, (entry) => {
|
|
137
137
|
if (!(entry.skillName in lockfile.skills)) {
|
|
138
138
|
return Effect.fail(makeAppError({
|
|
139
|
-
code: "
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
code: "not_found",
|
|
140
|
+
message: `Skill "${entry.skillName}" is not installed`,
|
|
141
|
+
breadcrumbs: [{ task: "Recover", description: "Check the skill name and try again" }],
|
|
142
142
|
}));
|
|
143
143
|
}
|
|
144
144
|
return Effect.succeed({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expansion.js","sourceRoot":"","sources":["../../../../src/unstable/packs/expansion.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAiB,MAAM,uBAAuB,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"expansion.js","sourceRoot":"","sources":["../../../../src/unstable/packs/expansion.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAiB,MAAM,uBAAuB,CAAC;AACpE,OAAO,EACL,uBAAuB,EACvB,sBAAsB,GAGvB,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,gFAAgF;AAChF,wBAAwB;AACxB,gFAAgF;AAEhF,MAAM,WAAW,GAAG,CAAC,GAAW,EAAiB,EAAE;IACjD,OAAO,sBAAsB,CAAC,GAAG,CAAC,EAAE,IAAI,IAAI,uBAAuB,CAAC,GAAG,CAAC,CAAC;AAC3E,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAIrC,EAAwD,EAAE,CACzD,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IACzD,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,uBAAuB,CAAC,IAAI,EAAE,OAA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