@1agh/maude 1.0.2 → 1.0.3
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.
|
@@ -158,6 +158,17 @@ export async function renderRemotely(args: {
|
|
|
158
158
|
signal?: AbortSignal;
|
|
159
159
|
}): Promise<ExportResult> {
|
|
160
160
|
const { format, targets, options, canvas, service, signal } = args;
|
|
161
|
+
// The exporters' per-navigation timeouts (png.ts goto `--timeout`, etc.)
|
|
162
|
+
// default to ~8s — tuned for the DESKTOP path where the canvas origin is
|
|
163
|
+
// loopback and already warm. The render worker instead loads the canvas from
|
|
164
|
+
// the REMOTE canvas origin, and a cold cell builds the tenant's TSX in its
|
|
165
|
+
// sandbox on first access, so `_canvas-shell.html` can take far longer than
|
|
166
|
+
// 8s to fire `load`. Give the remote path a generous floor (unless the
|
|
167
|
+
// caller asked for more) so a cold-cell first render doesn't time out.
|
|
168
|
+
const remoteOptions: ExportOptions = {
|
|
169
|
+
...options,
|
|
170
|
+
timeoutSec: Math.max(Number((options as { timeoutSec?: number }).timeoutSec) || 0, 60),
|
|
171
|
+
};
|
|
161
172
|
const res = await fetch(`${service.url}/render`, {
|
|
162
173
|
method: 'POST',
|
|
163
174
|
signal,
|
|
@@ -165,7 +176,7 @@ export async function renderRemotely(args: {
|
|
|
165
176
|
'content-type': 'application/json',
|
|
166
177
|
authorization: `Bearer ${service.secret}`,
|
|
167
178
|
},
|
|
168
|
-
body: JSON.stringify({ format, targets, options, canvas }),
|
|
179
|
+
body: JSON.stringify({ format, targets, options: remoteOptions, canvas }),
|
|
169
180
|
});
|
|
170
181
|
if (!res.ok) {
|
|
171
182
|
const detail = (await res.text().catch(() => '')) || `${res.status}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1agh/maude",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Marketplace of Claude Code plugins by Michal Dovrtěl: `design` (canvas-first design iteration) + `flow` (generic agentic workflow loop with .ai second brain). Ships the `maude` CLI (with `mdcc` legacy alias) to scaffold workspace, run the design dev server, and manage configs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"test:e2e:desktop:parity:cloud": "pnpm --filter @maude/desktop-e2e e2e:parity:cloud"
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"@1agh/maude-darwin-arm64": "1.0.
|
|
58
|
-
"@1agh/maude-darwin-x64": "1.0.
|
|
59
|
-
"@1agh/maude-linux-arm64": "1.0.
|
|
60
|
-
"@1agh/maude-linux-arm64-musl": "1.0.
|
|
61
|
-
"@1agh/maude-linux-x64": "1.0.
|
|
62
|
-
"@1agh/maude-linux-x64-musl": "1.0.
|
|
63
|
-
"@1agh/maude-win32-x64": "1.0.
|
|
57
|
+
"@1agh/maude-darwin-arm64": "1.0.3",
|
|
58
|
+
"@1agh/maude-darwin-x64": "1.0.3",
|
|
59
|
+
"@1agh/maude-linux-arm64": "1.0.3",
|
|
60
|
+
"@1agh/maude-linux-arm64-musl": "1.0.3",
|
|
61
|
+
"@1agh/maude-linux-x64": "1.0.3",
|
|
62
|
+
"@1agh/maude-linux-x64-musl": "1.0.3",
|
|
63
|
+
"@1agh/maude-win32-x64": "1.0.3"
|
|
64
64
|
},
|
|
65
65
|
"files": [
|
|
66
66
|
"cli",
|