- Step 202: docs/AGENT_API.md — comprehensive JSON-RPC API reference with 23 methods - Step 203: schemas/ — 20 JSON Schema files (8 types, 12 methods) for validation - Step 204: Expose ContextAPI (getInScopeSymbols, getCallHierarchy, getDependencyGraph) and BatchMutationAPI (applyBatch) via WebSocket RPC - Step 205: Expose Pipeline operations (runPipeline, parseSource, generateFromAST, projectLanguage) via WebSocket RPC - Step 206: API schema validation tests — 51/51 assertions pass - Updated PROGRESS.md with Sprint 5+6 completion, corrected summary table - Updated FEATURE_REQUESTS.md to reflect implemented items - Created sprint7_plan.md with 33 steps across 6 phases Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "https://whetstone-dsl.org/schemas/methods/getAST.schema.json",
|
|
"title": "getAST",
|
|
"description": "Get the current AST with annotations and diagnostics",
|
|
"type": "object",
|
|
"properties": {
|
|
"request": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": false
|
|
},
|
|
"response": {
|
|
"type": "object",
|
|
"properties": {
|
|
"ast": {
|
|
"type": "object",
|
|
"description": "The current AST"
|
|
},
|
|
"annotationCount": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"description": "The number of annotations in the AST"
|
|
},
|
|
"diagnostics": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "../types/Diagnostic.schema.json"
|
|
},
|
|
"description": "Array of validation diagnostics"
|
|
}
|
|
},
|
|
"required": ["ast", "annotationCount", "diagnostics"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": ["request", "response"]
|
|
}
|