@withone/cli 2.12.0 → 2.14.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 +8 -2
- package/dist/{chunk-EITBMRUB.js → chunk-2OIJGF77.js} +1 -1
- package/dist/{chunk-6IRGRC3G.js → chunk-4H5L3SBY.js} +2 -2
- package/dist/{chunk-J7JWBH45.js → chunk-B5YDLVY5.js} +2 -2
- package/dist/{chunk-7ZBRP3BJ.js → chunk-IM3OA7CU.js} +305 -82
- package/dist/{chunk-WZTPSXHP.js → chunk-LEJKEGB6.js} +2 -2
- package/dist/{chunk-DGQOAFXJ.js → chunk-TSMVFVQ3.js} +2 -2
- package/dist/{chunk-EWHFGWB3.js → chunk-XUAUDMQE.js} +39 -0
- package/dist/{embedding-7Q22D23K.js → embedding-YIXO45HW.js} +2 -2
- package/dist/{flow-runner-6QTY3U2C.js → flow-runner-SRO6YL62.js} +2 -2
- package/dist/index.js +124 -42
- package/dist/{migrate-KKNH3745.js → migrate-RJ7F2LPT.js} +5 -5
- package/dist/{runtime-WB4J6RQK.js → runtime-2OVXKNJS.js} +3 -3
- package/dist/{schema-SDZZ7XZT.js → schema-FIIT33OD.js} +4 -4
- package/dist/sql-KRQUWOPT.js +13 -0
- package/package.json +1 -1
- package/skills/one/references/flows.md +14 -13
- package/dist/sql-BNSA2GZM.js +0 -13
package/README.md
CHANGED
|
@@ -610,14 +610,17 @@ Press Ctrl+C during execution to pause - the run can be resumed later with `one
|
|
|
610
610
|
| Option | What it does |
|
|
611
611
|
|--------|-------------|
|
|
612
612
|
| `-i, --input <name=value>` | Input parameter (repeatable) |
|
|
613
|
-
| `--dry-run` | Resolve each step's interpolations and show what they evaluate to, without
|
|
613
|
+
| `--dry-run` | Resolve each step's interpolations and show what they evaluate to, without running actions, code, bash or file steps. Transform and condition expressions are evaluated, in the sandbox. `$.input.*`/`$.env.*` resolve up front; `$.steps.*` refs are reported as deferred (they're produced at runtime). |
|
|
614
614
|
| `--mock` | With `--dry-run`: execute transforms/code with realistic mock API responses |
|
|
615
615
|
| `--stop-after <stepId>` | Execute steps up to and including `<stepId>`, then stop (later steps are not run). Combined with `--dry-run`, runs earlier steps for real and dry-resolves `<stepId>` against their output without executing it. Inspect what ran with `one flow inspect <runId>`. |
|
|
616
616
|
| `--skip-validation` | Skip input validation against action schemas |
|
|
617
617
|
| `--allow-bash` | Allow bash step execution (disabled by default for security) |
|
|
618
|
+
| `--allow-code` | Allow `code.module` steps, which run a `.mjs` file with full Node access (disabled by default for security) |
|
|
618
619
|
| `-v, --verbose` | Show full request/response for each step |
|
|
619
620
|
| `--output-file <path>` | Stream the full result to a file instead of stdout — for large results that would otherwise be truncated or exceed the JSON string-size limit. stdout (and `--agent` output) then carries an `outputFile` pointer instead of inline `steps`. |
|
|
620
621
|
|
|
622
|
+
Inline JavaScript in a flow (transforms, conditions, `if`/`unless`, `code.source`) runs in a sandbox: a separate Node process with no file, child-process or network access and no environment of its own. It needs no flag. `code.module` steps are full Node programs and need `--allow-code`.
|
|
623
|
+
|
|
621
624
|
Step-level `if`/`unless` conditions (and `while`/`condition` steps) are null-safe: a condition that references a skipped or not-yet-run step's output (e.g. `$.steps.maybeSkipped.output.x`) evaluates to `false` rather than crashing the run.
|
|
622
625
|
|
|
623
626
|
### `one flow list`
|
|
@@ -643,9 +646,10 @@ Resume a paused or failed workflow run from where it left off.
|
|
|
643
646
|
```bash
|
|
644
647
|
one flow resume abc123
|
|
645
648
|
one flow resume abc123 --allow-bash # required if the flow has bash steps
|
|
649
|
+
one flow resume abc123 --allow-code # required if the flow has code.module steps
|
|
646
650
|
```
|
|
647
651
|
|
|
648
|
-
`--allow-bash`
|
|
652
|
+
`--allow-bash` and `--allow-code` are gated the same way as on `flow execute` — resuming doesn't
|
|
649
653
|
inherit the permission from the original run, so pass it again. `one flow list`
|
|
650
654
|
shows which flows need it.
|
|
651
655
|
|
|
@@ -748,6 +752,8 @@ Precedence: env var > `.onerc` > `~/.one/config.json`. The access keys are the e
|
|
|
748
752
|
|
|
749
753
|
The access settings are enforced on every call to a connected app, whatever the command: `actions execute`, flows, sync and its validation runs. Headers named `x-one-secret`, `x-one-connection-key` or `x-one-action-id` cannot be passed with `--headers`, method-override headers are judged against the permission level, and a path variable cannot be `.` or `..`.
|
|
750
754
|
|
|
755
|
+
They also apply to commands that change One's own resources. Creating, updating or activating a relay needs the `write` level and deleting one needs `admin`; `connection delete` needs `admin`; knowledge-only refuses all of them. A relay's `passthrough` actions are checked like `actions execute` when they are set, because they run later on One's servers. `url` and `agent` relay actions are allowed only when the connection and action allowlists are both `*`. With a connection allowlist, relay endpoints, events and deliveries on other connections are hidden or refused.
|
|
756
|
+
|
|
751
757
|
```bash
|
|
752
758
|
# .onerc
|
|
753
759
|
ONE_SECRET=sk_live_xxx
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
getMemoryConfig,
|
|
6
6
|
getMemoryConfigOrDefault,
|
|
7
7
|
updateMemoryConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2OIJGF77.js";
|
|
9
9
|
import {
|
|
10
10
|
getOpenAiApiKey,
|
|
11
11
|
homeDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XUAUDMQE.js";
|
|
13
13
|
|
|
14
14
|
// src/lib/memory/schema.ts
|
|
15
15
|
var SCHEMA_VERSION = "2.3.1";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
} from "./chunk-Q6PWTATS.js";
|
|
6
6
|
import {
|
|
7
7
|
getMemoryConfigOrDefault
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2OIJGF77.js";
|
|
9
9
|
import {
|
|
10
10
|
getOpenAiApiKey,
|
|
11
11
|
readConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XUAUDMQE.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/mem/util.ts
|
|
15
15
|
function requireMemoryInit() {
|