@memberjunction/ai-bridge-server 6.2.0-edge.1 → 6.2.0-edge.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,9 +23,24 @@
23
23
  * the overlap.
24
24
  * 3. **Facilitator override** — an optional designated **facilitator** agent (one that runs the Meeting
25
25
  * Controls channel) may be granted the floor even while another agent holds it, so it can arbitrate /
26
- * call on a specific agent. See {@link RegisterRoom}'s `facilitatorAgentSessionId` and
26
+ * call on a specific agent. See {@link RegisterRoomParticipant}'s `isFacilitator` and
27
27
  * {@link CanTakeFloor}'s facilitator path.
28
28
  *
29
+ * ## Full-duplex rules (the models listen while they speak)
30
+ * Turn-based models were gated by voice-activity detection; full-duplex models decide for themselves when
31
+ * to speak, so the coordinator is the **safety net** behind their own judgement. It adds, on top of 1–3:
32
+ *
33
+ * 4. **Humans win** — human speech ({@link NoteHumanSpeech}) preempts the floor holder immediately, cancels
34
+ * any pending hand-off, and denies every agent until the human has been quiet for the hold window. This
35
+ * outranks even the facilitator override.
36
+ * 5. **Backchannels** — a short acknowledgement ("mm-hm") does not need and never takes the floor, so it
37
+ * cannot interrupt another agent's turn ({@link CanTakeFloor}/{@link TakeFloor} with kind `Backchannel`;
38
+ * "short" is {@link import('@memberjunction/ai-bridge-base').IsBackchannel}). Anything longer is a turn.
39
+ * 6. **Explicit hand-off** — a speaking agent can {@link YieldFloor} to a named agent; the floor is reserved
40
+ * for that agent for a short TTL, so no third agent can start in the gap and two agents never start at once.
41
+ * 7. **Loop cap** — after {@link DEFAULT_MAX_CONSECUTIVE_AGENT_TURNS} consecutive agent turns with no human in
42
+ * between, every agent is denied (`LoopCapReached`) until a human speaks — the agent-to-agent runaway breaker.
43
+ *
29
44
  * ## Echo / self-audio (documented, handled by the bridge, not here)
30
45
  * A bot must not hear its OWN output, or it would react to itself and loop. Conferencing platforms
31
46
  * (and the LiveKit SFU) **exclude a participant's own published audio from that participant's inbound
@@ -35,10 +50,19 @@
35
50
  * purely on floor state.
36
51
  *
37
52
  * ## Purity & testability
38
- * This class is **pure and synchronous** — no I/O, no entities, no clock dependence (an optional injected
39
- * clock only stamps `since` for observability). Every decision is a deterministic function of the
53
+ * This class is **pure and synchronous** — no I/O, no entities, no real clock (an injected clock stamps
54
+ * `since`, hand-off expiry and the human-speech hold). Every decision is a deterministic function of the
40
55
  * in-memory room/floor state, so it is exhaustively unit-testable with no network, DB, or real session.
41
56
  */
57
+ import { type UtteranceShape } from '@memberjunction/ai-bridge-base';
58
+ /** Default cap on consecutive agent turns (no human between) before agents are denied. See rule 7 above. */
59
+ export declare const DEFAULT_MAX_CONSECUTIVE_AGENT_TURNS = 8;
60
+ /** How long (ms) a yielded floor stays reserved for the agent it was handed to. */
61
+ export declare const DEFAULT_HANDOFF_TTL_MS = 5000;
62
+ /** How long (ms) after the last human speech activity the human is still considered to be speaking. */
63
+ export declare const DEFAULT_HUMAN_SPEECH_HOLD_MS = 800;
64
+ /** How many recent room events the coordinator keeps for observability (oldest dropped first). */
65
+ export declare const MAX_ROOM_EVENTS = 60;
42
66
  /**
43
67
  * One agent's membership in a shared room, as the coordinator tracks it.
44
68
  */
@@ -48,6 +72,25 @@ export interface RoomAgentMembership {
48
72
  /** Whether this agent is the room's designated facilitator (may override the floor to arbitrate). */
49
73
  IsFacilitator: boolean;
50
74
  }
75
+ /** What kind of speech an agent is asking the floor for. A `Backchannel` never takes (or interrupts) the floor. */
76
+ export type FloorRequestKind = 'Turn' | 'Backchannel';
77
+ /** The kinds of room events the coordinator records for observability. */
78
+ export type RoomTurnEventType = 'FloorGranted' | 'FloorReleased' | 'FloorDenied' | 'Yielded' | 'Backchannel' | 'HumanSpeech' | 'HumanPreempted' | 'LoopCapReached';
79
+ /** One recorded room event (turn-taking observability — the test bed renders these live). */
80
+ export interface RoomTurnEvent {
81
+ /** Monotonic per-room sequence number (clients poll with the last `Seq` they saw). */
82
+ Seq: number;
83
+ /** Epoch-ms the event happened (injected clock). */
84
+ AtMs: number;
85
+ /** What happened. */
86
+ Type: RoomTurnEventType;
87
+ /** The agent session the event is about, when it concerns one. */
88
+ AgentSessionId?: string;
89
+ /** For `Yielded`: the agent the floor was handed to. */
90
+ ToAgentSessionId?: string;
91
+ /** A short machine-readable reason (a {@link FloorDecisionReason} for grants/denials). */
92
+ Reason?: string;
93
+ }
51
94
  /**
52
95
  * The live floor state of a room, returned by {@link MultiAgentRoomCoordinator.GetRoomState} for
53
96
  * observability and tests.
@@ -63,9 +106,23 @@ export interface RoomFloorState {
63
106
  FloorHolderAgentSessionId: string | null;
64
107
  /** Epoch-ms the current floor holder took the floor, or `null` when the floor is free. */
65
108
  FloorHeldSinceMs: number | null;
109
+ /** Whether a human is currently speaking (within the hold window of their last speech activity). */
110
+ HumanSpeaking: boolean;
111
+ /** The agent session the floor is reserved for after a hand-off, or `null` when none is pending. */
112
+ PendingHandoffToAgentSessionId: string | null;
113
+ /** Consecutive agent turns granted since the last human speech. */
114
+ ConsecutiveAgentTurns: number;
115
+ /** The cap that applies to this room. */
116
+ MaxConsecutiveAgentTurns: number;
117
+ /** Whether the loop cap is reached — agents are passive until a human speaks. */
118
+ LoopCapReached: boolean;
119
+ /** How many backchannels have been recorded in this room. */
120
+ BackchannelCount: number;
121
+ /** The most recent events, oldest first (bounded by {@link MAX_ROOM_EVENTS}). */
122
+ RecentEvents: RoomTurnEvent[];
66
123
  }
67
124
  /** The reason a {@link MultiAgentRoomCoordinator.CanTakeFloor} request was granted or denied. */
68
- export type FloorDecisionReason = 'FloorFree' | 'AlreadyHolder' | 'FacilitatorOverride' | 'HeldByOtherAgent' | 'NotInRoom' | 'UnknownRoom';
125
+ export type FloorDecisionReason = 'FloorFree' | 'AlreadyHolder' | 'FacilitatorOverride' | 'HandoffGranted' | 'Backchannel' | 'HeldByOtherAgent' | 'ReservedForHandoff' | 'HumanSpeaking' | 'LoopCapReached' | 'NotInRoom' | 'UnknownRoom';
69
126
  /** The outcome of a floor request — whether the agent may speak, and why. */
70
127
  export interface FloorDecision {
71
128
  /** Whether the requesting agent may take the floor and speak now. */
@@ -73,6 +130,38 @@ export interface FloorDecision {
73
130
  /** The structured reason for the decision (useful for observability + tests). */
74
131
  Reason: FloorDecisionReason;
75
132
  }
133
+ /** The outcome of {@link MultiAgentRoomCoordinator.NoteHumanSpeech}. */
134
+ export interface HumanPreemption {
135
+ /** The agent session that held the floor and was just preempted, or `null` when nobody did. */
136
+ PreemptedAgentSessionId: string | null;
137
+ }
138
+ /** Why a {@link MultiAgentRoomCoordinator.YieldFloor} call ended the way it did. */
139
+ export type YieldReason = 'Yielded' | 'NotHolder' | 'NotInRoom' | 'UnknownRoom' | 'UnknownTarget' | 'HumanSpeaking' | 'LoopCapReached';
140
+ /** The outcome of {@link MultiAgentRoomCoordinator.YieldFloor}. */
141
+ export interface YieldResult {
142
+ /** Whether the yielding agent's floor was released (it held it). */
143
+ Released: boolean;
144
+ /** The agent session the floor is now reserved for, or `null` (no target / target refused). */
145
+ HandoffToAgentSessionId: string | null;
146
+ /** Why the yield ended this way. */
147
+ Reason: YieldReason;
148
+ }
149
+ /** The outcome of {@link MultiAgentRoomCoordinator.CompleteTurn}. */
150
+ export interface TurnCompletion {
151
+ /** Whether this call released the floor (the agent was the holder). */
152
+ Released: boolean;
153
+ /** Whether the finished utterance was short enough to be reclassified as a backchannel (not counted as a turn). */
154
+ WasBackchannel: boolean;
155
+ }
156
+ /** Tunable limits for the coordinator. Every field is optional; omitted fields keep their defaults. */
157
+ export interface RoomCoordinatorLimits {
158
+ /** Cap on consecutive agent turns with no human between. */
159
+ MaxConsecutiveAgentTurns?: number;
160
+ /** How long a yielded floor stays reserved for its target (ms). */
161
+ HandoffTtlMs?: number;
162
+ /** How long after the last human speech activity the human still counts as speaking (ms). */
163
+ HumanSpeechHoldMs?: number;
164
+ }
76
165
  /**
77
166
  * Coordinates speaking discipline for multiple agents sharing one room. Construct one per process (the
78
167
  * engine holds a single instance) and key everything on the **room id** — the shared external connection
@@ -84,13 +173,32 @@ export interface FloorDecision {
84
173
  export declare class MultiAgentRoomCoordinator {
85
174
  /** Room id (lowercased) → room record. */
86
175
  private readonly rooms;
87
- /** Injected clock for floor-held timestamps; defaults to `Date.now`. */
176
+ /** Injected clock for floor-held timestamps, hand-off expiry and the human-speech hold; defaults to `Date.now`. */
88
177
  private readonly now;
178
+ private maxConsecutiveAgentTurns;
179
+ private handoffTtlMs;
180
+ private humanSpeechHoldMs;
181
+ /**
182
+ * @param now Optional injected clock returning epoch-ms. Defaults to `Date.now`. Tests inject a
183
+ * controllable function for determinism.
184
+ * @param limits Optional tuning (loop cap, hand-off TTL, human-speech hold).
185
+ */
186
+ constructor(now?: () => number, limits?: RoomCoordinatorLimits);
187
+ /**
188
+ * Adjusts the coordinator-wide limits. Omitted fields keep their current value; non-positive or
189
+ * non-finite values are ignored (a cap of 0 would silence every agent forever, which is never intended).
190
+ *
191
+ * @param limits The limits to change.
192
+ */
193
+ ConfigureLimits(limits: RoomCoordinatorLimits): void;
89
194
  /**
90
- * @param now Optional injected clock returning epoch-ms (for `FloorHeldSince` stamps). Defaults to
91
- * `Date.now`. Tests inject a controllable function for determinism.
195
+ * Overrides the loop cap for ONE room (e.g. a staged agent-to-agent conversation that should run longer).
196
+ *
197
+ * @param roomId The shared room id.
198
+ * @param max The cap for this room, or `null` to fall back to the coordinator-wide cap.
199
+ * @returns `true` when the room exists and the override was applied.
92
200
  */
93
- constructor(now?: () => number);
201
+ SetRoomMaxConsecutiveAgentTurns(roomId: string, max: number | null): boolean;
94
202
  /**
95
203
  * Registers an agent session as a participant in a shared room, creating the room on first member.
96
204
  * Idempotent — re-registering the same agent updates its facilitator flag without disturbing the
@@ -105,7 +213,8 @@ export declare class MultiAgentRoomCoordinator {
105
213
  /**
106
214
  * Unregisters an agent session from a room (the agent left / its bridge stopped). If the leaving
107
215
  * agent held the floor, the floor is released. If it was the facilitator, the facilitator slot is
108
- * cleared. When the last member leaves, the room record is discarded.
216
+ * cleared. A hand-off reserved for the leaving agent is dropped (nobody is left to take it). When the
217
+ * last member leaves, the room record is discarded.
109
218
  *
110
219
  * @param roomId The room the agent is leaving.
111
220
  * @param agentSessionId The agent session leaving.
@@ -121,36 +230,42 @@ export declare class MultiAgentRoomCoordinator {
121
230
  IsMultiAgentRoom(roomId: string): boolean;
122
231
  /**
123
232
  * Asks whether an agent MAY take the floor (speak) now — the read-only arbitration check an agent
124
- * runs before generating speech. Returns `true` only when no OTHER agent holds the floor, with the
125
- * facilitator exception:
233
+ * runs before generating speech. Checked in this order:
126
234
  *
127
- * - **Floor free** → granted (`FloorFree`).
128
- * - **The requester already holds it** → granted (`AlreadyHolder`) — re-asserting is fine.
129
- * - **The requester is the facilitator** → granted (`FacilitatorOverride`) even if another agent
130
- * holds it, so the facilitator can cut in to arbitrate / call on a specific agent.
131
- * - **Another (non-facilitator) agent holds it** → denied (`HeldByOtherAgent`).
132
- * - **The requester is not a member of the room** → denied (`NotInRoom`).
133
- * - **The room is unknown** → denied (`UnknownRoom`).
235
+ * 1. **Unknown room / not a member** → denied (`UnknownRoom` / `NotInRoom`).
236
+ * 2. **A backchannel** → granted (`Backchannel`) always: it never takes the floor, so it cannot
237
+ * interrupt anyone, and a listening acknowledgement is welcome even while a human talks.
238
+ * 3. **A human is speaking** → denied (`HumanSpeaking`) — humans win, over the facilitator too.
239
+ * 4. **The loop cap is reached** → denied (`LoopCapReached`) — agents stay passive until a human speaks.
240
+ * 5. **The floor is reserved by a hand-off** → granted to the named agent (`HandoffGranted`); denied to
241
+ * others (`ReservedForHandoff`) unless the requester is the facilitator.
242
+ * 6. **Otherwise** the floor rules: free → `FloorFree`; already the holder → `AlreadyHolder`; the
243
+ * facilitator → `FacilitatorOverride` even over a sitting holder; anyone else → `HeldByOtherAgent`.
134
244
  *
135
- * This is purely advisory until {@link TakeFloor} actually claims the floor — keeping the check
136
- * (read) and the claim (write) separate lets a caller test-then-act atomically within its own turn.
245
+ * Purely advisory until {@link TakeFloor} actually claims the floor — keeping the check (read) and the
246
+ * claim (write) separate lets a caller test-then-act atomically within its own turn.
137
247
  *
138
248
  * @param roomId The shared room id.
139
249
  * @param agentSessionId The agent asking to speak.
250
+ * @param kind `'Turn'` (default) to hold the floor, or `'Backchannel'` for a short acknowledgement.
140
251
  * @returns The floor decision (granted + reason).
141
252
  */
142
- CanTakeFloor(roomId: string, agentSessionId: string): FloorDecision;
253
+ CanTakeFloor(roomId: string, agentSessionId: string, kind?: FloorRequestKind): FloorDecision;
143
254
  /**
144
255
  * Atomically attempts to claim the floor for an agent: runs {@link CanTakeFloor} and, when granted,
145
256
  * records the agent as the floor holder (stamping the take time) and returns the decision. When a
146
257
  * **facilitator** overrides a sitting holder, the holder is replaced — the facilitator now holds the
147
258
  * floor (the prior holder should observe this via {@link IsFloorHolder} on its next check and yield).
148
259
  *
260
+ * A granted `Turn` that starts a NEW turn counts toward the loop cap. A granted `Backchannel` is recorded
261
+ * but changes no floor state. Every grant and denial lands in the room's event log.
262
+ *
149
263
  * @param roomId The shared room id.
150
264
  * @param agentSessionId The agent claiming the floor.
151
- * @returns The decision; on `Granted` the agent now holds the floor.
265
+ * @param kind `'Turn'` (default) or `'Backchannel'`.
266
+ * @returns The decision; on a granted `Turn` the agent now holds the floor.
152
267
  */
153
- TakeFloor(roomId: string, agentSessionId: string): FloorDecision;
268
+ TakeFloor(roomId: string, agentSessionId: string, kind?: FloorRequestKind): FloorDecision;
154
269
  /**
155
270
  * Releases the floor held by an agent (it finished speaking). A no-op when the agent is not the
156
271
  * current holder, so a late/duplicate release can never steal the floor from another agent.
@@ -160,9 +275,30 @@ export declare class MultiAgentRoomCoordinator {
160
275
  * @returns `true` when this call actually freed the floor (the agent was the holder).
161
276
  */
162
277
  ReleaseFloor(roomId: string, agentSessionId: string): boolean;
278
+ /**
279
+ * Finishes an agent's turn with what it actually said, so a short acknowledgement that happened to start
280
+ * while the floor was free is not billed against the loop cap as a full turn. Releases the floor when the
281
+ * agent holds it. When the utterance is a backchannel (see
282
+ * {@link import('@memberjunction/ai-bridge-base').IsBackchannel}) the turn is un-counted and logged as a
283
+ * `Backchannel`.
284
+ *
285
+ * @param roomId The shared room id.
286
+ * @param agentSessionId The agent that finished speaking.
287
+ * @param utterance What it said (text and/or measured duration).
288
+ * @returns Whether the floor was released and whether the utterance was a backchannel.
289
+ */
290
+ CompleteTurn(roomId: string, agentSessionId: string, utterance?: UtteranceShape): TurnCompletion;
291
+ /**
292
+ * Records a backchannel an agent voiced WITHOUT holding the floor (an overlay on someone else's turn, or
293
+ * on silence). Changes no floor state and never counts toward the loop cap.
294
+ *
295
+ * @param roomId The shared room id.
296
+ * @param agentSessionId The agent that acknowledged.
297
+ */
298
+ RecordBackchannel(roomId: string, agentSessionId: string): void;
163
299
  /**
164
300
  * Whether a given agent currently holds the floor in a room. An agent that was bumped by a
165
- * facilitator override checks this to learn it should yield.
301
+ * facilitator override or a human checks this to learn it should yield.
166
302
  *
167
303
  * @param roomId The shared room id.
168
304
  * @param agentSessionId The agent to test.
@@ -178,6 +314,48 @@ export declare class MultiAgentRoomCoordinator {
178
314
  * @returns `true` when the facilitator was set; `false` when the room/agent is unknown.
179
315
  */
180
316
  SetFacilitator(roomId: string, agentSessionId: string): boolean;
317
+ /**
318
+ * Reports human speech activity in the room (call it as audio from a human participant arrives; it is
319
+ * cheap and idempotent). The FIRST activity after quiet **preempts**: the floor holder loses the floor
320
+ * (the caller flushes its output through the barge-in path), any pending hand-off is cancelled, and the
321
+ * agent-to-agent loop counter resets. While activity continues — and for the hold window after it stops —
322
+ * every agent is denied.
323
+ *
324
+ * @param roomId The shared room id.
325
+ * @returns Which agent (if any) was preempted, so the caller can flush its queued output.
326
+ */
327
+ NoteHumanSpeech(roomId: string): HumanPreemption;
328
+ /**
329
+ * Reports that the human stopped speaking (an explicit end-of-speech signal). Agents are admitted again
330
+ * immediately instead of waiting out the hold window. Optional — the hold window expires on its own.
331
+ *
332
+ * @param roomId The shared room id.
333
+ */
334
+ NoteHumanSpeechEnded(roomId: string): void;
335
+ /**
336
+ * Reports a completed human TURN (a final human transcript). Unlike {@link NoteHumanSpeech} this does NOT
337
+ * preempt — a final transcript routinely lands AFTER a quick agent has already started answering, and
338
+ * must not cut that answer — it only resets the agent-to-agent loop counter ("until a human speaks").
339
+ *
340
+ * @param roomId The shared room id.
341
+ */
342
+ NoteHumanTurn(roomId: string): void;
343
+ /**
344
+ * An agent hands the floor over. Releases the floor if the agent holds it and, when `toAgentSessionId`
345
+ * names another member, reserves the floor for that agent for the hand-off TTL — so nobody else can start
346
+ * in the gap and the two never start at once. With no target the floor simply goes free.
347
+ *
348
+ * A yield from an agent that is not the holder, while another agent holds the floor, is a no-op
349
+ * (`NotHolder`). The hand-off is refused (the floor is still released if held) while a human is speaking
350
+ * or the loop cap is reached: reserving the floor for an agent that would then be denied would only
351
+ * stall the room.
352
+ *
353
+ * @param roomId The shared room id.
354
+ * @param fromAgentSessionId The agent yielding.
355
+ * @param toAgentSessionId The agent that should speak next, when named.
356
+ * @returns Whether the floor was released and who (if anyone) it is now reserved for.
357
+ */
358
+ YieldFloor(roomId: string, fromAgentSessionId: string, toAgentSessionId?: string): YieldResult;
181
359
  /**
182
360
  * Returns a snapshot of a room's floor state, or `null` when the room is unknown. Read-only — for
183
361
  * the realtime dashboard / observer console and tests.
@@ -188,6 +366,30 @@ export declare class MultiAgentRoomCoordinator {
188
366
  GetRoomState(roomId: string): RoomFloorState | null;
189
367
  /** The ids of all rooms the coordinator currently tracks (those with ≥1 agent member). */
190
368
  get RoomIds(): string[];
369
+ /** The `Turn` decision, after membership and the backchannel short-circuit have been handled. */
370
+ private decideTurn;
371
+ /** While a hand-off is pending: the target gets the floor, everyone else is held back (the facilitator may still cut in). */
372
+ private decideUnderHandoff;
373
+ /** The plain floor rules: free / already holder / facilitator override / held by another. */
374
+ private decideByFloor;
375
+ /** Resolves a yield's target to a member's id, or `null` when none was named or it is the yielder / not a member. */
376
+ private resolveHandoffTarget;
377
+ /** Why a requested hand-off cannot be honoured right now, or `null` when it can. */
378
+ private handoffRefusal;
379
+ /** Makes an agent the floor holder for a granted `Turn`, counting it toward the loop cap when it starts a new turn. */
380
+ private grantTurn;
381
+ /** Takes the floor from its holder because a human started talking; returns the preempted agent, if any. */
382
+ private preemptHolder;
383
+ /** A human spoke: agents may take turns again. */
384
+ private resetLoopCounter;
385
+ private recordBackchannel;
386
+ private isHumanSpeaking;
387
+ private capFor;
388
+ private isLoopCapped;
389
+ /** The pending hand-off, dropping it first when its TTL has lapsed. */
390
+ private activeHandoff;
391
+ /** Appends to the room's bounded event log. */
392
+ private record;
191
393
  /** Gets the room record, creating an empty one (preserving the caller's casing) on first use. */
192
394
  private ensureRoom;
193
395
  /** Whether an agent is the room's facilitator (by membership flag or the room's facilitator slot). */
@@ -1 +1 @@
1
- {"version":3,"file":"multi-agent-room-coordinator.d.ts","sourceRoot":"","sources":["../src/multi-agent-room-coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,qFAAqF;IACrF,cAAc,EAAE,MAAM,CAAC;IAEvB,qGAAqG;IACrG,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,qGAAqG;IACrG,MAAM,EAAE,MAAM,CAAC;IAEf,mDAAmD;IACnD,eAAe,EAAE,MAAM,EAAE,CAAC;IAE1B,kFAAkF;IAClF,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC,qGAAqG;IACrG,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC,0FAA0F;IAC1F,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,iGAAiG;AACjG,MAAM,MAAM,mBAAmB,GACzB,WAAW,GACX,eAAe,GACf,qBAAqB,GACrB,kBAAkB,GAClB,WAAW,GACX,aAAa,CAAC;AAEpB,6EAA6E;AAC7E,MAAM,WAAW,aAAa;I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AgBlB,sGAAsG;IACtG,OAAO,CAAC,aAAa;IAQrB,mGAAmG;IACnG,OAAO,CAAC,GAAG;CAGd"}
1
+ {"version":3,"file":"multi-agent-room-coordinator.d.ts","sourceRoot":"","sources":["../src/multi-agent-room-coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEpF,4GAA4G;AAC5G,eAAO,MAAM,mCAAmC,IAAI,CAAC;AAErD,mFAAmF;AACnF,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,uGAAuG;AACvG,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAEhD,kGAAkG;AAClG,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,qFAAqF;IACrF,cAAc,EAAE,MAAM,CAAC;IAEvB,qGAAqG;IACrG,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED,mHAAmH;AACnH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,aAAa,CAAC;AAEtD,0EAA0E;AAC1E,MAAM,MAAM,iBAAiB,GACvB,cAAc,GACd,eAAe,GACf,aAAa,GACb,SAAS,GACT,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,gBAAgB,CAAC;AAEvB,6FAA6F;AAC7F,MAAM,WAAW,aAAa;IAC1B,sFAAsF;IACtF,GAAG,EAAE,MAAM,CAAC;IACZ,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,IAAI,EAAE,iBAAiB,CAAC;IACxB,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0FAA0F;IAC1F,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;A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