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 +18 -6
- package/dist/index.cjs +390 -201
- package/package.json +1 -1
- package/assets/tools/node_modules/@opencode-ai/plugin/dist/example.d.ts +0 -2
- package/assets/tools/node_modules/@opencode-ai/plugin/dist/example.js +0 -16
- package/assets/tools/node_modules/@opencode-ai/plugin/dist/index.d.ts +0 -267
- package/assets/tools/node_modules/@opencode-ai/plugin/dist/index.js +0 -1
- package/assets/tools/node_modules/@opencode-ai/plugin/dist/shell.d.ts +0 -109
- package/assets/tools/node_modules/@opencode-ai/plugin/dist/shell.js +0 -1
- package/assets/tools/node_modules/@opencode-ai/plugin/dist/tool.d.ts +0 -46
- package/assets/tools/node_modules/@opencode-ai/plugin/dist/tool.js +0 -5
- package/assets/tools/node_modules/@opencode-ai/plugin/dist/tui.d.ts +0 -429
- package/assets/tools/node_modules/@opencode-ai/plugin/dist/tui.js +0 -1
- package/assets/tools/node_modules/@opencode-ai/plugin/package.json +0 -52
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,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|