@smartkomm/plexus-cli 0.1.134 → 0.1.136
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 +2 -3
- package/dist/cli.mjs +204 -210
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/references/commands.md +1 -3
- package/dist/skill/references/offer/addresses.md +2 -2
- package/dist/skill/references/offer/node-tasks.md +8 -12
- package/dist/spec.snapshot.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bb2a5544f26f5b7a9551eab375d5f12f493bebb69a1c6d915fc99cf29f20ef81
|
|
@@ -483,7 +483,7 @@ Register one contract input key (camelCase; an entity key ends in PartyId or Leg
|
|
|
483
483
|
| `--label-en <value>` (required) | English label |
|
|
484
484
|
| `--description <value>` (required) | German description |
|
|
485
485
|
| `--description-en <value>` (required) | English description |
|
|
486
|
-
| `--scalar <value>` | Value type: string\|number\|boolean\|date\|enum\|address\|pricedItem\|pricedGroup |
|
|
486
|
+
| `--scalar <value>` | Value type: string\|number\|boolean\|date\|enum\|address\|pricedItem\|pricedGroup\|reduction |
|
|
487
487
|
| `--entity <value>` | Entity reference: party\|legalEntity\|learningGroup |
|
|
488
488
|
|
|
489
489
|
### `platform generator input-key deprecate`
|
|
@@ -2495,7 +2495,6 @@ Add one composed task to a workflow node (result, blocks, condition, description
|
|
|
2495
2495
|
| `--family-request-from <value>` | Nachforderung: as --family-request-fields, offering every file field of this form instance — '$node.<formNode>.admission' |
|
|
2496
2496
|
| `--clear-family-request` | Remove the family request |
|
|
2497
2497
|
| `--writes <value>` | choice/pricedItem/reduction: the store value the result writes, by its full address — '$task.<this task key>.<key>' (required on pricedItem and reduction; a choice without it stays in the chat) |
|
|
2498
|
-
| `--prices <value>` | reduction only: the derived price it lowers — '$derived.<key>' |
|
|
2499
2498
|
| `--item <value>` | pricedItem only: the article it prices — its catalog key (billing_item_definitions.configKey, e.g. tuition) |
|
|
2500
2499
|
| `--result-label <value>` | choice/pricedItem/reduction: the name of the result's value (German; without --result-label-en it stands in for English too) |
|
|
2501
2500
|
| `--result-label-en <value>` | English name of the result's value |
|
|
@@ -2567,7 +2566,6 @@ Change the given fields of one composed task; validate before write
|
|
|
2567
2566
|
| `--family-request-from <value>` | Nachforderung: as --family-request-fields, offering every file field of this form instance — '$node.<formNode>.admission' |
|
|
2568
2567
|
| `--clear-family-request` | Remove the family request |
|
|
2569
2568
|
| `--writes <value>` | choice/pricedItem/reduction: the store value the result writes, by its full address — '$task.<this task key>.<key>' (required on pricedItem and reduction; a choice without it stays in the chat) |
|
|
2570
|
-
| `--prices <value>` | reduction only: the derived price it lowers — '$derived.<key>' |
|
|
2571
2569
|
| `--item <value>` | pricedItem only: the article it prices — its catalog key (billing_item_definitions.configKey, e.g. tuition) |
|
|
2572
2570
|
| `--result-label <value>` | choice/pricedItem/reduction: the name of the result's value (German; without --result-label-en it stands in for English too) |
|
|
2573
2571
|
| `--result-label-en <value>` | English name of the result's value |
|
|
@@ -91,8 +91,8 @@ The Workflow-IDE offers exactly what the gate accepts — the same rules
|
|
|
91
91
|
raise / lower.
|
|
92
92
|
- **Task fields** (`when`, `reads`, `documents`, `familyRequest`, a record's
|
|
93
93
|
suggestion): node → „Details" → „Team".
|
|
94
|
-
- **Pricing-rule conditions and reductions:**
|
|
95
|
-
|
|
94
|
+
- **Pricing-rule conditions and reductions:** bundle only; prices belong to the
|
|
95
|
+
contract generator.
|
|
96
96
|
|
|
97
97
|
## Verify
|
|
98
98
|
```bash
|
|
@@ -31,8 +31,8 @@ around it).
|
|
|
31
31
|
task's own address — `--writes '$task.<thisTaskKey>.<storeKey>'`, stored as the bare
|
|
32
32
|
`result.writes` — and names it with `--result-label` (`--result-label-en`). A
|
|
33
33
|
`pricedItem` names its article with `--item <catalog key>` (not an address: the key of
|
|
34
|
-
the billing item)
|
|
35
|
-
|
|
34
|
+
the billing item). A `reduction` is read by the contract generator through a node
|
|
35
|
+
input of type `reduction`; the generator prices.
|
|
36
36
|
- The CLI checks **shape**; the graph rules (`[workItems/*]`, `[taskResult/*]`) are the
|
|
37
37
|
publish validators, run before every write and by `offer validate`.
|
|
38
38
|
|
|
@@ -66,13 +66,11 @@ plexus-cli offer workflow node task add --dir $B --node contract --key ermaessig
|
|
|
66
66
|
--description "Nachweise prüfen und die Ermäßigung berechnen." \
|
|
67
67
|
--description-en "Check the proofs and calculate the reduction."
|
|
68
68
|
|
|
69
|
-
# 3. A reduction
|
|
70
|
-
#
|
|
71
|
-
# The derived price must be declared in graph.processStore with
|
|
72
|
-
# derive.reduction = $task.reducedFee.reducedFee ([process/reductionPrices]).
|
|
69
|
+
# 3. A reduction: it writes its deduction under its own address; the contract node
|
|
70
|
+
# binds that address to the generator's `reduction` input.
|
|
73
71
|
plexus-cli offer workflow node task add --dir $B --node reviewEingereicht --key reducedFee \
|
|
74
72
|
--title "Ermäßigung berechnen" --team finanzen \
|
|
75
|
-
--result reduction --writes '$task.reducedFee.reducedFee'
|
|
73
|
+
--result reduction --writes '$task.reducedFee.reducedFee' \
|
|
76
74
|
--result-label "Einkommensermäßigung (Abzug)" --result-label-en "Income-based reduction (deduction)" \
|
|
77
75
|
--chat team:finanzen
|
|
78
76
|
# A priced item names its article instead:
|
|
@@ -137,13 +135,11 @@ older release than your CLI — that needs a platform operator, not a bundle edi
|
|
|
137
135
|
- **`blocks.except` is retired** — `offer validate` refuses a bundle that still
|
|
138
136
|
carries it (`[workItems/blocksExceptRetired]`); re-setting `--blocks` drops it
|
|
139
137
|
(`⚠ blocks.except entfällt`). A result kind change drops
|
|
140
|
-
options / `textRequired` / `writes` / `label` / `item`
|
|
138
|
+
options / `textRequired` / `writes` / `label` / `item` that no longer fit (and a `prices` an older bundle still names)
|
|
141
139
|
(each listed under `dropped`), and keeps `chat`.
|
|
142
140
|
- **`--writes` takes this task's own address only** — `'$task.<key>.<storeKey>'` without a
|
|
143
|
-
path; a bare key, another task's address or a path is refused.
|
|
144
|
-
|
|
145
|
-
`derive.reduction` points back at this task is the publish gate's check
|
|
146
|
-
(`[process/*]`).
|
|
141
|
+
path; a bare key, another task's address or a path is refused. Whether the store key is declared is the
|
|
142
|
+
publish gate's check (`[process/*]`).
|
|
147
143
|
- **`--option` replaces the whole list** — repeat every entry you keep.
|
|
148
144
|
- **`--description` is plain text under the title, never a checklist.** There are no
|
|
149
145
|
checklist steps any more (a bundle still carrying `steps` is refused at publish,
|