@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/mcp-add.js
CHANGED
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "../chunk-HAU66QBQ.js";
|
|
9
9
|
import {
|
|
10
10
|
readAnonKey
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-IP4NMDJK.js";
|
|
12
12
|
import {
|
|
13
13
|
scaffoldMcpMarker
|
|
14
14
|
} from "../chunk-O63DJKIJ.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-TQ54WLCZ.js";
|
|
16
16
|
import {
|
|
17
17
|
MCP_ENDPOINT,
|
|
18
18
|
formatAgentName
|
package/dist/cli/uninit.cjs
CHANGED
|
@@ -74,6 +74,7 @@ function isDevApiKey(value) {
|
|
|
74
74
|
// src/cli/discovery-file.ts
|
|
75
75
|
var fs = __toESM(require("node:fs"), 1);
|
|
76
76
|
var path = __toESM(require("node:path"), 1);
|
|
77
|
+
var WELL_KNOWN_GLASSTRACE_PATH = ".well-known/glasstrace.json";
|
|
77
78
|
function resolveStaticRoot(projectRoot) {
|
|
78
79
|
if (isSvelteKitProject(projectRoot)) {
|
|
79
80
|
return {
|
|
@@ -103,7 +104,8 @@ function isSvelteKitProject(projectRoot) {
|
|
|
103
104
|
return fs.existsSync(svelteConfigJs) || fs.existsSync(svelteConfigTs) || fs.existsSync(appHtml);
|
|
104
105
|
}
|
|
105
106
|
function relativeDiscoveryPath(layout) {
|
|
106
|
-
|
|
107
|
+
const rootDir = layout === "static" ? "static" : "public";
|
|
108
|
+
return `${rootDir}/${WELL_KNOWN_GLASSTRACE_PATH}`;
|
|
107
109
|
}
|
|
108
110
|
function removeDiscoveryFile(projectRoot) {
|
|
109
111
|
const { layout: inferredLayout } = resolveStaticRoot(projectRoot);
|