rivet-design 0.26.0 → 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 (96) 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 +1099 -4966
  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 +464 -464
  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 +8 -8
  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/GuidanceVerifierRunner.js +13 -2
  46. package/dist/services/HubDiscovery.d.ts +1 -9
  47. package/dist/services/IntegrationsClient.d.ts +16 -16
  48. package/dist/services/MCPOnboardingTelemetry.d.ts +0 -14
  49. package/dist/services/MCPOnboardingTelemetry.js +0 -62
  50. package/dist/services/ProjectRegistry.d.ts +5 -24
  51. package/dist/services/TelemetryService.d.ts +1 -62
  52. package/dist/services/TelemetryService.js +0 -113
  53. package/dist/services/TreeStore.d.ts +0 -2
  54. package/dist/services/TreeStore.js +0 -24
  55. package/dist/services/profiles/DesignProfiles.d.ts +180 -125
  56. package/dist/services/profiles/ProfilePlanning.d.ts +38 -38
  57. package/dist/services/profiles/ReferenceReader.d.ts +14 -14
  58. package/dist/services/profiles/modelContract.js +4 -4
  59. package/dist/storage/library/ProjectPreviewCache.d.ts +1 -13
  60. package/dist/storage/profiles/ProfilePlans.d.ts +137 -137
  61. package/dist/storage/profiles/ProfileRecords.d.ts +62 -37
  62. package/dist/storage/profiles/planSchema.d.ts +40 -40
  63. package/dist/storage/profiles/schema.d.ts +16 -16
  64. package/dist/types/api-responses.d.ts +174 -0
  65. package/dist/types/api-responses.js +108 -0
  66. package/dist/types/cosmos-profile.d.ts +17 -105
  67. package/dist/types/cosmos.d.ts +48 -266
  68. package/dist/types/design-library.d.ts +230 -61
  69. package/dist/types/design-library.js +38 -1
  70. package/dist/types/design-profile.d.ts +220 -529
  71. package/dist/types/design-profile.js +5 -1
  72. package/dist/types/guidance-references.d.ts +68 -316
  73. package/dist/types/guidance-verifier.d.ts +103 -197
  74. package/dist/types/guidance-verifier.js +36 -13
  75. package/dist/types/guidance.d.ts +182 -1643
  76. package/dist/types/guidance.js +4 -1
  77. package/dist/types/project-library.d.ts +60 -30
  78. package/dist/types/project-library.js +32 -1
  79. package/dist/types/reference-connectors.d.ts +38 -162
  80. package/dist/types/reference-onboarding.d.ts +144 -878
  81. package/dist/types/reference-pages.d.ts +27 -139
  82. package/dist/types/x-bookmarks.d.ts +40 -296
  83. package/dist/utils/displayLocale.d.ts +0 -1
  84. package/dist/utils/displayLocale.js +1 -3
  85. package/dist/utils/skills/cli-guidance.d.ts +1 -1
  86. package/dist/utils/skills/cli-guidance.js +2 -2
  87. package/package.json +4 -4
  88. package/src/ui/dist/assets/LibraryEntry-92R_T-Xa.js +37 -0
  89. package/src/ui/dist/assets/main-D0UmAaUe.css +1 -0
  90. package/src/ui/dist/assets/main-DgEfJvYu.js +497 -0
  91. package/src/ui/dist/index.html +2 -2
  92. package/dist/types/change-types.d.ts +0 -66
  93. package/dist/types/change-types.js +0 -3
  94. package/src/ui/dist/assets/LibraryEntry-CFkd6v_O.js +0 -37
  95. package/src/ui/dist/assets/main-B_jie9r3.js +0 -439
  96. package/src/ui/dist/assets/main-W3oTuTTl.css +0 -1
@@ -17,44 +17,43 @@ export declare class ProfilePlanning {
17
17
  discover({ signal: cancellation, ...input }: ReferenceDiscoveryRequest & {
18
18
  signal: AbortSignal;
19
19
  }): Promise<{
20
- id: string;
21
- total: number;
20
+ profile: {
21
+ id: string;
22
+ username: string;
23
+ title: string;
24
+ url: string;
25
+ };
22
26
  collections: {
27
+ id: string;
28
+ title: string;
23
29
  description: string | null;
24
30
  url: string | null;
25
- title: string;
26
- id: string;
27
- children: string[];
28
31
  total: number | null;
29
32
  parentId: string | null;
33
+ children: string[];
30
34
  }[];
31
- profile: {
32
- url: string;
33
- title: string;
34
- id: string;
35
- username: string;
36
- };
35
+ total: number;
36
+ id: string;
37
37
  createdAt: string;
38
38
  }>;
39
39
  prepare(input: ReferencePlanRequest, cancellation: AbortSignal): Promise<{
40
- expiresAt: string;
41
- revision: string;
42
- runtime: "claude" | "codex" | "cursor";
43
- id: string;
44
- profile: {
45
- url: string;
46
- title: string;
47
- id: string;
48
- username: string;
49
- };
50
- createdAt: string;
51
40
  discoveryId: string;
41
+ runtime: "claude" | "codex" | "cursor";
52
42
  sources: {
43
+ collection: {
44
+ id: string;
45
+ title: string;
46
+ description: string | null;
47
+ url: string | null;
48
+ total: number | null;
49
+ parentId: string | null;
50
+ children: string[];
51
+ };
52
+ collectionIds: string[];
53
53
  references: {
54
+ remoteId: string;
54
55
  title: string;
55
56
  text: string;
56
- provider: "pinterest" | "arena" | "cosmos" | "x";
57
- remoteId: string;
58
57
  media: {
59
58
  hash: string;
60
59
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
@@ -62,30 +61,31 @@ export declare class ProfilePlanning {
62
61
  representation: "variant" | "image" | "video-cover" | "page";
63
62
  page?: number | undefined;
64
63
  }[];
64
+ provider: "pinterest" | "arena" | "cosmos" | "x";
65
+ url?: string | undefined;
66
+ remoteImages?: string[] | undefined;
67
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
68
+ unsupportedReason?: string | undefined;
65
69
  variant?: {
66
70
  projectId: string;
67
71
  sessionId: string;
68
72
  variantId: string;
69
73
  treeSha?: string | undefined;
70
74
  } | undefined;
71
- url?: string | undefined;
72
75
  note?: string | undefined;
73
- remoteImages?: string[] | undefined;
74
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
75
- unsupportedReason?: string | undefined;
76
76
  }[];
77
- collection: {
78
- description: string | null;
79
- url: string | null;
80
- title: string;
81
- id: string;
82
- children: string[];
83
- total: number | null;
84
- parentId: string | null;
85
- };
86
- collectionIds: string[];
87
77
  }[];
88
78
  reusableCount: number;
79
+ id: string;
80
+ profile: {
81
+ id: string;
82
+ username: string;
83
+ title: string;
84
+ url: string;
85
+ };
86
+ revision: string;
87
+ createdAt: string;
88
+ expiresAt: string;
89
89
  approvedAt: string | null;
90
90
  jobIds: string[];
91
91
  }>;
@@ -14,22 +14,22 @@ export declare class ReferenceReader {
14
14
  expectedAccountId?: string;
15
15
  signal: AbortSignal;
16
16
  }): Promise<{
17
- total: number | null;
18
- nextCursor: string | null;
19
17
  collections: {
18
+ id: string;
19
+ title: string;
20
20
  description: string | null;
21
21
  url: string | null;
22
- title: string;
23
- id: string;
24
- children: string[];
25
22
  total: number | null;
26
23
  parentId: string | null;
24
+ children: string[];
27
25
  }[];
26
+ total: number | null;
27
+ nextCursor: string | null;
28
28
  profile: {
29
- url: string;
30
- title: string;
31
29
  id: string;
32
30
  username: string;
31
+ title: string;
32
+ url: string;
33
33
  };
34
34
  }>;
35
35
  verify(profile: ReferenceProfile, signal: AbortSignal): Promise<void>;
@@ -40,11 +40,11 @@ export declare class ReferenceReader {
40
40
  signal: AbortSignal;
41
41
  }): Promise<{
42
42
  accountId: string;
43
+ collectionId: string;
43
44
  references: {
45
+ remoteId: string;
44
46
  title: string;
45
47
  text: string;
46
- provider: "pinterest" | "arena" | "cosmos" | "x";
47
- remoteId: string;
48
48
  media: {
49
49
  hash: string;
50
50
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
@@ -52,21 +52,21 @@ export declare class ReferenceReader {
52
52
  representation: "variant" | "image" | "video-cover" | "page";
53
53
  page?: number | undefined;
54
54
  }[];
55
+ provider: "pinterest" | "arena" | "cosmos" | "x";
56
+ url?: string | undefined;
57
+ remoteImages?: string[] | undefined;
58
+ remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
59
+ unsupportedReason?: string | undefined;
55
60
  variant?: {
56
61
  projectId: string;
57
62
  sessionId: string;
58
63
  variantId: string;
59
64
  treeSha?: string | undefined;
60
65
  } | undefined;
61
- url?: string | undefined;
62
66
  note?: string | undefined;
63
- remoteImages?: string[] | undefined;
64
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
65
- unsupportedReason?: string | undefined;
66
67
  }[];
67
68
  total: number | null;
68
69
  nextCursor: string | null;
69
- collectionId: string;
70
70
  isCollectionComplete: boolean;
71
71
  }>;
72
72
  private connectors;
@@ -21,7 +21,7 @@ const modelRequest = zod_1.z
21
21
  output_config: zod_1.z.object({
22
22
  format: zod_1.z.object({
23
23
  type: zod_1.z.literal('json_schema'),
24
- schema: zod_1.z.record(zod_1.z.unknown()),
24
+ schema: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
25
25
  }),
26
26
  }),
27
27
  temperature: zod_1.z.number().optional(),
@@ -76,7 +76,7 @@ const readAgentResult = (runtime, stdout, answer) => {
76
76
  .split('\n')
77
77
  .flatMap((line) => {
78
78
  try {
79
- return [zod_1.z.record(zod_1.z.unknown()).parse(JSON.parse(line))];
79
+ return [zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).parse(JSON.parse(line))];
80
80
  }
81
81
  catch {
82
82
  return [];
@@ -90,7 +90,7 @@ const readAgentResult = (runtime, stdout, answer) => {
90
90
  throw new Error('Codex did not return a completed profile task');
91
91
  return {
92
92
  value: answerObject(answer),
93
- usage: zod_1.z.record(zod_1.z.unknown()).parse(finished.usage ?? {}),
93
+ usage: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).parse(finished.usage ?? {}),
94
94
  inspectedImages: [],
95
95
  };
96
96
  }
@@ -101,7 +101,7 @@ const readAgentResult = (runtime, stdout, answer) => {
101
101
  return {
102
102
  value: finished.structured_output ??
103
103
  answerObject(zod_1.z.string().parse(finished.result)),
104
- usage: zod_1.z.record(zod_1.z.unknown()).parse(finished.usage ?? {}),
104
+ usage: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).parse(finished.usage ?? {}),
105
105
  inspectedImages: (0, nativeImages_1.readNativeImagePaths)(runtime, events),
106
106
  };
107
107
  };
@@ -5,19 +5,7 @@ declare const PreviewSchema: z.ZodObject<{
5
5
  dataUrl: z.ZodString;
6
6
  label: z.ZodString;
7
7
  capturedAt: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- projectPath: string;
10
- dataUrl: string;
11
- label: string;
12
- sourceKey: string;
13
- capturedAt: string;
14
- }, {
15
- projectPath: string;
16
- dataUrl: string;
17
- label: string;
18
- sourceKey: string;
19
- capturedAt: string;
20
- }>;
8
+ }, z.core.$strip>;
21
9
  export type CachedProjectPreview = z.infer<typeof PreviewSchema>;
22
10
  export declare class ProjectPreviewCache {
23
11
  private readonly root;
@@ -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
  };