@smartkomm/plexus-cli 0.1.98 → 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.
@@ -1 +1 @@
1
- d63943870d0ecc31eb243118f882b7ee44d54b35e1f95348b00c346d47d19a90
1
+ c2a99afef6979675b1cb1bca32bdc1ff677ee408170422805d8f52c39920f200
@@ -2080,6 +2080,7 @@ Insert a workflow node + sync progress layout/wiring; validate before write
2080
2080
  | `--target <value>` | setFlag only (required): the form instance the flag is raised on — '$node.<formNode>.admission' |
2081
2081
  | `--assign-team <value>` | countersign (required): permission-group key whose members countersign (assign.countersign) · engagePush (required): the team of a stopped transfer (assign.engagePush) |
2082
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) |
2083
2084
  | `--engage-contract-fields <value>` | engagePush only: off (default) \| on — the contract fields F01–F25, meaning not confirmed by the school yet |
2084
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) |
2085
2086
  | `--title <value>` | countersign only: the row's title, German (needs --title-en; default „Vertrag gegenzeichnen“) |
@@ -2237,7 +2238,7 @@ Remove form fields a completenessCheck waits for (an address it does not require
2237
2238
 
2238
2239
  ### `offer workflow node set`
2239
2240
 
2240
- 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
2241
2242
 
2242
2243
  - **Right:** offline — no deployment
2243
2244
  - **Effect:** offline — edits local files only
@@ -2287,6 +2288,7 @@ Edit a workflow node (label/assign-decision/form/target/contract/payment/routing
2287
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 |
2288
2289
  | `--condition <value>` | if only: replace the condition — one DSL expression over $env, e.g. '$env.staffInput.staffApplication' |
2289
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) |
2290
2292
  | `--type <value>` | (not editable) — remove + add to change node type |
2291
2293
 
2292
2294
  ### `offer workflow node set-cockpit-fields`
@@ -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
  ```
@@ -47,6 +56,17 @@ plexus-cli offer workflow node set --dir <dir> --node docCheck --outcomes review
47
56
  nothing and still parks. A review takes no `reads` list (`[graph/retiredField]`; drop an
48
57
  old one with `node set-reads --node <id> --clear`). The form must run on every path
49
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.
50
70
 
51
71
  ## Verify
52
72
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartkomm/plexus-cli",
3
- "version": "0.1.98",
3
+ "version": "0.1.99",
4
4
  "description": "Unified Plexus admin + admission-offer config CLI (Convex backend).",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",