Permissions

This commit is contained in:
Shantur Rathore
2025-11-12 10:07:30 +00:00
parent 89dbe43d87
commit 2efd16796f
5 changed files with 235 additions and 17 deletions

View File

@@ -46,17 +46,7 @@ export function createClientSession(
}
}
// Type guard to check if object is SDK Session
export function isSdkSession(obj: unknown): obj is import("@opencode-ai/sdk").Session {
return (
typeof obj === "object" &&
obj !== null &&
"id" in obj &&
"title" in obj &&
"version" in obj &&
"time" in obj
)
}
// No type guard needed - we control the API and know the exact types we receive
// Our client-specific Agent interface (simplified version of SDK Agent)
export interface Agent {