@samva/markup 0.11.0 → 0.11.1
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 +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
Type-safe authoring and compilation primitives for Samva email, SMS, and WhatsApp templates. Use it
|
|
4
4
|
directly for TSX templates or together with `@samva/vite` for the visual editor and project build.
|
|
5
5
|
|
|
6
|
+
## For coding agents
|
|
7
|
+
|
|
8
|
+
- **SML** is the name of this toolkit, not a second syntax. An email is a TSX file that
|
|
9
|
+
default-exports `defineTemplate`, written in the static profile (ordinary JSX, HTML, and Tailwind
|
|
10
|
+
classes read without running). Compiling it produces the **IR**, the JSON description that
|
|
11
|
+
previews and sends render.
|
|
12
|
+
- The package ships the `sml` skill at `skills/sml/SKILL.md`; it routes you through write, check,
|
|
13
|
+
render, look, and repair. `AGENTS.md` and `contract.json` ship alongside it.
|
|
14
|
+
- Run `samva templates check --json` after every edit for diagnostics with `file:line:column` and a
|
|
15
|
+
fix for each.
|
|
16
|
+
|
|
6
17
|
## Install
|
|
7
18
|
|
|
8
19
|
```sh
|