sourcewizard
Version:
SourceWizard - AI-powered setup wizard for dev tools and libraries with MCP integration
31 lines (30 loc) • 818 B
TypeScript
import { ProjectContext } from "./repository-detector.js";
export type AgentAuthJWT = string;
export type AgentAuthAPIKey = string;
export interface AgentOptions {
serverUrl: string;
apiKey?: string;
jwt?: string;
cwd: string;
projectContext: ProjectContext;
onStepFinish?: (stepData: any) => void;
}
export interface AgentResult {
text: string;
toolCalls?: any[];
toolResults?: any[];
finishReason?: string;
usage?: any;
}
export declare class AIAgent {
private projectContext;
private cwd;
private serverUrl;
private apiKey?;
private jwt?;
private onStepFinish?;
constructor(options: AgentOptions);
private getConfig;
searchPackages(query: string): Promise<AgentResult>;
installPackage(packageName: string): Promise<AgentResult>;
}