@glasstrace/sdk 1.6.1 → 1.7.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 +13 -1
- package/dist/{chunk-SYNQJZZY.js → chunk-OWPA7GHV.js} +6 -6
- package/dist/cli/init.cjs +21 -5
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.d.cts +13 -1
- package/dist/cli/init.d.ts +13 -1
- package/dist/cli/init.js +18 -3
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/mcp-add.cjs +1 -1
- package/dist/cli/mcp-add.js +1 -1
- package/dist/cli/upgrade-instructions.cjs +1 -1
- package/dist/cli/upgrade-instructions.js +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.js +1 -1
- package/dist/node-entry.cjs +5 -5
- package/dist/node-entry.js +1 -1
- package/package.json +2 -2
- /package/dist/{chunk-SYNQJZZY.js.map → chunk-OWPA7GHV.js.map} +0 -0
package/dist/cli/mcp-add.cjs
CHANGED
|
@@ -14929,7 +14929,7 @@ async function mcpAdd(options) {
|
|
|
14929
14929
|
const bearer = resolved.effective.key;
|
|
14930
14930
|
for (const agent of targetAgents) {
|
|
14931
14931
|
const name = formatAgentName(agent.name);
|
|
14932
|
-
const sdkVersion = true ? "1.
|
|
14932
|
+
const sdkVersion = true ? "1.7.0" : "0.0.0-dev";
|
|
14933
14933
|
if (agent.name !== "generic") {
|
|
14934
14934
|
const cliSuccess = await registerViaCli(agent, bearer);
|
|
14935
14935
|
if (cliSuccess) {
|
package/dist/cli/mcp-add.js
CHANGED
|
@@ -168,7 +168,7 @@ async function mcpAdd(options) {
|
|
|
168
168
|
const bearer = resolved.effective.key;
|
|
169
169
|
for (const agent of targetAgents) {
|
|
170
170
|
const name = formatAgentName(agent.name);
|
|
171
|
-
const sdkVersion = true ? "1.
|
|
171
|
+
const sdkVersion = true ? "1.7.0" : "0.0.0-dev";
|
|
172
172
|
if (agent.name !== "generic") {
|
|
173
173
|
const cliSuccess = await registerViaCli(agent, bearer);
|
|
174
174
|
if (cliSuccess) {
|
|
@@ -395,7 +395,7 @@ async function runUpgradeInstructions(options) {
|
|
|
395
395
|
);
|
|
396
396
|
return { exitCode: 1, refreshed, skipped, warnings, errors };
|
|
397
397
|
}
|
|
398
|
-
const sdkVersion = true ? "1.
|
|
398
|
+
const sdkVersion = true ? "1.7.0" : "0.0.0-dev";
|
|
399
399
|
for (const agent of agents) {
|
|
400
400
|
if (agent.infoFilePath === null) {
|
|
401
401
|
continue;
|
|
@@ -36,7 +36,7 @@ async function runUpgradeInstructions(options) {
|
|
|
36
36
|
);
|
|
37
37
|
return { exitCode: 1, refreshed, skipped, warnings, errors };
|
|
38
38
|
}
|
|
39
|
-
const sdkVersion = true ? "1.
|
|
39
|
+
const sdkVersion = true ? "1.7.0" : "0.0.0-dev";
|
|
40
40
|
for (const agent of agents) {
|
|
41
41
|
if (agent.infoFilePath === null) {
|
|
42
42
|
continue;
|
package/dist/index.cjs
CHANGED
|
@@ -23121,11 +23121,11 @@ function registerGlasstrace(options) {
|
|
|
23121
23121
|
setCoreState(CoreState.REGISTERING);
|
|
23122
23122
|
maybeWarnStaleAgentInstructions({
|
|
23123
23123
|
projectRoot: process.cwd(),
|
|
23124
|
-
sdkVersion: "1.
|
|
23124
|
+
sdkVersion: "1.7.0"
|
|
23125
23125
|
});
|
|
23126
23126
|
startRuntimeStateWriter({
|
|
23127
23127
|
projectRoot: process.cwd(),
|
|
23128
|
-
sdkVersion: "1.
|
|
23128
|
+
sdkVersion: "1.7.0"
|
|
23129
23129
|
});
|
|
23130
23130
|
const config2 = resolveConfig(options);
|
|
23131
23131
|
if (config2.verbose) {
|
|
@@ -23292,8 +23292,8 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
23292
23292
|
if (config2.verbose) {
|
|
23293
23293
|
console.info("[glasstrace] Background init firing.");
|
|
23294
23294
|
}
|
|
23295
|
-
const healthReport = collectHealthReport("1.
|
|
23296
|
-
const initResult = await performInit(config2, anonKeyForInit, "1.
|
|
23295
|
+
const healthReport = collectHealthReport("1.7.0");
|
|
23296
|
+
const initResult = await performInit(config2, anonKeyForInit, "1.7.0", healthReport);
|
|
23297
23297
|
if (generation !== registrationGeneration) return;
|
|
23298
23298
|
const currentState = getCoreState();
|
|
23299
23299
|
if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
|
|
@@ -23316,7 +23316,7 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
23316
23316
|
}
|
|
23317
23317
|
maybeInstallConsoleCapture();
|
|
23318
23318
|
if (didLastInitSucceed()) {
|
|
23319
|
-
startHeartbeat(config2, anonKeyForInit, "1.
|
|
23319
|
+
startHeartbeat(config2, anonKeyForInit, "1.7.0", generation, (newApiKey, accountId) => {
|
|
23320
23320
|
setAuthState(AuthState.CLAIMING);
|
|
23321
23321
|
emitLifecycleEvent("auth:claim_started", { accountId });
|
|
23322
23322
|
setResolvedApiKey(newApiKey);
|
package/dist/index.js
CHANGED
package/dist/node-entry.cjs
CHANGED
|
@@ -23157,11 +23157,11 @@ function registerGlasstrace(options) {
|
|
|
23157
23157
|
setCoreState(CoreState.REGISTERING);
|
|
23158
23158
|
maybeWarnStaleAgentInstructions({
|
|
23159
23159
|
projectRoot: process.cwd(),
|
|
23160
|
-
sdkVersion: "1.
|
|
23160
|
+
sdkVersion: "1.7.0"
|
|
23161
23161
|
});
|
|
23162
23162
|
startRuntimeStateWriter({
|
|
23163
23163
|
projectRoot: process.cwd(),
|
|
23164
|
-
sdkVersion: "1.
|
|
23164
|
+
sdkVersion: "1.7.0"
|
|
23165
23165
|
});
|
|
23166
23166
|
const config2 = resolveConfig(options);
|
|
23167
23167
|
if (config2.verbose) {
|
|
@@ -23328,8 +23328,8 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
23328
23328
|
if (config2.verbose) {
|
|
23329
23329
|
console.info("[glasstrace] Background init firing.");
|
|
23330
23330
|
}
|
|
23331
|
-
const healthReport = collectHealthReport("1.
|
|
23332
|
-
const initResult = await performInit(config2, anonKeyForInit, "1.
|
|
23331
|
+
const healthReport = collectHealthReport("1.7.0");
|
|
23332
|
+
const initResult = await performInit(config2, anonKeyForInit, "1.7.0", healthReport);
|
|
23333
23333
|
if (generation !== registrationGeneration) return;
|
|
23334
23334
|
const currentState = getCoreState();
|
|
23335
23335
|
if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
|
|
@@ -23352,7 +23352,7 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
|
|
|
23352
23352
|
}
|
|
23353
23353
|
maybeInstallConsoleCapture();
|
|
23354
23354
|
if (didLastInitSucceed()) {
|
|
23355
|
-
startHeartbeat(config2, anonKeyForInit, "1.
|
|
23355
|
+
startHeartbeat(config2, anonKeyForInit, "1.7.0", generation, (newApiKey, accountId) => {
|
|
23356
23356
|
setAuthState(AuthState.CLAIMING);
|
|
23357
23357
|
emitLifecycleEvent("auth:claim_started", { accountId });
|
|
23358
23358
|
setResolvedApiKey(newApiKey);
|
package/dist/node-entry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glasstrace/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Glasstrace server-side debugging SDK for AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"./package.json": "./package.json"
|
|
35
35
|
},
|
|
36
36
|
"bin": {
|
|
37
|
-
"glasstrace": "dist/cli/init.
|
|
37
|
+
"glasstrace": "dist/cli/init.cjs"
|
|
38
38
|
},
|
|
39
39
|
"main": "./dist/index.cjs",
|
|
40
40
|
"module": "./dist/index.js",
|
|
File without changes
|