exponential-cli 1.24.0 → 1.25.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 +38 -0
- package/dist/index.js +673 -118
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -374,6 +374,44 @@ exponential pages restore <page-id> --revision <rev-id> --note "Undo the agent r
|
|
|
374
374
|
`exponential search "<text>" --semantic --workspace acme` runs the same search by meaning
|
|
375
375
|
across meetings, resources, documents and pages (`--types page` to narrow).
|
|
376
376
|
|
|
377
|
+
### Databases — typed tables inside pages
|
|
378
|
+
|
|
379
|
+
A database is a block in a page's body, owned by that page; each row is a page of its own
|
|
380
|
+
(body, comments, history) hidden from the Pages list. **Writes are typed**: every value is
|
|
381
|
+
checked against its property and a bad one is refused naming the property. Not a work
|
|
382
|
+
tracker — use tickets, actions and projects for work.
|
|
383
|
+
|
|
384
|
+
```bash
|
|
385
|
+
# Create one on a page: it gets a title property and its block is placed at the end of the body
|
|
386
|
+
exponential databases create --page <page-id> --name Metrics
|
|
387
|
+
|
|
388
|
+
# Schema: types are text, number, select, multiSelect, date, checkbox, url, person,
|
|
389
|
+
# createdTime, lastEditedTime, createdBy (title exists from creation; relation arrives with V3)
|
|
390
|
+
exponential databases properties add <db-id> --name Status --type select \
|
|
391
|
+
--options "Not measured,Instrumenting,Tracked:green"
|
|
392
|
+
exponential databases properties add <db-id> --name Owner --type person
|
|
393
|
+
exponential databases properties update <db-id> Status --name Stage # ids stay; no row is rewritten
|
|
394
|
+
exponential databases properties reorder <db-id> <id1> <id2> <id3>
|
|
395
|
+
|
|
396
|
+
# Rows: property by name or id; a select by option name; lists comma-separated; checkboxes yes/no
|
|
397
|
+
exponential databases rows add <db-id> --set Name="Alert latency" --set Status=Tracked -n "From the CLEAR page"
|
|
398
|
+
exponential databases rows update <row-id> --set Status=Instrumenting --clear Owner
|
|
399
|
+
exponential databases rows list <db-id> # through the saved view
|
|
400
|
+
exponential databases rows list <db-id> --filter "Status=Tracked" --filter "Score>5" --sort Score:desc
|
|
401
|
+
exponential databases rows list <db-id> --filter "Status in Tracked,Instrumenting"
|
|
402
|
+
|
|
403
|
+
# The page shows the table; a row is a page
|
|
404
|
+
exponential pages get <page-id>
|
|
405
|
+
exponential pages get <row-id> # its property header, then its prose
|
|
406
|
+
exponential databases get <db-id>
|
|
407
|
+
exponential databases list --page <page-id> # detached ones too
|
|
408
|
+
exponential databases delete <db-id> --yes # rows go with it
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
Removing the block from the page **detaches** the database (its rows wait 30 days for the
|
|
412
|
+
purge); writing the marker line back re-attaches it. Rows follow the holding page for access,
|
|
413
|
+
placement and publishing — `pages move`/`publish` on a row page are refused.
|
|
414
|
+
|
|
377
415
|
### Workspaces
|
|
378
416
|
|
|
379
417
|
```bash
|