- strip.ts: six-state lamp+word left cluster, ±M / FIX Ns AGO telemetry (U+00B1 glyph), elapsed-seconds for acquiring - cards.ts: boot/denied/lost builders from theme classes, machine-blink gantry (500ms JS duty cycle), GEO/SYS registers from strings.ts, D-06 CTA inversion (chat-fallback=btn-primary, retry=btn-secondary) - recenter.ts: 40x40 plate w/ >=44 hit slop, orthogonal inline-SVG crosshair, three data-attribute notch states, no inline handlers - main.ts: boot order map->session->chain (bootMap before acquireFix), null-map guards on every map consumer, ARAHARAH-LIVE emitted outside the guard, data-map=absent fallback, localeFromInitData, ASK VIA CHAT w/ D-03 revalidation, 1s tick re-running the chain at 45s staleness - map.ts: attribution control moved bottom-left (UI-SPEC flush chip, compact) - shell.css: attrib chip #map-scoped override (wins cascade over maplibre css), strip left cluster, recenter z-index - vite.config.ts: define __ARAHARAH_HARNESS__ keyed on --mode harness (bare ambient global would ReferenceError in plain dev; Rule 3) - session.test.mjs: SESS1-4 memory-token gates
24 lines
781 B
TypeScript
24 lines
781 B
TypeScript
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig(({ mode }) => ({
|
|
base: "/",
|
|
// 03-03: the harness constant (declared ambient in main.ts; canonical home
|
|
// is web/src/vite-env.d.ts under plan 03-04) is REAL only in --mode harness
|
|
// builds and statically false everywhere else — with a bare ambient global
|
|
// referenced in main.ts, this define keeps plain `vite dev` from throwing a
|
|
// ReferenceError while the fallback mock install there still fires via
|
|
// import.meta.env.DEV. 03-04's dual-build config keys on the same mode.
|
|
define: {
|
|
__ARAHARAH_HARNESS__: JSON.stringify(mode === "harness"),
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: true,
|
|
target: "es2022",
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
strictPort: true,
|
|
},
|
|
}));
|