@smartkomm/plexus-cli 0.1.96 → 0.1.98

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.
@@ -1 +1 @@
1
- 8048803cecc76d28ac9ae7eef6a196363625a0966f42704c1e8952ffecc8b5a7
1
+ d63943870d0ecc31eb243118f882b7ee44d54b35e1f95348b00c346d47d19a90
@@ -1523,6 +1523,7 @@ Add a field to a section (types: string|boolean|consent|date|enum|email|tel|addr
1523
1523
  | `--label <value>` | Field label (default: key) |
1524
1524
  | `--label-en <value>` | English label — required with --label (every SmartForm text needs German and English) |
1525
1525
  | `--required` | Mark required |
1526
+ | `--review-required` | Staff check the entered value: a review node of this form waits until it is ticked |
1526
1527
  | `--bucket <value>` | Party bucket (e.g. applicant, kind) |
1527
1528
  | `--enum <value>` | Inline enum options (a,b,c) — type enum |
1528
1529
  | `--enum-list-key <value>` | Tenant custom_field_lists key (runtime-resolved list) |
@@ -1640,6 +1641,7 @@ Set a field's validation/visibility expressions and flags
1640
1641
  | `--label <value>` | New label |
1641
1642
  | `--label-en <value>` | English label — required with --label (every SmartForm text needs German and English) |
1642
1643
  | `--required` | Required (or --no-required) |
1644
+ | `--review-required` | Staff check the entered value before a review of this form passes (or --no-review-required) |
1643
1645
  | `--visible-if <value>` | visibleIf ("" clears) |
1644
1646
  | `--required-if <value>` | requiredIf ("" clears) |
1645
1647
  | `--default <value>` | defaultValue expression ("" clears) |
@@ -2047,10 +2049,9 @@ Insert a workflow node + sync progress layout/wiring; validate before write
2047
2049
  | `--after <value>` | Insert after this node id (default: before the end node) |
2048
2050
  | `--on-edge <value>` | Insert on exactly this edge — <fromNodeId>:<outcome>; the new node continues to the edge's old target (excludes --after) |
2049
2051
  | `--progress <value>` | Put a progress event on an EXISTING board state instead of a new column — <event>=<stateId> (repeatable) |
2050
- | `--reads <value>` | review only: the entered fields a reviewer ticks, as addresses — '$node.form.admission.a,$node.form.admission.b' (without it the review ticks nothing) |
2051
2052
  | `--outcomes <value>` | Outcome routing: <outcome>:<target>,… (defaults splice into chain) |
2052
2053
  | `--decision-outcomes <value>` | decision only: author a custom outcome SET — <id>:<granted\|rejected\|waitlisted\|other>:<Deutsch>:<English>,… (configurable decision node; route with --outcomes) |
2053
- | `--form <value>` | form: SmartForm slug to bind (or the new form's slug with --new-form) · engagePush (required): the form instance it maps, an address '$node.<formNode>.admission' |
2054
+ | `--form <value>` | form: SmartForm slug to bind (or the new form's slug with --new-form) · engagePush (required): the form instance it maps · review: the form whose review-required fields it checks — an address '$node.<formNode>.admission' |
2054
2055
  | `--new-form` | form only: scaffold the --form SmartForm first, then bind it |
2055
2056
  | `--adopt-form <value>` | form only: continue this form instance instead of creating one — '$node.<formNode>.admission' (excludes --form) |
2056
2057
  | `--contract <value>` | countersign (required) · engagePush (when the mapping reads it): the contract — '$node.<contractNode>.contract' |
@@ -2101,7 +2102,7 @@ Add form fields to a node's reads (addresses already read are kept); validate be
2101
2102
  | Option | Description |
2102
2103
  |---|---|
2103
2104
  | `--dir <value>` (required) | Bundle directory |
2104
- | `--node <value>` (required) | Node id (decision, review or governedDocument) |
2105
+ | `--node <value>` (required) | Node id (decision or governedDocument) |
2105
2106
  | `--address <value>` | A form field's address '$node.<formNode>.admission.<field>' (repeatable, comma-separated) |
2106
2107
  | `--from <value>` | Short form with --field: the form node whose fields are read |
2107
2108
  | `--field <value>` | Short form with --from: field paths of that node's form (repeatable, comma-separated) |
@@ -2257,7 +2258,7 @@ Edit a workflow node (label/assign-decision/form/target/contract/payment/routing
2257
2258
  | `--flag-key <value>` | setFlag only: external-flag key |
2258
2259
  | `--flag-value <value>` | setFlag only: value — true\|false |
2259
2260
  | `--target <value>` | setFlag only: the form instance the flag is raised on — '$node.<formNode>.admission' |
2260
- | `--form <value>` | form node: rebind to this carried SmartForm slug · resolver governedDocument / engagePush: the form instance it reads — '$node.<formNode>.admission' |
2261
+ | `--form <value>` | form node: rebind to this carried SmartForm slug · resolver governedDocument / engagePush / review: the form instance it reads — '$node.<formNode>.admission' |
2261
2262
  | `--contract <value>` | countersign / engagePush: the contract — '$node.<contractNode>.contract' |
2262
2263
  | `--payment <value>` | engagePush only: the payment — '$node.<paymentNode>.payment' |
2263
2264
  | `--outcomes <value>` | Rewrite routing: <outcome>:<target>,… |
@@ -2372,7 +2373,7 @@ Replace the form fields a node reads before acting (readiness gate); validate be
2372
2373
  | Option | Description |
2373
2374
  |---|---|
2374
2375
  | `--dir <value>` (required) | Bundle directory |
2375
- | `--node <value>` (required) | Node id (decision, review or governedDocument) |
2376
+ | `--node <value>` (required) | Node id (decision or governedDocument) |
2376
2377
  | `--address <value>` | A form field's address '$node.<formNode>.admission.<field>' (repeatable, comma-separated) |
2377
2378
  | `--from <value>` | Short form with --field: the form node whose fields are read |
2378
2379
  | `--field <value>` | Short form with --from: field paths of that node's form (repeatable, comma-separated) |
@@ -65,11 +65,11 @@ Which flag sets which field:
65
65
  | Field | Verb / flag |
66
66
  |---|---|
67
67
  | an input binding | `node set-input --address` (or `--from/--field`) |
68
- | `reads` (decision / review / governedDocument) | `node set-reads|add-reads|remove-reads --address`; review at add: `node add --reads` |
68
+ | `reads` (decision / governedDocument) | `node set-reads|add-reads|remove-reads --address` |
69
69
  | `requires` (completenessCheck) | `node set-requires|add-requires|remove-requires --address`; at add: `--require` |
70
70
  | setFlag `inputs.target` (a binding) | `node add|set --target` |
71
71
  | form `adoptForm` | `node add --adopt-form` |
72
- | resolver governedDocument / engagePush `form` | `node set --form '<instance address>'` (engagePush also at add) |
72
+ | resolver governedDocument / engagePush / review `form` | `node set --form '<instance address>'` (engagePush and review also at add) |
73
73
  | countersign / engagePush `contract`, engagePush `payment` | `node add|set --contract|--payment` |
74
74
  | roleAssign / completenessCheck `person` | `node add|set --person` |
75
75
  | task `when`, `reads`, `documents` | `node task add|set --when|--reads|--documents` (`field:<address>`, `document:$node.<node>.document`; an own slot stays `artifact:<key>`) |
@@ -26,6 +26,9 @@ plexus-cli offer form field set --dir <bundle> --key kind.nachweis --doc-mime ap
26
26
  # refuses anything else: config.docref-min-files). "" clears the minimum.
27
27
  plexus-cli offer form field set --dir <bundle> --key <field> --doc-multiple --doc-min-files 2
28
28
  plexus-cli offer form field set --dir <bundle> --key kind.attest --required-for sonderfall # outcome-scoped required
29
+ # Review-required („Prüfpflichtig"): a review node of this form waits until staff ticked it
30
+ # (entered, non-repeated fields only; --no-review-required removes the mark).
31
+ plexus-cli offer form field set --dir <bundle> --key unterlagen.zeugnis --review-required
29
32
  # Boolean as an explicit Ja | Nein answer (nothing preselected; drop any --default first,
30
33
  # publish refuses one: config.yesno-default). "" returns to the checkbox.
31
34
  plexus-cli offer form field set --dir <bundle> --key kind.allergien --presentation yesNo --default ""
@@ -17,7 +17,7 @@ instead of adding one. Replaces the hand-written bundle edits of `apply-doccheck
17
17
  # A review step on exactly the edge form —standard→ (whatever it pointed at):
18
18
  plexus-cli offer workflow node add --dir <dir> --type review --node docCheck \
19
19
  --label "Unterlagen prüfen" --label-en "Check documents" \
20
- --reads '$node.form.admission.kind.masernschutz,$node.form.admission.kind.proofOfIdentity' \
20
+ --form '$node.form.admission' \
21
21
  --on-edge form:standard \
22
22
  --progress reviewing=eingereicht \
23
23
  --assign-decision bewerbungsteam
@@ -38,12 +38,15 @@ plexus-cli offer workflow node set --dir <dir> --node docCheck --outcomes review
38
38
  has (the family keeps reading „Eingereicht"). Without it the node gets its own state and
39
39
  column — for a review that is a second „In Prüfung" column, which the board's
40
40
  distinct-label rule (`checkProgressBoardDistinctLabels`) refuses.
41
- - `--reads` names the fields a reviewer of a `--type review` ticks (entered, non-repeated
42
- fields only), each by its full address `$node.<formNode>.admission.<field>` (single
43
- quotes; a bare key is refused with the addresses visible at the new node). Without it the
44
- review ticks nothing and still parks. Other node types declare reads with
45
- `node set-reads` (which also takes the short form `--from <formNode> --field <path>,…`).
46
- The form must run on every path before the new node (`[address/notVisible]` otherwise).
41
+ - `--form` names the form instance a `--type review` checks, by its full address
42
+ `$node.<formNode>.admission` (single quotes; a bare key is refused with the addresses
43
+ visible at the new node). What a reviewer ticks is not listed on the node: it is every
44
+ field the form marks review-required (`offer form field set --key <field>
45
+ --review-required`; entered, non-repeated fields only). A form that marks nothing passes
46
+ the gate with a warning (`[review/nothingDeclared]`); without `--form` the review ticks
47
+ nothing and still parks. A review takes no `reads` list (`[graph/retiredField]`; drop an
48
+ old one with `node set-reads --node <id> --clear`). The form must run on every path
49
+ before the new node (`[address/notVisible]` otherwise).
47
50
 
48
51
  ## Verify
49
52
  ```bash
@@ -56,9 +59,10 @@ plexus-cli --env staging --tenant <t> offer plan --dir <dir> # expect: ~ wor
56
59
  - Not idempotent: a second `node add` with the same `--node` is refused (`already exists`).
57
60
  - An event the node type does not emit, or a state the board does not have, is refused by
58
61
  name (`emits no progress event …`, `no state … on the process board`).
59
- - A review holds every non-rejecting outcome until all `reads` fields are ticked — so a
60
- waiting-list exit belongs on the decision after it, not on the review.
61
- - Making the read fields required is a form edit: `offer form field set --key <k> --required`.
62
+ - A review holds every non-rejecting outcome until every review-required field of its form
63
+ is ticked — so a waiting-list exit belongs on the decision after it, not on the review.
64
+ - Which fields are checked is a form edit: `offer form field set --key <k> --review-required`
65
+ (`--required` additionally makes the family fill it in).
62
66
  - Nothing here touches a live process until `offer apply --publish`; running applications
63
67
  stay on their pinned version.
64
68