@jami-studio/core 0.92.16 → 0.92.17
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 +7 -0
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/deploy/build.ts +16 -0
- package/corpus/core/src/deploy/workspace-deploy.ts +24 -1
- package/dist/deploy/build.d.ts.map +1 -1
- package/dist/deploy/build.js +16 -0
- package/dist/deploy/build.js.map +1 -1
- package/dist/deploy/workspace-deploy.js +19 -1
- package/dist/deploy/workspace-deploy.js.map +1 -1
- package/package.json +1 -1
package/corpus/core/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @agent-native/core
|
|
2
2
|
|
|
3
|
+
## 0.92.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1dd0867: Cloudflare Pages unified deploy fixes found by running the artifact on workerd: (1) `_routes.json` no longer emits rules covered by another rule's splat (Cloudflare rejects overlapping rules — "/apps/new-app" under "/apps/\*" broke every workspace deploy); (2) stub `detect-libc` in the worker bundle — it calls `process.report.getReport()` at require time, which unenv throws on, killing the worker at module init.
|
|
8
|
+
- 950b77d: workspace-deploy: cap rolldown's rayon thread pool on Windows (RAYON_NUM_THREADS=2 unless overridden). The native thread pool has a race that kills app builds with an access violation (0xC0000005) — intermittently for most apps, deterministically for some (chat under cloudflare_pages). Capping the pool eliminates the crash; combined with the native-crash retry this makes unified workspace builds reliable on Windows.
|
|
9
|
+
|
|
3
10
|
## 0.92.16
|
|
4
11
|
|
|
5
12
|
### 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.17",
|
|
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": {
|
|
@@ -101,6 +101,22 @@ export const CLOUDFLARE_WORKER_ESBUILD_EXTERNALS = [
|
|
|
101
101
|
"fsevents",
|
|
102
102
|
];
|
|
103
103
|
export const CLOUDFLARE_WORKER_STUB_MODULES: Record<string, string> = {
|
|
104
|
+
// detect-libc calls process.report.getReport() at require time to sniff
|
|
105
|
+
// musl vs glibc; unenv's process.report stub throws "not implemented",
|
|
106
|
+
// killing the worker at module init. Stub it with static glibc answers —
|
|
107
|
+
// nothing that consults libc can run on workerd anyway.
|
|
108
|
+
"detect-libc": [
|
|
109
|
+
"export const GLIBC = 'glibc';",
|
|
110
|
+
"export const MUSL = 'musl';",
|
|
111
|
+
"export const family = async () => null;",
|
|
112
|
+
"export const familySync = () => null;",
|
|
113
|
+
"export const version = async () => null;",
|
|
114
|
+
"export const versionSync = () => null;",
|
|
115
|
+
"export const isNonGlibcLinux = async () => false;",
|
|
116
|
+
"export const isNonGlibcLinuxSync = () => false;",
|
|
117
|
+
"export default { GLIBC, MUSL, family, familySync, version, versionSync, isNonGlibcLinux, isNonGlibcLinuxSync };",
|
|
118
|
+
"",
|
|
119
|
+
].join("\n"),
|
|
104
120
|
"better-sqlite3":
|
|
105
121
|
"export default {}; export const Database = class {}; export const watch = () => ({ close() {} });\n",
|
|
106
122
|
"node-pty":
|
|
@@ -224,6 +224,15 @@ function buildOneApp(
|
|
|
224
224
|
const env: NodeJS.ProcessEnv = {
|
|
225
225
|
...process.env,
|
|
226
226
|
NITRO_PRESET: preset,
|
|
227
|
+
// Windows: rolldown's rayon thread pool has a native race that
|
|
228
|
+
// intermittently (and for some apps deterministically) kills the build
|
|
229
|
+
// with an access violation (0xC0000005). Capping the pool avoids the
|
|
230
|
+
// race entirely; verified: chat's cloudflare_pages build crashed 100%
|
|
231
|
+
// in-sequence at default threads and passes at 2. Respect an explicit
|
|
232
|
+
// operator override.
|
|
233
|
+
...(process.platform === "win32"
|
|
234
|
+
? { RAYON_NUM_THREADS: process.env.RAYON_NUM_THREADS ?? "2" }
|
|
235
|
+
: {}),
|
|
227
236
|
AGENT_NATIVE_WORKSPACE: "1",
|
|
228
237
|
AGENT_NATIVE_WORKSPACE_APP_ID: app,
|
|
229
238
|
VITE_AGENT_NATIVE_WORKSPACE: "1",
|
|
@@ -415,9 +424,23 @@ function writeCloudflareRoutingManifest(distDir: string, apps: string[]): void {
|
|
|
415
424
|
include.push("/apps/*");
|
|
416
425
|
if (dispatchFaviconAsset) include.push("/favicon.ico");
|
|
417
426
|
}
|
|
427
|
+
// Cloudflare rejects a _routes.json where a splat rule overlaps any other
|
|
428
|
+
// rule (e.g. "/apps/*" + "/apps/new-app"). Drop every rule already covered
|
|
429
|
+
// by another rule's splat, and exact duplicates.
|
|
430
|
+
const splatPrefixes = include
|
|
431
|
+
.filter((r) => r.endsWith("/*"))
|
|
432
|
+
.map((r) => r.slice(0, -1));
|
|
433
|
+
const dedupedInclude = [
|
|
434
|
+
...new Set(
|
|
435
|
+
include.filter(
|
|
436
|
+
(r) =>
|
|
437
|
+
!splatPrefixes.some((p) => r !== `${p}*` && r.startsWith(p)),
|
|
438
|
+
),
|
|
439
|
+
),
|
|
440
|
+
];
|
|
418
441
|
const routes = {
|
|
419
442
|
version: 1,
|
|
420
|
-
include,
|
|
443
|
+
include: dedupedInclude,
|
|
421
444
|
exclude: [],
|
|
422
445
|
};
|
|
423
446
|
fs.writeFileSync(
|
|
@@ -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,mCAAmC,UAiB/C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AAE,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
|
@@ -65,6 +65,22 @@ export const CLOUDFLARE_WORKER_ESBUILD_EXTERNALS = [
|
|
|
65
65
|
"fsevents",
|
|
66
66
|
];
|
|
67
67
|
export const CLOUDFLARE_WORKER_STUB_MODULES = {
|
|
68
|
+
// detect-libc calls process.report.getReport() at require time to sniff
|
|
69
|
+
// musl vs glibc; unenv's process.report stub throws "not implemented",
|
|
70
|
+
// killing the worker at module init. Stub it with static glibc answers —
|
|
71
|
+
// nothing that consults libc can run on workerd anyway.
|
|
72
|
+
"detect-libc": [
|
|
73
|
+
"export const GLIBC = 'glibc';",
|
|
74
|
+
"export const MUSL = 'musl';",
|
|
75
|
+
"export const family = async () => null;",
|
|
76
|
+
"export const familySync = () => null;",
|
|
77
|
+
"export const version = async () => null;",
|
|
78
|
+
"export const versionSync = () => null;",
|
|
79
|
+
"export const isNonGlibcLinux = async () => false;",
|
|
80
|
+
"export const isNonGlibcLinuxSync = () => false;",
|
|
81
|
+
"export default { GLIBC, MUSL, family, familySync, version, versionSync, isNonGlibcLinux, isNonGlibcLinuxSync };",
|
|
82
|
+
"",
|
|
83
|
+
].join("\n"),
|
|
68
84
|
"better-sqlite3": "export default {}; export const Database = class {}; export const watch = () => ({ close() {} });\n",
|
|
69
85
|
"node-pty": "export default {}; export const watch = () => ({ close() {} });\n",
|
|
70
86
|
chokidar: "export default {}; export const watch = () => ({ close() {} });\n",
|