@samva/cli 0.15.0 → 0.16.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 (3) hide show
  1. package/AGENTS.md +7 -0
  2. package/dist/bin.mjs +1261 -256
  3. package/package.json +7 -7
package/AGENTS.md CHANGED
@@ -146,6 +146,13 @@ stops sending and receiving, and `resume <id>` resumes without backfilling mail
146
146
  paused. These mutations support `--dry-run`. `remove <id>` deletes a mailbox (`--yes` outside a terminal, `--dry-run` to
147
147
  preview), `threads` searches, `read` prints a message (human output marks the body as
148
148
  untrusted email), and `send` and `reply` take `--idempotency-key` so a retry cannot send twice.
149
+ `create`, `endpoints add`, and `send` take `--channel email|whatsapp|sms` (default `email`); on a
150
+ phone channel the address is a connected number in E.164 form, and `send` takes one `--to` number
151
+ with `--text` or, on WhatsApp, an approved `--template <templateId>` with `--data`. `reply` answers a
152
+ WhatsApp or SMS message on its thread; a bare `--text` reply reads the message first to learn its
153
+ channel. Free-form WhatsApp text outside the customer's 24-hour window fails with
154
+ `WhatsAppServiceWindowClosedError`; send a template. These commands call the API directly because the
155
+ public SDK describes email only.
149
156
  Quarantine `list` pages the same way, bounded by `--after` and `--before` on when a message was
150
157
  held; `release` and `discard` take the held message's `id` and require a person signed in with
151
158
  `samva login`. Discard requires confirmation (`--yes` outside a terminal) and supports `--dry-run`.