(config: Config | null)
| 143 | } |
| 144 | |
| 145 | export const restoreCommand = (config: Config | null): SlashCommand | null => { |
| 146 | if (!config?.getCheckpointingEnabled()) { |
| 147 | return null; |
| 148 | } |
| 149 | |
| 150 | return { |
| 151 | name: 'restore', |
| 152 | description: |
| 153 | 'Restore a tool call. This will reset the conversation and file history to the state it was in when the tool call was suggested', |
| 154 | kind: CommandKind.BUILT_IN, |
| 155 | action: restoreAction, |
| 156 | completion, |
| 157 | }; |
| 158 | }; |
no test coverage detected