Skip to content

feat(VIG-7): expose library interface for echo-system integration#8

Merged
dnacenta merged 1 commit intodevelopmentfrom
feat/7-expose-library-interface
Mar 2, 2026
Merged

feat(VIG-7): expose library interface for echo-system integration#8
dnacenta merged 1 commit intodevelopmentfrom
feat/7-expose-library-interface

Conversation

@dnacenta
Copy link
Owner

@dnacenta dnacenta commented Mar 2, 2026

Summary

  • Add src/lib.rs with VigilEcho struct — library API for echo-system plugin integration
  • VigilEcho takes two base dirs: claude_dir (config/state) and docs_dir (identity documents)
  • Provides new(), from_default(), health(), setup_prompts()
  • Health check reads latest analysis alert level (Healthy/Watch/Concern/Alert)
  • main.rs refactored to import modules from the library crate
  • Add echo-system-types dependency for shared contract types

Test plan

  • cargo fmt — clean
  • cargo clippy -- -D warnings -A dead_code — clean
  • cargo test — 33 unit + 1 doc-test passing
  • Manual: verify CLI still works (vigil-echo status, vigil-echo pulse)

Closes #7

Part of echo-system#21 (Phase 1: lib.rs extraction)

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
@dnacenta dnacenta self-assigned this Mar 2, 2026
@dnacenta dnacenta changed the title feat(lib): expose library interface for echo-system integration (#7) feat(VIG-7): expose library interface for echo-system integration Mar 2, 2026
@dnacenta dnacenta merged commit 56e1bd3 into development Mar 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Rust library implementation for echo-system plugin integration

1 participant