Commit 1f4f96f
feat: Adds checkpointing functionality using Git CLI commands (#2896)
* (in progress) Implement checkpointing using git CLI commands
* feat: Add new checkpointing functionality using git CLI
Updates:
- Only works if the user has git installed
- Supports auto initialization if the user is in a git repo, manual
if not
- UI ported over from dedicated file tools implementation
* feat: Add user message for turn-level checkpoints, clean command
Updates:
- The clean subcommand will delete the shadow repo
- The description for turn-level checkpoints is a truncated version
of the user's last message
* fix: Fix shadow repo deletion logic
Updates:
- Running the clean subcommand now properly deletes the entire
shadow repo for both automatic and manual modes
* chore: Run formatter and fix clippy warnings
* feat: Add checkpoint diff
Updates:
- Users can now view diffs between checkpoints
- Fixed tool-level checkpoint display handling
* fix: Fix last messsage handling for checkpoints
Updates:
- Checkpoints now (hopefully) correctly display the correct
turn-specific user message
- Added slash command auto completion
* fix: Fix commit message handling again
* chore: Run formatter
* Removed old comment
* define a global capture dirctory
* revise the capture path
* fix cpature clean bug
* add a clean all flag
* add auto drop method for capture feature
* support file details when expand
* add the file summary when list and expand
* revise structure and print no diff msg
* delete all flag, add summry when fs read
* refactor code
* revise ui
* add capture into experiement
* clippy
* rename to checkpoint
* reverse false renaming
* recover history
* disable tangent mode in checkpoint
* fix cr
* nit: keep checkpoint name
* allow both tangent & checkpoint enabled
* ci
---------
Co-authored-by: kiran-garre <[email protected]>1 parent 0c23526 commit 1f4f96f
File tree
11 files changed
+1287
-4
lines changed- crates/chat-cli/src
- cli/chat
- cli
- tools
- database
- util
11 files changed
+1287
-4
lines changedLarge diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
53 | 62 | | |
54 | 63 | | |
55 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| 176 | + | |
172 | 177 | | |
173 | 178 | | |
174 | 179 | | |
| |||
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
| 206 | + | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
68 | 84 | | |
69 | 85 | | |
70 | 86 | | |
| |||
106 | 122 | | |
107 | 123 | | |
108 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
109 | 142 | | |
110 | 143 | | |
111 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| 145 | + | |
| 146 | + | |
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
| |||
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
| 212 | + | |
206 | 213 | | |
207 | 214 | | |
208 | 215 | | |
| |||
891 | 898 | | |
892 | 899 | | |
893 | 900 | | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
894 | 915 | | |
895 | 916 | | |
896 | 917 | | |
| |||
0 commit comments