mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-28 09:23:08 +08:00
Add comprehensive tests for keyword detection, session state management, and user abort detection
- Implement tests for KeywordDetector including keyword detection, sanitization, and priority handling. - Add tests for SessionStateService covering session validation, loading, saving, and state updates. - Create tests for UserAbortDetector to validate user abort detection logic and pattern matching.
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
# CCW - Claude Code Workflow CLI
|
||||
NEW LINE
|
||||
|
||||
[](https://github.com/catlog22/Claude-Code-Workflow/releases)
|
||||
|
||||
A powerful command-line tool for managing Claude Code Workflow with native CodexLens code intelligence, multi-model CLI orchestration, and interactive dashboard.
|
||||
|
||||
## What's New in v6.3
|
||||
|
||||
### Hook System Integration
|
||||
- **Soft Enforcement Stop Hook**: Never blocks - injects continuation messages for active workflows/modes
|
||||
- **Mode System**: Keyword-based mode activation with exclusive mode conflict detection
|
||||
- **Checkpoint/Recovery**: Automatic state preservation before context compaction
|
||||
- **PreCompact Hook**: Creates checkpoints with mutex to prevent concurrent operations
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
@@ -77,6 +84,44 @@ ccw view -o report.html
|
||||
- **Dimension Analysis**: Findings by review dimension (Security, Architecture, Quality, etc.)
|
||||
- **Tabbed Interface**: Switch between Workflow and Reviews tabs
|
||||
|
||||
### Hook System
|
||||
- **Soft Enforcement Stop Hook**: Never blocks stops - injects continuation messages instead
|
||||
- **Mode System**: Keyword-based mode activation (`autopilot`, `ultrawork`, `swarm`, etc.)
|
||||
- **Checkpoint/Recovery**: Automatic state preservation before context compaction
|
||||
- **PreCompact Hook**: Creates checkpoints with mutex to prevent concurrent operations
|
||||
- **Exclusive Mode Detection**: Prevents conflicting modes from running concurrently
|
||||
|
||||
## Quick Start with Hooks
|
||||
|
||||
```bash
|
||||
# Configure hooks in .claude/settings.json
|
||||
{
|
||||
"hooks": {
|
||||
"PreCompact": [
|
||||
{
|
||||
"name": "Create Checkpoint",
|
||||
"command": "ccw hook precompact --stdin",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"Stop": [
|
||||
{
|
||||
"name": "Soft Enforcement Stop",
|
||||
"command": "ccw hook stop --stdin",
|
||||
"enabled": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
# Use mode keywords in prompts
|
||||
"use autopilot to implement the feature"
|
||||
"run ultrawork on this task"
|
||||
"cancelomc" # Stops active modes
|
||||
```
|
||||
|
||||
See [docs/hooks-integration.md](docs/hooks-integration.md) for full documentation.
|
||||
|
||||
## Dashboard Data Sources
|
||||
|
||||
The CLI reads data from the `.workflow/` directory structure:
|
||||
|
||||
Reference in New Issue
Block a user