@glasstrace/sdk 1.12.0 → 1.13.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 (66) hide show
  1. package/README.md +55 -20
  2. package/dist/async-context/index.cjs.map +1 -1
  3. package/dist/async-context/index.js +2 -2
  4. package/dist/{capture-error-CRQSqKgd.d.cts → capture-error-03qDnC5v.d.cts} +2 -2
  5. package/dist/{capture-error-CqCbjoMq.d.ts → capture-error-CAfFUyIU.d.ts} +2 -2
  6. package/dist/{chunk-6NKMAKMI.js → chunk-6ST4QV7T.js} +3 -3
  7. package/dist/{chunk-BN5DVIUO.js → chunk-7LE2O4ZJ.js} +12 -7
  8. package/dist/{chunk-BN5DVIUO.js.map → chunk-7LE2O4ZJ.js.map} +1 -1
  9. package/dist/{chunk-J3ZCVE67.js → chunk-F7A3QXCT.js} +2 -2
  10. package/dist/{chunk-M3ZTG4P5.js → chunk-HMEHYSTS.js} +2 -2
  11. package/dist/{chunk-4YRYR32D.js → chunk-LQZRGBN5.js} +2 -2
  12. package/dist/{chunk-ZIL2IY4C.js → chunk-MP3QNDXQ.js} +2 -2
  13. package/dist/{chunk-FFNGE5RR.js → chunk-VMK2G6QR.js} +2 -2
  14. package/dist/{chunk-CZQN6G4I.js → chunk-VWZMG3W2.js} +10 -10
  15. package/dist/{chunk-KBHGPQZ2.js → chunk-XMD5OYD6.js} +2 -2
  16. package/dist/{chunk-V75ZB4G4.js → chunk-ZIYT2Y4B.js} +3 -3
  17. package/dist/cli/init.cjs +4 -4
  18. package/dist/cli/init.cjs.map +1 -1
  19. package/dist/cli/init.js +7 -7
  20. package/dist/cli/mcp-add.cjs +1 -1
  21. package/dist/cli/mcp-add.cjs.map +1 -1
  22. package/dist/cli/mcp-add.js +3 -3
  23. package/dist/cli/uninit.js +3 -3
  24. package/dist/cli/upgrade-instructions.cjs +1 -1
  25. package/dist/cli/upgrade-instructions.js +3 -3
  26. package/dist/cli/validate.cjs.map +1 -1
  27. package/dist/cli/validate.js +2 -2
  28. package/dist/{correlation-id-CFpyJsKv.d.cts → correlation-id-CZ2bstzA.d.cts} +1 -1
  29. package/dist/{correlation-id-DPXyY9-3.d.ts → correlation-id-YcfcqOru.d.ts} +1 -1
  30. package/dist/edge-entry.cjs.map +1 -1
  31. package/dist/edge-entry.d.cts +2 -2
  32. package/dist/edge-entry.d.ts +2 -2
  33. package/dist/edge-entry.js +4 -4
  34. package/dist/index.cjs +32 -18
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/{index.d-D-jdiIPU.d.cts → index.d-BQIJ5Dvc.d.cts} +44 -9
  37. package/dist/{index.d-D-jdiIPU.d.ts → index.d-BQIJ5Dvc.d.ts} +44 -9
  38. package/dist/index.d.cts +4 -4
  39. package/dist/index.d.ts +4 -4
  40. package/dist/index.js +19 -14
  41. package/dist/index.js.map +1 -1
  42. package/dist/middleware/index.cjs.map +1 -1
  43. package/dist/middleware/index.js +2 -2
  44. package/dist/node-entry.cjs +5 -5
  45. package/dist/node-entry.cjs.map +1 -1
  46. package/dist/node-entry.d.cts +3 -3
  47. package/dist/node-entry.d.ts +3 -3
  48. package/dist/node-entry.js +7 -7
  49. package/dist/node-subpath.cjs.map +1 -1
  50. package/dist/node-subpath.d.cts +1 -1
  51. package/dist/node-subpath.d.ts +1 -1
  52. package/dist/node-subpath.js +3 -3
  53. package/dist/{source-map-uploader-K67LTPBG.js → source-map-uploader-NUONOEJG.js} +3 -3
  54. package/dist/trpc/index.cjs.map +1 -1
  55. package/dist/trpc/index.js +1 -1
  56. package/package.json +1 -1
  57. /package/dist/{chunk-6NKMAKMI.js.map → chunk-6ST4QV7T.js.map} +0 -0
  58. /package/dist/{chunk-J3ZCVE67.js.map → chunk-F7A3QXCT.js.map} +0 -0
  59. /package/dist/{chunk-M3ZTG4P5.js.map → chunk-HMEHYSTS.js.map} +0 -0
  60. /package/dist/{chunk-4YRYR32D.js.map → chunk-LQZRGBN5.js.map} +0 -0
  61. /package/dist/{chunk-ZIL2IY4C.js.map → chunk-MP3QNDXQ.js.map} +0 -0
  62. /package/dist/{chunk-FFNGE5RR.js.map → chunk-VMK2G6QR.js.map} +0 -0
  63. /package/dist/{chunk-CZQN6G4I.js.map → chunk-VWZMG3W2.js.map} +0 -0
  64. /package/dist/{chunk-KBHGPQZ2.js.map → chunk-XMD5OYD6.js.map} +0 -0
  65. /package/dist/{chunk-V75ZB4G4.js.map → chunk-ZIYT2Y4B.js.map} +0 -0
  66. /package/dist/{source-map-uploader-K67LTPBG.js.map → source-map-uploader-NUONOEJG.js.map} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  AnonApiKeySchema,
3
3
  DevApiKeySchema,
4
4
  createAnonApiKey
5
- } from "./chunk-BN5DVIUO.js";
5
+ } from "./chunk-7LE2O4ZJ.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-J3ZCVE67.js.map
662
+ //# sourceMappingURL=chunk-F7A3QXCT.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-DQ25VOKK.js";
4
4
  import {
5
5
  GLASSTRACE_ATTRIBUTE_NAMES
6
- } from "./chunk-BN5DVIUO.js";
6
+ } from "./chunk-7LE2O4ZJ.js";
7
7
 
8
8
  // src/errors.ts
9
9
  var SdkError = class extends Error {
@@ -102,4 +102,4 @@ export {
102
102
  GlasstraceSpanProcessor,
103
103
  captureCorrelationId
104
104
  };
105
- //# sourceMappingURL=chunk-M3ZTG4P5.js.map
105
+ //# sourceMappingURL=chunk-HMEHYSTS.js.map
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-DQ25VOKK.js";
9
9
  import {
10
10
  GLASSTRACE_ATTRIBUTE_NAMES
11
- } from "./chunk-BN5DVIUO.js";
11
+ } from "./chunk-7LE2O4ZJ.js";
12
12
 
13
13
  // src/async-context/index.ts
14
14
  var ATTR = GLASSTRACE_ATTRIBUTE_NAMES;
@@ -121,4 +121,4 @@ export {
121
121
  _resetForTesting,
122
122
  withAsyncCausality
123
123
  };
124
- //# sourceMappingURL=chunk-4YRYR32D.js.map
124
+ //# sourceMappingURL=chunk-LQZRGBN5.js.map
@@ -5,7 +5,7 @@ import {
5
5
  PresignedUploadResponseSchema,
6
6
  SourceMapManifestResponseSchema,
7
7
  SourceMapUploadResponseSchema
8
- } from "./chunk-BN5DVIUO.js";
8
+ } from "./chunk-7LE2O4ZJ.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-ZIL2IY4C.js.map
334
+ //# sourceMappingURL=chunk-MP3QNDXQ.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-DQ25VOKK.js";
8
8
  import {
9
9
  GLASSTRACE_ATTRIBUTE_NAMES
10
- } from "./chunk-BN5DVIUO.js";
10
+ } from "./chunk-7LE2O4ZJ.js";
11
11
 
12
12
  // src/middleware/index.ts
13
13
  var ATTR = GLASSTRACE_ATTRIBUTE_NAMES;
@@ -136,4 +136,4 @@ export {
136
136
  _resetForTesting,
137
137
  tracedRequestMiddleware
138
138
  };
139
- //# sourceMappingURL=chunk-FFNGE5RR.js.map
139
+ //# sourceMappingURL=chunk-VMK2G6QR.js.map
@@ -54,7 +54,7 @@ import {
54
54
  performInit,
55
55
  recordSpansDropped,
56
56
  recordSpansExported
57
- } from "./chunk-6NKMAKMI.js";
57
+ } from "./chunk-6ST4QV7T.js";
58
58
  import {
59
59
  isAnonymousMode,
60
60
  isProductionDisabled,
@@ -65,11 +65,11 @@ import {
65
65
  getOrCreateAnonKey,
66
66
  isSyncFsAvailable,
67
67
  readAnonKey
68
- } from "./chunk-J3ZCVE67.js";
68
+ } from "./chunk-F7A3QXCT.js";
69
69
  import {
70
70
  GLASSTRACE_ATTRIBUTE_NAMES,
71
71
  deriveSessionId
72
- } from "./chunk-BN5DVIUO.js";
72
+ } from "./chunk-7LE2O4ZJ.js";
73
73
  import {
74
74
  isEndMarkerLine,
75
75
  parseStartMarkerLine
@@ -4620,11 +4620,11 @@ function registerGlasstrace(options) {
4620
4620
  setCoreState(CoreState.REGISTERING);
4621
4621
  maybeWarnStaleAgentInstructions({
4622
4622
  projectRoot: process.cwd(),
4623
- sdkVersion: "1.12.0"
4623
+ sdkVersion: "1.13.0"
4624
4624
  });
4625
4625
  startRuntimeStateWriter({
4626
4626
  projectRoot: process.cwd(),
4627
- sdkVersion: "1.12.0"
4627
+ sdkVersion: "1.13.0"
4628
4628
  });
4629
4629
  const config = resolveConfig(options);
4630
4630
  if (config.verbose) {
@@ -4791,8 +4791,8 @@ async function backgroundInit(config, anonKeyForInit, generation) {
4791
4791
  if (config.verbose) {
4792
4792
  console.info("[glasstrace] Background init firing.");
4793
4793
  }
4794
- const healthReport = collectHealthReport("1.12.0");
4795
- const initResult = await performInit(config, anonKeyForInit, "1.12.0", healthReport);
4794
+ const healthReport = collectHealthReport("1.13.0");
4795
+ const initResult = await performInit(config, anonKeyForInit, "1.13.0", healthReport);
4796
4796
  if (generation !== registrationGeneration) return;
4797
4797
  const currentState = getCoreState();
4798
4798
  if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
@@ -4815,7 +4815,7 @@ async function backgroundInit(config, anonKeyForInit, generation) {
4815
4815
  }
4816
4816
  maybeInstallConsoleCapture();
4817
4817
  if (didLastInitSucceed()) {
4818
- startHeartbeat(config, anonKeyForInit, "1.12.0", generation, (newApiKey, accountId) => {
4818
+ startHeartbeat(config, anonKeyForInit, "1.13.0", generation, (newApiKey, accountId) => {
4819
4819
  setAuthState(AuthState.CLAIMING);
4820
4820
  emitLifecycleEvent("auth:claim_started", { accountId });
4821
4821
  setResolvedApiKey(newApiKey);
@@ -5112,7 +5112,7 @@ async function handleSourceMapUpload(distDir) {
5112
5112
  );
5113
5113
  return;
5114
5114
  }
5115
- const { discoverSourceMapFiles, computeBuildHash, uploadSourceMaps } = await import("./source-map-uploader-K67LTPBG.js");
5115
+ const { discoverSourceMapFiles, computeBuildHash, uploadSourceMaps } = await import("./source-map-uploader-NUONOEJG.js");
5116
5116
  const files = await discoverSourceMapFiles(distDir);
5117
5117
  if (files.length === 0) {
5118
5118
  console.info("[glasstrace] No source map files found. Skipping upload.");
@@ -5212,4 +5212,4 @@ export {
5212
5212
  withGlasstraceConfig,
5213
5213
  captureError
5214
5214
  };
5215
- //# sourceMappingURL=chunk-CZQN6G4I.js.map
5215
+ //# sourceMappingURL=chunk-VWZMG3W2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createBuildHash
3
- } from "./chunk-BN5DVIUO.js";
3
+ } from "./chunk-7LE2O4ZJ.js";
4
4
 
5
5
  // src/import-graph.ts
6
6
  import * as fs from "node:fs/promises";
@@ -175,4 +175,4 @@ export {
175
175
  extractImports,
176
176
  buildImportGraph
177
177
  };
178
- //# sourceMappingURL=chunk-KBHGPQZ2.js.map
178
+ //# sourceMappingURL=chunk-XMD5OYD6.js.map
@@ -5,10 +5,10 @@ import {
5
5
  isDevApiKey,
6
6
  readEnvLocalApiKey,
7
7
  writeAndFsyncTempSync
8
- } from "./chunk-J3ZCVE67.js";
8
+ } from "./chunk-F7A3QXCT.js";
9
9
  import {
10
10
  AnonApiKeySchema
11
- } from "./chunk-BN5DVIUO.js";
11
+ } from "./chunk-7LE2O4ZJ.js";
12
12
  import {
13
13
  NEXT_CONFIG_NAMES
14
14
  } from "./chunk-NB7GJE4S.js";
@@ -922,4 +922,4 @@ export {
922
922
  writeShutdownMarker,
923
923
  runUninit
924
924
  };
925
- //# sourceMappingURL=chunk-V75ZB4G4.js.map
925
+ //# sourceMappingURL=chunk-ZIYT2Y4B.js.map
package/dist/cli/init.cjs CHANGED
@@ -18092,7 +18092,7 @@ async function mcpAdd(options) {
18092
18092
  );
18093
18093
  const dispatchSetMcpAdd = detectedNonGenericMcpAdd.length === 0 ? agentsWithMcpReady : nonGenericReadyMcpAdd;
18094
18094
  if (dispatchSetMcpAdd.length > 0) {
18095
- const sdkVersion = true ? "1.12.0" : "0.0.0-dev";
18095
+ const sdkVersion = true ? "1.13.0" : "0.0.0-dev";
18096
18096
  try {
18097
18097
  await injectAllTargets(
18098
18098
  dispatchSetMcpAdd,
@@ -18349,7 +18349,7 @@ async function runUpgradeInstructions(options) {
18349
18349
  );
18350
18350
  return { exitCode: 1, refreshed, skipped, warnings, errors };
18351
18351
  }
18352
- const sdkVersion = true ? "1.12.0" : "0.0.0-dev";
18352
+ const sdkVersion = true ? "1.13.0" : "0.0.0-dev";
18353
18353
  const optedInAgents = [];
18354
18354
  for (const agent of agents) {
18355
18355
  if (agent.infoFilePath === null) {
@@ -20034,7 +20034,7 @@ Then add this as the first statement in your register() function:
20034
20034
  );
20035
20035
  const dispatchSet = detectedNonGeneric.length === 0 ? agentsWithMcpReady : nonGenericReady;
20036
20036
  if (dispatchSet.length > 0) {
20037
- const sdkVersionForInject = true ? "1.12.0" : "0.0.0-dev";
20037
+ const sdkVersionForInject = true ? "1.13.0" : "0.0.0-dev";
20038
20038
  try {
20039
20039
  await injectAllTargets(
20040
20040
  dispatchSet,
@@ -20136,7 +20136,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
20136
20136
  }
20137
20137
  const baseConfig = resolveConfig({ apiKey: devKey });
20138
20138
  const config2 = { ...baseConfig, apiKey: devKey };
20139
- const sdkVersion = true ? "1.12.0" : "0.0.0-dev";
20139
+ const sdkVersion = true ? "1.13.0" : "0.0.0-dev";
20140
20140
  const result = await verifyInitReachable(config2, anonKey, sdkVersion);
20141
20141
  if (result.ok) {
20142
20142
  return { outcome: "verified" };