@delurio/cli 0.15.0 → 0.16.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,16 @@
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.16.0 (2026-11-25)
6
+
7
+ This release takes in what a pilot met when it planned tutorials for a whole panel's flows and filmed one video per flow (SPEC.md §7). The engine's tutorial planner and recorder changed with it; `check` replays a tutorial as the video does, so it changes the same way.
8
+
9
+ - A tutorial passes a state that moves on at once (`always`) as it passes a server step, along the first of its transitions whose guard holds, whatever the state shows: a form whose fields are checked while its Save is still drawn. Before, such a state was read as a screen where the walk stopped, so a tutorial whose next step showed the state after it got `tutorial-mismatch`, and the video plan could get no further.
10
+ - Where a step's event is handled both by the screen its way ends on and by server steps on the way, or by several server steps, such as a page that reads a registry and then a saved value and fails each to a screen of its own, the walk takes it at the first of them from which the step's events lead to the state the next step shows (`show` or `end`). Before, it took it at the first server step that handled it, whatever the next step showed; where none leads there, it still does.
11
+ - A cut may name its situation: `cut: { state, scenario, given }`, where `scenario` is the binding's scenario a recording reaches it through and `given` a value for each variable it names. `check` holds `given` to the flow's variables and values and cuts to a situation that has them; it does not read the binding, so `scenario` narrows nothing there. A `cut` that is neither a state nor that map is `tutorial-mismatch`.
12
+ - New warning of `check`, which fails nothing: `prose-placeholder`, a `{name}` in the flow's title, a state's title or a transition's `say` that neither a sample value nor a node gives. A tutorial planned from the graph says such a name as its bare name; before, the planner refused the whole flow at it.
13
+ - SPEC.md §7 lists the placeholders a binding string may use, in the order they are looked for, among them `{locale}` and `{lang}`, the locale the browser runs in and its language alone, so one binding serves every language a flow is replayed or filmed in; says that a recording runs the browser in its tutorial's language; and that a recording holds the calls and makes them fail as a replay does, so a step may show a progress dialog while its call runs and press its Cancel. `check` already accepted such a step; nothing else it does changes.
14
+
5
15
  ## 0.15.0 (2026-11-24)
6
16
 
7
17
  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.
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.15.0 (a schema from an older release does not know the keys added since):
123
+ place of 0.16.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.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"]
128
+ "https://unpkg.com/@delurio/cli@0.16.0/schemas/flow.schema.json": "**/flow.yaml",
129
+ "https://unpkg.com/@delurio/cli@0.16.0/schemas/ui.schema.json": "**/ui.yaml",
130
+ "https://unpkg.com/@delurio/cli@0.16.0/schemas/nav.schema.json": ["**/nav.yaml", "**/nav.extracted.yaml"],
131
+ "https://unpkg.com/@delurio/cli@0.16.0/schemas/domain.schema.json": ["**/domain.yaml", "**/domain/*.yaml"],
132
+ "https://unpkg.com/@delurio/cli@0.16.0/schemas/needs.schema.json": "**/needs.yaml",
133
+ "https://unpkg.com/@delurio/cli@0.16.0/schemas/gaps.schema.json": "**/needs.gaps.yaml",
134
+ "https://unpkg.com/@delurio/cli@0.16.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.15.0/schemas/catalog.schema.json" }
137
+ { "fileMatch": ["**/catalog/*.json"], "url": "https://unpkg.com/@delurio/cli@0.16.0/schemas/catalog.schema.json" }
138
138
  ]
139
139
  }
140
140
  ```
package/SPEC.md CHANGED
@@ -262,7 +262,7 @@ 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..
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
266
 
267
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.
268
268
 
@@ -419,27 +419,29 @@ A **binding** ties a flow to a running app for replay and recording: `apps` (bas
419
419
 
420
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.
421
421
 
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).
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 recording holds the same calls and makes them fail as a replay does, from the same binding: a step that takes `FAIL.<class>` is filmed with its call made to fail as the state's `fail` says, and a step that shows a state whose call runs, such as a progress dialog read and its Cancel pressed while users are updated, is filmed with the call held until the step is over, then let go, or made to fail where the step gives the failure.. A scenario with `javaScript: false` is walked with JavaScript off, through the pages marked `script` (§4).
423
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..
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
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..
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
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..
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
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..
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
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..
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.
433
433
 
434
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.
435
435
 
436
- A walk reads every screen in one language: the binding's `browser.locale`, a BCP 47 tag the browser is set to, or the replay's `--locale`. Each screen is checked against the flow's catalog of that language (§4), found by the whole tag first and then by its language alone: `tr-TR` reads `catalog/tr.json`, and `pt-BR` reads `pt-BR.json` before `pt.json`. A locale the flow has no catalog for is refused, never checked in another language. A flow the walk enters (`enter`) and a navigation graph are read in the same language. `--locale` may be given more than once: the walks are made in each locale, each with a report of its own. A walk keeps to its language: after a step that switches the app's language, the next screens are still read in the walk's. Without either, the screens are read against the catalog `ui.yaml` names.
436
+ A `{placeholder}` in a binding's string, such as an address, a value an action types or a locator's name, is filled from the first of these that gives it: `{walk}`, the walk's own id; a variable of the scenario's `vars`, or a field of its account; an app of `apps`; a value of `data` (`{<source>.<path>}`); and `{locale}` and `{lang}`, the locale the browser runs in and its language alone (`tr-TR` and `tr`), which is the binding's `browser.locale`, the replay's `--locale`, or the language of the tutorial a recording is told in (below). So one `open: '{app}/{lang}/settings/users'` serves every language a flow is replayed or filmed in. A placeholder that none of these gives fails the walk at the action that uses it, and so does `{locale}` or `{lang}` where no locale is given..
437
+
438
+ A walk reads every screen in one language: the binding's `browser.locale`, a BCP 47 tag the browser is set to, or the replay's `--locale`. Each screen is checked against the flow's catalog of that language (§4), found by the whole tag first and then by its language alone: `tr-TR` reads `catalog/tr.json`, and `pt-BR` reads `pt-BR.json` before `pt.json`. A locale the flow has no catalog for is refused, never checked in another language. A flow the walk enters (`enter`) and a navigation graph are read in the same language. `--locale` may be given more than once: the walks are made in each locale, each with a report of its own. A walk keeps to its language: after a step that switches the app's language, the next screens are still read in the walk's. Without either, the screens are read against the catalog `ui.yaml` names. A recording runs the browser in the language its tutorial is told in (the tutorial's `locale`), as `--locale` runs a walk, and finds the app's nodes by the flow's catalog of that language, so that a tutorial told in English does not look for "Apply" on a page opened in Turkish. Where the binding's `browser.locale` is of the same language, it is kept, with its region; where the flow has no catalog in the tutorial's language, the app is filmed in the binding's locale, and the video tool says so..
437
439
 
438
440
  `browser.ignoreHTTPSErrors: true` opens a page served with a certificate no authority signed, such as an app on a self-signed `https` origin in development; without it, such a page fails the walk.
439
441
 
440
442
  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.
441
443
 
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..
444
+ 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
445
 
444
446
  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.
445
447
 
@@ -455,19 +457,23 @@ A pull request need not replay every flow: `affected` (§9) says which flows and
455
457
 
456
458
  Replay over HTTP, with no browser, is an open issue; screenshots of every state on the real app are an open issue.
457
459
 
458
- A **tutorial** is written against a flow: `title`, `audience`, `locale`, `appName`, `voice`, `stage`, the `scenario` (the starting context), and `steps`. A step is `intro`, `chapter`, `show <state>`, `cut <state>` (jump, through a scenario the binding names), `reveal`/`focus` (nodes), `press <node>`, `after`, `then`, `card { title, body }`, `end <state>` (the exit the flow ends at, or the screen the video closes on), and `say`. Every step is replayed on the flow, so a tutorial that no longer matches the graph stops at that step. `{word}` in `say` is a sample value or a node's visible text.
460
+ A **tutorial** is written against a flow: `title`, `audience`, `locale`, `appName`, `voice`, `stage`, the `scenario` (the starting context), and `steps`. A step is `intro`, `chapter`, `show <state>`, `cut <state>` or `cut { state, scenario, given }` (jump, through a scenario the binding names), `reveal`/`focus` (nodes), `press <node>`, `after`, `then`, `card { title, body }`, `end <state>` (the exit the flow ends at, or the screen the video closes on), and `say`. Every step is replayed on the flow, so a tutorial that no longer matches the graph stops at that step. `{word}` in `say` is a sample value or a node's visible text.
459
461
 
460
462
  `then { <variable>: <value> }` says how a step comes out where an effect leaves it to chance (`havoc`, §2): what the host answered, what a folder held. Of the cases the step's transitions can take, the step takes the one in which these variables have these values. A step without `then` takes the model's first case, and a `then` that no case of the step matches stops the tutorial at that step. So a tutorial can go the way a person meets most, such as a host that lists their repositories, when the graph also allows every other answer.
461
463
 
462
464
  `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.
463
465
 
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..
466
+ 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. A state that moves on at once (`always`, §2) is passed in the same way, along the first of its transitions whose guard holds, whatever it shows, such as a form whose fields are checked while its Save is still drawn: the flow is never left there, so it is no screen a step shows.. 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 a server step on the way handles another way than its normal one, such as a failure (`FAIL.<class>`, §2) or a refusal, the walk may stop at that server step and take 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. Of the places that handle the event, the screen the way ends on and then each server step on the way, the walk takes the first from which the step's events lead to the state the next step shows (its `show` or its `end`): where two server steps in a row each handle a failure, each to a screen of its own, such as a page that reads a registry and then a saved value, the tutorial shows either. Where none of them leads there, or the next step names no state, the event is taken at the screen when it handles it, else at the first server step that does.. An event 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.
467
+
468
+ `cut: { state, scenario, given }` says which situation a cut jumps to, where its state alone leaves it open: `scenario`, the binding's scenario a recording reaches it through, and `given`, a value for each variable it names, such as `cut: { state: editing, given: { locked: false } }` for a user who is not locked. The step's words and checks are planned from that situation, and a recording films it there, so the two agree. `cut: <state>` takes the first situation the flow reaches in the state, with the nodes the step reveals shown, and a recording plans it where its binding reaches the state..
465
469
 
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..
470
+ `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
471
 
468
472
  `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.
469
473
 
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.
474
+ `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, or a state that moves on at once (above), 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` is neither a state nor `{ state, scenario, given }`, or names a state no reachable situation is in, with the values its `given` names and the nodes it `reveal`s shown (a `scenario` is the binding's, which `check` does not read: it narrows nothing there); `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.
475
+
476
+ A tutorial planned from the graph, such as the video tool's tutorials that together film every screen of a flow, says the graph's own words: the flow's `title`, a state's `title`, a transition's `say`. A `{name}` there is said as its sample value (§4, `samples`), or else as the bare name, such as an address in a title (`the user's form opens at form/{pk}`), and it no longer keeps the flow from being planned. `check` warns of each such name that neither a sample value nor a node gives (`prose-placeholder`), at the title or the transition that says it; the warning fails nothing, `--strict` included..
471
477
 
472
478
  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.
473
479
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delurio/cli",
3
- "version": "0.15.0",
3
+ "version": "0.16.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.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"
50
+ "@delurio/cli-linux-x64-gnu": "0.16.0",
51
+ "@delurio/cli-linux-x64-musl": "0.16.0",
52
+ "@delurio/cli-linux-arm64-gnu": "0.16.0",
53
+ "@delurio/cli-linux-arm64-musl": "0.16.0",
54
+ "@delurio/cli-darwin-arm64": "0.16.0",
55
+ "@delurio/cli-win32-x64-msvc": "0.16.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@napi-rs/cli": "3.10.12"