@standardagents/builder 0.11.0-next.14455ae → 0.11.0-next.22e39d0

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/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export { AgentPluginOptions, agentbuilder } from './plugin.js';
2
2
  import { DurableObjectStorage } from '@cloudflare/workers-types';
3
3
  import { ZodObject, ZodRawShape } from 'zod';
4
- import { ToolResult as ToolResult$1, HookSignatures, AgentDefinition as AgentDefinition$1, ControllerContext, Controller, ModelDefinition as ModelDefinition$1, ToolArgs, PromptTextPart, SubpromptConfig as SubpromptConfig$2, ReasoningConfig, SideConfig as SideConfig$1, LLMProviderInterface, ContentPart, TextPart, ImagePart, FilePart } from '@standardagents/spec';
5
- export { AgentType, HookSignatures, ImageContent, ModelCapabilities, ModelProvider, PromptInput, PromptTextPart, ProviderAssistantMessage, ProviderError, ProviderErrorCode, ProviderFactory, ProviderFactoryConfig, ProviderFinishReason, ProviderGeneratedImage, ProviderMessage, ProviderMessageContent, ModelCapabilities as ProviderModelCapabilities, ProviderReasoningDetail, ProviderRequest, ProviderResponse, ProviderStreamChunk, ProviderSystemMessage, ProviderTool, ProviderToolCallPart, ProviderToolMessage, ProviderToolResultContent, ProviderUsage, ProviderUserMessage, ReasoningConfig, StructuredPrompt, TextContent, Tool, ToolArgs, ToolArgsNode, ToolArgsRawShape, ToolContent, defineAgent, defineHook, defineModel, definePrompt, defineTool, mapReasoningLevel } from '@standardagents/spec';
4
+ import { ToolResult as ToolResult$1, HookSignatures, ControllerContext, Controller, ModelDefinition as ModelDefinition$1, ToolArgs, PromptTextPart, SubpromptConfig as SubpromptConfig$2, ReasoningConfig, SideConfig as SideConfig$1 } from '@standardagents/spec';
5
+ export { AgentType, HookSignatures, ImageContent, ModelCapabilities, ModelProvider, PromptInput, PromptTextPart, ReasoningConfig, StructuredPrompt, TextContent, Tool, ToolArgs, ToolArgsNode, ToolArgsRawShape, ToolContent, defineAgent, defineHook, defineModel, definePrompt, defineThreadEndpoint, defineTool } from '@standardagents/spec';
6
6
  import { DurableObject } from 'cloudflare:workers';
7
7
  import 'vite';
8
8
 
@@ -213,8 +213,6 @@ interface ThreadMetadata {
213
213
  id: string;
214
214
  agent_id: string;
215
215
  user_id: string | null;
216
- tenvs: Record<string, unknown> | null;
217
- properties: Record<string, unknown> | null;
218
216
  created_at: number;
219
217
  }
220
218
  /**
@@ -228,26 +226,7 @@ type HookRegistry = {
228
226
  * Tools can have args (with validation schema) or no args.
229
227
  * Uses local Zod types for compatibility with z.toJSONSchema().
230
228
  */
231
- interface NativeToolModule {
232
- /** Description of what the tool does (shown to the LLM). */
233
- description: string;
234
- /** Zod schema for validating tool arguments, or null for no args. */
235
- args: ZodObject<ZodRawShape> | null;
236
- /** The tool implementation function. */
237
- execute: ((state: any, args: Record<string, unknown>) => Promise<ToolResult$1>) | ((state: any) => Promise<ToolResult$1>);
238
- /** Zod schema for thread environment variables, or null if none. */
239
- tenvs?: ZodObject<ZodRawShape> | null;
240
- /**
241
- * Where this tool is executed:
242
- * - 'local': Execute locally by the execution engine (default)
243
- * - 'provider': Executed by the LLM provider, results come in response
244
- */
245
- executionMode?: 'local' | 'provider';
246
- /**
247
- * Which provider executes this tool (when executionMode='provider').
248
- */
249
- executionProvider?: string;
250
- }
229
+ type NativeToolModule = [description: string, argsSchema: ZodObject<ZodRawShape>, toolFn: (state: any, args: Record<string, unknown>) => Promise<ToolResult$1>] | [description: string, argsSchema: null, toolFn: (state: any) => Promise<ToolResult$1>];
251
230
  /**
252
231
  * Thread instance (forward reference to avoid circular dependency)
253
232
  */
@@ -274,11 +253,7 @@ interface ThreadInstance {
274
253
  getPromptNames(): string[];
275
254
  getAgentNames(): string[];
276
255
  writeFile(path: string, data: ArrayBuffer | string, mimeType: string, options?: Record<string, unknown>): Promise<any>;
277
- readFile(path: string): Promise<{
278
- success: boolean;
279
- data?: string;
280
- error?: string;
281
- }>;
256
+ readFile(path: string): Promise<ArrayBuffer | null>;
282
257
  statFile(path: string): Promise<any>;
283
258
  readdirFile(path: string): Promise<any[]>;
284
259
  unlinkFile(path: string): Promise<void>;
@@ -341,7 +316,6 @@ type FlowCallWithRetries = FlowCall & {
341
316
  interface SubpromptConfig$1 {
342
317
  name: string;
343
318
  initUserMessageProperty?: string;
344
- initAttachmentsProperty?: string;
345
319
  includeTextResponse?: boolean;
346
320
  includeToolCalls?: boolean;
347
321
  includeErrors?: boolean;
@@ -432,7 +406,6 @@ interface FlowState {
432
406
  depth: number;
433
407
  pendingMessageId?: string;
434
408
  allowedTools?: ToolDefinition[];
435
- pendingMetadataPromises?: Promise<void>[];
436
409
  }
437
410
  /**
438
411
  * Text content part for multimodal messages
@@ -469,10 +442,6 @@ interface RequestContext {
469
442
  tool_calls?: ToolCall[];
470
443
  tool_call_id?: string;
471
444
  name?: string;
472
- reasoning_content?: string;
473
- reasoning_details?: any[];
474
- attachments?: any[];
475
- toolName?: string;
476
445
  }>;
477
446
  model: string;
478
447
  tools?: ToolDefinition[];
@@ -504,17 +473,6 @@ interface ToolDefinition {
504
473
  description: string;
505
474
  parameters?: Record<string, any>;
506
475
  };
507
- /**
508
- * Where this tool is executed:
509
- * - 'local': Execute locally by the execution engine (default)
510
- * - 'provider': Executed by the LLM provider, results come in response
511
- */
512
- executionMode?: 'local' | 'provider';
513
- /**
514
- * Which provider executes this tool (when executionMode='provider')
515
- * e.g., 'openai', 'anthropic'
516
- */
517
- executionProvider?: string;
518
476
  }
519
477
  /**
520
478
  * Image returned by an LLM response (e.g., from image generation models)
@@ -522,12 +480,6 @@ interface ToolDefinition {
522
480
  */
523
481
  interface LLMResponseImage {
524
482
  type: "image_url";
525
- /** Unique ID for this generated image (used to link to tool call) */
526
- id?: string;
527
- /** Name of the tool that generated this image (e.g., 'image_generation') */
528
- toolName?: string;
529
- /** The revised/actual prompt used to generate the image (from OpenAI's image_generation) */
530
- revisedPrompt?: string;
531
483
  image_url: {
532
484
  url: string;
533
485
  };
@@ -557,12 +509,6 @@ interface LLMResponse {
557
509
  cost?: number;
558
510
  provider?: string;
559
511
  };
560
- /** @internal Provider instance reference for async metadata fetching */
561
- _provider?: unknown;
562
- /** @internal Provider response ID for async metadata fetching */
563
- _providerResponseId?: string;
564
- /** @internal Aggregate response for logging */
565
- _aggregate_response?: unknown;
566
512
  }
567
513
  /**
568
514
  * Attachment returned by a tool (e.g., generated images)
@@ -695,7 +641,6 @@ interface LogData {
695
641
  tools_available?: number;
696
642
  prompt_name?: string;
697
643
  tools_called?: string;
698
- actual_provider?: string | null;
699
644
  parent_log_id?: string | null;
700
645
  tools_schema?: string | null;
701
646
  message_history?: string | null;
@@ -840,6 +785,20 @@ interface LogEntry {
840
785
  created_at: number;
841
786
  request_body: string | null;
842
787
  }
788
+ /**
789
+ * Agent definition returned from loadAgent()
790
+ */
791
+ interface AgentDefinition$1 {
792
+ name: string;
793
+ title?: string;
794
+ type?: string;
795
+ description?: string;
796
+ icon?: string;
797
+ defaultPrompt?: string;
798
+ defaultModel?: string;
799
+ tools?: string[];
800
+ [key: string]: unknown;
801
+ }
843
802
  /**
844
803
  * Response from getThreadMeta()
845
804
  */
@@ -852,50 +811,6 @@ interface ThreadMetaResponse {
852
811
  lastActivity: number | null;
853
812
  };
854
813
  }
855
- /**
856
- * Log details returned by getLogDetails
857
- */
858
- interface LogDetails {
859
- id: string;
860
- message_id: string;
861
- provider: string;
862
- actual_provider: string | null;
863
- model: string;
864
- model_name: string | null;
865
- endpoint: string | null;
866
- request_body: string | null;
867
- request_headers: string | null;
868
- response_body: string | null;
869
- response_headers: string | null;
870
- status_code: number | null;
871
- reasoning_content: string | null;
872
- input_tokens: number | null;
873
- cached_tokens: number | null;
874
- output_tokens: number | null;
875
- reasoning_tokens: number | null;
876
- total_tokens: number | null;
877
- latency_ms: number | null;
878
- time_to_first_token_ms: number | null;
879
- finish_reason: string | null;
880
- error: string | null;
881
- error_type: string | null;
882
- cost_input: number | null;
883
- cost_output: number | null;
884
- cost_total: number | null;
885
- message_history_length: number | null;
886
- tools_available: number | null;
887
- prompt_name: string | null;
888
- tools_called: string | null;
889
- provider_tools: string | null;
890
- parent_log_id: string | null;
891
- tools_schema: string | null;
892
- system_prompt: string | null;
893
- errors: string | null;
894
- retry_of_log_id: string | null;
895
- tool_results: string | null;
896
- is_complete: number;
897
- created_at: number;
898
- }
899
814
  /**
900
815
  * RPC methods exposed by DurableThread for external callers.
901
816
  */
@@ -919,14 +834,9 @@ interface DurableThreadRpc {
919
834
  total: number;
920
835
  hasMore: boolean;
921
836
  }>;
922
- getLogDetails(logId: string): Promise<LogDetails | null>;
837
+ getLogDetails(logId: string): Promise<unknown>;
923
838
  getThreadMeta(threadId: string): Promise<ThreadMetaResponse | null>;
924
839
  deleteThread(): Promise<void>;
925
- readFile(path: string): Promise<{
926
- success: boolean;
927
- data?: string;
928
- error?: string;
929
- }>;
930
840
  }
931
841
  /**
932
842
  * Thread registry entry from DurableAgentBuilder.
@@ -946,16 +856,11 @@ interface DurableAgentBuilderRpc {
946
856
  agent_name: string;
947
857
  user_id?: string;
948
858
  tags?: string[];
949
- tenvs?: Record<string, unknown>;
950
- properties?: Record<string, unknown>;
951
859
  }): Promise<ThreadRegistryEntry$1>;
952
860
  getThread(threadId: string): Promise<ThreadRegistryEntry$1 | null>;
953
861
  listThreads(params?: {
954
862
  agent_name?: string;
955
863
  user_id?: string;
956
- search?: string;
957
- startDate?: number;
958
- endDate?: number;
959
864
  limit?: number;
960
865
  offset?: number;
961
866
  }): Promise<{
@@ -1005,49 +910,6 @@ interface ThreadEndpointContext {
1005
910
  metadata: ThreadMetadata;
1006
911
  };
1007
912
  }
1008
- /**
1009
- * Handler function for builder thread endpoints.
1010
- *
1011
- * Unlike the spec's ThreadEndpointHandler which receives ThreadState,
1012
- * the builder's handler receives direct access to the Durable Object
1013
- * instance and thread metadata. This allows for lower-level operations
1014
- * like calling RPC methods directly on the instance.
1015
- */
1016
- type BuilderThreadEndpointHandler = (req: Request, context: {
1017
- instance: ThreadInstance;
1018
- metadata: ThreadMetadata;
1019
- }) => Response | Promise<Response>;
1020
- /**
1021
- * Define a thread-specific endpoint with access to the Durable Object instance.
1022
- *
1023
- * This is the builder's version of defineThreadEndpoint. It provides direct
1024
- * access to the thread's Durable Object instance and metadata, allowing
1025
- * for lower-level operations like calling RPC methods directly.
1026
- *
1027
- * @param handler - Function that receives the request and thread context
1028
- * @returns A Controller that can be used with the router
1029
- *
1030
- * @example
1031
- * ```typescript
1032
- * import { defineThreadEndpoint } from '@standardagents/builder';
1033
- *
1034
- * export default defineThreadEndpoint(async (req, { instance, metadata }) => {
1035
- * // Access thread metadata
1036
- * console.log('Thread ID:', metadata.id);
1037
- * console.log('Agent ID:', metadata.agent_id);
1038
- *
1039
- * // Call RPC methods on the Durable Object instance
1040
- * const messagesResult = await instance.getMessages();
1041
- * const logs = await instance.getLogs();
1042
- *
1043
- * return Response.json({
1044
- * messageCount: messagesResult.messages.length,
1045
- * logCount: logs.length,
1046
- * });
1047
- * });
1048
- * ```
1049
- */
1050
- declare function defineThreadEndpoint(handler: BuilderThreadEndpointHandler): BuilderController;
1051
913
 
1052
914
  /**
1053
915
  * Define a controller with typed Cloudflare environment bindings.
@@ -1294,15 +1156,6 @@ declare class DurableThread<Env extends ThreadEnv = ThreadEnv> extends DurableOb
1294
1156
  * Simple "off" switch - stops turns, only cleared by user messages
1295
1157
  */
1296
1158
  stop(): Promise<Response>;
1297
- /**
1298
- * Continue execution from where it stopped (RPC method)
1299
- * Useful for debugging - continues the FlowEngine with additional steps
1300
- * without adding a new message.
1301
- *
1302
- * @param threadId The thread ID
1303
- * @param side Which side to start from ('a' or 'b'), defaults to 'a'
1304
- */
1305
- continueExecution(threadId: string, side?: 'a' | 'b'): Promise<Response>;
1306
1159
  /**
1307
1160
  * Get message history (RPC method)
1308
1161
  *
@@ -1415,12 +1268,10 @@ declare class DurableThread<Env extends ThreadEnv = ThreadEnv> extends DurableOb
1415
1268
  id: string;
1416
1269
  message_id: string;
1417
1270
  provider: string;
1418
- actual_provider: string | null;
1419
1271
  model: string;
1420
1272
  model_name: string | null;
1421
1273
  prompt_name: string | null;
1422
1274
  tools_called: string | null;
1423
- provider_tools: string | null;
1424
1275
  parent_log_id: string | null;
1425
1276
  retry_of_log_id: string | null;
1426
1277
  error: string | null;
@@ -1440,7 +1291,6 @@ declare class DurableThread<Env extends ThreadEnv = ThreadEnv> extends DurableOb
1440
1291
  id: string;
1441
1292
  message_id: string;
1442
1293
  provider: string;
1443
- actual_provider: string | null;
1444
1294
  model: string;
1445
1295
  model_name: string | null;
1446
1296
  endpoint: string | null;
@@ -1467,7 +1317,6 @@ declare class DurableThread<Env extends ThreadEnv = ThreadEnv> extends DurableOb
1467
1317
  tools_available: number | null;
1468
1318
  prompt_name: string | null;
1469
1319
  tools_called: string | null;
1470
- provider_tools: string | null;
1471
1320
  parent_log_id: string | null;
1472
1321
  tools_schema: string | null;
1473
1322
  message_history: string | null;
@@ -1576,9 +1425,8 @@ declare class DurableThread<Env extends ThreadEnv = ThreadEnv> extends DurableOb
1576
1425
  /**
1577
1426
  * WebSocket Hibernation API handler for connection close
1578
1427
  * Called when a WebSocket connection is closed
1579
- * Note: Do NOT call ws.close() here - the connection is already closed
1580
1428
  */
1581
- webSocketClose(ws: WebSocket, _code: number, _reason: string, _wasClean: boolean): Promise<void>;
1429
+ webSocketClose(ws: WebSocket, code: number, reason: string, wasClean: boolean): Promise<void>;
1582
1430
  /**
1583
1431
  * WebSocket Hibernation API handler for errors
1584
1432
  * Called when a WebSocket encounters an error
@@ -1607,11 +1455,6 @@ declare class DurableThread<Env extends ThreadEnv = ThreadEnv> extends DurableOb
1607
1455
  * This is the actual message processing logic, separate from the public sendMessage() RPC method
1608
1456
  */
1609
1457
  private processMessage;
1610
- /**
1611
- * Internal method: Continue execution without adding a message (called by alarm queue)
1612
- * This allows resuming FlowEngine execution from where it stopped.
1613
- */
1614
- private doContinueExecution;
1615
1458
  /**
1616
1459
  * TEST METHOD: Queue a test operation
1617
1460
  * Used for testing alarm queue ordering and timing
@@ -1923,7 +1766,6 @@ interface AgentBuilderEnv {
1923
1766
  GITHUB_TOKEN?: string;
1924
1767
  GITHUB_REPO?: string;
1925
1768
  GITHUB_BRANCH?: string;
1926
- ENCRYPTION_KEY?: string;
1927
1769
  }
1928
1770
  /**
1929
1771
  * Thread metadata stored in the registry.
@@ -1933,8 +1775,6 @@ interface ThreadRegistryEntry {
1933
1775
  agent_name: string;
1934
1776
  user_id: string | null;
1935
1777
  tags: string[] | null;
1936
- tenvs: Record<string, unknown> | null;
1937
- properties: Record<string, unknown> | null;
1938
1778
  created_at: number;
1939
1779
  }
1940
1780
  /**
@@ -1959,7 +1799,7 @@ interface User {
1959
1799
  /**
1960
1800
  * Provider credentials.
1961
1801
  */
1962
- interface Provider$1 {
1802
+ interface Provider {
1963
1803
  name: string;
1964
1804
  sdk: string;
1965
1805
  api_key: string;
@@ -2003,8 +1843,6 @@ declare class DurableAgentBuilder<Env extends AgentBuilderEnv = AgentBuilderEnv>
2003
1843
  agent_name: string;
2004
1844
  user_id?: string;
2005
1845
  tags?: string[];
2006
- tenvs?: Record<string, unknown>;
2007
- properties?: Record<string, unknown>;
2008
1846
  }): Promise<ThreadRegistryEntry>;
2009
1847
  /**
2010
1848
  * Get a thread by ID.
@@ -2012,15 +1850,10 @@ declare class DurableAgentBuilder<Env extends AgentBuilderEnv = AgentBuilderEnv>
2012
1850
  getThread(id: string): Promise<ThreadRegistryEntry | null>;
2013
1851
  /**
2014
1852
  * List threads with optional filtering.
2015
- * Note: tenvs are not decrypted in list operations for performance.
2016
- * Use getThread() to retrieve a thread with decrypted tenvs.
2017
1853
  */
2018
1854
  listThreads(params?: {
2019
1855
  agent_name?: string;
2020
1856
  user_id?: string;
2021
- search?: string;
2022
- startDate?: number;
2023
- endDate?: number;
2024
1857
  limit?: number;
2025
1858
  offset?: number;
2026
1859
  }): Promise<{
@@ -2066,15 +1899,15 @@ declare class DurableAgentBuilder<Env extends AgentBuilderEnv = AgentBuilderEnv>
2066
1899
  /**
2067
1900
  * Get a provider's credentials.
2068
1901
  */
2069
- getProvider(name: string): Promise<Provider$1 | null>;
1902
+ getProvider(name: string): Promise<Provider | null>;
2070
1903
  /**
2071
1904
  * Set a provider's credentials.
2072
1905
  */
2073
- setProvider(provider: Provider$1): Promise<void>;
1906
+ setProvider(provider: Provider): Promise<void>;
2074
1907
  /**
2075
1908
  * List all providers.
2076
1909
  */
2077
- listProviders(): Promise<Provider$1[]>;
1910
+ listProviders(): Promise<Provider[]>;
2078
1911
  /**
2079
1912
  * Delete a provider.
2080
1913
  */
@@ -2448,34 +2281,16 @@ interface AgentDefinition<N extends string = string> {
2448
2281
  exposeAsTool?: boolean;
2449
2282
  /** Description shown when agent is used as a tool. */
2450
2283
  toolDescription?: string;
2451
- /**
2452
- * Thread environment variables for this agent.
2453
- * Merged into thread tenvs at creation time.
2454
- * Later values (thread) override earlier ones (prompt -> agent).
2455
- */
2456
- tenvs?: Record<string, unknown>;
2457
2284
  /** Brief description of what this agent does. */
2458
2285
  description?: string;
2459
2286
  /** Icon URL or absolute path for the agent. */
2460
2287
  icon?: string;
2461
2288
  }
2462
2289
 
2463
- /**
2464
- * Options for generating a model file.
2465
- */
2466
- interface GenerateModelFileOptions {
2467
- /** The provider export name (e.g., 'openai', 'openrouter') */
2468
- providerName: string;
2469
- /** The provider package (e.g., '@standardagents/openai') */
2470
- providerPackage: string;
2471
- }
2472
2290
  /**
2473
2291
  * Generate a TypeScript file for a model definition.
2474
- *
2475
- * @param data - The model definition data
2476
- * @param options - Provider import options (required since providers are functions)
2477
2292
  */
2478
- declare function generateModelFile(data: ModelDefinition, options: GenerateModelFileOptions): string;
2293
+ declare function generateModelFile(data: ModelDefinition): string;
2479
2294
 
2480
2295
  /**
2481
2296
  * Converts JSON Schema to Zod code string.
@@ -2514,8 +2329,6 @@ interface ToolConfigInput {
2514
2329
  include_tool_calls?: boolean;
2515
2330
  include_errors?: boolean;
2516
2331
  init_user_message_property?: string | null;
2517
- init_attachments_property?: string | null;
2518
- tenvs?: Record<string, unknown>;
2519
2332
  }
2520
2333
  /**
2521
2334
  * Prompt part as it comes from the UI/API.
@@ -3634,15 +3447,4 @@ declare class GitHubApiError extends Error {
3634
3447
  constructor(message: string, status: number, details?: unknown);
3635
3448
  }
3636
3449
 
3637
- /** @public Alias for LLMProviderInterface */
3638
- type Provider = LLMProviderInterface;
3639
- /** @public Alias for ContentPart */
3640
- type ProviderContentPart = ContentPart;
3641
- /** @public Alias for TextPart */
3642
- type ProviderTextPart = TextPart;
3643
- /** @public Alias for ImagePart */
3644
- type ProviderImagePart = ImagePart;
3645
- /** @public Alias for FilePart */
3646
- type ProviderFilePart = FilePart;
3647
-
3648
- export { type Agent, type AgentBuilderEnv, type AgentDefinition, type AttachmentRef, type AuthContext, type AuthUser, type BroadcastOptions, type BuilderThreadEndpointHandler, type BuilderController as Controller, type BuilderControllerContext as ControllerContext, DurableAgentBuilder, DurableThread, type Env, type FileRecord, type FileStats, type FlowResult, type FlowState, FlowStateSdk, type FlowStateWithSdk, GitHubApiError, GitHubClient, type GitHubCommitResult, type GitHubConfig, type GitHubFileChange, type GrepResult, type ImageContentPart, type ImageContextConfig, type ImageMetadata, type InjectMessageOptions$1 as InjectMessageOptions, type Provider as LLMProviderInterface, type LLMResponse, type Message, type MessageContent, type ModelDefinition, type MultimodalContent, type PromptContent, type PromptDefinition, type PromptIncludePart, type PromptPart, type Provider$1 as Provider, type ProviderContentPart, type ProviderFilePart, type ProviderImagePart, type ProviderTextPart, type RequestContext, type SideConfig, type StorageBackend, type SubpromptConfig, type TelemetryEvent, type TextContentPart, type ThreadEndpointContext, type ThreadEnv, type ThreadInstance, type ThreadMetadata, type ThreadRegistryEntry, type ToolCall, type ToolConfig, type ToolResult, type UpdateThreadParams, type User, authenticate, buildImageDescription, cat, defineController, defineThreadEndpoint, emitThreadEvent, enhanceFlowState, exists, find, forceTurn, generateAgentFile, generateImageDescription, generateModelFile, generatePromptFile, getFileStats, getMessages, getMessagesToSummarize, getThumbnail, getUnsummarizedImageAttachments, grep, hasImageAttachments, head, injectMessage, linkFile, mkdir, optimizeImageContext, queueTool, readFile, readdir, reloadHistory, replaceImagesWithDescriptions, requireAdmin, requireAuth, rmdir, stat, tail, unlink, updateThread, writeFile, writeImage };
3450
+ export { type Agent, type AgentBuilderEnv, type AgentDefinition, type AttachmentRef, type AuthContext, type AuthUser, type BroadcastOptions, type BuilderController as Controller, type BuilderControllerContext as ControllerContext, DurableAgentBuilder, DurableThread, type Env, type FileRecord, type FileStats, type FlowResult, type FlowState, FlowStateSdk, type FlowStateWithSdk, GitHubApiError, GitHubClient, type GitHubCommitResult, type GitHubConfig, type GitHubFileChange, type GrepResult, type ImageContentPart, type ImageContextConfig, type ImageMetadata, type InjectMessageOptions$1 as InjectMessageOptions, type LLMResponse, type Message, type MessageContent, type ModelDefinition, type MultimodalContent, type PromptContent, type PromptDefinition, type PromptIncludePart, type PromptPart, type Provider, type RequestContext, type SideConfig, type StorageBackend, type SubpromptConfig, type TelemetryEvent, type TextContentPart, type ThreadEndpointContext, type ThreadEnv, type ThreadInstance, type ThreadMetadata, type ThreadRegistryEntry, type ToolCall, type ToolConfig, type ToolResult, type UpdateThreadParams, type User, authenticate, buildImageDescription, cat, defineController, emitThreadEvent, enhanceFlowState, exists, find, forceTurn, generateAgentFile, generateImageDescription, generateModelFile, generatePromptFile, getFileStats, getMessages, getMessagesToSummarize, getThumbnail, getUnsummarizedImageAttachments, grep, hasImageAttachments, head, injectMessage, linkFile, mkdir, optimizeImageContext, queueTool, readFile, readdir, reloadHistory, replaceImagesWithDescriptions, requireAdmin, requireAuth, rmdir, stat, tail, unlink, updateThread, writeFile, writeImage };