@opencxh/domain 1.251.0 → 1.253.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.
@@ -176,6 +176,17 @@ export interface AiToolDescriptor extends AiTool {
176
176
  * decides the suggest downgrade on this.
177
177
  */
178
178
  effect?: "internal" | "outward";
179
+ /**
180
+ * What this tool leaves behind for a human to finish. `"draft"` = it prepares something the
181
+ * user reviews and sends (a reply draft), which is exactly the deliverable of an
182
+ * `AssistantMode: "draft"` turn.
183
+ *
184
+ * Declaring it is what lets that mode keep the drafting tool and drop every other write
185
+ * *without naming any tool*: `effect: "internal"` is too wide — an internal note, an
186
+ * attribute and a work item are all internal, and a model asked to "write something" picks
187
+ * whichever one its description matched. See `tools/mode.ts` in the ai app.
188
+ */
189
+ produces?: "draft";
179
190
  }
180
191
  /**
181
192
  * Body of `POST /provider/ai-tools/invoke`. Replaces five inline structural types (the caller in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.251.0",
3
+ "version": "1.253.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",