aidevops 2.54.4 → 2.54.6
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 +47 -22
- 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.6
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
*
|
|
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
|
+
*
|
|
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).
|
|
6
9
|
*/
|
|
7
10
|
|
|
8
11
|
const fs = require('fs');
|
|
@@ -12,6 +15,23 @@ const path = require('path');
|
|
|
12
15
|
const agentsDir = path.join(os.homedir(), '.aidevops', 'agents');
|
|
13
16
|
const versionFile = path.join(agentsDir, 'VERSION');
|
|
14
17
|
|
|
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
|
+
};
|
|
34
|
+
|
|
15
35
|
// Check current installed version
|
|
16
36
|
let installedVersion = 'not installed';
|
|
17
37
|
if (fs.existsSync(versionFile)) {
|
|
@@ -22,30 +42,35 @@ if (fs.existsSync(versionFile)) {
|
|
|
22
42
|
const packageJson = require('../package.json');
|
|
23
43
|
const packageVersion = packageJson.version;
|
|
24
44
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
45
|
+
log('');
|
|
46
|
+
log('aidevops CLI installed successfully!');
|
|
47
|
+
log('');
|
|
48
|
+
log(` CLI version: ${packageVersion}`);
|
|
49
|
+
log(` Agents version: ${installedVersion}`);
|
|
50
|
+
log('');
|
|
31
51
|
|
|
32
52
|
if (installedVersion === 'not installed') {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
53
|
+
log('To complete installation, run:');
|
|
54
|
+
log('');
|
|
55
|
+
log(' aidevops update');
|
|
56
|
+
log('');
|
|
57
|
+
log('This will clone the repository and deploy agents to ~/.aidevops/agents/');
|
|
38
58
|
} else if (installedVersion !== packageVersion) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
59
|
+
log('To update agents to match CLI version, run:');
|
|
60
|
+
log('');
|
|
61
|
+
log(' aidevops update');
|
|
62
|
+
log('');
|
|
43
63
|
} else {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
64
|
+
log('CLI and agents are in sync. Ready to use!');
|
|
65
|
+
log('');
|
|
66
|
+
log('Quick start:');
|
|
67
|
+
log(' aidevops status # Check installation');
|
|
68
|
+
log(' aidevops init # Initialize in a project');
|
|
69
|
+
log(' aidevops help # Show all commands');
|
|
70
|
+
}
|
|
71
|
+
log('');
|
|
72
|
+
|
|
73
|
+
// Clean up
|
|
74
|
+
if (ttyFd !== null) {
|
|
75
|
+
fs.closeSync(ttyFd);
|
|
50
76
|
}
|
|
51
|
-
console.log('');
|
package/setup.sh
CHANGED