@1agh/maude 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/studio/actions/agents.ts +18 -42
- package/apps/studio/actions/verbs.ts +49 -0
- package/apps/studio/actions.manifest.json +103 -19
- package/apps/studio/ai/create-claim.ts +1 -1
- package/apps/studio/bin/_asset-file.mjs +117 -0
- package/apps/studio/bin/_canvas-file.mjs +146 -0
- package/apps/studio/bin/_footage.mjs +123 -0
- package/apps/studio/bin/_pdf-playwright.mjs +14 -0
- package/apps/studio/bin/_png-playwright.mjs +15 -1
- package/apps/studio/bin/_pw-launch.mjs +98 -0
- package/apps/studio/bin/_retry-save.mjs +49 -0
- package/apps/studio/bin/_sync.mjs +145 -2
- package/apps/studio/bin/asset-rename.sh +12 -0
- package/apps/studio/bin/asset-trash.sh +12 -0
- package/apps/studio/bin/canvas-move.sh +12 -0
- package/apps/studio/bin/canvas-new.sh +12 -0
- package/apps/studio/bin/footage.sh +12 -0
- package/apps/studio/bin/generate.sh +7 -0
- package/apps/studio/bin/retry-save.sh +13 -0
- package/apps/studio/bridge/canvas-mode-store.ts +11 -2
- package/apps/studio/bridge/dgn-protocol.ts +8 -3
- package/apps/studio/bridge/occlusion.ts +45 -0
- package/apps/studio/canvas-theme-pill.tsx +169 -26
- package/apps/studio/client/export-center.jsx +32 -3
- package/apps/studio/client/home/HomeAccountBanner.jsx +61 -0
- package/apps/studio/client/home/HomeAccountsChip.jsx +404 -0
- package/apps/studio/client/home/HomeConnection.jsx +4 -3
- package/apps/studio/client/home/ProjectRows.jsx +514 -0
- package/apps/studio/client/home/home-accounts-model.js +148 -99
- package/apps/studio/client/home/home-api.js +4 -0
- package/apps/studio/client/home/home-app.jsx +127 -432
- package/apps/studio/client/home/home-icons.jsx +8 -0
- package/apps/studio/client/home/home-model.js +109 -0
- package/apps/studio/client/home/home.css +447 -111
- package/apps/studio/client/home/use-account-fix.js +123 -0
- package/apps/studio/client/v2/assets/generate-ask.jsx +3 -1
- package/apps/studio/client/v2/export/done-toast.jsx +2 -5
- package/apps/studio/client/v2/export/export-sheet.jsx +9 -2
- package/apps/studio/client/v2/export/export.css +9 -0
- package/apps/studio/client/v2/export/exports-model.js +16 -3
- package/apps/studio/client/v2/export/file-rows.jsx +81 -5
- package/apps/studio/client/v2/export/native-save.js +33 -0
- package/apps/studio/client/v2/export/sections/print-copy.js +3 -0
- package/apps/studio/client/v2/export/sections/print.jsx +37 -20
- package/apps/studio/client/v2/shell/occlusion-insets.js +37 -9
- package/apps/studio/client/v2/shell/use-occluded-insets.js +13 -3
- package/apps/studio/collab/room.ts +21 -7
- package/apps/studio/dist/client.bundle.js +692 -692
- package/apps/studio/dist/comment-mount.js +2 -2
- package/apps/studio/dist/styles.css +1 -1
- package/apps/studio/exporters/ghostscript.ts +78 -1
- package/apps/studio/exporters/pdf-fonts.ts +31 -4
- package/apps/studio/generation/jobs.ts +6 -0
- package/apps/studio/http.ts +6 -2
- package/apps/studio/routes/agent.ts +6 -2
- package/apps/studio/routes/project-undo.ts +10 -0
- package/apps/studio/server.ts +25 -0
- package/apps/studio/shell/cli-yield.ts +48 -11
- package/apps/studio/whats-new.json +18 -0
- package/cli/commands/design.mjs +74 -16
- package/cli/lib/bash-guard.mjs +4 -4
- package/cli/lib/confine-read.mjs +2 -0
- package/cli/lib/design-help.gen.mjs +15 -2
- package/cli/lib/design-hook.mjs +1 -1
- package/cli/lib/desktop-locate.mjs +36 -8
- package/cli/lib/studio-locate.mjs +8 -2
- package/cli/lib/sub-verbs.mjs +13 -1
- package/package.json +8 -8
- package/apps/studio/client/home/HomeAccounts.jsx +0 -262
- package/apps/studio/client/home/HomeAccountsRow.jsx +0 -221
|
@@ -254,21 +254,35 @@ export function createRoom(slug: string, callbacks: RoomCallbacks): Room {
|
|
|
254
254
|
}, DEBOUNCE_MS);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
// #216 — the flush on its way. A caller that flushes to READ what the room holds (⌘Z's stack read)
|
|
258
|
+
// waits for it: `dirty` is cleared as a flush starts, so a second call used to return while the
|
|
259
|
+
// first was still projecting the board.
|
|
260
|
+
let writing: Promise<void> | null = null;
|
|
261
|
+
|
|
257
262
|
async function flush(): Promise<void> {
|
|
263
|
+
if (writing) await writing;
|
|
258
264
|
if (!dirty || destroyed) return;
|
|
259
265
|
dirty = false;
|
|
260
266
|
if (flushTimer) {
|
|
261
267
|
clearTimeout(flushTimer);
|
|
262
268
|
flushTimer = null;
|
|
263
269
|
}
|
|
270
|
+
const run = (async () => {
|
|
271
|
+
try {
|
|
272
|
+
await callbacks.persistJson(slug, doc);
|
|
273
|
+
await callbacks.persistBinary(slug, Y.encodeStateAsUpdate(doc));
|
|
274
|
+
} catch (err) {
|
|
275
|
+
// Re-arm so the next mutation retries. Loud-log; persistence loss is a
|
|
276
|
+
// user-visible bug if it stays silent.
|
|
277
|
+
dirty = true;
|
|
278
|
+
console.error(`[collab/${slug}] flush failed:`, err);
|
|
279
|
+
}
|
|
280
|
+
})();
|
|
281
|
+
writing = run;
|
|
264
282
|
try {
|
|
265
|
-
await
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
// Re-arm so the next mutation retries. Loud-log; persistence loss is a
|
|
269
|
-
// user-visible bug if it stays silent.
|
|
270
|
-
dirty = true;
|
|
271
|
-
console.error(`[collab/${slug}] flush failed:`, err);
|
|
283
|
+
await run;
|
|
284
|
+
} finally {
|
|
285
|
+
if (writing === run) writing = null;
|
|
272
286
|
}
|
|
273
287
|
}
|
|
274
288
|
|