aidevops 3.39.211 → 3.39.213
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 +1 -1
- package/VERSION +1 -1
- package/aidevops.sh +1 -1
- package/package.json +1 -1
- package/setup.sh +25 -4
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ token efficiency, and quality control built in.**
|
|
|
25
25
|
[](https://qlty.sh/gh/marcusquinn/projects/aidevops)
|
|
26
26
|
[](https://app.codacy.com/gh/marcusquinn/aidevops/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
|
|
27
27
|
[](https://opensource.org/licenses/MIT)
|
|
28
|
-
[](https://github.com/marcusquinn/aidevops/releases)
|
|
29
29
|
[](https://www.npmjs.com/package/aidevops)
|
|
30
30
|
[](https://github.com/marcusquinn/homebrew-tap)
|
|
31
31
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.39.
|
|
1
|
+
3.39.213
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
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.
|
|
20
|
+
# Version: 3.39.213
|
|
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
|
|
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
|
-
|
|
1564
|
-
|
|
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
|
;;
|