specrails-core 4.0.4 → 4.0.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/install.sh CHANGED
@@ -521,9 +521,9 @@ _openspec_pkg_version=""
521
521
  if [[ -f "$SCRIPT_DIR/package.json" ]]; then
522
522
  _openspec_pkg_version=$(python3 -c "import json; d=json.load(open('$SCRIPT_DIR/package.json')); print(d.get('specrails',{}).get('openspecVersion',''))" 2>/dev/null || true)
523
523
  fi
524
- _openspec_install_spec="@openspec/cli"
524
+ _openspec_install_spec="@fission-ai/openspec"
525
525
  if [[ -n "$_openspec_pkg_version" ]]; then
526
- _openspec_install_spec="@openspec/cli@${_openspec_pkg_version}"
526
+ _openspec_install_spec="@fission-ai/openspec@${_openspec_pkg_version}"
527
527
  fi
528
528
 
529
529
  if command -v openspec &> /dev/null; then
@@ -543,19 +543,26 @@ else
543
543
  fi
544
544
  if [ "$INSTALL_OPENSPEC" = "y" ] || [ "$INSTALL_OPENSPEC" = "Y" ]; then
545
545
  info "Installing ${_openspec_install_spec}..."
546
- npm install -g "${_openspec_install_spec}" 2>/dev/null && {
546
+ _npm_log="$(mktemp)"
547
+ if npm install -g "${_openspec_install_spec}" >"$_npm_log" 2>&1; then
547
548
  ok "OpenSpec CLI installed ($(openspec --version 2>/dev/null || echo "${_openspec_pkg_version}"))"
548
549
  HAS_OPENSPEC=true
549
- } || {
550
- warn "Global install failed. Trying local..."
551
- cd "$REPO_ROOT" && npm install "${_openspec_install_spec}" 2>/dev/null && {
552
- ok "OpenSpec CLI installed locally"
550
+ rm -f "$_npm_log"
551
+ else
552
+ warn "Global install failed (often EACCES on fresh macOS). Trying local install in ${REPO_ROOT}..."
553
+ # Show last few lines of npm error for context
554
+ tail -n 5 "$_npm_log" | sed 's/^/ /' >&2 || true
555
+ if ( cd "$REPO_ROOT" && npm install "${_openspec_install_spec}" >"$_npm_log" 2>&1 ); then
556
+ ok "OpenSpec CLI installed locally (${REPO_ROOT}/node_modules/.bin/openspec)"
553
557
  HAS_OPENSPEC=true
554
- } || {
555
- fail "Could not install OpenSpec CLI."
558
+ else
559
+ fail "Could not install OpenSpec CLI. npm output:"
560
+ tail -n 10 "$_npm_log" | sed 's/^/ /' >&2 || true
561
+ echo " Manual fix: npm install -g ${_openspec_install_spec}" >&2
556
562
  HAS_OPENSPEC=false
557
- }
558
- }
563
+ fi
564
+ rm -f "$_npm_log"
565
+ fi
559
566
  else
560
567
  warn "Skipping OpenSpec install. Spec-driven workflow will be limited."
561
568
  HAS_OPENSPEC=false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specrails-core",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "AI agent workflow system for Claude Code — installs 12 specialized agents, orchestration commands, and persona-driven product discovery into any repository",
5
5
  "bin": {
6
6
  "specrails-core": "bin/specrails-core.js"
@@ -48,7 +48,7 @@ gh auth status 2>&1
48
48
  which openspec && openspec --version
49
49
  ```
50
50
 
51
- - If missing: try `npm install -g @openspec/cli`
51
+ - If missing: try `npm install -g @fission-ai/openspec`
52
52
  - If install fails: **STOP** — openspec is required.
53
53
 
54
54
  #### 3. Project dependencies
@@ -48,7 +48,7 @@ gh auth status 2>&1
48
48
  which openspec && openspec --version
49
49
  ```
50
50
 
51
- - If missing: try `npm install -g @openspec/cli`
51
+ - If missing: try `npm install -g @fission-ai/openspec`
52
52
  - If install fails: **STOP** — openspec is required.
53
53
 
54
54
  #### 3. Project dependencies