refactor: trim secret and ssrf helper runtime seams

This commit is contained in:
Peter Steinberger
2026-03-28 02:24:57 +00:00
parent 18fe752c48
commit 4031bb1914
4 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ import {
} from "openclaw/plugin-sdk/account-id";
import type { OpenClawConfig } from "openclaw/plugin-sdk/account-resolution";
import { resolveAccountEntry } from "openclaw/plugin-sdk/account-resolution";
import { tryReadSecretFileSync } from "openclaw/plugin-sdk/infra-runtime";
import { tryReadSecretFileSync } from "openclaw/plugin-sdk/core";
import type {
LineAccountConfig,
LineConfig,

View File

@@ -1,7 +1,7 @@
import { resolveAccountWithDefaultFallback } from "openclaw/plugin-sdk/account-resolution";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import { coerceSecretRef } from "openclaw/plugin-sdk/config-runtime";
import { tryReadSecretFileSync } from "openclaw/plugin-sdk/infra-runtime";
import { tryReadSecretFileSync } from "openclaw/plugin-sdk/core";
import { resolveDefaultSecretProviderAlias } from "openclaw/plugin-sdk/provider-auth";
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/routing";
import {

View File

@@ -1,7 +1,7 @@
import { resolveNormalizedAccountEntry } from "openclaw/plugin-sdk/account-resolution";
import type { BaseTokenResolution } from "openclaw/plugin-sdk/channel-contract";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import { tryReadSecretFileSync } from "openclaw/plugin-sdk/infra-runtime";
import { tryReadSecretFileSync } from "openclaw/plugin-sdk/core";
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/routing";
import { normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input";
import type { TelegramAccountConfig } from "../runtime-api.js";

View File

@@ -1,4 +1,4 @@
import { isBlockedHostnameOrIp } from "openclaw/plugin-sdk/infra-runtime";
import { isBlockedHostnameOrIp } from "openclaw/plugin-sdk/ssrf-runtime";
export type UrbitBaseUrlValidation =
| { ok: true; baseUrl: string; hostname: string }