@workerdeck/core 3.2.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 +2 -2
- package/build/index.d.mts +144 -28
- package/build/index.mjs +1222 -422
- package/build/index.mjs.map +1 -1
- package/package.json +3 -3
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,29 +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
|
-
engine?: ProfileEngine;
|
|
105
|
-
status: SessionStatus;
|
|
106
|
-
title?: string;
|
|
107
|
-
project?: string;
|
|
108
|
-
cwd: string;
|
|
109
|
-
profile?: string;
|
|
110
|
-
lastActivityAt?: number;
|
|
111
|
-
pendingPermissionCount: number;
|
|
112
|
-
};
|
|
113
117
|
type PeerPeek = PeerSessionSummary & {
|
|
114
118
|
live: boolean;
|
|
115
119
|
checklist?: SessionInfo['checklist'];
|
|
@@ -143,6 +147,7 @@ interface PeerDirectory {
|
|
|
143
147
|
recent?: number;
|
|
144
148
|
}): Promise<PeerPeek | undefined>;
|
|
145
149
|
send(from: string, sessionId: string, text: string, options?: PeerSendOptions): Promise<PeerSendResult>;
|
|
150
|
+
notice?(from: string): Promise<string | undefined>;
|
|
146
151
|
}
|
|
147
152
|
declare const PEER_MCP_SERVER = "workerdeck";
|
|
148
153
|
declare const PEER_MESSAGE_MAX_CHARS = 16000;
|
|
@@ -180,6 +185,10 @@ declare function withPeerContext(text: string, options?: {
|
|
|
180
185
|
origin?: MessageOrigin;
|
|
181
186
|
mentions?: readonly PeerMention[];
|
|
182
187
|
}): string;
|
|
188
|
+
declare function withoutPeerContext(text: string): {
|
|
189
|
+
text: string;
|
|
190
|
+
origin?: MessageOrigin;
|
|
191
|
+
};
|
|
183
192
|
declare function peerSummary(info: SessionInfo): PeerSessionSummary;
|
|
184
193
|
declare function recentLines(events: readonly SessionEvent[], limit: number): string[];
|
|
185
194
|
declare function installPeerDirectory(directory: PeerDirectory | undefined): void;
|
|
@@ -393,10 +402,13 @@ type EngineRunnerConfig = CreateSessionRequest & {
|
|
|
393
402
|
instructions?: SessionInstructions;
|
|
394
403
|
defaultApprovalTimeoutMs?: number | null;
|
|
395
404
|
peers?: PeerDirectory;
|
|
405
|
+
contextReset?: ContextResetDirectory;
|
|
396
406
|
shells?: ShellDirectory;
|
|
397
407
|
shellAgentWrite?: ShellAgentWrite;
|
|
398
408
|
createdByOperator?: boolean;
|
|
399
409
|
fallbackTitle?: string;
|
|
410
|
+
startAsleep?: boolean;
|
|
411
|
+
effortDefaults?: Record<string, string>;
|
|
400
412
|
};
|
|
401
413
|
type ParkedExecution = {
|
|
402
414
|
executionId: string;
|
|
@@ -417,6 +429,15 @@ type SendMessageOptions = {
|
|
|
417
429
|
origin?: MessageOrigin;
|
|
418
430
|
mentions?: readonly PeerMention[];
|
|
419
431
|
};
|
|
432
|
+
type ClearContextOptions = {
|
|
433
|
+
agentReason?: string;
|
|
434
|
+
};
|
|
435
|
+
type SleepResult = {
|
|
436
|
+
ok: true;
|
|
437
|
+
} | {
|
|
438
|
+
ok: false;
|
|
439
|
+
reason: string;
|
|
440
|
+
};
|
|
420
441
|
type PermissionDecision = {
|
|
421
442
|
behavior: 'allow';
|
|
422
443
|
updatedInput?: Record<string, unknown>;
|
|
@@ -447,9 +468,12 @@ interface Runner {
|
|
|
447
468
|
resolvePermission(requestId: string, decision: PermissionDecision): boolean;
|
|
448
469
|
interrupt(): Promise<void>;
|
|
449
470
|
stopTask?(toolUseId: string): Promise<boolean>;
|
|
450
|
-
|
|
471
|
+
backgroundTask?(toolUseId?: string): Promise<boolean>;
|
|
472
|
+
clearContext?(options?: ClearContextOptions): Promise<void>;
|
|
473
|
+
sleep?(): Promise<SleepResult>;
|
|
451
474
|
setPermissionMode(mode: PermissionMode): Promise<void>;
|
|
452
475
|
setModel(model?: string): Promise<void>;
|
|
476
|
+
setEffort?(effort?: string): Promise<void>;
|
|
453
477
|
settleExecution?(executionId: string, result: ToolExecutionResult): boolean;
|
|
454
478
|
park?(): RunnerSnapshot | undefined;
|
|
455
479
|
snapshot?(): RunnerSnapshot | undefined;
|
|
@@ -550,8 +574,75 @@ declare class RunnerCore {
|
|
|
550
574
|
emitTurnResult(report: TurnReport): void;
|
|
551
575
|
}
|
|
552
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
|
|
553
642
|
//#region src/lib/session-tools.d.ts
|
|
554
643
|
type SessionToolSources = {
|
|
644
|
+
report?: SessionReportSource;
|
|
645
|
+
reset?: ContextResetDirectory;
|
|
555
646
|
peers?: PeerDirectory;
|
|
556
647
|
shells?: ShellDirectory;
|
|
557
648
|
write: boolean;
|
|
@@ -563,6 +654,12 @@ type ApprovalDeadline = {
|
|
|
563
654
|
timeoutMs: number | undefined;
|
|
564
655
|
expiresAt: number | undefined;
|
|
565
656
|
};
|
|
657
|
+
type SessionReportFacts = {
|
|
658
|
+
vendor: string | undefined;
|
|
659
|
+
context: LiveContext | undefined;
|
|
660
|
+
rateLimits: boolean;
|
|
661
|
+
contextNote?: string;
|
|
662
|
+
};
|
|
566
663
|
declare abstract class EngineRunner<C extends EngineRunnerConfig> {
|
|
567
664
|
readonly id: string;
|
|
568
665
|
readonly createdAt: number;
|
|
@@ -571,6 +668,9 @@ declare abstract class EngineRunner<C extends EngineRunnerConfig> {
|
|
|
571
668
|
protected readonly localCommands: LocalCommandQueue;
|
|
572
669
|
protected constructor(config: C, id: string, createdAt: number, options?: EngineRunnerCoreOptions);
|
|
573
670
|
abstract close(reason?: CloseReason): void;
|
|
671
|
+
abstract info(): SessionInfo;
|
|
672
|
+
protected abstract reportFacts(): Promise<SessionReportFacts>;
|
|
673
|
+
sessionReport(): Promise<SessionReport>;
|
|
574
674
|
protected coreHooks(): RunnerCoreHooks;
|
|
575
675
|
get status(): SessionStatus;
|
|
576
676
|
get lastSeq(): number;
|
|
@@ -602,6 +702,7 @@ declare abstract class EngineRunner<C extends EngineRunnerConfig> {
|
|
|
602
702
|
pendingPermissionCount: number;
|
|
603
703
|
meta: Record<string, unknown> | undefined;
|
|
604
704
|
scope: Record<string, string> | undefined;
|
|
705
|
+
agentContextReset: true | undefined;
|
|
605
706
|
title: string | undefined;
|
|
606
707
|
costUsd: number | undefined;
|
|
607
708
|
usageByModel: import("@workerdeck/protocol").ByModel | undefined;
|
|
@@ -637,15 +738,20 @@ declare class SessionRunner extends EngineRunner<SessionRunnerConfig> implements
|
|
|
637
738
|
info(): SessionInfo;
|
|
638
739
|
start(): Promise<void>;
|
|
639
740
|
sendMessage(text: string, attachments?: readonly AttachmentInput[], options?: SendMessageOptions): void;
|
|
741
|
+
sleep(): Promise<SleepResult>;
|
|
742
|
+
get engineAsleep(): boolean;
|
|
640
743
|
mcpServers(): Promise<McpServerStatusInfo[] | undefined>;
|
|
641
744
|
reconnectMcpServer(name: string): Promise<void>;
|
|
642
745
|
setMcpServerEnabled(name: string, enabled: boolean): Promise<void>;
|
|
643
746
|
interrupt(): Promise<void>;
|
|
644
747
|
stopTask(toolUseId: string): Promise<boolean>;
|
|
645
|
-
|
|
748
|
+
backgroundTask(toolUseId?: string): Promise<boolean>;
|
|
749
|
+
clearContext(options?: ClearContextOptions): Promise<void>;
|
|
646
750
|
setPermissionMode(mode: PermissionMode): Promise<void>;
|
|
647
751
|
setModel(model?: string): Promise<void>;
|
|
752
|
+
setEffort(effort?: string): Promise<void>;
|
|
648
753
|
close(reason?: CloseReason): void;
|
|
754
|
+
protected reportFacts(): Promise<SessionReportFacts>;
|
|
649
755
|
refreshUsage(minIntervalMs?: number): Promise<void>;
|
|
650
756
|
}
|
|
651
757
|
//#endregion
|
|
@@ -687,6 +793,7 @@ type AiSdkRunnerConfig = EngineRunnerConfig & {
|
|
|
687
793
|
input: unknown;
|
|
688
794
|
}) => boolean;
|
|
689
795
|
resolveModel?: (modelId: string | undefined) => LanguageModel$1;
|
|
796
|
+
contextWindow?: ProviderContextWindow;
|
|
690
797
|
reportMcpServers?: () => Promise<McpServerStatusInfo[] | undefined>;
|
|
691
798
|
onClose?: () => void | Promise<void>;
|
|
692
799
|
restore?: RunnerSnapshot;
|
|
@@ -703,6 +810,7 @@ type AiSdkSessionState = {
|
|
|
703
810
|
pendingToolCalls: PendingToolCall[];
|
|
704
811
|
dispatched: string[];
|
|
705
812
|
numTurns: number;
|
|
813
|
+
contextTokens?: number;
|
|
706
814
|
turnAccum?: TurnUsage;
|
|
707
815
|
permissionMode: PermissionMode;
|
|
708
816
|
model?: string;
|
|
@@ -738,12 +846,13 @@ declare class AiSdkRunner extends EngineRunner<AiSdkRunnerConfig> implements Run
|
|
|
738
846
|
description?: string;
|
|
739
847
|
}): void;
|
|
740
848
|
generateDigest(prompt: string): Promise<string>;
|
|
741
|
-
clearContext(): Promise<void>;
|
|
849
|
+
clearContext(options?: ClearContextOptions): Promise<void>;
|
|
742
850
|
interrupt(): Promise<void>;
|
|
743
851
|
setPermissionMode(mode: PermissionMode): Promise<void>;
|
|
744
852
|
setModel(model?: string): Promise<void>;
|
|
745
853
|
close(reason?: CloseReason): void;
|
|
746
854
|
settleExecution(executionId: string, result: ToolExecutionResult): boolean;
|
|
855
|
+
protected reportFacts(): Promise<SessionReportFacts>;
|
|
747
856
|
mcpServers(): Promise<McpServerStatusInfo[] | undefined>;
|
|
748
857
|
}
|
|
749
858
|
//#endregion
|
|
@@ -924,9 +1033,11 @@ type ToolContextOptions = {
|
|
|
924
1033
|
onDispatch?: (executionId: string, toolName: string) => void;
|
|
925
1034
|
onSettle?: (executionId: string, result: ToolExecutionResult) => void;
|
|
926
1035
|
peers?: PeerDirectory;
|
|
1036
|
+
contextReset?: ContextResetDirectory;
|
|
927
1037
|
shells?: ShellDirectory;
|
|
928
1038
|
shellWrite?: boolean;
|
|
929
1039
|
selfId?: () => string;
|
|
1040
|
+
report?: SessionReportSource;
|
|
930
1041
|
};
|
|
931
1042
|
type ToolContext = {
|
|
932
1043
|
vfs: SandboxVfs;
|
|
@@ -992,6 +1103,7 @@ declare function withoutGatewaySecrets<T extends string | undefined>(env: Record
|
|
|
992
1103
|
//#region src/lib/input-queue.d.ts
|
|
993
1104
|
declare class InputQueue implements AsyncIterable<SDKUserMessage> {
|
|
994
1105
|
#private;
|
|
1106
|
+
get pending(): number;
|
|
995
1107
|
push(message: SDKUserMessage): void;
|
|
996
1108
|
end(): void;
|
|
997
1109
|
[Symbol.asyncIterator](): AsyncIterator<SDKUserMessage>;
|
|
@@ -1253,14 +1365,18 @@ declare class CodexRunner extends EngineRunner<CodexRunnerConfig> implements Run
|
|
|
1253
1365
|
protected coreHooks(): RunnerCoreHooks;
|
|
1254
1366
|
get sdkSessionId(): string | undefined;
|
|
1255
1367
|
info(): SessionInfo;
|
|
1368
|
+
get engineAsleep(): boolean;
|
|
1369
|
+
sleep(): Promise<SleepResult>;
|
|
1256
1370
|
start(): Promise<void>;
|
|
1257
1371
|
sendMessage(text: string, attachments?: readonly AttachmentInput[], options?: SendMessageOptions): void;
|
|
1258
1372
|
interrupt(): Promise<void>;
|
|
1259
|
-
clearContext(): Promise<void>;
|
|
1373
|
+
clearContext(options?: ClearContextOptions): Promise<void>;
|
|
1260
1374
|
setPermissionMode(mode: PermissionMode): Promise<void>;
|
|
1261
1375
|
setModel(model?: string): Promise<void>;
|
|
1376
|
+
setEffort(effort?: string): Promise<void>;
|
|
1262
1377
|
close(reason?: CloseReason): void;
|
|
1263
1378
|
mcpServers(): Promise<McpServerStatusInfo[] | undefined>;
|
|
1379
|
+
protected reportFacts(): Promise<SessionReportFacts>;
|
|
1264
1380
|
}
|
|
1265
1381
|
//#endregion
|
|
1266
1382
|
//#region src/engines/codex/adapter.d.ts
|
|
@@ -1306,5 +1422,5 @@ declare class JsonRpcStdioConnection {
|
|
|
1306
1422
|
//#region src/engines/provider/adapter.d.ts
|
|
1307
1423
|
declare const providerAdapter: EngineAdapter;
|
|
1308
1424
|
//#endregion
|
|
1309
|
-
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 };
|
|
1310
1426
|
//# sourceMappingURL=index.d.mts.map
|