poe-code 3.0.269 → 3.0.270

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.
@@ -12434,7 +12434,7 @@ function createToolRenderState() {
12434
12434
  }
12435
12435
  function toRenderKind(kind) {
12436
12436
  if (kind === "execute") return "exec";
12437
- if (kind === "write") return "edit";
12437
+ if (kind === "write" || kind === "edit") return "edit";
12438
12438
  if (kind === "read") return "read";
12439
12439
  return "other";
12440
12440
  }
@@ -12493,15 +12493,17 @@ function sessionUpdateToEvents(update, state) {
12493
12493
  return [];
12494
12494
  }
12495
12495
  state.startedToolCalls.add(update.toolCallId);
12496
- return [{
12497
- event: "tool_start",
12498
- kind: renderKind,
12499
- title,
12500
- id: update.toolCallId
12501
- }];
12496
+ return [
12497
+ {
12498
+ event: "tool_start",
12499
+ kind: renderKind,
12500
+ title,
12501
+ id: update.toolCallId
12502
+ }
12503
+ ];
12502
12504
  }
12503
12505
  if (update.sessionUpdate === "tool_call_update") {
12504
- const renderKind = toRenderKind(update.kind ?? void 0) || state.toolCallKinds.get(update.toolCallId) || "other";
12506
+ const renderKind = (update.kind == null ? void 0 : toRenderKind(update.kind)) || state.toolCallKinds.get(update.toolCallId) || "other";
12505
12507
  state.toolCallKinds.set(update.toolCallId, renderKind);
12506
12508
  const events = [];
12507
12509
  const toolTitle = toToolTitle(