fix(FN-2650): align dashboard createFnAgent aliases with static engine import
- Replace namespace engine imports with a named createFnAgent import in planning and chat modules - Alias imported createFnAgent to engineCreateFnAgent and wire local createFnAgent binding to it - Preserve existing injectable createFnAgent variable pattern while avoiding dynamic namespace access pitfalls
This commit is contained in:
@@ -25,12 +25,12 @@ import { EventEmitter } from "node:events";
|
||||
import { join, resolve, relative } from "node:path";
|
||||
import { SessionEventBuffer } from "./sse-buffer.js";
|
||||
|
||||
import * as engine from "@fusion/engine";
|
||||
import { createFnAgent as engineCreateFnAgent } 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 = engine.createFnAgent;
|
||||
let createFnAgent: any = engineCreateFnAgent;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
let buildAgentChatPromptFn: any;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user