dominds 1.27.5 → 1.28.0

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.
Files changed (40) hide show
  1. package/dist/dialog.d.ts +2 -0
  2. package/dist/dialog.js +1 -1
  3. package/dist/docs/team_mgmt-toolset.md +21 -20
  4. package/dist/docs/team_mgmt-toolset.zh.md +21 -20
  5. package/dist/docs/txt-editing-tools.md +196 -122
  6. package/dist/docs/txt-editing-tools.zh.md +171 -97
  7. package/dist/llm/gen/failure-classifier.js +60 -11
  8. package/dist/llm/kernel-driver/drive.js +1 -1
  9. package/dist/llm/kernel-driver/tellask-special.d.ts +1 -0
  10. package/dist/llm/kernel-driver/tellask-special.js +20 -2
  11. package/dist/minds/system-prompt.js +17 -5
  12. package/dist/persistence.d.ts +1 -0
  13. package/dist/persistence.js +1 -1
  14. package/dist/tool.d.ts +2 -0
  15. package/dist/tool.js +52 -0
  16. package/dist/tools/app-reminders.js +1 -1
  17. package/dist/tools/builtins.js +31 -12
  18. package/dist/tools/prompts/team_mgmt.en.md +13 -29
  19. package/dist/tools/prompts/team_mgmt.zh.md +13 -29
  20. package/dist/tools/prompts/ws_mod/en/errors.md +45 -42
  21. package/dist/tools/prompts/ws_mod/en/index.md +10 -10
  22. package/dist/tools/prompts/ws_mod/en/principles.md +27 -34
  23. package/dist/tools/prompts/ws_mod/en/scenarios.md +42 -29
  24. package/dist/tools/prompts/ws_mod/en/tools.md +43 -46
  25. package/dist/tools/prompts/ws_mod/zh/errors.md +45 -42
  26. package/dist/tools/prompts/ws_mod/zh/index.md +10 -10
  27. package/dist/tools/prompts/ws_mod/zh/principles.md +27 -34
  28. package/dist/tools/prompts/ws_mod/zh/scenarios.md +42 -29
  29. package/dist/tools/prompts/ws_mod/zh/tools.md +42 -45
  30. package/dist/tools/prompts/ws_mod.en.md +77 -47
  31. package/dist/tools/prompts/ws_mod.zh.md +77 -47
  32. package/dist/tools/team_mgmt.d.ts +7 -6
  33. package/dist/tools/team_mgmt.js +379 -220
  34. package/dist/tools/txt.d.ts +20 -9
  35. package/dist/tools/txt.js +2282 -1842
  36. package/dist/utils/taskdoc.js +2 -2
  37. package/package.json +4 -4
  38. package/webapp/dist/assets/{main-NXVX2KTO.js → main-YWP5PWOM.js} +62 -1
  39. package/webapp/dist/assets/{main-NXVX2KTO.js.map → main-YWP5PWOM.js.map} +4 -4
  40. package/webapp/dist/index.html +1 -1
package/dist/dialog.d.ts CHANGED
@@ -479,6 +479,7 @@ export declare abstract class Dialog {
479
479
  persistTellaskCall(id: string, name: TellaskCallRecordName, rawArgumentsText: string, genseq: number, options?: {
480
480
  deliveryMode?: 'tellask_call_start' | 'func_call_requested';
481
481
  replyDirective?: TellaskReplyDirective;
482
+ recordReplyDelivery?: boolean;
482
483
  }): Promise<void>;
483
484
  /**
484
485
  * Post sideDialog completion response to this dialog.
@@ -714,6 +715,7 @@ export declare abstract class DialogStore {
714
715
  persistTellaskCall(_dialog: Dialog, _id: string, _name: TellaskCallRecordName, _rawArgumentsText: string, _genseq: number, _options?: {
715
716
  deliveryMode?: 'tellask_call_start' | 'func_call_requested';
716
717
  replyDirective?: TellaskReplyDirective;
718
+ recordReplyDelivery?: boolean;
717
719
  }): Promise<void>;
718
720
  /**
719
721
  * Start a new course in storage
package/dist/dialog.js CHANGED
@@ -649,7 +649,7 @@ class Dialog {
649
649
  visibleReminders.sort(tool_1.compareReminderDisplayOrder);
650
650
  return visibleReminders.map((r) => ({
651
651
  content: r.content,
652
- meta: r.meta,
652
+ meta: (0, tool_1.serializeReminderContentMeta)(r),
653
653
  reminder_id: r.id,
654
654
  renderRevision: (0, tool_1.computeReminderRenderRevision)(r),
655
655
  echoback: (0, tool_1.reminderEchoBackEnabled)(r),
@@ -109,26 +109,27 @@ The `team_mgmt` toolset mirrors a minimal subset of `fs`/`txt`, but **hard-scope
109
109
 
110
110
  Recommended tools (names are suggestions; use `snake_case` to match existing tools):
111
111
 
112
- | Tool name | Based on | Purpose | Default allowlist scope |
113
- | -------------------------------------- | -------- | --------------------------------------------------------------------------------- | ----------------------- |
114
- | `team_mgmt_list_dir` | `fs` | List directories/files under `.minds/` | `.minds/**` |
115
- | `team_mgmt_read_file` | `txt` | Read a text file under `.minds/` | `.minds/**` |
116
- | `team_mgmt_create_new_file` | `txt` | Create a new file under `.minds/` (empty content allowed; refuses overwrite) | `.minds/**` |
117
- | `team_mgmt_overwrite_entire_file` | `txt` | Overwrite an existing file under `.minds/` (guarded exception path) | `.minds/**` |
118
- | `team_mgmt_prepare_file_range_edit` | `txt` | Prepare a single-file edit by line range under `.minds/` (returns a diff hunk id) | `.minds/**` |
119
- | `team_mgmt_prepare_file_append` | `txt` | Prepare an append-to-EOF edit under `.minds/` (returns a diff hunk id) | `.minds/**` |
120
- | `team_mgmt_prepare_file_insert_after` | `txt` | Prepare inserting after an anchor under `.minds/` (returns a diff hunk id) | `.minds/**` |
121
- | `team_mgmt_prepare_file_insert_before` | `txt` | Prepare inserting before an anchor under `.minds/` (returns a diff hunk id) | `.minds/**` |
122
- | `team_mgmt_prepare_file_block_replace` | `txt` | Prepare a block replace between anchors under `.minds/` (returns a diff hunk id) | `.minds/**` |
123
- | `team_mgmt_apply_file_modification` | `txt` | Apply a planned modification by hunk id under `.minds/` | `.minds/**` |
124
- | `team_mgmt_mk_dir` | `fs` | Create directories under `.minds/` | `.minds/**` |
125
- | `team_mgmt_move_file` | `fs` | Move/rename files under `.minds/` | `.minds/**` |
126
- | `team_mgmt_move_dir` | `fs` | Move/rename directories under `.minds/` | `.minds/**` |
127
- | `team_mgmt_rm_file` | `fs` | Delete files under `.minds/` | `.minds/**` |
128
- | `team_mgmt_rm_dir` | `fs` | Delete directories under `.minds/` | `.minds/**` |
129
- | `team_mgmt_validate_priming_scripts` | new | Validate path constraints and script format under `.minds/priming/**.md` | `.minds/**` |
130
- | `team_mgmt_validate_team_cfg` | new | Validate `.minds/team.yaml` and publish issues to the Problems panel | `.minds/**` |
131
- | `man({ "toolsetId": "team_mgmt" })` | builtin | Handbook entrypoint for the `team_mgmt` toolset (see below) | N/A |
112
+ | Tool name | Based on | Purpose | Default allowlist scope |
113
+ | -------------------------------------- | -------- | ---------------------------------------------------------------------------- | ----------------------- |
114
+ | `team_mgmt_list_dir` | `fs` | List directories/files under `.minds/` | `.minds/**` |
115
+ | `team_mgmt_read_file` | `txt` | Read a text file under `.minds/` | `.minds/**` |
116
+ | `team_mgmt_create_new_file` | `txt` | Create a new file under `.minds/` from content or pad (refuses overwrite) | `.minds/**` |
117
+ | `team_mgmt_overwrite_entire_file` | `txt` | Overwrite an existing file under `.minds/` from content or pad (guarded) | `.minds/**` |
118
+ | `team_mgmt_file_range_edit` | `txt` | Directly write a single-file line range under `.minds/` from content or pad | `.minds/**` |
119
+ | `team_mgmt_file_append` | `txt` | Append to a file under `.minds/` directly | `.minds/**` |
120
+ | `team_mgmt_file_insert_after` | `txt` | Insert after an anchor under `.minds/` directly | `.minds/**` |
121
+ | `team_mgmt_file_insert_before` | `txt` | Insert before an anchor under `.minds/` directly | `.minds/**` |
122
+ | `team_mgmt_file_block_replace` | `txt` | Replace an anchor-delimited block under `.minds/` directly | `.minds/**` |
123
+ | `team_mgmt_prepare_occurrence_replace` | `txt` | Prepare a literal occurrence replacement under `.minds/`, aimed at batch use | `.minds/**` |
124
+ | `team_mgmt_apply_occurrence_replace` | `txt` | Apply a prepared literal occurrence replacement plan under `.minds/` | `.minds/**` |
125
+ | `team_mgmt_mk_dir` | `fs` | Create directories under `.minds/` | `.minds/**` |
126
+ | `team_mgmt_move_file` | `fs` | Move/rename files under `.minds/` | `.minds/**` |
127
+ | `team_mgmt_move_dir` | `fs` | Move/rename directories under `.minds/` | `.minds/**` |
128
+ | `team_mgmt_rm_file` | `fs` | Delete files under `.minds/` | `.minds/**` |
129
+ | `team_mgmt_rm_dir` | `fs` | Delete directories under `.minds/` | `.minds/**` |
130
+ | `team_mgmt_validate_priming_scripts` | new | Validate path constraints and script format under `.minds/priming/**.md` | `.minds/**` |
131
+ | `team_mgmt_validate_team_cfg` | new | Validate `.minds/team.yaml` and publish issues to the Problems panel | `.minds/**` |
132
+ | `man({ "toolsetId": "team_mgmt" })` | builtin | Handbook entrypoint for the `team_mgmt` toolset (see below) | N/A |
132
133
 
133
134
  Notes:
134
135
 
@@ -87,26 +87,27 @@
87
87
 
88
88
  推荐工具(名称是建议;使用 `snake_case` 以匹配现有工具):
89
89
 
90
- | 工具名称 | 基于 | 用途 | 默认白名单作用域 |
91
- | -------------------------------------- | ----- | ----------------------------------------------------------- | ---------------- |
92
- | `team_mgmt_list_dir` | `fs` | 列出 `.minds/` 下的目录/文件 | `.minds/**` |
93
- | `team_mgmt_read_file` | `txt` | 读取 `.minds/` 下的文本文件 | `.minds/**` |
94
- | `team_mgmt_create_new_file` | `txt` | 在 `.minds/` 下创建新文件(允许空内容;拒绝覆写) | `.minds/**` |
95
- | `team_mgmt_overwrite_entire_file` | `txt` | 覆写 `.minds/` 下的现有文件(受保护的异常路径) | `.minds/**` |
96
- | `team_mgmt_prepare_file_range_edit` | `txt` | 准备在 `.minds/` 下进行单文件行范围编辑(返回差异 hunk id) | `.minds/**` |
97
- | `team_mgmt_prepare_file_append` | `txt` | 准备在 `.minds/` 下进行追加到 EOF 编辑(返回差异 hunk id) | `.minds/**` |
98
- | `team_mgmt_prepare_file_insert_after` | `txt` | 准备在 `.minds/` 下的锚点后插入(返回差异 hunk id) | `.minds/**` |
99
- | `team_mgmt_prepare_file_insert_before` | `txt` | 准备在 `.minds/` 下的锚点前插入(返回差异 hunk id) | `.minds/**` |
100
- | `team_mgmt_prepare_file_block_replace` | `txt` | 准备在 `.minds/` 下的锚点之间进行块替换(返回差异 hunk id) | `.minds/**` |
101
- | `team_mgmt_apply_file_modification` | `txt` | 通过 hunk id 在 `.minds/` 下应用计划的修改 | `.minds/**` |
102
- | `team_mgmt_mk_dir` | `fs` | `.minds/` 下创建目录 | `.minds/**` |
103
- | `team_mgmt_move_file` | `fs` | 移动/重命名 `.minds/` 下的文件 | `.minds/**` |
104
- | `team_mgmt_move_dir` | `fs` | 移动/重命名 `.minds/` 下的目录 | `.minds/**` |
105
- | `team_mgmt_rm_file` | `fs` | 删除 `.minds/` 下的文件 | `.minds/**` |
106
- | `team_mgmt_rm_dir` | `fs` | 删除 `.minds/` 下的目录 | `.minds/**` |
107
- | `team_mgmt_validate_priming_scripts` | 新建 | 校验 `.minds/priming/**.md` 的路径约束与脚本格式 | `.minds/**` |
108
- | `team_mgmt_validate_team_cfg` | 新建 | 验证 `.minds/team.yaml` 并将问题发布到问题面板 | `.minds/**` |
109
- | `man({ "toolsetId": "team_mgmt" })` | 内置 | `team_mgmt` 工具集的手册入口(见下文) | N/A |
90
+ | 工具名称 | 基于 | 用途 | 默认白名单作用域 |
91
+ | -------------------------------------- | ----- | --------------------------------------------------------- | ---------------- |
92
+ | `team_mgmt_list_dir` | `fs` | 列出 `.minds/` 下的目录/文件 | `.minds/**` |
93
+ | `team_mgmt_read_file` | `txt` | 读取 `.minds/` 下的文本文件 | `.minds/**` |
94
+ | `team_mgmt_create_new_file` | `txt` | 用 content 或 pad 在 `.minds/` 下创建新文件 | `.minds/**` |
95
+ | `team_mgmt_overwrite_entire_file` | `txt` | 用 content 或 pad 覆写 `.minds/` 下的现有文件 | `.minds/**` |
96
+ | `team_mgmt_file_range_edit` | `txt` | content 或 pad 直接按行号范围写入 `.minds/` 文件 | `.minds/**` |
97
+ | `team_mgmt_file_append` | `txt` | 直接在 `.minds/` 下文件末尾追加内容 | `.minds/**` |
98
+ | `team_mgmt_file_insert_after` | `txt` | 直接在 `.minds/` 下锚点后插入内容 | `.minds/**` |
99
+ | `team_mgmt_file_insert_before` | `txt` | 直接在 `.minds/` 下锚点前插入内容 | `.minds/**` |
100
+ | `team_mgmt_file_block_replace` | `txt` | 直接替换 `.minds/` 下锚点限定的块内容 | `.minds/**` |
101
+ | `team_mgmt_prepare_occurrence_replace` | `txt` | 规划 `.minds/` 下字面量 occurrence 替换,偏向多点批量用途 | `.minds/**` |
102
+ | `team_mgmt_apply_occurrence_replace` | `txt` | 应用 `.minds/` 下已规划的字面量 occurrence 替换 plan | `.minds/**` |
103
+ | `team_mgmt_mk_dir` | `fs` | `.minds/` 下创建目录 | `.minds/**` |
104
+ | `team_mgmt_move_file` | `fs` | 移动/重命名 `.minds/` 下的文件 | `.minds/**` |
105
+ | `team_mgmt_move_dir` | `fs` | 移动/重命名 `.minds/` 下的目录 | `.minds/**` |
106
+ | `team_mgmt_rm_file` | `fs` | 删除 `.minds/` 下的文件 | `.minds/**` |
107
+ | `team_mgmt_rm_dir` | `fs` | 删除 `.minds/` 下的目录 | `.minds/**` |
108
+ | `team_mgmt_validate_priming_scripts` | 新建 | 校验 `.minds/priming/**.md` 的路径约束与脚本格式 | `.minds/**` |
109
+ | `team_mgmt_validate_team_cfg` | 新建 | 验证 `.minds/team.yaml` 并将问题发布到问题面板 | `.minds/**` |
110
+ | `man({ "toolsetId": "team_mgmt" })` | 内置 | `team_mgmt` 工具集的手册入口(见下文) | N/A |
110
111
 
111
112
  注意:
112
113