s9n-devops-agent 2.0.8 → 2.0.10
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 +19 -26
package/package.json
CHANGED
|
@@ -1276,21 +1276,19 @@ The DevOps agent will automatically:
|
|
|
1276
1276
|
console.log(`Please switch to this directory before making any changes:`);
|
|
1277
1277
|
console.log(`cd "${instructions.worktreePath}"`);
|
|
1278
1278
|
console.log(``);
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
console.log(``);
|
|
1293
|
-
}
|
|
1279
|
+
console.log(`📋 IMPORTANT - READ PROJECT RULES FIRST:`);
|
|
1280
|
+
console.log(`Before making ANY changes, you MUST read the project's house rules at:`);
|
|
1281
|
+
console.log(`${houseRulesPath}`);
|
|
1282
|
+
console.log(``);
|
|
1283
|
+
console.log(`The house rules file contains:`);
|
|
1284
|
+
console.log(`- Project coding conventions and standards`);
|
|
1285
|
+
console.log(`- Required commit message formats`);
|
|
1286
|
+
console.log(`- File coordination protocols`);
|
|
1287
|
+
console.log(`- Branch naming and workflow rules`);
|
|
1288
|
+
console.log(`- Testing and review requirements`);
|
|
1289
|
+
console.log(``);
|
|
1290
|
+
console.log(`You must follow ALL rules in this file. Read it carefully before proceeding.`);
|
|
1291
|
+
console.log(``);
|
|
1294
1292
|
|
|
1295
1293
|
console.log(`⚠️ FILE COORDINATION (MANDATORY):`);
|
|
1296
1294
|
console.log(`Shared coordination directory: local_deploy/.file-coordination/`);
|
|
@@ -1331,9 +1329,8 @@ The DevOps agent will automatically:
|
|
|
1331
1329
|
});
|
|
1332
1330
|
rl.close();
|
|
1333
1331
|
|
|
1334
|
-
console.log(
|
|
1332
|
+
console.log(`${CONFIG.colors.green}✓ Instructions copied${CONFIG.colors.reset}`);
|
|
1335
1333
|
console.log(`${CONFIG.colors.dim}Full instructions saved to: ${CONFIG.instructionsDir}/${sessionId}.md${CONFIG.colors.reset}`);
|
|
1336
|
-
console.log();
|
|
1337
1334
|
}
|
|
1338
1335
|
|
|
1339
1336
|
/**
|
|
@@ -1658,25 +1655,21 @@ The DevOps agent is monitoring this worktree for changes.
|
|
|
1658
1655
|
async createAndStart(options = {}) {
|
|
1659
1656
|
const session = await this.createSession(options);
|
|
1660
1657
|
|
|
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
1658
|
// Read the lock file to get the stored instructions
|
|
1671
1659
|
const lockFile = path.join(this.locksPath, `${session.sessionId}.lock`);
|
|
1672
1660
|
const lockData = JSON.parse(fs.readFileSync(lockFile, 'utf8'));
|
|
1673
1661
|
|
|
1662
|
+
// Display instructions FIRST before starting agent
|
|
1674
1663
|
if (lockData.instructions) {
|
|
1675
1664
|
console.log('\n'); // Add spacing
|
|
1676
1665
|
this.displayInstructions(lockData.instructions, session.sessionId, options.task || 'development');
|
|
1677
1666
|
await this.waitForConfirmation(session.sessionId);
|
|
1678
1667
|
}
|
|
1679
1668
|
|
|
1669
|
+
// NOW start the agent after user has copied instructions
|
|
1670
|
+
console.log(`\n${CONFIG.colors.yellow}Starting DevOps agent monitoring...${CONFIG.colors.reset}`);
|
|
1671
|
+
await this.startAgent(session.sessionId);
|
|
1672
|
+
|
|
1680
1673
|
return session;
|
|
1681
1674
|
}
|
|
1682
1675
|
|