@magpie-community/opencode-zen-free-auth 0.1.11 → 0.1.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magpie-community/opencode-zen-free-auth",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "OpenCode Zen free models through the public credential, with native streaming protocols",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",
package/tool-response.mjs CHANGED
@@ -250,6 +250,8 @@ function appendFunction(target, fragment) {
250
250
  if (!object(fragment)) throw new GuardError("Invalid upstream function delta");
251
251
  for (const [key, value] of Object.entries(fragment)) {
252
252
  if (key === "name" || key === "arguments") {
253
+ // Nullable stream fields carry no new bytes; keep prior fragments intact.
254
+ if (value == null) continue;
253
255
  if (typeof value !== "string") throw new GuardError("Invalid upstream function delta");
254
256
  target[key] = (target[key] ?? "") + value;
255
257
  } else {