@castlekit/castle 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/install.sh +9 -2
  2. package/package.json +2 -4
package/install.sh CHANGED
@@ -650,8 +650,15 @@ main() {
650
650
  if [[ -n "$CASTLE_BIN" ]]; then
651
651
  exec "$CASTLE_BIN" setup
652
652
  else
653
- # Fallback: run via npx (always works, no PATH needed)
654
- exec npx --yes @castlekit/castle setup
653
+ # Fallback: run the installed file directly (no PATH needed)
654
+ local pkg_dir
655
+ pkg_dir="$(npm prefix -g)/lib/node_modules/@castlekit/castle"
656
+ if [[ -f "$pkg_dir/bin/castle.js" ]]; then
657
+ exec node --import tsx "$pkg_dir/bin/castle.js" setup
658
+ else
659
+ echo -e "${WARN}→${NC} Could not locate castle binary."
660
+ echo -e "Run ${INFO}castle setup${NC} manually."
661
+ fi
655
662
  fi
656
663
  else
657
664
  echo -e "${WARN}→${NC} No TTY available; skipping setup."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castlekit/castle",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "The multi-agent workspace",
5
5
  "type": "module",
6
6
  "bin": {
@@ -58,9 +58,7 @@
58
58
  "tailwindcss": "^4.1.18",
59
59
  "tsx": "^4.21.0",
60
60
  "typescript": "^5.9.3",
61
- "ws": "^8.19.0"
62
- },
63
- "devDependencies": {
61
+ "ws": "^8.19.0",
64
62
  "@types/ws": "^8.18.1"
65
63
  }
66
64
  }