fix: stabilize acp streams and tests
This commit is contained in:
12
pnpm-lock.yaml
generated
12
pnpm-lock.yaml
generated
@@ -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:
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -13,6 +13,8 @@ export const createTestRegistry = (
|
||||
): PluginRegistry => ({
|
||||
plugins: [],
|
||||
tools: [],
|
||||
hooks: [],
|
||||
typedHooks: [],
|
||||
channels,
|
||||
providers: [],
|
||||
gatewayHandlers: {},
|
||||
|
||||
Reference in New Issue
Block a user