s9n-devops-agent 2.0.18-dev.11 → 2.0.18-dev.12
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": "s9n-devops-agent",
|
|
3
|
-
"version": "2.0.18-dev.
|
|
3
|
+
"version": "2.0.18-dev.12",
|
|
4
4
|
"description": "CS_DevOpsAgent - Intelligent Git Automation System with multi-agent support and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/cs-devops-agent-worker.js",
|
|
@@ -1008,10 +1008,20 @@ async function checkAndPerformRebase(repoRoot) {
|
|
|
1008
1008
|
|
|
1009
1009
|
if (dirty) {
|
|
1010
1010
|
log('Stashing uncommitted changes before rebase...');
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1011
|
+
// Use -u to include untracked files, ensuring we capture everything status --porcelain sees
|
|
1012
|
+
const stashRes = await run('git', ['stash', 'push', '-u', '-m', `Auto-stash before rebase ${new Date().toISOString()}`]);
|
|
1013
|
+
|
|
1014
|
+
// Only mark as stashed if we actually saved something
|
|
1015
|
+
// git stash returns 0 even if nothing to save, so we must check stdout
|
|
1016
|
+
if (stashRes.ok && stashRes.stdout && stashRes.stdout.includes('Saved working directory')) {
|
|
1017
|
+
stashed = true;
|
|
1018
|
+
log('Changes stashed successfully.');
|
|
1019
|
+
} else if (stashRes.ok && stashRes.stdout && stashRes.stdout.includes('No local changes to save')) {
|
|
1020
|
+
stashed = false;
|
|
1021
|
+
log('No changes needed stashing (git reported no local changes).');
|
|
1022
|
+
} else {
|
|
1023
|
+
console.error('\\x1b[31m✗ Failed to stash changes. Aborting rebase.\\x1b[0m');
|
|
1024
|
+
if (stashRes.stdout) console.error(stashRes.stdout);
|
|
1015
1025
|
busy = false;
|
|
1016
1026
|
return false;
|
|
1017
1027
|
}
|
|
@@ -1537,7 +1547,7 @@ function saveProjectSettings(settings, settingsPath) {
|
|
|
1537
1547
|
// Display copyright and license information immediately
|
|
1538
1548
|
console.log("\n" + "=".repeat(70));
|
|
1539
1549
|
console.log(" CS_DevOpsAgent - Intelligent Git Automation System");
|
|
1540
|
-
console.log(" Version 2.0.18-dev.
|
|
1550
|
+
console.log(" Version 2.0.18-dev.12 | Build 20260107");
|
|
1541
1551
|
console.log(" Copyright (c) 2026 SeKondBrain AI Labs Limited");
|
|
1542
1552
|
console.log(" Author: Sachin Dev Duggal");
|
|
1543
1553
|
console.log(" \n Licensed under the MIT License");
|