@secondlayer/cli 19.4.3 → 20.0.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 +9 -11
- package/dist/cli.js +153 -600
- package/dist/cli.js.map +9 -10
- package/package.json +9 -9
- package/templates/webhooks/cloudflare/.env.example +0 -1
- package/templates/webhooks/cloudflare/README.md +0 -44
- package/templates/webhooks/cloudflare/package.json +0 -15
- package/templates/webhooks/cloudflare/src/index.ts +0 -34
- package/templates/webhooks/cloudflare/tsconfig.json +0 -10
- package/templates/webhooks/cloudflare/wrangler.toml +0 -8
- package/templates/webhooks/inngest/.env.example +0 -2
- package/templates/webhooks/inngest/README.md +0 -29
- package/templates/webhooks/inngest/package.json +0 -18
- package/templates/webhooks/inngest/src/inngest.ts +0 -19
- package/templates/webhooks/inngest/src/server.ts +0 -14
- package/templates/webhooks/inngest/tsconfig.json +0 -11
- package/templates/webhooks/node/.env.example +0 -2
- package/templates/webhooks/node/README.md +0 -36
- package/templates/webhooks/node/package.json +0 -18
- package/templates/webhooks/node/src/index.ts +0 -53
- package/templates/webhooks/node/tsconfig.json +0 -11
- package/templates/webhooks/trigger/.env.example +0 -2
- package/templates/webhooks/trigger/README.md +0 -38
- package/templates/webhooks/trigger/package.json +0 -17
- package/templates/webhooks/trigger/src/tasks/subgraph-event.ts +0 -15
- package/templates/webhooks/trigger/trigger.config.ts +0 -6
- package/templates/webhooks/trigger/tsconfig.json +0 -10
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> --
|
|
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
|
|
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.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
|