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.
- package/bin/rivet.js +13 -0
- package/dist/agent-variants/WorkerExecutorService.d.ts +0 -2
- package/dist/agent-variants/WorkerExecutorService.js +0 -18
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -8
- package/dist/agent-variants/contracts.d.ts +897 -4764
- package/dist/agent-variants/contracts.js +1 -121
- package/dist/agent-variants/index.d.ts +1 -1
- package/dist/agent-variants/variantsTelemetry.d.ts +0 -8
- package/dist/agent-variants/workItemInput.d.ts +278 -278
- package/dist/cli/commands/contextRequest.js +1 -1
- package/dist/cli/commands/guidanceReferences.d.ts +2 -2
- package/dist/cli/commands/guidanceVerifierPackage.d.ts +2 -2
- package/dist/cli/editorSession.d.ts +1 -13
- package/dist/cli/runtimeInterruption.d.ts +2 -16
- package/dist/config/pluginMetrics.js +0 -1
- package/dist/hosts/workerDefaults.d.ts +0 -11
- package/dist/hosts/workerDefaults.js +1 -30
- package/dist/index-core.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/install/automaticCliUpdate.d.ts +1 -0
- package/dist/install/automaticCliUpdate.js +32 -22
- package/dist/install/channelCli.d.ts +1 -1
- package/dist/install/channelCli.js +11 -6
- package/dist/install/channelManager.d.ts +5 -2
- package/dist/install/globalBootstrap.d.ts +5 -3
- package/dist/install/globalBootstrap.js +21 -9
- package/dist/install/npmCommand.d.ts +15 -0
- package/dist/install/npmCommand.js +59 -0
- package/dist/routes/agentVariants.js +3 -14
- package/dist/routes/library/browserAccess.js +6 -2
- package/dist/routes/library/guidance.js +3 -1
- package/dist/routes/library/middleware.js +4 -4
- package/dist/routes/library/navigation.js +3 -1
- package/dist/routes/library/profiles.js +5 -5
- package/dist/routes/library/projects.js +17 -7
- package/dist/routes/library/referenceOnboarding.js +4 -2
- package/dist/routes/library/schemas.d.ts +2 -15
- package/dist/routes/telemetry.js +1 -1
- package/dist/routes/variantRequestSchema.d.ts +4 -4
- package/dist/routes/variantRequestSchema.js +7 -2
- package/dist/services/AuthService.d.ts +3 -56
- package/dist/services/AuthService.js +0 -28
- package/dist/services/ConfigManager.d.ts +0 -2
- package/dist/services/ConfigManager.js +0 -14
- package/dist/services/HubDiscovery.d.ts +1 -9
- package/dist/services/IntegrationsClient.d.ts +16 -16
- package/dist/services/MCPOnboardingTelemetry.d.ts +0 -14
- package/dist/services/MCPOnboardingTelemetry.js +0 -62
- package/dist/services/ProjectRegistry.d.ts +5 -24
- package/dist/services/TelemetryService.d.ts +1 -62
- package/dist/services/TelemetryService.js +0 -113
- package/dist/services/TreeStore.d.ts +0 -2
- package/dist/services/TreeStore.js +0 -24
- package/dist/services/profiles/DesignProfiles.d.ts +180 -125
- package/dist/services/profiles/ProfilePlanning.d.ts +38 -38
- package/dist/services/profiles/ReferenceReader.d.ts +14 -14
- package/dist/services/profiles/modelContract.js +4 -4
- package/dist/storage/library/ProjectPreviewCache.d.ts +1 -13
- package/dist/storage/profiles/ProfilePlans.d.ts +137 -137
- package/dist/storage/profiles/ProfileRecords.d.ts +62 -37
- package/dist/storage/profiles/planSchema.d.ts +40 -40
- package/dist/storage/profiles/schema.d.ts +16 -16
- package/dist/types/api-responses.d.ts +174 -0
- package/dist/types/api-responses.js +108 -0
- package/dist/types/cosmos-profile.d.ts +17 -105
- package/dist/types/cosmos.d.ts +48 -266
- package/dist/types/design-library.d.ts +230 -61
- package/dist/types/design-library.js +38 -1
- package/dist/types/design-profile.d.ts +220 -529
- package/dist/types/design-profile.js +5 -1
- package/dist/types/guidance-references.d.ts +68 -316
- package/dist/types/guidance-verifier.d.ts +65 -558
- package/dist/types/guidance-verifier.js +1 -1
- package/dist/types/guidance.d.ts +182 -1643
- package/dist/types/guidance.js +4 -1
- package/dist/types/project-library.d.ts +60 -30
- package/dist/types/project-library.js +32 -1
- package/dist/types/reference-connectors.d.ts +38 -162
- package/dist/types/reference-onboarding.d.ts +144 -878
- package/dist/types/reference-pages.d.ts +27 -139
- package/dist/types/x-bookmarks.d.ts +40 -296
- package/dist/utils/displayLocale.d.ts +0 -1
- package/dist/utils/displayLocale.js +1 -3
- package/package.json +4 -4
- package/src/ui/dist/assets/LibraryEntry-92R_T-Xa.js +37 -0
- package/src/ui/dist/assets/main-D0UmAaUe.css +1 -0
- package/src/ui/dist/assets/main-DgEfJvYu.js +497 -0
- package/src/ui/dist/index.html +2 -2
- package/dist/types/change-types.d.ts +0 -66
- package/dist/types/change-types.js +0 -3
- package/src/ui/dist/assets/LibraryEntry-Cr4GFYXW.js +0 -37
- package/src/ui/dist/assets/main-W3oTuTTl.css +0 -1
- package/src/ui/dist/assets/main-tPO1OCpZ.js +0 -439
|
@@ -5,7 +5,7 @@ import { IntegrationsClient } from '../IntegrationsClient';
|
|
|
5
5
|
import { type ProfileContext as RecordedContext } from '../../types/design-profile';
|
|
6
6
|
import type { TelemetryService } from '../TelemetryService';
|
|
7
7
|
import { type GuidanceUpload, type GuidanceUploadUpdate, type GuidanceSelection } from '../../types/guidance';
|
|
8
|
-
import type { DesignLibrarySnapshot,
|
|
8
|
+
import type { DesignLibrarySnapshot, DesignReferenceRequest, DesignReferenceSearchRequest, DesignReferenceSearchResult } from '../../types/design-library';
|
|
9
9
|
import { type ReferencePlanRequest, type ReferenceOnboardingAction } from '../../types/reference-onboarding';
|
|
10
10
|
import { ProfileVariants } from './ProfileVariants';
|
|
11
11
|
import { type ProfileVariantInput, type ProfileRuntime, type ProfilePreparationRequest as PreparationInput } from '../../types/design-profile';
|
|
@@ -93,10 +93,10 @@ export declare class DesignProfiles {
|
|
|
93
93
|
revision: string;
|
|
94
94
|
discoveryId: string;
|
|
95
95
|
profile: {
|
|
96
|
-
url: string;
|
|
97
|
-
title: string;
|
|
98
96
|
id: string;
|
|
99
97
|
username: string;
|
|
98
|
+
title: string;
|
|
99
|
+
url: string;
|
|
100
100
|
};
|
|
101
101
|
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
102
102
|
runtime: "claude" | "codex" | "cursor";
|
|
@@ -107,13 +107,13 @@ export declare class DesignProfiles {
|
|
|
107
107
|
collections: {
|
|
108
108
|
includedCollectionIds: string[];
|
|
109
109
|
referenceCount: number;
|
|
110
|
+
id: string;
|
|
111
|
+
title: string;
|
|
110
112
|
description: string | null;
|
|
111
113
|
url: string | null;
|
|
112
|
-
title: string;
|
|
113
|
-
id: string;
|
|
114
|
-
children: string[];
|
|
115
114
|
total: number | null;
|
|
116
115
|
parentId: string | null;
|
|
116
|
+
children: string[];
|
|
117
117
|
}[];
|
|
118
118
|
collectionCount: number;
|
|
119
119
|
referenceCount: number;
|
|
@@ -142,30 +142,29 @@ export declare class DesignProfiles {
|
|
|
142
142
|
isStale: boolean;
|
|
143
143
|
} | undefined;
|
|
144
144
|
sourceDigest: string;
|
|
145
|
-
title: string;
|
|
146
145
|
id: string;
|
|
146
|
+
title: string;
|
|
147
147
|
markdown: string;
|
|
148
148
|
isEnabled: boolean;
|
|
149
149
|
attachments?: {
|
|
150
|
-
path: string;
|
|
151
|
-
source: string;
|
|
152
150
|
hash: string;
|
|
153
151
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
154
152
|
bytes: number;
|
|
155
153
|
representation: "variant" | "image" | "video-cover" | "page";
|
|
154
|
+
source: string;
|
|
156
155
|
alt: string;
|
|
157
|
-
|
|
156
|
+
path: string;
|
|
158
157
|
page?: number | undefined;
|
|
158
|
+
title?: string | undefined;
|
|
159
159
|
}[] | undefined;
|
|
160
160
|
references?: ({
|
|
161
|
-
path: string;
|
|
162
161
|
kind: "directory";
|
|
162
|
+
path: string;
|
|
163
163
|
intent: string;
|
|
164
164
|
} | {
|
|
165
|
-
url: string;
|
|
166
165
|
kind: "url" | "repository";
|
|
166
|
+
url: string;
|
|
167
167
|
intent: string;
|
|
168
|
-
digest?: string | undefined;
|
|
169
168
|
revision?: string | undefined;
|
|
170
169
|
files?: {
|
|
171
170
|
name: string;
|
|
@@ -173,6 +172,7 @@ export declare class DesignProfiles {
|
|
|
173
172
|
path?: string | undefined;
|
|
174
173
|
sha256?: string | undefined;
|
|
175
174
|
}[] | undefined;
|
|
175
|
+
digest?: string | undefined;
|
|
176
176
|
})[] | undefined;
|
|
177
177
|
}[];
|
|
178
178
|
references: {
|
|
@@ -206,17 +206,22 @@ export declare class DesignProfiles {
|
|
|
206
206
|
analyzed: number;
|
|
207
207
|
indexed: number;
|
|
208
208
|
};
|
|
209
|
-
results:
|
|
209
|
+
results: {
|
|
210
210
|
id: string;
|
|
211
211
|
key: string;
|
|
212
212
|
title: string;
|
|
213
|
-
provider:
|
|
214
|
-
url?: string;
|
|
213
|
+
provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
|
|
215
214
|
description: string | null;
|
|
216
215
|
imageCount: number;
|
|
217
|
-
sources:
|
|
216
|
+
sources: {
|
|
217
|
+
id: string;
|
|
218
|
+
title: string;
|
|
219
|
+
provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
|
|
220
|
+
isIncluded: boolean;
|
|
221
|
+
}[];
|
|
218
222
|
isIncluded: boolean;
|
|
219
|
-
|
|
223
|
+
url?: string | undefined;
|
|
224
|
+
}[];
|
|
220
225
|
}>;
|
|
221
226
|
saveReference(input: SavedReferenceInput): Promise<{
|
|
222
227
|
analysis: "not_requested";
|
|
@@ -230,7 +235,32 @@ export declare class DesignProfiles {
|
|
|
230
235
|
isIncluded: boolean;
|
|
231
236
|
removedAt: string | null;
|
|
232
237
|
};
|
|
233
|
-
references:
|
|
238
|
+
references: {
|
|
239
|
+
provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
|
|
240
|
+
remoteId: string;
|
|
241
|
+
title: string;
|
|
242
|
+
text: string;
|
|
243
|
+
media: {
|
|
244
|
+
hash: string;
|
|
245
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
246
|
+
bytes: number;
|
|
247
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
248
|
+
page?: number | undefined;
|
|
249
|
+
}[];
|
|
250
|
+
id: string;
|
|
251
|
+
revision: number;
|
|
252
|
+
url?: string | undefined;
|
|
253
|
+
remoteImages?: string[] | undefined;
|
|
254
|
+
remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
|
|
255
|
+
unsupportedReason?: string | undefined;
|
|
256
|
+
variant?: {
|
|
257
|
+
projectId: string;
|
|
258
|
+
sessionId: string;
|
|
259
|
+
variantId: string;
|
|
260
|
+
treeSha?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
262
|
+
note?: string | undefined;
|
|
263
|
+
}[];
|
|
234
264
|
profileId: string;
|
|
235
265
|
}>;
|
|
236
266
|
private suppliedReferenceInput;
|
|
@@ -244,33 +274,29 @@ export declare class DesignProfiles {
|
|
|
244
274
|
}>;
|
|
245
275
|
private withReadOnlyRecords;
|
|
246
276
|
listGuidance(expectedAccountId?: string): Promise<{
|
|
247
|
-
title: string;
|
|
248
277
|
id: string;
|
|
278
|
+
title: string;
|
|
249
279
|
markdown: string;
|
|
250
280
|
isEnabled: boolean;
|
|
251
|
-
verifier?: {
|
|
252
|
-
isStale: boolean;
|
|
253
|
-
} | undefined;
|
|
254
281
|
attachments?: {
|
|
255
|
-
path: string;
|
|
256
|
-
source: string;
|
|
257
282
|
hash: string;
|
|
258
283
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
259
284
|
bytes: number;
|
|
260
285
|
representation: "variant" | "image" | "video-cover" | "page";
|
|
286
|
+
source: string;
|
|
261
287
|
alt: string;
|
|
262
|
-
|
|
288
|
+
path: string;
|
|
263
289
|
page?: number | undefined;
|
|
290
|
+
title?: string | undefined;
|
|
264
291
|
}[] | undefined;
|
|
265
292
|
references?: ({
|
|
266
|
-
path: string;
|
|
267
293
|
kind: "directory";
|
|
294
|
+
path: string;
|
|
268
295
|
intent: string;
|
|
269
296
|
} | {
|
|
270
|
-
url: string;
|
|
271
297
|
kind: "url" | "repository";
|
|
298
|
+
url: string;
|
|
272
299
|
intent: string;
|
|
273
|
-
digest?: string | undefined;
|
|
274
300
|
revision?: string | undefined;
|
|
275
301
|
files?: {
|
|
276
302
|
name: string;
|
|
@@ -278,36 +304,36 @@ export declare class DesignProfiles {
|
|
|
278
304
|
path?: string | undefined;
|
|
279
305
|
sha256?: string | undefined;
|
|
280
306
|
}[] | undefined;
|
|
307
|
+
digest?: string | undefined;
|
|
281
308
|
})[] | undefined;
|
|
309
|
+
verifier?: {
|
|
310
|
+
isStale: boolean;
|
|
311
|
+
} | undefined;
|
|
282
312
|
}[]>;
|
|
283
313
|
getGuidance(id: string, expectedAccountId?: string): Promise<{
|
|
284
|
-
title: string;
|
|
285
314
|
id: string;
|
|
315
|
+
title: string;
|
|
286
316
|
markdown: string;
|
|
287
317
|
isEnabled: boolean;
|
|
288
|
-
verifier?: {
|
|
289
|
-
isStale: boolean;
|
|
290
|
-
} | undefined;
|
|
291
318
|
attachments?: {
|
|
292
|
-
path: string;
|
|
293
|
-
source: string;
|
|
294
319
|
hash: string;
|
|
295
320
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
296
321
|
bytes: number;
|
|
297
322
|
representation: "variant" | "image" | "video-cover" | "page";
|
|
323
|
+
source: string;
|
|
298
324
|
alt: string;
|
|
299
|
-
|
|
325
|
+
path: string;
|
|
300
326
|
page?: number | undefined;
|
|
327
|
+
title?: string | undefined;
|
|
301
328
|
}[] | undefined;
|
|
302
329
|
references?: ({
|
|
303
|
-
path: string;
|
|
304
330
|
kind: "directory";
|
|
331
|
+
path: string;
|
|
305
332
|
intent: string;
|
|
306
333
|
} | {
|
|
307
|
-
url: string;
|
|
308
334
|
kind: "url" | "repository";
|
|
335
|
+
url: string;
|
|
309
336
|
intent: string;
|
|
310
|
-
digest?: string | undefined;
|
|
311
337
|
revision?: string | undefined;
|
|
312
338
|
files?: {
|
|
313
339
|
name: string;
|
|
@@ -315,42 +341,42 @@ export declare class DesignProfiles {
|
|
|
315
341
|
path?: string | undefined;
|
|
316
342
|
sha256?: string | undefined;
|
|
317
343
|
}[] | undefined;
|
|
344
|
+
digest?: string | undefined;
|
|
318
345
|
})[] | undefined;
|
|
346
|
+
verifier?: {
|
|
347
|
+
isStale: boolean;
|
|
348
|
+
} | undefined;
|
|
319
349
|
}>;
|
|
320
350
|
addGuidance(input: GuidanceUpload, expectedAccountId?: string): Promise<{
|
|
321
351
|
guidanceWarning?: {
|
|
322
352
|
code: "large_saved_context";
|
|
323
|
-
message: string;
|
|
324
353
|
documentCount: number;
|
|
325
354
|
byteCount: number;
|
|
355
|
+
message: string;
|
|
326
356
|
} | undefined;
|
|
327
|
-
title: string;
|
|
328
357
|
id: string;
|
|
358
|
+
title: string;
|
|
329
359
|
markdown: string;
|
|
330
360
|
isEnabled: boolean;
|
|
331
|
-
verifier?: {
|
|
332
|
-
isStale: boolean;
|
|
333
|
-
} | undefined;
|
|
334
361
|
attachments?: {
|
|
335
|
-
path: string;
|
|
336
|
-
source: string;
|
|
337
362
|
hash: string;
|
|
338
363
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
339
364
|
bytes: number;
|
|
340
365
|
representation: "variant" | "image" | "video-cover" | "page";
|
|
366
|
+
source: string;
|
|
341
367
|
alt: string;
|
|
342
|
-
|
|
368
|
+
path: string;
|
|
343
369
|
page?: number | undefined;
|
|
370
|
+
title?: string | undefined;
|
|
344
371
|
}[] | undefined;
|
|
345
372
|
references?: ({
|
|
346
|
-
path: string;
|
|
347
373
|
kind: "directory";
|
|
374
|
+
path: string;
|
|
348
375
|
intent: string;
|
|
349
376
|
} | {
|
|
350
|
-
url: string;
|
|
351
377
|
kind: "url" | "repository";
|
|
378
|
+
url: string;
|
|
352
379
|
intent: string;
|
|
353
|
-
digest?: string | undefined;
|
|
354
380
|
revision?: string | undefined;
|
|
355
381
|
files?: {
|
|
356
382
|
name: string;
|
|
@@ -358,44 +384,44 @@ export declare class DesignProfiles {
|
|
|
358
384
|
path?: string | undefined;
|
|
359
385
|
sha256?: string | undefined;
|
|
360
386
|
}[] | undefined;
|
|
387
|
+
digest?: string | undefined;
|
|
361
388
|
})[] | undefined;
|
|
389
|
+
verifier?: {
|
|
390
|
+
isStale: boolean;
|
|
391
|
+
} | undefined;
|
|
362
392
|
}>;
|
|
363
393
|
updateGuidance(input: GuidanceUploadUpdate & {
|
|
364
394
|
id: string;
|
|
365
395
|
}, expectedAccountId?: string): Promise<{
|
|
366
396
|
guidanceWarning?: {
|
|
367
397
|
code: "large_saved_context";
|
|
368
|
-
message: string;
|
|
369
398
|
documentCount: number;
|
|
370
399
|
byteCount: number;
|
|
400
|
+
message: string;
|
|
371
401
|
} | undefined;
|
|
372
|
-
title: string;
|
|
373
402
|
id: string;
|
|
403
|
+
title: string;
|
|
374
404
|
markdown: string;
|
|
375
405
|
isEnabled: boolean;
|
|
376
|
-
verifier?: {
|
|
377
|
-
isStale: boolean;
|
|
378
|
-
} | undefined;
|
|
379
406
|
attachments?: {
|
|
380
|
-
path: string;
|
|
381
|
-
source: string;
|
|
382
407
|
hash: string;
|
|
383
408
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
384
409
|
bytes: number;
|
|
385
410
|
representation: "variant" | "image" | "video-cover" | "page";
|
|
411
|
+
source: string;
|
|
386
412
|
alt: string;
|
|
387
|
-
|
|
413
|
+
path: string;
|
|
388
414
|
page?: number | undefined;
|
|
415
|
+
title?: string | undefined;
|
|
389
416
|
}[] | undefined;
|
|
390
417
|
references?: ({
|
|
391
|
-
path: string;
|
|
392
418
|
kind: "directory";
|
|
419
|
+
path: string;
|
|
393
420
|
intent: string;
|
|
394
421
|
} | {
|
|
395
|
-
url: string;
|
|
396
422
|
kind: "url" | "repository";
|
|
423
|
+
url: string;
|
|
397
424
|
intent: string;
|
|
398
|
-
digest?: string | undefined;
|
|
399
425
|
revision?: string | undefined;
|
|
400
426
|
files?: {
|
|
401
427
|
name: string;
|
|
@@ -403,42 +429,45 @@ export declare class DesignProfiles {
|
|
|
403
429
|
path?: string | undefined;
|
|
404
430
|
sha256?: string | undefined;
|
|
405
431
|
}[] | undefined;
|
|
432
|
+
digest?: string | undefined;
|
|
406
433
|
})[] | undefined;
|
|
434
|
+
verifier?: {
|
|
435
|
+
isStale: boolean;
|
|
436
|
+
} | undefined;
|
|
407
437
|
}>;
|
|
408
438
|
removeGuidance(id: string, expectedAccountId?: string): Promise<void>;
|
|
409
439
|
private importGuidanceImages;
|
|
410
440
|
resolveGuidance(input: GuidanceSelection, expectedAccountId?: string): Promise<{
|
|
411
441
|
guidanceWarning?: {
|
|
412
442
|
code: "large_saved_context";
|
|
413
|
-
message: string;
|
|
414
443
|
documentCount: number;
|
|
415
444
|
byteCount: number;
|
|
445
|
+
message: string;
|
|
416
446
|
} | undefined;
|
|
417
447
|
accountId: string;
|
|
418
448
|
guidance: {
|
|
419
|
-
title: string;
|
|
420
449
|
id: string;
|
|
450
|
+
title: string;
|
|
421
451
|
markdown: string;
|
|
422
452
|
attachments?: {
|
|
423
|
-
path: string;
|
|
424
|
-
source: string;
|
|
425
453
|
hash: string;
|
|
426
454
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
427
455
|
bytes: number;
|
|
428
456
|
representation: "variant" | "image" | "video-cover" | "page";
|
|
457
|
+
source: string;
|
|
429
458
|
alt: string;
|
|
430
|
-
|
|
459
|
+
path: string;
|
|
431
460
|
page?: number | undefined;
|
|
461
|
+
title?: string | undefined;
|
|
432
462
|
}[] | undefined;
|
|
433
463
|
references?: ({
|
|
434
|
-
path: string;
|
|
435
464
|
kind: "directory";
|
|
465
|
+
path: string;
|
|
436
466
|
intent: string;
|
|
437
467
|
} | {
|
|
438
|
-
url: string;
|
|
439
468
|
kind: "url" | "repository";
|
|
469
|
+
url: string;
|
|
440
470
|
intent: string;
|
|
441
|
-
digest?: string | undefined;
|
|
442
471
|
revision?: string | undefined;
|
|
443
472
|
files?: {
|
|
444
473
|
name: string;
|
|
@@ -446,6 +475,7 @@ export declare class DesignProfiles {
|
|
|
446
475
|
path?: string | undefined;
|
|
447
476
|
sha256?: string | undefined;
|
|
448
477
|
}[] | undefined;
|
|
478
|
+
digest?: string | undefined;
|
|
449
479
|
})[] | undefined;
|
|
450
480
|
}[];
|
|
451
481
|
}>;
|
|
@@ -459,23 +489,23 @@ export declare class DesignProfiles {
|
|
|
459
489
|
}): Promise<{
|
|
460
490
|
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
461
491
|
scopeDisclosure: string;
|
|
462
|
-
|
|
463
|
-
|
|
492
|
+
profile: {
|
|
493
|
+
id: string;
|
|
494
|
+
username: string;
|
|
495
|
+
title: string;
|
|
496
|
+
url: string;
|
|
497
|
+
};
|
|
464
498
|
collections: {
|
|
499
|
+
id: string;
|
|
500
|
+
title: string;
|
|
465
501
|
description: string | null;
|
|
466
502
|
url: string | null;
|
|
467
|
-
title: string;
|
|
468
|
-
id: string;
|
|
469
|
-
children: string[];
|
|
470
503
|
total: number | null;
|
|
471
504
|
parentId: string | null;
|
|
505
|
+
children: string[];
|
|
472
506
|
}[];
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
title: string;
|
|
476
|
-
id: string;
|
|
477
|
-
username: string;
|
|
478
|
-
};
|
|
507
|
+
total: number;
|
|
508
|
+
id: string;
|
|
479
509
|
createdAt: string;
|
|
480
510
|
status?: undefined;
|
|
481
511
|
authUrl?: undefined;
|
|
@@ -491,10 +521,10 @@ export declare class DesignProfiles {
|
|
|
491
521
|
revision: string;
|
|
492
522
|
discoveryId: string;
|
|
493
523
|
profile: {
|
|
494
|
-
url: string;
|
|
495
|
-
title: string;
|
|
496
524
|
id: string;
|
|
497
525
|
username: string;
|
|
526
|
+
title: string;
|
|
527
|
+
url: string;
|
|
498
528
|
};
|
|
499
529
|
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
500
530
|
runtime: "claude" | "codex" | "cursor";
|
|
@@ -505,13 +535,13 @@ export declare class DesignProfiles {
|
|
|
505
535
|
collections: {
|
|
506
536
|
includedCollectionIds: string[];
|
|
507
537
|
referenceCount: number;
|
|
538
|
+
id: string;
|
|
539
|
+
title: string;
|
|
508
540
|
description: string | null;
|
|
509
541
|
url: string | null;
|
|
510
|
-
title: string;
|
|
511
|
-
id: string;
|
|
512
|
-
children: string[];
|
|
513
542
|
total: number | null;
|
|
514
543
|
parentId: string | null;
|
|
544
|
+
children: string[];
|
|
515
545
|
}[];
|
|
516
546
|
collectionCount: number;
|
|
517
547
|
referenceCount: number;
|
|
@@ -530,10 +560,10 @@ export declare class DesignProfiles {
|
|
|
530
560
|
revision: string;
|
|
531
561
|
discoveryId: string;
|
|
532
562
|
profile: {
|
|
533
|
-
url: string;
|
|
534
|
-
title: string;
|
|
535
563
|
id: string;
|
|
536
564
|
username: string;
|
|
565
|
+
title: string;
|
|
566
|
+
url: string;
|
|
537
567
|
};
|
|
538
568
|
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
539
569
|
runtime: "claude" | "codex" | "cursor";
|
|
@@ -544,13 +574,13 @@ export declare class DesignProfiles {
|
|
|
544
574
|
collections: {
|
|
545
575
|
includedCollectionIds: string[];
|
|
546
576
|
referenceCount: number;
|
|
577
|
+
id: string;
|
|
578
|
+
title: string;
|
|
547
579
|
description: string | null;
|
|
548
580
|
url: string | null;
|
|
549
|
-
title: string;
|
|
550
|
-
id: string;
|
|
551
|
-
children: string[];
|
|
552
581
|
total: number | null;
|
|
553
582
|
parentId: string | null;
|
|
583
|
+
children: string[];
|
|
554
584
|
}[];
|
|
555
585
|
collectionCount: number;
|
|
556
586
|
referenceCount: number;
|
|
@@ -567,7 +597,7 @@ export declare class DesignProfiles {
|
|
|
567
597
|
referenceOnboarding(action?: ReferenceOnboardingAction, provider?: ReferenceProvider): Promise<{
|
|
568
598
|
providers: {
|
|
569
599
|
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
570
|
-
state: "pending" | "
|
|
600
|
+
state: "pending" | "later" | "complete" | "dismissed";
|
|
571
601
|
offeredAt: string | null;
|
|
572
602
|
remindAt: string | null;
|
|
573
603
|
}[];
|
|
@@ -591,10 +621,10 @@ export declare class DesignProfiles {
|
|
|
591
621
|
revision: string;
|
|
592
622
|
discoveryId: string;
|
|
593
623
|
profile: {
|
|
594
|
-
url: string;
|
|
595
|
-
title: string;
|
|
596
624
|
id: string;
|
|
597
625
|
username: string;
|
|
626
|
+
title: string;
|
|
627
|
+
url: string;
|
|
598
628
|
};
|
|
599
629
|
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
600
630
|
runtime: "claude" | "codex" | "cursor";
|
|
@@ -605,13 +635,13 @@ export declare class DesignProfiles {
|
|
|
605
635
|
collections: {
|
|
606
636
|
includedCollectionIds: string[];
|
|
607
637
|
referenceCount: number;
|
|
638
|
+
id: string;
|
|
639
|
+
title: string;
|
|
608
640
|
description: string | null;
|
|
609
641
|
url: string | null;
|
|
610
|
-
title: string;
|
|
611
|
-
id: string;
|
|
612
|
-
children: string[];
|
|
613
642
|
total: number | null;
|
|
614
643
|
parentId: string | null;
|
|
644
|
+
children: string[];
|
|
615
645
|
}[];
|
|
616
646
|
collectionCount: number;
|
|
617
647
|
referenceCount: number;
|
|
@@ -676,7 +706,7 @@ export declare class DesignProfiles {
|
|
|
676
706
|
};
|
|
677
707
|
referenceOnboarding: {
|
|
678
708
|
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
679
|
-
state: "pending" | "
|
|
709
|
+
state: "pending" | "later" | "complete" | "dismissed";
|
|
680
710
|
offeredAt: string | null;
|
|
681
711
|
remindAt: string | null;
|
|
682
712
|
}[];
|
|
@@ -757,7 +787,7 @@ export declare class DesignProfiles {
|
|
|
757
787
|
};
|
|
758
788
|
referenceOnboarding: {
|
|
759
789
|
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
760
|
-
state: "pending" | "
|
|
790
|
+
state: "pending" | "later" | "complete" | "dismissed";
|
|
761
791
|
offeredAt: string | null;
|
|
762
792
|
remindAt: string | null;
|
|
763
793
|
}[];
|
|
@@ -817,7 +847,7 @@ export declare class DesignProfiles {
|
|
|
817
847
|
};
|
|
818
848
|
referenceOnboarding: {
|
|
819
849
|
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
820
|
-
state: "pending" | "
|
|
850
|
+
state: "pending" | "later" | "complete" | "dismissed";
|
|
821
851
|
offeredAt: string | null;
|
|
822
852
|
remindAt: string | null;
|
|
823
853
|
}[];
|
|
@@ -839,7 +869,32 @@ export declare class DesignProfiles {
|
|
|
839
869
|
isIncluded: boolean;
|
|
840
870
|
removedAt: string | null;
|
|
841
871
|
};
|
|
842
|
-
reference:
|
|
872
|
+
reference: {
|
|
873
|
+
provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
|
|
874
|
+
remoteId: string;
|
|
875
|
+
title: string;
|
|
876
|
+
text: string;
|
|
877
|
+
media: {
|
|
878
|
+
hash: string;
|
|
879
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
880
|
+
bytes: number;
|
|
881
|
+
representation: "variant" | "image" | "video-cover" | "page";
|
|
882
|
+
page?: number | undefined;
|
|
883
|
+
}[];
|
|
884
|
+
id: string;
|
|
885
|
+
revision: number;
|
|
886
|
+
url?: string | undefined;
|
|
887
|
+
remoteImages?: string[] | undefined;
|
|
888
|
+
remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
|
|
889
|
+
unsupportedReason?: string | undefined;
|
|
890
|
+
variant?: {
|
|
891
|
+
projectId: string;
|
|
892
|
+
sessionId: string;
|
|
893
|
+
variantId: string;
|
|
894
|
+
treeSha?: string | undefined;
|
|
895
|
+
} | undefined;
|
|
896
|
+
note?: string | undefined;
|
|
897
|
+
};
|
|
843
898
|
}>;
|
|
844
899
|
addImages({ title, files, runtime, }: {
|
|
845
900
|
title: string;
|
|
@@ -967,7 +1022,7 @@ export declare class DesignProfiles {
|
|
|
967
1022
|
};
|
|
968
1023
|
referenceOnboarding: {
|
|
969
1024
|
provider: "pinterest" | "arena" | "cosmos" | "x";
|
|
970
|
-
state: "pending" | "
|
|
1025
|
+
state: "pending" | "later" | "complete" | "dismissed";
|
|
971
1026
|
offeredAt: string | null;
|
|
972
1027
|
remindAt: string | null;
|
|
973
1028
|
}[];
|
|
@@ -1004,11 +1059,11 @@ export declare class DesignProfiles {
|
|
|
1004
1059
|
}): Promise<void>;
|
|
1005
1060
|
references(sourceId?: string): Promise<{
|
|
1006
1061
|
observation: {
|
|
1007
|
-
|
|
1062
|
+
referenceId: string;
|
|
1008
1063
|
revision: number;
|
|
1064
|
+
description: string;
|
|
1009
1065
|
runtime: "claude" | "codex" | "cursor" | "user";
|
|
1010
1066
|
evidence: "observation" | "preference";
|
|
1011
|
-
referenceId: string;
|
|
1012
1067
|
usage?: {
|
|
1013
1068
|
inputTokens?: number | undefined;
|
|
1014
1069
|
outputTokens?: number | undefined;
|
|
@@ -1016,12 +1071,10 @@ export declare class DesignProfiles {
|
|
|
1016
1071
|
allocation?: "equal-share" | undefined;
|
|
1017
1072
|
} | undefined;
|
|
1018
1073
|
} | null;
|
|
1019
|
-
id: string;
|
|
1020
|
-
revision: number;
|
|
1021
|
-
title: string;
|
|
1022
|
-
text: string;
|
|
1023
1074
|
provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
|
|
1024
1075
|
remoteId: string;
|
|
1076
|
+
title: string;
|
|
1077
|
+
text: string;
|
|
1025
1078
|
media: {
|
|
1026
1079
|
hash: string;
|
|
1027
1080
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
@@ -1029,17 +1082,19 @@ export declare class DesignProfiles {
|
|
|
1029
1082
|
representation: "variant" | "image" | "video-cover" | "page";
|
|
1030
1083
|
page?: number | undefined;
|
|
1031
1084
|
}[];
|
|
1085
|
+
id: string;
|
|
1086
|
+
revision: number;
|
|
1087
|
+
url?: string | undefined;
|
|
1088
|
+
remoteImages?: string[] | undefined;
|
|
1089
|
+
remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
|
|
1090
|
+
unsupportedReason?: string | undefined;
|
|
1032
1091
|
variant?: {
|
|
1033
1092
|
projectId: string;
|
|
1034
1093
|
sessionId: string;
|
|
1035
1094
|
variantId: string;
|
|
1036
1095
|
treeSha?: string | undefined;
|
|
1037
1096
|
} | undefined;
|
|
1038
|
-
url?: string | undefined;
|
|
1039
1097
|
note?: string | undefined;
|
|
1040
|
-
remoteImages?: string[] | undefined;
|
|
1041
|
-
remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
|
|
1042
|
-
unsupportedReason?: string | undefined;
|
|
1043
1098
|
}[]>;
|
|
1044
1099
|
library(): Promise<DesignLibrarySnapshot>;
|
|
1045
1100
|
search(input: DesignReferenceSearchRequest): Promise<DesignReferenceSearchResult>;
|
|
@@ -1068,25 +1123,25 @@ export declare class DesignProfiles {
|
|
|
1068
1123
|
prepare(input: PreparationInput, accountId?: string | undefined): Promise<{
|
|
1069
1124
|
profileId: string;
|
|
1070
1125
|
accountId: string;
|
|
1071
|
-
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
1072
1126
|
requestId: string;
|
|
1127
|
+
status: "timeout" | "off" | "selected" | "empty" | "unavailable";
|
|
1128
|
+
queries: string[];
|
|
1129
|
+
candidateIds: string[];
|
|
1073
1130
|
selected: {
|
|
1074
|
-
reason: string;
|
|
1075
|
-
revision: number;
|
|
1076
1131
|
id: string;
|
|
1132
|
+
revision: number;
|
|
1133
|
+
reason: string;
|
|
1077
1134
|
sourceTitles: string[];
|
|
1135
|
+
title?: string | undefined;
|
|
1136
|
+
url?: string | undefined;
|
|
1137
|
+
mediaHashes?: string[] | undefined;
|
|
1078
1138
|
variant?: {
|
|
1079
1139
|
projectId: string;
|
|
1080
1140
|
sessionId: string;
|
|
1081
1141
|
variantId: string;
|
|
1082
1142
|
treeSha?: string | undefined;
|
|
1083
1143
|
} | undefined;
|
|
1084
|
-
url?: string | undefined;
|
|
1085
|
-
title?: string | undefined;
|
|
1086
|
-
mediaHashes?: string[] | undefined;
|
|
1087
1144
|
}[];
|
|
1088
|
-
queries: string[];
|
|
1089
|
-
candidateIds: string[];
|
|
1090
1145
|
contextText: string;
|
|
1091
1146
|
images: {
|
|
1092
1147
|
path: string;
|
|
@@ -1094,12 +1149,6 @@ export declare class DesignProfiles {
|
|
|
1094
1149
|
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
|
|
1095
1150
|
}[];
|
|
1096
1151
|
durationMs: number;
|
|
1097
|
-
usage?: {
|
|
1098
|
-
inputTokens?: number | undefined;
|
|
1099
|
-
outputTokens?: number | undefined;
|
|
1100
|
-
cachedInputTokens?: number | undefined;
|
|
1101
|
-
allocation?: "equal-share" | undefined;
|
|
1102
|
-
} | undefined;
|
|
1103
1152
|
suppliedReferences?: {
|
|
1104
1153
|
title: string;
|
|
1105
1154
|
id: string;
|
|
@@ -1111,6 +1160,12 @@ export declare class DesignProfiles {
|
|
|
1111
1160
|
} | undefined;
|
|
1112
1161
|
}[] | undefined;
|
|
1113
1162
|
failedUploadCount?: number | undefined;
|
|
1163
|
+
usage?: {
|
|
1164
|
+
inputTokens?: number | undefined;
|
|
1165
|
+
outputTokens?: number | undefined;
|
|
1166
|
+
cachedInputTokens?: number | undefined;
|
|
1167
|
+
allocation?: "equal-share" | undefined;
|
|
1168
|
+
} | undefined;
|
|
1114
1169
|
}>;
|
|
1115
1170
|
private saveSuppliedImages;
|
|
1116
1171
|
close(): Promise<void>;
|