@samva/cli 0.22.2 → 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 +6 -1
  2. package/README.md +2 -1
  3. package/dist/bin.mjs +1465 -1108
  4. package/package.json +9 -9
package/AGENTS.md CHANGED
@@ -72,6 +72,11 @@ a template written in a format the compiler rejects. Templates live in `template
72
72
  `emails/`; a template is a `.tsx` file that default-exports `defineTemplate`, and the compiler reads
73
73
  it without running it.
74
74
 
75
+ `samva email send` and `samva scheduled-messages create` take `--from <address>` (a verified sender or
76
+ any address on a verified domain) and `--from-name`; omitted, the send uses the default sender, else the
77
+ only verified sender, and otherwise fails with `FromAddressRequiredError`. `--from-name` without
78
+ `--from` exits `1`.
79
+
75
80
  `samva email send --attach <path>` (repeatable) attaches local files; the filename is the basename and
76
81
  the content type comes from the extension (`application/octet-stream` when unknown). The CLI reads
77
82
  and budget-checks every file before any request (at most 10 files, 25 MiB each and in total) and
@@ -110,7 +115,7 @@ to author a project you have cloned.
110
115
  resolves `samva:brand` from offline; bare `pull` snapshots the default brand, and `theme.css` is
111
116
  never written. Keep `.samva` gitignored. `samva brands push <file>` validates brand CSS locally,
112
117
  exits `1` with located findings when it is outside the brand grammar, and otherwise replaces the
113
- 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.
114
119
 
115
120
  `samva templates types --out <file>` writes one TypeScript module from the authenticated template
116
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