bitfab 0.38.5 → 0.38.6

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.
@@ -5,7 +5,7 @@ import {
5
5
  runWithAutoTraceContext,
6
6
  runWithAutoTraceNodeConfiguration,
7
7
  runWithAutoTraceRootContext
8
- } from "./chunk-J47KPS77.js";
8
+ } from "./chunk-ZUD7OFYB.js";
9
9
  import {
10
10
  BitfabError,
11
11
  DEFAULT_SERVICE_URL,
@@ -19,7 +19,7 @@ import {
19
19
  toJsonSafe,
20
20
  toJsonSafeReport,
21
21
  warnOnce
22
- } from "./chunk-ZXJ3VQLF.js";
22
+ } from "./chunk-O75EYGVO.js";
23
23
  import {
24
24
  __privateAdd,
25
25
  __privateGet,
@@ -2393,8 +2393,9 @@ var Bitfab = class {
2393
2393
  * Decorate a class method as an automatically expanded trace root.
2394
2394
  *
2395
2395
  * Build instrumentation turns repository functions called beneath this
2396
- * method into nested spans. Every generated span preserves structure; only
2397
- * function IDs selected by the capture policy include inputs and output.
2396
+ * method into nested spans that capture inputs, outputs, and errors by
2397
+ * default. A confirmed capture policy can narrow rich capture to selected
2398
+ * function IDs.
2398
2399
  * Without a compatible build transform, this still records the decorated
2399
2400
  * method as a normal rich root span but cannot discover child calls.
2400
2401
  *
@@ -2604,7 +2605,7 @@ var Bitfab = class {
2604
2605
  type: nodeConfiguration?.type ?? "function",
2605
2606
  captureWhen: "nested",
2606
2607
  functionId: definition.id,
2607
- captureContent: nodeConfiguration !== void 0 || capturePolicy.has(definition.id),
2608
+ captureContent: nodeConfiguration !== void 0 || capturePolicy === void 0 || capturePolicy.has(definition.id),
2608
2609
  autoTraceDefinition: definition,
2609
2610
  ...nodeConfiguration?.testRunId !== void 0 && {
2610
2611
  testRunId: nodeConfiguration.testRunId
@@ -2669,7 +2670,11 @@ var Bitfab = class {
2669
2670
  const functionIds = Array.isArray(policy.functionIds) ? policy.functionIds.filter(
2670
2671
  (id) => typeof id === "string" && id.startsWith(`${AUTO_TRACE_PROTOCOL}:`)
2671
2672
  ).slice(0, DEFAULT_AUTO_TRACE_MAX_SPANS) : [];
2672
- __setBitfabAutoTraceCapturePolicy(this, traceFunctionKey, functionIds);
2673
+ __setBitfabAutoTraceCapturePolicy(
2674
+ this,
2675
+ traceFunctionKey,
2676
+ policy.revision === null ? void 0 : functionIds
2677
+ );
2673
2678
  state.refreshAfter = Date.now() + AUTO_TRACE_POLICY_REFRESH_MS;
2674
2679
  }).catch(() => {
2675
2680
  state.refreshAfter = Date.now() + AUTO_TRACE_POLICY_RETRY_MS;
@@ -3806,7 +3811,7 @@ var Bitfab = class {
3806
3811
  `Function is wrapped with trace function key '${wrappedKey}' but replay was called with '${traceFunctionKey}'. Pass matching keys, or pass the unwrapped function to replay it under the explicit key.`
3807
3812
  );
3808
3813
  }
3809
- const { replay: doReplay } = await import("./replay-HTVEYGC5.js");
3814
+ const { replay: doReplay } = await import("./replay-K3UMQAKO.js");
3810
3815
  return doReplay(
3811
3816
  this.httpClient,
3812
3817
  this.serviceUrl,
@@ -4050,4 +4055,4 @@ export {
4050
4055
  finalizers,
4051
4056
  defineReplayRegistry
4052
4057
  };
4053
- //# sourceMappingURL=chunk-LQDCJPVV.js.map
4058
+ //# sourceMappingURL=chunk-YCTQONNS.js.map