rivet-design 0.26.1 → 0.27.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 (122) hide show
  1. package/bin/rivet.js +13 -0
  2. package/dist/agent-variants/PreviewRuntime.js +20 -7
  3. package/dist/agent-variants/WorkerExecutorService.d.ts +0 -2
  4. package/dist/agent-variants/WorkerExecutorService.js +0 -18
  5. package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -8
  6. package/dist/agent-variants/contracts.d.ts +1001 -4868
  7. package/dist/agent-variants/contracts.js +1 -121
  8. package/dist/agent-variants/index.d.ts +1 -1
  9. package/dist/agent-variants/variantsTelemetry.d.ts +4 -8
  10. package/dist/agent-variants/variantsTelemetry.js +3 -0
  11. package/dist/agent-variants/workItemInput.d.ts +386 -386
  12. package/dist/cli/commands/contextRequest.js +1 -1
  13. package/dist/cli/commands/guidanceReferences.d.ts +2 -2
  14. package/dist/cli/commands/guidanceVerifierPackage.d.ts +2 -2
  15. package/dist/cli/commands/mcpServe.js +1 -0
  16. package/dist/cli/commands/serve.js +2 -0
  17. package/dist/cli/editorSession.d.ts +1 -13
  18. package/dist/cli/handoff.d.ts +1 -0
  19. package/dist/cli/handoff.js +20 -4
  20. package/dist/cli/router.js +1 -0
  21. package/dist/cli/runtimeInterruption.d.ts +2 -16
  22. package/dist/cli/telemetry.d.ts +10 -0
  23. package/dist/cli/telemetry.js +37 -1
  24. package/dist/config/pluginMetrics.js +36 -1
  25. package/dist/hosts/workerDefaults.d.ts +0 -11
  26. package/dist/hosts/workerDefaults.js +1 -30
  27. package/dist/index-core.d.ts +0 -1
  28. package/dist/index.d.ts +19 -0
  29. package/dist/index.js +15 -6
  30. package/dist/install/automaticCliUpdate.d.ts +1 -0
  31. package/dist/install/automaticCliUpdate.js +32 -22
  32. package/dist/install/channelCli.d.ts +1 -1
  33. package/dist/install/channelCli.js +11 -6
  34. package/dist/install/channelManager.d.ts +5 -2
  35. package/dist/install/globalBootstrap.d.ts +5 -3
  36. package/dist/install/globalBootstrap.js +21 -9
  37. package/dist/install/npmCommand.d.ts +15 -0
  38. package/dist/install/npmCommand.js +59 -0
  39. package/dist/routes/agentVariants.js +3 -14
  40. package/dist/routes/library/browserAccess.js +6 -2
  41. package/dist/routes/library/guidance.js +3 -1
  42. package/dist/routes/library/middleware.js +15 -9
  43. package/dist/routes/library/navigation.js +3 -1
  44. package/dist/routes/library/profiles.js +5 -5
  45. package/dist/routes/library/projects.js +17 -7
  46. package/dist/routes/library/referenceOnboarding.js +4 -2
  47. package/dist/routes/library/schemas.d.ts +2 -15
  48. package/dist/routes/telemetry.js +1 -1
  49. package/dist/routes/variantRequestSchema.d.ts +4 -4
  50. package/dist/routes/variantRequestSchema.js +7 -2
  51. package/dist/server.js +8 -0
  52. package/dist/services/AuthService.d.ts +3 -56
  53. package/dist/services/AuthService.js +0 -28
  54. package/dist/services/ConfigManager.d.ts +0 -2
  55. package/dist/services/ConfigManager.js +0 -14
  56. package/dist/services/DependencyPreparationService.js +57 -19
  57. package/dist/services/GuidanceVerifierRunner.js +4 -4
  58. package/dist/services/HubDiscovery.d.ts +1 -9
  59. package/dist/services/IntegrationsClient.d.ts +16 -16
  60. package/dist/services/MCPOnboardingTelemetry.d.ts +0 -14
  61. package/dist/services/MCPOnboardingTelemetry.js +0 -62
  62. package/dist/services/ProjectPackageManager.d.ts +5 -0
  63. package/dist/services/ProjectPackageManager.js +33 -11
  64. package/dist/services/ProjectRegistry.d.ts +5 -24
  65. package/dist/services/TelemetryService.d.ts +9 -64
  66. package/dist/services/TelemetryService.js +10 -113
  67. package/dist/services/TreeStore.d.ts +0 -2
  68. package/dist/services/TreeStore.js +0 -24
  69. package/dist/services/WorktreeManager.js +5 -0
  70. package/dist/services/profiles/DesignProfiles.d.ts +180 -125
  71. package/dist/services/profiles/DesignProfiles.js +16 -8
  72. package/dist/services/profiles/ProfilePlanning.d.ts +38 -38
  73. package/dist/services/profiles/ReferenceReader.d.ts +14 -14
  74. package/dist/services/profiles/modelContract.js +4 -4
  75. package/dist/storage/library/ProjectPreviewCache.d.ts +1 -13
  76. package/dist/storage/profiles/ProfilePlans.d.ts +137 -137
  77. package/dist/storage/profiles/ProfileRecords.d.ts +62 -37
  78. package/dist/storage/profiles/planSchema.d.ts +40 -40
  79. package/dist/storage/profiles/schema.d.ts +16 -16
  80. package/dist/types/api-responses.d.ts +174 -0
  81. package/dist/types/api-responses.js +108 -0
  82. package/dist/types/cosmos-profile.d.ts +17 -105
  83. package/dist/types/cosmos.d.ts +48 -266
  84. package/dist/types/design-library.d.ts +230 -61
  85. package/dist/types/design-library.js +38 -1
  86. package/dist/types/design-profile.d.ts +220 -529
  87. package/dist/types/design-profile.js +5 -1
  88. package/dist/types/guidance-references.d.ts +68 -316
  89. package/dist/types/guidance-verifier.d.ts +69 -560
  90. package/dist/types/guidance-verifier.js +15 -2
  91. package/dist/types/guidance.d.ts +182 -1643
  92. package/dist/types/guidance.js +4 -1
  93. package/dist/types/project-library.d.ts +60 -30
  94. package/dist/types/project-library.js +32 -1
  95. package/dist/types/reference-connectors.d.ts +38 -162
  96. package/dist/types/reference-onboarding.d.ts +144 -878
  97. package/dist/types/reference-pages.d.ts +27 -139
  98. package/dist/types/x-bookmarks.d.ts +40 -296
  99. package/dist/utils/devServerError.d.ts +5 -0
  100. package/dist/utils/devServerError.js +4 -0
  101. package/dist/utils/displayLocale.d.ts +0 -1
  102. package/dist/utils/displayLocale.js +1 -3
  103. package/dist/utils/failureReason.d.ts +16 -0
  104. package/dist/utils/failureReason.js +106 -0
  105. package/dist/utils/hostedLogPrivacy.d.ts +1 -0
  106. package/dist/utils/hostedLogPrivacy.js +10 -4
  107. package/dist/utils/skills/claude-skill.d.ts +1 -1
  108. package/dist/utils/skills/claude-skill.js +1 -1
  109. package/dist/utils/skills/cli-guidance.d.ts +1 -1
  110. package/dist/utils/skills/cli-guidance.js +3 -3
  111. package/dist/utils/skills/cursor-rules.d.ts +1 -1
  112. package/dist/utils/skills/cursor-rules.js +1 -1
  113. package/package.json +5 -5
  114. package/src/ui/dist/assets/LibraryEntry-RI9Lc7P3.js +37 -0
  115. package/src/ui/dist/assets/main-D0UmAaUe.css +1 -0
  116. package/src/ui/dist/assets/main-DgrLzS5j.js +497 -0
  117. package/src/ui/dist/index.html +2 -2
  118. package/dist/types/change-types.d.ts +0 -66
  119. package/dist/types/change-types.js +0 -3
  120. package/src/ui/dist/assets/LibraryEntry-Cr4GFYXW.js +0 -37
  121. package/src/ui/dist/assets/main-W3oTuTTl.css +0 -1
  122. package/src/ui/dist/assets/main-tPO1OCpZ.js +0 -439
@@ -8,84 +8,83 @@ export declare class ProfilePlans {
8
8
  constructor(db: Database);
9
9
  initializeOnboarding(): void;
10
10
  saveDiscovery(input: z.input<typeof ReferenceDiscoveryInputSchema>): {
11
- id: string;
12
- total: number;
11
+ profile: {
12
+ id: string;
13
+ username: string;
14
+ title: string;
15
+ url: string;
16
+ };
13
17
  collections: {
18
+ id: string;
19
+ title: string;
14
20
  description: string | null;
15
21
  url: string | null;
16
- title: string;
17
- id: string;
18
- children: string[];
19
22
  total: number | null;
20
23
  parentId: string | null;
24
+ children: string[];
21
25
  }[];
26
+ total: number;
27
+ id: string;
28
+ createdAt: string;
29
+ };
30
+ discovery(id: string): {
22
31
  profile: {
23
- url: string;
24
- title: string;
25
32
  id: string;
26
33
  username: string;
34
+ title: string;
35
+ url: string;
27
36
  };
28
- createdAt: string;
29
- };
30
- discovery(id: string): {
31
- id: string;
32
- total: number;
33
37
  collections: {
38
+ id: string;
39
+ title: string;
34
40
  description: string | null;
35
41
  url: string | null;
36
- title: string;
37
- id: string;
38
- children: string[];
39
42
  total: number | null;
40
43
  parentId: string | null;
44
+ children: string[];
41
45
  }[];
46
+ total: number;
47
+ id: string;
48
+ createdAt: string;
49
+ };
50
+ discoveries(): {
42
51
  profile: {
43
- url: string;
44
- title: string;
45
52
  id: string;
46
53
  username: string;
54
+ title: string;
55
+ url: string;
47
56
  };
48
- createdAt: string;
49
- };
50
- discoveries(): {
51
- id: string;
52
- total: number;
53
57
  collections: {
58
+ id: string;
59
+ title: string;
54
60
  description: string | null;
55
61
  url: string | null;
56
- title: string;
57
- id: string;
58
- children: string[];
59
62
  total: number | null;
60
63
  parentId: string | null;
64
+ children: string[];
61
65
  }[];
62
- profile: {
63
- url: string;
64
- title: string;
65
- id: string;
66
- username: string;
67
- };
66
+ total: number;
67
+ id: string;
68
68
  createdAt: string;
69
69
  }[];
70
70
  savePlan(input: z.input<typeof ReferencePlanInputSchema>): {
71
- expiresAt: string;
72
- revision: string;
73
- runtime: "claude" | "codex" | "cursor";
74
- id: string;
75
- profile: {
76
- url: string;
77
- title: string;
78
- id: string;
79
- username: string;
80
- };
81
- createdAt: string;
82
71
  discoveryId: string;
72
+ runtime: "claude" | "codex" | "cursor";
83
73
  sources: {
74
+ collection: {
75
+ id: string;
76
+ title: string;
77
+ description: string | null;
78
+ url: string | null;
79
+ total: number | null;
80
+ parentId: string | null;
81
+ children: string[];
82
+ };
83
+ collectionIds: string[];
84
84
  references: {
85
+ remoteId: string;
85
86
  title: string;
86
87
  text: string;
87
- provider: "pinterest" | "arena" | "cosmos" | "x";
88
- remoteId: string;
89
88
  media: {
90
89
  hash: string;
91
90
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
@@ -93,52 +92,52 @@ export declare class ProfilePlans {
93
92
  representation: "variant" | "image" | "video-cover" | "page";
94
93
  page?: number | undefined;
95
94
  }[];
95
+ provider: "pinterest" | "arena" | "cosmos" | "x";
96
+ url?: string | undefined;
97
+ remoteImages?: string[] | undefined;
98
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
99
+ unsupportedReason?: string | undefined;
96
100
  variant?: {
97
101
  projectId: string;
98
102
  sessionId: string;
99
103
  variantId: string;
100
104
  treeSha?: string | undefined;
101
105
  } | undefined;
102
- url?: string | undefined;
103
106
  note?: string | undefined;
104
- remoteImages?: string[] | undefined;
105
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
106
- unsupportedReason?: string | undefined;
107
107
  }[];
108
- collection: {
109
- description: string | null;
110
- url: string | null;
111
- title: string;
112
- id: string;
113
- children: string[];
114
- total: number | null;
115
- parentId: string | null;
116
- };
117
- collectionIds: string[];
118
108
  }[];
119
109
  reusableCount: number;
120
- approvedAt: string | null;
121
- jobIds: string[];
122
- };
123
- plan(id: string): {
124
- expiresAt: string;
125
- revision: string;
126
- runtime: "claude" | "codex" | "cursor";
127
110
  id: string;
128
111
  profile: {
129
- url: string;
130
- title: string;
131
112
  id: string;
132
113
  username: string;
114
+ title: string;
115
+ url: string;
133
116
  };
117
+ revision: string;
134
118
  createdAt: string;
119
+ expiresAt: string;
120
+ approvedAt: string | null;
121
+ jobIds: string[];
122
+ };
123
+ plan(id: string): {
135
124
  discoveryId: string;
125
+ runtime: "claude" | "codex" | "cursor";
136
126
  sources: {
127
+ collection: {
128
+ id: string;
129
+ title: string;
130
+ description: string | null;
131
+ url: string | null;
132
+ total: number | null;
133
+ parentId: string | null;
134
+ children: string[];
135
+ };
136
+ collectionIds: string[];
137
137
  references: {
138
+ remoteId: string;
138
139
  title: string;
139
140
  text: string;
140
- provider: "pinterest" | "arena" | "cosmos" | "x";
141
- remoteId: string;
142
141
  media: {
143
142
  hash: string;
144
143
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
@@ -146,52 +145,52 @@ export declare class ProfilePlans {
146
145
  representation: "variant" | "image" | "video-cover" | "page";
147
146
  page?: number | undefined;
148
147
  }[];
148
+ provider: "pinterest" | "arena" | "cosmos" | "x";
149
+ url?: string | undefined;
150
+ remoteImages?: string[] | undefined;
151
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
152
+ unsupportedReason?: string | undefined;
149
153
  variant?: {
150
154
  projectId: string;
151
155
  sessionId: string;
152
156
  variantId: string;
153
157
  treeSha?: string | undefined;
154
158
  } | undefined;
155
- url?: string | undefined;
156
159
  note?: string | undefined;
157
- remoteImages?: string[] | undefined;
158
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
159
- unsupportedReason?: string | undefined;
160
160
  }[];
161
- collection: {
162
- description: string | null;
163
- url: string | null;
164
- title: string;
165
- id: string;
166
- children: string[];
167
- total: number | null;
168
- parentId: string | null;
169
- };
170
- collectionIds: string[];
171
161
  }[];
172
162
  reusableCount: number;
173
- approvedAt: string | null;
174
- jobIds: string[];
175
- };
176
- plans(): {
177
- expiresAt: string;
178
- revision: string;
179
- runtime: "claude" | "codex" | "cursor";
180
163
  id: string;
181
164
  profile: {
182
- url: string;
183
- title: string;
184
165
  id: string;
185
166
  username: string;
167
+ title: string;
168
+ url: string;
186
169
  };
170
+ revision: string;
187
171
  createdAt: string;
172
+ expiresAt: string;
173
+ approvedAt: string | null;
174
+ jobIds: string[];
175
+ };
176
+ plans(): {
188
177
  discoveryId: string;
178
+ runtime: "claude" | "codex" | "cursor";
189
179
  sources: {
180
+ collection: {
181
+ id: string;
182
+ title: string;
183
+ description: string | null;
184
+ url: string | null;
185
+ total: number | null;
186
+ parentId: string | null;
187
+ children: string[];
188
+ };
189
+ collectionIds: string[];
190
190
  references: {
191
+ remoteId: string;
191
192
  title: string;
192
193
  text: string;
193
- provider: "pinterest" | "arena" | "cosmos" | "x";
194
- remoteId: string;
195
194
  media: {
196
195
  hash: string;
197
196
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
@@ -199,30 +198,31 @@ export declare class ProfilePlans {
199
198
  representation: "variant" | "image" | "video-cover" | "page";
200
199
  page?: number | undefined;
201
200
  }[];
201
+ provider: "pinterest" | "arena" | "cosmos" | "x";
202
+ url?: string | undefined;
203
+ remoteImages?: string[] | undefined;
204
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
205
+ unsupportedReason?: string | undefined;
202
206
  variant?: {
203
207
  projectId: string;
204
208
  sessionId: string;
205
209
  variantId: string;
206
210
  treeSha?: string | undefined;
207
211
  } | undefined;
208
- url?: string | undefined;
209
212
  note?: string | undefined;
210
- remoteImages?: string[] | undefined;
211
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
212
- unsupportedReason?: string | undefined;
213
213
  }[];
214
- collection: {
215
- description: string | null;
216
- url: string | null;
217
- title: string;
218
- id: string;
219
- children: string[];
220
- total: number | null;
221
- parentId: string | null;
222
- };
223
- collectionIds: string[];
224
214
  }[];
225
215
  reusableCount: number;
216
+ id: string;
217
+ profile: {
218
+ id: string;
219
+ username: string;
220
+ title: string;
221
+ url: string;
222
+ };
223
+ revision: string;
224
+ createdAt: string;
225
+ expiresAt: string;
226
226
  approvedAt: string | null;
227
227
  jobIds: string[];
228
228
  }[];
@@ -236,24 +236,23 @@ export declare class ProfilePlans {
236
236
  collectionId: string;
237
237
  }>;
238
238
  }): {
239
- expiresAt: string;
240
- revision: string;
241
- runtime: "claude" | "codex" | "cursor";
242
- id: string;
243
- profile: {
244
- url: string;
245
- title: string;
246
- id: string;
247
- username: string;
248
- };
249
- createdAt: string;
250
239
  discoveryId: string;
240
+ runtime: "claude" | "codex" | "cursor";
251
241
  sources: {
242
+ collection: {
243
+ id: string;
244
+ title: string;
245
+ description: string | null;
246
+ url: string | null;
247
+ total: number | null;
248
+ parentId: string | null;
249
+ children: string[];
250
+ };
251
+ collectionIds: string[];
252
252
  references: {
253
+ remoteId: string;
253
254
  title: string;
254
255
  text: string;
255
- provider: "pinterest" | "arena" | "cosmos" | "x";
256
- remoteId: string;
257
256
  media: {
258
257
  hash: string;
259
258
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
@@ -261,30 +260,31 @@ export declare class ProfilePlans {
261
260
  representation: "variant" | "image" | "video-cover" | "page";
262
261
  page?: number | undefined;
263
262
  }[];
263
+ provider: "pinterest" | "arena" | "cosmos" | "x";
264
+ url?: string | undefined;
265
+ remoteImages?: string[] | undefined;
266
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
267
+ unsupportedReason?: string | undefined;
264
268
  variant?: {
265
269
  projectId: string;
266
270
  sessionId: string;
267
271
  variantId: string;
268
272
  treeSha?: string | undefined;
269
273
  } | undefined;
270
- url?: string | undefined;
271
274
  note?: string | undefined;
272
- remoteImages?: string[] | undefined;
273
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
274
- unsupportedReason?: string | undefined;
275
275
  }[];
276
- collection: {
277
- description: string | null;
278
- url: string | null;
279
- title: string;
280
- id: string;
281
- children: string[];
282
- total: number | null;
283
- parentId: string | null;
284
- };
285
- collectionIds: string[];
286
276
  }[];
287
277
  reusableCount: number;
278
+ id: string;
279
+ profile: {
280
+ id: string;
281
+ username: string;
282
+ title: string;
283
+ url: string;
284
+ };
285
+ revision: string;
286
+ createdAt: string;
287
+ expiresAt: string;
288
288
  approvedAt: string | null;
289
289
  jobIds: string[];
290
290
  };
@@ -299,13 +299,13 @@ export declare class ProfilePlans {
299
299
  isPlannedSource(sourceId: string): boolean;
300
300
  onboarding(provider?: ReferenceProvider): {
301
301
  provider: "pinterest" | "arena" | "cosmos" | "x";
302
- state: "pending" | "complete" | "later" | "dismissed";
302
+ state: "pending" | "later" | "complete" | "dismissed";
303
303
  offeredAt: string | null;
304
304
  remindAt: string | null;
305
305
  };
306
306
  updateOnboarding(action: ReferenceOnboardingAction, provider?: ReferenceProvider): {
307
307
  provider: "pinterest" | "arena" | "cosmos" | "x";
308
- state: "pending" | "complete" | "later" | "dismissed";
308
+ state: "pending" | "later" | "complete" | "dismissed";
309
309
  offeredAt: string | null;
310
310
  remindAt: string | null;
311
311
  };
@@ -45,38 +45,37 @@ export declare class ProfileRecords {
45
45
  markdown: string;
46
46
  sourceDigest: string;
47
47
  package?: {
48
+ runtime: "node";
49
+ entrypoint: string;
48
50
  files: {
49
51
  name: string;
50
52
  content: string;
51
53
  }[];
52
- runtime: "node";
53
- entrypoint: string;
54
54
  } | undefined;
55
55
  } | undefined;
56
56
  source: {
57
- title: string;
58
57
  id: string;
58
+ title: string;
59
59
  markdown: string;
60
60
  attachments?: {
61
- path: string;
62
- source: string;
63
61
  hash: string;
64
62
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
65
63
  bytes: number;
66
64
  representation: "variant" | "image" | "video-cover" | "page";
65
+ source: string;
67
66
  alt: string;
68
- title?: string | undefined;
67
+ path: string;
69
68
  page?: number | undefined;
69
+ title?: string | undefined;
70
70
  }[] | undefined;
71
71
  references?: ({
72
- path: string;
73
72
  kind: "directory";
73
+ path: string;
74
74
  intent: string;
75
75
  } | {
76
- url: string;
77
76
  kind: "url" | "repository";
77
+ url: string;
78
78
  intent: string;
79
- digest?: string | undefined;
80
79
  revision?: string | undefined;
81
80
  files?: {
82
81
  name: string;
@@ -84,6 +83,7 @@ export declare class ProfileRecords {
84
83
  path?: string | undefined;
85
84
  sha256?: string | undefined;
86
85
  }[] | undefined;
86
+ digest?: string | undefined;
87
87
  })[] | undefined;
88
88
  };
89
89
  sourceDigest: string;
@@ -144,7 +144,32 @@ export declare class ProfileRecords {
144
144
  isIncluded: boolean;
145
145
  removedAt: string | null;
146
146
  };
147
- references: ProfileReference[];
147
+ references: {
148
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
149
+ remoteId: string;
150
+ title: string;
151
+ text: string;
152
+ media: {
153
+ hash: string;
154
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
155
+ bytes: number;
156
+ representation: "variant" | "image" | "video-cover" | "page";
157
+ page?: number | undefined;
158
+ }[];
159
+ id: string;
160
+ revision: number;
161
+ url?: string | undefined;
162
+ remoteImages?: string[] | undefined;
163
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
164
+ unsupportedReason?: string | undefined;
165
+ variant?: {
166
+ projectId: string;
167
+ sessionId: string;
168
+ variantId: string;
169
+ treeSha?: string | undefined;
170
+ } | undefined;
171
+ note?: string | undefined;
172
+ }[];
148
173
  };
149
174
  saveReference({ sourceId, reference, }: {
150
175
  sourceId: string;
@@ -288,24 +313,23 @@ export declare class ProfileRecords {
288
313
  revision: string;
289
314
  isApproved: boolean;
290
315
  }): {
291
- expiresAt: string;
292
- revision: string;
293
- runtime: "claude" | "codex" | "cursor";
294
- id: string;
295
- profile: {
296
- url: string;
297
- title: string;
298
- id: string;
299
- username: string;
300
- };
301
- createdAt: string;
302
316
  discoveryId: string;
317
+ runtime: "claude" | "codex" | "cursor";
303
318
  sources: {
319
+ collection: {
320
+ id: string;
321
+ title: string;
322
+ description: string | null;
323
+ url: string | null;
324
+ total: number | null;
325
+ parentId: string | null;
326
+ children: string[];
327
+ };
328
+ collectionIds: string[];
304
329
  references: {
330
+ remoteId: string;
305
331
  title: string;
306
332
  text: string;
307
- provider: "pinterest" | "arena" | "cosmos" | "x";
308
- remoteId: string;
309
333
  media: {
310
334
  hash: string;
311
335
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
@@ -313,30 +337,31 @@ export declare class ProfileRecords {
313
337
  representation: "variant" | "image" | "video-cover" | "page";
314
338
  page?: number | undefined;
315
339
  }[];
340
+ provider: "pinterest" | "arena" | "cosmos" | "x";
341
+ url?: string | undefined;
342
+ remoteImages?: string[] | undefined;
343
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
344
+ unsupportedReason?: string | undefined;
316
345
  variant?: {
317
346
  projectId: string;
318
347
  sessionId: string;
319
348
  variantId: string;
320
349
  treeSha?: string | undefined;
321
350
  } | undefined;
322
- url?: string | undefined;
323
351
  note?: string | undefined;
324
- remoteImages?: string[] | undefined;
325
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
326
- unsupportedReason?: string | undefined;
327
352
  }[];
328
- collection: {
329
- description: string | null;
330
- url: string | null;
331
- title: string;
332
- id: string;
333
- children: string[];
334
- total: number | null;
335
- parentId: string | null;
336
- };
337
- collectionIds: string[];
338
353
  }[];
339
354
  reusableCount: number;
355
+ id: string;
356
+ profile: {
357
+ id: string;
358
+ username: string;
359
+ title: string;
360
+ url: string;
361
+ };
362
+ revision: string;
363
+ createdAt: string;
364
+ expiresAt: string;
340
365
  approvedAt: string | null;
341
366
  jobIds: string[];
342
367
  };