diff options
Diffstat (limited to 'packages/sdk')
| -rw-r--r-- | packages/sdk/js/src/gen/types.gen.ts | 64 |
1 files changed, 41 insertions, 23 deletions
diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.ts index 2309f8b77..aada8e580 100644 --- a/packages/sdk/js/src/gen/types.gen.ts +++ b/packages/sdk/js/src/gen/types.gen.ts @@ -367,6 +367,15 @@ export type CompactionPart = { export type Part = | TextPart + | { + id: string + sessionID: string + messageID: string + type: "subtask" + prompt: string + description: string + agent: string + } | ReasoningPart | FilePart | ToolPart @@ -425,6 +434,28 @@ export type EventPermissionReplied = { } } +export type SessionStatus = + | { + type: "idle" + } + | { + type: "retry" + attempt: number + message: string + next: number + } + | { + type: "busy" + } + +export type EventSessionStatus = { + type: "session.status" + properties: { + sessionID: string + status: SessionStatus + } +} + export type EventSessionCompacted = { type: "session.compacted" properties: { @@ -476,27 +507,6 @@ export type EventCommandExecuted = { } } -export type SessionStatus = - | { - type: "idle" - } - | { - type: "retry" - attempt: number - message: string - } - | { - type: "busy" - } - -export type EventSessionStatus = { - type: "session.status" - properties: { - sessionID: string - status: SessionStatus - } -} - export type EventSessionIdle = { type: "session.idle" properties: { @@ -639,11 +649,11 @@ export type Event = | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied + | EventSessionStatus | EventSessionCompacted | EventFileEdited | EventTodoUpdated | EventCommandExecuted - | EventSessionStatus | EventSessionIdle | EventSessionCreated | EventSessionUpdated @@ -1248,6 +1258,14 @@ export type AgentPartInput = { } } +export type SubtaskPartInput = { + id?: string + type: "subtask" + prompt: string + description: string + agent: string +} + export type Command = { name: string description?: string @@ -2142,7 +2160,7 @@ export type SessionPromptData = { tools?: { [key: string]: boolean } - parts: Array<TextPartInput | FilePartInput | AgentPartInput> + parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput> } path: { /** |
