@smartkomm/plexus-cli 0.1.138 → 0.1.140
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 +3 -5
- package/dist/cli.mjs +228 -228
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/SKILL.md +1 -1
- package/dist/skill/references/applications/inspect-process-store.md +2 -2
- package/dist/skill/references/commands.md +1 -1
- package/dist/skill/references/offer/addresses.md +3 -6
- package/dist/skill/references/offer/bind-node-input.md +5 -6
- package/dist/spec.snapshot.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
178ae2b0520d26940390b34988c39c3027728a35e35545330c0e3d818ec88b91
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -195,7 +195,7 @@ whole is the operator's (ask them; do not try).
|
|
|
195
195
|
| [notifications/trace-a-login.md](references/notifications/trace-a-login.md) | Plattform | Trace why someone could not sign in. |
|
|
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
|
-
| [offer/addresses.md](references/offer/addresses.md) | Mandant | How a node reads by full address ($node…, $task…, $
|
|
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
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
200
|
| [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
201
|
| [offer/attach-form-to-workflow.md](references/offer/attach-form-to-workflow.md) | Mandant | Bind an existing or new SmartForm to a form node. |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**When to use:** see what the process of ONE application has produced and what it is still
|
|
4
4
|
waiting for — a form instance, a document, a contract with its current revision, a payment,
|
|
5
|
-
a value a task wrote (`$task.<task>.<key>`)
|
|
5
|
+
a value a task wrote (`$task.<task>.<key>`) and the
|
|
6
6
|
application's facts (`$env.applicant.language`). Typical questions: why a contract input is
|
|
7
7
|
empty, why a price „wartet", which revision a contract node points at, whether a task value
|
|
8
8
|
counts after a re-open. Replaces raw `call processStoreView:get`.
|
|
@@ -28,7 +28,7 @@ plexus-cli $E applications store <applicationId> --json
|
|
|
28
28
|
## Reading it
|
|
29
29
|
- **Every address of the PINNED graph** is listed — the application's own version, not the
|
|
30
30
|
live head: `$node.<node>.<key>` for each node result, `$task.<task>.<key>` for each value a
|
|
31
|
-
task writes,
|
|
31
|
+
task writes, then `$env.*`.
|
|
32
32
|
- **State is resolved, never the newest row:**
|
|
33
33
|
- `present` — the producer's result; for a task value the entry of the task row that is
|
|
34
34
|
currently effective (`writtenByTaskId`, `writtenAt`); for a price the computed value.
|
|
@@ -2394,7 +2394,7 @@ Bind one input of a node to an address, set a literal, or clear it; validate bef
|
|
|
2394
2394
|
| `--dir <value>` (required) | Bundle directory |
|
|
2395
2395
|
| `--node <value>` (required) | Node id |
|
|
2396
2396
|
| `--input <value>` (required) | Input slot key (e.g. a template field) |
|
|
2397
|
-
| `--address <value>` | The address bound, e.g. '$env.applicant.language', '$
|
|
2397
|
+
| `--address <value>` | The address bound, e.g. '$env.applicant.language', '$task.reducedFee.reducedFee', '$node.form.admission.kind.vorname' |
|
|
2398
2398
|
| `--from <value>` | Short form with --field: the form node whose field is bound ($node.<from>.admission.<field>) |
|
|
2399
2399
|
| `--field <value>` | Short form with --from: the field path in that node's form |
|
|
2400
2400
|
| `--literal <value>` | A JSON value: "de", 3, true, null, or {"itemKey":…,"grantKeys":[…]} |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Name what a node reads (addresses)
|
|
2
2
|
|
|
3
3
|
**When to use:** a node must read data another node produces — the form's answers in a
|
|
4
|
-
contract, a value a review task records,
|
|
4
|
+
contract, a value a review task records, the contract a countersignature books
|
|
5
5
|
on — or the gate refuses a bundle with an `[address/*]` code. A read **names its
|
|
6
6
|
producer** in the field that reads it: a full address. There are no data edges any more
|
|
7
7
|
(`node.wires` is gone), no form implied by the node and no bare keys. Control edges (`next`) only
|
|
@@ -25,7 +25,6 @@ route. What a node may read is what is produced on every path before it.
|
|
|
25
25
|
| `$node.<node>.contract` | a machine-produced contract (`production: resolver`) | `$node.contract.contract` |
|
|
26
26
|
| `$node.<node>.payment` | a payment node's result | `$node.zahlung.payment` |
|
|
27
27
|
| `$task.<task>.<key>` | the value the ONE task `<task>` writes under store key `<key>` | `$task.reducedFee.reducedFee` |
|
|
28
|
-
| `$derived.<key>` | a computed price (`processStore[].derive`) | `$derived.schulgeld` |
|
|
29
28
|
| `$env.applicant.language` | a fact about the application nobody produces | |
|
|
30
29
|
|
|
31
30
|
An adopting form node (`adoptForm`, e.g. `formZusage` in the demo tenant `test`) **produces nothing**: the
|
|
@@ -34,8 +33,7 @@ route. What a node may read is what is produced on every path before it.
|
|
|
34
33
|
## Steps
|
|
35
34
|
```bash
|
|
36
35
|
# What arrives at a node: every address it reads, where it is written, who produces it —
|
|
37
|
-
# including what it reads by carrying (the evidence of a task whose value it reads
|
|
38
|
-
# sources of a derived price, the price check):
|
|
36
|
+
# including what it reads by carrying (the evidence of a task whose value it reads):
|
|
39
37
|
plexus-cli offer workflow node reads --dir <dir> --node contract
|
|
40
38
|
|
|
41
39
|
# A bare key is refused with the list of what that node can read — use it to pick:
|
|
@@ -47,7 +45,7 @@ plexus-cli offer workflow node set-reads --dir <dir> --node contract --address k
|
|
|
47
45
|
# …
|
|
48
46
|
|
|
49
47
|
# The flags that read data (each takes full addresses):
|
|
50
|
-
plexus-cli offer workflow node set-input --dir <dir> --node contract --input
|
|
48
|
+
plexus-cli offer workflow node set-input --dir <dir> --node contract --input reducedFee --address '$task.reducedFee.reducedFee'
|
|
51
49
|
plexus-cli offer workflow node set-reads --dir <dir> --node contract --from form --field kind.vorname,kind.nachname
|
|
52
50
|
plexus-cli offer workflow node set-requires --dir <dir> --node nachreichen --address '$node.form.admission.kind.masernschutz'
|
|
53
51
|
plexus-cli offer workflow node task set --dir <dir> --node reviewEingereicht --key reducedFee \
|
|
@@ -75,7 +73,6 @@ Which flag sets which field:
|
|
|
75
73
|
| task `when`, `reads`, `documents` | `node task add|set --when|--reads|--documents` (`field:<address>`, `document:$node.<node>.document`; an own slot stays `artifact:<key>`) |
|
|
76
74
|
| task family request | `--family-request-fields <addresses>` or `--family-request-from '$node.<form>.admission'` |
|
|
77
75
|
| record field suggestion | `--field '{…,"suggest":{"kind":"form","address":"$node.form.admission.alleinerziehend"}}'` |
|
|
78
|
-
| `pricingRules[].rows[].when`, `processStore[].derive.reduction` | **no CLI verb** — edit the bundle JSON; a condition's identifiers are canonical addresses (`$task.geschwisterrang.geschwisterRangSchule >= 3`), a reduction is `{ "scope": "task", "owner": "reducedFee", "key": "reducedFee" }` |
|
|
79
76
|
|
|
80
77
|
## In the IDE instead
|
|
81
78
|
The Workflow-IDE offers exactly what the gate accepts — the same rules
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
# Bind a node input to an address (form field, task value,
|
|
1
|
+
# Bind a node input to an address (form field, task value, applicant language)
|
|
2
2
|
|
|
3
3
|
**When to use:** a node's input slot must read a value produced elsewhere — the applicant's
|
|
4
|
-
language for a template letter (`$env.applicant.language`),
|
|
5
|
-
(`$derived.schulgeld`), a value a task records (`$task.reducedFee.reducedFee`), a form field
|
|
4
|
+
language for a template letter (`$env.applicant.language`), a value a task records (`$task.reducedFee.reducedFee`), a form field
|
|
6
5
|
(`$node.form.admission.kind.vorname`) — or carry a fixed value, or go back to its default.
|
|
7
6
|
Replaces hand edits of `inputs` in the bundle's `workflow.json`.
|
|
8
7
|
|
|
@@ -26,9 +25,9 @@ Replaces hand edits of `inputs` in the bundle's `workflow.json`.
|
|
|
26
25
|
plexus-cli offer workflow node set-input --dir <dir> --node platzangebot --input sprache \
|
|
27
26
|
--address '$env.applicant.language'
|
|
28
27
|
|
|
29
|
-
#
|
|
30
|
-
plexus-cli offer workflow node set-input --dir <dir> --node contract --input
|
|
31
|
-
--address '$
|
|
28
|
+
# The reduction staff decided, for the generator's input of type `reduction`:
|
|
29
|
+
plexus-cli offer workflow node set-input --dir <dir> --node contract --input reducedFee \
|
|
30
|
+
--address '$task.reducedFee.reducedFee'
|
|
32
31
|
|
|
33
32
|
# A form field — full address, or the short form that composes the same address:
|
|
34
33
|
plexus-cli offer workflow node set-input --dir <dir> --node contract --input startDate \
|