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

推荐订阅源

腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
I
InfoQ
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
有赞技术团队
有赞技术团队
G
Google Developers Blog
L
LangChain Blog
博客园_首页
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
IT之家
IT之家
量子位
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网

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
feat(voice-call): add setup smoke checks · openclaw/openc...
steipete · 2026-04-25 · via Recent Commits to openclaw:main

@@ -105,7 +105,10 @@ function setup(config: Record<string, unknown>): Registered {

105105

return { methods, tools, service };

106106

}

107107108-

async function registerVoiceCallCli(program: Command) {

108+

async function registerVoiceCallCli(

109+

program: Command,

110+

pluginConfig: Record<string, unknown> = { provider: "mock" },

111+

) {

109112

const { register } = plugin as unknown as {

110113

register: RegisterVoiceCall;

111114

};

@@ -116,7 +119,7 @@ async function registerVoiceCallCli(program: Command) {

116119

version: "0",

117120

source: "test",

118121

config: {},

119-

pluginConfig: { provider: "mock" },

122+

pluginConfig,

120123

runtime: { tts: { textToSpeechTelephony: vi.fn() } },

121124

logger: noopLogger,

122125

registerGatewayMethod: () => {},

@@ -366,4 +369,104 @@ describe("voice-call plugin", () => {

366369

stdout.restore();

367370

}

368371

});

372+373+

it("CLI setup prints human-readable checks by default", async () => {

374+

const program = new Command();

375+

const stdout = captureStdout();

376+

await registerVoiceCallCli(program, {

377+

provider: "twilio",

378+

fromNumber: "+15550001234",

379+

publicUrl: "https://voice.example.com/voice/webhook",

380+

twilio: {

381+

accountSid: "AC123",

382+

authToken: "token",

383+

},

384+

});

385+386+

try {

387+

await program.parseAsync(["voicecall", "setup"], { from: "user" });

388+

expect(stdout.output()).toContain("Voice Call setup: OK");

389+

expect(stdout.output()).toContain("OK provider: Provider configured: twilio");

390+

} finally {

391+

stdout.restore();

392+

}

393+

});

394+395+

it("CLI setup preserves JSON output with --json", async () => {

396+

const program = new Command();

397+

const stdout = captureStdout();

398+

await registerVoiceCallCli(program, {

399+

provider: "twilio",

400+

fromNumber: "+15550001234",

401+

twilio: {

402+

accountSid: "AC123",

403+

authToken: "token",

404+

},

405+

});

406+407+

try {

408+

await program.parseAsync(["voicecall", "setup", "--json"], { from: "user" });

409+

const parsed = JSON.parse(stdout.output()) as {

410+

ok?: boolean;

411+

checks?: Array<{ id: string; ok: boolean }>;

412+

};

413+

expect(parsed.ok).toBe(false);

414+

expect(parsed.checks).toContainEqual(

415+

expect.objectContaining({ id: "webhook-exposure", ok: false }),

416+

);

417+

} finally {

418+

stdout.restore();

419+

}

420+

});

421+422+

it("CLI smoke dry-runs a live call unless --yes is passed", async () => {

423+

const program = new Command();

424+

const stdout = captureStdout();

425+

await registerVoiceCallCli(program, {

426+

provider: "twilio",

427+

fromNumber: "+15550001234",

428+

publicUrl: "https://voice.example.com/voice/webhook",

429+

twilio: {

430+

accountSid: "AC123",

431+

authToken: "token",

432+

},

433+

});

434+435+

try {

436+

await program.parseAsync(["voicecall", "smoke", "--to", "+15550009999"], {

437+

from: "user",

438+

});

439+

expect(stdout.output()).toContain("live-call: dry run for +15550009999");

440+

expect(runtimeStub.manager.initiateCall).not.toHaveBeenCalled();

441+

} finally {

442+

stdout.restore();

443+

}

444+

});

445+446+

it("CLI smoke can place a live notify call with --yes", async () => {

447+

const program = new Command();

448+

const stdout = captureStdout();

449+

await registerVoiceCallCli(program, {

450+

provider: "twilio",

451+

fromNumber: "+15550001234",

452+

publicUrl: "https://voice.example.com/voice/webhook",

453+

twilio: {

454+

accountSid: "AC123",

455+

authToken: "token",

456+

},

457+

});

458+459+

try {

460+

await program.parseAsync(["voicecall", "smoke", "--to", "+15550009999", "--yes"], {

461+

from: "user",

462+

});

463+

expect(runtimeStub.manager.initiateCall).toHaveBeenCalledWith("+15550009999", undefined, {

464+

message: "OpenClaw voice call smoke test.",

465+

mode: "notify",

466+

});

467+

expect(stdout.output()).toContain("live-call: started call-1");

468+

} finally {

469+

stdout.restore();

470+

}

471+

});

369472

});