11 Commits

Author SHA1 Message Date
Alex Dunmow
74ebe87455 Renumber the route package ADR to 0011
0007 was already taken.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 06:48:41 +08:00
Alex Dunmow
754a713b0e Add the route package: plugin routes declare their access
Routes under /api/plugins/<name> take Public, Visitor or Admin. Visitor and
Admin routes check the host-verified identity; a public POST goes through
Form, which requires the host-verified captcha and a per-instance submission
limit. CaptchaWidget returns the CMS widget markup for Go-rendered forms.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 05:52:55 +08:00
Alex Dunmow
4970bf4fa1 Validate seed content sections and gate them on SDK v0.3.11
A seed that sets master page content, a theme preset, mailing lists, posts,
email templates or page SEO must declare a plugin_sdk constraint that refuses
hosts before v0.3.11, so an older CMS rejects the artifact instead of applying
half a site.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 00:55:21 +08:00
Alex Dunmow
3b13dccdbb Pack codeless .bnp artifacts in the SDK
Moves the codeless build, validation and pack path from cli/internal/bnp
into a public bnp package so the CLI and the orchestrator share it.
BuildCodelessFS packs from an fs.FS and returns the artifact bytes; the
directory form calls it through os.DirFS. Output is byte-identical to the
old CLI build. ADR 0009.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 23:28:35 +08:00
Alex Dunmow
6dd745bc34 Let a plugin grant and revoke file access
WO-FL-009. The files family reaches the CMS File access grant store: a plugin
grants one file to a member or an address, lists what a file has handed out,
and revokes what it gave. The response carries the signed unlock link, so a
seller can deliver a file to somebody with no account. Nothing on the wire
names the calling plugin: the host stamps plugin:<name> on what this family
writes and refuses a revoke of anything else. ADR 0008.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17 10:47:13 +08:00
Alex Dunmow
f14846d758 fix(wasmguest): expose host services during register 2026-08-25 12:42:42 +08:00
Alex Dunmow
e2dcbc1fc3 feat: authenticate bridge callers and declare SDK compatibility 2026-08-20 00:24:49 +08:00
Alex Dunmow
731d6b51d1 feat(plugin): declare admin API compatibility 2026-08-19 23:21:47 +08:00
Alex Dunmow
fb58679b6f feat(abi): add keyed page and render response contracts 2026-08-19 21:50:28 +08:00
Alex Dunmow
301f286c2f feat(plugin): add durable keyed load-once hooks 2026-08-10 23:04:47 +08:00
Alex Dunmow
1ee4db6f0d fix(test): validate MCP descriptor source locations 2026-08-10 21:10:54 +08:00