aidevops 3.5.465 → 3.5.467

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.5.465
1
+ 3.5.467
package/aidevops.sh CHANGED
@@ -3,7 +3,7 @@
3
3
  # AI DevOps Framework CLI
4
4
  # Usage: aidevops <command> [options]
5
5
  #
6
- # Version: 3.5.465
6
+ # Version: 3.5.467
7
7
 
8
8
  set -euo pipefail
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "3.5.465",
3
+ "version": "3.5.467",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -68,6 +68,7 @@ _determine_pulse_install() {
68
68
  elif [[ -f "$wrapper_script" ]]; then
69
69
  # Interactive: prompt with default-no
70
70
  # All user-facing output goes to stderr so $() captures only the result
71
+ local enable_pulse=""
71
72
  echo "" >&2
72
73
  echo "The supervisor pulse enables autonomous orchestration." >&2
73
74
  echo "It will act under your GitHub identity and consume API credits:" >&2
@@ -104,6 +105,30 @@ _determine_pulse_install() {
104
105
  return 0
105
106
  }
106
107
 
108
+ _resolve_headless_models_override() {
109
+ local configured="${AIDEVOPS_HEADLESS_MODELS:-}"
110
+ if [[ -z "$configured" ]] && type config_get &>/dev/null; then
111
+ configured=$(config_get "orchestration.headless_models" "")
112
+ if [[ "$configured" == "null" ]]; then
113
+ configured=""
114
+ fi
115
+ fi
116
+ printf '%s' "$configured"
117
+ return 0
118
+ }
119
+
120
+ _resolve_pulse_model_override() {
121
+ local configured="${PULSE_MODEL:-}"
122
+ if [[ -z "$configured" ]] && type config_get &>/dev/null; then
123
+ configured=$(config_get "orchestration.pulse_model" "")
124
+ if [[ "$configured" == "null" ]]; then
125
+ configured=""
126
+ fi
127
+ fi
128
+ printf '%s' "$configured"
129
+ return 0
130
+ }
131
+
107
132
  # Setup the supervisor pulse scheduler (consent-gated autonomous orchestration).
108
133
  # Uses pulse-wrapper.sh which handles dedup, orphan cleanup, and RAM-based concurrency.
109
134
  # macOS: launchd plist invoking wrapper | Linux: cron entry invoking wrapper
@@ -215,6 +240,9 @@ _install_pulse_launchd() {
215
240
  # if $HOME or paths contain &, <, > characters)
216
241
  local _xml_wrapper_script _xml_home _xml_opencode_bin _xml_pulse_dir _xml_path
217
242
  local _headless_xml_env=""
243
+ local _configured_headless_models _configured_pulse_model
244
+ _configured_headless_models=$(_resolve_headless_models_override)
245
+ _configured_pulse_model=$(_resolve_pulse_model_override)
218
246
  _xml_wrapper_script=$(_xml_escape "$wrapper_script")
219
247
  _xml_home=$(_xml_escape "$HOME")
220
248
  _xml_opencode_bin=$(_xml_escape "$opencode_bin")
@@ -222,14 +250,22 @@ _install_pulse_launchd() {
222
250
  # are not associated with any specific managed repo (GH#5136).
223
251
  _xml_pulse_dir=$(_xml_escape "${HOME}/.aidevops/.agent-workspace")
224
252
  _xml_path=$(_xml_escape "$PATH")
225
- if [[ -n "${AIDEVOPS_HEADLESS_MODELS:-}" ]]; then
253
+ if [[ -n "$_configured_headless_models" ]]; then
226
254
  local _xml_headless_models
227
- _xml_headless_models=$(_xml_escape "$AIDEVOPS_HEADLESS_MODELS")
255
+ _xml_headless_models=$(_xml_escape "$_configured_headless_models")
228
256
  _headless_xml_env+=$'\n'
229
257
  _headless_xml_env+=$'\t\t<key>AIDEVOPS_HEADLESS_MODELS</key>'
230
258
  _headless_xml_env+=$'\n'
231
259
  _headless_xml_env+=$'\t\t'"<string>${_xml_headless_models}</string>"
232
260
  fi
261
+ if [[ -n "$_configured_pulse_model" ]]; then
262
+ local _xml_pulse_model
263
+ _xml_pulse_model=$(_xml_escape "$_configured_pulse_model")
264
+ _headless_xml_env+=$'\n'
265
+ _headless_xml_env+=$'\t\t<key>PULSE_MODEL</key>'
266
+ _headless_xml_env+=$'\n'
267
+ _headless_xml_env+=$'\t\t'"<string>${_xml_pulse_model}</string>"
268
+ fi
233
269
  if [[ -n "${AIDEVOPS_HEADLESS_PROVIDER_ALLOWLIST:-}" ]]; then
234
270
  local _xml_headless_allowlist
235
271
  _xml_headless_allowlist=$(_xml_escape "$AIDEVOPS_HEADLESS_PROVIDER_ALLOWLIST")
@@ -302,14 +338,22 @@ _install_pulse_cron() {
302
338
  # OPENCODE_BIN removed — resolved from PATH at runtime via command -v.
303
339
  # See #4099 and #4240 for history.
304
340
  local _cron_pulse_dir _cron_wrapper_script _cron_headless_env=""
341
+ local _configured_headless_models _configured_pulse_model
342
+ _configured_headless_models=$(_resolve_headless_models_override)
343
+ _configured_pulse_model=$(_resolve_pulse_model_override)
305
344
  # Use neutral workspace path for PULSE_DIR (GH#5136)
306
345
  _cron_pulse_dir=$(_cron_escape "${HOME}/.aidevops/.agent-workspace")
307
346
  _cron_wrapper_script=$(_cron_escape "$wrapper_script")
308
- if [[ -n "${AIDEVOPS_HEADLESS_MODELS:-}" ]]; then
347
+ if [[ -n "$_configured_headless_models" ]]; then
309
348
  local _cron_headless_models
310
- _cron_headless_models=$(_cron_escape "$AIDEVOPS_HEADLESS_MODELS")
349
+ _cron_headless_models=$(_cron_escape "$_configured_headless_models")
311
350
  _cron_headless_env+=" AIDEVOPS_HEADLESS_MODELS=${_cron_headless_models}"
312
351
  fi
352
+ if [[ -n "$_configured_pulse_model" ]]; then
353
+ local _cron_pulse_model
354
+ _cron_pulse_model=$(_cron_escape "$_configured_pulse_model")
355
+ _cron_headless_env+=" PULSE_MODEL=${_cron_pulse_model}"
356
+ fi
313
357
  if [[ -n "${AIDEVOPS_HEADLESS_PROVIDER_ALLOWLIST:-}" ]]; then
314
358
  local _cron_headless_allowlist
315
359
  _cron_headless_allowlist=$(_cron_escape "$AIDEVOPS_HEADLESS_PROVIDER_ALLOWLIST")
package/setup.sh CHANGED
@@ -10,7 +10,7 @@ shopt -s inherit_errexit 2>/dev/null || true
10
10
  # AI Assistant Server Access Framework Setup Script
11
11
  # Helps developers set up the framework for their infrastructure
12
12
  #
13
- # Version: 3.5.465
13
+ # Version: 3.5.467
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)