@codeyantram/cli 0.1.0 → 0.1.1

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/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20582,7 +20582,7 @@ function ChatProvider({ children }) {
20582
20582
  pendingOnDoneRef.current = null;
20583
20583
  const id = assistantMessageId;
20584
20584
  if (id !== null) {
20585
- updateMessages((current) => current.filter((message) => !(message.id === id && message.role === "assistant" && message.parts.length === 0)));
20585
+ updateMessages((current) => current.filter((message) => !(message.id === id && message.role === "assistant" && (message.parts.length === 0 || message.parts.some((part) => part.type === "tool-call" && part.result === undefined)))));
20586
20586
  }
20587
20587
  break;
20588
20588
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeyantram/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "module": "src/index.tsx",
6
6
  "type": "module",