@glasstrace/sdk 1.3.5 → 1.3.7

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 (55) hide show
  1. package/README.md +23 -18
  2. package/dist/{chunk-QJVAKVQJ.js → chunk-4WUHMLMM.js} +2 -2
  3. package/dist/{chunk-BQKPRFLF.js → chunk-DBKG6SRI.js} +2 -2
  4. package/dist/{chunk-WKOQJCFN.js → chunk-FKBCEOJ5.js} +2 -2
  5. package/dist/{chunk-EK6MYHR2.js → chunk-LW7474ZA.js} +29 -22
  6. package/dist/{chunk-EK6MYHR2.js.map → chunk-LW7474ZA.js.map} +1 -1
  7. package/dist/{chunk-E62DL2H4.js → chunk-TUFUV43S.js} +3 -3
  8. package/dist/{chunk-P4OYPFQ5.js → chunk-TZMYGEMB.js} +2 -2
  9. package/dist/chunk-TZMYGEMB.js.map +1 -0
  10. package/dist/{chunk-LQKJ27LO.js → chunk-V2S7BSV4.js} +2 -2
  11. package/dist/{chunk-M4ZI7J3N.js → chunk-XS5W3SPL.js} +1 -1
  12. package/dist/{chunk-M4ZI7J3N.js.map → chunk-XS5W3SPL.js.map} +1 -1
  13. package/dist/{chunk-3HWBR7XM.js → chunk-YSBGMBI5.js} +3 -3
  14. package/dist/cli/init.cjs +3 -3
  15. package/dist/cli/init.cjs.map +1 -1
  16. package/dist/cli/init.js +8 -8
  17. package/dist/cli/init.js.map +1 -1
  18. package/dist/cli/mcp-add.cjs +1 -1
  19. package/dist/cli/mcp-add.cjs.map +1 -1
  20. package/dist/cli/mcp-add.js +3 -3
  21. package/dist/cli/uninit.js +3 -3
  22. package/dist/cli/validate.cjs.map +1 -1
  23. package/dist/cli/validate.js +2 -2
  24. package/dist/{edge-entry-shCc8_Y1.d.ts → edge-entry-BSKA1l_0.d.ts} +1 -1
  25. package/dist/{edge-entry-DT9OhPTC.d.cts → edge-entry-DyMWa6JK.d.cts} +1 -1
  26. package/dist/edge-entry.cjs.map +1 -1
  27. package/dist/edge-entry.d.cts +2 -2
  28. package/dist/edge-entry.d.ts +2 -2
  29. package/dist/edge-entry.js +2 -2
  30. package/dist/index.cjs +24 -17
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/{index.d-DiI6uVEW.d.cts → index.d-Bo_Rxund.d.cts} +4 -1
  33. package/dist/{index.d-DiI6uVEW.d.ts → index.d-Bo_Rxund.d.ts} +4 -1
  34. package/dist/index.d.cts +4 -4
  35. package/dist/index.d.ts +4 -4
  36. package/dist/index.js +5 -5
  37. package/dist/node-entry.cjs +26 -19
  38. package/dist/node-entry.cjs.map +1 -1
  39. package/dist/node-entry.d.cts +2 -2
  40. package/dist/node-entry.d.ts +2 -2
  41. package/dist/node-entry.js +7 -7
  42. package/dist/node-subpath.cjs.map +1 -1
  43. package/dist/node-subpath.d.cts +1 -1
  44. package/dist/node-subpath.d.ts +1 -1
  45. package/dist/node-subpath.js +3 -3
  46. package/dist/{source-map-uploader-JAD3XM4F.js → source-map-uploader-FSTHCYDR.js} +3 -3
  47. package/package.json +1 -1
  48. package/dist/chunk-P4OYPFQ5.js.map +0 -1
  49. /package/dist/{chunk-QJVAKVQJ.js.map → chunk-4WUHMLMM.js.map} +0 -0
  50. /package/dist/{chunk-BQKPRFLF.js.map → chunk-DBKG6SRI.js.map} +0 -0
  51. /package/dist/{chunk-WKOQJCFN.js.map → chunk-FKBCEOJ5.js.map} +0 -0
  52. /package/dist/{chunk-E62DL2H4.js.map → chunk-TUFUV43S.js.map} +0 -0
  53. /package/dist/{chunk-LQKJ27LO.js.map → chunk-V2S7BSV4.js.map} +0 -0
  54. /package/dist/{chunk-3HWBR7XM.js.map → chunk-YSBGMBI5.js.map} +0 -0
  55. /package/dist/{source-map-uploader-JAD3XM4F.js.map → source-map-uploader-FSTHCYDR.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-3HWBR7XM.js";
7
+ } from "../chunk-YSBGMBI5.js";
8
8
  import {
9
9
  buildImportGraph
10
- } from "../chunk-QJVAKVQJ.js";
10
+ } from "../chunk-4WUHMLMM.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-E62DL2H4.js";
24
+ } from "../chunk-TUFUV43S.js";
25
25
  import {
26
26
  detectAgents,
27
27
  generateInfoSection,
@@ -29,7 +29,7 @@ import {
29
29
  injectInfoSection,
30
30
  updateGitignore,
31
31
  writeMcpConfig
32
- } from "../chunk-P4OYPFQ5.js";
32
+ } from "../chunk-TZMYGEMB.js";
33
33
  import {
34
34
  MCP_ENDPOINT,
35
35
  getOrCreateAnonKey,
@@ -40,8 +40,8 @@ import {
40
40
  readEnvLocalApiKey,
41
41
  resolveEffectiveMcpCredential,
42
42
  writeMcpMarker
43
- } from "../chunk-LQKJ27LO.js";
44
- import "../chunk-M4ZI7J3N.js";
43
+ } from "../chunk-V2S7BSV4.js";
44
+ import "../chunk-XS5W3SPL.js";
45
45
  import {
46
46
  NEXT_CONFIG_NAMES,
47
47
  formatAgentName
@@ -797,7 +797,7 @@ Then add this as the first statement in your register() function:
797
797
  break;
798
798
  case "failed":
799
799
  warnings.push(
800
- `Failed to write ${relPath}${discoveryResult.error !== void 0 ? `: ${discoveryResult.error}` : ""}. The Glasstrace browser extension will fall back to the runtime handler until the file is written.`
800
+ `Failed to write ${relPath}${discoveryResult.error !== void 0 ? `: ${discoveryResult.error}` : ""}. The Glasstrace browser extension cannot discover this project until the file is written; rerun \`glasstrace init\` after fixing the underlying error.`
801
801
  );
802
802
  break;
803
803
  }
@@ -994,7 +994,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
994
994
  }
995
995
  const baseConfig = resolveConfig({ apiKey: devKey });
996
996
  const config = { ...baseConfig, apiKey: devKey };
997
- const sdkVersion = true ? "1.3.5" : "0.0.0-dev";
997
+ const sdkVersion = true ? "1.3.7" : "0.0.0-dev";
998
998
  const result = await verifyInitReachable(config, anonKey, sdkVersion);
999
999
  if (result.ok) {
1000
1000
  return { outcome: "verified" };