@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.
@@ -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.6.1" : "0.0.0-dev";
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) {
@@ -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.6.1" : "0.0.0-dev";
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.6.1" : "0.0.0-dev";
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.6.1" : "0.0.0-dev";
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.6.1"
23124
+ sdkVersion: "1.7.0"
23125
23125
  });
23126
23126
  startRuntimeStateWriter({
23127
23127
  projectRoot: process.cwd(),
23128
- sdkVersion: "1.6.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.6.1");
23296
- const initResult = await performInit(config2, anonKeyForInit, "1.6.1", healthReport);
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.6.1", generation, (newApiKey, accountId) => {
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
@@ -12,7 +12,7 @@ import {
12
12
  registerGlasstrace,
13
13
  waitForReady,
14
14
  withGlasstraceConfig
15
- } from "./chunk-SYNQJZZY.js";
15
+ } from "./chunk-OWPA7GHV.js";
16
16
  import {
17
17
  GlasstraceSpanProcessor,
18
18
  SdkError,
@@ -23157,11 +23157,11 @@ function registerGlasstrace(options) {
23157
23157
  setCoreState(CoreState.REGISTERING);
23158
23158
  maybeWarnStaleAgentInstructions({
23159
23159
  projectRoot: process.cwd(),
23160
- sdkVersion: "1.6.1"
23160
+ sdkVersion: "1.7.0"
23161
23161
  });
23162
23162
  startRuntimeStateWriter({
23163
23163
  projectRoot: process.cwd(),
23164
- sdkVersion: "1.6.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.6.1");
23332
- const initResult = await performInit(config2, anonKeyForInit, "1.6.1", healthReport);
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.6.1", generation, (newApiKey, accountId) => {
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);
@@ -12,7 +12,7 @@ import {
12
12
  registerGlasstrace,
13
13
  waitForReady,
14
14
  withGlasstraceConfig
15
- } from "./chunk-SYNQJZZY.js";
15
+ } from "./chunk-OWPA7GHV.js";
16
16
  import {
17
17
  GlasstraceSpanProcessor,
18
18
  SdkError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasstrace/sdk",
3
- "version": "1.6.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.js"
37
+ "glasstrace": "dist/cli/init.cjs"
38
38
  },
39
39
  "main": "./dist/index.cjs",
40
40
  "module": "./dist/index.js",