@marver-design/marver 0.27.0 → 0.27.2
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.
- package/CHANGELOG.md +94 -0
- package/README.md +5 -2
- package/dist/{anchor-check-ChdDqL5z.mjs → anchor-check-gkxkPAIv.mjs} +1 -1
- package/dist/{board-tree-DRioF94d.mjs → board-tree-BXR8dw4b.mjs} +3 -1
- package/dist/{boards-CGg6piKF.mjs → boards-BHKP5yhI.mjs} +1 -1
- package/dist/{boards-DlTcpF47.mjs → boards-BqUqKNW8.mjs} +4 -4
- package/dist/{build-DZnFysGU.mjs → build-VgNg4rr8.mjs} +7 -22
- package/dist/cli.mjs +32 -18
- package/dist/{collab-Dxg2trOK.mjs → collab-BEAcXrBb.mjs} +1 -1
- package/dist/{comments-DxOkCSNE.mjs → comments-YEU1Zhv9.mjs} +4 -4
- package/dist/{context-HQ4Giw58.mjs → context-Ccjrhr1J.mjs} +3 -3
- package/dist/{daemon-BSA0lV8d.mjs → daemon-Dc9AH0M3.mjs} +4 -4
- package/dist/{dev-eQJhWsqg.mjs → dev-ri6nAlRp.mjs} +11 -11
- package/dist/{init-COD0x48i.mjs → init-W0nxR1OY.mjs} +3 -3
- package/dist/{link-DDXZVGtv.mjs → link-CdTgn94Y.mjs} +4 -4
- package/dist/{ls-D7O1G505.mjs → ls-BZ5TAtd5.mjs} +1 -1
- package/dist/{manifest-Nl3KSVOk.mjs → manifest-aFyDmL8C.mjs} +2 -2
- package/dist/{marks-CWM3WJjc.mjs → marks-BF9pNEgH.mjs} +2 -2
- package/dist/{marks-CKgzucHZ.mjs → marks-CnCCfAbD.mjs} +3 -3
- package/dist/{marver-id-gate-BjF6v4bT.mjs → marver-id-gate-D-R0hSt_.mjs} +1 -1
- package/dist/perf-DkAUFT6W.mjs +1319 -0
- package/dist/perf-jam-BaH3Lg0m.mjs +635 -0
- package/dist/{plugin-C-E7omsh.mjs → plugin-B8UghYuF.mjs} +2592 -112
- package/dist/{poster-Bx83ZYVK.mjs → poster-BNgafWMK.mjs} +1 -1
- package/dist/{profile-Bh5Y5zpW.mjs → profile-jIS6BcAs.mjs} +1 -1
- package/dist/{publish-bakes-aljgm45S.mjs → publish-bakes-38Nja78p.mjs} +3 -3
- package/dist/{recover-t9Pno3u9.mjs → recover-B8AiI29B.mjs} +2 -2
- package/dist/{serve-C8rVheYk.mjs → serve-Dp3nHstu.mjs} +3 -3
- package/dist/{share-W5H3BNvP.mjs → share-Ce4tP7ji.mjs} +1 -1
- package/dist/{shot-DoHLl6ig.mjs → shot-CMQgMVZm.mjs} +1 -1
- package/dist/{shot-LFhC-WYD.mjs → shot-Ch24tiMO.mjs} +30 -5
- package/dist/{slots-DCDo3N0x.mjs → slots-CFNnegCc.mjs} +8 -1
- package/dist/{sync-BQVlHZpx.mjs → sync-CQdGARJ9.mjs} +1 -1
- package/dist/{work-BroFwnup.mjs → work-Bxz-ObF3.mjs} +3 -3
- package/dist/{work-Bp1p39kq.mjs → work-CNhFF9pU.mjs} +1 -1
- package/docs/jam-session.md +2 -1
- package/docs/performance.md +197 -35
- package/package.json +1 -1
- package/src/client/content/video.tsx +10 -2
- package/src/client/shell/App.tsx +10 -3
- package/src/client/shell/Comments.tsx +5 -3
- package/src/client/shell/ContextMenu.tsx +5 -3
- package/src/client/shell/LockedApp.tsx +3 -0
- package/src/client/shell/Play.tsx +4 -2
- package/src/client/shell/Tip.tsx +3 -1
- package/src/client/shell/api.ts +47 -20
- package/src/client/shell/app-bridge.ts +254 -0
- package/src/client/shell/app-perf.ts +92 -0
- package/src/client/shell/canvas/Canvas.tsx +115 -22
- package/src/client/shell/canvas/FrameNode.tsx +10 -6
- package/src/client/shell/canvas/admission.ts +23 -8
- package/src/client/shell/canvas/ctl.ts +6 -0
- package/src/client/shell/canvas/sleep.ts +57 -17
- package/src/client/shell/canvas/updates.ts +2 -1
- package/src/client/shell/inset.ts +44 -0
- package/src/client/shell/jam-capture.ts +19 -14
- package/src/client/shell/jam-keys.ts +8 -3
- package/src/client/shell/jam-panel.tsx +6 -3
- package/src/client/shell/jam-voice.ts +48 -10
- package/src/client/shell/main.tsx +14 -1
- package/src/client/shell/marks-ui.tsx +5 -3
- package/src/client/shell/marver-app.ts +21 -0
- package/src/client/shell/perf-run-probe.ts +34 -0
- package/src/client/shell/perf-run.ts +70 -0
- package/src/client/shell/perf.ts +11 -0
- package/src/client/shell/recorder.ts +45 -3
- package/src/client/shell/store.ts +52 -24
- package/src/client/shell/styles.css +47 -15
- package/src/client/shell/unsaved.ts +81 -0
- package/src/client/shell/whiteout-probes.ts +141 -0
- package/src/shared/app-api.ts +205 -0
- package/src/shared/app-perf.ts +308 -0
- package/src/shared/logo-sniff.ts +86 -0
- package/src/shared/machine.ts +132 -0
- package/src/shared/perf-run.ts +177 -0
- package/templates/AGENTS-embedded.md +3 -0
- package/templates/AGENTS-studio.md +3 -0
- package/templates/instructions/boards.md +3 -1
- package/dist/bake-DM_uWgAA.mjs +0 -786
- package/dist/perf-BWzQwZqj.mjs +0 -369
- package/dist/perf-BoDSkbEb.mjs +0 -429
- package/dist/perf-jam-D55U3FZK.mjs +0 -242
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,100 @@
|
|
|
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.27.2 - 2026-10-24
|
|
6
|
+
|
|
7
|
+
0.27.1 was never published: its changes ship here, with 0.27.2's.
|
|
8
|
+
|
|
9
|
+
### Highlights
|
|
10
|
+
|
|
11
|
+
- **Leaving a canvas that holds unsaved work asks first, in every browser.** Chrome asked only while a Jam capture was
|
|
12
|
+
being recorded, or on a stopped tab with board edits. Now a reload or a close asks whenever the page holds anything
|
|
13
|
+
the canvas does not have yet: a capture recording, finishing or not taken by the canvas yet, a board edit not saved
|
|
14
|
+
yet (a save on its way or one that failed), frame heights not written yet, or words typed and not sent (a comment, a
|
|
15
|
+
Jam edit or note). A drag is not work until it drops. The page's own reload when its canvas comes back still goes
|
|
16
|
+
without asking: it saves first. Chrome asks only on a page you have clicked or typed in since it loaded. A published
|
|
17
|
+
canvas is unchanged.
|
|
18
|
+
- **A canvas opens where you left it.** A board you reload opens on the view you had, kept per project and board,
|
|
19
|
+
unless the link names a selection: then it fits that, as before. The view is kept a second after it settles, and at
|
|
20
|
+
once when the tab is hidden or closed; a tab hidden while the view is still flying (a fit, a zoom) keeps where it was
|
|
21
|
+
going. A published canvas still opens on the whole board.
|
|
22
|
+
- **A board's first frame starts about 0.3 s sooner.** It waited 0.35 s after the board mounted, for the camera's first
|
|
23
|
+
fit to land. It now starts as the fit sets off, chosen on where the fit will land, so it is the same frame. On a real
|
|
24
|
+
project's boards the frames were ready 0.1-0.4 s sooner (a 30-frame board: 1.3 s to 1.0 s), and nothing moved more
|
|
25
|
+
([Performance](docs/performance.md#making-a-board-faster) has the numbers).
|
|
26
|
+
- **`npx marver perf run <board>`: a board measured the same way every time.** With `marver dev` running, the canvas's
|
|
27
|
+
own headless Chrome loads the board once to warm up, then measures a load, a fit and three gestures (zoom in, zoom
|
|
28
|
+
out, a pan that turns back), and writes one line: load to settled, frame times (p50, p95, frames over 33 ms), the
|
|
29
|
+
heap's peak, and whether the run is valid, with the first reason it is not. A run is read-only: its page sends no
|
|
30
|
+
write but its own records and the frames' sleep textures, and the dev server refuses any other. `--slow` throttles
|
|
31
|
+
the CPU 4x, `--repeat <n>` runs it up to 5 times. `npx marver perf --runs` compares a run only with runs made the
|
|
32
|
+
same way (board, Chrome, machine, power, `--slow`): the latest against the last with the same inputs and the last
|
|
33
|
+
with others; `--against <run>` against one you name. Your agent is told to use it before and after a change
|
|
34
|
+
([Headless runs](docs/performance.md#headless-runs)).
|
|
35
|
+
- **The Mac app needs this version.** With it, the app asks before a close, a quit or a reload loses unsaved work,
|
|
36
|
+
follows the canvas's theme, shows its View and Jam items in the menu bar and wears its logo on the tab; app 0.2 also
|
|
37
|
+
runs the canvas full height under its transparent tabs. A 0.27.0 canvas opens in the app with a lesser
|
|
38
|
+
guard and none of the rest. In a browser, none of the app's side runs.
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- **Reduce Transparency and Increase Contrast make the glass opaque.** With either set in macOS, the sidebar, the
|
|
43
|
+
toolbar and every glass surface take a solid fill and a plain border; with Increase Contrast the dimmer text takes the
|
|
44
|
+
full ink. Chrome reads the same settings.
|
|
45
|
+
- **`npx marver perf --loads` names each board as the sidebar does, and its two clocks apart.** A load is headed by its
|
|
46
|
+
board's title ("v1 lo-fi - Mac and iPhone", not "Journey"; `--json` keeps the board's name). A settled load says
|
|
47
|
+
`still from` its last move, where it said `quiet 0.0 s · last move 1.3 s`, which read as a contradiction. `slowest`
|
|
48
|
+
is now `slowest to settle`: a frame's time to its last height, which can come after `all ready`, each frame's first
|
|
49
|
+
render. [Performance](docs/performance.md) says what settled means.
|
|
50
|
+
- **The logo ladder reads `public/favicon.png` and `public/favicon.ico` too, and a logo must be one.** After
|
|
51
|
+
`share.logo`, `design/logo.svg|png`, `public/logo.svg|png` and `public/favicon.svg`, `marver build` now tries
|
|
52
|
+
`public/favicon.png` and `public/favicon.ico`. A candidate counts only as a regular file inside the repo (never a
|
|
53
|
+
symlink, even one inside it) of at most 256 KB whose bytes are an SVG, a PNG or an ICO; its type comes from its
|
|
54
|
+
bytes, so a PNG named `.svg` is published as `logo.png`. A `share.logo` that fails is ignored with one line saying
|
|
55
|
+
why; 0.27.0 followed a symlink and copied `share.logo` from anywhere. A gated `marver serve` shows a `logo.ico` before
|
|
56
|
+
sign-in, as it does a `.svg` or `.png`.
|
|
57
|
+
- **`marver ls` names a canvas as the canvas does**: `share.name` when you set one ("TMS broker", not "tms-broker"),
|
|
58
|
+
else the folder name.
|
|
59
|
+
|
|
60
|
+
### Added
|
|
61
|
+
|
|
62
|
+
- **The Mac app's bridge.** In the app, a canvas page tells the app what it holds, so closing its tab, quitting or
|
|
63
|
+
reloading asks first or waits; its theme, which the app's tabs follow; and its View and Jam menu items with their
|
|
64
|
+
keys. When its tab is shown again it reads its marks, its agents' work, the Jam queue and its board again; when the
|
|
65
|
+
app stops trusting it, it lets go of the microphone at once, one still opening too. Each canvas's file in
|
|
66
|
+
`~/.marver/running/` lists `bridge` and `inset` among its features.
|
|
67
|
+
- **Under the Mac app's tabs (app 0.2).** When the app places a canvas full height under its transparent strip,
|
|
68
|
+
everything you read or click stays below the strip: the sidebar, the toolbar, the Jam panel and sheet, play's pills
|
|
69
|
+
and the stopped banner sit 44 px lower; the selection bar, tooltips and menus never go above it; a fit, a frame's
|
|
70
|
+
focus and play's stage leave its room. The canvas's own ground and dots run under the strip and fade out just below
|
|
71
|
+
it, and a frame under it counts as out of view (not marked seen, not named to Jam). Everywhere else (Chrome, a
|
|
72
|
+
published canvas, `marver shot`, app 0.1) nothing moves.
|
|
73
|
+
- **`npx marver perf --crashes`, `--flashes` and `--machine` read the Mac app's records** (app 0.2), joined to this
|
|
74
|
+
repo's board loads: each canvas crash with its board, whether its load had settled and the last gesture before it;
|
|
75
|
+
each flash you marked with ⌃⌥F, with the gesture it fell in and the GPU process's events around it, the white-out
|
|
76
|
+
candidates apart; the machine profiles by host. In the app the canvas tells the recorder its gestures, so its
|
|
77
|
+
records land on the right board load. `--days <n>` (14) for these and `--runs` ([The Mac app's
|
|
78
|
+
half](docs/performance.md#the-mac-apps-half)).
|
|
79
|
+
- **`GET /__mv/logo`** on `marver dev`: the canvas's logo, from the same ladder and checks as `marver build`, signed
|
|
80
|
+
when the app asks, so the app shows a logo only from the canvas it verified.
|
|
81
|
+
|
|
82
|
+
### Fixed
|
|
83
|
+
|
|
84
|
+
- **"Back - your edits were saved" every time.** A tab that held an edit when its canvas stopped saved it when the
|
|
85
|
+
canvas came back and reloaded, but said so only when the save it made on the way back carried the edit. Often the
|
|
86
|
+
ordinary autosave had already saved it (a frame still in your hand when the canvas answered, then dropped) and the
|
|
87
|
+
reloaded page said nothing, though the edit was on disk. Now every board save between the stop and the reload
|
|
88
|
+
counts, and a lost one too: the reloaded page then says the file won, or that the board is gone.
|
|
89
|
+
- **A tab whose canvas came back reloads only once its heights are saved.** A heights write that failed on the way back
|
|
90
|
+
was dropped by the reload. Now the tab reloads once every height has reached `_sizes.json`; until then it works as
|
|
91
|
+
live and sends them again.
|
|
92
|
+
|
|
93
|
+
### Upgrading
|
|
94
|
+
|
|
95
|
+
`npm install @marver-design/marver@latest`, then `npx marver init` to refresh the agent instructions (they compare a
|
|
96
|
+
board before and after a change with `npx marver perf run`, and say what counts as a logo). Restart each canvas: the
|
|
97
|
+
Mac app sees the bridge only on a canvas started from this version.
|
|
98
|
+
|
|
5
99
|
## 0.27.0 - 2026-10-23
|
|
6
100
|
|
|
7
101
|
### Highlights
|
package/README.md
CHANGED
|
@@ -116,7 +116,8 @@ The same glow, driven from the terminal. When your agent takes a request, it cre
|
|
|
116
116
|
| `npx marver work …` | Working glow from the terminal: `start <scene/frame …>` · `done … \| --all` (prints the canvas link) · `list` |
|
|
117
117
|
| `npx marver link <scene/frame \| scene ...>` | The canvas link that lands on those frames - their board, selected and in view (needs `dev` running) |
|
|
118
118
|
| `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 |
|
|
119
|
-
| `npx marver perf [--loads \| --jam] [--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 ([Performance](docs/performance.md)) |
|
|
119
|
+
| `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)) |
|
|
120
|
+
| `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)) |
|
|
120
121
|
| `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 |
|
|
121
122
|
| `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/` |
|
|
122
123
|
| `npx marver folders add <module ...>` | Add a typed folder: `start`, `features`, `surfaces`, `projects`, `feedback`, `context`, `decks`, `archive` |
|
|
@@ -124,6 +125,8 @@ The same glow, driven from the terminal. When your agent takes a request, it cre
|
|
|
124
125
|
|
|
125
126
|
**Where the canvas runs.** Each canvas on your Mac takes one of twenty fixed ports, localhost:4805 to localhost:4824 - usually the same one each time - and prints its link; `npx marver ls` lists them all. `--port <n>`, or a `port` in `design/config.ts` (other than the old 5199), gives a canvas a port of its own instead. Because an address is reused by whichever canvas starts there next, a tab left open after its canvas stopped says so, and how to bring it back, and keeps your unsaved edits until its own canvas is back, and a local canvas runs no service workers.
|
|
126
127
|
|
|
128
|
+
**The Mac app.** In Marver's Mac app a canvas tells the app what it holds, so closing its tab, quitting or reloading asks before losing unsaved work, and the app follows its theme and shows its View and Jam items in the menu bar. In a browser none of this runs; browsers ask before a reload or a close loses unsaved work too.
|
|
129
|
+
|
|
127
130
|
## Shortcuts
|
|
128
131
|
|
|
129
132
|
**Canvas** - two-finger scroll pans · pinch or ctrl/cmd+scroll zooms · space+drag pans from anywhere · click empty canvas deselects / exits interact.
|
|
@@ -147,7 +150,7 @@ The same glow, driven from the terminal. When your agent takes a request, it cre
|
|
|
147
150
|
|
|
148
151
|
- **Next.js**: supported with one caveat - frames render in Vite, outside Next. `next/font` CSS variables are undefined inside frames (give font tokens a fallback chain), `next/image`/`next/link` should be plain `img`/`data-goto` in frames, and Server Components cannot run there. `init` writes the specifics into `design/AGENTS.md` when it detects Next.
|
|
149
152
|
- **Upgrade**: `npm i -D @marver-design/marver@latest && npx marver init`. The canvas tells you when a new version is out (one anonymous registry check per day, cached in `design/.local/`; `MARVER_NO_UPDATE_CHECK=1` disables), and warns when your `design/instructions/` predate the installed package. Re-running init refreshes the managed files (AGENTS.md, `design/instructions/`) - your edits to them are detected and preserved; when both you and a release changed a file, the fresh version is staged at `design/.local/latest/` for you (or your agent) to merge. Everything else in `design/` is yours and never touched.
|
|
150
|
-
- **Name your canvas**: `share: { name: "Your App" }` in `design/config.ts` titles the gate, labels the brand pill, and tags every powered-by link. Unset, the gate falls back to your `package.json` name and the canvas shell to the directory name - `app` inside most containers.
|
|
153
|
+
- **Name your canvas**: `share: { name: "Your App" }` in `design/config.ts` titles the gate, labels the brand pill, names the canvas in `marver ls`, and tags every powered-by link. Unset, the gate falls back to your `package.json` name and the canvas shell to the directory name - `app` inside most containers. Its logo is the first of `share.logo`, `design/logo.svg|png`, `public/logo.svg|png` and `public/favicon.svg|png|ico` that is a real file in the repo (never a symlink) of at most 256 KB, an SVG, PNG or ICO by its bytes; the gate page and the Mac app's tab wear it.
|
|
151
154
|
- **Uninstall**: delete `design/`, remove the dependency. (If `init` patched your tsconfig `exclude`, revert that one line.)
|
|
152
155
|
|
|
153
156
|
## Status
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as frameUrl, d as withBrowser, n as MOUNTED, o as manifestFrame, s as planShot } from "./shot-Ch24tiMO.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
|
|
@@ -189,6 +189,8 @@ const readTitle = (v) => {
|
|
|
189
189
|
};
|
|
190
190
|
/** Title Case off a slug - the display when no title is set ("old-stuff" → "Old Stuff"). */
|
|
191
191
|
const humanize = (s) => s.replace(/-/g, " ").replace(/(^|\s)\S/g, (c) => c.toUpperCase());
|
|
192
|
+
/** What a board, folder or scene is called on screen: its title, else its humanized slug. */
|
|
193
|
+
const labelOf = (name, title) => title ?? humanize(name);
|
|
192
194
|
const rank = (o) => typeof o === "number" && Number.isFinite(o) ? o : Infinity;
|
|
193
195
|
/** A folder's title, description and type, present only when set. */
|
|
194
196
|
const folderExtras = (it) => ({
|
|
@@ -361,4 +363,4 @@ function folderMap(t) {
|
|
|
361
363
|
return out;
|
|
362
364
|
}
|
|
363
365
|
//#endregion
|
|
364
|
-
export {
|
|
366
|
+
export { resolveType as A, KIND_FOLDERS as C, readReason as D, readCapability as E, readStatusWord as O, HAS_STATUS as S, knownType as T, validateWire as _, buildTree as a, DECISIONS as b, folderMap as c, isBoardFile as d, isBoardName as f, readTitle as g, readDescription as h, archiveLast as i, settableStatuses as j, readType as k, framesOn as l, parseFolders as m, BOARD_NAME as n, flatten as o, labelOf as p, FOLDERS_FILE as r, folderEntries as s, ALL_SCENES as t, humanize as u, wireKids as v, PROPOSED_PUBLISH as w, FOLDER_MODULES as x, BOARD_TYPES as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as resolveType, D as readReason, E as readCapability, O as readStatusWord, a as buildTree, c as folderMap, d as isBoardFile, f as isBoardName, g as readTitle, h as readDescription, i as archiveLast, k as readType, l as framesOn, m as parseFolders, o as flatten, r as FOLDERS_FILE } from "./board-tree-BXR8dw4b.mjs";
|
|
2
2
|
import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { join, sep } from "node:path";
|
|
4
4
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import { a as checkRealDirs, d as readMembership, f as readRegistry, i as checkBoardsDir, n as addFolders, r as boardFields, s as listBoardFiles, u as pinFrames } from "./boards-
|
|
3
|
-
import {
|
|
4
|
-
import { _ as STATUS_LABEL, d as annotateBoards, h as PHASE_LABEL, s as scanFrames } from "./manifest-
|
|
5
|
-
import { resolveTargets } from "./link-
|
|
2
|
+
import { a as checkRealDirs, d as readMembership, f as readRegistry, i as checkBoardsDir, n as addFolders, r as boardFields, s as listBoardFiles, u as pinFrames } from "./boards-BHKP5yhI.mjs";
|
|
3
|
+
import { A as resolveType, E as readCapability, T as knownType, a as buildTree, c as folderMap, f as isBoardName, o as flatten, u as humanize, x as FOLDER_MODULES, y as BOARD_TYPES } from "./board-tree-BXR8dw4b.mjs";
|
|
4
|
+
import { _ as STATUS_LABEL, d as annotateBoards, h as PHASE_LABEL, s as scanFrames } from "./manifest-aFyDmL8C.mjs";
|
|
5
|
+
import { resolveTargets } from "./link-CdTgn94Y.mjs";
|
|
6
6
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
|
8
8
|
//#region src/cli/boards.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as ROUTE, r as NAME } from "./cli.mjs";
|
|
2
|
-
import { f as readRegistry, i as checkBoardsDir, o as isRegularFile, r as boardFields, s as listBoardFiles } from "./boards-
|
|
3
|
-
import {
|
|
4
|
-
import { g as PUBLISHABLE, s as scanFrames, v as publishableStatus } from "./manifest-
|
|
2
|
+
import { f as readRegistry, i as checkBoardsDir, o as isRegularFile, r as boardFields, s as listBoardFiles } from "./boards-BHKP5yhI.mjs";
|
|
3
|
+
import { a as buildTree, f as isBoardName, l as framesOn, o as flatten, t as ALL_SCENES, w as PROPOSED_PUBLISH } from "./board-tree-BXR8dw4b.mjs";
|
|
4
|
+
import { g as PUBLISHABLE, s as scanFrames, v as publishableStatus } from "./manifest-aFyDmL8C.mjs";
|
|
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
|
-
import {
|
|
7
|
+
import { c as autoWidthOf, d as readSizes, f as loadConfig, i as publishLogo, l as keptSizes, n as tailwind3Css, r as tailwind4Plugin, t as marverPlugin, u as measuringFrames } from "./plugin-B8UghYuF.mjs";
|
|
8
8
|
import { cpSync, existsSync, mkdirSync, readFileSync, realpathSync, rmSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, join, sep } from "node:path";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
@@ -785,7 +785,7 @@ async function buildSite(root, boardsFlag, allBoardsFlag, embedSeeds, textures =
|
|
|
785
785
|
const realAssets = existsSync(assetsDir) ? realpathSync(assetsDir) : null;
|
|
786
786
|
for (const r of refs) {
|
|
787
787
|
if (!isLocalAssetRef(r) || !r.endsWith(".poster.png") || existsSync(join(assetsDir, r))) continue;
|
|
788
|
-
const { ensurePoster } = await import("./poster-
|
|
788
|
+
const { ensurePoster } = await import("./poster-BNgafWMK.mjs");
|
|
789
789
|
const g = await ensurePoster(assetsDir, r.slice(0, -11));
|
|
790
790
|
if (!g.ok) throw new Error(`design/assets/${r}: ${g.error}`);
|
|
791
791
|
console.log(` poster: rendered design/assets/${r} (${g.width}×${g.height})`);
|
|
@@ -833,22 +833,7 @@ async function buildSite(root, boardsFlag, allBoardsFlag, embedSeeds, textures =
|
|
|
833
833
|
name = JSON.parse(readFileSync(join(root, "package.json"), "utf8")).name ?? name;
|
|
834
834
|
} catch {}
|
|
835
835
|
if (config.share.name) name = config.share.name;
|
|
836
|
-
|
|
837
|
-
const logoLadder = [
|
|
838
|
-
...config.share.logo ? [config.share.logo] : [],
|
|
839
|
-
"design/logo.svg",
|
|
840
|
-
"design/logo.png",
|
|
841
|
-
"public/logo.svg",
|
|
842
|
-
"public/logo.png",
|
|
843
|
-
"public/favicon.svg"
|
|
844
|
-
];
|
|
845
|
-
for (const cand of logoLadder) {
|
|
846
|
-
if (!existsSync(join(root, cand))) continue;
|
|
847
|
-
const ext = cand.endsWith(".png") ? "png" : "svg";
|
|
848
|
-
cpSync(join(root, cand), join(outDir, ROUTE.slice(1), `logo.${ext}`));
|
|
849
|
-
logo = `${ROUTE}/logo.${ext}`;
|
|
850
|
-
break;
|
|
851
|
-
}
|
|
836
|
+
const logo = publishLogo(root, config.share.logo, outDir, (m) => console.warn(` ${m}`));
|
|
852
837
|
writeFileSync(join(outDir, "meta.json"), JSON.stringify({
|
|
853
838
|
name,
|
|
854
839
|
branding: config.share.branding,
|
|
@@ -862,7 +847,7 @@ async function buildSite(root, boardsFlag, allBoardsFlag, embedSeeds, textures =
|
|
|
862
847
|
}));
|
|
863
848
|
let textureLine = " textures: skipped (--no-textures)";
|
|
864
849
|
if (textures && bakeGen) {
|
|
865
|
-
const { bakePublished } = await import("./publish-bakes-
|
|
850
|
+
const { bakePublished } = await import("./publish-bakes-38Nja78p.mjs");
|
|
866
851
|
const pubFrameFile = new Map(pubFrames.map((f) => [f.id, f]));
|
|
867
852
|
const r = await bakePublished({
|
|
868
853
|
root,
|
package/dist/cli.mjs
CHANGED
|
@@ -82,7 +82,7 @@ cli.command("init", "Scaffold design/ in this repo").option("--mode <mode>", "st
|
|
|
82
82
|
console.error(`[${NAME}] --kind ${opts.kind}: use product or knowledge`);
|
|
83
83
|
process.exit(1);
|
|
84
84
|
}
|
|
85
|
-
const { init } = await import("./init-
|
|
85
|
+
const { init } = await import("./init-W0nxR1OY.mjs");
|
|
86
86
|
init(resolve$1(opts.root), {
|
|
87
87
|
mode: opts.mode === "embedded" ? "embedded" : "studio",
|
|
88
88
|
demo: opts.demo !== false,
|
|
@@ -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-
|
|
93
|
+
const { dev, DevStartError, DevLockError } = await import("./dev-ri6nAlRp.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-
|
|
105
|
+
if (opts.recover !== void 0 && opts.recover !== false) await (await import("./recover-B8AiI29B.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
|
|
@@ -115,10 +115,10 @@ for (const [name, desc] of [["dev", "Start the local canvas (everything on: hot
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
cli.command("ls", "The canvases running on this Mac: slot, link, name, version, state, uptime, folder (no repo needed)").option("--json", "Machine-readable output (never a canvas's key)").action(async (opts) => {
|
|
118
|
-
(await import("./ls-
|
|
118
|
+
(await import("./ls-BZ5TAtd5.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-
|
|
121
|
+
const { buildSite } = await import("./build-VgNg4rr8.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);
|
|
@@ -128,7 +128,7 @@ cli.command("build", "Static export → design/.dist (what ships comes from desi
|
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
130
|
cli.command("serve", "Serve design/.dist (set MARVER_PASSWORD to gate it)").option("--root <dir>", "Host repo root", { default: "." }).option("--port <port>", "Port (default $PORT or 4199)").action(async (opts) => {
|
|
131
|
-
const { serve } = await import("./serve-
|
|
131
|
+
const { serve } = await import("./serve-Dp3nHstu.mjs");
|
|
132
132
|
let port;
|
|
133
133
|
if (opts.port !== void 0) {
|
|
134
134
|
const n = Number(opts.port);
|
|
@@ -137,7 +137,7 @@ cli.command("serve", "Serve design/.dist (set MARVER_PASSWORD to gate it)").opti
|
|
|
137
137
|
serve(resolve$1(opts.root), port);
|
|
138
138
|
});
|
|
139
139
|
cli.command("comments <action> [value]", "Comment collaboration: connect <url> · sync · list · new <scene/frame> · reply <thread> · move <thread> · resolve <thread> · invite <email> · revoke <email>").option("--root <dir>", "Host repo root", { default: "." }).option("--token <token>", "connect: the canvas's MARVER_CLI_TOKEN (default $MARVER_CLI_TOKEN) - the identity-mode path").option("--invite <token>", "connect: claim this invite instead of signing in").option("--canvas-password <password>", "connect: the canvas gate password (default $MARVER_PASSWORD or prompt)").option("--email <email>", "connect: account email (skips the prompt)").option("--password <password>", "connect: account password (skips the prompt - mind your shell history)").option("--name <name>", "connect --invite: display name for the new account").option("--open", "list: only unresolved threads").option("--json", "list: machine-readable output").option("--board <board>", "list: scope to one board · new: the board to pin on (default: the one its link opens)").option("--body <text>", "new / reply: the text").option("--on <text>", "new / move: pin on the element showing these words").option("--at <selector>", "new / move: pin on the element this data-testid or CSS selector names (an element without words, like an icon)").option("--nth <n>", "new / move: which of several matching elements (1 = the first)").option("--viewport <name>", "new / move: check the frame at this viewport (default: its own)").option("--theme <name>", "new / move: check the frame in this theme (default: light)").option("--thread <id>", "new: add the note to this open thread instead of pinning a new one").option("--fyi", "new: the note asks nothing (default: it asks - it comes first for the human)").option("--ask", "reply: the reply asks the human something").option("--addressed-in <frame>", "resolve: the variant frame that answered the feedback").action(async (action, value, opts) => {
|
|
140
|
-
const { commentsCommand } = await import("./comments-
|
|
140
|
+
const { commentsCommand } = await import("./comments-YEU1Zhv9.mjs");
|
|
141
141
|
try {
|
|
142
142
|
await commentsCommand(resolve$1(opts.root), action, value, opts);
|
|
143
143
|
} catch (err) {
|
|
@@ -146,7 +146,7 @@ cli.command("comments <action> [value]", "Comment collaboration: connect <url>
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
cli.command("share <action> [value]", "Sharing roster (owner): add <who> · remove <who> · block/unblock <email> · general <mode> · list · requests · explain <who> · who").option("--root <dir>", "Host repo root", { default: "." }).option("--role <role>", "add / requests --approve: view (default) or comment").option("--expires <iso>", "add: expiry timestamp, e.g. 2026-12-31T00:00:00Z").option("--approve <email>", "requests: approve this pending request (canvas-wide in v1)").option("--decline <email>", "requests: decline this pending request (silent to the asker)").option("--json", "list: machine-readable output").action(async (action, value, opts) => {
|
|
149
|
-
const { shareCommand } = await import("./share-
|
|
149
|
+
const { shareCommand } = await import("./share-Ce4tP7ji.mjs");
|
|
150
150
|
try {
|
|
151
151
|
await shareCommand(resolve$1(opts.root), action, value, opts);
|
|
152
152
|
} catch (err) {
|
|
@@ -155,7 +155,7 @@ cli.command("share <action> [value]", "Sharing roster (owner): add <who> · remo
|
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
cli.command("work <action> [...frames]", "Working state on the canvas: start <scene/frame ...> · done <scene/frame ...> | --all · list").option("--root <dir>", "Host repo root", { default: "." }).option("--ttl <minutes>", "start: minutes before the glow self-expires (default 10, max 30)").option("--all", "done: clear every working frame").action(async (action, frames, opts) => {
|
|
158
|
-
const { workCommand } = await import("./work-
|
|
158
|
+
const { workCommand } = await import("./work-Bxz-ObF3.mjs");
|
|
159
159
|
try {
|
|
160
160
|
await workCommand(resolve$1(opts.root), action, frames ?? [], opts);
|
|
161
161
|
} catch (err) {
|
|
@@ -164,7 +164,7 @@ cli.command("work <action> [...frames]", "Working state on the canvas: start <sc
|
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
cli.command("link [...targets]", "The canvas link that lands on frames: link <scene/frame | scene ...> - their board, in canvas mode, selected and fitted").option("--root <dir>", "Host repo root", { default: "." }).option("--board <board>", "The board to open (default: the first board that shows them all, else one link per board)").action(async (targets, opts) => {
|
|
167
|
-
const { linkCommand } = await import("./link-
|
|
167
|
+
const { linkCommand } = await import("./link-CdTgn94Y.mjs");
|
|
168
168
|
try {
|
|
169
169
|
await linkCommand(resolve$1(opts.root), targets ?? [], opts);
|
|
170
170
|
} catch (err) {
|
|
@@ -173,7 +173,7 @@ cli.command("link [...targets]", "The canvas link that lands on frames: link <sc
|
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
cli.command("boards [action] [...args]", "The sidebar as files: every folder and board in reading order, with types and statuses, and the frames on no board · new <name>: a board in its type's starting layout · pin <board> <scene/frame ...>: put frames on a board").option("--root <dir>", "Host repo root", { default: "." }).option("--json", "The tree as JSON ({ tree, boards, landing, unplaced, registry })").option("--type <type>", "new: start | feature | surface | project | feedback | context | deck | archive (default: the folder's)").option("--folder <folder>", "new: the folder it sits in").option("--title <title>", "new: what humans see").option("--description <sentence>", "new: what agents read").option("--capability <slug>", "new: the capability it shows, when not its own name").action(async (action, args, opts) => {
|
|
176
|
-
const { boardsCommand, boardsNew, boardsPin } = await import("./boards-
|
|
176
|
+
const { boardsCommand, boardsNew, boardsPin } = await import("./boards-BqUqKNW8.mjs");
|
|
177
177
|
const [name, ...frames] = args ?? [];
|
|
178
178
|
try {
|
|
179
179
|
if (action === void 0) boardsCommand(resolve$1(opts.root), opts);
|
|
@@ -195,7 +195,7 @@ cli.command("boards [action] [...args]", "The sidebar as files: every folder and
|
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
cli.command("folders <action> [...modules]", "The shared sidebar's typed folders · add <start|features|surfaces|projects|feedback|context|decks|archive ...>").option("--root <dir>", "Host repo root", { default: "." }).action(async (action, modules, opts) => {
|
|
198
|
-
const { foldersAdd } = await import("./boards-
|
|
198
|
+
const { foldersAdd } = await import("./boards-BqUqKNW8.mjs");
|
|
199
199
|
try {
|
|
200
200
|
if (action !== "add") throw new Error(`unknown action "${action}" - \`folders add <module ...>\``);
|
|
201
201
|
const { added, existing } = foldersAdd(resolve$1(opts.root), modules);
|
|
@@ -207,7 +207,7 @@ cli.command("folders <action> [...modules]", "The shared sidebar's typed folders
|
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
cli.command("context <action>", "The project's context/ (spec 19) · init: create it · check: keep it true (exit 0 pass, 1 fail, 2 cannot determine) · index: regenerate the index's capability table").option("--root <dir>", "Host repo root", { default: "." }).option("--base <ref>", "check: the pull request's base - a change to a contracted capability's code must change its contract or say why (in ci, read from the event)").option("--head <ref>", "check: the pull request's head (default HEAD)").option("--body-file <file>", "check: the pull request's body, for `no-contract-change: <capability> - <why>`").option("--json", "check: the findings as JSON ({ exit, failures, unsure, notes })").option("--kind <kind>", "init: product (a shipped record) or knowledge (a delivered record)", { default: "product" }).action(async (action, opts) => {
|
|
210
|
-
const ctx = await import("./context-
|
|
210
|
+
const ctx = await import("./context-Ccjrhr1J.mjs");
|
|
211
211
|
const root = resolve$1(opts.root);
|
|
212
212
|
try {
|
|
213
213
|
if (action === "init") {
|
|
@@ -243,15 +243,29 @@ cli.command("context <action>", "The project's context/ (spec 19) · init: creat
|
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
cli.command("marks", "What the human has not reviewed: frames waiting on them (the ones that ask first), their answers nothing has acted on yet, and frames new since they looked").option("--root <dir>", "Host repo root", { default: "." }).option("--json", "Machine-readable output").option("--all", "Also list the answers from before 0.26 that may already be handled").action(async (opts) => {
|
|
246
|
-
const { marksCommand } = await import("./marks-
|
|
246
|
+
const { marksCommand } = await import("./marks-BF9pNEgH.mjs");
|
|
247
247
|
marksCommand(resolve$1(opts.root), opts);
|
|
248
248
|
});
|
|
249
|
-
cli.command("perf", "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").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: time to the visible frames ready
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
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) => {
|
|
250
|
+
if (action !== void 0 && action !== "run") {
|
|
251
|
+
console.error(`[${NAME}] unknown action "${action}" - the one action is run: ${NAME} perf run <board>`);
|
|
252
|
+
process.exit(1);
|
|
253
|
+
}
|
|
254
|
+
const { perfCommand, perfRunCommand } = await import("./perf-DkAUFT6W.mjs");
|
|
255
|
+
const typed = (v) => typeof v === "number" ? process.argv.find((t) => !t.startsWith("-") && Number(t) === v) ?? String(v) : v === void 0 ? void 0 : String(v);
|
|
256
|
+
if (action !== "run") return perfCommand(resolve$1(opts.root), {
|
|
257
|
+
...opts,
|
|
258
|
+
against: typed(opts.against)
|
|
259
|
+
});
|
|
260
|
+
try {
|
|
261
|
+
process.exit(await perfRunCommand(resolve$1(opts.root), typed(board), opts));
|
|
262
|
+
} catch (err) {
|
|
263
|
+
console.error(`[${NAME}] ${err.message}`);
|
|
264
|
+
process.exit(1);
|
|
265
|
+
}
|
|
252
266
|
});
|
|
253
267
|
cli.command("shot [...frames]", "Render frames headless and print the PNG paths (needs `dev` running): ids, --scene <name> or --all").option("--root <dir>", "Host repo root", { default: "." }).option("--scene <name>", "Every frame of one scene").option("--all", "Every frame of the canvas").option("--theme <name>", "Theme to render (default: light)").option("--scale <n>", "Device pixels per CSS px, 1-4 (default: 2; 4 for print-quality stills)").option("--json", "Print the results as JSON ({ results: [...] }) instead of paths").action(async (frames, opts) => {
|
|
254
|
-
const { shotCommand } = await import("./shot-
|
|
268
|
+
const { shotCommand } = await import("./shot-CMQgMVZm.mjs");
|
|
255
269
|
try {
|
|
256
270
|
await shotCommand(resolve$1(opts.root), frames, opts);
|
|
257
271
|
} catch (err) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ALL_SCENES } from "./board-tree-
|
|
1
|
+
import { t as ALL_SCENES } from "./board-tree-BXR8dw4b.mjs";
|
|
2
2
|
import { a as readLog, i as listBoards, r as legacyExposure, t as appendEvents } from "./comments-0BSbb04K.mjs";
|
|
3
3
|
import { A as reconfirmGrant, C as commentAllowed, D as operativeMode, E as loadShare, F as setBlocked, I as setGeneralMode, L as shareState, M as resolveAccess, N as resolveRequest, O as provisionVerdict, P as rosterEtag, S as ceilingsFromRights, T as loadRequests, _ as sessionUser, a as claimInvite, b as updateProfile, c as issueDeviceSession, d as opaqueId, f as ownerName, g as sessionIsOperator, h as revokeUser, j as removeGrant, k as putRequest, l as loadStore, m as publicUser, o as createInvite, s as inviteInfo, u as normEmail, v as signIn, w as entryAllowed, y as signOut, z as upsertGrant } from "./auth-Dix8wrXV.mjs";
|
|
4
4
|
import { canvasIdentity, deriveThreads, loadSeen, markSeen, signCanvasJws, unreadCount, verifyCanvasJws } from "./summary-Y8MY1Wuc.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import { i as readDevInfo } from "./work-
|
|
2
|
+
import { i as readDevInfo } from "./work-CNhFF9pU.mjs";
|
|
3
3
|
import { r as replay } from "./events-CLH4ijKP.mjs";
|
|
4
4
|
import { a as readLog, i as listBoards, t as appendEvents } from "./comments-0BSbb04K.mjs";
|
|
5
|
-
import { a as syncOnce, i as loadCollab, n as connectClaim, r as connectToken, t as connect } from "./sync-
|
|
6
|
-
import { n as localProfile } from "./profile-
|
|
5
|
+
import { a as syncOnce, i as loadCollab, n as connectClaim, r as connectToken, t as connect } from "./sync-CQdGARJ9.mjs";
|
|
6
|
+
import { n as localProfile } from "./profile-jIS6BcAs.mjs";
|
|
7
7
|
import { a as runningAgent } from "./agent-BsieQGTD.mjs";
|
|
8
8
|
import { n as readTarget, r as uncheckedAnchor } from "./anchor-5H1vnoLu.mjs";
|
|
9
9
|
import { join } from "node:path";
|
|
@@ -132,7 +132,7 @@ async function commentsCommand(root, action, value, opts) {
|
|
|
132
132
|
case "new": {
|
|
133
133
|
if (opts.thread !== void 0) return addToThread(root, String(opts.thread), value, opts);
|
|
134
134
|
if (!value || !opts.body) throw new Error("usage: comments new <scene/frame> --body \"...\" --on \"<words it shows>\" | --at \"<selector or data-testid>\" [--nth <n>] [--fyi] [--board <board>]");
|
|
135
|
-
const { resolveLink, devOrigin } = await import("./link-
|
|
135
|
+
const { resolveLink, devOrigin } = await import("./link-CdTgn94Y.mjs");
|
|
136
136
|
const r = resolveLink(root, [value], opts.board);
|
|
137
137
|
if (r.exact.length !== 1) throw new Error(`"${value}" is a folder of frames - pin a note on one frame: comments new <scene/frame>`);
|
|
138
138
|
if (!r.board) throw new Error(`a note needs a board to live on - ${r.hints.join("\n")}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import { a as checkRealDirs } from "./boards-
|
|
3
|
-
import {
|
|
4
|
-
import { A as levelsIn, C as LEVEL, D as globRe, E as frontMatter, F as tables, I as wordCount, M as looseTables, N as parseMap, O as hasGlob, P as proseLines, S as GENERATED, T as capabilityTable, b as CITED_FILE, j as lf, k as isRecordTable, s as scanFrames, w as availableLevels, x as EVIDENCE_COLUMN, y as CITATION } from "./manifest-
|
|
2
|
+
import { a as checkRealDirs } from "./boards-BHKP5yhI.mjs";
|
|
3
|
+
import { O as readStatusWord, f as isBoardName, l as framesOn } from "./board-tree-BXR8dw4b.mjs";
|
|
4
|
+
import { A as levelsIn, C as LEVEL, D as globRe, E as frontMatter, F as tables, I as wordCount, M as looseTables, N as parseMap, O as hasGlob, P as proseLines, S as GENERATED, T as capabilityTable, b as CITED_FILE, j as lf, k as isRecordTable, s as scanFrames, w as availableLevels, x as EVIDENCE_COLUMN, y as CITATION } from "./manifest-aFyDmL8C.mjs";
|
|
5
5
|
import { pkgDir } from "./managed-HwHVNI3h.mjs";
|
|
6
6
|
import { t as writeManaged } from "./managed-write-Bo-oPc-i.mjs";
|
|
7
7
|
import { t as imports } from "./imports-WBSnnHLb.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { l as toFrameId } from "./manifest-
|
|
2
|
-
import { a as workActivity } from "./work-
|
|
1
|
+
import { l as toFrameId } from "./manifest-aFyDmL8C.mjs";
|
|
2
|
+
import { a as workActivity } from "./work-CNhFF9pU.mjs";
|
|
3
3
|
import { r as replay } from "./events-CLH4ijKP.mjs";
|
|
4
4
|
import { a as readLog, t as appendEvents } from "./comments-0BSbb04K.mjs";
|
|
5
|
-
import { n as localProfile } from "./profile-
|
|
5
|
+
import { n as localProfile } from "./profile-jIS6BcAs.mjs";
|
|
6
6
|
import { r as uncheckedAnchor } from "./anchor-5H1vnoLu.mjs";
|
|
7
7
|
import { i as record, t as has } from "./ledger-D54iROST.mjs";
|
|
8
8
|
import { _ as packetPath, a as checkRecord, c as firstPoint, d as picturePath, f as readCapture, g as goalText, h as buildPacket, n as captureFrames, o as continues, p as storeCapture, r as captureWords, t as CAPTURE_ID, v as parseAgentText, x as sharedFile, y as parseMembers } from "./capture-vadKjuCo.mjs";
|
|
9
9
|
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-BAaJsK5c.mjs";
|
|
10
10
|
import { act, addCapture, addWrapup, answeredSince, beginStep, captureComment, captureIntact, conflictStep, createQueue, ctxFor, endSession, endStep, fail, form, looksGood, moreWrapup, n as releaseLock, payloadKey, pending, prune, redelivering, sameComment, settle, startSession, stillOwned, t as acquireLock, textOf, undelivered, wrapupIntact, wrapupOf } from "./queue-CAM_vNmX.mjs";
|
|
11
|
-
import { t as logJam } from "./perf-jam-
|
|
11
|
+
import { t as logJam } from "./perf-jam-BaH3Lg0m.mjs";
|
|
12
12
|
import { jamReservations, restoreHolds } from "./reserve-BURNQ2Y3.mjs";
|
|
13
13
|
import { jamLive } from "./live-Cgzsicwi.mjs";
|
|
14
14
|
import { lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, watch, writeFileSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as PKG, r as NAME } from "./cli.mjs";
|
|
2
|
-
import { a as notePrefer, c as ranDevBefore, f as startedWhere, i as marverHome, m as runIdentity, o as originOf, p as stopPrefer, s as place, t as forgetDevTraces } from "./slots-
|
|
2
|
+
import { a as notePrefer, c as ranDevBefore, f as startedWhere, i as marverHome, m as runIdentity, o as originOf, p as stopPrefer, s as place, t as forgetDevTraces } from "./slots-CFNnegCc.mjs";
|
|
3
3
|
import { t as detectHost } from "./detect-C0wpaePX.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { a as installedVersion, f as loadConfig, n as tailwind3Css, r as tailwind4Plugin, t as marverPlugin } from "./plugin-B8UghYuF.mjs";
|
|
5
5
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, statSync, watch, writeSync } from "node:fs";
|
|
6
6
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -708,7 +708,7 @@ async function boot(root, opts, instance, t, ctx) {
|
|
|
708
708
|
const explicitPort = opts.port ?? fromConfig;
|
|
709
709
|
const placed = await place({
|
|
710
710
|
root: run.root,
|
|
711
|
-
name: basename(run.root),
|
|
711
|
+
name: config.share.name || basename(run.root),
|
|
712
712
|
version: installedVersion() ?? "0.0.0",
|
|
713
713
|
id: run.id,
|
|
714
714
|
ws: run.ws,
|
|
@@ -986,7 +986,7 @@ async function boot(root, opts, instance, t, ctx) {
|
|
|
986
986
|
const port = claim.port;
|
|
987
987
|
const origin = originOf(server.httpServer?.address()) ?? `http://localhost:${port}`;
|
|
988
988
|
claim.ready(origin);
|
|
989
|
-
const { workActivity, writeDevInfo, removeDevInfo, boardsShowing, onBoardsChanged, nextActivitySeq } = await import("./work-
|
|
989
|
+
const { workActivity, writeDevInfo, removeDevInfo, boardsShowing, onBoardsChanged, nextActivitySeq } = await import("./work-CNhFF9pU.mjs").then((n) => n.o);
|
|
990
990
|
t.claim(() => removeDevInfo(root, instance));
|
|
991
991
|
writeDevInfo(root, port, instance);
|
|
992
992
|
await opts.at?.("published");
|
|
@@ -1018,7 +1018,7 @@ async function boot(root, opts, instance, t, ctx) {
|
|
|
1018
1018
|
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`);
|
|
1019
1019
|
setTimeout(async () => {
|
|
1020
1020
|
try {
|
|
1021
|
-
await (await import("./shot-
|
|
1021
|
+
await (await import("./shot-Ch24tiMO.mjs").then((n) => n.u)).sweepGhosts((m) => console.log(` ${m}`));
|
|
1022
1022
|
} catch {}
|
|
1023
1023
|
}, 0);
|
|
1024
1024
|
try {
|
|
@@ -1032,11 +1032,11 @@ async function boot(root, opts, instance, t, ctx) {
|
|
|
1032
1032
|
} catch {}
|
|
1033
1033
|
try {
|
|
1034
1034
|
if (!existsSync(join(root, "context"))) {
|
|
1035
|
-
const n = (await import("./manifest-
|
|
1035
|
+
const n = (await import("./manifest-aFyDmL8C.mjs").then((n) => n.i)).statusBoards(root).length;
|
|
1036
1036
|
if (n) console.log(` ${n} feature/project board${n === 1 ? "" : "s"}, no context/ - every status reads Backlog. To start it, tell your agent: "Set up our context."\n`);
|
|
1037
1037
|
}
|
|
1038
1038
|
} catch {}
|
|
1039
|
-
const { loadCollab, syncOnce } = await import("./sync-
|
|
1039
|
+
const { loadCollab, syncOnce } = await import("./sync-CQdGARJ9.mjs").then((n) => n.o);
|
|
1040
1040
|
if (loadCollab(root)) console.log(` comments: syncing with the published canvas\n`);
|
|
1041
1041
|
let syncing = false;
|
|
1042
1042
|
const tick = async () => {
|
|
@@ -1099,8 +1099,8 @@ async function boot(root, opts, instance, t, ctx) {
|
|
|
1099
1099
|
} catch {}
|
|
1100
1100
|
}
|
|
1101
1101
|
if (config.jam) {
|
|
1102
|
-
const { startJam } = await import("./daemon-
|
|
1103
|
-
const { checkAnchor } = await import("./anchor-check-
|
|
1102
|
+
const { startJam } = await import("./daemon-Dc9AH0M3.mjs");
|
|
1103
|
+
const { checkAnchor } = await import("./anchor-check-gkxkPAIv.mjs");
|
|
1104
1104
|
const jam = startJam(root, config.jam, (m) => console.log(m), (board) => server.ws.send("sh:jam-comment", { board }), (frameId, target, others, look) => checkAnchor({
|
|
1105
1105
|
root,
|
|
1106
1106
|
viewports: config.viewports,
|
|
@@ -1119,7 +1119,7 @@ async function boot(root, opts, instance, t, ctx) {
|
|
|
1119
1119
|
}, 60);
|
|
1120
1120
|
};
|
|
1121
1121
|
})(), async (frameId, theme, entry, size) => {
|
|
1122
|
-
const { shootFrame } = await import("./shot-
|
|
1122
|
+
const { shootFrame } = await import("./shot-Ch24tiMO.mjs").then((n) => n.u);
|
|
1123
1123
|
const r = await shootFrame({
|
|
1124
1124
|
root,
|
|
1125
1125
|
viewports: config.viewports,
|
|
@@ -1140,7 +1140,7 @@ async function boot(root, opts, instance, t, ctx) {
|
|
|
1140
1140
|
t.defer(() => jam.stop());
|
|
1141
1141
|
const { createSpeech, speechLive } = await import("./audio-Dw1lfMdb.mjs");
|
|
1142
1142
|
const { appendTalk } = await import("./session-BAaJsK5c.mjs").then((n) => n.s);
|
|
1143
|
-
const { logJam } = await import("./perf-jam-
|
|
1143
|
+
const { logJam } = await import("./perf-jam-BaH3Lg0m.mjs").then((n) => n.n);
|
|
1144
1144
|
const speech = createSpeech({
|
|
1145
1145
|
onTalk: (t) => appendTalk(root, t.session, t.words),
|
|
1146
1146
|
onTiming: (t) => logJam(root, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import { n as addFolders, s as listBoardFiles } from "./boards-
|
|
3
|
-
import {
|
|
4
|
-
import { s as scanFrames, u as writeManifest } from "./manifest-
|
|
2
|
+
import { n as addFolders, s as listBoardFiles } from "./boards-BHKP5yhI.mjs";
|
|
3
|
+
import { C as KIND_FOLDERS, x as FOLDER_MODULES } from "./board-tree-BXR8dw4b.mjs";
|
|
4
|
+
import { s as scanFrames, u as writeManifest } from "./manifest-aFyDmL8C.mjs";
|
|
5
5
|
import { r as detectAgent } from "./agent-BsieQGTD.mjs";
|
|
6
6
|
import { MANAGED_PREFIX, enumerateInstructionTemplates, hashBody, pkgDir } from "./managed-HwHVNI3h.mjs";
|
|
7
7
|
import { t as writeManaged } from "./managed-write-Bo-oPc-i.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import { d as readMembership, i as checkBoardsDir, p as unplacedHint, s as listBoardFiles } from "./boards-
|
|
3
|
-
import { f as isBoardName } from "./board-tree-
|
|
4
|
-
import { s as scanFrames } from "./manifest-
|
|
5
|
-
import { i as readDevInfo } from "./work-
|
|
2
|
+
import { d as readMembership, i as checkBoardsDir, p as unplacedHint, s as listBoardFiles } from "./boards-BHKP5yhI.mjs";
|
|
3
|
+
import { f as isBoardName } from "./board-tree-BXR8dw4b.mjs";
|
|
4
|
+
import { s as scanFrames } from "./manifest-aFyDmL8C.mjs";
|
|
5
|
+
import { i as readDevInfo } from "./work-CNhFF9pU.mjs";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
//#region src/cli/link.ts
|
|
8
8
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import { l as readRunning, n as formatRunning } from "./slots-
|
|
2
|
+
import { l as readRunning, n as formatRunning } from "./slots-CFNnegCc.mjs";
|
|
3
3
|
//#region src/cli/ls.ts
|
|
4
4
|
/**
|
|
5
5
|
* `marver ls` (spec 28 A1.5): the canvases running on this Mac, read from the registry
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
2
|
import { i as PKG, n as CONTENT_WIDTH } from "./cli.mjs";
|
|
3
|
-
import { a as checkRealDirs, f as readRegistry, h as hash, i as checkBoardsDir, r as boardFields, s as listBoardFiles } from "./boards-
|
|
4
|
-
import {
|
|
3
|
+
import { a as checkRealDirs, f as readRegistry, h as hash, i as checkBoardsDir, r as boardFields, s as listBoardFiles } from "./boards-BHKP5yhI.mjs";
|
|
4
|
+
import { A as resolveType, D as readReason, E as readCapability, O as readStatusWord, S as HAS_STATUS, a as buildTree, b as DECISIONS, f as isBoardName, g as readTitle, h as readDescription, o as flatten, s as folderEntries } from "./board-tree-BXR8dw4b.mjs";
|
|
5
5
|
import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { join, relative, sep } from "node:path";
|
|
7
7
|
import { randomBytes } from "node:crypto";
|