@everworker/oneringai 0.1.4 → 0.2.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/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { I as IConnectorRegistry, a as IConnectorAccessPolicy, C as ConnectorAccessContext, b as Connector, A as AudioFormat, c as IBaseModelDescription, V as VendorOptionSchema, d as IImageProvider, e as ConnectorFetchOptions, f as ITokenStorage, S as StoredToken$1, g as ConnectorConfig, h as ConnectorAuth, i as ConnectorConfigResult } from './ImageModel-qNJHPh4q.js';
2
- export { m as APIKeyConnectorAuth, D as AspectRatio, L as DEFAULT_BASE_DELAY_MS, G as DEFAULT_CONNECTOR_TIMEOUT, M as DEFAULT_MAX_DELAY_MS, H as DEFAULT_MAX_RETRIES, K as DEFAULT_RETRYABLE_STATUSES, n as IImageModelDescription, q as IMAGE_MODELS, r as IMAGE_MODEL_REGISTRY, F as ISourceLinks, y as ImageEditOptions, x as ImageGenerateOptions, j as ImageGeneration, k as ImageGenerationCreateOptions, o as ImageModelCapabilities, p as ImageModelPricing, B as ImageResponse, z as ImageVariationOptions, J as JWTConnectorAuth, O as OAuthConnectorAuth, E as OutputFormat, Q as QualityLevel, l as SimpleGenerateOptions, w as calculateImageCost, u as getActiveImageModels, s as getImageModelInfo, t as getImageModelsByVendor, v as getImageModelsWithFeature } from './ImageModel-qNJHPh4q.js';
3
- import { T as Tool, a as ToolFunction, b as ToolContext, c as ToolPermissionConfig$1, d as ToolCall, I as InputItem, M as MemoryEntry, e as MemoryScope, W as WorkingMemoryConfig, P as PriorityCalculator, f as MemoryPriority, g as MemoryTier, C as Content, O as OutputItem, h as ToolResult, i as ITextProvider, F as FunctionToolDefinition, L as LLMResponse, S as StreamEvent, H as HookConfig, j as HistoryMode, A as AgentEvents, k as AgentResponse, E as ExecutionContext, l as ExecutionMetrics, m as AuditEntry, n as StaleEntryInfo, o as PriorityContext, p as MemoryIndex, q as TaskStatusForMemory, r as WorkingMemoryAccess, s as TokenUsage, t as StreamEventType, u as TextGenerateOptions, v as ModelCapabilities, w as MessageRole } from './index-CEp1H4fV.js';
4
- export { aD as AfterToolContext, av as AgentEventName, ay as AgenticLoopEventName, ax as AgenticLoopEvents, aG as ApprovalResult, aE as ApproveToolContext, aC as BeforeToolContext, a8 as BuiltInTool, a3 as CompactionItem, Y as ContentType, D as DEFAULT_MEMORY_CONFIG, am as ErrorEvent, aw as ExecutionConfig, aA as Hook, au as HookManager, az as HookName, _ as InputImageContent, Z as InputTextContent, ak as IterationCompleteEvent, aa as JSONSchema, X as MEMORY_PRIORITY_VALUES, x as MemoryEntryInput, y as MemoryIndexEntry, a2 as Message, aB as ModifyingHook, $ as OutputTextContent, ad as OutputTextDeltaEvent, ae as OutputTextDoneEvent, a4 as ReasoningItem, al as ResponseCompleteEvent, ab as ResponseCreatedEvent, ac as ResponseInProgressEvent, B as SimpleScope, z as TaskAwareScope, ag as ToolCallArgumentsDeltaEvent, ah as ToolCallArgumentsDoneEvent, af as ToolCallStartEvent, a5 as ToolCallState, a9 as ToolExecutionContext, aj as ToolExecutionDoneEvent, ai as ToolExecutionStartEvent, aF as ToolModification, a1 as ToolResultContent, a0 as ToolUseContent, V as calculateEntrySize, a6 as defaultDescribeCall, J as forPlan, G as forTasks, a7 as getToolCallDescription, at as isErrorEvent, ao as isOutputTextDelta, as as isResponseComplete, Q as isSimpleScope, an as isStreamEvent, R as isTaskAwareScope, U as isTerminalMemoryStatus, aq as isToolCallArgumentsDelta, ar as isToolCallArgumentsDone, ap as isToolCallStart, K as scopeEquals, N as scopeMatches } from './index-CEp1H4fV.js';
1
+ import { I as IConnectorRegistry, a as IConnectorAccessPolicy, C as ConnectorAccessContext, b as Connector, c as IProvider, d as ConnectorFetchOptions, P as ProviderCapabilities, e as ITokenStorage, S as StoredToken$1, f as ConnectorConfig, g as ConnectorAuth, h as ConnectorConfigResult } from './IProvider-DcYJ3YE-.js';
2
+ export { A as APIKeyConnectorAuth, k as DEFAULT_BASE_DELAY_MS, D as DEFAULT_CONNECTOR_TIMEOUT, l as DEFAULT_MAX_DELAY_MS, i as DEFAULT_MAX_RETRIES, j as DEFAULT_RETRYABLE_STATUSES, J as JWTConnectorAuth, O as OAuthConnectorAuth } from './IProvider-DcYJ3YE-.js';
3
+ import { T as Tool, a as ToolFunction, b as ToolContext, c as ToolPermissionConfig$1, d as ToolCall, I as InputItem, M as MemoryEntry, e as MemoryScope, W as WorkingMemoryConfig, P as PriorityCalculator, f as MemoryPriority, g as MemoryTier, C as Content, O as OutputItem, h as ToolResult, i as ITextProvider, F as FunctionToolDefinition, L as LLMResponse, S as StreamEvent, H as HookConfig, j as HistoryMode, A as AgentEvents, k as AgentResponse, E as ExecutionContext, l as ExecutionMetrics, m as AuditEntry, n as StaleEntryInfo, o as PriorityContext, p as MemoryIndex, q as TaskStatusForMemory, r as WorkingMemoryAccess, s as TokenUsage, t as StreamEventType, u as TextGenerateOptions, v as ModelCapabilities, w as MessageRole } from './index-B5UaeEvK.js';
4
+ export { aD as AfterToolContext, av as AgentEventName, ay as AgenticLoopEventName, ax as AgenticLoopEvents, aG as ApprovalResult, aE as ApproveToolContext, aC as BeforeToolContext, a8 as BuiltInTool, a3 as CompactionItem, Y as ContentType, D as DEFAULT_MEMORY_CONFIG, am as ErrorEvent, aw as ExecutionConfig, aA as Hook, au as HookManager, az as HookName, _ as InputImageContent, Z as InputTextContent, ak as IterationCompleteEvent, aa as JSONSchema, X as MEMORY_PRIORITY_VALUES, x as MemoryEntryInput, y as MemoryIndexEntry, a2 as Message, aB as ModifyingHook, $ as OutputTextContent, ad as OutputTextDeltaEvent, ae as OutputTextDoneEvent, a4 as ReasoningItem, al as ResponseCompleteEvent, ab as ResponseCreatedEvent, ac as ResponseInProgressEvent, B as SimpleScope, z as TaskAwareScope, ag as ToolCallArgumentsDeltaEvent, ah as ToolCallArgumentsDoneEvent, af as ToolCallStartEvent, a5 as ToolCallState, a9 as ToolExecutionContext, aj as ToolExecutionDoneEvent, ai as ToolExecutionStartEvent, aF as ToolModification, a1 as ToolResultContent, a0 as ToolUseContent, V as calculateEntrySize, a6 as defaultDescribeCall, J as forPlan, G as forTasks, a7 as getToolCallDescription, at as isErrorEvent, ao as isOutputTextDelta, as as isResponseComplete, Q as isSimpleScope, an as isStreamEvent, R as isTaskAwareScope, U as isTerminalMemoryStatus, aq as isToolCallArgumentsDelta, ar as isToolCallArgumentsDone, ap as isToolCallStart, K as scopeEquals, N as scopeMatches } from './index-B5UaeEvK.js';
5
5
  import { EventEmitter } from 'eventemitter3';
6
6
  import { V as Vendor } from './Vendor-DYh_bzwo.js';
7
7
  export { a as VENDORS, i as isVendor } from './Vendor-DYh_bzwo.js';
8
- import { I as IProvider, P as ProviderCapabilities } from './IProvider-BP49c93d.js';
8
+ import { A as AudioFormat, I as IBaseModelDescription, V as VendorOptionSchema, a as IImageProvider } from './ImageModel-BJ2mVPGV.js';
9
+ export { r as AspectRatio, d as IImageModelDescription, g as IMAGE_MODELS, h as IMAGE_MODEL_REGISTRY, s as ISourceLinks, o as ImageEditOptions, n as ImageGenerateOptions, b as ImageGeneration, c as ImageGenerationCreateOptions, e as ImageModelCapabilities, f as ImageModelPricing, q as ImageResponse, p as ImageVariationOptions, O as OutputFormat, Q as QualityLevel, S as SimpleGenerateOptions, m as calculateImageCost, k as getActiveImageModels, i as getImageModelInfo, j as getImageModelsByVendor, l as getImageModelsWithFeature } from './ImageModel-BJ2mVPGV.js';
9
10
  import { ServiceCategory } from './shared/index.js';
10
11
  export { ILLMDescription, LLM_MODELS, MODEL_REGISTRY, SERVICE_DEFINITIONS, SERVICE_INFO, SERVICE_URL_PATTERNS, ServiceDefinition, ServiceInfo, ServiceType, Services, calculateCost, detectServiceFromURL, getActiveModels, getAllServiceIds, getModelInfo, getModelsByVendor, getServiceDefinition, getServiceInfo, getServicesByCategory, isKnownService } from './shared/index.js';
11
12
 
@@ -1335,6 +1336,7 @@ interface SerializedContextState {
1335
1336
  metadata: {
1336
1337
  savedAt: number;
1337
1338
  agentId?: string;
1339
+ userId?: string;
1338
1340
  model: string;
1339
1341
  };
1340
1342
  /** Agent-specific state (for TaskAgent, UniversalAgent, etc.) */
@@ -1913,6 +1915,15 @@ interface AgentContextNextGenConfig {
1913
1915
  features?: ContextFeatures;
1914
1916
  /** Agent ID (required for PersistentInstructions) */
1915
1917
  agentId?: string;
1918
+ /** User ID for multi-user scenarios. Automatically flows to ToolContext for all tool executions. */
1919
+ userId?: string;
1920
+ /**
1921
+ * Restrict this agent to a subset of registered connectors (by name).
1922
+ * When set, only these connectors are visible in ToolContext.connectorRegistry
1923
+ * and in dynamic tool descriptions (e.g., execute_javascript).
1924
+ * When not set, all connectors visible to the current userId are available.
1925
+ */
1926
+ connectors?: string[];
1916
1927
  /** Initial tools to register */
1917
1928
  tools?: ToolFunction[];
1918
1929
  /** Storage for session persistence */
@@ -2339,6 +2350,10 @@ declare class AgentContextNextGen extends EventEmitter<ContextEvents> {
2339
2350
  private _sessionId;
2340
2351
  /** Agent ID */
2341
2352
  private readonly _agentId;
2353
+ /** User ID for multi-user scenarios */
2354
+ private _userId;
2355
+ /** Allowed connector names (when agent is restricted to a subset) */
2356
+ private _allowedConnectors;
2342
2357
  /** Storage backend */
2343
2358
  private readonly _storage?;
2344
2359
  /** Destroyed flag */
@@ -2362,12 +2377,34 @@ declare class AgentContextNextGen extends EventEmitter<ContextEvents> {
2362
2377
  * @throws Error if any required plugin is missing
2363
2378
  */
2364
2379
  private validateStrategyDependencies;
2380
+ /**
2381
+ * Sync identity fields and connector registry to ToolContext.
2382
+ * Merges with existing ToolContext to preserve other fields (memory, signal, taskId).
2383
+ *
2384
+ * Connector registry resolution order:
2385
+ * 1. If `connectors` (allowed names) is set → filtered view of global registry
2386
+ * 2. If access policy + userId → scoped view via Connector.scoped()
2387
+ * 3. Otherwise → full global registry
2388
+ */
2389
+ private syncToolContext;
2390
+ /**
2391
+ * Build the connector registry appropriate for this agent's config.
2392
+ */
2393
+ private buildConnectorRegistry;
2365
2394
  /** Get the tool manager */
2366
2395
  get tools(): ToolManager;
2367
2396
  /** Get the model name */
2368
2397
  get model(): string;
2369
2398
  /** Get the agent ID */
2370
2399
  get agentId(): string;
2400
+ /** Get the current user ID */
2401
+ get userId(): string | undefined;
2402
+ /** Set user ID. Automatically updates ToolContext for all tool executions. */
2403
+ set userId(value: string | undefined);
2404
+ /** Get the allowed connector names (undefined = all visible connectors) */
2405
+ get connectors(): string[] | undefined;
2406
+ /** Set allowed connector names. Updates ToolContext.connectorRegistry. */
2407
+ set connectors(value: string[] | undefined);
2371
2408
  /** Get/set system prompt */
2372
2409
  get systemPrompt(): string | undefined;
2373
2410
  set systemPrompt(value: string | undefined);
@@ -2779,6 +2816,14 @@ interface BaseAgentConfig {
2779
2816
  registry?: IConnectorRegistry;
2780
2817
  /** Agent name (optional, auto-generated if not provided) */
2781
2818
  name?: string;
2819
+ /** User ID for multi-user scenarios. Flows to ToolContext automatically for all tool executions. */
2820
+ userId?: string;
2821
+ /**
2822
+ * Restrict this agent to a subset of registered connectors (by name).
2823
+ * Only these connectors will be visible in tool descriptions and sandbox execution.
2824
+ * When not set, all connectors visible to the current userId are available.
2825
+ */
2826
+ connectors?: string[];
2782
2827
  /** Tools available to the agent */
2783
2828
  tools?: ToolFunction[];
2784
2829
  /** Provide a pre-configured ToolManager (advanced) */
@@ -2948,6 +2993,22 @@ declare abstract class BaseAgent<TConfig extends BaseAgentConfig = BaseAgentConf
2948
2993
  * This is the primary way to access tools, memory, and history.
2949
2994
  */
2950
2995
  get context(): AgentContextNextGen;
2996
+ /**
2997
+ * Get the current user ID. Delegates to AgentContextNextGen.
2998
+ */
2999
+ get userId(): string | undefined;
3000
+ /**
3001
+ * Set user ID at runtime. Automatically updates ToolContext for all tool executions.
3002
+ */
3003
+ set userId(value: string | undefined);
3004
+ /**
3005
+ * Get the allowed connector names (undefined = all visible connectors).
3006
+ */
3007
+ get connectors(): string[] | undefined;
3008
+ /**
3009
+ * Restrict this agent to a subset of connectors. Updates ToolContext.connectorRegistry.
3010
+ */
3011
+ set connectors(value: string[] | undefined);
2951
3012
  /**
2952
3013
  * Permission management. Returns ToolPermissionManager for approval control.
2953
3014
  */
@@ -3335,6 +3396,7 @@ declare class Agent extends BaseAgent<AgentConfig$1, AgentEvents> implements IDi
3335
3396
  * const agent = Agent.create({
3336
3397
  * connector: 'openai', // or Connector instance
3337
3398
  * model: 'gpt-4',
3399
+ * userId: 'user-123', // flows to all tool executions automatically
3338
3400
  * instructions: 'You are a helpful assistant',
3339
3401
  * tools: [myTool]
3340
3402
  * });
@@ -3870,6 +3932,8 @@ interface InContextEntry {
3870
3932
  value: unknown;
3871
3933
  updatedAt: number;
3872
3934
  priority: InContextPriority;
3935
+ /** If true, this entry is displayed in the user's side panel UI */
3936
+ showInUI?: boolean;
3873
3937
  }
3874
3938
  interface InContextMemoryConfig {
3875
3939
  /** Maximum number of entries (default: 20) */
@@ -3880,6 +3944,8 @@ interface InContextMemoryConfig {
3880
3944
  defaultPriority?: InContextPriority;
3881
3945
  /** Whether to show timestamps in output (default: false) */
3882
3946
  showTimestamps?: boolean;
3947
+ /** Callback fired when entries change. Receives all current entries. */
3948
+ onEntriesChanged?: (entries: InContextEntry[]) => void;
3883
3949
  }
3884
3950
  interface SerializedInContextMemoryState {
3885
3951
  entries: InContextEntry[];
@@ -3892,6 +3958,7 @@ declare class InContextMemoryPluginNextGen implements IContextPluginNextGen {
3892
3958
  private _destroyed;
3893
3959
  private _tokenCache;
3894
3960
  private _instructionsTokenCache;
3961
+ private _notifyTimer;
3895
3962
  constructor(config?: InContextMemoryConfig);
3896
3963
  getInstructions(): string;
3897
3964
  getContent(): Promise<string | null>;
@@ -3907,7 +3974,7 @@ declare class InContextMemoryPluginNextGen implements IContextPluginNextGen {
3907
3974
  /**
3908
3975
  * Store or update a key-value pair
3909
3976
  */
3910
- set(key: string, description: string, value: unknown, priority?: InContextPriority): void;
3977
+ set(key: string, description: string, value: unknown, priority?: InContextPriority, showInUI?: boolean): void;
3911
3978
  /**
3912
3979
  * Get a value by key
3913
3980
  */
@@ -3928,6 +3995,7 @@ declare class InContextMemoryPluginNextGen implements IContextPluginNextGen {
3928
3995
  description: string;
3929
3996
  priority: InContextPriority;
3930
3997
  updatedAt: number;
3998
+ showInUI: boolean;
3931
3999
  }>;
3932
4000
  /**
3933
4001
  * Clear all entries
@@ -3943,6 +4011,11 @@ declare class InContextMemoryPluginNextGen implements IContextPluginNextGen {
3943
4011
  * Critical entries are excluded.
3944
4012
  */
3945
4013
  private getEvictableEntries;
4014
+ /**
4015
+ * Debounced notification when entries change.
4016
+ * Calls config.onEntriesChanged with all current entries.
4017
+ */
4018
+ private notifyEntriesChanged;
3946
4019
  private assertNotDestroyed;
3947
4020
  private createContextSetTool;
3948
4021
  private createContextDeleteTool;
@@ -6055,7 +6128,7 @@ declare function createVideoProvider(connector: Connector): IVideoProvider;
6055
6128
  /**
6056
6129
  * Search result interface
6057
6130
  */
6058
- interface SearchResult$1 {
6131
+ interface SearchResult {
6059
6132
  /** Page title */
6060
6133
  title: string;
6061
6134
  /** Direct URL to the page */
@@ -6091,7 +6164,7 @@ interface SearchResponse$1 {
6091
6164
  /** Provider name */
6092
6165
  provider: string;
6093
6166
  /** Search results */
6094
- results: SearchResult$1[];
6167
+ results: SearchResult[];
6095
6168
  /** Number of results */
6096
6169
  count: number;
6097
6170
  /** Error message if failed */
@@ -6302,8 +6375,7 @@ declare function listConnectorsByServiceTypes(serviceTypes: string[]): string[];
6302
6375
  * FALLBACK STRATEGY:
6303
6376
  * The webScrape tool uses this provider with a fallback chain:
6304
6377
  * 1. Try native fetch (webFetch) - fastest, free
6305
- * 2. Try JS rendering (webFetchJS) - handles SPAs
6306
- * 3. Try external API provider - handles bot protection, etc.
6378
+ * 2. Try external API provider - handles bot protection, SPAs, etc.
6307
6379
  */
6308
6380
 
6309
6381
  /**
@@ -9404,8 +9476,12 @@ declare class ProviderErrorMapper {
9404
9476
  */
9405
9477
 
9406
9478
  /**
9407
- * Factory function type for creating service-specific tools
9408
- * Takes a Connector and returns an array of tools that use it
9479
+ * Factory function type for creating service-specific tools.
9480
+ * Takes a Connector and returns an array of tools that use it.
9481
+ *
9482
+ * The `userId` parameter is a legacy fallback — tools should prefer reading
9483
+ * userId from ToolContext at execution time (auto-populated by Agent).
9484
+ * Factory userId is used as fallback when ToolContext is not available.
9409
9485
  */
9410
9486
  type ServiceToolFactory = (connector: Connector, userId?: string) => ToolFunction[];
9411
9487
  /**
@@ -11396,47 +11472,19 @@ interface WebFetchResult {
11396
11472
  declare const webFetch: ToolFunction<WebFetchArgs, WebFetchResult>;
11397
11473
 
11398
11474
  /**
11399
- * Web Fetch with JavaScript - Uses Puppeteer for JS-rendered sites
11400
- * Optional tool - requires puppeteer to be installed
11401
- */
11402
-
11403
- interface WebFetchJSArgs {
11404
- url: string;
11405
- waitForSelector?: string;
11406
- timeout?: number;
11407
- takeScreenshot?: boolean;
11408
- }
11409
- interface WebFetchJSResult {
11410
- success: boolean;
11411
- url: string;
11412
- title: string;
11413
- content: string;
11414
- screenshot?: string;
11415
- loadTime: number;
11416
- error?: string;
11417
- suggestion?: string;
11418
- excerpt?: string;
11419
- byline?: string;
11420
- wasReadabilityUsed?: boolean;
11421
- wasTruncated?: boolean;
11422
- }
11423
- declare const webFetchJS: ToolFunction<WebFetchJSArgs, WebFetchJSResult>;
11424
-
11425
- /**
11426
- * Web Search Tool - Clean interface for LLM
11475
+ * Web Search Tool Factory
11427
11476
  *
11428
- * ARCHITECTURE:
11429
- * - LLM sees simple interface: { query, numResults, country, language }
11430
- * - Connector configuration is INTERNAL (auto-detected by serviceType)
11431
- * - Uses shared findConnectorByServiceTypes() utility
11432
- * - Fallback to environment variables if no connector configured
11477
+ * Creates a web_search tool bound to a specific Connector.
11478
+ * Follows the ConnectorTools pattern (like GitHub tools).
11433
11479
  *
11434
- * Supports: Serper.dev, Brave, Tavily, RapidAPI
11480
+ * Usage:
11481
+ * ConnectorTools.registerService('serper', (connector) => [createWebSearchTool(connector)]);
11482
+ * // or directly:
11483
+ * const tool = createWebSearchTool(myConnector);
11435
11484
  */
11436
11485
 
11437
11486
  /**
11438
11487
  * Arguments for web_search tool
11439
- * CLEAN and SIMPLE - no connector details exposed
11440
11488
  */
11441
11489
  interface WebSearchArgs {
11442
11490
  /** Search query string */
@@ -11452,27 +11500,35 @@ interface WebSearchResult {
11452
11500
  success: boolean;
11453
11501
  query: string;
11454
11502
  provider: string;
11455
- results: SearchResult$1[];
11503
+ results: SearchResult[];
11456
11504
  count: number;
11457
11505
  error?: string;
11458
11506
  }
11459
- declare const webSearch: ToolFunction<WebSearchArgs, WebSearchResult>;
11507
+ /**
11508
+ * Create a web_search tool bound to a specific connector.
11509
+ *
11510
+ * @param connector - Connector instance providing auth for the search API
11511
+ */
11512
+ declare function createWebSearchTool(connector: Connector): ToolFunction<WebSearchArgs, WebSearchResult>;
11460
11513
 
11461
11514
  /**
11462
- * Web Scrape Tool - Clean interface for LLM
11515
+ * Web Scrape Tool Factory
11516
+ *
11517
+ * Creates a web_scrape tool bound to a specific Connector.
11518
+ * Follows the ConnectorTools pattern (like GitHub tools).
11463
11519
  *
11464
- * ARCHITECTURE:
11465
- * - LLM sees simple interface: { url, timeout, includeHtml, includeMarkdown, includeLinks, waitForSelector }
11466
- * - Connector configuration is INTERNAL (auto-detected by serviceType)
11467
- * - Uses shared findConnectorByServiceTypes() utility
11468
- * - Automatic fallback chain: native fetch -> JS rendering -> external API
11520
+ * Fallback chain:
11521
+ * 1. Native fetch (free/fast) via webFetch
11522
+ * 2. External API via the bound connector (e.g., ZenRows, Firecrawl)
11469
11523
  *
11470
- * Supports: ZenRows, Jina Reader, Firecrawl, ScrapingBee
11524
+ * Usage:
11525
+ * ConnectorTools.registerService('zenrows', (connector) => [createWebScrapeTool(connector)]);
11526
+ * // or directly:
11527
+ * const tool = createWebScrapeTool(myConnector);
11471
11528
  */
11472
11529
 
11473
11530
  /**
11474
11531
  * Arguments for web_scrape tool
11475
- * CLEAN and SIMPLE - no connector/strategy details exposed
11476
11532
  */
11477
11533
  interface WebScrapeArgs {
11478
11534
  /** URL to scrape */
@@ -11495,7 +11551,7 @@ interface WebScrapeResult {
11495
11551
  url: string;
11496
11552
  /** Final URL after redirects */
11497
11553
  finalUrl?: string;
11498
- /** Method used: 'native', 'js', or external provider name */
11554
+ /** Method used: 'native' or external provider name */
11499
11555
  method: string;
11500
11556
  /** Page title */
11501
11557
  title: string;
@@ -11518,23 +11574,23 @@ interface WebScrapeResult {
11518
11574
  /** Error message if failed */
11519
11575
  error?: string;
11520
11576
  }
11521
- declare const webScrape: ToolFunction<WebScrapeArgs, WebScrapeResult>;
11522
-
11523
11577
  /**
11524
- * Serper.dev search provider
11525
- * Fast Google search results via API
11578
+ * Create a web_scrape tool bound to a specific connector.
11579
+ *
11580
+ * @param connector - Connector instance providing auth for the scrape API
11526
11581
  */
11527
- interface SearchResult {
11528
- title: string;
11529
- url: string;
11530
- snippet: string;
11531
- position: number;
11532
- }
11582
+ declare function createWebScrapeTool(connector: Connector): ToolFunction<WebScrapeArgs, WebScrapeResult>;
11533
11583
 
11534
11584
  /**
11535
11585
  * JavaScript Execution Tool
11536
- * Executes JavaScript in a sandboxed VM with connector integration
11537
- * Connectors provide authenticated access to external APIs (GitHub, Microsoft, etc.)
11586
+ * Executes JavaScript in a sandboxed VM with connector integration.
11587
+ * Connectors provide authenticated access to external APIs (GitHub, Slack, etc.)
11588
+ *
11589
+ * Key features:
11590
+ * - userId auto-injected from ToolContext into authenticatedFetch calls
11591
+ * - Connector list always scoped to current userId via global access policy
11592
+ * - Dynamic description regenerated at each LLM call with current connectors
11593
+ * - Configurable timeout per invocation
11538
11594
  */
11539
11595
 
11540
11596
  interface ExecuteJSArgs {
@@ -11549,22 +11605,38 @@ interface ExecuteJSResult {
11549
11605
  error?: string;
11550
11606
  executionTime: number;
11551
11607
  }
11608
+ /**
11609
+ * Options for creating the execute_javascript tool.
11610
+ */
11611
+ interface ExecuteJavaScriptToolOptions {
11612
+ /**
11613
+ * Maximum allowed timeout in milliseconds for code execution.
11614
+ * The LLM can request up to this value via the `timeout` parameter.
11615
+ * Default: 30000 (30s). Set higher for long-running API calls.
11616
+ */
11617
+ maxTimeout?: number;
11618
+ /**
11619
+ * Default timeout in milliseconds when not specified by the LLM.
11620
+ * Default: 10000 (10s).
11621
+ */
11622
+ defaultTimeout?: number;
11623
+ }
11552
11624
  /**
11553
11625
  * Create an execute_javascript tool.
11554
11626
  *
11555
11627
  * The tool uses `descriptionFactory` to generate a dynamic description that
11556
- * always reflects the currently registered connectors. This ensures the LLM
11557
- * sees up-to-date connector information even if connectors are registered
11558
- * after the tool is created.
11628
+ * always reflects the connectors available to the current user. Connector
11629
+ * visibility is determined by the global access policy (if set) scoped by
11630
+ * the agent's userId from ToolContext.
11631
+ *
11632
+ * @param options - Optional configuration for timeout limits
11559
11633
  */
11560
- declare function createExecuteJavaScriptTool(): ToolFunction<ExecuteJSArgs, ExecuteJSResult>;
11634
+ declare function createExecuteJavaScriptTool(options?: ExecuteJavaScriptToolOptions): ToolFunction<ExecuteJSArgs, ExecuteJSResult>;
11561
11635
  /**
11562
11636
  * Default executeJavaScript tool instance.
11563
11637
  *
11564
- * This tool uses `descriptionFactory` to generate dynamic descriptions,
11565
- * so the connector list is always current when the tool is sent to the LLM.
11566
- * You can use either this default instance or create new ones with
11567
- * `createExecuteJavaScriptTool()` - both will have dynamic descriptions.
11638
+ * Uses the global connector registry (scoped by userId at runtime).
11639
+ * For custom timeouts, use createExecuteJavaScriptTool(options).
11568
11640
  */
11569
11641
  declare const executeJavaScript: ToolFunction<ExecuteJSArgs, ExecuteJSResult>;
11570
11642
 
@@ -11678,7 +11750,7 @@ interface SpeechToTextResult {
11678
11750
  durationSeconds?: number;
11679
11751
  error?: string;
11680
11752
  }
11681
- declare function createSpeechToTextTool(connector: Connector, storage?: IMediaStorage, _userId?: string): ToolFunction<SpeechToTextArgs, SpeechToTextResult>;
11753
+ declare function createSpeechToTextTool(connector: Connector, storage?: IMediaStorage): ToolFunction<SpeechToTextArgs, SpeechToTextResult>;
11682
11754
 
11683
11755
  /**
11684
11756
  * GitHub Tools - Shared Types and Helpers
@@ -12019,7 +12091,7 @@ declare function createCreatePRTool(connector: Connector, userId?: string): Tool
12019
12091
  * AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
12020
12092
  *
12021
12093
  * Generated by: scripts/generate-tool-registry.ts
12022
- * Generated at: 2026-02-08T21:31:53.497Z
12094
+ * Generated at: 2026-02-09T20:30:19.773Z
12023
12095
  *
12024
12096
  * To regenerate: npm run generate:tools
12025
12097
  */
@@ -12244,6 +12316,8 @@ declare const index_createSearchFilesTool: typeof createSearchFilesTool;
12244
12316
  declare const index_createSpeechToTextTool: typeof createSpeechToTextTool;
12245
12317
  declare const index_createTextToSpeechTool: typeof createTextToSpeechTool;
12246
12318
  declare const index_createVideoTools: typeof createVideoTools;
12319
+ declare const index_createWebScrapeTool: typeof createWebScrapeTool;
12320
+ declare const index_createWebSearchTool: typeof createWebSearchTool;
12247
12321
  declare const index_createWriteFileTool: typeof createWriteFileTool;
12248
12322
  declare const index_developerTools: typeof developerTools;
12249
12323
  declare const index_editFile: typeof editFile;
@@ -12273,12 +12347,9 @@ declare const index_setMediaStorage: typeof setMediaStorage;
12273
12347
  declare const index_toolRegistry: typeof toolRegistry;
12274
12348
  declare const index_validatePath: typeof validatePath;
12275
12349
  declare const index_webFetch: typeof webFetch;
12276
- declare const index_webFetchJS: typeof webFetchJS;
12277
- declare const index_webScrape: typeof webScrape;
12278
- declare const index_webSearch: typeof webSearch;
12279
12350
  declare const index_writeFile: typeof writeFile;
12280
12351
  declare namespace index {
12281
- export { type index_BashResult as BashResult, type index_ConnectorToolEntry as ConnectorToolEntry, index_ConnectorTools as ConnectorTools, index_DEFAULT_FILESYSTEM_CONFIG as DEFAULT_FILESYSTEM_CONFIG, index_DEFAULT_SHELL_CONFIG as DEFAULT_SHELL_CONFIG, type index_EditFileResult as EditFileResult, FileMediaStorage as FileMediaOutputHandler, type index_FilesystemToolConfig as FilesystemToolConfig, type index_GenericAPICallArgs as GenericAPICallArgs, type index_GenericAPICallResult as GenericAPICallResult, type index_GenericAPIToolOptions as GenericAPIToolOptions, type index_GitHubCreatePRResult as GitHubCreatePRResult, type index_GitHubGetPRResult as GitHubGetPRResult, type index_GitHubPRCommentEntry as GitHubPRCommentEntry, type index_GitHubPRCommentsResult as GitHubPRCommentsResult, type index_GitHubPRFilesResult as GitHubPRFilesResult, type index_GitHubReadFileResult as GitHubReadFileResult, type index_GitHubRepository as GitHubRepository, type index_GitHubSearchCodeResult as GitHubSearchCodeResult, type index_GitHubSearchFilesResult as GitHubSearchFilesResult, type index_GlobResult as GlobResult, type index_GrepMatch as GrepMatch, type index_GrepResult as GrepResult, type IMediaStorage as IMediaOutputHandler, type MediaStorageMetadata as MediaOutputMetadata, type MediaStorageResult as MediaOutputResult, type index_ReadFileResult as ReadFileResult, type index_SearchResult as SearchResult, type index_ServiceToolFactory as ServiceToolFactory, type index_ShellToolConfig as ShellToolConfig, type index_ToolCategory as ToolCategory, index_ToolRegistry as ToolRegistry, type index_ToolRegistryEntry as ToolRegistryEntry, type index_WriteFileResult as WriteFileResult, index_bash as bash, index_createBashTool as createBashTool, index_createCreatePRTool as createCreatePRTool, index_createEditFileTool as createEditFileTool, index_createExecuteJavaScriptTool as createExecuteJavaScriptTool, index_createGetPRTool as createGetPRTool, index_createGitHubReadFileTool as createGitHubReadFileTool, index_createGlobTool as createGlobTool, index_createGrepTool as createGrepTool, index_createImageGenerationTool as createImageGenerationTool, index_createListDirectoryTool as createListDirectoryTool, index_createPRCommentsTool as createPRCommentsTool, index_createPRFilesTool as createPRFilesTool, index_createReadFileTool as createReadFileTool, index_createSearchCodeTool as createSearchCodeTool, index_createSearchFilesTool as createSearchFilesTool, index_createSpeechToTextTool as createSpeechToTextTool, index_createTextToSpeechTool as createTextToSpeechTool, index_createVideoTools as createVideoTools, index_createWriteFileTool as createWriteFileTool, index_developerTools as developerTools, index_editFile as editFile, index_executeJavaScript as executeJavaScript, index_expandTilde as expandTilde, index_getAllBuiltInTools as getAllBuiltInTools, index_getBackgroundOutput as getBackgroundOutput, index_getMediaOutputHandler as getMediaOutputHandler, index_getMediaStorage as getMediaStorage, index_getToolByName as getToolByName, index_getToolCategories as getToolCategories, index_getToolRegistry as getToolRegistry, index_getToolsByCategory as getToolsByCategory, index_getToolsRequiringConnector as getToolsRequiringConnector, index_glob as glob, index_grep as grep, index_isBlockedCommand as isBlockedCommand, index_isExcludedExtension as isExcludedExtension, index_jsonManipulator as jsonManipulator, index_killBackgroundProcess as killBackgroundProcess, index_listDirectory as listDirectory, index_parseRepository as parseRepository, index_readFile as readFile, index_resolveRepository as resolveRepository, index_setMediaOutputHandler as setMediaOutputHandler, index_setMediaStorage as setMediaStorage, index_toolRegistry as toolRegistry, index_validatePath as validatePath, index_webFetch as webFetch, index_webFetchJS as webFetchJS, index_webScrape as webScrape, index_webSearch as webSearch, index_writeFile as writeFile };
12352
+ export { type index_BashResult as BashResult, type index_ConnectorToolEntry as ConnectorToolEntry, index_ConnectorTools as ConnectorTools, index_DEFAULT_FILESYSTEM_CONFIG as DEFAULT_FILESYSTEM_CONFIG, index_DEFAULT_SHELL_CONFIG as DEFAULT_SHELL_CONFIG, type index_EditFileResult as EditFileResult, FileMediaStorage as FileMediaOutputHandler, type index_FilesystemToolConfig as FilesystemToolConfig, type index_GenericAPICallArgs as GenericAPICallArgs, type index_GenericAPICallResult as GenericAPICallResult, type index_GenericAPIToolOptions as GenericAPIToolOptions, type index_GitHubCreatePRResult as GitHubCreatePRResult, type index_GitHubGetPRResult as GitHubGetPRResult, type index_GitHubPRCommentEntry as GitHubPRCommentEntry, type index_GitHubPRCommentsResult as GitHubPRCommentsResult, type index_GitHubPRFilesResult as GitHubPRFilesResult, type index_GitHubReadFileResult as GitHubReadFileResult, type index_GitHubRepository as GitHubRepository, type index_GitHubSearchCodeResult as GitHubSearchCodeResult, type index_GitHubSearchFilesResult as GitHubSearchFilesResult, type index_GlobResult as GlobResult, type index_GrepMatch as GrepMatch, type index_GrepResult as GrepResult, type IMediaStorage as IMediaOutputHandler, type MediaStorageMetadata as MediaOutputMetadata, type MediaStorageResult as MediaOutputResult, type index_ReadFileResult as ReadFileResult, type index_SearchResult as SearchResult, type index_ServiceToolFactory as ServiceToolFactory, type index_ShellToolConfig as ShellToolConfig, type index_ToolCategory as ToolCategory, index_ToolRegistry as ToolRegistry, type index_ToolRegistryEntry as ToolRegistryEntry, type index_WriteFileResult as WriteFileResult, index_bash as bash, index_createBashTool as createBashTool, index_createCreatePRTool as createCreatePRTool, index_createEditFileTool as createEditFileTool, index_createExecuteJavaScriptTool as createExecuteJavaScriptTool, index_createGetPRTool as createGetPRTool, index_createGitHubReadFileTool as createGitHubReadFileTool, index_createGlobTool as createGlobTool, index_createGrepTool as createGrepTool, index_createImageGenerationTool as createImageGenerationTool, index_createListDirectoryTool as createListDirectoryTool, index_createPRCommentsTool as createPRCommentsTool, index_createPRFilesTool as createPRFilesTool, index_createReadFileTool as createReadFileTool, index_createSearchCodeTool as createSearchCodeTool, index_createSearchFilesTool as createSearchFilesTool, index_createSpeechToTextTool as createSpeechToTextTool, index_createTextToSpeechTool as createTextToSpeechTool, index_createVideoTools as createVideoTools, index_createWebScrapeTool as createWebScrapeTool, index_createWebSearchTool as createWebSearchTool, index_createWriteFileTool as createWriteFileTool, index_developerTools as developerTools, index_editFile as editFile, index_executeJavaScript as executeJavaScript, index_expandTilde as expandTilde, index_getAllBuiltInTools as getAllBuiltInTools, index_getBackgroundOutput as getBackgroundOutput, index_getMediaOutputHandler as getMediaOutputHandler, index_getMediaStorage as getMediaStorage, index_getToolByName as getToolByName, index_getToolCategories as getToolCategories, index_getToolRegistry as getToolRegistry, index_getToolsByCategory as getToolsByCategory, index_getToolsRequiringConnector as getToolsRequiringConnector, index_glob as glob, index_grep as grep, index_isBlockedCommand as isBlockedCommand, index_isExcludedExtension as isExcludedExtension, index_jsonManipulator as jsonManipulator, index_killBackgroundProcess as killBackgroundProcess, index_listDirectory as listDirectory, index_parseRepository as parseRepository, index_readFile as readFile, index_resolveRepository as resolveRepository, index_setMediaOutputHandler as setMediaOutputHandler, index_setMediaStorage as setMediaStorage, index_toolRegistry as toolRegistry, index_validatePath as validatePath, index_webFetch as webFetch, index_writeFile as writeFile };
12282
12353
  }
12283
12354
 
12284
12355
  /**
@@ -12333,4 +12404,4 @@ declare class ProviderConfigAgent {
12333
12404
  reset(): void;
12334
12405
  }
12335
12406
 
12336
- export { AGENT_DEFINITION_FORMAT_VERSION, AIError, APPROVAL_STATE_VERSION, Agent, type AgentConfig$1 as AgentConfig, AgentContextNextGen, type AgentContextNextGenConfig, type AgentDefinitionListOptions, type AgentDefinitionMetadata, type AgentDefinitionSummary, AgentEvents, type AgentMetrics, type AgentPermissionsConfig, AgentResponse, type AgentSessionConfig, type AgentState, type AgentStatus, type ApprovalCacheEntry, type ApprovalDecision, ApproximateTokenEstimator, AudioFormat, AuditEntry, type AuthTemplate, type AuthTemplateField, type BackoffConfig, type BackoffStrategyType, BaseMediaProvider, BasePluginNextGen, BaseProvider, type BaseProviderConfig$1 as BaseProviderConfig, type BaseProviderResponse, BaseTextProvider, type BashResult, type BeforeExecuteResult, BraveProvider, CONNECTOR_CONFIG_VERSION, CONTEXT_SESSION_FORMAT_VERSION, CheckpointManager, type CheckpointStrategy, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerEvents, type CircuitBreakerMetrics, CircuitOpenError, type CircuitState, type ClipboardImageResult, type CompactionContext, type CompactionResult, Connector, ConnectorAccessContext, ConnectorAuth, ConnectorConfig, ConnectorConfigResult, ConnectorConfigStore, ConnectorFetchOptions, type ConnectorToolEntry, ConnectorTools, type ConnectorToolsOptions, ConsoleMetrics, type ConsolidationResult, Content, type ContextBudget$1 as ContextBudget, type ContextEvents, type ContextFeatures, type ContextManagerConfig, type ContextOverflowBudget, ContextOverflowError, type ContextSessionMetadata, type ContextSessionSummary, type ContextStorageListOptions, type ConversationMessage, type CreateConnectorOptions, DEFAULT_ALLOWLIST, DEFAULT_BACKOFF_CONFIG, DEFAULT_CHECKPOINT_STRATEGY, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONFIG, DEFAULT_CONTEXT_CONFIG, DEFAULT_FEATURES, DEFAULT_FILESYSTEM_CONFIG, DEFAULT_HISTORY_MANAGER_CONFIG, DEFAULT_PERMISSION_CONFIG, DEFAULT_RATE_LIMITER_CONFIG, DEFAULT_SHELL_CONFIG, type DefaultAllowlistedTool, DefaultCompactionStrategy, type DefaultCompactionStrategyConfig, DependencyCycleError, type DirectCallOptions, type EditFileResult, type ErrorContext, ErrorHandler, type ErrorHandlerConfig, type ErrorHandlerEvents, type EvictionStrategy, ExecutionContext, ExecutionMetrics, type ExtendedFetchOptions, type ExternalDependency, type ExternalDependencyEvents, ExternalDependencyHandler, type FetchedContent, FileAgentDefinitionStorage, type FileAgentDefinitionStorageConfig, FileConnectorStorage, type FileConnectorStorageConfig, FileContextStorage, type FileContextStorageConfig, FileMediaStorage as FileMediaOutputHandler, FileMediaStorage, type FileMediaStorageConfig, FilePersistentInstructionsStorage, type FilePersistentInstructionsStorageConfig, FileStorage, type FileStorageConfig, type FilesystemToolConfig, FrameworkLogger, FunctionToolDefinition, type GeneratedPlan, type GenericAPICallArgs, type GenericAPICallResult, type GenericAPIToolOptions, type GitHubCreatePRResult, type GitHubGetPRResult, type GitHubPRCommentEntry, type GitHubPRCommentsResult, type GitHubPRFilesResult, type GitHubReadFileResult, type GitHubRepository, type GitHubSearchCodeResult, type GitHubSearchFilesResult, type GlobResult, type GrepMatch, type GrepResult, type HTTPTransportConfig, type HistoryManagerEvents, type HistoryMessage, HistoryMode, HookConfig, type IAgentDefinitionStorage, type IAgentStateStorage, type IAgentStorage, type IAsyncDisposable, IBaseModelDescription, type ICapabilityProvider, type ICompactionStrategy, IConnectorAccessPolicy, type IConnectorConfigStorage, IConnectorRegistry, type IContextCompactor, type IContextComponent, type IContextPluginNextGen, type IContextStorage, type IContextStrategy, type IDisposable, type IHistoryManager, type IHistoryManagerConfig, type IHistoryStorage, IImageProvider, type IMCPClient, type IMediaStorage as IMediaOutputHandler, type IMediaStorage, type IMemoryStorage, type IPersistentInstructionsStorage, type IPlanStorage, IProvider, type IResearchSource, type ISTTModelDescription, type IScrapeProvider, type ISearchProvider, type ISpeechToTextProvider, type ITTSModelDescription, ITextProvider, type ITextToSpeechProvider, type ITokenEstimator$1 as ITokenEstimator, ITokenStorage, type IToolExecutionPipeline, type IToolExecutionPlugin, type IToolExecutor, type IVideoModelDescription, type IVideoProvider, type IVoiceInfo, type InContextEntry, type InContextMemoryConfig, InContextMemoryPluginNextGen, type InContextPriority, InMemoryAgentStateStorage, InMemoryHistoryStorage, InMemoryMetrics, InMemoryPlanStorage, InMemoryStorage, InputItem, type InstructionEntry, InvalidConfigError, InvalidToolArgumentsError, type JSONExtractionResult, LLMResponse, type LogEntry, type LogLevel, type LoggerConfig, LoggingPlugin, type LoggingPluginOptions, MCPClient, type MCPClientConnectionState, type MCPClientState, type MCPConfiguration, MCPConnectionError, MCPError, type MCPPrompt, type MCPPromptResult, MCPProtocolError, MCPRegistry, type MCPResource, type MCPResourceContent, MCPResourceError, type MCPServerCapabilities, type MCPServerConfig, MCPTimeoutError, type MCPTool, MCPToolError, type MCPToolResult, type MCPTransportType, type MediaStorageMetadata as MediaOutputMetadata, type MediaStorageResult as MediaOutputResult, type MediaStorageEntry, type MediaStorageListOptions, type MediaStorageMetadata, type MediaStorageResult, MemoryConnectorStorage, MemoryEntry, MemoryEvictionCompactor, MemoryIndex, MemoryPriority, MemoryScope, MemoryStorage, MessageBuilder, MessageRole, type MetricTags, type MetricsCollector, type MetricsCollectorType, ModelCapabilities, ModelNotSupportedError, type EvictionStrategy$1 as NextGenEvictionStrategy, NoOpMetrics, type OAuthConfig, type OAuthFlow, OAuthManager, OutputItem, type OversizedInputResult, ParallelTasksError, type PermissionCheckContext, type PermissionCheckResult, type PermissionManagerEvent, type PermissionScope, type PersistentInstructionsConfig, PersistentInstructionsPluginNextGen, type Plan, type PlanConcurrency, type PlanInput, type PlanStatus, PlanningAgent, type PlanningAgentConfig, type PluginConfigs, type PluginExecutionContext, type PreparedContext, ProviderAuthError, ProviderCapabilities, ProviderConfigAgent, ProviderContextLengthError, ProviderError, ProviderErrorMapper, ProviderNotFoundError, ProviderRateLimitError, RapidAPIProvider, RateLimitError, type RateLimiterConfig, type RateLimiterMetrics, type ReadFileResult, type FetchOptions as ResearchFetchOptions, type ResearchFinding, type ResearchPlan, type ResearchProgress, type ResearchQuery, type ResearchResult, type SearchOptions as ResearchSearchOptions, type SearchResponse as ResearchSearchResponse, type RiskLevel, SIMPLE_ICONS_CDN, type STTModelCapabilities, type STTOptions, type STTOutputFormat$1 as STTOutputFormat, type STTResponse, STT_MODELS, STT_MODEL_REGISTRY, ScopedConnectorRegistry, type ScrapeFeature, type ScrapeOptions, ScrapeProvider, type ScrapeProviderConfig, type ScrapeProviderFallbackConfig, type ScrapeResponse, type ScrapeResult, type SearchOptions$1 as SearchOptions, SearchProvider, type SearchProviderConfig, type SearchResponse$1 as SearchResponse, type SearchResult$1 as SearchResult, type SegmentTimestamp, type SerializedApprovalEntry, type SerializedApprovalState, type SerializedContextState, type SerializedHistoryState, type SerializedInContextMemoryState, type SerializedPersistentInstructionsState, type SerializedToolState, type SerializedWorkingMemoryState, SerperProvider, ServiceCategory, type ServiceToolFactory, type ShellToolConfig, type SimpleIcon, type SimpleVideoGenerateOptions, type SourceCapabilities, type SourceResult, SpeechToText, type SpeechToTextConfig, type StdioTransportConfig, type StoredAgentDefinition, type StoredAgentType, type StoredConnectorConfig, type StoredContextSession, type StoredToken, type StrategyInfo, StrategyRegistry, type StrategyRegistryEntry, StreamEvent, StreamEventType, StreamHelpers, StreamState, SummarizeCompactor, TERMINAL_TASK_STATUSES, type TTSModelCapabilities, type TTSOptions, type TTSResponse, TTS_MODELS, TTS_MODEL_REGISTRY, type Task, type AgentConfig as TaskAgentStateConfig, type TaskCondition, type TaskExecution, type TaskFailure, type TaskInput, type TaskStatus, TaskStatusForMemory, TaskTimeoutError, ToolContext as TaskToolContext, type TaskValidation, TaskValidationError, type TaskValidationResult, TavilyProvider, type TemplateCredentials, TextGenerateOptions, TextToSpeech, type TextToSpeechConfig, TokenBucketRateLimiter, type TokenContentType, Tool, ToolCall, type ToolCategory, type ToolCondition, ToolContext, ToolExecutionError, ToolExecutionPipeline, type ToolExecutionPipelineOptions, ToolFunction, ToolManager, type ToolManagerConfig, type ToolManagerEvent, type ToolManagerStats, type ToolMetadata, ToolNotFoundError, type ToolOptions, type ToolPermissionConfig, ToolPermissionManager, type ToolRegistration, ToolRegistry, type ToolRegistryEntry, ToolResult, type ToolSelectionContext, ToolTimeoutError, type TransportConfig, TruncateCompactor, VENDOR_ICON_MAP, VIDEO_MODELS, VIDEO_MODEL_REGISTRY, Vendor, type VendorInfo, type VendorLogo, VendorOptionSchema, type VendorRegistryEntry, type VendorTemplate, type VideoExtendOptions, type VideoGenerateOptions, VideoGeneration, type VideoGenerationCreateOptions, type VideoJob, type VideoModelCapabilities, type VideoModelPricing, type VideoResponse, type VideoStatus, type WordTimestamp, WorkingMemory, WorkingMemoryAccess, WorkingMemoryConfig, type WorkingMemoryEvents, type WorkingMemoryPluginConfig, WorkingMemoryPluginNextGen, type WriteFileResult, addJitter, allVendorTemplates, assertNotDestroyed, authenticatedFetch, backoffSequence, backoffWait, bash, buildAuthConfig, buildEndpointWithQuery, buildQueryString, calculateBackoff, calculateSTTCost, calculateTTSCost, calculateVideoCost, canTaskExecute, createAgentStorage, createAuthenticatedFetch, createBashTool, createConnectorFromTemplate, createCreatePRTool, createEditFileTool, createEstimator, createExecuteJavaScriptTool, createFileAgentDefinitionStorage, createFileContextStorage, createFileMediaStorage, createGetPRTool, createGitHubReadFileTool, createGlobTool, createGrepTool, createImageGenerationTool, createImageProvider, createListDirectoryTool, createMessageWithImages, createMetricsCollector, createPRCommentsTool, createPRFilesTool, createPlan, createProvider, createReadFileTool, createSearchCodeTool, createSearchFilesTool, createSpeechToTextTool, createTask, createTextMessage, createTextToSpeechTool, createVideoProvider, createVideoTools, createWriteFileTool, detectDependencyCycle, developerTools, editFile, evaluateCondition, extractJSON, extractJSONField, extractNumber, findConnectorByServiceTypes, generateEncryptionKey, generateSimplePlan, generateWebAPITool, getActiveSTTModels, getActiveTTSModels, getActiveVideoModels, getAllBuiltInTools, getAllVendorLogos, getAllVendorTemplates, getBackgroundOutput, getConnectorTools, getCredentialsSetupURL, getDocsURL, getMediaOutputHandler, getMediaStorage, getNextExecutableTasks, getRegisteredScrapeProviders, getSTTModelInfo, getSTTModelsByVendor, getSTTModelsWithFeature, getTTSModelInfo, getTTSModelsByVendor, getTTSModelsWithFeature, getTaskDependencies, getToolByName, getToolCategories, getToolRegistry, getToolsByCategory, getToolsRequiringConnector, getVendorAuthTemplate, getVendorColor, getVendorDefaultBaseURL, getVendorInfo, getVendorLogo, getVendorLogoCdnUrl, getVendorLogoSvg, getVendorTemplate, getVideoModelInfo, getVideoModelsByVendor, getVideoModelsWithAudio, getVideoModelsWithFeature, glob, globalErrorHandler, grep, hasClipboardImage, hasVendorLogo, isBlockedCommand, isExcludedExtension, isTaskBlocked, isTerminalStatus, killBackgroundProcess, listConnectorsByServiceTypes, listDirectory, listVendorIds, listVendors, listVendorsByAuthType, listVendorsByCategory, listVendorsWithLogos, logger, metrics, parseRepository, readClipboardImage, readFile, registerScrapeProvider, resolveConnector, resolveDependencies, resolveRepository, retryWithBackoff, setMediaOutputHandler, setMediaStorage, setMetricsCollector, simpleTokenEstimator, toConnectorOptions, toolRegistry, index as tools, updateTaskStatus, validatePath, writeFile };
12407
+ export { AGENT_DEFINITION_FORMAT_VERSION, AIError, APPROVAL_STATE_VERSION, Agent, type AgentConfig$1 as AgentConfig, AgentContextNextGen, type AgentContextNextGenConfig, type AgentDefinitionListOptions, type AgentDefinitionMetadata, type AgentDefinitionSummary, AgentEvents, type AgentMetrics, type AgentPermissionsConfig, AgentResponse, type AgentSessionConfig, type AgentState, type AgentStatus, type ApprovalCacheEntry, type ApprovalDecision, ApproximateTokenEstimator, AudioFormat, AuditEntry, type AuthTemplate, type AuthTemplateField, type BackoffConfig, type BackoffStrategyType, BaseMediaProvider, BasePluginNextGen, BaseProvider, type BaseProviderConfig$1 as BaseProviderConfig, type BaseProviderResponse, BaseTextProvider, type BashResult, type BeforeExecuteResult, BraveProvider, CONNECTOR_CONFIG_VERSION, CONTEXT_SESSION_FORMAT_VERSION, CheckpointManager, type CheckpointStrategy, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerEvents, type CircuitBreakerMetrics, CircuitOpenError, type CircuitState, type ClipboardImageResult, type CompactionContext, type CompactionResult, Connector, ConnectorAccessContext, ConnectorAuth, ConnectorConfig, ConnectorConfigResult, ConnectorConfigStore, ConnectorFetchOptions, type ConnectorToolEntry, ConnectorTools, type ConnectorToolsOptions, ConsoleMetrics, type ConsolidationResult, Content, type ContextBudget$1 as ContextBudget, type ContextEvents, type ContextFeatures, type ContextManagerConfig, type ContextOverflowBudget, ContextOverflowError, type ContextSessionMetadata, type ContextSessionSummary, type ContextStorageListOptions, type ConversationMessage, type CreateConnectorOptions, DEFAULT_ALLOWLIST, DEFAULT_BACKOFF_CONFIG, DEFAULT_CHECKPOINT_STRATEGY, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONFIG, DEFAULT_CONTEXT_CONFIG, DEFAULT_FEATURES, DEFAULT_FILESYSTEM_CONFIG, DEFAULT_HISTORY_MANAGER_CONFIG, DEFAULT_PERMISSION_CONFIG, DEFAULT_RATE_LIMITER_CONFIG, DEFAULT_SHELL_CONFIG, type DefaultAllowlistedTool, DefaultCompactionStrategy, type DefaultCompactionStrategyConfig, DependencyCycleError, type DirectCallOptions, type EditFileResult, type ErrorContext, ErrorHandler, type ErrorHandlerConfig, type ErrorHandlerEvents, type EvictionStrategy, ExecutionContext, ExecutionMetrics, type ExtendedFetchOptions, type ExternalDependency, type ExternalDependencyEvents, ExternalDependencyHandler, type FetchedContent, FileAgentDefinitionStorage, type FileAgentDefinitionStorageConfig, FileConnectorStorage, type FileConnectorStorageConfig, FileContextStorage, type FileContextStorageConfig, FileMediaStorage as FileMediaOutputHandler, FileMediaStorage, type FileMediaStorageConfig, FilePersistentInstructionsStorage, type FilePersistentInstructionsStorageConfig, FileStorage, type FileStorageConfig, type FilesystemToolConfig, FrameworkLogger, FunctionToolDefinition, type GeneratedPlan, type GenericAPICallArgs, type GenericAPICallResult, type GenericAPIToolOptions, type GitHubCreatePRResult, type GitHubGetPRResult, type GitHubPRCommentEntry, type GitHubPRCommentsResult, type GitHubPRFilesResult, type GitHubReadFileResult, type GitHubRepository, type GitHubSearchCodeResult, type GitHubSearchFilesResult, type GlobResult, type GrepMatch, type GrepResult, type HTTPTransportConfig, type HistoryManagerEvents, type HistoryMessage, HistoryMode, HookConfig, type IAgentDefinitionStorage, type IAgentStateStorage, type IAgentStorage, type IAsyncDisposable, IBaseModelDescription, type ICapabilityProvider, type ICompactionStrategy, IConnectorAccessPolicy, type IConnectorConfigStorage, IConnectorRegistry, type IContextCompactor, type IContextComponent, type IContextPluginNextGen, type IContextStorage, type IContextStrategy, type IDisposable, type IHistoryManager, type IHistoryManagerConfig, type IHistoryStorage, IImageProvider, type IMCPClient, type IMediaStorage as IMediaOutputHandler, type IMediaStorage, type IMemoryStorage, type IPersistentInstructionsStorage, type IPlanStorage, IProvider, type IResearchSource, type ISTTModelDescription, type IScrapeProvider, type ISearchProvider, type ISpeechToTextProvider, type ITTSModelDescription, ITextProvider, type ITextToSpeechProvider, type ITokenEstimator$1 as ITokenEstimator, ITokenStorage, type IToolExecutionPipeline, type IToolExecutionPlugin, type IToolExecutor, type IVideoModelDescription, type IVideoProvider, type IVoiceInfo, type InContextEntry, type InContextMemoryConfig, InContextMemoryPluginNextGen, type InContextPriority, InMemoryAgentStateStorage, InMemoryHistoryStorage, InMemoryMetrics, InMemoryPlanStorage, InMemoryStorage, InputItem, type InstructionEntry, InvalidConfigError, InvalidToolArgumentsError, type JSONExtractionResult, LLMResponse, type LogEntry, type LogLevel, type LoggerConfig, LoggingPlugin, type LoggingPluginOptions, MCPClient, type MCPClientConnectionState, type MCPClientState, type MCPConfiguration, MCPConnectionError, MCPError, type MCPPrompt, type MCPPromptResult, MCPProtocolError, MCPRegistry, type MCPResource, type MCPResourceContent, MCPResourceError, type MCPServerCapabilities, type MCPServerConfig, MCPTimeoutError, type MCPTool, MCPToolError, type MCPToolResult, type MCPTransportType, type MediaStorageMetadata as MediaOutputMetadata, type MediaStorageResult as MediaOutputResult, type MediaStorageEntry, type MediaStorageListOptions, type MediaStorageMetadata, type MediaStorageResult, MemoryConnectorStorage, MemoryEntry, MemoryEvictionCompactor, MemoryIndex, MemoryPriority, MemoryScope, MemoryStorage, MessageBuilder, MessageRole, type MetricTags, type MetricsCollector, type MetricsCollectorType, ModelCapabilities, ModelNotSupportedError, type EvictionStrategy$1 as NextGenEvictionStrategy, NoOpMetrics, type OAuthConfig, type OAuthFlow, OAuthManager, OutputItem, type OversizedInputResult, ParallelTasksError, type PermissionCheckContext, type PermissionCheckResult, type PermissionManagerEvent, type PermissionScope, type PersistentInstructionsConfig, PersistentInstructionsPluginNextGen, type Plan, type PlanConcurrency, type PlanInput, type PlanStatus, PlanningAgent, type PlanningAgentConfig, type PluginConfigs, type PluginExecutionContext, type PreparedContext, ProviderAuthError, ProviderCapabilities, ProviderConfigAgent, ProviderContextLengthError, ProviderError, ProviderErrorMapper, ProviderNotFoundError, ProviderRateLimitError, RapidAPIProvider, RateLimitError, type RateLimiterConfig, type RateLimiterMetrics, type ReadFileResult, type FetchOptions as ResearchFetchOptions, type ResearchFinding, type ResearchPlan, type ResearchProgress, type ResearchQuery, type ResearchResult, type SearchOptions as ResearchSearchOptions, type SearchResponse as ResearchSearchResponse, type RiskLevel, SIMPLE_ICONS_CDN, type STTModelCapabilities, type STTOptions, type STTOutputFormat$1 as STTOutputFormat, type STTResponse, STT_MODELS, STT_MODEL_REGISTRY, ScopedConnectorRegistry, type ScrapeFeature, type ScrapeOptions, ScrapeProvider, type ScrapeProviderConfig, type ScrapeProviderFallbackConfig, type ScrapeResponse, type ScrapeResult, type SearchOptions$1 as SearchOptions, SearchProvider, type SearchProviderConfig, type SearchResponse$1 as SearchResponse, type SearchResult, type SegmentTimestamp, type SerializedApprovalEntry, type SerializedApprovalState, type SerializedContextState, type SerializedHistoryState, type SerializedInContextMemoryState, type SerializedPersistentInstructionsState, type SerializedToolState, type SerializedWorkingMemoryState, SerperProvider, ServiceCategory, type ServiceToolFactory, type ShellToolConfig, type SimpleIcon, type SimpleVideoGenerateOptions, type SourceCapabilities, type SourceResult, SpeechToText, type SpeechToTextConfig, type StdioTransportConfig, type StoredAgentDefinition, type StoredAgentType, type StoredConnectorConfig, type StoredContextSession, type StoredToken, type StrategyInfo, StrategyRegistry, type StrategyRegistryEntry, StreamEvent, StreamEventType, StreamHelpers, StreamState, SummarizeCompactor, TERMINAL_TASK_STATUSES, type TTSModelCapabilities, type TTSOptions, type TTSResponse, TTS_MODELS, TTS_MODEL_REGISTRY, type Task, type AgentConfig as TaskAgentStateConfig, type TaskCondition, type TaskExecution, type TaskFailure, type TaskInput, type TaskStatus, TaskStatusForMemory, TaskTimeoutError, ToolContext as TaskToolContext, type TaskValidation, TaskValidationError, type TaskValidationResult, TavilyProvider, type TemplateCredentials, TextGenerateOptions, TextToSpeech, type TextToSpeechConfig, TokenBucketRateLimiter, type TokenContentType, Tool, ToolCall, type ToolCategory, type ToolCondition, ToolContext, ToolExecutionError, ToolExecutionPipeline, type ToolExecutionPipelineOptions, ToolFunction, ToolManager, type ToolManagerConfig, type ToolManagerEvent, type ToolManagerStats, type ToolMetadata, ToolNotFoundError, type ToolOptions, type ToolPermissionConfig, ToolPermissionManager, type ToolRegistration, ToolRegistry, type ToolRegistryEntry, ToolResult, type ToolSelectionContext, ToolTimeoutError, type TransportConfig, TruncateCompactor, VENDOR_ICON_MAP, VIDEO_MODELS, VIDEO_MODEL_REGISTRY, Vendor, type VendorInfo, type VendorLogo, VendorOptionSchema, type VendorRegistryEntry, type VendorTemplate, type VideoExtendOptions, type VideoGenerateOptions, VideoGeneration, type VideoGenerationCreateOptions, type VideoJob, type VideoModelCapabilities, type VideoModelPricing, type VideoResponse, type VideoStatus, type WordTimestamp, WorkingMemory, WorkingMemoryAccess, WorkingMemoryConfig, type WorkingMemoryEvents, type WorkingMemoryPluginConfig, WorkingMemoryPluginNextGen, type WriteFileResult, addJitter, allVendorTemplates, assertNotDestroyed, authenticatedFetch, backoffSequence, backoffWait, bash, buildAuthConfig, buildEndpointWithQuery, buildQueryString, calculateBackoff, calculateSTTCost, calculateTTSCost, calculateVideoCost, canTaskExecute, createAgentStorage, createAuthenticatedFetch, createBashTool, createConnectorFromTemplate, createCreatePRTool, createEditFileTool, createEstimator, createExecuteJavaScriptTool, createFileAgentDefinitionStorage, createFileContextStorage, createFileMediaStorage, createGetPRTool, createGitHubReadFileTool, createGlobTool, createGrepTool, createImageGenerationTool, createImageProvider, createListDirectoryTool, createMessageWithImages, createMetricsCollector, createPRCommentsTool, createPRFilesTool, createPlan, createProvider, createReadFileTool, createSearchCodeTool, createSearchFilesTool, createSpeechToTextTool, createTask, createTextMessage, createTextToSpeechTool, createVideoProvider, createVideoTools, createWriteFileTool, detectDependencyCycle, developerTools, editFile, evaluateCondition, extractJSON, extractJSONField, extractNumber, findConnectorByServiceTypes, generateEncryptionKey, generateSimplePlan, generateWebAPITool, getActiveSTTModels, getActiveTTSModels, getActiveVideoModels, getAllBuiltInTools, getAllVendorLogos, getAllVendorTemplates, getBackgroundOutput, getConnectorTools, getCredentialsSetupURL, getDocsURL, getMediaOutputHandler, getMediaStorage, getNextExecutableTasks, getRegisteredScrapeProviders, getSTTModelInfo, getSTTModelsByVendor, getSTTModelsWithFeature, getTTSModelInfo, getTTSModelsByVendor, getTTSModelsWithFeature, getTaskDependencies, getToolByName, getToolCategories, getToolRegistry, getToolsByCategory, getToolsRequiringConnector, getVendorAuthTemplate, getVendorColor, getVendorDefaultBaseURL, getVendorInfo, getVendorLogo, getVendorLogoCdnUrl, getVendorLogoSvg, getVendorTemplate, getVideoModelInfo, getVideoModelsByVendor, getVideoModelsWithAudio, getVideoModelsWithFeature, glob, globalErrorHandler, grep, hasClipboardImage, hasVendorLogo, isBlockedCommand, isExcludedExtension, isTaskBlocked, isTerminalStatus, killBackgroundProcess, listConnectorsByServiceTypes, listDirectory, listVendorIds, listVendors, listVendorsByAuthType, listVendorsByCategory, listVendorsWithLogos, logger, metrics, parseRepository, readClipboardImage, readFile, registerScrapeProvider, resolveConnector, resolveDependencies, resolveRepository, retryWithBackoff, setMediaOutputHandler, setMediaStorage, setMetricsCollector, simpleTokenEstimator, toConnectorOptions, toolRegistry, index as tools, updateTaskStatus, validatePath, writeFile };