s9n-devops-agent 1.5.1 → 1.5.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
|
@@ -1067,12 +1067,15 @@ class SessionCoordinator {
|
|
|
1067
1067
|
const instructionsFile = path.join(this.instructionsPath, `${sessionId}.md`);
|
|
1068
1068
|
fs.writeFileSync(instructionsFile, instructions.markdown);
|
|
1069
1069
|
|
|
1070
|
-
//
|
|
1071
|
-
|
|
1070
|
+
// DON'T display instructions here - they will be shown after agent starts
|
|
1071
|
+
// to avoid showing them before the agent's interactive commands
|
|
1072
1072
|
|
|
1073
1073
|
// Create session config in worktree
|
|
1074
1074
|
this.createWorktreeConfig(worktreePath, lockData);
|
|
1075
1075
|
|
|
1076
|
+
// Store instructions in lockData so createAndStart can access them
|
|
1077
|
+
lockData.instructions = instructions;
|
|
1078
|
+
|
|
1076
1079
|
return {
|
|
1077
1080
|
sessionId,
|
|
1078
1081
|
worktreePath,
|
|
@@ -1571,8 +1574,15 @@ The DevOps agent is monitoring this worktree for changes.
|
|
|
1571
1574
|
// Wait for agent to initialize and show its interactive commands
|
|
1572
1575
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
1573
1576
|
|
|
1574
|
-
//
|
|
1575
|
-
//
|
|
1577
|
+
// NOW display instructions AFTER the agent's interactive commands have been shown
|
|
1578
|
+
// Read the lock file to get the stored instructions
|
|
1579
|
+
const lockFile = path.join(this.locksPath, `${session.sessionId}.lock`);
|
|
1580
|
+
const lockData = JSON.parse(fs.readFileSync(lockFile, 'utf8'));
|
|
1581
|
+
|
|
1582
|
+
if (lockData.instructions) {
|
|
1583
|
+
console.log('\n'); // Add spacing
|
|
1584
|
+
this.displayInstructions(lockData.instructions, session.sessionId, options.task || 'development');
|
|
1585
|
+
}
|
|
1576
1586
|
|
|
1577
1587
|
return session;
|
|
1578
1588
|
}
|
package/start-devops-session.sh
CHANGED
|
@@ -41,7 +41,7 @@ show_copyright() {
|
|
|
41
41
|
echo "======================================================================"
|
|
42
42
|
echo
|
|
43
43
|
echo " CS_DevOpsAgent - Intelligent Git Automation System"
|
|
44
|
-
echo " Version 1.5.
|
|
44
|
+
echo " Version 1.5.2 | Build 20251009.4"
|
|
45
45
|
echo " "
|
|
46
46
|
echo " Copyright (c) 2024 SecondBrain Labs"
|
|
47
47
|
echo " Author: Sachin Dev Duggal"
|