blun-king-cli 9.1.346 → 9.1.347

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.
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ function shouldParseStreamingToolCallImmediately(input = {}) {
4
+ return input.eventName === 'AgentSwarm'
5
+ || input.activeName === 'AgentSwarm'
6
+ || input.hasAgentSwarmProgress === true;
7
+ }
8
+
9
+ module.exports = { shouldParseStreamingToolCallImmediately };
package/blun.mjs CHANGED
@@ -508123,8 +508123,14 @@ var SessionEventHandler = class {
508123
508123
  if (event.argumentsPart.length > 0) this.turnWatchdog.recordProgress();
508124
508124
  const { state, streamingUI } = this.host;
508125
508125
  streamingUI.accumulateToolCallDelta(event.toolCallId, event.name, event.argumentsPart);
508126
- const preview = streamingUI.getStreamingToolCallPreview(event.toolCallId);
508127
- if (preview !== void 0 && (preview.name === "AgentSwarm" || this.subAgentEventHandler.hasAgentSwarmProgress(event.toolCallId))) this.subAgentEventHandler.handleAgentSwarmToolCallDelta(event.toolCallId, preview.args, { streamingArguments: preview.argumentsText });
508126
+ if (shouldParseStreamingToolCallImmediately({
508127
+ eventName: event.name,
508128
+ activeName: streamingUI.getActiveToolCall(event.toolCallId)?.name,
508129
+ hasAgentSwarmProgress: this.subAgentEventHandler.hasAgentSwarmProgress(event.toolCallId)
508130
+ })) {
508131
+ const preview = streamingUI.getStreamingToolCallPreview(event.toolCallId);
508132
+ if (preview !== void 0) this.subAgentEventHandler.handleAgentSwarmToolCallDelta(event.toolCallId, preview.args, { streamingArguments: preview.argumentsText });
508133
+ }
508128
508134
  this.host.patchLivePane({
508129
508135
  mode: "tool",
508130
508136
  pendingApproval: null,
@@ -515924,6 +515930,7 @@ const {
515924
515930
  writeRunningUpdateMode
515925
515931
  } = __require("./bin/running-update-preference.cjs");
515926
515932
  const { resolveStreamingFlushInterval } = __require("./bin/streaming-flush-performance-policy.cjs");
515933
+ const { shouldParseStreamingToolCallImmediately } = __require("./bin/tool-stream-preview-policy.cjs");
515927
515934
  const RUNNING_UPDATE_RESUME_SESSION_ENV = "BLUN_RUNNING_UPDATE_RESUME_SESSION_ID";
515928
515935
  function shouldContinueActiveGoalAfterRunningUpdate(expectedSessionId, currentSessionId, goalStatus) {
515929
515936
  return typeof expectedSessionId === "string" && expectedSessionId.length > 0 && currentSessionId === expectedSessionId && goalStatus === "active";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.346",
3
+ "version": "9.1.347",
4
4
  "description": "BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.",
5
5
  "license": "MIT",
6
6
  "bin": {