blun-king-cli 9.1.352 → 9.1.353

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.
Files changed (2) hide show
  1. package/blun.mjs +9 -4
  2. package/package.json +1 -1
package/blun.mjs CHANGED
@@ -507329,14 +507329,16 @@ var SubAgentEventHandler = class {
507329
507329
  for (const progress of this.agentSwarmProgress.values()) progress.setActivitySpinnerText(spinner === void 0 ? void 0 : (width) => spinner.renderInline(width));
507330
507330
  }
507331
507331
  handleAgentSwarmToolCallStarted(toolCallId, args) {
507332
+ this.clearSwarmDeltaRenderTimer();
507332
507333
  this.ensureAgentSwarmProgress(toolCallId, args).markInputComplete();
507333
507334
  this.requestRender();
507334
507335
  }
507335
- handleAgentSwarmToolCallDelta(toolCallId, args, options) {
507336
+ handleAgentSwarmToolCallDelta(toolCallId, args, options, deltaChars) {
507336
507337
  this.ensureAgentSwarmProgress(toolCallId, args, options);
507337
- this.requestRender();
507338
+ this.scheduleSwarmDeltaRender(deltaChars);
507338
507339
  }
507339
507340
  handleAgentSwarmToolResult(toolCallId, resultData, isError) {
507341
+ this.clearSwarmDeltaRenderTimer();
507340
507342
  const progress = this.agentSwarmProgress.get(toolCallId);
507341
507343
  if (progress === void 0) return;
507342
507344
  if (isError && isUserCancelledSubagentError(resultData.output)) if (progress.isRequestStreaming()) this.removeAgentSwarmProgress(toolCallId, progress);
@@ -507365,7 +507367,10 @@ var SubAgentEventHandler = class {
507365
507367
  progress.markActiveCancelled();
507366
507368
  updated = true;
507367
507369
  }
507368
- if (updated) this.requestRender();
507370
+ if (updated) {
507371
+ this.clearSwarmDeltaRenderTimer();
507372
+ this.requestRender();
507373
+ }
507369
507374
  }
507370
507375
  handleSubagentSpawned(event) {
507371
507376
  this.rememberSubagent(event);
@@ -508286,7 +508291,7 @@ var SessionEventHandler = class {
508286
508291
  hasAgentSwarmProgress: this.subAgentEventHandler.hasAgentSwarmProgress(event.toolCallId)
508287
508292
  })) {
508288
508293
  const preview = streamingUI.getStreamingToolCallPreview(event.toolCallId);
508289
- if (preview !== void 0) this.subAgentEventHandler.handleAgentSwarmToolCallDelta(event.toolCallId, preview.args, { streamingArguments: preview.argumentsText });
508294
+ if (preview !== void 0) this.subAgentEventHandler.handleAgentSwarmToolCallDelta(event.toolCallId, preview.args, { streamingArguments: preview.argumentsText }, event.argumentsPart.length);
508290
508295
  }
508291
508296
  this.host.patchLivePane({
508292
508297
  mode: "tool",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.352",
3
+ "version": "9.1.353",
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": {