feat(FN-3738): add fusion-plugin-even-realities-glasses plugin package with
Implements a new Fusion plugin package (`fusion-plugin-even-realities-glasses`) providing settings schema, a Fusion HTTP API client, cards, quick capture actions, a notifier, and transport stub — plus plugin routes and lifecycle hooks wired into the pi extension. The branch concludes with a small fi Fusion-Task-Id: FN-3738
This commit is contained in:
@@ -1,5 +1,31 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveEvalSettings } from "../eval-settings.js";
|
||||
import { isEvalsExperimentalEnabled, resolveEvalSettings } from "../eval-settings.js";
|
||||
|
||||
describe("isEvalsExperimentalEnabled", () => {
|
||||
it("returns false when settings are undefined", () => {
|
||||
expect(isEvalsExperimentalEnabled(undefined)).toBe(false);
|
||||
});
|
||||
|
||||
it("returns false when experimentalFeatures are missing", () => {
|
||||
expect(isEvalsExperimentalEnabled({})).toBe(false);
|
||||
});
|
||||
|
||||
it("returns false when evalsView is false", () => {
|
||||
expect(
|
||||
isEvalsExperimentalEnabled({
|
||||
experimentalFeatures: { evalsView: false },
|
||||
}),
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
it("returns true when evalsView is true", () => {
|
||||
expect(
|
||||
isEvalsExperimentalEnabled({
|
||||
experimentalFeatures: { evalsView: true },
|
||||
}),
|
||||
).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe("resolveEvalSettings", () => {
|
||||
it("returns deterministic defaults when eval settings are unset", () => {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { isExperimentalFeatureEnabled } from "./experimental-features.js";
|
||||
import { resolveValidatorSettingsModel } from "./model-resolution.js";
|
||||
import type { ResolvedEvalSettings, Settings } from "./types.js";
|
||||
|
||||
@@ -8,6 +9,10 @@ const DEFAULT_EVAL_SETTINGS: Omit<ResolvedEvalSettings, "evaluatorProvider" | "e
|
||||
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);
|
||||
|
||||
@@ -710,7 +710,7 @@ export type {
|
||||
export { isExperimentalFeatureEnabled } from "./experimental-features.js";
|
||||
export { isResearchExperimentalEnabled, resolveResearchSettings } from "./research-settings.js";
|
||||
export type { ResolvedResearchSettings } from "./research-settings.js";
|
||||
export { resolveEvalSettings } from "./eval-settings.js";
|
||||
export { isEvalsExperimentalEnabled, resolveEvalSettings } from "./eval-settings.js";
|
||||
|
||||
export { TodoStore } from "./todo-store.js";
|
||||
export type { TodoStoreEvents } from "./todo-store.js";
|
||||
|
||||
Reference in New Issue
Block a user