@glasstrace/sdk 1.3.6 → 1.3.7

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 (51) hide show
  1. package/README.md +23 -18
  2. package/dist/{chunk-QJVAKVQJ.js → chunk-4WUHMLMM.js} +2 -2
  3. package/dist/{chunk-BQKPRFLF.js → chunk-DBKG6SRI.js} +2 -2
  4. package/dist/{chunk-WKOQJCFN.js → chunk-FKBCEOJ5.js} +2 -2
  5. package/dist/{chunk-IY6A6EXS.js → chunk-LW7474ZA.js} +9 -9
  6. package/dist/{chunk-IY6A6EXS.js.map → chunk-LW7474ZA.js.map} +1 -1
  7. package/dist/{chunk-E62DL2H4.js → chunk-TUFUV43S.js} +3 -3
  8. package/dist/{chunk-LQKJ27LO.js → chunk-V2S7BSV4.js} +2 -2
  9. package/dist/{chunk-M4ZI7J3N.js → chunk-XS5W3SPL.js} +1 -1
  10. package/dist/{chunk-M4ZI7J3N.js.map → chunk-XS5W3SPL.js.map} +1 -1
  11. package/dist/{chunk-3HWBR7XM.js → chunk-YSBGMBI5.js} +3 -3
  12. package/dist/cli/init.cjs +2 -2
  13. package/dist/cli/init.cjs.map +1 -1
  14. package/dist/cli/init.js +7 -7
  15. package/dist/cli/init.js.map +1 -1
  16. package/dist/cli/mcp-add.cjs.map +1 -1
  17. package/dist/cli/mcp-add.js +2 -2
  18. package/dist/cli/uninit.js +3 -3
  19. package/dist/cli/validate.cjs.map +1 -1
  20. package/dist/cli/validate.js +2 -2
  21. package/dist/{edge-entry-shCc8_Y1.d.ts → edge-entry-BSKA1l_0.d.ts} +1 -1
  22. package/dist/{edge-entry-DT9OhPTC.d.cts → edge-entry-DyMWa6JK.d.cts} +1 -1
  23. package/dist/edge-entry.cjs.map +1 -1
  24. package/dist/edge-entry.d.cts +2 -2
  25. package/dist/edge-entry.d.ts +2 -2
  26. package/dist/edge-entry.js +2 -2
  27. package/dist/index.cjs +4 -4
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/{index.d-DiI6uVEW.d.cts → index.d-Bo_Rxund.d.cts} +4 -1
  30. package/dist/{index.d-DiI6uVEW.d.ts → index.d-Bo_Rxund.d.ts} +4 -1
  31. package/dist/index.d.cts +4 -4
  32. package/dist/index.d.ts +4 -4
  33. package/dist/index.js +5 -5
  34. package/dist/node-entry.cjs +4 -4
  35. package/dist/node-entry.cjs.map +1 -1
  36. package/dist/node-entry.d.cts +2 -2
  37. package/dist/node-entry.d.ts +2 -2
  38. package/dist/node-entry.js +7 -7
  39. package/dist/node-subpath.cjs.map +1 -1
  40. package/dist/node-subpath.d.cts +1 -1
  41. package/dist/node-subpath.d.ts +1 -1
  42. package/dist/node-subpath.js +3 -3
  43. package/dist/{source-map-uploader-JAD3XM4F.js → source-map-uploader-FSTHCYDR.js} +3 -3
  44. package/package.json +1 -1
  45. /package/dist/{chunk-QJVAKVQJ.js.map → chunk-4WUHMLMM.js.map} +0 -0
  46. /package/dist/{chunk-BQKPRFLF.js.map → chunk-DBKG6SRI.js.map} +0 -0
  47. /package/dist/{chunk-WKOQJCFN.js.map → chunk-FKBCEOJ5.js.map} +0 -0
  48. /package/dist/{chunk-E62DL2H4.js.map → chunk-TUFUV43S.js.map} +0 -0
  49. /package/dist/{chunk-LQKJ27LO.js.map → chunk-V2S7BSV4.js.map} +0 -0
  50. /package/dist/{chunk-3HWBR7XM.js.map → chunk-YSBGMBI5.js.map} +0 -0
  51. /package/dist/{source-map-uploader-JAD3XM4F.js.map → source-map-uploader-FSTHCYDR.js.map} +0 -0
@@ -69,7 +69,10 @@ type GlasstraceEnvVars = z.infer<typeof GlasstraceEnvVarsSchema>;
69
69
  * These schemas define the request/response shapes for:
70
70
  * - SDK initialization (POST /v1/sdk/init)
71
71
  * - SDK health diagnostics (embedded in init requests)
72
- * - Discovery endpoint (GET /__glasstrace/config)
72
+ * - Discovery payload (served at `/.well-known/glasstrace.json` from the
73
+ * project's static root — `public/` for Next.js and most frameworks,
74
+ * `static/` for SvelteKit; the internal `/__glasstrace/config` handler
75
+ * reuses this shape for backwards compatibility)
73
76
  * - Source map upload (POST /v1/source-maps)
74
77
  * - Presigned source map upload (POST /v1/source-maps/presign, POST /v1/source-maps/manifest)
75
78
  */
@@ -69,7 +69,10 @@ type GlasstraceEnvVars = z.infer<typeof GlasstraceEnvVarsSchema>;
69
69
  * These schemas define the request/response shapes for:
70
70
  * - SDK initialization (POST /v1/sdk/init)
71
71
  * - SDK health diagnostics (embedded in init requests)
72
- * - Discovery endpoint (GET /__glasstrace/config)
72
+ * - Discovery payload (served at `/.well-known/glasstrace.json` from the
73
+ * project's static root — `public/` for Next.js and most frameworks,
74
+ * `static/` for SvelteKit; the internal `/__glasstrace/config` handler
75
+ * reuses this shape for backwards compatibility)
73
76
  * - Source map upload (POST /v1/source-maps)
74
77
  * - Presigned source map upload (POST /v1/source-maps/presign, POST /v1/source-maps/manifest)
75
78
  */
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { a as SessionManager } from './edge-entry-DT9OhPTC.cjs';
2
- export { C as CorrelationIdRequest, G as GlasstraceSpanProcessor, S as SdkError, c as captureCorrelationId, g as getDateString, b as getOrigin } from './edge-entry-DT9OhPTC.cjs';
3
- import { G as GlasstraceEnvVars, a as GlasstraceOptions, A as AnonApiKey, S as SdkInitResponse, C as CaptureConfig, b as SdkHealthReport, I as ImportGraphPayload, c as SdkDiagnosticCode } from './index.d-DiI6uVEW.cjs';
4
- export { d as deriveSessionId } from './index.d-DiI6uVEW.cjs';
1
+ import { a as SessionManager } from './edge-entry-DyMWa6JK.cjs';
2
+ export { C as CorrelationIdRequest, G as GlasstraceSpanProcessor, S as SdkError, c as captureCorrelationId, g as getDateString, b as getOrigin } from './edge-entry-DyMWa6JK.cjs';
3
+ import { G as GlasstraceEnvVars, a as GlasstraceOptions, A as AnonApiKey, S as SdkInitResponse, C as CaptureConfig, b as SdkHealthReport, I as ImportGraphPayload, c as SdkDiagnosticCode } from './index.d-Bo_Rxund.cjs';
4
+ export { d as deriveSessionId } from './index.d-Bo_Rxund.cjs';
5
5
  import { ReadableSpan } from './export/ReadableSpan';
6
6
  import { SpanExporter } from './export/SpanExporter';
7
7
  import { ExportResult } from './ExportResult';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { a as SessionManager } from './edge-entry-shCc8_Y1.js';
2
- export { C as CorrelationIdRequest, G as GlasstraceSpanProcessor, S as SdkError, c as captureCorrelationId, g as getDateString, b as getOrigin } from './edge-entry-shCc8_Y1.js';
3
- import { G as GlasstraceEnvVars, a as GlasstraceOptions, A as AnonApiKey, S as SdkInitResponse, C as CaptureConfig, b as SdkHealthReport, I as ImportGraphPayload, c as SdkDiagnosticCode } from './index.d-DiI6uVEW.js';
4
- export { d as deriveSessionId } from './index.d-DiI6uVEW.js';
1
+ import { a as SessionManager } from './edge-entry-BSKA1l_0.js';
2
+ export { C as CorrelationIdRequest, G as GlasstraceSpanProcessor, S as SdkError, c as captureCorrelationId, g as getDateString, b as getOrigin } from './edge-entry-BSKA1l_0.js';
3
+ import { G as GlasstraceEnvVars, a as GlasstraceOptions, A as AnonApiKey, S as SdkInitResponse, C as CaptureConfig, b as SdkHealthReport, I as ImportGraphPayload, c as SdkDiagnosticCode } from './index.d-Bo_Rxund.js';
4
+ export { d as deriveSessionId } from './index.d-Bo_Rxund.js';
5
5
  import { ReadableSpan } from './export/ReadableSpan';
6
6
  import { SpanExporter } from './export/SpanExporter';
7
7
  import { ExportResult } from './ExportResult';
package/dist/index.js CHANGED
@@ -12,12 +12,12 @@ import {
12
12
  registerGlasstrace,
13
13
  waitForReady,
14
14
  withGlasstraceConfig
15
- } from "./chunk-IY6A6EXS.js";
15
+ } from "./chunk-LW7474ZA.js";
16
16
  import {
17
17
  GlasstraceSpanProcessor,
18
18
  SdkError,
19
19
  captureCorrelationId
20
- } from "./chunk-WKOQJCFN.js";
20
+ } from "./chunk-FKBCEOJ5.js";
21
21
  import "./chunk-DQ25VOKK.js";
22
22
  import "./chunk-YG3X7TUI.js";
23
23
  import {
@@ -27,7 +27,7 @@ import {
27
27
  performInit,
28
28
  saveCachedConfig,
29
29
  sendInitRequest
30
- } from "./chunk-3HWBR7XM.js";
30
+ } from "./chunk-YSBGMBI5.js";
31
31
  import {
32
32
  isAnonymousMode,
33
33
  isProductionDisabled,
@@ -37,10 +37,10 @@ import {
37
37
  import {
38
38
  getOrCreateAnonKey,
39
39
  readAnonKey
40
- } from "./chunk-LQKJ27LO.js";
40
+ } from "./chunk-V2S7BSV4.js";
41
41
  import {
42
42
  deriveSessionId
43
- } from "./chunk-M4ZI7J3N.js";
43
+ } from "./chunk-XS5W3SPL.js";
44
44
  import "./chunk-NSBPE2FW.js";
45
45
  export {
46
46
  GlasstraceExporter,
@@ -22708,7 +22708,7 @@ function registerGlasstrace(options) {
22708
22708
  setCoreState(CoreState.REGISTERING);
22709
22709
  startRuntimeStateWriter({
22710
22710
  projectRoot: process.cwd(),
22711
- sdkVersion: "1.3.6"
22711
+ sdkVersion: "1.3.7"
22712
22712
  });
22713
22713
  const config2 = resolveConfig(options);
22714
22714
  if (config2.verbose) {
@@ -22875,8 +22875,8 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
22875
22875
  if (config2.verbose) {
22876
22876
  console.info("[glasstrace] Background init firing.");
22877
22877
  }
22878
- const healthReport = collectHealthReport("1.3.6");
22879
- const initResult = await performInit(config2, anonKeyForInit, "1.3.6", healthReport);
22878
+ const healthReport = collectHealthReport("1.3.7");
22879
+ const initResult = await performInit(config2, anonKeyForInit, "1.3.7", healthReport);
22880
22880
  if (generation !== registrationGeneration) return;
22881
22881
  const currentState = getCoreState();
22882
22882
  if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
@@ -22899,7 +22899,7 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
22899
22899
  }
22900
22900
  maybeInstallConsoleCapture();
22901
22901
  if (didLastInitSucceed()) {
22902
- startHeartbeat(config2, anonKeyForInit, "1.3.6", generation, (newApiKey, accountId) => {
22902
+ startHeartbeat(config2, anonKeyForInit, "1.3.7", generation, (newApiKey, accountId) => {
22903
22903
  setAuthState(AuthState.CLAIMING);
22904
22904
  emitLifecycleEvent("auth:claim_started", { accountId });
22905
22905
  setResolvedApiKey(newApiKey);