s9n-devops-agent 2.0.8 → 2.0.9
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 +1 -1
- package/src/session-coordinator.js +6 -11
package/package.json
CHANGED
|
@@ -1331,9 +1331,8 @@ The DevOps agent will automatically:
|
|
|
1331
1331
|
});
|
|
1332
1332
|
rl.close();
|
|
1333
1333
|
|
|
1334
|
-
console.log(
|
|
1334
|
+
console.log(`${CONFIG.colors.green}✓ Instructions copied${CONFIG.colors.reset}`);
|
|
1335
1335
|
console.log(`${CONFIG.colors.dim}Full instructions saved to: ${CONFIG.instructionsDir}/${sessionId}.md${CONFIG.colors.reset}`);
|
|
1336
|
-
console.log();
|
|
1337
1336
|
}
|
|
1338
1337
|
|
|
1339
1338
|
/**
|
|
@@ -1658,25 +1657,21 @@ The DevOps agent is monitoring this worktree for changes.
|
|
|
1658
1657
|
async createAndStart(options = {}) {
|
|
1659
1658
|
const session = await this.createSession(options);
|
|
1660
1659
|
|
|
1661
|
-
console.log(`\n${CONFIG.colors.yellow}Starting agent for session ${session.sessionId}...${CONFIG.colors.reset}`);
|
|
1662
|
-
|
|
1663
|
-
// Start the agent
|
|
1664
|
-
await this.startAgent(session.sessionId);
|
|
1665
|
-
|
|
1666
|
-
// Wait for agent to initialize and show its interactive commands
|
|
1667
|
-
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
1668
|
-
|
|
1669
|
-
// NOW display instructions AFTER the agent's interactive commands have been shown
|
|
1670
1660
|
// Read the lock file to get the stored instructions
|
|
1671
1661
|
const lockFile = path.join(this.locksPath, `${session.sessionId}.lock`);
|
|
1672
1662
|
const lockData = JSON.parse(fs.readFileSync(lockFile, 'utf8'));
|
|
1673
1663
|
|
|
1664
|
+
// Display instructions FIRST before starting agent
|
|
1674
1665
|
if (lockData.instructions) {
|
|
1675
1666
|
console.log('\n'); // Add spacing
|
|
1676
1667
|
this.displayInstructions(lockData.instructions, session.sessionId, options.task || 'development');
|
|
1677
1668
|
await this.waitForConfirmation(session.sessionId);
|
|
1678
1669
|
}
|
|
1679
1670
|
|
|
1671
|
+
// NOW start the agent after user has copied instructions
|
|
1672
|
+
console.log(`\n${CONFIG.colors.yellow}Starting DevOps agent monitoring...${CONFIG.colors.reset}`);
|
|
1673
|
+
await this.startAgent(session.sessionId);
|
|
1674
|
+
|
|
1680
1675
|
return session;
|
|
1681
1676
|
}
|
|
1682
1677
|
|