Skip to content

Commit 055e93a

Browse files
committed
feat(tinyclaw): add skills monitoring and progress tracking
Implement SkillMonitor for real-time execution tracking: - Progress tracking (current step, percentage, progress bar) - Step timing and duration statistics - Estimated time remaining based on averages - Cancellation and failure tracking Add ExecutionReport for detailed reporting: - Summary and detailed report formats - Step-by-step breakdown with previews - Execution statistics (avg/min/max duration) - Success/failure/cancelled/timeout status Create ProgressTracker for async progress: - Thread-safe progress updates (0.0 to 1.0) - Message updates for status display - Active/complete state tracking Add 15 comprehensive tests for monitoring functionality - All tests passing - Total: 102 tests passing
1 parent 3515d3d commit 055e93a

4 files changed

Lines changed: 682 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/terraphim_tinyclaw/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ dirs = "5"
5252
# Regex for ExecutionGuard
5353
regex = "1"
5454

55+
# Concurrency
56+
parking_lot = "0.12"
57+
5558
# CLI
5659
clap = { version = "4", features = ["derive"] }
5760

crates/terraphim_tinyclaw/src/skills/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
//! Each skill consists of sequential steps (tool calls or LLM prompts).
55
66
pub mod executor;
7+
pub mod monitor;
78
pub mod types;
89

910
pub use executor::SkillExecutor;
10-
pub use types::{Skill, SkillResult, SkillStep, SkillStatus};
11+
pub use monitor::{ExecutionReport, ProgressTracker, SkillMonitor};
12+
pub use types::{Skill, SkillInput, SkillResult, SkillStatus, SkillStep};

0 commit comments

Comments
 (0)