UNPKG

remcode

Version:

Turn your AI assistant into a codebase expert. Intelligent code analysis, semantic search, and software engineering guidance through MCP integration.

47 lines (46 loc) 1.09 kB
interface SourceOptions { token?: string; cache?: string; } interface ResolvedSource { type: 'github' | 'local'; name: string; path: string; owner?: string; repo?: string; ref?: string; } /** * Source types supported by the resolver */ export declare enum SourceType { LOCAL_PATH = "local_path", GITHUB_REPO = "github_repo", GITLAB_REPO = "gitlab_repo", BITBUCKET_REPO = "bitbucket_repo", GIT_REPO = "git_repo", HTTP_URL = "http_url", UNKNOWN = "unknown" } /** * Parsed source information */ export interface ParsedSource { type: SourceType; owner?: string; repo?: string; branch?: string; path?: string; url?: string; localPath?: string; originalSource: string; } /** * Resolve a source path or URL to a local directory */ export declare function resolveSource(source: string, options?: SourceOptions): Promise<ResolvedSource>; /** * Detect programming languages used in a directory */ export declare function detectLanguages(directory: string): Promise<Record<string, number>>; export {};