@glasstrace/sdk 1.7.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.
Files changed (75) hide show
  1. package/dist/async-context/index.cjs +15005 -0
  2. package/dist/async-context/index.cjs.map +1 -0
  3. package/dist/async-context/index.d.cts +174 -0
  4. package/dist/async-context/index.d.ts +174 -0
  5. package/dist/async-context/index.js +13 -0
  6. package/dist/{capture-error-CTgSYxek.d.ts → capture-error-BeuEXXJO.d.cts} +40 -2
  7. package/dist/{capture-error-BmQz7xF6.d.cts → capture-error-D02pzB7q.d.ts} +40 -2
  8. package/dist/chunk-CL3OVHPO.js +23 -0
  9. package/dist/chunk-CL3OVHPO.js.map +1 -0
  10. package/dist/{chunk-WL6BXEJ5.js → chunk-DKV53A2C.js} +2 -2
  11. package/dist/{chunk-3PJP5Y3U.js → chunk-GWIEUBFR.js} +3 -3
  12. package/dist/{chunk-H57MQGNU.js → chunk-H6WJ63X2.js} +2 -2
  13. package/dist/{chunk-NN5YCETI.js → chunk-HD6JIFKN.js} +2 -2
  14. package/dist/{chunk-P45NZR4J.js → chunk-JHUNLPSS.js} +35 -1
  15. package/dist/{chunk-P45NZR4J.js.map → chunk-JHUNLPSS.js.map} +1 -1
  16. package/dist/{chunk-UQKI476D.js → chunk-M6EWJCAT.js} +2 -2
  17. package/dist/chunk-QHV7NFON.js +130 -0
  18. package/dist/chunk-QHV7NFON.js.map +1 -0
  19. package/dist/{chunk-M2TLX6NM.js → chunk-QXITSNYM.js} +3 -3
  20. package/dist/chunk-RQ5BIWDT.js +119 -0
  21. package/dist/chunk-RQ5BIWDT.js.map +1 -0
  22. package/dist/{chunk-OWPA7GHV.js → chunk-XEPC4NFL.js} +1398 -1037
  23. package/dist/chunk-XEPC4NFL.js.map +1 -0
  24. package/dist/cli/init.cjs +4 -4
  25. package/dist/cli/init.cjs.map +1 -1
  26. package/dist/cli/init.js +7 -7
  27. package/dist/cli/mcp-add.cjs +1 -1
  28. package/dist/cli/mcp-add.cjs.map +1 -1
  29. package/dist/cli/mcp-add.js +3 -3
  30. package/dist/cli/uninit.js +3 -3
  31. package/dist/cli/upgrade-instructions.cjs +1 -1
  32. package/dist/cli/upgrade-instructions.js +3 -3
  33. package/dist/cli/validate.cjs.map +1 -1
  34. package/dist/cli/validate.js +2 -2
  35. package/dist/{edge-entry-AWO70gje.d.ts → correlation-id-B_K8adD6.d.ts} +1 -1
  36. package/dist/{edge-entry-DaeG7D7S.d.cts → correlation-id-NAapJ5jn.d.cts} +1 -1
  37. package/dist/edge-entry.cjs +295 -26
  38. package/dist/edge-entry.cjs.map +1 -1
  39. package/dist/edge-entry.d.cts +5 -2
  40. package/dist/edge-entry.d.ts +5 -2
  41. package/dist/edge-entry.js +12 -3
  42. package/dist/index.cjs +3613 -3211
  43. package/dist/index.cjs.map +1 -1
  44. package/dist/{index.d-Dq33YwFT.d.cts → index.d-CkTf_boH.d.cts} +1 -1
  45. package/dist/{index.d-Dq33YwFT.d.ts → index.d-CkTf_boH.d.ts} +1 -1
  46. package/dist/index.d.cts +7 -4
  47. package/dist/index.d.ts +7 -4
  48. package/dist/index.js +6 -5
  49. package/dist/index.js.map +1 -1
  50. package/dist/middleware/index.cjs +15014 -0
  51. package/dist/middleware/index.cjs.map +1 -0
  52. package/dist/middleware/index.d.cts +183 -0
  53. package/dist/middleware/index.d.ts +183 -0
  54. package/dist/middleware/index.js +13 -0
  55. package/dist/middleware/index.js.map +1 -0
  56. package/dist/node-entry.cjs +3613 -3211
  57. package/dist/node-entry.cjs.map +1 -1
  58. package/dist/node-entry.d.cts +3 -3
  59. package/dist/node-entry.d.ts +3 -3
  60. package/dist/node-entry.js +8 -7
  61. package/dist/node-subpath.cjs.map +1 -1
  62. package/dist/node-subpath.d.cts +1 -1
  63. package/dist/node-subpath.d.ts +1 -1
  64. package/dist/node-subpath.js +3 -3
  65. package/dist/{source-map-uploader-XFUEVV7I.js → source-map-uploader-MMJ2WCL4.js} +3 -3
  66. package/dist/source-map-uploader-MMJ2WCL4.js.map +1 -0
  67. package/package.json +13 -1
  68. package/dist/chunk-OWPA7GHV.js.map +0 -1
  69. /package/dist/{source-map-uploader-XFUEVV7I.js.map → async-context/index.js.map} +0 -0
  70. /package/dist/{chunk-WL6BXEJ5.js.map → chunk-DKV53A2C.js.map} +0 -0
  71. /package/dist/{chunk-3PJP5Y3U.js.map → chunk-GWIEUBFR.js.map} +0 -0
  72. /package/dist/{chunk-H57MQGNU.js.map → chunk-H6WJ63X2.js.map} +0 -0
  73. /package/dist/{chunk-NN5YCETI.js.map → chunk-HD6JIFKN.js.map} +0 -0
  74. /package/dist/{chunk-UQKI476D.js.map → chunk-M6EWJCAT.js.map} +0 -0
  75. /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-M2TLX6NM.js";
7
+ } from "../chunk-QXITSNYM.js";
8
8
  import {
9
9
  buildImportGraph
10
- } from "../chunk-NN5YCETI.js";
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-3PJP5Y3U.js";
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-WL6BXEJ5.js";
41
- import "../chunk-P45NZR4J.js";
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.7.0" : "0.0.0-dev";
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.7.0" : "0.0.0-dev";
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" };
@@ -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.7.0" : "0.0.0-dev";
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) {