@neat.is/mcp 0.9.2 → 0.9.3
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/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -963,6 +963,11 @@ function formatDivergenceLine(d) {
|
|
|
963
963
|
return ` \u2022 [${d.type}] ${d.source} \u2192 ${d.target} \u2014 declared host ${d.extractedHost}, observed host ${d.observedHost}`;
|
|
964
964
|
case "compat-violation":
|
|
965
965
|
return ` \u2022 [${d.type}] ${d.source} \u2192 ${d.target} \u2014 ${d.rule.kind}${d.rule.package ? ` (${d.rule.package})` : ""}`;
|
|
966
|
+
case "observed-symbol-mismatch": {
|
|
967
|
+
const at = d.location ? ` at ${d.location}` : "";
|
|
968
|
+
const member = d.symbol ? ` ${d.symbol}` : "";
|
|
969
|
+
return ` \u2022 [${d.type}] ${d.source}${member}${at} (${d.mismatchKind}) \u2014 confidence ${d.confidence.toFixed(2)}`;
|
|
970
|
+
}
|
|
966
971
|
}
|
|
967
972
|
}
|
|
968
973
|
async function getDivergences(client2, input) {
|
|
@@ -1292,7 +1297,7 @@ registerTool(
|
|
|
1292
1297
|
"Returns places where what the code declares (EXTRACTED) doesn't match what production observed (OBSERVED). The single most NEAT-shaped query \u2014 the one that justifies the whole graph. Use when the user asks 'is anything weird?' or 'what does production do that the code doesn't?' or 'find me a bug' on an unfamiliar codebase. Returns divergences ranked by confidence \xD7 severity. Prefer this over `get_root_cause` when no specific node is failing.",
|
|
1293
1298
|
{
|
|
1294
1299
|
type: import_zod.z.array(import_types2.DivergenceTypeSchema).optional().describe(
|
|
1295
|
-
"Filter by divergence type. One or more of: missing-observed, missing-extracted, version-mismatch, host-mismatch, compat-violation. Omit for all."
|
|
1300
|
+
"Filter by divergence type. One or more of: missing-observed, missing-extracted, version-mismatch, host-mismatch, compat-violation, observed-symbol-mismatch. Omit for all."
|
|
1296
1301
|
),
|
|
1297
1302
|
minConfidence: import_zod.z.number().min(0).max(1).optional().describe("Drop divergences below this confidence threshold (0.0 - 1.0)."),
|
|
1298
1303
|
node: import_zod.z.string().optional().describe("Scope to divergences involving this node id (as source or target)."),
|