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
@@ -9,157 +9,45 @@ export declare const ReferenceContentsPageSchema: z.ZodObject<{
9
9
  url: z.ZodOptional<z.ZodString>;
10
10
  media: z.ZodArray<z.ZodObject<{
11
11
  hash: z.ZodString;
12
- mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif"]>;
12
+ mimeType: z.ZodEnum<{
13
+ "image/png": "image/png";
14
+ "image/jpeg": "image/jpeg";
15
+ "image/webp": "image/webp";
16
+ "image/gif": "image/gif";
17
+ }>;
13
18
  bytes: z.ZodNumber;
14
- representation: z.ZodDefault<z.ZodEnum<["image", "video-cover", "page", "variant"]>>;
19
+ representation: z.ZodDefault<z.ZodEnum<{
20
+ variant: "variant";
21
+ image: "image";
22
+ "video-cover": "video-cover";
23
+ page: "page";
24
+ }>>;
15
25
  page: z.ZodOptional<z.ZodNumber>;
16
- }, "strip", z.ZodTypeAny, {
17
- hash: string;
18
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
19
- bytes: number;
20
- representation: "variant" | "image" | "video-cover" | "page";
21
- page?: number | undefined;
22
- }, {
23
- hash: string;
24
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
25
- bytes: number;
26
- page?: number | undefined;
27
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
28
- }>, "many">;
29
- remoteImages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
- remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<["image", "video-cover"]>, "many">>;
26
+ }, z.core.$strip>>;
27
+ remoteImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ remoteImageRepresentations: z.ZodOptional<z.ZodArray<z.ZodEnum<{
29
+ image: "image";
30
+ "video-cover": "video-cover";
31
+ }>>>;
31
32
  unsupportedReason: z.ZodOptional<z.ZodString>;
32
33
  variant: z.ZodOptional<z.ZodObject<{
33
34
  projectId: z.ZodString;
34
35
  sessionId: z.ZodString;
35
36
  variantId: z.ZodString;
36
- } & {
37
37
  treeSha: z.ZodOptional<z.ZodString>;
38
- }, "strict", z.ZodTypeAny, {
39
- projectId: string;
40
- sessionId: string;
41
- variantId: string;
42
- treeSha?: string | undefined;
43
- }, {
44
- projectId: string;
45
- sessionId: string;
46
- variantId: string;
47
- treeSha?: string | undefined;
48
- }>>;
38
+ }, z.core.$strict>>;
49
39
  note: z.ZodOptional<z.ZodString>;
50
- } & {
51
- provider: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
52
- }, "strip", z.ZodTypeAny, {
53
- title: string;
54
- text: string;
55
- provider: "pinterest" | "arena" | "cosmos" | "x";
56
- remoteId: string;
57
- media: {
58
- hash: string;
59
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
60
- bytes: number;
61
- representation: "variant" | "image" | "video-cover" | "page";
62
- page?: number | undefined;
63
- }[];
64
- variant?: {
65
- projectId: string;
66
- sessionId: string;
67
- variantId: string;
68
- treeSha?: string | undefined;
69
- } | undefined;
70
- url?: string | undefined;
71
- note?: string | undefined;
72
- remoteImages?: string[] | undefined;
73
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
74
- unsupportedReason?: string | undefined;
75
- }, {
76
- title: string;
77
- text: string;
78
- provider: "pinterest" | "arena" | "cosmos" | "x";
79
- remoteId: string;
80
- media: {
81
- hash: string;
82
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
83
- bytes: number;
84
- page?: number | undefined;
85
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
86
- }[];
87
- variant?: {
88
- projectId: string;
89
- sessionId: string;
90
- variantId: string;
91
- treeSha?: string | undefined;
92
- } | undefined;
93
- url?: string | undefined;
94
- note?: string | undefined;
95
- remoteImages?: string[] | undefined;
96
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
97
- unsupportedReason?: string | undefined;
98
- }>, "many">;
40
+ provider: z.ZodEnum<{
41
+ pinterest: "pinterest";
42
+ arena: "arena";
43
+ cosmos: "cosmos";
44
+ x: "x";
45
+ }>;
46
+ }, z.core.$strip>>;
99
47
  total: z.ZodNullable<z.ZodNumber>;
100
48
  nextCursor: z.ZodNullable<z.ZodString>;
101
49
  isCollectionComplete: z.ZodBoolean;
102
- }, "strip", z.ZodTypeAny, {
103
- accountId: string;
104
- references: {
105
- title: string;
106
- text: string;
107
- provider: "pinterest" | "arena" | "cosmos" | "x";
108
- remoteId: string;
109
- media: {
110
- hash: string;
111
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
112
- bytes: number;
113
- representation: "variant" | "image" | "video-cover" | "page";
114
- page?: number | undefined;
115
- }[];
116
- variant?: {
117
- projectId: string;
118
- sessionId: string;
119
- variantId: string;
120
- treeSha?: string | undefined;
121
- } | undefined;
122
- url?: string | undefined;
123
- note?: string | undefined;
124
- remoteImages?: string[] | undefined;
125
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
126
- unsupportedReason?: string | undefined;
127
- }[];
128
- total: number | null;
129
- nextCursor: string | null;
130
- collectionId: string;
131
- isCollectionComplete: boolean;
132
- }, {
133
- accountId: string;
134
- references: {
135
- title: string;
136
- text: string;
137
- provider: "pinterest" | "arena" | "cosmos" | "x";
138
- remoteId: string;
139
- media: {
140
- hash: string;
141
- mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
142
- bytes: number;
143
- page?: number | undefined;
144
- representation?: "variant" | "image" | "video-cover" | "page" | undefined;
145
- }[];
146
- variant?: {
147
- projectId: string;
148
- sessionId: string;
149
- variantId: string;
150
- treeSha?: string | undefined;
151
- } | undefined;
152
- url?: string | undefined;
153
- note?: string | undefined;
154
- remoteImages?: string[] | undefined;
155
- remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
156
- unsupportedReason?: string | undefined;
157
- }[];
158
- total: number | null;
159
- nextCursor: string | null;
160
- collectionId: string;
161
- isCollectionComplete: boolean;
162
- }>;
50
+ }, z.core.$strip>;
163
51
  export type ReferenceContentsPage = z.infer<typeof ReferenceContentsPageSchema>;
164
52
  export declare class ReferenceConnectionError extends Error {
165
53
  readonly reason: 'not_connected' | 'account_changed';
@@ -4,83 +4,28 @@ export declare const XAccountSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  username: z.ZodString;
6
6
  name: z.ZodOptional<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- id: string;
9
- username: string;
10
- name?: string | undefined;
11
- }, {
12
- id: string;
13
- username: string;
14
- name?: string | undefined;
15
- }>;
16
- export declare const XMediaUrlSchema: z.ZodEffects<z.ZodString, string, string>;
7
+ }, z.core.$strip>;
8
+ export declare const XMediaUrlSchema: z.ZodString;
17
9
  export declare const XBookmarkSchema: z.ZodObject<{
18
10
  id: z.ZodString;
19
11
  author: z.ZodObject<{
20
12
  id: z.ZodString;
21
13
  username: z.ZodString;
22
14
  name: z.ZodOptional<z.ZodString>;
23
- }, "strip", z.ZodTypeAny, {
24
- id: string;
25
- username: string;
26
- name?: string | undefined;
27
- }, {
28
- id: string;
29
- username: string;
30
- name?: string | undefined;
31
- }>;
15
+ }, z.core.$strip>;
32
16
  text: z.ZodString;
33
- links: z.ZodArray<z.ZodString, "many">;
17
+ links: z.ZodArray<z.ZodString>;
34
18
  unavailableVideoCount: z.ZodDefault<z.ZodNumber>;
35
19
  media: z.ZodArray<z.ZodObject<{
36
20
  key: z.ZodString;
37
- url: z.ZodEffects<z.ZodString, string, string>;
38
- representation: z.ZodEnum<["image", "video-cover"]>;
21
+ url: z.ZodString;
22
+ representation: z.ZodEnum<{
23
+ image: "image";
24
+ "video-cover": "video-cover";
25
+ }>;
39
26
  altText: z.ZodNullable<z.ZodString>;
40
- }, "strip", z.ZodTypeAny, {
41
- url: string;
42
- key: string;
43
- representation: "image" | "video-cover";
44
- altText: string | null;
45
- }, {
46
- url: string;
47
- key: string;
48
- representation: "image" | "video-cover";
49
- altText: string | null;
50
- }>, "many">;
51
- }, "strip", z.ZodTypeAny, {
52
- text: string;
53
- id: string;
54
- media: {
55
- url: string;
56
- key: string;
57
- representation: "image" | "video-cover";
58
- altText: string | null;
59
- }[];
60
- author: {
61
- id: string;
62
- username: string;
63
- name?: string | undefined;
64
- };
65
- links: string[];
66
- unavailableVideoCount: number;
67
- }, {
68
- text: string;
69
- id: string;
70
- media: {
71
- url: string;
72
- key: string;
73
- representation: "image" | "video-cover";
74
- altText: string | null;
75
- }[];
76
- author: {
77
- id: string;
78
- username: string;
79
- name?: string | undefined;
80
- };
81
- links: string[];
82
- unavailableVideoCount?: number | undefined;
83
- }>;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>;
84
29
  export declare const XBookmarksPageSchema: z.ZodObject<{
85
30
  bookmarks: z.ZodArray<z.ZodObject<{
86
31
  id: z.ZodString;
@@ -88,263 +33,62 @@ export declare const XBookmarksPageSchema: z.ZodObject<{
88
33
  id: z.ZodString;
89
34
  username: z.ZodString;
90
35
  name: z.ZodOptional<z.ZodString>;
91
- }, "strip", z.ZodTypeAny, {
92
- id: string;
93
- username: string;
94
- name?: string | undefined;
95
- }, {
96
- id: string;
97
- username: string;
98
- name?: string | undefined;
99
- }>;
36
+ }, z.core.$strip>;
100
37
  text: z.ZodString;
101
- links: z.ZodArray<z.ZodString, "many">;
38
+ links: z.ZodArray<z.ZodString>;
102
39
  unavailableVideoCount: z.ZodDefault<z.ZodNumber>;
103
40
  media: z.ZodArray<z.ZodObject<{
104
41
  key: z.ZodString;
105
- url: z.ZodEffects<z.ZodString, string, string>;
106
- representation: z.ZodEnum<["image", "video-cover"]>;
42
+ url: z.ZodString;
43
+ representation: z.ZodEnum<{
44
+ image: "image";
45
+ "video-cover": "video-cover";
46
+ }>;
107
47
  altText: z.ZodNullable<z.ZodString>;
108
- }, "strip", z.ZodTypeAny, {
109
- url: string;
110
- key: string;
111
- representation: "image" | "video-cover";
112
- altText: string | null;
113
- }, {
114
- url: string;
115
- key: string;
116
- representation: "image" | "video-cover";
117
- altText: string | null;
118
- }>, "many">;
119
- }, "strip", z.ZodTypeAny, {
120
- text: string;
121
- id: string;
122
- media: {
123
- url: string;
124
- key: string;
125
- representation: "image" | "video-cover";
126
- altText: string | null;
127
- }[];
128
- author: {
129
- id: string;
130
- username: string;
131
- name?: string | undefined;
132
- };
133
- links: string[];
134
- unavailableVideoCount: number;
135
- }, {
136
- text: string;
137
- id: string;
138
- media: {
139
- url: string;
140
- key: string;
141
- representation: "image" | "video-cover";
142
- altText: string | null;
143
- }[];
144
- author: {
145
- id: string;
146
- username: string;
147
- name?: string | undefined;
148
- };
149
- links: string[];
150
- unavailableVideoCount?: number | undefined;
151
- }>, "many">;
48
+ }, z.core.$strip>>;
49
+ }, z.core.$strip>>;
152
50
  nextCursor: z.ZodNullable<z.ZodString>;
153
- }, "strip", z.ZodTypeAny, {
154
- nextCursor: string | null;
155
- bookmarks: {
156
- text: string;
157
- id: string;
158
- media: {
159
- url: string;
160
- key: string;
161
- representation: "image" | "video-cover";
162
- altText: string | null;
163
- }[];
164
- author: {
165
- id: string;
166
- username: string;
167
- name?: string | undefined;
168
- };
169
- links: string[];
170
- unavailableVideoCount: number;
171
- }[];
172
- }, {
173
- nextCursor: string | null;
174
- bookmarks: {
175
- text: string;
176
- id: string;
177
- media: {
178
- url: string;
179
- key: string;
180
- representation: "image" | "video-cover";
181
- altText: string | null;
182
- }[];
183
- author: {
184
- id: string;
185
- username: string;
186
- name?: string | undefined;
187
- };
188
- links: string[];
189
- unavailableVideoCount?: number | undefined;
190
- }[];
191
- }>;
192
- export declare const XBookmarksResultSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
51
+ }, z.core.$strip>;
52
+ export declare const XBookmarksResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
193
53
  bookmarks: z.ZodArray<z.ZodObject<{
194
54
  id: z.ZodString;
195
55
  author: z.ZodObject<{
196
56
  id: z.ZodString;
197
57
  username: z.ZodString;
198
58
  name: z.ZodOptional<z.ZodString>;
199
- }, "strip", z.ZodTypeAny, {
200
- id: string;
201
- username: string;
202
- name?: string | undefined;
203
- }, {
204
- id: string;
205
- username: string;
206
- name?: string | undefined;
207
- }>;
59
+ }, z.core.$strip>;
208
60
  text: z.ZodString;
209
- links: z.ZodArray<z.ZodString, "many">;
61
+ links: z.ZodArray<z.ZodString>;
210
62
  unavailableVideoCount: z.ZodDefault<z.ZodNumber>;
211
63
  media: z.ZodArray<z.ZodObject<{
212
64
  key: z.ZodString;
213
- url: z.ZodEffects<z.ZodString, string, string>;
214
- representation: z.ZodEnum<["image", "video-cover"]>;
65
+ url: z.ZodString;
66
+ representation: z.ZodEnum<{
67
+ image: "image";
68
+ "video-cover": "video-cover";
69
+ }>;
215
70
  altText: z.ZodNullable<z.ZodString>;
216
- }, "strip", z.ZodTypeAny, {
217
- url: string;
218
- key: string;
219
- representation: "image" | "video-cover";
220
- altText: string | null;
221
- }, {
222
- url: string;
223
- key: string;
224
- representation: "image" | "video-cover";
225
- altText: string | null;
226
- }>, "many">;
227
- }, "strip", z.ZodTypeAny, {
228
- text: string;
229
- id: string;
230
- media: {
231
- url: string;
232
- key: string;
233
- representation: "image" | "video-cover";
234
- altText: string | null;
235
- }[];
236
- author: {
237
- id: string;
238
- username: string;
239
- name?: string | undefined;
240
- };
241
- links: string[];
242
- unavailableVideoCount: number;
243
- }, {
244
- text: string;
245
- id: string;
246
- media: {
247
- url: string;
248
- key: string;
249
- representation: "image" | "video-cover";
250
- altText: string | null;
251
- }[];
252
- author: {
253
- id: string;
254
- username: string;
255
- name?: string | undefined;
256
- };
257
- links: string[];
258
- unavailableVideoCount?: number | undefined;
259
- }>, "many">;
71
+ }, z.core.$strip>>;
72
+ }, z.core.$strip>>;
260
73
  nextCursor: z.ZodNullable<z.ZodString>;
261
- } & {
262
74
  status: z.ZodLiteral<"ok">;
263
75
  account: z.ZodObject<{
264
76
  id: z.ZodString;
265
77
  username: z.ZodString;
266
78
  name: z.ZodOptional<z.ZodString>;
267
- }, "strip", z.ZodTypeAny, {
268
- id: string;
269
- username: string;
270
- name?: string | undefined;
271
- }, {
272
- id: string;
273
- username: string;
274
- name?: string | undefined;
275
- }>;
276
- }, "strip", z.ZodTypeAny, {
277
- status: "ok";
278
- nextCursor: string | null;
279
- bookmarks: {
280
- text: string;
281
- id: string;
282
- media: {
283
- url: string;
284
- key: string;
285
- representation: "image" | "video-cover";
286
- altText: string | null;
287
- }[];
288
- author: {
289
- id: string;
290
- username: string;
291
- name?: string | undefined;
292
- };
293
- links: string[];
294
- unavailableVideoCount: number;
295
- }[];
296
- account: {
297
- id: string;
298
- username: string;
299
- name?: string | undefined;
300
- };
301
- }, {
302
- status: "ok";
303
- nextCursor: string | null;
304
- bookmarks: {
305
- text: string;
306
- id: string;
307
- media: {
308
- url: string;
309
- key: string;
310
- representation: "image" | "video-cover";
311
- altText: string | null;
312
- }[];
313
- author: {
314
- id: string;
315
- username: string;
316
- name?: string | undefined;
317
- };
318
- links: string[];
319
- unavailableVideoCount?: number | undefined;
320
- }[];
321
- account: {
322
- id: string;
323
- username: string;
324
- name?: string | undefined;
325
- };
326
- }>, z.ZodObject<{
79
+ }, z.core.$strip>;
80
+ }, z.core.$strip>, z.ZodObject<{
327
81
  status: z.ZodLiteral<"not_connected">;
328
- }, "strip", z.ZodTypeAny, {
329
- status: "not_connected";
330
- }, {
331
- status: "not_connected";
332
- }>, z.ZodObject<{
82
+ }, z.core.$strip>, z.ZodObject<{
333
83
  status: z.ZodLiteral<"error">;
334
84
  message: z.ZodString;
335
- reason: z.ZodOptional<z.ZodEnum<["rate_limited", "account_changed", "provider_unavailable"]>>;
85
+ reason: z.ZodOptional<z.ZodEnum<{
86
+ rate_limited: "rate_limited";
87
+ provider_unavailable: "provider_unavailable";
88
+ account_changed: "account_changed";
89
+ }>>;
336
90
  retryAfterMs: z.ZodOptional<z.ZodNumber>;
337
- }, "strip", z.ZodTypeAny, {
338
- message: string;
339
- status: "error";
340
- reason?: "rate_limited" | "provider_unavailable" | "account_changed" | undefined;
341
- retryAfterMs?: number | undefined;
342
- }, {
343
- message: string;
344
- status: "error";
345
- reason?: "rate_limited" | "provider_unavailable" | "account_changed" | undefined;
346
- retryAfterMs?: number | undefined;
347
- }>]>;
91
+ }, z.core.$strip>], "status">;
348
92
  export type XAccount = z.infer<typeof XAccountSchema>;
349
93
  export type XBookmark = z.infer<typeof XBookmarkSchema>;
350
94
  export type XBookmarksPage = z.infer<typeof XBookmarksPageSchema>;
@@ -3,6 +3,5 @@ type ResolveDisplayLocaleOptions = {
3
3
  systemLocale?: string;
4
4
  };
5
5
  export declare const resolveDisplayLocale: (options?: ResolveDisplayLocaleOptions) => string;
6
- export declare const isEnglishDisplayLocale: (locale: string) => boolean;
7
6
  export {};
8
7
  //# sourceMappingURL=displayLocale.d.ts.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isEnglishDisplayLocale = exports.resolveDisplayLocale = void 0;
3
+ exports.resolveDisplayLocale = void 0;
4
4
  const DEFAULT_DISPLAY_LOCALE = 'en';
5
5
  const canonicalLocale = (candidate) => {
6
6
  if (!candidate)
@@ -23,6 +23,4 @@ const resolveDisplayLocale = (options = {}) => {
23
23
  DEFAULT_DISPLAY_LOCALE);
24
24
  };
25
25
  exports.resolveDisplayLocale = resolveDisplayLocale;
26
- const isEnglishDisplayLocale = (locale) => locale.toLowerCase().split('-')[0] === 'en';
27
- exports.isEnglishDisplayLocale = isEnglishDisplayLocale;
28
26
  //# sourceMappingURL=displayLocale.js.map
@@ -1,4 +1,4 @@
1
- export declare const CLI_GUIDANCE_VERSION = 56;
1
+ export declare const CLI_GUIDANCE_VERSION = 57;
2
2
  export declare const CLI_GUIDANCE_BODY: string;
3
3
  export declare const CLI_GUIDANCE_DESCRIPTION = "Rivet \u2014 open the visual editor or explore design directions for a web app.";
4
4
  //# sourceMappingURL=cli-guidance.d.ts.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CLI_GUIDANCE_DESCRIPTION = exports.CLI_GUIDANCE_BODY = exports.CLI_GUIDANCE_VERSION = void 0;
4
4
  const displayLocale_1 = require("../displayLocale");
5
- exports.CLI_GUIDANCE_VERSION = 56;
5
+ exports.CLI_GUIDANCE_VERSION = 57;
6
6
  const DISPLAY_LOCALE = (0, displayLocale_1.resolveDisplayLocale)();
7
7
  exports.CLI_GUIDANCE_BODY = `Rivet helps you **explore multiple design directions** for a web app. You drive it by running \`rivet\` CLI commands. Every command prints exactly one JSON envelope on stdout (\`{ schemaVersion, ok, command, data | error }\`), routes progress to stderr, and never prompts for input.
8
8
 
@@ -86,7 +86,7 @@ For reusable executable checks, author an optional package with a named \`verify
86
86
 
87
87
  Read expected brand values from the independent source. Bind target elements and modes explicitly in package-specific JSON rather than derive expected values from the app being checked. For color, distinguish token provenance from rendered color, including platform-specific paint layers. For spacing, bind semantic gaps or padding and density rather than check arbitrary multiples. For typography, compare the complete role and establish that the intended font loaded. Use evidence appropriate to the target, such as browser computed styles, native view/accessibility data, source inspection, or measured interactions; screenshots alone cannot prove every property. Missing or ambiguous targets and unavailable prerequisites must be blocked. Prove the package on a compliant target and intentional violations before saving it for reuse.
88
88
 
89
- The export returns \`{checks:[{id,category,status:"pass"|"fail"|"blocked",rule,target,expected,observed,evidence?:["relative-file.png"]}]}\`. IDs must be unique, checks nonempty, expected/observed bounded JSON, and referenced evidence real regular files inside \`evidenceDirectory\`. Save with \`context update <id> --verifier <Markdown path> --verifier-package <manifest.json> --source-digest <packet digest>\`. Run with \`rivet context verify <id> --project <absolute target> --input <target.json>\`; with MCP use \`rivet_run_design_check\` with \`contextId\`, \`project\`, and \`inputFile\`, then execute its returned arguments through the host. The MCP call itself runs no code. Saving through \`rivet_save_design_check\` adds \`packageFile\`. A recipe-only update preserves the saved package for the same source digest; changed source requires a replacement package or explicit verifier removal before a Markdown-only save. Rivet bounds runtime/output, cleans up the process tree even after normal returns, and derives fail before blocked before pass. A pass exits 0; fail or blocked exits 1 with the completed report in \`error.details\`. Runtime errors have \`execution: "error"\` and a normalized reason. Report runtime failures separately from assertion failures. Missing/stale recipes and recipes without packages do not execute. Retrieval still runs no checks. Generation excludes executable code and checking recipes. Only explicit \`includeChecks: true\` context reads include recipe text and package metadata; ordinary context reads exclude both, and executable code is never returned. Saving adds no automatic gate, dependency install or source maintenance.
89
+ The export returns \`{checks:[{id,status:"pass"|"fail"|"blocked",priority:"high"|"medium"|"low"|null,currentState,problem,proposedFix,evidence:[{path,mediaType,label,role:"observed"|"reference"}],comparison?:{expected,observed,unit},location?}]}\`. Write plain factual \`currentState\` text, explain the violation or blocker in \`problem\`, and recommend a supported \`proposedFix\` or use null. Pass requires null problem; fail and blocked require a nonempty problem. Priority is author-selected or null, never inferred by Rivet. Evidence is required but can be empty. Each attachment has a safe relative path, media type, nonempty label, and observed or reference role. Referenced evidence must be real regular files inside \`evidenceDirectory\`, without symlinks or hard links. Do not claim an after state without measuring it. Optional \`comparison\` holds bounded finite JSON expected/observed values and a nonempty unit or null. Optional \`location\` is a nonempty platform-specific identifier. Keep comparison and location in technical metadata rather than the default user explanation. IDs must be stable and unique, checks nonempty. Unknown fields and the preceding category/rule/target format are rejected. The runner owns schemaVersion, verifier identity/source digest, projectPath, runDirectory, durationMs, and aggregate status. These migrated packages require a Rivet release containing this contract; published v25 uses the preceding format. Save with \`context update <id> --verifier <Markdown path> --verifier-package <manifest.json> --source-digest <packet digest>\`. Run with \`rivet context verify <id> --project <absolute target> --input <target.json>\`; with MCP use \`rivet_run_design_check\` with \`contextId\`, \`project\`, and \`inputFile\`, then execute its returned arguments through the host. The MCP call itself runs no code. Saving through \`rivet_save_design_check\` adds \`packageFile\`. A recipe-only update preserves the saved package for the same source digest; changed source requires a replacement package or explicit verifier removal before a Markdown-only save. Rivet bounds runtime/output, cleans up the process tree even after normal returns, and derives fail before blocked before pass. A pass exits 0; fail or blocked exits 1 with the completed report in \`error.details\`. Runtime errors have \`execution: "error"\` and a normalized reason. Report runtime failures separately from assertion failures. Missing/stale recipes and recipes without packages do not execute. Retrieval still runs no checks. Generation excludes executable code and checking recipes. Only explicit \`includeChecks: true\` context reads include recipe text and package metadata; ordinary context reads exclude both, and executable code is never returned. Saving adds no automatic gate, dependency install or source maintenance.
90
90
 
91
91
  ## Commands
92
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rivet-design",
3
- "version": "0.26.0",
3
+ "version": "0.26.2",
4
4
  "description": "Local visual web development tool with AI-powered code modification",
5
5
  "main": "dist/index.js",
6
6
  "workspaces": [
@@ -80,7 +80,7 @@
80
80
  "dotenv": "^17.4.2",
81
81
  "drizzle-orm": "1.0.0-rc.4",
82
82
  "express": "^5.2.1",
83
- "glob": "^11.0.3",
83
+ "glob": "^14.0.2",
84
84
  "http-proxy-middleware": "^3.0.5",
85
85
  "js-yaml": "^4.1.1",
86
86
  "loglevel": "^1.9.2",
@@ -92,7 +92,7 @@
92
92
  "posthog-node": "^5.52.4",
93
93
  "simple-git": "^4.0.2",
94
94
  "typescript": "^5.1.6",
95
- "zod": "^3.24.1"
95
+ "zod": "^4.6.7"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@anthropic-ai/sdk": "^0.74.0",
@@ -212,5 +212,5 @@
212
212
  "rivetPlugin": {
213
213
  "toolContract": "intent-v2"
214
214
  },
215
- "gitHead": "5c923f2228fa50986ef4dceb5b3bba3cfe29e692"
215
+ "gitHead": "b622dd67489203e2d9153507b9373f2edaf32511"
216
216
  }