@agentxm/client-core 0.18.0 → 0.19.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/catalog.d.ts +2 -2
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.js +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.js.map +1 -1
- package/dist/src/unstable/agents/augment/service.d.ts +2 -2
- package/dist/src/unstable/agents/augment/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/augment/service.js +4 -3
- package/dist/src/unstable/agents/augment/service.js.map +1 -1
- package/dist/src/unstable/agents/claude-code/service.d.ts +2 -2
- package/dist/src/unstable/agents/claude-code/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/claude-code/service.js +4 -3
- package/dist/src/unstable/agents/claude-code/service.js.map +1 -1
- package/dist/src/unstable/agents/codex/service.d.ts +1 -1
- package/dist/src/unstable/agents/codex/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/codex/service.js +3 -2
- package/dist/src/unstable/agents/codex/service.js.map +1 -1
- package/dist/src/unstable/agents/coding-agent.d.ts +2 -1
- package/dist/src/unstable/agents/coding-agent.d.ts.map +1 -1
- package/dist/src/unstable/agents/coding-agent.js.map +1 -1
- package/dist/src/unstable/agents/cursor/service.d.ts +2 -2
- package/dist/src/unstable/agents/cursor/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/cursor/service.js +4 -3
- package/dist/src/unstable/agents/cursor/service.js.map +1 -1
- package/dist/src/unstable/agents/descriptor-paths.d.ts +18 -0
- package/dist/src/unstable/agents/descriptor-paths.d.ts.map +1 -0
- package/dist/src/unstable/agents/descriptor-paths.js +33 -0
- package/dist/src/unstable/agents/descriptor-paths.js.map +1 -0
- package/dist/src/unstable/agents/gemini-cli/service.d.ts +2 -2
- package/dist/src/unstable/agents/gemini-cli/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/gemini-cli/service.js +4 -3
- package/dist/src/unstable/agents/gemini-cli/service.js.map +1 -1
- package/dist/src/unstable/agents/github-copilot-cli/service.d.ts +1 -1
- package/dist/src/unstable/agents/github-copilot-cli/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/github-copilot-cli/service.js +3 -2
- package/dist/src/unstable/agents/github-copilot-cli/service.js.map +1 -1
- package/dist/src/unstable/agents/instructions.d.ts.map +1 -1
- package/dist/src/unstable/agents/instructions.js +2 -1
- package/dist/src/unstable/agents/instructions.js.map +1 -1
- package/dist/src/unstable/agents/junie/service.d.ts +2 -2
- package/dist/src/unstable/agents/junie/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/junie/service.js +4 -3
- package/dist/src/unstable/agents/junie/service.js.map +1 -1
- package/dist/src/unstable/agents/kilo/service.d.ts +1 -1
- package/dist/src/unstable/agents/kilo/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/kilo/service.js +3 -2
- package/dist/src/unstable/agents/kilo/service.js.map +1 -1
- package/dist/src/unstable/agents/kiro-cli/service.d.ts +2 -2
- package/dist/src/unstable/agents/kiro-cli/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/kiro-cli/service.js +4 -3
- package/dist/src/unstable/agents/kiro-cli/service.js.map +1 -1
- package/dist/src/unstable/agents/opencode/service.d.ts +2 -2
- package/dist/src/unstable/agents/opencode/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/opencode/service.js +4 -3
- package/dist/src/unstable/agents/opencode/service.js.map +1 -1
- package/dist/src/unstable/agents/project-only-agent.d.ts +5 -4
- package/dist/src/unstable/agents/project-only-agent.d.ts.map +1 -1
- package/dist/src/unstable/agents/project-only-agent.js +10 -3
- package/dist/src/unstable/agents/project-only-agent.js.map +1 -1
- package/dist/src/unstable/agents/repository.js +1 -1
- package/dist/src/unstable/agents/repository.js.map +1 -1
- package/dist/src/unstable/agents/roo/service.d.ts +2 -2
- package/dist/src/unstable/agents/roo/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/roo/service.js +4 -3
- package/dist/src/unstable/agents/roo/service.js.map +1 -1
- package/dist/src/unstable/agents/windsurf/service.d.ts +1 -3
- package/dist/src/unstable/agents/windsurf/service.d.ts.map +1 -1
- package/dist/src/unstable/agents/windsurf/service.js +7 -5
- package/dist/src/unstable/agents/windsurf/service.js.map +1 -1
- package/dist/src/unstable/auth/credential-store.d.ts.map +1 -1
- package/dist/src/unstable/auth/credential-store.js +51 -26
- package/dist/src/unstable/auth/credential-store.js.map +1 -1
- package/dist/src/unstable/auth/device-login.d.ts +1 -1
- package/dist/src/unstable/auth/loopback-login.d.ts +1 -1
- package/dist/src/unstable/cli-flags/index.d.ts.map +1 -1
- package/dist/src/unstable/cli-flags/index.js +1 -1
- package/dist/src/unstable/cli-flags/index.js.map +1 -1
- package/dist/src/unstable/cli-flags/resolve-verbosity.js +1 -1
- package/dist/src/unstable/cli-flags/resolve-verbosity.js.map +1 -1
- package/dist/src/unstable/cli-renderer/ansi-chrome.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/ansi-chrome.js +1 -7
- package/dist/src/unstable/cli-renderer/ansi-chrome.js.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-interactive.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js +1 -25
- package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-machine.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-machine.js +1 -21
- package/dist/src/unstable/cli-renderer/cli-renderer-machine.js.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-test.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/cli-renderer-test.js +1 -9
- package/dist/src/unstable/cli-renderer/cli-renderer-test.js.map +1 -1
- package/dist/src/unstable/cli-renderer/markdown-formatter.d.ts.map +1 -1
- package/dist/src/unstable/cli-renderer/markdown-formatter.js +2 -3
- package/dist/src/unstable/cli-renderer/markdown-formatter.js.map +1 -1
- package/dist/src/unstable/cli-renderer/renderer-helpers.d.ts +12 -0
- package/dist/src/unstable/cli-renderer/renderer-helpers.d.ts.map +1 -0
- package/dist/src/unstable/cli-renderer/renderer-helpers.js +27 -0
- package/dist/src/unstable/cli-renderer/renderer-helpers.js.map +1 -0
- package/dist/src/unstable/cli-runtime/command-argv.d.ts +1 -1
- package/dist/src/unstable/cli-runtime/command-argv.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/command-argv.js +2 -2
- package/dist/src/unstable/cli-runtime/command-argv.js.map +1 -1
- package/dist/src/unstable/cli-runtime/index.d.ts +1 -0
- package/dist/src/unstable/cli-runtime/index.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/index.js +1 -0
- package/dist/src/unstable/cli-runtime/index.js.map +1 -1
- package/dist/src/unstable/cli-runtime/json-help-doc.d.ts +126 -0
- package/dist/src/unstable/cli-runtime/json-help-doc.d.ts.map +1 -0
- package/dist/src/unstable/cli-runtime/json-help-doc.js +89 -0
- package/dist/src/unstable/cli-runtime/json-help-doc.js.map +1 -0
- package/dist/src/unstable/cli-runtime/operation-plan.d.ts.map +1 -1
- package/dist/src/unstable/cli-runtime/operation-plan.js +2 -1
- package/dist/src/unstable/cli-runtime/operation-plan.js.map +1 -1
- package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts +2 -2
- package/dist/src/unstable/commands/manager.d.ts.map +1 -1
- package/dist/src/unstable/commands/manager.js +37 -166
- package/dist/src/unstable/commands/manager.js.map +1 -1
- package/dist/src/unstable/commands/operations/enable.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/enable.js +2 -9
- package/dist/src/unstable/commands/operations/enable.js.map +1 -1
- package/dist/src/unstable/commands/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/publish.js +1 -1
- package/dist/src/unstable/commands/operations/publish.js.map +1 -1
- package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +9 -9
- package/dist/src/unstable/commands/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/commands/operations/uninstall.js +2 -2
- package/dist/src/unstable/commands/operations/uninstall.js.map +1 -1
- package/dist/src/unstable/commands/paths.d.ts +1 -1
- package/dist/src/unstable/commands/paths.d.ts.map +1 -1
- package/dist/src/unstable/commands/paths.js +6 -14
- package/dist/src/unstable/commands/paths.js.map +1 -1
- package/dist/src/unstable/extensions/canonical-path.d.ts +21 -0
- package/dist/src/unstable/extensions/canonical-path.d.ts.map +1 -0
- package/dist/src/unstable/extensions/canonical-path.js +12 -0
- package/dist/src/unstable/extensions/canonical-path.js.map +1 -0
- package/dist/src/unstable/extensions/discovery-walk.d.ts +8 -0
- package/dist/src/unstable/extensions/discovery-walk.d.ts.map +1 -0
- package/dist/src/unstable/extensions/discovery-walk.js +15 -0
- package/dist/src/unstable/extensions/discovery-walk.js.map +1 -0
- package/dist/src/unstable/extensions/extension-paths.d.ts +63 -0
- package/dist/src/unstable/extensions/extension-paths.d.ts.map +1 -0
- package/dist/src/unstable/extensions/extension-paths.js +45 -0
- package/dist/src/unstable/extensions/extension-paths.js.map +1 -0
- package/dist/src/unstable/extensions/index.d.ts +3 -0
- package/dist/src/unstable/extensions/index.d.ts.map +1 -1
- package/dist/src/unstable/extensions/index.js +3 -0
- package/dist/src/unstable/extensions/index.js.map +1 -1
- package/dist/src/unstable/extensions/installable-types.d.ts +1 -2
- package/dist/src/unstable/extensions/installable-types.d.ts.map +1 -1
- package/dist/src/unstable/extensions/installable-types.js +7 -44
- package/dist/src/unstable/extensions/installable-types.js.map +1 -1
- package/dist/src/unstable/extensions/manifest-package-discovery.d.ts +28 -0
- package/dist/src/unstable/extensions/manifest-package-discovery.d.ts.map +1 -0
- package/dist/src/unstable/extensions/manifest-package-discovery.js +96 -0
- package/dist/src/unstable/extensions/manifest-package-discovery.js.map +1 -0
- package/dist/src/unstable/extensions/marker-fqn.d.ts +23 -0
- package/dist/src/unstable/extensions/marker-fqn.d.ts.map +1 -0
- package/dist/src/unstable/extensions/marker-fqn.js +10 -0
- package/dist/src/unstable/extensions/marker-fqn.js.map +1 -0
- package/dist/src/unstable/extensions/package-materialization.d.ts +44 -0
- package/dist/src/unstable/extensions/package-materialization.d.ts.map +1 -0
- package/dist/src/unstable/extensions/package-materialization.js +85 -0
- package/dist/src/unstable/extensions/package-materialization.js.map +1 -0
- package/dist/src/unstable/files/discovery.d.ts +4 -4
- package/dist/src/unstable/files/discovery.d.ts.map +1 -1
- package/dist/src/unstable/files/discovery.js +7 -94
- package/dist/src/unstable/files/discovery.js.map +1 -1
- package/dist/src/unstable/files/manager.d.ts.map +1 -1
- package/dist/src/unstable/files/manager.js +33 -133
- package/dist/src/unstable/files/manager.js.map +1 -1
- package/dist/src/unstable/hooks/discovery.d.ts +3 -3
- package/dist/src/unstable/hooks/discovery.d.ts.map +1 -1
- package/dist/src/unstable/hooks/discovery.js +6 -93
- package/dist/src/unstable/hooks/discovery.js.map +1 -1
- package/dist/src/unstable/hooks/manager.d.ts.map +1 -1
- package/dist/src/unstable/hooks/manager.js +34 -135
- package/dist/src/unstable/hooks/manager.js.map +1 -1
- package/dist/src/unstable/hooks/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/hooks/operations/publish.js +1 -1
- package/dist/src/unstable/hooks/operations/publish.js.map +1 -1
- package/dist/src/unstable/install-meta/install-meta.d.ts +1 -1
- package/dist/src/unstable/install-meta/install-meta.js +4 -4
- package/dist/src/unstable/install-meta/install-meta.js.map +1 -1
- package/dist/src/unstable/install-method/install-method.d.ts.map +1 -1
- package/dist/src/unstable/install-method/install-method.js +3 -2
- package/dist/src/unstable/install-method/install-method.js.map +1 -1
- package/dist/src/unstable/lint/catalog/command/manifest-present.d.ts +1 -2
- package/dist/src/unstable/lint/catalog/command/manifest-present.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/command/manifest-present.js +6 -20
- package/dist/src/unstable/lint/catalog/command/manifest-present.js.map +1 -1
- package/dist/src/unstable/lint/catalog/files/manifest-present.d.ts +1 -2
- package/dist/src/unstable/lint/catalog/files/manifest-present.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/files/manifest-present.js +6 -20
- package/dist/src/unstable/lint/catalog/files/manifest-present.js.map +1 -1
- package/dist/src/unstable/lint/catalog/hook/manifest-present.d.ts +1 -2
- package/dist/src/unstable/lint/catalog/hook/manifest-present.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/hook/manifest-present.js +6 -20
- package/dist/src/unstable/lint/catalog/hook/manifest-present.js.map +1 -1
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-present.d.ts +1 -2
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-present.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-present.js +6 -20
- package/dist/src/unstable/lint/catalog/mcp-server/manifest-present.js.map +1 -1
- package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts +1 -2
- package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/pack/manifest-present.js +6 -20
- package/dist/src/unstable/lint/catalog/pack/manifest-present.js.map +1 -1
- package/dist/src/unstable/lint/catalog/shared/manifest-present.d.ts +25 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-present.d.ts.map +1 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-present.js +37 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-present.js.map +1 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js +1 -1
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js.map +1 -1
- package/dist/src/unstable/lint/catalog/skill/manifest-present.d.ts +1 -2
- package/dist/src/unstable/lint/catalog/skill/manifest-present.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/skill/manifest-present.js +8 -25
- package/dist/src/unstable/lint/catalog/skill/manifest-present.js.map +1 -1
- package/dist/src/unstable/lint/catalog/subagent/manifest-present.d.ts +1 -2
- package/dist/src/unstable/lint/catalog/subagent/manifest-present.d.ts.map +1 -1
- package/dist/src/unstable/lint/catalog/subagent/manifest-present.js +6 -20
- package/dist/src/unstable/lint/catalog/subagent/manifest-present.js.map +1 -1
- 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 +3 -2
- package/dist/src/unstable/lint/catalog/workspace-read-model/lint-workspace.js.map +1 -1
- package/dist/src/unstable/lockfile/entry-fields.d.ts +34 -0
- package/dist/src/unstable/lockfile/entry-fields.d.ts.map +1 -0
- package/dist/src/unstable/lockfile/entry-fields.js +51 -0
- package/dist/src/unstable/lockfile/entry-fields.js.map +1 -0
- package/dist/src/unstable/lockfile/lockfile.d.ts +649 -649
- package/dist/src/unstable/mcps/config-writer.d.ts +2 -1
- package/dist/src/unstable/mcps/config-writer.d.ts.map +1 -1
- package/dist/src/unstable/mcps/config-writer.js.map +1 -1
- package/dist/src/unstable/mcps/operations/disable.d.ts.map +1 -1
- package/dist/src/unstable/mcps/operations/disable.js +2 -2
- package/dist/src/unstable/mcps/operations/disable.js.map +1 -1
- package/dist/src/unstable/mcps/operations/enable.d.ts.map +1 -1
- package/dist/src/unstable/mcps/operations/enable.js +5 -8
- package/dist/src/unstable/mcps/operations/enable.js.map +1 -1
- package/dist/src/unstable/mcps/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/mcps/operations/install.js +34 -13
- package/dist/src/unstable/mcps/operations/install.js.map +1 -1
- package/dist/src/unstable/mcps/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/mcps/operations/publish.js +1 -1
- package/dist/src/unstable/mcps/operations/publish.js.map +1 -1
- package/dist/src/unstable/mcps/operations/uninstall.d.ts.map +1 -1
- package/dist/src/unstable/mcps/operations/uninstall.js +4 -4
- package/dist/src/unstable/mcps/operations/uninstall.js.map +1 -1
- package/dist/src/unstable/packaging/bazel.d.ts.map +1 -1
- package/dist/src/unstable/packaging/bazel.js +2 -29
- package/dist/src/unstable/packaging/bazel.js.map +1 -1
- package/dist/src/unstable/packaging/cargo.d.ts.map +1 -1
- package/dist/src/unstable/packaging/cargo.js +1 -12
- package/dist/src/unstable/packaging/cargo.js.map +1 -1
- package/dist/src/unstable/packaging/cocoapods.d.ts.map +1 -1
- package/dist/src/unstable/packaging/cocoapods.js +1 -26
- package/dist/src/unstable/packaging/cocoapods.js.map +1 -1
- package/dist/src/unstable/packaging/composer.d.ts.map +1 -1
- package/dist/src/unstable/packaging/composer.js +1 -27
- package/dist/src/unstable/packaging/composer.js.map +1 -1
- package/dist/src/unstable/packaging/conan.d.ts.map +1 -1
- package/dist/src/unstable/packaging/conan.js +2 -13
- package/dist/src/unstable/packaging/conan.js.map +1 -1
- package/dist/src/unstable/packaging/conda.d.ts.map +1 -1
- package/dist/src/unstable/packaging/conda.js +1 -26
- package/dist/src/unstable/packaging/conda.js.map +1 -1
- package/dist/src/unstable/packaging/cpan.d.ts.map +1 -1
- package/dist/src/unstable/packaging/cpan.js +2 -27
- package/dist/src/unstable/packaging/cpan.js.map +1 -1
- package/dist/src/unstable/packaging/cran.d.ts.map +1 -1
- package/dist/src/unstable/packaging/cran.js +2 -13
- package/dist/src/unstable/packaging/cran.js.map +1 -1
- package/dist/src/unstable/packaging/docker.d.ts.map +1 -1
- package/dist/src/unstable/packaging/docker.js +1 -27
- package/dist/src/unstable/packaging/docker.js.map +1 -1
- package/dist/src/unstable/packaging/gem.d.ts.map +1 -1
- package/dist/src/unstable/packaging/gem.js +1 -12
- package/dist/src/unstable/packaging/gem.js.map +1 -1
- package/dist/src/unstable/packaging/golang.d.ts.map +1 -1
- package/dist/src/unstable/packaging/golang.js +2 -29
- package/dist/src/unstable/packaging/golang.js.map +1 -1
- package/dist/src/unstable/packaging/hackage.d.ts.map +1 -1
- package/dist/src/unstable/packaging/hackage.js +1 -12
- package/dist/src/unstable/packaging/hackage.js.map +1 -1
- package/dist/src/unstable/packaging/hex.d.ts.map +1 -1
- package/dist/src/unstable/packaging/hex.js +1 -27
- package/dist/src/unstable/packaging/hex.js.map +1 -1
- package/dist/src/unstable/packaging/huggingface.d.ts.map +1 -1
- package/dist/src/unstable/packaging/huggingface.js +2 -13
- package/dist/src/unstable/packaging/huggingface.js.map +1 -1
- package/dist/src/unstable/packaging/jsr.d.ts.map +1 -1
- package/dist/src/unstable/packaging/jsr.js +2 -28
- package/dist/src/unstable/packaging/jsr.js.map +1 -1
- package/dist/src/unstable/packaging/julia.d.ts.map +1 -1
- package/dist/src/unstable/packaging/julia.js +1 -12
- package/dist/src/unstable/packaging/julia.js.map +1 -1
- package/dist/src/unstable/packaging/luarocks.d.ts.map +1 -1
- package/dist/src/unstable/packaging/luarocks.js +1 -26
- package/dist/src/unstable/packaging/luarocks.js.map +1 -1
- package/dist/src/unstable/packaging/maven.d.ts.map +1 -1
- package/dist/src/unstable/packaging/maven.js +1 -26
- package/dist/src/unstable/packaging/maven.js.map +1 -1
- package/dist/src/unstable/packaging/mojo.d.ts.map +1 -1
- package/dist/src/unstable/packaging/mojo.js +1 -26
- package/dist/src/unstable/packaging/mojo.js.map +1 -1
- package/dist/src/unstable/packaging/npm.d.ts.map +1 -1
- package/dist/src/unstable/packaging/npm.js +1 -28
- package/dist/src/unstable/packaging/npm.js.map +1 -1
- package/dist/src/unstable/packaging/nuget.d.ts.map +1 -1
- package/dist/src/unstable/packaging/nuget.js +2 -28
- package/dist/src/unstable/packaging/nuget.js.map +1 -1
- package/dist/src/unstable/packaging/opam.d.ts.map +1 -1
- package/dist/src/unstable/packaging/opam.js +1 -12
- package/dist/src/unstable/packaging/opam.js.map +1 -1
- package/dist/src/unstable/packaging/pub.d.ts.map +1 -1
- package/dist/src/unstable/packaging/pub.js +1 -27
- package/dist/src/unstable/packaging/pub.js.map +1 -1
- package/dist/src/unstable/packaging/pypi.d.ts.map +1 -1
- package/dist/src/unstable/packaging/pypi.js +2 -26
- package/dist/src/unstable/packaging/pypi.js.map +1 -1
- package/dist/src/unstable/packaging/reader-io.d.ts +29 -0
- package/dist/src/unstable/packaging/reader-io.d.ts.map +1 -0
- package/dist/src/unstable/packaging/reader-io.js +29 -0
- package/dist/src/unstable/packaging/reader-io.js.map +1 -0
- package/dist/src/unstable/packaging/swift.d.ts.map +1 -1
- package/dist/src/unstable/packaging/swift.js +1 -25
- package/dist/src/unstable/packaging/swift.js.map +1 -1
- package/dist/src/unstable/packaging/zig.d.ts.map +1 -1
- package/dist/src/unstable/packaging/zig.js +1 -26
- package/dist/src/unstable/packaging/zig.js.map +1 -1
- package/dist/src/unstable/packs/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/packs/operations/publish.js +1 -1
- package/dist/src/unstable/packs/operations/publish.js.map +1 -1
- package/dist/src/unstable/plan/index.d.ts +2 -1
- package/dist/src/unstable/plan/index.d.ts.map +1 -1
- package/dist/src/unstable/plan/index.js +2 -0
- package/dist/src/unstable/plan/index.js.map +1 -1
- package/dist/src/unstable/plan/job-step-message.d.ts +7 -0
- package/dist/src/unstable/plan/job-step-message.d.ts.map +1 -0
- package/dist/src/unstable/plan/job-step-message.js +7 -0
- package/dist/src/unstable/plan/job-step-message.js.map +1 -0
- package/dist/src/unstable/plan/plan.d.ts +5 -2
- package/dist/src/unstable/plan/plan.d.ts.map +1 -1
- package/dist/src/unstable/plan/plan.js +10 -1
- package/dist/src/unstable/plan/plan.js.map +1 -1
- package/dist/src/unstable/plan/resolve-plan.d.ts +1 -1
- package/dist/src/unstable/publish/input-normalization.d.ts.map +1 -1
- package/dist/src/unstable/publish/input-normalization.js +3 -3
- package/dist/src/unstable/publish/input-normalization.js.map +1 -1
- package/dist/src/unstable/publish/manifest-policy.d.ts.map +1 -1
- package/dist/src/unstable/publish/manifest-policy.js +2 -2
- package/dist/src/unstable/publish/manifest-policy.js.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts +11 -11
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.js +3 -3
- package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
- package/dist/src/unstable/registry/admin-client.d.ts +4 -4
- package/dist/src/unstable/registry/client.d.ts.map +1 -1
- package/dist/src/unstable/registry/client.js +3 -2
- package/dist/src/unstable/registry/client.js.map +1 -1
- package/dist/src/unstable/registry/schema.d.ts.map +1 -1
- package/dist/src/unstable/registry/schema.js +1 -2
- package/dist/src/unstable/registry/schema.js.map +1 -1
- package/dist/src/unstable/rules/discovery.d.ts +3 -3
- package/dist/src/unstable/rules/discovery.d.ts.map +1 -1
- package/dist/src/unstable/rules/discovery.js +6 -93
- package/dist/src/unstable/rules/discovery.js.map +1 -1
- package/dist/src/unstable/rules/manager.d.ts.map +1 -1
- package/dist/src/unstable/rules/manager.js +33 -135
- package/dist/src/unstable/rules/manager.js.map +1 -1
- package/dist/src/unstable/settings/schema.d.ts +22 -75
- package/dist/src/unstable/settings/schema.d.ts.map +1 -1
- package/dist/src/unstable/settings/schema.js +34 -125
- package/dist/src/unstable/settings/schema.js.map +1 -1
- package/dist/src/unstable/skills/operations/copy.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/copy.js +1 -1
- package/dist/src/unstable/skills/operations/copy.js.map +1 -1
- package/dist/src/unstable/skills/operations/install.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/install.js +1 -1
- package/dist/src/unstable/skills/operations/install.js.map +1 -1
- package/dist/src/unstable/skills/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/skills/operations/publish.js +1 -1
- package/dist/src/unstable/skills/operations/publish.js.map +1 -1
- package/dist/src/unstable/skills/paths.d.ts +1 -1
- package/dist/src/unstable/skills/paths.d.ts.map +1 -1
- package/dist/src/unstable/skills/paths.js +4 -12
- package/dist/src/unstable/skills/paths.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/azurerepos/scp.d.ts +2 -2
- package/dist/src/unstable/source-resolution/providers/azurerepos/url.d.ts +2 -2
- package/dist/src/unstable/source-resolution/providers/bitbucket/scp.d.ts +1 -1
- package/dist/src/unstable/source-resolution/providers/bitbucket/url.d.ts +1 -1
- package/dist/src/unstable/source-resolution/providers/convention-discovery.d.ts.map +1 -1
- package/dist/src/unstable/source-resolution/providers/convention-discovery.js +3 -11
- package/dist/src/unstable/source-resolution/providers/convention-discovery.js.map +1 -1
- package/dist/src/unstable/source-resolution/providers/github/scp.d.ts +1 -1
- package/dist/src/unstable/source-resolution/providers/github/url.d.ts +1 -1
- package/dist/src/unstable/source-resolution/providers/gitlab/scp.d.ts +1 -1
- package/dist/src/unstable/source-resolution/providers/gitlab/url.d.ts +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 +2 -1
- package/dist/src/unstable/sources/lock-entry-to-ref.js.map +1 -1
- package/dist/src/unstable/sources/source-to-lock-entry.d.ts.map +1 -1
- package/dist/src/unstable/sources/source-to-lock-entry.js +6 -61
- package/dist/src/unstable/sources/source-to-lock-entry.js.map +1 -1
- package/dist/src/unstable/subagents/lock-entry-builder.d.ts.map +1 -1
- package/dist/src/unstable/subagents/lock-entry-builder.js +7 -63
- package/dist/src/unstable/subagents/lock-entry-builder.js.map +1 -1
- package/dist/src/unstable/subagents/operations/publish.d.ts.map +1 -1
- package/dist/src/unstable/subagents/operations/publish.js +1 -1
- package/dist/src/unstable/subagents/operations/publish.js.map +1 -1
- package/dist/src/unstable/subagents/paths.d.ts +1 -1
- package/dist/src/unstable/subagents/paths.d.ts.map +1 -1
- package/dist/src/unstable/subagents/paths.js +6 -14
- package/dist/src/unstable/subagents/paths.js.map +1 -1
- package/dist/src/unstable/subagents/rendering/types.d.ts +2 -7
- package/dist/src/unstable/subagents/rendering/types.d.ts.map +1 -1
- package/dist/src/unstable/subagents/rendering/types.js.map +1 -1
- package/dist/src/unstable/update-check/update-check.d.ts +1 -1
- package/dist/src/unstable/update-check/update-check.js +3 -3
- package/dist/src/unstable/update-check/update-check.js.map +1 -1
- package/dist/src/unstable/utils/environment.d.ts +1 -13
- package/dist/src/unstable/utils/environment.d.ts.map +1 -1
- package/dist/src/unstable/utils/environment.js +1 -22
- package/dist/src/unstable/utils/environment.js.map +1 -1
- package/dist/src/unstable/utils/index.d.ts +1 -1
- package/dist/src/unstable/utils/index.d.ts.map +1 -1
- package/dist/src/unstable/utils/index.js +1 -1
- package/dist/src/unstable/utils/index.js.map +1 -1
- package/dist/src/unstable/workflows/install-command/workflow.d.ts +1 -1
- package/dist/src/unstable/workflows/uninstall-command/workflow.d.ts +1 -1
- package/dist/src/unstable/workspace/display-plan.d.ts +1 -1
- package/dist/src/unstable/workspace/index.d.ts +1 -0
- package/dist/src/unstable/workspace/index.d.ts.map +1 -1
- package/dist/src/unstable/workspace/index.js +1 -0
- package/dist/src/unstable/workspace/index.js.map +1 -1
- package/dist/src/unstable/workspace/initialization.d.ts +223 -223
- package/dist/src/unstable/workspace/paths.d.ts +3 -0
- package/dist/src/unstable/workspace/paths.d.ts.map +1 -1
- package/dist/src/unstable/workspace/paths.js +7 -4
- package/dist/src/unstable/workspace/paths.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 +3 -17
- package/dist/src/unstable/workspace/read-model/discovery/skills.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js +2 -1
- package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js.map +1 -1
- package/dist/src/unstable/workspace/read-model/service.d.ts.map +1 -1
- package/dist/src/unstable/workspace/read-model/service.js +2 -1
- package/dist/src/unstable/workspace/read-model/service.js.map +1 -1
- package/dist/src/unstable/workspace/service.d.ts +309 -309
- package/package.json +6 -6
|
@@ -38,21 +38,20 @@ export interface ReadCommandContentResult extends CommandContentResult {
|
|
|
38
38
|
*/
|
|
39
39
|
export declare const readCommandContent: (canonicalPath: string, commandName: string, _errorPrefix: CommandErrorPrefix) => Effect.Effect<{
|
|
40
40
|
manifest: {
|
|
41
|
-
readonly name: string & import("effect/Brand").Brand<"ExtensionName">;
|
|
42
41
|
readonly type: "command";
|
|
43
|
-
readonly
|
|
42
|
+
readonly name: string & import("effect/Brand").Brand<"ExtensionName">;
|
|
44
43
|
readonly owner: string & import("effect/Brand").Brand<"Handle">;
|
|
45
|
-
readonly
|
|
46
|
-
readonly homepage?: string | undefined;
|
|
47
|
-
readonly $schema?: string | undefined;
|
|
44
|
+
readonly version: string & import("effect/Brand").Brand<"Version">;
|
|
48
45
|
readonly recommendedPacks?: readonly (string & import("effect/Brand").Brand<"PackSpec">)[] | undefined;
|
|
49
46
|
readonly standalone?: boolean | undefined;
|
|
47
|
+
readonly description?: string | undefined;
|
|
50
48
|
readonly keywords?: readonly string[] | undefined;
|
|
51
49
|
readonly repository?: string | {
|
|
52
50
|
readonly url: string;
|
|
53
|
-
readonly directory?: string | undefined;
|
|
54
51
|
readonly type?: string | undefined;
|
|
52
|
+
readonly directory?: string | undefined;
|
|
55
53
|
} | undefined;
|
|
54
|
+
readonly homepage?: string | undefined;
|
|
56
55
|
readonly license?: string | undefined;
|
|
57
56
|
readonly bugs?: string | {
|
|
58
57
|
readonly url?: string | undefined;
|
|
@@ -60,20 +59,21 @@ export declare const readCommandContent: (canonicalPath: string, commandName: st
|
|
|
60
59
|
} | undefined;
|
|
61
60
|
readonly authors?: readonly {
|
|
62
61
|
readonly name: string;
|
|
63
|
-
readonly url?: string | undefined;
|
|
64
62
|
readonly email?: string | undefined;
|
|
63
|
+
readonly url?: string | undefined;
|
|
65
64
|
}[] | undefined;
|
|
66
65
|
readonly packages?: readonly {
|
|
67
66
|
readonly purl: string & import("effect/Brand").Brand<"PackageIdentityPurl">;
|
|
68
67
|
readonly versionRange?: ({
|
|
69
68
|
readonly raw: string;
|
|
69
|
+
readonly scheme: string;
|
|
70
70
|
readonly constraints: readonly {
|
|
71
|
-
readonly version: string;
|
|
72
71
|
readonly comparator: "=" | "!=" | "<" | "<=" | ">" | ">=";
|
|
72
|
+
readonly version: string;
|
|
73
73
|
}[];
|
|
74
|
-
readonly scheme: string;
|
|
75
74
|
} & import("effect/Brand").Brand<"VersRange">) | undefined;
|
|
76
75
|
}[] | undefined;
|
|
76
|
+
readonly $schema?: string | undefined;
|
|
77
77
|
} | undefined;
|
|
78
78
|
contentPath: string;
|
|
79
79
|
frontmatter: Option.Option<import("../command-content.js").CommandFrontmatter>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/operations/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/operations/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAM1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAO9D;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAC/C,mBAAmB,EACnB,6BAA6B,CAC9B,CAAC;AAMF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,CAC7B,EAAE,EAAE,yBAAyB,KAC1B,MAAM,CAAC,MAAM,CAChB,aAAa,EACb,QAAQ,EACR,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,kBAAkB,GAAG,qBAAqB,CAuF5E,CAAC"}
|
|
@@ -12,7 +12,7 @@ import * as Option from "effect/Option";
|
|
|
12
12
|
import * as Path from "effect/Path";
|
|
13
13
|
import { makeAppError } from "../../app-error/index.js";
|
|
14
14
|
import { WorkspaceMutations } from "../../workspace/service-interface.js";
|
|
15
|
-
import { REGISTRY_EXTENSIONS_DIR, EXTERNAL_EXTENSIONS_DIR } from "../../extensions/index.js";
|
|
15
|
+
import { canonicalExtensionPathForLockEntry, REGISTRY_EXTENSIONS_DIR, EXTERNAL_EXTENSIONS_DIR, } from "../../extensions/index.js";
|
|
16
16
|
import { CodingAgentRepository } from "../../agents/index.js";
|
|
17
17
|
import { checkInstalledOnDisk } from "./shared-command-helpers.js";
|
|
18
18
|
// -----------------------------------------------------------------------------
|
|
@@ -63,7 +63,7 @@ export const uninstallCommand = (op) => Effect.gen(function* () {
|
|
|
63
63
|
}
|
|
64
64
|
// --- Remove canonical directory ---
|
|
65
65
|
if (lockEntry?.type === "registry") {
|
|
66
|
-
const canonicalPath = path
|
|
66
|
+
const canonicalPath = canonicalExtensionPathForLockEntry(path, base, "commands", op.args.commandName, lockEntry);
|
|
67
67
|
yield* fs.remove(canonicalPath, { recursive: true }).pipe(Effect.catch(() => Effect.void));
|
|
68
68
|
}
|
|
69
69
|
else if (installedOnDisk) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../../../../src/unstable/commands/operations/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,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,EAAE,YAAY,EAAiB,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,
|
|
1
|
+
{"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../../../../src/unstable/commands/operations/uninstall.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,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,EAAE,YAAY,EAAiB,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,kCAAkC,EAClC,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAuBnE,gFAAgF;AAChF,aAAa;AACb,gFAAgF;AAEhF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAMzB,CAAC,EAAE,EAAE,EAAE,CACT,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IAC9B,MAAM,E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
|
11
|
-
import {
|
|
11
|
+
import type { AbsolutePath } from "../utils/path-types.js";
|
|
12
12
|
/**
|
|
13
13
|
* Minimal structural discriminant for determining command path layout.
|
|
14
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../src/unstable/commands/paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../src/unstable/commands/paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;;;;GAOG;AACH,MAAM,MAAM,iBAAiB,GACzB;IAAE,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,QAAQ,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAA;CAAE,CAAC;AAEjD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC;IACrC,QAAQ,CAAC,cAAc,EAAE,YAAY,CAAC;CACvC;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,0BAA2B,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,MAAM,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,EACpC,MAAM,MAAM,EACZ,MAAM,MAAM,KACX,YAAsD,CAAC;AAE1D;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,EACpC,MAAM,MAAM,EACZ,QAAQ,iBAAiB,EACzB,eAAe,MAAM,KACpB,eAMF,CAAC"}
|
|
@@ -7,20 +7,19 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @experimental This API is unstable and may change without notice.
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
11
|
-
import { decodeAbsolutePathSync } from "../utils/path-types.js";
|
|
10
|
+
import { computeExtensionPaths, extensionContentFilename, extensionContentPath, } from "../extensions/extension-paths.js";
|
|
12
11
|
/**
|
|
13
12
|
* Content filename for a command's prompt body.
|
|
14
13
|
*
|
|
15
14
|
* @experimental This API is unstable and may change without notice.
|
|
16
15
|
*/
|
|
17
|
-
export const commandContentFilename =
|
|
16
|
+
export const commandContentFilename = extensionContentFilename;
|
|
18
17
|
/**
|
|
19
18
|
* Content path for a command's prompt body.
|
|
20
19
|
*
|
|
21
20
|
* @experimental This API is unstable and may change without notice.
|
|
22
21
|
*/
|
|
23
|
-
export const commandContentPath = (join, root, name) =>
|
|
22
|
+
export const commandContentPath = (join, root, name) => extensionContentPath(join, root, name);
|
|
24
23
|
/**
|
|
25
24
|
* Pure function to compute command directory paths.
|
|
26
25
|
*
|
|
@@ -32,17 +31,10 @@ export const commandContentPath = (join, root, name) => decodeAbsolutePathSync(j
|
|
|
32
31
|
* @experimental This API is unstable and may change without notice.
|
|
33
32
|
*/
|
|
34
33
|
export const computeCommandPaths = (join, base, source, sanitizedName) => {
|
|
35
|
-
|
|
36
|
-
const canonicalPath = join(base, REGISTRY_EXTENSIONS_DIR, source.owner, "commands", sanitizedName);
|
|
37
|
-
return {
|
|
38
|
-
canonicalPath: decodeAbsolutePathSync(canonicalPath),
|
|
39
|
-
commandSrcPath: decodeAbsolutePathSync(join(canonicalPath, "src")),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
const canonicalPath = join(base, EXTERNAL_EXTENSIONS_DIR, "commands", sanitizedName);
|
|
34
|
+
const paths = computeExtensionPaths(join, base, source, "commands", sanitizedName);
|
|
43
35
|
return {
|
|
44
|
-
canonicalPath:
|
|
45
|
-
commandSrcPath:
|
|
36
|
+
canonicalPath: paths.canonicalPath,
|
|
37
|
+
commandSrcPath: paths.extensionSrcPath,
|
|
46
38
|
};
|
|
47
39
|
};
|
|
48
40
|
//# sourceMappingURL=paths.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../../../src/unstable/commands/paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../../../src/unstable/commands/paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,kCAAkC,CAAC;AAiC1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,IAAoC,EACpC,IAAY,EACZ,IAAY,EACE,EAAE,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAE1D;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,IAAoC,EACpC,IAAY,EACZ,MAAyB,EACzB,aAAqB,EACJ,EAAE;IACnB,MAAM,KAAK,GAAG,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;IACnF,OAAO;QACL,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,cAAc,EAAE,KAAK,CAAC,gBAAgB;KACvC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical extension package path helpers.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import type * as Path from "effect/Path";
|
|
7
|
+
import type { ExtensionTypePlural } from "./common.js";
|
|
8
|
+
interface RegistryExtensionPathEntry {
|
|
9
|
+
readonly type: "registry";
|
|
10
|
+
readonly owner: string;
|
|
11
|
+
readonly name: string;
|
|
12
|
+
}
|
|
13
|
+
interface ExternalExtensionPathEntry {
|
|
14
|
+
readonly type: "github" | "gitlab" | "bitbucket" | "azurerepos" | "git" | "local" | "inline";
|
|
15
|
+
}
|
|
16
|
+
type ExtensionPathLockEntry = RegistryExtensionPathEntry | ExternalExtensionPathEntry;
|
|
17
|
+
export declare const registryExtensionPath: (path: Path.Path, base: string, owner: string, type: ExtensionTypePlural, name: string) => string;
|
|
18
|
+
export declare const externalExtensionPath: (path: Path.Path, base: string, type: ExtensionTypePlural, name: string) => string;
|
|
19
|
+
export declare const canonicalExtensionPathForLockEntry: (path: Path.Path, base: string, type: ExtensionTypePlural, externalName: string, lockEntry: ExtensionPathLockEntry) => string;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=canonical-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonical-path.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/canonical-path.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,KAAK,IAAI,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,UAAU,0BAA0B;IAClC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,0BAA0B;IAClC,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;CAC9F;AAED,KAAK,sBAAsB,GAAG,0BAA0B,GAAG,0BAA0B,CAAC;AAEtF,eAAO,MAAM,qBAAqB,GAChC,MAAM,IAAI,CAAC,IAAI,EACf,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,MAAM,mBAAmB,EACzB,MAAM,MAAM,KACX,MAAqE,CAAC;AAEzE,eAAO,MAAM,qBAAqB,GAChC,MAAM,IAAI,CAAC,IAAI,EACf,MAAM,MAAM,EACZ,MAAM,mBAAmB,EACzB,MAAM,MAAM,KACX,MAA8D,CAAC;AAElE,eAAO,MAAM,kCAAkC,GAC7C,MAAM,IAAI,CAAC,IAAI,EACf,MAAM,MAAM,EACZ,MAAM,mBAAmB,EACzB,cAAc,MAAM,EACpB,WAAW,sBAAsB,KAChC,MAGwD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical extension package path helpers.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import { EXTERNAL_EXTENSIONS_DIR, REGISTRY_EXTENSIONS_DIR } from "./constants.js";
|
|
7
|
+
export const registryExtensionPath = (path, base, owner, type, name) => path.join(base, REGISTRY_EXTENSIONS_DIR, owner, type, name);
|
|
8
|
+
export const externalExtensionPath = (path, base, type, name) => path.join(base, EXTERNAL_EXTENSIONS_DIR, type, name);
|
|
9
|
+
export const canonicalExtensionPathForLockEntry = (path, base, type, externalName, lockEntry) => lockEntry.type === "registry"
|
|
10
|
+
? registryExtensionPath(path, base, lockEntry.owner, type, lockEntry.name)
|
|
11
|
+
: externalExtensionPath(path, base, type, externalName);
|
|
12
|
+
//# sourceMappingURL=canonical-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonical-path.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/canonical-path.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAclF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAe,EACf,IAAY,EACZ,KAAa,EACb,IAAyB,EACzB,IAAY,EACJ,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,uBAAuB,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAe,EACf,IAAY,EACZ,IAAyB,EACzB,IAAY,EACJ,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,IAAe,EACf,IAAY,EACZ,IAAyB,EACzB,YAAoB,EACpB,SAAiC,EACzB,EAAE,CACV,SAAS,CAAC,IAAI,KAAK,UAAU;IAC3B,CAAC,CAAC,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC;IAC1E,CAAC,CAAC,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared recursive discovery walk policy for extension scanners.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DISCOVERY_SKIPPED_DIRECTORIES: ReadonlySet<string>;
|
|
7
|
+
export declare const DISCOVERY_MAX_DEPTH = 5;
|
|
8
|
+
//# sourceMappingURL=discovery-walk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery-walk.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/discovery-walk.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,6BAA6B,EAAE,WAAW,CAAC,MAAM,CAO5D,CAAC;AAEH,eAAO,MAAM,mBAAmB,IAAI,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared recursive discovery walk policy for extension scanners.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
export const DISCOVERY_SKIPPED_DIRECTORIES = new Set([
|
|
7
|
+
"node_modules",
|
|
8
|
+
".git",
|
|
9
|
+
".axm",
|
|
10
|
+
"dist",
|
|
11
|
+
"build",
|
|
12
|
+
"__pycache__",
|
|
13
|
+
]);
|
|
14
|
+
export const DISCOVERY_MAX_DEPTH = 5;
|
|
15
|
+
//# sourceMappingURL=discovery-walk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery-walk.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/discovery-walk.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAAwB,IAAI,GAAG,CAAC;IACxE,cAAc;IACd,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,aAAa;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared extension directory path helpers.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import type { Handle } from "./handle.js";
|
|
7
|
+
import type { ExtensionTypePlural } from "./common.js";
|
|
8
|
+
import { type AbsolutePath } from "../utils/path-types.js";
|
|
9
|
+
/**
|
|
10
|
+
* Minimal structural discriminant for determining installed extension path layout.
|
|
11
|
+
*
|
|
12
|
+
* Registry refs carry an owner for the canonical path; all other ref types
|
|
13
|
+
* use the shared external extensions directory.
|
|
14
|
+
*
|
|
15
|
+
* @experimental This API is unstable and may change without notice.
|
|
16
|
+
*/
|
|
17
|
+
export type ExtensionPathSource = {
|
|
18
|
+
readonly refType: "registry";
|
|
19
|
+
readonly owner: Handle;
|
|
20
|
+
} | {
|
|
21
|
+
readonly refType: "git-hosted" | "local";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Computed paths for an installed extension directory.
|
|
25
|
+
*
|
|
26
|
+
* - `canonicalPath`: root of the installed extension
|
|
27
|
+
* - `extensionSrcPath`: where actual extension source files live
|
|
28
|
+
*
|
|
29
|
+
* Non-registry: `canonicalPath === extensionSrcPath` = `<base>/.axm/extensions/external/<type>/<sanitized-name>`
|
|
30
|
+
* Registry: `canonicalPath` = `<base>/.axm/extensions/<owner>/<type>/<sanitized-name>`,
|
|
31
|
+
* `extensionSrcPath` = `<canonicalPath>/src`
|
|
32
|
+
*
|
|
33
|
+
* @experimental This API is unstable and may change without notice.
|
|
34
|
+
*/
|
|
35
|
+
export interface ExtensionDirPaths {
|
|
36
|
+
readonly canonicalPath: AbsolutePath;
|
|
37
|
+
readonly extensionSrcPath: AbsolutePath;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Content filename for markdown-backed extension bodies.
|
|
41
|
+
*
|
|
42
|
+
* @experimental This API is unstable and may change without notice.
|
|
43
|
+
*/
|
|
44
|
+
export declare const extensionContentFilename: (name: string) => string;
|
|
45
|
+
/**
|
|
46
|
+
* Content path for markdown-backed extension bodies.
|
|
47
|
+
*
|
|
48
|
+
* @experimental This API is unstable and may change without notice.
|
|
49
|
+
*/
|
|
50
|
+
export declare const extensionContentPath: (join: (...paths: string[]) => string, root: string, name: string) => AbsolutePath;
|
|
51
|
+
/**
|
|
52
|
+
* Pure function to compute extension directory paths.
|
|
53
|
+
*
|
|
54
|
+
* @param join - Path join function (e.g., `path.join`)
|
|
55
|
+
* @param base - Workspace root (parent of `.axm`)
|
|
56
|
+
* @param source - Source type discriminant
|
|
57
|
+
* @param type - Extension type plural directory segment
|
|
58
|
+
* @param sanitizedName - Sanitized extension name for filesystem use
|
|
59
|
+
*
|
|
60
|
+
* @experimental This API is unstable and may change without notice.
|
|
61
|
+
*/
|
|
62
|
+
export declare const computeExtensionPaths: (join: (...paths: string[]) => string, base: string, source: ExtensionPathSource, type: ExtensionTypePlural, sanitizedName: string) => ExtensionDirPaths;
|
|
63
|
+
//# sourceMappingURL=extension-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-paths.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/extension-paths.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEnF;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAC3B;IAAE,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,QAAQ,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAA;CAAE,CAAC;AAEjD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC;IACrC,QAAQ,CAAC,gBAAgB,EAAE,YAAY,CAAC;CACzC;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,KAAG,MAAsB,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,MAAM,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,EACpC,MAAM,MAAM,EACZ,MAAM,MAAM,KACX,YAAkF,CAAC;AAEtF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,GAChC,MAAM,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,EACpC,MAAM,MAAM,EACZ,QAAQ,mBAAmB,EAC3B,MAAM,mBAAmB,EACzB,eAAe,MAAM,KACpB,iBAaF,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared extension directory path helpers.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import { EXTERNAL_EXTENSIONS_DIR, REGISTRY_EXTENSIONS_DIR } from "./constants.js";
|
|
7
|
+
import { decodeAbsolutePathSync } from "../utils/path-types.js";
|
|
8
|
+
/**
|
|
9
|
+
* Content filename for markdown-backed extension bodies.
|
|
10
|
+
*
|
|
11
|
+
* @experimental This API is unstable and may change without notice.
|
|
12
|
+
*/
|
|
13
|
+
export const extensionContentFilename = (name) => `${name}.md`;
|
|
14
|
+
/**
|
|
15
|
+
* Content path for markdown-backed extension bodies.
|
|
16
|
+
*
|
|
17
|
+
* @experimental This API is unstable and may change without notice.
|
|
18
|
+
*/
|
|
19
|
+
export const extensionContentPath = (join, root, name) => decodeAbsolutePathSync(join(root, extensionContentFilename(name)));
|
|
20
|
+
/**
|
|
21
|
+
* Pure function to compute extension directory paths.
|
|
22
|
+
*
|
|
23
|
+
* @param join - Path join function (e.g., `path.join`)
|
|
24
|
+
* @param base - Workspace root (parent of `.axm`)
|
|
25
|
+
* @param source - Source type discriminant
|
|
26
|
+
* @param type - Extension type plural directory segment
|
|
27
|
+
* @param sanitizedName - Sanitized extension name for filesystem use
|
|
28
|
+
*
|
|
29
|
+
* @experimental This API is unstable and may change without notice.
|
|
30
|
+
*/
|
|
31
|
+
export const computeExtensionPaths = (join, base, source, type, sanitizedName) => {
|
|
32
|
+
if (source.refType === "registry") {
|
|
33
|
+
const canonicalPath = join(base, REGISTRY_EXTENSIONS_DIR, source.owner, type, sanitizedName);
|
|
34
|
+
return {
|
|
35
|
+
canonicalPath: decodeAbsolutePathSync(canonicalPath),
|
|
36
|
+
extensionSrcPath: decodeAbsolutePathSync(join(canonicalPath, "src")),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
const canonicalPath = join(base, EXTERNAL_EXTENSIONS_DIR, type, sanitizedName);
|
|
40
|
+
return {
|
|
41
|
+
canonicalPath: decodeAbsolutePathSync(canonicalPath),
|
|
42
|
+
extensionSrcPath: decodeAbsolutePathSync(canonicalPath),
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=extension-paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-paths.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/extension-paths.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAElF,OAAO,EAAE,sBAAsB,EAAqB,MAAM,wBAAwB,CAAC;AA+BnF;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,GAAG,IAAI,KAAK,CAAC;AAE/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,IAAoC,EACpC,IAAY,EACZ,IAAY,EACE,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEtF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,IAAoC,EACpC,IAAY,EACZ,MAA2B,EAC3B,IAAyB,EACzB,aAAqB,EACF,EAAE;IACrB,IAAI,MAAM,CAAC,OAAO,KAAK,UAAU,EAAE,CAAC;QAClC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,EAAE,uBAAuB,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;QAC7F,OAAO;YACL,aAAa,EAAE,sBAAsB,CAAC,aAAa,CAAC;YACpD,gBAAgB,EAAE,sBAAsB,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;SACrE,CAAC;IACJ,CAAC;IACD,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,aAAa,CAAC,CAAC;IAC/E,OAAO;QACL,aAAa,EAAE,sBAAsB,CAAC,aAAa,CAAC;QACpD,gBAAgB,EAAE,sBAAsB,CAAC,aAAa,CAAC;KACxD,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -11,6 +11,7 @@ export { installableExtensionTypes, installableExtensionTypePluralSegments, Inst
|
|
|
11
11
|
export { HANDLE_PATTERN, HANDLE_PATTERN_SOURCE, HandleSchema, SLUG_PATTERN, SLUG_PATTERN_SOURCE, SlugSchema, decodeHandleSync, decodeSlugSync, handleFromSlug, normalizeHandle, normalizeSlug, slugFromHandle, type Handle, type Slug, } from "./handle.js";
|
|
12
12
|
export { formatFqn, parseFqn, parseFqnOrThrow, FqnInvalidError, fqnInvalidErrorToAppError, } from "./fqn.js";
|
|
13
13
|
export { EXTERNAL_EXTENSIONS_DIR, REGISTRY_EXTENSIONS_DIR } from "./constants.js";
|
|
14
|
+
export { canonicalExtensionPathForLockEntry, externalExtensionPath, registryExtensionPath, } from "./canonical-path.js";
|
|
14
15
|
export { UNIVERSAL_SKILLS_DIR, UNIVERSAL_SKILLS_DIR_SEGMENT, isUniversalSkillsDir, isUniversalSkillsRelativeDir, resolveUniversalDirPresence, stripTrailingSeparators, } from "./universal-skills-dir.js";
|
|
15
16
|
export type { ExtensionRefBase, SkillExtensionRefBase, CommandExtensionRefBase, McpServerExtensionRefBase, PackRefBase, GitHostedRefDetails, RegistryRefDetails, LocalRefDetails, } from "./ref-base.js";
|
|
16
17
|
export type { ExtensionRef } from "./refs.js";
|
|
@@ -22,5 +23,7 @@ export { configuredCommandsToDiskRefs, configuredMcpServersToDiskRefs, configure
|
|
|
22
23
|
export { RenderedFilePathSchema, RenderedFilesMapSchema, SourceHashSchema, computeSourceHash, type RenderedFilePath, type RenderedFilesMap, type SourceHash, } from "./rendered-files.js";
|
|
23
24
|
export { parseFrontmatterEffect, parseFrontmatterSync, type FrontmatterResult, } from "./frontmatter.js";
|
|
24
25
|
export { insertManagedFileBanner, managedFileFormatForPath, stripManagedFileBanner, type ManagedFileBannerOptions, type ManagedFileFormat, } from "./managed-file-banner.js";
|
|
26
|
+
export { materializeExternalPackage, materializeRegistryPackage, type MaterializeExternalPackageArgs, type MaterializeRegistryPackageArgs, type RegistryPackageMaterializationMessages, } from "./package-materialization.js";
|
|
27
|
+
export { markerFqnForRef, type MarkerFqnRef } from "./marker-fqn.js";
|
|
25
28
|
export { applyOverrides, warnOnOrphanOverrides, type AgentOverrides, type AllAgentOverrides, } from "./agent-overrides.js";
|
|
26
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,sCAAsC,EACtC,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,6CAA6C,EAC7C,yBAAyB,EACzB,qBAAqB,EACrB,kCAAkC,EAClC,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,EAC3B,yBAAyB,EACzB,iCAAiC,EACjC,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,QAAQ,EACR,KAAK,MAAM,EACX,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,gCAAgC,EACrC,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,uCAAuC,EAC5C,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,QAAQ,GACd,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAC5B,uBAAuB,EACvB,gCAAgC,EAChC,uBAAuB,EACvB,+BAA+B,EAC/B,sBAAsB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,yBAAyB,EACzB,sCAAsC,EACtC,8BAA8B,EAC9B,oCAAoC,EACpC,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,GACpC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,aAAa,EACb,cAAc,EACd,KAAK,MAAM,EACX,KAAK,IAAI,GACV,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,SAAS,EACT,QAAQ,EACR,eAAe,EACf,eAAe,EACf,yBAAyB,GAC1B,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,sCAAsC,EACtC,mBAAmB,EACnB,WAAW,E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B,EAC1B,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,UAAU,GAChB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,KAAK,iBAAiB,GACvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,GACvB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,sCAAsC,GAC5C,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,MAAM,sBAAsB,CAAC"}
|
|
@@ -14,6 +14,7 @@ export { HANDLE_PATTERN, HANDLE_PATTERN_SOURCE, HandleSchema, SLUG_PATTERN, SLUG
|
|
|
14
14
|
export { formatFqn, parseFqn, parseFqnOrThrow, FqnInvalidError, fqnInvalidErrorToAppError, } from "./fqn.js";
|
|
15
15
|
// Constants
|
|
16
16
|
export { EXTERNAL_EXTENSIONS_DIR, REGISTRY_EXTENSIONS_DIR } from "./constants.js";
|
|
17
|
+
export { canonicalExtensionPathForLockEntry, externalExtensionPath, registryExtensionPath, } from "./canonical-path.js";
|
|
17
18
|
export { UNIVERSAL_SKILLS_DIR, UNIVERSAL_SKILLS_DIR_SEGMENT, isUniversalSkillsDir, isUniversalSkillsRelativeDir, resolveUniversalDirPresence, stripTrailingSeparators, } from "./universal-skills-dir.js";
|
|
18
19
|
// Shared utilities
|
|
19
20
|
export { sanitizeName, copyExtensionDirectory, validatePathSafety } from "./utils.js";
|
|
@@ -28,5 +29,7 @@ export { RenderedFilePathSchema, RenderedFilesMapSchema, SourceHashSchema, compu
|
|
|
28
29
|
// Frontmatter parsing
|
|
29
30
|
export { parseFrontmatterEffect, parseFrontmatterSync, } from "./frontmatter.js";
|
|
30
31
|
export { insertManagedFileBanner, managedFileFormatForPath, stripManagedFileBanner, } from "./managed-file-banner.js";
|
|
32
|
+
export { materializeExternalPackage, materializeRegistryPackage, } from "./package-materialization.js";
|
|
33
|
+
export { markerFqnForRef } from "./marker-fqn.js";
|
|
31
34
|
export { applyOverrides, warnOnOrphanOverrides, } from "./agent-overrides.js";
|
|
32
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2BAA2B;AAC3B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,sCAAsC,EACtC,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,6CAA6C,EAC7C,yBAAyB,EACzB,qBAAqB,EACrB,kCAAkC,EAClC,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,EAC3B,yBAAyB,EACzB,iCAAiC,EACjC,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,QAAQ,GAeT,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EACL,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAC5B,uBAAuB,EACvB,gCAAgC,EAChC,uBAAuB,EACvB,+BAA+B,EAC/B,sBAAsB,GAGvB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,yBAAyB,EACzB,sCAAsC,EACtC,8BAA8B,EAC9B,oCAAoC,EACpC,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,GAGjC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,aAAa,EACb,cAAc,GAGf,MAAM,aAAa,CAAC;AAErB,cAAc;AACd,OAAO,EACL,SAAS,EACT,QAAQ,EACR,eAAe,EACf,eAAe,EACf,yBAAyB,GAC1B,MAAM,UAAU,CAAC;AAElB,YAAY;AACZ,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2BAA2B;AAC3B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,sCAAsC,EACtC,mBAAmB,EACnB,WAAW,EACX,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,6CAA6C,EAC7C,yBAAyB,EACzB,qBAAqB,EACrB,kCAAkC,EAClC,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,EAC3B,yBAAyB,EACzB,iCAAiC,EACjC,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,EAC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,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,uBAAuB;AACvB,OAAO,EAML,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACb,OAAO,EACP,qBAAqB,EACrB,SAAS,GACV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AAEvC,0BAA0B;AAC1B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,GAIlB,MAAM,qBAAqB,CAAC;AAE7B,sBAAsB;AACtB,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GAErB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,GAGvB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,GAI3B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAqB,MAAM,iBAAiB,CAAC;AAErE,OAAO,EACL,cAAc,EACd,qBAAqB,GAGtB,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
import type { ExtensionType } from "./common.js";
|
|
3
2
|
export declare const installableExtensionTypes: readonly ["skill", "command", "mcp-server", "subagent", "files", "rule", "hook", "pack"];
|
|
4
3
|
export type InstallableExtensionType = (typeof installableExtensionTypes)[number];
|
|
5
|
-
export declare const isInstallableExtensionType: (value:
|
|
4
|
+
export declare const isInstallableExtensionType: (value: string | undefined) => value is InstallableExtensionType;
|
|
6
5
|
export declare const installableExtensionTypePluralSegments: readonly ["skills", "commands", "mcps", "subagents", "files", "rules", "hooks", "packs"];
|
|
7
6
|
export type InstallableExtensionTypePlural = (typeof installableExtensionTypePluralSegments)[number];
|
|
8
7
|
export declare const isInstallableExtensionTypePlural: (value: string | undefined) => value is InstallableExtensionTypePlural;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installable-types.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/installable-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"installable-types.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/installable-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAWxC,eAAO,MAAM,yBAAyB,0FAAiB,CAAC;AAExD,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElF,eAAO,MAAM,0BAA0B,GACrC,OAAO,MAAM,GAAG,SAAS,KACxB,KAAK,IAAI,wBAAkD,CAAC;AAE/D,eAAO,MAAM,sCAAsC,0FAA8B,CAAC;AAElF,MAAM,MAAM,8BAA8B,GACxC,CAAC,OAAO,sCAAsC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,gCAAgC,GAC3C,OAAO,MAAM,GAAG,SAAS,KACxB,KAAK,IAAI,8BAA8D,CAAC;AAY3E,eAAO,MAAM,0BAA0B,GACrC,SAAS,8BAA8B,KACtC,wBAAuE,CAAC;AAE3E,eAAO,MAAM,gCAAgC,GAC3C,MAAM,wBAAwB,KAC7B,8BAAwE,CAAC;AAE5E,eAAO,MAAM,8BAA8B,2GAIzC,CAAC;AAEH,eAAO,MAAM,oCAAoC,2GAO/C,CAAC"}
|
|
@@ -1,48 +1,11 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"hook",
|
|
10
|
-
"pack",
|
|
11
|
-
];
|
|
12
|
-
const installableExtensionTypeSet = new Set(installableExtensionTypes);
|
|
13
|
-
export const isInstallableExtensionType = (value) => installableExtensionTypeSet.has(value);
|
|
14
|
-
export const installableExtensionTypePluralSegments = [
|
|
15
|
-
"skills",
|
|
16
|
-
"commands",
|
|
17
|
-
"mcps",
|
|
18
|
-
"subagents",
|
|
19
|
-
"files",
|
|
20
|
-
"rules",
|
|
21
|
-
"hooks",
|
|
22
|
-
"packs",
|
|
23
|
-
];
|
|
24
|
-
const installableExtensionTypePluralSet = new Set(installableExtensionTypePluralSegments);
|
|
25
|
-
export const isInstallableExtensionTypePlural = (value) => value !== undefined && installableExtensionTypePluralSet.has(value);
|
|
26
|
-
const installableExtensionTypeFromPlural = {
|
|
27
|
-
skills: "skill",
|
|
28
|
-
commands: "command",
|
|
29
|
-
mcps: "mcp-server",
|
|
30
|
-
subagents: "subagent",
|
|
31
|
-
files: "files",
|
|
32
|
-
rules: "rule",
|
|
33
|
-
hooks: "hook",
|
|
34
|
-
packs: "pack",
|
|
35
|
-
};
|
|
36
|
-
const installableExtensionTypeToPlural = {
|
|
37
|
-
skill: "skills",
|
|
38
|
-
command: "commands",
|
|
39
|
-
"mcp-server": "mcps",
|
|
40
|
-
subagent: "subagents",
|
|
41
|
-
files: "files",
|
|
42
|
-
rule: "rules",
|
|
43
|
-
hook: "hooks",
|
|
44
|
-
pack: "packs",
|
|
45
|
-
};
|
|
2
|
+
import { extensionTypeFromPlural, extensionTypePluralSegments, extensionTypes, extensionTypeToPlural, isExtensionType, isExtensionTypePlural, } from "./common.js";
|
|
3
|
+
export const installableExtensionTypes = extensionTypes;
|
|
4
|
+
export const isInstallableExtensionType = (value) => isExtensionType(value);
|
|
5
|
+
export const installableExtensionTypePluralSegments = extensionTypePluralSegments;
|
|
6
|
+
export const isInstallableExtensionTypePlural = (value) => isExtensionTypePlural(value);
|
|
7
|
+
const installableExtensionTypeFromPlural = extensionTypeFromPlural;
|
|
8
|
+
const installableExtensionTypeToPlural = extensionTypeToPlural;
|
|
46
9
|
export const toInstallableExtensionType = (segment) => installableExtensionTypeFromPlural[segment];
|
|
47
10
|
export const toInstallableExtensionTypePlural = (type) => installableExtensionTypeToPlural[type];
|
|
48
11
|
export const InstallableExtensionTypeSchema = Schema.Literals(installableExtensionTypes).annotate({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installable-types.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/installable-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"installable-types.js","sourceRoot":"","sources":["../../../../src/unstable/extensions/installable-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,yBAAyB,GAAG,cAAc,CAAC;AAIxD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,KAAyB,EACU,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAE/D,MAAM,CAAC,MAAM,sCAAsC,GAAG,2BAA2B,CAAC;AAKlF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,KAAyB,EACgB,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,kCAAkC,GAGpC,uBAAuB,CAAC;AAE5B,MAAM,gCAAgC,GAGlC,qBAAqB,CAAC;AAE1B,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,OAAuC,EACb,EAAE,CAAC,kCAAkC,CAAC,OAAO,CAAC,CAAC;AAE3E,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,IAA8B,EACE,EAAE,CAAC,gCAAgC,CAAC,IAAI,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,8BAA8B,GAAG,MAAM,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC,QAAQ,CAAC;IAChG,UAAU,EAAE,0BAA0B;IACtC,KAAK,EAAE,4BAA4B;IACnC,WAAW,EAAE,uEAAuE;CACrF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oCAAoC,GAAG,MAAM,CAAC,QAAQ,CACjE,sCAAsC,CACvC,CAAC,QAAQ,CAAC;IACT,UAAU,EAAE,gCAAgC;IAC5C,KAAK,EAAE,qCAAqC;IAC5C,WAAW,EACT,sFAAsF;CACzF,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared manifest package discovery for local and git sources.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as FileSystem from "effect/FileSystem";
|
|
8
|
+
import * as Path from "effect/Path";
|
|
9
|
+
import * as Schema from "effect/Schema";
|
|
10
|
+
interface ManifestWithName {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DiscoveredManifestPackage<Type extends string, Manifest extends ManifestWithName> {
|
|
14
|
+
readonly type: Type;
|
|
15
|
+
readonly manifest: Manifest;
|
|
16
|
+
readonly location: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ManifestPackageDiscoveryOptions {
|
|
19
|
+
readonly fullDepth: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ManifestPackageDiscoveryConfig<Type extends string, Manifest extends ManifestWithName> {
|
|
22
|
+
readonly type: Type;
|
|
23
|
+
readonly manifestFilename: string;
|
|
24
|
+
readonly manifestSchema: Schema.Decoder<Manifest>;
|
|
25
|
+
}
|
|
26
|
+
export declare const discoverManifestPackagesInDir: <Type extends string, Manifest extends ManifestWithName>(config: ManifestPackageDiscoveryConfig<Type, Manifest>) => (searchPath: string, options: ManifestPackageDiscoveryOptions) => Effect.Effect<ReadonlyArray<DiscoveredManifestPackage<Type, Manifest>>, never, FileSystem.FileSystem | Path.Path>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=manifest-package-discovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest-package-discovery.d.ts","sourceRoot":"","sources":["../../../../src/unstable/extensions/manifest-package-discovery.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB,CAAC,IAAI,SAAS,MAAM,EAAE,QAAQ,SAAS,gBAAgB;IAC/F,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,8BAA8B,CAC7C,IAAI,SAAS,MAAM,EACnB,QAAQ,SAAS,gBAAgB;IAEjC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;CACnD;AAED,eAAO,MAAM,6BAA6B,GACvC,IAAI,SAAS,MAAM,EAAE,QAAQ,SAAS,gBAAgB,EACrD,QAAQ,8BAA8B,CAAC,IAAI,EAAE,QAAQ,CAAC,MAGtD,YAAY,MAAM,EAClB,SAAS,+BAA+B,KACvC,MAAM,CAAC,MAAM,CACd,aA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