MetaBot LLM Wiki Runtime
This runtime is embedded inside each generated Wiki skill. It is not installed as a standalone default OAC skill.
Registry
The runtime keeps a private registry for the generated skill unless payload.registryHome overrides it.
- Default registry file:
<generated-skill>/.wiki-home/registry.json - Each registry entry includes
kbId,rootDir,title, andaliases. - When no
kbIdis provided, the runtime resolves frompayload.wiki,wikiName,project,projectName,name, the default registry entry, or the only registered project.
Default Flow
registry_createcreates or registers a Wiki project.ingestmirrors raw documents into the workspace.indexbuilds local lexical/vector/hybrid indexes.absorbruns incremental ingest and index in one step.queryanswers with citations from the local index.wiki_buildcreates a static HTML wiki.publish_allbuilds the site, creates a ZIP, optionally uploads it, and optionally publishes a snapshot pin.
publish_all runs an incremental absorb when the current project has no indexed documents.
Publish Modes
Publishing is controlled by two flags:
uploadZip: upload the ZIP withmetabot file upload-large.snapshotOnChain: publish the snapshot withmetabot chain write.
Compatibility:
snapshotOnChaintakes priority over the legacypublishOnChainflag.uploadZip:trueuploads even whenzipUriis present.uploadZip:falsereuseszipUrior keeps a local ZIP when no public URI is provided.- When
snapshotOnChain:true,zipUrimust be public. Localfile://paths are rejected.
Command
node "<generated-skill>/runtime/metabot-llm-wiki/scripts/index.js" --payload '<JSON>'
Payload shape:
{
"action": "query",
"kbId": "metaid-wiki",
"requestId": "req-001",
"payload": {}
}
Actions
registry_createregistry_listregistry_set_defaultregistry_resolveregistry_removeinitingestindexqueryabsorbwiki_buildbundle_zippublish_zippublish_snapshotpublish_all
Examples
Create a Wiki project and make it the default:
{
"action": "registry_create",
"payload": {
"title": "MetaID Wiki",
"kbId": "metaid-wiki",
"aliases": ["metaid", "MetaID"],
"setDefault": true
}
}
Query the default Wiki:
{
"action": "query",
"payload": {
"question": "What does this knowledge base say about MetaID?"
}
}
Run a local publish preview:
{
"action": "publish_all",
"payload": {
"uploadZip": false,
"snapshotOnChain": false
}
}
Upload the ZIP and publish a snapshot:
{
"action": "publish_all",
"payload": {
"uploadZip": true,
"snapshotOnChain": true
}
}
Runtime Notes
- The runtime is dependency-light and writes deterministic ZIP files without requiring a separate ZIP package.
- PDF and DOCX extraction use optional local tools when available. If those tools are missing, the runtime reports the missing parser instead of silently dropping documents.
- Upload and chain writes use the installed OAC
metabotCLI. SetMETABOT_CLIorOAC_METABOT_CLIto override the CLI path.