Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

701 B
Raw Blame
import { bindDeferredRpcOperation, defineRpcOperation } from '../transport/rpc-operation'
import { rpcResultVariant } from '../transport/rpc-operation-result-reader'
import { pushDeliveryTestResultSchema } from './notification-reply-schema'

// Keep refusals at the probe caller: forbidden/method_not_found should try the next connected desktop, not stop the settings test.
export const pushDeliveryTest = bindDeferredRpcOperation(
  defineRpcOperation({
    name: 'notifications.test-push-or-skip',
    method: 'notifications.testPush',
    acceptance: 'success-result-or-skip',
    barrier: 'after-caller-barrier',
    read: rpcResultVariant('push-test-result', pushDeliveryTestResultSchema)
  })
)