@glasstrace/sdk 1.3.0 → 1.3.1
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/{chunk-JMYKR5Z3.js → chunk-5PFPEA4C.js} +9 -9
- package/dist/chunk-5PFPEA4C.js.map +1 -0
- package/dist/{chunk-AGCYKZFY.js → chunk-CRM3EYOL.js} +2 -2
- package/dist/{chunk-AYUL5QMZ.js → chunk-DW2UJUNB.js} +2 -2
- package/dist/chunk-DW2UJUNB.js.map +1 -0
- package/dist/{chunk-FMEWG3FY.js → chunk-JFR42QG5.js} +2 -2
- package/dist/{chunk-GTPTKN5A.js → chunk-MQHLWSIX.js} +1 -1
- package/dist/{chunk-GTPTKN5A.js.map → chunk-MQHLWSIX.js.map} +1 -1
- package/dist/{chunk-FVHVDBGX.js → chunk-USLH3OTM.js} +3 -3
- package/dist/{chunk-FVHVDBGX.js.map → chunk-USLH3OTM.js.map} +1 -1
- package/dist/{chunk-A63WX7NR.js → chunk-X4IK6KES.js} +3 -3
- package/dist/{chunk-AKZGMT33.js → chunk-XS3BO7RY.js} +2 -2
- package/dist/cli/init.cjs +1 -1
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +6 -6
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +2 -2
- package/dist/cli/uninit.cjs.map +1 -1
- 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-DYl05SJ-.d.cts → edge-entry-DT9OhPTC.d.cts} +1 -1
- package/dist/{edge-entry-CFq085RZ.d.ts → edge-entry-shCc8_Y1.d.ts} +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-CYYe3PxB.d.ts → index.d-DiI6uVEW.d.cts} +1 -1
- package/dist/{index.d-CYYe3PxB.d.cts → index.d-DiI6uVEW.d.ts} +1 -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-M2P5CDOB.js → source-map-uploader-LACAGKIW.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-AYUL5QMZ.js.map +0 -1
- package/dist/chunk-JMYKR5Z3.js.map +0 -1
- /package/dist/{chunk-AGCYKZFY.js.map → chunk-CRM3EYOL.js.map} +0 -0
- /package/dist/{chunk-FMEWG3FY.js.map → chunk-JFR42QG5.js.map} +0 -0
- /package/dist/{chunk-A63WX7NR.js.map → chunk-X4IK6KES.js.map} +0 -0
- /package/dist/{chunk-AKZGMT33.js.map → chunk-XS3BO7RY.js.map} +0 -0
- /package/dist/{source-map-uploader-M2P5CDOB.js.map → source-map-uploader-LACAGKIW.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import * as z from './v4/classic/external.cjs';
|
|
|
3
3
|
/**
|
|
4
4
|
* Anonymous API key: `gt_anon_` + 48 hex chars.
|
|
5
5
|
*
|
|
6
|
-
* @drift-check ../glasstrace-product/docs/component-designs/sdk-
|
|
6
|
+
* @drift-check ../glasstrace-product/docs/component-designs/sdk-architecture.md §1.2 Lens B — SDK-Facing Security Primitives (row `Anon API key gt_anon_[a-f0-9]{48}`)
|
|
7
7
|
*/
|
|
8
8
|
declare const AnonApiKeySchema: z.core.$ZodBranded<z.ZodString, "AnonApiKey", "out">;
|
|
9
9
|
type AnonApiKey = z.infer<typeof AnonApiKeySchema>;
|
|
@@ -3,7 +3,7 @@ import * as z from './v4/classic/external.cjs';
|
|
|
3
3
|
/**
|
|
4
4
|
* Anonymous API key: `gt_anon_` + 48 hex chars.
|
|
5
5
|
*
|
|
6
|
-
* @drift-check ../glasstrace-product/docs/component-designs/sdk-
|
|
6
|
+
* @drift-check ../glasstrace-product/docs/component-designs/sdk-architecture.md §1.2 Lens B — SDK-Facing Security Primitives (row `Anon API key gt_anon_[a-f0-9]{48}`)
|
|
7
7
|
*/
|
|
8
8
|
declare const AnonApiKeySchema: z.core.$ZodBranded<z.ZodString, "AnonApiKey", "out">;
|
|
9
9
|
type AnonApiKey = z.infer<typeof AnonApiKeySchema>;
|
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-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';
|
|
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-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';
|
|
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-5PFPEA4C.js";
|
|
16
16
|
import {
|
|
17
17
|
GlasstraceSpanProcessor,
|
|
18
18
|
SdkError,
|
|
19
19
|
captureCorrelationId
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CRM3EYOL.js";
|
|
21
21
|
import "./chunk-DQ25VOKK.js";
|
|
22
22
|
import "./chunk-3TU62WD6.js";
|
|
23
23
|
import {
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
performInit,
|
|
28
28
|
saveCachedConfig,
|
|
29
29
|
sendInitRequest
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-X4IK6KES.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-DW2UJUNB.js";
|
|
41
41
|
import {
|
|
42
42
|
deriveSessionId
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MQHLWSIX.js";
|
|
44
44
|
import "./chunk-NSBPE2FW.js";
|
|
45
45
|
export {
|
|
46
46
|
GlasstraceExporter,
|
package/dist/node-entry.cjs
CHANGED
|
@@ -22587,7 +22587,7 @@ function registerGlasstrace(options) {
|
|
|
22587
22587
|
setCoreState(CoreState.REGISTERING);
|
|
22588
22588
|
startRuntimeStateWriter({
|
|
22589
22589
|
projectRoot: process.cwd(),
|
|
22590
|
-
sdkVersion: "1.3.
|
|
22590
|
+
sdkVersion: "1.3.1"
|
|
22591
22591
|
});
|
|
22592
22592
|
const config2 = resolveConfig(options);
|
|
22593
22593
|
if (config2.verbose) {
|
|
@@ -22753,8 +22753,8 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
22753
22753
|
if (config2.verbose) {
|
|
22754
22754
|
console.info("[glasstrace] Background init firing.");
|
|
22755
22755
|
}
|
|
22756
|
-
const healthReport = collectHealthReport("1.3.
|
|
22757
|
-
const initResult = await performInit(config2, anonKeyForInit, "1.3.
|
|
22756
|
+
const healthReport = collectHealthReport("1.3.1");
|
|
22757
|
+
const initResult = await performInit(config2, anonKeyForInit, "1.3.1", healthReport);
|
|
22758
22758
|
if (generation !== registrationGeneration) return;
|
|
22759
22759
|
const currentState = getCoreState();
|
|
22760
22760
|
if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
|
|
@@ -22777,7 +22777,7 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
22777
22777
|
}
|
|
22778
22778
|
maybeInstallConsoleCapture();
|
|
22779
22779
|
if (didLastInitSucceed()) {
|
|
22780
|
-
startHeartbeat(config2, anonKeyForInit, "1.3.
|
|
22780
|
+
startHeartbeat(config2, anonKeyForInit, "1.3.1", generation, (newApiKey, accountId) => {
|
|
22781
22781
|
setAuthState(AuthState.CLAIMING);
|
|
22782
22782
|
emitLifecycleEvent("auth:claim_started", { accountId });
|
|
22783
22783
|
setResolvedApiKey(newApiKey);
|