Open History to see the last commit
1export { defineHarness, isHarnessDefinition } from './define'
2export type {
3 AnyHarness,
4 HarnessAgentsOf,
5 HarnessConfig,
6 HarnessDefinition,
7 HarnessDurability,
8 HarnessRouterContext,
9 HarnessRouterPick,
10 HarnessRouting,
11 HarnessSubagents,
12 HarnessToolInput,
13 HarnessToolsOf,
14 SessionMetadataOf,
15 SessionWithMetadata,
16} from './define'
17export { SessionMetadataError } from './session-entry'
18export type {
19 MetadataOf,
20 SessionEntryChange,
21 SessionEntryUpdate,
22} from './session-entry'
23
24export { durableTool } from './durable-tool'
25export type {
26 DurableToolContext,
27 DurableToolOptions,
28 StepRun,
29 ToolStep,
30} from './durable-tool'
31
32export { LogVersionError, logIdOf, logMessageStore } from './log'
33export { LogOwnedElsewhereError } from './ownership'
34export type {
35 HarnessRecord,
36 LogRecordRetention,
37 ProjectOptions,
38 ProjectRecord,
39 ReduceOptions,
40 SnapshotTiming,
41} from './log'
42export type { OwnershipOptions } from './ownership'
43
44export { definePlugin } from './plugins'
45export type {
46 HarnessPlugin,
47 HostPluginContext,
48 HostPluginContributions,
49 HostPluginDefinition,
50 PluginContributions,
51 PluginDefinition,
52 PluginResources,
53 PluginLifetime,
54 PluginPrompt,
55 PluginCommands,
56 PluginSetupContext,
57 PluginState,
58 SessionPluginDefinition,
59} from './plugins'
60
61export { createExtensionPoint, createPluginEvent } from './extensions'
62// Portable (no Node imports), so plugins such as code mode can read the
63// permission rules and resources from the root.
64export {
65 PermissionCallCapability,
66 PermissionDecisionCapability,
67 PermissionResources,
68 PermissionRules,
69 decidePermission,
70} from './first-party/permissions'
71export type {
72 CallResources,
73 PermissionCallDecision,
74 PermissionDecision,
75 PermissionMode,
76 PermissionRule,
77 ToolResources,
78} from './first-party/permissions'
79export type { ExtensionItem, ExtensionPoint, PluginEvent } from './extensions'
80
81export { checkConfigValue, configOption } from './config'
82export type { ConfigOption } from './config'
83
84export { defineCommand } from './commands'
85export type {
86 AnswerOf,
87 AnyCommand,
88 CommandContext,
89 CommandDefinition,
90 PluginSessionApi,
91 Question,
92} from './commands'
93
94export { AuthRequiredError, scrubSecrets } from './auth'
95export type { CredentialsAccess } from './auth'
96
97export type {
98 AgentActions,
99 AgentCall,
100 AgentGroup,
101 AgentGroupOptions,
102 AgentInputOf,
103 AgentRegistryView,
104 AgentResultOf,
105 AgentSettled,
106 AnyAgent,
107 HarnessAgentContext,
108} from './agents'
109export type { HandoffOptions } from './handoff'
110export type { HumanTarget } from './log-records'
111
112export { createHarnessHost } from './host'
113export { createHarnessWorker } from './harness-worker'
114export type { HarnessWorkerPoolOptions } from './harness-worker'
115export type {
116 ForkSessionOptions,
117 HarnessHost,
118 HarnessHostOptions,
119 HarnessPersistence,
120 HostEvent,
121 HostLifecycleOptions,
122 HostRevokedEvent,
123 HostSessionDeletedEvent,
124 HostSessionEvent,
125 HostSessions,
126 HostStatusEvent,
127 HostTransferredEvent,
128 OpenSessionOptions,
129 PresenceEndReason,
130 PresenceEvent,
131 ResumedThread,
132 ResumePendingOptions,
133 RetentionLimits,
134 SubmitInput,
135 SubmitOptions,
136} from './host'
137export { AccessDeniedError, membersOnly } from './access'
138export type {
139 AcceptInput,
140 AcceptedInput,
141 AccessAction,
142 AccessMembers,
143 AccessPolicy,
144 AccessRun,
145 AccessSession,
146 AccessWait,
147 Authorize,
148 AuthorizeInput,
149 HarnessAccess,
150 MembersOnlyOptions,
151} from './access'
152export type {
153 SessionIndexEntry,
154 SessionIndexListOptions,
155 SessionIndexPage,
156 SessionIndexStore,
157 SessionMember,
158} from '@tanstack/ai-persistence'
159
160export type {
161 HarnessSession,
162 AgentHandle,
163 AgentHandles,
164 AgentModelErrorContext,
165 AgentRunInfo,
166 AgentRunOptions,
167 AgentStartOptions,
168 DynamicAgentHandle,
169 JobInfo,
170 ScheduleOptions,
171 SessionDescription,
172 SessionInspection,
173 SessionSnapshot,
174} from './session/index'
175export type { ObservedSession } from './session/observed-session'
176export type { SessionUsage, UsageCounts } from './usage'
177export type { OnHarnessEvent } from './feed'
178export type { ObservabilityOptions, OperationReport } from './observability'
179
180export type {
181 FinishContext,
182 HarnessTurnOptions,
183 JoinCandidate,
184 JoinContext,
185 ModelErrorAnswer,
186 ModelErrorContext,
187 RecoverContext,
188 RecoverDecision,
189 RecoverHook,
190 TurnAdditions,
191} from './turn'
192export { isTransientModelError, retryTransientErrors } from './turn'
193
194export type { HarnessErrorCode } from './protocol'
195
196export { HARNESS_EVENTS, InputRejectedError } from './types'
197/**
198 * The `reason` of an abort (`onAbort`'s `info.reason`): a recoverable close
199 * (the next host runs the turn again), a user cancel, and a used-up budget.
200 */
201export { BUDGET_REASON, SHUTDOWN_REASON } from './session/helpers'
202export { RUN_CANCEL_REASON } from '@tanstack/ai'
203export type {
204 AgentRun,
205 AgentSendOptions,
206 AuthRequest,
207 BusyPolicy,
208 ChatTurnResult,
209 Cursor,
210 EventGap,
211 ForkPoint,
212 HandoffEnvelope,
213 HarnessEventValues,
214 HarnessInput,
215 HarnessRunContext,
216 InputSettlement,
217 LiveEvent,
218 MediaKind,
219 MediaRecord,
220 OnEvent,
221 Operation,
222 OperationKind,
223 OperationStatus,
224 PendingQuestion,
225 HarnessUser,
226 Receipt,
227 RunContext,
228 RunNode,
229 SendOptions,
230 SessionEvent,
231 StreamChunkOf,
232 StreamChunkType,
233 ThreadSettings,
234 ThreadSettingsChange,
235 TransferOptions,
236 TransferResult,
237 TurnInfo,
238 TurnOverrides,
239 UsageUpdate,
240 UserInput,
241 WaitingInput,
242} from './types'
243
244export {
245 isApproval,
246 waitKind,
247 waitFromInterrupt,
248 waitFromQuestion,
249} from './waits'
250export type { PendingWait, Wait, WaitKind, WaitOutcome } from './waits'
251
252export { harnessText } from './harness-text'
253export type { HarnessTextOptions, RemoteHarness } from './harness-text'
254
255export { oauthConnector } from './connectors'
256export type { OAuthConnectorOptions } from './connectors'
257
258export { harnessAgent } from './harness-agent'
259export { DEFAULT_SUBAGENT_LIMITS } from './session/index'