acpx 0.13.0 → 0.13.2

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.
package/dist/runtime.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { a as AcpPermissionRequest, c as NonInteractivePermissionPolicy, f as SessionRecord, i as AcpPermissionDecision, l as PermissionMode, n as SystemPromptOption, s as McpServer$1, t as SessionAgentOptions } from "./session-options-CTdZvr68.js";
2
- import { a as RequestedModelUnsupportedErrorCode, i as RequestedModelUnsupportedError, n as REQUESTED_MODEL_UNSUPPORTED_ERROR_CODE, o as RequestedModelUnsupportedReason, r as REQUESTED_MODEL_UNSUPPORTED_REASONS, s as isRequestedModelUnsupportedError, t as AcpClient } from "./client-BeKvumq9.js";
1
+ import { _ as SessionRecord, a as AcpElicitationHandler, c as AcpElicitationResponse, f as McpServer$1, h as PermissionPolicy, i as AcpElicitationContext, l as AcpPermissionDecision, m as PermissionMode, n as SystemPromptOption, o as AcpElicitationMode, p as NonInteractivePermissionPolicy, s as AcpElicitationRequest, t as SessionAgentOptions, u as AcpPermissionRequest } from "./session-options-DwRDODlr.js";
2
+ import { a as RequestedModelUnsupportedErrorCode, i as RequestedModelUnsupportedError, n as REQUESTED_MODEL_UNSUPPORTED_ERROR_CODE, o as RequestedModelUnsupportedReason, r as REQUESTED_MODEL_UNSUPPORTED_REASONS, s as isRequestedModelUnsupportedError, t as AcpClient } from "./client-CxNllqui.js";
3
3
  import fs from "node:fs";
4
- import { ToolCallContent, ToolCallLocation, ToolKind } from "@agentclientprotocol/sdk";
4
+ import { SetSessionConfigOptionResponse, ToolCallContent, ToolCallLocation, ToolKind } from "@agentclientprotocol/sdk";
5
5
  //#region src/agent-registry.d.ts
6
6
  declare const DEFAULT_AGENT_NAME = "codex";
7
7
  //#endregion
@@ -51,6 +51,8 @@ type AcpRuntimeTurnInput = {
51
51
  requestId: string;
52
52
  timeoutMs?: number;
53
53
  signal?: AbortSignal;
54
+ /** Handles ACP elicitation requests owned by this prompt turn. */
55
+ onElicitation?: AcpElicitationHandler;
54
56
  };
55
57
  type AcpRuntimeCapabilities = {
56
58
  controls: AcpRuntimeControl[];
@@ -130,11 +132,39 @@ type AcpRuntimeDoctorReport = {
130
132
  installCommand?: string;
131
133
  details?: string[];
132
134
  };
135
+ /**
136
+ * Fail-closed origin metadata on `text_delta` events.
137
+ * Only these optional string fields are preserved from ACP wire `_meta`.
138
+ */
139
+ type AcpTextDeltaOriginMeta = {
140
+ origin?: string;
141
+ kind?: string;
142
+ source?: string;
143
+ };
133
144
  type AcpRuntimeEvent = {
134
145
  type: "text_delta";
135
146
  text: string;
136
147
  stream?: "output" | "thought";
137
148
  tag?: AcpSessionUpdateTag;
149
+ /**
150
+ * Present when the originating ACP session update carried a non-empty
151
+ * `messageId`. Absent when the wire payload had no id.
152
+ * Opaque producer-supplied routing hint only: ACPX does not authenticate
153
+ * this value. Do not treat it as proof of authorship or as an
154
+ * authorization boundary. Useful for correlating chunks from the same
155
+ * producer message when the adapter includes an id.
156
+ */
157
+ messageId?: string;
158
+ /**
159
+ * Allowlisted origin fields from the ACP update `_meta`.
160
+ * Only the documented string keys `origin`, `kind`, and `source` are
161
+ * preserved. All other keys (including nested objects and secret-like
162
+ * producer-controlled names) are dropped. Omitted when none remain.
163
+ * These values are opaque producer-supplied routing hints, not
164
+ * authenticated authorship or provenance. Consumers must not use them
165
+ * as an authorization boundary.
166
+ */
167
+ meta?: AcpTextDeltaOriginMeta;
138
168
  } | {
139
169
  type: "status";
140
170
  text: string;
@@ -206,7 +236,14 @@ type AcpRuntimeTurnResult = {
206
236
  };
207
237
  interface AcpRuntimeTurn {
208
238
  readonly requestId: string;
239
+ /** Resolves after `connection.prompt()` returns its request promise. */
240
+ readonly promptStarted: Promise<void>;
209
241
  readonly events: AsyncIterable<AcpRuntimeEvent>;
242
+ /**
243
+ * Canonical completion signal for the turn. Resolves only after final record
244
+ * checkpoint/persistence and runtime client pooling or close cleanup attempts
245
+ * have settled.
246
+ */
210
247
  readonly result: Promise<AcpRuntimeTurnResult>;
211
248
  cancel(input?: {
212
249
  reason?: string;
@@ -239,7 +276,7 @@ interface AcpRuntime {
239
276
  handle: AcpRuntimeHandle;
240
277
  key: string;
241
278
  value: string;
242
- }): Promise<void>;
279
+ }): Promise<SetSessionConfigOptionResponse | void>;
243
280
  doctor?(): Promise<AcpRuntimeDoctorReport>;
244
281
  cancel(input: {
245
282
  handle: AcpRuntimeHandle;
@@ -267,9 +304,12 @@ type AcpRuntimeOptions = {
267
304
  mcpServers?: McpServer$1[];
268
305
  permissionMode: PermissionMode;
269
306
  nonInteractivePermissions?: NonInteractivePermissionPolicy;
307
+ permissionPolicy?: PermissionPolicy;
270
308
  timeoutMs?: number;
271
309
  probeAgent?: string;
272
310
  verbose?: boolean;
311
+ /** ACP elicitation modes the embedding host can render for prompt turns. */
312
+ elicitationModes?: readonly AcpElicitationMode[];
273
313
  onPermissionRequest?: (req: AcpPermissionRequest, ctx: {
274
314
  signal: AbortSignal;
275
315
  }) => Promise<AcpPermissionDecision | undefined>;
@@ -282,29 +322,51 @@ type AcpFileSessionStoreOptions = {
282
322
  type AcpRuntimeManagerDeps = {
283
323
  clientFactory?: (options: ConstructorParameters<typeof AcpClient>[0]) => AcpClient;
284
324
  };
325
+ type RuntimeEnsureInput = {
326
+ sessionKey: string;
327
+ agent: string;
328
+ mode: "persistent" | "oneshot";
329
+ cwd?: string;
330
+ resumeSessionId?: string;
331
+ sessionOptions?: SessionAgentOptions;
332
+ };
285
333
  declare class AcpRuntimeManager {
286
334
  private readonly options;
287
335
  private readonly deps;
288
336
  private readonly activeControllers;
289
- private readonly pendingPersistentClients;
337
+ private readonly retainedSessionOwners;
338
+ private readonly pendingOneShotRecordIds;
339
+ private readonly ensureSessionLocks;
340
+ private readonly runtimeOperationLocks;
290
341
  private readonly closingActiveRecords;
291
342
  constructor(options: AcpRuntimeOptions, deps?: AcpRuntimeManagerDeps);
292
343
  private createClient;
293
- private readPendingPersistentClient;
294
- private closePendingPersistentClient;
344
+ private createSessionOwner;
345
+ private routeOwnedSessionUpdate;
346
+ private routeOwnedClientOperation;
347
+ private attachIdleProjection;
348
+ private drainPendingSessionUpdates;
349
+ private flushSessionOwner;
350
+ private removeRetainedSessionOwner;
351
+ private readRetainedSessionOwner;
352
+ private closeRetainedSessionOwner;
353
+ private stopSessionOwner;
295
354
  private refreshClosedState;
296
- private retainPersistentClientAfterTurn;
355
+ private retainPersistentSessionOwnerAfterTurn;
356
+ private canRetainPersistentSessionOwner;
297
357
  private withRuntimeControlSession;
298
- ensureSession(input: {
299
- sessionKey: string;
300
- agent: string;
301
- mode: "persistent" | "oneshot";
302
- cwd?: string;
303
- resumeSessionId?: string;
304
- sessionOptions?: SessionAgentOptions;
305
- }): Promise<SessionRecord>;
306
- private createAndSaveRuntimeRecord;
307
- private keepPersistentClient;
358
+ private refreshOwnedRecordLifecycle;
359
+ ensureSession(input: RuntimeEnsureInput): Promise<SessionRecord>;
360
+ private withEnsureSessionLock;
361
+ private withManagerLock;
362
+ private ensureSessionWithOwnership;
363
+ private loadExistingRuntimeSession;
364
+ private canReuseRuntimeSession;
365
+ private reuseRuntimeSession;
366
+ private closeConflictingPersistentSession;
367
+ private createOwnedRuntimeSession;
368
+ private prepareInitialRuntimeRecord;
369
+ private retainInitializedSessionOwner;
308
370
  startTurn(input: {
309
371
  handle: AcpRuntimeHandle;
310
372
  text: string;
@@ -314,17 +376,25 @@ declare class AcpRuntimeManager {
314
376
  requestId: string;
315
377
  timeoutMs?: number;
316
378
  signal?: AbortSignal;
379
+ onElicitation?: AcpElicitationHandler;
317
380
  }): AcpRuntimeTurn;
381
+ private closeRetainedOneShotHandle;
318
382
  private runRuntimeTurnTask;
383
+ private runRuntimePrompt;
319
384
  private prepareRuntimeTurn;
385
+ private prepareRuntimeTurnWithOwnership;
386
+ private prepareRuntimeTurnState;
387
+ private acquireRuntimeTurnState;
388
+ private restoreBufferedSessionOwner;
389
+ private resolveRuntimeTurnOwner;
390
+ private createRunningRuntimeTurn;
391
+ private activateRuntimeTurn;
320
392
  private createTurnClient;
321
393
  private createRuntimeTurnCheckpoint;
322
394
  private buildRuntimeTurnController;
323
395
  private waitForRuntimeControlSession;
324
396
  private requestRuntimeTurnCancel;
325
397
  private setRuntimeResolvedSessionConfigOption;
326
- private applyRuntimeConfigOptionState;
327
- private installRuntimeTurnEventHandlers;
328
398
  private emitRuntimeTurnEvent;
329
399
  private connectRuntimeTurn;
330
400
  private connectRuntimeTurnClient;
@@ -336,6 +406,9 @@ declare class AcpRuntimeManager {
336
406
  private saveCompletedRuntimeTurn;
337
407
  private failRuntimeTurn;
338
408
  private finalizeRuntimeTurn;
409
+ private discardRetainedRuntimeTurnOwner;
410
+ private closeRuntimeTurnClient;
411
+ private cleanupRuntimeTurn;
339
412
  private finalizeRuntimeTurnRecord;
340
413
  runTurn(input: {
341
414
  handle: AcpRuntimeHandle;
@@ -346,15 +419,25 @@ declare class AcpRuntimeManager {
346
419
  requestId: string;
347
420
  timeoutMs?: number;
348
421
  signal?: AbortSignal;
422
+ onElicitation?: AcpElicitationHandler;
349
423
  }): AsyncIterable<AcpRuntimeEvent>;
350
424
  getStatus(handle: AcpRuntimeHandle): Promise<AcpRuntimeStatus>;
351
425
  setMode(handle: AcpRuntimeHandle, mode: string, sessionMode?: "persistent" | "oneshot"): Promise<void>;
352
- setConfigOption(handle: AcpRuntimeHandle, key: string, value: string, sessionMode?: "persistent" | "oneshot"): Promise<void>;
426
+ private setModeWithOwnership;
427
+ setConfigOption(handle: AcpRuntimeHandle, key: string, value: string, sessionMode?: "persistent" | "oneshot"): Promise<SetSessionConfigOptionResponse>;
428
+ private setConfigOptionWithOwnership;
353
429
  cancel(handle: AcpRuntimeHandle): Promise<void>;
354
430
  close(handle: AcpRuntimeHandle, options?: {
355
431
  discardPersistentState?: boolean;
356
432
  }): Promise<void>;
433
+ private resolveRuntimeRecordForClose;
434
+ private markActiveRuntimeRecordClosing;
435
+ private closeRuntimeRecordOwnership;
357
436
  private closeBackendSession;
437
+ private finalizeBackendCloseConnection;
438
+ private acquireBackendCloseConnection;
439
+ private requestBackendSessionClose;
440
+ private handleBackendSessionCloseError;
358
441
  private requireRecord;
359
442
  }
360
443
  //#endregion
@@ -418,6 +501,7 @@ declare class AcpxRuntime implements AcpxRuntimeLike {
418
501
  ensureSession(input: AcpRuntimeEnsureInput): Promise<AcpRuntimeHandle>;
419
502
  startTurn(input: AcpRuntimeTurnInput): {
420
503
  requestId: string;
504
+ readonly promptStarted: Promise<void>;
421
505
  events: {
422
506
  [Symbol.asyncIterator](): AsyncGenerator<AcpRuntimeEvent, void, any>;
423
507
  };
@@ -445,7 +529,7 @@ declare class AcpxRuntime implements AcpxRuntimeLike {
445
529
  handle: AcpRuntimeHandle;
446
530
  key: string;
447
531
  value: string;
448
- }): Promise<void>;
532
+ }): Promise<SetSessionConfigOptionResponse>;
449
533
  cancel(input: {
450
534
  handle: AcpRuntimeHandle;
451
535
  reason?: string;
@@ -465,5 +549,5 @@ declare function createRuntimeStore(options: {
465
549
  stateDir: string;
466
550
  }): AcpSessionStore;
467
551
  //#endregion
468
- export { ACPX_BACKEND_ID, type AcpAgentRegistry, type AcpFileSessionStoreOptions, type AcpPermissionDecision, type AcpPermissionRequest, type AcpRuntime, type AcpRuntimeAvailableCommand, type AcpRuntimeCapabilities, type AcpRuntimeDoctorReport, type AcpRuntimeEnsureInput, AcpRuntimeError, type AcpRuntimeErrorCode, type AcpRuntimeEvent, type AcpRuntimeHandle, type AcpRuntimeOptions, type AcpRuntimePromptMode, type AcpRuntimeSessionMode, type AcpRuntimeSessionModels, type AcpRuntimeSessionUsage, type AcpRuntimeStatus, type AcpRuntimeTurn, type AcpRuntimeTurnAttachment, type AcpRuntimeTurnInput, type AcpRuntimeTurnResult, type AcpRuntimeTurnResultError, type AcpRuntimeUsageBreakdown, type AcpRuntimeUsageCost, type AcpSessionRecord, type AcpSessionStore, type AcpSessionUpdateTag, AcpxRuntime, DEFAULT_AGENT_NAME, REQUESTED_MODEL_UNSUPPORTED_ERROR_CODE, REQUESTED_MODEL_UNSUPPORTED_REASONS, RequestedModelUnsupportedError, type RequestedModelUnsupportedErrorCode, type RequestedModelUnsupportedReason, type SessionAgentOptions, type SystemPromptOption, createAcpRuntime, createAgentRegistry, createFileSessionStore, createRuntimeStore, decodeAcpxRuntimeHandleState, encodeAcpxRuntimeHandleState, isAcpRuntimeError, isRequestedModelUnsupportedError };
552
+ export { ACPX_BACKEND_ID, type AcpAgentRegistry, type AcpElicitationContext, type AcpElicitationHandler, type AcpElicitationMode, type AcpElicitationRequest, type AcpElicitationResponse, type AcpFileSessionStoreOptions, type AcpPermissionDecision, type AcpPermissionRequest, type AcpRuntime, type AcpRuntimeAvailableCommand, type AcpRuntimeCapabilities, type AcpRuntimeDoctorReport, type AcpRuntimeEnsureInput, AcpRuntimeError, type AcpRuntimeErrorCode, type AcpRuntimeEvent, type AcpRuntimeHandle, type AcpRuntimeOptions, type AcpRuntimePromptMode, type AcpRuntimeSessionMode, type AcpRuntimeSessionModels, type AcpRuntimeSessionUsage, type AcpRuntimeStatus, type AcpRuntimeTurn, type AcpRuntimeTurnAttachment, type AcpRuntimeTurnInput, type AcpRuntimeTurnResult, type AcpRuntimeTurnResultError, type AcpRuntimeUsageBreakdown, type AcpRuntimeUsageCost, type AcpSessionRecord, type AcpSessionStore, type AcpSessionUpdateTag, type AcpTextDeltaOriginMeta, AcpxRuntime, DEFAULT_AGENT_NAME, type PermissionPolicy, REQUESTED_MODEL_UNSUPPORTED_ERROR_CODE, REQUESTED_MODEL_UNSUPPORTED_REASONS, RequestedModelUnsupportedError, type RequestedModelUnsupportedErrorCode, type RequestedModelUnsupportedReason, type SessionAgentOptions, type SystemPromptOption, createAcpRuntime, createAgentRegistry, createFileSessionStore, createRuntimeStore, decodeAcpxRuntimeHandleState, encodeAcpxRuntimeHandleState, isAcpRuntimeError, isRequestedModelUnsupportedError };
469
553
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","names":[],"sources":["../src/agent-registry.ts","../src/runtime/public/contract.ts","../src/runtime/engine/manager.ts","../src/runtime/public/file-session-store.ts","../src/runtime/public/errors.ts","../src/runtime/public/shared.ts","../src/runtime/public/handle-state.ts","../src/runtime.ts"],"mappings":";;;;;cAkHa;;;KCnGD;KAEA;KAEA;KAaA;KAEA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU;EACV;EACA;EACA,MAAM;EACN;EACA;;;;;;;;;EASA,iBAAiB;;KAGP;;;;;EAKV;EACA;;KAGU;EACV,QAAQ;EACR;EACA,cAAc;EACd,MAAM;EACN;EACA;EACA,SAAS;;KAGC;EACV,UAAU;EACV;;KAGU;EACV;EACA;;;;;;;KAQU;EACV;EACA;;;;;;;KAQU;EACV;EACA;EACA;EACA;EACA;EACA;;;;;;;;KASU;EACV;EACA;;EAEA;;;;;;;KAQU;EACV,aAAa;;EAEb,OAAO;;EAEP,aAAa,eAAe;;KAGlB;EACV;EACA;EACA;EACA;EACA,SAAS;;EAET,QAAQ;;;;;;;EAOR,oBAAoB;EACpB,UAAU;;KAGA;EACV;EACA;EACA;EACA;EACA;;KAGU;EAEN;EACA;EACA;EACA,MAAM;;EAGN;EACA;EACA,MAAM;EACN;EACA;;EAEA,OAAO;;;;;;EAMP,YAAY;;;;;;;EAOZ,oBAAoB;;EAGpB;EACA;EACA,MAAM;EACN;EACA;EACA;EACA,OAAO;EACP,YAAY;EACZ;EACA;EACA,UAAU;;;;;;;EAOV;EACA;;;;;;;EAOA;EACA;EACA;EACA;EACA;;KAGM;EACV;EACA;EACA;EACA;;KAGU;EAEN;EACA;;EAGA;EACA;;EAGA;EACA,OAAO;;UAGI;WACN;WACA,QAAQ,cAAc;WACtB,QAAQ,QAAQ;EACzB,OAAO;IAAU;MAAoB;EACrC,YAAY;IAAU;MAAoB;;UAG3B;EACf,cAAc,OAAO,wBAAwB,QAAQ;EACrD,UAAU,OAAO,sBAAsB;;;;;;E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eACA,yCACC;EAwBG,OAAO,QAAQ,mBAAmB;EAKlC,MACJ,QAAQ,kBACR;IAAW;MACV;UAoBW;UA4CA;;;;iBC52CA,uBAAuB,SAAS,6BAA6B;;;cC5DhE;KAUD,8BAA8B;cAE7B,wBAAwB;WAC1B,MAAM;WACG;EAEN,YAAA,MAAM,qBAAqB,iBAAiB;IAAY;;;iBAQtD,kBAAkB,iBAAiB,SAAS;;;KCxBhD;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;;;iBCDc,6BAA6B,OAAO;iBAKpC,6BAA6B,6BAA6B;;;cCkE7D;KAMR,kBAAkB;EACrB,qBAAqB;EACrB;EACA,UAAU,QAAQ;;iBAGJ,oBAAoB;EAClC,YAAY;IACV;cAuCS,uBAAuB;mBAMf;mBACA;UANX;UACA;UACA;EAGW,YAAA,SAAS,mBACT;IACf,kBAAkB,SAAS,sBAAsB;IACjD,eAAe,SAAS,sBAAsB;MAC5C;MACA;MACA;;;EAKN;EAIM,qBAAqB;EAKrB,UAAU,QAAQ;EAWlB,cAAc,OAAO,wBAAwB,QAAQ;EAyC3D,UAAU,OAAO;;;;;;IA0BM,OAAA;MAAE;QAAiB;IAGd,YAAA;MAAE;QAAiB;;EAMxC,QAAQ,OAAO,sBAAsB,cAAc;EAepD,gBAAgB;IAAU,SAAS;MAAqB,QAAQ;EAyBhE,UAAU;IACd,QAAQ;IACR,SAAS;MACP,QAAQ;EAMN,QAAQ;IAAS,QAAQ;IAAkB;MAAiB;EAM5D,gBAAgB;IACpB,QAAQ;IACR;IACA;MACE;EAME,OAAO;IAAS,QAAQ;IAAkB;MAAoB;EAM9D,MAAM;IACV,QAAQ;IACR;IACA;MACE;UAQU;UAeA;UAIN;UAcA;;iBA+BM,iBAAiB,SAAS,oBAAoB;iBAI9C,mBAAmB;EAAW;IAAqB"}
1
+ {"version":3,"file":"runtime.d.ts","names":[],"sources":["../src/agent-registry.ts","../src/runtime/public/contract.ts","../src/runtime/engine/manager.ts","../src/runtime/public/file-session-store.ts","../src/runtime/public/errors.ts","../src/runtime/public/shared.ts","../src/runtime/public/handle-state.ts","../src/runtime.ts"],"mappings":";;;;;cAkHa;;;KClFD;KAEA;KAEA;KAaA;KAEA;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;KAGU;EACV;EACA;EACA,MAAM;EACN;EACA;;;;;;;;;EASA,iBAAiB;;KAGP;;;;;EAKV;EACA;;KAGU;EACV,QAAQ;EACR;EACA,cAAc;EACd,MAAM;EACN;EACA;EACA,SAAS;;EAET,gBAAgB;;KAGN;EACV,UAAU;EACV;;KAGU;EACV;EACA;;;;;;;KAQU;EACV;EACA;;;;;;;KAQU;EACV;EACA;EACA;EACA;EACA;EACA;;;;;;;;KASU;EACV;EACA;;EAEA;;;;;;;KAQU;EACV,aAAa;;EAEb,OAAO;;EAEP,aAAa,eAAe;;KAGlB;EACV;EACA;EACA;EACA;EACA,SAAS;;EAET,QAAQ;;;;;;;EAOR,oBAAoB;EACpB,UAAU;;KAGA;EACV;EACA;EACA;EACA;EACA;;;;;;KAOU;EACV;EACA;EACA;;KAGU;EAEN;EACA;EACA;EACA,MAAM;;;;;;;;;EASN;;;;;;;;;;EAUA,OAAO;;EAGP;EACA;EACA,MAAM;EACN;EACA;;EAEA,OAAO;;;;;;EAMP,YAAY;;;;;;;EAOZ,oBAAoB;;EAGpB;EACA;EACA,MAAM;EACN;EACA;EACA;EACA,OAAO;EACP,YAAY;EACZ;EACA;EACA,UAAU;;;;;;;EAOV;EACA;;;;;;;EAOA;EACA;EACA;EACA;EACA;;KAGM;EACV;EACA;EACA;EACA;;KAGU;EAEN;EACA;;EAGA;EACA;;EAGA;EACA,OAAO;;UAGI;WACN;;WAEA,eAAe;WACf,QAAQ,cAAc;;;;;;WAMtB,QAAQ,QAAQ;EACzB,OAAO;IAAU;MAAoB;EACrC,YAAY;IAAU;MAAoB;;UAG3B;EACf,cAAc,OAAO,wBAAwB,QAAQ;EACrD,UAAU,OAAO,sBAAsB;;;;;;EAMvC,QAAQ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