惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
博客园 - 司徒正美
罗磊的独立博客
D
Docker
Last Week in AI
Last Week in AI
爱范儿
爱范儿
M
MIT News - Artificial intelligence
V
V2EX
Google DeepMind News
Google DeepMind News
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
MyScale Blog
MyScale Blog
V
Visual Studio Blog
博客园 - 叶小钗
B
Blog RSS Feed
A
About on SuperTechFans
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
Martin Fowler
Martin Fowler
P
Proofpoint News Feed

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: resolve voice-call SecretRef inputs (#73632) · openc...
VACInc · 2026-05-01 · via Recent Commits to openclaw:main

@@ -2,6 +2,12 @@ import {

22

REALTIME_VOICE_AGENT_CONSULT_TOOL_POLICIES,

33

type RealtimeVoiceAgentConsultToolPolicy,

44

} from "openclaw/plugin-sdk/realtime-voice";

5+

import {

6+

buildSecretInputSchema,

7+

hasConfiguredSecretInput,

8+

normalizeResolvedSecretInputString,

9+

type SecretInput,

10+

} from "openclaw/plugin-sdk/secret-input";

511

import { z } from "openclaw/plugin-sdk/zod";

612

import { TtsAutoSchema, TtsConfigSchema, TtsModeSchema, TtsProviderSchema } from "../api.js";

713

import { deepMergeDefined } from "./deep-merge.js";

@@ -39,6 +45,8 @@ export type InboundPolicy = z.infer<typeof InboundPolicySchema>;

3945

// Provider-Specific Configuration

4046

// -----------------------------------------------------------------------------

414748+

const SecretInputSchema = buildSecretInputSchema();

49+4250

export const TelnyxConfigSchema = z

4351

.object({

4452

/** Telnyx API v2 key */

@@ -56,10 +64,12 @@ export const TwilioConfigSchema = z

5664

/** Twilio Account SID */

5765

accountSid: z.string().min(1).optional(),

5866

/** Twilio Auth Token */

59-

authToken: z.string().min(1).optional(),

67+

authToken: SecretInputSchema.optional(),

6068

})

6169

.strict();

62-

export type TwilioConfig = z.infer<typeof TwilioConfigSchema>;

70+

export type TwilioConfig = Omit<z.infer<typeof TwilioConfigSchema>, "authToken"> & {

71+

authToken?: SecretInput;

72+

};

63736474

export const PlivoConfigSchema = z

6575

.object({

@@ -393,13 +403,15 @@ export const VoiceCallConfigSchema = z

393403

.strict();

394404395405

export type VoiceCallConfig = z.infer<typeof VoiceCallConfigSchema>;

396-

type DeepPartial<T> =

397-

T extends Array<infer U>

406+

type DeepPartial<T> = T extends SecretInput

407+

? T

408+

: T extends Array<infer U>

398409

? DeepPartial<U>[]

399410

: T extends object

400411

? { [K in keyof T]?: DeepPartial<T[K]> }

401412

: T;

402413

export type VoiceCallConfigInput = DeepPartial<VoiceCallConfig>;

414+

const TWILIO_AUTH_TOKEN_PATH = "plugins.entries.voice-call.config.twilio.authToken";

403415404416

// -----------------------------------------------------------------------------

405417

// Configuration Helpers

@@ -458,6 +470,15 @@ function sanitizeVoiceCallProviderConfigs(

458470

);

459471

}

460472473+

export function resolveTwilioAuthToken(

474+

config: Pick<VoiceCallConfig, "twilio">,

475+

): string | undefined {

476+

return normalizeResolvedSecretInputString({

477+

value: config.twilio?.authToken,

478+

path: TWILIO_AUTH_TOKEN_PATH,

479+

});

480+

}

481+461482

export function normalizeVoiceCallConfig(config: VoiceCallConfigInput): VoiceCallConfig {

462483

const defaults = cloneDefaultVoiceCallConfig();

463484

const serve = { ...defaults.serve, ...config.serve };

@@ -608,7 +629,7 @@ export function validateProviderConfig(config: VoiceCallConfig): {

608629

"plugins.entries.voice-call.config.twilio.accountSid is required (or set TWILIO_ACCOUNT_SID env)",

609630

);

610631

}

611-

if (!config.twilio?.authToken) {

632+

if (!hasConfiguredSecretInput(config.twilio?.authToken)) {

612633

errors.push(

613634

"plugins.entries.voice-call.config.twilio.authToken is required (or set TWILIO_AUTH_TOKEN env)",

614635

);