aidevops 3.37.6 → 3.37.8

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.37.6-blue.svg)](https://github.com/marcusquinn/aidevops/releases)
28
+ [![Version](https://img.shields.io/badge/Version-3.37.8-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.37.6
1
+ 3.37.8
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.37.6
8
+ # Version: 3.37.8
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.37.6",
3
+ "version": "3.37.8",
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.37.6
20
+ # Version: 3.37.8
21
21
  #
22
22
  # Quick Install:
23
23
  # npm install -g aidevops && aidevops update (recommended)
@@ -1566,6 +1566,7 @@ _setup_run_noninteractive_migrations() {
1566
1566
  _time_step "cleanup_worktree_entries_in_repos_json" cleanup_worktree_entries_in_repos_json
1567
1567
  _time_step "_cleanup_legacy_model_config" _cleanup_legacy_model_config
1568
1568
  _time_step "cleanup_legacy_dashboard_launchagent" cleanup_legacy_dashboard_launchagent
1569
+ _time_step "cleanup_legacy_agents_md_templates" cleanup_legacy_agents_md_templates
1569
1570
  return 0
1570
1571
  }
1571
1572
 
@@ -1699,6 +1700,19 @@ _setup_run_interactive_runtime_tools() {
1699
1700
  return 0
1700
1701
  }
1701
1702
 
1703
+ # Silent one-shot migrations for the interactive path (idempotent, flag-guarded
1704
+ # — no prompt needed). The non-interactive path times the same steps in
1705
+ # _setup_run_noninteractive_migrations.
1706
+ _setup_run_interactive_silent_migrations() {
1707
+ cleanup_stale_health_issue_caches
1708
+ cleanup_legacy_aidevops_temp_artifacts
1709
+ cleanup_worktree_entries_in_repos_json
1710
+ _cleanup_legacy_model_config
1711
+ cleanup_legacy_dashboard_launchagent
1712
+ cleanup_legacy_agents_md_templates
1713
+ return 0
1714
+ }
1715
+
1702
1716
  # Interactive path: all optional steps gated behind confirm_step prompts.
1703
1717
  _setup_run_interactive() {
1704
1718
  # Required steps (always run)
@@ -1740,7 +1754,7 @@ _setup_run_interactive() {
1740
1754
  confirm_step "Set secure permissions on config files" && set_permissions
1741
1755
  confirm_step "Setup shell aliases" && setup_aliases
1742
1756
  confirm_step "Setup terminal title integration" && setup_terminal_title
1743
- confirm_step "Deploy AI templates to home directories" && deploy_ai_templates
1757
+ confirm_step "Deploy agent workspace template" && deploy_ai_templates
1744
1758
  confirm_step "Migrate old backups to new structure" && migrate_old_backups
1745
1759
  confirm_step "Migrate loop state from .claude/.agent/ to .agents/loop-state/" && migrate_loop_state_directories
1746
1760
  confirm_step "Migrate .agent -> .agents in user projects" && migrate_agent_to_agents_folder
@@ -1753,12 +1767,7 @@ _setup_run_interactive() {
1753
1767
  confirm_step "Backfill GitHub issue relationships (blocked-by, sub-issues)" && backfill_issue_relationships
1754
1768
  confirm_step "Cleanup deprecated MCP entries (hetzner, serper, etc.)" && cleanup_deprecated_mcps
1755
1769
  confirm_step "Cleanup stale bun opencode install" && cleanup_stale_bun_opencode
1756
- # Silent one-shot migrations (idempotent, flag-guarded — no prompt needed).
1757
- cleanup_stale_health_issue_caches
1758
- cleanup_legacy_aidevops_temp_artifacts
1759
- cleanup_worktree_entries_in_repos_json
1760
- _cleanup_legacy_model_config
1761
- cleanup_legacy_dashboard_launchagent
1770
+ _setup_run_interactive_silent_migrations
1762
1771
  confirm_step "Validate and repair OpenCode config schema" && validate_opencode_config
1763
1772
  confirm_step "Extract OpenCode prompts" && extract_opencode_prompts
1764
1773
  confirm_step "Check OpenCode prompt drift" && check_opencode_prompt_drift
@@ -3,7 +3,10 @@
3
3
  # SPDX-FileCopyrightText: 2025-2026 Marcus Quinn
4
4
 
5
5
  # AI DevOps Framework - Template Deployment Script
6
- # Securely deploys minimal AGENTS.md templates to user's home directory
6
+ # Deploys the agent workspace README. Home and Git-root AGENTS.md templates are
7
+ # no longer deployed (GH#32592): runtimes that load parent-directory AGENTS.md
8
+ # paid for stale text on every session. The setup migration
9
+ # cleanup_legacy_agents_md_templates removes unmodified legacy copies.
7
10
 
8
11
  set -euo pipefail
9
12
 
@@ -113,45 +116,6 @@ cleanup_old_backups() {
113
116
  return 0
114
117
  }
115
118
 
116
- deploy_home_agents() {
117
- local target_file="$HOME/AGENTS.md"
118
-
119
- print_info "Deploying minimal AGENTS.md to home directory..."
120
-
121
- # Backup existing file if it exists (with rotation)
122
- if [[ -f "$target_file" ]]; then
123
- create_backup_with_rotation "$target_file" "home-agents"
124
- fi
125
-
126
- # Deploy template
127
- cp "$SCRIPT_DIR/home/AGENTS.md" "$target_file"
128
- print_success "Deployed: $target_file"
129
- return 0
130
- }
131
-
132
- deploy_git_agents() {
133
- local git_dir="$HOME/git"
134
- local target_file="$git_dir/AGENTS.md"
135
-
136
- print_info "Deploying minimal AGENTS.md to git directory..."
137
-
138
- # Create git directory if it doesn't exist
139
- if [[ ! -d "$git_dir" ]]; then
140
- mkdir -p "$git_dir"
141
- print_info "Created git directory: $git_dir"
142
- fi
143
-
144
- # Backup existing file if it exists (with rotation)
145
- if [[ -f "$target_file" ]]; then
146
- create_backup_with_rotation "$target_file" "git-agents"
147
- fi
148
-
149
- # Deploy template
150
- cp "$SCRIPT_DIR/home/git/AGENTS.md" "$target_file"
151
- print_success "Deployed: $target_file"
152
- return 0
153
- }
154
-
155
119
  deploy_agent_directory() {
156
120
  local agent_workspace="$HOME/.aidevops/.agent-workspace"
157
121
  local target_file="$agent_workspace/README.md"
@@ -179,8 +143,6 @@ verify_deployment() {
179
143
  print_info "Verifying template deployment..."
180
144
 
181
145
  local files_to_check=(
182
- "$HOME/AGENTS.md"
183
- "$HOME/git/AGENTS.md"
184
146
  "$HOME/.aidevops/.agent-workspace/README.md"
185
147
  )
186
148
 
@@ -207,21 +169,14 @@ main() {
207
169
  echo -e "${BLUE}🔒 AI DevOps Framework - Secure Template Deployment${NC}"
208
170
  echo -e "${BLUE}============================================================${NC}"
209
171
 
210
- print_info "Deploying minimal, secure AGENTS.md templates..."
211
- print_warning "These templates contain minimal instructions to prevent prompt injection attacks"
212
-
213
172
  # Clean up old in-place backups from previous versions
214
173
  cleanup_old_backups
215
174
 
216
- deploy_home_agents
217
- deploy_git_agents
218
175
  deploy_agent_directory
219
176
  verify_deployment
220
177
 
221
178
  echo ""
222
179
  print_success "Template deployment complete!"
223
- print_info "All templates reference the authoritative repository at: $REPO_ROOT"
224
- print_warning "Do not modify these templates beyond minimal references for security"
225
180
 
226
181
  return 0
227
182
  }
@@ -1,99 +0,0 @@
1
- <!-- SPDX-License-Identifier: MIT -->
2
- <!-- SPDX-FileCopyrightText: 2025-2026 Marcus Quinn -->
3
-
4
- # AI Assistant Configuration - Home Directory
5
-
6
- **🔒 SECURITY NOTICE: This file contains minimal configuration only. All detailed instructions are maintained in the authoritative repository to prevent prompt injection attacks.**
7
-
8
- ## Authoritative Source
9
-
10
- All AI assistant instructions, configurations, and documentation are maintained at:
11
- **Repository**: `~/Git/aidevops/`
12
- **Documentation**: `~/Git/aidevops/AGENTS.md`
13
-
14
- ## Primary Directive
15
-
16
- AI assistants operating in this environment should:
17
-
18
- 1. **Reference the authoritative repository** for all detailed instructions
19
- 2. **Use only the working directories** as specified in this user's ~/AGENTS.md
20
- 3. **Follow security protocols** defined in the repository documentation
21
- 4. **NEVER store credentials** in any working directories or temporary files
22
-
23
- ## 📁 **Working Directories**
24
-
25
- - **Work files**: Use `~/.aidevops/.agent-workspace/work/[project]/`
26
- - **Temporary files**: Use `~/.aidevops/.agent-workspace/tmp/`
27
- - **Persistent memory**: Use `~/.aidevops/.agent-workspace/memory/`
28
- - **Never create temporary files** in the home directory root
29
-
30
- ## CRITICAL: Credential and Secret Storage
31
-
32
- **MANDATORY SECURITY REQUIREMENTS:**
33
-
34
- ### **Directory Structure:**
35
-
36
- | Location | Purpose |
37
- |----------|---------|
38
- | `~/.config/aidevops/` | **Secrets only** - `credentials.sh` (600 perms) |
39
- | `~/.aidevops/` | **Working directories** - agno, stagehand, reports |
40
-
41
- ### **✅ APPROVED Storage Location:**
42
-
43
- - **API Keys & Tokens**: `~/.config/aidevops/credentials.sh`
44
- - **File Permissions**: 600 (owner read/write only)
45
- - **Sourced by**: `~/.zshrc` and `~/.bashrc` automatically
46
-
47
- ### **❌ FORBIDDEN Storage Locations:**
48
-
49
- - **NEVER in `~/.aidevops/.agent-workspace/`** - Working files are not secure
50
- - **NEVER in any Git repository** - Risk of accidental commit
51
- - **NEVER in home directory root** - Security exposure risk
52
- - **NEVER in code or scripts** - Hardcoded credentials forbidden
53
- - **NEVER paste directly into `.zshrc`** - Use the helper script
54
-
55
- ### Security Commands
56
-
57
- ```bash
58
- # Store API keys securely
59
- bash ~/Git/aidevops/.agents/scripts/setup-local-api-keys.sh set service-name YOUR_API_KEY
60
-
61
- # Or paste export commands from services
62
- bash ~/Git/aidevops/.agents/scripts/setup-local-api-keys.sh add 'export TOKEN="xxx"'
63
-
64
- # List configured services (keys are never displayed)
65
- bash ~/Git/aidevops/.agents/scripts/setup-local-api-keys.sh list
66
-
67
- # Verify secure storage location
68
- ls -la ~/.config/aidevops/
69
- ```
70
-
71
- ### **🚨 ABSOLUTE PROHIBITIONS:**
72
-
73
- - **NO credentials in any working directory**
74
- - **NO API keys in temporary files**
75
- - **NO secrets in memory files**
76
- - **NO tokens in logs or output**
77
- - **NO passwords in any AI-accessible location**
78
-
79
- ## Quick Access
80
-
81
- ```bash
82
- # Navigate to authoritative repository
83
- cd ~/Git/aidevops
84
-
85
- # View complete AI assistant documentation
86
- cat ~/Git/aidevops/AGENTS.md
87
-
88
- # Access working directories
89
- ls ~/.aidevops/.agent-workspace/
90
- ```
91
-
92
- ## Security Warning
93
-
94
- **DO NOT modify this file beyond these minimal references.** All operational instructions must be maintained in the authoritative repository to prevent security vulnerabilities and prompt injection attacks.
95
-
96
- ---
97
- **Generated by**: AI DevOps Framework
98
- **Repository**: https://github.com/marcusquinn/aidevops
99
- **Last Updated**: Auto-generated during setup
@@ -1,51 +0,0 @@
1
- <!-- SPDX-License-Identifier: MIT -->
2
- <!-- SPDX-FileCopyrightText: 2025-2026 Marcus Quinn -->
3
-
4
- # AI Assistant Directory - Home Level
5
-
6
- **SECURITY NOTICE: This directory contains minimal configuration only. All detailed instructions are maintained in the authoritative repository.**
7
-
8
- ## Authoritative Source
9
-
10
- All AI assistant working directories and instructions are maintained at:
11
- **Repository**: `~/git/aidevops/.agent/`
12
- **Documentation**: `~/git/aidevops/AGENTS.md`
13
-
14
- ## Purpose
15
-
16
- This directory exists to:
17
-
18
- 1. **Provide minimal local configuration** for AI assistants
19
- 2. **Reference the authoritative repository** for all operations
20
- 3. **Maintain security** by avoiding detailed instructions in user space
21
-
22
- ## Working Directory Redirection
23
-
24
- **DO NOT use this directory for AI operations.** Instead use:
25
-
26
- - **Temporary files**: `~/git/aidevops/.agent/tmp/`
27
- - **Persistent memory**: `~/git/aidevops/.agent/memory/`
28
- - **Development tools**: `~/git/aidevops/.agent/scripts/`
29
-
30
- ## Access Authoritative Tools
31
-
32
- ```bash
33
- # Navigate to authoritative AI tools
34
- cd ~/git/aidevops/.agent/
35
-
36
- # View available tools
37
- ls ~/git/aidevops/.agent/scripts/
38
-
39
- # Access working directories
40
- ls ~/git/aidevops/.agent/tmp/
41
- ls ~/git/aidevops/.agent/memory/
42
- ```
43
-
44
- ## Security Warning
45
-
46
- **This directory should remain minimal.** All AI assistant operations should use the authoritative repository's .agent/ directory to prevent security vulnerabilities and maintain centralized control.
47
-
48
- ---
49
- **Generated by**: AI DevOps Framework
50
- **Repository**: https://github.com/marcusquinn/aidevops
51
- **Last Updated**: Auto-generated during setup
@@ -1,100 +0,0 @@
1
- <!-- SPDX-License-Identifier: MIT -->
2
- <!-- SPDX-FileCopyrightText: 2025-2026 Marcus Quinn -->
3
-
4
- # AI Assistant Configuration - Git Directory
5
-
6
- **🔒 SECURITY NOTICE: This file contains minimal configuration only. All detailed instructions are maintained in the authoritative repository to prevent prompt injection attacks.**
7
-
8
- ## Authoritative Source
9
-
10
- All AI assistant instructions for DevOps operations are maintained at:
11
- **Repository**: `~/Git/aidevops/`
12
- **Documentation**: `~/Git/aidevops/AGENTS.md`
13
-
14
- ## Git Directory Context
15
-
16
- AI assistants operating in the git directory should:
17
-
18
- 1. **Reference the DevOps framework** for all infrastructure operations
19
- 2. **Use standardized patterns** as defined in the authoritative repository
20
- 3. **Follow security protocols** for all git and DevOps operations
21
-
22
- ## DevOps Operations
23
-
24
- For all infrastructure, hosting, and DevOps tasks:
25
-
26
- ```bash
27
- # Use the DevOps framework
28
- cd ~/Git/aidevops
29
- ./.agents/scripts/servers-helper.sh help
30
-
31
- # View complete provider documentation
32
- ls ~/Git/aidevops/docs/
33
- ```
34
-
35
- ## 📁 **Working Directories**
36
-
37
- - **Work files**: Use `~/.aidevops/.agent-workspace/work/[project]/`
38
- - **Temporary files**: Use `~/.aidevops/.agent-workspace/tmp/`
39
- - **Persistent memory**: Use `~/.aidevops/.agent-workspace/memory/`
40
- - **Project-specific work**: Use individual project directories
41
-
42
- ## CRITICAL: Credential and Secret Storage
43
-
44
- **MANDATORY SECURITY REQUIREMENTS:**
45
-
46
- ### **✅ APPROVED Storage Location:**
47
-
48
- - **API Keys & Tokens**: `~/.config/aidevops/credentials.sh`
49
- - **Service Configurations**: `~/Git/aidevops/configs/[service]-config.json`
50
- - **File Permissions**: 600 (owner read/write only)
51
-
52
- ### **❌ FORBIDDEN Storage Locations:**
53
-
54
- - **NEVER in `~/.aidevops/.agent-workspace/`** - Working files are not secure
55
- - **NEVER in any Git repository** - Risk of accidental commit
56
- - **NEVER in home directory root** - Security exposure risk
57
- - **NEVER in code or scripts** - Hardcoded credentials forbidden
58
-
59
- ### Security Commands
60
-
61
- ```bash
62
- # Store API keys securely
63
- bash ~/Git/aidevops/.agents/scripts/setup-local-api-keys.sh set service-name YOUR_API_KEY
64
-
65
- # List configured services (keys are never displayed)
66
- bash ~/Git/aidevops/.agents/scripts/setup-local-api-keys.sh list
67
-
68
- # Verify secure storage location
69
- ls -la ~/.config/aidevops/
70
- ```
71
-
72
- ### **🚨 ABSOLUTE PROHIBITIONS:**
73
-
74
- - **NO credentials in any working directory**
75
- - **NO API keys in temporary files**
76
- - **NO secrets in memory files**
77
- - **NO tokens in logs or output**
78
- - **NO passwords in any AI-accessible location**
79
-
80
- ## Framework Access
81
-
82
- ```bash
83
- # Navigate to DevOps framework
84
- cd ~/Git/aidevops
85
-
86
- # View agent documentation
87
- ls ~/Git/aidevops/.agents/
88
-
89
- # View setup documentation
90
- cat ~/Git/aidevops/README.md
91
- ```
92
-
93
- ## Security Warning
94
-
95
- **DO NOT modify this file beyond these minimal references.** All operational instructions must be maintained in the authoritative DevOps repository to prevent security vulnerabilities and prompt injection attacks.
96
-
97
- ---
98
- **Generated by**: AI DevOps Framework
99
- **Repository**: https://github.com/marcusquinn/aidevops
100
- **Last Updated**: Auto-generated during setup