@agentxm/client-core 0.13.1 → 0.13.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/agent-capabilities/__generated__/catalog.d.ts +48 -0
- package/dist/src/unstable/agent-capabilities/__generated__/catalog.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/__generated__/catalog.js +62 -0
- package/dist/src/unstable/agent-capabilities/__generated__/catalog.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/derive.d.ts +21 -3
- package/dist/src/unstable/agent-capabilities/derive.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/derive.js +5 -2
- package/dist/src/unstable/agent-capabilities/derive.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/schema.d.ts +45 -2
- package/dist/src/unstable/agent-capabilities/schema.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/schema.js +18 -0
- package/dist/src/unstable/agent-capabilities/schema.js.map +1 -1
- package/dist/src/unstable/agent-capabilities/validate.d.ts.map +1 -1
- package/dist/src/unstable/agent-capabilities/validate.js +2 -0
- package/dist/src/unstable/agent-capabilities/validate.js.map +1 -1
- package/dist/src/unstable/agents/instructions.js +1 -1
- package/dist/src/unstable/agents/instructions.js.map +1 -1
- package/dist/src/unstable/branding/naming.d.ts +11 -5
- package/dist/src/unstable/branding/naming.d.ts.map +1 -1
- package/dist/src/unstable/branding/naming.js +15 -7
- package/dist/src/unstable/branding/naming.js.map +1 -1
- package/dist/src/unstable/cli-runtime/command-summary.d.ts +1 -1
- package/dist/src/unstable/cli-runtime/command-summary.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/command-summary.js.map +1 -1
- package/dist/src/unstable/extensions/common.d.ts +6 -6
- package/dist/src/unstable/extensions/common.d.ts.map +1 -1
- package/dist/src/unstable/extensions/common.js +22 -13
- package/dist/src/unstable/extensions/common.js.map +1 -1
- package/dist/src/unstable/extensions/fqn.js +1 -1
- package/dist/src/unstable/extensions/fqn.js.map +1 -1
- package/dist/src/unstable/extensions/installable-types.d.ts +4 -4
- package/dist/src/unstable/extensions/installable-types.d.ts.map +1 -1
- package/dist/src/unstable/extensions/installable-types.js +12 -4
- package/dist/src/unstable/extensions/installable-types.js.map +1 -1
- package/dist/src/unstable/extensions/operations.d.ts.map +1 -1
- package/dist/src/unstable/extensions/operations.js +6 -2
- package/dist/src/unstable/extensions/operations.js.map +1 -1
- package/dist/src/unstable/extensions/ref-base.d.ts +1 -1
- package/dist/src/unstable/extensions/ref-base.d.ts.map +1 -1
- package/dist/src/unstable/extensions/refs.d.ts +4 -2
- package/dist/src/unstable/extensions/refs.d.ts.map +1 -1
- package/dist/src/unstable/extensions/registry-source.d.ts +4 -4
- package/dist/src/unstable/extensions/utils.js +1 -1
- package/dist/src/unstable/files/discovery.d.ts +19 -0
- package/dist/src/unstable/files/discovery.d.ts.map +1 -0
- package/dist/src/unstable/{docs → files}/discovery.js +18 -11
- package/dist/src/unstable/files/discovery.js.map +1 -0
- package/dist/src/unstable/{docs → files}/generators.d.ts +1 -1
- package/dist/src/unstable/files/generators.d.ts.map +1 -0
- package/dist/src/unstable/{docs → files}/generators.js +1 -1
- package/dist/src/unstable/files/generators.js.map +1 -0
- package/dist/src/unstable/files/index.d.ts +15 -0
- package/dist/src/unstable/files/index.d.ts.map +1 -0
- package/dist/src/unstable/{docs → files}/index.js +4 -4
- package/dist/src/unstable/files/index.js.map +1 -0
- package/dist/src/unstable/files/manager.d.ts +19 -0
- package/dist/src/unstable/files/manager.d.ts.map +1 -0
- package/dist/src/unstable/{docs → files}/manager.js +56 -54
- package/dist/src/unstable/files/manager.js.map +1 -0
- package/dist/src/unstable/{docs → files}/manifest-schema.d.ts +17 -17
- package/dist/src/unstable/files/manifest-schema.d.ts.map +1 -0
- package/dist/src/unstable/{docs → files}/manifest-schema.js +48 -48
- package/dist/src/unstable/files/manifest-schema.js.map +1 -0
- package/dist/src/unstable/files/markers.d.ts +7 -0
- package/dist/src/unstable/files/markers.d.ts.map +1 -0
- package/dist/src/unstable/files/markers.js +7 -0
- package/dist/src/unstable/files/markers.js.map +1 -0
- package/dist/src/unstable/{docs → files}/materialization.d.ts +8 -8
- package/dist/src/unstable/files/materialization.d.ts.map +1 -0
- package/dist/src/unstable/{docs → files}/materialization.js +24 -24
- package/dist/src/unstable/files/materialization.js.map +1 -0
- package/dist/src/unstable/files/refs.d.ts +17 -0
- package/dist/src/unstable/files/refs.d.ts.map +1 -0
- package/dist/src/unstable/files/refs.js +8 -0
- package/dist/src/unstable/files/refs.js.map +1 -0
- package/dist/src/unstable/files/workspace-generators.d.ts.map +1 -0
- package/dist/src/unstable/files/workspace-generators.js.map +1 -0
- package/dist/src/unstable/hooks/discovery.d.ts +19 -0
- package/dist/src/unstable/hooks/discovery.d.ts.map +1 -0
- package/dist/src/unstable/hooks/discovery.js +101 -0
- package/dist/src/unstable/hooks/discovery.js.map +1 -0
- package/dist/src/unstable/hooks/index.d.ts +13 -0
- package/dist/src/unstable/hooks/index.d.ts.map +1 -0
- package/dist/src/unstable/hooks/index.js +11 -0
- package/dist/src/unstable/hooks/index.js.map +1 -0
- package/dist/src/unstable/{docs → hooks}/manager.d.ts +6 -6
- package/dist/src/unstable/hooks/manager.d.ts.map +1 -0
- package/dist/src/unstable/hooks/manager.js +512 -0
- package/dist/src/unstable/hooks/manager.js.map +1 -0
- package/dist/src/unstable/hooks/manifest-schema.d.ts +94 -0
- package/dist/src/unstable/hooks/manifest-schema.d.ts.map +1 -0
- package/dist/src/unstable/hooks/manifest-schema.js +85 -0
- package/dist/src/unstable/hooks/manifest-schema.js.map +1 -0
- package/dist/src/unstable/hooks/operations/publish.d.ts +22 -0
- package/dist/src/unstable/hooks/operations/publish.d.ts.map +1 -0
- package/dist/src/unstable/hooks/operations/publish.js +95 -0
- package/dist/src/unstable/hooks/operations/publish.js.map +1 -0
- package/dist/src/unstable/hooks/refs.d.ts +25 -0
- package/dist/src/unstable/hooks/refs.d.ts.map +1 -0
- package/dist/src/unstable/{docs → hooks}/refs.js +1 -1
- package/dist/src/unstable/hooks/refs.js.map +1 -0
- package/dist/src/unstable/hooks/registry-ref-builder.d.ts +7 -0
- package/dist/src/unstable/hooks/registry-ref-builder.d.ts.map +1 -0
- package/dist/src/unstable/hooks/registry-ref-builder.js +13 -0
- package/dist/src/unstable/hooks/registry-ref-builder.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files/generator-valid.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/files/generator-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/{docs → files}/generator-valid.js +6 -6
- package/dist/src/unstable/lint/catalog/files/generator-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/{docs → files}/helpers.d.ts +6 -6
- package/dist/src/unstable/lint/catalog/files/helpers.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/{docs → files}/helpers.js +7 -7
- package/dist/src/unstable/lint/catalog/files/helpers.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files/manifest-keys-recognized.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/files/manifest-keys-recognized.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/files/manifest-keys-recognized.js +14 -0
- package/dist/src/unstable/lint/catalog/files/manifest-keys-recognized.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files/manifest-present.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/files/manifest-present.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/files/manifest-present.js +24 -0
- package/dist/src/unstable/lint/catalog/files/manifest-present.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files/manifest-schema-valid.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/files/manifest-schema-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/files/manifest-schema-valid.js +12 -0
- package/dist/src/unstable/lint/catalog/files/manifest-schema-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files/marker-valid.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/files/marker-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/{docs → files}/marker-valid.js +6 -6
- package/dist/src/unstable/lint/catalog/files/marker-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files/package-valid.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/files/package-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/{docs → files}/package-valid.js +9 -9
- package/dist/src/unstable/lint/catalog/files/package-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files/target-valid.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/files/target-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/{docs → files}/target-valid.js +6 -6
- package/dist/src/unstable/lint/catalog/files/target-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files/template-valid.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/files/template-valid.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/{docs → files}/template-valid.js +7 -7
- package/dist/src/unstable/lint/catalog/files/template-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files-accessor/contexts.d.ts +10 -0
- package/dist/src/unstable/lint/catalog/files-accessor/contexts.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/files-accessor/contexts.js +8 -0
- package/dist/src/unstable/lint/catalog/files-accessor/contexts.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files-accessor/platform.d.ts +9 -0
- package/dist/src/unstable/lint/catalog/files-accessor/platform.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/{docs-accessor → files-accessor}/platform.js +1 -1
- package/dist/src/unstable/lint/catalog/files-accessor/platform.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files-accessor/vft.d.ts +8 -0
- package/dist/src/unstable/lint/catalog/files-accessor/vft.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/{docs-accessor → files-accessor}/vft.js +1 -1
- package/dist/src/unstable/lint/catalog/files-accessor/vft.js.map +1 -0
- package/dist/src/unstable/lint/catalog/files.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/files.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/files.js +21 -0
- package/dist/src/unstable/lint/catalog/files.js.map +1 -0
- package/dist/src/unstable/lint/catalog/hook/entrypoint-exists.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook/entrypoint-exists.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/hook/entrypoint-exists.js +39 -0
- package/dist/src/unstable/lint/catalog/hook/entrypoint-exists.js.map +1 -0
- package/dist/src/unstable/lint/catalog/hook/manifest-keys-recognized.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/{docs → hook}/manifest-keys-recognized.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/hook/manifest-keys-recognized.js +13 -0
- package/dist/src/unstable/lint/catalog/hook/manifest-keys-recognized.js.map +1 -0
- package/dist/src/unstable/lint/catalog/hook/manifest-present.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook/manifest-present.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/hook/manifest-present.js +24 -0
- package/dist/src/unstable/lint/catalog/hook/manifest-present.js.map +1 -0
- package/dist/src/unstable/lint/catalog/hook/manifest-schema-valid.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/{docs → hook}/manifest-schema-valid.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/hook/manifest-schema-valid.js +11 -0
- package/dist/src/unstable/lint/catalog/hook/manifest-schema-valid.js.map +1 -0
- package/dist/src/unstable/lint/catalog/hook.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/hook.js +13 -0
- package/dist/src/unstable/lint/catalog/hook.js.map +1 -0
- package/dist/src/unstable/lint/catalog/index.d.ts +5 -4
- package/dist/src/unstable/lint/catalog/index.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/index.js +9 -6
- package/dist/src/unstable/lint/catalog/index.js.map +1 -1
- package/dist/src/unstable/lint/catalog/shared/manifest-json.js +1 -1
- package/dist/src/unstable/lint/catalog/shared/manifest-json.js.map +1 -1
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js +3 -1
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace/skills-managed.js +1 -1
- package/dist/src/unstable/lint/catalog/workspace/skills-managed.js.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.d.ts +2 -2
- package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js +18 -18
- package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js.map +1 -1
- package/dist/src/unstable/lint/cli.d.ts +4 -4
- package/dist/src/unstable/lint/cli.d.ts.map +1 -1
- package/dist/src/unstable/lint/cli.js +6 -6
- package/dist/src/unstable/lint/cli.js.map +1 -1
- package/dist/src/unstable/lint/context.d.ts +17 -5
- package/dist/src/unstable/lint/context.d.ts.map +1 -1
- package/dist/src/unstable/lint/index.d.ts +2 -2
- package/dist/src/unstable/lint/index.d.ts.map +1 -1
- package/dist/src/unstable/lint/index.js +1 -1
- package/dist/src/unstable/lint/index.js.map +1 -1
- package/dist/src/unstable/lint/publish.d.ts +5 -4
- package/dist/src/unstable/lint/publish.d.ts.map +1 -1
- package/dist/src/unstable/lint/publish.js +28 -18
- package/dist/src/unstable/lint/publish.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.d.ts +235 -3
- package/dist/src/unstable/lockfile/lockfile.d.ts.map +1 -1
- package/dist/src/unstable/lockfile/lockfile.js +1 -1
- package/dist/src/unstable/lockfile/schema.d.ts +758 -14
- package/dist/src/unstable/lockfile/schema.d.ts.map +1 -1
- package/dist/src/unstable/lockfile/schema.js +62 -20
- package/dist/src/unstable/lockfile/schema.js.map +1 -1
- package/dist/src/unstable/managed-files/index.d.ts +7 -0
- package/dist/src/unstable/managed-files/index.d.ts.map +1 -0
- package/dist/src/unstable/managed-files/index.js +7 -0
- package/dist/src/unstable/managed-files/index.js.map +1 -0
- package/dist/src/unstable/{docs → managed-files}/markers.d.ts +1 -1
- package/dist/src/unstable/managed-files/markers.d.ts.map +1 -0
- package/dist/src/unstable/{docs → managed-files}/markers.js +1 -1
- package/dist/src/unstable/managed-files/markers.js.map +1 -0
- package/dist/src/unstable/packs/dependency-resolution.d.ts +3 -1
- package/dist/src/unstable/packs/dependency-resolution.d.ts.map +1 -1
- package/dist/src/unstable/packs/dependency-resolution.js +22 -7
- package/dist/src/unstable/packs/dependency-resolution.js.map +1 -1
- package/dist/src/unstable/packs/expansion.d.ts +3 -1
- package/dist/src/unstable/packs/expansion.d.ts.map +1 -1
- package/dist/src/unstable/packs/expansion.js +35 -5
- package/dist/src/unstable/packs/expansion.js.map +1 -1
- package/dist/src/unstable/packs/manager.d.ts.map +1 -1
- package/dist/src/unstable/packs/manager.js +3 -1
- package/dist/src/unstable/packs/manager.js.map +1 -1
- package/dist/src/unstable/packs/manifest-schema.js +1 -1
- package/dist/src/unstable/packs/manifest-schema.js.map +1 -1
- package/dist/src/unstable/packs/operations/install.d.ts +4 -0
- package/dist/src/unstable/packs/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/install.js +7 -1
- package/dist/src/unstable/packs/operations/install.js.map +1 -1
- package/dist/src/unstable/packs/reconciliation-adapter.d.ts.map +1 -1
- package/dist/src/unstable/packs/reconciliation-adapter.js +4 -2
- package/dist/src/unstable/packs/reconciliation-adapter.js.map +1 -1
- package/dist/src/unstable/publish/lint-gate.d.ts +5 -0
- package/dist/src/unstable/publish/lint-gate.d.ts.map +1 -1
- package/dist/src/unstable/publish/lint-gate.js +12 -1
- package/dist/src/unstable/publish/lint-gate.js.map +1 -1
- package/dist/src/unstable/publish/manifest-policy.d.ts +54 -2
- package/dist/src/unstable/publish/manifest-policy.d.ts.map +1 -1
- package/dist/src/unstable/publish/manifest-policy.js +10 -5
- package/dist/src/unstable/publish/manifest-policy.js.map +1 -1
- package/dist/src/unstable/registry/discover-schema.d.ts +4 -4
- package/dist/src/unstable/registry/schema.d.ts +1 -1
- package/dist/src/unstable/rules/discovery.d.ts +19 -0
- package/dist/src/unstable/rules/discovery.d.ts.map +1 -0
- package/dist/src/unstable/rules/discovery.js +101 -0
- package/dist/src/unstable/rules/discovery.js.map +1 -0
- package/dist/src/unstable/rules/index.d.ts +11 -0
- package/dist/src/unstable/rules/index.d.ts.map +1 -0
- package/dist/src/unstable/rules/index.js +10 -0
- package/dist/src/unstable/rules/index.js.map +1 -0
- package/dist/src/unstable/rules/manager.d.ts +19 -0
- package/dist/src/unstable/rules/manager.d.ts.map +1 -0
- package/dist/src/unstable/rules/manager.js +400 -0
- package/dist/src/unstable/rules/manager.js.map +1 -0
- package/dist/src/unstable/rules/manifest-schema.d.ts +62 -0
- package/dist/src/unstable/rules/manifest-schema.d.ts.map +1 -0
- package/dist/src/unstable/rules/manifest-schema.js +43 -0
- package/dist/src/unstable/rules/manifest-schema.js.map +1 -0
- package/dist/src/unstable/rules/refs.d.ts +25 -0
- package/dist/src/unstable/rules/refs.d.ts.map +1 -0
- package/dist/src/unstable/rules/refs.js +8 -0
- package/dist/src/unstable/rules/refs.js.map +1 -0
- package/dist/src/unstable/rules/registry-ref-builder.d.ts +7 -0
- package/dist/src/unstable/rules/registry-ref-builder.d.ts.map +1 -0
- package/dist/src/unstable/rules/registry-ref-builder.js +13 -0
- package/dist/src/unstable/rules/registry-ref-builder.js.map +1 -0
- 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 +116 -12
- package/dist/src/unstable/settings/schema.d.ts.map +1 -1
- package/dist/src/unstable/settings/schema.js +170 -32
- package/dist/src/unstable/settings/schema.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/bitbucket/print.js +1 -1
- package/dist/src/unstable/source-resolution/providers/bitbucket/print.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/convention-discovery.d.ts +10 -0
- package/dist/src/unstable/source-resolution/providers/convention-discovery.d.ts.map +1 -0
- package/dist/src/unstable/source-resolution/providers/convention-discovery.js +388 -0
- package/dist/src/unstable/source-resolution/providers/convention-discovery.js.map +1 -0
- package/dist/src/unstable/source-resolution/providers/git-hosting.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/git-hosting.js +4 -71
- package/dist/src/unstable/source-resolution/providers/git-hosting.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/git.d.ts +5 -4
- package/dist/src/unstable/source-resolution/providers/git.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/git.js +28 -11
- package/dist/src/unstable/source-resolution/providers/git.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/github/print.js +1 -1
- package/dist/src/unstable/source-resolution/providers/github/print.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/gitlab/print.js +1 -1
- package/dist/src/unstable/source-resolution/providers/gitlab/print.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 +6 -50
- 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 +34 -11
- 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.map +1 -1
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.js +24 -4
- package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-source.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/resolve-source.js +29 -7
- package/dist/src/unstable/source-resolution/resolve-source.js.map +1 -1
- package/dist/src/unstable/sources/printer.d.ts +2 -2
- package/dist/src/unstable/sources/printer.d.ts.map +1 -1
- package/dist/src/unstable/sources/types.d.ts +1 -0
- package/dist/src/unstable/sources/types.d.ts.map +1 -1
- package/dist/src/unstable/sources/types.js +16 -2
- package/dist/src/unstable/sources/types.js.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/index.d.ts +2 -2
- package/dist/src/unstable/workspace/configured-entry-resolution/index.d.ts.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/index.js +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/index.js.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts +13 -3
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js +109 -9
- package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/types.d.ts +6 -2
- package/dist/src/unstable/workspace/configured-entry-resolution/types.d.ts.map +1 -1
- package/dist/src/unstable/workspace/configured-entry-resolution/types.js.map +1 -1
- package/dist/src/unstable/workspace/index.d.ts +2 -2
- package/dist/src/unstable/workspace/index.d.ts.map +1 -1
- package/dist/src/unstable/workspace/index.js +1 -1
- package/dist/src/unstable/workspace/index.js.map +1 -1
- package/dist/src/unstable/workspace/initialization.d.ts +96 -40
- package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/discovery/skills.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/discovery/skills.js +8 -1
- package/dist/src/unstable/workspace/read-model/discovery/skills.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/files.d.ts +93 -0
- package/dist/src/unstable/workspace/read-model/extensions/files.d.ts.map +1 -0
- package/dist/src/unstable/workspace/read-model/extensions/{docs.js → files.js} +21 -21
- package/dist/src/unstable/workspace/read-model/extensions/files.js.map +1 -0
- package/dist/src/unstable/workspace/read-model/extensions/index.d.ts +2 -2
- package/dist/src/unstable/workspace/read-model/extensions/index.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/index.js +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/index.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/rule.d.ts +29 -6
- package/dist/src/unstable/workspace/read-model/extensions/rule.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/rule.js +38 -28
- package/dist/src/unstable/workspace/read-model/extensions/rule.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js +4 -2
- package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/service.d.ts +2 -2
- package/dist/src/unstable/workspace/read-model/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/service.js +16 -6
- package/dist/src/unstable/workspace/read-model/service.js.map +1 -1
- package/dist/src/unstable/workspace/read-model-record-readers.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model-record-readers.js +56 -5
- package/dist/src/unstable/workspace/read-model-record-readers.js.map +1 -1
- package/dist/src/unstable/workspace/service-interface.d.ts +90 -26
- 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 +502 -14
- package/dist/src/unstable/workspace/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/service.js +318 -42
- package/dist/src/unstable/workspace/service.js.map +1 -1
- package/dist/src/unstable/workspace/test-stubs.d.ts +2 -0
- package/dist/src/unstable/workspace/test-stubs.d.ts.map +1 -1
- package/dist/src/unstable/workspace/test-stubs.js +32 -10
- package/dist/src/unstable/workspace/test-stubs.js.map +1 -1
- package/package.json +17 -5
- package/site-content/__generated__/schemas/axm-lock.schema.json +555 -136
- package/site-content/__generated__/schemas/axm-package-meta.schema.json +1 -1
- package/site-content/__generated__/schemas/{docs.schema.json → files.schema.json} +44 -44
- package/site-content/__generated__/schemas/hook.schema.json +375 -0
- package/site-content/__generated__/schemas/pack.schema.json +3 -3
- package/site-content/__generated__/schemas/rule.schema.json +327 -0
- package/site-content/__generated__/schemas/settings.schema.json +138 -28
- package/dist/src/unstable/docs/discovery.d.ts +0 -19
- package/dist/src/unstable/docs/discovery.d.ts.map +0 -1
- package/dist/src/unstable/docs/discovery.js.map +0 -1
- package/dist/src/unstable/docs/generators.d.ts.map +0 -1
- package/dist/src/unstable/docs/generators.js.map +0 -1
- package/dist/src/unstable/docs/index.d.ts +0 -15
- package/dist/src/unstable/docs/index.d.ts.map +0 -1
- package/dist/src/unstable/docs/index.js.map +0 -1
- package/dist/src/unstable/docs/manager.d.ts.map +0 -1
- package/dist/src/unstable/docs/manager.js.map +0 -1
- package/dist/src/unstable/docs/manifest-schema.d.ts.map +0 -1
- package/dist/src/unstable/docs/manifest-schema.js.map +0 -1
- package/dist/src/unstable/docs/markers.d.ts.map +0 -1
- package/dist/src/unstable/docs/markers.js.map +0 -1
- package/dist/src/unstable/docs/materialization.d.ts.map +0 -1
- package/dist/src/unstable/docs/materialization.js.map +0 -1
- package/dist/src/unstable/docs/refs.d.ts +0 -17
- package/dist/src/unstable/docs/refs.d.ts.map +0 -1
- package/dist/src/unstable/docs/refs.js.map +0 -1
- package/dist/src/unstable/docs/workspace-generators.d.ts.map +0 -1
- package/dist/src/unstable/docs/workspace-generators.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/generator-valid.d.ts +0 -4
- package/dist/src/unstable/lint/catalog/docs/generator-valid.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/generator-valid.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/helpers.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/helpers.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/manifest-keys-recognized.d.ts +0 -4
- package/dist/src/unstable/lint/catalog/docs/manifest-keys-recognized.js +0 -14
- package/dist/src/unstable/lint/catalog/docs/manifest-keys-recognized.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/manifest-present.d.ts +0 -4
- package/dist/src/unstable/lint/catalog/docs/manifest-present.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/manifest-present.js +0 -24
- package/dist/src/unstable/lint/catalog/docs/manifest-present.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/manifest-schema-valid.d.ts +0 -4
- package/dist/src/unstable/lint/catalog/docs/manifest-schema-valid.js +0 -12
- package/dist/src/unstable/lint/catalog/docs/manifest-schema-valid.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/marker-valid.d.ts +0 -4
- package/dist/src/unstable/lint/catalog/docs/marker-valid.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/marker-valid.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/package-valid.d.ts +0 -4
- package/dist/src/unstable/lint/catalog/docs/package-valid.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/package-valid.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/target-valid.d.ts +0 -4
- package/dist/src/unstable/lint/catalog/docs/target-valid.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/target-valid.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/template-valid.d.ts +0 -4
- package/dist/src/unstable/lint/catalog/docs/template-valid.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs/template-valid.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs-accessor/contexts.d.ts +0 -10
- package/dist/src/unstable/lint/catalog/docs-accessor/contexts.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs-accessor/contexts.js +0 -8
- package/dist/src/unstable/lint/catalog/docs-accessor/contexts.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs-accessor/platform.d.ts +0 -9
- package/dist/src/unstable/lint/catalog/docs-accessor/platform.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs-accessor/platform.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs-accessor/vft.d.ts +0 -8
- package/dist/src/unstable/lint/catalog/docs-accessor/vft.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs-accessor/vft.js.map +0 -1
- package/dist/src/unstable/lint/catalog/docs.d.ts +0 -4
- package/dist/src/unstable/lint/catalog/docs.d.ts.map +0 -1
- package/dist/src/unstable/lint/catalog/docs.js +0 -21
- package/dist/src/unstable/lint/catalog/docs.js.map +0 -1
- package/dist/src/unstable/workspace/read-model/extensions/docs.d.ts +0 -93
- package/dist/src/unstable/workspace/read-model/extensions/docs.d.ts.map +0 -1
- package/dist/src/unstable/workspace/read-model/extensions/docs.js.map +0 -1
- /package/dist/src/unstable/{docs → files}/workspace-generators.d.ts +0 -0
- /package/dist/src/unstable/{docs → files}/workspace-generators.js +0 -0
|
@@ -262,40 +262,40 @@ export const loadWorkspace = (options) => Effect.gen(function* () {
|
|
|
262
262
|
yield* writeSettings(workspaceDir, updatedSettings).pipe(Effect.provide(fsLayer));
|
|
263
263
|
})).pipe(Effect.withSpan("WorkspaceMutations.setInstructionsConfig")),
|
|
264
264
|
getConfiguredMcpServerEntries: () => readSettingsSafe(workspaceDir).pipe(Effect.map((s) => s.mcpServers ?? {}), Effect.withSpan("WorkspaceMutations.getConfiguredMcpServerEntries")),
|
|
265
|
-
|
|
265
|
+
getConfiguredFilesEntries: () => readSettingsSafe(workspaceDir).pipe(Effect.map((s) => s.files ?? {}), Effect.withSpan("WorkspaceMutations.getConfiguredFilesEntries")),
|
|
266
266
|
getWorkspaceVars: () => readSettingsSafe(workspaceDir).pipe(Effect.map((s) => s.vars ?? {}), Effect.withSpan("WorkspaceMutations.getWorkspaceVars")),
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
getLockedFiles: () => readLockfileSafe(workspaceDir).pipe(Effect.map((lf) => lf.files ?? {})),
|
|
268
|
+
getLockedFilesEntry: (name) => readLockfileSafe(workspaceDir).pipe(Effect.map((lf) => Option.fromUndefinedOr((lf.files ?? {})[name]))),
|
|
269
|
+
setFiles: ({ name, lockEntry, versionRange }) => withMutex(Effect.gen(function* () {
|
|
270
270
|
const source = lockEntry.type === "registry"
|
|
271
271
|
? (() => {
|
|
272
272
|
const fqn = formatFqn({
|
|
273
273
|
owner: lockEntry.owner,
|
|
274
|
-
type: "
|
|
274
|
+
type: "files",
|
|
275
275
|
name: decodeExtensionNameSync(name),
|
|
276
276
|
});
|
|
277
277
|
return Option.isSome(versionRange) ? `${fqn}@${versionRange.value}` : fqn;
|
|
278
278
|
})()
|
|
279
279
|
: printSourceParams(lockEntryToSourceParams(lockEntry));
|
|
280
280
|
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
281
|
-
const currentContext = currentSettings.
|
|
281
|
+
const currentContext = currentSettings.files ?? {};
|
|
282
282
|
const currentEntry = currentContext[name];
|
|
283
283
|
const authored = currentEntry?.authored ?? false;
|
|
284
284
|
const inputs = currentEntry?.inputs ?? {};
|
|
285
285
|
const updatedSettings = {
|
|
286
286
|
...currentSettings,
|
|
287
|
-
|
|
287
|
+
files: {
|
|
288
288
|
...currentContext,
|
|
289
289
|
[name]: { source, enabled: true, authored, inputs },
|
|
290
290
|
},
|
|
291
291
|
};
|
|
292
292
|
yield* writeSettings(workspaceDir, updatedSettings).pipe(Effect.provide(fsLayer));
|
|
293
293
|
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
294
|
-
const currentLockedContext = currentLockfile.
|
|
294
|
+
const currentLockedContext = currentLockfile.files ?? {};
|
|
295
295
|
const previous = currentLockedContext[name];
|
|
296
296
|
const updatedLockfile = {
|
|
297
297
|
...currentLockfile,
|
|
298
|
-
|
|
298
|
+
files: {
|
|
299
299
|
...currentLockedContext,
|
|
300
300
|
[name]: {
|
|
301
301
|
...lockEntry,
|
|
@@ -305,14 +305,14 @@ export const loadWorkspace = (options) => Effect.gen(function* () {
|
|
|
305
305
|
},
|
|
306
306
|
};
|
|
307
307
|
yield* writeLockfile(workspaceDir, updatedLockfile).pipe(Effect.provide(fsLayer));
|
|
308
|
-
})).pipe(Effect.withSpan("WorkspaceMutations.
|
|
309
|
-
|
|
308
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.setFiles")),
|
|
309
|
+
setFilesLock: ({ name, lockEntry }) => withMutex(Effect.gen(function* () {
|
|
310
310
|
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
311
|
-
const currentLockedContext = currentLockfile.
|
|
311
|
+
const currentLockedContext = currentLockfile.files ?? {};
|
|
312
312
|
const previous = currentLockedContext[name];
|
|
313
313
|
const updatedLockfile = {
|
|
314
314
|
...currentLockfile,
|
|
315
|
-
|
|
315
|
+
files: {
|
|
316
316
|
...currentLockedContext,
|
|
317
317
|
[name]: {
|
|
318
318
|
...lockEntry,
|
|
@@ -322,72 +322,314 @@ export const loadWorkspace = (options) => Effect.gen(function* () {
|
|
|
322
322
|
},
|
|
323
323
|
};
|
|
324
324
|
yield* writeLockfile(workspaceDir, updatedLockfile).pipe(Effect.provide(fsLayer));
|
|
325
|
-
})).pipe(Effect.withSpan("WorkspaceMutations.
|
|
326
|
-
|
|
325
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.setFilesLock")),
|
|
326
|
+
removeFiles: (name) => withMutex(Effect.gen(function* () {
|
|
327
327
|
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
328
|
-
const currentContext = currentSettings.
|
|
328
|
+
const currentContext = currentSettings.files ?? {};
|
|
329
329
|
const remainingSettings = name in currentContext
|
|
330
330
|
? (() => {
|
|
331
331
|
const { [name]: _, ...remainingContext } = currentContext;
|
|
332
332
|
void _;
|
|
333
|
-
return { ...currentSettings,
|
|
333
|
+
return { ...currentSettings, files: remainingContext };
|
|
334
334
|
})()
|
|
335
335
|
: currentSettings;
|
|
336
336
|
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
337
|
-
const currentLockedContext = currentLockfile.
|
|
337
|
+
const currentLockedContext = currentLockfile.files ?? {};
|
|
338
338
|
const remainingLockfile = name in currentLockedContext
|
|
339
339
|
? (() => {
|
|
340
340
|
const { [name]: _, ...remainingContext } = currentLockedContext;
|
|
341
341
|
void _;
|
|
342
|
-
return { ...currentLockfile,
|
|
342
|
+
return { ...currentLockfile, files: remainingContext };
|
|
343
343
|
})()
|
|
344
344
|
: currentLockfile;
|
|
345
345
|
yield* writeSettings(workspaceDir, remainingSettings).pipe(Effect.provide(fsLayer));
|
|
346
346
|
yield* writeLockfile(workspaceDir, remainingLockfile).pipe(Effect.provide(fsLayer));
|
|
347
|
-
})).pipe(Effect.withSpan("WorkspaceMutations.
|
|
348
|
-
|
|
347
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.removeFiles")),
|
|
348
|
+
removeFilesSettings: (name) => withMutex(Effect.gen(function* () {
|
|
349
349
|
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
350
|
-
const currentContext = currentSettings.
|
|
350
|
+
const currentContext = currentSettings.files ?? {};
|
|
351
351
|
if (!(name in currentContext))
|
|
352
352
|
return;
|
|
353
353
|
const { [name]: _, ...remainingContext } = currentContext;
|
|
354
354
|
void _;
|
|
355
355
|
yield* writeSettings(workspaceDir, {
|
|
356
356
|
...currentSettings,
|
|
357
|
-
|
|
357
|
+
files: remainingContext,
|
|
358
358
|
}).pipe(Effect.provide(fsLayer));
|
|
359
|
-
})).pipe(Effect.withSpan("WorkspaceMutations.
|
|
360
|
-
|
|
359
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.removeFilesSettings")),
|
|
360
|
+
removeFilesLock: (name) => withMutex(Effect.gen(function* () {
|
|
361
361
|
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
362
|
-
const currentLockedContext = currentLockfile.
|
|
362
|
+
const currentLockedContext = currentLockfile.files ?? {};
|
|
363
363
|
if (!(name in currentLockedContext))
|
|
364
364
|
return;
|
|
365
365
|
const { [name]: _, ...remainingContext } = currentLockedContext;
|
|
366
366
|
void _;
|
|
367
367
|
yield* writeLockfile(workspaceDir, {
|
|
368
368
|
...currentLockfile,
|
|
369
|
-
|
|
369
|
+
files: remainingContext,
|
|
370
370
|
}).pipe(Effect.provide(fsLayer));
|
|
371
|
-
})).pipe(Effect.withSpan("WorkspaceMutations.
|
|
372
|
-
|
|
371
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.removeFilesLock")),
|
|
372
|
+
updateFilesEntry: (name, updater) => withMutex(Effect.gen(function* () {
|
|
373
373
|
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
374
|
-
const currentContext = currentSettings.
|
|
374
|
+
const currentContext = currentSettings.files ?? {};
|
|
375
375
|
const existingEntry = currentContext[name];
|
|
376
376
|
if (existingEntry === undefined)
|
|
377
377
|
return;
|
|
378
378
|
yield* writeSettings(workspaceDir, {
|
|
379
379
|
...currentSettings,
|
|
380
|
-
|
|
380
|
+
files: { ...currentContext, [name]: updater(existingEntry) },
|
|
381
381
|
}).pipe(Effect.provide(fsLayer));
|
|
382
|
-
})).pipe(Effect.withSpan("WorkspaceMutations.
|
|
383
|
-
|
|
382
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.updateFilesEntry")),
|
|
383
|
+
setFilesEntry: (name, entry) => withMutex(Effect.gen(function* () {
|
|
384
384
|
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
385
|
-
const currentContext = currentSettings.
|
|
385
|
+
const currentContext = currentSettings.files ?? {};
|
|
386
386
|
yield* writeSettings(workspaceDir, {
|
|
387
387
|
...currentSettings,
|
|
388
|
-
|
|
388
|
+
files: { ...currentContext, [name]: entry },
|
|
389
389
|
}).pipe(Effect.provide(fsLayer));
|
|
390
|
-
})).pipe(Effect.withSpan("WorkspaceMutations.
|
|
390
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.setFilesEntry")),
|
|
391
|
+
getConfiguredRuleEntries: () => readSettingsSafe(workspaceDir).pipe(Effect.map((s) => s.rules ?? {}), Effect.withSpan("WorkspaceMutations.getConfiguredRuleEntries")),
|
|
392
|
+
getLockedRules: () => readLockfileSafe(workspaceDir).pipe(Effect.map((lf) => lf.rules ?? {})),
|
|
393
|
+
getLockedRuleEntry: (name) => readLockfileSafe(workspaceDir).pipe(Effect.map((lf) => Option.fromUndefinedOr((lf.rules ?? {})[name]))),
|
|
394
|
+
setRule: ({ name, lockEntry, versionRange }) => withMutex(Effect.gen(function* () {
|
|
395
|
+
const source = lockEntry.type === "registry"
|
|
396
|
+
? (() => {
|
|
397
|
+
const fqn = formatFqn({
|
|
398
|
+
owner: lockEntry.owner,
|
|
399
|
+
type: "rule",
|
|
400
|
+
name: decodeExtensionNameSync(name),
|
|
401
|
+
});
|
|
402
|
+
return Option.isSome(versionRange) ? `${fqn}@${versionRange.value}` : fqn;
|
|
403
|
+
})()
|
|
404
|
+
: printSourceParams(lockEntryToSourceParams(lockEntry));
|
|
405
|
+
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
406
|
+
const currentRules = currentSettings.rules ?? {};
|
|
407
|
+
const currentEntry = currentRules[name];
|
|
408
|
+
const authored = currentEntry?.authored ?? false;
|
|
409
|
+
yield* writeSettings(workspaceDir, {
|
|
410
|
+
...currentSettings,
|
|
411
|
+
rules: {
|
|
412
|
+
...currentRules,
|
|
413
|
+
[name]: { source, enabled: true, authored },
|
|
414
|
+
},
|
|
415
|
+
}).pipe(Effect.provide(fsLayer));
|
|
416
|
+
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
417
|
+
const currentLockedRules = currentLockfile.rules ?? {};
|
|
418
|
+
const previous = currentLockedRules[name];
|
|
419
|
+
yield* writeLockfile(workspaceDir, {
|
|
420
|
+
...currentLockfile,
|
|
421
|
+
rules: {
|
|
422
|
+
...currentLockedRules,
|
|
423
|
+
[name]: {
|
|
424
|
+
...lockEntry,
|
|
425
|
+
installedAt: previous?.installedAt ?? lockEntry.installedAt,
|
|
426
|
+
updatedAt: new Date(),
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
}).pipe(Effect.provide(fsLayer));
|
|
430
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.setRule")),
|
|
431
|
+
setRuleLock: ({ name, lockEntry }) => withMutex(Effect.gen(function* () {
|
|
432
|
+
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
433
|
+
const currentLockedRules = currentLockfile.rules ?? {};
|
|
434
|
+
const previous = currentLockedRules[name];
|
|
435
|
+
yield* writeLockfile(workspaceDir, {
|
|
436
|
+
...currentLockfile,
|
|
437
|
+
rules: {
|
|
438
|
+
...currentLockedRules,
|
|
439
|
+
[name]: {
|
|
440
|
+
...lockEntry,
|
|
441
|
+
installedAt: previous?.installedAt ?? lockEntry.installedAt,
|
|
442
|
+
updatedAt: new Date(),
|
|
443
|
+
},
|
|
444
|
+
},
|
|
445
|
+
}).pipe(Effect.provide(fsLayer));
|
|
446
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.setRuleLock")),
|
|
447
|
+
removeRule: (name) => withMutex(Effect.gen(function* () {
|
|
448
|
+
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
449
|
+
const currentRules = currentSettings.rules ?? {};
|
|
450
|
+
const remainingSettings = name in currentRules
|
|
451
|
+
? (() => {
|
|
452
|
+
const { [name]: _, ...remainingRules } = currentRules;
|
|
453
|
+
void _;
|
|
454
|
+
return { ...currentSettings, rules: remainingRules };
|
|
455
|
+
})()
|
|
456
|
+
: currentSettings;
|
|
457
|
+
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
458
|
+
const currentLockedRules = currentLockfile.rules ?? {};
|
|
459
|
+
const remainingLockfile = name in currentLockedRules
|
|
460
|
+
? (() => {
|
|
461
|
+
const { [name]: _, ...remainingRules } = currentLockedRules;
|
|
462
|
+
void _;
|
|
463
|
+
return { ...currentLockfile, rules: remainingRules };
|
|
464
|
+
})()
|
|
465
|
+
: currentLockfile;
|
|
466
|
+
yield* writeSettings(workspaceDir, remainingSettings).pipe(Effect.provide(fsLayer));
|
|
467
|
+
yield* writeLockfile(workspaceDir, remainingLockfile).pipe(Effect.provide(fsLayer));
|
|
468
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.removeRule")),
|
|
469
|
+
removeRuleSettings: (name) => withMutex(Effect.gen(function* () {
|
|
470
|
+
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
471
|
+
const currentRules = currentSettings.rules ?? {};
|
|
472
|
+
if (!(name in currentRules))
|
|
473
|
+
return;
|
|
474
|
+
const { [name]: _, ...remainingRules } = currentRules;
|
|
475
|
+
void _;
|
|
476
|
+
yield* writeSettings(workspaceDir, {
|
|
477
|
+
...currentSettings,
|
|
478
|
+
rules: remainingRules,
|
|
479
|
+
}).pipe(Effect.provide(fsLayer));
|
|
480
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.removeRuleSettings")),
|
|
481
|
+
removeRuleLock: (name) => withMutex(Effect.gen(function* () {
|
|
482
|
+
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
483
|
+
const currentLockedRules = currentLockfile.rules ?? {};
|
|
484
|
+
if (!(name in currentLockedRules))
|
|
485
|
+
return;
|
|
486
|
+
const { [name]: _, ...remainingRules } = currentLockedRules;
|
|
487
|
+
void _;
|
|
488
|
+
yield* writeLockfile(workspaceDir, {
|
|
489
|
+
...currentLockfile,
|
|
490
|
+
rules: remainingRules,
|
|
491
|
+
}).pipe(Effect.provide(fsLayer));
|
|
492
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.removeRuleLock")),
|
|
493
|
+
updateRuleEntry: (name, updater) => withMutex(Effect.gen(function* () {
|
|
494
|
+
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
495
|
+
const currentRules = currentSettings.rules ?? {};
|
|
496
|
+
const existingEntry = currentRules[name];
|
|
497
|
+
if (existingEntry === undefined)
|
|
498
|
+
return;
|
|
499
|
+
yield* writeSettings(workspaceDir, {
|
|
500
|
+
...currentSettings,
|
|
501
|
+
rules: { ...currentRules, [name]: updater(existingEntry) },
|
|
502
|
+
}).pipe(Effect.provide(fsLayer));
|
|
503
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.updateRuleEntry")),
|
|
504
|
+
setRuleEntry: (name, entry) => withMutex(Effect.gen(function* () {
|
|
505
|
+
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
506
|
+
const currentRules = currentSettings.rules ?? {};
|
|
507
|
+
yield* writeSettings(workspaceDir, {
|
|
508
|
+
...currentSettings,
|
|
509
|
+
rules: { ...currentRules, [name]: entry },
|
|
510
|
+
}).pipe(Effect.provide(fsLayer));
|
|
511
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.setRuleEntry")),
|
|
512
|
+
getConfiguredHookEntries: () => readSettingsSafe(workspaceDir).pipe(Effect.map((s) => s.hooks ?? {}), Effect.withSpan("WorkspaceMutations.getConfiguredHookEntries")),
|
|
513
|
+
getLockedHooks: () => readLockfileSafe(workspaceDir).pipe(Effect.map((lf) => lf.hooks ?? {})),
|
|
514
|
+
getLockedHookEntry: (name) => readLockfileSafe(workspaceDir).pipe(Effect.map((lf) => Option.fromUndefinedOr((lf.hooks ?? {})[name]))),
|
|
515
|
+
setHook: ({ name, lockEntry, versionRange }) => withMutex(Effect.gen(function* () {
|
|
516
|
+
const source = lockEntry.type === "registry"
|
|
517
|
+
? (() => {
|
|
518
|
+
const fqn = formatFqn({
|
|
519
|
+
owner: lockEntry.owner,
|
|
520
|
+
type: "hook",
|
|
521
|
+
name: decodeExtensionNameSync(name),
|
|
522
|
+
});
|
|
523
|
+
return Option.isSome(versionRange) ? `${fqn}@${versionRange.value}` : fqn;
|
|
524
|
+
})()
|
|
525
|
+
: printSourceParams(lockEntryToSourceParams(lockEntry));
|
|
526
|
+
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
527
|
+
const currentHooks = currentSettings.hooks ?? {};
|
|
528
|
+
const currentEntry = currentHooks[name];
|
|
529
|
+
const authored = currentEntry?.authored ?? false;
|
|
530
|
+
yield* writeSettings(workspaceDir, {
|
|
531
|
+
...currentSettings,
|
|
532
|
+
hooks: {
|
|
533
|
+
...currentHooks,
|
|
534
|
+
[name]: { source, enabled: true, authored },
|
|
535
|
+
},
|
|
536
|
+
}).pipe(Effect.provide(fsLayer));
|
|
537
|
+
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
538
|
+
const currentLockedHooks = currentLockfile.hooks ?? {};
|
|
539
|
+
const previous = currentLockedHooks[name];
|
|
540
|
+
yield* writeLockfile(workspaceDir, {
|
|
541
|
+
...currentLockfile,
|
|
542
|
+
hooks: {
|
|
543
|
+
...currentLockedHooks,
|
|
544
|
+
[name]: {
|
|
545
|
+
...lockEntry,
|
|
546
|
+
installedAt: previous?.installedAt ?? lockEntry.installedAt,
|
|
547
|
+
updatedAt: new Date(),
|
|
548
|
+
},
|
|
549
|
+
},
|
|
550
|
+
}).pipe(Effect.provide(fsLayer));
|
|
551
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.setHook")),
|
|
552
|
+
setHookLock: ({ name, lockEntry }) => withMutex(Effect.gen(function* () {
|
|
553
|
+
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
554
|
+
const currentLockedHooks = currentLockfile.hooks ?? {};
|
|
555
|
+
const previous = currentLockedHooks[name];
|
|
556
|
+
yield* writeLockfile(workspaceDir, {
|
|
557
|
+
...currentLockfile,
|
|
558
|
+
hooks: {
|
|
559
|
+
...currentLockedHooks,
|
|
560
|
+
[name]: {
|
|
561
|
+
...lockEntry,
|
|
562
|
+
installedAt: previous?.installedAt ?? lockEntry.installedAt,
|
|
563
|
+
updatedAt: new Date(),
|
|
564
|
+
},
|
|
565
|
+
},
|
|
566
|
+
}).pipe(Effect.provide(fsLayer));
|
|
567
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.setHookLock")),
|
|
568
|
+
removeHook: (name) => withMutex(Effect.gen(function* () {
|
|
569
|
+
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
570
|
+
const currentHooks = currentSettings.hooks ?? {};
|
|
571
|
+
const remainingSettings = name in currentHooks
|
|
572
|
+
? (() => {
|
|
573
|
+
const { [name]: _, ...remainingHooks } = currentHooks;
|
|
574
|
+
void _;
|
|
575
|
+
return { ...currentSettings, hooks: remainingHooks };
|
|
576
|
+
})()
|
|
577
|
+
: currentSettings;
|
|
578
|
+
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
579
|
+
const currentLockedHooks = currentLockfile.hooks ?? {};
|
|
580
|
+
const remainingLockfile = name in currentLockedHooks
|
|
581
|
+
? (() => {
|
|
582
|
+
const { [name]: _, ...remainingHooks } = currentLockedHooks;
|
|
583
|
+
void _;
|
|
584
|
+
return { ...currentLockfile, hooks: remainingHooks };
|
|
585
|
+
})()
|
|
586
|
+
: currentLockfile;
|
|
587
|
+
yield* writeSettings(workspaceDir, remainingSettings).pipe(Effect.provide(fsLayer));
|
|
588
|
+
yield* writeLockfile(workspaceDir, remainingLockfile).pipe(Effect.provide(fsLayer));
|
|
589
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.removeHook")),
|
|
590
|
+
removeHookSettings: (name) => withMutex(Effect.gen(function* () {
|
|
591
|
+
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
592
|
+
const currentHooks = currentSettings.hooks ?? {};
|
|
593
|
+
if (!(name in currentHooks))
|
|
594
|
+
return;
|
|
595
|
+
const { [name]: _, ...remainingHooks } = currentHooks;
|
|
596
|
+
void _;
|
|
597
|
+
yield* writeSettings(workspaceDir, {
|
|
598
|
+
...currentSettings,
|
|
599
|
+
hooks: remainingHooks,
|
|
600
|
+
}).pipe(Effect.provide(fsLayer));
|
|
601
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.removeHookSettings")),
|
|
602
|
+
removeHookLock: (name) => withMutex(Effect.gen(function* () {
|
|
603
|
+
const currentLockfile = yield* readLockfileSafe(workspaceDir);
|
|
604
|
+
const currentLockedHooks = currentLockfile.hooks ?? {};
|
|
605
|
+
if (!(name in currentLockedHooks))
|
|
606
|
+
return;
|
|
607
|
+
const { [name]: _, ...remainingHooks } = currentLockedHooks;
|
|
608
|
+
void _;
|
|
609
|
+
yield* writeLockfile(workspaceDir, {
|
|
610
|
+
...currentLockfile,
|
|
611
|
+
hooks: remainingHooks,
|
|
612
|
+
}).pipe(Effect.provide(fsLayer));
|
|
613
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.removeHookLock")),
|
|
614
|
+
updateHookEntry: (name, updater) => withMutex(Effect.gen(function* () {
|
|
615
|
+
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
616
|
+
const currentHooks = currentSettings.hooks ?? {};
|
|
617
|
+
const existingEntry = currentHooks[name];
|
|
618
|
+
if (existingEntry === undefined)
|
|
619
|
+
return;
|
|
620
|
+
yield* writeSettings(workspaceDir, {
|
|
621
|
+
...currentSettings,
|
|
622
|
+
hooks: { ...currentHooks, [name]: updater(existingEntry) },
|
|
623
|
+
}).pipe(Effect.provide(fsLayer));
|
|
624
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.updateHookEntry")),
|
|
625
|
+
setHookEntry: (name, entry) => withMutex(Effect.gen(function* () {
|
|
626
|
+
const currentSettings = yield* readSettingsSafe(workspaceDir);
|
|
627
|
+
const currentHooks = currentSettings.hooks ?? {};
|
|
628
|
+
yield* writeSettings(workspaceDir, {
|
|
629
|
+
...currentSettings,
|
|
630
|
+
hooks: { ...currentHooks, [name]: entry },
|
|
631
|
+
}).pipe(Effect.provide(fsLayer));
|
|
632
|
+
})).pipe(Effect.withSpan("WorkspaceMutations.setHookEntry")),
|
|
391
633
|
getLockedSkills: () => readLockfileSafe(workspaceDir).pipe(Effect.map((lf) => lf.skills)),
|
|
392
634
|
getLockedSkill: (name) => readLockfileSafe(workspaceDir).pipe(Effect.map((lf) => Option.fromUndefinedOr(lf.skills[name]))),
|
|
393
635
|
getSkillDir: (name, source) => Effect.gen(function* () {
|
|
@@ -1033,7 +1275,11 @@ export const loadWorkspace = (options) => Effect.gen(function* () {
|
|
|
1033
1275
|
? packEntry.resolvedCommands
|
|
1034
1276
|
: target.type === "mcp-server"
|
|
1035
1277
|
? packEntry.resolvedMcpServers
|
|
1036
|
-
:
|
|
1278
|
+
: target.type === "files"
|
|
1279
|
+
? (packEntry.resolvedFiles ?? {})
|
|
1280
|
+
: target.type === "rule"
|
|
1281
|
+
? (packEntry.resolvedRules ?? {})
|
|
1282
|
+
: (packEntry.resolvedHooks ?? {});
|
|
1037
1283
|
// Check if any FQN key in the resolved map ends with the target name
|
|
1038
1284
|
for (const fqn of Object.keys(resolvedMap)) {
|
|
1039
1285
|
const resolvedName = parseExtensionFqnParts(fqn)?.name;
|
|
@@ -1090,15 +1336,45 @@ export const loadWorkspace = (options) => Effect.gen(function* () {
|
|
|
1090
1336
|
yield* writeLockfile(workspaceDir, updatedLockfile).pipe(Effect.provide(fsLayer));
|
|
1091
1337
|
break;
|
|
1092
1338
|
}
|
|
1093
|
-
case "
|
|
1094
|
-
const
|
|
1095
|
-
const entry =
|
|
1339
|
+
case "files": {
|
|
1340
|
+
const files = currentLockfile.files ?? {};
|
|
1341
|
+
const entry = files[target.name];
|
|
1342
|
+
if (entry === undefined)
|
|
1343
|
+
return;
|
|
1344
|
+
const updatedLockfile = {
|
|
1345
|
+
...currentLockfile,
|
|
1346
|
+
files: {
|
|
1347
|
+
...files,
|
|
1348
|
+
[target.name]: { ...entry, retainedByPack: true },
|
|
1349
|
+
},
|
|
1350
|
+
};
|
|
1351
|
+
yield* writeLockfile(workspaceDir, updatedLockfile).pipe(Effect.provide(fsLayer));
|
|
1352
|
+
break;
|
|
1353
|
+
}
|
|
1354
|
+
case "rule": {
|
|
1355
|
+
const rules = currentLockfile.rules ?? {};
|
|
1356
|
+
const entry = rules[target.name];
|
|
1357
|
+
if (entry === undefined)
|
|
1358
|
+
return;
|
|
1359
|
+
const updatedLockfile = {
|
|
1360
|
+
...currentLockfile,
|
|
1361
|
+
rules: {
|
|
1362
|
+
...rules,
|
|
1363
|
+
[target.name]: { ...entry, retainedByPack: true },
|
|
1364
|
+
},
|
|
1365
|
+
};
|
|
1366
|
+
yield* writeLockfile(workspaceDir, updatedLockfile).pipe(Effect.provide(fsLayer));
|
|
1367
|
+
break;
|
|
1368
|
+
}
|
|
1369
|
+
case "hook": {
|
|
1370
|
+
const hooks = currentLockfile.hooks ?? {};
|
|
1371
|
+
const entry = hooks[target.name];
|
|
1096
1372
|
if (entry === undefined)
|
|
1097
1373
|
return;
|
|
1098
1374
|
const updatedLockfile = {
|
|
1099
1375
|
...currentLockfile,
|
|
1100
|
-
|
|
1101
|
-
...
|
|
1376
|
+
hooks: {
|
|
1377
|
+
...hooks,
|
|
1102
1378
|
[target.name]: { ...entry, retainedByPack: true },
|
|
1103
1379
|
},
|
|
1104
1380
|
};
|