@glasstrace/sdk 1.8.0 → 1.9.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/dist/async-context/index.cjs +15005 -0
- package/dist/async-context/index.cjs.map +1 -0
- package/dist/async-context/index.d.cts +174 -0
- package/dist/async-context/index.d.ts +174 -0
- package/dist/async-context/index.js +13 -0
- package/dist/{capture-error-Dzz7_-v4.d.ts → capture-error-BeuEXXJO.d.cts} +2 -2
- package/dist/{capture-error-C95zvSvF.d.cts → capture-error-D02pzB7q.d.ts} +2 -2
- package/dist/chunk-CL3OVHPO.js +23 -0
- package/dist/chunk-CL3OVHPO.js.map +1 -0
- package/dist/{chunk-WL6BXEJ5.js → chunk-DKV53A2C.js} +2 -2
- package/dist/{chunk-3PJP5Y3U.js → chunk-GWIEUBFR.js} +3 -3
- package/dist/{chunk-H57MQGNU.js → chunk-H6WJ63X2.js} +2 -2
- package/dist/{chunk-NN5YCETI.js → chunk-HD6JIFKN.js} +2 -2
- package/dist/{chunk-P45NZR4J.js → chunk-JHUNLPSS.js} +35 -1
- package/dist/{chunk-P45NZR4J.js.map → chunk-JHUNLPSS.js.map} +1 -1
- package/dist/{chunk-UQKI476D.js → chunk-M6EWJCAT.js} +2 -2
- package/dist/chunk-QHV7NFON.js +130 -0
- package/dist/chunk-QHV7NFON.js.map +1 -0
- package/dist/{chunk-M2TLX6NM.js → chunk-QXITSNYM.js} +3 -3
- package/dist/chunk-RQ5BIWDT.js +119 -0
- package/dist/chunk-RQ5BIWDT.js.map +1 -0
- package/dist/{chunk-JJL2M64Z.js → chunk-XEPC4NFL.js} +19 -10
- package/dist/chunk-XEPC4NFL.js.map +1 -0
- package/dist/cli/init.cjs +4 -4
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +7 -7
- package/dist/cli/mcp-add.cjs +1 -1
- 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.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/{edge-entry-AWO70gje.d.ts → correlation-id-B_K8adD6.d.ts} +1 -1
- package/dist/{edge-entry-DaeG7D7S.d.cts → correlation-id-NAapJ5jn.d.cts} +1 -1
- package/dist/edge-entry.cjs +295 -26
- package/dist/edge-entry.cjs.map +1 -1
- package/dist/edge-entry.d.cts +5 -2
- package/dist/edge-entry.d.ts +5 -2
- package/dist/edge-entry.js +12 -3
- package/dist/index.cjs +55 -5
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-Dq33YwFT.d.cts → index.d-CkTf_boH.d.cts} +1 -1
- package/dist/{index.d-Dq33YwFT.d.ts → index.d-CkTf_boH.d.ts} +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/middleware/index.cjs +15014 -0
- package/dist/middleware/index.cjs.map +1 -0
- package/dist/middleware/index.d.cts +183 -0
- package/dist/middleware/index.d.ts +183 -0
- package/dist/middleware/index.js +13 -0
- package/dist/middleware/index.js.map +1 -0
- package/dist/node-entry.cjs +55 -5
- 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.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-XFUEVV7I.js → source-map-uploader-MMJ2WCL4.js} +3 -3
- package/dist/source-map-uploader-MMJ2WCL4.js.map +1 -0
- package/package.json +13 -1
- package/dist/chunk-JJL2M64Z.js.map +0 -1
- /package/dist/{source-map-uploader-XFUEVV7I.js.map → async-context/index.js.map} +0 -0
- /package/dist/{chunk-WL6BXEJ5.js.map → chunk-DKV53A2C.js.map} +0 -0
- /package/dist/{chunk-3PJP5Y3U.js.map → chunk-GWIEUBFR.js.map} +0 -0
- /package/dist/{chunk-H57MQGNU.js.map → chunk-H6WJ63X2.js.map} +0 -0
- /package/dist/{chunk-NN5YCETI.js.map → chunk-HD6JIFKN.js.map} +0 -0
- /package/dist/{chunk-UQKI476D.js.map → chunk-M6EWJCAT.js.map} +0 -0
- /package/dist/{chunk-M2TLX6NM.js.map → chunk-QXITSNYM.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-QXITSNYM.js";
|
|
8
8
|
import {
|
|
9
9
|
buildImportGraph
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-HD6JIFKN.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-GWIEUBFR.js";
|
|
25
25
|
import {
|
|
26
26
|
detectAgents,
|
|
27
27
|
generateInfoSection,
|
|
@@ -37,8 +37,8 @@ import {
|
|
|
37
37
|
readEnvLocalApiKey,
|
|
38
38
|
resolveEffectiveMcpCredential,
|
|
39
39
|
writeMcpMarker
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
40
|
+
} from "../chunk-DKV53A2C.js";
|
|
41
|
+
import "../chunk-JHUNLPSS.js";
|
|
42
42
|
import {
|
|
43
43
|
NEXT_CONFIG_NAMES,
|
|
44
44
|
formatAgentName
|
|
@@ -901,7 +901,7 @@ Then add this as the first statement in your register() function:
|
|
|
901
901
|
}
|
|
902
902
|
anyConfigWritten = true;
|
|
903
903
|
anyConfigRewrittenWithBearer = true;
|
|
904
|
-
const sdkVersionForInject = true ? "1.
|
|
904
|
+
const sdkVersionForInject = true ? "1.9.0" : "0.0.0-dev";
|
|
905
905
|
const infoContent = generateInfoSection(
|
|
906
906
|
agent,
|
|
907
907
|
MCP_ENDPOINT,
|
|
@@ -1007,7 +1007,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
const baseConfig = resolveConfig({ apiKey: devKey });
|
|
1009
1009
|
const config = { ...baseConfig, apiKey: devKey };
|
|
1010
|
-
const sdkVersion = true ? "1.
|
|
1010
|
+
const sdkVersion = true ? "1.9.0" : "0.0.0-dev";
|
|
1011
1011
|
const result = await verifyInitReachable(config, anonKey, sdkVersion);
|
|
1012
1012
|
if (result.ok) {
|
|
1013
1013
|
return { outcome: "verified" };
|
package/dist/cli/mcp-add.cjs
CHANGED
|
@@ -14929,7 +14929,7 @@ async function mcpAdd(options) {
|
|
|
14929
14929
|
const bearer = resolved.effective.key;
|
|
14930
14930
|
for (const agent of targetAgents) {
|
|
14931
14931
|
const name = formatAgentName(agent.name);
|
|
14932
|
-
const sdkVersion = true ? "1.
|
|
14932
|
+
const sdkVersion = true ? "1.9.0" : "0.0.0-dev";
|
|
14933
14933
|
if (agent.name !== "generic") {
|
|
14934
14934
|
const cliSuccess = await registerViaCli(agent, bearer);
|
|
14935
14935
|
if (cliSuccess) {
|