Cotal TypeScript packages
    Preparing search index...

    Class InboxTurn

    Pi-local acknowledgement ledger over MeshAgent's exact-id drain API. Provider-confirmed items can be committed around interleaved pull-only traffic without positional acknowledgement; overflow-missing ids are tombstoned for exact late-duplicate discard.

    Index
    • Commit provider-confirmed ids exactly; tombstone any already absent after overflow.

      Parameters

      • ids: readonly string[]

      Returns CommitResult

    • Exact discard for adapter-local traffic such as own echoes, even behind pull-only items.

      Parameters

      Returns number

    • Remove already-confirmed late duplicates by exact receive key, even behind pull-only traffic. #624: tombstones and selection address the DELIVERY (InboxItem.recvKey). An empty wire id is never a key, so two distinct id-less deliveries never cross-reserve or cross-tombstone each other inside a turn.

      Returns number

    • Whether a batch holds a role request still waiting for its take.

      Parameters

      Returns boolean

    • Pending automatic traffic as it reads once the held role requests in it are taken: for deciding whether to pump, never for showing.

      Returns InboxItem[]

    • Select the next automatic batch after already-reserved receive keys, in arrival order. When more waits than fits, a channel post takes a seat only while the role requests after it, and the DMs before the last of them, still fit, so a request never waits behind chatter for a later turn. A role request in the batch that is still held for its take is shown only through take (SPEC ยง8.1).

      Parameters

      • reserved: ReadonlySet<string>
      • limit: number

      Returns InboxItem[]