@agentxm/client-core 0.5.1 → 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/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 +77 -3
- package/dist/src/unstable/app-error/app-error.d.ts.map +1 -1
- package/dist/src/unstable/app-error/app-error.js +97 -30
- package/dist/src/unstable/app-error/app-error.js.map +1 -1
- package/dist/src/unstable/app-error/index.d.ts +1 -1
- package/dist/src/unstable/app-error/index.d.ts.map +1 -1
- package/dist/src/unstable/app-error/index.js +1 -1
- package/dist/src/unstable/app-error/index.js.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-machine.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-machine.js +9 -9
- package/dist/src/unstable/cli-renderer/cli-renderer-machine.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 -6
- 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 -1
- package/dist/src/unstable/cli-runtime/output-mode.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/output-mode.js +0 -1
- 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 -11
- 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 -2
- package/dist/src/unstable/commands/command-content.js.map +1 -1
- package/dist/src/unstable/commands/manager.d.ts.map +1 -1
- package/dist/src/unstable/commands/manager.js +4 -3
- package/dist/src/unstable/commands/manager.js.map +1 -1
- package/dist/src/unstable/commands/manifest-schema.d.ts +10 -7
- 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.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/enable.js +2 -1
- 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 +2 -1
- 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 -3
- 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 +8 -1
- package/dist/src/unstable/commands/operations/publish.js.map +1 -1
- package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +10 -6
- 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.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 +116 -22
- 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 +3 -3
- package/dist/src/unstable/extensions/fqn.d.ts.map +1 -1
- package/dist/src/unstable/extensions/fqn.js +3 -3
- package/dist/src/unstable/extensions/fqn.js.map +1 -1
- package/dist/src/unstable/extensions/index.d.ts +2 -2
- package/dist/src/unstable/extensions/index.d.ts.map +1 -1
- package/dist/src/unstable/extensions/index.js +1 -1
- package/dist/src/unstable/extensions/index.js.map +1 -1
- package/dist/src/unstable/extensions/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 +4 -7
- package/dist/src/unstable/extensions/materializable-from-disk.js.map +1 -1
- 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/ref-base.d.ts +4 -7
- 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.js +3 -3
- 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 +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 +2 -2
- package/dist/src/unstable/mcp-servers/operations/install.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.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 +61 -22
- 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 +17 -17
- 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 +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 +18 -39
- 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 -32
- 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 -31
- 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 +18 -29
- 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 +17 -24
- 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 +37 -15
- 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/resolve-plan.js +2 -2
- 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 +44 -29
- 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/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/local-client.js +7 -7
- package/dist/src/unstable/registry/local-client.js.map +1 -1
- package/dist/src/unstable/registry/remote-client.js +4 -4
- 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 +4 -4
- package/dist/src/unstable/registry/utils.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 +1 -1
- package/dist/src/unstable/skills/index.d.ts.map +1 -1
- package/dist/src/unstable/skills/index.js +1 -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 +8 -4
- 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/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.js +3 -3
- package/dist/src/unstable/skills/operations/new-skill.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.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 +11 -26
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-identifier.js +3 -3
- package/dist/src/unstable/source-resolution/resolve-identifier.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 +2 -5
- 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/manifest-schema.d.ts +8 -4
- 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/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/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/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 +23 -23
- 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/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/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 +30 -30
- package/dist/src/unstable/workspace/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/service.js +22 -26
- 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 +122 -18
- 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 +123 -13
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* New
|
|
2
|
+
* New pack operation — scaffolds a new pack directory with manifest,
|
|
3
3
|
* and registers in settings/lockfile.
|
|
4
4
|
*
|
|
5
5
|
* @experimental This API is unstable and may change without notice.
|
|
@@ -10,80 +10,78 @@ import * as Effect from "effect/Effect";
|
|
|
10
10
|
import * as Option from "effect/Option";
|
|
11
11
|
import { makeAppError } from "../../app-error/index.js";
|
|
12
12
|
import { decodeExtensionNameSync, formatFqn } from "../../extensions/index.js";
|
|
13
|
-
import {
|
|
13
|
+
import { PACK_MANIFEST_FILENAME, PACK_MANIFEST_SCHEMA_URL } from "../manifest-schema.js";
|
|
14
14
|
import { WorkspaceMutations } from "../../workspace/service-interface.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { computePackPaths } from "../paths.js";
|
|
16
|
+
import { decodeVersionSync } from "../../version-constraints/version-constraints.js";
|
|
17
17
|
// -----------------------------------------------------------------------------
|
|
18
18
|
// Public API
|
|
19
19
|
// -----------------------------------------------------------------------------
|
|
20
20
|
/**
|
|
21
|
-
* New
|
|
21
|
+
* New pack operation handler.
|
|
22
22
|
*
|
|
23
|
-
* 1. Compute
|
|
24
|
-
* 2. Check if
|
|
25
|
-
* 3. Create
|
|
26
|
-
* 4. Write
|
|
27
|
-
* 5. Register in settings via ws.
|
|
23
|
+
* 1. Compute pack directory path
|
|
24
|
+
* 2. Check if pack manifest already exists
|
|
25
|
+
* 3. Create pack directory
|
|
26
|
+
* 4. Write pack.json manifest
|
|
27
|
+
* 5. Register in settings via ws.setPack
|
|
28
28
|
*/
|
|
29
|
-
export const
|
|
29
|
+
export const newPack = (op) => Effect.gen(function* () {
|
|
30
30
|
const fs = yield* FileSystem.FileSystem;
|
|
31
31
|
const path = yield* Path.Path;
|
|
32
32
|
const ws = yield* WorkspaceMutations;
|
|
33
33
|
const base = ws.baseDir;
|
|
34
|
-
const initialVersion =
|
|
34
|
+
const initialVersion = decodeVersionSync("0.0.1");
|
|
35
35
|
const { name, owner } = op.args;
|
|
36
36
|
const extensionName = decodeExtensionNameSync(name);
|
|
37
37
|
const fqn = formatFqn({ owner, type: "pack", name: extensionName });
|
|
38
|
-
// 1. Compute
|
|
39
|
-
const packDir =
|
|
40
|
-
const manifestPath = path.join(packDir.canonicalPath,
|
|
41
|
-
// 2. Check if
|
|
38
|
+
// 1. Compute pack directory path
|
|
39
|
+
const packDir = computePackPaths(path.join, base, owner, name);
|
|
40
|
+
const manifestPath = path.join(packDir.canonicalPath, PACK_MANIFEST_FILENAME);
|
|
41
|
+
// 2. Check if pack manifest already exists
|
|
42
42
|
const exists = yield* fs.exists(manifestPath).pipe(Effect.mapError((e) => makeAppError({
|
|
43
43
|
code: "internal",
|
|
44
|
-
message: `Failed to check if
|
|
44
|
+
message: `Failed to check if pack exists: ${manifestPath}`,
|
|
45
45
|
cause: e,
|
|
46
46
|
})));
|
|
47
47
|
if (exists) {
|
|
48
48
|
return yield* makeAppError({
|
|
49
49
|
code: "conflict",
|
|
50
|
-
message: `
|
|
50
|
+
message: `Pack '${fqn}' already exists at ${packDir.canonicalPath}`,
|
|
51
51
|
breadcrumbs: [
|
|
52
52
|
{
|
|
53
53
|
task: "Recover",
|
|
54
|
-
description: "Choose a different name or remove the existing
|
|
54
|
+
description: "Choose a different name or remove the existing pack first",
|
|
55
55
|
},
|
|
56
56
|
],
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
// 3. Create
|
|
59
|
+
// 3. Create pack directory
|
|
60
60
|
yield* fs.makeDirectory(packDir.canonicalPath, { recursive: true }).pipe(Effect.mapError((e) => makeAppError({
|
|
61
61
|
code: "internal",
|
|
62
|
-
message: `Failed to create
|
|
62
|
+
message: `Failed to create pack directory: ${packDir.canonicalPath}`,
|
|
63
63
|
cause: e,
|
|
64
64
|
})));
|
|
65
65
|
// 4. Write manifest
|
|
66
66
|
const manifest = {
|
|
67
|
-
$schema:
|
|
67
|
+
$schema: PACK_MANIFEST_SCHEMA_URL,
|
|
68
68
|
owner,
|
|
69
69
|
type: "pack",
|
|
70
70
|
name: extensionName,
|
|
71
71
|
version: initialVersion,
|
|
72
|
-
|
|
73
|
-
commands: {},
|
|
74
|
-
"mcp-servers": {},
|
|
72
|
+
dependencies: {},
|
|
75
73
|
};
|
|
76
74
|
yield* fs.writeFileString(manifestPath, JSON.stringify(manifest, null, 2) + "\n").pipe(Effect.mapError((e) => makeAppError({
|
|
77
75
|
code: "internal",
|
|
78
|
-
message: `Failed to write
|
|
76
|
+
message: `Failed to write pack manifest: ${manifestPath}`,
|
|
79
77
|
cause: e,
|
|
80
78
|
})));
|
|
81
79
|
// 5. Register in settings (best-effort: directory/manifest already on disk).
|
|
82
|
-
// Mark authored first so the subsequent
|
|
83
|
-
yield* ws.
|
|
80
|
+
// Mark authored first so the subsequent setPack preserves the flag.
|
|
81
|
+
yield* ws.setPackEntry(name, { source: fqn, authored: true }).pipe(Effect.ignore);
|
|
84
82
|
const now = new Date();
|
|
85
83
|
yield* ws
|
|
86
|
-
.
|
|
84
|
+
.setPack({
|
|
87
85
|
owner,
|
|
88
86
|
name: extensionName,
|
|
89
87
|
resolvedVersion: initialVersion,
|
|
@@ -95,12 +93,12 @@ export const newExtensionPack = (op) => Effect.gen(function* () {
|
|
|
95
93
|
resolvedCommands: {},
|
|
96
94
|
resolvedMcpServers: {},
|
|
97
95
|
resolvedSubagents: {},
|
|
98
|
-
|
|
96
|
+
versionRange: Option.none(),
|
|
99
97
|
})
|
|
100
98
|
.pipe(Effect.ignore);
|
|
101
99
|
return {
|
|
102
100
|
result: "success",
|
|
103
|
-
message: `Created
|
|
101
|
+
message: `Created pack ${fqn}`,
|
|
104
102
|
};
|
|
105
103
|
});
|
|
106
104
|
//# sourceMappingURL=new-pack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-pack.js","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/new-pack.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAA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AAE,EAAE;QACtB,iBAAiB,EAAE,EAAE;QACrB,YAAY,EAAE,MAAM,CAAC,IAAI,EAAE;KAC5B,CAAC;SACD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEvB,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,gBAAgB,GAAG,EAAE;KACP,CAAC;AAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Publish
|
|
2
|
+
* Publish pack executor -- reads a managed pack's manifest, builds a zip
|
|
3
3
|
* archive, computes the SRI integrity hash, and publishes to a target registry.
|
|
4
4
|
*
|
|
5
5
|
* Pipeline: validate manifest -> build archive -> compute integrity ->
|
|
@@ -15,26 +15,26 @@ import { WorkspaceMutations } from "../../workspace/service-interface.js";
|
|
|
15
15
|
/**
|
|
16
16
|
* Args for the publish-pack operation.
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface PublishPackOperationArgs {
|
|
19
19
|
/** Extension identity in `@owner/name` format. */
|
|
20
20
|
readonly name: string;
|
|
21
21
|
/** Named source to publish to (e.g., "local"). */
|
|
22
22
|
readonly registryName: string;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* Publish
|
|
25
|
+
* Publish a pack to a registry.
|
|
26
26
|
*
|
|
27
27
|
* @experimental This API is unstable and may change without notice.
|
|
28
28
|
*/
|
|
29
|
-
export type
|
|
29
|
+
export type PublishPackOperation = Operation<"publish-pack", PublishPackOperationArgs>;
|
|
30
30
|
/**
|
|
31
|
-
* Publish
|
|
31
|
+
* Publish pack operation handler.
|
|
32
32
|
*
|
|
33
|
-
* 1. Read and validate `
|
|
34
|
-
* 2. Build zip archive of
|
|
33
|
+
* 1. Read and validate `pack.json` manifest
|
|
34
|
+
* 2. Build zip archive of pack directory
|
|
35
35
|
* 3. Compute SRI integrity hash
|
|
36
36
|
* 4. Resolve target registry provider by source name
|
|
37
37
|
* 5. Publish version (idempotent: same integrity = no-op, different integrity = error)
|
|
38
38
|
*/
|
|
39
|
-
export declare const
|
|
39
|
+
export declare const publishPack: OperationHandler<PublishPackOperation, FileSystem.FileSystem | Path.Path | WorkspaceMutations>;
|
|
40
40
|
//# sourceMappingURL=publish.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAcpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAO1E;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAcpC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAO1E;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,cAAc,EAAE,wBAAwB,CAAC,CAAC;AAMvF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,gBAAgB,CACxC,oBAAoB,EACpB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,CA0HpD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Publish
|
|
2
|
+
* Publish pack executor -- reads a managed pack's manifest, builds a zip
|
|
3
3
|
* archive, computes the SRI integrity hash, and publishes to a target registry.
|
|
4
4
|
*
|
|
5
5
|
* Pipeline: validate manifest -> build archive -> compute integrity ->
|
|
@@ -13,41 +13,41 @@ import * as Effect from "effect/Effect";
|
|
|
13
13
|
import * as Option from "effect/Option";
|
|
14
14
|
import * as Schema from "effect/Schema";
|
|
15
15
|
import { parseFqn } from "../../extensions/index.js";
|
|
16
|
-
import {
|
|
16
|
+
import { PackManifestSchema, PACK_MANIFEST_FILENAME, } from "../manifest-schema.js";
|
|
17
17
|
import { createRegistryClient } from "../../registry/index.js";
|
|
18
18
|
import { buildZipArchive, computeIntegrity } from "../../utils/index.js";
|
|
19
19
|
import { makeAppError } from "../../app-error/index.js";
|
|
20
20
|
import { WorkspaceMutations } from "../../workspace/service-interface.js";
|
|
21
|
-
import {
|
|
21
|
+
import { computePackPaths } from "../paths.js";
|
|
22
22
|
// -----------------------------------------------------------------------------
|
|
23
23
|
// Public API
|
|
24
24
|
// -----------------------------------------------------------------------------
|
|
25
25
|
/**
|
|
26
|
-
* Publish
|
|
26
|
+
* Publish pack operation handler.
|
|
27
27
|
*
|
|
28
|
-
* 1. Read and validate `
|
|
29
|
-
* 2. Build zip archive of
|
|
28
|
+
* 1. Read and validate `pack.json` manifest
|
|
29
|
+
* 2. Build zip archive of pack directory
|
|
30
30
|
* 3. Compute SRI integrity hash
|
|
31
31
|
* 4. Resolve target registry provider by source name
|
|
32
32
|
* 5. Publish version (idempotent: same integrity = no-op, different integrity = error)
|
|
33
33
|
*/
|
|
34
|
-
export const
|
|
34
|
+
export const publishPack = (op) => Effect.gen(function* () {
|
|
35
35
|
const fs = yield* FileSystem.FileSystem;
|
|
36
36
|
const path = yield* Path.Path;
|
|
37
37
|
const ws = yield* WorkspaceMutations;
|
|
38
38
|
const base = ws.baseDir;
|
|
39
39
|
const fqn = yield* parseFqn(op.args.name);
|
|
40
40
|
// Locate the managed pack directory
|
|
41
|
-
const packDir =
|
|
41
|
+
const packDir = computePackPaths(path.join, base, fqn.owner, fqn.name).canonicalPath;
|
|
42
42
|
const packDirExists = yield* fs.exists(packDir).pipe(Effect.orElseSucceed(() => false));
|
|
43
43
|
if (!packDirExists) {
|
|
44
44
|
return yield* makeAppError({
|
|
45
45
|
code: "not_found",
|
|
46
|
-
message: `Managed
|
|
46
|
+
message: `Managed pack not found: ${packDir}`,
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
// Read and validate manifest
|
|
50
|
-
const manifestPath = path.join(packDir,
|
|
50
|
+
const manifestPath = path.join(packDir, PACK_MANIFEST_FILENAME);
|
|
51
51
|
const manifestContent = yield* fs.readFileString(manifestPath).pipe(Effect.mapError((e) => makeAppError({
|
|
52
52
|
code: "internal",
|
|
53
53
|
message: `Failed to read manifest: ${manifestPath}`,
|
|
@@ -64,7 +64,7 @@ export const publishExtensionPack = (op) => Effect.gen(function* () {
|
|
|
64
64
|
cause: e,
|
|
65
65
|
}),
|
|
66
66
|
});
|
|
67
|
-
const manifest = yield* Schema.decodeUnknownEffect(
|
|
67
|
+
const manifest = yield* Schema.decodeUnknownEffect(PackManifestSchema)(manifestJson).pipe(Effect.mapError((e) => makeAppError({
|
|
68
68
|
code: "validation",
|
|
69
69
|
message: `Invalid manifest schema: ${manifestPath}`,
|
|
70
70
|
cause: e,
|
|
@@ -86,29 +86,18 @@ export const publishExtensionPack = (op) => Effect.gen(function* () {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
const client = yield* createRegistryClient(registrySource.value.location.href);
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
for (const fqn of Object.keys(candidates)) {
|
|
96
|
-
const constraint = candidates[fqn];
|
|
97
|
-
if (constraint !== undefined) {
|
|
98
|
-
dependencies[fqn] = constraint;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
addDependencies(manifest.skills);
|
|
103
|
-
addDependencies(manifest.commands);
|
|
104
|
-
addDependencies(manifest["mcp-servers"]);
|
|
105
|
-
addDependencies(manifest.subagents);
|
|
89
|
+
if (Object.keys(manifest.dependencies).length === 0) {
|
|
90
|
+
return yield* makeAppError({
|
|
91
|
+
code: "validation",
|
|
92
|
+
message: `Pack manifest must declare at least one dependency before publishing`,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
106
95
|
// Build version entry metadata
|
|
107
96
|
const versionEntry = {
|
|
108
97
|
version: manifest.version,
|
|
109
98
|
published: new Date().toISOString(),
|
|
110
99
|
integrity,
|
|
111
|
-
|
|
100
|
+
dependencies: manifest.dependencies,
|
|
112
101
|
};
|
|
113
102
|
// Publish to registry (idempotent)
|
|
114
103
|
yield* client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/publish.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KA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AAC;IACL,CAAC;IAED,+BAA+B;IAC/B,MAAM,YAAY,GAAiB;QACjC,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACnC,SAAS;QACT,YAAY,EAAE,QAAQ,CAAC,YAAY;KACpC,CAAC;IAEF,mCAAmC;IACnC,KAAK,CAAC,CAAC,MAAM;SACV,gBAAgB,CAAC;QAChB,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,OAAO;QACP,QAAQ,EAAE,YAAY;KACvB,CAAC;SACD,IAAI,CACH,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CACpB,YAAY,CAAC;QACX,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,mCAAmC;QAC5C,KAAK,EAAE,CAAC;KACT,CAAC,CACH,CACF,CAAC;IAEJ,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,aAAa,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,QAAQ,CAAC,OAAO,EAAE;KACjC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Remove-from-
|
|
2
|
+
* Remove-from-pack operation — applies a precomputed manifest-remove delta to a pack manifest.
|
|
3
3
|
*
|
|
4
4
|
* Validates manifest precondition (stale check) before writing.
|
|
5
5
|
*
|
|
@@ -12,9 +12,9 @@ import type { OperationHandler } from "../../plan/apply-plan.js";
|
|
|
12
12
|
import type { Operation } from "../../plan/plan.js";
|
|
13
13
|
import { WorkspaceMutations } from "../../workspace/service-interface.js";
|
|
14
14
|
/**
|
|
15
|
-
* Args for the remove-from-
|
|
15
|
+
* Args for the remove-from-pack operation.
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface RemoveFromPackOperationArgs {
|
|
18
18
|
/** Pack name (without owner). */
|
|
19
19
|
readonly packName: string;
|
|
20
20
|
/** Pack owner (e.g., "@myorg"). */
|
|
@@ -25,13 +25,13 @@ export interface RemoveFromExtensionPackOperationArgs {
|
|
|
25
25
|
readonly manifestHash: string;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Remove extensions from
|
|
28
|
+
* Remove extensions from a pack manifest.
|
|
29
29
|
*
|
|
30
30
|
* @experimental This API is unstable and may change without notice.
|
|
31
31
|
*/
|
|
32
|
-
export type
|
|
32
|
+
export type RemoveFromPackOperation = Operation<"remove-from-pack", RemoveFromPackOperationArgs>;
|
|
33
33
|
/**
|
|
34
|
-
* Remove-from-
|
|
34
|
+
* Remove-from-pack operation handler.
|
|
35
35
|
*
|
|
36
36
|
* 1. Short-circuit if removals list is empty (no-op)
|
|
37
37
|
* 2. Read current manifest and compute hash
|
|
@@ -39,5 +39,5 @@ export type RemoveFromExtensionPackOperation = Operation<"remove-from-pack", Rem
|
|
|
39
39
|
* 4. Apply removals to manifest
|
|
40
40
|
* 5. Write updated manifest
|
|
41
41
|
*/
|
|
42
|
-
export declare const
|
|
42
|
+
export declare const removeFromPack: OperationHandler<RemoveFromPackOperation, FileSystem.FileSystem | Path.Path | WorkspaceMutations>;
|
|
43
43
|
//# sourceMappingURL=remove-from-pack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-from-pack.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/remove-from-pack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"remove-from-pack.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/remove-from-pack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAS1E;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,iCAAiC;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,mCAAmC;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACzC,0DAA0D;IAC1D,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,kBAAkB,EAAE,2BAA2B,CAAC,CAAC;AAMjG;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,EAAE,gBAAgB,CAC3C,uBAAuB,EACvB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,CA8FpD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Remove-from-
|
|
2
|
+
* Remove-from-pack operation — applies a precomputed manifest-remove delta to a pack manifest.
|
|
3
3
|
*
|
|
4
4
|
* Validates manifest precondition (stale check) before writing.
|
|
5
5
|
*
|
|
@@ -11,14 +11,14 @@ import * as Effect from "effect/Effect";
|
|
|
11
11
|
import * as Schema from "effect/Schema";
|
|
12
12
|
import { makeAppError } from "../../app-error/index.js";
|
|
13
13
|
import { WorkspaceMutations } from "../../workspace/service-interface.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { PACK_MANIFEST_FILENAME, PackManifestSchema } from "../manifest-schema.js";
|
|
15
|
+
import { computePackPaths } from "../paths.js";
|
|
16
16
|
import { hashContent } from "./hash-content.js";
|
|
17
17
|
// -----------------------------------------------------------------------------
|
|
18
18
|
// Public API
|
|
19
19
|
// -----------------------------------------------------------------------------
|
|
20
20
|
/**
|
|
21
|
-
* Remove-from-
|
|
21
|
+
* Remove-from-pack operation handler.
|
|
22
22
|
*
|
|
23
23
|
* 1. Short-circuit if removals list is empty (no-op)
|
|
24
24
|
* 2. Read current manifest and compute hash
|
|
@@ -26,7 +26,7 @@ import { hashContent } from "./hash-content.js";
|
|
|
26
26
|
* 4. Apply removals to manifest
|
|
27
27
|
* 5. Write updated manifest
|
|
28
28
|
*/
|
|
29
|
-
export const
|
|
29
|
+
export const removeFromPack = (op) => Effect.gen(function* () {
|
|
30
30
|
const fs = yield* FileSystem.FileSystem;
|
|
31
31
|
const path = yield* Path.Path;
|
|
32
32
|
const ws = yield* WorkspaceMutations;
|
|
@@ -37,14 +37,12 @@ export const removeFromExtensionPack = (op) => Effect.gen(function* () {
|
|
|
37
37
|
return { result: "success", message: "Nothing to remove" };
|
|
38
38
|
}
|
|
39
39
|
// 2. Read current manifest
|
|
40
|
-
const packDir =
|
|
41
|
-
const manifestPath = path.join(packDir.canonicalPath,
|
|
40
|
+
const packDir = computePackPaths(path.join, base, packOwner, packName);
|
|
41
|
+
const manifestPath = path.join(packDir.canonicalPath, PACK_MANIFEST_FILENAME);
|
|
42
42
|
const manifestContent = yield* fs.readFileString(manifestPath).pipe(Effect.mapError((e) => makeAppError({
|
|
43
43
|
code: "not_found",
|
|
44
|
-
message: `
|
|
45
|
-
breadcrumbs: [
|
|
46
|
-
{ task: "Recover", description: "Ensure the extension pack exists on disk" },
|
|
47
|
-
],
|
|
44
|
+
message: `Pack manifest not found at ${manifestPath}`,
|
|
45
|
+
breadcrumbs: [{ task: "Recover", description: "Ensure the pack exists on disk" }],
|
|
48
46
|
cause: e,
|
|
49
47
|
})));
|
|
50
48
|
// 3. Stale-check: compare content hash
|
|
@@ -52,7 +50,7 @@ export const removeFromExtensionPack = (op) => Effect.gen(function* () {
|
|
|
52
50
|
if (currentHash !== manifestHash) {
|
|
53
51
|
return yield* makeAppError({
|
|
54
52
|
code: "conflict",
|
|
55
|
-
message: `
|
|
53
|
+
message: `Pack manifest is stale — it was modified since the plan was created`,
|
|
56
54
|
breadcrumbs: [
|
|
57
55
|
{ task: "Recover", description: "Re-run the command to create a fresh plan" },
|
|
58
56
|
],
|
|
@@ -66,39 +64,34 @@ export const removeFromExtensionPack = (op) => Effect.gen(function* () {
|
|
|
66
64
|
},
|
|
67
65
|
catch: (e) => makeAppError({
|
|
68
66
|
code: "validation",
|
|
69
|
-
message: `Failed to parse
|
|
67
|
+
message: `Failed to parse pack manifest: ${manifestPath}`,
|
|
70
68
|
cause: e,
|
|
71
69
|
}),
|
|
72
70
|
});
|
|
73
|
-
const manifest = yield* Schema.decodeUnknownEffect(
|
|
71
|
+
const manifest = yield* Schema.decodeUnknownEffect(PackManifestSchema)(json).pipe(Effect.mapError((e) => makeAppError({
|
|
74
72
|
code: "validation",
|
|
75
|
-
message: `Invalid
|
|
73
|
+
message: `Invalid pack manifest: ${manifestPath}`,
|
|
76
74
|
cause: e,
|
|
77
75
|
})));
|
|
78
76
|
const removalSet = new Set(removals);
|
|
79
|
-
const
|
|
80
|
-
const updatedSkills = filterSection(manifest["skills"]);
|
|
81
|
-
const updatedCommands = filterSection(manifest["commands"]);
|
|
82
|
-
const updatedMcpServers = filterSection(manifest["mcp-servers"]);
|
|
77
|
+
const dependencies = Object.fromEntries(Object.entries(manifest.dependencies).filter(([name]) => !removalSet.has(name)));
|
|
83
78
|
const updatedManifest = {
|
|
84
79
|
...manifest,
|
|
85
80
|
owner: manifest.owner,
|
|
86
81
|
type: manifest.type,
|
|
87
82
|
name: manifest.name,
|
|
88
83
|
version: manifest.version,
|
|
89
|
-
|
|
90
|
-
commands: updatedCommands,
|
|
91
|
-
"mcp-servers": updatedMcpServers,
|
|
84
|
+
dependencies,
|
|
92
85
|
};
|
|
93
86
|
// 5. Write updated manifest
|
|
94
87
|
yield* fs.writeFileString(manifestPath, JSON.stringify(updatedManifest, null, 2) + "\n").pipe(Effect.mapError((e) => makeAppError({
|
|
95
88
|
code: "internal",
|
|
96
|
-
message: `Failed to write
|
|
89
|
+
message: `Failed to write pack manifest: ${manifestPath}`,
|
|
97
90
|
cause: e,
|
|
98
91
|
})));
|
|
99
92
|
return {
|
|
100
93
|
result: "success",
|
|
101
|
-
message: `Removed ${removals.length} extension(s) from
|
|
94
|
+
message: `Removed ${removals.length} extension(s) from pack`,
|
|
102
95
|
};
|
|
103
96
|
});
|
|
104
97
|
//# sourceMappingURL=remove-from-pack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-from-pack.js","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/remove-from-pack.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,
|
|
1
|
+
{"version":3,"file":"remove-from-pack.js","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/remove-from-pack.ts"],"names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@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Uninstall
|
|
2
|
+
* Uninstall pack operation handler.
|
|
3
3
|
*
|
|
4
|
-
* Removes
|
|
4
|
+
* Removes pack directory from disk and pack entry from settings/lockfile.
|
|
5
5
|
* Skill removal is delegated to uninstall-skill operations in the plan.
|
|
6
6
|
*
|
|
7
7
|
* @experimental This API is unstable and may change without notice.
|
|
@@ -13,24 +13,24 @@ import type { OperationHandler } from "../../plan/apply-plan.js";
|
|
|
13
13
|
import type { Operation } from "../../plan/plan.js";
|
|
14
14
|
import { WorkspaceMutations } from "../../workspace/service-interface.js";
|
|
15
15
|
/**
|
|
16
|
-
* Args for the uninstall
|
|
16
|
+
* Args for the uninstall pack operation.
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface UninstallPackOperationArgs {
|
|
19
19
|
/** Pack name to uninstall */
|
|
20
20
|
readonly packName: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Remove
|
|
23
|
+
* Remove a pack from the workspace.
|
|
24
24
|
*
|
|
25
25
|
* @experimental This API is unstable and may change without notice.
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
27
|
+
export type UninstallPackOperation = Operation<"uninstall-pack", UninstallPackOperationArgs>;
|
|
28
28
|
/**
|
|
29
|
-
* Uninstall
|
|
29
|
+
* Uninstall pack operation handler.
|
|
30
30
|
*
|
|
31
|
-
* 1. Look up
|
|
32
|
-
* 2. Remove
|
|
33
|
-
* 3. Remove
|
|
31
|
+
* 1. Look up pack in lockfile
|
|
32
|
+
* 2. Remove pack directory from disk
|
|
33
|
+
* 3. Remove pack from settings and lockfile
|
|
34
34
|
*/
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const uninstallPack: OperationHandler<UninstallPackOperation, FileSystem.FileSystem | Path.Path | WorkspaceMutations | CliRenderer>;
|
|
36
36
|
//# sourceMappingURL=uninstall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAU1E;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/packs/operations/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAU1E;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,6BAA6B;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,gBAAgB,EAAE,0BAA0B,CAAC,CAAC;AAE7F;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,gBAAgB,CAC1C,sBAAsB,EACtB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,GAAG,WAAW,CAyFnE,CAAC"}
|