@glasstrace/sdk 0.20.0 → 1.0.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 (61) hide show
  1. package/README.md +37 -5
  2. package/dist/chunk-3TU62WD6.js +142 -0
  3. package/dist/chunk-3TU62WD6.js.map +1 -0
  4. package/dist/chunk-67RIOAXV.js +105 -0
  5. package/dist/chunk-67RIOAXV.js.map +1 -0
  6. package/dist/{chunk-VN3GZDV6.js → chunk-7PDDBLST.js} +4 -141
  7. package/dist/chunk-7PDDBLST.js.map +1 -0
  8. package/dist/chunk-BT2OCXCG.js +178 -0
  9. package/dist/chunk-BT2OCXCG.js.map +1 -0
  10. package/dist/chunk-D3WYZBQA.js +4547 -0
  11. package/dist/chunk-D3WYZBQA.js.map +1 -0
  12. package/dist/{chunk-F2TZRBEH.js → chunk-DO2YPMQ5.js} +9 -181
  13. package/dist/chunk-DO2YPMQ5.js.map +1 -0
  14. package/dist/{chunk-YPXW2TN3.js → chunk-IP4NMDJK.js} +2 -2
  15. package/dist/{chunk-6JRI4OGB.js → chunk-LU3PPAOQ.js} +5 -3
  16. package/dist/{chunk-6JRI4OGB.js.map → chunk-LU3PPAOQ.js.map} +1 -1
  17. package/dist/{chunk-5N2IR4EO.js → chunk-TQ54WLCZ.js} +1 -1
  18. package/dist/{chunk-5N2IR4EO.js.map → chunk-TQ54WLCZ.js.map} +1 -1
  19. package/dist/cli/init.cjs +5 -3
  20. package/dist/cli/init.cjs.map +1 -1
  21. package/dist/cli/init.js +8 -6
  22. package/dist/cli/init.js.map +1 -1
  23. package/dist/cli/mcp-add.cjs.map +1 -1
  24. package/dist/cli/mcp-add.js +2 -2
  25. package/dist/cli/uninit.cjs +3 -1
  26. package/dist/cli/uninit.cjs.map +1 -1
  27. package/dist/cli/uninit.js +2 -2
  28. package/dist/edge-entry-CFq085RZ.d.ts +130 -0
  29. package/dist/edge-entry-DYl05SJ-.d.cts +130 -0
  30. package/dist/edge-entry.cjs +14839 -0
  31. package/dist/edge-entry.cjs.map +1 -0
  32. package/dist/edge-entry.d.cts +6 -0
  33. package/dist/edge-entry.d.ts +6 -0
  34. package/dist/edge-entry.js +14 -0
  35. package/dist/index.cjs +38 -244
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d-CYYe3PxB.d.cts +191 -0
  38. package/dist/index.d-CYYe3PxB.d.ts +191 -0
  39. package/dist/index.d.cts +8 -461
  40. package/dist/index.d.ts +8 -461
  41. package/dist/index.js +25 -4636
  42. package/dist/index.js.map +1 -1
  43. package/dist/node-entry.cjs +22481 -0
  44. package/dist/node-entry.cjs.map +1 -0
  45. package/dist/node-entry.d.cts +10 -0
  46. package/dist/node-entry.d.ts +10 -0
  47. package/dist/node-entry.js +100 -0
  48. package/dist/node-entry.js.map +1 -0
  49. package/dist/node-subpath.cjs +14506 -0
  50. package/dist/node-subpath.cjs.map +1 -0
  51. package/dist/node-subpath.d.cts +132 -0
  52. package/dist/node-subpath.d.ts +132 -0
  53. package/dist/node-subpath.js +31 -0
  54. package/dist/node-subpath.js.map +1 -0
  55. package/dist/{source-map-uploader-VPDZWWM2.js → source-map-uploader-ZHA3B4GE.js} +4 -3
  56. package/dist/source-map-uploader-ZHA3B4GE.js.map +1 -0
  57. package/package.json +13 -1
  58. package/dist/chunk-F2TZRBEH.js.map +0 -1
  59. package/dist/chunk-VN3GZDV6.js.map +0 -1
  60. /package/dist/{chunk-YPXW2TN3.js.map → chunk-IP4NMDJK.js.map} +0 -0
  61. /package/dist/{source-map-uploader-VPDZWWM2.js.map → edge-entry.js.map} +0 -0
package/dist/cli/init.cjs CHANGED
@@ -15985,7 +15985,8 @@ function isSvelteKitProject(projectRoot) {
15985
15985
  return fs4.existsSync(svelteConfigJs) || fs4.existsSync(svelteConfigTs) || fs4.existsSync(appHtml);
15986
15986
  }
15987
15987
  function relativeDiscoveryPath(layout) {
15988
- return layout === "static" ? "static/.well-known/glasstrace.json" : "public/.well-known/glasstrace.json";
15988
+ const rootDir = layout === "static" ? "static" : "public";
15989
+ return `${rootDir}/${WELL_KNOWN_GLASSTRACE_PATH}`;
15989
15990
  }
15990
15991
  function readExistingDiscoveryFile(filePath) {
15991
15992
  let raw;
@@ -16145,13 +16146,14 @@ function removeDiscoveryFile(projectRoot) {
16145
16146
  directoryRemoved: chosen.directoryRemoved || anyDirectoryRemoved
16146
16147
  };
16147
16148
  }
16148
- var fs4, path4, DISCOVERY_FILE_VERSION;
16149
+ var fs4, path4, WELL_KNOWN_GLASSTRACE_PATH, DISCOVERY_FILE_VERSION;
16149
16150
  var init_discovery_file = __esm({
16150
16151
  "src/cli/discovery-file.ts"() {
16151
16152
  "use strict";
16152
16153
  fs4 = __toESM(require("node:fs"), 1);
16153
16154
  path4 = __toESM(require("node:path"), 1);
16154
16155
  init_dist();
16156
+ WELL_KNOWN_GLASSTRACE_PATH = ".well-known/glasstrace.json";
16155
16157
  DISCOVERY_FILE_VERSION = 1;
16156
16158
  }
16157
16159
  });
@@ -18490,7 +18492,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
18490
18492
  }
18491
18493
  const baseConfig = resolveConfig({ apiKey: devKey });
18492
18494
  const config2 = { ...baseConfig, apiKey: devKey };
18493
- const sdkVersion = true ? "0.20.0" : "0.0.0-dev";
18495
+ const sdkVersion = true ? "1.0.0" : "0.0.0-dev";
18494
18496
  const result = await verifyInitReachable(config2, anonKey, sdkVersion);
18495
18497
  if (result.ok) {
18496
18498
  return { outcome: "verified" };