@workerdeck/core 3.3.0 → 3.4.0

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
@@ -7,7 +7,7 @@ attach/replay; `AiSdkRunner` does the same for any provider the AI SDK supports.
7
7
  transport.
8
8
 
9
9
  Part of [WorkerDeck](https://github.com/workerdeck/workerdeck). A `SessionRunner`
10
- behaves like Claude Code launched in the session's directory - same skills, same `CLAUDE.md`, same
10
+ behaves like Claude Code launched in the session's directory - same skills, same `CLAUDE.md` or `AGENTS.md`, same
11
11
  permission system - and both runners emit
12
12
  [`@workerdeck/protocol`](https://www.npmjs.com/package/@workerdeck/protocol) events.
13
13
  [`@workerdeck/server`](https://www.npmjs.com/package/@workerdeck/server) bridges runners to
@@ -39,7 +39,7 @@ import { SessionRunner } from '@workerdeck/core'
39
39
  const runner = new SessionRunner({
40
40
  cwd: '/srv/checkouts/my-repo',
41
41
  prompt: 'Summarize the failing tests', // or a skill invocation like '/verify-content 42'
42
- settingSources: ['user', 'project'], // pick up the repo's skills + CLAUDE.md
42
+ settingSources: ['user', 'project'], // pick up the repo's skills + CLAUDE.md or AGENTS.md
43
43
  permissionMode: 'default',
44
44
  })
45
45
 
package/build/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { McpServerStatus, Options, Query, SDKMessage, SDKSessionInfo, SDKUserMessage, SessionMessage } from "@anthropic-ai/claude-agent-sdk";
2
- import { ApiMessage, ByModel, ChecklistItem, ContextReading, CostBreakdown, CreateSessionRequest, EngineCapabilities, McpServerConfigWire, McpServerStatusInfo, MessageAttachment, MessageOrigin, ModelOption, PermissionDecisionSource, PermissionMode, PermissionRequest, PricingTable, ProfileEngine, ProfileInfo, SdkSessionSummary, SessionEvent, SessionEventBody, SessionInfo, SessionStatus, ShellEndReason, ShellInfo, ShellOwner, ShellStatus, ToolCallRequestFrame, ToolExecutionBackend, ToolExecutionOutput } from "@workerdeck/protocol";
2
+ import { ApiMessage, ByModel, ChecklistItem, ContextReading, ContextUsageCategory, CostBreakdown, CreateSessionRequest, EngineCapabilities, McpServerConfigWire, McpServerStatusInfo, MessageAttachment, MessageOrigin, ModelOption, PeerSessionSummary, PermissionDecisionSource, PermissionMode, PermissionRequest, PricingTable, ProfileEngine, ProfileInfo, ProviderContextWindow, SdkSessionSummary, SessionEvent, SessionEventBody, SessionInfo, SessionStatus, ShellEndReason, ShellInfo, ShellOwner, ShellStatus, ToolCallRequestFrame, ToolExecutionBackend, ToolExecutionOutput } from "@workerdeck/protocol";
3
3
  import { z } from "zod";
4
4
  import { LanguageModel, LanguageModel as LanguageModel$1, ModelMessage, Tool, Tool as Tool$1, ToolSet, ToolSet as ToolSet$1 } from "ai";
5
5
  import { SandboxEngine, SandboxVfs } from "@workerdeck/sandbox";
@@ -15,6 +15,31 @@ declare const SUPPORTED_ATTACHMENT_TYPES: string;
15
15
  declare function attachmentContentBlocks(attachments: readonly AttachmentInput[]): Array<Record<string, unknown>>;
16
16
  declare function attachmentRef(attachment: AttachmentInput): MessageAttachment;
17
17
  //#endregion
18
+ //#region src/lib/gateway-tools.d.ts
19
+ type GatewayToolOutput = {
20
+ text: string;
21
+ isError: boolean;
22
+ };
23
+ type GatewayToolSpec<N extends string = string> = {
24
+ name: N;
25
+ description: string;
26
+ inputSchema: Record<string, unknown>;
27
+ };
28
+ //#endregion
29
+ //#region src/lib/context-reset.d.ts
30
+ type ContextResetRequest = {
31
+ prompt: string;
32
+ reason: string;
33
+ };
34
+ interface ContextResetDirectory {
35
+ request(sessionId: string, request: ContextResetRequest): Promise<string>;
36
+ }
37
+ declare const CONTEXT_RESET_TOOL = "context_reset";
38
+ declare const CONTEXT_RESET_PROMPT_MAX = 16000;
39
+ declare const CONTEXT_RESET_REASON_MAX = 200;
40
+ declare function installContextResetDirectory(directory: ContextResetDirectory | undefined): void;
41
+ declare function contextResetDirectoryHandle(own?: () => ContextResetDirectory | undefined): ContextResetDirectory;
42
+ //#endregion
18
43
  //#region src/lib/cost-ledger.d.ts
19
44
  type CostFigures = {
20
45
  byModel?: ByModel;
@@ -28,6 +53,7 @@ declare class CostLedger {
28
53
  constructor(pricing?: PricingTable);
29
54
  carry(state: CostLedgerState | undefined): void;
30
55
  carryUnlessRestored(state: CostLedgerState | undefined): void;
56
+ restartProcess(): void;
31
57
  observeCumulative(byModel: ByModel | undefined, reportedCostUsd: number | undefined): void;
32
58
  observeDelta(byModel: ByModel): void;
33
59
  rollover(): void;
@@ -87,34 +113,7 @@ declare class LocalCommandQueue {
87
113
  clear(): void;
88
114
  }
89
115
  //#endregion
90
- //#region src/lib/gateway-tools.d.ts
91
- type GatewayToolOutput = {
92
- text: string;
93
- isError: boolean;
94
- };
95
- type GatewayToolSpec<N extends string = string> = {
96
- name: N;
97
- description: string;
98
- inputSchema: Record<string, unknown>;
99
- };
100
- //#endregion
101
116
  //#region src/lib/peers.d.ts
102
- type PeerSessionSummary = {
103
- id: string;
104
- gateway?: string;
105
- engine?: ProfileEngine;
106
- status: SessionStatus;
107
- title?: string;
108
- project?: string;
109
- projectRoot?: string;
110
- cwd: string;
111
- profile?: string;
112
- model?: string;
113
- contextUsage?: ContextReading;
114
- lastActivityAt?: number;
115
- pendingPermissionCount: number;
116
- allow?: Array<'send' | 'peek'>;
117
- };
118
117
  type PeerPeek = PeerSessionSummary & {
119
118
  live: boolean;
120
119
  checklist?: SessionInfo['checklist'];
@@ -186,6 +185,10 @@ declare function withPeerContext(text: string, options?: {
186
185
  origin?: MessageOrigin;
187
186
  mentions?: readonly PeerMention[];
188
187
  }): string;
188
+ declare function withoutPeerContext(text: string): {
189
+ text: string;
190
+ origin?: MessageOrigin;
191
+ };
189
192
  declare function peerSummary(info: SessionInfo): PeerSessionSummary;
190
193
  declare function recentLines(events: readonly SessionEvent[], limit: number): string[];
191
194
  declare function installPeerDirectory(directory: PeerDirectory | undefined): void;
@@ -399,10 +402,13 @@ type EngineRunnerConfig = CreateSessionRequest & {
399
402
  instructions?: SessionInstructions;
400
403
  defaultApprovalTimeoutMs?: number | null;
401
404
  peers?: PeerDirectory;
405
+ contextReset?: ContextResetDirectory;
402
406
  shells?: ShellDirectory;
403
407
  shellAgentWrite?: ShellAgentWrite;
404
408
  createdByOperator?: boolean;
405
409
  fallbackTitle?: string;
410
+ startAsleep?: boolean;
411
+ effortDefaults?: Record<string, string>;
406
412
  };
407
413
  type ParkedExecution = {
408
414
  executionId: string;
@@ -423,6 +429,15 @@ type SendMessageOptions = {
423
429
  origin?: MessageOrigin;
424
430
  mentions?: readonly PeerMention[];
425
431
  };
432
+ type ClearContextOptions = {
433
+ agentReason?: string;
434
+ };
435
+ type SleepResult = {
436
+ ok: true;
437
+ } | {
438
+ ok: false;
439
+ reason: string;
440
+ };
426
441
  type PermissionDecision = {
427
442
  behavior: 'allow';
428
443
  updatedInput?: Record<string, unknown>;
@@ -453,9 +468,12 @@ interface Runner {
453
468
  resolvePermission(requestId: string, decision: PermissionDecision): boolean;
454
469
  interrupt(): Promise<void>;
455
470
  stopTask?(toolUseId: string): Promise<boolean>;
456
- clearContext?(): Promise<void>;
471
+ backgroundTask?(toolUseId?: string): Promise<boolean>;
472
+ clearContext?(options?: ClearContextOptions): Promise<void>;
473
+ sleep?(): Promise<SleepResult>;
457
474
  setPermissionMode(mode: PermissionMode): Promise<void>;
458
475
  setModel(model?: string): Promise<void>;
476
+ setEffort?(effort?: string): Promise<void>;
459
477
  settleExecution?(executionId: string, result: ToolExecutionResult): boolean;
460
478
  park?(): RunnerSnapshot | undefined;
461
479
  snapshot?(): RunnerSnapshot | undefined;
@@ -556,8 +574,75 @@ declare class RunnerCore {
556
574
  emitTurnResult(report: TurnReport): void;
557
575
  }
558
576
  //#endregion
577
+ //#region src/lib/session-report.d.ts
578
+ type SessionReportSource = () => Promise<SessionReport>;
579
+ type ContextMeasurement = 'live' | 'last_turn';
580
+ type SessionContextReport = {
581
+ usedTokens: number;
582
+ maxTokens: number | null;
583
+ percent: number | null;
584
+ remainingTokens: number | null;
585
+ measured: ContextMeasurement;
586
+ categories?: Array<{
587
+ name: string;
588
+ tokens: number;
589
+ }>;
590
+ note?: string;
591
+ };
592
+ type SessionRateLimitReport = {
593
+ window: string;
594
+ status: string;
595
+ usedPercent: number | null;
596
+ resetsAt: string | null;
597
+ usingOverage?: boolean;
598
+ observedAt: string;
599
+ stale: boolean;
600
+ };
601
+ type SessionReport = {
602
+ session: {
603
+ id: string;
604
+ title?: string;
605
+ profile?: string;
606
+ cwd?: string;
607
+ status: string;
608
+ createdAt: string;
609
+ };
610
+ engine: ProfileEngine;
611
+ vendor: string | null;
612
+ model: string | null;
613
+ effort: string | null;
614
+ permissionMode?: string;
615
+ context: SessionContextReport | null;
616
+ turns: number;
617
+ cost: {
618
+ usd: number | null;
619
+ basis: 'list_price_estimate' | 'engine_reported' | 'unpriced';
620
+ };
621
+ rateLimits: SessionRateLimitReport[] | null;
622
+ notes?: string[];
623
+ };
624
+ type LiveContext = {
625
+ totalTokens: number;
626
+ maxTokens?: number;
627
+ categories?: readonly ContextUsageCategory[];
628
+ measured: ContextMeasurement;
629
+ };
630
+ type SessionReportInput = {
631
+ info: SessionInfo;
632
+ vendor: string | undefined;
633
+ context: LiveContext | undefined;
634
+ events: readonly SessionEvent[];
635
+ rateLimitsSupported: boolean;
636
+ contextNote?: string;
637
+ now?: number;
638
+ };
639
+ declare const SESSION_INFO_TOOL = "session_info";
640
+ declare function buildSessionReport(input: SessionReportInput): SessionReport;
641
+ //#endregion
559
642
  //#region src/lib/session-tools.d.ts
560
643
  type SessionToolSources = {
644
+ report?: SessionReportSource;
645
+ reset?: ContextResetDirectory;
561
646
  peers?: PeerDirectory;
562
647
  shells?: ShellDirectory;
563
648
  write: boolean;
@@ -569,6 +654,12 @@ type ApprovalDeadline = {
569
654
  timeoutMs: number | undefined;
570
655
  expiresAt: number | undefined;
571
656
  };
657
+ type SessionReportFacts = {
658
+ vendor: string | undefined;
659
+ context: LiveContext | undefined;
660
+ rateLimits: boolean;
661
+ contextNote?: string;
662
+ };
572
663
  declare abstract class EngineRunner<C extends EngineRunnerConfig> {
573
664
  readonly id: string;
574
665
  readonly createdAt: number;
@@ -577,6 +668,9 @@ declare abstract class EngineRunner<C extends EngineRunnerConfig> {
577
668
  protected readonly localCommands: LocalCommandQueue;
578
669
  protected constructor(config: C, id: string, createdAt: number, options?: EngineRunnerCoreOptions);
579
670
  abstract close(reason?: CloseReason): void;
671
+ abstract info(): SessionInfo;
672
+ protected abstract reportFacts(): Promise<SessionReportFacts>;
673
+ sessionReport(): Promise<SessionReport>;
580
674
  protected coreHooks(): RunnerCoreHooks;
581
675
  get status(): SessionStatus;
582
676
  get lastSeq(): number;
@@ -608,6 +702,7 @@ declare abstract class EngineRunner<C extends EngineRunnerConfig> {
608
702
  pendingPermissionCount: number;
609
703
  meta: Record<string, unknown> | undefined;
610
704
  scope: Record<string, string> | undefined;
705
+ agentContextReset: true | undefined;
611
706
  title: string | undefined;
612
707
  costUsd: number | undefined;
613
708
  usageByModel: import("@workerdeck/protocol").ByModel | undefined;
@@ -643,15 +738,20 @@ declare class SessionRunner extends EngineRunner<SessionRunnerConfig> implements
643
738
  info(): SessionInfo;
644
739
  start(): Promise<void>;
645
740
  sendMessage(text: string, attachments?: readonly AttachmentInput[], options?: SendMessageOptions): void;
741
+ sleep(): Promise<SleepResult>;
742
+ get engineAsleep(): boolean;
646
743
  mcpServers(): Promise<McpServerStatusInfo[] | undefined>;
647
744
  reconnectMcpServer(name: string): Promise<void>;
648
745
  setMcpServerEnabled(name: string, enabled: boolean): Promise<void>;
649
746
  interrupt(): Promise<void>;
650
747
  stopTask(toolUseId: string): Promise<boolean>;
651
- clearContext(): Promise<void>;
748
+ backgroundTask(toolUseId?: string): Promise<boolean>;
749
+ clearContext(options?: ClearContextOptions): Promise<void>;
652
750
  setPermissionMode(mode: PermissionMode): Promise<void>;
653
751
  setModel(model?: string): Promise<void>;
752
+ setEffort(effort?: string): Promise<void>;
654
753
  close(reason?: CloseReason): void;
754
+ protected reportFacts(): Promise<SessionReportFacts>;
655
755
  refreshUsage(minIntervalMs?: number): Promise<void>;
656
756
  }
657
757
  //#endregion
@@ -693,6 +793,7 @@ type AiSdkRunnerConfig = EngineRunnerConfig & {
693
793
  input: unknown;
694
794
  }) => boolean;
695
795
  resolveModel?: (modelId: string | undefined) => LanguageModel$1;
796
+ contextWindow?: ProviderContextWindow;
696
797
  reportMcpServers?: () => Promise<McpServerStatusInfo[] | undefined>;
697
798
  onClose?: () => void | Promise<void>;
698
799
  restore?: RunnerSnapshot;
@@ -709,6 +810,7 @@ type AiSdkSessionState = {
709
810
  pendingToolCalls: PendingToolCall[];
710
811
  dispatched: string[];
711
812
  numTurns: number;
813
+ contextTokens?: number;
712
814
  turnAccum?: TurnUsage;
713
815
  permissionMode: PermissionMode;
714
816
  model?: string;
@@ -744,12 +846,13 @@ declare class AiSdkRunner extends EngineRunner<AiSdkRunnerConfig> implements Run
744
846
  description?: string;
745
847
  }): void;
746
848
  generateDigest(prompt: string): Promise<string>;
747
- clearContext(): Promise<void>;
849
+ clearContext(options?: ClearContextOptions): Promise<void>;
748
850
  interrupt(): Promise<void>;
749
851
  setPermissionMode(mode: PermissionMode): Promise<void>;
750
852
  setModel(model?: string): Promise<void>;
751
853
  close(reason?: CloseReason): void;
752
854
  settleExecution(executionId: string, result: ToolExecutionResult): boolean;
855
+ protected reportFacts(): Promise<SessionReportFacts>;
753
856
  mcpServers(): Promise<McpServerStatusInfo[] | undefined>;
754
857
  }
755
858
  //#endregion
@@ -930,9 +1033,11 @@ type ToolContextOptions = {
930
1033
  onDispatch?: (executionId: string, toolName: string) => void;
931
1034
  onSettle?: (executionId: string, result: ToolExecutionResult) => void;
932
1035
  peers?: PeerDirectory;
1036
+ contextReset?: ContextResetDirectory;
933
1037
  shells?: ShellDirectory;
934
1038
  shellWrite?: boolean;
935
1039
  selfId?: () => string;
1040
+ report?: SessionReportSource;
936
1041
  };
937
1042
  type ToolContext = {
938
1043
  vfs: SandboxVfs;
@@ -998,6 +1103,7 @@ declare function withoutGatewaySecrets<T extends string | undefined>(env: Record
998
1103
  //#region src/lib/input-queue.d.ts
999
1104
  declare class InputQueue implements AsyncIterable<SDKUserMessage> {
1000
1105
  #private;
1106
+ get pending(): number;
1001
1107
  push(message: SDKUserMessage): void;
1002
1108
  end(): void;
1003
1109
  [Symbol.asyncIterator](): AsyncIterator<SDKUserMessage>;
@@ -1259,14 +1365,18 @@ declare class CodexRunner extends EngineRunner<CodexRunnerConfig> implements Run
1259
1365
  protected coreHooks(): RunnerCoreHooks;
1260
1366
  get sdkSessionId(): string | undefined;
1261
1367
  info(): SessionInfo;
1368
+ get engineAsleep(): boolean;
1369
+ sleep(): Promise<SleepResult>;
1262
1370
  start(): Promise<void>;
1263
1371
  sendMessage(text: string, attachments?: readonly AttachmentInput[], options?: SendMessageOptions): void;
1264
1372
  interrupt(): Promise<void>;
1265
- clearContext(): Promise<void>;
1373
+ clearContext(options?: ClearContextOptions): Promise<void>;
1266
1374
  setPermissionMode(mode: PermissionMode): Promise<void>;
1267
1375
  setModel(model?: string): Promise<void>;
1376
+ setEffort(effort?: string): Promise<void>;
1268
1377
  close(reason?: CloseReason): void;
1269
1378
  mcpServers(): Promise<McpServerStatusInfo[] | undefined>;
1379
+ protected reportFacts(): Promise<SessionReportFacts>;
1270
1380
  }
1271
1381
  //#endregion
1272
1382
  //#region src/engines/codex/adapter.d.ts
@@ -1312,5 +1422,5 @@ declare class JsonRpcStdioConnection {
1312
1422
  //#region src/engines/provider/adapter.d.ts
1313
1423
  declare const providerAdapter: EngineAdapter;
1314
1424
  //#endregion
1315
- export { AiSdkRunner, type AiSdkRunnerConfig, type AiSdkSessionState, type AppServerConnectFn, type AppServerConnectOptions, type AppServerConnection, type AppServerHistoryTurn, type AppServerItem, type AppServerThreadListResponse, type AppServerThreadSummary, type AppServerTokenUsage, type AppServerTurn, type AppServerUserInput, type AttachmentInput, type AttachmentKind, type BridgeAnswer, BrowserBridgeExecutor, type BrowserBridgeExecutorOptions, CLAUDE_CATALOG, CODEX_CATALOG, type ClaudeAuthProbe, type ClaudeAuthStatus, type CodexAdapterConfig, CodexRunner, type CodexRunnerConfig, type CostFigures, CostLedger, type CostLedgerState, type DeferredDispatch, DeferredExecutor, type DeferredExecutorOptions, type EngineAdapter, type EngineAvailability, type EngineRunnerConfig, type EngineRunnerRequest, type EngineSessionOptions, GATEWAY_SECRET_ENV_KEYS, type HeadTail, type HeadTailOptions, type HistoryFn, type HostFetch, type HostToolDefinition, InputQueue, type InstructionsContext, JsonRpcError, JsonRpcStdioConnection, type LanguageModel, type LocalCommandEmit, type LocalCommandEvent, LocalCommandQueue, type LocalCommandResult, type LocalShellSource, type McpConnection, type ModelCatalog, PEER_MCP_SERVER, PEER_MESSAGE_MAX_CHARS, PEER_RECENT_DEFAULT, PEER_RECENT_MAX, PEER_TOOL_NAMES, type ParkedExecution, type PeerDirectory, type PeerMention, type PeerPeek, type PeerSendOptions, type PeerSendResult, type PeerSessionSummary, type PeerToolName, type PeerToolSpec, type PendingEntry, type PendingKind, type PendingOutcome, PendingRequestRegistry, type PendingToolCall, type PermissionDecision, type QueryFn, QuickJsExecutor, type QuickJsExecutorOptions, type RegisterOptions, type Runner, type RunnerSnapshot, SHELL_KEYS_MAX, SHELL_KEY_NAMES, SHELL_READ_TOOL_NAMES, SHELL_REFUSAL, SHELL_TOOL_NAMES, SHELL_TOOL_SHAPES, SHELL_WRITE_REFUSAL, SHELL_WRITE_TOOL_NAMES, SUPPORTED_ATTACHMENT_TYPES, type SendMessageOptions, type SessionEventListener, type SessionInstructions, SessionRunner, type SessionRunnerConfig, type SettledBy, type ShellAgentWrite, type ShellContextOptions, type ShellDirectory, type ShellKeyOptions, type ShellKillResult, type ShellReadOptions, type ShellReadResult, type ShellRunOptions, type ShellSummary, type ShellToolName, type ShellToolOptions, type ShellToolOutput, type ShellToolSpec, type ShellView, type ShellWait, type ShellWriteOptions, TTY_REDRAW_CARRY, type Tool, type ToolCallOutput, type ToolContext, type ToolContextOptions, type ToolDefinition, type ToolExecutionCall, type ToolExecutionDispatch, type ToolExecutionResult, type ToolExecutor, type ToolSet, type ToolTrust, type WebFetchDigest, type WebFetchFn, type WebFetchOptions, type WebFetchResult, agentMayWrite, attachmentContentBlocks, attachmentKind, attachmentRef, checkClaudeAuth, clampShellTail, claudeAdapter, codexAdapter, composeInstructions, connectAppServer, connectMcpTools, countLines, createEngineSession, createToolContext, createWebFetch, encodeShellKey, encodeShellKeys, getEngineAdapter, headTail, htmlToMarkdown, installPeerDirectory, installShellDirectory, installedPeerDirectory, installedShellDirectory, isHostAllowed, isLocalShellSource, isPrivateAddress, isShellToolName, isShellWriteToolName, isSlashCommand, listCodexSessions, localCommandContext, localCommandEvent, localCommandTranscript, mcpStatusInfo, modelOptionsFromSdk, normalizeMediaType, normalizeSdkMessage, peerDirectoryHandle, peerMentionsEnvelope, peerMessageEnvelope, peerSummary, peerToolSpecs, providerAdapter, recentLines, replaySlice, resolveBundledClaudeExecutable, resolveBundledCodexExecutable, resolveInstructions, runPeerTool, runShellTool, shellContextText, shellDirectoryHandle, shellInlineText, shellKillText, shellOwnershipRefusal, shellReadText, shellSummary, shellTail, shellToolNames, shellToolNeedsCard, shellToolOf, shellToolSpecs, shellWriteDeniedText, shellWriteToolOf, splitLines, toApiMessage, toExecutionResult, truncateResultBlocks, ttyRedraws, ttyText, withHostTools, withMcpTools, withPeerContext, withoutGatewaySecrets };
1425
+ export { AiSdkRunner, type AiSdkRunnerConfig, type AiSdkSessionState, type AppServerConnectFn, type AppServerConnectOptions, type AppServerConnection, type AppServerHistoryTurn, type AppServerItem, type AppServerThreadListResponse, type AppServerThreadSummary, type AppServerTokenUsage, type AppServerTurn, type AppServerUserInput, type AttachmentInput, type AttachmentKind, type BridgeAnswer, BrowserBridgeExecutor, type BrowserBridgeExecutorOptions, CLAUDE_CATALOG, CODEX_CATALOG, CONTEXT_RESET_PROMPT_MAX, CONTEXT_RESET_REASON_MAX, CONTEXT_RESET_TOOL, type ClaudeAuthProbe, type ClaudeAuthStatus, type ClearContextOptions, type CodexAdapterConfig, CodexRunner, type CodexRunnerConfig, type ContextResetDirectory, type ContextResetRequest, type CostFigures, CostLedger, type CostLedgerState, type DeferredDispatch, DeferredExecutor, type DeferredExecutorOptions, type EngineAdapter, type EngineAvailability, type EngineRunnerConfig, type EngineRunnerRequest, type EngineSessionOptions, GATEWAY_SECRET_ENV_KEYS, type HeadTail, type HeadTailOptions, type HistoryFn, type HostFetch, type HostToolDefinition, InputQueue, type InstructionsContext, JsonRpcError, JsonRpcStdioConnection, type LanguageModel, type LocalCommandEmit, type LocalCommandEvent, LocalCommandQueue, type LocalCommandResult, type LocalShellSource, type McpConnection, type ModelCatalog, PEER_MCP_SERVER, PEER_MESSAGE_MAX_CHARS, PEER_RECENT_DEFAULT, PEER_RECENT_MAX, PEER_TOOL_NAMES, type ParkedExecution, type PeerDirectory, type PeerMention, type PeerPeek, type PeerSendOptions, type PeerSendResult, type PeerSessionSummary, type PeerToolName, type PeerToolSpec, type PendingEntry, type PendingKind, type PendingOutcome, PendingRequestRegistry, type PendingToolCall, type PermissionDecision, type QueryFn, QuickJsExecutor, type QuickJsExecutorOptions, type RegisterOptions, type Runner, type RunnerSnapshot, SESSION_INFO_TOOL, SHELL_KEYS_MAX, SHELL_KEY_NAMES, SHELL_READ_TOOL_NAMES, SHELL_REFUSAL, SHELL_TOOL_NAMES, SHELL_TOOL_SHAPES, SHELL_WRITE_REFUSAL, SHELL_WRITE_TOOL_NAMES, SUPPORTED_ATTACHMENT_TYPES, type SendMessageOptions, type SessionContextReport, type SessionEventListener, type SessionInstructions, type SessionRateLimitReport, type SessionReport, SessionRunner, type SessionRunnerConfig, type SettledBy, type ShellAgentWrite, type ShellContextOptions, type ShellDirectory, type ShellKeyOptions, type ShellKillResult, type ShellReadOptions, type ShellReadResult, type ShellRunOptions, type ShellSummary, type ShellToolName, type ShellToolOptions, type ShellToolOutput, type ShellToolSpec, type ShellView, type ShellWait, type ShellWriteOptions, type SleepResult, TTY_REDRAW_CARRY, type Tool, type ToolCallOutput, type ToolContext, type ToolContextOptions, type ToolDefinition, type ToolExecutionCall, type ToolExecutionDispatch, type ToolExecutionResult, type ToolExecutor, type ToolSet, type ToolTrust, type WebFetchDigest, type WebFetchFn, type WebFetchOptions, type WebFetchResult, agentMayWrite, attachmentContentBlocks, attachmentKind, attachmentRef, buildSessionReport, checkClaudeAuth, clampShellTail, claudeAdapter, codexAdapter, composeInstructions, connectAppServer, connectMcpTools, contextResetDirectoryHandle, countLines, createEngineSession, createToolContext, createWebFetch, encodeShellKey, encodeShellKeys, getEngineAdapter, headTail, htmlToMarkdown, installContextResetDirectory, installPeerDirectory, installShellDirectory, installedPeerDirectory, installedShellDirectory, isHostAllowed, isLocalShellSource, isPrivateAddress, isShellToolName, isShellWriteToolName, isSlashCommand, listCodexSessions, localCommandContext, localCommandEvent, localCommandTranscript, mcpStatusInfo, modelOptionsFromSdk, normalizeMediaType, normalizeSdkMessage, peerDirectoryHandle, peerMentionsEnvelope, peerMessageEnvelope, peerSummary, peerToolSpecs, providerAdapter, recentLines, replaySlice, resolveBundledClaudeExecutable, resolveBundledCodexExecutable, resolveInstructions, runPeerTool, runShellTool, shellContextText, shellDirectoryHandle, shellInlineText, shellKillText, shellOwnershipRefusal, shellReadText, shellSummary, shellTail, shellToolNames, shellToolNeedsCard, shellToolOf, shellToolSpecs, shellWriteDeniedText, shellWriteToolOf, splitLines, toApiMessage, toExecutionResult, truncateResultBlocks, ttyRedraws, ttyText, withHostTools, withMcpTools, withPeerContext, withoutGatewaySecrets, withoutPeerContext };
1316
1426
  //# sourceMappingURL=index.d.mts.map