@smartkomm/plexus-cli 0.1.36 → 0.1.38

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 CHANGED
@@ -70,7 +70,7 @@ pnpm dev -- <command> [...flags] # = node --import tsx cli.ts
70
70
  pnpm build # → dist/cli.mjs (the published bundle), version <floor>-dev+<commit>
71
71
  pnpm link:global # (primary checkout only) frozen install + build + symlink the global binary
72
72
  pnpm typecheck # tsc against the live backend (build-from-truth gate)
73
- pnpm test # node --import tsx --test (also: `pnpm test:cli` from app/)
73
+ pnpm test # node --import tsx --test (from app/: `pnpm test:cli` — same files, capped and recordable)
74
74
  pnpm spec # regenerate spec.snapshot.json from the code (no backend)
75
75
  ```
76
76
 
@@ -716,6 +716,20 @@ plexus-cli --env <env> offer versions --offer <slug> # offerVersionId for appl
716
716
  computed one needs `--type string|number|boolean|date`; docRef, multi-select and repeated-block
717
717
  fields are refused.
718
718
 
719
+ ### Classes from a class list (`learning-groups apply`)
720
+
721
+ `learning-groups apply --file <classes.csv> --mapping <mapping.json>` places
722
+ each row as unit (by key) → program → the mapping's school year (a run) →
723
+ learning group, by stable key (`<unit>:<year>:<class code>`). Without
724
+ `--confirm` it prints the plan (create / update / unchanged per class); a re-run
725
+ creates nothing. The mapping file says which column is code, unit and capacity,
726
+ which columns name the program (or which existing program a name means), the
727
+ grade level per Stufe value, and which columns are ignored and why — any other
728
+ column, unlisted value or duplicate class refuses the file before anything is
729
+ sent. Gate: the config gate (school administrator with
730
+ `administration.config.manage`, or the platform operator). Recipe:
731
+ [Import a school's classes from a class list](./playbooks/learning-groups/import-classes-from-csv.md).
732
+
719
733
  ### Generic escape hatch
720
734
 
721
735
  ```bash