|
|
@@ -370,13 +370,6 @@ export type Pty = {
|
|
|
pid: number
|
|
|
}
|
|
|
|
|
|
-export type Prompt = {
|
|
|
- text: string
|
|
|
- files?: Array<PromptFileAttachment>
|
|
|
- agents?: Array<PromptAgentAttachment>
|
|
|
- references?: Array<PromptReferenceAttachment>
|
|
|
-}
|
|
|
-
|
|
|
export type OutputFormatText = {
|
|
|
type: "text"
|
|
|
}
|
|
|
@@ -785,6 +778,13 @@ export type Session = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+export type Prompt = {
|
|
|
+ text: string
|
|
|
+ files?: Array<PromptFileAttachment>
|
|
|
+ agents?: Array<PromptAgentAttachment>
|
|
|
+ references?: Array<PromptReferenceAttachment>
|
|
|
+}
|
|
|
+
|
|
|
export type GlobalEvent = {
|
|
|
directory: string
|
|
|
project?: string
|
|
|
@@ -829,6 +829,13 @@ export type GlobalEvent = {
|
|
|
| EventPtyDeleted
|
|
|
| EventInstallationUpdated
|
|
|
| EventInstallationUpdateAvailable
|
|
|
+ | EventMessageUpdated
|
|
|
+ | EventMessageRemoved
|
|
|
+ | EventMessagePartUpdated
|
|
|
+ | EventMessagePartRemoved
|
|
|
+ | EventSessionCreated
|
|
|
+ | EventSessionUpdated
|
|
|
+ | EventSessionDeleted
|
|
|
| EventCatalogModelUpdated
|
|
|
| EventSessionNextAgentSwitched
|
|
|
| EventSessionNextModelSwitched
|
|
|
@@ -2692,6 +2699,71 @@ export type EventInstallationUpdateAvailable = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+export type EventMessageUpdated = {
|
|
|
+ id: string
|
|
|
+ type: "message.updated"
|
|
|
+ properties: {
|
|
|
+ sessionID: string
|
|
|
+ info: Message
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+export type EventMessageRemoved = {
|
|
|
+ id: string
|
|
|
+ type: "message.removed"
|
|
|
+ properties: {
|
|
|
+ sessionID: string
|
|
|
+ messageID: string
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+export type EventMessagePartUpdated = {
|
|
|
+ id: string
|
|
|
+ type: "message.part.updated"
|
|
|
+ properties: {
|
|
|
+ sessionID: string
|
|
|
+ part: Part
|
|
|
+ time: number
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+export type EventMessagePartRemoved = {
|
|
|
+ id: string
|
|
|
+ type: "message.part.removed"
|
|
|
+ properties: {
|
|
|
+ sessionID: string
|
|
|
+ messageID: string
|
|
|
+ partID: string
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+export type EventSessionCreated = {
|
|
|
+ id: string
|
|
|
+ type: "session.created"
|
|
|
+ properties: {
|
|
|
+ sessionID: string
|
|
|
+ info: Session
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+export type EventSessionUpdated = {
|
|
|
+ id: string
|
|
|
+ type: "session.updated"
|
|
|
+ properties: {
|
|
|
+ sessionID: string
|
|
|
+ info: Session
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+export type EventSessionDeleted = {
|
|
|
+ id: string
|
|
|
+ type: "session.deleted"
|
|
|
+ properties: {
|
|
|
+ sessionID: string
|
|
|
+ info: Session
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
export type ModelV2Info = {
|
|
|
id: string
|
|
|
apiID: string
|
|
|
@@ -3492,71 +3564,6 @@ export type EventTuiToastShow1 = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export type EventMessageUpdated = {
|
|
|
- id: string
|
|
|
- type: "message.updated"
|
|
|
- properties: {
|
|
|
- sessionID: string
|
|
|
- info: Message
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-export type EventMessageRemoved = {
|
|
|
- id: string
|
|
|
- type: "message.removed"
|
|
|
- properties: {
|
|
|
- sessionID: string
|
|
|
- messageID: string
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-export type EventMessagePartUpdated = {
|
|
|
- id: string
|
|
|
- type: "message.part.updated"
|
|
|
- properties: {
|
|
|
- sessionID: string
|
|
|
- part: Part
|
|
|
- time: number
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-export type EventMessagePartRemoved = {
|
|
|
- id: string
|
|
|
- type: "message.part.removed"
|
|
|
- properties: {
|
|
|
- sessionID: string
|
|
|
- messageID: string
|
|
|
- partID: string
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-export type EventSessionCreated = {
|
|
|
- id: string
|
|
|
- type: "session.created"
|
|
|
- properties: {
|
|
|
- sessionID: string
|
|
|
- info: Session
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-export type EventSessionUpdated = {
|
|
|
- id: string
|
|
|
- type: "session.updated"
|
|
|
- properties: {
|
|
|
- sessionID: string
|
|
|
- info: Session
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-export type EventSessionDeleted = {
|
|
|
- id: string
|
|
|
- type: "session.deleted"
|
|
|
- properties: {
|
|
|
- sessionID: string
|
|
|
- info: Session
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
export type ModelV2Info1 = {
|
|
|
id: string
|
|
|
apiID: string
|