mirror of
https://github.com/wu736139669/hapi.git
synced 2026-12-03 06:47:03 +00:00
feat(agy): add Antigravity as an interactive PTY agent (#1320)
This commit is contained in:
@@ -281,6 +281,17 @@ export class MessageQueue2<T> {
|
||||
this.waiter = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* localIds of messages still pending in the queue (enqueued but not yet
|
||||
* consumed/acked). Lets a caller reconcile them with the hub before a
|
||||
* reset() that would otherwise drop them without an ack.
|
||||
*/
|
||||
pendingLocalIds(): string[] {
|
||||
return this.queue
|
||||
.map((item) => item.localId)
|
||||
.filter((id): id is string => typeof id === 'string');
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the queue - no more messages can be pushed
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user