@band-ai/sdk 0.4.0 → 0.4.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/README.md CHANGED
@@ -388,7 +388,7 @@ pnpm install
388
388
  cp agent_config.yaml.example agent_config.yaml # add your credentials
389
389
 
390
390
  npx tsx examples/basic/basic-agent.ts
391
- npx tsx examples/openai/openai-agent.ts
391
+ npx tsx examples/openai/01_basic_agent.ts
392
392
  ```
393
393
 
394
394
  ## Architecture
@@ -7,7 +7,8 @@ import { m as ToolModelMessage, n as ToolModelSchema, M as MetadataMap } from '.
7
7
  import { u as GoogleADKMessages, s as GoogleADKHistoryConverter, e as A2ASessionState, A as A2AAuth, G as GatewaySessionState, a as A2AGatewayAdapterOptions, n as ParlantMessages, P as ParlantHistoryConverter, C as ChatTurn, v as OpencodeSessionState, O as OpencodeHistoryConverter, r as ACPClientSessionState } from './acp-client-DUXyczlF.js';
8
8
  import { c as createBandMcpBackend } from './backends-CgsPQa9B.js';
9
9
  import { M as McpToolRegistration } from './sdk-Cin80BTC.js';
10
- import { Client, ClientSideConnection, RequestPermissionRequest, McpServer, ClientCapabilities, SessionMode, SessionConfigSelectOption } from '@agentclientprotocol/sdk';
10
+ import { SessionConfigOption, Client, ClientSideConnection, RequestPermissionRequest, McpServer, ClientCapabilities, SessionMode, SessionConfigSelectOption } from '@agentclientprotocol/sdk';
11
+ import { AgentFailure } from '@band-ai/band-sdk-core';
11
12
 
12
13
  type GenericAdapterHandler = (args: {
13
14
  message: PlatformMessage;
@@ -1338,6 +1339,72 @@ declare class ClaudeSDKAdapter extends SimpleAdapter<HistoryProvider, AdapterToo
1338
1339
  private reportSessionId;
1339
1340
  }
1340
1341
 
1342
+ /** Structured Band failure code when an ACP session config selection cannot be applied. */
1343
+ declare const FAILURE_CODE_SESSION_CONFIG = "session_config";
1344
+ /** Reason when a successful setter omits an array `configOptions` catalog. */
1345
+ declare const MISSING_CONFIG_OPTIONS_REASON = "missing_config_options";
1346
+ interface ACPConfigSelection {
1347
+ configId: string;
1348
+ value: string | undefined;
1349
+ }
1350
+ /**
1351
+ * Session configuration selected by a caller. Use an array when the order is
1352
+ * significant: JavaScript object enumeration sorts array-index property names.
1353
+ * The record form remains supported for existing callers.
1354
+ */
1355
+ type ACPConfigSelections$1 = readonly ACPConfigSelection[] | Readonly<Record<string, string | undefined>>;
1356
+ /**
1357
+ * Deterministic failure applying ACP session configuration. Carries provider,
1358
+ * option id, and optional ACP JSON-RPC code so callers can report a structured
1359
+ * Band failure instead of silently skipping the selection.
1360
+ */
1361
+ declare class AcpSessionConfigError extends Error {
1362
+ readonly provider: string;
1363
+ readonly sessionId: string;
1364
+ readonly optionId: string;
1365
+ readonly selectedValue: string | undefined;
1366
+ readonly acpCode: number | undefined;
1367
+ readonly detail: unknown;
1368
+ readonly timedOut: boolean;
1369
+ constructor(input: {
1370
+ provider: string;
1371
+ sessionId: string;
1372
+ optionId: string;
1373
+ message: string;
1374
+ selectedValue?: string;
1375
+ acpCode?: number;
1376
+ detail?: unknown;
1377
+ cause?: unknown;
1378
+ timedOut?: boolean;
1379
+ });
1380
+ toAgentFailure(): AgentFailure;
1381
+ }
1382
+ type SessionConfigOptionSetter = (params: {
1383
+ sessionId: string;
1384
+ configId: string;
1385
+ value: string;
1386
+ }) => Promise<{
1387
+ configOptions?: readonly SessionConfigOption[] | null;
1388
+ }>;
1389
+ interface ApplySessionConfigSelectionsInput {
1390
+ provider: string;
1391
+ sessionId: string;
1392
+ catalog: readonly SessionConfigOption[];
1393
+ selections: ACPConfigSelections$1;
1394
+ setOption: SessionConfigOptionSetter;
1395
+ timeoutMs: number;
1396
+ }
1397
+ interface ApplySessionConfigSelectionsResult {
1398
+ catalog: readonly SessionConfigOption[];
1399
+ }
1400
+ /**
1401
+ * Applies ACP config selections in caller order. Each successful
1402
+ * `session/set_config_option` response replaces the live catalog used to
1403
+ * validate the next selection. Invalid or rejected selections throw
1404
+ * {@link AcpSessionConfigError} — never silently skip or default.
1405
+ */
1406
+ declare function applySessionConfigSelections(input: ApplySessionConfigSelectionsInput): Promise<ApplySessionConfigSelectionsResult>;
1407
+
1341
1408
  interface ACPClientConnectionHandle {
1342
1409
  connection: ClientSideConnection;
1343
1410
  stop(): Promise<void>;
@@ -1365,7 +1432,15 @@ interface ACPModelRequest {
1365
1432
  currentModelId: string;
1366
1433
  models: readonly SessionConfigSelectOption[];
1367
1434
  }
1435
+ interface ACPConfigRequest {
1436
+ roomId: string;
1437
+ sessionId: string;
1438
+ configOptions: readonly SessionConfigOption[];
1439
+ }
1440
+ type ACPConfigSelections = ACPConfigSelections$1;
1368
1441
  interface ACPClientAdapterBaseOptions {
1442
+ /** Merged into the first-turn system context (character/persona sections for examples). */
1443
+ customSection?: string;
1369
1444
  cwd?: string;
1370
1445
  env?: Record<string, string>;
1371
1446
  mcpServers?: McpServer[];
@@ -1379,6 +1454,7 @@ interface ACPClientAdapterBaseOptions {
1379
1454
  permissionTimeoutMs?: number;
1380
1455
  turnTimeoutMs?: number;
1381
1456
  resolveSessionMode?: (request: ACPModeRequest, signal: AbortSignal) => Promise<string | undefined>;
1457
+ resolveSessionConfig?: (request: ACPConfigRequest, signal: AbortSignal) => Promise<ACPConfigSelections | undefined>;
1382
1458
  resolveSessionModel?: (request: ACPModelRequest, signal: AbortSignal) => Promise<string | undefined>;
1383
1459
  logger?: Logger;
1384
1460
  }
@@ -1419,9 +1495,11 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1419
1495
  private readonly resolvePermission?;
1420
1496
  private readonly resolveSessionMode?;
1421
1497
  private readonly resolveSessionModel?;
1498
+ private readonly resolveSessionConfig?;
1422
1499
  private readonly permissionTimeoutMs;
1423
1500
  private readonly turnTimeoutMs;
1424
1501
  private readonly logger;
1502
+ private readonly customSection?;
1425
1503
  private backend;
1426
1504
  private backendPromise;
1427
1505
  private client;
@@ -1432,6 +1510,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1432
1510
  private started;
1433
1511
  private systemPrompt;
1434
1512
  private spawnPromise;
1513
+ private readonly connectionRetirements;
1435
1514
  private connectionGeneration;
1436
1515
  constructor(options: ACPClientAdapterOptions);
1437
1516
  onStarted(agentName: string, agentDescription: string): Promise<void>;
@@ -1450,6 +1529,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1450
1529
  private nextRoomGeneration;
1451
1530
  private isCurrentGeneration;
1452
1531
  private raceAgainstConnectionClose;
1532
+ private raceAgainstConnectionRetirement;
1453
1533
  private unlinkRoom;
1454
1534
  private unlinkOwner;
1455
1535
  private sessionKey;
@@ -1457,6 +1537,10 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1457
1537
  private spawnConnection;
1458
1538
  private getOrCreateSession;
1459
1539
  private establishSession;
1540
+ private configureSessionConfig;
1541
+ private abandonFailedConfigSession;
1542
+ private evictAbandonedSession;
1543
+ private retireConnection;
1460
1544
  private linkOrAbandon;
1461
1545
  private configureSessionMode;
1462
1546
  private configureSessionModel;
@@ -1501,4 +1585,4 @@ declare class CopilotACPAdapter extends ACPClientAdapter {
1501
1585
  constructor(options?: CopilotACPAdapterOptions);
1502
1586
  }
1503
1587
 
1504
- export { type VercelAISDKAdapterOptions as $, A2AAdapter as A, type GeminiAdapterOptions as B, CODEX_REASONING_EFFORTS as C, DEFAULT_COPILOT_ACP_COMMAND as D, GenericAdapter as E, type GenericAdapterHandler as F, GeminiAdapter as G, GoogleADKAdapter as H, type GoogleADKAdapterOptions as I, type LangGraphAdapterOptions as J, type LangGraphGraph as K, LangGraphAdapter as L, LettaAdapter as M, type LettaAdapterOptions as N, OmpACPAdapter as O, type OmpACPAdapterOptions as P, OpenAIAdapter as Q, type OpenAIAdapterOptions as R, OpencodeAdapter as S, type OpencodeAdapterConfig as T, type OpencodeApprovalMode as U, type OpencodeApprovalReply as V, type OpencodeQuestionMode as W, ParlantAdapter as X, type ParlantAdapterOptions as Y, type ToolCallingModel as Z, VercelAISDKAdapter as _, type A2AAdapterOptions as a, type A2AClientFactory as a0, type A2AClientLike as a1, type ACPPermissionAbandonReason as a2, type ACPPermissionEndReason as a3, type ACPPermissionRequest as a4, type AnthropicClientFactory as a5, AnthropicToolCallingModel as a6, type AnthropicToolCallingModelOptions as a7, type ClaudeSDKQuery as a8, type ClaudeSDKQueryParams as a9, type ParlantClientFactory as aA, type ParlantClientLike as aB, type ToolCall as aC, ToolCallingAdapter as aD, type ToolCallingAdapterOptions as aE, type ToolCallingModelRequest as aF, type ToolCallingResponse as aG, type ToolResult as aH, type TurnStartParams as aI, VercelAISDKToolCallingModel as aJ, type VercelAISDKToolCallingModelOptions as aK, runSingleToolRound as aL, CodexAppServerStdioClient as aa, type CodexClientLike as ab, CodexJsonRpcError as ac, type DynamicToolCallParams as ad, type DynamicToolCallResponse as ae, type DynamicToolSpec as af, type GeminiClientFactory as ag, GeminiToolCallingModel as ah, type GeminiToolCallingModelOptions as ai, HttpOpencodeClient as aj, type HttpOpencodeClientOptions as ak, HttpStatusError as al, type LettaAgentCreateParams as am, type LettaClientFactory as an, type LettaClientLike as ao, LettaHistoryConverter as ap, type LettaMessage as aq, type LettaMessageCreateParams as ar, type LettaMessages as as, type LettaRequestOptions as at, type LettaResponse as au, type LettaResponseMessage as av, type OpenAIClientFactory as aw, OpenAIToolCallingModel as ax, type OpenAIToolCallingModelOptions as ay, type OpencodeClientLike as az, A2AGatewayAdapter as b, ACPClientAdapter as c, type ACPClientAdapterBaseOptions as d, type ACPClientAdapterOptions as e, type ACPClientStdioOptions as f, type ACPClientTcpOptions as g, AnthropicAdapter as h, type AnthropicAdapterOptions as i, CODEX_REASONING_SUMMARIES as j, CODEX_WEB_SEARCH_MODES as k, type ClaudePermissionMode as l, ClaudeSDKAdapter as m, type ClaudeSDKAdapterOptions as n, CodexAdapter as o, type CodexAdapterConfig as p, type CodexApprovalPolicy as q, type CodexReasoningEffort as r, type CodexReasoningSummary as s, type CodexSandboxMode as t, type CodexWebSearchMode as u, CopilotACPAdapter as v, type CopilotACPAdapterOptions as w, type CopilotACPStdioOptions as x, type CopilotACPTcpOptions as y, DEFAULT_OMP_ACP_COMMAND as z };
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 };
@@ -7,7 +7,8 @@ import { m as ToolModelMessage, n as ToolModelSchema, M as MetadataMap } from '.
7
7
  import { u as GoogleADKMessages, s as GoogleADKHistoryConverter, e as A2ASessionState, A as A2AAuth, G as GatewaySessionState, a as A2AGatewayAdapterOptions, n as ParlantMessages, P as ParlantHistoryConverter, C as ChatTurn, v as OpencodeSessionState, O as OpencodeHistoryConverter, r as ACPClientSessionState } from './acp-client-D-I_5lK-.cjs';
8
8
  import { c as createBandMcpBackend } from './backends-Dh2WXcHQ.cjs';
9
9
  import { M as McpToolRegistration } from './sdk-CXNqzoY1.cjs';
10
- import { Client, ClientSideConnection, RequestPermissionRequest, McpServer, ClientCapabilities, SessionMode, SessionConfigSelectOption } from '@agentclientprotocol/sdk';
10
+ import { SessionConfigOption, Client, ClientSideConnection, RequestPermissionRequest, McpServer, ClientCapabilities, SessionMode, SessionConfigSelectOption } from '@agentclientprotocol/sdk';
11
+ import { AgentFailure } from '@band-ai/band-sdk-core';
11
12
 
12
13
  type GenericAdapterHandler = (args: {
13
14
  message: PlatformMessage;
@@ -1338,6 +1339,72 @@ declare class ClaudeSDKAdapter extends SimpleAdapter<HistoryProvider, AdapterToo
1338
1339
  private reportSessionId;
1339
1340
  }
1340
1341
 
1342
+ /** Structured Band failure code when an ACP session config selection cannot be applied. */
1343
+ declare const FAILURE_CODE_SESSION_CONFIG = "session_config";
1344
+ /** Reason when a successful setter omits an array `configOptions` catalog. */
1345
+ declare const MISSING_CONFIG_OPTIONS_REASON = "missing_config_options";
1346
+ interface ACPConfigSelection {
1347
+ configId: string;
1348
+ value: string | undefined;
1349
+ }
1350
+ /**
1351
+ * Session configuration selected by a caller. Use an array when the order is
1352
+ * significant: JavaScript object enumeration sorts array-index property names.
1353
+ * The record form remains supported for existing callers.
1354
+ */
1355
+ type ACPConfigSelections$1 = readonly ACPConfigSelection[] | Readonly<Record<string, string | undefined>>;
1356
+ /**
1357
+ * Deterministic failure applying ACP session configuration. Carries provider,
1358
+ * option id, and optional ACP JSON-RPC code so callers can report a structured
1359
+ * Band failure instead of silently skipping the selection.
1360
+ */
1361
+ declare class AcpSessionConfigError extends Error {
1362
+ readonly provider: string;
1363
+ readonly sessionId: string;
1364
+ readonly optionId: string;
1365
+ readonly selectedValue: string | undefined;
1366
+ readonly acpCode: number | undefined;
1367
+ readonly detail: unknown;
1368
+ readonly timedOut: boolean;
1369
+ constructor(input: {
1370
+ provider: string;
1371
+ sessionId: string;
1372
+ optionId: string;
1373
+ message: string;
1374
+ selectedValue?: string;
1375
+ acpCode?: number;
1376
+ detail?: unknown;
1377
+ cause?: unknown;
1378
+ timedOut?: boolean;
1379
+ });
1380
+ toAgentFailure(): AgentFailure;
1381
+ }
1382
+ type SessionConfigOptionSetter = (params: {
1383
+ sessionId: string;
1384
+ configId: string;
1385
+ value: string;
1386
+ }) => Promise<{
1387
+ configOptions?: readonly SessionConfigOption[] | null;
1388
+ }>;
1389
+ interface ApplySessionConfigSelectionsInput {
1390
+ provider: string;
1391
+ sessionId: string;
1392
+ catalog: readonly SessionConfigOption[];
1393
+ selections: ACPConfigSelections$1;
1394
+ setOption: SessionConfigOptionSetter;
1395
+ timeoutMs: number;
1396
+ }
1397
+ interface ApplySessionConfigSelectionsResult {
1398
+ catalog: readonly SessionConfigOption[];
1399
+ }
1400
+ /**
1401
+ * Applies ACP config selections in caller order. Each successful
1402
+ * `session/set_config_option` response replaces the live catalog used to
1403
+ * validate the next selection. Invalid or rejected selections throw
1404
+ * {@link AcpSessionConfigError} — never silently skip or default.
1405
+ */
1406
+ declare function applySessionConfigSelections(input: ApplySessionConfigSelectionsInput): Promise<ApplySessionConfigSelectionsResult>;
1407
+
1341
1408
  interface ACPClientConnectionHandle {
1342
1409
  connection: ClientSideConnection;
1343
1410
  stop(): Promise<void>;
@@ -1365,7 +1432,15 @@ interface ACPModelRequest {
1365
1432
  currentModelId: string;
1366
1433
  models: readonly SessionConfigSelectOption[];
1367
1434
  }
1435
+ interface ACPConfigRequest {
1436
+ roomId: string;
1437
+ sessionId: string;
1438
+ configOptions: readonly SessionConfigOption[];
1439
+ }
1440
+ type ACPConfigSelections = ACPConfigSelections$1;
1368
1441
  interface ACPClientAdapterBaseOptions {
1442
+ /** Merged into the first-turn system context (character/persona sections for examples). */
1443
+ customSection?: string;
1369
1444
  cwd?: string;
1370
1445
  env?: Record<string, string>;
1371
1446
  mcpServers?: McpServer[];
@@ -1379,6 +1454,7 @@ interface ACPClientAdapterBaseOptions {
1379
1454
  permissionTimeoutMs?: number;
1380
1455
  turnTimeoutMs?: number;
1381
1456
  resolveSessionMode?: (request: ACPModeRequest, signal: AbortSignal) => Promise<string | undefined>;
1457
+ resolveSessionConfig?: (request: ACPConfigRequest, signal: AbortSignal) => Promise<ACPConfigSelections | undefined>;
1382
1458
  resolveSessionModel?: (request: ACPModelRequest, signal: AbortSignal) => Promise<string | undefined>;
1383
1459
  logger?: Logger;
1384
1460
  }
@@ -1419,9 +1495,11 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1419
1495
  private readonly resolvePermission?;
1420
1496
  private readonly resolveSessionMode?;
1421
1497
  private readonly resolveSessionModel?;
1498
+ private readonly resolveSessionConfig?;
1422
1499
  private readonly permissionTimeoutMs;
1423
1500
  private readonly turnTimeoutMs;
1424
1501
  private readonly logger;
1502
+ private readonly customSection?;
1425
1503
  private backend;
1426
1504
  private backendPromise;
1427
1505
  private client;
@@ -1432,6 +1510,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1432
1510
  private started;
1433
1511
  private systemPrompt;
1434
1512
  private spawnPromise;
1513
+ private readonly connectionRetirements;
1435
1514
  private connectionGeneration;
1436
1515
  constructor(options: ACPClientAdapterOptions);
1437
1516
  onStarted(agentName: string, agentDescription: string): Promise<void>;
@@ -1450,6 +1529,7 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1450
1529
  private nextRoomGeneration;
1451
1530
  private isCurrentGeneration;
1452
1531
  private raceAgainstConnectionClose;
1532
+ private raceAgainstConnectionRetirement;
1453
1533
  private unlinkRoom;
1454
1534
  private unlinkOwner;
1455
1535
  private sessionKey;
@@ -1457,6 +1537,10 @@ declare class ACPClientAdapter extends SimpleAdapter<ACPClientSessionState, Adap
1457
1537
  private spawnConnection;
1458
1538
  private getOrCreateSession;
1459
1539
  private establishSession;
1540
+ private configureSessionConfig;
1541
+ private abandonFailedConfigSession;
1542
+ private evictAbandonedSession;
1543
+ private retireConnection;
1460
1544
  private linkOrAbandon;
1461
1545
  private configureSessionMode;
1462
1546
  private configureSessionModel;
@@ -1501,4 +1585,4 @@ declare class CopilotACPAdapter extends ACPClientAdapter {
1501
1585
  constructor(options?: CopilotACPAdapterOptions);
1502
1586
  }
1503
1587
 
1504
- export { type VercelAISDKAdapterOptions as $, A2AAdapter as A, type GeminiAdapterOptions as B, CODEX_REASONING_EFFORTS as C, DEFAULT_COPILOT_ACP_COMMAND as D, GenericAdapter as E, type GenericAdapterHandler as F, GeminiAdapter as G, GoogleADKAdapter as H, type GoogleADKAdapterOptions as I, type LangGraphAdapterOptions as J, type LangGraphGraph as K, LangGraphAdapter as L, LettaAdapter as M, type LettaAdapterOptions as N, OmpACPAdapter as O, type OmpACPAdapterOptions as P, OpenAIAdapter as Q, type OpenAIAdapterOptions as R, OpencodeAdapter as S, type OpencodeAdapterConfig as T, type OpencodeApprovalMode as U, type OpencodeApprovalReply as V, type OpencodeQuestionMode as W, ParlantAdapter as X, type ParlantAdapterOptions as Y, type ToolCallingModel as Z, VercelAISDKAdapter as _, type A2AAdapterOptions as a, type A2AClientFactory as a0, type A2AClientLike as a1, type ACPPermissionAbandonReason as a2, type ACPPermissionEndReason as a3, type ACPPermissionRequest as a4, type AnthropicClientFactory as a5, AnthropicToolCallingModel as a6, type AnthropicToolCallingModelOptions as a7, type ClaudeSDKQuery as a8, type ClaudeSDKQueryParams as a9, type ParlantClientFactory as aA, type ParlantClientLike as aB, type ToolCall as aC, ToolCallingAdapter as aD, type ToolCallingAdapterOptions as aE, type ToolCallingModelRequest as aF, type ToolCallingResponse as aG, type ToolResult as aH, type TurnStartParams as aI, VercelAISDKToolCallingModel as aJ, type VercelAISDKToolCallingModelOptions as aK, runSingleToolRound as aL, CodexAppServerStdioClient as aa, type CodexClientLike as ab, CodexJsonRpcError as ac, type DynamicToolCallParams as ad, type DynamicToolCallResponse as ae, type DynamicToolSpec as af, type GeminiClientFactory as ag, GeminiToolCallingModel as ah, type GeminiToolCallingModelOptions as ai, HttpOpencodeClient as aj, type HttpOpencodeClientOptions as ak, HttpStatusError as al, type LettaAgentCreateParams as am, type LettaClientFactory as an, type LettaClientLike as ao, LettaHistoryConverter as ap, type LettaMessage as aq, type LettaMessageCreateParams as ar, type LettaMessages as as, type LettaRequestOptions as at, type LettaResponse as au, type LettaResponseMessage as av, type OpenAIClientFactory as aw, OpenAIToolCallingModel as ax, type OpenAIToolCallingModelOptions as ay, type OpencodeClientLike as az, A2AGatewayAdapter as b, ACPClientAdapter as c, type ACPClientAdapterBaseOptions as d, type ACPClientAdapterOptions as e, type ACPClientStdioOptions as f, type ACPClientTcpOptions as g, AnthropicAdapter as h, type AnthropicAdapterOptions as i, CODEX_REASONING_SUMMARIES as j, CODEX_WEB_SEARCH_MODES as k, type ClaudePermissionMode as l, ClaudeSDKAdapter as m, type ClaudeSDKAdapterOptions as n, CodexAdapter as o, type CodexAdapterConfig as p, type CodexApprovalPolicy as q, type CodexReasoningEffort as r, type CodexReasoningSummary as s, type CodexSandboxMode as t, type CodexWebSearchMode as u, CopilotACPAdapter as v, type CopilotACPAdapterOptions as w, type CopilotACPStdioOptions as x, type CopilotACPTcpOptions as y, DEFAULT_OMP_ACP_COMMAND as z };
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 };