code-foundry 1.37.1 → 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.
@@ -304,8 +304,18 @@ jobs:
304
304
  # need the explicit preview flags below. Skipping this fails the
305
305
  # deploy with "no root config found" for every cf consumer.
306
306
  cf-wrangler build
307
- out="$(cf deploy --prebuilt)"
308
- printf '%s\n' "$out"
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
309
319
  version_id="$(printf '%s\n' "$out" | sed -n 's/.*Current Version ID: *//p' | head -1 | tr -d '[:space:]')"
310
320
  value="${DEPLOYMENT_URL:-$(printf '%s\n' "$out" | grep -o 'https://[^[:space:]]*' | head -1)}"
311
321
  else
@@ -316,7 +326,13 @@ jobs:
316
326
  # and previews deploy otherwise re-runs the framework's own
317
327
  # build, which not every project tolerates (e.g. Vite plugin
318
328
  # configPath vs newConfig).
319
- 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
320
336
  value="$(jq -r '.preview_urls[0] // empty' "$RUNNER_TEMP/cf-preview.json")"
321
337
  version_id="$(jq -r '.deployment_id // empty' "$RUNNER_TEMP/cf-preview.json")"
322
338
  fi
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## [1.37.1](https://github.com/0xPlayerOne/code-foundry/compare/v1.37.0...v1.37.1) (2026-09-30)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-foundry",
3
- "version": "1.37.1",
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": {