mirror of https://github.com/openclaw/openclaw.git
refactor: trim remaining infra runtime residue
This commit is contained in:
parent
922c90e9fa
commit
c65ec46490
|
|
@ -1,10 +1,10 @@
|
|||
import type { ChannelType, Client, Message } from "@buape/carbon";
|
||||
import { StickerFormatType, type APIAttachment, type APIStickerItem } from "discord-api-types/v10";
|
||||
import type { SsrFPolicy } from "openclaw/plugin-sdk/infra-runtime";
|
||||
import { fetchRemoteMedia, type FetchLike } from "openclaw/plugin-sdk/media-runtime";
|
||||
import { saveMediaBuffer } from "openclaw/plugin-sdk/media-runtime";
|
||||
import { buildMediaPayload } from "openclaw/plugin-sdk/reply-payload";
|
||||
import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
|
||||
import type { SsrFPolicy } from "openclaw/plugin-sdk/ssrf-runtime";
|
||||
|
||||
const DISCORD_CDN_HOSTNAMES = [
|
||||
"cdn.discordapp.com",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { SYSTEM_MARK } from "openclaw/plugin-sdk/infra-runtime";
|
||||
import { SYSTEM_MARK } from "openclaw/plugin-sdk/text-runtime";
|
||||
import type { ThreadBindingRecord } from "./thread-bindings.types.js";
|
||||
|
||||
const THREAD_BINDING_PERSONA_MAX_CHARS = 80;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
import { type Block, type KnownBlock, type WebClient } from "@slack/web-api";
|
||||
import { loadConfig, type OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
|
||||
import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/config-runtime";
|
||||
import {
|
||||
fetchWithSsrFGuard,
|
||||
withTrustedEnvProxyGuardedFetchMode,
|
||||
} from "openclaw/plugin-sdk/infra-runtime";
|
||||
import { withTrustedEnvProxyGuardedFetchMode } from "openclaw/plugin-sdk/fetch-runtime";
|
||||
import { resolveTextChunksWithFallback } from "openclaw/plugin-sdk/reply-payload";
|
||||
import {
|
||||
chunkMarkdownTextWithMode,
|
||||
|
|
@ -13,6 +10,7 @@ import {
|
|||
} from "openclaw/plugin-sdk/reply-runtime";
|
||||
import { isSilentReplyText } from "openclaw/plugin-sdk/reply-runtime";
|
||||
import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
|
||||
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";
|
||||
import { loadWebMedia } from "openclaw/plugin-sdk/web-media";
|
||||
import type { SlackTokenSource } from "./accounts.js";
|
||||
import { resolveSlackAccount } from "./accounts.js";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
// Public fetch/proxy helpers for plugins that need wrapped fetch behavior.
|
||||
|
||||
export { resolveFetch, wrapFetchWithAbortSignal } from "../infra/fetch.js";
|
||||
export { withTrustedEnvProxyGuardedFetchMode } from "../infra/net/fetch-guard.ts";
|
||||
export { hasEnvHttpProxyConfigured } from "../infra/net/proxy-env.js";
|
||||
export { getProxyUrlFromFetch, makeProxyFetch } from "../infra/net/proxy-fetch.js";
|
||||
export { createPinnedLookup } from "../infra/net/ssrf.js";
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ export * from "../shared/text/code-regions.js";
|
|||
export * from "../shared/text/reasoning-tags.js";
|
||||
export * from "../shared/text/strip-markdown.js";
|
||||
export * from "../terminal/safe-text.js";
|
||||
export * from "../infra/system-message.ts";
|
||||
export * from "../utils/directive-tags.js";
|
||||
export * from "../utils.js";
|
||||
export * from "../utils/chunk-items.js";
|
||||
|
|
|
|||
Loading…
Reference in New Issue