@smartkomm/plexus-cli 0.1.226 → 0.1.228

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
- dfa396eefc3da3706f7e3bf5d74f54ecc0268f55d2955511da2aabbec177213c
1
+ d8cdc5cdc32628a0d2eae81a4cbc34db266b9c6351ce5751ce33a746969116f9
@@ -196,6 +196,7 @@ 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). |
199
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`). |
200
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. |
201
202
  | [offer/author-form-scenarios.md](references/offer/author-form-scenarios.md) | Mandant | Add a form's test scenarios and $env variables. |
@@ -2521,6 +2521,9 @@ Add one composed task to a workflow node (result, blocks, condition, description
2521
2521
  | `--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
2522
  | `--optional-en <value>` | English words of the skip button |
2523
2523
  | `--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) |
2524
2527
 
2525
2528
  ### `offer workflow node task delete`
2526
2529
 
@@ -2589,6 +2592,9 @@ Change the given fields of one composed task; validate before write
2589
2592
  | `--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) |
2590
2593
  | `--optional-en <value>` | English words of the skip button |
2591
2594
  | `--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) |
2592
2598
 
2593
2599
  ### `offer workflow restamp-exports`
2594
2600
 
@@ -0,0 +1,84 @@
1
+ # Give an appointment its Terminaufgabe („Taster Day durchführen")
2
+
3
+ **When to use:** a „Termin vereinbaren" task books an appointment (see
4
+ [Make a task close with an appointment](./task-appointment-result.md)), and the work
5
+ done AT that appointment — hold the interview, run the taster day, give feedback with
6
+ attachments — belongs to whoever hosts it, due a few days after it ends.
7
+
8
+ ## The model in three sentences
9
+
10
+ The **Terminaufgabe** is an ordinary task of the same node with
11
+ `appointment: { of: '<booking task>', dueDaysAfterEnd: N }`. It spawns with its round
12
+ and waits („Wartet auf: <booking task>") until the booking binds it: its holder is the
13
+ appointment's **host** (a person of the task's team, or that team's owner on the
14
+ application), its due day the appointment's end + N. It closes with its result — the
15
+ feedback, a recommendation / choice / free text (with files, like every result) — and holds whatever
16
+ it `blocks` until then.
17
+
18
+ ## Prerequisites
19
+
20
+ - The booking task exists with `result.kind: appointment`.
21
+ - The Terminaufgabe's team (`--team`) is the queue the task stays in. The host may be
22
+ any active staff member or team of the school: the host holds the task and answers it,
23
+ inside that team or not. To put a team on top of the participant picker, set
24
+ `result.primaryParticipantTeams` on the booking task (order only; the former name
25
+ `primaryHostTeams` is no longer read and publishes only with a
26
+ `[graph/retiredField]` warning — rename it in the exported bundle, then `offer plan`
27
+ / `apply --publish`). A host outside the team
28
+ reads the result in a `team:…` chat only as its member — prefer `--chat all`.
29
+ Hosts who should also open the application in the cockpit need
30
+ `bewerbungsmanagement.applications.read`; answering the task needs only the task.
31
+ - The target environment runs a platform version that knows Terminaufgaben (`offer apply`
32
+ publishes against the deployed gate; if publish does not know `appointment`, ask the
33
+ platform operator).
34
+
35
+ ## Steps
36
+
37
+ ```bash
38
+ # 1. The booking task no longer blocks the follow-up — the hold is derived.
39
+ plexus-cli offer workflow node task set --dir $WORK/$S --node decision --key tasterDayTermin --clear-blocks
40
+ # 2. The Terminaufgabe: team, link, due rule, feedback.
41
+ plexus-cli offer workflow node task add --dir $WORK/$S --node decision --key tasterDayDurchfuehren \
42
+ --title 'Taster Day durchführen' --title-en 'Hold the taster day' --team teachers \
43
+ --appointment-of tasterDayTermin --due-days-after-end 2 \
44
+ --result recommendation --chat all
45
+ # 3. If the booking task is part of an optional action, the Terminaufgabe joins it —
46
+ # and the action is repeatable: a cancelled appointment ends the round.
47
+ plexus-cli offer workflow node optional-action set --dir $WORK/$S --node decision --key tasterDay \
48
+ --tasks tasterDayTermin,tasterDayDurchfuehren --repeatable
49
+ plexus-cli offer validate --dir $WORK/$S
50
+ ```
51
+
52
+ Then the live path ([Edit a live tenant's offer](./edit-live-tenant-offer.md)):
53
+ `--env prod offer plan` → `--env prod offer apply --allow-prod --publish` → plan again
54
+ until every row is `same`.
55
+
56
+ ## Verify
57
+
58
+ - `offer validate` shows no `[workItems/appointment*]` error.
59
+ - In the cockpit: trigger the action → the Terminaufgabe reads „Wartet auf: …";
60
+ book with any staff member as host → the card shows the appointment line
61
+ („Taster Day · Di., 21.10. 09:00–12:00 · Raum 2 · Gastgeber: …") and the host holds it.
62
+
63
+ ## Gotchas
64
+
65
+ - Publish refuses: `of` naming no appointment task of the same node
66
+ (`appointmentOfUnknown`), two Terminaufgaben for one booking task (`appointmentOfTwice`),
67
+ `--due-in-days` beside the end rule or N outside 0–60 (`appointmentTaskDue`), any
68
+ `blocks` aimed at it (`appointmentTaskBlocked`), a different optional action than the
69
+ booking task (`appointmentTaskBinding`), an optional action spawning the booking task
70
+ without `repeatable: true` (`appointmentActionRepeatable` — a cancellation ends the
71
+ round, and without a second one a decision waiting for the action via `requiresOneOf`
72
+ would hang for good), an approval / `when` / `optional` /
73
+ family request / missing result (`appointmentTaskShape`). Warning
74
+ `appointmentChatUnreadable`: the feedback chat is another team's — the host may not
75
+ read it; prefer `all` or the task's own team.
76
+ - Holder and due day have ONE writer, the appointment: „Zuweisen" refuses a bound
77
+ Terminaufgabe, and so does „Wiederöffnen" (edit the feedback text instead).
78
+ - A staff member who hosts an appointment with an open Terminaufgabe cannot be
79
+ withdrawn (`[appointment/hostInUse]`) — change the appointment's host first.
80
+ - Running applications keep their pinned version.
81
+
82
+ ## Related
83
+
84
+ - [Make a task close with an appointment](./task-appointment-result.md)
@@ -82,6 +82,20 @@ plexus-cli --env staging offer apply --tenant $T --dir $WORK/$S.staging --publi
82
82
  To try a change on staging first, apply the edited copy there, check it, then run the
83
83
  prod plan from the same directory — the prod plan still has to show only your change.
84
84
 
85
+ **Staging has no copy of the tenant** (`offer list --env staging` → `NOT_FOUND`)? Do not
86
+ build one from the prod setup export just for the test: it carries the school's real
87
+ staff accounts. Stage the edit on prod as the testable candidate instead. Real applicants
88
+ keep the live generation, and test applications start on the candidate:
89
+
90
+ ```bash
91
+ plexus-cli --env prod offer apply --allow-prod --tenant $T --dir $WORK/$S --publish --stage internal
92
+ plexus-cli --env prod offer versions --tenant $T --offer $S # the internal offerVersionId
93
+ plexus-cli --env prod applications start-test --allow-prod --tenant $T --offer $S \
94
+ --run <run> --stage <level> --version <internal id> --applicant test@example.com
95
+ # … drive the test application through the changed flow, then release what you tested:
96
+ plexus-cli --env prod offer apply --allow-prod --tenant $T --dir $WORK/$S --publish # "promoted the tested candidate"
97
+ ```
98
+
85
99
  A prod offer whose contract node uses `eSignature` publishes **externally** on the staging
86
100
  mirror only once the mirror tenant has an active signing connection a test reached
87
101
  (`[signing/noActiveProvider]`; `--stage internal` needs none — its test applications run on
@@ -163,7 +163,7 @@ older release than your CLI — that needs a platform operator, not a bundle edi
163
163
  school's header, the task and its answer; in the system the task's dialog offers the same page as its
164
164
  „Bearbeitungsansicht". It takes a prose result — `--result freetext`, `recommendation`, or `choice`
165
165
  without `--writes` (a value a later step reads would come from a link that may have been
166
- forwarded) — and no `completableIf`, `--locks-evidence` or family request
166
+ forwarded) — and no `completableIf`, `--locks-evidence`, `--appointment-of` or family request
167
167
  (`[workItems/feedback*]`). A recommendation or choice shows its options on the page; the words land in
168
168
  the chat like any result. `--clear-feedback` removes it.
169
169
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartkomm/plexus-cli",
3
- "version": "0.1.226",
3
+ "version": "0.1.228",
4
4
  "description": "Unified Plexus admin + admission-offer config CLI (Convex backend).",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",