rivet-design 0.14.13 → 0.14.15
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/dist/agent-variants/SessionStore.d.ts +15 -2
- package/dist/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +18 -6
- package/dist/agent-variants/SessionStore.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.d.ts +26 -15
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.js +56 -36
- package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts +1 -0
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js.map +1 -1
- package/dist/agent-variants/contracts.d.ts +31 -31
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/agent-variants/contracts.js.map +1 -1
- package/dist/agent-variants/workItemBriefing.d.ts.map +1 -1
- package/dist/agent-variants/workItemBriefing.js +13 -8
- package/dist/agent-variants/workItemBriefing.js.map +1 -1
- package/dist/cli/commands/mcpServe.d.ts +1 -1
- package/dist/cli/commands/serve.d.ts.map +1 -1
- package/dist/cli/commands/serve.js +1 -0
- package/dist/cli/commands/serve.js.map +1 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -96
- package/dist/index.js.map +1 -1
- package/dist/install/harnesses.d.ts +6 -0
- package/dist/install/harnesses.d.ts.map +1 -1
- package/dist/install/harnesses.js +10 -2
- package/dist/install/harnesses.js.map +1 -1
- package/dist/mcp/changeBatchClassification.d.ts +3 -0
- package/dist/mcp/changeBatchClassification.d.ts.map +1 -1
- package/dist/mcp/changeBatchClassification.js +5 -0
- package/dist/mcp/changeBatchClassification.js.map +1 -1
- package/dist/proxy-middleware/proxy-config.d.ts.map +1 -1
- package/dist/proxy-middleware/proxy-config.js +33 -19
- package/dist/proxy-middleware/proxy-config.js.map +1 -1
- package/dist/routes/agentVariants.d.ts.map +1 -1
- package/dist/routes/agentVariants.js +7 -1
- package/dist/routes/agentVariants.js.map +1 -1
- package/dist/server.d.ts +0 -19
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +17 -491
- package/dist/server.js.map +1 -1
- package/dist/services/AuthService.d.ts +1 -1
- package/dist/services/AuthService.d.ts.map +1 -1
- package/dist/services/AuthService.js +5 -4
- package/dist/services/AuthService.js.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.d.ts +2 -2
- package/dist/services/MCPOnboardingTelemetry.d.ts.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.js +0 -3
- package/dist/services/MCPOnboardingTelemetry.js.map +1 -1
- package/dist/services/PrototypeBuildService.d.ts +1 -1
- package/dist/services/PrototypeBuildService.d.ts.map +1 -1
- package/dist/services/PrototypeBuildService.js +37 -4
- package/dist/services/PrototypeBuildService.js.map +1 -1
- package/dist/services/PrototypeDeployService.d.ts +4 -1
- package/dist/services/PrototypeDeployService.d.ts.map +1 -1
- package/dist/services/PrototypeDeployService.js +2 -2
- package/dist/services/PrototypeDeployService.js.map +1 -1
- package/dist/services/TelemetryService.d.ts +1 -96
- package/dist/services/TelemetryService.d.ts.map +1 -1
- package/dist/services/TelemetryService.js +0 -198
- package/dist/services/TelemetryService.js.map +1 -1
- package/dist/services/VariantGenerationService.d.ts +2 -0
- package/dist/services/VariantGenerationService.d.ts.map +1 -1
- package/dist/services/VariantGenerationService.js +14 -5
- package/dist/services/VariantGenerationService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts +1 -0
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +3 -1
- package/dist/services/VariantRunService.js.map +1 -1
- package/dist/services/VariantsRuntime.d.ts +1 -0
- package/dist/services/VariantsRuntime.d.ts.map +1 -1
- package/dist/services/VariantsRuntime.js +2 -0
- package/dist/services/VariantsRuntime.js.map +1 -1
- package/dist/services/accessTokenRefresh.d.ts +0 -11
- package/dist/services/accessTokenRefresh.d.ts.map +1 -1
- package/dist/services/accessTokenRefresh.js +4 -24
- package/dist/services/accessTokenRefresh.js.map +1 -1
- package/dist/services/createAgentVariantsOrchestrator.d.ts +1 -0
- package/dist/services/createAgentVariantsOrchestrator.d.ts.map +1 -1
- package/dist/services/createAgentVariantsOrchestrator.js +13 -0
- package/dist/services/createAgentVariantsOrchestrator.js.map +1 -1
- package/dist/utils/skills/claude-skill.d.ts +2 -2
- package/dist/utils/skills/claude-skill.d.ts.map +1 -1
- package/dist/utils/skills/claude-skill.js +1 -1
- package/dist/utils/skills/cli-guidance.d.ts +2 -2
- package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
- package/dist/utils/skills/cli-guidance.js +3 -1
- package/dist/utils/skills/cli-guidance.js.map +1 -1
- package/dist/utils/skills/cursor-rules.d.ts +2 -2
- package/dist/utils/skills/cursor-rules.d.ts.map +1 -1
- package/dist/utils/skills/cursor-rules.js +1 -1
- package/package.json +1 -3
- package/src/ui/dist/assets/main-C39T3J6k.js +422 -0
- package/src/ui/dist/assets/main-CrLtwwgK.css +1 -0
- package/src/ui/dist/index.html +2 -2
- package/dist/demo/sessionRuntime.d.ts +0 -2
- package/dist/demo/sessionRuntime.d.ts.map +0 -1
- package/dist/demo/sessionRuntime.js +0 -48
- package/dist/demo/sessionRuntime.js.map +0 -1
- package/dist/hosted-demo.d.ts +0 -2
- package/dist/hosted-demo.d.ts.map +0 -1
- package/dist/hosted-demo.js +0 -83
- package/dist/hosted-demo.js.map +0 -1
- package/dist/routes/demo.d.ts +0 -33
- package/dist/routes/demo.d.ts.map +0 -1
- package/dist/routes/demo.js +0 -180
- package/dist/routes/demo.js.map +0 -1
- package/dist/services/HostedDemoAuthSessionService.d.ts +0 -50
- package/dist/services/HostedDemoAuthSessionService.d.ts.map +0 -1
- package/dist/services/HostedDemoAuthSessionService.js +0 -192
- package/dist/services/HostedDemoAuthSessionService.js.map +0 -1
- package/dist/services/HostedDemoAuthSessionStore.d.ts +0 -44
- package/dist/services/HostedDemoAuthSessionStore.d.ts.map +0 -1
- package/dist/services/HostedDemoAuthSessionStore.js +0 -90
- package/dist/services/HostedDemoAuthSessionStore.js.map +0 -1
- package/dist/services/HostedDemoSessionService.d.ts +0 -91
- package/dist/services/HostedDemoSessionService.d.ts.map +0 -1
- package/dist/services/HostedDemoSessionService.js +0 -568
- package/dist/services/HostedDemoSessionService.js.map +0 -1
- package/dist/services/HostedDemoSessionStore.d.ts +0 -49
- package/dist/services/HostedDemoSessionStore.d.ts.map +0 -1
- package/dist/services/HostedDemoSessionStore.js +0 -90
- package/dist/services/HostedDemoSessionStore.js.map +0 -1
- package/dist/services/hostedDemoSessionAuthRefresh.d.ts +0 -18
- package/dist/services/hostedDemoSessionAuthRefresh.d.ts.map +0 -1
- package/dist/services/hostedDemoSessionAuthRefresh.js +0 -39
- package/dist/services/hostedDemoSessionAuthRefresh.js.map +0 -1
- package/dist/utils/shouldRecordHostedDemoSessionAction.d.ts +0 -8
- package/dist/utils/shouldRecordHostedDemoSessionAction.d.ts.map +0 -1
- package/dist/utils/shouldRecordHostedDemoSessionAction.js +0 -11
- package/dist/utils/shouldRecordHostedDemoSessionAction.js.map +0 -1
- package/src/ui/dist/assets/main-BfVGaiD6.js +0 -422
- package/src/ui/dist/assets/main-CobdEReL.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariantGenerationService.js","sourceRoot":"","sources":["../../src/services/VariantGenerationService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAAoC;AACpC,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAC7B,8CAA6C;AAC7C,gFAA+E;AAM/E,6EAAwE;AACxE,iFAAoF;AACpF,uDAAiE;AACjE,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,WAAW,EAAE;oBACtD,CAAC,CAAC,SAAS,EACb,WAAW,CAAC,OAAO,EACnB,WAAW,CAAC,aAAa,CAC1B,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CACzB,GAAG,CAAC,IAAI,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAC9C,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,MAAM,CAAC,cAAc,CACxB,gCAAgC,WAAW,CAAC,QAAQ,CAAC,MAAM,kBAAkB,CAC9E,CAAC;YACJ,CAAC;YACD,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAC/B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,GAAG,CAAC,KAAK,CAAC,iCAAiC,EAAE,KAAK,CAAC,CAAC;YACpD,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,mCAAmC,OAAO,EAAE,CAAC,CAAC;YACzE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YAC/B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAC5C,CAAC;IACH,CAAC;CACF;AA1fD,4DA0fC"}
|
|
1
|
+
{"version":3,"file":"VariantGenerationService.js","sourceRoot":"","sources":["../../src/services/VariantGenerationService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAAoC;AACpC,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAC7B,8CAA6C;AAC7C,gFAA+E;AAM/E,6EAAwE;AACxE,iFAAoF;AACpF,uDAAiE;AACjE,qEAA8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C;QAC5C,CAAC;IACH,CAAC;CACF;AAhgBD,4DAggBC"}
|
|
@@ -7,6 +7,7 @@ export type VariantRunServiceOptions = {
|
|
|
7
7
|
bridge: SessionBridgeService;
|
|
8
8
|
orchestrator: AgentVariantsOrchestrator;
|
|
9
9
|
projectPath?: string;
|
|
10
|
+
staticEntry?: string;
|
|
10
11
|
createSessionId?: () => string;
|
|
11
12
|
/** When set, artifact-backed work runs on server-owned headless workers
|
|
12
13
|
* instead of host-agent subagents (RIVET_EXECUTOR=1 opt-in). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariantRunService.d.ts","sourceRoot":"","sources":["../../src/services/VariantRunService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAK3B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,yCAAyC,CAAC;AAoBjD,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,YAAY,EAAE,yBAAyB,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,MAAM,CAAC;IAC/B;qEACiE;IACjE,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,SAAS,CAAC,EAAE;QAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;KAAE,CAAC;CAC7E,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,GAAG;IAC5D,c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C,EAAE,OAAO,CAAC;KACxB,GAAG,UAAU,CAAC,yBAAyB,CAAC,eAAe,CAAC,CAAC;IAI1D;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,UAAU,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IAKnD,6EAA6E;IAC7E,WAAW,IAAI,cAAc;CAG9B"}
|
|
@@ -35,6 +35,7 @@ class VariantRunService {
|
|
|
35
35
|
bridge: options.bridge,
|
|
36
36
|
orchestrator: options.orchestrator,
|
|
37
37
|
projectPath: options.projectPath,
|
|
38
|
+
staticEntry: options.staticEntry,
|
|
38
39
|
createSessionId: options.createSessionId,
|
|
39
40
|
...(options.executor ? { executor: options.executor } : {}),
|
|
40
41
|
...(options.telemetry ? { telemetry: options.telemetry } : {}),
|
|
@@ -132,7 +133,7 @@ class VariantRunService {
|
|
|
132
133
|
({ droppedRefinements, createdWorkItemIds } =
|
|
133
134
|
this.orchestrator.beginStaticPreviewRefinements({
|
|
134
135
|
sessionId,
|
|
135
|
-
targets: targets.map(({ target, instruction, count, briefs, runLabel, element, requestId, }) => {
|
|
136
|
+
targets: targets.map(({ target, instruction, count, briefs, runLabel, fidelity, element, requestId, }) => {
|
|
136
137
|
const relevantFiles = relevantFilesForTarget(derived);
|
|
137
138
|
return {
|
|
138
139
|
variantId: target.variantId,
|
|
@@ -140,6 +141,7 @@ class VariantRunService {
|
|
|
140
141
|
count,
|
|
141
142
|
...(briefs ? { briefs } : {}),
|
|
142
143
|
...(runLabel ? { runLabel } : {}),
|
|
144
|
+
...(fidelity ? { fidelity } : {}),
|
|
143
145
|
...(relevantFiles.length > 0 ? { relevantFiles } : {}),
|
|
144
146
|
element,
|
|
145
147
|
requestId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariantRunService.js","sourceRoot":"","sources":["../../src/services/VariantRunService.ts"],"names":[],"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string | undefined;
|
|
12
13
|
telemetry?: TelemetryService;
|
|
13
14
|
devServerContext?: Parameters<SessionBridgeService['setDevServerContext']>[0];
|
|
14
15
|
devServerHealth?: Parameters<SessionBridgeService['updateDevServerHealth']>[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariantsRuntime.d.ts","sourceRoot":"","sources":["../../src/services/VariantsRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAOxD,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,YAAY,EAAE,yBAAyB,CAAC;IACxC,UAAU,EAAE,iBAAiB,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,UAAU,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,eAAe,CAAC,EAAE,UAAU,CAC1B,oBAAoB,CAAC,uBAAuB,CAAC,CAC9C,CAAC,CAAC,CAAC,CAAC;CACN,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,SAAS,4BAA4B,KACpC,
|
|
1
|
+
{"version":3,"file":"VariantsRuntime.d.ts","sourceRoot":"","sources":["../../src/services/VariantsRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAOxD,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,YAAY,EAAE,yBAAyB,CAAC;IACxC,UAAU,EAAE,iBAAiB,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,UAAU,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,eAAe,CAAC,EAAE,UAAU,CAC1B,oBAAoB,CAAC,uBAAuB,CAAC,CAC9C,CAAC,CAAC,CAAC,CAAC;CACN,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,SAAS,4BAA4B,KACpC,eAwCF,CAAC"}
|
|
@@ -22,6 +22,7 @@ const createVariantsRuntime = (options) => {
|
|
|
22
22
|
bridge,
|
|
23
23
|
telemetry: options.telemetry,
|
|
24
24
|
projectPathFallback: options.projectPath,
|
|
25
|
+
staticEntry: options.staticEntry,
|
|
25
26
|
});
|
|
26
27
|
const executor = (0, WorkerExecutorService_1.isWorkerExecutorEnabled)()
|
|
27
28
|
? new WorkerExecutorService_1.WorkerExecutorService({
|
|
@@ -38,6 +39,7 @@ const createVariantsRuntime = (options) => {
|
|
|
38
39
|
bridge,
|
|
39
40
|
orchestrator,
|
|
40
41
|
projectPath: options.projectPath,
|
|
42
|
+
staticEntry: options.staticEntry,
|
|
41
43
|
...(executor ? { executor } : {}),
|
|
42
44
|
...(options.telemetry ? { telemetry: options.telemetry } : {}),
|
|
43
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariantsRuntime.js","sourceRoot":"","sources":["../../src/services/VariantsRuntime.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AACpF,iEAA8D;AAE9D,2DAAwD;AACxD,mFAGiD;AACjD,mDAAmD;
|
|
1
|
+
{"version":3,"file":"VariantsRuntime.js","sourceRoot":"","sources":["../../src/services/VariantsRuntime.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AACpF,iEAA8D;AAE9D,2DAAwD;AACxD,mFAGiD;AACjD,mDAAmD;AAkBnD;;GAEG;AACI,MAAM,qBAAqB,GAAG,CACnC,OAAqC,EACpB,EAAE;IACnB,MAAM,MAAM,GAAG,IAAI,2CAAoB,EAAE,CAAC;IAC1C,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACzC,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC7B,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACvD,CAAC;IACD,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;QAC5B,MAAM,CAAC,qBAAqB,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IACxD,CAAC;IAED,MAAM,YAAY,GAAG,IAAA,iEAA+B,EAAC;QACnD,MAAM;QACN,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,mBAAmB,EAAE,OAAO,CAAC,WAAW;QACxC,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,IAAA,+CAAuB,GAAE;QACxC,CAAC,CAAC,IAAI,6CAAqB,CAAC;YACxB,YAAY;YACZ,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,kEAAkE;YAClE,mEAAmE;YACnE,sBAAsB,EAAE,GAAG,EAAE,CAC3B,IAAA,gCAAgB,GAAE,CAAC,yBAAyB,EAAE;YAChD,2BAA2B,EAAE,GAAG,EAAE,CAChC,IAAA,gCAAgB,GAAE,CAAC,6BAA6B,EAAE;YACpD,wBAAwB,EAAE,CAAC,MAAM,EAAE,EAAE,CACnC,IAAA,gCAAgB,GAAE,CAAC,wBAAwB,CAAC,MAAM,CAAC;SACtD,CAAC;QACJ,CAAC,CAAC,SAAS,CAAC;IACd,MAAM,UAAU,GAAG,IAAI,qCAAiB,CAAC;QACvC,MAAM;QACN,YAAY;QACZ,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC/D,CAAC,CAAC;IAEH,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAC9C,CAAC,CAAC;AA1CW,QAAA,qBAAqB,yBA0ChC"}
|
|
@@ -36,15 +36,4 @@ export declare const refreshAccessTokenViaProxy: (params: {
|
|
|
36
36
|
token: string;
|
|
37
37
|
refreshToken?: string;
|
|
38
38
|
} | null>;
|
|
39
|
-
export type HostedDemoProxyRefreshResult = {
|
|
40
|
-
token: string;
|
|
41
|
-
refreshToken?: string;
|
|
42
|
-
} | null;
|
|
43
|
-
/**
|
|
44
|
-
* Runs at most one in-flight hosted-demo token refresh per session id.
|
|
45
|
-
* Concurrent requests share the same promise so the proxy refresh endpoint is not hit in parallel with the same refresh token.
|
|
46
|
-
*/
|
|
47
|
-
export declare const runHostedDemoTokenRefreshSingleFlight: (sessionId: string, refresh: () => Promise<HostedDemoProxyRefreshResult>) => Promise<HostedDemoProxyRefreshResult>;
|
|
48
|
-
/** Clears in-flight refresh state. Intended for tests only. */
|
|
49
|
-
export declare const resetHostedDemoTokenRefreshSingleFlightForTests: () => void;
|
|
50
39
|
//# sourceMappingURL=accessTokenRefresh.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessTokenRefresh.d.ts","sourceRoot":"","sources":["../../src/services/accessTokenRefresh.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,gDAAgD,MAAM,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"accessTokenRefresh.d.ts","sourceRoot":"","sources":["../../src/services/accessTokenRefresh.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,gDAAgD,MAAM,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,aAAa,MAAM,KAClB,MAAM,GAAG,IAwBX,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,aAAa,MAAM,KAAG,MAAM,GAAG,IAsBxD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,KAAG,MAAM,GAAG,IAwBhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mCAAmC,GAC9C,aAAa,MAAM,EACnB,mBAAkB,MAAyD,KAC1E,OAMF,CAAC;AAQF;;GAEG;AACH,eAAO,MAAM,0BAA0B,GAAU,QAAQ;IACvD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CAC1B,KAAG,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CA4B1D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.refreshAccessTokenViaProxy = exports.shouldProactivelyRefreshAccessToken = exports.getJwtDisplayName = exports.getJwtSub = exports.getJwtSecondsUntilExpiry = exports.ACCESS_TOKEN_PROACTIVE_REFRESH_THRESHOLD_SECONDS = void 0;
|
|
4
4
|
const logger_1 = require("../utils/logger");
|
|
5
5
|
const log = (0, logger_1.createLogger)('AccessTokenRefresh');
|
|
6
6
|
/**
|
|
@@ -114,7 +114,9 @@ const refreshAccessTokenViaProxy = async (params) => {
|
|
|
114
114
|
signal: AbortSignal.timeout(10_000),
|
|
115
115
|
});
|
|
116
116
|
if (!response.ok) {
|
|
117
|
-
log.warn('Proxy token refresh returned non-OK status', {
|
|
117
|
+
log.warn('Proxy token refresh returned non-OK status', {
|
|
118
|
+
status: response.status,
|
|
119
|
+
});
|
|
118
120
|
return null;
|
|
119
121
|
}
|
|
120
122
|
const result = (await response.json());
|
|
@@ -132,26 +134,4 @@ const refreshAccessTokenViaProxy = async (params) => {
|
|
|
132
134
|
}
|
|
133
135
|
};
|
|
134
136
|
exports.refreshAccessTokenViaProxy = refreshAccessTokenViaProxy;
|
|
135
|
-
const hostedDemoRefreshInFlight = new Map();
|
|
136
|
-
/**
|
|
137
|
-
* Runs at most one in-flight hosted-demo token refresh per session id.
|
|
138
|
-
* Concurrent requests share the same promise so the proxy refresh endpoint is not hit in parallel with the same refresh token.
|
|
139
|
-
*/
|
|
140
|
-
const runHostedDemoTokenRefreshSingleFlight = (sessionId, refresh) => {
|
|
141
|
-
const existing = hostedDemoRefreshInFlight.get(sessionId);
|
|
142
|
-
if (existing) {
|
|
143
|
-
return existing;
|
|
144
|
-
}
|
|
145
|
-
const started = refresh().finally(() => {
|
|
146
|
-
hostedDemoRefreshInFlight.delete(sessionId);
|
|
147
|
-
});
|
|
148
|
-
hostedDemoRefreshInFlight.set(sessionId, started);
|
|
149
|
-
return started;
|
|
150
|
-
};
|
|
151
|
-
exports.runHostedDemoTokenRefreshSingleFlight = runHostedDemoTokenRefreshSingleFlight;
|
|
152
|
-
/** Clears in-flight refresh state. Intended for tests only. */
|
|
153
|
-
const resetHostedDemoTokenRefreshSingleFlightForTests = () => {
|
|
154
|
-
hostedDemoRefreshInFlight.clear();
|
|
155
|
-
};
|
|
156
|
-
exports.resetHostedDemoTokenRefreshSingleFlightForTests = resetHostedDemoTokenRefreshSingleFlightForTests;
|
|
157
137
|
//# sourceMappingURL=accessTokenRefresh.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessTokenRefresh.js","sourceRoot":"","sources":["../../src/services/accessTokenRefresh.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAE/C,MAAM,GAAG,GAAG,IAAA,qBAAY,EAAC,oBAAoB,CAAC,CAAC;AAE/C;;;GAGG;AACU,QAAA,gDAAgD,GAAG,GAAG,CAAC;AAEpE;;GAEG;AACI,MAAM,wBAAwB,GAAG,
|
|
1
|
+
{"version":3,"file":"accessTokenRefresh.js","sourceRoot":"","sources":["../../src/services/accessTokenRefresh.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAE/C,MAAM,GAAG,GAAG,IAAA,qBAAY,EAAC,oBAAoB,CAAC,CAAC;AAE/C;;;GAGG;AACU,QAAA,gDAAgD,GAAG,GAAG,CAAC;AAEpE;;GAEG;AACI,MAAM,wBAAwB,GAAG,CACtC,WAAmB,EACJ,EAAE;IACjB,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;QAC5E,MAA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C,OAAO,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACnC,OAAO;gBACL,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,YAAY,EAAE,MAAM,CAAC,YAAY;aAClC,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,GAAG,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1D,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAhCW,QAAA,0BAA0B,8BAgCrC"}
|
|
@@ -21,6 +21,7 @@ export type CreateAgentVariantsOrchestratorOptions = {
|
|
|
21
21
|
bridge: SessionBridgeService;
|
|
22
22
|
telemetry?: TelemetryService;
|
|
23
23
|
projectPathFallback?: string;
|
|
24
|
+
staticEntry?: string;
|
|
24
25
|
cwd?: () => string;
|
|
25
26
|
worktreeManager?: WorktreeManagerLike;
|
|
26
27
|
resolveProjectEnvironment?: (sessionId: string) => Promise<ProjectEnvironment>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAgentVariantsOrchestrator.d.ts","sourceRoot":"","sources":["../../src/services/createAgentVariantsOrchestrator.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAEzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAO3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"createAgentVariantsOrchestrator.d.ts","sourceRoot":"","sources":["../../src/services/createAgentVariantsOrchestrator.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAEzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAO3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAWtD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gCAAgC,GAC3C,WAAW,gBAAgB,EAC3B,QAAQ,oBAAoB,KAC3B,gBA0CF,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,yBAAyB,CAAC,EAAE,CAC1B,SAAS,EAAE,MAAM,KACd,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B,GAC1C,SAAS,sCAAsC,KAC9C,yBA2DF,CAAC"}
|
|
@@ -6,6 +6,7 @@ const agent_variants_1 = require("../agent-variants");
|
|
|
6
6
|
const devServerCommand_1 = require("../utils/devServerCommand");
|
|
7
7
|
const ProjectDetectionService_1 = require("./ProjectDetectionService");
|
|
8
8
|
const WorktreeManager_1 = require("./WorktreeManager");
|
|
9
|
+
const staticProjectTarget_1 = require("./staticProjectTarget");
|
|
9
10
|
const log = (0, index_core_1.createLogger)('AgentVariantsOrchestratorFactory');
|
|
10
11
|
const AGENT_VARIANTS_EVENT_PREFIX = 'agent_variants.';
|
|
11
12
|
/** Marks a telemetry proxy already wrapped so composing the wrapper is a no-op. */
|
|
@@ -80,6 +81,18 @@ const createAgentVariantsOrchestrator = (options) => {
|
|
|
80
81
|
const projectPath = getProjectPath();
|
|
81
82
|
const detection = new ProjectDetectionService_1.ProjectDetectionService();
|
|
82
83
|
const framework = detection.detectFramework(projectPath);
|
|
84
|
+
if (framework === 'static') {
|
|
85
|
+
const entryPath = (0, staticProjectTarget_1.resolveStaticProjectTarget)({
|
|
86
|
+
targetPath: projectPath,
|
|
87
|
+
entryPath: options.staticEntry,
|
|
88
|
+
}).entryPath;
|
|
89
|
+
log.info(`Resolved env for variants session ${sessionId}: static/${entryPath}`);
|
|
90
|
+
return {
|
|
91
|
+
projectPath,
|
|
92
|
+
framework,
|
|
93
|
+
entryPath,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
83
96
|
const packageManager = await detection.detectPackageManager(projectPath);
|
|
84
97
|
// Script-aware: a component library may expose only a `storybook`
|
|
85
98
|
// script, so per-variant dev servers must not assume the framework's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAgentVariantsOrchestrator.js","sourceRoot":"","sources":["../../src/services/createAgentVariantsOrchestrator.ts"],"names":[],"mappings":";;;AAAA,8CAA6C;AAC7C,sDAK2B;AAC3B,gEAImC;AACnC,uEAAoE;AAGpE,uDAAoD;
|
|
1
|
+
{"version":3,"file":"createAgentVariantsOrchestrator.js","sourceRoot":"","sources":["../../src/services/createAgentVariantsOrchestrator.ts"],"names":[],"mappings":";;;AAAA,8CAA6C;AAC7C,sDAK2B;AAC3B,gEAImC;AACnC,uEAAoE;AAGpE,uDAAoD;AACpD,+DAAmE;AAEnE,MAAM,GAAG,GAAG,IAAA,yBAAY,EAAC,kCAAkC,CAAC,CAAC;AAE7D,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;AAEtD,mFAAmF;AACnF,MAAM,sBAAsB,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC;AAErE;;;;;;;;;;;;;;GAcG;AACI,MAAM,gCAAgC,GAAG,CAC9C,SAA2B,EAC3B,MAA4B,EACV,EAAE;IACpB,IACG,SAAoD,CAAC,sBAAsB,CAAC,EAC7E,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,IAAI,KAAK,CAAC,SAAS,EAAE;QAC1B,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ;YACxB,IAAI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ACrE,oCAAoC;gBACpC,MAAM,UAAU,GAAG,IAAA,mCAAgB,EAAC,WAAW,EAAE,SAAS,CAAC,CAAC;gBAC5D,MAAM,WAAW,GAAG,uCAAoB,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC;gBACjE,GAAG,CAAC,IAAI,CACN,qCAAqC,SAAS,KAAK,SAAS,IAAI,cAAc,EAAE,CACjF,CAAC;gBACF,OAAO;oBACL,WAAW;oBACX,SAAS;oBACT,cAAc;oBACd,UAAU;oBACV,WAAW;oBACX,eAAe,EAAE,CAAC,IAAY,EAAE,EAAE,CAChC,IAAA,wCAAqB,EAAC,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,CAAC;iBACrE,CAAC;YACJ,CAAC,CAAC;QACJ,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC;QACnE,2BAA2B,EAAE,CAAC,IAAI,EAAE,EAAE,CACpC,OAAO,CAAC,MAAM,CAAC,2BAA2B,CAAC,IAAI,CAAC;KACnD,CAAC,CAAC;AACL,CAAC,CAAC;AA7DW,QAAA,+BAA+B,mCA6D1C"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* `~/.claude/skills/rivet/SKILL.md` by `rivet install claude`. The version
|
|
4
4
|
* marker gates rewrites so user edits are only replaced by newer guidance.
|
|
5
5
|
*/
|
|
6
|
-
export declare const CLAUDE_SKILL_VERSION =
|
|
6
|
+
export declare const CLAUDE_SKILL_VERSION = 52;
|
|
7
7
|
export declare const CLAUDE_SKILL_DIR = "rivet";
|
|
8
8
|
export declare const CLAUDE_SKILL_FILENAME = "SKILL.md";
|
|
9
|
-
export declare const CLAUDE_SKILL_CONTENT = "---\nname: rivet\ndescription: Rivet \u2014 explore multiple design directions for your web app (\"/rivet\", \"use rivet\", \"explore with rivet\", \"create variants of X\", \"show me options for X\", \"open rivet\", \"open the visual editor\"). Drive it with `rivet` CLI commands.\n---\n\n[//]: # (rivet-skill-version: 51)\n[//]: # (rivet-cli-guidance-version: 26)\n# Rivet\n\nRivet 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.\n\n**Exit codes:** 0 ok \u00B7 1 operation failed (see `error.code`) \u00B7 2 usage error \u00B7 3 auth required \u00B7 4 no server for the project \u00B7 5 `rivet wait` timeout (work still pending or running \u2014 not a failure; the envelope's `state` says which).\n\n**Identify yourself (handoff).** Add these flags to every invocation so Rivet can attribute work: `--caller-agent claude|codex|cursor`, `--caller-model <your model>`, and `--caller-session <your chat session id>` when you have one. Human-direct invocations omit handoff flags. Never wrap or chain `rivet` with other commands (`&&`, pipes) \u2014 plain invocations are what the host allowlist covers.\n\n**Worker runtime (only when the user asks).** By default Rivet's workers run on the runtime matching your `--caller-agent`. When the user explicitly asks for a different one (\"use opus for the workers\", \"run workers on codex\"), pass `--worker-provider claude|codex|cursor` (and optionally `--worker-model <id>`) on `rivet variants start`. This spends on that provider's subscription, so never infer it \u2014 only relay a stated user choice. If the chosen provider's CLI is missing or logged out, the run degrades to host-path work with the reason in the envelope; relay it to the user.\n\n**Project path.** Prefer explicit `--project <absolute path>` on every command so follow-up chats attach to the same workspace. For an existing app, pass its repo/app root. For a fresh app, create or use an empty directory first, then open Rivet there and start variants with `--fresh`.\n\n**Browser behavior.** For interactive user workflows, run `rivet open` without `--no-browser` so the Rivet UI opens in the browser. Use `--no-browser` only for headless/background automation, CI/e2e checks, or when the user explicitly asks not to open a browser; in those cases, report the returned `editorUrl`.\n\n**MCP tools (opt-in).** If this host has Rivet MCP tools registered (`rivet_status`, `rivet_variants`, `rivet_design_context`, `rivet_login` \u2014 the user opted in via `rivet install --mcp`), prefer them over shelling out for status, variants, design-context, and sign-in work: they drive the same control plane and return the same JSON envelopes, without per-call process cost. Lifecycle stays CLI-only on purpose \u2014 `rivet open`, `rivet stop`, and `rivet wait` have no MCP tools. There is no blocking/watch tool either: start work with `rivet_variants`; if the result contains `nextAction.action=\"complete_host_variant_work\"`, execute it yourself with parallel subagents when available.\n\n## Commands\n\n- `rivet open [--project <path>] [--agent claude|codex|cursor] [--rivet-port N] [--user-port N] [--framework nextjs|vite|cra|remix|svelte|static] [--entry <path>] [--no-browser] [--no-git]` \u2014 start or attach the project's editor server (idempotent; returns `editorUrl`). It detects the app, attaches to an already-running dev server, or starts one from the app's standard `dev`/`start`/`serve`/`storybook` script when possible. Omit `--no-browser` for interactive work so the UI opens for the user.\n - **Attach, don't rebuild.** If the user's dev server is already running (including Storybook \u2014 component-library teams often run only Storybook), pass `--user-port <port>` to attach directly: this skips detection and never starts a second server. Auto-detection scans common ports (3000, 5173, 6006, \u2026), but an explicit `--user-port` is always the most reliable path \u2014 when in doubt, ask the user which port their app is on, or start the dev server yourself first and pass its port.\n - **Rivet never installs dependencies.** If `open` fails because the app's start command failed, the error carries the exact command and its output. YOU own the fix: diagnose the output, run the project's install yourself if dependencies are missing, or start the dev server yourself \u2014 then re-run `rivet open --user-port <port>`. Do not retry `rivet open` unchanged expecting a different result.\n- `rivet variants start --project <path> --instruction <text> [--run-label <text>] [--briefs <json>] [--count N] [--fidelity low|medium|high] [--element <selector>] [--files <json>] [--fresh] [--context-images <json>] [--reference-pages <json>] [--reference-videos <json>] [--target <sessionId>:<variantId>] [--worker-provider claude|codex|cursor] [--worker-model <id>]` \u2014 explore design directions. For existing-app and `--target` starts, agent invocations MUST pass an AI-authored 1\u20133 word batch label through `rivet_variants` `runLabel` or CLI `--run-label`, plus one AI-authored brief per direction; `briefs.length` sets the count. FRESH (`--fresh`) starts are different: OMIT briefs and run-label and pass `--count` \u2014 Rivet prepares all reference context and authors the directions server-side, which starts workers immediately. Use `--files` for already-known project paths and `--target` to Vary an existing direction. Returns a `workId` and `nextAction` after workspace provisioning.\n- `rivet variants complete <workId> --project <path> [--session <sessionId>] [--status succeeded|failed|cancelled] [--output <json>] [--error <message>]` \u2014 report one host-agent work item complete after you edit its assigned workspace. Static artifacts are read from disk; do not send them through `--output`.\n- `rivet wait <workId> --project <path> [--timeout <seconds>]` \u2014 bounded block until a work id settles (exit 5 on timeout; re-issue or check status).\n- `rivet status --project <path> [--watch]` \u2014 session, resolved runner, active run, and the variants snapshot. `--watch` streams NDJSON.\n- `rivet variants status --project <path>` / `rivet variants list --project <path> [--history]` \u2014 inspect live or past directions.\n- `rivet variants get <sessionId>:<variantId> --project <path>` \u2014 retrieve one exact variant, including its local artifact path or diff, from a reference copied by the editor.\n- `rivet variants commit <variantId> --project <path> [--session <id>]` \u2014 send the chosen direction to the project.\n- `rivet variants cancel <sessionId> --project <path>` \u2014 cancel a running variants session.\n- `rivet evidence capture --url <url>` \u2014 rendered design evidence (root variables, element styles, fonts) for a reference URL.\n- `rivet reference fetch <url>` \u2014 Pinterest / Are.na reference data via the user's connected account. Accepts full pin/board URLs and `pin.it` share links. Pinterest images are downloaded into `.rivet/references/` and returned as absolute paths (`data.images`, plus `local_path` per pin) \u2014 view them directly and pass them to variants via `--context-images` instead of relaying URLs. On failure the error message says exactly what to tell the user (e.g. save the pin to a board first).\n- `rivet auth status` \u2014 signed-in state. If `authenticated: false`: call the `rivet_login` MCP tool when this host has it \u2014 it opens a browser sign-in for the user and returns immediately; after they finish, retry the blocked action (the session is picked up automatically). Without MCP tools, tell the user to run `rivet login` themselves \u2014 never run login in your own terminal (it blocks waiting on the browser).\n- `rivet stop [--project <path>]` \u2014 stop the CLI-owned server.\n\n**Fidelity (capture the user's intent).** Design fidelity is a function of the authoring model, which correlates with latency \u2014 so the choice belongs to the user. On every `variants start` (CLI `--fidelity`, or the `rivet_variants` `fidelity` field), translate the user's ask into a fidelity level: `low` when they want speed or throwaway exploration (\"quick ideas\", \"rough sketches\", \"just show me options fast\") \u2014 sketch-grade workers, results in ~1.5\u20132 minutes; `high` when they want craft (\"polished\", \"pixel-perfect\", \"high fidelity\", \"final\", \"production-ready\", \"take your time\") \u2014 frontier-model authorship that can take a few minutes per direction. OMIT the flag when the user expressed no speed/quality intent \u2014 Rivet's default (`medium`) balances both. Never ask the user to pick a level; infer it from their words and mention the choice in your summary so they can redirect.\n\n## Typical flows\n\nBefore every agent-initiated EXISTING-APP or `--target` variants start, author a 1\u20133 word batch label plus one or more direction briefs as `[{\"label\":\"\u2026\",\"body\":\"\u2026\"}]`. (Fresh `--fresh` starts skip this entirely \u2014 see the fresh flow below.) The batch label summarizes the shared request and is passed through `runLabel` (MCP) or `--run-label` (CLI). Each brief `label` is an AI-authored direction title: 1\u20135 plain-English words naming what that direction concretely changes, not a vibe or numbered placeholder. Each `body` is a concise plain-English subtitle of at most 10 words describing that direction. Add an optional `notes` string per brief for richer implementation intent (design tokens, motion specs, constraints) \u2014 it is delivered verbatim to that direction's worker and never shown in UI chips. Use one brief for a single visualization when the user wants Rivet's visualization framework without divergent ideas. For multiple directions, make every brief meaningfully different. Pass the array through the `rivet_variants` `briefs` field or CLI `--briefs <json>`, and omit `--count` because the array length is authoritative. Human-direct CLI calls may omit the batch label and briefs and use Rivet's deterministic fallback.\n\nExisting app:\n1. `rivet open --project <path> --caller-agent cursor --caller-model <model> --caller-session <id>` \u2192 note `editorUrl`, `sessionId`, and `resolvedRunner`.\n2. Author a batch label and three distinct title/subtitle briefs, then call `rivet variants start --project <path> --instruction \"try three hero layouts\" --run-label \"Hero layouts\" --briefs '[{\"label\":\"Split hero\",\"body\":\"Moves supporting proof beside the primary call to action.\"},{\"label\":\"Layered hero\",\"body\":\"Stacks product imagery behind a compact centered headline.\"},{\"label\":\"Product-led hero\",\"body\":\"Lets the product preview dominate the opening composition.\"}]' --caller-agent cursor --caller-model <model> --caller-session <id>` \u2192 note `workId`.\n3. Rivet normally builds the directions with its OWN workers (the server executor): if the start response shows variants in flight but NO `nextAction`, do not implement anything \u2014 check `rivet status --project <path>` periodically (foreground waits only) until every variant is terminal, then present the results. Only when a response carries `nextAction.action=\"complete_host_variant_work\"` (executor unavailable on this machine) does the host implement, as follows. Each work item carries a server-authored `workerPrompt` pointing at its briefing file \u2014 the full packet (direction, mode contract, boundaries, completion command). Follow `nextAction.parallelism` exactly: one item \u2192 follow its `workerPrompt` yourself in the current host; multiple items \u2192 spawn every worker in that same turn as background subagents, passing each item's `workerPrompt` VERBATIM as the entire worker prompt \u2014 compose nothing, and never re-plan or elaborate briefs before spawning. When `nextAction.worker.agentType` is set (Claude Code: `rivet-worker`, installed by `rivet install` with tuned model/effort defaults), spawn each worker AS that subagent type; fall back to your default subagent type only if it is not registered. For `mode=\"vary\"` the workspace entry already contains the source direction's finished code: read it first, apply the requested delta with targeted `Edit` operations in place, and never rewrite or re-emit the full file \u2014 unchanged sections must remain untouched. For `workspace.kind=\"artifact_directory\"` the deliverable is `workspace.rootPath/workspace.entryPath` (write it in full only when it starts empty, i.e. `mode=\"create\"`); for `workspace.kind=\"git_worktree\"`, edit the app under `workspace.projectPath`.\n4. The briefing file ends with the item's exact `completeCommand`: the worker runs `rivet variants complete <workId> --project <path> --session <sessionId>` itself as its final step, the moment its workspace is done. Completions are never held back or batched by the coordinator \u2014 and because workers self-report, the coordinator does NOT poll status while workers run: check `rivet status` once after workers return (or on a single \u226560s wakeup), only to confirm terminal states and surface failures. Rivet reads static HTML from `workspace.entryPath` and captures git-worktree changes itself. Do not send inline HTML or repeat project context in the completion payload. If the result says `requeuedForRegeneration`, poll status for the renewed lease, address its QA summary, and complete that item once more. If a worker cannot complete it, use `--status failed --error <message>`.\n5. Show the user the `editorUrl` to compare directions; `rivet variants commit <variantId> --project <path>` when they pick one.\n\nFresh 0-to-1 (the fast path \u2014 go straight to the start call): create or use an empty directory, run `rivet open --project <path> ...`, then IMMEDIATELY run `rivet variants start --project <path> --fresh --instruction \"build a SaaS landing page\" --count 3 ...` with the user's references passed raw. OMIT `--briefs` and `--run-label`: Rivet authors the directions server-side, and every second you spend reading references or writing briefs delays the build. Pass local reference images via `--context-images '[\"/abs/path.png\"]'` (`rivet_variants` `contextImages`) \u2014 Rivet copies them into the run context and every worker views them natively. Pass reference page URLs via `--reference-pages '[\"https://example.com\"]'` (`referencePages`) \u2014 Rivet renders each page server-side for design evidence + a screenshot; never capture evidence or screenshot pages yourself. Pass local reference videos via `--reference-videos '[\"/abs/clip.mp4\"]'` (`referenceVideos`) \u2014 Rivet samples keyframes server-side; never run ffmpeg yourself. Never substitute a prose description of media you can pass directly.\n\nVary an existing direction: after status/list gives you `sessionId` and `variantId`, author a batch label and two distinct delta briefs by default, then run `rivet variants start --project <path> --target <sessionId>:<variantId> --instruction \"make this calmer\" --run-label \"Calmer direction\" --briefs '<json>' ...`. Include `--files '[\"src/known-target.tsx\"]'` when the relevant files are already known. Explicit briefs/counts remain authoritative.\n\nRivet owns orchestration; the host agent owns implementation. Do not wait for Rivet to spawn a separate agent. When `rivet variants start`, `rivet status`, `rivet_variants`, or `rivet_status` returns `nextAction.action=\"complete_host_variant_work\"`, complete those work items from the current host session. Avoid subagent startup for one item. For multiple items, spawn one background worker per isolated workspace in the same turn, and have each worker report its own completion immediately via its `completeCommand` (or `rivet_variants` action `complete`) \u2014 a variant's completion must never wait for its siblings.\n\n**Never cancel to unblock.** If `variants start` is rejected with `start_in_flight`, a start is still provisioning (status reports `variants.starting: true` \u2014 can take minutes); poll status and retry once it clears. If rejected with `active_session`, the user has live work: report the conflict and let them decide, or refine the active session with `--target`. Cancelling a session destroys the user's in-progress exploration \u2014 only do it when the user explicitly asks.\n";
|
|
9
|
+
export declare const CLAUDE_SKILL_CONTENT = "---\nname: rivet\ndescription: Rivet \u2014 explore multiple design directions for your web app (\"/rivet\", \"use rivet\", \"explore with rivet\", \"create variants of X\", \"show me options for X\", \"open rivet\", \"open the visual editor\"). Drive it with `rivet` CLI commands.\n---\n\n[//]: # (rivet-skill-version: 52)\n[//]: # (rivet-cli-guidance-version: 27)\n# Rivet\n\nRivet 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.\n\n**Bare `/rivet` invocation.** When the user invokes exactly `/rivet` with no additional request, immediately run `rivet open` for the current project without asking what they want to do. Keep the normal interactive browser behavior so the Rivet editor opens, then share the returned `editorUrl`.\n\n**Exit codes:** 0 ok \u00B7 1 operation failed (see `error.code`) \u00B7 2 usage error \u00B7 3 auth required \u00B7 4 no server for the project \u00B7 5 `rivet wait` timeout (work still pending or running \u2014 not a failure; the envelope's `state` says which).\n\n**Identify yourself (handoff).** Add these flags to every invocation so Rivet can attribute work: `--caller-agent claude|codex|cursor`, `--caller-model <your model>`, and `--caller-session <your chat session id>` when you have one. Human-direct invocations omit handoff flags. Never wrap or chain `rivet` with other commands (`&&`, pipes) \u2014 plain invocations are what the host allowlist covers.\n\n**Worker runtime (only when the user asks).** By default Rivet's workers run on the runtime matching your `--caller-agent`. When the user explicitly asks for a different one (\"use opus for the workers\", \"run workers on codex\"), pass `--worker-provider claude|codex|cursor` (and optionally `--worker-model <id>`) on `rivet variants start`. This spends on that provider's subscription, so never infer it \u2014 only relay a stated user choice. If the chosen provider's CLI is missing or logged out, the run degrades to host-path work with the reason in the envelope; relay it to the user.\n\n**Project path.** Prefer explicit `--project <absolute path>` on every command so follow-up chats attach to the same workspace. For an existing app, pass its repo/app root. For a fresh app, create or use an empty directory first, then open Rivet there and start variants with `--fresh`.\n\n**Browser behavior.** For interactive user workflows, run `rivet open` without `--no-browser` so the Rivet UI opens in the browser. Use `--no-browser` only for headless/background automation, CI/e2e checks, or when the user explicitly asks not to open a browser; in those cases, report the returned `editorUrl`.\n\n**MCP tools (opt-in).** If this host has Rivet MCP tools registered (`rivet_status`, `rivet_variants`, `rivet_design_context`, `rivet_login` \u2014 the user opted in via `rivet install --mcp`), prefer them over shelling out for status, variants, design-context, and sign-in work: they drive the same control plane and return the same JSON envelopes, without per-call process cost. Lifecycle stays CLI-only on purpose \u2014 `rivet open`, `rivet stop`, and `rivet wait` have no MCP tools. There is no blocking/watch tool either: start work with `rivet_variants`; if the result contains `nextAction.action=\"complete_host_variant_work\"`, execute it yourself with parallel subagents when available.\n\n## Commands\n\n- `rivet open [--project <path>] [--agent claude|codex|cursor] [--rivet-port N] [--user-port N] [--framework nextjs|vite|cra|remix|svelte|static] [--entry <path>] [--no-browser] [--no-git]` \u2014 start or attach the project's editor server (idempotent; returns `editorUrl`). It detects the app, attaches to an already-running dev server, or starts one from the app's standard `dev`/`start`/`serve`/`storybook` script when possible. Omit `--no-browser` for interactive work so the UI opens for the user.\n - **Attach, don't rebuild.** If the user's dev server is already running (including Storybook \u2014 component-library teams often run only Storybook), pass `--user-port <port>` to attach directly: this skips detection and never starts a second server. Auto-detection scans common ports (3000, 5173, 6006, \u2026), but an explicit `--user-port` is always the most reliable path \u2014 when in doubt, ask the user which port their app is on, or start the dev server yourself first and pass its port.\n - **Rivet never installs dependencies.** If `open` fails because the app's start command failed, the error carries the exact command and its output. YOU own the fix: diagnose the output, run the project's install yourself if dependencies are missing, or start the dev server yourself \u2014 then re-run `rivet open --user-port <port>`. Do not retry `rivet open` unchanged expecting a different result.\n- `rivet variants start --project <path> --instruction <text> [--run-label <text>] [--briefs <json>] [--count N] [--fidelity low|medium|high] [--element <selector>] [--files <json>] [--fresh] [--context-images <json>] [--reference-pages <json>] [--reference-videos <json>] [--target <sessionId>:<variantId>] [--worker-provider claude|codex|cursor] [--worker-model <id>]` \u2014 explore design directions. For existing-app and `--target` starts, agent invocations MUST pass an AI-authored 1\u20133 word batch label through `rivet_variants` `runLabel` or CLI `--run-label`, plus one AI-authored brief per direction; `briefs.length` sets the count. FRESH (`--fresh`) starts are different: OMIT briefs and run-label and pass `--count` \u2014 Rivet prepares all reference context and authors the directions server-side, which starts workers immediately. Use `--files` for already-known project paths and `--target` to Vary an existing direction. Returns a `workId` and `nextAction` after workspace provisioning.\n- `rivet variants complete <workId> --project <path> [--session <sessionId>] [--status succeeded|failed|cancelled] [--output <json>] [--error <message>]` \u2014 report one host-agent work item complete after you edit its assigned workspace. Static artifacts are read from disk; do not send them through `--output`.\n- `rivet wait <workId> --project <path> [--timeout <seconds>]` \u2014 bounded block until a work id settles (exit 5 on timeout; re-issue or check status).\n- `rivet status --project <path> [--watch]` \u2014 session, resolved runner, active run, and the variants snapshot. `--watch` streams NDJSON.\n- `rivet variants status --project <path>` / `rivet variants list --project <path> [--history]` \u2014 inspect live or past directions.\n- `rivet variants get <sessionId>:<variantId> --project <path>` \u2014 retrieve one exact variant, including its local artifact path or diff, from a reference copied by the editor.\n- `rivet variants commit <variantId> --project <path> [--session <id>]` \u2014 send the chosen direction to the project.\n- `rivet variants cancel <sessionId> --project <path>` \u2014 cancel a running variants session.\n- `rivet evidence capture --url <url>` \u2014 rendered design evidence (root variables, element styles, fonts) for a reference URL.\n- `rivet reference fetch <url>` \u2014 Pinterest / Are.na reference data via the user's connected account. Accepts full pin/board URLs and `pin.it` share links. Pinterest images are downloaded into `.rivet/references/` and returned as absolute paths (`data.images`, plus `local_path` per pin) \u2014 view them directly and pass them to variants via `--context-images` instead of relaying URLs. On failure the error message says exactly what to tell the user (e.g. save the pin to a board first).\n- `rivet auth status` \u2014 signed-in state. If `authenticated: false`: call the `rivet_login` MCP tool when this host has it \u2014 it opens a browser sign-in for the user and returns immediately; after they finish, retry the blocked action (the session is picked up automatically). Without MCP tools, tell the user to run `rivet login` themselves \u2014 never run login in your own terminal (it blocks waiting on the browser).\n- `rivet stop [--project <path>]` \u2014 stop the CLI-owned server.\n\n**Fidelity (capture the user's intent).** Design fidelity is a function of the authoring model, which correlates with latency \u2014 so the choice belongs to the user. On every `variants start` (CLI `--fidelity`, or the `rivet_variants` `fidelity` field), translate the user's ask into a fidelity level: `low` when they want speed or throwaway exploration (\"quick ideas\", \"rough sketches\", \"just show me options fast\") \u2014 sketch-grade workers, results in ~1.5\u20132 minutes; `high` when they want craft (\"polished\", \"pixel-perfect\", \"high fidelity\", \"final\", \"production-ready\", \"take your time\") \u2014 frontier-model authorship that can take a few minutes per direction. OMIT the flag when the user expressed no speed/quality intent \u2014 Rivet's default (`medium`) balances both. Never ask the user to pick a level; infer it from their words and mention the choice in your summary so they can redirect.\n\n## Typical flows\n\nBefore every agent-initiated EXISTING-APP or `--target` variants start, author a 1\u20133 word batch label plus one or more direction briefs as `[{\"label\":\"\u2026\",\"body\":\"\u2026\"}]`. (Fresh `--fresh` starts skip this entirely \u2014 see the fresh flow below.) The batch label summarizes the shared request and is passed through `runLabel` (MCP) or `--run-label` (CLI). Each brief `label` is an AI-authored direction title: 1\u20135 plain-English words naming what that direction concretely changes, not a vibe or numbered placeholder. Each `body` is a concise plain-English subtitle of at most 10 words describing that direction. Add an optional `notes` string per brief for richer implementation intent (design tokens, motion specs, constraints) \u2014 it is delivered verbatim to that direction's worker and never shown in UI chips. Use one brief for a single visualization when the user wants Rivet's visualization framework without divergent ideas. For multiple directions, make every brief meaningfully different. Pass the array through the `rivet_variants` `briefs` field or CLI `--briefs <json>`, and omit `--count` because the array length is authoritative. Human-direct CLI calls may omit the batch label and briefs and use Rivet's deterministic fallback.\n\nExisting app:\n1. `rivet open --project <path> --caller-agent cursor --caller-model <model> --caller-session <id>` \u2192 note `editorUrl`, `sessionId`, and `resolvedRunner`.\n2. Author a batch label and three distinct title/subtitle briefs, then call `rivet variants start --project <path> --instruction \"try three hero layouts\" --run-label \"Hero layouts\" --briefs '[{\"label\":\"Split hero\",\"body\":\"Moves supporting proof beside the primary call to action.\"},{\"label\":\"Layered hero\",\"body\":\"Stacks product imagery behind a compact centered headline.\"},{\"label\":\"Product-led hero\",\"body\":\"Lets the product preview dominate the opening composition.\"}]' --caller-agent cursor --caller-model <model> --caller-session <id>` \u2192 note `workId`.\n3. Rivet normally builds the directions with its OWN workers (the server executor): if the start response shows variants in flight but NO `nextAction`, do not implement anything \u2014 check `rivet status --project <path>` periodically (foreground waits only) until every variant is terminal, then present the results. Only when a response carries `nextAction.action=\"complete_host_variant_work\"` (executor unavailable on this machine) does the host implement, as follows. Each work item carries a server-authored `workerPrompt` pointing at its briefing file \u2014 the full packet (direction, mode contract, boundaries, completion command). Follow `nextAction.parallelism` exactly: one item \u2192 follow its `workerPrompt` yourself in the current host; multiple items \u2192 spawn every worker in that same turn as background subagents, passing each item's `workerPrompt` VERBATIM as the entire worker prompt \u2014 compose nothing, and never re-plan or elaborate briefs before spawning. When `nextAction.worker.agentType` is set (Claude Code: `rivet-worker`, installed by `rivet install` with tuned model/effort defaults), spawn each worker AS that subagent type; fall back to your default subagent type only if it is not registered. For `mode=\"vary\"` the workspace entry already contains the source direction's finished code: read it first, apply the requested delta with targeted `Edit` operations in place, and never rewrite or re-emit the full file \u2014 unchanged sections must remain untouched. For `workspace.kind=\"artifact_directory\"` the deliverable is `workspace.rootPath/workspace.entryPath` (write it in full only when it starts empty, i.e. `mode=\"create\"`); for `workspace.kind=\"git_worktree\"`, edit the app under `workspace.projectPath`.\n4. The briefing file ends with the item's exact `completeCommand`: the worker runs `rivet variants complete <workId> --project <path> --session <sessionId>` itself as its final step, the moment its workspace is done. Completions are never held back or batched by the coordinator \u2014 and because workers self-report, the coordinator does NOT poll status while workers run: check `rivet status` once after workers return (or on a single \u226560s wakeup), only to confirm terminal states and surface failures. Rivet reads static HTML from `workspace.entryPath` and captures git-worktree changes itself. Do not send inline HTML or repeat project context in the completion payload. If the result says `requeuedForRegeneration`, poll status for the renewed lease, address its QA summary, and complete that item once more. If a worker cannot complete it, use `--status failed --error <message>`.\n5. Show the user the `editorUrl` to compare directions; `rivet variants commit <variantId> --project <path>` when they pick one.\n\nFresh 0-to-1 (the fast path \u2014 go straight to the start call): create or use an empty directory, run `rivet open --project <path> ...`, then IMMEDIATELY run `rivet variants start --project <path> --fresh --instruction \"build a SaaS landing page\" --count 3 ...` with the user's references passed raw. OMIT `--briefs` and `--run-label`: Rivet authors the directions server-side, and every second you spend reading references or writing briefs delays the build. Pass local reference images via `--context-images '[\"/abs/path.png\"]'` (`rivet_variants` `contextImages`) \u2014 Rivet copies them into the run context and every worker views them natively. Pass reference page URLs via `--reference-pages '[\"https://example.com\"]'` (`referencePages`) \u2014 Rivet renders each page server-side for design evidence + a screenshot; never capture evidence or screenshot pages yourself. Pass local reference videos via `--reference-videos '[\"/abs/clip.mp4\"]'` (`referenceVideos`) \u2014 Rivet samples keyframes server-side; never run ffmpeg yourself. Never substitute a prose description of media you can pass directly.\n\nVary an existing direction: after status/list gives you `sessionId` and `variantId`, author a batch label and two distinct delta briefs by default, then run `rivet variants start --project <path> --target <sessionId>:<variantId> --instruction \"make this calmer\" --run-label \"Calmer direction\" --briefs '<json>' ...`. Include `--files '[\"src/known-target.tsx\"]'` when the relevant files are already known. Explicit briefs/counts remain authoritative.\n\nRivet owns orchestration; the host agent owns implementation. Do not wait for Rivet to spawn a separate agent. When `rivet variants start`, `rivet status`, `rivet_variants`, or `rivet_status` returns `nextAction.action=\"complete_host_variant_work\"`, complete those work items from the current host session. Avoid subagent startup for one item. For multiple items, spawn one background worker per isolated workspace in the same turn, and have each worker report its own completion immediately via its `completeCommand` (or `rivet_variants` action `complete`) \u2014 a variant's completion must never wait for its siblings.\n\n**Never cancel to unblock.** If `variants start` is rejected with `start_in_flight`, a start is still provisioning (status reports `variants.starting: true` \u2014 can take minutes); poll status and retry once it clears. If rejected with `active_session`, the user has live work: report the conflict and let them decide, or refine the active session with `--target`. Cancelling a session destroys the user's in-progress exploration \u2014 only do it when the user explicitly asks.\n";
|
|
10
10
|
//# sourceMappingURL=claude-skill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-skill.d.ts","sourceRoot":"","sources":["../../../src/utils/skills/claude-skill.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AAEH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAGvC,eAAO,MAAM,gBAAgB,UAAU,CAAC;AACxC,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"claude-skill.d.ts","sourceRoot":"","sources":["../../../src/utils/skills/claude-skill.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AAEH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAGvC,eAAO,MAAM,gBAAgB,UAAU,CAAC;AACxC,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,eAAO,MAAM,oBAAoB,i2gBAUhC,CAAC"}
|
|
@@ -7,7 +7,7 @@ const cli_guidance_1 = require("./cli-guidance");
|
|
|
7
7
|
* `~/.claude/skills/rivet/SKILL.md` by `rivet install claude`. The version
|
|
8
8
|
* marker gates rewrites so user edits are only replaced by newer guidance.
|
|
9
9
|
*/
|
|
10
|
-
exports.CLAUDE_SKILL_VERSION =
|
|
10
|
+
exports.CLAUDE_SKILL_VERSION = 52;
|
|
11
11
|
const CLAUDE_SKILL_VERSION_MARKER = `[//]: # (rivet-skill-version: ${exports.CLAUDE_SKILL_VERSION})`;
|
|
12
12
|
exports.CLAUDE_SKILL_DIR = 'rivet';
|
|
13
13
|
exports.CLAUDE_SKILL_FILENAME = 'SKILL.md';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* states the same contract — because guidance files are softer than
|
|
6
6
|
* registration: an agent can ignore them.
|
|
7
7
|
*/
|
|
8
|
-
export declare const CLI_GUIDANCE_VERSION =
|
|
9
|
-
export declare const 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.\n\n**Exit codes:** 0 ok \u00B7 1 operation failed (see `error.code`) \u00B7 2 usage error \u00B7 3 auth required \u00B7 4 no server for the project \u00B7 5 `rivet wait` timeout (work still pending or running \u2014 not a failure; the envelope's `state` says which).\n\n**Identify yourself (handoff).** Add these flags to every invocation so Rivet can attribute work: `--caller-agent claude|codex|cursor`, `--caller-model <your model>`, and `--caller-session <your chat session id>` when you have one. Human-direct invocations omit handoff flags. Never wrap or chain `rivet` with other commands (`&&`, pipes) \u2014 plain invocations are what the host allowlist covers.\n\n**Worker runtime (only when the user asks).** By default Rivet's workers run on the runtime matching your `--caller-agent`. When the user explicitly asks for a different one (\"use opus for the workers\", \"run workers on codex\"), pass `--worker-provider claude|codex|cursor` (and optionally `--worker-model <id>`) on `rivet variants start`. This spends on that provider's subscription, so never infer it \u2014 only relay a stated user choice. If the chosen provider's CLI is missing or logged out, the run degrades to host-path work with the reason in the envelope; relay it to the user.\n\n**Project path.** Prefer explicit `--project <absolute path>` on every command so follow-up chats attach to the same workspace. For an existing app, pass its repo/app root. For a fresh app, create or use an empty directory first, then open Rivet there and start variants with `--fresh`.\n\n**Browser behavior.** For interactive user workflows, run `rivet open` without `--no-browser` so the Rivet UI opens in the browser. Use `--no-browser` only for headless/background automation, CI/e2e checks, or when the user explicitly asks not to open a browser; in those cases, report the returned `editorUrl`.\n\n**MCP tools (opt-in).** If this host has Rivet MCP tools registered (`rivet_status`, `rivet_variants`, `rivet_design_context`, `rivet_login` \u2014 the user opted in via `rivet install --mcp`), prefer them over shelling out for status, variants, design-context, and sign-in work: they drive the same control plane and return the same JSON envelopes, without per-call process cost. Lifecycle stays CLI-only on purpose \u2014 `rivet open`, `rivet stop`, and `rivet wait` have no MCP tools. There is no blocking/watch tool either: start work with `rivet_variants`; if the result contains `nextAction.action=\"complete_host_variant_work\"`, execute it yourself with parallel subagents when available.\n\n## Commands\n\n- `rivet open [--project <path>] [--agent claude|codex|cursor] [--rivet-port N] [--user-port N] [--framework nextjs|vite|cra|remix|svelte|static] [--entry <path>] [--no-browser] [--no-git]` \u2014 start or attach the project's editor server (idempotent; returns `editorUrl`). It detects the app, attaches to an already-running dev server, or starts one from the app's standard `dev`/`start`/`serve`/`storybook` script when possible. Omit `--no-browser` for interactive work so the UI opens for the user.\n - **Attach, don't rebuild.** If the user's dev server is already running (including Storybook \u2014 component-library teams often run only Storybook), pass `--user-port <port>` to attach directly: this skips detection and never starts a second server. Auto-detection scans common ports (3000, 5173, 6006, \u2026), but an explicit `--user-port` is always the most reliable path \u2014 when in doubt, ask the user which port their app is on, or start the dev server yourself first and pass its port.\n - **Rivet never installs dependencies.** If `open` fails because the app's start command failed, the error carries the exact command and its output. YOU own the fix: diagnose the output, run the project's install yourself if dependencies are missing, or start the dev server yourself \u2014 then re-run `rivet open --user-port <port>`. Do not retry `rivet open` unchanged expecting a different result.\n- `rivet variants start --project <path> --instruction <text> [--run-label <text>] [--briefs <json>] [--count N] [--fidelity low|medium|high] [--element <selector>] [--files <json>] [--fresh] [--context-images <json>] [--reference-pages <json>] [--reference-videos <json>] [--target <sessionId>:<variantId>] [--worker-provider claude|codex|cursor] [--worker-model <id>]` \u2014 explore design directions. For existing-app and `--target` starts, agent invocations MUST pass an AI-authored 1\u20133 word batch label through `rivet_variants` `runLabel` or CLI `--run-label`, plus one AI-authored brief per direction; `briefs.length` sets the count. FRESH (`--fresh`) starts are different: OMIT briefs and run-label and pass `--count` \u2014 Rivet prepares all reference context and authors the directions server-side, which starts workers immediately. Use `--files` for already-known project paths and `--target` to Vary an existing direction. Returns a `workId` and `nextAction` after workspace provisioning.\n- `rivet variants complete <workId> --project <path> [--session <sessionId>] [--status succeeded|failed|cancelled] [--output <json>] [--error <message>]` \u2014 report one host-agent work item complete after you edit its assigned workspace. Static artifacts are read from disk; do not send them through `--output`.\n- `rivet wait <workId> --project <path> [--timeout <seconds>]` \u2014 bounded block until a work id settles (exit 5 on timeout; re-issue or check status).\n- `rivet status --project <path> [--watch]` \u2014 session, resolved runner, active run, and the variants snapshot. `--watch` streams NDJSON.\n- `rivet variants status --project <path>` / `rivet variants list --project <path> [--history]` \u2014 inspect live or past directions.\n- `rivet variants get <sessionId>:<variantId> --project <path>` \u2014 retrieve one exact variant, including its local artifact path or diff, from a reference copied by the editor.\n- `rivet variants commit <variantId> --project <path> [--session <id>]` \u2014 send the chosen direction to the project.\n- `rivet variants cancel <sessionId> --project <path>` \u2014 cancel a running variants session.\n- `rivet evidence capture --url <url>` \u2014 rendered design evidence (root variables, element styles, fonts) for a reference URL.\n- `rivet reference fetch <url>` \u2014 Pinterest / Are.na reference data via the user's connected account. Accepts full pin/board URLs and `pin.it` share links. Pinterest images are downloaded into `.rivet/references/` and returned as absolute paths (`data.images`, plus `local_path` per pin) \u2014 view them directly and pass them to variants via `--context-images` instead of relaying URLs. On failure the error message says exactly what to tell the user (e.g. save the pin to a board first).\n- `rivet auth status` \u2014 signed-in state. If `authenticated: false`: call the `rivet_login` MCP tool when this host has it \u2014 it opens a browser sign-in for the user and returns immediately; after they finish, retry the blocked action (the session is picked up automatically). Without MCP tools, tell the user to run `rivet login` themselves \u2014 never run login in your own terminal (it blocks waiting on the browser).\n- `rivet stop [--project <path>]` \u2014 stop the CLI-owned server.\n\n**Fidelity (capture the user's intent).** Design fidelity is a function of the authoring model, which correlates with latency \u2014 so the choice belongs to the user. On every `variants start` (CLI `--fidelity`, or the `rivet_variants` `fidelity` field), translate the user's ask into a fidelity level: `low` when they want speed or throwaway exploration (\"quick ideas\", \"rough sketches\", \"just show me options fast\") \u2014 sketch-grade workers, results in ~1.5\u20132 minutes; `high` when they want craft (\"polished\", \"pixel-perfect\", \"high fidelity\", \"final\", \"production-ready\", \"take your time\") \u2014 frontier-model authorship that can take a few minutes per direction. OMIT the flag when the user expressed no speed/quality intent \u2014 Rivet's default (`medium`) balances both. Never ask the user to pick a level; infer it from their words and mention the choice in your summary so they can redirect.\n\n## Typical flows\n\nBefore every agent-initiated EXISTING-APP or `--target` variants start, author a 1\u20133 word batch label plus one or more direction briefs as `[{\"label\":\"\u2026\",\"body\":\"\u2026\"}]`. (Fresh `--fresh` starts skip this entirely \u2014 see the fresh flow below.) The batch label summarizes the shared request and is passed through `runLabel` (MCP) or `--run-label` (CLI). Each brief `label` is an AI-authored direction title: 1\u20135 plain-English words naming what that direction concretely changes, not a vibe or numbered placeholder. Each `body` is a concise plain-English subtitle of at most 10 words describing that direction. Add an optional `notes` string per brief for richer implementation intent (design tokens, motion specs, constraints) \u2014 it is delivered verbatim to that direction's worker and never shown in UI chips. Use one brief for a single visualization when the user wants Rivet's visualization framework without divergent ideas. For multiple directions, make every brief meaningfully different. Pass the array through the `rivet_variants` `briefs` field or CLI `--briefs <json>`, and omit `--count` because the array length is authoritative. Human-direct CLI calls may omit the batch label and briefs and use Rivet's deterministic fallback.\n\nExisting app:\n1. `rivet open --project <path> --caller-agent cursor --caller-model <model> --caller-session <id>` \u2192 note `editorUrl`, `sessionId`, and `resolvedRunner`.\n2. Author a batch label and three distinct title/subtitle briefs, then call `rivet variants start --project <path> --instruction \"try three hero layouts\" --run-label \"Hero layouts\" --briefs '[{\"label\":\"Split hero\",\"body\":\"Moves supporting proof beside the primary call to action.\"},{\"label\":\"Layered hero\",\"body\":\"Stacks product imagery behind a compact centered headline.\"},{\"label\":\"Product-led hero\",\"body\":\"Lets the product preview dominate the opening composition.\"}]' --caller-agent cursor --caller-model <model> --caller-session <id>` \u2192 note `workId`.\n3. Rivet normally builds the directions with its OWN workers (the server executor): if the start response shows variants in flight but NO `nextAction`, do not implement anything \u2014 check `rivet status --project <path>` periodically (foreground waits only) until every variant is terminal, then present the results. Only when a response carries `nextAction.action=\"complete_host_variant_work\"` (executor unavailable on this machine) does the host implement, as follows. Each work item carries a server-authored `workerPrompt` pointing at its briefing file \u2014 the full packet (direction, mode contract, boundaries, completion command). Follow `nextAction.parallelism` exactly: one item \u2192 follow its `workerPrompt` yourself in the current host; multiple items \u2192 spawn every worker in that same turn as background subagents, passing each item's `workerPrompt` VERBATIM as the entire worker prompt \u2014 compose nothing, and never re-plan or elaborate briefs before spawning. When `nextAction.worker.agentType` is set (Claude Code: `rivet-worker`, installed by `rivet install` with tuned model/effort defaults), spawn each worker AS that subagent type; fall back to your default subagent type only if it is not registered. For `mode=\"vary\"` the workspace entry already contains the source direction's finished code: read it first, apply the requested delta with targeted `Edit` operations in place, and never rewrite or re-emit the full file \u2014 unchanged sections must remain untouched. For `workspace.kind=\"artifact_directory\"` the deliverable is `workspace.rootPath/workspace.entryPath` (write it in full only when it starts empty, i.e. `mode=\"create\"`); for `workspace.kind=\"git_worktree\"`, edit the app under `workspace.projectPath`.\n4. The briefing file ends with the item's exact `completeCommand`: the worker runs `rivet variants complete <workId> --project <path> --session <sessionId>` itself as its final step, the moment its workspace is done. Completions are never held back or batched by the coordinator \u2014 and because workers self-report, the coordinator does NOT poll status while workers run: check `rivet status` once after workers return (or on a single \u226560s wakeup), only to confirm terminal states and surface failures. Rivet reads static HTML from `workspace.entryPath` and captures git-worktree changes itself. Do not send inline HTML or repeat project context in the completion payload. If the result says `requeuedForRegeneration`, poll status for the renewed lease, address its QA summary, and complete that item once more. If a worker cannot complete it, use `--status failed --error <message>`.\n5. Show the user the `editorUrl` to compare directions; `rivet variants commit <variantId> --project <path>` when they pick one.\n\nFresh 0-to-1 (the fast path \u2014 go straight to the start call): create or use an empty directory, run `rivet open --project <path> ...`, then IMMEDIATELY run `rivet variants start --project <path> --fresh --instruction \"build a SaaS landing page\" --count 3 ...` with the user's references passed raw. OMIT `--briefs` and `--run-label`: Rivet authors the directions server-side, and every second you spend reading references or writing briefs delays the build. Pass local reference images via `--context-images '[\"/abs/path.png\"]'` (`rivet_variants` `contextImages`) \u2014 Rivet copies them into the run context and every worker views them natively. Pass reference page URLs via `--reference-pages '[\"https://example.com\"]'` (`referencePages`) \u2014 Rivet renders each page server-side for design evidence + a screenshot; never capture evidence or screenshot pages yourself. Pass local reference videos via `--reference-videos '[\"/abs/clip.mp4\"]'` (`referenceVideos`) \u2014 Rivet samples keyframes server-side; never run ffmpeg yourself. Never substitute a prose description of media you can pass directly.\n\nVary an existing direction: after status/list gives you `sessionId` and `variantId`, author a batch label and two distinct delta briefs by default, then run `rivet variants start --project <path> --target <sessionId>:<variantId> --instruction \"make this calmer\" --run-label \"Calmer direction\" --briefs '<json>' ...`. Include `--files '[\"src/known-target.tsx\"]'` when the relevant files are already known. Explicit briefs/counts remain authoritative.\n\nRivet owns orchestration; the host agent owns implementation. Do not wait for Rivet to spawn a separate agent. When `rivet variants start`, `rivet status`, `rivet_variants`, or `rivet_status` returns `nextAction.action=\"complete_host_variant_work\"`, complete those work items from the current host session. Avoid subagent startup for one item. For multiple items, spawn one background worker per isolated workspace in the same turn, and have each worker report its own completion immediately via its `completeCommand` (or `rivet_variants` action `complete`) \u2014 a variant's completion must never wait for its siblings.\n\n**Never cancel to unblock.** If `variants start` is rejected with `start_in_flight`, a start is still provisioning (status reports `variants.starting: true` \u2014 can take minutes); poll status and retry once it clears. If rejected with `active_session`, the user has live work: report the conflict and let them decide, or refine the active session with `--target`. Cancelling a session destroys the user's in-progress exploration \u2014 only do it when the user explicitly asks.";
|
|
8
|
+
export declare const CLI_GUIDANCE_VERSION = 27;
|
|
9
|
+
export declare const 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.\n\n**Bare `/rivet` invocation.** When the user invokes exactly `/rivet` with no additional request, immediately run `rivet open` for the current project without asking what they want to do. Keep the normal interactive browser behavior so the Rivet editor opens, then share the returned `editorUrl`.\n\n**Exit codes:** 0 ok \u00B7 1 operation failed (see `error.code`) \u00B7 2 usage error \u00B7 3 auth required \u00B7 4 no server for the project \u00B7 5 `rivet wait` timeout (work still pending or running \u2014 not a failure; the envelope's `state` says which).\n\n**Identify yourself (handoff).** Add these flags to every invocation so Rivet can attribute work: `--caller-agent claude|codex|cursor`, `--caller-model <your model>`, and `--caller-session <your chat session id>` when you have one. Human-direct invocations omit handoff flags. Never wrap or chain `rivet` with other commands (`&&`, pipes) \u2014 plain invocations are what the host allowlist covers.\n\n**Worker runtime (only when the user asks).** By default Rivet's workers run on the runtime matching your `--caller-agent`. When the user explicitly asks for a different one (\"use opus for the workers\", \"run workers on codex\"), pass `--worker-provider claude|codex|cursor` (and optionally `--worker-model <id>`) on `rivet variants start`. This spends on that provider's subscription, so never infer it \u2014 only relay a stated user choice. If the chosen provider's CLI is missing or logged out, the run degrades to host-path work with the reason in the envelope; relay it to the user.\n\n**Project path.** Prefer explicit `--project <absolute path>` on every command so follow-up chats attach to the same workspace. For an existing app, pass its repo/app root. For a fresh app, create or use an empty directory first, then open Rivet there and start variants with `--fresh`.\n\n**Browser behavior.** For interactive user workflows, run `rivet open` without `--no-browser` so the Rivet UI opens in the browser. Use `--no-browser` only for headless/background automation, CI/e2e checks, or when the user explicitly asks not to open a browser; in those cases, report the returned `editorUrl`.\n\n**MCP tools (opt-in).** If this host has Rivet MCP tools registered (`rivet_status`, `rivet_variants`, `rivet_design_context`, `rivet_login` \u2014 the user opted in via `rivet install --mcp`), prefer them over shelling out for status, variants, design-context, and sign-in work: they drive the same control plane and return the same JSON envelopes, without per-call process cost. Lifecycle stays CLI-only on purpose \u2014 `rivet open`, `rivet stop`, and `rivet wait` have no MCP tools. There is no blocking/watch tool either: start work with `rivet_variants`; if the result contains `nextAction.action=\"complete_host_variant_work\"`, execute it yourself with parallel subagents when available.\n\n## Commands\n\n- `rivet open [--project <path>] [--agent claude|codex|cursor] [--rivet-port N] [--user-port N] [--framework nextjs|vite|cra|remix|svelte|static] [--entry <path>] [--no-browser] [--no-git]` \u2014 start or attach the project's editor server (idempotent; returns `editorUrl`). It detects the app, attaches to an already-running dev server, or starts one from the app's standard `dev`/`start`/`serve`/`storybook` script when possible. Omit `--no-browser` for interactive work so the UI opens for the user.\n - **Attach, don't rebuild.** If the user's dev server is already running (including Storybook \u2014 component-library teams often run only Storybook), pass `--user-port <port>` to attach directly: this skips detection and never starts a second server. Auto-detection scans common ports (3000, 5173, 6006, \u2026), but an explicit `--user-port` is always the most reliable path \u2014 when in doubt, ask the user which port their app is on, or start the dev server yourself first and pass its port.\n - **Rivet never installs dependencies.** If `open` fails because the app's start command failed, the error carries the exact command and its output. YOU own the fix: diagnose the output, run the project's install yourself if dependencies are missing, or start the dev server yourself \u2014 then re-run `rivet open --user-port <port>`. Do not retry `rivet open` unchanged expecting a different result.\n- `rivet variants start --project <path> --instruction <text> [--run-label <text>] [--briefs <json>] [--count N] [--fidelity low|medium|high] [--element <selector>] [--files <json>] [--fresh] [--context-images <json>] [--reference-pages <json>] [--reference-videos <json>] [--target <sessionId>:<variantId>] [--worker-provider claude|codex|cursor] [--worker-model <id>]` \u2014 explore design directions. For existing-app and `--target` starts, agent invocations MUST pass an AI-authored 1\u20133 word batch label through `rivet_variants` `runLabel` or CLI `--run-label`, plus one AI-authored brief per direction; `briefs.length` sets the count. FRESH (`--fresh`) starts are different: OMIT briefs and run-label and pass `--count` \u2014 Rivet prepares all reference context and authors the directions server-side, which starts workers immediately. Use `--files` for already-known project paths and `--target` to Vary an existing direction. Returns a `workId` and `nextAction` after workspace provisioning.\n- `rivet variants complete <workId> --project <path> [--session <sessionId>] [--status succeeded|failed|cancelled] [--output <json>] [--error <message>]` \u2014 report one host-agent work item complete after you edit its assigned workspace. Static artifacts are read from disk; do not send them through `--output`.\n- `rivet wait <workId> --project <path> [--timeout <seconds>]` \u2014 bounded block until a work id settles (exit 5 on timeout; re-issue or check status).\n- `rivet status --project <path> [--watch]` \u2014 session, resolved runner, active run, and the variants snapshot. `--watch` streams NDJSON.\n- `rivet variants status --project <path>` / `rivet variants list --project <path> [--history]` \u2014 inspect live or past directions.\n- `rivet variants get <sessionId>:<variantId> --project <path>` \u2014 retrieve one exact variant, including its local artifact path or diff, from a reference copied by the editor.\n- `rivet variants commit <variantId> --project <path> [--session <id>]` \u2014 send the chosen direction to the project.\n- `rivet variants cancel <sessionId> --project <path>` \u2014 cancel a running variants session.\n- `rivet evidence capture --url <url>` \u2014 rendered design evidence (root variables, element styles, fonts) for a reference URL.\n- `rivet reference fetch <url>` \u2014 Pinterest / Are.na reference data via the user's connected account. Accepts full pin/board URLs and `pin.it` share links. Pinterest images are downloaded into `.rivet/references/` and returned as absolute paths (`data.images`, plus `local_path` per pin) \u2014 view them directly and pass them to variants via `--context-images` instead of relaying URLs. On failure the error message says exactly what to tell the user (e.g. save the pin to a board first).\n- `rivet auth status` \u2014 signed-in state. If `authenticated: false`: call the `rivet_login` MCP tool when this host has it \u2014 it opens a browser sign-in for the user and returns immediately; after they finish, retry the blocked action (the session is picked up automatically). Without MCP tools, tell the user to run `rivet login` themselves \u2014 never run login in your own terminal (it blocks waiting on the browser).\n- `rivet stop [--project <path>]` \u2014 stop the CLI-owned server.\n\n**Fidelity (capture the user's intent).** Design fidelity is a function of the authoring model, which correlates with latency \u2014 so the choice belongs to the user. On every `variants start` (CLI `--fidelity`, or the `rivet_variants` `fidelity` field), translate the user's ask into a fidelity level: `low` when they want speed or throwaway exploration (\"quick ideas\", \"rough sketches\", \"just show me options fast\") \u2014 sketch-grade workers, results in ~1.5\u20132 minutes; `high` when they want craft (\"polished\", \"pixel-perfect\", \"high fidelity\", \"final\", \"production-ready\", \"take your time\") \u2014 frontier-model authorship that can take a few minutes per direction. OMIT the flag when the user expressed no speed/quality intent \u2014 Rivet's default (`medium`) balances both. Never ask the user to pick a level; infer it from their words and mention the choice in your summary so they can redirect.\n\n## Typical flows\n\nBefore every agent-initiated EXISTING-APP or `--target` variants start, author a 1\u20133 word batch label plus one or more direction briefs as `[{\"label\":\"\u2026\",\"body\":\"\u2026\"}]`. (Fresh `--fresh` starts skip this entirely \u2014 see the fresh flow below.) The batch label summarizes the shared request and is passed through `runLabel` (MCP) or `--run-label` (CLI). Each brief `label` is an AI-authored direction title: 1\u20135 plain-English words naming what that direction concretely changes, not a vibe or numbered placeholder. Each `body` is a concise plain-English subtitle of at most 10 words describing that direction. Add an optional `notes` string per brief for richer implementation intent (design tokens, motion specs, constraints) \u2014 it is delivered verbatim to that direction's worker and never shown in UI chips. Use one brief for a single visualization when the user wants Rivet's visualization framework without divergent ideas. For multiple directions, make every brief meaningfully different. Pass the array through the `rivet_variants` `briefs` field or CLI `--briefs <json>`, and omit `--count` because the array length is authoritative. Human-direct CLI calls may omit the batch label and briefs and use Rivet's deterministic fallback.\n\nExisting app:\n1. `rivet open --project <path> --caller-agent cursor --caller-model <model> --caller-session <id>` \u2192 note `editorUrl`, `sessionId`, and `resolvedRunner`.\n2. Author a batch label and three distinct title/subtitle briefs, then call `rivet variants start --project <path> --instruction \"try three hero layouts\" --run-label \"Hero layouts\" --briefs '[{\"label\":\"Split hero\",\"body\":\"Moves supporting proof beside the primary call to action.\"},{\"label\":\"Layered hero\",\"body\":\"Stacks product imagery behind a compact centered headline.\"},{\"label\":\"Product-led hero\",\"body\":\"Lets the product preview dominate the opening composition.\"}]' --caller-agent cursor --caller-model <model> --caller-session <id>` \u2192 note `workId`.\n3. Rivet normally builds the directions with its OWN workers (the server executor): if the start response shows variants in flight but NO `nextAction`, do not implement anything \u2014 check `rivet status --project <path>` periodically (foreground waits only) until every variant is terminal, then present the results. Only when a response carries `nextAction.action=\"complete_host_variant_work\"` (executor unavailable on this machine) does the host implement, as follows. Each work item carries a server-authored `workerPrompt` pointing at its briefing file \u2014 the full packet (direction, mode contract, boundaries, completion command). Follow `nextAction.parallelism` exactly: one item \u2192 follow its `workerPrompt` yourself in the current host; multiple items \u2192 spawn every worker in that same turn as background subagents, passing each item's `workerPrompt` VERBATIM as the entire worker prompt \u2014 compose nothing, and never re-plan or elaborate briefs before spawning. When `nextAction.worker.agentType` is set (Claude Code: `rivet-worker`, installed by `rivet install` with tuned model/effort defaults), spawn each worker AS that subagent type; fall back to your default subagent type only if it is not registered. For `mode=\"vary\"` the workspace entry already contains the source direction's finished code: read it first, apply the requested delta with targeted `Edit` operations in place, and never rewrite or re-emit the full file \u2014 unchanged sections must remain untouched. For `workspace.kind=\"artifact_directory\"` the deliverable is `workspace.rootPath/workspace.entryPath` (write it in full only when it starts empty, i.e. `mode=\"create\"`); for `workspace.kind=\"git_worktree\"`, edit the app under `workspace.projectPath`.\n4. The briefing file ends with the item's exact `completeCommand`: the worker runs `rivet variants complete <workId> --project <path> --session <sessionId>` itself as its final step, the moment its workspace is done. Completions are never held back or batched by the coordinator \u2014 and because workers self-report, the coordinator does NOT poll status while workers run: check `rivet status` once after workers return (or on a single \u226560s wakeup), only to confirm terminal states and surface failures. Rivet reads static HTML from `workspace.entryPath` and captures git-worktree changes itself. Do not send inline HTML or repeat project context in the completion payload. If the result says `requeuedForRegeneration`, poll status for the renewed lease, address its QA summary, and complete that item once more. If a worker cannot complete it, use `--status failed --error <message>`.\n5. Show the user the `editorUrl` to compare directions; `rivet variants commit <variantId> --project <path>` when they pick one.\n\nFresh 0-to-1 (the fast path \u2014 go straight to the start call): create or use an empty directory, run `rivet open --project <path> ...`, then IMMEDIATELY run `rivet variants start --project <path> --fresh --instruction \"build a SaaS landing page\" --count 3 ...` with the user's references passed raw. OMIT `--briefs` and `--run-label`: Rivet authors the directions server-side, and every second you spend reading references or writing briefs delays the build. Pass local reference images via `--context-images '[\"/abs/path.png\"]'` (`rivet_variants` `contextImages`) \u2014 Rivet copies them into the run context and every worker views them natively. Pass reference page URLs via `--reference-pages '[\"https://example.com\"]'` (`referencePages`) \u2014 Rivet renders each page server-side for design evidence + a screenshot; never capture evidence or screenshot pages yourself. Pass local reference videos via `--reference-videos '[\"/abs/clip.mp4\"]'` (`referenceVideos`) \u2014 Rivet samples keyframes server-side; never run ffmpeg yourself. Never substitute a prose description of media you can pass directly.\n\nVary an existing direction: after status/list gives you `sessionId` and `variantId`, author a batch label and two distinct delta briefs by default, then run `rivet variants start --project <path> --target <sessionId>:<variantId> --instruction \"make this calmer\" --run-label \"Calmer direction\" --briefs '<json>' ...`. Include `--files '[\"src/known-target.tsx\"]'` when the relevant files are already known. Explicit briefs/counts remain authoritative.\n\nRivet owns orchestration; the host agent owns implementation. Do not wait for Rivet to spawn a separate agent. When `rivet variants start`, `rivet status`, `rivet_variants`, or `rivet_status` returns `nextAction.action=\"complete_host_variant_work\"`, complete those work items from the current host session. Avoid subagent startup for one item. For multiple items, spawn one background worker per isolated workspace in the same turn, and have each worker report its own completion immediately via its `completeCommand` (or `rivet_variants` action `complete`) \u2014 a variant's completion must never wait for its siblings.\n\n**Never cancel to unblock.** If `variants start` is rejected with `start_in_flight`, a start is still provisioning (status reports `variants.starting: true` \u2014 can take minutes); poll status and retry once it clears. If rejected with `active_session`, the user has live work: report the conflict and let them decide, or refine the active session with `--target`. Cancelling a session destroys the user's in-progress exploration \u2014 only do it when the user explicitly asks.";
|
|
10
10
|
/** One-line description used in host frontmatter/description fields. */
|
|
11
11
|
export declare const CLI_GUIDANCE_DESCRIPTION = "Rivet \u2014 explore multiple design directions for your web app (\"/rivet\", \"use rivet\", \"explore with rivet\", \"create variants of X\", \"show me options for X\", \"open rivet\", \"open the visual editor\"). Drive it with `rivet` CLI commands.";
|
|
12
12
|
//# sourceMappingURL=cli-guidance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-guidance.d.ts","sourceRoot":"","sources":["../../../src/utils/skills/cli-guidance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"cli-guidance.d.ts","sourceRoot":"","sources":["../../../src/utils/skills/cli-guidance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,eAAO,MAAM,iBAAiB,q+fAqDmc,CAAC;AAEle,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,+PACsM,CAAC"}
|