@glasstrace/sdk 1.13.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/{chunk-KOYZJN6G.js → chunk-3A25EBAC.js} +5 -2
- package/dist/chunk-3A25EBAC.js.map +1 -0
- package/dist/{chunk-VWZMG3W2.js → chunk-PSMSSLQY.js} +358 -7
- package/dist/chunk-PSMSSLQY.js.map +1 -0
- 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 +1016 -957
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -295
- package/dist/index.js.map +1 -1
- package/dist/node-entry.cjs +12 -5
- 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/chunk-VWZMG3W2.js.map +0 -1
package/dist/cli/init.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
detectAgents,
|
|
27
27
|
generateMcpConfig,
|
|
28
28
|
injectAllTargets
|
|
29
|
-
} from "../chunk-
|
|
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.
|
|
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.
|
|
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" };
|
package/dist/cli/mcp-add.cjs
CHANGED
|
@@ -15204,7 +15204,10 @@ function buildAgentInstructionBody() {
|
|
|
15204
15204
|
"- You already have a precise traceId from another source.",
|
|
15205
15205
|
"",
|
|
15206
15206
|
"### Workflow",
|
|
15207
|
-
"1.
|
|
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.
|
|
15993
|
+
const sdkVersion = true ? "1.15.0" : "0.0.0-dev";
|
|
15991
15994
|
try {
|
|
15992
15995
|
await injectAllTargets(
|
|
15993
15996
|
dispatchSetMcpAdd,
|