aidevops 3.5.461 → 3.5.463

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.461
1
+ 3.5.463
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.461
6
+ # Version: 3.5.463
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.461",
3
+ "version": "3.5.463",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -582,6 +582,11 @@ _migrate_mcp_npx_to_binary() {
582
582
  local tmp_config="$1"
583
583
  _cleanup_count=0
584
584
 
585
+ # Early return if config has no .mcp key — nothing to migrate (GH#14220)
586
+ if ! jq -e '.mcp' "$tmp_config" >/dev/null 2>&1; then
587
+ return 0
588
+ fi
589
+
585
590
  # Parallel arrays avoid bash associative array issues with @ in package names
586
591
  local -a mcp_pkgs=(
587
592
  "chrome-devtools-mcp"
@@ -605,8 +610,9 @@ _migrate_mcp_npx_to_binary() {
605
610
  local pkg="${mcp_pkgs[$i]}"
606
611
  local bin_name="${mcp_bins[$i]}"
607
612
  # Find MCP key using npx/bunx/pipx for this package (single query)
613
+ # Use (.mcp // {}) for null-safety — .mcp may not exist in minimal configs (GH#14220)
608
614
  local mcp_key
609
- mcp_key=$(jq -r --arg pkg "$pkg" '.mcp | to_entries[] | select(.value.command != null) | select(.value.command | join(" ") | test("npx.*" + $pkg + "|bunx.*" + $pkg + "|pipx.*run.*" + $pkg)) | .key' "$tmp_config" 2>/dev/null | head -1)
615
+ mcp_key=$(jq -r --arg pkg "$pkg" '(.mcp // {}) | to_entries[]? | select(.value.command != null) | select(.value.command | join(" ") | test("npx.*" + $pkg + "|bunx.*" + $pkg + "|pipx.*run.*" + $pkg)) | .key' "$tmp_config" 2>/dev/null | head -1)
610
616
 
611
617
  if [[ -n "$mcp_key" ]]; then
612
618
  # Resolve full path for the binary
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.461
13
+ # Version: 3.5.463
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)