feat(plugin): expose synthetic session input (#37212)

This commit is contained in:
Kit Langton 2026-07-15 22:55:40 -04:00 committed by GitHub
commit 4678bd1049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 74 additions and 4 deletions

View file

@ -19,6 +19,9 @@ export interface SessionHooks {
readonly context: SessionContext
}
export type SessionDomain = Pick<SessionApi<unknown>, "create" | "get" | "prompt" | "command" | "interrupt"> & {
export type SessionDomain = Pick<
SessionApi<unknown>,
"create" | "get" | "prompt" | "command" | "synthetic" | "interrupt"
> & {
readonly hook: Hooks<SessionHooks>
}

View file

@ -19,6 +19,6 @@ export interface SessionHooks {
readonly context: SessionContext
}
export type SessionDomain = Pick<SessionApi, "create" | "get" | "prompt" | "command" | "interrupt"> & {
export type SessionDomain = Pick<SessionApi, "create" | "get" | "prompt" | "command" | "synthetic" | "interrupt"> & {
readonly hook: Hooks<SessionHooks>
}