A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Merge remote-tracking branch 'origin/main' into devin/follow-through
Fei2411d7fc4cd4361f
diff --cc CHANGELOG.mdindex d1b954cc,26d5b454..44907249--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -6,12 -6,7 +6,13 @@@ All notable changes to DS Bot are liste### Added+ - Settings → **Capabilities**: share MCP servers and skills with the team, group them into packs, and choose which capabilities each Bot can use.+- A Bot that was working when DeepSeek Harness closed or restarted picks its work back up when DS Bot starts again. A group chat shows which member was cut off, and a Bot that was answering another Bot still sends its answer.+- The sidebar marks a Bot or group chat that waits for your approval. Where the system allows notifications, a notification also names the Bot.++### Fixed++- When a model wrote its tool call as text instead of making it, nothing ran and the Bot stopped as if it were done. The Bot is now asked once to make the call, and the text of the call is kept out of group chats.## [0.1.3] - 2026-10-12diff --cc ds-bot/index.jsindex 327762d6,df6b83a3..bca24be1--- a/ds-bot/index.js+++ b/ds-bot/index.js@@@ -39,9 -39,13 +40,13 @@@ export const inject = ['llm', 'tools',// the functions other modules call; they call them through `rt` at run time, never during// install. Listeners run and tools are listed in registration order, so this order holds:// usage meters model requests after every listener that rewrites them.- const MODULES = [diagnostics, store, models, permissions, turns, delivery, roster, agents, prompt, timeContext, tools, chatIndex, groups, approvals, resume, memory, parts, images, secrets, connectors, schedules, browser, usage, update, dshUpdate, channel]-const MODULES = [diagnostics, store, models, permissions, turns, delivery, roster, agents, prompt, timeContext, tools, chatIndex, groups, approvals, memory, parts, images, secrets, connectors, capabilities, schedules, browser, usage, update, dshUpdate, channel]++const MODULES = [diagnostics, store, models, permissions, turns, delivery, roster, agents, prompt, timeContext, tools, chatIndex, groups, approvals, resume, memory, parts, images, secrets, connectors, capabilities, schedules, browser, usage, update, dshUpdate, channel]export function apply(ctx, config = {}) {+ createRuntime(ctx, config)+ }++ export function createRuntime(ctx, config = {}) {const home = config.home ?? join(process.env.DSH_HOME ?? join(homedir(), '.dsh'), 'bot')const rt = {ctx,diff --cc ds-bot/test/install.test.jsindex 3f962f74,247f0ede..d83c376d--- a/ds-bot/test/install.test.js+++ b/ds-bot/test/install.test.js@@@ -21,11 -21,11 +21,11 @@@ function start(state, { config = {}, seconst response = await route.fetch(new Request('http://localhost/api/bot', { method: 'POST', body: JSON.stringify({ endpoint, payload }) }))return response.json()}- const stop = () => {- ctx.dispose()+ const stop = async () => {+ await ctx.dispose()rmSync(home, { recursive: true, force: true, maxRetries: 5 })}- return { ctx, call, stop }+ return { ctx, call, stop, applyResult }}// Listeners run, and tools are listed, in the order they are registered.diff --cc ds-bot/test/rounds.test.jsindex 099204b9,55666e63..495826dc--- a/ds-bot/test/rounds.test.js+++ b/ds-bot/test/rounds.test.js@@@ -97,11 -97,11 +97,11 @@@ function start()await emit(sessionId, { type: 'assistant/message', data: { message: { content: [{ type: 'text', text }] } } })await emit(sessionId, { type: 'turn/end', data: { reason: { kind: 'stop' } } })}- const stop = () => {- ctx.dispose()+ const stop = async () => {+ await ctx.dispose()rmSync(home, { recursive: true, force: true, maxRetries: 5 })}- return { call, emit, userMessage, compose, relay, inboxOf, answer, stop, sent, ctx, home }+ return { call, emit, userMessage, compose, relay, inboxOf, answer, stop, sent, ctx, home, rt }}const settle = () => new Promise(resolve => setTimeout(resolve, 20))