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 +1 -1
- package/VERSION +1 -1
- package/aidevops.sh +1 -1
- package/package.json +1 -1
- package/scripts/npm-postinstall.cjs +41 -44
- package/setup.sh +1 -1
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ The result: AI agents that work *with* your development process, not around it.
|
|
|
57
57
|
[](https://github.com/marcusquinn/aidevops/commits/main)
|
|
58
58
|
|
|
59
59
|
<!-- Repository Stats -->
|
|
60
|
-
[](https://github.com/marcusquinn/aidevops/releases)
|
|
61
61
|
[](https://github.com/marcusquinn/aidevops)
|
|
62
62
|
[](https://github.com/marcusquinn/aidevops)
|
|
63
63
|
[](https://github.com/marcusquinn/aidevops)
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.54.
|
|
1
|
+
2.54.5
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -1,59 +1,56 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* npm postinstall script for aidevops
|
|
3
|
-
*
|
|
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
|
-
//
|
|
16
|
-
const
|
|
17
|
+
// Use stderr so npm doesn't suppress the output
|
|
18
|
+
const log = (msg = '') => process.stderr.write(msg + '\n');
|
|
17
19
|
|
|
18
|
-
//
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
//
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
process.exit(0);
|
|
28
|
-
}
|
|
26
|
+
// Get package version
|
|
27
|
+
const packageJson = require('../package.json');
|
|
28
|
+
const packageVersion = packageJson.version;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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