refactor: add fetch runtime sdk seam

This commit is contained in:
Peter Steinberger
2026-03-28 05:42:15 +00:00
parent 5b544c295a
commit a126d23f0d
11 changed files with 20 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { wrapFetchWithAbortSignal } from "openclaw/plugin-sdk/infra-runtime";
import { wrapFetchWithAbortSignal } from "openclaw/plugin-sdk/fetch-runtime";
import { danger } from "openclaw/plugin-sdk/runtime-env";
import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env";
import { ProxyAgent, fetch as undiciFetch } from "undici";

View File

@@ -1,4 +1,4 @@
import { resolveFetch } from "openclaw/plugin-sdk/infra-runtime";
import { resolveFetch } from "openclaw/plugin-sdk/fetch-runtime";
const PLURALKIT_API_BASE = "https://api.pluralkit.me/v2";

View File

@@ -1,5 +1,5 @@
import type { BaseProbeResult } from "openclaw/plugin-sdk/channel-contract";
import { resolveFetch } from "openclaw/plugin-sdk/infra-runtime";
import { resolveFetch } from "openclaw/plugin-sdk/fetch-runtime";
import { fetchWithTimeout } from "openclaw/plugin-sdk/text-runtime";
import { normalizeDiscordToken } from "./token.js";

View File

@@ -1,5 +1,5 @@
import { generateSecureUuid } from "openclaw/plugin-sdk/core";
import { resolveFetch } from "openclaw/plugin-sdk/infra-runtime";
import { resolveFetch } from "openclaw/plugin-sdk/fetch-runtime";
import { fetchWithTimeout } from "openclaw/plugin-sdk/text-runtime";
export type SignalRpcOptions = {

View File

@@ -5,7 +5,7 @@ import {
hasEnvHttpProxyConfigured,
resolveFetch,
type PinnedDispatcherPolicy,
} from "openclaw/plugin-sdk/infra-runtime";
} from "openclaw/plugin-sdk/fetch-runtime";
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
import { Agent, EnvHttpProxyAgent, ProxyAgent, fetch as undiciFetch } from "undici";
import {

View File

@@ -1 +1 @@
export { getProxyUrlFromFetch, makeProxyFetch } from "openclaw/plugin-sdk/infra-runtime";
export { getProxyUrlFromFetch, makeProxyFetch } from "openclaw/plugin-sdk/fetch-runtime";