68 const std::vector<ComponentInfo>& components,
70 std::string appearance);
Definition design_adherence.hpp:32
std::string emit_binding_prompt(const DesignManifest &manifest)
Emit an LLM-ready binding prompt (Markdown): the closed token allowlist and the component contracts,...
DesignManifest compile_design_manifest(const pulp::view::Theme &theme, const std::vector< ComponentInfo > &components, std::string source, std::string appearance)
Compile a manifest from an explicit theme + component set.
std::string manifest_to_json(const DesignManifest &manifest)
Serialize to stable, pretty JSON.
DesignManifest compile_ink_signal_manifest(bool dark=false)
Compile from the built-in Ink & Signal system: its theme for the requested appearance plus the full c...
constexpr std::string_view kManifestVersion
The on-disk format identifier stamped into DesignManifest::manifest_version.
Definition design_manifest.hpp:32
DesignManifest manifest_from_json(const std::string &json)
Parse a manifest back from the JSON that manifest_to_json produces.
The compiled design contract.
Definition design_manifest.hpp:56
std::string appearance
Definition design_manifest.hpp:59
std::vector< ManifestToken > tokens
Definition design_manifest.hpp:61
std::vector< ManifestComponent > components
Definition design_manifest.hpp:62
std::string manifest_version
Definition design_manifest.hpp:57
int theme_schema_version
Definition design_manifest.hpp:60
std::string source
Definition design_manifest.hpp:58
One component contract: a widget an importer may target and the exact theme tokens it legitimately pa...
Definition design_manifest.hpp:44
std::string name
Definition design_manifest.hpp:45
std::string usage
Definition design_manifest.hpp:50
std::string native_class
Definition design_manifest.hpp:47
std::string category
Definition design_manifest.hpp:46
std::string figma_component
Definition design_manifest.hpp:49
std::vector< std::string > reskin_tokens
Definition design_manifest.hpp:51
std::string header
Definition design_manifest.hpp:48
One token in the compiled allowlist: a name an importer/codegen may bind to, its kind,...
Definition design_manifest.hpp:36
std::string value
Definition design_manifest.hpp:39
std::string kind
Definition design_manifest.hpp:38
std::string name
Definition design_manifest.hpp:37