@marver-design/marver 0.29.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +2 -1
  3. package/dist/{anchor-check-DhlpKl2K.mjs → anchor-check-c52IDkiQ.mjs} +1 -1
  4. package/dist/{build-CWbrb2bl.mjs → build-C3mUtjEn.mjs} +5 -4
  5. package/dist/cli.mjs +5 -5
  6. package/dist/{daemon-Sc_z8gT6.mjs → daemon-B0Wi1OQ3.mjs} +5 -3
  7. package/dist/{dev-DWBKQhxf.mjs → dev-5dlxoW28.mjs} +8 -8
  8. package/dist/{perf-Denssrko.mjs → perf-6MOTHxay.mjs} +710 -99
  9. package/dist/perf-BCxAo0IS.mjs +1743 -0
  10. package/dist/{plugin-DqoZB-D6.mjs → plugin-CXRoMA8g.mjs} +898 -539
  11. package/dist/{poster-CrsjqhY4.mjs → poster-CYmCa00B.mjs} +1 -1
  12. package/dist/{publish-bakes-DW-NDgU2.mjs → publish-bakes-C_2ZtHou.mjs} +2 -2
  13. package/dist/{recover-GtJ9UDAB.mjs → recover-XD8iXJOj.mjs} +1 -1
  14. package/dist/{shot-T04Ixrvq.mjs → shot-CRRGgxru.mjs} +3 -3
  15. package/docs/app.md +194 -0
  16. package/docs/performance.md +98 -18
  17. package/package.json +1 -1
  18. package/src/client/frame-host/bridge.js +17 -8
  19. package/src/client/frame-host/inplace.ts +124 -0
  20. package/src/client/frame-host/inspect.d.ts +1 -0
  21. package/src/client/frame-host/inspect.js +13 -4
  22. package/src/client/frame-host/main.tsx +12 -3
  23. package/src/client/frame-host/messages.ts +85 -0
  24. package/src/client/frame-host/signals.d.ts +15 -0
  25. package/src/client/frame-host/signals.js +219 -0
  26. package/src/client/recorder-level.ts +41 -0
  27. package/src/client/shell/App.tsx +158 -88
  28. package/src/client/shell/BoardList.tsx +103 -48
  29. package/src/client/shell/Comments.tsx +66 -42
  30. package/src/client/shell/ContextMenu.tsx +3 -2
  31. package/src/client/shell/JamSurface.tsx +116 -71
  32. package/src/client/shell/LockedApp.tsx +19 -3
  33. package/src/client/shell/Play.tsx +94 -58
  34. package/src/client/shell/StatusPicker.tsx +19 -9
  35. package/src/client/shell/Toolbar.tsx +15 -7
  36. package/src/client/shell/api.ts +18 -4
  37. package/src/client/shell/app-bridge.ts +12 -6
  38. package/src/client/shell/app-perf.ts +31 -1
  39. package/src/client/shell/canvas/Canvas.tsx +17 -6
  40. package/src/client/shell/canvas/FrameNode.tsx +25 -12
  41. package/src/client/shell/canvas/Sticky.tsx +4 -2
  42. package/src/client/shell/canvas/ctl.ts +2 -0
  43. package/src/client/shell/canvas/ready-watch.ts +4 -0
  44. package/src/client/shell/canvas/sleep.ts +2 -0
  45. package/src/client/shell/canvas/updates.ts +13 -6
  46. package/src/client/shell/commands.ts +765 -0
  47. package/src/client/shell/comments-store.ts +42 -27
  48. package/src/client/shell/goto.ts +11 -6
  49. package/src/client/shell/jam-keys.ts +141 -75
  50. package/src/client/shell/jam-lane.tsx +19 -12
  51. package/src/client/shell/jam-panel.tsx +61 -48
  52. package/src/client/shell/jam-session.tsx +41 -37
  53. package/src/client/shell/jam-state.ts +9 -1
  54. package/src/client/shell/jam-surface-parts.tsx +8 -6
  55. package/src/client/shell/jam-ui.tsx +9 -6
  56. package/src/client/shell/jam-voice.ts +4 -2
  57. package/src/client/shell/main.tsx +7 -1
  58. package/src/client/shell/marks-ui.tsx +11 -0
  59. package/src/client/shell/perf.ts +51 -5
  60. package/src/client/shell/recorder-core.ts +4 -1
  61. package/src/client/shell/recorder-hmr.ts +36 -0
  62. package/src/client/shell/recorder-reloads.ts +264 -0
  63. package/src/client/shell/recorder-seams.ts +116 -0
  64. package/src/client/shell/recorder-self.ts +73 -0
  65. package/src/client/shell/recorder-signals-core.ts +139 -0
  66. package/src/client/shell/recorder-signals.ts +485 -0
  67. package/src/client/shell/recorder.ts +115 -41
  68. package/src/client/shell/store.ts +56 -22
  69. package/src/client/shell/whiteout-probes.ts +3 -1
  70. package/src/client/stage/main.tsx +10 -5
  71. package/src/shared/app-api.ts +28 -6
  72. package/src/shared/app-perf.ts +99 -6
  73. package/src/shared/app-report.ts +586 -0
  74. package/src/shared/perf-records.ts +445 -0
  75. package/src/shared/perf-run.ts +6 -2
  76. package/dist/perf-jam-CLkERSHo.mjs +0 -642
package/CHANGELOG.md CHANGED
@@ -2,6 +2,50 @@
2
2
 
3
3
  Notable changes to `@marver-design/marver`. Format follows [Keep a Changelog](https://keepachangelog.com); versions follow semver.
4
4
 
5
+ ## 0.30.0 - 2026-11-04
6
+
7
+ ### Highlights
8
+
9
+ - **Marver now records what happens on your canvas closely enough to explain it.** This release changes no behaviour and
10
+ fixes no slowness; it makes slowness measurable. It all stays on your Mac, in `design/.local/perf/`.
11
+ - **One edit, followed to the frames it redrew.** Each file change gets an id, carried from the save to every frame:
12
+ which frames were asked to redraw, which were awake, off screen or asleep, how long each waited in line and how long it
13
+ took. A page-wide reload now names the file behind it - or says `ambiguous` and lists the candidates when two saves
14
+ overlap. Records say what is known, never a guess.
15
+ - **Why a board loaded again:** what triggered it, who may have written the file, and what was ready when a load was cut off.
16
+ - **Every command you give, however you give it.** C for comments, I for a picture, ⇧P for a path, a menu item, a button,
17
+ a right-click: what it was, how you gave it, whether it worked or why not, and how long until its effect showed. C is
18
+ done when comments mode has reached every visible frame; copy image when the clipboard holds the image. Names and key
19
+ combinations only: never what you type, a comment's words, or what is on your clipboard.
20
+ - **Theme switches and modes, timed:** from the key press to the last visible frame repainted, for the theme, comments,
21
+ laser, inspect, interact, play, slides and Jam, with the errors that happened in each.
22
+ - **Re-renders:** how often each frame's React tree committed, per minute, and how much of that was during a gesture.
23
+ - **What held up a zoom:** the three longest stalls of each gesture and the script behind them, the zoom level, and how many
24
+ frames were awake.
25
+ - **More kinds of bugs:** console errors (warnings are counted only), build errors, a lost dev-server connection, failed
26
+ requests, images and files that would not load, frames that went silent.
27
+ - **`npx marver perf --all`:** one summary of every canvas on this Mac, no repo needed. **`npx marver perf --live`:** the
28
+ records as they happen, in a terminal. Details: [Performance](docs/performance.md).
29
+
30
+ ### Added
31
+
32
+ - `npx marver perf run <board> --recorder core|full`, and a `self` record every 5 minutes: what the recorder itself costs.
33
+ Its budget: a board's load within 5 % with everything on, a gesture's p95 within 0.5 ms.
34
+ - With the Mac app 1.0.1: white-out windows around a board load, a theme switch and a frame's reload, not only gestures.
35
+
36
+ ### Changed
37
+
38
+ - Every perf log keeps 14 days, whole: a live file plus closed segments deleted by age, never rewritten, with a safety cap
39
+ per file. On a very heavy canvas that can reach about 85 MB (`page.jsonl` and `reloads.jsonl`), 176 MB at the caps.
40
+ - Error and console-error messages are kept as the code produced them, 200 characters, on this Mac. In rare cases one
41
+ can hold text you typed; the recorder's own hooks never read input values, the clipboard or request bodies.
42
+
43
+ ### Upgrading
44
+
45
+ Nothing to do. 0.30 reads 0.29's records in every view, with the same output. **marver 0.29 reading 0.30's data** skips the
46
+ new kinds, reads only each live file (so it shows less history), and its `--crashes` loses "the minute before" with app
47
+ 1.0.1, since samples moved to `samples.jsonl`.
48
+
5
49
  ## 0.29.0 - 2026-10-31
6
50
 
7
51
  ### Highlights
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  Screens, prototypes, specs, and now slide decks - all real code, all on one canvas, all shareable with people who sign in as themselves.
10
10
 
11
- [marver.design](https://marver.design) · [Boards and folders](docs/boards-and-folders.md) · [Context](docs/context.md) · [Slides](docs/slides.md) · [Sticky notes](docs/sticky-notes.md) · [Live Jam](docs/live-jam.md) · [Jam sessions](docs/jam-session.md) · [Performance](docs/performance.md) · [Deploying a canvas](docs/publish.md) · [Sharing](docs/sharing.md) · [Changelog](CHANGELOG.md) · [Contributing](CONTRIBUTING.md) · [Issues](https://github.com/TNEP4/marver/issues)
11
+ [marver.design](https://marver.design) · [Mac app](docs/app.md) · [Boards and folders](docs/boards-and-folders.md) · [Context](docs/context.md) · [Slides](docs/slides.md) · [Sticky notes](docs/sticky-notes.md) · [Live Jam](docs/live-jam.md) · [Jam sessions](docs/jam-session.md) · [Performance](docs/performance.md) · [Deploying a canvas](docs/publish.md) · [Sharing](docs/sharing.md) · [Changelog](CHANGELOG.md) · [Contributing](CONTRIBUTING.md) · [Issues](https://github.com/TNEP4/marver/issues)
12
12
 
13
13
  ## Quickstart
14
14
 
@@ -119,6 +119,7 @@ The same glow, driven from the terminal. When your agent takes a request, it cre
119
119
  | `npx marver link <scene/frame \| scene ...>` | The canvas link that lands on those frames - their board, selected and in view (needs `dev` running) |
120
120
  | `npx marver shot <frame ...> \| --scene <name> \| --all [--scale 1-4] [--json]` | Render frames headless and print the PNG paths (needs `dev` running); a scene is one browser, several frames at a time; 2x by default |
121
121
  | `npx marver perf [--loads \| --jam \| --runs] [--json]` | What the canvas did lately: each edit's reloads; `--loads` each board load (time to settled, how many moves and why, the slowest frames, errors); `--jam` Jam's timings; `--runs` the headless runs compared ([Performance](docs/performance.md)) |
122
+ | `npx marver perf --all` / `--live` | Every canvas on this Mac in one summary, no repo needed; or the records as they happen, in a terminal. |
122
123
  | `npx marver perf run <board> [--slow] [--repeat n]` | Measure a board the same way every time - a load, a fit, a zoom and a pan in the canvas's own headless Chrome, read-only - so you or your agent can compare before and after a change (needs `dev` running; [Headless runs](docs/performance.md#headless-runs)) |
123
124
  | `npx marver boards [--json]` | The sidebar as the files say it is: folders and sub-folders, boards in reading order with their title, type, status, `order` and description, the landing board; a board file that is not valid JSON says why, with line and column |
124
125
  | `npx marver boards new <name> [--folder f] [--type t]` | A board in its type's starting layout - a feature's spec, lo-fi and hi-fi bands, a start board rendering `context/` |
@@ -1,4 +1,4 @@
1
- import { a as frameUrl, d as withBrowser, n as MOUNTED, o as manifestFrame, s as planShot } from "./shot-T04Ixrvq.mjs";
1
+ import { a as frameUrl, d as withBrowser, n as MOUNTED, o as manifestFrame, s as planShot } from "./shot-CRRGgxru.mjs";
2
2
  //#region src/server/anchor-check.ts
3
3
  /**
4
4
  * The anchor check (spec 26, Part 6): `comments new --on|--at`, `comments move` and a Live Jam re-pin
@@ -5,7 +5,7 @@ import { g as PUBLISHABLE, s as scanFrames, v as publishableStatus } from "./man
5
5
  import { a as readLog, o as shareable, r as legacyExposure, t as appendEvents } from "./comments-0BSbb04K.mjs";
6
6
  import { t as detectHost } from "./detect-C0wpaePX.mjs";
7
7
  import { n as loadConfig } from "./config-BezZTiov.mjs";
8
- import { n as tailwind3Css, r as tailwind4Plugin, t as marverPlugin } from "./plugin-DqoZB-D6.mjs";
8
+ import { n as tailwind3Css, r as tailwind4Plugin, t as marverPlugin } from "./plugin-CXRoMA8g.mjs";
9
9
  import { i as measuringFrames, n as autoWidthOf, o as readSizes, r as keptSizes } from "./sizes-wjXDev3b.mjs";
10
10
  import { i as publishLogo, n as logoIcons } from "./logo-CXY-1yrn.mjs";
11
11
  import { cpSync, existsSync, mkdirSync, readFileSync, realpathSync, rmSync, writeFileSync } from "node:fs";
@@ -751,7 +751,8 @@ async function buildSite(root, boardsFlag, allBoardsFlag, embedSeeds, textures =
751
751
  "bridge.js",
752
752
  "inspect.js",
753
753
  "keys.js",
754
- "trail.js"
754
+ "trail.js",
755
+ "signals.js"
755
756
  ]) cpSync(join(clientDir, "frame-host", f), join(outDir, "assets", f));
756
757
  const frameCss = cssFor("frame").map((f) => `<link rel="stylesheet" href="/${f}" />`).join("\n");
757
758
  for (const f of frames.filter((x) => x.kind === "html")) {
@@ -788,7 +789,7 @@ async function buildSite(root, boardsFlag, allBoardsFlag, embedSeeds, textures =
788
789
  const realAssets = existsSync(assetsDir) ? realpathSync(assetsDir) : null;
789
790
  for (const r of refs) {
790
791
  if (!isLocalAssetRef(r) || !r.endsWith(".poster.png") || existsSync(join(assetsDir, r))) continue;
791
- const { ensurePoster } = await import("./poster-CrsjqhY4.mjs");
792
+ const { ensurePoster } = await import("./poster-CYmCa00B.mjs");
792
793
  const g = await ensurePoster(assetsDir, r.slice(0, -11));
793
794
  if (!g.ok) throw new Error(`design/assets/${r}: ${g.error}`);
794
795
  console.log(` poster: rendered design/assets/${r} (${g.width}×${g.height})`);
@@ -851,7 +852,7 @@ async function buildSite(root, boardsFlag, allBoardsFlag, embedSeeds, textures =
851
852
  }));
852
853
  let textureLine = " textures: skipped (--no-textures)";
853
854
  if (textures && bakeGen) {
854
- const { bakePublished } = await import("./publish-bakes-DW-NDgU2.mjs");
855
+ const { bakePublished } = await import("./publish-bakes-C_2ZtHou.mjs");
855
856
  const pubFrameFile = new Map(pubFrames.map((f) => [f.id, f]));
856
857
  const r = await bakePublished({
857
858
  root,
package/dist/cli.mjs CHANGED
@@ -90,7 +90,7 @@ cli.command("init", "Scaffold design/ in this repo").option("--mode <mode>", "st
90
90
  });
91
91
  });
92
92
  for (const [name, desc] of [["dev", "Start the local canvas (everything on: hot reload, comments, Live Jam)"], ["canvas", "Start the local canvas - same as dev"]]) cli.command(name, desc).option("--root <dir>", "Host repo root", { default: "." }).option("--port <port>", "A port of its own (default: a free slot, localhost:4805-4824 - usually the same one next time; a port in that range takes exactly that slot)").option("--recover [n]", "Run on an address this canvas had before, where an unsent Jam capture waits: alone it lists them; with a number it starts on that one; --recover --port <p>: the port 0.26 used").action(async (opts) => {
93
- const { dev, DevStartError, DevLockError } = await import("./dev-DWBKQhxf.mjs");
93
+ const { dev, DevStartError, DevLockError } = await import("./dev-5dlxoW28.mjs");
94
94
  let port;
95
95
  if (opts.port !== void 0) {
96
96
  const n = Number(opts.port);
@@ -102,7 +102,7 @@ for (const [name, desc] of [["dev", "Start the local canvas (everything on: hot
102
102
  process.exit(1);
103
103
  };
104
104
  try {
105
- if (opts.recover !== void 0 && opts.recover !== false) await (await import("./recover-GtJ9UDAB.mjs")).recoverCommand(resolve$1(opts.root), opts.recover, port, { onFail });
105
+ if (opts.recover !== void 0 && opts.recover !== false) await (await import("./recover-XD8iXJOj.mjs")).recoverCommand(resolve$1(opts.root), opts.recover, port, { onFail });
106
106
  else await dev(resolve$1(opts.root), {
107
107
  port,
108
108
  onFail
@@ -118,7 +118,7 @@ cli.command("ls", "The canvases running on this Mac: slot, link, name, version,
118
118
  (await import("./ls-NqmePKOf.mjs")).lsCommand({ json: opts.json === true });
119
119
  });
120
120
  cli.command("build", "Static export → design/.dist (what ships comes from design/publish.json - publishing is default-closed)").option("--boards <names>", "Publish only these boards (comma-separated); overrides the publish policy").option("--all-boards", "Publish every board - the loud override for the default-closed policy").option("--embed-seeds", "Copy comment history INTO the web root (identifying - every event carries its author's email)").option("--no-textures", "Skip compiling the glass textures the published frames rest under (needs Chrome; a CI without one skips on its own)").option("--root <dir>", "Host repo root", { default: "." }).action(async (opts) => {
121
- const { buildSite } = await import("./build-CWbrb2bl.mjs");
121
+ const { buildSite } = await import("./build-C3mUtjEn.mjs");
122
122
  try {
123
123
  const boards = opts.boards === void 0 ? void 0 : typeof opts.boards === "string" ? opts.boards : "";
124
124
  await buildSite(resolve$1(opts.root), boards, opts.allBoards === true, opts.embedSeeds === true, opts.textures !== false && !process.env.MARVER_NO_TEXTURES);
@@ -267,12 +267,12 @@ cli.command("marks", "What the human has not reviewed: frames waiting on them (t
267
267
  const { marksCommand } = await import("./marks-DBp3h1Mc.mjs");
268
268
  marksCommand(resolve$1(opts.root), opts);
269
269
  });
270
- cli.command("perf [action] [board]", "The reload log: what each edit reloaded, page-wide reloads, the slowest frames to settle, one line per board load; --loads: what each board load did; --jam: Jam's timings; `perf run <board>`: a headless run of the board, read-only (needs `dev` running); --runs: those runs compared; --crashes, --flashes, --machine: the Mac app's records").option("--root <dir>", "Host repo root", { default: "." }).option("--minutes <n>", "How far back to read (default 60; 24 h with --jam)").option("--loads", "Board loads, from the page, each board by its title: time to the visible frames ready and all ready (each frame's first render), still from the last move and settled (a second still after it) - or why it was cut, and how many frames were ready by then - how many moves and their causes, when the first frame started, the slowest frames to settle (their last height) and how long each waited for its turn to start, errors (design/.local/perf/page.jsonl)").option("--jam", "Jam's timings: captures, pictures, words, naming, runs, shots - numbers only (design/.local/perf/jam.jsonl)").option("--runs", "The headless runs (`perf run`), compared only inside a cohort (script, board, Chrome, flags, machine, power, --slow, bakes): the latest against the one before with the same inputs, and against the last with other inputs; overlapped and invalid runs listed apart (design/.local/perf/runs.jsonl)").option("--against <run>", "With --runs: the latest run of that run's cohort against it, whatever their inputs (you changed something on purpose)").option("--crashes", "The Mac app's crashes and hangs of this repo's canvases, each joined to its board load by page (what had settled, the last gesture), the minute before it, and the GPU and utility processes' ends by time (~/.marver/perf/app.jsonl, app-dev.jsonl)").option("--flashes", "The flashes marked in the Mac app (⌃⌥F) on this repo's canvases: the board, the gesture the mark fell in (or the one ending within 2 s of it), the GPU process's events, pressure at the mark, the GPU figures and the picture's path; the white-out detector's candidates apart, automatic and not verified").option("--machine", "The machine profiles the Mac app and headless runs wrote (~/.marver/perf/machine), by host, which is current, and how many records and runs name each").option("--all", "With --flashes: also the marks made on other canvases or on Home").option("--days <n>", "How far back --runs, --crashes, --flashes and --machine read (default 14)").option("--slow", "With `run`: the CPU throttled 4x (a stand-in for a slower Mac's CPU, not its GPU or memory)").option("--repeat <n>", "With `run`: how many runs, one after another (1-5, default 1)").option("--json", "Machine-readable output").action(async (action, board, opts) => {
270
+ cli.command("perf [action] [board]", "The reload log: what each edit reloaded, page-wide reloads, the slowest frames to settle, one line per board load; --loads: what each board load did; --jam: Jam's timings; `perf run <board>`: a headless run of the board, read-only (needs `dev` running); --runs: those runs compared; --crashes, --flashes, --machine: the Mac app's records; --all: every canvas this Mac knows, one summary; --live: a tail in the terminal").option("--root <dir>", "Host repo root", { default: "." }).option("--minutes <n>", "How far back to read (default 60; 24 h with --jam)").option("--loads", "Board loads, from the page, each board by its title: time to the visible frames ready and all ready (each frame's first render), still from the last move and settled (a second still after it) - or why it was cut, and how many frames were ready by then - how many moves and their causes, when the first frame started, the slowest frames to settle (their last height) and how long each waited for its turn to start, errors (design/.local/perf/page.jsonl)").option("--jam", "Jam's timings: captures, pictures, words, naming, runs, shots - numbers only (design/.local/perf/jam.jsonl)").option("--runs", "The headless runs (`perf run`), compared only inside a cohort (script, board, Chrome, flags, machine, power, --slow, bakes): the latest against the one before with the same inputs, and against the last with other inputs; overlapped and invalid runs listed apart (design/.local/perf/runs.jsonl)").option("--against <run>", "With --runs: the latest run of that run's cohort against it, whatever their inputs (you changed something on purpose)").option("--crashes", "The Mac app's crashes and hangs of this repo's canvases, each joined to its board load by page (what had settled, the last gesture), the minute before it, and the GPU and utility processes' ends by time (~/.marver/perf/app.jsonl, app-dev.jsonl)").option("--flashes", "The flashes marked in the Mac app (⌃⌥F) on this repo's canvases: the board, the gesture the mark fell in (or the one ending within 2 s of it), the GPU process's events, pressure at the mark, the GPU figures and the picture's path; the white-out detector's candidates apart, automatic and not verified").option("--machine", "The machine profiles the Mac app and headless runs wrote (~/.marver/perf/machine), by host, which is current, and how many records and runs name each").option("--all", "Every canvas this Mac knows (running, or that the app remembers): one summary per canvas and the Mac app's, no repo needed; with --live, every known canvas's live files; with --flashes, also the marks made on other canvases or on Home").option("--live", "A tail in the terminal: the live files of this repo (--all: every known canvas) and the app's app.jsonl, from now, one line per record - about 3 s behind (Ctrl-C ends it)").option("--kinds <list>", "With --live: only these kinds, comma-separated (load,cmd,error, ...)").option("--days <n>", "How far back --all, --runs, --crashes, --flashes and --machine read (default 14)").option("--slow", "With `run`: the CPU throttled 4x (a stand-in for a slower Mac's CPU, not its GPU or memory)").option("--repeat <n>", "With `run`: how many runs, one after another (1-5, default 1)").option("--recorder <level>", "With `run`: core (only what the run's driver reads, 0.29's load tracking) or full (everything the recorder records, the default); the two never compare as one").option("--json", "Machine-readable output").action(async (action, board, opts) => {
271
271
  if (action !== void 0 && action !== "run") {
272
272
  console.error(`[${NAME}] unknown action "${action}" - the one action is run: ${NAME} perf run <board>`);
273
273
  process.exit(1);
274
274
  }
275
- const { perfCommand, perfRunCommand } = await import("./perf-Denssrko.mjs");
275
+ const { perfCommand, perfRunCommand } = await import("./perf-6MOTHxay.mjs");
276
276
  const typed = (v) => typeof v === "number" ? process.argv.find((t) => !t.startsWith("-") && Number(t) === v) ?? String(v) : v === void 0 ? void 0 : String(v);
277
277
  if (action !== "run") return perfCommand(resolve$1(opts.root), {
278
278
  ...opts,
@@ -12,8 +12,8 @@ import { i as record, t as has } from "./ledger-D54iROST.mjs";
12
12
  import { C as refusedAsk, S as parseMembers, T as sharedWhy, _ as wordsUntil, a as checkRecord, b as packetPath, c as firstPoint, d as packetPictures, f as picturePath, g as wordsSince, h as storeCapture, m as requestWords, n as captureFrames, o as continues, p as readCapture, r as captureWords, t as CAPTURE_ID, u as madeOf, v as buildPacket, w as sanitize, x as parseAgentText, y as goalText } from "./capture-DEtM4qm5.mjs";
13
13
  import { a as recordFile, c as storeWrapup, i as readWrapup, n as buildWrapup, o as recordPathProblem, r as moreOf, t as SESSION_ID } from "./session-VDJfXEEm.mjs";
14
14
  import { act, addCapture, addWrapup, answeredSince, beginStep, captureComment, captureIntact, conflictStep, createQueue, ctxFor, endSession, endStep, fail, failCard, form, joinAlone, looksGood, moreWrapup, n as releaseLock, ownerOnly, payloadKey, pending, prune, redelivering, requeue, runsAlone, sameComment, settle, startSession, stillOwned, t as acquireLock, textOf, undelivered, wrapupIntact, wrapupOf } from "./queue-DeSQm24g.mjs";
15
- import { t as logJam } from "./perf-jam-CLkERSHo.mjs";
16
- import { i as jamLive } from "./plugin-DqoZB-D6.mjs";
15
+ import { d as logJam } from "./perf-BCxAo0IS.mjs";
16
+ import { i as jamLive } from "./plugin-CXRoMA8g.mjs";
17
17
  import { t as PROTECTED_GLOBS } from "./permit-DDa6wqOs.mjs";
18
18
  import { jamReservations, restoreHolds } from "./reserve-BURNQ2Y3.mjs";
19
19
  import { closeSync, existsSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, realpathSync, rmSync, statSync, watch, writeFileSync } from "node:fs";
@@ -1101,7 +1101,9 @@ const STALL_MS = 9e5;
1101
1101
  * MARVER_SLOT_BASE set (test-build.ts; as perf-run.ts's MV_PERF_RUN_T): a real stall in seconds, so a browser case
1102
1102
  * drives one through this daemon and the page's own actions. */
1103
1103
  const stallMs = () => {
1104
- return STALL_MS;
1104
+ if (!process.env.MARVER_SLOT_BASE) return STALL_MS;
1105
+ const v = Number(process.env.MV_JAM_STALL_MS);
1106
+ return Number.isFinite(v) && v > 0 ? v : STALL_MS;
1105
1107
  };
1106
1108
  /** How long a request's answer is kept for the same request sent again. */
1107
1109
  const RECEIPT_MS = 6e5;
@@ -2,7 +2,7 @@ import { i as PKG, r as NAME } from "./cli.mjs";
2
2
  import { _ as runIdentity, a as notePrefer, c as ranDevBefore, f as startedWhere, i as marverHome, o as originOf, p as stopPrefer, s as place, t as forgetDevTraces } from "./slots-Dn4Onb0V.mjs";
3
3
  import { t as detectHost } from "./detect-C0wpaePX.mjs";
4
4
  import { n as loadConfig } from "./config-BezZTiov.mjs";
5
- import { n as tailwind3Css, o as liveChanged, r as tailwind4Plugin, s as installedVersion, t as marverPlugin } from "./plugin-DqoZB-D6.mjs";
5
+ import { n as tailwind3Css, o as liveChanged, r as tailwind4Plugin, s as installedVersion, t as marverPlugin } from "./plugin-CXRoMA8g.mjs";
6
6
  import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, statSync, watch, writeSync } from "node:fs";
7
7
  import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
8
8
  import { fileURLToPath } from "node:url";
@@ -1019,7 +1019,7 @@ async function boot(root, opts, instance, t, ctx) {
1019
1019
  if (fromConfig !== void 0 && !placed.fellBackFrom) console.log(` this canvas keeps its own port (${fromConfig} in design/config.ts); remove it to use the slots\n`);
1020
1020
  setTimeout(async () => {
1021
1021
  try {
1022
- await (await import("./shot-T04Ixrvq.mjs").then((n) => n.u)).sweepGhosts((m) => console.log(` ${m}`));
1022
+ await (await import("./shot-CRRGgxru.mjs").then((n) => n.u)).sweepGhosts((m) => console.log(` ${m}`));
1023
1023
  } catch {}
1024
1024
  }, 0);
1025
1025
  try {
@@ -1101,8 +1101,8 @@ async function boot(root, opts, instance, t, ctx) {
1101
1101
  } catch {}
1102
1102
  }
1103
1103
  if (config.jam) {
1104
- const { startJam } = await import("./daemon-Sc_z8gT6.mjs");
1105
- const { checkAnchor } = await import("./anchor-check-DhlpKl2K.mjs");
1104
+ const { startJam } = await import("./daemon-B0Wi1OQ3.mjs");
1105
+ const { checkAnchor } = await import("./anchor-check-c52IDkiQ.mjs");
1106
1106
  const jam = startJam(root, config.jam, (m) => console.log(m), (board) => {
1107
1107
  server.ws.send("sh:jam-comment", { board });
1108
1108
  liveChanged();
@@ -1119,13 +1119,13 @@ async function boot(root, opts, instance, t, ctx) {
1119
1119
  return () => {
1120
1120
  due ??= setTimeout(async () => {
1121
1121
  due = null;
1122
- const { jamLive } = await import("./plugin-DqoZB-D6.mjs").then((n) => n.a);
1122
+ const { jamLive } = await import("./plugin-CXRoMA8g.mjs").then((n) => n.a);
1123
1123
  server.ws.send("sh:jam-queue", jamLive.view?.() ?? { cards: [] });
1124
1124
  liveChanged();
1125
1125
  }, 60);
1126
1126
  };
1127
1127
  })(), async (frameId, theme, entry, size) => {
1128
- const { shootFrame } = await import("./shot-T04Ixrvq.mjs").then((n) => n.u);
1128
+ const { shootFrame } = await import("./shot-CRRGgxru.mjs").then((n) => n.u);
1129
1129
  const r = await shootFrame({
1130
1130
  root,
1131
1131
  viewports: config.viewports,
@@ -1146,7 +1146,7 @@ async function boot(root, opts, instance, t, ctx) {
1146
1146
  t.defer(() => jam.stop());
1147
1147
  if (config.jam.session !== false) try {
1148
1148
  const { ensureConnectors, connectorLine } = await import("./connectors-DekQvKt9.mjs");
1149
- const { jamLive } = await import("./plugin-DqoZB-D6.mjs").then((n) => n.a);
1149
+ const { jamLive } = await import("./plugin-CXRoMA8g.mjs").then((n) => n.a);
1150
1150
  const results = ensureConnectors(root);
1151
1151
  jamLive.connectors = results;
1152
1152
  const line = connectorLine(results);
@@ -1156,7 +1156,7 @@ async function boot(root, opts, instance, t, ctx) {
1156
1156
  }
1157
1157
  const { createSpeech, speechLive } = await import("./audio-DX4POHAj.mjs");
1158
1158
  const { appendTalk } = await import("./session-VDJfXEEm.mjs").then((n) => n.s);
1159
- const { logJam } = await import("./perf-jam-CLkERSHo.mjs").then((n) => n.n);
1159
+ const { logJam } = await import("./perf-BCxAo0IS.mjs").then((n) => n.f);
1160
1160
  const speech = createSpeech({
1161
1161
  onTalk: (t) => appendTalk(root, t.session, t.words),
1162
1162
  onTiming: (t) => logJam(root, {