aidevops 2.54.3 → 2.54.5

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.3-blue)](https://github.com/marcusquinn/aidevops/releases)
60
+ [![Version](https://img.shields.io/badge/Version-2.54.5-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)
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.54.3
1
+ 2.54.5
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.3
6
+ # Version: 2.54.5
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": "2.54.3",
3
+ "version": "2.54.5",
4
4
  "description": "AI DevOps Framework - AI-assisted development workflows, code quality, and deployment automation",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,59 +1,56 @@
1
1
  /**
2
2
  * npm postinstall script for aidevops
3
- * Runs setup.sh to deploy agents after npm install -g
3
+ *
4
+ * The npm package contains only the CLI wrapper. The full agent files
5
+ * are deployed from ~/Git/aidevops via `aidevops update`.
6
+ *
7
+ * Note: Uses stderr so output is visible (npm suppresses stdout for lifecycle scripts)
4
8
  */
5
9
 
6
- const { execSync } = require('child_process');
7
- const path = require('path');
8
10
  const fs = require('fs');
9
11
  const os = require('os');
12
+ const path = require('path');
10
13
 
11
- const packageDir = path.resolve(__dirname, '..');
12
- const setupScript = path.join(packageDir, 'setup.sh');
13
14
  const agentsDir = path.join(os.homedir(), '.aidevops', 'agents');
15
+ const versionFile = path.join(agentsDir, 'VERSION');
14
16
 
15
- // Check if this is a global install
16
- const isGlobalInstall = process.env.npm_config_global === 'true';
17
+ // Use stderr so npm doesn't suppress the output
18
+ const log = (msg = '') => process.stderr.write(msg + '\n');
17
19
 
18
- // Skip if not global install (local dev doesn't need postinstall)
19
- if (!isGlobalInstall && fs.existsSync(agentsDir)) {
20
- console.log('aidevops: Local install detected, skipping setup (agents already deployed)');
21
- process.exit(0);
20
+ // Check current installed version
21
+ let installedVersion = 'not installed';
22
+ if (fs.existsSync(versionFile)) {
23
+ installedVersion = fs.readFileSync(versionFile, 'utf8').trim();
22
24
  }
23
25
 
24
- // Check if setup.sh exists
25
- if (!fs.existsSync(setupScript)) {
26
- console.log('aidevops: setup.sh not found, skipping postinstall');
27
- process.exit(0);
28
- }
26
+ // Get package version
27
+ const packageJson = require('../package.json');
28
+ const packageVersion = packageJson.version;
29
29
 
30
- console.log('aidevops: Running setup to deploy agents...');
31
- console.log('');
30
+ log('');
31
+ log('aidevops CLI installed successfully!');
32
+ log('');
33
+ log(` CLI version: ${packageVersion}`);
34
+ log(` Agents version: ${installedVersion}`);
35
+ log('');
32
36
 
33
- try {
34
- // Run setup.sh non-interactively
35
- execSync(`bash "${setupScript}"`, {
36
- stdio: 'inherit',
37
- cwd: packageDir,
38
- env: {
39
- ...process.env,
40
- // Skip interactive prompts
41
- AIDEVOPS_NONINTERACTIVE: '1'
42
- }
43
- });
44
-
45
- console.log('');
46
- console.log('aidevops installed successfully!');
47
- console.log('');
48
- console.log('Quick start:');
49
- console.log(' aidevops status # Check installation');
50
- console.log(' aidevops init # Initialize in a project');
51
- console.log(' aidevops help # Show all commands');
52
- console.log('');
53
- } catch (error) {
54
- console.error('aidevops: Setup encountered issues (non-critical)');
55
- console.error(`Run manually: bash "${setupScript}"`);
56
- console.error('Or reinstall with: bash <(curl -fsSL https://aidevops.sh)');
57
- // Don't fail the install
58
- process.exit(0);
37
+ if (installedVersion === 'not installed') {
38
+ log('To complete installation, run:');
39
+ log('');
40
+ log(' aidevops update');
41
+ log('');
42
+ log('This will clone the repository and deploy agents to ~/.aidevops/agents/');
43
+ } else if (installedVersion !== packageVersion) {
44
+ log('To update agents to match CLI version, run:');
45
+ log('');
46
+ log(' aidevops update');
47
+ log('');
48
+ } else {
49
+ log('CLI and agents are in sync. Ready to use!');
50
+ log('');
51
+ log('Quick start:');
52
+ log(' aidevops status # Check installation');
53
+ log(' aidevops init # Initialize in a project');
54
+ log(' aidevops help # Show all commands');
59
55
  }
56
+ log('');
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.3
6
+ # Version: 2.54.5
7
7
  #
8
8
  # Quick Install (one-liner):
9
9
  # bash <(curl -fsSL https://aidevops.dev/install)