Files
coucou/relay/package.json
LouisandClaude Opus 5.5 616847bd64 iPhone step 8: Mochi in the iPhone's Dynamic Island when the Mac locks (#221)
* iPhone step 8: Mochi moves to the iPhone's Dynamic Island when the Mac locks

- relay/: stateless Cloudflare Worker holding the APNs key; builds the Live
  Activity push itself from a strict state (agent, state, counts), stores and
  logs nothing.
- iPhone: MochiActivityAttributes, Live Activity views (Lock Screen and
  Dynamic Island), push-to-start and update tokens saved to iCloud (encrypted).
- Mac: LiveActivityRelay starts the activity when the screen locks with an
  agent going, updates it, ends it on unlock (or 10 min after the agents are
  done). New Settings toggle, off by default.
- Privacy policy: iPhone app and relay sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Live Activity: point the Mac at the deployed relay

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Live Activity: one activity per lock, always ended on unlock

- When the agents are done, the activity shows "done" and stays the same
  activity for 10 minutes, so an agent starting again updates it instead of
  stacking a second one.
- A start whose Mac unlocked meanwhile is not sent.
- Ending waits a few seconds for the update token of a just-started activity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-05 01:54:20 +02:00

15 lines
291 B
JSON

{
"name": "coucou-relay",
"private": true,
"scripts": {
"dev": "wrangler dev",
"deploy": "wrangler deploy",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@cloudflare/workers-types": "^5.20261001.1",
"typescript": "^5.6.0",
"wrangler": "^4.0.0"
}
}