@glasstrace/sdk 1.5.0 → 1.5.1

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.
@@ -4439,11 +4439,11 @@ function registerGlasstrace(options) {
4439
4439
  setCoreState(CoreState.REGISTERING);
4440
4440
  maybeWarnStaleAgentInstructions({
4441
4441
  projectRoot: process.cwd(),
4442
- sdkVersion: "1.5.0"
4442
+ sdkVersion: "1.5.1"
4443
4443
  });
4444
4444
  startRuntimeStateWriter({
4445
4445
  projectRoot: process.cwd(),
4446
- sdkVersion: "1.5.0"
4446
+ sdkVersion: "1.5.1"
4447
4447
  });
4448
4448
  const config = resolveConfig(options);
4449
4449
  if (config.verbose) {
@@ -4610,8 +4610,8 @@ async function backgroundInit(config, anonKeyForInit, generation) {
4610
4610
  if (config.verbose) {
4611
4611
  console.info("[glasstrace] Background init firing.");
4612
4612
  }
4613
- const healthReport = collectHealthReport("1.5.0");
4614
- const initResult = await performInit(config, anonKeyForInit, "1.5.0", healthReport);
4613
+ const healthReport = collectHealthReport("1.5.1");
4614
+ const initResult = await performInit(config, anonKeyForInit, "1.5.1", healthReport);
4615
4615
  if (generation !== registrationGeneration) return;
4616
4616
  const currentState = getCoreState();
4617
4617
  if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
@@ -4634,7 +4634,7 @@ async function backgroundInit(config, anonKeyForInit, generation) {
4634
4634
  }
4635
4635
  maybeInstallConsoleCapture();
4636
4636
  if (didLastInitSucceed()) {
4637
- startHeartbeat(config, anonKeyForInit, "1.5.0", generation, (newApiKey, accountId) => {
4637
+ startHeartbeat(config, anonKeyForInit, "1.5.1", generation, (newApiKey, accountId) => {
4638
4638
  setAuthState(AuthState.CLAIMING);
4639
4639
  emitLifecycleEvent("auth:claim_started", { accountId });
4640
4640
  setResolvedApiKey(newApiKey);
@@ -5034,4 +5034,4 @@ export {
5034
5034
  withGlasstraceConfig,
5035
5035
  captureError
5036
5036
  };
5037
- //# sourceMappingURL=chunk-N3XIVM2U.js.map
5037
+ //# sourceMappingURL=chunk-MLRQTCCK.js.map
package/dist/cli/init.cjs CHANGED
@@ -16994,7 +16994,7 @@ async function mcpAdd(options) {
16994
16994
  const bearer = resolved.effective.key;
16995
16995
  for (const agent of targetAgents) {
16996
16996
  const name = formatAgentName(agent.name);
16997
- const sdkVersion = true ? "1.5.0" : "0.0.0-dev";
16997
+ const sdkVersion = true ? "1.5.1" : "0.0.0-dev";
16998
16998
  if (agent.name !== "generic") {
16999
16999
  const cliSuccess = await registerViaCli(agent, bearer);
17000
17000
  if (cliSuccess) {
@@ -17262,7 +17262,7 @@ async function runUpgradeInstructions(options) {
17262
17262
  );
17263
17263
  return { exitCode: 1, refreshed, skipped, warnings, errors };
17264
17264
  }
17265
- const sdkVersion = true ? "1.5.0" : "0.0.0-dev";
17265
+ const sdkVersion = true ? "1.5.1" : "0.0.0-dev";
17266
17266
  for (const agent of agents) {
17267
17267
  if (agent.infoFilePath === null) {
17268
17268
  continue;
@@ -18898,7 +18898,7 @@ Then add this as the first statement in your register() function:
18898
18898
  }
18899
18899
  anyConfigWritten = true;
18900
18900
  anyConfigRewrittenWithBearer = true;
18901
- const sdkVersionForInject = true ? "1.5.0" : "0.0.0-dev";
18901
+ const sdkVersionForInject = true ? "1.5.1" : "0.0.0-dev";
18902
18902
  const infoContent = generateInfoSection(
18903
18903
  agent,
18904
18904
  MCP_ENDPOINT,
@@ -19001,7 +19001,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
19001
19001
  }
19002
19002
  const baseConfig = resolveConfig({ apiKey: devKey });
19003
19003
  const config2 = { ...baseConfig, apiKey: devKey };
19004
- const sdkVersion = true ? "1.5.0" : "0.0.0-dev";
19004
+ const sdkVersion = true ? "1.5.1" : "0.0.0-dev";
19005
19005
  const result = await verifyInitReachable(config2, anonKey, sdkVersion);
19006
19006
  if (result.ok) {
19007
19007
  return { outcome: "verified" };
package/dist/cli/init.js CHANGED
@@ -898,7 +898,7 @@ Then add this as the first statement in your register() function:
898
898
  }
899
899
  anyConfigWritten = true;
900
900
  anyConfigRewrittenWithBearer = true;
901
- const sdkVersionForInject = true ? "1.5.0" : "0.0.0-dev";
901
+ const sdkVersionForInject = true ? "1.5.1" : "0.0.0-dev";
902
902
  const infoContent = generateInfoSection(
903
903
  agent,
904
904
  MCP_ENDPOINT,
@@ -1001,7 +1001,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
1001
1001
  }
1002
1002
  const baseConfig = resolveConfig({ apiKey: devKey });
1003
1003
  const config = { ...baseConfig, apiKey: devKey };
1004
- const sdkVersion = true ? "1.5.0" : "0.0.0-dev";
1004
+ const sdkVersion = true ? "1.5.1" : "0.0.0-dev";
1005
1005
  const result = await verifyInitReachable(config, anonKey, sdkVersion);
1006
1006
  if (result.ok) {
1007
1007
  return { outcome: "verified" };
@@ -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.5.0" : "0.0.0-dev";
14932
+ const sdkVersion = true ? "1.5.1" : "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.5.0" : "0.0.0-dev";
171
+ const sdkVersion = true ? "1.5.1" : "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.5.0" : "0.0.0-dev";
398
+ const sdkVersion = true ? "1.5.1" : "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.5.0" : "0.0.0-dev";
39
+ const sdkVersion = true ? "1.5.1" : "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
@@ -22924,11 +22924,11 @@ function registerGlasstrace(options) {
22924
22924
  setCoreState(CoreState.REGISTERING);
22925
22925
  maybeWarnStaleAgentInstructions({
22926
22926
  projectRoot: process.cwd(),
22927
- sdkVersion: "1.5.0"
22927
+ sdkVersion: "1.5.1"
22928
22928
  });
22929
22929
  startRuntimeStateWriter({
22930
22930
  projectRoot: process.cwd(),
22931
- sdkVersion: "1.5.0"
22931
+ sdkVersion: "1.5.1"
22932
22932
  });
22933
22933
  const config2 = resolveConfig(options);
22934
22934
  if (config2.verbose) {
@@ -23095,8 +23095,8 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
23095
23095
  if (config2.verbose) {
23096
23096
  console.info("[glasstrace] Background init firing.");
23097
23097
  }
23098
- const healthReport = collectHealthReport("1.5.0");
23099
- const initResult = await performInit(config2, anonKeyForInit, "1.5.0", healthReport);
23098
+ const healthReport = collectHealthReport("1.5.1");
23099
+ const initResult = await performInit(config2, anonKeyForInit, "1.5.1", healthReport);
23100
23100
  if (generation !== registrationGeneration) return;
23101
23101
  const currentState = getCoreState();
23102
23102
  if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
@@ -23119,7 +23119,7 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
23119
23119
  }
23120
23120
  maybeInstallConsoleCapture();
23121
23121
  if (didLastInitSucceed()) {
23122
- startHeartbeat(config2, anonKeyForInit, "1.5.0", generation, (newApiKey, accountId) => {
23122
+ startHeartbeat(config2, anonKeyForInit, "1.5.1", generation, (newApiKey, accountId) => {
23123
23123
  setAuthState(AuthState.CLAIMING);
23124
23124
  emitLifecycleEvent("auth:claim_started", { accountId });
23125
23125
  setResolvedApiKey(newApiKey);
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  registerGlasstrace,
13
13
  waitForReady,
14
14
  withGlasstraceConfig
15
- } from "./chunk-N3XIVM2U.js";
15
+ } from "./chunk-MLRQTCCK.js";
16
16
  import {
17
17
  GlasstraceSpanProcessor,
18
18
  SdkError,
@@ -22960,11 +22960,11 @@ function registerGlasstrace(options) {
22960
22960
  setCoreState(CoreState.REGISTERING);
22961
22961
  maybeWarnStaleAgentInstructions({
22962
22962
  projectRoot: process.cwd(),
22963
- sdkVersion: "1.5.0"
22963
+ sdkVersion: "1.5.1"
22964
22964
  });
22965
22965
  startRuntimeStateWriter({
22966
22966
  projectRoot: process.cwd(),
22967
- sdkVersion: "1.5.0"
22967
+ sdkVersion: "1.5.1"
22968
22968
  });
22969
22969
  const config2 = resolveConfig(options);
22970
22970
  if (config2.verbose) {
@@ -23131,8 +23131,8 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
23131
23131
  if (config2.verbose) {
23132
23132
  console.info("[glasstrace] Background init firing.");
23133
23133
  }
23134
- const healthReport = collectHealthReport("1.5.0");
23135
- const initResult = await performInit(config2, anonKeyForInit, "1.5.0", healthReport);
23134
+ const healthReport = collectHealthReport("1.5.1");
23135
+ const initResult = await performInit(config2, anonKeyForInit, "1.5.1", healthReport);
23136
23136
  if (generation !== registrationGeneration) return;
23137
23137
  const currentState = getCoreState();
23138
23138
  if (currentState === CoreState.SHUTTING_DOWN || currentState === CoreState.SHUTDOWN) {
@@ -23155,7 +23155,7 @@ async function backgroundInit(config2, anonKeyForInit, generation) {
23155
23155
  }
23156
23156
  maybeInstallConsoleCapture();
23157
23157
  if (didLastInitSucceed()) {
23158
- startHeartbeat(config2, anonKeyForInit, "1.5.0", generation, (newApiKey, accountId) => {
23158
+ startHeartbeat(config2, anonKeyForInit, "1.5.1", generation, (newApiKey, accountId) => {
23159
23159
  setAuthState(AuthState.CLAIMING);
23160
23160
  emitLifecycleEvent("auth:claim_started", { accountId });
23161
23161
  setResolvedApiKey(newApiKey);
@@ -12,7 +12,7 @@ import {
12
12
  registerGlasstrace,
13
13
  waitForReady,
14
14
  withGlasstraceConfig
15
- } from "./chunk-N3XIVM2U.js";
15
+ } from "./chunk-MLRQTCCK.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.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Glasstrace server-side debugging SDK for AI coding agents",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -49,9 +49,10 @@
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsup",
52
- "postbuild": "npm run check:edge-bundle && npm run verify:subpath",
52
+ "postbuild": "npm run check:edge-bundle && npm run verify:subpath && npm run check:sdk-version-stamp",
53
53
  "check:edge-bundle": "node scripts/check-edge-bundle.mjs",
54
54
  "verify:subpath": "node scripts/verify-subpath-resolution.mjs",
55
+ "check:sdk-version-stamp": "node scripts/check-sdk-version-stamp.mjs",
55
56
  "preuninstall": "node -e \"process.stderr.write('\\n[@glasstrace/sdk] Package removal warning:\\n Before \\'npm uninstall @glasstrace/sdk\\' runs, Glasstrace recommends running \\'npx @glasstrace/sdk uninit\\' first to cleanly remove instrumentation files, MCP configuration, and the .glasstrace/ state directory. Without uninit, your next build may fail because instrumentation.ts and next.config still reference the removed package.\\n See: https://glasstrace.dev/docs/cli#uninit\\n\\n')\""
56
57
  },
57
58
  "peerDependencies": {