@secondlayer/cli 3.2.1 → 3.3.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 CHANGED
@@ -63,7 +63,33 @@ One instance per project. The platform API spawns a dedicated `sl-pg-{slug}`,
63
63
 
64
64
  | Command | What it does |
65
65
  |---|---|
66
- | `sl create subscription <name> --runtime <inngest\|trigger\|cloudflare\|node>` | Scaffold a receiver project wired to a new subscription. Copies the runtime template into `./<name>/`, provisions the subscription on the active instance, and wires the signing secret so the dev server starts consuming events immediately. |
66
+ | `sl create subscription <name> --runtime <inngest\|trigger\|cloudflare\|node> [--filter key=value]` | Scaffold a receiver project wired to a new subscription. Copies the runtime template into `./<name>/`, provisions through the active project/instance, supports scalar filters, and wires the signing secret so the dev server starts consuming events immediately. |
67
+
68
+ ### Subscriptions (tenant-scoped)
69
+
70
+ `sl create subscription` is the receiver scaffolder. `sl subscriptions ...` is
71
+ the operational surface for existing subscriptions. All commands resolve the
72
+ active project/instance the same way as `sl subgraphs ...`; `SL_API_URL` and
73
+ `SL_SERVICE_KEY` still bypass platform resolution for OSS or CI.
74
+
75
+ | Command | What it does |
76
+ |---|---|
77
+ | `sl subscriptions list` | List subscriptions with status, target table, format, and last success |
78
+ | `sl subscriptions get <id\|name>` | Show full config, filter, retry/circuit state |
79
+ | `sl subscriptions update <id\|name> --url <url> [--filter key.gte=value]` | Patch URL, filter, format, runtime, retry, timeout, concurrency |
80
+ | `sl subscriptions pause/resume <id\|name>` | Stop or restart delivery |
81
+ | `sl subscriptions rotate-secret <id\|name>` | Rotate signing secret and print the new value once |
82
+ | `sl subscriptions deliveries <id\|name>` | Last 100 delivery attempts |
83
+ | `sl subscriptions dead <id\|name>` | Dead-letter rows |
84
+ | `sl subscriptions requeue <id\|name> <outboxId>` | Requeue one dead-letter row |
85
+ | `sl subscriptions replay <id\|name> --from-block <n> --to-block <n>` | Enqueue historical rows from a block range |
86
+ | `sl subscriptions doctor <id\|name>` | Config, circuit state, recent delivery health, linked subgraph gaps, next-step hints |
87
+ | `sl subscriptions test <id\|name> --signing-secret <secret> [--post]` | Build a signed Standard Webhooks fixture from the latest row or a synthetic row |
88
+
89
+ Read/action commands support `--json`. Destructive commands prompt unless
90
+ `--yes` is passed. CLI filters are schema-aware: unknown tables, unknown
91
+ columns, unsupported operators, and non-scalar columns are rejected before the
92
+ API call; the server repeats the same validation as the source of truth.
67
93
 
68
94
  ### Subgraphs (tenant-scoped)
69
95