fix: compile dist from source in Docker, fix ChatResult interface
- Dockerfile now runs tsc during build so committed dist/ is never stale - ChatResult interface was missing history[] and memoryUpdates[] fields - Re-add missing MemoryUpdate import in orchestrator.ts - Rebuild dist/ with all new fields included Made-with: Cursor
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { createLLM, toOAITools, LLMMessage } from './llm';
|
||||
import { ALL_TOOLS, executeTool, ToolContext } from './tools';
|
||||
import { ALL_TOOLS, executeTool, ToolContext, MemoryUpdate } from './tools';
|
||||
|
||||
const MAX_TURNS = 20;
|
||||
|
||||
@@ -109,6 +109,10 @@ export interface ChatResult {
|
||||
turns: number;
|
||||
toolCalls: string[];
|
||||
model: string;
|
||||
/** Updated conversation history — caller should persist this */
|
||||
history: LLMMessage[];
|
||||
/** Knowledge items the AI chose to save this turn */
|
||||
memoryUpdates: MemoryUpdate[];
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user