rivet-design 0.17.5 → 0.18.0

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.
Files changed (225) hide show
  1. package/dist/agent-variants/SessionStore.d.ts +5 -1
  2. package/dist/agent-variants/SessionStore.d.ts.map +1 -1
  3. package/dist/agent-variants/SessionStore.js +32 -3
  4. package/dist/agent-variants/SessionStore.js.map +1 -1
  5. package/dist/agent-variants/WorktreeOrchestrator.d.ts +6 -1
  6. package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
  7. package/dist/agent-variants/WorktreeOrchestrator.js +51 -15
  8. package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
  9. package/dist/agent-variants/contracts.d.ts +2012 -108
  10. package/dist/agent-variants/contracts.d.ts.map +1 -1
  11. package/dist/agent-variants/contracts.js +10 -9
  12. package/dist/agent-variants/contracts.js.map +1 -1
  13. package/dist/agent-variants/variantContext.d.ts +6 -1
  14. package/dist/agent-variants/variantContext.d.ts.map +1 -1
  15. package/dist/agent-variants/variantContext.js +69 -1
  16. package/dist/agent-variants/variantContext.js.map +1 -1
  17. package/dist/cli/commandNames.d.ts.map +1 -1
  18. package/dist/cli/commandNames.js +1 -0
  19. package/dist/cli/commandNames.js.map +1 -1
  20. package/dist/cli/commands/mcpServe.d.ts.map +1 -1
  21. package/dist/cli/commands/mcpServe.js +95 -4
  22. package/dist/cli/commands/mcpServe.js.map +1 -1
  23. package/dist/cli/commands/profile.d.ts +3 -0
  24. package/dist/cli/commands/profile.d.ts.map +1 -0
  25. package/dist/cli/commands/profile.js +192 -0
  26. package/dist/cli/commands/profile.js.map +1 -0
  27. package/dist/cli/commands/reference.d.ts.map +1 -1
  28. package/dist/cli/commands/reference.js +4 -0
  29. package/dist/cli/commands/reference.js.map +1 -1
  30. package/dist/cli/commands/variants.d.ts.map +1 -1
  31. package/dist/cli/commands/variants.js +13 -1
  32. package/dist/cli/commands/variants.js.map +1 -1
  33. package/dist/cli/router.d.ts.map +1 -1
  34. package/dist/cli/router.js +8 -0
  35. package/dist/cli/router.js.map +1 -1
  36. package/dist/library/HubClient.d.ts +1 -0
  37. package/dist/library/HubClient.d.ts.map +1 -1
  38. package/dist/library/HubClient.js +11 -1
  39. package/dist/library/HubClient.js.map +1 -1
  40. package/dist/library/HubServer.d.ts.map +1 -1
  41. package/dist/library/HubServer.js +19 -0
  42. package/dist/library/HubServer.js.map +1 -1
  43. package/dist/routes/agentVariants.d.ts.map +1 -1
  44. package/dist/routes/agentVariants.js +126 -9
  45. package/dist/routes/agentVariants.js.map +1 -1
  46. package/dist/routes/library/app.d.ts.map +1 -1
  47. package/dist/routes/library/app.js +1 -2
  48. package/dist/routes/library/app.js.map +1 -1
  49. package/dist/routes/library/index.d.ts.map +1 -1
  50. package/dist/routes/library/index.js +3 -0
  51. package/dist/routes/library/index.js.map +1 -1
  52. package/dist/routes/library/profiles.d.ts +5 -0
  53. package/dist/routes/library/profiles.d.ts.map +1 -0
  54. package/dist/routes/library/profiles.js +182 -0
  55. package/dist/routes/library/profiles.js.map +1 -0
  56. package/dist/routes/library/schemas.d.ts +2 -2
  57. package/dist/routes/library/types.d.ts +2 -0
  58. package/dist/routes/library/types.d.ts.map +1 -1
  59. package/dist/services/IntegrationsClient.d.ts +20 -4
  60. package/dist/services/IntegrationsClient.d.ts.map +1 -1
  61. package/dist/services/IntegrationsClient.js +71 -4
  62. package/dist/services/IntegrationsClient.js.map +1 -1
  63. package/dist/services/ProjectRegistry.d.ts +2 -2
  64. package/dist/services/TelemetryService.d.ts +9 -0
  65. package/dist/services/TelemetryService.d.ts.map +1 -1
  66. package/dist/services/TelemetryService.js +11 -2
  67. package/dist/services/TelemetryService.js.map +1 -1
  68. package/dist/services/VariantGenerationService.d.ts +1 -0
  69. package/dist/services/VariantGenerationService.d.ts.map +1 -1
  70. package/dist/services/VariantGenerationService.js +31 -4
  71. package/dist/services/VariantGenerationService.js.map +1 -1
  72. package/dist/services/VariantHistoryService.d.ts +12 -0
  73. package/dist/services/VariantHistoryService.d.ts.map +1 -1
  74. package/dist/services/VariantHistoryService.js +54 -0
  75. package/dist/services/VariantHistoryService.js.map +1 -1
  76. package/dist/services/VariantRunService.d.ts +6 -0
  77. package/dist/services/VariantRunService.d.ts.map +1 -1
  78. package/dist/services/VariantRunService.js +86 -2
  79. package/dist/services/VariantRunService.js.map +1 -1
  80. package/dist/services/VariantsRuntime.d.ts.map +1 -1
  81. package/dist/services/VariantsRuntime.js +2 -0
  82. package/dist/services/VariantsRuntime.js.map +1 -1
  83. package/dist/services/profiles/DesignProfiles.d.ts +446 -0
  84. package/dist/services/profiles/DesignProfiles.d.ts.map +1 -0
  85. package/dist/services/profiles/DesignProfiles.js +552 -0
  86. package/dist/services/profiles/DesignProfiles.js.map +1 -0
  87. package/dist/services/profiles/MemoryModelService.d.ts +14 -0
  88. package/dist/services/profiles/MemoryModelService.d.ts.map +1 -0
  89. package/dist/services/profiles/MemoryModelService.js +113 -0
  90. package/dist/services/profiles/MemoryModelService.js.map +1 -0
  91. package/dist/services/profiles/MemoryRuntime.d.ts +26 -0
  92. package/dist/services/profiles/MemoryRuntime.d.ts.map +1 -0
  93. package/dist/services/profiles/MemoryRuntime.js +192 -0
  94. package/dist/services/profiles/MemoryRuntime.js.map +1 -0
  95. package/dist/services/profiles/ProfileAgent.d.ts +20 -0
  96. package/dist/services/profiles/ProfileAgent.d.ts.map +1 -0
  97. package/dist/services/profiles/ProfileAgent.js +196 -0
  98. package/dist/services/profiles/ProfileAgent.js.map +1 -0
  99. package/dist/services/profiles/ProfileAnalysis.d.ts +23 -0
  100. package/dist/services/profiles/ProfileAnalysis.d.ts.map +1 -0
  101. package/dist/services/profiles/ProfileAnalysis.js +114 -0
  102. package/dist/services/profiles/ProfileAnalysis.js.map +1 -0
  103. package/dist/services/profiles/ProfileImportSchedule.d.ts +15 -0
  104. package/dist/services/profiles/ProfileImportSchedule.d.ts.map +1 -0
  105. package/dist/services/profiles/ProfileImportSchedule.js +40 -0
  106. package/dist/services/profiles/ProfileImportSchedule.js.map +1 -0
  107. package/dist/services/profiles/ProfileImports.d.ts +47 -0
  108. package/dist/services/profiles/ProfileImports.d.ts.map +1 -0
  109. package/dist/services/profiles/ProfileImports.js +248 -0
  110. package/dist/services/profiles/ProfileImports.js.map +1 -0
  111. package/dist/services/profiles/ProfileIndex.d.ts +18 -0
  112. package/dist/services/profiles/ProfileIndex.d.ts.map +1 -0
  113. package/dist/services/profiles/ProfileIndex.js +119 -0
  114. package/dist/services/profiles/ProfileIndex.js.map +1 -0
  115. package/dist/services/profiles/ProfileMedia.d.ts +10 -0
  116. package/dist/services/profiles/ProfileMedia.d.ts.map +1 -0
  117. package/dist/services/profiles/ProfileMedia.js +76 -0
  118. package/dist/services/profiles/ProfileMedia.js.map +1 -0
  119. package/dist/services/profiles/ProfilePreparation.d.ts +17 -0
  120. package/dist/services/profiles/ProfilePreparation.d.ts.map +1 -0
  121. package/dist/services/profiles/ProfilePreparation.js +214 -0
  122. package/dist/services/profiles/ProfilePreparation.js.map +1 -0
  123. package/dist/services/profiles/ProfileVariants.d.ts +33 -0
  124. package/dist/services/profiles/ProfileVariants.d.ts.map +1 -0
  125. package/dist/services/profiles/ProfileVariants.js +129 -0
  126. package/dist/services/profiles/ProfileVariants.js.map +1 -0
  127. package/dist/services/profiles/analysisBatch.d.ts +53 -0
  128. package/dist/services/profiles/analysisBatch.d.ts.map +1 -0
  129. package/dist/services/profiles/analysisBatch.js +86 -0
  130. package/dist/services/profiles/analysisBatch.js.map +1 -0
  131. package/dist/services/profiles/boardPage.d.ts +12 -0
  132. package/dist/services/profiles/boardPage.d.ts.map +1 -0
  133. package/dist/services/profiles/boardPage.js +156 -0
  134. package/dist/services/profiles/boardPage.js.map +1 -0
  135. package/dist/services/profiles/engineAccess.d.ts +2 -0
  136. package/dist/services/profiles/engineAccess.d.ts.map +1 -0
  137. package/dist/services/profiles/engineAccess.js +55 -0
  138. package/dist/services/profiles/engineAccess.js.map +1 -0
  139. package/dist/services/profiles/memoryComponents.d.ts +7 -0
  140. package/dist/services/profiles/memoryComponents.d.ts.map +1 -0
  141. package/dist/services/profiles/memoryComponents.js +105 -0
  142. package/dist/services/profiles/memoryComponents.js.map +1 -0
  143. package/dist/services/profiles/modelContract.d.ts +14 -0
  144. package/dist/services/profiles/modelContract.d.ts.map +1 -0
  145. package/dist/services/profiles/modelContract.js +124 -0
  146. package/dist/services/profiles/modelContract.js.map +1 -0
  147. package/dist/services/profiles/nativeImages.d.ts +3 -0
  148. package/dist/services/profiles/nativeImages.d.ts.map +1 -0
  149. package/dist/services/profiles/nativeImages.js +72 -0
  150. package/dist/services/profiles/nativeImages.js.map +1 -0
  151. package/dist/services/profiles/profileAccount.d.ts +4 -0
  152. package/dist/services/profiles/profileAccount.d.ts.map +1 -0
  153. package/dist/services/profiles/profileAccount.js +21 -0
  154. package/dist/services/profiles/profileAccount.js.map +1 -0
  155. package/dist/services/profiles/profileContext.d.ts +18 -0
  156. package/dist/services/profiles/profileContext.d.ts.map +1 -0
  157. package/dist/services/profiles/profileContext.js +189 -0
  158. package/dist/services/profiles/profileContext.js.map +1 -0
  159. package/dist/services/profiles/profileEvidence.d.ts +3 -0
  160. package/dist/services/profiles/profileEvidence.d.ts.map +1 -0
  161. package/dist/services/profiles/profileEvidence.js +15 -0
  162. package/dist/services/profiles/profileEvidence.js.map +1 -0
  163. package/dist/services/profiles/profileQueries.d.ts +2 -0
  164. package/dist/services/profiles/profileQueries.d.ts.map +1 -0
  165. package/dist/services/profiles/profileQueries.js +23 -0
  166. package/dist/services/profiles/profileQueries.js.map +1 -0
  167. package/dist/services/profiles/profileSelection.d.ts +29 -0
  168. package/dist/services/profiles/profileSelection.d.ts.map +1 -0
  169. package/dist/services/profiles/profileSelection.js +43 -0
  170. package/dist/services/profiles/profileSelection.js.map +1 -0
  171. package/dist/services/profiles/xPage.d.ts +4 -0
  172. package/dist/services/profiles/xPage.d.ts.map +1 -0
  173. package/dist/services/profiles/xPage.js +58 -0
  174. package/dist/services/profiles/xPage.js.map +1 -0
  175. package/dist/services/referenceImages.d.ts +17 -0
  176. package/dist/services/referenceImages.d.ts.map +1 -0
  177. package/dist/services/referenceImages.js +138 -0
  178. package/dist/services/referenceImages.js.map +1 -0
  179. package/dist/storage/profiles/ProfileRecords.d.ts +199 -0
  180. package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -0
  181. package/dist/storage/profiles/ProfileRecords.js +659 -0
  182. package/dist/storage/profiles/ProfileRecords.js.map +1 -0
  183. package/dist/storage/profiles/contextReceipts.d.ts +14 -0
  184. package/dist/storage/profiles/contextReceipts.d.ts.map +1 -0
  185. package/dist/storage/profiles/contextReceipts.js +52 -0
  186. package/dist/storage/profiles/contextReceipts.js.map +1 -0
  187. package/dist/storage/profiles/migrations.d.ts +4 -0
  188. package/dist/storage/profiles/migrations.d.ts.map +1 -0
  189. package/dist/storage/profiles/migrations.js +41 -0
  190. package/dist/storage/profiles/migrations.js.map +1 -0
  191. package/dist/storage/profiles/schema.d.ts +961 -0
  192. package/dist/storage/profiles/schema.d.ts.map +1 -0
  193. package/dist/storage/profiles/schema.js +102 -0
  194. package/dist/storage/profiles/schema.js.map +1 -0
  195. package/dist/types/change-request-types.d.ts +5 -0
  196. package/dist/types/change-request-types.d.ts.map +1 -1
  197. package/dist/types/design-profile.d.ts +570 -0
  198. package/dist/types/design-profile.d.ts.map +1 -0
  199. package/dist/types/design-profile.js +127 -0
  200. package/dist/types/design-profile.js.map +1 -0
  201. package/dist/types/variant-history.d.ts +3 -0
  202. package/dist/types/variant-history.d.ts.map +1 -1
  203. package/dist/types/variant-reference.d.ts +46 -0
  204. package/dist/types/variant-reference.d.ts.map +1 -0
  205. package/dist/types/variant-reference.js +58 -0
  206. package/dist/types/variant-reference.js.map +1 -0
  207. package/dist/types/x-bookmarks.d.ts +352 -0
  208. package/dist/types/x-bookmarks.d.ts.map +1 -0
  209. package/dist/types/x-bookmarks.js +56 -0
  210. package/dist/types/x-bookmarks.js.map +1 -0
  211. package/dist/utils/ProviderRateLimit.d.ts +7 -0
  212. package/dist/utils/ProviderRateLimit.d.ts.map +1 -0
  213. package/dist/utils/ProviderRateLimit.js +36 -0
  214. package/dist/utils/ProviderRateLimit.js.map +1 -0
  215. package/dist/utils/skills/cli-guidance.d.ts +1 -1
  216. package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
  217. package/dist/utils/skills/cli-guidance.js +6 -2
  218. package/dist/utils/skills/cli-guidance.js.map +1 -1
  219. package/package.json +2 -1
  220. package/src/ui/dist/assets/{LibraryApp-x6PbzlGr.js → LibraryApp-Bu7hVbt_.js} +1 -1
  221. package/src/ui/dist/assets/main-CHyx_rEa.css +1 -0
  222. package/src/ui/dist/assets/main-CuiPb_rl.js +438 -0
  223. package/src/ui/dist/index.html +2 -2
  224. package/src/ui/dist/assets/main-BW1Odsqp.js +0 -438
  225. package/src/ui/dist/assets/main-DDQRZm89.css +0 -1
@@ -1,3 +1,4 @@
1
+ import { type VariantReference } from '../types/variant-reference';
1
2
  import { z } from 'zod/v3';
2
3
  import { ERROR_CODES, type ErrorCode } from './errors';
3
4
  export declare const STAGES: readonly ["awaiting_source_plan", "awaiting_briefs", "awaiting_approval", "work_items_ready", "waiting_for_results", "ready", "degraded", "failed", "cancelled"];
@@ -93,17 +94,48 @@ export declare const rawUserContextInputSchema: z.ZodDiscriminatedUnion<"transpo
93
94
  }, "strip", z.ZodTypeAny, {
94
95
  path: string;
95
96
  transport: "file_path";
97
+ mimeType?: string | undefined;
96
98
  label?: string | undefined;
97
99
  userIntent?: string | undefined;
98
- mimeType?: string | undefined;
99
100
  }, {
100
101
  path: string;
101
102
  transport: "file_path";
103
+ mimeType?: string | undefined;
102
104
  label?: string | undefined;
103
105
  userIntent?: string | undefined;
104
- mimeType?: string | undefined;
105
106
  }>, z.ZodObject<{
106
107
  transport: z.ZodLiteral<"upload">;
108
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
109
+ id: z.ZodString;
110
+ title: z.ZodString;
111
+ url: z.ZodEffects<z.ZodString, string, string>;
112
+ reason: z.ZodOptional<z.ZodString>;
113
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
114
+ hash: z.ZodString;
115
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ hash: string;
118
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
119
+ }, {
120
+ hash: string;
121
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
122
+ }>>>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ id: string;
125
+ url: string;
126
+ title: string;
127
+ image?: {
128
+ hash: string;
129
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
130
+ } | undefined;
131
+ reason?: string | undefined;
132
+ }, {
133
+ id: string;
134
+ url: string;
135
+ title: string;
136
+ image?: unknown;
137
+ reason?: string | undefined;
138
+ }>, "many">>;
107
139
  dataUrl: z.ZodString;
108
140
  filename: z.ZodOptional<z.ZodString>;
109
141
  label: z.ZodOptional<z.ZodString>;
@@ -113,12 +145,29 @@ export declare const rawUserContextInputSchema: z.ZodDiscriminatedUnion<"transpo
113
145
  dataUrl: string;
114
146
  label?: string | undefined;
115
147
  userIntent?: string | undefined;
148
+ references?: {
149
+ id: string;
150
+ url: string;
151
+ title: string;
152
+ image?: {
153
+ hash: string;
154
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
155
+ } | undefined;
156
+ reason?: string | undefined;
157
+ }[] | undefined;
116
158
  filename?: string | undefined;
117
159
  }, {
118
160
  transport: "upload";
119
161
  dataUrl: string;
120
162
  label?: string | undefined;
121
163
  userIntent?: string | undefined;
164
+ references?: {
165
+ id: string;
166
+ url: string;
167
+ title: string;
168
+ image?: unknown;
169
+ reason?: string | undefined;
170
+ }[] | undefined;
122
171
  filename?: string | undefined;
123
172
  }>, z.ZodObject<{
124
173
  transport: z.ZodLiteral<"directory_path">;
@@ -137,6 +186,37 @@ export declare const rawUserContextInputSchema: z.ZodDiscriminatedUnion<"transpo
137
186
  userIntent?: string | undefined;
138
187
  }>, z.ZodObject<{
139
188
  transport: z.ZodLiteral<"text">;
189
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
+ id: z.ZodString;
191
+ title: z.ZodString;
192
+ url: z.ZodEffects<z.ZodString, string, string>;
193
+ reason: z.ZodOptional<z.ZodString>;
194
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
195
+ hash: z.ZodString;
196
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ hash: string;
199
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
200
+ }, {
201
+ hash: string;
202
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
203
+ }>>>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ id: string;
206
+ url: string;
207
+ title: string;
208
+ image?: {
209
+ hash: string;
210
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
211
+ } | undefined;
212
+ reason?: string | undefined;
213
+ }, {
214
+ id: string;
215
+ url: string;
216
+ title: string;
217
+ image?: unknown;
218
+ reason?: string | undefined;
219
+ }>, "many">>;
140
220
  content: z.ZodString;
141
221
  label: z.ZodOptional<z.ZodString>;
142
222
  userIntent: z.ZodOptional<z.ZodString>;
@@ -145,11 +225,28 @@ export declare const rawUserContextInputSchema: z.ZodDiscriminatedUnion<"transpo
145
225
  transport: "text";
146
226
  label?: string | undefined;
147
227
  userIntent?: string | undefined;
228
+ references?: {
229
+ id: string;
230
+ url: string;
231
+ title: string;
232
+ image?: {
233
+ hash: string;
234
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
235
+ } | undefined;
236
+ reason?: string | undefined;
237
+ }[] | undefined;
148
238
  }, {
149
239
  content: string;
150
240
  transport: "text";
151
241
  label?: string | undefined;
152
242
  userIntent?: string | undefined;
243
+ references?: {
244
+ id: string;
245
+ url: string;
246
+ title: string;
247
+ image?: unknown;
248
+ reason?: string | undefined;
249
+ }[] | undefined;
153
250
  }>]>;
154
251
  export declare const rawUserContextSourceSchema: z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
155
252
  id: z.ZodString;
@@ -184,6 +281,37 @@ export declare const rawUserContextSourceSchema: z.ZodDiscriminatedUnion<"transp
184
281
  }>, z.ZodObject<{
185
282
  id: z.ZodString;
186
283
  transport: z.ZodLiteral<"file">;
284
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
285
+ id: z.ZodString;
286
+ title: z.ZodString;
287
+ url: z.ZodEffects<z.ZodString, string, string>;
288
+ reason: z.ZodOptional<z.ZodString>;
289
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
290
+ hash: z.ZodString;
291
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ hash: string;
294
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
295
+ }, {
296
+ hash: string;
297
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
298
+ }>>>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ id: string;
301
+ url: string;
302
+ title: string;
303
+ image?: {
304
+ hash: string;
305
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
306
+ } | undefined;
307
+ reason?: string | undefined;
308
+ }, {
309
+ id: string;
310
+ url: string;
311
+ title: string;
312
+ image?: unknown;
313
+ reason?: string | undefined;
314
+ }>, "many">>;
187
315
  path: z.ZodString;
188
316
  mimeType: z.ZodOptional<z.ZodString>;
189
317
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -193,17 +321,34 @@ export declare const rawUserContextSourceSchema: z.ZodDiscriminatedUnion<"transp
193
321
  id: string;
194
322
  path: string;
195
323
  transport: "file";
324
+ mimeType?: string | undefined;
196
325
  label?: string | undefined;
197
326
  userIntent?: string | undefined;
198
- mimeType?: string | undefined;
327
+ references?: {
328
+ id: string;
329
+ url: string;
330
+ title: string;
331
+ image?: {
332
+ hash: string;
333
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
334
+ } | undefined;
335
+ reason?: string | undefined;
336
+ }[] | undefined;
199
337
  originalFilename?: string | undefined;
200
338
  }, {
201
339
  id: string;
202
340
  path: string;
203
341
  transport: "file";
342
+ mimeType?: string | undefined;
204
343
  label?: string | undefined;
205
344
  userIntent?: string | undefined;
206
- mimeType?: string | undefined;
345
+ references?: {
346
+ id: string;
347
+ url: string;
348
+ title: string;
349
+ image?: unknown;
350
+ reason?: string | undefined;
351
+ }[] | undefined;
207
352
  originalFilename?: string | undefined;
208
353
  }>, z.ZodObject<{
209
354
  id: z.ZodString;
@@ -226,6 +371,37 @@ export declare const rawUserContextSourceSchema: z.ZodDiscriminatedUnion<"transp
226
371
  }>, z.ZodObject<{
227
372
  id: z.ZodString;
228
373
  transport: z.ZodLiteral<"text">;
374
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
375
+ id: z.ZodString;
376
+ title: z.ZodString;
377
+ url: z.ZodEffects<z.ZodString, string, string>;
378
+ reason: z.ZodOptional<z.ZodString>;
379
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
380
+ hash: z.ZodString;
381
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ hash: string;
384
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
385
+ }, {
386
+ hash: string;
387
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
388
+ }>>>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ id: string;
391
+ url: string;
392
+ title: string;
393
+ image?: {
394
+ hash: string;
395
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
396
+ } | undefined;
397
+ reason?: string | undefined;
398
+ }, {
399
+ id: string;
400
+ url: string;
401
+ title: string;
402
+ image?: unknown;
403
+ reason?: string | undefined;
404
+ }>, "many">>;
229
405
  path: z.ZodString;
230
406
  label: z.ZodOptional<z.ZodString>;
231
407
  userIntent: z.ZodOptional<z.ZodString>;
@@ -235,12 +411,29 @@ export declare const rawUserContextSourceSchema: z.ZodDiscriminatedUnion<"transp
235
411
  transport: "text";
236
412
  label?: string | undefined;
237
413
  userIntent?: string | undefined;
414
+ references?: {
415
+ id: string;
416
+ url: string;
417
+ title: string;
418
+ image?: {
419
+ hash: string;
420
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
421
+ } | undefined;
422
+ reason?: string | undefined;
423
+ }[] | undefined;
238
424
  }, {
239
425
  id: string;
240
426
  path: string;
241
427
  transport: "text";
242
428
  label?: string | undefined;
243
429
  userIntent?: string | undefined;
430
+ references?: {
431
+ id: string;
432
+ url: string;
433
+ title: string;
434
+ image?: unknown;
435
+ reason?: string | undefined;
436
+ }[] | undefined;
244
437
  }>]>;
245
438
  export declare const contextAssetInputSchema: z.ZodObject<{
246
439
  path: z.ZodString;
@@ -266,16 +459,16 @@ export declare const stagedContextAssetSchema: z.ZodObject<{
266
459
  originalFilename: string;
267
460
  sizeBytes: number;
268
461
  sha256: string;
269
- label?: string | undefined;
270
462
  mimeType?: string | undefined;
463
+ label?: string | undefined;
271
464
  }, {
272
465
  id: string;
273
466
  path: string;
274
467
  originalFilename: string;
275
468
  sizeBytes: number;
276
469
  sha256: string;
277
- label?: string | undefined;
278
470
  mimeType?: string | undefined;
471
+ label?: string | undefined;
279
472
  }>;
280
473
  export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
281
474
  source: z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
@@ -311,6 +504,37 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
311
504
  }>, z.ZodObject<{
312
505
  id: z.ZodString;
313
506
  transport: z.ZodLiteral<"file">;
507
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
508
+ id: z.ZodString;
509
+ title: z.ZodString;
510
+ url: z.ZodEffects<z.ZodString, string, string>;
511
+ reason: z.ZodOptional<z.ZodString>;
512
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
513
+ hash: z.ZodString;
514
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
515
+ }, "strip", z.ZodTypeAny, {
516
+ hash: string;
517
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
518
+ }, {
519
+ hash: string;
520
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
521
+ }>>>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ id: string;
524
+ url: string;
525
+ title: string;
526
+ image?: {
527
+ hash: string;
528
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
529
+ } | undefined;
530
+ reason?: string | undefined;
531
+ }, {
532
+ id: string;
533
+ url: string;
534
+ title: string;
535
+ image?: unknown;
536
+ reason?: string | undefined;
537
+ }>, "many">>;
314
538
  path: z.ZodString;
315
539
  mimeType: z.ZodOptional<z.ZodString>;
316
540
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -320,17 +544,34 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
320
544
  id: string;
321
545
  path: string;
322
546
  transport: "file";
547
+ mimeType?: string | undefined;
323
548
  label?: string | undefined;
324
549
  userIntent?: string | undefined;
325
- mimeType?: string | undefined;
550
+ references?: {
551
+ id: string;
552
+ url: string;
553
+ title: string;
554
+ image?: {
555
+ hash: string;
556
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
557
+ } | undefined;
558
+ reason?: string | undefined;
559
+ }[] | undefined;
326
560
  originalFilename?: string | undefined;
327
561
  }, {
328
562
  id: string;
329
563
  path: string;
330
564
  transport: "file";
565
+ mimeType?: string | undefined;
331
566
  label?: string | undefined;
332
567
  userIntent?: string | undefined;
333
- mimeType?: string | undefined;
568
+ references?: {
569
+ id: string;
570
+ url: string;
571
+ title: string;
572
+ image?: unknown;
573
+ reason?: string | undefined;
574
+ }[] | undefined;
334
575
  originalFilename?: string | undefined;
335
576
  }>, z.ZodObject<{
336
577
  id: z.ZodString;
@@ -353,6 +594,37 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
353
594
  }>, z.ZodObject<{
354
595
  id: z.ZodString;
355
596
  transport: z.ZodLiteral<"text">;
597
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
598
+ id: z.ZodString;
599
+ title: z.ZodString;
600
+ url: z.ZodEffects<z.ZodString, string, string>;
601
+ reason: z.ZodOptional<z.ZodString>;
602
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
603
+ hash: z.ZodString;
604
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ hash: string;
607
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
608
+ }, {
609
+ hash: string;
610
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
611
+ }>>>;
612
+ }, "strip", z.ZodTypeAny, {
613
+ id: string;
614
+ url: string;
615
+ title: string;
616
+ image?: {
617
+ hash: string;
618
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
619
+ } | undefined;
620
+ reason?: string | undefined;
621
+ }, {
622
+ id: string;
623
+ url: string;
624
+ title: string;
625
+ image?: unknown;
626
+ reason?: string | undefined;
627
+ }>, "many">>;
356
628
  path: z.ZodString;
357
629
  label: z.ZodOptional<z.ZodString>;
358
630
  userIntent: z.ZodOptional<z.ZodString>;
@@ -362,12 +634,29 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
362
634
  transport: "text";
363
635
  label?: string | undefined;
364
636
  userIntent?: string | undefined;
637
+ references?: {
638
+ id: string;
639
+ url: string;
640
+ title: string;
641
+ image?: {
642
+ hash: string;
643
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
644
+ } | undefined;
645
+ reason?: string | undefined;
646
+ }[] | undefined;
365
647
  }, {
366
648
  id: string;
367
649
  path: string;
368
650
  transport: "text";
369
651
  label?: string | undefined;
370
652
  userIntent?: string | undefined;
653
+ references?: {
654
+ id: string;
655
+ url: string;
656
+ title: string;
657
+ image?: unknown;
658
+ reason?: string | undefined;
659
+ }[] | undefined;
371
660
  }>]>;
372
661
  storage: z.ZodOptional<z.ZodObject<{
373
662
  sizeBytes: z.ZodOptional<z.ZodNumber>;
@@ -397,9 +686,19 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
397
686
  id: string;
398
687
  path: string;
399
688
  transport: "file";
689
+ mimeType?: string | undefined;
400
690
  label?: string | undefined;
401
691
  userIntent?: string | undefined;
402
- mimeType?: string | undefined;
692
+ references?: {
693
+ id: string;
694
+ url: string;
695
+ title: string;
696
+ image?: {
697
+ hash: string;
698
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
699
+ } | undefined;
700
+ reason?: string | undefined;
701
+ }[] | undefined;
403
702
  originalFilename?: string | undefined;
404
703
  } | {
405
704
  id: string;
@@ -413,6 +712,16 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
413
712
  transport: "text";
414
713
  label?: string | undefined;
415
714
  userIntent?: string | undefined;
715
+ references?: {
716
+ id: string;
717
+ url: string;
718
+ title: string;
719
+ image?: {
720
+ hash: string;
721
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
722
+ } | undefined;
723
+ reason?: string | undefined;
724
+ }[] | undefined;
416
725
  };
417
726
  storage?: {
418
727
  originalFilename?: string | undefined;
@@ -434,9 +743,16 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
434
743
  id: string;
435
744
  path: string;
436
745
  transport: "file";
746
+ mimeType?: string | undefined;
437
747
  label?: string | undefined;
438
748
  userIntent?: string | undefined;
439
- mimeType?: string | undefined;
749
+ references?: {
750
+ id: string;
751
+ url: string;
752
+ title: string;
753
+ image?: unknown;
754
+ reason?: string | undefined;
755
+ }[] | undefined;
440
756
  originalFilename?: string | undefined;
441
757
  } | {
442
758
  id: string;
@@ -450,6 +766,13 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
450
766
  transport: "text";
451
767
  label?: string | undefined;
452
768
  userIntent?: string | undefined;
769
+ references?: {
770
+ id: string;
771
+ url: string;
772
+ title: string;
773
+ image?: unknown;
774
+ reason?: string | undefined;
775
+ }[] | undefined;
453
776
  };
454
777
  storage?: {
455
778
  originalFilename?: string | undefined;
@@ -778,6 +1101,37 @@ export declare const variantContextBundleSchema: z.ZodObject<{
778
1101
  }>, z.ZodObject<{
779
1102
  id: z.ZodString;
780
1103
  transport: z.ZodLiteral<"file">;
1104
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1105
+ id: z.ZodString;
1106
+ title: z.ZodString;
1107
+ url: z.ZodEffects<z.ZodString, string, string>;
1108
+ reason: z.ZodOptional<z.ZodString>;
1109
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1110
+ hash: z.ZodString;
1111
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ hash: string;
1114
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1115
+ }, {
1116
+ hash: string;
1117
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1118
+ }>>>;
1119
+ }, "strip", z.ZodTypeAny, {
1120
+ id: string;
1121
+ url: string;
1122
+ title: string;
1123
+ image?: {
1124
+ hash: string;
1125
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1126
+ } | undefined;
1127
+ reason?: string | undefined;
1128
+ }, {
1129
+ id: string;
1130
+ url: string;
1131
+ title: string;
1132
+ image?: unknown;
1133
+ reason?: string | undefined;
1134
+ }>, "many">>;
781
1135
  path: z.ZodString;
782
1136
  mimeType: z.ZodOptional<z.ZodString>;
783
1137
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -787,17 +1141,34 @@ export declare const variantContextBundleSchema: z.ZodObject<{
787
1141
  id: string;
788
1142
  path: string;
789
1143
  transport: "file";
1144
+ mimeType?: string | undefined;
790
1145
  label?: string | undefined;
791
1146
  userIntent?: string | undefined;
792
- mimeType?: string | undefined;
1147
+ references?: {
1148
+ id: string;
1149
+ url: string;
1150
+ title: string;
1151
+ image?: {
1152
+ hash: string;
1153
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1154
+ } | undefined;
1155
+ reason?: string | undefined;
1156
+ }[] | undefined;
793
1157
  originalFilename?: string | undefined;
794
1158
  }, {
795
1159
  id: string;
796
1160
  path: string;
797
1161
  transport: "file";
1162
+ mimeType?: string | undefined;
798
1163
  label?: string | undefined;
799
1164
  userIntent?: string | undefined;
800
- mimeType?: string | undefined;
1165
+ references?: {
1166
+ id: string;
1167
+ url: string;
1168
+ title: string;
1169
+ image?: unknown;
1170
+ reason?: string | undefined;
1171
+ }[] | undefined;
801
1172
  originalFilename?: string | undefined;
802
1173
  }>, z.ZodObject<{
803
1174
  id: z.ZodString;
@@ -820,6 +1191,37 @@ export declare const variantContextBundleSchema: z.ZodObject<{
820
1191
  }>, z.ZodObject<{
821
1192
  id: z.ZodString;
822
1193
  transport: z.ZodLiteral<"text">;
1194
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1195
+ id: z.ZodString;
1196
+ title: z.ZodString;
1197
+ url: z.ZodEffects<z.ZodString, string, string>;
1198
+ reason: z.ZodOptional<z.ZodString>;
1199
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1200
+ hash: z.ZodString;
1201
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
1202
+ }, "strip", z.ZodTypeAny, {
1203
+ hash: string;
1204
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1205
+ }, {
1206
+ hash: string;
1207
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1208
+ }>>>;
1209
+ }, "strip", z.ZodTypeAny, {
1210
+ id: string;
1211
+ url: string;
1212
+ title: string;
1213
+ image?: {
1214
+ hash: string;
1215
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1216
+ } | undefined;
1217
+ reason?: string | undefined;
1218
+ }, {
1219
+ id: string;
1220
+ url: string;
1221
+ title: string;
1222
+ image?: unknown;
1223
+ reason?: string | undefined;
1224
+ }>, "many">>;
823
1225
  path: z.ZodString;
824
1226
  label: z.ZodOptional<z.ZodString>;
825
1227
  userIntent: z.ZodOptional<z.ZodString>;
@@ -829,12 +1231,29 @@ export declare const variantContextBundleSchema: z.ZodObject<{
829
1231
  transport: "text";
830
1232
  label?: string | undefined;
831
1233
  userIntent?: string | undefined;
1234
+ references?: {
1235
+ id: string;
1236
+ url: string;
1237
+ title: string;
1238
+ image?: {
1239
+ hash: string;
1240
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1241
+ } | undefined;
1242
+ reason?: string | undefined;
1243
+ }[] | undefined;
832
1244
  }, {
833
1245
  id: string;
834
1246
  path: string;
835
1247
  transport: "text";
836
1248
  label?: string | undefined;
837
1249
  userIntent?: string | undefined;
1250
+ references?: {
1251
+ id: string;
1252
+ url: string;
1253
+ title: string;
1254
+ image?: unknown;
1255
+ reason?: string | undefined;
1256
+ }[] | undefined;
838
1257
  }>]>, "many">;
839
1258
  rivetActions: z.ZodArray<z.ZodObject<{
840
1259
  id: z.ZodString;
@@ -1019,16 +1438,16 @@ export declare const variantContextBundleSchema: z.ZodObject<{
1019
1438
  originalFilename: string;
1020
1439
  sizeBytes: number;
1021
1440
  sha256: string;
1022
- label?: string | undefined;
1023
1441
  mimeType?: string | undefined;
1442
+ label?: string | undefined;
1024
1443
  }, {
1025
1444
  id: string;
1026
1445
  path: string;
1027
1446
  originalFilename: string;
1028
1447
  sizeBytes: number;
1029
1448
  sha256: string;
1030
- label?: string | undefined;
1031
1449
  mimeType?: string | undefined;
1450
+ label?: string | undefined;
1032
1451
  }>, "many">>;
1033
1452
  bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1034
1453
  kind: z.ZodLiteral<"global">;
@@ -1124,9 +1543,19 @@ export declare const variantContextBundleSchema: z.ZodObject<{
1124
1543
  id: string;
1125
1544
  path: string;
1126
1545
  transport: "file";
1546
+ mimeType?: string | undefined;
1127
1547
  label?: string | undefined;
1128
1548
  userIntent?: string | undefined;
1129
- mimeType?: string | undefined;
1549
+ references?: {
1550
+ id: string;
1551
+ url: string;
1552
+ title: string;
1553
+ image?: {
1554
+ hash: string;
1555
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1556
+ } | undefined;
1557
+ reason?: string | undefined;
1558
+ }[] | undefined;
1130
1559
  originalFilename?: string | undefined;
1131
1560
  } | {
1132
1561
  id: string;
@@ -1140,6 +1569,16 @@ export declare const variantContextBundleSchema: z.ZodObject<{
1140
1569
  transport: "text";
1141
1570
  label?: string | undefined;
1142
1571
  userIntent?: string | undefined;
1572
+ references?: {
1573
+ id: string;
1574
+ url: string;
1575
+ title: string;
1576
+ image?: {
1577
+ hash: string;
1578
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1579
+ } | undefined;
1580
+ reason?: string | undefined;
1581
+ }[] | undefined;
1143
1582
  })[];
1144
1583
  rivetActions: {
1145
1584
  id: string;
@@ -1190,8 +1629,8 @@ export declare const variantContextBundleSchema: z.ZodObject<{
1190
1629
  originalFilename: string;
1191
1630
  sizeBytes: number;
1192
1631
  sha256: string;
1193
- label?: string | undefined;
1194
1632
  mimeType?: string | undefined;
1633
+ label?: string | undefined;
1195
1634
  }[] | undefined;
1196
1635
  bindings?: ({
1197
1636
  kind: "global";
@@ -1235,9 +1674,16 @@ export declare const variantContextBundleSchema: z.ZodObject<{
1235
1674
  id: string;
1236
1675
  path: string;
1237
1676
  transport: "file";
1677
+ mimeType?: string | undefined;
1238
1678
  label?: string | undefined;
1239
1679
  userIntent?: string | undefined;
1240
- mimeType?: string | undefined;
1680
+ references?: {
1681
+ id: string;
1682
+ url: string;
1683
+ title: string;
1684
+ image?: unknown;
1685
+ reason?: string | undefined;
1686
+ }[] | undefined;
1241
1687
  originalFilename?: string | undefined;
1242
1688
  } | {
1243
1689
  id: string;
@@ -1251,6 +1697,13 @@ export declare const variantContextBundleSchema: z.ZodObject<{
1251
1697
  transport: "text";
1252
1698
  label?: string | undefined;
1253
1699
  userIntent?: string | undefined;
1700
+ references?: {
1701
+ id: string;
1702
+ url: string;
1703
+ title: string;
1704
+ image?: unknown;
1705
+ reason?: string | undefined;
1706
+ }[] | undefined;
1254
1707
  })[];
1255
1708
  rivetActions: {
1256
1709
  id: string;
@@ -1301,8 +1754,8 @@ export declare const variantContextBundleSchema: z.ZodObject<{
1301
1754
  originalFilename: string;
1302
1755
  sizeBytes: number;
1303
1756
  sha256: string;
1304
- label?: string | undefined;
1305
1757
  mimeType?: string | undefined;
1758
+ label?: string | undefined;
1306
1759
  }[] | undefined;
1307
1760
  bindings?: ({
1308
1761
  kind: "global";
@@ -1391,6 +1844,37 @@ export declare const projectContextExisting: z.ZodObject<{
1391
1844
  }>, z.ZodObject<{
1392
1845
  id: z.ZodString;
1393
1846
  transport: z.ZodLiteral<"file">;
1847
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1848
+ id: z.ZodString;
1849
+ title: z.ZodString;
1850
+ url: z.ZodEffects<z.ZodString, string, string>;
1851
+ reason: z.ZodOptional<z.ZodString>;
1852
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1853
+ hash: z.ZodString;
1854
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
1855
+ }, "strip", z.ZodTypeAny, {
1856
+ hash: string;
1857
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1858
+ }, {
1859
+ hash: string;
1860
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1861
+ }>>>;
1862
+ }, "strip", z.ZodTypeAny, {
1863
+ id: string;
1864
+ url: string;
1865
+ title: string;
1866
+ image?: {
1867
+ hash: string;
1868
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1869
+ } | undefined;
1870
+ reason?: string | undefined;
1871
+ }, {
1872
+ id: string;
1873
+ url: string;
1874
+ title: string;
1875
+ image?: unknown;
1876
+ reason?: string | undefined;
1877
+ }>, "many">>;
1394
1878
  path: z.ZodString;
1395
1879
  mimeType: z.ZodOptional<z.ZodString>;
1396
1880
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -1400,17 +1884,34 @@ export declare const projectContextExisting: z.ZodObject<{
1400
1884
  id: string;
1401
1885
  path: string;
1402
1886
  transport: "file";
1887
+ mimeType?: string | undefined;
1403
1888
  label?: string | undefined;
1404
1889
  userIntent?: string | undefined;
1405
- mimeType?: string | undefined;
1890
+ references?: {
1891
+ id: string;
1892
+ url: string;
1893
+ title: string;
1894
+ image?: {
1895
+ hash: string;
1896
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1897
+ } | undefined;
1898
+ reason?: string | undefined;
1899
+ }[] | undefined;
1406
1900
  originalFilename?: string | undefined;
1407
1901
  }, {
1408
1902
  id: string;
1409
1903
  path: string;
1410
1904
  transport: "file";
1905
+ mimeType?: string | undefined;
1411
1906
  label?: string | undefined;
1412
1907
  userIntent?: string | undefined;
1413
- mimeType?: string | undefined;
1908
+ references?: {
1909
+ id: string;
1910
+ url: string;
1911
+ title: string;
1912
+ image?: unknown;
1913
+ reason?: string | undefined;
1914
+ }[] | undefined;
1414
1915
  originalFilename?: string | undefined;
1415
1916
  }>, z.ZodObject<{
1416
1917
  id: z.ZodString;
@@ -1433,6 +1934,37 @@ export declare const projectContextExisting: z.ZodObject<{
1433
1934
  }>, z.ZodObject<{
1434
1935
  id: z.ZodString;
1435
1936
  transport: z.ZodLiteral<"text">;
1937
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1938
+ id: z.ZodString;
1939
+ title: z.ZodString;
1940
+ url: z.ZodEffects<z.ZodString, string, string>;
1941
+ reason: z.ZodOptional<z.ZodString>;
1942
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1943
+ hash: z.ZodString;
1944
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ hash: string;
1947
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1948
+ }, {
1949
+ hash: string;
1950
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1951
+ }>>>;
1952
+ }, "strip", z.ZodTypeAny, {
1953
+ id: string;
1954
+ url: string;
1955
+ title: string;
1956
+ image?: {
1957
+ hash: string;
1958
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1959
+ } | undefined;
1960
+ reason?: string | undefined;
1961
+ }, {
1962
+ id: string;
1963
+ url: string;
1964
+ title: string;
1965
+ image?: unknown;
1966
+ reason?: string | undefined;
1967
+ }>, "many">>;
1436
1968
  path: z.ZodString;
1437
1969
  label: z.ZodOptional<z.ZodString>;
1438
1970
  userIntent: z.ZodOptional<z.ZodString>;
@@ -1442,12 +1974,29 @@ export declare const projectContextExisting: z.ZodObject<{
1442
1974
  transport: "text";
1443
1975
  label?: string | undefined;
1444
1976
  userIntent?: string | undefined;
1977
+ references?: {
1978
+ id: string;
1979
+ url: string;
1980
+ title: string;
1981
+ image?: {
1982
+ hash: string;
1983
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
1984
+ } | undefined;
1985
+ reason?: string | undefined;
1986
+ }[] | undefined;
1445
1987
  }, {
1446
1988
  id: string;
1447
1989
  path: string;
1448
1990
  transport: "text";
1449
1991
  label?: string | undefined;
1450
1992
  userIntent?: string | undefined;
1993
+ references?: {
1994
+ id: string;
1995
+ url: string;
1996
+ title: string;
1997
+ image?: unknown;
1998
+ reason?: string | undefined;
1999
+ }[] | undefined;
1451
2000
  }>]>, "many">;
1452
2001
  rivetActions: z.ZodArray<z.ZodObject<{
1453
2002
  id: z.ZodString;
@@ -1632,16 +2181,16 @@ export declare const projectContextExisting: z.ZodObject<{
1632
2181
  originalFilename: string;
1633
2182
  sizeBytes: number;
1634
2183
  sha256: string;
1635
- label?: string | undefined;
1636
2184
  mimeType?: string | undefined;
2185
+ label?: string | undefined;
1637
2186
  }, {
1638
2187
  id: string;
1639
2188
  path: string;
1640
2189
  originalFilename: string;
1641
2190
  sizeBytes: number;
1642
2191
  sha256: string;
1643
- label?: string | undefined;
1644
2192
  mimeType?: string | undefined;
2193
+ label?: string | undefined;
1645
2194
  }>, "many">>;
1646
2195
  bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1647
2196
  kind: z.ZodLiteral<"global">;
@@ -1737,9 +2286,19 @@ export declare const projectContextExisting: z.ZodObject<{
1737
2286
  id: string;
1738
2287
  path: string;
1739
2288
  transport: "file";
2289
+ mimeType?: string | undefined;
1740
2290
  label?: string | undefined;
1741
2291
  userIntent?: string | undefined;
1742
- mimeType?: string | undefined;
2292
+ references?: {
2293
+ id: string;
2294
+ url: string;
2295
+ title: string;
2296
+ image?: {
2297
+ hash: string;
2298
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2299
+ } | undefined;
2300
+ reason?: string | undefined;
2301
+ }[] | undefined;
1743
2302
  originalFilename?: string | undefined;
1744
2303
  } | {
1745
2304
  id: string;
@@ -1753,6 +2312,16 @@ export declare const projectContextExisting: z.ZodObject<{
1753
2312
  transport: "text";
1754
2313
  label?: string | undefined;
1755
2314
  userIntent?: string | undefined;
2315
+ references?: {
2316
+ id: string;
2317
+ url: string;
2318
+ title: string;
2319
+ image?: {
2320
+ hash: string;
2321
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2322
+ } | undefined;
2323
+ reason?: string | undefined;
2324
+ }[] | undefined;
1756
2325
  })[];
1757
2326
  rivetActions: {
1758
2327
  id: string;
@@ -1803,8 +2372,8 @@ export declare const projectContextExisting: z.ZodObject<{
1803
2372
  originalFilename: string;
1804
2373
  sizeBytes: number;
1805
2374
  sha256: string;
1806
- label?: string | undefined;
1807
2375
  mimeType?: string | undefined;
2376
+ label?: string | undefined;
1808
2377
  }[] | undefined;
1809
2378
  bindings?: ({
1810
2379
  kind: "global";
@@ -1848,9 +2417,16 @@ export declare const projectContextExisting: z.ZodObject<{
1848
2417
  id: string;
1849
2418
  path: string;
1850
2419
  transport: "file";
2420
+ mimeType?: string | undefined;
1851
2421
  label?: string | undefined;
1852
2422
  userIntent?: string | undefined;
1853
- mimeType?: string | undefined;
2423
+ references?: {
2424
+ id: string;
2425
+ url: string;
2426
+ title: string;
2427
+ image?: unknown;
2428
+ reason?: string | undefined;
2429
+ }[] | undefined;
1854
2430
  originalFilename?: string | undefined;
1855
2431
  } | {
1856
2432
  id: string;
@@ -1864,6 +2440,13 @@ export declare const projectContextExisting: z.ZodObject<{
1864
2440
  transport: "text";
1865
2441
  label?: string | undefined;
1866
2442
  userIntent?: string | undefined;
2443
+ references?: {
2444
+ id: string;
2445
+ url: string;
2446
+ title: string;
2447
+ image?: unknown;
2448
+ reason?: string | undefined;
2449
+ }[] | undefined;
1867
2450
  })[];
1868
2451
  rivetActions: {
1869
2452
  id: string;
@@ -1914,8 +2497,8 @@ export declare const projectContextExisting: z.ZodObject<{
1914
2497
  originalFilename: string;
1915
2498
  sizeBytes: number;
1916
2499
  sha256: string;
1917
- label?: string | undefined;
1918
2500
  mimeType?: string | undefined;
2501
+ label?: string | undefined;
1919
2502
  }[] | undefined;
1920
2503
  bindings?: ({
1921
2504
  kind: "global";
@@ -1971,9 +2554,19 @@ export declare const projectContextExisting: z.ZodObject<{
1971
2554
  id: string;
1972
2555
  path: string;
1973
2556
  transport: "file";
2557
+ mimeType?: string | undefined;
1974
2558
  label?: string | undefined;
1975
2559
  userIntent?: string | undefined;
1976
- mimeType?: string | undefined;
2560
+ references?: {
2561
+ id: string;
2562
+ url: string;
2563
+ title: string;
2564
+ image?: {
2565
+ hash: string;
2566
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2567
+ } | undefined;
2568
+ reason?: string | undefined;
2569
+ }[] | undefined;
1977
2570
  originalFilename?: string | undefined;
1978
2571
  } | {
1979
2572
  id: string;
@@ -1987,6 +2580,16 @@ export declare const projectContextExisting: z.ZodObject<{
1987
2580
  transport: "text";
1988
2581
  label?: string | undefined;
1989
2582
  userIntent?: string | undefined;
2583
+ references?: {
2584
+ id: string;
2585
+ url: string;
2586
+ title: string;
2587
+ image?: {
2588
+ hash: string;
2589
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2590
+ } | undefined;
2591
+ reason?: string | undefined;
2592
+ }[] | undefined;
1990
2593
  })[];
1991
2594
  rivetActions: {
1992
2595
  id: string;
@@ -2037,8 +2640,8 @@ export declare const projectContextExisting: z.ZodObject<{
2037
2640
  originalFilename: string;
2038
2641
  sizeBytes: number;
2039
2642
  sha256: string;
2040
- label?: string | undefined;
2041
2643
  mimeType?: string | undefined;
2644
+ label?: string | undefined;
2042
2645
  }[] | undefined;
2043
2646
  bindings?: ({
2044
2647
  kind: "global";
@@ -2094,9 +2697,16 @@ export declare const projectContextExisting: z.ZodObject<{
2094
2697
  id: string;
2095
2698
  path: string;
2096
2699
  transport: "file";
2700
+ mimeType?: string | undefined;
2097
2701
  label?: string | undefined;
2098
2702
  userIntent?: string | undefined;
2099
- mimeType?: string | undefined;
2703
+ references?: {
2704
+ id: string;
2705
+ url: string;
2706
+ title: string;
2707
+ image?: unknown;
2708
+ reason?: string | undefined;
2709
+ }[] | undefined;
2100
2710
  originalFilename?: string | undefined;
2101
2711
  } | {
2102
2712
  id: string;
@@ -2110,6 +2720,13 @@ export declare const projectContextExisting: z.ZodObject<{
2110
2720
  transport: "text";
2111
2721
  label?: string | undefined;
2112
2722
  userIntent?: string | undefined;
2723
+ references?: {
2724
+ id: string;
2725
+ url: string;
2726
+ title: string;
2727
+ image?: unknown;
2728
+ reason?: string | undefined;
2729
+ }[] | undefined;
2113
2730
  })[];
2114
2731
  rivetActions: {
2115
2732
  id: string;
@@ -2160,8 +2777,8 @@ export declare const projectContextExisting: z.ZodObject<{
2160
2777
  originalFilename: string;
2161
2778
  sizeBytes: number;
2162
2779
  sha256: string;
2163
- label?: string | undefined;
2164
2780
  mimeType?: string | undefined;
2781
+ label?: string | undefined;
2165
2782
  }[] | undefined;
2166
2783
  bindings?: ({
2167
2784
  kind: "global";
@@ -2254,6 +2871,37 @@ export declare const projectContextFresh: z.ZodObject<{
2254
2871
  }>, z.ZodObject<{
2255
2872
  id: z.ZodString;
2256
2873
  transport: z.ZodLiteral<"file">;
2874
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
2875
+ id: z.ZodString;
2876
+ title: z.ZodString;
2877
+ url: z.ZodEffects<z.ZodString, string, string>;
2878
+ reason: z.ZodOptional<z.ZodString>;
2879
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
2880
+ hash: z.ZodString;
2881
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
2882
+ }, "strip", z.ZodTypeAny, {
2883
+ hash: string;
2884
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2885
+ }, {
2886
+ hash: string;
2887
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2888
+ }>>>;
2889
+ }, "strip", z.ZodTypeAny, {
2890
+ id: string;
2891
+ url: string;
2892
+ title: string;
2893
+ image?: {
2894
+ hash: string;
2895
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2896
+ } | undefined;
2897
+ reason?: string | undefined;
2898
+ }, {
2899
+ id: string;
2900
+ url: string;
2901
+ title: string;
2902
+ image?: unknown;
2903
+ reason?: string | undefined;
2904
+ }>, "many">>;
2257
2905
  path: z.ZodString;
2258
2906
  mimeType: z.ZodOptional<z.ZodString>;
2259
2907
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -2263,17 +2911,34 @@ export declare const projectContextFresh: z.ZodObject<{
2263
2911
  id: string;
2264
2912
  path: string;
2265
2913
  transport: "file";
2914
+ mimeType?: string | undefined;
2266
2915
  label?: string | undefined;
2267
2916
  userIntent?: string | undefined;
2268
- mimeType?: string | undefined;
2917
+ references?: {
2918
+ id: string;
2919
+ url: string;
2920
+ title: string;
2921
+ image?: {
2922
+ hash: string;
2923
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2924
+ } | undefined;
2925
+ reason?: string | undefined;
2926
+ }[] | undefined;
2269
2927
  originalFilename?: string | undefined;
2270
2928
  }, {
2271
2929
  id: string;
2272
2930
  path: string;
2273
2931
  transport: "file";
2932
+ mimeType?: string | undefined;
2274
2933
  label?: string | undefined;
2275
2934
  userIntent?: string | undefined;
2276
- mimeType?: string | undefined;
2935
+ references?: {
2936
+ id: string;
2937
+ url: string;
2938
+ title: string;
2939
+ image?: unknown;
2940
+ reason?: string | undefined;
2941
+ }[] | undefined;
2277
2942
  originalFilename?: string | undefined;
2278
2943
  }>, z.ZodObject<{
2279
2944
  id: z.ZodString;
@@ -2296,6 +2961,37 @@ export declare const projectContextFresh: z.ZodObject<{
2296
2961
  }>, z.ZodObject<{
2297
2962
  id: z.ZodString;
2298
2963
  transport: z.ZodLiteral<"text">;
2964
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
2965
+ id: z.ZodString;
2966
+ title: z.ZodString;
2967
+ url: z.ZodEffects<z.ZodString, string, string>;
2968
+ reason: z.ZodOptional<z.ZodString>;
2969
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
2970
+ hash: z.ZodString;
2971
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
2972
+ }, "strip", z.ZodTypeAny, {
2973
+ hash: string;
2974
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2975
+ }, {
2976
+ hash: string;
2977
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2978
+ }>>>;
2979
+ }, "strip", z.ZodTypeAny, {
2980
+ id: string;
2981
+ url: string;
2982
+ title: string;
2983
+ image?: {
2984
+ hash: string;
2985
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
2986
+ } | undefined;
2987
+ reason?: string | undefined;
2988
+ }, {
2989
+ id: string;
2990
+ url: string;
2991
+ title: string;
2992
+ image?: unknown;
2993
+ reason?: string | undefined;
2994
+ }>, "many">>;
2299
2995
  path: z.ZodString;
2300
2996
  label: z.ZodOptional<z.ZodString>;
2301
2997
  userIntent: z.ZodOptional<z.ZodString>;
@@ -2305,12 +3001,29 @@ export declare const projectContextFresh: z.ZodObject<{
2305
3001
  transport: "text";
2306
3002
  label?: string | undefined;
2307
3003
  userIntent?: string | undefined;
3004
+ references?: {
3005
+ id: string;
3006
+ url: string;
3007
+ title: string;
3008
+ image?: {
3009
+ hash: string;
3010
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
3011
+ } | undefined;
3012
+ reason?: string | undefined;
3013
+ }[] | undefined;
2308
3014
  }, {
2309
3015
  id: string;
2310
3016
  path: string;
2311
3017
  transport: "text";
2312
3018
  label?: string | undefined;
2313
3019
  userIntent?: string | undefined;
3020
+ references?: {
3021
+ id: string;
3022
+ url: string;
3023
+ title: string;
3024
+ image?: unknown;
3025
+ reason?: string | undefined;
3026
+ }[] | undefined;
2314
3027
  }>]>, "many">;
2315
3028
  rivetActions: z.ZodArray<z.ZodObject<{
2316
3029
  id: z.ZodString;
@@ -2495,16 +3208,16 @@ export declare const projectContextFresh: z.ZodObject<{
2495
3208
  originalFilename: string;
2496
3209
  sizeBytes: number;
2497
3210
  sha256: string;
2498
- label?: string | undefined;
2499
3211
  mimeType?: string | undefined;
3212
+ label?: string | undefined;
2500
3213
  }, {
2501
3214
  id: string;
2502
3215
  path: string;
2503
3216
  originalFilename: string;
2504
3217
  sizeBytes: number;
2505
3218
  sha256: string;
2506
- label?: string | undefined;
2507
3219
  mimeType?: string | undefined;
3220
+ label?: string | undefined;
2508
3221
  }>, "many">>;
2509
3222
  bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2510
3223
  kind: z.ZodLiteral<"global">;
@@ -2600,9 +3313,19 @@ export declare const projectContextFresh: z.ZodObject<{
2600
3313
  id: string;
2601
3314
  path: string;
2602
3315
  transport: "file";
3316
+ mimeType?: string | undefined;
2603
3317
  label?: string | undefined;
2604
3318
  userIntent?: string | undefined;
2605
- mimeType?: string | undefined;
3319
+ references?: {
3320
+ id: string;
3321
+ url: string;
3322
+ title: string;
3323
+ image?: {
3324
+ hash: string;
3325
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
3326
+ } | undefined;
3327
+ reason?: string | undefined;
3328
+ }[] | undefined;
2606
3329
  originalFilename?: string | undefined;
2607
3330
  } | {
2608
3331
  id: string;
@@ -2616,6 +3339,16 @@ export declare const projectContextFresh: z.ZodObject<{
2616
3339
  transport: "text";
2617
3340
  label?: string | undefined;
2618
3341
  userIntent?: string | undefined;
3342
+ references?: {
3343
+ id: string;
3344
+ url: string;
3345
+ title: string;
3346
+ image?: {
3347
+ hash: string;
3348
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
3349
+ } | undefined;
3350
+ reason?: string | undefined;
3351
+ }[] | undefined;
2619
3352
  })[];
2620
3353
  rivetActions: {
2621
3354
  id: string;
@@ -2666,8 +3399,8 @@ export declare const projectContextFresh: z.ZodObject<{
2666
3399
  originalFilename: string;
2667
3400
  sizeBytes: number;
2668
3401
  sha256: string;
2669
- label?: string | undefined;
2670
3402
  mimeType?: string | undefined;
3403
+ label?: string | undefined;
2671
3404
  }[] | undefined;
2672
3405
  bindings?: ({
2673
3406
  kind: "global";
@@ -2711,9 +3444,16 @@ export declare const projectContextFresh: z.ZodObject<{
2711
3444
  id: string;
2712
3445
  path: string;
2713
3446
  transport: "file";
3447
+ mimeType?: string | undefined;
2714
3448
  label?: string | undefined;
2715
3449
  userIntent?: string | undefined;
2716
- mimeType?: string | undefined;
3450
+ references?: {
3451
+ id: string;
3452
+ url: string;
3453
+ title: string;
3454
+ image?: unknown;
3455
+ reason?: string | undefined;
3456
+ }[] | undefined;
2717
3457
  originalFilename?: string | undefined;
2718
3458
  } | {
2719
3459
  id: string;
@@ -2727,6 +3467,13 @@ export declare const projectContextFresh: z.ZodObject<{
2727
3467
  transport: "text";
2728
3468
  label?: string | undefined;
2729
3469
  userIntent?: string | undefined;
3470
+ references?: {
3471
+ id: string;
3472
+ url: string;
3473
+ title: string;
3474
+ image?: unknown;
3475
+ reason?: string | undefined;
3476
+ }[] | undefined;
2730
3477
  })[];
2731
3478
  rivetActions: {
2732
3479
  id: string;
@@ -2777,8 +3524,8 @@ export declare const projectContextFresh: z.ZodObject<{
2777
3524
  originalFilename: string;
2778
3525
  sizeBytes: number;
2779
3526
  sha256: string;
2780
- label?: string | undefined;
2781
3527
  mimeType?: string | undefined;
3528
+ label?: string | undefined;
2782
3529
  }[] | undefined;
2783
3530
  bindings?: ({
2784
3531
  kind: "global";
@@ -2889,9 +3636,19 @@ export declare const projectContextFresh: z.ZodObject<{
2889
3636
  id: string;
2890
3637
  path: string;
2891
3638
  transport: "file";
3639
+ mimeType?: string | undefined;
2892
3640
  label?: string | undefined;
2893
3641
  userIntent?: string | undefined;
2894
- mimeType?: string | undefined;
3642
+ references?: {
3643
+ id: string;
3644
+ url: string;
3645
+ title: string;
3646
+ image?: {
3647
+ hash: string;
3648
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
3649
+ } | undefined;
3650
+ reason?: string | undefined;
3651
+ }[] | undefined;
2895
3652
  originalFilename?: string | undefined;
2896
3653
  } | {
2897
3654
  id: string;
@@ -2905,6 +3662,16 @@ export declare const projectContextFresh: z.ZodObject<{
2905
3662
  transport: "text";
2906
3663
  label?: string | undefined;
2907
3664
  userIntent?: string | undefined;
3665
+ references?: {
3666
+ id: string;
3667
+ url: string;
3668
+ title: string;
3669
+ image?: {
3670
+ hash: string;
3671
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
3672
+ } | undefined;
3673
+ reason?: string | undefined;
3674
+ }[] | undefined;
2908
3675
  })[];
2909
3676
  rivetActions: {
2910
3677
  id: string;
@@ -2955,8 +3722,8 @@ export declare const projectContextFresh: z.ZodObject<{
2955
3722
  originalFilename: string;
2956
3723
  sizeBytes: number;
2957
3724
  sha256: string;
2958
- label?: string | undefined;
2959
3725
  mimeType?: string | undefined;
3726
+ label?: string | undefined;
2960
3727
  }[] | undefined;
2961
3728
  bindings?: ({
2962
3729
  kind: "global";
@@ -3027,9 +3794,16 @@ export declare const projectContextFresh: z.ZodObject<{
3027
3794
  id: string;
3028
3795
  path: string;
3029
3796
  transport: "file";
3797
+ mimeType?: string | undefined;
3030
3798
  label?: string | undefined;
3031
3799
  userIntent?: string | undefined;
3032
- mimeType?: string | undefined;
3800
+ references?: {
3801
+ id: string;
3802
+ url: string;
3803
+ title: string;
3804
+ image?: unknown;
3805
+ reason?: string | undefined;
3806
+ }[] | undefined;
3033
3807
  originalFilename?: string | undefined;
3034
3808
  } | {
3035
3809
  id: string;
@@ -3043,6 +3817,13 @@ export declare const projectContextFresh: z.ZodObject<{
3043
3817
  transport: "text";
3044
3818
  label?: string | undefined;
3045
3819
  userIntent?: string | undefined;
3820
+ references?: {
3821
+ id: string;
3822
+ url: string;
3823
+ title: string;
3824
+ image?: unknown;
3825
+ reason?: string | undefined;
3826
+ }[] | undefined;
3046
3827
  })[];
3047
3828
  rivetActions: {
3048
3829
  id: string;
@@ -3093,8 +3874,8 @@ export declare const projectContextFresh: z.ZodObject<{
3093
3874
  originalFilename: string;
3094
3875
  sizeBytes: number;
3095
3876
  sha256: string;
3096
- label?: string | undefined;
3097
3877
  mimeType?: string | undefined;
3878
+ label?: string | undefined;
3098
3879
  }[] | undefined;
3099
3880
  bindings?: ({
3100
3881
  kind: "global";
@@ -3186,6 +3967,37 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3186
3967
  }>, z.ZodObject<{
3187
3968
  id: z.ZodString;
3188
3969
  transport: z.ZodLiteral<"file">;
3970
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
3971
+ id: z.ZodString;
3972
+ title: z.ZodString;
3973
+ url: z.ZodEffects<z.ZodString, string, string>;
3974
+ reason: z.ZodOptional<z.ZodString>;
3975
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
3976
+ hash: z.ZodString;
3977
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
3978
+ }, "strip", z.ZodTypeAny, {
3979
+ hash: string;
3980
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
3981
+ }, {
3982
+ hash: string;
3983
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
3984
+ }>>>;
3985
+ }, "strip", z.ZodTypeAny, {
3986
+ id: string;
3987
+ url: string;
3988
+ title: string;
3989
+ image?: {
3990
+ hash: string;
3991
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
3992
+ } | undefined;
3993
+ reason?: string | undefined;
3994
+ }, {
3995
+ id: string;
3996
+ url: string;
3997
+ title: string;
3998
+ image?: unknown;
3999
+ reason?: string | undefined;
4000
+ }>, "many">>;
3189
4001
  path: z.ZodString;
3190
4002
  mimeType: z.ZodOptional<z.ZodString>;
3191
4003
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -3195,17 +4007,34 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3195
4007
  id: string;
3196
4008
  path: string;
3197
4009
  transport: "file";
4010
+ mimeType?: string | undefined;
3198
4011
  label?: string | undefined;
3199
4012
  userIntent?: string | undefined;
3200
- mimeType?: string | undefined;
4013
+ references?: {
4014
+ id: string;
4015
+ url: string;
4016
+ title: string;
4017
+ image?: {
4018
+ hash: string;
4019
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
4020
+ } | undefined;
4021
+ reason?: string | undefined;
4022
+ }[] | undefined;
3201
4023
  originalFilename?: string | undefined;
3202
4024
  }, {
3203
4025
  id: string;
3204
4026
  path: string;
3205
4027
  transport: "file";
4028
+ mimeType?: string | undefined;
3206
4029
  label?: string | undefined;
3207
4030
  userIntent?: string | undefined;
3208
- mimeType?: string | undefined;
4031
+ references?: {
4032
+ id: string;
4033
+ url: string;
4034
+ title: string;
4035
+ image?: unknown;
4036
+ reason?: string | undefined;
4037
+ }[] | undefined;
3209
4038
  originalFilename?: string | undefined;
3210
4039
  }>, z.ZodObject<{
3211
4040
  id: z.ZodString;
@@ -3228,6 +4057,37 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3228
4057
  }>, z.ZodObject<{
3229
4058
  id: z.ZodString;
3230
4059
  transport: z.ZodLiteral<"text">;
4060
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
4061
+ id: z.ZodString;
4062
+ title: z.ZodString;
4063
+ url: z.ZodEffects<z.ZodString, string, string>;
4064
+ reason: z.ZodOptional<z.ZodString>;
4065
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
4066
+ hash: z.ZodString;
4067
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
4068
+ }, "strip", z.ZodTypeAny, {
4069
+ hash: string;
4070
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
4071
+ }, {
4072
+ hash: string;
4073
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
4074
+ }>>>;
4075
+ }, "strip", z.ZodTypeAny, {
4076
+ id: string;
4077
+ url: string;
4078
+ title: string;
4079
+ image?: {
4080
+ hash: string;
4081
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
4082
+ } | undefined;
4083
+ reason?: string | undefined;
4084
+ }, {
4085
+ id: string;
4086
+ url: string;
4087
+ title: string;
4088
+ image?: unknown;
4089
+ reason?: string | undefined;
4090
+ }>, "many">>;
3231
4091
  path: z.ZodString;
3232
4092
  label: z.ZodOptional<z.ZodString>;
3233
4093
  userIntent: z.ZodOptional<z.ZodString>;
@@ -3237,12 +4097,29 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3237
4097
  transport: "text";
3238
4098
  label?: string | undefined;
3239
4099
  userIntent?: string | undefined;
4100
+ references?: {
4101
+ id: string;
4102
+ url: string;
4103
+ title: string;
4104
+ image?: {
4105
+ hash: string;
4106
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
4107
+ } | undefined;
4108
+ reason?: string | undefined;
4109
+ }[] | undefined;
3240
4110
  }, {
3241
4111
  id: string;
3242
4112
  path: string;
3243
4113
  transport: "text";
3244
4114
  label?: string | undefined;
3245
4115
  userIntent?: string | undefined;
4116
+ references?: {
4117
+ id: string;
4118
+ url: string;
4119
+ title: string;
4120
+ image?: unknown;
4121
+ reason?: string | undefined;
4122
+ }[] | undefined;
3246
4123
  }>]>, "many">;
3247
4124
  rivetActions: z.ZodArray<z.ZodObject<{
3248
4125
  id: z.ZodString;
@@ -3427,16 +4304,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3427
4304
  originalFilename: string;
3428
4305
  sizeBytes: number;
3429
4306
  sha256: string;
3430
- label?: string | undefined;
3431
4307
  mimeType?: string | undefined;
4308
+ label?: string | undefined;
3432
4309
  }, {
3433
4310
  id: string;
3434
4311
  path: string;
3435
4312
  originalFilename: string;
3436
4313
  sizeBytes: number;
3437
4314
  sha256: string;
3438
- label?: string | undefined;
3439
4315
  mimeType?: string | undefined;
4316
+ label?: string | undefined;
3440
4317
  }>, "many">>;
3441
4318
  bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
3442
4319
  kind: z.ZodLiteral<"global">;
@@ -3532,9 +4409,19 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3532
4409
  id: string;
3533
4410
  path: string;
3534
4411
  transport: "file";
4412
+ mimeType?: string | undefined;
3535
4413
  label?: string | undefined;
3536
4414
  userIntent?: string | undefined;
3537
- mimeType?: string | undefined;
4415
+ references?: {
4416
+ id: string;
4417
+ url: string;
4418
+ title: string;
4419
+ image?: {
4420
+ hash: string;
4421
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
4422
+ } | undefined;
4423
+ reason?: string | undefined;
4424
+ }[] | undefined;
3538
4425
  originalFilename?: string | undefined;
3539
4426
  } | {
3540
4427
  id: string;
@@ -3548,6 +4435,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3548
4435
  transport: "text";
3549
4436
  label?: string | undefined;
3550
4437
  userIntent?: string | undefined;
4438
+ references?: {
4439
+ id: string;
4440
+ url: string;
4441
+ title: string;
4442
+ image?: {
4443
+ hash: string;
4444
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
4445
+ } | undefined;
4446
+ reason?: string | undefined;
4447
+ }[] | undefined;
3551
4448
  })[];
3552
4449
  rivetActions: {
3553
4450
  id: string;
@@ -3598,8 +4495,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3598
4495
  originalFilename: string;
3599
4496
  sizeBytes: number;
3600
4497
  sha256: string;
3601
- label?: string | undefined;
3602
4498
  mimeType?: string | undefined;
4499
+ label?: string | undefined;
3603
4500
  }[] | undefined;
3604
4501
  bindings?: ({
3605
4502
  kind: "global";
@@ -3643,9 +4540,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3643
4540
  id: string;
3644
4541
  path: string;
3645
4542
  transport: "file";
4543
+ mimeType?: string | undefined;
3646
4544
  label?: string | undefined;
3647
4545
  userIntent?: string | undefined;
3648
- mimeType?: string | undefined;
4546
+ references?: {
4547
+ id: string;
4548
+ url: string;
4549
+ title: string;
4550
+ image?: unknown;
4551
+ reason?: string | undefined;
4552
+ }[] | undefined;
3649
4553
  originalFilename?: string | undefined;
3650
4554
  } | {
3651
4555
  id: string;
@@ -3659,6 +4563,13 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3659
4563
  transport: "text";
3660
4564
  label?: string | undefined;
3661
4565
  userIntent?: string | undefined;
4566
+ references?: {
4567
+ id: string;
4568
+ url: string;
4569
+ title: string;
4570
+ image?: unknown;
4571
+ reason?: string | undefined;
4572
+ }[] | undefined;
3662
4573
  })[];
3663
4574
  rivetActions: {
3664
4575
  id: string;
@@ -3709,8 +4620,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3709
4620
  originalFilename: string;
3710
4621
  sizeBytes: number;
3711
4622
  sha256: string;
3712
- label?: string | undefined;
3713
4623
  mimeType?: string | undefined;
4624
+ label?: string | undefined;
3714
4625
  }[] | undefined;
3715
4626
  bindings?: ({
3716
4627
  kind: "global";
@@ -3766,9 +4677,19 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3766
4677
  id: string;
3767
4678
  path: string;
3768
4679
  transport: "file";
4680
+ mimeType?: string | undefined;
3769
4681
  label?: string | undefined;
3770
4682
  userIntent?: string | undefined;
3771
- mimeType?: string | undefined;
4683
+ references?: {
4684
+ id: string;
4685
+ url: string;
4686
+ title: string;
4687
+ image?: {
4688
+ hash: string;
4689
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
4690
+ } | undefined;
4691
+ reason?: string | undefined;
4692
+ }[] | undefined;
3772
4693
  originalFilename?: string | undefined;
3773
4694
  } | {
3774
4695
  id: string;
@@ -3782,6 +4703,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3782
4703
  transport: "text";
3783
4704
  label?: string | undefined;
3784
4705
  userIntent?: string | undefined;
4706
+ references?: {
4707
+ id: string;
4708
+ url: string;
4709
+ title: string;
4710
+ image?: {
4711
+ hash: string;
4712
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
4713
+ } | undefined;
4714
+ reason?: string | undefined;
4715
+ }[] | undefined;
3785
4716
  })[];
3786
4717
  rivetActions: {
3787
4718
  id: string;
@@ -3832,8 +4763,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3832
4763
  originalFilename: string;
3833
4764
  sizeBytes: number;
3834
4765
  sha256: string;
3835
- label?: string | undefined;
3836
4766
  mimeType?: string | undefined;
4767
+ label?: string | undefined;
3837
4768
  }[] | undefined;
3838
4769
  bindings?: ({
3839
4770
  kind: "global";
@@ -3889,9 +4820,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3889
4820
  id: string;
3890
4821
  path: string;
3891
4822
  transport: "file";
4823
+ mimeType?: string | undefined;
3892
4824
  label?: string | undefined;
3893
4825
  userIntent?: string | undefined;
3894
- mimeType?: string | undefined;
4826
+ references?: {
4827
+ id: string;
4828
+ url: string;
4829
+ title: string;
4830
+ image?: unknown;
4831
+ reason?: string | undefined;
4832
+ }[] | undefined;
3895
4833
  originalFilename?: string | undefined;
3896
4834
  } | {
3897
4835
  id: string;
@@ -3905,6 +4843,13 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3905
4843
  transport: "text";
3906
4844
  label?: string | undefined;
3907
4845
  userIntent?: string | undefined;
4846
+ references?: {
4847
+ id: string;
4848
+ url: string;
4849
+ title: string;
4850
+ image?: unknown;
4851
+ reason?: string | undefined;
4852
+ }[] | undefined;
3908
4853
  })[];
3909
4854
  rivetActions: {
3910
4855
  id: string;
@@ -3955,8 +4900,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
3955
4900
  originalFilename: string;
3956
4901
  sizeBytes: number;
3957
4902
  sha256: string;
3958
- label?: string | undefined;
3959
4903
  mimeType?: string | undefined;
4904
+ label?: string | undefined;
3960
4905
  }[] | undefined;
3961
4906
  bindings?: ({
3962
4907
  kind: "global";
@@ -4048,6 +4993,37 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4048
4993
  }>, z.ZodObject<{
4049
4994
  id: z.ZodString;
4050
4995
  transport: z.ZodLiteral<"file">;
4996
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
4997
+ id: z.ZodString;
4998
+ title: z.ZodString;
4999
+ url: z.ZodEffects<z.ZodString, string, string>;
5000
+ reason: z.ZodOptional<z.ZodString>;
5001
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
5002
+ hash: z.ZodString;
5003
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
5004
+ }, "strip", z.ZodTypeAny, {
5005
+ hash: string;
5006
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5007
+ }, {
5008
+ hash: string;
5009
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5010
+ }>>>;
5011
+ }, "strip", z.ZodTypeAny, {
5012
+ id: string;
5013
+ url: string;
5014
+ title: string;
5015
+ image?: {
5016
+ hash: string;
5017
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5018
+ } | undefined;
5019
+ reason?: string | undefined;
5020
+ }, {
5021
+ id: string;
5022
+ url: string;
5023
+ title: string;
5024
+ image?: unknown;
5025
+ reason?: string | undefined;
5026
+ }>, "many">>;
4051
5027
  path: z.ZodString;
4052
5028
  mimeType: z.ZodOptional<z.ZodString>;
4053
5029
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -4057,17 +5033,34 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4057
5033
  id: string;
4058
5034
  path: string;
4059
5035
  transport: "file";
5036
+ mimeType?: string | undefined;
4060
5037
  label?: string | undefined;
4061
5038
  userIntent?: string | undefined;
4062
- mimeType?: string | undefined;
5039
+ references?: {
5040
+ id: string;
5041
+ url: string;
5042
+ title: string;
5043
+ image?: {
5044
+ hash: string;
5045
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5046
+ } | undefined;
5047
+ reason?: string | undefined;
5048
+ }[] | undefined;
4063
5049
  originalFilename?: string | undefined;
4064
5050
  }, {
4065
5051
  id: string;
4066
5052
  path: string;
4067
5053
  transport: "file";
5054
+ mimeType?: string | undefined;
4068
5055
  label?: string | undefined;
4069
5056
  userIntent?: string | undefined;
4070
- mimeType?: string | undefined;
5057
+ references?: {
5058
+ id: string;
5059
+ url: string;
5060
+ title: string;
5061
+ image?: unknown;
5062
+ reason?: string | undefined;
5063
+ }[] | undefined;
4071
5064
  originalFilename?: string | undefined;
4072
5065
  }>, z.ZodObject<{
4073
5066
  id: z.ZodString;
@@ -4090,6 +5083,37 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4090
5083
  }>, z.ZodObject<{
4091
5084
  id: z.ZodString;
4092
5085
  transport: z.ZodLiteral<"text">;
5086
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
5087
+ id: z.ZodString;
5088
+ title: z.ZodString;
5089
+ url: z.ZodEffects<z.ZodString, string, string>;
5090
+ reason: z.ZodOptional<z.ZodString>;
5091
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
5092
+ hash: z.ZodString;
5093
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
5094
+ }, "strip", z.ZodTypeAny, {
5095
+ hash: string;
5096
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5097
+ }, {
5098
+ hash: string;
5099
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5100
+ }>>>;
5101
+ }, "strip", z.ZodTypeAny, {
5102
+ id: string;
5103
+ url: string;
5104
+ title: string;
5105
+ image?: {
5106
+ hash: string;
5107
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5108
+ } | undefined;
5109
+ reason?: string | undefined;
5110
+ }, {
5111
+ id: string;
5112
+ url: string;
5113
+ title: string;
5114
+ image?: unknown;
5115
+ reason?: string | undefined;
5116
+ }>, "many">>;
4093
5117
  path: z.ZodString;
4094
5118
  label: z.ZodOptional<z.ZodString>;
4095
5119
  userIntent: z.ZodOptional<z.ZodString>;
@@ -4099,12 +5123,29 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4099
5123
  transport: "text";
4100
5124
  label?: string | undefined;
4101
5125
  userIntent?: string | undefined;
5126
+ references?: {
5127
+ id: string;
5128
+ url: string;
5129
+ title: string;
5130
+ image?: {
5131
+ hash: string;
5132
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5133
+ } | undefined;
5134
+ reason?: string | undefined;
5135
+ }[] | undefined;
4102
5136
  }, {
4103
5137
  id: string;
4104
5138
  path: string;
4105
5139
  transport: "text";
4106
5140
  label?: string | undefined;
4107
5141
  userIntent?: string | undefined;
5142
+ references?: {
5143
+ id: string;
5144
+ url: string;
5145
+ title: string;
5146
+ image?: unknown;
5147
+ reason?: string | undefined;
5148
+ }[] | undefined;
4108
5149
  }>]>, "many">;
4109
5150
  rivetActions: z.ZodArray<z.ZodObject<{
4110
5151
  id: z.ZodString;
@@ -4289,16 +5330,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4289
5330
  originalFilename: string;
4290
5331
  sizeBytes: number;
4291
5332
  sha256: string;
4292
- label?: string | undefined;
4293
5333
  mimeType?: string | undefined;
5334
+ label?: string | undefined;
4294
5335
  }, {
4295
5336
  id: string;
4296
5337
  path: string;
4297
5338
  originalFilename: string;
4298
5339
  sizeBytes: number;
4299
5340
  sha256: string;
4300
- label?: string | undefined;
4301
5341
  mimeType?: string | undefined;
5342
+ label?: string | undefined;
4302
5343
  }>, "many">>;
4303
5344
  bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
4304
5345
  kind: z.ZodLiteral<"global">;
@@ -4394,9 +5435,19 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4394
5435
  id: string;
4395
5436
  path: string;
4396
5437
  transport: "file";
5438
+ mimeType?: string | undefined;
4397
5439
  label?: string | undefined;
4398
5440
  userIntent?: string | undefined;
4399
- mimeType?: string | undefined;
5441
+ references?: {
5442
+ id: string;
5443
+ url: string;
5444
+ title: string;
5445
+ image?: {
5446
+ hash: string;
5447
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5448
+ } | undefined;
5449
+ reason?: string | undefined;
5450
+ }[] | undefined;
4400
5451
  originalFilename?: string | undefined;
4401
5452
  } | {
4402
5453
  id: string;
@@ -4410,6 +5461,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4410
5461
  transport: "text";
4411
5462
  label?: string | undefined;
4412
5463
  userIntent?: string | undefined;
5464
+ references?: {
5465
+ id: string;
5466
+ url: string;
5467
+ title: string;
5468
+ image?: {
5469
+ hash: string;
5470
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5471
+ } | undefined;
5472
+ reason?: string | undefined;
5473
+ }[] | undefined;
4413
5474
  })[];
4414
5475
  rivetActions: {
4415
5476
  id: string;
@@ -4460,8 +5521,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4460
5521
  originalFilename: string;
4461
5522
  sizeBytes: number;
4462
5523
  sha256: string;
4463
- label?: string | undefined;
4464
5524
  mimeType?: string | undefined;
5525
+ label?: string | undefined;
4465
5526
  }[] | undefined;
4466
5527
  bindings?: ({
4467
5528
  kind: "global";
@@ -4505,9 +5566,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4505
5566
  id: string;
4506
5567
  path: string;
4507
5568
  transport: "file";
5569
+ mimeType?: string | undefined;
4508
5570
  label?: string | undefined;
4509
5571
  userIntent?: string | undefined;
4510
- mimeType?: string | undefined;
5572
+ references?: {
5573
+ id: string;
5574
+ url: string;
5575
+ title: string;
5576
+ image?: unknown;
5577
+ reason?: string | undefined;
5578
+ }[] | undefined;
4511
5579
  originalFilename?: string | undefined;
4512
5580
  } | {
4513
5581
  id: string;
@@ -4521,6 +5589,13 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4521
5589
  transport: "text";
4522
5590
  label?: string | undefined;
4523
5591
  userIntent?: string | undefined;
5592
+ references?: {
5593
+ id: string;
5594
+ url: string;
5595
+ title: string;
5596
+ image?: unknown;
5597
+ reason?: string | undefined;
5598
+ }[] | undefined;
4524
5599
  })[];
4525
5600
  rivetActions: {
4526
5601
  id: string;
@@ -4571,8 +5646,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4571
5646
  originalFilename: string;
4572
5647
  sizeBytes: number;
4573
5648
  sha256: string;
4574
- label?: string | undefined;
4575
5649
  mimeType?: string | undefined;
5650
+ label?: string | undefined;
4576
5651
  }[] | undefined;
4577
5652
  bindings?: ({
4578
5653
  kind: "global";
@@ -4683,9 +5758,19 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4683
5758
  id: string;
4684
5759
  path: string;
4685
5760
  transport: "file";
5761
+ mimeType?: string | undefined;
4686
5762
  label?: string | undefined;
4687
5763
  userIntent?: string | undefined;
4688
- mimeType?: string | undefined;
5764
+ references?: {
5765
+ id: string;
5766
+ url: string;
5767
+ title: string;
5768
+ image?: {
5769
+ hash: string;
5770
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5771
+ } | undefined;
5772
+ reason?: string | undefined;
5773
+ }[] | undefined;
4689
5774
  originalFilename?: string | undefined;
4690
5775
  } | {
4691
5776
  id: string;
@@ -4699,6 +5784,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4699
5784
  transport: "text";
4700
5785
  label?: string | undefined;
4701
5786
  userIntent?: string | undefined;
5787
+ references?: {
5788
+ id: string;
5789
+ url: string;
5790
+ title: string;
5791
+ image?: {
5792
+ hash: string;
5793
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
5794
+ } | undefined;
5795
+ reason?: string | undefined;
5796
+ }[] | undefined;
4702
5797
  })[];
4703
5798
  rivetActions: {
4704
5799
  id: string;
@@ -4749,8 +5844,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4749
5844
  originalFilename: string;
4750
5845
  sizeBytes: number;
4751
5846
  sha256: string;
4752
- label?: string | undefined;
4753
5847
  mimeType?: string | undefined;
5848
+ label?: string | undefined;
4754
5849
  }[] | undefined;
4755
5850
  bindings?: ({
4756
5851
  kind: "global";
@@ -4821,9 +5916,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4821
5916
  id: string;
4822
5917
  path: string;
4823
5918
  transport: "file";
5919
+ mimeType?: string | undefined;
4824
5920
  label?: string | undefined;
4825
5921
  userIntent?: string | undefined;
4826
- mimeType?: string | undefined;
5922
+ references?: {
5923
+ id: string;
5924
+ url: string;
5925
+ title: string;
5926
+ image?: unknown;
5927
+ reason?: string | undefined;
5928
+ }[] | undefined;
4827
5929
  originalFilename?: string | undefined;
4828
5930
  } | {
4829
5931
  id: string;
@@ -4837,6 +5939,13 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4837
5939
  transport: "text";
4838
5940
  label?: string | undefined;
4839
5941
  userIntent?: string | undefined;
5942
+ references?: {
5943
+ id: string;
5944
+ url: string;
5945
+ title: string;
5946
+ image?: unknown;
5947
+ reason?: string | undefined;
5948
+ }[] | undefined;
4840
5949
  })[];
4841
5950
  rivetActions: {
4842
5951
  id: string;
@@ -4887,8 +5996,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
4887
5996
  originalFilename: string;
4888
5997
  sizeBytes: number;
4889
5998
  sha256: string;
4890
- label?: string | undefined;
4891
5999
  mimeType?: string | undefined;
6000
+ label?: string | undefined;
4892
6001
  }[] | undefined;
4893
6002
  bindings?: ({
4894
6003
  kind: "global";
@@ -4980,6 +6089,37 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
4980
6089
  }>, z.ZodObject<{
4981
6090
  id: z.ZodString;
4982
6091
  transport: z.ZodLiteral<"file">;
6092
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
6093
+ id: z.ZodString;
6094
+ title: z.ZodString;
6095
+ url: z.ZodEffects<z.ZodString, string, string>;
6096
+ reason: z.ZodOptional<z.ZodString>;
6097
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
6098
+ hash: z.ZodString;
6099
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
6100
+ }, "strip", z.ZodTypeAny, {
6101
+ hash: string;
6102
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6103
+ }, {
6104
+ hash: string;
6105
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6106
+ }>>>;
6107
+ }, "strip", z.ZodTypeAny, {
6108
+ id: string;
6109
+ url: string;
6110
+ title: string;
6111
+ image?: {
6112
+ hash: string;
6113
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6114
+ } | undefined;
6115
+ reason?: string | undefined;
6116
+ }, {
6117
+ id: string;
6118
+ url: string;
6119
+ title: string;
6120
+ image?: unknown;
6121
+ reason?: string | undefined;
6122
+ }>, "many">>;
4983
6123
  path: z.ZodString;
4984
6124
  mimeType: z.ZodOptional<z.ZodString>;
4985
6125
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -4989,17 +6129,34 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
4989
6129
  id: string;
4990
6130
  path: string;
4991
6131
  transport: "file";
6132
+ mimeType?: string | undefined;
4992
6133
  label?: string | undefined;
4993
6134
  userIntent?: string | undefined;
4994
- mimeType?: string | undefined;
6135
+ references?: {
6136
+ id: string;
6137
+ url: string;
6138
+ title: string;
6139
+ image?: {
6140
+ hash: string;
6141
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6142
+ } | undefined;
6143
+ reason?: string | undefined;
6144
+ }[] | undefined;
4995
6145
  originalFilename?: string | undefined;
4996
6146
  }, {
4997
6147
  id: string;
4998
6148
  path: string;
4999
6149
  transport: "file";
6150
+ mimeType?: string | undefined;
5000
6151
  label?: string | undefined;
5001
6152
  userIntent?: string | undefined;
5002
- mimeType?: string | undefined;
6153
+ references?: {
6154
+ id: string;
6155
+ url: string;
6156
+ title: string;
6157
+ image?: unknown;
6158
+ reason?: string | undefined;
6159
+ }[] | undefined;
5003
6160
  originalFilename?: string | undefined;
5004
6161
  }>, z.ZodObject<{
5005
6162
  id: z.ZodString;
@@ -5022,6 +6179,37 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5022
6179
  }>, z.ZodObject<{
5023
6180
  id: z.ZodString;
5024
6181
  transport: z.ZodLiteral<"text">;
6182
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
6183
+ id: z.ZodString;
6184
+ title: z.ZodString;
6185
+ url: z.ZodEffects<z.ZodString, string, string>;
6186
+ reason: z.ZodOptional<z.ZodString>;
6187
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
6188
+ hash: z.ZodString;
6189
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
6190
+ }, "strip", z.ZodTypeAny, {
6191
+ hash: string;
6192
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6193
+ }, {
6194
+ hash: string;
6195
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6196
+ }>>>;
6197
+ }, "strip", z.ZodTypeAny, {
6198
+ id: string;
6199
+ url: string;
6200
+ title: string;
6201
+ image?: {
6202
+ hash: string;
6203
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6204
+ } | undefined;
6205
+ reason?: string | undefined;
6206
+ }, {
6207
+ id: string;
6208
+ url: string;
6209
+ title: string;
6210
+ image?: unknown;
6211
+ reason?: string | undefined;
6212
+ }>, "many">>;
5025
6213
  path: z.ZodString;
5026
6214
  label: z.ZodOptional<z.ZodString>;
5027
6215
  userIntent: z.ZodOptional<z.ZodString>;
@@ -5031,12 +6219,29 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5031
6219
  transport: "text";
5032
6220
  label?: string | undefined;
5033
6221
  userIntent?: string | undefined;
6222
+ references?: {
6223
+ id: string;
6224
+ url: string;
6225
+ title: string;
6226
+ image?: {
6227
+ hash: string;
6228
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6229
+ } | undefined;
6230
+ reason?: string | undefined;
6231
+ }[] | undefined;
5034
6232
  }, {
5035
6233
  id: string;
5036
6234
  path: string;
5037
6235
  transport: "text";
5038
6236
  label?: string | undefined;
5039
6237
  userIntent?: string | undefined;
6238
+ references?: {
6239
+ id: string;
6240
+ url: string;
6241
+ title: string;
6242
+ image?: unknown;
6243
+ reason?: string | undefined;
6244
+ }[] | undefined;
5040
6245
  }>]>, "many">;
5041
6246
  rivetActions: z.ZodArray<z.ZodObject<{
5042
6247
  id: z.ZodString;
@@ -5221,16 +6426,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5221
6426
  originalFilename: string;
5222
6427
  sizeBytes: number;
5223
6428
  sha256: string;
5224
- label?: string | undefined;
5225
6429
  mimeType?: string | undefined;
6430
+ label?: string | undefined;
5226
6431
  }, {
5227
6432
  id: string;
5228
6433
  path: string;
5229
6434
  originalFilename: string;
5230
6435
  sizeBytes: number;
5231
6436
  sha256: string;
5232
- label?: string | undefined;
5233
6437
  mimeType?: string | undefined;
6438
+ label?: string | undefined;
5234
6439
  }>, "many">>;
5235
6440
  bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
5236
6441
  kind: z.ZodLiteral<"global">;
@@ -5326,9 +6531,19 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5326
6531
  id: string;
5327
6532
  path: string;
5328
6533
  transport: "file";
6534
+ mimeType?: string | undefined;
5329
6535
  label?: string | undefined;
5330
6536
  userIntent?: string | undefined;
5331
- mimeType?: string | undefined;
6537
+ references?: {
6538
+ id: string;
6539
+ url: string;
6540
+ title: string;
6541
+ image?: {
6542
+ hash: string;
6543
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6544
+ } | undefined;
6545
+ reason?: string | undefined;
6546
+ }[] | undefined;
5332
6547
  originalFilename?: string | undefined;
5333
6548
  } | {
5334
6549
  id: string;
@@ -5342,6 +6557,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5342
6557
  transport: "text";
5343
6558
  label?: string | undefined;
5344
6559
  userIntent?: string | undefined;
6560
+ references?: {
6561
+ id: string;
6562
+ url: string;
6563
+ title: string;
6564
+ image?: {
6565
+ hash: string;
6566
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6567
+ } | undefined;
6568
+ reason?: string | undefined;
6569
+ }[] | undefined;
5345
6570
  })[];
5346
6571
  rivetActions: {
5347
6572
  id: string;
@@ -5392,8 +6617,8 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5392
6617
  originalFilename: string;
5393
6618
  sizeBytes: number;
5394
6619
  sha256: string;
5395
- label?: string | undefined;
5396
6620
  mimeType?: string | undefined;
6621
+ label?: string | undefined;
5397
6622
  }[] | undefined;
5398
6623
  bindings?: ({
5399
6624
  kind: "global";
@@ -5437,9 +6662,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5437
6662
  id: string;
5438
6663
  path: string;
5439
6664
  transport: "file";
6665
+ mimeType?: string | undefined;
5440
6666
  label?: string | undefined;
5441
6667
  userIntent?: string | undefined;
5442
- mimeType?: string | undefined;
6668
+ references?: {
6669
+ id: string;
6670
+ url: string;
6671
+ title: string;
6672
+ image?: unknown;
6673
+ reason?: string | undefined;
6674
+ }[] | undefined;
5443
6675
  originalFilename?: string | undefined;
5444
6676
  } | {
5445
6677
  id: string;
@@ -5453,6 +6685,13 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5453
6685
  transport: "text";
5454
6686
  label?: string | undefined;
5455
6687
  userIntent?: string | undefined;
6688
+ references?: {
6689
+ id: string;
6690
+ url: string;
6691
+ title: string;
6692
+ image?: unknown;
6693
+ reason?: string | undefined;
6694
+ }[] | undefined;
5456
6695
  })[];
5457
6696
  rivetActions: {
5458
6697
  id: string;
@@ -5503,8 +6742,8 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5503
6742
  originalFilename: string;
5504
6743
  sizeBytes: number;
5505
6744
  sha256: string;
5506
- label?: string | undefined;
5507
6745
  mimeType?: string | undefined;
6746
+ label?: string | undefined;
5508
6747
  }[] | undefined;
5509
6748
  bindings?: ({
5510
6749
  kind: "global";
@@ -5618,6 +6857,37 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5618
6857
  }>, z.ZodObject<{
5619
6858
  id: z.ZodString;
5620
6859
  transport: z.ZodLiteral<"file">;
6860
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
6861
+ id: z.ZodString;
6862
+ title: z.ZodString;
6863
+ url: z.ZodEffects<z.ZodString, string, string>;
6864
+ reason: z.ZodOptional<z.ZodString>;
6865
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
6866
+ hash: z.ZodString;
6867
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
6868
+ }, "strip", z.ZodTypeAny, {
6869
+ hash: string;
6870
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6871
+ }, {
6872
+ hash: string;
6873
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6874
+ }>>>;
6875
+ }, "strip", z.ZodTypeAny, {
6876
+ id: string;
6877
+ url: string;
6878
+ title: string;
6879
+ image?: {
6880
+ hash: string;
6881
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6882
+ } | undefined;
6883
+ reason?: string | undefined;
6884
+ }, {
6885
+ id: string;
6886
+ url: string;
6887
+ title: string;
6888
+ image?: unknown;
6889
+ reason?: string | undefined;
6890
+ }>, "many">>;
5621
6891
  path: z.ZodString;
5622
6892
  mimeType: z.ZodOptional<z.ZodString>;
5623
6893
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -5627,17 +6897,34 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5627
6897
  id: string;
5628
6898
  path: string;
5629
6899
  transport: "file";
6900
+ mimeType?: string | undefined;
5630
6901
  label?: string | undefined;
5631
6902
  userIntent?: string | undefined;
5632
- mimeType?: string | undefined;
6903
+ references?: {
6904
+ id: string;
6905
+ url: string;
6906
+ title: string;
6907
+ image?: {
6908
+ hash: string;
6909
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6910
+ } | undefined;
6911
+ reason?: string | undefined;
6912
+ }[] | undefined;
5633
6913
  originalFilename?: string | undefined;
5634
6914
  }, {
5635
6915
  id: string;
5636
6916
  path: string;
5637
6917
  transport: "file";
6918
+ mimeType?: string | undefined;
5638
6919
  label?: string | undefined;
5639
6920
  userIntent?: string | undefined;
5640
- mimeType?: string | undefined;
6921
+ references?: {
6922
+ id: string;
6923
+ url: string;
6924
+ title: string;
6925
+ image?: unknown;
6926
+ reason?: string | undefined;
6927
+ }[] | undefined;
5641
6928
  originalFilename?: string | undefined;
5642
6929
  }>, z.ZodObject<{
5643
6930
  id: z.ZodString;
@@ -5660,6 +6947,37 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5660
6947
  }>, z.ZodObject<{
5661
6948
  id: z.ZodString;
5662
6949
  transport: z.ZodLiteral<"text">;
6950
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
6951
+ id: z.ZodString;
6952
+ title: z.ZodString;
6953
+ url: z.ZodEffects<z.ZodString, string, string>;
6954
+ reason: z.ZodOptional<z.ZodString>;
6955
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
6956
+ hash: z.ZodString;
6957
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
6958
+ }, "strip", z.ZodTypeAny, {
6959
+ hash: string;
6960
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6961
+ }, {
6962
+ hash: string;
6963
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6964
+ }>>>;
6965
+ }, "strip", z.ZodTypeAny, {
6966
+ id: string;
6967
+ url: string;
6968
+ title: string;
6969
+ image?: {
6970
+ hash: string;
6971
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6972
+ } | undefined;
6973
+ reason?: string | undefined;
6974
+ }, {
6975
+ id: string;
6976
+ url: string;
6977
+ title: string;
6978
+ image?: unknown;
6979
+ reason?: string | undefined;
6980
+ }>, "many">>;
5663
6981
  path: z.ZodString;
5664
6982
  label: z.ZodOptional<z.ZodString>;
5665
6983
  userIntent: z.ZodOptional<z.ZodString>;
@@ -5669,12 +6987,29 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5669
6987
  transport: "text";
5670
6988
  label?: string | undefined;
5671
6989
  userIntent?: string | undefined;
6990
+ references?: {
6991
+ id: string;
6992
+ url: string;
6993
+ title: string;
6994
+ image?: {
6995
+ hash: string;
6996
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
6997
+ } | undefined;
6998
+ reason?: string | undefined;
6999
+ }[] | undefined;
5672
7000
  }, {
5673
7001
  id: string;
5674
7002
  path: string;
5675
7003
  transport: "text";
5676
7004
  label?: string | undefined;
5677
7005
  userIntent?: string | undefined;
7006
+ references?: {
7007
+ id: string;
7008
+ url: string;
7009
+ title: string;
7010
+ image?: unknown;
7011
+ reason?: string | undefined;
7012
+ }[] | undefined;
5678
7013
  }>]>, "many">;
5679
7014
  rivetActions: z.ZodArray<z.ZodObject<{
5680
7015
  id: z.ZodString;
@@ -5859,16 +7194,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5859
7194
  originalFilename: string;
5860
7195
  sizeBytes: number;
5861
7196
  sha256: string;
5862
- label?: string | undefined;
5863
7197
  mimeType?: string | undefined;
7198
+ label?: string | undefined;
5864
7199
  }, {
5865
7200
  id: string;
5866
7201
  path: string;
5867
7202
  originalFilename: string;
5868
7203
  sizeBytes: number;
5869
7204
  sha256: string;
5870
- label?: string | undefined;
5871
7205
  mimeType?: string | undefined;
7206
+ label?: string | undefined;
5872
7207
  }>, "many">>;
5873
7208
  bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
5874
7209
  kind: z.ZodLiteral<"global">;
@@ -5964,9 +7299,19 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5964
7299
  id: string;
5965
7300
  path: string;
5966
7301
  transport: "file";
7302
+ mimeType?: string | undefined;
5967
7303
  label?: string | undefined;
5968
7304
  userIntent?: string | undefined;
5969
- mimeType?: string | undefined;
7305
+ references?: {
7306
+ id: string;
7307
+ url: string;
7308
+ title: string;
7309
+ image?: {
7310
+ hash: string;
7311
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
7312
+ } | undefined;
7313
+ reason?: string | undefined;
7314
+ }[] | undefined;
5970
7315
  originalFilename?: string | undefined;
5971
7316
  } | {
5972
7317
  id: string;
@@ -5980,6 +7325,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
5980
7325
  transport: "text";
5981
7326
  label?: string | undefined;
5982
7327
  userIntent?: string | undefined;
7328
+ references?: {
7329
+ id: string;
7330
+ url: string;
7331
+ title: string;
7332
+ image?: {
7333
+ hash: string;
7334
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
7335
+ } | undefined;
7336
+ reason?: string | undefined;
7337
+ }[] | undefined;
5983
7338
  })[];
5984
7339
  rivetActions: {
5985
7340
  id: string;
@@ -6030,8 +7385,8 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
6030
7385
  originalFilename: string;
6031
7386
  sizeBytes: number;
6032
7387
  sha256: string;
6033
- label?: string | undefined;
6034
7388
  mimeType?: string | undefined;
7389
+ label?: string | undefined;
6035
7390
  }[] | undefined;
6036
7391
  bindings?: ({
6037
7392
  kind: "global";
@@ -6075,9 +7430,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
6075
7430
  id: string;
6076
7431
  path: string;
6077
7432
  transport: "file";
7433
+ mimeType?: string | undefined;
6078
7434
  label?: string | undefined;
6079
7435
  userIntent?: string | undefined;
6080
- mimeType?: string | undefined;
7436
+ references?: {
7437
+ id: string;
7438
+ url: string;
7439
+ title: string;
7440
+ image?: unknown;
7441
+ reason?: string | undefined;
7442
+ }[] | undefined;
6081
7443
  originalFilename?: string | undefined;
6082
7444
  } | {
6083
7445
  id: string;
@@ -6091,6 +7453,13 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
6091
7453
  transport: "text";
6092
7454
  label?: string | undefined;
6093
7455
  userIntent?: string | undefined;
7456
+ references?: {
7457
+ id: string;
7458
+ url: string;
7459
+ title: string;
7460
+ image?: unknown;
7461
+ reason?: string | undefined;
7462
+ }[] | undefined;
6094
7463
  })[];
6095
7464
  rivetActions: {
6096
7465
  id: string;
@@ -6141,8 +7510,8 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
6141
7510
  originalFilename: string;
6142
7511
  sizeBytes: number;
6143
7512
  sha256: string;
6144
- label?: string | undefined;
6145
7513
  mimeType?: string | undefined;
7514
+ label?: string | undefined;
6146
7515
  }[] | undefined;
6147
7516
  bindings?: ({
6148
7517
  kind: "global";
@@ -6350,6 +7719,7 @@ export interface ActiveVariantSnapshot {
6350
7719
  runLabel?: string;
6351
7720
  requestId?: string;
6352
7721
  description?: string;
7722
+ references?: VariantReference[];
6353
7723
  adoptedSource?: {
6354
7724
  sessionId: string;
6355
7725
  variantId: string;
@@ -6508,6 +7878,37 @@ export declare const briefSchema: z.ZodObject<{
6508
7878
  }>;
6509
7879
  export type Brief = z.infer<typeof briefSchema>;
6510
7880
  export declare const variantWorkItemContextSchema: z.ZodObject<{
7881
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
7882
+ id: z.ZodString;
7883
+ title: z.ZodString;
7884
+ url: z.ZodEffects<z.ZodString, string, string>;
7885
+ reason: z.ZodOptional<z.ZodString>;
7886
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
7887
+ hash: z.ZodString;
7888
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
7889
+ }, "strip", z.ZodTypeAny, {
7890
+ hash: string;
7891
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
7892
+ }, {
7893
+ hash: string;
7894
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
7895
+ }>>>;
7896
+ }, "strip", z.ZodTypeAny, {
7897
+ id: string;
7898
+ url: string;
7899
+ title: string;
7900
+ image?: {
7901
+ hash: string;
7902
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
7903
+ } | undefined;
7904
+ reason?: string | undefined;
7905
+ }, {
7906
+ id: string;
7907
+ url: string;
7908
+ title: string;
7909
+ image?: unknown;
7910
+ reason?: string | undefined;
7911
+ }>, "many">>;
6511
7912
  contextBundlePath: z.ZodString;
6512
7913
  userContext: z.ZodArray<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
6513
7914
  id: z.ZodString;
@@ -6542,6 +7943,37 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6542
7943
  }>, z.ZodObject<{
6543
7944
  id: z.ZodString;
6544
7945
  transport: z.ZodLiteral<"file">;
7946
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
7947
+ id: z.ZodString;
7948
+ title: z.ZodString;
7949
+ url: z.ZodEffects<z.ZodString, string, string>;
7950
+ reason: z.ZodOptional<z.ZodString>;
7951
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
7952
+ hash: z.ZodString;
7953
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
7954
+ }, "strip", z.ZodTypeAny, {
7955
+ hash: string;
7956
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
7957
+ }, {
7958
+ hash: string;
7959
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
7960
+ }>>>;
7961
+ }, "strip", z.ZodTypeAny, {
7962
+ id: string;
7963
+ url: string;
7964
+ title: string;
7965
+ image?: {
7966
+ hash: string;
7967
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
7968
+ } | undefined;
7969
+ reason?: string | undefined;
7970
+ }, {
7971
+ id: string;
7972
+ url: string;
7973
+ title: string;
7974
+ image?: unknown;
7975
+ reason?: string | undefined;
7976
+ }>, "many">>;
6545
7977
  path: z.ZodString;
6546
7978
  mimeType: z.ZodOptional<z.ZodString>;
6547
7979
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -6551,17 +7983,34 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6551
7983
  id: string;
6552
7984
  path: string;
6553
7985
  transport: "file";
7986
+ mimeType?: string | undefined;
6554
7987
  label?: string | undefined;
6555
7988
  userIntent?: string | undefined;
6556
- mimeType?: string | undefined;
7989
+ references?: {
7990
+ id: string;
7991
+ url: string;
7992
+ title: string;
7993
+ image?: {
7994
+ hash: string;
7995
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
7996
+ } | undefined;
7997
+ reason?: string | undefined;
7998
+ }[] | undefined;
6557
7999
  originalFilename?: string | undefined;
6558
8000
  }, {
6559
8001
  id: string;
6560
8002
  path: string;
6561
8003
  transport: "file";
8004
+ mimeType?: string | undefined;
6562
8005
  label?: string | undefined;
6563
8006
  userIntent?: string | undefined;
6564
- mimeType?: string | undefined;
8007
+ references?: {
8008
+ id: string;
8009
+ url: string;
8010
+ title: string;
8011
+ image?: unknown;
8012
+ reason?: string | undefined;
8013
+ }[] | undefined;
6565
8014
  originalFilename?: string | undefined;
6566
8015
  }>, z.ZodObject<{
6567
8016
  id: z.ZodString;
@@ -6584,6 +8033,37 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6584
8033
  }>, z.ZodObject<{
6585
8034
  id: z.ZodString;
6586
8035
  transport: z.ZodLiteral<"text">;
8036
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
8037
+ id: z.ZodString;
8038
+ title: z.ZodString;
8039
+ url: z.ZodEffects<z.ZodString, string, string>;
8040
+ reason: z.ZodOptional<z.ZodString>;
8041
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
8042
+ hash: z.ZodString;
8043
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
8044
+ }, "strip", z.ZodTypeAny, {
8045
+ hash: string;
8046
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8047
+ }, {
8048
+ hash: string;
8049
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8050
+ }>>>;
8051
+ }, "strip", z.ZodTypeAny, {
8052
+ id: string;
8053
+ url: string;
8054
+ title: string;
8055
+ image?: {
8056
+ hash: string;
8057
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8058
+ } | undefined;
8059
+ reason?: string | undefined;
8060
+ }, {
8061
+ id: string;
8062
+ url: string;
8063
+ title: string;
8064
+ image?: unknown;
8065
+ reason?: string | undefined;
8066
+ }>, "many">>;
6587
8067
  path: z.ZodString;
6588
8068
  label: z.ZodOptional<z.ZodString>;
6589
8069
  userIntent: z.ZodOptional<z.ZodString>;
@@ -6593,12 +8073,29 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6593
8073
  transport: "text";
6594
8074
  label?: string | undefined;
6595
8075
  userIntent?: string | undefined;
8076
+ references?: {
8077
+ id: string;
8078
+ url: string;
8079
+ title: string;
8080
+ image?: {
8081
+ hash: string;
8082
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8083
+ } | undefined;
8084
+ reason?: string | undefined;
8085
+ }[] | undefined;
6596
8086
  }, {
6597
8087
  id: string;
6598
8088
  path: string;
6599
8089
  transport: "text";
6600
8090
  label?: string | undefined;
6601
8091
  userIntent?: string | undefined;
8092
+ references?: {
8093
+ id: string;
8094
+ url: string;
8095
+ title: string;
8096
+ image?: unknown;
8097
+ reason?: string | undefined;
8098
+ }[] | undefined;
6602
8099
  }>]>, "many">;
6603
8100
  rivetMetadata: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
6604
8101
  id: z.ZodString;
@@ -6764,16 +8261,16 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6764
8261
  originalFilename: string;
6765
8262
  sizeBytes: number;
6766
8263
  sha256: string;
6767
- label?: string | undefined;
6768
8264
  mimeType?: string | undefined;
8265
+ label?: string | undefined;
6769
8266
  }, {
6770
8267
  id: string;
6771
8268
  path: string;
6772
8269
  originalFilename: string;
6773
8270
  sizeBytes: number;
6774
8271
  sha256: string;
6775
- label?: string | undefined;
6776
8272
  mimeType?: string | undefined;
8273
+ label?: string | undefined;
6777
8274
  }>, "many">>;
6778
8275
  brief: z.ZodObject<{
6779
8276
  briefId: z.ZodString;
@@ -6818,9 +8315,19 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6818
8315
  id: string;
6819
8316
  path: string;
6820
8317
  transport: "file";
8318
+ mimeType?: string | undefined;
6821
8319
  label?: string | undefined;
6822
8320
  userIntent?: string | undefined;
6823
- mimeType?: string | undefined;
8321
+ references?: {
8322
+ id: string;
8323
+ url: string;
8324
+ title: string;
8325
+ image?: {
8326
+ hash: string;
8327
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8328
+ } | undefined;
8329
+ reason?: string | undefined;
8330
+ }[] | undefined;
6824
8331
  originalFilename?: string | undefined;
6825
8332
  } | {
6826
8333
  id: string;
@@ -6834,6 +8341,16 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6834
8341
  transport: "text";
6835
8342
  label?: string | undefined;
6836
8343
  userIntent?: string | undefined;
8344
+ references?: {
8345
+ id: string;
8346
+ url: string;
8347
+ title: string;
8348
+ image?: {
8349
+ hash: string;
8350
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8351
+ } | undefined;
8352
+ reason?: string | undefined;
8353
+ }[] | undefined;
6837
8354
  })[];
6838
8355
  rivetMetadata: ({
6839
8356
  id: string;
@@ -6871,14 +8388,24 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6871
8388
  actionId?: string | undefined;
6872
8389
  warnings?: string[] | undefined;
6873
8390
  })[];
8391
+ references?: {
8392
+ id: string;
8393
+ url: string;
8394
+ title: string;
8395
+ image?: {
8396
+ hash: string;
8397
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8398
+ } | undefined;
8399
+ reason?: string | undefined;
8400
+ }[] | undefined;
6874
8401
  contextAssets?: {
6875
8402
  id: string;
6876
8403
  path: string;
6877
8404
  originalFilename: string;
6878
8405
  sizeBytes: number;
6879
8406
  sha256: string;
6880
- label?: string | undefined;
6881
8407
  mimeType?: string | undefined;
8408
+ label?: string | undefined;
6882
8409
  }[] | undefined;
6883
8410
  executionMode?: "static_preview" | "vite_app" | undefined;
6884
8411
  }, {
@@ -6904,9 +8431,16 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6904
8431
  id: string;
6905
8432
  path: string;
6906
8433
  transport: "file";
8434
+ mimeType?: string | undefined;
6907
8435
  label?: string | undefined;
6908
8436
  userIntent?: string | undefined;
6909
- mimeType?: string | undefined;
8437
+ references?: {
8438
+ id: string;
8439
+ url: string;
8440
+ title: string;
8441
+ image?: unknown;
8442
+ reason?: string | undefined;
8443
+ }[] | undefined;
6910
8444
  originalFilename?: string | undefined;
6911
8445
  } | {
6912
8446
  id: string;
@@ -6920,6 +8454,13 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6920
8454
  transport: "text";
6921
8455
  label?: string | undefined;
6922
8456
  userIntent?: string | undefined;
8457
+ references?: {
8458
+ id: string;
8459
+ url: string;
8460
+ title: string;
8461
+ image?: unknown;
8462
+ reason?: string | undefined;
8463
+ }[] | undefined;
6923
8464
  })[];
6924
8465
  rivetMetadata: ({
6925
8466
  id: string;
@@ -6957,14 +8498,21 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
6957
8498
  actionId?: string | undefined;
6958
8499
  warnings?: string[] | undefined;
6959
8500
  })[];
8501
+ references?: {
8502
+ id: string;
8503
+ url: string;
8504
+ title: string;
8505
+ image?: unknown;
8506
+ reason?: string | undefined;
8507
+ }[] | undefined;
6960
8508
  contextAssets?: {
6961
8509
  id: string;
6962
8510
  path: string;
6963
8511
  originalFilename: string;
6964
8512
  sizeBytes: number;
6965
8513
  sha256: string;
6966
- label?: string | undefined;
6967
8514
  mimeType?: string | undefined;
8515
+ label?: string | undefined;
6968
8516
  }[] | undefined;
6969
8517
  executionMode?: "static_preview" | "vite_app" | undefined;
6970
8518
  }>;
@@ -7050,6 +8598,37 @@ export declare const proposeVariantsInput: {
7050
8598
  }>, z.ZodObject<{
7051
8599
  id: z.ZodString;
7052
8600
  transport: z.ZodLiteral<"file">;
8601
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
8602
+ id: z.ZodString;
8603
+ title: z.ZodString;
8604
+ url: z.ZodEffects<z.ZodString, string, string>;
8605
+ reason: z.ZodOptional<z.ZodString>;
8606
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
8607
+ hash: z.ZodString;
8608
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
8609
+ }, "strip", z.ZodTypeAny, {
8610
+ hash: string;
8611
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8612
+ }, {
8613
+ hash: string;
8614
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8615
+ }>>>;
8616
+ }, "strip", z.ZodTypeAny, {
8617
+ id: string;
8618
+ url: string;
8619
+ title: string;
8620
+ image?: {
8621
+ hash: string;
8622
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8623
+ } | undefined;
8624
+ reason?: string | undefined;
8625
+ }, {
8626
+ id: string;
8627
+ url: string;
8628
+ title: string;
8629
+ image?: unknown;
8630
+ reason?: string | undefined;
8631
+ }>, "many">>;
7053
8632
  path: z.ZodString;
7054
8633
  mimeType: z.ZodOptional<z.ZodString>;
7055
8634
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -7059,17 +8638,34 @@ export declare const proposeVariantsInput: {
7059
8638
  id: string;
7060
8639
  path: string;
7061
8640
  transport: "file";
8641
+ mimeType?: string | undefined;
7062
8642
  label?: string | undefined;
7063
8643
  userIntent?: string | undefined;
7064
- mimeType?: string | undefined;
8644
+ references?: {
8645
+ id: string;
8646
+ url: string;
8647
+ title: string;
8648
+ image?: {
8649
+ hash: string;
8650
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8651
+ } | undefined;
8652
+ reason?: string | undefined;
8653
+ }[] | undefined;
7065
8654
  originalFilename?: string | undefined;
7066
8655
  }, {
7067
8656
  id: string;
7068
8657
  path: string;
7069
8658
  transport: "file";
8659
+ mimeType?: string | undefined;
7070
8660
  label?: string | undefined;
7071
8661
  userIntent?: string | undefined;
7072
- mimeType?: string | undefined;
8662
+ references?: {
8663
+ id: string;
8664
+ url: string;
8665
+ title: string;
8666
+ image?: unknown;
8667
+ reason?: string | undefined;
8668
+ }[] | undefined;
7073
8669
  originalFilename?: string | undefined;
7074
8670
  }>, z.ZodObject<{
7075
8671
  id: z.ZodString;
@@ -7092,6 +8688,37 @@ export declare const proposeVariantsInput: {
7092
8688
  }>, z.ZodObject<{
7093
8689
  id: z.ZodString;
7094
8690
  transport: z.ZodLiteral<"text">;
8691
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
8692
+ id: z.ZodString;
8693
+ title: z.ZodString;
8694
+ url: z.ZodEffects<z.ZodString, string, string>;
8695
+ reason: z.ZodOptional<z.ZodString>;
8696
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
8697
+ hash: z.ZodString;
8698
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
8699
+ }, "strip", z.ZodTypeAny, {
8700
+ hash: string;
8701
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8702
+ }, {
8703
+ hash: string;
8704
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8705
+ }>>>;
8706
+ }, "strip", z.ZodTypeAny, {
8707
+ id: string;
8708
+ url: string;
8709
+ title: string;
8710
+ image?: {
8711
+ hash: string;
8712
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8713
+ } | undefined;
8714
+ reason?: string | undefined;
8715
+ }, {
8716
+ id: string;
8717
+ url: string;
8718
+ title: string;
8719
+ image?: unknown;
8720
+ reason?: string | undefined;
8721
+ }>, "many">>;
7095
8722
  path: z.ZodString;
7096
8723
  label: z.ZodOptional<z.ZodString>;
7097
8724
  userIntent: z.ZodOptional<z.ZodString>;
@@ -7101,12 +8728,29 @@ export declare const proposeVariantsInput: {
7101
8728
  transport: "text";
7102
8729
  label?: string | undefined;
7103
8730
  userIntent?: string | undefined;
8731
+ references?: {
8732
+ id: string;
8733
+ url: string;
8734
+ title: string;
8735
+ image?: {
8736
+ hash: string;
8737
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
8738
+ } | undefined;
8739
+ reason?: string | undefined;
8740
+ }[] | undefined;
7104
8741
  }, {
7105
8742
  id: string;
7106
8743
  path: string;
7107
8744
  transport: "text";
7108
8745
  label?: string | undefined;
7109
8746
  userIntent?: string | undefined;
8747
+ references?: {
8748
+ id: string;
8749
+ url: string;
8750
+ title: string;
8751
+ image?: unknown;
8752
+ reason?: string | undefined;
8753
+ }[] | undefined;
7110
8754
  }>]>, "many">;
7111
8755
  rivetActions: z.ZodArray<z.ZodObject<{
7112
8756
  id: z.ZodString;
@@ -7291,16 +8935,16 @@ export declare const proposeVariantsInput: {
7291
8935
  originalFilename: string;
7292
8936
  sizeBytes: number;
7293
8937
  sha256: string;
7294
- label?: string | undefined;
7295
8938
  mimeType?: string | undefined;
8939
+ label?: string | undefined;
7296
8940
  }, {
7297
8941
  id: string;
7298
8942
  path: string;
7299
8943
  originalFilename: string;
7300
8944
  sizeBytes: number;
7301
8945
  sha256: string;
7302
- label?: string | undefined;
7303
8946
  mimeType?: string | undefined;
8947
+ label?: string | undefined;
7304
8948
  }>, "many">>;
7305
8949
  bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
7306
8950
  kind: z.ZodLiteral<"global">;
@@ -7396,9 +9040,19 @@ export declare const proposeVariantsInput: {
7396
9040
  id: string;
7397
9041
  path: string;
7398
9042
  transport: "file";
9043
+ mimeType?: string | undefined;
7399
9044
  label?: string | undefined;
7400
9045
  userIntent?: string | undefined;
7401
- mimeType?: string | undefined;
9046
+ references?: {
9047
+ id: string;
9048
+ url: string;
9049
+ title: string;
9050
+ image?: {
9051
+ hash: string;
9052
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9053
+ } | undefined;
9054
+ reason?: string | undefined;
9055
+ }[] | undefined;
7402
9056
  originalFilename?: string | undefined;
7403
9057
  } | {
7404
9058
  id: string;
@@ -7412,6 +9066,16 @@ export declare const proposeVariantsInput: {
7412
9066
  transport: "text";
7413
9067
  label?: string | undefined;
7414
9068
  userIntent?: string | undefined;
9069
+ references?: {
9070
+ id: string;
9071
+ url: string;
9072
+ title: string;
9073
+ image?: {
9074
+ hash: string;
9075
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9076
+ } | undefined;
9077
+ reason?: string | undefined;
9078
+ }[] | undefined;
7415
9079
  })[];
7416
9080
  rivetActions: {
7417
9081
  id: string;
@@ -7462,8 +9126,8 @@ export declare const proposeVariantsInput: {
7462
9126
  originalFilename: string;
7463
9127
  sizeBytes: number;
7464
9128
  sha256: string;
7465
- label?: string | undefined;
7466
9129
  mimeType?: string | undefined;
9130
+ label?: string | undefined;
7467
9131
  }[] | undefined;
7468
9132
  bindings?: ({
7469
9133
  kind: "global";
@@ -7507,9 +9171,16 @@ export declare const proposeVariantsInput: {
7507
9171
  id: string;
7508
9172
  path: string;
7509
9173
  transport: "file";
9174
+ mimeType?: string | undefined;
7510
9175
  label?: string | undefined;
7511
9176
  userIntent?: string | undefined;
7512
- mimeType?: string | undefined;
9177
+ references?: {
9178
+ id: string;
9179
+ url: string;
9180
+ title: string;
9181
+ image?: unknown;
9182
+ reason?: string | undefined;
9183
+ }[] | undefined;
7513
9184
  originalFilename?: string | undefined;
7514
9185
  } | {
7515
9186
  id: string;
@@ -7523,6 +9194,13 @@ export declare const proposeVariantsInput: {
7523
9194
  transport: "text";
7524
9195
  label?: string | undefined;
7525
9196
  userIntent?: string | undefined;
9197
+ references?: {
9198
+ id: string;
9199
+ url: string;
9200
+ title: string;
9201
+ image?: unknown;
9202
+ reason?: string | undefined;
9203
+ }[] | undefined;
7526
9204
  })[];
7527
9205
  rivetActions: {
7528
9206
  id: string;
@@ -7573,8 +9251,8 @@ export declare const proposeVariantsInput: {
7573
9251
  originalFilename: string;
7574
9252
  sizeBytes: number;
7575
9253
  sha256: string;
7576
- label?: string | undefined;
7577
9254
  mimeType?: string | undefined;
9255
+ label?: string | undefined;
7578
9256
  }[] | undefined;
7579
9257
  bindings?: ({
7580
9258
  kind: "global";
@@ -7688,6 +9366,37 @@ export declare const proposeVariantsInput: {
7688
9366
  }>, z.ZodObject<{
7689
9367
  id: z.ZodString;
7690
9368
  transport: z.ZodLiteral<"file">;
9369
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
9370
+ id: z.ZodString;
9371
+ title: z.ZodString;
9372
+ url: z.ZodEffects<z.ZodString, string, string>;
9373
+ reason: z.ZodOptional<z.ZodString>;
9374
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
9375
+ hash: z.ZodString;
9376
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
9377
+ }, "strip", z.ZodTypeAny, {
9378
+ hash: string;
9379
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9380
+ }, {
9381
+ hash: string;
9382
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9383
+ }>>>;
9384
+ }, "strip", z.ZodTypeAny, {
9385
+ id: string;
9386
+ url: string;
9387
+ title: string;
9388
+ image?: {
9389
+ hash: string;
9390
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9391
+ } | undefined;
9392
+ reason?: string | undefined;
9393
+ }, {
9394
+ id: string;
9395
+ url: string;
9396
+ title: string;
9397
+ image?: unknown;
9398
+ reason?: string | undefined;
9399
+ }>, "many">>;
7691
9400
  path: z.ZodString;
7692
9401
  mimeType: z.ZodOptional<z.ZodString>;
7693
9402
  originalFilename: z.ZodOptional<z.ZodString>;
@@ -7697,17 +9406,34 @@ export declare const proposeVariantsInput: {
7697
9406
  id: string;
7698
9407
  path: string;
7699
9408
  transport: "file";
9409
+ mimeType?: string | undefined;
7700
9410
  label?: string | undefined;
7701
9411
  userIntent?: string | undefined;
7702
- mimeType?: string | undefined;
9412
+ references?: {
9413
+ id: string;
9414
+ url: string;
9415
+ title: string;
9416
+ image?: {
9417
+ hash: string;
9418
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9419
+ } | undefined;
9420
+ reason?: string | undefined;
9421
+ }[] | undefined;
7703
9422
  originalFilename?: string | undefined;
7704
9423
  }, {
7705
9424
  id: string;
7706
9425
  path: string;
7707
9426
  transport: "file";
9427
+ mimeType?: string | undefined;
7708
9428
  label?: string | undefined;
7709
9429
  userIntent?: string | undefined;
7710
- mimeType?: string | undefined;
9430
+ references?: {
9431
+ id: string;
9432
+ url: string;
9433
+ title: string;
9434
+ image?: unknown;
9435
+ reason?: string | undefined;
9436
+ }[] | undefined;
7711
9437
  originalFilename?: string | undefined;
7712
9438
  }>, z.ZodObject<{
7713
9439
  id: z.ZodString;
@@ -7730,6 +9456,37 @@ export declare const proposeVariantsInput: {
7730
9456
  }>, z.ZodObject<{
7731
9457
  id: z.ZodString;
7732
9458
  transport: z.ZodLiteral<"text">;
9459
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
9460
+ id: z.ZodString;
9461
+ title: z.ZodString;
9462
+ url: z.ZodEffects<z.ZodString, string, string>;
9463
+ reason: z.ZodOptional<z.ZodString>;
9464
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
9465
+ hash: z.ZodString;
9466
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
9467
+ }, "strip", z.ZodTypeAny, {
9468
+ hash: string;
9469
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9470
+ }, {
9471
+ hash: string;
9472
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9473
+ }>>>;
9474
+ }, "strip", z.ZodTypeAny, {
9475
+ id: string;
9476
+ url: string;
9477
+ title: string;
9478
+ image?: {
9479
+ hash: string;
9480
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9481
+ } | undefined;
9482
+ reason?: string | undefined;
9483
+ }, {
9484
+ id: string;
9485
+ url: string;
9486
+ title: string;
9487
+ image?: unknown;
9488
+ reason?: string | undefined;
9489
+ }>, "many">>;
7733
9490
  path: z.ZodString;
7734
9491
  label: z.ZodOptional<z.ZodString>;
7735
9492
  userIntent: z.ZodOptional<z.ZodString>;
@@ -7739,12 +9496,29 @@ export declare const proposeVariantsInput: {
7739
9496
  transport: "text";
7740
9497
  label?: string | undefined;
7741
9498
  userIntent?: string | undefined;
9499
+ references?: {
9500
+ id: string;
9501
+ url: string;
9502
+ title: string;
9503
+ image?: {
9504
+ hash: string;
9505
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9506
+ } | undefined;
9507
+ reason?: string | undefined;
9508
+ }[] | undefined;
7742
9509
  }, {
7743
9510
  id: string;
7744
9511
  path: string;
7745
9512
  transport: "text";
7746
9513
  label?: string | undefined;
7747
9514
  userIntent?: string | undefined;
9515
+ references?: {
9516
+ id: string;
9517
+ url: string;
9518
+ title: string;
9519
+ image?: unknown;
9520
+ reason?: string | undefined;
9521
+ }[] | undefined;
7748
9522
  }>]>, "many">;
7749
9523
  rivetActions: z.ZodArray<z.ZodObject<{
7750
9524
  id: z.ZodString;
@@ -7929,16 +9703,16 @@ export declare const proposeVariantsInput: {
7929
9703
  originalFilename: string;
7930
9704
  sizeBytes: number;
7931
9705
  sha256: string;
7932
- label?: string | undefined;
7933
9706
  mimeType?: string | undefined;
9707
+ label?: string | undefined;
7934
9708
  }, {
7935
9709
  id: string;
7936
9710
  path: string;
7937
9711
  originalFilename: string;
7938
9712
  sizeBytes: number;
7939
9713
  sha256: string;
7940
- label?: string | undefined;
7941
9714
  mimeType?: string | undefined;
9715
+ label?: string | undefined;
7942
9716
  }>, "many">>;
7943
9717
  bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
7944
9718
  kind: z.ZodLiteral<"global">;
@@ -8034,9 +9808,19 @@ export declare const proposeVariantsInput: {
8034
9808
  id: string;
8035
9809
  path: string;
8036
9810
  transport: "file";
9811
+ mimeType?: string | undefined;
8037
9812
  label?: string | undefined;
8038
9813
  userIntent?: string | undefined;
8039
- mimeType?: string | undefined;
9814
+ references?: {
9815
+ id: string;
9816
+ url: string;
9817
+ title: string;
9818
+ image?: {
9819
+ hash: string;
9820
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9821
+ } | undefined;
9822
+ reason?: string | undefined;
9823
+ }[] | undefined;
8040
9824
  originalFilename?: string | undefined;
8041
9825
  } | {
8042
9826
  id: string;
@@ -8050,6 +9834,16 @@ export declare const proposeVariantsInput: {
8050
9834
  transport: "text";
8051
9835
  label?: string | undefined;
8052
9836
  userIntent?: string | undefined;
9837
+ references?: {
9838
+ id: string;
9839
+ url: string;
9840
+ title: string;
9841
+ image?: {
9842
+ hash: string;
9843
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
9844
+ } | undefined;
9845
+ reason?: string | undefined;
9846
+ }[] | undefined;
8053
9847
  })[];
8054
9848
  rivetActions: {
8055
9849
  id: string;
@@ -8100,8 +9894,8 @@ export declare const proposeVariantsInput: {
8100
9894
  originalFilename: string;
8101
9895
  sizeBytes: number;
8102
9896
  sha256: string;
8103
- label?: string | undefined;
8104
9897
  mimeType?: string | undefined;
9898
+ label?: string | undefined;
8105
9899
  }[] | undefined;
8106
9900
  bindings?: ({
8107
9901
  kind: "global";
@@ -8145,9 +9939,16 @@ export declare const proposeVariantsInput: {
8145
9939
  id: string;
8146
9940
  path: string;
8147
9941
  transport: "file";
9942
+ mimeType?: string | undefined;
8148
9943
  label?: string | undefined;
8149
9944
  userIntent?: string | undefined;
8150
- mimeType?: string | undefined;
9945
+ references?: {
9946
+ id: string;
9947
+ url: string;
9948
+ title: string;
9949
+ image?: unknown;
9950
+ reason?: string | undefined;
9951
+ }[] | undefined;
8151
9952
  originalFilename?: string | undefined;
8152
9953
  } | {
8153
9954
  id: string;
@@ -8161,6 +9962,13 @@ export declare const proposeVariantsInput: {
8161
9962
  transport: "text";
8162
9963
  label?: string | undefined;
8163
9964
  userIntent?: string | undefined;
9965
+ references?: {
9966
+ id: string;
9967
+ url: string;
9968
+ title: string;
9969
+ image?: unknown;
9970
+ reason?: string | undefined;
9971
+ }[] | undefined;
8164
9972
  })[];
8165
9973
  rivetActions: {
8166
9974
  id: string;
@@ -8211,8 +10019,8 @@ export declare const proposeVariantsInput: {
8211
10019
  originalFilename: string;
8212
10020
  sizeBytes: number;
8213
10021
  sha256: string;
8214
- label?: string | undefined;
8215
10022
  mimeType?: string | undefined;
10023
+ label?: string | undefined;
8216
10024
  }[] | undefined;
8217
10025
  bindings?: ({
8218
10026
  kind: "global";
@@ -9890,17 +11698,48 @@ export declare const startVariantsInput: {
9890
11698
  }, "strip", z.ZodTypeAny, {
9891
11699
  path: string;
9892
11700
  transport: "file_path";
11701
+ mimeType?: string | undefined;
9893
11702
  label?: string | undefined;
9894
11703
  userIntent?: string | undefined;
9895
- mimeType?: string | undefined;
9896
11704
  }, {
9897
11705
  path: string;
9898
11706
  transport: "file_path";
11707
+ mimeType?: string | undefined;
9899
11708
  label?: string | undefined;
9900
11709
  userIntent?: string | undefined;
9901
- mimeType?: string | undefined;
9902
11710
  }>, z.ZodObject<{
9903
11711
  transport: z.ZodLiteral<"upload">;
11712
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
11713
+ id: z.ZodString;
11714
+ title: z.ZodString;
11715
+ url: z.ZodEffects<z.ZodString, string, string>;
11716
+ reason: z.ZodOptional<z.ZodString>;
11717
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
11718
+ hash: z.ZodString;
11719
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
11720
+ }, "strip", z.ZodTypeAny, {
11721
+ hash: string;
11722
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
11723
+ }, {
11724
+ hash: string;
11725
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
11726
+ }>>>;
11727
+ }, "strip", z.ZodTypeAny, {
11728
+ id: string;
11729
+ url: string;
11730
+ title: string;
11731
+ image?: {
11732
+ hash: string;
11733
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
11734
+ } | undefined;
11735
+ reason?: string | undefined;
11736
+ }, {
11737
+ id: string;
11738
+ url: string;
11739
+ title: string;
11740
+ image?: unknown;
11741
+ reason?: string | undefined;
11742
+ }>, "many">>;
9904
11743
  dataUrl: z.ZodString;
9905
11744
  filename: z.ZodOptional<z.ZodString>;
9906
11745
  label: z.ZodOptional<z.ZodString>;
@@ -9910,12 +11749,29 @@ export declare const startVariantsInput: {
9910
11749
  dataUrl: string;
9911
11750
  label?: string | undefined;
9912
11751
  userIntent?: string | undefined;
11752
+ references?: {
11753
+ id: string;
11754
+ url: string;
11755
+ title: string;
11756
+ image?: {
11757
+ hash: string;
11758
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
11759
+ } | undefined;
11760
+ reason?: string | undefined;
11761
+ }[] | undefined;
9913
11762
  filename?: string | undefined;
9914
11763
  }, {
9915
11764
  transport: "upload";
9916
11765
  dataUrl: string;
9917
11766
  label?: string | undefined;
9918
11767
  userIntent?: string | undefined;
11768
+ references?: {
11769
+ id: string;
11770
+ url: string;
11771
+ title: string;
11772
+ image?: unknown;
11773
+ reason?: string | undefined;
11774
+ }[] | undefined;
9919
11775
  filename?: string | undefined;
9920
11776
  }>, z.ZodObject<{
9921
11777
  transport: z.ZodLiteral<"directory_path">;
@@ -9934,6 +11790,37 @@ export declare const startVariantsInput: {
9934
11790
  userIntent?: string | undefined;
9935
11791
  }>, z.ZodObject<{
9936
11792
  transport: z.ZodLiteral<"text">;
11793
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
11794
+ id: z.ZodString;
11795
+ title: z.ZodString;
11796
+ url: z.ZodEffects<z.ZodString, string, string>;
11797
+ reason: z.ZodOptional<z.ZodString>;
11798
+ image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
11799
+ hash: z.ZodString;
11800
+ mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
11801
+ }, "strip", z.ZodTypeAny, {
11802
+ hash: string;
11803
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
11804
+ }, {
11805
+ hash: string;
11806
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
11807
+ }>>>;
11808
+ }, "strip", z.ZodTypeAny, {
11809
+ id: string;
11810
+ url: string;
11811
+ title: string;
11812
+ image?: {
11813
+ hash: string;
11814
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
11815
+ } | undefined;
11816
+ reason?: string | undefined;
11817
+ }, {
11818
+ id: string;
11819
+ url: string;
11820
+ title: string;
11821
+ image?: unknown;
11822
+ reason?: string | undefined;
11823
+ }>, "many">>;
9937
11824
  content: z.ZodString;
9938
11825
  label: z.ZodOptional<z.ZodString>;
9939
11826
  userIntent: z.ZodOptional<z.ZodString>;
@@ -9942,11 +11829,28 @@ export declare const startVariantsInput: {
9942
11829
  transport: "text";
9943
11830
  label?: string | undefined;
9944
11831
  userIntent?: string | undefined;
11832
+ references?: {
11833
+ id: string;
11834
+ url: string;
11835
+ title: string;
11836
+ image?: {
11837
+ hash: string;
11838
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
11839
+ } | undefined;
11840
+ reason?: string | undefined;
11841
+ }[] | undefined;
9945
11842
  }, {
9946
11843
  content: string;
9947
11844
  transport: "text";
9948
11845
  label?: string | undefined;
9949
11846
  userIntent?: string | undefined;
11847
+ references?: {
11848
+ id: string;
11849
+ url: string;
11850
+ title: string;
11851
+ image?: unknown;
11852
+ reason?: string | undefined;
11853
+ }[] | undefined;
9950
11854
  }>]>, "many">>;
9951
11855
  clientRequestId: z.ZodOptional<z.ZodString>;
9952
11856
  requestId: z.ZodOptional<z.ZodString>;