Documentation
¶
Overview ¶
Package tools is the central registry for every tool instance wick will mount. Downstream apps append to it via app.RegisterTool, and server.go walks All() at boot to validate, wire routes, and seed config rows.
Two seed paths exist:
- init() seeds core tools that ship with every consumer (currently encfields, since the MCP encrypt/decrypt redirects depend on it).
- RegisterBuiltins() seeds opt-in lab-only tools — convert-text, external links — and is called only from cmd/lab.
To add a built-in tool (wick lab binary only):
- Create internal/tools/<name>/ with a Register(r tool.Router) func and, if the tool has runtime-editable config, a Config struct.
- Append one or more app.RegisterTool calls to RegisterBuiltins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register appends a fully-resolved Module record to the registry. Called from app.RegisterTool / app.RegisterToolNoConfig; do not call directly from app code.
func RegisterBuiltins ¶
func RegisterBuiltins()
RegisterBuiltins seeds wick's own in-house tools into the registry. Intended for the wick lab binary (cmd/lab) — downstream projects start with an empty registry and register only their own tools.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package converttext is a stateless text-conversion tool.
|
Package converttext is a stateless text-conversion tool. |
|
Package encfields backs /tools/encfields — the in-app form for minting and reversing wick_enc_ tokens.
|
Package encfields backs /tools/encfields — the in-app form for minting and reversing wick_enc_ tokens. |
|
Package external wraps third-party links as tool.Module entries so they show up on the home grid and palette alongside in-app tools.
|
Package external wraps third-party links as tool.Module entries so they show up on the home grid and palette alongside in-app tools. |