@glasstrace/sdk 1.14.0 → 1.15.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.
package/dist/cli/init.cjs CHANGED
@@ -16116,7 +16116,10 @@ function buildAgentInstructionBody() {
16116
16116
  "- You already have a precise traceId from another source.",
16117
16117
  "",
16118
16118
  "### Workflow",
16119
- "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.",
16119
+ "1. Pick the first call by symptom:",
16120
+ " - **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.",
16121
+ " - **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.",
16122
+ " - **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.",
16120
16123
  "2. Take the highest-confidence candidate's `suggestedFollowups` and pass them straight to `get_trace` or `get_root_cause`.",
16121
16124
  "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.",
16122
16125
  "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:",
@@ -18092,7 +18095,7 @@ async function mcpAdd(options) {
18092
18095
  );
18093
18096
  const dispatchSetMcpAdd = detectedNonGenericMcpAdd.length === 0 ? agentsWithMcpReady : nonGenericReadyMcpAdd;
18094
18097
  if (dispatchSetMcpAdd.length > 0) {
18095
- const sdkVersion = true ? "1.14.0" : "0.0.0-dev";
18098
+ const sdkVersion = true ? "1.15.1" : "0.0.0-dev";
18096
18099
  try {
18097
18100
  await injectAllTargets(
18098
18101
  dispatchSetMcpAdd,
@@ -18349,7 +18352,7 @@ async function runUpgradeInstructions(options) {
18349
18352
  );
18350
18353
  return { exitCode: 1, refreshed, skipped, warnings, errors };
18351
18354
  }
18352
- const sdkVersion = true ? "1.14.0" : "0.0.0-dev";
18355
+ const sdkVersion = true ? "1.15.1" : "0.0.0-dev";
18353
18356
  const optedInAgents = [];
18354
18357
  for (const agent of agents) {
18355
18358
  if (agent.infoFilePath === null) {
@@ -20034,7 +20037,7 @@ Then add this as the first statement in your register() function:
20034
20037
  );
20035
20038
  const dispatchSet = detectedNonGeneric.length === 0 ? agentsWithMcpReady : nonGenericReady;
20036
20039
  if (dispatchSet.length > 0) {
20037
- const sdkVersionForInject = true ? "1.14.0" : "0.0.0-dev";
20040
+ const sdkVersionForInject = true ? "1.15.1" : "0.0.0-dev";
20038
20041
  try {
20039
20042
  await injectAllTargets(
20040
20043
  dispatchSet,
@@ -20136,7 +20139,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
20136
20139
  }
20137
20140
  const baseConfig = resolveConfig({ apiKey: devKey });
20138
20141
  const config2 = { ...baseConfig, apiKey: devKey };
20139
- const sdkVersion = true ? "1.14.0" : "0.0.0-dev";
20142
+ const sdkVersion = true ? "1.15.1" : "0.0.0-dev";
20140
20143
  const result = await verifyInitReachable(config2, anonKey, sdkVersion);
20141
20144
  if (result.ok) {
20142
20145
  return { outcome: "verified" };