claude-code-best/src/commands/plan/index.ts
James Feng 7f4dcfbabf feat(remote-control): 优化 Web 展示、状态同步与桥接控制流程 (#288)
Commit: 72a2093c
64 files changed, 4139 insertions(+), 313 deletions(-)
2026-06-04 23:51:54 +08:00

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