refactor(panel): unify settings and bridge contracts, prune dead code, and rename trajectory metrics

- Share settings normalization and window-bridge protocol contracts across frontend and backend
- Encapsulate trajectory cache accessors inside config.mjs and validate bundle imports/syntax before writing
- Remove dead selectors, unused symbols, duplicate re-export imports, and unmounted account tab instantiation
- Rename speed-metrics.mjs to trajectory-metrics.mjs and audit-fixes.test.mjs to cross-module-regressions.test.mjs
This commit is contained in:
fish
2026-11-17 20:00:50 +09:00
parent dba3473494
commit 1ff1c128a8
34 changed files with 802 additions and 676 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import test from 'node:test';
import assert from 'node:assert/strict';
import fs from 'node:fs';
import vm from 'node:vm';
import { normalizeClientWindowMountMode } from '../src/store/telemetryStore.js';
import { backendHarness } from './backend-harness.mjs';
const FLASH = 'MODEL_PLACEHOLDER_M318';
@@ -290,7 +291,7 @@ test('telemetryStore isEquivalentTelemetry detects quota changes in non-active p
source.indexOf('function isEquivalentTelemetry'),
source.indexOf('export async function fetchTelemetry')
);
const ctx = {};
const ctx = { normalizeClientWindowMountMode };
vm.runInNewContext(fn + '\nglobalThis.compare=isEquivalentTelemetry;', ctx);
const a = {