@jami-studio/core 0.92.13 → 0.92.15

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.
@@ -1,5 +1,17 @@
1
1
  # @agent-native/core
2
2
 
3
+ ## 0.92.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 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.
8
+
9
+ ## 0.92.14
10
+
11
+ ### Patch Changes
12
+
13
+ - Deploy builds sweep stale `.deploy-tmp` before running (both the per-app post-build entry and the workspace-deploy per-app clean list). A crashed prior build left partial artifacts that silently poisoned the next build for that app — observed as a cloudflare_pages unified build dying after the vite phases with no error output.
14
+
3
15
  ## 0.92.13
4
16
 
5
17
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/core",
3
- "version": "0.92.13",
3
+ "version": "0.92.15",
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: [],",
@@ -3773,6 +3796,14 @@ export default bundle;
3773
3796
  async function main() {
3774
3797
  console.log(`[deploy] Building for ${preset}...`);
3775
3798
 
3799
+ // Sweep stale .deploy-tmp before anything writes into it. A crashed prior
3800
+ // build (any preset) leaves partial artifacts behind; both build paths
3801
+ // mkdirSync over the dir without clearing it, and the stale contents can
3802
+ // silently poison the next build (observed: an interrupted node-preset
3803
+ // build made the following cloudflare_pages build fail with no error
3804
+ // output). Fresh tmp every run is the invariant.
3805
+ fs.rmSync(path.join(cwd, ".deploy-tmp"), { recursive: true, force: true });
3806
+
3776
3807
  switch (preset) {
3777
3808
  case "cloudflare_pages":
3778
3809
  case "cloudflare-pages":