@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
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
2
|
import { a as ROUTE, i as PKG, r as NAME } from "./cli.mjs";
|
|
3
3
|
import { c as nodeExists, d as readMembership, f as readRegistry, h as hash, i as checkBoardsDir, l as parseBoard, m as withRegistryLock, o as isRegularFile, r as boardFields, s as listBoardFiles, t as AUTHOR_FIELDS, u as pinFrames } from "./boards-CGg6piKF.mjs";
|
|
4
4
|
import { A as settableStatuses, D as readStatusWord, E as readReason, O as readType, T as readCapability, _ as wireKids, a as buildTree, c as folderMap, g as validateWire, h as readTitle, k as resolveType, m as readDescription, n as BOARD_NAME, r as FOLDERS_FILE, t as ALL_SCENES, x as HAS_STATUS } from "./board-tree-DRioF94d.mjs";
|
|
5
|
-
import { c as setSceneTitle, d as annotateBoards, f as planNames, m as readContextFacts, n as isNoteFile, o as rendersDoc, p as planWithStage, r as layoutDocSource, s as scanFrames, t as affectedFrameIds, u as writeManifest } from "./manifest-
|
|
6
|
-
import { r as boardsChanged } from "./work-
|
|
7
|
-
import { n as localProfile, t as isConnected } from "./profile-
|
|
8
|
-
import { n as loadConfig } from "./config-
|
|
9
|
-
import { a as observe, n as docRevs, r as initMarks, s as recordChanged, t as docRev } from "./marks-
|
|
10
|
-
import { t as logReload } from "./perf-
|
|
5
|
+
import { c as setSceneTitle, d as annotateBoards, f as planNames, m as readContextFacts, n as isNoteFile, o as rendersDoc, p as planWithStage, r as layoutDocSource, s as scanFrames, t as affectedFrameIds, u as writeManifest } from "./manifest-Nl3KSVOk.mjs";
|
|
6
|
+
import { r as boardsChanged } from "./work-F5u-twpJ.mjs";
|
|
7
|
+
import { n as localProfile, t as isConnected } from "./profile-WU9qcbIo.mjs";
|
|
8
|
+
import { n as loadConfig } from "./config-Cf7EjAMf.mjs";
|
|
9
|
+
import { a as observe, n as docRevs, r as initMarks, s as recordChanged, t as docRev } from "./marks-CKgzucHZ.mjs";
|
|
10
|
+
import { t as logReload } from "./perf-DPbLGhhO.mjs";
|
|
11
11
|
import { closeSync, copyFileSync, existsSync, linkSync, mkdirSync, openSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, watch, writeFileSync } from "node:fs";
|
|
12
12
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
14
|
-
import { randomBytes } from "node:crypto";
|
|
14
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
15
15
|
//#region src/shared/frames.ts
|
|
16
16
|
/** A canvas made of content frames alone (Doc, Md, Diagram ship their own styling) needs no theme -
|
|
17
17
|
* only an app frame does (#4). Empty counts as not content-only: the warning still helps there. */
|
|
@@ -286,13 +286,13 @@ function json(res, status, body) {
|
|
|
286
286
|
res.setHeader("content-type", "application/json");
|
|
287
287
|
res.end(JSON.stringify(body));
|
|
288
288
|
}
|
|
289
|
-
function readBody(req) {
|
|
289
|
+
function readBody(req, limit = BODY_LIMIT) {
|
|
290
290
|
return new Promise((done) => {
|
|
291
291
|
let size = 0;
|
|
292
292
|
const chunks = [];
|
|
293
293
|
req.on("data", (c) => {
|
|
294
294
|
size += c.length;
|
|
295
|
-
if (size >
|
|
295
|
+
if (size > limit) {
|
|
296
296
|
done(null);
|
|
297
297
|
req.destroy();
|
|
298
298
|
} else chunks.push(c);
|
|
@@ -607,7 +607,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
607
607
|
const str = (v) => typeof v === "string" ? v.slice(0, 200) : void 0;
|
|
608
608
|
const num = (v) => typeof v === "number" && Number.isFinite(v) ? Math.round(v) : void 0;
|
|
609
609
|
if (!str(b?.kind)) return json(res, 400, { error: "kind required" });
|
|
610
|
-
(await import("./perf-
|
|
610
|
+
(await import("./perf-DPbLGhhO.mjs").then((n) => n.n)).logReload(root, {
|
|
611
611
|
kind: str(b.kind),
|
|
612
612
|
tab: str(b.tab),
|
|
613
613
|
node: str(b.node),
|
|
@@ -618,6 +618,20 @@ function apiMiddleware(root, opts = {}) {
|
|
|
618
618
|
});
|
|
619
619
|
return json(res, 200, { ok: true });
|
|
620
620
|
}
|
|
621
|
+
if (path === "perf/jam" && req.method === "POST") {
|
|
622
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
623
|
+
const raw = await readBody(req);
|
|
624
|
+
if (raw == null) return json(res, 400, { error: "body too large or unreadable" });
|
|
625
|
+
let b;
|
|
626
|
+
try {
|
|
627
|
+
b = JSON.parse(raw);
|
|
628
|
+
} catch {
|
|
629
|
+
return json(res, 400, { error: "malformed JSON" });
|
|
630
|
+
}
|
|
631
|
+
if (!b || b.kind !== "capture" && b.kind !== "upload") return json(res, 400, { error: "kind must be capture or upload" });
|
|
632
|
+
(await import("./perf-jam-BU3TVrZu.mjs").then((n) => n.n)).logJam(root, b);
|
|
633
|
+
return json(res, 200, { ok: true });
|
|
634
|
+
}
|
|
621
635
|
if (path === "sizes" && req.method === "GET") {
|
|
622
636
|
const frames = readManifestFrames();
|
|
623
637
|
if (!frames) return json(res, 200, {
|
|
@@ -1009,7 +1023,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1009
1023
|
}
|
|
1010
1024
|
}
|
|
1011
1025
|
if (path === "shot" && req.method === "GET") {
|
|
1012
|
-
const { readDevInfo } = await import("./work-
|
|
1026
|
+
const { readDevInfo } = await import("./work-F5u-twpJ.mjs").then((n) => n.o);
|
|
1013
1027
|
const token = readDevInfo(root)?.token;
|
|
1014
1028
|
if (!ownerGated(req) && !(token && req.headers["x-mv-work"] === token)) return json(res, 403, { error: "forbidden" });
|
|
1015
1029
|
const frameId = url.searchParams.get("frame") ?? "";
|
|
@@ -1025,7 +1039,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1025
1039
|
};
|
|
1026
1040
|
const asPng = url.searchParams.get("format") === "png";
|
|
1027
1041
|
const origin = opts.origin?.() ?? `http://${req.headers.host ?? "localhost"}`;
|
|
1028
|
-
const { shootFrame } = await import("./shot-
|
|
1042
|
+
const { shootFrame } = await import("./shot-DQeR_Pfn.mjs");
|
|
1029
1043
|
const r = await shootFrame({
|
|
1030
1044
|
root,
|
|
1031
1045
|
viewports: opts.viewports ?? {},
|
|
@@ -1045,7 +1059,8 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1045
1059
|
scale: r.scale,
|
|
1046
1060
|
...r.truncated ? { truncated: true } : {},
|
|
1047
1061
|
...r.unsettled ? { unsettled: true } : {},
|
|
1048
|
-
...r.note ? { note: r.note } : {}
|
|
1062
|
+
...r.note ? { note: r.note } : {},
|
|
1063
|
+
recaptures: r.recaptures
|
|
1049
1064
|
};
|
|
1050
1065
|
if (!asPng) return json(res, 200, summary);
|
|
1051
1066
|
const png = readFileSync(join(root, r.path));
|
|
@@ -1058,7 +1073,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1058
1073
|
return res.end(png);
|
|
1059
1074
|
}
|
|
1060
1075
|
if (path === "shots" && req.method === "POST") {
|
|
1061
|
-
const { readDevInfo } = await import("./work-
|
|
1076
|
+
const { readDevInfo } = await import("./work-F5u-twpJ.mjs").then((n) => n.o);
|
|
1062
1077
|
const token = readDevInfo(root)?.token;
|
|
1063
1078
|
if (!ownerGated(req) && !(token && req.headers["x-mv-work"] === token)) return json(res, 403, { error: "forbidden" });
|
|
1064
1079
|
const raw = await readBody(req);
|
|
@@ -1075,7 +1090,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1075
1090
|
if (typeof theme !== "string" || !/^[a-z0-9-]+$/i.test(theme)) return json(res, 400, { error: "invalid theme" });
|
|
1076
1091
|
const scale = body.scale === void 0 ? void 0 : body.scale;
|
|
1077
1092
|
if (scale !== void 0 && !(Number.isInteger(scale) && scale >= 1 && scale <= 4)) return json(res, 400, { error: "invalid scale" });
|
|
1078
|
-
const { resolveFrames, shootBatch } = await import("./shot-
|
|
1093
|
+
const { resolveFrames, shootBatch } = await import("./shot-DQeR_Pfn.mjs");
|
|
1079
1094
|
const sel = resolveFrames(root, body);
|
|
1080
1095
|
if (!sel.ok) return json(res, sel.status, { error: sel.error });
|
|
1081
1096
|
const origin = opts.origin?.() ?? `http://${req.headers.host ?? "localhost"}`;
|
|
@@ -1093,7 +1108,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1093
1108
|
}
|
|
1094
1109
|
}
|
|
1095
1110
|
if (path === "anchor" && req.method === "POST") {
|
|
1096
|
-
const { readDevInfo } = await import("./work-
|
|
1111
|
+
const { readDevInfo } = await import("./work-F5u-twpJ.mjs").then((n) => n.o);
|
|
1097
1112
|
const token = readDevInfo(root)?.token;
|
|
1098
1113
|
if (!ownerGated(req) && !(token && req.headers["x-mv-work"] === token)) return json(res, 403, { error: "forbidden" });
|
|
1099
1114
|
const raw = await readBody(req);
|
|
@@ -1104,12 +1119,12 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1104
1119
|
} catch {
|
|
1105
1120
|
return json(res, 400, { error: "malformed JSON" });
|
|
1106
1121
|
}
|
|
1107
|
-
const { readTarget } = await import("./anchor-
|
|
1122
|
+
const { readTarget } = await import("./anchor-5H1vnoLu.mjs").then((n) => n.t);
|
|
1108
1123
|
const target = readTarget(b ?? {});
|
|
1109
1124
|
if (typeof target === "string") return json(res, 400, { error: target });
|
|
1110
1125
|
const others = Array.isArray(b.others) ? b.others.filter((o) => typeof o?.key === "string").slice(0, 200) : [];
|
|
1111
1126
|
const origin = opts.origin?.() ?? `http://${req.headers.host ?? "localhost"}`;
|
|
1112
|
-
const { checkAnchor, CheckInputError } = await import("./anchor-check-
|
|
1127
|
+
const { checkAnchor, CheckInputError } = await import("./anchor-check-l-ny3UzH.mjs");
|
|
1113
1128
|
try {
|
|
1114
1129
|
return json(res, 200, await checkAnchor({
|
|
1115
1130
|
root,
|
|
@@ -1137,7 +1152,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1137
1152
|
return json(res, 400, { error: "malformed JSON" });
|
|
1138
1153
|
}
|
|
1139
1154
|
if (!body || typeof body !== "object" || !Array.isArray(body.asks) || !body.asks.length || body.asks.length > 200) return json(res, 400, { error: "asks must list 1-200 frames" });
|
|
1140
|
-
const { bakeBatch, ASK_MAX } = await import("./bake-
|
|
1155
|
+
const { bakeBatch, ASK_MAX } = await import("./bake-C-awKgLA.mjs");
|
|
1141
1156
|
let manifest = {};
|
|
1142
1157
|
try {
|
|
1143
1158
|
manifest = JSON.parse(readFileSync(join(root, "design", "manifest.json"), "utf8"));
|
|
@@ -1158,7 +1173,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1158
1173
|
});
|
|
1159
1174
|
docs.push(typeof a?.doc === "string" ? a.doc : void 0);
|
|
1160
1175
|
}
|
|
1161
|
-
const { docRev } = await import("./marks-
|
|
1176
|
+
const { docRev } = await import("./marks-CKgzucHZ.mjs").then((n) => n.i);
|
|
1162
1177
|
const all = devManifest().frames;
|
|
1163
1178
|
const pending = opts.settled ? !opts.settled() : false;
|
|
1164
1179
|
const behind = docs.map((d, i) => d !== void 0 && (pending || d !== docRev(root, all, asks[i].frame)));
|
|
@@ -1201,8 +1216,8 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1201
1216
|
if (path === "poster" && req.method === "GET") {
|
|
1202
1217
|
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1203
1218
|
const src = url.searchParams.get("src") ?? "";
|
|
1204
|
-
const { ensurePoster, isLocalClip } = await import("./poster-
|
|
1205
|
-
const { isLocalAssetRef } = await import("./build-
|
|
1219
|
+
const { ensurePoster, isLocalClip } = await import("./poster-BdtSKMDm.mjs");
|
|
1220
|
+
const { isLocalAssetRef } = await import("./build-BDRiO_mP.mjs");
|
|
1206
1221
|
if (!isLocalAssetRef(src) || !isLocalClip(src)) return json(res, 400, { error: "src must be a clip under design/assets/" });
|
|
1207
1222
|
const r = await ensurePoster(join(root, "design", "assets"), src);
|
|
1208
1223
|
if (!r.ok) return json(res, r.error.includes("does not exist") ? 404 : 503, { error: r.error });
|
|
@@ -1229,7 +1244,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1229
1244
|
}
|
|
1230
1245
|
const dir = join(root, "design", ".local");
|
|
1231
1246
|
mkdirSync(dir, { recursive: true });
|
|
1232
|
-
const { validAvatar } = await import("./collab-
|
|
1247
|
+
const { validAvatar } = await import("./collab-Dxg2trOK.mjs");
|
|
1233
1248
|
let cur = {};
|
|
1234
1249
|
try {
|
|
1235
1250
|
cur = JSON.parse(readFileSync(join(dir, "profile.json"), "utf8"));
|
|
@@ -1245,7 +1260,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1245
1260
|
}
|
|
1246
1261
|
if (path === "marks" || path === "marks/seen") {
|
|
1247
1262
|
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1248
|
-
const { readMarks, markSeen } = await import("./marks-
|
|
1263
|
+
const { readMarks, markSeen } = await import("./marks-CKgzucHZ.mjs").then((n) => n.i);
|
|
1249
1264
|
const manifest = devManifest();
|
|
1250
1265
|
if (path === "marks" && req.method === "GET") return json(res, 200, readMarks(root, manifest));
|
|
1251
1266
|
if (path === "marks/seen" && req.method === "POST") {
|
|
@@ -1265,14 +1280,14 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1265
1280
|
return json(res, 405, { error: "method not allowed" });
|
|
1266
1281
|
}
|
|
1267
1282
|
if (path === "work") {
|
|
1268
|
-
const { workActivity, readDevInfo, WORK_TTL_DEFAULT, WORK_TTL_MAX } = await import("./work-
|
|
1283
|
+
const { workActivity, readDevInfo, WORK_TTL_DEFAULT, WORK_TTL_MAX } = await import("./work-F5u-twpJ.mjs").then((n) => n.o);
|
|
1269
1284
|
const tokenOk = () => {
|
|
1270
1285
|
const t = readDevInfo(root)?.token;
|
|
1271
1286
|
return !!t && req.headers["x-mv-work"] === t;
|
|
1272
1287
|
};
|
|
1273
1288
|
if (req.method === "GET") {
|
|
1274
1289
|
if (!ownerGated(req) && !tokenOk()) return json(res, 403, { error: "forbidden" });
|
|
1275
|
-
const { boardsShowing, activityClock } = await import("./work-
|
|
1290
|
+
const { boardsShowing, activityClock } = await import("./work-F5u-twpJ.mjs").then((n) => n.o);
|
|
1276
1291
|
const frames = workActivity.active();
|
|
1277
1292
|
return json(res, 200, {
|
|
1278
1293
|
frames,
|
|
@@ -1295,17 +1310,27 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1295
1310
|
if (!on && b.all === true) {
|
|
1296
1311
|
const done = workActivity.active().filter((f) => workActivity.has(f, "cli"));
|
|
1297
1312
|
if (done.length) {
|
|
1298
|
-
(await import("./marks-
|
|
1313
|
+
(await import("./marks-CKgzucHZ.mjs").then((n) => n.i)).recordChanged(root, devFrames(), done, { doc: false });
|
|
1299
1314
|
opts.notify?.("sh:marks");
|
|
1300
1315
|
}
|
|
1301
1316
|
workActivity.clearAll("cli");
|
|
1317
|
+
(await import("./reserve-BURNQ2Y3.mjs")).saveHolds(root, workActivity);
|
|
1302
1318
|
return json(res, 200, { frames: workActivity.active() });
|
|
1303
1319
|
}
|
|
1304
1320
|
if (!frames.length) return json(res, 400, { error: "frames required" });
|
|
1305
1321
|
const ttl = Math.min(Math.max(Number(b.ttlMs) || WORK_TTL_DEFAULT, 1e4), WORK_TTL_MAX);
|
|
1322
|
+
const { refuseHold, saveHolds } = await import("./reserve-BURNQ2Y3.mjs");
|
|
1323
|
+
if (on) {
|
|
1324
|
+
const refused = frames.map((f) => refuseHold(f, workActivity.has(f, "cli"))).find(Boolean);
|
|
1325
|
+
if (refused) return json(res, 409, {
|
|
1326
|
+
error: refused,
|
|
1327
|
+
frames: workActivity.active()
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1306
1330
|
for (const f of frames) on ? workActivity.mark(f, ttl, "cli") : workActivity.clear(f, "cli");
|
|
1331
|
+
saveHolds(root, workActivity);
|
|
1307
1332
|
if (!on) {
|
|
1308
|
-
(await import("./marks-
|
|
1333
|
+
(await import("./marks-CKgzucHZ.mjs").then((n) => n.i)).recordChanged(root, devFrames(), frames, { doc: false });
|
|
1309
1334
|
opts.notify?.("sh:marks");
|
|
1310
1335
|
return json(res, 200, { frames: workActivity.active() });
|
|
1311
1336
|
}
|
|
@@ -1339,8 +1364,236 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1339
1364
|
});
|
|
1340
1365
|
}
|
|
1341
1366
|
}
|
|
1367
|
+
if (path === "jam/queue" && req.method === "GET") {
|
|
1368
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1369
|
+
const { jamLive } = await import("./live-Cgzsicwi.mjs");
|
|
1370
|
+
return json(res, 200, jamLive.view?.() ?? {
|
|
1371
|
+
agent: null,
|
|
1372
|
+
cards: []
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
if (path === "jam/card" && req.method === "POST") {
|
|
1376
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1377
|
+
const raw = await readBody(req);
|
|
1378
|
+
if (raw == null) return json(res, 400, { error: "body too large" });
|
|
1379
|
+
let b;
|
|
1380
|
+
try {
|
|
1381
|
+
b = JSON.parse(raw);
|
|
1382
|
+
} catch {
|
|
1383
|
+
return json(res, 400, { error: "malformed JSON" });
|
|
1384
|
+
}
|
|
1385
|
+
const { ACTIONS } = await import("./queue-29ok5_eZ.mjs");
|
|
1386
|
+
if (!b || typeof b.id !== "string" || !Number.isInteger(b.rev) || !ACTIONS.includes(b.action) || b.body !== void 0 && typeof b.body !== "string") return json(res, 400, { error: "expected { id, rev, action, body? }" });
|
|
1387
|
+
if ("kind" in b) return json(res, 400, { error: "a capture has no category" });
|
|
1388
|
+
const { jamLive } = await import("./live-Cgzsicwi.mjs");
|
|
1389
|
+
if (!jamLive.act) return json(res, 409, { error: "jam is not running here" });
|
|
1390
|
+
const r = await jamLive.act(b.id, b.rev, b.action, b.body);
|
|
1391
|
+
return json(res, r.ok ? 200 : 409, r);
|
|
1392
|
+
}
|
|
1393
|
+
if (path === "jam/audio-ticket" && req.method === "POST") {
|
|
1394
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1395
|
+
const { issueTicket, speechLive } = await import("./audio-Dw1lfMdb.mjs");
|
|
1396
|
+
if (!speechLive.svc) return json(res, 409, { error: "jam is not running here" });
|
|
1397
|
+
return json(res, 200, { ticket: issueTicket() });
|
|
1398
|
+
}
|
|
1399
|
+
if (path === "jam/voice" && (req.method === "GET" || req.method === "POST")) {
|
|
1400
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1401
|
+
const { speechLive } = await import("./audio-Dw1lfMdb.mjs");
|
|
1402
|
+
const { downloadModels, downloadState, DOWNLOAD_MB } = await import("./speech-models-DomiLQcY.mjs");
|
|
1403
|
+
if (!speechLive.svc) return json(res, 409, { error: "jam is not running here" });
|
|
1404
|
+
if (req.method === "POST") {
|
|
1405
|
+
const raw = await readBody(req);
|
|
1406
|
+
if (raw == null) return json(res, 400, { error: "body too large" });
|
|
1407
|
+
let b;
|
|
1408
|
+
try {
|
|
1409
|
+
b = JSON.parse(raw);
|
|
1410
|
+
} catch {
|
|
1411
|
+
return json(res, 400, { error: "malformed JSON" });
|
|
1412
|
+
}
|
|
1413
|
+
if (b?.retry === true) speechLive.svc.retry();
|
|
1414
|
+
else if (b?.download === true) downloadModels();
|
|
1415
|
+
else return json(res, 400, { error: "expected { download: true } or { retry: true }" });
|
|
1416
|
+
}
|
|
1417
|
+
return json(res, 200, {
|
|
1418
|
+
...await speechLive.svc.state(),
|
|
1419
|
+
download: downloadState(),
|
|
1420
|
+
mb: DOWNLOAD_MB,
|
|
1421
|
+
busy: speechLive.svc.busy()
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1424
|
+
if (path === "jam/session" && (req.method === "GET" || req.method === "POST")) {
|
|
1425
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1426
|
+
const { jamLive } = await import("./live-Cgzsicwi.mjs");
|
|
1427
|
+
if (!jamLive.session || !jamLive.view) return json(res, 409, { error: "jam is not running here" });
|
|
1428
|
+
if (req.method === "GET") {
|
|
1429
|
+
const ses = jamLive.view().session ?? null;
|
|
1430
|
+
const { readTalk, talkMinutes, recordFile } = await import("./session-BAaJsK5c.mjs").then((n) => n.s);
|
|
1431
|
+
const folder = ses ? recordFile(root, ses.since, ses.id).replace(/[^/]+$/, "") : null;
|
|
1432
|
+
return json(res, 200, {
|
|
1433
|
+
session: ses,
|
|
1434
|
+
talkMinutes: ses ? talkMinutes(readTalk(root, ses.id)) : 0,
|
|
1435
|
+
tags: ses ? jamLive.tags?.(ses.id) ?? 0 : 0,
|
|
1436
|
+
folder
|
|
1437
|
+
});
|
|
1438
|
+
}
|
|
1439
|
+
const raw = await readBody(req);
|
|
1440
|
+
if (raw == null) return json(res, 400, { error: "body too large" });
|
|
1441
|
+
let b;
|
|
1442
|
+
try {
|
|
1443
|
+
b = JSON.parse(raw);
|
|
1444
|
+
} catch {
|
|
1445
|
+
return json(res, 400, { error: "malformed JSON" });
|
|
1446
|
+
}
|
|
1447
|
+
if (!b || typeof b.id !== "string" || ![
|
|
1448
|
+
"start",
|
|
1449
|
+
"end",
|
|
1450
|
+
"wrapup"
|
|
1451
|
+
].includes(b.action)) return json(res, 400, { error: "expected { action, id }" });
|
|
1452
|
+
if (b.action === "wrapup" && (typeof b.instructions !== "string" || typeof b.board !== "string")) return json(res, 400, { error: "expected { instructions, board }" });
|
|
1453
|
+
if (b.action === "wrapup") {
|
|
1454
|
+
const why = jamLive.canWrap?.(b.id);
|
|
1455
|
+
if (why) return json(res, 409, {
|
|
1456
|
+
ok: false,
|
|
1457
|
+
error: why
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
if (b.action !== "start") {
|
|
1461
|
+
const { speechLive } = await import("./audio-Dw1lfMdb.mjs");
|
|
1462
|
+
if (!await (speechLive.svc?.finishTalk(b.id) ?? Promise.resolve(true)).catch(() => false) && b.action === "wrapup" && b.includeTalk !== false) return json(res, 409, {
|
|
1463
|
+
ok: false,
|
|
1464
|
+
error: "what was said is still being written down - write the record again in a moment (or leave what was said out)"
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
const r = await jamLive.session(b.action === "wrapup" ? {
|
|
1468
|
+
action: "wrapup",
|
|
1469
|
+
id: b.id,
|
|
1470
|
+
instructions: b.instructions,
|
|
1471
|
+
includeTalk: b.includeTalk !== false,
|
|
1472
|
+
tags: Number(b.tags) || 0,
|
|
1473
|
+
board: b.board
|
|
1474
|
+
} : {
|
|
1475
|
+
action: b.action,
|
|
1476
|
+
id: b.id
|
|
1477
|
+
});
|
|
1478
|
+
return json(res, r.ok ? 200 : 409, r);
|
|
1479
|
+
}
|
|
1480
|
+
if (path === "jam/capture-open" && req.method === "POST") {
|
|
1481
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1482
|
+
const raw = await readBody(req);
|
|
1483
|
+
let b;
|
|
1484
|
+
try {
|
|
1485
|
+
b = JSON.parse(raw ?? "");
|
|
1486
|
+
} catch {
|
|
1487
|
+
return json(res, 400, { error: "malformed JSON" });
|
|
1488
|
+
}
|
|
1489
|
+
const { jamLive } = await import("./live-Cgzsicwi.mjs");
|
|
1490
|
+
if (!jamLive.captureOpen) return json(res, 409, { error: "jam is not running here" });
|
|
1491
|
+
if (typeof b?.capture !== "string" || typeof b?.session !== "string") return json(res, 400, { error: "expected { capture, session, on }" });
|
|
1492
|
+
return jamLive.captureOpen(b.capture, b.session, b.on === true) === "ended" ? json(res, 409, {
|
|
1493
|
+
ok: false,
|
|
1494
|
+
ended: true,
|
|
1495
|
+
error: "the session has ended"
|
|
1496
|
+
}) : json(res, 200, { ok: true });
|
|
1497
|
+
}
|
|
1498
|
+
if (path === "jam/record" && req.method === "GET") {
|
|
1499
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1500
|
+
const { jamLive } = await import("./live-Cgzsicwi.mjs");
|
|
1501
|
+
const r = jamLive.record?.(url.searchParams.get("id") ?? "");
|
|
1502
|
+
return r ? json(res, 200, r) : json(res, 404, { error: "no such record" });
|
|
1503
|
+
}
|
|
1504
|
+
if (path === "jam/capture" && req.method === "POST") {
|
|
1505
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1506
|
+
const raw = await readBody(req, 4e6);
|
|
1507
|
+
if (raw == null) return json(res, 400, { error: "body too large" });
|
|
1508
|
+
let b;
|
|
1509
|
+
try {
|
|
1510
|
+
b = JSON.parse(raw);
|
|
1511
|
+
} catch {
|
|
1512
|
+
return json(res, 400, { error: "malformed JSON" });
|
|
1513
|
+
}
|
|
1514
|
+
const { createHash } = await import("node:crypto");
|
|
1515
|
+
if (b?.workspace !== void 0 && b.workspace !== createHash("sha256").update(root).digest("hex").slice(0, 16)) return json(res, 409, { error: "this capture was made in another workspace" });
|
|
1516
|
+
const { jamLive } = await import("./live-Cgzsicwi.mjs");
|
|
1517
|
+
if (!jamLive.capture) return json(res, 409, { error: "jam is not running here" });
|
|
1518
|
+
const r = await jamLive.capture(b?.record);
|
|
1519
|
+
return json(res, r.ok ? 200 : 400, r);
|
|
1520
|
+
}
|
|
1521
|
+
if (path === "jam/capture" && req.method === "GET") {
|
|
1522
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1523
|
+
const { readCapture } = await import("./capture-vadKjuCo.mjs").then((n) => n.i);
|
|
1524
|
+
const id = url.searchParams.get("id") ?? "";
|
|
1525
|
+
const cap = readCapture(root, id);
|
|
1526
|
+
if (!cap) return json(res, 404, { error: "no such capture" });
|
|
1527
|
+
const { jamLive } = await import("./live-Cgzsicwi.mjs");
|
|
1528
|
+
const card = jamLive.view?.().cards.find((c) => c.id === id);
|
|
1529
|
+
return json(res, 200, {
|
|
1530
|
+
record: cap.record,
|
|
1531
|
+
...card?.edited !== void 0 ? { edited: card.edited } : {},
|
|
1532
|
+
pictures: cap.record.pictures,
|
|
1533
|
+
sealed: jamLive.sealed?.(id) ?? false
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
if (path === "jam/picture" && req.method === "POST") {
|
|
1537
|
+
if (!ownerGated(req)) return json(res, 403, { error: "forbidden" });
|
|
1538
|
+
const raw = await readBody(req);
|
|
1539
|
+
if (raw == null) return json(res, 400, { error: "body too large" });
|
|
1540
|
+
let b;
|
|
1541
|
+
try {
|
|
1542
|
+
b = JSON.parse(raw);
|
|
1543
|
+
} catch {
|
|
1544
|
+
return json(res, 400, { error: "malformed JSON" });
|
|
1545
|
+
}
|
|
1546
|
+
const { CAPTURE_ID, readCapture, addPicture, sweepPictures } = await import("./capture-vadKjuCo.mjs").then((n) => n.i);
|
|
1547
|
+
if (!b || typeof b.capture !== "string" || !CAPTURE_ID.test(b.capture) || typeof b.frame !== "string") return json(res, 400, { error: "expected { capture, frame, theme?, viewport? }" });
|
|
1548
|
+
if (readCapture(root, b.capture)) return json(res, 409, { error: "that capture is sealed" });
|
|
1549
|
+
const theme = typeof b.theme === "string" && /^[a-z0-9-]+$/i.test(b.theme) ? b.theme : "light";
|
|
1550
|
+
const { shootFrame } = await import("./shot-DQeR_Pfn.mjs");
|
|
1551
|
+
const origin = opts.origin?.() ?? `http://${req.headers.host ?? "localhost"}`;
|
|
1552
|
+
const vp = typeof b.viewport === "string" ? opts.viewports?.[b.viewport] : void 0;
|
|
1553
|
+
const dim = (v) => typeof v === "number" && Number.isFinite(v) ? Math.round(v) : void 0;
|
|
1554
|
+
const size = dim(b.w) ? {
|
|
1555
|
+
w: dim(b.w),
|
|
1556
|
+
h: dim(b.h)
|
|
1557
|
+
} : vp ? {
|
|
1558
|
+
w: vp.width,
|
|
1559
|
+
h: vp.height
|
|
1560
|
+
} : void 0;
|
|
1561
|
+
const r = await shootFrame({
|
|
1562
|
+
root,
|
|
1563
|
+
viewports: opts.viewports ?? {},
|
|
1564
|
+
frameId: b.frame,
|
|
1565
|
+
theme,
|
|
1566
|
+
origin,
|
|
1567
|
+
...size ? { size } : {}
|
|
1568
|
+
});
|
|
1569
|
+
if (!r.ok) return json(res, r.error.startsWith("unknown frame") ? 404 : 503, { error: r.error });
|
|
1570
|
+
sweepPictures(root);
|
|
1571
|
+
const unchecked = /not checked for a stale surface/.test(r.note ?? "");
|
|
1572
|
+
return json(res, 200, {
|
|
1573
|
+
id: addPicture(root, r.path, {
|
|
1574
|
+
frame: b.frame,
|
|
1575
|
+
capture: b.capture,
|
|
1576
|
+
...unchecked ? { unchecked: true } : {}
|
|
1577
|
+
}),
|
|
1578
|
+
...unchecked ? { unchecked: true } : {}
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
if (path === "jam/picture" && req.method === "GET") {
|
|
1582
|
+
const site = String(req.headers["sec-fetch-site"] ?? "");
|
|
1583
|
+
if (!ownerGated(req) && !(cookie(req, "mv_c") && (site === "same-origin" || site === "none"))) return json(res, 403, { error: "forbidden" });
|
|
1584
|
+
const { picturePath } = await import("./capture-vadKjuCo.mjs").then((n) => n.i);
|
|
1585
|
+
const p = picturePath(root, url.searchParams.get("id") ?? "");
|
|
1586
|
+
if (!p) return json(res, 404, { error: "no such picture" });
|
|
1587
|
+
const png = readFileSync(p.path);
|
|
1588
|
+
res.writeHead(200, {
|
|
1589
|
+
"content-type": "image/png",
|
|
1590
|
+
"content-length": png.length,
|
|
1591
|
+
"cache-control": "no-store"
|
|
1592
|
+
});
|
|
1593
|
+
return res.end(png);
|
|
1594
|
+
}
|
|
1342
1595
|
if (path === "boards.rights" && req.method === "GET") {
|
|
1343
|
-
const { listBoards } = await import("./comments-
|
|
1596
|
+
const { listBoards } = await import("./comments-0BSbb04K.mjs").then((n) => n.n);
|
|
1344
1597
|
return json(res, 200, {
|
|
1345
1598
|
local: true,
|
|
1346
1599
|
stored: listBoards(join(root, "design", "comments"))
|
|
@@ -1348,7 +1601,7 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1348
1601
|
}
|
|
1349
1602
|
const cm = /^comments\/([a-z0-9][a-z0-9-]*)$/.exec(path);
|
|
1350
1603
|
if (cm) {
|
|
1351
|
-
const { appendEvents, readLog } = await import("./comments-
|
|
1604
|
+
const { appendEvents, readLog } = await import("./comments-0BSbb04K.mjs").then((n) => n.n);
|
|
1352
1605
|
const dir = join(root, "design", "comments");
|
|
1353
1606
|
if (req.method === "GET") return json(res, 200, { events: readLog(dir, cm[1]) });
|
|
1354
1607
|
if (req.method === "POST") {
|
|
@@ -1377,14 +1630,15 @@ function apiMiddleware(root, opts = {}) {
|
|
|
1377
1630
|
};
|
|
1378
1631
|
});
|
|
1379
1632
|
const fresh = appendEvents(dir, cm[1], stamped);
|
|
1380
|
-
const { record } = await import("./ledger-
|
|
1381
|
-
for (const ev of fresh) if (ev.type === "create" || ev.type === "reply") record(root, cm[1], ev.id);
|
|
1633
|
+
const { record } = await import("./ledger-D54iROST.mjs").then((n) => n.n);
|
|
1634
|
+
for (const ev of fresh) if (ev.type === "create" || ev.type === "reply" || ev.type === "edit") record(root, cm[1], ev.id);
|
|
1635
|
+
(await import("./live-Cgzsicwi.mjs")).jamLive.poke?.();
|
|
1382
1636
|
backgroundPush(root);
|
|
1383
1637
|
return json(res, 200, { accepted: fresh.length });
|
|
1384
1638
|
}
|
|
1385
1639
|
}
|
|
1386
1640
|
if (path === "sync" && req.method === "POST") {
|
|
1387
|
-
const { loadCollab, syncOnce } = await import("./sync-
|
|
1641
|
+
const { loadCollab, syncOnce } = await import("./sync-DKk-yT1V.mjs").then((n) => n.o);
|
|
1388
1642
|
const collab = loadCollab(root);
|
|
1389
1643
|
if (!collab) return json(res, 200, { connected: false });
|
|
1390
1644
|
try {
|
|
@@ -1413,7 +1667,7 @@ function backgroundPush(root) {
|
|
|
1413
1667
|
pushTimer = setTimeout(async () => {
|
|
1414
1668
|
pushTimer = null;
|
|
1415
1669
|
try {
|
|
1416
|
-
const { loadCollab, syncOnce } = await import("./sync-
|
|
1670
|
+
const { loadCollab, syncOnce } = await import("./sync-DKk-yT1V.mjs").then((n) => n.o);
|
|
1417
1671
|
const collab = loadCollab(root);
|
|
1418
1672
|
if (collab) await syncOnce(root, collab);
|
|
1419
1673
|
} catch {}
|
|
@@ -1718,7 +1972,13 @@ function marverPlugin(ctx) {
|
|
|
1718
1972
|
noTheme: themeFile() == null,
|
|
1719
1973
|
setup: setupPending,
|
|
1720
1974
|
projectName: config.share.name || basename(root),
|
|
1721
|
-
branding: config.share.branding
|
|
1975
|
+
branding: config.share.branding,
|
|
1976
|
+
jam: config.jam ? {
|
|
1977
|
+
chime: config.jam.chime,
|
|
1978
|
+
capture: config.jam.capture,
|
|
1979
|
+
names: config.jam.names && config.jam.agent === "claude"
|
|
1980
|
+
} : null,
|
|
1981
|
+
workspace: createHash("sha256").update(root).digest("hex").slice(0, 16)
|
|
1722
1982
|
})}`;
|
|
1723
1983
|
}
|
|
1724
1984
|
if (id === "\0virtual:sh-data") return "export default null";
|
|
@@ -1859,7 +2119,7 @@ function marverPlugin(ctx) {
|
|
|
1859
2119
|
};
|
|
1860
2120
|
const prune = () => setTimeout(async () => {
|
|
1861
2121
|
try {
|
|
1862
|
-
(await import("./bake-
|
|
2122
|
+
(await import("./bake-C-awKgLA.mjs")).pruneBakes(root, bakeGen);
|
|
1863
2123
|
} catch {}
|
|
1864
2124
|
}, 500);
|
|
1865
2125
|
prune();
|
|
@@ -2039,7 +2299,7 @@ function marverPlugin(ctx) {
|
|
|
2039
2299
|
});
|
|
2040
2300
|
return;
|
|
2041
2301
|
}
|
|
2042
|
-
const { shootFrame, shootBatch, resolveFrames } = await import("./shot-
|
|
2302
|
+
const { shootFrame, shootBatch, resolveFrames } = await import("./shot-DQeR_Pfn.mjs");
|
|
2043
2303
|
if (ways[0] === "frame") {
|
|
2044
2304
|
if (typeof spec.frame !== "string") {
|
|
2045
2305
|
write({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { capture, t as findChrome } from "./shot-
|
|
1
|
+
import { capture, t as findChrome } from "./shot-DQeR_Pfn.mjs";
|
|
2
2
|
import { constants, copyFileSync, existsSync, mkdtempSync, realpathSync, rmSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { basename, dirname, join, sep } from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
@@ -120,6 +120,7 @@ async function ensurePosterNow(assetsDir, src, out) {
|
|
|
120
120
|
ok: false,
|
|
121
121
|
error: `could not render a poster for ${basename(src)} - ${r.error}`
|
|
122
122
|
};
|
|
123
|
+
if (r.note && /not checked for a stale surface/.test(r.note)) console.warn(`[marver] poster ${basename(src)}: ${r.note}`);
|
|
123
124
|
try {
|
|
124
125
|
copyFileSync(tmp, out, constants.COPYFILE_EXCL);
|
|
125
126
|
} catch (err) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as slideSize } from "./cli.mjs";
|
|
2
|
-
import { planShot, t as findChrome } from "./shot-
|
|
3
|
-
import { ASK_MAX, bakeBatch } from "./bake-
|
|
4
|
-
import { MIME } from "./serve-
|
|
2
|
+
import { planShot, t as findChrome } from "./shot-DQeR_Pfn.mjs";
|
|
3
|
+
import { ASK_MAX, bakeBatch } from "./bake-C-awKgLA.mjs";
|
|
4
|
+
import { MIME } from "./serve-C8rVheYk.mjs";
|
|
5
5
|
import { copyFileSync, lstatSync, mkdirSync, readFileSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { extname, isAbsolute, join, relative, resolve } from "node:path";
|
|
7
7
|
import { createServer } from "node:http";
|