Files
metabuilder/packages/theme_editor/scripts/functions.json
johndoe6345789 3ec49cfe8c feat: Introduce schema-driven package system specification
- Added `package_system.tla` to model the schema-driven package system, including multi-source loading, validation, dependency resolution, and permission filtering.
- Created `package_system.cfg` for TLC model checker configuration, defining constants and invariants for bounded model checking.
- Updated `metabuilder.tla` to reflect the core specification of MetaBuilder, emphasizing the package lifecycle and related specifications.
2026-01-02 21:59:59 +00:00

121 lines
2.9 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
"schemaVersion": "2.2.0",
"package": "theme_editor",
"description": "Theme management functions for saving, loading, and applying themes",
"functions": [
{
"id": "theme_save",
"name": "saveTheme",
"exported": true,
"description": "Save current theme configuration",
"category": "theme",
"luaScript": "theme.lua"
},
{
"id": "theme_load",
"name": "loadTheme",
"exported": true,
"description": "Load a saved theme",
"category": "theme",
"luaScript": "theme.lua"
},
{
"id": "theme_apply",
"name": "applyTheme",
"exported": true,
"description": "Apply theme to the current session",
"category": "theme",
"luaScript": "theme.lua"
},
{
"id": "theme_export",
"name": "exportTheme",
"exported": true,
"description": "Export theme as JSON file",
"category": "theme",
"luaScript": "theme.lua"
},
{
"id": "theme_import",
"name": "importTheme",
"exported": true,
"description": "Import theme from JSON file",
"category": "theme",
"luaScript": "theme.lua"
},
{
"id": "theme_reset",
"name": "resetTheme",
"exported": true,
"description": "Reset theme to defaults",
"category": "theme",
"luaScript": "theme.lua"
},
{
"id": "color_hex_to_rgb",
"name": "hexToRgb",
"exported": true,
"description": "Convert hex color to RGB",
"category": "colors",
"luaScript": "colors.lua"
},
{
"id": "color_rgb_to_hex",
"name": "rgbToHex",
"exported": true,
"description": "Convert RGB to hex color",
"category": "colors",
"luaScript": "colors.lua"
},
{
"id": "color_lighten",
"name": "lightenColor",
"exported": true,
"description": "Lighten a color by percentage",
"category": "colors",
"luaScript": "colors.lua"
},
{
"id": "color_darken",
"name": "darkenColor",
"exported": true,
"description": "Darken a color by percentage",
"category": "colors",
"luaScript": "colors.lua"
},
{
"id": "color_contrast",
"name": "getContrastColor",
"exported": true,
"description": "Get contrasting text color (black or white)",
"category": "colors",
"luaScript": "colors.lua"
},
{
"id": "color_validate",
"name": "validateColor",
"exported": true,
"description": "Validate a color value",
"category": "colors",
"luaScript": "colors.lua"
}
],
"exports": {
"functions": [
"saveTheme",
"loadTheme",
"applyTheme",
"exportTheme",
"importTheme",
"resetTheme",
"hexToRgb",
"rgbToHex",
"lightenColor",
"darkenColor",
"getContrastColor",
"validateColor"
]
}
}