@byfriends/sdk 0.2.1 → 0.2.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/dist/index.d.mts CHANGED
@@ -1162,6 +1162,7 @@ declare const ByfConfigPatchSchema: z.ZodObject<{
1162
1162
  }, z.core.$strip>>;
1163
1163
  hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1164
1164
  event: z.ZodEnum<{
1165
+ Notification: "Notification";
1165
1166
  PreToolUse: "PreToolUse";
1166
1167
  PostToolUse: "PostToolUse";
1167
1168
  PostToolUseFailure: "PostToolUseFailure";
@@ -1174,7 +1175,6 @@ declare const ByfConfigPatchSchema: z.ZodObject<{
1174
1175
  SubagentStop: "SubagentStop";
1175
1176
  PreCompact: "PreCompact";
1176
1177
  PostCompact: "PostCompact";
1177
- Notification: "Notification";
1178
1178
  }>;
1179
1179
  matcher: z.ZodOptional<z.ZodString>;
1180
1180
  command: z.ZodString;
@@ -1299,6 +1299,7 @@ declare const ByfConfigSchema: z.ZodObject<{
1299
1299
  }, z.core.$strip>>;
1300
1300
  hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1301
1301
  event: z.ZodEnum<{
1302
+ Notification: "Notification";
1302
1303
  PreToolUse: "PreToolUse";
1303
1304
  PostToolUse: "PostToolUse";
1304
1305
  PostToolUseFailure: "PostToolUseFailure";
@@ -1311,7 +1312,6 @@ declare const ByfConfigSchema: z.ZodObject<{
1311
1312
  SubagentStop: "SubagentStop";
1312
1313
  PreCompact: "PreCompact";
1313
1314
  PostCompact: "PostCompact";
1314
- Notification: "Notification";
1315
1315
  }>;
1316
1316
  matcher: z.ZodOptional<z.ZodString>;
1317
1317
  command: z.ZodString;
@@ -2986,6 +2986,13 @@ declare interface McpConnectionManagerOptions {
2986
2986
  * `session.log` so MCP events land in the session log too.
2987
2987
  */
2988
2988
  readonly log?: Logger;
2989
+ /**
2990
+ * Custom fetch function for HTTP MCP transports. When provided, the
2991
+ * connection manager passes it to every `HttpMcpClient` so the
2992
+ * transport uses it for all HTTP requests — enabling proxy fallback,
2993
+ * custom retries, or test doubles.
2994
+ */
2995
+ readonly fetch?: typeof fetch;
2989
2996
  }
2990
2997
 
2991
2998
  /**
@@ -3979,6 +3986,12 @@ declare interface RuntimeConfig {
3979
3986
  readonly osEnv: Environment;
3980
3987
  readonly urlFetcher?: UrlFetcher | undefined;
3981
3988
  readonly webSearcher?: WebSearchProvider | undefined;
3989
+ /**
3990
+ * ProxiedFetch — a `typeof fetch` wrapper that retries through an
3991
+ * HTTP/SOCKS proxy when the direct attempt fails with a retryable error.
3992
+ * Used by MCP HTTP connections, URL fetcher, and web search.
3993
+ */
3994
+ readonly fetch?: typeof fetch;
3982
3995
  }
3983
3996
 
3984
3997
  declare class ScratchManager {