squabble-mcp
Version:
Engineer-driven development with critical-thinking PM collaboration - MCP server for Claude
58 lines • 1.61 kB
TypeScript
import { ChildProcess } from 'child_process';
import { WorkspaceManager } from '../workspace/manager.js';
import { EventEmitter } from 'events';
export interface PMActivityEvent {
timestamp: string;
type: 'session_start' | 'tool_use' | 'tool_result' | 'pm_message' | 'session_end' | 'error';
sessionId?: string;
tool?: string;
args?: any;
result?: string;
message?: string;
id?: string;
}
/**
* Enhanced PM Session Manager with real-time streaming
*/
export declare class StreamingPMSessionManager extends EventEmitter {
private workspaceManager;
private activeProcess?;
private currentSessionId?;
constructor(workspaceManager: WorkspaceManager);
/**
* Spawns a PM session with real-time streaming
*/
consultPMStreaming(prompt: string, systemPrompt: string, resumeSessionId?: string): Promise<{
sessionId: string;
process: ChildProcess;
}>;
/**
* Set up real-time streaming of JSON events
*/
private setupStreaming;
/**
* Handle a streaming event from Claude CLI
*/
private handleStreamEvent;
/**
* Wait for session ID from the stream
*/
private waitForSessionId;
/**
* Format tool use for display
*/
private formatToolUse;
/**
* Format tool result for display
*/
private formatToolResult;
/**
* Format tool result for display from content
*/
private formatToolResultForDisplay;
/**
* Stop the current PM session
*/
stopCurrentSession(): void;
}
//# sourceMappingURL=streaming-session-manager.d.ts.map