ai-engineering-loop 1.0.1 → 1.0.2
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/bin/ai-engineering-loop.js +1 -1
- package/package.json +2 -3
- package/scripts/publish-npm.js +32 -0
- package/scripts/prepare-npm.js +0 -17
- package/scripts/restore-github.js +0 -15
|
@@ -15,7 +15,7 @@ const path = require('path');
|
|
|
15
15
|
const crypto = require('crypto');
|
|
16
16
|
const { execSync } = require('child_process');
|
|
17
17
|
|
|
18
|
-
const VERSION = '1.0.
|
|
18
|
+
const VERSION = '1.0.2';
|
|
19
19
|
const CWD = process.cwd();
|
|
20
20
|
const CONTEXT_DIR = path.join(CWD, '.ai-engineering-loop');
|
|
21
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-engineering-loop",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A reusable, framework-agnostic AI Engineering Operating System for autonomous coding agents.",
|
|
5
5
|
"main": "bin/ai-engineering-loop.js",
|
|
6
6
|
"bin": {
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"init": "node bin/ai-engineering-loop.js",
|
|
11
|
-
"
|
|
12
|
-
"postpublish": "node scripts/restore-github.js"
|
|
11
|
+
"publish:npm": "node scripts/publish-npm.js"
|
|
13
12
|
},
|
|
14
13
|
"repository": {
|
|
15
14
|
"type": "git",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
const { execSync } = require('child_process');
|
|
6
|
+
|
|
7
|
+
const rootDir = path.resolve(__dirname, '..');
|
|
8
|
+
const readmePath = path.join(rootDir, 'README.md');
|
|
9
|
+
const readmeNpmPath = path.join(rootDir, 'README.npm.md');
|
|
10
|
+
const backupPath = path.join(rootDir, '.README.github.bak.md');
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
console.log('[publish-npm] 1. Backing up full GitHub README.md...');
|
|
14
|
+
fs.copyFileSync(readmePath, backupPath);
|
|
15
|
+
|
|
16
|
+
console.log('[publish-npm] 2. Replacing README.md with simplified README.npm.md...');
|
|
17
|
+
fs.copyFileSync(readmeNpmPath, readmePath);
|
|
18
|
+
|
|
19
|
+
console.log('[publish-npm] 3. Running npm publish --access public...');
|
|
20
|
+
execSync('npm publish --access public', { cwd: rootDir, stdio: 'inherit' });
|
|
21
|
+
|
|
22
|
+
console.log('[publish-npm] 4. Publishing completed successfully.');
|
|
23
|
+
} catch (error) {
|
|
24
|
+
console.error('[publish-npm] Publishing failed:', error.message);
|
|
25
|
+
} finally {
|
|
26
|
+
if (fs.existsSync(backupPath)) {
|
|
27
|
+
console.log('[publish-npm] 5. Restoring full GitHub README.md...');
|
|
28
|
+
fs.copyFileSync(backupPath, readmePath);
|
|
29
|
+
fs.unlinkSync(backupPath);
|
|
30
|
+
console.log('[publish-npm] Full GitHub README.md restored.');
|
|
31
|
+
}
|
|
32
|
+
}
|
package/scripts/prepare-npm.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const rootDir = path.resolve(__dirname, '..');
|
|
7
|
-
const readmePath = path.join(rootDir, 'README.md');
|
|
8
|
-
const readmeNpmPath = path.join(rootDir, 'README.npm.md');
|
|
9
|
-
const backupPath = path.join(rootDir, '.README.github.bak.md');
|
|
10
|
-
|
|
11
|
-
if (fs.existsSync(readmeNpmPath)) {
|
|
12
|
-
// Backup full GitHub README
|
|
13
|
-
fs.copyFileSync(readmePath, backupPath);
|
|
14
|
-
// Replace with simplified NPM README for packing
|
|
15
|
-
fs.copyFileSync(readmeNpmPath, readmePath);
|
|
16
|
-
console.log('[prepare-npm] Swapped README.md with simplified README.npm.md for NPM packaging.');
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const rootDir = path.resolve(__dirname, '..');
|
|
7
|
-
const readmePath = path.join(rootDir, 'README.md');
|
|
8
|
-
const backupPath = path.join(rootDir, '.README.github.bak.md');
|
|
9
|
-
|
|
10
|
-
if (fs.existsSync(backupPath)) {
|
|
11
|
-
// Restore full GitHub README
|
|
12
|
-
fs.copyFileSync(backupPath, readmePath);
|
|
13
|
-
fs.unlinkSync(backupPath);
|
|
14
|
-
console.log('[restore-github] Restored full GitHub README.md successfully.');
|
|
15
|
-
}
|