@levr-one/cli 0.12.12 → 0.12.14

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.
@@ -217,6 +217,52 @@ const CAPTURE_KINDS = Object.freeze({
217
217
  maxBytes: 50 * MIB,
218
218
  uploadTimeoutMs: uploadTimeoutFor(50 * MIB),
219
219
  viewer: "video"
220
+ },
221
+ action_trace: {
222
+ id: "action_trace",
223
+ labelKey: "browserCaptures.kindActionTrace",
224
+ label: "Action trace",
225
+ noun: "action trace",
226
+ tools: ["browser_stop_trace"],
227
+ mime: "application/x-ndjson",
228
+ uploadMime: OCTET_STREAM,
229
+ ext: "jsonl",
230
+ filenamePrefix: "trace-actions",
231
+ maxBytes: 25 * MIB,
232
+ uploadTimeoutMs: uploadTimeoutFor(25 * MIB),
233
+ viewer: "action_trace"
234
+ },
235
+ demo_screencast: {
236
+ id: "demo_screencast",
237
+ labelKey: "browserCaptures.kindDemoRecording",
238
+ label: "Demo recording",
239
+ noun: "demo recording",
240
+ tools: [],
241
+ mime: "video/webm",
242
+ uploadMime: "video/webm",
243
+ ext: "webm",
244
+ filenamePrefix: "demo",
245
+ maxBytes: 1024 * MIB,
246
+ uploadTimeoutMs: uploadTimeoutFor(1024 * MIB),
247
+ viewer: "video",
248
+ multipart: true,
249
+ variantOf: "screencast"
250
+ },
251
+ demo_frames: {
252
+ id: "demo_frames",
253
+ labelKey: "browserCaptures.kindDemoFrames",
254
+ label: "Demo frames",
255
+ noun: "demo frame bundle",
256
+ tools: [],
257
+ mime: "application/x-tar",
258
+ uploadMime: OCTET_STREAM,
259
+ ext: "tar",
260
+ filenamePrefix: "demo-frames",
261
+ maxBytes: 1024 * MIB,
262
+ uploadTimeoutMs: uploadTimeoutFor(1024 * MIB),
263
+ viewer: "download",
264
+ multipart: true,
265
+ variantOf: "screencast"
220
266
  }
221
267
  });
222
268
  /** Every tool of every kind. */
@@ -316,6 +362,29 @@ const ORDERING_FIXTURES = [
316
362
  }
317
363
  ];
318
364
 
365
+ //#endregion
366
+ //#region ../shared/dist/runs/automation-retention.js
367
+ /** The newest runs of every source are always kept. Not configurable. */
368
+ const AUTOMATION_RETENTION_FLOOR = 10;
369
+ const AUTOMATION_RETENTION_MAX_RUNS_MIN = AUTOMATION_RETENTION_FLOOR;
370
+ const AUTOMATION_RETENTION_MAX_RUNS_MAX = 1e4;
371
+ /**
372
+ * The stored value of the retention setting. Strict: an unknown key is a
373
+ * malformed value, not something to carry along silently.
374
+ */
375
+ const AutomationRetentionSettingSchema = z.object({
376
+ days: z.union([
377
+ z.literal(30),
378
+ z.literal(90),
379
+ z.literal(180)
380
+ ]),
381
+ maxRunsPerSource: z.number().int().min(AUTOMATION_RETENTION_MAX_RUNS_MIN).max(AUTOMATION_RETENTION_MAX_RUNS_MAX)
382
+ }).strict();
383
+ const AUTOMATION_RETENTION_DEFAULTS = Object.freeze({
384
+ days: 90,
385
+ maxRunsPerSource: 100
386
+ });
387
+
319
388
  //#endregion
320
389
  //#region ../shared/dist/runs/gate-command-pattern.js
321
390
  /** Package managers, fetchers, interpreters, shells, and wrappers. */
package/dist/cli.js CHANGED
@@ -688,7 +688,7 @@ Examples:
688
688
  }
689
689
  },
690
690
  loader: async () => {
691
- const { gatesBindingsExportHandler } = await import("./bindingsHandler-BR_vk1eC.js");
691
+ const { gatesBindingsExportHandler } = await import("./bindingsHandler-8XKyaTyq.js");
692
692
  return gatesBindingsExportHandler;
693
693
  }
694
694
  });
@@ -761,7 +761,7 @@ Examples:
761
761
  aliases: { w: "workspace-id" }
762
762
  },
763
763
  loader: async () => {
764
- const { gatesBindingsImportHandler } = await import("./bindingsHandler-BR_vk1eC.js");
764
+ const { gatesBindingsImportHandler } = await import("./bindingsHandler-8XKyaTyq.js");
765
765
  return gatesBindingsImportHandler;
766
766
  }
767
767
  });
@@ -1248,7 +1248,7 @@ Examples:
1248
1248
 
1249
1249
  //#endregion
1250
1250
  //#region package.json
1251
- var version = "0.12.12";
1251
+ var version = "0.12.14";
1252
1252
 
1253
1253
  //#endregion
1254
1254
  //#region src/app.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levr-one/cli",
3
- "version": "0.12.12",
3
+ "version": "0.12.14",
4
4
  "description": "The command-line interface for Levr",
5
5
  "type": "module",
6
6
  "license": "MIT",