s9n-devops-agent 2.0.18-dev.8 → 2.0.18-dev.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s9n-devops-agent",
3
- "version": "2.0.18-dev.8",
3
+ "version": "2.0.18-dev.9",
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",
@@ -2434,8 +2434,36 @@ async function main() {
2434
2434
  // Start agent for a session
2435
2435
  const sessionId = args[1];
2436
2436
  if (!sessionId) {
2437
+ // Ask if user wants Kora assistance
2438
+ const rl = readline.createInterface({
2439
+ input: process.stdin,
2440
+ output: process.stdout
2441
+ });
2442
+
2443
+ console.log(`\n${CONFIG.colors.magenta}🤖 Kora AI Assistant Available${CONFIG.colors.reset}`);
2444
+ const useKora = await new Promise(resolve => {
2445
+ rl.question(`Would you like Kora to guide you? (Y/n): `, answer => {
2446
+ rl.close();
2447
+ resolve(answer.toLowerCase() !== 'n' && answer.toLowerCase() !== 'no');
2448
+ });
2449
+ });
2450
+
2451
+ if (useKora) {
2452
+ console.log(`\n${CONFIG.colors.magenta}Launching Kora...${CONFIG.colors.reset}`);
2453
+ const chatScript = path.join(__dirname, 'agent-chat.js');
2454
+ const child = spawn('node', [chatScript], {
2455
+ stdio: 'inherit',
2456
+ env: process.env
2457
+ });
2458
+
2459
+ child.on('exit', (code) => {
2460
+ process.exit(code);
2461
+ });
2462
+ return; // Hand off to Kora
2463
+ }
2464
+
2437
2465
  // No session ID provided - show interactive menu
2438
- console.log(`${CONFIG.colors.bright}DevOps Agent Session Manager${CONFIG.colors.reset}\n`);
2466
+ console.log(`\n${CONFIG.colors.bright}DevOps Agent Session Manager${CONFIG.colors.reset}\n`);
2439
2467
 
2440
2468
  // Show existing sessions first
2441
2469
  const locks = fs.existsSync(coordinator.locksPath) ?