rivet-design 0.21.1 → 0.21.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 (107) hide show
  1. package/dist/agent-variants/contracts.d.ts +410 -410
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +25 -9
  5. package/dist/index.js.map +1 -1
  6. package/dist/library/BrowserSessions.d.ts +24 -8
  7. package/dist/library/BrowserSessions.d.ts.map +1 -1
  8. package/dist/library/BrowserSessions.js +67 -45
  9. package/dist/library/BrowserSessions.js.map +1 -1
  10. package/dist/library/HubServer.js +1 -1
  11. package/dist/library/HubServer.js.map +1 -1
  12. package/dist/routes/account.d.ts.map +1 -1
  13. package/dist/routes/account.js +7 -2
  14. package/dist/routes/account.js.map +1 -1
  15. package/dist/routes/installRef.d.ts +3 -0
  16. package/dist/routes/installRef.d.ts.map +1 -0
  17. package/dist/routes/installRef.js +18 -0
  18. package/dist/routes/installRef.js.map +1 -0
  19. package/dist/routes/library/app.d.ts.map +1 -1
  20. package/dist/routes/library/app.js +3 -8
  21. package/dist/routes/library/app.js.map +1 -1
  22. package/dist/routes/library/browserAccess.d.ts +0 -1
  23. package/dist/routes/library/browserAccess.d.ts.map +1 -1
  24. package/dist/routes/library/browserAccess.js +27 -20
  25. package/dist/routes/library/browserAccess.js.map +1 -1
  26. package/dist/routes/library/index.d.ts.map +1 -1
  27. package/dist/routes/library/index.js +2 -4
  28. package/dist/routes/library/index.js.map +1 -1
  29. package/dist/routes/library/middleware.d.ts +1 -1
  30. package/dist/routes/library/middleware.d.ts.map +1 -1
  31. package/dist/routes/library/middleware.js +15 -3
  32. package/dist/routes/library/middleware.js.map +1 -1
  33. package/dist/routes/variantRequestSchema.d.ts +7 -7
  34. package/dist/server.d.ts.map +1 -1
  35. package/dist/server.js +2 -0
  36. package/dist/server.js.map +1 -1
  37. package/dist/services/AuthService.d.ts.map +1 -1
  38. package/dist/services/AuthService.js +41 -15
  39. package/dist/services/AuthService.js.map +1 -1
  40. package/dist/services/BrowserAgentClient.d.ts.map +1 -1
  41. package/dist/services/BrowserAgentClient.js +13 -3
  42. package/dist/services/BrowserAgentClient.js.map +1 -1
  43. package/dist/services/ConfigManager.d.ts +23 -3
  44. package/dist/services/ConfigManager.d.ts.map +1 -1
  45. package/dist/services/ConfigManager.js +117 -24
  46. package/dist/services/ConfigManager.js.map +1 -1
  47. package/dist/services/GatewayClient.d.ts.map +1 -1
  48. package/dist/services/GatewayClient.js +3 -2
  49. package/dist/services/GatewayClient.js.map +1 -1
  50. package/dist/services/IntegrationsClient.d.ts +3 -3
  51. package/dist/services/IntegrationsClient.d.ts.map +1 -1
  52. package/dist/services/IntegrationsClient.js +5 -11
  53. package/dist/services/IntegrationsClient.js.map +1 -1
  54. package/dist/services/ProjectRegistry.d.ts +2 -2
  55. package/dist/services/PrototypeDeployService.d.ts.map +1 -1
  56. package/dist/services/PrototypeDeployService.js +3 -2
  57. package/dist/services/PrototypeDeployService.js.map +1 -1
  58. package/dist/services/authUpdate.d.ts +8 -0
  59. package/dist/services/authUpdate.d.ts.map +1 -0
  60. package/dist/services/authUpdate.js +21 -0
  61. package/dist/services/authUpdate.js.map +1 -0
  62. package/dist/services/pendingLogin.d.ts +2 -0
  63. package/dist/services/pendingLogin.d.ts.map +1 -1
  64. package/dist/services/pendingLogin.js +4 -2
  65. package/dist/services/pendingLogin.js.map +1 -1
  66. package/dist/services/profiles/DesignProfiles.d.ts +6 -6
  67. package/dist/services/profiles/ProfilePlanning.d.ts +4 -4
  68. package/dist/services/profiles/ReferenceReader.d.ts +3 -3
  69. package/dist/services/profiles/profileContext.d.ts +1 -1
  70. package/dist/storage/library/BrowserAuthorizationRecords.d.ts +54 -0
  71. package/dist/storage/library/BrowserAuthorizationRecords.d.ts.map +1 -0
  72. package/dist/storage/library/BrowserAuthorizationRecords.js +175 -0
  73. package/dist/storage/library/BrowserAuthorizationRecords.js.map +1 -0
  74. package/dist/storage/library/database.d.ts +2 -1
  75. package/dist/storage/library/database.d.ts.map +1 -1
  76. package/dist/storage/library/database.js +5 -36
  77. package/dist/storage/library/database.js.map +1 -1
  78. package/dist/storage/library/migrations.d.ts +1 -0
  79. package/dist/storage/library/migrations.d.ts.map +1 -1
  80. package/dist/storage/library/migrations.js +14 -1
  81. package/dist/storage/library/migrations.js.map +1 -1
  82. package/dist/storage/library/schema/browserAuthorization.d.ts +191 -0
  83. package/dist/storage/library/schema/browserAuthorization.d.ts.map +1 -0
  84. package/dist/storage/library/schema/browserAuthorization.js +20 -0
  85. package/dist/storage/library/schema/browserAuthorization.js.map +1 -0
  86. package/dist/storage/profiles/ProfilePlans.d.ts +15 -15
  87. package/dist/storage/profiles/ProfileRecords.d.ts +3 -3
  88. package/dist/storage/profiles/planSchema.d.ts +4 -4
  89. package/dist/storage/profiles/schema.d.ts +2 -2
  90. package/dist/types/cosmos-profile.d.ts +6 -6
  91. package/dist/types/cosmos.d.ts +20 -20
  92. package/dist/types/design-library.d.ts +2 -2
  93. package/dist/types/design-profile.d.ts +14 -14
  94. package/dist/types/guidance.d.ts +4 -4
  95. package/dist/types/reference-connectors.d.ts +10 -10
  96. package/dist/types/reference-onboarding.d.ts +43 -43
  97. package/dist/types/reference-pages.d.ts +6 -6
  98. package/dist/types/variant-reference.d.ts +4 -4
  99. package/dist/utils/installRef.d.ts +8 -0
  100. package/dist/utils/installRef.d.ts.map +1 -0
  101. package/dist/utils/installRef.js +34 -0
  102. package/dist/utils/installRef.js.map +1 -0
  103. package/package.json +2 -2
  104. package/src/ui/dist/assets/LibraryEntry-B5kPF3Ey.js +36 -0
  105. package/src/ui/dist/assets/{main-CEV9QrPk.js → main-Er_TRZTd.js} +85 -85
  106. package/src/ui/dist/index.html +1 -1
  107. package/src/ui/dist/assets/LibraryEntry-D962AMoc.js +0 -36
@@ -42,17 +42,17 @@ export declare const ReferenceCollectionSchema: z.ZodObject<{
42
42
  children: z.ZodArray<z.ZodString, "many">;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  id: string;
45
+ description: string | null;
45
46
  url: string | null;
46
47
  title: string;
47
- description: string | null;
48
48
  children: string[];
49
49
  total: number | null;
50
50
  parentId: string | null;
51
51
  }, {
52
52
  id: string;
53
+ description: string | null;
53
54
  url: string | null;
54
55
  title: string;
55
- description: string | null;
56
56
  children: string[];
57
57
  total: number | null;
58
58
  parentId: string | null;
@@ -87,17 +87,17 @@ export declare const ReferenceCatalogSchema: z.ZodObject<{
87
87
  children: z.ZodArray<z.ZodString, "many">;
88
88
  }, "strip", z.ZodTypeAny, {
89
89
  id: string;
90
+ description: string | null;
90
91
  url: string | null;
91
92
  title: string;
92
- description: string | null;
93
93
  children: string[];
94
94
  total: number | null;
95
95
  parentId: string | null;
96
96
  }, {
97
97
  id: string;
98
+ description: string | null;
98
99
  url: string | null;
99
100
  title: string;
100
- description: string | null;
101
101
  children: string[];
102
102
  total: number | null;
103
103
  parentId: string | null;
@@ -109,9 +109,9 @@ export declare const ReferenceCatalogSchema: z.ZodObject<{
109
109
  nextCursor: string | null;
110
110
  collections: {
111
111
  id: string;
112
+ description: string | null;
112
113
  url: string | null;
113
114
  title: string;
114
- description: string | null;
115
115
  children: string[];
116
116
  total: number | null;
117
117
  parentId: string | null;
@@ -121,9 +121,9 @@ export declare const ReferenceCatalogSchema: z.ZodObject<{
121
121
  nextCursor: string | null;
122
122
  collections: {
123
123
  id: string;
124
+ description: string | null;
124
125
  url: string | null;
125
126
  title: string;
126
- description: string | null;
127
127
  children: string[];
128
128
  total: number | null;
129
129
  parentId: string | null;
@@ -140,17 +140,17 @@ export declare const ReferenceCatalogPageSchema: z.ZodObject<{
140
140
  children: z.ZodArray<z.ZodString, "many">;
141
141
  }, "strip", z.ZodTypeAny, {
142
142
  id: string;
143
+ description: string | null;
143
144
  url: string | null;
144
145
  title: string;
145
- description: string | null;
146
146
  children: string[];
147
147
  total: number | null;
148
148
  parentId: string | null;
149
149
  }, {
150
150
  id: string;
151
+ description: string | null;
151
152
  url: string | null;
152
153
  title: string;
153
- description: string | null;
154
154
  children: string[];
155
155
  total: number | null;
156
156
  parentId: string | null;
@@ -189,9 +189,9 @@ export declare const ReferenceCatalogPageSchema: z.ZodObject<{
189
189
  nextCursor: string | null;
190
190
  collections: {
191
191
  id: string;
192
+ description: string | null;
192
193
  url: string | null;
193
194
  title: string;
194
- description: string | null;
195
195
  children: string[];
196
196
  total: number | null;
197
197
  parentId: string | null;
@@ -207,9 +207,9 @@ export declare const ReferenceCatalogPageSchema: z.ZodObject<{
207
207
  nextCursor: string | null;
208
208
  collections: {
209
209
  id: string;
210
+ description: string | null;
210
211
  url: string | null;
211
212
  title: string;
212
- description: string | null;
213
213
  children: string[];
214
214
  total: number | null;
215
215
  parentId: string | null;
@@ -42,17 +42,17 @@ export declare const ReferenceDiscoveryInputSchema: z.ZodObject<{
42
42
  children: z.ZodArray<z.ZodString, "many">;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  id: string;
45
+ description: string | null;
45
46
  url: string | null;
46
47
  title: string;
47
- description: string | null;
48
48
  children: string[];
49
49
  total: number | null;
50
50
  parentId: string | null;
51
51
  }, {
52
52
  id: string;
53
+ description: string | null;
53
54
  url: string | null;
54
55
  title: string;
55
- description: string | null;
56
56
  children: string[];
57
57
  total: number | null;
58
58
  parentId: string | null;
@@ -62,9 +62,9 @@ export declare const ReferenceDiscoveryInputSchema: z.ZodObject<{
62
62
  total: number;
63
63
  collections: {
64
64
  id: string;
65
+ description: string | null;
65
66
  url: string | null;
66
67
  title: string;
67
- description: string | null;
68
68
  children: string[];
69
69
  total: number | null;
70
70
  parentId: string | null;
@@ -79,9 +79,9 @@ export declare const ReferenceDiscoveryInputSchema: z.ZodObject<{
79
79
  total: number;
80
80
  collections: {
81
81
  id: string;
82
+ description: string | null;
82
83
  url: string | null;
83
84
  title: string;
84
- description: string | null;
85
85
  children: string[];
86
86
  total: number | null;
87
87
  parentId: string | null;
@@ -130,17 +130,17 @@ export declare const ReferenceDiscoverySchema: z.ZodObject<{
130
130
  children: z.ZodArray<z.ZodString, "many">;
131
131
  }, "strip", z.ZodTypeAny, {
132
132
  id: string;
133
+ description: string | null;
133
134
  url: string | null;
134
135
  title: string;
135
- description: string | null;
136
136
  children: string[];
137
137
  total: number | null;
138
138
  parentId: string | null;
139
139
  }, {
140
140
  id: string;
141
+ description: string | null;
141
142
  url: string | null;
142
143
  title: string;
143
- description: string | null;
144
144
  children: string[];
145
145
  total: number | null;
146
146
  parentId: string | null;
@@ -154,9 +154,9 @@ export declare const ReferenceDiscoverySchema: z.ZodObject<{
154
154
  total: number;
155
155
  collections: {
156
156
  id: string;
157
+ description: string | null;
157
158
  url: string | null;
158
159
  title: string;
159
- description: string | null;
160
160
  children: string[];
161
161
  total: number | null;
162
162
  parentId: string | null;
@@ -173,9 +173,9 @@ export declare const ReferenceDiscoverySchema: z.ZodObject<{
173
173
  total: number;
174
174
  collections: {
175
175
  id: string;
176
+ description: string | null;
176
177
  url: string | null;
177
178
  title: string;
178
- description: string | null;
179
179
  children: string[];
180
180
  total: number | null;
181
181
  parentId: string | null;
@@ -199,17 +199,17 @@ export declare const ReferencePlanSourceSchema: z.ZodObject<{
199
199
  children: z.ZodArray<z.ZodString, "many">;
200
200
  }, "strip", z.ZodTypeAny, {
201
201
  id: string;
202
+ description: string | null;
202
203
  url: string | null;
203
204
  title: string;
204
- description: string | null;
205
205
  children: string[];
206
206
  total: number | null;
207
207
  parentId: string | null;
208
208
  }, {
209
209
  id: string;
210
+ description: string | null;
210
211
  url: string | null;
211
212
  title: string;
212
- description: string | null;
213
213
  children: string[];
214
214
  total: number | null;
215
215
  parentId: string | null;
@@ -263,9 +263,9 @@ export declare const ReferencePlanSourceSchema: z.ZodObject<{
263
263
  } & {
264
264
  provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
265
265
  }, "strip", z.ZodTypeAny, {
266
+ title: string;
266
267
  text: string;
267
268
  provider: "arena" | "pinterest" | "x" | "cosmos";
268
- title: string;
269
269
  remoteId: string;
270
270
  media: {
271
271
  hash: string;
@@ -286,9 +286,9 @@ export declare const ReferencePlanSourceSchema: z.ZodObject<{
286
286
  remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
287
287
  unsupportedReason?: string | undefined;
288
288
  }, {
289
+ title: string;
289
290
  text: string;
290
291
  provider: "arena" | "pinterest" | "x" | "cosmos";
291
- title: string;
292
292
  remoteId: string;
293
293
  media: {
294
294
  hash: string;
@@ -311,9 +311,9 @@ export declare const ReferencePlanSourceSchema: z.ZodObject<{
311
311
  }>, "many">;
312
312
  }, "strip", z.ZodTypeAny, {
313
313
  references: {
314
+ title: string;
314
315
  text: string;
315
316
  provider: "arena" | "pinterest" | "x" | "cosmos";
316
- title: string;
317
317
  remoteId: string;
318
318
  media: {
319
319
  hash: string;
@@ -336,9 +336,9 @@ export declare const ReferencePlanSourceSchema: z.ZodObject<{
336
336
  }[];
337
337
  collection: {
338
338
  id: string;
339
+ description: string | null;
339
340
  url: string | null;
340
341
  title: string;
341
- description: string | null;
342
342
  children: string[];
343
343
  total: number | null;
344
344
  parentId: string | null;
@@ -346,9 +346,9 @@ export declare const ReferencePlanSourceSchema: z.ZodObject<{
346
346
  collectionIds: string[];
347
347
  }, {
348
348
  references: {
349
+ title: string;
349
350
  text: string;
350
351
  provider: "arena" | "pinterest" | "x" | "cosmos";
351
- title: string;
352
352
  remoteId: string;
353
353
  media: {
354
354
  hash: string;
@@ -371,9 +371,9 @@ export declare const ReferencePlanSourceSchema: z.ZodObject<{
371
371
  }[];
372
372
  collection: {
373
373
  id: string;
374
+ description: string | null;
374
375
  url: string | null;
375
376
  title: string;
376
- description: string | null;
377
377
  children: string[];
378
378
  total: number | null;
379
379
  parentId: string | null;
@@ -394,17 +394,17 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
394
394
  children: z.ZodArray<z.ZodString, "many">;
395
395
  }, "strip", z.ZodTypeAny, {
396
396
  id: string;
397
+ description: string | null;
397
398
  url: string | null;
398
399
  title: string;
399
- description: string | null;
400
400
  children: string[];
401
401
  total: number | null;
402
402
  parentId: string | null;
403
403
  }, {
404
404
  id: string;
405
+ description: string | null;
405
406
  url: string | null;
406
407
  title: string;
407
- description: string | null;
408
408
  children: string[];
409
409
  total: number | null;
410
410
  parentId: string | null;
@@ -458,9 +458,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
458
458
  } & {
459
459
  provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
460
460
  }, "strip", z.ZodTypeAny, {
461
+ title: string;
461
462
  text: string;
462
463
  provider: "arena" | "pinterest" | "x" | "cosmos";
463
- title: string;
464
464
  remoteId: string;
465
465
  media: {
466
466
  hash: string;
@@ -481,9 +481,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
481
481
  remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
482
482
  unsupportedReason?: string | undefined;
483
483
  }, {
484
+ title: string;
484
485
  text: string;
485
486
  provider: "arena" | "pinterest" | "x" | "cosmos";
486
- title: string;
487
487
  remoteId: string;
488
488
  media: {
489
489
  hash: string;
@@ -506,9 +506,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
506
506
  }>, "many">;
507
507
  }, "strip", z.ZodTypeAny, {
508
508
  references: {
509
+ title: string;
509
510
  text: string;
510
511
  provider: "arena" | "pinterest" | "x" | "cosmos";
511
- title: string;
512
512
  remoteId: string;
513
513
  media: {
514
514
  hash: string;
@@ -531,9 +531,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
531
531
  }[];
532
532
  collection: {
533
533
  id: string;
534
+ description: string | null;
534
535
  url: string | null;
535
536
  title: string;
536
- description: string | null;
537
537
  children: string[];
538
538
  total: number | null;
539
539
  parentId: string | null;
@@ -541,9 +541,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
541
541
  collectionIds: string[];
542
542
  }, {
543
543
  references: {
544
+ title: string;
544
545
  text: string;
545
546
  provider: "arena" | "pinterest" | "x" | "cosmos";
546
- title: string;
547
547
  remoteId: string;
548
548
  media: {
549
549
  hash: string;
@@ -566,9 +566,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
566
566
  }[];
567
567
  collection: {
568
568
  id: string;
569
+ description: string | null;
569
570
  url: string | null;
570
571
  title: string;
571
- description: string | null;
572
572
  children: string[];
573
573
  total: number | null;
574
574
  parentId: string | null;
@@ -581,9 +581,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
581
581
  discoveryId: string;
582
582
  sources: {
583
583
  references: {
584
+ title: string;
584
585
  text: string;
585
586
  provider: "arena" | "pinterest" | "x" | "cosmos";
586
- title: string;
587
587
  remoteId: string;
588
588
  media: {
589
589
  hash: string;
@@ -606,9 +606,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
606
606
  }[];
607
607
  collection: {
608
608
  id: string;
609
+ description: string | null;
609
610
  url: string | null;
610
611
  title: string;
611
- description: string | null;
612
612
  children: string[];
613
613
  total: number | null;
614
614
  parentId: string | null;
@@ -621,9 +621,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
621
621
  discoveryId: string;
622
622
  sources: {
623
623
  references: {
624
+ title: string;
624
625
  text: string;
625
626
  provider: "arena" | "pinterest" | "x" | "cosmos";
626
- title: string;
627
627
  remoteId: string;
628
628
  media: {
629
629
  hash: string;
@@ -646,9 +646,9 @@ export declare const ReferencePlanInputSchema: z.ZodObject<{
646
646
  }[];
647
647
  collection: {
648
648
  id: string;
649
+ description: string | null;
649
650
  url: string | null;
650
651
  title: string;
651
- description: string | null;
652
652
  children: string[];
653
653
  total: number | null;
654
654
  parentId: string | null;
@@ -671,17 +671,17 @@ export declare const ReferencePlanSchema: z.ZodObject<{
671
671
  children: z.ZodArray<z.ZodString, "many">;
672
672
  }, "strip", z.ZodTypeAny, {
673
673
  id: string;
674
+ description: string | null;
674
675
  url: string | null;
675
676
  title: string;
676
- description: string | null;
677
677
  children: string[];
678
678
  total: number | null;
679
679
  parentId: string | null;
680
680
  }, {
681
681
  id: string;
682
+ description: string | null;
682
683
  url: string | null;
683
684
  title: string;
684
- description: string | null;
685
685
  children: string[];
686
686
  total: number | null;
687
687
  parentId: string | null;
@@ -735,9 +735,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
735
735
  } & {
736
736
  provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
737
737
  }, "strip", z.ZodTypeAny, {
738
+ title: string;
738
739
  text: string;
739
740
  provider: "arena" | "pinterest" | "x" | "cosmos";
740
- title: string;
741
741
  remoteId: string;
742
742
  media: {
743
743
  hash: string;
@@ -758,9 +758,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
758
758
  remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
759
759
  unsupportedReason?: string | undefined;
760
760
  }, {
761
+ title: string;
761
762
  text: string;
762
763
  provider: "arena" | "pinterest" | "x" | "cosmos";
763
- title: string;
764
764
  remoteId: string;
765
765
  media: {
766
766
  hash: string;
@@ -783,9 +783,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
783
783
  }>, "many">;
784
784
  }, "strip", z.ZodTypeAny, {
785
785
  references: {
786
+ title: string;
786
787
  text: string;
787
788
  provider: "arena" | "pinterest" | "x" | "cosmos";
788
- title: string;
789
789
  remoteId: string;
790
790
  media: {
791
791
  hash: string;
@@ -808,9 +808,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
808
808
  }[];
809
809
  collection: {
810
810
  id: string;
811
+ description: string | null;
811
812
  url: string | null;
812
813
  title: string;
813
- description: string | null;
814
814
  children: string[];
815
815
  total: number | null;
816
816
  parentId: string | null;
@@ -818,9 +818,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
818
818
  collectionIds: string[];
819
819
  }, {
820
820
  references: {
821
+ title: string;
821
822
  text: string;
822
823
  provider: "arena" | "pinterest" | "x" | "cosmos";
823
- title: string;
824
824
  remoteId: string;
825
825
  media: {
826
826
  hash: string;
@@ -843,9 +843,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
843
843
  }[];
844
844
  collection: {
845
845
  id: string;
846
+ description: string | null;
846
847
  url: string | null;
847
848
  title: string;
848
- description: string | null;
849
849
  children: string[];
850
850
  total: number | null;
851
851
  parentId: string | null;
@@ -888,6 +888,7 @@ export declare const ReferencePlanSchema: z.ZodObject<{
888
888
  jobIds: z.ZodArray<z.ZodString, "many">;
889
889
  }, "strip", z.ZodTypeAny, {
890
890
  id: string;
891
+ expiresAt: string;
891
892
  runtime: "claude" | "codex" | "cursor";
892
893
  revision: string;
893
894
  profile: {
@@ -900,9 +901,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
900
901
  discoveryId: string;
901
902
  sources: {
902
903
  references: {
904
+ title: string;
903
905
  text: string;
904
906
  provider: "arena" | "pinterest" | "x" | "cosmos";
905
- title: string;
906
907
  remoteId: string;
907
908
  media: {
908
909
  hash: string;
@@ -925,9 +926,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
925
926
  }[];
926
927
  collection: {
927
928
  id: string;
929
+ description: string | null;
928
930
  url: string | null;
929
931
  title: string;
930
- description: string | null;
931
932
  children: string[];
932
933
  total: number | null;
933
934
  parentId: string | null;
@@ -935,11 +936,11 @@ export declare const ReferencePlanSchema: z.ZodObject<{
935
936
  collectionIds: string[];
936
937
  }[];
937
938
  reusableCount: number;
938
- expiresAt: string;
939
939
  approvedAt: string | null;
940
940
  jobIds: string[];
941
941
  }, {
942
942
  id: string;
943
+ expiresAt: string;
943
944
  runtime: "claude" | "codex" | "cursor";
944
945
  revision: string;
945
946
  profile: {
@@ -952,9 +953,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
952
953
  discoveryId: string;
953
954
  sources: {
954
955
  references: {
956
+ title: string;
955
957
  text: string;
956
958
  provider: "arena" | "pinterest" | "x" | "cosmos";
957
- title: string;
958
959
  remoteId: string;
959
960
  media: {
960
961
  hash: string;
@@ -977,9 +978,9 @@ export declare const ReferencePlanSchema: z.ZodObject<{
977
978
  }[];
978
979
  collection: {
979
980
  id: string;
981
+ description: string | null;
980
982
  url: string | null;
981
983
  title: string;
982
- description: string | null;
983
984
  children: string[];
984
985
  total: number | null;
985
986
  parentId: string | null;
@@ -987,7 +988,6 @@ export declare const ReferencePlanSchema: z.ZodObject<{
987
988
  collectionIds: string[];
988
989
  }[];
989
990
  reusableCount: number;
990
- expiresAt: string;
991
991
  approvedAt: string | null;
992
992
  jobIds: string[];
993
993
  }>;
@@ -1043,9 +1043,9 @@ export declare const referencePlanSummary: (plan: ReferenceImportPlan) => {
1043
1043
  includedCollectionIds: string[];
1044
1044
  referenceCount: number;
1045
1045
  id: string;
1046
+ description: string | null;
1046
1047
  url: string | null;
1047
1048
  title: string;
1048
- description: string | null;
1049
1049
  children: string[];
1050
1050
  total: number | null;
1051
1051
  parentId: string | null;
@@ -50,9 +50,9 @@ export declare const ReferenceContentsPageSchema: z.ZodObject<{
50
50
  } & {
51
51
  provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
52
52
  }, "strip", z.ZodTypeAny, {
53
+ title: string;
53
54
  text: string;
54
55
  provider: "arena" | "pinterest" | "x" | "cosmos";
55
- title: string;
56
56
  remoteId: string;
57
57
  media: {
58
58
  hash: string;
@@ -73,9 +73,9 @@ export declare const ReferenceContentsPageSchema: z.ZodObject<{
73
73
  remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
74
74
  unsupportedReason?: string | undefined;
75
75
  }, {
76
+ title: string;
76
77
  text: string;
77
78
  provider: "arena" | "pinterest" | "x" | "cosmos";
78
- title: string;
79
79
  remoteId: string;
80
80
  media: {
81
81
  hash: string;
@@ -100,10 +100,11 @@ export declare const ReferenceContentsPageSchema: z.ZodObject<{
100
100
  nextCursor: z.ZodNullable<z.ZodString>;
101
101
  isCollectionComplete: z.ZodBoolean;
102
102
  }, "strip", z.ZodTypeAny, {
103
+ accountId: string;
103
104
  references: {
105
+ title: string;
104
106
  text: string;
105
107
  provider: "arena" | "pinterest" | "x" | "cosmos";
106
- title: string;
107
108
  remoteId: string;
108
109
  media: {
109
110
  hash: string;
@@ -126,14 +127,14 @@ export declare const ReferenceContentsPageSchema: z.ZodObject<{
126
127
  }[];
127
128
  total: number | null;
128
129
  nextCursor: string | null;
129
- accountId: string;
130
130
  collectionId: string;
131
131
  isCollectionComplete: boolean;
132
132
  }, {
133
+ accountId: string;
133
134
  references: {
135
+ title: string;
134
136
  text: string;
135
137
  provider: "arena" | "pinterest" | "x" | "cosmos";
136
- title: string;
137
138
  remoteId: string;
138
139
  media: {
139
140
  hash: string;
@@ -156,7 +157,6 @@ export declare const ReferenceContentsPageSchema: z.ZodObject<{
156
157
  }[];
157
158
  total: number | null;
158
159
  nextCursor: string | null;
159
- accountId: string;
160
160
  collectionId: string;
161
161
  isCollectionComplete: boolean;
162
162
  }>;
@@ -28,32 +28,32 @@ export declare const variantReferenceSchema: z.ZodEffects<z.ZodObject<{
28
28
  }, "strip", z.ZodTypeAny, {
29
29
  id: string;
30
30
  title: string;
31
+ url?: string | undefined;
31
32
  image?: {
32
33
  hash: string;
33
34
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
34
35
  } | undefined;
35
- url?: string | undefined;
36
36
  reason?: string | undefined;
37
37
  }, {
38
38
  id: string;
39
39
  title: string;
40
- image?: unknown;
41
40
  url?: string | undefined;
41
+ image?: unknown;
42
42
  reason?: string | undefined;
43
43
  }>, {
44
44
  id: string;
45
45
  title: string;
46
+ url?: string | undefined;
46
47
  image?: {
47
48
  hash: string;
48
49
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
49
50
  } | undefined;
50
- url?: string | undefined;
51
51
  reason?: string | undefined;
52
52
  }, {
53
53
  id: string;
54
54
  title: string;
55
- image?: unknown;
56
55
  url?: string | undefined;
56
+ image?: unknown;
57
57
  reason?: string | undefined;
58
58
  }>;
59
59
  export type VariantReference = z.infer<typeof variantReferenceSchema>;
@@ -0,0 +1,8 @@
1
+ type ExtractedInstallRef = {
2
+ installRef: string | undefined;
3
+ remainingArgs: string[];
4
+ };
5
+ export declare const parseInstallRef: (value: unknown) => string | undefined;
6
+ export declare const extractInstallRef: (args: string[]) => ExtractedInstallRef;
7
+ export {};
8
+ //# sourceMappingURL=installRef.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"installRef.d.ts","sourceRoot":"","sources":["../../src/utils/installRef.ts"],"names":[],"mappings":"AAIA,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAG3C,CAAC;AAEhB,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,KAAG,mBAuBlD,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.extractInstallRef = exports.parseInstallRef = void 0;
4
+ const INSTALL_REF_PATTERN = /^r_[A-Za-z0-9]{6,12}$/;
5
+ const INSTALL_REF_FLAG = '--ref';
6
+ const INSTALL_REF_INLINE_PREFIX = `${INSTALL_REF_FLAG}=`;
7
+ const parseInstallRef = (value) => typeof value === 'string' && INSTALL_REF_PATTERN.test(value)
8
+ ? value
9
+ : undefined;
10
+ exports.parseInstallRef = parseInstallRef;
11
+ const extractInstallRef = (args) => {
12
+ let installRef;
13
+ const remainingArgs = [];
14
+ for (let i = 0; i < args.length; i++) {
15
+ const arg = args[i];
16
+ if (arg.startsWith(INSTALL_REF_INLINE_PREFIX)) {
17
+ installRef = (0, exports.parseInstallRef)(arg.slice(INSTALL_REF_INLINE_PREFIX.length));
18
+ continue;
19
+ }
20
+ if (arg !== INSTALL_REF_FLAG) {
21
+ remainingArgs.push(arg);
22
+ continue;
23
+ }
24
+ const next = args[i + 1];
25
+ if (next === undefined || next.startsWith('--')) {
26
+ continue;
27
+ }
28
+ installRef = (0, exports.parseInstallRef)(next);
29
+ i++;
30
+ }
31
+ return { installRef, remainingArgs };
32
+ };
33
+ exports.extractInstallRef = extractInstallRef;
34
+ //# sourceMappingURL=installRef.js.map