s9n-devops-agent 1.5.1 → 1.5.3
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,
|
|
@@ -1481,6 +1484,16 @@ The DevOps agent is monitoring this worktree for changes.
|
|
|
1481
1484
|
silent: false
|
|
1482
1485
|
});
|
|
1483
1486
|
|
|
1487
|
+
// Wait for agent to initialize and display its interactive commands
|
|
1488
|
+
// Then show the copy-paste instructions
|
|
1489
|
+
setTimeout(async () => {
|
|
1490
|
+
console.log('\n'); // Add spacing
|
|
1491
|
+
|
|
1492
|
+
// Generate and display instructions
|
|
1493
|
+
const instructions = this.generateClaudeInstructions(sessionData);
|
|
1494
|
+
this.displayInstructions(instructions, sessionId, sessionData.task);
|
|
1495
|
+
}, 3000); // Wait 3 seconds for agent to show interactive commands
|
|
1496
|
+
|
|
1484
1497
|
child.on('exit', (code) => {
|
|
1485
1498
|
console.log(`${CONFIG.colors.yellow}Agent exited with code: ${code}${CONFIG.colors.reset}`);
|
|
1486
1499
|
|
|
@@ -1571,8 +1584,15 @@ The DevOps agent is monitoring this worktree for changes.
|
|
|
1571
1584
|
// Wait for agent to initialize and show its interactive commands
|
|
1572
1585
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
1573
1586
|
|
|
1574
|
-
//
|
|
1575
|
-
//
|
|
1587
|
+
// NOW display instructions AFTER the agent's interactive commands have been shown
|
|
1588
|
+
// Read the lock file to get the stored instructions
|
|
1589
|
+
const lockFile = path.join(this.locksPath, `${session.sessionId}.lock`);
|
|
1590
|
+
const lockData = JSON.parse(fs.readFileSync(lockFile, 'utf8'));
|
|
1591
|
+
|
|
1592
|
+
if (lockData.instructions) {
|
|
1593
|
+
console.log('\n'); // Add spacing
|
|
1594
|
+
this.displayInstructions(lockData.instructions, session.sessionId, options.task || 'development');
|
|
1595
|
+
}
|
|
1576
1596
|
|
|
1577
1597
|
return session;
|
|
1578
1598
|
}
|
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.3 | Build 20251009.5"
|
|
45
45
|
echo " "
|
|
46
46
|
echo " Copyright (c) 2024 SecondBrain Labs"
|
|
47
47
|
echo " Author: Sachin Dev Duggal"
|