@agentxm/client-core 0.13.1 → 0.14.0
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/index.d.ts +1 -1
- package/dist/src/unstable/agents/index.d.ts.map +1 -1
- package/dist/src/unstable/agents/index.js +1 -1
- package/dist/src/unstable/agents/index.js.map +1 -1
- package/dist/src/unstable/agents/instructions.js +1 -1
- package/dist/src/unstable/agents/instructions.js.map +1 -1
- package/dist/src/unstable/agents/mcp-sync.d.ts +14 -0
- package/dist/src/unstable/agents/mcp-sync.d.ts.map +1 -1
- package/dist/src/unstable/agents/mcp-sync.js +201 -1
- package/dist/src/unstable/agents/mcp-sync.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/mcp-server-no-secret-literal.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-no-secret-literal.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-no-secret-literal.js +67 -0
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-no-secret-literal.js.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-transport-exclusivity.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-transport-exclusivity.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-transport-exclusivity.js +65 -0
- package/dist/src/unstable/lint/catalog/workspace/mcp-server-transport-exclusivity.js.map +1 -0
- 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/catalog/workspace.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/workspace.js +4 -0
- package/dist/src/unstable/lint/catalog/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 +255 -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 +831 -33
- package/dist/src/unstable/lockfile/schema.d.ts.map +1 -1
- package/dist/src/unstable/lockfile/schema.js +82 -21
- 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 +147 -19
- package/dist/src/unstable/settings/schema.d.ts.map +1 -1
- package/dist/src/unstable/settings/schema.js +283 -42
- 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/lock-entry-to-ref.d.ts.map +1 -1
- package/dist/src/unstable/sources/lock-entry-to-ref.js +5 -0
- package/dist/src/unstable/sources/lock-entry-to-ref.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/printer.js +10 -0
- package/dist/src/unstable/sources/printer.js.map +1 -1
- package/dist/src/unstable/sources/types.d.ts +19 -3
- package/dist/src/unstable/sources/types.d.ts.map +1 -1
- package/dist/src/unstable/sources/types.js +19 -3
- 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 +120 -40
- package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.d.ts +2 -0
- package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js +2 -0
- package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js.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/mcp-server.d.ts +1 -0
- package/dist/src/unstable/workspace/read-model/extensions/mcp-server.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/extensions/mcp-server.js +2 -0
- package/dist/src/unstable/workspace/read-model/extensions/mcp-server.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/scanners/mcp-config.d.ts +2 -5
- package/dist/src/unstable/workspace/read-model/scanners/mcp-config.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/mcp-config.js +16 -14
- package/dist/src/unstable/workspace/read-model/scanners/mcp-config.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/types.d.ts +2 -0
- package/dist/src/unstable/workspace/read-model/scanners/types.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/types.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/service.d.ts +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 +548 -14
- package/dist/src/unstable/workspace/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/service.js +336 -50
- 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 +669 -171
- 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 +186 -39
- 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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook package discovery for local and git sources.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import * as Array from "effect/Array";
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as FileSystem from "effect/FileSystem";
|
|
9
|
+
import * as Option from "effect/Option";
|
|
10
|
+
import * as Path from "effect/Path";
|
|
11
|
+
import * as Schema from "effect/Schema";
|
|
12
|
+
import { HOOK_MANIFEST_FILENAME, HookManifestSchema, } from "./manifest-schema.js";
|
|
13
|
+
const SKIPPED_DIRECTORIES = new Set([
|
|
14
|
+
"node_modules",
|
|
15
|
+
".git",
|
|
16
|
+
".axm",
|
|
17
|
+
"dist",
|
|
18
|
+
"build",
|
|
19
|
+
"__pycache__",
|
|
20
|
+
]);
|
|
21
|
+
const MAX_DEPTH = 5;
|
|
22
|
+
const tryParseHookPackageInDir = (dir) => Effect.gen(function* () {
|
|
23
|
+
const fs = yield* FileSystem.FileSystem;
|
|
24
|
+
const path = yield* Path.Path;
|
|
25
|
+
const manifestPath = path.join(dir, HOOK_MANIFEST_FILENAME);
|
|
26
|
+
const exists = yield* fs.exists(manifestPath).pipe(Effect.catch(() => Effect.succeed(false)));
|
|
27
|
+
if (!exists)
|
|
28
|
+
return Option.none();
|
|
29
|
+
const raw = yield* fs.readFileString(manifestPath).pipe(Effect.option);
|
|
30
|
+
if (Option.isNone(raw))
|
|
31
|
+
return Option.none();
|
|
32
|
+
const json = yield* Schema.decodeUnknownEffect(Schema.UnknownFromJsonString)(raw.value).pipe(Effect.option);
|
|
33
|
+
if (Option.isNone(json))
|
|
34
|
+
return Option.none();
|
|
35
|
+
const manifest = yield* Schema.decodeUnknownEffect(HookManifestSchema)(json.value).pipe(Effect.option);
|
|
36
|
+
if (Option.isNone(manifest))
|
|
37
|
+
return Option.none();
|
|
38
|
+
return Option.some({
|
|
39
|
+
type: "hook",
|
|
40
|
+
manifest: manifest.value,
|
|
41
|
+
location: `file://${dir}`,
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
const scanChildren = (dir) => Effect.gen(function* () {
|
|
45
|
+
const fs = yield* FileSystem.FileSystem;
|
|
46
|
+
const path = yield* Path.Path;
|
|
47
|
+
const entries = yield* fs.readDirectory(dir).pipe(Effect.option);
|
|
48
|
+
if (Option.isNone(entries))
|
|
49
|
+
return [];
|
|
50
|
+
return yield* Effect.forEach(entries.value, (entry) => Effect.gen(function* () {
|
|
51
|
+
const fullPath = path.join(dir, entry);
|
|
52
|
+
const stat = yield* fs.stat(fullPath).pipe(Effect.option);
|
|
53
|
+
if (Option.isNone(stat) || stat.value.type !== "Directory") {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
const discovered = yield* tryParseHookPackageInDir(fullPath);
|
|
57
|
+
return Option.isSome(discovered) ? [discovered.value] : [];
|
|
58
|
+
}), { concurrency: "unbounded" }).pipe(Effect.map((results) => Array.flatten(results)));
|
|
59
|
+
});
|
|
60
|
+
const recursiveScan = (dir, depth) => Effect.gen(function* () {
|
|
61
|
+
if (depth > MAX_DEPTH)
|
|
62
|
+
return [];
|
|
63
|
+
const fs = yield* FileSystem.FileSystem;
|
|
64
|
+
const path = yield* Path.Path;
|
|
65
|
+
const entries = yield* fs.readDirectory(dir).pipe(Effect.option);
|
|
66
|
+
if (Option.isNone(entries))
|
|
67
|
+
return [];
|
|
68
|
+
return yield* Effect.forEach(entries.value, (entry) => Effect.gen(function* () {
|
|
69
|
+
if (SKIPPED_DIRECTORIES.has(entry))
|
|
70
|
+
return [];
|
|
71
|
+
const fullPath = path.join(dir, entry);
|
|
72
|
+
const stat = yield* fs.stat(fullPath).pipe(Effect.option);
|
|
73
|
+
if (Option.isNone(stat) || stat.value.type !== "Directory") {
|
|
74
|
+
return [];
|
|
75
|
+
}
|
|
76
|
+
const discovered = yield* tryParseHookPackageInDir(fullPath);
|
|
77
|
+
const current = Option.isSome(discovered) ? [discovered.value] : [];
|
|
78
|
+
const nested = yield* recursiveScan(fullPath, depth + 1);
|
|
79
|
+
return [...current, ...nested];
|
|
80
|
+
}), { concurrency: "unbounded" }).pipe(Effect.map((results) => Array.flatten(results)));
|
|
81
|
+
});
|
|
82
|
+
export const hookPackagesInDir = (searchPath, options) => Effect.gen(function* () {
|
|
83
|
+
const direct = yield* tryParseHookPackageInDir(searchPath);
|
|
84
|
+
const directHooks = Option.isSome(direct) ? [direct.value] : [];
|
|
85
|
+
if (directHooks.length > 0 && !options.fullDepth)
|
|
86
|
+
return directHooks;
|
|
87
|
+
const childHooks = yield* scanChildren(searchPath);
|
|
88
|
+
if ((directHooks.length > 0 || childHooks.length > 0) && !options.fullDepth) {
|
|
89
|
+
return [...directHooks, ...childHooks];
|
|
90
|
+
}
|
|
91
|
+
const recursiveHooks = yield* recursiveScan(searchPath, 0);
|
|
92
|
+
const all = [...directHooks, ...childHooks, ...recursiveHooks];
|
|
93
|
+
const seen = new Set();
|
|
94
|
+
return all.filter((hook) => {
|
|
95
|
+
if (seen.has(hook.manifest.name))
|
|
96
|
+
return false;
|
|
97
|
+
seen.add(hook.manifest.name);
|
|
98
|
+
return true;
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=discovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../../../../src/unstable/hooks/discovery.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EACL,sBAAsB,EACtB,kBAAkB,GAEnB,MAAM,sBAAsB,CAAC;AA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,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS;QAAE,OAAO,WAAW,CAAC;IACrE,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACnD,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;QAC5E,OAAO,CAAC,GAAG,WAAW,EAAE,GAAG,UAAU,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,cAAc,GAAG,KAAK,CAAC,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC3D,MAAM,GAAG,GAAG,CAAC,GAAG,WAAW,EAAE,GAAG,UAAU,EAAE,GAAG,cAAc,CAAC,CAAC;IAC/D,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,OAAO,KAAK,CAAC;QAC/C,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hooks feature module.
|
|
3
|
+
*
|
|
4
|
+
* @experimental All exports from this module are unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
export { HOOK_EXTENSION_DIR, HOOK_MANIFEST_FILENAME, HOOK_MANIFEST_SCHEMA_URL, HookBindingSchema, HookCapabilitiesSchema, HookEventSchema, HookManifestSchema, HookRuntimeSchema, type HookBinding, type HookCapabilities, type HookEvent, type HookManifest, type HookRuntime, } from "./manifest-schema.js";
|
|
7
|
+
export type { GitHostedHookRef, HookExtensionRef, LocalHookRef, RegistryHookRef } from "./refs.js";
|
|
8
|
+
export { buildRegistryHookRef } from "./registry-ref-builder.js";
|
|
9
|
+
export { hookPackagesInDir, type DiscoveredHookPackage, type HookPackageDiscoveryOptions, } from "./discovery.js";
|
|
10
|
+
export { HookManager, HookManagerLive } from "./manager.js";
|
|
11
|
+
export type { PublishHookOperation, PublishHookOperationArgs } from "./operations/publish.js";
|
|
12
|
+
export { publishHook } from "./operations/publish.js";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/unstable/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,iBAAiB,EACjB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,GACjC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC5D,YAAY,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hooks feature module.
|
|
3
|
+
*
|
|
4
|
+
* @experimental All exports from this module are unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
export { HOOK_EXTENSION_DIR, HOOK_MANIFEST_FILENAME, HOOK_MANIFEST_SCHEMA_URL, HookBindingSchema, HookCapabilitiesSchema, HookEventSchema, HookManifestSchema, HookRuntimeSchema, } from "./manifest-schema.js";
|
|
7
|
+
export { buildRegistryHookRef } from "./registry-ref-builder.js";
|
|
8
|
+
export { hookPackagesInDir, } from "./discovery.js";
|
|
9
|
+
export { HookManager, HookManagerLive } from "./manager.js";
|
|
10
|
+
export { publishHook } from "./operations/publish.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/unstable/hooks/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,GAMlB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EACL,iBAAiB,GAGlB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Hook manager service.
|
|
3
3
|
*
|
|
4
4
|
* @experimental This API is unstable and may change without notice.
|
|
5
5
|
*/
|
|
6
6
|
import * as FileSystem from "effect/FileSystem";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
7
8
|
import * as Path from "effect/Path";
|
|
8
9
|
import * as ServiceMap from "effect/Context";
|
|
9
|
-
import * as Layer from "effect/Layer";
|
|
10
10
|
import { SourceHostProviders } from "../source-resolution/index.js";
|
|
11
11
|
import type { ExtensionManager } from "../workspace/service-interface.js";
|
|
12
12
|
import { WorkspaceMutations } from "../workspace/service-interface.js";
|
|
13
|
-
import { type
|
|
14
|
-
declare const
|
|
15
|
-
export declare class
|
|
13
|
+
import { type HookExtensionRef } from "./index.js";
|
|
14
|
+
declare const HookManager_base: ServiceMap.ServiceClass<HookManager, "@agentxm/client-core/unstable/hooks/manager/HookManager", ExtensionManager<HookExtensionRef>>;
|
|
15
|
+
export declare class HookManager extends HookManager_base {
|
|
16
16
|
}
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const HookManagerLive: Layer.Layer<HookManager, never, Path.Path | FileSystem.FileSystem | WorkspaceMutations | SourceHostProviders>;
|
|
18
18
|
export {};
|
|
19
19
|
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../src/unstable/hooks/manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAa7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAUpE,OAAO,KAAK,EAAE,gBAAgB,EAAuB,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAML,KAAK,gBAAgB,EAItB,MAAM,YAAY,CAAC;;AAEpB,qBAAa,WAAY,SAAQ,gBAG6B;CAAG;AA6TjE,eAAO,MAAM,eAAe,+GA6a3B,CAAC"}
|