@glasstrace/sdk 1.15.1 → 1.17.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/README.md +118 -11
  2. package/dist/async-context/index.cjs +21 -2
  3. package/dist/async-context/index.cjs.map +1 -1
  4. package/dist/async-context/index.js +2 -2
  5. package/dist/{capture-error-03qDnC5v.d.cts → capture-error-B0txjNut.d.cts} +2 -2
  6. package/dist/{capture-error-CAfFUyIU.d.ts → capture-error-Dc01rYNR.d.ts} +2 -2
  7. package/dist/{chunk-ZIYT2Y4B.js → chunk-BJOZBAP7.js} +3 -3
  8. package/dist/{chunk-VMK2G6QR.js → chunk-CN5EP25B.js} +2 -2
  9. package/dist/{chunk-HMEHYSTS.js → chunk-EVX6D2TX.js} +2 -2
  10. package/dist/{chunk-T4ETJJSK.js → chunk-F2IPBTDJ.js} +133 -11
  11. package/dist/{chunk-T4ETJJSK.js.map → chunk-F2IPBTDJ.js.map} +1 -1
  12. package/dist/{chunk-XMD5OYD6.js → chunk-M3QGJUEI.js} +2 -2
  13. package/dist/{chunk-7LE2O4ZJ.js → chunk-MKT54VEH.js} +55 -6
  14. package/dist/{chunk-7LE2O4ZJ.js.map → chunk-MKT54VEH.js.map} +1 -1
  15. package/dist/{chunk-MP3QNDXQ.js → chunk-O7IJP2TQ.js} +2 -2
  16. package/dist/{chunk-F7A3QXCT.js → chunk-UOAG72NR.js} +2 -2
  17. package/dist/{chunk-6ST4QV7T.js → chunk-VEQX2YSQ.js} +3 -3
  18. package/dist/{chunk-LQZRGBN5.js → chunk-YKE6HJLW.js} +2 -2
  19. package/dist/cli/init.cjs +18 -5
  20. package/dist/cli/init.cjs.map +1 -1
  21. package/dist/cli/init.js +7 -7
  22. package/dist/cli/mcp-add.cjs +15 -2
  23. package/dist/cli/mcp-add.cjs.map +1 -1
  24. package/dist/cli/mcp-add.js +3 -3
  25. package/dist/cli/uninit.js +3 -3
  26. package/dist/cli/upgrade-instructions.cjs +1 -1
  27. package/dist/cli/upgrade-instructions.js +3 -3
  28. package/dist/cli/validate.cjs +14 -1
  29. package/dist/cli/validate.cjs.map +1 -1
  30. package/dist/cli/validate.js +2 -2
  31. package/dist/{correlation-id-YcfcqOru.d.ts → correlation-id-B9YYmoZw.d.ts} +1 -1
  32. package/dist/{correlation-id-CZ2bstzA.d.cts → correlation-id-CelUvw7j.d.cts} +1 -1
  33. package/dist/edge-entry.cjs +21 -2
  34. package/dist/edge-entry.cjs.map +1 -1
  35. package/dist/edge-entry.d.cts +2 -2
  36. package/dist/edge-entry.d.ts +2 -2
  37. package/dist/edge-entry.js +4 -4
  38. package/dist/import-graph-DBLGNjcI.d.cts +238 -0
  39. package/dist/import-graph-Dka_Fm7j.d.ts +238 -0
  40. package/dist/index.cjs +203 -12
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/{index.d-BQIJ5Dvc.d.cts → index.d-3-cJoY8y.d.cts} +10 -2
  43. package/dist/{index.d-BQIJ5Dvc.d.ts → index.d-3-cJoY8y.d.ts} +10 -2
  44. package/dist/index.d.cts +102 -5
  45. package/dist/index.d.ts +102 -5
  46. package/dist/index.js +30 -5
  47. package/dist/index.js.map +1 -1
  48. package/dist/middleware/index.cjs +21 -2
  49. package/dist/middleware/index.cjs.map +1 -1
  50. package/dist/middleware/index.js +2 -2
  51. package/dist/node-entry.cjs +28 -8
  52. package/dist/node-entry.cjs.map +1 -1
  53. package/dist/node-entry.d.cts +4 -4
  54. package/dist/node-entry.d.ts +4 -4
  55. package/dist/node-entry.js +7 -7
  56. package/dist/node-subpath.cjs +27 -1
  57. package/dist/node-subpath.cjs.map +1 -1
  58. package/dist/node-subpath.d.cts +51 -235
  59. package/dist/node-subpath.d.ts +51 -235
  60. package/dist/node-subpath.js +16 -3
  61. package/dist/node-subpath.js.map +1 -1
  62. package/dist/{source-map-uploader-NUONOEJG.js → source-map-uploader-U7SLSKIZ.js} +3 -3
  63. package/dist/trpc/index.cjs +21 -2
  64. package/dist/trpc/index.cjs.map +1 -1
  65. package/dist/trpc/index.js +1 -1
  66. package/package.json +1 -1
  67. /package/dist/{chunk-ZIYT2Y4B.js.map → chunk-BJOZBAP7.js.map} +0 -0
  68. /package/dist/{chunk-VMK2G6QR.js.map → chunk-CN5EP25B.js.map} +0 -0
  69. /package/dist/{chunk-HMEHYSTS.js.map → chunk-EVX6D2TX.js.map} +0 -0
  70. /package/dist/{chunk-XMD5OYD6.js.map → chunk-M3QGJUEI.js.map} +0 -0
  71. /package/dist/{chunk-MP3QNDXQ.js.map → chunk-O7IJP2TQ.js.map} +0 -0
  72. /package/dist/{chunk-F7A3QXCT.js.map → chunk-UOAG72NR.js.map} +0 -0
  73. /package/dist/{chunk-6ST4QV7T.js.map → chunk-VEQX2YSQ.js.map} +0 -0
  74. /package/dist/{chunk-LQZRGBN5.js.map → chunk-YKE6HJLW.js.map} +0 -0
  75. /package/dist/{source-map-uploader-NUONOEJG.js.map → source-map-uploader-U7SLSKIZ.js.map} +0 -0
@@ -10,8 +10,8 @@ import {
10
10
  readMcpMarker,
11
11
  resolveEffectiveMcpCredential,
12
12
  writeMcpMarker
13
- } from "../chunk-F7A3QXCT.js";
14
- import "../chunk-7LE2O4ZJ.js";
13
+ } from "../chunk-UOAG72NR.js";
14
+ import "../chunk-MKT54VEH.js";
15
15
  import {
16
16
  formatAgentName
17
17
  } from "../chunk-NB7GJE4S.js";
@@ -230,7 +230,7 @@ async function mcpAdd(options) {
230
230
  );
231
231
  const dispatchSetMcpAdd = detectedNonGenericMcpAdd.length === 0 ? agentsWithMcpReady : nonGenericReadyMcpAdd;
232
232
  if (dispatchSetMcpAdd.length > 0) {
233
- const sdkVersion = true ? "1.15.1" : "0.0.0-dev";
233
+ const sdkVersion = true ? "1.17.0" : "0.0.0-dev";
234
234
  try {
235
235
  await injectAllTargets(
236
236
  dispatchSetMcpAdd,
@@ -12,9 +12,9 @@ import {
12
12
  unwrapCJSExport,
13
13
  unwrapExport,
14
14
  writeShutdownMarker
15
- } from "../chunk-ZIYT2Y4B.js";
16
- import "../chunk-F7A3QXCT.js";
17
- import "../chunk-7LE2O4ZJ.js";
15
+ } from "../chunk-BJOZBAP7.js";
16
+ import "../chunk-UOAG72NR.js";
17
+ import "../chunk-MKT54VEH.js";
18
18
  import "../chunk-NB7GJE4S.js";
19
19
  import "../chunk-YIEXKQYP.js";
20
20
  import "../chunk-NSBPE2FW.js";
@@ -672,7 +672,7 @@ async function runUpgradeInstructions(options) {
672
672
  );
673
673
  return { exitCode: 1, refreshed, skipped, warnings, errors };
674
674
  }
675
- const sdkVersion = true ? "1.15.1" : "0.0.0-dev";
675
+ const sdkVersion = true ? "1.17.0" : "0.0.0-dev";
676
676
  const optedInAgents = [];
677
677
  for (const agent of agents) {
678
678
  if (agent.infoFilePath === null) {
@@ -5,8 +5,8 @@ import {
5
5
  } from "../chunk-3A25EBAC.js";
6
6
  import {
7
7
  MCP_ENDPOINT
8
- } from "../chunk-F7A3QXCT.js";
9
- import "../chunk-7LE2O4ZJ.js";
8
+ } from "../chunk-UOAG72NR.js";
9
+ import "../chunk-MKT54VEH.js";
10
10
  import {
11
11
  hasManagedSection
12
12
  } from "../chunk-YIEXKQYP.js";
@@ -67,7 +67,7 @@ async function runUpgradeInstructions(options) {
67
67
  );
68
68
  return { exitCode: 1, refreshed, skipped, warnings, errors };
69
69
  }
70
- const sdkVersion = true ? "1.15.1" : "0.0.0-dev";
70
+ const sdkVersion = true ? "1.17.0" : "0.0.0-dev";
71
71
  const optedInAgents = [];
72
72
  for (const agent of agents) {
73
73
  if (agent.infoFilePath === null) {
@@ -14587,7 +14587,20 @@ var CaptureConfigSchema = external_exports.object({
14587
14587
  * client-side allowlist enforcement layered with the product's
14588
14588
  * storage-time filter as defense-in-depth.
14589
14589
  */
14590
- sideEffectEvidence: external_exports.boolean().optional().default(false)
14590
+ sideEffectEvidence: external_exports.boolean().optional().default(false),
14591
+ /**
14592
+ * Per-account value-fidelity capture posture (server-pushed).
14593
+ *
14594
+ * `strict` (default) is fail-closed: the SDK rejects raw wall-clock
14595
+ * timestamps and unhashed identifiers from the `scalar.*` channel at
14596
+ * emit time. `full` relaxes those rejections so raw magnitudes can be
14597
+ * surfaced — but only in conjunction with an explicit producer opt-in
14598
+ * (so a `full`-configured account still emits strict-shaped scalars
14599
+ * unless the producer also opts in). The operator owns this flag; it
14600
+ * is never derived from producer or request input. Absent on the wire
14601
+ * ⇒ `strict`.
14602
+ */
14603
+ captureFidelity: external_exports.enum(["strict", "full"]).optional().default("strict")
14591
14604
  });
14592
14605
  var SdkCachedConfigSchema = external_exports.object({
14593
14606
  response: external_exports.record(external_exports.string(), external_exports.unknown()),