@glasstrace/sdk 1.12.0 → 1.14.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 +55 -20
- package/dist/async-context/index.cjs.map +1 -1
- package/dist/async-context/index.js +2 -2
- package/dist/{capture-error-CRQSqKgd.d.cts → capture-error-03qDnC5v.d.cts} +2 -2
- package/dist/{capture-error-CqCbjoMq.d.ts → capture-error-CAfFUyIU.d.ts} +2 -2
- package/dist/{chunk-6NKMAKMI.js → chunk-6ST4QV7T.js} +3 -3
- package/dist/{chunk-BN5DVIUO.js → chunk-7LE2O4ZJ.js} +12 -7
- package/dist/{chunk-BN5DVIUO.js.map → chunk-7LE2O4ZJ.js.map} +1 -1
- package/dist/{chunk-CZQN6G4I.js → chunk-E2F4S5IJ.js} +362 -11
- package/dist/chunk-E2F4S5IJ.js.map +1 -0
- package/dist/{chunk-J3ZCVE67.js → chunk-F7A3QXCT.js} +2 -2
- package/dist/{chunk-M3ZTG4P5.js → chunk-HMEHYSTS.js} +2 -2
- package/dist/{chunk-4YRYR32D.js → chunk-LQZRGBN5.js} +2 -2
- package/dist/{chunk-ZIL2IY4C.js → chunk-MP3QNDXQ.js} +2 -2
- package/dist/{chunk-FFNGE5RR.js → chunk-VMK2G6QR.js} +2 -2
- package/dist/{chunk-KBHGPQZ2.js → chunk-XMD5OYD6.js} +2 -2
- package/dist/{chunk-V75ZB4G4.js → chunk-ZIYT2Y4B.js} +3 -3
- package/dist/cli/init.cjs +4 -4
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +7 -7
- package/dist/cli/mcp-add.cjs +1 -1
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +3 -3
- package/dist/cli/uninit.js +3 -3
- package/dist/cli/upgrade-instructions.cjs +1 -1
- package/dist/cli/upgrade-instructions.js +3 -3
- package/dist/cli/validate.cjs.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/{correlation-id-CFpyJsKv.d.cts → correlation-id-CZ2bstzA.d.cts} +1 -1
- package/dist/{correlation-id-DPXyY9-3.d.ts → correlation-id-YcfcqOru.d.ts} +1 -1
- package/dist/edge-entry.cjs.map +1 -1
- package/dist/edge-entry.d.cts +2 -2
- package/dist/edge-entry.d.ts +2 -2
- package/dist/edge-entry.js +4 -4
- package/dist/index.cjs +1033 -960
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-D-jdiIPU.d.cts → index.d-BQIJ5Dvc.d.cts} +44 -9
- package/dist/{index.d-D-jdiIPU.d.ts → index.d-BQIJ5Dvc.d.ts} +44 -9
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10 -297
- package/dist/index.js.map +1 -1
- package/dist/middleware/index.cjs.map +1 -1
- package/dist/middleware/index.js +2 -2
- package/dist/node-entry.cjs +12 -5
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.d.cts +3 -3
- package/dist/node-entry.d.ts +3 -3
- package/dist/node-entry.js +7 -7
- package/dist/node-subpath.cjs.map +1 -1
- package/dist/node-subpath.d.cts +1 -1
- package/dist/node-subpath.d.ts +1 -1
- package/dist/node-subpath.js +3 -3
- package/dist/{source-map-uploader-K67LTPBG.js → source-map-uploader-NUONOEJG.js} +3 -3
- package/dist/trpc/index.cjs.map +1 -1
- package/dist/trpc/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CZQN6G4I.js.map +0 -1
- /package/dist/{chunk-6NKMAKMI.js.map → chunk-6ST4QV7T.js.map} +0 -0
- /package/dist/{chunk-J3ZCVE67.js.map → chunk-F7A3QXCT.js.map} +0 -0
- /package/dist/{chunk-M3ZTG4P5.js.map → chunk-HMEHYSTS.js.map} +0 -0
- /package/dist/{chunk-4YRYR32D.js.map → chunk-LQZRGBN5.js.map} +0 -0
- /package/dist/{chunk-ZIL2IY4C.js.map → chunk-MP3QNDXQ.js.map} +0 -0
- /package/dist/{chunk-FFNGE5RR.js.map → chunk-VMK2G6QR.js.map} +0 -0
- /package/dist/{chunk-KBHGPQZ2.js.map → chunk-XMD5OYD6.js.map} +0 -0
- /package/dist/{chunk-V75ZB4G4.js.map → chunk-ZIYT2Y4B.js.map} +0 -0
- /package/dist/{source-map-uploader-K67LTPBG.js.map → source-map-uploader-NUONOEJG.js.map} +0 -0
package/dist/middleware/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
_resetForTesting,
|
|
3
3
|
tracedRequestMiddleware
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VMK2G6QR.js";
|
|
5
5
|
import "../chunk-CL3OVHPO.js";
|
|
6
6
|
import "../chunk-DQ25VOKK.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-7LE2O4ZJ.js";
|
|
8
8
|
import "../chunk-NSBPE2FW.js";
|
|
9
9
|
export {
|
|
10
10
|
_resetForTesting,
|
package/dist/node-entry.cjs
CHANGED
|
@@ -24090,6 +24090,12 @@ function registerHeartbeatShutdownHook(config2, anonKey, sdkVersion) {
|
|
|
24090
24090
|
});
|
|
24091
24091
|
}
|
|
24092
24092
|
|
|
24093
|
+
// src/side-effect/index.ts
|
|
24094
|
+
var _verbose = false;
|
|
24095
|
+
function setSideEffectVerboseFlag(verbose) {
|
|
24096
|
+
_verbose = verbose;
|
|
24097
|
+
}
|
|
24098
|
+
|
|
24093
24099
|
// src/runtime-state.ts
|
|
24094
24100
|
init_console_capture();
|
|
24095
24101
|
var fsSync = null;
|
|
@@ -24390,13 +24396,14 @@ function registerGlasstrace(options) {
|
|
|
24390
24396
|
setCoreState(CoreState.REGISTERING);
|
|
24391
24397
|
maybeWarnStaleAgentInstructions({
|
|
24392
24398
|
projectRoot: process.cwd(),
|
|
24393
|
-
sdkVersion: "1.
|
|
24399
|
+
sdkVersion: "1.14.0"
|
|
24394
24400
|
});
|
|
24395
24401
|
startRuntimeStateWriter({
|
|
24396
24402
|
projectRoot: process.cwd(),
|
|
24397
|
-
sdkVersion: "1.
|
|
24403
|
+
sdkVersion: "1.14.0"
|
|
24398
24404
|
});
|
|
24399
24405
|
const config2 = resolveConfig(options);
|
|
24406
|
+
setSideEffectVerboseFlag(config2.verbose);
|
|
24400
24407
|
if (config2.verbose) {
|
|
24401
24408
|
console.info("[glasstrace] Config resolved.");
|
|
24402
24409
|
}
|
|
@@ -24561,8 +24568,8 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
24561
24568
|
if (config2.verbose) {
|
|
24562
24569
|
console.info("[glasstrace] Background init firing.");
|
|
24563
24570
|
}
|
|
24564
|
-
const healthReport = collectHealthReport("1.
|
|
24565
|
-
const initResult = await performInit(config2, anonKeyForInit, "1.
|
|
24571
|
+
const healthReport = collectHealthReport("1.14.0");
|
|
24572
|
+
const initResult = await performInit(config2, anonKeyForInit, "1.14.0", healthReport);
|
|
24566
24573
|
if (generation !== registrationGeneration) return;
|
|
24567
24574
|
const currentState = getCoreState();
|
|
24568
24575
|
if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
|
|
@@ -24585,7 +24592,7 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
24585
24592
|
}
|
|
24586
24593
|
maybeInstallConsoleCapture();
|
|
24587
24594
|
if (didLastInitSucceed()) {
|
|
24588
|
-
startHeartbeat(config2, anonKeyForInit, "1.
|
|
24595
|
+
startHeartbeat(config2, anonKeyForInit, "1.14.0", generation, (newApiKey, accountId) => {
|
|
24589
24596
|
setAuthState(AuthState.CLAIMING);
|
|
24590
24597
|
emitLifecycleEvent("auth:claim_started", { accountId });
|
|
24591
24598
|
setResolvedApiKey(newApiKey);
|