fix: remove unused voice agent helper · openclaw/openclaw@3a20a0c
steipete
·
2026-05-29
·
via Recent Commits to openclaw:main
File tree
extensions/voice-call/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,10 +5,6 @@ import { normalizeOptionalString as normalizeString } from "openclaw/plugin-sdk/
|
5 | 5 | import type { VoiceCallConfig } from "./config.js"; |
6 | 6 | import type { CoreAgentDeps, CoreConfig } from "./core-bridge.js"; |
7 | 7 | |
8 | | -type AgentEntryLike = { |
9 | | -id?: unknown; |
10 | | -}; |
11 | | - |
12 | 8 | type VoiceIdentityLike = { |
13 | 9 | name?: unknown; |
14 | 10 | emoji?: unknown; |
@@ -17,15 +13,6 @@ type VoiceIdentityLike = {
|
17 | 13 | vibe?: unknown; |
18 | 14 | }; |
19 | 15 | |
20 | | -function readAgentEntries(cfg: CoreConfig): AgentEntryLike[] { |
21 | | -const agents = (cfg as { agents?: { list?: unknown } }).agents; |
22 | | -return Array.isArray(agents?.list) |
23 | | - ? agents.list.filter((entry): entry is AgentEntryLike => |
24 | | -Boolean(entry && typeof entry === "object"), |
25 | | -) |
26 | | - : []; |
27 | | -} |
28 | | - |
29 | 16 | function limitText(text: string, maxChars: number): string { |
30 | 17 | if (text.length <= maxChars) { |
31 | 18 | return text; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。