@oalo-ai/cli 0.4.2 → 0.4.4
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/man/oalo.1 +171 -27
- package/package.json +1 -1
- package/plugin/skills/oalo/SKILL.md +30 -7
- package/src/bot-settings.json +62 -0
- package/src/commands/bots.js +40 -3
- package/src/commands/call.js +66 -16
- package/src/commands/deploy.js +25 -2
- package/src/commands/docs.js +3 -1
- package/src/commands/emit.js +25 -6
- package/src/commands/env.js +5 -0
- package/src/commands/graphs.js +18 -7
- package/src/commands/incidents.js +24 -1
- package/src/commands/link.js +2 -0
- package/src/commands/login.js +2 -2
- package/src/commands/mcp.js +9 -26
- package/src/commands/qa.js +3 -0
- package/src/commands/run.js +19 -0
- package/src/commands/sources.js +30 -5
- package/src/commands/switches.js +68 -13
- package/src/commands/tokens.js +35 -1
- package/src/config.js +69 -6
- package/src/coord-release.json +9 -9
- package/src/data.js +14 -5
- package/src/graphfiles.js +44 -1
- package/src/help.js +96 -28
- package/src/mcp/describe.js +112 -0
- package/src/mcp/fit.js +94 -0
- package/src/mcp/tools.js +80 -29
- package/src/workspace.js +4 -3
package/man/oalo.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH OALO 1 "" "oalo 0.4.
|
|
1
|
+
.TH OALO 1 "" "oalo 0.4.4" "OALO CLI"
|
|
2
2
|
.SH NAME
|
|
3
3
|
oalo \- wire a local app into your Oalo workspace
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -7,6 +7,21 @@ oalo \- wire a local app into your Oalo workspace
|
|
|
7
7
|
[\fIargs\fR] [\fIflags\fR]
|
|
8
8
|
.SH DESCRIPTION
|
|
9
9
|
The OALO command line: link a local app to an OALO workspace, deploy it, read and write its data, make tables searchable by bots, change bot settings, and run workflows. \fBoalo help <command>\fR prints the same detail as this page for one command; \fBoalo help \-\-json\fR prints all of it for a program or an agent to read.
|
|
10
|
+
.SH DEV AND PROD
|
|
11
|
+
.IP \(bu 2
|
|
12
|
+
Every workspace has two envs: dev (staging, a sandbox) and prod (live: what customers and live apps see). Tables and their rows, booking data, an app's variables, logs and releases are kept per env.
|
|
13
|
+
.IP \(bu 2
|
|
14
|
+
The project's default env is \fBenv\fR in .oalo/config.json, set by \fBoalo link \-\-env dev|prod\fR (default dev; \fBoalo deploy \-\-new\fR sets dev). data, db query, db tables, deploy, env, logs, run loop and typegen follow it; \-\-env on the command line wins.
|
|
15
|
+
.IP \(bu 2
|
|
16
|
+
Other commands don't read it: metrics, dashboards add, sources create and db dump default to prod; loops test always runs on dev; migrate \-\-apply writes prod; db restore needs \-\-env. MCP tools never read it: pass env in each call.
|
|
17
|
+
.IP \(bu 2
|
|
18
|
+
A draft (unpublished) bot reads and writes dev: it searches dev tables and books against dev booking data. A published bot uses prod. A test conversation (qa, run bot) uses the bot's env too, so set up a draft bot's tables and booking data in dev, and a published bot's in prod.
|
|
19
|
+
.IP \(bu 2
|
|
20
|
+
\fBoalo data promote <table>\fR copies a table's rows from dev to prod. Writing prod by hand needs \-\-env prod typed out (data push and delete, deploy, env changes).
|
|
21
|
+
.IP \(bu 2
|
|
22
|
+
Flows, loops and code tools have one copy, not one per env: a saved one is live. Loops fired by real triggers and schedules run on prod. Contacts and events have one copy too.
|
|
23
|
+
.IP \(bu 2
|
|
24
|
+
When it matters, pass \-\-env (MCP and \fBoalo call\fR: "env") every time instead of relying on a default.
|
|
10
25
|
.SH COMMANDS
|
|
11
26
|
.SS login
|
|
12
27
|
Connect this machine to a workspace by approving it in the browser.
|
|
@@ -61,6 +76,8 @@ Exit codes: 0 connected and both checks passed; 1 a token failed, or the workspa
|
|
|
61
76
|
.SS link
|
|
62
77
|
Point this project at a workspace and save credentials.
|
|
63
78
|
.PP
|
|
79
|
+
\fBEnv:\fR Sets the project's default env, \fBenv\fR in .oalo/config.json: \-\-env dev (staging, the default) or prod (live). Running link again without \-\-env sets it back to dev. Only data, db query, db tables, deploy, env, logs, run loop and typegen read it.
|
|
80
|
+
.PP
|
|
64
81
|
\fBoalo link \-\-server <url> [\-\-token <sync token>] [\-\-cli\-token <token>] [\-\-app <slug>] [\-\-env dev|prod] [\-\-no\-skill]\fR
|
|
65
82
|
.br
|
|
66
83
|
\fBoalo link \-\-status\fR
|
|
@@ -79,7 +96,7 @@ CLI token (control plane), for tail and mcp. Optional.
|
|
|
79
96
|
The app that deploy, env, logs, secrets and dockerfile use when you don't pass \-\-app (\fBoalo apps\fR lists them). \fBoalo deploy \-\-new\fR sets it.
|
|
80
97
|
.TP
|
|
81
98
|
\fB\-\-env dev|prod\fR
|
|
82
|
-
|
|
99
|
+
The project's default env for the commands that read it. Default dev.
|
|
83
100
|
.TP
|
|
84
101
|
\fB\-\-status\fR
|
|
85
102
|
Show the current link and re\-check reachability.
|
|
@@ -91,17 +108,24 @@ Every token is verified against the thing it is for BEFORE anything is saved, so
|
|
|
91
108
|
.IP \(bu 2
|
|
92
109
|
Writes .oalo/config.json (safe to commit) and ~/.oalo/credentials.json (mode 0600, never in the project). OALO_HOME relocates the credential store.
|
|
93
110
|
.IP \(bu 2
|
|
111
|
+
Commands in a subfolder use the nearest .oalo/config.json above them, up to the git repository's root (as git finds its own folder). A link outside the repository (a parent folder, or the repository holding a nested one) is never used, since it may be another workspace's; the "which workspace" error names it, and \fBoalo link\fR in the subfolder or \-\-server settles it. \fBoalo link \-\-status\fR says which file is used.
|
|
112
|
+
.IP \(bu 2
|
|
94
113
|
Also installs the Oalo skill for coding agents (.claude/skills/oalo/SKILL.md), or refreshes it, from this CLI version; an AGENTS.md section from \fBoalo skill \-\-agents\fR is refreshed too.
|
|
95
114
|
.PP
|
|
96
115
|
Exit codes: 0 linked; 1 verification failed; 2 missing or invalid arguments.
|
|
97
116
|
.SS typegen
|
|
98
117
|
Generate TypeScript bindings from the workspace's own schema: its models, and the workflows apps can call.
|
|
99
118
|
.PP
|
|
100
|
-
\fBoalo
|
|
119
|
+
\fBEnv:\fR \-\-env dev|prod, else the project's env (\fBoalo link \-\-env\fR), else dev. It is stamped in the file's header, and \-\-dart writes it into .oalo/dart\-defines.json as OALO_ENV.
|
|
120
|
+
.PP
|
|
121
|
+
\fBoalo typegen [\-\-out <file>] [\-\-check] [\-\-env dev|prod]\fR
|
|
101
122
|
.br
|
|
102
|
-
\fBoalo typegen \-\-dart [\-\-out <project dir>] [\-\-check]\fR
|
|
123
|
+
\fBoalo typegen \-\-dart [\-\-out <project dir>] [\-\-check] [\-\-env dev|prod]\fR
|
|
103
124
|
.br
|
|
104
125
|
.TP
|
|
126
|
+
\fB\-\-env dev|prod\fR
|
|
127
|
+
Which env to read. Default: the project's, else dev.
|
|
128
|
+
.TP
|
|
105
129
|
\fB\-\-out <file>\fR
|
|
106
130
|
Output path. Default oalo.generated.ts. With \-\-dart, the Flutter project's root (default the current folder).
|
|
107
131
|
.TP
|
|
@@ -155,7 +179,9 @@ Exit codes: 0 stopped cleanly; 1 could not connect; 2 no CLI token.
|
|
|
155
179
|
.SS call
|
|
156
180
|
Call any build\-surface event directly. The escape hatch.
|
|
157
181
|
.PP
|
|
158
|
-
\
|
|
182
|
+
\fBEnv:\fR Doesn't add the project's env. An event that takes one reads only "env" in the params, with its own default: booking:* and metrics:query use prod, loops:run_now dev. For a draft bot's booking setup, pass "env": "dev".
|
|
183
|
+
.PP
|
|
184
|
+
\fBoalo call <event> ['<json params>' | @file.json | \-]\fR
|
|
159
185
|
.br
|
|
160
186
|
\fBoalo call \-\-list [text] [\-\-json]\fR
|
|
161
187
|
.br
|
|
@@ -173,23 +199,35 @@ The build surface has ~500 events. First\-class commands cover the common ones;
|
|
|
173
199
|
.IP \(bu 2
|
|
174
200
|
Params are a JSON object. Org and user identity come from your token, never the params, so a call cannot exceed what you can do.
|
|
175
201
|
.IP \(bu 2
|
|
202
|
+
Params can be inline JSON, @file.json to read that file, or \- to read stdin. With no params and input piped in, stdin is read.
|
|
203
|
+
.IP \(bu 2
|
|
176
204
|
\-\-list comes from the server's own handlers and is filtered to what you may call, so it never goes stale. On an older workspace it falls back to a list of namespaces.
|
|
177
205
|
.IP \(bu 2
|
|
178
206
|
An unknown event returns a clean error naming what you sent. An event that exists but gets the wrong params says which params it takes.
|
|
179
207
|
.IP \(bu 2
|
|
180
208
|
Example: oalo call loops:run_now '{"name":"Nurture"}'
|
|
181
209
|
.IP \(bu 2
|
|
210
|
+
From a file: oalo call loops:get @params.json. From stdin: jq \-n '{name: "Nurture"}' | oalo call loops:get
|
|
211
|
+
.IP \(bu 2
|
|
182
212
|
Needs a CLI token.
|
|
183
213
|
.PP
|
|
184
214
|
Exit codes: 0 the call succeeded; 1 the call failed or was rejected; 2 bad arguments or no token.
|
|
185
215
|
.SS run
|
|
186
216
|
Fire a loop, or send a bot a test message, and watch what happens.
|
|
187
217
|
.PP
|
|
188
|
-
\
|
|
218
|
+
\fBEnv:\fR loop: \-\-env dev|prod, else the project's env, else dev (a loop fired by its real trigger or schedule runs on prod). bot: no \-\-env; the bot uses its own env, dev while it's a draft, prod once published.
|
|
219
|
+
.PP
|
|
220
|
+
\fBoalo run loop <name> [\-\-env dev|prod] [\-\-payload '{"email": "..."}' | \-\-input '{...}'] [\-\-watch]\fR
|
|
189
221
|
.br
|
|
190
222
|
\fBoalo run bot <id> "<message>"\fR
|
|
191
223
|
.br
|
|
192
224
|
.TP
|
|
225
|
+
\fB\-\-payload <json>\fR
|
|
226
|
+
loop: the run starts as if its event came with this payload, read as {{trigger.payload.<field>}}.
|
|
227
|
+
.TP
|
|
228
|
+
\fB\-\-input <json>\fR
|
|
229
|
+
loop: the trigger's whole output, as is (for a loop that reads {{trigger.<field>}} directly).
|
|
230
|
+
.TP
|
|
193
231
|
\fB\-\-watch\fR
|
|
194
232
|
Stream events after firing. Default on for bots.
|
|
195
233
|
.TP
|
|
@@ -197,11 +235,13 @@ Stream events after firing. Default on for bots.
|
|
|
197
235
|
How long to watch. Default 30.
|
|
198
236
|
.TP
|
|
199
237
|
\fB\-\-env dev|prod\fR
|
|
200
|
-
|
|
238
|
+
loop: which env's data it runs on. Default: the project's, else dev.
|
|
201
239
|
.TP
|
|
202
240
|
\fB\-\-app <slug>\fR
|
|
203
241
|
Only for a loop pinned to one app: that app's slug (\fBoalo apps\fR) or id. Loops are org\-wide by default.
|
|
204
242
|
.IP \(bu 2
|
|
243
|
+
A loop that's off doesn't run for real: \fBoalo loops test <name>\fR tries it while it's off, with sends and record changes simulated.
|
|
244
|
+
.IP \(bu 2
|
|
205
245
|
IMPORTANT: \fBrun loop\fR fires the loop DIRECTLY and does NOT exercise its trigger binding. Triggers come from the event bus (a real form submission, a real inbound message). So this proves the loop body works; to test that its trigger is wired, use \fBoalo emit\fR.
|
|
206
246
|
.IP \(bu 2
|
|
207
247
|
bot ids accept an integer, a numeric string, or a public bot_ id.
|
|
@@ -212,6 +252,8 @@ Exit codes: 0 ran, or watch window elapsed; 1 the run failed to start; 2 bad arg
|
|
|
212
252
|
.SS emit
|
|
213
253
|
Fire a domain event (form.submitted, order.created, ...) to test a loop's trigger.
|
|
214
254
|
.PP
|
|
255
|
+
\fBEnv:\fR No \-\-env. The loops it fires run on prod (live data), as they do for a real event. To try a loop on dev data, use \fBoalo loops test\fR.
|
|
256
|
+
.PP
|
|
215
257
|
\fBoalo emit <event type> [\-\-payload '<json>'] [\-\-contact <id>] [\-\-dry\-run] [\-\-json]\fR
|
|
216
258
|
.br
|
|
217
259
|
\fBoalo emit \-\-list [\-\-json]\fR
|
|
@@ -224,7 +266,7 @@ The event's payload, a JSON object. \fBoalo emit \-\-list\fR shows each event's
|
|
|
224
266
|
An existing contact the event is about. Never creates one.
|
|
225
267
|
.TP
|
|
226
268
|
\fB\-\-dry\-run\fR
|
|
227
|
-
|
|
269
|
+
Emit nothing. Lists the loops it would fire, the ones that would match but are off (the loop or its trigger), and the ones listening for the type whose filter doesn't match this payload, with the filter. So it checks a filter on a loop that is kept off, too. A bot_id in a filter matches the bot's public id (bot_...) or its number.
|
|
228
270
|
.TP
|
|
229
271
|
\fB\-\-list\fR
|
|
230
272
|
Every event a trigger can listen for, with its payload fields and the loops listening now.
|
|
@@ -244,6 +286,8 @@ Exit codes: 0 emitted (or dry run done); 1 refused or failed; 2 bad arguments or
|
|
|
244
286
|
.SS data
|
|
245
287
|
Models and rows in this workspace: list, read, push (bulk upsert), delete, watch, promote, and make tables searchable by bots.
|
|
246
288
|
.PP
|
|
289
|
+
\fBEnv:\fR \-\-env dev|prod, else the project's env (\fBoalo link \-\-env\fR), else dev. push and delete write prod only with \-\-env prod typed out. models create makes the model in both; promote copies its rows dev to prod; events fire on prod rows only; vectorize and keep\-from\-ai cover both envs of a model, and only the \-\-env copy of a plain table.
|
|
290
|
+
.PP
|
|
247
291
|
\fBoalo data models [\-\-json]\fR
|
|
248
292
|
.br
|
|
249
293
|
\fBoalo data models create <name> \-\-field name:type [\-\-field ...] [\-\-owned\-by <field>]\fR
|
|
@@ -328,10 +372,12 @@ events, vectorize: turn it off. keep\-from\-ai: take the named fields off the li
|
|
|
328
372
|
\fB\-\-json\fR
|
|
329
373
|
Print the reply as JSON.
|
|
330
374
|
.IP \(bu 2
|
|
331
|
-
dev is a sandbox; live apps read prod. Push to dev, check it, then \fBoalo data promote <table>\fR copies dev rows to prod.
|
|
375
|
+
dev is a sandbox; live apps and published bots read prod, draft bots read dev. Push to dev, check it, then \fBoalo data promote <table>\fR copies dev rows to prod.
|
|
332
376
|
.IP \(bu 2
|
|
333
377
|
Reads use the saved data token (read\-only). Row writes use a write token limited to the tables written, made as you over the CLI token the first time you write a table and saved beside it (\fBoalo tokens list\fR shows it; it expires in 30 days).
|
|
334
378
|
.IP \(bu 2
|
|
379
|
+
That write token is shared by every project on this machine for the workspace: writing a new table widens it to cover that table too. push and delete print the tables it covers.
|
|
380
|
+
.IP \(bu 2
|
|
335
381
|
models create and promote run as you over the CLI token, so they follow your dashboard access.
|
|
336
382
|
.IP \(bu 2
|
|
337
383
|
push sends up to 1,000 rows per request, waits out the rate limit (120 writes a minute), retries network errors, and lists rows the server rejected.
|
|
@@ -350,6 +396,8 @@ Exit codes: 0 done; 1 failed, or some rows were rejected; 2 bad arguments or no
|
|
|
350
396
|
.SS incidents
|
|
351
397
|
A live app's outages and restart bursts, as Oalo's uptime check saw them, newest first.
|
|
352
398
|
.PP
|
|
399
|
+
\fBEnv:\fR prod (the live app) only. The preview isn't checked; \fBoalo logs\fR shows it.
|
|
400
|
+
.PP
|
|
353
401
|
\fBoalo incidents [\-\-app <slug>] [\-\-all] [\-\-json]\fR
|
|
354
402
|
.br
|
|
355
403
|
.TP
|
|
@@ -370,6 +418,8 @@ Exit codes: 0 no open incident; 1 an incident is open, or the request failed; 2
|
|
|
370
418
|
.SS db
|
|
371
419
|
Read an env's tables with SQL (your app's own included), dump all of an env's data as plain SQL to keep or take anywhere, or load an existing Postgres database into an env.
|
|
372
420
|
.PP
|
|
421
|
+
\fBEnv:\fR query and tables: \-\-env dev|prod, else the project's env, else dev. dump: \-\-env, default prod, whatever the project's env is. restore: \-\-env is required.
|
|
422
|
+
.PP
|
|
373
423
|
\fBoalo db query "<sql>" [\-\-env dev|prod] [\-\-limit <n>] [\-\-json]\fR
|
|
374
424
|
.br
|
|
375
425
|
\fBoalo db tables [\-\-env dev|prod]\fR
|
|
@@ -382,7 +432,7 @@ Read an env's tables with SQL (your app's own included), dump all of an env's da
|
|
|
382
432
|
.br
|
|
383
433
|
.TP
|
|
384
434
|
\fB\-\-env dev|prod\fR
|
|
385
|
-
query, tables: which env. Default the project's
|
|
435
|
+
query, tables: which env. Default the project's, else dev. dump: which env's data. Default prod. restore: which env the data goes into, always on the command line.
|
|
386
436
|
.TP
|
|
387
437
|
\fB\-\-limit <n>\fR
|
|
388
438
|
query: rows to show. Default 100, at most 1000.
|
|
@@ -428,6 +478,8 @@ Exit codes: 0 a whole dump was written, or the restore (or check) passed; 1 refu
|
|
|
428
478
|
.SS metrics
|
|
429
479
|
A number from the workspace's data: count, sum or average over a model's rows, events or contacts, grouped or over time.
|
|
430
480
|
.PP
|
|
481
|
+
\fBEnv:\fR A model's rows: prod (live) unless you pass \-\-env dev. The project's env is not read. Events and contacts have one copy, not one per env.
|
|
482
|
+
.PP
|
|
431
483
|
\fBoalo metrics <model | events | contacts> [\-\-sum|\-\-avg|\-\-min|\-\-max|\-\-distinct <field>] [\-\-by <field>] [\-\-every day|week|month] [\-\-days N] [\-\-where <filter>] [\-\-json]\fR
|
|
432
484
|
.br
|
|
433
485
|
.TP
|
|
@@ -468,7 +520,7 @@ A model row counts at when it was created (default), last changed, or one of its
|
|
|
468
520
|
Also the same over the window before (needs \-\-days).
|
|
469
521
|
.TP
|
|
470
522
|
\fB\-\-env dev|prod\fR
|
|
471
|
-
A model's live (default) or dev data.
|
|
523
|
+
A model's live (prod, the default) or dev data. To count rows a test or a draft bot wrote, pass \-\-env dev.
|
|
472
524
|
.TP
|
|
473
525
|
\fB\-\-json\fR
|
|
474
526
|
The answer as JSON.
|
|
@@ -481,6 +533,8 @@ Exit codes: 0 done; 1 the query failed; 2 bad arguments or no CLI token.
|
|
|
481
533
|
.SS dashboards
|
|
482
534
|
The workspace's dashboards, and a chart put on one (made when no dashboard has that name).
|
|
483
535
|
.PP
|
|
536
|
+
\fBEnv:\fR add: a chart over a model reads prod (live) unless you pass \-\-env dev, and keeps reading that env. The project's env is not read. Event, contact and funnel charts have one copy.
|
|
537
|
+
.PP
|
|
484
538
|
\fBoalo dashboards [\-\-json]\fR
|
|
485
539
|
.br
|
|
486
540
|
\fBoalo dashboards add <dashboard> <model | events | contacts> \-\-title "<title>" \-\-kind number|line|bars|table [metrics flags] [\-\-app <slug>] [\-\-width 1|2|3]\fR
|
|
@@ -508,12 +562,14 @@ The answer as JSON.
|
|
|
508
562
|
.IP \(bu 2
|
|
509
563
|
add runs the query first and refuses one that can't draw, then prints its numbers. It changes what everyone with access sees.
|
|
510
564
|
.IP \(bu 2
|
|
511
|
-
The flags after the model are the same as oalo metrics.
|
|
565
|
+
The flags after the model are the same as oalo metrics, \-\-env included.
|
|
512
566
|
.PP
|
|
513
567
|
Exit codes: 0 done; 1 the request failed; 2 bad arguments or no CLI token.
|
|
514
568
|
.SS products
|
|
515
569
|
What the workspace sells (Oalo commerce on its own Stripe account): list, create, rename, change a price, archive, and see orders.
|
|
516
570
|
.PP
|
|
571
|
+
\fBEnv:\fR Not dev or prod: a product is on your Stripe test key, or on the live key with \-\-live. \-\-env does nothing here.
|
|
572
|
+
.PP
|
|
517
573
|
\fBoalo products [\-\-all] [\-\-json]\fR
|
|
518
574
|
.br
|
|
519
575
|
\fBoalo products create <id> \-\-name "<name>" \-\-price <amount> \-\-once|\-\-monthly|\-\-yearly [\-\-trial <days>] [\-\-currency <code>] [\-\-description <text>] [\-\-live] [\-\-yes]\fR
|
|
@@ -694,13 +750,15 @@ Exit codes: 0 started, or (status, \-\-wait) built; 1 refused, the build failed,
|
|
|
694
750
|
.SS sources
|
|
695
751
|
Feeds that send Oalo rows from outside (another system, a webhook, an export), keeping only the fields you choose.
|
|
696
752
|
.PP
|
|
753
|
+
\fBEnv:\fR create: rows go to prod (live) unless you pass \-\-env dev, and the source keeps that env (list and show name it). The project's env is not read. A \-\-bot source has no env: its documents are live at once.
|
|
754
|
+
.PP
|
|
697
755
|
\fBoalo sources [list] [\-\-json]\fR
|
|
698
756
|
.br
|
|
699
|
-
\fBoalo sources create <name> \-\-from <sample.csv|.json|.jsonl> [\-\-table <new model>] [\-\-id\-field <field>] [\-\-mode upsert|snapshot] [\-\-auth bearer|hmac|url] [\-\-env dev|prod]\fR
|
|
757
|
+
\fBoalo sources create <name> \-\-from <sample.csv|.json|.jsonl> [\-\-table <new model>] [\-\-id\-field <field>] [\-\-records\-at <path>] [\-\-mode upsert|snapshot] [\-\-auth bearer|hmac|url] [\-\-env dev|prod]\fR
|
|
700
758
|
.br
|
|
701
759
|
\fBoalo sources create <name> \-\-table <existing model or table> [\-\-fields a,b] [\-\-id\-field <field>] [\-\-auth bearer|hmac|url]\fR
|
|
702
760
|
.br
|
|
703
|
-
\fB (either form) [\-\-keep\-from\-ai a,b] [\-\-retention <days>]\fR
|
|
761
|
+
\fB (either form) [\-\-keep\-from\-ai a,b] [\-\-retention <days>] [\-\-hmac\-header <name>] [\-\-hmac\-format sha256=hex|hex|base64]\fR
|
|
704
762
|
.br
|
|
705
763
|
\fBoalo sources show <name> [\-\-json]\fR
|
|
706
764
|
.br
|
|
@@ -710,7 +768,7 @@ Feeds that send Oalo rows from outside (another system, a webhook, an export), k
|
|
|
710
768
|
.br
|
|
711
769
|
\fBoalo sources push <name> <file.csv|.json|.jsonl> [\-\-json]\fR
|
|
712
770
|
.br
|
|
713
|
-
\fBoalo sources push <name> <doc.pdf|.docx|.md|.html|.txt> [more...] [\-\-json]\fR
|
|
771
|
+
\fBoalo sources push <name> <doc.pdf|.docx|.md|.html|.txt> [more...] [\-\-prune] [\-\-json]\fR
|
|
714
772
|
.br
|
|
715
773
|
\fBoalo sources remove <name> <document>\fR
|
|
716
774
|
.br
|
|
@@ -760,7 +818,7 @@ create: each upload is the whole set, and rows it leaves out are deleted. Only f
|
|
|
760
818
|
create: how a sender proves it's allowed. bearer (default): Authorization: Bearer <secret>. hmac: a signature header over the raw body (\-\-hmac\-header, default x\-signature; \-\-hmac\-format sha256=hex, hex or base64), for tools that sign their webhooks. url: the secret is the last part of the address, for tools that can only send to an address.
|
|
761
819
|
.TP
|
|
762
820
|
\fB\-\-env dev|prod\fR
|
|
763
|
-
create: which copy of the
|
|
821
|
+
create: which env's copy of the table the rows go to. Default prod, whatever the project's env is.
|
|
764
822
|
.TP
|
|
765
823
|
\fB\-\-every <minutes>\fR
|
|
766
824
|
fetch: how often Oalo fetches the address, 5 to 10080 minutes. Default 60.
|
|
@@ -769,7 +827,13 @@ fetch: how often Oalo fetches the address, 5 to 10080 minutes. Default 60.
|
|
|
769
827
|
fetch: a request header, "Name: value" (an API key, say: \-\-header "Authorization: Bearer $KEY"). Repeat it for more, up to 10. Sealed on the server; show prints only the names. Left out, the ones set before stay; \-\-header "" clears them.
|
|
770
828
|
.TP
|
|
771
829
|
\fB\-\-records\-at <path>\fR
|
|
772
|
-
fetch, a table's source: the records are the list at this key of the JSON answer (data.items).
|
|
830
|
+
create: where each record sits in what a sender posts, for a webhook that wraps it ({"event": ..., "delivery": {...}} is \-\-records\-at delivery; an object there is one record, a list is several). The \-\-from sample is read the same way, and \-\-id\-field and \-\-fields name fields inside it. fetch, a table's source: the records are the list at this key of the JSON answer (data.items).
|
|
831
|
+
.TP
|
|
832
|
+
\fB\-\-hmac\-header <name>\fR
|
|
833
|
+
create, \-\-auth hmac: the header that carries the signature. Default x\-signature.
|
|
834
|
+
.TP
|
|
835
|
+
\fB\-\-hmac\-format <f>\fR
|
|
836
|
+
create, \-\-auth hmac: how the signature is written: sha256=hex (default, as GitHub and Shopify\-style senders do), hex (the bare hex digest) or base64. A signature in another format is refused as not a sender of this source.
|
|
773
837
|
.TP
|
|
774
838
|
\fB\-\-document <name>\fR
|
|
775
839
|
fetch, a knowledge source: the document's name (default the address's last part).
|
|
@@ -792,11 +856,16 @@ fetch: stop fetching.
|
|
|
792
856
|
\fB\-\-wipe\fR
|
|
793
857
|
delete: also delete the rows, when the source made the model.
|
|
794
858
|
.TP
|
|
859
|
+
\fB\-\-prune\fR
|
|
860
|
+
push, a knowledge source: the files sent are the whole set, so each document the source has and they don't is removed. Nothing is removed when a file fails. \fBoalo sources push help docs/*.md \-\-prune\fR keeps the bot in step with a folder.
|
|
861
|
+
.TP
|
|
795
862
|
\fB\-\-json\fR
|
|
796
863
|
The reply as JSON.
|
|
797
864
|
.IP \(bu 2
|
|
798
865
|
A sender posts JSON (an object or an array), NDJSON or CSV to the source's address. Keys and CSV headers are snake\-cased as the CSV import does it, so "Order ID" and order_id are one field.
|
|
799
866
|
.IP \(bu 2
|
|
867
|
+
Only top\-level fields are fields. A field that holds an object or a list is stored whole, everything inside it included, and \-\-fields can't pick inside it, so a webhook that wraps its record ("delivery": {...}) needs \-\-records\-at, or a sensitive field inside the wrapper is stored. create warns when a sample has such a field.
|
|
868
|
+
.IP \(bu 2
|
|
800
869
|
The secret is shown when the source is made, and by rotate; it only writes. Each upload answers what it stored, rejected and dropped, is listed in show, and fires source.<name>.received for workflows.
|
|
801
870
|
.IP \(bu 2
|
|
802
871
|
Rows sync to your apps at once and fire the model's row events, as Sync API writes do. Up to 10,000 records a request, 120 requests a minute per source, 200,000 rows a day per workspace.
|
|
@@ -815,6 +884,8 @@ Exit codes: 0 done; 1 refused, failed, or some records were rejected; 2 bad argu
|
|
|
815
884
|
.SS bots
|
|
816
885
|
The workspace's bots: the tables each can search, and every setting (knowledge, memory, model, replies, limits).
|
|
817
886
|
.PP
|
|
887
|
+
\fBEnv:\fR No \-\-env. A bot's status (shown by \fBoalo bots\fR) picks its env: a draft searches dev tables and books against dev booking data, a published bot uses prod. Load a draft bot's data in dev.
|
|
888
|
+
.PP
|
|
818
889
|
\fBoalo bots [\-\-json]\fR
|
|
819
890
|
.br
|
|
820
891
|
\fBoalo bots knowledge <bot> [\-\-json]\fR
|
|
@@ -829,6 +900,10 @@ The workspace's bots: the tables each can search, and every setting (knowledge,
|
|
|
829
900
|
.br
|
|
830
901
|
\fBoalo bots settings \-\-explain [<key> | <group>] [\-\-json]\fR
|
|
831
902
|
.br
|
|
903
|
+
\fBoalo bots graph <bot> [\-\-build] [\-\-json]\fR
|
|
904
|
+
.br
|
|
905
|
+
\fBoalo bots graph <bot> \-\-reset \-\-yes [\-\-json]\fR
|
|
906
|
+
.br
|
|
832
907
|
.TP
|
|
833
908
|
\fBtools \-\-add <tool>\fR
|
|
834
909
|
Let the bot call one of the workspace's tools, by name. Your server apps' own endpoints are listed once a deploy reads their .oalo/app.json (see \fBoalo docs app\-tools\fR). \-\-remove takes it away.
|
|
@@ -843,7 +918,13 @@ Detach one. The table stays searchable for other bots.
|
|
|
843
918
|
settings: change one or more. A value starting with @ is read from that file (for the frame). none, default or an empty value clears a setting where its help says so.
|
|
844
919
|
.TP
|
|
845
920
|
\fB\-\-yes\fR
|
|
846
|
-
settings set: apply to a published bot. Without it a published bot's change is shown and not saved.
|
|
921
|
+
settings set: apply to a published bot. Without it a published bot's change is shown and not saved. graph \-\-reset: go ahead.
|
|
922
|
+
.TP
|
|
923
|
+
\fB\-\-build\fR
|
|
924
|
+
graph: build the bot's knowledge graph from its documents, in the background (a minute or two). After that, each new document keeps it current. Run it again to rebuild it whole.
|
|
925
|
+
.TP
|
|
926
|
+
\fB\-\-reset\fR
|
|
927
|
+
graph: delete the whole graph, links added by hand or imported included. Needs \-\-yes.
|
|
847
928
|
.TP
|
|
848
929
|
\fB\-\-dry\-run\fR
|
|
849
930
|
settings set: show what would change; save nothing.
|
|
@@ -863,11 +944,15 @@ The same as ticking a table in the bot's Knowledge pane in the dashboard, with t
|
|
|
863
944
|
settings go through the dashboard's own actions, with the same checks and access. A change sets only the settings it names: the model without the provider keeps the provider, one limit keeps the others, one context.* key keeps the rest of the context config.
|
|
864
945
|
.IP \(bu 2
|
|
865
946
|
Every setting is described in \fBman oalo\fR (BOT SETTINGS) and by \fBoalo bots settings \-\-explain\fR.
|
|
947
|
+
.IP \(bu 2
|
|
948
|
+
The knowledge graph links a bot's passages: each document's sections, and the sections like each other, so a match can bring in related ones and the topics above it. A bot has none until \fBoalo bots graph <bot> \-\-build\fR. graph shows its size and whether links are labeled; how answers use it is in settings (graph_retrieval, ancestor_preload_depth, graph_classify_edges). Markdown front matter's related: list links pages by name.
|
|
866
949
|
.PP
|
|
867
950
|
Exit codes: 0 done; 1 refused or failed; 2 bad arguments or no CLI token.
|
|
868
951
|
.SS tokens
|
|
869
952
|
List, create and revoke the workspace's sync tokens, for an app's own server.
|
|
870
953
|
.PP
|
|
954
|
+
\fBEnv:\fR A token with env:dev or env:prod is locked to that env. Without one it can use either, and a Sync API request that doesn't pass ?env= gets prod.
|
|
955
|
+
.PP
|
|
871
956
|
\fBoalo tokens list [\-\-json]\fR
|
|
872
957
|
.br
|
|
873
958
|
\fBoalo tokens create \-\-name <name> \-\-scope write:<table> [\-\-scope ...] [\-\-days N] [\-\-json]\fR
|
|
@@ -879,7 +964,7 @@ List, create and revoke the workspace's sync tokens, for an app's own server.
|
|
|
879
964
|
What the token is for, shown in the dashboard.
|
|
880
965
|
.TP
|
|
881
966
|
\fB\-\-scope <scope>\fR
|
|
882
|
-
read, write, read_manifest, read:<table>, write:<table>, events (send events to POST /api/events/v1), workflows (call workflows, POST /api/workflows/v1/<name>/run), chat (sign the chat widget in as your app's user, POST /api/chat/v1/sessions), or env:dev / env:prod (lock it to one env's data: env:dev makes events and workflow calls safe test runs, for running your app on your machine). Repeat it. Prefer the narrowest. An unknown scope is refused.
|
|
967
|
+
read, write, read_manifest, read:<table>, write:<table>, events (send events to POST /api/events/v1), workflows (call workflows, POST /api/workflows/v1/<name>/run), chat (sign the chat widget in as your app's user, POST /api/chat/v1/sessions), or env:dev / env:prod (lock it to one env's data: env:dev makes events and workflow calls safe test runs, for running your app on your machine). Repeat it. Prefer the narrowest. An unknown scope is refused. A <table> is an Oalo data model, one \fBoalo data models\fR lists: a plain Postgres table (made by \fBoalo db restore\fR or by the app) can't be served by the Sync API, and create warns when a table scope names no model.
|
|
883
968
|
.TP
|
|
884
969
|
\fB\-\-days N\fR
|
|
885
970
|
Expiry in days (default 90; 0 for none).
|
|
@@ -887,6 +972,8 @@ Expiry in days (default 90; 0 for none).
|
|
|
887
972
|
A sync token reads or writes every row of its tables, for every member. It belongs in a server's secrets, never in a mobile or web app.
|
|
888
973
|
.IP \(bu 2
|
|
889
974
|
The token is printed once. Copy it into the app server's secrets right away.
|
|
975
|
+
.IP \(bu 2
|
|
976
|
+
Table scopes (read:<table>, write:<table>) are for Oalo data models, what \fBoalo data models\fR lists. They don't reach a plain table: an app's server reads its own tables over DATABASE_URL.
|
|
890
977
|
.PP
|
|
891
978
|
Exit codes: 0 done; 1 refused or failed; 2 bad arguments or no CLI token.
|
|
892
979
|
.SS docs
|
|
@@ -930,6 +1017,8 @@ Exit codes: 0 done; 1 the workspace failed; 2 no CLI token.
|
|
|
930
1017
|
.SS deploy
|
|
931
1018
|
Send this repo's commits to an app and run them: the preview (dev) by default, the live release with \-\-env prod.
|
|
932
1019
|
.PP
|
|
1020
|
+
\fBEnv:\fR \-\-env dev (the preview, the default) or prod (the live release). It follows the project's env, but prod must be typed as \-\-env prod. \-\-new always starts on dev and sets the project's env to dev.
|
|
1021
|
+
.PP
|
|
933
1022
|
\fBoalo deploy [\-\-app <slug>] [\-\-env dev|prod] [\-\-allow\-dirty] [\-\-json]\fR
|
|
934
1023
|
.br
|
|
935
1024
|
\fBoalo deploy \-\-new [<name>] [\-\-name "Display name"]\fR
|
|
@@ -952,7 +1041,7 @@ The app (\fBoalo apps\fR lists them). Default: the app saved with \fBoalo link \
|
|
|
952
1041
|
dev updates the preview; prod builds and swaps the live release. prod must be on the command line.
|
|
953
1042
|
.TP
|
|
954
1043
|
\fB\-\-new [<name>]\fR
|
|
955
|
-
Make a new app from this repo: its type found from the files at the repo's root (no Dockerfile needed), its commits kept as the app's history, its preview set up. The name (default: the repo's folder) becomes its slug, and
|
|
1044
|
+
Make a new app from this repo: its type found from the files at the repo's root (no Dockerfile needed), its commits kept as the app's history, its preview set up. The name (default: the repo's folder) becomes its slug: lowercase letters, digits and dashes, so \fBmy_app\fR becomes \fBmy\-app\fR, and the deploy says so when it changed what you typed. This project is linked to it. When nothing at the root says what the app is (a monorepo, say), it is made as code only and the deploy says what to add: see \fBoalo docs bring\-your\-repo\fR.
|
|
956
1045
|
.TP
|
|
957
1046
|
\fB\-\-name <display name>\fR
|
|
958
1047
|
With \-\-new: the app's display name. Default: its slug.
|
|
@@ -1002,6 +1091,8 @@ Exit codes: 0 deployed; 1 refused or failed; 2 bad arguments, no CLI token, or n
|
|
|
1002
1091
|
.SS migrate
|
|
1003
1092
|
Move an app from Heroku, Railway, Render, Fly.io or Primcloud: its Procfile, sizes, health path and variables, worked out from its files and that platform's CLI.
|
|
1004
1093
|
.PP
|
|
1094
|
+
\fBEnv:\fR \-\-apply sets the variables on prod (the live app) only, whatever the project's env is. Set the preview's with \fBoalo env set ... \-\-env dev\fR.
|
|
1095
|
+
.PP
|
|
1005
1096
|
\fBoalo migrate <heroku|railway|render|fly|primcloud> [\-\-from\-app <name>] [\-\-env\-file <file>] [\-\-json]\fR
|
|
1006
1097
|
.br
|
|
1007
1098
|
\fBoalo migrate <platform> \-\-apply [\-\-app <slug>]\fR
|
|
@@ -1037,6 +1128,8 @@ Exit codes: 0 the plan was shown, or applied; 1 a config file couldn't be read,
|
|
|
1037
1128
|
.SS env
|
|
1038
1129
|
An app's environment variables on Oalo (API keys, settings), per env: list, set, unset, rotate\-token.
|
|
1039
1130
|
.PP
|
|
1131
|
+
\fBEnv:\fR \-\-env dev (the preview) or prod (the live app), else the project's env, else dev. Changing prod needs \-\-env prod typed out; listing it doesn't.
|
|
1132
|
+
.PP
|
|
1040
1133
|
\fBoalo env [\-\-app <slug>] [\-\-env dev|prod] [\-\-json]\fR
|
|
1041
1134
|
.br
|
|
1042
1135
|
\fBoalo env set NAME=value [NAME=value ...] [\-\-secret | \-\-public] [\-\-no\-restart]\fR
|
|
@@ -1133,6 +1226,8 @@ Exit codes: 0 done; 1 refused or failed; 2 bad arguments or no CLI token.
|
|
|
1133
1226
|
.SS logs
|
|
1134
1227
|
What an app's own processes printed (server, workers, release command), per env.
|
|
1135
1228
|
.PP
|
|
1229
|
+
\fBEnv:\fR \-\-env dev (the preview) or prod (the live app), else the project's env, else dev.
|
|
1230
|
+
.PP
|
|
1136
1231
|
\fBoalo logs [\-\-app <slug>] [\-\-env dev|prod] [\-\-process web|<worker>] [\-\-limit N] [\-\-follow] [\-\-json]\fR
|
|
1137
1232
|
.br
|
|
1138
1233
|
.TP
|
|
@@ -1140,7 +1235,7 @@ What an app's own processes printed (server, workers, release command), per env.
|
|
|
1140
1235
|
The app (\fBoalo apps\fR lists them). Default: the app saved with \fBoalo link \-\-app\fR.
|
|
1141
1236
|
.TP
|
|
1142
1237
|
\fB\-\-env dev|prod\fR
|
|
1143
|
-
dev is the preview, prod the live app. Default dev.
|
|
1238
|
+
dev is the preview, prod the live app. Default: the project's, else dev.
|
|
1144
1239
|
.TP
|
|
1145
1240
|
\fB\-\-process <name>\fR
|
|
1146
1241
|
Only this process: web, a Procfile worker's name, release, build (a live build's output, with \-\-env prod), or oalo (Oalo's own notes).
|
|
@@ -1164,6 +1259,8 @@ Exit codes: 0 done; 1 refused or failed; 2 bad arguments or no CLI token.
|
|
|
1164
1259
|
.SS loops
|
|
1165
1260
|
List the loops, test one (sends simulated), see its past runs, turn it on or off, or delete it, without pulling and pushing it.
|
|
1166
1261
|
.PP
|
|
1262
|
+
\fBEnv:\fR test always runs on dev (staging) data, whatever the project's env is. A loop has one copy, so on, off and delete take no env, and its real runs (triggers, schedules) use prod.
|
|
1263
|
+
.PP
|
|
1167
1264
|
\fBoalo loops list [\-\-json]\fR
|
|
1168
1265
|
.br
|
|
1169
1266
|
\fBoalo loops test <name> [\-\-sample latest|example] [\-\-input <json|@file.json>] [\-\-json]\fR
|
|
@@ -1199,6 +1296,8 @@ Print the test result as JSON.
|
|
|
1199
1296
|
.IP \(bu 2
|
|
1200
1297
|
A test runs every step. Steps that send messages or change records are simulated, and their output says what they would have done. Custom tools and AI steps run for real. It works on a loop that is off.
|
|
1201
1298
|
.IP \(bu 2
|
|
1299
|
+
A message step (email, WhatsApp, SMS, team chat) shows its rendered text whole: subject, body, text. Other outputs show up to 2,000 characters on one line; \-\-json has everything.
|
|
1300
|
+
.IP \(bu 2
|
|
1202
1301
|
A loop that is on runs for real whenever its triggers fire. Starting a run now, for real: \fBoalo run loop <name>\fR.
|
|
1203
1302
|
.IP \(bu 2
|
|
1204
1303
|
Deleting can't be undone; turning a loop off keeps it.
|
|
@@ -1207,6 +1306,8 @@ Exit codes: 0 done (a test passed); 1 refused, failed, or the test run failed; 2
|
|
|
1207
1306
|
.SS flows
|
|
1208
1307
|
Turn a chat flow on or off, or delete it, by bot and flow name, without pulling and pushing it.
|
|
1209
1308
|
.PP
|
|
1309
|
+
\fBEnv:\fR No env: a flow has one copy. Its steps use the bot's env, dev while the bot is a draft, prod once published.
|
|
1310
|
+
.PP
|
|
1210
1311
|
\fBoalo flows on <bot> <flow>\fR
|
|
1211
1312
|
.br
|
|
1212
1313
|
\fBoalo flows off <bot> <flow>\fR
|
|
@@ -1270,25 +1371,31 @@ Exit codes: 0 nothing in conflict; 1 a conflict, an invalid file, or a failed ch
|
|
|
1270
1371
|
.SS lint
|
|
1271
1372
|
Check flow and loop files without saving anything.
|
|
1272
1373
|
.PP
|
|
1273
|
-
\fBoalo lint [<file>...] [\-\-verbose] [\-\-json]\fR
|
|
1374
|
+
\fBoalo lint [<file or folder>...] [\-\-verbose] [\-\-json]\fR
|
|
1274
1375
|
.br
|
|
1275
1376
|
.TP
|
|
1276
1377
|
\fB\-\-verbose\fR
|
|
1277
1378
|
Also show info\-level findings.
|
|
1278
1379
|
.TP
|
|
1279
1380
|
\fB\-\-json\fR
|
|
1280
|
-
One JSON object per file: {path, findings}.
|
|
1381
|
+
One JSON object per file: {path, findings}, plus a note for a tool file.
|
|
1281
1382
|
.IP \(bu 2
|
|
1282
1383
|
The same checks the server runs before a strict save: node types and keys against the catalog, required settings, edges and conditions, references between steps, and tools the flow or loop calls.
|
|
1283
1384
|
.IP \(bu 2
|
|
1284
1385
|
Each finding names the node, what is wrong and how to fix it.
|
|
1285
1386
|
.IP \(bu 2
|
|
1387
|
+
A folder means every flow, loop and tool file inside it, e.g. oalo lint .oalo/loops.
|
|
1388
|
+
.IP \(bu 2
|
|
1389
|
+
A tool file isn't linted: its code is compiled and checked when you push it.
|
|
1390
|
+
.IP \(bu 2
|
|
1286
1391
|
Needs a CLI token.
|
|
1287
1392
|
.PP
|
|
1288
1393
|
Exit codes: 0 no errors (warnings allowed); 1 errors found; 2 no token.
|
|
1289
1394
|
.SS push
|
|
1290
1395
|
Lint and save edited flow, loop and tool files, guarded against concurrent edits.
|
|
1291
1396
|
.PP
|
|
1397
|
+
\fBEnv:\fR No env: flows, loops and tools have one copy, and a save is live at once. There is no dev copy to push to first.
|
|
1398
|
+
.PP
|
|
1292
1399
|
\fBoalo push [<file>...] [\-\-dry\-run] [\-\-no\-strict] [\-\-force] [\-\-all] [\-\-verbose]\fR
|
|
1293
1400
|
.br
|
|
1294
1401
|
.TP
|
|
@@ -1321,6 +1428,8 @@ Exit codes: 0 every file saved; 1 a file was refused, in conflict, or failed; 2
|
|
|
1321
1428
|
.SS qa
|
|
1322
1429
|
Run a scripted test conversation with a bot and print the transcript.
|
|
1323
1430
|
.PP
|
|
1431
|
+
\fBEnv:\fR No \-\-env. The bot uses its own env: a draft reads and writes dev (tables, bookings), a published bot prod, in a test too. Set up a draft bot's data in dev before testing it.
|
|
1432
|
+
.PP
|
|
1324
1433
|
\fBoalo qa <bot> "<message>" ["<message>" ...] [\-\-channel web|whatsapp|instagram|sms] [\-\-flow <name>] [\-\-timeout <s>] [\-\-json]\fR
|
|
1325
1434
|
.br
|
|
1326
1435
|
\fBoalo qa <bot> \-\-script <file.json>\fR
|
|
@@ -1342,11 +1451,15 @@ How long one turn may take to settle. Default 90, at most 300.
|
|
|
1342
1451
|
Tag stored on the test conversation.
|
|
1343
1452
|
.TP
|
|
1344
1453
|
\fB\-\-json\fR
|
|
1345
|
-
Print the whole run as JSON: turns (replies, flow state, ms, settled), flow_path, cost_usd.
|
|
1454
|
+
Print the whole run as JSON: turns (replies, the tools called, flow state, ms, settled), flow_path, cost_usd.
|
|
1346
1455
|
.IP \(bu 2
|
|
1347
1456
|
The conversation is a preview with no phone number or external id: the inbox leaves it out and nothing is sent to WhatsApp, Instagram or SMS.
|
|
1348
1457
|
.IP \(bu 2
|
|
1349
|
-
Everything else is real: the bot's tools and flows run
|
|
1458
|
+
Everything else is real: the bot's tools and flows run and handoffs happen. Use a test bot, or flows whose side effects you are fine repeating.
|
|
1459
|
+
.IP \(bu 2
|
|
1460
|
+
qa only sends text. It can't fill in or submit a web form or tap a widget, so test those steps in the dashboard's chat preview.
|
|
1461
|
+
.IP \(bu 2
|
|
1462
|
+
Contact details the bot collects reach a contact only when the test chat has one linked. On whatsapp and sms the test contact is removed when the run ends.
|
|
1350
1463
|
.IP \(bu 2
|
|
1351
1464
|
Each message waits until the bot settles (no new message and no running flow), then the next is sent. Any flow still active at the end is cancelled and the conversation is closed.
|
|
1352
1465
|
.IP \(bu 2
|
|
@@ -1358,6 +1471,8 @@ Exit codes: 0 every turn settled; 1 a turn timed out or the run failed; 2 bad ar
|
|
|
1358
1471
|
.SS rehearse
|
|
1359
1472
|
Rehearse inbound WhatsApp conversations end to end: routing, triage and the bot's reply.
|
|
1360
1473
|
.PP
|
|
1474
|
+
\fBEnv:\fR No \-\-env. The bot that answers uses its own env: dev while it's a draft, prod once published.
|
|
1475
|
+
.PP
|
|
1361
1476
|
\fBoalo rehearse [\-\-number <phone_number_id>] [\-\-responder <bot_...>] [\-\-timeout <s>] [\-\-json]\fR
|
|
1362
1477
|
.br
|
|
1363
1478
|
\fBoalo rehearse \-\-script <file.json>\fR
|
|
@@ -1367,10 +1482,10 @@ Rehearse inbound WhatsApp conversations end to end: routing, triage and the bot'
|
|
|
1367
1482
|
The WhatsApp number (phone_number_id) the customer writes to. Default: the workspace's default number.
|
|
1368
1483
|
.TP
|
|
1369
1484
|
\fB\-\-responder <bot_...>\fR
|
|
1370
|
-
The bot
|
|
1485
|
+
The bot the checks expect to end up answering, by its public id (\fBoalo bots\fR lists them). It's a check, not routing: messages still go where the number and its triage send them. To rehearse a bot that isn't on the number, give a \-\-script scenario with an open_thread on that bot. Default: the bot an enabled triage loop hands threads to, else the number's bot.
|
|
1371
1486
|
.TP
|
|
1372
1487
|
\fB\-\-script <file>\fR
|
|
1373
|
-
A JSON file: {"scenarios": [{"name", "messages", "known_contact", "opted_out", "open_thread": {"bot_id", "number", "hours_ago", "tags", "assigned", "deal"}, "expect": {"reply", "bot_id", "assigned"}}]}.
|
|
1488
|
+
A JSON file: {"scenarios": [{"name", "messages", "known_contact", "opted_out", "open_thread": {"bot_id", "number", "hours_ago", "tags", "assigned", "deal", "messages"}, "expect": {"reply", "bot_id", "assigned"}}]}. open_thread.bot_id is a public id (bot_...) or number. An open thread starts with one earlier exchange: open_thread.messages [customer, reply] when given, else a Spanish greeting ("Hola" / "¡Hola! ¿En qué te puedo ayudar?"), which can set the language the bot answers in.
|
|
1374
1489
|
.TP
|
|
1375
1490
|
\fB\-\-timeout <s>\fR
|
|
1376
1491
|
How long one message may take to settle. Default 120, at most 300.
|
|
@@ -1413,6 +1528,8 @@ Exit codes: 0 installed or printed.
|
|
|
1413
1528
|
.SS mcp
|
|
1414
1529
|
Serve the workspace over MCP on stdio, for Claude Code or Cursor.
|
|
1415
1530
|
.PP
|
|
1531
|
+
\fBEnv:\fR The tools never read the project's env. oalo_read_rows, oalo_list_models and oalo_db_query default to dev; oalo_query_metrics and dashboard widgets to prod; oalo_write_rows needs env. Pass env in each call.
|
|
1532
|
+
.PP
|
|
1416
1533
|
\fBoalo mcp\fR
|
|
1417
1534
|
.br
|
|
1418
1535
|
.IP \(bu 2
|
|
@@ -1420,6 +1537,8 @@ stdout is the MCP protocol stream. Diagnostics go to stderr.
|
|
|
1420
1537
|
.IP \(bu 2
|
|
1421
1538
|
Exposes a curated tool set plus an oalo_call passthrough; the build surface has ~442 events and mapping them all would wreck tool selection.
|
|
1422
1539
|
.IP \(bu 2
|
|
1540
|
+
oalo_describe is a short summary (apps, bots and loops by name, the tool groups, how dev and prod work, the docs index); its section argument pages through the full records. A reply longer than about 60,000 characters has its longest list cut, with a \fB_cut\fR note saying how to get the rest (oalo_call takes match and offset; oalo_node_catalog takes node_type).
|
|
1541
|
+
.IP \(bu 2
|
|
1423
1542
|
Reads OALO_URL and OALO_CLI_TOKEN, or falls back to what \fBoalo link \-\-cli\-token\fR saved.
|
|
1424
1543
|
.IP \(bu 2
|
|
1425
1544
|
Needs a CLI token.
|
|
@@ -1536,6 +1655,11 @@ How many levels of parent topics come with a match when graph_retrieval brings t
|
|
|
1536
1655
|
.br
|
|
1537
1656
|
Values: a number from 1 to 32. Default: 3.
|
|
1538
1657
|
.TP
|
|
1658
|
+
\fBgraph_classify_edges\fR
|
|
1659
|
+
After each graph rebuild, a small AI model labels the links between similar passages (one depends on another, defines it, or is related), so a match can bring in what it depends on. Off: links are by similarity only. Needs a built graph (\fBoalo bots graph <bot> \-\-build\fR).
|
|
1660
|
+
.br
|
|
1661
|
+
Values: true or false. Default: false. Changing it uses AI credit at each graph rebuild, for the links whose pages changed.
|
|
1662
|
+
.TP
|
|
1539
1663
|
\fBcontext.strategy\fR
|
|
1540
1664
|
How each turn's context is put together. retrieval: the frame, the persona and what search finds. graph_resolver: everything the member's tier unlocks in the knowledge graph, whole (high recall, more tokens). graph_focused: the same unlocking, but only the unlocked topics' own text, plus a search over the graph for this turn (token\-bounded). The context.* settings below are read by the graph strategies.
|
|
1541
1665
|
.br
|
|
@@ -1556,6 +1680,21 @@ How much of each resident topic loads: full (it and everything under it) or shal
|
|
|
1556
1680
|
.br
|
|
1557
1681
|
Values: full | shallow, or default. Default: default.
|
|
1558
1682
|
.TP
|
|
1683
|
+
\fBcontext.budget.policy\fR
|
|
1684
|
+
How much a turn packs. fixed: a set number of retrieved passages, and the whole conversation. fit: a budget from the model's window. What loads every turn goes first (frame, persona, resident topics, tools), then recent history (at most half of what's left), then retrieved knowledge fills the rest. The Context Inspector shows the split.
|
|
1685
|
+
.br
|
|
1686
|
+
Values: fixed | fit. Default: fixed.
|
|
1687
|
+
.TP
|
|
1688
|
+
\fBcontext.budget.share\fR
|
|
1689
|
+
With context.budget.policy=fit: the percent of the model's window a turn may fill (after room for the answer). Higher packs more retrieved knowledge and history, at more cost a turn.
|
|
1690
|
+
.br
|
|
1691
|
+
Values: a number from 10 to 100. Default: 50.
|
|
1692
|
+
.TP
|
|
1693
|
+
\fBcontext.budget.cap\fR
|
|
1694
|
+
With context.budget.policy=fit: the most tokens a turn may fill, whatever the window. Keeps a model with a huge window from packing it.
|
|
1695
|
+
.br
|
|
1696
|
+
Values: a number from 10000 to 2000000. Default: 400000.
|
|
1697
|
+
.TP
|
|
1559
1698
|
\fBcontext.tier_field\fR
|
|
1560
1699
|
The member field that holds their tier, which decides what the graph strategies unlock.
|
|
1561
1700
|
.br
|
|
@@ -1654,6 +1793,11 @@ On WhatsApp and Instagram, which can't show a form: text asks for the answers in
|
|
|
1654
1793
|
.br
|
|
1655
1794
|
Values: text | link. Default: text.
|
|
1656
1795
|
.TP
|
|
1796
|
+
\fBguarded_reply\fR
|
|
1797
|
+
With guardrails on, the reply is checked before it's sent. last keeps the text after the bot's last tool call (drops lead\-ins like "let me check"); all keeps every step's text, for a bot that answers, shows cards, then asks.
|
|
1798
|
+
.br
|
|
1799
|
+
Values: last | all. Default: last.
|
|
1800
|
+
.TP
|
|
1657
1801
|
\fBoffchannel_handoff\fR
|
|
1658
1802
|
On WhatsApp and Instagram: off answers there, link moves the customer to the web chat on the first reply (it costs nothing per message).
|
|
1659
1803
|
.br
|
package/package.json
CHANGED