Commit Graph

2 Commits

Author SHA1 Message Date
f40973c298 Fix sw.forms.render() preact globals
Use window.html + hooks destructuring to match existing SDK
primitive conventions (confirm.js, toast.js pattern).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 16:57:38 +00:00
89d64ab2aa Feat v0.9.5 typed forms SDK primitive
Extract typed form system from models/workflow.go into standalone
server/forms/ package. Any package can now declare and validate
forms, not just workflow stages.

- New server/forms/ package (types + validation + condition evaluator)
- REST POST /api/v1/forms/validate endpoint
- Starlark forms.validate(template, data) module
- Frontend sw.forms.render(), .validate(), .validateRemote()
- Manifest form_template accepted at package level
- 16 new tests (12 forms + 4 Starlark module)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 16:54:02 +00:00