@glasstrace/sdk 1.5.0 → 1.6.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 (44) hide show
  1. package/README.md +108 -0
  2. package/dist/{chunk-YLY7AGLC.js → chunk-3PJP5Y3U.js} +3 -3
  3. package/dist/{chunk-Q42BY5BA.js → chunk-H57MQGNU.js} +2 -2
  4. package/dist/{chunk-TANUWTFO.js → chunk-M2TLX6NM.js} +3 -3
  5. package/dist/{chunk-MMKFFF2L.js → chunk-NN5YCETI.js} +2 -2
  6. package/dist/{chunk-4WI7B5FQ.js → chunk-P45NZR4J.js} +21 -1
  7. package/dist/chunk-P45NZR4J.js.map +1 -0
  8. package/dist/{chunk-QU26IKIJ.js → chunk-UQKI476D.js} +2 -2
  9. package/dist/{chunk-MFYOQOD7.js → chunk-WL6BXEJ5.js} +2 -2
  10. package/dist/{chunk-N3XIVM2U.js → chunk-ZU5XO77C.js} +205 -28
  11. package/dist/chunk-ZU5XO77C.js.map +1 -0
  12. package/dist/cli/init.cjs +4 -4
  13. package/dist/cli/init.cjs.map +1 -1
  14. package/dist/cli/init.js +7 -7
  15. package/dist/cli/mcp-add.cjs +1 -1
  16. package/dist/cli/mcp-add.cjs.map +1 -1
  17. package/dist/cli/mcp-add.js +3 -3
  18. package/dist/cli/uninit.js +3 -3
  19. package/dist/cli/upgrade-instructions.cjs +1 -1
  20. package/dist/cli/upgrade-instructions.js +3 -3
  21. package/dist/cli/validate.cjs.map +1 -1
  22. package/dist/cli/validate.js +2 -2
  23. package/dist/edge-entry.cjs +20 -0
  24. package/dist/edge-entry.cjs.map +1 -1
  25. package/dist/edge-entry.js +2 -2
  26. package/dist/index.cjs +220 -23
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/node-entry.cjs +220 -23
  30. package/dist/node-entry.cjs.map +1 -1
  31. package/dist/node-entry.js +7 -7
  32. package/dist/node-subpath.cjs.map +1 -1
  33. package/dist/node-subpath.js +3 -3
  34. package/dist/{source-map-uploader-PB3M4PPP.js → source-map-uploader-XFUEVV7I.js} +3 -3
  35. package/package.json +3 -2
  36. package/dist/chunk-4WI7B5FQ.js.map +0 -1
  37. package/dist/chunk-N3XIVM2U.js.map +0 -1
  38. /package/dist/{chunk-YLY7AGLC.js.map → chunk-3PJP5Y3U.js.map} +0 -0
  39. /package/dist/{chunk-Q42BY5BA.js.map → chunk-H57MQGNU.js.map} +0 -0
  40. /package/dist/{chunk-TANUWTFO.js.map → chunk-M2TLX6NM.js.map} +0 -0
  41. /package/dist/{chunk-MMKFFF2L.js.map → chunk-NN5YCETI.js.map} +0 -0
  42. /package/dist/{chunk-QU26IKIJ.js.map → chunk-UQKI476D.js.map} +0 -0
  43. /package/dist/{chunk-MFYOQOD7.js.map → chunk-WL6BXEJ5.js.map} +0 -0
  44. /package/dist/{source-map-uploader-PB3M4PPP.js.map → source-map-uploader-XFUEVV7I.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-TANUWTFO.js";
7
+ } from "../chunk-M2TLX6NM.js";
8
8
  import {
9
9
  buildImportGraph
10
- } from "../chunk-MMKFFF2L.js";
10
+ } from "../chunk-NN5YCETI.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-YLY7AGLC.js";
24
+ } from "../chunk-3PJP5Y3U.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-MFYOQOD7.js";
41
- import "../chunk-4WI7B5FQ.js";
40
+ } from "../chunk-WL6BXEJ5.js";
41
+ import "../chunk-P45NZR4J.js";
42
42
  import {
43
43
  NEXT_CONFIG_NAMES,
44
44
  formatAgentName
@@ -898,7 +898,7 @@ Then add this as the first statement in your register() function:
898
898
  }
899
899
  anyConfigWritten = true;
900
900
  anyConfigRewrittenWithBearer = true;
901
- const sdkVersionForInject = true ? "1.5.0" : "0.0.0-dev";
901
+ const sdkVersionForInject = true ? "1.6.0" : "0.0.0-dev";
902
902
  const infoContent = generateInfoSection(
903
903
  agent,
904
904
  MCP_ENDPOINT,
@@ -1001,7 +1001,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
1001
1001
  }
1002
1002
  const baseConfig = resolveConfig({ apiKey: devKey });
1003
1003
  const config = { ...baseConfig, apiKey: devKey };
1004
- const sdkVersion = true ? "1.5.0" : "0.0.0-dev";
1004
+ const sdkVersion = true ? "1.6.0" : "0.0.0-dev";
1005
1005
  const result = await verifyInitReachable(config, anonKey, sdkVersion);
1006
1006
  if (result.ok) {
1007
1007
  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.5.0" : "0.0.0-dev";
14932
+ const sdkVersion = true ? "1.6.0" : "0.0.0-dev";
14933
14933
  if (agent.name !== "generic") {
14934
14934
  const cliSuccess = await registerViaCli(agent, bearer);
14935
14935
  if (cliSuccess) {