feat: manifest-aware modules, export granularity, and robustness fixes#48
Merged
corvid-agent merged 1 commit intomainfrom Mar 25, 2026
Merged
feat: manifest-aware modules, export granularity, and robustness fixes#48corvid-agent merged 1 commit intomainfrom
corvid-agent merged 1 commit intomainfrom
Conversation
… and robustness fixes
- Add manifest parsing for Package.swift, Cargo.toml, build.gradle.kts,
package.json, pubspec.yaml, go.mod, and pyproject.toml to auto-discover
targets, source paths, and dependencies
- Add `exportLevel` config option ("type" vs "member") to control export
extraction granularity — "type" only extracts top-level declarations
- Add `modules` config section in specsync.json for explicit module
groupings with custom file lists and dependency declarations
- Expand test file detection: add Swift patterns (Spec, Mock, Stub, Fake),
Kotlin/Java/C# mock/spec patterns, and detect test directories by name
(Tests/, __tests__/, spec/, mocks/, etc.)
- Fix check command hanging on empty specs — now returns clean JSON/exit
when --fix is used with no spec files
- Catch panics (exit code 101) and convert to friendly error messages
with bug report link
- Add language-specific spec templates for Swift, Rust, Kotlin/Java, Go,
and Python with appropriate section headers and table columns
- Update --fix to generate language-aware table rows (e.g., Kind column
for Swift/Kotlin/Java types)
- Add context boundary guidance to AI spec generation prompt
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
637e68a to
4b404cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses agent testing feedback from v2.2.0 deployment. Major improvements to module detection, export control, and cross-language support.
New features
Package.swift,Cargo.toml,build.gradle.kts,package.json,pubspec.yaml,go.mod, andpyproject.tomlto auto-discover targets, source paths, and dependencies instead of just scanning directoriesexportLevelconfig option ("type"vs"member") so you can document at the type level (class/struct/enum) rather than listing every stored property and initmodulessection inspecsync.jsonto define module groupings directly with custom file listsgenerateand--fixnow produce Swift, Rust, Kotlin/Java, Go, and Python templates with appropriate section headers and table columnsFixes
Tests/,__tests__/,spec/,mocks/, etc.)--fixis used with no spec filescatch_unwind, converts panics to actionable error messages with bug report linkConfig additions
{ "exportLevel": "type", "modules": { "auth": { "files": ["src/auth/service.swift", "src/auth/models.swift"] }, "networking": { "files": ["src/net/"] } } }Test plan
exportLevel: "type"and manifest detection🤖 Generated with Claude Code