{
    "tailapp": 2,
    "manifest": {
        "format": 2,
        "app_id": "laravel-cloud",
        "name": "Laravel Cloud",
        "version": 1,
        "schema": "tailapps/v0",
        "exported_at": 1795564599,
        "from": "gallery",
        "connections": [],
        "files": {
            "app.json": "4d7dae70e5e76e070847f0e13513f320d1029ff8d26a9fa978c90350957dbf23"
        },
        "signature": "2dGLDTHfKGj7mNJFTI39B63LBcXMNmuMaaPMdw7pIOGpZf3f64xzFRS8R/6zbBvcE9AAQfKvabNwoZN9r5nrCQ==",
        "key_id": "gallery-1"
    },
    "app": {
        "schema": "tailapps/v0",
        "app": "laravel-cloud",
        "name": "Laravel Cloud",
        "description": "Deploy status and a Deploy button for one project, from your Mac (cloud CLI). For status on your iPhone, turn on \"Show on my other devices\" there, then Sync to My Devices.",
        "version": 2,
        "icon": "cloud",
        "requires": [
            {
                "cli": "cloud",
                "install": "composer global require laravel/cloud-cli",
                "check": [
                    "cloud",
                    "--version"
                ]
            }
        ],
        "permissions": [
            "cli:cloud deployment:list",
            "cli:cloud deploy",
            "cli:cloud dashboard",
            "notify",
            "inbox:deploy",
            "send:deploy"
        ],
        "settings": {
            "project": {
                "type": "folder",
                "label": "Project folder",
                "must_contain": ".cloud",
                "required": true,
                "sync": false,
                "platforms": [
                    "macos"
                ]
            },
            "share": {
                "type": "toggle",
                "label": "Show on my other devices",
                "default": false,
                "platforms": [
                    "macos"
                ]
            }
        },
        "state": {
            "deploys": {
                "type": "list",
                "default": []
            }
        },
        "sources": {
            "deploys": {
                "cli": "cloud",
                "args": [
                    "deployment:list",
                    "--json"
                ],
                "cwd": "$settings.project",
                "every": 30,
                "select": "data",
                "platforms": [
                    "macos"
                ],
                "on_change": {
                    "action": "report",
                    "watch": "{$deploys.0.created_at}-{$deploys.0.status}"
                }
            },
            "shared": {
                "inbox": "deploy",
                "on_receive": "heard"
            }
        },
        "cards": [
            {
                "id": "main",
                "layout": {
                    "column": [
                        {
                            "list": "$deploys",
                            "limit": 5,
                            "empty": "No deployments yet",
                            "item": {
                                "row": [
                                    {
                                        "text": "$item.commit_message | truncate:40",
                                        "grow": true
                                    },
                                    {
                                        "badge": "$item.status | map:{finished:'Live', failed:'Failed', else:'Deploying'}",
                                        "tone": "$item.status | tone:{finished:'good', failed:'bad', else:'accent'}",
                                        "busy": "$item.status | map:{finished:false, failed:false, else:true}"
                                    },
                                    {
                                        "text": "$item.created_at | ago",
                                        "emphasis": "subtle",
                                        "size": "s"
                                    }
                                ],
                                "align": "center",
                                "gap": "s"
                            }
                        },
                        {
                            "text": "Updated {$meta.deploys.updated | ago}",
                            "size": "xs",
                            "emphasis": "subtle",
                            "when": "$meta.deploys.updated"
                        },
                        {
                            "row": [
                                {
                                    "button": "Deploy",
                                    "on": "deploy",
                                    "style": "primary",
                                    "disabled": "$running.deploy"
                                },
                                {
                                    "button": "Open in Cloud",
                                    "on": "dashboard",
                                    "style": "plain"
                                }
                            ],
                            "gap": "s",
                            "platforms": [
                                "macos"
                            ]
                        },
                        {
                            "text": "The latest deploy, from your Mac. Deploy from there.",
                            "size": "xs",
                            "emphasis": "subtle",
                            "platforms": [
                                "ios"
                            ]
                        }
                    ],
                    "gap": "m"
                }
            }
        ],
        "actions": {
            "deploy": {
                "confirm": "Deploy this project now?",
                "steps": [
                    {
                        "cli": "cloud",
                        "args": [
                            "deploy",
                            "--json"
                        ],
                        "cwd": "$settings.project",
                        "timeout": 600
                    },
                    {
                        "refresh": "deploys"
                    },
                    {
                        "notify": {
                            "title": "Laravel Cloud",
                            "body": "Deploy finished"
                        }
                    }
                ]
            },
            "dashboard": {
                "steps": [
                    {
                        "cli": "cloud",
                        "args": [
                            "dashboard"
                        ],
                        "cwd": "$settings.project"
                    }
                ]
            },
            "report": {
                "steps": [
                    {
                        "if": "$settings.share",
                        "then": [
                            {
                                "if": "$args.previous",
                                "then": [
                                    {
                                        "send": {
                                            "deploy": {
                                                "status": "$deploys.0.status",
                                                "commit_message": "$deploys.0.commit_message",
                                                "created_at": "$deploys.0.created_at"
                                            }
                                        },
                                        "alert": "$deploys.0.status | map:{failed:'Laravel Cloud deploy failed', else:''}"
                                    }
                                ],
                                "else": [
                                    {
                                        "send": {
                                            "deploy": {
                                                "status": "$deploys.0.status",
                                                "commit_message": "$deploys.0.commit_message",
                                                "created_at": "$deploys.0.created_at"
                                            }
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ]
            },
            "heard": {
                "steps": [
                    {
                        "if": "$args.event.status",
                        "then": [
                            {
                                "set": {
                                    "deploys": [
                                        "$args.event"
                                    ]
                                }
                            }
                        ]
                    }
                ]
            }
        },
        "views": {
            "menubar": {
                "icon": "cloud",
                "card": "main",
                "label": "$deploys.0.status | map:{finished:'Live', failed:'Failed', else:'Deploying'}",
                "label_tone": "$deploys.0.status | tone:{finished:'good', failed:'bad', else:'accent'}",
                "label_icon": "$deploys.0.status | map:{finished:'checkmark.icloud', failed:'xmark.icloud', else:'icloud.and.arrow.up'}"
            },
            "floating": {
                "card": "main"
            }
        },
        "shortcuts": {
            "actions": {
                "deploy": {
                    "keys": "mod+opt+d",
                    "scope": "global"
                }
            }
        }
    },
    "app_json": "{\n  \"schema\": \"tailapps/v0\",\n  \"app\": \"laravel-cloud\",\n  \"name\": \"Laravel Cloud\",\n  \"description\": \"Deploy status and a Deploy button for one project, from your Mac (cloud CLI). For status on your iPhone, turn on \\\"Show on my other devices\\\" there, then Sync to My Devices.\",\n  \"version\": 2,\n  \"icon\": \"cloud\",\n  \"requires\": [{ \"cli\": \"cloud\", \"install\": \"composer global require laravel/cloud-cli\", \"check\": [\"cloud\", \"--version\"] }],\n  \"permissions\": [\"cli:cloud deployment:list\", \"cli:cloud deploy\", \"cli:cloud dashboard\", \"notify\", \"inbox:deploy\", \"send:deploy\"],\n  \"settings\": {\n    \"project\": { \"type\": \"folder\", \"label\": \"Project folder\", \"must_contain\": \".cloud\", \"required\": true, \"sync\": false, \"platforms\": [\"macos\"] },\n    \"share\": { \"type\": \"toggle\", \"label\": \"Show on my other devices\", \"default\": false, \"platforms\": [\"macos\"] }\n  },\n  \"state\": { \"deploys\": { \"type\": \"list\", \"default\": [] } },\n  \"sources\": {\n    \"deploys\": { \"cli\": \"cloud\", \"args\": [\"deployment:list\", \"--json\"], \"cwd\": \"$settings.project\", \"every\": 30, \"select\": \"data\", \"platforms\": [\"macos\"],\n      \"on_change\": { \"action\": \"report\", \"watch\": \"{$deploys.0.created_at}-{$deploys.0.status}\" } },\n    \"shared\": { \"inbox\": \"deploy\", \"on_receive\": \"heard\" }\n  },\n  \"cards\": [{ \"id\": \"main\", \"layout\": { \"column\": [\n    { \"list\": \"$deploys\", \"limit\": 5, \"empty\": \"No deployments yet\", \"item\": { \"row\": [\n      { \"text\": \"$item.commit_message | truncate:40\", \"grow\": true },\n      { \"badge\": \"$item.status | map:{finished:'Live', failed:'Failed', else:'Deploying'}\",\n        \"tone\": \"$item.status | tone:{finished:'good', failed:'bad', else:'accent'}\",\n        \"busy\": \"$item.status | map:{finished:false, failed:false, else:true}\" },\n      { \"text\": \"$item.created_at | ago\", \"emphasis\": \"subtle\", \"size\": \"s\" }\n    ], \"align\": \"center\", \"gap\": \"s\" } },\n    { \"text\": \"Updated {$meta.deploys.updated | ago}\", \"size\": \"xs\", \"emphasis\": \"subtle\", \"when\": \"$meta.deploys.updated\" },\n    { \"row\": [\n      { \"button\": \"Deploy\", \"on\": \"deploy\", \"style\": \"primary\", \"disabled\": \"$running.deploy\" },\n      { \"button\": \"Open in Cloud\", \"on\": \"dashboard\", \"style\": \"plain\" }\n    ], \"gap\": \"s\", \"platforms\": [\"macos\"] },\n    { \"text\": \"The latest deploy, from your Mac. Deploy from there.\", \"size\": \"xs\", \"emphasis\": \"subtle\", \"platforms\": [\"ios\"] }\n  ], \"gap\": \"m\" } }],\n  \"actions\": {\n    \"deploy\": { \"confirm\": \"Deploy this project now?\", \"steps\": [\n      { \"cli\": \"cloud\", \"args\": [\"deploy\", \"--json\"], \"cwd\": \"$settings.project\", \"timeout\": 600 },\n      { \"refresh\": \"deploys\" },\n      { \"notify\": { \"title\": \"Laravel Cloud\", \"body\": \"Deploy finished\" } }\n    ] },\n    \"dashboard\": { \"steps\": [{ \"cli\": \"cloud\", \"args\": [\"dashboard\"], \"cwd\": \"$settings.project\" }] },\n    \"report\": { \"steps\": [\n      { \"if\": \"$settings.share\", \"then\": [\n        { \"if\": \"$args.previous\", \"then\": [\n          { \"send\": { \"deploy\": { \"status\": \"$deploys.0.status\", \"commit_message\": \"$deploys.0.commit_message\", \"created_at\": \"$deploys.0.created_at\" } },\n            \"alert\": \"$deploys.0.status | map:{failed:'Laravel Cloud deploy failed', else:''}\" }\n        ], \"else\": [\n          { \"send\": { \"deploy\": { \"status\": \"$deploys.0.status\", \"commit_message\": \"$deploys.0.commit_message\", \"created_at\": \"$deploys.0.created_at\" } } }\n        ] }\n      ] }\n    ] },\n    \"heard\": { \"steps\": [\n      { \"if\": \"$args.event.status\", \"then\": [{ \"set\": { \"deploys\": [\"$args.event\"] } }] }\n    ] }\n  },\n  \"views\": {\n    \"menubar\": { \"icon\": \"cloud\", \"card\": \"main\",\n      \"label\": \"$deploys.0.status | map:{finished:'Live', failed:'Failed', else:'Deploying'}\",\n      \"label_tone\": \"$deploys.0.status | tone:{finished:'good', failed:'bad', else:'accent'}\",\n      \"label_icon\": \"$deploys.0.status | map:{finished:'checkmark.icloud', failed:'xmark.icloud', else:'icloud.and.arrow.up'}\" },\n    \"floating\": { \"card\": \"main\" }\n  },\n  \"shortcuts\": { \"actions\": { \"deploy\": { \"keys\": \"mod+opt+d\", \"scope\": \"global\" } } }\n}\n",
    "files": []
}