mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-11 01:43:25 +08:00
fix(feishu): harden interactive card flows
This commit is contained in:
parent
5b33249599
commit
9d1dc71794
6 changed files with 1198 additions and 609 deletions
|
|
@ -131,8 +131,119 @@ export default {
|
|||
'已取消关注「{title}」。': 'Unwatched "{title}".',
|
||||
'取消失败:{message}': 'Could not unwatch: {message}',
|
||||
'飞书交互问题发送失败。': 'Failed to send the Feishu interaction question.',
|
||||
'当前任务仍在运行,请先停止任务或等待任务完成后再开启新会话。':
|
||||
'The current task is still running. Stop it or wait for it to finish before starting a new session.',
|
||||
'请输入补充指令后再提交。': 'Enter an instruction before submitting.',
|
||||
'已批量关注 {count} 个会话。': 'Now watching {count} sessions.',
|
||||
'已关注(或已达关注上限)。': 'Sessions are already watched, or the watch limit has been reached.',
|
||||
'已取消关注 {count} 个会话。': 'Stopped watching {count} sessions.',
|
||||
'未取消任何关注。': 'No watches were removed.',
|
||||
'当前没有绑定的会话,请先从会话列表选择。':
|
||||
'No session is currently bound. Select one from the session list first.',
|
||||
'已就绪,直接发消息即可继续当前会话。':
|
||||
'Ready. Send a message to continue the current session.',
|
||||
'修复需在私聊中验证接入者身份,请直接发送 /repair 开始。':
|
||||
'Repair must verify the owner in a direct chat. Send /repair there to begin.',
|
||||
'暂时无法获取预设列表,请稍后重试。':
|
||||
'Could not load the preset list. Please try again later.',
|
||||
'暂时无法获取系统状态,请稍后重试。':
|
||||
'Could not load system status. Please try again later.',
|
||||
'连接正常': 'Connected',
|
||||
'预设:{preset}': 'Preset: {preset}',
|
||||
'未知': 'Unknown',
|
||||
'/stop 执行完成。': '/stop completed.',
|
||||
'停止任务失败,请稍后重试。': 'Could not stop the task. Please try again later.',
|
||||
'已提交补充指令。': 'Instruction submitted.',
|
||||
'预设重置失败,请稍后重试。': 'Could not reset the preset. Please try again later.',
|
||||
'预设切换失败,请稍后重试。': 'Could not switch the preset. Please try again later.',
|
||||
|
||||
// feishu/feishu-cards.mjs — interactive cards
|
||||
'🤖 助手中心': '🤖 Assistant center',
|
||||
'**设置**': '**Settings**',
|
||||
'切换会话': 'Switch session',
|
||||
'选择会话(当前未绑定)': 'Select a session (none currently bound)',
|
||||
'跟随默认': 'Follow default',
|
||||
'切换预设': 'Switch preset',
|
||||
'切换模型': 'Switch model',
|
||||
'当前工作区暂无可用会话。': 'There are no available sessions in the current workspace.',
|
||||
'🤖 切换预设': '🤖 Switch preset',
|
||||
'🧠 切换模型': '🧠 Switch model',
|
||||
'🆕 新会话': '🆕 New session',
|
||||
'📋 会话/关注': '📋 Sessions / watches',
|
||||
'🗂 工作区列表': '🗂 Workspace list',
|
||||
'**任务控制**': '**Task controls**',
|
||||
'⏹ 停止': '⏹ Stop',
|
||||
'📐 压缩': '📐 Compact',
|
||||
'**补充指令**': '**Steer task**',
|
||||
'选择补充指令': 'Choose an instruction',
|
||||
'继续': 'Continue',
|
||||
'加速运行': 'Move faster',
|
||||
'总结当前进展': 'Summarize current progress',
|
||||
'更简洁些': 'Be more concise',
|
||||
'更详细些': 'Be more detailed',
|
||||
'✏️ 更多 / 自定义…': '✏️ More / custom…',
|
||||
'🗄 归档:{state}': '🗄 Archived: {state}',
|
||||
'已显示': 'shown',
|
||||
'已隐藏': 'hidden',
|
||||
'切换归档显示': 'Toggle archived sessions',
|
||||
'📊 状态': '📊 Status',
|
||||
'📖 帮助': '📖 Help',
|
||||
'**数字兜底**\n**1**工作区列表 · **2**新会话 · **3**会话列表 · **4**状态\n**5**🔧修复 · **6**帮助':
|
||||
'**Number fallback**\n**1** Workspace list · **2** New session · **3** Session list · **4** Status\n**5** 🔧 Repair · **6** Help',
|
||||
'跟随 Host 默认{default}': 'Follow Host default{default}',
|
||||
'**当前**:{value}': '**Current**: {value}',
|
||||
'**Host 默认**:{value}': '**Host default**: {value}',
|
||||
'未设置': 'Not set',
|
||||
'选择预设': 'Select a preset',
|
||||
'🔄 跟随默认': '🔄 Follow default',
|
||||
'当前没有可选择的预设。': 'There are no presets to choose from.',
|
||||
'🤖 预设列表': '🤖 Preset list',
|
||||
'**当前模型**:{model}': '**Current model**: {model}',
|
||||
'选择模型': 'Select a model',
|
||||
'🧠 模型列表': '🧠 Model list',
|
||||
'{icon} 飞书机器人{state}': '{icon} Feishu bot {state}',
|
||||
'已连接': 'connected',
|
||||
'未连接': 'disconnected',
|
||||
'📂 工作区:`{workspace}`': '📂 Workspace: `{workspace}`',
|
||||
'🤖 预设:{preset}': '🤖 Preset: {preset}',
|
||||
'🧠 模型:{model}': '🧠 Model: {model}',
|
||||
'💬 会话:{count} 个': '💬 Sessions: {count}',
|
||||
'📊 系统状态': '📊 System status',
|
||||
'📋 会话 / 工作区': '📋 Sessions / workspace',
|
||||
'/sessionlist 列出工作区会话': '/sessionlist List workspace sessions',
|
||||
'/session ID 绑定已有会话': '/session ID Bind an existing session',
|
||||
'/workspacelist 列出工作区': '/workspacelist List workspaces',
|
||||
'/workspace 路径 切换工作区': '/workspace PATH Switch workspace',
|
||||
'/new 开启全新会话': '/new Start a new session',
|
||||
'📊 状态 / 压缩': '📊 Status / compact',
|
||||
'/status 连接状态': '/status Connection status',
|
||||
'/compact 压缩当前会话上下文': '/compact Compact the current session context',
|
||||
'/archived on/off 会话列表显示/隐藏归档': '/archived on/off Show/hide archived sessions',
|
||||
'👁 关注': '👁 Watches',
|
||||
'/watch ID 关注会话(完成后推送)': '/watch ID Watch a session (push on completion)',
|
||||
'/watchlist 关注列表': '/watchlist List watched sessions',
|
||||
'/unwatch ID 取消关注': '/unwatch ID Stop watching a session',
|
||||
'🤖 预设 / 模型': '🤖 Presets / models',
|
||||
'/models 列出模型': '/models List models',
|
||||
'/model 2 按序号切换模型': '/model 2 Switch model by index',
|
||||
'🎮 任务控制': '🎮 Task controls',
|
||||
'/steer 指令 给 Agent 补充指令': '/steer INSTRUCTION Steer the Agent',
|
||||
'**📋 卡片功能**\n\n1. 会话下拉 — 切换当前绑定会话\n2. 工作区下拉 — 切换工作区\n3. 🤖 预设下拉 — 切换 Agent 预设\n4. 🧠 模型下拉 — 切换模型\n5. 🆕 新会话 — 开启全新会话\n6. 📋 会话/关注 — 查看/绑定会话,管理关注\n7. ⏹ 停止 — 停止当前任务\n8. 📐 压缩 — 压缩当前会话上下文\n9. 补充指令 — 给 Agent 发送指令\n10. 🗄 归档切换 — 显示/隐藏归档会话\n11. 📊 状态 — 查看系统连接状态\n12. 📖 帮助 — 查看本帮助':
|
||||
'**📋 Card features**\n\n1. Session dropdown — switch the bound session\n2. Workspace dropdown — switch workspace\n3. 🤖 Preset dropdown — switch Agent Preset\n4. 🧠 Model dropdown — switch model\n5. 🆕 New session — start fresh\n6. 📋 Sessions/watches — view or bind sessions and manage watches\n7. ⏹ Stop — stop the current task\n8. 📐 Compact — compact the current session context\n9. Steer task — send an instruction to the Agent\n10. 🗄 Archived toggle — show or hide archived sessions\n11. 📊 Status — view connection status\n12. 📖 Help — view this help',
|
||||
'**⌨️ 文本命令**\n\n`/m` — 打开菜单卡片\n`/new` — 开启全新会话\n`/session ID` — 绑定已有会话\n`/sessionlist [工作区]` — 列出会话\n`/workspace 路径` — 切换工作区\n`/workspacelist` — 列出工作区\n`/status` — 查看连接状态\n`/compact` — 压缩上下文\n`/stop` — 停止当前任务\n`/steer 指令` — 补充指令\n`/watch ID` — 关注会话\n`/watchlist` — 关注列表\n`/unwatch ID` — 取消关注\n`/archived on/off` — 归档显隐\n`/presetlist` — 列出预设\n`/preset [序号/ID]` — 切换预设\n`/preset --default` — 跟随默认\n`/models` — 列出模型\n`/model 2` — 切换模型\n`/repair` — 修复卡片按钮':
|
||||
'**⌨️ Text commands**\n\n`/m` — open the menu card\n`/new` — start a new session\n`/session ID` — bind an existing session\n`/sessionlist [workspace]` — list sessions\n`/workspace PATH` — switch workspace\n`/workspacelist` — list workspaces\n`/status` — view connection status\n`/compact` — compact context\n`/stop` — stop the current task\n`/steer INSTRUCTION` — steer the task\n`/watch ID` — watch a session\n`/watchlist` — list watched sessions\n`/unwatch ID` — stop watching\n`/archived on/off` — show or hide archived sessions\n`/presetlist` — list presets\n`/preset [index/ID]` — switch preset\n`/preset --default` — follow default\n`/models` — list models\n`/model 2` — switch model\n`/repair` — repair card buttons',
|
||||
'**💡 数字兜底**\n回复数字快速操作:\n**1**工作区列表 · **2**新会话 · **3**会话/关注\n**4**状态 · **5**修复 · **6**帮助':
|
||||
'**💡 Number fallback**\nReply with a number for a quick action:\n**1** Workspace list · **2** New session · **3** Sessions/watches\n**4** Status · **5** Repair · **6** Help',
|
||||
'从下方下拉选择补充指令;最后一项可自定义输入。':
|
||||
'Choose an instruction below; the last option lets you enter a custom one.',
|
||||
'当前没有绑定会话,请先绑定会话再补充指令。':
|
||||
'No session is bound. Bind one before steering the task.',
|
||||
'➕ 补充指令': '➕ Steer task',
|
||||
'输入补充指令后点「提交」,发送给当前运行的任务。':
|
||||
'Enter an instruction and press Submit to send it to the running task.',
|
||||
'输入你的补充指令': 'Enter your instruction',
|
||||
'提交': 'Submit',
|
||||
'➕ 自定义指令': '➕ Custom instruction',
|
||||
'🤖 助手菜单': '🤖 Assistant menu',
|
||||
'**点击按钮或直接回复数字**': '**Tap a button or reply with a number**',
|
||||
'1 · 会话列表': '1 · Sessions',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue