@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 +1 -1
- package/tool-response.mjs +2 -0
package/package.json
CHANGED
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 {
|