refactor(plugin): simplify session request hook

This commit is contained in:
Aiden Cline 2026-07-17 17:13:46 -05:00 committed by 𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴
commit a84babca73
3 changed files with 11 additions and 11 deletions

View file

@ -1,16 +1,11 @@
import type { RequestData } from "@opencode-ai/ai/route"
import type { Agent } from "@opencode-ai/schema/agent"
import type { Model } from "@opencode-ai/schema/model"
import type { Session } from "@opencode-ai/schema/session"
export type RequestValue =
| null
| boolean
| number
| string
| Array<RequestValue>
| { [key: string]: RequestValue }
export type RequestValue = RequestData["body"][string]
export type RequestBody = Record<string, RequestValue>
export type RequestBody = RequestData["body"]
export interface SessionRequest {
readonly sessionID: Session.ID