@bitfab/sdk 0.64.13 → 0.64.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.
@@ -2,7 +2,7 @@ import {
2
2
  BitfabError,
3
3
  warnOnce,
4
4
  writeOnce
5
- } from "./chunk-JN3C4PIV.js";
5
+ } from "./chunk-KVGRTCIE.js";
6
6
 
7
7
  // src/codeChange.ts
8
8
  var NUL = String.fromCharCode(0);
@@ -245,7 +245,8 @@ async function pinnedDatasetMembers(client, datasetIds, limit, onlyWithAssertion
245
245
  return boundTraceIds(client, ordered, limit, onlyWithAssertions);
246
246
  }
247
247
  function usage(registry) {
248
- return `Usage: bitfab-replay --registry <path> <${Object.keys(registry).join("|")}> [options]
248
+ const pipelines = registry === void 0 ? "pipeline" : Object.keys(registry).join("|");
249
+ return `Usage: bitfab-replay --registry <path> <${pipelines}> [options]
249
250
 
250
251
  Options:
251
252
  --limit N (bounds a trace ID or dataset selection instead of replacing it)
@@ -348,7 +349,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
348
349
  sessionId: seedCase.sessionId
349
350
  })
350
351
  );
351
- const { flushTraces: flushTraces2 } = await import("./http-4DPVYNI3.js");
352
+ const { flushTraces: flushTraces2 } = await import("./http-36VJ3FFM.js");
352
353
  await flushTraces2(3e4);
353
354
  return { pipeline, traceFunctionKey, traceIds };
354
355
  }
@@ -430,12 +431,15 @@ function commaSeparated(flag, raw) {
430
431
  }
431
432
  return values;
432
433
  }
434
+ function checkReplayCliArgs(argv) {
435
+ parseReplayCliArgs(void 0, argv);
436
+ }
433
437
  function parseReplayCliArgs(registry, argv) {
434
438
  if (argv.some((value) => HELP_FLAGS.has(value))) {
435
439
  throw new ReplayCliHelp(usage(registry));
436
440
  }
437
441
  const pipeline = argv[0];
438
- if (pipeline === void 0 || registry[pipeline] === void 0) {
442
+ if (pipeline === void 0 || registry !== void 0 && registry[pipeline] === void 0) {
439
443
  throw new BitfabError(usage(registry));
440
444
  }
441
445
  const parsed = { pipeline, params: [], flags: {} };
@@ -1035,6 +1039,7 @@ function runIfEntrypoint(moduleUrl, main) {
1035
1039
 
1036
1040
  export {
1037
1041
  runSeedCli,
1042
+ checkReplayCliArgs,
1038
1043
  runReplayCli,
1039
1044
  parseRegistryCommandArgs,
1040
1045
  importRegistry,
@@ -1042,4 +1047,4 @@ export {
1042
1047
  runRegistryMain,
1043
1048
  runIfEntrypoint
1044
1049
  };
1045
- //# sourceMappingURL=chunk-NEQA2IBO.js.map
1050
+ //# sourceMappingURL=chunk-2MHRNZH5.js.map