@glasstrace/sdk 1.3.7 → 1.3.9

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/cli/init.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-2M57EO6U.js";
5
5
  import {
6
6
  verifyInitReachable
7
- } from "../chunk-YSBGMBI5.js";
7
+ } from "../chunk-ADUD4PEK.js";
8
8
  import {
9
9
  buildImportGraph
10
10
  } from "../chunk-4WUHMLMM.js";
@@ -21,7 +21,7 @@ import {
21
21
  unwrapCJSExport,
22
22
  unwrapExport,
23
23
  writeDiscoveryFile
24
- } from "../chunk-TUFUV43S.js";
24
+ } from "../chunk-LJMZXJ45.js";
25
25
  import {
26
26
  detectAgents,
27
27
  generateInfoSection,
@@ -29,7 +29,7 @@ import {
29
29
  injectInfoSection,
30
30
  updateGitignore,
31
31
  writeMcpConfig
32
- } from "../chunk-TZMYGEMB.js";
32
+ } from "../chunk-JZ475QRH.js";
33
33
  import {
34
34
  MCP_ENDPOINT,
35
35
  getOrCreateAnonKey,
@@ -40,7 +40,7 @@ import {
40
40
  readEnvLocalApiKey,
41
41
  resolveEffectiveMcpCredential,
42
42
  writeMcpMarker
43
- } from "../chunk-V2S7BSV4.js";
43
+ } from "../chunk-GYTCZSAV.js";
44
44
  import "../chunk-XS5W3SPL.js";
45
45
  import {
46
46
  NEXT_CONFIG_NAMES,
@@ -994,7 +994,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
994
994
  }
995
995
  const baseConfig = resolveConfig({ apiKey: devKey });
996
996
  const config = { ...baseConfig, apiKey: devKey };
997
- const sdkVersion = true ? "1.3.7" : "0.0.0-dev";
997
+ const sdkVersion = true ? "1.3.9" : "0.0.0-dev";
998
998
  const result = await verifyInitReachable(config, anonKey, sdkVersion);
999
999
  if (result.ok) {
1000
1000
  return { outcome: "verified" };
@@ -14486,6 +14486,7 @@ function generateMcpConfig(agent, endpoint, bearer) {
14486
14486
  {
14487
14487
  mcpServers: {
14488
14488
  glasstrace: {
14489
+ type: "http",
14489
14490
  url: endpoint,
14490
14491
  headers: {
14491
14492
  Authorization: `Bearer ${bearer}`
@@ -14526,6 +14527,7 @@ function generateInfoSection(agent, endpoint) {
14526
14527
  "",
14527
14528
  "Available tools:",
14528
14529
  "- `get_latest_error` - Get the most recent error trace from the current session",
14530
+ "- `find_trace_candidates` - First-contact route/procedure/URL candidate selection when you have a route fragment, tRPC procedure, method, status, or rough recent activity window but not the exact trace ID. Returns candidate traces plus suggested `get_trace` / `get_root_cause` follow-up call arguments. Candidate discovery, not root-cause proof.",
14529
14531
  "- `get_error_list` - List recent errors with filtering and pagination",
14530
14532
  "- `get_trace` - Get a specific trace by ID or URL pattern",
14531
14533
  "- `get_root_cause` - Get the root cause analysis for a specific error trace (requires a `traceId` from `get_latest_error`, `get_error_list`, or `get_trace`)",