Commit Graph

59 Commits

Author SHA1 Message Date
X-iZhang 62fe970476 feat: add OpenAI support with OAuth and environment configuration 2026-03-16 00:25:19 +00:00
X-iZhang c5a4d559a2 Refactor test cases for improved readability and consistency
- Added blank lines for better separation of test cases in multiple test files.
- Reformatted event handling in tests for clarity and consistency.
- Ensured consistent use of multi-line formatting for dictionary arguments in event handling.
- Improved assertions and test descriptions for better understanding.
- Updated test cases across various modules including test_stream_state, test_stream_utils, test_summarization, test_thread_selector, test_tool_error_handler, test_tui_widgets, test_ui_runtime, and test_wechat_channel.
2026-03-15 21:12:51 +00:00
X-iZhang 1ce2d059ca feat: implement OAuth support for Anthropic using ccproxy and add related configuration options 2026-03-15 16:52:11 +00:00
X-iZhang 21a875e026 feat: add /compact command to summarize conversation and free context 2026-03-14 20:09:38 +00:00
X-iZhang 46a1de9dd6 refactor: enhance summarization widget with streaming support and text accumulation 2026-03-14 19:41:27 +00:00
Ziheng Zhang bfecfe0afc chore: add timeout (#24) 2026-03-14 11:16:59 +00:00
X-iZhang ee20adb021 Remove unused function _channel_ask_user_prompt_from_event from tui_interactive.py 2026-03-12 12:13:01 +00:00
Ziheng Zhang 438f9e56d5 Fix: channel can't ask user (#23)
* small fix

* small fix

* remove local file

* remove local file
2026-03-12 11:28:37 +00:00
X-iZhang c15c0dfdf0 feat: add ask_user middleware and interactive widget for user prompts
- Implemented `ask_user` middleware to facilitate agent-initiated questions during research workflows.
- Created `AskUserWidget` for interactive user prompts, supporting both text and multiple choice questions.
- Enhanced `StreamEventEmitter` to handle `ask_user` interrupts and updated event handling in `stream_agent_events`.
- Added state management for pending `ask_user` events in `StreamState`.
- Developed validation for question structures and parsing for responses.
- Introduced unit tests covering middleware functionality, event handling, and widget behavior.
2026-03-10 18:17:52 +00:00
X-iZhang 311fb08676 feat(summarization): implement summarization feature with dedicated widget and event handling 2026-03-10 01:13:30 +00:00
X-iZhang 903ef4d158 feat(thread-picker): add ThreadPickerWidget for inline thread selection in TUI 2026-03-10 00:45:21 +00:00
X-iZhang aad431785c feat(diff): implement unified diff formatting for edit_file tool results 2026-03-09 22:18:54 +00:00
X-iZhang 4c53bb0480 fix(cli): update welcome slogans for clarity and engagement 2026-03-09 17:30:20 +00:00
X-iZhang 18b1d38aa5 fix(onboard): update wechat dependencies and improve package display formatting
fix(cli): unify directory handling in print_banner and _build_welcome_banner functions
2026-03-09 15:01:26 +00:00
X-iZhang c4de31c772 fix(ui): map legacy UI backend values to current equivalents in normalization 2026-03-09 10:38:42 +00:00
X-iZhang f3bb70c74e feat(serve): implement headless serve mode with message processing and interrupt handling 2026-03-08 17:06:40 +00:00
X-iZhang 260ee95697 feat(ui): update UI backend references from 'rich' to 'tui' in onboarding and interactive components 2026-03-08 16:44:28 +00:00
X-iZhang a118d3ed23 refactor(onboard): simplify workspace step to return only selected mode
test(onboard): update tests for workspace step to reflect mode-only return
2026-03-08 16:16:40 +00:00
X-iZhang 07e57e110b feat(ui): update UI backend options to use 'cli' and 'tui' 2026-03-08 15:34:22 +00:00
X-iZhang 659fbc7f84 feat(interactive): implement history-based auto-suggest for TUI input 2026-03-08 15:07:17 +00:00
X-iZhang a91d6def40 fix(interactive): remove unused os import from interactive.py 2026-03-08 14:40:57 +00:00
X-iZhang ed376d1b5b fix(interactive): update history file path to use config directory 2026-03-08 14:38:11 +00:00
X-iZhang 5ea9f3e938 feat(serve): add auto-approve option for tool executions
docs: update README to include HITL action approval details
tests: adjust mock for get_effective_config in CLI serve tests
2026-03-07 21:13:40 +00:00
X-iZhang 833fa0abfb Implement HITL (Human-in-the-Loop) approval mechanism
- Added HITL approval lifecycle to ToolCallWidget, including a new "rejected" status.
- Introduced configuration options for auto-approval and shell command allow list in EvoScientistConfig.
- Developed approval handling functions in display module to manage HITL interrupts and user decisions.
- Created ApprovalWidget for user interaction during approval prompts.
- Enhanced StreamEventEmitter to support interrupt events.
- Updated StreamState to track pending interrupts.
- Implemented tests for HITL functionality, including event structure, state handling, and approval logic.
2026-03-07 21:02:35 +00:00
X-iZhang 250c41c561 feat(token-usage): implement token usage tracking and display widget 2026-03-07 15:16:29 +00:00
X-iZhang 6992e37ce5 feat(tui-interactive): update color scheme for improved visibility and aesthetics 2026-03-07 12:09:02 +00:00
X-iZhang 0c5d0049a4 feat(tui-interactive): implement throttled scrolling for long content and improve Markdown rendering efficiency 2026-03-07 01:28:44 +00:00
X-iZhang d2555ac10f feat(tui-interactive): implement message queueing and editing functionality 2026-03-07 01:09:52 +00:00
X-iZhang 0a823c6e0d feat(thinking-widget): enhance collapsible behavior and improve display logic 2026-03-07 00:10:53 +00:00
X-iZhang 3be3f5adf0 feat(subagent): implement visibility management for completed and running tools in SubAgentWidget 2026-03-04 19:26:08 +00:00
X-iZhang 931fc8a88d feat(skills): implement batch installation of multiple skills and enhance install feedback 2026-02-25 23:38:08 +00:00
X-iZhang abf783d2d3 feat(cli): enhance agent loading with optional config parameter for improved initialization 2026-02-25 00:35:40 +00:00
X-iZhang c57e6132a5 Add tests for Rich markup escape safety in formatter
- Introduced a new test file `test_rich_escape.py` to validate the safety of Rich markup escaping in the ToolResultFormatter.
- Added tests to ensure that tool names and error messages containing brackets do not cause crashes during formatting.
2026-02-22 17:15:11 +00:00
X-iZhang 0e4d09f5d4 fix(tui): rename thread_id to conversation_tid for clarity in session management 2026-02-21 03:54:43 +00:00
X-iZhang bd167d6c85 feat(cli): add random welcome slogans to interactive and TUI modes 2026-02-21 03:17:29 +00:00
X-iZhang b5dbdc2a1e feat(widgets): enhance ToolCallWidget and SubAgentWidget for better tool management and status handling 2026-02-21 02:50:28 +00:00
X-iZhang d62c0cfb2e feat(clipboard): add clipboard utilities for copy-on-select functionality 2026-02-21 01:39:32 +00:00
X-iZhang 03f4134190 feat: add UserMessage widget and UI backend selection during onboarding
- Introduced UserMessage widget for displaying user input with a styled prompt.
- Updated onboarding steps to include UI backend selection (Rich CLI or Textual TUI).
- Modified EvoScientistConfig to store selected UI backend.
- Enhanced configuration handling to support UI backend environment variable.
- Updated README with new UI backend options and commands.
- Added tests for new UI backend functionality and UserMessage widget.
- Removed obsolete test files and ensured existing tests are updated accordingly.
2026-02-21 01:18:33 +00:00
X-iZhang e2a5241a68 feat(cli): enhance channel thinking propagation and error handling in bus mode 2026-02-17 20:25:49 +00:00
X-iZhang b62e63ac74 feat(channel): improve error handling and logging in channel management
feat(interactive): refactor message sending to channel for better error handling
fix(display): remove unnecessary print statement in final results display
test(bus): update tests to match changes in _bus_inbound_consumer signature
2026-02-16 13:33:00 +00:00
X-iZhang 924ce3dd30 feat: implement channel message queue and response handling in bus mode 2026-02-16 03:01:19 +00:00
MuXinCG 616a90ef1c feat(channels): add unified channel framework with Telegram and Discord support
Introduce the new channel unification architecture:
- Core framework: base channel class, bus, consumer, channel manager,
  middleware, mixins, capabilities, formatter, retry, plugin system
- Telegram channel implementation with bot token validation
- Discord channel implementation with bot token validation
- Refactored iMessage to use new base channel architecture
- Updated CLI: /channel commands, serve mode, channel setup wizard
- Updated onboard wizard to support multi-channel selection
- Config settings for all channel types
- Stream events: media attachment support, done event content field
- Comprehensive test coverage for channels, bus, and manager
2026-02-16 02:09:25 +08:00
X-iZhang 3da590acaf refactor: rename imessage_send_thinking to channel_send_thinking for clarity 2026-02-15 17:31:02 +00:00
X-iZhang eb10135314 Revert "Merge pull request #8 from EvoScientist/feature/channel-unification"
This reverts commit 84da81256a, reversing
changes made to c2c8e27b46.
2026-02-15 16:32:44 +00:00
MuXinCG 9b93cea12b fix linter bug 2026-02-15 21:07:47 +08:00
MuXinCG 358f63994b Merge remote-tracking branch 'origin/main' into feature/channel-unification
# Conflicts:
#	EvoScientist/EvoScientist.py
#	EvoScientist/channels/imessage/serve.py
#	EvoScientist/cli/commands.py
2026-02-15 20:37:12 +08:00
X-iZhang 7b598dd6a6 feat(paths): implement set_workspace_root function and update related paths
refactor(cli): improve workspace handling in commands and agent modules
fix(interactive): update memory directory path resolution
docs(README): clarify workspace directory structure and environment variable usage
test(paths): add tests for set_workspace_root and ensure_dirs functions
test(skills_manager): update tests to use paths module for USER_SKILLS_DIR
2026-02-15 11:27:04 +00:00
MuXinCG 1ccc4158d9 Merge remote-tracking branch 'origin/main' into feature/channel-unification
# Conflicts:
#	EvoScientist/cli/commands.py
2026-02-15 18:10:24 +08:00
X-iZhang 94184fe13b feat(workspace): defer directory creation to CLI and improve workspace handling 2026-02-15 01:10:48 +00:00
MuXinCG 61cf79e525 for merge 2026-02-15 02:11:38 +08:00