Files
agentic-labs-challenge/adaptive-loop/vite.config.ts
T
AlexKucera f4b2b76653 (Adaptive Loop) Pass 1
Adaptive Loop — a deterministic microfluidic strategy puzzle. Pure serializable
nextState(state,action) owns every committed turn; previews call the same
function on a clone. 5 handcrafted scenarios, bounded solver with verified
win/lose routes + shared-ownership counterfactual, exact localStorage
persistence/replay, accessible SVG interface, Vitest truth/solver/persistence
tests, and Playwright black-box browser proof.

Scenarios 3 and 4 retuned per SPEC §9 (provably unwinnable as originally
specified); proofs and exact changes in docs/scenario-tuning.md. Invariants
preserved. See CONTEXT-MANIFEST.md for the disclosure boundary and residual
risks.

Aggregate verified: tsc --noEmit, vitest (59), vite build, playwright (10).
2026-08-12 22:06:09 +02:00

24 lines
583 B
TypeScript

import { defineConfig } from "vitest/config";
import { fileURLToPath, URL } from "node:url";
// Adaptive Loop: vanilla-TS + SVG, no framework/engine. Static single-page build.
export default defineConfig({
base: "./",
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
build: {
target: "es2022",
outDir: "dist",
sourcemap: true,
},
test: {
// Vitest: pure domain tests run in node (no DOM needed for the core).
environment: "node",
include: ["tests/**/*.test.ts"],
reporters: ["default"],
},
});