mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
feat(remote-control): 优化 Web 展示、状态同步与桥接控制流程 (#288)
Co-authored-by: chengzifeng <chengzifeng@meituan.com>
This commit is contained in:
@@ -174,6 +174,18 @@ export type CommandAvailability =
|
||||
|
||||
export type CommandBase = {
|
||||
availability?: CommandAvailability[]
|
||||
/**
|
||||
* Allows a local/local-jsx command to execute when it arrives over the
|
||||
* Remote Control bridge. Only use for commands that do not require local
|
||||
* interactive Ink UI and can safely complete headlessly.
|
||||
*/
|
||||
bridgeSafe?: boolean
|
||||
/**
|
||||
* Optional per-invocation validation for bridge-delivered slash commands.
|
||||
* Return a user-facing rejection reason when specific arguments are unsafe
|
||||
* to run headlessly over Remote Control.
|
||||
*/
|
||||
getBridgeInvocationError?: (args: string) => string | undefined
|
||||
description: string
|
||||
hasUserSpecifiedDescription?: boolean
|
||||
/** Defaults to true. Only set when the command has conditional enablement (feature flags, env checks, etc). */
|
||||
|
||||
Reference in New Issue
Block a user