seriesoftubes/scripts
Wolfgang Nagele 5b76685e5c MCP: the agent facade moves into src/agent/, assembled into the development page only
The command tables and the page-side reads, screens and dispatch (scripts/lib/mcp-commands.js and
mcp-page.js) become src/agent/, the facade window.TUBES.call(tool, args) in the page's own scope.
A new <!-- @include-dev agent --> line in src/index.html pastes it in after the game, but only in the
development page (npm run dev, the MCP server, i18n-check, tests that ask with load({agent:true})).
The build drops the line whole: _site/ is byte for byte what main builds.

Tests load the page players get by default, the build test fails if anything outside src/agent/ names
the facade's api/API_ names, and the pages test checks the built page carries none of it and still
plays. ADR 0004 records the rule.
2026-11-03 16:18:38 -05:00
..
legacy Docs: the single-file page and English keys lasted until 1.34 2026-10-27 11:28:17 +01:00
lib MCP: the agent facade moves into src/agent/, assembled into the development page only 2026-11-03 16:18:38 -05:00
build.js Release notes: a story for big releases, and the 2.0 story 2026-10-30 16:28:19 +01:00
dev.js MCP: the agent facade moves into src/agent/, assembled into the development page only 2026-11-03 16:18:38 -05:00
i18n-add.js Translations keyed by labels instead of English text 2026-10-27 11:05:09 +01:00
i18n-check.js MCP: the agent facade moves into src/agent/, assembled into the development page only 2026-11-03 16:18:38 -05:00
mcp.js MCP server: typed, checked actions with outcomes and dry-run prices; schema, catalog, state, results and ui tools 2026-11-02 21:10:35 -05:00
perf-bench.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
perf-browser.js Benchmark in real Chromium too, and only call a row slower when the samples say so 2026-10-26 12:04:57 +01:00
perf-fixture.js Performance benchmark on a big network, posted on every PR 2026-10-26 06:39:23 +01:00
perf-stats.js Benchmark in real Chromium too, and only call a row slower when the samples say so 2026-10-26 12:04:57 +01:00
release-notes.js Release notes: a story for big releases, and the 2.0 story 2026-10-30 16:28:19 +01:00
route-fuzz.js Differential random games: main's page and this checkout's play the same seeded game move for move 2026-11-01 21:44:30 +01:00
test-timings.js CI: tests in four parts on four runners, every core in use, older PR runs cancelled 2026-10-31 14:11:02 +01:00
test.js CI: tests in four parts on four runners, every core in use, older PR runs cancelled 2026-10-31 14:11:02 +01:00
weekly-architect.js Weekly Architect runs: sites outgrow their tubes, and a countdown 2026-10-30 14:07:45 +01:00
weekly-puzzle.js Weekly puzzle: schema 2 with traffic, sized references, regenerated weeks 2026-10-29 10:50:04 +01:00
weekly-scenario.js DDoS rework: tests for the new model, Flood Season and its weekly at level 4, routing reference fix 2026-10-31 12:51:15 +01:00