@glasstrace/sdk 1.5.1 → 1.6.1

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 (47) 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-D3QXU2VM.js → chunk-KI7YJ7XD.js} +2 -2
  5. package/dist/{chunk-D3QXU2VM.js.map → chunk-KI7YJ7XD.js.map} +1 -1
  6. package/dist/{chunk-TANUWTFO.js → chunk-M2TLX6NM.js} +3 -3
  7. package/dist/{chunk-MMKFFF2L.js → chunk-NN5YCETI.js} +2 -2
  8. package/dist/{chunk-4WI7B5FQ.js → chunk-P45NZR4J.js} +21 -1
  9. package/dist/chunk-P45NZR4J.js.map +1 -0
  10. package/dist/{chunk-MLRQTCCK.js → chunk-SYNQJZZY.js} +205 -28
  11. package/dist/chunk-SYNQJZZY.js.map +1 -0
  12. package/dist/{chunk-QU26IKIJ.js → chunk-UQKI476D.js} +2 -2
  13. package/dist/{chunk-MFYOQOD7.js → chunk-WL6BXEJ5.js} +2 -2
  14. package/dist/cli/init.cjs +5 -5
  15. package/dist/cli/init.cjs.map +1 -1
  16. package/dist/cli/init.js +8 -8
  17. package/dist/cli/mcp-add.cjs +2 -2
  18. package/dist/cli/mcp-add.cjs.map +1 -1
  19. package/dist/cli/mcp-add.js +4 -4
  20. package/dist/cli/uninit.js +3 -3
  21. package/dist/cli/upgrade-instructions.cjs +2 -2
  22. package/dist/cli/upgrade-instructions.cjs.map +1 -1
  23. package/dist/cli/upgrade-instructions.js +4 -4
  24. package/dist/cli/validate.cjs.map +1 -1
  25. package/dist/cli/validate.js +2 -2
  26. package/dist/edge-entry.cjs +20 -0
  27. package/dist/edge-entry.cjs.map +1 -1
  28. package/dist/edge-entry.js +2 -2
  29. package/dist/index.cjs +220 -23
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.js +5 -5
  32. package/dist/node-entry.cjs +220 -23
  33. package/dist/node-entry.cjs.map +1 -1
  34. package/dist/node-entry.js +7 -7
  35. package/dist/node-subpath.cjs.map +1 -1
  36. package/dist/node-subpath.js +3 -3
  37. package/dist/{source-map-uploader-PB3M4PPP.js → source-map-uploader-XFUEVV7I.js} +3 -3
  38. package/package.json +1 -1
  39. package/dist/chunk-4WI7B5FQ.js.map +0 -1
  40. package/dist/chunk-MLRQTCCK.js.map +0 -1
  41. /package/dist/{chunk-YLY7AGLC.js.map → chunk-3PJP5Y3U.js.map} +0 -0
  42. /package/dist/{chunk-Q42BY5BA.js.map → chunk-H57MQGNU.js.map} +0 -0
  43. /package/dist/{chunk-TANUWTFO.js.map → chunk-M2TLX6NM.js.map} +0 -0
  44. /package/dist/{chunk-MMKFFF2L.js.map → chunk-NN5YCETI.js.map} +0 -0
  45. /package/dist/{chunk-QU26IKIJ.js.map → chunk-UQKI476D.js.map} +0 -0
  46. /package/dist/{chunk-MFYOQOD7.js.map → chunk-WL6BXEJ5.js.map} +0 -0
  47. /package/dist/{source-map-uploader-PB3M4PPP.js.map → source-map-uploader-XFUEVV7I.js.map} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  PresignedUploadResponseSchema,
6
6
  SourceMapManifestResponseSchema,
7
7
  SourceMapUploadResponseSchema
8
- } from "./chunk-4WI7B5FQ.js";
8
+ } from "./chunk-P45NZR4J.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-QU26IKIJ.js.map
334
+ //# sourceMappingURL=chunk-UQKI476D.js.map
@@ -2,7 +2,7 @@ import {
2
2
  AnonApiKeySchema,
3
3
  DevApiKeySchema,
4
4
  createAnonApiKey
5
- } from "./chunk-4WI7B5FQ.js";
5
+ } from "./chunk-P45NZR4J.js";
6
6
  import {
7
7
  __require
8
8
  } from "./chunk-NSBPE2FW.js";
@@ -659,4 +659,4 @@ export {
659
659
  writeMcpMarker,
660
660
  refreshGenericMcpConfigAtRuntime
661
661
  };
662
- //# sourceMappingURL=chunk-MFYOQOD7.js.map
662
+ //# sourceMappingURL=chunk-WL6BXEJ5.js.map
package/dist/cli/init.cjs CHANGED
@@ -15441,7 +15441,7 @@ function generateInfoSection(agent, endpoint, sdkVersion) {
15441
15441
  "- `get_error_list` - List recent errors with filtering and pagination",
15442
15442
  "- `get_trace` - Get a specific trace by ID or URL pattern",
15443
15443
  "- `get_root_cause` - Get the root cause analysis for a specific error trace (requires a `traceId` from `get_latest_error`, `get_error_list`, or `get_trace`)",
15444
- "- `get_test_suggestions` - Get test suggestions based on recent errors",
15444
+ "- `get_test_suggestions` - Get test suggestions for a specific error trace (requires a `traceId` from `get_latest_error`, `get_error_list`, or `get_trace`)",
15445
15445
  "- `get_session_timeline` - Get the timeline of all traces in the current session",
15446
15446
  "",
15447
15447
  "To refresh this managed section after a `@glasstrace/sdk` upgrade, run: `npx glasstrace upgrade-instructions`. To reconfigure MCP credentials, run: `npx glasstrace mcp add`.",
@@ -16994,7 +16994,7 @@ async function mcpAdd(options) {
16994
16994
  const bearer = resolved.effective.key;
16995
16995
  for (const agent of targetAgents) {
16996
16996
  const name = formatAgentName(agent.name);
16997
- const sdkVersion = true ? "1.5.1" : "0.0.0-dev";
16997
+ const sdkVersion = true ? "1.6.1" : "0.0.0-dev";
16998
16998
  if (agent.name !== "generic") {
16999
16999
  const cliSuccess = await registerViaCli(agent, bearer);
17000
17000
  if (cliSuccess) {
@@ -17262,7 +17262,7 @@ async function runUpgradeInstructions(options) {
17262
17262
  );
17263
17263
  return { exitCode: 1, refreshed, skipped, warnings, errors };
17264
17264
  }
17265
- const sdkVersion = true ? "1.5.1" : "0.0.0-dev";
17265
+ const sdkVersion = true ? "1.6.1" : "0.0.0-dev";
17266
17266
  for (const agent of agents) {
17267
17267
  if (agent.infoFilePath === null) {
17268
17268
  continue;
@@ -18898,7 +18898,7 @@ Then add this as the first statement in your register() function:
18898
18898
  }
18899
18899
  anyConfigWritten = true;
18900
18900
  anyConfigRewrittenWithBearer = true;
18901
- const sdkVersionForInject = true ? "1.5.1" : "0.0.0-dev";
18901
+ const sdkVersionForInject = true ? "1.6.1" : "0.0.0-dev";
18902
18902
  const infoContent = generateInfoSection(
18903
18903
  agent,
18904
18904
  MCP_ENDPOINT,
@@ -19001,7 +19001,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
19001
19001
  }
19002
19002
  const baseConfig = resolveConfig({ apiKey: devKey });
19003
19003
  const config2 = { ...baseConfig, apiKey: devKey };
19004
- const sdkVersion = true ? "1.5.1" : "0.0.0-dev";
19004
+ const sdkVersion = true ? "1.6.1" : "0.0.0-dev";
19005
19005
  const result = await verifyInitReachable(config2, anonKey, sdkVersion);
19006
19006
  if (result.ok) {
19007
19007
  return { outcome: "verified" };