Skip to content

Commit 243bb6f

Browse files
committed
test: align acp agent method check
1 parent 1e84417 commit 243bb6f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/opencode/test/acp/agent-interface.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ const _typeCheck: _AssertAgentImplementsACPAgent = true
2020
* The SDK's router checks `if (!agent.methodName)` and throws MethodNotFound if missing.
2121
*/
2222
describe("acp.agent interface compliance", () => {
23-
// Extract method names from the ACPAgent interface type
24-
type ACPAgentMethods = keyof ACPAgent
23+
type ACPAgentMethods = keyof InstanceType<typeof ACP.Agent>
2524

2625
// Methods that the SDK's router explicitly checks for at runtime
2726
const sdkCheckedMethods: ACPAgentMethods[] = [

0 commit comments

Comments
 (0)