phasegate 0.151.0 → 0.151.1

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/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.151.1] - 2026-05-12
11
+
12
+ ### Fixed
13
+
14
+ - **G4 post-publish dogfood** — fixes `npx phasegate@0.151.0` failing with `Error: tsx not found` by letting the bin wrapper execute the packaged `tsx` loader via `node --import` when dependency binaries are not linked into PATH.
15
+
10
16
  ## [0.151.0] - 2026-05-12
11
17
 
12
18
  ### Added
package/bin/phasegate CHANGED
@@ -7,8 +7,13 @@ SCRIPT_PATH="$(realpath "$0" 2>/dev/null || readlink -f "$0" 2>/dev/null || echo
7
7
  PACKAGE_DIR="$(cd "$(dirname "$SCRIPT_PATH")/.." && pwd)"
8
8
  MAIN_TS="$PACKAGE_DIR/scripts/harness/main.ts"
9
9
 
10
- # tsx を探す: npx経由の場合はnode_modules/.binがPATHに入っているので command -v で見つかる
11
- if command -v tsx >/dev/null 2>&1; then
10
+ # tsx を探す。npm/npx の一時インストールでは dependency bin PATH ../.bin
11
+ # 出ないことがあるため、tsx loader を直接 node --import できる経路も見る。
12
+ if [ -f "$PACKAGE_DIR/node_modules/tsx/dist/loader.mjs" ]; then
13
+ exec node --import "$PACKAGE_DIR/node_modules/tsx/dist/loader.mjs" "$MAIN_TS" "$@"
14
+ elif [ -f "$PACKAGE_DIR/../tsx/dist/loader.mjs" ]; then
15
+ exec node --import "$PACKAGE_DIR/../tsx/dist/loader.mjs" "$MAIN_TS" "$@"
16
+ elif command -v tsx >/dev/null 2>&1; then
12
17
  exec tsx "$MAIN_TS" "$@"
13
18
  elif [ -f "$PACKAGE_DIR/node_modules/.bin/tsx" ]; then
14
19
  exec "$PACKAGE_DIR/node_modules/.bin/tsx" "$MAIN_TS" "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phasegate",
3
- "version": "0.151.0",
3
+ "version": "0.151.1",
4
4
  "packageManager": "pnpm@10.30.1",
5
5
  "description": "Phasegate — AI-agnostic quality defense toolkit. Enforces structural integrity between design intent and code.",
6
6
  "license": "MIT",