@withone/cli
Advanced tools
Sorry, the diff of this file is too big to display
| import { | ||
| FlowRunner, | ||
| collectStepTypes, | ||
| flowRequiresBash, | ||
| flowUsesCodeModules, | ||
| getFlowRootDir, | ||
| listFlows, | ||
| loadFlow, | ||
| loadFlowWithMeta, | ||
| resolveFlowPath, | ||
| saveFlow, | ||
| summarizeFlowInputs, | ||
| walkSteps | ||
| } from "./chunk-ZOIXA7MV.js"; | ||
| export { | ||
| FlowRunner, | ||
| collectStepTypes, | ||
| flowRequiresBash, | ||
| flowUsesCodeModules, | ||
| getFlowRootDir, | ||
| listFlows, | ||
| loadFlow, | ||
| loadFlowWithMeta, | ||
| resolveFlowPath, | ||
| saveFlow, | ||
| summarizeFlowInputs, | ||
| walkSteps | ||
| }; |
+1
-1
| { | ||
| "name": "@withone/cli", | ||
| "version": "1.25.0", | ||
| "version": "1.26.0", | ||
| "description": "CLI for managing One", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -189,5 +189,25 @@ # One Workflows — Multi-Step API Workflows | ||
| | `connection` | `{ "platform": "gmail" }` — enables auto-resolution | | ||
| | `enum` | Array of allowed values; rejected if input doesn't match (post-coercion) | | ||
| Connection inputs with a `connection` field auto-resolve if the user has exactly one connection for that platform. | ||
| **Validation, coercion, and enums.** At flow start the engine validates every declared input: | ||
| 1. **Required check** — `required: true` (the default) inputs without a value or `default` cause `Missing required input: "X"`. | ||
| 2. **Type coercion** — narrow, bidirectional fixes only: | ||
| - `number`: numeric strings (`"5"`) become `5`. Non-numeric strings throw. | ||
| - `boolean`: `"true"`/`"1"`/`1` → `true`; `"false"`/`"0"`/`0` → `false`. Anything else throws. | ||
| - `array` / `object`: JSON strings are parsed. Non-JSON throws. | ||
| - `string`: anything else is `String(value)`-coerced. | ||
| 3. **Enum check** — if `enum` is set, the (coerced) value must be `===` one of the allowed entries. Errors quote both the allowed list and the actual value. | ||
| This eliminates the per-flow `if (!$.input.x) throw ...` boilerplate. Errors look like: | ||
| ``` | ||
| Input "tier" must be a number, got string ("lots") | ||
| Input "stage" must be one of ["pre_seed","seed","series_a"], got "ipo" | ||
| ``` | ||
| The same checks run when a step calls a sub-flow, so type/enum guarantees hold across the call boundary. | ||
| ## Selector Syntax | ||
@@ -194,0 +214,0 @@ |
Sorry, the diff of this file is too big to display
| import { | ||
| FlowRunner, | ||
| collectStepTypes, | ||
| flowRequiresBash, | ||
| flowUsesCodeModules, | ||
| getFlowRootDir, | ||
| listFlows, | ||
| loadFlow, | ||
| loadFlowWithMeta, | ||
| resolveFlowPath, | ||
| saveFlow, | ||
| summarizeFlowInputs, | ||
| walkSteps | ||
| } from "./chunk-ONGJ2QKB.js"; | ||
| export { | ||
| FlowRunner, | ||
| collectStepTypes, | ||
| flowRequiresBash, | ||
| flowUsesCodeModules, | ||
| getFlowRootDir, | ||
| listFlows, | ||
| loadFlow, | ||
| loadFlowWithMeta, | ||
| resolveFlowPath, | ||
| saveFlow, | ||
| summarizeFlowInputs, | ||
| walkSteps | ||
| }; |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
315686
1.15%6835
0.93%