aidevops 3.39.57 → 3.39.59

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.57-blue.svg)](https://github.com/marcusquinn/aidevops/releases)
28
+ [![Version](https://img.shields.io/badge/Version-3.39.59-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.57
1
+ 3.39.59
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.57
8
+ # Version: 3.39.59
9
9
 
10
10
  set -euo pipefail
11
11
 
@@ -1863,6 +1863,11 @@ _cmd_security() {
1863
1863
  _dispatch_helper "$tls_helper" "$tls_helper" "${@:-local}"
1864
1864
  return $?
1865
1865
  ;;
1866
+ cert-watch)
1867
+ shift || true
1868
+ _dispatch_helper "cert-watch-helper.sh" "cert-watch-helper.sh" "${@:-run}"
1869
+ return $?
1870
+ ;;
1866
1871
  *)
1867
1872
  _dispatch_helper "security-posture-helper.sh" "security-posture-helper.sh" "$@"
1868
1873
  ;;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.39.57",
3
+ "version": "3.39.59",
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.57
20
+ # Version: 3.39.59
21
21
  #
22
22
  # Quick Install:
23
23
  # npm install -g aidevops && aidevops update (recommended)
@@ -1388,6 +1388,18 @@ _setup_ai_session_verify_deploy() {
1388
1388
  return $?
1389
1389
  }
1390
1390
 
1391
+ # OpenCode DB archive (daily) and maintenance (weekly) schedulers keep the
1392
+ # session DB small enough to avoid "database is locked" stalls (GH#35492).
1393
+ # Both installers are idempotent content-diffs, so every auto-update ensures
1394
+ # they exist even when the incremental plan would not otherwise touch them.
1395
+ _setup_ensure_opencode_db_schedulers() {
1396
+ _time_step "setup_opencode_db_maintenance" setup_opencode_db_maintenance ||
1397
+ print_warning "OpenCode DB maintenance scheduler refresh failed (non-fatal)"
1398
+ _time_step "setup_opencode_db_archive" setup_opencode_db_archive ||
1399
+ print_warning "OpenCode DB archive scheduler refresh failed (non-fatal)"
1400
+ return 0
1401
+ }
1402
+
1391
1403
  _setup_run_ai_session_incremental() {
1392
1404
  local os="$1"
1393
1405
  local stamp_file="$HOME/.aidevops/.deployed-sha"
@@ -1414,6 +1426,7 @@ _setup_run_ai_session_incremental() {
1414
1426
 
1415
1427
  if [[ "$deployed_sha" == "$current_sha" ]]; then
1416
1428
  print_success "AI-session setup: deployed SHA already matches current checkout"
1429
+ _setup_ensure_opencode_db_schedulers
1417
1430
  _time_step "$SETUP_STAGE_TABBY" setup_tabby
1418
1431
  _setup_ai_session_verify_deploy "$current_sha" || return $?
1419
1432
  return 0
@@ -1452,6 +1465,8 @@ _setup_run_ai_session_incremental() {
1452
1465
  if [[ "$_SETUP_AI_SESSION_NEEDS_GUI" -eq 1 ]]; then
1453
1466
  _time_step "setup_gui_desktop_app_opt_in" _setup_offer_gui_desktop_app || return $?
1454
1467
  fi
1468
+ # After agent deploy so the schedulers point at the freshly deployed helpers.
1469
+ _setup_ensure_opencode_db_schedulers
1455
1470
 
1456
1471
  _time_step "$SETUP_STAGE_TABBY" setup_tabby
1457
1472
  _setup_ai_session_verify_deploy "$current_sha" || return $?