@smartkomm/plexus-cli 0.1.366 → 0.1.367

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
- 5a299a07b9e9bdea99400a3aad16ea461293a630af0878af015e0dd8b1d50726
1
+ 6dab9d77a4e7681702edadd78d9accbb9190380cc354d712965a893df8cc0d27
@@ -77,7 +77,7 @@ The library is part of the tenant config (`files`):
77
77
  ```
78
78
 
79
79
  - `config export` downloads every file to `files/<key>/<filename>` beside
80
- `config.json` and writes `path`. Swap a file on disk and `config apply --from
80
+ the config file and writes `path`. Swap a file on disk and `config apply --from
81
81
  snapshot:…` uploads it (the file on disk decides the hash).
82
82
  - `apply` uploads **only** files whose hash the target does not hold; a dry run
83
83
  uploads nothing and lists them as `~ file files/<key>`.
@@ -40,9 +40,9 @@ unchanged tenant show the same hashes; a different hash means the setup changed.
40
40
  - The command refuses an `--out` that already exists or lies inside a git working tree. It
41
41
  writes into `<out>.partial` and renames it at the end; if a run stops half-way (with
42
42
  `--all-tenants`, one failing tenant stops the run), remove `<out>.partial` before retrying.
43
- - Each run records one export on the server; the stored copy and the downloaded `setup.json`
43
+ - Each run records one export on the server; the stored copy and the downloaded setup file
44
44
  are the same bytes.
45
- - `setup.json` carries every part (`partOrder`) and `platformRefs`, the contract input keys the
45
+ - The setup file carries every part (`partOrder`) and `platformRefs`, the contract input keys the
46
46
  tenant names; a restore onto another deployment needs those first
47
47
  ([platform export](platform-setup-export.md)).
48
48
  - To change a tenant's configuration, use the config export → edit → apply recipe; this export
@@ -41,7 +41,7 @@ plexus-cli platform generator input-key list --env <env> # the restor
41
41
  an entry the target already deprecated stays deprecated, so an older export restores cleanly.
42
42
  - `--prune` is refused for the registry: sealed revisions name its keys. Deprecate an entry
43
43
  instead (`platform generator input-key deprecate`).
44
- - A tenant's `setup.json` lists the platform keys it names (`platformRefs`). `setup plan` of a
44
+ - A tenant's setup file lists the platform keys it names (`platformRefs`). `setup plan` of a
45
45
  tenant shows a key the target lacks as "missing platform key", and `setup apply` refuses until
46
46
  the platform export is applied — restore the platform first, then the tenants.
47
47
  - `--platform` and `--all-tenants` exclude each other; a platform export directory is refused
@@ -7,8 +7,8 @@ after a configuration went wrong, or to set up an empty tenant exactly like the
7
7
 
8
8
  - `plexus-cli` installed; needs a platform operator token (`_platform.config.manage` to apply,
9
9
  `_platform.config.read` to preview).
10
- - The export directory, complete: `setup.json` plus each part's `files/` folder. The restore
11
- targets the tenant named in `setup.json`.
10
+ - The export directory, complete: the setup file plus each part's `files/` folder. The restore
11
+ targets the tenant named in the setup file.
12
12
 
13
13
  ## Steps
14
14
 
@@ -33,7 +33,7 @@ uploaded logo and uploaded font files — on staging and/or prod, without a rese
33
33
 
34
34
  A `storageId` is deployment-local, so config never carries it. It carries each uploaded
35
35
  file like a library file: `{ sha256, sizeBytes, mimeType }` under `tenant.brandingAssets`, and
36
- `config export` downloads the bytes beside `config.json` as `branding/<slot>.<ext>`
36
+ `config export` downloads the bytes beside the config file as `branding/<slot>.<ext>`
37
37
  (`path` in the entry). `config apply --from snapshot:…` or `--from env:<src>` uploads
38
38
  only the files whose hash the target does not hold; the dry run prints
39
39
  `~ brand branding/logo content differs — would upload`. A missing slot — or a snapshot
@@ -3,7 +3,7 @@
3
3
  **When to use:** an offer's admission workflow needs another step (an approval
4
4
  gate, a waitlist holding node, a selection terminus, another form, …) and you want
5
5
  the graph + progress board kept in sync automatically — instead of hand-editing
6
- `workflow.json` (graph, `progressLayout` states + columns and
6
+ The workflow file (graph, `progressLayout` states + columns and
7
7
  `progressWiring.mappings`) in lockstep.
8
8
 
9
9
  ## Prerequisites
@@ -186,7 +186,7 @@ A decision node carries the full offer-lifecycle authoring surface:
186
186
  `[artifact/unknownType]`; `visibility` = `internal` | `external`). Each slot exposes a
187
187
  `<key>Uploaded` node-export.
188
188
  - **Assignment rule** (GRAPH-level, no flag) — who becomes responsible and who owns
189
- each team is `graph.assignmentRules` in the same `workflow.json`; `node add/set` do
189
+ each team is `graph.assignmentRules` in the same workflow file; `node add/set` do
190
190
  not touch it. A node that gives work to a team the rule has no slot for makes
191
191
  `offer validate` / publish refuse with `[assignment/slotMissing]` — add a
192
192
  `team:<key>` list in the bundle or in the workflow editor („Team-Verantwortliche").
@@ -8,7 +8,7 @@ is leaving.
8
8
  ## What it is (one paragraph)
9
9
 
10
10
  The assignment rule is a **section of the workflow graph**: `graph.assignmentRules`
11
- in the offer bundle's `workflow.json`. It is **one ordered rule list per slot**: per
11
+ in the offer bundle's workflow file. It is **one ordered rule list per slot**: per
12
12
  slot the first row whose condition holds wins, the last row has no condition
13
13
  (`"when": null`, shown as „sonst"). It is versioned with the offer version — saved
14
14
  with the draft, checked at publish, pinned with the graph. Each new application
@@ -57,7 +57,7 @@ a fixed person.
57
57
  1. Export the live offer into a private scratch dir (a live tenant's bundle is
58
58
  never kept in a shared or versioned place — see
59
59
  [edit-live-tenant-offer](./edit-live-tenant-offer.md)) and edit
60
- `workflow.json` → `graph.assignmentRules`:
60
+ The workflow file → `graph.assignmentRules`:
61
61
 
62
62
  ```bash
63
63
  WORK=$(mktemp -d) # any private scratch dir
@@ -183,7 +183,7 @@ version (archived ones only run pinned test starts, which fail loud instead). Or
183
183
  „sonst → Team-Queue". Publish refuses until „Person wählen" is replaced.
184
184
  - Applications already started keep the rule of the version they are pinned to —
185
185
  a published change reaches only new applications.
186
- - **The bundle is canonical JSON (keys sorted).** When you edit `workflow.json` by
186
+ - **The bundle is canonical JSON (keys sorted).** When you edit the workflow file by
187
187
  hand or by script, keep that shape — a re-serialised file differs from a fresh
188
188
  export far from your edit — and check the result with `offer validate` and
189
189
  `offer plan` (only your rule change should show).
@@ -2,7 +2,7 @@
2
2
 
3
3
  **When to use:** an offer's workflow needs a `form` step — bind an existing
4
4
  SmartForm to a new form node, or scaffold a brand-new form and bind it in one
5
- step. Replaces hand-editing `workflow.json` + `bundle.yaml` + `smartforms/<slug>.json`
5
+ step. Replaces hand-editing the workflow file + the bundle file + `smartforms/<slug>.json`
6
6
  in lockstep.
7
7
 
8
8
  ## Prerequisites
@@ -81,7 +81,7 @@ After publishing, run a scenario on a test application from the terminal:
81
81
  refused (`scenario.required-field-unfilled` / `scenario.no-outcome`) — the message ends
82
82
  with the grades and school years where it fails („— in: Year 1 · School year 2026/27").
83
83
  docRef fields are never prefilled — test mode stubs files itself.
84
- - Offline, validation knows the grades and school years only from `bundle.yaml`
84
+ - Offline, validation knows the grades and school years only from the bundle file
85
85
  (`program.stages`, `program.runs`). A bundle without them, or a form that reads
86
86
  `offer` / `unit`, gets the warning `scenario.unjudged`: publishing judges the
87
87
  scenarios against the offer's real cohorts. An offer without any cohort gets
@@ -1,8 +1,8 @@
1
1
  # Author the manifest layer
2
2
 
3
- **When to use:** set the offer's display order from the CLI. `manifest.json` carries no
4
- key any more (`{}`): the offer title is `bundle.yaml` `label`, the progress layout is
5
- `workflow.json` `progressLayout`, capacity and the application window belong to the
3
+ **When to use:** set the offer's display order from the CLI. The manifest file carries no
4
+ key any more (`{}`): the offer title is the bundle file `label`, the progress layout is
5
+ the workflow file `progressLayout`, capacity and the application window belong to the
6
6
  cohort (`offer capacity set`, `offer run …`), and the waiting list's order is the
7
7
  waitlist node's required input `waitlistOrder` (arrival|manual) — `offer workflow node
8
8
  add --type waitlist --waitlist-order …`, `offer workflow node set-input`, or the IDE's
@@ -58,7 +58,7 @@ cat <bundle>/manifest.json # {}
58
58
  - **A retired manifest key is refused, never dropped.** `offer validate` (and apply)
59
59
  refuse every key by name — `selection`, `capacity`, `roleInstances`, `leistungen`,
60
60
  `applicantMode`, `signatureLevel`, `bewerbungsfenster`, `id`, `label`, `version`,
61
- `progressLayoutId` — with "Delete the line". `progressLayout` moves to `workflow.json`
61
+ `progressLayoutId` — with "Delete the line". `progressLayout` moves to the workflow file
62
62
  (without a workflow: delete it).
63
63
 
64
64
  ## Related
@@ -3,7 +3,7 @@
3
3
  **When to use:** a node's input slot must read a value produced elsewhere — the applicant's
4
4
  language for a template letter (`$env.applicant.language`), a value a task records (`$task.reducedFee.reducedFee`), a form field
5
5
  (`$node.form.admission.kind.vorname`) — or carry a fixed value, or go back to its default.
6
- Replaces hand edits of `inputs` in the bundle's `workflow.json`.
6
+ Replaces hand edits of `inputs` in the bundle's workflow file.
7
7
 
8
8
  ## Prerequisites
9
9
  - An offer bundle on disk (`offer export --offer <slug> --out <dir>`). Fully offline: the command
@@ -103,7 +103,7 @@ name; a deployment that does not send mail records the letter in Dev Rail
103
103
  - **Entering with nothing missing completes automatically** — no request, no
104
104
  letter, no role; the node passes straight through on `complete`.
105
105
  - **Where it lands:** without `--after` the check is spliced in front of the
106
- FIRST `end` node in `workflow.json` (every edge into that end now enters the
106
+ FIRST `end` node in the workflow file (every edge into that end now enters the
107
107
  check) — make sure that is the positive end. With `--after <node>` the
108
108
  anchor's FIRST onward edge is the one rerouted; on an anchor with several
109
109
  outcomes (a contract: `signed` + `absage`) that may be the wrong one. Check
@@ -127,7 +127,7 @@ name; a deployment that does not send mail records the letter in Dev Rail
127
127
  then carries two columns with one label, and `node add` refuses the write —
128
128
  for ANY node type with such an event (`waitlist`, `decision`, …), not only this
129
129
  one. Until `node add` can map events onto existing states, author the node in
130
- `workflow.json` + the states/columns/wiring in `workflow.json`
130
+ the workflow file + the states/columns/wiring in the workflow file
131
131
  by hand (shape: the Verify `jq` output above) and gate it with `offer validate`
132
132
  / `offer apply --publish`. Scaffolded bundles (`offer init`) are not affected.
133
133
  - **Running applications keep their pinned version** — see
@@ -21,7 +21,7 @@ admissions team.
21
21
 
22
22
  - The answer is exported by the form. If not: mark the field (or a computed boolean over it)
23
23
  `export: true` in `smartforms/<slug>.json`, then run `plexus-cli offer workflow restamp-exports --dir <dir>`.
24
- - The template key: the node's `assign` in `workflow.json` lists them (e.g. `prepareDocument`,
24
+ - The template key: the node's `assign` in the workflow file lists them (e.g. `prepareDocument`,
25
25
  `releaseApproval` on a document node, `decision` on a decision). A wrong key is refused with
26
26
  the keys the node type knows.
27
27
 
@@ -5,7 +5,7 @@ who decides on a decision node, rebind a form node to a different
5
5
  SmartForm, or rewire where an outcome routes — without removing and re-adding it.
6
6
 
7
7
  ## Prerequisites
8
- - An offer bundle on disk carrying a `workflow.json` (`offer init …` or `offer export …`).
8
+ - An offer bundle on disk carrying a workflow file (`offer init …` or `offer export …`).
9
9
  - Authoring is **fully offline**; only `offer apply --publish` needs an API token of a
10
10
  user who may configure the tenant's offers (a tenant admin — see
11
11
  [Add a tenant admin](../users/add-tenant-admin.md)).
@@ -2,7 +2,7 @@
2
2
 
3
3
  **When to use:** a new step must sit between two existing ones — e.g. „Unterlagen prüfen"
4
4
  between the form and the first decision — and it must land on an existing board column
5
- instead of adding one. Replaces the hand-written bundle edits of `apply-doccheck.py`
5
+ instead of adding one. Replaces the hand-written bundle edits of the apply-doccheck script
6
6
  (insert a `review` node, re-point `form.next.standard`, add a progress mapping).
7
7
 
8
8
  ## Prerequisites
@@ -3,7 +3,7 @@
3
3
  **When to use:** give a workflow node a task a team must do — with a typed result
4
4
  („Empfehlung", „Auswahl", Freitext, a priced item or a reduction), a blocking edge onto the same or a later node, a
5
5
  spawn condition, evidence fields or its plain-text description — or change / remove one, without
6
- hand-editing `workflow.json`. Works on any bundle: the `test` template, a fixture, or a
6
+ hand-editing the workflow file. Works on any bundle: the `test` template, a fixture, or a
7
7
  live tenant's export (then follow [Edit a live tenant's offer](./edit-live-tenant-offer.md)
8
8
  around it).
9
9
 
@@ -5,7 +5,7 @@ closed) should travel with the bundle — a fresh environment gets the whole gri
5
5
  `offer apply` instead of one `offer capacity set` per cell.
6
6
 
7
7
  ## Prerequisites
8
- - An offer bundle on disk (`offer export …`) whose `bundle.yaml` has a `program` block.
8
+ - An offer bundle on disk (`offer export …`) whose bundle file has a `program` block.
9
9
  - A token with the tenant's offer-configuration rights (a tenant admin has them) for `offer plan` / `offer apply` on the target env.
10
10
  - The stage and run keys of the offer (`program.stages[].key`, `program.runs[].key`) —
11
11
  cells sit under a run (by its **bare** key) and are keyed by the **bare** stage key,
@@ -80,7 +80,7 @@ until they are published again — `offer plan` shows such an offer as `workflow
80
80
 
81
81
  ## 2. Author the node in the bundle (JSON)
82
82
 
83
- `plexus-cli offer workflow node add` cannot create a governedDocument node; edit `workflow.json`
83
+ `plexus-cli offer workflow node add` cannot create a governedDocument node; edit the workflow file
84
84
  (export → edit → plan → apply, see [Edit a live tenant's offer](./edit-live-tenant-offer.md)):
85
85
 
86
86
  ```jsonc
@@ -9,7 +9,7 @@ Two kinds of channel exist in every application of a published version:
9
9
  | kind | where it comes from | editable? |
10
10
  |---|---|---|
11
11
  | automatic | one per team the process gives work to (`assign`, composed tasks, …) | no — follows the graph |
12
- | default | `graph.channels` in `workflow.json` | yes — this playbook |
12
+ | default | `graph.channels` in the workflow file | yes — this playbook |
13
13
 
14
14
  Both are read from the application's **pinned** workflow version at chat time. No
15
15
  row is written per application, so a new default channel reaches applications
@@ -17,7 +17,7 @@ started on the next published version; running applications keep the channels
17
17
  of their version.
18
18
 
19
19
  ## Prerequisites
20
- - An offer bundle on disk with a `workflow.json` (`offer export …` or `offer init …`).
20
+ - An offer bundle on disk with a workflow file (`offer export …` or `offer init …`).
21
21
  - Authoring is offline; `offer apply --publish` needs a token with the tenant's offer-configuration rights (a tenant admin has them).
22
22
  - Members are **permission-group keys** of the tenant (`plexus-cli --env <env> --tenant <t> users groups`
23
23
  → `key`); the applicant group is not a team.
@@ -51,7 +51,7 @@ from `--protect` in the deletion set aborts the run here as well.
51
51
 
52
52
  ## Prerequisites
53
53
  - A platform token with `_platform.config.manage` (`_platform.config.read` is enough for `plan`).
54
- - `protect.json`: a JSON array of the application ids that must stay, non-empty.
54
+ - The protect file: a JSON array of the application ids that must stay, non-empty.
55
55
 
56
56
  ## Steps
57
57
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartkomm/plexus-cli",
3
- "version": "0.1.366",
3
+ "version": "0.1.367",
4
4
  "description": "Unified Plexus admin + admission-offer config CLI (Convex backend).",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",