@robota-sdk/agent-core 3.0.0-beta.60 → 3.0.0-beta.62

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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @robota-sdk/agent-core
2
2
 
3
+ ## 3.0.0-beta.62
4
+
5
+ ### Patch Changes
6
+
7
+ - Add CLI second-screen browser monitor (PLG-002)
8
+ - New `@robota-sdk/agent-web` package: WebSocket client, `useWsSession` hook, `SessionMonitor` component with Markdown rendering
9
+ - `--web` flag on `agent-cli`: starts WebSocket sidecar server and auto-opens browser monitor
10
+ - `--no-open` flag and `ROBOTA_NO_OPEN` env var to suppress browser launch
11
+ - `user_message` event added to `IInteractiveSessionEvents` so user prompts stream to browser in real-time
12
+ - `TServerMessage` protocol extended with `user_message` type
13
+
14
+ ## 3.0.0-beta.61
15
+
16
+ ### Patch Changes
17
+
18
+ - 1c0d44c: Align context usage estimation across session display, auto-compaction, and core hard-capacity guards so mid-window sessions do not block prematurely.
19
+ - 36eb7a9: Add provider-owned native replay payload hooks, replay validation coverage, and a session log validation command.
20
+ - d97bdf2: Add provider-owned model catalog metadata, route `/model` suggestions through the active provider, and make `cli:dev` resolve the CLI workspace dependency closure through source export conditions.
21
+
3
22
  ## 3.0.0-beta.60
4
23
 
5
24
  ### Minor Changes
package/README.md CHANGED
@@ -70,13 +70,18 @@ agent.setModel({ provider: 'openai', model: 'gpt-4o' });
70
70
  `run()` accepts `onExecutionEvent` in run options. The execution loop emits provider-neutral events that higher layers can persist as append-only session provenance:
71
71
 
72
72
  - `provider_request`
73
+ - `provider_native_raw_payload`
74
+ - `provider_stream_raw_delta`
75
+ - `provider_response_raw`
73
76
  - `provider_response_normalized`
74
77
  - `assistant_message_committed`
75
78
  - `tool_batch_started`
76
79
  - `tool_execution_request`
77
80
  - `tool_execution_result`
81
+ - `tool_message_committed`
82
+ - `history_mutation`
78
83
 
79
- Raw provider payload/chunk storage remains provider/session logging follow-up work so `agent-core` does not gain provider-specific branches.
84
+ Provider-specific SDK payload capture remains provider-owned. Providers may call `IChatOptions.onProviderNativeRawPayload` with exact SDK request, response, or stream event objects; `Robota` forwards those callbacks as provider-neutral `provider_native_raw_payload` execution events without importing concrete provider SDK types. `provider_response_raw.responseKind` remains `provider-normalized-message`, which keeps common replay validation provider-neutral.
80
85
 
81
86
  ## IAgentConfig
82
87
 
@@ -107,16 +112,17 @@ agent-cli ← Terminal UI
107
112
 
108
113
  ## Public API Surface
109
114
 
110
- | Category | Exports |
111
- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
112
- | **Core** | `Robota`, `ConversationStore`, `AbstractAgent`, `AbstractAIProvider` (+ `streamWithAbort`), `AbstractPlugin`, `AbstractTool`, `AbstractExecutor`, `LocalExecutor`, `getProviderCapabilities`, `assertProviderNativeWebToolsAvailable` |
113
- | **Permissions** | `evaluatePermission`, `MODE_POLICY`, `TRUST_TO_MODE`, `UNKNOWN_TOOL_FALLBACK`, `TPermissionMode`, `TTrustLevel`, `TPermissionDecision`, `TToolArgs`, `IPermissionLists`, `TKnownToolName` |
114
- | **Hooks** | `runHooks`, `CommandExecutor`, `HttpExecutor`, `IHookTypeExecutor`, `THookEvent`, `THooksConfig`, `IHookGroup`, `IHookDefinition`, `IHookInput`, `IHookResult` |
115
- | **Events** | `EventEmitterPlugin`, `IEventService`, `IOwnerPathSegment` |
116
- | **Models** | `CLAUDE_MODELS`, `DEFAULT_CONTEXT_WINDOW`, `DEFAULT_MAX_OUTPUT`, `getModelContextWindow()`, `getModelMaxOutput()`, `getModelName()`, `formatTokenCount()`, `IModelDefinition` |
117
- | **Types** | `TUniversalMessage`, `IBaseMessage` (`id`, `state`), `TMessageState`, `IAgentConfig`, `IAIProvider`, `IProviderCapabilities`, `IProviderNativeWebToolRequest`, `IToolSchema`, `IContextWindowState`, `IContextTokenUsage`, `TTextDeltaCallback` |
118
- | **Errors** | `RobotaError`, `ProviderError`, `RateLimitError`, `AuthenticationError`, `ToolExecutionError`, etc. |
119
- | **Managers** | `AgentFactory`, `AgentTemplates`, `ConversationHistory`, `EventHistoryModule` |
115
+ | Category | Exports |
116
+ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
117
+ | **Core** | `Robota`, `ConversationStore`, `AbstractAgent`, `AbstractAIProvider` (+ `streamWithAbort`), `AbstractPlugin`, `AbstractTool`, `AbstractExecutor`, `LocalExecutor`, `getProviderCapabilities`, `assertProviderNativeWebToolsAvailable` |
118
+ | **Permissions** | `evaluatePermission`, `MODE_POLICY`, `TRUST_TO_MODE`, `UNKNOWN_TOOL_FALLBACK`, `TPermissionMode`, `TTrustLevel`, `TPermissionDecision`, `TToolArgs`, `IPermissionLists`, `TKnownToolName` |
119
+ | **Hooks** | `runHooks`, `CommandExecutor`, `HttpExecutor`, `IHookTypeExecutor`, `THookEvent`, `THooksConfig`, `IHookGroup`, `IHookDefinition`, `IHookInput`, `IHookResult` |
120
+ | **Events** | `EventEmitterPlugin`, `IEventService`, `IOwnerPathSegment` |
121
+ | **Models** | `CLAUDE_MODELS`, `DEFAULT_CONTEXT_WINDOW`, `DEFAULT_MAX_OUTPUT`, `getModelContextWindow()`, `getModelMaxOutput()`, `getModelName()`, `formatTokenCount()`, `IModelDefinition` |
122
+ | **Context** | `estimateContextTokensFromMessages()`, `estimateSerializedContextTokens()`, `readTokenUsageFromMessage()`, `IContextTokenEstimate`, `IMessageTokenUsage`, `IContextWindowState`, `IContextTokenUsage` |
123
+ | **Types** | `TUniversalMessage`, `IBaseMessage` (`id`, `state`), `TMessageState`, `IAgentConfig`, `IAIProvider`, `IProviderCapabilities`, `IProviderNativeWebToolRequest`, `IToolSchema`, `TTextDeltaCallback` |
124
+ | **Errors** | `RobotaError`, `ProviderError`, `RateLimitError`, `AuthenticationError`, `ToolExecutionError`, etc. |
125
+ | **Managers** | `AgentFactory`, `AgentTemplates`, `ConversationHistory`, `EventHistoryModule` |
120
126
 
121
127
  ## What Moved Out in v3
122
128
 
@@ -367,6 +367,17 @@ interface IProviderSpecificOptions {
367
367
  * Called for each text chunk as the model generates output.
368
368
  */
369
369
  type TTextDeltaCallback = (delta: string) => void;
370
+ type TProviderNativeRawPayloadKind = 'request' | 'response' | 'stream_event';
371
+ type TProviderNativeRawPayload = string | number | boolean | object | null | undefined;
372
+ interface IProviderNativeRawPayloadEvent {
373
+ provider: string;
374
+ apiSurface?: string;
375
+ payloadKind: TProviderNativeRawPayloadKind;
376
+ payload: TProviderNativeRawPayload;
377
+ sequence?: number;
378
+ metadata?: Record<string, TProviderConfigValue>;
379
+ }
380
+ type TProviderNativeRawPayloadCallback = (event: IProviderNativeRawPayloadEvent) => void;
370
381
  /**
371
382
  * Options for AI provider chat requests
372
383
  */
@@ -383,6 +394,8 @@ interface IChatOptions extends IProviderSpecificOptions {
383
394
  * should use streaming internally and call this for each text chunk,
384
395
  * while still returning the complete assembled message. */
385
396
  onTextDelta?: TTextDeltaCallback;
397
+ /** Callback for provider-owned native SDK request/response/stream payload capture. */
398
+ onProviderNativeRawPayload?: TProviderNativeRawPayloadCallback;
386
399
  /** AbortSignal for cancelling the provider call */
387
400
  signal?: AbortSignal;
388
401
  /** Provider-native hosted web tools requested for this call */
@@ -1756,7 +1769,43 @@ interface IProviderProbeResult {
1756
1769
  message: string;
1757
1770
  models?: string[];
1758
1771
  }
1759
- type TProviderSetupField = 'baseURL' | 'model' | 'apiKey';
1772
+ type TProviderCredentialField = 'apiKey';
1773
+ type TProviderSetupField = 'baseURL' | 'model' | TProviderCredentialField;
1774
+ type TProviderSetupHelpLinkKind = 'api-key' | 'console' | 'official';
1775
+ interface IProviderCredentialRequirement {
1776
+ anyOf: readonly TProviderCredentialField[];
1777
+ }
1778
+ interface IProviderSetupHelpLink {
1779
+ kind: TProviderSetupHelpLinkKind;
1780
+ label: string;
1781
+ url: string;
1782
+ sourceUrl?: string;
1783
+ lastVerifiedAt?: string;
1784
+ }
1785
+ type TProviderModelCatalogStatus = 'live' | 'generated' | 'fallback' | 'unavailable';
1786
+ type TProviderModelLifecycle = 'active' | 'preview' | 'deprecated' | 'unavailable';
1787
+ type TProviderModelCapability = 'tools' | 'vision' | 'json_schema' | 'reasoning' | 'native_web' | 'streaming';
1788
+ interface IProviderModelCatalogEntry {
1789
+ id: string;
1790
+ displayName: string;
1791
+ aliases?: readonly string[];
1792
+ contextWindow?: number;
1793
+ capabilities?: readonly TProviderModelCapability[];
1794
+ lifecycle?: TProviderModelLifecycle;
1795
+ lastVerifiedAt?: string;
1796
+ sourceUrl?: string;
1797
+ }
1798
+ interface IProviderModelCatalog {
1799
+ status: TProviderModelCatalogStatus;
1800
+ entries?: readonly IProviderModelCatalogEntry[];
1801
+ lastVerifiedAt?: string;
1802
+ sourceUrl?: string;
1803
+ message?: string;
1804
+ }
1805
+ interface IProviderModelCatalogRefreshOptions {
1806
+ profile: IProviderProfileConfig;
1807
+ }
1808
+ type TProviderModelCatalogRefresh = (options: IProviderModelCatalogRefreshOptions) => Promise<IProviderModelCatalog>;
1760
1809
  interface IProviderSetupStepDefinition {
1761
1810
  key: TProviderSetupField;
1762
1811
  title: string;
@@ -1770,13 +1819,18 @@ interface IProviderDefinition {
1770
1819
  displayName?: string;
1771
1820
  description?: string;
1772
1821
  defaults?: IProviderProfileDefaults;
1822
+ modelCatalog?: IProviderModelCatalog;
1823
+ refreshModelCatalog?: TProviderModelCatalogRefresh;
1824
+ setupHelpLinks?: readonly IProviderSetupHelpLink[];
1773
1825
  setupSteps?: readonly IProviderSetupStepDefinition[];
1826
+ credentialRequirement?: IProviderCredentialRequirement;
1774
1827
  requiresApiKey?: boolean;
1775
1828
  createProvider: (config: IProviderConfig$1) => IAIProvider;
1776
1829
  probeProfile?: (profile: IProviderProfileConfig) => Promise<IProviderProbeResult>;
1777
1830
  }
1778
1831
  declare function findProviderDefinition(definitions: readonly IProviderDefinition[], type: string): IProviderDefinition | undefined;
1779
1832
  declare function formatSupportedProviderTypes(definitions: readonly IProviderDefinition[]): string;
1833
+ declare function getProviderCredentialRequirement(definition: IProviderDefinition | undefined): IProviderCredentialRequirement | undefined;
1780
1834
 
1781
1835
  /**
1782
1836
  * Provider-agnostic media output reference.
@@ -4400,6 +4454,28 @@ interface IContextWindowState {
4400
4454
  remainingPercentage: number;
4401
4455
  }
4402
4456
 
4457
+ declare const CONTEXT_ESTIMATE_CHARS_PER_TOKEN = 4;
4458
+ interface IContextTokenEstimateOptions {
4459
+ readonly usageFloorTokens?: number;
4460
+ }
4461
+ interface IContextTokenEstimate {
4462
+ readonly usedTokens: number;
4463
+ readonly serializedTokens: number;
4464
+ readonly providerTokens?: number;
4465
+ readonly usageFloorTokens?: number;
4466
+ }
4467
+ declare function estimateSerializedContextTokens(messages: readonly TUniversalMessage[]): number;
4468
+ declare function estimateContextTokensFromMessages(messages: readonly TUniversalMessage[], options?: IContextTokenEstimateOptions): IContextTokenEstimate;
4469
+
4470
+ interface IMessageTokenUsage {
4471
+ readonly inputTokens: number;
4472
+ readonly outputTokens: number;
4473
+ readonly totalTokens?: number;
4474
+ }
4475
+ /** Read normalized provider usage from a universal message when present. */
4476
+ declare function readTokenUsageFromMessage(message: TUniversalMessage): IMessageTokenUsage | undefined;
4477
+ declare function readTokenUsageFromMetadata(metadata: TUniversalMessageMetadata | undefined): IMessageTokenUsage | undefined;
4478
+
4403
4479
  /**
4404
4480
  * Claude model definitions — SSOT for model metadata.
4405
4481
  * Source: https://platform.claude.com/docs/en/about-claude/models/overview
@@ -4507,6 +4583,8 @@ interface IHookInput {
4507
4583
  agent_type?: string;
4508
4584
  /** Subagent transcript path when available (SubagentStop only) */
4509
4585
  agent_transcript_path?: string;
4586
+ /** Claude Code permission mode at time of event (e.g. "default", "plan", "acceptEdits", "bypassPermissions") */
4587
+ permission_mode?: string;
4510
4588
  /** Additional environment variables to pass to hook child processes */
4511
4589
  env?: Record<string, string>;
4512
4590
  }
@@ -4535,26 +4613,36 @@ interface IHookTypeExecutor {
4535
4613
  * - 0: allow/proceed
4536
4614
  * - 2: block/deny (stderr contains reason)
4537
4615
  * - other: proceed (logged as warning)
4616
+ *
4617
+ * stdout JSON semantics (Claude Code compatible):
4618
+ * - { continue: false } → block, regardless of exit code
4619
+ * - PreToolUse: { hookSpecificOutput: { permissionDecision, updatedInput } }
4620
+ * - UserPromptSubmit: { decision: "block" } → block; hookSpecificOutput.additionalContext → injected into stdout
4538
4621
  */
4539
4622
 
4623
+ /** Result of running hooks for an event. */
4624
+ interface IRunHooksResult {
4625
+ blocked: boolean;
4626
+ reason?: string;
4627
+ /** Collected stdout from all successful hooks (exit code 0). */
4628
+ stdout: string;
4629
+ /** Parsed updatedInput from PreToolUse hookSpecificOutput (PreToolUse only). */
4630
+ updatedInput?: Record<string, unknown>;
4631
+ /** Highest-priority permissionDecision from PreToolUse hooks (PreToolUse only). */
4632
+ permissionDecision?: 'allow' | 'deny' | 'ask' | 'defer';
4633
+ }
4540
4634
  /**
4541
4635
  * Run all hooks for a given event.
4542
4636
  *
4543
- * For PreToolUse: if any hook returns exit code 2, the tool call is blocked.
4544
- * Returns { blocked: true, reason: string } if blocked, { blocked: false } otherwise.
4637
+ * For PreToolUse: if any hook returns exit code 2 or JSON deny, the tool call is blocked.
4638
+ * JSON stdout responses are parsed and applied per Claude Code spec.
4639
+ * Returns { blocked: true, reason } if blocked, otherwise { blocked: false, stdout }.
4545
4640
  *
4546
4641
  * @param config - Hooks configuration mapping events to hook groups
4547
4642
  * @param event - The lifecycle event being fired
4548
4643
  * @param input - Hook input data passed to executors
4549
4644
  * @param executors - Optional array of hook type executors (defaults to command + http)
4550
4645
  */
4551
- /** Result of running hooks for an event. */
4552
- interface IRunHooksResult {
4553
- blocked: boolean;
4554
- reason?: string;
4555
- /** Collected stdout from all successful hooks (exit code 0). */
4556
- stdout: string;
4557
- }
4558
4646
  declare function runHooks(config: THooksConfig | undefined, event: THookEvent, input: IHookInput, executors?: IHookTypeExecutor[]): Promise<IRunHooksResult>;
4559
4647
 
4560
- export { AGENT_EVENTS, AGENT_EVENT_PREFIX, AbstractAIProvider, AbstractAgent, AbstractEventService, AbstractExecutor, AbstractManager, AbstractPlugin, AbstractTool, AgentFactory, AgentTemplates, AuthenticationError, CLAUDE_MODELS, CacheIntegrityError, CircuitBreakerOpenError, ConfigurationError, ConsoleLogger, ConversationHistory, ConversationStore, DEFAULT_ABSTRACT_EVENT_SERVICE, DEFAULT_CONTEXT_WINDOW, DEFAULT_MAX_OUTPUT, DefaultEventService, EVENT_EMITTER_EVENTS, EXECUTION_EVENTS, EXECUTION_EVENT_PREFIX, ErrorUtils, EventEmitterPlugin, EventHistoryModule, ExecutionProxy, type IAIProvider, type IAIProviderInstance, type IAIProviderManager, type IAbstractTool, type IAbstractToolOptions, type IAgent, type IAgentConfig, type IAgentCreationOptions, type IAgentCreationStats, type IAgentEventData, type IAgentFactory, type IAgentFactoryOptions, type IAgentHookDefinition, type IAgentLifecycleEvents, type IAgentTemplate, type IAssistantMessage, type IAssistantUsageMetadata, type IBaseEventData, type IBaseMessage, type ICacheEntry, type ICacheKey, type ICacheOptions, type ICacheStats, type ICacheStorage, type IChatExecutionRequest, type IChatOptions, type ICommandHookDefinition, type IConfigValidationResult, type IContextOptions, type IContextTokenUsage, type IContextWindowState, type IConversationContext, type IConversationResponse, type IConversationService, type IConversationServiceOptions, type IEventContext, type IEventEmitterEventData, type IEventEmitterHierarchicalEventData, type IEventEmitterMetrics, type IEventEmitterMetricsSnapshot, type IEventEmitterPlugin, type IEventEmitterPluginOptions, type IEventHistoryModule, type IEventHistoryRecord, type IEventHistorySnapshot, type IEventObjectValue, type IEventService, type IEventServiceOwnerBinding, type IExecutionEventData, type IExecutionService, type IExecutionServiceOptions, type IExecutor, type IExecutorAwareProviderConfig, type IFunctionTool, type IHistoryEntry, type IHookDefinition, type IHookGroup, type IHookInput, type IHookResult, type IHookTypeExecutor, type IHttpHookDefinition, type IImageComposeRequest, type IImageEditRequest, type IImageGenerationProvider, type IImageGenerationRequest, type IImageGenerationResult, type IInlineImageInputSource, type IInlineImageMessagePart, type ILocalExecutorConfig, type ILogger, type IMCPToolConfig, type IMediaOutputRef, type IModelDefinition, type IOpenAPIToolConfig, type IOwnerPathSegment, type IParameterSchema, type IParameterValidationResult, type IPermissionLists, type IPlugin, type IPluginConfig, type IPluginContext, type IPluginContract, type IPluginData, type IPluginErrorContext, type IPluginExecutionContext, type IPluginExecutionResult, type IPluginHooks, type IPluginOptions, type IPluginStats, type IProgressReportingTool, type IPromptHookDefinition, type IProviderCapabilities, type IProviderConfig$1 as IProviderConfig, type IProviderDefinition, type IProviderFunctionCallingCapability, type IProviderMediaError, type IProviderNativeWebToolCapabilities, type IProviderNativeWebToolCapability, type IProviderNativeWebToolRequest, type IProviderOptions, type IProviderProbeResult, type IProviderProfileConfig, type IProviderProfileDefaults, type IProviderRequest, type IProviderSetupStepDefinition, type IProviderSpecificOptions, type IRawProviderResponse, type IRemoteExecutorConfig, type IRunOptions, type ISimpleValidationResult, type IStreamExecutionRequest, type IStreamingChunk, type ISystemMessage, type ITemplateApplicationResult, type ITextMessagePart, type ITokenUsage, type ITool, type IToolCall, type IToolContract, type IToolEventData, type IToolExecutionContext, type IToolExecutionRequest, type IToolExecutionResult, type IToolExecutionService, type IToolExecutionStep, type IToolFactory, type IToolManager, type IToolMessage, type IToolRegistry, type IToolResult, type IToolSchema, type IToolWithEventService, type IUniversalObjectValue, type IUriImageInputSource, type IUriImageMessagePart, type IUserMessage, type IUtilLogEntry, type IValidationIssue, type IValidationOptions, type IValidationResult, type IVideoGenerationProvider, type IVideoGenerationRequest, type IVideoJobAccepted, type IVideoJobSnapshot, type IWorkflowConfig, type IWorkflowConversionOptions, type IWorkflowConversionResult, type IWorkflowConverter, type IWorkflowData, type IWorkflowMetadata, type IWorkflowValidator, InMemoryEventEmitterMetrics, LocalExecutor, MODE_POLICY, MessageConverter, ModelNotAvailableError, NetworkError, ObservableEventService, PluginCategory, PluginError, PluginPriority, ProviderError, RateLimitError, Robota, RobotaError, SilentLogger, StorageError, StructuredEventService, TASK_EVENTS, TASK_EVENT_PREFIX, type TAgentCreationMetadata, type TComplexConfigValue, type TConfigData, type TConfigValue, type TContextData, type TConversationContextMetadata, type TErrorContextData, type TErrorExternalInput, type TEventEmitterListener, type TEventExtensionValue, type TEventListener, type TEventLoggerData, type TEventName, type TEventUniversalValue, type TExecutionEventName, type TExecutionMetadata, type THookEvent, type THooksConfig, type TImageInputSource, type TJSONSchemaEnum, type TJSONSchemaKind, type TKnownToolName, type TLoggerData, type TManagerToolParameters, type TMessageConverterRegistry, type TMessageFormatConverter, type TMessageState, type TMetadata, type TMetadataValue, TOOL_EVENTS, TOOL_EVENT_PREFIX, type TParameterDefaultValue, type TPermissionDecision, type TPermissionMode, type TPrimitiveValue, type TProviderConfigValue, type TProviderLoggingData, type TProviderMediaResult, type TProviderMessage, type TProviderOptionValueBase, type TProviderSetupField, TRUST_TO_MODE, type TResponseMetadata, type TSessionEndReason, type TTextDeltaCallback, type TTimerId, type TToolArgs, type TToolExecutionFunction, type TToolExecutionParameters, type TToolExecutor, type TToolMetadata, type TToolParameters, type TToolProgressCallback, type TTrustLevel, type TUniversalArrayValue, type TUniversalMessage, type TUniversalMessageMetadata, type TUniversalMessagePart, type TUniversalMessageRole, type TUniversalValue, type TUserEvent, type TUtilLogLevel, ToolExecutionError, TypeUtils, UNKNOWN_TOOL_FALLBACK, USER_EVENTS, USER_EVENT_PREFIX, ValidationError, ValidationSeverity, Validator, assertProviderNativeWebToolsAvailable, bindEventServiceOwner, bindWithOwnerPath, chatEntryToMessage, collectAssistantUsageMetadata, composeEventName, createAssistantMessage, createDefaultProviderCapabilities, createExecutionProxy, createLogger, createSystemMessage, createToolMessage, createUserMessage, evaluatePermission, findProviderDefinition, formatSupportedProviderTypes, formatTokenCount, getGlobalLogLevel, getMessagesForAPI, getModelContextWindow, getModelMaxOutput, getModelName, getProviderCapabilities, getToolEstimatedDuration, getToolExecutionSteps, isAssistantMessage, isChatEntry, isDefaultEventService, isImageGenerationProvider, isProgressReportingTool, isSystemMessage, isToolMessage, isUserMessage, isVideoGenerationProvider, logger, messageToHistoryEntry, runHooks, setGlobalLogLevel, setToolProgressCallback, startPeriodicTask, stopPeriodicTask, validateAgentConfig, validateApiKey, validateModelName, validateProviderName, validateUserInput, withEventEmission };
4648
+ export { AGENT_EVENTS, AGENT_EVENT_PREFIX, AbstractAIProvider, AbstractAgent, AbstractEventService, AbstractExecutor, AbstractManager, AbstractPlugin, AbstractTool, AgentFactory, AgentTemplates, AuthenticationError, CLAUDE_MODELS, CONTEXT_ESTIMATE_CHARS_PER_TOKEN, CacheIntegrityError, CircuitBreakerOpenError, ConfigurationError, ConsoleLogger, ConversationHistory, ConversationStore, DEFAULT_ABSTRACT_EVENT_SERVICE, DEFAULT_CONTEXT_WINDOW, DEFAULT_MAX_OUTPUT, DefaultEventService, EVENT_EMITTER_EVENTS, EXECUTION_EVENTS, EXECUTION_EVENT_PREFIX, ErrorUtils, EventEmitterPlugin, EventHistoryModule, ExecutionProxy, type IAIProvider, type IAIProviderInstance, type IAIProviderManager, type IAbstractTool, type IAbstractToolOptions, type IAgent, type IAgentConfig, type IAgentCreationOptions, type IAgentCreationStats, type IAgentEventData, type IAgentFactory, type IAgentFactoryOptions, type IAgentHookDefinition, type IAgentLifecycleEvents, type IAgentTemplate, type IAssistantMessage, type IAssistantUsageMetadata, type IBaseEventData, type IBaseMessage, type ICacheEntry, type ICacheKey, type ICacheOptions, type ICacheStats, type ICacheStorage, type IChatExecutionRequest, type IChatOptions, type ICommandHookDefinition, type IConfigValidationResult, type IContextOptions, type IContextTokenEstimate, type IContextTokenEstimateOptions, type IContextTokenUsage, type IContextWindowState, type IConversationContext, type IConversationResponse, type IConversationService, type IConversationServiceOptions, type IEventContext, type IEventEmitterEventData, type IEventEmitterHierarchicalEventData, type IEventEmitterMetrics, type IEventEmitterMetricsSnapshot, type IEventEmitterPlugin, type IEventEmitterPluginOptions, type IEventHistoryModule, type IEventHistoryRecord, type IEventHistorySnapshot, type IEventObjectValue, type IEventService, type IEventServiceOwnerBinding, type IExecutionEventData, type IExecutionService, type IExecutionServiceOptions, type IExecutor, type IExecutorAwareProviderConfig, type IFunctionTool, type IHistoryEntry, type IHookDefinition, type IHookGroup, type IHookInput, type IHookResult, type IHookTypeExecutor, type IHttpHookDefinition, type IImageComposeRequest, type IImageEditRequest, type IImageGenerationProvider, type IImageGenerationRequest, type IImageGenerationResult, type IInlineImageInputSource, type IInlineImageMessagePart, type ILocalExecutorConfig, type ILogger, type IMCPToolConfig, type IMediaOutputRef, type IMessageTokenUsage, type IModelDefinition, type IOpenAPIToolConfig, type IOwnerPathSegment, type IParameterSchema, type IParameterValidationResult, type IPermissionLists, type IPlugin, type IPluginConfig, type IPluginContext, type IPluginContract, type IPluginData, type IPluginErrorContext, type IPluginExecutionContext, type IPluginExecutionResult, type IPluginHooks, type IPluginOptions, type IPluginStats, type IProgressReportingTool, type IPromptHookDefinition, type IProviderCapabilities, type IProviderConfig$1 as IProviderConfig, type IProviderCredentialRequirement, type IProviderDefinition, type IProviderFunctionCallingCapability, type IProviderMediaError, type IProviderModelCatalog, type IProviderModelCatalogEntry, type IProviderModelCatalogRefreshOptions, type IProviderNativeRawPayloadEvent, type IProviderNativeWebToolCapabilities, type IProviderNativeWebToolCapability, type IProviderNativeWebToolRequest, type IProviderOptions, type IProviderProbeResult, type IProviderProfileConfig, type IProviderProfileDefaults, type IProviderRequest, type IProviderSetupHelpLink, type IProviderSetupStepDefinition, type IProviderSpecificOptions, type IRawProviderResponse, type IRemoteExecutorConfig, type IRunOptions, type ISimpleValidationResult, type IStreamExecutionRequest, type IStreamingChunk, type ISystemMessage, type ITemplateApplicationResult, type ITextMessagePart, type ITokenUsage, type ITool, type IToolCall, type IToolContract, type IToolEventData, type IToolExecutionContext, type IToolExecutionRequest, type IToolExecutionResult, type IToolExecutionService, type IToolExecutionStep, type IToolFactory, type IToolManager, type IToolMessage, type IToolRegistry, type IToolResult, type IToolSchema, type IToolWithEventService, type IUniversalObjectValue, type IUriImageInputSource, type IUriImageMessagePart, type IUserMessage, type IUtilLogEntry, type IValidationIssue, type IValidationOptions, type IValidationResult, type IVideoGenerationProvider, type IVideoGenerationRequest, type IVideoJobAccepted, type IVideoJobSnapshot, type IWorkflowConfig, type IWorkflowConversionOptions, type IWorkflowConversionResult, type IWorkflowConverter, type IWorkflowData, type IWorkflowMetadata, type IWorkflowValidator, InMemoryEventEmitterMetrics, LocalExecutor, MODE_POLICY, MessageConverter, ModelNotAvailableError, NetworkError, ObservableEventService, PluginCategory, PluginError, PluginPriority, ProviderError, RateLimitError, Robota, RobotaError, SilentLogger, StorageError, StructuredEventService, TASK_EVENTS, TASK_EVENT_PREFIX, type TAgentCreationMetadata, type TComplexConfigValue, type TConfigData, type TConfigValue, type TContextData, type TConversationContextMetadata, type TErrorContextData, type TErrorExternalInput, type TEventEmitterListener, type TEventExtensionValue, type TEventListener, type TEventLoggerData, type TEventName, type TEventUniversalValue, type TExecutionEventCallback, type TExecutionEventData, type TExecutionEventName, type TExecutionMetadata, type THookEvent, type THooksConfig, type TImageInputSource, type TJSONSchemaEnum, type TJSONSchemaKind, type TKnownToolName, type TLoggerData, type TManagerToolParameters, type TMessageConverterRegistry, type TMessageFormatConverter, type TMessageState, type TMetadata, type TMetadataValue, TOOL_EVENTS, TOOL_EVENT_PREFIX, type TParameterDefaultValue, type TPermissionDecision, type TPermissionMode, type TPrimitiveValue, type TProviderConfigValue, type TProviderCredentialField, type TProviderLoggingData, type TProviderMediaResult, type TProviderMessage, type TProviderModelCapability, type TProviderModelCatalogRefresh, type TProviderModelCatalogStatus, type TProviderModelLifecycle, type TProviderNativeRawPayload, type TProviderNativeRawPayloadCallback, type TProviderNativeRawPayloadKind, type TProviderOptionValueBase, type TProviderSetupField, type TProviderSetupHelpLinkKind, TRUST_TO_MODE, type TResponseMetadata, type TSessionEndReason, type TTextDeltaCallback, type TTimerId, type TToolArgs, type TToolExecutionFunction, type TToolExecutionParameters, type TToolExecutor, type TToolMetadata, type TToolParameters, type TToolProgressCallback, type TTrustLevel, type TUniversalArrayValue, type TUniversalMessage, type TUniversalMessageMetadata, type TUniversalMessagePart, type TUniversalMessageRole, type TUniversalValue, type TUserEvent, type TUtilLogLevel, ToolExecutionError, TypeUtils, UNKNOWN_TOOL_FALLBACK, USER_EVENTS, USER_EVENT_PREFIX, ValidationError, ValidationSeverity, Validator, assertProviderNativeWebToolsAvailable, bindEventServiceOwner, bindWithOwnerPath, chatEntryToMessage, collectAssistantUsageMetadata, composeEventName, createAssistantMessage, createDefaultProviderCapabilities, createExecutionProxy, createLogger, createSystemMessage, createToolMessage, createUserMessage, estimateContextTokensFromMessages, estimateSerializedContextTokens, evaluatePermission, findProviderDefinition, formatSupportedProviderTypes, formatTokenCount, getGlobalLogLevel, getMessagesForAPI, getModelContextWindow, getModelMaxOutput, getModelName, getProviderCapabilities, getProviderCredentialRequirement, getToolEstimatedDuration, getToolExecutionSteps, isAssistantMessage, isChatEntry, isDefaultEventService, isImageGenerationProvider, isProgressReportingTool, isSystemMessage, isToolMessage, isUserMessage, isVideoGenerationProvider, logger, messageToHistoryEntry, readTokenUsageFromMessage, readTokenUsageFromMetadata, runHooks, setGlobalLogLevel, setToolProgressCallback, startPeriodicTask, stopPeriodicTask, validateAgentConfig, validateApiKey, validateModelName, validateProviderName, validateUserInput, withEventEmission };