@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.js CHANGED
@@ -968,6 +968,11 @@ function formatDivergenceLine(d) {
968
968
  return ` \u2022 [${d.type}] ${d.source} \u2192 ${d.target} \u2014 declared host ${d.extractedHost}, observed host ${d.observedHost}`;
969
969
  case "compat-violation":
970
970
  return ` \u2022 [${d.type}] ${d.source} \u2192 ${d.target} \u2014 ${d.rule.kind}${d.rule.package ? ` (${d.rule.package})` : ""}`;
971
+ case "observed-symbol-mismatch": {
972
+ const at = d.location ? ` at ${d.location}` : "";
973
+ const member = d.symbol ? ` ${d.symbol}` : "";
974
+ return ` \u2022 [${d.type}] ${d.source}${member}${at} (${d.mismatchKind}) \u2014 confidence ${d.confidence.toFixed(2)}`;
975
+ }
971
976
  }
972
977
  }
973
978
  async function getDivergences(client2, input) {
@@ -1297,7 +1302,7 @@ registerTool(
1297
1302
  "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.",
1298
1303
  {
1299
1304
  type: z.array(DivergenceTypeSchema).optional().describe(
1300
- "Filter by divergence type. One or more of: missing-observed, missing-extracted, version-mismatch, host-mismatch, compat-violation. Omit for all."
1305
+ "Filter by divergence type. One or more of: missing-observed, missing-extracted, version-mismatch, host-mismatch, compat-violation, observed-symbol-mismatch. Omit for all."
1301
1306
  ),
1302
1307
  minConfidence: z.number().min(0).max(1).optional().describe("Drop divergences below this confidence threshold (0.0 - 1.0)."),
1303
1308
  node: z.string().optional().describe("Scope to divergences involving this node id (as source or target)."),