@withone/cli 1.20.3 → 1.22.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.
- package/README.md +14 -3
- package/dist/{chunk-DPOG6BQ5.js → chunk-KZOFPEHD.js} +806 -19
- package/dist/flow-runner-CXZ6AWXT.js +28 -0
- package/dist/index.js +448 -798
- package/package.json +1 -1
- package/skills/one/references/flows.md +87 -2
- package/dist/flow-runner-UWZL2FPJ.js +0 -14
package/README.md
CHANGED
|
@@ -98,7 +98,7 @@ one flow validate welcome-customer
|
|
|
98
98
|
one flow execute welcome-customer -i email=jane@example.com
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
Workflows
|
|
101
|
+
Workflows live under `.one/flows/<key>/flow.json` with an optional `lib/` subfolder for `.mjs` code modules — create new flows in this folder layout. (The legacy single-file layout `.one/flows/<key>.flow.json` is deprecated but still loads for backward compatibility.) Flows support conditions, loops, while loops, parallel steps, transforms, sub-flows, pagination, bash steps, and external `.mjs` code modules. Run `one guide flows` for the full reference.
|
|
102
102
|
|
|
103
103
|
## How it works
|
|
104
104
|
|
|
@@ -284,7 +284,7 @@ In agent mode (`--agent`), the JSON response includes the guide content and an `
|
|
|
284
284
|
|
|
285
285
|
### `one flow create [key]`
|
|
286
286
|
|
|
287
|
-
Create a workflow from a JSON definition.
|
|
287
|
+
Create a workflow from a JSON definition. New workflows are always saved to the folder layout at `.one/flows/<key>/flow.json` (with a `lib/` subfolder scaffolded for code modules). The legacy `.one/flows/<key>.flow.json` single-file layout is deprecated; existing legacy files continue to load and run unchanged for backward compatibility.
|
|
288
288
|
|
|
289
289
|
```bash
|
|
290
290
|
# From a --definition flag
|
|
@@ -300,7 +300,7 @@ one flow create my-flow --definition '...' -o ./custom/path.json
|
|
|
300
300
|
| Option | What it does |
|
|
301
301
|
|--------|-------------|
|
|
302
302
|
| `--definition <json>` | Workflow definition as a JSON string |
|
|
303
|
-
| `-o, --output <path>` | Custom output path (default: `.one/flows/<key
|
|
303
|
+
| `-o, --output <path>` | Custom output path (default: `.one/flows/<key>/flow.json`) |
|
|
304
304
|
|
|
305
305
|
### `one flow execute <key>`
|
|
306
306
|
|
|
@@ -380,6 +380,17 @@ one config
|
|
|
380
380
|
|
|
381
381
|
Settings propagate automatically to all installed agent configs.
|
|
382
382
|
|
|
383
|
+
#### `one config skills status` / `one config skills sync`
|
|
384
|
+
|
|
385
|
+
`one init` copies the packaged skill files (`SKILL.md`, `references/`) into `~/.agents/skills/one/` and symlinks per-agent paths to that canonical directory. When the CLI self-updates, the skill files in the canonical dir would normally stay frozen at the version that was installed. To prevent stale docs, every CLI command checks a `.one-cli-version` marker in the canonical dir and silently refreshes the skill files if they don't match the running CLI version. No user action required.
|
|
386
|
+
|
|
387
|
+
| Command | What it does |
|
|
388
|
+
|---------|--------------|
|
|
389
|
+
| `one config skills status` | Show installed skill version, current CLI version, and path |
|
|
390
|
+
| `one config skills sync` | Force a re-copy of packaged skill files (for troubleshooting) |
|
|
391
|
+
|
|
392
|
+
Auto-sync refuses to resurrect skills if you opted out of skill installation during `one init` — the canonical dir has to already exist.
|
|
393
|
+
|
|
383
394
|
## The workflow
|
|
384
395
|
|
|
385
396
|
The power of One is in the workflow. Every interaction follows the same pattern:
|