@flutchai/flutch-sdk 0.1.22 → 0.1.23
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/dist/index.cjs +0 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4494,11 +4494,6 @@ exports.EventProcessor = class EventProcessor {
|
|
|
4494
4494
|
*/
|
|
4495
4495
|
sendDelta(channel, delta, onPartial) {
|
|
4496
4496
|
if (!onPartial) return;
|
|
4497
|
-
if (delta.type === "step_started" || delta.type === "tool_output_chunk" || delta.type === "tool_input_chunk") {
|
|
4498
|
-
this.logger.debug(
|
|
4499
|
-
`[DELTA] type=${delta.type} channel=${channel} stepId=${delta.stepId || delta.step?.id} name=${delta.step?.name || "N/A"}`
|
|
4500
|
-
);
|
|
4501
|
-
}
|
|
4502
4497
|
onPartial(
|
|
4503
4498
|
JSON.stringify({
|
|
4504
4499
|
channel,
|
|
@@ -4644,9 +4639,6 @@ exports.EventProcessor = class EventProcessor {
|
|
|
4644
4639
|
const channel = event.metadata?.stream_channel ?? "text" /* TEXT */;
|
|
4645
4640
|
const state = acc.channels.get(channel);
|
|
4646
4641
|
if (!state) return;
|
|
4647
|
-
this.logger.debug(
|
|
4648
|
-
`[on_tool_end] channel=${channel} pendingCount=${state.pendingToolBlocks.length} pendingIds=${state.pendingToolBlocks.map((b) => b.id).join(",")} currentBlock=${state.currentBlock?.id}`
|
|
4649
|
-
);
|
|
4650
4642
|
const toolBlock = state.pendingToolBlocks.shift();
|
|
4651
4643
|
if (toolBlock && toolBlock.type === "tool_use") {
|
|
4652
4644
|
const output = event.data?.output;
|