@secondlayer/cli 19.4.2 → 20.0.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/README.md CHANGED
@@ -172,10 +172,9 @@ Reads emit JSON to stdout (`--json` accepted across all read commands); `-o/--ou
172
172
 
173
173
  | Command | What it does |
174
174
  |---|---|
175
- | `secondlayer webhooks create <name> --subgraph <name> --table <name> [--runtime <inngest\|trigger\|cloudflare\|node>] [--url <url>]` | Subgraph webhook (optional local receiver scaffold). Runtime defaults to `node` once any of `-s/-t/-u` or `--no-scaffold` is given; the menu only appears in a terminal with no flags |
176
- | `secondlayer webhooks create <name> --url <url> --trigger '<json>'` | Chain webhook (repeat `--trigger` or pass `--triggers-file`) |
175
+ | `secondlayer webhooks create <name> --url <url> --trigger '<json>'` | Create a webhook on chain events (repeat `--trigger` or pass `--triggers-file`) |
177
176
  | `secondlayer webhooks list` / `get <id\|name>` | List or show config + delivery state |
178
- | `secondlayer webhooks update <id\|name> --url <url> [--filter key.gte=value]` | Patch URL, filter, format, retry, etc. |
177
+ | `secondlayer webhooks update <id\|name> --url <url>` | Patch URL, format, retry, etc. |
179
178
  | `secondlayer webhooks pause/resume <id\|name>` | Stop or restart delivery |
180
179
  | `secondlayer webhooks rotate-secret <id\|name>` | Rotate signing secret (printed once) |
181
180
  | `secondlayer webhooks deliveries/dead <id\|name>` | Recent attempts / dead-letter rows |
@@ -184,14 +183,13 @@ Reads emit JSON to stdout (`--json` accepted across all read commands); `-o/--ou
184
183
  | `secondlayer webhooks doctor/test <id\|name>` | Health check / signed fixture |
185
184
 
186
185
  Read/action commands support `--json`. Destructive commands prompt unless
187
- `-y` / `--yes`, default to no, and exit 1 when stdin is not a TTY. Filters are schema-aware: unknown tables/columns, bad operators,
188
- and non-scalar columns are rejected before the API call.
189
-
190
- Webhooks are **subgraph** (a table's rows) or **chain** (raw events, no
191
- subgraph). `secondlayer webhooks create` with `--subgraph`/`--table` makes the
192
- first. Pass `--trigger` or `--triggers-file` for the second. SDK, REST, and
193
- MCP take the same `triggers` array. Every other `secondlayer webhooks` command
194
- operates on both kinds.
186
+ `-y` / `--yes`, default to no, and exit 1 when stdin is not a TTY.
187
+
188
+ Webhooks fire on raw chain events. `secondlayer webhooks create` takes
189
+ `--trigger` or `--triggers-file`; SDK, REST, and MCP take the same `triggers`
190
+ array. To react to your subgraph rows, watch the table from your own Postgres
191
+ or poll the subgraph API: see
192
+ [React to your rows](https://www.secondlayer.tools/docs/subgraphs/reading#react-to-your-rows).
195
193
 
196
194
  ### Other
197
195