fix: stabilize acp streams and tests

This commit is contained in:
Peter Steinberger
2026-01-18 08:53:03 +00:00
parent c5e19f5c67
commit b739a3897f
3 changed files with 17 additions and 2 deletions

12
pnpm-lock.yaml generated
View File

@@ -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:

View File

@@ -101,8 +101,9 @@ export async function createAcpClient(opts: AcpClientOptions = {}): Promise<AcpC
},
requestPermission: async (params: RequestPermissionRequest) => {
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",

View File

@@ -13,6 +13,8 @@ export const createTestRegistry = (
): PluginRegistry => ({
plugins: [],
tools: [],
hooks: [],
typedHooks: [],
channels,
providers: [],
gatewayHandlers: {},