feat(FN-2615): merge fusion/fn-2615 (auto-resolved)

- fix(FN-2615): restore workspace lint and test stability
This commit is contained in:
Fusion
2026-04-26 15:16:22 -07:00
committed by gsxdsm
parent 01ff37632c
commit 112813f122
10 changed files with 46 additions and 37 deletions

View File

@@ -25,17 +25,14 @@ import { EventEmitter } from "node:events";
import { join, resolve, relative } from "node:path";
import { SessionEventBuffer } from "./sse-buffer.js";
import {
createFnAgent as engineCreateFnAgent,
buildAgentChatPrompt as engineBuildAgentChatPrompt,
} from "@fusion/engine";
import * as engine from "@fusion/engine";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type AgentResult = any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let createFnAgent: any = engineCreateFnAgent;
let createFnAgent: any = engine.createFnAgent;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let buildAgentChatPromptFn: any = engineBuildAgentChatPrompt;
let buildAgentChatPromptFn: any = "buildAgentChatPrompt" in engine ? engine.buildAgentChatPrompt : undefined;
/**
* Diagnostics logger for the chat module.
@@ -889,7 +886,7 @@ export function __setBuildAgentChatPrompt(mock: typeof buildAgentChatPromptFn):
export function __resetChatState(): void {
chatStreamManager.reset();
rateLimits.clear();
buildAgentChatPromptFn = engineBuildAgentChatPrompt;
buildAgentChatPromptFn = "buildAgentChatPrompt" in engine ? engine.buildAgentChatPrompt : undefined;
// Reset diagnostics logger to default
__setChatDiagnostics(null);