Previously a brand-new repo (git init, no commits) surfaced `git stash create: exit status 128: You do not have the initial commit yet` from deep inside the archive helper. Now the publish flow detects this case via `git rev-parse --verify HEAD` up front and prints "no commits in repository; run `git add . && git commit` before publishing". Also updates the init flow's hint to mention `git init && git commit` so users aren't misled into thinking `git init` alone is enough. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
BlockNinja Plugin SDK
Types, interfaces, and utilities for building BlockNinja plugins.
Package Structure
| Package | Purpose |
|---|---|
plugin/ |
PluginRegistration, ServiceDeps, 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
74.9%
templ
23.4%
Makefile
1.6%