thinkpool-pair 0.7.46 → 0.7.47

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.
@@ -467,9 +467,15 @@ export function startClaudeSession({ cwd, model, resume, env, mode: initialMode
467
467
  // Claude Code's own predicted next prompt (promptSuggestions opt-in).
468
468
  // Arrives once per turn AFTER `result`; surfaced verbatim as ephemeral
469
469
  // chrome (a ghost-text chip in the room composer), never persisted.
470
+ process.stderr.write(`\n ◆ [suggestion] received: ${JSON.stringify(m.suggestion ?? null)}\n`)
470
471
  if (m.suggestion) emit({ kind: 'suggestion', text: m.suggestion })
471
472
  break
472
473
  default:
474
+ // Debug: log any unhandled message type so we can see if prompt_suggestion
475
+ // is arriving under a different name. Remove once confirmed working.
476
+ if (m.type && !['stream_event', 'user', 'agent_metadata'].includes(m.type)) {
477
+ process.stderr.write(` [debug] unhandled sdk msg type=${m.type}${m.suggestion ? ` (HAS .suggestion=${JSON.stringify(m.suggestion)})` : ''}\n`)
478
+ }
473
479
  break
474
480
  }
475
481
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkpool-pair",
3
- "version": "0.7.46",
3
+ "version": "0.7.47",
4
4
  "description": "Share a local coding-agent CLI (Claude Code, Codex, Gemini, Aider, …) into a ThinkPool Code room, live.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,7 +27,7 @@
27
27
  "node": ">=18"
28
28
  },
29
29
  "dependencies": {
30
- "@anthropic-ai/claude-agent-sdk": "0.3.173",
30
+ "@anthropic-ai/claude-agent-sdk": "^0.3.185",
31
31
  "@supabase/supabase-js": "^2.45.0"
32
32
  },
33
33
  "optionalDependencies": {