MCPcopy Create free account
hub / github.com/anus-dev/ANUS / restoreCommand

Function restoreCommand

packages/cli/src/ui/commands/restoreCommand.ts:145–158  ·  view source on GitHub ↗
(config: Config | null)

Source from the content-addressed store, hash-verified

143}
144
145export 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};

Callers 2

loadCommandsMethod · 0.85

Calls 1

Tested by

no test coverage detected