@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.
- package/README.md +37 -5
- package/dist/chunk-3TU62WD6.js +142 -0
- package/dist/chunk-3TU62WD6.js.map +1 -0
- package/dist/chunk-67RIOAXV.js +105 -0
- package/dist/chunk-67RIOAXV.js.map +1 -0
- package/dist/{chunk-VN3GZDV6.js → chunk-7PDDBLST.js} +4 -141
- package/dist/chunk-7PDDBLST.js.map +1 -0
- package/dist/chunk-BT2OCXCG.js +178 -0
- package/dist/chunk-BT2OCXCG.js.map +1 -0
- package/dist/chunk-D3WYZBQA.js +4547 -0
- package/dist/chunk-D3WYZBQA.js.map +1 -0
- package/dist/{chunk-F2TZRBEH.js → chunk-DO2YPMQ5.js} +9 -181
- package/dist/chunk-DO2YPMQ5.js.map +1 -0
- package/dist/{chunk-YPXW2TN3.js → chunk-IP4NMDJK.js} +2 -2
- package/dist/{chunk-6JRI4OGB.js → chunk-LU3PPAOQ.js} +5 -3
- package/dist/{chunk-6JRI4OGB.js.map → chunk-LU3PPAOQ.js.map} +1 -1
- package/dist/{chunk-5N2IR4EO.js → chunk-TQ54WLCZ.js} +1 -1
- package/dist/{chunk-5N2IR4EO.js.map → chunk-TQ54WLCZ.js.map} +1 -1
- package/dist/cli/init.cjs +5 -3
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +8 -6
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +2 -2
- package/dist/cli/uninit.cjs +3 -1
- package/dist/cli/uninit.cjs.map +1 -1
- package/dist/cli/uninit.js +2 -2
- package/dist/edge-entry-CFq085RZ.d.ts +130 -0
- package/dist/edge-entry-DYl05SJ-.d.cts +130 -0
- package/dist/edge-entry.cjs +14839 -0
- package/dist/edge-entry.cjs.map +1 -0
- package/dist/edge-entry.d.cts +6 -0
- package/dist/edge-entry.d.ts +6 -0
- package/dist/edge-entry.js +14 -0
- package/dist/index.cjs +38 -244
- package/dist/index.cjs.map +1 -1
- package/dist/index.d-CYYe3PxB.d.cts +191 -0
- package/dist/index.d-CYYe3PxB.d.ts +191 -0
- package/dist/index.d.cts +8 -461
- package/dist/index.d.ts +8 -461
- package/dist/index.js +25 -4636
- package/dist/index.js.map +1 -1
- package/dist/node-entry.cjs +22481 -0
- package/dist/node-entry.cjs.map +1 -0
- package/dist/node-entry.d.cts +10 -0
- package/dist/node-entry.d.ts +10 -0
- package/dist/node-entry.js +100 -0
- package/dist/node-entry.js.map +1 -0
- package/dist/node-subpath.cjs +14506 -0
- package/dist/node-subpath.cjs.map +1 -0
- package/dist/node-subpath.d.cts +132 -0
- package/dist/node-subpath.d.ts +132 -0
- package/dist/node-subpath.js +31 -0
- package/dist/node-subpath.js.map +1 -0
- package/dist/{source-map-uploader-VPDZWWM2.js → source-map-uploader-ZHA3B4GE.js} +4 -3
- package/dist/source-map-uploader-ZHA3B4GE.js.map +1 -0
- package/package.json +13 -1
- package/dist/chunk-F2TZRBEH.js.map +0 -1
- package/dist/chunk-VN3GZDV6.js.map +0 -1
- /package/dist/{chunk-YPXW2TN3.js.map → chunk-IP4NMDJK.js.map} +0 -0
- /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
|
-
|
|
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.
|
|
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" };
|