@axm.sh/cli 0.0.1
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/LICENSE +21 -0
- package/dist/src/agents/adal/descriptor.d.ts +14 -0
- package/dist/src/agents/adal/descriptor.d.ts.map +1 -0
- package/dist/src/agents/adal/descriptor.js +19 -0
- package/dist/src/agents/adal/descriptor.js.map +1 -0
- package/dist/src/agents/adal/index.d.ts +8 -0
- package/dist/src/agents/adal/index.d.ts.map +1 -0
- package/dist/src/agents/adal/index.js +8 -0
- package/dist/src/agents/adal/index.js.map +1 -0
- package/dist/src/agents/amp/descriptor.d.ts +14 -0
- package/dist/src/agents/amp/descriptor.d.ts.map +1 -0
- package/dist/src/agents/amp/descriptor.js +19 -0
- package/dist/src/agents/amp/descriptor.js.map +1 -0
- package/dist/src/agents/amp/index.d.ts +8 -0
- package/dist/src/agents/amp/index.d.ts.map +1 -0
- package/dist/src/agents/amp/index.js +8 -0
- package/dist/src/agents/amp/index.js.map +1 -0
- package/dist/src/agents/antigravity/descriptor.d.ts +14 -0
- package/dist/src/agents/antigravity/descriptor.d.ts.map +1 -0
- package/dist/src/agents/antigravity/descriptor.js +19 -0
- package/dist/src/agents/antigravity/descriptor.js.map +1 -0
- package/dist/src/agents/antigravity/index.d.ts +8 -0
- package/dist/src/agents/antigravity/index.d.ts.map +1 -0
- package/dist/src/agents/antigravity/index.js +8 -0
- package/dist/src/agents/antigravity/index.js.map +1 -0
- package/dist/src/agents/augment/descriptor.d.ts +14 -0
- package/dist/src/agents/augment/descriptor.d.ts.map +1 -0
- package/dist/src/agents/augment/descriptor.js +19 -0
- package/dist/src/agents/augment/descriptor.js.map +1 -0
- package/dist/src/agents/augment/index.d.ts +8 -0
- package/dist/src/agents/augment/index.d.ts.map +1 -0
- package/dist/src/agents/augment/index.js +8 -0
- package/dist/src/agents/augment/index.js.map +1 -0
- package/dist/src/agents/claude-code/constants.d.ts +15 -0
- package/dist/src/agents/claude-code/constants.d.ts.map +1 -0
- package/dist/src/agents/claude-code/constants.js +17 -0
- package/dist/src/agents/claude-code/constants.js.map +1 -0
- package/dist/src/agents/claude-code/descriptor.d.ts +14 -0
- package/dist/src/agents/claude-code/descriptor.d.ts.map +1 -0
- package/dist/src/agents/claude-code/descriptor.js +21 -0
- package/dist/src/agents/claude-code/descriptor.js.map +1 -0
- package/dist/src/agents/claude-code/detection.d.ts +16 -0
- package/dist/src/agents/claude-code/detection.d.ts.map +1 -0
- package/dist/src/agents/claude-code/detection.js +19 -0
- package/dist/src/agents/claude-code/detection.js.map +1 -0
- package/dist/src/agents/claude-code/index.d.ts +10 -0
- package/dist/src/agents/claude-code/index.d.ts.map +1 -0
- package/dist/src/agents/claude-code/index.js +10 -0
- package/dist/src/agents/claude-code/index.js.map +1 -0
- package/dist/src/agents/cline/descriptor.d.ts +14 -0
- package/dist/src/agents/cline/descriptor.d.ts.map +1 -0
- package/dist/src/agents/cline/descriptor.js +19 -0
- package/dist/src/agents/cline/descriptor.js.map +1 -0
- package/dist/src/agents/cline/index.d.ts +8 -0
- package/dist/src/agents/cline/index.d.ts.map +1 -0
- package/dist/src/agents/cline/index.js +8 -0
- package/dist/src/agents/cline/index.js.map +1 -0
- package/dist/src/agents/codebuddy/descriptor.d.ts +14 -0
- package/dist/src/agents/codebuddy/descriptor.d.ts.map +1 -0
- package/dist/src/agents/codebuddy/descriptor.js +19 -0
- package/dist/src/agents/codebuddy/descriptor.js.map +1 -0
- package/dist/src/agents/codebuddy/index.d.ts +8 -0
- package/dist/src/agents/codebuddy/index.d.ts.map +1 -0
- package/dist/src/agents/codebuddy/index.js +8 -0
- package/dist/src/agents/codebuddy/index.js.map +1 -0
- package/dist/src/agents/codex/constants.d.ts +15 -0
- package/dist/src/agents/codex/constants.d.ts.map +1 -0
- package/dist/src/agents/codex/constants.js +17 -0
- package/dist/src/agents/codex/constants.js.map +1 -0
- package/dist/src/agents/codex/descriptor.d.ts +14 -0
- package/dist/src/agents/codex/descriptor.d.ts.map +1 -0
- package/dist/src/agents/codex/descriptor.js +21 -0
- package/dist/src/agents/codex/descriptor.js.map +1 -0
- package/dist/src/agents/codex/detection.d.ts +18 -0
- package/dist/src/agents/codex/detection.d.ts.map +1 -0
- package/dist/src/agents/codex/detection.js +22 -0
- package/dist/src/agents/codex/detection.js.map +1 -0
- package/dist/src/agents/codex/index.d.ts +10 -0
- package/dist/src/agents/codex/index.d.ts.map +1 -0
- package/dist/src/agents/codex/index.js +10 -0
- package/dist/src/agents/codex/index.js.map +1 -0
- package/dist/src/agents/command-code/descriptor.d.ts +14 -0
- package/dist/src/agents/command-code/descriptor.d.ts.map +1 -0
- package/dist/src/agents/command-code/descriptor.js +19 -0
- package/dist/src/agents/command-code/descriptor.js.map +1 -0
- package/dist/src/agents/command-code/index.d.ts +8 -0
- package/dist/src/agents/command-code/index.d.ts.map +1 -0
- package/dist/src/agents/command-code/index.js +8 -0
- package/dist/src/agents/command-code/index.js.map +1 -0
- package/dist/src/agents/constants.d.ts +24 -0
- package/dist/src/agents/constants.d.ts.map +1 -0
- package/dist/src/agents/constants.js +26 -0
- package/dist/src/agents/constants.js.map +1 -0
- package/dist/src/agents/continue/descriptor.d.ts +14 -0
- package/dist/src/agents/continue/descriptor.d.ts.map +1 -0
- package/dist/src/agents/continue/descriptor.js +21 -0
- package/dist/src/agents/continue/descriptor.js.map +1 -0
- package/dist/src/agents/continue/detection.d.ts +16 -0
- package/dist/src/agents/continue/detection.d.ts.map +1 -0
- package/dist/src/agents/continue/detection.js +20 -0
- package/dist/src/agents/continue/detection.js.map +1 -0
- package/dist/src/agents/continue/index.d.ts +9 -0
- package/dist/src/agents/continue/index.d.ts.map +1 -0
- package/dist/src/agents/continue/index.js +9 -0
- package/dist/src/agents/continue/index.js.map +1 -0
- package/dist/src/agents/crush/descriptor.d.ts +14 -0
- package/dist/src/agents/crush/descriptor.d.ts.map +1 -0
- package/dist/src/agents/crush/descriptor.js +19 -0
- package/dist/src/agents/crush/descriptor.js.map +1 -0
- package/dist/src/agents/crush/index.d.ts +8 -0
- package/dist/src/agents/crush/index.d.ts.map +1 -0
- package/dist/src/agents/crush/index.js +8 -0
- package/dist/src/agents/crush/index.js.map +1 -0
- package/dist/src/agents/cursor/descriptor.d.ts +14 -0
- package/dist/src/agents/cursor/descriptor.d.ts.map +1 -0
- package/dist/src/agents/cursor/descriptor.js +21 -0
- package/dist/src/agents/cursor/descriptor.js.map +1 -0
- package/dist/src/agents/cursor/detection.d.ts +16 -0
- package/dist/src/agents/cursor/detection.d.ts.map +1 -0
- package/dist/src/agents/cursor/detection.js +20 -0
- package/dist/src/agents/cursor/detection.js.map +1 -0
- package/dist/src/agents/cursor/index.d.ts +9 -0
- package/dist/src/agents/cursor/index.d.ts.map +1 -0
- package/dist/src/agents/cursor/index.js +9 -0
- package/dist/src/agents/cursor/index.js.map +1 -0
- package/dist/src/agents/detection.d.ts +85 -0
- package/dist/src/agents/detection.d.ts.map +1 -0
- package/dist/src/agents/detection.js +120 -0
- package/dist/src/agents/detection.js.map +1 -0
- package/dist/src/agents/droid/descriptor.d.ts +14 -0
- package/dist/src/agents/droid/descriptor.d.ts.map +1 -0
- package/dist/src/agents/droid/descriptor.js +19 -0
- package/dist/src/agents/droid/descriptor.js.map +1 -0
- package/dist/src/agents/droid/index.d.ts +8 -0
- package/dist/src/agents/droid/index.d.ts.map +1 -0
- package/dist/src/agents/droid/index.js +8 -0
- package/dist/src/agents/droid/index.js.map +1 -0
- package/dist/src/agents/gemini-cli/descriptor.d.ts +14 -0
- package/dist/src/agents/gemini-cli/descriptor.d.ts.map +1 -0
- package/dist/src/agents/gemini-cli/descriptor.js +19 -0
- package/dist/src/agents/gemini-cli/descriptor.js.map +1 -0
- package/dist/src/agents/gemini-cli/index.d.ts +8 -0
- package/dist/src/agents/gemini-cli/index.d.ts.map +1 -0
- package/dist/src/agents/gemini-cli/index.js +8 -0
- package/dist/src/agents/gemini-cli/index.js.map +1 -0
- package/dist/src/agents/github-copilot/descriptor.d.ts +14 -0
- package/dist/src/agents/github-copilot/descriptor.d.ts.map +1 -0
- package/dist/src/agents/github-copilot/descriptor.js +19 -0
- package/dist/src/agents/github-copilot/descriptor.js.map +1 -0
- package/dist/src/agents/github-copilot/index.d.ts +8 -0
- package/dist/src/agents/github-copilot/index.d.ts.map +1 -0
- package/dist/src/agents/github-copilot/index.js +8 -0
- package/dist/src/agents/github-copilot/index.js.map +1 -0
- package/dist/src/agents/goose/descriptor.d.ts +14 -0
- package/dist/src/agents/goose/descriptor.d.ts.map +1 -0
- package/dist/src/agents/goose/descriptor.js +19 -0
- package/dist/src/agents/goose/descriptor.js.map +1 -0
- package/dist/src/agents/goose/index.d.ts +8 -0
- package/dist/src/agents/goose/index.d.ts.map +1 -0
- package/dist/src/agents/goose/index.js +8 -0
- package/dist/src/agents/goose/index.js.map +1 -0
- package/dist/src/agents/iflow-cli/descriptor.d.ts +14 -0
- package/dist/src/agents/iflow-cli/descriptor.d.ts.map +1 -0
- package/dist/src/agents/iflow-cli/descriptor.js +19 -0
- package/dist/src/agents/iflow-cli/descriptor.js.map +1 -0
- package/dist/src/agents/iflow-cli/index.d.ts +8 -0
- package/dist/src/agents/iflow-cli/index.d.ts.map +1 -0
- package/dist/src/agents/iflow-cli/index.js +8 -0
- package/dist/src/agents/iflow-cli/index.js.map +1 -0
- package/dist/src/agents/index.d.ts +15 -0
- package/dist/src/agents/index.d.ts.map +1 -0
- package/dist/src/agents/index.js +17 -0
- package/dist/src/agents/index.js.map +1 -0
- package/dist/src/agents/junie/descriptor.d.ts +14 -0
- package/dist/src/agents/junie/descriptor.d.ts.map +1 -0
- package/dist/src/agents/junie/descriptor.js +19 -0
- package/dist/src/agents/junie/descriptor.js.map +1 -0
- package/dist/src/agents/junie/index.d.ts +8 -0
- package/dist/src/agents/junie/index.d.ts.map +1 -0
- package/dist/src/agents/junie/index.js +8 -0
- package/dist/src/agents/junie/index.js.map +1 -0
- package/dist/src/agents/kilo/descriptor.d.ts +14 -0
- package/dist/src/agents/kilo/descriptor.d.ts.map +1 -0
- package/dist/src/agents/kilo/descriptor.js +19 -0
- package/dist/src/agents/kilo/descriptor.js.map +1 -0
- package/dist/src/agents/kilo/index.d.ts +8 -0
- package/dist/src/agents/kilo/index.d.ts.map +1 -0
- package/dist/src/agents/kilo/index.js +8 -0
- package/dist/src/agents/kilo/index.js.map +1 -0
- package/dist/src/agents/kimi-cli/descriptor.d.ts +14 -0
- package/dist/src/agents/kimi-cli/descriptor.d.ts.map +1 -0
- package/dist/src/agents/kimi-cli/descriptor.js +19 -0
- package/dist/src/agents/kimi-cli/descriptor.js.map +1 -0
- package/dist/src/agents/kimi-cli/index.d.ts +8 -0
- package/dist/src/agents/kimi-cli/index.d.ts.map +1 -0
- package/dist/src/agents/kimi-cli/index.js +8 -0
- package/dist/src/agents/kimi-cli/index.js.map +1 -0
- package/dist/src/agents/kiro-cli/descriptor.d.ts +14 -0
- package/dist/src/agents/kiro-cli/descriptor.d.ts.map +1 -0
- package/dist/src/agents/kiro-cli/descriptor.js +19 -0
- package/dist/src/agents/kiro-cli/descriptor.js.map +1 -0
- package/dist/src/agents/kiro-cli/index.d.ts +8 -0
- package/dist/src/agents/kiro-cli/index.d.ts.map +1 -0
- package/dist/src/agents/kiro-cli/index.js +8 -0
- package/dist/src/agents/kiro-cli/index.js.map +1 -0
- package/dist/src/agents/kode/descriptor.d.ts +14 -0
- package/dist/src/agents/kode/descriptor.d.ts.map +1 -0
- package/dist/src/agents/kode/descriptor.js +19 -0
- package/dist/src/agents/kode/descriptor.js.map +1 -0
- package/dist/src/agents/kode/index.d.ts +8 -0
- package/dist/src/agents/kode/index.d.ts.map +1 -0
- package/dist/src/agents/kode/index.js +8 -0
- package/dist/src/agents/kode/index.js.map +1 -0
- package/dist/src/agents/mcpjam/descriptor.d.ts +14 -0
- package/dist/src/agents/mcpjam/descriptor.d.ts.map +1 -0
- package/dist/src/agents/mcpjam/descriptor.js +19 -0
- package/dist/src/agents/mcpjam/descriptor.js.map +1 -0
- package/dist/src/agents/mcpjam/index.d.ts +8 -0
- package/dist/src/agents/mcpjam/index.d.ts.map +1 -0
- package/dist/src/agents/mcpjam/index.js +8 -0
- package/dist/src/agents/mcpjam/index.js.map +1 -0
- package/dist/src/agents/mistral-vibe/descriptor.d.ts +14 -0
- package/dist/src/agents/mistral-vibe/descriptor.d.ts.map +1 -0
- package/dist/src/agents/mistral-vibe/descriptor.js +19 -0
- package/dist/src/agents/mistral-vibe/descriptor.js.map +1 -0
- package/dist/src/agents/mistral-vibe/index.d.ts +8 -0
- package/dist/src/agents/mistral-vibe/index.d.ts.map +1 -0
- package/dist/src/agents/mistral-vibe/index.js +8 -0
- package/dist/src/agents/mistral-vibe/index.js.map +1 -0
- package/dist/src/agents/mux/descriptor.d.ts +14 -0
- package/dist/src/agents/mux/descriptor.d.ts.map +1 -0
- package/dist/src/agents/mux/descriptor.js +19 -0
- package/dist/src/agents/mux/descriptor.js.map +1 -0
- package/dist/src/agents/mux/index.d.ts +8 -0
- package/dist/src/agents/mux/index.d.ts.map +1 -0
- package/dist/src/agents/mux/index.js +8 -0
- package/dist/src/agents/mux/index.js.map +1 -0
- package/dist/src/agents/neovate/descriptor.d.ts +14 -0
- package/dist/src/agents/neovate/descriptor.d.ts.map +1 -0
- package/dist/src/agents/neovate/descriptor.js +19 -0
- package/dist/src/agents/neovate/descriptor.js.map +1 -0
- package/dist/src/agents/neovate/index.d.ts +8 -0
- package/dist/src/agents/neovate/index.d.ts.map +1 -0
- package/dist/src/agents/neovate/index.js +8 -0
- package/dist/src/agents/neovate/index.js.map +1 -0
- package/dist/src/agents/openclaw/descriptor.d.ts +14 -0
- package/dist/src/agents/openclaw/descriptor.d.ts.map +1 -0
- package/dist/src/agents/openclaw/descriptor.js +19 -0
- package/dist/src/agents/openclaw/descriptor.js.map +1 -0
- package/dist/src/agents/openclaw/index.d.ts +8 -0
- package/dist/src/agents/openclaw/index.d.ts.map +1 -0
- package/dist/src/agents/openclaw/index.js +8 -0
- package/dist/src/agents/openclaw/index.js.map +1 -0
- package/dist/src/agents/opencode/descriptor.d.ts +14 -0
- package/dist/src/agents/opencode/descriptor.d.ts.map +1 -0
- package/dist/src/agents/opencode/descriptor.js +21 -0
- package/dist/src/agents/opencode/descriptor.js.map +1 -0
- package/dist/src/agents/opencode/detection.d.ts +16 -0
- package/dist/src/agents/opencode/detection.d.ts.map +1 -0
- package/dist/src/agents/opencode/detection.js +20 -0
- package/dist/src/agents/opencode/detection.js.map +1 -0
- package/dist/src/agents/opencode/index.d.ts +9 -0
- package/dist/src/agents/opencode/index.d.ts.map +1 -0
- package/dist/src/agents/opencode/index.js +9 -0
- package/dist/src/agents/opencode/index.js.map +1 -0
- package/dist/src/agents/openhands/descriptor.d.ts +14 -0
- package/dist/src/agents/openhands/descriptor.d.ts.map +1 -0
- package/dist/src/agents/openhands/descriptor.js +19 -0
- package/dist/src/agents/openhands/descriptor.js.map +1 -0
- package/dist/src/agents/openhands/index.d.ts +8 -0
- package/dist/src/agents/openhands/index.d.ts.map +1 -0
- package/dist/src/agents/openhands/index.js +8 -0
- package/dist/src/agents/openhands/index.js.map +1 -0
- package/dist/src/agents/pi/descriptor.d.ts +14 -0
- package/dist/src/agents/pi/descriptor.d.ts.map +1 -0
- package/dist/src/agents/pi/descriptor.js +19 -0
- package/dist/src/agents/pi/descriptor.js.map +1 -0
- package/dist/src/agents/pi/index.d.ts +8 -0
- package/dist/src/agents/pi/index.d.ts.map +1 -0
- package/dist/src/agents/pi/index.js +8 -0
- package/dist/src/agents/pi/index.js.map +1 -0
- package/dist/src/agents/pochi/descriptor.d.ts +14 -0
- package/dist/src/agents/pochi/descriptor.d.ts.map +1 -0
- package/dist/src/agents/pochi/descriptor.js +19 -0
- package/dist/src/agents/pochi/descriptor.js.map +1 -0
- package/dist/src/agents/pochi/index.d.ts +8 -0
- package/dist/src/agents/pochi/index.d.ts.map +1 -0
- package/dist/src/agents/pochi/index.js +8 -0
- package/dist/src/agents/pochi/index.js.map +1 -0
- package/dist/src/agents/qoder/descriptor.d.ts +14 -0
- package/dist/src/agents/qoder/descriptor.d.ts.map +1 -0
- package/dist/src/agents/qoder/descriptor.js +19 -0
- package/dist/src/agents/qoder/descriptor.js.map +1 -0
- package/dist/src/agents/qoder/index.d.ts +8 -0
- package/dist/src/agents/qoder/index.d.ts.map +1 -0
- package/dist/src/agents/qoder/index.js +8 -0
- package/dist/src/agents/qoder/index.js.map +1 -0
- package/dist/src/agents/qwen-code/descriptor.d.ts +14 -0
- package/dist/src/agents/qwen-code/descriptor.d.ts.map +1 -0
- package/dist/src/agents/qwen-code/descriptor.js +19 -0
- package/dist/src/agents/qwen-code/descriptor.js.map +1 -0
- package/dist/src/agents/qwen-code/index.d.ts +8 -0
- package/dist/src/agents/qwen-code/index.d.ts.map +1 -0
- package/dist/src/agents/qwen-code/index.js +8 -0
- package/dist/src/agents/qwen-code/index.js.map +1 -0
- package/dist/src/agents/registry.d.ts +72 -0
- package/dist/src/agents/registry.d.ts.map +1 -0
- package/dist/src/agents/registry.js +150 -0
- package/dist/src/agents/registry.js.map +1 -0
- package/dist/src/agents/replit/descriptor.d.ts +16 -0
- package/dist/src/agents/replit/descriptor.d.ts.map +1 -0
- package/dist/src/agents/replit/descriptor.js +21 -0
- package/dist/src/agents/replit/descriptor.js.map +1 -0
- package/dist/src/agents/replit/index.d.ts +8 -0
- package/dist/src/agents/replit/index.d.ts.map +1 -0
- package/dist/src/agents/replit/index.js +8 -0
- package/dist/src/agents/replit/index.js.map +1 -0
- package/dist/src/agents/roo/descriptor.d.ts +14 -0
- package/dist/src/agents/roo/descriptor.d.ts.map +1 -0
- package/dist/src/agents/roo/descriptor.js +19 -0
- package/dist/src/agents/roo/descriptor.js.map +1 -0
- package/dist/src/agents/roo/index.d.ts +8 -0
- package/dist/src/agents/roo/index.d.ts.map +1 -0
- package/dist/src/agents/roo/index.js +8 -0
- package/dist/src/agents/roo/index.js.map +1 -0
- package/dist/src/agents/trae/descriptor.d.ts +14 -0
- package/dist/src/agents/trae/descriptor.d.ts.map +1 -0
- package/dist/src/agents/trae/descriptor.js +19 -0
- package/dist/src/agents/trae/descriptor.js.map +1 -0
- package/dist/src/agents/trae/index.d.ts +8 -0
- package/dist/src/agents/trae/index.d.ts.map +1 -0
- package/dist/src/agents/trae/index.js +8 -0
- package/dist/src/agents/trae/index.js.map +1 -0
- package/dist/src/agents/trae-cn/descriptor.d.ts +14 -0
- package/dist/src/agents/trae-cn/descriptor.d.ts.map +1 -0
- package/dist/src/agents/trae-cn/descriptor.js +19 -0
- package/dist/src/agents/trae-cn/descriptor.js.map +1 -0
- package/dist/src/agents/trae-cn/index.d.ts +8 -0
- package/dist/src/agents/trae-cn/index.d.ts.map +1 -0
- package/dist/src/agents/trae-cn/index.js +8 -0
- package/dist/src/agents/trae-cn/index.js.map +1 -0
- package/dist/src/agents/types.d.ts +57 -0
- package/dist/src/agents/types.d.ts.map +1 -0
- package/dist/src/agents/types.js +8 -0
- package/dist/src/agents/types.js.map +1 -0
- package/dist/src/agents/windsurf/descriptor.d.ts +14 -0
- package/dist/src/agents/windsurf/descriptor.d.ts.map +1 -0
- package/dist/src/agents/windsurf/descriptor.js +21 -0
- package/dist/src/agents/windsurf/descriptor.js.map +1 -0
- package/dist/src/agents/windsurf/detection.d.ts +16 -0
- package/dist/src/agents/windsurf/detection.d.ts.map +1 -0
- package/dist/src/agents/windsurf/detection.js +20 -0
- package/dist/src/agents/windsurf/detection.js.map +1 -0
- package/dist/src/agents/windsurf/index.d.ts +9 -0
- package/dist/src/agents/windsurf/index.d.ts.map +1 -0
- package/dist/src/agents/windsurf/index.js +9 -0
- package/dist/src/agents/windsurf/index.js.map +1 -0
- package/dist/src/agents/zencoder/descriptor.d.ts +14 -0
- package/dist/src/agents/zencoder/descriptor.d.ts.map +1 -0
- package/dist/src/agents/zencoder/descriptor.js +19 -0
- package/dist/src/agents/zencoder/descriptor.js.map +1 -0
- package/dist/src/agents/zencoder/index.d.ts +8 -0
- package/dist/src/agents/zencoder/index.d.ts.map +1 -0
- package/dist/src/agents/zencoder/index.js +8 -0
- package/dist/src/agents/zencoder/index.js.map +1 -0
- package/dist/src/cli-commands/init/command.d.ts +10 -0
- package/dist/src/cli-commands/init/command.d.ts.map +1 -0
- package/dist/src/cli-commands/init/command.js +47 -0
- package/dist/src/cli-commands/init/command.js.map +1 -0
- package/dist/src/cli-commands/init/handler.d.ts +22 -0
- package/dist/src/cli-commands/init/handler.d.ts.map +1 -0
- package/dist/src/cli-commands/init/handler.js +43 -0
- package/dist/src/cli-commands/init/handler.js.map +1 -0
- package/dist/src/cli-commands/skills/command.d.ts +3 -0
- package/dist/src/cli-commands/skills/command.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/command.js +32 -0
- package/dist/src/cli-commands/skills/command.js.map +1 -0
- package/dist/src/cli-commands/skills/copy-skill-directory.d.ts +22 -0
- package/dist/src/cli-commands/skills/copy-skill-directory.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/copy-skill-directory.js +51 -0
- package/dist/src/cli-commands/skills/copy-skill-directory.js.map +1 -0
- package/dist/src/cli-commands/skills/copy-skill.d.ts +24 -0
- package/dist/src/cli-commands/skills/copy-skill.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/copy-skill.js +79 -0
- package/dist/src/cli-commands/skills/copy-skill.js.map +1 -0
- package/dist/src/cli-commands/skills/fork/command.d.ts +15 -0
- package/dist/src/cli-commands/skills/fork/command.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/fork/command.js +59 -0
- package/dist/src/cli-commands/skills/fork/command.js.map +1 -0
- package/dist/src/cli-commands/skills/fork/handler.d.ts +49 -0
- package/dist/src/cli-commands/skills/fork/handler.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/fork/handler.js +180 -0
- package/dist/src/cli-commands/skills/fork/handler.js.map +1 -0
- package/dist/src/cli-commands/skills/index.d.ts +3 -0
- package/dist/src/cli-commands/skills/index.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/index.js +3 -0
- package/dist/src/cli-commands/skills/index.js.map +1 -0
- package/dist/src/cli-commands/skills/install/build-plan.d.ts +19 -0
- package/dist/src/cli-commands/skills/install/build-plan.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/install/build-plan.js +43 -0
- package/dist/src/cli-commands/skills/install/build-plan.js.map +1 -0
- package/dist/src/cli-commands/skills/install/command.d.ts +16 -0
- package/dist/src/cli-commands/skills/install/command.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/install/command.js +91 -0
- package/dist/src/cli-commands/skills/install/command.js.map +1 -0
- package/dist/src/cli-commands/skills/install/discover-skills.d.ts +62 -0
- package/dist/src/cli-commands/skills/install/discover-skills.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/install/discover-skills.js +231 -0
- package/dist/src/cli-commands/skills/install/discover-skills.js.map +1 -0
- package/dist/src/cli-commands/skills/install/handler.d.ts +75 -0
- package/dist/src/cli-commands/skills/install/handler.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/install/handler.js +151 -0
- package/dist/src/cli-commands/skills/install/handler.js.map +1 -0
- package/dist/src/cli-commands/skills/install/install-result.d.ts +31 -0
- package/dist/src/cli-commands/skills/install/install-result.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/install/install-result.js +10 -0
- package/dist/src/cli-commands/skills/install/install-result.js.map +1 -0
- package/dist/src/cli-commands/skills/install/install-skill.d.ts +27 -0
- package/dist/src/cli-commands/skills/install/install-skill.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/install/install-skill.js +231 -0
- package/dist/src/cli-commands/skills/install/install-skill.js.map +1 -0
- package/dist/src/cli-commands/skills/install/parse-manifests.d.ts +16 -0
- package/dist/src/cli-commands/skills/install/parse-manifests.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/install/parse-manifests.js +161 -0
- package/dist/src/cli-commands/skills/install/parse-manifests.js.map +1 -0
- package/dist/src/cli-commands/skills/install/parse-skill-md.d.ts +18 -0
- package/dist/src/cli-commands/skills/install/parse-skill-md.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/install/parse-skill-md.js +47 -0
- package/dist/src/cli-commands/skills/install/parse-skill-md.js.map +1 -0
- package/dist/src/cli-commands/skills/install/select-skills.d.ts +37 -0
- package/dist/src/cli-commands/skills/install/select-skills.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/install/select-skills.js +84 -0
- package/dist/src/cli-commands/skills/install/select-skills.js.map +1 -0
- package/dist/src/cli-commands/skills/install/skill-utils.d.ts +27 -0
- package/dist/src/cli-commands/skills/install/skill-utils.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/install/skill-utils.js +43 -0
- package/dist/src/cli-commands/skills/install/skill-utils.js.map +1 -0
- package/dist/src/cli-commands/skills/list/command.d.ts +12 -0
- package/dist/src/cli-commands/skills/list/command.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/list/command.js +43 -0
- package/dist/src/cli-commands/skills/list/command.js.map +1 -0
- package/dist/src/cli-commands/skills/list/handler.d.ts +29 -0
- package/dist/src/cli-commands/skills/list/handler.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/list/handler.js +43 -0
- package/dist/src/cli-commands/skills/list/handler.js.map +1 -0
- package/dist/src/cli-commands/skills/operations.d.ts +95 -0
- package/dist/src/cli-commands/skills/operations.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/operations.js +10 -0
- package/dist/src/cli-commands/skills/operations.js.map +1 -0
- package/dist/src/cli-commands/skills/publish/command.d.ts +15 -0
- package/dist/src/cli-commands/skills/publish/command.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/publish/command.js +56 -0
- package/dist/src/cli-commands/skills/publish/command.js.map +1 -0
- package/dist/src/cli-commands/skills/publish/handler.d.ts +43 -0
- package/dist/src/cli-commands/skills/publish/handler.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/publish/handler.js +137 -0
- package/dist/src/cli-commands/skills/publish/handler.js.map +1 -0
- package/dist/src/cli-commands/skills/publish-skill.d.ts +25 -0
- package/dist/src/cli-commands/skills/publish-skill.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/publish-skill.js +155 -0
- package/dist/src/cli-commands/skills/publish-skill.js.map +1 -0
- package/dist/src/cli-commands/skills/source-to-lock-entry.d.ts +37 -0
- package/dist/src/cli-commands/skills/source-to-lock-entry.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/source-to-lock-entry.js +110 -0
- package/dist/src/cli-commands/skills/source-to-lock-entry.js.map +1 -0
- package/dist/src/cli-commands/skills/uninstall/build-plan.d.ts +19 -0
- package/dist/src/cli-commands/skills/uninstall/build-plan.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/uninstall/build-plan.js +43 -0
- package/dist/src/cli-commands/skills/uninstall/build-plan.js.map +1 -0
- package/dist/src/cli-commands/skills/uninstall/command.d.ts +15 -0
- package/dist/src/cli-commands/skills/uninstall/command.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/uninstall/command.js +60 -0
- package/dist/src/cli-commands/skills/uninstall/command.js.map +1 -0
- package/dist/src/cli-commands/skills/uninstall/handler.d.ts +40 -0
- package/dist/src/cli-commands/skills/uninstall/handler.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/uninstall/handler.js +66 -0
- package/dist/src/cli-commands/skills/uninstall/handler.js.map +1 -0
- package/dist/src/cli-commands/skills/uninstall/uninstall-skill.d.ts +25 -0
- package/dist/src/cli-commands/skills/uninstall/uninstall-skill.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/uninstall/uninstall-skill.js +177 -0
- package/dist/src/cli-commands/skills/uninstall/uninstall-skill.js.map +1 -0
- package/dist/src/cli-commands/skills/update/build-plan.d.ts +20 -0
- package/dist/src/cli-commands/skills/update/build-plan.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/update/build-plan.js +80 -0
- package/dist/src/cli-commands/skills/update/build-plan.js.map +1 -0
- package/dist/src/cli-commands/skills/update/command.d.ts +14 -0
- package/dist/src/cli-commands/skills/update/command.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/update/command.js +75 -0
- package/dist/src/cli-commands/skills/update/command.js.map +1 -0
- package/dist/src/cli-commands/skills/update/handler.d.ts +64 -0
- package/dist/src/cli-commands/skills/update/handler.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/update/handler.js +174 -0
- package/dist/src/cli-commands/skills/update/handler.js.map +1 -0
- package/dist/src/cli-commands/skills/update/index.d.ts +2 -0
- package/dist/src/cli-commands/skills/update/index.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/update/index.js +2 -0
- package/dist/src/cli-commands/skills/update/index.js.map +1 -0
- package/dist/src/cli-commands/skills/utils.d.ts +42 -0
- package/dist/src/cli-commands/skills/utils.d.ts.map +1 -0
- package/dist/src/cli-commands/skills/utils.js +84 -0
- package/dist/src/cli-commands/skills/utils.js.map +1 -0
- package/dist/src/dev-cli-commands/tui/command.d.ts +3 -0
- package/dist/src/dev-cli-commands/tui/command.d.ts.map +1 -0
- package/dist/src/dev-cli-commands/tui/command.js +24 -0
- package/dist/src/dev-cli-commands/tui/command.js.map +1 -0
- package/dist/src/dev-cli-commands/tui/confirm/command.d.ts +3 -0
- package/dist/src/dev-cli-commands/tui/confirm/command.d.ts.map +1 -0
- package/dist/src/dev-cli-commands/tui/confirm/command.js +16 -0
- package/dist/src/dev-cli-commands/tui/confirm/command.js.map +1 -0
- package/dist/src/dev-cli-commands/tui/log/command.d.ts +3 -0
- package/dist/src/dev-cli-commands/tui/log/command.d.ts.map +1 -0
- package/dist/src/dev-cli-commands/tui/log/command.js +18 -0
- package/dist/src/dev-cli-commands/tui/log/command.js.map +1 -0
- package/dist/src/dev-cli-commands/tui/multiselect/command.d.ts +3 -0
- package/dist/src/dev-cli-commands/tui/multiselect/command.d.ts.map +1 -0
- package/dist/src/dev-cli-commands/tui/multiselect/command.js +23 -0
- package/dist/src/dev-cli-commands/tui/multiselect/command.js.map +1 -0
- package/dist/src/dev-cli-commands/tui/note/command.d.ts +3 -0
- package/dist/src/dev-cli-commands/tui/note/command.d.ts.map +1 -0
- package/dist/src/dev-cli-commands/tui/note/command.js +15 -0
- package/dist/src/dev-cli-commands/tui/note/command.js.map +1 -0
- package/dist/src/dev-cli-commands/tui/password-input/command.d.ts +3 -0
- package/dist/src/dev-cli-commands/tui/password-input/command.d.ts.map +1 -0
- package/dist/src/dev-cli-commands/tui/password-input/command.js +16 -0
- package/dist/src/dev-cli-commands/tui/password-input/command.js.map +1 -0
- package/dist/src/dev-cli-commands/tui/select/command.d.ts +3 -0
- package/dist/src/dev-cli-commands/tui/select/command.d.ts.map +1 -0
- package/dist/src/dev-cli-commands/tui/select/command.js +21 -0
- package/dist/src/dev-cli-commands/tui/select/command.js.map +1 -0
- package/dist/src/dev-cli-commands/tui/spinner/command.d.ts +3 -0
- package/dist/src/dev-cli-commands/tui/spinner/command.d.ts.map +1 -0
- package/dist/src/dev-cli-commands/tui/spinner/command.js +16 -0
- package/dist/src/dev-cli-commands/tui/spinner/command.js.map +1 -0
- package/dist/src/dev-cli-commands/tui/text-input/command.d.ts +3 -0
- package/dist/src/dev-cli-commands/tui/text-input/command.d.ts.map +1 -0
- package/dist/src/dev-cli-commands/tui/text-input/command.js +19 -0
- package/dist/src/dev-cli-commands/tui/text-input/command.js.map +1 -0
- package/dist/src/dev-main.d.ts +3 -0
- package/dist/src/dev-main.d.ts.map +1 -0
- package/dist/src/dev-main.js +28 -0
- package/dist/src/dev-main.js.map +1 -0
- package/dist/src/e2e/utils.d.ts +103 -0
- package/dist/src/e2e/utils.d.ts.map +1 -0
- package/dist/src/e2e/utils.js +119 -0
- package/dist/src/e2e/utils.js.map +1 -0
- package/dist/src/extensions/commands/manifest-schema.d.ts +36 -0
- package/dist/src/extensions/commands/manifest-schema.d.ts.map +1 -0
- package/dist/src/extensions/commands/manifest-schema.js +19 -0
- package/dist/src/extensions/commands/manifest-schema.js.map +1 -0
- package/dist/src/extensions/common.d.ts +83 -0
- package/dist/src/extensions/common.d.ts.map +1 -0
- package/dist/src/extensions/common.js +55 -0
- package/dist/src/extensions/common.js.map +1 -0
- package/dist/src/extensions/mcp-servers/manifest-schema.d.ts +36 -0
- package/dist/src/extensions/mcp-servers/manifest-schema.d.ts.map +1 -0
- package/dist/src/extensions/mcp-servers/manifest-schema.js +19 -0
- package/dist/src/extensions/mcp-servers/manifest-schema.js.map +1 -0
- package/dist/src/extensions/packs/manifest-schema.d.ts +40 -0
- package/dist/src/extensions/packs/manifest-schema.d.ts.map +1 -0
- package/dist/src/extensions/packs/manifest-schema.js +23 -0
- package/dist/src/extensions/packs/manifest-schema.js.map +1 -0
- package/dist/src/extensions/skills/index.d.ts +13 -0
- package/dist/src/extensions/skills/index.d.ts.map +1 -0
- package/dist/src/extensions/skills/index.js +11 -0
- package/dist/src/extensions/skills/index.js.map +1 -0
- package/dist/src/extensions/skills/manifest-schema.d.ts +38 -0
- package/dist/src/extensions/skills/manifest-schema.d.ts.map +1 -0
- package/dist/src/extensions/skills/manifest-schema.js +21 -0
- package/dist/src/extensions/skills/manifest-schema.js.map +1 -0
- package/dist/src/extensions/skills/state/index.d.ts +49 -0
- package/dist/src/extensions/skills/state/index.d.ts.map +1 -0
- package/dist/src/extensions/skills/state/index.js +54 -0
- package/dist/src/extensions/skills/state/index.js.map +1 -0
- package/dist/src/extensions/skills/state/pure-functions.d.ts +101 -0
- package/dist/src/extensions/skills/state/pure-functions.d.ts.map +1 -0
- package/dist/src/extensions/skills/state/pure-functions.js +118 -0
- package/dist/src/extensions/skills/state/pure-functions.js.map +1 -0
- package/dist/src/extensions/skills/state/types.d.ts +2022 -0
- package/dist/src/extensions/skills/state/types.d.ts.map +1 -0
- package/dist/src/extensions/skills/state/types.js +622 -0
- package/dist/src/extensions/skills/state/types.js.map +1 -0
- package/dist/src/extensions/skills/types.d.ts +62 -0
- package/dist/src/extensions/skills/types.d.ts.map +1 -0
- package/dist/src/extensions/skills/types.js +10 -0
- package/dist/src/extensions/skills/types.js.map +1 -0
- package/dist/src/git/errors.d.ts +26 -0
- package/dist/src/git/errors.d.ts.map +1 -0
- package/dist/src/git/errors.js +16 -0
- package/dist/src/git/errors.js.map +1 -0
- package/dist/src/git/index.d.ts +9 -0
- package/dist/src/git/index.d.ts.map +1 -0
- package/dist/src/git/index.js +9 -0
- package/dist/src/git/index.js.map +1 -0
- package/dist/src/git/operations.d.ts +75 -0
- package/dist/src/git/operations.d.ts.map +1 -0
- package/dist/src/git/operations.js +175 -0
- package/dist/src/git/operations.js.map +1 -0
- package/dist/src/lockfile/index.d.ts +15 -0
- package/dist/src/lockfile/index.d.ts.map +1 -0
- package/dist/src/lockfile/index.js +13 -0
- package/dist/src/lockfile/index.js.map +1 -0
- package/dist/src/lockfile/lockfile.d.ts +93 -0
- package/dist/src/lockfile/lockfile.d.ts.map +1 -0
- package/dist/src/lockfile/lockfile.js +161 -0
- package/dist/src/lockfile/lockfile.js.map +1 -0
- package/dist/src/lockfile/schema.d.ts +400 -0
- package/dist/src/lockfile/schema.d.ts.map +1 -0
- package/dist/src/lockfile/schema.js +187 -0
- package/dist/src/lockfile/schema.js.map +1 -0
- package/dist/src/main.d.ts +10 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/main.js +36 -0
- package/dist/src/main.js.map +1 -0
- package/dist/src/registry/index.d.ts +12 -0
- package/dist/src/registry/index.d.ts.map +1 -0
- package/dist/src/registry/index.js +11 -0
- package/dist/src/registry/index.js.map +1 -0
- package/dist/src/registry/schema.d.ts +91 -0
- package/dist/src/registry/schema.d.ts.map +1 -0
- package/dist/src/registry/schema.js +69 -0
- package/dist/src/registry/schema.js.map +1 -0
- package/dist/src/resolution/errors.d.ts +29 -0
- package/dist/src/resolution/errors.d.ts.map +1 -0
- package/dist/src/resolution/errors.js +15 -0
- package/dist/src/resolution/errors.js.map +1 -0
- package/dist/src/resolution/index.d.ts +13 -0
- package/dist/src/resolution/index.d.ts.map +1 -0
- package/dist/src/resolution/index.js +14 -0
- package/dist/src/resolution/index.js.map +1 -0
- package/dist/src/resolution/resolver.d.ts +35 -0
- package/dist/src/resolution/resolver.d.ts.map +1 -0
- package/dist/src/resolution/resolver.js +105 -0
- package/dist/src/resolution/resolver.js.map +1 -0
- package/dist/src/resolution/resolvers/ambiguous.d.ts +42 -0
- package/dist/src/resolution/resolvers/ambiguous.d.ts.map +1 -0
- package/dist/src/resolution/resolvers/ambiguous.js +216 -0
- package/dist/src/resolution/resolvers/ambiguous.js.map +1 -0
- package/dist/src/resolution/resolvers/axm-name.d.ts +56 -0
- package/dist/src/resolution/resolvers/axm-name.d.ts.map +1 -0
- package/dist/src/resolution/resolvers/axm-name.js +132 -0
- package/dist/src/resolution/resolvers/axm-name.js.map +1 -0
- package/dist/src/resolution/resolvers/bare-name.d.ts +31 -0
- package/dist/src/resolution/resolvers/bare-name.d.ts.map +1 -0
- package/dist/src/resolution/resolvers/bare-name.js +64 -0
- package/dist/src/resolution/resolvers/bare-name.js.map +1 -0
- package/dist/src/resolution/resolvers/explicit-source.d.ts +29 -0
- package/dist/src/resolution/resolvers/explicit-source.d.ts.map +1 -0
- package/dist/src/resolution/resolvers/explicit-source.js +101 -0
- package/dist/src/resolution/resolvers/explicit-source.js.map +1 -0
- package/dist/src/resolution/resolvers/index.d.ts +13 -0
- package/dist/src/resolution/resolvers/index.d.ts.map +1 -0
- package/dist/src/resolution/resolvers/index.js +13 -0
- package/dist/src/resolution/resolvers/index.js.map +1 -0
- package/dist/src/resolution/resolvers/local-path.d.ts +40 -0
- package/dist/src/resolution/resolvers/local-path.d.ts.map +1 -0
- package/dist/src/resolution/resolvers/local-path.js +192 -0
- package/dist/src/resolution/resolvers/local-path.js.map +1 -0
- package/dist/src/resolution/resolvers/path-utils.d.ts +12 -0
- package/dist/src/resolution/resolvers/path-utils.d.ts.map +1 -0
- package/dist/src/resolution/resolvers/path-utils.js +22 -0
- package/dist/src/resolution/resolvers/path-utils.js.map +1 -0
- package/dist/src/resolution/resolvers/url-utils.d.ts +10 -0
- package/dist/src/resolution/resolvers/url-utils.d.ts.map +1 -0
- package/dist/src/resolution/resolvers/url-utils.js +23 -0
- package/dist/src/resolution/resolvers/url-utils.js.map +1 -0
- package/dist/src/resolution/resolvers/url.d.ts +30 -0
- package/dist/src/resolution/resolvers/url.d.ts.map +1 -0
- package/dist/src/resolution/resolvers/url.js +79 -0
- package/dist/src/resolution/resolvers/url.js.map +1 -0
- package/dist/src/resolution/types.d.ts +74 -0
- package/dist/src/resolution/types.d.ts.map +1 -0
- package/dist/src/resolution/types.js +8 -0
- package/dist/src/resolution/types.js.map +1 -0
- package/dist/src/runtime/index.d.ts +44 -0
- package/dist/src/runtime/index.d.ts.map +1 -0
- package/dist/src/runtime/index.js +37 -0
- package/dist/src/runtime/index.js.map +1 -0
- package/dist/src/settings/format-preserving-json.d.ts +64 -0
- package/dist/src/settings/format-preserving-json.d.ts.map +1 -0
- package/dist/src/settings/format-preserving-json.js +132 -0
- package/dist/src/settings/format-preserving-json.js.map +1 -0
- package/dist/src/settings/index.d.ts +16 -0
- package/dist/src/settings/index.d.ts.map +1 -0
- package/dist/src/settings/index.js +13 -0
- package/dist/src/settings/index.js.map +1 -0
- package/dist/src/settings/schema.d.ts +194 -0
- package/dist/src/settings/schema.d.ts.map +1 -0
- package/dist/src/settings/schema.js +182 -0
- package/dist/src/settings/schema.js.map +1 -0
- package/dist/src/settings/settings.d.ts +143 -0
- package/dist/src/settings/settings.d.ts.map +1 -0
- package/dist/src/settings/settings.js +160 -0
- package/dist/src/settings/settings.js.map +1 -0
- package/dist/src/skills/glob.d.ts +31 -0
- package/dist/src/skills/glob.d.ts.map +1 -0
- package/dist/src/skills/glob.js +44 -0
- package/dist/src/skills/glob.js.map +1 -0
- package/dist/src/skills/index.d.ts +7 -0
- package/dist/src/skills/index.d.ts.map +1 -0
- package/dist/src/skills/index.js +7 -0
- package/dist/src/skills/index.js.map +1 -0
- package/dist/src/sources/azurerepos/index.d.ts +11 -0
- package/dist/src/sources/azurerepos/index.d.ts.map +1 -0
- package/dist/src/sources/azurerepos/index.js +11 -0
- package/dist/src/sources/azurerepos/index.js.map +1 -0
- package/dist/src/sources/azurerepos/print.d.ts +3 -0
- package/dist/src/sources/azurerepos/print.d.ts.map +1 -0
- package/dist/src/sources/azurerepos/print.js +10 -0
- package/dist/src/sources/azurerepos/print.js.map +1 -0
- package/dist/src/sources/azurerepos/repo-exists.d.ts +4 -0
- package/dist/src/sources/azurerepos/repo-exists.d.ts.map +1 -0
- package/dist/src/sources/azurerepos/repo-exists.js +15 -0
- package/dist/src/sources/azurerepos/repo-exists.js.map +1 -0
- package/dist/src/sources/azurerepos/scp.d.ts +12 -0
- package/dist/src/sources/azurerepos/scp.d.ts.map +1 -0
- package/dist/src/sources/azurerepos/scp.js +21 -0
- package/dist/src/sources/azurerepos/scp.js.map +1 -0
- package/dist/src/sources/azurerepos/url.d.ts +13 -0
- package/dist/src/sources/azurerepos/url.d.ts.map +1 -0
- package/dist/src/sources/azurerepos/url.js +24 -0
- package/dist/src/sources/azurerepos/url.js.map +1 -0
- package/dist/src/sources/bitbucket/index.d.ts +12 -0
- package/dist/src/sources/bitbucket/index.d.ts.map +1 -0
- package/dist/src/sources/bitbucket/index.js +12 -0
- package/dist/src/sources/bitbucket/index.js.map +1 -0
- package/dist/src/sources/bitbucket/print.d.ts +3 -0
- package/dist/src/sources/bitbucket/print.d.ts.map +1 -0
- package/dist/src/sources/bitbucket/print.js +10 -0
- package/dist/src/sources/bitbucket/print.js.map +1 -0
- package/dist/src/sources/bitbucket/resolve-repo.d.ts +10 -0
- package/dist/src/sources/bitbucket/resolve-repo.d.ts.map +1 -0
- package/dist/src/sources/bitbucket/resolve-repo.js +30 -0
- package/dist/src/sources/bitbucket/resolve-repo.js.map +1 -0
- package/dist/src/sources/bitbucket/scp.d.ts +11 -0
- package/dist/src/sources/bitbucket/scp.d.ts.map +1 -0
- package/dist/src/sources/bitbucket/scp.js +20 -0
- package/dist/src/sources/bitbucket/scp.js.map +1 -0
- package/dist/src/sources/bitbucket/shorthand.d.ts +10 -0
- package/dist/src/sources/bitbucket/shorthand.d.ts.map +1 -0
- package/dist/src/sources/bitbucket/shorthand.js +15 -0
- package/dist/src/sources/bitbucket/shorthand.js.map +1 -0
- package/dist/src/sources/bitbucket/url.d.ts +12 -0
- package/dist/src/sources/bitbucket/url.d.ts.map +1 -0
- package/dist/src/sources/bitbucket/url.js +23 -0
- package/dist/src/sources/bitbucket/url.js.map +1 -0
- package/dist/src/sources/clone-url.d.ts +41 -0
- package/dist/src/sources/clone-url.d.ts.map +1 -0
- package/dist/src/sources/clone-url.js +73 -0
- package/dist/src/sources/clone-url.js.map +1 -0
- package/dist/src/sources/errors.d.ts +34 -0
- package/dist/src/sources/errors.d.ts.map +1 -0
- package/dist/src/sources/errors.js +22 -0
- package/dist/src/sources/errors.js.map +1 -0
- package/dist/src/sources/github/api.d.ts +42 -0
- package/dist/src/sources/github/api.d.ts.map +1 -0
- package/dist/src/sources/github/api.js +94 -0
- package/dist/src/sources/github/api.js.map +1 -0
- package/dist/src/sources/github/index.d.ts +13 -0
- package/dist/src/sources/github/index.d.ts.map +1 -0
- package/dist/src/sources/github/index.js +13 -0
- package/dist/src/sources/github/index.js.map +1 -0
- package/dist/src/sources/github/print.d.ts +3 -0
- package/dist/src/sources/github/print.d.ts.map +1 -0
- package/dist/src/sources/github/print.js +10 -0
- package/dist/src/sources/github/print.js.map +1 -0
- package/dist/src/sources/github/resolve-repo.d.ts +10 -0
- package/dist/src/sources/github/resolve-repo.d.ts.map +1 -0
- package/dist/src/sources/github/resolve-repo.js +30 -0
- package/dist/src/sources/github/resolve-repo.js.map +1 -0
- package/dist/src/sources/github/scp.d.ts +11 -0
- package/dist/src/sources/github/scp.d.ts.map +1 -0
- package/dist/src/sources/github/scp.js +20 -0
- package/dist/src/sources/github/scp.js.map +1 -0
- package/dist/src/sources/github/shorthand.d.ts +10 -0
- package/dist/src/sources/github/shorthand.d.ts.map +1 -0
- package/dist/src/sources/github/shorthand.js +15 -0
- package/dist/src/sources/github/shorthand.js.map +1 -0
- package/dist/src/sources/github/url.d.ts +12 -0
- package/dist/src/sources/github/url.d.ts.map +1 -0
- package/dist/src/sources/github/url.js +23 -0
- package/dist/src/sources/github/url.js.map +1 -0
- package/dist/src/sources/gitlab/index.d.ts +12 -0
- package/dist/src/sources/gitlab/index.d.ts.map +1 -0
- package/dist/src/sources/gitlab/index.js +12 -0
- package/dist/src/sources/gitlab/index.js.map +1 -0
- package/dist/src/sources/gitlab/print.d.ts +3 -0
- package/dist/src/sources/gitlab/print.d.ts.map +1 -0
- package/dist/src/sources/gitlab/print.js +10 -0
- package/dist/src/sources/gitlab/print.js.map +1 -0
- package/dist/src/sources/gitlab/resolve-repo.d.ts +10 -0
- package/dist/src/sources/gitlab/resolve-repo.d.ts.map +1 -0
- package/dist/src/sources/gitlab/resolve-repo.js +30 -0
- package/dist/src/sources/gitlab/resolve-repo.js.map +1 -0
- package/dist/src/sources/gitlab/scp.d.ts +11 -0
- package/dist/src/sources/gitlab/scp.d.ts.map +1 -0
- package/dist/src/sources/gitlab/scp.js +20 -0
- package/dist/src/sources/gitlab/scp.js.map +1 -0
- package/dist/src/sources/gitlab/shorthand.d.ts +10 -0
- package/dist/src/sources/gitlab/shorthand.d.ts.map +1 -0
- package/dist/src/sources/gitlab/shorthand.js +15 -0
- package/dist/src/sources/gitlab/shorthand.js.map +1 -0
- package/dist/src/sources/gitlab/url.d.ts +12 -0
- package/dist/src/sources/gitlab/url.d.ts.map +1 -0
- package/dist/src/sources/gitlab/url.js +23 -0
- package/dist/src/sources/gitlab/url.js.map +1 -0
- package/dist/src/sources/index.d.ts +31 -0
- package/dist/src/sources/index.d.ts.map +1 -0
- package/dist/src/sources/index.js +30 -0
- package/dist/src/sources/index.js.map +1 -0
- package/dist/src/sources/local/index.d.ts +9 -0
- package/dist/src/sources/local/index.d.ts.map +1 -0
- package/dist/src/sources/local/index.js +9 -0
- package/dist/src/sources/local/index.js.map +1 -0
- package/dist/src/sources/local/parser.d.ts +14 -0
- package/dist/src/sources/local/parser.d.ts.map +1 -0
- package/dist/src/sources/local/parser.js +14 -0
- package/dist/src/sources/local/parser.js.map +1 -0
- package/dist/src/sources/local/print.d.ts +3 -0
- package/dist/src/sources/local/print.d.ts.map +1 -0
- package/dist/src/sources/local/print.js +2 -0
- package/dist/src/sources/local/print.js.map +1 -0
- package/dist/src/sources/parse-provider-shorthand.d.ts +22 -0
- package/dist/src/sources/parse-provider-shorthand.d.ts.map +1 -0
- package/dist/src/sources/parse-provider-shorthand.js +30 -0
- package/dist/src/sources/parse-provider-shorthand.js.map +1 -0
- package/dist/src/sources/parser.d.ts +62 -0
- package/dist/src/sources/parser.d.ts.map +1 -0
- package/dist/src/sources/parser.js +83 -0
- package/dist/src/sources/parser.js.map +1 -0
- package/dist/src/sources/printer.d.ts +14 -0
- package/dist/src/sources/printer.d.ts.map +1 -0
- package/dist/src/sources/printer.js +35 -0
- package/dist/src/sources/printer.js.map +1 -0
- package/dist/src/sources/provider.d.ts +158 -0
- package/dist/src/sources/provider.d.ts.map +1 -0
- package/dist/src/sources/provider.js +38 -0
- package/dist/src/sources/provider.js.map +1 -0
- package/dist/src/sources/providers/azurerepos.d.ts +17 -0
- package/dist/src/sources/providers/azurerepos.d.ts.map +1 -0
- package/dist/src/sources/providers/azurerepos.js +27 -0
- package/dist/src/sources/providers/azurerepos.js.map +1 -0
- package/dist/src/sources/providers/git-hosting.d.ts +43 -0
- package/dist/src/sources/providers/git-hosting.d.ts.map +1 -0
- package/dist/src/sources/providers/git-hosting.js +118 -0
- package/dist/src/sources/providers/git-hosting.js.map +1 -0
- package/dist/src/sources/providers/git.d.ts +17 -0
- package/dist/src/sources/providers/git.d.ts.map +1 -0
- package/dist/src/sources/providers/git.js +27 -0
- package/dist/src/sources/providers/git.js.map +1 -0
- package/dist/src/sources/providers/index.d.ts +13 -0
- package/dist/src/sources/providers/index.d.ts.map +1 -0
- package/dist/src/sources/providers/index.js +12 -0
- package/dist/src/sources/providers/index.js.map +1 -0
- package/dist/src/sources/providers/local.d.ts +19 -0
- package/dist/src/sources/providers/local.d.ts.map +1 -0
- package/dist/src/sources/providers/local.js +49 -0
- package/dist/src/sources/providers/local.js.map +1 -0
- package/dist/src/sources/providers/registry.d.ts +67 -0
- package/dist/src/sources/providers/registry.d.ts.map +1 -0
- package/dist/src/sources/providers/registry.js +395 -0
- package/dist/src/sources/providers/registry.js.map +1 -0
- package/dist/src/sources/registry-guard.d.ts +23 -0
- package/dist/src/sources/registry-guard.d.ts.map +1 -0
- package/dist/src/sources/registry-guard.js +52 -0
- package/dist/src/sources/registry-guard.js.map +1 -0
- package/dist/src/sources/resolve-source.d.ts +29 -0
- package/dist/src/sources/resolve-source.d.ts.map +1 -0
- package/dist/src/sources/resolve-source.js +270 -0
- package/dist/src/sources/resolve-source.js.map +1 -0
- package/dist/src/sources/service.d.ts +70 -0
- package/dist/src/sources/service.d.ts.map +1 -0
- package/dist/src/sources/service.js +130 -0
- package/dist/src/sources/service.js.map +1 -0
- package/dist/src/sources/types.d.ts +160 -0
- package/dist/src/sources/types.d.ts.map +1 -0
- package/dist/src/sources/types.js +26 -0
- package/dist/src/sources/types.js.map +1 -0
- package/dist/src/sources/utils.d.ts +12 -0
- package/dist/src/sources/utils.d.ts.map +1 -0
- package/dist/src/sources/utils.js +11 -0
- package/dist/src/sources/utils.js.map +1 -0
- package/dist/src/tui/confirm/component.d.ts +9 -0
- package/dist/src/tui/confirm/component.d.ts.map +1 -0
- package/dist/src/tui/confirm/component.js +30 -0
- package/dist/src/tui/confirm/component.js.map +1 -0
- package/dist/src/tui/confirm/index.d.ts +4 -0
- package/dist/src/tui/confirm/index.d.ts.map +1 -0
- package/dist/src/tui/confirm/index.js +3 -0
- package/dist/src/tui/confirm/index.js.map +1 -0
- package/dist/src/tui/confirm/service.d.ts +15 -0
- package/dist/src/tui/confirm/service.d.ts.map +1 -0
- package/dist/src/tui/confirm/service.js +23 -0
- package/dist/src/tui/confirm/service.js.map +1 -0
- package/dist/src/tui/confirm/test.d.ts +14 -0
- package/dist/src/tui/confirm/test.d.ts.map +1 -0
- package/dist/src/tui/confirm/test.js +21 -0
- package/dist/src/tui/confirm/test.js.map +1 -0
- package/dist/src/tui/confirm/types.d.ts +5 -0
- package/dist/src/tui/confirm/types.d.ts.map +1 -0
- package/dist/src/tui/confirm/types.js +2 -0
- package/dist/src/tui/confirm/types.js.map +1 -0
- package/dist/src/tui/errors.d.ts +18 -0
- package/dist/src/tui/errors.d.ts.map +1 -0
- package/dist/src/tui/errors.js +6 -0
- package/dist/src/tui/errors.js.map +1 -0
- package/dist/src/tui/index.d.ts +21 -0
- package/dist/src/tui/index.d.ts.map +1 -0
- package/dist/src/tui/index.js +38 -0
- package/dist/src/tui/index.js.map +1 -0
- package/dist/src/tui/log/index.d.ts +3 -0
- package/dist/src/tui/log/index.d.ts.map +1 -0
- package/dist/src/tui/log/index.js +3 -0
- package/dist/src/tui/log/index.js.map +1 -0
- package/dist/src/tui/log/service.d.ts +16 -0
- package/dist/src/tui/log/service.d.ts.map +1 -0
- package/dist/src/tui/log/service.js +15 -0
- package/dist/src/tui/log/service.js.map +1 -0
- package/dist/src/tui/log/test.d.ts +14 -0
- package/dist/src/tui/log/test.d.ts.map +1 -0
- package/dist/src/tui/log/test.js +33 -0
- package/dist/src/tui/log/test.js.map +1 -0
- package/dist/src/tui/multiselect/component.d.ts +9 -0
- package/dist/src/tui/multiselect/component.d.ts.map +1 -0
- package/dist/src/tui/multiselect/component.js +67 -0
- package/dist/src/tui/multiselect/component.js.map +1 -0
- package/dist/src/tui/multiselect/index.d.ts +4 -0
- package/dist/src/tui/multiselect/index.d.ts.map +1 -0
- package/dist/src/tui/multiselect/index.js +3 -0
- package/dist/src/tui/multiselect/index.js.map +1 -0
- package/dist/src/tui/multiselect/service.d.ts +14 -0
- package/dist/src/tui/multiselect/service.d.ts.map +1 -0
- package/dist/src/tui/multiselect/service.js +33 -0
- package/dist/src/tui/multiselect/service.js.map +1 -0
- package/dist/src/tui/multiselect/test.d.ts +17 -0
- package/dist/src/tui/multiselect/test.d.ts.map +1 -0
- package/dist/src/tui/multiselect/test.js +23 -0
- package/dist/src/tui/multiselect/test.js.map +1 -0
- package/dist/src/tui/multiselect/types.d.ts +14 -0
- package/dist/src/tui/multiselect/types.d.ts.map +1 -0
- package/dist/src/tui/multiselect/types.js +2 -0
- package/dist/src/tui/multiselect/types.js.map +1 -0
- package/dist/src/tui/note/index.d.ts +3 -0
- package/dist/src/tui/note/index.d.ts.map +1 -0
- package/dist/src/tui/note/index.js +3 -0
- package/dist/src/tui/note/index.js.map +1 -0
- package/dist/src/tui/note/service.d.ts +12 -0
- package/dist/src/tui/note/service.d.ts.map +1 -0
- package/dist/src/tui/note/service.js +31 -0
- package/dist/src/tui/note/service.js.map +1 -0
- package/dist/src/tui/note/test.d.ts +11 -0
- package/dist/src/tui/note/test.d.ts.map +1 -0
- package/dist/src/tui/note/test.js +15 -0
- package/dist/src/tui/note/test.js.map +1 -0
- package/dist/src/tui/password-input/component.d.ts +9 -0
- package/dist/src/tui/password-input/component.d.ts.map +1 -0
- package/dist/src/tui/password-input/component.js +14 -0
- package/dist/src/tui/password-input/component.js.map +1 -0
- package/dist/src/tui/password-input/index.d.ts +4 -0
- package/dist/src/tui/password-input/index.d.ts.map +1 -0
- package/dist/src/tui/password-input/index.js +3 -0
- package/dist/src/tui/password-input/index.js.map +1 -0
- package/dist/src/tui/password-input/service.d.ts +14 -0
- package/dist/src/tui/password-input/service.d.ts.map +1 -0
- package/dist/src/tui/password-input/service.js +32 -0
- package/dist/src/tui/password-input/service.js.map +1 -0
- package/dist/src/tui/password-input/test.d.ts +14 -0
- package/dist/src/tui/password-input/test.d.ts.map +1 -0
- package/dist/src/tui/password-input/test.js +22 -0
- package/dist/src/tui/password-input/test.js.map +1 -0
- package/dist/src/tui/password-input/types.d.ts +5 -0
- package/dist/src/tui/password-input/types.d.ts.map +1 -0
- package/dist/src/tui/password-input/types.js +2 -0
- package/dist/src/tui/password-input/types.js.map +1 -0
- package/dist/src/tui/select/component.d.ts +9 -0
- package/dist/src/tui/select/component.d.ts.map +1 -0
- package/dist/src/tui/select/component.js +20 -0
- package/dist/src/tui/select/component.js.map +1 -0
- package/dist/src/tui/select/index.d.ts +4 -0
- package/dist/src/tui/select/index.d.ts.map +1 -0
- package/dist/src/tui/select/index.js +3 -0
- package/dist/src/tui/select/index.js.map +1 -0
- package/dist/src/tui/select/service.d.ts +14 -0
- package/dist/src/tui/select/service.d.ts.map +1 -0
- package/dist/src/tui/select/service.js +31 -0
- package/dist/src/tui/select/service.js.map +1 -0
- package/dist/src/tui/select/test.d.ts +16 -0
- package/dist/src/tui/select/test.d.ts.map +1 -0
- package/dist/src/tui/select/test.js +25 -0
- package/dist/src/tui/select/test.js.map +1 -0
- package/dist/src/tui/select/types.d.ts +11 -0
- package/dist/src/tui/select/types.d.ts.map +1 -0
- package/dist/src/tui/select/types.js +2 -0
- package/dist/src/tui/select/types.js.map +1 -0
- package/dist/src/tui/spinner/component.d.ts +6 -0
- package/dist/src/tui/spinner/component.d.ts.map +1 -0
- package/dist/src/tui/spinner/component.js +8 -0
- package/dist/src/tui/spinner/component.js.map +1 -0
- package/dist/src/tui/spinner/index.d.ts +4 -0
- package/dist/src/tui/spinner/index.d.ts.map +1 -0
- package/dist/src/tui/spinner/index.js +3 -0
- package/dist/src/tui/spinner/index.js.map +1 -0
- package/dist/src/tui/spinner/service.d.ts +13 -0
- package/dist/src/tui/spinner/service.d.ts.map +1 -0
- package/dist/src/tui/spinner/service.js +22 -0
- package/dist/src/tui/spinner/service.js.map +1 -0
- package/dist/src/tui/spinner/test.d.ts +11 -0
- package/dist/src/tui/spinner/test.d.ts.map +1 -0
- package/dist/src/tui/spinner/test.js +22 -0
- package/dist/src/tui/spinner/test.js.map +1 -0
- package/dist/src/tui/spinner/types.d.ts +5 -0
- package/dist/src/tui/spinner/types.d.ts.map +1 -0
- package/dist/src/tui/spinner/types.js +2 -0
- package/dist/src/tui/spinner/types.js.map +1 -0
- package/dist/src/tui/text-input/component.d.ts +9 -0
- package/dist/src/tui/text-input/component.d.ts.map +1 -0
- package/dist/src/tui/text-input/component.js +28 -0
- package/dist/src/tui/text-input/component.js.map +1 -0
- package/dist/src/tui/text-input/index.d.ts +4 -0
- package/dist/src/tui/text-input/index.d.ts.map +1 -0
- package/dist/src/tui/text-input/index.js +3 -0
- package/dist/src/tui/text-input/index.js.map +1 -0
- package/dist/src/tui/text-input/service.d.ts +15 -0
- package/dist/src/tui/text-input/service.d.ts.map +1 -0
- package/dist/src/tui/text-input/service.js +23 -0
- package/dist/src/tui/text-input/service.js.map +1 -0
- package/dist/src/tui/text-input/test.d.ts +14 -0
- package/dist/src/tui/text-input/test.d.ts.map +1 -0
- package/dist/src/tui/text-input/test.js +21 -0
- package/dist/src/tui/text-input/test.js.map +1 -0
- package/dist/src/tui/text-input/types.d.ts +7 -0
- package/dist/src/tui/text-input/types.d.ts.map +1 -0
- package/dist/src/tui/text-input/types.js +2 -0
- package/dist/src/tui/text-input/types.js.map +1 -0
- package/dist/src/utils/checksum.d.ts +9 -0
- package/dist/src/utils/checksum.d.ts.map +1 -0
- package/dist/src/utils/checksum.js +13 -0
- package/dist/src/utils/checksum.js.map +1 -0
- package/dist/src/utils/create-symlink.d.ts +37 -0
- package/dist/src/utils/create-symlink.d.ts.map +1 -0
- package/dist/src/utils/create-symlink.js +86 -0
- package/dist/src/utils/create-symlink.js.map +1 -0
- package/dist/src/utils/errors.d.ts +48 -0
- package/dist/src/utils/errors.d.ts.map +1 -0
- package/dist/src/utils/errors.js +71 -0
- package/dist/src/utils/errors.js.map +1 -0
- package/dist/src/utils/index.d.ts +7 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/index.js +7 -0
- package/dist/src/utils/index.js.map +1 -0
- package/dist/src/utils/path-safety.d.ts +6 -0
- package/dist/src/utils/path-safety.d.ts.map +1 -0
- package/dist/src/utils/path-safety.js +11 -0
- package/dist/src/utils/path-safety.js.map +1 -0
- package/dist/src/utils/resolve-parent-symlinks.d.ts +12 -0
- package/dist/src/utils/resolve-parent-symlinks.d.ts.map +1 -0
- package/dist/src/utils/resolve-parent-symlinks.js +18 -0
- package/dist/src/utils/resolve-parent-symlinks.js.map +1 -0
- package/dist/src/utils/tty.d.ts +12 -0
- package/dist/src/utils/tty.d.ts.map +1 -0
- package/dist/src/utils/tty.js +14 -0
- package/dist/src/utils/tty.js.map +1 -0
- package/dist/src/workspace/apply-plan.d.ts +55 -0
- package/dist/src/workspace/apply-plan.d.ts.map +1 -0
- package/dist/src/workspace/apply-plan.js +55 -0
- package/dist/src/workspace/apply-plan.js.map +1 -0
- package/dist/src/workspace/display-plan.d.ts +18 -0
- package/dist/src/workspace/display-plan.d.ts.map +1 -0
- package/dist/src/workspace/display-plan.js +69 -0
- package/dist/src/workspace/display-plan.js.map +1 -0
- package/dist/src/workspace/ensure-agents.d.ts +58 -0
- package/dist/src/workspace/ensure-agents.d.ts.map +1 -0
- package/dist/src/workspace/ensure-agents.js +92 -0
- package/dist/src/workspace/ensure-agents.js.map +1 -0
- package/dist/src/workspace/errors.d.ts +40 -0
- package/dist/src/workspace/errors.d.ts.map +1 -0
- package/dist/src/workspace/errors.js +31 -0
- package/dist/src/workspace/errors.js.map +1 -0
- package/dist/src/workspace/index.d.ts +13 -0
- package/dist/src/workspace/index.d.ts.map +1 -0
- package/dist/src/workspace/index.js +16 -0
- package/dist/src/workspace/index.js.map +1 -0
- package/dist/src/workspace/paths.d.ts +74 -0
- package/dist/src/workspace/paths.d.ts.map +1 -0
- package/dist/src/workspace/paths.js +85 -0
- package/dist/src/workspace/paths.js.map +1 -0
- package/dist/src/workspace/plan.d.ts +43 -0
- package/dist/src/workspace/plan.d.ts.map +1 -0
- package/dist/src/workspace/plan.js +12 -0
- package/dist/src/workspace/plan.js.map +1 -0
- package/dist/src/workspace/service.d.ts +128 -0
- package/dist/src/workspace/service.d.ts.map +1 -0
- package/dist/src/workspace/service.js +421 -0
- package/dist/src/workspace/service.js.map +1 -0
- package/package.json +111 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry guard - ensures at least one registry source is configured.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
*/
|
|
7
|
+
import * as Path from "@effect/platform/Path";
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import * as Option from "effect/Option";
|
|
10
|
+
import { TextInput } from "../tui/index.js";
|
|
11
|
+
import { Workspace } from "../workspace/index.js";
|
|
12
|
+
import { RegistryNotConfiguredError } from "./provider.js";
|
|
13
|
+
/**
|
|
14
|
+
* Ensure at least one registry source is configured.
|
|
15
|
+
*
|
|
16
|
+
* - If already configured: no-op
|
|
17
|
+
* - If NOT configured:
|
|
18
|
+
* - Interactive mode: prompt for local registry path, persist via addConfiguredSource
|
|
19
|
+
* - Non-interactive mode: fail with RegistryNotConfiguredError
|
|
20
|
+
*
|
|
21
|
+
* @experimental This API is unstable and may change without notice.
|
|
22
|
+
*/
|
|
23
|
+
export const registryGuard = Effect.gen(function* () {
|
|
24
|
+
const workspace = yield* Workspace;
|
|
25
|
+
const registrySources = yield* workspace.getConfiguredRegistrySources(Option.none());
|
|
26
|
+
// Already configured - no-op
|
|
27
|
+
if (registrySources.length > 0)
|
|
28
|
+
return;
|
|
29
|
+
// Not configured in non-interactive mode - fail
|
|
30
|
+
if (workspace.nonInteractive) {
|
|
31
|
+
return yield* new RegistryNotConfiguredError({
|
|
32
|
+
message: `No registry source configured. Add one to .axm/settings.json:\n\n{\n "sources": [\n { "name": "local", "type": "registry", "url": "/path/to/registry" }\n ]\n}`,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// Interactive mode - prompt for path
|
|
36
|
+
const textInput = yield* TextInput;
|
|
37
|
+
const path = yield* textInput.prompt({
|
|
38
|
+
message: "No registry configured. Enter a local registry path:",
|
|
39
|
+
});
|
|
40
|
+
// Normalize path (expand ~, resolve relative)
|
|
41
|
+
const pathService = yield* Path.Path;
|
|
42
|
+
const normalizedPath = path.startsWith("~")
|
|
43
|
+
? pathService.resolve(process.env["HOME"] ?? "~", path.slice(2))
|
|
44
|
+
: pathService.resolve(path);
|
|
45
|
+
// Persist to settings
|
|
46
|
+
yield* workspace.addConfiguredSource({
|
|
47
|
+
name: "local",
|
|
48
|
+
type: "registry",
|
|
49
|
+
url: new URL(`file://${normalizedPath}`),
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=registry-guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-guard.js","sourceRoot":"","sources":["../../../src/sources/registry-guard.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAE3D;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC/C,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,SAAS,CAAC;IACnC,MAAM,eAAe,GAAG,KAAK,CAAC,CAAC,SAAS,CAAC,4BAA4B,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;IAErF,6BAA6B;IAC7B,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO;IAEvC,gDAAgD;IAChD,IAAI,SAAS,CAAC,cAAc,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC,CAAC,IAAI,0BAA0B,CAAC;YAC3C,OAAO,EAAE,qKAAqK;SAC/K,CAAC,CAAC;IACL,CAAC;IAED,qCAAqC;IACrC,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,SAAS,CAAC;IACnC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;QACnC,OAAO,EAAE,sDAAsD;KAChE,CAAC,CAAC;IAEH,8CAA8C;IAC9C,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IACrC,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;QACzC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAChE,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9B,sBAAsB;IACtB,KAAK,CAAC,CAAC,SAAS,CAAC,mBAAmB,CAAC;QACnC,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,UAAU;QAChB,GAAG,EAAE,IAAI,GAAG,CAAC,UAAU,cAAc,EAAE,CAAC;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Source resolution: classifies input via parseInputPattern, then routes
|
|
3
|
+
* each pattern type to the appropriate resolution logic.
|
|
4
|
+
*
|
|
5
|
+
* For URL and SCP patterns, resolution iterates configured sources and
|
|
6
|
+
* matches by hostname + provider parse. For other patterns, resolution
|
|
7
|
+
* handles them directly.
|
|
8
|
+
*
|
|
9
|
+
* @experimental This API is unstable and may change without notice.
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
import * as Effect from "effect/Effect";
|
|
13
|
+
import { ParseError } from "./errors.js";
|
|
14
|
+
import type { Source } from "./types.js";
|
|
15
|
+
import { Workspace } from "../workspace/index.js";
|
|
16
|
+
/**
|
|
17
|
+
* Resolve a source input string into a fully resolved Source.
|
|
18
|
+
*
|
|
19
|
+
* Classifies the input via `parseInputPattern`, then routes each pattern
|
|
20
|
+
* type to the appropriate resolution logic. For URL and SCP patterns,
|
|
21
|
+
* resolution iterates configured sources and matches by hostname + provider
|
|
22
|
+
* parse. For other patterns, resolution handles them directly.
|
|
23
|
+
*
|
|
24
|
+
* @experimental This API is unstable and may change without notice.
|
|
25
|
+
* @param input - The source string to resolve
|
|
26
|
+
* @returns Effect containing a resolved Source or ParseError
|
|
27
|
+
*/
|
|
28
|
+
export declare const resolveSource: (input: string) => Effect.Effect<Source, ParseError, Workspace>;
|
|
29
|
+
//# sourceMappingURL=resolve-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-source.d.ts","sourceRoot":"","sources":["../../../src/sources/resolve-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAKzC,OAAO,KAAK,EAAE,MAAM,EAA2B,MAAM,YAAY,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AA+TlD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CA6BrF,CAAC"}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Source resolution: classifies input via parseInputPattern, then routes
|
|
3
|
+
* each pattern type to the appropriate resolution logic.
|
|
4
|
+
*
|
|
5
|
+
* For URL and SCP patterns, resolution iterates configured sources and
|
|
6
|
+
* matches by hostname + provider parse. For other patterns, resolution
|
|
7
|
+
* handles them directly.
|
|
8
|
+
*
|
|
9
|
+
* @experimental This API is unstable and may change without notice.
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
import * as Array from "effect/Array";
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
14
|
+
import * as Match from "effect/Match";
|
|
15
|
+
import * as Option from "effect/Option";
|
|
16
|
+
import * as azurerepos from "./azurerepos/index.js";
|
|
17
|
+
import * as bitbucket from "./bitbucket/index.js";
|
|
18
|
+
import { ParseError } from "./errors.js";
|
|
19
|
+
import * as github from "./github/index.js";
|
|
20
|
+
import * as gitlab from "./gitlab/index.js";
|
|
21
|
+
import { parseLocalPath } from "./local/index.js";
|
|
22
|
+
import { parseInputPattern } from "./parser.js";
|
|
23
|
+
import { Workspace } from "../workspace/index.js";
|
|
24
|
+
// -----------------------------------------------------------------------------
|
|
25
|
+
// Constants
|
|
26
|
+
// -----------------------------------------------------------------------------
|
|
27
|
+
/** Source types that require a matching config from workspace. */
|
|
28
|
+
const GIT_HOSTING_TYPES = new Set(["github", "gitlab", "bitbucket", "azurerepos"]);
|
|
29
|
+
// -----------------------------------------------------------------------------
|
|
30
|
+
// Helpers
|
|
31
|
+
// -----------------------------------------------------------------------------
|
|
32
|
+
/** Get configured sources from workspace, mapping errors to ParseError. */
|
|
33
|
+
const getConfiguredSources = (input) => Effect.gen(function* () {
|
|
34
|
+
const ws = yield* Workspace;
|
|
35
|
+
return yield* ws
|
|
36
|
+
.getConfiguredSources()
|
|
37
|
+
.pipe(Effect.mapError((e) => new ParseError({ message: `Failed to get configured sources: ${e._tag}`, input })));
|
|
38
|
+
});
|
|
39
|
+
/** Get the relative path of an installed skill from its lockfile entry. */
|
|
40
|
+
const getInstalledSkillPath = (name, entry) => {
|
|
41
|
+
if (entry.type === "registry") {
|
|
42
|
+
return `.axm/extensions/${entry.scope}/skills/${name}`;
|
|
43
|
+
}
|
|
44
|
+
return `.agents/skills/${name}`;
|
|
45
|
+
};
|
|
46
|
+
/** Parse shorthand input using the provider for the given source type. */
|
|
47
|
+
const parseShorthandForSource = (sourceType, input) => {
|
|
48
|
+
switch (sourceType) {
|
|
49
|
+
case "github":
|
|
50
|
+
return github.parseShorthand(input);
|
|
51
|
+
case "gitlab":
|
|
52
|
+
return gitlab.parseShorthand(input);
|
|
53
|
+
case "bitbucket":
|
|
54
|
+
return bitbucket.parseShorthand(input);
|
|
55
|
+
default:
|
|
56
|
+
return Effect.fail(new ParseError({
|
|
57
|
+
message: `Source type "${sourceType}" does not support shorthand syntax`,
|
|
58
|
+
input,
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
// -----------------------------------------------------------------------------
|
|
63
|
+
// URL routing
|
|
64
|
+
// -----------------------------------------------------------------------------
|
|
65
|
+
/**
|
|
66
|
+
* Route a URL input by iterating configured sources and matching by
|
|
67
|
+
* hostname + provider parse. First successful match wins.
|
|
68
|
+
*/
|
|
69
|
+
const routeUrlInput = (url, input) => Effect.gen(function* () {
|
|
70
|
+
// Opaque URLs (empty hostname, e.g. "ghe:owner/repo") may be config-name shorthands
|
|
71
|
+
if (!url.hostname) {
|
|
72
|
+
return yield* routeOpaqueUrl(url, input);
|
|
73
|
+
}
|
|
74
|
+
const sources = yield* getConfiguredSources(input);
|
|
75
|
+
const noMatch = new ParseError({
|
|
76
|
+
message: `No configured source matches URL "${url.href}"`,
|
|
77
|
+
input,
|
|
78
|
+
});
|
|
79
|
+
const tryParseUrl = (configUrl, config, parse) => configUrl.hostname !== url.hostname
|
|
80
|
+
? Effect.fail(noMatch)
|
|
81
|
+
: Effect.map(parse(url, configUrl.hostname), (si) => ({ ...si, ...config }));
|
|
82
|
+
const tryMatch = Match.type().pipe(Match.when({ type: "github" }, (c) => tryParseUrl(c.url, c, github.parseUrl)), Match.when({ type: "gitlab" }, (c) => tryParseUrl(c.url, c, gitlab.parseUrl)), Match.when({ type: "bitbucket" }, (c) => tryParseUrl(c.url, c, bitbucket.parseUrl)), Match.when({ type: "azurerepos" }, (c) => tryParseUrl(c.url, c, azurerepos.parseUrl)), Match.when({ type: "registry" }, () => Effect.fail(noMatch)), Match.exhaustive);
|
|
83
|
+
const attempts = Array.map(sources, tryMatch);
|
|
84
|
+
if (Array.isEmptyReadonlyArray(attempts)) {
|
|
85
|
+
return yield* noMatch;
|
|
86
|
+
}
|
|
87
|
+
return yield* Effect.firstSuccessOf(attempts).pipe(Effect.mapError(() => new ParseError({
|
|
88
|
+
message: `No configured source matches URL "${url.href}"`,
|
|
89
|
+
input,
|
|
90
|
+
})));
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* Handle opaque URLs (no hostname, e.g. "ghe:owner/repo") by checking if
|
|
94
|
+
* the scheme matches a config name for a git hosting source type.
|
|
95
|
+
*/
|
|
96
|
+
const routeOpaqueUrl = (url, input) => Effect.gen(function* () {
|
|
97
|
+
const colonIndex = input.indexOf(":");
|
|
98
|
+
if (colonIndex <= 0) {
|
|
99
|
+
return yield* new ParseError({ message: "Unable to parse source", input });
|
|
100
|
+
}
|
|
101
|
+
const prefix = input.slice(0, colonIndex);
|
|
102
|
+
const sources = yield* getConfiguredSources(input);
|
|
103
|
+
// Check if the scheme matches a config name
|
|
104
|
+
const matchedConfig = sources.find((s) => s.name === prefix);
|
|
105
|
+
if (matchedConfig && GIT_HOSTING_TYPES.has(matchedConfig.type)) {
|
|
106
|
+
const remainder = input.slice(colonIndex + 1);
|
|
107
|
+
const reparsed = `${matchedConfig.type}:${remainder}`;
|
|
108
|
+
const parsedInput = yield* parseShorthandForSource(matchedConfig.type, reparsed);
|
|
109
|
+
return { ...parsedInput, ...matchedConfig };
|
|
110
|
+
}
|
|
111
|
+
// Not a config name — fail
|
|
112
|
+
return yield* new ParseError({
|
|
113
|
+
message: `No configured source matches URL "${url.href}"`,
|
|
114
|
+
input,
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
// -----------------------------------------------------------------------------
|
|
118
|
+
// SCP routing
|
|
119
|
+
// -----------------------------------------------------------------------------
|
|
120
|
+
/**
|
|
121
|
+
* Route an SCP address by iterating configured sources and matching by
|
|
122
|
+
* hostname + provider parse. First successful match wins.
|
|
123
|
+
*/
|
|
124
|
+
const routeScpInput = (scp, input) => Effect.gen(function* () {
|
|
125
|
+
const sources = yield* getConfiguredSources(input);
|
|
126
|
+
const scpInput = `${scp.user}@${scp.host}:${scp.path}`;
|
|
127
|
+
const noMatch = new ParseError({
|
|
128
|
+
message: `No configured source matches SCP address "${scpInput}"`,
|
|
129
|
+
input,
|
|
130
|
+
});
|
|
131
|
+
const tryParseScp = (scpHostname, config, parse) => scp.host !== scpHostname
|
|
132
|
+
? Effect.fail(noMatch)
|
|
133
|
+
: Effect.map(parse(scpInput, scp.host), (si) => ({ ...si, ...config }));
|
|
134
|
+
const tryMatch = Match.type().pipe(Match.when({ type: "github" }, (c) => tryParseScp(c.url.hostname, c, github.parseScp)), Match.when({ type: "gitlab" }, (c) => tryParseScp(c.url.hostname, c, gitlab.parseScp)), Match.when({ type: "bitbucket" }, (c) => tryParseScp(c.url.hostname, c, bitbucket.parseScp)), Match.when({ type: "azurerepos" }, (c) => tryParseScp(`ssh.${c.url.hostname}`, c, azurerepos.parseScp)), Match.when({ type: "registry" }, () => Effect.fail(noMatch)), Match.exhaustive);
|
|
135
|
+
const attempts = Array.map(sources, tryMatch);
|
|
136
|
+
if (Array.isEmptyReadonlyArray(attempts)) {
|
|
137
|
+
return yield* noMatch;
|
|
138
|
+
}
|
|
139
|
+
return yield* Effect.firstSuccessOf(attempts).pipe(Effect.mapError(() => new ParseError({
|
|
140
|
+
message: `No configured source matches SCP address "${scpInput}"`,
|
|
141
|
+
input,
|
|
142
|
+
})));
|
|
143
|
+
});
|
|
144
|
+
// -----------------------------------------------------------------------------
|
|
145
|
+
// Shorthand routing
|
|
146
|
+
// -----------------------------------------------------------------------------
|
|
147
|
+
/**
|
|
148
|
+
* Route shorthand input (github:owner/repo, ghe:owner/repo, etc.).
|
|
149
|
+
*
|
|
150
|
+
* Known source-type prefixes dispatch directly to the provider's shorthand
|
|
151
|
+
* parser. Config-name prefixes look up the config and parse using its source
|
|
152
|
+
* type's shorthand parser.
|
|
153
|
+
*/
|
|
154
|
+
const routeShorthandInput = (prefix, shorthandInput, input) => Effect.gen(function* () {
|
|
155
|
+
const sources = yield* getConfiguredSources(input);
|
|
156
|
+
// Known source-type prefix → dispatch directly, select first config of that type
|
|
157
|
+
const isKnownType = prefix === "github" || prefix === "gitlab" || prefix === "bitbucket";
|
|
158
|
+
if (isKnownType) {
|
|
159
|
+
const parsedInput = yield* parseShorthandForSource(prefix, shorthandInput);
|
|
160
|
+
const config = sources.find((s) => s.type === prefix);
|
|
161
|
+
if (!config) {
|
|
162
|
+
return yield* new ParseError({
|
|
163
|
+
message: `No source config found for source type "${prefix}". Add a source config via settings.`,
|
|
164
|
+
input,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
return { ...parsedInput, ...config };
|
|
168
|
+
}
|
|
169
|
+
// Config-name prefix → find config, parse with its source type parser
|
|
170
|
+
const matchedConfig = sources.find((s) => s.name === prefix);
|
|
171
|
+
if (!matchedConfig || !GIT_HOSTING_TYPES.has(matchedConfig.type)) {
|
|
172
|
+
return yield* new ParseError({
|
|
173
|
+
message: `Unknown shorthand prefix: "${prefix}"`,
|
|
174
|
+
input,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
const remainder = shorthandInput.slice(prefix.length + 1);
|
|
178
|
+
const reparsed = `${matchedConfig.type}:${remainder}`;
|
|
179
|
+
const parsedInput = yield* parseShorthandForSource(matchedConfig.type, reparsed);
|
|
180
|
+
return { ...parsedInput, ...matchedConfig };
|
|
181
|
+
});
|
|
182
|
+
// -----------------------------------------------------------------------------
|
|
183
|
+
// Simple pattern routing
|
|
184
|
+
// -----------------------------------------------------------------------------
|
|
185
|
+
/** Route NameInput: look up installed skill in lockfile and resolve to local path. */
|
|
186
|
+
const routeNameInput = (name, input) => Effect.gen(function* () {
|
|
187
|
+
const ws = yield* Workspace;
|
|
188
|
+
const skills = yield* ws
|
|
189
|
+
.getLockedSkills()
|
|
190
|
+
.pipe(Effect.mapError((e) => new ParseError({ message: `Failed to read lockfile: ${e._tag}`, input })));
|
|
191
|
+
if (!(name in skills)) {
|
|
192
|
+
return yield* new ParseError({
|
|
193
|
+
message: `Unknown skill "${name}". Check installed skills with \`axm skills list\`.`,
|
|
194
|
+
input,
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
return (yield* parseLocalPath(getInstalledSkillPath(name, skills[name])));
|
|
198
|
+
});
|
|
199
|
+
/** Route FilePathPattern: parse as local source. */
|
|
200
|
+
const routeFilePathInput = (path) => Effect.map(parseLocalPath(path), (source) => source);
|
|
201
|
+
/** Route RegistryPatternInput: construct registry source from parsed scope and name. */
|
|
202
|
+
const routeRegistryInput = (pattern) => Effect.succeed({ type: "registry", scope: pattern.scope, name: pattern.name });
|
|
203
|
+
/**
|
|
204
|
+
* Route SlashPattern (owner/repo): iterate git-hosting configs that support
|
|
205
|
+
* shorthand, try each provider in config order. First success wins.
|
|
206
|
+
*/
|
|
207
|
+
const routeSlashInput = (pattern, input) => Effect.gen(function* () {
|
|
208
|
+
const sources = yield* getConfiguredSources(input);
|
|
209
|
+
const shorthandTypes = ["github", "gitlab", "bitbucket"];
|
|
210
|
+
const shorthandBody = `${pattern.owner}/${pattern.repo}`;
|
|
211
|
+
const attempts = Array.filterMap(sources, (config) => {
|
|
212
|
+
const sourceType = shorthandTypes.find((t) => t === config.type);
|
|
213
|
+
if (!sourceType)
|
|
214
|
+
return Option.none();
|
|
215
|
+
return Option.some(Effect.map(parseShorthandForSource(sourceType, `${sourceType}:${shorthandBody}`), (si) => ({ ...si, ...config })));
|
|
216
|
+
});
|
|
217
|
+
if (Array.isEmptyReadonlyArray(attempts)) {
|
|
218
|
+
return yield* new ParseError({
|
|
219
|
+
message: `Ambiguous pattern '${pattern.owner}/${pattern.repo}' — no git hosting sources configured`,
|
|
220
|
+
input,
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
return yield* Effect.firstSuccessOf(attempts).pipe(Effect.mapError(() => new ParseError({
|
|
224
|
+
message: `Ambiguous pattern '${pattern.owner}/${pattern.repo}' — use github:${pattern.owner}/${pattern.repo}, gitlab:${pattern.owner}/${pattern.repo}, or bitbucket:${pattern.owner}/${pattern.repo}`,
|
|
225
|
+
input,
|
|
226
|
+
})));
|
|
227
|
+
});
|
|
228
|
+
// -----------------------------------------------------------------------------
|
|
229
|
+
// Main resolver
|
|
230
|
+
// -----------------------------------------------------------------------------
|
|
231
|
+
/**
|
|
232
|
+
* Resolve a source input string into a fully resolved Source.
|
|
233
|
+
*
|
|
234
|
+
* Classifies the input via `parseInputPattern`, then routes each pattern
|
|
235
|
+
* type to the appropriate resolution logic. For URL and SCP patterns,
|
|
236
|
+
* resolution iterates configured sources and matches by hostname + provider
|
|
237
|
+
* parse. For other patterns, resolution handles them directly.
|
|
238
|
+
*
|
|
239
|
+
* @experimental This API is unstable and may change without notice.
|
|
240
|
+
* @param input - The source string to resolve
|
|
241
|
+
* @returns Effect containing a resolved Source or ParseError
|
|
242
|
+
*/
|
|
243
|
+
export const resolveSource = (input) => Effect.gen(function* () {
|
|
244
|
+
const trimmed = input.trim();
|
|
245
|
+
if (!trimmed) {
|
|
246
|
+
return yield* new ParseError({ message: "Source string cannot be empty", input });
|
|
247
|
+
}
|
|
248
|
+
const patternOpt = parseInputPattern(trimmed);
|
|
249
|
+
if (Option.isNone(patternOpt)) {
|
|
250
|
+
return yield* new ParseError({ message: "Unable to parse source", input });
|
|
251
|
+
}
|
|
252
|
+
const pattern = patternOpt.value;
|
|
253
|
+
switch (pattern._tag) {
|
|
254
|
+
case "UrlInput":
|
|
255
|
+
return yield* routeUrlInput(pattern.url, trimmed);
|
|
256
|
+
case "GitScpAddress":
|
|
257
|
+
return yield* routeScpInput(pattern, trimmed);
|
|
258
|
+
case "ShorthandInput":
|
|
259
|
+
return yield* routeShorthandInput(pattern.prefix, pattern.input, trimmed);
|
|
260
|
+
case "NameInput":
|
|
261
|
+
return yield* routeNameInput(pattern.name, trimmed);
|
|
262
|
+
case "FilePathPattern":
|
|
263
|
+
return yield* routeFilePathInput(pattern.path);
|
|
264
|
+
case "RegistryPatternInput":
|
|
265
|
+
return yield* routeRegistryInput(pattern);
|
|
266
|
+
case "SlashPattern":
|
|
267
|
+
return yield* routeSlashInput(pattern, trimmed);
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
//# sourceMappingURL=resolve-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-source.js","sourceRoot":"","sources":["../../../src/sources/resolve-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIhD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,gFAAgF;AAChF,YAAY;AACZ,gFAAgF;AAEhF,kEAAkE;AAClE,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC;AAE/F,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF,2EAA2E;AAC3E,MAAM,oBAAoB,GAAG,CAAC,KAAa,EAAE,EAAE,CAC7C,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,SAAS,CAAC;IAC5B,OAAO,KAAK,CAAC,CAAC,EAAE;SACb,oBA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YACjB,OAAO,KAAK,CAAC,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SourceProviders Effect service.
|
|
3
|
+
*
|
|
4
|
+
* Provides a unified interface for discovering and fetching extensions
|
|
5
|
+
* across all source types. Handlers consume this via `yield* SourceProviders`.
|
|
6
|
+
*
|
|
7
|
+
* @experimental This API is unstable and may change without notice.
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
import * as FileSystem from "@effect/platform/FileSystem";
|
|
11
|
+
import * as Path from "@effect/platform/Path";
|
|
12
|
+
import * as Context from "effect/Context";
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
14
|
+
import * as Layer from "effect/Layer";
|
|
15
|
+
import type * as Scope from "effect/Scope";
|
|
16
|
+
import type { SettingsError } from "../settings/index.js";
|
|
17
|
+
import { Workspace } from "../workspace/service.js";
|
|
18
|
+
import type { ExtensionFiles, ExtensionRef, FindOptions, SourceProvider } from "./provider.js";
|
|
19
|
+
import { SourceError } from "./provider.js";
|
|
20
|
+
import type { RegistrySourceInput, Source } from "./types.js";
|
|
21
|
+
/**
|
|
22
|
+
* Service interface for source providers.
|
|
23
|
+
*
|
|
24
|
+
* Dependencies (FileSystem, Path, Workspace) are resolved at layer creation —
|
|
25
|
+
* callers only see the service, not its implementation details.
|
|
26
|
+
*
|
|
27
|
+
* @experimental This API is unstable and may change without notice.
|
|
28
|
+
*/
|
|
29
|
+
export interface SourceProvidersService {
|
|
30
|
+
/** Discover extensions matching the given source and search criteria. */
|
|
31
|
+
readonly resolveExtension: (source: Source, options: FindOptions) => Effect.Effect<ReadonlyArray<ExtensionRef>, SourceError | SettingsError, Scope.Scope>;
|
|
32
|
+
/** Fetch and materialize extension files for a discovered ref. */
|
|
33
|
+
readonly fetch: (ref: ExtensionRef) => Effect.Effect<ExtensionFiles, SourceError, Scope.Scope>;
|
|
34
|
+
}
|
|
35
|
+
declare const SourceProviders_base: Context.TagClass<SourceProviders, "@axm.sh/cli/SourceProviders", SourceProvidersService>;
|
|
36
|
+
/**
|
|
37
|
+
* Effect service tag for source providers.
|
|
38
|
+
*
|
|
39
|
+
* @experimental This API is unstable and may change without notice.
|
|
40
|
+
*/
|
|
41
|
+
export declare class SourceProviders extends SourceProviders_base {
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Creates a registry meta-provider that wraps N configured registries
|
|
45
|
+
* into a single `SourceProvider<RegistrySourceInput>`.
|
|
46
|
+
*
|
|
47
|
+
* Reads `workspace.getConfiguredRegistrySources()` lazily on each call — always
|
|
48
|
+
* reflects the current config (including sources added by the registry guard).
|
|
49
|
+
*
|
|
50
|
+
* Applies scope routing:
|
|
51
|
+
* 1. Collect registry sources whose `scopes` includes the target scope
|
|
52
|
+
* 2. If no scope-matched sources, collect catch-all sources (no `scopes` field)
|
|
53
|
+
* 3. Scope-matched and catch-all are mutually exclusive
|
|
54
|
+
* 4. 404 → fallthrough within the set; other errors → hard fail
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
export declare const createRegistryMetaProvider: () => SourceProvider<RegistrySourceInput, FileSystem.FileSystem | Path.Path | Workspace>;
|
|
59
|
+
/**
|
|
60
|
+
* Live layer for SourceProviders.
|
|
61
|
+
*
|
|
62
|
+
* Constructs the provider registry with all source type providers.
|
|
63
|
+
* Captures FileSystem, Path, and Workspace at creation time so the
|
|
64
|
+
* service interface doesn't leak these dependencies.
|
|
65
|
+
*
|
|
66
|
+
* @experimental This API is unstable and may change without notice.
|
|
67
|
+
*/
|
|
68
|
+
export declare const SourceProvidersLive: Layer.Layer<SourceProviders, never, FileSystem.FileSystem | Path.Path | Workspace>;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.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,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,SAAS,CA6D7C,CAAC;AAMH;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,KAAK,CAC3C,eAAe,EACf,KAAK,EACL,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,GAAG,SAAS,CAqD9C,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SourceProviders Effect service.
|
|
3
|
+
*
|
|
4
|
+
* Provides a unified interface for discovering and fetching extensions
|
|
5
|
+
* across all source types. Handlers consume this via `yield* SourceProviders`.
|
|
6
|
+
*
|
|
7
|
+
* @experimental This API is unstable and may change without notice.
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
import * as FileSystem from "@effect/platform/FileSystem";
|
|
11
|
+
import * as Path from "@effect/platform/Path";
|
|
12
|
+
import * as Context from "effect/Context";
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
14
|
+
import * as Layer from "effect/Layer";
|
|
15
|
+
import * as Option from "effect/Option";
|
|
16
|
+
import { Workspace } from "../workspace/service.js";
|
|
17
|
+
import { SourceError } from "./provider.js";
|
|
18
|
+
import { createAzureReposProvider, createBitbucketProvider, createGitHubProvider, createGitLabProvider, createGitProvider, createLocalProvider, createRegistryProvider, } from "./providers/index.js";
|
|
19
|
+
/**
|
|
20
|
+
* Effect service tag for source providers.
|
|
21
|
+
*
|
|
22
|
+
* @experimental This API is unstable and may change without notice.
|
|
23
|
+
*/
|
|
24
|
+
export class SourceProviders extends Context.Tag("@axm.sh/cli/SourceProviders")() {
|
|
25
|
+
}
|
|
26
|
+
// -----------------------------------------------------------------------------
|
|
27
|
+
// Registry Meta-Provider
|
|
28
|
+
// -----------------------------------------------------------------------------
|
|
29
|
+
/**
|
|
30
|
+
* Creates a registry meta-provider that wraps N configured registries
|
|
31
|
+
* into a single `SourceProvider<RegistrySourceInput>`.
|
|
32
|
+
*
|
|
33
|
+
* Reads `workspace.getConfiguredRegistrySources()` lazily on each call — always
|
|
34
|
+
* reflects the current config (including sources added by the registry guard).
|
|
35
|
+
*
|
|
36
|
+
* Applies scope routing:
|
|
37
|
+
* 1. Collect registry sources whose `scopes` includes the target scope
|
|
38
|
+
* 2. If no scope-matched sources, collect catch-all sources (no `scopes` field)
|
|
39
|
+
* 3. Scope-matched and catch-all are mutually exclusive
|
|
40
|
+
* 4. 404 → fallthrough within the set; other errors → hard fail
|
|
41
|
+
*
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
export const createRegistryMetaProvider = () => ({
|
|
45
|
+
type: "registry",
|
|
46
|
+
find: (_source, options) => Effect.gen(function* () {
|
|
47
|
+
const ws = yield* Workspace;
|
|
48
|
+
// Determine scope from source (e.g. @scope/name install) or from options names
|
|
49
|
+
const sourceScope = _source.scope
|
|
50
|
+
? Option.some(_source.scope.startsWith("@") ? _source.scope : `@${_source.scope}`)
|
|
51
|
+
: Option.none();
|
|
52
|
+
const scope = Option.isSome(sourceScope)
|
|
53
|
+
? sourceScope
|
|
54
|
+
: options.names.length > 0
|
|
55
|
+
? Option.fromNullable(options.names.find((n) => n.startsWith("@"))?.split("/")[0] ?? null)
|
|
56
|
+
: Option.none();
|
|
57
|
+
const registrySources = yield* ws
|
|
58
|
+
.getConfiguredRegistrySources(scope)
|
|
59
|
+
.pipe(Effect.mapError((e) => new SourceError({ message: `Failed to get registry sources: ${e._tag}`, cause: e })));
|
|
60
|
+
if (registrySources.length === 0) {
|
|
61
|
+
return [];
|
|
62
|
+
}
|
|
63
|
+
// Try each registry source in order. 404 (empty results) → fallthrough.
|
|
64
|
+
// Sequential: early-exits on first non-404 error (can't use Effect.forEach)
|
|
65
|
+
const allRefs = [];
|
|
66
|
+
for (const regSource of registrySources) {
|
|
67
|
+
const provider = createRegistryProvider(regSource.url.href);
|
|
68
|
+
const result = yield* provider.find(_source, options).pipe(Effect.either);
|
|
69
|
+
if (result._tag === "Left") {
|
|
70
|
+
// Non-404 errors → hard fail
|
|
71
|
+
return yield* Effect.fail(result.left);
|
|
72
|
+
}
|
|
73
|
+
if (result.right.length > 0) {
|
|
74
|
+
allRefs.push(...result.right);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return allRefs;
|
|
78
|
+
}),
|
|
79
|
+
fetch: (_source, extension) => Effect.gen(function* () {
|
|
80
|
+
// The extension ref carries its location — determine the provider from that
|
|
81
|
+
const location = extension.location.replace("file://", "");
|
|
82
|
+
const provider = createRegistryProvider(location.startsWith("http") ? extension.location : location);
|
|
83
|
+
return yield* provider.fetch(_source, extension);
|
|
84
|
+
}),
|
|
85
|
+
});
|
|
86
|
+
// -----------------------------------------------------------------------------
|
|
87
|
+
// Layer
|
|
88
|
+
// -----------------------------------------------------------------------------
|
|
89
|
+
/**
|
|
90
|
+
* Live layer for SourceProviders.
|
|
91
|
+
*
|
|
92
|
+
* Constructs the provider registry with all source type providers.
|
|
93
|
+
* Captures FileSystem, Path, and Workspace at creation time so the
|
|
94
|
+
* service interface doesn't leak these dependencies.
|
|
95
|
+
*
|
|
96
|
+
* @experimental This API is unstable and may change without notice.
|
|
97
|
+
*/
|
|
98
|
+
export const SourceProvidersLive = Layer.effect(SourceProviders, Effect.gen(function* () {
|
|
99
|
+
const fs = yield* FileSystem.FileSystem;
|
|
100
|
+
const path = yield* Path.Path;
|
|
101
|
+
const ws = yield* Workspace;
|
|
102
|
+
const githubProvider = createGitHubProvider();
|
|
103
|
+
const gitlabProvider = createGitLabProvider();
|
|
104
|
+
const bitbucketProvider = createBitbucketProvider();
|
|
105
|
+
const azurereposProvider = createAzureReposProvider();
|
|
106
|
+
const gitProvider = createGitProvider();
|
|
107
|
+
const localProvider = createLocalProvider();
|
|
108
|
+
const registryMetaProvider = createRegistryMetaProvider();
|
|
109
|
+
// Captured layer for providing to provider operations
|
|
110
|
+
const depLayer = Layer.mergeAll(Layer.succeed(FileSystem.FileSystem, fs), Layer.succeed(Path.Path, path), Layer.succeed(Workspace, ws));
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- dispatch table: each key maps to correct provider
|
|
112
|
+
const providers = {
|
|
113
|
+
github: githubProvider,
|
|
114
|
+
gitlab: gitlabProvider,
|
|
115
|
+
bitbucket: bitbucketProvider,
|
|
116
|
+
azurerepos: azurereposProvider,
|
|
117
|
+
git: gitProvider,
|
|
118
|
+
local: localProvider,
|
|
119
|
+
registry: registryMetaProvider,
|
|
120
|
+
};
|
|
121
|
+
return {
|
|
122
|
+
resolveExtension: (source, options) => providers[source.type]
|
|
123
|
+
.find(source, options)
|
|
124
|
+
.pipe(Effect.provide(depLayer)),
|
|
125
|
+
fetch: (ref) => providers[ref.source.type]
|
|
126
|
+
.fetch(ref.source, ref)
|
|
127
|
+
.pipe(Effect.provide(depLayer)),
|
|
128
|
+
};
|
|
129
|
+
}));
|
|
130
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/sources/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAyB9B;;;;GAIG;AACH,MAAM,OAAO,eAAgB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