@smartkomm/plexus-cli 0.1.80 → 0.1.82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartkomm/plexus-cli",
3
- "version": "0.1.80",
3
+ "version": "0.1.82",
4
4
  "description": "Unified Plexus admin + admission-offer config CLI (Convex backend).",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,52 +0,0 @@
1
- # Let a task's result carry files
2
-
3
- **Use it to** let the person who completes a task attach files to their answer. Example: the
4
- teacher's trial-day feedback with an English and a maths placement sheet, as PDF or photo.
5
-
6
- ## The model
7
-
8
- - **One switch on the task:** `result.files: true`. It is allowed only on prose results:
9
- `freetext`, `recommendation`, or a `choice` without `writes`. Publish refuses it anywhere
10
- else (`[taskResult/filesOnKind]`).
11
- - **Text and files are ONE message** in the chat the result names (`result.chat`). The row
12
- keeps no text, and the chat keeps, shows and erases the files (GDPR erasure included).
13
- - **Up to 20 files per result**.
14
- A normal chat message takes 5. Each file may be PDF, JPEG, PNG or WebP of up to 25 MB;
15
- an iPhone HEIC photo is converted to JPEG in the browser.
16
- - **Where the files show:** in the result's message — cockpit → Verlauf/Aktivitäten (the
17
- chat's tab); a click opens the file in the viewer. The task itself shows at most how
18
- many files its result carries. Never in the „Dokumente" rail:
19
- that lists the application's documents, not task attachments. Nothing is
20
- copied, so deleting the message removes its files.
21
- - **Who sees them:** whoever reads the feedback text — the SAME chat rule. In a
22
- `team:<group>` chat that means the members of that group plus platform admins. A
23
- `tenant_admin` who is in no such group sees neither the text nor the files. Before
24
- choosing `team:principals`, check that the readers really hold that group (`plexus-cli
25
- platform users show <email>`).
26
-
27
- ## CLI
28
-
29
- Work in a scratch dir for a real tenant
30
- ([edit-live-tenant-offer.md](./edit-live-tenant-offer.md)).
31
-
32
- ```bash
33
- plexus-cli --env prod --tenant <slug> offer export --offer <offer> --out <dir>
34
- plexus-cli offer workflow node task set --dir <dir> --node decision --key tasterFeedback --files
35
- plexus-cli offer validate --dir <dir>
36
- plexus-cli --env prod --tenant <slug> offer plan --dir <dir> # workflow: change
37
- # apply only with the school's go (the process owner):
38
- plexus-cli --env prod --tenant <slug> offer apply --dir <dir> --publish --allow-prod
39
- ```
40
-
41
- A new task: `node task add … --result freetext --chat <chat> --files`.
42
-
43
- ## Verify
44
-
45
- 1. Open the task in the cockpit. The dialog shows „Dateien (optional)" with the paperclip,
46
- which accepts several files at once.
47
- 2. Complete it with two files. Verlauf, tab of the result's chat: one message with the
48
- text and both files.
49
- 3. „Dokumente": neither file is listed there.
50
- 4. As staff outside the chat's team: neither the text nor the files show in Verlauf.
51
-
52
- Test tenant: Grundschule → „Probetag auswerten" (Schulleitung) takes files.