@glasstrace/sdk 1.3.1 → 1.3.2
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/dist/{chunk-5PFPEA4C.js → chunk-DQGNUENK.js} +12 -7
- package/dist/{chunk-5PFPEA4C.js.map → chunk-DQGNUENK.js.map} +1 -1
- package/dist/{chunk-USLH3OTM.js → chunk-GCFOY7T2.js} +2 -2
- package/dist/{chunk-X4IK6KES.js → chunk-REEU6CNO.js} +2 -2
- package/dist/{chunk-DW2UJUNB.js → chunk-UFZEISZB.js} +10 -1
- package/dist/chunk-UFZEISZB.js.map +1 -0
- package/dist/cli/init.cjs +1 -1
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +4 -4
- package/dist/cli/mcp-add.js +1 -1
- package/dist/cli/uninit.cjs.map +1 -1
- package/dist/cli/uninit.js +2 -2
- package/dist/cli/validate.js +1 -1
- package/dist/index.cjs +16 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/node-entry.cjs +16 -4
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-DW2UJUNB.js.map +0 -1
- /package/dist/{chunk-USLH3OTM.js.map → chunk-GCFOY7T2.js.map} +0 -0
- /package/dist/{chunk-X4IK6KES.js.map → chunk-REEU6CNO.js.map} +0 -0
package/dist/cli/uninit.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
unwrapCJSExport,
|
|
13
13
|
unwrapExport,
|
|
14
14
|
writeShutdownMarker
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-GCFOY7T2.js";
|
|
16
|
+
import "../chunk-UFZEISZB.js";
|
|
17
17
|
import "../chunk-MQHLWSIX.js";
|
|
18
18
|
import "../chunk-NB7GJE4S.js";
|
|
19
19
|
import "../chunk-NSBPE2FW.js";
|
package/dist/cli/validate.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -17601,6 +17601,14 @@ function fsyncParentDirSyncWithFs(targetPath, fs3) {
|
|
|
17601
17601
|
}
|
|
17602
17602
|
}
|
|
17603
17603
|
}
|
|
17604
|
+
function isSyncFsAvailable() {
|
|
17605
|
+
try {
|
|
17606
|
+
loadFsSync();
|
|
17607
|
+
return true;
|
|
17608
|
+
} catch {
|
|
17609
|
+
return false;
|
|
17610
|
+
}
|
|
17611
|
+
}
|
|
17604
17612
|
|
|
17605
17613
|
// src/mcp-runtime.ts
|
|
17606
17614
|
var MCP_ENDPOINT = "https://api.glasstrace.dev/mcp";
|
|
@@ -22426,6 +22434,10 @@ var _debounceTimer = null;
|
|
|
22426
22434
|
var _started = false;
|
|
22427
22435
|
function startRuntimeStateWriter(options) {
|
|
22428
22436
|
if (_started) return;
|
|
22437
|
+
if (!isSyncFsAvailable()) {
|
|
22438
|
+
_started = true;
|
|
22439
|
+
return;
|
|
22440
|
+
}
|
|
22429
22441
|
_started = true;
|
|
22430
22442
|
_projectRoot = options.projectRoot;
|
|
22431
22443
|
_sdkVersion = options.sdkVersion;
|
|
@@ -22511,7 +22523,7 @@ function registerGlasstrace(options) {
|
|
|
22511
22523
|
setCoreState(CoreState.REGISTERING);
|
|
22512
22524
|
startRuntimeStateWriter({
|
|
22513
22525
|
projectRoot: process.cwd(),
|
|
22514
|
-
sdkVersion: "1.3.
|
|
22526
|
+
sdkVersion: "1.3.2"
|
|
22515
22527
|
});
|
|
22516
22528
|
const config2 = resolveConfig(options);
|
|
22517
22529
|
if (config2.verbose) {
|
|
@@ -22677,8 +22689,8 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
22677
22689
|
if (config2.verbose) {
|
|
22678
22690
|
console.info("[glasstrace] Background init firing.");
|
|
22679
22691
|
}
|
|
22680
|
-
const healthReport = collectHealthReport("1.3.
|
|
22681
|
-
const initResult = await performInit(config2, anonKeyForInit, "1.3.
|
|
22692
|
+
const healthReport = collectHealthReport("1.3.2");
|
|
22693
|
+
const initResult = await performInit(config2, anonKeyForInit, "1.3.2", healthReport);
|
|
22682
22694
|
if (generation !== registrationGeneration) return;
|
|
22683
22695
|
const currentState = getCoreState();
|
|
22684
22696
|
if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
|
|
@@ -22701,7 +22713,7 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
22701
22713
|
}
|
|
22702
22714
|
maybeInstallConsoleCapture();
|
|
22703
22715
|
if (didLastInitSucceed()) {
|
|
22704
|
-
startHeartbeat(config2, anonKeyForInit, "1.3.
|
|
22716
|
+
startHeartbeat(config2, anonKeyForInit, "1.3.2", generation, (newApiKey, accountId) => {
|
|
22705
22717
|
setAuthState(AuthState.CLAIMING);
|
|
22706
22718
|
emitLifecycleEvent("auth:claim_started", { accountId });
|
|
22707
22719
|
setResolvedApiKey(newApiKey);
|