@hasura/promptql 2.0.0-alpha.12 → 2.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -24,7 +24,7 @@ type ThreadEvent$1 = {
24
24
  * A unique identifier for a agent message in a thread
25
25
  */
26
26
  message_id: string;
27
- update: AgentUpdate;
27
+ update: VersionedOrUnversionedAgentUpdate;
28
28
  };
29
29
  } | {
30
30
  UserCancel: {
@@ -59,6 +59,319 @@ type ThreadEvent$1 = {
59
59
  };
60
60
  type PromptQlUserId = string;
61
61
  type ArtifactId = string;
62
+ type VersionedOrUnversionedAgentUpdate = VersionedAgentUpdate | AgentUpdate;
63
+ type AgentUpdateContent = {
64
+ interaction_started: {};
65
+ } | {
66
+ interaction_update: InteractionUpdate;
67
+ } | {
68
+ interaction_finished: {
69
+ outcome: InteractionOutcome;
70
+ };
71
+ };
72
+ type InteractionUpdate = {
73
+ interaction_decision: InteractionDecisionUpdate;
74
+ } | {
75
+ wiki_selection: WikiSelectionUpdate;
76
+ } | {
77
+ main_agent: AgentLoopUpdate;
78
+ } | {
79
+ wiki_learnings: WikiLearningsUpdate;
80
+ };
81
+ /**
82
+ * The agent's decision on whether to process a user interaction
83
+ *
84
+ * After receiving a user message, the agent first decides whether it should
85
+ * respond based on various factors like chat context and explicit mentions.
86
+ */
87
+ type InteractionDecisionUpdate = {
88
+ DeclineInteraction: {
89
+ /**
90
+ * When the decision was made
91
+ */
92
+ declined_at: string;
93
+ /**
94
+ * Why the interaction was declined
95
+ */
96
+ reason: "MultipleUsersAndNoPromptQlMention" | "UserRequestedSkip";
97
+ };
98
+ } | {
99
+ AcceptInteraction: {
100
+ /**
101
+ * When the decision was made
102
+ */
103
+ accepted_at: string;
104
+ };
105
+ };
106
+ type WikiSelectionUpdate = {
107
+ started: {};
108
+ } | {
109
+ wiki_info_generated: {
110
+ /**
111
+ * Summary of relevant wiki information
112
+ */
113
+ wiki_summary: string;
114
+ /**
115
+ * IDs of wiki pages that were found to be relevant
116
+ */
117
+ wiki_page_ids: string[];
118
+ /**
119
+ * LLM usage during wiki exploration
120
+ */
121
+ llm_usage?: LlmUsage[];
122
+ };
123
+ } | {
124
+ completed: {};
125
+ };
126
+ type AgentLoopUpdate = {
127
+ started: {};
128
+ } | {
129
+ turn_started: {
130
+ turn_index: number;
131
+ };
132
+ } | {
133
+ llm_response: {
134
+ response_text: string;
135
+ actions: AgentLoopAction[];
136
+ usage: LlmUsage;
137
+ };
138
+ } | {
139
+ action_started: {
140
+ action: AgentLoopAction;
141
+ };
142
+ } | {
143
+ action_progress: {
144
+ update: AgentLoopActionUpdate;
145
+ };
146
+ } | {
147
+ action_completed: {
148
+ result: AgentLoopActionResult;
149
+ };
150
+ } | {
151
+ turn_completed: {
152
+ turn_index: number;
153
+ };
154
+ } | {
155
+ completed: {
156
+ summary: string;
157
+ success: boolean;
158
+ };
159
+ };
160
+ /**
161
+ * Actions the agent can perform.
162
+ */
163
+ type AgentLoopAction = {
164
+ create_program: {
165
+ package_name: ProgramPackageName;
166
+ };
167
+ } | {
168
+ read_file: {
169
+ path: string;
170
+ package_name?: ProgramPackageName | null;
171
+ };
172
+ } | {
173
+ list_files: {
174
+ package_name?: ProgramPackageName | null;
175
+ };
176
+ } | {
177
+ delete_file: {
178
+ path: string;
179
+ package_name?: ProgramPackageName | null;
180
+ };
181
+ } | {
182
+ copy_files: {
183
+ source_package_name?: ProgramPackageName | null;
184
+ target_package_name?: ProgramPackageName | null;
185
+ files: CopyFileEntry[];
186
+ };
187
+ } | {
188
+ write_file: {
189
+ path: string;
190
+ content: string;
191
+ };
192
+ } | {
193
+ edit_file: {
194
+ path: string;
195
+ old_text: string;
196
+ new_text: string;
197
+ };
198
+ } | {
199
+ run_program: {
200
+ entrypoint: string;
201
+ package_name?: ProgramPackageName | null;
202
+ };
203
+ } | {
204
+ run_sub_agent: {
205
+ task: string;
206
+ user_facing_title: string;
207
+ sub_agent_type: SubAgentType;
208
+ };
209
+ } | {
210
+ responding_to_user: {
211
+ message: string;
212
+ };
213
+ };
214
+ /**
215
+ * Program Package Name is the unique name for a program within a project that usable from code
216
+ * Follows the database constraint: ^[a-z][a-z0-9_]*$
217
+ */
218
+ type ProgramPackageName = string;
219
+ /**
220
+ * Sub-agent type identifier.
221
+ */
222
+ type SubAgentType = string;
223
+ /**
224
+ * Intermediate updates emitted during action execution.
225
+ */
226
+ type AgentLoopActionUpdate = {
227
+ code_output: {
228
+ output: string;
229
+ };
230
+ } | {
231
+ code_error: {
232
+ error: string;
233
+ };
234
+ } | {
235
+ artifact_access: {
236
+ artifact_name: string;
237
+ };
238
+ } | {
239
+ artifact_modified: {
240
+ artifact_update: ArtifactUpdate;
241
+ };
242
+ } | {
243
+ sub_agent_update: AgentLoopUpdateV1;
244
+ };
245
+ type ArtifactType = "text" | "table" | "visualization" | "html" | "file";
246
+ type ArtifactPreview = {
247
+ Table: {
248
+ total_row_count: number;
249
+ preview_rows: {
250
+ [k: string]: unknown;
251
+ }[];
252
+ };
253
+ };
254
+ /**
255
+ * Events from the agent loop execution.
256
+ * Mirrors `AgentEvent<ProgrammerTask>` from the agent crate.
257
+ */
258
+ type AgentLoopUpdateV1 = {
259
+ started: {};
260
+ } | {
261
+ turn_started: {
262
+ turn_index: number;
263
+ };
264
+ } | {
265
+ llm_response: {
266
+ response_text: string;
267
+ actions: AgentLoopAction[];
268
+ usage: LlmUsage;
269
+ };
270
+ } | {
271
+ action_started: {
272
+ action: AgentLoopAction;
273
+ };
274
+ } | {
275
+ action_progress: {
276
+ update: AgentLoopActionUpdate;
277
+ };
278
+ } | {
279
+ action_completed: {
280
+ result: AgentLoopActionResult;
281
+ };
282
+ } | {
283
+ turn_completed: {
284
+ turn_index: number;
285
+ };
286
+ } | {
287
+ completed: {
288
+ summary: string;
289
+ success: boolean;
290
+ };
291
+ };
292
+ /**
293
+ * The final result of executing an action.
294
+ */
295
+ type AgentLoopActionResult = {
296
+ path: string;
297
+ agent_loop_action_result_type: "file_written";
298
+ } | {
299
+ path: string;
300
+ agent_loop_action_result_type: "file_edited";
301
+ } | {
302
+ path: string;
303
+ message: string;
304
+ agent_loop_action_result_type: "file_edit_error";
305
+ } | {
306
+ output: string;
307
+ error?: string | null;
308
+ accessed_artifacts: string[];
309
+ modified_artifacts: ArtifactUpdate[];
310
+ agent_loop_action_result_type: "code_executed";
311
+ } | {
312
+ message: string;
313
+ agent_loop_action_result_type: "code_execution_failed";
314
+ } | {
315
+ summary: string;
316
+ success: boolean;
317
+ agent_loop_action_result_type: "sub_agent_completed";
318
+ } | {
319
+ message: string;
320
+ agent_loop_action_result_type: "sub_agent_failed";
321
+ } | {
322
+ message: string;
323
+ agent_loop_action_result_type: "message_sent";
324
+ } | {
325
+ package_name: ProgramPackageName;
326
+ agent_loop_action_result_type: "program_created";
327
+ } | {
328
+ path: string;
329
+ content: string;
330
+ agent_loop_action_result_type: "file_read";
331
+ } | {
332
+ files: string[];
333
+ agent_loop_action_result_type: "files_listed";
334
+ } | {
335
+ path: string;
336
+ agent_loop_action_result_type: "file_deleted";
337
+ } | {
338
+ files: string[];
339
+ agent_loop_action_result_type: "files_copied";
340
+ } | {
341
+ message: string;
342
+ agent_loop_action_result_type: "operation_failed";
343
+ };
344
+ type WikiLearningsUpdate = {
345
+ started: {};
346
+ } | {
347
+ completed: {
348
+ llm_usage?: LlmUsage[];
349
+ learning_suggestion?: LearningSuggestion | null;
350
+ };
351
+ };
352
+ type InteractionOutcome = {
353
+ completed: {
354
+ /**
355
+ * Any warnings generated during processing
356
+ */
357
+ warnings?: Warning[];
358
+ };
359
+ } | {
360
+ errored: {
361
+ /**
362
+ * The error that occured
363
+ */
364
+ raw_error: string;
365
+ /**
366
+ * The user-facing error message
367
+ */
368
+ user_facing_message: string;
369
+ };
370
+ } | {
371
+ user_cancelled: {};
372
+ } | {
373
+ server_cancelled: {};
374
+ };
62
375
  /**
63
376
  * Updates sent by the agent during processing of a user interaction
64
377
  *
@@ -123,7 +436,10 @@ type MessageProcessingUpdate = {
123
436
  } | {
124
437
  InteractionDecision: {
125
438
  /**
126
- * The decision made by the agent
439
+ * The agent's decision on whether to process a user interaction
440
+ *
441
+ * After receiving a user message, the agent first decides whether it should
442
+ * respond based on various factors like chat context and explicit mentions.
127
443
  */
128
444
  decision: {
129
445
  DeclineInteraction: {
@@ -134,7 +450,7 @@ type MessageProcessingUpdate = {
134
450
  /**
135
451
  * Why the interaction was declined
136
452
  */
137
- reason: "MultipleUsersAndNoPromptQlMention";
453
+ reason: "MultipleUsersAndNoPromptQlMention" | "UserRequestedSkip";
138
454
  };
139
455
  } | {
140
456
  AcceptInteraction: {
@@ -576,15 +892,6 @@ type ContextExplorerUpdate = {
576
892
  completed_at: string;
577
893
  };
578
894
  };
579
- type ArtifactType = "text" | "table" | "visualization" | "html" | "file";
580
- type ArtifactPreview = {
581
- Table: {
582
- total_row_count: number;
583
- preview_rows: {
584
- [k: string]: unknown;
585
- }[];
586
- };
587
- };
588
895
  type SchemaTasksGenerationUpdate = {
589
896
  Started: {
590
897
  started_at: string;
@@ -1113,7 +1420,7 @@ type InteractionFinishedUpdate = {
1113
1420
  /**
1114
1421
  * Why the interaction was declined
1115
1422
  */
1116
- reason: "MultipleUsersAndNoPromptQlMention";
1423
+ reason: "MultipleUsersAndNoPromptQlMention" | "UserRequestedSkip";
1117
1424
  };
1118
1425
  };
1119
1426
  type TeachingId = string;
@@ -1211,31 +1518,6 @@ type SocialFeedRatingUpdate = {
1211
1518
  llm_usage?: SocialFeedRatingLlmUsage | null;
1212
1519
  };
1213
1520
  };
1214
- /**
1215
- * The agent's decision on whether to process a user interaction
1216
- *
1217
- * After receiving a user message, the agent first decides whether it should
1218
- * respond based on various factors like chat context and explicit mentions.
1219
- */
1220
- type InteractionDecisionUpdate = {
1221
- DeclineInteraction: {
1222
- /**
1223
- * When the decision was made
1224
- */
1225
- declined_at: string;
1226
- /**
1227
- * Why the interaction was declined
1228
- */
1229
- reason: "MultipleUsersAndNoPromptQlMention";
1230
- };
1231
- } | {
1232
- AcceptInteraction: {
1233
- /**
1234
- * When the decision was made
1235
- */
1236
- accepted_at: string;
1237
- };
1238
- };
1239
1521
  type WikiExplorerState = "NotStarted" | {
1240
1522
  Started: {
1241
1523
  started_at: string;
@@ -1466,11 +1748,6 @@ type ProgramRunnerAction2 = {
1466
1748
  * A step in the execution pipeline
1467
1749
  */
1468
1750
  type Step = PythonStep | SqlStep | UiBuildStep | PipelineStep;
1469
- /**
1470
- * Program Package Name is the unique name for a program within a project that usable from code
1471
- * Follows the database constraint: ^[a-z][a-z0-9_]*$
1472
- */
1473
- type ProgramPackageName = string;
1474
1751
  /**
1475
1752
  * Data source configuration
1476
1753
  */
@@ -1617,7 +1894,7 @@ type ResponseGenerationState = "NotStarted" | {
1617
1894
  completed_at: string;
1618
1895
  };
1619
1896
  };
1620
- type InteractionOutcome = {
1897
+ type InteractionOutcome2 = {
1621
1898
  Completed: {
1622
1899
  completed_at: string;
1623
1900
  warnings: Warning[];
@@ -1657,7 +1934,7 @@ type InteractionError = "Internal" | {
1657
1934
  /**
1658
1935
  * Reasons why an agent might decline to process a user interaction
1659
1936
  */
1660
- type InteractionDeclineReason = "MultipleUsersAndNoPromptQlMention";
1937
+ type InteractionDeclineReason = "MultipleUsersAndNoPromptQlMention" | "UserRequestedSkip";
1661
1938
  type ConfidenceAnalysisOutcome = {
1662
1939
  Completed: {
1663
1940
  completed_at: string;
@@ -1789,6 +2066,10 @@ interface UserMessage {
1789
2066
  message: string;
1790
2067
  uploads: UserUpload[];
1791
2068
  timezone: string;
2069
+ /**
2070
+ * Controls whether the agent should respond to this message.
2071
+ */
2072
+ agent_response_config?: "agent_decides" | "force_respond" | "force_skip";
1792
2073
  }
1793
2074
  /**
1794
2075
  * A file or data artifact uploaded by a user as part of their message
@@ -1807,6 +2088,10 @@ interface ArtifactReference {
1807
2088
  artifact_id: ArtifactId;
1808
2089
  version: number;
1809
2090
  }
2091
+ interface VersionedAgentUpdate {
2092
+ timestamp: string;
2093
+ content: AgentUpdateContent;
2094
+ }
1810
2095
  /**
1811
2096
  * Language model usage statistics
1812
2097
  *
@@ -1843,6 +2128,39 @@ interface LlmUsage {
1843
2128
  */
1844
2129
  thinking_tokens?: number;
1845
2130
  }
2131
+ /**
2132
+ * A single file entry in a `CopyFiles` action, supporting rename on copy.
2133
+ */
2134
+ interface CopyFileEntry {
2135
+ source_path: string;
2136
+ target_path: string;
2137
+ }
2138
+ interface ArtifactUpdate {
2139
+ identifier: string;
2140
+ title: string;
2141
+ artifact_type: ArtifactType;
2142
+ data?: ArtifactPreview | null;
2143
+ artifact_reference: ArtifactReference1;
2144
+ }
2145
+ interface ArtifactReference1 {
2146
+ artifact_id: ArtifactId;
2147
+ version: number;
2148
+ }
2149
+ interface LearningSuggestion {
2150
+ learnings_markdown: string;
2151
+ }
2152
+ /**
2153
+ * A warning message generated during agent processing
2154
+ *
2155
+ * Warnings indicate potential issues or important information that doesn't
2156
+ * prevent the interaction from completing but should be brought to the user's attention.
2157
+ */
2158
+ interface Warning {
2159
+ /**
2160
+ * The warning message to display to the user
2161
+ */
2162
+ message: string;
2163
+ }
1846
2164
  /**
1847
2165
  * A segment of processed user message text with associated metadata
1848
2166
  *
@@ -1957,17 +2275,6 @@ interface ExternalKnowledgeSummary {
1957
2275
  */
1958
2276
  success: boolean;
1959
2277
  }
1960
- interface ArtifactUpdate {
1961
- identifier: string;
1962
- title: string;
1963
- artifact_type: ArtifactType;
1964
- data?: ArtifactPreview | null;
1965
- artifact_reference: ArtifactReference1;
1966
- }
1967
- interface ArtifactReference1 {
1968
- artifact_id: ArtifactId;
1969
- version: number;
1970
- }
1971
2278
  /**
1972
2279
  * The executed attempt with output/error populated
1973
2280
  */
@@ -2441,21 +2748,6 @@ interface WikiSection {
2441
2748
  */
2442
2749
  content: WikiContent;
2443
2750
  }
2444
- interface LearningSuggestion {
2445
- learnings_markdown: string;
2446
- }
2447
- /**
2448
- * A warning message generated during agent processing
2449
- *
2450
- * Warnings indicate potential issues or important information that doesn't
2451
- * prevent the interaction from completing but should be brought to the user's attention.
2452
- */
2453
- interface Warning {
2454
- /**
2455
- * The warning message to display to the user
2456
- */
2457
- message: string;
2458
- }
2459
2751
  /**
2460
2752
  * A request from a user to cancel a running agent interaction
2461
2753
  */
@@ -2520,7 +2812,7 @@ interface AgentInteraction {
2520
2812
  planning_decision: PlanningDecisionState;
2521
2813
  orchestrator: OrchestratorState;
2522
2814
  response: ResponseGenerationState;
2523
- outcome?: InteractionOutcome | null;
2815
+ outcome?: InteractionOutcome2 | null;
2524
2816
  confidence?: ConfidenceAnalysisOutcome | null;
2525
2817
  needs_support?: NeedsSupportOutcome | null;
2526
2818
  social_feed_rating?: SocialFeedRatingOutcome | null;
@@ -2768,7 +3060,8 @@ interface RunConfigV1 {
2768
3060
  */
2769
3061
  interface Dependency {
2770
3062
  /**
2771
- * The package name of the program to depend on
3063
+ * Program Package Name is the unique name for a program within a project that usable from code
3064
+ * Follows the database constraint: ^[a-z][a-z0-9_]*$
2772
3065
  */
2773
3066
  program: string;
2774
3067
  }
@@ -4830,6 +5123,10 @@ type StreamThreadEventOptions = {
4830
5123
  * Filter events by message ID.
4831
5124
  */
4832
5125
  messageId?: string | null;
5126
+ /**
5127
+ * Stop right after the agent responds and skip post analysis events.
5128
+ */
5129
+ skipAnalysis?: boolean;
4833
5130
  };
4834
5131
 
4835
5132
  /**
@@ -5129,4 +5426,4 @@ declare function getAgentOrchestratorStepUiProgrammerEvent(eventData: ThreadEven
5129
5426
  */
5130
5427
  declare function getAgentOrchestratorStepSavedProgramRunnerEvent(eventData: ThreadEvent$1): SavedProgramRunnerUpdate | null;
5131
5428
 
5132
- export { type AgentInteraction, type AgentLearningUpdate, type AgentState, type AgentUpdate, type AllTheServerTypes, type AnalyzedCodeAction, type AnalyzedCodeAction2, type ApolloClientOptions, type ArtifactError, type ArtifactErrorV1, type ArtifactId, type ArtifactPreview, type ArtifactReference, type ArtifactReference1, type ArtifactReference2, type ArtifactState, type ArtifactType, type ArtifactType2, type ArtifactUpdate, type ArtifactUpdate1, type AssumptionFactCheck, type BuildError, type BuildErrorV1, type BuiltUi, type BuiltUi1, type CancelAgentMessageMutationVariables, type CheckedAssumption, type CheckedTopic, type CodeAction, type CodeAction2, type CodeBlock, type CodeError, type CodeErrorV1, type CodeExecutionComplete, type CodeOutputAnalysis, type CodeOutputAnalysis1, type CodeOutputAnalyzed, type ComponentResponse, type ComponentResponse1, type ComponentResponse2, type ComponentResponse3, type ComponentResponse4, type ComponentResponse5, type ConfidenceAnalysis, type ConfidenceAnalysis1, type ConfidenceAnalysisLlmUsage, type ConfidenceAnalysisOutcome, type ConfidenceAnalysisUpdate, type ContextExplorerCompleted, type ContextExplorerStarted, type ContextExplorerState, type ContextExplorerUpdate, type CurrentAction, type DataArtifactUpdated, type DataArtifactUpdatedV1, type Dependency, type EventOfKind, type ExternalKnowledgeExplorerAttempt, type ExternalKnowledgeExplorerAttempt1, type ExternalKnowledgeExplorerAttempt2, type ExternalKnowledgeExplorerState, type ExternalKnowledgeSummary, type ExternalKnowledgeTaskGeneratorState, type FactSource, type GeneratedCode, type GeneratedFile, type GeneratedFile2, type GeneratedProgramRunnerOutput, type GeneratedResponse, type GeneratedUiCode, type GeneratedUiCode1, type GetThreadEventOptions, type GetThreadsQueryVariables, type IPromptQLSdk, type Interaction, type InteractionDecision, type InteractionDecisionAccept, type InteractionDecisionDecline, type InteractionDecisionUpdate, type InteractionDeclineReason, type InteractionError, type InteractionFinishedUpdate, type InteractionOutcome, type InternalError, type InternalErrorV1, type InternalUpdate, type KeysOfUnion, type LearningSuggestion, type LearningSuggestionOutcome, type LearningSuggestionUpdate, type LearningSuggestionUpdateV1, type LlmUsage, type MessageProcessingStarted, type MessageProcessingState, type MessageProcessingUpdate, type NeedsSupportAnalysis, type NeedsSupportOutcome, type NeedsSupportUpdate, type OrchestratorState, type OrchestratorUpdate, type Order_By, type OutputEmitted, type OutputEmittedV1, type PipelineColumn, type PipelineColumnType, type PipelinePartitionSpec, type PipelinePartitionTransform, type PipelineProgress, type PipelineProgressV1, type PipelineRunStepDetails, type PipelineSchema, type PipelineSink, type PipelineSource, type PipelineStep, type PipelineTransform, type PlanGenerationStarted, type PlanState, type PlanStateStep, type PlanStepGenerated, type PlanningDecisionCompleted, type PlanningDecisionPlanningRequired, type PlanningDecisionStarted, type PlanningDecisionState, type PlanningDecisionUpdate, type ProgramId, type ProgramPackageName, type ProgramRunEvent, type ProgramRunResult, type ProgramRunnerAction, type ProgramRunnerAction2, type ProgramRunnerActionResult, type ProgramRunnerAttempt, type ProgramTransform, type ProgrammerState, type ProgrammerUpdate, PromptQLSdk, type PromptQLSdkOptions, type PromptQlConfigFeatureFlagModel, type PromptQlUserId, type PythonRunStepDetails, type PythonStep, type ResponseGenerationState, type ResponseGenerationUpdate, type RunConfigV1, type RunFinished, type RunFinishedOutcome, type RunFinishedV1, type RunProgramRequest, type RunProgramRequest2, type RunSavedProgramRequest, type RunSavedProgramRequest2, type RunStarted, type RunStartedV1, type RunStepDetails, type SavedProgramRunnerStage, type SavedProgramRunnerState, type SavedProgramRunnerUpdate, type SavedProgramRunnerUpdateV0, type SchemaContext, type SchemaContext1, type SchemaExplored, type SchemaExplorerCompleted, type SchemaExplorerStarted, type SchemaExplorerState, type SchemaExplorerUpdate, type SchemaTask, type SchemaTasksGenerationCompleted, type SchemaTasksGenerationStarted, type SchemaTasksGenerationState, type SchemaTasksGenerationUpdate, type SendMessageToThreadArguments, type SendMessageToThreadOutput, type SendThreadMessageMutationVariables, type ShelfActionEvent, type ShelfSink, type ShelfUpdate, type ShelfUpdateV1, type SocialFeedRating, type SocialFeedRatingLlmUsage, type SocialFeedRatingOutcome, type SocialFeedRatingUpdate, type Span, type SqlError, type SqlErrorV1, type SqlRunStepDetails, type SqlSource, type SqlStep, type StartThreadArguments, type StartThreadMutationVariables, type StartThreadOutput, type StartingOrchestrator, type Step, type StepExecutionFinished, type StepExecutionFinishedV1, type StepExecutionStarted, type StepExecutionStartedV1, type StepState, type StepUpdate, type StreamThreadEventOptions, type SummaryAction, type TasksGenerated, type Teaching, type TeachingId, type TeachingOutcome, type TeachingState, type ThreadEvent, type ThreadEvent$1 as ThreadEventData, type ThreadFragment, type ThreadParticipants, type TransactionId, type UiBuild, type UiBuild2, type UiBuildFailure, type UiBuildResult, type UiBuildRunStepDetails, type UiBuildStep, type UiMetadata, type UiProgrammerState, type UiProgrammerUpdate, type UserCancel, type UserCancelEvent, type UserInteraction, type UserMessage, type UserMessageEvent, type UserUpload, type UserUploadMetadata, type Version, type Warning, type WikiChange, type WikiContent, type WikiDelta, type WikiExplorerCompleted, type WikiExplorerStarted, type WikiExplorerState, type WikiExplorerUpdate, type WikiGenerationOutcome, type WikiGenerationUpdate, type WikiInfoGenerated, type WikiPageV1, type WikiSection, type WikiTitle, cancelAgentMessage, createApolloClient, createPromptQLAuthTokenGenerator, diffThreadEvents, getAgentGeneratedResponse, getAgentInteractionDecisionAcceptInteractionEvent, getAgentInteractionDecisionDeclineInteractionEvent, getAgentMessageProcessingStartedEvent, getAgentOrchestratorContextExplorerCompletedEvent, getAgentOrchestratorContextExplorerStartedEvent, getAgentOrchestratorContextExplorerUpdateEvent, getAgentOrchestratorSchemaExplorerCodeExecutionCompleteEvent, getAgentOrchestratorSchemaExplorerCodeOutputAnalyzedEvent, getAgentOrchestratorSchemaExplorerCompletedEvent, getAgentOrchestratorSchemaExplorerGeneratedCodeEvent, getAgentOrchestratorSchemaExplorerSchemaExploredEvent, getAgentOrchestratorSchemaExplorerStartedEvent, getAgentOrchestratorSchemaExplorerUpdateEvent, getAgentOrchestratorSchemaTasksGeneratedEvent, getAgentOrchestratorSchemaTasksGenerationCompletedEvent, getAgentOrchestratorSchemaTasksGenerationStartedEvent, getAgentOrchestratorSchemaTasksGenerationUpdateEvent, getAgentOrchestratorStepProgrammerEvent, getAgentOrchestratorStepSavedProgramRunnerEvent, getAgentOrchestratorStepUiProgrammerEvent, getAgentOrchestratorStepUpdateEvent, getAgentOrchestratorUpdateEvent, getAgentOrchestratorWikiExplorerCompletedEvent, getAgentOrchestratorWikiExplorerStartedEvent, getAgentOrchestratorWikiExplorerUpdateEvent, getAgentOrchestratorWikiInfoGeneratedEvent, getAgentPlanGenerationStartedEvent, getAgentPlanStepGeneratedEvent, getAgentPlanningDecisionCompletedEvent, getAgentPlanningDecisionPlanningRequiredEvent, getAgentPlanningDecisionStartedEvent, getAgentPlanningDecisionUpdateEvent, getAgentStartingOrchestratorEvent, getThread, getThreadEvents, getUserCancelEvent, getUserMessageEvent, listThreads, sendThreadMessage, startThread, streamThreadMessageEvents, subscribeThreadEvents };
5429
+ export { type AgentInteraction, type AgentLearningUpdate, type AgentLoopAction, type AgentLoopActionResult, type AgentLoopActionUpdate, type AgentLoopUpdate, type AgentLoopUpdateV1, type AgentState, type AgentUpdate, type AgentUpdateContent, type AllTheServerTypes, type AnalyzedCodeAction, type AnalyzedCodeAction2, type ApolloClientOptions, type ArtifactError, type ArtifactErrorV1, type ArtifactId, type ArtifactPreview, type ArtifactReference, type ArtifactReference1, type ArtifactReference2, type ArtifactState, type ArtifactType, type ArtifactType2, type ArtifactUpdate, type ArtifactUpdate1, type AssumptionFactCheck, type BuildError, type BuildErrorV1, type BuiltUi, type BuiltUi1, type CancelAgentMessageMutationVariables, type CheckedAssumption, type CheckedTopic, type CodeAction, type CodeAction2, type CodeBlock, type CodeError, type CodeErrorV1, type CodeExecutionComplete, type CodeOutputAnalysis, type CodeOutputAnalysis1, type CodeOutputAnalyzed, type ComponentResponse, type ComponentResponse1, type ComponentResponse2, type ComponentResponse3, type ComponentResponse4, type ComponentResponse5, type ConfidenceAnalysis, type ConfidenceAnalysis1, type ConfidenceAnalysisLlmUsage, type ConfidenceAnalysisOutcome, type ConfidenceAnalysisUpdate, type ContextExplorerCompleted, type ContextExplorerStarted, type ContextExplorerState, type ContextExplorerUpdate, type CopyFileEntry, type CurrentAction, type DataArtifactUpdated, type DataArtifactUpdatedV1, type Dependency, type EventOfKind, type ExternalKnowledgeExplorerAttempt, type ExternalKnowledgeExplorerAttempt1, type ExternalKnowledgeExplorerAttempt2, type ExternalKnowledgeExplorerState, type ExternalKnowledgeSummary, type ExternalKnowledgeTaskGeneratorState, type FactSource, type GeneratedCode, type GeneratedFile, type GeneratedFile2, type GeneratedProgramRunnerOutput, type GeneratedResponse, type GeneratedUiCode, type GeneratedUiCode1, type GetThreadEventOptions, type GetThreadsQueryVariables, type IPromptQLSdk, type Interaction, type InteractionDecision, type InteractionDecisionAccept, type InteractionDecisionDecline, type InteractionDecisionUpdate, type InteractionDeclineReason, type InteractionError, type InteractionFinishedUpdate, type InteractionOutcome, type InteractionOutcome2, type InteractionUpdate, type InternalError, type InternalErrorV1, type InternalUpdate, type KeysOfUnion, type LearningSuggestion, type LearningSuggestionOutcome, type LearningSuggestionUpdate, type LearningSuggestionUpdateV1, type LlmUsage, type MessageProcessingStarted, type MessageProcessingState, type MessageProcessingUpdate, type NeedsSupportAnalysis, type NeedsSupportOutcome, type NeedsSupportUpdate, type OrchestratorState, type OrchestratorUpdate, type Order_By, type OutputEmitted, type OutputEmittedV1, type PipelineColumn, type PipelineColumnType, type PipelinePartitionSpec, type PipelinePartitionTransform, type PipelineProgress, type PipelineProgressV1, type PipelineRunStepDetails, type PipelineSchema, type PipelineSink, type PipelineSource, type PipelineStep, type PipelineTransform, type PlanGenerationStarted, type PlanState, type PlanStateStep, type PlanStepGenerated, type PlanningDecisionCompleted, type PlanningDecisionPlanningRequired, type PlanningDecisionStarted, type PlanningDecisionState, type PlanningDecisionUpdate, type ProgramId, type ProgramPackageName, type ProgramRunEvent, type ProgramRunResult, type ProgramRunnerAction, type ProgramRunnerAction2, type ProgramRunnerActionResult, type ProgramRunnerAttempt, type ProgramTransform, type ProgrammerState, type ProgrammerUpdate, PromptQLSdk, type PromptQLSdkOptions, type PromptQlConfigFeatureFlagModel, type PromptQlUserId, type PythonRunStepDetails, type PythonStep, type ResponseGenerationState, type ResponseGenerationUpdate, type RunConfigV1, type RunFinished, type RunFinishedOutcome, type RunFinishedV1, type RunProgramRequest, type RunProgramRequest2, type RunSavedProgramRequest, type RunSavedProgramRequest2, type RunStarted, type RunStartedV1, type RunStepDetails, type SavedProgramRunnerStage, type SavedProgramRunnerState, type SavedProgramRunnerUpdate, type SavedProgramRunnerUpdateV0, type SchemaContext, type SchemaContext1, type SchemaExplored, type SchemaExplorerCompleted, type SchemaExplorerStarted, type SchemaExplorerState, type SchemaExplorerUpdate, type SchemaTask, type SchemaTasksGenerationCompleted, type SchemaTasksGenerationStarted, type SchemaTasksGenerationState, type SchemaTasksGenerationUpdate, type SendMessageToThreadArguments, type SendMessageToThreadOutput, type SendThreadMessageMutationVariables, type ShelfActionEvent, type ShelfSink, type ShelfUpdate, type ShelfUpdateV1, type SocialFeedRating, type SocialFeedRatingLlmUsage, type SocialFeedRatingOutcome, type SocialFeedRatingUpdate, type Span, type SqlError, type SqlErrorV1, type SqlRunStepDetails, type SqlSource, type SqlStep, type StartThreadArguments, type StartThreadMutationVariables, type StartThreadOutput, type StartingOrchestrator, type Step, type StepExecutionFinished, type StepExecutionFinishedV1, type StepExecutionStarted, type StepExecutionStartedV1, type StepState, type StepUpdate, type StreamThreadEventOptions, type SubAgentType, type SummaryAction, type TasksGenerated, type Teaching, type TeachingId, type TeachingOutcome, type TeachingState, type ThreadEvent, type ThreadEvent$1 as ThreadEventData, type ThreadFragment, type ThreadParticipants, type TransactionId, type UiBuild, type UiBuild2, type UiBuildFailure, type UiBuildResult, type UiBuildRunStepDetails, type UiBuildStep, type UiMetadata, type UiProgrammerState, type UiProgrammerUpdate, type UserCancel, type UserCancelEvent, type UserInteraction, type UserMessage, type UserMessageEvent, type UserUpload, type UserUploadMetadata, type Version, type VersionedAgentUpdate, type VersionedOrUnversionedAgentUpdate, type Warning, type WikiChange, type WikiContent, type WikiDelta, type WikiExplorerCompleted, type WikiExplorerStarted, type WikiExplorerState, type WikiExplorerUpdate, type WikiGenerationOutcome, type WikiGenerationUpdate, type WikiInfoGenerated, type WikiLearningsUpdate, type WikiPageV1, type WikiSection, type WikiSelectionUpdate, type WikiTitle, cancelAgentMessage, createApolloClient, createPromptQLAuthTokenGenerator, diffThreadEvents, getAgentGeneratedResponse, getAgentInteractionDecisionAcceptInteractionEvent, getAgentInteractionDecisionDeclineInteractionEvent, getAgentMessageProcessingStartedEvent, getAgentOrchestratorContextExplorerCompletedEvent, getAgentOrchestratorContextExplorerStartedEvent, getAgentOrchestratorContextExplorerUpdateEvent, getAgentOrchestratorSchemaExplorerCodeExecutionCompleteEvent, getAgentOrchestratorSchemaExplorerCodeOutputAnalyzedEvent, getAgentOrchestratorSchemaExplorerCompletedEvent, getAgentOrchestratorSchemaExplorerGeneratedCodeEvent, getAgentOrchestratorSchemaExplorerSchemaExploredEvent, getAgentOrchestratorSchemaExplorerStartedEvent, getAgentOrchestratorSchemaExplorerUpdateEvent, getAgentOrchestratorSchemaTasksGeneratedEvent, getAgentOrchestratorSchemaTasksGenerationCompletedEvent, getAgentOrchestratorSchemaTasksGenerationStartedEvent, getAgentOrchestratorSchemaTasksGenerationUpdateEvent, getAgentOrchestratorStepProgrammerEvent, getAgentOrchestratorStepSavedProgramRunnerEvent, getAgentOrchestratorStepUiProgrammerEvent, getAgentOrchestratorStepUpdateEvent, getAgentOrchestratorUpdateEvent, getAgentOrchestratorWikiExplorerCompletedEvent, getAgentOrchestratorWikiExplorerStartedEvent, getAgentOrchestratorWikiExplorerUpdateEvent, getAgentOrchestratorWikiInfoGeneratedEvent, getAgentPlanGenerationStartedEvent, getAgentPlanStepGeneratedEvent, getAgentPlanningDecisionCompletedEvent, getAgentPlanningDecisionPlanningRequiredEvent, getAgentPlanningDecisionStartedEvent, getAgentPlanningDecisionUpdateEvent, getAgentStartingOrchestratorEvent, getThread, getThreadEvents, getUserCancelEvent, getUserMessageEvent, listThreads, sendThreadMessage, startThread, streamThreadMessageEvents, subscribeThreadEvents };