bitfab 0.64.10 → 0.64.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.
package/dist/index.d.cts CHANGED
@@ -1486,6 +1486,7 @@ type ExperimentTotals = {
1486
1486
  errored: number;
1487
1487
  withErrors: number;
1488
1488
  ungradable: number;
1489
+ judging: number;
1489
1490
  skipped: number;
1490
1491
  };
1491
1492
  type ExperimentCategoryTally = {
@@ -3995,7 +3996,7 @@ interface CommitRef {
3995
3996
  /**
3996
3997
  * SDK version from package.json (injected at build time)
3997
3998
  */
3998
- declare const __version__ = "0.64.10";
3999
+ declare const __version__ = "0.64.12";
3999
4000
 
4000
4001
  /**
4001
4002
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -1486,6 +1486,7 @@ type ExperimentTotals = {
1486
1486
  errored: number;
1487
1487
  withErrors: number;
1488
1488
  ungradable: number;
1489
+ judging: number;
1489
1490
  skipped: number;
1490
1491
  };
1491
1492
  type ExperimentCategoryTally = {
@@ -3995,7 +3996,7 @@ interface CommitRef {
3995
3996
  /**
3996
3997
  * SDK version from package.json (injected at build time)
3997
3998
  */
3998
- declare const __version__ = "0.64.10";
3999
+ declare const __version__ = "0.64.12";
3999
4000
 
4000
4001
  /**
4001
4002
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ import {
36
36
  getCurrentTrace,
37
37
  reseedFromRegistry,
38
38
  seedFromRegistry
39
- } from "./chunk-3G5TGJVI.js";
39
+ } from "./chunk-ENDINEUP.js";
40
40
  import "./chunk-YWXQM6J3.js";
41
41
  import {
42
42
  BITFAB_PROGRESS_PREFIX,
@@ -45,7 +45,7 @@ import {
45
45
  ReplayError,
46
46
  reportReplayProgress,
47
47
  serializeReplayResult
48
- } from "./chunk-OJLA3ZGO.js";
48
+ } from "./chunk-N63C4XC6.js";
49
49
  import {
50
50
  BitfabError,
51
51
  DEFAULT_SERVICE_URL,
@@ -53,7 +53,7 @@ import {
53
53
  MixedTracingError,
54
54
  __version__,
55
55
  flushTraces
56
- } from "./chunk-Z5VGFZEI.js";
56
+ } from "./chunk-3T32S5N7.js";
57
57
  import "./chunk-MT36GJMW.js";
58
58
  export {
59
59
  AssertionCategoriesClient,
package/dist/node.cjs CHANGED
@@ -97,7 +97,7 @@ var __version__, __packageName__;
97
97
  var init_version_generated = __esm({
98
98
  "src/version.generated.ts"() {
99
99
  "use strict";
100
- __version__ = "0.64.10";
100
+ __version__ = "0.64.12";
101
101
  __packageName__ = "bitfab";
102
102
  }
103
103
  });
@@ -1072,7 +1072,7 @@ function recordedError(payload) {
1072
1072
  const error = spanDataOf(payload)?.error;
1073
1073
  return error !== void 0 && error !== null;
1074
1074
  }
1075
- 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;
1075
+ 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;
1076
1076
  var init_simulationPlan = __esm({
1077
1077
  "src/simulationPlan.ts"() {
1078
1078
  "use strict";
@@ -1086,6 +1086,7 @@ var init_simulationPlan = __esm({
1086
1086
  SIMULATION_PLAN_READ_TIMEOUT_MS = 5e3;
1087
1087
  SIMULATION_PLAN_MAX_HELD = 1e3;
1088
1088
  DISABLE_SIMULATION_PLAN_ENV = "BITFAB_DISABLE_SIM_PLAN";
1089
+ NO_API_KEY_FOR_SIMULATION_PLAN = "no API key is set";
1089
1090
  ROOT_TRACE_FUNCTION_KEY_FIELD = "rootTraceFunctionKey";
1090
1091
  DECLARED_NODE_FIELD = "declaredNode";
1091
1092
  CONTENT_OFF_KEY = "content_off_by_simulation_plan";
@@ -2732,6 +2733,9 @@ var init_http = __esm({
2732
2733
  return this.request("/api/sdk/functions/lookup", { name });
2733
2734
  }
2734
2735
  async getSimulationPlan() {
2736
+ if (!this.hasApiKey()) {
2737
+ throw new BitfabError(NO_API_KEY_FOR_SIMULATION_PLAN);
2738
+ }
2735
2739
  return this.get(
2736
2740
  "/api/sdk/sim-plan",
2737
2741
  SIMULATION_PLAN_READ_TIMEOUT_MS