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
parent 5fb0470b44
commit 4678bd1049
7 changed files with 74 additions and 4 deletions
+4 -1
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>
}
+1 -1
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>
}