@lifeaitools/clauth 1.5.48 → 1.5.50

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.
@@ -5269,14 +5269,20 @@ async function startChitchatSession(name) {
5269
5269
  const binary = findClaudeBinary();
5270
5270
  if (binary) {
5271
5271
  try {
5272
- const cmd = `start cmd /k "cd /d ${CHITCHAT_CWD} && ${binary} /rdc:collab --session ${session_id}"`;
5273
- require('child_process').exec(cmd, { shell: true });
5274
- console.log(`[ClaudeAItoCLI] spawned terminal for session ${session_id}`);
5272
+ // Open Windows Terminal in regen-root. Claude Code skills are interactive REPL commands
5273
+ // so we print the session ID and start claude — user types /rdc:collab --session <id>
5274
+ const banner = `echo. && echo [rdc:collab] Session ready: ${session_id} && echo Type: /rdc:collab --session ${session_id} && echo.`;
5275
+ const child = spawnProc('wt.exe', [
5276
+ 'new-tab', '--title', `rdc:collab ${name}`,
5277
+ 'cmd', '/k', `cd /d ${CHITCHAT_CWD} && ${banner} && ${binary}`
5278
+ ], { detached: true, stdio: 'ignore', shell: false });
5279
+ child.unref();
5280
+ console.log(`[ClaudeAItoCLI] spawned terminal for session ${session_id} binary=${binary}`);
5275
5281
  } catch (err) {
5276
5282
  console.warn(`[ClaudeAItoCLI] could not spawn terminal: ${err.message}`);
5277
5283
  }
5278
5284
  } else {
5279
- console.warn(`[ClaudeAItoCLI] claude CLI not found — terminal not spawned. Run /rdc:collab --session ${session_id} manually.`);
5285
+ console.warn(`[ClaudeAItoCLI] claude binary not found in PATH — terminal not spawned. Run manually: cd ${CHITCHAT_CWD} && claude, then type /rdc:collab --session ${session_id}`);
5280
5286
  }
5281
5287
 
5282
5288
  // Queue greeting so claude.ai gets an immediate response on first chitchat_recv
@@ -5287,7 +5293,16 @@ async function startChitchatSession(name) {
5287
5293
  });
5288
5294
 
5289
5295
  console.log(`[ClaudeAItoCLI] started session ${session_id} name=${name}`);
5290
- return { session_id, status: 'ready', name };
5296
+ return {
5297
+ session_id,
5298
+ status: 'ready',
5299
+ name,
5300
+ binary_found: !!binary,
5301
+ binary_path: binary || null,
5302
+ next_step: binary
5303
+ ? `Terminal opened — type: /rdc:collab --session ${session_id}`
5304
+ : `Claude CLI not found. Open a terminal in ${CHITCHAT_CWD} and type: /rdc:collab --session ${session_id}`,
5305
+ };
5291
5306
  }
5292
5307
 
5293
5308
  // claude.ai → inbox — also pushes SSE event to any connected Claude Code stream listeners
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeaitools/clauth",
3
- "version": "1.5.48",
3
+ "version": "1.5.50",
4
4
  "description": "Hardware-bound credential vault for the LIFEAI infrastructure stack",
5
5
  "type": "module",
6
6
  "bin": {