@lotics/cli 0.321.116 → 0.321.118

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/docs/build.md CHANGED
@@ -62,7 +62,7 @@ Linked tables go in one call, since they name each other by `ref`; `records` and
62
62
  }
63
63
  ```
64
64
 
65
- `default_from` copies the menu's price when a line is made, so a later change leaves taken orders alone. `min`, `unique` and a check hold on every write; a check's language is `workflows/table-checks`, an effect after a write a table workflow (`workflows/table-workflows`). A check at its smallest, under an alias in the table's `checks`: `{"on": ["create"], "fail_when": "record.quantity < 1", "message": "\"Quantity is at least 1\""}`; `message` is an expression, so fixed text is a quoted string.
65
+ `default_from` copies the menu's price when a line is made, so a later change leaves taken orders alone. `min`, `unique` and a check hold on every write; a check's language is `workflows/table-checks`, an effect after a write a table workflow (`workflows/table-workflows`). A check at its smallest, under an alias in the table's `checks`: `{"on": ["create"], "fail_when": "record.quantity < 1", "message": "\"Quantity is at least 1\""}`; `message` is an expression, so fixed text is a quoted string. A check refuses the write, a table workflow's too, so it states only what the business says must never happen; a fact going out of line (stock short of what lines take, totals that do not match) is an issue the row keeps (`design/issues`).
66
66
 
67
67
  A `date` field is a day, or a moment with `"format": "datetime"`; a time of day is a `text` field with `"format": "time"`. Days between two dates in a formula is `differenceInCalendarDays(later, earlier)`; the helpers are named exactly (`reference/formula`). Two rows that must not hold one resource at once are the table's `no_overlap`: `{"from": "start_at", "to": "end_at", "by": "room"}`, a list where a row holds two resources (`reference/no-overlap`).
68
68
 
package/docs/design.md CHANGED
@@ -49,7 +49,7 @@ or its entity is read-only (`edit: false`); a stepped status is not, since Acts
49
49
  - `fields` (map of alias → Field, required): The table's columns, each under its alias, which is its key here and so is never stated inside it
50
50
  - `records` (any value): How a row is recognised
51
51
  - `checks` (map of alias → table check (`workflows/table-checks`)): The conditions a write of the table's rows may not meet, each under its alias
52
- - `unique` (list of list of alias (at least one)): Sets of fields whose values no two live rows share
52
+ - `unique` (list (at least one) of list of alias (at least one)): Sets of fields whose values no two live rows share
53
53
 
54
54
  **Any field**
55
55
 
package/docs/workflows.md CHANGED
@@ -941,7 +941,8 @@ One open order per reference, a row never counting against itself:
941
941
  A table workflow is what follows every committed write of a table's rows, whoever makes it: the grid, an import, an agent or
942
942
  any app. An effect that must hold for all of them belongs to the table. A button on one screen is that app's act, a value fixed
943
943
  when a row is made is `default_from`, and a rule that refuses a write is a check; a table workflow runs after the write has
944
- committed and cannot refuse it.
944
+ committed and cannot refuse it. An agent's write waits for the runs it set off, while they run and at most 10 seconds, and
945
+ its answer names each that failed or had not ended.
945
946
 
946
947
  `set_workflow` writes it: the `source` opens with `on({ type, table, ... })` and carries the steps, and `enabled: false`
947
948
  keeps the workflow without running it (absent, it runs). `get_table` lists a table's workflows to whoever manages the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.321.116",
3
+ "version": "0.321.118",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {