rivet-design 0.26.1 → 0.26.2

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 (93) hide show
  1. package/bin/rivet.js +13 -0
  2. package/dist/agent-variants/WorkerExecutorService.d.ts +0 -2
  3. package/dist/agent-variants/WorkerExecutorService.js +0 -18
  4. package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -8
  5. package/dist/agent-variants/contracts.d.ts +897 -4764
  6. package/dist/agent-variants/contracts.js +1 -121
  7. package/dist/agent-variants/index.d.ts +1 -1
  8. package/dist/agent-variants/variantsTelemetry.d.ts +0 -8
  9. package/dist/agent-variants/workItemInput.d.ts +278 -278
  10. package/dist/cli/commands/contextRequest.js +1 -1
  11. package/dist/cli/commands/guidanceReferences.d.ts +2 -2
  12. package/dist/cli/commands/guidanceVerifierPackage.d.ts +2 -2
  13. package/dist/cli/editorSession.d.ts +1 -13
  14. package/dist/cli/runtimeInterruption.d.ts +2 -16
  15. package/dist/config/pluginMetrics.js +0 -1
  16. package/dist/hosts/workerDefaults.d.ts +0 -11
  17. package/dist/hosts/workerDefaults.js +1 -30
  18. package/dist/index-core.d.ts +0 -1
  19. package/dist/index.js +1 -1
  20. package/dist/install/automaticCliUpdate.d.ts +1 -0
  21. package/dist/install/automaticCliUpdate.js +32 -22
  22. package/dist/install/channelCli.d.ts +1 -1
  23. package/dist/install/channelCli.js +11 -6
  24. package/dist/install/channelManager.d.ts +5 -2
  25. package/dist/install/globalBootstrap.d.ts +5 -3
  26. package/dist/install/globalBootstrap.js +21 -9
  27. package/dist/install/npmCommand.d.ts +15 -0
  28. package/dist/install/npmCommand.js +59 -0
  29. package/dist/routes/agentVariants.js +3 -14
  30. package/dist/routes/library/browserAccess.js +6 -2
  31. package/dist/routes/library/guidance.js +3 -1
  32. package/dist/routes/library/middleware.js +4 -4
  33. package/dist/routes/library/navigation.js +3 -1
  34. package/dist/routes/library/profiles.js +5 -5
  35. package/dist/routes/library/projects.js +17 -7
  36. package/dist/routes/library/referenceOnboarding.js +4 -2
  37. package/dist/routes/library/schemas.d.ts +2 -15
  38. package/dist/routes/telemetry.js +1 -1
  39. package/dist/routes/variantRequestSchema.d.ts +4 -4
  40. package/dist/routes/variantRequestSchema.js +7 -2
  41. package/dist/services/AuthService.d.ts +3 -56
  42. package/dist/services/AuthService.js +0 -28
  43. package/dist/services/ConfigManager.d.ts +0 -2
  44. package/dist/services/ConfigManager.js +0 -14
  45. package/dist/services/HubDiscovery.d.ts +1 -9
  46. package/dist/services/IntegrationsClient.d.ts +16 -16
  47. package/dist/services/MCPOnboardingTelemetry.d.ts +0 -14
  48. package/dist/services/MCPOnboardingTelemetry.js +0 -62
  49. package/dist/services/ProjectRegistry.d.ts +5 -24
  50. package/dist/services/TelemetryService.d.ts +1 -62
  51. package/dist/services/TelemetryService.js +0 -113
  52. package/dist/services/TreeStore.d.ts +0 -2
  53. package/dist/services/TreeStore.js +0 -24
  54. package/dist/services/profiles/DesignProfiles.d.ts +180 -125
  55. package/dist/services/profiles/ProfilePlanning.d.ts +38 -38
  56. package/dist/services/profiles/ReferenceReader.d.ts +14 -14
  57. package/dist/services/profiles/modelContract.js +4 -4
  58. package/dist/storage/library/ProjectPreviewCache.d.ts +1 -13
  59. package/dist/storage/profiles/ProfilePlans.d.ts +137 -137
  60. package/dist/storage/profiles/ProfileRecords.d.ts +62 -37
  61. package/dist/storage/profiles/planSchema.d.ts +40 -40
  62. package/dist/storage/profiles/schema.d.ts +16 -16
  63. package/dist/types/api-responses.d.ts +174 -0
  64. package/dist/types/api-responses.js +108 -0
  65. package/dist/types/cosmos-profile.d.ts +17 -105
  66. package/dist/types/cosmos.d.ts +48 -266
  67. package/dist/types/design-library.d.ts +230 -61
  68. package/dist/types/design-library.js +38 -1
  69. package/dist/types/design-profile.d.ts +220 -529
  70. package/dist/types/design-profile.js +5 -1
  71. package/dist/types/guidance-references.d.ts +68 -316
  72. package/dist/types/guidance-verifier.d.ts +65 -558
  73. package/dist/types/guidance-verifier.js +1 -1
  74. package/dist/types/guidance.d.ts +182 -1643
  75. package/dist/types/guidance.js +4 -1
  76. package/dist/types/project-library.d.ts +60 -30
  77. package/dist/types/project-library.js +32 -1
  78. package/dist/types/reference-connectors.d.ts +38 -162
  79. package/dist/types/reference-onboarding.d.ts +144 -878
  80. package/dist/types/reference-pages.d.ts +27 -139
  81. package/dist/types/x-bookmarks.d.ts +40 -296
  82. package/dist/utils/displayLocale.d.ts +0 -1
  83. package/dist/utils/displayLocale.js +1 -3
  84. package/package.json +4 -4
  85. package/src/ui/dist/assets/LibraryEntry-92R_T-Xa.js +37 -0
  86. package/src/ui/dist/assets/main-D0UmAaUe.css +1 -0
  87. package/src/ui/dist/assets/main-DgEfJvYu.js +497 -0
  88. package/src/ui/dist/index.html +2 -2
  89. package/dist/types/change-types.d.ts +0 -66
  90. package/dist/types/change-types.js +0 -3
  91. package/src/ui/dist/assets/LibraryEntry-Cr4GFYXW.js +0 -37
  92. package/src/ui/dist/assets/main-W3oTuTTl.css +0 -1
  93. package/src/ui/dist/assets/main-tPO1OCpZ.js +0 -439
@@ -4,254 +4,211 @@ export declare const PROFILE_UPLOAD_COUNT = 100;
4
4
  export declare const PROFILE_UPLOAD_BYTES: number;
5
5
  export declare const PROFILE_UPLOAD_ENCODED_BYTES: number;
6
6
  export declare const PROFILE_PREPARATION_BODY_BYTES: number;
7
- export declare const RemoteProfileProviderSchema: z.ZodEnum<["pinterest", "arena", "x", "cosmos"]>;
7
+ export declare const RemoteProfileProviderSchema: z.ZodEnum<{
8
+ pinterest: "pinterest";
9
+ arena: "arena";
10
+ cosmos: "cosmos";
11
+ x: "x";
12
+ }>;
8
13
  export interface ProfileCollectionProgress {
9
14
  id: string;
10
15
  total: number;
11
16
  isComplete: boolean;
12
17
  }
13
18
  export declare const isRemoteProfileProvider: (value: string) => value is z.infer<typeof RemoteProfileProviderSchema>;
14
- export declare const ProfileProviderSchema: z.ZodEnum<["image", "pinterest", "arena", "x", "cosmos", "text", "pdf", "variant"]>;
15
- export declare const ProfileRuntimeSchema: z.ZodEnum<["codex", "claude", "cursor"]>;
19
+ export declare const ProfileProviderSchema: z.ZodEnum<{
20
+ variant: "variant";
21
+ text: "text";
22
+ pinterest: "pinterest";
23
+ arena: "arena";
24
+ cosmos: "cosmos";
25
+ x: "x";
26
+ image: "image";
27
+ pdf: "pdf";
28
+ }>;
29
+ export declare const ProfileRuntimeSchema: z.ZodEnum<{
30
+ claude: "claude";
31
+ codex: "codex";
32
+ cursor: "cursor";
33
+ }>;
16
34
  export declare const ProfileVariantIdentitySchema: z.ZodObject<{
17
35
  projectId: z.ZodString;
18
36
  sessionId: z.ZodString;
19
37
  variantId: z.ZodString;
20
- }, "strict", z.ZodTypeAny, {
21
- projectId: string;
22
- sessionId: string;
23
- variantId: string;
24
- }, {
25
- projectId: string;
26
- sessionId: string;
27
- variantId: string;
28
- }>;
38
+ }, z.core.$strict>;
29
39
  export declare const ProfileVariantInputSchema: z.ZodObject<{
30
40
  projectId: z.ZodString;
31
41
  sessionId: z.ZodString;
32
42
  variantId: z.ZodString;
33
- } & {
34
- runtime: z.ZodEnum<["codex", "claude", "cursor"]>;
43
+ runtime: z.ZodEnum<{
44
+ claude: "claude";
45
+ codex: "codex";
46
+ cursor: "cursor";
47
+ }>;
35
48
  note: z.ZodOptional<z.ZodString>;
36
49
  imageFile: z.ZodOptional<z.ZodString>;
37
- }, "strict", z.ZodTypeAny, {
38
- runtime: "claude" | "codex" | "cursor";
39
- projectId: string;
40
- sessionId: string;
41
- variantId: string;
42
- note?: string | undefined;
43
- imageFile?: string | undefined;
44
- }, {
45
- runtime: "claude" | "codex" | "cursor";
46
- projectId: string;
47
- sessionId: string;
48
- variantId: string;
49
- note?: string | undefined;
50
- imageFile?: string | undefined;
51
- }>;
50
+ }, z.core.$strict>;
52
51
  export type ProfileVariantInput = z.infer<typeof ProfileVariantInputSchema>;
53
52
  export declare const ProfileMediaSchema: z.ZodObject<{
54
53
  hash: z.ZodString;
55
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
54
+ mimeType: z.ZodEnum<{
55
+ "image/png": "image/png";
56
+ "image/jpeg": "image/jpeg";
57
+ "image/webp": "image/webp";
58
+ "image/gif": "image/gif";
59
+ }>;
56
60
  bytes: z.ZodNumber;
57
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
61
+ representation: z.ZodDefault<z.ZodEnum<{
62
+ variant: "variant";
63
+ image: "image";
64
+ "video-cover": "video-cover";
65
+ page: "page";
66
+ }>>;
58
67
  page: z.ZodOptional<z.ZodNumber>;
59
- }, "strip", z.ZodTypeAny, {
60
- hash: string;
61
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
62
- bytes: number;
63
- representation: "variant" | "image" | "video-cover" | "page";
64
- page?: number | undefined;
65
- }, {
66
- hash: string;
67
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
68
- bytes: number;
69
- page?: number | undefined;
70
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
71
- }>;
68
+ }, z.core.$strip>;
72
69
  export declare const ProfileSourceInputSchema: z.ZodObject<{
73
- provider: z.ZodEnum<["image", "pinterest", "arena", "x", "cosmos", "text", "pdf", "variant"]>;
70
+ provider: z.ZodEnum<{
71
+ variant: "variant";
72
+ text: "text";
73
+ pinterest: "pinterest";
74
+ arena: "arena";
75
+ cosmos: "cosmos";
76
+ x: "x";
77
+ image: "image";
78
+ pdf: "pdf";
79
+ }>;
74
80
  remoteId: z.ZodString;
75
81
  title: z.ZodString;
76
82
  url: z.ZodOptional<z.ZodString>;
77
- }, "strip", z.ZodTypeAny, {
78
- title: string;
79
- provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
80
- remoteId: string;
81
- url?: string | undefined;
82
- }, {
83
- title: string;
84
- provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
85
- remoteId: string;
86
- url?: string | undefined;
87
- }>;
83
+ }, z.core.$strip>;
88
84
  export declare const ProfileReferenceInputSchema: z.ZodObject<{
89
- provider: z.ZodEnum<["image", "pinterest", "arena", "x", "cosmos", "text", "pdf", "variant"]>;
85
+ provider: z.ZodEnum<{
86
+ variant: "variant";
87
+ text: "text";
88
+ pinterest: "pinterest";
89
+ arena: "arena";
90
+ cosmos: "cosmos";
91
+ x: "x";
92
+ image: "image";
93
+ pdf: "pdf";
94
+ }>;
90
95
  remoteId: z.ZodString;
91
96
  title: z.ZodString;
92
97
  text: z.ZodString;
93
98
  url: z.ZodOptional<z.ZodString>;
94
99
  media: z.ZodArray<z.ZodObject<{
95
100
  hash: z.ZodString;
96
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
101
+ mimeType: z.ZodEnum<{
102
+ "image/png": "image/png";
103
+ "image/jpeg": "image/jpeg";
104
+ "image/webp": "image/webp";
105
+ "image/gif": "image/gif";
106
+ }>;
97
107
  bytes: z.ZodNumber;
98
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
108
+ representation: z.ZodDefault<z.ZodEnum<{
109
+ variant: "variant";
110
+ image: "image";
111
+ "video-cover": "video-cover";
112
+ page: "page";
113
+ }>>;
99
114
  page: z.ZodOptional<z.ZodNumber>;
100
- }, "strip", z.ZodTypeAny, {
101
- hash: string;
102
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
103
- bytes: number;
104
- representation: "variant" | "image" | "video-cover" | "page";
105
- page?: number | undefined;
106
- }, {
107
- hash: string;
108
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
109
- bytes: number;
110
- page?: number | undefined;
111
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
112
- }>, "many">;
113
- remoteImages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
114
- remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<["image", "video-cover"]>, "many">>;
115
+ }, z.core.$strip>>;
116
+ remoteImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
+ remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
118
+ image: "image";
119
+ "video-cover": "video-cover";
120
+ }>>>;
115
121
  unsupportedReason: z.ZodOptional<z.ZodString>;
116
122
  variant: z.ZodOptional<z.ZodObject<{
117
123
  projectId: z.ZodString;
118
124
  sessionId: z.ZodString;
119
125
  variantId: z.ZodString;
120
- } & {
121
126
  treeSha: z.ZodOptional<z.ZodString>;
122
- }, "strict", z.ZodTypeAny, {
123
- projectId: string;
124
- sessionId: string;
125
- variantId: string;
126
- treeSha?: string | undefined;
127
- }, {
128
- projectId: string;
129
- sessionId: string;
130
- variantId: string;
131
- treeSha?: string | undefined;
132
- }>>;
127
+ }, z.core.$strict>>;
133
128
  note: z.ZodOptional<z.ZodString>;
134
- }, "strip", z.ZodTypeAny, {
135
- title: string;
136
- text: string;
137
- provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
138
- remoteId: string;
139
- media: {
140
- hash: string;
141
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
142
- bytes: number;
143
- representation: "variant" | "image" | "video-cover" | "page";
144
- page?: number | undefined;
145
- }[];
146
- variant?: {
147
- projectId: string;
148
- sessionId: string;
149
- variantId: string;
150
- treeSha?: string | undefined;
151
- } | undefined;
152
- url?: string | undefined;
153
- note?: string | undefined;
154
- remoteImages?: string[] | undefined;
155
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
156
- unsupportedReason?: string | undefined;
157
- }, {
158
- title: string;
159
- text: string;
160
- provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
161
- remoteId: string;
162
- media: {
163
- hash: string;
164
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
165
- bytes: number;
166
- page?: number | undefined;
167
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
168
- }[];
169
- variant?: {
170
- projectId: string;
171
- sessionId: string;
172
- variantId: string;
173
- treeSha?: string | undefined;
174
- } | undefined;
175
- url?: string | undefined;
176
- note?: string | undefined;
177
- remoteImages?: string[] | undefined;
178
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
179
- unsupportedReason?: string | undefined;
180
- }>;
129
+ }, z.core.$strip>;
181
130
  export declare const ProfileUsageSchema: z.ZodObject<{
182
131
  inputTokens: z.ZodOptional<z.ZodNumber>;
183
132
  outputTokens: z.ZodOptional<z.ZodNumber>;
184
133
  cachedInputTokens: z.ZodOptional<z.ZodNumber>;
185
134
  allocation: z.ZodOptional<z.ZodLiteral<"equal-share">>;
186
- }, "strip", z.ZodTypeAny, {
187
- inputTokens?: number | undefined;
188
- outputTokens?: number | undefined;
189
- cachedInputTokens?: number | undefined;
190
- allocation?: "equal-share" | undefined;
191
- }, {
192
- inputTokens?: number | undefined;
193
- outputTokens?: number | undefined;
194
- cachedInputTokens?: number | undefined;
195
- allocation?: "equal-share" | undefined;
196
- }>;
135
+ }, z.core.$strip>;
197
136
  export type ProfileUsage = z.infer<typeof ProfileUsageSchema>;
198
137
  export declare const ProfileObservationSchema: z.ZodObject<{
199
138
  referenceId: z.ZodString;
200
139
  revision: z.ZodNumber;
201
140
  description: z.ZodString;
202
- runtime: z.ZodUnion<[z.ZodEnum<["codex", "claude", "cursor"]>, z.ZodLiteral<"user">]>;
203
- evidence: z.ZodEnum<["observation", "preference"]>;
141
+ runtime: z.ZodUnion<readonly [z.ZodEnum<{
142
+ claude: "claude";
143
+ codex: "codex";
144
+ cursor: "cursor";
145
+ }>, z.ZodLiteral<"user">]>;
146
+ evidence: z.ZodEnum<{
147
+ observation: "observation";
148
+ preference: "preference";
149
+ }>;
204
150
  usage: z.ZodOptional<z.ZodObject<{
205
151
  inputTokens: z.ZodOptional<z.ZodNumber>;
206
152
  outputTokens: z.ZodOptional<z.ZodNumber>;
207
153
  cachedInputTokens: z.ZodOptional<z.ZodNumber>;
208
154
  allocation: z.ZodOptional<z.ZodLiteral<"equal-share">>;
209
- }, "strip", z.ZodTypeAny, {
210
- inputTokens?: number | undefined;
211
- outputTokens?: number | undefined;
212
- cachedInputTokens?: number | undefined;
213
- allocation?: "equal-share" | undefined;
214
- }, {
215
- inputTokens?: number | undefined;
216
- outputTokens?: number | undefined;
217
- cachedInputTokens?: number | undefined;
218
- allocation?: "equal-share" | undefined;
219
- }>>;
220
- }, "strip", z.ZodTypeAny, {
221
- description: string;
222
- revision: number;
223
- runtime: "claude" | "codex" | "cursor" | "user";
224
- evidence: "observation" | "preference";
225
- referenceId: string;
226
- usage?: {
227
- inputTokens?: number | undefined;
228
- outputTokens?: number | undefined;
229
- cachedInputTokens?: number | undefined;
230
- allocation?: "equal-share" | undefined;
231
- } | undefined;
232
- }, {
233
- description: string;
234
- revision: number;
235
- runtime: "claude" | "codex" | "cursor" | "user";
236
- evidence: "observation" | "preference";
237
- referenceId: string;
238
- usage?: {
239
- inputTokens?: number | undefined;
240
- outputTokens?: number | undefined;
241
- cachedInputTokens?: number | undefined;
242
- allocation?: "equal-share" | undefined;
243
- } | undefined;
244
- }>;
155
+ }, z.core.$strip>>;
156
+ }, z.core.$strip>;
245
157
  export type ProfileProvider = z.infer<typeof ProfileProviderSchema>;
246
158
  export type ProfileRuntime = z.infer<typeof ProfileRuntimeSchema>;
247
159
  export type ProfileMedia = z.infer<typeof ProfileMediaSchema>;
248
160
  export type ProfileSourceInput = z.infer<typeof ProfileSourceInputSchema>;
249
161
  export type ProfileReferenceInput = z.infer<typeof ProfileReferenceInputSchema>;
250
162
  export type ProfileObservation = z.infer<typeof ProfileObservationSchema>;
251
- export interface ProfileReference extends ProfileReferenceInput {
252
- id: string;
253
- revision: number;
254
- }
163
+ export declare const ProfileReferenceSchema: z.ZodObject<{
164
+ provider: z.ZodEnum<{
165
+ variant: "variant";
166
+ text: "text";
167
+ pinterest: "pinterest";
168
+ arena: "arena";
169
+ cosmos: "cosmos";
170
+ x: "x";
171
+ image: "image";
172
+ pdf: "pdf";
173
+ }>;
174
+ remoteId: z.ZodString;
175
+ title: z.ZodString;
176
+ text: z.ZodString;
177
+ url: z.ZodOptional<z.ZodString>;
178
+ media: z.ZodArray<z.ZodObject<{
179
+ hash: z.ZodString;
180
+ mimeType: z.ZodEnum<{
181
+ "image/png": "image/png";
182
+ "image/jpeg": "image/jpeg";
183
+ "image/webp": "image/webp";
184
+ "image/gif": "image/gif";
185
+ }>;
186
+ bytes: z.ZodNumber;
187
+ representation: z.ZodDefault<z.ZodEnum<{
188
+ variant: "variant";
189
+ image: "image";
190
+ "video-cover": "video-cover";
191
+ page: "page";
192
+ }>>;
193
+ page: z.ZodOptional<z.ZodNumber>;
194
+ }, z.core.$strip>>;
195
+ remoteImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
196
+ remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
197
+ image: "image";
198
+ "video-cover": "video-cover";
199
+ }>>>;
200
+ unsupportedReason: z.ZodOptional<z.ZodString>;
201
+ variant: z.ZodOptional<z.ZodObject<{
202
+ projectId: z.ZodString;
203
+ sessionId: z.ZodString;
204
+ variantId: z.ZodString;
205
+ treeSha: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strict>>;
207
+ note: z.ZodOptional<z.ZodString>;
208
+ id: z.ZodString;
209
+ revision: z.ZodNumber;
210
+ }, z.core.$strip>;
211
+ export type ProfileReference = z.infer<typeof ProfileReferenceSchema>;
255
212
  export interface ProfileCandidate {
256
213
  reference: ProfileReference;
257
214
  observation: ProfileObservation;
@@ -270,87 +227,44 @@ export interface ProfileIndexWork {
270
227
  export declare const ProfilePreparationSchema: z.ZodObject<{
271
228
  requestId: z.ZodString;
272
229
  instruction: z.ZodString;
273
- runtime: z.ZodEnum<["codex", "claude", "cursor"]>;
274
- mode: z.ZodDefault<z.ZodEnum<["auto", "off", "uploads"]>>;
275
- excludedSourceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
276
- excludedReferenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
277
- excludedMediaHashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
278
- suppliedInputHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
279
- }, "strip", z.ZodTypeAny, {
280
- mode: "off" | "auto" | "uploads";
281
- runtime: "claude" | "codex" | "cursor";
282
- requestId: string;
283
- instruction: string;
284
- excludedSourceIds: string[];
285
- excludedReferenceIds: string[];
286
- excludedMediaHashes: string[];
287
- suppliedInputHashes?: string[] | undefined;
288
- }, {
289
- runtime: "claude" | "codex" | "cursor";
290
- requestId: string;
291
- instruction: string;
292
- mode?: "off" | "auto" | "uploads" | undefined;
293
- excludedSourceIds?: string[] | undefined;
294
- excludedReferenceIds?: string[] | undefined;
295
- excludedMediaHashes?: string[] | undefined;
296
- suppliedInputHashes?: string[] | undefined;
297
- }>;
230
+ runtime: z.ZodEnum<{
231
+ claude: "claude";
232
+ codex: "codex";
233
+ cursor: "cursor";
234
+ }>;
235
+ mode: z.ZodDefault<z.ZodEnum<{
236
+ off: "off";
237
+ auto: "auto";
238
+ uploads: "uploads";
239
+ }>>;
240
+ excludedSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
241
+ excludedReferenceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
242
+ excludedMediaHashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
243
+ suppliedInputHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
244
+ }, z.core.$strip>;
298
245
  export type ProfilePreparation = z.infer<typeof ProfilePreparationSchema>;
299
- export declare const ProfilePreparationRequestSchema: z.ZodEffects<z.ZodObject<{
246
+ export declare const ProfilePreparationRequestSchema: z.ZodObject<{
300
247
  requestId: z.ZodString;
301
248
  instruction: z.ZodString;
302
- runtime: z.ZodEnum<["codex", "claude", "cursor"]>;
303
- excludedSourceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
304
- excludedReferenceIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
305
- excludedMediaHashes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
306
- suppliedInputHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
307
- } & {
308
- mode: z.ZodDefault<z.ZodEnum<["auto", "off", "uploads"]>>;
309
- uploads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
310
- }, "strip", z.ZodTypeAny, {
311
- mode: "off" | "auto" | "uploads";
312
- runtime: "claude" | "codex" | "cursor";
313
- requestId: string;
314
- instruction: string;
315
- excludedSourceIds: string[];
316
- excludedReferenceIds: string[];
317
- excludedMediaHashes: string[];
318
- uploads?: string[] | undefined;
319
- suppliedInputHashes?: string[] | undefined;
320
- }, {
321
- runtime: "claude" | "codex" | "cursor";
322
- requestId: string;
323
- instruction: string;
324
- mode?: "off" | "auto" | "uploads" | undefined;
325
- uploads?: string[] | undefined;
326
- excludedSourceIds?: string[] | undefined;
327
- excludedReferenceIds?: string[] | undefined;
328
- excludedMediaHashes?: string[] | undefined;
329
- suppliedInputHashes?: string[] | undefined;
330
- }>, {
331
- mode: "off" | "auto" | "uploads";
332
- runtime: "claude" | "codex" | "cursor";
333
- requestId: string;
334
- instruction: string;
335
- excludedSourceIds: string[];
336
- excludedReferenceIds: string[];
337
- excludedMediaHashes: string[];
338
- uploads?: string[] | undefined;
339
- suppliedInputHashes?: string[] | undefined;
340
- }, {
341
- runtime: "claude" | "codex" | "cursor";
342
- requestId: string;
343
- instruction: string;
344
- mode?: "off" | "auto" | "uploads" | undefined;
345
- uploads?: string[] | undefined;
346
- excludedSourceIds?: string[] | undefined;
347
- excludedReferenceIds?: string[] | undefined;
348
- excludedMediaHashes?: string[] | undefined;
349
- suppliedInputHashes?: string[] | undefined;
350
- }>;
249
+ runtime: z.ZodEnum<{
250
+ claude: "claude";
251
+ codex: "codex";
252
+ cursor: "cursor";
253
+ }>;
254
+ excludedSourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
255
+ excludedReferenceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
256
+ excludedMediaHashes: z.ZodDefault<z.ZodArray<z.ZodString>>;
257
+ suppliedInputHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
258
+ mode: z.ZodDefault<z.ZodEnum<{
259
+ off: "off";
260
+ auto: "auto";
261
+ uploads: "uploads";
262
+ }>>;
263
+ uploads: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
+ }, z.core.$strip>;
351
265
  export type ProfilePreparationRequest = z.infer<typeof ProfilePreparationRequestSchema>;
352
266
  export declare const ProfilePacketSchema: z.ZodObject<{
353
- suppliedReferences: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnknown, {
267
+ suppliedReferences: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
354
268
  title: string;
355
269
  id: string;
356
270
  reason?: string | undefined;
@@ -359,181 +273,62 @@ export declare const ProfilePacketSchema: z.ZodObject<{
359
273
  hash: string;
360
274
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
361
275
  } | undefined;
362
- }, unknown>, "many">>;
276
+ }, unknown>>>>;
363
277
  failedUploadCount: z.ZodOptional<z.ZodNumber>;
364
278
  usage: z.ZodOptional<z.ZodObject<{
365
279
  inputTokens: z.ZodOptional<z.ZodNumber>;
366
280
  outputTokens: z.ZodOptional<z.ZodNumber>;
367
281
  cachedInputTokens: z.ZodOptional<z.ZodNumber>;
368
282
  allocation: z.ZodOptional<z.ZodLiteral<"equal-share">>;
369
- }, "strip", z.ZodTypeAny, {
370
- inputTokens?: number | undefined;
371
- outputTokens?: number | undefined;
372
- cachedInputTokens?: number | undefined;
373
- allocation?: "equal-share" | undefined;
374
- }, {
375
- inputTokens?: number | undefined;
376
- outputTokens?: number | undefined;
377
- cachedInputTokens?: number | undefined;
378
- allocation?: "equal-share" | undefined;
379
- }>>;
283
+ }, z.core.$strip>>;
380
284
  requestId: z.ZodString;
381
- status: z.ZodEnum<["selected", "empty", "off", "unavailable", "timeout"]>;
382
- queries: z.ZodArray<z.ZodString, "many">;
383
- candidateIds: z.ZodArray<z.ZodString, "many">;
285
+ status: z.ZodEnum<{
286
+ timeout: "timeout";
287
+ off: "off";
288
+ selected: "selected";
289
+ empty: "empty";
290
+ unavailable: "unavailable";
291
+ }>;
292
+ queries: z.ZodArray<z.ZodString>;
293
+ candidateIds: z.ZodArray<z.ZodString>;
384
294
  selected: z.ZodArray<z.ZodObject<{
385
295
  id: z.ZodString;
386
296
  revision: z.ZodNumber;
387
297
  title: z.ZodOptional<z.ZodString>;
388
298
  url: z.ZodOptional<z.ZodString>;
389
- mediaHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
299
+ mediaHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
390
300
  reason: z.ZodString;
391
- sourceTitles: z.ZodArray<z.ZodString, "many">;
301
+ sourceTitles: z.ZodArray<z.ZodString>;
392
302
  variant: z.ZodOptional<z.ZodObject<{
393
303
  projectId: z.ZodString;
394
304
  sessionId: z.ZodString;
395
305
  variantId: z.ZodString;
396
- } & {
397
306
  treeSha: z.ZodOptional<z.ZodString>;
398
- }, "strict", z.ZodTypeAny, {
399
- projectId: string;
400
- sessionId: string;
401
- variantId: string;
402
- treeSha?: string | undefined;
403
- }, {
404
- projectId: string;
405
- sessionId: string;
406
- variantId: string;
407
- treeSha?: string | undefined;
408
- }>>;
409
- }, "strip", z.ZodTypeAny, {
410
- reason: string;
411
- revision: number;
412
- id: string;
413
- sourceTitles: string[];
414
- variant?: {
415
- projectId: string;
416
- sessionId: string;
417
- variantId: string;
418
- treeSha?: string | undefined;
419
- } | undefined;
420
- url?: string | undefined;
421
- title?: string | undefined;
422
- mediaHashes?: string[] | undefined;
423
- }, {
424
- reason: string;
425
- revision: number;
426
- id: string;
427
- sourceTitles: string[];
428
- variant?: {
429
- projectId: string;
430
- sessionId: string;
431
- variantId: string;
432
- treeSha?: string | undefined;
433
- } | undefined;
434
- url?: string | undefined;
435
- title?: string | undefined;
436
- mediaHashes?: string[] | undefined;
437
- }>, "many">;
307
+ }, z.core.$strict>>;
308
+ }, z.core.$strip>>;
438
309
  contextText: z.ZodString;
439
310
  images: z.ZodArray<z.ZodObject<{
440
311
  path: z.ZodString;
441
312
  hash: z.ZodString;
442
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
443
- }, "strip", z.ZodTypeAny, {
444
- path: string;
445
- hash: string;
446
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
447
- }, {
448
- path: string;
449
- hash: string;
450
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
451
- }>, "many">;
313
+ mimeType: z.ZodEnum<{
314
+ "image/png": "image/png";
315
+ "image/jpeg": "image/jpeg";
316
+ "image/webp": "image/webp";
317
+ "image/gif": "image/gif";
318
+ }>;
319
+ }, z.core.$strip>>;
452
320
  durationMs: z.ZodNumber;
453
- }, "strip", z.ZodTypeAny, {
454
- status: "timeout" | "off" | "selected" | "empty" | "unavailable";
455
- requestId: string;
456
- selected: {
457
- reason: string;
458
- revision: number;
459
- id: string;
460
- sourceTitles: string[];
461
- variant?: {
462
- projectId: string;
463
- sessionId: string;
464
- variantId: string;
465
- treeSha?: string | undefined;
466
- } | undefined;
467
- url?: string | undefined;
468
- title?: string | undefined;
469
- mediaHashes?: string[] | undefined;
470
- }[];
471
- queries: string[];
472
- candidateIds: string[];
473
- contextText: string;
474
- images: {
475
- path: string;
476
- hash: string;
477
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
478
- }[];
479
- durationMs: number;
480
- usage?: {
481
- inputTokens?: number | undefined;
482
- outputTokens?: number | undefined;
483
- cachedInputTokens?: number | undefined;
484
- allocation?: "equal-share" | undefined;
485
- } | undefined;
486
- suppliedReferences?: {
487
- title: string;
488
- id: string;
489
- reason?: string | undefined;
490
- url?: string | undefined;
491
- image?: {
492
- hash: string;
493
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
494
- } | undefined;
495
- }[] | undefined;
496
- failedUploadCount?: number | undefined;
497
- }, {
498
- status: "timeout" | "off" | "selected" | "empty" | "unavailable";
499
- requestId: string;
500
- selected: {
501
- reason: string;
502
- revision: number;
503
- id: string;
504
- sourceTitles: string[];
505
- variant?: {
506
- projectId: string;
507
- sessionId: string;
508
- variantId: string;
509
- treeSha?: string | undefined;
510
- } | undefined;
511
- url?: string | undefined;
512
- title?: string | undefined;
513
- mediaHashes?: string[] | undefined;
514
- }[];
515
- queries: string[];
516
- candidateIds: string[];
517
- contextText: string;
518
- images: {
519
- path: string;
520
- hash: string;
521
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
522
- }[];
523
- durationMs: number;
524
- usage?: {
525
- inputTokens?: number | undefined;
526
- outputTokens?: number | undefined;
527
- cachedInputTokens?: number | undefined;
528
- allocation?: "equal-share" | undefined;
529
- } | undefined;
530
- suppliedReferences?: unknown[] | undefined;
531
- failedUploadCount?: number | undefined;
532
- }>;
321
+ }, z.core.$strip>;
533
322
  export type ProfilePacket = z.infer<typeof ProfilePacketSchema>;
534
323
  export declare const ProfileContextSchema: z.ZodObject<{
535
- status: z.ZodEnum<["selected", "empty", "off", "unavailable", "timeout"]>;
536
- suppliedReferences: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnknown, {
324
+ status: z.ZodEnum<{
325
+ timeout: "timeout";
326
+ off: "off";
327
+ selected: "selected";
328
+ empty: "empty";
329
+ unavailable: "unavailable";
330
+ }>;
331
+ suppliedReferences: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
537
332
  title: string;
538
333
  id: string;
539
334
  reason?: string | undefined;
@@ -542,140 +337,36 @@ export declare const ProfileContextSchema: z.ZodObject<{
542
337
  hash: string;
543
338
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
544
339
  } | undefined;
545
- }, unknown>, "many">>;
340
+ }, unknown>>>>;
546
341
  failedUploadCount: z.ZodOptional<z.ZodNumber>;
547
342
  images: z.ZodArray<z.ZodObject<{
548
343
  path: z.ZodString;
549
344
  hash: z.ZodString;
550
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
551
- }, "strip", z.ZodTypeAny, {
552
- path: string;
553
- hash: string;
554
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
555
- }, {
556
- path: string;
557
- hash: string;
558
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
559
- }>, "many">;
345
+ mimeType: z.ZodEnum<{
346
+ "image/png": "image/png";
347
+ "image/jpeg": "image/jpeg";
348
+ "image/webp": "image/webp";
349
+ "image/gif": "image/gif";
350
+ }>;
351
+ }, z.core.$strip>>;
560
352
  durationMs: z.ZodNumber;
561
- } & {
562
353
  requestId: z.ZodString;
563
354
  selected: z.ZodArray<z.ZodObject<{
564
355
  id: z.ZodString;
565
356
  revision: z.ZodNumber;
566
357
  title: z.ZodOptional<z.ZodString>;
567
358
  url: z.ZodOptional<z.ZodString>;
568
- mediaHashes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
359
+ mediaHashes: z.ZodOptional<z.ZodArray<z.ZodString>>;
569
360
  reason: z.ZodString;
570
- sourceTitles: z.ZodArray<z.ZodString, "many">;
361
+ sourceTitles: z.ZodArray<z.ZodString>;
571
362
  variant: z.ZodOptional<z.ZodObject<{
572
363
  projectId: z.ZodString;
573
364
  sessionId: z.ZodString;
574
365
  variantId: z.ZodString;
575
- } & {
576
366
  treeSha: z.ZodOptional<z.ZodString>;
577
- }, "strict", z.ZodTypeAny, {
578
- projectId: string;
579
- sessionId: string;
580
- variantId: string;
581
- treeSha?: string | undefined;
582
- }, {
583
- projectId: string;
584
- sessionId: string;
585
- variantId: string;
586
- treeSha?: string | undefined;
587
- }>>;
588
- }, "strip", z.ZodTypeAny, {
589
- reason: string;
590
- revision: number;
591
- id: string;
592
- sourceTitles: string[];
593
- variant?: {
594
- projectId: string;
595
- sessionId: string;
596
- variantId: string;
597
- treeSha?: string | undefined;
598
- } | undefined;
599
- url?: string | undefined;
600
- title?: string | undefined;
601
- mediaHashes?: string[] | undefined;
602
- }, {
603
- reason: string;
604
- revision: number;
605
- id: string;
606
- sourceTitles: string[];
607
- variant?: {
608
- projectId: string;
609
- sessionId: string;
610
- variantId: string;
611
- treeSha?: string | undefined;
612
- } | undefined;
613
- url?: string | undefined;
614
- title?: string | undefined;
615
- mediaHashes?: string[] | undefined;
616
- }>, "many">;
617
- }, "strip", z.ZodTypeAny, {
618
- status: "timeout" | "off" | "selected" | "empty" | "unavailable";
619
- requestId: string;
620
- selected: {
621
- reason: string;
622
- revision: number;
623
- id: string;
624
- sourceTitles: string[];
625
- variant?: {
626
- projectId: string;
627
- sessionId: string;
628
- variantId: string;
629
- treeSha?: string | undefined;
630
- } | undefined;
631
- url?: string | undefined;
632
- title?: string | undefined;
633
- mediaHashes?: string[] | undefined;
634
- }[];
635
- images: {
636
- path: string;
637
- hash: string;
638
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
639
- }[];
640
- durationMs: number;
641
- suppliedReferences?: {
642
- title: string;
643
- id: string;
644
- reason?: string | undefined;
645
- url?: string | undefined;
646
- image?: {
647
- hash: string;
648
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
649
- } | undefined;
650
- }[] | undefined;
651
- failedUploadCount?: number | undefined;
652
- }, {
653
- status: "timeout" | "off" | "selected" | "empty" | "unavailable";
654
- requestId: string;
655
- selected: {
656
- reason: string;
657
- revision: number;
658
- id: string;
659
- sourceTitles: string[];
660
- variant?: {
661
- projectId: string;
662
- sessionId: string;
663
- variantId: string;
664
- treeSha?: string | undefined;
665
- } | undefined;
666
- url?: string | undefined;
667
- title?: string | undefined;
668
- mediaHashes?: string[] | undefined;
669
- }[];
670
- images: {
671
- path: string;
672
- hash: string;
673
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
674
- }[];
675
- durationMs: number;
676
- suppliedReferences?: unknown[] | undefined;
677
- failedUploadCount?: number | undefined;
678
- }>;
367
+ }, z.core.$strict>>;
368
+ }, z.core.$strip>>;
369
+ }, z.core.$strip>;
679
370
  export type ProfileContext = z.infer<typeof ProfileContextSchema>;
680
371
  export interface ProfileContextResult extends ProfileContext {
681
372
  isRecorded: boolean;