/** * Source Parser for Agent Skills CLI * Based on vercel-labs/skills implementation * * Supports: * - Local paths: ./path, ../path, /absolute/path * - GitHub URLs: https://github.com/owner/repo * - GitHub shorthand: owner/repo * - GitLab URLs: https://gitlab.com/owner/repo * - Bitbucket URLs: https://bitbucket.org/owner/repo * - SSH URLs: git@host:owner/repo.git * - npm packages: npm:@scope/package * - Custom/self-hosted Git: https://git.company.com/team/repo * - Direct SKILL.md URLs * - Generic git URLs */ export interface ParsedSource { type: 'local' | 'github' | 'gitlab' | 'bitbucket' | 'npm' | 'private-git' | 'direct-url' | 'well-known'; url: string; localPath?: string; ref?: string; subpath?: string; /** npm registry URL (for npm sources) */ registry?: string; /** SSH host (for SSH URLs) */ sshHost?: string; } /** * Parse a source string into a structured format */ export declare function parseSource(input: string): ParsedSource; /** * Extract owner/repo from a parsed source for telemetry */ export declare function getOwnerRepo(parsed: ParsedSource): string | null; /** * Get display name for a source type */ export declare function getSourceTypeDisplay(type: ParsedSource['type']): string; //# sourceMappingURL=source-parser.d.ts.map