cortexweaver
Version:
CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate
47 lines • 1.66 kB
TypeScript
import { SessionManager, SessionInfo, CommandOutput } from './session';
import { WorkspaceManager } from './workspace';
import { TaskData } from './cognitive-canvas';
import { AgentConfig, AgentStatus } from './types/agent-types';
import { Message } from './claude-client';
export interface SessionManagementCapabilities {
createSession(): Promise<SessionInfo>;
runInSession(command: string): Promise<CommandOutput>;
reset(): Promise<void>;
}
export declare class AgentSessionManager {
private config;
private sessionManager;
private workspace;
private currentTask;
private currentSession;
private status;
private conversationHistory;
private lastError;
private taskContext;
constructor(config: AgentConfig | null, sessionManager: SessionManager | null, workspace: WorkspaceManager | null, currentTask: TaskData | null, currentSession: SessionInfo | null, status: AgentStatus, conversationHistory: Message[], lastError: Error | null, taskContext: any);
/**
* Create a session for task execution
*/
createSession(): Promise<SessionInfo>;
/**
* Run command in session
*/
runInSession(command: string): Promise<CommandOutput>;
/**
* Format prompt template with context variables
*/
formatPrompt(template: string, context: Record<string, any>): string;
/**
* Reset agent state
*/
reset(): Promise<void>;
/**
* Get current session info
*/
getCurrentSession(): SessionInfo | null;
/**
* Check if session is active
*/
hasActiveSession(): boolean;
}
//# sourceMappingURL=agent-session-management.d.ts.map