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.
- package/bin/rivet.js +13 -0
- 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 +1099 -4966
- package/dist/agent-variants/contracts.js +1 -121
- package/dist/agent-variants/index.d.ts +1 -1
- package/dist/agent-variants/variantsTelemetry.d.ts +0 -8
- package/dist/agent-variants/workItemInput.d.ts +464 -464
- 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/editorSession.d.ts +1 -13
- package/dist/cli/runtimeInterruption.d.ts +2 -16
- package/dist/config/pluginMetrics.js +0 -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.js +1 -1
- 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 +4 -4
- 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 +8 -8
- package/dist/routes/variantRequestSchema.js +7 -2
- 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/GuidanceVerifierRunner.js +13 -2
- 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/ProjectRegistry.d.ts +5 -24
- package/dist/services/TelemetryService.d.ts +1 -62
- package/dist/services/TelemetryService.js +0 -113
- package/dist/services/TreeStore.d.ts +0 -2
- package/dist/services/TreeStore.js +0 -24
- package/dist/services/profiles/DesignProfiles.d.ts +180 -125
- 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 +103 -197
- package/dist/types/guidance-verifier.js +36 -13
- 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/displayLocale.d.ts +0 -1
- package/dist/utils/displayLocale.js +1 -3
- package/dist/utils/skills/cli-guidance.d.ts +1 -1
- package/dist/utils/skills/cli-guidance.js +2 -2
- package/package.json +4 -4
- package/src/ui/dist/assets/LibraryEntry-92R_T-Xa.js +37 -0
- package/src/ui/dist/assets/main-D0UmAaUe.css +1 -0
- package/src/ui/dist/assets/main-DgEfJvYu.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-CFkd6v_O.js +0 -37
- package/src/ui/dist/assets/main-B_jie9r3.js +0 -439
- package/src/ui/dist/assets/main-W3oTuTTl.css +0 -1
package/bin/rivet.js
CHANGED
|
@@ -6,6 +6,19 @@ const fs = require('fs');
|
|
|
6
6
|
const path = require('path');
|
|
7
7
|
const childProcess = require('child_process');
|
|
8
8
|
|
|
9
|
+
const {
|
|
10
|
+
assertSupportedNodeVersion,
|
|
11
|
+
} = require('../scripts/verify-node-version.cjs');
|
|
12
|
+
|
|
13
|
+
try {
|
|
14
|
+
assertSupportedNodeVersion(process.versions.node);
|
|
15
|
+
} catch (error) {
|
|
16
|
+
process.stderr.write(
|
|
17
|
+
`\n${error.message}\nNode.js runtime: ${process.execPath}\n\n`,
|
|
18
|
+
);
|
|
19
|
+
process.exit(1);
|
|
20
|
+
}
|
|
21
|
+
|
|
9
22
|
const packageRoot = path.resolve(__dirname, '..');
|
|
10
23
|
let packageMetadata = null;
|
|
11
24
|
try {
|
|
@@ -98,7 +98,6 @@ export declare class WorkerExecutorService {
|
|
|
98
98
|
private readonly referenceCreateTierOverridden;
|
|
99
99
|
private readonly timeoutMs;
|
|
100
100
|
private readonly rateLimitRetryDelayMs;
|
|
101
|
-
private runtimeAvailable?;
|
|
102
101
|
private readonly childrenBySession;
|
|
103
102
|
private readonly cancelledSessions;
|
|
104
103
|
private readonly backoffWakersBySession;
|
|
@@ -115,7 +114,6 @@ export declare class WorkerExecutorService {
|
|
|
115
114
|
selection?: WorkerSelection;
|
|
116
115
|
signal?: AbortSignal;
|
|
117
116
|
}): Promise<WorkerRuntimeDecision>;
|
|
118
|
-
isRuntimeAvailable(): boolean;
|
|
119
117
|
cancelSession(sessionId: string): void;
|
|
120
118
|
private backoff;
|
|
121
119
|
run(sessionId: string, workItemIds: string[], lease?: {
|
|
@@ -136,7 +136,6 @@ class WorkerExecutorService {
|
|
|
136
136
|
referenceCreateTierOverridden;
|
|
137
137
|
timeoutMs;
|
|
138
138
|
rateLimitRetryDelayMs;
|
|
139
|
-
runtimeAvailable;
|
|
140
139
|
childrenBySession = new Map();
|
|
141
140
|
cancelledSessions = new Set();
|
|
142
141
|
backoffWakersBySession = new Map();
|
|
@@ -212,23 +211,6 @@ class WorkerExecutorService {
|
|
|
212
211
|
async resolveRuntime(args) {
|
|
213
212
|
return this.resolver.resolve(args);
|
|
214
213
|
}
|
|
215
|
-
isRuntimeAvailable() {
|
|
216
|
-
if (this.runtimeAvailable === undefined) {
|
|
217
|
-
try {
|
|
218
|
-
(0, child_process_1.execFileSync)(this.workerCommand, ['--version'], {
|
|
219
|
-
env: this.defaultAdapter.spawnEnv(),
|
|
220
|
-
stdio: 'ignore',
|
|
221
|
-
timeout: 10_000,
|
|
222
|
-
});
|
|
223
|
-
this.runtimeAvailable = true;
|
|
224
|
-
}
|
|
225
|
-
catch {
|
|
226
|
-
log.warn(`worker runtime '${this.workerCommand}' unavailable — executor falling back to host path`);
|
|
227
|
-
this.runtimeAvailable = false;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
return this.runtimeAvailable;
|
|
231
|
-
}
|
|
232
214
|
cancelSession(sessionId) {
|
|
233
215
|
this.cancelledSessions.add(sessionId);
|
|
234
216
|
for (const pid of this.childrenBySession.get(sessionId) ?? []) {
|
|
@@ -139,10 +139,6 @@ function buildOrchestrator(opts = {}) {
|
|
|
139
139
|
},
|
|
140
140
|
telemetry: {
|
|
141
141
|
track: (event, properties) => harness.telemetryEvents.push({ event, properties }),
|
|
142
|
-
trackAgentVariantsSourceContextQuality: (properties) => harness.telemetryEvents.push({
|
|
143
|
-
event: 'agent_variants.source_context_quality',
|
|
144
|
-
properties,
|
|
145
|
-
}),
|
|
146
142
|
trackAgentVariantsBriefQuality: (properties) => harness.telemetryEvents.push({
|
|
147
143
|
event: 'agent_variants.brief_quality',
|
|
148
144
|
properties,
|
|
@@ -155,10 +151,6 @@ function buildOrchestrator(opts = {}) {
|
|
|
155
151
|
event: 'agent_variants.request_accepted',
|
|
156
152
|
properties,
|
|
157
153
|
}),
|
|
158
|
-
trackAgentVariantsRequestRejected: (properties) => harness.telemetryEvents.push({
|
|
159
|
-
event: 'agent_variants.request_rejected',
|
|
160
|
-
properties,
|
|
161
|
-
}),
|
|
162
154
|
trackAgentVariantsBriefsStarted: (properties) => harness.telemetryEvents.push({
|
|
163
155
|
event: 'agent_variants.briefs_started',
|
|
164
156
|
properties,
|