feat: Complete Rust port of WiFi-DensePose with modular crates
Major changes: - Organized Python v1 implementation into v1/ subdirectory - Created Rust workspace with 9 modular crates: - wifi-densepose-core: Core types, traits, errors - wifi-densepose-signal: CSI processing, phase sanitization, FFT - wifi-densepose-nn: Neural network inference (ONNX/Candle/tch) - wifi-densepose-api: Axum-based REST/WebSocket API - wifi-densepose-db: SQLx database layer - wifi-densepose-config: Configuration management - wifi-densepose-hardware: Hardware abstraction - wifi-densepose-wasm: WebAssembly bindings - wifi-densepose-cli: Command-line interface Documentation: - ADR-001: Workspace structure - ADR-002: Signal processing library selection - ADR-003: Neural network inference strategy - DDD domain model with bounded contexts Testing: - 69 tests passing across all crates - Signal processing: 45 tests - Neural networks: 21 tests - Core: 3 doc tests Performance targets: - 10x faster CSI processing (~0.5ms vs ~5ms) - 5x lower memory usage (~100MB vs ~500MB) - WASM support for browser deployment
This commit is contained in:
118
.claude/commands/hooks/session-end.md
Normal file
118
.claude/commands/hooks/session-end.md
Normal file
@@ -0,0 +1,118 @@
|
||||
# hook session-end
|
||||
|
||||
Cleanup and persist session state before ending work.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
npx claude-flow hook session-end [options]
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
- `--session-id, -s <id>` - Session identifier to end
|
||||
- `--save-state` - Save current session state (default: true)
|
||||
- `--export-metrics` - Export session metrics
|
||||
- `--generate-summary` - Create session summary
|
||||
- `--cleanup-temp` - Remove temporary files
|
||||
|
||||
## Examples
|
||||
|
||||
### Basic session end
|
||||
|
||||
```bash
|
||||
npx claude-flow hook session-end --session-id "dev-session-2024"
|
||||
```
|
||||
|
||||
### With full export
|
||||
|
||||
```bash
|
||||
npx claude-flow hook session-end -s "feature-auth" --export-metrics --generate-summary
|
||||
```
|
||||
|
||||
### Quick close
|
||||
|
||||
```bash
|
||||
npx claude-flow hook session-end -s "quick-fix" --save-state false --cleanup-temp
|
||||
```
|
||||
|
||||
### Complete persistence
|
||||
|
||||
```bash
|
||||
npx claude-flow hook session-end -s "major-refactor" --save-state --export-metrics --generate-summary
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
### State Persistence
|
||||
|
||||
- Saves current context
|
||||
- Stores open files
|
||||
- Preserves task progress
|
||||
- Maintains decisions
|
||||
|
||||
### Metric Export
|
||||
|
||||
- Session duration
|
||||
- Commands executed
|
||||
- Files modified
|
||||
- Tokens consumed
|
||||
- Performance data
|
||||
|
||||
### Summary Generation
|
||||
|
||||
- Work accomplished
|
||||
- Key decisions made
|
||||
- Problems solved
|
||||
- Next steps identified
|
||||
|
||||
### Cleanup Operations
|
||||
|
||||
- Removes temp files
|
||||
- Clears caches
|
||||
- Frees resources
|
||||
- Optimizes storage
|
||||
|
||||
## Integration
|
||||
|
||||
This hook is automatically called by Claude Code when:
|
||||
|
||||
- Ending a conversation
|
||||
- Closing work session
|
||||
- Before shutdown
|
||||
- Switching contexts
|
||||
|
||||
Manual usage in agents:
|
||||
|
||||
```bash
|
||||
# At session end
|
||||
npx claude-flow hook session-end --session-id "your-session" --generate-summary
|
||||
```
|
||||
|
||||
## Output
|
||||
|
||||
Returns JSON with:
|
||||
|
||||
```json
|
||||
{
|
||||
"sessionId": "dev-session-2024",
|
||||
"duration": 7200000,
|
||||
"saved": true,
|
||||
"metrics": {
|
||||
"commandsRun": 145,
|
||||
"filesModified": 23,
|
||||
"tokensUsed": 85000,
|
||||
"tasksCompleted": 8
|
||||
},
|
||||
"summaryPath": "/sessions/dev-session-2024-summary.md",
|
||||
"cleanedUp": true,
|
||||
"nextSession": "dev-session-2025"
|
||||
}
|
||||
```
|
||||
|
||||
## See Also
|
||||
|
||||
- `hook session-start` - Session initialization
|
||||
- `hook session-restore` - Session restoration
|
||||
- `performance report` - Detailed metrics
|
||||
- `memory backup` - State backup
|
||||
Reference in New Issue
Block a user