@smartkomm/plexus-cli 0.1.121 → 0.1.123
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 +246 -162
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/SKILL.md +1 -0
- package/dist/skill/references/commands.md +4 -1
- package/dist/skill/references/offer/waitlist-promote-team.md +41 -0
- package/dist/skill/references/platform/clear-test-residue.md +39 -0
- package/dist/spec.snapshot.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f6aafb013c32aeb0c313088112b391a760c5ee7b2af78ac486631f98247a3e52
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -204,6 +204,7 @@ whole is the operator's (ask them; do not try).
|
|
|
204
204
|
| [offer/author-smartform.md](references/offer/author-smartform.md) | Mandant | Build a SmartForm from scratch with the CLI and publish it. |
|
|
205
205
|
| [offer/bind-node-input.md](references/offer/bind-node-input.md) | Mandant | Bind a node's input slot to an address, a literal or the default. |
|
|
206
206
|
| [offer/completeness-check.md](references/offer/completeness-check.md) | Mandant | Wait for outstanding documents, with a deadline and a guest role. |
|
|
207
|
+
| [offer/waitlist-promote-team.md](references/offer/waitlist-promote-team.md) | Mandant + Plattform | Let a team promote applications from a waiting list, beside the responsible person (node set --assign-team). |
|
|
207
208
|
| [offer/countersign-node.md](references/offer/countersign-node.md) | Mandant + Plattform | Add the school's countersignature of the contract (needs a sealed contract resolver). |
|
|
208
209
|
| [offer/create-pedagogy-unit.md](references/offer/create-pedagogy-unit.md) | Mandant | Make a unit something families can apply to. |
|
|
209
210
|
| [offer/declare-node-reads.md](references/offer/declare-node-reads.md) | Mandant + Plattform | Declare which form fields a document node reads and locks. |
|
|
@@ -2096,7 +2096,7 @@ Insert a workflow node + sync progress layout/wiring; validate before write
|
|
|
2096
2096
|
| `--flag-key <value>` | setFlag only: external-flag key to flip on the --target instance |
|
|
2097
2097
|
| `--flag-value <value>` | setFlag only: value to set — true\|false (default true) |
|
|
2098
2098
|
| `--target <value>` | setFlag only (required): the form instance the flag is raised on — '$node.<formNode>.admission' |
|
|
2099
|
-
| `--assign-team <value>` | countersign (required): permission-group key whose members countersign (assign.countersign) · engagePush (required): the team of a stopped transfer (assign.engagePush) |
|
|
2099
|
+
| `--assign-team <value>` | waitlist: permission-group key whose members may promote beside the responsible person (actionTeams.promote) · countersign (required): permission-group key whose members countersign (assign.countersign) · engagePush (required): the team of a stopped transfer (assign.engagePush) |
|
|
2100
2100
|
| `--engage-target <value>` | engagePush only (required): sandbox \| production |
|
|
2101
2101
|
| `--when-nothing-owed <value>` | review only: park (default — someone looks at it) \| advance (pass through when no field is owed) |
|
|
2102
2102
|
| `--engage-contract-fields <value>` | engagePush only: off (default) \| on — the contract fields F01–F25, meaning not confirmed by the school yet |
|
|
@@ -2270,6 +2270,7 @@ Edit a workflow node (label/assign-decision/form/target/contract/payment/routing
|
|
|
2270
2270
|
| `--label <value>` | New node label (German). A node with a real English label needs --label-en too |
|
|
2271
2271
|
| `--label-en <value>` | New node label (English); alone it re-translates the current German |
|
|
2272
2272
|
| `--assign-decision <value>` | decision only: replace the decision-row group key (this is the whole wiring) |
|
|
2273
|
+
| `--assign-team <value>` | waitlist only: permission-group key whose members may promote beside the responsible person (actionTeams.promote); "" removes it |
|
|
2273
2274
|
| `--comment-required <value>` | decision only: replace comment-required outcome ids — <id>[,<id>] |
|
|
2274
2275
|
| `--requires-one-of <value>` | decision only: the decision waits until ONE of these optional actions (keys on this node) is completed — <key>[,<key>]; "" drops the rule |
|
|
2275
2276
|
| `--task <value>` | any: replace composed tasks — task: key:task:title:group[:dueInDays] · approval: key:approval:title:group[:revisionGroup] |
|
|
@@ -3204,6 +3205,7 @@ Delete the residue of deleted test applications that BOTH a fresh plan and --lis
|
|
|
3204
3205
|
| `--list <value>` (required) | The plan file `platform test-residue plan --out` wrote, reviewed. |
|
|
3205
3206
|
| `--protect <value>` (required) | JSON file with the application ids that must never be touched (the demo applications a school keeps); required, non-empty — a planned row naming one aborts the run. |
|
|
3206
3207
|
| `--confirm` | Delete (without it, only the comparison is printed). |
|
|
3208
|
+
| `--include-no-application` | Also take contracts, generation runs and signing requests that name no application. Such a row may be a real contract's: review the plan's `noApplication`. A list and its apply must agree on this flag. |
|
|
3207
3209
|
|
|
3208
3210
|
### `platform test-residue plan`
|
|
3209
3211
|
|
|
@@ -3217,6 +3219,7 @@ Read-only: the residue of deleted test applications in one tenant — ids and co
|
|
|
3217
3219
|
| `--protect <value>` (required) | JSON file with the application ids that must never be touched (the demo applications a school keeps); required, non-empty — a planned row naming one aborts the run. |
|
|
3218
3220
|
| `--out <value>` | Write the plan as JSON here (refused when it exists, unless --force) — the list `apply` takes. |
|
|
3219
3221
|
| `--force` | Overwrite an existing --out file. |
|
|
3222
|
+
| `--include-no-application` | Also take contracts, generation runs and signing requests that name no application. Such a row may be a real contract's: review the plan's `noApplication`. A list and its apply must agree on this flag. |
|
|
3220
3223
|
|
|
3221
3224
|
### `platform workers list`
|
|
3222
3225
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Let a team promote from the waiting list
|
|
2
|
+
|
|
3
|
+
**When to use:** colleagues stand in for one another and each should press „Nachrücken" on an application on the waiting list, without first making themselves responsible for it. Without a team, only the application's responsible person may press it.
|
|
4
|
+
|
|
5
|
+
The button and the server follow one rule: **the responsible person OR a member of the team the waitlist node names.** The team gets no task and no queue entry: a waiting application stays out of everyone's inbox. It also gets no assignment slot and no chat channel from this entry.
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
- A bundle on disk (`offer export`; a live tenant's only into a private scratch dir — [Edit a live tenant's offer](./edit-live-tenant-offer.md)). Authoring is offline.
|
|
9
|
+
- The team's permission-group key, e.g. `bewerbungsteam`. It must be a staff group of the school, and its members need to be able to read applications, or they never reach the button.
|
|
10
|
+
|
|
11
|
+
## Steps
|
|
12
|
+
```bash
|
|
13
|
+
# 1. Find the waitlist node(s). A process may have several; each names its own team.
|
|
14
|
+
plexus-cli offer workflow node list --dir <dir>
|
|
15
|
+
|
|
16
|
+
# 2. Name the team on the node (stored as `actionTeams.promote`).
|
|
17
|
+
plexus-cli offer workflow node set --dir <dir> --node warteliste --assign-team bewerbungsteam
|
|
18
|
+
|
|
19
|
+
# 3. Validate, plan, publish.
|
|
20
|
+
plexus-cli offer validate --dir <dir>
|
|
21
|
+
plexus-cli --env staging --tenant <t> offer plan --dir <dir>
|
|
22
|
+
plexus-cli --env staging --tenant <t> offer apply --publish --dir <dir>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
A new waitlist node takes the same flag: `node add --type waitlist --waitlist-order manual --assign-team bewerbungsteam …`.
|
|
26
|
+
|
|
27
|
+
To remove the team again: `plexus-cli offer workflow node set --dir <dir> --node warteliste --assign-team ""`.
|
|
28
|
+
|
|
29
|
+
## Verify
|
|
30
|
+
Sign in as a team member who is not responsible for a waiting application and open it: „Nachrücken" is enabled, and its caption names the team and the responsible person. A colleague outside the team sees the same button disabled.
|
|
31
|
+
|
|
32
|
+
## Idempotency / gotchas
|
|
33
|
+
- Publishing reaches applications on the **new version**. An application already waiting stays pinned to its version until it is moved to the new one.
|
|
34
|
+
- A team the school does not have is refused at publish (`[inputs/unknownResource]`), not by `offer validate` offline. So is an empty entry (`[inputs/emptyReference]`, offline too).
|
|
35
|
+
- Only `promote` on a waitlist node takes a team (`[capability/unknownActionTeam]`).
|
|
36
|
+
- Promoting into a full cohort still needs the explicit overbooking confirmation, whoever presses.
|
|
37
|
+
- Closing a round and „next in the queue" are cohort acts on the selection permission; this team does not change them.
|
|
38
|
+
|
|
39
|
+
## Related
|
|
40
|
+
- [Add a workflow node](./add-workflow-node.md)
|
|
41
|
+
- [Edit a live tenant's offer](./edit-live-tenant-offer.md)
|
|
@@ -24,6 +24,31 @@ never deleted.
|
|
|
24
24
|
**Abort:** plan and apply stop before any write when a planned row names an id
|
|
25
25
|
from `--protect` (the demo applications a school keeps) or a live application.
|
|
26
26
|
|
|
27
|
+
## Rows that name no application (`--include-no-application`)
|
|
28
|
+
|
|
29
|
+
By default a contract, generation run or signing request that names no
|
|
30
|
+
application stays and is listed as unclear (`names no application`), because it
|
|
31
|
+
may be real: staff can make a contract without an application, and the contract
|
|
32
|
+
page opens signing requests for any contract. A row can also have lost its link
|
|
33
|
+
when its application was cleared in a bulk operation; then the default finds
|
|
34
|
+
neither it nor its persons and files.
|
|
35
|
+
|
|
36
|
+
With `--include-no-application`, these rows become L1 roots, with their closure,
|
|
37
|
+
L2 persons and L4 files. The plan names them under `noApplication`
|
|
38
|
+
(`table`, `id`, `createdAt`, `namesWorkflowNode`). **Review every one of them:**
|
|
39
|
+
`namesWorkflowNode: true` means a process produced the row and its link is gone;
|
|
40
|
+
`false` means a person made it, and it may be a real contract.
|
|
41
|
+
|
|
42
|
+
They stay, listed as unclear with the reason, whatever the review says:
|
|
43
|
+
- a contract one of whose runs (itself or through its package run) or signing
|
|
44
|
+
requests names a live application, a contract that shares a signing request with
|
|
45
|
+
such a contract, and the runs and signing requests of each;
|
|
46
|
+
- a contract without any generation run (made by hand) and what shares a signing
|
|
47
|
+
request with it.
|
|
48
|
+
|
|
49
|
+
In this mode those limits hold for rows whose application was deleted too. An id
|
|
50
|
+
from `--protect` in the deletion set aborts the run here as well.
|
|
51
|
+
|
|
27
52
|
## Prerequisites
|
|
28
53
|
- A platform token with `_platform.config.manage` (`_platform.config.read` is enough for `plan`).
|
|
29
54
|
- `protect.json`: a JSON array of the application ids that must stay, non-empty.
|
|
@@ -43,6 +68,15 @@ plexus-cli --env <env> --tenant <slug> platform test-residue apply --list plan.j
|
|
|
43
68
|
plexus-cli --env <env> --tenant <slug> platform test-residue apply --list plan.json --protect protect.json --confirm --allow-prod
|
|
44
69
|
```
|
|
45
70
|
|
|
71
|
+
With rows that name no application, the plan and every apply carry the flag. A
|
|
72
|
+
list and a call that disagree are refused, the dry run included:
|
|
73
|
+
```bash
|
|
74
|
+
plexus-cli --env <env> --tenant <slug> platform test-residue plan --protect protect.json --include-no-application --out plan.json
|
|
75
|
+
# review noApplication; remove every id that is not approved from l1.*
|
|
76
|
+
plexus-cli --env <env> --tenant <slug> platform test-residue apply --list plan.json --protect protect.json --include-no-application
|
|
77
|
+
plexus-cli --env <env> --tenant <slug> platform test-residue apply --list plan.json --protect protect.json --include-no-application --confirm --allow-prod
|
|
78
|
+
```
|
|
79
|
+
|
|
46
80
|
## Verify
|
|
47
81
|
```bash
|
|
48
82
|
plexus-cli --env <env> --tenant <slug> platform test-residue plan --protect protect.json
|
|
@@ -58,6 +92,11 @@ plexus-cli --env <env> --tenant <slug> platform test-residue plan --protect prot
|
|
|
58
92
|
closure (snapshots, signatures, …). Its files are not released by this verb:
|
|
59
93
|
each deleted row's holder trigger schedules the release, so a file
|
|
60
94
|
goes once its last holder is gone — removing it from `files` keeps nothing.
|
|
95
|
+
- With `--include-no-application`, removing a root keeps what is tied to it: a
|
|
96
|
+
listed root whose closure shares a row with the removed one stays and is
|
|
97
|
+
reported under `refused` (remove a contract, its runs and signing requests
|
|
98
|
+
stay; remove a run, its contract stays). A party of a kept contract is
|
|
99
|
+
reported under `skippedPersons` (`foreignContract`) even if still listed.
|
|
61
100
|
- A person is asked again right before its delete; one that is excluded by then
|
|
62
101
|
is reported under `skippedPersons`.
|
|
63
102
|
- A file another row still names (a retained setup export's pin included) is
|