@everworker/oneringai 0.2.0 → 0.2.2
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 +165 -3
- package/dist/capabilities/agents/index.d.cts +1 -1
- package/dist/capabilities/agents/index.d.ts +1 -1
- package/dist/capabilities/images/index.cjs +44 -4
- package/dist/capabilities/images/index.cjs.map +1 -1
- package/dist/capabilities/images/index.js +44 -4
- package/dist/capabilities/images/index.js.map +1 -1
- package/dist/{index-MJ14lkui.d.cts → index-D62LXWdW.d.cts} +9 -0
- package/dist/{index-B5UaeEvK.d.ts → index-DVb6vfA3.d.ts} +9 -0
- package/dist/index.cjs +3199 -610
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +840 -9
- package/dist/index.d.ts +840 -9
- package/dist/index.js +3165 -611
- package/dist/index.js.map +1 -1
- package/dist/shared/index.cjs +17 -0
- package/dist/shared/index.cjs.map +1 -1
- package/dist/shared/index.js +17 -0
- package/dist/shared/index.js.map +1 -1
- package/package.json +14 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { I as IConnectorRegistry, a as IConnectorAccessPolicy, C as ConnectorAccessContext, b as Connector, c as IProvider, d as ConnectorFetchOptions, P as ProviderCapabilities, e as ITokenStorage, S as StoredToken$1, f as ConnectorConfig, g as ConnectorAuth, h as ConnectorConfigResult } from './IProvider-DcYJ3YE-.js';
|
|
2
2
|
export { A as APIKeyConnectorAuth, k as DEFAULT_BASE_DELAY_MS, D as DEFAULT_CONNECTOR_TIMEOUT, l as DEFAULT_MAX_DELAY_MS, i as DEFAULT_MAX_RETRIES, j as DEFAULT_RETRYABLE_STATUSES, J as JWTConnectorAuth, O as OAuthConnectorAuth } from './IProvider-DcYJ3YE-.js';
|
|
3
|
-
import { T as Tool, a as ToolFunction, b as ToolContext, c as ToolPermissionConfig$1, d as ToolCall, I as InputItem, M as MemoryEntry, e as MemoryScope, W as WorkingMemoryConfig, P as PriorityCalculator, f as MemoryPriority, g as MemoryTier, C as Content, O as OutputItem, h as ToolResult, i as ITextProvider, F as FunctionToolDefinition, L as LLMResponse, S as StreamEvent, H as HookConfig, j as HistoryMode, A as AgentEvents, k as AgentResponse, E as ExecutionContext, l as ExecutionMetrics, m as AuditEntry, n as StaleEntryInfo, o as PriorityContext, p as MemoryIndex, q as TaskStatusForMemory, r as WorkingMemoryAccess, s as TokenUsage, t as StreamEventType, u as TextGenerateOptions, v as ModelCapabilities, w as MessageRole } from './index-
|
|
4
|
-
export { aD as AfterToolContext, av as AgentEventName, ay as AgenticLoopEventName, ax as AgenticLoopEvents, aG as ApprovalResult, aE as ApproveToolContext, aC as BeforeToolContext, a8 as BuiltInTool, a3 as CompactionItem, Y as ContentType, D as DEFAULT_MEMORY_CONFIG, am as ErrorEvent, aw as ExecutionConfig, aA as Hook, au as HookManager, az as HookName, _ as InputImageContent, Z as InputTextContent, ak as IterationCompleteEvent, aa as JSONSchema, X as MEMORY_PRIORITY_VALUES, x as MemoryEntryInput, y as MemoryIndexEntry, a2 as Message, aB as ModifyingHook, $ as OutputTextContent, ad as OutputTextDeltaEvent, ae as OutputTextDoneEvent, a4 as ReasoningItem, al as ResponseCompleteEvent, ab as ResponseCreatedEvent, ac as ResponseInProgressEvent, B as SimpleScope, z as TaskAwareScope, ag as ToolCallArgumentsDeltaEvent, ah as ToolCallArgumentsDoneEvent, af as ToolCallStartEvent, a5 as ToolCallState, a9 as ToolExecutionContext, aj as ToolExecutionDoneEvent, ai as ToolExecutionStartEvent, aF as ToolModification, a1 as ToolResultContent, a0 as ToolUseContent, V as calculateEntrySize, a6 as defaultDescribeCall, J as forPlan, G as forTasks, a7 as getToolCallDescription, at as isErrorEvent, ao as isOutputTextDelta, as as isResponseComplete, Q as isSimpleScope, an as isStreamEvent, R as isTaskAwareScope, U as isTerminalMemoryStatus, aq as isToolCallArgumentsDelta, ar as isToolCallArgumentsDone, ap as isToolCallStart, K as scopeEquals, N as scopeMatches } from './index-
|
|
3
|
+
import { T as Tool, a as ToolFunction, b as ToolContext, c as ToolPermissionConfig$1, d as ToolCall, I as InputItem, M as MemoryEntry, e as MemoryScope, W as WorkingMemoryConfig, P as PriorityCalculator, f as MemoryPriority, g as MemoryTier, C as Content, O as OutputItem, h as ToolResult, i as ITextProvider, F as FunctionToolDefinition, L as LLMResponse, S as StreamEvent, H as HookConfig, j as HistoryMode, A as AgentEvents, k as AgentResponse, E as ExecutionContext, l as ExecutionMetrics, m as AuditEntry, n as StaleEntryInfo, o as PriorityContext, p as MemoryIndex, q as TaskStatusForMemory, r as WorkingMemoryAccess, s as TokenUsage, t as StreamEventType, u as TextGenerateOptions, v as ModelCapabilities, w as MessageRole } from './index-DVb6vfA3.js';
|
|
4
|
+
export { aD as AfterToolContext, av as AgentEventName, ay as AgenticLoopEventName, ax as AgenticLoopEvents, aG as ApprovalResult, aE as ApproveToolContext, aC as BeforeToolContext, a8 as BuiltInTool, a3 as CompactionItem, Y as ContentType, D as DEFAULT_MEMORY_CONFIG, am as ErrorEvent, aw as ExecutionConfig, aA as Hook, au as HookManager, az as HookName, _ as InputImageContent, Z as InputTextContent, ak as IterationCompleteEvent, aa as JSONSchema, X as MEMORY_PRIORITY_VALUES, x as MemoryEntryInput, y as MemoryIndexEntry, a2 as Message, aB as ModifyingHook, $ as OutputTextContent, ad as OutputTextDeltaEvent, ae as OutputTextDoneEvent, a4 as ReasoningItem, al as ResponseCompleteEvent, ab as ResponseCreatedEvent, ac as ResponseInProgressEvent, B as SimpleScope, z as TaskAwareScope, ag as ToolCallArgumentsDeltaEvent, ah as ToolCallArgumentsDoneEvent, af as ToolCallStartEvent, a5 as ToolCallState, a9 as ToolExecutionContext, aj as ToolExecutionDoneEvent, ai as ToolExecutionStartEvent, aF as ToolModification, a1 as ToolResultContent, a0 as ToolUseContent, V as calculateEntrySize, a6 as defaultDescribeCall, J as forPlan, G as forTasks, a7 as getToolCallDescription, at as isErrorEvent, ao as isOutputTextDelta, as as isResponseComplete, Q as isSimpleScope, an as isStreamEvent, R as isTaskAwareScope, U as isTerminalMemoryStatus, aq as isToolCallArgumentsDelta, ar as isToolCallArgumentsDone, ap as isToolCallStart, K as scopeEquals, N as scopeMatches } from './index-DVb6vfA3.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';
|
|
@@ -1443,9 +1443,16 @@ interface IContextStorage {
|
|
|
1443
1443
|
*/
|
|
1444
1444
|
updateMetadata?(sessionId: string, metadata: Partial<ContextSessionMetadata>): Promise<void>;
|
|
1445
1445
|
/**
|
|
1446
|
-
* Get the storage path
|
|
1446
|
+
* Get the storage path (for display/debugging)
|
|
1447
|
+
* @deprecated Use getLocation() instead - getPath() assumes filesystem storage
|
|
1447
1448
|
*/
|
|
1448
1449
|
getPath(): string;
|
|
1450
|
+
/**
|
|
1451
|
+
* Get a human-readable storage location string (for display/debugging).
|
|
1452
|
+
* Examples: file path, MongoDB URI, Redis key prefix, S3 bucket, etc.
|
|
1453
|
+
* Falls back to getPath() if not implemented.
|
|
1454
|
+
*/
|
|
1455
|
+
getLocation?(): string;
|
|
1449
1456
|
}
|
|
1450
1457
|
/**
|
|
1451
1458
|
* Options for listing sessions
|
|
@@ -1480,6 +1487,19 @@ interface ITokenEstimator$1 {
|
|
|
1480
1487
|
estimateTokens(text: string): number;
|
|
1481
1488
|
/** Estimate tokens for arbitrary data (will be JSON stringified) */
|
|
1482
1489
|
estimateDataTokens(data: unknown): number;
|
|
1490
|
+
/**
|
|
1491
|
+
* Estimate tokens for an image. Provider-specific implementations can override.
|
|
1492
|
+
*
|
|
1493
|
+
* Default heuristic (matches OpenAI's image token pricing):
|
|
1494
|
+
* - detail='low': 85 tokens
|
|
1495
|
+
* - detail='high' with known dimensions: 85 + 170 * ceil(w/512) * ceil(h/512)
|
|
1496
|
+
* - Unknown dimensions: ~1000 tokens (conservative default)
|
|
1497
|
+
*
|
|
1498
|
+
* @param width - Image width in pixels (if known)
|
|
1499
|
+
* @param height - Image height in pixels (if known)
|
|
1500
|
+
* @param detail - Image detail level: 'low', 'high', or 'auto' (default 'auto')
|
|
1501
|
+
*/
|
|
1502
|
+
estimateImageTokens?(width?: number, height?: number, detail?: string): number;
|
|
1483
1503
|
}
|
|
1484
1504
|
/**
|
|
1485
1505
|
* Context plugin interface for NextGen context management.
|
|
@@ -2558,6 +2578,10 @@ declare class AgentContextNextGen extends EventEmitter<ContextEvents> {
|
|
|
2558
2578
|
* Estimate tokens for a single InputItem.
|
|
2559
2579
|
*/
|
|
2560
2580
|
private estimateItemTokens;
|
|
2581
|
+
/**
|
|
2582
|
+
* Estimate tokens for a single image, using the estimator's image method if available.
|
|
2583
|
+
*/
|
|
2584
|
+
private _estimateImageTokens;
|
|
2561
2585
|
/**
|
|
2562
2586
|
* Run compaction to free up tokens.
|
|
2563
2587
|
* Delegates to the current compaction strategy.
|
|
@@ -6560,6 +6584,328 @@ declare class ScrapeProvider {
|
|
|
6560
6584
|
static createWithFallback(config: ScrapeProviderFallbackConfig): IScrapeProvider;
|
|
6561
6585
|
}
|
|
6562
6586
|
|
|
6587
|
+
/**
|
|
6588
|
+
* Document Reader Types
|
|
6589
|
+
*
|
|
6590
|
+
* Core types for the universal file-to-LLM-content converter.
|
|
6591
|
+
*/
|
|
6592
|
+
type DocumentFormat = 'docx' | 'pptx' | 'odt' | 'odp' | 'ods' | 'rtf' | 'xlsx' | 'csv' | 'pdf' | 'html' | 'txt' | 'md' | 'json' | 'xml' | 'yaml' | 'yml' | 'png' | 'jpg' | 'jpeg' | 'gif' | 'webp' | 'svg';
|
|
6593
|
+
type DocumentFamily = 'office' | 'spreadsheet' | 'pdf' | 'html' | 'text' | 'image';
|
|
6594
|
+
interface PieceMetadata {
|
|
6595
|
+
sourceFilename: string;
|
|
6596
|
+
format: DocumentFormat;
|
|
6597
|
+
index: number;
|
|
6598
|
+
section?: string;
|
|
6599
|
+
sizeBytes: number;
|
|
6600
|
+
estimatedTokens: number;
|
|
6601
|
+
label?: string;
|
|
6602
|
+
}
|
|
6603
|
+
interface DocumentTextPiece {
|
|
6604
|
+
type: 'text';
|
|
6605
|
+
content: string;
|
|
6606
|
+
metadata: PieceMetadata;
|
|
6607
|
+
}
|
|
6608
|
+
interface DocumentImagePiece {
|
|
6609
|
+
type: 'image';
|
|
6610
|
+
base64: string;
|
|
6611
|
+
mimeType: string;
|
|
6612
|
+
width?: number;
|
|
6613
|
+
height?: number;
|
|
6614
|
+
metadata: PieceMetadata;
|
|
6615
|
+
}
|
|
6616
|
+
type DocumentPiece = DocumentTextPiece | DocumentImagePiece;
|
|
6617
|
+
interface DocumentMetadata {
|
|
6618
|
+
filename: string;
|
|
6619
|
+
format: DocumentFormat;
|
|
6620
|
+
family: DocumentFamily;
|
|
6621
|
+
mimeType: string;
|
|
6622
|
+
totalPieces: number;
|
|
6623
|
+
totalTextPieces: number;
|
|
6624
|
+
totalImagePieces: number;
|
|
6625
|
+
totalSizeBytes: number;
|
|
6626
|
+
estimatedTokens: number;
|
|
6627
|
+
processingTimeMs: number;
|
|
6628
|
+
formatSpecific?: Record<string, unknown>;
|
|
6629
|
+
}
|
|
6630
|
+
interface DocumentResult {
|
|
6631
|
+
success: boolean;
|
|
6632
|
+
pieces: DocumentPiece[];
|
|
6633
|
+
metadata: DocumentMetadata;
|
|
6634
|
+
error?: string;
|
|
6635
|
+
warnings: string[];
|
|
6636
|
+
}
|
|
6637
|
+
interface FileSource {
|
|
6638
|
+
type: 'file';
|
|
6639
|
+
path: string;
|
|
6640
|
+
}
|
|
6641
|
+
interface URLSource {
|
|
6642
|
+
type: 'url';
|
|
6643
|
+
url: string;
|
|
6644
|
+
headers?: Record<string, string>;
|
|
6645
|
+
}
|
|
6646
|
+
interface BufferSource {
|
|
6647
|
+
type: 'buffer';
|
|
6648
|
+
buffer: Buffer | Uint8Array;
|
|
6649
|
+
filename: string;
|
|
6650
|
+
mimeType?: string;
|
|
6651
|
+
}
|
|
6652
|
+
interface BlobSource {
|
|
6653
|
+
type: 'blob';
|
|
6654
|
+
blob: Blob;
|
|
6655
|
+
filename: string;
|
|
6656
|
+
}
|
|
6657
|
+
type DocumentSource = FileSource | URLSource | BufferSource | BlobSource;
|
|
6658
|
+
interface ImageFilterOptions {
|
|
6659
|
+
/** Skip images narrower than this (default: 50px) */
|
|
6660
|
+
minWidth?: number;
|
|
6661
|
+
/** Skip images shorter than this (default: 50px) */
|
|
6662
|
+
minHeight?: number;
|
|
6663
|
+
/** Skip images smaller than this in bytes (default: 1024) */
|
|
6664
|
+
minSizeBytes?: number;
|
|
6665
|
+
/** Maximum images to keep (default: 50 at extraction, 20 at content conversion) */
|
|
6666
|
+
maxImages?: number;
|
|
6667
|
+
/** Exclude images whose filename/label matches these patterns */
|
|
6668
|
+
excludePatterns?: RegExp[];
|
|
6669
|
+
}
|
|
6670
|
+
interface ExcelFormatOptions {
|
|
6671
|
+
/** Maximum rows per sheet (default: 1000) */
|
|
6672
|
+
maxRows?: number;
|
|
6673
|
+
/** Maximum columns per sheet (default: 50) */
|
|
6674
|
+
maxColumns?: number;
|
|
6675
|
+
/** Table output format (default: 'markdown') */
|
|
6676
|
+
tableFormat?: 'markdown' | 'csv' | 'json';
|
|
6677
|
+
/** Include formulas as comments (default: false) */
|
|
6678
|
+
includeFormulas?: boolean;
|
|
6679
|
+
}
|
|
6680
|
+
interface PDFFormatOptions {
|
|
6681
|
+
/** Include PDF metadata in output (default: true) */
|
|
6682
|
+
includeMetadata?: boolean;
|
|
6683
|
+
}
|
|
6684
|
+
interface HTMLFormatOptions {
|
|
6685
|
+
/** Maximum HTML length to process (default: 50000) */
|
|
6686
|
+
maxLength?: number;
|
|
6687
|
+
}
|
|
6688
|
+
interface OfficeFormatOptions {
|
|
6689
|
+
/** Include speaker notes for PPTX (default: true) */
|
|
6690
|
+
includeSpeakerNotes?: boolean;
|
|
6691
|
+
}
|
|
6692
|
+
interface DocumentReadOptions {
|
|
6693
|
+
/** Maximum estimated tokens in output (default: 100000) */
|
|
6694
|
+
maxTokens?: number;
|
|
6695
|
+
/** Maximum output size in bytes (default: 5MB) */
|
|
6696
|
+
maxOutputBytes?: number;
|
|
6697
|
+
/** Extract images from documents (default: true) */
|
|
6698
|
+
extractImages?: boolean;
|
|
6699
|
+
/** Image detail level for LLM (default: 'auto') */
|
|
6700
|
+
imageDetail?: 'auto' | 'low' | 'high';
|
|
6701
|
+
/** Image filtering options */
|
|
6702
|
+
imageFilter?: ImageFilterOptions;
|
|
6703
|
+
/** Specific pages/sheets to read (format-dependent) */
|
|
6704
|
+
pages?: number[] | string[];
|
|
6705
|
+
/** Additional transformers to apply */
|
|
6706
|
+
transformers?: IDocumentTransformer[];
|
|
6707
|
+
/** Skip built-in transformers (default: false) */
|
|
6708
|
+
skipDefaultTransformers?: boolean;
|
|
6709
|
+
/** Format-specific options */
|
|
6710
|
+
formatOptions?: {
|
|
6711
|
+
excel?: ExcelFormatOptions;
|
|
6712
|
+
pdf?: PDFFormatOptions;
|
|
6713
|
+
html?: HTMLFormatOptions;
|
|
6714
|
+
office?: OfficeFormatOptions;
|
|
6715
|
+
};
|
|
6716
|
+
}
|
|
6717
|
+
interface DocumentReaderConfig {
|
|
6718
|
+
/** Default options for all read() calls */
|
|
6719
|
+
defaults?: DocumentReadOptions;
|
|
6720
|
+
/** Custom format handlers (override built-in) */
|
|
6721
|
+
handlers?: Map<DocumentFamily, IFormatHandler>;
|
|
6722
|
+
/** Maximum download size for URL sources (default: 50MB) */
|
|
6723
|
+
maxDownloadSizeBytes?: number;
|
|
6724
|
+
/** Download timeout for URL sources (default: 60000ms) */
|
|
6725
|
+
downloadTimeoutMs?: number;
|
|
6726
|
+
}
|
|
6727
|
+
interface TransformerContext {
|
|
6728
|
+
filename: string;
|
|
6729
|
+
format: DocumentFormat;
|
|
6730
|
+
family: DocumentFamily;
|
|
6731
|
+
options: DocumentReadOptions;
|
|
6732
|
+
}
|
|
6733
|
+
interface IDocumentTransformer {
|
|
6734
|
+
readonly name: string;
|
|
6735
|
+
readonly appliesTo: DocumentFormat[];
|
|
6736
|
+
readonly priority?: number;
|
|
6737
|
+
transform(pieces: DocumentPiece[], context: TransformerContext): Promise<DocumentPiece[]>;
|
|
6738
|
+
}
|
|
6739
|
+
interface IFormatHandler {
|
|
6740
|
+
readonly name: string;
|
|
6741
|
+
readonly supportedFormats: DocumentFormat[];
|
|
6742
|
+
handle(buffer: Buffer, filename: string, format: DocumentFormat, options: DocumentReadOptions): Promise<DocumentPiece[]>;
|
|
6743
|
+
}
|
|
6744
|
+
interface FormatDetectionResult {
|
|
6745
|
+
format: DocumentFormat;
|
|
6746
|
+
family: DocumentFamily;
|
|
6747
|
+
mimeType: string;
|
|
6748
|
+
confidence: 'high' | 'medium' | 'low';
|
|
6749
|
+
}
|
|
6750
|
+
interface DocumentToContentOptions {
|
|
6751
|
+
/** Image detail for LLM content (default: 'auto') */
|
|
6752
|
+
imageDetail?: 'auto' | 'low' | 'high';
|
|
6753
|
+
/** Additional image filtering at content conversion time */
|
|
6754
|
+
imageFilter?: ImageFilterOptions;
|
|
6755
|
+
/** Maximum images in content output (default: 20) */
|
|
6756
|
+
maxImages?: number;
|
|
6757
|
+
/** Merge adjacent text pieces into one (default: true) */
|
|
6758
|
+
mergeAdjacentText?: boolean;
|
|
6759
|
+
}
|
|
6760
|
+
|
|
6761
|
+
/**
|
|
6762
|
+
* Document Reader
|
|
6763
|
+
*
|
|
6764
|
+
* Universal file-to-LLM-content converter.
|
|
6765
|
+
* Reads arbitrary formats and produces DocumentPiece arrays.
|
|
6766
|
+
*/
|
|
6767
|
+
|
|
6768
|
+
/**
|
|
6769
|
+
* Main document reader class.
|
|
6770
|
+
*
|
|
6771
|
+
* @example
|
|
6772
|
+
* ```typescript
|
|
6773
|
+
* const reader = DocumentReader.create();
|
|
6774
|
+
* const result = await reader.read('/path/to/doc.pdf');
|
|
6775
|
+
* console.log(result.pieces); // DocumentPiece[]
|
|
6776
|
+
* ```
|
|
6777
|
+
*/
|
|
6778
|
+
declare class DocumentReader {
|
|
6779
|
+
private handlers;
|
|
6780
|
+
private config;
|
|
6781
|
+
private constructor();
|
|
6782
|
+
/**
|
|
6783
|
+
* Create a new DocumentReader instance
|
|
6784
|
+
*/
|
|
6785
|
+
static create(config?: DocumentReaderConfig): DocumentReader;
|
|
6786
|
+
/**
|
|
6787
|
+
* Register all default format handlers (lazy-loaded)
|
|
6788
|
+
*/
|
|
6789
|
+
private registerDefaultHandlers;
|
|
6790
|
+
/**
|
|
6791
|
+
* Register a custom format handler
|
|
6792
|
+
*/
|
|
6793
|
+
registerHandler(family: DocumentFamily, handler: IFormatHandler): void;
|
|
6794
|
+
/**
|
|
6795
|
+
* Read a document from any source
|
|
6796
|
+
*/
|
|
6797
|
+
read(source: DocumentSource | string, options?: DocumentReadOptions): Promise<DocumentResult>;
|
|
6798
|
+
/**
|
|
6799
|
+
* Parse a string source (auto-detect path vs URL)
|
|
6800
|
+
*/
|
|
6801
|
+
private parseStringSource;
|
|
6802
|
+
/**
|
|
6803
|
+
* Resolve any source to a buffer and filename
|
|
6804
|
+
*/
|
|
6805
|
+
private resolveSource;
|
|
6806
|
+
/**
|
|
6807
|
+
* Extract filename from URL and response headers
|
|
6808
|
+
*/
|
|
6809
|
+
private extractFilenameFromURL;
|
|
6810
|
+
/**
|
|
6811
|
+
* Get the handler for a format family, loading defaults lazily
|
|
6812
|
+
*/
|
|
6813
|
+
private getHandler;
|
|
6814
|
+
/**
|
|
6815
|
+
* Filter images based on options
|
|
6816
|
+
*/
|
|
6817
|
+
private filterImages;
|
|
6818
|
+
/**
|
|
6819
|
+
* Run the transformer pipeline
|
|
6820
|
+
*/
|
|
6821
|
+
private runTransformers;
|
|
6822
|
+
/**
|
|
6823
|
+
* Assemble metadata from pieces
|
|
6824
|
+
*/
|
|
6825
|
+
private assembleMetadata;
|
|
6826
|
+
}
|
|
6827
|
+
/**
|
|
6828
|
+
* Merge text pieces into a single markdown string
|
|
6829
|
+
*/
|
|
6830
|
+
declare function mergeTextPieces(pieces: DocumentPiece[]): string;
|
|
6831
|
+
|
|
6832
|
+
/**
|
|
6833
|
+
* Format Detector
|
|
6834
|
+
*
|
|
6835
|
+
* Detects document format from filename extension and optional magic bytes.
|
|
6836
|
+
*/
|
|
6837
|
+
|
|
6838
|
+
/**
|
|
6839
|
+
* Static utility for detecting document formats
|
|
6840
|
+
*/
|
|
6841
|
+
declare class FormatDetector {
|
|
6842
|
+
/**
|
|
6843
|
+
* Detect format from filename and optional buffer
|
|
6844
|
+
*/
|
|
6845
|
+
static detect(filename: string, _buffer?: Buffer | Uint8Array): FormatDetectionResult;
|
|
6846
|
+
/**
|
|
6847
|
+
* Check if an extension is a supported document format
|
|
6848
|
+
* Used by readFile to detect when to use DocumentReader
|
|
6849
|
+
*/
|
|
6850
|
+
static isDocumentFormat(ext: string): boolean;
|
|
6851
|
+
/**
|
|
6852
|
+
* Check if an extension is a binary document format
|
|
6853
|
+
* (i.e., cannot be read as UTF-8)
|
|
6854
|
+
*/
|
|
6855
|
+
static isBinaryDocumentFormat(ext: string): boolean;
|
|
6856
|
+
/**
|
|
6857
|
+
* Check if a Content-Type header indicates a document format
|
|
6858
|
+
* Used by webFetch to detect downloadable documents
|
|
6859
|
+
*/
|
|
6860
|
+
static isDocumentMimeType(contentType: string): boolean;
|
|
6861
|
+
/**
|
|
6862
|
+
* Detect format from Content-Type header
|
|
6863
|
+
*/
|
|
6864
|
+
static detectFromMimeType(contentType: string): FormatDetectionResult | null;
|
|
6865
|
+
/**
|
|
6866
|
+
* Get all supported document extensions
|
|
6867
|
+
*/
|
|
6868
|
+
static getSupportedExtensions(): string[];
|
|
6869
|
+
/**
|
|
6870
|
+
* Get the normalized extension from a filename
|
|
6871
|
+
*/
|
|
6872
|
+
static getExtension(filename: string): string;
|
|
6873
|
+
}
|
|
6874
|
+
|
|
6875
|
+
/**
|
|
6876
|
+
* Document Content Bridge
|
|
6877
|
+
*
|
|
6878
|
+
* Converts DocumentResult → Content[] for LLM consumption.
|
|
6879
|
+
* Provides readDocumentAsContent() as a one-call convenience.
|
|
6880
|
+
*/
|
|
6881
|
+
|
|
6882
|
+
/**
|
|
6883
|
+
* Convert a DocumentResult to Content[] for LLM input.
|
|
6884
|
+
*
|
|
6885
|
+
* - Text pieces → InputTextContent
|
|
6886
|
+
* - Image pieces → InputImageContent (with data URI)
|
|
6887
|
+
* - Adjacent text pieces merged by default
|
|
6888
|
+
* - Additional image filtering applied
|
|
6889
|
+
*/
|
|
6890
|
+
declare function documentToContent(result: DocumentResult, options?: DocumentToContentOptions): Content[];
|
|
6891
|
+
/**
|
|
6892
|
+
* One-call convenience: read a document and convert to Content[] for LLM input.
|
|
6893
|
+
*
|
|
6894
|
+
* @example
|
|
6895
|
+
* ```typescript
|
|
6896
|
+
* const content = await readDocumentAsContent('/path/to/doc.pdf', {
|
|
6897
|
+
* imageFilter: { minWidth: 100, minHeight: 100 },
|
|
6898
|
+
* imageDetail: 'auto',
|
|
6899
|
+
* });
|
|
6900
|
+
*
|
|
6901
|
+
* agent.run([
|
|
6902
|
+
* { type: 'input_text', text: 'Analyze this document:' },
|
|
6903
|
+
* ...content,
|
|
6904
|
+
* ]);
|
|
6905
|
+
* ```
|
|
6906
|
+
*/
|
|
6907
|
+
declare function readDocumentAsContent(source: DocumentSource | string, options?: DocumentReadOptions & DocumentToContentOptions): Promise<Content[]>;
|
|
6908
|
+
|
|
6563
6909
|
/**
|
|
6564
6910
|
* IMediaStorage - Storage interface for multimedia outputs (images, video, audio)
|
|
6565
6911
|
*
|
|
@@ -8126,6 +8472,13 @@ interface ITokenEstimator {
|
|
|
8126
8472
|
* Estimate tokens for structured data
|
|
8127
8473
|
*/
|
|
8128
8474
|
estimateDataTokens(data: unknown, contentType?: TokenContentType): number;
|
|
8475
|
+
/**
|
|
8476
|
+
* Estimate tokens for an image.
|
|
8477
|
+
* @param width - Image width in pixels (if known)
|
|
8478
|
+
* @param height - Image height in pixels (if known)
|
|
8479
|
+
* @param detail - Image detail level: 'low', 'high', or 'auto'
|
|
8480
|
+
*/
|
|
8481
|
+
estimateImageTokens?(width?: number, height?: number, detail?: string): number;
|
|
8129
8482
|
}
|
|
8130
8483
|
/**
|
|
8131
8484
|
* Abstract interface for compaction strategies
|
|
@@ -8315,6 +8668,14 @@ declare class ApproximateTokenEstimator implements ITokenEstimator {
|
|
|
8315
8668
|
* Estimate tokens for structured data (always uses 'mixed' estimation)
|
|
8316
8669
|
*/
|
|
8317
8670
|
estimateDataTokens(data: unknown, contentType?: TokenContentType): number;
|
|
8671
|
+
/**
|
|
8672
|
+
* Estimate tokens for an image using tile-based model (matches OpenAI pricing).
|
|
8673
|
+
*
|
|
8674
|
+
* - detail='low': 85 tokens
|
|
8675
|
+
* - detail='high' with known dimensions: 85 + 170 per 512×512 tile
|
|
8676
|
+
* - Unknown dimensions: 1000 tokens (conservative default)
|
|
8677
|
+
*/
|
|
8678
|
+
estimateImageTokens(width?: number, height?: number, detail?: string): number;
|
|
8318
8679
|
}
|
|
8319
8680
|
|
|
8320
8681
|
/**
|
|
@@ -8644,8 +9005,13 @@ declare class FileContextStorage implements IContextStorage {
|
|
|
8644
9005
|
updateMetadata(sessionId: string, metadata: Partial<ContextSessionMetadata>): Promise<void>;
|
|
8645
9006
|
/**
|
|
8646
9007
|
* Get the storage path (for display/debugging)
|
|
9008
|
+
* @deprecated Use getLocation() instead
|
|
8647
9009
|
*/
|
|
8648
9010
|
getPath(): string;
|
|
9011
|
+
/**
|
|
9012
|
+
* Get a human-readable storage location string (for display/debugging)
|
|
9013
|
+
*/
|
|
9014
|
+
getLocation(): string;
|
|
8649
9015
|
/**
|
|
8650
9016
|
* Get the agent ID
|
|
8651
9017
|
*/
|
|
@@ -10239,6 +10605,8 @@ interface AuthTemplate {
|
|
|
10239
10605
|
defaults: Partial<ConnectorAuth>;
|
|
10240
10606
|
/** Common scopes for this auth method */
|
|
10241
10607
|
scopes?: string[];
|
|
10608
|
+
/** Human-readable descriptions for scopes (key = scope ID) */
|
|
10609
|
+
scopeDescriptions?: Record<string, string>;
|
|
10242
10610
|
}
|
|
10243
10611
|
/**
|
|
10244
10612
|
* Known fields that can be required/optional in auth templates
|
|
@@ -10378,6 +10746,8 @@ interface VendorInfo {
|
|
|
10378
10746
|
type: string;
|
|
10379
10747
|
description: string;
|
|
10380
10748
|
requiredFields: string[];
|
|
10749
|
+
scopes?: string[];
|
|
10750
|
+
scopeDescriptions?: Record<string, string>;
|
|
10381
10751
|
}[];
|
|
10382
10752
|
}
|
|
10383
10753
|
/**
|
|
@@ -11058,6 +11428,7 @@ declare const bash: ToolFunction<BashArgs, BashResult>;
|
|
|
11058
11428
|
*
|
|
11059
11429
|
* Common types and configuration for filesystem operations.
|
|
11060
11430
|
*/
|
|
11431
|
+
|
|
11061
11432
|
/**
|
|
11062
11433
|
* Configuration for filesystem tools
|
|
11063
11434
|
*/
|
|
@@ -11099,11 +11470,18 @@ interface FilesystemToolConfig {
|
|
|
11099
11470
|
* Default: common binary extensions
|
|
11100
11471
|
*/
|
|
11101
11472
|
excludeExtensions?: string[];
|
|
11473
|
+
/**
|
|
11474
|
+
* Document reader config for non-text file formats (PDF, DOCX, XLSX, etc.).
|
|
11475
|
+
* When set, read_file will automatically convert binary document formats to markdown.
|
|
11476
|
+
*/
|
|
11477
|
+
documentReaderConfig?: DocumentReaderConfig;
|
|
11102
11478
|
}
|
|
11103
11479
|
/**
|
|
11104
11480
|
* Default configuration
|
|
11105
11481
|
*/
|
|
11106
|
-
|
|
11482
|
+
/** FilesystemToolConfig with all base fields required (documentReaderConfig remains optional) */
|
|
11483
|
+
type FilesystemToolConfigDefaults = Required<Omit<FilesystemToolConfig, 'documentReaderConfig'>> & Pick<FilesystemToolConfig, 'documentReaderConfig'>;
|
|
11484
|
+
declare const DEFAULT_FILESYSTEM_CONFIG: FilesystemToolConfigDefaults;
|
|
11107
11485
|
/**
|
|
11108
11486
|
* Result of a file read operation
|
|
11109
11487
|
*/
|
|
@@ -11458,7 +11836,7 @@ interface WebFetchResult {
|
|
|
11458
11836
|
url: string;
|
|
11459
11837
|
title: string;
|
|
11460
11838
|
content: string;
|
|
11461
|
-
contentType: 'html' | 'json' | 'text' | 'error';
|
|
11839
|
+
contentType: 'html' | 'json' | 'text' | 'document' | 'error';
|
|
11462
11840
|
qualityScore: number;
|
|
11463
11841
|
requiresJS: boolean;
|
|
11464
11842
|
suggestedAction?: string;
|
|
@@ -11468,6 +11846,7 @@ interface WebFetchResult {
|
|
|
11468
11846
|
byline?: string;
|
|
11469
11847
|
wasReadabilityUsed?: boolean;
|
|
11470
11848
|
wasTruncated?: boolean;
|
|
11849
|
+
documentMetadata?: Record<string, unknown>;
|
|
11471
11850
|
}
|
|
11472
11851
|
declare const webFetch: ToolFunction<WebFetchArgs, WebFetchResult>;
|
|
11473
11852
|
|
|
@@ -12087,17 +12466,391 @@ interface CreatePRArgs {
|
|
|
12087
12466
|
*/
|
|
12088
12467
|
declare function createCreatePRTool(connector: Connector, userId?: string): ToolFunction<CreatePRArgs, GitHubCreatePRResult>;
|
|
12089
12468
|
|
|
12469
|
+
/**
|
|
12470
|
+
* Desktop Automation Tools - Types
|
|
12471
|
+
*
|
|
12472
|
+
* Interfaces and types for OS-level desktop automation (screenshot, mouse, keyboard, windows).
|
|
12473
|
+
* All coordinates are in PHYSICAL pixel space (screenshot space).
|
|
12474
|
+
* The driver converts to logical OS coords internally using scaleFactor.
|
|
12475
|
+
*/
|
|
12476
|
+
type MouseButton = 'left' | 'right' | 'middle';
|
|
12477
|
+
interface DesktopPoint {
|
|
12478
|
+
x: number;
|
|
12479
|
+
y: number;
|
|
12480
|
+
}
|
|
12481
|
+
interface DesktopScreenSize {
|
|
12482
|
+
/** Physical pixel width (screenshot space) */
|
|
12483
|
+
physicalWidth: number;
|
|
12484
|
+
/** Physical pixel height (screenshot space) */
|
|
12485
|
+
physicalHeight: number;
|
|
12486
|
+
/** Logical OS width */
|
|
12487
|
+
logicalWidth: number;
|
|
12488
|
+
/** Logical OS height */
|
|
12489
|
+
logicalHeight: number;
|
|
12490
|
+
/** Scale factor (physical / logical), e.g. 2.0 on Retina */
|
|
12491
|
+
scaleFactor: number;
|
|
12492
|
+
}
|
|
12493
|
+
interface DesktopScreenshot {
|
|
12494
|
+
/** Base64-encoded PNG image data */
|
|
12495
|
+
base64: string;
|
|
12496
|
+
/** Width in physical pixels */
|
|
12497
|
+
width: number;
|
|
12498
|
+
/** Height in physical pixels */
|
|
12499
|
+
height: number;
|
|
12500
|
+
}
|
|
12501
|
+
interface DesktopWindow {
|
|
12502
|
+
/** Window identifier (platform-specific) */
|
|
12503
|
+
id: number;
|
|
12504
|
+
/** Window title */
|
|
12505
|
+
title: string;
|
|
12506
|
+
/** Application name */
|
|
12507
|
+
appName?: string;
|
|
12508
|
+
/** Window bounds in physical pixel coords */
|
|
12509
|
+
bounds?: {
|
|
12510
|
+
x: number;
|
|
12511
|
+
y: number;
|
|
12512
|
+
width: number;
|
|
12513
|
+
height: number;
|
|
12514
|
+
};
|
|
12515
|
+
}
|
|
12516
|
+
interface IDesktopDriver {
|
|
12517
|
+
/** Initialize the driver (dynamic import, permission checks, scale detection) */
|
|
12518
|
+
initialize(): Promise<void>;
|
|
12519
|
+
/** Whether the driver is initialized */
|
|
12520
|
+
readonly isInitialized: boolean;
|
|
12521
|
+
/** Current scale factor (physical / logical) */
|
|
12522
|
+
readonly scaleFactor: number;
|
|
12523
|
+
screenshot(region?: {
|
|
12524
|
+
x: number;
|
|
12525
|
+
y: number;
|
|
12526
|
+
width: number;
|
|
12527
|
+
height: number;
|
|
12528
|
+
}): Promise<DesktopScreenshot>;
|
|
12529
|
+
getScreenSize(): Promise<DesktopScreenSize>;
|
|
12530
|
+
mouseMove(x: number, y: number): Promise<void>;
|
|
12531
|
+
mouseClick(x: number, y: number, button: MouseButton, clickCount: number): Promise<void>;
|
|
12532
|
+
mouseDrag(startX: number, startY: number, endX: number, endY: number, button: MouseButton): Promise<void>;
|
|
12533
|
+
mouseScroll(deltaX: number, deltaY: number, x?: number, y?: number): Promise<void>;
|
|
12534
|
+
getCursorPosition(): Promise<DesktopPoint>;
|
|
12535
|
+
keyboardType(text: string, delay?: number): Promise<void>;
|
|
12536
|
+
keyboardKey(keys: string): Promise<void>;
|
|
12537
|
+
getWindowList(): Promise<DesktopWindow[]>;
|
|
12538
|
+
focusWindow(windowId: number): Promise<void>;
|
|
12539
|
+
}
|
|
12540
|
+
interface DesktopToolConfig {
|
|
12541
|
+
/** Custom driver implementation (defaults to NutTreeDriver) */
|
|
12542
|
+
driver?: IDesktopDriver;
|
|
12543
|
+
/**
|
|
12544
|
+
* Human-like delay range in ms added between actions.
|
|
12545
|
+
* Set to [0, 0] for instant actions.
|
|
12546
|
+
* Default: [50, 150]
|
|
12547
|
+
*/
|
|
12548
|
+
humanDelay?: [number, number];
|
|
12549
|
+
/**
|
|
12550
|
+
* Whether to humanize mouse movements (curved path vs instant teleport).
|
|
12551
|
+
* Default: false
|
|
12552
|
+
*/
|
|
12553
|
+
humanizeMovement?: boolean;
|
|
12554
|
+
}
|
|
12555
|
+
declare const DEFAULT_DESKTOP_CONFIG: Required<DesktopToolConfig>;
|
|
12556
|
+
/**
|
|
12557
|
+
* Apply a random human-like delay based on config.
|
|
12558
|
+
*/
|
|
12559
|
+
declare function applyHumanDelay(config: DesktopToolConfig): Promise<void>;
|
|
12560
|
+
interface DesktopScreenshotArgs {
|
|
12561
|
+
region?: {
|
|
12562
|
+
x: number;
|
|
12563
|
+
y: number;
|
|
12564
|
+
width: number;
|
|
12565
|
+
height: number;
|
|
12566
|
+
};
|
|
12567
|
+
}
|
|
12568
|
+
interface DesktopScreenshotResult {
|
|
12569
|
+
success: boolean;
|
|
12570
|
+
width?: number;
|
|
12571
|
+
height?: number;
|
|
12572
|
+
/** Base64 PNG for text summary */
|
|
12573
|
+
base64?: string;
|
|
12574
|
+
/** Image array for multimodal provider handling */
|
|
12575
|
+
__images?: Array<{
|
|
12576
|
+
base64: string;
|
|
12577
|
+
mediaType: string;
|
|
12578
|
+
}>;
|
|
12579
|
+
error?: string;
|
|
12580
|
+
}
|
|
12581
|
+
interface DesktopMouseMoveArgs {
|
|
12582
|
+
x: number;
|
|
12583
|
+
y: number;
|
|
12584
|
+
}
|
|
12585
|
+
interface DesktopMouseMoveResult {
|
|
12586
|
+
success: boolean;
|
|
12587
|
+
x?: number;
|
|
12588
|
+
y?: number;
|
|
12589
|
+
error?: string;
|
|
12590
|
+
}
|
|
12591
|
+
interface DesktopMouseClickArgs {
|
|
12592
|
+
x?: number;
|
|
12593
|
+
y?: number;
|
|
12594
|
+
button?: MouseButton;
|
|
12595
|
+
clickCount?: number;
|
|
12596
|
+
}
|
|
12597
|
+
interface DesktopMouseClickResult {
|
|
12598
|
+
success: boolean;
|
|
12599
|
+
x?: number;
|
|
12600
|
+
y?: number;
|
|
12601
|
+
button?: MouseButton;
|
|
12602
|
+
clickCount?: number;
|
|
12603
|
+
error?: string;
|
|
12604
|
+
}
|
|
12605
|
+
interface DesktopMouseDragArgs {
|
|
12606
|
+
startX: number;
|
|
12607
|
+
startY: number;
|
|
12608
|
+
endX: number;
|
|
12609
|
+
endY: number;
|
|
12610
|
+
button?: MouseButton;
|
|
12611
|
+
}
|
|
12612
|
+
interface DesktopMouseDragResult {
|
|
12613
|
+
success: boolean;
|
|
12614
|
+
error?: string;
|
|
12615
|
+
}
|
|
12616
|
+
interface DesktopMouseScrollArgs {
|
|
12617
|
+
deltaX?: number;
|
|
12618
|
+
deltaY?: number;
|
|
12619
|
+
x?: number;
|
|
12620
|
+
y?: number;
|
|
12621
|
+
}
|
|
12622
|
+
interface DesktopMouseScrollResult {
|
|
12623
|
+
success: boolean;
|
|
12624
|
+
error?: string;
|
|
12625
|
+
}
|
|
12626
|
+
interface DesktopGetCursorResult {
|
|
12627
|
+
success: boolean;
|
|
12628
|
+
x?: number;
|
|
12629
|
+
y?: number;
|
|
12630
|
+
error?: string;
|
|
12631
|
+
}
|
|
12632
|
+
interface DesktopKeyboardTypeArgs {
|
|
12633
|
+
text: string;
|
|
12634
|
+
delay?: number;
|
|
12635
|
+
}
|
|
12636
|
+
interface DesktopKeyboardTypeResult {
|
|
12637
|
+
success: boolean;
|
|
12638
|
+
error?: string;
|
|
12639
|
+
}
|
|
12640
|
+
interface DesktopKeyboardKeyArgs {
|
|
12641
|
+
keys: string;
|
|
12642
|
+
}
|
|
12643
|
+
interface DesktopKeyboardKeyResult {
|
|
12644
|
+
success: boolean;
|
|
12645
|
+
error?: string;
|
|
12646
|
+
}
|
|
12647
|
+
interface DesktopGetScreenSizeResult {
|
|
12648
|
+
success: boolean;
|
|
12649
|
+
physicalWidth?: number;
|
|
12650
|
+
physicalHeight?: number;
|
|
12651
|
+
logicalWidth?: number;
|
|
12652
|
+
logicalHeight?: number;
|
|
12653
|
+
scaleFactor?: number;
|
|
12654
|
+
error?: string;
|
|
12655
|
+
}
|
|
12656
|
+
interface DesktopWindowListResult {
|
|
12657
|
+
success: boolean;
|
|
12658
|
+
windows?: DesktopWindow[];
|
|
12659
|
+
error?: string;
|
|
12660
|
+
}
|
|
12661
|
+
interface DesktopWindowFocusArgs {
|
|
12662
|
+
windowId: number;
|
|
12663
|
+
}
|
|
12664
|
+
interface DesktopWindowFocusResult {
|
|
12665
|
+
success: boolean;
|
|
12666
|
+
error?: string;
|
|
12667
|
+
}
|
|
12668
|
+
declare const DESKTOP_TOOL_NAMES: readonly ["desktop_screenshot", "desktop_mouse_move", "desktop_mouse_click", "desktop_mouse_drag", "desktop_mouse_scroll", "desktop_get_cursor", "desktop_keyboard_type", "desktop_keyboard_key", "desktop_get_screen_size", "desktop_window_list", "desktop_window_focus"];
|
|
12669
|
+
type DesktopToolName = (typeof DESKTOP_TOOL_NAMES)[number];
|
|
12670
|
+
|
|
12671
|
+
/**
|
|
12672
|
+
* NutTreeDriver - Desktop automation driver using @nut-tree-fork/nut-js
|
|
12673
|
+
*
|
|
12674
|
+
* Handles:
|
|
12675
|
+
* - Dynamic import of @nut-tree-fork/nut-js (optional peer dep)
|
|
12676
|
+
* - Scale factor detection for Retina/HiDPI displays
|
|
12677
|
+
* - Coordinate conversion: physical pixels (screenshot space) ↔ logical OS coords
|
|
12678
|
+
* - PNG encoding of raw RGBA screenshots
|
|
12679
|
+
*/
|
|
12680
|
+
|
|
12681
|
+
/**
|
|
12682
|
+
* Parse a key combo string like "ctrl+c", "cmd+shift+s", "enter"
|
|
12683
|
+
* Returns nut-tree Key enum values.
|
|
12684
|
+
*/
|
|
12685
|
+
declare function parseKeyCombo(keys: string, KeyEnum: Record<string, any>): any[];
|
|
12686
|
+
declare class NutTreeDriver implements IDesktopDriver {
|
|
12687
|
+
private _isInitialized;
|
|
12688
|
+
private _scaleFactor;
|
|
12689
|
+
private _nut;
|
|
12690
|
+
private _windowCache;
|
|
12691
|
+
get isInitialized(): boolean;
|
|
12692
|
+
get scaleFactor(): number;
|
|
12693
|
+
initialize(): Promise<void>;
|
|
12694
|
+
private assertInitialized;
|
|
12695
|
+
/** Convert physical (screenshot) coords to logical (OS) coords */
|
|
12696
|
+
private toLogical;
|
|
12697
|
+
/** Convert logical (OS) coords to physical (screenshot) coords */
|
|
12698
|
+
private toPhysical;
|
|
12699
|
+
screenshot(region?: {
|
|
12700
|
+
x: number;
|
|
12701
|
+
y: number;
|
|
12702
|
+
width: number;
|
|
12703
|
+
height: number;
|
|
12704
|
+
}): Promise<DesktopScreenshot>;
|
|
12705
|
+
getScreenSize(): Promise<DesktopScreenSize>;
|
|
12706
|
+
mouseMove(x: number, y: number): Promise<void>;
|
|
12707
|
+
mouseClick(x: number, y: number, button: MouseButton, clickCount: number): Promise<void>;
|
|
12708
|
+
mouseDrag(startX: number, startY: number, endX: number, endY: number, button: MouseButton): Promise<void>;
|
|
12709
|
+
mouseScroll(deltaX: number, deltaY: number, x?: number, y?: number): Promise<void>;
|
|
12710
|
+
getCursorPosition(): Promise<DesktopPoint>;
|
|
12711
|
+
keyboardType(text: string, delay?: number): Promise<void>;
|
|
12712
|
+
keyboardKey(keys: string): Promise<void>;
|
|
12713
|
+
getWindowList(): Promise<DesktopWindow[]>;
|
|
12714
|
+
focusWindow(windowId: number): Promise<void>;
|
|
12715
|
+
}
|
|
12716
|
+
|
|
12717
|
+
/**
|
|
12718
|
+
* Lazy singleton driver accessor for desktop tools.
|
|
12719
|
+
*
|
|
12720
|
+
* First call initializes the driver (dynamic import + scale detection).
|
|
12721
|
+
* Subsequent calls reuse the same instance.
|
|
12722
|
+
*/
|
|
12723
|
+
|
|
12724
|
+
/**
|
|
12725
|
+
* Get (or create) the desktop driver instance.
|
|
12726
|
+
* If config.driver is provided, uses that instead of the default.
|
|
12727
|
+
*/
|
|
12728
|
+
declare function getDesktopDriver(config?: DesktopToolConfig): Promise<IDesktopDriver>;
|
|
12729
|
+
/**
|
|
12730
|
+
* Reset the default driver (for testing).
|
|
12731
|
+
*/
|
|
12732
|
+
declare function resetDefaultDriver(): void;
|
|
12733
|
+
|
|
12734
|
+
/**
|
|
12735
|
+
* Desktop Screenshot Tool
|
|
12736
|
+
*
|
|
12737
|
+
* Captures a screenshot of the entire screen or a specific region.
|
|
12738
|
+
* Returns base64 PNG with __images convention for multimodal provider handling.
|
|
12739
|
+
*/
|
|
12740
|
+
|
|
12741
|
+
declare function createDesktopScreenshotTool(config?: DesktopToolConfig): ToolFunction<DesktopScreenshotArgs, DesktopScreenshotResult>;
|
|
12742
|
+
declare const desktopScreenshot: ToolFunction<DesktopScreenshotArgs, DesktopScreenshotResult>;
|
|
12743
|
+
|
|
12744
|
+
/**
|
|
12745
|
+
* Desktop Mouse Move Tool
|
|
12746
|
+
*
|
|
12747
|
+
* Moves the mouse cursor to a specific position on screen.
|
|
12748
|
+
* Coordinates are in physical pixel space (same as screenshot pixels).
|
|
12749
|
+
*/
|
|
12750
|
+
|
|
12751
|
+
declare function createDesktopMouseMoveTool(config?: DesktopToolConfig): ToolFunction<DesktopMouseMoveArgs, DesktopMouseMoveResult>;
|
|
12752
|
+
declare const desktopMouseMove: ToolFunction<DesktopMouseMoveArgs, DesktopMouseMoveResult>;
|
|
12753
|
+
|
|
12754
|
+
/**
|
|
12755
|
+
* Desktop Mouse Click Tool
|
|
12756
|
+
*
|
|
12757
|
+
* Clicks at the current cursor position or at specified coordinates.
|
|
12758
|
+
* If x/y are provided, moves to that position first, then clicks.
|
|
12759
|
+
*/
|
|
12760
|
+
|
|
12761
|
+
declare function createDesktopMouseClickTool(config?: DesktopToolConfig): ToolFunction<DesktopMouseClickArgs, DesktopMouseClickResult>;
|
|
12762
|
+
declare const desktopMouseClick: ToolFunction<DesktopMouseClickArgs, DesktopMouseClickResult>;
|
|
12763
|
+
|
|
12764
|
+
/**
|
|
12765
|
+
* Desktop Mouse Drag Tool
|
|
12766
|
+
*
|
|
12767
|
+
* Drags from one position to another (press, move, release).
|
|
12768
|
+
*/
|
|
12769
|
+
|
|
12770
|
+
declare function createDesktopMouseDragTool(config?: DesktopToolConfig): ToolFunction<DesktopMouseDragArgs, DesktopMouseDragResult>;
|
|
12771
|
+
declare const desktopMouseDrag: ToolFunction<DesktopMouseDragArgs, DesktopMouseDragResult>;
|
|
12772
|
+
|
|
12773
|
+
/**
|
|
12774
|
+
* Desktop Mouse Scroll Tool
|
|
12775
|
+
*
|
|
12776
|
+
* Scrolls the mouse wheel at the current position or at specified coordinates.
|
|
12777
|
+
*/
|
|
12778
|
+
|
|
12779
|
+
declare function createDesktopMouseScrollTool(config?: DesktopToolConfig): ToolFunction<DesktopMouseScrollArgs, DesktopMouseScrollResult>;
|
|
12780
|
+
declare const desktopMouseScroll: ToolFunction<DesktopMouseScrollArgs, DesktopMouseScrollResult>;
|
|
12781
|
+
|
|
12782
|
+
/**
|
|
12783
|
+
* Desktop Get Cursor Tool
|
|
12784
|
+
*
|
|
12785
|
+
* Returns the current cursor position in physical pixel (screenshot) coordinates.
|
|
12786
|
+
*/
|
|
12787
|
+
|
|
12788
|
+
declare function createDesktopGetCursorTool(config?: DesktopToolConfig): ToolFunction<Record<string, never>, DesktopGetCursorResult>;
|
|
12789
|
+
declare const desktopGetCursor: ToolFunction<Record<string, never>, DesktopGetCursorResult>;
|
|
12790
|
+
|
|
12791
|
+
/**
|
|
12792
|
+
* Desktop Keyboard Type Tool
|
|
12793
|
+
*
|
|
12794
|
+
* Types text as if from a physical keyboard.
|
|
12795
|
+
*/
|
|
12796
|
+
|
|
12797
|
+
declare function createDesktopKeyboardTypeTool(config?: DesktopToolConfig): ToolFunction<DesktopKeyboardTypeArgs, DesktopKeyboardTypeResult>;
|
|
12798
|
+
declare const desktopKeyboardType: ToolFunction<DesktopKeyboardTypeArgs, DesktopKeyboardTypeResult>;
|
|
12799
|
+
|
|
12800
|
+
/**
|
|
12801
|
+
* Desktop Keyboard Key Tool
|
|
12802
|
+
*
|
|
12803
|
+
* Presses keyboard shortcuts or special keys (e.g., "ctrl+c", "enter", "cmd+shift+s").
|
|
12804
|
+
*/
|
|
12805
|
+
|
|
12806
|
+
declare function createDesktopKeyboardKeyTool(config?: DesktopToolConfig): ToolFunction<DesktopKeyboardKeyArgs, DesktopKeyboardKeyResult>;
|
|
12807
|
+
declare const desktopKeyboardKey: ToolFunction<DesktopKeyboardKeyArgs, DesktopKeyboardKeyResult>;
|
|
12808
|
+
|
|
12809
|
+
/**
|
|
12810
|
+
* Desktop Get Screen Size Tool
|
|
12811
|
+
*
|
|
12812
|
+
* Returns the screen dimensions (physical, logical, and scale factor).
|
|
12813
|
+
*/
|
|
12814
|
+
|
|
12815
|
+
declare function createDesktopGetScreenSizeTool(config?: DesktopToolConfig): ToolFunction<Record<string, never>, DesktopGetScreenSizeResult>;
|
|
12816
|
+
declare const desktopGetScreenSize: ToolFunction<Record<string, never>, DesktopGetScreenSizeResult>;
|
|
12817
|
+
|
|
12818
|
+
/**
|
|
12819
|
+
* Desktop Window List Tool
|
|
12820
|
+
*
|
|
12821
|
+
* Lists all visible windows with their IDs, titles, and bounds.
|
|
12822
|
+
*/
|
|
12823
|
+
|
|
12824
|
+
declare function createDesktopWindowListTool(config?: DesktopToolConfig): ToolFunction<Record<string, never>, DesktopWindowListResult>;
|
|
12825
|
+
declare const desktopWindowList: ToolFunction<Record<string, never>, DesktopWindowListResult>;
|
|
12826
|
+
|
|
12827
|
+
/**
|
|
12828
|
+
* Desktop Window Focus Tool
|
|
12829
|
+
*
|
|
12830
|
+
* Brings a specific window to the foreground by its window ID.
|
|
12831
|
+
*/
|
|
12832
|
+
|
|
12833
|
+
declare function createDesktopWindowFocusTool(config?: DesktopToolConfig): ToolFunction<DesktopWindowFocusArgs, DesktopWindowFocusResult>;
|
|
12834
|
+
declare const desktopWindowFocus: ToolFunction<DesktopWindowFocusArgs, DesktopWindowFocusResult>;
|
|
12835
|
+
|
|
12836
|
+
/**
|
|
12837
|
+
* A bundle of all desktop automation tools.
|
|
12838
|
+
* Includes: screenshot, mouse (move, click, drag, scroll, getCursor),
|
|
12839
|
+
* keyboard (type, key), screen info, and window management.
|
|
12840
|
+
*/
|
|
12841
|
+
declare const desktopTools: (ToolFunction<DesktopScreenshotArgs, DesktopScreenshotResult> | ToolFunction<DesktopMouseMoveArgs, DesktopMouseMoveResult> | ToolFunction<DesktopMouseClickArgs, DesktopMouseClickResult> | ToolFunction<DesktopMouseDragArgs, DesktopMouseDragResult> | ToolFunction<DesktopMouseScrollArgs, DesktopMouseScrollResult> | ToolFunction<Record<string, never>, DesktopGetCursorResult> | ToolFunction<DesktopKeyboardTypeArgs, DesktopKeyboardTypeResult> | ToolFunction<DesktopKeyboardKeyArgs, DesktopKeyboardKeyResult> | ToolFunction<Record<string, never>, DesktopGetScreenSizeResult> | ToolFunction<Record<string, never>, DesktopWindowListResult> | ToolFunction<DesktopWindowFocusArgs, DesktopWindowFocusResult>)[];
|
|
12842
|
+
|
|
12090
12843
|
/**
|
|
12091
12844
|
* AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
|
|
12092
12845
|
*
|
|
12093
12846
|
* Generated by: scripts/generate-tool-registry.ts
|
|
12094
|
-
* Generated at: 2026-02-
|
|
12847
|
+
* Generated at: 2026-02-16T17:24:59.049Z
|
|
12095
12848
|
*
|
|
12096
12849
|
* To regenerate: npm run generate:tools
|
|
12097
12850
|
*/
|
|
12098
12851
|
|
|
12099
12852
|
/** Tool category for grouping */
|
|
12100
|
-
type ToolCategory = 'filesystem' | 'shell' | 'web' | 'code' | 'json' | 'connector' | 'other';
|
|
12853
|
+
type ToolCategory = 'filesystem' | 'shell' | 'web' | 'code' | 'json' | 'connector' | 'desktop' | 'other';
|
|
12101
12854
|
/** Metadata for a tool in the registry */
|
|
12102
12855
|
interface ToolRegistryEntry {
|
|
12103
12856
|
/** Tool name (matches definition.function.name) */
|
|
@@ -12269,10 +13022,53 @@ type index_BashResult = BashResult;
|
|
|
12269
13022
|
type index_ConnectorToolEntry = ConnectorToolEntry;
|
|
12270
13023
|
type index_ConnectorTools = ConnectorTools;
|
|
12271
13024
|
declare const index_ConnectorTools: typeof ConnectorTools;
|
|
13025
|
+
declare const index_DEFAULT_DESKTOP_CONFIG: typeof DEFAULT_DESKTOP_CONFIG;
|
|
12272
13026
|
declare const index_DEFAULT_FILESYSTEM_CONFIG: typeof DEFAULT_FILESYSTEM_CONFIG;
|
|
12273
13027
|
declare const index_DEFAULT_SHELL_CONFIG: typeof DEFAULT_SHELL_CONFIG;
|
|
13028
|
+
declare const index_DESKTOP_TOOL_NAMES: typeof DESKTOP_TOOL_NAMES;
|
|
13029
|
+
type index_DesktopGetCursorResult = DesktopGetCursorResult;
|
|
13030
|
+
type index_DesktopGetScreenSizeResult = DesktopGetScreenSizeResult;
|
|
13031
|
+
type index_DesktopKeyboardKeyArgs = DesktopKeyboardKeyArgs;
|
|
13032
|
+
type index_DesktopKeyboardKeyResult = DesktopKeyboardKeyResult;
|
|
13033
|
+
type index_DesktopKeyboardTypeArgs = DesktopKeyboardTypeArgs;
|
|
13034
|
+
type index_DesktopKeyboardTypeResult = DesktopKeyboardTypeResult;
|
|
13035
|
+
type index_DesktopMouseClickArgs = DesktopMouseClickArgs;
|
|
13036
|
+
type index_DesktopMouseClickResult = DesktopMouseClickResult;
|
|
13037
|
+
type index_DesktopMouseDragArgs = DesktopMouseDragArgs;
|
|
13038
|
+
type index_DesktopMouseDragResult = DesktopMouseDragResult;
|
|
13039
|
+
type index_DesktopMouseMoveArgs = DesktopMouseMoveArgs;
|
|
13040
|
+
type index_DesktopMouseMoveResult = DesktopMouseMoveResult;
|
|
13041
|
+
type index_DesktopMouseScrollArgs = DesktopMouseScrollArgs;
|
|
13042
|
+
type index_DesktopMouseScrollResult = DesktopMouseScrollResult;
|
|
13043
|
+
type index_DesktopPoint = DesktopPoint;
|
|
13044
|
+
type index_DesktopScreenSize = DesktopScreenSize;
|
|
13045
|
+
type index_DesktopScreenshot = DesktopScreenshot;
|
|
13046
|
+
type index_DesktopScreenshotArgs = DesktopScreenshotArgs;
|
|
13047
|
+
type index_DesktopScreenshotResult = DesktopScreenshotResult;
|
|
13048
|
+
type index_DesktopToolConfig = DesktopToolConfig;
|
|
13049
|
+
type index_DesktopToolName = DesktopToolName;
|
|
13050
|
+
type index_DesktopWindow = DesktopWindow;
|
|
13051
|
+
type index_DesktopWindowFocusArgs = DesktopWindowFocusArgs;
|
|
13052
|
+
type index_DesktopWindowFocusResult = DesktopWindowFocusResult;
|
|
13053
|
+
type index_DesktopWindowListResult = DesktopWindowListResult;
|
|
13054
|
+
type index_DocumentFamily = DocumentFamily;
|
|
13055
|
+
type index_DocumentFormat = DocumentFormat;
|
|
13056
|
+
type index_DocumentImagePiece = DocumentImagePiece;
|
|
13057
|
+
type index_DocumentMetadata = DocumentMetadata;
|
|
13058
|
+
type index_DocumentPiece = DocumentPiece;
|
|
13059
|
+
type index_DocumentReadOptions = DocumentReadOptions;
|
|
13060
|
+
type index_DocumentReader = DocumentReader;
|
|
13061
|
+
declare const index_DocumentReader: typeof DocumentReader;
|
|
13062
|
+
type index_DocumentReaderConfig = DocumentReaderConfig;
|
|
13063
|
+
type index_DocumentResult = DocumentResult;
|
|
13064
|
+
type index_DocumentSource = DocumentSource;
|
|
13065
|
+
type index_DocumentTextPiece = DocumentTextPiece;
|
|
13066
|
+
type index_DocumentToContentOptions = DocumentToContentOptions;
|
|
12274
13067
|
type index_EditFileResult = EditFileResult;
|
|
12275
13068
|
type index_FilesystemToolConfig = FilesystemToolConfig;
|
|
13069
|
+
type index_FormatDetectionResult = FormatDetectionResult;
|
|
13070
|
+
type index_FormatDetector = FormatDetector;
|
|
13071
|
+
declare const index_FormatDetector: typeof FormatDetector;
|
|
12276
13072
|
type index_GenericAPICallArgs = GenericAPICallArgs;
|
|
12277
13073
|
type index_GenericAPICallResult = GenericAPICallResult;
|
|
12278
13074
|
type index_GenericAPIToolOptions = GenericAPIToolOptions;
|
|
@@ -12288,6 +13084,13 @@ type index_GitHubSearchFilesResult = GitHubSearchFilesResult;
|
|
|
12288
13084
|
type index_GlobResult = GlobResult;
|
|
12289
13085
|
type index_GrepMatch = GrepMatch;
|
|
12290
13086
|
type index_GrepResult = GrepResult;
|
|
13087
|
+
type index_IDesktopDriver = IDesktopDriver;
|
|
13088
|
+
type index_IDocumentTransformer = IDocumentTransformer;
|
|
13089
|
+
type index_IFormatHandler = IFormatHandler;
|
|
13090
|
+
type index_ImageFilterOptions = ImageFilterOptions;
|
|
13091
|
+
type index_MouseButton = MouseButton;
|
|
13092
|
+
type index_NutTreeDriver = NutTreeDriver;
|
|
13093
|
+
declare const index_NutTreeDriver: typeof NutTreeDriver;
|
|
12291
13094
|
type index_ReadFileResult = ReadFileResult;
|
|
12292
13095
|
type index_SearchResult = SearchResult;
|
|
12293
13096
|
type index_ServiceToolFactory = ServiceToolFactory;
|
|
@@ -12297,9 +13100,21 @@ type index_ToolRegistry = ToolRegistry;
|
|
|
12297
13100
|
declare const index_ToolRegistry: typeof ToolRegistry;
|
|
12298
13101
|
type index_ToolRegistryEntry = ToolRegistryEntry;
|
|
12299
13102
|
type index_WriteFileResult = WriteFileResult;
|
|
13103
|
+
declare const index_applyHumanDelay: typeof applyHumanDelay;
|
|
12300
13104
|
declare const index_bash: typeof bash;
|
|
12301
13105
|
declare const index_createBashTool: typeof createBashTool;
|
|
12302
13106
|
declare const index_createCreatePRTool: typeof createCreatePRTool;
|
|
13107
|
+
declare const index_createDesktopGetCursorTool: typeof createDesktopGetCursorTool;
|
|
13108
|
+
declare const index_createDesktopGetScreenSizeTool: typeof createDesktopGetScreenSizeTool;
|
|
13109
|
+
declare const index_createDesktopKeyboardKeyTool: typeof createDesktopKeyboardKeyTool;
|
|
13110
|
+
declare const index_createDesktopKeyboardTypeTool: typeof createDesktopKeyboardTypeTool;
|
|
13111
|
+
declare const index_createDesktopMouseClickTool: typeof createDesktopMouseClickTool;
|
|
13112
|
+
declare const index_createDesktopMouseDragTool: typeof createDesktopMouseDragTool;
|
|
13113
|
+
declare const index_createDesktopMouseMoveTool: typeof createDesktopMouseMoveTool;
|
|
13114
|
+
declare const index_createDesktopMouseScrollTool: typeof createDesktopMouseScrollTool;
|
|
13115
|
+
declare const index_createDesktopScreenshotTool: typeof createDesktopScreenshotTool;
|
|
13116
|
+
declare const index_createDesktopWindowFocusTool: typeof createDesktopWindowFocusTool;
|
|
13117
|
+
declare const index_createDesktopWindowListTool: typeof createDesktopWindowListTool;
|
|
12303
13118
|
declare const index_createEditFileTool: typeof createEditFileTool;
|
|
12304
13119
|
declare const index_createExecuteJavaScriptTool: typeof createExecuteJavaScriptTool;
|
|
12305
13120
|
declare const index_createGetPRTool: typeof createGetPRTool;
|
|
@@ -12319,12 +13134,25 @@ declare const index_createVideoTools: typeof createVideoTools;
|
|
|
12319
13134
|
declare const index_createWebScrapeTool: typeof createWebScrapeTool;
|
|
12320
13135
|
declare const index_createWebSearchTool: typeof createWebSearchTool;
|
|
12321
13136
|
declare const index_createWriteFileTool: typeof createWriteFileTool;
|
|
13137
|
+
declare const index_desktopGetCursor: typeof desktopGetCursor;
|
|
13138
|
+
declare const index_desktopGetScreenSize: typeof desktopGetScreenSize;
|
|
13139
|
+
declare const index_desktopKeyboardKey: typeof desktopKeyboardKey;
|
|
13140
|
+
declare const index_desktopKeyboardType: typeof desktopKeyboardType;
|
|
13141
|
+
declare const index_desktopMouseClick: typeof desktopMouseClick;
|
|
13142
|
+
declare const index_desktopMouseDrag: typeof desktopMouseDrag;
|
|
13143
|
+
declare const index_desktopMouseMove: typeof desktopMouseMove;
|
|
13144
|
+
declare const index_desktopMouseScroll: typeof desktopMouseScroll;
|
|
13145
|
+
declare const index_desktopScreenshot: typeof desktopScreenshot;
|
|
13146
|
+
declare const index_desktopTools: typeof desktopTools;
|
|
13147
|
+
declare const index_desktopWindowFocus: typeof desktopWindowFocus;
|
|
13148
|
+
declare const index_desktopWindowList: typeof desktopWindowList;
|
|
12322
13149
|
declare const index_developerTools: typeof developerTools;
|
|
12323
13150
|
declare const index_editFile: typeof editFile;
|
|
12324
13151
|
declare const index_executeJavaScript: typeof executeJavaScript;
|
|
12325
13152
|
declare const index_expandTilde: typeof expandTilde;
|
|
12326
13153
|
declare const index_getAllBuiltInTools: typeof getAllBuiltInTools;
|
|
12327
13154
|
declare const index_getBackgroundOutput: typeof getBackgroundOutput;
|
|
13155
|
+
declare const index_getDesktopDriver: typeof getDesktopDriver;
|
|
12328
13156
|
declare const index_getMediaOutputHandler: typeof getMediaOutputHandler;
|
|
12329
13157
|
declare const index_getMediaStorage: typeof getMediaStorage;
|
|
12330
13158
|
declare const index_getToolByName: typeof getToolByName;
|
|
@@ -12339,8 +13167,11 @@ declare const index_isExcludedExtension: typeof isExcludedExtension;
|
|
|
12339
13167
|
declare const index_jsonManipulator: typeof jsonManipulator;
|
|
12340
13168
|
declare const index_killBackgroundProcess: typeof killBackgroundProcess;
|
|
12341
13169
|
declare const index_listDirectory: typeof listDirectory;
|
|
13170
|
+
declare const index_mergeTextPieces: typeof mergeTextPieces;
|
|
13171
|
+
declare const index_parseKeyCombo: typeof parseKeyCombo;
|
|
12342
13172
|
declare const index_parseRepository: typeof parseRepository;
|
|
12343
13173
|
declare const index_readFile: typeof readFile;
|
|
13174
|
+
declare const index_resetDefaultDriver: typeof resetDefaultDriver;
|
|
12344
13175
|
declare const index_resolveRepository: typeof resolveRepository;
|
|
12345
13176
|
declare const index_setMediaOutputHandler: typeof setMediaOutputHandler;
|
|
12346
13177
|
declare const index_setMediaStorage: typeof setMediaStorage;
|
|
@@ -12349,7 +13180,7 @@ declare const index_validatePath: typeof validatePath;
|
|
|
12349
13180
|
declare const index_webFetch: typeof webFetch;
|
|
12350
13181
|
declare const index_writeFile: typeof writeFile;
|
|
12351
13182
|
declare namespace index {
|
|
12352
|
-
export { type index_BashResult as BashResult, type index_ConnectorToolEntry as ConnectorToolEntry, index_ConnectorTools as ConnectorTools, index_DEFAULT_FILESYSTEM_CONFIG as DEFAULT_FILESYSTEM_CONFIG, index_DEFAULT_SHELL_CONFIG as DEFAULT_SHELL_CONFIG, type index_EditFileResult as EditFileResult, FileMediaStorage as FileMediaOutputHandler, type index_FilesystemToolConfig as FilesystemToolConfig, type index_GenericAPICallArgs as GenericAPICallArgs, type index_GenericAPICallResult as GenericAPICallResult, type index_GenericAPIToolOptions as GenericAPIToolOptions, type index_GitHubCreatePRResult as GitHubCreatePRResult, type index_GitHubGetPRResult as GitHubGetPRResult, type index_GitHubPRCommentEntry as GitHubPRCommentEntry, type index_GitHubPRCommentsResult as GitHubPRCommentsResult, type index_GitHubPRFilesResult as GitHubPRFilesResult, type index_GitHubReadFileResult as GitHubReadFileResult, type index_GitHubRepository as GitHubRepository, type index_GitHubSearchCodeResult as GitHubSearchCodeResult, type index_GitHubSearchFilesResult as GitHubSearchFilesResult, type index_GlobResult as GlobResult, type index_GrepMatch as GrepMatch, type index_GrepResult as GrepResult, type IMediaStorage as IMediaOutputHandler, type MediaStorageMetadata as MediaOutputMetadata, type MediaStorageResult as MediaOutputResult, type index_ReadFileResult as ReadFileResult, type index_SearchResult as SearchResult, type index_ServiceToolFactory as ServiceToolFactory, type index_ShellToolConfig as ShellToolConfig, type index_ToolCategory as ToolCategory, index_ToolRegistry as ToolRegistry, type index_ToolRegistryEntry as ToolRegistryEntry, type index_WriteFileResult as WriteFileResult, index_bash as bash, index_createBashTool as createBashTool, index_createCreatePRTool as createCreatePRTool, index_createEditFileTool as createEditFileTool, index_createExecuteJavaScriptTool as createExecuteJavaScriptTool, index_createGetPRTool as createGetPRTool, index_createGitHubReadFileTool as createGitHubReadFileTool, index_createGlobTool as createGlobTool, index_createGrepTool as createGrepTool, index_createImageGenerationTool as createImageGenerationTool, index_createListDirectoryTool as createListDirectoryTool, index_createPRCommentsTool as createPRCommentsTool, index_createPRFilesTool as createPRFilesTool, index_createReadFileTool as createReadFileTool, index_createSearchCodeTool as createSearchCodeTool, index_createSearchFilesTool as createSearchFilesTool, index_createSpeechToTextTool as createSpeechToTextTool, index_createTextToSpeechTool as createTextToSpeechTool, index_createVideoTools as createVideoTools, index_createWebScrapeTool as createWebScrapeTool, index_createWebSearchTool as createWebSearchTool, index_createWriteFileTool as createWriteFileTool, index_developerTools as developerTools, index_editFile as editFile, index_executeJavaScript as executeJavaScript, index_expandTilde as expandTilde, index_getAllBuiltInTools as getAllBuiltInTools, index_getBackgroundOutput as getBackgroundOutput, index_getMediaOutputHandler as getMediaOutputHandler, index_getMediaStorage as getMediaStorage, index_getToolByName as getToolByName, index_getToolCategories as getToolCategories, index_getToolRegistry as getToolRegistry, index_getToolsByCategory as getToolsByCategory, index_getToolsRequiringConnector as getToolsRequiringConnector, index_glob as glob, index_grep as grep, index_isBlockedCommand as isBlockedCommand, index_isExcludedExtension as isExcludedExtension, index_jsonManipulator as jsonManipulator, index_killBackgroundProcess as killBackgroundProcess, index_listDirectory as listDirectory, index_parseRepository as parseRepository, index_readFile as readFile, index_resolveRepository as resolveRepository, index_setMediaOutputHandler as setMediaOutputHandler, index_setMediaStorage as setMediaStorage, index_toolRegistry as toolRegistry, index_validatePath as validatePath, index_webFetch as webFetch, index_writeFile as writeFile };
|
|
13183
|
+
export { type index_BashResult as BashResult, type index_ConnectorToolEntry as ConnectorToolEntry, index_ConnectorTools as ConnectorTools, index_DEFAULT_DESKTOP_CONFIG as DEFAULT_DESKTOP_CONFIG, index_DEFAULT_FILESYSTEM_CONFIG as DEFAULT_FILESYSTEM_CONFIG, index_DEFAULT_SHELL_CONFIG as DEFAULT_SHELL_CONFIG, index_DESKTOP_TOOL_NAMES as DESKTOP_TOOL_NAMES, type index_DesktopGetCursorResult as DesktopGetCursorResult, type index_DesktopGetScreenSizeResult as DesktopGetScreenSizeResult, type index_DesktopKeyboardKeyArgs as DesktopKeyboardKeyArgs, type index_DesktopKeyboardKeyResult as DesktopKeyboardKeyResult, type index_DesktopKeyboardTypeArgs as DesktopKeyboardTypeArgs, type index_DesktopKeyboardTypeResult as DesktopKeyboardTypeResult, type index_DesktopMouseClickArgs as DesktopMouseClickArgs, type index_DesktopMouseClickResult as DesktopMouseClickResult, type index_DesktopMouseDragArgs as DesktopMouseDragArgs, type index_DesktopMouseDragResult as DesktopMouseDragResult, type index_DesktopMouseMoveArgs as DesktopMouseMoveArgs, type index_DesktopMouseMoveResult as DesktopMouseMoveResult, type index_DesktopMouseScrollArgs as DesktopMouseScrollArgs, type index_DesktopMouseScrollResult as DesktopMouseScrollResult, type index_DesktopPoint as DesktopPoint, type index_DesktopScreenSize as DesktopScreenSize, type index_DesktopScreenshot as DesktopScreenshot, type index_DesktopScreenshotArgs as DesktopScreenshotArgs, type index_DesktopScreenshotResult as DesktopScreenshotResult, type index_DesktopToolConfig as DesktopToolConfig, type index_DesktopToolName as DesktopToolName, type index_DesktopWindow as DesktopWindow, type index_DesktopWindowFocusArgs as DesktopWindowFocusArgs, type index_DesktopWindowFocusResult as DesktopWindowFocusResult, type index_DesktopWindowListResult as DesktopWindowListResult, type index_DocumentFamily as DocumentFamily, type index_DocumentFormat as DocumentFormat, type index_DocumentImagePiece as DocumentImagePiece, type index_DocumentMetadata as DocumentMetadata, type index_DocumentPiece as DocumentPiece, type index_DocumentReadOptions as DocumentReadOptions, index_DocumentReader as DocumentReader, type index_DocumentReaderConfig as DocumentReaderConfig, type index_DocumentResult as DocumentResult, type index_DocumentSource as DocumentSource, type index_DocumentTextPiece as DocumentTextPiece, type index_DocumentToContentOptions as DocumentToContentOptions, type index_EditFileResult as EditFileResult, FileMediaStorage as FileMediaOutputHandler, type index_FilesystemToolConfig as FilesystemToolConfig, type index_FormatDetectionResult as FormatDetectionResult, index_FormatDetector as FormatDetector, type index_GenericAPICallArgs as GenericAPICallArgs, type index_GenericAPICallResult as GenericAPICallResult, type index_GenericAPIToolOptions as GenericAPIToolOptions, type index_GitHubCreatePRResult as GitHubCreatePRResult, type index_GitHubGetPRResult as GitHubGetPRResult, type index_GitHubPRCommentEntry as GitHubPRCommentEntry, type index_GitHubPRCommentsResult as GitHubPRCommentsResult, type index_GitHubPRFilesResult as GitHubPRFilesResult, type index_GitHubReadFileResult as GitHubReadFileResult, type index_GitHubRepository as GitHubRepository, type index_GitHubSearchCodeResult as GitHubSearchCodeResult, type index_GitHubSearchFilesResult as GitHubSearchFilesResult, type index_GlobResult as GlobResult, type index_GrepMatch as GrepMatch, type index_GrepResult as GrepResult, type index_IDesktopDriver as IDesktopDriver, type index_IDocumentTransformer as IDocumentTransformer, type index_IFormatHandler as IFormatHandler, type IMediaStorage as IMediaOutputHandler, type index_ImageFilterOptions as ImageFilterOptions, type MediaStorageMetadata as MediaOutputMetadata, type MediaStorageResult as MediaOutputResult, type index_MouseButton as MouseButton, index_NutTreeDriver as NutTreeDriver, type index_ReadFileResult as ReadFileResult, type index_SearchResult as SearchResult, type index_ServiceToolFactory as ServiceToolFactory, type index_ShellToolConfig as ShellToolConfig, type index_ToolCategory as ToolCategory, index_ToolRegistry as ToolRegistry, type index_ToolRegistryEntry as ToolRegistryEntry, type index_WriteFileResult as WriteFileResult, index_applyHumanDelay as applyHumanDelay, index_bash as bash, index_createBashTool as createBashTool, index_createCreatePRTool as createCreatePRTool, index_createDesktopGetCursorTool as createDesktopGetCursorTool, index_createDesktopGetScreenSizeTool as createDesktopGetScreenSizeTool, index_createDesktopKeyboardKeyTool as createDesktopKeyboardKeyTool, index_createDesktopKeyboardTypeTool as createDesktopKeyboardTypeTool, index_createDesktopMouseClickTool as createDesktopMouseClickTool, index_createDesktopMouseDragTool as createDesktopMouseDragTool, index_createDesktopMouseMoveTool as createDesktopMouseMoveTool, index_createDesktopMouseScrollTool as createDesktopMouseScrollTool, index_createDesktopScreenshotTool as createDesktopScreenshotTool, index_createDesktopWindowFocusTool as createDesktopWindowFocusTool, index_createDesktopWindowListTool as createDesktopWindowListTool, index_createEditFileTool as createEditFileTool, index_createExecuteJavaScriptTool as createExecuteJavaScriptTool, index_createGetPRTool as createGetPRTool, index_createGitHubReadFileTool as createGitHubReadFileTool, index_createGlobTool as createGlobTool, index_createGrepTool as createGrepTool, index_createImageGenerationTool as createImageGenerationTool, index_createListDirectoryTool as createListDirectoryTool, index_createPRCommentsTool as createPRCommentsTool, index_createPRFilesTool as createPRFilesTool, index_createReadFileTool as createReadFileTool, index_createSearchCodeTool as createSearchCodeTool, index_createSearchFilesTool as createSearchFilesTool, index_createSpeechToTextTool as createSpeechToTextTool, index_createTextToSpeechTool as createTextToSpeechTool, index_createVideoTools as createVideoTools, index_createWebScrapeTool as createWebScrapeTool, index_createWebSearchTool as createWebSearchTool, index_createWriteFileTool as createWriteFileTool, index_desktopGetCursor as desktopGetCursor, index_desktopGetScreenSize as desktopGetScreenSize, index_desktopKeyboardKey as desktopKeyboardKey, index_desktopKeyboardType as desktopKeyboardType, index_desktopMouseClick as desktopMouseClick, index_desktopMouseDrag as desktopMouseDrag, index_desktopMouseMove as desktopMouseMove, index_desktopMouseScroll as desktopMouseScroll, index_desktopScreenshot as desktopScreenshot, index_desktopTools as desktopTools, index_desktopWindowFocus as desktopWindowFocus, index_desktopWindowList as desktopWindowList, index_developerTools as developerTools, index_editFile as editFile, index_executeJavaScript as executeJavaScript, index_expandTilde as expandTilde, index_getAllBuiltInTools as getAllBuiltInTools, index_getBackgroundOutput as getBackgroundOutput, index_getDesktopDriver as getDesktopDriver, index_getMediaOutputHandler as getMediaOutputHandler, index_getMediaStorage as getMediaStorage, index_getToolByName as getToolByName, index_getToolCategories as getToolCategories, index_getToolRegistry as getToolRegistry, index_getToolsByCategory as getToolsByCategory, index_getToolsRequiringConnector as getToolsRequiringConnector, index_glob as glob, index_grep as grep, index_isBlockedCommand as isBlockedCommand, index_isExcludedExtension as isExcludedExtension, index_jsonManipulator as jsonManipulator, index_killBackgroundProcess as killBackgroundProcess, index_listDirectory as listDirectory, index_mergeTextPieces as mergeTextPieces, index_parseKeyCombo as parseKeyCombo, index_parseRepository as parseRepository, index_readFile as readFile, index_resetDefaultDriver as resetDefaultDriver, index_resolveRepository as resolveRepository, index_setMediaOutputHandler as setMediaOutputHandler, index_setMediaStorage as setMediaStorage, index_toolRegistry as toolRegistry, index_validatePath as validatePath, index_webFetch as webFetch, index_writeFile as writeFile };
|
|
12353
13184
|
}
|
|
12354
13185
|
|
|
12355
13186
|
/**
|
|
@@ -12404,4 +13235,4 @@ declare class ProviderConfigAgent {
|
|
|
12404
13235
|
reset(): void;
|
|
12405
13236
|
}
|
|
12406
13237
|
|
|
12407
|
-
export { AGENT_DEFINITION_FORMAT_VERSION, AIError, APPROVAL_STATE_VERSION, Agent, type AgentConfig$1 as AgentConfig, AgentContextNextGen, type AgentContextNextGenConfig, type AgentDefinitionListOptions, type AgentDefinitionMetadata, type AgentDefinitionSummary, AgentEvents, type AgentMetrics, type AgentPermissionsConfig, AgentResponse, type AgentSessionConfig, type AgentState, type AgentStatus, type ApprovalCacheEntry, type ApprovalDecision, ApproximateTokenEstimator, AudioFormat, AuditEntry, type AuthTemplate, type AuthTemplateField, type BackoffConfig, type BackoffStrategyType, BaseMediaProvider, BasePluginNextGen, BaseProvider, type BaseProviderConfig$1 as BaseProviderConfig, type BaseProviderResponse, BaseTextProvider, type BashResult, type BeforeExecuteResult, BraveProvider, CONNECTOR_CONFIG_VERSION, CONTEXT_SESSION_FORMAT_VERSION, CheckpointManager, type CheckpointStrategy, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerEvents, type CircuitBreakerMetrics, CircuitOpenError, type CircuitState, type ClipboardImageResult, type CompactionContext, type CompactionResult, Connector, ConnectorAccessContext, ConnectorAuth, ConnectorConfig, ConnectorConfigResult, ConnectorConfigStore, ConnectorFetchOptions, type ConnectorToolEntry, ConnectorTools, type ConnectorToolsOptions, ConsoleMetrics, type ConsolidationResult, Content, type ContextBudget$1 as ContextBudget, type ContextEvents, type ContextFeatures, type ContextManagerConfig, type ContextOverflowBudget, ContextOverflowError, type ContextSessionMetadata, type ContextSessionSummary, type ContextStorageListOptions, type ConversationMessage, type CreateConnectorOptions, DEFAULT_ALLOWLIST, DEFAULT_BACKOFF_CONFIG, DEFAULT_CHECKPOINT_STRATEGY, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONFIG, DEFAULT_CONTEXT_CONFIG, DEFAULT_FEATURES, DEFAULT_FILESYSTEM_CONFIG, DEFAULT_HISTORY_MANAGER_CONFIG, DEFAULT_PERMISSION_CONFIG, DEFAULT_RATE_LIMITER_CONFIG, DEFAULT_SHELL_CONFIG, type DefaultAllowlistedTool, DefaultCompactionStrategy, type DefaultCompactionStrategyConfig, DependencyCycleError, type DirectCallOptions, type EditFileResult, type ErrorContext, ErrorHandler, type ErrorHandlerConfig, type ErrorHandlerEvents, type EvictionStrategy, ExecutionContext, ExecutionMetrics, type ExtendedFetchOptions, type ExternalDependency, type ExternalDependencyEvents, ExternalDependencyHandler, type FetchedContent, FileAgentDefinitionStorage, type FileAgentDefinitionStorageConfig, FileConnectorStorage, type FileConnectorStorageConfig, FileContextStorage, type FileContextStorageConfig, FileMediaStorage as FileMediaOutputHandler, FileMediaStorage, type FileMediaStorageConfig, FilePersistentInstructionsStorage, type FilePersistentInstructionsStorageConfig, FileStorage, type FileStorageConfig, type FilesystemToolConfig, FrameworkLogger, FunctionToolDefinition, type GeneratedPlan, type GenericAPICallArgs, type GenericAPICallResult, type GenericAPIToolOptions, type GitHubCreatePRResult, type GitHubGetPRResult, type GitHubPRCommentEntry, type GitHubPRCommentsResult, type GitHubPRFilesResult, type GitHubReadFileResult, type GitHubRepository, type GitHubSearchCodeResult, type GitHubSearchFilesResult, type GlobResult, type GrepMatch, type GrepResult, type HTTPTransportConfig, type HistoryManagerEvents, type HistoryMessage, HistoryMode, HookConfig, type IAgentDefinitionStorage, type IAgentStateStorage, type IAgentStorage, type IAsyncDisposable, IBaseModelDescription, type ICapabilityProvider, type ICompactionStrategy, IConnectorAccessPolicy, type IConnectorConfigStorage, IConnectorRegistry, type IContextCompactor, type IContextComponent, type IContextPluginNextGen, type IContextStorage, type IContextStrategy, type IDisposable, type IHistoryManager, type IHistoryManagerConfig, type IHistoryStorage, IImageProvider, type IMCPClient, type IMediaStorage as IMediaOutputHandler, type IMediaStorage, type IMemoryStorage, type IPersistentInstructionsStorage, type IPlanStorage, IProvider, type IResearchSource, type ISTTModelDescription, type IScrapeProvider, type ISearchProvider, type ISpeechToTextProvider, type ITTSModelDescription, ITextProvider, type ITextToSpeechProvider, type ITokenEstimator$1 as ITokenEstimator, ITokenStorage, type IToolExecutionPipeline, type IToolExecutionPlugin, type IToolExecutor, type IVideoModelDescription, type IVideoProvider, type IVoiceInfo, type InContextEntry, type InContextMemoryConfig, InContextMemoryPluginNextGen, type InContextPriority, InMemoryAgentStateStorage, InMemoryHistoryStorage, InMemoryMetrics, InMemoryPlanStorage, InMemoryStorage, InputItem, type InstructionEntry, InvalidConfigError, InvalidToolArgumentsError, type JSONExtractionResult, LLMResponse, type LogEntry, type LogLevel, type LoggerConfig, LoggingPlugin, type LoggingPluginOptions, MCPClient, type MCPClientConnectionState, type MCPClientState, type MCPConfiguration, MCPConnectionError, MCPError, type MCPPrompt, type MCPPromptResult, MCPProtocolError, MCPRegistry, type MCPResource, type MCPResourceContent, MCPResourceError, type MCPServerCapabilities, type MCPServerConfig, MCPTimeoutError, type MCPTool, MCPToolError, type MCPToolResult, type MCPTransportType, type MediaStorageMetadata as MediaOutputMetadata, type MediaStorageResult as MediaOutputResult, type MediaStorageEntry, type MediaStorageListOptions, type MediaStorageMetadata, type MediaStorageResult, MemoryConnectorStorage, MemoryEntry, MemoryEvictionCompactor, MemoryIndex, MemoryPriority, MemoryScope, MemoryStorage, MessageBuilder, MessageRole, type MetricTags, type MetricsCollector, type MetricsCollectorType, ModelCapabilities, ModelNotSupportedError, type EvictionStrategy$1 as NextGenEvictionStrategy, NoOpMetrics, type OAuthConfig, type OAuthFlow, OAuthManager, OutputItem, type OversizedInputResult, ParallelTasksError, type PermissionCheckContext, type PermissionCheckResult, type PermissionManagerEvent, type PermissionScope, type PersistentInstructionsConfig, PersistentInstructionsPluginNextGen, type Plan, type PlanConcurrency, type PlanInput, type PlanStatus, PlanningAgent, type PlanningAgentConfig, type PluginConfigs, type PluginExecutionContext, type PreparedContext, ProviderAuthError, ProviderCapabilities, ProviderConfigAgent, ProviderContextLengthError, ProviderError, ProviderErrorMapper, ProviderNotFoundError, ProviderRateLimitError, RapidAPIProvider, RateLimitError, type RateLimiterConfig, type RateLimiterMetrics, type ReadFileResult, type FetchOptions as ResearchFetchOptions, type ResearchFinding, type ResearchPlan, type ResearchProgress, type ResearchQuery, type ResearchResult, type SearchOptions as ResearchSearchOptions, type SearchResponse as ResearchSearchResponse, type RiskLevel, SIMPLE_ICONS_CDN, type STTModelCapabilities, type STTOptions, type STTOutputFormat$1 as STTOutputFormat, type STTResponse, STT_MODELS, STT_MODEL_REGISTRY, ScopedConnectorRegistry, type ScrapeFeature, type ScrapeOptions, ScrapeProvider, type ScrapeProviderConfig, type ScrapeProviderFallbackConfig, type ScrapeResponse, type ScrapeResult, type SearchOptions$1 as SearchOptions, SearchProvider, type SearchProviderConfig, type SearchResponse$1 as SearchResponse, type SearchResult, type SegmentTimestamp, type SerializedApprovalEntry, type SerializedApprovalState, type SerializedContextState, type SerializedHistoryState, type SerializedInContextMemoryState, type SerializedPersistentInstructionsState, type SerializedToolState, type SerializedWorkingMemoryState, SerperProvider, ServiceCategory, type ServiceToolFactory, type ShellToolConfig, type SimpleIcon, type SimpleVideoGenerateOptions, type SourceCapabilities, type SourceResult, SpeechToText, type SpeechToTextConfig, type StdioTransportConfig, type StoredAgentDefinition, type StoredAgentType, type StoredConnectorConfig, type StoredContextSession, type StoredToken, type StrategyInfo, StrategyRegistry, type StrategyRegistryEntry, StreamEvent, StreamEventType, StreamHelpers, StreamState, SummarizeCompactor, TERMINAL_TASK_STATUSES, type TTSModelCapabilities, type TTSOptions, type TTSResponse, TTS_MODELS, TTS_MODEL_REGISTRY, type Task, type AgentConfig as TaskAgentStateConfig, type TaskCondition, type TaskExecution, type TaskFailure, type TaskInput, type TaskStatus, TaskStatusForMemory, TaskTimeoutError, ToolContext as TaskToolContext, type TaskValidation, TaskValidationError, type TaskValidationResult, TavilyProvider, type TemplateCredentials, TextGenerateOptions, TextToSpeech, type TextToSpeechConfig, TokenBucketRateLimiter, type TokenContentType, Tool, ToolCall, type ToolCategory, type ToolCondition, ToolContext, ToolExecutionError, ToolExecutionPipeline, type ToolExecutionPipelineOptions, ToolFunction, ToolManager, type ToolManagerConfig, type ToolManagerEvent, type ToolManagerStats, type ToolMetadata, ToolNotFoundError, type ToolOptions, type ToolPermissionConfig, ToolPermissionManager, type ToolRegistration, ToolRegistry, type ToolRegistryEntry, ToolResult, type ToolSelectionContext, ToolTimeoutError, type TransportConfig, TruncateCompactor, VENDOR_ICON_MAP, VIDEO_MODELS, VIDEO_MODEL_REGISTRY, Vendor, type VendorInfo, type VendorLogo, VendorOptionSchema, type VendorRegistryEntry, type VendorTemplate, type VideoExtendOptions, type VideoGenerateOptions, VideoGeneration, type VideoGenerationCreateOptions, type VideoJob, type VideoModelCapabilities, type VideoModelPricing, type VideoResponse, type VideoStatus, type WordTimestamp, WorkingMemory, WorkingMemoryAccess, WorkingMemoryConfig, type WorkingMemoryEvents, type WorkingMemoryPluginConfig, WorkingMemoryPluginNextGen, type WriteFileResult, addJitter, allVendorTemplates, assertNotDestroyed, authenticatedFetch, backoffSequence, backoffWait, bash, buildAuthConfig, buildEndpointWithQuery, buildQueryString, calculateBackoff, calculateSTTCost, calculateTTSCost, calculateVideoCost, canTaskExecute, createAgentStorage, createAuthenticatedFetch, createBashTool, createConnectorFromTemplate, createCreatePRTool, createEditFileTool, createEstimator, createExecuteJavaScriptTool, createFileAgentDefinitionStorage, createFileContextStorage, createFileMediaStorage, createGetPRTool, createGitHubReadFileTool, createGlobTool, createGrepTool, createImageGenerationTool, createImageProvider, createListDirectoryTool, createMessageWithImages, createMetricsCollector, createPRCommentsTool, createPRFilesTool, createPlan, createProvider, createReadFileTool, createSearchCodeTool, createSearchFilesTool, createSpeechToTextTool, createTask, createTextMessage, createTextToSpeechTool, createVideoProvider, createVideoTools, createWriteFileTool, detectDependencyCycle, developerTools, editFile, evaluateCondition, extractJSON, extractJSONField, extractNumber, findConnectorByServiceTypes, generateEncryptionKey, generateSimplePlan, generateWebAPITool, getActiveSTTModels, getActiveTTSModels, getActiveVideoModels, getAllBuiltInTools, getAllVendorLogos, getAllVendorTemplates, getBackgroundOutput, getConnectorTools, getCredentialsSetupURL, getDocsURL, getMediaOutputHandler, getMediaStorage, getNextExecutableTasks, getRegisteredScrapeProviders, getSTTModelInfo, getSTTModelsByVendor, getSTTModelsWithFeature, getTTSModelInfo, getTTSModelsByVendor, getTTSModelsWithFeature, getTaskDependencies, getToolByName, getToolCategories, getToolRegistry, getToolsByCategory, getToolsRequiringConnector, getVendorAuthTemplate, getVendorColor, getVendorDefaultBaseURL, getVendorInfo, getVendorLogo, getVendorLogoCdnUrl, getVendorLogoSvg, getVendorTemplate, getVideoModelInfo, getVideoModelsByVendor, getVideoModelsWithAudio, getVideoModelsWithFeature, glob, globalErrorHandler, grep, hasClipboardImage, hasVendorLogo, isBlockedCommand, isExcludedExtension, isTaskBlocked, isTerminalStatus, killBackgroundProcess, listConnectorsByServiceTypes, listDirectory, listVendorIds, listVendors, listVendorsByAuthType, listVendorsByCategory, listVendorsWithLogos, logger, metrics, parseRepository, readClipboardImage, readFile, registerScrapeProvider, resolveConnector, resolveDependencies, resolveRepository, retryWithBackoff, setMediaOutputHandler, setMediaStorage, setMetricsCollector, simpleTokenEstimator, toConnectorOptions, toolRegistry, index as tools, updateTaskStatus, validatePath, writeFile };
|
|
13238
|
+
export { AGENT_DEFINITION_FORMAT_VERSION, AIError, APPROVAL_STATE_VERSION, Agent, type AgentConfig$1 as AgentConfig, AgentContextNextGen, type AgentContextNextGenConfig, type AgentDefinitionListOptions, type AgentDefinitionMetadata, type AgentDefinitionSummary, AgentEvents, type AgentMetrics, type AgentPermissionsConfig, AgentResponse, type AgentSessionConfig, type AgentState, type AgentStatus, type ApprovalCacheEntry, type ApprovalDecision, ApproximateTokenEstimator, AudioFormat, AuditEntry, type AuthTemplate, type AuthTemplateField, type BackoffConfig, type BackoffStrategyType, BaseMediaProvider, BasePluginNextGen, BaseProvider, type BaseProviderConfig$1 as BaseProviderConfig, type BaseProviderResponse, BaseTextProvider, type BashResult, type BeforeExecuteResult, BraveProvider, CONNECTOR_CONFIG_VERSION, CONTEXT_SESSION_FORMAT_VERSION, CheckpointManager, type CheckpointStrategy, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerEvents, type CircuitBreakerMetrics, CircuitOpenError, type CircuitState, type ClipboardImageResult, type CompactionContext, type CompactionResult, Connector, ConnectorAccessContext, ConnectorAuth, ConnectorConfig, ConnectorConfigResult, ConnectorConfigStore, ConnectorFetchOptions, type ConnectorToolEntry, ConnectorTools, type ConnectorToolsOptions, ConsoleMetrics, type ConsolidationResult, Content, type ContextBudget$1 as ContextBudget, type ContextEvents, type ContextFeatures, type ContextManagerConfig, type ContextOverflowBudget, ContextOverflowError, type ContextSessionMetadata, type ContextSessionSummary, type ContextStorageListOptions, type ConversationMessage, type CreateConnectorOptions, DEFAULT_ALLOWLIST, DEFAULT_BACKOFF_CONFIG, DEFAULT_CHECKPOINT_STRATEGY, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONFIG, DEFAULT_CONTEXT_CONFIG, DEFAULT_DESKTOP_CONFIG, DEFAULT_FEATURES, 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, type EvictionStrategy, ExecutionContext, ExecutionMetrics, type ExtendedFetchOptions, type ExternalDependency, type ExternalDependencyEvents, ExternalDependencyHandler, type FetchedContent, FileAgentDefinitionStorage, type FileAgentDefinitionStorageConfig, FileConnectorStorage, type FileConnectorStorageConfig, FileContextStorage, type FileContextStorageConfig, FileMediaStorage as FileMediaOutputHandler, FileMediaStorage, type FileMediaStorageConfig, FilePersistentInstructionsStorage, type FilePersistentInstructionsStorageConfig, FileStorage, type FileStorageConfig, type FilesystemToolConfig, 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 GrepMatch, type GrepResult, type HTTPTransportConfig, type HistoryManagerEvents, type HistoryMessage, HistoryMode, HookConfig, type IAgentDefinitionStorage, type IAgentStateStorage, type IAgentStorage, type IAsyncDisposable, IBaseModelDescription, type ICapabilityProvider, type ICompactionStrategy, IConnectorAccessPolicy, type IConnectorConfigStorage, IConnectorRegistry, type IContextCompactor, type IContextComponent, type IContextPluginNextGen, type IContextStorage, type IContextStrategy, type 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, IProvider, type IResearchSource, type ISTTModelDescription, type IScrapeProvider, type ISearchProvider, type ISpeechToTextProvider, type ITTSModelDescription, ITextProvider, type ITextToSpeechProvider, type ITokenEstimator$1 as ITokenEstimator, ITokenStorage, type IToolExecutionPipeline, type IToolExecutionPlugin, type IToolExecutor, type IVideoModelDescription, type IVideoProvider, type IVoiceInfo, type 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, MemoryConnectorStorage, MemoryEntry, MemoryEvictionCompactor, MemoryIndex, MemoryPriority, MemoryScope, MemoryStorage, MessageBuilder, MessageRole, type MetricTags, type MetricsCollector, type MetricsCollectorType, ModelCapabilities, ModelNotSupportedError, type MouseButton, type EvictionStrategy$1 as NextGenEvictionStrategy, NoOpMetrics, NutTreeDriver, type OAuthConfig, type OAuthFlow, OAuthManager, OutputItem, type OversizedInputResult, 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 PluginConfigs, type PluginExecutionContext, type PreparedContext, ProviderAuthError, ProviderCapabilities, ProviderConfigAgent, ProviderContextLengthError, ProviderError, ProviderErrorMapper, ProviderNotFoundError, ProviderRateLimitError, RapidAPIProvider, RateLimitError, type RateLimiterConfig, type RateLimiterMetrics, type ReadFileResult, type FetchOptions as ResearchFetchOptions, type ResearchFinding, type ResearchPlan, type ResearchProgress, type ResearchQuery, type ResearchResult, type SearchOptions as ResearchSearchOptions, type SearchResponse as ResearchSearchResponse, type RiskLevel, SIMPLE_ICONS_CDN, type STTModelCapabilities, type STTOptions, type STTOutputFormat$1 as STTOutputFormat, type STTResponse, STT_MODELS, STT_MODEL_REGISTRY, ScopedConnectorRegistry, type ScrapeFeature, type ScrapeOptions, ScrapeProvider, type ScrapeProviderConfig, type ScrapeProviderFallbackConfig, type ScrapeResponse, type ScrapeResult, type SearchOptions$1 as SearchOptions, SearchProvider, type SearchProviderConfig, type SearchResponse$1 as SearchResponse, type SearchResult, type SegmentTimestamp, type SerializedApprovalEntry, type SerializedApprovalState, type SerializedContextState, type SerializedHistoryState, type SerializedInContextMemoryState, type SerializedPersistentInstructionsState, type SerializedToolState, type SerializedWorkingMemoryState, SerperProvider, ServiceCategory, type ServiceToolFactory, type ShellToolConfig, type SimpleIcon, type SimpleVideoGenerateOptions, type SourceCapabilities, type SourceResult, SpeechToText, type SpeechToTextConfig, type StdioTransportConfig, type StoredAgentDefinition, type StoredAgentType, type StoredConnectorConfig, type StoredContextSession, type StoredToken, type StrategyInfo, StrategyRegistry, type StrategyRegistryEntry, StreamEvent, StreamEventType, StreamHelpers, StreamState, SummarizeCompactor, TERMINAL_TASK_STATUSES, type TTSModelCapabilities, type TTSOptions, type TTSResponse, TTS_MODELS, TTS_MODEL_REGISTRY, type Task, type AgentConfig as TaskAgentStateConfig, type TaskCondition, type TaskExecution, type TaskFailure, type TaskInput, type TaskStatus, TaskStatusForMemory, TaskTimeoutError, ToolContext as TaskToolContext, type TaskValidation, TaskValidationError, type TaskValidationResult, TavilyProvider, type TemplateCredentials, TextGenerateOptions, TextToSpeech, type TextToSpeechConfig, TokenBucketRateLimiter, type TokenContentType, Tool, ToolCall, type ToolCategory, type ToolCondition, ToolContext, ToolExecutionError, ToolExecutionPipeline, type ToolExecutionPipelineOptions, ToolFunction, ToolManager, type ToolManagerConfig, type ToolManagerEvent, type ToolManagerStats, type ToolMetadata, ToolNotFoundError, type ToolOptions, type ToolPermissionConfig, ToolPermissionManager, type ToolRegistration, ToolRegistry, type ToolRegistryEntry, ToolResult, type ToolSelectionContext, ToolTimeoutError, type TransportConfig, TruncateCompactor, VENDOR_ICON_MAP, VIDEO_MODELS, VIDEO_MODEL_REGISTRY, Vendor, type VendorInfo, type VendorLogo, VendorOptionSchema, type VendorRegistryEntry, type VendorTemplate, type VideoExtendOptions, type VideoGenerateOptions, VideoGeneration, type VideoGenerationCreateOptions, type VideoJob, type VideoModelCapabilities, type VideoModelPricing, type VideoResponse, type VideoStatus, type WordTimestamp, WorkingMemory, WorkingMemoryAccess, WorkingMemoryConfig, type WorkingMemoryEvents, type WorkingMemoryPluginConfig, WorkingMemoryPluginNextGen, type WriteFileResult, addJitter, allVendorTemplates, assertNotDestroyed, authenticatedFetch, backoffSequence, backoffWait, bash, buildAuthConfig, buildEndpointWithQuery, buildQueryString, calculateBackoff, calculateSTTCost, calculateTTSCost, calculateVideoCost, canTaskExecute, createAgentStorage, createAuthenticatedFetch, createBashTool, createConnectorFromTemplate, createCreatePRTool, createDesktopGetCursorTool, createDesktopGetScreenSizeTool, createDesktopKeyboardKeyTool, createDesktopKeyboardTypeTool, createDesktopMouseClickTool, createDesktopMouseDragTool, createDesktopMouseMoveTool, createDesktopMouseScrollTool, createDesktopScreenshotTool, createDesktopWindowFocusTool, createDesktopWindowListTool, createEditFileTool, createEstimator, createExecuteJavaScriptTool, createFileAgentDefinitionStorage, createFileContextStorage, createFileMediaStorage, createGetPRTool, createGitHubReadFileTool, createGlobTool, createGrepTool, createImageGenerationTool, createImageProvider, createListDirectoryTool, createMessageWithImages, createMetricsCollector, createPRCommentsTool, createPRFilesTool, createPlan, createProvider, createReadFileTool, createSearchCodeTool, createSearchFilesTool, createSpeechToTextTool, createTask, createTextMessage, createTextToSpeechTool, createVideoProvider, createVideoTools, createWriteFileTool, desktopGetCursor, desktopGetScreenSize, desktopKeyboardKey, desktopKeyboardType, desktopMouseClick, desktopMouseDrag, desktopMouseMove, desktopMouseScroll, desktopScreenshot, desktopTools, desktopWindowFocus, desktopWindowList, detectDependencyCycle, developerTools, documentToContent, editFile, evaluateCondition, extractJSON, extractJSONField, extractNumber, findConnectorByServiceTypes, generateEncryptionKey, generateSimplePlan, generateWebAPITool, getActiveSTTModels, getActiveTTSModels, getActiveVideoModels, getAllBuiltInTools, getAllVendorLogos, getAllVendorTemplates, getBackgroundOutput, getConnectorTools, getCredentialsSetupURL, getDesktopDriver, getDocsURL, getMediaOutputHandler, getMediaStorage, getNextExecutableTasks, getRegisteredScrapeProviders, getSTTModelInfo, getSTTModelsByVendor, getSTTModelsWithFeature, getTTSModelInfo, getTTSModelsByVendor, getTTSModelsWithFeature, getTaskDependencies, getToolByName, getToolCategories, getToolRegistry, getToolsByCategory, getToolsRequiringConnector, getVendorAuthTemplate, getVendorColor, getVendorDefaultBaseURL, getVendorInfo, getVendorLogo, getVendorLogoCdnUrl, getVendorLogoSvg, getVendorTemplate, getVideoModelInfo, getVideoModelsByVendor, getVideoModelsWithAudio, getVideoModelsWithFeature, glob, globalErrorHandler, grep, hasClipboardImage, hasVendorLogo, isBlockedCommand, isExcludedExtension, isTaskBlocked, isTerminalStatus, killBackgroundProcess, listConnectorsByServiceTypes, listDirectory, listVendorIds, listVendors, listVendorsByAuthType, listVendorsByCategory, listVendorsWithLogos, logger, mergeTextPieces, metrics, parseKeyCombo, parseRepository, readClipboardImage, readDocumentAsContent, readFile, registerScrapeProvider, resetDefaultDriver, resolveConnector, resolveDependencies, resolveRepository, retryWithBackoff, setMediaOutputHandler, setMediaStorage, setMetricsCollector, simpleTokenEstimator, toConnectorOptions, toolRegistry, index as tools, updateTaskStatus, validatePath, writeFile };
|