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/copilot-proxy: {}
|
||||||
|
|
||||||
|
extensions/discord: {}
|
||||||
|
|
||||||
extensions/google-antigravity-auth: {}
|
extensions/google-antigravity-auth: {}
|
||||||
|
|
||||||
extensions/google-gemini-cli-auth: {}
|
extensions/google-gemini-cli-auth: {}
|
||||||
|
|
||||||
|
extensions/imessage: {}
|
||||||
|
|
||||||
extensions/matrix:
|
extensions/matrix:
|
||||||
dependencies:
|
dependencies:
|
||||||
clawdbot:
|
clawdbot:
|
||||||
@@ -300,6 +304,12 @@ importers:
|
|||||||
specifier: ^4.1.2
|
specifier: ^4.1.2
|
||||||
version: 4.1.2
|
version: 4.1.2
|
||||||
|
|
||||||
|
extensions/signal: {}
|
||||||
|
|
||||||
|
extensions/slack: {}
|
||||||
|
|
||||||
|
extensions/telegram: {}
|
||||||
|
|
||||||
extensions/voice-call:
|
extensions/voice-call:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@sinclair/typebox':
|
'@sinclair/typebox':
|
||||||
@@ -312,6 +322,8 @@ importers:
|
|||||||
specifier: ^4.3.5
|
specifier: ^4.3.5
|
||||||
version: 4.3.5
|
version: 4.3.5
|
||||||
|
|
||||||
|
extensions/whatsapp: {}
|
||||||
|
|
||||||
extensions/zalo:
|
extensions/zalo:
|
||||||
dependencies:
|
dependencies:
|
||||||
clawdbot:
|
clawdbot:
|
||||||
|
|||||||
@@ -101,8 +101,9 @@ export async function createAcpClient(opts: AcpClientOptions = {}): Promise<AcpC
|
|||||||
},
|
},
|
||||||
requestPermission: async (params: RequestPermissionRequest) => {
|
requestPermission: async (params: RequestPermissionRequest) => {
|
||||||
console.log("\n[permission requested]", params.toolCall?.title ?? "tool");
|
console.log("\n[permission requested]", params.toolCall?.title ?? "tool");
|
||||||
const allowOnce = params.options.find((option) => option.kind === "allow_once");
|
const options = params.options ?? [];
|
||||||
const fallback = params.options[0];
|
const allowOnce = options.find((option) => option.kind === "allow_once");
|
||||||
|
const fallback = options[0];
|
||||||
return {
|
return {
|
||||||
outcome: {
|
outcome: {
|
||||||
outcome: "selected",
|
outcome: "selected",
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ export const createTestRegistry = (
|
|||||||
): PluginRegistry => ({
|
): PluginRegistry => ({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
tools: [],
|
tools: [],
|
||||||
|
hooks: [],
|
||||||
|
typedHooks: [],
|
||||||
channels,
|
channels,
|
||||||
providers: [],
|
providers: [],
|
||||||
gatewayHandlers: {},
|
gatewayHandlers: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user