@glasstrace/sdk 1.10.1 → 1.10.2
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-TJ46YOGJ.js → chunk-CIKPFJOM.js} +8 -2
- package/dist/chunk-CIKPFJOM.js.map +1 -0
- package/dist/{chunk-WQF7ZQOM.js → chunk-QS5RZ2TC.js} +6 -6
- package/dist/cli/init.cjs +11 -5
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +3 -3
- package/dist/cli/mcp-add.cjs +8 -2
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +2 -2
- package/dist/cli/upgrade-instructions.cjs +8 -2
- package/dist/cli/upgrade-instructions.cjs.map +1 -1
- package/dist/cli/upgrade-instructions.js +2 -2
- package/dist/index.cjs +5 -5
- package/dist/index.js +1 -1
- package/dist/node-entry.cjs +5 -5
- package/dist/node-entry.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-TJ46YOGJ.js.map +0 -1
- /package/dist/{chunk-WQF7ZQOM.js.map → chunk-QS5RZ2TC.js.map} +0 -0
package/dist/cli/init.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
detectAgents,
|
|
27
27
|
generateInfoSection,
|
|
28
28
|
generateMcpConfig
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-CIKPFJOM.js";
|
|
30
30
|
import {
|
|
31
31
|
MCP_ENDPOINT,
|
|
32
32
|
getOrCreateAnonKey,
|
|
@@ -901,7 +901,7 @@ Then add this as the first statement in your register() function:
|
|
|
901
901
|
}
|
|
902
902
|
anyConfigWritten = true;
|
|
903
903
|
anyConfigRewrittenWithBearer = true;
|
|
904
|
-
const sdkVersionForInject = true ? "1.10.
|
|
904
|
+
const sdkVersionForInject = true ? "1.10.2" : "0.0.0-dev";
|
|
905
905
|
const infoContent = generateInfoSection(
|
|
906
906
|
agent,
|
|
907
907
|
MCP_ENDPOINT,
|
|
@@ -1007,7 +1007,7 @@ async function verifyAnonKeyRegistration(projectRoot) {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
const baseConfig = resolveConfig({ apiKey: devKey });
|
|
1009
1009
|
const config = { ...baseConfig, apiKey: devKey };
|
|
1010
|
-
const sdkVersion = true ? "1.10.
|
|
1010
|
+
const sdkVersion = true ? "1.10.2" : "0.0.0-dev";
|
|
1011
1011
|
const result = await verifyInitReachable(config, anonKey, sdkVersion);
|
|
1012
1012
|
if (result.ok) {
|
|
1013
1013
|
return { outcome: "verified" };
|
package/dist/cli/mcp-add.cjs
CHANGED
|
@@ -14436,7 +14436,13 @@ function buildAgentInstructionBody() {
|
|
|
14436
14436
|
"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.",
|
|
14437
14437
|
"2. Take the highest-confidence candidate's `suggestedFollowups` and pass them straight to `get_trace` or `get_root_cause`.",
|
|
14438
14438
|
"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.",
|
|
14439
|
-
"4. If a tool returns empty, READ the response's
|
|
14439
|
+
"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:",
|
|
14440
|
+
" - `closeMatches` / `recentRoutesSample` \u2014 your filter vocabulary doesn't match server-side names; the server returns the closest known names + a sample of routes actually present.",
|
|
14441
|
+
' - `windowActivity` \u2014 load-bearing four-way distinguisher. `totalTracesInWindow === 0` AND `totalTracesInTenantEver > 0` means "your time window missed the activity"; `totalTracesInTenantEver === 0` means "this tenant has never produced traces" (SDK not registered, or never hit); `captureConfigBlocksRequest === true` means "the SDK\'s capture config dropped this route"; otherwise the empty result is a vocabulary miss \u2014 see `closeMatches`.',
|
|
14442
|
+
" - `humanReadable` \u2014 prose guidance written for the agent.",
|
|
14443
|
+
" - `recoveryActions` \u2014 concrete next-call shapes.",
|
|
14444
|
+
" - `diagnosticValue` / `recommendedNextStep` \u2014 whether to keep searching or stop.",
|
|
14445
|
+
" Empty results carry `notAbsenceProof: true` \u2014 they are never proof the bug did not occur.",
|
|
14440
14446
|
"",
|
|
14441
14447
|
"### Tools",
|
|
14442
14448
|
"- `find_trace_candidates` \u2014 discovery, vocabulary-tolerant filter",
|
|
@@ -14949,7 +14955,7 @@ async function mcpAdd(options) {
|
|
|
14949
14955
|
const bearer = resolved.effective.key;
|
|
14950
14956
|
for (const agent of targetAgents) {
|
|
14951
14957
|
const name = formatAgentName(agent.name);
|
|
14952
|
-
const sdkVersion = true ? "1.10.
|
|
14958
|
+
const sdkVersion = true ? "1.10.2" : "0.0.0-dev";
|
|
14953
14959
|
if (agent.name !== "generic") {
|
|
14954
14960
|
const cliSuccess = await registerViaCli(agent, bearer);
|
|
14955
14961
|
if (cliSuccess) {
|