rivet-design 0.11.7 → 0.11.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/config/flags.d.ts +3 -0
  2. package/dist/config/flags.d.ts.map +1 -1
  3. package/dist/config/flags.js +1 -0
  4. package/dist/config/flags.js.map +1 -1
  5. package/dist/index.d.ts +1 -8
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +96 -590
  8. package/dist/index.js.map +1 -1
  9. package/dist/install/harnesses.d.ts +82 -0
  10. package/dist/install/harnesses.d.ts.map +1 -0
  11. package/dist/install/harnesses.js +537 -0
  12. package/dist/install/harnesses.js.map +1 -0
  13. package/dist/mcp/agent-variants/WorktreeOrchestrator.d.ts +25 -0
  14. package/dist/mcp/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
  15. package/dist/mcp/agent-variants/WorktreeOrchestrator.js +121 -0
  16. package/dist/mcp/agent-variants/WorktreeOrchestrator.js.map +1 -1
  17. package/dist/mcp/auth/tools.d.ts.map +1 -1
  18. package/dist/mcp/auth/tools.js +63 -12
  19. package/dist/mcp/auth/tools.js.map +1 -1
  20. package/dist/mcp/server.d.ts.map +1 -1
  21. package/dist/mcp/server.js +2 -7
  22. package/dist/mcp/server.js.map +1 -1
  23. package/dist/onboarding/signin.d.ts +31 -0
  24. package/dist/onboarding/signin.d.ts.map +1 -0
  25. package/dist/onboarding/signin.js +235 -0
  26. package/dist/onboarding/signin.js.map +1 -0
  27. package/dist/routes/agentVariants.d.ts.map +1 -1
  28. package/dist/routes/agentVariants.js +528 -72
  29. package/dist/routes/agentVariants.js.map +1 -1
  30. package/dist/services/PrototypeDeployService.d.ts +2 -0
  31. package/dist/services/PrototypeDeployService.d.ts.map +1 -1
  32. package/dist/services/PrototypeDeployService.js +6 -0
  33. package/dist/services/PrototypeDeployService.js.map +1 -1
  34. package/dist/services/TelemetryService.d.ts +70 -0
  35. package/dist/services/TelemetryService.d.ts.map +1 -1
  36. package/dist/services/TelemetryService.js +85 -0
  37. package/dist/services/TelemetryService.js.map +1 -1
  38. package/dist/services/VariantHistoryService.d.ts +18 -0
  39. package/dist/services/VariantHistoryService.d.ts.map +1 -1
  40. package/dist/services/VariantHistoryService.js +27 -3
  41. package/dist/services/VariantHistoryService.js.map +1 -1
  42. package/package.json +2 -1
  43. package/src/ui/dist/assets/main-BtohezP4.js +641 -0
  44. package/src/ui/dist/assets/{main-CtRINpOq.css → main-IY99De7M.css} +1 -1
  45. package/src/ui/dist/index.html +2 -2
  46. package/src/ui/dist/assets/main-DM4pFbJk.js +0 -641
@@ -0,0 +1,235 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.buildSignInApp = void 0;
40
+ exports.runSignIn = runSignIn;
41
+ /* eslint-disable no-console */
42
+ const express_1 = __importDefault(require("express"));
43
+ const fs_1 = __importDefault(require("fs"));
44
+ const path_1 = __importDefault(require("path"));
45
+ const ConfigManager_1 = require("../services/ConfigManager");
46
+ const AuthService_1 = require("../services/AuthService");
47
+ const portUtils_1 = require("../utils/portUtils");
48
+ const server_1 = require("../server");
49
+ /**
50
+ * Interactive sign-in / account creation that opens Rivet's own UI rather than
51
+ * shelling straight to Google.
52
+ *
53
+ * We stand up a *minimal, loopback-only* HTTP server that serves just the
54
+ * bundled Rivet UI plus the two endpoints sign-in needs (`/api/config` so the
55
+ * UI renders its sign-in screen, and `/api/auth/store` so the browser OAuth can
56
+ * hand us the token). We deliberately do NOT boot the full Rivet server here:
57
+ * that would depend on the project's static entry file and would mount
58
+ * unauthenticated project-mutation routes (e.g. apply-variant-diff) on a
59
+ * network-facing port. This server binds to `localhost` (loopback only — never
60
+ * the machine's LAN address) and exposes nothing but the auth UI.
61
+ *
62
+ * The browser flow itself (popup → Google → token) is the same one the in-app
63
+ * sign-in gate already runs; it POSTs the token to `/api/auth/store`. On
64
+ * success the UI reloads the page, so once the token is stored we serve a small
65
+ * standalone "signed in" page (rather than the React gate again) and keep the
66
+ * server up briefly so that reload lands before we shut down.
67
+ */
68
+ // Loopback host used for both binding and the URL we open. `localhost` keeps
69
+ // the server off the network (it never resolves to a LAN IP) while reading more
70
+ // familiarly than 127.0.0.1; binding and connecting by the same name also
71
+ // avoids any IPv4/IPv6 loopback mismatch.
72
+ const LOOPBACK_HOST = 'localhost';
73
+ const SIGNIN_BASE_PORT = 4000;
74
+ const DEFAULT_TIMEOUT_MS = 5 * 60 * 1000;
75
+ // After the token is stored the browser reloads; keep the server alive long
76
+ // enough for that reload to fetch the "signed in" page before we close.
77
+ const SIGNED_IN_GRACE_MS = 2500;
78
+ const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
79
+ const SIGNED_IN_PAGE = `<!doctype html>
80
+ <html><head><meta charset="utf-8"><title>Signed in to Rivet</title>
81
+ <style>
82
+ html,body{height:100%;margin:0}
83
+ body{display:flex;align-items:center;justify-content:center;background:#1c1c20;color:#fff;
84
+ font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
85
+ .card{text-align:center}
86
+ .check{font-size:40px;line-height:1}
87
+ h1{font-size:20px;font-weight:500;margin:16px 0 6px}
88
+ p{font-size:14px;color:rgba(255,255,255,.6);margin:0}
89
+ </style></head>
90
+ <body><div class="card">
91
+ <div class="check">✓</div>
92
+ <h1>You're signed in to Rivet</h1>
93
+ <p>You can close this tab and return to your terminal.</p>
94
+ </div></body></html>`;
95
+ /**
96
+ * Build the minimal loopback sign-in app. Before a token is stored it serves
97
+ * the Rivet sign-in UI; once stored, it serves a standalone "signed in" page so
98
+ * the UI's post-login reload doesn't show the sign-in gate again.
99
+ */
100
+ const buildSignInApp = (deps) => {
101
+ const app = (0, express_1.default)();
102
+ app.use(express_1.default.json());
103
+ const uiAssets = express_1.default.static(path_1.default.join(server_1.DIST_UI_PATH, 'assets'));
104
+ const uiFonts = express_1.default.static(path_1.default.join(server_1.DIST_UI_PATH, 'fonts'));
105
+ app.use('/assets', uiAssets);
106
+ app.use('/rivet/assets', uiAssets);
107
+ app.use('/fonts', uiFonts);
108
+ app.use('/rivet/fonts', uiFonts);
109
+ app.get(['/rivet/favicon.ico', '/favicon.ico'], (_req, res) => {
110
+ res.sendFile('favicon.ico', { root: server_1.DIST_UI_PATH });
111
+ });
112
+ // Config drives the UI gate. `agentModeAvailable` flips true once the token
113
+ // is stored so a stray config refetch doesn't re-show the sign-in screen.
114
+ app.get('/api/config', (_req, res) => {
115
+ res.json({
116
+ agentModeAvailable: deps.isStored(),
117
+ isMCPSession: false,
118
+ mcpEditor: null,
119
+ projectPath: '',
120
+ demoMode: false,
121
+ });
122
+ });
123
+ // Receive the token from the browser OAuth flow and persist it locally.
124
+ app.post('/api/auth/store', (req, res) => {
125
+ const { email, token, refreshToken, userId } = req.body ?? {};
126
+ if (!email || !token) {
127
+ return res.status(400).json({ error: 'Missing email or token' });
128
+ }
129
+ try {
130
+ (0, ConfigManager_1.getConfigManager)().setAuth(token, email, refreshToken, userId);
131
+ }
132
+ catch {
133
+ return res.status(500).json({ error: 'Failed to store auth credentials' });
134
+ }
135
+ deps.onStored();
136
+ res.json({ success: true });
137
+ });
138
+ // Serve the Rivet UI for /rivet and any client-side route under it. After the
139
+ // token is stored (the UI reloads on success), serve a standalone confirmation
140
+ // page instead of the React app so the gate isn't shown again.
141
+ app.get(/^\/rivet(?:\/.*)?$/, (_req, res) => {
142
+ res.setHeader('Cache-Control', 'no-store');
143
+ if (deps.isStored()) {
144
+ res.type('html').send(SIGNED_IN_PAGE);
145
+ return;
146
+ }
147
+ const html = fs_1.default.readFileSync(path_1.default.join(server_1.DIST_UI_PATH, 'index.html'), 'utf8');
148
+ res
149
+ .type('html')
150
+ .send((0, server_1.injectRivetUiBootstrap)(html, { agentApplyMode: null, queueAccessToken: null }));
151
+ });
152
+ return app;
153
+ };
154
+ exports.buildSignInApp = buildSignInApp;
155
+ const closeServer = (server) => new Promise((resolve) => {
156
+ server.close(() => resolve());
157
+ // Drop idle keep-alive sockets so close() doesn't hang (Node 18.2+).
158
+ server.closeAllConnections?.();
159
+ });
160
+ async function runSignIn(opts = {}) {
161
+ const configManager = (0, ConfigManager_1.getConfigManager)();
162
+ // Validate the on-disk token (refreshing if stale) rather than trusting its
163
+ // mere presence — a revoked/expired token must NOT short-circuit a sign-in.
164
+ const alreadyValid = await new AuthService_1.AuthService().ensureAuthenticated();
165
+ if (alreadyValid) {
166
+ const email = configManager.getEmail();
167
+ console.log(`\n✓ You're already signed in${email ? ` as ${email}` : ''}.`);
168
+ if (opts.nextStepHint)
169
+ console.log(opts.nextStepHint);
170
+ return { ok: true, alreadySignedIn: true, email };
171
+ }
172
+ const port = await (0, portUtils_1.findAvailablePort)(SIGNIN_BASE_PORT);
173
+ let stored = false;
174
+ let signalStored = () => { };
175
+ const storedSignal = new Promise((resolve) => {
176
+ signalStored = resolve;
177
+ });
178
+ const app = (0, exports.buildSignInApp)({
179
+ isStored: () => stored,
180
+ onStored: () => {
181
+ stored = true;
182
+ signalStored();
183
+ },
184
+ });
185
+ let server;
186
+ try {
187
+ server = await new Promise((resolve, reject) => {
188
+ const s = app.listen(port, LOOPBACK_HOST, () => resolve(s));
189
+ s.on('error', reject);
190
+ });
191
+ }
192
+ catch (err) {
193
+ const message = err instanceof Error ? err.message : String(err);
194
+ console.log(`\nCould not open the Rivet sign-in page: ${message}`);
195
+ console.log('You can sign in any time by running `rivet login`.\n');
196
+ return { ok: false };
197
+ }
198
+ const signInUrl = `http://${LOOPBACK_HOST}:${port}/rivet`;
199
+ console.log('\nOpening Rivet to sign in...');
200
+ console.log(`If your browser doesn't open, visit:\n ${signInUrl}\n`);
201
+ if (!opts.noBrowser) {
202
+ try {
203
+ const open = (await Promise.resolve().then(() => __importStar(require('open')))).default;
204
+ await open(signInUrl);
205
+ }
206
+ catch {
207
+ // Browser couldn't be opened automatically — the printed URL is the fallback.
208
+ }
209
+ }
210
+ // Resolve as soon as the browser stores a token, or when we time out. Using an
211
+ // event (not a poll) means a store that lands mid-wait is never missed.
212
+ const timeoutMs = opts.timeoutMs ?? DEFAULT_TIMEOUT_MS;
213
+ let timeoutHandle;
214
+ const timeoutSignal = new Promise((resolve) => {
215
+ timeoutHandle = setTimeout(resolve, timeoutMs);
216
+ });
217
+ await Promise.race([storedSignal, timeoutSignal]);
218
+ if (timeoutHandle)
219
+ clearTimeout(timeoutHandle);
220
+ if (stored) {
221
+ // Keep serving briefly so the UI's post-login reload lands on the signed-in
222
+ // page, then shut down.
223
+ await delay(SIGNED_IN_GRACE_MS);
224
+ await closeServer(server);
225
+ const email = configManager.getEmail();
226
+ console.log(`\n✓ Signed in${email ? ` as ${email}` : ''}.`);
227
+ if (opts.nextStepHint)
228
+ console.log(opts.nextStepHint);
229
+ return { ok: true, email };
230
+ }
231
+ await closeServer(server);
232
+ console.log('\nSign-in timed out. You can try again any time by running `rivet login`.\n');
233
+ return { ok: false, timedOut: true };
234
+ }
235
+ //# sourceMappingURL=signin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signin.js","sourceRoot":"","sources":["../../src/onboarding/signin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6JA,8BAkFC;AA/OD,+BAA+B;AAC/B,sDAA8B;AAC9B,4CAAoB;AACpB,gDAAwB;AAExB,6DAA6D;AAC7D,yDAAsD;AACtD,kDAAuD;AACvD,sCAAiE;AAEjE;;;;;;;;;;;;;;;;;;GAkBG;AAEH,6EAA6E;AAC7E,gFAAgF;AAChF,0EAA0E;AAC1E,0CAA0C;AAC1C,MAAM,aAAa,GAAG,WAAW,CAAC;AAClC,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AACzC,4EAA4E;AAC5E,wEAAwE;AACxE,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAWhC,MAAM,KAAK,GAAG,CAAC,EAAU,EAAiB,EAAE,CAC1C,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAWpD,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;qBAeF,CAAC;AAStB;;;;GAIG;AACI,MAAM,cAAc,GAAG,CAAC,IAAmB,EAAmB,EAAE;IACrE,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;IACtB,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IAExB,MAAM,Q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