Skip to content

Commit 4524d26

Browse files
committed
feat(tinyclaw): add integration tests and lib.rs for skills
Create lib.rs to export public API for integration tests: - Export agent, bus, channel, channels, config modules - Export format, session, skills, tools modules - Enable external testing of skills system Add comprehensive integration tests (13 tests): - test_skill_save_and_load: Persistence roundtrip - test_skill_list_and_delete: CRUD operations - test_skill_execution_success: End-to-end execution - test_skill_execution_with_defaults: Default input handling - test_skill_execution_missing_required_input: Validation - test_skill_execution_timeout: Timeout behavior - test_skill_execution_cancellation: Cancel functionality - test_execution_report_generation: Report creation - test_progress_monitoring: Real-time progress tracking - test_complex_skill_with_all_step_types: Tool/LLM/Shell steps - test_skill_versioning: Version overwrite behavior - test_empty_skill_execution: Edge case handling - test_skill_with_many_inputs: Multiple input handling Total: 115 tests passing (102 unit + 13 integration)
1 parent 055e93a commit 4524d26

2 files changed

Lines changed: 516 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//! TinyClaw - Multi-channel AI assistant for Terraphim
2+
//!
3+
//! This crate provides a multi-channel AI assistant that can interact
4+
//! through Telegram, Discord, CLI, and other channels. It includes:
5+
//!
6+
//! - **Agent Loop**: Core conversation handling with tool calling
7+
//! - **Channels**: Adapters for different messaging platforms
8+
//! - **Tools**: Extensible tool system for filesystem, web, shell operations
9+
//! - **Skills**: JSON-based reusable workflows
10+
//! - **Session Management**: Persistent conversation history
11+
12+
pub mod agent;
13+
pub mod bus;
14+
pub mod channel;
15+
pub mod channels;
16+
pub mod config;
17+
pub mod format;
18+
pub mod session;
19+
pub mod skills;
20+
pub mod tools;

0 commit comments

Comments
 (0)