s9n-devops-agent 2.0.7 → 2.0.8

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.7",
3
+ "version": "2.0.8",
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",
@@ -282,9 +282,25 @@ class SessionCoordinator {
282
282
 
283
283
  if (updatedSections.length > 0) {
284
284
  console.log(`${CONFIG.colors.dim}Sections with updates: ${updatedSections.join(', ')}${CONFIG.colors.reset}`);
285
- const result = await houseRulesManager.updateHouseRules();
286
- if (result.updated) {
287
- console.log(`${CONFIG.colors.green}✓${CONFIG.colors.reset} Updated ${result.totalChanges} section(s)`);
285
+ console.log(`${CONFIG.colors.dim}Your custom rules will be preserved.${CONFIG.colors.reset}`);
286
+
287
+ const rl = readline.createInterface({
288
+ input: process.stdin,
289
+ output: process.stdout
290
+ });
291
+
292
+ const answer = await new Promise(resolve => {
293
+ rl.question(`\nUpdate house rules now? (Y/n): `, resolve);
294
+ });
295
+ rl.close();
296
+
297
+ if (answer.toLowerCase() !== 'n' && answer.toLowerCase() !== 'no') {
298
+ const result = await houseRulesManager.updateHouseRules();
299
+ if (result.updated) {
300
+ console.log(`${CONFIG.colors.green}✓${CONFIG.colors.reset} Updated ${result.totalChanges} section(s)`);
301
+ }
302
+ } else {
303
+ console.log(`${CONFIG.colors.dim}Skipped house rules update. Run 'npm run house-rules:update' later.${CONFIG.colors.reset}`);
288
304
  }
289
305
  }
290
306
  }
@@ -1260,6 +1276,22 @@ The DevOps agent will automatically:
1260
1276
  console.log(`Please switch to this directory before making any changes:`);
1261
1277
  console.log(`cd "${instructions.worktreePath}"`);
1262
1278
  console.log(``);
1279
+
1280
+ // Add house rules reference prominently at the top
1281
+ const houseRulesExists = fs.existsSync(houseRulesPath);
1282
+ if (houseRulesExists) {
1283
+ console.log(`📋 IMPORTANT - READ PROJECT RULES FIRST:`);
1284
+ console.log(`Before making any changes, read the house rules file at:`);
1285
+ console.log(`${houseRulesPath}`);
1286
+ console.log(``);
1287
+ console.log(`The house rules contain:`);
1288
+ console.log(`- Project coding conventions and standards`);
1289
+ console.log(`- Required commit message formats`);
1290
+ console.log(`- File coordination protocols`);
1291
+ console.log(`- Branch naming and workflow rules`);
1292
+ console.log(``);
1293
+ }
1294
+
1263
1295
  console.log(`⚠️ FILE COORDINATION (MANDATORY):`);
1264
1296
  console.log(`Shared coordination directory: local_deploy/.file-coordination/`);
1265
1297
  console.log(``);
@@ -1277,14 +1309,6 @@ The DevOps agent will automatically:
1277
1309
  console.log(``);
1278
1310
  console.log(`Write commit messages to: .devops-commit-${sessionId}.msg`);
1279
1311
  console.log(`The DevOps agent will automatically commit and push changes.`);
1280
- console.log(``);
1281
-
1282
- // Add house rules reference
1283
- const houseRulesExists = fs.existsSync(houseRulesPath);
1284
- if (houseRulesExists) {
1285
- console.log(`📋 IMPORTANT: Review project conventions and rules:`);
1286
- console.log(`Read the house rules at: ${houseRulesPath}`);
1287
- }
1288
1312
  console.log();
1289
1313
 
1290
1314
  console.log(`${CONFIG.colors.yellow}══════════════════════════════════════════════════════════════${CONFIG.colors.reset}`);