Refactor: unified CLI with subcommands#14
Merged
Merged
Conversation
Build dependencies don't affect the final binary - no reason to avoid them. The previous implementation was fragile and would break on formatting changes.
References like &Concept.facet now validated to ensure the target concept and facet actually exist in the document. - Added UndefinedReference error variant - collect_valid_references() builds set of valid targets - validate_claim_syntax() checks references against the set - Added test_undefined_reference test case - Added test_valid_cross_reference test case - Fixed test_claim_with_reference to include referenced facet
- Added pyproject.toml at project root with uv support - Updated README to use uv commands - Removed evals/requirements.txt - Added uv.lock for reproducible builds
Builds for macOS ARM, Linux x86_64, and Linux ARM on tag push.
Creates GitHub release with:
- worldview-validate-{platform}.tar.gz
- worldview-{platform}.tar.gz
Added RELEASE.md with release process documentation.
- Rename agent/ to cli/ with single 'worldview' binary - Add subcommands: 'validate' and 'add' - Embed system.md spec in --help output via include_str!() - Remove separate worldview-validate binary - Update all workflows for cli/, uv, and single binary - Update README and RELEASE.md documentation - Add .codey/ to gitignore
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
Combines validator and agent into a single
worldviewbinary with subcommands.Changes
agent/→cli/worldview validate- validate .wvf filesworldview add- add facts using AI agent--helpoutput viainclude_str!("../../system.md")worldview-validatebinarycli/,uv, and single binaryUsage
Notes
addbefore writingsystem.md(generated from spec) is embedded at compile time