thinkpool-pair 0.7.279 → 0.7.280

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.
@@ -165,7 +165,7 @@ function makeInputStream() {
165
165
  // Simplify SDK assistant content blocks to a stable wire shape.
166
166
  const simplifyBlocks = (blocks = []) => blocks.map((b) => {
167
167
  if (b.type === 'text') return { type: 'text', text: b.text }
168
- if (b.type === 'thinking') return { type: 'thinking', text: b.thinking || '' }
168
+ if (b.type === 'thinking') return { type: 'thinking', text: b.thinking || '', reasoningKind: 'thought' }
169
169
  if (b.type === 'tool_use') return { type: 'tool_use', id: b.id, name: b.name, input: b.input }
170
170
  return { type: b.type }
171
171
  }).filter(Boolean)
@@ -125,7 +125,7 @@ export class CodexEventMapper {
125
125
  if (it.type === 'agent_message') {
126
126
  this._emit({ kind: 'assistant', blocks: [{ type: 'text', text: it.text || '' }], parentToolUseId: null })
127
127
  } else if (it.type === 'reasoning') {
128
- this._emit({ kind: 'assistant', blocks: [{ type: 'thinking', text: it.text || '' }], parentToolUseId: null })
128
+ this._emit({ kind: 'assistant', blocks: [{ type: 'thinking', text: it.text || '', reasoningKind: 'summary' }], parentToolUseId: null })
129
129
  } else if (it.type === 'command_execution') {
130
130
  const bad = it.exit_code != null ? it.exit_code !== 0 : false
131
131
  this._emit({ kind: 'tool_result', toolUseId: it.id, content: [{ type: 'text', text: it.aggregated_output || '' }], isError: bad, durationMs, parentToolUseId: null })
@@ -153,7 +153,7 @@ export class HermesEventMapper {
153
153
  }
154
154
  this.tools.clear()
155
155
  const blocks = []
156
- if (this.thought) blocks.push({ type: 'thinking', text: this.thought })
156
+ if (this.thought) blocks.push({ type: 'thinking', text: this.thought, reasoningKind: 'thought' })
157
157
  if (this.text) blocks.push({ type: 'text', text: this.text })
158
158
  if (blocks.length) this._emit({ kind: 'assistant', blocks, parentToolUseId: null, ...(this.textCid ? { replacesCid: this.textCid } : {}) })
159
159
  this._emit({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkpool-pair",
3
- "version": "0.7.279",
3
+ "version": "0.7.280",
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": {