@samva/cli 0.23.0 → 0.24.0

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.
Files changed (4) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +2 -1
  3. package/dist/bin.mjs +1396 -1105
  4. package/package.json +9 -9
package/AGENTS.md CHANGED
@@ -115,7 +115,7 @@ to author a project you have cloned.
115
115
  resolves `samva:brand` from offline; bare `pull` snapshots the default brand, and `theme.css` is
116
116
  never written. Keep `.samva` gitignored. `samva brands push <file>` validates brand CSS locally,
117
117
  exits `1` with located findings when it is outside the brand grammar, and otherwise replaces the
118
- CSS of the brand `--brand <slug>` names, or of the default brand. `--dry-run` validates offline.
118
+ CSS of the brand `--brand <slug>` names, or of the default brand; `--name` also sets its display name. `--dry-run` validates offline.
119
119
 
120
120
  `samva templates types --out <file>` writes one TypeScript module from the authenticated template
121
121
  catalog: the input each published template accepts, and the reference a send carries. The default
package/README.md CHANGED
@@ -304,6 +304,7 @@ samva brands pull # the default brand
304
304
  samva brands pull acme
305
305
  samva brands push brand.css --brand acme --dry-run
306
306
  samva brands push brand.css # updates the default brand
307
+ samva brands push brand.css --name "Acme" # also renames it
307
308
  ```
308
309
 
309
310
  `samva brands pull [slug]` writes `.samva/brands/<slug>.json` in the project (`--project <dir>`,
@@ -315,7 +316,7 @@ keep `.samva` in `.gitignore`, because the API owns the brand.
315
316
  `@theme` variables, one dark-mode `@theme` of colors, and `@font-face` rules with https WOFF2
316
317
  sources. CSS outside it exits `1` with every finding located at `file:line:column`, and nothing is
317
318
  uploaded. `--brand <slug>` names the brand to replace; without it, push updates the organization's
318
- default brand. `--dry-run` validates without credentials or an API call. Published templates keep
319
+ default brand. `--name <name>` also sets the brand's display name in the same update. `--dry-run` validates without credentials or an API call. Published templates keep
319
320
  the brand they were built against until they are republished.
320
321
 
321
322
  ## Scheduling and campaigns