@smartkomm/plexus-cli 0.1.229 → 0.1.231
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/dist/cli.mjs +282 -312
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/SKILL.md +1 -1
- package/dist/skill/references/commands.md +2 -7
- package/dist/skill/references/offer/node-tasks.md +6 -1
- package/dist/skill/references/offer/skip-evaluation.md +54 -0
- package/dist/spec.snapshot.json +1 -1
- package/package.json +1 -1
- package/dist/skill/references/offer/appointment-task.md +0 -84
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
fda3f54920feb22c3e2799638c739c0c47c5c1a6ce22881a6c99331d10482c45
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -196,7 +196,6 @@ whole is the operator's (ask them; do not try).
|
|
|
196
196
|
| [organization/edit-org-structure.md](references/organization/edit-org-structure.md) | Mandant | Show, create, rename, move and delete Träger and units; remove a whole branch children-first. |
|
|
197
197
|
| [offer/add-workflow-node.md](references/offer/add-workflow-node.md) | Mandant | Insert a node (approval, form, contract, collectPayment, end …) into the workflow. |
|
|
198
198
|
| [offer/addresses.md](references/offer/addresses.md) | Mandant | How a node reads by full address ($node…, $task…, $env…), which flag sets which field, and the gate codes. |
|
|
199
|
-
| [offer/appointment-task.md](references/offer/appointment-task.md) | Mandant | Give a booked appointment its appointment task (held by the host, due N days after the end). |
|
|
200
199
|
| [offer/assignment-rule.md](references/offer/assignment-rule.md) | Mandant + Plattform | Change, test and publish who is responsible per slot; replace a person who leaves (`tenant-users groups revoke`). |
|
|
201
200
|
| [offer/attach-form-to-workflow.md](references/offer/attach-form-to-workflow.md) | Mandant | Bind an existing or new SmartForm to a form node. |
|
|
202
201
|
| [offer/author-form-scenarios.md](references/offer/author-form-scenarios.md) | Mandant | Add a form's test scenarios and $env variables. |
|
|
@@ -212,6 +211,7 @@ whole is the operator's (ask them; do not try).
|
|
|
212
211
|
| [offer/edit-live-tenant-offer.md](references/offer/edit-live-tenant-offer.md) | Mandant + Plattform | Change a live offer: fresh export → change → plan → apply → plan shows all same (signing connection steps need the operator). |
|
|
213
212
|
| [offer/edit-smartform.md](references/offer/edit-smartform.md) | Mandant | Change a SmartForm in detail (properties, order, English texts). |
|
|
214
213
|
| [offer/conditional-optional-action.md](references/offer/conditional-optional-action.md) | Mandant | Offer an optional action only under a condition over `$env`, e.g. for one stage |
|
|
214
|
+
| [offer/skip-evaluation.md](references/offer/skip-evaluation.md) | Mandant | Let the decider skip the evaluation a decision rule asks for |
|
|
215
215
|
| [offer/conditional-team.md](references/offer/conditional-team.md) | Mandant | Give a node's task to a team chosen by a yes/no answer of the form, else a default team |
|
|
216
216
|
| [offer/consent-field.md](references/offer/consent-field.md) | Mandant | Add a consent field (a checkbox that must be ticked) or convert a preset yes/no into one. |
|
|
217
217
|
| [offer/edit-workflow-node.md](references/offer/edit-workflow-node.md) | Mandant | Rename, rewire, rebind or reroute a node. |
|
|
@@ -2222,7 +2222,7 @@ Remove one optional action of a decision node (refused while requiresOneOf names
|
|
|
2222
2222
|
|
|
2223
2223
|
### `offer workflow node optional-action set`
|
|
2224
2224
|
|
|
2225
|
-
Create or change one optional action (spawnTasks) of a decision node; validate before write
|
|
2225
|
+
Create or change one optional action (spawnTasks or skipRule) of a decision node; validate before write
|
|
2226
2226
|
|
|
2227
2227
|
- **Right:** offline — no deployment
|
|
2228
2228
|
- **Effect:** offline — edits local files only
|
|
@@ -2245,6 +2245,7 @@ Create or change one optional action (spawnTasks) of a decision node; validate b
|
|
|
2245
2245
|
| `--clear-when` | Remove --when (always offered) |
|
|
2246
2246
|
| `--input <value>` | Task (one of --tasks, a record result) the presser answers in the trigger dialog |
|
|
2247
2247
|
| `--clear-input` | Remove --input (the press asks nothing) |
|
|
2248
|
+
| `--skip-rule` | New action that lifts the node's requiresOneOf for the current visit (no tasks) |
|
|
2248
2249
|
|
|
2249
2250
|
### `offer workflow node reads`
|
|
2250
2251
|
|
|
@@ -2521,9 +2522,6 @@ Add one composed task to a workflow node (result, blocks, condition, description
|
|
|
2521
2522
|
| `--optional <value>` | OPTIONAL task: nothing waits for it; its holder may close it without a result with this button (German, e.g. „Keine Einschätzung abgeben“; without --optional-en it stands in for English too) |
|
|
2522
2523
|
| `--optional-en <value>` | English words of the skip button |
|
|
2523
2524
|
| `--clear-optional` | The task is owed again (removes optional) |
|
|
2524
|
-
| `--appointment-of <value>` | TERMINAUFGABE: the task of this node whose appointment this one is done at (its result is an appointment). The task then waits for the booking, is held by the appointment's host (chosen among --team) and is due --due-days-after-end days after the appointment ends |
|
|
2525
|
-
| `--due-days-after-end <value>` | Terminaufgabe: days after the appointment's END until it is due (0–60; replaces --due-in-days) |
|
|
2526
|
-
| `--clear-appointment` | The task is no Terminaufgabe any more (removes appointment) |
|
|
2527
2525
|
|
|
2528
2526
|
### `offer workflow node task delete`
|
|
2529
2527
|
|
|
@@ -2592,9 +2590,6 @@ Change the given fields of one composed task; validate before write
|
|
|
2592
2590
|
| `--optional <value>` | OPTIONAL task: nothing waits for it; its holder may close it without a result with this button (German, e.g. „Keine Einschätzung abgeben“; without --optional-en it stands in for English too) |
|
|
2593
2591
|
| `--optional-en <value>` | English words of the skip button |
|
|
2594
2592
|
| `--clear-optional` | The task is owed again (removes optional) |
|
|
2595
|
-
| `--appointment-of <value>` | TERMINAUFGABE: the task of this node whose appointment this one is done at (its result is an appointment). The task then waits for the booking, is held by the appointment's host (chosen among --team) and is due --due-days-after-end days after the appointment ends |
|
|
2596
|
-
| `--due-days-after-end <value>` | Terminaufgabe: days after the appointment's END until it is due (0–60; replaces --due-in-days) |
|
|
2597
|
-
| `--clear-appointment` | The task is no Terminaufgabe any more (removes appointment) |
|
|
2598
2593
|
|
|
2599
2594
|
### `offer workflow restamp-exports`
|
|
2600
2595
|
|
|
@@ -127,6 +127,11 @@ older release than your CLI — that needs a platform operator, not a bundle edi
|
|
|
127
127
|
the result is recorded.
|
|
128
128
|
|
|
129
129
|
## Gotchas
|
|
130
|
+
- **A task that still carries `appointment` (an appointment task from an older version)
|
|
131
|
+
is refused at publish** (`[graph/retiredField]`); no flag clears it. Delete that task
|
|
132
|
+
(`plexus-cli offer workflow node task delete`) and ask the participants for their
|
|
133
|
+
feedback through the booking task's participant feedback instead. Applications already
|
|
134
|
+
running on the older version keep their appointment task.
|
|
130
135
|
- **Only errors the edit introduces block the write.** Errors the bundle already carried
|
|
131
136
|
print as `⚠ vorbestehend …` and do not stop you — but `offer apply --publish` still
|
|
132
137
|
refuses them.
|
|
@@ -163,7 +168,7 @@ older release than your CLI — that needs a platform operator, not a bundle edi
|
|
|
163
168
|
school's header, the task and its answer; in the system the task's dialog offers the same page as its
|
|
164
169
|
„Bearbeitungsansicht". It takes a prose result — `--result freetext`, `recommendation`, or `choice`
|
|
165
170
|
without `--writes` (a value a later step reads would come from a link that may have been
|
|
166
|
-
forwarded) — and no `completableIf`, `--locks-evidence
|
|
171
|
+
forwarded) — and no `completableIf`, `--locks-evidence` or family request
|
|
167
172
|
(`[workItems/feedback*]`). A recommendation or choice shows its options on the page; the words land in
|
|
168
173
|
the chat like any result. `--clear-feedback` removes it.
|
|
169
174
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Let the decider skip the evaluation
|
|
2
|
+
|
|
3
|
+
**Use it to** let the person who decides go straight to the decision when the decision node
|
|
4
|
+
waits for an evaluation (`requiresOneOf`: a Gespräch, a Taster Day, a document request): the
|
|
5
|
+
entry „Evaluation überspringen" under „Weiteres".
|
|
6
|
+
|
|
7
|
+
## The model
|
|
8
|
+
|
|
9
|
+
- **A `skipRule` optional action** on the decision node: `{ key, action: 'skipRule', label,
|
|
10
|
+
trigger }` — no tasks. `trigger` is the team that may press it.
|
|
11
|
+
- **The press lifts the rule for this visit.** The decision buttons appear at once. If the
|
|
12
|
+
application comes back to the node later, the rule holds again.
|
|
13
|
+
- **Running evaluation tasks lapse.** The open tasks of every action the rule lists are
|
|
14
|
+
cancelled. An open request to the family stays: the family still owes it.
|
|
15
|
+
- **The feed records it**: „Evaluation übersprungen", with who and when (internal only).
|
|
16
|
+
- **The entry exists only while it changes something**: while the rule holds, and afterwards
|
|
17
|
+
as „erledigt". Once an evaluation met the rule, there is nothing to skip.
|
|
18
|
+
|
|
19
|
+
## CLI
|
|
20
|
+
|
|
21
|
+
Use a scratch dir for a real tenant
|
|
22
|
+
([edit-live-tenant-offer.md](./edit-live-tenant-offer.md)).
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
plexus-cli offer workflow node optional-action set --dir <dir> --node <decision> \
|
|
26
|
+
--key skipEvaluation --skip-rule \
|
|
27
|
+
--label "Evaluation überspringen" --label-en "Skip the evaluation" \
|
|
28
|
+
--trigger <team>
|
|
29
|
+
|
|
30
|
+
plexus-cli offer validate --dir <dir>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The label is the school's word; the feed always says „Evaluation übersprungen".
|
|
34
|
+
|
|
35
|
+
## What publish refuses
|
|
36
|
+
|
|
37
|
+
| Code | Meaning |
|
|
38
|
+
|---|---|
|
|
39
|
+
| `[optionalAction/skipRuleWithoutRule]` | The node has no `requiresOneOf` — nothing to skip |
|
|
40
|
+
| `[optionalAction/skipRuleNeedsDecisionRow]` | The node names no decision team (`assign.decision`) |
|
|
41
|
+
| `[optionalAction/skipRuleListed]` | The skip action is itself listed in `requiresOneOf` |
|
|
42
|
+
| `[optionalAction/skipRuleTwice]` | A second skip action on the same node |
|
|
43
|
+
| `[optionalAction/skipRuleShape]` | It carries `tasks`, `input`, `repeatable` or `submitLabel` |
|
|
44
|
+
|
|
45
|
+
A press while the rule is already met is refused with `[optionalAction/ruleMet]`.
|
|
46
|
+
|
|
47
|
+
## Verify
|
|
48
|
+
|
|
49
|
+
1. A test application parked at the decision node, no evaluation done.
|
|
50
|
+
2. Cockpit: „Weiteres" → „Evaluation überspringen". The decision buttons appear; the feed
|
|
51
|
+
shows „Evaluation übersprungen" with the name.
|
|
52
|
+
3. With a Taster Day running: its open tasks read „entfällt" after the press.
|
|
53
|
+
|
|
54
|
+
Test tenant: Grundschule, the Freigabe („Berta Freigabe").
|