andy-stack_vaultkeeper-ai/Services/DebugService.ts
Andrew Beal cefc408b2e Add context passing between execution steps and enhance orchestration
- Add context_for_next_step parameter to CompleteStep for passing execution history
- Add context parameter to CompleteTask for preserving task completion state
- Update OrchestrationResult to handle context propagation between steps
- Add debug color differentiation for agent types (Main, Execution, Orchestration, Planning)
- Reorganize SearchTypes from Helpers to Types directory
- Add justification requirement for execution deviations
- Support reasonable deviations in orchestration plan validation
- Refactor dependency service with TryResolve utility
- Add whitespace cleanup to Semaphore class
2026-01-28 21:23:47 +00:00

27 lines
No EOL
658 B
TypeScript

import { DebugColor } from "Enums/DebugColor";
declare global {
interface Window {
debugServiceLog: (level: string, message: string) => void;
}
}
export class DebugService {
private debugColor: DebugColor = DebugColor.WHITE;
public constructor() {
window.debugServiceLog = (level: string, message: string) => {
console.log(`%c${level}: ${message}`, `color:${this.debugColor};`);
};
}
public setDebugColor(debugColor: DebugColor): void {
this.debugColor = debugColor;
}
public log(level: string, message: string): void {
window.debugServiceLog(level, message);
}
}