@glasstrace/sdk 1.14.0 → 1.15.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/dist/cli/init.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  detectAgents,
27
27
  generateMcpConfig,
28
28
  injectAllTargets
29
- } from "../chunk-KOYZJN6G.js";
29
+ } from "../chunk-3A25EBAC.js";
30
30
  import {
31
31
  MCP_ENDPOINT,
32
32
  getOrCreateAnonKey,
@@ -918,7 +918,7 @@ Then add this as the first statement in your register() function:
918
918
  );
919
919
  const dispatchSet = detectedNonGeneric.length === 0 ? agentsWithMcpReady : nonGenericReady;
920
920
  if (dispatchSet.length > 0) {
921
- const sdkVersionForInject = true ? "1.14.0" : "0.0.0-dev";
921
+ const sdkVersionForInject = true ? "1.15.0" : "0.0.0-dev";
922
922
  try {
923
923
  await injectAllTargets(
924
924
  dispatchSet,
@@ -1020,7 +1020,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
1020
1020
  }
1021
1021
  const baseConfig = resolveConfig({ apiKey: devKey });
1022
1022
  const config = { ...baseConfig, apiKey: devKey };
1023
- const sdkVersion = true ? "1.14.0" : "0.0.0-dev";
1023
+ const sdkVersion = true ? "1.15.0" : "0.0.0-dev";
1024
1024
  const result = await verifyInitReachable(config, anonKey, sdkVersion);
1025
1025
  if (result.ok) {
1026
1026
  return { outcome: "verified" };
@@ -15204,7 +15204,10 @@ function buildAgentInstructionBody() {
15204
15204
  "- You already have a precise traceId from another source.",
15205
15205
  "",
15206
15206
  "### Workflow",
15207
- "1. Start with `find_trace_candidates`. Pass whatever route or procedure name is natural \u2014 the server normalizes vocabulary and, on miss, returns close matches and a sample of routes actually present in the window.",
15207
+ "1. Pick the first call by symptom:",
15208
+ " - **Active failure** (a stack trace, a recent error in this session, or a request that just failed) \u2192 `get_latest_error` first. It is the cheapest entry point when you know an error happened; it returns the most recent server error with its trace context and lets you skip the search step entirely.",
15209
+ " - **Known route or procedure with suspected misbehavior** (you have a name to filter on, and a rough time window) \u2192 `find_trace_candidates` with that name and a **tight time window**. Pass the route name as you see it in source \u2014 the server normalizes vocabulary and, on miss, returns close matches and a sample of routes actually present in the window.",
15210
+ " - **Historical exploration** (no known recent failure, you're checking whether a code path ever ran) \u2192 `find_trace_candidates` with an **open window**. Same tool, wider lens.",
15208
15211
  "2. Take the highest-confidence candidate's `suggestedFollowups` and pass them straight to `get_trace` or `get_root_cause`.",
15209
15212
  "3. For side-effect bugs, read `sideEffectSummary` in the `get_trace` / `get_root_cause` response. The allowlisted fields (`templateKey`, `providerOperation`, `role`, `locale`, `timezone`, `status`, `phase`) are the ones that disambiguate payload bugs.",
15210
15213
  "4. If a tool returns empty, READ the response's empty-result envelope before pivoting to source \u2014 each field disambiguates a different reason for the empty result:",
@@ -15987,7 +15990,7 @@ async function mcpAdd(options) {
15987
15990
  );
15988
15991
  const dispatchSetMcpAdd = detectedNonGenericMcpAdd.length === 0 ? agentsWithMcpReady : nonGenericReadyMcpAdd;
15989
15992
  if (dispatchSetMcpAdd.length > 0) {
15990
- const sdkVersion = true ? "1.14.0" : "0.0.0-dev";
15993
+ const sdkVersion = true ? "1.15.0" : "0.0.0-dev";
15991
15994
  try {
15992
15995
  await injectAllTargets(
15993
15996
  dispatchSetMcpAdd,