Files
orca/src/shared/mobile-runtime-capabilities.ts
T
Neil a3fa44ad07 fix(push): honor "only when desktop is away" on headless orca serve (#31956)
* fix(push): decide orca serve's desktop-away from attached desktops (#31570)

* fix(push): report away on sleep and lock, guard late reports and prune stale presence

* chore: justify the presence-reporter state slot widening

* fix(push): hold away from suspend or lock until resume or unlock

* fix(push): key presence sockets by connection instance so a replaced connection reports at once
2026-10-22 03:36:10 -07:00

13 lines
570 B
TypeScript

import { NOTIFICATIONS_DESKTOP_PRESENCE_RUNTIME_CAPABILITY } from './desktop-client-presence'
import { MOBILE_RELAY_RUNTIME_CAPABILITIES } from './mobile-desktop-relay-contract'
// Hosts without this capability have no notifications.registerPush RPC.
export const NOTIFICATIONS_REMOTE_PUSH_RUNTIME_CAPABILITY = 'notifications.remote-push.v1' as const
export const MOBILE_RUNTIME_CAPABILITIES = [
'mobile.tasks.v1',
NOTIFICATIONS_REMOTE_PUSH_RUNTIME_CAPABILITY,
NOTIFICATIONS_DESKTOP_PRESENCE_RUNTIME_CAPABILITY,
...MOBILE_RELAY_RUNTIME_CAPABILITIES
] as const