Files
metabuilder/packages/theme_editor/permissions/roles.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

54 lines
1.2 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/permissions.schema.json",
"schemaVersion": "1.0.0",
"package": "theme_editor",
"description": "Theme editor access permissions",
"permissions": [
{
"id": "theme.view",
"name": "View Theme",
"description": "View current theme settings",
"resource": "theme",
"action": "read",
"scope": "global",
"minLevel": 2
},
{
"id": "theme.edit",
"name": "Edit Theme",
"description": "Modify theme settings",
"resource": "theme",
"action": "update",
"scope": "global",
"minLevel": 3
},
{
"id": "theme.export",
"name": "Export Theme",
"description": "Export theme as JSON",
"resource": "theme",
"action": "export",
"scope": "global",
"minLevel": 3
},
{
"id": "theme.import",
"name": "Import Theme",
"description": "Import theme from JSON",
"resource": "theme",
"action": "import",
"scope": "global",
"minLevel": 4
}
],
"resources": [
{
"id": "theme",
"name": "Theme",
"type": "system",
"description": "Theme configuration resources",
"actions": ["read", "update", "export", "import"]
}
]
}