MkDev11
|
111d6839e0
|
Feat/Abstract Assistant into module with registry (#1020)
* Abstract Assistant into module with registry (fixes #1016)
- Add Assistant module with registry/factory (builtin, external)
- Assistant.for_chat(chat) routes by family.assistant_type
- Assistant.config_for(chat) delegates to Builtin for backward compat
- Assistant.available_types returns registered types
- Add Assistant::Base (Broadcastable, respond_to contract)
- Move current behavior to Assistant::Builtin (Provided + Configurable)
- Add Assistant::External stub for future OpenClaw/WebSocket
- Migration: add families.assistant_type (default builtin)
- Family: validate assistant_type inclusion
- Tests: for_chat routing, available_types, External stub, blank chat guard
* Fix RuboCop layout: indentation in Assistant module and tests
* Move new test methods above private so Minitest discovers them
* Clear thinking indicator in External#respond_to to avoid stuck UI
* Rebase onto upstream main: fix schema to avoid spurious diffs
- Rebase feature/abstract-assistant-1016 onto we-promise/main
- Rename migration to 20260218120001 to avoid duplicate version with backfill_crypto_subtype
- Regenerate schema from upstream + assistant_type only (keeps vector_store_id, realized_gain, etc.)
- PR schema diff now shows only assistant_type addition and version bump
---------
Co-authored-by: mkdev11 <jaysmth689+github@users.noreply.github.com>
|
2026-02-23 07:38:58 -05:00 |
|