Skip to main content

Module vibe

Module vibe 

Source
Expand description

MCP tools for VibeScript 0.1 engine: compilation, checking, formatting, evaluation, and invocation.

Exposes Vibe DSL parsing, typechecking, AST generation, bytecode compilation, runtime evaluation, and capability invocation to support building software within the QualiaDB ecosystem. Follows AGENTS.md §0-B (<500 lines).

Functions§

json_to_vibe
Converts serde_json::Value into vibe::Value.
vibe_catalog
vibe_catalog tool — queries the catalog of all bound VibeScript capability IDs.
vibe_check
vibe_check tool — parses and typechecks VibeScript source code. Returns syntax/type diagnostics, evidential bindings, and validation verdict.
vibe_compile
vibe_compile tool — compiles VibeScript source into stack-based bytecode Chunk. Returns disassembly, constants, metadata, and hex-encoded bytecode binary.
vibe_eval
vibe_eval tool — parses and evaluates VibeScript source code against the live snapshot.
vibe_format
vibe_format tool — canonical formatting of VibeScript declarations.
vibe_invoke
vibe_invoke tool — invokes a capability by ID across logic, math, physics, audio, and studio domains.
vibe_to_json
Converts vibe::Value into serde_json::Value.