aidevops 3.39.210 → 3.39.212

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
@@ -25,7 +25,7 @@ token efficiency, and quality control built in.**
25
25
  [![Maintainability](https://qlty.sh/gh/marcusquinn/projects/aidevops/maintainability.svg)](https://qlty.sh/gh/marcusquinn/projects/aidevops)
26
26
  [![Codacy Badge](https://app.codacy.com/project/badge/Grade/2b1adbd66c454dae92234341e801b984)](https://app.codacy.com/gh/marcusquinn/aidevops/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
27
27
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
28
- [![Version](https://img.shields.io/badge/Version-3.39.210-blue.svg)](https://github.com/marcusquinn/aidevops/releases)
28
+ [![Version](https://img.shields.io/badge/Version-3.39.212-blue.svg)](https://github.com/marcusquinn/aidevops/releases)
29
29
  [![npm version](https://img.shields.io/npm/v/aidevops)](https://www.npmjs.com/package/aidevops)
30
30
  [![Homebrew](https://img.shields.io/badge/homebrew-marcusquinn%2Ftap-orange)](https://github.com/marcusquinn/homebrew-tap)
31
31
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.39.210
1
+ 3.39.212
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.39.210
8
+ # Version: 3.39.212
9
9
 
10
10
  set -euo pipefail
11
11
 
@@ -1710,6 +1710,7 @@ _main_dispatch() {
1710
1710
  setup) cmd_setup "$@" ;;
1711
1711
  features | f) cmd_features ;;
1712
1712
  status | s) cmd_status "$@" ;;
1713
+ installs) _dispatch_helper "install-record-helper.sh" "install-record-helper.sh" "$@" ;;
1713
1714
  update | upgrade | u) cmd_update "$@" ;;
1714
1715
  runtime-bundle | runtime_bundle) AIDEVOPS_INSTALL_DIR="$INSTALL_DIR" _dispatch_helper "runtime-bundle-rollback-helper.sh" "runtime-bundle-rollback-helper.sh" "$@" ;;
1715
1716
  release) _dispatch_helper "full-loop-release-helper.sh" "full-loop-release-helper.sh" "$@" ;;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.39.210",
3
+ "version": "3.39.212",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "packageManager": "bun@1.3.11",
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.39.210
20
+ # Version: 3.39.212
21
21
  #
22
22
  # Quick Install:
23
23
  # npm install -g aidevops && aidevops update (recommended)
@@ -1404,8 +1404,24 @@ _setup_git_checkout_available() {
1404
1404
  return 0
1405
1405
  }
1406
1406
 
1407
+ # _setup_ai_session_verify_deploy <floor_sha>
1408
+ # floor_sha is the checkout commit when this setup began. Canonical main can
1409
+ # fast-forward during a multi-minute deploy (t19058: 36 logged convergence
1410
+ # failures, each rolling back a consistent bundle and repeating the deploy as a
1411
+ # full setup). Accept the activated bundle's commit when it lies between the
1412
+ # floor and the current HEAD; the verifier still pins manifest, stamp, VERSION
1413
+ # and sentinels to that commit. The next update cycle deploys the newer HEAD.
1407
1414
  _setup_ai_session_verify_deploy() {
1408
- local expected_sha="$1"
1415
+ local floor_sha="$1"
1416
+ local expected_sha="$floor_sha"
1417
+ local stamp_sha=""
1418
+ local _AIDEVOPS_RUNTIME_VERIFY_ALLOW_SOURCE_ADVANCE=1
1419
+
1420
+ stamp_sha=$(tr -d '[:space:]' <"$HOME/.aidevops/.deployed-sha" 2>/dev/null) || stamp_sha=""
1421
+ if [[ -n "$stamp_sha" && "$stamp_sha" != "$floor_sha" ]] &&
1422
+ git -C "$INSTALL_DIR" merge-base --is-ancestor "$floor_sha" "$stamp_sha" 2>/dev/null; then
1423
+ expected_sha="$stamp_sha"
1424
+ fi
1409
1425
  verify_aidevops_runtime_bundle_convergence \
1410
1426
  "$INSTALL_DIR" \
1411
1427
  "$expected_sha" \
@@ -1415,6 +1431,9 @@ _setup_ai_session_verify_deploy() {
1415
1431
  print_error "Failed to roll back the runtime bundle after convergence failure"
1416
1432
  return 1
1417
1433
  }
1434
+ if [[ -n "${_AIDEVOPS_RUNTIME_VERIFY_SOURCE_ADVANCED_TO:-}" ]]; then
1435
+ print_info "Checkout advanced to ${_AIDEVOPS_RUNTIME_VERIFY_SOURCE_ADVANCED_TO:0:12} during deploy; runtime ${expected_sha:0:12} is consistent and the next update deploys the newer commit"
1436
+ fi
1418
1437
  return 0
1419
1438
  }
1420
1439
 
@@ -1560,10 +1579,12 @@ _setup_run_scoped_stage() {
1560
1579
  "$SETUP_STAGE_AI_SESSION")
1561
1580
  if ! _setup_run_ai_session_incremental "$os"; then
1562
1581
  print_warning "AI-session incremental setup unavailable or failed; falling back to full setup"
1563
- _setup_run_non_interactive || return $?
1564
- _setup_post_setup_steps "$os" || return $?
1582
+ # Floor for verification: the deploy below reads HEAD at its own
1583
+ # start, which may be later than this point but never earlier.
1565
1584
  current_sha=$(git -C "$INSTALL_DIR" rev-parse HEAD 2>/dev/null) || current_sha=""
1566
1585
  [[ -n "$current_sha" ]] || return 1
1586
+ _setup_run_non_interactive || return $?
1587
+ _setup_post_setup_steps "$os" || return $?
1567
1588
  _setup_ai_session_verify_deploy "$current_sha" || return $?
1568
1589
  fi
1569
1590
  ;;