Convert the bundled backend/internal/plugins/smartblock package into a standalone reactor-mode wasm plugin: - package smartblock -> package main; add wasip1 main.go with wasmguest.Serve(Registration). - Add go.mod (module git.dev.alexdunmow.com/block/smartblock) pinning block/core v0.18.2; no replace directives. - Flesh out plugin.mod (scope=ninja, kind=plugin, categories, tags, display_name, description). - Point web/eslint.config.js at ../../../cms/web/eslint.config.js and switch @block-ninja/ui from workspace:* to the ^0.1.0 registry version; rebuild web/dist. - Add .gitignore (*.bnp, *.wasm, web/node_modules). Behavior unchanged: registers the "smart" block; assets served from web/dist. Builds to smartblock-1.0.0.bnp; check-safety passes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
553 B
Modula-2
18 lines
553 B
Modula-2
module git.dev.alexdunmow.com/block/smartblock
|
|
|
|
go 1.26.4
|
|
|
|
require git.dev.alexdunmow.com/block/core v0.18.2
|
|
|
|
require (
|
|
connectrpc.com/connect v1.20.0 // indirect
|
|
github.com/BurntSushi/toml v1.6.0 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
|
github.com/jackc/pgx/v5 v5.9.2 // indirect
|
|
golang.org/x/mod v0.34.0 // indirect
|
|
golang.org/x/text v0.36.0 // indirect
|
|
google.golang.org/protobuf v1.36.11 // indirect
|
|
)
|