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
@@ -66,7 +66,10 @@ exports.GuidanceUploadSchema = exports.GuidanceInputSchema.omit({
66
66
  })
67
67
  .strict();
68
68
  exports.GuidanceUploadUpdateSchema = exports.GuidanceUploadSchema.partial()
69
- .extend({ verifier: guidance_verifier_1.GuidanceVerifierSchema.nullable().optional() })
69
+ .extend({
70
+ isEnabled: zod_1.z.boolean().optional(),
71
+ verifier: guidance_verifier_1.GuidanceVerifierSchema.nullable().optional(),
72
+ })
70
73
  .refine(guidance_verifier_1.isSeparateVerifierUpdate, 'Update source content and verifier separately')
71
74
  .refine((value) => Object.keys(value).length > 0 &&
72
75
  (value.images === undefined || value.markdown !== undefined), 'Provide a guidance update; image uploads require Markdown');
@@ -1,32 +1,62 @@
1
+ import { z } from 'zod';
1
2
  export declare const PROJECT_NAME_MAX_LENGTH = 200;
2
- export interface LibraryProject {
3
- id: string;
4
- name: string;
5
- pinnedAt?: string | null;
6
- lastOpenedAt: string;
7
- projectPath: string;
8
- isAvailable: boolean;
9
- storageKind: 'project' | 'bundle';
10
- issue?: string;
11
- historyIssue?: string;
12
- }
13
- export interface LibraryProjectPreview {
14
- dataUrl: string;
15
- label: string;
16
- capturedAt: string;
17
- }
18
- export interface LibraryDirection {
19
- projectId: string;
20
- sessionId: string;
21
- variantId: string;
22
- label: string;
23
- brief: string;
24
- createdAt: string;
25
- hasStaticPreview: boolean;
26
- hasInteractivePreview: boolean;
27
- }
28
- export interface ProjectLibrarySnapshot {
29
- projects: LibraryProject[];
30
- variants: LibraryDirection[];
31
- }
3
+ export declare const LibraryProjectSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ lastOpenedAt: z.ZodString;
8
+ projectPath: z.ZodString;
9
+ isAvailable: z.ZodBoolean;
10
+ storageKind: z.ZodEnum<{
11
+ project: "project";
12
+ bundle: "bundle";
13
+ }>;
14
+ issue: z.ZodOptional<z.ZodString>;
15
+ historyIssue: z.ZodOptional<z.ZodString>;
16
+ }, z.core.$strip>;
17
+ export type LibraryProject = z.infer<typeof LibraryProjectSchema>;
18
+ export declare const LibraryProjectPreviewSchema: z.ZodObject<{
19
+ dataUrl: z.ZodString;
20
+ label: z.ZodString;
21
+ capturedAt: z.ZodString;
22
+ }, z.core.$strip>;
23
+ export type LibraryProjectPreview = z.infer<typeof LibraryProjectPreviewSchema>;
24
+ export declare const LibraryDirectionSchema: z.ZodObject<{
25
+ projectId: z.ZodString;
26
+ sessionId: z.ZodString;
27
+ variantId: z.ZodString;
28
+ label: z.ZodString;
29
+ brief: z.ZodString;
30
+ createdAt: z.ZodString;
31
+ hasStaticPreview: z.ZodBoolean;
32
+ hasInteractivePreview: z.ZodBoolean;
33
+ }, z.core.$strip>;
34
+ export type LibraryDirection = z.infer<typeof LibraryDirectionSchema>;
35
+ export declare const ProjectLibrarySnapshotSchema: z.ZodObject<{
36
+ projects: z.ZodArray<z.ZodObject<{
37
+ id: z.ZodString;
38
+ name: z.ZodString;
39
+ pinnedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ lastOpenedAt: z.ZodString;
41
+ projectPath: z.ZodString;
42
+ isAvailable: z.ZodBoolean;
43
+ storageKind: z.ZodEnum<{
44
+ project: "project";
45
+ bundle: "bundle";
46
+ }>;
47
+ issue: z.ZodOptional<z.ZodString>;
48
+ historyIssue: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$strip>>;
50
+ variants: z.ZodArray<z.ZodObject<{
51
+ projectId: z.ZodString;
52
+ sessionId: z.ZodString;
53
+ variantId: z.ZodString;
54
+ label: z.ZodString;
55
+ brief: z.ZodString;
56
+ createdAt: z.ZodString;
57
+ hasStaticPreview: z.ZodBoolean;
58
+ hasInteractivePreview: z.ZodBoolean;
59
+ }, z.core.$strip>>;
60
+ }, z.core.$strip>;
61
+ export type ProjectLibrarySnapshot = z.infer<typeof ProjectLibrarySnapshotSchema>;
32
62
  //# sourceMappingURL=project-library.d.ts.map
@@ -1,5 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PROJECT_NAME_MAX_LENGTH = void 0;
3
+ exports.ProjectLibrarySnapshotSchema = exports.LibraryDirectionSchema = exports.LibraryProjectPreviewSchema = exports.LibraryProjectSchema = exports.PROJECT_NAME_MAX_LENGTH = void 0;
4
+ const zod_1 = require("zod");
4
5
  exports.PROJECT_NAME_MAX_LENGTH = 200;
6
+ exports.LibraryProjectSchema = zod_1.z.object({
7
+ id: zod_1.z.string(),
8
+ name: zod_1.z.string(),
9
+ pinnedAt: zod_1.z.string().nullable().optional(),
10
+ lastOpenedAt: zod_1.z.string(),
11
+ projectPath: zod_1.z.string(),
12
+ isAvailable: zod_1.z.boolean(),
13
+ storageKind: zod_1.z.enum(['project', 'bundle']),
14
+ issue: zod_1.z.string().optional(),
15
+ historyIssue: zod_1.z.string().optional(),
16
+ });
17
+ exports.LibraryProjectPreviewSchema = zod_1.z.object({
18
+ dataUrl: zod_1.z.string(),
19
+ label: zod_1.z.string(),
20
+ capturedAt: zod_1.z.string(),
21
+ });
22
+ exports.LibraryDirectionSchema = zod_1.z.object({
23
+ projectId: zod_1.z.string(),
24
+ sessionId: zod_1.z.string(),
25
+ variantId: zod_1.z.string(),
26
+ label: zod_1.z.string(),
27
+ brief: zod_1.z.string(),
28
+ createdAt: zod_1.z.string(),
29
+ hasStaticPreview: zod_1.z.boolean(),
30
+ hasInteractivePreview: zod_1.z.boolean(),
31
+ });
32
+ exports.ProjectLibrarySnapshotSchema = zod_1.z.object({
33
+ projects: zod_1.z.array(exports.LibraryProjectSchema),
34
+ variants: zod_1.z.array(exports.LibraryDirectionSchema),
35
+ });
5
36
  //# sourceMappingURL=project-library.js.map
@@ -1,35 +1,34 @@
1
1
  import { z } from 'zod';
2
- export declare const AuthenticatedReferenceProviderSchema: z.ZodEnum<["pinterest", "arena", "x"]>;
3
- export declare const ReferenceProviderSchema: z.ZodEnum<["cosmos", "pinterest", "arena", "x"]>;
2
+ export declare const AuthenticatedReferenceProviderSchema: z.ZodEnum<{
3
+ pinterest: "pinterest";
4
+ arena: "arena";
5
+ x: "x";
6
+ }>;
7
+ export declare const ReferenceProviderSchema: z.ZodEnum<{
8
+ pinterest: "pinterest";
9
+ arena: "arena";
10
+ cosmos: "cosmos";
11
+ x: "x";
12
+ }>;
4
13
  export type ReferenceProvider = z.infer<typeof ReferenceProviderSchema>;
5
14
  export type AuthenticatedReferenceProvider = z.infer<typeof AuthenticatedReferenceProviderSchema>;
6
15
  export declare const ReferenceIdSchema: z.ZodString;
7
- export declare const ReferenceProfileSchema: z.ZodEffects<z.ZodObject<{
16
+ export declare const ReferenceProfileSchema: z.ZodPipe<z.ZodObject<{
8
17
  id: z.ZodString;
9
18
  username: z.ZodString;
10
19
  title: z.ZodString;
11
- url: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
12
- }, "strip", z.ZodTypeAny, {
13
- url: string;
14
- title: string;
20
+ url: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString]>;
21
+ }, z.core.$strip>, z.ZodTransform<{
15
22
  id: string;
16
23
  username: string;
17
- }, {
18
- url: string;
19
24
  title: string;
20
- id: string;
21
- username: string;
22
- }>, {
23
25
  url: string;
24
- title: string;
25
- id: string;
26
- username: string;
27
26
  }, {
28
- url: string;
29
- title: string;
30
27
  id: string;
31
28
  username: string;
32
- }>;
29
+ title: string;
30
+ url: string;
31
+ }>>;
33
32
  export type ReferenceProfile = z.infer<typeof ReferenceProfileSchema>;
34
33
  export declare const referenceProvider: (profile: ReferenceProfile) => ReferenceProvider;
35
34
  export declare const ReferenceCollectionSchema: z.ZodObject<{
@@ -39,38 +38,18 @@ export declare const ReferenceCollectionSchema: z.ZodObject<{
39
38
  url: z.ZodNullable<z.ZodString>;
40
39
  total: z.ZodNullable<z.ZodNumber>;
41
40
  parentId: z.ZodNullable<z.ZodString>;
42
- children: z.ZodArray<z.ZodString, "many">;
43
- }, "strip", z.ZodTypeAny, {
44
- description: string | null;
45
- url: string | null;
46
- title: string;
47
- id: string;
48
- children: string[];
49
- total: number | null;
50
- parentId: string | null;
51
- }, {
52
- description: string | null;
53
- url: string | null;
54
- title: string;
55
- id: string;
56
- children: string[];
57
- total: number | null;
58
- parentId: string | null;
59
- }>;
41
+ children: z.ZodArray<z.ZodString>;
42
+ }, z.core.$strip>;
60
43
  export type ReferenceCollection = z.infer<typeof ReferenceCollectionSchema>;
61
- export declare const ReferenceDiscoveryRequestSchema: z.ZodUnion<[z.ZodObject<{
62
- url: z.ZodEffects<z.ZodString, string, string>;
63
- }, "strict", z.ZodTypeAny, {
64
- url: string;
65
- }, {
66
- url: string;
67
- }>, z.ZodObject<{
68
- provider: z.ZodEnum<["pinterest", "arena", "x"]>;
69
- }, "strict", z.ZodTypeAny, {
70
- provider: "pinterest" | "arena" | "x";
71
- }, {
72
- provider: "pinterest" | "arena" | "x";
73
- }>]>;
44
+ export declare const ReferenceDiscoveryRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
45
+ url: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
46
+ }, z.core.$strict>, z.ZodObject<{
47
+ provider: z.ZodEnum<{
48
+ pinterest: "pinterest";
49
+ arena: "arena";
50
+ x: "x";
51
+ }>;
52
+ }, z.core.$strict>]>;
74
53
  export type ReferenceDiscoveryRequest = z.infer<typeof ReferenceDiscoveryRequestSchema>;
75
54
  export declare const referenceSourceId: ({ profile, collection, }: {
76
55
  profile: ReferenceProfile;
@@ -84,51 +63,11 @@ export declare const ReferenceCatalogSchema: z.ZodObject<{
84
63
  url: z.ZodNullable<z.ZodString>;
85
64
  total: z.ZodNullable<z.ZodNumber>;
86
65
  parentId: z.ZodNullable<z.ZodString>;
87
- children: z.ZodArray<z.ZodString, "many">;
88
- }, "strip", z.ZodTypeAny, {
89
- description: string | null;
90
- url: string | null;
91
- title: string;
92
- id: string;
93
- children: string[];
94
- total: number | null;
95
- parentId: string | null;
96
- }, {
97
- description: string | null;
98
- url: string | null;
99
- title: string;
100
- id: string;
101
- children: string[];
102
- total: number | null;
103
- parentId: string | null;
104
- }>, "many">;
66
+ children: z.ZodArray<z.ZodString>;
67
+ }, z.core.$strip>>;
105
68
  total: z.ZodNullable<z.ZodNumber>;
106
69
  nextCursor: z.ZodNullable<z.ZodString>;
107
- }, "strip", z.ZodTypeAny, {
108
- total: number | null;
109
- nextCursor: string | null;
110
- collections: {
111
- description: string | null;
112
- url: string | null;
113
- title: string;
114
- id: string;
115
- children: string[];
116
- total: number | null;
117
- parentId: string | null;
118
- }[];
119
- }, {
120
- total: number | null;
121
- nextCursor: string | null;
122
- collections: {
123
- description: string | null;
124
- url: string | null;
125
- title: string;
126
- id: string;
127
- children: string[];
128
- total: number | null;
129
- parentId: string | null;
130
- }[];
131
- }>;
70
+ }, z.core.$strip>;
132
71
  export declare const ReferenceCatalogPageSchema: z.ZodObject<{
133
72
  collections: z.ZodArray<z.ZodObject<{
134
73
  id: z.ZodString;
@@ -137,90 +76,27 @@ export declare const ReferenceCatalogPageSchema: z.ZodObject<{
137
76
  url: z.ZodNullable<z.ZodString>;
138
77
  total: z.ZodNullable<z.ZodNumber>;
139
78
  parentId: z.ZodNullable<z.ZodString>;
140
- children: z.ZodArray<z.ZodString, "many">;
141
- }, "strip", z.ZodTypeAny, {
142
- description: string | null;
143
- url: string | null;
144
- title: string;
145
- id: string;
146
- children: string[];
147
- total: number | null;
148
- parentId: string | null;
149
- }, {
150
- description: string | null;
151
- url: string | null;
152
- title: string;
153
- id: string;
154
- children: string[];
155
- total: number | null;
156
- parentId: string | null;
157
- }>, "many">;
79
+ children: z.ZodArray<z.ZodString>;
80
+ }, z.core.$strip>>;
158
81
  total: z.ZodNullable<z.ZodNumber>;
159
82
  nextCursor: z.ZodNullable<z.ZodString>;
160
- } & {
161
- profile: z.ZodEffects<z.ZodObject<{
83
+ profile: z.ZodPipe<z.ZodObject<{
162
84
  id: z.ZodString;
163
85
  username: z.ZodString;
164
86
  title: z.ZodString;
165
- url: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
166
- }, "strip", z.ZodTypeAny, {
167
- url: string;
168
- title: string;
87
+ url: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString]>;
88
+ }, z.core.$strip>, z.ZodTransform<{
169
89
  id: string;
170
90
  username: string;
171
- }, {
172
- url: string;
173
91
  title: string;
174
- id: string;
175
- username: string;
176
- }>, {
177
92
  url: string;
178
- title: string;
179
- id: string;
180
- username: string;
181
93
  }, {
182
- url: string;
183
- title: string;
184
- id: string;
185
- username: string;
186
- }>;
187
- }, "strip", z.ZodTypeAny, {
188
- total: number | null;
189
- nextCursor: string | null;
190
- collections: {
191
- description: string | null;
192
- url: string | null;
193
- title: string;
194
- id: string;
195
- children: string[];
196
- total: number | null;
197
- parentId: string | null;
198
- }[];
199
- profile: {
200
- url: string;
201
- title: string;
202
94
  id: string;
203
95
  username: string;
204
- };
205
- }, {
206
- total: number | null;
207
- nextCursor: string | null;
208
- collections: {
209
- description: string | null;
210
- url: string | null;
211
96
  title: string;
212
- id: string;
213
- children: string[];
214
- total: number | null;
215
- parentId: string | null;
216
- }[];
217
- profile: {
218
97
  url: string;
219
- title: string;
220
- id: string;
221
- username: string;
222
- };
223
- }>;
98
+ }>>;
99
+ }, z.core.$strip>;
224
100
  export type ReferenceCatalogPage = z.infer<typeof ReferenceCatalogPageSchema>;
225
101
  export declare const referenceScopeDisclosure: Record<ReferenceProvider, string>;
226
102
  //# sourceMappingURL=reference-connectors.d.ts.map