@withone/cli 1.44.2 → 1.45.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 +5 -3
- package/dist/chunk-77564KWS.js +211 -0
- package/dist/{chunk-MNNKOQ6V.js → chunk-KH4ERRJ5.js} +4 -2
- package/dist/{chunk-YBEVCY4D.js → chunk-TGWQUBKA.js} +4 -2
- package/dist/{chunk-7ZILTQQO.js → chunk-TLRJMJGU.js} +2 -2
- package/dist/{chunk-ZD5S4IWT.js → chunk-TVIZC7AC.js} +2 -203
- package/dist/{chunk-YGOS6KEC.js → chunk-UXKF6AEG.js} +254 -85
- package/dist/{chunk-VQPV5XET.js → chunk-Z4HKASJT.js} +2 -2
- package/dist/{embedding-GZGDGIUA.js → embedding-C3E4EAQ7.js} +2 -1
- package/dist/{flow-runner-EXZ77YLF.js → flow-runner-FQVTF36N.js} +2 -1
- package/dist/index.js +261 -372
- package/dist/{migrate-J2ZRDEFB.js → migrate-VV3VOXWJ.js} +5 -4
- package/dist/{runtime-RVXAPQAZ.js → runtime-3NDWRLXL.js} +3 -2
- package/dist/sql-ZABEXIXW.js +12 -0
- package/package.json +2 -2
- package/skills/one/SKILL.md +6 -5
- package/dist/sql-V44IVBHX.js +0 -11
|
@@ -3,11 +3,12 @@ import {
|
|
|
3
3
|
dotPathToJsonbExpr,
|
|
4
4
|
memMigrateCommand,
|
|
5
5
|
reviveStringifiedJson
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z4HKASJT.js";
|
|
7
7
|
import "./chunk-44CV5IMX.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-TGWQUBKA.js";
|
|
8
|
+
import "./chunk-77564KWS.js";
|
|
9
|
+
import "./chunk-TVIZC7AC.js";
|
|
9
10
|
export {
|
|
10
11
|
addRecord,
|
|
11
12
|
closeBackendIfCached,
|
package/package.json
CHANGED
package/skills/one/SKILL.md
CHANGED
|
@@ -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` — Fetch action details fresh instead of from the local 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: `
|
|
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
|
-
-
|
|
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
|
|
package/dist/sql-V44IVBHX.js
DELETED