@bitfab/sdk 0.64.9 → 0.64.11

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-GGS5YCPE.js";
5
+ } from "./chunk-3H3QMZBN.js";
6
6
 
7
7
  // src/codeChange.ts
8
8
  var NUL = String.fromCharCode(0);
@@ -348,7 +348,7 @@ async function seedFromRegistry(registry, pipeline, cases, options = {}) {
348
348
  sessionId: seedCase.sessionId
349
349
  })
350
350
  );
351
- const { flushTraces: flushTraces2 } = await import("./http-WXBCXZ33.js");
351
+ const { flushTraces: flushTraces2 } = await import("./http-PXJMOXSK.js");
352
352
  await flushTraces2(3e4);
353
353
  return { pipeline, traceFunctionKey, traceIds };
354
354
  }
@@ -1042,4 +1042,4 @@ export {
1042
1042
  runRegistryMain,
1043
1043
  runIfEntrypoint
1044
1044
  };
1045
- //# sourceMappingURL=chunk-Z3C5PXTK.js.map
1045
+ //# sourceMappingURL=chunk-TRI76PWA.js.map
@@ -8,7 +8,7 @@ import {
8
8
  replayContextReady,
9
9
  runWithReplayContext,
10
10
  unrefTimer
11
- } from "./chunk-FGGLYMZD.js";
11
+ } from "./chunk-A6RYFTIX.js";
12
12
  import {
13
13
  runWithCaptureSuppressed,
14
14
  warnOnce,
@@ -2031,4 +2031,4 @@ export {
2031
2031
  warnJudgeAssertionsDeprecated,
2032
2032
  replay
2033
2033
  };
2034
- //# sourceMappingURL=chunk-MGQ6V3CE.js.map
2034
+ //# sourceMappingURL=chunk-ZCT6YKKG.js.map
@@ -7,7 +7,7 @@ import {
7
7
  flushTraces,
8
8
  parseRetryAfterMs,
9
9
  serializePayloadBody
10
- } from "./chunk-GGS5YCPE.js";
10
+ } from "./chunk-3H3QMZBN.js";
11
11
  export {
12
12
  BitfabError,
13
13
  HttpClient,
@@ -18,4 +18,4 @@ export {
18
18
  parseRetryAfterMs,
19
19
  serializePayloadBody
20
20
  };
21
- //# sourceMappingURL=http-WXBCXZ33.js.map
21
+ //# sourceMappingURL=http-PXJMOXSK.js.map
@@ -7,7 +7,7 @@ import {
7
7
  flushTraces,
8
8
  parseRetryAfterMs,
9
9
  serializePayloadBody
10
- } from "./chunk-FGGLYMZD.js";
10
+ } from "./chunk-A6RYFTIX.js";
11
11
  import "./chunk-MT36GJMW.js";
12
12
  export {
13
13
  BitfabError,
@@ -19,4 +19,4 @@ export {
19
19
  parseRetryAfterMs,
20
20
  serializePayloadBody
21
21
  };
22
- //# sourceMappingURL=http-7K4MGDNE.js.map
22
+ //# sourceMappingURL=http-QCQPXTCA.js.map
package/dist/index.cjs CHANGED
@@ -42,7 +42,7 @@ var __version__, __packageName__;
42
42
  var init_version_generated = __esm({
43
43
  "src/version.generated.ts"() {
44
44
  "use strict";
45
- __version__ = "0.64.9";
45
+ __version__ = "0.64.11";
46
46
  __packageName__ = "@bitfab/sdk";
47
47
  }
48
48
  });
@@ -1056,7 +1056,7 @@ function recordedError(payload) {
1056
1056
  const error = spanDataOf(payload)?.error;
1057
1057
  return error !== void 0 && error !== null;
1058
1058
  }
1059
- var SIMULATION_PLAN_REFRESH_MS, SIMULATION_PLAN_RETRY_MS, SIMULATION_PLAN_READ_TIMEOUT_MS, SIMULATION_PLAN_MAX_HELD, DISABLE_SIMULATION_PLAN_ENV, ROOT_TRACE_FUNCTION_KEY_FIELD, DECLARED_NODE_FIELD, CONTENT_OFF_KEY, CONTENT_KEYS, SimulationPlan;
1059
+ var SIMULATION_PLAN_REFRESH_MS, SIMULATION_PLAN_RETRY_MS, SIMULATION_PLAN_READ_TIMEOUT_MS, SIMULATION_PLAN_MAX_HELD, DISABLE_SIMULATION_PLAN_ENV, NO_API_KEY_FOR_SIMULATION_PLAN, ROOT_TRACE_FUNCTION_KEY_FIELD, DECLARED_NODE_FIELD, CONTENT_OFF_KEY, CONTENT_KEYS, SimulationPlan;
1060
1060
  var init_simulationPlan = __esm({
1061
1061
  "src/simulationPlan.ts"() {
1062
1062
  "use strict";
@@ -1070,6 +1070,7 @@ var init_simulationPlan = __esm({
1070
1070
  SIMULATION_PLAN_READ_TIMEOUT_MS = 5e3;
1071
1071
  SIMULATION_PLAN_MAX_HELD = 1e3;
1072
1072
  DISABLE_SIMULATION_PLAN_ENV = "BITFAB_DISABLE_SIM_PLAN";
1073
+ NO_API_KEY_FOR_SIMULATION_PLAN = "no API key is set";
1073
1074
  ROOT_TRACE_FUNCTION_KEY_FIELD = "rootTraceFunctionKey";
1074
1075
  DECLARED_NODE_FIELD = "declaredNode";
1075
1076
  CONTENT_OFF_KEY = "content_off_by_simulation_plan";
@@ -2716,6 +2717,9 @@ var init_http = __esm({
2716
2717
  return this.request("/api/sdk/functions/lookup", { name });
2717
2718
  }
2718
2719
  async getSimulationPlan() {
2720
+ if (!this.hasApiKey()) {
2721
+ throw new BitfabError(NO_API_KEY_FOR_SIMULATION_PLAN);
2722
+ }
2719
2723
  return this.get(
2720
2724
  "/api/sdk/sim-plan",
2721
2725
  SIMULATION_PLAN_READ_TIMEOUT_MS