@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
15 lines (14 loc) • 857 B
TypeScript
import type { ForgeKind, RepoRef } from "./issues.js";
export declare function parseRepo(text: string, defaultDomain?: string): RepoRef;
/** Apply the project's forge domain to a bare owner/name. Explicit domains take precedence. */
export declare function parseRepoForProject(text: string, project?: string, store?: string): Promise<RepoRef>;
export declare function forgeKind(domain: string): ForgeKind;
export declare function repoParts(input: RepoRef, expected?: ForgeKind): {
repo: string;
domain: string;
kind: ForgeKind;
path: string;
};
export declare function walkUpIssueCheckout(store: string, cwd?: string): Promise<string | undefined>;
export declare function repoForCheckout(directory: string): Promise<RepoRef | undefined>;
export declare function repoForProject(project: string, store?: string): Promise<RepoRef | undefined>;