@marver-design/marver 0.23.0 → 0.24.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.
- package/CHANGELOG.md +56 -0
- package/README.md +3 -1
- package/dist/{bake-l6N12qgx.mjs → bake-ZhXq-X9f.mjs} +1 -1
- package/dist/{board-status-D_lHZZ09.mjs → board-status-BZSzc9Hp.mjs} +1 -1
- package/dist/{boards-DbVJlbd5.mjs → boards-BRLnoTC3.mjs} +14 -6
- package/dist/{boards-CahYhF5B.mjs → boards-Dv-Ipd8G.mjs} +13 -6
- package/dist/{build-CuRhHXcY.mjs → build-ckcinlWH.mjs} +15 -11
- package/dist/cli.mjs +10 -10
- package/dist/{comments-0d3e274b.mjs → comments-Dx1hCVOT.mjs} +1 -1
- package/dist/{config-g-J8NrPn.mjs → config-BUKprFAp.mjs} +1 -1
- package/dist/{context-fAtQLHt2.mjs → context-BncTXjLB.mjs} +3 -3
- package/dist/{daemon-DZ367fiM.mjs → daemon-CQv73-jM.mjs} +5 -4
- package/dist/{dev-R6zvwbqX.mjs → dev-gv4NS6Fk.mjs} +7 -7
- package/dist/{init-DAnBlt-V.mjs → init--3Moc4J7.mjs} +9 -4
- package/dist/{link-CcfAfKY-.mjs → link-vXjxMHTG.mjs} +3 -3
- package/dist/{manifest-BkjJ5OQk.mjs → manifest-cyG3kbhk.mjs} +9 -4
- package/dist/{plugin-C1avHL7g.mjs → plugin-Sa08E7wO.mjs} +232 -36
- package/dist/{poster-Bc4-3DlQ.mjs → poster-B2QPvKOq.mjs} +1 -1
- package/dist/{publish-bakes-DQWn14IY.mjs → publish-bakes-BJR3huhu.mjs} +2 -2
- package/dist/{shot-CVOlQHUr.mjs → shot-Cw96h5Kk.mjs} +2 -2
- package/dist/{shot-C1YR_Sqx.mjs → shot-Dh6fV1Lm.mjs} +1 -1
- package/dist/{work-CJ8OIpBD.mjs → work-CBUfsOOT.mjs} +2 -2
- package/dist/{work-CiUvBVa6.mjs → work-ayuL_9Kk.mjs} +1 -1
- package/docs/boards-and-folders.md +31 -1
- package/docs/live-jam.md +4 -1
- package/docs/sticky-notes.md +1 -1
- package/package.json +1 -1
- package/src/client/content/index.tsx +4 -0
- package/src/client/content/md.ts +3 -2
- package/src/client/shell/App.tsx +37 -12
- package/src/client/shell/BoardList.tsx +27 -7
- package/src/client/shell/Play.tsx +2 -0
- package/src/client/shell/canvas/Canvas.tsx +2 -0
- package/src/client/shell/canvas/FrameNode.tsx +6 -1
- package/src/client/shell/comments-store.ts +2 -0
- package/src/client/shell/marks-ui.tsx +119 -0
- package/src/client/shell/store.ts +110 -9
- package/src/client/shell/styles.css +23 -0
- package/src/client/shell/tidy.ts +34 -3
- package/src/shared/frames.ts +3 -0
- package/src/shared/marks.ts +65 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,62 @@
|
|
|
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.24.0 - 2026-10-14
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **The sidebar shows where to look.** A frame that changed since you looked turns blue - icon,
|
|
10
|
+
title and a dot - in the sidebar and on its title above the card; one where Marver asked you
|
|
11
|
+
something turns orange, with a bubble holding how many questions are open, hollow once you have
|
|
12
|
+
answered, gone when the thread is resolved. Every row keeps the one item at its right edge it has
|
|
13
|
+
today, and what matters most takes it, so nothing shifts or truncates further: a board you are not
|
|
14
|
+
on turns blue or wears the bubble in place of its status, a closed folder or folded scene turns its
|
|
15
|
+
count blue or shows the bubble. Selecting a frame, opening it from the sidebar, a link, focus or
|
|
16
|
+
play, two seconds on screen at a readable zoom, or **Mark all as seen** on a scene, board or folder clears
|
|
17
|
+
it. `u` goes to the next frame that needs you, then the next new one. A change is the frame's
|
|
18
|
+
file or sticky note changing, a `git pull`, or an agent's `npx marver work done`; the day you
|
|
19
|
+
upgrade, everything already there counts as seen. Marks are kept in `design/.local/seen.json` on
|
|
20
|
+
your machine ([What is new, what needs you](docs/boards-and-folders.md#what-is-new-what-needs-you)).
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **One notice per round.** Marver's replies on a board fold into one notice that counts them
|
|
25
|
+
("directions · 4 replies") instead of a stack of eight, and View walks through them one by one; a
|
|
26
|
+
new note, or a reply that asks a question, still raises its own.
|
|
27
|
+
|
|
28
|
+
## 0.23.1 - 2026-10-14
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- **A board file that is not JSON says why.** One stray character used to leave only `could not
|
|
33
|
+
load "<board>" - staying on <board>`, while `marver boards` listed it as fine. Now the parser's
|
|
34
|
+
own words, with the line and column, appear in four places:
|
|
35
|
+
- a red mark on the board's sidebar row;
|
|
36
|
+
- the toast;
|
|
37
|
+
- the dev server's log;
|
|
38
|
+
- a `(invalid JSON: …)` note on the board's line in `marver boards`.
|
|
39
|
+
(#6)
|
|
40
|
+
- **Folders inside a scene that start with `_` stay off the canvas.** Files in a folder such as
|
|
41
|
+
`_snapshot/` (the iterate guide's frozen copies) were registered as frames, shown on all scenes,
|
|
42
|
+
and shot as frames with no default export. Inside a scene, a `_` now marks infrastructure for a
|
|
43
|
+
folder as it already did for a file; a scene's own folder name is unaffected. (#8)
|
|
44
|
+
- **Tables in a wide `Doc` use its width.** Every `Md` was held to a 72-character measure, so a
|
|
45
|
+
comparison table in `<Doc layout="wide">` wrapped into a tall, half-empty column. In a wide Doc,
|
|
46
|
+
prose keeps that measure and a table grows as far as its cells need, up to the Doc's width. (#12)
|
|
47
|
+
- **HTML comments stay invisible in markdown.** `Md` and sticky notes printed `<!-- ... -->` as
|
|
48
|
+
text, as on a start board's index around its generated table. Comments are now dropped; any other
|
|
49
|
+
raw HTML still shows as plain text. (#15)
|
|
50
|
+
- **An empty phase scene waits quietly.** A feature board names its lo-fi and hi-fi scenes before
|
|
51
|
+
they hold a frame, and the canvas warned `unknown scene ... skipped` on every render, toast
|
|
52
|
+
included. A scene with a brief and no frames is now known, and the layout passes over it and its
|
|
53
|
+
spacer; a misspelt name still warns. (#18)
|
|
54
|
+
- **Re-running `init` keeps the project's name.** `npx marver init` on an existing project rewrote
|
|
55
|
+
`design/manifest.json`'s project line to the folder name and dropped its description, until the
|
|
56
|
+
next `dev`. It now keeps the line it finds. (#13)
|
|
57
|
+
- **No theme warning where no theme is needed.** A canvas made only of content frames (`Doc`, `Md`,
|
|
58
|
+
`Diagram`) brings its own styling, but every boot warned "no theme configured" with a banner. The
|
|
59
|
+
warning now waits for a frame that needs the app's styles. (#4)
|
|
60
|
+
|
|
5
61
|
## 0.23.0 - 2026-10-06
|
|
6
62
|
|
|
7
63
|
### Added
|
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ The same glow, driven from the terminal. When your agent takes a request, it cre
|
|
|
112
112
|
| `npx marver work …` | Working glow from the terminal: `start <scene/frame …>` · `done … \| --all` (prints the canvas link) · `list` |
|
|
113
113
|
| `npx marver link <scene/frame \| scene ...>` | The canvas link that lands on those frames - their board, selected and in view (needs `dev` running) |
|
|
114
114
|
| `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 |
|
|
115
|
-
| `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 |
|
|
115
|
+
| `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 |
|
|
116
116
|
| `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/` |
|
|
117
117
|
| `npx marver folders add <module ...>` | Add a typed folder: `start`, `features`, `surfaces`, `projects`, `feedback`, `context`, `decks`, `archive` |
|
|
118
118
|
| `npx marver context init \| check \| index` | Set up `context/`; check it (exit 0 / 1 / 2; `--base`, `--body-file` for a pull request); regenerate the index's capability table |
|
|
@@ -130,6 +130,8 @@ The same glow, driven from the terminal. When your agent takes a request, it cre
|
|
|
130
130
|
|
|
131
131
|
**Selection** - click selects · shift+click (canvas or sidebar) builds a multi-selection · `⌘A` selects every frame on the board · `⇧P` copies the selected frames' paths (board, frame, and file) · `i` copies the selected frame to the clipboard as a 2x PNG (`⇧i` for 4x; also the images-square button in the floating toolbar - dev canvases only, the renderer is the dev server's headless Chrome) · double-click enters interact mode (`esc` or click outside leaves) · drag the title bar to move, edges to resize (widths snap to devices).
|
|
132
132
|
|
|
133
|
+
**Where to look** - `u` goes to the next frame that needs you (an orange question bubble), then the next new one (blue) - see [what is new, what needs you](docs/boards-and-folders.md#what-is-new-what-needs-you).
|
|
134
|
+
|
|
133
135
|
**Modes** - `c` comment mode · `l` laser mode · `⇧C` hide/show comment pins · `⇧L` laser comment (spotlight a thread's element) · `p` play (present, or slides on a slides board) · `h` hide all chrome.
|
|
134
136
|
|
|
135
137
|
**In play** - `←` `→` step (Space and click advance a deck) · `[` `]` cycle variants · `d` cycles the theme · digits pick a device, the digit after your last one fills the window · `esc` exits, unless the board is locked to that view.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AREA, SURFACE, pool, shotConcurrency, withBrowser } from "./shot-
|
|
1
|
+
import { AREA, SURFACE, pool, shotConcurrency, withBrowser } from "./shot-Cw96h5Kk.mjs";
|
|
2
2
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, utimesSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { join, sep } from "node:path";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as HAS_STATUS, F as resolveType, M as readReason, N as readStatusWord, T as DECISIONS, j as readCapability } from "./boards-BRLnoTC3.mjs";
|
|
2
2
|
import { lstatSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
//#region src/shared/context.ts
|
|
@@ -410,6 +410,18 @@ const nodeExists = (p) => {
|
|
|
410
410
|
return false;
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
|
+
/** A board file's JSON, or why it is not JSON - the parser's own words, naming the line and column (#6). */
|
|
414
|
+
function parseBoard(content) {
|
|
415
|
+
try {
|
|
416
|
+
return { json: JSON.parse(content) };
|
|
417
|
+
} catch (e) {
|
|
418
|
+
const msg = e.message, lines = content.split("\n");
|
|
419
|
+
return {
|
|
420
|
+
json: null,
|
|
421
|
+
error: /end of JSON input$/.test(msg) ? `${msg} (line ${lines.length} column ${lines[lines.length - 1].length + 1})` : msg
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
}
|
|
413
425
|
/** Every board file: name, raw content, hash, and its JSON (null when malformed). `skipped`
|
|
414
426
|
* names the entries that looked like boards but were not regular files. */
|
|
415
427
|
function listBoardFiles(boardsDir) {
|
|
@@ -426,16 +438,12 @@ function listBoardFiles(boardsDir) {
|
|
|
426
438
|
continue;
|
|
427
439
|
}
|
|
428
440
|
const content = readFileSync(file, "utf8");
|
|
429
|
-
let json = null;
|
|
430
|
-
try {
|
|
431
|
-
json = JSON.parse(content);
|
|
432
|
-
} catch {}
|
|
433
441
|
boards.push({
|
|
434
442
|
name: f.slice(0, -5),
|
|
435
443
|
file,
|
|
436
444
|
content,
|
|
437
445
|
sha256: hash(content),
|
|
438
|
-
|
|
446
|
+
...parseBoard(content)
|
|
439
447
|
});
|
|
440
448
|
}
|
|
441
449
|
return {
|
|
@@ -609,4 +617,4 @@ function appendFolders(dir, file, folders) {
|
|
|
609
617
|
throw new Error(`design/boards/${FOLDERS_FILE} kept changing while folders were added - try again`);
|
|
610
618
|
}
|
|
611
619
|
//#endregion
|
|
612
|
-
export {
|
|
620
|
+
export { knownType as A, wireKids as C, HAS_STATUS as D, FOLDER_MODULES as E, resolveType as F, settableStatuses as I, hash as L, readReason as M, readStatusWord as N, KIND_FOLDERS as O, readType as P, validateWire as S, DECISIONS as T, folderMap as _, checkRealDirs as a, readDescription as b, nodeExists as c, withRegistryLock as d, BOARD_NAME as f, folderEntries as g, flatten as h, checkBoardsDir as i, readCapability as j, PROPOSED_PUBLISH as k, parseBoard as l, buildTree as m, addFolders as n, isRegularFile as o, FOLDERS_FILE as p, boardFields as r, listBoardFiles as s, AUTHOR_FIELDS as t, readRegistry as u, humanize as v, BOARD_TYPES as w, readTitle as x, isBoardName as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import { A as
|
|
3
|
-
import { a as PHASE_LABEL, s as STATUS_LABEL, t as annotateBoards } from "./board-status-
|
|
2
|
+
import { A as knownType, E as FOLDER_MODULES, F as resolveType, _ as folderMap, a as checkRealDirs, h as flatten, i as checkBoardsDir, j as readCapability, m as buildTree, n as addFolders, r as boardFields, s as listBoardFiles, u as readRegistry, v as humanize, w as BOARD_TYPES, y as isBoardName } from "./boards-BRLnoTC3.mjs";
|
|
3
|
+
import { a as PHASE_LABEL, s as STATUS_LABEL, t as annotateBoards } from "./board-status-BZSzc9Hp.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
//#region src/cli/boards.ts
|
|
@@ -19,7 +19,8 @@ function boardsCommand(root, opts) {
|
|
|
19
19
|
if (reg.state === "malformed") throw new Error(reg.error);
|
|
20
20
|
const rows = boards.map((b) => ({
|
|
21
21
|
name: b.name,
|
|
22
|
-
...boardFields(b.json, isBoardName)
|
|
22
|
+
...boardFields(b.json, isBoardName),
|
|
23
|
+
...b.error ? { error: b.error } : {}
|
|
23
24
|
}));
|
|
24
25
|
const tree = buildTree(rows, reg.folders);
|
|
25
26
|
const hasAll = boards.some((b) => b.name === "all-scenes");
|
|
@@ -30,11 +31,13 @@ function boardsCommand(root, opts) {
|
|
|
30
31
|
...r,
|
|
31
32
|
...notes.get(r.name) ?? {}
|
|
32
33
|
}));
|
|
34
|
+
const invalid = Object.fromEntries(boards.flatMap((b) => b.error ? [[b.name, b.error]] : []));
|
|
33
35
|
console.log(JSON.stringify({
|
|
34
36
|
tree,
|
|
35
37
|
boards: out,
|
|
36
38
|
landing: flatten(tree)[0] ?? (hasAll ? "all-scenes" : null),
|
|
37
|
-
registry: reg.state === "ok" ? "design/boards/_folders.json" : null
|
|
39
|
+
registry: reg.state === "ok" ? "design/boards/_folders.json" : null,
|
|
40
|
+
...Object.keys(invalid).length ? { invalid } : {}
|
|
38
41
|
}, null, 2));
|
|
39
42
|
return;
|
|
40
43
|
}
|
|
@@ -54,9 +57,13 @@ function boardsCommand(root, opts) {
|
|
|
54
57
|
const st = a.status ? ` · ${STATUS_LABEL[a.status.status]}${a.status.fill ? ` (${PHASE_LABEL[a.status.fill]})` : ""}${a.status.reason ? `: ${a.status.reason}` : ""}` : "";
|
|
55
58
|
return a.type === "plain" && !st ? "" : ` [${a.type}${st}]`;
|
|
56
59
|
};
|
|
60
|
+
const bad = (n) => {
|
|
61
|
+
const e = boards.find((b) => b.name === n)?.error;
|
|
62
|
+
return e ? ` (invalid JSON: ${e})` : "";
|
|
63
|
+
};
|
|
57
64
|
const boardLine = (n) => {
|
|
58
65
|
const r = rows.find((x) => x.name === n);
|
|
59
|
-
return `${n}${title(r?.title)}${kind(n)}${order(n)}${desc(r?.description)}`;
|
|
66
|
+
return `${n}${bad(n)}${title(r?.title)}${kind(n)}${order(n)}${desc(r?.description)}`;
|
|
60
67
|
};
|
|
61
68
|
const count = (f) => {
|
|
62
69
|
const boards = f.items.filter((k) => k.kind === "board").length, subs = f.items.length - boards;
|
|
@@ -76,7 +83,7 @@ function boardsCommand(root, opts) {
|
|
|
76
83
|
}
|
|
77
84
|
};
|
|
78
85
|
print(tree, "", null);
|
|
79
|
-
if (hasAll) console.log("all-scenes (auto, always last)
|
|
86
|
+
if (hasAll) console.log(`all-scenes${bad("all-scenes")} (auto, always last)`);
|
|
80
87
|
const landing = flatten(tree)[0];
|
|
81
88
|
if (landing) console.log(`\nlanding board: ${landing}`);
|
|
82
89
|
console.log(`registry: ${reg.state === "ok" ? "design/boards/_folders.json" : "none (no empty or ranked folders yet)"}`);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as ROUTE, r as NAME } from "./cli.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { c as publishableStatus, o as PUBLISHABLE } from "./board-status-
|
|
4
|
-
import {
|
|
5
|
-
import { n as loadConfig, r as detectHost } from "./config-
|
|
6
|
-
import { a as autoWidthOf, c as readSizes, n as tailwind3Css, o as keptSizes, r as tailwind4Plugin, s as measuringFrames, t as marverPlugin } from "./plugin-
|
|
2
|
+
import { h as flatten, i as checkBoardsDir, k as PROPOSED_PUBLISH, m as buildTree, r as boardFields, s as listBoardFiles, u as readRegistry, y as isBoardName } from "./boards-BRLnoTC3.mjs";
|
|
3
|
+
import { c as publishableStatus, o as PUBLISHABLE } from "./board-status-BZSzc9Hp.mjs";
|
|
4
|
+
import { s as scanFrames } from "./manifest-cyG3kbhk.mjs";
|
|
5
|
+
import { n as loadConfig, r as detectHost } from "./config-BUKprFAp.mjs";
|
|
6
|
+
import { a as autoWidthOf, c as readSizes, n as tailwind3Css, o as keptSizes, r as tailwind4Plugin, s as measuringFrames, t as marverPlugin } from "./plugin-Sa08E7wO.mjs";
|
|
7
7
|
import { cpSync, existsSync, mkdirSync, readFileSync, realpathSync, rmSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { basename, dirname, join, sep } from "node:path";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
@@ -369,7 +369,7 @@ function publishedTree(published, allBoards, folders) {
|
|
|
369
369
|
/** The bundle's manifest: the published frames, and descriptions of published things ONLY -
|
|
370
370
|
* the project's, the published scenes' (their brief path only when source is revealed),
|
|
371
371
|
* the published boards' and the folders those sit in. No unpublished name or sentence. */
|
|
372
|
-
function publishedManifest(manifest, pubFrames, publishedNames, strip, showStatus = /* @__PURE__ */ new Set()) {
|
|
372
|
+
function publishedManifest(manifest, pubFrames, publishedNames, strip, showStatus = /* @__PURE__ */ new Set(), recipeScenes = /* @__PURE__ */ new Set()) {
|
|
373
373
|
const pubScenes = new Set(pubFrames.map((f) => f.scene));
|
|
374
374
|
const pubBoardSet = new Set(publishedNames);
|
|
375
375
|
const pubBoards = (manifest.boards ?? []).filter((b) => pubBoardSet.has(b.name)).map(({ status, ...b }) => {
|
|
@@ -386,14 +386,17 @@ function publishedManifest(manifest, pubFrames, publishedNames, strip, showStatu
|
|
|
386
386
|
...manifest.project ? { project: manifest.project } : {},
|
|
387
387
|
...pubFolders.length ? { folders: pubFolders } : {},
|
|
388
388
|
...pubBoards.length ? { boards: pubBoards } : {},
|
|
389
|
-
scenes: manifest.scenes.
|
|
389
|
+
scenes: manifest.scenes.flatMap(({ name, title, description, brief, note }) => pubScenes.has(name) ? [{
|
|
390
390
|
name,
|
|
391
391
|
frames: pubFrames.filter((f) => f.scene === name).length,
|
|
392
392
|
...title ? { title } : {},
|
|
393
393
|
...description ? { description } : {},
|
|
394
394
|
...brief && !strip ? { brief } : {},
|
|
395
395
|
...note ? { note } : {}
|
|
396
|
-
})
|
|
396
|
+
}] : recipeScenes.has(name) ? [{
|
|
397
|
+
name,
|
|
398
|
+
frames: 0
|
|
399
|
+
}] : []),
|
|
397
400
|
frames: pubFrames
|
|
398
401
|
};
|
|
399
402
|
}
|
|
@@ -575,7 +578,8 @@ async function buildSite(root, boardsFlag, allBoardsFlag, embedSeeds, textures =
|
|
|
575
578
|
file: opaquePath(f.id, f.kind === "html" ? ".html" : "")
|
|
576
579
|
})) : frames;
|
|
577
580
|
const showStatus = new Set(publishedNames.filter((n) => policy.boards[n]?.showStatus));
|
|
578
|
-
const
|
|
581
|
+
const lanes = (x) => Array.isArray(x) ? x : [];
|
|
582
|
+
const pubManifest = publishedManifest(manifest, pubFrames, publishedNames, strip, showStatus, new Set(Object.values(boards).flatMap((b) => [...lanes(b?.layout?.rows), ...lanes(b?.layout?.columns)]).flatMap(lanes).filter((a) => typeof a === "string")));
|
|
579
583
|
for (const n of publishedNames) {
|
|
580
584
|
const pb = policy.boards[n];
|
|
581
585
|
if (pb?.type !== "slides" && pb?.open !== "slides") continue;
|
|
@@ -758,7 +762,7 @@ async function buildSite(root, boardsFlag, allBoardsFlag, embedSeeds, textures =
|
|
|
758
762
|
const realAssets = existsSync(assetsDir) ? realpathSync(assetsDir) : null;
|
|
759
763
|
for (const r of refs) {
|
|
760
764
|
if (!isLocalAssetRef(r) || !r.endsWith(".poster.png") || existsSync(join(assetsDir, r))) continue;
|
|
761
|
-
const { ensurePoster } = await import("./poster-
|
|
765
|
+
const { ensurePoster } = await import("./poster-B2QPvKOq.mjs");
|
|
762
766
|
const g = await ensurePoster(assetsDir, r.slice(0, -11));
|
|
763
767
|
if (!g.ok) throw new Error(`design/assets/${r}: ${g.error}`);
|
|
764
768
|
console.log(` poster: rendered design/assets/${r} (${g.width}×${g.height})`);
|
|
@@ -825,7 +829,7 @@ async function buildSite(root, boardsFlag, allBoardsFlag, embedSeeds, textures =
|
|
|
825
829
|
}));
|
|
826
830
|
let textureLine = " textures: skipped (--no-textures)";
|
|
827
831
|
if (textures && bakeGen) {
|
|
828
|
-
const { bakePublished } = await import("./publish-bakes-
|
|
832
|
+
const { bakePublished } = await import("./publish-bakes-BJR3huhu.mjs");
|
|
829
833
|
const pubFrameFile = new Map(pubFrames.map((f) => [f.id, f]));
|
|
830
834
|
const r = await bakePublished({
|
|
831
835
|
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--3Moc4J7.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>", "Port (default 5199)").action(async (opts) => {
|
|
93
|
-
const { dev } = await import("./dev-
|
|
93
|
+
const { dev } = await import("./dev-gv4NS6Fk.mjs");
|
|
94
94
|
let port;
|
|
95
95
|
if (opts.port !== void 0) {
|
|
96
96
|
const n = Number(opts.port);
|
|
@@ -100,7 +100,7 @@ for (const [name, desc] of [["dev", "Start the local canvas (everything on: hot
|
|
|
100
100
|
await dev(resolve$1(opts.root), port);
|
|
101
101
|
});
|
|
102
102
|
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) => {
|
|
103
|
-
const { buildSite } = await import("./build-
|
|
103
|
+
const { buildSite } = await import("./build-ckcinlWH.mjs");
|
|
104
104
|
try {
|
|
105
105
|
const boards = opts.boards === void 0 ? void 0 : typeof opts.boards === "string" ? opts.boards : "";
|
|
106
106
|
await buildSite(resolve$1(opts.root), boards, opts.allBoards === true, opts.embedSeeds === true, opts.textures !== false && !process.env.MARVER_NO_TEXTURES);
|
|
@@ -119,7 +119,7 @@ cli.command("serve", "Serve design/.dist (set MARVER_PASSWORD to gate it)").opti
|
|
|
119
119
|
serve(resolve$1(opts.root), port);
|
|
120
120
|
});
|
|
121
121
|
cli.command("comments <action> [value]", "Comment collaboration: connect <url> · sync · list · new <scene/frame> · reply <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: pin on the element showing this text (default: the frame, top right)").option("--addressed-in <frame>", "resolve: the variant frame that answered the feedback").action(async (action, value, opts) => {
|
|
122
|
-
const { commentsCommand } = await import("./comments-
|
|
122
|
+
const { commentsCommand } = await import("./comments-Dx1hCVOT.mjs");
|
|
123
123
|
try {
|
|
124
124
|
await commentsCommand(resolve$1(opts.root), action, value, opts);
|
|
125
125
|
} catch (err) {
|
|
@@ -137,7 +137,7 @@ cli.command("share <action> [value]", "Sharing roster (owner): add <who> · remo
|
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
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) => {
|
|
140
|
-
const { workCommand } = await import("./work-
|
|
140
|
+
const { workCommand } = await import("./work-CBUfsOOT.mjs");
|
|
141
141
|
try {
|
|
142
142
|
await workCommand(resolve$1(opts.root), action, frames ?? [], opts);
|
|
143
143
|
} catch (err) {
|
|
@@ -146,7 +146,7 @@ cli.command("work <action> [...frames]", "Working state on the canvas: start <sc
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
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 all-scenes)").action(async (targets, opts) => {
|
|
149
|
-
const { linkCommand } = await import("./link-
|
|
149
|
+
const { linkCommand } = await import("./link-vXjxMHTG.mjs");
|
|
150
150
|
try {
|
|
151
151
|
await linkCommand(resolve$1(opts.root), targets ?? [], opts);
|
|
152
152
|
} catch (err) {
|
|
@@ -155,7 +155,7 @@ cli.command("link [...targets]", "The canvas link that lands on frames: link <sc
|
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
cli.command("boards [action] [name]", "The sidebar as files: every folder and board in reading order, with types and statuses · new <name>: a board in its type's starting layout").option("--root <dir>", "Host repo root", { default: "." }).option("--json", "The tree as JSON ({ tree, boards, landing, 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, name, opts) => {
|
|
158
|
-
const { boardsCommand, boardsNew } = await import("./boards-
|
|
158
|
+
const { boardsCommand, boardsNew } = await import("./boards-Dv-Ipd8G.mjs");
|
|
159
159
|
try {
|
|
160
160
|
if (action === void 0) boardsCommand(resolve$1(opts.root), opts);
|
|
161
161
|
else if (action === "new") {
|
|
@@ -171,7 +171,7 @@ cli.command("boards [action] [name]", "The sidebar as files: every folder and bo
|
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
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) => {
|
|
174
|
-
const { foldersAdd } = await import("./boards-
|
|
174
|
+
const { foldersAdd } = await import("./boards-Dv-Ipd8G.mjs");
|
|
175
175
|
try {
|
|
176
176
|
if (action !== "add") throw new Error(`unknown action "${action}" - \`folders add <module ...>\``);
|
|
177
177
|
const { added, existing } = foldersAdd(resolve$1(opts.root), modules);
|
|
@@ -183,7 +183,7 @@ cli.command("folders <action> [...modules]", "The shared sidebar's typed folders
|
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
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) => {
|
|
186
|
-
const ctx = await import("./context-
|
|
186
|
+
const ctx = await import("./context-BncTXjLB.mjs");
|
|
187
187
|
const root = resolve$1(opts.root);
|
|
188
188
|
try {
|
|
189
189
|
if (action === "init") {
|
|
@@ -219,7 +219,7 @@ cli.command("context <action>", "The project's context/ (spec 19) · init: creat
|
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
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) => {
|
|
222
|
-
const { shotCommand } = await import("./shot-
|
|
222
|
+
const { shotCommand } = await import("./shot-Dh6fV1Lm.mjs");
|
|
223
223
|
try {
|
|
224
224
|
await shotCommand(resolve$1(opts.root), frames, opts);
|
|
225
225
|
} catch (err) {
|
|
@@ -124,7 +124,7 @@ async function commentsCommand(root, action, value, opts) {
|
|
|
124
124
|
}
|
|
125
125
|
case "new": {
|
|
126
126
|
if (!value || !opts.body) throw new Error("usage: comments new <scene/frame> --body \"...\" [--on \"<text on screen>\"] [--board <board>]");
|
|
127
|
-
const { resolveLink, devOrigin } = await import("./link-
|
|
127
|
+
const { resolveLink, devOrigin } = await import("./link-vXjxMHTG.mjs");
|
|
128
128
|
const r = resolveLink(root, [value], opts.board);
|
|
129
129
|
if (r.exact.length !== 1) throw new Error(`"${value}" is a folder of frames - pin a note on one frame: comments new <scene/frame>`);
|
|
130
130
|
const frame = r.exact[0];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as readDescription } from "./boards-BRLnoTC3.mjs";
|
|
2
2
|
import { i as onPath, n as AGENT_NAMES, r as detectAgent, t as AGENT_BIN } from "./agent-BsieQGTD.mjs";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { C as parseMap, E as wordCount, S as looseTables, T as tables, _ as globRe, b as levelsIn, d as EVIDENCE_COLUMN, f as GENERATED, g as frontMatter, h as capabilityTable, l as CITATION, m as availableLevels, p as LEVEL, u as CITED_FILE, v as hasGlob, w as proseLines, x as lf, y as isRecordTable } from "./board-status-
|
|
2
|
+
import { N as readStatusWord, a as checkRealDirs } from "./boards-BRLnoTC3.mjs";
|
|
3
|
+
import { C as parseMap, E as wordCount, S as looseTables, T as tables, _ as globRe, b as levelsIn, d as EVIDENCE_COLUMN, f as GENERATED, g as frontMatter, h as capabilityTable, l as CITATION, m as availableLevels, p as LEVEL, u as CITED_FILE, v as hasGlob, w as proseLines, x as lf, y as isRecordTable } from "./board-status-BZSzc9Hp.mjs";
|
|
4
4
|
import { pkgDir } from "./managed-HwHVNI3h.mjs";
|
|
5
5
|
import { t as writeManaged } from "./managed-write-Bo-oPc-i.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { s as scanFrames } from "./manifest-cyG3kbhk.mjs";
|
|
7
7
|
import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { basename, dirname, join, normalize, relative, sep } from "node:path";
|
|
9
9
|
import { execFileSync } from "node:child_process";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as replay } from "./events-B3LBn74P.mjs";
|
|
2
2
|
import { i as readLog, r as listBoards, t as appendEvents } from "./comments-DZyobpxG.mjs";
|
|
3
3
|
import { n as localProfile } from "./profile-CrZohD6g.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { a as workActivity } from "./work-
|
|
4
|
+
import { l as toFrameId } from "./manifest-cyG3kbhk.mjs";
|
|
5
|
+
import { a as workActivity } from "./work-ayuL_9Kk.mjs";
|
|
6
6
|
import { has, t as deviceId } from "./ledger-BNXW14Xw.mjs";
|
|
7
7
|
import { closeSync, existsSync, fsyncSync, mkdirSync, openSync, readFileSync, readdirSync, renameSync, rmSync, statSync, unlinkSync, watch, writeFileSync, writeSync } from "node:fs";
|
|
8
8
|
import { join } from "node:path";
|
|
@@ -996,8 +996,9 @@ const sceneFrameMtimes = (root) => {
|
|
|
996
996
|
return out;
|
|
997
997
|
}
|
|
998
998
|
for (const rel of entries) {
|
|
999
|
-
const
|
|
1000
|
-
|
|
999
|
+
const parts = rel.split(/[\\/]/);
|
|
1000
|
+
const base = parts[parts.length - 1];
|
|
1001
|
+
if (!FRAME_FILE.test(base) || base.startsWith("_") || parts.slice(1, -1).some((s) => s.startsWith("_"))) continue;
|
|
1001
1002
|
try {
|
|
1002
1003
|
out.set(toFrameId(`scenes/${rel}`), statSync(join(scenesDir, rel)).mtimeMs);
|
|
1003
1004
|
} catch {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as PKG, r as NAME } from "./cli.mjs";
|
|
2
|
-
import { n as loadConfig, r as detectHost } from "./config-
|
|
3
|
-
import { n as tailwind3Css, r as tailwind4Plugin, t as marverPlugin } from "./plugin-
|
|
2
|
+
import { n as loadConfig, r as detectHost } from "./config-BUKprFAp.mjs";
|
|
3
|
+
import { n as tailwind3Css, r as tailwind4Plugin, t as marverPlugin } from "./plugin-Sa08E7wO.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, statSync, watch } from "node:fs";
|
|
5
5
|
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
@@ -454,12 +454,12 @@ async function dev(root, portFlag) {
|
|
|
454
454
|
console.log(`\n ${NAME} · ${projectName} → http://localhost:${port}/\n`);
|
|
455
455
|
setTimeout(async () => {
|
|
456
456
|
try {
|
|
457
|
-
await (await import("./shot-
|
|
457
|
+
await (await import("./shot-Cw96h5Kk.mjs")).sweepGhosts((m) => console.log(` ${m}`));
|
|
458
458
|
} catch {}
|
|
459
459
|
}, 0);
|
|
460
460
|
try {
|
|
461
461
|
const { staleManagedInstructions } = await import("./managed-HwHVNI3h.mjs");
|
|
462
|
-
const { installedVersion } = await import("./plugin-
|
|
462
|
+
const { installedVersion } = await import("./plugin-Sa08E7wO.mjs").then((n) => n.i);
|
|
463
463
|
const stale = staleManagedInstructions(root);
|
|
464
464
|
if (stale.length) {
|
|
465
465
|
const shown = stale.slice(0, 4).join(", ") + (stale.length > 4 ? `, +${stale.length - 4} more` : "");
|
|
@@ -469,7 +469,7 @@ async function dev(root, portFlag) {
|
|
|
469
469
|
} catch {}
|
|
470
470
|
try {
|
|
471
471
|
if (!existsSync(join(root, "context"))) {
|
|
472
|
-
const n = (await import("./manifest-
|
|
472
|
+
const n = (await import("./manifest-cyG3kbhk.mjs").then((n) => n.i)).statusBoards(root).length;
|
|
473
473
|
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`);
|
|
474
474
|
}
|
|
475
475
|
} catch {}
|
|
@@ -488,7 +488,7 @@ async function dev(root, portFlag) {
|
|
|
488
488
|
};
|
|
489
489
|
tick();
|
|
490
490
|
setInterval(tick, 3e4).unref();
|
|
491
|
-
const { workActivity, writeDevInfo, removeDevInfo, boardsShowing, onBoardsChanged, nextActivitySeq } = await import("./work-
|
|
491
|
+
const { workActivity, writeDevInfo, removeDevInfo, boardsShowing, onBoardsChanged, nextActivitySeq } = await import("./work-ayuL_9Kk.mjs").then((n) => n.o);
|
|
492
492
|
let sent = "";
|
|
493
493
|
const broadcast = (frames) => {
|
|
494
494
|
const state = {
|
|
@@ -543,7 +543,7 @@ async function dev(root, portFlag) {
|
|
|
543
543
|
} catch {}
|
|
544
544
|
}
|
|
545
545
|
if (config.jam) {
|
|
546
|
-
const { startJam } = await import("./daemon-
|
|
546
|
+
const { startJam } = await import("./daemon-CQv73-jM.mjs");
|
|
547
547
|
const jam = startJam(root, config.jam, (m) => console.log(m), (board) => server.ws.send("sh:jam-comment", { board }));
|
|
548
548
|
if (jam) {
|
|
549
549
|
const close = server.close.bind(server);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { E as FOLDER_MODULES, O as KIND_FOLDERS, n as addFolders } from "./boards-BRLnoTC3.mjs";
|
|
3
3
|
import { r as detectAgent } from "./agent-BsieQGTD.mjs";
|
|
4
4
|
import { MANAGED_PREFIX, enumerateInstructionTemplates, hashBody, pkgDir } from "./managed-HwHVNI3h.mjs";
|
|
5
5
|
import { t as writeManaged } from "./managed-write-Bo-oPc-i.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { i as readJson, r as detectHost, t as DEFAULTS } from "./config-
|
|
6
|
+
import { s as scanFrames, u as writeManifest } from "./manifest-cyG3kbhk.mjs";
|
|
7
|
+
import { i as readJson, r as detectHost, t as DEFAULTS } from "./config-BUKprFAp.mjs";
|
|
8
8
|
import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, join, relative } from "node:path";
|
|
10
10
|
//#region src/cli/init.ts
|
|
@@ -218,7 +218,12 @@ function init(root, opts) {
|
|
|
218
218
|
created.push("design/scenes/demo/ (3 frames)");
|
|
219
219
|
}
|
|
220
220
|
if (host.tsconfigSweepsDesign) patchTsconfigExclude(root);
|
|
221
|
-
|
|
221
|
+
const prev = readJson(join(design, "manifest.json"))?.project;
|
|
222
|
+
const str = (v) => typeof v === "string" && v ? v : void 0;
|
|
223
|
+
writeManifest(root, scanFrames(root, {
|
|
224
|
+
name: str(prev?.name) ?? basename(root),
|
|
225
|
+
description: str(prev?.description)
|
|
226
|
+
}));
|
|
222
227
|
console.log(`\n${NAME} initialized (${opts.mode} mode). Created:`);
|
|
223
228
|
for (const f of created) console.log(` + ${f}`);
|
|
224
229
|
if (host.router === "next") console.log(`\n note: Next.js support is partial - frames render outside Next, so next/font, next/image and Server Components do not exist inside them (details in design/AGENTS.md).`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as readDevInfo } from "./work-
|
|
2
|
+
import { F as resolveType, _ as folderMap, h as flatten, i as checkBoardsDir, m as buildTree, r as boardFields, s as listBoardFiles, u as readRegistry, y as isBoardName } from "./boards-BRLnoTC3.mjs";
|
|
3
|
+
import { s as scanFrames } from "./manifest-cyG3kbhk.mjs";
|
|
4
|
+
import { i as readDevInfo } from "./work-ayuL_9Kk.mjs";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
//#region src/cli/link.ts
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { i as PKG, n as CONTENT_WIDTH } from "./cli.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { t as annotateBoards } from "./board-status-
|
|
3
|
+
import { L as hash, a as checkRealDirs, b as readDescription, g as folderEntries, h as flatten, i as checkBoardsDir, m as buildTree, r as boardFields, s as listBoardFiles, u as readRegistry, x as readTitle, y as isBoardName } from "./boards-BRLnoTC3.mjs";
|
|
4
|
+
import { t as annotateBoards } from "./board-status-BZSzc9Hp.mjs";
|
|
5
5
|
import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { join, relative, sep } from "node:path";
|
|
7
7
|
import { randomBytes } from "node:crypto";
|
|
@@ -368,8 +368,9 @@ function scanFrames(root, project) {
|
|
|
368
368
|
const layoutDocs = /* @__PURE__ */ new Map();
|
|
369
369
|
for (const base of ["scenes", "components"]) for (const abs of walk(join(design, base))) {
|
|
370
370
|
const name = abs.split(sep).pop();
|
|
371
|
-
if (name.startsWith("_") || !FRAME_EXT.test(name)) continue;
|
|
372
371
|
const rel = relative(design, abs).split(sep).join("/");
|
|
372
|
+
const folders = rel.split("/").slice(base === "scenes" ? 2 : 1, -1);
|
|
373
|
+
if (!FRAME_EXT.test(name) || name.startsWith("_") || folders.some((s) => s.startsWith("_"))) continue;
|
|
373
374
|
const id = toFrameId(rel);
|
|
374
375
|
const scene = id.includes("/") ? id.split("/")[0] : "";
|
|
375
376
|
if (base === "scenes" && RESERVED_SCENES.has(scene)) {
|
|
@@ -421,6 +422,10 @@ function scanFrames(root, project) {
|
|
|
421
422
|
inferVariantGroups(frames);
|
|
422
423
|
const sceneCounts = /* @__PURE__ */ new Map();
|
|
423
424
|
for (const f of frames) sceneCounts.set(f.scene, (sceneCounts.get(f.scene) ?? 0) + 1);
|
|
425
|
+
const scenesDir = join(design, "scenes");
|
|
426
|
+
if (existsSync(scenesDir)) {
|
|
427
|
+
for (const e of readdirSync(scenesDir, { withFileTypes: true })) if (e.isDirectory() && !e.name.startsWith(".") && !RESERVED_SCENES.has(e.name) && !sceneCounts.has(e.name) && existsSync(join(scenesDir, e.name, "_brief.md"))) sceneCounts.set(e.name, 0);
|
|
428
|
+
}
|
|
424
429
|
const scenes = [...sceneCounts.entries()].map(([name, n]) => {
|
|
425
430
|
const note = sceneNote(root, name);
|
|
426
431
|
return {
|
|
@@ -520,4 +525,4 @@ function writeManifest(root, manifest) {
|
|
|
520
525
|
return true;
|
|
521
526
|
}
|
|
522
527
|
//#endregion
|
|
523
|
-
export {
|
|
528
|
+
export { noteFileFor as a, setSceneTitle as c, manifest_exports as i, toFrameId as l, isNoteFile as n, rendersDoc as o, layoutDocSource as r, scanFrames as s, affectedFrameIds as t, writeManifest as u };
|