@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 +17 -1
- package/dist/capabilities/agents/index.d.cts +1 -1
- package/dist/capabilities/agents/index.d.ts +1 -1
- package/dist/{index-oBtp-8Qn.d.ts → index-Blci0FEd.d.ts} +47 -3
- package/dist/{index-DJ-qAK15.d.cts → index-D8RCwpK9.d.cts} +47 -3
- package/dist/index.cjs +789 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +355 -4
- package/dist/index.d.ts +355 -4
- package/dist/index.js +784 -1
- package/dist/index.js.map +1 -1
- package/dist/shared/index.cjs +3 -0
- package/dist/shared/index.cjs.map +1 -1
- package/dist/shared/index.js +3 -0
- package/dist/shared/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { I as IConnectorRegistry, a as IConnectorAccessPolicy, C as ConnectorAccessContext, b as Connector, c as ConnectorConfig, d as ITokenStorage, e as IProvider, f as ConnectorFetchOptions, P as ProviderCapabilities, S as StoredToken$1, g as ConnectorAuth, h as ConnectorConfigResult } from './IProvider-CxDUGl6n.js';
|
|
2
2
|
export { A as APIKeyConnectorAuth, D as DEFAULT_BASE_DELAY_MS, i as DEFAULT_CONNECTOR_TIMEOUT, j as DEFAULT_MAX_DELAY_MS, k as DEFAULT_MAX_RETRIES, l as DEFAULT_RETRYABLE_STATUSES, J as JWTConnectorAuth, O as OAuthConnectorAuth } from './IProvider-CxDUGl6n.js';
|
|
3
|
-
import { C as ContextFeatures, M as MemoryEntry, a as MemoryScope, I as IContextStorage, T as Tool, b as ToolFunction, c as ToolContext, d as ToolPermissionConfig$1, e as ContextBudget$1, f as ToolCall, g as IContextPluginNextGen, W as WorkingMemoryConfig, P as PriorityCalculator, h as MemoryPriority, i as MemoryTier, j as ContextEvents, A as AgentContextNextGenConfig, k as AuthIdentity, l as ICompactionStrategy, B as BeforeCompactionCallback, m as InputItem, n as Content, o as PreparedContext, O as OutputItem, p as ToolResult, q as ConsolidationResult, S as SerializedContextState, r as StoredContextSession, s as ITextProvider, t as ContextSessionMetadata, F as FunctionToolDefinition, L as LLMResponse, u as StreamEvent, H as HookConfig, v as HistoryMode, w as AgentEvents, x as AgentResponse, E as ExecutionContext, y as ExecutionMetrics, z as AuditEntry, D as HookName, G as ITokenEstimator$1, J as ToolCategoryScope, K as CompactionContext, N as CompactionResult, Q as
|
|
4
|
-
export {
|
|
3
|
+
import { C as ContextFeatures, M as MemoryEntry, a as MemoryScope, I as IContextStorage, T as Tool, b as ToolFunction, c as ToolContext, d as ToolPermissionConfig$1, e as ContextBudget$1, f as ToolCall, g as IContextPluginNextGen, W as WorkingMemoryConfig, P as PriorityCalculator, h as MemoryPriority, i as MemoryTier, j as ContextEvents, A as AgentContextNextGenConfig, k as AuthIdentity, l as ICompactionStrategy, B as BeforeCompactionCallback, m as InputItem, n as Content, o as PreparedContext, O as OutputItem, p as ToolResult, q as ConsolidationResult, S as SerializedContextState, r as StoredContextSession, s as ITextProvider, t as ContextSessionMetadata, F as FunctionToolDefinition, L as LLMResponse, u as StreamEvent, H as HookConfig, v as HistoryMode, w as AgentEvents, x as AgentResponse, E as ExecutionContext, y as ExecutionMetrics, z as AuditEntry, D as HookName, G as ITokenEstimator$1, J as ToolCategoryScope, K as CompactionContext, N as CompactionResult, Q as AudioChunkReadyEvent, R as StaleEntryInfo, U as PriorityContext, V as MemoryIndex, X as TaskStatusForMemory, Y as WorkingMemoryAccess, Z as ContextStorageListOptions, _ as ContextSessionSummary, $ as TokenUsage, a0 as StreamEventType, a1 as TextGenerateOptions, a2 as ModelCapabilities, a3 as MessageRole } from './index-Blci0FEd.js';
|
|
4
|
+
export { a4 as AfterToolContext, a5 as AgentEventName, a6 as AgenticLoopEventName, a7 as AgenticLoopEvents, a8 as ApprovalResult, a9 as ApproveToolContext, aa as AudioChunkErrorEvent, ab as AudioStreamCompleteEvent, ac as BeforeToolContext, ad as BuiltInTool, ae as CONTEXT_SESSION_FORMAT_VERSION, af as CatalogRegistryEntry, ag as CatalogToolEntry, ah as CompactionItem, ai as ConnectorCategoryInfo, aj as ContentType, ak as DEFAULT_CONFIG, al as DEFAULT_FEATURES, am as DEFAULT_MEMORY_CONFIG, an as ErrorEvent, ao as ExecutionConfig, ap as Hook, aq as HookManager, ar as InputImageContent, as as InputTextContent, at as IterationCompleteEvent, au as JSONSchema, av as MEMORY_PRIORITY_VALUES, aw as MemoryEntryInput, ax as MemoryIndexEntry, ay as Message, az as ModifyingHook, aA as OutputTextContent, aB as OutputTextDeltaEvent, aC as OutputTextDoneEvent, aD as OversizedInputResult, aE as PluginConfigs, aF as ReasoningDeltaEvent, aG as ReasoningDoneEvent, aH as ReasoningItem, aI as ResponseCompleteEvent, aJ as ResponseCreatedEvent, aK as ResponseInProgressEvent, aL as SimpleScope, aM as TaskAwareScope, aN as ThinkingContent, aO as ToolCallArgumentsDeltaEvent, aP as ToolCallArgumentsDoneEvent, aQ as ToolCallStartEvent, aR as ToolCallState, aS as ToolCatalogRegistry, aT as ToolCategoryDefinition, aU as ToolExecutionContext, aV as ToolExecutionDoneEvent, aW as ToolExecutionStartEvent, aX as ToolModification, aY as ToolResultContent, aZ as ToolUseContent, a_ as calculateEntrySize, a$ as defaultDescribeCall, b0 as forPlan, b1 as forTasks, b2 as getToolCallDescription, b3 as isAudioChunkError, b4 as isAudioChunkReady, b5 as isAudioStreamComplete, b6 as isErrorEvent, b7 as isOutputTextDelta, b8 as isReasoningDelta, b9 as isReasoningDone, ba as isResponseComplete, bb as isSimpleScope, bc as isStreamEvent, bd as isTaskAwareScope, be as isTerminalMemoryStatus, bf as isToolCallArgumentsDelta, bg as isToolCallArgumentsDone, bh as isToolCallStart, bi as scopeEquals, bj as scopeMatches } from './index-Blci0FEd.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
8
|
import { A as AudioFormat, I as IBaseModelDescription, V as VendorOptionSchema, a as IImageProvider } from './ImageModel-1uP-2vk7.js';
|
|
9
9
|
export { b as AspectRatio, c as IImageModelDescription, d as IMAGE_MODELS, e as IMAGE_MODEL_REGISTRY, f as ISourceLinks, g as ImageEditOptions, h as ImageGenerateOptions, i as ImageGeneration, j as ImageGenerationCreateOptions, k as ImageModelCapabilities, l as ImageModelPricing, m as ImageResponse, n as ImageVariationOptions, O as OutputFormat, Q as QualityLevel, S as SimpleGenerateOptions, o as calculateImageCost, p as getActiveImageModels, q as getImageModelInfo, r as getImageModelsByVendor, s as getImageModelsWithFeature } from './ImageModel-1uP-2vk7.js';
|
|
10
|
+
import { EventEmitter as EventEmitter$1 } from 'events';
|
|
10
11
|
import { ServiceCategory } from './shared/index.js';
|
|
11
12
|
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';
|
|
12
13
|
|
|
@@ -6002,6 +6003,29 @@ interface ITextToSpeechProvider extends IProvider {
|
|
|
6002
6003
|
*/
|
|
6003
6004
|
listVoices?(): Promise<IVoiceInfo[]>;
|
|
6004
6005
|
}
|
|
6006
|
+
/**
|
|
6007
|
+
* A single chunk of streamed TTS audio
|
|
6008
|
+
*/
|
|
6009
|
+
interface TTSStreamChunk {
|
|
6010
|
+
/** Audio data for this chunk */
|
|
6011
|
+
audio: Buffer;
|
|
6012
|
+
/** True when this is the last chunk */
|
|
6013
|
+
isFinal: boolean;
|
|
6014
|
+
}
|
|
6015
|
+
/**
|
|
6016
|
+
* Streaming Text-to-Speech provider interface (opt-in extension)
|
|
6017
|
+
* Providers that support chunked transfer implement this alongside ITextToSpeechProvider.
|
|
6018
|
+
*/
|
|
6019
|
+
interface IStreamingTextToSpeechProvider extends ITextToSpeechProvider {
|
|
6020
|
+
/**
|
|
6021
|
+
* Check if streaming is supported for the given format
|
|
6022
|
+
*/
|
|
6023
|
+
supportsStreaming(format?: AudioFormat): boolean;
|
|
6024
|
+
/**
|
|
6025
|
+
* Stream TTS audio chunks as they arrive from the API
|
|
6026
|
+
*/
|
|
6027
|
+
synthesizeStream(options: TTSOptions): AsyncIterableIterator<TTSStreamChunk>;
|
|
6028
|
+
}
|
|
6005
6029
|
/**
|
|
6006
6030
|
* STT output format types
|
|
6007
6031
|
*/
|
|
@@ -6234,6 +6258,15 @@ declare class TextToSpeech {
|
|
|
6234
6258
|
* @param options - Optional synthesis parameters
|
|
6235
6259
|
*/
|
|
6236
6260
|
toFile(text: string, filePath: string, options?: Partial<Omit<TTSOptions, 'model' | 'input'>>): Promise<void>;
|
|
6261
|
+
/**
|
|
6262
|
+
* Check if the underlying provider supports streaming TTS
|
|
6263
|
+
*/
|
|
6264
|
+
supportsStreaming(format?: AudioFormat): boolean;
|
|
6265
|
+
/**
|
|
6266
|
+
* Stream TTS audio chunks as they arrive from the API.
|
|
6267
|
+
* Falls back to buffered synthesis yielding a single chunk if provider doesn't support streaming.
|
|
6268
|
+
*/
|
|
6269
|
+
synthesizeStream(text: string, options?: Partial<Omit<TTSOptions, 'model' | 'input'>>): AsyncIterableIterator<TTSStreamChunk>;
|
|
6237
6270
|
/**
|
|
6238
6271
|
* Get model information for current or specified model
|
|
6239
6272
|
*/
|
|
@@ -7088,6 +7121,324 @@ declare class VideoGeneration {
|
|
|
7088
7121
|
*/
|
|
7089
7122
|
declare function createVideoProvider(connector: Connector): IVideoProvider;
|
|
7090
7123
|
|
|
7124
|
+
/**
|
|
7125
|
+
* Types for voice pseudo-streaming capability
|
|
7126
|
+
*/
|
|
7127
|
+
|
|
7128
|
+
/**
|
|
7129
|
+
* Interface for text chunking strategies used by VoiceStream.
|
|
7130
|
+
* Implementations accumulate streaming text deltas and emit complete
|
|
7131
|
+
* chunks suitable for TTS synthesis.
|
|
7132
|
+
*/
|
|
7133
|
+
interface IChunkingStrategy {
|
|
7134
|
+
/**
|
|
7135
|
+
* Feed a text delta from the stream.
|
|
7136
|
+
* Returns any completed chunks (sentences/phrases).
|
|
7137
|
+
* Keeps partial text in an internal buffer.
|
|
7138
|
+
*/
|
|
7139
|
+
feed(delta: string): string[];
|
|
7140
|
+
/**
|
|
7141
|
+
* Flush remaining buffered text as a final chunk.
|
|
7142
|
+
* Called when the text stream ends.
|
|
7143
|
+
*/
|
|
7144
|
+
flush(): string | null;
|
|
7145
|
+
/** Reset internal state for reuse */
|
|
7146
|
+
reset(): void;
|
|
7147
|
+
}
|
|
7148
|
+
/**
|
|
7149
|
+
* Options for the default SentenceChunkingStrategy
|
|
7150
|
+
*/
|
|
7151
|
+
interface ChunkingOptions {
|
|
7152
|
+
/** Minimum characters before emitting a chunk. Default: 20 */
|
|
7153
|
+
minChunkLength?: number;
|
|
7154
|
+
/** Maximum characters per chunk. Forces split at clause boundary. Default: 500 */
|
|
7155
|
+
maxChunkLength?: number;
|
|
7156
|
+
/** Skip text inside fenced code blocks. Default: true */
|
|
7157
|
+
skipCodeBlocks?: boolean;
|
|
7158
|
+
/** Strip markdown formatting (bold, italic, links, headings). Default: true */
|
|
7159
|
+
stripMarkdown?: boolean;
|
|
7160
|
+
/** Additional abbreviations to recognize (e.g., ['Corp.', 'Ltd.']) */
|
|
7161
|
+
additionalAbbreviations?: string[];
|
|
7162
|
+
}
|
|
7163
|
+
/**
|
|
7164
|
+
* Configuration for VoiceStream
|
|
7165
|
+
*/
|
|
7166
|
+
interface VoiceStreamConfig {
|
|
7167
|
+
/** TTS connector name or instance */
|
|
7168
|
+
ttsConnector: string | Connector;
|
|
7169
|
+
/** TTS model (e.g., 'tts-1-hd', 'gpt-4o-mini-tts') */
|
|
7170
|
+
ttsModel?: string;
|
|
7171
|
+
/** Voice ID (e.g., 'nova', 'alloy') */
|
|
7172
|
+
voice?: string;
|
|
7173
|
+
/** Audio output format. Default: 'mp3' */
|
|
7174
|
+
format?: AudioFormat;
|
|
7175
|
+
/** Speech speed (0.25 to 4.0). Default: 1.0 */
|
|
7176
|
+
speed?: number;
|
|
7177
|
+
/** Custom chunking strategy. Default: SentenceChunkingStrategy */
|
|
7178
|
+
chunkingStrategy?: IChunkingStrategy;
|
|
7179
|
+
/** Options for default chunking strategy (ignored if chunkingStrategy provided) */
|
|
7180
|
+
chunkingOptions?: ChunkingOptions;
|
|
7181
|
+
/** Maximum concurrent TTS synthesis requests. Default: 2 */
|
|
7182
|
+
maxConcurrentTTS?: number;
|
|
7183
|
+
/**
|
|
7184
|
+
* Maximum queued chunks waiting for TTS.
|
|
7185
|
+
* When full, wrap() awaits a free slot (lossless backpressure).
|
|
7186
|
+
* Default: 5
|
|
7187
|
+
*/
|
|
7188
|
+
maxQueuedChunks?: number;
|
|
7189
|
+
/** Vendor-specific TTS options passthrough */
|
|
7190
|
+
vendorOptions?: Record<string, unknown>;
|
|
7191
|
+
/**
|
|
7192
|
+
* Enable streaming TTS. When true, audio chunks are yielded as they arrive
|
|
7193
|
+
* from the API instead of buffering the entire response. Best with format 'pcm'.
|
|
7194
|
+
* Default: false
|
|
7195
|
+
*/
|
|
7196
|
+
streaming?: boolean;
|
|
7197
|
+
}
|
|
7198
|
+
/**
|
|
7199
|
+
* Events emitted by VoiceStream via EventEmitter
|
|
7200
|
+
*/
|
|
7201
|
+
interface VoiceStreamEvents {
|
|
7202
|
+
'audio:ready': (data: {
|
|
7203
|
+
chunkIndex: number;
|
|
7204
|
+
text: string;
|
|
7205
|
+
durationSeconds?: number;
|
|
7206
|
+
}) => void;
|
|
7207
|
+
'audio:error': (data: {
|
|
7208
|
+
chunkIndex: number;
|
|
7209
|
+
text: string;
|
|
7210
|
+
error: Error;
|
|
7211
|
+
}) => void;
|
|
7212
|
+
'audio:complete': (data: {
|
|
7213
|
+
totalChunks: number;
|
|
7214
|
+
totalDurationSeconds?: number;
|
|
7215
|
+
}) => void;
|
|
7216
|
+
'audio:interrupted': (data: {
|
|
7217
|
+
pendingChunks: number;
|
|
7218
|
+
}) => void;
|
|
7219
|
+
}
|
|
7220
|
+
/**
|
|
7221
|
+
* Callback invoked when the next in-order audio chunk is ready for playback
|
|
7222
|
+
*/
|
|
7223
|
+
type AudioChunkPlaybackCallback = (event: AudioChunkReadyEvent) => void;
|
|
7224
|
+
|
|
7225
|
+
/**
|
|
7226
|
+
* VoiceStream - Voice pseudo-streaming capability
|
|
7227
|
+
*
|
|
7228
|
+
* Wraps an agent's text stream and interleaves audio events by chunking text
|
|
7229
|
+
* into sentences and synthesizing them via TTS in parallel. Produces the
|
|
7230
|
+
* illusion of real-time speech streaming.
|
|
7231
|
+
*
|
|
7232
|
+
* @example
|
|
7233
|
+
* ```typescript
|
|
7234
|
+
* const voice = VoiceStream.create({
|
|
7235
|
+
* ttsConnector: 'openai',
|
|
7236
|
+
* ttsModel: 'tts-1-hd',
|
|
7237
|
+
* voice: 'nova',
|
|
7238
|
+
* });
|
|
7239
|
+
*
|
|
7240
|
+
* for await (const event of voice.wrap(agent.stream('Tell me a story'))) {
|
|
7241
|
+
* if (event.type === StreamEventType.OUTPUT_TEXT_DELTA) {
|
|
7242
|
+
* process.stdout.write(event.delta);
|
|
7243
|
+
* } else if (event.type === StreamEventType.AUDIO_CHUNK_READY) {
|
|
7244
|
+
* playbackQueue.enqueue(event);
|
|
7245
|
+
* }
|
|
7246
|
+
* }
|
|
7247
|
+
* ```
|
|
7248
|
+
*/
|
|
7249
|
+
|
|
7250
|
+
declare class VoiceStream extends EventEmitter$1 implements IDisposable {
|
|
7251
|
+
private tts;
|
|
7252
|
+
private chunker;
|
|
7253
|
+
private format;
|
|
7254
|
+
private speed;
|
|
7255
|
+
private maxConcurrentTTS;
|
|
7256
|
+
private maxQueuedChunks;
|
|
7257
|
+
private vendorOptions?;
|
|
7258
|
+
private streaming;
|
|
7259
|
+
private chunkIndex;
|
|
7260
|
+
private totalCharacters;
|
|
7261
|
+
private totalDuration;
|
|
7262
|
+
private activeJobs;
|
|
7263
|
+
private activeTTSCount;
|
|
7264
|
+
private interrupted;
|
|
7265
|
+
private lastResponseId;
|
|
7266
|
+
private _isDestroyed;
|
|
7267
|
+
private slotWaiters;
|
|
7268
|
+
private audioEventBuffer;
|
|
7269
|
+
private bufferNotify;
|
|
7270
|
+
private queueWaiters;
|
|
7271
|
+
/**
|
|
7272
|
+
* Create a new VoiceStream instance
|
|
7273
|
+
*/
|
|
7274
|
+
static create(config: VoiceStreamConfig): VoiceStream;
|
|
7275
|
+
private constructor();
|
|
7276
|
+
/**
|
|
7277
|
+
* Transform an agent text stream into an augmented stream with audio events.
|
|
7278
|
+
* Original text events pass through unchanged; audio events are interleaved.
|
|
7279
|
+
*
|
|
7280
|
+
* The generator yields events in this order:
|
|
7281
|
+
* 1. All original StreamEvents (pass-through)
|
|
7282
|
+
* 2. AudioChunkReady/AudioChunkError events as TTS completes
|
|
7283
|
+
* 3. AudioStreamComplete as the final audio event
|
|
7284
|
+
*/
|
|
7285
|
+
wrap(textStream: AsyncIterableIterator<StreamEvent>): AsyncIterableIterator<StreamEvent>;
|
|
7286
|
+
/**
|
|
7287
|
+
* Interrupt audio generation. Cancels pending TTS and flushes queue.
|
|
7288
|
+
* Call this when the user sends a new message mid-speech.
|
|
7289
|
+
* Active HTTP requests cannot be cancelled but their results will be discarded.
|
|
7290
|
+
*/
|
|
7291
|
+
interrupt(): void;
|
|
7292
|
+
/**
|
|
7293
|
+
* Reset state for a new stream. Called automatically by wrap().
|
|
7294
|
+
*/
|
|
7295
|
+
reset(): void;
|
|
7296
|
+
destroy(): void;
|
|
7297
|
+
get isDestroyed(): boolean;
|
|
7298
|
+
/**
|
|
7299
|
+
* Schedule a text chunk for TTS synthesis.
|
|
7300
|
+
* Awaits a free queue slot if backpressure is active (lossless).
|
|
7301
|
+
*/
|
|
7302
|
+
private scheduleTTS;
|
|
7303
|
+
/**
|
|
7304
|
+
* Execute TTS for a single text chunk.
|
|
7305
|
+
* Respects concurrency semaphore.
|
|
7306
|
+
* Branches on streaming mode: yields sub-chunks or a single buffered chunk.
|
|
7307
|
+
*/
|
|
7308
|
+
private executeTTS;
|
|
7309
|
+
/**
|
|
7310
|
+
* Drain the audio event buffer, yielding all ready events.
|
|
7311
|
+
*/
|
|
7312
|
+
private drainAudioBuffer;
|
|
7313
|
+
/**
|
|
7314
|
+
* Push an audio event and wake up the consumer in wrap()
|
|
7315
|
+
*/
|
|
7316
|
+
private pushAudioEvent;
|
|
7317
|
+
/**
|
|
7318
|
+
* Wait until a new event is pushed to the audio buffer
|
|
7319
|
+
*/
|
|
7320
|
+
private waitForBufferNotify;
|
|
7321
|
+
private waitForTTSSlot;
|
|
7322
|
+
private releaseTTSSlot;
|
|
7323
|
+
private waitForQueueSlot;
|
|
7324
|
+
private releaseQueueWaiter;
|
|
7325
|
+
private releaseAllWaiters;
|
|
7326
|
+
private cleanup;
|
|
7327
|
+
}
|
|
7328
|
+
|
|
7329
|
+
/**
|
|
7330
|
+
* Sentence boundary detection for voice pseudo-streaming.
|
|
7331
|
+
* Splits streaming text deltas into speakable chunks.
|
|
7332
|
+
*/
|
|
7333
|
+
|
|
7334
|
+
/**
|
|
7335
|
+
* Default chunking strategy that splits text at sentence boundaries.
|
|
7336
|
+
*
|
|
7337
|
+
* Handles:
|
|
7338
|
+
* - Sentence terminators (. ? !) followed by whitespace
|
|
7339
|
+
* - Abbreviation exclusion (Dr., Mr., U.S., e.g., etc.)
|
|
7340
|
+
* - Numeric decimals (3.14, $1.50)
|
|
7341
|
+
* - Paragraph breaks (\n\n)
|
|
7342
|
+
* - Fenced code block tracking (``` ... ```)
|
|
7343
|
+
* - Markdown stripping
|
|
7344
|
+
* - Min/max chunk length enforcement
|
|
7345
|
+
*/
|
|
7346
|
+
declare class SentenceChunkingStrategy implements IChunkingStrategy {
|
|
7347
|
+
private buffer;
|
|
7348
|
+
private inCodeBlock;
|
|
7349
|
+
private codeBlockBuffer;
|
|
7350
|
+
private options;
|
|
7351
|
+
private abbreviations;
|
|
7352
|
+
constructor(options?: ChunkingOptions);
|
|
7353
|
+
feed(delta: string): string[];
|
|
7354
|
+
flush(): string | null;
|
|
7355
|
+
reset(): void;
|
|
7356
|
+
private extractChunks;
|
|
7357
|
+
/**
|
|
7358
|
+
* Track and remove fenced code blocks from the buffer.
|
|
7359
|
+
* Text inside code blocks is discarded (not spoken).
|
|
7360
|
+
*/
|
|
7361
|
+
private processCodeBlocks;
|
|
7362
|
+
/**
|
|
7363
|
+
* Find the position right after the next sentence boundary.
|
|
7364
|
+
* Returns -1 if no complete sentence boundary found.
|
|
7365
|
+
*/
|
|
7366
|
+
private findSentenceBoundary;
|
|
7367
|
+
/**
|
|
7368
|
+
* Check if the period at position `pos` is part of a known abbreviation.
|
|
7369
|
+
*/
|
|
7370
|
+
private isAbbreviation;
|
|
7371
|
+
/**
|
|
7372
|
+
* Check if the period at position `pos` is a decimal point.
|
|
7373
|
+
* e.g., 3.14, $1.50
|
|
7374
|
+
*/
|
|
7375
|
+
private isDecimalNumber;
|
|
7376
|
+
/**
|
|
7377
|
+
* Check if the period at position `pos` is part of an ellipsis (...).
|
|
7378
|
+
*/
|
|
7379
|
+
private isEllipsis;
|
|
7380
|
+
/**
|
|
7381
|
+
* Split text that exceeds maxChunkLength at clause boundaries.
|
|
7382
|
+
*/
|
|
7383
|
+
private splitLongText;
|
|
7384
|
+
/**
|
|
7385
|
+
* Merge chunks that are shorter than minChunkLength with the next chunk.
|
|
7386
|
+
*/
|
|
7387
|
+
private mergeSmallChunks;
|
|
7388
|
+
/**
|
|
7389
|
+
* Strip markdown formatting from text for natural speech.
|
|
7390
|
+
*/
|
|
7391
|
+
private cleanForSpeech;
|
|
7392
|
+
}
|
|
7393
|
+
|
|
7394
|
+
/**
|
|
7395
|
+
* AudioPlaybackQueue - Consumer-side helper for ordered audio playback
|
|
7396
|
+
*
|
|
7397
|
+
* TTS chunks may complete out of order (chunk 2 finishes before chunk 1).
|
|
7398
|
+
* This queue buffers audio events and delivers them to the callback
|
|
7399
|
+
* in sequential order by chunk_index.
|
|
7400
|
+
*
|
|
7401
|
+
* @example
|
|
7402
|
+
* ```typescript
|
|
7403
|
+
* const queue = new AudioPlaybackQueue((event) => {
|
|
7404
|
+
* // Play audio chunk — guaranteed to be in order
|
|
7405
|
+
* playAudio(Buffer.from(event.audio_base64, 'base64'));
|
|
7406
|
+
* });
|
|
7407
|
+
*
|
|
7408
|
+
* for await (const event of voiceStream.wrap(agent.stream('Hello'))) {
|
|
7409
|
+
* if (isAudioChunkReady(event)) {
|
|
7410
|
+
* queue.enqueue(event);
|
|
7411
|
+
* }
|
|
7412
|
+
* }
|
|
7413
|
+
* ```
|
|
7414
|
+
*/
|
|
7415
|
+
|
|
7416
|
+
declare class AudioPlaybackQueue {
|
|
7417
|
+
private buffer;
|
|
7418
|
+
private nextPlayIndex;
|
|
7419
|
+
private onReady;
|
|
7420
|
+
constructor(onReady: AudioChunkPlaybackCallback);
|
|
7421
|
+
/**
|
|
7422
|
+
* Enqueue an audio chunk event. If it's the next expected chunk,
|
|
7423
|
+
* it (and any subsequent buffered chunks) are immediately delivered
|
|
7424
|
+
* to the callback in order.
|
|
7425
|
+
*/
|
|
7426
|
+
enqueue(event: AudioChunkReadyEvent): void;
|
|
7427
|
+
/**
|
|
7428
|
+
* Reset the queue (e.g., on interruption or new stream).
|
|
7429
|
+
*/
|
|
7430
|
+
reset(): void;
|
|
7431
|
+
/**
|
|
7432
|
+
* Number of chunks currently buffered waiting for earlier chunks.
|
|
7433
|
+
*/
|
|
7434
|
+
get pendingCount(): number;
|
|
7435
|
+
/**
|
|
7436
|
+
* The next chunk index expected for playback.
|
|
7437
|
+
*/
|
|
7438
|
+
get nextExpectedIndex(): number;
|
|
7439
|
+
private drain;
|
|
7440
|
+
}
|
|
7441
|
+
|
|
7091
7442
|
/**
|
|
7092
7443
|
* SearchProvider - Unified search interface with connector support
|
|
7093
7444
|
*
|
|
@@ -14111,7 +14462,7 @@ declare const desktopTools: (ToolFunction<DesktopScreenshotArgs, DesktopScreensh
|
|
|
14111
14462
|
* AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
|
|
14112
14463
|
*
|
|
14113
14464
|
* Generated by: scripts/generate-tool-registry.ts
|
|
14114
|
-
* Generated at: 2026-03-
|
|
14465
|
+
* Generated at: 2026-03-10T21:37:09.255Z
|
|
14115
14466
|
*
|
|
14116
14467
|
* To regenerate: npm run generate:tools
|
|
14117
14468
|
*/
|
|
@@ -14837,4 +15188,4 @@ declare class EventEmitterTrigger implements IDisposable {
|
|
|
14837
15188
|
get isDestroyed(): boolean;
|
|
14838
15189
|
}
|
|
14839
15190
|
|
|
14840
|
-
export { AGENT_DEFINITION_FORMAT_VERSION, AIError, APPROVAL_STATE_VERSION, Agent, type AgentConfig$1 as AgentConfig, AgentContextNextGen, 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, AuthIdentity, 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, CUSTOM_TOOL_DEFINITION_VERSION, CheckpointManager, type CheckpointStrategy, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerEvents, type CircuitBreakerMetrics, CircuitOpenError, type CircuitState, type ClipboardImageResult, CompactionContext, CompactionResult, Connector, ConnectorAccessContext, ConnectorAuth, ConnectorConfig, ConnectorConfigResult, ConnectorConfigStore, ConnectorFetchOptions, type ConnectorToolEntry, ConnectorTools, type ConnectorToolsOptions, ConsoleMetrics, ConsolidationResult, Content, ContextBudget$1 as ContextBudget, ContextEvents, ContextFeatures, type ContextManagerConfig, type ContextOverflowBudget, ContextOverflowError, ContextSessionMetadata, ContextSessionSummary, ContextStorageListOptions, type ControlFlowResult, type ControlFlowSource, type ConversationMessage, type CreateConnectorOptions, type CustomToolDefinition, type CustomToolListOptions, type CustomToolMetaToolsOptions, type CustomToolMetadata, type CustomToolSummary, type CustomToolTestCase, DEFAULT_ALLOWLIST, DEFAULT_BACKOFF_CONFIG, DEFAULT_CHECKPOINT_STRATEGY, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONTEXT_CONFIG, DEFAULT_DESKTOP_CONFIG, DEFAULT_FILESYSTEM_CONFIG, DEFAULT_HISTORY_MANAGER_CONFIG, DEFAULT_PERMISSION_CONFIG, DEFAULT_RATE_LIMITER_CONFIG, DEFAULT_SHELL_CONFIG, DESKTOP_TOOL_NAMES, type DefaultAllowlistedTool, DefaultCompactionStrategy, type DefaultCompactionStrategyConfig, DependencyCycleError, type DesktopGetCursorResult, type DesktopGetScreenSizeResult, type DesktopKeyboardKeyArgs, type DesktopKeyboardKeyResult, type DesktopKeyboardTypeArgs, type DesktopKeyboardTypeResult, type DesktopMouseClickArgs, type DesktopMouseClickResult, type DesktopMouseDragArgs, type DesktopMouseDragResult, type DesktopMouseMoveArgs, type DesktopMouseMoveResult, type DesktopMouseScrollArgs, type DesktopMouseScrollResult, type DesktopPoint, type DesktopScreenSize, type DesktopScreenshot, type DesktopScreenshotArgs, type DesktopScreenshotResult, type DesktopToolConfig, type DesktopToolName, type DesktopWindow, type DesktopWindowFocusArgs, type DesktopWindowFocusResult, type DesktopWindowListResult, type DirectCallOptions, type DocumentFamily, type DocumentFormat, type DocumentImagePiece, type DocumentMetadata, type DocumentPiece, type DocumentReadOptions, DocumentReader, type DocumentReaderConfig, type DocumentResult, type DocumentSource, type DocumentTextPiece, type DocumentToContentOptions, type EditFileResult, type ErrorContext, ErrorHandler, type ErrorHandlerConfig, type ErrorHandlerEvents, EventEmitterTrigger, type EvictionStrategy, type ExecuteRoutineOptions, ExecutionContext, ExecutionMetrics, type ExecutionRecorder, type ExecutionRecorderOptions, type ExtendedFetchOptions, type ExternalDependency, type ExternalDependencyEvents, ExternalDependencyHandler, type FetchedContent, FileAgentDefinitionStorage, type FileAgentDefinitionStorageConfig, FileConnectorStorage, type FileConnectorStorageConfig, FileContextStorage, type FileContextStorageConfig, FileCustomToolStorage, type FileCustomToolStorageConfig, FileMediaStorage as FileMediaOutputHandler, FileMediaStorage, type FileMediaStorageConfig, FilePersistentInstructionsStorage, type FilePersistentInstructionsStorageConfig, FileRoutineDefinitionStorage, type FileRoutineDefinitionStorageConfig, FileStorage, type FileStorageConfig, FileUserInfoStorage, type FileUserInfoStorageConfig, type FilesystemToolConfig, type FormatDetectionResult, FormatDetector, 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 GraphDriveItem, type GrepMatch, type GrepResult, type HTTPTransportConfig, type HistoryManagerEvents, type HistoryMessage, HistoryMode, HookConfig, HookName, type HydrateOptions, type IAgentDefinitionStorage, type IAgentStateStorage, type IAgentStorage, type IAsyncDisposable, IBaseModelDescription, type ICapabilityProvider, ICompactionStrategy, IConnectorAccessPolicy, type IConnectorConfigStorage, IConnectorRegistry, type IContextCompactor, type IContextComponent, IContextPluginNextGen, type IContextSnapshot, IContextStorage, type IContextStrategy, type ICustomToolStorage, type IDesktopDriver, type IDisposable, type IDocumentTransformer, type IFormatHandler, type IHistoryManager, type IHistoryManagerConfig, type IHistoryStorage, IImageProvider, type IMCPClient, type IMediaStorage as IMediaOutputHandler, type IMediaStorage, type IMemoryStorage, type IPersistentInstructionsStorage, type IPlanStorage, type IPluginSnapshot, IProvider, type IResearchSource, type IRoutineDefinitionStorage, type IRoutineExecutionStorage, type ISTTModelDescription, type IScheduler, type IScrapeProvider, type ISearchProvider, type ISpeechToTextProvider, type ITTSModelDescription, ITextProvider, type ITextToSpeechProvider, ITokenEstimator$1 as ITokenEstimator, ITokenStorage, type IToolExecutionPipeline, type IToolExecutionPlugin, type IToolExecutor, type IToolSnapshot, type IUserInfoStorage, type IVideoModelDescription, type IVideoProvider, type IViewContextComponent, type IViewContextData, type IVoiceInfo, type ImageFilterOptions, 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, type MeetingSlotSuggestion, MemoryConnectorStorage, MemoryEntry, MemoryEvictionCompactor, MemoryIndex, MemoryPriority, MemoryScope, MemoryStorage, MessageBuilder, MessageRole, type MetricTags, type MetricsCollector, type MetricsCollectorType, type MicrosoftCreateMeetingResult, type MicrosoftDraftEmailResult, type MicrosoftEditMeetingResult, type MicrosoftFindSlotsResult, type MicrosoftGetTranscriptResult, type MicrosoftListFilesResult, type MicrosoftReadFileResult, type MicrosoftSearchFilesResult, type MicrosoftSendEmailResult, ModelCapabilities, ModelNotSupportedError, type MouseButton, type EvictionStrategy$1 as NextGenEvictionStrategy, NoOpMetrics, NutTreeDriver, type OAuthConfig, type OAuthFlow, OAuthManager, OutputItem, ParallelTasksError, type PermissionCheckContext, type PermissionCheckResult, type PermissionManagerEvent, type PermissionScope, type PersistentInstructionsConfig, PersistentInstructionsPluginNextGen, type PieceMetadata, type Plan, type PlanConcurrency, type PlanInput, type PlanStatus, PlanningAgent, type PlanningAgentConfig, type PluginExecutionContext, PreparedContext, ProviderAuthError, ProviderCapabilities, ProviderConfigAgent, ProviderContextLengthError, ProviderError, ProviderErrorMapper, ProviderNotFoundError, ProviderRateLimitError, ROUTINE_KEYS, 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, type RoutineDefinition, type RoutineDefinitionInput, type RoutineExecution, type RoutineExecutionRecord, type RoutineExecutionStatus, type RoutineExecutionStep, type RoutineParameter, type RoutineStepType, type RoutineTaskResult, type RoutineTaskSnapshot, SIMPLE_ICONS_CDN, type STTModelCapabilities, type STTOptions, type STTOutputFormat$1 as STTOutputFormat, type STTResponse, STT_MODELS, STT_MODEL_REGISTRY, type ScheduleHandle, type ScheduleSpec, 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, SerializedContextState, type SerializedHistoryState, type SerializedInContextMemoryState, type SerializedPersistentInstructionsState, type SerializedToolState, type SerializedUserInfoState, type SerializedWorkingMemoryState, SerperProvider, ServiceCategory, type ServiceToolFactory, type ShellToolConfig, type SimpleIcon, SimpleScheduler, type SimpleVideoGenerateOptions, type SourceCapabilities, type SourceResult, SpeechToText, type SpeechToTextConfig, type StdioTransportConfig, type StorageConfig, type StorageContext, StorageRegistry, type StoredAgentDefinition, type StoredAgentType, type StoredConnectorConfig, StoredContextSession, type StoredToken, type StrategyInfo, StrategyRegistry, type StrategyRegistryEntry, StreamEvent, StreamEventType, StreamHelpers, StreamState, type SubRoutineSpec, SummarizeCompactor, TERMINAL_TASK_STATUSES, type TTSModelCapabilities, type TTSOptions, type TTSResponse, TTS_MODELS, TTS_MODEL_REGISTRY, type Task, type AgentConfig as TaskAgentStateConfig, type TaskCondition, type TaskControlFlow, type TaskExecution, type TaskFailure, type TaskFoldFlow, type TaskInput, type TaskMapFlow, type TaskSourceRef, type TaskStatus, TaskStatusForMemory, TaskTimeoutError, ToolContext as TaskToolContext, type TaskUntilFlow, type TaskValidation, TaskValidationError, type TaskValidationResult, TavilyProvider, type TemplateCredentials, TextGenerateOptions, TextToSpeech, type TextToSpeechConfig, TokenBucketRateLimiter, type TokenContentType, Tool, ToolCall, type ToolCatalogPluginConfig, ToolCatalogPluginNextGen, type ToolCategory, ToolCategoryScope, 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, type ToolSource, ToolTimeoutError, type TransportConfig, TruncateCompactor, type UserInfoEntry, type UserInfoPluginConfig, UserInfoPluginNextGen, VENDOR_ICON_MAP, VIDEO_MODELS, VIDEO_MODEL_REGISTRY, type ValidationContext, 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, createCustomToolDelete, createCustomToolDraft, createCustomToolList, createCustomToolLoad, createCustomToolMetaTools, createCustomToolSave, createCustomToolTest, createDesktopGetCursorTool, createDesktopGetScreenSizeTool, createDesktopKeyboardKeyTool, createDesktopKeyboardTypeTool, createDesktopMouseClickTool, createDesktopMouseDragTool, createDesktopMouseMoveTool, createDesktopMouseScrollTool, createDesktopScreenshotTool, createDesktopWindowFocusTool, createDesktopWindowListTool, createDraftEmailTool, createEditFileTool, createEditMeetingTool, createEstimator, createExecuteJavaScriptTool, createExecutionRecorder, createFileAgentDefinitionStorage, createFileContextStorage, createFileCustomToolStorage, createFileMediaStorage, createFileRoutineDefinitionStorage, createFindMeetingSlotsTool, createGetMeetingTranscriptTool, createGetPRTool, createGitHubReadFileTool, createGlobTool, createGrepTool, createImageGenerationTool, createImageProvider, createListDirectoryTool, createMeetingTool, createMessageWithImages, createMetricsCollector, createMicrosoftListFilesTool, createMicrosoftReadFileTool, createMicrosoftSearchFilesTool, createPRCommentsTool, createPRFilesTool, createPlan, createProvider, createReadFileTool, createRoutineDefinition, createRoutineExecution, createRoutineExecutionRecord, createSearchCodeTool, createSearchFilesTool, createSendEmailTool, createSpeechToTextTool, createTask, createTaskSnapshots, createTextMessage, createTextToSpeechTool, createVideoProvider, createVideoTools, createWriteFileTool, customToolDelete, customToolDraft, customToolList, customToolLoad, customToolSave, customToolTest, desktopGetCursor, desktopGetScreenSize, desktopKeyboardKey, desktopKeyboardType, desktopMouseClick, desktopMouseDrag, desktopMouseMove, desktopMouseScroll, desktopScreenshot, desktopTools, desktopWindowFocus, desktopWindowList, detectDependencyCycle, developerTools, documentToContent, editFile, encodeSharingUrl, evaluateCondition, executeRoutine, extractJSON, extractJSONField, extractNumber, findConnectorByServiceTypes, formatAttendees, formatFileSize, formatPluginDisplayName, formatRecipients, generateEncryptionKey, generateSimplePlan, generateWebAPITool, getActiveSTTModels, getActiveTTSModels, getActiveVideoModels, getAllBuiltInTools, getAllVendorLogos, getAllVendorTemplates, getBackgroundOutput, getConnectorTools, getCredentialsSetupURL, getDesktopDriver, getDocsURL, getDrivePrefix, getMediaOutputHandler, getMediaStorage, getNextExecutableTasks, getRegisteredScrapeProviders, getRoutineProgress, getSTTModelInfo, getSTTModelsByVendor, getSTTModelsWithFeature, getTTSModelInfo, getTTSModelsByVendor, getTTSModelsWithFeature, getTaskDependencies, getToolByName, getToolCategories, getToolRegistry, getToolsByCategory, getToolsRequiringConnector, getUserPathPrefix, getVendorAuthTemplate, getVendorColor, getVendorDefaultBaseURL, getVendorInfo, getVendorLogo, getVendorLogoCdnUrl, getVendorLogoSvg, getVendorTemplate, getVideoModelInfo, getVideoModelsByVendor, getVideoModelsWithAudio, getVideoModelsWithFeature, glob, globalErrorHandler, grep, hasClipboardImage, hasVendorLogo, hydrateCustomTool, isBlockedCommand, isExcludedExtension, isMicrosoftFileUrl, isTaskBlocked, isTeamsMeetingUrl, isTerminalStatus, isWebUrl, killBackgroundProcess, listConnectorsByServiceTypes, listDirectory, listVendorIds, listVendors, listVendorsByAuthType, listVendorsByCategory, listVendorsWithLogos, logger, mergeTextPieces, metrics, microsoftFetch, normalizeEmails, parseKeyCombo, parseRepository, readClipboardImage, readDocumentAsContent, readFile, registerScrapeProvider, resetDefaultDriver, resolveConnector, resolveDependencies, resolveFileEndpoints, resolveFlowSource, resolveMaxContextTokens, resolveMeetingId, resolveModelCapabilities, resolveRepository, resolveTemplates, retryWithBackoff, sanitizeToolName, setMediaOutputHandler, setMediaStorage, setMetricsCollector, simpleTokenEstimator, toConnectorOptions, toolRegistry, index as tools, updateTaskStatus, validatePath, writeFile };
|
|
15191
|
+
export { AGENT_DEFINITION_FORMAT_VERSION, AIError, APPROVAL_STATE_VERSION, Agent, type AgentConfig$1 as AgentConfig, AgentContextNextGen, AgentContextNextGenConfig, type AgentDefinitionListOptions, type AgentDefinitionMetadata, type AgentDefinitionSummary, AgentEvents, type AgentMetrics, type AgentPermissionsConfig, AgentResponse, type AgentSessionConfig, type AgentState, type AgentStatus, type ApprovalCacheEntry, type ApprovalDecision, ApproximateTokenEstimator, type AudioChunkPlaybackCallback, AudioChunkReadyEvent, AudioFormat, AudioPlaybackQueue, AuditEntry, AuthIdentity, 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, CUSTOM_TOOL_DEFINITION_VERSION, CheckpointManager, type CheckpointStrategy, type ChunkingOptions, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerEvents, type CircuitBreakerMetrics, CircuitOpenError, type CircuitState, type ClipboardImageResult, CompactionContext, CompactionResult, Connector, ConnectorAccessContext, ConnectorAuth, ConnectorConfig, ConnectorConfigResult, ConnectorConfigStore, ConnectorFetchOptions, type ConnectorToolEntry, ConnectorTools, type ConnectorToolsOptions, ConsoleMetrics, ConsolidationResult, Content, ContextBudget$1 as ContextBudget, ContextEvents, ContextFeatures, type ContextManagerConfig, type ContextOverflowBudget, ContextOverflowError, ContextSessionMetadata, ContextSessionSummary, ContextStorageListOptions, type ControlFlowResult, type ControlFlowSource, type ConversationMessage, type CreateConnectorOptions, type CustomToolDefinition, type CustomToolListOptions, type CustomToolMetaToolsOptions, type CustomToolMetadata, type CustomToolSummary, type CustomToolTestCase, DEFAULT_ALLOWLIST, DEFAULT_BACKOFF_CONFIG, DEFAULT_CHECKPOINT_STRATEGY, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONTEXT_CONFIG, DEFAULT_DESKTOP_CONFIG, DEFAULT_FILESYSTEM_CONFIG, DEFAULT_HISTORY_MANAGER_CONFIG, DEFAULT_PERMISSION_CONFIG, DEFAULT_RATE_LIMITER_CONFIG, DEFAULT_SHELL_CONFIG, DESKTOP_TOOL_NAMES, type DefaultAllowlistedTool, DefaultCompactionStrategy, type DefaultCompactionStrategyConfig, DependencyCycleError, type DesktopGetCursorResult, type DesktopGetScreenSizeResult, type DesktopKeyboardKeyArgs, type DesktopKeyboardKeyResult, type DesktopKeyboardTypeArgs, type DesktopKeyboardTypeResult, type DesktopMouseClickArgs, type DesktopMouseClickResult, type DesktopMouseDragArgs, type DesktopMouseDragResult, type DesktopMouseMoveArgs, type DesktopMouseMoveResult, type DesktopMouseScrollArgs, type DesktopMouseScrollResult, type DesktopPoint, type DesktopScreenSize, type DesktopScreenshot, type DesktopScreenshotArgs, type DesktopScreenshotResult, type DesktopToolConfig, type DesktopToolName, type DesktopWindow, type DesktopWindowFocusArgs, type DesktopWindowFocusResult, type DesktopWindowListResult, type DirectCallOptions, type DocumentFamily, type DocumentFormat, type DocumentImagePiece, type DocumentMetadata, type DocumentPiece, type DocumentReadOptions, DocumentReader, type DocumentReaderConfig, type DocumentResult, type DocumentSource, type DocumentTextPiece, type DocumentToContentOptions, type EditFileResult, type ErrorContext, ErrorHandler, type ErrorHandlerConfig, type ErrorHandlerEvents, EventEmitterTrigger, type EvictionStrategy, type ExecuteRoutineOptions, ExecutionContext, ExecutionMetrics, type ExecutionRecorder, type ExecutionRecorderOptions, type ExtendedFetchOptions, type ExternalDependency, type ExternalDependencyEvents, ExternalDependencyHandler, type FetchedContent, FileAgentDefinitionStorage, type FileAgentDefinitionStorageConfig, FileConnectorStorage, type FileConnectorStorageConfig, FileContextStorage, type FileContextStorageConfig, FileCustomToolStorage, type FileCustomToolStorageConfig, FileMediaStorage as FileMediaOutputHandler, FileMediaStorage, type FileMediaStorageConfig, FilePersistentInstructionsStorage, type FilePersistentInstructionsStorageConfig, FileRoutineDefinitionStorage, type FileRoutineDefinitionStorageConfig, FileStorage, type FileStorageConfig, FileUserInfoStorage, type FileUserInfoStorageConfig, type FilesystemToolConfig, type FormatDetectionResult, FormatDetector, 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 GraphDriveItem, type GrepMatch, type GrepResult, type HTTPTransportConfig, type HistoryManagerEvents, type HistoryMessage, HistoryMode, HookConfig, HookName, type HydrateOptions, type IAgentDefinitionStorage, type IAgentStateStorage, type IAgentStorage, type IAsyncDisposable, IBaseModelDescription, type ICapabilityProvider, type IChunkingStrategy, ICompactionStrategy, IConnectorAccessPolicy, type IConnectorConfigStorage, IConnectorRegistry, type IContextCompactor, type IContextComponent, IContextPluginNextGen, type IContextSnapshot, IContextStorage, type IContextStrategy, type ICustomToolStorage, type IDesktopDriver, type IDisposable, type IDocumentTransformer, type IFormatHandler, type IHistoryManager, type IHistoryManagerConfig, type IHistoryStorage, IImageProvider, type IMCPClient, type IMediaStorage as IMediaOutputHandler, type IMediaStorage, type IMemoryStorage, type IPersistentInstructionsStorage, type IPlanStorage, type IPluginSnapshot, IProvider, type IResearchSource, type IRoutineDefinitionStorage, type IRoutineExecutionStorage, type ISTTModelDescription, type IScheduler, type IScrapeProvider, type ISearchProvider, type ISpeechToTextProvider, type IStreamingTextToSpeechProvider, type ITTSModelDescription, ITextProvider, type ITextToSpeechProvider, ITokenEstimator$1 as ITokenEstimator, ITokenStorage, type IToolExecutionPipeline, type IToolExecutionPlugin, type IToolExecutor, type IToolSnapshot, type IUserInfoStorage, type IVideoModelDescription, type IVideoProvider, type IViewContextComponent, type IViewContextData, type IVoiceInfo, type ImageFilterOptions, 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, type MeetingSlotSuggestion, MemoryConnectorStorage, MemoryEntry, MemoryEvictionCompactor, MemoryIndex, MemoryPriority, MemoryScope, MemoryStorage, MessageBuilder, MessageRole, type MetricTags, type MetricsCollector, type MetricsCollectorType, type MicrosoftCreateMeetingResult, type MicrosoftDraftEmailResult, type MicrosoftEditMeetingResult, type MicrosoftFindSlotsResult, type MicrosoftGetTranscriptResult, type MicrosoftListFilesResult, type MicrosoftReadFileResult, type MicrosoftSearchFilesResult, type MicrosoftSendEmailResult, ModelCapabilities, ModelNotSupportedError, type MouseButton, type EvictionStrategy$1 as NextGenEvictionStrategy, NoOpMetrics, NutTreeDriver, type OAuthConfig, type OAuthFlow, OAuthManager, OutputItem, ParallelTasksError, type PermissionCheckContext, type PermissionCheckResult, type PermissionManagerEvent, type PermissionScope, type PersistentInstructionsConfig, PersistentInstructionsPluginNextGen, type PieceMetadata, type Plan, type PlanConcurrency, type PlanInput, type PlanStatus, PlanningAgent, type PlanningAgentConfig, type PluginExecutionContext, PreparedContext, ProviderAuthError, ProviderCapabilities, ProviderConfigAgent, ProviderContextLengthError, ProviderError, ProviderErrorMapper, ProviderNotFoundError, ProviderRateLimitError, ROUTINE_KEYS, 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, type RoutineDefinition, type RoutineDefinitionInput, type RoutineExecution, type RoutineExecutionRecord, type RoutineExecutionStatus, type RoutineExecutionStep, type RoutineParameter, type RoutineStepType, type RoutineTaskResult, type RoutineTaskSnapshot, SIMPLE_ICONS_CDN, type STTModelCapabilities, type STTOptions, type STTOutputFormat$1 as STTOutputFormat, type STTResponse, STT_MODELS, STT_MODEL_REGISTRY, type ScheduleHandle, type ScheduleSpec, 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, SentenceChunkingStrategy, type SerializedApprovalEntry, type SerializedApprovalState, SerializedContextState, type SerializedHistoryState, type SerializedInContextMemoryState, type SerializedPersistentInstructionsState, type SerializedToolState, type SerializedUserInfoState, type SerializedWorkingMemoryState, SerperProvider, ServiceCategory, type ServiceToolFactory, type ShellToolConfig, type SimpleIcon, SimpleScheduler, type SimpleVideoGenerateOptions, type SourceCapabilities, type SourceResult, SpeechToText, type SpeechToTextConfig, type StdioTransportConfig, type StorageConfig, type StorageContext, StorageRegistry, type StoredAgentDefinition, type StoredAgentType, type StoredConnectorConfig, StoredContextSession, type StoredToken, type StrategyInfo, StrategyRegistry, type StrategyRegistryEntry, StreamEvent, StreamEventType, StreamHelpers, StreamState, type SubRoutineSpec, SummarizeCompactor, TERMINAL_TASK_STATUSES, type TTSModelCapabilities, type TTSOptions, type TTSResponse, type TTSStreamChunk, TTS_MODELS, TTS_MODEL_REGISTRY, type Task, type AgentConfig as TaskAgentStateConfig, type TaskCondition, type TaskControlFlow, type TaskExecution, type TaskFailure, type TaskFoldFlow, type TaskInput, type TaskMapFlow, type TaskSourceRef, type TaskStatus, TaskStatusForMemory, TaskTimeoutError, ToolContext as TaskToolContext, type TaskUntilFlow, type TaskValidation, TaskValidationError, type TaskValidationResult, TavilyProvider, type TemplateCredentials, TextGenerateOptions, TextToSpeech, type TextToSpeechConfig, TokenBucketRateLimiter, type TokenContentType, Tool, ToolCall, type ToolCatalogPluginConfig, ToolCatalogPluginNextGen, type ToolCategory, ToolCategoryScope, 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, type ToolSource, ToolTimeoutError, type TransportConfig, TruncateCompactor, type UserInfoEntry, type UserInfoPluginConfig, UserInfoPluginNextGen, VENDOR_ICON_MAP, VIDEO_MODELS, VIDEO_MODEL_REGISTRY, type ValidationContext, 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, VoiceStream, type VoiceStreamConfig, type VoiceStreamEvents, 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, createCustomToolDelete, createCustomToolDraft, createCustomToolList, createCustomToolLoad, createCustomToolMetaTools, createCustomToolSave, createCustomToolTest, createDesktopGetCursorTool, createDesktopGetScreenSizeTool, createDesktopKeyboardKeyTool, createDesktopKeyboardTypeTool, createDesktopMouseClickTool, createDesktopMouseDragTool, createDesktopMouseMoveTool, createDesktopMouseScrollTool, createDesktopScreenshotTool, createDesktopWindowFocusTool, createDesktopWindowListTool, createDraftEmailTool, createEditFileTool, createEditMeetingTool, createEstimator, createExecuteJavaScriptTool, createExecutionRecorder, createFileAgentDefinitionStorage, createFileContextStorage, createFileCustomToolStorage, createFileMediaStorage, createFileRoutineDefinitionStorage, createFindMeetingSlotsTool, createGetMeetingTranscriptTool, createGetPRTool, createGitHubReadFileTool, createGlobTool, createGrepTool, createImageGenerationTool, createImageProvider, createListDirectoryTool, createMeetingTool, createMessageWithImages, createMetricsCollector, createMicrosoftListFilesTool, createMicrosoftReadFileTool, createMicrosoftSearchFilesTool, createPRCommentsTool, createPRFilesTool, createPlan, createProvider, createReadFileTool, createRoutineDefinition, createRoutineExecution, createRoutineExecutionRecord, createSearchCodeTool, createSearchFilesTool, createSendEmailTool, createSpeechToTextTool, createTask, createTaskSnapshots, createTextMessage, createTextToSpeechTool, createVideoProvider, createVideoTools, createWriteFileTool, customToolDelete, customToolDraft, customToolList, customToolLoad, customToolSave, customToolTest, desktopGetCursor, desktopGetScreenSize, desktopKeyboardKey, desktopKeyboardType, desktopMouseClick, desktopMouseDrag, desktopMouseMove, desktopMouseScroll, desktopScreenshot, desktopTools, desktopWindowFocus, desktopWindowList, detectDependencyCycle, developerTools, documentToContent, editFile, encodeSharingUrl, evaluateCondition, executeRoutine, extractJSON, extractJSONField, extractNumber, findConnectorByServiceTypes, formatAttendees, formatFileSize, formatPluginDisplayName, formatRecipients, generateEncryptionKey, generateSimplePlan, generateWebAPITool, getActiveSTTModels, getActiveTTSModels, getActiveVideoModels, getAllBuiltInTools, getAllVendorLogos, getAllVendorTemplates, getBackgroundOutput, getConnectorTools, getCredentialsSetupURL, getDesktopDriver, getDocsURL, getDrivePrefix, getMediaOutputHandler, getMediaStorage, getNextExecutableTasks, getRegisteredScrapeProviders, getRoutineProgress, getSTTModelInfo, getSTTModelsByVendor, getSTTModelsWithFeature, getTTSModelInfo, getTTSModelsByVendor, getTTSModelsWithFeature, getTaskDependencies, getToolByName, getToolCategories, getToolRegistry, getToolsByCategory, getToolsRequiringConnector, getUserPathPrefix, getVendorAuthTemplate, getVendorColor, getVendorDefaultBaseURL, getVendorInfo, getVendorLogo, getVendorLogoCdnUrl, getVendorLogoSvg, getVendorTemplate, getVideoModelInfo, getVideoModelsByVendor, getVideoModelsWithAudio, getVideoModelsWithFeature, glob, globalErrorHandler, grep, hasClipboardImage, hasVendorLogo, hydrateCustomTool, isBlockedCommand, isExcludedExtension, isMicrosoftFileUrl, isTaskBlocked, isTeamsMeetingUrl, isTerminalStatus, isWebUrl, killBackgroundProcess, listConnectorsByServiceTypes, listDirectory, listVendorIds, listVendors, listVendorsByAuthType, listVendorsByCategory, listVendorsWithLogos, logger, mergeTextPieces, metrics, microsoftFetch, normalizeEmails, parseKeyCombo, parseRepository, readClipboardImage, readDocumentAsContent, readFile, registerScrapeProvider, resetDefaultDriver, resolveConnector, resolveDependencies, resolveFileEndpoints, resolveFlowSource, resolveMaxContextTokens, resolveMeetingId, resolveModelCapabilities, resolveRepository, resolveTemplates, retryWithBackoff, sanitizeToolName, setMediaOutputHandler, setMediaStorage, setMetricsCollector, simpleTokenEstimator, toConnectorOptions, toolRegistry, index as tools, updateTaskStatus, validatePath, writeFile };
|