@jami-studio/core 0.92.14 → 0.92.16
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/corpus/core/CHANGELOG.md +12 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/deploy/build.ts +23 -0
- package/corpus/core/src/deploy/workspace-deploy.ts +28 -5
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +23 -0
- package/dist/deploy/build.js.map +1 -1
- package/dist/deploy/workspace-deploy.js +27 -5
- package/dist/deploy/workspace-deploy.js.map +1 -1
- package/package.json +1 -1
package/corpus/core/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @agent-native/core
|
|
2
2
|
|
|
3
|
+
## 0.92.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4c3a52a: workspace-deploy: retry app builds that die with a Windows native-crash exit code (0xC0000005 / 3221225477). These are bundler native-binding timing races, not build failures — the same build passes on retry. Bounded to 3 attempts; ordinary non-zero exits are never retried.
|
|
8
|
+
|
|
9
|
+
## 0.92.15
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2908c1d: Stub playwright and playwright/test in the Cloudflare Pages worker bundle. Template actions import "playwright/test" with a literal dynamic import (design's screenshot action), and the bare --external left an unresolvable import in the final \_worker.js, so wrangler/Pages refused the bundle. Both specifiers now resolve to throw-at-call-time stubs, matching the playwright-core behavior.
|
|
14
|
+
|
|
3
15
|
## 0.92.14
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/corpus/core/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.92.
|
|
3
|
+
"version": "0.92.16",
|
|
4
4
|
"description": "Framework for agent-native application development — where AI agents and UI share SQL state, actions, and context",
|
|
5
5
|
"homepage": "https://github.com/studio-jami/jami-studio#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -142,6 +142,29 @@ export const CLOUDFLARE_WORKER_STUB_MODULES: Record<string, string> = {
|
|
|
142
142
|
"export default { chromium, firefox, webkit };",
|
|
143
143
|
"",
|
|
144
144
|
].join("\n"),
|
|
145
|
+
// playwright and its playwright/test subpath are imported with literal
|
|
146
|
+
// dynamic import() in template actions (e.g. design's screenshot action
|
|
147
|
+
// imports "playwright/test"), so a bare --external leaves an unresolvable
|
|
148
|
+
// import in the final _worker.js — wrangler/Pages then refuses the bundle.
|
|
149
|
+
// Stub both so the import resolves and degrades at call time like Node.
|
|
150
|
+
playwright: [
|
|
151
|
+
"const unavailable = async () => { throw new Error('playwright unavailable in Cloudflare Pages worker'); };",
|
|
152
|
+
"export const chromium = { launch: unavailable };",
|
|
153
|
+
"export const firefox = { launch: unavailable };",
|
|
154
|
+
"export const webkit = { launch: unavailable };",
|
|
155
|
+
"export default { chromium, firefox, webkit };",
|
|
156
|
+
"",
|
|
157
|
+
].join("\n"),
|
|
158
|
+
"playwright/test": [
|
|
159
|
+
"const unavailable = async () => { throw new Error('playwright/test unavailable in Cloudflare Pages worker'); };",
|
|
160
|
+
"export const chromium = { launch: unavailable };",
|
|
161
|
+
"export const firefox = { launch: unavailable };",
|
|
162
|
+
"export const webkit = { launch: unavailable };",
|
|
163
|
+
"export const test = undefined;",
|
|
164
|
+
"export const expect = undefined;",
|
|
165
|
+
"export default { chromium, firefox, webkit };",
|
|
166
|
+
"",
|
|
167
|
+
].join("\n"),
|
|
145
168
|
"@sparticuz/chromium-min": [
|
|
146
169
|
"const chromium = {",
|
|
147
170
|
" args: [],",
|
|
@@ -271,11 +271,34 @@ function buildOneApp(
|
|
|
271
271
|
|
|
272
272
|
cleanAppBuildOutputs(appDir);
|
|
273
273
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
274
|
+
// Windows: app builds occasionally die with a native access violation
|
|
275
|
+
// (0xC0000005 / exit 3221225477) inside the bundler's native bindings.
|
|
276
|
+
// It is a timing race, not a code failure — the same build passes on
|
|
277
|
+
// retry (and reliably passes with DEBUG logging enabled, which shifts
|
|
278
|
+
// the timing). Retry native-crash exits a bounded number of times;
|
|
279
|
+
// real build failures exit with ordinary codes and are NOT retried.
|
|
280
|
+
const NATIVE_CRASH_EXIT_CODES = new Set([3221225477, -1073741819]);
|
|
281
|
+
const maxAttempts = 3;
|
|
282
|
+
for (let attempt = 1; ; attempt++) {
|
|
283
|
+
try {
|
|
284
|
+
execFile("pnpm", ["--filter", app, "build"], {
|
|
285
|
+
cwd: workspaceRoot,
|
|
286
|
+
env,
|
|
287
|
+
stdio: "inherit",
|
|
288
|
+
});
|
|
289
|
+
return;
|
|
290
|
+
} catch (error) {
|
|
291
|
+
const status = (error as { status?: number | null })?.status ?? null;
|
|
292
|
+
const isNativeCrash =
|
|
293
|
+
typeof status === "number" && NATIVE_CRASH_EXIT_CODES.has(status);
|
|
294
|
+
if (!isNativeCrash || attempt >= maxAttempts) throw error;
|
|
295
|
+
console.warn(
|
|
296
|
+
`[workspace-deploy] ${app} build died with a native crash ` +
|
|
297
|
+
`(exit ${status}); retrying (${attempt}/${maxAttempts - 1})...`,
|
|
298
|
+
);
|
|
299
|
+
cleanAppBuildOutputs(appDir);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
279
302
|
}
|
|
280
303
|
|
|
281
304
|
function moveAppBuildIntoWorkspaceOutput(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/deploy/build.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;GAYG;AAmCH,OAAO,EAML,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,6BAA6B,UAiBzC,CAAC;AAEF,eAAO,MAAM,mC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CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAkBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iCAAiC,YAAI,KAAK,CAAU,CAAC;AAElE;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,MAAM,GACnB,IAAI,GAAG,SAAS,MAAM,EAAE,CAK1B"}
|
package/dist/deploy/build.js
CHANGED
|
@@ -103,6 +103,29 @@ export const CLOUDFLARE_WORKER_STUB_MODULES = {
|
|
|
103
103
|
"export default { chromium, firefox, webkit };",
|
|
104
104
|
"",
|
|
105
105
|
].join("\n"),
|
|
106
|
+
// playwright and its playwright/test subpath are imported with literal
|
|
107
|
+
// dynamic import() in template actions (e.g. design's screenshot action
|
|
108
|
+
// imports "playwright/test"), so a bare --external leaves an unresolvable
|
|
109
|
+
// import in the final _worker.js — wrangler/Pages then refuses the bundle.
|
|
110
|
+
// Stub both so the import resolves and degrades at call time like Node.
|
|
111
|
+
playwright: [
|
|
112
|
+
"const unavailable = async () => { throw new Error('playwright unavailable in Cloudflare Pages worker'); };",
|
|
113
|
+
"export const chromium = { launch: unavailable };",
|
|
114
|
+
"export const firefox = { launch: unavailable };",
|
|
115
|
+
"export const webkit = { launch: unavailable };",
|
|
116
|
+
"export default { chromium, firefox, webkit };",
|
|
117
|
+
"",
|
|
118
|
+
].join("\n"),
|
|
119
|
+
"playwright/test": [
|
|
120
|
+
"const unavailable = async () => { throw new Error('playwright/test unavailable in Cloudflare Pages worker'); };",
|
|
121
|
+
"export const chromium = { launch: unavailable };",
|
|
122
|
+
"export const firefox = { launch: unavailable };",
|
|
123
|
+
"export const webkit = { launch: unavailable };",
|
|
124
|
+
"export const test = undefined;",
|
|
125
|
+
"export const expect = undefined;",
|
|
126
|
+
"export default { chromium, firefox, webkit };",
|
|
127
|
+
"",
|
|
128
|
+
].join("\n"),
|
|
106
129
|
"@sparticuz/chromium-min": [
|
|
107
130
|
"const chromium = {",
|
|
108
131
|
" args: [],",
|