aidevops 3.39.277 → 3.39.278
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 +83 -4
- package/bun.lock +6 -6
- package/package.json +4 -4
- package/setup.sh +1 -1
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.278
|
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.
|
|
8
|
+
# Version: 3.39.278
|
|
9
9
|
|
|
10
10
|
set -euo pipefail
|
|
11
11
|
|
|
@@ -281,13 +281,88 @@ _update_verify_deployment_state() {
|
|
|
281
281
|
return $?
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
+
_update_wait_for_setup_handoff() {
|
|
285
|
+
local expected_sha="$1" checkout_ready_epoch="$2"
|
|
286
|
+
local lock_dir="${AIDEVOPS_SETUP_LOCK_DIR:-$HOME/.aidevops/locks/setup-noninteractive.lock.d}"
|
|
287
|
+
local timings_log="$HOME/.aidevops/logs/setup-stage-timings.log"
|
|
288
|
+
local owner_pid="" owner_started="" owner_command="" current_pid="" current_started=""
|
|
289
|
+
local wait_limit="${AIDEVOPS_UPDATE_HANDOFF_WAIT_S:-1800}"
|
|
290
|
+
local wait_started="$SECONDS" elapsed=0
|
|
291
|
+
# Read only metadata, never source setup.sh (which would execute setup).
|
|
292
|
+
[[ -r "$lock_dir/owner.pid" ]] && IFS= read -r owner_pid <"$lock_dir/owner.pid"
|
|
293
|
+
[[ -r "$lock_dir/started_at_epoch" ]] && IFS= read -r owner_started <"$lock_dir/started_at_epoch"
|
|
294
|
+
[[ -r "$lock_dir/command" ]] && owner_command=$(<"$lock_dir/command")
|
|
295
|
+
# Setup joins arguments with its newline-first IFS when recording the command.
|
|
296
|
+
owner_command="${owner_command//$'\n'/ }"
|
|
297
|
+
local owner_words=() owner_word="" owner_stage="" stage_pending=false full_setup=false
|
|
298
|
+
IFS=$' \t\n' read -r -a owner_words <<<"$owner_command"
|
|
299
|
+
# Match setup's last-stage-wins parsing without evaluating lock contents.
|
|
300
|
+
for owner_word in "${owner_words[@]}"; do
|
|
301
|
+
if [[ "$stage_pending" == "true" ]]; then
|
|
302
|
+
owner_stage="$owner_word"
|
|
303
|
+
stage_pending=false
|
|
304
|
+
continue
|
|
305
|
+
fi
|
|
306
|
+
case "$owner_word" in
|
|
307
|
+
--stage) stage_pending=true; owner_stage=invalid ;;
|
|
308
|
+
--stage=*) owner_stage="${owner_word#--stage=}" ;;
|
|
309
|
+
--non-interactive) full_setup=true ;;
|
|
310
|
+
esac
|
|
311
|
+
done
|
|
312
|
+
# Reject malformed/older owners and non-deploying stages. Equal epochs are
|
|
313
|
+
# ambiguous at second precision, so retain the original failure in that case.
|
|
314
|
+
if [[ ! "$owner_pid" =~ ^[1-9][0-9]{0,9}$ ||
|
|
315
|
+
! "$owner_started" =~ ^[1-9][0-9]{0,9}$ ||
|
|
316
|
+
! "$checkout_ready_epoch" =~ ^[1-9][0-9]{0,9}$ ]] ||
|
|
317
|
+
[[ "$owner_started" -le "$checkout_ready_epoch" ]] ||
|
|
318
|
+
[[ ! "$owner_command" =~ (^|[[:space:]/])setup\.sh[[:space:]] ]] ||
|
|
319
|
+
[[ "$owner_stage" != "ai-session" && ( -n "$owner_stage" || "$full_setup" != "true" ) ]] ||
|
|
320
|
+
[[ "$stage_pending" == "true" ]]; then
|
|
321
|
+
print_error "Agent deployment failed: setup exited with code 75"
|
|
322
|
+
return 1
|
|
323
|
+
fi
|
|
324
|
+
# Fail closed if the lock changed while its metadata was being read.
|
|
325
|
+
[[ -r "$lock_dir/owner.pid" ]] && IFS= read -r current_pid <"$lock_dir/owner.pid"
|
|
326
|
+
[[ -r "$lock_dir/started_at_epoch" ]] && IFS= read -r current_started <"$lock_dir/started_at_epoch"
|
|
327
|
+
if [[ "$current_pid" != "$owner_pid" || "$current_started" != "$owner_started" ]]; then
|
|
328
|
+
print_error "Agent deployment failed: setup lock owner changed during handoff; diagnose: $timings_log"
|
|
329
|
+
return 1
|
|
330
|
+
fi
|
|
331
|
+
[[ "$wait_limit" =~ ^[0-9]{1,6}$ ]] || wait_limit=1800
|
|
332
|
+
wait_limit=$((10#$wait_limit))
|
|
333
|
+
print_info "Deployment handed off to in-flight setup pid $owner_pid (started $owner_started, checkout ready $checkout_ready_epoch); waiting up to ${wait_limit}s. Diagnose: $timings_log"
|
|
334
|
+
while kill -0 "$owner_pid" 2>/dev/null; do
|
|
335
|
+
elapsed=$((SECONDS - wait_started))
|
|
336
|
+
if [[ "$elapsed" -ge "$wait_limit" ]]; then
|
|
337
|
+
print_error "Deployment handoff timed out after ${elapsed}s waiting for setup pid $owner_pid; diagnose: $timings_log"
|
|
338
|
+
return 1
|
|
339
|
+
fi
|
|
340
|
+
if [[ "$elapsed" -gt 0 && $((elapsed % 60)) -eq 0 ]]; then
|
|
341
|
+
print_info "Still waiting for setup pid $owner_pid (${elapsed}s of ${wait_limit}s); diagnose: $timings_log"
|
|
342
|
+
fi
|
|
343
|
+
sleep 1
|
|
344
|
+
done
|
|
345
|
+
if ! _update_verify_deployment_state "$expected_sha"; then
|
|
346
|
+
print_error "Deployment handoff to setup pid $owner_pid ended without convergence to $expected_sha; diagnose: $timings_log"
|
|
347
|
+
return 1
|
|
348
|
+
fi
|
|
349
|
+
_update_adopt_deployed_version
|
|
350
|
+
return 0
|
|
351
|
+
}
|
|
352
|
+
|
|
284
353
|
_run_update_setup_transaction() {
|
|
285
354
|
local output_mode="$1"
|
|
286
355
|
local expected_sha="$2"
|
|
356
|
+
local checkout_ready_epoch="${3:-0}"
|
|
287
357
|
local setup_exit=0
|
|
288
358
|
local rollback_receipt=""
|
|
289
359
|
rollback_receipt=$(mktemp) || return 1
|
|
290
360
|
AIDEVOPS_UPDATE_ROLLBACK_RECEIPT="$rollback_receipt" _run_update_setup "$output_mode" || setup_exit=$?
|
|
361
|
+
if [[ "$setup_exit" -eq 75 ]]; then
|
|
362
|
+
rm -f "$rollback_receipt"
|
|
363
|
+
_update_wait_for_setup_handoff "$expected_sha" "$checkout_ready_epoch"
|
|
364
|
+
return $?
|
|
365
|
+
fi
|
|
291
366
|
if [[ "$setup_exit" -ne 0 ]]; then
|
|
292
367
|
rm -f "$rollback_receipt"
|
|
293
368
|
print_error "Agent deployment failed: setup exited with code $setup_exit"
|
|
@@ -478,6 +553,8 @@ _update_existing_install() {
|
|
|
478
553
|
|
|
479
554
|
_update_already_current() {
|
|
480
555
|
local local_hash="$1" update_output_mode="$2"
|
|
556
|
+
local checkout_ready_epoch
|
|
557
|
+
checkout_ready_epoch=$(date +%s) || return 1
|
|
481
558
|
print_success "Framework already up to date!"
|
|
482
559
|
local repo_version deployed_version
|
|
483
560
|
repo_version=$(cat "$INSTALL_DIR/VERSION" 2>/dev/null || echo "unknown")
|
|
@@ -485,7 +562,7 @@ _update_already_current() {
|
|
|
485
562
|
if [[ "$repo_version" != "$deployed_version" ]]; then
|
|
486
563
|
print_warning "Deployed agents ($deployed_version) don't match repo ($repo_version)"
|
|
487
564
|
print_info "Re-running incremental setup to sync agents..."
|
|
488
|
-
_run_update_setup_transaction "$update_output_mode" "$local_hash"
|
|
565
|
+
_run_update_setup_transaction "$update_output_mode" "$local_hash" "$checkout_ready_epoch"
|
|
489
566
|
return $?
|
|
490
567
|
fi
|
|
491
568
|
local stamp_file="$HOME/.aidevops/.deployed-sha" deployed_sha=""
|
|
@@ -496,7 +573,7 @@ _update_already_current() {
|
|
|
496
573
|
if git -C "$INSTALL_DIR" diff --name-only "$deployed_sha" "$local_hash" -- .agents/scripts/ .agents/agents/ .agents/workflows/ .agents/prompts/ .agents/hooks/ .agents/worker-lifecycle/ setup.sh .agents/scripts/setup/modules/ aidevops.sh 2>/dev/null | grep . >/dev/null; then
|
|
497
574
|
print_warning "Deployed scripts drifted (${deployed_sha:0:7}→${local_hash:0:7})"
|
|
498
575
|
print_info "Re-running incremental setup to deploy latest scripts..."
|
|
499
|
-
_run_update_setup_transaction "$update_output_mode" "$local_hash" || return 1
|
|
576
|
+
_run_update_setup_transaction "$update_output_mode" "$local_hash" "$checkout_ready_epoch" || return 1
|
|
500
577
|
fi
|
|
501
578
|
_update_check_workflow_drift "$deployed_sha" "$local_hash"
|
|
502
579
|
return 0
|
|
@@ -516,6 +593,8 @@ _update_apply_remote() {
|
|
|
516
593
|
print_error "Updated HEAD does not match the fetched origin/main commit; refusing to run setup."
|
|
517
594
|
return 1
|
|
518
595
|
fi
|
|
596
|
+
local checkout_ready_epoch
|
|
597
|
+
checkout_ready_epoch=$(date +%s) || return 1
|
|
519
598
|
if [[ "$old_hash" != "$new_hash" ]]; then
|
|
520
599
|
if _update_repo_verify_files_changed "$old_hash" "$new_hash"; then _AIDEVOPS_UPDATE_RECONCILE_REPO_VERIFY=true; fi
|
|
521
600
|
_update_render_changelog "$old_hash" "$new_hash" "$current_version"
|
|
@@ -525,7 +604,7 @@ _update_apply_remote() {
|
|
|
525
604
|
_update_verify_signature
|
|
526
605
|
echo ""
|
|
527
606
|
print_info "Running incremental setup to apply changes (falls back to full setup if needed)..."
|
|
528
|
-
_run_update_setup_transaction "$update_output_mode" "$new_hash" || return 1
|
|
607
|
+
_run_update_setup_transaction "$update_output_mode" "$new_hash" "$checkout_ready_epoch" || return 1
|
|
529
608
|
new_version=$(get_version)
|
|
530
609
|
print_success "Updated to version $new_version (agents deployed)"
|
|
531
610
|
return 0
|
package/bun.lock
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "aidevops",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"elysia": "1.4.
|
|
8
|
+
"elysia": "1.4.32",
|
|
9
9
|
"file-type": "21.3.4",
|
|
10
|
-
"hono": "4.13.
|
|
10
|
+
"hono": "4.13.19",
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@secretlint/secretlint-rule-preset-recommend": "13.1.0",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"react-dom": "19.3.1",
|
|
21
21
|
"secretlint": "13.1.0",
|
|
22
22
|
"typescript": "7.0.2",
|
|
23
|
-
"vite": "8.3.
|
|
23
|
+
"vite": "8.3.8",
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"typescript": "^5.0.0",
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
|
|
298
298
|
"editions": ["editions@6.22.0", "", { "dependencies": { "version-range": "^4.15.0" } }, "sha512-UgGlf8IW75je7HZjNDpJdCv4cGJWIi6yumFdZ0R7A8/CIhQiWUjyGLCxdHpd8bmyD1gnkfUNK0oeOXqUS2cpfQ=="],
|
|
299
299
|
|
|
300
|
-
"elysia": ["elysia@1.4.
|
|
300
|
+
"elysia": ["elysia@1.4.32", "", { "dependencies": { "cookie": "^1.1.1", "exact-mirror": "^0.2.9", "fast-decode-uri-component": "^1.0.1", "memoirist": "^0.4.0" }, "peerDependencies": { "@sinclair/typebox": ">= 0.34.0 < 1", "@types/bun": ">= 1.2.0", "file-type": ">= 20.0.0", "openapi-types": ">= 12.0.0", "typescript": ">= 5.0.0" }, "optionalPeers": ["@types/bun", "typescript"] }, "sha512-pSWBPKJe0t24r6oQydL8xmFnbOOVs0bXN1ShIwSPxXJbE/z9NRRXs8FigQRhXyjdbi3YSuJgEKe22BVx4cU99w=="],
|
|
301
301
|
|
|
302
302
|
"emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="],
|
|
303
303
|
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
|
|
320
320
|
"has-flag": ["has-flag@5.0.1", "", {}, "sha512-CsNUt5x9LUdx6hnk/E2SZLsDyvfqANZSUq4+D3D8RzDJ2M+HDTIkF60ibS1vHaK55vzgiZw1bEPFG9yH7l33wA=="],
|
|
321
321
|
|
|
322
|
-
"hono": ["hono@4.13.
|
|
322
|
+
"hono": ["hono@4.13.19", "", {}, "sha512-KmXvQAXwcAHV+muzbIwoJ23niEB5nMoDVr9WcRkU8mvjUECm/1+7v4Jgp7P7a+H6MLFrh+vXrGonGrGS+RQfkA=="],
|
|
323
323
|
|
|
324
324
|
"hosted-git-info": ["hosted-git-info@9.0.3", "", { "dependencies": { "lru-cache": "^11.1.0" } }, "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg=="],
|
|
325
325
|
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
|
|
468
468
|
"version-range": ["version-range@4.15.0", "", {}, "sha512-Ck0EJbAGxHwprkzFO966t4/5QkRuzh+/I1RxhLgUKKwEn+Cd8NwM60mE3AqBZg5gYODoXW0EFsQvbZjRlvdqbg=="],
|
|
469
469
|
|
|
470
|
-
"vite": ["vite@8.3.
|
|
470
|
+
"vite": ["vite@8.3.8", "", { "dependencies": { "lightningcss": "^1.33.0", "picomatch": "^4.0.7", "postcss": "^8.5.32", "rolldown": "~1.2.18", "tinyglobby": "^0.2.17" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "@vitejs/devtools": "^0.7.1 || ^0.8.0", "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", "less": "^4.0.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "@vitejs/devtools", "esbuild", "jiti", "less", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA=="],
|
|
471
471
|
|
|
472
472
|
"@textlint/linter-formatter/chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
|
|
473
473
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aidevops",
|
|
3
|
-
"version": "3.39.
|
|
3
|
+
"version": "3.39.278",
|
|
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",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"author": "Marcus Quinn <marcus@aidevops.sh>",
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"elysia": "1.4.
|
|
58
|
+
"elysia": "1.4.32",
|
|
59
59
|
"file-type": "21.3.4",
|
|
60
|
-
"hono": "4.13.
|
|
60
|
+
"hono": "4.13.19"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@secretlint/secretlint-rule-preset-recommend": "13.1.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"react-dom": "19.3.1",
|
|
71
71
|
"secretlint": "13.1.0",
|
|
72
72
|
"typescript": "7.0.2",
|
|
73
|
-
"vite": "8.3.
|
|
73
|
+
"vite": "8.3.8"
|
|
74
74
|
},
|
|
75
75
|
"overrides": {
|
|
76
76
|
"esbuild": "0.28.1",
|
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.278
|
|
21
21
|
#
|
|
22
22
|
# Quick Install:
|
|
23
23
|
# npm install -g aidevops && aidevops update (recommended)
|