sdg-agents 1.14.0 → 1.14.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sdg-agents",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "Structured working protocol and engineering rules for AI agents. Works with Claude Code, Antigravity, Codex, and others.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/engine/bin/index.mjs",
|
|
@@ -46,7 +46,8 @@ function run() {
|
|
|
46
46
|
updateChangelog(newVersion);
|
|
47
47
|
|
|
48
48
|
console.log(`✅ Success: ${oldVersion} → ${newVersion}`);
|
|
49
|
-
console.log('🔗 CHANGELOG.md updated and promoted
|
|
49
|
+
console.log('🔗 CHANGELOG.md updated and promoted.');
|
|
50
|
+
console.log('⚠️ Files updated. Run "git commit" manually after approval.');
|
|
50
51
|
} catch (error) {
|
|
51
52
|
console.error('❌ Error during bump strategy:', error.message);
|
|
52
53
|
process.exit(1);
|
|
@@ -60,7 +61,7 @@ function updateChangelog(newVersion) {
|
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
const content = fs.readFileSync(CHANGELOG_PATH, 'utf8');
|
|
63
|
-
const today = new Date().
|
|
64
|
+
const today = new Date().toLocaleDateString('en-CA');
|
|
64
65
|
|
|
65
66
|
// Pattern to find the [Unreleased] section
|
|
66
67
|
const unreleasedRegex = /##\s*\[Unreleased\](\s*-\s*\d{4}-\d{2}-\d{2})?/i;
|
|
@@ -34,10 +34,9 @@ async function run() {
|
|
|
34
34
|
// 2. Sync Package.json files
|
|
35
35
|
syncAllPackages(nextVersion);
|
|
36
36
|
|
|
37
|
-
// 3.
|
|
38
|
-
stageAndCommit(nextVersion);
|
|
39
|
-
|
|
37
|
+
// 3. Status
|
|
40
38
|
console.log(` auto-bump: ${rootPkg.version} → ${nextVersion} (${bumpType})`);
|
|
39
|
+
console.log(' auto-bump: files updated. Manual commit required.');
|
|
41
40
|
return success({ from: rootPkg.version, to: nextVersion, bump: bumpType });
|
|
42
41
|
}
|
|
43
42
|
|
|
@@ -73,7 +72,7 @@ function updateChangelog(newVersion) {
|
|
|
73
72
|
if (!fs.existsSync(CHANGELOG_PATH)) return;
|
|
74
73
|
|
|
75
74
|
const content = fs.readFileSync(CHANGELOG_PATH, 'utf8');
|
|
76
|
-
const today = new Date().
|
|
75
|
+
const today = new Date().toLocaleDateString('en-CA');
|
|
77
76
|
|
|
78
77
|
// Pattern to find the [Unreleased] section
|
|
79
78
|
const unreleasedRegex = /##\s*\[Unreleased\](\s*-\s*\d{4}-\d{2}-\d{2})?/i;
|
|
@@ -104,11 +103,6 @@ function syncAllPackages(nextVersion) {
|
|
|
104
103
|
}
|
|
105
104
|
}
|
|
106
105
|
|
|
107
|
-
function stageAndCommit(nextVersion) {
|
|
108
|
-
execSync('git add .', { stdio: 'inherit' });
|
|
109
|
-
execSync(`git commit -m "chore: bump version to ${nextVersion}"`, { stdio: 'inherit' });
|
|
110
|
-
}
|
|
111
|
-
|
|
112
106
|
// --- File Helpers ---
|
|
113
107
|
|
|
114
108
|
function readLastCommitMessage() {
|