mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
- 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
27 lines
No EOL
658 B
TypeScript
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);
|
|
}
|
|
|
|
} |