@withone/cli 1.44.2 → 1.45.1

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.
@@ -3,11 +3,12 @@ import {
3
3
  dotPathToJsonbExpr,
4
4
  memMigrateCommand,
5
5
  reviveStringifiedJson
6
- } from "./chunk-VQPV5XET.js";
6
+ } from "./chunk-Z4HKASJT.js";
7
7
  import "./chunk-44CV5IMX.js";
8
- import "./chunk-MNNKOQ6V.js";
9
- import "./chunk-YBEVCY4D.js";
10
- import "./chunk-ZD5S4IWT.js";
8
+ import "./chunk-KH4ERRJ5.js";
9
+ import "./chunk-TGWQUBKA.js";
10
+ import "./chunk-77564KWS.js";
11
+ import "./chunk-TVIZC7AC.js";
11
12
  export {
12
13
  buildIdentityMap,
13
14
  dotPathToJsonbExpr,
@@ -4,8 +4,9 @@ import {
4
4
  getBackend,
5
5
  resetBackendSingleton,
6
6
  upsertRecord
7
- } from "./chunk-YBEVCY4D.js";
8
- import "./chunk-ZD5S4IWT.js";
7
+ } from "./chunk-TGWQUBKA.js";
8
+ import "./chunk-77564KWS.js";
9
+ import "./chunk-TVIZC7AC.js";
9
10
  export {
10
11
  addRecord,
11
12
  closeBackendIfCached,
@@ -0,0 +1,12 @@
1
+ import {
2
+ memSqlCommand,
3
+ syncSqlCommand
4
+ } from "./chunk-TLRJMJGU.js";
5
+ import "./chunk-KH4ERRJ5.js";
6
+ import "./chunk-TGWQUBKA.js";
7
+ import "./chunk-77564KWS.js";
8
+ import "./chunk-TVIZC7AC.js";
9
+ export {
10
+ memSqlCommand,
11
+ syncSqlCommand
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withone/cli",
3
- "version": "1.44.2",
3
+ "version": "1.45.1",
4
4
  "description": "CLI for managing One",
5
5
  "type": "module",
6
6
  "files": [
@@ -53,4 +53,4 @@
53
53
  "engines": {
54
54
  "node": ">=18"
55
55
  }
56
- }
56
+ }
@@ -90,6 +90,7 @@ Options:
90
90
  - `--mock` — Return example response without making an API call (useful for building UI)
91
91
  - `--skip-validation` — Skip input validation against the action schema
92
92
  - `--output <path>` — Save response to a file (for binary downloads like PDFs, images, documents)
93
+ - `--no-cache` — Bypass the cached action details and re-fetch them; the fresh details still refresh the cache (execution itself is never cached)
93
94
 
94
95
  The CLI validates required parameters before executing. Missing params return a structured error with the flag name, parameter name, and description. Pass `--skip-validation` to bypass.
95
96
 
@@ -123,7 +124,7 @@ one --agent actions execute --parallel \
123
124
  -- slack post-message conn456 -d '{"text":"done"}'
124
125
  ```
125
126
 
126
- All segments are validated before any execution. Failed actions don't block others. Use `--max-concurrency <n>` (default 5) to control batching. Agent-mode output: `{"parallel":true,"results":[...],"succeeded":N,"failed":N,"totalDurationMs":N}`.
127
+ All segments are validated before any execution. Failed actions don't block others. Use `--max-concurrency <n>` (default 5) to control batching. Agent-mode output: `{"parallel":true,"results":[...],"succeeded":N,"failed":N,"totalDurationMs":N}`. Each result carries `"_preflight":{"cache":"hit"|"miss"}` showing whether that action's details were served from cache.
127
128
 
128
129
  ## Error Handling
129
130
 
@@ -140,15 +141,15 @@ All errors return JSON: `{"error": "message"}`. Parse output as JSON and check f
140
141
 
141
142
  ## Caching
142
143
 
143
- Knowledge and search responses are cached locally (`~/.one/cache/`). Subsequent calls for the same action serve instantly from disk.
144
+ Knowledge and search responses are cached locally (`~/.one/cache/`). Subsequent calls for the same action serve instantly from disk. `actions execute` reuses the cached action details for its preflight lookup, so after a knowledge call (or a prior execute of the same action) it makes a single API call — the action itself.
144
145
 
145
146
  - Cache is automatic — no setup required
146
147
  - Default TTL: 1 hour (configurable via `ONE_CACHE_TTL` env var)
147
- - In `--agent` mode, responses include a `_cache` field: `{"hit": true, "age": 1423, "fresh": true}`
148
- - Use `--no-cache` to force a fresh fetch: `one --agent actions knowledge <platform> <actionId> --no-cache`
148
+ - In `--agent` mode, responses include a `_cache` field: `{"hit": true, "age": 1423, "fresh": true}`; execute responses include `"_preflight": {"cache": "hit"|"miss"}`
149
+ - Use `--no-cache` to force a fresh fetch: works on `knowledge`, `search`, and `execute` (refreshes execute's action-details lookup)
149
150
  - Use `--cache-status` to check cache state without fetching
150
151
  - Manage cache: `one cache list`, `one cache clear`, `one cache update-all`
151
- - `actions execute` is NEVER cached — always fresh
152
+ - Execution responses are NEVER cached — the action always runs live; only action metadata (docs, method, path, schema) is cached
152
153
 
153
154
  ## Unified Memory
154
155
 
@@ -1,11 +0,0 @@
1
- import {
2
- memSqlCommand,
3
- syncSqlCommand
4
- } from "./chunk-7ZILTQQO.js";
5
- import "./chunk-MNNKOQ6V.js";
6
- import "./chunk-YBEVCY4D.js";
7
- import "./chunk-ZD5S4IWT.js";
8
- export {
9
- memSqlCommand,
10
- syncSqlCommand
11
- };