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

- fix(FN-2614): restore workspace green verification gates
This commit is contained in:
Fusion
2026-04-26 19:26:25 -07:00
committed by gsxdsm
parent 6e4797ff14
commit 0a1e441c79
3 changed files with 15 additions and 44 deletions

View File

@@ -22,17 +22,16 @@ export { createFnAgent, promptWithFallback, describeModel, setHostExtensionPaths
// Register createFnAgent into core's loader so consumers in @fusion/core
// (e.g. ai-summarize, memory-compaction) can resolve it without a circular
// static import. Runs once at engine module load.
import * as fusionCore from "@fusion/core";
import { createFnAgent as _createFnAgentForCore } from "./pi.js";
const fusionCoreExports = fusionCore as Record<string, unknown>;
if (
"setCreateFnAgent" in fusionCoreExports &&
typeof fusionCoreExports["setCreateFnAgent"] === "function"
) {
(fusionCoreExports["setCreateFnAgent"] as (factory: typeof _createFnAgentForCore) => void)(
_createFnAgentForCore
);
}
void import("@fusion/core")
.then((core) => {
if ("setCreateFnAgent" in core && typeof core.setCreateFnAgent === "function") {
core.setCreateFnAgent(_createFnAgentForCore);
}
})
.catch(() => {
// Ignore loader registration failures in constrained test/mocked environments.
});
export {
resolveSessionSkills,
createSkillsOverrideFromSelection,