@band-ai/sdk 0.4.2 → 0.4.4

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.
@@ -1405,6 +1405,20 @@ interface ApplySessionConfigSelectionsResult {
1405
1405
  */
1406
1406
  declare function applySessionConfigSelections(input: ApplySessionConfigSelectionsInput): Promise<ApplySessionConfigSelectionsResult>;
1407
1407
 
1408
+ interface CollectedChunk {
1409
+ chunkType: "text" | "thought" | "tool_call" | "tool_result" | "plan";
1410
+ content: string;
1411
+ metadata: Record<string, unknown>;
1412
+ streamed: boolean;
1413
+ }
1414
+ interface ACPClientExtensionHandler {
1415
+ extensionSessionId?(): string | null;
1416
+ extMethod?(method: string, params: Record<string, unknown>, context: ACPClientExtensionContext): Promise<Record<string, unknown> | null>;
1417
+ extNotification?(method: string, params: Record<string, unknown>, context: ACPClientExtensionContext): Promise<readonly CollectedChunk[] | void>;
1418
+ }
1419
+ interface ACPClientExtensionContext {
1420
+ sessionId: string | null;
1421
+ }
1408
1422
  interface ACPClientConnectionHandle {
1409
1423
  connection: ClientSideConnection;
1410
1424
  stop(): Promise<void>;
@@ -1450,6 +1464,7 @@ interface ACPClientAdapterBaseOptions {
1450
1464
  additionalMcpTools?: McpToolRegistration[];
1451
1465
  clientCapabilities?: ClientCapabilities;
1452
1466
  connectionFactory?: ACPClientConnectionFactory;
1467
+ extensionHandler?: ACPClientExtensionHandler;
1453
1468
  resolvePermission?: (request: ACPPermissionRequest, signal: AbortSignal) => Promise<string | undefined>;
1454
1469
  permissionTimeoutMs?: number;
1455
1470
  turnTimeoutMs?: number;
@@ -1481,6 +1496,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1481
1496
  private readonly additionalMcpTools;
1482
1497
  private readonly clientCapabilities?;
1483
1498
  private readonly connectionFactory?;
1499
+ private readonly extensionHandler?;
1484
1500
  private readonly tcpEndpoint;
1485
1501
  private readonly roomToSession;
1486
1502
  private readonly sessionToRoom;
@@ -1519,6 +1535,18 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1519
1535
  roomId: string;
1520
1536
  }): Promise<void>;
1521
1537
  private runTurn;
1538
+ protected onAcpTurnStarted(_message: PlatformMessage, _tools: AdapterToolsProtocol, _context: {
1539
+ isSessionBootstrap: boolean;
1540
+ roomId: string;
1541
+ }): Promise<void>;
1542
+ protected onAcpTurnFinished(_message: PlatformMessage, _tools: AdapterToolsProtocol, _context: {
1543
+ isSessionBootstrap: boolean;
1544
+ roomId: string;
1545
+ }): Promise<void>;
1546
+ protected onAcpSessionReady(_message: PlatformMessage, _tools: AdapterToolsProtocol, _context: {
1547
+ isSessionBootstrap: boolean;
1548
+ roomId: string;
1549
+ }, _sessionId: string): Promise<void>;
1522
1550
  private abandonTimedOutTurn;
1523
1551
  private withRoomTurnLock;
1524
1552
  onCleanup(roomId: string): Promise<void>;
@@ -1533,6 +1561,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1533
1561
  private unlinkRoom;
1534
1562
  private unlinkOwner;
1535
1563
  private sessionKey;
1564
+ protected roomIdForSession(sessionId: string): string | undefined;
1536
1565
  private ensureConnection;
1537
1566
  private spawnConnection;
1538
1567
  private getOrCreateSession;
@@ -1585,4 +1614,64 @@ declare class CopilotACPAdapter extends ACPClientAdapter {
1585
1614
  constructor(options?: CopilotACPAdapterOptions);
1586
1615
  }
1587
1616
 
1588
- export { type OpencodeQuestionMode as $, A2AAdapter as A, type CopilotACPStdioOptions as B, CODEX_REASONING_EFFORTS as C, type CopilotACPTcpOptions as D, DEFAULT_COPILOT_ACP_COMMAND as E, DEFAULT_OMP_ACP_COMMAND as F, FAILURE_CODE_SESSION_CONFIG as G, GeminiAdapter as H, type GeminiAdapterOptions as I, GenericAdapter as J, type GenericAdapterHandler as K, GoogleADKAdapter as L, type GoogleADKAdapterOptions as M, LangGraphAdapter as N, type LangGraphAdapterOptions as O, type LangGraphGraph as P, LettaAdapter as Q, type LettaAdapterOptions as R, MISSING_CONFIG_OPTIONS_REASON as S, OmpACPAdapter as T, type OmpACPAdapterOptions as U, OpenAIAdapter as V, type OpenAIAdapterOptions as W, OpencodeAdapter as X, type OpencodeAdapterConfig as Y, type OpencodeApprovalMode as Z, type OpencodeApprovalReply as _, type A2AAdapterOptions as a, ParlantAdapter as a0, type ParlantAdapterOptions as a1, type ToolCallingModel as a2, VercelAISDKAdapter as a3, type VercelAISDKAdapterOptions as a4, applySessionConfigSelections as a5, type A2AClientFactory as a6, type A2AClientLike as a7, type ACPPermissionAbandonReason as a8, type ACPPermissionEndReason as a9, type LettaResponse as aA, type LettaResponseMessage as aB, type OpenAIClientFactory as aC, OpenAIToolCallingModel as aD, type OpenAIToolCallingModelOptions as aE, type OpencodeClientLike as aF, type ParlantClientFactory as aG, type ParlantClientLike as aH, type ToolCall as aI, ToolCallingAdapter as aJ, type ToolCallingAdapterOptions as aK, type ToolCallingModelRequest as aL, type ToolCallingResponse as aM, type ToolResult as aN, type TurnStartParams as aO, VercelAISDKToolCallingModel as aP, type VercelAISDKToolCallingModelOptions as aQ, runSingleToolRound as aR, type ACPPermissionRequest as aa, type AnthropicClientFactory as ab, AnthropicToolCallingModel as ac, type AnthropicToolCallingModelOptions as ad, type ClaudeSDKQuery as ae, type ClaudeSDKQueryParams as af, CodexAppServerStdioClient as ag, type CodexClientLike as ah, CodexJsonRpcError as ai, type DynamicToolCallParams as aj, type DynamicToolCallResponse as ak, type DynamicToolSpec as al, type GeminiClientFactory as am, GeminiToolCallingModel as an, type GeminiToolCallingModelOptions as ao, HttpOpencodeClient as ap, type HttpOpencodeClientOptions as aq, HttpStatusError as ar, type LettaAgentCreateParams as as, type LettaClientFactory as at, type LettaClientLike as au, LettaHistoryConverter as av, type LettaMessage as aw, type LettaMessageCreateParams as ax, type LettaMessages as ay, type LettaRequestOptions as az, A2AGatewayAdapter as b, ACPClientAdapter as c, type ACPClientAdapterBaseOptions as d, type ACPClientAdapterOptions as e, type ACPClientStdioOptions as f, type ACPClientTcpOptions as g, type ACPConfigRequest as h, type ACPConfigSelections as i, AcpSessionConfigError as j, AnthropicAdapter as k, type AnthropicAdapterOptions as l, CODEX_REASONING_SUMMARIES as m, CODEX_WEB_SEARCH_MODES as n, type ClaudePermissionMode as o, ClaudeSDKAdapter as p, type ClaudeSDKAdapterOptions as q, CodexAdapter as r, type CodexAdapterConfig as s, type CodexApprovalPolicy as t, type CodexReasoningEffort as u, type CodexReasoningSummary as v, type CodexSandboxMode as w, type CodexWebSearchMode as x, CopilotACPAdapter as y, type CopilotACPAdapterOptions as z };
1617
+ declare const DEFAULT_CURSOR_ACP_COMMAND: readonly ["agent", "acp"];
1618
+ type CursorApprovalMode = "manual" | "autoAccept" | "autoDecline";
1619
+ type CursorQuestionMode = "manual" | "autoFirst" | "autoCancel";
1620
+ type CursorPlanMode = "manual" | "autoAccept" | "autoDecline";
1621
+ interface CursorACPAdapterOptions extends Omit<ACPClientStdioOptions, "command" | "authMethod" | "env" | "extensionHandler" | "resolvePermission"> {
1622
+ command?: string | string[];
1623
+ env?: Record<string, string>;
1624
+ apiKey?: string;
1625
+ authToken?: string;
1626
+ approvalMode?: CursorApprovalMode;
1627
+ questionMode?: CursorQuestionMode;
1628
+ planMode?: CursorPlanMode;
1629
+ decisionTimeoutMs?: number;
1630
+ maxPendingDecisions?: number;
1631
+ decisionAuthorizedSenders?: readonly string[];
1632
+ }
1633
+ declare class CursorACPAdapter extends ACPClientAdapter {
1634
+ protected readonly provider = "cursor-acp";
1635
+ private readonly approvalMode;
1636
+ private readonly questionMode;
1637
+ private readonly planMode;
1638
+ private readonly decisionTimeoutMs;
1639
+ private readonly maxPendingDecisions;
1640
+ private readonly authorizedSenders;
1641
+ private readonly decisionLogger;
1642
+ private readonly extensions;
1643
+ private readonly turns;
1644
+ private readonly pending;
1645
+ private activeTurn;
1646
+ private turnTail;
1647
+ constructor(options?: CursorACPAdapterOptions);
1648
+ onMessage(message: PlatformMessage, tools: AdapterToolsProtocol, history: ACPClientSessionState, participantsMessage: string | null, contactsMessage: string | null, context: {
1649
+ isSessionBootstrap: boolean;
1650
+ roomId: string;
1651
+ }): Promise<void>;
1652
+ protected onAcpTurnStarted(message: PlatformMessage, tools: AdapterToolsProtocol, context: {
1653
+ isSessionBootstrap: boolean;
1654
+ roomId: string;
1655
+ }): Promise<void>;
1656
+ protected onAcpSessionReady(message: PlatformMessage, _tools: AdapterToolsProtocol, context: {
1657
+ isSessionBootstrap: boolean;
1658
+ roomId: string;
1659
+ }, sessionId: string): Promise<void>;
1660
+ protected onAcpTurnFinished(message: PlatformMessage, _tools: AdapterToolsProtocol, context: {
1661
+ isSessionBootstrap: boolean;
1662
+ roomId: string;
1663
+ }): Promise<void>;
1664
+ onCleanup(roomId: string): Promise<void>;
1665
+ stop(): Promise<void>;
1666
+ resolveExtension(method: string, params: Record<string, unknown>, sessionId: string | null): Promise<Record<string, unknown>>;
1667
+ resolveCursorPermission(request: ACPPermissionRequest, signal: AbortSignal): Promise<string | undefined>;
1668
+ extensionSessionId(): string | null;
1669
+ private resolveQuestion;
1670
+ private resolvePlan;
1671
+ private waitForDecision;
1672
+ private handleControl;
1673
+ private cancelRoom;
1674
+ private withCursorTurnLock;
1675
+ }
1676
+
1677
+ export { OpenAIAdapter as $, A2AAdapter as A, type CopilotACPStdioOptions as B, CODEX_REASONING_EFFORTS as C, type CopilotACPTcpOptions as D, CursorACPAdapter as E, type CursorACPAdapterOptions as F, type CursorApprovalMode as G, type CursorPlanMode as H, type CursorQuestionMode as I, DEFAULT_COPILOT_ACP_COMMAND as J, DEFAULT_CURSOR_ACP_COMMAND as K, DEFAULT_OMP_ACP_COMMAND as L, FAILURE_CODE_SESSION_CONFIG as M, GeminiAdapter as N, type GeminiAdapterOptions as O, GenericAdapter as P, type GenericAdapterHandler as Q, GoogleADKAdapter as R, type GoogleADKAdapterOptions as S, LangGraphAdapter as T, type LangGraphAdapterOptions as U, type LangGraphGraph as V, LettaAdapter as W, type LettaAdapterOptions as X, MISSING_CONFIG_OPTIONS_REASON as Y, OmpACPAdapter as Z, type OmpACPAdapterOptions as _, type A2AAdapterOptions as a, type OpenAIAdapterOptions as a0, OpencodeAdapter as a1, type OpencodeAdapterConfig as a2, type OpencodeApprovalMode as a3, type OpencodeApprovalReply as a4, type OpencodeQuestionMode as a5, ParlantAdapter as a6, type ParlantAdapterOptions as a7, type ToolCallingModel as a8, VercelAISDKAdapter as a9, type LettaClientLike as aA, LettaHistoryConverter as aB, type LettaMessage as aC, type LettaMessageCreateParams as aD, type LettaMessages as aE, type LettaRequestOptions as aF, type LettaResponse as aG, type LettaResponseMessage as aH, type OpenAIClientFactory as aI, OpenAIToolCallingModel as aJ, type OpenAIToolCallingModelOptions as aK, type OpencodeClientLike as aL, type ParlantClientFactory as aM, type ParlantClientLike as aN, type ToolCall as aO, ToolCallingAdapter as aP, type ToolCallingAdapterOptions as aQ, type ToolCallingModelRequest as aR, type ToolCallingResponse as aS, type ToolResult as aT, type TurnStartParams as aU, VercelAISDKToolCallingModel as aV, type VercelAISDKToolCallingModelOptions as aW, runSingleToolRound as aX, type VercelAISDKAdapterOptions as aa, applySessionConfigSelections as ab, type A2AClientFactory as ac, type A2AClientLike as ad, type ACPPermissionAbandonReason as ae, type ACPPermissionEndReason as af, type ACPPermissionRequest as ag, type AnthropicClientFactory as ah, AnthropicToolCallingModel as ai, type AnthropicToolCallingModelOptions as aj, type ClaudeSDKQuery as ak, type ClaudeSDKQueryParams as al, CodexAppServerStdioClient as am, type CodexClientLike as an, CodexJsonRpcError as ao, type DynamicToolCallParams as ap, type DynamicToolCallResponse as aq, type DynamicToolSpec as ar, type GeminiClientFactory as as, GeminiToolCallingModel as at, type GeminiToolCallingModelOptions as au, HttpOpencodeClient as av, type HttpOpencodeClientOptions as aw, HttpStatusError as ax, type LettaAgentCreateParams as ay, type LettaClientFactory as az, A2AGatewayAdapter as b, ACPClientAdapter as c, type ACPClientAdapterBaseOptions as d, type ACPClientAdapterOptions as e, type ACPClientStdioOptions as f, type ACPClientTcpOptions as g, type ACPConfigRequest as h, type ACPConfigSelections as i, AcpSessionConfigError as j, AnthropicAdapter as k, type AnthropicAdapterOptions as l, CODEX_REASONING_SUMMARIES as m, CODEX_WEB_SEARCH_MODES as n, type ClaudePermissionMode as o, ClaudeSDKAdapter as p, type ClaudeSDKAdapterOptions as q, CodexAdapter as r, type CodexAdapterConfig as s, type CodexApprovalPolicy as t, type CodexReasoningEffort as u, type CodexReasoningSummary as v, type CodexSandboxMode as w, type CodexWebSearchMode as x, CopilotACPAdapter as y, type CopilotACPAdapterOptions as z };
@@ -1405,6 +1405,20 @@ interface ApplySessionConfigSelectionsResult {
1405
1405
  */
1406
1406
  declare function applySessionConfigSelections(input: ApplySessionConfigSelectionsInput): Promise<ApplySessionConfigSelectionsResult>;
1407
1407
 
1408
+ interface CollectedChunk {
1409
+ chunkType: "text" | "thought" | "tool_call" | "tool_result" | "plan";
1410
+ content: string;
1411
+ metadata: Record<string, unknown>;
1412
+ streamed: boolean;
1413
+ }
1414
+ interface ACPClientExtensionHandler {
1415
+ extensionSessionId?(): string | null;
1416
+ extMethod?(method: string, params: Record<string, unknown>, context: ACPClientExtensionContext): Promise<Record<string, unknown> | null>;
1417
+ extNotification?(method: string, params: Record<string, unknown>, context: ACPClientExtensionContext): Promise<readonly CollectedChunk[] | void>;
1418
+ }
1419
+ interface ACPClientExtensionContext {
1420
+ sessionId: string | null;
1421
+ }
1408
1422
  interface ACPClientConnectionHandle {
1409
1423
  connection: ClientSideConnection;
1410
1424
  stop(): Promise<void>;
@@ -1450,6 +1464,7 @@ interface ACPClientAdapterBaseOptions {
1450
1464
  additionalMcpTools?: McpToolRegistration[];
1451
1465
  clientCapabilities?: ClientCapabilities;
1452
1466
  connectionFactory?: ACPClientConnectionFactory;
1467
+ extensionHandler?: ACPClientExtensionHandler;
1453
1468
  resolvePermission?: (request: ACPPermissionRequest, signal: AbortSignal) => Promise<string | undefined>;
1454
1469
  permissionTimeoutMs?: number;
1455
1470
  turnTimeoutMs?: number;
@@ -1481,6 +1496,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1481
1496
  private readonly additionalMcpTools;
1482
1497
  private readonly clientCapabilities?;
1483
1498
  private readonly connectionFactory?;
1499
+ private readonly extensionHandler?;
1484
1500
  private readonly tcpEndpoint;
1485
1501
  private readonly roomToSession;
1486
1502
  private readonly sessionToRoom;
@@ -1519,6 +1535,18 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1519
1535
  roomId: string;
1520
1536
  }): Promise<void>;
1521
1537
  private runTurn;
1538
+ protected onAcpTurnStarted(_message: PlatformMessage, _tools: AdapterToolsProtocol, _context: {
1539
+ isSessionBootstrap: boolean;
1540
+ roomId: string;
1541
+ }): Promise<void>;
1542
+ protected onAcpTurnFinished(_message: PlatformMessage, _tools: AdapterToolsProtocol, _context: {
1543
+ isSessionBootstrap: boolean;
1544
+ roomId: string;
1545
+ }): Promise<void>;
1546
+ protected onAcpSessionReady(_message: PlatformMessage, _tools: AdapterToolsProtocol, _context: {
1547
+ isSessionBootstrap: boolean;
1548
+ roomId: string;
1549
+ }, _sessionId: string): Promise<void>;
1522
1550
  private abandonTimedOutTurn;
1523
1551
  private withRoomTurnLock;
1524
1552
  onCleanup(roomId: string): Promise<void>;
@@ -1533,6 +1561,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1533
1561
  private unlinkRoom;
1534
1562
  private unlinkOwner;
1535
1563
  private sessionKey;
1564
+ protected roomIdForSession(sessionId: string): string | undefined;
1536
1565
  private ensureConnection;
1537
1566
  private spawnConnection;
1538
1567
  private getOrCreateSession;
@@ -1585,4 +1614,64 @@ declare class CopilotACPAdapter extends ACPClientAdapter {
1585
1614
  constructor(options?: CopilotACPAdapterOptions);
1586
1615
  }
1587
1616
 
1588
- export { type OpencodeQuestionMode as $, A2AAdapter as A, type CopilotACPStdioOptions as B, CODEX_REASONING_EFFORTS as C, type CopilotACPTcpOptions as D, DEFAULT_COPILOT_ACP_COMMAND as E, DEFAULT_OMP_ACP_COMMAND as F, FAILURE_CODE_SESSION_CONFIG as G, GeminiAdapter as H, type GeminiAdapterOptions as I, GenericAdapter as J, type GenericAdapterHandler as K, GoogleADKAdapter as L, type GoogleADKAdapterOptions as M, LangGraphAdapter as N, type LangGraphAdapterOptions as O, type LangGraphGraph as P, LettaAdapter as Q, type LettaAdapterOptions as R, MISSING_CONFIG_OPTIONS_REASON as S, OmpACPAdapter as T, type OmpACPAdapterOptions as U, OpenAIAdapter as V, type OpenAIAdapterOptions as W, OpencodeAdapter as X, type OpencodeAdapterConfig as Y, type OpencodeApprovalMode as Z, type OpencodeApprovalReply as _, type A2AAdapterOptions as a, ParlantAdapter as a0, type ParlantAdapterOptions as a1, type ToolCallingModel as a2, VercelAISDKAdapter as a3, type VercelAISDKAdapterOptions as a4, applySessionConfigSelections as a5, type A2AClientFactory as a6, type A2AClientLike as a7, type ACPPermissionAbandonReason as a8, type ACPPermissionEndReason as a9, type LettaResponse as aA, type LettaResponseMessage as aB, type OpenAIClientFactory as aC, OpenAIToolCallingModel as aD, type OpenAIToolCallingModelOptions as aE, type OpencodeClientLike as aF, type ParlantClientFactory as aG, type ParlantClientLike as aH, type ToolCall as aI, ToolCallingAdapter as aJ, type ToolCallingAdapterOptions as aK, type ToolCallingModelRequest as aL, type ToolCallingResponse as aM, type ToolResult as aN, type TurnStartParams as aO, VercelAISDKToolCallingModel as aP, type VercelAISDKToolCallingModelOptions as aQ, runSingleToolRound as aR, type ACPPermissionRequest as aa, type AnthropicClientFactory as ab, AnthropicToolCallingModel as ac, type AnthropicToolCallingModelOptions as ad, type ClaudeSDKQuery as ae, type ClaudeSDKQueryParams as af, CodexAppServerStdioClient as ag, type CodexClientLike as ah, CodexJsonRpcError as ai, type DynamicToolCallParams as aj, type DynamicToolCallResponse as ak, type DynamicToolSpec as al, type GeminiClientFactory as am, GeminiToolCallingModel as an, type GeminiToolCallingModelOptions as ao, HttpOpencodeClient as ap, type HttpOpencodeClientOptions as aq, HttpStatusError as ar, type LettaAgentCreateParams as as, type LettaClientFactory as at, type LettaClientLike as au, LettaHistoryConverter as av, type LettaMessage as aw, type LettaMessageCreateParams as ax, type LettaMessages as ay, type LettaRequestOptions as az, A2AGatewayAdapter as b, ACPClientAdapter as c, type ACPClientAdapterBaseOptions as d, type ACPClientAdapterOptions as e, type ACPClientStdioOptions as f, type ACPClientTcpOptions as g, type ACPConfigRequest as h, type ACPConfigSelections as i, AcpSessionConfigError as j, AnthropicAdapter as k, type AnthropicAdapterOptions as l, CODEX_REASONING_SUMMARIES as m, CODEX_WEB_SEARCH_MODES as n, type ClaudePermissionMode as o, ClaudeSDKAdapter as p, type ClaudeSDKAdapterOptions as q, CodexAdapter as r, type CodexAdapterConfig as s, type CodexApprovalPolicy as t, type CodexReasoningEffort as u, type CodexReasoningSummary as v, type CodexSandboxMode as w, type CodexWebSearchMode as x, CopilotACPAdapter as y, type CopilotACPAdapterOptions as z };
1617
+ declare const DEFAULT_CURSOR_ACP_COMMAND: readonly ["agent", "acp"];
1618
+ type CursorApprovalMode = "manual" | "autoAccept" | "autoDecline";
1619
+ type CursorQuestionMode = "manual" | "autoFirst" | "autoCancel";
1620
+ type CursorPlanMode = "manual" | "autoAccept" | "autoDecline";
1621
+ interface CursorACPAdapterOptions extends Omit<ACPClientStdioOptions, "command" | "authMethod" | "env" | "extensionHandler" | "resolvePermission"> {
1622
+ command?: string | string[];
1623
+ env?: Record<string, string>;
1624
+ apiKey?: string;
1625
+ authToken?: string;
1626
+ approvalMode?: CursorApprovalMode;
1627
+ questionMode?: CursorQuestionMode;
1628
+ planMode?: CursorPlanMode;
1629
+ decisionTimeoutMs?: number;
1630
+ maxPendingDecisions?: number;
1631
+ decisionAuthorizedSenders?: readonly string[];
1632
+ }
1633
+ declare class CursorACPAdapter extends ACPClientAdapter {
1634
+ protected readonly provider = "cursor-acp";
1635
+ private readonly approvalMode;
1636
+ private readonly questionMode;
1637
+ private readonly planMode;
1638
+ private readonly decisionTimeoutMs;
1639
+ private readonly maxPendingDecisions;
1640
+ private readonly authorizedSenders;
1641
+ private readonly decisionLogger;
1642
+ private readonly extensions;
1643
+ private readonly turns;
1644
+ private readonly pending;
1645
+ private activeTurn;
1646
+ private turnTail;
1647
+ constructor(options?: CursorACPAdapterOptions);
1648
+ onMessage(message: PlatformMessage, tools: AdapterToolsProtocol, history: ACPClientSessionState, participantsMessage: string | null, contactsMessage: string | null, context: {
1649
+ isSessionBootstrap: boolean;
1650
+ roomId: string;
1651
+ }): Promise<void>;
1652
+ protected onAcpTurnStarted(message: PlatformMessage, tools: AdapterToolsProtocol, context: {
1653
+ isSessionBootstrap: boolean;
1654
+ roomId: string;
1655
+ }): Promise<void>;
1656
+ protected onAcpSessionReady(message: PlatformMessage, _tools: AdapterToolsProtocol, context: {
1657
+ isSessionBootstrap: boolean;
1658
+ roomId: string;
1659
+ }, sessionId: string): Promise<void>;
1660
+ protected onAcpTurnFinished(message: PlatformMessage, _tools: AdapterToolsProtocol, context: {
1661
+ isSessionBootstrap: boolean;
1662
+ roomId: string;
1663
+ }): Promise<void>;
1664
+ onCleanup(roomId: string): Promise<void>;
1665
+ stop(): Promise<void>;
1666
+ resolveExtension(method: string, params: Record<string, unknown>, sessionId: string | null): Promise<Record<string, unknown>>;
1667
+ resolveCursorPermission(request: ACPPermissionRequest, signal: AbortSignal): Promise<string | undefined>;
1668
+ extensionSessionId(): string | null;
1669
+ private resolveQuestion;
1670
+ private resolvePlan;
1671
+ private waitForDecision;
1672
+ private handleControl;
1673
+ private cancelRoom;
1674
+ private withCursorTurnLock;
1675
+ }
1676
+
1677
+ export { OpenAIAdapter as $, A2AAdapter as A, type CopilotACPStdioOptions as B, CODEX_REASONING_EFFORTS as C, type CopilotACPTcpOptions as D, CursorACPAdapter as E, type CursorACPAdapterOptions as F, type CursorApprovalMode as G, type CursorPlanMode as H, type CursorQuestionMode as I, DEFAULT_COPILOT_ACP_COMMAND as J, DEFAULT_CURSOR_ACP_COMMAND as K, DEFAULT_OMP_ACP_COMMAND as L, FAILURE_CODE_SESSION_CONFIG as M, GeminiAdapter as N, type GeminiAdapterOptions as O, GenericAdapter as P, type GenericAdapterHandler as Q, GoogleADKAdapter as R, type GoogleADKAdapterOptions as S, LangGraphAdapter as T, type LangGraphAdapterOptions as U, type LangGraphGraph as V, LettaAdapter as W, type LettaAdapterOptions as X, MISSING_CONFIG_OPTIONS_REASON as Y, OmpACPAdapter as Z, type OmpACPAdapterOptions as _, type A2AAdapterOptions as a, type OpenAIAdapterOptions as a0, OpencodeAdapter as a1, type OpencodeAdapterConfig as a2, type OpencodeApprovalMode as a3, type OpencodeApprovalReply as a4, type OpencodeQuestionMode as a5, ParlantAdapter as a6, type ParlantAdapterOptions as a7, type ToolCallingModel as a8, VercelAISDKAdapter as a9, type LettaClientLike as aA, LettaHistoryConverter as aB, type LettaMessage as aC, type LettaMessageCreateParams as aD, type LettaMessages as aE, type LettaRequestOptions as aF, type LettaResponse as aG, type LettaResponseMessage as aH, type OpenAIClientFactory as aI, OpenAIToolCallingModel as aJ, type OpenAIToolCallingModelOptions as aK, type OpencodeClientLike as aL, type ParlantClientFactory as aM, type ParlantClientLike as aN, type ToolCall as aO, ToolCallingAdapter as aP, type ToolCallingAdapterOptions as aQ, type ToolCallingModelRequest as aR, type ToolCallingResponse as aS, type ToolResult as aT, type TurnStartParams as aU, VercelAISDKToolCallingModel as aV, type VercelAISDKToolCallingModelOptions as aW, runSingleToolRound as aX, type VercelAISDKAdapterOptions as aa, applySessionConfigSelections as ab, type A2AClientFactory as ac, type A2AClientLike as ad, type ACPPermissionAbandonReason as ae, type ACPPermissionEndReason as af, type ACPPermissionRequest as ag, type AnthropicClientFactory as ah, AnthropicToolCallingModel as ai, type AnthropicToolCallingModelOptions as aj, type ClaudeSDKQuery as ak, type ClaudeSDKQueryParams as al, CodexAppServerStdioClient as am, type CodexClientLike as an, CodexJsonRpcError as ao, type DynamicToolCallParams as ap, type DynamicToolCallResponse as aq, type DynamicToolSpec as ar, type GeminiClientFactory as as, GeminiToolCallingModel as at, type GeminiToolCallingModelOptions as au, HttpOpencodeClient as av, type HttpOpencodeClientOptions as aw, HttpStatusError as ax, type LettaAgentCreateParams as ay, type LettaClientFactory as az, A2AGatewayAdapter as b, ACPClientAdapter as c, type ACPClientAdapterBaseOptions as d, type ACPClientAdapterOptions as e, type ACPClientStdioOptions as f, type ACPClientTcpOptions as g, type ACPConfigRequest as h, type ACPConfigSelections as i, AcpSessionConfigError as j, AnthropicAdapter as k, type AnthropicAdapterOptions as l, CODEX_REASONING_SUMMARIES as m, CODEX_WEB_SEARCH_MODES as n, type ClaudePermissionMode as o, ClaudeSDKAdapter as p, type ClaudeSDKAdapterOptions as q, CodexAdapter as r, type CodexAdapterConfig as s, type CodexApprovalPolicy as t, type CodexReasoningEffort as u, type CodexReasoningSummary as v, type CodexSandboxMode as w, type CodexWebSearchMode as x, CopilotACPAdapter as y, type CopilotACPAdapterOptions as z };