feat(VIG-7): expose library interface for echo-system integration#8
Merged
dnacenta merged 1 commit intodevelopmentfrom Mar 2, 2026
Merged
Conversation
Add src/lib.rs with VigilEcho struct providing new(), from_default(), health(), and setup_prompts(). Two base directories: claude_dir for config/state, docs_dir for identity documents. Health check reads latest analysis alert level. main.rs refactored to import from library. Add echo-system-types dependency for HealthStatus and SetupPrompt. Closes #7
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
src/lib.rswithVigilEchostruct — library API for echo-system plugin integrationVigilEchotakes two base dirs:claude_dir(config/state) anddocs_dir(identity documents)new(),from_default(),health(),setup_prompts()main.rsrefactored to import modules from the library crateecho-system-typesdependency for shared contract typesTest plan
cargo fmt— cleancargo clippy -- -D warnings -A dead_code— cleancargo test— 33 unit + 1 doc-test passingvigil-echo status,vigil-echo pulse)Closes #7
Part of echo-system#21 (Phase 1: lib.rs extraction)