@glasstrace/sdk 1.15.0 → 1.16.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 +117 -8
- package/dist/async-context/index.cjs +21 -2
- package/dist/async-context/index.cjs.map +1 -1
- package/dist/async-context/index.js +2 -2
- package/dist/{capture-error-03qDnC5v.d.cts → capture-error-B0txjNut.d.cts} +2 -2
- package/dist/{capture-error-CAfFUyIU.d.ts → capture-error-Dc01rYNR.d.ts} +2 -2
- package/dist/{chunk-F7A3QXCT.js → chunk-774XIOZG.js} +2 -2
- package/dist/{chunk-VMK2G6QR.js → chunk-AFTCLH77.js} +2 -2
- package/dist/{chunk-XMD5OYD6.js → chunk-BGJKEFBN.js} +2 -2
- package/dist/{chunk-LQZRGBN5.js → chunk-DW3CZDS6.js} +2 -2
- package/dist/{chunk-PSMSSLQY.js → chunk-EWW3TZ52.js} +123 -12
- package/dist/{chunk-PSMSSLQY.js.map → chunk-EWW3TZ52.js.map} +1 -1
- package/dist/{chunk-7LE2O4ZJ.js → chunk-GBVMPMVV.js} +54 -5
- package/dist/{chunk-7LE2O4ZJ.js.map → chunk-GBVMPMVV.js.map} +1 -1
- package/dist/{chunk-HMEHYSTS.js → chunk-KM4UNN3Q.js} +2 -2
- package/dist/{chunk-MP3QNDXQ.js → chunk-OHSX224U.js} +2 -2
- package/dist/{chunk-6ST4QV7T.js → chunk-T7B752NF.js} +3 -3
- package/dist/{chunk-ZIYT2Y4B.js → chunk-WOYJAG7H.js} +3 -3
- package/dist/cli/init.cjs +18 -5
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +7 -7
- package/dist/cli/mcp-add.cjs +15 -2
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +3 -3
- package/dist/cli/uninit.js +3 -3
- package/dist/cli/upgrade-instructions.cjs +1 -1
- package/dist/cli/upgrade-instructions.js +3 -3
- package/dist/cli/validate.cjs +14 -1
- package/dist/cli/validate.cjs.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/{correlation-id-YcfcqOru.d.ts → correlation-id-B9YYmoZw.d.ts} +1 -1
- package/dist/{correlation-id-CZ2bstzA.d.cts → correlation-id-CelUvw7j.d.cts} +1 -1
- package/dist/edge-entry.cjs +21 -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 +4 -4
- package/dist/import-graph-DBLGNjcI.d.cts +238 -0
- package/dist/import-graph-Dka_Fm7j.d.ts +238 -0
- package/dist/index.cjs +165 -12
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-BQIJ5Dvc.d.cts → index.d-3-cJoY8y.d.cts} +10 -2
- package/dist/{index.d-BQIJ5Dvc.d.ts → index.d-3-cJoY8y.d.ts} +10 -2
- package/dist/index.d.cts +28 -4
- package/dist/index.d.ts +28 -4
- package/dist/index.js +5 -5
- package/dist/middleware/index.cjs +21 -2
- package/dist/middleware/index.cjs.map +1 -1
- package/dist/middleware/index.js +2 -2
- package/dist/node-entry.cjs +56 -9
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.d.cts +4 -4
- package/dist/node-entry.d.ts +4 -4
- package/dist/node-entry.js +7 -7
- package/dist/node-subpath.cjs +27 -1
- package/dist/node-subpath.cjs.map +1 -1
- package/dist/node-subpath.d.cts +51 -235
- package/dist/node-subpath.d.ts +51 -235
- package/dist/node-subpath.js +16 -3
- package/dist/node-subpath.js.map +1 -1
- package/dist/{source-map-uploader-NUONOEJG.js → source-map-uploader-UJPZCUFN.js} +3 -3
- package/dist/trpc/index.cjs +21 -2
- package/dist/trpc/index.cjs.map +1 -1
- package/dist/trpc/index.js +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-F7A3QXCT.js.map → chunk-774XIOZG.js.map} +0 -0
- /package/dist/{chunk-VMK2G6QR.js.map → chunk-AFTCLH77.js.map} +0 -0
- /package/dist/{chunk-XMD5OYD6.js.map → chunk-BGJKEFBN.js.map} +0 -0
- /package/dist/{chunk-LQZRGBN5.js.map → chunk-DW3CZDS6.js.map} +0 -0
- /package/dist/{chunk-HMEHYSTS.js.map → chunk-KM4UNN3Q.js.map} +0 -0
- /package/dist/{chunk-MP3QNDXQ.js.map → chunk-OHSX224U.js.map} +0 -0
- /package/dist/{chunk-6ST4QV7T.js.map → chunk-T7B752NF.js.map} +0 -0
- /package/dist/{chunk-ZIYT2Y4B.js.map → chunk-WOYJAG7H.js.map} +0 -0
- /package/dist/{source-map-uploader-NUONOEJG.js.map → source-map-uploader-UJPZCUFN.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-DQ25VOKK.js";
|
|
4
4
|
import {
|
|
5
5
|
GLASSTRACE_ATTRIBUTE_NAMES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GBVMPMVV.js";
|
|
7
7
|
|
|
8
8
|
// src/errors.ts
|
|
9
9
|
var SdkError = class extends Error {
|
|
@@ -102,4 +102,4 @@ export {
|
|
|
102
102
|
GlasstraceSpanProcessor,
|
|
103
103
|
captureCorrelationId
|
|
104
104
|
};
|
|
105
|
-
//# sourceMappingURL=chunk-
|
|
105
|
+
//# sourceMappingURL=chunk-KM4UNN3Q.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
PresignedUploadResponseSchema,
|
|
6
6
|
SourceMapManifestResponseSchema,
|
|
7
7
|
SourceMapUploadResponseSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GBVMPMVV.js";
|
|
9
9
|
|
|
10
10
|
// src/source-map-uploader.ts
|
|
11
11
|
import * as fs from "node:fs/promises";
|
|
@@ -331,4 +331,4 @@ export {
|
|
|
331
331
|
uploadSourceMapsPresigned,
|
|
332
332
|
uploadSourceMapsAuto
|
|
333
333
|
};
|
|
334
|
-
//# sourceMappingURL=chunk-
|
|
334
|
+
//# sourceMappingURL=chunk-OHSX224U.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
atomicWriteFile,
|
|
3
3
|
refreshGenericMcpConfigAtRuntime,
|
|
4
4
|
resolveEffectiveMcpCredential
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-774XIOZG.js";
|
|
6
6
|
import {
|
|
7
7
|
DEFAULT_CAPTURE_CONFIG,
|
|
8
8
|
SdkCachedConfigSchema,
|
|
9
9
|
SdkInitResponseSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GBVMPMVV.js";
|
|
11
11
|
import {
|
|
12
12
|
__require
|
|
13
13
|
} from "./chunk-NSBPE2FW.js";
|
|
@@ -692,4 +692,4 @@ export {
|
|
|
692
692
|
didLastInitSucceed,
|
|
693
693
|
verifyInitReachable
|
|
694
694
|
};
|
|
695
|
-
//# sourceMappingURL=chunk-
|
|
695
|
+
//# sourceMappingURL=chunk-T7B752NF.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
isDevApiKey,
|
|
6
6
|
readEnvLocalApiKey,
|
|
7
7
|
writeAndFsyncTempSync
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-774XIOZG.js";
|
|
9
9
|
import {
|
|
10
10
|
AnonApiKeySchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GBVMPMVV.js";
|
|
12
12
|
import {
|
|
13
13
|
NEXT_CONFIG_NAMES
|
|
14
14
|
} from "./chunk-NB7GJE4S.js";
|
|
@@ -922,4 +922,4 @@ export {
|
|
|
922
922
|
writeShutdownMarker,
|
|
923
923
|
runUninit
|
|
924
924
|
};
|
|
925
|
-
//# sourceMappingURL=chunk-
|
|
925
|
+
//# sourceMappingURL=chunk-WOYJAG7H.js.map
|
package/dist/cli/init.cjs
CHANGED
|
@@ -15262,7 +15262,20 @@ var init_dist = __esm({
|
|
|
15262
15262
|
* client-side allowlist enforcement layered with the product's
|
|
15263
15263
|
* storage-time filter as defense-in-depth.
|
|
15264
15264
|
*/
|
|
15265
|
-
sideEffectEvidence: external_exports.boolean().optional().default(false)
|
|
15265
|
+
sideEffectEvidence: external_exports.boolean().optional().default(false),
|
|
15266
|
+
/**
|
|
15267
|
+
* Per-account value-fidelity capture posture (server-pushed).
|
|
15268
|
+
*
|
|
15269
|
+
* `strict` (default) is fail-closed: the SDK rejects raw wall-clock
|
|
15270
|
+
* timestamps and unhashed identifiers from the `scalar.*` channel at
|
|
15271
|
+
* emit time. `full` relaxes those rejections so raw magnitudes can be
|
|
15272
|
+
* surfaced — but only in conjunction with an explicit producer opt-in
|
|
15273
|
+
* (so a `full`-configured account still emits strict-shaped scalars
|
|
15274
|
+
* unless the producer also opts in). The operator owns this flag; it
|
|
15275
|
+
* is never derived from producer or request input. Absent on the wire
|
|
15276
|
+
* ⇒ `strict`.
|
|
15277
|
+
*/
|
|
15278
|
+
captureFidelity: external_exports.enum(["strict", "full"]).optional().default("strict")
|
|
15266
15279
|
});
|
|
15267
15280
|
SdkCachedConfigSchema = external_exports.object({
|
|
15268
15281
|
response: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
@@ -18095,7 +18108,7 @@ async function mcpAdd(options) {
|
|
|
18095
18108
|
);
|
|
18096
18109
|
const dispatchSetMcpAdd = detectedNonGenericMcpAdd.length === 0 ? agentsWithMcpReady : nonGenericReadyMcpAdd;
|
|
18097
18110
|
if (dispatchSetMcpAdd.length > 0) {
|
|
18098
|
-
const sdkVersion = true ? "1.
|
|
18111
|
+
const sdkVersion = true ? "1.16.0" : "0.0.0-dev";
|
|
18099
18112
|
try {
|
|
18100
18113
|
await injectAllTargets(
|
|
18101
18114
|
dispatchSetMcpAdd,
|
|
@@ -18352,7 +18365,7 @@ async function runUpgradeInstructions(options) {
|
|
|
18352
18365
|
);
|
|
18353
18366
|
return { exitCode: 1, refreshed, skipped, warnings, errors };
|
|
18354
18367
|
}
|
|
18355
|
-
const sdkVersion = true ? "1.
|
|
18368
|
+
const sdkVersion = true ? "1.16.0" : "0.0.0-dev";
|
|
18356
18369
|
const optedInAgents = [];
|
|
18357
18370
|
for (const agent of agents) {
|
|
18358
18371
|
if (agent.infoFilePath === null) {
|
|
@@ -20037,7 +20050,7 @@ Then add this as the first statement in your register() function:
|
|
|
20037
20050
|
);
|
|
20038
20051
|
const dispatchSet = detectedNonGeneric.length === 0 ? agentsWithMcpReady : nonGenericReady;
|
|
20039
20052
|
if (dispatchSet.length > 0) {
|
|
20040
|
-
const sdkVersionForInject = true ? "1.
|
|
20053
|
+
const sdkVersionForInject = true ? "1.16.0" : "0.0.0-dev";
|
|
20041
20054
|
try {
|
|
20042
20055
|
await injectAllTargets(
|
|
20043
20056
|
dispatchSet,
|
|
@@ -20139,7 +20152,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
|
|
|
20139
20152
|
}
|
|
20140
20153
|
const baseConfig = resolveConfig({ apiKey: devKey });
|
|
20141
20154
|
const config2 = { ...baseConfig, apiKey: devKey };
|
|
20142
|
-
const sdkVersion = true ? "1.
|
|
20155
|
+
const sdkVersion = true ? "1.16.0" : "0.0.0-dev";
|
|
20143
20156
|
const result = await verifyInitReachable(config2, anonKey, sdkVersion);
|
|
20144
20157
|
if (result.ok) {
|
|
20145
20158
|
return { outcome: "verified" };
|