Skip to content

feat(RE-6): expose library interface for echo-system integration#7

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

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

Conversation

@dnacenta
Copy link
Owner

@dnacenta dnacenta commented Mar 2, 2026

Summary

  • Add src/lib.rs with RecallEcho struct — library API for echo-system plugin integration
  • RecallEcho provides new(), from_default(), consume_content(), checkpoint(), promote(), health(), setup_prompts()
  • Library methods return values (paths, content) instead of printing to stdout
  • main.rs refactored to import modules from the library crate
  • Internal utc_now() and log_body() functions made pub for library access
  • Add echo-system-types dependency for shared contract types

Test plan

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

Closes #6

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

Add src/lib.rs with RecallEcho struct providing new(), from_default(),
consume_content(), checkpoint(), promote(), health(), and setup_prompts().
main.rs refactored to import from library. Internal utc_now() and
log_body() functions made pub for library access.
Add echo-system-types dependency for HealthStatus and SetupPrompt.

Closes #6
@dnacenta dnacenta self-assigned this Mar 2, 2026
@dnacenta dnacenta changed the title feat(lib): expose library interface for echo-system integration (#6) feat(RE-6): expose library interface for echo-system integration Mar 2, 2026
@dnacenta dnacenta merged commit a5a47b0 into development Mar 2, 2026
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