Cotton code
1 line · 35.8 KB · JSONRaw
{"format_version":1,"id":"device","list_route":"/devices","setup":true,"name":"Device","plural":"Devices","picture":{"photo":"photo:d89f5c6c461b0d34c508c61f19091f0cd821288143a2598e0c5b8ac6e3d06e18","object":"tool-devices"},"builtin":true,"engine":"devices","screen_family":"devices","polled":true,"live_read":{"method":"device.facts","bindings":{"deviceId":"$id"},"fields":["build","schema","last_answer","serving_order","unreachable_since","host_answered_by","backup","backup_why","backup_answered_by","refusal","refusal_clearable","last_synced","ambient","changes_waiting","waiting_since","sync_trouble","sync_background","coming","search_index","has_server","backups","failed_files","notifications","notifications_permission","keeps_answered_by","reach_answered_by","sessions_running","sessions","theme_change_id","theme_undo_available","theme_changed_at","bytes_wanted","notify_system","receipts_behind","receipts_to_send","fetch_count","fetch_bytes","upload_count","upload_bytes","last_contact","serving_mac","received_since_open","sync_tables","synced_at","sync_rows_done","sync_rows_total","sync_bytes","caught_up","stalled_at"]},"columns":[{"key":"removal_state","name":"Removal","type":"choice","readonly":true,"choices":["waiting"],"labels":{"waiting":"removal waiting for your Mac"},"reading":"{value}","fact":false},{"key":"has_access","name":"Access","type":"bool","readonly":true,"fact":false},{"key":"can_serve","name":"Can serve","type":"bool","readonly":true,"fact":false},{"key":"name","type":"text","required":true,"name":"Name","fact":false},{"key":"state","name":"State","type":"text","readonly":true,"fact":false},{"key":"build","name":"Build","type":"text","readonly":true,"live":true,"fact":false},{"key":"schema","name":"Schema","type":"text","readonly":true,"live":true,"fact":false,"reading":"schema {value}","shown_when":{"column":"status","values":["this device"]}},{"key":"last_answer","name":"Last answer","type":"text","readonly":true,"live":true,"fact":false},{"key":"serving_order","name":"Serving order","type":"text","readonly":true,"live":true,"fact":false},{"key":"unreachable_since","name":"Unreachable since","type":"date","readonly":true,"live":true,"fact":false},{"key":"placement_problems","name":"Passwords","type":"longtext","readonly":true,"fact":false},{"key":"ai_spend_line","name":"Claude API today","type":"text","readonly":true,"fact":false},{"key":"reported_state_lines","name":"Reported","type":"longtext","readonly":true,"fact":false},{"key":"kind","name":"Kind","type":"choice","readonly":true,"fact":true,"reading":"{value}","choices":["iPhone","Android","Mac","Linux"],"objects":{"iPhone":"phone","Android":"phone","Mac":"mac","Linux":"linux"},"labels":{"iPhone":"iPhone","Android":"Android","Mac":"Mac","Linux":"Linux"}},{"key":"platform","type":"text","readonly":true,"name":"Platform","fact":true,"reading":"{value}","labels":{"ios":"iPhone","iphone":"iPhone","ipad":"iPad","ipados":"iPad","mac":"Mac","macos":"Mac","android":"Android","linux":"Linux","windows":"Windows"}},{"key":"machine","name":"Runs the server","type":"text","readonly":true,"fact":false},{"key":"asked_at","name":"Asked","type":"date","readonly":true,"shown_when":{"column":"status","values":["waiting"]},"fact":false},{"key":"approved_at","name":"Paired","type":"date","readonly":true,"fact":true,"reading":"joined {value}","format":"calendar-datetime"},{"key":"approved_by_device","name":"Approved by","type":"text","readonly":true,"fact":true,"reading":"approved by {value}","fact_join":", "},{"key":"revoked_at","name":"Revoked","type":"date","readonly":true,"shown_when":{"column":"status","values":["revoked","erased"]},"fact":false},{"key":"revoked_reason","name":"Revoked because","type":"text","readonly":true,"shown_when":{"column":"status","values":["revoked","erased"]},"fact":false},{"key":"serving_rank","name":"Serving rank","type":"number","readonly":true,"fact":false},{"key":"serving_place","name":"Serving order","type":"text","readonly":true,"shown_when":{"column":"machine","values":["yes"]},"fact":false},{"key":"sessions_cap","name":"Session limit","type":"number","units":{"one":"session","other":"sessions"},"shown_when":{"column":"status","values":["this device","approved"]},"fact":false},{"key":"ai_day_cap_usd","name":"API cap per day","type":"number","units":{"one":"USD","other":"USD"},"shown_when":{"column":"status","values":["this device","approved"]},"fact":false},{"key":"chip","type":"text","readonly":true,"name":"Chip","fact":true,"reading":"{value}","shown_when":{"column":"status","values":["approved"]}},{"key":"cpu_count","name":"Processor","type":"number","readonly":true,"units":{"one":"CPU","other":"CPUs"},"fact":true,"reading":"{value} cpus","fact_join":", ","shown_when":{"column":"status","values":["approved"]}},{"key":"mem_total_gb","name":"Memory","type":"number","readonly":true,"units":{"one":"GB","other":"GB"},"fact":true,"reading":"{value} GB","fact_join":", ","shown_when":{"column":"status","values":["approved"]}},{"key":"disk_total_gb","name":"Disk","type":"number","readonly":true,"units":{"one":"GB","other":"GB"},"fact":false},{"key":"os_version","name":"OS version","type":"text","readonly":true,"fact":true,"reading":"{value}","shown_when":{"column":"status","values":["approved"]}},{"key":"update_hold","name":"Update hold","type":"text","readonly":true,"fact":false},{"key":"load","name":"Free disk","type":"text","readonly":true,"shown_when":{"column":"machine","values":["yes"]},"fact":false,"format":"counted-pair"},{"key":"load_1","name":"Load","type":"number","readonly":true,"shown_when":{"column":"machine","values":["yes"]},"fact":false},{"key":"mem_free_pct","name":"Memory free","type":"number","readonly":true,"shown_when":{"column":"machine","values":["yes"]},"fact":false},{"key":"mem_committed_gb","name":"Committed","type":"number","readonly":true,"shown_when":{"column":"machine","values":["yes"]},"units":{"one":"GB","other":"GB"},"fact":false},{"key":"mem_budget_gb","name":"Memory budget","type":"number","readonly":true,"shown_when":{"column":"machine","values":["yes"]},"units":{"one":"GB","other":"GB"},"fact":false},{"key":"disk_free_gb","name":"Disk free","type":"number","readonly":true,"shown_when":{"column":"machine","values":["yes"]},"units":{"one":"GB","other":"GB"},"fact":false},{"key":"sessions_running","name":"Sessions running","type":"number","readonly":true,"shown_when":{"column":"status","values":["this device"]},"fact":false,"live":true},{"key":"smooth_scrolling","name":"Smooth scrolling","type":"number","readonly":true,"units":{"one":"%","other":"%"},"fact":false},{"key":"hangs_today","name":"Hangs today","type":"number","readonly":true,"fact":false},{"key":"cpu_time_today","name":"CPU time today","type":"number","readonly":true,"units":{"one":"s","other":"s"},"format":"duration","fact":false},{"key":"peak_memory","name":"Peak memory","type":"number","readonly":true,"format":"bytes","fact":false},{"key":"sampled_at","name":"Last reading","type":"date","readonly":true,"shown_when":{"column":"machine","values":["yes"]},"fact":false},{"key":"app_version","name":"App version","type":"text","readonly":true,"fact":false},{"key":"host_version","name":"Server version","type":"text","readonly":true,"fact":false},{"key":"host_answered_by","name":"Settings said by","type":"text","readonly":true,"live":true,"fact":false},{"key":"backup_answered_by","name":"Backup said by","type":"text","readonly":true,"live":true,"fact":false},{"key":"backup","name":"Backup","type":"text","readonly":true,"live":true,"shown_when":{"column":"backup_answered_by","values":["this mac","serving mac"]},"fact":false},{"key":"backup_why","name":"Why","type":"text","readonly":true,"live":true,"shown_when":{"column":"backup_answered_by","values":["this mac","serving mac"]},"fact":false},{"key":"storage_route","name":"Storage","type":"url","readonly":true,"fact":false},{"key":"devices_route","name":"All devices","type":"url","readonly":true,"fact":false},{"key":"media_backup","name":"Photos and files","type":"text","readonly":true,"shown_when":{"column":"backup_answered_by","values":["this mac","serving mac"]},"fact":false},{"key":"push","name":"Push","type":"text","readonly":true,"shown_when":{"column":"status","values":["approved"]},"fact":true,"reading":"{value}"},{"key":"start_at_login","name":"Start at login","type":"bool","live":true,"shown_when":{"column":"host_answered_by","values":["this mac"]},"fact":false},{"key":"stay_awake","name":"Stay awake","type":"bool","live":true,"shown_when":{"column":"host_answered_by","values":["this mac"]},"fact":false},{"key":"error_reports","name":"Error reports","type":"bool","live":true,"shown_when":{"column":"host_answered_by","values":["this mac"]},"fact":false},{"key":"auto_updates","name":"Updates","type":"bool","live":true,"shown_when":{"column":"host_answered_by","values":["this mac"]},"fact":false},{"key":"error_reports_to","name":"Error reports go to","type":"text","live":true,"shown_when":{"column":"host_answered_by","values":["this mac"]},"fact":false},{"key":"update_feed","name":"Updates come from","type":"text","live":true,"shown_when":{"column":"host_answered_by","values":["this mac"]},"fact":false},{"key":"reach_answered_by","name":"How it is reached said by","type":"text","readonly":true,"fact":false,"live":true},{"key":"reached_through","name":"Reached through","type":"choice","choices":["cotton_relay","own_relay","tailscale_funnel","direct"],"labels":{"cotton_relay":"Cotton relay","own_relay":"Your own relay","tailscale_funnel":"Tailscale Funnel","direct":"Direct"},"shown_when":{"column":"reach_answered_by","values":["household"]},"live":true,"fact":false},{"key":"keeps_answered_by","name":"What it keeps said by","type":"text","readonly":true,"fact":false,"live":true},{"key":"keep_mail","name":"Mail","type":"choice","choices":["all","days:30","days:90","days:365","none"],"placeholder":"Cotton's default","labels":{"all":"Everything","days:30":"1 month","days:90":"3 months","days:365":"1 year","none":"Never"},"shown_when":{"column":"keeps_answered_by","values":["phone"]},"live":true,"fact":false},{"key":"keep_statuses","name":"Statuses","type":"choice","choices":["all","days:30","days:90","days:365","none"],"placeholder":"Cotton's default","labels":{"all":"Everything","days:30":"1 month","days:90":"3 months","days:365":"1 year","none":"Never"},"shown_when":{"column":"keeps_answered_by","values":["phone"]},"live":true,"fact":false},{"key":"keep_files_whatsapp","name":"WhatsApp media","type":"choice","required":true,"choices":["all","recent_90_days","only_opened"],"labels":{"all":"Everything","recent_90_days":"Last 3 months","only_opened":"Only what I open"},"shown_when":{"column":"keeps_answered_by","values":["phone"]},"live":true,"fact":false},{"key":"keep_files_instagram","name":"Instagram media","type":"choice","required":true,"choices":["all","recent_90_days","only_opened"],"labels":{"all":"Everything","recent_90_days":"Last 3 months","only_opened":"Only what I open"},"shown_when":{"column":"keeps_answered_by","values":["phone"]},"live":true,"fact":false},{"key":"keep_files_photo","name":"Photos","type":"choice","required":true,"choices":["all","recent_90_days","only_opened"],"labels":{"all":"Everything","recent_90_days":"Last 3 months","only_opened":"Only what I open"},"shown_when":{"column":"keeps_answered_by","values":["phone"]},"live":true,"fact":false},{"key":"keep_files_video","name":"Videos","type":"choice","required":true,"choices":["all","recent_90_days","only_opened"],"labels":{"all":"Everything","recent_90_days":"Last 3 months","only_opened":"Only what I open"},"shown_when":{"column":"keeps_answered_by","values":["phone"]},"live":true,"fact":false},{"key":"keep_files_document","name":"Documents","type":"choice","required":true,"choices":["all","recent_90_days","only_opened"],"labels":{"all":"Everything","recent_90_days":"Last 3 months","only_opened":"Only what I open"},"shown_when":{"column":"keeps_answered_by","values":["phone"]},"live":true,"fact":false},{"key":"kept_space_bytes","name":"Space for kept things","type":"choice","required":true,"choices":["1000000000","2000000000","5000000000","10000000000","none"],"labels":{"1000000000":"1 GB","2000000000":"2 GB","5000000000":"5 GB","10000000000":"10 GB","none":"No limit"},"shown_when":{"column":"keeps_answered_by","values":["phone"]},"live":true,"fact":false},{"key":"keep_fetch_full","name":"Kept things","type":"text","readonly":true,"shown_when":{"column":"keeps_answered_by","values":["phone"]},"fact":false},{"key":"keep_fetch_coming","name":"Kept on this phone","type":"longtext","readonly":true,"shown_when":{"column":"keeps_answered_by","values":["phone"]},"fact":false},{"key":"keep_always","name":"Always","type":"longtext","readonly":true,"shown_when":{"column":"keeps_answered_by","values":["phone"]},"fact":false},{"key":"keep_bytes","name":"Files","type":"choice","choices":["everything","rows_only"],"placeholder":"Set tool by tool in Storage","labels":{"everything":"Everything","rows_only":"Rows only"},"shown_when":{"column":"keeps_answered_by","values":["mac"]},"fact":false,"hints":{"everything":"Keep files and rows on this Mac.","rows_only":"No files are kept on this Mac; rows only."},"toggle_on":["everything"],"default":"everything","required":true},{"key":"runner_ordered_at","name":"Runner ordered","type":"date","readonly":true,"fact":false},{"key":"runner_confirmed_at","name":"Runner confirmed","type":"date","readonly":true,"fact":false},{"key":"runner_problem","name":"Runner owed","type":"longtext","readonly":true,"fact":false},{"key":"runner_confirm","name":"Serving Mac copy","type":"choice","readonly":true,"fact":false,"choices":["waiting","short","confirmed"],"labels":{"waiting":"Waiting for the serving Mac","short":"Still owed changes or files","confirmed":"Confirmed"}},{"key":"runner_drop","name":"Drop copy and pair","type":"choice","readonly":true,"fact":false,"choices":["waiting","done"],"labels":{"waiting":"Waiting","done":"Copies and backup identity dropped; paired as a runner"}},{"key":"keep_bytes_note","name":"While serving","type":"text","readonly":true,"shown_when":{"column":"keeps_answered_by","values":["mac"]},"fact":false},{"key":"status","name":"Status","type":"choice","readonly":true,"choices":["waiting","this device","approved","revoked","erased"],"fact":false,"labels":{"waiting":"Waiting","this device":"This device","approved":"Approved","revoked":"Revoked","erased":"Erased"}},{"key":"digits","name":"Code","type":"text","readonly":true,"shown_when":{"column":"status","values":["waiting"]},"fact":false},{"key":"rekey","name":"Re-key","type":"choice","readonly":true,"choices":["asking","waiting","finishing","failed"],"labels":{"asking":"Asking for approval","waiting":"Waiting for approval","finishing":"Approved, switching to the new key","failed":"Not approved; the current key is still in use"},"fact":false},{"key":"rekey_digits","name":"Code to approve","type":"text","readonly":true,"shown_when":{"column":"rekey","values":["waiting"]},"fact":false},{"key":"rekeyed_at","name":"Re-keyed","type":"date","readonly":true,"fact":true,"reading":"re-keyed {value}","format":"calendar-datetime"},{"key":"last_seen_at","name":"Last seen","type":"date","readonly":true,"fact":true,"reading":"{value}","format":"calendar-datetime"},{"key":"refusal","name":"Not serving","type":"text","readonly":true,"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"refusal_clearable","name":"Can serve again","type":"bool","readonly":true,"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"ambient","name":"Sync","type":"choice","readonly":true,"live":true,"fact":false,"choices":["up_to_date","waiting_for_mac","alone","alone_ios","alone_android","alone_mac","alone_linux"],"labels":{"up_to_date":"Up to date","waiting_for_mac":"Mac not heard yet","alone":"On this device only","alone_ios":"On this iPhone only","alone_android":"On this phone only","alone_mac":"On this Mac only","alone_linux":"On this computer only"},"shown_when":{"column":"status","values":["this device"]}},{"key":"mac_heard_at","name":"Mac heard","type":"date","readonly":true,"live":true,"fact":false,"format":"ago","units":{"one":"Mac heard {n}","other":"Mac heard {n}"},"shown_when":{"column":"status","values":["this device"]}},{"key":"changes_waiting","name":"Waiting to send","type":"number","readonly":true,"live":true,"fact":false,"units":{"one":"1 change waiting to send","other":"{n} changes waiting to send"},"shown_when":{"column":"status","values":["this device"]}},{"key":"waiting_since","name":"Mac not heard since","type":"date","readonly":true,"live":true,"fact":false,"reading":"Mac not heard since {datetime}","shown_when":{"column":"status","values":["this device"]}},{"key":"last_synced","name":"Synced","type":"date","readonly":true,"format":"ago","units":{"one":"synced {n}","other":"synced {n}"},"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"sync_trouble","name":"Last try","type":"text","readonly":true,"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"sync_background","name":"In the background","type":"text","readonly":true,"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"coming","name":"Coming","type":"longtext","readonly":true,"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"search_index","name":"Search index","type":"text","readonly":true,"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"has_server","name":"Has a server","type":"bool","readonly":true,"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"backups","name":"Backups","type":"text","readonly":true,"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"failed_files","name":"Not backed up","type":"longtext","readonly":true,"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"notifications","name":"Notifications","type":"text","readonly":true,"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"notifications_permission","name":"Allowed by the system","type":"choice","readonly":true,"choices":["granted","denied","undetermined"],"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"notify_system","name":"Notifications","type":"choice","readonly":true,"choices":["on","declined"],"labels":{"on":"On","declined":"Declined in Settings"},"shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"push_authorization","name":"Notifications reported","type":"text","readonly":true,"fact":false},{"key":"notifications_off","name":"Notifications off","type":"text","readonly":true,"shown_when":{"column":"push_authorization","values":["denied"]},"fact":false},{"key":"notify","name":"Notifications","type":"bool","shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"notify_reminders","name":"Todo reminders","type":"bool","shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"notify_events","name":"Events","type":"bool","shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"notify_birthdays","name":"Birthdays","type":"bool","shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"notify_alarms","name":"Alarms","type":"bool","shown_when":{"column":"status","values":["this device"]},"live":true,"fact":false},{"key":"sessions","name":"Sessions","type":"text","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device","approved"]},"format":"counted-pair"},{"key":"takes_placements","type":"bool","required":true,"default":false,"name":"Takes placements","fact":false},{"key":"keep_free_bytes","name":"Keep free","type":"bytes","placeholder":"15% of the disk","fact":false},{"key":"keep_free_percent","name":"Keep free","type":"number","readonly":true,"fact":false,"units":{"one":"keeps {n} % of the disk free · {keep_free_size}","other":"keeps {n} % of the disk free · {keep_free_size}"}},{"key":"keep_free_size","name":"Kept free","type":"text","readonly":true,"fact":false},{"key":"theme_change_id","name":"Last theme change","type":"text","readonly":true,"live":true,"fact":false},{"key":"theme_undo_available","name":"Theme can be undone","type":"bool","readonly":true,"live":true,"fact":false},{"key":"theme_changed_at","name":"Theme changed","type":"date","readonly":true,"live":true,"fact":true,"reading":"theme changed {value}","format":"calendar-datetime"},{"key":"bytes_wanted","name":"Still to fetch","type":"bytes","readonly":true,"fact":true,"live":true},{"key":"held_until","name":"AI paused until","type":"date","readonly":true,"fact":false,"format":"calendar-datetime","reading":"Paused until {datetime}"},{"key":"hold_reason","name":"AI pause reason","type":"choice","readonly":true,"fact":false,"choices":["anthropic_credits"],"labels":{"anthropic_credits":"Anthropic credits"}},{"key":"receipts_behind","name":"To receive","type":"number","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]},"units":{"one":"1 change to receive","other":"{n} changes to receive"}},{"key":"receipts_to_send","name":"To send","type":"number","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]},"units":{"one":"1 change to send","other":"{n} changes to send"}},{"key":"fetch_count","name":"Files to fetch","type":"number","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]},"units":{"one":"1 file to fetch","other":"{n} files to fetch"}},{"key":"fetch_bytes","name":"Bytes to fetch","type":"bytes","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]}},{"key":"upload_count","name":"Files to send","type":"number","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]},"units":{"one":"1 file to send","other":"{n} files to send"}},{"key":"upload_bytes","name":"Bytes to send","type":"bytes","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]}},{"key":"last_contact","name":"Last contact","type":"date","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]},"format":"ago"},{"key":"serving_mac","name":"Serving Mac","type":"text","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]}},{"key":"received_since_open","name":"Received since open","type":"longtext","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]}},{"key":"sync_tables","name":"Tables","type":"longtext","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]}},{"key":"synced_at","name":"Synced at","type":"date","readonly":true,"live":true,"fact":true,"reading":"{value}","format":"calendar-datetime","shown_when":{"column":"status","values":["this device"]}},{"key":"sync_rows_done","name":"Sync rows done","type":"number","readonly":true,"live":true,"fact":true,"reading":"{value} rows","shown_when":{"column":"status","values":["this device"]}},{"key":"sync_rows_total","name":"Sync rows total","type":"number","readonly":true,"live":true,"fact":true,"reading":"{value} rows","shown_when":{"column":"status","values":["this device"]}},{"key":"sync_bytes","name":"Sync bytes","type":"bytes","readonly":true,"live":true,"fact":true,"reading":"{value}","shown_when":{"column":"status","values":["this device"]}},{"key":"caught_up","name":"Caught up","type":"bool","readonly":true,"live":true,"fact":false,"shown_when":{"column":"status","values":["this device"]}},{"key":"stalled_at","name":"Stalled at","type":"date","readonly":true,"live":true,"fact":true,"reading":"{value}","format":"calendar-datetime","shown_when":{"column":"status","values":["this device"]}}],"title":"name","voice_words":[],"date":null,"project":null,"order":null,"slip":{"title":"name","subtitle":["removal_state","last_synced","ambient","mac_heard_at","changes_waiting","waiting_since","held_until","hold_reason","placement_problems","load"],"with_names":false,"trailing":null,"photo":null,"toggle":null,"caption":{"status":"state","dates":["last_seen_at"]}},"tile":{"face":"slip-list"},"page":[{"heading":null,"columns":["removal_state","held_until","hold_reason","ai_spend_line","reported_state_lines","placement_problems","refusal","ambient","changes_waiting","waiting_since","last_synced","sync_trouble","sync_background","search_index","push","backups","failed_files","bytes_wanted"]},{"heading":"What is coming","columns":["coming","keep_fetch_coming"]},{"heading":"Notifications","columns":["notifications_off","notifications","notify","notify_reminders","notify_events","notify_birthdays","notify_alarms"]},{"heading":"What this Mac keeps","columns":["keep_bytes","keep_bytes_note"]},{"heading":"What this phone keeps","columns":["keep_mail","keep_statuses","keep_files_whatsapp","keep_files_instagram","keep_files_photo","keep_files_video","keep_files_document","kept_space_bytes","keep_fetch_full","keep_always"]},{"heading":"Identity and trust","columns":["name","digits","asked_at","approved_at","rekeyed_at","rekey","rekey_digits","approved_by_device","revoked_at","revoked_reason","last_seen_at"]},{"heading":"Role","columns":["serving_place","sessions_cap","ai_day_cap_usd","backup","backup_why","media_backup"]},{"heading":"How the world reaches this household","columns":["reached_through"]},{"heading":"This Mac","columns":["start_at_login","stay_awake","error_reports","error_reports_to","auto_updates","update_feed"]},{"heading":"How it is doing","columns":["load_1","sessions_running","smooth_scrolling","hangs_today","cpu_time_today","peak_memory"]},{"heading":"Capacity","columns":["chip","cpu_count","mem_total_gb","os_version","update_hold","keep_free_bytes"]}],"instructions":"A device is one of the owner's phones or Macs that has joined, each holding a full copy of the data, or one asking to join (status waiting, with the six digits it shows). The serving order says which Mac serves when several are on, and sessions_cap caps the coding sessions it runs at once (0 takes the Mac out of the household). The serving Mac's row says which kinds of Claude API work it has paused (ai_holds) and what it spent today (ai_spend_line); every device's row says what it reported of itself with its last exchange (reported_state_lines: last answer, unsent, build and schema, databases listed, the open problem, a copy in progress); ai_day_cap_usd is the owner's daily cap in US dollars, empty for the $5 default. Approving, declining, removing, erasing and making a Mac the server are the page's actions, never a column write; never approve or remove one without the owner. This device's own row also says what it is doing — how it syncs and what failed to back up, a refusal another Mac holds against it, and its notification switches and the system's permission for them — and its page offers Sync now, the writes that did not land, storage and Send a report (a redacted document in the personal database: state, last 500 log lines, registry files).","add":false,"group":{"column":"status","sections":[{"heading":"Asking to join","values":["waiting"],"note":"A new device joins by typing this database's name, then comparing six digits here."},{"heading":"Joined","values":["this device","approved"]},{"heading":"Removed","values":["revoked","erased"],"closed":true}]},"commands":[{"id":"back_up","label":"Back up","object":"share","kind":"update","method":"device.backupNow","bindings":{"deviceId":"$id"},"when":{"kind":"Mac","status":"approved"},"receipt":"Backed up","does":"moves"},{"id":"serve_from","label":"Serve from this Mac","kind":"update","method":"device.serveFrom","bindings":{"deviceId":"$id"},"when":{"kind":"Mac","status":"approved"},"destructive":true,"confirm":"This Mac takes over serving this database.","receipt":"This Mac is serving","does":"moves","object":"mac"},{"id":"request_notifications","label":"Allow notifications","kind":"update","method":"device.notifications.request","when":{"status":"this device","notifications_permission":"undetermined"},"receipt":"Asked to allow notifications","object":"bell","sheet":"notify"},{"id":"sync_now","label":"Sync now","object":"repeat","kind":"update","method":"sync.now","when":{"status":"this device"},"receipt":"Syncing"},{"id":"open_storage","label":"Storage","kind":"open","opens":"storage_route","when":{"status":"this device"},"object":"archive"},{"id":"open_devices","label":"All devices","kind":"open","opens":"devices_route","when":{"status":"this device"},"object":"device"},{"id":"open_notification_settings","label":"Open Settings","kind":"update","method":"device.notifications.openSettings","when":{"status":"this device","notifications_permission":"denied"},"receipt":"Opened notification settings","object":"bell","sheet":"notify"},{"id":"approve","label":"Approve","kind":"update","method":"pairing.approve","bindings":{"pairingId":"$id","digits":"digits"},"when":{"status":"waiting"},"receipt":"Admitted {name}","does":"completes","object":"done"},{"id":"decline","label":"Decline","kind":"update","method":"pairing.decline","bindings":{"pairingId":"$id"},"when":{"status":"waiting"},"receipt":"Turned away {name}","does":"puts-away","object":"block"},{"id":"remove","label":"Remove","object":"unlink","kind":"update","method":"devices.revoke","data":{"erase":false},"bindings":{"deviceId":"$id"},"when":{"status":["approved","this device"]},"destructive":true,"confirm":"It stops syncing at once and is taken out of this database. What it already holds stays on it; to join again it asks, and is approved again.","receipt":"Removed {name}","does":"destroys"},{"id":"erase","label":"Erase","kind":"update","method":"devices.revoke","data":{"erase":true},"bindings":{"deviceId":"$id"},"when":{"status":"approved"},"destructive":true,"confirm":"It is taken out of this database, and the next time it reaches any of your devices it erases what it holds of it. This cannot be undone.","receipt":"Removed {name}; it will erase itself","does":"destroys","object":"bin"},{"id":"rekey","label":"Re-key this device","object":"retry","kind":"update","method":"device.rekey","when":{"status":"this device"},"receipt":"Waiting for approval","does":"times"},{"id":"send_report","label":"Send a report","kind":"update","method":"diagnostics.report","data":{"title":"Device report"},"when":{"status":"this device"},"receipt":"Report filed","does":"moves","object":"message"},{"id":"become_runner","label":"Use as runner","kind":"update","method":"device.becomeRunner","bindings":{"deviceId":"$id"},"when":{"kind":"Mac","status":"approved"},"destructive":true,"confirm":"Once the serving Mac confirms it holds everything this Mac holds, this Mac drops its copy of every database and its backup identity, then only runs jobs and takes placements. Repository homes must be moved first.","receipt":"This Mac becomes a runner","does":"moves","object":"agent"},{"id":"add_samples","label":"Add samples","kind":"update","method":"samples.add","when":{"status":"this device"},"receipt":"Added sample records","object":"archive"},{"id":"remove_samples","label":"Remove samples","kind":"update","method":"samples.remove","when":{"status":"this device"},"destructive":true,"confirm":"The sample records go to the bin. Nothing else is touched.","receipt":"Moved sample records to the bin","does":"puts-away","object":"bin"}],"parts":{"shape":"sheet","head":{"facts":["platform","last_seen_at"],"state":"state"},"links":[],"lists":[],"acts":{"main":"sync_now","more":["send_report","rekey","back_up","serve_from","decline","erase","approve","become_runner","add_samples","remove_samples"],"away":"remove"},"cards":[{"column":"removal_state"},{"column":"bytes_wanted"},{"column":"ambient","object":"words"},{"column":"changes_waiting"},{"column":"waiting_since","label":"Mac away since"},{"column":"last_synced"},{"column":"sync_trouble"},{"column":"refusal"},{"column":"runner_problem"},{"column":"kind","object":"device"},{"column":"notify","label":"Alerts","object":"bell","switches":["notify","notify_reminders","notify_events","notify_birthdays","notify_alarms"],"caption":"{on} of {total} on","when":{"column":"notify_system","values":["on"]}},{"column":"notify_system","label":"Alerts","object":"bell","when":{"column":"notify_system","values":["declined"]}},{"column":"sessions","object":"figure","when":{"column":"status","values":["this device","approved"]}},{"column":"keep_bytes","object":"archive","when":{"column":"status","values":["approved"]}},{"column":"backup","when":{"column":"backup_answered_by","values":["this mac","serving mac"]}},{"column":"backup_why","when":{"column":"backup_answered_by","values":["this mac","serving mac"]}},{"column":"disk_free_gb","object":"figure","width":"full","when":{"column":"status","values":["approved"]},"label":"Free disk"},{"column":"keep_free_percent","object":"figure","width":"full","when":{"column":"kind","values":["Mac"]}},{"column":"keep_free_bytes","object":"figure","label":"Set keep free","when":{"column":"kind","values":["Mac"]}},{"column":"runner_confirm","when":{"column":"runner_confirm","values":["waiting","short","confirmed"]}},{"column":"runner_drop","when":{"column":"runner_drop","values":["waiting","done"]}},{"column":"keep_mail","object":"mail"},{"column":"keep_statuses","object":"message"},{"column":"keep_files_whatsapp","object":"chat"},{"column":"keep_files_instagram","object":"lens"},{"column":"keep_files_photo","object":"picture"},{"column":"keep_files_video","object":"picture"},{"column":"keep_files_document","object":"file"},{"column":"kept_space_bytes","label":"Kept space","object":"archive"},{"column":"reached_through","object":"link"},{"column":"start_at_login"},{"column":"stay_awake"},{"column":"error_reports"},{"column":"auto_updates"}],"strip":[],"groups":[{"columns":["receipts_behind","receipts_to_send","fetch_count","fetch_bytes","upload_count","upload_bytes"]},{"columns":["last_contact","serving_mac"]},{"column":"received_since_open","reads":true},{"columns":["removal_state","ai_spend_line","asked_at","approved_at","approved_by_device","revoked_at"]},{"columns":["revoked_reason","serving_place","sessions_cap","ai_day_cap_usd","chip","cpu_count"]},{"columns":["mem_total_gb","os_version","update_hold","load_1","sessions_running","smooth_scrolling"]},{"columns":["hangs_today","cpu_time_today","peak_memory","backup","backup_why","media_backup"]},{"columns":["push","start_at_login","stay_awake","error_reports","auto_updates","error_reports_to"]},{"columns":["update_feed","reached_through","keep_mail","keep_statuses","keep_files_whatsapp","keep_files_instagram"]},{"columns":["keep_files_photo","keep_files_video","keep_files_document","kept_space_bytes","keep_fetch_full","keep_bytes"]},{"columns":["keep_bytes_note","digits","rekey","rekey_digits","rekeyed_at","last_seen_at"]},{"columns":["refusal","ambient","changes_waiting","waiting_since","last_synced","sync_trouble"]},{"columns":["sync_background","search_index","backups","notifications","notifications_off","notify"]},{"columns":["notify_reminders","notify_events","notify_birthdays","notify_alarms","keep_free_bytes","bytes_wanted"]},{"columns":["held_until","hold_reason"]},{"column":"placement_problems","reads":true},{"column":"reported_state_lines","reads":true},{"column":"keep_fetch_coming","reads":true},{"column":"keep_always","reads":true},{"column":"coming","reads":true},{"column":"failed_files","reads":true},{"column":"sync_tables","reads":true,"folded":true}]},"tool":{"views":[{"id":"all","label":"All","is_default":true,"visibility":"owner","read":{"table":"device"}}],"name":"Devices","key":"devices","icon":"monitor-smartphone","card_stock":"tan","route":"/devices","purpose":"Your devices, their access and sync state."},"tables":[],"delete":false,"card":{"face":"plain","fields":[{"slot":"title","column":"name"},{"slot":"subtitle","column":"state"},{"slot":"facts","column":"platform","also":["build","os_version","chip","mem_total_gb","disk_total_gb","last_seen_at","sync_rows_done","sync_rows_total","sync_bytes","synced_at","stalled_at"]}]}}