diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e840d87fc..a64e079a1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -245,10 +245,14 @@ importers: extensions/copilot-proxy: {} + extensions/discord: {} + extensions/google-antigravity-auth: {} extensions/google-gemini-cli-auth: {} + extensions/imessage: {} + extensions/matrix: dependencies: clawdbot: @@ -300,6 +304,12 @@ importers: specifier: ^4.1.2 version: 4.1.2 + extensions/signal: {} + + extensions/slack: {} + + extensions/telegram: {} + extensions/voice-call: dependencies: '@sinclair/typebox': @@ -312,6 +322,8 @@ importers: specifier: ^4.3.5 version: 4.3.5 + extensions/whatsapp: {} + extensions/zalo: dependencies: clawdbot: diff --git a/src/acp/client.ts b/src/acp/client.ts index a14d3a082..f46f93855 100644 --- a/src/acp/client.ts +++ b/src/acp/client.ts @@ -101,8 +101,9 @@ export async function createAcpClient(opts: AcpClientOptions = {}): Promise { console.log("\n[permission requested]", params.toolCall?.title ?? "tool"); - const allowOnce = params.options.find((option) => option.kind === "allow_once"); - const fallback = params.options[0]; + const options = params.options ?? []; + const allowOnce = options.find((option) => option.kind === "allow_once"); + const fallback = options[0]; return { outcome: { outcome: "selected", diff --git a/src/test-utils/channel-plugins.ts b/src/test-utils/channel-plugins.ts index 24da446bf..9dfde438e 100644 --- a/src/test-utils/channel-plugins.ts +++ b/src/test-utils/channel-plugins.ts @@ -13,6 +13,8 @@ export const createTestRegistry = ( ): PluginRegistry => ({ plugins: [], tools: [], + hooks: [], + typedHooks: [], channels, providers: [], gatewayHandlers: {},