@lotics/cli 0.286.0 → 0.288.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/dist/src/cli.js +156 -82
- package/docs/design.md +6 -2
- package/docs/examples.md +11 -1
- package/package.json +1 -1
package/docs/design.md
CHANGED
|
@@ -139,7 +139,9 @@ names them. Entries planned ahead are an `agenda`; the status's moves are its hi
|
|
|
139
139
|
Rows a status stages towards its `closed` options move by acts: each moves one option on to the next (`when` the
|
|
140
140
|
status holds it, `set` to the next), at the foot of the section whose work it ends. A status with nothing closed is a
|
|
141
141
|
condition a person sets. A value decided as a row reaches an outcome — why it was lost, refused, voided — is that
|
|
142
|
-
act's `asks`, never a field the reader must remember to fill.
|
|
142
|
+
act's `asks`, never a field the reader must remember to fill. An act reaching past the workspace — sending an invoice
|
|
143
|
+
to a service, a letter by mail — runs its `workflow`, and what the workflow keeps from the answer (an invoice's id,
|
|
144
|
+
its link) is named in `writes`, the act's as what it sets is.
|
|
143
145
|
|
|
144
146
|
#### History
|
|
145
147
|
|
|
@@ -168,7 +170,9 @@ default record: every field a person writes.
|
|
|
168
170
|
|
|
169
171
|
Rows that each belong to one row of another entity (a one-row link to it) are drawn under that row: a `rows` block on
|
|
170
172
|
its record, a `timeline` where they are a log, an `agenda` where they are planned on a day and within it, a roster of
|
|
171
|
-
them, or lanes of them by that link. Which children a record lists is the author's — one of them at least.
|
|
173
|
+
them, or lanes of them by that link. Which children a record lists is the author's — one of them at least. A block
|
|
174
|
+
listing only some of them narrows by its `where`: a select (one leg's fees), or a yes/no — a formula's for what is
|
|
175
|
+
still owed — on a block that adds no rows. Rows on
|
|
172
176
|
file before the row they come to belong to — a job's cost lines before the supplier bill over them — are picked into
|
|
173
177
|
it: a rows block with `pick`, often with `create: false` and `remove: false`.
|
|
174
178
|
|
package/docs/examples.md
CHANGED
|
@@ -529,10 +529,12 @@ Every key: the `model` reference, at the pages each section names under **Keys**
|
|
|
529
529
|
{"alias": "placed", "type": "date"},
|
|
530
530
|
{"alias": "due_date", "type": "date"},
|
|
531
531
|
{"alias": "total", "type": "rollup"},
|
|
532
|
+
{"alias": "balance", "type": "formula"},
|
|
532
533
|
{"alias": "units_ordered", "type": "rollup"},
|
|
533
534
|
{"alias": "units_shipped", "type": "rollup"},
|
|
534
535
|
{"alias": "units_picked", "type": "rollup"},
|
|
535
|
-
{"alias": "notes", "type": "text", "format": "markdown"}
|
|
536
|
+
{"alias": "notes", "type": "text", "format": "markdown"},
|
|
537
|
+
{"alias": "paid_in_full", "type": "formula"}
|
|
536
538
|
]
|
|
537
539
|
},
|
|
538
540
|
{
|
|
@@ -627,6 +629,14 @@ Every key: the `model` reference, at the pages each section names under **Keys**
|
|
|
627
629
|
"columns": ["due_date"],
|
|
628
630
|
"create": false,
|
|
629
631
|
"where": {"stage": ["draft", "confirmed", "picking", "shipped"]}
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"rows": "order",
|
|
635
|
+
"via": "customer",
|
|
636
|
+
"title": "Shipped, still owed",
|
|
637
|
+
"columns": ["balance"],
|
|
638
|
+
"create": false,
|
|
639
|
+
"where": {"stage": ["shipped", "delivered"], "paid_in_full": false}
|
|
630
640
|
}
|
|
631
641
|
]
|
|
632
642
|
},
|