rivet-design 0.26.1 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/rivet.js +13 -0
- package/dist/agent-variants/PreviewRuntime.js +20 -7
- package/dist/agent-variants/WorkerExecutorService.d.ts +0 -2
- package/dist/agent-variants/WorkerExecutorService.js +0 -18
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -8
- package/dist/agent-variants/contracts.d.ts +1001 -4868
- package/dist/agent-variants/contracts.js +1 -121
- package/dist/agent-variants/index.d.ts +1 -1
- package/dist/agent-variants/variantsTelemetry.d.ts +4 -8
- package/dist/agent-variants/variantsTelemetry.js +3 -0
- package/dist/agent-variants/workItemInput.d.ts +386 -386
- package/dist/cli/commands/contextRequest.js +1 -1
- package/dist/cli/commands/guidanceReferences.d.ts +2 -2
- package/dist/cli/commands/guidanceVerifierPackage.d.ts +2 -2
- package/dist/cli/commands/mcpServe.js +1 -0
- package/dist/cli/commands/serve.js +2 -0
- package/dist/cli/editorSession.d.ts +1 -13
- package/dist/cli/handoff.d.ts +1 -0
- package/dist/cli/handoff.js +20 -4
- package/dist/cli/router.js +1 -0
- package/dist/cli/runtimeInterruption.d.ts +2 -16
- package/dist/cli/telemetry.d.ts +10 -0
- package/dist/cli/telemetry.js +37 -1
- package/dist/config/pluginMetrics.js +36 -1
- package/dist/hosts/workerDefaults.d.ts +0 -11
- package/dist/hosts/workerDefaults.js +1 -30
- package/dist/index-core.d.ts +0 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.js +15 -6
- package/dist/install/automaticCliUpdate.d.ts +1 -0
- package/dist/install/automaticCliUpdate.js +32 -22
- package/dist/install/channelCli.d.ts +1 -1
- package/dist/install/channelCli.js +11 -6
- package/dist/install/channelManager.d.ts +5 -2
- package/dist/install/globalBootstrap.d.ts +5 -3
- package/dist/install/globalBootstrap.js +21 -9
- package/dist/install/npmCommand.d.ts +15 -0
- package/dist/install/npmCommand.js +59 -0
- package/dist/routes/agentVariants.js +3 -14
- package/dist/routes/library/browserAccess.js +6 -2
- package/dist/routes/library/guidance.js +3 -1
- package/dist/routes/library/middleware.js +15 -9
- package/dist/routes/library/navigation.js +3 -1
- package/dist/routes/library/profiles.js +5 -5
- package/dist/routes/library/projects.js +17 -7
- package/dist/routes/library/referenceOnboarding.js +4 -2
- package/dist/routes/library/schemas.d.ts +2 -15
- package/dist/routes/telemetry.js +1 -1
- package/dist/routes/variantRequestSchema.d.ts +4 -4
- package/dist/routes/variantRequestSchema.js +7 -2
- package/dist/server.js +8 -0
- package/dist/services/AuthService.d.ts +3 -56
- package/dist/services/AuthService.js +0 -28
- package/dist/services/ConfigManager.d.ts +0 -2
- package/dist/services/ConfigManager.js +0 -14
- package/dist/services/DependencyPreparationService.js +57 -19
- package/dist/services/GuidanceVerifierRunner.js +4 -4
- package/dist/services/HubDiscovery.d.ts +1 -9
- package/dist/services/IntegrationsClient.d.ts +16 -16
- package/dist/services/MCPOnboardingTelemetry.d.ts +0 -14
- package/dist/services/MCPOnboardingTelemetry.js +0 -62
- package/dist/services/ProjectPackageManager.d.ts +5 -0
- package/dist/services/ProjectPackageManager.js +33 -11
- package/dist/services/ProjectRegistry.d.ts +5 -24
- package/dist/services/TelemetryService.d.ts +9 -64
- package/dist/services/TelemetryService.js +10 -113
- package/dist/services/TreeStore.d.ts +0 -2
- package/dist/services/TreeStore.js +0 -24
- package/dist/services/WorktreeManager.js +5 -0
- package/dist/services/profiles/DesignProfiles.d.ts +180 -125
- package/dist/services/profiles/DesignProfiles.js +16 -8
- package/dist/services/profiles/ProfilePlanning.d.ts +38 -38
- package/dist/services/profiles/ReferenceReader.d.ts +14 -14
- package/dist/services/profiles/modelContract.js +4 -4
- package/dist/storage/library/ProjectPreviewCache.d.ts +1 -13
- package/dist/storage/profiles/ProfilePlans.d.ts +137 -137
- package/dist/storage/profiles/ProfileRecords.d.ts +62 -37
- package/dist/storage/profiles/planSchema.d.ts +40 -40
- package/dist/storage/profiles/schema.d.ts +16 -16
- package/dist/types/api-responses.d.ts +174 -0
- package/dist/types/api-responses.js +108 -0
- package/dist/types/cosmos-profile.d.ts +17 -105
- package/dist/types/cosmos.d.ts +48 -266
- package/dist/types/design-library.d.ts +230 -61
- package/dist/types/design-library.js +38 -1
- package/dist/types/design-profile.d.ts +220 -529
- package/dist/types/design-profile.js +5 -1
- package/dist/types/guidance-references.d.ts +68 -316
- package/dist/types/guidance-verifier.d.ts +69 -560
- package/dist/types/guidance-verifier.js +15 -2
- package/dist/types/guidance.d.ts +182 -1643
- package/dist/types/guidance.js +4 -1
- package/dist/types/project-library.d.ts +60 -30
- package/dist/types/project-library.js +32 -1
- package/dist/types/reference-connectors.d.ts +38 -162
- package/dist/types/reference-onboarding.d.ts +144 -878
- package/dist/types/reference-pages.d.ts +27 -139
- package/dist/types/x-bookmarks.d.ts +40 -296
- package/dist/utils/devServerError.d.ts +5 -0
- package/dist/utils/devServerError.js +4 -0
- package/dist/utils/displayLocale.d.ts +0 -1
- package/dist/utils/displayLocale.js +1 -3
- package/dist/utils/failureReason.d.ts +16 -0
- package/dist/utils/failureReason.js +106 -0
- package/dist/utils/hostedLogPrivacy.d.ts +1 -0
- package/dist/utils/hostedLogPrivacy.js +10 -4
- package/dist/utils/skills/claude-skill.d.ts +1 -1
- package/dist/utils/skills/claude-skill.js +1 -1
- package/dist/utils/skills/cli-guidance.d.ts +1 -1
- package/dist/utils/skills/cli-guidance.js +3 -3
- package/dist/utils/skills/cursor-rules.d.ts +1 -1
- package/dist/utils/skills/cursor-rules.js +1 -1
- package/package.json +5 -5
- package/src/ui/dist/assets/LibraryEntry-RI9Lc7P3.js +37 -0
- package/src/ui/dist/assets/main-D0UmAaUe.css +1 -0
- package/src/ui/dist/assets/main-DgrLzS5j.js +497 -0
- package/src/ui/dist/index.html +2 -2
- package/dist/types/change-types.d.ts +0 -66
- package/dist/types/change-types.js +0 -3
- package/src/ui/dist/assets/LibraryEntry-Cr4GFYXW.js +0 -37
- package/src/ui/dist/assets/main-W3oTuTTl.css +0 -1
- package/src/ui/dist/assets/main-tPO1OCpZ.js +0 -439
|
@@ -417,18 +417,25 @@ class DesignProfiles {
|
|
|
417
417
|
instructions: `The source changed after this verifier was saved. ${VERIFICATION_TARGET_INSTRUCTIONS} Revise and execute a temporary recipe against the supplied source before offering to replace the saved verifier.`,
|
|
418
418
|
},
|
|
419
419
|
};
|
|
420
|
+
if (!verifier.package) {
|
|
421
|
+
return {
|
|
422
|
+
...resolved,
|
|
423
|
+
verifier,
|
|
424
|
+
verifierState: 'ready',
|
|
425
|
+
nextAction: {
|
|
426
|
+
action: 'execute_context_recipe',
|
|
427
|
+
instructions: `This saved verifier is a Markdown recipe without an executable package, so \`rivet context verify\` cannot run it. Follow the recipe once with the host's own tools against this source and the user-selected target. ${VERIFICATION_TARGET_INSTRUCTIONS} Report pass, fail, or unable to verify with evidence. Retrieval has not executed any checks.`,
|
|
428
|
+
},
|
|
429
|
+
};
|
|
430
|
+
}
|
|
420
431
|
return {
|
|
421
432
|
...resolved,
|
|
422
433
|
verifier,
|
|
423
434
|
verifierState: 'ready',
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
directory: path_1.default.join(records.directory, 'guidance-verifiers'),
|
|
429
|
-
}),
|
|
430
|
-
}
|
|
431
|
-
: {}),
|
|
435
|
+
packageDirectory: await (0, retainedTextFiles_1.materializeTextFiles)({
|
|
436
|
+
files: verifier.package.files,
|
|
437
|
+
directory: path_1.default.join(records.directory, 'guidance-verifiers'),
|
|
438
|
+
}),
|
|
432
439
|
nextAction: {
|
|
433
440
|
action: 'run_context_verifier',
|
|
434
441
|
instructions: `Execute the saved verifier against this source and the user-selected target. ${VERIFICATION_TARGET_INSTRUCTIONS} Report pass, fail, or unable to verify with evidence. Retrieval has not executed any checks.`,
|
|
@@ -1388,6 +1395,7 @@ class DesignProfiles {
|
|
|
1388
1395
|
operation: 'import',
|
|
1389
1396
|
outcome: 'failed',
|
|
1390
1397
|
durationMs: Date.now() - started,
|
|
1398
|
+
error,
|
|
1391
1399
|
});
|
|
1392
1400
|
if (!context.abort.signal.aborted &&
|
|
1393
1401
|
context.records.jobs().find((item) => item.id === id)?.state ===
|
|
@@ -17,44 +17,43 @@ export declare class ProfilePlanning {
|
|
|
17
17
|
discover({ signal: cancellation, ...input }: ReferenceDiscoveryRequest & {
|
|
18
18
|
signal: AbortSignal;
|
|
19
19
|
}): Promise<{
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
32
|
-
|
|
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
|
-
},
|
|
9
|
-
projectPath: string;
|
|
10
|
-
label: string;
|
|
11
|
-
dataUrl: string;
|
|
12
|
-
sourceKey: string;
|
|
13
|
-
capturedAt: string;
|
|
14
|
-
}, {
|
|
15
|
-
projectPath: string;
|
|
16
|
-
label: string;
|
|
17
|
-
dataUrl: 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;
|