@smartkomm/plexus-cli 0.1.97 → 0.1.99
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/README.md +5 -5
- package/dist/cli.mjs +319 -289
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/references/commands.md +9 -6
- package/dist/skill/references/offer/addresses.md +2 -2
- package/dist/skill/references/offer/edit-smartform.md +3 -0
- package/dist/skill/references/offer/insert-and-rewire-node.md +34 -10
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c2a99afef6979675b1cb1bca32bdc1ff677ee408170422805d8f52c39920f200
|
|
@@ -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
|
|
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' |
|
|
@@ -2079,6 +2080,7 @@ Insert a workflow node + sync progress layout/wiring; validate before write
|
|
|
2079
2080
|
| `--target <value>` | setFlag only (required): the form instance the flag is raised on — '$node.<formNode>.admission' |
|
|
2080
2081
|
| `--assign-team <value>` | countersign (required): permission-group key whose members countersign (assign.countersign) · engagePush (required): the team of a stopped transfer (assign.engagePush) |
|
|
2081
2082
|
| `--engage-target <value>` | engagePush only (required): sandbox \| production |
|
|
2083
|
+
| `--when-nothing-owed <value>` | review only: park (default — someone looks at it) \| advance (pass through when no field is owed) |
|
|
2082
2084
|
| `--engage-contract-fields <value>` | engagePush only: off (default) \| on — the contract fields F01–F25, meaning not confirmed by the school yet |
|
|
2083
2085
|
| `--engage-config <value>` | engagePush only (required): JSON file with the mapping (node.engage — lookup ids, AIF ids; never commit a real school's file) |
|
|
2084
2086
|
| `--title <value>` | countersign only: the row's title, German (needs --title-en; default „Vertrag gegenzeichnen“) |
|
|
@@ -2101,7 +2103,7 @@ Add form fields to a node's reads (addresses already read are kept); validate be
|
|
|
2101
2103
|
| Option | Description |
|
|
2102
2104
|
|---|---|
|
|
2103
2105
|
| `--dir <value>` (required) | Bundle directory |
|
|
2104
|
-
| `--node <value>` (required) | Node id (decision
|
|
2106
|
+
| `--node <value>` (required) | Node id (decision or governedDocument) |
|
|
2105
2107
|
| `--address <value>` | A form field's address '$node.<formNode>.admission.<field>' (repeatable, comma-separated) |
|
|
2106
2108
|
| `--from <value>` | Short form with --field: the form node whose fields are read |
|
|
2107
2109
|
| `--field <value>` | Short form with --from: field paths of that node's form (repeatable, comma-separated) |
|
|
@@ -2236,7 +2238,7 @@ Remove form fields a completenessCheck waits for (an address it does not require
|
|
|
2236
2238
|
|
|
2237
2239
|
### `offer workflow node set`
|
|
2238
2240
|
|
|
2239
|
-
Edit a workflow node (label/assign-decision/form/target/contract/payment/routing/approval/confirm-issue/confirm-terms/terms-question/response-due-days/deadline/guest-role/settlement/payee/article/traeger/condition/engage-target); validate before write
|
|
2241
|
+
Edit a workflow node (label/assign-decision/form/target/contract/payment/routing/approval/confirm-issue/confirm-terms/terms-question/response-due-days/deadline/guest-role/settlement/payee/article/traeger/condition/engage-target/when-nothing-owed); validate before write
|
|
2240
2242
|
|
|
2241
2243
|
- **Right:** offline — no deployment
|
|
2242
2244
|
- **Effect:** offline — edits local files only
|
|
@@ -2257,7 +2259,7 @@ Edit a workflow node (label/assign-decision/form/target/contract/payment/routing
|
|
|
2257
2259
|
| `--flag-key <value>` | setFlag only: external-flag key |
|
|
2258
2260
|
| `--flag-value <value>` | setFlag only: value — true\|false |
|
|
2259
2261
|
| `--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' |
|
|
2262
|
+
| `--form <value>` | form node: rebind to this carried SmartForm slug · resolver governedDocument / engagePush / review: the form instance it reads — '$node.<formNode>.admission' |
|
|
2261
2263
|
| `--contract <value>` | countersign / engagePush: the contract — '$node.<contractNode>.contract' |
|
|
2262
2264
|
| `--payment <value>` | engagePush only: the payment — '$node.<paymentNode>.payment' |
|
|
2263
2265
|
| `--outcomes <value>` | Rewrite routing: <outcome>:<target>,… |
|
|
@@ -2286,6 +2288,7 @@ Edit a workflow node (label/assign-decision/form/target/contract/payment/routing
|
|
|
2286
2288
|
| `--traeger <value>` | generated contract (governedDocument, production resolver) only: the Träger that concludes and countersigns — a legal entity key (foundation.legalEntities[].key, a school_operator or service_entity); publish refuses an unknown one |
|
|
2287
2289
|
| `--condition <value>` | if only: replace the condition — one DSL expression over $env, e.g. '$env.staffInput.staffApplication' |
|
|
2288
2290
|
| `--engage-target <value>` | engagePush only: switch the target — sandbox \| production (the go-live step) |
|
|
2291
|
+
| `--when-nothing-owed <value>` | review only: park (someone looks at it) \| advance (pass through when no field is owed) |
|
|
2289
2292
|
| `--type <value>` | (not editable) — remove + add to change node type |
|
|
2290
2293
|
|
|
2291
2294
|
### `offer workflow node set-cockpit-fields`
|
|
@@ -2372,7 +2375,7 @@ Replace the form fields a node reads before acting (readiness gate); validate be
|
|
|
2372
2375
|
| Option | Description |
|
|
2373
2376
|
|---|---|
|
|
2374
2377
|
| `--dir <value>` (required) | Bundle directory |
|
|
2375
|
-
| `--node <value>` (required) | Node id (decision
|
|
2378
|
+
| `--node <value>` (required) | Node id (decision or governedDocument) |
|
|
2376
2379
|
| `--address <value>` | A form field's address '$node.<formNode>.admission.<field>' (repeatable, comma-separated) |
|
|
2377
2380
|
| `--from <value>` | Short form with --field: the form node whose fields are read |
|
|
2378
2381
|
| `--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 /
|
|
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
|
-
--
|
|
20
|
+
--form '$node.form.admission' \
|
|
21
21
|
--on-edge form:standard \
|
|
22
22
|
--progress reviewing=eingereicht \
|
|
23
23
|
--assign-decision bewerbungsteam
|
|
@@ -26,6 +26,15 @@ plexus-cli offer workflow node add --dir <dir> --type review --node docCheck \
|
|
|
26
26
|
plexus-cli offer workflow node add --dir <dir> --type waitlist --node warteliste \
|
|
27
27
|
--label "Warteliste" --label-en "Waiting list" --on-edge decision:waitlisted
|
|
28
28
|
|
|
29
|
+
# A second review after the completeness check that only waits when something is owed —
|
|
30
|
+
# a file handed in later; one already checked at submission passes through:
|
|
31
|
+
plexus-cli offer workflow node add --dir <dir> --type review --node pruefungNachreichen \
|
|
32
|
+
--label "Nachgereicht" --label-en "Supplied later" \
|
|
33
|
+
--form '$node.form.admission' \
|
|
34
|
+
--on-edge nachreichen:complete \
|
|
35
|
+
--when-nothing-owed advance \
|
|
36
|
+
--assign-decision bewerbungsteam
|
|
37
|
+
|
|
29
38
|
# Re-route an existing node's outcome afterwards:
|
|
30
39
|
plexus-cli offer workflow node set --dir <dir> --node docCheck --outcomes reviewed:decision
|
|
31
40
|
```
|
|
@@ -38,12 +47,26 @@ plexus-cli offer workflow node set --dir <dir> --node docCheck --outcomes review
|
|
|
38
47
|
has (the family keeps reading „Eingereicht"). Without it the node gets its own state and
|
|
39
48
|
column — for a review that is a second „In Prüfung" column, which the board's
|
|
40
49
|
distinct-label rule (`checkProgressBoardDistinctLabels`) refuses.
|
|
41
|
-
- `--
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
- `--form` names the form instance a `--type review` checks, by its full address
|
|
51
|
+
`$node.<formNode>.admission` (single quotes; a bare key is refused with the addresses
|
|
52
|
+
visible at the new node). What a reviewer ticks is not listed on the node: it is every
|
|
53
|
+
field the form marks review-required (`offer form field set --key <field>
|
|
54
|
+
--review-required`; entered, non-repeated fields only). A form that marks nothing passes
|
|
55
|
+
the gate with a warning (`[review/nothingDeclared]`); without `--form` the review ticks
|
|
56
|
+
nothing and still parks. A review takes no `reads` list (`[graph/retiredField]`; drop an
|
|
57
|
+
old one with `node set-reads --node <id> --clear`). The form must run on every path
|
|
58
|
+
before the new node (`[address/notVisible]` otherwise).
|
|
59
|
+
- `--when-nothing-owed park|advance` (review only, default `park`) says what the review does
|
|
60
|
+
when no field owes a tick and none is in correction: `park` — someone looks at it, the
|
|
61
|
+
step waits for „Prüfung abschließen"; `advance` — it moves on by itself at entry, with no
|
|
62
|
+
task, and the activity feed notes „Prüfung durchgereicht". Switch it later with
|
|
63
|
+
`offer workflow node set --node <id> --when-nothing-owed advance`. `advance` needs `--form`,
|
|
64
|
+
exactly one outcome and a form that marks at least one field review-required — otherwise
|
|
65
|
+
it would always pass, and the gate refuses it.
|
|
66
|
+
- A completeness check whose asked field is review-required, with no review of that form
|
|
67
|
+
between its „complete" (or „accepted incomplete") and an accepted end, is warned (`[review/unreviewedAfterSupply]`):
|
|
68
|
+
what the family hands in later would be accepted unseen. Insert a review with
|
|
69
|
+
`--when-nothing-owed advance` there.
|
|
47
70
|
|
|
48
71
|
## Verify
|
|
49
72
|
```bash
|
|
@@ -56,9 +79,10 @@ plexus-cli --env staging --tenant <t> offer plan --dir <dir> # expect: ~ wor
|
|
|
56
79
|
- Not idempotent: a second `node add` with the same `--node` is refused (`already exists`).
|
|
57
80
|
- An event the node type does not emit, or a state the board does not have, is refused by
|
|
58
81
|
name (`emits no progress event …`, `no state … on the process board`).
|
|
59
|
-
- A review holds every non-rejecting outcome until
|
|
60
|
-
waiting-list exit belongs on the decision after it, not on the review.
|
|
61
|
-
-
|
|
82
|
+
- A review holds every non-rejecting outcome until every review-required field of its form
|
|
83
|
+
is ticked — so a waiting-list exit belongs on the decision after it, not on the review.
|
|
84
|
+
- Which fields are checked is a form edit: `offer form field set --key <k> --review-required`
|
|
85
|
+
(`--required` additionally makes the family fill it in).
|
|
62
86
|
- Nothing here touches a live process until `offer apply --publish`; running applications
|
|
63
87
|
stay on their pinned version.
|
|
64
88
|
|