@fractal-solutions/qflow 1.0.29 → 1.0.30
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/LICENSE +504 -0
- package/README.md +170 -30
- package/dist/agent/tools.d.ts +3114 -181
- package/dist/agent/tools.js +492 -0
- package/dist/nodes/browser_control.d.ts +4 -0
- package/dist/nodes/browser_control.js +73 -0
- package/dist/nodes/data_validation.d.ts +9 -0
- package/dist/nodes/data_validation.js +48 -0
- package/dist/nodes/display_image.d.ts +4 -0
- package/dist/nodes/display_image.js +46 -0
- package/dist/nodes/gis.d.ts +37 -0
- package/dist/nodes/gis.js +106 -0
- package/dist/nodes/git.d.ts +4 -0
- package/dist/nodes/git.js +55 -0
- package/dist/nodes/hardware_interaction.d.ts +8 -0
- package/dist/nodes/hardware_interaction.js +97 -0
- package/dist/nodes/image_gallery.d.ts +8 -0
- package/dist/nodes/image_gallery.js +99 -0
- package/dist/nodes/index.d.ts +12 -0
- package/dist/nodes/index.js +12 -0
- package/dist/nodes/multimedia_processing.d.ts +10 -0
- package/dist/nodes/multimedia_processing.js +79 -0
- package/dist/nodes/pdf_processor.d.ts +4 -0
- package/dist/nodes/pdf_processor.js +75 -0
- package/dist/nodes/remote_execution.d.ts +4 -0
- package/dist/nodes/remote_execution.js +82 -0
- package/dist/nodes/scheduler.d.ts +20 -0
- package/dist/nodes/scheduler.js +97 -0
- package/dist/nodes/speech_synthesis.d.ts +45 -0
- package/dist/nodes/speech_synthesis.js +142 -0
- package/dist/nodes/spreadsheet.d.ts +10 -0
- package/dist/nodes/spreadsheet.js +241 -0
- package/dist/nodes/webhook.d.ts +15 -0
- package/dist/nodes/webhook.js +110 -0
- package/dist/nodes/websockets.d.ts +4 -0
- package/dist/nodes/websockets.js +73 -0
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -122,7 +122,6 @@ A helper class used in conjunction with `Node.transition()` to define conditiona
|
|
|
122
122
|
|
|
123
123
|
## How to use the Docs and Examples
|
|
124
124
|
|
|
125
|
-
|
|
126
125
|
The examples in [Basic Usage & Examples](#basic-usage--examples) below will cover the core functionalities of `qflow`. For more advanced and specific use cases involving the built-in integrations, please explore the [`examples/` folder](https://github.com/fractal-solutions/qflow/tree/main/examples) in the project's GitHub repository. There you will find detailed scripts demonstrating how to use nodes for:
|
|
127
126
|
|
|
128
127
|
* [**LLMs (DeepSeek, OpenAI, Gemini, Ollama, Hugging Face, OpenRouter):**](#7-inter-node-communication-with-shared-state-advanced-example) The core of agentic behavior.
|
|
@@ -144,7 +143,42 @@ The examples in [Basic Usage & Examples](#basic-usage--examples) below will cove
|
|
|
144
143
|
* `DuckDuckGoSearchNode`: API-key-free, using DuckDuckGo's HTML interface.
|
|
145
144
|
* `GoogleSearchNode`: Requires a Google API Key and Custom Search Engine ID for more robust results.
|
|
146
145
|
* **WebScraper:** For targeted web scraping.
|
|
146
|
+
* **BrowserControl:** For controlling a web browser with Playwright.
|
|
147
|
+
* **Git:** For performing Git operations.
|
|
148
|
+
* **WebSockets:** For real-time, two-way communication with web services.
|
|
147
149
|
* [**DataExtractor:**](#13-data-extraction-example) For targeted data extraction.
|
|
150
|
+
* **PDF Processor:** For extracting text and images from PDF documents.
|
|
151
|
+
* **Prerequisite:** Requires `poppler-utils` to be installed on your system.
|
|
152
|
+
* **Linux (Debian/Ubuntu):** `sudo apt-get install poppler-utils`
|
|
153
|
+
* **Linux (Arch/Manjaro):** `sudo pacman -S poppler`
|
|
154
|
+
* **macOS:** `brew install poppler`
|
|
155
|
+
* **Windows:** Install Poppler for Windows and add its executables to your system's PATH.
|
|
156
|
+
* **GIS:** For Geographic Information System operations like geocoding and reverse geocoding. Supports multiple providers (OpenStreetMap, Google Maps).
|
|
157
|
+
* **OpenStreetMap:** Free and open-source. No API key required.
|
|
158
|
+
* **Google Maps:** Requires a `GOOGLE_MAPS_API_KEY` environment variable.
|
|
159
|
+
* **Display Image:** For opening image files using the system's default image viewer. Useful for agents to show generated plots or other visual output.
|
|
160
|
+
* **Hardware Interaction:** For communicating with local hardware via serial port (UART).
|
|
161
|
+
* **Prerequisite:** Requires the `serialport` library (`npm install serialport` or `bun add serialport`). This library has native components and may require build tools (Python, C/C++ compiler).
|
|
162
|
+
* **Permissions:** On Linux, your user might need to be added to the `dialout` group (`sudo usermod -a -G dialout $USER`, then log out and back in).
|
|
163
|
+
* **Image Gallery:** Generates an HTML gallery from multiple image files and opens it in a web browser. Useful for displaying multiple plots or images in a single view.
|
|
164
|
+
* **Speech Synthesis:** Converts text to spoken audio using OS capabilities or cloud APIs.
|
|
165
|
+
* **Prerequisites:**
|
|
166
|
+
* **macOS:** Built-in (`say` command).
|
|
167
|
+
* **Linux:** `espeak` (`sudo apt install espeak` or `sudo pacman -S alsa-utils`).
|
|
168
|
+
* **Google Cloud TTS:** Requires `GOOGLE_TTS_API_KEY` environment variable.
|
|
169
|
+
* **Multimedia Processing:** Performs various operations on audio and video files using `ffmpeg` (e.g., convert formats, trim, extract audio/frames).
|
|
170
|
+
* **Prerequisite:** Requires `ffmpeg` to be installed on your system.
|
|
171
|
+
* **Linux (Debian/Ubuntu):** `sudo apt install ffmpeg`
|
|
172
|
+
* **Linux (Arch/Manjaro):** `sudo pacman -S ffmpeg`
|
|
173
|
+
* **macOS:** `brew install ffmpeg`
|
|
174
|
+
* **Windows:** Download and install `ffmpeg` and add it to your system's PATH.
|
|
175
|
+
* **Remote Execution:** Executes commands on remote machines via SSH.
|
|
176
|
+
* **Prerequisite:** Requires the `ssh2` library (`npm install ssh2` or `bun add ssh2`). This library has native components and may require build tools (Python, C/C++ compiler).
|
|
177
|
+
* **Data Validation:** Validates structured data against JSON Schemas.
|
|
178
|
+
* **Prerequisite:** Requires the `ajv` library (`npm install ajv` or `bun add ajv`).
|
|
179
|
+
* **WebHook:** Exposes an HTTP endpoint to receive webhooks, enabling event-driven flows.
|
|
180
|
+
* **Scheduler:** Schedules `qflow` flows for future or recurring execution.
|
|
181
|
+
* **Prerequisite:** Requires the `node-cron` library (`npm install node-cron` or `bun add node-cron`).
|
|
148
182
|
* **System Notification:** For displaying system-level notifications across different operating systems.
|
|
149
183
|
* **Interactive Input:** For getting user input via a GUI popup (cross-platform).
|
|
150
184
|
* **GitHub:** Creating and managing issues.
|
|
@@ -1337,6 +1371,10 @@ The `AgentNode` can be equipped with a variety of tools to perform a wide range
|
|
|
1337
1371
|
* `output`: A summary of the final result or the reason for stopping.
|
|
1338
1372
|
* **user_input**: Prompts the user for input and waits for their response.
|
|
1339
1373
|
* `prompt`: The message to display to the user.
|
|
1374
|
+
* **interactive_input**: Prompts the user for input via a GUI popup (cross-platform).
|
|
1375
|
+
* `prompt`: The message to display in the input dialog.
|
|
1376
|
+
* `title`: Optional. The title of the input dialog. Defaults to 'QFlow Input'.
|
|
1377
|
+
* `defaultValue`: Optional. The default value to pre-fill in the input field.
|
|
1340
1378
|
|
|
1341
1379
|
### File System
|
|
1342
1380
|
|
|
@@ -1367,6 +1405,12 @@ The `AgentNode` can be equipped with a variety of tools to perform a wide range
|
|
|
1367
1405
|
* `auth`: Authentication configuration.
|
|
1368
1406
|
* **web_scraper**: Fetches the HTML content of a given URL.
|
|
1369
1407
|
* `url`: The URL to scrape.
|
|
1408
|
+
* **browser_control**: Controls a web browser to navigate pages, interact with elements, and take screenshots.
|
|
1409
|
+
* `action`: The browser action to perform.
|
|
1410
|
+
* `url`: The URL to navigate to (for 'goto' action).
|
|
1411
|
+
* `selector`: A CSS selector to target an element (for 'click' and 'type' actions).
|
|
1412
|
+
* `text`: The text to type into an input field (for 'type' action).
|
|
1413
|
+
* `path`: The file path to save a screenshot (for 'screenshot' action).
|
|
1370
1414
|
|
|
1371
1415
|
### Data & Code
|
|
1372
1416
|
|
|
@@ -1385,52 +1429,148 @@ The `AgentNode` can be equipped with a variety of tools to perform a wide range
|
|
|
1385
1429
|
* **transform_node**: Transforms input data using a provided JavaScript function.
|
|
1386
1430
|
* `input`: The data to be transformed.
|
|
1387
1431
|
* `transformFunction`: A JavaScript function string that takes 'data' as an argument and returns the transformed result.
|
|
1432
|
+
* **pdf_processor**: Extracts text or images from PDF documents.
|
|
1433
|
+
* `filePath`: The absolute path to the PDF file.
|
|
1434
|
+
* `action`: The action to perform: 'extract_text' or 'extract_images'.
|
|
1435
|
+
* `outputDir`: Optional. Directory to save extracted files. If not provided, a temporary directory will be used.
|
|
1436
|
+
* `pageRange`: Optional. Page range to process (e.g., {start: 1, end: 5}).
|
|
1437
|
+
* `password`: Optional. Password for encrypted PDFs.
|
|
1438
|
+
* **spreadsheet**: Reads from and writes to spreadsheet files (.xlsx, .xls, .csv) with advanced manipulation.
|
|
1439
|
+
* `action`: The action to perform.
|
|
1440
|
+
* `filePath`: The absolute path to the spreadsheet file.
|
|
1441
|
+
* `sheetName`: Required for .xlsx/.xls files and sheet-specific actions. The name of the sheet.
|
|
1442
|
+
* `data`: Required for 'write', 'write_range', 'append_rows'. The data to write (array of arrays or array of objects).
|
|
1443
|
+
* `headerRow`: Optional. True if the first row is a header. Defaults to true.
|
|
1444
|
+
* `range`: Required for 'read_range', 'write_range', 'format_cells'. A1 notation (e.g., 'Sheet1!A1:C10').
|
|
1445
|
+
* `startRow`: Required for 'delete_rows', 'insert_rows'. The 1-indexed starting row.
|
|
1446
|
+
* `numRows`: Required for 'delete_rows', 'insert_rows'. The number of rows to delete/insert.
|
|
1447
|
+
* `newSheetName`: Required for 'add_sheet', 'rename_sheet'. The name of the new sheet.
|
|
1448
|
+
* `formats`: Required for 'format_cells'. Formatting options (conceptual, basic XLSX.js has limited styling).
|
|
1449
|
+
* **data_validation**: Validates structured data against a JSON Schema.
|
|
1450
|
+
* `data`: The data to be validated.
|
|
1451
|
+
* `schema`: The JSON Schema object directly.
|
|
1452
|
+
* `schemaPath`: Optional. Path to a JSON Schema file. If provided, 'schema' parameter is ignored.
|
|
1453
|
+
* `action`: The action to perform. Currently only 'validate' is supported.
|
|
1388
1454
|
|
|
1389
1455
|
### Memory & Embeddings
|
|
1390
1456
|
|
|
1391
|
-
* **memory_node**: Stores and retrieves text
|
|
1457
|
+
* **memory_node**: Stores and retrieves text memories (keyword-based).
|
|
1392
1458
|
* `action`: The action to perform: 'store' or 'retrieve'.
|
|
1393
|
-
* `content`: The text content of the memory to store.
|
|
1394
|
-
* `query`: Keywords to search for within stored memories.
|
|
1395
|
-
* `id`: A unique identifier for the memory.
|
|
1396
|
-
* `memoryPath`: The directory path where memories are stored.
|
|
1397
|
-
* **semantic_memory_node**: Stores and retrieves text
|
|
1459
|
+
* `content`: Required for 'store' action. The text content of the memory to store.
|
|
1460
|
+
* `query`: Required for 'retrieve' action. Keywords to search for within stored memories.
|
|
1461
|
+
* `id`: Optional for 'store' action. A unique identifier for the memory. If not provided, one will be generated.
|
|
1462
|
+
* `memoryPath`: Optional. The directory path where memories are stored. Defaults to './agent_memories'.
|
|
1463
|
+
* **semantic_memory_node**: Stores and retrieves text memories via semantic search (requires Ollama).
|
|
1398
1464
|
* `action`: The action to perform: 'store' or 'retrieve'.
|
|
1399
|
-
* `content`: The text content of the memory to store.
|
|
1400
|
-
* `query`: The text query for semantic search.
|
|
1401
|
-
* `id`: A unique identifier for the memory.
|
|
1402
|
-
* `metadata`: Key-value pairs to store alongside the memory.
|
|
1403
|
-
* `memoryPath`: The directory path where memories and the index are stored.
|
|
1404
|
-
* `embeddingModel`: The Ollama embedding model name to use.
|
|
1405
|
-
* `embeddingBaseUrl`: The base URL of the Ollama API for embeddings.
|
|
1406
|
-
* `topK`: The number of top similar results to retrieve.
|
|
1407
|
-
* **generate_embedding**: Generates
|
|
1465
|
+
* `content`: Required for 'store' action. The text content of the memory to store.
|
|
1466
|
+
* `query`: Required for 'retrieve' action. The text query for semantic search.
|
|
1467
|
+
* `id`: Optional for 'store' action. A unique identifier for the memory. If not provided, one will be generated.
|
|
1468
|
+
* `metadata`: Optional for 'store' action. Key-value pairs to store alongside the memory.
|
|
1469
|
+
* `memoryPath`: Optional. The directory path where memories and the index are stored. Defaults to './semantic_memories'.
|
|
1470
|
+
* `embeddingModel`: Optional. The Ollama embedding model name to use (e.g., 'nomic-embed-text'). Defaults to 'nomic-embed-text'.
|
|
1471
|
+
* `embeddingBaseUrl`: Optional. The base URL of the Ollama API for embeddings. Defaults to 'http://localhost:11434'.
|
|
1472
|
+
* `topK`: Optional for 'retrieve' action. The number of top similar results to retrieve. Defaults to 5.
|
|
1473
|
+
* **generate_embedding**: Generates vector embeddings for text (requires Ollama).
|
|
1408
1474
|
* `text`: The text string to generate an embedding for.
|
|
1409
|
-
* `model`: The Ollama embedding model name to use.
|
|
1410
|
-
* `baseUrl`: The base URL of the Ollama API.
|
|
1475
|
+
* `model`: Optional. The Ollama embedding model name to use (e.g., 'nomic-embed-text'). Defaults to 'nomic-embed-text'.
|
|
1476
|
+
* `baseUrl`: Optional. The base URL of the Ollama API (e.g., 'http://localhost:11434'). Defaults to 'http://localhost:11434'.
|
|
1411
1477
|
|
|
1412
1478
|
### Flow Control
|
|
1413
1479
|
|
|
1414
1480
|
* **sub_flow**: Executes a sub-flow.
|
|
1415
|
-
* `flow`: The flow to execute.
|
|
1481
|
+
* `flow`: The name of the flow to execute, as registered in the flow registry.
|
|
1416
1482
|
* `shared`: The shared object to pass to the sub-flow.
|
|
1417
|
-
* **iterator**: Iterates
|
|
1483
|
+
* **iterator**: Iterates items, executes sub-flow for each.
|
|
1418
1484
|
* `items`: The list of items to iterate over.
|
|
1419
|
-
* `flow`: The flow to execute for each item.
|
|
1485
|
+
* `flow`: The name of the flow to execute for each item, as registered in the flow registry.
|
|
1486
|
+
* **scheduler**: Schedules qflow flows for future or recurring execution using cron syntax or a delay.
|
|
1487
|
+
* `action`: The action to perform: 'start' a new schedule or 'stop' an existing one.
|
|
1488
|
+
* `schedule`: Required for 'start'. A cron string (e.g., '0 3 * * *') or a number in milliseconds for a one-time delay.
|
|
1489
|
+
* `flow`: Required for 'start'. The name of the qflow AsyncFlow instance to trigger.
|
|
1490
|
+
* `flowParams`: Optional. Parameters (shared object) to pass to the triggered flow's runAsync.
|
|
1491
|
+
* `id`: Optional. A unique ID for the scheduled task (required for 'stop' action). If not provided for 'start', a random one will be generated.
|
|
1420
1492
|
|
|
1421
1493
|
### LLM Reasoning
|
|
1422
1494
|
|
|
1423
|
-
* **huggingface_llm_reasoning**:
|
|
1495
|
+
* **huggingface_llm_reasoning**: Generates human-like text, reasons, and plans. Not for external actions.
|
|
1424
1496
|
* `prompt`: The prompt or question to send to the language model.
|
|
1425
|
-
* `model`: The Hugging Face model ID.
|
|
1497
|
+
* `model`: The Hugging Face model ID (e.g., 'HuggingFaceH4/zephyr-7b-beta', 'openai/gpt-oss-20b:novita').
|
|
1426
1498
|
* `hfToken`: Your Hugging Face API token.
|
|
1427
|
-
* `temperature`: Controls randomness.
|
|
1428
|
-
* `max_new_tokens`: Maximum number of tokens to generate.
|
|
1429
|
-
* `baseUrl`: The base URL of the Hugging Face router API.
|
|
1430
|
-
* **llm_reasoning**:
|
|
1499
|
+
* `temperature`: Optional. Controls randomness. Defaults to 0.7.
|
|
1500
|
+
* `max_new_tokens`: Optional. Maximum number of tokens to generate. Defaults to 500.
|
|
1501
|
+
* `baseUrl`: Optional. The base URL of the Hugging Face router API. Defaults to 'https://router.huggingface.co/v1'.
|
|
1502
|
+
* **llm_reasoning**: Generates human-like text, reasons, and plans. Not for external actions.
|
|
1503
|
+
* `prompt`: The prompt or question to send to the language model.
|
|
1504
|
+
* **openrouter_llm_reasoning**: Generates human-like text, reasons, and plans via OpenRouter. Not for external actions.
|
|
1431
1505
|
* `prompt`: The prompt or question to send to the language model.
|
|
1432
|
-
*
|
|
1506
|
+
* `model`: The OpenRouter model ID (e.g., 'openai/gpt-4o', 'mistralai/mistral-7b-instruct').
|
|
1507
|
+
* `apiKey`: Your OpenRouter API key.
|
|
1508
|
+
* `siteUrl`: Optional. Site URL for rankings on openrouter.ai.
|
|
1509
|
+
* `siteTitle`: Optional. Site title for rankings on openrouter.ai.
|
|
1510
|
+
* **ollama_llm_reasoning**: Generates human-like text, reasons, and plans locally via Ollama. Not for external actions.
|
|
1433
1511
|
* `prompt`: The prompt or question to send to the local Ollama language model.
|
|
1434
|
-
* `model`: The Ollama model name to use.
|
|
1435
|
-
* `baseUrl`: The base URL of the Ollama API.
|
|
1512
|
+
* `model`: The Ollama model name to use (e.g., 'llama2', 'gemma:2b'). Defaults to 'llama2'.
|
|
1513
|
+
* `baseUrl`: The base URL of the Ollama API (e.g., 'http://localhost:11434'). Defaults to 'http://localhost:11434'.
|
|
1514
|
+
|
|
1515
|
+
### System & Hardware
|
|
1516
|
+
|
|
1517
|
+
* **shell_command**: Executes shell commands.
|
|
1518
|
+
* `command`: The full shell command to execute (e.g., 'ls -l', 'npm install cheerio').
|
|
1519
|
+
* **system_notification**: Displays a system-level notification across OSs.
|
|
1520
|
+
* `message`: The main message content of the notification.
|
|
1521
|
+
* `title`: Optional. The title of the notification. Defaults to 'QFlow Notification'.
|
|
1522
|
+
* `icon`: Optional. Path to an icon file or a system icon name (Linux specific). Ignored on macOS/Windows.
|
|
1523
|
+
* **display_image**: Displays an image file using the system's default image viewer.
|
|
1524
|
+
* `imagePath`: The absolute path to the image file to display.
|
|
1525
|
+
* **hardware_interaction**: Communicates with local hardware via serial port (UART).
|
|
1526
|
+
* `action`: The action to perform: 'write', 'read_line', 'list_ports'.
|
|
1527
|
+
* `portPath`: Required for 'write'/'read_line'. The path to the serial port (e.g., '/dev/ttyUSB0', 'COM1').
|
|
1528
|
+
* `baudRate`: Optional. The baud rate for serial communication. Defaults to 9600.
|
|
1529
|
+
* `dataToWrite`: Required for 'write'. The data string to send to the serial port.
|
|
1530
|
+
* `timeout`: Optional. Timeout in milliseconds for 'read_line' action. Defaults to 5000.
|
|
1531
|
+
* **image_gallery**: Generates an HTML gallery from multiple image files and opens it in a web browser.
|
|
1532
|
+
* `imagePaths`: An array of absolute paths to the image files to display in the gallery.
|
|
1533
|
+
* `title`: Optional. The title of the HTML gallery page. Defaults to 'Image Gallery'.
|
|
1534
|
+
* `description`: Optional. A short description to display on the gallery page. Defaults to 'Generated by QFlow Agent'.
|
|
1535
|
+
* `outputDir`: Optional. Directory to save the generated HTML file and copied images. Defaults to a temporary directory.
|
|
1536
|
+
* **speech_synthesis**: Converts text to spoken audio using OS capabilities or cloud APIs.
|
|
1537
|
+
* `text`: The text to convert to speech.
|
|
1538
|
+
* `provider`: Optional. The speech synthesis provider to use. Defaults to OS-specific. 'google' requires GOOGLE_TTS_API_KEY.
|
|
1539
|
+
* `voice`: Optional. The specific voice to use (e.g., 'Alex' for macOS, 'en-us' for espeak, 'en-US-Wavenet-D' for Google).
|
|
1540
|
+
* `outputFilePath`: Optional. If provided, saves the audio to this file path instead of playing it directly.
|
|
1541
|
+
* **multimedia_processing**: Performs various multimedia operations on audio and video files using ffmpeg.
|
|
1542
|
+
* `action`: The multimedia operation to perform.
|
|
1543
|
+
* `inputPath`: Path to the input multimedia file.
|
|
1544
|
+
* `outputPath`: Path for the output file.
|
|
1545
|
+
* `format`: Required for 'convert' and 'extract_audio'. The output format (e.g., 'mp4', 'mp3', 'gif', 'wav').
|
|
1546
|
+
* `startTime`: Required for 'trim'. Start time in HH:MM:SS or seconds (e.g., '00:00:10', '10').
|
|
1547
|
+
* `duration`: Required for 'trim'. Duration in HH:MM:SS or seconds (e.g., '00:00:05', '5').
|
|
1548
|
+
* `resolution`: Optional for video 'convert'. Resolution (e.g., '1280x720').
|
|
1549
|
+
* `frameTime`: Required for 'extract_frame'. Time to extract frame from in HH:MM:SS or seconds (e.g., '00:00:05').
|
|
1550
|
+
* `ffmpegArgs`: Required for 'custom'. Raw ffmpeg arguments to execute directly.
|
|
1551
|
+
* **remote_execution**: Executes commands on remote machines via SSH.
|
|
1552
|
+
* `host`: The hostname or IP address of the remote machine.
|
|
1553
|
+
* `port`: Optional. The SSH port. Defaults to 22.
|
|
1554
|
+
* `username`: The username for SSH authentication.
|
|
1555
|
+
* `password`: Optional. The password for SSH authentication (use with caution, prefer privateKey).
|
|
1556
|
+
* `privateKey`: Optional. The content of the private SSH key or its absolute path.
|
|
1557
|
+
* `passphrase`: Optional. The passphrase for an encrypted private key.
|
|
1558
|
+
* `action`: The action to perform. Currently only 'execute_command' is supported.
|
|
1559
|
+
* `command`: The command string to execute on the remote machine.
|
|
1560
|
+
* `timeout`: Optional. Timeout in milliseconds for the command execution. Defaults to 30000 (30 seconds).
|
|
1561
|
+
* **webhook**: Exposes an HTTP endpoint to receive webhooks, triggering a specified qflow flow.
|
|
1562
|
+
* `port`: Optional. The port number to listen on. Defaults to 3000.
|
|
1563
|
+
* `path`: Optional. The URL path for the webhook endpoint. Defaults to '/webhook'.
|
|
1564
|
+
* `flow`: The name of the qflow AsyncFlow instance to trigger when a webhook is received.
|
|
1565
|
+
* `sharedSecret`: Optional. A shared secret for HMAC verification of incoming webhooks.
|
|
1566
|
+
* `responseStatus`: Optional. The HTTP status code to send back to the webhook sender. Defaults to 200.
|
|
1567
|
+
* `responseBody`: Optional. The JSON body to send back to the webhook sender. Defaults to { status: 'received' }.
|
|
1568
|
+
* **git**: Performs Git operations like clone, add, commit, and push.
|
|
1569
|
+
* `action`: The Git action to perform.
|
|
1570
|
+
* `repoPath`: The local path to the repository.
|
|
1571
|
+
* `remoteUrl`: The URL of the remote repository (for 'clone' action).
|
|
1572
|
+
* `files`: An array of file paths to add to the staging area (for 'add' action).
|
|
1573
|
+
* `message`: The commit message (for 'commit' action).
|
|
1574
|
+
* `branch`: The branch to push to or pull from.
|
|
1575
|
+
* `remote`: The name of the remote (e.g., 'origin').
|
|
1436
1576
|
|