{
    "tailapp": 2,
    "manifest": {
        "format": 2,
        "app_id": "remote-recorder",
        "name": "Remote Recorder",
        "version": 1,
        "schema": "tailapps/v0",
        "exported_at": 1795557904,
        "from": "gallery",
        "connections": [],
        "files": {
            "app.json": "dd0fc0863c8b6cda086bb76cb1dd49c6ee014376b8c43693a4124086bdf6129a"
        },
        "signature": "Hj97AxhoPfINu5bXXZ30UTUKmkPbkhajtZvaO1RQ2Hn3ed+sR8BkrmUMl5r9+60MV2P9grWW3ixcnn9h+456Dw==",
        "key_id": "gallery-1"
    },
    "app": {
        "schema": "tailapps/v0",
        "app": "remote-recorder",
        "name": "Remote Recorder",
        "description": "Start and stop a screen recording on your Mac from your iPhone, see how long it's been going, then watch it on the phone. The Mac stays awake while it records. Turn on Sync to My Devices on both.",
        "icon": "record.circle",
        "version": 1,
        "permissions": [
            "screen.record",
            "screen.record.remote",
            "power.control",
            "inbox:asks",
            "send:asks",
            "inbox:clips",
            "send:clips",
            "files.write:dest",
            "share",
            "open:url"
        ],
        "settings": {
            "dest": {
                "type": "storage",
                "label": "Upload recordings too big to send (over 10 MB) to",
                "allow": [
                    "s3"
                ],
                "platforms": [
                    "macos"
                ]
            }
        },
        "state": {
            "phase": {
                "type": "text",
                "default": "idle",
                "sync": true
            },
            "started_at": {
                "type": "number",
                "default": 0,
                "sync": true
            },
            "clip": {
                "type": "text",
                "default": ""
            },
            "seconds": {
                "type": "number",
                "default": 0
            },
            "link": {
                "type": "text",
                "default": ""
            }
        },
        "sources": {
            "asks": {
                "inbox": "asks",
                "on_receive": "asked",
                "platforms": [
                    "macos"
                ]
            },
            "clips": {
                "inbox": "clips",
                "on_receive": "got",
                "platforms": [
                    "ios"
                ]
            }
        },
        "actions": {
            "start": {
                "steps": [
                    {
                        "screen.record.start": {
                            "target": "display",
                            "max_seconds": 900
                        }
                    },
                    {
                        "awake.start": {
                            "display": true,
                            "minutes": 15
                        }
                    },
                    {
                        "set": {
                            "phase": "recording",
                            "started_at": "$now",
                            "clip": "",
                            "link": ""
                        }
                    }
                ]
            },
            "finish": {
                "timeout": 900,
                "steps": [
                    {
                        "set": {
                            "phase": "sending"
                        }
                    },
                    {
                        "awake.stop": []
                    },
                    {
                        "screen.record.stop": [],
                        "as": "rec"
                    },
                    {
                        "set": {
                            "clip": "$rec.path",
                            "seconds": "$rec.seconds",
                            "link": ""
                        }
                    },
                    {
                        "if": "$rec.size | tone:{good:'<=10000000', else:'bad'} | map:{good:true, else:false}",
                        "then": [
                            {
                                "set": {
                                    "phase": "ready"
                                }
                            },
                            {
                                "send": {
                                    "clips": {
                                        "seconds": "$rec.seconds",
                                        "at": "$now"
                                    }
                                },
                                "file": "$rec.path",
                                "alert": "Your Mac's screen recording is ready"
                            }
                        ],
                        "else": [
                            {
                                "if": "$settings.dest",
                                "then": [
                                    {
                                        "files.save": {
                                            "data": "$rec.path",
                                            "to": "$settings.dest",
                                            "name": "recording-{$now}.mp4"
                                        },
                                        "as": "saved"
                                    },
                                    {
                                        "set": {
                                            "link": "$saved.url"
                                        }
                                    },
                                    {
                                        "set": {
                                            "phase": "ready"
                                        }
                                    },
                                    {
                                        "send": {
                                            "clips": {
                                                "seconds": "$rec.seconds",
                                                "at": "$now",
                                                "link": "$saved.url"
                                            }
                                        },
                                        "alert": "Your Mac's screen recording is uploaded"
                                    }
                                ],
                                "else": [
                                    {
                                        "set": {
                                            "phase": "too_big"
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ]
            },
            "asked": {
                "timeout": 900,
                "steps": [
                    {
                        "if": "$args.event.do | map:{start:true, else:false}",
                        "then": [
                            {
                                "if": "$args.event.at | times:-1 | add:$now | tone:{good:'<=120', else:'bad'} | map:{good:true, else:false}",
                                "then": [
                                    {
                                        "screen.record.start": {
                                            "target": "display",
                                            "max_seconds": 900
                                        }
                                    },
                                    {
                                        "awake.start": {
                                            "display": true,
                                            "minutes": 15
                                        }
                                    },
                                    {
                                        "set": {
                                            "phase": "recording",
                                            "started_at": "$now",
                                            "clip": "",
                                            "link": ""
                                        }
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "if": "$args.event.do | map:{stop:true, else:false}",
                        "then": [
                            {
                                "set": {
                                    "phase": "sending"
                                }
                            },
                            {
                                "awake.stop": []
                            },
                            {
                                "screen.record.stop": [],
                                "as": "rec"
                            },
                            {
                                "set": {
                                    "clip": "$rec.path",
                                    "seconds": "$rec.seconds",
                                    "link": ""
                                }
                            },
                            {
                                "if": "$rec.size | tone:{good:'<=10000000', else:'bad'} | map:{good:true, else:false}",
                                "then": [
                                    {
                                        "send": {
                                            "clips": {
                                                "seconds": "$rec.seconds",
                                                "at": "$now"
                                            }
                                        },
                                        "file": "$rec.path",
                                        "to": "$args.from_id",
                                        "alert": "Your Mac's screen recording is ready"
                                    },
                                    {
                                        "set": {
                                            "phase": "ready"
                                        }
                                    }
                                ],
                                "else": [
                                    {
                                        "if": "$settings.dest",
                                        "then": [
                                            {
                                                "files.save": {
                                                    "data": "$rec.path",
                                                    "to": "$settings.dest",
                                                    "name": "recording-{$now}.mp4"
                                                },
                                                "as": "saved"
                                            },
                                            {
                                                "set": {
                                                    "link": "$saved.url"
                                                }
                                            },
                                            {
                                                "send": {
                                                    "clips": {
                                                        "seconds": "$rec.seconds",
                                                        "at": "$now",
                                                        "link": "$saved.url"
                                                    }
                                                },
                                                "to": "$args.from_id",
                                                "alert": "Your Mac's screen recording is uploaded"
                                            },
                                            {
                                                "set": {
                                                    "phase": "ready"
                                                }
                                            }
                                        ],
                                        "else": [
                                            {
                                                "set": {
                                                    "phase": "too_big"
                                                }
                                            }
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            },
            "ask_start": {
                "confirm": "Start recording your Mac's screen?",
                "steps": [
                    {
                        "set": {
                            "phase": "starting",
                            "clip": "",
                            "link": ""
                        }
                    },
                    {
                        "send": {
                            "asks": {
                                "do": "start",
                                "at": "$now"
                            }
                        }
                    }
                ]
            },
            "ask_stop": {
                "steps": [
                    {
                        "set": {
                            "phase": "sending"
                        }
                    },
                    {
                        "send": {
                            "asks": {
                                "do": "stop",
                                "at": "$now"
                            }
                        }
                    }
                ]
            },
            "got": {
                "steps": [
                    {
                        "set": {
                            "clip": "$args.file | default:''",
                            "seconds": "$args.event.seconds",
                            "link": "$args.event.link | default:''"
                        }
                    }
                ]
            },
            "forget": {
                "steps": [
                    {
                        "set": {
                            "phase": "idle"
                        }
                    }
                ]
            },
            "share_clip": {
                "steps": [
                    {
                        "share": {
                            "file": "$clip"
                        }
                    }
                ]
            },
            "open_link": {
                "steps": [
                    {
                        "open": "$link"
                    }
                ]
            }
        },
        "cards": [
            {
                "id": "main",
                "layout": {
                    "column": [
                        {
                            "row": [
                                {
                                    "icon": "$phase | map:{recording:'record.circle.fill', starting:'hourglass', sending:'arrow.up.circle', ready:'checkmark.circle.fill', too_big:'exclamationmark.triangle', else:'record.circle'}",
                                    "tone": "$phase | tone:{recording:'bad', ready:'good', too_big:'warn', starting:'accent', sending:'accent', else:'neutral'}",
                                    "size": "l"
                                },
                                {
                                    "column": [
                                        {
                                            "text": "$phase | map:{idle:'Not recording', starting:'Asking your Mac to start\u2026', recording:'Recording your Mac', sending:'Getting the recording\u2026', ready:'Recording ready', too_big:'Too big to send: it is on your Mac', else:'Not recording'}",
                                            "emphasis": "strong"
                                        },
                                        {
                                            "timer": "$started_at",
                                            "mode": "since",
                                            "size": "s",
                                            "when": "$phase | map:{recording:true, else:false}"
                                        },
                                        {
                                            "row": [
                                                {
                                                    "text": "Stops by itself in",
                                                    "size": "xs",
                                                    "emphasis": "subtle"
                                                },
                                                {
                                                    "timer": "$started_at | add:900",
                                                    "mode": "until",
                                                    "size": "xs",
                                                    "on_end": "finish"
                                                }
                                            ],
                                            "gap": "xs",
                                            "platforms": [
                                                "macos"
                                            ],
                                            "when": "$phase | map:{recording:true, else:false}"
                                        },
                                        {
                                            "text": "$seconds | duration:'clock'",
                                            "size": "s",
                                            "emphasis": "subtle",
                                            "when": "$phase | map:{ready:true, too_big:true, else:false}"
                                        }
                                    ],
                                    "gap": "xs",
                                    "grow": true
                                }
                            ],
                            "align": "center",
                            "gap": "m"
                        },
                        {
                            "player": "$clip",
                            "height": "l",
                            "when": "$clip"
                        },
                        {
                            "row": [
                                {
                                    "button": "Share\u2026",
                                    "icon": "square.and.arrow.up",
                                    "on": "share_clip",
                                    "style": "secondary",
                                    "when": "$clip"
                                },
                                {
                                    "button": "Open link",
                                    "icon": "link",
                                    "on": "open_link",
                                    "style": "secondary",
                                    "when": "$link"
                                }
                            ],
                            "gap": "s"
                        },
                        {
                            "button": "Record This Mac",
                            "icon": "record.circle",
                            "on": "start",
                            "style": "primary",
                            "size": "l",
                            "grow": true,
                            "platforms": [
                                "macos"
                            ],
                            "when": "$phase | map:{recording:false, else:true}"
                        },
                        {
                            "button": "Stop Recording",
                            "icon": "stop.circle",
                            "on": "finish",
                            "style": "destructive",
                            "size": "l",
                            "grow": true,
                            "disabled": "$running.finish",
                            "platforms": [
                                "macos"
                            ],
                            "when": "$phase | map:{recording:true, else:false}"
                        },
                        {
                            "button": "Start on My Mac",
                            "icon": "record.circle",
                            "on": "ask_start",
                            "style": "primary",
                            "size": "l",
                            "grow": true,
                            "platforms": [
                                "ios"
                            ],
                            "when": "$phase | map:{recording:false, starting:false, sending:false, else:true}"
                        },
                        {
                            "button": "Stop and Send to iPhone",
                            "icon": "stop.circle",
                            "on": "ask_stop",
                            "style": "destructive",
                            "size": "l",
                            "grow": true,
                            "platforms": [
                                "ios"
                            ],
                            "when": "$phase | map:{recording:true, else:false}"
                        },
                        {
                            "row": [
                                {
                                    "badge": "Waiting for your Mac",
                                    "busy": true,
                                    "tone": "accent"
                                },
                                {
                                    "spacer": true
                                },
                                {
                                    "button": "Stop Waiting",
                                    "on": "forget",
                                    "style": "plain"
                                }
                            ],
                            "align": "center",
                            "platforms": [
                                "ios"
                            ],
                            "when": "$phase | map:{starting:true, sending:true, else:false}"
                        },
                        {
                            "text": "Your Mac needs to be on with TailApps open and Screen Recording allowed. macOS shows that it is recording.",
                            "size": "xs",
                            "emphasis": "subtle",
                            "platforms": [
                                "ios"
                            ],
                            "when": "$phase | map:{idle:true, else:false}"
                        }
                    ],
                    "gap": "m"
                }
            }
        ],
        "views": {
            "menubar": {
                "icon": "record.circle",
                "card": "main",
                "label": "$phase | map:{recording:'REC', else:''}",
                "label_tone": "$phase | map:{recording:'bad', else:'neutral'}"
            },
            "floating": {
                "card": "main",
                "width": "default"
            }
        }
    },
    "app_json": "{\n  \"schema\": \"tailapps/v0\",\n  \"app\": \"remote-recorder\",\n  \"name\": \"Remote Recorder\",\n  \"description\": \"Start and stop a screen recording on your Mac from your iPhone, see how long it's been going, then watch it on the phone. The Mac stays awake while it records. Turn on Sync to My Devices on both.\",\n  \"icon\": \"record.circle\",\n  \"version\": 1,\n  \"permissions\": [\n    \"screen.record\",\n    \"screen.record.remote\",\n    \"power.control\",\n    \"inbox:asks\",\n    \"send:asks\",\n    \"inbox:clips\",\n    \"send:clips\",\n    \"files.write:dest\",\n    \"share\",\n    \"open:url\"\n  ],\n  \"settings\": {\n    \"dest\": {\n      \"type\": \"storage\",\n      \"label\": \"Upload recordings too big to send (over 10 MB) to\",\n      \"allow\": [\n        \"s3\"\n      ],\n      \"platforms\": [\n        \"macos\"\n      ]\n    }\n  },\n  \"state\": {\n    \"phase\": {\n      \"type\": \"text\",\n      \"default\": \"idle\",\n      \"sync\": true\n    },\n    \"started_at\": {\n      \"type\": \"number\",\n      \"default\": 0,\n      \"sync\": true\n    },\n    \"clip\": {\n      \"type\": \"text\",\n      \"default\": \"\"\n    },\n    \"seconds\": {\n      \"type\": \"number\",\n      \"default\": 0\n    },\n    \"link\": {\n      \"type\": \"text\",\n      \"default\": \"\"\n    }\n  },\n  \"sources\": {\n    \"asks\": {\n      \"inbox\": \"asks\",\n      \"on_receive\": \"asked\",\n      \"platforms\": [\n        \"macos\"\n      ]\n    },\n    \"clips\": {\n      \"inbox\": \"clips\",\n      \"on_receive\": \"got\",\n      \"platforms\": [\n        \"ios\"\n      ]\n    }\n  },\n  \"actions\": {\n    \"start\": {\n      \"steps\": [\n        {\n          \"screen.record.start\": {\n            \"target\": \"display\",\n            \"max_seconds\": 900\n          }\n        },\n        {\n          \"awake.start\": {\n            \"display\": true,\n            \"minutes\": 15\n          }\n        },\n        {\n          \"set\": {\n            \"phase\": \"recording\",\n            \"started_at\": \"$now\",\n            \"clip\": \"\",\n            \"link\": \"\"\n          }\n        }\n      ]\n    },\n    \"finish\": {\n      \"timeout\": 900,\n      \"steps\": [\n        {\n          \"set\": {\n            \"phase\": \"sending\"\n          }\n        },\n        {\n          \"awake.stop\": {}\n        },\n        {\n          \"screen.record.stop\": {},\n          \"as\": \"rec\"\n        },\n        {\n          \"set\": {\n            \"clip\": \"$rec.path\",\n            \"seconds\": \"$rec.seconds\",\n            \"link\": \"\"\n          }\n        },\n        {\n          \"if\": \"$rec.size | tone:{good:'<=10000000', else:'bad'} | map:{good:true, else:false}\",\n          \"then\": [\n            {\n              \"set\": {\n                \"phase\": \"ready\"\n              }\n            },\n            {\n              \"send\": {\n                \"clips\": {\n                  \"seconds\": \"$rec.seconds\",\n                  \"at\": \"$now\"\n                }\n              },\n              \"file\": \"$rec.path\",\n              \"alert\": \"Your Mac's screen recording is ready\"\n            }\n          ],\n          \"else\": [\n            {\n              \"if\": \"$settings.dest\",\n              \"then\": [\n                {\n                  \"files.save\": {\n                    \"data\": \"$rec.path\",\n                    \"to\": \"$settings.dest\",\n                    \"name\": \"recording-{$now}.mp4\"\n                  },\n                  \"as\": \"saved\"\n                },\n                {\n                  \"set\": {\n                    \"link\": \"$saved.url\"\n                  }\n                },\n                {\n                  \"set\": {\n                    \"phase\": \"ready\"\n                  }\n                },\n                {\n                  \"send\": {\n                    \"clips\": {\n                      \"seconds\": \"$rec.seconds\",\n                      \"at\": \"$now\",\n                      \"link\": \"$saved.url\"\n                    }\n                  },\n                  \"alert\": \"Your Mac's screen recording is uploaded\"\n                }\n              ],\n              \"else\": [\n                {\n                  \"set\": {\n                    \"phase\": \"too_big\"\n                  }\n                }\n              ]\n            }\n          ]\n        }\n      ]\n    },\n    \"asked\": {\n      \"timeout\": 900,\n      \"steps\": [\n        {\n          \"if\": \"$args.event.do | map:{start:true, else:false}\",\n          \"then\": [\n            {\n              \"if\": \"$args.event.at | times:-1 | add:$now | tone:{good:'<=120', else:'bad'} | map:{good:true, else:false}\",\n              \"then\": [\n                {\n                  \"screen.record.start\": {\n                    \"target\": \"display\",\n                    \"max_seconds\": 900\n                  }\n                },\n                {\n                  \"awake.start\": {\n                    \"display\": true,\n                    \"minutes\": 15\n                  }\n                },\n                {\n                  \"set\": {\n                    \"phase\": \"recording\",\n                    \"started_at\": \"$now\",\n                    \"clip\": \"\",\n                    \"link\": \"\"\n                  }\n                }\n              ]\n            }\n          ]\n        },\n        {\n          \"if\": \"$args.event.do | map:{stop:true, else:false}\",\n          \"then\": [\n            {\n              \"set\": {\n                \"phase\": \"sending\"\n              }\n            },\n            {\n              \"awake.stop\": {}\n            },\n            {\n              \"screen.record.stop\": {},\n              \"as\": \"rec\"\n            },\n            {\n              \"set\": {\n                \"clip\": \"$rec.path\",\n                \"seconds\": \"$rec.seconds\",\n                \"link\": \"\"\n              }\n            },\n            {\n              \"if\": \"$rec.size | tone:{good:'<=10000000', else:'bad'} | map:{good:true, else:false}\",\n              \"then\": [\n                {\n                  \"send\": {\n                    \"clips\": {\n                      \"seconds\": \"$rec.seconds\",\n                      \"at\": \"$now\"\n                    }\n                  },\n                  \"file\": \"$rec.path\",\n                  \"to\": \"$args.from_id\",\n                  \"alert\": \"Your Mac's screen recording is ready\"\n                },\n                {\n                  \"set\": {\n                    \"phase\": \"ready\"\n                  }\n                }\n              ],\n              \"else\": [\n                {\n                  \"if\": \"$settings.dest\",\n                  \"then\": [\n                    {\n                      \"files.save\": {\n                        \"data\": \"$rec.path\",\n                        \"to\": \"$settings.dest\",\n                        \"name\": \"recording-{$now}.mp4\"\n                      },\n                      \"as\": \"saved\"\n                    },\n                    {\n                      \"set\": {\n                        \"link\": \"$saved.url\"\n                      }\n                    },\n                    {\n                      \"send\": {\n                        \"clips\": {\n                          \"seconds\": \"$rec.seconds\",\n                          \"at\": \"$now\",\n                          \"link\": \"$saved.url\"\n                        }\n                      },\n                      \"to\": \"$args.from_id\",\n                      \"alert\": \"Your Mac's screen recording is uploaded\"\n                    },\n                    {\n                      \"set\": {\n                        \"phase\": \"ready\"\n                      }\n                    }\n                  ],\n                  \"else\": [\n                    {\n                      \"set\": {\n                        \"phase\": \"too_big\"\n                      }\n                    }\n                  ]\n                }\n              ]\n            }\n          ]\n        }\n      ]\n    },\n    \"ask_start\": {\n      \"confirm\": \"Start recording your Mac's screen?\",\n      \"steps\": [\n        {\n          \"set\": {\n            \"phase\": \"starting\",\n            \"clip\": \"\",\n            \"link\": \"\"\n          }\n        },\n        {\n          \"send\": {\n            \"asks\": {\n              \"do\": \"start\",\n              \"at\": \"$now\"\n            }\n          }\n        }\n      ]\n    },\n    \"ask_stop\": {\n      \"steps\": [\n        {\n          \"set\": {\n            \"phase\": \"sending\"\n          }\n        },\n        {\n          \"send\": {\n            \"asks\": {\n              \"do\": \"stop\",\n              \"at\": \"$now\"\n            }\n          }\n        }\n      ]\n    },\n    \"got\": {\n      \"steps\": [\n        {\n          \"set\": {\n            \"clip\": \"$args.file | default:''\",\n            \"seconds\": \"$args.event.seconds\",\n            \"link\": \"$args.event.link | default:''\"\n          }\n        }\n      ]\n    },\n    \"forget\": {\n      \"steps\": [\n        {\n          \"set\": {\n            \"phase\": \"idle\"\n          }\n        }\n      ]\n    },\n    \"share_clip\": {\n      \"steps\": [\n        {\n          \"share\": {\n            \"file\": \"$clip\"\n          }\n        }\n      ]\n    },\n    \"open_link\": {\n      \"steps\": [\n        {\n          \"open\": \"$link\"\n        }\n      ]\n    }\n  },\n  \"cards\": [\n    {\n      \"id\": \"main\",\n      \"layout\": {\n        \"column\": [\n          {\n            \"row\": [\n              {\n                \"icon\": \"$phase | map:{recording:'record.circle.fill', starting:'hourglass', sending:'arrow.up.circle', ready:'checkmark.circle.fill', too_big:'exclamationmark.triangle', else:'record.circle'}\",\n                \"tone\": \"$phase | tone:{recording:'bad', ready:'good', too_big:'warn', starting:'accent', sending:'accent', else:'neutral'}\",\n                \"size\": \"l\"\n              },\n              {\n                \"column\": [\n                  {\n                    \"text\": \"$phase | map:{idle:'Not recording', starting:'Asking your Mac to start\u2026', recording:'Recording your Mac', sending:'Getting the recording\u2026', ready:'Recording ready', too_big:'Too big to send: it is on your Mac', else:'Not recording'}\",\n                    \"emphasis\": \"strong\"\n                  },\n                  {\n                    \"timer\": \"$started_at\",\n                    \"mode\": \"since\",\n                    \"size\": \"s\",\n                    \"when\": \"$phase | map:{recording:true, else:false}\"\n                  },\n                  {\n                    \"row\": [\n                      {\n                        \"text\": \"Stops by itself in\",\n                        \"size\": \"xs\",\n                        \"emphasis\": \"subtle\"\n                      },\n                      {\n                        \"timer\": \"$started_at | add:900\",\n                        \"mode\": \"until\",\n                        \"size\": \"xs\",\n                        \"on_end\": \"finish\"\n                      }\n                    ],\n                    \"gap\": \"xs\",\n                    \"platforms\": [\n                      \"macos\"\n                    ],\n                    \"when\": \"$phase | map:{recording:true, else:false}\"\n                  },\n                  {\n                    \"text\": \"$seconds | duration:'clock'\",\n                    \"size\": \"s\",\n                    \"emphasis\": \"subtle\",\n                    \"when\": \"$phase | map:{ready:true, too_big:true, else:false}\"\n                  }\n                ],\n                \"gap\": \"xs\",\n                \"grow\": true\n              }\n            ],\n            \"align\": \"center\",\n            \"gap\": \"m\"\n          },\n          {\n            \"player\": \"$clip\",\n            \"height\": \"l\",\n            \"when\": \"$clip\"\n          },\n          {\n            \"row\": [\n              {\n                \"button\": \"Share\u2026\",\n                \"icon\": \"square.and.arrow.up\",\n                \"on\": \"share_clip\",\n                \"style\": \"secondary\",\n                \"when\": \"$clip\"\n              },\n              {\n                \"button\": \"Open link\",\n                \"icon\": \"link\",\n                \"on\": \"open_link\",\n                \"style\": \"secondary\",\n                \"when\": \"$link\"\n              }\n            ],\n            \"gap\": \"s\"\n          },\n          {\n            \"button\": \"Record This Mac\",\n            \"icon\": \"record.circle\",\n            \"on\": \"start\",\n            \"style\": \"primary\",\n            \"size\": \"l\",\n            \"grow\": true,\n            \"platforms\": [\n              \"macos\"\n            ],\n            \"when\": \"$phase | map:{recording:false, else:true}\"\n          },\n          {\n            \"button\": \"Stop Recording\",\n            \"icon\": \"stop.circle\",\n            \"on\": \"finish\",\n            \"style\": \"destructive\",\n            \"size\": \"l\",\n            \"grow\": true,\n            \"disabled\": \"$running.finish\",\n            \"platforms\": [\n              \"macos\"\n            ],\n            \"when\": \"$phase | map:{recording:true, else:false}\"\n          },\n          {\n            \"button\": \"Start on My Mac\",\n            \"icon\": \"record.circle\",\n            \"on\": \"ask_start\",\n            \"style\": \"primary\",\n            \"size\": \"l\",\n            \"grow\": true,\n            \"platforms\": [\n              \"ios\"\n            ],\n            \"when\": \"$phase | map:{recording:false, starting:false, sending:false, else:true}\"\n          },\n          {\n            \"button\": \"Stop and Send to iPhone\",\n            \"icon\": \"stop.circle\",\n            \"on\": \"ask_stop\",\n            \"style\": \"destructive\",\n            \"size\": \"l\",\n            \"grow\": true,\n            \"platforms\": [\n              \"ios\"\n            ],\n            \"when\": \"$phase | map:{recording:true, else:false}\"\n          },\n          {\n            \"row\": [\n              {\n                \"badge\": \"Waiting for your Mac\",\n                \"busy\": true,\n                \"tone\": \"accent\"\n              },\n              {\n                \"spacer\": true\n              },\n              {\n                \"button\": \"Stop Waiting\",\n                \"on\": \"forget\",\n                \"style\": \"plain\"\n              }\n            ],\n            \"align\": \"center\",\n            \"platforms\": [\n              \"ios\"\n            ],\n            \"when\": \"$phase | map:{starting:true, sending:true, else:false}\"\n          },\n          {\n            \"text\": \"Your Mac needs to be on with TailApps open and Screen Recording allowed. macOS shows that it is recording.\",\n            \"size\": \"xs\",\n            \"emphasis\": \"subtle\",\n            \"platforms\": [\n              \"ios\"\n            ],\n            \"when\": \"$phase | map:{idle:true, else:false}\"\n          }\n        ],\n        \"gap\": \"m\"\n      }\n    }\n  ],\n  \"views\": {\n    \"menubar\": {\n      \"icon\": \"record.circle\",\n      \"card\": \"main\",\n      \"label\": \"$phase | map:{recording:'REC', else:''}\",\n      \"label_tone\": \"$phase | map:{recording:'bad', else:'neutral'}\"\n    },\n    \"floating\": {\n      \"card\": \"main\",\n      \"width\": \"default\"\n    }\n  }\n}\n",
    "files": []
}