mirror of
https://github.com/codeaashu/claude-code.git
synced 2026-04-09 06:38:46 +03:00
claude-code
This commit is contained in:
15
src/commands/rewind/index.ts
Normal file
15
src/commands/rewind/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { Command } from '../../commands.js'
|
||||
|
||||
const rewind = {
|
||||
description: `Restore the code and/or conversation to a previous point`,
|
||||
name: 'rewind',
|
||||
aliases: ['checkpoint'],
|
||||
argumentHint: '',
|
||||
type: 'local',
|
||||
supportsNonInteractive: false,
|
||||
load: () => import('./rewind.js'),
|
||||
} satisfies Command
|
||||
|
||||
export default rewind
|
||||
|
||||
|
||||
15
src/commands/rewind/rewind.ts
Normal file
15
src/commands/rewind/rewind.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { LocalCommandResult } from '../../commands.js'
|
||||
import type { ToolUseContext } from '../../Tool.js'
|
||||
|
||||
export async function call(
|
||||
_args: string,
|
||||
context: ToolUseContext,
|
||||
): Promise<LocalCommandResult> {
|
||||
if (context.openMessageSelector) {
|
||||
context.openMessageSelector()
|
||||
}
|
||||
// Return a skip message to not append any messages.
|
||||
return { type: 'skip' }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user