@warlock.js/devtools 5.58.0 → 5.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/cjs/app-versions-C_ZyzuvD.cjs +138 -0
  3. package/cjs/app-versions-C_ZyzuvD.cjs.map +1 -0
  4. package/cjs/attach-D5aMqUnA.cjs +1342 -0
  5. package/cjs/attach-D5aMqUnA.cjs.map +1 -0
  6. package/cjs/{auth-DV2GA1A9.cjs → auth-ChHh5E7j.cjs} +20 -13
  7. package/cjs/auth-ChHh5E7j.cjs.map +1 -0
  8. package/cjs/{boot-CyeHPFtk.cjs → boot-Dg5YZGGR.cjs} +78 -14
  9. package/cjs/boot-Dg5YZGGR.cjs.map +1 -0
  10. package/cjs/{capture-DcyBhdqw.cjs → capture-CBgONYhk.cjs} +4 -4
  11. package/cjs/{capture-DcyBhdqw.cjs.map → capture-CBgONYhk.cjs.map} +1 -1
  12. package/cjs/{cascade-store-DEGxAFDI.cjs → cascade-store-DUT2Laha.cjs} +3 -3
  13. package/cjs/cascade-store-DUT2Laha.cjs.map +1 -0
  14. package/cjs/{current-request-id-BoJJb3y7.cjs → current-request-id-Badec-TH.cjs} +3 -3
  15. package/cjs/{current-request-id-BoJJb3y7.cjs.map → current-request-id-Badec-TH.cjs.map} +1 -1
  16. package/cjs/{errors-DEqdWaqm.cjs → errors-DNQ-g49I.cjs} +201 -4
  17. package/cjs/errors-DNQ-g49I.cjs.map +1 -0
  18. package/cjs/extract-8kaX_cUV.cjs +1103 -0
  19. package/cjs/extract-8kaX_cUV.cjs.map +1 -0
  20. package/cjs/{helpers-7k_Q-abk.cjs → helpers-BcMBFy9v.cjs} +9 -6
  21. package/cjs/{helpers-7k_Q-abk.cjs.map → helpers-BcMBFy9v.cjs.map} +1 -1
  22. package/cjs/{histogram-BRV5eHcp.cjs → histogram-CkoVizdf.cjs} +6 -6
  23. package/cjs/{histogram-BRV5eHcp.cjs.map → histogram-CkoVizdf.cjs.map} +1 -1
  24. package/cjs/{http-XNLYU2vS.cjs → http-DCVCf44M.cjs} +26 -9
  25. package/cjs/http-DCVCf44M.cjs.map +1 -0
  26. package/cjs/index.cjs +1 -1
  27. package/cjs/{insights-BBZnUpWO.cjs → insights-CFof59kF.cjs} +6 -6
  28. package/cjs/{insights-BBZnUpWO.cjs.map → insights-CFof59kF.cjs.map} +1 -1
  29. package/cjs/migrations-BQdNOL5_.cjs +30 -0
  30. package/cjs/migrations-BQdNOL5_.cjs.map +1 -0
  31. package/cjs/{migrations-DTTzCNpR.cjs → models-DF1agAm4.cjs} +107 -25
  32. package/cjs/models-DF1agAm4.cjs.map +1 -0
  33. package/cjs/{process-panel-DEOnLxoT.cjs → process-panel-D3D9Y_dc.cjs} +5 -5
  34. package/cjs/{process-panel-DEOnLxoT.cjs.map → process-panel-D3D9Y_dc.cjs.map} +1 -1
  35. package/cjs/production/index.cjs +4 -4
  36. package/cjs/runs-DECWPGnq.cjs +390 -0
  37. package/cjs/runs-DECWPGnq.cjs.map +1 -0
  38. package/cjs/{server-C8JfggQU.cjs → server-CC5DpObz.cjs} +10 -7
  39. package/cjs/server-CC5DpObz.cjs.map +1 -0
  40. package/cjs/{src-DjOUdhKc.cjs → src-VyOjEEAo.cjs} +179 -24
  41. package/cjs/src-VyOjEEAo.cjs.map +1 -0
  42. package/cjs/{store-C06KO_A1.cjs → store-EFn4wp0T.cjs} +2 -2
  43. package/cjs/{stream-route-D4k-sJvW.cjs → stream-route-DFHuIWgg.cjs} +125 -19
  44. package/cjs/stream-route-DFHuIWgg.cjs.map +1 -0
  45. package/esm/ai/attach.mjs +92 -0
  46. package/esm/ai/attach.mjs.map +1 -0
  47. package/esm/ai/options.mjs +31 -0
  48. package/esm/ai/options.mjs.map +1 -0
  49. package/esm/ai/reports/aggregate.mjs +330 -0
  50. package/esm/ai/reports/aggregate.mjs.map +1 -0
  51. package/esm/ai/reports/evaluate.mjs +108 -0
  52. package/esm/ai/reports/evaluate.mjs.map +1 -0
  53. package/esm/ai/reports/range.mjs +121 -0
  54. package/esm/ai/reports/range.mjs.map +1 -0
  55. package/esm/ai/reports/runs.d.mts +2 -0
  56. package/esm/ai/reports/runs.mjs +212 -0
  57. package/esm/ai/reports/runs.mjs.map +1 -0
  58. package/esm/ai/reports/service.mjs +132 -0
  59. package/esm/ai/reports/service.mjs.map +1 -0
  60. package/esm/ai/rollup/cascade-store.mjs +84 -0
  61. package/esm/ai/rollup/cascade-store.mjs.map +1 -0
  62. package/esm/ai/rollup/categories.mjs +67 -0
  63. package/esm/ai/rollup/categories.mjs.map +1 -0
  64. package/esm/ai/rollup/extract.mjs +225 -0
  65. package/esm/ai/rollup/extract.mjs.map +1 -0
  66. package/esm/ai/rollup/file-store.mjs +147 -0
  67. package/esm/ai/rollup/file-store.mjs.map +1 -0
  68. package/esm/ai/rollup/histogram.mjs +42 -0
  69. package/esm/ai/rollup/histogram.mjs.map +1 -0
  70. package/esm/ai/rollup/increment-error.mjs +19 -0
  71. package/esm/ai/rollup/increment-error.mjs.map +1 -0
  72. package/esm/ai/rollup/index.mjs +9 -0
  73. package/esm/ai/rollup/mapping.mjs +69 -0
  74. package/esm/ai/rollup/mapping.mjs.map +1 -0
  75. package/esm/ai/rollup/memory-store.mjs +26 -0
  76. package/esm/ai/rollup/memory-store.mjs.map +1 -0
  77. package/esm/ai/rollup/writer.mjs +113 -0
  78. package/esm/ai/rollup/writer.mjs.map +1 -0
  79. package/esm/ai/types.d.mts +29 -0
  80. package/esm/ai/types.d.mts.map +1 -0
  81. package/esm/app-versions.mjs +74 -0
  82. package/esm/app-versions.mjs.map +1 -0
  83. package/esm/devtools-connector.d.mts.map +1 -1
  84. package/esm/devtools-connector.mjs +54 -2
  85. package/esm/devtools-connector.mjs.map +1 -1
  86. package/esm/index.d.mts +3 -2
  87. package/esm/options.mjs +4 -0
  88. package/esm/options.mjs.map +1 -1
  89. package/esm/production/auth/helpers.mjs +8 -5
  90. package/esm/production/auth/helpers.mjs.map +1 -1
  91. package/esm/production/auth/service.mjs +14 -6
  92. package/esm/production/auth/service.mjs.map +1 -1
  93. package/esm/production/boot.mjs +70 -3
  94. package/esm/production/boot.mjs.map +1 -1
  95. package/esm/production/contracts.d.mts +378 -2
  96. package/esm/production/contracts.d.mts.map +1 -1
  97. package/esm/production/contracts.mjs +64 -2
  98. package/esm/production/contracts.mjs.map +1 -1
  99. package/esm/production/errors.d.mts +1 -1
  100. package/esm/production/errors.mjs +11 -3
  101. package/esm/production/errors.mjs.map +1 -1
  102. package/esm/production/http/access.mjs +6 -0
  103. package/esm/production/http/access.mjs.map +1 -1
  104. package/esm/production/http/mount.mjs +13 -0
  105. package/esm/production/http/mount.mjs.map +1 -1
  106. package/esm/production/http/share-session.mjs.map +1 -1
  107. package/esm/production/index.d.mts +2 -2
  108. package/esm/production/insights/writer.mjs.map +1 -1
  109. package/esm/production/options.d.mts +5 -1
  110. package/esm/production/options.d.mts.map +1 -1
  111. package/esm/production/options.mjs +13 -1
  112. package/esm/production/options.mjs.map +1 -1
  113. package/esm/production/store/memory-store.mjs.map +1 -1
  114. package/esm/production/store/migrations.d.mts +1 -1
  115. package/esm/production/store/migrations.d.mts.map +1 -1
  116. package/esm/production/store/migrations.mjs +4 -2
  117. package/esm/production/store/migrations.mjs.map +1 -1
  118. package/esm/production/store/models/ai-rollup.migration.mjs +48 -0
  119. package/esm/production/store/models/ai-rollup.migration.mjs.map +1 -0
  120. package/esm/production/store/models/ai-rollup.model.mjs +13 -0
  121. package/esm/production/store/models/ai-rollup.model.mjs.map +1 -0
  122. package/esm/production/store/models/index.mjs +3 -1
  123. package/esm/server/ai-report-routes.mjs +72 -0
  124. package/esm/server/ai-report-routes.mjs.map +1 -0
  125. package/esm/server/ai-routes.mjs +41 -6
  126. package/esm/server/ai-routes.mjs.map +1 -1
  127. package/esm/server/index.mjs +2 -0
  128. package/esm/server/index.mjs.map +1 -1
  129. package/esm/server/session-routes.mjs +3 -1
  130. package/esm/server/session-routes.mjs.map +1 -1
  131. package/esm/sources/agent-trace-source.d.mts.map +1 -1
  132. package/esm/sources/agent-trace-source.mjs.map +1 -1
  133. package/esm/sources/ai-source.d.mts +2 -0
  134. package/esm/sources/ai-source.d.mts.map +1 -1
  135. package/esm/sources/ai-source.mjs +120 -11
  136. package/esm/sources/ai-source.mjs.map +1 -1
  137. package/esm/types.d.mts +23 -4
  138. package/esm/types.d.mts.map +1 -1
  139. package/llms-full.txt +79 -32
  140. package/package.json +8 -8
  141. package/skills/SKILL.md +79 -32
  142. package/ui/dashboard/assets/app.css +1 -1
  143. package/ui/dashboard/assets/app.js +23 -16
  144. package/ui/dashboard/build-info.json +7 -7
  145. package/cjs/ai-source-DTpxumMA.cjs +0 -381
  146. package/cjs/ai-source-DTpxumMA.cjs.map +0 -1
  147. package/cjs/auth-DV2GA1A9.cjs.map +0 -1
  148. package/cjs/boot-CyeHPFtk.cjs.map +0 -1
  149. package/cjs/cascade-store-DEGxAFDI.cjs.map +0 -1
  150. package/cjs/contracts-CDuY-ahl.cjs +0 -116
  151. package/cjs/contracts-CDuY-ahl.cjs.map +0 -1
  152. package/cjs/errors-DEqdWaqm.cjs.map +0 -1
  153. package/cjs/http-XNLYU2vS.cjs.map +0 -1
  154. package/cjs/migrations-DTTzCNpR.cjs.map +0 -1
  155. package/cjs/options-CHhmQJic.cjs +0 -193
  156. package/cjs/options-CHhmQJic.cjs.map +0 -1
  157. package/cjs/panels-CHd20RK5.cjs +0 -385
  158. package/cjs/panels-CHd20RK5.cjs.map +0 -1
  159. package/cjs/rolldown-runtime-Zuuoy_Rh.cjs +0 -52
  160. package/cjs/server-C8JfggQU.cjs.map +0 -1
  161. package/cjs/src-DjOUdhKc.cjs.map +0 -1
  162. package/cjs/stream-route-D4k-sJvW.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrations-BQdNOL5_.cjs","names":["DevtoolsAccountsMigration","DevtoolsSessionsMigration","DevtoolsInvitesMigration","DevtoolsAuditMigration","DevtoolsStateMigration","DevtoolsSamplesMigration","DevtoolsReportsMigration","DevtoolsSharesMigration","DevtoolsAiRollupsMigration"],"sources":["../../../../../../../packages/devtools/src/production/store/migrations.ts"],"sourcesContent":["import type { MigrationConstructor } from \"@warlock.js/cascade\";\nimport {\n DevtoolsAccountsMigration,\n DevtoolsAiRollupsMigration,\n DevtoolsAuditMigration,\n DevtoolsInvitesMigration,\n DevtoolsReportsMigration,\n DevtoolsSamplesMigration,\n DevtoolsSessionsMigration,\n DevtoolsSharesMigration,\n DevtoolsStateMigration,\n} from \"./models\";\n\n/**\n * The migrations of the production monitor's tables/collections:\n * `devtools_accounts`, `devtools_sessions`, `devtools_invites`,\n * `devtools_audit`, `devtools_state`, `devtools_samples`, `devtools_reports`,\n * `devtools_shares`, `devtools_ai_rollups`.\n * An app lists them in `warlock.config.ts > database.migrations`.\n */\nexport const devtoolsMigrations: readonly MigrationConstructor[] = [\n DevtoolsAccountsMigration,\n DevtoolsSessionsMigration,\n DevtoolsInvitesMigration,\n DevtoolsAuditMigration,\n DevtoolsStateMigration,\n DevtoolsSamplesMigration,\n DevtoolsReportsMigration,\n DevtoolsSharesMigration,\n DevtoolsAiRollupsMigration,\n];\n"],"mappings":";;;;;;;;;;AAoBA,MAAa,qBAAsD;CACjEA;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;AACF"}
@@ -1,4 +1,5 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-Zuuoy_Rh.cjs");
1
+ const require_app_versions = require("./app-versions-C_ZyzuvD.cjs");
2
+ const require_errors = require("./errors-DNQ-g49I.cjs");
2
3
  let _warlock_js_cascade = require("@warlock.js/cascade");
3
4
 
4
5
  //#region ../../packages/devtools/src/production/store/models/base.ts
@@ -23,6 +24,57 @@ var DevtoolsRowModel = class extends _warlock_js_cascade.Model {
23
24
  }
24
25
  };
25
26
 
27
+ //#endregion
28
+ //#region ../../packages/devtools/src/production/store/models/ai-rollup.model.ts
29
+ /** A row of `devtools_ai_rollups`: hourly AI counters per agent, model and provider. */
30
+ var DevtoolsAiRollupRow = class extends DevtoolsRowModel {
31
+ static {
32
+ this.table = "devtools_ai_rollups";
33
+ }
34
+ };
35
+
36
+ //#endregion
37
+ //#region ../../packages/devtools/src/production/store/models/ai-rollup.migration.ts
38
+ const DevtoolsAiRollupsMigration = (0, _warlock_js_cascade.migrate)(DevtoolsAiRollupRow, {
39
+ name: "devtoolsAiRollups",
40
+ up() {
41
+ this.createTableIfNotExists();
42
+ this.string("id", 64).primary().unique();
43
+ this.bigInteger("hour").index();
44
+ this.string("agent", 200).index();
45
+ this.string("model", 200).index();
46
+ this.string("provider", 100);
47
+ for (const column of [
48
+ "runs",
49
+ "completed",
50
+ "failed",
51
+ "incomplete",
52
+ "cancelled"
53
+ ]) this.integer(column).default(0);
54
+ for (const column of [
55
+ "input_tokens",
56
+ "output_tokens",
57
+ "cached_tokens",
58
+ "cache_write_tokens",
59
+ "reasoning_tokens"
60
+ ]) this.bigInteger(column).default(0);
61
+ this.double("cost_usd").default(0);
62
+ this.integer("priced_runs").default(0);
63
+ this.integer("unpriced_runs").default(0);
64
+ this.bigInteger("unpriced_tokens").default(0);
65
+ this.integer("fallback_runs").default(0);
66
+ this.integer("refusals").default(0);
67
+ for (const category of require_errors.DEVTOOLS_AI_ERROR_CATEGORIES) this.integer(`err_${category.replaceAll("-", "_")}`).default(0);
68
+ for (let index = 0; index <= require_errors.DEVTOOLS_AI_LATENCY_BUCKETS_MS.length; index++) this.integer(`lat_${index}`).default(0);
69
+ this.integer("latency_count").default(0);
70
+ this.double("latency_sum_ms").default(0);
71
+ this.bigInteger("updated_at");
72
+ },
73
+ down() {
74
+ this.dropTableIfExists();
75
+ }
76
+ });
77
+
26
78
  //#endregion
27
79
  //#region ../../packages/devtools/src/production/store/models/account.model.ts
28
80
  /** A row of `devtools_accounts`. */
@@ -276,9 +328,11 @@ const DevtoolsStateMigration = (0, _warlock_js_cascade.migrate)(DevtoolsStateRow
276
328
 
277
329
  //#endregion
278
330
  //#region ../../packages/devtools/src/production/store/models/index.ts
279
- var models_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
331
+ var models_exports = /* @__PURE__ */ require_app_versions.__exportAll({
280
332
  DevtoolsAccountRow: () => DevtoolsAccountRow,
281
333
  DevtoolsAccountsMigration: () => DevtoolsAccountsMigration,
334
+ DevtoolsAiRollupRow: () => DevtoolsAiRollupRow,
335
+ DevtoolsAiRollupsMigration: () => DevtoolsAiRollupsMigration,
282
336
  DevtoolsAuditMigration: () => DevtoolsAuditMigration,
283
337
  DevtoolsAuditRow: () => DevtoolsAuditRow,
284
338
  DevtoolsInviteRow: () => DevtoolsInviteRow,
@@ -297,30 +351,58 @@ var models_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
297
351
  });
298
352
 
299
353
  //#endregion
300
- //#region ../../packages/devtools/src/production/store/migrations.ts
301
- /**
302
- * The migrations of the production monitor's tables/collections:
303
- * `devtools_accounts`, `devtools_sessions`, `devtools_invites`,
304
- * `devtools_audit`, `devtools_state`, `devtools_samples`, `devtools_reports`,
305
- * `devtools_shares`.
306
- * An app lists them in `warlock.config.ts > database.migrations`.
307
- */
308
- const devtoolsMigrations = [
309
- DevtoolsAccountsMigration,
310
- DevtoolsSessionsMigration,
311
- DevtoolsInvitesMigration,
312
- DevtoolsAuditMigration,
313
- DevtoolsStateMigration,
314
- DevtoolsSamplesMigration,
315
- DevtoolsReportsMigration,
316
- DevtoolsSharesMigration
317
- ];
318
-
319
- //#endregion
320
- Object.defineProperty(exports, "devtoolsMigrations", {
354
+ Object.defineProperty(exports, "DevtoolsAccountsMigration", {
355
+ enumerable: true,
356
+ get: function () {
357
+ return DevtoolsAccountsMigration;
358
+ }
359
+ });
360
+ Object.defineProperty(exports, "DevtoolsAiRollupsMigration", {
361
+ enumerable: true,
362
+ get: function () {
363
+ return DevtoolsAiRollupsMigration;
364
+ }
365
+ });
366
+ Object.defineProperty(exports, "DevtoolsAuditMigration", {
367
+ enumerable: true,
368
+ get: function () {
369
+ return DevtoolsAuditMigration;
370
+ }
371
+ });
372
+ Object.defineProperty(exports, "DevtoolsInvitesMigration", {
373
+ enumerable: true,
374
+ get: function () {
375
+ return DevtoolsInvitesMigration;
376
+ }
377
+ });
378
+ Object.defineProperty(exports, "DevtoolsReportsMigration", {
379
+ enumerable: true,
380
+ get: function () {
381
+ return DevtoolsReportsMigration;
382
+ }
383
+ });
384
+ Object.defineProperty(exports, "DevtoolsSamplesMigration", {
385
+ enumerable: true,
386
+ get: function () {
387
+ return DevtoolsSamplesMigration;
388
+ }
389
+ });
390
+ Object.defineProperty(exports, "DevtoolsSessionsMigration", {
391
+ enumerable: true,
392
+ get: function () {
393
+ return DevtoolsSessionsMigration;
394
+ }
395
+ });
396
+ Object.defineProperty(exports, "DevtoolsSharesMigration", {
397
+ enumerable: true,
398
+ get: function () {
399
+ return DevtoolsSharesMigration;
400
+ }
401
+ });
402
+ Object.defineProperty(exports, "DevtoolsStateMigration", {
321
403
  enumerable: true,
322
404
  get: function () {
323
- return devtoolsMigrations;
405
+ return DevtoolsStateMigration;
324
406
  }
325
407
  });
326
408
  Object.defineProperty(exports, "models_exports", {
@@ -329,4 +411,4 @@ Object.defineProperty(exports, "models_exports", {
329
411
  return models_exports;
330
412
  }
331
413
  });
332
- //# sourceMappingURL=migrations-DTTzCNpR.cjs.map
414
+ //# sourceMappingURL=models-DF1agAm4.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models-DF1agAm4.cjs","names":["Model","migrate","DEVTOOLS_AI_ERROR_CATEGORIES","DEVTOOLS_AI_LATENCY_BUCKETS_MS","migrate","migrate","migrate","migrate","migrate","migrate","migrate","migrate"],"sources":["../../../../../../../packages/devtools/src/production/store/models/base.ts","../../../../../../../packages/devtools/src/production/store/models/ai-rollup.model.ts","../../../../../../../packages/devtools/src/production/store/models/ai-rollup.migration.ts","../../../../../../../packages/devtools/src/production/store/models/account.model.ts","../../../../../../../packages/devtools/src/production/store/models/account.migration.ts","../../../../../../../packages/devtools/src/production/store/models/audit.model.ts","../../../../../../../packages/devtools/src/production/store/models/audit.migration.ts","../../../../../../../packages/devtools/src/production/store/models/invite.model.ts","../../../../../../../packages/devtools/src/production/store/models/invite.migration.ts","../../../../../../../packages/devtools/src/production/store/models/report.model.ts","../../../../../../../packages/devtools/src/production/store/models/report.migration.ts","../../../../../../../packages/devtools/src/production/store/models/sample.model.ts","../../../../../../../packages/devtools/src/production/store/models/sample.migration.ts","../../../../../../../packages/devtools/src/production/store/models/session.model.ts","../../../../../../../packages/devtools/src/production/store/models/session.migration.ts","../../../../../../../packages/devtools/src/production/store/models/share.model.ts","../../../../../../../packages/devtools/src/production/store/models/share.migration.ts","../../../../../../../packages/devtools/src/production/store/models/state.model.ts","../../../../../../../packages/devtools/src/production/store/models/state.migration.ts","../../../../../../../packages/devtools/src/production/store/models/index.ts"],"sourcesContent":["import { Model } from \"@warlock.js/cascade\";\n\n/**\n * Settings shared by the monitor's tables. Ids are supplied by the store\n * (random uuids, or `\"state\"`), times are plain epoch-millisecond columns the\n * store writes itself, and a removal is always permanent: sessions, invites\n * and samples must not be copied into a trash table.\n */\nexport abstract class DevtoolsRowModel extends Model {\n public static autoGenerateId = false;\n\n public static createdAtColumn = false as const;\n\n public static updatedAtColumn = false as const;\n\n public static deleteStrategy = \"permanent\" as const;\n}\n","import { DevtoolsRowModel } from \"./base\";\n\n/** A row of `devtools_ai_rollups`: hourly AI counters per agent, model and provider. */\nexport class DevtoolsAiRollupRow extends DevtoolsRowModel {\n public static table = \"devtools_ai_rollups\";\n}\n","import { migrate } from \"@warlock.js/cascade\";\nimport { DEVTOOLS_AI_ERROR_CATEGORIES, DEVTOOLS_AI_LATENCY_BUCKETS_MS } from \"../../contracts\";\nimport { DevtoolsAiRollupRow } from \"./ai-rollup.model\";\n\nexport const DevtoolsAiRollupsMigration = migrate(DevtoolsAiRollupRow, {\n name: \"devtoolsAiRollups\",\n up() {\n this.createTableIfNotExists();\n\n // The id is `rollupId(key)`; `unique` also covers MongoDB, which ignores primary keys.\n this.string(\"id\", 64).primary().unique();\n\n this.bigInteger(\"hour\").index();\n this.string(\"agent\", 200).index();\n this.string(\"model\", 200).index();\n this.string(\"provider\", 100);\n\n for (const column of [\"runs\", \"completed\", \"failed\", \"incomplete\", \"cancelled\"]) {\n this.integer(column).default(0);\n }\n\n for (const column of [\n \"input_tokens\",\n \"output_tokens\",\n \"cached_tokens\",\n \"cache_write_tokens\",\n \"reasoning_tokens\",\n ]) {\n this.bigInteger(column).default(0);\n }\n\n this.double(\"cost_usd\").default(0);\n this.integer(\"priced_runs\").default(0);\n this.integer(\"unpriced_runs\").default(0);\n this.bigInteger(\"unpriced_tokens\").default(0);\n this.integer(\"fallback_runs\").default(0);\n this.integer(\"refusals\").default(0);\n\n for (const category of DEVTOOLS_AI_ERROR_CATEGORIES) {\n this.integer(`err_${category.replaceAll(\"-\", \"_\")}`).default(0);\n }\n\n for (let index = 0; index <= DEVTOOLS_AI_LATENCY_BUCKETS_MS.length; index++) {\n this.integer(`lat_${index}`).default(0);\n }\n\n this.integer(\"latency_count\").default(0);\n this.double(\"latency_sum_ms\").default(0);\n this.bigInteger(\"updated_at\");\n },\n down() {\n this.dropTableIfExists();\n },\n});\n","import { DevtoolsRowModel } from \"./base\";\n\n/** A row of `devtools_accounts`. */\nexport class DevtoolsAccountRow extends DevtoolsRowModel {\n public static table = \"devtools_accounts\";\n}\n","import { migrate } from \"@warlock.js/cascade\";\nimport { DevtoolsAccountRow } from \"./account.model\";\n\nexport const DevtoolsAccountsMigration = migrate(DevtoolsAccountRow, {\n name: \"devtoolsAccounts\",\n up() {\n this.createTableIfNotExists();\n\n // The id is a string the store supplies; `unique` also covers MongoDB,\n // which ignores primary keys.\n this.string(\"id\", 64).primary().unique();\n\n this.string(\"email\", 320).unique();\n this.string(\"role\", 16);\n this.text(\"password_hash\");\n this.string(\"password_source\", 32);\n this.boolean(\"must_change_password\").default(false);\n this.text(\"totp_secret\").nullable();\n this.bigInteger(\"totp_enabled_at\").nullable();\n this.bigInteger(\"totp_last_step\").nullable();\n this.json(\"recovery_codes\");\n this.json(\"passkeys\");\n this.bigInteger(\"failures_reset_at\").nullable();\n this.bigInteger(\"created_at\");\n this.bigInteger(\"updated_at\");\n this.bigInteger(\"last_login_at\").nullable();\n this.string(\"created_by\", 64).nullable();\n this.integer(\"version\").default(1);\n },\n down() {\n this.dropTableIfExists();\n },\n});\n","import { DevtoolsRowModel } from \"./base\";\n\n/** A row of `devtools_audit`. */\nexport class DevtoolsAuditRow extends DevtoolsRowModel {\n public static table = \"devtools_audit\";\n}\n","import { migrate } from \"@warlock.js/cascade\";\nimport { DevtoolsAuditRow } from \"./audit.model\";\n\nexport const DevtoolsAuditMigration = migrate(DevtoolsAuditRow, {\n name: \"devtoolsAudit\",\n up() {\n this.createTableIfNotExists();\n\n // The id is a string the store supplies; `unique` also covers MongoDB,\n // which ignores primary keys.\n this.string(\"id\", 64).primary().unique();\n\n this.string(\"type\", 64);\n this.bigInteger(\"occurred_at\").index();\n this.string(\"account_id\", 64).nullable();\n this.string(\"email\", 320).nullable();\n this.string(\"ip\", 64).nullable();\n // The per-IP sign-in limit counts by this: the address, or its /64 for IPv6.\n this.string(\"ip_bucket\", 64).nullable();\n this.string(\"user_agent\", 255).nullable();\n this.json(\"detail\");\n this.string(\"ref\", 16);\n\n this.index([\"type\", \"occurred_at\"]);\n this.index([\"ip_bucket\", \"occurred_at\"]);\n this.index([\"account_id\", \"occurred_at\"]);\n },\n down() {\n this.dropTableIfExists();\n },\n});\n","import { DevtoolsRowModel } from \"./base\";\n\n/** A row of `devtools_invites`. */\nexport class DevtoolsInviteRow extends DevtoolsRowModel {\n public static table = \"devtools_invites\";\n}\n","import { migrate } from \"@warlock.js/cascade\";\nimport { DevtoolsInviteRow } from \"./invite.model\";\n\nexport const DevtoolsInvitesMigration = migrate(DevtoolsInviteRow, {\n name: \"devtoolsInvites\",\n up() {\n this.createTableIfNotExists();\n\n // The id is a string the store supplies; `unique` also covers MongoDB,\n // which ignores primary keys.\n this.string(\"id\", 64).primary().unique();\n\n this.string(\"token_hash\", 64).unique();\n this.string(\"email\", 320);\n this.string(\"role\", 16);\n this.string(\"created_by\", 64).nullable();\n this.bigInteger(\"created_at\");\n this.bigInteger(\"expires_at\").index();\n this.bigInteger(\"used_at\").nullable();\n this.string(\"account_id\", 64).nullable();\n },\n down() {\n this.dropTableIfExists();\n },\n});\n","import { DevtoolsRowModel } from \"./base\";\n\n/** A row of `devtools_reports`. */\nexport class DevtoolsReportRow extends DevtoolsRowModel {\n public static table = \"devtools_reports\";\n}\n","import { migrate } from \"@warlock.js/cascade\";\nimport { DevtoolsReportRow } from \"./report.model\";\n\nexport const DevtoolsReportsMigration = migrate(DevtoolsReportRow, {\n name: \"devtoolsReports\",\n up() {\n this.createTableIfNotExists();\n\n // The id is a string the store supplies; `unique` also covers MongoDB,\n // which ignores primary keys.\n this.string(\"id\", 64).primary().unique();\n\n this.bigInteger(\"seen_at\").index();\n // JSON text, up to 256 KB.\n this.longText(\"data\");\n },\n down() {\n this.dropTableIfExists();\n },\n});\n","import { DevtoolsRowModel } from \"./base\";\n\n/** A row of `devtools_samples`. */\nexport class DevtoolsSampleRow extends DevtoolsRowModel {\n public static table = \"devtools_samples\";\n}\n","import { migrate } from \"@warlock.js/cascade\";\nimport { DevtoolsSampleRow } from \"./sample.model\";\n\nexport const DevtoolsSamplesMigration = migrate(DevtoolsSampleRow, {\n name: \"devtoolsSamples\",\n up() {\n this.createTableIfNotExists();\n\n // The id is a string the store supplies; `unique` also covers MongoDB,\n // which ignores primary keys.\n this.string(\"id\", 64).primary().unique();\n\n this.string(\"instance\", 128).index();\n this.bigInteger(\"started_at\").index();\n this.integer(\"status\").nullable().index();\n this.string(\"method\", 16);\n this.text(\"path\");\n this.json(\"summary\");\n // JSON text: request data may hold keys MongoDB cannot store as field names.\n this.longText(\"detail\").nullable();\n },\n down() {\n this.dropTableIfExists();\n },\n});\n","import { DevtoolsRowModel } from \"./base\";\n\n/** A row of `devtools_sessions`. */\nexport class DevtoolsSessionRow extends DevtoolsRowModel {\n public static table = \"devtools_sessions\";\n}\n","import { migrate } from \"@warlock.js/cascade\";\nimport { DevtoolsSessionRow } from \"./session.model\";\n\nexport const DevtoolsSessionsMigration = migrate(DevtoolsSessionRow, {\n name: \"devtoolsSessions\",\n up() {\n this.createTableIfNotExists();\n\n // The id is a string the store supplies; `unique` also covers MongoDB,\n // which ignores primary keys.\n this.string(\"id\", 64).primary().unique();\n\n this.string(\"token_hash\", 64).unique();\n this.string(\"account_id\", 64).index();\n this.string(\"stage\", 32);\n this.string(\"csrf_secret\", 128);\n this.bigInteger(\"created_at\");\n this.bigInteger(\"last_seen_at\");\n this.bigInteger(\"expires_at\").index();\n this.string(\"ip\", 64).nullable();\n this.string(\"user_agent\", 255).nullable();\n this.text(\"pending_totp_secret\").nullable();\n this.text(\"challenge\").nullable();\n this.bigInteger(\"challenge_expires_at\").nullable();\n this.integer(\"version\").default(1);\n },\n down() {\n this.dropTableIfExists();\n },\n});\n","import { DevtoolsRowModel } from \"./base\";\n\n/** A row of `devtools_shares`. */\nexport class DevtoolsShareRow extends DevtoolsRowModel {\n public static table = \"devtools_shares\";\n}\n","import { migrate } from \"@warlock.js/cascade\";\nimport { DevtoolsShareRow } from \"./share.model\";\n\nexport const DevtoolsSharesMigration = migrate(DevtoolsShareRow, {\n name: \"devtoolsShares\",\n up() {\n this.createTableIfNotExists();\n\n // The id is a string the store supplies; `unique` also covers MongoDB,\n // which ignores primary keys.\n this.string(\"id\", 64).primary().unique();\n\n this.string(\"token_hash\", 64).unique();\n this.string(\"panel\", 64);\n this.string(\"label\", 80);\n this.string(\"created_by\", 64).nullable();\n this.bigInteger(\"created_at\");\n this.bigInteger(\"expires_at\").index();\n this.bigInteger(\"revoked_at\").nullable();\n this.bigInteger(\"last_used_at\").nullable();\n this.integer(\"uses\").default(0);\n },\n down() {\n this.dropTableIfExists();\n },\n});\n","import { DevtoolsRowModel } from \"./base\";\n\n/** A row of `devtools_state`. */\nexport class DevtoolsStateRow extends DevtoolsRowModel {\n public static table = \"devtools_state\";\n}\n","import { migrate } from \"@warlock.js/cascade\";\nimport { DevtoolsStateRow } from \"./state.model\";\n\nexport const DevtoolsStateMigration = migrate(DevtoolsStateRow, {\n name: \"devtoolsState\",\n up() {\n this.createTableIfNotExists();\n\n // The id is a string the store supplies; `unique` also covers MongoDB,\n // which ignores primary keys.\n this.string(\"id\", 64).primary().unique();\n\n this.boolean(\"disabled\").default(false);\n this.string(\"disabled_path_hash\", 64).nullable();\n this.bigInteger(\"disabled_at\").nullable();\n this.string(\"disabled_by\", 64).nullable();\n this.bigInteger(\"locked_until\").nullable();\n this.bigInteger(\"failures_reset_at\").nullable();\n this.bigInteger(\"updated_at\");\n this.integer(\"version\").default(0);\n },\n down() {\n this.dropTableIfExists();\n },\n});\n","export { DevtoolsRowModel } from \"./base\";\nexport { DevtoolsAiRollupsMigration } from \"./ai-rollup.migration\";\nexport { DevtoolsAiRollupRow } from \"./ai-rollup.model\";\nexport { DevtoolsAccountsMigration } from \"./account.migration\";\nexport { DevtoolsAccountRow } from \"./account.model\";\nexport { DevtoolsAuditMigration } from \"./audit.migration\";\nexport { DevtoolsAuditRow } from \"./audit.model\";\nexport { DevtoolsInvitesMigration } from \"./invite.migration\";\nexport { DevtoolsInviteRow } from \"./invite.model\";\nexport { DevtoolsReportsMigration } from \"./report.migration\";\nexport { DevtoolsReportRow } from \"./report.model\";\nexport { DevtoolsSamplesMigration } from \"./sample.migration\";\nexport { DevtoolsSampleRow } from \"./sample.model\";\nexport { DevtoolsSessionsMigration } from \"./session.migration\";\nexport { DevtoolsSessionRow } from \"./session.model\";\nexport { DevtoolsSharesMigration } from \"./share.migration\";\nexport { DevtoolsShareRow } from \"./share.model\";\nexport { DevtoolsStateMigration } from \"./state.migration\";\nexport { DevtoolsStateRow } from \"./state.model\";\n"],"mappings":";;;;;;;;;;;AAQA,IAAsB,mBAAtB,cA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,SAAS;EAC/C,KAAK,WAAW,aAAa,CAAC,CAAC,SAAS;EACxC,KAAK,OAAO,eAAe,EAAE,CAAC,CAAC,SAAS;EACxC,KAAK,WAAW,cAAc,CAAC,CAAC,SAAS;EACzC,KAAK,WAAW,mBAAmB,CAAC,CAAC,SAAS;EAC9C,KAAK,WAAW,YAAY;EAC5B,KAAK,QAAQ,SAAS,CAAC,CAAC,QAAQ,CAAC;CACnC;CACA,OAAO;EACL,KAAK,kBAAkB;CACzB;AACF,CAAC"}
@@ -1,7 +1,7 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-Zuuoy_Rh.cjs");
2
- const require_ai_source = require("./ai-source-DTpxumMA.cjs");
1
+ const require_app_versions = require("./app-versions-C_ZyzuvD.cjs");
2
+ const require_runs = require("./runs-DECWPGnq.cjs");
3
3
  let node_path = require("node:path");
4
- node_path = require_rolldown_runtime.__toESM(node_path, 1);
4
+ node_path = require_app_versions.__toESM(node_path, 1);
5
5
 
6
6
  //#region ../../packages/devtools/src/process-panel.ts
7
7
  /** Load app-owned generated registration only when devtools boots in development. */
@@ -24,7 +24,7 @@ function processesDevtoolsPanel(processPanel) {
24
24
  return {
25
25
  id: "processes",
26
26
  title: "Processes",
27
- view: node_path.default.join(require_ai_source.resolveUiRoot(), "panels", "processes.js"),
27
+ view: node_path.default.join(require_runs.resolveUiRoot(), "panels", "processes.js"),
28
28
  routes: [{
29
29
  path: "",
30
30
  handler: async () => processPanel ? await processPanel.list() : []
@@ -45,4 +45,4 @@ Object.defineProperty(exports, "processesDevtoolsPanel", {
45
45
  return processesDevtoolsPanel;
46
46
  }
47
47
  });
48
- //# sourceMappingURL=process-panel-DEOnLxoT.cjs.map
48
+ //# sourceMappingURL=process-panel-D3D9Y_dc.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"process-panel-DEOnLxoT.cjs","names":["path","resolveUiRoot"],"sources":["../../../../../../../packages/devtools/src/process-panel.ts"],"sourcesContent":["import path from \"node:path\";\nimport type { DevtoolsPanel } from \"./types\";\nimport { resolveUiRoot } from \"./ui-root\";\n\n/** Structural contract keeps process supervision an optional application feature. */\nexport type ProcessPanel = { list(): Promise<readonly unknown[]> };\n\n/** Load app-owned generated registration only when devtools boots in development. */\nexport async function loadProcessPanel(): Promise<ProcessPanel | undefined> {\n const core = await import(\"@warlock.js/core\");\n if (!(\"srcPath\" in core)) return undefined;\n const { srcPath } = core;\n const { existsSync } = await import(\"node:fs\");\n const { pathToFileURL } = await import(\"node:url\");\n const file = srcPath(\"app/processes/devtools.ts\");\n if (!existsSync(file)) return undefined;\n const module: { processPanel?: ProcessPanel } = await import(pathToFileURL(file).href);\n return module.processPanel;\n}\n\n/**\n * The built-in **Processes** tab, registered like any other panel:\n * `GET <path>/api/processes` lists the app's supervised processes (an empty\n * list without a registration) and `ui/panels/processes.js` renders them.\n */\nexport function processesDevtoolsPanel(processPanel?: ProcessPanel): DevtoolsPanel {\n return {\n id: \"processes\",\n title: \"Processes\",\n view: path.join(resolveUiRoot(), \"panels\", \"processes.js\"),\n routes: [{ path: \"\", handler: async () => (processPanel ? await processPanel.list() : []) }],\n };\n}\n"],"mappings":";;;;;;;AAQA,eAAsB,mBAAsD;CAC1E,MAAM,OAAO,MAAM,OAAO;CAC1B,IAAI,EAAE,aAAa,OAAO,OAAO;CACjC,MAAM,EAAE,YAAY;CACpB,MAAM,EAAE,eAAe,MAAM,OAAO;CACpC,MAAM,EAAE,kBAAkB,MAAM,OAAO;CACvC,MAAM,OAAO,QAAQ,2BAA2B;CAChD,IAAI,CAAC,WAAW,IAAI,GAAG,OAAO;CAE9B,QAAO,MAD+C,OAAO,cAAc,IAAI,CAAC,CAAC,MACpE,CAAC;AAChB;;;;;;AAOA,SAAgB,uBAAuB,cAA4C;CACjF,OAAO;EACL,IAAI;EACJ,OAAO;EACP,MAAMA,kBAAK,KAAKC,gCAAc,GAAG,UAAU,cAAc;EACzD,QAAQ,CAAC;GAAE,MAAM;GAAI,SAAS,YAAa,eAAe,MAAM,aAAa,KAAK,IAAI,CAAC;EAAG,CAAC;CAC7F;AACF"}
1
+ {"version":3,"file":"process-panel-D3D9Y_dc.cjs","names":["path","resolveUiRoot"],"sources":["../../../../../../../packages/devtools/src/process-panel.ts"],"sourcesContent":["import path from \"node:path\";\nimport type { DevtoolsPanel } from \"./types\";\nimport { resolveUiRoot } from \"./ui-root\";\n\n/** Structural contract keeps process supervision an optional application feature. */\nexport type ProcessPanel = { list(): Promise<readonly unknown[]> };\n\n/** Load app-owned generated registration only when devtools boots in development. */\nexport async function loadProcessPanel(): Promise<ProcessPanel | undefined> {\n const core = await import(\"@warlock.js/core\");\n if (!(\"srcPath\" in core)) return undefined;\n const { srcPath } = core;\n const { existsSync } = await import(\"node:fs\");\n const { pathToFileURL } = await import(\"node:url\");\n const file = srcPath(\"app/processes/devtools.ts\");\n if (!existsSync(file)) return undefined;\n const module: { processPanel?: ProcessPanel } = await import(pathToFileURL(file).href);\n return module.processPanel;\n}\n\n/**\n * The built-in **Processes** tab, registered like any other panel:\n * `GET <path>/api/processes` lists the app's supervised processes (an empty\n * list without a registration) and `ui/panels/processes.js` renders them.\n */\nexport function processesDevtoolsPanel(processPanel?: ProcessPanel): DevtoolsPanel {\n return {\n id: \"processes\",\n title: \"Processes\",\n view: path.join(resolveUiRoot(), \"panels\", \"processes.js\"),\n routes: [{ path: \"\", handler: async () => (processPanel ? await processPanel.list() : []) }],\n };\n}\n"],"mappings":";;;;;;;AAQA,eAAsB,mBAAsD;CAC1E,MAAM,OAAO,MAAM,OAAO;CAC1B,IAAI,EAAE,aAAa,OAAO,OAAO;CACjC,MAAM,EAAE,YAAY;CACpB,MAAM,EAAE,eAAe,MAAM,OAAO;CACpC,MAAM,EAAE,kBAAkB,MAAM,OAAO;CACvC,MAAM,OAAO,QAAQ,2BAA2B;CAChD,IAAI,CAAC,WAAW,IAAI,GAAG,OAAO;CAE9B,QAAO,MAD+C,OAAO,cAAc,IAAI,CAAC,CAAC,MACpE,CAAC;AAChB;;;;;;AAOA,SAAgB,uBAAuB,cAA4C;CACjF,OAAO;EACL,IAAI;EACJ,OAAO;EACP,MAAMA,kBAAK,KAAKC,2BAAc,GAAG,UAAU,cAAc;EACzD,QAAQ,CAAC;GAAE,MAAM;GAAI,SAAS,YAAa,eAAe,MAAM,aAAa,KAAK,IAAI,CAAC;EAAG,CAAC;CAC7F;AACF"}
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_errors = require("../errors-DEqdWaqm.cjs");
3
- const require_migrations = require("../migrations-DTTzCNpR.cjs");
2
+ const require_errors = require("../errors-DNQ-g49I.cjs");
3
+ const require_migrations = require("../migrations-BQdNOL5_.cjs");
4
4
  let _warlock_js_core = require("@warlock.js/core");
5
5
 
6
6
  //#region ../../packages/devtools/src/production/cli/actions.ts
@@ -173,7 +173,7 @@ async function exitWith(code) {
173
173
  /** The store of the app's database, or the exit code of the error that stopped it. */
174
174
  async function openStore() {
175
175
  try {
176
- const { createCascadeStore } = await Promise.resolve().then(() => require("../cascade-store-DEGxAFDI.cjs"));
176
+ const { createCascadeStore } = await Promise.resolve().then(() => require("../cascade-store-DUT2Laha.cjs"));
177
177
  return { store: await createCascadeStore() };
178
178
  } catch (error) {
179
179
  return { code: reportStoreError(io, error) };
@@ -213,7 +213,7 @@ function registerDevtoolsCommands() {
213
213
  const email = resolveAdminEmail(options.email, process.env);
214
214
  const opened = await openStore();
215
215
  if (!opened.store) return exitWith(opened.code);
216
- const [{ hashPassword }, { generateTemporaryPassword }] = await Promise.all([import("@warlock.js/core"), Promise.resolve().then(() => require("../auth-DV2GA1A9.cjs"))]);
216
+ const [{ hashPassword }, { generateTemporaryPassword }] = await Promise.all([import("@warlock.js/core"), Promise.resolve().then(() => require("../auth-ChHh5E7j.cjs"))]);
217
217
  await exitWith(await runResetAdmin({
218
218
  store: opened.store,
219
219
  now: Date.now,