@engenty/wizards-runtime 0.11.10 → 0.11.12

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 (58) hide show
  1. package/apps/runtime/dist/app.js +2 -1
  2. package/apps/runtime/dist/auth/impersonation.js +33 -0
  3. package/apps/runtime/dist/auth/index.js +30 -5
  4. package/apps/runtime/dist/db/control-schema.js +3 -0
  5. package/apps/runtime/dist/db/migrations/control/0013_session_impersonated_by.sql +2 -0
  6. package/apps/runtime/dist/db/migrations/control/meta/0013_snapshot.json +621 -0
  7. package/apps/runtime/dist/db/migrations/control/meta/_journal.json +7 -0
  8. package/apps/runtime/dist/db/migrations/tenant/0026_run_impersonated_by.sql +1 -0
  9. package/apps/runtime/dist/db/migrations/tenant/meta/0026_snapshot.json +3966 -0
  10. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +7 -0
  11. package/apps/runtime/dist/db/schema.js +2 -0
  12. package/apps/runtime/dist/engine/runner.js +6 -3
  13. package/apps/runtime/dist/manage.js +14 -0
  14. package/apps/runtime/dist/routes/runs.js +18 -7
  15. package/apps/runtime/dist/routes/studio.js +4 -0
  16. package/apps/runtime/dist/services/runs.js +1 -0
  17. package/apps/runtime/dist/sharing/index.js +1 -0
  18. package/apps/runtime/dist/texts.js +2 -0
  19. package/apps/web/dist/assets/{AboutDialog-B977nb5s.js → AboutDialog-DKGBCS3o.js} +1 -1
  20. package/apps/web/dist/assets/{ChangelogDialog-Cr8xpIg8.js → ChangelogDialog-Dc66LqBg.js} +1 -1
  21. package/apps/web/dist/assets/{CodeEditor-ydfkafOX.js → CodeEditor-BijLsoJX.js} +1 -1
  22. package/apps/web/dist/assets/{EditorPage-EiFNUeb4.js → EditorPage-CWtOGKs7.js} +3 -3
  23. package/apps/web/dist/assets/{FlowPreview-CPEK110v.js → FlowPreview-Wjt28MdG.js} +1 -1
  24. package/apps/web/dist/assets/{Harness-BC7YiDiT.js → Harness-CdmCoeEZ.js} +1 -1
  25. package/apps/web/dist/assets/{Marketplace-_IfcAgYO.js → Marketplace-CpjRqTvn.js} +2 -2
  26. package/apps/web/dist/assets/{NewWizardChannels-Cc_O2-x9.js → NewWizardChannels-g3CJzwr5.js} +1 -1
  27. package/apps/web/dist/assets/{NewWizardPage-DDA9LQk3.js → NewWizardPage-DGHwvXLf.js} +1 -1
  28. package/apps/web/dist/assets/{OnboardingPage-BIuuPj6E.js → OnboardingPage-CoCBYKvL.js} +1 -1
  29. package/apps/web/dist/assets/{PreviewPane-BqtqqkZT.js → PreviewPane-BgIEsVjy.js} +5 -5
  30. package/apps/web/dist/assets/{ProjectPage-DeR6n1is.js → ProjectPage-Cmhm9qh1.js} +1 -1
  31. package/apps/web/dist/assets/PublicRunner-C7i0QdlT.js +1 -0
  32. package/apps/web/dist/assets/{ReadOnly-CHxHxo7b.js → ReadOnly-C3SYrBNk.js} +1 -1
  33. package/apps/web/dist/assets/SettingsPage-Ctul7RLy.js +2 -0
  34. package/apps/web/dist/assets/SetupPage-CuuQVDH2.js +1 -0
  35. package/apps/web/dist/assets/{SharePage-B9HmNcHr.js → SharePage-BDeYhYRB.js} +1 -1
  36. package/apps/web/dist/assets/changelog-BXyvVCpB.js +1 -0
  37. package/apps/web/dist/assets/{i18n-BX8GnEZT.js → i18n-BYeH2Dmi.js} +1 -1
  38. package/apps/web/dist/assets/index-C0yASttP.js +34 -0
  39. package/apps/web/dist/assets/{phone-Dd7IVbpJ.js → phone-JGS60FQU.js} +1 -1
  40. package/apps/web/dist/assets/{runners-XifDCQG3.js → runners-CwTP03YR.js} +1 -1
  41. package/apps/web/dist/assets/{session-BwtsznZF.js → session-CngLvd02.js} +1 -1
  42. package/apps/web/dist/assets/{settings-menu-CS-fXrFW.js → settings-menu-C0yo5q3t.js} +1 -1
  43. package/apps/web/dist/assets/{theme-A3ISZVgO.js → theme-DftQJmEW.js} +2 -2
  44. package/apps/web/dist/assets/{ui-D719V_Yj.js → ui-Bhp_a_44.js} +1 -1
  45. package/apps/web/dist/assets/{upload-CYTDCrYd.js → upload-DPLDQsRT.js} +1 -1
  46. package/apps/web/dist/assets/{useMutation-CVVmJvyz.js → useMutation-Cmn8b7tT.js} +1 -1
  47. package/apps/web/dist/assets/{volume-2-Do0dsjv2.js → volume-2-DGqbhyPO.js} +1 -1
  48. package/apps/web/dist/assets/{wrench-C5syJD9J.js → wrench-Dr19y-10.js} +1 -1
  49. package/apps/web/dist/index.html +7 -7
  50. package/apps/web/dist/mcp/flow.html +1 -1
  51. package/package.json +1 -1
  52. package/plugin/.claude-plugin/plugin.json +1 -1
  53. package/plugin/plugin.json +1 -1
  54. package/apps/web/dist/assets/PublicRunner-CZipSx8d.js +0 -1
  55. package/apps/web/dist/assets/SettingsPage-B0mn61Mq.js +0 -2
  56. package/apps/web/dist/assets/SetupPage-Sq4T-n2_.js +0 -1
  57. package/apps/web/dist/assets/changelog-DX0Swv7i.js +0 -1
  58. package/apps/web/dist/assets/index-B0wFS0ID.js +0 -34
@@ -0,0 +1,621 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "bef85183-3c1f-4905-8c0e-5b58b35c8d4a",
5
+ "prevId": "5de988ff-121e-486e-a4e0-f72edfd99e5b",
6
+ "tables": {
7
+ "link": {
8
+ "name": "link",
9
+ "columns": {
10
+ "token": {
11
+ "name": "token",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "tenant_id": {
18
+ "name": "tenant_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "kind": {
25
+ "name": "kind",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "ref": {
32
+ "name": "ref",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "created_at": {
39
+ "name": "created_at",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false,
44
+ "default": "(unixepoch() * 1000)"
45
+ }
46
+ },
47
+ "indexes": {
48
+ "link_tenant": {
49
+ "name": "link_tenant",
50
+ "columns": [
51
+ "tenant_id"
52
+ ],
53
+ "isUnique": false
54
+ },
55
+ "link_ref": {
56
+ "name": "link_ref",
57
+ "columns": [
58
+ "kind",
59
+ "ref"
60
+ ],
61
+ "isUnique": false
62
+ }
63
+ },
64
+ "foreignKeys": {},
65
+ "compositePrimaryKeys": {},
66
+ "uniqueConstraints": {},
67
+ "checkConstraints": {}
68
+ },
69
+ "marketplace_cache": {
70
+ "name": "marketplace_cache",
71
+ "columns": {
72
+ "id": {
73
+ "name": "id",
74
+ "type": "text",
75
+ "primaryKey": true,
76
+ "notNull": true,
77
+ "autoincrement": false
78
+ },
79
+ "hash": {
80
+ "name": "hash",
81
+ "type": "text",
82
+ "primaryKey": false,
83
+ "notNull": true,
84
+ "autoincrement": false
85
+ },
86
+ "entry": {
87
+ "name": "entry",
88
+ "type": "text",
89
+ "primaryKey": false,
90
+ "notNull": true,
91
+ "autoincrement": false
92
+ },
93
+ "fetched_at": {
94
+ "name": "fetched_at",
95
+ "type": "integer",
96
+ "primaryKey": false,
97
+ "notNull": true,
98
+ "autoincrement": false,
99
+ "default": "(unixepoch() * 1000)"
100
+ }
101
+ },
102
+ "indexes": {},
103
+ "foreignKeys": {},
104
+ "compositePrimaryKeys": {},
105
+ "uniqueConstraints": {},
106
+ "checkConstraints": {}
107
+ },
108
+ "plugin_address": {
109
+ "name": "plugin_address",
110
+ "columns": {
111
+ "ref": {
112
+ "name": "ref",
113
+ "type": "text",
114
+ "primaryKey": true,
115
+ "notNull": true,
116
+ "autoincrement": false
117
+ },
118
+ "tenant_id": {
119
+ "name": "tenant_id",
120
+ "type": "text",
121
+ "primaryKey": false,
122
+ "notNull": true,
123
+ "autoincrement": false
124
+ },
125
+ "plugin": {
126
+ "name": "plugin",
127
+ "type": "text",
128
+ "primaryKey": false,
129
+ "notNull": true,
130
+ "autoincrement": false
131
+ },
132
+ "created_at": {
133
+ "name": "created_at",
134
+ "type": "integer",
135
+ "primaryKey": false,
136
+ "notNull": true,
137
+ "autoincrement": false,
138
+ "default": "(unixepoch() * 1000)"
139
+ }
140
+ },
141
+ "indexes": {
142
+ "plugin_address_tenant": {
143
+ "name": "plugin_address_tenant",
144
+ "columns": [
145
+ "tenant_id",
146
+ "plugin"
147
+ ],
148
+ "isUnique": true
149
+ }
150
+ },
151
+ "foreignKeys": {},
152
+ "compositePrimaryKeys": {},
153
+ "uniqueConstraints": {},
154
+ "checkConstraints": {}
155
+ },
156
+ "plugin_claim": {
157
+ "name": "plugin_claim",
158
+ "columns": {
159
+ "plugin": {
160
+ "name": "plugin",
161
+ "type": "text",
162
+ "primaryKey": false,
163
+ "notNull": true,
164
+ "autoincrement": false
165
+ },
166
+ "key": {
167
+ "name": "key",
168
+ "type": "text",
169
+ "primaryKey": false,
170
+ "notNull": true,
171
+ "autoincrement": false
172
+ },
173
+ "tenant_id": {
174
+ "name": "tenant_id",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": true,
178
+ "autoincrement": false
179
+ },
180
+ "updated_at": {
181
+ "name": "updated_at",
182
+ "type": "integer",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "autoincrement": false,
186
+ "default": "(unixepoch() * 1000)"
187
+ }
188
+ },
189
+ "indexes": {
190
+ "plugin_claim_tenant": {
191
+ "name": "plugin_claim_tenant",
192
+ "columns": [
193
+ "tenant_id",
194
+ "plugin"
195
+ ],
196
+ "isUnique": false
197
+ }
198
+ },
199
+ "foreignKeys": {},
200
+ "compositePrimaryKeys": {
201
+ "plugin_claim_plugin_key_pk": {
202
+ "columns": [
203
+ "plugin",
204
+ "key"
205
+ ],
206
+ "name": "plugin_claim_plugin_key_pk"
207
+ }
208
+ },
209
+ "uniqueConstraints": {},
210
+ "checkConstraints": {}
211
+ },
212
+ "plugin_job": {
213
+ "name": "plugin_job",
214
+ "columns": {
215
+ "tenant_id": {
216
+ "name": "tenant_id",
217
+ "type": "text",
218
+ "primaryKey": false,
219
+ "notNull": true,
220
+ "autoincrement": false
221
+ },
222
+ "plugin": {
223
+ "name": "plugin",
224
+ "type": "text",
225
+ "primaryKey": false,
226
+ "notNull": true,
227
+ "autoincrement": false
228
+ },
229
+ "name": {
230
+ "name": "name",
231
+ "type": "text",
232
+ "primaryKey": false,
233
+ "notNull": true,
234
+ "autoincrement": false
235
+ },
236
+ "last_run_at": {
237
+ "name": "last_run_at",
238
+ "type": "integer",
239
+ "primaryKey": false,
240
+ "notNull": true,
241
+ "autoincrement": false
242
+ }
243
+ },
244
+ "indexes": {},
245
+ "foreignKeys": {},
246
+ "compositePrimaryKeys": {
247
+ "plugin_job_tenant_id_plugin_name_pk": {
248
+ "columns": [
249
+ "tenant_id",
250
+ "plugin",
251
+ "name"
252
+ ],
253
+ "name": "plugin_job_tenant_id_plugin_name_pk"
254
+ }
255
+ },
256
+ "uniqueConstraints": {},
257
+ "checkConstraints": {}
258
+ },
259
+ "run_index": {
260
+ "name": "run_index",
261
+ "columns": {
262
+ "run_id": {
263
+ "name": "run_id",
264
+ "type": "text",
265
+ "primaryKey": true,
266
+ "notNull": true,
267
+ "autoincrement": false
268
+ },
269
+ "tenant_id": {
270
+ "name": "tenant_id",
271
+ "type": "text",
272
+ "primaryKey": false,
273
+ "notNull": true,
274
+ "autoincrement": false
275
+ },
276
+ "visitor_id": {
277
+ "name": "visitor_id",
278
+ "type": "text",
279
+ "primaryKey": false,
280
+ "notNull": false,
281
+ "autoincrement": false
282
+ },
283
+ "ip_hash": {
284
+ "name": "ip_hash",
285
+ "type": "text",
286
+ "primaryKey": false,
287
+ "notNull": false,
288
+ "autoincrement": false
289
+ },
290
+ "active": {
291
+ "name": "active",
292
+ "type": "integer",
293
+ "primaryKey": false,
294
+ "notNull": true,
295
+ "autoincrement": false,
296
+ "default": false
297
+ },
298
+ "owner": {
299
+ "name": "owner",
300
+ "type": "text",
301
+ "primaryKey": false,
302
+ "notNull": false,
303
+ "autoincrement": false
304
+ },
305
+ "seen": {
306
+ "name": "seen",
307
+ "type": "integer",
308
+ "primaryKey": false,
309
+ "notNull": false,
310
+ "autoincrement": false
311
+ },
312
+ "push": {
313
+ "name": "push",
314
+ "type": "text",
315
+ "primaryKey": false,
316
+ "notNull": false,
317
+ "autoincrement": false
318
+ },
319
+ "created_at": {
320
+ "name": "created_at",
321
+ "type": "integer",
322
+ "primaryKey": false,
323
+ "notNull": true,
324
+ "autoincrement": false,
325
+ "default": "(unixepoch() * 1000)"
326
+ }
327
+ },
328
+ "indexes": {
329
+ "run_index_visitor": {
330
+ "name": "run_index_visitor",
331
+ "columns": [
332
+ "visitor_id",
333
+ "created_at"
334
+ ],
335
+ "isUnique": false
336
+ },
337
+ "run_index_ip": {
338
+ "name": "run_index_ip",
339
+ "columns": [
340
+ "ip_hash",
341
+ "created_at"
342
+ ],
343
+ "isUnique": false
344
+ },
345
+ "run_index_active": {
346
+ "name": "run_index_active",
347
+ "columns": [
348
+ "active",
349
+ "tenant_id"
350
+ ],
351
+ "isUnique": false
352
+ }
353
+ },
354
+ "foreignKeys": {},
355
+ "compositePrimaryKeys": {},
356
+ "uniqueConstraints": {},
357
+ "checkConstraints": {}
358
+ },
359
+ "runner": {
360
+ "name": "runner",
361
+ "columns": {
362
+ "id": {
363
+ "name": "id",
364
+ "type": "text",
365
+ "primaryKey": true,
366
+ "notNull": true,
367
+ "autoincrement": false
368
+ },
369
+ "url": {
370
+ "name": "url",
371
+ "type": "text",
372
+ "primaryKey": false,
373
+ "notNull": false,
374
+ "autoincrement": false
375
+ },
376
+ "seen": {
377
+ "name": "seen",
378
+ "type": "integer",
379
+ "primaryKey": false,
380
+ "notNull": true,
381
+ "autoincrement": false
382
+ },
383
+ "line_at": {
384
+ "name": "line_at",
385
+ "type": "integer",
386
+ "primaryKey": false,
387
+ "notNull": false,
388
+ "autoincrement": false
389
+ }
390
+ },
391
+ "indexes": {},
392
+ "foreignKeys": {},
393
+ "compositePrimaryKeys": {},
394
+ "uniqueConstraints": {},
395
+ "checkConstraints": {}
396
+ },
397
+ "session": {
398
+ "name": "session",
399
+ "columns": {
400
+ "id": {
401
+ "name": "id",
402
+ "type": "text",
403
+ "primaryKey": true,
404
+ "notNull": true,
405
+ "autoincrement": false
406
+ },
407
+ "user_id": {
408
+ "name": "user_id",
409
+ "type": "text",
410
+ "primaryKey": false,
411
+ "notNull": true,
412
+ "autoincrement": false
413
+ },
414
+ "tenant_id": {
415
+ "name": "tenant_id",
416
+ "type": "text",
417
+ "primaryKey": false,
418
+ "notNull": true,
419
+ "autoincrement": false
420
+ },
421
+ "role": {
422
+ "name": "role",
423
+ "type": "text",
424
+ "primaryKey": false,
425
+ "notNull": true,
426
+ "autoincrement": false
427
+ },
428
+ "name": {
429
+ "name": "name",
430
+ "type": "text",
431
+ "primaryKey": false,
432
+ "notNull": true,
433
+ "autoincrement": false
434
+ },
435
+ "email": {
436
+ "name": "email",
437
+ "type": "text",
438
+ "primaryKey": false,
439
+ "notNull": true,
440
+ "autoincrement": false
441
+ },
442
+ "image": {
443
+ "name": "image",
444
+ "type": "text",
445
+ "primaryKey": false,
446
+ "notNull": false,
447
+ "autoincrement": false
448
+ },
449
+ "refresh_token": {
450
+ "name": "refresh_token",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": false,
454
+ "autoincrement": false
455
+ },
456
+ "claims_expire_at": {
457
+ "name": "claims_expire_at",
458
+ "type": "integer",
459
+ "primaryKey": false,
460
+ "notNull": true,
461
+ "autoincrement": false
462
+ },
463
+ "expires_at": {
464
+ "name": "expires_at",
465
+ "type": "integer",
466
+ "primaryKey": false,
467
+ "notNull": true,
468
+ "autoincrement": false
469
+ },
470
+ "impersonated_by": {
471
+ "name": "impersonated_by",
472
+ "type": "text",
473
+ "primaryKey": false,
474
+ "notNull": false,
475
+ "autoincrement": false
476
+ },
477
+ "impersonator_email": {
478
+ "name": "impersonator_email",
479
+ "type": "text",
480
+ "primaryKey": false,
481
+ "notNull": false,
482
+ "autoincrement": false
483
+ },
484
+ "created_at": {
485
+ "name": "created_at",
486
+ "type": "integer",
487
+ "primaryKey": false,
488
+ "notNull": true,
489
+ "autoincrement": false,
490
+ "default": "(unixepoch() * 1000)"
491
+ }
492
+ },
493
+ "indexes": {
494
+ "session_expires": {
495
+ "name": "session_expires",
496
+ "columns": [
497
+ "expires_at"
498
+ ],
499
+ "isUnique": false
500
+ }
501
+ },
502
+ "foreignKeys": {},
503
+ "compositePrimaryKeys": {},
504
+ "uniqueConstraints": {},
505
+ "checkConstraints": {}
506
+ },
507
+ "setting": {
508
+ "name": "setting",
509
+ "columns": {
510
+ "key": {
511
+ "name": "key",
512
+ "type": "text",
513
+ "primaryKey": true,
514
+ "notNull": true,
515
+ "autoincrement": false
516
+ },
517
+ "value": {
518
+ "name": "value",
519
+ "type": "text",
520
+ "primaryKey": false,
521
+ "notNull": true,
522
+ "autoincrement": false
523
+ }
524
+ },
525
+ "indexes": {},
526
+ "foreignKeys": {},
527
+ "compositePrimaryKeys": {},
528
+ "uniqueConstraints": {},
529
+ "checkConstraints": {}
530
+ },
531
+ "tenant": {
532
+ "name": "tenant",
533
+ "columns": {
534
+ "id": {
535
+ "name": "id",
536
+ "type": "text",
537
+ "primaryKey": true,
538
+ "notNull": true,
539
+ "autoincrement": false
540
+ },
541
+ "status": {
542
+ "name": "status",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": true,
546
+ "autoincrement": false,
547
+ "default": "'active'"
548
+ },
549
+ "db_url": {
550
+ "name": "db_url",
551
+ "type": "text",
552
+ "primaryKey": false,
553
+ "notNull": false,
554
+ "autoincrement": false
555
+ },
556
+ "created_at": {
557
+ "name": "created_at",
558
+ "type": "integer",
559
+ "primaryKey": false,
560
+ "notNull": true,
561
+ "autoincrement": false,
562
+ "default": "(unixepoch() * 1000)"
563
+ }
564
+ },
565
+ "indexes": {},
566
+ "foreignKeys": {},
567
+ "compositePrimaryKeys": {},
568
+ "uniqueConstraints": {},
569
+ "checkConstraints": {}
570
+ },
571
+ "ui_translation": {
572
+ "name": "ui_translation",
573
+ "columns": {
574
+ "lang": {
575
+ "name": "lang",
576
+ "type": "text",
577
+ "primaryKey": true,
578
+ "notNull": true,
579
+ "autoincrement": false
580
+ },
581
+ "source": {
582
+ "name": "source",
583
+ "type": "text",
584
+ "primaryKey": false,
585
+ "notNull": true,
586
+ "autoincrement": false
587
+ },
588
+ "texts": {
589
+ "name": "texts",
590
+ "type": "text",
591
+ "primaryKey": false,
592
+ "notNull": true,
593
+ "autoincrement": false
594
+ },
595
+ "created_at": {
596
+ "name": "created_at",
597
+ "type": "integer",
598
+ "primaryKey": false,
599
+ "notNull": true,
600
+ "autoincrement": false,
601
+ "default": "(unixepoch() * 1000)"
602
+ }
603
+ },
604
+ "indexes": {},
605
+ "foreignKeys": {},
606
+ "compositePrimaryKeys": {},
607
+ "uniqueConstraints": {},
608
+ "checkConstraints": {}
609
+ }
610
+ },
611
+ "views": {},
612
+ "enums": {},
613
+ "_meta": {
614
+ "schemas": {},
615
+ "tables": {},
616
+ "columns": {}
617
+ },
618
+ "internal": {
619
+ "indexes": {}
620
+ }
621
+ }
@@ -92,6 +92,13 @@
92
92
  "when": 1792826011855,
93
93
  "tag": "0012_runner_line",
94
94
  "breakpoints": true
95
+ },
96
+ {
97
+ "idx": 13,
98
+ "version": "6",
99
+ "when": 1792835137387,
100
+ "tag": "0013_session_impersonated_by",
101
+ "breakpoints": true
95
102
  }
96
103
  ]
97
104
  }
@@ -0,0 +1 @@
1
+ ALTER TABLE `run` ADD `impersonated_by` text;