@marver-design/marver 0.25.1 → 0.26.1
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 +116 -0
- package/README.md +5 -3
- package/dist/{anchor-DVV732zR.mjs → anchor-5H1vnoLu.mjs} +6 -1
- package/dist/{anchor-check-DGZnYviN.mjs → anchor-check-l-ny3UzH.mjs} +1 -1
- package/dist/audio-Dw1lfMdb.mjs +443 -0
- package/dist/{auth-DdUKeVKt.mjs → auth-Dix8wrXV.mjs} +1 -1
- package/dist/{bake-BpxMZfij.mjs → bake-C-awKgLA.mjs} +1 -1
- package/dist/{boards-Csxj2WJn.mjs → boards-DYG22tOe.mjs} +2 -2
- package/dist/{build-DKaGhoVN.mjs → build-BDRiO_mP.mjs} +16 -9
- package/dist/capture-vadKjuCo.mjs +730 -0
- package/dist/cli.mjs +24 -18
- package/dist/{collab-gqNdScUE.mjs → collab-Dxg2trOK.mjs} +4 -3
- package/dist/{comments-Zoch254k.mjs → comments-0BSbb04K.mjs} +14 -3
- package/dist/{comments-pTLlhjh4.mjs → comments-BqXua-XL.mjs} +7 -7
- package/dist/{config-cKgZBRj0.mjs → config-Cf7EjAMf.mjs} +12 -1
- package/dist/{context-D2ugHqwO.mjs → context-HQ4Giw58.mjs} +1 -1
- package/dist/daemon-DL6Fwq6D.mjs +2569 -0
- package/dist/{dev-Diqx1Rt8.mjs → dev-Bw_qYWWq.mjs} +202 -18
- package/dist/dev-lock-DWSpa6nj.mjs +179 -0
- package/dist/{events-DnK_AnrW.mjs → events-CLH4ijKP.mjs} +14 -4
- package/dist/{init-DO4DhUt_.mjs → init-D8DtrK_F.mjs} +2 -2
- package/dist/{ledger-BNXW14Xw.mjs → ledger-D54iROST.mjs} +17 -1
- package/dist/{link-C-qUIuKU.mjs → link-BNzLvdhI.mjs} +2 -2
- package/dist/live-Cgzsicwi.mjs +4 -0
- package/dist/{manifest-DnAte_fB.mjs → manifest-Nl3KSVOk.mjs} +1 -1
- package/dist/{marks-koRsbHfe.mjs → marks-CKgzucHZ.mjs} +2 -2
- package/dist/{marks-DFuintmJ.mjs → marks-DyWMv_Z1.mjs} +23 -5
- package/dist/{marver-id-gate-DGANtVyC.mjs → marver-id-gate-BjF6v4bT.mjs} +4 -4
- package/dist/perf-C75MZ73h.mjs +167 -0
- package/dist/{perf-CCisg-ny.mjs → perf-DPbLGhhO.mjs} +1 -1
- package/dist/perf-jam-BU3TVrZu.mjs +239 -0
- package/dist/{plugin-dTF5reck.mjs → plugin-DkGmZs_r.mjs} +298 -38
- package/dist/{poster-D-zjYpgk.mjs → poster-BdtSKMDm.mjs} +2 -1
- package/dist/{profile-Do0nGkXO.mjs → profile-WU9qcbIo.mjs} +1 -1
- package/dist/{publish-bakes-C_9VZ-Mq.mjs → publish-bakes-9RzRToXV.mjs} +3 -3
- package/dist/queue-29ok5_eZ.mjs +1319 -0
- package/dist/reserve-BURNQ2Y3.mjs +53 -0
- package/dist/{rolldown-runtime-D7D4PA-g.mjs → rolldown-runtime-8H4AJuhK.mjs} +1 -0
- package/dist/{serve-wv2QWdxB.mjs → serve-C8rVheYk.mjs} +12 -12
- package/dist/session-BAaJsK5c.mjs +191 -0
- package/dist/{share-ScamJcks.mjs → share--oFJ1bCI.mjs} +2 -2
- package/dist/{shot-CUlmkqFX.mjs → shot-DQeR_Pfn.mjs} +339 -20
- package/dist/shot-XQV7HC9A.mjs +139 -0
- package/dist/speech-models-DomiLQcY.mjs +299 -0
- package/dist/speech-worker.mjs +354 -0
- package/dist/{summary-CrW88e3q.mjs → summary-Y8MY1Wuc.mjs} +2 -2
- package/dist/{sync-C3035OnJ.mjs → sync-DKk-yT1V.mjs} +9 -8
- package/dist/{work-GE88wb_3.mjs → work-F5u-twpJ.mjs} +28 -5
- package/dist/{work-CpJn1gwY.mjs → work-VvX_JIgl.mjs} +2 -2
- package/docs/jam-session.md +194 -0
- package/docs/live-jam.md +29 -3
- package/package.json +7 -1
- package/src/client/frame-host/bridge.js +20 -2
- package/src/client/frame-host/inspect.d.ts +4 -0
- package/src/client/frame-host/inspect.js +96 -6
- package/src/client/frame-host/keys.d.ts +6 -0
- package/src/client/frame-host/keys.js +59 -0
- package/src/client/frame-host/trail.d.ts +7 -0
- package/src/client/frame-host/trail.js +204 -0
- package/src/client/shell/App.tsx +52 -8
- package/src/client/shell/Comments.tsx +20 -6
- package/src/client/shell/JamSurface.tsx +346 -0
- package/src/client/shell/Play.tsx +32 -9
- package/src/client/shell/Tip.tsx +8 -3
- package/src/client/shell/Toolbar.tsx +5 -4
- package/src/client/shell/canvas/Canvas.tsx +12 -2
- package/src/client/shell/canvas/FrameNode.tsx +14 -4
- package/src/client/shell/comments-store.ts +23 -16
- package/src/client/shell/icons.tsx +17 -0
- package/src/client/shell/jam-capture.ts +1005 -0
- package/src/client/shell/jam-keys.ts +358 -0
- package/src/client/shell/jam-lane.tsx +249 -0
- package/src/client/shell/jam-lines.ts +115 -0
- package/src/client/shell/jam-panel.tsx +556 -0
- package/src/client/shell/jam-queue.ts +126 -0
- package/src/client/shell/jam-session.tsx +389 -0
- package/src/client/shell/jam-state.ts +103 -0
- package/src/client/shell/jam-surface-parts.tsx +106 -0
- package/src/client/shell/jam-ui.tsx +104 -0
- package/src/client/shell/jam-voice.ts +479 -0
- package/src/client/shell/sound.ts +22 -0
- package/src/client/shell/stage-size.ts +11 -0
- package/src/client/shell/store.ts +47 -17
- package/src/client/shell/styles.css +564 -2
- package/src/client/stage/main.tsx +18 -2
- package/src/shared/capture-frames.ts +41 -0
- package/src/shared/events.ts +19 -4
- package/src/shared/speech.ts +16 -0
- package/templates/AGENTS-embedded.md +10 -2
- package/templates/AGENTS-studio.md +10 -2
- package/templates/instructions/iterate.md +8 -6
- package/templates/instructions/jam.md +131 -59
- package/dist/daemon-Cl8KXGW4.mjs +0 -1523
- package/dist/perf-QJIWtTw1.mjs +0 -68
- package/dist/shot-jdO_B6Qw.mjs +0 -86
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,122 @@
|
|
|
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.26.1 - 2026-10-20
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **Pictures are what the frame shows** ([#14](https://github.com/TNEP4/marver/issues/14),
|
|
10
|
+
[#24](https://github.com/TNEP4/marver/issues/24)). About one picture in thirty at 2x - and a very tall frame almost
|
|
11
|
+
every time - came back as the frame's top-left corner repeated across the image, with nothing to say it was wrong.
|
|
12
|
+
Headless Chrome copied its view before resizing it for the picture and tiled the old copy. Each picture now gets a
|
|
13
|
+
window of its own, and a fixed-size frame or a slide has its window sized to the picture first, so there is nothing
|
|
14
|
+
left to resize: in 900 pictures, none came back tiled (31 did before). Every picture - a tall content frame's too - is
|
|
15
|
+
also checked for that tiling; one that still shows it is taken again (a tall one at 1x if need be), and if it never
|
|
16
|
+
comes out right the shot fails instead of shipping a wrong picture. This covers `marver shot`, your agent's
|
|
17
|
+
pictures, copy as image, video posters and Jam's before and after pictures.
|
|
18
|
+
- **Content frames keep their diagrams** ([#7](https://github.com/TNEP4/marver/issues/7)). A state, sequence, gantt or
|
|
19
|
+
pie diagram - or a first `Md` - could fail with "Failed to fetch dynamically imported module" until `marver dev`
|
|
20
|
+
restarted. Another Vite server on the same project (your app's own, for one) was replacing the files the canvas had
|
|
21
|
+
prepared. The canvas now keeps its own folder for them, `node_modules/.vite-marver`. The first chart frame also loads
|
|
22
|
+
much faster: its chart library is prepared up front (about 40 requests instead of 600).
|
|
23
|
+
- **A capture outlives its page.** Closing or reloading the tab while a capture was recording or finishing used to
|
|
24
|
+
lose it. Now it is kept as it stood - with your notes, and a line saying the page closed before it finished - and
|
|
25
|
+
comes back as a draft to read, resume or drop. It never goes to your agent on its own, even with
|
|
26
|
+
`jam: { capture: "at-once" }`.
|
|
27
|
+
- **`marver shot` works inside a sandbox.** An agent whose sandbox blocks the network (Codex) could not reach the
|
|
28
|
+
canvas and said it could not look at its work. The command now takes the same picture through the canvas's file
|
|
29
|
+
inbox when it cannot connect, with the same output.
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- **`npx marver perf --jam`** shows how long each step of Jam takes on your machine - a capture sealing, its pictures,
|
|
34
|
+
your words, naming, the queue, your agent, the pictures before and after, the reply - with the median, the slowest
|
|
35
|
+
and anything that went wrong lately. It reads `design/.local/perf/jam.jsonl`: numbers and fixed codes only, never
|
|
36
|
+
your words, kept on your machine.
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
From a first long real Jam session:
|
|
41
|
+
|
|
42
|
+
- **Review shows before and after at once.** Side by side for a tall frame (a phone), one above the other for a wide
|
|
43
|
+
one (a laptop), and the panel grows as wide as that takes, up to the window. **Both · Before · After** shows one
|
|
44
|
+
alone; `B` steps through them.
|
|
45
|
+
- **The lane stays readable when full.** Its tiles lost their frosted blur exactly when the lane scrolled (its edge
|
|
46
|
+
fades cut them off from what was behind); the fades are now strips of their own, and the tiles a touch more opaque.
|
|
47
|
+
- **Done captures fold into one tile.** With two or more done, one **Done** tile - "4 captures · 6 frames changed" -
|
|
48
|
+
keeps the lane for what still needs you. Click it (or `⏎` with `Q`) to open them, a collapse tile folds them back.
|
|
49
|
+
- **The laser is a pointer.** `L` now lights only the element under the cursor, as comment mode does; a click still
|
|
50
|
+
copies its path (or, in a capture, is its pick). The old laser, every element outlined, is **inspect**: `⌥L`, or
|
|
51
|
+
⌥-click the laser button. `Esc` turns a laser off before it closes or drops anything.
|
|
52
|
+
|
|
53
|
+
### Upgrading
|
|
54
|
+
|
|
55
|
+
`npm install @marver-design/marver@latest`, then `npx marver init` to refresh the agent instructions (a sandboxed agent
|
|
56
|
+
now knows `marver shot` reaches the canvas through the file inbox). The first `marver dev` after the upgrade prepares
|
|
57
|
+
its new `node_modules/.vite-marver` folder (a moment, once).
|
|
58
|
+
|
|
59
|
+
## 0.26.0 - 2026-10-20
|
|
60
|
+
|
|
61
|
+
### Added
|
|
62
|
+
|
|
63
|
+
- **Captures: talk through the canvas.** Press `S`, point at things, click through the
|
|
64
|
+
prototype and say what is wrong, then `E`. A capture records your words, every click, pick
|
|
65
|
+
and note, the screens and devices you went through, and pictures of the frames you touched -
|
|
66
|
+
at the size you were looking at them - and your agent works from that one record. Its
|
|
67
|
+
read-back lets you fix a word, add a note after the fact, and decide: `⏎` add to queue,
|
|
68
|
+
`K` keep, `R` resume (it ended too soon), `Esc` drop
|
|
69
|
+
([Jam sessions and captures](docs/jam-session.md)).
|
|
70
|
+
- **A lane, and review with before and after.** Captures line up along the bottom of the canvas
|
|
71
|
+
in the order you made them - queued, working, ready to review. A soft chime says one is ready;
|
|
72
|
+
`V` opens it: the agent's reply beside each frame it changed, `B` flips before and after, a
|
|
73
|
+
frame it made is marked New, and a Capture tab shows what you recorded. `⏎` looks good, `⇧⏎`
|
|
74
|
+
sends it back with what is still wrong. When you asked for something new beside a frame, the
|
|
75
|
+
capture's thread moves onto the new frame.
|
|
76
|
+
- **Sessions.** `J` runs a whole review as one session: it starts recording at once, keeps the
|
|
77
|
+
canvas lit with a clock while you work, and listens between captures. `J` again wraps up - you
|
|
78
|
+
say how to take it in, and your agent writes the record to `context/sessions/`: what was
|
|
79
|
+
asked, what was done, what is left, the decisions heard.
|
|
80
|
+
- **Words, on this Mac.** What you say becomes words with NVIDIA's Parakeet v3, run locally:
|
|
81
|
+
Marver asks before the one 488 MB download, and the audio never leaves your machine or touches
|
|
82
|
+
the disk. Where the speech engine cannot install, captures keep typed notes.
|
|
83
|
+
- **Captures name themselves.** With Claude Code, each capture gets a few-word name as soon as its
|
|
84
|
+
words are in, from Claude Haiku through your own login - a draft's words go to Anthropic for
|
|
85
|
+
this. A name you give wins; `jam: { names: false }` turns it off.
|
|
86
|
+
- **Every element knows its source.** In `marver dev`, design elements carry `data-mv-loc` - the
|
|
87
|
+
file and line they were written at - so your agent goes straight to the code you pointed at
|
|
88
|
+
(`jam: { loc: false }` turns it off; never in a published build).
|
|
89
|
+
|
|
90
|
+
### Changed
|
|
91
|
+
|
|
92
|
+
- **Only a tag starts work** ([#5](https://github.com/TNEP4/marver/issues/5)). A plain reply in a
|
|
93
|
+
thread - even one answering Marver - is conversation and starts nothing; `npx marver marks`
|
|
94
|
+
lists it under "answered by you" for your chat agent. Each tag is a card answered in its own
|
|
95
|
+
thread, with the thread as it stood when you sent it.
|
|
96
|
+
- **One job per frame.** Your agent still works on up to `jam.concurrency` jobs at once, but never
|
|
97
|
+
two on the same frame, and a job's results are posted before anything new starts. A job edits
|
|
98
|
+
only the frames it was given; one that needs a shared file (a kit, a layout) comes back to run
|
|
99
|
+
alone.
|
|
100
|
+
- **One canvas per folder** ([#19](https://github.com/TNEP4/marver/issues/19)). A second `marver dev`
|
|
101
|
+
in the same folder stops with "a canvas already runs here" and its link, instead of taking over
|
|
102
|
+
the first one's record.
|
|
103
|
+
|
|
104
|
+
### Fixed
|
|
105
|
+
|
|
106
|
+
- **Marver's notes and replies stay on your machine when you publish.** The docs always said so, and
|
|
107
|
+
`marver comments sync` never pushed them, but `marver build` copied each board's whole comment log
|
|
108
|
+
into the published canvas. Now a build ships only people's threads: a note Marver pinned, its
|
|
109
|
+
replies in your threads, and every capture's thread stay local.
|
|
110
|
+
- **An agent in a sandbox still looks at its work.** Codex runs with the network blocked, so
|
|
111
|
+
`marver shot` could not reach the canvas and it replied that it could not check the render; the
|
|
112
|
+
instructions now send it to the request file, which works in every sandbox.
|
|
113
|
+
|
|
114
|
+
### Upgrading
|
|
115
|
+
|
|
116
|
+
`npm install @marver-design/marver@latest`, then `npx marver init` to refresh the agent
|
|
117
|
+
instructions. On its first boot `marver dev` upgrades the jam journal and says what changed; a
|
|
118
|
+
job that was running under 0.25 shows as failed with Retry. Replies you made before the upgrade
|
|
119
|
+
are listed by `npx marver marks` as "earlier, maybe handled".
|
|
120
|
+
|
|
5
121
|
## 0.25.1 - 2026-10-17
|
|
6
122
|
|
|
7
123
|
### Fixed
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
Screens, prototypes, specs, and now slide decks - all real code, all on one canvas, all shareable with people who sign in as themselves.
|
|
10
10
|
|
|
11
|
-
[marver.design](https://marver.design) · [Boards and folders](docs/boards-and-folders.md) · [Context](docs/context.md) · [Slides](docs/slides.md) · [Sticky notes](docs/sticky-notes.md) · [Live Jam](docs/live-jam.md) · [Deploying a canvas](docs/publish.md) · [Sharing](docs/sharing.md) · [Changelog](CHANGELOG.md) · [Contributing](CONTRIBUTING.md) · [Issues](https://github.com/TNEP4/marver/issues)
|
|
11
|
+
[marver.design](https://marver.design) · [Boards and folders](docs/boards-and-folders.md) · [Context](docs/context.md) · [Slides](docs/slides.md) · [Sticky notes](docs/sticky-notes.md) · [Live Jam](docs/live-jam.md) · [Jam sessions](docs/jam-session.md) · [Deploying a canvas](docs/publish.md) · [Sharing](docs/sharing.md) · [Changelog](CHANGELOG.md) · [Contributing](CONTRIBUTING.md) · [Issues](https://github.com/TNEP4/marver/issues)
|
|
12
12
|
|
|
13
13
|
## Quickstart
|
|
14
14
|
|
|
@@ -77,7 +77,7 @@ Publish a deck with `{ "boards": { "pitch": { "max": "read", "type": "slides", "
|
|
|
77
77
|
## Collaboration
|
|
78
78
|
|
|
79
79
|
- **Comments.** Google-Docs-style feedback pinned to actual elements. Press `c`, click a div inside a frame, write - the thread lives on that element and survives edits via a layered anchor (source semantics → structure → fuzzy text). Type `@` to mention someone who can already see the canvas; they get a mail with the comment and a link that lands on the thread, and the mention pulses its pin in their canvas with an in-app notification. A reply mails the thread's other participants, throttled per person and thread; anyone can mute a canvas's mail. `marver dev` syncs the same threads into `design/comments/*.jsonl`, where your agent works the queue: `npx marver comments list --open --json` → fork a variant → `resolve --addressed-in`. Live via SSE; one deploy, no extra services.
|
|
80
|
-
- **Laser mode.** Press `l`:
|
|
80
|
+
- **Laser mode.** Press `l`: the element under your cursor lights up with a label naming it and its source. Click it to copy its full address (frame file + CSS path) for the agent. `⌥L` is the inspect laser: every element in every frame gets depth-hued outlines - the fastest way to see structure. (On a published canvas, laser needs `"reveal": { "source": true }` in `publish.json` - source paths go opaque by default.)
|
|
81
81
|
- **Publishing.** `npx marver build` exports a static canvas (default-closed: `design/publish.json` names what ships, each board's ceiling - `read` or `comment` - and, since 0.12, its **type** and **landing view**: `{ "max", "type": "doc" | "slides" | "design" | "sketch" | "refs" | "mix", "open": "canvas" | "board" | "present" | "focus" | "slides", "lock": true }`); `npx marver serve` hosts it. One deploy on Railway, Docker, or any static host - the [publishing guide](docs/publish.md) has the one-pagers.
|
|
82
82
|
- **Sharing, person by person.** On a canvas with a persistent volume, `marver share add sam@acme.com --role comment` (or the browser's share dialog) grants one person access, `@acme.com` grants a domain, `general private|password|public` sets the floor, and a refused visitor can ask to get in - approve from the terminal. One resolver answers "what can this person do here", and `marver share explain <email>` shows its reasoning. The [sharing guide](docs/sharing.md) has the whole surface.
|
|
83
83
|
|
|
@@ -95,6 +95,8 @@ Tag `@marver` in a comment and your own coding agent picks it up - reads the thr
|
|
|
95
95
|
|
|
96
96
|
The trust boundary is hard: only comments written on the owner's machine trigger (a device-bound ledger - a drive-by comment on a published canvas cannot start work), the agent runs locked down (each CLI with its shell removed or OS-sandboxed - the per-agent table is in the guide), and every reply carries provenance: which agent ran it, as which dev user, on which model when the agent names one. Marver ships no AI; the agent that acts is the one you already run. The [Live Jam guide](docs/live-jam.md) has the config block, every agent's jail, and what to check when a mention does nothing.
|
|
97
97
|
|
|
98
|
+
**Captures and sessions.** Or skip the typing: press `S`, point at things, click through the prototype and say what is wrong, then `E`. A capture records your words (transcribed on your machine - the audio never leaves it), every click, pick and note, and pictures of the frames you touched at the size you saw them, and your agent works from that. Captures line up in a lane along the bottom - queued, working, ready to review - and each comes back with before and after pictures: `⏎` looks good, `⇧⏎` more work. `J` runs a whole review as a session and ends with a written record of it in `context/sessions/`. The [Jam sessions guide](docs/jam-session.md) has the keys and the settings.
|
|
99
|
+
|
|
98
100
|
## Working state
|
|
99
101
|
|
|
100
102
|
The same glow, driven from the terminal. When your agent takes a request, it creates the frame files first, pins them on a board, and runs `npx marver work start <scene/frame ...>` - you see the work land on the canvas in seconds, watch it shimmer while subagents build in parallel, and see it settle on `work done`. Marks self-expire, so a crashed agent never leaves a frame glowing. Its reply ends with the canvas link `work done` prints - the board, opened on the frames it changed - and where it needs your eyes it pins a note on the frame as Marver (`npx marver comments new`), so you are pinged on the thing itself. And `npx marver shot --scene <scene>` (or `<scene/frame ...>`, `--all`; `[--scale 4]`) renders frames headless to PNGs - a whole scene in one browser, several frames at a time - so the agent can look at what it built before it says it is done - the same picture you get from the canvas's copy-as-image.
|
|
@@ -132,7 +134,7 @@ The same glow, driven from the terminal. When your agent takes a request, it cre
|
|
|
132
134
|
|
|
133
135
|
**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
136
|
|
|
135
|
-
**Modes** - `c` comment mode · `l` laser
|
|
137
|
+
**Modes** - `c` comment mode · `l` laser · `⌥L` inspect laser · `⇧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.
|
|
136
138
|
|
|
137
139
|
**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.
|
|
138
140
|
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
1
2
|
//#region src/shared/anchor.ts
|
|
3
|
+
var anchor_exports = /* @__PURE__ */ __exportAll({
|
|
4
|
+
readTarget: () => readTarget,
|
|
5
|
+
uncheckedAnchor: () => uncheckedAnchor
|
|
6
|
+
});
|
|
2
7
|
/** Read a target from untrusted input - CLI flags, a Live Jam block: exactly one of `on` / `at`, an
|
|
3
8
|
* optional whole `nth` from 1. A string is the reason it is not one. */
|
|
4
9
|
function readTarget(raw) {
|
|
@@ -30,4 +35,4 @@ function uncheckedAnchor(t) {
|
|
|
30
35
|
} };
|
|
31
36
|
}
|
|
32
37
|
//#endregion
|
|
33
|
-
export { readTarget, uncheckedAnchor };
|
|
38
|
+
export { readTarget as n, uncheckedAnchor as r, anchor_exports as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MOUNTED, frameUrl, manifestFrame, planShot, withBrowser } from "./shot-
|
|
1
|
+
import { MOUNTED, frameUrl, manifestFrame, planShot, withBrowser } from "./shot-DQeR_Pfn.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
|
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
import { modelPaths, modelsReady } from "./speech-models-DomiLQcY.mjs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { Worker } from "node:worker_threads";
|
|
4
|
+
import { randomBytes } from "node:crypto";
|
|
5
|
+
import { WebSocketServer } from "ws";
|
|
6
|
+
const TICKET_MS = 3e4;
|
|
7
|
+
/** A segment on the socket: a capture's audio or a session's talk, numbered (`<owner>~<n>`). */
|
|
8
|
+
const ID = /^(cap|ses)-\d{10,16}-[a-z0-9]{4,12}~[a-z0-9]{1,24}$/;
|
|
9
|
+
const tickets = /* @__PURE__ */ new Map();
|
|
10
|
+
/** A single-use ticket for the audio socket, good for 30 s. */
|
|
11
|
+
function issueTicket(now = Date.now()) {
|
|
12
|
+
for (const [t, exp] of tickets) if (exp <= now) tickets.delete(t);
|
|
13
|
+
const t = randomBytes(24).toString("hex");
|
|
14
|
+
tickets.set(t, now + TICKET_MS);
|
|
15
|
+
return t;
|
|
16
|
+
}
|
|
17
|
+
/** Take a ticket: true once, while it lives. */
|
|
18
|
+
function takeTicket(t, now = Date.now()) {
|
|
19
|
+
if (!t) return false;
|
|
20
|
+
const exp = tickets.get(t);
|
|
21
|
+
tickets.delete(t);
|
|
22
|
+
return exp !== void 0 && exp > now;
|
|
23
|
+
}
|
|
24
|
+
const cookie = (req, name) => new RegExp(`(?:^|;\\s*)${name}=([\\w-]+)`).exec(String(req.headers.cookie ?? ""))?.[1];
|
|
25
|
+
/** May this upgrade open the audio socket? The ticket (taken now), the owner's cookie, and an Origin that
|
|
26
|
+
* is exactly this canvas (its host:port equals the request's Host). */
|
|
27
|
+
function upgradeAllowed(req, now = Date.now()) {
|
|
28
|
+
const ticket = new URL(req.url ?? "", "http://x").searchParams.get("ticket");
|
|
29
|
+
const origin = req.headers.origin;
|
|
30
|
+
let sameOrigin = false;
|
|
31
|
+
try {
|
|
32
|
+
sameOrigin = !!origin && new URL(String(origin)).host === String(req.headers.host ?? "");
|
|
33
|
+
} catch {
|
|
34
|
+
sameOrigin = false;
|
|
35
|
+
}
|
|
36
|
+
return takeTicket(ticket, now) && sameOrigin && !!cookie(req, "mv_c");
|
|
37
|
+
}
|
|
38
|
+
/** The running dev server's speech service, for the API routes. */
|
|
39
|
+
const speechLive = {};
|
|
40
|
+
/** The model holds about a gigabyte while loaded: with no capture for this long, the worker lets it go
|
|
41
|
+
* (the next capture loads it again in under a second). */
|
|
42
|
+
const IDLE_MS = 6e5;
|
|
43
|
+
function createSpeech(opts = {}) {
|
|
44
|
+
const ready_ = opts.modelsReady ?? modelsReady;
|
|
45
|
+
/** talk segments: their start on the page clock (ms), so their words get the time they were said */
|
|
46
|
+
const talkT0 = /* @__PURE__ */ new Map();
|
|
47
|
+
let worker = null;
|
|
48
|
+
let ready = null;
|
|
49
|
+
let unavailable;
|
|
50
|
+
let live = null;
|
|
51
|
+
let lastUse = Date.now();
|
|
52
|
+
const owners = /* @__PURE__ */ new Map();
|
|
53
|
+
/** talk segments open on a socket: how to end each one from here */
|
|
54
|
+
const talk = /* @__PURE__ */ new Map();
|
|
55
|
+
const idle = setInterval(() => {
|
|
56
|
+
if (worker && owners.size === 0 && Date.now() - lastUse > (opts.idleMs ?? IDLE_MS)) {
|
|
57
|
+
const w = worker;
|
|
58
|
+
worker = null;
|
|
59
|
+
ready = null;
|
|
60
|
+
w.terminate();
|
|
61
|
+
}
|
|
62
|
+
}, Math.min(6e4, opts.idleMs ?? IDLE_MS));
|
|
63
|
+
idle.unref();
|
|
64
|
+
const engineMissing = () => {
|
|
65
|
+
if (opts.engineMissing) return opts.engineMissing();
|
|
66
|
+
try {
|
|
67
|
+
createRequire(import.meta.url).resolve("sherpa-onnx-node");
|
|
68
|
+
return;
|
|
69
|
+
} catch {
|
|
70
|
+
return "the speech engine (sherpa-onnx-node) is not installed - typed notes only";
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const tell = (ws, m) => {
|
|
74
|
+
if (ws && ws.readyState === ws.OPEN) ws.send(JSON.stringify(m));
|
|
75
|
+
};
|
|
76
|
+
/** The worker, started once (and again after it went): resolves to it once the model is loaded, or to
|
|
77
|
+
* null - the engine missing or failing, the model not there - and says why in `unavailable`. */
|
|
78
|
+
const start = () => {
|
|
79
|
+
if (ready) return ready;
|
|
80
|
+
const p = (async () => {
|
|
81
|
+
const missing = engineMissing();
|
|
82
|
+
if (missing) {
|
|
83
|
+
unavailable = missing;
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
if (!await ready_()) return null;
|
|
87
|
+
const url = opts.workerUrl ?? new URL(import.meta.url.endsWith(".ts") ? "./speech-worker.ts" : "./speech-worker.mjs", import.meta.url);
|
|
88
|
+
const w = new Worker(url, { workerData: { paths: modelPaths() } });
|
|
89
|
+
w.unref();
|
|
90
|
+
return new Promise((resolve) => {
|
|
91
|
+
let settled = false;
|
|
92
|
+
const settle = (v) => {
|
|
93
|
+
if (!settled) {
|
|
94
|
+
settled = true;
|
|
95
|
+
resolve(v);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
w.on("message", (m) => {
|
|
99
|
+
if (m?.type === "timing") {
|
|
100
|
+
try {
|
|
101
|
+
opts.onTiming?.({
|
|
102
|
+
audioMs: m.audioMs,
|
|
103
|
+
waitMs: m.waitMs,
|
|
104
|
+
decodeMs: m.decodeMs,
|
|
105
|
+
backlogMs: m.backlogMs
|
|
106
|
+
});
|
|
107
|
+
} catch {}
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if (m?.type === "ready") {
|
|
111
|
+
if (typeof m.modelLoadMs === "number") try {
|
|
112
|
+
opts.onTiming?.({ modelLoadMs: m.modelLoadMs });
|
|
113
|
+
} catch {}
|
|
114
|
+
if (worker && worker !== w) {
|
|
115
|
+
w.terminate();
|
|
116
|
+
settle(worker);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
worker = w;
|
|
120
|
+
settle(w);
|
|
121
|
+
} else if (m?.type === "unavailable") {
|
|
122
|
+
unavailable = `the speech engine could not start: ${m.reason} - typed notes only`;
|
|
123
|
+
w.terminate();
|
|
124
|
+
settle(null);
|
|
125
|
+
} else if (m?.type === "words" || m?.type === "final") {
|
|
126
|
+
const o = owners.get(m.capture);
|
|
127
|
+
if (!o || o.w !== w) return;
|
|
128
|
+
if (m.type === "final") {
|
|
129
|
+
owners.delete(m.capture);
|
|
130
|
+
o.done?.();
|
|
131
|
+
o.onFinal?.(m.incomplete !== true);
|
|
132
|
+
}
|
|
133
|
+
const t0 = talkT0.get(m.capture);
|
|
134
|
+
if (m.type === "words" && t0 !== void 0 && Array.isArray(m.words)) try {
|
|
135
|
+
opts.onTalk?.({
|
|
136
|
+
session: m.capture.split("~")[0],
|
|
137
|
+
words: m.words.map((x) => ({
|
|
138
|
+
...x,
|
|
139
|
+
at: t0 + x.at / 16e3 * 1e3
|
|
140
|
+
}))
|
|
141
|
+
});
|
|
142
|
+
} catch {}
|
|
143
|
+
if (m.type === "final") talkT0.delete(m.capture);
|
|
144
|
+
tell(o.ws, m);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
let down = false;
|
|
148
|
+
const gone = (why) => {
|
|
149
|
+
if (down) return;
|
|
150
|
+
down = true;
|
|
151
|
+
if (worker === w) {
|
|
152
|
+
worker = null;
|
|
153
|
+
ready = null;
|
|
154
|
+
}
|
|
155
|
+
if (!settled) {
|
|
156
|
+
unavailable = `the speech engine stopped: ${why} - typed notes only`;
|
|
157
|
+
settle(null);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
for (const [id, o] of [...owners]) if (o.w === w) {
|
|
161
|
+
owners.delete(id);
|
|
162
|
+
o.done?.();
|
|
163
|
+
o.onFinal?.(false);
|
|
164
|
+
tell(o.ws, {
|
|
165
|
+
type: "final",
|
|
166
|
+
capture: id,
|
|
167
|
+
incomplete: true
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
w.on("error", (err) => gone(err.message));
|
|
172
|
+
w.on("exit", (code) => gone(`exit ${code}`));
|
|
173
|
+
});
|
|
174
|
+
})();
|
|
175
|
+
ready = p;
|
|
176
|
+
p.then((w) => {
|
|
177
|
+
if (!w && ready === p) ready = null;
|
|
178
|
+
});
|
|
179
|
+
return p;
|
|
180
|
+
};
|
|
181
|
+
/** Busy: a segment open on the live connection, or its last words not back - or the connection just opened
|
|
182
|
+
* (its page is still starting its microphone: a few seconds before its first segment). */
|
|
183
|
+
let liveSince = 0;
|
|
184
|
+
const busyNow = () => {
|
|
185
|
+
const ws = live;
|
|
186
|
+
if (!ws || ws.readyState !== ws.OPEN) return false;
|
|
187
|
+
return [...owners.values()].some((o) => o.ws === ws) || Date.now() - liveSince < 5e3;
|
|
188
|
+
};
|
|
189
|
+
const onSocket = (ws) => {
|
|
190
|
+
if (live && live !== ws) try {
|
|
191
|
+
live.close(4e3, "another audio connection took over");
|
|
192
|
+
} catch {}
|
|
193
|
+
live = ws;
|
|
194
|
+
liveSince = Date.now();
|
|
195
|
+
let closed = false;
|
|
196
|
+
const caps = /* @__PURE__ */ new Map();
|
|
197
|
+
const then = (c, f, otherwise) => {
|
|
198
|
+
c.gate = c.gate.then((w) => {
|
|
199
|
+
if (w && worker === w && (!closed || c.keep)) f(w);
|
|
200
|
+
else otherwise?.();
|
|
201
|
+
return w;
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
ws.on("message", (data, isBinary) => {
|
|
205
|
+
lastUse = Date.now();
|
|
206
|
+
if (isBinary) {
|
|
207
|
+
const buf = Buffer.isBuffer(data) ? data : Buffer.concat(data);
|
|
208
|
+
const n = buf.length ? buf[0] : 0;
|
|
209
|
+
if (buf.length < 1 + n + 6 || (buf.length - 1 - n - 4) % 2) return;
|
|
210
|
+
const id = buf.toString("utf8", 1, 1 + n);
|
|
211
|
+
const c = caps.get(id);
|
|
212
|
+
if (!c || c.ended || c.dropped) return;
|
|
213
|
+
const offset = buf.readUInt32LE(1 + n);
|
|
214
|
+
const pcm = new Int16Array(buf.buffer.slice(buf.byteOffset + 1 + n + 4, buf.byteOffset + buf.length));
|
|
215
|
+
c.sent = Math.max(c.sent, offset + pcm.length);
|
|
216
|
+
then(c, (w) => {
|
|
217
|
+
if (!c.dropped) w.postMessage({
|
|
218
|
+
type: "audio",
|
|
219
|
+
capture: id,
|
|
220
|
+
offset,
|
|
221
|
+
pcm
|
|
222
|
+
}, [pcm.buffer]);
|
|
223
|
+
});
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
let m;
|
|
227
|
+
try {
|
|
228
|
+
m = JSON.parse(String(data));
|
|
229
|
+
} catch {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (typeof m?.capture !== "string" || !ID.test(m.capture)) return;
|
|
233
|
+
const id = m.capture;
|
|
234
|
+
if (m.type === "begin") {
|
|
235
|
+
const prev = caps.get(id);
|
|
236
|
+
if (prev && !prev.ended && !prev.dropped && owners.has(id)) return;
|
|
237
|
+
if (prev) prev.dropped = true;
|
|
238
|
+
const own = { ws };
|
|
239
|
+
owners.set(id, own);
|
|
240
|
+
if (id.startsWith("ses-") && Number.isFinite(m.t0)) talkT0.set(id, Number(m.t0));
|
|
241
|
+
const c = {
|
|
242
|
+
gate: Promise.resolve(null),
|
|
243
|
+
ended: false,
|
|
244
|
+
dropped: false,
|
|
245
|
+
sent: 0
|
|
246
|
+
};
|
|
247
|
+
own.done = () => {
|
|
248
|
+
if (caps.get(id) === c) caps.delete(id);
|
|
249
|
+
talkT0.delete(id);
|
|
250
|
+
talk.delete(id);
|
|
251
|
+
};
|
|
252
|
+
if (id.startsWith("ses-")) {
|
|
253
|
+
let finished;
|
|
254
|
+
const final = new Promise((r) => {
|
|
255
|
+
finished = r;
|
|
256
|
+
});
|
|
257
|
+
let over = false;
|
|
258
|
+
own.onFinal = (whole) => {
|
|
259
|
+
if (over) return;
|
|
260
|
+
over = true;
|
|
261
|
+
if (!whole && c.sent > 0) try {
|
|
262
|
+
opts.onTalk?.({
|
|
263
|
+
session: id.split("~")[0],
|
|
264
|
+
words: [{
|
|
265
|
+
w: "[words lost]",
|
|
266
|
+
at: Date.now(),
|
|
267
|
+
lost: true
|
|
268
|
+
}]
|
|
269
|
+
});
|
|
270
|
+
} catch {}
|
|
271
|
+
finished();
|
|
272
|
+
};
|
|
273
|
+
const lose = () => {
|
|
274
|
+
if (owners.get(id) === own) owners.delete(id);
|
|
275
|
+
own.done?.();
|
|
276
|
+
own.onFinal?.(false);
|
|
277
|
+
};
|
|
278
|
+
talk.set(id, () => {
|
|
279
|
+
if (!c.ended && !c.dropped) {
|
|
280
|
+
c.ended = true;
|
|
281
|
+
then(c, (w) => w.postMessage({
|
|
282
|
+
type: "end",
|
|
283
|
+
capture: id,
|
|
284
|
+
lastSample: c.sent
|
|
285
|
+
}), () => lose());
|
|
286
|
+
}
|
|
287
|
+
if (c.dropped) finished();
|
|
288
|
+
return Promise.race([final.then(() => true), new Promise((r) => setTimeout(() => r(false), opts.talkWaitMs ?? 1e4))]);
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
c.gate = start().then((w) => {
|
|
292
|
+
if (!w) {
|
|
293
|
+
owners.delete(id);
|
|
294
|
+
own.done?.();
|
|
295
|
+
own.onFinal?.(false);
|
|
296
|
+
tell(ws, {
|
|
297
|
+
type: "unavailable",
|
|
298
|
+
capture: id,
|
|
299
|
+
reason: unavailable ?? "the speech model is not ready - typed notes only"
|
|
300
|
+
});
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
if (closed && !c.keep || c.dropped || worker !== w) return null;
|
|
304
|
+
own.w = w;
|
|
305
|
+
w.postMessage({
|
|
306
|
+
type: "begin",
|
|
307
|
+
capture: id
|
|
308
|
+
});
|
|
309
|
+
return w;
|
|
310
|
+
});
|
|
311
|
+
caps.set(id, c);
|
|
312
|
+
} else if (m.type === "end") {
|
|
313
|
+
const c = caps.get(id);
|
|
314
|
+
if (!c || c.ended || c.dropped) {
|
|
315
|
+
tell(ws, {
|
|
316
|
+
type: "final",
|
|
317
|
+
capture: id,
|
|
318
|
+
incomplete: true
|
|
319
|
+
});
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
c.ended = true;
|
|
323
|
+
const lastSample = Number(m.lastSample);
|
|
324
|
+
then(c, (w) => w.postMessage({
|
|
325
|
+
type: "end",
|
|
326
|
+
capture: id,
|
|
327
|
+
lastSample: Number.isFinite(lastSample) ? lastSample : 0
|
|
328
|
+
}), () => {
|
|
329
|
+
const o = owners.get(id);
|
|
330
|
+
o?.done?.();
|
|
331
|
+
o?.onFinal?.(false);
|
|
332
|
+
owners.delete(id);
|
|
333
|
+
tell(ws, {
|
|
334
|
+
type: "final",
|
|
335
|
+
capture: id,
|
|
336
|
+
incomplete: true
|
|
337
|
+
});
|
|
338
|
+
});
|
|
339
|
+
} else if (m.type === "drop") {
|
|
340
|
+
const c = caps.get(id);
|
|
341
|
+
if (!c || c.dropped) return;
|
|
342
|
+
c.dropped = true;
|
|
343
|
+
owners.get(id)?.done?.();
|
|
344
|
+
owners.get(id)?.onFinal?.(true);
|
|
345
|
+
owners.delete(id);
|
|
346
|
+
then(c, (w) => w.postMessage({
|
|
347
|
+
type: "drop",
|
|
348
|
+
capture: id
|
|
349
|
+
}));
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
ws.on("close", () => {
|
|
353
|
+
closed = true;
|
|
354
|
+
if (live === ws) live = null;
|
|
355
|
+
for (const [id, c] of caps) {
|
|
356
|
+
if (id.startsWith("ses-") && !c.dropped) {
|
|
357
|
+
c.keep = true;
|
|
358
|
+
if (!c.ended) {
|
|
359
|
+
c.ended = true;
|
|
360
|
+
then(c, (w) => w.postMessage({
|
|
361
|
+
type: "end",
|
|
362
|
+
capture: id,
|
|
363
|
+
lastSample: c.sent
|
|
364
|
+
}), () => {
|
|
365
|
+
const o = owners.get(id);
|
|
366
|
+
owners.delete(id);
|
|
367
|
+
o?.done?.();
|
|
368
|
+
o?.onFinal?.(false);
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
continue;
|
|
372
|
+
}
|
|
373
|
+
talkT0.delete(id);
|
|
374
|
+
if (owners.get(id)?.ws === ws) owners.delete(id);
|
|
375
|
+
c.dropped = true;
|
|
376
|
+
worker?.postMessage({
|
|
377
|
+
type: "drop",
|
|
378
|
+
capture: id
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
const wss = new WebSocketServer({
|
|
384
|
+
noServer: true,
|
|
385
|
+
maxPayload: 1 << 20
|
|
386
|
+
});
|
|
387
|
+
return {
|
|
388
|
+
retry() {
|
|
389
|
+
if (engineMissing() || worker || ready) return;
|
|
390
|
+
unavailable = void 0;
|
|
391
|
+
},
|
|
392
|
+
async state() {
|
|
393
|
+
const missing = engineMissing();
|
|
394
|
+
if (missing) return {
|
|
395
|
+
state: "unavailable",
|
|
396
|
+
reason: missing
|
|
397
|
+
};
|
|
398
|
+
if (unavailable) return {
|
|
399
|
+
state: "unavailable",
|
|
400
|
+
reason: unavailable
|
|
401
|
+
};
|
|
402
|
+
if (!await ready_()) return { state: "needs-model" };
|
|
403
|
+
if (worker) return { state: "ready" };
|
|
404
|
+
start();
|
|
405
|
+
return unavailable ? {
|
|
406
|
+
state: "unavailable",
|
|
407
|
+
reason: unavailable
|
|
408
|
+
} : { state: "loading" };
|
|
409
|
+
},
|
|
410
|
+
busy() {
|
|
411
|
+
return busyNow();
|
|
412
|
+
},
|
|
413
|
+
async finishTalk(session) {
|
|
414
|
+
return (await Promise.all([...talk].filter(([id]) => id.startsWith(`${session}~`)).map(([, end]) => end()))).every(Boolean);
|
|
415
|
+
},
|
|
416
|
+
attach(server) {
|
|
417
|
+
server.on("upgrade", (req, socket, head) => {
|
|
418
|
+
if (!(req.url ?? "").startsWith("/__mv/api/jam/audio")) return;
|
|
419
|
+
if (!upgradeAllowed(req)) {
|
|
420
|
+
socket.write("HTTP/1.1 403 Forbidden\r\nConnection: close\r\n\r\n");
|
|
421
|
+
socket.destroy();
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
if (new URL(req.url ?? "", "http://x").searchParams.get("reclaim") === "1" && busyNow()) {
|
|
425
|
+
socket.write("HTTP/1.1 409 Conflict\r\nConnection: close\r\n\r\n");
|
|
426
|
+
socket.destroy();
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
wss.handleUpgrade(req, socket, head, (ws) => onSocket(ws));
|
|
430
|
+
});
|
|
431
|
+
},
|
|
432
|
+
stop() {
|
|
433
|
+
clearInterval(idle);
|
|
434
|
+
try {
|
|
435
|
+
live?.close();
|
|
436
|
+
} catch {}
|
|
437
|
+
worker?.terminate();
|
|
438
|
+
wss.close();
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
//#endregion
|
|
443
|
+
export { createSpeech, issueTicket, speechLive };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
2
|
import { closeSync, existsSync, fsyncSync, mkdirSync, openSync, readFileSync, renameSync, statSync, unlinkSync, writeSync } from "node:fs";
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
4
|
import { createHash, createHmac, randomBytes, scryptSync, timingSafeEqual } from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AREA, SURFACE, pool, shotConcurrency, withBrowser } from "./shot-
|
|
1
|
+
import { AREA, SURFACE, pool, shotConcurrency, withBrowser } from "./shot-DQeR_Pfn.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,8 +1,8 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
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-CGg6piKF.mjs";
|
|
3
3
|
import { T as readCapability, a as buildTree, b as FOLDER_MODULES, c as folderMap, f as isBoardName, k as resolveType, o as flatten, u as humanize, v as BOARD_TYPES, w as knownType } from "./board-tree-DRioF94d.mjs";
|
|
4
|
-
import { _ as STATUS_LABEL, d as annotateBoards, h as PHASE_LABEL, s as scanFrames } from "./manifest-
|
|
5
|
-
import { resolveTargets } from "./link-
|
|
4
|
+
import { _ as STATUS_LABEL, d as annotateBoards, h as PHASE_LABEL, s as scanFrames } from "./manifest-Nl3KSVOk.mjs";
|
|
5
|
+
import { resolveTargets } from "./link-BNzLvdhI.mjs";
|
|
6
6
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
|
8
8
|
//#region src/cli/boards.ts
|