@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/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
3
3
|
import { cac } from "cac";
|
|
4
4
|
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
5
5
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -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-D8DtrK_F.mjs");
|
|
86
86
|
init(resolve$1(opts.root), {
|
|
87
87
|
mode: opts.mode === "embedded" ? "embedded" : "studio",
|
|
88
88
|
demo: opts.demo !== false,
|
|
@@ -90,17 +90,23 @@ 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, DevLockError } = await import("./dev-Bw_qYWWq.mjs");
|
|
94
94
|
let port;
|
|
95
95
|
if (opts.port !== void 0) {
|
|
96
96
|
const n = Number(opts.port);
|
|
97
97
|
if (Number.isInteger(n) && n > 0 && n < 65536) port = n;
|
|
98
98
|
else console.warn(`[${NAME}] ignoring invalid --port "${opts.port}"`);
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
try {
|
|
101
|
+
await dev(resolve$1(opts.root), port);
|
|
102
|
+
} catch (err) {
|
|
103
|
+
if (!(err instanceof DevLockError)) throw err;
|
|
104
|
+
console.error(`\n ${err.message}\n`);
|
|
105
|
+
process.exit(1);
|
|
106
|
+
}
|
|
101
107
|
});
|
|
102
108
|
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-
|
|
109
|
+
const { buildSite } = await import("./build-BDRiO_mP.mjs");
|
|
104
110
|
try {
|
|
105
111
|
const boards = opts.boards === void 0 ? void 0 : typeof opts.boards === "string" ? opts.boards : "";
|
|
106
112
|
await buildSite(resolve$1(opts.root), boards, opts.allBoards === true, opts.embedSeeds === true, opts.textures !== false && !process.env.MARVER_NO_TEXTURES);
|
|
@@ -110,7 +116,7 @@ cli.command("build", "Static export → design/.dist (what ships comes from desi
|
|
|
110
116
|
}
|
|
111
117
|
});
|
|
112
118
|
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) => {
|
|
113
|
-
const { serve } = await import("./serve-
|
|
119
|
+
const { serve } = await import("./serve-C8rVheYk.mjs");
|
|
114
120
|
let port;
|
|
115
121
|
if (opts.port !== void 0) {
|
|
116
122
|
const n = Number(opts.port);
|
|
@@ -119,7 +125,7 @@ cli.command("serve", "Serve design/.dist (set MARVER_PASSWORD to gate it)").opti
|
|
|
119
125
|
serve(resolve$1(opts.root), port);
|
|
120
126
|
});
|
|
121
127
|
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) => {
|
|
122
|
-
const { commentsCommand } = await import("./comments-
|
|
128
|
+
const { commentsCommand } = await import("./comments-BqXua-XL.mjs");
|
|
123
129
|
try {
|
|
124
130
|
await commentsCommand(resolve$1(opts.root), action, value, opts);
|
|
125
131
|
} catch (err) {
|
|
@@ -128,7 +134,7 @@ cli.command("comments <action> [value]", "Comment collaboration: connect <url>
|
|
|
128
134
|
}
|
|
129
135
|
});
|
|
130
136
|
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) => {
|
|
131
|
-
const { shareCommand } = await import("./share
|
|
137
|
+
const { shareCommand } = await import("./share--oFJ1bCI.mjs");
|
|
132
138
|
try {
|
|
133
139
|
await shareCommand(resolve$1(opts.root), action, value, opts);
|
|
134
140
|
} catch (err) {
|
|
@@ -137,7 +143,7 @@ cli.command("share <action> [value]", "Sharing roster (owner): add <who> · remo
|
|
|
137
143
|
}
|
|
138
144
|
});
|
|
139
145
|
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-
|
|
146
|
+
const { workCommand } = await import("./work-VvX_JIgl.mjs");
|
|
141
147
|
try {
|
|
142
148
|
await workCommand(resolve$1(opts.root), action, frames ?? [], opts);
|
|
143
149
|
} catch (err) {
|
|
@@ -146,7 +152,7 @@ cli.command("work <action> [...frames]", "Working state on the canvas: start <sc
|
|
|
146
152
|
}
|
|
147
153
|
});
|
|
148
154
|
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) => {
|
|
149
|
-
const { linkCommand } = await import("./link-
|
|
155
|
+
const { linkCommand } = await import("./link-BNzLvdhI.mjs");
|
|
150
156
|
try {
|
|
151
157
|
await linkCommand(resolve$1(opts.root), targets ?? [], opts);
|
|
152
158
|
} catch (err) {
|
|
@@ -155,7 +161,7 @@ cli.command("link [...targets]", "The canvas link that lands on frames: link <sc
|
|
|
155
161
|
}
|
|
156
162
|
});
|
|
157
163
|
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) => {
|
|
158
|
-
const { boardsCommand, boardsNew, boardsPin } = await import("./boards-
|
|
164
|
+
const { boardsCommand, boardsNew, boardsPin } = await import("./boards-DYG22tOe.mjs");
|
|
159
165
|
const [name, ...frames] = args ?? [];
|
|
160
166
|
try {
|
|
161
167
|
if (action === void 0) boardsCommand(resolve$1(opts.root), opts);
|
|
@@ -177,7 +183,7 @@ cli.command("boards [action] [...args]", "The sidebar as files: every folder and
|
|
|
177
183
|
}
|
|
178
184
|
});
|
|
179
185
|
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) => {
|
|
180
|
-
const { foldersAdd } = await import("./boards-
|
|
186
|
+
const { foldersAdd } = await import("./boards-DYG22tOe.mjs");
|
|
181
187
|
try {
|
|
182
188
|
if (action !== "add") throw new Error(`unknown action "${action}" - \`folders add <module ...>\``);
|
|
183
189
|
const { added, existing } = foldersAdd(resolve$1(opts.root), modules);
|
|
@@ -189,7 +195,7 @@ cli.command("folders <action> [...modules]", "The shared sidebar's typed folders
|
|
|
189
195
|
}
|
|
190
196
|
});
|
|
191
197
|
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) => {
|
|
192
|
-
const ctx = await import("./context-
|
|
198
|
+
const ctx = await import("./context-HQ4Giw58.mjs");
|
|
193
199
|
const root = resolve$1(opts.root);
|
|
194
200
|
try {
|
|
195
201
|
if (action === "init") {
|
|
@@ -224,16 +230,16 @@ cli.command("context <action>", "The project's context/ (spec 19) · init: creat
|
|
|
224
230
|
process.exit(1);
|
|
225
231
|
}
|
|
226
232
|
});
|
|
227
|
-
cli.command("marks", "What the human has not reviewed: frames waiting on them (the ones that ask first) and frames new since they looked").option("--root <dir>", "Host repo root", { default: "." }).option("--json", "Machine-readable output").action(async (opts) => {
|
|
228
|
-
const { marksCommand } = await import("./marks-
|
|
233
|
+
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) => {
|
|
234
|
+
const { marksCommand } = await import("./marks-DyWMv_Z1.mjs");
|
|
229
235
|
marksCommand(resolve$1(opts.root), opts);
|
|
230
236
|
});
|
|
231
|
-
cli.command("perf", "The reload log: what each edit reloaded, page-wide reloads, the slowest frames to settle").option("--root <dir>", "Host repo root", { default: "." }).option("--minutes <n>", "How far back to read (default 60)").option("--json", "Machine-readable output").action(async (opts) => {
|
|
232
|
-
const { perfCommand } = await import("./perf-
|
|
237
|
+
cli.command("perf", "The reload log: what each edit reloaded, page-wide reloads, the slowest frames to settle; --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("--jam", "Jam's timings: captures, pictures, words, naming, runs, shots - numbers only (design/.local/perf/jam.jsonl)").option("--json", "Machine-readable output").action(async (opts) => {
|
|
238
|
+
const { perfCommand } = await import("./perf-C75MZ73h.mjs");
|
|
233
239
|
perfCommand(resolve$1(opts.root), opts);
|
|
234
240
|
});
|
|
235
241
|
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) => {
|
|
236
|
-
const { shotCommand } = await import("./shot-
|
|
242
|
+
const { shotCommand } = await import("./shot-XQV7HC9A.mjs");
|
|
237
243
|
try {
|
|
238
244
|
await shotCommand(resolve$1(opts.root), frames, opts);
|
|
239
245
|
} catch (err) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as ALL_SCENES } from "./board-tree-DRioF94d.mjs";
|
|
2
|
-
import { a as readLog, i as listBoards, r as legacyExposure, t as appendEvents } from "./comments-
|
|
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-
|
|
4
|
-
import { canvasIdentity, deriveThreads, loadSeen, markSeen, signCanvasJws, unreadCount, verifyCanvasJws } from "./summary-
|
|
2
|
+
import { a as readLog, i as listBoards, r as legacyExposure, t as appendEvents } from "./comments-0BSbb04K.mjs";
|
|
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
|
+
import { canvasIdentity, deriveThreads, loadSeen, markSeen, signCanvasJws, unreadCount, verifyCanvasJws } from "./summary-Y8MY1Wuc.mjs";
|
|
5
5
|
import { t as secureSuffix } from "./secure-cookie-_K1Hsx8H.mjs";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
|
@@ -269,6 +269,7 @@ function validateEvents(incoming, log, u, board, opts = {}) {
|
|
|
269
269
|
case "reanchor": {
|
|
270
270
|
if (!creates.has(ev.commentId) && !incoming.some((x) => x.type === "create" && x.commentId === ev.commentId)) return "cannot reanchor a thread that does not exist";
|
|
271
271
|
if (ev.anchor == null) return "reanchor needs a new anchor";
|
|
272
|
+
if (ev.frame !== void 0) return "a thread cannot move to another frame here";
|
|
272
273
|
const owner = authors.get(ev.commentId);
|
|
273
274
|
if (owner && owner !== me) return "only the thread author can reanchor";
|
|
274
275
|
break;
|
|
@@ -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, readSync, readdirSync, statSync, writeSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
//#region src/server/comments.ts
|
|
@@ -16,7 +16,8 @@ var comments_exports = /* @__PURE__ */ __exportAll({
|
|
|
16
16
|
dataDir: () => dataDir,
|
|
17
17
|
legacyExposure: () => legacyExposure,
|
|
18
18
|
listBoards: () => listBoards,
|
|
19
|
-
readLog: () => readLog
|
|
19
|
+
readLog: () => readLog,
|
|
20
|
+
shareable: () => shareable
|
|
20
21
|
});
|
|
21
22
|
const BOARD_RE = /^[a-z0-9][a-z0-9-]*$/;
|
|
22
23
|
const boardFile = (dir, board) => {
|
|
@@ -104,5 +105,15 @@ function legacyExposure(events, rights, shows) {
|
|
|
104
105
|
}
|
|
105
106
|
return (e) => boards.get(rootOf.get((e.type === "reply" ? e.parentId : e.commentId) ?? "") ?? "") ?? [];
|
|
106
107
|
}
|
|
108
|
+
/** What of a board's log may leave this machine (a published build's seeds): never an agent's event,
|
|
109
|
+
* nor any event in a thread Marver started (a note) or a Jam capture started (its words, 0.26) - the
|
|
110
|
+
* thread, each reply in it, and every edit, reaction or resolve naming one of them. Matches the
|
|
111
|
+
* rule `marver comments sync` pushes by (sync.ts localOnlyThreads). */
|
|
112
|
+
function shareable(events) {
|
|
113
|
+
const roots = new Set(events.filter((e) => e.type === "create" && e.commentId && (e.agent || e.capture)).map((e) => e.commentId));
|
|
114
|
+
const local = new Set(roots);
|
|
115
|
+
for (const e of events) if (e.type === "reply" && e.parentId && roots.has(e.parentId) && e.commentId) local.add(e.commentId);
|
|
116
|
+
return events.filter((e) => !e.agent && !local.has(e.parentId ?? e.commentId ?? ""));
|
|
117
|
+
}
|
|
107
118
|
//#endregion
|
|
108
|
-
export { readLog as a, listBoards as i, comments_exports as n, legacyExposure as r, appendEvents as t };
|
|
119
|
+
export { readLog as a, listBoards as i, comments_exports as n, shareable as o, legacyExposure as r, appendEvents as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
|
-
import { i as readDevInfo } from "./work-
|
|
3
|
-
import { r as replay } from "./events-
|
|
4
|
-
import { a as readLog, i as listBoards, t as appendEvents } from "./comments-
|
|
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-
|
|
2
|
+
import { i as readDevInfo } from "./work-F5u-twpJ.mjs";
|
|
3
|
+
import { r as replay } from "./events-CLH4ijKP.mjs";
|
|
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-DKk-yT1V.mjs";
|
|
6
|
+
import { n as localProfile } from "./profile-WU9qcbIo.mjs";
|
|
7
7
|
import { a as runningAgent } from "./agent-BsieQGTD.mjs";
|
|
8
|
-
import { readTarget, uncheckedAnchor } from "./anchor-
|
|
8
|
+
import { n as readTarget, r as uncheckedAnchor } from "./anchor-5H1vnoLu.mjs";
|
|
9
9
|
import { join } from "node:path";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
import { createInterface } from "node:readline";
|
|
@@ -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-BNzLvdhI.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")}`);
|
|
@@ -244,11 +244,22 @@ function resolveJam(v) {
|
|
|
244
244
|
const agent = resolveAgent(j.agent);
|
|
245
245
|
if (agent === "no-agent" || agent === "bad-agent") return agent;
|
|
246
246
|
const c = j.concurrency;
|
|
247
|
+
const pick = (key, v, ok, fallback, want) => {
|
|
248
|
+
if (v === void 0) return fallback;
|
|
249
|
+
if (ok(v)) return v;
|
|
250
|
+
console.warn(`[marver] design/config.ts: jam.${key} must be ${want} - got ${show(v)}. Using ${JSON.stringify(fallback)}.`);
|
|
251
|
+
return fallback;
|
|
252
|
+
};
|
|
253
|
+
const bool = (v) => typeof v === "boolean";
|
|
247
254
|
return {
|
|
248
255
|
agent,
|
|
249
256
|
concurrency: typeof c === "number" && Number.isInteger(c) && c >= 1 && c <= 16 ? c : DEFAULT_CONCURRENCY,
|
|
250
257
|
subagents: j.subagents !== false,
|
|
251
|
-
proactive: j.proactive === true
|
|
258
|
+
proactive: j.proactive === true,
|
|
259
|
+
chime: pick("chime", j.chime, bool, true, "true or false"),
|
|
260
|
+
capture: pick("capture", j.capture, (v) => v === "confirm" || v === "at-once", "confirm", `'confirm' or 'at-once'`),
|
|
261
|
+
loc: pick("loc", j.loc, bool, true, "true or false"),
|
|
262
|
+
names: pick("names", j.names, bool, true, "true or false")
|
|
252
263
|
};
|
|
253
264
|
}
|
|
254
265
|
/** Exactly one of `jam` (armed) or `jamOff` (why not) - so the dev server can speak up about
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as NAME } from "./cli.mjs";
|
|
2
2
|
import { a as checkRealDirs } from "./boards-CGg6piKF.mjs";
|
|
3
3
|
import { D as readStatusWord, f as isBoardName, l as framesOn } from "./board-tree-DRioF94d.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-
|
|
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-Nl3KSVOk.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";
|