aidevops 3.1.38 → 3.1.39

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.1.38
1
+ 3.1.39
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.1.38
6
+ # Version: 3.1.39
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.1.38",
3
+ "version": "3.1.39",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,6 +41,8 @@ check_opencode_prompt_drift() {
41
41
  local drift_script=".agents/scripts/opencode-prompt-drift-check.sh"
42
42
  if [[ -f "$drift_script" ]]; then
43
43
  local output exit_code=0
44
+ # 2>/dev/null is intentional: --quiet mode suppresses expected output; all exit
45
+ # codes (0=in-sync, 1=drift, other=error) are handled explicitly below.
44
46
  output=$(bash "$drift_script" --quiet 2>/dev/null) || exit_code=$?
45
47
  if [[ "$exit_code" -eq 1 && "$output" == PROMPT_DRIFT* ]]; then
46
48
  local local_hash upstream_hash
@@ -460,19 +460,19 @@ setup_opencode_plugins() {
460
460
  local already_registered
461
461
  already_registered=$(jq --arg url "$plugin_url" \
462
462
  '(.plugin // []) | map(select(. == $url)) | length' \
463
- "$opencode_config" 2>/dev/null || echo "0")
463
+ "$opencode_config" || echo "0")
464
464
 
465
465
  if [[ "$already_registered" -eq 0 ]]; then
466
466
  # Add the plugin URL to the array (create array if absent)
467
467
  local tmp_config="${opencode_config}.tmp.$$"
468
468
  if jq --arg url "$plugin_url" \
469
469
  '.plugin = ((.plugin // []) + [$url] | unique)' \
470
- "$opencode_config" >"$tmp_config" 2>/dev/null; then
470
+ "$opencode_config" >"$tmp_config"; then
471
471
  mv "$tmp_config" "$opencode_config"
472
472
  print_success "aidevops plugin registered in opencode.json"
473
473
  else
474
474
  rm -f "$tmp_config"
475
- print_warning "Failed to update opencode.json plugin array"
475
+ print_warning "Failed to update opencode.json plugin array (file: $opencode_config)"
476
476
  fi
477
477
  else
478
478
  print_success "aidevops plugin already registered in opencode.json"
@@ -498,7 +498,6 @@ setup_opencode_plugins() {
498
498
  fi
499
499
 
500
500
  setup_track_configured "OpenCode plugins"
501
- pool_plugin_registered="true"
502
501
 
503
502
  # Note: opencode-anthropic-auth is built into OpenCode v1.1.36+
504
503
  # Adding it as an external plugin causes TypeError due to double-loading.
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.1.38
13
+ # Version: 3.1.39
14
14
  #
15
15
  # Quick Install:
16
16
  # npm install -g aidevops && aidevops update (recommended)