perf: add lightweight secret input runtime

This commit is contained in:
Peter Steinberger
2026-04-17 16:28:15 +01:00
parent 5f3bb53788
commit d565c2cc34
4 changed files with 12 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ import {
normalizeOptionalAccountId,
} from "openclaw/plugin-sdk/account-id";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input-runtime";
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
import {
resolveMatrixAccountStringValues,

View File

@@ -1084,6 +1084,10 @@
"types": "./dist/plugin-sdk/secret-input.d.ts",
"default": "./dist/plugin-sdk/secret-input.js"
},
"./plugin-sdk/secret-input-runtime": {
"types": "./dist/plugin-sdk/secret-input-runtime.d.ts",
"default": "./dist/plugin-sdk/secret-input-runtime.js"
},
"./plugin-sdk/channel-status": {
"types": "./dist/plugin-sdk/channel-status.d.ts",
"default": "./dist/plugin-sdk/channel-status.js"

View File

@@ -257,6 +257,7 @@
"param-readers",
"provider-zai-endpoint",
"secret-input",
"secret-input-runtime",
"channel-status",
"status-helpers",
"speech",

View File

@@ -1,5 +1,11 @@
export {
coerceSecretRef,
hasConfiguredSecretInput,
isSecretRef,
normalizeResolvedSecretInputString,
normalizeSecretInputString,
resolveSecretInputString,
type SecretInput,
type SecretInputStringResolution,
type SecretInputStringResolutionMode,
} from "../config/types.secrets.js";