@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
package/dist/cli/init.js
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "../chunk-2M57EO6U.js";
|
|
5
5
|
import {
|
|
6
6
|
verifyInitReachable
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-T7B752NF.js";
|
|
8
8
|
import {
|
|
9
9
|
buildImportGraph
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-BGJKEFBN.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig
|
|
13
13
|
} from "../chunk-VUZCLMIX.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
unwrapCJSExport,
|
|
22
22
|
unwrapExport,
|
|
23
23
|
writeDiscoveryFile
|
|
24
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-WOYJAG7H.js";
|
|
25
25
|
import {
|
|
26
26
|
detectAgents,
|
|
27
27
|
generateMcpConfig,
|
|
@@ -37,8 +37,8 @@ import {
|
|
|
37
37
|
readEnvLocalApiKey,
|
|
38
38
|
resolveEffectiveMcpCredential,
|
|
39
39
|
writeMcpMarker
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
40
|
+
} from "../chunk-774XIOZG.js";
|
|
41
|
+
import "../chunk-GBVMPMVV.js";
|
|
42
42
|
import {
|
|
43
43
|
NEXT_CONFIG_NAMES,
|
|
44
44
|
formatAgentName
|
|
@@ -918,7 +918,7 @@ Then add this as the first statement in your register() function:
|
|
|
918
918
|
);
|
|
919
919
|
const dispatchSet = detectedNonGeneric.length === 0 ? agentsWithMcpReady : nonGenericReady;
|
|
920
920
|
if (dispatchSet.length > 0) {
|
|
921
|
-
const sdkVersionForInject = true ? "1.
|
|
921
|
+
const sdkVersionForInject = true ? "1.16.0" : "0.0.0-dev";
|
|
922
922
|
try {
|
|
923
923
|
await injectAllTargets(
|
|
924
924
|
dispatchSet,
|
|
@@ -1020,7 +1020,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
const baseConfig = resolveConfig({ apiKey: devKey });
|
|
1022
1022
|
const config = { ...baseConfig, apiKey: devKey };
|
|
1023
|
-
const sdkVersion = true ? "1.
|
|
1023
|
+
const sdkVersion = true ? "1.16.0" : "0.0.0-dev";
|
|
1024
1024
|
const result = await verifyInitReachable(config, anonKey, sdkVersion);
|
|
1025
1025
|
if (result.ok) {
|
|
1026
1026
|
return { outcome: "verified" };
|
package/dist/cli/mcp-add.cjs
CHANGED
|
@@ -14588,7 +14588,20 @@ var CaptureConfigSchema = external_exports.object({
|
|
|
14588
14588
|
* client-side allowlist enforcement layered with the product's
|
|
14589
14589
|
* storage-time filter as defense-in-depth.
|
|
14590
14590
|
*/
|
|
14591
|
-
sideEffectEvidence: external_exports.boolean().optional().default(false)
|
|
14591
|
+
sideEffectEvidence: external_exports.boolean().optional().default(false),
|
|
14592
|
+
/**
|
|
14593
|
+
* Per-account value-fidelity capture posture (server-pushed).
|
|
14594
|
+
*
|
|
14595
|
+
* `strict` (default) is fail-closed: the SDK rejects raw wall-clock
|
|
14596
|
+
* timestamps and unhashed identifiers from the `scalar.*` channel at
|
|
14597
|
+
* emit time. `full` relaxes those rejections so raw magnitudes can be
|
|
14598
|
+
* surfaced — but only in conjunction with an explicit producer opt-in
|
|
14599
|
+
* (so a `full`-configured account still emits strict-shaped scalars
|
|
14600
|
+
* unless the producer also opts in). The operator owns this flag; it
|
|
14601
|
+
* is never derived from producer or request input. Absent on the wire
|
|
14602
|
+
* ⇒ `strict`.
|
|
14603
|
+
*/
|
|
14604
|
+
captureFidelity: external_exports.enum(["strict", "full"]).optional().default("strict")
|
|
14592
14605
|
});
|
|
14593
14606
|
var SdkCachedConfigSchema = external_exports.object({
|
|
14594
14607
|
response: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
@@ -15990,7 +16003,7 @@ async function mcpAdd(options) {
|
|
|
15990
16003
|
);
|
|
15991
16004
|
const dispatchSetMcpAdd = detectedNonGenericMcpAdd.length === 0 ? agentsWithMcpReady : nonGenericReadyMcpAdd;
|
|
15992
16005
|
if (dispatchSetMcpAdd.length > 0) {
|
|
15993
|
-
const sdkVersion = true ? "1.
|
|
16006
|
+
const sdkVersion = true ? "1.16.0" : "0.0.0-dev";
|
|
15994
16007
|
try {
|
|
15995
16008
|
await injectAllTargets(
|
|
15996
16009
|
dispatchSetMcpAdd,
|