Step 252: diagnostic delta streaming (getDiagnosticsDelta, version tracking)

DiagnosticVersionTracker records snapshots and computes added/removed deltas
between versions. Agents can efficiently check if their fix resolved an error
without re-fetching all diagnostics. 21 MCP tools total.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bill
2026-02-11 15:45:31 +00:00
parent fbc7b6bce2
commit fcccaeb866
8 changed files with 586 additions and 1 deletions

View File

@@ -669,6 +669,23 @@ private:
return callWhetstone("getDiagnostics", args);
};
// whetstone_get_diagnostics_delta
tools_.push_back({"whetstone_get_diagnostics_delta",
"Get only the diagnostics that changed since a given version. "
"Returns added and removed diagnostics for efficient "
"mutate-then-check loops. Use the version from a previous "
"getDiagnostics or getDiagnosticsDelta response.",
{{"type", "object"}, {"properties", {
{"sinceVersion", {{"type", "integer"},
{"description",
"Version number from a previous diagnostics response"}}}
}}, {"required", {"sinceVersion"}}}
});
toolHandlers_["whetstone_get_diagnostics_delta"] =
[this](const json& args) {
return callWhetstone("getDiagnosticsDelta", args);
};
// whetstone_get_quick_fixes
tools_.push_back({"whetstone_get_quick_fixes",
"Get all applicable quick-fix actions for a node or the entire "