@fractal-solutions/qflow 1.0.77 → 1.0.78

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.
@@ -17,7 +17,7 @@ export class InteractiveWebviewNode extends AsyncNode {
17
17
  mode: {
18
18
  type: "string",
19
19
  enum: ["notification", "dialog", "input", "custom", "custom-dialog", "custom-input"],
20
- description: "The mode of the webview. For 'custom-dialog' and 'custom-input' modes, the tool generates the interactive elements (buttons or input field) based on 'options' or 'multilineInput' parameters; the 'html' parameter is for additional display content only. For 'custom' mode, you provide the full HTML and JavaScript, and must call the globally available JavaScript function `qflow(result)` directly from your HTML/JavaScript to return data. Do NOT use `window.qflow.send()` or similar custom mechanisms. Other modes are 'notification' (message with close button), 'dialog' (message with options), 'input' (message with text input)."
20
+ description: "The mode of the webview. Agents should generally default to 'custom-dialog' (custom HTML with dialog options), 'custom-input' (custom HTML with text input), or 'notification' (message with close button) for interactive tasks. For 'custom' mode, you provide the full HTML and JavaScript, and since it can only be closed by closing the window, the flow will hang upon webview closure, making 'custom' mode suitable primarily as a final action or when no return value is expected. Do NOT use `window.qflow.send()` or similar custom mechanisms. Other modes are 'dialog' (message with options), 'input' (message with text input)."
21
21
  },
22
22
  message: {
23
23
  type: "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fractal-solutions/qflow",
3
- "version": "1.0.77",
3
+ "version": "1.0.78",
4
4
  "description": "A lightweight and flexible JavaScript library for creating and managing workflows and agents.",
5
5
  "main": "dist/qflow.js",
6
6
  "types": "dist/qflow.d.ts",