You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add restore command and enhance UX with improved error handling (v0.5.1)
New features:
- kc restore command for recovering snapshots from trash
- Typo suggestions for unknown commands (edit distance algorithm)
- --no-header and --machine options for list command
Security improvements:
- Terminal escape sequence protection with input sanitization
- DoS protection in edit distance algorithm (length limits)
- Enhanced input validation with detailed error messages
UX enhancements:
- Detailed error messages with specific reasons and examples
- Similar ID suggestions when snapshots not found
- Parallel processing for restore operations (batched)
- Machine-readable TSV output format
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
@@ -643,6 +647,9 @@ A: `kc go` uses `claude -c -p "<context>"` to inject, then `claude --continue` t
643
647
**Q: Why no token percentages?**
644
648
A: Claude doesn't reliably expose this. We use heuristic-based 4-value status (🟢/🟡/🔴/❓) instead.
645
649
650
+
**Q: Are my snapshots deleted during installation/updates?**
651
+
A: No. Kodama Claude is designed to never touch user data during installation or updates. All snapshots are safely stored in `~/.local/share/kodama-claude/` and are unaffected by binary updates. Data deletion requires explicit commands like `kc uninstall --remove-all`.
thrownewError(`Multiple snapshots match ID '${inputId}' (${matchingFiles.length} found): ${matches}. Use a more specific ID to avoid ambiguity. Example: try '${matchingFiles[0].replace('.json','').slice(0,Math.min(8,matchingFiles[0].length-5))}'`);
0 commit comments