aidevops 2.54.3 → 2.54.4
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 +30 -38
- 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.4
|
package/aidevops.sh
CHANGED
package/package.json
CHANGED
|
@@ -1,59 +1,51 @@
|
|
|
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`.
|
|
4
6
|
*/
|
|
5
7
|
|
|
6
|
-
const { execSync } = require('child_process');
|
|
7
|
-
const path = require('path');
|
|
8
8
|
const fs = require('fs');
|
|
9
9
|
const os = require('os');
|
|
10
|
+
const path = require('path');
|
|
10
11
|
|
|
11
|
-
const packageDir = path.resolve(__dirname, '..');
|
|
12
|
-
const setupScript = path.join(packageDir, 'setup.sh');
|
|
13
12
|
const agentsDir = path.join(os.homedir(), '.aidevops', 'agents');
|
|
13
|
+
const versionFile = path.join(agentsDir, 'VERSION');
|
|
14
14
|
|
|
15
|
-
// Check
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (!isGlobalInstall && fs.existsSync(agentsDir)) {
|
|
20
|
-
console.log('aidevops: Local install detected, skipping setup (agents already deployed)');
|
|
21
|
-
process.exit(0);
|
|
15
|
+
// Check current installed version
|
|
16
|
+
let installedVersion = 'not installed';
|
|
17
|
+
if (fs.existsSync(versionFile)) {
|
|
18
|
+
installedVersion = fs.readFileSync(versionFile, 'utf8').trim();
|
|
22
19
|
}
|
|
23
20
|
|
|
24
|
-
//
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
process.exit(0);
|
|
28
|
-
}
|
|
21
|
+
// Get package version
|
|
22
|
+
const packageJson = require('../package.json');
|
|
23
|
+
const packageVersion = packageJson.version;
|
|
29
24
|
|
|
30
|
-
console.log('
|
|
25
|
+
console.log('');
|
|
26
|
+
console.log('aidevops CLI installed successfully!');
|
|
27
|
+
console.log('');
|
|
28
|
+
console.log(` CLI version: ${packageVersion}`);
|
|
29
|
+
console.log(` Agents version: ${installedVersion}`);
|
|
31
30
|
console.log('');
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
32
|
+
if (installedVersion === 'not installed') {
|
|
33
|
+
console.log('To complete installation, run:');
|
|
45
34
|
console.log('');
|
|
46
|
-
console.log('aidevops
|
|
35
|
+
console.log(' aidevops update');
|
|
36
|
+
console.log('');
|
|
37
|
+
console.log('This will clone the repository and deploy agents to ~/.aidevops/agents/');
|
|
38
|
+
} else if (installedVersion !== packageVersion) {
|
|
39
|
+
console.log('To update agents to match CLI version, run:');
|
|
40
|
+
console.log('');
|
|
41
|
+
console.log(' aidevops update');
|
|
42
|
+
console.log('');
|
|
43
|
+
} else {
|
|
44
|
+
console.log('CLI and agents are in sync. Ready to use!');
|
|
47
45
|
console.log('');
|
|
48
46
|
console.log('Quick start:');
|
|
49
47
|
console.log(' aidevops status # Check installation');
|
|
50
48
|
console.log(' aidevops init # Initialize in a project');
|
|
51
49
|
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);
|
|
59
50
|
}
|
|
51
|
+
console.log('');
|
package/setup.sh
CHANGED