A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Let the mock model call working_directory with 进目录
Fei24116f37f57e2e32
diff --git a/ds-bot/dev/mock-llm.mjs b/ds-bot/dev/mock-llm.mjsindex 078afd13..b16db6f4 100644--- a/ds-bot/dev/mock-llm.mjs+++ b/ds-bot/dev/mock-llm.mjs@@ -18,6 +18,7 @@// Commands to a Bot:// 建群 名: A, B · 群发[回报] 名: 消息 · 改群 名 公告|管理员|模式|加|踢: 值 · 删群 名// 看群 名 (read_group_chat) · 转告 名: 消息, also over several lines (message_bot) · 搜索:查询1 | 查询2 (web_search)+// 进目录 路径 (working_directory with cd)// 插话 名: 消息 (message_bot when "now") · 排队 名: 消息 (message_bot when "queue") · 叫停 名: 原因 (stop_bot)// In a message from a Bot: 转告 名: 消息 (hands it on with message_bot) · 慢慢做 N (answers after N seconds)// 长文 N / long N (N×1000 characters) · 长任务 N [K] (N steps of K×1000, default 4)@@ -259,6 +260,7 @@ function decide(body) {return [text(/^(Saved to|Updated in|Removed from) /.test(resultText) ? (used.name === 'remember' ? '记下了。' : '已经忘掉了。') : `没记成:${resultText}`)]case 'recall': return [text(`记忆里有:\n${resultText}`)]case 'web_search': return [text(result.is_error ? `搜索失败:${resultText}` : `搜到了:\n${resultText}`)]+ case 'working_directory': return [text(result.is_error ? `没进去:${resultText}` : `现在在 ${resultText}`)]case 'read_browser': {const title = /^Title: (.+)$/m.exec(resultText)?.[1]const body = (resultText.split(/^Text[^\n]*:\n/m)[1] ?? '').split('\n\nLinks and controls')[0].replace(/\s+/g, ' ').trim()@@ -414,6 +416,7 @@ function decide(body) {if ((order = /^忘掉\s*[::]?\s*(.+)$/.exec(userText)) && tools.has('forget')) return [tool('forget', { entry: order[1].trim() })]if ((order = /^回忆(?:\s+(.+))?$/.exec(userText)) && tools.has('recall')) return [tool('recall', order[1] ? { query: order[1].trim() } : {})]if ((order = /^搜索\s*[::]\s*([^\n]+)/.exec(userText)) && tools.has('web_search')) return [tool('web_search', { queries: order[1].trim().split(/\s*[||]\s*/) })]+ if ((order = /^进目录\s+(.+)$/.exec(userText)) && tools.has('working_directory')) return [tool('working_directory', { cd: order[1].trim() })]if (/^看(?:网页|页面)/.test(userText) && tools.has('read_browser')) return [tool('read_browser', {})]if (userText.startsWith('写成文字')) return [text(WRITTEN_CALL)]// Context-line tests: grow the context, run a long multi-step turn, search history.