@axm.sh/cli 0.0.7 → 0.0.8
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/agents/detection.d.ts +3 -16
- package/dist/src/agents/detection.d.ts.map +1 -1
- package/dist/src/agents/detection.js +4 -13
- package/dist/src/agents/detection.js.map +1 -1
- package/dist/src/agents/index.d.ts +1 -1
- package/dist/src/agents/index.d.ts.map +1 -1
- package/dist/src/agents/index.js +1 -1
- package/dist/src/agents/index.js.map +1 -1
- package/dist/src/cli-commands/init/handler.d.ts +1 -1
- package/dist/src/cli-commands/init/handler.d.ts.map +1 -1
- package/dist/src/cli-commands/init/handler.js +1 -1
- package/dist/src/cli-commands/init/handler.js.map +1 -1
- package/dist/src/cli-commands/skills/command.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/command.js +6 -0
- package/dist/src/cli-commands/skills/command.js.map +1 -1
- package/dist/src/cli-commands/skills/constants.d.ts +9 -0
- package/dist/src/cli-commands/skills/constants.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/constants.js +9 -0
- package/dist/src/cli-commands/skills/constants.js.map +1 -0
- package/dist/src/cli-commands/skills/copy-skill.d.ts +1 -1
- package/dist/src/cli-commands/skills/copy-skill.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/copy-skill.js +11 -24
- package/dist/src/cli-commands/skills/copy-skill.js.map +1 -1
- package/dist/src/cli-commands/skills/disable/command.d.ts +15 -0
- package/dist/src/cli-commands/skills/disable/command.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/disable/command.js +56 -0
- package/dist/src/cli-commands/skills/disable/command.js.map +1 -0
- package/dist/src/cli-commands/skills/disable/disable-skill.d.ts +25 -0
- package/dist/src/cli-commands/skills/disable/disable-skill.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/disable/disable-skill.js +101 -0
- package/dist/src/cli-commands/skills/disable/disable-skill.js.map +1 -0
- package/dist/src/cli-commands/skills/disable/handler.d.ts +18 -0
- package/dist/src/cli-commands/skills/disable/handler.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/disable/handler.js +72 -0
- package/dist/src/cli-commands/skills/disable/handler.js.map +1 -0
- package/dist/src/cli-commands/skills/enable/command.d.ts +15 -0
- package/dist/src/cli-commands/skills/enable/command.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/enable/command.js +56 -0
- package/dist/src/cli-commands/skills/enable/command.js.map +1 -0
- package/dist/src/cli-commands/skills/enable/enable-skill.d.ts +26 -0
- package/dist/src/cli-commands/skills/enable/enable-skill.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/enable/enable-skill.js +138 -0
- package/dist/src/cli-commands/skills/enable/enable-skill.js.map +1 -0
- package/dist/src/cli-commands/skills/enable/handler.d.ts +18 -0
- package/dist/src/cli-commands/skills/enable/handler.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/enable/handler.js +72 -0
- package/dist/src/cli-commands/skills/enable/handler.js.map +1 -0
- package/dist/src/cli-commands/skills/fork/handler.d.ts +4 -13
- package/dist/src/cli-commands/skills/fork/handler.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/fork/handler.js +37 -29
- package/dist/src/cli-commands/skills/fork/handler.js.map +1 -1
- package/dist/src/cli-commands/skills/fs-helpers.d.ts +12 -0
- package/dist/src/cli-commands/skills/fs-helpers.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/fs-helpers.js +12 -0
- package/dist/src/cli-commands/skills/fs-helpers.js.map +1 -0
- package/dist/src/cli-commands/skills/install/discover-skills.d.ts +3 -18
- package/dist/src/cli-commands/skills/install/discover-skills.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/install/discover-skills.js +7 -20
- package/dist/src/cli-commands/skills/install/discover-skills.js.map +1 -1
- package/dist/src/cli-commands/skills/install/handler.d.ts +1 -16
- package/dist/src/cli-commands/skills/install/handler.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/install/handler.js +20 -27
- package/dist/src/cli-commands/skills/install/handler.js.map +1 -1
- package/dist/src/cli-commands/skills/install/install-skill.d.ts +1 -1
- package/dist/src/cli-commands/skills/install/install-skill.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/install/install-skill.js +12 -18
- package/dist/src/cli-commands/skills/install/install-skill.js.map +1 -1
- package/dist/src/cli-commands/skills/install/select-skills.d.ts +4 -5
- package/dist/src/cli-commands/skills/install/select-skills.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/install/select-skills.js +13 -13
- package/dist/src/cli-commands/skills/install/select-skills.js.map +1 -1
- package/dist/src/cli-commands/skills/install/skill-utils.d.ts +1 -6
- package/dist/src/cli-commands/skills/install/skill-utils.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/install/skill-utils.js +8 -4
- package/dist/src/cli-commands/skills/install/skill-utils.js.map +1 -1
- package/dist/src/cli-commands/skills/list/handler.d.ts +1 -1
- package/dist/src/cli-commands/skills/list/handler.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/list/handler.js +1 -1
- package/dist/src/cli-commands/skills/list/handler.js.map +1 -1
- package/dist/src/cli-commands/skills/naming.d.ts +17 -0
- package/dist/src/cli-commands/skills/naming.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/naming.js +20 -0
- package/dist/src/cli-commands/skills/naming.js.map +1 -0
- package/dist/src/cli-commands/skills/operations.d.ts +25 -1
- package/dist/src/cli-commands/skills/operations.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/publish/handler.d.ts +1 -10
- package/dist/src/cli-commands/skills/publish/handler.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/publish/handler.js +31 -47
- package/dist/src/cli-commands/skills/publish/handler.js.map +1 -1
- package/dist/src/cli-commands/skills/publish-skill.d.ts +1 -1
- package/dist/src/cli-commands/skills/publish-skill.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/publish-skill.js +37 -52
- package/dist/src/cli-commands/skills/publish-skill.js.map +1 -1
- package/dist/src/cli-commands/skills/rename/command.d.ts +16 -0
- package/dist/src/cli-commands/skills/rename/command.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/rename/command.js +62 -0
- package/dist/src/cli-commands/skills/rename/command.js.map +1 -0
- package/dist/src/cli-commands/skills/rename/handler.d.ts +20 -0
- package/dist/src/cli-commands/skills/rename/handler.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/rename/handler.js +77 -0
- package/dist/src/cli-commands/skills/rename/handler.js.map +1 -0
- package/dist/src/cli-commands/skills/rename/rename-skill.d.ts +25 -0
- package/dist/src/cli-commands/skills/rename/rename-skill.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/rename/rename-skill.js +110 -0
- package/dist/src/cli-commands/skills/rename/rename-skill.js.map +1 -0
- package/dist/src/cli-commands/skills/uninstall/handler.d.ts +1 -1
- package/dist/src/cli-commands/skills/uninstall/handler.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/uninstall/handler.js +12 -1
- package/dist/src/cli-commands/skills/uninstall/handler.js.map +1 -1
- package/dist/src/cli-commands/skills/uninstall/uninstall-skill.d.ts +1 -1
- package/dist/src/cli-commands/skills/uninstall/uninstall-skill.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/uninstall/uninstall-skill.js +14 -23
- package/dist/src/cli-commands/skills/uninstall/uninstall-skill.js.map +1 -1
- package/dist/src/cli-commands/skills/update/build-plan.d.ts +7 -2
- package/dist/src/cli-commands/skills/update/build-plan.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/update/build-plan.js +28 -20
- package/dist/src/cli-commands/skills/update/build-plan.js.map +1 -1
- package/dist/src/cli-commands/skills/update/handler.d.ts +11 -20
- package/dist/src/cli-commands/skills/update/handler.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/update/handler.js +161 -90
- package/dist/src/cli-commands/skills/update/handler.js.map +1 -1
- package/dist/src/cli-commands/skills/utils.d.ts +2 -16
- package/dist/src/cli-commands/skills/utils.d.ts.map +1 -1
- package/dist/src/cli-commands/skills/utils.js +36 -20
- package/dist/src/cli-commands/skills/utils.js.map +1 -1
- package/dist/src/cli-error/cli-error.d.ts +21 -0
- package/dist/src/cli-error/cli-error.d.ts.map +1 -0
- package/dist/src/cli-error/cli-error.js +12 -0
- package/dist/src/cli-error/cli-error.js.map +1 -0
- package/dist/src/cli-error/index.d.ts +3 -0
- package/dist/src/cli-error/index.d.ts.map +1 -0
- package/dist/src/cli-error/index.js +3 -0
- package/dist/src/cli-error/index.js.map +1 -0
- package/dist/src/cli-error/render.d.ts +4 -0
- package/dist/src/cli-error/render.d.ts.map +1 -0
- package/dist/src/cli-error/render.js +25 -0
- package/dist/src/cli-error/render.js.map +1 -0
- package/dist/src/extensions/skills/index.d.ts +0 -5
- package/dist/src/extensions/skills/index.d.ts.map +1 -1
- package/dist/src/extensions/skills/index.js +1 -4
- package/dist/src/extensions/skills/index.js.map +1 -1
- package/dist/src/extensions/skills/state/index.d.ts +2 -2
- package/dist/src/extensions/skills/state/index.d.ts.map +1 -1
- package/dist/src/extensions/skills/state/index.js +1 -1
- package/dist/src/extensions/skills/state/index.js.map +1 -1
- package/dist/src/extensions/skills/state/pure-functions.d.ts +4 -29
- package/dist/src/extensions/skills/state/pure-functions.d.ts.map +1 -1
- package/dist/src/extensions/skills/state/pure-functions.js +4 -37
- package/dist/src/extensions/skills/state/pure-functions.js.map +1 -1
- package/dist/src/extensions/skills/state/types.d.ts +0 -1
- package/dist/src/extensions/skills/state/types.d.ts.map +1 -1
- package/dist/src/extensions/skills/state/types.js.map +1 -1
- package/dist/src/extensions/skills/types.d.ts +0 -40
- package/dist/src/extensions/skills/types.d.ts.map +1 -1
- package/dist/src/extensions/skills/types.js +0 -1
- package/dist/src/extensions/skills/types.js.map +1 -1
- package/dist/src/git/errors.d.ts +1 -2
- package/dist/src/git/errors.d.ts.map +1 -1
- package/dist/src/git/errors.js +0 -1
- package/dist/src/git/errors.js.map +1 -1
- package/dist/src/git/index.d.ts +0 -1
- package/dist/src/git/index.d.ts.map +1 -1
- package/dist/src/git/index.js +0 -1
- package/dist/src/git/index.js.map +1 -1
- package/dist/src/git/operations.d.ts +7 -7
- package/dist/src/git/operations.d.ts.map +1 -1
- package/dist/src/git/operations.js +22 -19
- package/dist/src/git/operations.js.map +1 -1
- package/dist/src/lockfile/index.d.ts +1 -2
- package/dist/src/lockfile/index.d.ts.map +1 -1
- package/dist/src/lockfile/index.js +2 -1
- package/dist/src/lockfile/index.js.map +1 -1
- package/dist/src/lockfile/lockfile.d.ts +77 -51
- package/dist/src/lockfile/lockfile.d.ts.map +1 -1
- package/dist/src/lockfile/lockfile.js +27 -51
- package/dist/src/lockfile/lockfile.js.map +1 -1
- package/dist/src/resolution/index.d.ts +0 -1
- package/dist/src/resolution/index.d.ts.map +1 -1
- package/dist/src/resolution/index.js +0 -2
- package/dist/src/resolution/index.js.map +1 -1
- package/dist/src/resolution/resolver.d.ts +2 -2
- package/dist/src/resolution/resolver.d.ts.map +1 -1
- package/dist/src/resolution/resolver.js +1 -1
- package/dist/src/resolution/resolver.js.map +1 -1
- package/dist/src/resolution/resolvers/ambiguous.js +1 -1
- package/dist/src/resolution/resolvers/ambiguous.js.map +1 -1
- package/dist/src/resolution/resolvers/axm-name.d.ts.map +1 -1
- package/dist/src/resolution/resolvers/axm-name.js +1 -1
- package/dist/src/resolution/resolvers/axm-name.js.map +1 -1
- package/dist/src/resolution/resolvers/bare-name.js +1 -1
- package/dist/src/resolution/resolvers/bare-name.js.map +1 -1
- package/dist/src/resolution/resolvers/explicit-source.d.ts.map +1 -1
- package/dist/src/resolution/resolvers/explicit-source.js +1 -1
- package/dist/src/resolution/resolvers/explicit-source.js.map +1 -1
- package/dist/src/resolution/resolvers/local-path.d.ts.map +1 -1
- package/dist/src/resolution/resolvers/local-path.js +1 -1
- package/dist/src/resolution/resolvers/local-path.js.map +1 -1
- package/dist/src/resolution/resolvers/url.d.ts.map +1 -1
- package/dist/src/resolution/resolvers/url.js +1 -1
- package/dist/src/resolution/resolvers/url.js.map +1 -1
- package/dist/src/runtime/error-handling.d.ts +10 -0
- package/dist/src/runtime/error-handling.d.ts.map +1 -0
- package/dist/src/runtime/error-handling.js +10 -0
- package/dist/src/runtime/error-handling.js.map +1 -0
- package/dist/src/runtime/index.d.ts +5 -4
- package/dist/src/runtime/index.d.ts.map +1 -1
- package/dist/src/runtime/index.js +11 -4
- package/dist/src/runtime/index.js.map +1 -1
- package/dist/src/settings/format-preserving-json.d.ts +1 -2
- package/dist/src/settings/format-preserving-json.d.ts.map +1 -1
- package/dist/src/settings/format-preserving-json.js +7 -7
- package/dist/src/settings/format-preserving-json.js.map +1 -1
- package/dist/src/settings/index.d.ts +5 -4
- package/dist/src/settings/index.d.ts.map +1 -1
- package/dist/src/settings/index.js +4 -2
- package/dist/src/settings/index.js.map +1 -1
- package/dist/src/settings/schema.d.ts +48 -8
- package/dist/src/settings/schema.d.ts.map +1 -1
- package/dist/src/settings/schema.js +26 -7
- package/dist/src/settings/schema.js.map +1 -1
- package/dist/src/settings/settings.d.ts +10 -52
- package/dist/src/settings/settings.d.ts.map +1 -1
- package/dist/src/settings/settings.js +22 -48
- package/dist/src/settings/settings.js.map +1 -1
- package/dist/src/settings/skill-entry.d.ts +44 -0
- package/dist/src/settings/skill-entry.d.ts.map +1 -0
- package/dist/src/settings/skill-entry.js +58 -0
- package/dist/src/settings/skill-entry.js.map +1 -0
- package/dist/src/sources/azurerepos/repo-exists.d.ts +2 -2
- package/dist/src/sources/azurerepos/repo-exists.d.ts.map +1 -1
- package/dist/src/sources/azurerepos/repo-exists.js +9 -7
- package/dist/src/sources/azurerepos/repo-exists.js.map +1 -1
- package/dist/src/sources/azurerepos/scp.d.ts +1 -2
- package/dist/src/sources/azurerepos/scp.d.ts.map +1 -1
- package/dist/src/sources/azurerepos/scp.js +6 -2
- package/dist/src/sources/azurerepos/scp.js.map +1 -1
- package/dist/src/sources/azurerepos/url.d.ts +1 -2
- package/dist/src/sources/azurerepos/url.d.ts.map +1 -1
- package/dist/src/sources/azurerepos/url.js +11 -3
- package/dist/src/sources/azurerepos/url.js.map +1 -1
- package/dist/src/sources/bitbucket/resolve-repo.d.ts +2 -2
- package/dist/src/sources/bitbucket/resolve-repo.d.ts.map +1 -1
- package/dist/src/sources/bitbucket/resolve-repo.js +5 -4
- package/dist/src/sources/bitbucket/resolve-repo.js.map +1 -1
- package/dist/src/sources/bitbucket/scp.d.ts +1 -2
- package/dist/src/sources/bitbucket/scp.d.ts.map +1 -1
- package/dist/src/sources/bitbucket/scp.js +6 -2
- package/dist/src/sources/bitbucket/scp.js.map +1 -1
- package/dist/src/sources/bitbucket/shorthand.d.ts +1 -1
- package/dist/src/sources/bitbucket/shorthand.d.ts.map +1 -1
- package/dist/src/sources/bitbucket/url.d.ts +1 -2
- package/dist/src/sources/bitbucket/url.d.ts.map +1 -1
- package/dist/src/sources/bitbucket/url.js +11 -3
- package/dist/src/sources/bitbucket/url.js.map +1 -1
- package/dist/src/sources/clone-url.d.ts +3 -4
- package/dist/src/sources/clone-url.d.ts.map +1 -1
- package/dist/src/sources/clone-url.js +6 -6
- package/dist/src/sources/clone-url.js.map +1 -1
- package/dist/src/sources/github/api.d.ts +3 -21
- package/dist/src/sources/github/api.d.ts.map +1 -1
- package/dist/src/sources/github/api.js +16 -28
- package/dist/src/sources/github/api.js.map +1 -1
- package/dist/src/sources/github/index.d.ts +1 -1
- package/dist/src/sources/github/index.d.ts.map +1 -1
- package/dist/src/sources/github/index.js +1 -1
- package/dist/src/sources/github/index.js.map +1 -1
- package/dist/src/sources/github/resolve-repo.d.ts +2 -2
- package/dist/src/sources/github/resolve-repo.d.ts.map +1 -1
- package/dist/src/sources/github/resolve-repo.js +5 -4
- package/dist/src/sources/github/resolve-repo.js.map +1 -1
- package/dist/src/sources/github/scp.d.ts +1 -2
- package/dist/src/sources/github/scp.d.ts.map +1 -1
- package/dist/src/sources/github/scp.js +6 -2
- package/dist/src/sources/github/scp.js.map +1 -1
- package/dist/src/sources/github/shorthand.d.ts +1 -1
- package/dist/src/sources/github/shorthand.d.ts.map +1 -1
- package/dist/src/sources/github/url.d.ts +1 -2
- package/dist/src/sources/github/url.d.ts.map +1 -1
- package/dist/src/sources/github/url.js +11 -3
- package/dist/src/sources/github/url.js.map +1 -1
- package/dist/src/sources/gitlab/resolve-repo.d.ts +2 -2
- package/dist/src/sources/gitlab/resolve-repo.d.ts.map +1 -1
- package/dist/src/sources/gitlab/resolve-repo.js +5 -4
- package/dist/src/sources/gitlab/resolve-repo.js.map +1 -1
- package/dist/src/sources/gitlab/scp.d.ts +1 -2
- package/dist/src/sources/gitlab/scp.d.ts.map +1 -1
- package/dist/src/sources/gitlab/scp.js +6 -2
- package/dist/src/sources/gitlab/scp.js.map +1 -1
- package/dist/src/sources/gitlab/shorthand.d.ts +1 -1
- package/dist/src/sources/gitlab/shorthand.d.ts.map +1 -1
- package/dist/src/sources/gitlab/url.d.ts +1 -2
- package/dist/src/sources/gitlab/url.d.ts.map +1 -1
- package/dist/src/sources/gitlab/url.js +11 -3
- package/dist/src/sources/gitlab/url.js.map +1 -1
- package/dist/src/sources/index.d.ts +0 -4
- package/dist/src/sources/index.d.ts.map +1 -1
- package/dist/src/sources/index.js +2 -3
- package/dist/src/sources/index.js.map +1 -1
- package/dist/src/sources/local/parser.d.ts +2 -2
- package/dist/src/sources/local/parser.d.ts.map +1 -1
- package/dist/src/sources/local/parser.js.map +1 -1
- package/dist/src/sources/parse-provider-shorthand.d.ts +2 -3
- package/dist/src/sources/parse-provider-shorthand.d.ts.map +1 -1
- package/dist/src/sources/parse-provider-shorthand.js +7 -3
- package/dist/src/sources/parse-provider-shorthand.js.map +1 -1
- package/dist/src/sources/provider.d.ts +5 -44
- package/dist/src/sources/provider.d.ts.map +1 -1
- package/dist/src/sources/provider.js +12 -26
- package/dist/src/sources/provider.js.map +1 -1
- package/dist/src/sources/providers/azurerepos.js +7 -7
- package/dist/src/sources/providers/azurerepos.js.map +1 -1
- package/dist/src/sources/providers/git-hosting.d.ts +3 -3
- package/dist/src/sources/providers/git-hosting.d.ts.map +1 -1
- package/dist/src/sources/providers/git-hosting.js +14 -33
- package/dist/src/sources/providers/git-hosting.js.map +1 -1
- package/dist/src/sources/providers/git.js +7 -7
- package/dist/src/sources/providers/git.js.map +1 -1
- package/dist/src/sources/providers/local.d.ts.map +1 -1
- package/dist/src/sources/providers/local.js +7 -18
- package/dist/src/sources/providers/local.js.map +1 -1
- package/dist/src/sources/providers/registry.d.ts +5 -5
- package/dist/src/sources/providers/registry.d.ts.map +1 -1
- package/dist/src/sources/providers/registry.js +136 -92
- package/dist/src/sources/providers/registry.js.map +1 -1
- package/dist/src/sources/registry-guard.d.ts +2 -3
- package/dist/src/sources/registry-guard.d.ts.map +1 -1
- package/dist/src/sources/registry-guard.js +8 -6
- package/dist/src/sources/registry-guard.js.map +1 -1
- package/dist/src/sources/resolve-source.d.ts +3 -3
- package/dist/src/sources/resolve-source.d.ts.map +1 -1
- package/dist/src/sources/resolve-source.js +83 -49
- package/dist/src/sources/resolve-source.js.map +1 -1
- package/dist/src/sources/service.d.ts +3 -4
- package/dist/src/sources/service.d.ts.map +1 -1
- package/dist/src/sources/service.js +8 -5
- package/dist/src/sources/service.js.map +1 -1
- package/dist/src/tui/confirm/service.d.ts +2 -2
- package/dist/src/tui/confirm/service.d.ts.map +1 -1
- package/dist/src/tui/confirm/service.js.map +1 -1
- package/dist/src/tui/errors.d.ts +0 -9
- package/dist/src/tui/errors.d.ts.map +1 -1
- package/dist/src/tui/errors.js +0 -2
- package/dist/src/tui/errors.js.map +1 -1
- package/dist/src/tui/index.d.ts +1 -1
- package/dist/src/tui/index.d.ts.map +1 -1
- package/dist/src/tui/index.js +1 -1
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/multiselect/service.d.ts +3 -2
- package/dist/src/tui/multiselect/service.d.ts.map +1 -1
- package/dist/src/tui/multiselect/service.js +7 -5
- package/dist/src/tui/multiselect/service.js.map +1 -1
- package/dist/src/tui/password-input/service.d.ts +3 -2
- package/dist/src/tui/password-input/service.d.ts.map +1 -1
- package/dist/src/tui/password-input/service.js +7 -5
- package/dist/src/tui/password-input/service.js.map +1 -1
- package/dist/src/tui/select/service.d.ts +3 -2
- package/dist/src/tui/select/service.d.ts.map +1 -1
- package/dist/src/tui/select/service.js +5 -5
- package/dist/src/tui/select/service.js.map +1 -1
- package/dist/src/tui/spinner/index.d.ts +1 -1
- package/dist/src/tui/spinner/index.d.ts.map +1 -1
- package/dist/src/tui/spinner/service.d.ts +1 -5
- package/dist/src/tui/spinner/service.d.ts.map +1 -1
- package/dist/src/tui/spinner/service.js +25 -12
- package/dist/src/tui/spinner/service.js.map +1 -1
- package/dist/src/tui/spinner/test.d.ts +3 -0
- package/dist/src/tui/spinner/test.d.ts.map +1 -1
- package/dist/src/tui/spinner/test.js +9 -0
- package/dist/src/tui/spinner/test.js.map +1 -1
- package/dist/src/tui/spinner/types.d.ts +5 -0
- package/dist/src/tui/spinner/types.d.ts.map +1 -1
- package/dist/src/tui/text-input/service.d.ts +2 -2
- package/dist/src/tui/text-input/service.d.ts.map +1 -1
- package/dist/src/tui/text-input/service.js.map +1 -1
- package/dist/src/utils/create-symlink.d.ts +1 -14
- package/dist/src/utils/create-symlink.d.ts.map +1 -1
- package/dist/src/utils/create-symlink.js +17 -15
- package/dist/src/utils/create-symlink.js.map +1 -1
- package/dist/src/utils/index.d.ts +1 -2
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/index.js +1 -2
- package/dist/src/utils/index.js.map +1 -1
- package/dist/src/workspace/apply-plan.d.ts +5 -17
- package/dist/src/workspace/apply-plan.d.ts.map +1 -1
- package/dist/src/workspace/apply-plan.js +3 -12
- package/dist/src/workspace/apply-plan.js.map +1 -1
- package/dist/src/workspace/ensure-agents.d.ts +2 -15
- package/dist/src/workspace/ensure-agents.d.ts.map +1 -1
- package/dist/src/workspace/ensure-agents.js +7 -15
- package/dist/src/workspace/ensure-agents.js.map +1 -1
- package/dist/src/workspace/errors.d.ts +1 -1
- package/dist/src/workspace/errors.d.ts.map +1 -1
- package/dist/src/workspace/index.d.ts +1 -2
- package/dist/src/workspace/index.d.ts.map +1 -1
- package/dist/src/workspace/index.js +1 -2
- package/dist/src/workspace/index.js.map +1 -1
- package/dist/src/workspace/service.d.ts +30 -23
- package/dist/src/workspace/service.d.ts.map +1 -1
- package/dist/src/workspace/service.js +105 -38
- package/dist/src/workspace/service.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,5 +6,5 @@ export declare const parseShorthand: (input: string) => Effect.Effect<{
|
|
|
6
6
|
repo: string;
|
|
7
7
|
ref: Option.Option<string>;
|
|
8
8
|
subPath: Option.Option<string>;
|
|
9
|
-
}, import("
|
|
9
|
+
}, import("../../cli-error/cli-error.js").CliError, never>;
|
|
10
10
|
//# sourceMappingURL=shorthand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shorthand.d.ts","sourceRoot":"","sources":["../../../../src/sources/gitlab/shorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"shorthand.d.ts","sourceRoot":"","sources":["../../../../src/sources/gitlab/shorthand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM;;;;;;0DAWxC,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Option from "effect/Option";
|
|
3
|
-
import { ParseError } from "../errors.js";
|
|
4
3
|
export declare const CANONICAL_HOSTNAME = "gitlab.com";
|
|
5
|
-
export declare const parseUrl: (url: URL, hostname?: string) => Effect.Effect<never,
|
|
4
|
+
export declare const parseUrl: (url: URL, hostname?: string) => Effect.Effect<never, import("../../cli-error/cli-error.js").CliError, never> | Effect.Effect<{
|
|
6
5
|
type: "gitlab";
|
|
7
6
|
owner: string;
|
|
8
7
|
repo: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../src/sources/gitlab/url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../src/sources/gitlab/url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAK/C,eAAO,MAAM,QAAQ,GAAI,KAAK,GAAG,EAAE,WAAU,MAA2B;;;;;;gBA2BvE,CAAC"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import * as Effect from "effect/Effect";
|
|
2
2
|
import * as Option from "effect/Option";
|
|
3
|
-
import {
|
|
3
|
+
import { makeCliError } from "../../cli-error/index.js";
|
|
4
4
|
export const CANONICAL_HOSTNAME = "gitlab.com";
|
|
5
5
|
/** Matches: /owner/repo[/-/tree/ref/path] */
|
|
6
6
|
const GITLAB_PATH_PATTERN = /^\/([^/]+)\/([^/]+?)(?:\.git)?(?:\/-\/tree\/([^/]+)(?:\/(.+))?)?$/;
|
|
7
7
|
export const parseUrl = (url, hostname = CANONICAL_HOSTNAME) => {
|
|
8
8
|
if (url.hostname !== hostname) {
|
|
9
|
-
return Effect.fail(
|
|
9
|
+
return Effect.fail(makeCliError({
|
|
10
|
+
code: "SOURCE_PARSE_FAILED",
|
|
11
|
+
what: "Invalid GitLab URL format",
|
|
12
|
+
details: [url.href],
|
|
13
|
+
}));
|
|
10
14
|
}
|
|
11
15
|
const match = url.pathname.match(GITLAB_PATH_PATTERN);
|
|
12
16
|
if (!match || !match[1] || !match[2]) {
|
|
13
|
-
return Effect.fail(
|
|
17
|
+
return Effect.fail(makeCliError({
|
|
18
|
+
code: "SOURCE_PARSE_FAILED",
|
|
19
|
+
what: "Invalid GitLab URL format",
|
|
20
|
+
details: [url.href],
|
|
21
|
+
}));
|
|
14
22
|
}
|
|
15
23
|
return Effect.succeed({
|
|
16
24
|
type: "gitlab",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../src/sources/gitlab/url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../../src/sources/gitlab/url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAE/C,6CAA6C;AAC7C,MAAM,mBAAmB,GAAG,mEAAmE,CAAC;AAEhG,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAQ,EAAE,WAAmB,kBAAkB,EAAE,EAAE;IAC1E,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,MAAM,CAAC,IAAI,CAChB,YAAY,CAAC;YACX,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,2BAA2B;YACjC,OAAO,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;SACpB,CAAC,CACH,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACtD,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACrC,OAAO,MAAM,CAAC,IAAI,CAChB,YAAY,CAAC;YACX,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,2BAA2B;YACjC,OAAO,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;SACpB,CAAC,CACH,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC;QACpB,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QACf,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;QACd,GAAG,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAClC,OAAO,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACX,CAAC,CAAC;AACjC,CAAC,CAAC"}
|
|
@@ -12,20 +12,16 @@ export { SourceTypeSchema } from "./types.js";
|
|
|
12
12
|
export type { AzureReposSource, BitbucketSource, GitHubSource, GitLabSource, GitRepositorySource, LocalSource, RegistrySource, Source, } from "./types.js";
|
|
13
13
|
export { isGitHostingProviderSource } from "./utils.js";
|
|
14
14
|
export type { ExtensionFiles, ExtensionRef, FindOptions, McpServerRef, ProviderRegistry, SkillRef, SourceProvider, } from "./provider.js";
|
|
15
|
-
export { RegistryError, RegistryNotConfiguredError, SourceError } from "./provider.js";
|
|
16
15
|
export type { RegistrySourceProvider } from "./providers/index.js";
|
|
17
16
|
export { createAzureReposProvider, createBitbucketProvider, createGitHubProvider, createGitLabProvider, createGitProvider, createLocalProvider, createLocalRegistryProvider, createRegistryProvider, createRemoteRegistryProvider, } from "./providers/index.js";
|
|
18
17
|
export type { SourceProvidersService } from "./service.js";
|
|
19
18
|
export { SourceProviders, SourceProvidersLive, createRegistryMetaProvider } from "./service.js";
|
|
20
|
-
export { CloneUrlError, ParseError } from "./errors.js";
|
|
21
19
|
export { parseInputPattern } from "./parser.js";
|
|
22
20
|
export type { InputPattern } from "./parser.js";
|
|
23
21
|
export { resolveSource } from "./resolve-source.js";
|
|
24
22
|
export { printSourceInput } from "./printer.js";
|
|
25
23
|
export { buildCloneUrl, getOrigin } from "./clone-url.js";
|
|
26
|
-
export type { GitError } from "../git/index.js";
|
|
27
24
|
export { cloneRepo, getCurrentCommit, getTreeSha, isGitRepository, resolveRef, shallowClone, } from "../git/index.js";
|
|
28
|
-
export type { GitHubApiError } from "./github/index.js";
|
|
29
25
|
export { fetchGitHubTreeHash } from "./github/index.js";
|
|
30
26
|
export { registryGuard } from "./registry-guard.js";
|
|
31
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sources/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,wBAAwB,EACxB,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,UAAU,GACX,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG9C,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,MAAM,GACP,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAGxD,YAAY,EACV,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,cAAc,GACf,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sources/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,iBA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B,CAAC;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -10,11 +10,8 @@
|
|
|
10
10
|
export { SourceTypeSchema } from "./types.js";
|
|
11
11
|
// Type guards
|
|
12
12
|
export { isGitHostingProviderSource } from "./utils.js";
|
|
13
|
-
export { RegistryError, RegistryNotConfiguredError, SourceError } from "./provider.js";
|
|
14
13
|
export { createAzureReposProvider, createBitbucketProvider, createGitHubProvider, createGitLabProvider, createGitProvider, createLocalProvider, createLocalRegistryProvider, createRegistryProvider, createRemoteRegistryProvider, } from "./providers/index.js";
|
|
15
14
|
export { SourceProviders, SourceProvidersLive, createRegistryMetaProvider } from "./service.js";
|
|
16
|
-
// Errors
|
|
17
|
-
export { CloneUrlError, ParseError } from "./errors.js";
|
|
18
15
|
// Input pattern classifier
|
|
19
16
|
export { parseInputPattern } from "./parser.js";
|
|
20
17
|
// Source resolver
|
|
@@ -23,7 +20,9 @@ export { resolveSource } from "./resolve-source.js";
|
|
|
23
20
|
export { printSourceInput } from "./printer.js";
|
|
24
21
|
// Clone URL utilities
|
|
25
22
|
export { buildCloneUrl, getOrigin } from "./clone-url.js";
|
|
23
|
+
// Git operations
|
|
26
24
|
export { cloneRepo, getCurrentCommit, getTreeSha, isGitRepository, resolveRef, shallowClone, } from "../git/index.js";
|
|
25
|
+
// GitHub API
|
|
27
26
|
export { fetchGitHubTreeHash } from "./github/index.js";
|
|
28
27
|
// Registry guard
|
|
29
28
|
export { registryGuard } from "./registry-guard.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sources/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgBH,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAc9C,cAAc;AACd,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sources/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgBH,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAc9C,cAAc;AACd,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAexD,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAEhG,2BAA2B;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,kBAAkB;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,UAAU;AACV,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,sBAAsB;AACtB,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE1D,iBAAiB;AACjB,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,UAAU,EACV,YAAY,GACb,MAAM,iBAAiB,CAAC;AAEzB,aAAa;AACb,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,iBAAiB;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
7
|
import * as Effect from "effect/Effect";
|
|
8
|
-
import type {
|
|
8
|
+
import type { CliError } from "../../cli-error/index.js";
|
|
9
9
|
import type { LocalSourceInput } from "../types.js";
|
|
10
10
|
/**
|
|
11
11
|
* Parse a local filesystem path.
|
|
12
12
|
*/
|
|
13
|
-
export declare const parseLocalPath: (input: string) => Effect.Effect<LocalSourceInput,
|
|
13
|
+
export declare const parseLocalPath: (input: string) => Effect.Effect<LocalSourceInput, CliError>;
|
|
14
14
|
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/sources/local/parser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../../src/sources/local/parser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,QAAQ,CAEtF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/sources/local/parser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAa,
|
|
1
|
+
{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../../src/sources/local/parser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAa,EAA6C,EAAE;IACzF,OAAO,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,OAAgB,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AACjE,CAAC,CAAC"}
|
|
@@ -7,16 +7,15 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
9
|
import * as Effect from "effect/Effect";
|
|
10
|
-
import { ParseError } from "./errors.js";
|
|
11
10
|
/**
|
|
12
11
|
* Parse the body of a provider shorthand (the part after the `prefix:` prefix).
|
|
13
12
|
*
|
|
14
|
-
* Returns `{ owner, repo, subPath?, ref? }` or fails with
|
|
13
|
+
* Returns `{ owner, repo, subPath?, ref? }` or fails with CliError.
|
|
15
14
|
*/
|
|
16
15
|
export declare const parseProviderShorthand: (input: string, original: string) => Effect.Effect<{
|
|
17
16
|
owner: string;
|
|
18
17
|
repo: string;
|
|
19
18
|
subPath: string | undefined;
|
|
20
19
|
ref: string | undefined;
|
|
21
|
-
},
|
|
20
|
+
}, import("../cli-error/cli-error.js").CliError, never>;
|
|
22
21
|
//# sourceMappingURL=parse-provider-shorthand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-provider-shorthand.d.ts","sourceRoot":"","sources":["../../../src/sources/parse-provider-shorthand.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"parse-provider-shorthand.d.ts","sourceRoot":"","sources":["../../../src/sources/parse-provider-shorthand.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAOxC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,OAAO,MAAM,EAAE,UAAU,MAAM;;;aAc3C,MAAM,GAAG,SAAS;SACtB,MAAM,GAAG,SAAS;uDAErC,CAAC"}
|
|
@@ -7,18 +7,22 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
9
|
import * as Effect from "effect/Effect";
|
|
10
|
-
import {
|
|
10
|
+
import { makeCliError } from "../cli-error/index.js";
|
|
11
11
|
/** Matches: owner/repo[/path][@ref] */
|
|
12
12
|
const PROVIDER_SHORTHAND_PATTERN = /^([^/@]+)\/([^/@]+)(?:\/([^@]+))?(?:@(.+))?$/;
|
|
13
13
|
/**
|
|
14
14
|
* Parse the body of a provider shorthand (the part after the `prefix:` prefix).
|
|
15
15
|
*
|
|
16
|
-
* Returns `{ owner, repo, subPath?, ref? }` or fails with
|
|
16
|
+
* Returns `{ owner, repo, subPath?, ref? }` or fails with CliError.
|
|
17
17
|
*/
|
|
18
18
|
export const parseProviderShorthand = (input, original) => Effect.gen(function* () {
|
|
19
19
|
const match = input.match(PROVIDER_SHORTHAND_PATTERN);
|
|
20
20
|
if (!match || !match[1] || !match[2]) {
|
|
21
|
-
return yield*
|
|
21
|
+
return yield* makeCliError({
|
|
22
|
+
code: "SOURCE_PARSE_FAILED",
|
|
23
|
+
what: "Invalid shorthand format",
|
|
24
|
+
details: [original],
|
|
25
|
+
});
|
|
22
26
|
}
|
|
23
27
|
return {
|
|
24
28
|
owner: match[1],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-provider-shorthand.js","sourceRoot":"","sources":["../../../src/sources/parse-provider-shorthand.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"parse-provider-shorthand.js","sourceRoot":"","sources":["../../../src/sources/parse-provider-shorthand.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,uCAAuC;AACvC,MAAM,0BAA0B,GAAG,8CAA8C,CAAC;AAElF;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAa,EAAE,QAAgB,EAAE,EAAE,CACxE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;IACtD,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACrC,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC;YACzB,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,0BAA0B;YAChC,OAAO,EAAE,CAAC,QAAQ,CAAC;SACpB,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QACf,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;QACd,OAAO,EAAE,KAAK,CAAC,CAAC,CAAuB;QACvC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAuB;KACpC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import type * as Effect from "effect/Effect";
|
|
11
11
|
import type * as Option from "effect/Option";
|
|
12
|
+
import type { CliError } from "../cli-error/index.js";
|
|
12
13
|
import type { ExtensionType } from "../extensions/common.js";
|
|
13
14
|
import type { Skill } from "../extensions/skills/types.js";
|
|
14
15
|
import type { SourceInput } from "./types.js";
|
|
@@ -81,47 +82,6 @@ export interface ExtensionFiles {
|
|
|
81
82
|
/** Absolute path to directory containing extension files. */
|
|
82
83
|
readonly directory: string;
|
|
83
84
|
}
|
|
84
|
-
declare const SourceError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
85
|
-
readonly _tag: "SourceError";
|
|
86
|
-
} & Readonly<A>;
|
|
87
|
-
/**
|
|
88
|
-
* Error for source provider operations (find/fetch).
|
|
89
|
-
*
|
|
90
|
-
* Subsumes existing `DiscoveryError` and `CloneUrlError` as providers
|
|
91
|
-
* replace the current discovery code.
|
|
92
|
-
*
|
|
93
|
-
* @experimental This API is unstable and may change without notice.
|
|
94
|
-
*/
|
|
95
|
-
export declare class SourceError extends SourceError_base<{
|
|
96
|
-
readonly message: string;
|
|
97
|
-
readonly cause: unknown;
|
|
98
|
-
}> {
|
|
99
|
-
}
|
|
100
|
-
declare const RegistryError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
101
|
-
readonly _tag: "RegistryError";
|
|
102
|
-
} & Readonly<A>;
|
|
103
|
-
/**
|
|
104
|
-
* Error for registry-specific operations (fetchIndex, publishVersion, etc.).
|
|
105
|
-
*
|
|
106
|
-
* @experimental This API is unstable and may change without notice.
|
|
107
|
-
*/
|
|
108
|
-
export declare class RegistryError extends RegistryError_base<{
|
|
109
|
-
readonly message: string;
|
|
110
|
-
readonly cause: unknown;
|
|
111
|
-
}> {
|
|
112
|
-
}
|
|
113
|
-
declare const RegistryNotConfiguredError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => import("effect/Cause").YieldableError & {
|
|
114
|
-
readonly _tag: "RegistryNotConfiguredError";
|
|
115
|
-
} & Readonly<A>;
|
|
116
|
-
/**
|
|
117
|
-
* Error when no registry source is configured.
|
|
118
|
-
*
|
|
119
|
-
* @experimental This API is unstable and may change without notice.
|
|
120
|
-
*/
|
|
121
|
-
export declare class RegistryNotConfiguredError extends RegistryNotConfiguredError_base<{
|
|
122
|
-
readonly message: string;
|
|
123
|
-
}> {
|
|
124
|
-
}
|
|
125
85
|
/**
|
|
126
86
|
* Source provider that unifies how all source types are accessed.
|
|
127
87
|
*
|
|
@@ -138,9 +98,9 @@ export interface SourceProvider<S extends SourceInput = SourceInput, R = never>
|
|
|
138
98
|
/** Source type discriminator matching `S["type"]`. */
|
|
139
99
|
readonly type: S["type"];
|
|
140
100
|
/** Discover extensions at the given source matching the search criteria. */
|
|
141
|
-
readonly find: (source: S, options: FindOptions) => Effect.Effect<ReadonlyArray<ExtensionRef>,
|
|
101
|
+
readonly find: (source: S, options: FindOptions) => Effect.Effect<ReadonlyArray<ExtensionRef>, CliError, R>;
|
|
142
102
|
/** Fetch and materialize extension files for a discovered ref. */
|
|
143
|
-
readonly fetch: (source: S, extension: ExtensionRef) => Effect.Effect<ExtensionFiles,
|
|
103
|
+
readonly fetch: (source: S, extension: ExtensionRef) => Effect.Effect<ExtensionFiles, CliError, R>;
|
|
144
104
|
}
|
|
145
105
|
/**
|
|
146
106
|
* Maps each source type to its provider implementation.
|
|
@@ -154,5 +114,6 @@ export type ProviderRegistry = {
|
|
|
154
114
|
type: K;
|
|
155
115
|
}>, any>;
|
|
156
116
|
};
|
|
157
|
-
|
|
117
|
+
/** Filter extension refs by name options. No-op when `options.names` is empty. */
|
|
118
|
+
export declare const filterRefsByOptions: (refs: ReadonlyArray<ExtensionRef>, options: FindOptions) => ReadonlyArray<ExtensionRef>;
|
|
158
119
|
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/sources/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAM9C;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM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able and may change without notice.
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
*/
|
|
10
|
-
import * as
|
|
10
|
+
import * as Array from "effect/Array";
|
|
11
11
|
// -----------------------------------------------------------------------------
|
|
12
|
-
//
|
|
12
|
+
// Shared Helpers
|
|
13
13
|
// -----------------------------------------------------------------------------
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Error for registry-specific operations (fetchIndex, publishVersion, etc.).
|
|
26
|
-
*
|
|
27
|
-
* @experimental This API is unstable and may change without notice.
|
|
28
|
-
*/
|
|
29
|
-
export class RegistryError extends Data.TaggedError("RegistryError") {
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Error when no registry source is configured.
|
|
33
|
-
*
|
|
34
|
-
* @experimental This API is unstable and may change without notice.
|
|
35
|
-
*/
|
|
36
|
-
export class RegistryNotConfiguredError extends Data.TaggedError("RegistryNotConfiguredError") {
|
|
37
|
-
}
|
|
14
|
+
/** Filter extension refs by name options. No-op when `options.names` is empty. */
|
|
15
|
+
export const filterRefsByOptions = (refs, options) => {
|
|
16
|
+
if (options.names.length === 0)
|
|
17
|
+
return refs;
|
|
18
|
+
const nameSet = new Set(options.names);
|
|
19
|
+
return Array.filter(refs, (ref) => {
|
|
20
|
+
const name = ref.type === "skill" ? ref.skill.name : ref.name;
|
|
21
|
+
return nameSet.has(name);
|
|
22
|
+
});
|
|
23
|
+
};
|
|
38
24
|
//# sourceMappingURL=provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../src/sources/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../src/sources/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AA8ItC,gFAAgF;AAChF,iBAAiB;AACjB,gFAAgF;AAEhF,kFAAkF;AAClF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,IAAiC,EACjC,OAAoB,EACS,EAAE;IAC/B,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC5C,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACvC,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE;QAChC,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;QAC9D,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
9
|
import * as Effect from "effect/Effect";
|
|
10
|
-
import {
|
|
10
|
+
import { makeCliError } from "../../cli-error/index.js";
|
|
11
11
|
/**
|
|
12
12
|
* Source provider for Azure Repos (stub).
|
|
13
13
|
*
|
|
@@ -15,13 +15,13 @@ import { SourceError } from "../provider.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export const createAzureReposProvider = () => ({
|
|
17
17
|
type: "azurerepos",
|
|
18
|
-
find: () => Effect.fail(
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
find: () => Effect.fail(makeCliError({
|
|
19
|
+
code: "SOURCE_FETCH_FAILED",
|
|
20
|
+
what: "Azure Repos sources are not yet supported",
|
|
21
21
|
})),
|
|
22
|
-
fetch: () => Effect.fail(
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
fetch: () => Effect.fail(makeCliError({
|
|
23
|
+
code: "SOURCE_FETCH_FAILED",
|
|
24
|
+
what: "Azure Repos sources are not yet supported",
|
|
25
25
|
})),
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=azurerepos.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azurerepos.js","sourceRoot":"","sources":["../../../../src/sources/providers/azurerepos.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"azurerepos.js","sourceRoot":"","sources":["../../../../src/sources/providers/azurerepos.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIxD;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAA0C,EAAE,CAAC,CAAC;IACpF,IAAI,EAAE,YAAY;IAElB,IAAI,EAAE,GAAG,EAAE,CACT,MAAM,CAAC,IAAI,CACT,YAAY,CAAC;QACX,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,2CAA2C;KAClD,CAAC,CACH;IAEH,KAAK,EAAE,GAAG,EAAE,CACV,MAAM,CAAC,IAAI,CACT,YAAY,CAAC;QACX,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,2CAA2C;KAClD,CAAC,CACH;CACJ,CAAC,CAAC"}
|
|
@@ -27,17 +27,17 @@ export declare const createGitHostingProvider: <S extends GitHubSource | GitLabS
|
|
|
27
27
|
*
|
|
28
28
|
* @experimental This API is unstable and may change without notice.
|
|
29
29
|
*/
|
|
30
|
-
export declare const createGitHubProvider: () => SourceProvider<GitHubSource,
|
|
30
|
+
export declare const createGitHubProvider: () => SourceProvider<GitHubSource, FileSystem.FileSystem | Path.Path | Scope.Scope>;
|
|
31
31
|
/**
|
|
32
32
|
* Source provider for GitLab repositories.
|
|
33
33
|
*
|
|
34
34
|
* @experimental This API is unstable and may change without notice.
|
|
35
35
|
*/
|
|
36
|
-
export declare const createGitLabProvider: () => SourceProvider<GitLabSource,
|
|
36
|
+
export declare const createGitLabProvider: () => SourceProvider<GitLabSource, FileSystem.FileSystem | Path.Path | Scope.Scope>;
|
|
37
37
|
/**
|
|
38
38
|
* Source provider for Bitbucket repositories.
|
|
39
39
|
*
|
|
40
40
|
* @experimental This API is unstable and may change without notice.
|
|
41
41
|
*/
|
|
42
|
-
export declare const createBitbucketProvider: () => SourceProvider<BitbucketSource,
|
|
42
|
+
export declare const createBitbucketProvider: () => SourceProvider<BitbucketSource, FileSystem.FileSystem | Path.Path | Scope.Scope>;
|
|
43
43
|
//# sourceMappingURL=git-hosting.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-hosting.d.ts","sourceRoot":"","sources":["../../../../src/sources/providers/git-hosting.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"git-hosting.d.ts","sourceRoot":"","sources":["../../../../src/sources/providers/git-hosting.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAG9C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAO3C,OAAO,KAAK,EAAY,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAM/E;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,YAAY,GAAG,YAAY,GAAG,eAAe,EAC9F,YAAY,CAAC,CAAC,MAAM,CAAC,KACpB,cAAc,CAAC,CAAC,EAAE,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,CA4ElE,CAAC;AAMH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,qFAAyD,CAAC;AAE3F;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,qFAAyD,CAAC;AAE3F;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,wFAA+D,CAAC"}
|
|
@@ -10,13 +10,13 @@ import { randomUUID } from "node:crypto";
|
|
|
10
10
|
import { tmpdir } from "node:os";
|
|
11
11
|
import * as FileSystem from "@effect/platform/FileSystem";
|
|
12
12
|
import * as Path from "@effect/platform/Path";
|
|
13
|
-
import * as Array from "effect/Array";
|
|
14
13
|
import * as Effect from "effect/Effect";
|
|
15
14
|
import * as Option from "effect/Option";
|
|
16
15
|
import { discoverSkillsInDir } from "../../cli-commands/skills/install/discover-skills.js";
|
|
16
|
+
import { makeCliError } from "../../cli-error/index.js";
|
|
17
17
|
import { getTreeSha, shallowClone } from "../../git/index.js";
|
|
18
18
|
import { buildCloneUrl } from "../clone-url.js";
|
|
19
|
-
import {
|
|
19
|
+
import { filterRefsByOptions } from "../provider.js";
|
|
20
20
|
// -----------------------------------------------------------------------------
|
|
21
21
|
// Factory
|
|
22
22
|
// -----------------------------------------------------------------------------
|
|
@@ -34,16 +34,15 @@ export const createGitHostingProvider = (sourceType) => ({
|
|
|
34
34
|
type: sourceType,
|
|
35
35
|
find: (source, options) => Effect.gen(function* () {
|
|
36
36
|
const path = yield* Path.Path;
|
|
37
|
-
const cloneUrl = yield* buildCloneUrl(source)
|
|
38
|
-
message: `Failed to build clone URL: ${error.message}`,
|
|
39
|
-
cause: error,
|
|
40
|
-
})));
|
|
37
|
+
const cloneUrl = yield* buildCloneUrl(source);
|
|
41
38
|
// Acquire scoped temp directory (cleaned up when scope closes)
|
|
42
39
|
const tempDir = yield* Effect.acquireRelease(Effect.gen(function* () {
|
|
43
40
|
const fs = yield* FileSystem.FileSystem;
|
|
44
41
|
const dir = path.join(tmpdir(), `axm-${randomUUID()}`);
|
|
45
|
-
yield* fs.makeDirectory(dir, { recursive: true }).pipe(Effect.mapError((error) =>
|
|
46
|
-
|
|
42
|
+
yield* fs.makeDirectory(dir, { recursive: true }).pipe(Effect.mapError((error) => makeCliError({
|
|
43
|
+
code: "SOURCE_FETCH_FAILED",
|
|
44
|
+
what: "Failed to create temp directory",
|
|
45
|
+
details: [error.message],
|
|
47
46
|
cause: error,
|
|
48
47
|
})));
|
|
49
48
|
return dir;
|
|
@@ -51,50 +50,32 @@ export const createGitHostingProvider = (sourceType) => ({
|
|
|
51
50
|
const fs = yield* FileSystem.FileSystem;
|
|
52
51
|
yield* fs.remove(dir, { recursive: true });
|
|
53
52
|
}).pipe(Effect.ignoreLogged));
|
|
54
|
-
yield* shallowClone(cloneUrl, tempDir, Option.getOrUndefined(source.ref))
|
|
55
|
-
message: `Failed to clone repository: ${error.message}`,
|
|
56
|
-
cause: error,
|
|
57
|
-
})));
|
|
53
|
+
yield* shallowClone(cloneUrl, tempDir, Option.getOrUndefined(source.ref));
|
|
58
54
|
const oldRefs = yield* discoverSkillsInDir(tempDir, source.subPath, {
|
|
59
55
|
fullDepth: false,
|
|
60
56
|
includeInternal: false,
|
|
61
|
-
}, source).pipe(Effect.mapError((error) =>
|
|
62
|
-
|
|
57
|
+
}, source).pipe(Effect.mapError((error) => makeCliError({
|
|
58
|
+
code: "SOURCE_FETCH_FAILED",
|
|
59
|
+
what: "Failed to discover skills",
|
|
60
|
+
details: [error.message],
|
|
63
61
|
cause: error,
|
|
64
62
|
})));
|
|
65
63
|
// Enrich with tree SHAs
|
|
66
64
|
const refs = yield* Effect.forEach(oldRefs, (ref) => Effect.gen(function* () {
|
|
67
65
|
const skillPath = ref.location.replace("file://", "");
|
|
68
66
|
const relativeDir = path.relative(tempDir, skillPath);
|
|
69
|
-
const gitTreeSha = yield* getTreeSha(tempDir, relativeDir)
|
|
70
|
-
message: `Failed to get git tree SHA for skill "${ref.skill.name}": ${error.message}`,
|
|
71
|
-
cause: error,
|
|
72
|
-
})));
|
|
67
|
+
const gitTreeSha = yield* getTreeSha(tempDir, relativeDir);
|
|
73
68
|
return {
|
|
74
69
|
...ref,
|
|
75
70
|
source,
|
|
76
71
|
gitTreeSha: Option.some(gitTreeSha),
|
|
77
72
|
};
|
|
78
73
|
}), { concurrency: "unbounded" });
|
|
79
|
-
return
|
|
74
|
+
return filterRefsByOptions(refs, options);
|
|
80
75
|
}),
|
|
81
76
|
fetch: (_source, extension) => Effect.succeed({ directory: extension.location.replace("file://", "") }),
|
|
82
77
|
});
|
|
83
78
|
// -----------------------------------------------------------------------------
|
|
84
|
-
// Filtering
|
|
85
|
-
// -----------------------------------------------------------------------------
|
|
86
|
-
const filterByOptions = (refs, options) => {
|
|
87
|
-
let filtered = refs;
|
|
88
|
-
if (options.names.length > 0) {
|
|
89
|
-
const nameSet = new Set(options.names);
|
|
90
|
-
filtered = Array.filter(filtered, (ref) => {
|
|
91
|
-
const name = ref.type === "skill" ? ref.skill.name : ref.name;
|
|
92
|
-
return nameSet.has(name);
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
return filtered;
|
|
96
|
-
};
|
|
97
|
-
// -----------------------------------------------------------------------------
|
|
98
79
|
// Concrete Providers
|
|
99
80
|
// -----------------------------------------------------------------------------
|
|
100
81
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-hosting.js","sourceRoot":"","sources":["../../../../src/sources/providers/git-hosting.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,
|
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M,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC,wBAAwB,CAAkB,WAAW,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
*/
|
|
9
9
|
import * as Effect from "effect/Effect";
|
|
10
|
-
import {
|
|
10
|
+
import { makeCliError } from "../../cli-error/index.js";
|
|
11
11
|
/**
|
|
12
12
|
* Source provider for generic git URLs (stub).
|
|
13
13
|
*
|
|
@@ -15,13 +15,13 @@ import { SourceError } from "../provider.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export const createGitProvider = () => ({
|
|
17
17
|
type: "git",
|
|
18
|
-
find: () => Effect.fail(
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
find: () => Effect.fail(makeCliError({
|
|
19
|
+
code: "SOURCE_FETCH_FAILED",
|
|
20
|
+
what: "Generic git sources are not yet supported",
|
|
21
21
|
})),
|
|
22
|
-
fetch: () => Effect.fail(
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
fetch: () => Effect.fail(makeCliError({
|
|
23
|
+
code: "SOURCE_FETCH_FAILED",
|
|
24
|
+
what: "Generic git sources are not yet supported",
|
|
25
25
|
})),
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=git.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../../../src/sources/providers/git.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../../../src/sources/providers/git.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIxD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAA6C,EAAE,CAAC,CAAC;IAChF,IAAI,EAAE,KAAK;IAEX,IAAI,EAAE,GAAG,EAAE,CACT,MAAM,CAAC,IAAI,CACT,YAAY,CAAC;QACX,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,2CAA2C;KAClD,CAAC,CACH;IAEH,KAAK,EAAE,GAAG,EAAE,CACV,MAAM,CAAC,IAAI,CACT,YAAY,CAAC;QACX,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,2CAA2C;KAClD,CAAC,CACH;CACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/sources/providers/local.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,KAAK,IAAI,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["../../../../src/sources/providers/local.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAQnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAO,cAAc,CACnD,gBAAgB,EAChB,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAiCjC,CAAC"}
|