@glasstrace/sdk 1.3.9 → 1.5.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.
- package/README.md +124 -0
- package/dist/capture-error-BmQz7xF6.d.cts +455 -0
- package/dist/capture-error-CTgSYxek.d.ts +455 -0
- package/dist/{chunk-XS5W3SPL.js → chunk-4WI7B5FQ.js} +91 -5
- package/dist/chunk-4WI7B5FQ.js.map +1 -0
- package/dist/{chunk-JZ475QRH.js → chunk-D3QXU2VM.js} +22 -191
- package/dist/chunk-D3QXU2VM.js.map +1 -0
- package/dist/{chunk-GYTCZSAV.js → chunk-MFYOQOD7.js} +2 -2
- package/dist/{chunk-4WUHMLMM.js → chunk-MMKFFF2L.js} +2 -2
- package/dist/{chunk-JH7EGRC5.js → chunk-N3XIVM2U.js} +158 -12
- package/dist/chunk-N3XIVM2U.js.map +1 -0
- package/dist/{chunk-FKBCEOJ5.js → chunk-Q42BY5BA.js} +2 -2
- package/dist/{chunk-DBKG6SRI.js → chunk-QU26IKIJ.js} +2 -2
- package/dist/{chunk-ADUD4PEK.js → chunk-TANUWTFO.js} +3 -3
- package/dist/{chunk-LJMZXJ45.js → chunk-YLY7AGLC.js} +9 -6
- package/dist/chunk-YLY7AGLC.js.map +1 -0
- package/dist/chunk-ZBQQXVHD.js +208 -0
- package/dist/chunk-ZBQQXVHD.js.map +1 -0
- package/dist/cli/init.cjs +218 -35
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +69 -12
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/mcp-add.cjs +57 -26
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +12 -9
- package/dist/cli/mcp-add.js.map +1 -1
- package/dist/cli/status.cjs +33 -3
- package/dist/cli/status.cjs.map +1 -1
- package/dist/cli/status.js +12 -3
- package/dist/cli/status.js.map +1 -1
- package/dist/cli/uninit.cjs +27 -3
- package/dist/cli/uninit.cjs.map +1 -1
- package/dist/cli/uninit.d.cts +10 -2
- package/dist/cli/uninit.d.ts +10 -2
- package/dist/cli/uninit.js +4 -3
- package/dist/cli/upgrade-instructions.cjs +440 -0
- package/dist/cli/upgrade-instructions.cjs.map +1 -0
- package/dist/cli/upgrade-instructions.d.cts +48 -0
- package/dist/cli/upgrade-instructions.d.ts +48 -0
- package/dist/cli/upgrade-instructions.js +80 -0
- package/dist/cli/upgrade-instructions.js.map +1 -0
- package/dist/cli/validate.cjs +12 -1
- package/dist/cli/validate.cjs.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/{edge-entry-BSKA1l_0.d.ts → edge-entry-AWO70gje.d.ts} +1 -1
- package/dist/{edge-entry-DyMWa6JK.d.cts → edge-entry-DaeG7D7S.d.cts} +1 -1
- package/dist/edge-entry.cjs +43 -2
- 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 +594 -64
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-Bo_Rxund.d.cts → index.d-Dq33YwFT.d.cts} +91 -1
- package/dist/{index.d-Bo_Rxund.d.ts → index.d-Dq33YwFT.d.ts} +91 -1
- package/dist/index.d.cts +91 -431
- package/dist/index.d.ts +91 -431
- package/dist/index.js +291 -6
- package/dist/index.js.map +1 -1
- package/dist/node-entry.cjs +282 -71
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.d.cts +3 -3
- package/dist/node-entry.d.ts +3 -3
- package/dist/node-entry.js +8 -7
- package/dist/node-subpath.cjs +12 -1
- 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-FSTHCYDR.js → source-map-uploader-PB3M4PPP.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-JH7EGRC5.js.map +0 -1
- package/dist/chunk-JZ475QRH.js.map +0 -1
- package/dist/chunk-LJMZXJ45.js.map +0 -1
- package/dist/chunk-XS5W3SPL.js.map +0 -1
- /package/dist/{chunk-GYTCZSAV.js.map → chunk-MFYOQOD7.js.map} +0 -0
- /package/dist/{chunk-4WUHMLMM.js.map → chunk-MMKFFF2L.js.map} +0 -0
- /package/dist/{chunk-FKBCEOJ5.js.map → chunk-Q42BY5BA.js.map} +0 -0
- /package/dist/{chunk-DBKG6SRI.js.map → chunk-QU26IKIJ.js.map} +0 -0
- /package/dist/{chunk-ADUD4PEK.js.map → chunk-TANUWTFO.js.map} +0 -0
- /package/dist/{source-map-uploader-FSTHCYDR.js.map → source-map-uploader-PB3M4PPP.js.map} +0 -0
package/dist/node-entry.d.cts
CHANGED
|
@@ -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-
|
|
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 './
|
|
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-
|
|
4
|
+
export { d as deriveSessionId } from './index.d-Dq33YwFT.cjs';
|
|
5
5
|
import './export/ReadableSpan';
|
|
6
6
|
import './Span';
|
|
7
7
|
import './SpanProcessor';
|
package/dist/node-entry.d.ts
CHANGED
|
@@ -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-
|
|
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 './
|
|
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-
|
|
4
|
+
export { d as deriveSessionId } from './index.d-Dq33YwFT.js';
|
|
5
5
|
import './export/ReadableSpan';
|
|
6
6
|
import './Span';
|
|
7
7
|
import './SpanProcessor';
|
package/dist/node-entry.js
CHANGED
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
registerGlasstrace,
|
|
13
13
|
waitForReady,
|
|
14
14
|
withGlasstraceConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N3XIVM2U.js";
|
|
16
16
|
import {
|
|
17
17
|
GlasstraceSpanProcessor,
|
|
18
18
|
SdkError,
|
|
19
19
|
captureCorrelationId
|
|
20
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
39
|
+
} from "./chunk-TANUWTFO.js";
|
|
40
40
|
import {
|
|
41
41
|
buildImportGraph,
|
|
42
42
|
discoverTestFiles,
|
|
43
43
|
extractImports
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-MMKFFF2L.js";
|
|
45
45
|
import {
|
|
46
46
|
isAnonymousMode,
|
|
47
47
|
isProductionDisabled,
|
|
@@ -51,10 +51,11 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
getOrCreateAnonKey,
|
|
53
53
|
readAnonKey
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-MFYOQOD7.js";
|
|
55
55
|
import {
|
|
56
56
|
deriveSessionId
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-4WI7B5FQ.js";
|
|
58
|
+
import "./chunk-ZBQQXVHD.js";
|
|
58
59
|
import "./chunk-NSBPE2FW.js";
|
|
59
60
|
export {
|
|
60
61
|
GlasstraceExporter,
|
package/dist/node-subpath.cjs
CHANGED
|
@@ -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()),
|