Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@withone/cli

Package Overview
Dependencies
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@withone/cli - npm Package Compare versions

Comparing version
1.25.0
to
1.26.0
dist/chunk-ZOIXA7MV.js

Sorry, the diff of this file is too big to display

+28
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