{
    "id": "hristudio-core",
    "name": "HRIStudio Core",
    "version": "1.0.0",
    "description": "Essential platform control flow and logic actions.",
    "author": "HRIStudio",
    "trustLevel": "official",
    "actionDefinitions": [
        {
            "id": "wait",
            "name": "Wait",
            "description": "Wait for specified time",
            "category": "control",
            "icon": "Clock",
            "color": "#f59e0b",
            "parameters": {},
            "parameterSchema": {
                "type": "object",
                "properties": {
                    "duration": {
                        "title": "Duration (seconds)",
                        "type": "number",
                        "minimum": 0.1,
                        "maximum": 300,
                        "default": 2,
                        "description": "Time to wait in seconds"
                    }
                },
                "required": [
                    "duration"
                ]
            },
            "timeout": 60000,
            "retryable": false,
            "nestable": false
        },
        {
            "id": "branch",
            "name": "Branch / Decision",
            "description": "Prompt the wizard to choose a path.",
            "category": "control",
            "icon": "GitBranch",
            "color": "#f97316",
            "parameters": {},
            "parameterSchema": {
                "type": "object",
                "properties": {
                    "options": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "label": {
                                    "type": "string"
                                },
                                "nextStepId": {
                                    "type": "string"
                                },
                                "variant": {
                                    "type": "string"
                                }
                            }
                        },
                        "description": "Branching options"
                    }
                },
                "required": [
                    "options"
                ]
            },
            "timeout": 0,
            "retryable": false,
            "nestable": false
        },
        {
            "id": "loop",
            "name": "Loop / Repeat",
            "description": "Repeat a sequence of steps.",
            "category": "control",
            "icon": "Repeat",
            "color": "#8b5cf6",
            "parameters": {},
            "parameterSchema": {
                "type": "object",
                "properties": {
                    "iterations": {
                        "title": "Iterations",
                        "type": "number",
                        "minimum": 1,
                        "maximum": 100,
                        "default": 1,
                        "description": "Number of times to repeat (standard loop)"
                    },
                    "children": {
                        "title": "Actions",
                        "type": "array",
                        "description": "Child actions to repeat"
                    }
                },
                "required": [
                    "iterations"
                ]
            },
            "timeout": 0,
            "retryable": false,
            "nestable": true
        },
        {
            "id": "parallel",
            "name": "Parallel Execution",
            "description": "Run nested actions simultaneously.",
            "category": "control",
            "icon": "Layers",
            "color": "#10b981",
            "parameters": {},
            "parameterSchema": {
                "type": "object",
                "properties": {
                    "children": {
                        "title": "Actions",
                        "type": "array",
                        "description": "Child actions to execute in parallel"
                    }
                }
            },
            "timeout": 0,
            "retryable": false,
            "nestable": true
        }
    ]
}