@smartkomm/plexus-cli 0.1.68 → 0.1.70

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
@@ -1021,6 +1021,16 @@ Assignment rules are **not** a tenant config target: the rule is part of each of
1021
1021
  workflow (`graph.assignmentRules` in the bundle's `workflow.json`) and travels with
1022
1022
  `offer export` / `offer apply`. See `playbooks/offer/assignment-rule.md`.
1023
1023
 
1024
+ **A consent is a form field, not a custom-field kind.** A SmartForm field of
1025
+ `--type consent` (a checkbox the family must tick; its value is `true` or empty, never
1026
+ `false`) stores the same datum as a `boolean`, so its fieldMap target is a boolean custom
1027
+ field marked `formWritable` — no new config target. It is authored with
1028
+ `offer form field add|set --type consent`; `field set --type` switches only between
1029
+ types of the same datum (`boolean|consent`, `string|email|tel`). `offer validate` warns
1030
+ about a required boolean preset to `false` (`config.boolean-required-default-false`) and
1031
+ refuses a consent with a default, a `sameAs`, inside a repeated row or never demanded.
1032
+ Recipe: `playbooks/offer/consent-field.md`.
1033
+
1024
1034
  **Two granularities, one gate.** A surgical single-field `set` and a whole-tenant `apply` are
1025
1035
  the same engine — same validators (`tenantConfig/lib/validate.ts`), same diff/patch primitive.
1026
1036
  `set` patches one field of one existing row; it **cannot delete a row** (use export → edit →