## Summary Wave 17 organizes Fusion into **domain folders** (stacks on #2397). ### Layout - **core/types/** — board, task, agents, settings, merge, workflow, mesh, … - **core/src/** — agents, ai, async-stores, workflows, tasks, config, db, … - **dashboard/app/api/** — client, tasks, agents, git, missions, planning, … - **engine/src/** — agents, auth, execution, merge, missions, overseer, worktree, … Root keepers retained for large entrypoints (`store.ts`, `executor.ts`, `merger.ts`, …). Public barrels (`@fusion/core`, `@fusion/engine`, `app/api.ts` → legacy) stay stable. ## Test plan - [x] `@fusion/core` typecheck - [x] `@fusion/engine` typecheck (pre-existing playwright-core noise only) - [ ] CI merge gate **Stack:** #2394 → #2397 → **this PR**
29 lines
1.3 KiB
TypeScript
29 lines
1.3 KiB
TypeScript
import { isExperimentalFeatureEnabled } from "../config/experimental-features.js";
|
|
import { resolveValidatorSettingsModel } from "../ai/model-resolution.js";
|
|
import type { ResolvedEvalSettings, Settings } from "../types.js";
|
|
|
|
const DEFAULT_EVAL_SETTINGS: Omit<ResolvedEvalSettings, "evaluatorProvider" | "evaluatorModelId"> = {
|
|
enabled: false,
|
|
intervalMs: 86_400_000,
|
|
followUpPolicy: "suggest-only",
|
|
retentionDays: 30,
|
|
};
|
|
|
|
export function isEvalsExperimentalEnabled(settings: Partial<Settings> | undefined): boolean {
|
|
return isExperimentalFeatureEnabled(settings, "evalsView");
|
|
}
|
|
|
|
export function resolveEvalSettings(settings: Partial<Settings> | undefined): ResolvedEvalSettings {
|
|
const scopedSettings = settings?.evalSettings;
|
|
const validatorModel = resolveValidatorSettingsModel(settings);
|
|
|
|
return {
|
|
enabled: scopedSettings?.enabled ?? DEFAULT_EVAL_SETTINGS.enabled,
|
|
intervalMs: scopedSettings?.intervalMs ?? DEFAULT_EVAL_SETTINGS.intervalMs,
|
|
evaluatorProvider: scopedSettings?.evaluatorProvider ?? validatorModel.provider,
|
|
evaluatorModelId: scopedSettings?.evaluatorModelId ?? validatorModel.modelId,
|
|
followUpPolicy: scopedSettings?.followUpPolicy ?? DEFAULT_EVAL_SETTINGS.followUpPolicy,
|
|
retentionDays: scopedSettings?.retentionDays ?? DEFAULT_EVAL_SETTINGS.retentionDays,
|
|
};
|
|
}
|