20 lines
557 B
TypeScript
20 lines
557 B
TypeScript
import type { Command } from '../../commands.js'
|
|
|
|
const plan = {
|
|
bridgeSafe: true,
|
|
getBridgeInvocationError(args: string) {
|
|
const subcommand = args.trim().split(/\s+/)[0]
|
|
if (subcommand === 'open') {
|
|
return "Opening the local editor via /plan open isn't available over Remote Control."
|
|
}
|
|
return undefined
|
|
},
|
|
type: 'local-jsx',
|
|
name: 'plan',
|
|
description: 'Enable plan mode or view the current session plan',
|
|
argumentHint: '[open|<description>]',
|
|
load: () => import('./plan.js'),
|
|
} satisfies Command
|
|
|
|
export default plan
|