blun-king-cli 9.1.247 → 9.1.249
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.
|
@@ -8,6 +8,7 @@ const STEP_END_LIVE_ONLY_FIELDS = [
|
|
|
8
8
|
'llmServerDecodeMs',
|
|
9
9
|
'llmClientConsumeMs',
|
|
10
10
|
'messageId',
|
|
11
|
+
'reasoningFieldState',
|
|
11
12
|
];
|
|
12
13
|
const STEP_END_ROUTINE_FINISH_REASONS = new Set(['tool_use', 'end_turn']);
|
|
13
14
|
|
|
@@ -83,9 +84,14 @@ function projectLoopEventForRecord(event) {
|
|
|
83
84
|
return recordedEvent;
|
|
84
85
|
}
|
|
85
86
|
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
if (
|
|
88
|
+
event?.type === 'tool.result' &&
|
|
89
|
+
(hasOwn(event, 'parentUuid') || event.result?.exitCode === 0)
|
|
90
|
+
) {
|
|
91
|
+
const { parentUuid: _parentUuid, ...withoutParentUuid } = event;
|
|
92
|
+
if (event.result?.exitCode !== 0) return withoutParentUuid;
|
|
93
|
+
const { exitCode: _exitCode, ...recordedResult } = event.result;
|
|
94
|
+
return { ...withoutParentUuid, result: recordedResult };
|
|
89
95
|
}
|
|
90
96
|
|
|
91
97
|
const hasRoutineFinishReason = STEP_END_ROUTINE_FINISH_REASONS.has(event?.finishReason);
|
|
@@ -115,6 +121,7 @@ function projectLoopEventForRecord(event) {
|
|
|
115
121
|
llmServerDecodeMs: _llmServerDecodeMs,
|
|
116
122
|
llmClientConsumeMs: _llmClientConsumeMs,
|
|
117
123
|
messageId: _messageId,
|
|
124
|
+
reasoningFieldState: _reasoningFieldState,
|
|
118
125
|
usage: _usage,
|
|
119
126
|
...recordedEvent
|
|
120
127
|
} = event;
|