u-foo 4.1.1 → 4.1.2

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": "u-foo",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Multi-Agent Workspace Protocol. Just add u. claude → uclaude, codex → ucodex.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://ufoo.dev",
@@ -3,7 +3,7 @@
3
3
  const os = require("os");
4
4
  const { resolveCodexUserAgent, resolveGrokClientVersion } = require("./clientIdentity");
5
5
  const { createHash, randomUUID } = require("crypto");
6
- const { Agent: UndiciAgent } = require("undici");
6
+ const { Agent: UndiciAgent, fetch: undiciFetch } = require("undici");
7
7
  const { normalizeProvider, normalizeKimiModel, resolveResponsesRequestProfile, resolveCompletionUrl, resolveResponsesUrl, resolveAnthropicMessagesUrl } = require("./runtimeConfig");
8
8
  const { stableStringify } = require("../runtime/core/stableJson");
9
9
  const { observeWireRequest } = require("./transports/requestCacheObservation");
@@ -338,7 +338,8 @@ async function runSseRequest({
338
338
  }
339
339
  emitPhase(onPhase, { type: "request_start" });
340
340
  try {
341
- response = await fetch(url, {
341
+ // Use the dependency's fetch so its handler matches the Agent's dispatcher API.
342
+ response = await undiciFetch(url, {
342
343
  method: "POST",
343
344
  headers,
344
345
  body: JSON.stringify(payload),