Extended CppParser to parse #include, #pragma, #define, enum class/enum,
namespace, using alias, and typedef from tree-sitter CST. Handles all
preprocessor directive types and recursive namespace body parsing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Added EnumDeclaration, EnumMember, NamespaceDeclaration, TypeAlias AST nodes with
full serialization roundtrip and CompactAST support. Enums support scoped/unscoped,
underlying type, member values. Namespaces support nesting.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Added IncludeDirective, PragmaDirective, MacroDefinition as first-class AST nodes.
Full serialization roundtrip and CompactAST support. Preprocessor directives are
statement-level nodes with macro bodies kept as unparsed text.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Full integration: parse C++ classes with multiple inheritance/CRTP via tree-sitter,
generate cross-language output (Java extends+implements, Python multi-base), verify
diamond detection and JSON serialization roundtrip.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Multiple inheritance with access specifiers and virtual flags from tree-sitter
CST. Template class type parameters, CRTP detection, struct support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
isClassTemplate/isVariadic serialization, isCRTPClass detection helper,
CompactAST getNodeName for GenericType/TypeParameter.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
BaseClass struct with access specifiers and virtual flags. Backward-compatible
getBases() migration from legacy superClass. Diamond inheritance detection via
BFS. Updated Serialization for baseClasses array roundtrip.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configurable auto-approve rules for review gate. Default policy auto-approves
deterministic/template with >=0.9 confidence. @Review(required) always
overrides. Policy serialization, wildcard rules, and 2 new MCP tools.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4 new RPC methods and MCP tools for routing and worker dispatch:
routeTask, routeAllReady, executeTask, getRoutingExplanation.
Template workers auto-approve getter/setter patterns.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Builds context windows at local/file/project/cross-project widths with
token budget enforcement and priority-ordered truncation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 worker types: deterministic (intent-based), template (getter/setter),
SLM/LLM (context bundle prep for external invocation), human (review
marking). Registry with type lookup and canHandle filtering.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Routing engine maps WorkItem annotations to dispatch decisions: worker
type, context budget, review requirements. Priority cascade from explicit
overrides through pattern detection to context-based defaults.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 new RPC methods and MCP tools for workflow lifecycle management:
create, inspect, assign, complete, reject, save. Role-based access
control enforced — Linter read-only, Refactor/Generator can mutate.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Save/load workflow state to .whetstone/<project>.workflow.json with
directory creation, overwrite, delete, and multi-workflow support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Top-level workflow state with auto-detected phases, statistics,
audit trail, skeleton population, and full JSON serialization.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ordered queue with priority scheduling and dependency resolution. Items
blocked by unsatisfied dependencies stay pending; completing an item
cascades to unblock dependents.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Phase 11c complete (80/80 tests). Added visitor implementations for
ClassDeclaration, InterfaceDeclaration, MethodDeclaration, GenericType,
TypeParameter, AsyncFunction, AwaitExpression, LambdaExpression, and
DecoratorAnnotation to Rust, Go, Java, JavaScript/TypeScript, and Elisp
generators. Each generator emits idiomatic syntax: Rust struct+impl/trait/async fn/.await/|closure|,
Go type struct/interface/func receiver/<-channel/func(), Java class extends/interface/CompletableFuture/(x)->/@annotation,
JS class extends/async function/await/(x)=>/class, Elisp cl-defstruct/cl-defgeneric/cl-defmethod/(lambda).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4 modern language construct nodes with full JSON roundtrip serialization.
AsyncFunction extends Function with isAsync flag, AwaitExpression wraps
awaited expressions, LambdaExpression captures variables with captureList,
DecoratorAnnotation models @decorator(args) patterns.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Semanno comment format standard (@semanno:type(key=value)) with emitter/parser
covering all 67+ annotation types. SemannoAnnotationImpl CRTP mixin provides
default visitor implementations for all 56 extended annotation methods across
7 language generators. Virtual inheritance resolves diamond ambiguity between
ProjectionGenerator and SemannoAnnotationImpl.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Step 263: saveBuffer/saveAllBuffers RPC methods write editBuf to disk with
workspace path resolution and parent dir creation. 12/12 tests.
Step 264: State-based undo/redo via HeadlessUndoStack. Snapshots recorded
automatically before mutations; undo/redo restore AST + editBuf. 12/12 tests.
Step 265: Phase 9e integration tests — save after undo/redo, mixed undo
states across buffers, full open→mutate→diagnose→undo→redo→save. 8/8 tests.
Phase 9e complete: 32/32 tests. Sprint 9 total: 244/244 across 5 phases.
34 MCP tools.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
End-to-end tests for the full multi-file workflow: open 3 files, switch
buffers, cross-file symbols, import graph, project diagnostics, search,
rename across files, and batch query verification. 8/8 tests passing.
Sprint 9 complete: 212/212 tests across all 4 phases (Steps 245-262).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diagnostics across all open files in one call, grouped by file path.
Includes cross-file E0400 warnings for undefined imports, with optional
severity filter and file glob filter. 12/12 tests pass.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
getInScopeSymbols gains crossFile parameter to include exported symbols from
all open buffers. Import graph tracks file dependencies, auto-maintained on
openFile/closeFile. Text-based fallback for parsers without Import AST nodes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds multi-buffer management via openFile/closeFile/listBuffers/setActiveBuffer
RPC methods, plus indexWorkspace for scanning workspace files without opening
them. Language auto-detected from extension. 27 MCP tools total (was 22).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Systematic validation of all Phase 9c token-saving features: compact AST
(6-7% of full size), lean scope (4% of detailed), diagnostic deltas, budget
pagination across 3 pages, batch queries, and combined 95% savings. Benchmark
confirms sub-millisecond parse->mutate->diagnose cycles. Also adds Environment
Layer feature request to docs/annotations.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>