@everworker/oneringai 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1029,6 +1029,22 @@ console.log(detailed.words); // [{ word, start, end }, ...]
1029
1029
  const english = await stt.translate(frenchAudio);
1030
1030
  ```
1031
1031
 
1032
+ **Streaming TTS** — for real-time voice applications:
1033
+
1034
+ ```typescript
1035
+ // Stream audio chunks as they arrive from the API
1036
+ for await (const chunk of tts.synthesizeStream('Hello!', { format: 'pcm' })) {
1037
+ if (chunk.audio.length > 0) playPCMChunk(chunk.audio); // 24kHz 16-bit LE mono
1038
+ if (chunk.isFinal) break;
1039
+ }
1040
+
1041
+ // VoiceStream wraps agent text streams with interleaved audio events
1042
+ const voice = VoiceStream.create({
1043
+ ttsConnector: 'openai', ttsModel: 'tts-1-hd', voice: 'nova',
1044
+ });
1045
+ for await (const event of voice.wrap(agent.stream('Tell me a story'))) { ... }
1046
+ ```
1047
+
1032
1048
  **Available Models:**
1033
1049
  - **TTS**: OpenAI (`tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`), Google (`gemini-tts`)
1034
1050
  - **STT**: OpenAI (`whisper-1`, `gpt-4o-transcribe`), Groq (`whisper-large-v3` - 12x cheaper!)
@@ -1840,4 +1856,4 @@ MIT License - See [LICENSE](./LICENSE) file.
1840
1856
 
1841
1857
  ---
1842
1858
 
1843
- **Version:** 0.4.6 | **Last Updated:** 2026-03-04 | **[User Guide](./USER_GUIDE.md)** | **[API Reference](./API_REFERENCE.md)** | **[Changelog](./CHANGELOG.md)**
1859
+ **Version:** 0.4.7 | **Last Updated:** 2026-03-10 | **[User Guide](./USER_GUIDE.md)** | **[API Reference](./API_REFERENCE.md)** | **[Changelog](./CHANGELOG.md)**
@@ -1,4 +1,4 @@
1
- export { a3 as AfterToolContext, a4 as AgentEventName, w as AgentEvents, a5 as AgenticLoopEventName, a6 as AgenticLoopEvents, a7 as ApprovalResult, a8 as ApproveToolContext, z as AuditEntry, a9 as BeforeToolContext, be as ExecutionCompleteEvent, al as ExecutionConfig, E as ExecutionContext, y as ExecutionMetrics, bf as ExecutionStartEvent, v as HistoryMode, am as Hook, H as HookConfig, an as HookManager, D as HookName, bg as LLMRequestEvent, bh as LLMResponseEvent, aw as ModifyingHook, bi as ToolCompleteEvent, aU as ToolModification, bj as ToolStartEvent } from '../../index-DJ-qAK15.cjs';
1
+ export { a4 as AfterToolContext, a5 as AgentEventName, w as AgentEvents, a6 as AgenticLoopEventName, a7 as AgenticLoopEvents, a8 as ApprovalResult, a9 as ApproveToolContext, z as AuditEntry, ac as BeforeToolContext, bk as ExecutionCompleteEvent, ao as ExecutionConfig, E as ExecutionContext, y as ExecutionMetrics, bl as ExecutionStartEvent, v as HistoryMode, ap as Hook, H as HookConfig, aq as HookManager, D as HookName, bm as LLMRequestEvent, bn as LLMResponseEvent, az as ModifyingHook, bo as ToolCompleteEvent, aX as ToolModification, bp as ToolStartEvent } from '../../index-D8RCwpK9.cjs';
2
2
  import '../../IProvider-B8sqUzJG.cjs';
3
3
  import '../../Vendor-DYh_bzwo.cjs';
4
4
  import 'eventemitter3';
@@ -1,4 +1,4 @@
1
- export { a3 as AfterToolContext, a4 as AgentEventName, w as AgentEvents, a5 as AgenticLoopEventName, a6 as AgenticLoopEvents, a7 as ApprovalResult, a8 as ApproveToolContext, z as AuditEntry, a9 as BeforeToolContext, be as ExecutionCompleteEvent, al as ExecutionConfig, E as ExecutionContext, y as ExecutionMetrics, bf as ExecutionStartEvent, v as HistoryMode, am as Hook, H as HookConfig, an as HookManager, D as HookName, bg as LLMRequestEvent, bh as LLMResponseEvent, aw as ModifyingHook, bi as ToolCompleteEvent, aU as ToolModification, bj as ToolStartEvent } from '../../index-oBtp-8Qn.js';
1
+ export { a4 as AfterToolContext, a5 as AgentEventName, w as AgentEvents, a6 as AgenticLoopEventName, a7 as AgenticLoopEvents, a8 as ApprovalResult, a9 as ApproveToolContext, z as AuditEntry, ac as BeforeToolContext, bk as ExecutionCompleteEvent, ao as ExecutionConfig, E as ExecutionContext, y as ExecutionMetrics, bl as ExecutionStartEvent, v as HistoryMode, ap as Hook, H as HookConfig, aq as HookManager, D as HookName, bm as LLMRequestEvent, bn as LLMResponseEvent, az as ModifyingHook, bo as ToolCompleteEvent, aX as ToolModification, bp as ToolStartEvent } from '../../index-Blci0FEd.js';
2
2
  import '../../IProvider-CxDUGl6n.js';
3
3
  import '../../Vendor-DYh_bzwo.js';
4
4
  import 'eventemitter3';
@@ -1809,7 +1809,10 @@ declare enum StreamEventType {
1809
1809
  REASONING_DELTA = "response.reasoning.delta",
1810
1810
  REASONING_DONE = "response.reasoning.done",
1811
1811
  RESPONSE_COMPLETE = "response.complete",
1812
- ERROR = "response.error"
1812
+ ERROR = "response.error",
1813
+ AUDIO_CHUNK_READY = "response.audio_chunk.ready",
1814
+ AUDIO_CHUNK_ERROR = "response.audio_chunk.error",
1815
+ AUDIO_STREAM_COMPLETE = "response.audio_stream.complete"
1813
1816
  }
1814
1817
  /**
1815
1818
  * Base interface for all stream events
@@ -1950,11 +1953,49 @@ interface ErrorEvent extends BaseStreamEvent {
1950
1953
  };
1951
1954
  recoverable: boolean;
1952
1955
  }
1956
+ /**
1957
+ * Audio chunk ready - TTS synthesis complete for a text chunk
1958
+ */
1959
+ interface AudioChunkReadyEvent extends BaseStreamEvent {
1960
+ type: StreamEventType.AUDIO_CHUNK_READY;
1961
+ /** Sequential index for ordered playback */
1962
+ chunk_index: number;
1963
+ /** Sub-chunk index within a chunk (for streaming TTS mode) */
1964
+ sub_index?: number;
1965
+ /** Source text that was synthesized */
1966
+ text: string;
1967
+ /** Audio data as base64 string (survives JSON/IPC serialization) */
1968
+ audio_base64: string;
1969
+ /** Audio format */
1970
+ format: string;
1971
+ /** Duration in seconds (if available from TTS provider) */
1972
+ duration_seconds?: number;
1973
+ /** Characters used for this chunk */
1974
+ characters_used?: number;
1975
+ }
1976
+ /**
1977
+ * Audio chunk error - TTS synthesis failed for a text chunk
1978
+ */
1979
+ interface AudioChunkErrorEvent extends BaseStreamEvent {
1980
+ type: StreamEventType.AUDIO_CHUNK_ERROR;
1981
+ chunk_index: number;
1982
+ text: string;
1983
+ error: string;
1984
+ }
1985
+ /**
1986
+ * Audio stream complete - all TTS chunks have been processed
1987
+ */
1988
+ interface AudioStreamCompleteEvent extends BaseStreamEvent {
1989
+ type: StreamEventType.AUDIO_STREAM_COMPLETE;
1990
+ total_chunks: number;
1991
+ total_characters: number;
1992
+ total_duration_seconds?: number;
1993
+ }
1953
1994
  /**
1954
1995
  * Union type of all stream events
1955
1996
  * Discriminated by 'type' field for type narrowing
1956
1997
  */
1957
- type StreamEvent = ResponseCreatedEvent | ResponseInProgressEvent | OutputTextDeltaEvent | OutputTextDoneEvent | ReasoningDeltaEvent | ReasoningDoneEvent | ToolCallStartEvent | ToolCallArgumentsDeltaEvent | ToolCallArgumentsDoneEvent | ToolExecutionStartEvent | ToolExecutionDoneEvent | IterationCompleteEvent$1 | ResponseCompleteEvent | ErrorEvent;
1998
+ type StreamEvent = ResponseCreatedEvent | ResponseInProgressEvent | OutputTextDeltaEvent | OutputTextDoneEvent | ReasoningDeltaEvent | ReasoningDoneEvent | ToolCallStartEvent | ToolCallArgumentsDeltaEvent | ToolCallArgumentsDoneEvent | ToolExecutionStartEvent | ToolExecutionDoneEvent | IterationCompleteEvent$1 | ResponseCompleteEvent | ErrorEvent | AudioChunkReadyEvent | AudioChunkErrorEvent | AudioStreamCompleteEvent;
1958
1999
  /**
1959
2000
  * Type guard to check if event is a specific type
1960
2001
  */
@@ -1970,6 +2011,9 @@ declare function isReasoningDelta(event: StreamEvent): event is ReasoningDeltaEv
1970
2011
  declare function isReasoningDone(event: StreamEvent): event is ReasoningDoneEvent;
1971
2012
  declare function isResponseComplete(event: StreamEvent): event is ResponseCompleteEvent;
1972
2013
  declare function isErrorEvent(event: StreamEvent): event is ErrorEvent;
2014
+ declare function isAudioChunkReady(event: StreamEvent): event is AudioChunkReadyEvent;
2015
+ declare function isAudioChunkError(event: StreamEvent): event is AudioChunkErrorEvent;
2016
+ declare function isAudioStreamComplete(event: StreamEvent): event is AudioStreamCompleteEvent;
1973
2017
 
1974
2018
  /**
1975
2019
  * Text generation provider interface
@@ -2573,4 +2617,4 @@ declare class HookManager {
2573
2617
  getDisabledHooks(): string[];
2574
2618
  }
2575
2619
 
2576
- export { StreamEventType as $, type AgentContextNextGenConfig as A, type BeforeCompactionCallback as B, type ContextFeatures as C, type HookName as D, ExecutionContext as E, type FunctionToolDefinition as F, type ITokenEstimator as G, type HookConfig as H, type IContextStorage as I, type ToolCategoryScope as J, type CompactionContext as K, type LLMResponse as L, type MemoryEntry as M, type CompactionResult as N, type OutputItem as O, type PriorityCalculator as P, type StaleEntryInfo as Q, type PriorityContext as R, type SerializedContextState as S, type Tool as T, type MemoryIndex as U, type TaskStatusForMemory as V, type WorkingMemoryConfig as W, type WorkingMemoryAccess as X, type ContextStorageListOptions as Y, type ContextSessionSummary as Z, type TokenUsage as _, type MemoryScope as a, getToolCallDescription as a$, type TextGenerateOptions as a0, type ModelCapabilities as a1, MessageRole as a2, type AfterToolContext as a3, type AgentEventName as a4, type AgenticLoopEventName as a5, type AgenticLoopEvents as a6, type ApprovalResult as a7, type ApproveToolContext as a8, type BeforeToolContext as a9, type OversizedInputResult as aA, type PluginConfigs as aB, type ReasoningDeltaEvent as aC, type ReasoningDoneEvent as aD, type ReasoningItem as aE, type ResponseCompleteEvent as aF, type ResponseCreatedEvent as aG, type ResponseInProgressEvent as aH, type SimpleScope as aI, type TaskAwareScope as aJ, type ThinkingContent as aK, type ToolCallArgumentsDeltaEvent as aL, type ToolCallArgumentsDoneEvent as aM, type ToolCallStartEvent as aN, ToolCallState as aO, ToolCatalogRegistry as aP, type ToolCategoryDefinition as aQ, type ToolExecutionContext as aR, type ToolExecutionDoneEvent as aS, type ToolExecutionStartEvent as aT, type ToolModification as aU, type ToolResultContent as aV, type ToolUseContent as aW, calculateEntrySize as aX, defaultDescribeCall as aY, forPlan as aZ, forTasks as a_, type BuiltInTool as aa, CONTEXT_SESSION_FORMAT_VERSION as ab, type ToolRegistryEntry as ac, type CatalogToolEntry as ad, type CompactionItem as ae, type ConnectorCategoryInfo as af, ContentType as ag, DEFAULT_CONFIG as ah, DEFAULT_FEATURES as ai, DEFAULT_MEMORY_CONFIG as aj, type ErrorEvent as ak, type ExecutionConfig as al, type Hook as am, HookManager as an, type InputImageContent as ao, type InputTextContent as ap, type IterationCompleteEvent$1 as aq, type JSONSchema as ar, MEMORY_PRIORITY_VALUES as as, type MemoryEntryInput as at, type MemoryIndexEntry as au, type Message as av, type ModifyingHook as aw, type OutputTextContent as ax, type OutputTextDeltaEvent as ay, type OutputTextDoneEvent as az, type ToolFunction as b, isErrorEvent as b0, isOutputTextDelta as b1, isReasoningDelta as b2, isReasoningDone as b3, isResponseComplete as b4, isSimpleScope as b5, isStreamEvent as b6, isTaskAwareScope as b7, isTerminalMemoryStatus as b8, isToolCallArgumentsDelta as b9, isToolCallArgumentsDone as ba, isToolCallStart as bb, scopeEquals as bc, scopeMatches as bd, type ExecutionCompleteEvent as be, type ExecutionStartEvent as bf, type LLMRequestEvent as bg, type LLMResponseEvent as bh, type ToolCompleteEvent as bi, type ToolStartEvent as bj, type ToolContext as c, type ToolPermissionConfig as d, type ContextBudget as e, type ToolCall as f, type IContextPluginNextGen as g, type MemoryPriority as h, type MemoryTier as i, type ContextEvents as j, type AuthIdentity as k, type ICompactionStrategy as l, type InputItem as m, type Content as n, type PreparedContext as o, type ToolResult as p, type ConsolidationResult as q, type StoredContextSession as r, type ITextProvider as s, type ContextSessionMetadata as t, type StreamEvent as u, type HistoryMode as v, type AgentEvents as w, type AgentResponse as x, type ExecutionMetrics as y, type AuditEntry as z };
2620
+ export { type TokenUsage as $, type AgentContextNextGenConfig as A, type BeforeCompactionCallback as B, type ContextFeatures as C, type HookName as D, ExecutionContext as E, type FunctionToolDefinition as F, type ITokenEstimator as G, type HookConfig as H, type IContextStorage as I, type ToolCategoryScope as J, type CompactionContext as K, type LLMResponse as L, type MemoryEntry as M, type CompactionResult as N, type OutputItem as O, type PriorityCalculator as P, type AudioChunkReadyEvent as Q, type StaleEntryInfo as R, type SerializedContextState as S, type Tool as T, type PriorityContext as U, type MemoryIndex as V, type WorkingMemoryConfig as W, type TaskStatusForMemory as X, type WorkingMemoryAccess as Y, type ContextStorageListOptions as Z, type ContextSessionSummary as _, type MemoryScope as a, defaultDescribeCall as a$, StreamEventType as a0, type TextGenerateOptions as a1, type ModelCapabilities as a2, MessageRole as a3, type AfterToolContext as a4, type AgentEventName as a5, type AgenticLoopEventName as a6, type AgenticLoopEvents as a7, type ApprovalResult as a8, type ApproveToolContext as a9, type OutputTextContent as aA, type OutputTextDeltaEvent as aB, type OutputTextDoneEvent as aC, type OversizedInputResult as aD, type PluginConfigs as aE, type ReasoningDeltaEvent as aF, type ReasoningDoneEvent as aG, type ReasoningItem as aH, type ResponseCompleteEvent as aI, type ResponseCreatedEvent as aJ, type ResponseInProgressEvent as aK, type SimpleScope as aL, type TaskAwareScope as aM, type ThinkingContent as aN, type ToolCallArgumentsDeltaEvent as aO, type ToolCallArgumentsDoneEvent as aP, type ToolCallStartEvent as aQ, ToolCallState as aR, ToolCatalogRegistry as aS, type ToolCategoryDefinition as aT, type ToolExecutionContext as aU, type ToolExecutionDoneEvent as aV, type ToolExecutionStartEvent as aW, type ToolModification as aX, type ToolResultContent as aY, type ToolUseContent as aZ, calculateEntrySize as a_, type AudioChunkErrorEvent as aa, type AudioStreamCompleteEvent as ab, type BeforeToolContext as ac, type BuiltInTool as ad, CONTEXT_SESSION_FORMAT_VERSION as ae, type ToolRegistryEntry as af, type CatalogToolEntry as ag, type CompactionItem as ah, type ConnectorCategoryInfo as ai, ContentType as aj, DEFAULT_CONFIG as ak, DEFAULT_FEATURES as al, DEFAULT_MEMORY_CONFIG as am, type ErrorEvent as an, type ExecutionConfig as ao, type Hook as ap, HookManager as aq, type InputImageContent as ar, type InputTextContent as as, type IterationCompleteEvent$1 as at, type JSONSchema as au, MEMORY_PRIORITY_VALUES as av, type MemoryEntryInput as aw, type MemoryIndexEntry as ax, type Message as ay, type ModifyingHook as az, type ToolFunction as b, forPlan as b0, forTasks as b1, getToolCallDescription as b2, isAudioChunkError as b3, isAudioChunkReady as b4, isAudioStreamComplete as b5, isErrorEvent as b6, isOutputTextDelta as b7, isReasoningDelta as b8, isReasoningDone as b9, isResponseComplete as ba, isSimpleScope as bb, isStreamEvent as bc, isTaskAwareScope as bd, isTerminalMemoryStatus as be, isToolCallArgumentsDelta as bf, isToolCallArgumentsDone as bg, isToolCallStart as bh, scopeEquals as bi, scopeMatches as bj, type ExecutionCompleteEvent as bk, type ExecutionStartEvent as bl, type LLMRequestEvent as bm, type LLMResponseEvent as bn, type ToolCompleteEvent as bo, type ToolStartEvent as bp, type ToolContext as c, type ToolPermissionConfig as d, type ContextBudget as e, type ToolCall as f, type IContextPluginNextGen as g, type MemoryPriority as h, type MemoryTier as i, type ContextEvents as j, type AuthIdentity as k, type ICompactionStrategy as l, type InputItem as m, type Content as n, type PreparedContext as o, type ToolResult as p, type ConsolidationResult as q, type StoredContextSession as r, type ITextProvider as s, type ContextSessionMetadata as t, type StreamEvent as u, type HistoryMode as v, type AgentEvents as w, type AgentResponse as x, type ExecutionMetrics as y, type AuditEntry as z };
@@ -1809,7 +1809,10 @@ declare enum StreamEventType {
1809
1809
  REASONING_DELTA = "response.reasoning.delta",
1810
1810
  REASONING_DONE = "response.reasoning.done",
1811
1811
  RESPONSE_COMPLETE = "response.complete",
1812
- ERROR = "response.error"
1812
+ ERROR = "response.error",
1813
+ AUDIO_CHUNK_READY = "response.audio_chunk.ready",
1814
+ AUDIO_CHUNK_ERROR = "response.audio_chunk.error",
1815
+ AUDIO_STREAM_COMPLETE = "response.audio_stream.complete"
1813
1816
  }
1814
1817
  /**
1815
1818
  * Base interface for all stream events
@@ -1950,11 +1953,49 @@ interface ErrorEvent extends BaseStreamEvent {
1950
1953
  };
1951
1954
  recoverable: boolean;
1952
1955
  }
1956
+ /**
1957
+ * Audio chunk ready - TTS synthesis complete for a text chunk
1958
+ */
1959
+ interface AudioChunkReadyEvent extends BaseStreamEvent {
1960
+ type: StreamEventType.AUDIO_CHUNK_READY;
1961
+ /** Sequential index for ordered playback */
1962
+ chunk_index: number;
1963
+ /** Sub-chunk index within a chunk (for streaming TTS mode) */
1964
+ sub_index?: number;
1965
+ /** Source text that was synthesized */
1966
+ text: string;
1967
+ /** Audio data as base64 string (survives JSON/IPC serialization) */
1968
+ audio_base64: string;
1969
+ /** Audio format */
1970
+ format: string;
1971
+ /** Duration in seconds (if available from TTS provider) */
1972
+ duration_seconds?: number;
1973
+ /** Characters used for this chunk */
1974
+ characters_used?: number;
1975
+ }
1976
+ /**
1977
+ * Audio chunk error - TTS synthesis failed for a text chunk
1978
+ */
1979
+ interface AudioChunkErrorEvent extends BaseStreamEvent {
1980
+ type: StreamEventType.AUDIO_CHUNK_ERROR;
1981
+ chunk_index: number;
1982
+ text: string;
1983
+ error: string;
1984
+ }
1985
+ /**
1986
+ * Audio stream complete - all TTS chunks have been processed
1987
+ */
1988
+ interface AudioStreamCompleteEvent extends BaseStreamEvent {
1989
+ type: StreamEventType.AUDIO_STREAM_COMPLETE;
1990
+ total_chunks: number;
1991
+ total_characters: number;
1992
+ total_duration_seconds?: number;
1993
+ }
1953
1994
  /**
1954
1995
  * Union type of all stream events
1955
1996
  * Discriminated by 'type' field for type narrowing
1956
1997
  */
1957
- type StreamEvent = ResponseCreatedEvent | ResponseInProgressEvent | OutputTextDeltaEvent | OutputTextDoneEvent | ReasoningDeltaEvent | ReasoningDoneEvent | ToolCallStartEvent | ToolCallArgumentsDeltaEvent | ToolCallArgumentsDoneEvent | ToolExecutionStartEvent | ToolExecutionDoneEvent | IterationCompleteEvent$1 | ResponseCompleteEvent | ErrorEvent;
1998
+ type StreamEvent = ResponseCreatedEvent | ResponseInProgressEvent | OutputTextDeltaEvent | OutputTextDoneEvent | ReasoningDeltaEvent | ReasoningDoneEvent | ToolCallStartEvent | ToolCallArgumentsDeltaEvent | ToolCallArgumentsDoneEvent | ToolExecutionStartEvent | ToolExecutionDoneEvent | IterationCompleteEvent$1 | ResponseCompleteEvent | ErrorEvent | AudioChunkReadyEvent | AudioChunkErrorEvent | AudioStreamCompleteEvent;
1958
1999
  /**
1959
2000
  * Type guard to check if event is a specific type
1960
2001
  */
@@ -1970,6 +2011,9 @@ declare function isReasoningDelta(event: StreamEvent): event is ReasoningDeltaEv
1970
2011
  declare function isReasoningDone(event: StreamEvent): event is ReasoningDoneEvent;
1971
2012
  declare function isResponseComplete(event: StreamEvent): event is ResponseCompleteEvent;
1972
2013
  declare function isErrorEvent(event: StreamEvent): event is ErrorEvent;
2014
+ declare function isAudioChunkReady(event: StreamEvent): event is AudioChunkReadyEvent;
2015
+ declare function isAudioChunkError(event: StreamEvent): event is AudioChunkErrorEvent;
2016
+ declare function isAudioStreamComplete(event: StreamEvent): event is AudioStreamCompleteEvent;
1973
2017
 
1974
2018
  /**
1975
2019
  * Text generation provider interface
@@ -2573,4 +2617,4 @@ declare class HookManager {
2573
2617
  getDisabledHooks(): string[];
2574
2618
  }
2575
2619
 
2576
- export { StreamEventType as $, type AgentContextNextGenConfig as A, type BeforeCompactionCallback as B, type ContextFeatures as C, type HookName as D, ExecutionContext as E, type FunctionToolDefinition as F, type ITokenEstimator as G, type HookConfig as H, type IContextStorage as I, type ToolCategoryScope as J, type CompactionContext as K, type LLMResponse as L, type MemoryEntry as M, type CompactionResult as N, type OutputItem as O, type PriorityCalculator as P, type StaleEntryInfo as Q, type PriorityContext as R, type SerializedContextState as S, type Tool as T, type MemoryIndex as U, type TaskStatusForMemory as V, type WorkingMemoryConfig as W, type WorkingMemoryAccess as X, type ContextStorageListOptions as Y, type ContextSessionSummary as Z, type TokenUsage as _, type MemoryScope as a, getToolCallDescription as a$, type TextGenerateOptions as a0, type ModelCapabilities as a1, MessageRole as a2, type AfterToolContext as a3, type AgentEventName as a4, type AgenticLoopEventName as a5, type AgenticLoopEvents as a6, type ApprovalResult as a7, type ApproveToolContext as a8, type BeforeToolContext as a9, type OversizedInputResult as aA, type PluginConfigs as aB, type ReasoningDeltaEvent as aC, type ReasoningDoneEvent as aD, type ReasoningItem as aE, type ResponseCompleteEvent as aF, type ResponseCreatedEvent as aG, type ResponseInProgressEvent as aH, type SimpleScope as aI, type TaskAwareScope as aJ, type ThinkingContent as aK, type ToolCallArgumentsDeltaEvent as aL, type ToolCallArgumentsDoneEvent as aM, type ToolCallStartEvent as aN, ToolCallState as aO, ToolCatalogRegistry as aP, type ToolCategoryDefinition as aQ, type ToolExecutionContext as aR, type ToolExecutionDoneEvent as aS, type ToolExecutionStartEvent as aT, type ToolModification as aU, type ToolResultContent as aV, type ToolUseContent as aW, calculateEntrySize as aX, defaultDescribeCall as aY, forPlan as aZ, forTasks as a_, type BuiltInTool as aa, CONTEXT_SESSION_FORMAT_VERSION as ab, type ToolRegistryEntry as ac, type CatalogToolEntry as ad, type CompactionItem as ae, type ConnectorCategoryInfo as af, ContentType as ag, DEFAULT_CONFIG as ah, DEFAULT_FEATURES as ai, DEFAULT_MEMORY_CONFIG as aj, type ErrorEvent as ak, type ExecutionConfig as al, type Hook as am, HookManager as an, type InputImageContent as ao, type InputTextContent as ap, type IterationCompleteEvent$1 as aq, type JSONSchema as ar, MEMORY_PRIORITY_VALUES as as, type MemoryEntryInput as at, type MemoryIndexEntry as au, type Message as av, type ModifyingHook as aw, type OutputTextContent as ax, type OutputTextDeltaEvent as ay, type OutputTextDoneEvent as az, type ToolFunction as b, isErrorEvent as b0, isOutputTextDelta as b1, isReasoningDelta as b2, isReasoningDone as b3, isResponseComplete as b4, isSimpleScope as b5, isStreamEvent as b6, isTaskAwareScope as b7, isTerminalMemoryStatus as b8, isToolCallArgumentsDelta as b9, isToolCallArgumentsDone as ba, isToolCallStart as bb, scopeEquals as bc, scopeMatches as bd, type ExecutionCompleteEvent as be, type ExecutionStartEvent as bf, type LLMRequestEvent as bg, type LLMResponseEvent as bh, type ToolCompleteEvent as bi, type ToolStartEvent as bj, type ToolContext as c, type ToolPermissionConfig as d, type ContextBudget as e, type ToolCall as f, type IContextPluginNextGen as g, type MemoryPriority as h, type MemoryTier as i, type ContextEvents as j, type AuthIdentity as k, type ICompactionStrategy as l, type InputItem as m, type Content as n, type PreparedContext as o, type ToolResult as p, type ConsolidationResult as q, type StoredContextSession as r, type ITextProvider as s, type ContextSessionMetadata as t, type StreamEvent as u, type HistoryMode as v, type AgentEvents as w, type AgentResponse as x, type ExecutionMetrics as y, type AuditEntry as z };
2620
+ export { type TokenUsage as $, type AgentContextNextGenConfig as A, type BeforeCompactionCallback as B, type ContextFeatures as C, type HookName as D, ExecutionContext as E, type FunctionToolDefinition as F, type ITokenEstimator as G, type HookConfig as H, type IContextStorage as I, type ToolCategoryScope as J, type CompactionContext as K, type LLMResponse as L, type MemoryEntry as M, type CompactionResult as N, type OutputItem as O, type PriorityCalculator as P, type AudioChunkReadyEvent as Q, type StaleEntryInfo as R, type SerializedContextState as S, type Tool as T, type PriorityContext as U, type MemoryIndex as V, type WorkingMemoryConfig as W, type TaskStatusForMemory as X, type WorkingMemoryAccess as Y, type ContextStorageListOptions as Z, type ContextSessionSummary as _, type MemoryScope as a, defaultDescribeCall as a$, StreamEventType as a0, type TextGenerateOptions as a1, type ModelCapabilities as a2, MessageRole as a3, type AfterToolContext as a4, type AgentEventName as a5, type AgenticLoopEventName as a6, type AgenticLoopEvents as a7, type ApprovalResult as a8, type ApproveToolContext as a9, type OutputTextContent as aA, type OutputTextDeltaEvent as aB, type OutputTextDoneEvent as aC, type OversizedInputResult as aD, type PluginConfigs as aE, type ReasoningDeltaEvent as aF, type ReasoningDoneEvent as aG, type ReasoningItem as aH, type ResponseCompleteEvent as aI, type ResponseCreatedEvent as aJ, type ResponseInProgressEvent as aK, type SimpleScope as aL, type TaskAwareScope as aM, type ThinkingContent as aN, type ToolCallArgumentsDeltaEvent as aO, type ToolCallArgumentsDoneEvent as aP, type ToolCallStartEvent as aQ, ToolCallState as aR, ToolCatalogRegistry as aS, type ToolCategoryDefinition as aT, type ToolExecutionContext as aU, type ToolExecutionDoneEvent as aV, type ToolExecutionStartEvent as aW, type ToolModification as aX, type ToolResultContent as aY, type ToolUseContent as aZ, calculateEntrySize as a_, type AudioChunkErrorEvent as aa, type AudioStreamCompleteEvent as ab, type BeforeToolContext as ac, type BuiltInTool as ad, CONTEXT_SESSION_FORMAT_VERSION as ae, type ToolRegistryEntry as af, type CatalogToolEntry as ag, type CompactionItem as ah, type ConnectorCategoryInfo as ai, ContentType as aj, DEFAULT_CONFIG as ak, DEFAULT_FEATURES as al, DEFAULT_MEMORY_CONFIG as am, type ErrorEvent as an, type ExecutionConfig as ao, type Hook as ap, HookManager as aq, type InputImageContent as ar, type InputTextContent as as, type IterationCompleteEvent$1 as at, type JSONSchema as au, MEMORY_PRIORITY_VALUES as av, type MemoryEntryInput as aw, type MemoryIndexEntry as ax, type Message as ay, type ModifyingHook as az, type ToolFunction as b, forPlan as b0, forTasks as b1, getToolCallDescription as b2, isAudioChunkError as b3, isAudioChunkReady as b4, isAudioStreamComplete as b5, isErrorEvent as b6, isOutputTextDelta as b7, isReasoningDelta as b8, isReasoningDone as b9, isResponseComplete as ba, isSimpleScope as bb, isStreamEvent as bc, isTaskAwareScope as bd, isTerminalMemoryStatus as be, isToolCallArgumentsDelta as bf, isToolCallArgumentsDone as bg, isToolCallStart as bh, scopeEquals as bi, scopeMatches as bj, type ExecutionCompleteEvent as bk, type ExecutionStartEvent as bl, type LLMRequestEvent as bm, type LLMResponseEvent as bn, type ToolCompleteEvent as bo, type ToolStartEvent as bp, type ToolContext as c, type ToolPermissionConfig as d, type ContextBudget as e, type ToolCall as f, type IContextPluginNextGen as g, type MemoryPriority as h, type MemoryTier as i, type ContextEvents as j, type AuthIdentity as k, type ICompactionStrategy as l, type InputItem as m, type Content as n, type PreparedContext as o, type ToolResult as p, type ConsolidationResult as q, type StoredContextSession as r, type ITextProvider as s, type ContextSessionMetadata as t, type StreamEvent as u, type HistoryMode as v, type AgentEvents as w, type AgentResponse as x, type ExecutionMetrics as y, type AuditEntry as z };