aidevops 3.5.537 → 3.5.539

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/VERSION CHANGED
@@ -1 +1 @@
1
- 3.5.537
1
+ 3.5.539
package/aidevops.sh CHANGED
@@ -3,7 +3,7 @@
3
3
  # AI DevOps Framework CLI
4
4
  # Usage: aidevops <command> [options]
5
5
  #
6
- # Version: 3.5.537
6
+ # Version: 3.5.539
7
7
 
8
8
  set -euo pipefail
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.5.537",
3
+ "version": "3.5.539",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -732,6 +732,8 @@ _install_bv_tool() {
732
732
 
733
733
  # _install_beads_node_tools: install beads-ui and bdui via npm.
734
734
  # Echoes the count of tools installed to stdout.
735
+ # All informational output (spinner, status) goes to stderr so that
736
+ # command-substitution callers receive only the numeric count.
735
737
  _install_beads_node_tools() {
736
738
  local count=0
737
739
  if ! command -v npm &>/dev/null; then
@@ -740,15 +742,15 @@ _install_beads_node_tools() {
740
742
  fi
741
743
  setup_prompt install_web " Install beads-ui (Web dashboard)? [Y/n]: " "Y"
742
744
  if [[ "$install_web" =~ ^[Yy]?$ ]]; then
743
- if run_with_spinner "Installing beads-ui" npm_global_install beads-ui; then
744
- print_info "Run: beads-ui"
745
+ if run_with_spinner "Installing beads-ui" npm_global_install beads-ui 1>&2; then
746
+ print_info "Run: beads-ui" >&2
745
747
  count=$((count + 1))
746
748
  fi
747
749
  fi
748
750
  setup_prompt install_bdui " Install bdui (React/Ink TUI)? [Y/n]: " "Y"
749
751
  if [[ "$install_bdui" =~ ^[Yy]?$ ]]; then
750
- if run_with_spinner "Installing bdui" npm_global_install bdui; then
751
- print_info "Run: bdui"
752
+ if run_with_spinner "Installing bdui" npm_global_install bdui 1>&2; then
753
+ print_info "Run: bdui" >&2
752
754
  count=$((count + 1))
753
755
  fi
754
756
  fi
@@ -35,13 +35,13 @@ setup_configs() {
35
35
  install_aidevops_cli() {
36
36
  print_info "Installing aidevops CLI command..."
37
37
 
38
- local script_dir
39
- script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
40
- local cli_source="$script_dir/aidevops.sh"
38
+ # Use INSTALL_DIR (repo root, exported by setup.sh) — not BASH_SOURCE[0]
39
+ # which resolves to setup-modules/ when sourced from setup.sh.
40
+ local cli_source="${INSTALL_DIR:?INSTALL_DIR not set}/aidevops.sh"
41
41
  local cli_target="/usr/local/bin/aidevops"
42
42
 
43
43
  if [[ ! -f "$cli_source" ]]; then
44
- print_warning "aidevops.sh not found - skipping CLI installation"
44
+ print_warning "aidevops.sh not found at $cli_source - skipping CLI installation"
45
45
  return 0
46
46
  fi
47
47
 
package/setup.sh CHANGED
@@ -10,7 +10,7 @@ shopt -s inherit_errexit 2>/dev/null || true
10
10
  # AI Assistant Server Access Framework Setup Script
11
11
  # Helps developers set up the framework for their infrastructure
12
12
  #
13
- # Version: 3.5.537
13
+ # Version: 3.5.539
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)
@@ -775,6 +775,7 @@ _setup_run_non_interactive() {
775
775
  validate_opencode_config
776
776
  deploy_aidevops_agents
777
777
  sync_agent_sources
778
+ install_aidevops_cli
778
779
  setup_shellcheck_wrapper
779
780
  if is_feature_enabled safety_hooks 2>/dev/null; then
780
781
  setup_safety_hooks