aidevops 2.54.5 → 2.54.7

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
@@ -57,7 +57,7 @@ The result: AI agents that work *with* your development process, not around it.
57
57
  [![GitHub commits since latest release](https://img.shields.io/github/commits-since/marcusquinn/aidevops/latest)](https://github.com/marcusquinn/aidevops/commits/main)
58
58
 
59
59
  <!-- Repository Stats -->
60
- [![Version](https://img.shields.io/badge/Version-2.54.5-blue)](https://github.com/marcusquinn/aidevops/releases)
60
+ [![Version](https://img.shields.io/badge/Version-2.54.7-blue)](https://github.com/marcusquinn/aidevops/releases)
61
61
  [![GitHub repo size](https://img.shields.io/github/repo-size/marcusquinn/aidevops?style=flat&color=blue)](https://github.com/marcusquinn/aidevops)
62
62
  [![Lines of code](https://img.shields.io/badge/Lines%20of%20Code-18%2C000%2B-brightgreen)](https://github.com/marcusquinn/aidevops)
63
63
  [![GitHub language count](https://img.shields.io/github/languages/count/marcusquinn/aidevops)](https://github.com/marcusquinn/aidevops)
@@ -95,12 +95,16 @@ The result: AI agents that work *with* your development process, not around it.
95
95
 
96
96
  ```bash
97
97
  npm install -g aidevops
98
+ aidevops update # Deploy agents (required after npm install)
98
99
  ```
99
100
 
101
+ > **Note**: npm suppresses postinstall output. Run `aidevops update` to deploy agents to `~/.aidevops/agents/`. The CLI will remind you if agents need updating.
102
+
100
103
  **Bun** (fast alternative):
101
104
 
102
105
  ```bash
103
106
  bun install -g aidevops
107
+ aidevops update # Deploy agents
104
108
  ```
105
109
 
106
110
  **Homebrew** (macOS/Linux):
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.54.5
1
+ 2.54.7
package/aidevops.sh CHANGED
@@ -3,7 +3,7 @@
3
3
  # AI DevOps Framework CLI
4
4
  # Usage: aidevops <command> [options]
5
5
  #
6
- # Version: 2.54.5
6
+ # Version: 2.54.7
7
7
 
8
8
  set -euo pipefail
9
9
 
@@ -1702,6 +1702,26 @@ main() {
1702
1702
  echo ""
1703
1703
  fi
1704
1704
 
1705
+ # Check if agents need updating (skip for update command itself)
1706
+ if [[ "$command" != "update" && "$command" != "upgrade" && "$command" != "u" ]]; then
1707
+ local cli_version agents_version
1708
+ cli_version=$(get_version)
1709
+ if [[ -f "$AGENTS_DIR/VERSION" ]]; then
1710
+ agents_version=$(cat "$AGENTS_DIR/VERSION")
1711
+ else
1712
+ agents_version="not installed"
1713
+ fi
1714
+
1715
+ if [[ "$agents_version" == "not installed" ]]; then
1716
+ echo -e "${YELLOW}[WARN]${NC} Agents not installed. Run: aidevops update"
1717
+ echo ""
1718
+ elif [[ "$cli_version" != "$agents_version" ]]; then
1719
+ echo -e "${YELLOW}[WARN]${NC} Version mismatch - CLI: $cli_version, Agents: $agents_version"
1720
+ echo -e " Run: aidevops update"
1721
+ echo ""
1722
+ fi
1723
+ fi
1724
+
1705
1725
  case "$command" in
1706
1726
  init|i)
1707
1727
  shift
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aidevops",
3
- "version": "2.54.5",
3
+ "version": "2.54.7",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -4,7 +4,8 @@
4
4
  * The npm package contains only the CLI wrapper. The full agent files
5
5
  * are deployed from ~/Git/aidevops via `aidevops update`.
6
6
  *
7
- * Note: Uses stderr so output is visible (npm suppresses stdout for lifecycle scripts)
7
+ * Note: Writes directly to /dev/tty to bypass npm's output suppression.
8
+ * Falls back to stderr if tty is not available (e.g., CI environments).
8
9
  */
9
10
 
10
11
  const fs = require('fs');
@@ -14,8 +15,22 @@ const path = require('path');
14
15
  const agentsDir = path.join(os.homedir(), '.aidevops', 'agents');
15
16
  const versionFile = path.join(agentsDir, 'VERSION');
16
17
 
17
- // Use stderr so npm doesn't suppress the output
18
- const log = (msg = '') => process.stderr.write(msg + '\n');
18
+ // Try to open tty synchronously to bypass npm's output suppression
19
+ let ttyFd = null;
20
+ try {
21
+ ttyFd = fs.openSync('/dev/tty', 'w');
22
+ } catch {
23
+ // tty not available (CI, non-interactive, Windows)
24
+ }
25
+
26
+ const log = (msg = '') => {
27
+ const line = msg + '\n';
28
+ if (ttyFd !== null) {
29
+ fs.writeSync(ttyFd, line);
30
+ } else {
31
+ process.stderr.write(line);
32
+ }
33
+ };
19
34
 
20
35
  // Check current installed version
21
36
  let installedVersion = 'not installed';
@@ -54,3 +69,8 @@ if (installedVersion === 'not installed') {
54
69
  log(' aidevops help # Show all commands');
55
70
  }
56
71
  log('');
72
+
73
+ // Clean up
74
+ if (ttyFd !== null) {
75
+ fs.closeSync(ttyFd);
76
+ }
package/setup.sh CHANGED
@@ -3,7 +3,7 @@
3
3
  # AI Assistant Server Access Framework Setup Script
4
4
  # Helps developers set up the framework for their infrastructure
5
5
  #
6
- # Version: 2.54.5
6
+ # Version: 2.54.7
7
7
  #
8
8
  # Quick Install (one-liner):
9
9
  # bash <(curl -fsSL https://aidevops.dev/install)