@delurio/cli 0.14.0 → 0.15.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/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  While the version is 0.x, a release that can judge the same graphs differently (a new check, a stricter schema) bumps the minor; a fix that judges nothing differently bumps the patch.
4
4
 
5
+ ## 0.15.0 (2026-11-24)
6
+
7
+ This release adds what a binding can say that a replay could not check before (SPEC.md §7), a repeated control disabled by its row's place (§4), and how a tutorial shows the screen a failure leads to and reads a dialog (§7). The first five came from binding delurio's own in-page guide, whose walks could not go past one step, read the tab's storage, say where a box is drawn, check a flow drawn inside another, or hold a request the page sends to another server. The last three came from binding another app, which could not open a node's menu one way in one state and another way in another, pass over a notice shown only on some visits, or say that the first row's Move up is disabled. The two on tutorials came from another app's videos, in which the screen a failure leads to could not be shown and a dialog closed before it was read. The binding schema takes the new keys, and `check` holds a binding to them (rule `schema`); what they name in the graph is held when a replay loads the binding, as before.
8
+
9
+ - A scenario's `then: { <effect>: [ { <variable>: <value> }, .. ] }` says how each step that applies the effect comes out where its `havoc` leaves a variable to chance, one entry each time, in order, so that a walk goes on past such a step: a guide's second step that is its last. A variable an entry leaves out, and every variable once the list has run out, keeps its value, as before.
10
+ - `storage: { session: { <key glob>: <value> }, local: { .. } }` on a state says what the page's `sessionStorage` and `localStorage` hold when the state is checked: `absent`, no key the glob matches is there; any other value, a key it matches holds it (a text, or a regular expression between slashes).
11
+ - `near: <locator>` on a node says it is drawn beside the element the locator finds: within 24 CSS pixels of it, in every state that shows the node.
12
+ - `draws: { flow, bind, given, states }` on a node says it holds another flow's screen, drawn by something other than that flow's own page: the replay checks the drawn flow's nodes inside the node's element, for the state `states` maps each state to, or the drawn flow's first screen. The node gives a locator; the schema refuses one without. `affected` touches the binding's flow when the drawn flow's files change (rule `drawn`), or the binding `bind` names.
13
+ - A state that invokes none of the flow's actions may name a `call`: a request the page makes while the state is shown, held as an invoke's call is. `status` on the call, a number or a list, is the HTTP status its answer has.
14
+ - A node's `before` in a binding may be a map from states to lists of actions, where the node is reached another way in another state (a row's menu opened from the list, already open on the row's page); in a state the map leaves out, nothing is done. A list is done in every state, as before.
15
+ - `optional: true` on a `click`, a `fill` or an `attach`: the app may not ask for it (a notice shown on some visits only). Once the page is still, its element is looked for once; where it is not there, the action is passed over and the step's report says so. The schema refuses `optional` on any other action.
16
+ - A repeat node's `disabledWhen` may read its row's place among the rows it draws, `repeat.first`, `repeat.last` and `repeat.index` (from 1), so that the first row's Move up is disabled and the others are not (SPEC.md §4). A replay checks it on each element the node's locator finds, in the order of the page. `event-unhandled` reads the place as unknown, as the flow does not know how many rows the app draws: such a `disabledWhen` disables the node in a situation only where it holds in every row (`saving or repeat.first` where `saving` holds; `repeat.first` alone nowhere), and its message says "does not hold in every row". The place on a node without `repeat`, and `row.<field>` in any `disabledWhen`, keep the graph from loading. A graph that does not read the place is judged as before.
17
+ - A tutorial step's `after` may give a failure (`FAIL.<class>`), or another event, that a server step the step passes takes another way than its normal one, where the screen its normal way leads to does not handle it: the walk stops at that server step and takes it there (`{ press: send, after: FAIL.network }`), so a tutorial shows the screen a failure leads to; an opening card's first event is taken so at the server steps before the first screen. `check` accepts such a tutorial, and still stops one whose event neither the screen nor a server step on the way handles (`tutorial-mismatch`). A tutorial that did not give such an event is judged as before.
18
+ - On a screen that shows a dialog, a tutorial's press with no `at` comes once the step's narration has been said, and a step that focuses nothing shows the whole dialog; `at: <seconds>` gives a press its own moment. The video tool warns of a dialog shown for under 2 seconds, one no step focuses or shows whole, and a press that closes a dialog while its step is still said. `check` is unchanged by it.
19
+
5
20
  ## 0.14.0 (2026-11-22)
6
21
 
7
22
  - New rule of `check`, which fails `--strict`: `event-unhandled`, a node that sends an event (`emits`) in a state that shows it enabled and does not handle that event (SPEC.md §4), the part of [#3](https://github.com/delurio-labs/delurio/issues/3) that asks for events handled where they are shown. In every situation the checker reaches, a state that shows the node (`in`, `unless`, and its `when` over that situation's context) and does not disable it (`disabledIn`, `disabledWhen`) has a transition on the event in its `on`. Three are not held, by what SPEC.md §2 says of them: a node that sends `NAVIGATE`, the person leaving the page, which is always possible; an exit, which has no transitions, so what a node on its page does is outside the flow; and a state with `always`, which the flow passes at once. It is given once per node and state, at the node in `ui.yaml`; where the node's `when` or `disabledWhen` decides it, its notes, and in SARIF its code flow, give the way from a start to the first situation that shows it enabled. It reads the exploration `check` already makes, so no flow is explored twice. Before, a Save button left enabled while its step runs, an answer that a question's saving state does not handle, and a link back to the list shown in states that do not handle it all passed `--strict`; Medaris's graphs had all three. On delurio's own graphs it finds 24, each in a state that runs a server step. A graph whose screens leave no event unhandled is judged as before; a project can record what it finds with `--baseline` while it fixes it.
package/README.md CHANGED
@@ -120,21 +120,21 @@ A file is a woff2, woff, ttf or otf file of at most 2 MiB, and a kit's files are
120
120
  ## Write a graph in an editor
121
121
 
122
122
  The npm package ships a JSON Schema (2020-12) for each kind of graph file in `schemas/`: `flow`, `ui`, `nav` (also `nav.extracted.yaml`), `domain`, `catalog`, `needs`, `gaps` (`needs.gaps.yaml`) and `binding` (`binding.yaml` and a shared `<name>.binding.yaml`). With them an editor completes keys, explains each one from SPEC.md on hover, and marks a typo, a value of the wrong kind, or a title cut short by a comma inside `{ }`. In VS Code, with the YAML extension, put this in `.vscode/settings.json`, with the version your project pins in
123
- place of 0.14.0 (a schema from an older release does not know the keys added since):
123
+ place of 0.15.0 (a schema from an older release does not know the keys added since):
124
124
 
125
125
  ```json
126
126
  {
127
127
  "yaml.schemas": {
128
- "https://unpkg.com/@delurio/cli@0.14.0/schemas/flow.schema.json": "**/flow.yaml",
129
- "https://unpkg.com/@delurio/cli@0.14.0/schemas/ui.schema.json": "**/ui.yaml",
130
- "https://unpkg.com/@delurio/cli@0.14.0/schemas/nav.schema.json": ["**/nav.yaml", "**/nav.extracted.yaml"],
131
- "https://unpkg.com/@delurio/cli@0.14.0/schemas/domain.schema.json": ["**/domain.yaml", "**/domain/*.yaml"],
132
- "https://unpkg.com/@delurio/cli@0.14.0/schemas/needs.schema.json": "**/needs.yaml",
133
- "https://unpkg.com/@delurio/cli@0.14.0/schemas/gaps.schema.json": "**/needs.gaps.yaml",
134
- "https://unpkg.com/@delurio/cli@0.14.0/schemas/binding.schema.json": ["**/binding.yaml", "**/binding.*.yaml", "**/*.binding.yaml"]
128
+ "https://unpkg.com/@delurio/cli@0.15.0/schemas/flow.schema.json": "**/flow.yaml",
129
+ "https://unpkg.com/@delurio/cli@0.15.0/schemas/ui.schema.json": "**/ui.yaml",
130
+ "https://unpkg.com/@delurio/cli@0.15.0/schemas/nav.schema.json": ["**/nav.yaml", "**/nav.extracted.yaml"],
131
+ "https://unpkg.com/@delurio/cli@0.15.0/schemas/domain.schema.json": ["**/domain.yaml", "**/domain/*.yaml"],
132
+ "https://unpkg.com/@delurio/cli@0.15.0/schemas/needs.schema.json": "**/needs.yaml",
133
+ "https://unpkg.com/@delurio/cli@0.15.0/schemas/gaps.schema.json": "**/needs.gaps.yaml",
134
+ "https://unpkg.com/@delurio/cli@0.15.0/schemas/binding.schema.json": ["**/binding.yaml", "**/binding.*.yaml", "**/*.binding.yaml"]
135
135
  },
136
136
  "json.schemas": [
137
- { "fileMatch": ["**/catalog/*.json"], "url": "https://unpkg.com/@delurio/cli@0.14.0/schemas/catalog.schema.json" }
137
+ { "fileMatch": ["**/catalog/*.json"], "url": "https://unpkg.com/@delurio/cli@0.15.0/schemas/catalog.schema.json" }
138
138
  ]
139
139
  }
140
140
  ```
package/SPEC.md CHANGED
@@ -175,7 +175,7 @@ rules: [ { id, rule } ]
175
175
  | `in`, `unless` | the flow states the node is shown in, and those it is not |
176
176
  | `when` | a guard or context flag that must hold for the node to show |
177
177
  | `disabledIn` | states where the node is shown but disabled |
178
- | `disabledWhen` | an expression over the context (§3): where it holds, the node is shown but disabled, in any state that shows it |
178
+ | `disabledWhen` | an expression over the context (§3): where it holds, the node is shown but disabled, in any state that shows it. A repeat node's may read its place among the rows (Rows of a repeat, below) |
179
179
  | `emits` | the event the node sends when pressed |
180
180
  | `duringStep: true` | in a state that runs a step (`invoke`): the node stays usable while the step runs, and its event is handled once the step ends, by the state the step's outcome leads to (below) |
181
181
  | `initialFocus` | on a page: the node that has focus when it opens (Focus, below) |
@@ -262,6 +262,8 @@ Such a node is drawn once per row, in their order: on the page, on the tutorial
262
262
 
263
263
  A repeat node's `checked` may read its row as well, `checked: "row.id == answer"`: which option of a radio group is chosen, by what the context holds. A page draws each state's screen once, for all the situations that show it, so it draws only `checked: true`. A screen drawn for one situation, as the tutorial stage draws each step, reads `checked` over that situation's context and each row (`renderStageScreen`'s `ctx` in `@delurio/cli/wireframe`). `row.<field>` in the `checked` of a node without `repeat` keeps the graph from loading, as any other name that is not a variable or a guard does.
264
264
 
265
+ A repeat node's `disabledWhen` may read the place of the row it is drawn for among the rows it draws: `repeat.first` and `repeat.last`, true in the first row and in the last, and `repeat.index`, the row's number, from 1. So a list whose rows can be moved says that the first row's Move up is disabled and the other rows' are not (`disabledWhen: repeat.first`), and the same of the last row's Move down (`disabledWhen: repeat.last`), beside what the context says (`disabledWhen: "saving or repeat.first"`). A replay checks such a node on each element its locator finds, in the order of the page: the first is row 1, and the last is the last row. A row's fields are not read there: the rows the samples give illustrate the screens, and which of the app's rows holds which value only the app's data says, while a row's place is on the page. The flow does not know how many rows the app draws, so a press may come from any of them: where `check` holds a node's event to the states that show it enabled (`event-unhandled`, above), a `disabledWhen` that reads the place disables the node in a situation only where it holds in every row. The place is read as unknown there, and `not`, `and` and `or` keep what the rest decides, as in Kleene's three-valued logic: `saving or repeat.first` disables it where `saving` holds, and `repeat.first` alone nowhere. `repeat.first`, `repeat.last` or `repeat.index` in the `disabledWhen` of a node without `repeat`, and `row.<field>` in any `disabledWhen`, keep the graph from loading..
266
+
265
267
  A transition whose event a repeat node sends may set a variable from the row that was pressed: `effects: { choose: { set: { answer: row.id } } }`, the effect of the transition on `CHOOSE`. The flow alone does not say which row is pressed, and the sample rows illustrate the screens: they are not the app's data and never decide what the flow can reach. So the checker lets such a variable take any of its values, as `havoc` does (§2), whether the samples give rows or not, and every row the app may draw is among the situations it explores. A tutorial says which row it presses (`row`, §7), and takes the case that row gives.
266
268
 
267
269
  Adjacent nodes, in the order of `nodes`, that share the same `repeat` are drawn as one row per item, side by side: the number of an entry in a list of questions beside its state, or the cells of a table's row. A List holds, besides the ListItems after it, the rows of the nodes after it that share a repeat: each row is one item of the list, and a ListItem that begins a row is that item, with the other nodes beside its words. A List whose role is `table` or `grid` draws its items row by row: the header cells after it (role `columnheader`) form its header row, and the rows of the repeat nodes after them are the table's rows. The first node that is none of these ends the list, as before. A lone repeat node outside a list is drawn once per row, as it was drawn once. With a kit each node keeps its own template, and the rows are drawn around them; a table's row is an element of role `row`, so a kit draws a table with elements of roles `table` and `cell` (`<div role="table">`), not with `<table>`, out of which the HTML parser moves the rows. The expected accessibility tree gives the same rows. Decided on 22 Nov 2026, with rows in the samples and `checked` and effects that read the row.
@@ -407,7 +409,7 @@ notModeled: [ "..." ]
407
409
 
408
410
  ## 7. Binding (`kind: binding`) and tutorial (`kind: tutorial`)
409
411
 
410
- A **binding** ties a flow to a running app for replay and recording: `apps` (base addresses), `browser`, `data` (JSON or dotenv sources, read again after each command, secrets masked in reports), `signIn`, `accounts`, `scenarios` (each a `given` start, the account, the page to `open`, `setup` and `teardown`, `javaScript: false` for a walk with JavaScript off, and `enter`, the way the walk comes in), `events` (the actions that cause an event no node on screen sends), `effects` (the checks of what a step changes outside the screen), `states` (a URL glob or a text a state must show, the server `call` a step makes, the account `as` whose screen it is, and `before` actions) and `nodes` (a locator for a node that role and name cannot find, or `before` actions such as opening a menu, `count` for how many elements it finds, or `skip` with a reason). It may `extends` a shared binding. An action is one of `goto`, `reload`, `click`, `fill`, `attach`, `key`, `waitUrl`, `waitText`, `waitResponse`, `run` (a command, with `expect`), and any action may carry `as`. A locator is `frame`, `role`, `name`, `text`, `label`, `testId`, `css`, `hasText`, `within`, `nth`; `nth` takes one of what the rest finds, from 0 for the first, and a negative one counts from the end, -1 for the last (the row a step has just added); `frame` is the CSS selector of the iframe the element is drawn in, such as a payment provider's hosted form, and is looked in first; a string between slashes is a regular expression.
412
+ A **binding** ties a flow to a running app for replay and recording: `apps` (base addresses), `browser`, `data` (JSON or dotenv sources, read again after each command, secrets masked in reports), `signIn`, `accounts`, `scenarios` (each a `given` start, the account, the page to `open`, `setup` and `teardown`, `javaScript: false` for a walk with JavaScript off, `enter`, the way the walk comes in, and `then`, how a step that leaves a variable to chance comes out), `events` (the actions that cause an event no node on screen sends), `effects` (the checks of what a step changes outside the screen), `states` (a URL glob or a text a state must show, the server `call` a step makes or a request the page makes, `storage`, what the page's storage holds, the account `as` whose screen it is, and `before` actions) and `nodes` (a locator for a node that role and name cannot find, or `before` actions such as opening a menu, in every state or by state, `count` for how many elements it finds, `near`, the element it is drawn beside, `draws`, another flow's screen it holds, or `skip` with a reason). It may `extends` a shared binding. An action is one of `goto`, `reload`, `click`, `fill`, `attach`, `key`, `waitUrl`, `waitText`, `waitResponse`, `run` (a command, with `expect`), and any action may carry `as`; a `click`, a `fill` or an `attach` may be `optional`. A locator is `frame`, `role`, `name`, `text`, `label`, `testId`, `css`, `hasText`, `within`, `nth`; `nth` takes one of what the rest finds, from 0 for the first, and a negative one counts from the end, -1 for the last (the row a step has just added); `frame` is the CSS selector of the iframe the element is drawn in, such as a payment provider's hosted form, and is looked in first; a string between slashes is a regular expression.
411
413
 
412
414
  `schemas/binding.schema.json` gives every key a replay reads, of a flow's binding and of a navigation graph's (one with `nav`, `setup`, `personas`, `frames`, `pages` or `entries`). `check` holds `binding.yaml`, a variant of it beside it named `binding.<variant>.yaml` (`binding.noSessions.yaml`), and a shared binding named `<name>.binding.yaml`, to it, as it holds every graph file to its kind's schema (rule `schema`): a key that is not one, such as a misspelt `scenarios` that a replay would pass over, a value of the wrong kind, an action with two verbs or none, `expect` without `run`, a state's `fail` without its `call`, and a `setup` that does more than run commands. A file that `extends` another may leave out what that one gives, so the schema asks only for `kind`. What the binding names in the graph, a state, an event, a node, a context variable, an account, is held to it when a replay loads the binding: `replay --check` loads it and plans its walks with no browser and no app.
413
415
 
@@ -417,7 +419,17 @@ A **binding** ties a flow to a running app for replay and recording: `apps` (bas
417
419
 
418
420
  `as: <account>` on an action does it in that account's own browser, with its own cookies, opened and signed in the first time it is used: a step another person takes, such as a second member who approves or an invitee who accepts, is bound to actions `as` that person, and the walk goes on in the first browser after them. A state may carry `as` too: its screen is that person's, so it is checked, and its nodes are pressed, in their browser, while a state without `as` is the scenario's own account's. A state's `before: [actions]` runs when the walk reaches the state, before it is checked, such as that person opening the link an e-mail brought them. So a step another person takes after arriving by a mailed link is bound to its state: `as` the invitee, `before` opening the link. `effects: { <id>: [actions] }` checks what a step leaves outside the screen, such as an e-mail sent or a row written. `<id>` is an effect of the flow (§2) or an action of its domain (§5): the actions run after the walk takes a transition that applies that effect, or after a state that invokes that action ends with `DONE`. They are checks, typically a `run` with `expect` that reads a mail catcher's API or queries the database, and one that fails is a mismatch at that step.
419
421
 
420
- `count: <number | "{data.path}">` on a node says how many elements its locator finds, as a number or a value of the binding's data: for a `repeat` node (§4), how many items it shows, and for any other node, how many there are, such as four radios and no fifth. Without it a `repeat` node shows at least one item, and more are accepted. `call: <url glob>` on a state names the server call its `invoke` makes. The replay holds the call until it has checked what the state shows, so a step in progress (its status, the controls in `disabledIn`) is seen as it is, and then lets it go; on a walk through `FAIL.<class>` it compares the call's HTTP status with the `status` of the refusals that the class stands for (§2, `failures`; §5). A scenario with `javaScript: false` is walked with JavaScript off, through the pages marked `script` (§4).
422
+ `count: <number | "{data.path}">` on a node says how many elements its locator finds, as a number or a value of the binding's data: for a `repeat` node (§4), how many items it shows, and for any other node, how many there are, such as four radios and no fifth. Without it a `repeat` node shows at least one item, and more are accepted. `call: <url glob>` on a state names the server call its `invoke` makes. The replay holds the call until it has checked what the state shows, so a step in progress (its status, the controls in `disabledIn`) is seen as it is, and then lets it go; on a walk through `FAIL.<class>` it compares the call's HTTP status with the `status` of the refusals that the class stands for (§2, `failures`; §5). A state that invokes none of the flow's actions may name a `call` too: a request the page makes while the state is shown, such as one the browser sends to another server, or the one a script makes as the page loads. The replay holds it in the same way, until it has checked what the state shows, and then lets it go. `status` on it, a number or a list of numbers, is the HTTP status its answer has; an answer with another, or no such request while the walk is at the state, is a mismatch at that state.. A scenario with `javaScript: false` is walked with JavaScript off, through the pages marked `script` (§4).
423
+
424
+ A node's `before` is done before the node is pressed, such as opening the menu it sits in. It is a list of actions, done in every state that presses the node, or a map from states to such lists, where the node is reached another way in another state, such as a row's menu opened from the list and already open on the row's own page: `before: { listPage: [ { click: { role: button, name: Actions } } ], rowPage: [] }`. In a state the map names, its list is done; in a state it leaves out, nothing is. A key of the map that is not a state of the flow keeps the binding from loading..
425
+
426
+ `optional: true` on a `click`, a `fill` or an `attach` says that the app may not ask for it, such as a notice shown on some visits only, closed before the walk goes on. Once the page is still (the binding's `settle`), the walk looks for the action's element once, without waiting for it further. Where it is there, the action is done as any other, and a failure of it, such as the element disabled or an option that a `<select>` does not have, fails the step. Where it is not there, the action is passed over and the walk goes on. A passed-over action is never silent: the step's report lists it as passed over, naming its locator. `optional` on any other action is an error of the schema..
427
+
428
+ `storage` on a state says what the page's storage holds when the state is checked: `session`, the tab's `sessionStorage`, and `local`, its `localStorage`, each of the origin of the page the state is shown on, in the browser whose screen it is (`as`). Each is a map from a key glob (`*` stands for any run of characters) to what the keys it matches hold. `absent` says that no key it matches is there, such as the values a page wrote into a form and was to clear (`storage: { session: { 'rehber:*': absent } }`); any other value says that a key it matches is there and that each key it matches holds that value: a text, its `{placeholders}` filled in, or a regular expression between slashes. A stored value that is the word absent itself is matched by `/^absent$/`. What does not hold is a mismatch at that state; a storage that the state does not name is not read..
429
+
430
+ `near: <locator>` on a node says where it is drawn: beside the element the locator finds, such as a guide's box drawn at the button it points to. In every state that shows the node, each element its own locator finds is at most 24 CSS pixels from the element that `near` finds, measured between their border boxes as the page lays them out: the shortest distance between the two boxes, 0 where they overlap or one holds the other. `near` finds one element; finding none or several, or a node drawn farther away, is a mismatch at that state..
431
+
432
+ `draws: { flow: <flow dir>, bind: <its binding>, given: { .. }, states: { <state>: <its state> } }` on a node says that it holds another flow's screen, drawn by something other than that flow's own page, such as a guide that draws an app's form in a dialog of its own. The node's own locator, which it then gives, finds the one element that holds the screen, and the node's own role, name and text are not checked. In each state that shows the node, the replay checks inside that element the nodes of the drawn flow's state that `states` maps the state to, or, for a state that `states` leaves out, of the drawn flow's first screen: its initial state, past the states it leaves by itself. Each is checked as a replay of that flow checks it (§4: its role, name and text, whether it is disabled, what a field holds and whether a control is checked), over the drawn flow's context that `given` gives, read from that flow's catalog in the walk's language, and found through `bind`'s `nodes` where it gives them; which node has the focus is the drawing flow's to say, and is not checked there. Under `--absent`, a node of the drawn flow that the state does not show is not visible inside the element. The paths are relative to the binding's file. A drawn flow that does not load, a key of `states` that is not a state of this flow or a value that is not one of the drawn flow's, and a `given` that names what is not a variable of the drawn flow, keep the binding from loading..
421
433
 
422
434
  The binding's `data` is read when a walk starts, after its `setup`, and again after each `run`, so a command can hand the next action a value it has just written, such as the link or the code of an e-mail that it read from a mail catcher. A source whose file does not exist yet is allowed: the walk fails, naming the file, only when an action uses a value of it (`{<source>.<path>}`) while the file is still missing.
423
435
 
@@ -427,6 +439,8 @@ A walk reads every screen in one language: the binding's `browser.locale`, a BCP
427
439
 
428
440
  What a person types, or what a scenario's `setup` put in place, the graph may leave to chance (`havoc`, §2), while on the app it is what the scenario made it. So a walk keeps, through a `havoc`, the value its scenario's `given` gives each variable that starts from any value: a refusal is walked from a scenario that types the invalid value, and a way that needs the value changed there is not bound from that scenario (it is listed as not bound), rather than walked from one that set up the opposite. A variable that starts from a fixed value takes the values the `havoc` allows, as in the graph.
429
441
 
442
+ A scenario's `then` says how a step that leaves a variable to chance comes out on its walks, where the app decides it, such as which step of a guide is its last: `then: { <effect>: [ { <variable>: <value>, .. }, .. ] }`. The list is read in order, one entry each time the walk takes a transition that applies that effect (§2): with `then: { next: [ { lastStep: false }, { lastStep: true } ] }`, the first `next` leaves the guide short of its last step and the second brings it there. An entry gives values only to variables that the effect's `havoc` lists, each one of its values, and through that `havoc` those variables take them; a variable the entry leaves out, and every variable once the list has run out, keeps its value, as above. So a path is walked from the scenario only where each of its transitions agrees with the values the scenario gives, and one that needs other values is not bound from it, with that reason. A `then` that names an effect the flow does not have, a variable its `havoc` does not list, or a value that is not one of the variable's, keeps the binding from loading..
443
+
430
444
  Where several nodes on the screen send the event a step takes, such as two radios of one choice, the binding's `events.<EVENT>` says which is pressed, when it gives one; otherwise the first of them in `ui.yaml` that the state shows enabled is pressed.
431
445
 
432
446
  The **replay** walks a flow on the app through its binding and checks each state it stops in: the nodes the graph shows there (their role, name and text, whether they are disabled, which one has the focus, what a field holds and whether a control is checked, §4), the state's `url` and `text`, and the `effects` of the step that led there. `replay <flow dir> --bind <binding>` walks the main story (§2). `--to <state>` walks the shortest way to that state that the binding can drive. `--cover states` walks paths that together pass every reachable state, and `--cover transitions` paths that together take every reachable transition, from the binding's scenarios and through the steps it can drive (§2, `cover`). Under `--cover` every scenario of the binding is walked at least once. A path is walked from the first scenario, in the order of the file, that starts where it starts. A scenario that no path is walked from, as it starts where another does (the same `given`, with other data or another account) or reaches nothing the others do not, gets one walk of its own: of the paths that `cover` gives from its start alone, the one that covers the most, or its first screen when it can drive no step. That walk covers nothing new, and its id is that path's with the scenario's name. So one binding holds every scenario of a flow. `--scenario <name>`, given once or more, keeps the walks to those scenarios of the binding, with the other choices as they are (`--cover`, `--to`); a name the binding does not have is refused. The main story is walked from the scenario that starts where it starts, and when none of those given does, it is listed as not bound, with that reason. `--no-js` walks the pages marked `script` a second time with JavaScript off: those marked `optional` with their actions, those marked `actions` read only, their actions absent or disabled with a reason (§4). `--absent` also checks that a node the graph does not show in a state is not visible there; without it, the replay checks only what the graph shows, and a node it leaves out of a state may be there or not. An exit may open another page of the same frame: another address, not only another `#fragment`, or a document loaded anew since the screen checked before it. There `--absent` leaves out what that page draws as well, and the step's report names what it left out: the frame's chrome, the nodes that the screen before showed outside every page node it showed (a menu, a bar, a sidebar beside the page's main content), and a node found by a landmark's role alone, such as a bare `role: main`, which matches the next page's own. A node of the flow's page that is still there, its heading, a field, its dialog, or a landmark found by its name, is still a mismatch, and on an exit that stays on the page nothing is left out. A state or a node that only missing needs are drawn as is planned, not built: every walk leaves it out, and the replay lists it with those needs (§13).
@@ -447,9 +461,13 @@ A **tutorial** is written against a flow: `title`, `audience`, `locale`, `appNam
447
461
 
448
462
  `row: <n>` on a step that presses a repeat node (§4) says which of the node's sample rows it presses, counted from 1: `{ press: option, row: 2 }` presses the second option. Of the cases the press can take, the step takes the one in which each variable that the transition's effects set from the row (`row.<field>`) has that row's value. `check` stops the tutorial at that step (`tutorial-mismatch`) when `row` is not a whole number from 1, the step presses no node, the node has no `repeat`, the samples give it no rows or fewer than `n`, the row lacks a field the effects read, or no case of the press has the row's value, such as a value its variable does not have. A press on a repeat node without `row` takes the model's first case, as a step without `then` does.
449
463
 
464
+ A press, or an event a step gives with `after`, may lead into server steps, states with no screen, which pass on their own along their normal way (a transition with no event, then `DONE`) to the next screen. Where the event the step gives next with `after` (its first, after the press; the next in its list, after one of its events) is one that screen does not handle, but one of the server steps on the way handles it another way than its normal one, such as a failure (`FAIL.<class>`, §2) or a refusal, the walk stops at the first server step that handles it and takes it there: `{ press: send, after: FAIL.network }` shows the screen a send that got no answer leads to, where the send's normal way ends on the screen that says it was sent. An opening card's (`intro`) first event is taken in the same way at the server steps the flow passes from its start, so a failure that comes before the first screen, such as a page whose data cannot be loaded, is given there. An event that the screen handles is taken there, as before, and one that neither the screen nor a server step on the way handles stops the tutorial (`tutorial-mismatch`). The video walks the flow the same way..
465
+
466
+ `at: <seconds>` on a step that presses a node says when the press comes, counted from the step's start. Without it, on a screen that shows a dialog (a node whose role is `dialog` or `alertdialog`, §4), the press comes once the step's `say` has been said, so that the dialog is read before the press closes it; elsewhere it comes early in the step. A step on a dialog's screen that focuses nothing shows the whole dialog: its title, its words and its buttons. Before a video is made, the video tool warns, on the narration's timings, of a dialog on screen for under 2 seconds, of one that no step focuses or shows whole, and of a press that closes a dialog while its step is still being said..
467
+
450
468
  `stage` says what the video shows: the flow's screens (`screen`, the default), or its diagram (`diagram`), for a flow with no screens, such as two programs talking or a job in the background. On the diagram the camera goes from state to state, and the tutorial's own way is drawn as the story, whether or not it is the flow's `main` story; the diagram holds every transition, failures included. No state is passed on its own there: `show <state>` and `end <state>` walk the flow to their state along its normal way (a transition with no event, then `DONE`) and stop the tutorial when that way does not reach it, and every other event is given with `after`. `press`, `reveal` and `focus` point at nodes a diagram does not have, and stop it too. An `end` on the diagram needs no `card`; one it has is shown after the ending.
451
469
 
452
- `check` reads the `tutorial.yaml` beside a flow and replays it on the flow as the video does, from the start its `scenario` gives: a value of its list for each variable that starts from any value, and none that differs from a fixed `initial`. On the screens, a step that shows no screen passes on its own along its normal way (a transition with no event, then `DONE`), and one with no such way waits for an event given with `after`; on the diagram, `show` and `end` walk as above. A tutorial that no longer matches its flow is an error (`tutorial-mismatch`) that fails `--strict`, at the step where it stops: its `flow` is not the flow beside it; a step names a state, a node, an event, a variable or a value the graph does not have, or a `{word}` that is neither a sample value nor a node with visible text; `show` names a state the flow is not in; `cut` names a state no reachable situation is in, with the nodes it `reveal`s shown; `press` names a node the state does not show, or disables, or that sends no event the state handles; `after` names an event the state does not handle; `reveal` or `focus` names a node the step's screen does not show, or `focus` one shown only `when` something holds and not revealed; `end` names a state the flow is not in, or, given no state, the flow is not at an exit; or a `then` matches no case of its step. Every name is looked for on every step, and the steps are replayed once all are found.
470
+ `check` reads the `tutorial.yaml` beside a flow and replays it on the flow as the video does, from the start its `scenario` gives: a value of its list for each variable that starts from any value, and none that differs from a fixed `initial`. On the screens, a step that shows no screen passes on its own along its normal way (a transition with no event, then `DONE`), and one with no such way waits for an event given with `after`; on the diagram, `show` and `end` walk as above. A tutorial that no longer matches its flow is an error (`tutorial-mismatch`) that fails `--strict`, at the step where it stops: its `flow` is not the flow beside it; a step names a state, a node, an event, a variable or a value the graph does not have, or a `{word}` that is neither a sample value nor a node with visible text; `show` names a state the flow is not in; `cut` names a state no reachable situation is in, with the nodes it `reveal`s shown; `press` names a node the state does not show, or disables, or that sends no event the state handles; `after` names an event the state does not handle, nor a server step the step passes (above); `reveal` or `focus` names a node the step's screen does not show, or `focus` one shown only `when` something holds and not revealed; `end` names a state the flow is not in, or, given no state, the flow is not at an exit; or a `then` matches no case of its step. Every name is looked for on every step, and the steps are replayed once all are found.
453
471
 
454
472
  A video is an MP4 file. Its captions are WebVTT (`tutorial.vtt`, what an HTML `<track>` plays, with `tutorial.srt` beside it), and its chapters a WebVTT chapters track (`chapters.vtt`). Every video delurio publishes is marked as AI-made in three ways, none of which can be turned off: a first card that says the whole video is made with AI, an imperceptible watermark in the sound and the picture, and signed, time-stamped provenance metadata (C2PA). The watermark and the metadata are the machine-readable marking that Art. 50(2) of the EU AI Act asks of a system that generates synthetic audio and video, and the Commission's Code of Practice of 10 June 2026 describes. The disclosure is there because every voice is made from real people's recordings and may resemble one of them, which Art. 50(4) treats as a deep fake to disclose; a catalogue voice is no different from a cloned one in that, and delurio cannot tell which listener would recognise which voice (Taha, 24 Oct 2026: "Klon olmayan sesler de gerçek insan sesinden"). It opens the video, since Art. 50(5) asks for it at the latest at the first exposure, and no label is burnt into the picture after it (Taha, 25 Oct 2026: "en başta 'videonun tamamı' diye belirtip yazsak yetmez mi"); a clip cut from the middle loses the card but keeps the watermark and the metadata. A video's maker may draw its own mark in a corner of the picture, for the whole video. That mark is not the AI label, and neither is a draft's stamp (below): the first card is the disclosure, and nothing but that mark and the stamp is burnt into the picture. A lawyer is to confirm this reading. delurio's video tool adds both to every video it makes; the certificate that signs the metadata is not on the C2PA trust list yet.
455
473
 
@@ -478,7 +496,7 @@ A kit says how the components of `ui.yaml` look in one product: `tokens` and `da
478
496
  - its own files: any file in the graph's folder, its bindings and catalogs included. `viz/`, `video/` and `anchors.lock.yaml` are written by the tools and touch nothing, nor do a product's gaps (`needs.gaps.yaml`), a hidden file, or words for people (`.md`, `.mdx`, `.txt`, `.rst`, `LICENSE`, `NOTICE`).
479
497
  - an anchor: a changed file that an anchor of the graph's files names. An anchor that names a line is touched when a hunk of the change covers that line on either side, or adds or removes lines right beside it: the reason is line-precise. An anchor that names a whole file, an anchor on a file that is added, deleted or renamed, and an anchor on a file whose changed lines are not known are touched at file level. An anchor of the domain touches the flows that invoke the action it is on; one on an entity, the flows that invoke an action naming the entity; one on a policy, the flows that invoke an action the policy lists; one on an invariant, the flows that invoke an action it names; any other, every flow of the domain. A citation in words is no anchor, and touches nothing.
480
498
  - its domain (§5): the flows that invoke an action the change adds, removes or changes, an action that names a changed entity or that a policy reading or writing it lists, an action that a changed policy lists, or an action that a changed invariant names. A change to another key of the domain (not its `title`, `summary`, `status`, `description`, `source`, `notes` or `decisions`) touches every flow of it, and so does a domain that is new or whose files before the change do not load.
481
- - a binding (§7), anywhere in the repository: its graph. A change to a binding that others `extends` touches each graph they bind. A helper of a binding touches the binding's graph: a file that its commands (`run`), its data sources (`json`, `dotenv`) or its attachments (`file`) name, else a file in the binding's folder, else a file in the folder its commands run from (`root`). Each graph is given the closest of these ties only. A binding whose scenario `enter`s through a graph is touched when that graph's own files change.
499
+ - a binding (§7), anywhere in the repository: its graph. A change to a binding that others `extends` touches each graph they bind. A helper of a binding touches the binding's graph: a file that its commands (`run`), its data sources (`json`, `dotenv`) or its attachments (`file`) name, else a file in the binding's folder, else a file in the folder its commands run from (`root`). Each graph is given the closest of these ties only. A binding whose scenario `enter`s through a graph, or one of whose nodes `draws` a flow (§7, proposed on 23 Nov 2026), is touched when that graph's own files change.
482
500
  - a shared file: a catalog or a kit that a graph names outside its own folder touches every graph that names it.
483
501
 
484
502
  What is not known touches every graph, and the answer says why: the base or the head is not a commit, or the two have no merge base; the list of changed files was cut short; a graph file does not load; or a file in the graphs folder belongs to no graph. A file of a graph that the change removes touches nothing. `--all` touches every graph. `--json` gives the answer as `delurio-affected/0`: `base` (the merge base) and `head`, `all` (why every graph is touched, or null), `graphs` (each with its `id`, `dir`, `kind`, `reasons` and `bindings`, the repository's bindings of it; a reason has its `rule`, the changed `file`, `precision` for an anchor, and what it `say`s), `untouched` (how many graphs are not touched), `unmapped` (the changed files that touch no graph) and `changed` (how many files changed). `affected` exits 0 when it answers, and 1 when it cannot run: no `--base`, an option without its value, a folder that is not a git checkout, or a graphs folder outside it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delurio/cli",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "The open checker and page of delurio-graph/0: check every graph in a project's own CI, offline, with GNU error lines and SARIF.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -47,12 +47,12 @@
47
47
  "elkjs": "0.12.1"
48
48
  },
49
49
  "optionalDependencies": {
50
- "@delurio/cli-linux-x64-gnu": "0.14.0",
51
- "@delurio/cli-linux-x64-musl": "0.14.0",
52
- "@delurio/cli-linux-arm64-gnu": "0.14.0",
53
- "@delurio/cli-linux-arm64-musl": "0.14.0",
54
- "@delurio/cli-darwin-arm64": "0.14.0",
55
- "@delurio/cli-win32-x64-msvc": "0.14.0"
50
+ "@delurio/cli-linux-x64-gnu": "0.15.0",
51
+ "@delurio/cli-linux-x64-musl": "0.15.0",
52
+ "@delurio/cli-linux-arm64-gnu": "0.15.0",
53
+ "@delurio/cli-linux-arm64-musl": "0.15.0",
54
+ "@delurio/cli-darwin-arm64": "0.15.0",
55
+ "@delurio/cli-win32-x64-msvc": "0.15.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@napi-rs/cli": "3.10.12"
@@ -401,6 +401,41 @@
401
401
  },
402
402
  "description": "Values for the sample placeholders of the graph's texts, over the binding's samples."
403
403
  },
404
+ "then": {
405
+ "type": "object",
406
+ "description": "How the steps that leave a variable to chance (havoc) come out on this scenario's walks, by the effect: a list read in order, one entry each time the walk takes a transition that applies the effect, each entry a value for some of the variables the effect's havoc lists. A variable an entry leaves out, and every variable once the list has run out, keeps its value. Proposed on 23 Nov 2026.",
407
+ "examples": [
408
+ {
409
+ "next": [
410
+ {
411
+ "lastStep": false
412
+ },
413
+ {
414
+ "lastStep": true
415
+ }
416
+ ]
417
+ }
418
+ ],
419
+ "propertyNames": {
420
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
421
+ },
422
+ "additionalProperties": {
423
+ "type": "array",
424
+ "minItems": 1,
425
+ "items": {
426
+ "type": "object",
427
+ "minProperties": 1,
428
+ "additionalProperties": {
429
+ "type": [
430
+ "string",
431
+ "number",
432
+ "boolean",
433
+ "null"
434
+ ]
435
+ }
436
+ }
437
+ }
438
+ },
404
439
  "setup": {
405
440
  "type": "array",
406
441
  "description": "Commands run before the walk, such as seeding the database: run only.",
@@ -523,7 +558,7 @@
523
558
  "description": "A scenario whose shortest drivable path reaches this state, for a tutorial's `cut`."
524
559
  },
525
560
  "call": {
526
- "description": "The server call the state makes: its URL glob, or { url, method, action, code, returns }. Held while the state's own screen is checked, and its HTTP status compared with the refusal's on a FAIL.<class> walk.",
561
+ "description": "The server call the state makes: its URL glob, or { url, method, action, code, returns, status }. Held while the state's own screen is checked, and its HTTP status compared with the refusal's on a FAIL.<class> walk. On a state that invokes none of the flow's actions, a request the page makes while the state is shown, such as one to another server; status is then the HTTP status its answer has.",
527
562
  "anyOf": [
528
563
  {
529
564
  "type": "string",
@@ -588,6 +623,29 @@
588
623
  },
589
624
  "minProperties": 1
590
625
  }
626
+ },
627
+ "status": {
628
+ "description": "On a state that invokes none of the flow's actions: the HTTP status the call's answer has, or a list of those it may have. Proposed on 23 Nov 2026.",
629
+ "anyOf": [
630
+ {
631
+ "type": "integer",
632
+ "minimum": 100,
633
+ "maximum": 599
634
+ },
635
+ {
636
+ "type": "array",
637
+ "minItems": 1,
638
+ "uniqueItems": true,
639
+ "items": {
640
+ "type": "integer",
641
+ "minimum": 100,
642
+ "maximum": 599
643
+ }
644
+ }
645
+ ],
646
+ "examples": [
647
+ 404
648
+ ]
591
649
  }
592
650
  },
593
651
  "required": [
@@ -596,6 +654,45 @@
596
654
  }
597
655
  ]
598
656
  },
657
+ "storage": {
658
+ "type": "object",
659
+ "description": "What the page's storage holds when the state is checked: session (sessionStorage) and local (localStorage), of the origin of the page the state is shown on, in the browser whose screen it is. Proposed on 23 Nov 2026.",
660
+ "additionalProperties": false,
661
+ "minProperties": 1,
662
+ "properties": {
663
+ "session": {
664
+ "type": "object",
665
+ "minProperties": 1,
666
+ "description": "By key glob (* any run of characters): absent, no key it matches is there; any other value, a key it matches is there and each it matches holds that value (a text with {placeholders}, or a regular expression between slashes).",
667
+ "additionalProperties": {
668
+ "type": [
669
+ "string",
670
+ "number",
671
+ "boolean"
672
+ ]
673
+ }
674
+ },
675
+ "local": {
676
+ "type": "object",
677
+ "minProperties": 1,
678
+ "description": "By key glob (* any run of characters): absent, no key it matches is there; any other value, a key it matches is there and each it matches holds that value (a text with {placeholders}, or a regular expression between slashes).",
679
+ "additionalProperties": {
680
+ "type": [
681
+ "string",
682
+ "number",
683
+ "boolean"
684
+ ]
685
+ }
686
+ }
687
+ },
688
+ "examples": [
689
+ {
690
+ "session": {
691
+ "rehber:*": "absent"
692
+ }
693
+ }
694
+ ]
695
+ },
599
696
  "fail": {
600
697
  "type": "object",
601
698
  "description": "FAIL.<class> → how the held call is made to fail on a walk that leaves the state so, where the context does not cause it. Needs `call`.",
@@ -771,11 +868,28 @@
771
868
  "description": "Of what the rest finds, this one: from 0, the first; a negative one counts from the end, -1 the last."
772
869
  },
773
870
  "before": {
774
- "type": "array",
775
- "description": "Done before the node is pressed, such as opening the menu it sits in.",
776
- "items": {
777
- "$ref": "#/$defs/action"
778
- }
871
+ "description": "Done before the node is pressed, such as opening the menu it sits in: a list of actions, done in every state, or a map from states to lists, where the node is reached another way in another state; in a state the map leaves out, nothing is done. Proposed on 23 Nov 2026 (the map).",
872
+ "anyOf": [
873
+ {
874
+ "type": "array",
875
+ "items": {
876
+ "$ref": "#/$defs/action"
877
+ }
878
+ },
879
+ {
880
+ "type": "object",
881
+ "minProperties": 1,
882
+ "propertyNames": {
883
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
884
+ },
885
+ "additionalProperties": {
886
+ "type": "array",
887
+ "items": {
888
+ "$ref": "#/$defs/action"
889
+ }
890
+ }
891
+ }
892
+ ]
779
893
  },
780
894
  "skip": {
781
895
  "type": "string",
@@ -793,9 +907,91 @@
793
907
  "pattern": "^(?:\\{[^{}]+\\}|[0-9]+)$"
794
908
  }
795
909
  ]
910
+ },
911
+ "near": {
912
+ "$ref": "#/$defs/locator",
913
+ "description": "The element this node is drawn beside: in every state that shows the node, each element its locator finds is at most 24 CSS pixels from the one element this locator finds (0 where they overlap). Proposed on 23 Nov 2026."
914
+ },
915
+ "draws": {
916
+ "type": "object",
917
+ "description": "Another flow's screen that this node holds, drawn by something other than that flow's own page: the node's locator finds the one element that holds it, and the replay checks the drawn flow's nodes inside it, for the state that `states` maps each state to, or its first screen. Paths are relative to the binding's file. Proposed on 23 Nov 2026.",
918
+ "additionalProperties": false,
919
+ "properties": {
920
+ "flow": {
921
+ "type": "string",
922
+ "description": "The drawn flow's folder.",
923
+ "minLength": 1
924
+ },
925
+ "bind": {
926
+ "type": "string",
927
+ "description": "Its binding, where its nodes are found by its own `nodes`."
928
+ },
929
+ "given": {
930
+ "type": "object",
931
+ "description": "The drawn flow's context, for the variables its screens read that start from any value.",
932
+ "additionalProperties": {
933
+ "type": [
934
+ "string",
935
+ "number",
936
+ "boolean",
937
+ "null"
938
+ ]
939
+ }
940
+ },
941
+ "states": {
942
+ "type": "object",
943
+ "description": "By state of this flow that shows the node: the state of the drawn flow whose screen it holds.",
944
+ "additionalProperties": {
945
+ "type": "string",
946
+ "minLength": 1
947
+ }
948
+ }
949
+ },
950
+ "required": [
951
+ "flow"
952
+ ]
796
953
  }
797
954
  },
798
- "description": "Where the replay finds a node that its role and name cannot find, what it does before pressing it, how many elements it finds, or that it is skipped."
955
+ "description": "Where the replay finds a node that its role and name cannot find, what it does before pressing it, how many elements it finds, what it is drawn beside, another flow's screen it holds, or that it is skipped.",
956
+ "allOf": [
957
+ {
958
+ "$comment": "draws finds the element that holds the drawn screen by the node's own locator",
959
+ "if": {
960
+ "required": [
961
+ "draws"
962
+ ]
963
+ },
964
+ "then": {
965
+ "anyOf": [
966
+ {
967
+ "required": [
968
+ "role"
969
+ ]
970
+ },
971
+ {
972
+ "required": [
973
+ "text"
974
+ ]
975
+ },
976
+ {
977
+ "required": [
978
+ "label"
979
+ ]
980
+ },
981
+ {
982
+ "required": [
983
+ "testId"
984
+ ]
985
+ },
986
+ {
987
+ "required": [
988
+ "css"
989
+ ]
990
+ }
991
+ ]
992
+ }
993
+ }
994
+ ]
799
995
  }
800
996
  },
801
997
  "effects": {
@@ -1865,9 +2061,13 @@
1865
2061
  "as": {
1866
2062
  "type": "string",
1867
2063
  "description": "Done in this account's own browser context, opened and signed in on first use: a step another person takes."
2064
+ },
2065
+ "optional": {
2066
+ "const": true,
2067
+ "description": "On a click, a fill or an attach: one the app may not ask for, such as a notice shown on some visits only. Once the page is still, its element is looked for once: where it is not there, the action is passed over, and the step's report says so. Proposed on 23 Nov 2026."
1868
2068
  }
1869
2069
  },
1870
- "description": "One thing the replay does: one of goto, reload, click, fill, attach, key, waitUrl, waitText, waitResponse, download, resize and run, which may carry `as`.",
2070
+ "description": "One thing the replay does: one of goto, reload, click, fill, attach, key, waitUrl, waitText, waitResponse, download, resize and run, which may carry `as`; a click, a fill or an attach may be optional.",
1871
2071
  "anyOf": [
1872
2072
  {
1873
2073
  "required": [
@@ -2142,6 +2342,33 @@
2142
2342
  "run"
2143
2343
  ]
2144
2344
  }
2345
+ },
2346
+ {
2347
+ "$comment": "optional goes with click, fill or attach",
2348
+ "if": {
2349
+ "required": [
2350
+ "optional"
2351
+ ]
2352
+ },
2353
+ "then": {
2354
+ "anyOf": [
2355
+ {
2356
+ "required": [
2357
+ "click"
2358
+ ]
2359
+ },
2360
+ {
2361
+ "required": [
2362
+ "fill"
2363
+ ]
2364
+ },
2365
+ {
2366
+ "required": [
2367
+ "attach"
2368
+ ]
2369
+ }
2370
+ ]
2371
+ }
2145
2372
  }
2146
2373
  ]
2147
2374
  },
@@ -273,8 +273,8 @@
273
273
  "disabledIn": { "$ref": "#/$defs/states", "description": "The states where the node is shown but disabled." },
274
274
  "disabledWhen": {
275
275
  "$ref": "#/$defs/expression",
276
- "description": "An expression over the flow's context (SPEC.md §3): where it holds, the node is shown but disabled, in any state that shows it, such as a button that waits until a VAT number is typed or a box is ticked. Beside disabledIn, the node is disabled where either says so. A replay compares it in each situation it stops in.",
277
- "examples": ["not vatGiven", "not accepted"]
276
+ "description": "An expression over the flow's context (SPEC.md §3): where it holds, the node is shown but disabled, in any state that shows it, such as a button that waits until a VAT number is typed or a box is ticked. Beside disabledIn, the node is disabled where either says so. A replay compares it in each situation it stops in. A repeat node's may also read its row's place among the rows it draws: repeat.first, repeat.last and repeat.index (from 1), such as the first row's Move up (proposed on 23 Nov 2026).",
277
+ "examples": ["not vatGiven", "not accepted", "repeat.first", "saving or repeat.last"]
278
278
  },
279
279
  "emits": {
280
280
  "type": "string",