@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/README.md +43 -0
- package/dist/{chunk-KOYZJN6G.js → chunk-3A25EBAC.js} +5 -2
- package/dist/chunk-3A25EBAC.js.map +1 -0
- package/dist/{chunk-E2F4S5IJ.js → chunk-T4ETJJSK.js} +34 -7
- package/dist/{chunk-E2F4S5IJ.js.map → chunk-T4ETJJSK.js.map} +1 -1
- package/dist/cli/init.cjs +8 -5
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +3 -3
- package/dist/cli/mcp-add.cjs +5 -2
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +2 -2
- package/dist/cli/upgrade-instructions.cjs +5 -2
- package/dist/cli/upgrade-instructions.cjs.map +1 -1
- package/dist/cli/upgrade-instructions.js +2 -2
- package/dist/index.cjs +33 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/node-entry.cjs +33 -6
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-KOYZJN6G.js.map +0 -1
package/dist/cli/mcp-add.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
detectAgents,
|
|
3
3
|
generateMcpConfig,
|
|
4
4
|
injectAllTargets
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-3A25EBAC.js";
|
|
6
6
|
import {
|
|
7
7
|
MCP_ENDPOINT,
|
|
8
8
|
identityFingerprint,
|
|
@@ -230,7 +230,7 @@ async function mcpAdd(options) {
|
|
|
230
230
|
);
|
|
231
231
|
const dispatchSetMcpAdd = detectedNonGenericMcpAdd.length === 0 ? agentsWithMcpReady : nonGenericReadyMcpAdd;
|
|
232
232
|
if (dispatchSetMcpAdd.length > 0) {
|
|
233
|
-
const sdkVersion = true ? "1.
|
|
233
|
+
const sdkVersion = true ? "1.15.1" : "0.0.0-dev";
|
|
234
234
|
try {
|
|
235
235
|
await injectAllTargets(
|
|
236
236
|
dispatchSetMcpAdd,
|
|
@@ -276,7 +276,10 @@ function buildAgentInstructionBody() {
|
|
|
276
276
|
"- You already have a precise traceId from another source.",
|
|
277
277
|
"",
|
|
278
278
|
"### Workflow",
|
|
279
|
-
"1.
|
|
279
|
+
"1. Pick the first call by symptom:",
|
|
280
|
+
" - **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.",
|
|
281
|
+
" - **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.",
|
|
282
|
+
" - **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.",
|
|
280
283
|
"2. Take the highest-confidence candidate's `suggestedFollowups` and pass them straight to `get_trace` or `get_root_cause`.",
|
|
281
284
|
"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.",
|
|
282
285
|
"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:",
|
|
@@ -669,7 +672,7 @@ async function runUpgradeInstructions(options) {
|
|
|
669
672
|
);
|
|
670
673
|
return { exitCode: 1, refreshed, skipped, warnings, errors };
|
|
671
674
|
}
|
|
672
|
-
const sdkVersion = true ? "1.
|
|
675
|
+
const sdkVersion = true ? "1.15.1" : "0.0.0-dev";
|
|
673
676
|
const optedInAgents = [];
|
|
674
677
|
for (const agent of agents) {
|
|
675
678
|
if (agent.infoFilePath === null) {
|