aidevops 3.32.145 → 3.32.147

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/README.md CHANGED
@@ -60,7 +60,7 @@ The result: an AI operations platform that manages projects across every busines
60
60
  [![Copyright](https://img.shields.io/badge/Copyright-Marcus%20Quinn%202025--2026-blue.svg)](https://github.com/marcusquinn)
61
61
 
62
62
  <!-- Release & Version Info -->
63
- [![Version](https://img.shields.io/badge/Version-3.32.145-blue.svg)](https://github.com/marcusquinn/aidevops/releases)
63
+ [![Version](https://img.shields.io/badge/Version-3.32.147-blue.svg)](https://github.com/marcusquinn/aidevops/releases)
64
64
  [![npm version](https://img.shields.io/npm/v/aidevops)](https://www.npmjs.com/package/aidevops)
65
65
  [![Homebrew](https://img.shields.io/badge/homebrew-marcusquinn%2Ftap-orange)](https://github.com/marcusquinn/homebrew-tap)
66
66
  [![GitHub repository](https://img.shields.io/badge/github-repository-181717.svg?logo=github)](https://github.com/marcusquinn/aidevops)
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.32.145
1
+ 3.32.147
package/aidevops.sh CHANGED
@@ -5,7 +5,7 @@
5
5
  # AI DevOps Framework CLI
6
6
  # Usage: aidevops <command> [options]
7
7
  #
8
- # Version: 3.32.145
8
+ # Version: 3.32.147
9
9
 
10
10
  set -euo pipefail
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.32.145",
3
+ "version": "3.32.147",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "workspaces": [
package/setup.sh CHANGED
@@ -17,7 +17,7 @@ fi
17
17
  # AI Assistant Server Access Framework Setup Script
18
18
  # Helps developers set up the framework for their infrastructure
19
19
  #
20
- # Version: 3.32.145
20
+ # Version: 3.32.147
21
21
  #
22
22
  # Quick Install:
23
23
  # npm install -g aidevops && aidevops update (recommended)
@@ -1313,33 +1313,84 @@ _setup_ai_session_build_plan() {
1313
1313
  }
1314
1314
 
1315
1315
  _setup_reconcile_runtime_config() {
1316
+ pin_aidevops_active_runtime_bundle_root || {
1317
+ print_warning "Runtime configuration reconciliation could not resolve the active agents bundle"
1318
+ return 1
1319
+ }
1316
1320
  update_runtime_configs || return $?
1317
1321
  deploy_commands_to_all_runtimes || return $?
1318
1322
  return 0
1319
1323
  }
1320
1324
 
1325
+ _setup_git_checkout_available() {
1326
+ local checkout_root="$1"
1327
+ local git_dir=""
1328
+ local git_common_dir=""
1329
+
1330
+ git_dir=$(git -C "$checkout_root" rev-parse --git-dir 2>/dev/null) || return 1
1331
+ git_common_dir=$(git -C "$checkout_root" rev-parse --git-common-dir 2>/dev/null) || return 1
1332
+ [[ -n "$git_dir" && -n "$git_common_dir" ]] || return 1
1333
+ return 0
1334
+ }
1335
+
1336
+ _setup_bundle_manifest_value() {
1337
+ local manifest_file="$1"
1338
+ local key="$2"
1339
+ local value=""
1340
+ value=$(grep -m 1 "^${key}=" "$manifest_file" 2>/dev/null) || return 1
1341
+ printf '%s' "${value#*=}"
1342
+ return 0
1343
+ }
1344
+
1321
1345
  _setup_ai_session_verify_deploy() {
1322
1346
  local expected_sha="$1"
1347
+ local active_link="$HOME/.aidevops/agents"
1348
+ local active_root=""
1349
+ local manifest_file=""
1350
+ local manifest_status=""
1351
+ local manifest_version=""
1352
+ local manifest_sha=""
1323
1353
  local repo_version=""
1324
1354
  local deployed_version=""
1325
1355
  local deployed_sha=""
1326
1356
 
1357
+ if [[ ! -L "$active_link" ]]; then
1358
+ print_warning "AI-session incremental verification failed: active agents path is not an activation symlink"
1359
+ return 1
1360
+ fi
1361
+ active_root=$(resolve_aidevops_runtime_bundle_root "$active_link") || {
1362
+ print_warning "AI-session incremental verification failed: active agents symlink cannot be resolved"
1363
+ return 1
1364
+ }
1365
+ manifest_file="$active_root/.bundle-manifest"
1366
+ if [[ ! -r "$manifest_file" ]]; then
1367
+ print_warning "AI-session incremental verification failed: active bundle manifest is missing"
1368
+ return 1
1369
+ fi
1370
+ manifest_status=$(_setup_bundle_manifest_value "$manifest_file" status) || manifest_status=""
1371
+ manifest_version=$(_setup_bundle_manifest_value "$manifest_file" framework_version) || manifest_version=""
1372
+ manifest_sha=$(_setup_bundle_manifest_value "$manifest_file" git_sha) || manifest_sha=""
1373
+
1327
1374
  if [[ -f "$INSTALL_DIR/VERSION" ]]; then
1328
1375
  repo_version=$(tr -d '[:space:]' <"$INSTALL_DIR/VERSION" 2>/dev/null) || repo_version=""
1329
1376
  fi
1330
- if [[ -f "$HOME/.aidevops/agents/VERSION" ]]; then
1331
- deployed_version=$(tr -d '[:space:]' <"$HOME/.aidevops/agents/VERSION" 2>/dev/null) || deployed_version=""
1377
+ if [[ -f "$active_root/VERSION" ]]; then
1378
+ deployed_version=$(tr -d '[:space:]' <"$active_root/VERSION" 2>/dev/null) || deployed_version=""
1332
1379
  fi
1333
1380
  if [[ -f "$HOME/.aidevops/.deployed-sha" ]]; then
1334
1381
  deployed_sha=$(tr -d '[:space:]' <"$HOME/.aidevops/.deployed-sha" 2>/dev/null) || deployed_sha=""
1335
1382
  fi
1336
1383
 
1337
- if [[ -z "$repo_version" || "$repo_version" != "$deployed_version" ]]; then
1338
- print_warning "AI-session incremental verification failed: repo version=${repo_version:-unknown}, deployed=${deployed_version:-none}"
1384
+ if [[ "$manifest_status" != "validated" ]]; then
1385
+ print_warning "AI-session incremental verification failed: active bundle manifest status=${manifest_status:-missing}"
1386
+ return 1
1387
+ fi
1388
+ if [[ -z "$repo_version" || "$repo_version" != "$deployed_version" || "$repo_version" != "$manifest_version" ]]; then
1389
+ print_warning "AI-session incremental verification failed: repo version=${repo_version:-unknown}, active=${deployed_version:-none}, manifest=${manifest_version:-none}"
1339
1390
  return 1
1340
1391
  fi
1341
- if [[ -z "$deployed_sha" || "$deployed_sha" != "$expected_sha" ]]; then
1342
- print_warning "AI-session incremental verification failed: deployed SHA=${deployed_sha:-none}, expected=${expected_sha:0:12}"
1392
+ if [[ -z "$deployed_sha" || "$deployed_sha" != "$expected_sha" || "$manifest_sha" != "$expected_sha" ]]; then
1393
+ print_warning "AI-session incremental verification failed: stamp SHA=${deployed_sha:-none}, manifest SHA=${manifest_sha:-none}, expected=${expected_sha:0:12}"
1343
1394
  return 1
1344
1395
  fi
1345
1396
 
@@ -1354,7 +1405,7 @@ _setup_run_ai_session_incremental() {
1354
1405
  local changed_files=""
1355
1406
 
1356
1407
  print_info "AI-session setup mode: applying changed deploy stages only"
1357
- if [[ ! -d "$INSTALL_DIR/.git" || ! -f "$stamp_file" ]]; then
1408
+ if ! _setup_git_checkout_available "$INSTALL_DIR" || [[ ! -f "$stamp_file" ]]; then
1358
1409
  print_warning "AI-session incremental setup needs a git checkout and deployed SHA stamp"
1359
1410
  return 1
1360
1411
  fi
@@ -1413,6 +1464,7 @@ _setup_run_ai_session_incremental() {
1413
1464
  _setup_run_scoped_stage() {
1414
1465
  local os="$1"
1415
1466
  local stage
1467
+ local current_sha=""
1416
1468
  stage="$(_setup_canonical_stage "$SETUP_STAGE")" || return 1
1417
1469
 
1418
1470
  if [[ "$stage" == "full" ]]; then
@@ -1453,6 +1505,9 @@ _setup_run_scoped_stage() {
1453
1505
  print_warning "AI-session incremental setup unavailable or failed; falling back to full setup"
1454
1506
  _setup_run_non_interactive || return $?
1455
1507
  _setup_post_setup_steps "$os" || return $?
1508
+ current_sha=$(git -C "$INSTALL_DIR" rev-parse HEAD 2>/dev/null) || current_sha=""
1509
+ [[ -n "$current_sha" ]] || return 1
1510
+ _setup_ai_session_verify_deploy "$current_sha" || return $?
1456
1511
  fi
1457
1512
  ;;
1458
1513
  *)