mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-30 17:14:40 +08:00
fix(cli): type ACP runtime methods
This commit is contained in:
@@ -20,8 +20,10 @@ const _typeCheck: _AssertAgentImplementsACPAgent = true
|
||||
* The SDK's router checks `if (!agent.methodName)` and throws MethodNotFound if missing.
|
||||
*/
|
||||
describe("acp.agent interface compliance", () => {
|
||||
// Extract method names from the ACPAgent interface type
|
||||
type ACPAgentMethods = keyof ACPAgent
|
||||
// kilocode_change start
|
||||
// Extract method names from the ACPAgent interface, plus runtime compatibility methods
|
||||
type ACPAgentMethods = keyof ACPAgent | "resumeSession" | "closeSession"
|
||||
// kilocode_change end
|
||||
|
||||
// Methods that the SDK's router explicitly checks for at runtime
|
||||
const sdkCheckedMethods: ACPAgentMethods[] = [
|
||||
|
||||
Reference in New Issue
Block a user