Skip to content

feat(CE-2): expose library interface for echo-system integration#3

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

feat(CE-2): expose library interface for echo-system integration#3
dnacenta merged 1 commit intodevelopmentfrom
feat/2-expose-library-interface

Conversation

@dnacenta
Copy link
Owner

@dnacenta dnacenta commented Mar 2, 2026

Summary

  • Add src/lib.rs with ChatEcho builder struct — new(), start(), stop(), health(), routes(), setup_prompts()
  • Refactor src/main.rs to thin wrapper delegating to the library
  • Add echo-system-types dependency for shared contract types (HealthStatus, SetupPrompt)
  • All modules (bridge, config, ws) re-exported through lib.rs

Context

Part of the plugin architecture epic (echo-system#21, Phase 1). chat-echo is a core plugin — every entity needs a chat interface. Same pattern as voice-echo#48.

Test plan

  • Doc-test passes
  • cargo fmt clean
  • cargo clippy -- -D warnings clean
  • Manual: chat-echo starts and serves UI as before
  • Manual: WebSocket relay to bridge-echo works

Closes #2

Add src/lib.rs with ChatEcho builder struct exposing new(), start(),
stop(), health(), routes(), and setup_prompts(). Refactor main.rs to
thin wrapper that delegates to the library. Add echo-system-types
dependency for shared contract types (HealthStatus, SetupPrompt).

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

1 participant