@glasstrace/sdk 1.3.8 → 1.4.0

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.
Files changed (61) hide show
  1. package/README.md +68 -0
  2. package/dist/capture-error-BmQz7xF6.d.cts +455 -0
  3. package/dist/capture-error-CTgSYxek.d.ts +455 -0
  4. package/dist/{chunk-XS5W3SPL.js → chunk-4WI7B5FQ.js} +91 -5
  5. package/dist/chunk-4WI7B5FQ.js.map +1 -0
  6. package/dist/{chunk-NKRD3MKG.js → chunk-JZ475QRH.js} +2 -1
  7. package/dist/chunk-JZ475QRH.js.map +1 -0
  8. package/dist/{chunk-GYTCZSAV.js → chunk-MFYOQOD7.js} +2 -2
  9. package/dist/{chunk-4WUHMLMM.js → chunk-MMKFFF2L.js} +2 -2
  10. package/dist/{chunk-FKBCEOJ5.js → chunk-Q42BY5BA.js} +2 -2
  11. package/dist/{chunk-DBKG6SRI.js → chunk-QU26IKIJ.js} +2 -2
  12. package/dist/{chunk-ADUD4PEK.js → chunk-TANUWTFO.js} +3 -3
  13. package/dist/{chunk-LJMZXJ45.js → chunk-VJQIFY33.js} +3 -3
  14. package/dist/{chunk-E23HN24Z.js → chunk-VQDYXXVS.js} +9 -9
  15. package/dist/cli/init.cjs +14 -2
  16. package/dist/cli/init.cjs.map +1 -1
  17. package/dist/cli/init.js +7 -7
  18. package/dist/cli/mcp-add.cjs +13 -1
  19. package/dist/cli/mcp-add.cjs.map +1 -1
  20. package/dist/cli/mcp-add.js +3 -3
  21. package/dist/cli/uninit.js +3 -3
  22. package/dist/cli/validate.cjs +12 -1
  23. package/dist/cli/validate.cjs.map +1 -1
  24. package/dist/cli/validate.js +2 -2
  25. package/dist/{edge-entry-BSKA1l_0.d.ts → edge-entry-AWO70gje.d.ts} +1 -1
  26. package/dist/{edge-entry-DyMWa6JK.d.cts → edge-entry-DaeG7D7S.d.cts} +1 -1
  27. package/dist/edge-entry.cjs +43 -2
  28. package/dist/edge-entry.cjs.map +1 -1
  29. package/dist/edge-entry.d.cts +2 -2
  30. package/dist/edge-entry.d.ts +2 -2
  31. package/dist/edge-entry.js +2 -2
  32. package/dist/index.cjs +369 -8
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/{index.d-Bo_Rxund.d.cts → index.d-Dq33YwFT.d.cts} +91 -1
  35. package/dist/{index.d-Bo_Rxund.d.ts → index.d-Dq33YwFT.d.ts} +91 -1
  36. package/dist/index.d.cts +91 -431
  37. package/dist/index.d.ts +91 -431
  38. package/dist/index.js +290 -6
  39. package/dist/index.js.map +1 -1
  40. package/dist/node-entry.cjs +49 -7
  41. package/dist/node-entry.cjs.map +1 -1
  42. package/dist/node-entry.d.cts +3 -3
  43. package/dist/node-entry.d.ts +3 -3
  44. package/dist/node-entry.js +7 -7
  45. package/dist/node-subpath.cjs +12 -1
  46. package/dist/node-subpath.cjs.map +1 -1
  47. package/dist/node-subpath.d.cts +1 -1
  48. package/dist/node-subpath.d.ts +1 -1
  49. package/dist/node-subpath.js +3 -3
  50. package/dist/{source-map-uploader-FSTHCYDR.js → source-map-uploader-PB3M4PPP.js} +3 -3
  51. package/package.json +1 -1
  52. package/dist/chunk-NKRD3MKG.js.map +0 -1
  53. package/dist/chunk-XS5W3SPL.js.map +0 -1
  54. /package/dist/{chunk-GYTCZSAV.js.map → chunk-MFYOQOD7.js.map} +0 -0
  55. /package/dist/{chunk-4WUHMLMM.js.map → chunk-MMKFFF2L.js.map} +0 -0
  56. /package/dist/{chunk-FKBCEOJ5.js.map → chunk-Q42BY5BA.js.map} +0 -0
  57. /package/dist/{chunk-DBKG6SRI.js.map → chunk-QU26IKIJ.js.map} +0 -0
  58. /package/dist/{chunk-ADUD4PEK.js.map → chunk-TANUWTFO.js.map} +0 -0
  59. /package/dist/{chunk-LJMZXJ45.js.map → chunk-VJQIFY33.js.map} +0 -0
  60. /package/dist/{chunk-E23HN24Z.js.map → chunk-VQDYXXVS.js.map} +0 -0
  61. /package/dist/{source-map-uploader-FSTHCYDR.js.map → source-map-uploader-PB3M4PPP.js.map} +0 -0
@@ -1,7 +1,7 @@
1
- export { C as CorrelationIdRequest, G as GlasstraceSpanProcessor, S as SdkError, a as SessionManager, c as captureCorrelationId, g as getDateString, b as getOrigin } from './edge-entry-DyMWa6JK.cjs';
2
- export { FetchTarget, GlasstraceExporter, GlasstraceExporterOptions, InitClaimResult, ResolvedConfig, captureError, classifyFetchTarget, createGlasstraceSpanProcessor, getActiveConfig, getDiscoveryHandler, getLinkedAccountId, getOrCreateAnonKey, getStatus, isAnonymousMode, isProductionDisabled, isReady, loadCachedConfig, performInit, readAnonKey, readEnvVars, registerGlasstrace, resolveConfig, saveCachedConfig, sendInitRequest, waitForReady, withGlasstraceConfig } from './index.cjs';
1
+ export { C as CorrelationIdRequest, G as GlasstraceSpanProcessor, S as SdkError, a as SessionManager, c as captureCorrelationId, g as getDateString, b as getOrigin } from './edge-entry-DaeG7D7S.cjs';
2
+ export { F as FetchTarget, G as GlasstraceExporter, a as GlasstraceExporterOptions, I as InitClaimResult, R as ResolvedConfig, c as captureError, b as classifyFetchTarget, d as createGlasstraceSpanProcessor, g as getActiveConfig, e as getDiscoveryHandler, f as getLinkedAccountId, h as getOrCreateAnonKey, i as getStatus, j as isAnonymousMode, k as isProductionDisabled, l as isReady, m as loadCachedConfig, p as performInit, r as readAnonKey, n as readEnvVars, o as registerGlasstrace, q as resolveConfig, s as saveCachedConfig, t as sendInitRequest, w as waitForReady, u as withGlasstraceConfig } from './capture-error-BmQz7xF6.cjs';
3
3
  export { AutoUploadOptions, BlobUploader, PRESIGNED_THRESHOLD_BYTES, SourceMapEntry, SourceMapFileInfo, buildImportGraph, collectSourceMaps, computeBuildHash, discoverSourceMapFiles, discoverTestFiles, extractImports, uploadSourceMaps, uploadSourceMapsAuto, uploadSourceMapsPresigned } from './node-subpath.cjs';
4
- export { d as deriveSessionId } from './index.d-Bo_Rxund.cjs';
4
+ export { d as deriveSessionId } from './index.d-Dq33YwFT.cjs';
5
5
  import './export/ReadableSpan';
6
6
  import './Span';
7
7
  import './SpanProcessor';
@@ -1,7 +1,7 @@
1
- export { C as CorrelationIdRequest, G as GlasstraceSpanProcessor, S as SdkError, a as SessionManager, c as captureCorrelationId, g as getDateString, b as getOrigin } from './edge-entry-BSKA1l_0.js';
2
- export { FetchTarget, GlasstraceExporter, GlasstraceExporterOptions, InitClaimResult, ResolvedConfig, captureError, classifyFetchTarget, createGlasstraceSpanProcessor, getActiveConfig, getDiscoveryHandler, getLinkedAccountId, getOrCreateAnonKey, getStatus, isAnonymousMode, isProductionDisabled, isReady, loadCachedConfig, performInit, readAnonKey, readEnvVars, registerGlasstrace, resolveConfig, saveCachedConfig, sendInitRequest, waitForReady, withGlasstraceConfig } from './index.js';
1
+ export { C as CorrelationIdRequest, G as GlasstraceSpanProcessor, S as SdkError, a as SessionManager, c as captureCorrelationId, g as getDateString, b as getOrigin } from './edge-entry-AWO70gje.js';
2
+ export { F as FetchTarget, G as GlasstraceExporter, a as GlasstraceExporterOptions, I as InitClaimResult, R as ResolvedConfig, c as captureError, b as classifyFetchTarget, d as createGlasstraceSpanProcessor, g as getActiveConfig, e as getDiscoveryHandler, f as getLinkedAccountId, h as getOrCreateAnonKey, i as getStatus, j as isAnonymousMode, k as isProductionDisabled, l as isReady, m as loadCachedConfig, p as performInit, r as readAnonKey, n as readEnvVars, o as registerGlasstrace, q as resolveConfig, s as saveCachedConfig, t as sendInitRequest, w as waitForReady, u as withGlasstraceConfig } from './capture-error-CTgSYxek.js';
3
3
  export { AutoUploadOptions, BlobUploader, PRESIGNED_THRESHOLD_BYTES, SourceMapEntry, SourceMapFileInfo, buildImportGraph, collectSourceMaps, computeBuildHash, discoverSourceMapFiles, discoverTestFiles, extractImports, uploadSourceMaps, uploadSourceMapsAuto, uploadSourceMapsPresigned } from './node-subpath.js';
4
- export { d as deriveSessionId } from './index.d-Bo_Rxund.js';
4
+ export { d as deriveSessionId } from './index.d-Dq33YwFT.js';
5
5
  import './export/ReadableSpan';
6
6
  import './Span';
7
7
  import './SpanProcessor';
@@ -12,12 +12,12 @@ import {
12
12
  registerGlasstrace,
13
13
  waitForReady,
14
14
  withGlasstraceConfig
15
- } from "./chunk-E23HN24Z.js";
15
+ } from "./chunk-VQDYXXVS.js";
16
16
  import {
17
17
  GlasstraceSpanProcessor,
18
18
  SdkError,
19
19
  captureCorrelationId
20
- } from "./chunk-FKBCEOJ5.js";
20
+ } from "./chunk-Q42BY5BA.js";
21
21
  import "./chunk-DQ25VOKK.js";
22
22
  import {
23
23
  PRESIGNED_THRESHOLD_BYTES,
@@ -27,7 +27,7 @@ import {
27
27
  uploadSourceMaps,
28
28
  uploadSourceMapsAuto,
29
29
  uploadSourceMapsPresigned
30
- } from "./chunk-DBKG6SRI.js";
30
+ } from "./chunk-QU26IKIJ.js";
31
31
  import "./chunk-YG3X7TUI.js";
32
32
  import {
33
33
  getActiveConfig,
@@ -36,12 +36,12 @@ import {
36
36
  performInit,
37
37
  saveCachedConfig,
38
38
  sendInitRequest
39
- } from "./chunk-ADUD4PEK.js";
39
+ } from "./chunk-TANUWTFO.js";
40
40
  import {
41
41
  buildImportGraph,
42
42
  discoverTestFiles,
43
43
  extractImports
44
- } from "./chunk-4WUHMLMM.js";
44
+ } from "./chunk-MMKFFF2L.js";
45
45
  import {
46
46
  isAnonymousMode,
47
47
  isProductionDisabled,
@@ -51,10 +51,10 @@ import {
51
51
  import {
52
52
  getOrCreateAnonKey,
53
53
  readAnonKey
54
- } from "./chunk-GYTCZSAV.js";
54
+ } from "./chunk-MFYOQOD7.js";
55
55
  import {
56
56
  deriveSessionId
57
- } from "./chunk-XS5W3SPL.js";
57
+ } from "./chunk-4WI7B5FQ.js";
58
58
  import "./chunk-NSBPE2FW.js";
59
59
  export {
60
60
  GlasstraceExporter,
@@ -13852,7 +13852,18 @@ var CaptureConfigSchema = external_exports.object({
13852
13852
  fullConsoleOutput: external_exports.boolean(),
13853
13853
  importGraph: external_exports.boolean(),
13854
13854
  consoleErrors: external_exports.boolean().optional().default(false),
13855
- errorResponseBodies: external_exports.boolean().optional().default(false)
13855
+ errorResponseBodies: external_exports.boolean().optional().default(false),
13856
+ /**
13857
+ * Account opt-in for side-effect evidence emission (SDK-049).
13858
+ *
13859
+ * When `false` (default), `recordSideEffect()` is a silent no-op:
13860
+ * no allowlist evaluation runs and no `glasstrace.side_effect.*`
13861
+ * attribute reaches the wire. When `true`, allowlisted side-effect
13862
+ * metadata is attached to the active OTel span subject to the
13863
+ * client-side allowlist enforcement layered with the product's
13864
+ * storage-time filter as defense-in-depth.
13865
+ */
13866
+ sideEffectEvidence: external_exports.boolean().optional().default(false)
13856
13867
  });
13857
13868
  var SdkCachedConfigSchema = external_exports.object({
13858
13869
  response: external_exports.record(external_exports.string(), external_exports.unknown()),