@secondlayer/cli 14.2.1 → 14.3.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 +30 -16
- package/dist/cli.js +2961 -2798
- package/dist/cli.js.map +22 -21
- package/package.json +5 -5
- package/templates/{subscriptions → webhooks}/cloudflare/README.md +2 -2
- package/templates/{subscriptions → webhooks}/node/README.md +2 -2
- package/templates/{subscriptions → webhooks}/node/src/index.ts +2 -2
- package/templates/{subscriptions → webhooks}/trigger/README.md +2 -2
- /package/templates/{subscriptions → webhooks}/cloudflare/.env.example +0 -0
- /package/templates/{subscriptions → webhooks}/cloudflare/package.json +0 -0
- /package/templates/{subscriptions → webhooks}/cloudflare/src/index.ts +0 -0
- /package/templates/{subscriptions → webhooks}/cloudflare/tsconfig.json +0 -0
- /package/templates/{subscriptions → webhooks}/cloudflare/wrangler.toml +0 -0
- /package/templates/{subscriptions → webhooks}/inngest/.env.example +0 -0
- /package/templates/{subscriptions → webhooks}/inngest/README.md +0 -0
- /package/templates/{subscriptions → webhooks}/inngest/package.json +0 -0
- /package/templates/{subscriptions → webhooks}/inngest/src/inngest.ts +0 -0
- /package/templates/{subscriptions → webhooks}/inngest/src/server.ts +0 -0
- /package/templates/{subscriptions → webhooks}/inngest/tsconfig.json +0 -0
- /package/templates/{subscriptions → webhooks}/node/.env.example +0 -0
- /package/templates/{subscriptions → webhooks}/node/package.json +0 -0
- /package/templates/{subscriptions → webhooks}/node/tsconfig.json +0 -0
- /package/templates/{subscriptions → webhooks}/trigger/.env.example +0 -0
- /package/templates/{subscriptions → webhooks}/trigger/package.json +0 -0
- /package/templates/{subscriptions → webhooks}/trigger/src/tasks/subgraph-event.ts +0 -0
- /package/templates/{subscriptions → webhooks}/trigger/trigger.config.ts +0 -0
- /package/templates/{subscriptions → webhooks}/trigger/tsconfig.json +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secondlayer/cli",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.0",
|
|
4
4
|
"description": "Run a Stacks index on your own hardware — set it up, restore verified history, and keep it current.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@opentui/react": "^0.5.3",
|
|
46
46
|
"@secondlayer/bundler": "^0.5.2",
|
|
47
47
|
"@secondlayer/scaffold": "^1.5.6",
|
|
48
|
-
"@secondlayer/sdk": "^10.
|
|
49
|
-
"@secondlayer/shared": "^11.
|
|
50
|
-
"@secondlayer/stacks": "^5.1.
|
|
51
|
-
"@secondlayer/subgraphs": "^4.
|
|
48
|
+
"@secondlayer/sdk": "^10.4.0",
|
|
49
|
+
"@secondlayer/shared": "^11.5.0",
|
|
50
|
+
"@secondlayer/stacks": "^5.1.3",
|
|
51
|
+
"@secondlayer/subgraphs": "^4.3.0",
|
|
52
52
|
"esbuild": "^0.27.4",
|
|
53
53
|
"react": "^19.1.0",
|
|
54
54
|
"smol-toml": "^1.6.1",
|
|
@@ -23,11 +23,11 @@ https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/workflows/{{NAME}}/in
|
|
|
23
23
|
Provision the subscription with bearer auth:
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
secondlayer
|
|
26
|
+
secondlayer webhooks create {{NAME}} --runtime cloudflare --auth-token <CF_API_TOKEN>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
You can also patch an existing subscription with
|
|
30
|
-
`secondlayer
|
|
30
|
+
`secondlayer webhooks update {{NAME}} --auth-token <CF_API_TOKEN>`.
|
|
31
31
|
|
|
32
32
|
The token must have `Workflows: Edit` scope.
|
|
33
33
|
|
|
@@ -5,8 +5,8 @@ to your business logic. No framework lock-in.
|
|
|
5
5
|
|
|
6
6
|
## Run
|
|
7
7
|
|
|
8
|
-
`.env` is written for you at `secondlayer
|
|
9
|
-
secret already populated. Lost it: `secondlayer
|
|
8
|
+
`.env` is written for you at `secondlayer webhooks create` time with the signing
|
|
9
|
+
secret already populated. Lost it: `secondlayer webhooks rotate-secret {{NAME}}`.
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
bun install
|
|
@@ -4,8 +4,8 @@ import { Hono } from "hono";
|
|
|
4
4
|
/**
|
|
5
5
|
* Minimal Standard Webhooks receiver.
|
|
6
6
|
*
|
|
7
|
-
* The signing secret was shown ONCE when you ran `secondlayer
|
|
8
|
-
* If you lost it: secondlayer
|
|
7
|
+
* The signing secret was shown ONCE when you ran `secondlayer webhooks create`.
|
|
8
|
+
* If you lost it: secondlayer webhooks rotate-secret {{NAME}}
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
const SIGNING_SECRET = process.env.SIGNING_SECRET;
|
|
@@ -21,11 +21,11 @@ https://api.trigger.dev/api/v1/tasks/{{TASK_ID}}/trigger
|
|
|
21
21
|
Provision the subscription with bearer auth:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
secondlayer
|
|
24
|
+
secondlayer webhooks create {{NAME}} --runtime trigger --auth-token tr_secret_abc...
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
You can also patch an existing subscription with
|
|
28
|
-
`secondlayer
|
|
28
|
+
`secondlayer webhooks update {{NAME}} --auth-token tr_secret_abc...`.
|
|
29
29
|
|
|
30
30
|
## Signature verification
|
|
31
31
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|