@tothemax/tasking 0.0.0-stage → 0.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +121 -2
- package/README.zh-CN.md +122 -0
- package/assets/skills/install-glab/SKILL.md +70 -0
- package/assets/skills/land/SKILL.md +63 -0
- package/assets/skills/land/land_watch.py +312 -0
- package/assets/skills/openspec-archive-change/SKILL.md +114 -0
- package/assets/skills/opsx-grill-with-docs/SKILL.md +193 -0
- package/assets/skills/opsx-implement/SKILL.md +258 -0
- package/assets/skills/opsx-propose-with-tdd/SKILL.md +271 -0
- package/assets/workflows/WORKFLOW.code-mr.en.md.example +345 -0
- package/assets/workflows/WORKFLOW.code-mr.md.example +339 -0
- package/assets/workflows/WORKFLOW.feishu-direct.en.md.example +267 -0
- package/assets/workflows/WORKFLOW.feishu-direct.md.example +258 -0
- package/assets/workflows/WORKFLOW.grill-openspec.en.md.example +362 -0
- package/assets/workflows/WORKFLOW.grill-openspec.md.example +356 -0
- package/assets/workflows/WORKFLOW.minimal.en.md.example +296 -0
- package/assets/workflows/WORKFLOW.minimal.md.example +289 -0
- package/dist/adapters/feishu/events.d.ts +55 -0
- package/dist/adapters/feishu/events.d.ts.map +1 -0
- package/dist/adapters/feishu/events.js +184 -0
- package/dist/adapters/feishu/events.js.map +1 -0
- package/dist/adapters/feishu/index.d.ts +2 -0
- package/dist/adapters/feishu/index.d.ts.map +1 -0
- package/dist/adapters/feishu/index.js +2 -0
- package/dist/adapters/feishu/index.js.map +1 -0
- package/dist/adapters/feishu/probe.d.ts +31 -0
- package/dist/adapters/feishu/probe.d.ts.map +1 -0
- package/dist/adapters/feishu/probe.js +179 -0
- package/dist/adapters/feishu/probe.js.map +1 -0
- package/dist/adapters/feishu/source.d.ts +124 -0
- package/dist/adapters/feishu/source.d.ts.map +1 -0
- package/dist/adapters/feishu/source.js +715 -0
- package/dist/adapters/feishu/source.js.map +1 -0
- package/dist/adapters/jira/index.d.ts +2 -0
- package/dist/adapters/jira/index.d.ts.map +1 -0
- package/dist/adapters/jira/index.js +2 -0
- package/dist/adapters/jira/index.js.map +1 -0
- package/dist/adapters/jira/tracker.d.ts +63 -0
- package/dist/adapters/jira/tracker.d.ts.map +1 -0
- package/dist/adapters/jira/tracker.js +402 -0
- package/dist/adapters/jira/tracker.js.map +1 -0
- package/dist/bridge/binding-store.d.ts +93 -0
- package/dist/bridge/binding-store.d.ts.map +1 -0
- package/dist/bridge/binding-store.js +365 -0
- package/dist/bridge/binding-store.js.map +1 -0
- package/dist/bridge/commands.d.ts +45 -0
- package/dist/bridge/commands.d.ts.map +1 -0
- package/dist/bridge/commands.js +197 -0
- package/dist/bridge/commands.js.map +1 -0
- package/dist/bridge/comment-bridge.d.ts +116 -0
- package/dist/bridge/comment-bridge.d.ts.map +1 -0
- package/dist/bridge/comment-bridge.js +1473 -0
- package/dist/bridge/comment-bridge.js.map +1 -0
- package/dist/cli/daemon-info.d.ts +17 -0
- package/dist/cli/daemon-info.d.ts.map +1 -0
- package/dist/cli/daemon-info.js +64 -0
- package/dist/cli/daemon-info.js.map +1 -0
- package/dist/cli/daemon.d.ts +27 -0
- package/dist/cli/daemon.d.ts.map +1 -0
- package/dist/cli/daemon.js +77 -0
- package/dist/cli/daemon.js.map +1 -0
- package/dist/cli/doctor.d.ts +7 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/doctor.js +156 -0
- package/dist/cli/doctor.js.map +1 -0
- package/dist/cli/event-channel.d.ts +16 -0
- package/dist/cli/event-channel.d.ts.map +1 -0
- package/dist/cli/event-channel.js +51 -0
- package/dist/cli/event-channel.js.map +1 -0
- package/dist/cli/help.d.ts +3 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/help.js +155 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +774 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/init.d.ts +64 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +1296 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/instance-lock.d.ts +13 -0
- package/dist/cli/instance-lock.d.ts.map +1 -0
- package/dist/cli/instance-lock.js +53 -0
- package/dist/cli/instance-lock.js.map +1 -0
- package/dist/cli/prompts.d.ts +13 -0
- package/dist/cli/prompts.d.ts.map +1 -0
- package/dist/cli/prompts.js +26 -0
- package/dist/cli/prompts.js.map +1 -0
- package/dist/cli/style.d.ts +26 -0
- package/dist/cli/style.d.ts.map +1 -0
- package/dist/cli/style.js +58 -0
- package/dist/cli/style.js.map +1 -0
- package/dist/cli/tui-helpers.d.ts +5 -0
- package/dist/cli/tui-helpers.d.ts.map +1 -0
- package/dist/cli/tui-helpers.js +124 -0
- package/dist/cli/tui-helpers.js.map +1 -0
- package/dist/cli/workflow-path.d.ts +12 -0
- package/dist/cli/workflow-path.d.ts.map +1 -0
- package/dist/cli/workflow-path.js +37 -0
- package/dist/cli/workflow-path.js.map +1 -0
- package/dist/config/config-types.d.ts +180 -0
- package/dist/config/config-types.d.ts.map +1 -0
- package/dist/config/config-types.js +71 -0
- package/dist/config/config-types.js.map +1 -0
- package/dist/config/dotenv.d.ts +2 -0
- package/dist/config/dotenv.d.ts.map +1 -0
- package/dist/config/dotenv.js +10 -0
- package/dist/config/dotenv.js.map +1 -0
- package/dist/config/index.d.ts +6 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +6 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.d.ts +5 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +304 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/manager.d.ts +31 -0
- package/dist/config/manager.d.ts.map +1 -0
- package/dist/config/manager.js +110 -0
- package/dist/config/manager.js.map +1 -0
- package/dist/config/resolver.d.ts +6 -0
- package/dist/config/resolver.d.ts.map +1 -0
- package/dist/config/resolver.js +267 -0
- package/dist/config/resolver.js.map +1 -0
- package/dist/config/validator.d.ts +9 -0
- package/dist/config/validator.d.ts.map +1 -0
- package/dist/config/validator.js +70 -0
- package/dist/config/validator.js.map +1 -0
- package/dist/direct/card.d.ts +49 -0
- package/dist/direct/card.d.ts.map +1 -0
- package/dist/direct/card.js +274 -0
- package/dist/direct/card.js.map +1 -0
- package/dist/direct/command.d.ts +12 -0
- package/dist/direct/command.d.ts.map +1 -0
- package/dist/direct/command.js +23 -0
- package/dist/direct/command.js.map +1 -0
- package/dist/direct/manager.d.ts +159 -0
- package/dist/direct/manager.d.ts.map +1 -0
- package/dist/direct/manager.js +1862 -0
- package/dist/direct/manager.js.map +1 -0
- package/dist/mcp/inject.d.ts +5 -0
- package/dist/mcp/inject.d.ts.map +1 -0
- package/dist/mcp/inject.js +51 -0
- package/dist/mcp/inject.js.map +1 -0
- package/dist/mcp/jira-server.d.ts +29 -0
- package/dist/mcp/jira-server.d.ts.map +1 -0
- package/dist/mcp/jira-server.js +288 -0
- package/dist/mcp/jira-server.js.map +1 -0
- package/dist/observability/activity-store.d.ts +29 -0
- package/dist/observability/activity-store.d.ts.map +1 -0
- package/dist/observability/activity-store.js +32 -0
- package/dist/observability/activity-store.js.map +1 -0
- package/dist/observability/config-view.d.ts +19 -0
- package/dist/observability/config-view.d.ts.map +1 -0
- package/dist/observability/config-view.js +61 -0
- package/dist/observability/config-view.js.map +1 -0
- package/dist/observability/http-dashboard.d.ts +36 -0
- package/dist/observability/http-dashboard.d.ts.map +1 -0
- package/dist/observability/http-dashboard.js +297 -0
- package/dist/observability/http-dashboard.js.map +1 -0
- package/dist/observability/log-buffer.d.ts +21 -0
- package/dist/observability/log-buffer.d.ts.map +1 -0
- package/dist/observability/log-buffer.js +69 -0
- package/dist/observability/log-buffer.js.map +1 -0
- package/dist/observability/logger.d.ts +37 -0
- package/dist/observability/logger.d.ts.map +1 -0
- package/dist/observability/logger.js +114 -0
- package/dist/observability/logger.js.map +1 -0
- package/dist/observability/snapshot.d.ts +11 -0
- package/dist/observability/snapshot.d.ts.map +1 -0
- package/dist/observability/snapshot.js +59 -0
- package/dist/observability/snapshot.js.map +1 -0
- package/dist/observability/terminal-dashboard.d.ts +155 -0
- package/dist/observability/terminal-dashboard.d.ts.map +1 -0
- package/dist/observability/terminal-dashboard.js +1598 -0
- package/dist/observability/terminal-dashboard.js.map +1 -0
- package/dist/observability/wrap.d.ts +4 -0
- package/dist/observability/wrap.d.ts.map +1 -0
- package/dist/observability/wrap.js +80 -0
- package/dist/observability/wrap.js.map +1 -0
- package/dist/scheduler/index.d.ts +2 -0
- package/dist/scheduler/index.d.ts.map +1 -0
- package/dist/scheduler/index.js +2 -0
- package/dist/scheduler/index.js.map +1 -0
- package/dist/scheduler/scheduler.d.ts +52 -0
- package/dist/scheduler/scheduler.d.ts.map +1 -0
- package/dist/scheduler/scheduler.js +535 -0
- package/dist/scheduler/scheduler.js.map +1 -0
- package/dist/shared/agent-resolver.d.ts +11 -0
- package/dist/shared/agent-resolver.d.ts.map +1 -0
- package/dist/shared/agent-resolver.js +20 -0
- package/dist/shared/agent-resolver.js.map +1 -0
- package/dist/shared/errors.d.ts +14 -0
- package/dist/shared/errors.d.ts.map +1 -0
- package/dist/shared/errors.js +24 -0
- package/dist/shared/errors.js.map +1 -0
- package/dist/shared/index.d.ts +4 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +4 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/info-card.d.ts +24 -0
- package/dist/shared/info-card.d.ts.map +1 -0
- package/dist/shared/info-card.js +46 -0
- package/dist/shared/info-card.js.map +1 -0
- package/dist/shared/types.d.ts +148 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +15 -0
- package/dist/shared/types.js.map +1 -0
- package/dist/translate/card.d.ts +2 -0
- package/dist/translate/card.d.ts.map +1 -0
- package/dist/translate/card.js +17 -0
- package/dist/translate/card.js.map +1 -0
- package/dist/translate/dict.d.ts +7 -0
- package/dist/translate/dict.d.ts.map +1 -0
- package/dist/translate/dict.js +895 -0
- package/dist/translate/dict.js.map +1 -0
- package/dist/translate/locale.d.ts +8 -0
- package/dist/translate/locale.d.ts.map +1 -0
- package/dist/translate/locale.js +75 -0
- package/dist/translate/locale.js.map +1 -0
- package/dist/translate/normalize.d.ts +4 -0
- package/dist/translate/normalize.d.ts.map +1 -0
- package/dist/translate/normalize.js +38 -0
- package/dist/translate/normalize.js.map +1 -0
- package/dist/translate/output.d.ts +3 -0
- package/dist/translate/output.d.ts.map +1 -0
- package/dist/translate/output.js +16 -0
- package/dist/translate/output.js.map +1 -0
- package/dist/worker/prompt.d.ts +11 -0
- package/dist/worker/prompt.d.ts.map +1 -0
- package/dist/worker/prompt.js +153 -0
- package/dist/worker/prompt.js.map +1 -0
- package/dist/worker/runner.d.ts +101 -0
- package/dist/worker/runner.d.ts.map +1 -0
- package/dist/worker/runner.js +448 -0
- package/dist/worker/runner.js.map +1 -0
- package/dist/workspace/index.d.ts +2 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +2 -0
- package/dist/workspace/index.js.map +1 -0
- package/dist/workspace/manager.d.ts +37 -0
- package/dist/workspace/manager.d.ts.map +1 -0
- package/dist/workspace/manager.js +157 -0
- package/dist/workspace/manager.js.map +1 -0
- package/package.json +70 -4
|
@@ -0,0 +1,895 @@
|
|
|
1
|
+
import { normalizeTemplate } from "./normalize.js";
|
|
2
|
+
export const EXACT = {
|
|
3
|
+
"\n --fresh 仅在 feishu.enabled 时生效(飞书桥未启用,忽略该选项)。\n\n": "\n --fresh only takes effect with feishu.enabled (Feishu bridge disabled; option ignored).\n\n",
|
|
4
|
+
"\n tasking 启动校验失败:\n": "\n tasking startup validation failed:\n",
|
|
5
|
+
" --agent <name> 创建时指定 agent(打 agent:<name> 标签)": " --agent <name> Set the agent at creation (adds an agent:<name> label)",
|
|
6
|
+
" --type <name|N> 覆盖 issueType(默认 feishu.create_issue_type)": " --type <name|N> Override the issueType (default feishu.create_issue_type)",
|
|
7
|
+
" (详见 tasking.log)\n\n": " (see tasking.log for details)\n\n",
|
|
8
|
+
" (状态名无法完整映射到 active/terminal,保留模板默认,可在 WORKFLOW.md 手改)": " (Some state names could not be mapped to active/terminal; template defaults kept — adjust WORKFLOW.md manually)",
|
|
9
|
+
" <description> 第 2 行起 = 描述,多行": " <description> Line 2 onwards = description (multiline)",
|
|
10
|
+
" 建议:在飞书手动建群并把 tasking 机器人拉进群,然后回来选「⟳ 刷新群列表」": ' Tip: create a group manually in Feishu, add the tasking bot, then come back and pick "⟳ Refresh group list"',
|
|
11
|
+
" 建议的状态预填:": " Suggested state prefill:",
|
|
12
|
+
" 然后在群里发:/chat /绝对路径 <消息>": " Then in the group send: /chat /abs/path <message>",
|
|
13
|
+
"配置完成!": "Configuration complete!",
|
|
14
|
+
"运行:": "Run: ",
|
|
15
|
+
"path 模式当前不限制目录(path_roots: []),建议在 WORKFLOW.md 配置 projects 或 path_roots": "path mode currently does not restrict directories (path_roots: []) — configure projects or path_roots in WORKFLOW.md",
|
|
16
|
+
" 已降级回群选择——可手选已有群,或开通权限后重试新建": " Fell back to group selection — pick an existing group, or grant the permission and retry creation",
|
|
17
|
+
" app_secret 已明文写入 WORKFLOW.md;如需保密可改用环境变量:export FEISHU_APP_SECRET=<secret>,再把该行改回 $FEISHU_APP_SECRET": " app_secret was written in plain text into WORKFLOW.md; for secrecy use an env var instead: export FEISHU_APP_SECRET=<secret>, then change the line back to $FEISHU_APP_SECRET",
|
|
18
|
+
" · ⚡ 下轮放开": " · ⚡ unlocked next turn",
|
|
19
|
+
" · 运行中": " · running",
|
|
20
|
+
"— 会话已过期 —": "— session expired —",
|
|
21
|
+
"、": "、",
|
|
22
|
+
":": ": ",
|
|
23
|
+
"· env.GITLAB_TOKEN / GITLAB_HOST 供 agent 建 MR(glab)": "· env.GITLAB_TOKEN / GITLAB_HOST for the agent to open MRs (glab)",
|
|
24
|
+
"(本轮无文本回复)": "(no text reply this turn)",
|
|
25
|
+
"(多条排队消息将合并为一轮执行)": "(multiple queued messages will be merged into one turn)",
|
|
26
|
+
"(缓冲仅在内存,daemon 重启会丢失。)": "(The buffer is memory-only; a daemon restart loses it.)",
|
|
27
|
+
"(回答过长,文件上传不可用,已改为文本投递;完整内容亦可在 TUI 活动视图查看)": "(answer too long; file upload unavailable, delivered as text; the full content is also in the TUI activity view)",
|
|
28
|
+
"(会话覆盖)": "(session override)",
|
|
29
|
+
"(配置默认)": "(config default)",
|
|
30
|
+
"(完结)": " (terminal)",
|
|
31
|
+
"(未分配)": "(unassigned)",
|
|
32
|
+
"(未开始)": "(not started)",
|
|
33
|
+
"(未配置 — 可用 /chat /绝对路径 <消息> 直接在目录创建会话)": "(none configured — use /chat /abs/path <message> to create a session in any directory)",
|
|
34
|
+
"(未设置)": "(unset)",
|
|
35
|
+
"(未在目录中,已回退默认)": " (not in catalog, fell back to default)",
|
|
36
|
+
"(未知)": "(unknown)",
|
|
37
|
+
"(文件上传不可用,已改为文本投递;完整明细亦可在 TUI 活动视图查看)": "(file upload unavailable, delivered as text; the full detail is also in the TUI activity view)",
|
|
38
|
+
"(无)": "(none)",
|
|
39
|
+
"(无)": "(none)",
|
|
40
|
+
"(用户发来附件,请读取下列文件后回答)": "(the user sent attachments; read the following files and answer)",
|
|
41
|
+
"[图片]": "[image]",
|
|
42
|
+
"**富输入**:直接发图片/文件 → 下载到工作区并把路径交给 agent": "**Rich input**: send images/files → downloaded into the workspace, paths handed to the agent",
|
|
43
|
+
"**会话状态**": "**Session status**",
|
|
44
|
+
"**命令**": "**Commands**",
|
|
45
|
+
"**失败**": "**Failed**",
|
|
46
|
+
"**续聊**:直接回复本话题 → 与 agent 对话(排队串行执行)": "**Continue**: reply in this thread → talk to the agent (queued, serial)",
|
|
47
|
+
"/agent 查看默认 agent + 可用目录(话题内还显示当前 agent)": "/agent Show the default agent + catalog (in a thread, also the current agent)",
|
|
48
|
+
"/agent <name> 切换该任务 agent(话题内,下一 turn 生效)": "/agent <name> Switch the task's agent (in a thread, effective next turn)",
|
|
49
|
+
"/agent <name> → 切换本会话 agent(/agent reset 恢复)": "/agent <name> → switch this session's agent (/agent reset restores)",
|
|
50
|
+
"/agent <name> 需在任务话题内使用哦~": "/agent <name> must be used inside a task thread",
|
|
51
|
+
"/agent default 清除 agent 标签,回退默认": "/agent default Clear the agent label and fall back to the default",
|
|
52
|
+
"/auto [on|once|off] → 查看/切换本会话权限姿态(下一轮生效)": "/auto [on|once|off] → view/switch this session's permission posture (effective next turn)",
|
|
53
|
+
"/chat 列出可用项目": "/chat List available projects",
|
|
54
|
+
"/chat 列出可用项目": "/chat List available projects",
|
|
55
|
+
"/chat /abs/path <msg> 在指定目录创建 opencode 会话": "/chat /abs/path <msg> Create an opencode session in the given directory",
|
|
56
|
+
"/chat <项目名|绝对路径> <消息> 在指定目录创建 opencode 会话": "/chat <project|abs-path> <message> Create an opencode session in the given directory",
|
|
57
|
+
"/chat <project> <msg> 在已配置项目目录创建 opencode 会话(仅 intake 群)": "/chat <project> <msg> Create an opencode session in a configured project dir (intake group only)",
|
|
58
|
+
"/chat 内: 直接回复续聊,/stop 中断当前任务,/done 结束会话": "In /chat threads: reply directly to continue; /stop interrupts; /done ends the session",
|
|
59
|
+
"/chat 是群聊命令,请在群里发哦~": "/chat is a group command — please send it in the intake group",
|
|
60
|
+
"/collect → 进入多消息收集模式(发完用 /send 提交为一轮,/cancel 丢弃)": "/collect → enter multi-message collect mode (/send submits as one turn, /cancel discards)",
|
|
61
|
+
"/done → 结束会话": "/done → end the session",
|
|
62
|
+
"/help 本帮助": "/help This help",
|
|
63
|
+
"/issue 列该项目可用 issueType + 默认": "/issue List the project's issueTypes + default",
|
|
64
|
+
"/issue <title> 创建 issue(仅 intake 群)": "/issue <title> Create an issue (intake group only)",
|
|
65
|
+
"/issue 是群聊命令,请在群里发哦~": "/issue is a group command — please send it in the intake group",
|
|
66
|
+
"/issue、/chat": "、",
|
|
67
|
+
"/model <name> → 切换本会话 model(/model reset 恢复)": "/model <name> → switch this session's model (/model reset restores)",
|
|
68
|
+
"/name <文本> → 给本会话改名(卡片头部与 TUI 显示)": "/name <text> → rename this session (card header and TUI)",
|
|
69
|
+
"/new → 清空上下文开启新会话": "/new → clear context and start a new session",
|
|
70
|
+
"/state 查看当前状态 + 可用转移编号(已绑话题内)": "/state Show current state + available transitions (in a bound thread)",
|
|
71
|
+
"/state <N|name> 转状态": "/state <N|name> Transition the state",
|
|
72
|
+
"/state 是话题命令,请在 issue 话题内发哦~": "/state is a thread command — please send it inside an issue thread",
|
|
73
|
+
"/status → 查看会话状态": "/status → show session status",
|
|
74
|
+
"/stop → 中断当前任务(含清空排队消息)": "/stop → interrupt the current task (and clear queued messages)",
|
|
75
|
+
"# —— 可选:以下为默认值,改动才解注释 ——": "# —— optional: these are defaults; uncomment only to change ——",
|
|
76
|
+
"## 🔍 拷问 / Grill Questions": "## 🔍 Grill Questions",
|
|
77
|
+
"`/agent <name>` · `/model <name>` → 切换 agent/model(`reset` 恢复)": "`/agent <name>` · `/model <name>` → switch agent/model (`reset` restores)",
|
|
78
|
+
"`/auto [on|once|off|reset]` → 本会话权限姿态(下一轮生效)": "`/auto [on|once|off|reset]` → session permission posture (effective next turn)",
|
|
79
|
+
"`/collect` → 收集多条消息;`/send` 提交为一轮;`/cancel` 丢弃": "`/collect` → collect messages; `/send` submits as one turn; `/cancel` discards",
|
|
80
|
+
"`/done` → 结束会话": "`/done` → end the session",
|
|
81
|
+
"`/name <文本>` → 会话改名(卡片头部与 TUI)": "`/name <text>` → rename the session (card header and TUI)",
|
|
82
|
+
"`/new` → 清空上下文开启新会话": "`/new` → clear context and start a new session",
|
|
83
|
+
"`/status` → 查看会话状态": "`/status` → show session status",
|
|
84
|
+
"`/stop` → 中断当前任务(含清空排队)": "`/stop` → interrupt the current task (and clear the queue)",
|
|
85
|
+
"↩️ 默认": "↩️ Default",
|
|
86
|
+
"⏳ 目标目录或并发额度正被占用,排队等待中,空闲后自动开始…": "⏳ The target directory or concurrency budget is busy; queued and will start automatically when free…",
|
|
87
|
+
"⏹ 中断": "⏹ Interrupt",
|
|
88
|
+
"▶ 运行中": "▶ Running",
|
|
89
|
+
"⚠️ /agent 切换需要 Jira 任务源(当前未配置)": "⚠️ /agent switching requires a Jira task source (not configured)",
|
|
90
|
+
"⚠️ /state 需要 Jira 任务源(当前未配置)": "⚠️ /state requires a Jira task source (not configured)",
|
|
91
|
+
"⚠️ 放开后本会话后续轮次不再询问权限;目标仓库自身的 deny 规则仍然生效。": "⚠️ Once unlocked, later turns in this session stop asking for permission; the target repo's own deny rules still apply.",
|
|
92
|
+
"⚠️ 附件未能读取,本轮未执行;请重发,或把文件放到工作目录后把路径发给我。": "⚠️ Attachments could not be read; this turn did not run. Resend, or place the file in the working directory and send me the path.",
|
|
93
|
+
"⚠️ 结束会话将删除该 opencode 会话(不可恢复)。": "⚠️ Ending the session deletes this opencode session (irrecoverable).",
|
|
94
|
+
"⚠️ 上次运行被中断(daemon 重启),请重发消息继续;若当时是第一轮对话,此前内容不会保留。": "⚠️ The last run was interrupted (daemon restart); resend to continue. If it was the first turn, earlier content is not kept.",
|
|
95
|
+
"⚠️ 同步失败,请稍后重试": "⚠️ Sync failed, please retry later",
|
|
96
|
+
"⚠️ 已中断": "⚠️ Interrupted",
|
|
97
|
+
"⚠️ 暂仅支持文本消息,图片/文件请用文字描述~": "⚠️ Only text is supported for now; describe images/files in words",
|
|
98
|
+
"⚡ 仅下一轮": "⚡ Next turn only",
|
|
99
|
+
"⚡ 仅下一轮放开": "⚡ Next turn only",
|
|
100
|
+
"⚡ 仅下一轮放开权限(用完自动恢复默认)。": "⚡ Permissions unlocked for the next turn only (auto-restores afterwards).",
|
|
101
|
+
"⚡ 取消": "⚡ Cancel",
|
|
102
|
+
"✅ 本会话放开": "✅ Unlock session",
|
|
103
|
+
"✅ 确认": "✅ Confirm",
|
|
104
|
+
"✅ 完成": "✅ Done",
|
|
105
|
+
"✅ 已收到,已同步到 {issue_key}": "✅ Received and synced to {issue_key}",
|
|
106
|
+
"✖ 取消": "✖ Cancel",
|
|
107
|
+
"❌ 失败": "❌ Failed",
|
|
108
|
+
"➕ 新建 intake 群(并拉你进群)": "➕ Create a new intake group (and invite you)",
|
|
109
|
+
"⟳ 刷新群列表": "⟳ Refresh group list",
|
|
110
|
+
"💬 可在此话题回复": "💬 Reply in this thread",
|
|
111
|
+
"📄 完整输出": "📄 Full output",
|
|
112
|
+
"📋 状态": "📋 State",
|
|
113
|
+
"📖 直连会话帮助": "📖 Direct session help",
|
|
114
|
+
"📖 tasking 命令": "📖 tasking commands",
|
|
115
|
+
"📤 提交为一轮": "📤 Submit as one turn",
|
|
116
|
+
"📥 开始收集": "📥 Start collecting",
|
|
117
|
+
"📥 收集模式": "📥 Collect mode",
|
|
118
|
+
"📥 已进入多消息收集模式:接下来的消息(含图片/文件)都会先收集,不立即执行。发完用 /send 合并提交为一轮;/cancel 丢弃;10 分钟无新消息会自动提交。": "📥 Multi-message collect mode on: incoming messages (incl. images/files) are collected instead of run. Finish with /send to submit as one turn; /cancel discards; auto-submits after 10 idle minutes.",
|
|
119
|
+
"🔀 转状态": "🔀 Transition",
|
|
120
|
+
"🔁 重试": "🔁 Retry",
|
|
121
|
+
"🔄 刷新": "🔄 Refresh",
|
|
122
|
+
"🔐 权限": "🔐 Permissions",
|
|
123
|
+
"🔐 权限姿态": "🔐 Permission posture",
|
|
124
|
+
"🔒 恢复默认": "🔒 Restore default",
|
|
125
|
+
"🔒 默认": "🔒 Default",
|
|
126
|
+
"🔒 默认(不传 --auto)": "🔒 Default (no --auto)",
|
|
127
|
+
"🔓 本会话放开": "🔓 Unlock this session",
|
|
128
|
+
"🔓 收回": "🔓 Re-lock",
|
|
129
|
+
"🔓 已放开本会话权限(下一轮生效)。目标仓库自身的 deny 规则仍然生效;/auto reset 可恢复。": "🔓 Session permissions unlocked (effective next turn). The target repo's own deny rules still apply; /auto reset restores.",
|
|
130
|
+
"🗑 丢弃": "🗑 Discard",
|
|
131
|
+
"🛑 结束": "🛑 End",
|
|
132
|
+
"把接下来的多条消息(含图片/文件)攒成**一轮**再执行。": "Batch the next several messages (incl. images/files) into **one turn** before running.",
|
|
133
|
+
保持模板默认: "Keep template defaults",
|
|
134
|
+
常用项目名: "Frequent project name",
|
|
135
|
+
处理中: "In Progress",
|
|
136
|
+
传文件: "upload file",
|
|
137
|
+
"打开 Jira": "Open in Jira",
|
|
138
|
+
代码评审中: "Code Review",
|
|
139
|
+
待办: "To Do",
|
|
140
|
+
待评审: "Awaiting Review",
|
|
141
|
+
当前不在收集模式: "Not in collect mode",
|
|
142
|
+
"当前不在收集模式。": "Not in collect mode.",
|
|
143
|
+
"当前不在收集模式。用 /collect 开始收集多条消息。": "Not in collect mode. Use /collect to collect multiple messages.",
|
|
144
|
+
当前没有可用转换: "No transitions available",
|
|
145
|
+
"点下方按钮开始,或直接发 `/collect`。": "Tap the button below to start, or send `/collect`.",
|
|
146
|
+
读群消息: "read group messages",
|
|
147
|
+
发消息: "send message",
|
|
148
|
+
放开: "unlocked",
|
|
149
|
+
"放开后本会话后续轮次不再询问权限;目标仓库自身的 deny 规则仍然生效。": "Once unlocked, later turns in this session stop asking for permission; the target repo's own deny rules still apply.",
|
|
150
|
+
飞书: "Feishu",
|
|
151
|
+
飞书凭据: "Feishu credentials",
|
|
152
|
+
"飞书直连专用部署:/chat 在配置目录创建 opencode 会话(无需 Jira)。详见 docs/feishu-quickstart.md": "Feishu-direct deployment: /chat creates an opencode session in a configured directory (no Jira needed). See docs/feishu-quickstart.md",
|
|
153
|
+
"该操作需要 Jira 任务源": "This action requires a Jira task source",
|
|
154
|
+
该操作已处理: "This action was already processed",
|
|
155
|
+
"该轮没有可导出的完整明细(可能因 daemon 重启,明细已不在内存中)。": "This turn has no exportable full detail (a daemon restart may have cleared it from memory).",
|
|
156
|
+
该轮已结束: "This turn already ended",
|
|
157
|
+
关闭: "Closed",
|
|
158
|
+
合并中: "Merging",
|
|
159
|
+
"后续消息(含图片/文件)都会先收集,不立即执行。": "Incoming messages (incl. images/files) are collected instead of run.",
|
|
160
|
+
"回答过长,无法作为消息发送;请在 TUI 活动视图查看该会话的完整回答。": "The answer is too long to send as a message; see the session's full answer in the TUI activity view.",
|
|
161
|
+
会话不存在或已清理: "Session not found or cleaned up",
|
|
162
|
+
"会话创建后:在本话题内直接回复即续聊;/stop 中断当前任务;/done 结束会话": "After creation: reply in this thread to continue; /stop interrupts the current task; /done ends the session",
|
|
163
|
+
会话已结束: "Session ended",
|
|
164
|
+
"或: /chat /绝对路径 <消息> 在任意目录创建会话": "Or: /chat /abs/path <message> to create a session in any directory",
|
|
165
|
+
"接 Jira": "Connect Jira",
|
|
166
|
+
仅下一轮放开权限: "Next-turn-only unlock",
|
|
167
|
+
进行中: "In Progress",
|
|
168
|
+
"可用项目:": "Available projects:",
|
|
169
|
+
空闲: "Idle",
|
|
170
|
+
列群: "list chats",
|
|
171
|
+
"列群探针未通过,无法核验 intake 群(先解决上方 ✗ 项)": "The list-chats probe failed; cannot verify the intake group (fix the ✗ items above first)",
|
|
172
|
+
没有待提交内容: "Nothing to submit",
|
|
173
|
+
没有可重试的上一轮: "No previous turn to retry",
|
|
174
|
+
"没有任何任务源:tracker.kind 为 none 且 feishu 未启用 — 没有可运行的任务面": "No task source at all: tracker.kind is none and feishu is disabled — there is no runnable task surface",
|
|
175
|
+
默认: "default",
|
|
176
|
+
"目录: 未配置(任意 agent:<name> 标签直通)": "Catalog: not configured (any agent:<name> label passes through)",
|
|
177
|
+
你的飞书邮箱或手机号: "Your Feishu email or phone",
|
|
178
|
+
排队中: "Queued",
|
|
179
|
+
"配置解析失败,跳过": "config parse failed, skipped",
|
|
180
|
+
"评论桥:飞书话题 ↔ Jira 评论双向镜像(/issue、/state、/help)。详见 docs/feishu-quickstart.md": "Comment bridge: Feishu threads ↔ Jira comments mirrored both ways (/issue, /state, /help). See docs/feishu-quickstart.md",
|
|
181
|
+
评审中: "In Review",
|
|
182
|
+
凭据错误或应用未发布版本: "Credentials are wrong or the app version is not published",
|
|
183
|
+
请确认: "Please confirm",
|
|
184
|
+
请确认是否放开权限: "Confirm the permission unlock",
|
|
185
|
+
请确认是否结束会话: "Confirm ending the session",
|
|
186
|
+
请选择目标状态: "Pick a target state",
|
|
187
|
+
"请在 /chat 命令后带上首条消息,例如 `/chat tasking 帮我跑下测试`": "Please include the first message after /chat, e.g. `/chat tasking run the tests for me`",
|
|
188
|
+
取消: "Cancel",
|
|
189
|
+
全局配置: "global config",
|
|
190
|
+
"缺 im:message.group_msg(读群消息被拒)": "missing im:message.group_msg (group message read denied)",
|
|
191
|
+
"缺 im:resource(文件上传被拒)": "missing im:resource (file upload denied)",
|
|
192
|
+
确认结束: "Confirm end",
|
|
193
|
+
"确认写入(默认)": "Write it (default)",
|
|
194
|
+
任务不存在: "Task not found",
|
|
195
|
+
任务来源: "Task source",
|
|
196
|
+
"收集模式已关闭:没有待提交内容。": "Collect mode closed: nothing to submit.",
|
|
197
|
+
完成: "Done",
|
|
198
|
+
"完整输出过大,无法作为消息发送;请在 TUI 活动视图查看该会话的完整明细。": "The full output is too large to send as a message; see the session's full detail in the TUI activity view.",
|
|
199
|
+
"网络不可达,无法检测": "network unreachable, cannot probe",
|
|
200
|
+
未采用: "Unmatched",
|
|
201
|
+
未配置: "not set",
|
|
202
|
+
"未配置(tracker.kind 非 jira)": "not configured (tracker.kind is not jira)",
|
|
203
|
+
"未启用(feishu.enabled: false)": "not enabled (feishu.enabled: false)",
|
|
204
|
+
"未探测(发消息会在群里留痕;tasking start 后实发验证)": "not probed (sending leaves traces in the group; verified by a real send after tasking start)",
|
|
205
|
+
"未在 PATH 找到 opencode——安装见 https://opencode.ai": "opencode not found on PATH — install: https://opencode.ai",
|
|
206
|
+
未找到对应用户: "No matching user found",
|
|
207
|
+
未知: "unknown",
|
|
208
|
+
未知操作: "Unknown action",
|
|
209
|
+
"未知的 /auto 参数": "Unknown /auto argument",
|
|
210
|
+
"未知命令。直连会话支持:直接回复续聊、/collect、/send、/cancel、/auto、/agent、/model、/new、/name、/status、/stop、/done、/help": "Unknown command. Direct sessions support: reply to continue, /collect, /send, /cancel, /auto, /agent, /model, /new, /name, /status, /stop, /done, /help",
|
|
211
|
+
"无事可做:tracker.kind 为 none 时评论镜像无 Jira 可用,而 feishu.direct 又被关闭 — 请启用 direct 或配置 Jira 源": "Nothing to do: with tracker.kind none the comment mirror has no Jira, and feishu.direct is disabled — enable direct or configure a Jira source",
|
|
212
|
+
无输出超时: "no-output timeout",
|
|
213
|
+
"响应缺少 chat_id": "Response is missing chat_id",
|
|
214
|
+
项目目录绝对路径: "Absolute path of the project directory",
|
|
215
|
+
写入状态配置: "Write state config",
|
|
216
|
+
"新建会话 → 在群里发 `/chat <项目|路径> <消息>`": "New session → send `/chat <project|path> <message>` in the group",
|
|
217
|
+
"新建其他会话 → 在群里 /chat <项目|路径> <消息>": "Start another session → /chat <project|path> <message> in the group",
|
|
218
|
+
新群名称: "New group name",
|
|
219
|
+
"选择 intake 群": "Select the intake group",
|
|
220
|
+
"选择 Jira workflow 变体": "Pick a Jira workflow variant",
|
|
221
|
+
"选择目标状态:": "Pick a target state:",
|
|
222
|
+
已发送状态卡: "State card sent",
|
|
223
|
+
已放开本会话权限: "Session permissions unlocked",
|
|
224
|
+
"已放开本会话权限(下一轮生效)": "Session permissions unlocked (effective next turn)",
|
|
225
|
+
已过期: "Expired",
|
|
226
|
+
已恢复默认权限姿态: "Default permission posture restored",
|
|
227
|
+
已结束: "Ended",
|
|
228
|
+
已进入收集模式: "Entered collect mode",
|
|
229
|
+
已取消: "Cancelled",
|
|
230
|
+
已设置为仅下一轮放开: "Set to unlock for the next turn only",
|
|
231
|
+
"已收到 ✓(/chat 创建会话,/help 看用法)": "Received ✓ (/chat starts a session, /help shows usage)",
|
|
232
|
+
"已收到 ✓(/issue 创建任务,/help 看用法)": "Received ✓ (/issue creates a task, /help shows usage)",
|
|
233
|
+
已收回权限放开: "Permission unlock retracted",
|
|
234
|
+
已刷新: "Refreshed",
|
|
235
|
+
已退出收集模式: "Left collect mode",
|
|
236
|
+
"已退出收集模式。": "Left collect mode.",
|
|
237
|
+
已完结: "Completed",
|
|
238
|
+
已在收集模式: "Already in collect mode",
|
|
239
|
+
已中断当前任务: "Interrupted the current task",
|
|
240
|
+
已重试上一轮: "Retried the previous turn",
|
|
241
|
+
"应用版本未发布/未审批,或缺少对应权限": "app version not published/approved, or the permission is missing",
|
|
242
|
+
"用法: /chat <项目名> <消息>": "Usage: /chat <project> <message>",
|
|
243
|
+
"用法:/agent <name>|/agent reset": "Usage: /agent <name> | /agent reset",
|
|
244
|
+
"用法:/auto on|/auto once|/auto off|/auto reset": "Usage: /auto on | /auto once | /auto off | /auto reset",
|
|
245
|
+
"用法:/auto(查看)|/auto on|/auto once|/auto off|/auto reset": "Usage: /auto (view) | /auto on | /auto once | /auto off | /auto reset",
|
|
246
|
+
"用法:/model <name>|/model reset": "Usage: /model <name> | /model reset",
|
|
247
|
+
运行中: "Running",
|
|
248
|
+
整体超时: "overall timeout",
|
|
249
|
+
"正在恢复默认 agent…": "Restoring the default agent…",
|
|
250
|
+
"正在整理完整内容…": "Preparing full content…",
|
|
251
|
+
"正在整理完整输出…": "Preparing full output…",
|
|
252
|
+
"正在转换…": "Transitioning…",
|
|
253
|
+
"直接发图片/文件 → 下载到工作区并把路径交给 agent": "Send images/files → downloaded into the workspace and the paths handed to the agent",
|
|
254
|
+
"直接回复本话题 → 继续与 agent 对话(排队串行执行)": "Reply in this thread → keep talking to the agent (queued, serial)",
|
|
255
|
+
直连功能未启用: "Direct sessions are not enabled",
|
|
256
|
+
"直连会话用法:": "Direct session usage:",
|
|
257
|
+
"只用飞书直连:群里 /chat 直接跑 opencode,无需 Jira。接 Jira:调度器轮询 Jira issue 派发(三个变体)。": "Feishu direct only: /chat in the group runs opencode directly, no Jira. With Jira: the scheduler polls Jira issues and dispatches (three variants).",
|
|
258
|
+
"只用飞书直连(默认)": "Feishu direct only (default)",
|
|
259
|
+
中文: "中文",
|
|
260
|
+
重复: "Duplicate",
|
|
261
|
+
重置处理: "Reset Processing",
|
|
262
|
+
"状态已按项目实际预填(active/terminal/review)": "States prefilled from the project's actual states (active/terminal/review)",
|
|
263
|
+
"App ID 不正确或应用不存在": "App ID is incorrect or the app does not exist",
|
|
264
|
+
"App Secret 不正确": "App Secret is incorrect",
|
|
265
|
+
"daemon 重启,上一轮已中断;工具明细未保留,可点「重试」重跑上一轮。": 'The daemon restarted and the last turn was interrupted; tool details were not kept — tap "Retry" to rerun it.',
|
|
266
|
+
"HTTP 401,凭据或 token 可能不正确": "HTTP 401: credentials or token may be incorrect",
|
|
267
|
+
"ℹ️ 此会话已过期。重新发起请 /chat 创建新会话。": "ℹ️ This session has expired. Start a new one with /chat.",
|
|
268
|
+
"ℹ️ 此会话已结束(/done)。重新发起请 /chat 创建新会话。": "ℹ️ This session has ended (/done). Start a new one with /chat.",
|
|
269
|
+
"ℹ️ 当前没有运行中的任务。": "ℹ️ No task is currently running.",
|
|
270
|
+
"ℹ️ 会话空闲超时已过期。重新发起请 /chat 创建新会话。": "ℹ️ This session expired after being idle too long. Start a new one with /chat.",
|
|
271
|
+
"ℹ️ 已过期": "ℹ️ Expired",
|
|
272
|
+
"intake 群可达": "intake group reachable",
|
|
273
|
+
"intake_chat_id 未配置": "intake_chat_id is not configured",
|
|
274
|
+
"Jira 连接": "Jira connection",
|
|
275
|
+
"Language of the generated WORKFLOW.md comments and guidance. Press enter for 中文.": "Language of the generated WORKFLOW.md comments and guidance. Press enter for 中文.",
|
|
276
|
+
"🆕 已开启新会话:上下文已清空(话题、目录与名称不变),旧 opencode 会话已删除。": "🆕 New session started: context cleared (thread, directory and name unchanged), the old opencode session was deleted.",
|
|
277
|
+
"tasking 命令:": "tasking commands:",
|
|
278
|
+
"tasking doctor — 全链路只读体检\n\n": "tasking doctor — read-only full-chain health check\n\n",
|
|
279
|
+
"Tip: 已保留 $FEISHU_APP_SECRET 引用——export FEISHU_APP_SECRET=<secret> in ~/.bashrc, or set it in env: section of WORKFLOW.md": "Tip: the $FEISHU_APP_SECRET reference is kept — export FEISHU_APP_SECRET=<secret> in ~/.bashrc, or set it in the env: section of WORKFLOW.md",
|
|
280
|
+
"via 飞书": "via Feishu",
|
|
281
|
+
飞书版本: "Feishu edition",
|
|
282
|
+
"国内版(飞书)": "Feishu (China mainland)",
|
|
283
|
+
"国内版(飞书)(默认)": "Feishu (China mainland) (default)",
|
|
284
|
+
"海外版(Lark)": "Lark (overseas)",
|
|
285
|
+
"海外版(Lark)(默认)": "Lark (overseas) (default)",
|
|
286
|
+
"若应用创建于另一版飞书(国内版),请在 WORKFLOW.md 设置 feishu.edition: feishu": "The app may belong to the other Feishu edition (China mainland) — set feishu.edition: feishu in WORKFLOW.md",
|
|
287
|
+
"若应用创建于另一版飞书(海外版 Lark),请在 WORKFLOW.md 设置 feishu.edition: lark": "The app may belong to the other Feishu edition (overseas Lark) — set feishu.edition: lark in WORKFLOW.md",
|
|
288
|
+
};
|
|
289
|
+
export const PATTERNS = [
|
|
290
|
+
{
|
|
291
|
+
re: new RegExp(`^${normalizeTemplate(" 然后在群里发:/chat <项目名> <消息>(如 /chat ${projectName} 帮我看个报错)")}$`),
|
|
292
|
+
en: " Then in the group send: /chat <project> <message> (e.g. /chat $1 help me look at an error)",
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
re: new RegExp(`^${normalizeTemplate('\n tasking 启动失败:同一飞书应用/群已有实例在运行(pid ${held?.pid ?? "?"},workflow: ${held?.workflow_path ?? "?"})。\n 飞书事件为集群路由,双实例会互相抢消息、重复建话题。\n 请先 tasking stop 旧实例,或更换 app_id/intake_chat_id。\n\n')}$`),
|
|
296
|
+
en: "\n tasking failed to start: another instance is already running for this Feishu app/group (pid $1, workflow: $2).\n Feishu events are cluster-routed; two instances steal each other's messages and duplicate threads.\n Stop the old instance with tasking stop, or use a different app_id/intake_chat_id.\n\n",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
re: new RegExp(`^${normalizeTemplate("ℹ️ 任务 ${terminal.issue_key} 已完结,此话题已停用。如需继续,请在话题里发 /state 恢复到活跃状态,或重新 /issue 创建新任务。")}$`),
|
|
300
|
+
en: "ℹ️ Task $1 has reached a terminal state; this thread is retired. To continue, send /state in this thread to move it back to an active state, or /issue to create a new task.",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
re: new RegExp(`^${normalizeTemplate("\n⚠️ ${stats.permissionRejections} 个操作被权限拒绝(可在项目 .opencode 配置放行,或对该项目开 auto_approve)")}$`),
|
|
304
|
+
en: "\n⚠️ $1 operations were denied by permissions (allow them in the project's .opencode config, or enable auto_approve for the project)",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("warn")} 无法查询用户:缺 contact:user.id:readonly → 开通: ${consoleLinks(appId).permission} (开通后需重新发布版本)')}$`),
|
|
308
|
+
en: "$1 Cannot look up the user: missing contact:user.id:readonly → grant at: $2 (republish the version afterwards)",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("info")} Feishu bridge disabled; 详见 docs/feishu-quickstart.md')}$`),
|
|
312
|
+
en: "$1 Feishu bridge disabled; see docs/feishu-quickstart.md",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("Feishu app_secret")} (直接明文写入 WORKFLOW.md;留空则改用 $FEISHU_APP_SECRET 环境变量)')}$`),
|
|
316
|
+
en: "$1 (written in plain text into WORKFLOW.md; leave empty to use the $$FEISHU_APP_SECRET env var instead)",
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
re: new RegExp(`^${normalizeTemplate(' 缺 im:chat(建群)→ 开通: ${consoleLinks(appId).permission} (搜索 "im:chat",开通后需重新发布版本)')}$`),
|
|
320
|
+
en: ' Missing im:chat (create group) → grant at: $1 (search "im:chat"; republish afterwards)',
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
re: new RegExp(`^${normalizeTemplate("任务源变更需重启生效:tracker.kind 启动时为 ${this.startupTrackerKind},现为 ${built.config.tracker.kind}(运行时装配不随热重载重建)")}$`),
|
|
324
|
+
en: "Task source change requires a restart: tracker.kind was $1 at startup, now $2 (runtime wiring is not rebuilt on hot reload)",
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
re: new RegExp(`^${normalizeTemplate("机器人所在群列表不含 ${feishu.intake_chat_id}——确认机器人已入群(或 intake_chat_id 是否正确)")}$`),
|
|
328
|
+
en: "The bot's chat list does not include $1 — make sure the bot joined the group (and intake_chat_id is correct)",
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("你的飞书邮箱或手机号")}(建群后拉你进群,需 contact:user.id:readonly;回车跳过)')}$`),
|
|
332
|
+
en: "$1 (you are invited after the group is created; requires contact:user.id:readonly; press Enter to skip)",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
re: new RegExp(`^${normalizeTemplate("✅ 已切 ${label}(下一 turn 生效)\n⚠️ ${name} 不在配置目录中,派发时将回退默认")}$`),
|
|
336
|
+
en: "✅ Switched to $1 (effective next turn)\n⚠️ $2 is not in the configured catalog; dispatch falls back to the default",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
re: new RegExp(`^${normalizeTemplate('当前会话名:${session.name ?? translate("(未设置)")}\n用法:/name <文本>(同时用于卡片头部与 TUI 区块)')}$`),
|
|
340
|
+
en: "Current session name: $1\nUsage: /name <text> (shown on the card header and in the TUI)",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
re: new RegExp(`^${normalizeTemplate("发完点下方按钮提交为一轮(或发 `/send`);${idleMinutes} 分钟无新消息会自动提交。")}$`),
|
|
344
|
+
en: "When done, tap the button below to submit as one turn (or send /send); auto-submits after $1 idle minutes.",
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
re: new RegExp(`^${normalizeTemplate("已切换 agent 为 ${name}(下一轮生效)。/agent reset 恢复默认。")}$`),
|
|
348
|
+
en: "Switched agent to $1 (effective next turn). /agent reset restores the default.",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
re: new RegExp(`^${normalizeTemplate("已切换 model 为 ${arg}(下一轮生效)。/model reset 恢复默认。")}$`),
|
|
352
|
+
en: "Switched model to $1 (effective next turn). /model reset restores the default.",
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("warn")} 已跳过验证,继续配置(tasking start 前请确认凭据可用)')}$`),
|
|
356
|
+
en: "$1 Verification skipped, continuing (confirm the credentials work before tasking start)",
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ 附件 ${attachment.name} 超过 20MB,已跳过;可放到工作目录后把路径发给我。")}$`),
|
|
360
|
+
en: "⚠️ Attachment $1 exceeds 20MB and was skipped; place it in the working directory and send me the path.",
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
re: new RegExp(`^${normalizeTemplate("📥 已收集 ${rt.collect.length} 条(/send 提交为一轮,/cancel 丢弃)")}$`),
|
|
364
|
+
en: "📥 Collected $1 messages (/send submits as one turn, /cancel discards)",
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
re: new RegExp(`^${normalizeTemplate("✅ 会话已结束。${statsLine}${who}${discardNote}重新发起请 /chat <项目|路径> <消息>")}$`),
|
|
368
|
+
en: "✅ Session ended.$1 To start over, send /chat <project|path> <message>",
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
re: new RegExp(`^${normalizeTemplate("🛑 已中断当前任务${who},并清空 ${queued} 条排队消息。可直接回复重新继续。")}$`),
|
|
372
|
+
en: "🛑 Interrupted the current task$1 and cleared $2 queued messages. Reply to start again.",
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
re: new RegExp(`^${normalizeTemplate('\n⚠️ agent ${name} 不在配置目录 [${config.opencode.agents.join(", ")}] 中,派发时将回退默认')}$`),
|
|
376
|
+
en: "\n⚠️ Agent $1 is not in the configured catalog [$2]; dispatch falls back to the default",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("warn")} 飞书凭据验证未通过:${tokenResult.reason}(不影响生成配置,start 前请修正)')}$`),
|
|
380
|
+
en: "$1 Feishu credential check failed: $2 (does not block config generation; fix before start)",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
re: new RegExp(`^${normalizeTemplate("… 还有 ${dropped} 个工具调用未展示(完整明细见 TUI 活动视图)")}$`),
|
|
384
|
+
en: "… $1 more tool calls not shown (see the TUI activity view for full detail)",
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
re: new RegExp(`^${normalizeTemplate('${base} → 开发者后台「权限管理」搜索 "${scope}" 开通后重新发布版本')}$`),
|
|
388
|
+
en: '$1 → Developer console → Permissions: search "$2", grant it, then publish a new version',
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("warn")} 群已建(${created.chat_id}),但只有机器人成员——你在飞书看不到它,未选用')}$`),
|
|
392
|
+
en: "$1 The group was created ($2) but the bot is its only member — you cannot see it in Feishu; not selected",
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ ${target} 不在允许的路径范围内(path_roots)。\n${this.renderProjectList(direct)}")}$`),
|
|
396
|
+
en: "⚠️ $1 is not within the allowed path roots.\n$2",
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("常用项目名")}(/chat <项目名> <消息> 使用;直接回车跳过)')}$`),
|
|
400
|
+
en: "$1 (used by /chat <project> <message>; press Enter to skip)",
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
re: new RegExp(`^${normalizeTemplate('${base} → 开通: ${consoleLinks(appId).permission} (搜索 "${scope}",开通后需重新发布版本)')}$`),
|
|
404
|
+
en: '$1 → Grant at: $2 (search "$3"; republish the version afterwards)',
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("Feishu intake_chat_id")} (承载 /chat 与会话话题的群,oc_ 开头)')}$`),
|
|
408
|
+
en: "$1 (the group hosting /chat and session threads; starts with oc_)",
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
re: new RegExp(`^${normalizeTemplate('(本次运行统计:${session.turns} turn${session.turns === 1 ? "" : "s"} · ≈${formatTokens(session.total_tokens)} tokens)')}$`),
|
|
412
|
+
en: "(run stats: $1 turn · ≈$2 tokens)",
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ 本轮${reason}被中止(${durationSec}s)。可用更小的任务描述重试。")}$`),
|
|
416
|
+
en: "⚠️ This turn was aborted by $1 ($2s). Try a smaller task description.",
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
re: new RegExp(`^${normalizeTemplate('⚠️ 本轮未完成(退出码 ${result.exitCode},${durationSec}s)。${stats.lastText ? `\n\n${truncate(stats.lastText)}` : ""}')}$`),
|
|
420
|
+
en: "⚠️ This turn did not complete (exit code $1, $2s).$3",
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
re: new RegExp(`^${normalizeTemplate("🛑 已清空 ${queued} 条排队消息(当前无运行中任务)。")}$`),
|
|
424
|
+
en: "🛑 Cleared $1 queued messages (no task running).",
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
re: new RegExp(`^${normalizeTemplate("${text}\n\n…(已截断,点「📄 完整输出」收全文文件)")}$`),
|
|
428
|
+
en: '$1\n\n… (truncated; tap "📄 Full output" to receive the full text as a file)',
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
re: new RegExp(`^${normalizeTemplate("${base} → 开发者后台「权限管理」开通后重新发布版本")}$`),
|
|
432
|
+
en: "$1 → Developer console → Permissions; grant it, then publish a new version",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
re: new RegExp(`^${normalizeTemplate("未找到(${wfPath})——先运行 tasking init")}$`),
|
|
436
|
+
en: "not found ($1) — run tasking init first",
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
re: new RegExp(`^${normalizeTemplate("🗑 已退出收集模式,丢弃 ${dropped.length} 条未提交消息。")}$`),
|
|
440
|
+
en: "🗑 Left collect mode, dropping $1 unsubmitted messages.",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("Feishu app_id")} (${feishuApiBase(edition)} 应用凭证)')}$`),
|
|
444
|
+
en: "$1 ($2 app credentials)",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
re: new RegExp(`^${normalizeTemplate(' API 域名: ${feishuApiBase(choice.includes("Lark") ? "lark" : "feishu")}')}$`),
|
|
448
|
+
en: " API base: $1",
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
re: new RegExp(`^${normalizeTemplate("已恢复配置默认 agent:${config.opencode.agent}(下一轮生效)。")}$`),
|
|
452
|
+
en: "Restored the configured default agent: $1 (effective next turn).",
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
re: new RegExp(`^${normalizeTemplate('已恢复配置默认 model:${config.opencode.model ?? translate("(未设置)")}(下一轮生效)。')}$`),
|
|
456
|
+
en: "Restored the configured default model: $1 (effective next turn).",
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
re: new RegExp(`^${normalizeTemplate("- ${dropped} 个更早的工具调用明细因体积过大未包含")}$`),
|
|
460
|
+
en: "- $1 earlier tool-call details omitted due to size",
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
re: new RegExp(`^${normalizeTemplate("📥 收集中:已收集 **${buffered.length}** 条待提交。")}$`),
|
|
464
|
+
en: "📥 Collecting: **$1** messages waiting to submit.",
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
re: new RegExp(`^${normalizeTemplate("🛑 已中断当前任务${who}。可直接回复重新继续。")}$`),
|
|
468
|
+
en: "🛑 Interrupted the current task$1. Reply to start again.",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("新群名称")}(回车默认 tasking-intake)')}$`),
|
|
472
|
+
en: "$1 (press Enter for the default tasking-intake)",
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("warn")} 原 ${name} 已备份至 ${backupPath}\n')}$`),
|
|
476
|
+
en: "$1 Original $2 backed up to $3\n",
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
re: new RegExp(`^${normalizeTemplate(" 下一步: 订阅事件 ${links.event} | 发布版本 ${links.version}")}$`),
|
|
480
|
+
en: " Next: subscribe to the event $1 | publish the version $2",
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ 本轮未能启动(${toTaskingError(e).message})。请重发消息重试。")}$`),
|
|
484
|
+
en: "⚠️ This turn failed to start ($1). Please resend the message to retry.",
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
re: new RegExp(`^${normalizeTemplate("✅ 已清除 agent 标签,回退默认 ${config.opencode.agent}")}$`),
|
|
488
|
+
en: "✅ Agent label cleared, falling back to default $1",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
re: new RegExp(`^${normalizeTemplate("🔒 已恢复默认权限姿态(下一轮生效)。${this.autoSourceLabel(session)}")}$`),
|
|
492
|
+
en: "🔒 Restored the default permission posture (effective next turn). $1",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
re: new RegExp(`^${normalizeTemplate("- turns:${session.turns} · tokens:≈${formatTokens(session.total_tokens)}")}$`),
|
|
496
|
+
en: "- turns: $1 · tokens: ≈$2",
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
re: new RegExp(`^${normalizeTemplate("⏰ 收集超时,已自动提交 ${buffered.length} 条为一轮。")}$`),
|
|
500
|
+
en: "⏰ Collect timed out; auto-submitted $1 messages as one turn.",
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
re: new RegExp(`^${normalizeTemplate("汇总: ${passed} 通过 / ${failed} 失败 / ${skipped} 跳过")}$`),
|
|
504
|
+
en: "Summary: $1 passed / $2 failed / $3 skipped",
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
re: new RegExp(`^${normalizeTemplate("可用 issueType: ${list}\n默认: ${config.feishu.create_issue_type}")}$`),
|
|
508
|
+
en: "Available issueTypes: $1\nDefault: $2",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
re: new RegExp(`^${normalizeTemplate("[附件不可用] ${attachment.name}(当前未接下载能力)")}$`),
|
|
512
|
+
en: "[attachment unavailable] $1 (download not supported here)",
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
re: new RegExp(`^${normalizeTemplate("⏳ 已排队,当前任务完成后自动继续。${mergeNote}")}$`),
|
|
516
|
+
en: "⏳ Queued; continues automatically after the current turn. $1",
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
re: new RegExp(`^${normalizeTemplate('⚠️ 未知 agent "${name}"。可用:${catalog.join(", ")}')}$`),
|
|
520
|
+
en: '⚠️ Unknown agent "$1". Available: $2',
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
re: new RegExp(`^${normalizeTemplate("🚀 已提交 ${buffered.length} 条,合并为一轮执行。")}$`),
|
|
524
|
+
en: "🚀 Submitted $1 messages, merged into one turn.",
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("Feishu intake_chat_id")} (承载所有 issue 线程的群)')}$`),
|
|
528
|
+
en: "$1 (the group hosting all issue threads)",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
re: new RegExp(`^${normalizeTemplate("群聊命令(intake 群内使用):${groupOnly}")}$`),
|
|
532
|
+
en: "Group commands (use in the intake group): $1",
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
re: new RegExp(`^${normalizeTemplate("— 该轮已结束 · ${state.durationSec}s · ≈${formatTokens(state.turnTokens)} —")}$`),
|
|
536
|
+
en: "— Turn finished · $1s · ≈$2 —",
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
re: new RegExp(`^${normalizeTemplate("✅ 已切 ${label}(下一 turn 生效)")}$`),
|
|
540
|
+
en: "✅ Switched to $1 (effective next turn)",
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("Feishu app_secret")}(重输重试;直接回车跳过验证继续)')}$`),
|
|
544
|
+
en: "$1 (re-enter to retry; press Enter to skip verification and continue)",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("ok")} 已建群并选用:${groupName}(${created.chat_id})——你已在群里')}$`),
|
|
548
|
+
en: "$1 Group created and selected: $2 ($3) — you are in the group",
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
re: new RegExp(`^${normalizeTemplate("无此 issueType 编号: ${parsed.typeOverride}")}$`),
|
|
552
|
+
en: "No issueType with this number: $1",
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("ok")} 已定位你的账号,建群时拉你进群')}$`),
|
|
556
|
+
en: "$1 Found your account; you will be invited when the group is created",
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
re: new RegExp(`^${normalizeTemplate(" · 🔁 重试自 Turn ${state.retryFromTurn}")}$`),
|
|
560
|
+
en: " · 🔁 retry from turn $1",
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
re: new RegExp(`^${normalizeTemplate('- 排队:${rt.queue.length}${rt.turnInFlight ? translate(" · 运行中") : ""} · 距上次活动:${idleSec}s')}$`),
|
|
564
|
+
en: "- Queue: $1 · idle for $2s",
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
re: new RegExp(`^${normalizeTemplate("- 收集模式:📥 ${rt.collect.length} 条待提交")}$`),
|
|
568
|
+
en: "- Collect mode: 📥 $1 messages waiting",
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
re: new RegExp(`^${normalizeTemplate("✅ 会话已创建(${label}),正在开始…")}$`),
|
|
572
|
+
en: "✅ Session created ($1), starting…",
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
re: new RegExp(`^${normalizeTemplate("解析成功(tracker: ${cfg.tracker.kind})")}$`),
|
|
576
|
+
en: "parsed (tracker: $1)",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
re: new RegExp(`^${normalizeTemplate("HTTP ${status},无法归因到具体权限")}$`),
|
|
580
|
+
en: "HTTP $1: cannot attribute to a specific permission",
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
re: new RegExp(`^${normalizeTemplate(' review: ${buckets.review.join(" / ") || (zh ? "(无)" : "(none)")}')}$`),
|
|
584
|
+
en: " review: $1",
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ /chat 处理失败:${toTaskingError(e).message}")}$`),
|
|
588
|
+
en: "⚠️ /chat failed: $1",
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
re: new RegExp(`^${normalizeTemplate('⚠️ 未找到项目 "${target}"。\n${this.renderProjectList(direct)}')}$`),
|
|
592
|
+
en: '⚠️ Project "$1" not found.\n$2',
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("fail")} 路径不存在或不是目录: ${projectDir}')}$`),
|
|
596
|
+
en: "$1 Path does not exist or is not a directory: $2",
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
re: new RegExp(`^${normalizeTemplate("已退出收集模式,丢弃 ${dropped} 条")}$`),
|
|
600
|
+
en: "Left collect mode, dropping $1 messages",
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
re: new RegExp(`^${normalizeTemplate("(已丢弃 ${queued} 条排队消息)")}$`),
|
|
604
|
+
en: "(dropped $1 queued messages)",
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ 附件 ${attachment.name} 下载失败:${toTaskingError(e).message}")}$`),
|
|
608
|
+
en: "⚠️ Attachment $1 failed to download: $2",
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
re: new RegExp(`^${normalizeTemplate("服务不可用(HTTP ${res.status})")}$`),
|
|
612
|
+
en: "Service unavailable (HTTP $1)",
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ 无法解析路径: ${candidate}")}$`),
|
|
616
|
+
en: "⚠️ Cannot resolve path: $1",
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
re: new RegExp(`^${normalizeTemplate('✅ 已转 ${transitionName}${isTerminal ? "(完结)" : ""}(操作人:${who})')}$`),
|
|
620
|
+
en: "✅ Transitioned to $1 (by $2)",
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
re: new RegExp(`^${normalizeTemplate('未知命令。话题内可用:${threadCommandsFor(this.jiraTracker !== null).join("、")}')}$`),
|
|
624
|
+
en: "Unknown command. Available in threads: $1",
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
re: new RegExp(`^${normalizeTemplate(" 已刷新(${chats.length} 个群)")}$`),
|
|
628
|
+
en: " Refreshed ($1 chats)",
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
re: new RegExp(`^${normalizeTemplate('- session:${session.session_id ?? translate("(未开始)")}')}$`),
|
|
632
|
+
en: "- session: $1",
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
re: new RegExp(`^${normalizeTemplate('(会话未覆盖时按${source}:${effective ? "放开" : "默认"})')}$`),
|
|
636
|
+
en: "(without a session override, follows $1: $2)",
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ 路径不存在: ${candidate}")}$`),
|
|
640
|
+
en: "⚠️ Path does not exist: $1",
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ 完整输出失败:${toTaskingError(e).message}")}$`),
|
|
644
|
+
en: "⚠️ Full output failed: $1",
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
re: new RegExp(`^${normalizeTemplate("📋 ${issueKey} · ${title} 已开始")}$`),
|
|
648
|
+
en: "📋 $1 · $2 started",
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
re: new RegExp(`^${normalizeTemplate('当前 agent: ${resolved.agent}${resolved.warned ? "(未在目录中,已回退默认)" : ""}')}$`),
|
|
652
|
+
en: "Current agent: $1",
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
re: new RegExp(`^${normalizeTemplate("默认 agent: ${config.opencode.agent}")}$`),
|
|
656
|
+
en: "Default agent: $1",
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
re: new RegExp(`^${normalizeTemplate("已将会话名改为「${trimmed}」。")}$`),
|
|
660
|
+
en: 'Session renamed to "$1".',
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
re: new RegExp(`^${normalizeTemplate("(本轮无文本回复)${statsLine}${rejectionNote}")}$`),
|
|
664
|
+
en: "(no text reply this turn)$1",
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ 不是目录: ${candidate}")}$`),
|
|
668
|
+
en: "⚠️ Not a directory: $1",
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
re: new RegExp(`^${normalizeTemplate("⚠️ 转状态失败:${toTaskingError(e).message}")}$`),
|
|
672
|
+
en: "⚠️ Transition failed: $1",
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
re: new RegExp(`^${normalizeTemplate("✅ 已转 ${chosenTransition.toName}(完结)")}$`),
|
|
676
|
+
en: "✅ Transitioned to $1 (terminal)",
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("ok")} 飞书凭据验证通过')}$`),
|
|
680
|
+
en: "$1 Feishu credentials verified",
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
re: new RegExp(`^${normalizeTemplate('当前 agent:${session.agent_override ?? config.opencode.agent}${\n session.agent_override === null ? translate("(配置默认)") : translate("(会话覆盖)")\n }')}$`),
|
|
684
|
+
en: "Current agent: $1",
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
re: new RegExp(`^${normalizeTemplate('当前 model:${session.model_override ?? config.opencode.model ?? translate("(未设置)")}${\n session.model_override === null\n ? translate("(配置默认)")\n : translate("(会话覆盖)")\n }')}$`),
|
|
688
|
+
en: "Current model: $1",
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
re: new RegExp(`^${normalizeTemplate("已提交 ${buffered.length} 条为一轮")}$`),
|
|
692
|
+
en: "Submitted $1 messages as one turn",
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
re: new RegExp(`^${normalizeTemplate(' 已选群:${picked?.name ?? ""}(${picked?.chat_id ?? ""})')}$`),
|
|
696
|
+
en: " Selected group: $1 ($2)",
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
re: new RegExp(`^${normalizeTemplate('- agent:${session.agent_override ?? config.opencode.agent}${\n session.agent_override === null ? "" : translate("(会话覆盖)")\n }')}$`),
|
|
700
|
+
en: "- Agent: $1",
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
re: new RegExp(`^${normalizeTemplate('- model:${session.model_override ?? config.opencode.model ?? translate("(未设置)")}${\n session.agent_override === null ? "" : translate("(会话覆盖)")\n }')}$`),
|
|
704
|
+
en: "- Model: $1",
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
re: new RegExp(`^${normalizeTemplate("**失败:** ${detail}")}$`),
|
|
708
|
+
en: "**Failed:** $1",
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("warn")} 查询用户失败:${lookup.detail}')}$`),
|
|
712
|
+
en: "$1 User lookup failed: $2",
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
re: new RegExp(`^${normalizeTemplate('未匹配,可用:\n${lines.join("\n")}')}$`),
|
|
716
|
+
en: "No match. Available:\n$1",
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
re: new RegExp(`^${normalizeTemplate('未知命令。可用:${intakeCommandsFor(this.jiraTracker !== null).join("、")}')}$`),
|
|
720
|
+
en: "Unknown command. Available: $1",
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
re: new RegExp(`^${normalizeTemplate("在 PATH(${ocVersion})")}$`),
|
|
724
|
+
en: "on PATH ($1)",
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
re: new RegExp(`^${normalizeTemplate("- 目录:`${session.path}`")}$`),
|
|
728
|
+
en: "- Directory: `$1`",
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
re: new RegExp(`^${normalizeTemplate("- 权限姿态:${posture}")}$`),
|
|
732
|
+
en: "- Permission posture: $1",
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
re: new RegExp(`^${normalizeTemplate("${base} → 检查: ${consoleLinks(appId)[link]}")}$`),
|
|
736
|
+
en: "$1 → Check: $2",
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("项目目录绝对路径")}(${projectName};回车放弃)')}$`),
|
|
740
|
+
en: "$1 ($2; press Enter to skip)",
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("fail")} 验证未通过:${result.reason}')}$`),
|
|
744
|
+
en: "$1 Verification failed: $2",
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
re: new RegExp(`^${normalizeTemplate("${text.slice(0, max)}\n…(已截断)")}$`),
|
|
748
|
+
en: "$1\n… (truncated)",
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
re: new RegExp(`^${normalizeTemplate("当前权限姿态:${current}")}$`),
|
|
752
|
+
en: "Current permission posture: $1",
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
re: new RegExp(`^${normalizeTemplate("连接成功(v${version})")}$`),
|
|
756
|
+
en: "connected (v$1)",
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
re: new RegExp(`^${normalizeTemplate("确认转为「${choice.toName}」?")}$`),
|
|
760
|
+
en: 'Confirm transition to "$1"?',
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
re: new RegExp(`^${normalizeTemplate("网络不可达(${e instanceof Error ? e.message : String(e)})")}$`),
|
|
764
|
+
en: "Network unreachable ($1)",
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
re: new RegExp(`^${normalizeTemplate("转状态失败: ${toTaskingError(e).message}")}$`),
|
|
768
|
+
en: "Transition failed: $1",
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
re: new RegExp(`^${normalizeTemplate(' ${zh ? "未采用" : "unmatched"}: ${buckets.unmatched.join(" / ")}')}$`),
|
|
772
|
+
en: " Unmatched: $2",
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
re: new RegExp(`^${normalizeTemplate(" · 队列 ${state.queued}")}$`),
|
|
776
|
+
en: " · queue $1",
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
re: new RegExp(`^${normalizeTemplate("(操作人:${operator})")}$`),
|
|
780
|
+
en: " (by $1)",
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
re: new RegExp(`^${normalizeTemplate("✅ 已创建 ${created.key}")}$`),
|
|
784
|
+
en: "✅ Created $1",
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
re: new RegExp(`^${normalizeTemplate("✅ 已完结 ${b.issue_key}")}$`),
|
|
788
|
+
en: "✅ $1 completed",
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
re: new RegExp(`^${normalizeTemplate('${style.statusIcon("fail")} 建群失败:${created.detail}')}$`),
|
|
792
|
+
en: "$1 Group creation failed: $2",
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
re: new RegExp(`^${normalizeTemplate("查询失败: ${toTaskingError(e).message}")}$`),
|
|
796
|
+
en: "Query failed: $1",
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
re: new RegExp(`^${normalizeTemplate("创建失败: ${toTaskingError(e).message}")}$`),
|
|
800
|
+
en: "Creation failed: $1",
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
re: new RegExp(`^${normalizeTemplate("切换失败: ${toTaskingError(e).message}")}$`),
|
|
804
|
+
en: "Switch failed: $1",
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
re: new RegExp(`^${normalizeTemplate("项目条目「${session.project}」")}$`),
|
|
808
|
+
en: 'Project entry "$1"',
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
re: new RegExp(`^${normalizeTemplate("正在切换 ${agent}…")}$`),
|
|
812
|
+
en: "Switching to $1…",
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
re: new RegExp(`^${normalizeTemplate(" ${probeStatusIcon(style, item.status)} ${item.label}(${item.scope})${tail}")}$`),
|
|
816
|
+
en: "$1 $2 ($3)$4",
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
re: new RegExp(`^${normalizeTemplate("[附件] ${this.writeInboxFile(session.root_id, m.message_id, index, attachment, resource.data, resource.contentType)}")}$`),
|
|
820
|
+
en: "[attachment] $1",
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
re: new RegExp(`^${normalizeTemplate("✅ 已转 ${chosenTransition.toName}")}$`),
|
|
824
|
+
en: "✅ Transitioned to $1",
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
re: new RegExp(`^${normalizeTemplate("查询失败:${toTaskingError(e).message}")}$`),
|
|
828
|
+
en: "Query failed: $1",
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
re: new RegExp(`^${normalizeTemplate("解析失败:${msg}")}$`),
|
|
832
|
+
en: "parse failed: $1",
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
re: new RegExp(`^${normalizeTemplate('负责人:${assignee === null || assignee === "" ? "(未分配)" : assignee}')}$`),
|
|
836
|
+
en: "Assignee: $1",
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
re: new RegExp(`^${normalizeTemplate('目录: ${config.opencode.agents.join(", ")}')}$`),
|
|
840
|
+
en: "Catalog: $1",
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
re: new RegExp(`^${normalizeTemplate("缺 ${scope}(${what})")}$`),
|
|
844
|
+
en: "Missing $1 ($2)",
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
re: new RegExp(`^${normalizeTemplate("当前:${label}")}$`),
|
|
848
|
+
en: "Current: $1",
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
re: new RegExp(`^${normalizeTemplate('可用:${catalog.join(", ")}')}$`),
|
|
852
|
+
en: "Available: $1",
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
re: new RegExp(`^${normalizeTemplate("可用:${list}")}$`),
|
|
856
|
+
en: "Available: $1",
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
re: new RegExp(`^${normalizeTemplate("默认:${config.feishu.create_issue_type}")}$`),
|
|
860
|
+
en: "Default: $1",
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
re: new RegExp(`^${normalizeTemplate("目录 ${basename(dir)}")}$`),
|
|
864
|
+
en: "Directory $1",
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
re: new RegExp(`^${normalizeTemplate("项目 ${parsed.target}")}$`),
|
|
868
|
+
en: "Project $1",
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
re: new RegExp(`^${normalizeTemplate('状态:${state === "" ? "(未知)" : state}')}$`),
|
|
872
|
+
en: "State: $1",
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
re: new RegExp(`^${normalizeTemplate('${ICONS[item.status]} ${translate(item.name)}${translate(":")}${translate(item.detail)}\n')}$`),
|
|
876
|
+
en: "$1 $2\n",
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("任务来源")}')}$`),
|
|
880
|
+
en: "$1",
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("选择 intake 群")}')}$`),
|
|
884
|
+
en: "$1",
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold("选择 Jira workflow 变体")}')}$`),
|
|
888
|
+
en: "$1",
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
re: new RegExp(`^${normalizeTemplate('${style.bold(zh ? "写入状态配置" : "Write state config")}')}$`),
|
|
892
|
+
en: "$1",
|
|
893
|
+
},
|
|
894
|
+
];
|
|
895
|
+
//# sourceMappingURL=dict.js.map
|