@botharness/core 1.5.0 → 1.5.2

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/CHANGELOG.md CHANGED
@@ -6,7 +6,69 @@ Unreleased entries arrive as [change fragments](changes/README.md) and are folde
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- No changes since 1.5.0 yet.
9
+ No changes since 1.5.2 yet.
10
+
11
+ ## [1.5.2] - 2026-10-25
12
+
13
+ Tobs enables native desktop window zoom by default and improves Computer runtime reuse and setup recovery on Windows and macOS.
14
+
15
+ Mobile entries describe independently versioned app changes; this npm release does not publish or qualify Android/iOS binaries.
16
+
17
+ ### Documentation
18
+
19
+ - Updated installation guides to the verified Tobs 1.5.1 packages and clarified the new `tobs` command and retained `deepseekbot` compatibility entry ([#2751](https://github.com/BotHarness/DeepSeekBot/issues/2751)).
20
+
21
+ ### Fixed
22
+
23
+ - Fixed macOS Computer setup in the DSH desktop app treating capture-runtime archives as virtual folders, so verified installations can be reused instead of downloading again; download progress now clears during verification and installation, and localized setup errors guide users to missing macOS permissions ([#2761](https://github.com/BotHarness/DeepSeekBot/issues/2761)).
24
+
25
+ - Fixed mobile Marketplace Bot imports refused before creation, combined source checking and importing into one action, and removed the continuation footer below Home navigation on iOS and Android ([#2768](https://github.com/BotHarness/DeepSeekBot/issues/2768)).
26
+
27
+ - Fixed Windows Computer setup in the desktop app rejecting verified capture runtimes and exposing ASAR cleanup errors; installed components are reused, completed download progress clears, and setup failures use localized guidance ([#2771](https://github.com/BotHarness/DeepSeekBot/issues/2771)).
28
+
29
+ - Restored the Android section sheet's title and Close, New section, Back and Create actions, so a chat can be added to a newly created section ([#2773](https://github.com/BotHarness/DeepSeekBot/issues/2773)).
30
+
31
+ ### Changed
32
+
33
+ - Native macOS and Windows Desktop loads whole-window zoom with the Tobs Bundle, without a separate setup command; browser zoom and native font preferences remain separate ([#2775](https://github.com/BotHarness/DeepSeekBot/issues/2775)).
34
+
35
+ ## [1.5.1] - 2026-10-25
36
+
37
+ Tobs uses the scoped npm package alongside the compatible deepseekbot entry, unifies explicit Bot messaging and repairs background Subagent reporting and installed CLI startup.
38
+
39
+ Mobile entries describe source and artwork changes for the independently versioned app; this npm release does not publish or qualify an iOS or Android binary. The Human selected 1.5.1 after closing #2435; the entries below describe shipped behavior, not a claim of general per-message retry/recovery support.
40
+
41
+ ### Added
42
+
43
+ - Added unified Channel and external IM delivery with model-chosen reporting, optional Inbox completion and optional turn conclusion after a successful send, retaining Group draft review and per-message external reply deduplication ([#2435](https://github.com/BotHarness/DeepSeekBot/issues/2435)).
44
+
45
+ ### Removed
46
+
47
+ - Removed obsolete Bot sending tools from both model and direct CLI catalogs; use `bot_send_message` for delivery and `channel_action` for draft actions/reactions. Approval requests no longer force a preliminary message and retry; the model decides when an explanation helps ([#2435](https://github.com/BotHarness/DeepSeekBot/issues/2435)).
48
+
49
+ ### Changed
50
+
51
+ - Independent Bot Subagents select an allowed explicit native preset, a configured child default, or the current DSH system default; forks retain the parent's preset. Their direct CLI calls now use the existing parent Agent's tool pipeline and refuse when no live parent is available ([#2435](https://github.com/BotHarness/DeepSeekBot/issues/2435)).
52
+
53
+ - Use “托布 Tobs” for the Chinese iOS app name, permission prompts and promotional artwork, while the English name remains “Tobs” ([#2725](https://github.com/BotHarness/DeepSeekBot/issues/2725)).
54
+
55
+ - Chinese iOS store artwork now places original native screenshots at their original aspect ratio, with larger headlines and complete phone frames ([#2725](https://github.com/BotHarness/DeepSeekBot/issues/2725)).
56
+
57
+ ### Fixed
58
+
59
+ - Preserve the original Mac desktop setup error or cancellation when temporary video-component cleanup fails, and retry transient cleanup failures before recording a separate diagnostic ([#2761](https://github.com/BotHarness/DeepSeekBot/issues/2761)).
60
+
61
+ - Background Subagent reports can resume an idle Bot and explicitly deliver their results using its current model; long-running direct Subagent calls no longer hide a later Human turn from stop and steering controls ([#2435](https://github.com/BotHarness/DeepSeekBot/issues/2435)).
62
+
63
+ - Publish Tobs through `@botharness/tobs`, retaining the `tobs` command and the supported `deepseekbot` compatibility package after npm refused the unscoped name; the npm README follows the GitHub product introduction ([#2744](https://github.com/BotHarness/DeepSeekBot/issues/2744)).
64
+
65
+ - Fixed the desktop conversation return button so scrolling away from the latest messages shows an opaque icon above the composer on the right, with hover/press feedback and a badge for new messages, and reaching the bottom hides it ([#2748](https://github.com/BotHarness/DeepSeekBot/issues/2748)).
66
+
67
+ - Kept the core CLI entry point external when bundling `deepseekbot`, so rebuilding with existing core outputs preserves dependency resource paths and the installed CLI starts correctly ([#2436](https://github.com/BotHarness/DeepSeekBot/pull/2436)).
68
+
69
+ ### Documentation
70
+
71
+ - Documented Tailscale desktop-control prerequisites, usage and exact-build macOS/iOS qualification, with Connect and pending Windows/Android limitations ([#2562](https://github.com/BotHarness/DeepSeekBot/issues/2562)).
10
72
 
11
73
  ## [1.5.0] - 2026-10-24
12
74
 
package/CHANGELOG.zh.md CHANGED
@@ -6,7 +6,69 @@
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- 1.5.0 之后暂无变更。
9
+ 1.5.2 之后暂无变更。
10
+
11
+ ## [1.5.2] - 2026-10-25
12
+
13
+ Tobs 默认启用原生桌面窗口缩放,并改进 Windows 和 macOS 的 Computer 运行时复用与安装错误恢复。
14
+
15
+ 移动端条目描述独立版本应用的变化;本次 npm 发布不发布或验收 Android/iOS 安装包。
16
+
17
+ ### Documentation
18
+
19
+ - 将安装指南更新为已验证的 Tobs 1.5.1 发布包,说明新的 `tobs` 命令与保留的 `deepseekbot` 兼容入口([#2751](https://github.com/BotHarness/DeepSeekBot/issues/2751))。
20
+
21
+ ### Fixed
22
+
23
+ - 修复 macOS 上 DSH 桌面应用将录屏运行时归档误当成虚拟目录的问题,使已校验的安装可以复用而不再重复下载;进入校验与安装阶段后清除下载进度,并以本地化错误提示引导用户打开缺失的 macOS 权限设置([#2761](https://github.com/BotHarness/DeepSeekBot/issues/2761))。
24
+
25
+ - 修复移动端从市场导入 Bot 在创建前被拒绝的问题,将来源检查与导入合并为一个操作,并移除 iOS 和 Android 首页导航下方的继续创建入口([#2768](https://github.com/BotHarness/DeepSeekBot/issues/2768))。
26
+
27
+ - 修复 Windows 桌面应用拒绝复用已校验的录屏组件并暴露 ASAR 清理错误的问题;安装完成后可复用组件,校验与安装时清除下载进度,并显示本地化错误提示([#2771](https://github.com/BotHarness/DeepSeekBot/issues/2771))。
28
+
29
+ - 修复 Android 分区弹层缺少标题、关闭、新建分区、返回及创建操作的问题,可以创建新分区并将聊天加入其中([#2773](https://github.com/BotHarness/DeepSeekBot/issues/2773))。
30
+
31
+ ### Changed
32
+
33
+ - macOS 和 Windows 原生桌面随 Tobs Bundle 默认加载整窗口缩放,无需额外启用命令;浏览器缩放与原生字体偏好保持独立([#2775](https://github.com/BotHarness/DeepSeekBot/issues/2775))。
34
+
35
+ ## [1.5.1] - 2026-10-25
36
+
37
+ Tobs 使用带作用域的 npm 包并保留兼容的 deepseekbot 入口,统一 Bot 显式发送,修复后台 Subagent 汇报和安装后的 CLI 启动。
38
+
39
+ 移动端条目记录独立版本应用的源码和宣传图变化;本次 npm 发布不发布或验收 iOS、Android 安装包。用户在关闭 #2435 后指定发布 1.5.1;下列条目仅描述已实现行为,不代表已支持通用的逐条消息重试与恢复。
40
+
41
+ ### Added
42
+
43
+ - 新增 Channel 和外部 IM 的统一显式发送入口,由模型按需汇报,可在发送成功后选择结清 Inbox 和结束当前回合,保留群聊草稿审查,并支持外部回复逐条去重([#2435](https://github.com/BotHarness/DeepSeekBot/issues/2435))。
44
+
45
+ ### Removed
46
+
47
+ - 移除模型和直接 CLI 目录中的旧 Bot 发送工具,统一使用 `bot_send_message` 发送、`channel_action` 操作草稿和表情。审批请求不再强制先发说明再重试,由模型判断何时需要解释([#2435](https://github.com/BotHarness/DeepSeekBot/issues/2435))。
48
+
49
+ ### Changed
50
+
51
+ - 独立 Bot Subagent 依次使用允许的显式原生 preset、配置的子 Agent 默认值或当前 DSH 系统默认值;fork 继续继承父级。直接 CLI 调用复用现有父 Agent 的工具执行链,无存活父 Agent 时明确拒绝([#2435](https://github.com/BotHarness/DeepSeekBot/issues/2435))。
52
+
53
+ - iOS 中文应用名称、权限说明和宣传图统一使用“托布 Tobs”,英文名称保持“Tobs”([#2725](https://github.com/BotHarness/DeepSeekBot/issues/2725))。
54
+
55
+ - 中文 iOS 宣传图改用保持宽高比的原始截图,放大标题并保留完整手机框([#2725](https://github.com/BotHarness/DeepSeekBot/issues/2725))。
56
+
57
+ ### Fixed
58
+
59
+ - Mac 桌面组件临时目录清理失败时,保留原始安装错误或取消结果;对暂时性清理故障有限重试,并单独记录诊断([#2761](https://github.com/BotHarness/DeepSeekBot/issues/2761))。
60
+
61
+ - 后台 Subagent 回报可恢复空闲 Bot,使用当前模型显式发送结果;长时间运行的直接 Subagent 调用不再遮蔽后续用户回合的停止与追加指令([#2435](https://github.com/BotHarness/DeepSeekBot/issues/2435))。
62
+
63
+ - npm 拒绝无作用域包名后,Tobs 改用 `@botharness/tobs` 发布,保留 `tobs` 命令和继续支持的 `deepseekbot` 兼容包;npm README 与 GitHub 产品介绍保持一致([#2744](https://github.com/BotHarness/DeepSeekBot/issues/2744))。
64
+
65
+ - 修复桌面会话回到底部按钮:离开最新消息时在输入框上方右侧显示不透明图标,悬停、按住时改变颜色,有新消息时显示数量徽标,到底后隐藏([#2748](https://github.com/BotHarness/DeepSeekBot/issues/2748))。
66
+
67
+ - 打包 `deepseekbot` 时保留 core CLI 入口为外部依赖,避免已有 core 构建产物被再次内联后破坏依赖资源路径,确保安装后的 CLI 正常启动([#2436](https://github.com/BotHarness/DeepSeekBot/pull/2436))。
68
+
69
+ ### Documentation
70
+
71
+ - 补充 Tailscale 桌面远控的前提、步骤与具体构建的 macOS/iOS 验收范围,明确 Connect 限制及 Windows/Android 待验收项([#2562](https://github.com/BotHarness/DeepSeekBot/issues/2562))。
10
72
 
11
73
  ## [1.5.0] - 2026-10-24
12
74
 
package/cli/index.mjs CHANGED
@@ -18788,6 +18788,7 @@ async function runChannelCommand(command, rest, input, io, connect) {
18788
18788
  //#endregion
18789
18789
  //#region packages/core/src/bots/cli-browser-computer.ts
18790
18790
  const BROWSER_COMPUTER_OPTIONS = {
18791
+ permission: { type: "string" },
18791
18792
  tab: { type: "string" },
18792
18793
  profile: { type: "string" },
18793
18794
  package: {
@@ -18803,6 +18804,10 @@ const BROWSER_COMPUTER_OPTIONS = {
18803
18804
  probe: { type: "boolean" }
18804
18805
  };
18805
18806
  const BROWSER_COMPUTER_COMMANDS = [
18807
+ {
18808
+ command: "computer-open-permission-settings",
18809
+ description: "open a macOS privacy pane on the Host (--permission accessibility|screen-recording, --confirm)"
18810
+ },
18806
18811
  {
18807
18812
  command: "browser-observation",
18808
18813
  description: "read a Bot's Browser state, tabs and current picture (--out saves the picture)"
@@ -18875,6 +18880,7 @@ const BOT_COMMANDS = [
18875
18880
  ];
18876
18881
  const FILE_COMMANDS = ["computer-upload", "computer-import"];
18877
18882
  const CONFIRMED = [
18883
+ "computer-open-permission-settings",
18878
18884
  "browser-install-packages",
18879
18885
  "computer-install-packages",
18880
18886
  "computer-import"
@@ -18974,7 +18980,8 @@ async function runBrowserComputerCommand(command, rest, values, io, connect) {
18974
18980
  const positionals = BOT_COMMANDS.includes(command) || FILE_COMMANDS.includes(command) ? 1 : 0;
18975
18981
  if (rest.length !== positionals || rest.some((value) => !value.trim())) usage$17(positionals === 0 ? `${command} takes no positional arguments.` : FILE_COMMANDS.includes(command) ? `${command} needs exactly one ${command === "computer-upload" ? "local file" : "archive name"}.` : `${command} needs exactly one bot id.`);
18976
18982
  const target = rest[0]?.trim() ?? "";
18977
- if (CONFIRMED.includes(command) && values.confirm !== true) usage$17(command === "computer-import" ? "computer-import replaces Container Computer data with the archive. Pass --confirm." : `${command} installs system packages on the Host. Pass --confirm.`);
18983
+ if (command === "computer-open-permission-settings" && !["accessibility", "screen-recording"].includes(values.permission ?? "")) usage$17("--permission must be accessibility or screen-recording.");
18984
+ if (CONFIRMED.includes(command) && values.confirm !== true) usage$17(command === "computer-open-permission-settings" ? "Opening the Host system settings requires --confirm." : command === "computer-import" ? "computer-import replaces Container Computer data with the archive. Pass --confirm." : `${command} installs system packages on the Host. Pass --confirm.`);
18978
18985
  if (values.out !== void 0 && !absolute(values.out)) usage$17("--out must be an absolute file path.");
18979
18986
  if (values.dir !== void 0 && !absolute(values.dir)) usage$17("--dir must be an absolute folder.");
18980
18987
  const viewer = values.viewer?.trim() ?? "";
@@ -19135,6 +19142,10 @@ async function runBrowserComputerCommand(command, rest, values, io, connect) {
19135
19142
  authorize: true,
19136
19143
  file: target
19137
19144
  });
19145
+ case "computer-open-permission-settings": return json("/api/computer/open-permission-settings", {
19146
+ authorize: true,
19147
+ permission: values.permission
19148
+ });
19138
19149
  case "computer-open-dir": return json("/api/computer/open-dir", {
19139
19150
  authorize: true,
19140
19151
  ...values.dir === void 0 ? {} : { dir: values.dir }
@@ -37223,7 +37234,7 @@ function createSqliteChannelStore(options) {
37223
37234
  joinRequests: (channel.joinRequests ?? []).map((item) => item.id === request.id ? decided : item),
37224
37235
  updatedAt: timestamp
37225
37236
  };
37226
- const body = "Your request to join Group Channel " + channel.name + " (" + channel.id + ") was " + status + ". " + (input.accept ? "You may now use channel_read and channel_send there." : "You are not a member of that Group.");
37237
+ const body = "Your request to join Group Channel " + channel.name + " (" + channel.id + ") was " + status + ". " + (input.accept ? "You may now use channel_read and bot_send_message there." : "You are not a member of that Group.");
37227
37238
  database.transaction((db) => {
37228
37239
  db.prepare("UPDATE channel_records SET record_json = ? WHERE channel_id = ?").run(JSON.stringify(updated), channel.id);
37229
37240
  const sourceEventId = randomUUID();
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { ToolCallKind, ToolCallView, ToolExecution } from "@deepseek-ai/dsh-tools";
1
+ import { ToolCallKind, ToolCallView, ToolDefinition, ToolExecution } from "@deepseek-ai/dsh-tools";
2
2
  import { parseArgs } from "node:util";
3
3
  import { DatabaseSync } from "node:sqlite";
4
4
  import { BlockAssembler, ContextFormed, ToolCallId } from "@deepseek-ai/dsh-llm";
@@ -10361,7 +10361,7 @@ interface OutboundMessaging {
10361
10361
  defaults<Platform extends string = 'feishu'>(platform?: Platform): MessagingDefaults<Platform>;
10362
10362
  setDefaults(input: MessagingDefaultsInput): Promise<MessagingDefaults>;
10363
10363
  identity(botSlug: string, input: MessagingIdentityInput): Promise<MessagingIdentity>;
10364
- reply(botSlug: string, sourceEventId: string, text: string): Promise<OutboxIntent>;
10364
+ reply(botSlug: string, sourceEventId: string, text: string, messageKey?: string): Promise<OutboxIntent>;
10365
10365
  privateInputNotice(botSlug: string, sourceEventId: string, requestId: string, webUrl: string, authority: PrivateReplyAuthority): Promise<OutboxIntent>;
10366
10366
  acquireFile(botSlug: string, sourceEventId: string, attachmentId: string, signal?: AbortSignal): Promise<ChannelAttachmentRef>;
10367
10367
  readChannelMedia(input: {
@@ -10376,7 +10376,7 @@ interface OutboundMessaging {
10376
10376
  inline?: boolean;
10377
10377
  }>;
10378
10378
  prepareAudio(botSlug: string, sourceEventId: string, attachmentId: string, signal?: AbortSignal): Promise<ChannelAttachmentRef>;
10379
- replyFile(botSlug: string, sourceEventId: string, file: ChannelAttachmentRef): Promise<OutboxIntent>;
10379
+ replyFile(botSlug: string, sourceEventId: string, file: ChannelAttachmentRef, messageKey?: string): Promise<OutboxIntent>;
10380
10380
  register(provider: MessagingProvider): () => void;
10381
10381
  snapshot(botSlug: string): Promise<MessagingSnapshot>;
10382
10382
  disableBot(botSlug: string): Promise<void>;
@@ -12384,10 +12384,18 @@ interface OrchestratorAssignmentAccess {
12384
12384
  }>;
12385
12385
  }
12386
12386
  interface OrchestratorAgentRun {
12387
+ replyDestination?(sourceEventId: string): {
12388
+ kind: 'external';
12389
+ } | {
12390
+ kind: 'channel';
12391
+ channelId: string;
12392
+ messageId: string;
12393
+ };
12387
12394
  tobCli?: boolean;
12388
12395
  inboxHistory?(input?: InboxHistoryInput): InboxHistoryPage;
12389
12396
  triage?: OrchestratorInboxTriage;
12390
12397
  acceptNativeInput?: () => boolean;
12398
+ setExecutionReady?(ready: boolean): void;
12391
12399
  requireContent?(): void;
12392
12400
  sessionId: string;
12393
12401
  resume: boolean;
@@ -12437,7 +12445,7 @@ interface OrchestratorAgentRun {
12437
12445
  read(sourceEventId: string): ExternalSource;
12438
12446
  share(sourceEventId: string, channelId: string): ReturnType<OutboundMessaging['inbound']['share']>;
12439
12447
  context(sourceEventId: string, query: ExternalContextQuery, signal?: AbortSignal): Promise<ExternalContextResult>;
12440
- reply(sourceEventId: string, text: string): ReturnType<OutboundMessaging['reply']>;
12448
+ reply(sourceEventId: string, text: string, messageKey?: string): ReturnType<OutboundMessaging['reply']>;
12441
12449
  saveFile(input: {
12442
12450
  sourceEventId: string;
12443
12451
  attachmentId: string;
@@ -12445,7 +12453,7 @@ interface OrchestratorAgentRun {
12445
12453
  destinationPath: string;
12446
12454
  representation?: 'playback';
12447
12455
  }): ReturnType<typeof saveAttachmentFile>;
12448
- replyFile(sourceEventId: string, fileId: string): ReturnType<OutboundMessaging['replyFile']>;
12456
+ replyFile(sourceEventId: string, fileId: string, messageKey?: string): ReturnType<OutboundMessaging['replyFile']>;
12449
12457
  };
12450
12458
  channels: OrchestratorChannelAccess;
12451
12459
  sourcePolicy?: {
@@ -12575,6 +12583,10 @@ interface BotCreateOutcome {
12575
12583
  model: 'host-default' | 'set';
12576
12584
  }
12577
12585
  interface OrchestratorChannelAccess {
12586
+ replySource?(sourceEventId: string): {
12587
+ channelId: string;
12588
+ messageId: string;
12589
+ };
12578
12590
  list(input?: ChannelListInput): ChannelListPage;
12579
12591
  read(input?: {
12580
12592
  channelId?: string;
@@ -12689,6 +12701,7 @@ interface OrchestratorChannelAccess {
12689
12701
  yieldToMessageIds?: string[];
12690
12702
  }): SendReviewOutcome;
12691
12703
  send(input: {
12704
+ replySourceEventId?: string;
12692
12705
  observationId?: string;
12693
12706
  draftId?: string;
12694
12707
  freshnessOverride?: FreshnessOverride;
@@ -12736,7 +12749,7 @@ interface BotAgentAdapter {
12736
12749
  stopBot?(botSlug: string, sessionIds: string[]): Promise<void>;
12737
12750
  releaseSession?(sessionId: string): Promise<void>;
12738
12751
  directTools?(): DirectBotToolSpec[];
12739
- runDirectTool?(run: OrchestratorAgentRun, tool: string, args: Record<string, unknown>, signal: AbortSignal): Promise<unknown>;
12752
+ runDirectTool?(run: OrchestratorAgentRun, tool: string, args: Record<string, unknown>, signal: AbortSignal, parentSessionId?: string): Promise<unknown>;
12740
12753
  close(): Promise<void>;
12741
12754
  }
12742
12755
  interface HandleDmMessageInput {
@@ -12762,7 +12775,6 @@ interface BotRuntime {
12762
12775
  captureTobCliAuthority?(sessionId: string): TobCliAuthority;
12763
12776
  canRequestPrivateInput?(sessionId: string, sourceEventId?: string): boolean;
12764
12777
  askChannel?(sessionId: string): string | undefined;
12765
- askNotice?(sessionId: string, toolName: string): string | undefined;
12766
12778
  bindPrivateInputOrigin?(sessionId: string, sourceEventId?: string): PrivateInputOrigin | undefined;
12767
12779
  beginAssignmentApprovalWait?(sessionId: string, callId: string, signal: AbortSignal): AssignmentApprovalWaitLease | undefined;
12768
12780
  assignmentApprovalWait?(sessionId: string, callId: string): AssignmentExecutionWait | undefined;
@@ -12772,6 +12784,7 @@ interface BotRuntime {
12772
12784
  bindNativeQuestionInput?(sessionId: string, channelId: string): ((deliver: () => boolean) => Promise<boolean>) | undefined;
12773
12785
  recoverNativeQuestionInput?(sessionId: string, channelId: string, requestMessageId: string): ((deliver: () => boolean) => Promise<boolean>) | undefined;
12774
12786
  nativeQuestionAvailable?(sessionId: string, channelId: string): boolean;
12787
+ prepareNativeOrchestratorStep?(sessionId: string, senderSessionIds: readonly string[], signal: AbortSignal): Promise<boolean>;
12775
12788
  originalAttachmentRoot?(sessionId: string, path: string, kind: 'read' | 'write', shell?: boolean): string | undefined;
12776
12789
  reconcileMemoryChangesOnStartup?(): void;
12777
12790
  retryDmMessage?(channelId: string, messageId: string): Promise<void>;
@@ -12870,6 +12883,7 @@ interface DshBotAgentAdapterOptions {
12870
12883
  agents: DshAgentHost;
12871
12884
  defaultModel: DshDefaultModelHost;
12872
12885
  resolveModelPlan?: (botSlug: string) => PersonaBotModelPlan | undefined;
12886
+ subagentTools?: (botSlug: string) => ToolDefinition[];
12873
12887
  hasSession?: (sessionId: string) => Promise<boolean>;
12874
12888
  prepareModelRoute?: (botSlug: string, role: 'orchestrator' | 'assignment', retainedRoute?: ModelRoute) => Promise<void>;
12875
12889
  resolveAgentPresets?: () => DshAgentPresetHost | undefined;
@@ -13954,6 +13968,17 @@ interface UsageProjection {
13954
13968
  idleCompactions(botSlug: string, sinceIso: string): IdleCompactionRecord[];
13955
13969
  }
13956
13970
  //#endregion
13971
+ //#region packages/core/src/runtime/subagent-model-tools.d.ts
13972
+ declare module '@deepseek-ai/dsh-jobs' {
13973
+ interface JobKindMap {
13974
+ subagent: 'subagent';
13975
+ }
13976
+ }
13977
+ interface BotSubagentPresetConfig {
13978
+ agentPreset?: string;
13979
+ allowedAgentPresets?: string[] | undefined;
13980
+ }
13981
+ //#endregion
13957
13982
  //#region packages/core/src/plugin.d.ts
13958
13983
  export declare const name = "botharness-core";
13959
13984
  export declare const inject: string[];
@@ -13963,6 +13988,7 @@ interface BotHarnessConfig {
13963
13988
  privateInputExecution?: boolean;
13964
13989
  privateInputWebUrl?: string;
13965
13990
  agentPreset?: string;
13991
+ subagent?: BotSubagentPresetConfig;
13966
13992
  activityDetailConsumers?: string[];
13967
13993
  marketplaceUrl?: string;
13968
13994
  telemetry?: boolean;