fix: align WeChat channel modes

This commit is contained in:
lofyer
2026-08-10 11:47:03 +08:00
parent a9ae00a845
commit 2cb712e4ba
11 changed files with 36 additions and 27 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import type { WorkMode } from '../../shared/assistant-contracts'
import type { InteractiveWorkMode } from '../../shared/assistant-contracts'
const COMMAND_PATTERN =
/^\/(?<command>ask|execute|exec)(?=$|[\s::])[\s::]*/iu
@@ -7,9 +7,9 @@ const CHINESE_PATTERN =
export function parseRemoteChannelPrompt(
text: string,
defaultWorkMode: WorkMode
defaultWorkMode: InteractiveWorkMode
): {
workMode: WorkMode
workMode: InteractiveWorkMode
prompt: string
} {
const value = text.trim()