@_mehrad/cbox 0.1.4 → 0.1.5

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/bin/cbox CHANGED
@@ -3,6 +3,14 @@ case "$(uname -s)" in
3
3
  Darwin) ;;
4
4
  *) echo "cbox: unsupported OS: $(uname -s)" >&2; exit 1 ;;
5
5
  esac
6
- DIR=$(cd "$(dirname "$0")/.." && pwd)
6
+ SELF="$0"
7
+ while [ -L "$SELF" ]; do
8
+ LINK=$(readlink "$SELF")
9
+ case "$LINK" in
10
+ /*) SELF="$LINK" ;;
11
+ *) SELF="$(dirname "$SELF")/$LINK" ;;
12
+ esac
13
+ done
14
+ DIR=$(cd "$(dirname "$SELF")/.." && pwd)
7
15
  [ "$(uname -m)" = "arm64" ] && exec "$DIR/dist/cbox-darwin-arm64" "$@"
8
16
  exec "$DIR/dist/cbox-darwin-x64" "$@"
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_mehrad/cbox",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Claude Sandbox CLI — run Claude Code in Docker",
5
5
  "bin": {
6
6
  "cbox": "bin/cbox"
@@ -11,12 +11,16 @@
11
11
  "dist/cbox-darwin-x64",
12
12
  "README.md"
13
13
  ],
14
- "os": ["darwin"],
14
+ "os": [
15
+ "darwin"
16
+ ],
15
17
  "scripts": {
16
18
  "start": "bun run src/index.ts",
17
19
  "build": "bun build --compile --minify src/index.ts --target=bun-darwin-arm64 --outfile dist/cbox-darwin-arm64 && bun build --compile --minify src/index.ts --target=bun-darwin-x64 --outfile dist/cbox-darwin-x64",
18
20
  "prepublishOnly": "bun run build",
19
- "test": "bun test"
21
+ "test": "bun test",
22
+ "release": "bash scripts/release.sh",
23
+ "publish:all": "bash scripts/publish.sh"
20
24
  },
21
25
  "dependencies": {
22
26
  "commander": "^14.0.0"