@xmanrui/dsh-im 2.2.1 → 2.3.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.
package/README.en.md CHANGED
@@ -150,6 +150,9 @@ Each WhatsApp bot also has its own access mode. Existing bots migrate to **Only
150
150
  | `/preset --default` | Clear this bot's explicit selection so later new Sessions follow the Host default. |
151
151
  | `/stop` | Immediately stop this chat's running task while preserving work that has not started. |
152
152
  | `/steer <additional instruction>` | Inject an additional instruction into this chat's running task. |
153
+ | `/batch` | Start batch input in a direct chat and collect up to 10 text messages. |
154
+ | `/send` | Submit the collected messages, in order, as one input. |
155
+ | `/cancel` | Cancel batch input and discard its collected messages. |
153
156
  | `/compact` | Immediately compact older context in the Session bound to the current chat. |
154
157
  | `/workspace <absolute workspace path>` | Switch the current bot's Harness workspace. |
155
158
  | `/workspacelist` | List workspace absolute paths that still exist on the current Harness Host. |
@@ -177,6 +180,7 @@ If the Slack desktop app has no native Slash Command registered with the same na
177
180
  - An Agent Preset change is bot-wide: it affects future new Sessions in every chat for this bot, but never modifies, stops, unbinds, or rebuilds an existing Session and never runs `/new` automatically. If this chat already has a Session, ordinary messages keep using it; the first ordinary message after `/new` creates a Session with the new setting. Presets can still be queried or changed while a task is running or awaiting interaction because the command does not touch that Session.
178
181
  - `/stop` and `/steer` control only a running task started by this chat. Even when multiple chats bind the same Session, they do not intentionally control another chat's task. `/stop` does not delete the Session or its history, preserves queued work that has not started, and is safe to repeat.
179
182
  - `/steer` accepts text only, including multiple lines. It neither creates another Session nor starts a second task. Send an ordinary message when no task is running; while an approval or question is pending, answer it first or use `/stop`.
183
+ - `/batch`, `/send`, and `/cancel` are available only in a direct chat with the bot. After `/batch`, subsequent text-only messages are held temporarily, up to 10 messages. The tenth is collected and prompts you to submit; later messages are rejected and the batch is never submitted automatically. `/send` processes the collected messages in their original order as one input, while `/cancel` discards them. Images, files, and other commands are not collected. An unsubmitted batch is lost if the bot restarts. Ordinary chat behavior is unchanged when batch input is not active.
180
184
  - `/compact` acts only on the Harness Session already bound to the current chat and is never sent to the model. The bot reports the applicable status when the chat has no Session yet, the Session is generating a reply, or there is no compactable history.
181
185
  - The path must be an existing absolute directory. The bot returns an actionable error and the correct usage when validation fails.
182
186
  - `/workspacelist` takes no arguments. It combines the Harness global registry with the current bot's path. When that current path still exists and is safe to display, it appears first and is marked as current. Any listed path can be copied directly into `/workspace`.
package/README.md CHANGED
@@ -153,6 +153,9 @@ dsh web
153
153
  | `/preset --default` | 清除当前机器人的显式选择,让后续新 Session 跟随 Host 默认。 |
154
154
  | `/stop` | 立即停止当前聊天正在运行的任务,并保留尚未开始的排队消息。 |
155
155
  | `/steer <补充指令>` | 把补充指令立即加入当前聊天正在运行的任务。 |
156
+ | `/batch` | 在私聊中开启批量输入,最多收集 10 条纯文字消息。 |
157
+ | `/send` | 将已收集的消息按原顺序作为一次输入提交。 |
158
+ | `/cancel` | 取消批量输入并丢弃已收集的消息。 |
156
159
  | `/compact` | 立即压缩当前聊天绑定会话的较早上下文。 |
157
160
  | `/workspace <工作区绝对路径>` | 切换当前机器人的 Harness 工作区。 |
158
161
  | `/workspacelist` | 列出当前 Harness Host 上仍然存在的工作区绝对路径。 |
@@ -180,6 +183,7 @@ Slack 桌面端若未注册同名的原生 Slash Command,会拦截直接以 `/
180
183
  - Agent Preset 修改是机器人级配置,会影响该机器人所有聊天以后创建的新 Session,但不会修改、停止、解绑或重建已有 Session,也不会自动执行 `/new`。若当前聊天已有会话,继续发送消息仍使用原 Session;发送 `/new` 后的下一条普通消息才会按新设置创建 Session。任务正在运行或等待交互时也可查询或修改 Preset,因为命令不会触碰当前 Session。
181
184
  - `/stop` 和 `/steer` 只控制当前聊天自己发起的运行任务,即使多个聊天绑定同一个 Session,也不会有意控制其他聊天的任务。`/stop` 不删除会话或历史,并保留尚未开始的排队消息;重复发送是安全的。
182
185
  - `/steer` 只接受文字,可包含多行;它不会创建新会话或第二个任务。没有运行任务时请直接发送普通消息;等待审批或问题回答时请先处理交互,或使用 `/stop`。
186
+ - `/batch`、`/send` 和 `/cancel` 仅在与机器人的私聊中可用。发送 `/batch` 后,接下来的纯文字消息会暂存,最多 10 条;第 10 条仍会收录并提示提交,之后的消息不会收录,也不会自动提交。发送 `/send` 后,机器人会按原顺序将整批内容作为一次输入处理;发送 `/cancel` 会直接丢弃当前批次。图片、文件和其他命令不会被收录。机器人重启会丢失尚未提交的批次。未进入批量输入模式时,普通聊天流程不变。
183
187
  - `/compact` 只作用于当前聊天已经绑定的 Harness 会话,不会把命令发送给模型。当前聊天尚未创建会话、会话正在生成回复或没有可压缩历史时,机器人会直接返回对应状态。
184
188
  - 只接受已经存在的绝对目录;路径无效时机器人会返回具体提示和正确用法。
185
189
  - `/workspacelist` 不需要参数。它合并 Harness 全局登记项与当前机器人的路径;当前路径仍存在且可安全显示时会排在首位并标记为“当前”。结果可直接复制到 `/workspace` 命令。