@samva/cli 0.23.0 → 0.25.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.
- package/AGENTS.md +5 -1
- package/README.md +2 -1
- package/dist/bin.mjs +1463 -1138
- package/package.json +9 -9
package/AGENTS.md
CHANGED
|
@@ -84,6 +84,10 @@ exits `2` naming the path or limit. Past the 4 MiB inline limit, the largest fil
|
|
|
84
84
|
`/v1/media` first and travel by `mediaId`; the send's retries reuse them, and rerunning the command
|
|
85
85
|
uploads again. `--dry-run` lists each attachment and uploads nothing.
|
|
86
86
|
|
|
87
|
+
`samva email send --header 'Name: Value'` (repeatable) sets `email.headers`. The name is the text
|
|
88
|
+
before the first colon and the value is the rest, both trimmed. A pair with no colon, no name, or
|
|
89
|
+
no value exits `2`. Reserved names and size limits are rejected by the API.
|
|
90
|
+
|
|
87
91
|
`--publication-id` and `--input-contract-id` on `email send`, `scheduled-messages create`, and
|
|
88
92
|
`campaigns create`/`update` choose which publication a template send renders: one exact publication,
|
|
89
93
|
or the newest publication that still validates input identically. They are mutually exclusive and
|
|
@@ -115,7 +119,7 @@ to author a project you have cloned.
|
|
|
115
119
|
resolves `samva:brand` from offline; bare `pull` snapshots the default brand, and `theme.css` is
|
|
116
120
|
never written. Keep `.samva` gitignored. `samva brands push <file>` validates brand CSS locally,
|
|
117
121
|
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.
|
|
122
|
+
CSS of the brand `--brand <slug>` names, or of the default brand; `--name` also sets its display name. `--dry-run` validates offline.
|
|
119
123
|
|
|
120
124
|
`samva templates types --out <file>` writes one TypeScript module from the authenticated template
|
|
121
125
|
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
|