code-foundry 1.37.0 → 1.37.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.
@@ -298,8 +298,24 @@ jobs:
298
298
  exit 1
299
299
  }
300
300
  if [ "$MODE" = production ]; then
301
- out="$(cf deploy --prebuilt)"
302
- printf '%s\n' "$out"
301
+ # --prebuilt uploads the Build Output Specification and builds
302
+ # nothing, so package it from the dist/ the build step produced
303
+ # first. Production is the delegate's default mode; only previews
304
+ # need the explicit preview flags below. Skipping this fails the
305
+ # deploy with "no root config found" for every cf consumer.
306
+ cf-wrangler build
307
+ # cf reports failures on stdout, so a bare `out="$(cf deploy)"`
308
+ # under `set -e` throws away the only diagnostic the CLI emitted
309
+ # and the job dies with a bare "exit code 1" and no cause. Keep
310
+ # the capture for parsing, but re-emit it and preserve the status
311
+ # when the deploy fails.
312
+ if out="$(cf deploy --prebuilt)"; then
313
+ printf '%s\n' "$out"
314
+ else
315
+ status=$?
316
+ printf '%s\n' "$out" >&2
317
+ exit "$status"
318
+ fi
303
319
  version_id="$(printf '%s\n' "$out" | sed -n 's/.*Current Version ID: *//p' | head -1 | tr -d '[:space:]')"
304
320
  value="${DEPLOYMENT_URL:-$(printf '%s\n' "$out" | grep -o 'https://[^[:space:]]*' | head -1)}"
305
321
  else
@@ -310,7 +326,13 @@ jobs:
310
326
  # and previews deploy otherwise re-runs the framework's own
311
327
  # build, which not every project tolerates (e.g. Vite plugin
312
328
  # configPath vs newConfig).
313
- cf previews deploy --prebuilt "$PREVIEW_NAME" > "$RUNNER_TEMP/cf-preview.json"
329
+ # Same stdout-swallowing hazard as the production branch: a failed
330
+ # preview deploy writes its reason into the JSON file, which is
331
+ # discarded unread. Surface it before exiting.
332
+ if ! cf previews deploy --prebuilt "$PREVIEW_NAME" > "$RUNNER_TEMP/cf-preview.json"; then
333
+ cat "$RUNNER_TEMP/cf-preview.json" >&2 || true
334
+ exit 1
335
+ fi
314
336
  value="$(jq -r '.preview_urls[0] // empty' "$RUNNER_TEMP/cf-preview.json")"
315
337
  version_id="$(jq -r '.deployment_id // empty' "$RUNNER_TEMP/cf-preview.json")"
316
338
  fi
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.37.2](https://github.com/0xPlayerOne/code-foundry/compare/v1.37.1...v1.37.2) (2026-09-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **cloudflare:** surface the cf deploy error instead of discarding it ([66de0d1](https://github.com/0xPlayerOne/code-foundry/commit/66de0d1e8238315dbd910abbd907e921cbc6764f))
9
+
10
+ ## [1.37.1](https://github.com/0xPlayerOne/code-foundry/compare/v1.37.0...v1.37.1) (2026-09-30)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **cloudflare:** build the production Build Output before the prebuilt deploy ([5f2f83c](https://github.com/0xPlayerOne/code-foundry/commit/5f2f83c6d6135c403b520f83469c0c5ca350cdba))
16
+
3
17
  ## [1.37.0](https://github.com/0xPlayerOne/code-foundry/compare/v1.36.4...v1.37.0) (2026-09-30)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-foundry",
3
- "version": "1.37.0",
3
+ "version": "1.37.2",
4
4
  "description": "A fast, language-aware repository factory for agent-ready workflows, testing, security, and release automation.",
5
5
  "homepage": "https://github.com/0xPlayerOne/code-foundry#readme",
6
6
  "bugs": {