@h-rig/server 0.0.6-alpha.14 → 0.0.6-alpha.16

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/dist/src/index.js CHANGED
@@ -6626,15 +6626,33 @@ say "Installing @h-rig/cli@latest"
6626
6626
  bun add -g @h-rig/cli@latest
6627
6627
 
6628
6628
  export BUN_INSTALL="\${BUN_INSTALL:-$HOME/.bun}"
6629
- export PATH="$BUN_INSTALL/bin:$PATH"
6629
+ BUN_RIG="$BUN_INSTALL/bin/rig"
6630
+ if [ ! -x "$BUN_RIG" ]; then
6631
+ printf 'rig-install: expected Bun global rig at %s but it was not executable.
6632
+ ' "$BUN_RIG" >&2
6633
+ exit 1
6634
+ fi
6635
+
6636
+ USER_BIN="$HOME/.local/bin"
6637
+ mkdir -p "$USER_BIN"
6638
+ cat > "$USER_BIN/rig" <<'RIG_SHIM'
6639
+ #!/usr/bin/env bash
6640
+ set -euo pipefail
6641
+ exec "\${BUN_INSTALL:-$HOME/.bun}/bin/rig" "$@"
6642
+ RIG_SHIM
6643
+ chmod +x "$USER_BIN/rig"
6644
+
6645
+ export PATH="$USER_BIN:$BUN_INSTALL/bin:$PATH"
6646
+ if command -v hash >/dev/null 2>&1; then hash -r; fi
6630
6647
 
6631
6648
  if ! command -v rig >/dev/null 2>&1; then
6632
- printf 'rig-install: rig installed, but rig is not on PATH. Add %s/bin to PATH and retry.
6633
- ' "$BUN_INSTALL" >&2
6649
+ printf 'rig-install: rig installed, but rig is not on PATH. Add %s and %s/bin to PATH and retry.
6650
+ ' "$USER_BIN" "$BUN_INSTALL" >&2
6634
6651
  exit 1
6635
6652
  fi
6636
6653
 
6637
6654
  say "Verifying rig"
6655
+ "$BUN_RIG" --help >/dev/null
6638
6656
  rig --help >/dev/null
6639
6657
  say "Done. Run: rig --help"
6640
6658
  `;
@@ -2517,15 +2517,33 @@ say "Installing @h-rig/cli@latest"
2517
2517
  bun add -g @h-rig/cli@latest
2518
2518
 
2519
2519
  export BUN_INSTALL="\${BUN_INSTALL:-$HOME/.bun}"
2520
- export PATH="$BUN_INSTALL/bin:$PATH"
2520
+ BUN_RIG="$BUN_INSTALL/bin/rig"
2521
+ if [ ! -x "$BUN_RIG" ]; then
2522
+ printf 'rig-install: expected Bun global rig at %s but it was not executable.
2523
+ ' "$BUN_RIG" >&2
2524
+ exit 1
2525
+ fi
2526
+
2527
+ USER_BIN="$HOME/.local/bin"
2528
+ mkdir -p "$USER_BIN"
2529
+ cat > "$USER_BIN/rig" <<'RIG_SHIM'
2530
+ #!/usr/bin/env bash
2531
+ set -euo pipefail
2532
+ exec "\${BUN_INSTALL:-$HOME/.bun}/bin/rig" "$@"
2533
+ RIG_SHIM
2534
+ chmod +x "$USER_BIN/rig"
2535
+
2536
+ export PATH="$USER_BIN:$BUN_INSTALL/bin:$PATH"
2537
+ if command -v hash >/dev/null 2>&1; then hash -r; fi
2521
2538
 
2522
2539
  if ! command -v rig >/dev/null 2>&1; then
2523
- printf 'rig-install: rig installed, but rig is not on PATH. Add %s/bin to PATH and retry.
2524
- ' "$BUN_INSTALL" >&2
2540
+ printf 'rig-install: rig installed, but rig is not on PATH. Add %s and %s/bin to PATH and retry.
2541
+ ' "$USER_BIN" "$BUN_INSTALL" >&2
2525
2542
  exit 1
2526
2543
  fi
2527
2544
 
2528
2545
  say "Verifying rig"
2546
+ "$BUN_RIG" --help >/dev/null
2529
2547
  rig --help >/dev/null
2530
2548
  say "Done. Run: rig --help"
2531
2549
  `;
@@ -6120,15 +6120,33 @@ say "Installing @h-rig/cli@latest"
6120
6120
  bun add -g @h-rig/cli@latest
6121
6121
 
6122
6122
  export BUN_INSTALL="\${BUN_INSTALL:-$HOME/.bun}"
6123
- export PATH="$BUN_INSTALL/bin:$PATH"
6123
+ BUN_RIG="$BUN_INSTALL/bin/rig"
6124
+ if [ ! -x "$BUN_RIG" ]; then
6125
+ printf 'rig-install: expected Bun global rig at %s but it was not executable.
6126
+ ' "$BUN_RIG" >&2
6127
+ exit 1
6128
+ fi
6129
+
6130
+ USER_BIN="$HOME/.local/bin"
6131
+ mkdir -p "$USER_BIN"
6132
+ cat > "$USER_BIN/rig" <<'RIG_SHIM'
6133
+ #!/usr/bin/env bash
6134
+ set -euo pipefail
6135
+ exec "\${BUN_INSTALL:-$HOME/.bun}/bin/rig" "$@"
6136
+ RIG_SHIM
6137
+ chmod +x "$USER_BIN/rig"
6138
+
6139
+ export PATH="$USER_BIN:$BUN_INSTALL/bin:$PATH"
6140
+ if command -v hash >/dev/null 2>&1; then hash -r; fi
6124
6141
 
6125
6142
  if ! command -v rig >/dev/null 2>&1; then
6126
- printf 'rig-install: rig installed, but rig is not on PATH. Add %s/bin to PATH and retry.
6127
- ' "$BUN_INSTALL" >&2
6143
+ printf 'rig-install: rig installed, but rig is not on PATH. Add %s and %s/bin to PATH and retry.
6144
+ ' "$USER_BIN" "$BUN_INSTALL" >&2
6128
6145
  exit 1
6129
6146
  fi
6130
6147
 
6131
6148
  say "Verifying rig"
6149
+ "$BUN_RIG" --help >/dev/null
6132
6150
  rig --help >/dev/null
6133
6151
  say "Done. Run: rig --help"
6134
6152
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h-rig/server",
3
- "version": "0.0.6-alpha.14",
3
+ "version": "0.0.6-alpha.16",
4
4
  "type": "module",
5
5
  "description": "Rig package",
6
6
  "license": "UNLICENSED",
@@ -25,9 +25,9 @@
25
25
  "rig-server": "./dist/src/server.js"
26
26
  },
27
27
  "dependencies": {
28
- "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.14",
29
- "@rig/core": "npm:@h-rig/core@0.0.6-alpha.14",
30
- "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.14",
28
+ "@rig/contracts": "npm:@h-rig/contracts@0.0.6-alpha.16",
29
+ "@rig/core": "npm:@h-rig/core@0.0.6-alpha.16",
30
+ "@rig/runtime": "npm:@h-rig/runtime@0.0.6-alpha.16",
31
31
  "effect": "4.0.0-beta.78"
32
32
  }
33
33
  }