refactor(plugin): simplify session request hook
This commit is contained in:
parent
7edaa05869
commit
a84babca73
3 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue