aidevops 3.13.94 → 3.13.95

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/VERSION CHANGED
@@ -1 +1 @@
1
- 3.13.94
1
+ 3.13.95
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.13.94
8
+ # Version: 3.13.95
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.13.94",
3
+ "version": "3.13.95",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
package/setup.sh CHANGED
@@ -12,7 +12,7 @@ shopt -s inherit_errexit 2>/dev/null || true
12
12
  # AI Assistant Server Access Framework Setup Script
13
13
  # Helps developers set up the framework for their infrastructure
14
14
  #
15
- # Version: 3.13.94
15
+ # Version: 3.13.95
16
16
  #
17
17
  # Quick Install:
18
18
  # npm install -g aidevops && aidevops update (recommended)
@@ -1332,19 +1332,27 @@ _setup_post_setup_steps() {
1332
1332
 
1333
1333
  _setup_restart_pulse_if_running() {
1334
1334
  # t2579: restart pulse if running, so newly-deployed scripts take effect.
1335
- # No-op if pulse is not running, or if AIDEVOPS_SKIP_PULSE_RESTART=1.
1335
+ # t3491/GH#22418: then call idempotent start so a release deploy also
1336
+ # recovers a stopped pulse instead of leaving dispatch dead until manual
1337
+ # intervention. Honour AIDEVOPS_SKIP_PULSE_RESTART=1 for both operations.
1336
1338
  # Uses the deployed helper (not the repo-local one) so the restart runs
1337
1339
  # against the agents directory setup.sh just populated.
1338
1340
  # GH#22012: bounded 120 s timeout prevents setup.sh hanging here when the
1339
1341
  # pulse helper takes unusually long to stop a stalled instance. Falls back
1340
1342
  # to an unbounded call on platforms without timeout(1) (old macOS w/o
1341
1343
  # coreutils, embedded shells).
1344
+ if [[ "${AIDEVOPS_SKIP_PULSE_RESTART:-0}" == "1" ]]; then
1345
+ return 0
1346
+ fi
1347
+
1342
1348
  local _pulse_helper="${HOME}/.aidevops/agents/scripts/pulse-lifecycle-helper.sh"
1343
1349
  if [[ -x "$_pulse_helper" ]]; then
1344
1350
  if command -v timeout >/dev/null 2>&1; then
1345
1351
  timeout 120 "$_pulse_helper" restart-if-running || print_warning "Pulse restart failed (non-fatal)"
1352
+ timeout 120 "$_pulse_helper" start || print_warning "Pulse start failed (non-fatal)"
1346
1353
  else
1347
1354
  "$_pulse_helper" restart-if-running || print_warning "Pulse restart failed (non-fatal)"
1355
+ "$_pulse_helper" start || print_warning "Pulse start failed (non-fatal)"
1348
1356
  fi
1349
1357
  fi
1350
1358
  return 0