Close three WO-WZ-004 review gaps in the guest db driver: - toDbValue: nil []string now marshals to DbValue_Null (matching []byte / json.RawMessage); empty-but-non-nil stays a non-NULL empty text[]. - DbValueFixtures: add edge entries (zero time.Time, negative + very-large numeric strings, empty text[], and text[] elements forcing encodePgTextArray quoting/escaping). Covered automatically by the table-driven round-trip and driver-value tests; new dbvalue_test.go covers the toDbValue nil convention. - Document that TextArray cannot represent a NULL array element (repeated string has no per-element NULL) in the fixtures file and docs/wasm-abi.md, a contract limit the WO-WZ-007 host executor must also honor. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
BlockNinja Plugin SDK
Types, interfaces, and utilities for building BlockNinja plugins.
Package Structure
| Package | Purpose |
|---|---|
plugin/ |
PluginRegistration, CoreServices, RegisterFunc |
blocks/ |
BlockMeta, BlockFunc, BlockRegistry interface, BlockContext |
blocks/builtin/ |
Reusable block implementations (HTMLBlock) |
templates/ |
TemplateRegistry interface |
templates/bn/ |
Shared templ components (head, engagement, toolbar) |
auth/ |
Claims types, context extractors |
content/ |
Content access interface |
settings/ |
Settings access interface |
gating/ |
Access gating evaluation |
crypto/ |
Encrypt/Decrypt interface |
render/ |
Rich text rendering utilities |
video/ |
Video embed URL parsing |
ai/ |
AI tool registry interface and types |
rbac/ |
Role type definition |
Usage
import "git.dev.alexdunmow.com/ninja/core/plugin"
Description
Languages
Go
83.5%
templ
15.5%
Makefile
1%