@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.
- package/README.md +23 -18
- package/dist/{chunk-QJVAKVQJ.js → chunk-4WUHMLMM.js} +2 -2
- package/dist/{chunk-BQKPRFLF.js → chunk-DBKG6SRI.js} +2 -2
- package/dist/{chunk-WKOQJCFN.js → chunk-FKBCEOJ5.js} +2 -2
- package/dist/{chunk-IY6A6EXS.js → chunk-LW7474ZA.js} +9 -9
- package/dist/{chunk-IY6A6EXS.js.map → chunk-LW7474ZA.js.map} +1 -1
- package/dist/{chunk-E62DL2H4.js → chunk-TUFUV43S.js} +3 -3
- package/dist/{chunk-LQKJ27LO.js → chunk-V2S7BSV4.js} +2 -2
- package/dist/{chunk-M4ZI7J3N.js → chunk-XS5W3SPL.js} +1 -1
- package/dist/{chunk-M4ZI7J3N.js.map → chunk-XS5W3SPL.js.map} +1 -1
- package/dist/{chunk-3HWBR7XM.js → chunk-YSBGMBI5.js} +3 -3
- package/dist/cli/init.cjs +2 -2
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +7 -7
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +2 -2
- package/dist/cli/uninit.js +3 -3
- package/dist/cli/validate.cjs.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/{edge-entry-shCc8_Y1.d.ts → edge-entry-BSKA1l_0.d.ts} +1 -1
- package/dist/{edge-entry-DT9OhPTC.d.cts → edge-entry-DyMWa6JK.d.cts} +1 -1
- package/dist/edge-entry.cjs.map +1 -1
- package/dist/edge-entry.d.cts +2 -2
- package/dist/edge-entry.d.ts +2 -2
- package/dist/edge-entry.js +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-DiI6uVEW.d.cts → index.d-Bo_Rxund.d.cts} +4 -1
- package/dist/{index.d-DiI6uVEW.d.ts → index.d-Bo_Rxund.d.ts} +4 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -5
- package/dist/node-entry.cjs +4 -4
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.d.cts +2 -2
- package/dist/node-entry.d.ts +2 -2
- package/dist/node-entry.js +7 -7
- package/dist/node-subpath.cjs.map +1 -1
- package/dist/node-subpath.d.cts +1 -1
- package/dist/node-subpath.d.ts +1 -1
- package/dist/node-subpath.js +3 -3
- package/dist/{source-map-uploader-JAD3XM4F.js → source-map-uploader-FSTHCYDR.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-QJVAKVQJ.js.map → chunk-4WUHMLMM.js.map} +0 -0
- /package/dist/{chunk-BQKPRFLF.js.map → chunk-DBKG6SRI.js.map} +0 -0
- /package/dist/{chunk-WKOQJCFN.js.map → chunk-FKBCEOJ5.js.map} +0 -0
- /package/dist/{chunk-E62DL2H4.js.map → chunk-TUFUV43S.js.map} +0 -0
- /package/dist/{chunk-LQKJ27LO.js.map → chunk-V2S7BSV4.js.map} +0 -0
- /package/dist/{chunk-3HWBR7XM.js.map → chunk-YSBGMBI5.js.map} +0 -0
- /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
|
|
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
|
|
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-
|
|
2
|
-
export { C as CorrelationIdRequest, G as GlasstraceSpanProcessor, S as SdkError, c as captureCorrelationId, g as getDateString, b as getOrigin } from './edge-entry-
|
|
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-
|
|
4
|
-
export { d as deriveSessionId } from './index.d-
|
|
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-
|
|
2
|
-
export { C as CorrelationIdRequest, G as GlasstraceSpanProcessor, S as SdkError, c as captureCorrelationId, g as getDateString, b as getOrigin } from './edge-entry-
|
|
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-
|
|
4
|
-
export { d as deriveSessionId } from './index.d-
|
|
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-
|
|
15
|
+
} from "./chunk-LW7474ZA.js";
|
|
16
16
|
import {
|
|
17
17
|
GlasstraceSpanProcessor,
|
|
18
18
|
SdkError,
|
|
19
19
|
captureCorrelationId
|
|
20
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
40
|
+
} from "./chunk-V2S7BSV4.js";
|
|
41
41
|
import {
|
|
42
42
|
deriveSessionId
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-XS5W3SPL.js";
|
|
44
44
|
import "./chunk-NSBPE2FW.js";
|
|
45
45
|
export {
|
|
46
46
|
GlasstraceExporter,
|
package/dist/node-entry.cjs
CHANGED
|
@@ -22708,7 +22708,7 @@ function registerGlasstrace(options) {
|
|
|
22708
22708
|
setCoreState(CoreState.REGISTERING);
|
|
22709
22709
|
startRuntimeStateWriter({
|
|
22710
22710
|
projectRoot: process.cwd(),
|
|
22711
|
-
sdkVersion: "1.3.
|
|
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.
|
|
22879
|
-
const initResult = await performInit(config2, anonKeyForInit, "1.3.
|
|
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.
|
|
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);
|