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.
- package/claude-session.mjs +1 -1
- package/codex-event-mapper.mjs +1 -1
- package/hermes-event-mapper.mjs +1 -1
- package/package.json +1 -1
package/claude-session.mjs
CHANGED
|
@@ -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)
|
package/codex-event-mapper.mjs
CHANGED
|
@@ -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 })
|
package/hermes-event-mapper.mjs
CHANGED
|
@@ -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({
|