dsh-agent-toolkit 0.2.7 → 0.2.9

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/lib/index.d.ts CHANGED
@@ -31,12 +31,14 @@ interface Rule {
31
31
  }
32
32
  //#endregion
33
33
  //#region src/bots/index.d.ts
34
- /** project-bot Config 的 6 个全局可调参数(字段名不变;schemastery 定义与默认值源:archive/2026-08-26-merged-plugins/project-bot/src/index.ts:38-45,由 Task 15 平移进 suite Config)。 */
34
+ /** project-bot Config 的 9 个全局可调参数(字段名不变;schemastery 定义与默认值源:archive/2026-08-26-merged-plugins/project-bot/src/index.ts:38-45,由 Task 15 平移进 suite Config)。 */
35
35
  interface BotsModuleConfig {
36
36
  /** 卡片流式更新节流间隔(毫秒)。 */
37
37
  cardUpdateThrottleMs: number;
38
- /** 单张卡片内容字节上限(飞书硬上限 30KB,留余量)。 */
38
+ /** 单卡真实 DSL 字节上限(含结构与转义;平台硬上限 30KB)。 */
39
39
  cardMaxBytes: number;
40
+ /** 飞书流式打字机每次打印字符数。 */
41
+ cardPrintStep: number;
40
42
  /** 过程区(思考 + 工具调用)字节上限(截尾保留最近内容)。 */
41
43
  processMaxBytes: number;
42
44
  /** 扫码创建应用的轮询超时(毫秒)。 */
@@ -47,6 +49,8 @@ interface BotsModuleConfig {
47
49
  errorDetailMaxChars: number;
48
50
  /** 会话创建/恢复时注入「渠道 + 发起人 open_id」提示段(dsh-agent-toolkit:channel:sender)。 */
49
51
  injectSender: boolean;
52
+ /** 飞书审批卡片:bot 会话的工具提权申请改由飞书卡片审批(仅会话发起人可点)。 */
53
+ approval: boolean;
50
54
  }
51
55
  //#endregion
52
56
  //#region src/agents/team-preset.d.ts
@@ -62,6 +66,16 @@ interface AgentTeamPresetConfig {
62
66
  name: string;
63
67
  /** preset.yml 的描述。 */
64
68
  description: string;
69
+ /** bot 会话挂载的最小 preset id(内容 = BASIC_TOOLS 5 行)。 */
70
+ botsId: string;
71
+ }
72
+ //#endregion
73
+ //#region src/schedule/index.d.ts
74
+ interface ScheduleModuleConfig {
75
+ /** 单次运行 followup→whenIdle 超时(分钟),超时 cancel + run 记 error('timeout')。 */
76
+ runTimeoutMinutes: number;
77
+ /** 每任务环形保留的最近运行数。 */
78
+ runHistoryLimit: number;
65
79
  }
66
80
  //#endregion
67
81
  //#region src/index.d.ts
@@ -80,6 +94,7 @@ interface Config {
80
94
  toolName: string;
81
95
  feishu: BotsModuleConfig;
82
96
  agentTeamPreset: AgentTeamPresetConfig;
97
+ schedule: ScheduleModuleConfig;
83
98
  }
84
99
  /** layers/rules 的 schemastery schema 照归档 prompt-stack/src/index.ts:21-41 逐字段平移(含 overrides transform hack)。 */
85
100
  declare const Config: z<unknown, Config>;