mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 00:57:45 +00:00
* 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
13 lines
570 B
TypeScript
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
|