Files
metabuilder/packages/code_editor/permissions/roles.json
johndoe6345789 42446ef255 feat: Update package schemas and scripts to support JSON-based lifecycle hooks
- Added `jsonScript` property to metadata schema for JSON script entry points.
- Refactored `generate-package.ts` to replace Lua scripts with JSON scripts for lifecycle hooks.
- Updated test generation to use JSON format for metadata validation.
- Modified documentation and comments to reflect the transition from Lua to JSON scripting.
- Adjusted Storybook configuration and mock data to align with new JSON script structure.
- Renamed relevant files and references from Lua to JSON for consistency across the project.
2026-01-07 15:25:45 +00:00

54 lines
1.4 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/permissions.schema.json",
"schemaVersion": "1.0.0",
"package": "code_editor",
"description": "Code editor access permissions",
"permissions": [
{
"id": "editor.code.view",
"name": "View Code Editor",
"description": "View code in editor (read-only access)",
"resource": "code_editor",
"action": "read",
"scope": "global",
"minLevel": 5
},
{
"id": "editor.code.edit",
"name": "Edit Code",
"description": "Edit code in editor",
"resource": "code_editor",
"action": "update",
"scope": "global",
"minLevel": 5
},
{
"id": "editor.theme.apply",
"name": "Apply Editor Themes",
"description": "Apply and customize editor themes",
"resource": "code_editor",
"action": "manage",
"scope": "global",
"minLevel": 5
},
{
"id": "editor.script.execute",
"name": "Execute Scripts",
"description": "Execute scripts in sandbox environment",
"resource": "code_editor",
"action": "execute",
"scope": "global",
"minLevel": 5
}
],
"resources": [
{
"id": "code_editor",
"name": "Code Editor",
"type": "component",
"description": "Code editor resources",
"actions": ["read", "update", "manage", "execute"]
}
]
}