agentful 0.4.6 → 0.4.8

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
@@ -58,6 +58,11 @@ its own — and server-side logic still has a place:
58
58
  source per action and 10 concurrent calls per project. The 5 s are a budget,
59
59
  not a guaranteed stop: an action still waiting on a network call at that
60
60
  point is answered with `408`, and calls it already started may still finish.
61
+ **Incoming webhooks:** the platform checks the sender's signature for you —
62
+ `await ctx.webhooks.verifyStripe('server.<name>')`,
63
+ `ctx.webhooks.verifyGitHub(…)`, or `ctx.verifyHmac({…})` over `ctx.rawBody`
64
+ (the request body exactly as received) for other HMAC schemes. The signing
65
+ secret stays on the platform; your action gets a verdict.
61
66
  - **Your own API.** Connect an HTTPS endpoint you run yourself in the Backend
62
67
  tab; `/api/*` on your app's domain is forwarded to it. The platform adds no
63
68
  secret and authorizes nobody on the way — that is your endpoint's job.
@@ -69,12 +74,19 @@ What does **not** work:
69
74
  - Inside Server Actions: **no cron or background jobs** (there is no scheduler —
70
75
  an external scheduler can call an action with a token in a header), **no npm
71
76
  packages** and no `require`/`import`, no `crypto`, no timers, no WebSockets
72
- or streaming, **no webhook signature verification** (no raw request body;
73
- look the event up at the provider instead, or put a verifying receiver in
74
- front), and no custom status codes, headers or HTML responses.
75
- - Build-time env vars or build secrets. `.env*` files never leave your machine,
76
- and the `agentful push` build injects nothing; keep public values in an
77
- ordinary source constant.
77
+ or streaming, and no custom status codes, headers or HTML responses. Webhook
78
+ signatures that are not an HMAC keyed with the stored secret as typed
79
+ (asymmetric signatures, Svix-style secrets) are not covered — look the event
80
+ up at the provider, or put a verifying receiver in front.
81
+ - Build-time env vars or build secrets of your own. `.env*` files never leave
82
+ your machine. Every cloud build defines one fixed allowlist of public values
83
+ and nothing else: the project ID (`VITE_PROJECT_ID`, `PUBLIC_PROJECT_ID`) and,
84
+ while your own Supabase database is connected in the Backend tab, its URL and
85
+ publishable key (`VITE_`/`PUBLIC_`/`NEXT_PUBLIC_` + `SUPABASE_URL`,
86
+ `SUPABASE_ANON_KEY`). Reading one of those names while nothing defines it
87
+ fails the build instead of compiling to `undefined`; `agentful push` warns
88
+ about it before the upload. Keep public values of your own in an ordinary
89
+ source constant.
78
90
 
79
91
  Actions have **no staging**: they run from your project's source, so a push can
80
92
  change what the published app does immediately, while warm instances may serve