aiwg
Version:
Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo
26 lines • 1.08 kB
TypeScript
/**
* Source Identifier Parser
*
* Parses marketplace source identifiers of the form `<source>:<package>[@<version>]`.
*
* @implements #787
*/
import type { ParsedIdentifier } from './types.js';
/**
* Parse a marketplace source identifier.
*
* Examples:
* "clawhub:aiwg/sdlc" → { source: 'clawhub', packageId: 'aiwg/sdlc' }
* "cursor:publisher.package" → { source: 'cursor', packageId: 'publisher.package' }
* "codex:some-plugin@1.2.0" → { source: 'codex', packageId: 'some-plugin', version: '1.2.0' }
* "claude:user/repo#plugin" → { source: 'claude', packageId: 'user/repo#plugin' }
* "git:https://github.com/foo/bar" → { source: 'git', packageId: 'https://github.com/foo/bar' }
*
* @throws Error if the identifier is malformed or the source is unknown
*/
export declare function parseIdentifier(identifier: string): ParsedIdentifier;
/**
* Format a parsed identifier back to string form
*/
export declare function formatIdentifier(parsed: ParsedIdentifier): string;
//# sourceMappingURL=identifier.d.ts.map