fix: clean agents lint warnings
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
- Tools: unify reaction removal semantics across Discord/Slack/Telegram/WhatsApp and allow WhatsApp reaction routing across accounts.
|
||||
- Gateway/CLI: add daemon runtime selection (Node recommended; Bun optional) and document WhatsApp/Baileys Bun WebSocket instability on reconnect.
|
||||
- CLI: add `clawdbot docs` live docs search with pretty output.
|
||||
- CLI: add `clawdbot agents` (list/add/delete) with wizarded workspace/setup, provider login, and full prune on delete.
|
||||
- Agent: treat compaction retry AbortError as a fallback trigger without swallowing non-abort errors. Thanks @erikpr1994 for PR #341.
|
||||
- Agent: deliver final replies for non-streaming models when block chunking is enabled. Thank you @mneves75 for PR #369!
|
||||
- Sub-agents: allow `sessions_spawn` model overrides and error on invalid models. Thanks @azade-c for PR #298.
|
||||
|
||||
@@ -218,7 +218,7 @@ export function pruneAgentConfig(
|
||||
removedAllow: number;
|
||||
} {
|
||||
const id = normalizeAgentId(agentId);
|
||||
const agents = { ...(cfg.routing?.agents ?? {}) };
|
||||
const agents = { ...cfg.routing?.agents };
|
||||
delete agents[id];
|
||||
const nextAgents = Object.keys(agents).length > 0 ? agents : undefined;
|
||||
|
||||
|
||||
@@ -618,7 +618,7 @@ export async function setupProviders(
|
||||
accounts: {
|
||||
...next.whatsapp?.accounts,
|
||||
[whatsappAccountId]: {
|
||||
...(next.whatsapp?.accounts?.[whatsappAccountId] ?? {}),
|
||||
...next.whatsapp?.accounts?.[whatsappAccountId],
|
||||
enabled:
|
||||
next.whatsapp?.accounts?.[whatsappAccountId]?.enabled ?? true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user