helixmind 0.5.21 → 0.5.23

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.
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/chat.ts"],"names":[],"mappings":"AAsFA,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAqND,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA8iHrE"}
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/chat.ts"],"names":[],"mappings":"AAsFA,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAqND,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAijHrE"}
@@ -346,10 +346,11 @@ export async function chatCommand(options) {
346
346
  process.stdout.write(`\r\x1b[K ${chalk.yellow('\u23F3')} ${chalk.dim(`Rate limit: waiting ${Math.ceil(waitMs / 1000)}s (${reason})`)}`);
347
347
  }
348
348
  });
349
- // Initialize agent tools
350
- await initializeTools();
351
- // Analyze project context
352
- const project = await analyzeProject(process.cwd());
349
+ // Initialize agent tools + analyze project IN PARALLEL (saves ~100-200ms)
350
+ const [, project] = await Promise.all([
351
+ initializeTools(),
352
+ analyzeProject(process.cwd()),
353
+ ]);
353
354
  // Conversation history (for agent loop, we use ToolMessage format)
354
355
  const messages = [];
355
356
  const agentHistory = [];
@@ -419,7 +420,10 @@ export async function chatCommand(options) {
419
420
  onSessionComplete: (session) => {
420
421
  // Show notification in the terminal when a background session finishes
421
422
  if (session.id !== 'main') {
422
- process.stdout.write(renderSessionNotification(session));
423
+ // Use screen.writeOutput() instead of process.stdout.write() to prevent
424
+ // cursor jump: direct stdout writes corrupt the cursor position when the
425
+ // user is actively typing in the input field.
426
+ screen.writeOutput(renderSessionNotification(session));
423
427
  // Push findings to brain visualization (if browser is open)
424
428
  if (session.result?.text && pushFindingsToBrainFn) {
425
429
  pushFindingsToBrainFn(session);