freecode-sh 0.1.0-alpha.41 → 0.1.0-alpha.42

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/install.sh +7 -2
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -26,7 +26,7 @@ freecode
26
26
  For a reproducible clean install of this immutable release:
27
27
 
28
28
  ```bash
29
- npm install -g freecode-sh@0.1.0-alpha.41
29
+ npm install -g freecode-sh@0.1.0-alpha.42
30
30
  freecode --version
31
31
  ```
32
32
 
package/install.sh CHANGED
@@ -599,12 +599,17 @@ rollback_activation() {
599
599
  }
600
600
 
601
601
  printf 'Verifying Free Code %s...\n' "$VERSION"
602
- VERSION_OUTPUT=$("$BIN_DIR/freecode" --version 2>&1) || {
602
+ # Runtime diagnostics (such as Bun's AVX warning under Rosetta) go to stderr;
603
+ # only stdout carries the version, and it must match exactly.
604
+ VERSION_STDERR="$TEMP_DIR/version.stderr"
605
+ VERSION_OUTPUT=$("$BIN_DIR/freecode" --version 2>"$VERSION_STDERR") || {
606
+ cat "$VERSION_STDERR" >&2
603
607
  rollback_activation
604
608
  fail "freecode --version failed; restored the previous install"
605
609
  }
610
+ cat "$VERSION_STDERR" >&2
606
611
  printf '%s\n' "$VERSION_OUTPUT"
607
- [ "$(printf '%s\n' "$VERSION_OUTPUT" | sed -n '1p')" = "freecode-sh $VERSION" ] || {
612
+ [ "$VERSION_OUTPUT" = "freecode-sh $VERSION" ] || {
608
613
  rollback_activation
609
614
  fail "freecode --version reported the wrong release; restored the previous install"
610
615
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freecode-sh",
3
- "version": "0.1.0-alpha.41",
3
+ "version": "0.1.0-alpha.42",
4
4
  "description": "A free coding agent for your terminal.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "freecode",
@@ -47,6 +47,6 @@
47
47
  },
48
48
  "freecodeRelease": {
49
49
  "channel": "alpha",
50
- "nativeVersion": "0.1.0-alpha.41"
50
+ "nativeVersion": "0.1.0-alpha.42"
51
51
  }
52
52
  }