@everworker/oneringai 0.4.3 → 0.4.4
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 +104 -7
- package/dist/capabilities/agents/index.d.cts +1 -1
- package/dist/capabilities/agents/index.d.ts +1 -1
- package/dist/capabilities/images/index.cjs.map +1 -1
- package/dist/capabilities/images/index.js.map +1 -1
- package/dist/{index-CEjKTeSb.d.cts → index-DmYrHH7d.d.cts} +305 -1
- package/dist/{index-CzGnmqOs.d.ts → index-Dyl6pHfq.d.ts} +305 -1
- package/dist/index.cjs +2862 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +568 -18
- package/dist/index.d.ts +568 -18
- package/dist/index.js +2846 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { I as IConnectorRegistry, a as IConnectorAccessPolicy, C as ConnectorAccessContext, b as Connector, c as ConnectorConfig, d as ITokenStorage, e as IProvider, f as ConnectorFetchOptions, P as ProviderCapabilities, S as StoredToken$1, g as ConnectorAuth, h as ConnectorConfigResult } from './IProvider-B8sqUzJG.cjs';
|
|
2
2
|
export { A as APIKeyConnectorAuth, D as DEFAULT_BASE_DELAY_MS, i as DEFAULT_CONNECTOR_TIMEOUT, j as DEFAULT_MAX_DELAY_MS, k as DEFAULT_MAX_RETRIES, l as DEFAULT_RETRYABLE_STATUSES, J as JWTConnectorAuth, O as OAuthConnectorAuth } from './IProvider-B8sqUzJG.cjs';
|
|
3
|
-
import { C as ContextFeatures, M as MemoryEntry, a as MemoryScope, I as IContextStorage, T as Tool, b as ToolFunction, c as ToolContext, d as ToolPermissionConfig$1, e as ContextBudget$1, f as ToolCall, g as IContextPluginNextGen, W as WorkingMemoryConfig, P as PriorityCalculator, h as MemoryPriority, i as MemoryTier, j as ContextEvents, A as AgentContextNextGenConfig, k as AuthIdentity, l as ICompactionStrategy, B as BeforeCompactionCallback, m as InputItem, n as Content, o as PreparedContext, O as OutputItem, p as ToolResult, q as ConsolidationResult, S as SerializedContextState, r as StoredContextSession, s as ITextProvider, t as ContextSessionMetadata, F as FunctionToolDefinition, L as LLMResponse, u as StreamEvent, H as HookConfig, v as HistoryMode, w as AgentEvents, x as AgentResponse, E as ExecutionContext, y as ExecutionMetrics, z as AuditEntry, D as HookName, G as ITokenEstimator$1, J as
|
|
4
|
-
export {
|
|
3
|
+
import { C as ContextFeatures, M as MemoryEntry, a as MemoryScope, I as IContextStorage, T as Tool, b as ToolFunction, c as ToolContext, d as ToolPermissionConfig$1, e as ContextBudget$1, f as ToolCall, g as IContextPluginNextGen, W as WorkingMemoryConfig, P as PriorityCalculator, h as MemoryPriority, i as MemoryTier, j as ContextEvents, A as AgentContextNextGenConfig, k as AuthIdentity, l as ICompactionStrategy, B as BeforeCompactionCallback, m as InputItem, n as Content, o as PreparedContext, O as OutputItem, p as ToolResult, q as ConsolidationResult, S as SerializedContextState, r as StoredContextSession, s as ITextProvider, t as ContextSessionMetadata, F as FunctionToolDefinition, L as LLMResponse, u as StreamEvent, H as HookConfig, v as HistoryMode, w as AgentEvents, x as AgentResponse, E as ExecutionContext, y as ExecutionMetrics, z as AuditEntry, D as HookName, G as ITokenEstimator$1, J as ToolCategoryScope, K as CompactionContext, N as CompactionResult, Q as StaleEntryInfo, R as PriorityContext, U as MemoryIndex, V as TaskStatusForMemory, X as WorkingMemoryAccess, Y as ContextStorageListOptions, Z as ContextSessionSummary, _ as TokenUsage, $ as StreamEventType, a0 as TextGenerateOptions, a1 as ModelCapabilities, a2 as MessageRole } from './index-DmYrHH7d.cjs';
|
|
4
|
+
export { a3 as AfterToolContext, a4 as AgentEventName, a5 as AgenticLoopEventName, a6 as AgenticLoopEvents, a7 as ApprovalResult, a8 as ApproveToolContext, a9 as BeforeToolContext, aa as BuiltInTool, ab as CONTEXT_SESSION_FORMAT_VERSION, ac as CatalogRegistryEntry, ad as CatalogToolEntry, ae as CompactionItem, af as ConnectorCategoryInfo, ag as ContentType, ah as DEFAULT_CONFIG, ai as DEFAULT_FEATURES, aj as DEFAULT_MEMORY_CONFIG, ak as ErrorEvent, al as ExecutionConfig, am as Hook, an as HookManager, ao as InputImageContent, ap as InputTextContent, aq as IterationCompleteEvent, ar as JSONSchema, as as MEMORY_PRIORITY_VALUES, at as MemoryEntryInput, au as MemoryIndexEntry, av as Message, aw as ModifyingHook, ax as OutputTextContent, ay as OutputTextDeltaEvent, az as OutputTextDoneEvent, aA as OversizedInputResult, aB as PluginConfigs, aC as ReasoningDeltaEvent, aD as ReasoningDoneEvent, aE as ReasoningItem, aF as ResponseCompleteEvent, aG as ResponseCreatedEvent, aH as ResponseInProgressEvent, aI as SimpleScope, aJ as TaskAwareScope, aK as ThinkingContent, aL as ToolCallArgumentsDeltaEvent, aM as ToolCallArgumentsDoneEvent, aN as ToolCallStartEvent, aO as ToolCallState, aP as ToolCatalogRegistry, aQ as ToolCategoryDefinition, aR as ToolExecutionContext, aS as ToolExecutionDoneEvent, aT as ToolExecutionStartEvent, aU as ToolModification, aV as ToolResultContent, aW as ToolUseContent, aX as calculateEntrySize, aY as defaultDescribeCall, aZ as forPlan, a_ as forTasks, a$ as getToolCallDescription, b0 as isErrorEvent, b1 as isOutputTextDelta, b2 as isReasoningDelta, b3 as isReasoningDone, b4 as isResponseComplete, b5 as isSimpleScope, b6 as isStreamEvent, b7 as isTaskAwareScope, b8 as isTerminalMemoryStatus, b9 as isToolCallArgumentsDelta, ba as isToolCallArgumentsDone, bb as isToolCallStart, bc as scopeEquals, bd as scopeMatches } from './index-DmYrHH7d.cjs';
|
|
5
5
|
import { EventEmitter } from 'eventemitter3';
|
|
6
6
|
import { V as Vendor } from './Vendor-DYh_bzwo.cjs';
|
|
7
7
|
export { a as VENDORS, i as isVendor } from './Vendor-DYh_bzwo.cjs';
|
|
@@ -780,11 +780,22 @@ interface ExternalDependency {
|
|
|
780
780
|
}
|
|
781
781
|
/** Sub-routine specification: either inline tasks or a full RoutineDefinition */
|
|
782
782
|
type SubRoutineSpec = TaskInput[] | RoutineDefinition;
|
|
783
|
+
/** Reference to a source value for control flow operations. */
|
|
784
|
+
interface TaskSourceRef {
|
|
785
|
+
/** Reference the output of a named task (resolves to __task_output_{name}) */
|
|
786
|
+
task?: string;
|
|
787
|
+
/** Direct memory key lookup */
|
|
788
|
+
key?: string;
|
|
789
|
+
/** JSON path to extract from the resolved value (e.g., 'data.items', 'results[0].entries') */
|
|
790
|
+
path?: string;
|
|
791
|
+
}
|
|
792
|
+
/** Source can be a simple key string (legacy) or a structured reference. */
|
|
793
|
+
type ControlFlowSource = string | TaskSourceRef;
|
|
783
794
|
/** Map: execute a sub-routine for each element in an array */
|
|
784
795
|
interface TaskMapFlow {
|
|
785
796
|
type: 'map';
|
|
786
|
-
/**
|
|
787
|
-
|
|
797
|
+
/** Source array reference — task name, memory key, or structured ref. */
|
|
798
|
+
source: ControlFlowSource;
|
|
788
799
|
/** Sub-routine to run per element */
|
|
789
800
|
tasks: SubRoutineSpec;
|
|
790
801
|
/** Memory key for collected results array */
|
|
@@ -797,8 +808,8 @@ interface TaskMapFlow {
|
|
|
797
808
|
/** Fold: accumulate a result across array elements */
|
|
798
809
|
interface TaskFoldFlow {
|
|
799
810
|
type: 'fold';
|
|
800
|
-
/**
|
|
801
|
-
|
|
811
|
+
/** Source array reference — task name, memory key, or structured ref. */
|
|
812
|
+
source: ControlFlowSource;
|
|
802
813
|
/** Sub-routine to run per element */
|
|
803
814
|
tasks: SubRoutineSpec;
|
|
804
815
|
/** Starting accumulator value */
|
|
@@ -1246,6 +1257,102 @@ interface IRoutineDefinitionStorage {
|
|
|
1246
1257
|
getPath(userId: string | undefined): string;
|
|
1247
1258
|
}
|
|
1248
1259
|
|
|
1260
|
+
/**
|
|
1261
|
+
* Routine Execution Record — persisted record for tracking/history.
|
|
1262
|
+
*
|
|
1263
|
+
* Unlike RoutineExecution (runtime state with live Plan), this is a
|
|
1264
|
+
* storage-agnostic snapshot meant for persistence and querying.
|
|
1265
|
+
* Timestamps are `number` (epoch ms), no framework dependencies.
|
|
1266
|
+
*/
|
|
1267
|
+
|
|
1268
|
+
type RoutineStepType = 'task.started' | 'task.completed' | 'task.failed' | 'task.validation' | 'tool.call' | 'tool.start' | 'llm.start' | 'llm.complete' | 'iteration.complete' | 'execution.error' | 'control_flow.started' | 'control_flow.completed';
|
|
1269
|
+
interface RoutineExecutionStep {
|
|
1270
|
+
timestamp: number;
|
|
1271
|
+
taskName: string;
|
|
1272
|
+
type: RoutineStepType;
|
|
1273
|
+
data?: Record<string, unknown>;
|
|
1274
|
+
}
|
|
1275
|
+
interface RoutineTaskResult {
|
|
1276
|
+
success: boolean;
|
|
1277
|
+
output?: string;
|
|
1278
|
+
error?: string;
|
|
1279
|
+
validationScore?: number;
|
|
1280
|
+
validationExplanation?: string;
|
|
1281
|
+
}
|
|
1282
|
+
interface RoutineTaskSnapshot {
|
|
1283
|
+
taskId: string;
|
|
1284
|
+
name: string;
|
|
1285
|
+
description: string;
|
|
1286
|
+
status: 'pending' | 'blocked' | 'in_progress' | 'completed' | 'failed' | 'skipped' | 'cancelled';
|
|
1287
|
+
attempts: number;
|
|
1288
|
+
maxAttempts: number;
|
|
1289
|
+
result?: RoutineTaskResult;
|
|
1290
|
+
startedAt?: number;
|
|
1291
|
+
completedAt?: number;
|
|
1292
|
+
controlFlowType?: 'map' | 'fold' | 'until';
|
|
1293
|
+
}
|
|
1294
|
+
interface RoutineExecutionRecord {
|
|
1295
|
+
executionId: string;
|
|
1296
|
+
routineId: string;
|
|
1297
|
+
routineName: string;
|
|
1298
|
+
status: RoutineExecutionStatus;
|
|
1299
|
+
progress: number;
|
|
1300
|
+
tasks: RoutineTaskSnapshot[];
|
|
1301
|
+
steps: RoutineExecutionStep[];
|
|
1302
|
+
taskCount: number;
|
|
1303
|
+
connectorName: string;
|
|
1304
|
+
model: string;
|
|
1305
|
+
error?: string;
|
|
1306
|
+
startedAt?: number;
|
|
1307
|
+
completedAt?: number;
|
|
1308
|
+
lastActivityAt?: number;
|
|
1309
|
+
trigger?: {
|
|
1310
|
+
type: 'schedule' | 'event' | 'manual';
|
|
1311
|
+
source?: string;
|
|
1312
|
+
event?: string;
|
|
1313
|
+
payload?: unknown;
|
|
1314
|
+
};
|
|
1315
|
+
metadata?: Record<string, unknown>;
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Create initial task snapshots from a routine definition.
|
|
1319
|
+
*/
|
|
1320
|
+
declare function createTaskSnapshots(definition: RoutineDefinition): RoutineTaskSnapshot[];
|
|
1321
|
+
/**
|
|
1322
|
+
* Create an initial RoutineExecutionRecord from a definition.
|
|
1323
|
+
* Status is set to 'running' with empty steps.
|
|
1324
|
+
*/
|
|
1325
|
+
declare function createRoutineExecutionRecord(definition: RoutineDefinition, connectorName: string, model: string, trigger?: RoutineExecutionRecord['trigger']): RoutineExecutionRecord;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Storage interface for routine execution records.
|
|
1329
|
+
*
|
|
1330
|
+
* Designed to be storage-agnostic — implementations can back this with
|
|
1331
|
+
* MongoDB, PostgreSQL, file system, etc.
|
|
1332
|
+
*/
|
|
1333
|
+
|
|
1334
|
+
interface IRoutineExecutionStorage {
|
|
1335
|
+
/** Insert a new execution record. Returns the record ID. */
|
|
1336
|
+
insert(userId: string | undefined, record: RoutineExecutionRecord): Promise<string>;
|
|
1337
|
+
/** Update top-level fields on an execution record. */
|
|
1338
|
+
update(id: string, updates: Partial<Pick<RoutineExecutionRecord, 'status' | 'progress' | 'error' | 'completedAt' | 'lastActivityAt'>>): Promise<void>;
|
|
1339
|
+
/** Append a step to the execution's steps array. */
|
|
1340
|
+
pushStep(id: string, step: RoutineExecutionStep): Promise<void>;
|
|
1341
|
+
/** Update a specific task snapshot within the execution record. */
|
|
1342
|
+
updateTask(id: string, taskName: string, updates: Partial<RoutineTaskSnapshot>): Promise<void>;
|
|
1343
|
+
/** Load a single execution record by ID. */
|
|
1344
|
+
load(id: string): Promise<RoutineExecutionRecord | null>;
|
|
1345
|
+
/** List execution records with optional filters. */
|
|
1346
|
+
list(userId: string | undefined, options?: {
|
|
1347
|
+
routineId?: string;
|
|
1348
|
+
status?: RoutineExecutionStatus;
|
|
1349
|
+
limit?: number;
|
|
1350
|
+
offset?: number;
|
|
1351
|
+
}): Promise<RoutineExecutionRecord[]>;
|
|
1352
|
+
/** Check if a routine has a currently running execution. */
|
|
1353
|
+
hasRunning(userId: string | undefined, routineId: string): Promise<boolean>;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1249
1356
|
/**
|
|
1250
1357
|
* StorageRegistry - Centralized storage backend registry
|
|
1251
1358
|
*
|
|
@@ -1308,6 +1415,7 @@ interface StorageConfig {
|
|
|
1308
1415
|
workingMemory: (context?: StorageContext) => IMemoryStorage;
|
|
1309
1416
|
userInfo: (context?: StorageContext) => IUserInfoStorage;
|
|
1310
1417
|
routineDefinitions: (context?: StorageContext) => IRoutineDefinitionStorage;
|
|
1418
|
+
routineExecutions: (context?: StorageContext) => IRoutineExecutionStorage;
|
|
1311
1419
|
}
|
|
1312
1420
|
declare class StorageRegistry {
|
|
1313
1421
|
/** Internal storage map */
|
|
@@ -2054,6 +2162,11 @@ declare class ToolManager extends EventEmitter implements IToolExecutor, IDispos
|
|
|
2054
2162
|
* Get tools by namespace
|
|
2055
2163
|
*/
|
|
2056
2164
|
getByNamespace(namespace: string): ToolFunction[];
|
|
2165
|
+
/**
|
|
2166
|
+
* Get all registered tool names in a category.
|
|
2167
|
+
* Used by ToolCatalogPlugin for bulk enable/disable.
|
|
2168
|
+
*/
|
|
2169
|
+
getByCategory(category: string): string[];
|
|
2057
2170
|
/**
|
|
2058
2171
|
* Get tool registration info
|
|
2059
2172
|
*/
|
|
@@ -4191,8 +4304,8 @@ interface ExecuteRoutineOptions {
|
|
|
4191
4304
|
prompts?: {
|
|
4192
4305
|
/** Override system prompt builder. Receives definition, should return full system prompt. */
|
|
4193
4306
|
system?: (definition: RoutineDefinition) => string;
|
|
4194
|
-
/** Override task prompt builder. Receives task, should return the user message for that task. */
|
|
4195
|
-
task?: (task: Task) => string;
|
|
4307
|
+
/** Override task prompt builder. Receives task and optional execution context, should return the user message for that task. */
|
|
4308
|
+
task?: (task: Task, execution?: RoutineExecution) => string;
|
|
4196
4309
|
/** Override validation prompt builder. Receives task + validation context (response, memory state, tool calls). */
|
|
4197
4310
|
validation?: (task: Task, context: ValidationContext) => string;
|
|
4198
4311
|
};
|
|
@@ -4234,6 +4347,64 @@ interface ValidationContext {
|
|
|
4234
4347
|
*/
|
|
4235
4348
|
declare function executeRoutine(options: ExecuteRoutineOptions): Promise<RoutineExecution>;
|
|
4236
4349
|
|
|
4350
|
+
/**
|
|
4351
|
+
* Execution Recorder Factory
|
|
4352
|
+
*
|
|
4353
|
+
* Creates ready-to-use hooks + callbacks for `executeRoutine()` that
|
|
4354
|
+
* persist execution state to an IRoutineExecutionStorage backend.
|
|
4355
|
+
*
|
|
4356
|
+
* Replaces the manual hook wiring previously done in v25's
|
|
4357
|
+
* RoutineExecutionService._runInBackground().
|
|
4358
|
+
*
|
|
4359
|
+
* @example
|
|
4360
|
+
* ```typescript
|
|
4361
|
+
* const record = createRoutineExecutionRecord(definition, connector, model);
|
|
4362
|
+
* const execId = await storage.insert(userId, record);
|
|
4363
|
+
* const recorder = createExecutionRecorder({ storage, executionId: execId });
|
|
4364
|
+
*
|
|
4365
|
+
* executeRoutine({
|
|
4366
|
+
* definition, agent, inputs,
|
|
4367
|
+
* hooks: recorder.hooks,
|
|
4368
|
+
* onTaskStarted: recorder.onTaskStarted,
|
|
4369
|
+
* onTaskComplete: recorder.onTaskComplete,
|
|
4370
|
+
* onTaskFailed: recorder.onTaskFailed,
|
|
4371
|
+
* onTaskValidation: recorder.onTaskValidation,
|
|
4372
|
+
* })
|
|
4373
|
+
* .then(exec => recorder.finalize(exec))
|
|
4374
|
+
* .catch(err => recorder.finalize(null, err));
|
|
4375
|
+
* ```
|
|
4376
|
+
*/
|
|
4377
|
+
|
|
4378
|
+
interface ExecutionRecorderOptions {
|
|
4379
|
+
/** Storage backend for persisting execution state. */
|
|
4380
|
+
storage: IRoutineExecutionStorage;
|
|
4381
|
+
/** ID of the execution record (must already be inserted). */
|
|
4382
|
+
executionId: string;
|
|
4383
|
+
/** Optional prefix for log messages. */
|
|
4384
|
+
logPrefix?: string;
|
|
4385
|
+
/** Max length for truncated tool args/results in steps. Default: 500. */
|
|
4386
|
+
maxTruncateLength?: number;
|
|
4387
|
+
}
|
|
4388
|
+
interface ExecutionRecorder {
|
|
4389
|
+
/** Hook config to pass to executeRoutine(). */
|
|
4390
|
+
hooks: HookConfig;
|
|
4391
|
+
/** Callback for onTaskStarted. */
|
|
4392
|
+
onTaskStarted: (task: Task, execution: RoutineExecution) => void;
|
|
4393
|
+
/** Callback for onTaskComplete. */
|
|
4394
|
+
onTaskComplete: (task: Task, execution: RoutineExecution) => void;
|
|
4395
|
+
/** Callback for onTaskFailed. */
|
|
4396
|
+
onTaskFailed: (task: Task, execution: RoutineExecution) => void;
|
|
4397
|
+
/** Callback for onTaskValidation. */
|
|
4398
|
+
onTaskValidation: (task: Task, result: TaskValidationResult, execution: RoutineExecution) => void;
|
|
4399
|
+
/** Call after executeRoutine() resolves/rejects to write final status. */
|
|
4400
|
+
finalize: (execution: RoutineExecution | null, error?: Error) => Promise<void>;
|
|
4401
|
+
}
|
|
4402
|
+
/**
|
|
4403
|
+
* Create an ExecutionRecorder that wires hooks + callbacks to persist
|
|
4404
|
+
* execution state via the provided storage backend.
|
|
4405
|
+
*/
|
|
4406
|
+
declare function createExecutionRecorder(options: ExecutionRecorderOptions): ExecutionRecorder;
|
|
4407
|
+
|
|
4237
4408
|
/**
|
|
4238
4409
|
* BasePluginNextGen - Base class for context plugins
|
|
4239
4410
|
*
|
|
@@ -4795,12 +4966,15 @@ declare class PersistentInstructionsPluginNextGen implements IContextPluginNextG
|
|
|
4795
4966
|
* - User preferences (theme, language, timezone)
|
|
4796
4967
|
* - User context (location, role, permissions)
|
|
4797
4968
|
* - User metadata (name, email, profile info)
|
|
4969
|
+
* - TODO tracking (stored as entries with `todo_` key prefix)
|
|
4798
4970
|
*
|
|
4799
4971
|
* Storage: ~/.oneringai/users/<userId>/user_info.json
|
|
4800
4972
|
*
|
|
4801
4973
|
* Design:
|
|
4802
4974
|
* - UserId passed at construction time from AgentContextNextGen._userId
|
|
4803
4975
|
* - User data IS injected into context via getContent() (entries rendered as markdown)
|
|
4976
|
+
* - TODOs rendered in a separate "## Current TODOs" section as a checklist
|
|
4977
|
+
* - Internal entries (key starts with `_`) hidden from rendered output
|
|
4804
4978
|
* - In-memory cache with lazy loading + write-through to storage
|
|
4805
4979
|
* - Tools access current user's data only (no cross-user access)
|
|
4806
4980
|
*/
|
|
@@ -4873,6 +5047,82 @@ declare class UserInfoPluginNextGen implements IContextPluginNextGen {
|
|
|
4873
5047
|
private createUserInfoGetTool;
|
|
4874
5048
|
private createUserInfoRemoveTool;
|
|
4875
5049
|
private createUserInfoClearTool;
|
|
5050
|
+
private createTodoAddTool;
|
|
5051
|
+
private createTodoUpdateTool;
|
|
5052
|
+
private createTodoRemoveTool;
|
|
5053
|
+
}
|
|
5054
|
+
|
|
5055
|
+
/**
|
|
5056
|
+
* ToolCatalogPluginNextGen - Dynamic Tool Loading/Unloading for Agents
|
|
5057
|
+
*
|
|
5058
|
+
* When agents need 100+ tools, sending all tool definitions to the LLM wastes
|
|
5059
|
+
* tokens and degrades performance. This plugin provides 3 metatools that let
|
|
5060
|
+
* agents discover and load only the tool categories they need.
|
|
5061
|
+
*
|
|
5062
|
+
* Categories come from ToolCatalogRegistry (static global) and ConnectorTools
|
|
5063
|
+
* (runtime discovery). The plugin manages loaded/unloaded state via ToolManager.
|
|
5064
|
+
*
|
|
5065
|
+
* @example
|
|
5066
|
+
* ```typescript
|
|
5067
|
+
* const ctx = AgentContextNextGen.create({
|
|
5068
|
+
* model: 'gpt-4',
|
|
5069
|
+
* features: { toolCatalog: true },
|
|
5070
|
+
* toolCategories: ['filesystem', 'web'], // optional scope
|
|
5071
|
+
* });
|
|
5072
|
+
* ```
|
|
5073
|
+
*/
|
|
5074
|
+
|
|
5075
|
+
interface ToolCatalogPluginConfig {
|
|
5076
|
+
/** Scope filter for which categories are visible */
|
|
5077
|
+
categoryScope?: ToolCategoryScope;
|
|
5078
|
+
/** Categories to pre-load on initialization */
|
|
5079
|
+
autoLoadCategories?: string[];
|
|
5080
|
+
/** Maximum loaded categories at once (default: 10) */
|
|
5081
|
+
maxLoadedCategories?: number;
|
|
5082
|
+
/** Auth identities for connector filtering */
|
|
5083
|
+
identities?: AuthIdentity[];
|
|
5084
|
+
}
|
|
5085
|
+
declare class ToolCatalogPluginNextGen extends BasePluginNextGen {
|
|
5086
|
+
readonly name = "tool_catalog";
|
|
5087
|
+
/** category name → array of tool names that were loaded */
|
|
5088
|
+
private _loadedCategories;
|
|
5089
|
+
/** Reference to the ToolManager for registering/disabling tools */
|
|
5090
|
+
private _toolManager;
|
|
5091
|
+
/** Cached connector categories — discovered once in setToolManager() */
|
|
5092
|
+
private _connectorCategories;
|
|
5093
|
+
/** Whether this plugin has been destroyed */
|
|
5094
|
+
private _destroyed;
|
|
5095
|
+
/** WeakMap cache for tool definition token estimates */
|
|
5096
|
+
private _toolTokenCache;
|
|
5097
|
+
private _config;
|
|
5098
|
+
constructor(config?: ToolCatalogPluginConfig);
|
|
5099
|
+
getInstructions(): string;
|
|
5100
|
+
getContent(): Promise<string | null>;
|
|
5101
|
+
getContents(): unknown;
|
|
5102
|
+
getTools(): ToolFunction[];
|
|
5103
|
+
isCompactable(): boolean;
|
|
5104
|
+
compact(targetTokensToFree: number): Promise<number>;
|
|
5105
|
+
getState(): unknown;
|
|
5106
|
+
restoreState(state: unknown): void;
|
|
5107
|
+
destroy(): void;
|
|
5108
|
+
/**
|
|
5109
|
+
* Set the ToolManager reference. Called by AgentContextNextGen after plugin registration.
|
|
5110
|
+
*/
|
|
5111
|
+
setToolManager(tm: ToolManager): void;
|
|
5112
|
+
/** Get list of currently loaded category names */
|
|
5113
|
+
get loadedCategories(): string[];
|
|
5114
|
+
private executeSearch;
|
|
5115
|
+
executeLoad(category: string): Record<string, unknown>;
|
|
5116
|
+
private executeUnload;
|
|
5117
|
+
private getAllowedCategories;
|
|
5118
|
+
/**
|
|
5119
|
+
* Get connector categories from cache (populated once in setToolManager).
|
|
5120
|
+
*/
|
|
5121
|
+
private getConnectorCategories;
|
|
5122
|
+
private keywordSearch;
|
|
5123
|
+
private searchConnectorCategory;
|
|
5124
|
+
private getCategoriesSortedByLastUsed;
|
|
5125
|
+
private estimateToolDefinitionTokens;
|
|
4876
5126
|
}
|
|
4877
5127
|
|
|
4878
5128
|
/**
|
|
@@ -9121,6 +9371,8 @@ declare const ROUTINE_KEYS: {
|
|
|
9121
9371
|
readonly FOLD_ACCUMULATOR: "__fold_accumulator";
|
|
9122
9372
|
/** Prefix for large dep results stored in WM findings tier */
|
|
9123
9373
|
readonly WM_DEP_FINDINGS_PREFIX: "findings/__dep_result_";
|
|
9374
|
+
/** Prefix for auto-stored task outputs (set by output contracts) */
|
|
9375
|
+
readonly TASK_OUTPUT_PREFIX: "__task_output_";
|
|
9124
9376
|
};
|
|
9125
9377
|
interface ControlFlowResult {
|
|
9126
9378
|
completed: boolean;
|
|
@@ -9138,6 +9390,21 @@ interface ControlFlowResult {
|
|
|
9138
9390
|
* Non-string values are JSON.stringify'd. Unresolved templates are left as-is.
|
|
9139
9391
|
*/
|
|
9140
9392
|
declare function resolveTemplates(text: string, inputs: Record<string, unknown>, icmPlugin: InContextMemoryPluginNextGen | null): string;
|
|
9393
|
+
/**
|
|
9394
|
+
* Resolve the source array for a map/fold control flow using layered resolution:
|
|
9395
|
+
* 1. Determine lookup key(s) from source config
|
|
9396
|
+
* 2. Read from ICM/WM with fallback chain
|
|
9397
|
+
* 3. Apply JSON path extraction if specified
|
|
9398
|
+
* 4. Coerce to array algorithmically (JSON parse, common field names)
|
|
9399
|
+
* 5. LLM extraction fallback if still not an array
|
|
9400
|
+
*/
|
|
9401
|
+
declare function resolveFlowSource(flow: {
|
|
9402
|
+
source: ControlFlowSource;
|
|
9403
|
+
maxIterations?: number;
|
|
9404
|
+
}, flowType: string, agent: Agent, execution: RoutineExecution | undefined, icmPlugin: InContextMemoryPluginNextGen | null, wmPlugin: WorkingMemoryPluginNextGen | null): Promise<{
|
|
9405
|
+
array: unknown[];
|
|
9406
|
+
maxIter: number;
|
|
9407
|
+
} | ControlFlowResult>;
|
|
9141
9408
|
|
|
9142
9409
|
/**
|
|
9143
9410
|
* FilePersistentInstructionsStorage - File-based storage for persistent instructions
|
|
@@ -12314,7 +12581,7 @@ declare const writeFile: ToolFunction<WriteFileArgs, WriteFileResult>;
|
|
|
12314
12581
|
/**
|
|
12315
12582
|
* Arguments for the read file tool
|
|
12316
12583
|
*/
|
|
12317
|
-
interface ReadFileArgs {
|
|
12584
|
+
interface ReadFileArgs$1 {
|
|
12318
12585
|
/** Absolute path to the file to read */
|
|
12319
12586
|
file_path: string;
|
|
12320
12587
|
/** Line number to start reading from (1-indexed). Only provide if the file is too large. */
|
|
@@ -12325,11 +12592,11 @@ interface ReadFileArgs {
|
|
|
12325
12592
|
/**
|
|
12326
12593
|
* Create a Read File tool with the given configuration
|
|
12327
12594
|
*/
|
|
12328
|
-
declare function createReadFileTool(config?: FilesystemToolConfig): ToolFunction<ReadFileArgs, ReadFileResult>;
|
|
12595
|
+
declare function createReadFileTool(config?: FilesystemToolConfig): ToolFunction<ReadFileArgs$1, ReadFileResult>;
|
|
12329
12596
|
/**
|
|
12330
12597
|
* Default Read File tool instance
|
|
12331
12598
|
*/
|
|
12332
|
-
declare const readFile: ToolFunction<ReadFileArgs, ReadFileResult>;
|
|
12599
|
+
declare const readFile: ToolFunction<ReadFileArgs$1, ReadFileResult>;
|
|
12333
12600
|
|
|
12334
12601
|
/**
|
|
12335
12602
|
* JSON Manipulation Tool
|
|
@@ -12835,7 +13102,7 @@ interface GitHubCreatePRResult {
|
|
|
12835
13102
|
/**
|
|
12836
13103
|
* Arguments for the search_files tool
|
|
12837
13104
|
*/
|
|
12838
|
-
interface SearchFilesArgs {
|
|
13105
|
+
interface SearchFilesArgs$1 {
|
|
12839
13106
|
/** Repository in "owner/repo" format or full GitHub URL */
|
|
12840
13107
|
repository?: string;
|
|
12841
13108
|
/** Glob pattern to match files (e.g., "**\/*.ts", "src/**\/*.tsx") */
|
|
@@ -12846,7 +13113,7 @@ interface SearchFilesArgs {
|
|
|
12846
13113
|
/**
|
|
12847
13114
|
* Create a GitHub search_files tool
|
|
12848
13115
|
*/
|
|
12849
|
-
declare function createSearchFilesTool(connector: Connector, userId?: string): ToolFunction<SearchFilesArgs, GitHubSearchFilesResult>;
|
|
13116
|
+
declare function createSearchFilesTool(connector: Connector, userId?: string): ToolFunction<SearchFilesArgs$1, GitHubSearchFilesResult>;
|
|
12850
13117
|
|
|
12851
13118
|
/**
|
|
12852
13119
|
* GitHub Search Code Tool
|
|
@@ -13134,6 +13401,129 @@ interface MeetingSlotSuggestion {
|
|
|
13134
13401
|
availability: string;
|
|
13135
13402
|
}[];
|
|
13136
13403
|
}
|
|
13404
|
+
/** @internal Graph driveItem metadata */
|
|
13405
|
+
interface GraphDriveItem {
|
|
13406
|
+
id: string;
|
|
13407
|
+
name: string;
|
|
13408
|
+
size: number;
|
|
13409
|
+
webUrl?: string;
|
|
13410
|
+
lastModifiedDateTime?: string;
|
|
13411
|
+
createdDateTime?: string;
|
|
13412
|
+
file?: {
|
|
13413
|
+
mimeType?: string;
|
|
13414
|
+
hashes?: Record<string, string>;
|
|
13415
|
+
};
|
|
13416
|
+
folder?: {
|
|
13417
|
+
childCount?: number;
|
|
13418
|
+
};
|
|
13419
|
+
parentReference?: {
|
|
13420
|
+
driveId?: string;
|
|
13421
|
+
driveType?: string;
|
|
13422
|
+
id?: string;
|
|
13423
|
+
name?: string;
|
|
13424
|
+
path?: string;
|
|
13425
|
+
siteId?: string;
|
|
13426
|
+
};
|
|
13427
|
+
'@microsoft.graph.downloadUrl'?: string;
|
|
13428
|
+
}
|
|
13429
|
+
interface MicrosoftReadFileResult {
|
|
13430
|
+
success: boolean;
|
|
13431
|
+
filename?: string;
|
|
13432
|
+
sizeBytes?: number;
|
|
13433
|
+
mimeType?: string;
|
|
13434
|
+
markdown?: string;
|
|
13435
|
+
webUrl?: string;
|
|
13436
|
+
error?: string;
|
|
13437
|
+
}
|
|
13438
|
+
interface MicrosoftListFilesResult {
|
|
13439
|
+
success: boolean;
|
|
13440
|
+
items?: {
|
|
13441
|
+
name: string;
|
|
13442
|
+
type: 'file' | 'folder';
|
|
13443
|
+
size: number;
|
|
13444
|
+
sizeFormatted: string;
|
|
13445
|
+
mimeType?: string;
|
|
13446
|
+
lastModified?: string;
|
|
13447
|
+
webUrl?: string;
|
|
13448
|
+
id: string;
|
|
13449
|
+
childCount?: number;
|
|
13450
|
+
}[];
|
|
13451
|
+
totalCount?: number;
|
|
13452
|
+
hasMore?: boolean;
|
|
13453
|
+
error?: string;
|
|
13454
|
+
}
|
|
13455
|
+
interface MicrosoftSearchFilesResult {
|
|
13456
|
+
success: boolean;
|
|
13457
|
+
results?: {
|
|
13458
|
+
name: string;
|
|
13459
|
+
path?: string;
|
|
13460
|
+
site?: string;
|
|
13461
|
+
snippet?: string;
|
|
13462
|
+
size: number;
|
|
13463
|
+
sizeFormatted: string;
|
|
13464
|
+
webUrl?: string;
|
|
13465
|
+
id: string;
|
|
13466
|
+
lastModified?: string;
|
|
13467
|
+
}[];
|
|
13468
|
+
totalCount?: number;
|
|
13469
|
+
hasMore?: boolean;
|
|
13470
|
+
error?: string;
|
|
13471
|
+
}
|
|
13472
|
+
/**
|
|
13473
|
+
* Encode a sharing URL into the Graph API sharing token format.
|
|
13474
|
+
*
|
|
13475
|
+
* Microsoft Graph's `/shares/{token}` endpoint accepts base64url-encoded URLs
|
|
13476
|
+
* prefixed with `u!`. This is the documented way to access files via sharing links
|
|
13477
|
+
* or direct web URLs without knowing the driveId/itemId.
|
|
13478
|
+
*
|
|
13479
|
+
* @see https://learn.microsoft.com/en-us/graph/api/shares-get
|
|
13480
|
+
*/
|
|
13481
|
+
declare function encodeSharingUrl(webUrl: string): string;
|
|
13482
|
+
/**
|
|
13483
|
+
* Check if a string looks like a web URL (http/https).
|
|
13484
|
+
*/
|
|
13485
|
+
declare function isWebUrl(source: string): boolean;
|
|
13486
|
+
/**
|
|
13487
|
+
* Check if a string looks like a OneDrive/SharePoint web URL.
|
|
13488
|
+
*
|
|
13489
|
+
* Matches:
|
|
13490
|
+
* - `*.sharepoint.com/*`
|
|
13491
|
+
* - `onedrive.live.com/*`
|
|
13492
|
+
* - `1drv.ms/*`
|
|
13493
|
+
* - `*.sharepoint-df.com/*` (dogfood/test)
|
|
13494
|
+
*/
|
|
13495
|
+
declare function isMicrosoftFileUrl(source: string): boolean;
|
|
13496
|
+
/**
|
|
13497
|
+
* Determine the drive prefix for Graph API calls.
|
|
13498
|
+
*
|
|
13499
|
+
* Priority:
|
|
13500
|
+
* 1. siteId → `/sites/{siteId}/drive`
|
|
13501
|
+
* 2. driveId → `/drives/{driveId}`
|
|
13502
|
+
* 3. fallback → `{userPrefix}/drive` (e.g., `/me/drive`)
|
|
13503
|
+
*/
|
|
13504
|
+
declare function getDrivePrefix(userPrefix: string, options?: {
|
|
13505
|
+
siteId?: string;
|
|
13506
|
+
driveId?: string;
|
|
13507
|
+
}): string;
|
|
13508
|
+
/**
|
|
13509
|
+
* Build the Graph API endpoint and metadata endpoint for a file source.
|
|
13510
|
+
*
|
|
13511
|
+
* Handles three input types:
|
|
13512
|
+
* 1. Web URL (SharePoint/OneDrive link) → uses `/shares/{token}/driveItem`
|
|
13513
|
+
* 2. Path (starts with `/`) → uses `/drive/root:{path}:`
|
|
13514
|
+
* 3. Item ID → uses `/drive/items/{id}`
|
|
13515
|
+
*
|
|
13516
|
+
* @returns Object with `metadataEndpoint` (for item info) and `contentEndpoint` (for download)
|
|
13517
|
+
*/
|
|
13518
|
+
declare function resolveFileEndpoints(source: string, drivePrefix: string): {
|
|
13519
|
+
metadataEndpoint: string;
|
|
13520
|
+
contentEndpoint: string;
|
|
13521
|
+
isSharedUrl: boolean;
|
|
13522
|
+
};
|
|
13523
|
+
/**
|
|
13524
|
+
* Format a file size in bytes to a human-readable string.
|
|
13525
|
+
*/
|
|
13526
|
+
declare function formatFileSize(bytes: number): string;
|
|
13137
13527
|
|
|
13138
13528
|
/**
|
|
13139
13529
|
* Microsoft Graph - Create Draft Email Tool
|
|
@@ -13254,6 +13644,61 @@ interface FindMeetingSlotsArgs {
|
|
|
13254
13644
|
*/
|
|
13255
13645
|
declare function createFindMeetingSlotsTool(connector: Connector, userId?: string): ToolFunction<FindMeetingSlotsArgs, MicrosoftFindSlotsResult>;
|
|
13256
13646
|
|
|
13647
|
+
/**
|
|
13648
|
+
* Microsoft Graph - Read File Tool
|
|
13649
|
+
*
|
|
13650
|
+
* Downloads a file from OneDrive or SharePoint and converts it to markdown
|
|
13651
|
+
* using DocumentReader. Never returns raw binary content.
|
|
13652
|
+
*/
|
|
13653
|
+
|
|
13654
|
+
interface ReadFileArgs {
|
|
13655
|
+
source: string;
|
|
13656
|
+
driveId?: string;
|
|
13657
|
+
siteId?: string;
|
|
13658
|
+
targetUser?: string;
|
|
13659
|
+
}
|
|
13660
|
+
interface MicrosoftReadFileConfig {
|
|
13661
|
+
/** Default max file size in bytes (default: 50 MB). Applied when no per-extension limit matches. */
|
|
13662
|
+
maxFileSizeBytes?: number;
|
|
13663
|
+
/** Per-extension size limits in bytes, e.g. `{ '.pptx': 200 * 1024 * 1024 }`. Merged with built-in defaults. */
|
|
13664
|
+
fileSizeLimits?: Record<string, number>;
|
|
13665
|
+
}
|
|
13666
|
+
declare function createMicrosoftReadFileTool(connector: Connector, userId?: string, config?: MicrosoftReadFileConfig): ToolFunction<ReadFileArgs, MicrosoftReadFileResult>;
|
|
13667
|
+
|
|
13668
|
+
/**
|
|
13669
|
+
* Microsoft Graph - List Files Tool
|
|
13670
|
+
*
|
|
13671
|
+
* Lists files and folders in a OneDrive or SharePoint directory.
|
|
13672
|
+
* Returns metadata only — never file contents.
|
|
13673
|
+
*/
|
|
13674
|
+
|
|
13675
|
+
interface ListFilesArgs {
|
|
13676
|
+
path?: string;
|
|
13677
|
+
driveId?: string;
|
|
13678
|
+
siteId?: string;
|
|
13679
|
+
search?: string;
|
|
13680
|
+
limit?: number;
|
|
13681
|
+
targetUser?: string;
|
|
13682
|
+
}
|
|
13683
|
+
declare function createMicrosoftListFilesTool(connector: Connector, userId?: string): ToolFunction<ListFilesArgs, MicrosoftListFilesResult>;
|
|
13684
|
+
|
|
13685
|
+
/**
|
|
13686
|
+
* Microsoft Graph - Search Files Tool
|
|
13687
|
+
*
|
|
13688
|
+
* Searches across OneDrive and SharePoint for files matching a query.
|
|
13689
|
+
* Uses the Microsoft Search API with KQL support.
|
|
13690
|
+
* Returns metadata and snippets only — never file contents.
|
|
13691
|
+
*/
|
|
13692
|
+
|
|
13693
|
+
interface SearchFilesArgs {
|
|
13694
|
+
query: string;
|
|
13695
|
+
siteId?: string;
|
|
13696
|
+
fileTypes?: string[];
|
|
13697
|
+
limit?: number;
|
|
13698
|
+
targetUser?: string;
|
|
13699
|
+
}
|
|
13700
|
+
declare function createMicrosoftSearchFilesTool(connector: Connector, userId?: string): ToolFunction<SearchFilesArgs, MicrosoftSearchFilesResult>;
|
|
13701
|
+
|
|
13257
13702
|
/**
|
|
13258
13703
|
* Desktop Automation Tools - Types
|
|
13259
13704
|
*
|
|
@@ -13632,13 +14077,13 @@ declare const desktopTools: (ToolFunction<DesktopScreenshotArgs, DesktopScreensh
|
|
|
13632
14077
|
* AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
|
|
13633
14078
|
*
|
|
13634
14079
|
* Generated by: scripts/generate-tool-registry.ts
|
|
13635
|
-
* Generated at: 2026-02-
|
|
14080
|
+
* Generated at: 2026-02-26T21:46:20.180Z
|
|
13636
14081
|
*
|
|
13637
14082
|
* To regenerate: npm run generate:tools
|
|
13638
14083
|
*/
|
|
13639
14084
|
|
|
13640
14085
|
/** Tool category for grouping */
|
|
13641
|
-
type ToolCategory = 'filesystem' | 'shell' | 'web' | 'code' | 'json' | 'connector' | 'desktop' | 'custom-tools' | 'other';
|
|
14086
|
+
type ToolCategory = 'filesystem' | 'shell' | 'web' | 'code' | 'json' | 'connector' | 'desktop' | 'custom-tools' | 'routines' | 'other';
|
|
13642
14087
|
/** Metadata for a tool in the registry */
|
|
13643
14088
|
interface ToolRegistryEntry {
|
|
13644
14089
|
/** Tool name (matches definition.function.name) */
|
|
@@ -13675,6 +14120,24 @@ declare function getToolsRequiringConnector(): ToolRegistryEntry[];
|
|
|
13675
14120
|
/** Get all unique category names */
|
|
13676
14121
|
declare function getToolCategories(): ToolCategory[];
|
|
13677
14122
|
|
|
14123
|
+
/**
|
|
14124
|
+
* generate_routine - Generates and persists a complete RoutineDefinition from LLM output.
|
|
14125
|
+
*/
|
|
14126
|
+
|
|
14127
|
+
interface GenerateRoutineArgs {
|
|
14128
|
+
definition: RoutineDefinitionInput;
|
|
14129
|
+
}
|
|
14130
|
+
interface GenerateRoutineResult {
|
|
14131
|
+
success: boolean;
|
|
14132
|
+
id?: string;
|
|
14133
|
+
name?: string;
|
|
14134
|
+
storagePath?: string;
|
|
14135
|
+
error?: string;
|
|
14136
|
+
}
|
|
14137
|
+
declare function createGenerateRoutine(storage?: IRoutineDefinitionStorage): ToolFunction<GenerateRoutineArgs, GenerateRoutineResult>;
|
|
14138
|
+
/** Default generate_routine instance (resolves storage from StorageRegistry at execution time) */
|
|
14139
|
+
declare const generateRoutine: ToolFunction<GenerateRoutineArgs, GenerateRoutineResult>;
|
|
14140
|
+
|
|
13678
14141
|
/**
|
|
13679
14142
|
* custom_tool_draft - Validates a draft custom tool structure
|
|
13680
14143
|
*
|
|
@@ -13997,7 +14460,7 @@ declare class ToolRegistry {
|
|
|
13997
14460
|
* });
|
|
13998
14461
|
* ```
|
|
13999
14462
|
*/
|
|
14000
|
-
declare const developerTools: (ToolFunction<ReadFileArgs, ReadFileResult> | ToolFunction<WriteFileArgs, WriteFileResult> | ToolFunction<EditFileArgs, EditFileResult> | ToolFunction<GlobArgs, GlobResult> | ToolFunction<GrepArgs, GrepResult> | ToolFunction<ListDirectoryArgs, ListDirectoryResult> | ToolFunction<BashArgs, BashResult>)[];
|
|
14463
|
+
declare const developerTools: (ToolFunction<ReadFileArgs$1, ReadFileResult> | ToolFunction<WriteFileArgs, WriteFileResult> | ToolFunction<EditFileArgs, EditFileResult> | ToolFunction<GlobArgs, GlobResult> | ToolFunction<GrepArgs, GrepResult> | ToolFunction<ListDirectoryArgs, ListDirectoryResult> | ToolFunction<BashArgs, BashResult>)[];
|
|
14001
14464
|
|
|
14002
14465
|
type index_BashResult = BashResult;
|
|
14003
14466
|
type index_ConnectorToolEntry = ConnectorToolEntry;
|
|
@@ -14064,6 +14527,7 @@ type index_GitHubRepository = GitHubRepository;
|
|
|
14064
14527
|
type index_GitHubSearchCodeResult = GitHubSearchCodeResult;
|
|
14065
14528
|
type index_GitHubSearchFilesResult = GitHubSearchFilesResult;
|
|
14066
14529
|
type index_GlobResult = GlobResult;
|
|
14530
|
+
type index_GraphDriveItem = GraphDriveItem;
|
|
14067
14531
|
type index_GrepMatch = GrepMatch;
|
|
14068
14532
|
type index_GrepResult = GrepResult;
|
|
14069
14533
|
type index_HydrateOptions = HydrateOptions;
|
|
@@ -14077,6 +14541,9 @@ type index_MicrosoftDraftEmailResult = MicrosoftDraftEmailResult;
|
|
|
14077
14541
|
type index_MicrosoftEditMeetingResult = MicrosoftEditMeetingResult;
|
|
14078
14542
|
type index_MicrosoftFindSlotsResult = MicrosoftFindSlotsResult;
|
|
14079
14543
|
type index_MicrosoftGetTranscriptResult = MicrosoftGetTranscriptResult;
|
|
14544
|
+
type index_MicrosoftListFilesResult = MicrosoftListFilesResult;
|
|
14545
|
+
type index_MicrosoftReadFileResult = MicrosoftReadFileResult;
|
|
14546
|
+
type index_MicrosoftSearchFilesResult = MicrosoftSearchFilesResult;
|
|
14080
14547
|
type index_MicrosoftSendEmailResult = MicrosoftSendEmailResult;
|
|
14081
14548
|
type index_MouseButton = MouseButton;
|
|
14082
14549
|
type index_NutTreeDriver = NutTreeDriver;
|
|
@@ -14117,6 +14584,7 @@ declare const index_createEditFileTool: typeof createEditFileTool;
|
|
|
14117
14584
|
declare const index_createEditMeetingTool: typeof createEditMeetingTool;
|
|
14118
14585
|
declare const index_createExecuteJavaScriptTool: typeof createExecuteJavaScriptTool;
|
|
14119
14586
|
declare const index_createFindMeetingSlotsTool: typeof createFindMeetingSlotsTool;
|
|
14587
|
+
declare const index_createGenerateRoutine: typeof createGenerateRoutine;
|
|
14120
14588
|
declare const index_createGetMeetingTranscriptTool: typeof createGetMeetingTranscriptTool;
|
|
14121
14589
|
declare const index_createGetPRTool: typeof createGetPRTool;
|
|
14122
14590
|
declare const index_createGitHubReadFileTool: typeof createGitHubReadFileTool;
|
|
@@ -14125,6 +14593,9 @@ declare const index_createGrepTool: typeof createGrepTool;
|
|
|
14125
14593
|
declare const index_createImageGenerationTool: typeof createImageGenerationTool;
|
|
14126
14594
|
declare const index_createListDirectoryTool: typeof createListDirectoryTool;
|
|
14127
14595
|
declare const index_createMeetingTool: typeof createMeetingTool;
|
|
14596
|
+
declare const index_createMicrosoftListFilesTool: typeof createMicrosoftListFilesTool;
|
|
14597
|
+
declare const index_createMicrosoftReadFileTool: typeof createMicrosoftReadFileTool;
|
|
14598
|
+
declare const index_createMicrosoftSearchFilesTool: typeof createMicrosoftSearchFilesTool;
|
|
14128
14599
|
declare const index_createPRCommentsTool: typeof createPRCommentsTool;
|
|
14129
14600
|
declare const index_createPRFilesTool: typeof createPRFilesTool;
|
|
14130
14601
|
declare const index_createReadFileTool: typeof createReadFileTool;
|
|
@@ -14157,14 +14628,18 @@ declare const index_desktopWindowFocus: typeof desktopWindowFocus;
|
|
|
14157
14628
|
declare const index_desktopWindowList: typeof desktopWindowList;
|
|
14158
14629
|
declare const index_developerTools: typeof developerTools;
|
|
14159
14630
|
declare const index_editFile: typeof editFile;
|
|
14631
|
+
declare const index_encodeSharingUrl: typeof encodeSharingUrl;
|
|
14160
14632
|
declare const index_executeInVM: typeof executeInVM;
|
|
14161
14633
|
declare const index_executeJavaScript: typeof executeJavaScript;
|
|
14162
14634
|
declare const index_expandTilde: typeof expandTilde;
|
|
14163
14635
|
declare const index_formatAttendees: typeof formatAttendees;
|
|
14636
|
+
declare const index_formatFileSize: typeof formatFileSize;
|
|
14164
14637
|
declare const index_formatRecipients: typeof formatRecipients;
|
|
14638
|
+
declare const index_generateRoutine: typeof generateRoutine;
|
|
14165
14639
|
declare const index_getAllBuiltInTools: typeof getAllBuiltInTools;
|
|
14166
14640
|
declare const index_getBackgroundOutput: typeof getBackgroundOutput;
|
|
14167
14641
|
declare const index_getDesktopDriver: typeof getDesktopDriver;
|
|
14642
|
+
declare const index_getDrivePrefix: typeof getDrivePrefix;
|
|
14168
14643
|
declare const index_getMediaOutputHandler: typeof getMediaOutputHandler;
|
|
14169
14644
|
declare const index_getMediaStorage: typeof getMediaStorage;
|
|
14170
14645
|
declare const index_getToolByName: typeof getToolByName;
|
|
@@ -14178,7 +14653,9 @@ declare const index_grep: typeof grep;
|
|
|
14178
14653
|
declare const index_hydrateCustomTool: typeof hydrateCustomTool;
|
|
14179
14654
|
declare const index_isBlockedCommand: typeof isBlockedCommand;
|
|
14180
14655
|
declare const index_isExcludedExtension: typeof isExcludedExtension;
|
|
14656
|
+
declare const index_isMicrosoftFileUrl: typeof isMicrosoftFileUrl;
|
|
14181
14657
|
declare const index_isTeamsMeetingUrl: typeof isTeamsMeetingUrl;
|
|
14658
|
+
declare const index_isWebUrl: typeof isWebUrl;
|
|
14182
14659
|
declare const index_jsonManipulator: typeof jsonManipulator;
|
|
14183
14660
|
declare const index_killBackgroundProcess: typeof killBackgroundProcess;
|
|
14184
14661
|
declare const index_listDirectory: typeof listDirectory;
|
|
@@ -14189,6 +14666,7 @@ declare const index_parseKeyCombo: typeof parseKeyCombo;
|
|
|
14189
14666
|
declare const index_parseRepository: typeof parseRepository;
|
|
14190
14667
|
declare const index_readFile: typeof readFile;
|
|
14191
14668
|
declare const index_resetDefaultDriver: typeof resetDefaultDriver;
|
|
14669
|
+
declare const index_resolveFileEndpoints: typeof resolveFileEndpoints;
|
|
14192
14670
|
declare const index_resolveMeetingId: typeof resolveMeetingId;
|
|
14193
14671
|
declare const index_resolveRepository: typeof resolveRepository;
|
|
14194
14672
|
declare const index_setMediaOutputHandler: typeof setMediaOutputHandler;
|
|
@@ -14198,7 +14676,7 @@ declare const index_validatePath: typeof validatePath;
|
|
|
14198
14676
|
declare const index_webFetch: typeof webFetch;
|
|
14199
14677
|
declare const index_writeFile: typeof writeFile;
|
|
14200
14678
|
declare namespace index {
|
|
14201
|
-
export { type index_BashResult as BashResult, type index_ConnectorToolEntry as ConnectorToolEntry, index_ConnectorTools as ConnectorTools, type index_CustomToolMetaToolsOptions as CustomToolMetaToolsOptions, 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_HydrateOptions as HydrateOptions, 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_MeetingSlotSuggestion as MeetingSlotSuggestion, type index_MicrosoftCreateMeetingResult as MicrosoftCreateMeetingResult, type index_MicrosoftDraftEmailResult as MicrosoftDraftEmailResult, type index_MicrosoftEditMeetingResult as MicrosoftEditMeetingResult, type index_MicrosoftFindSlotsResult as MicrosoftFindSlotsResult, type index_MicrosoftGetTranscriptResult as MicrosoftGetTranscriptResult, type index_MicrosoftSendEmailResult as MicrosoftSendEmailResult, 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_createCustomToolDelete as createCustomToolDelete, index_createCustomToolDraft as createCustomToolDraft, index_createCustomToolList as createCustomToolList, index_createCustomToolLoad as createCustomToolLoad, index_createCustomToolMetaTools as createCustomToolMetaTools, index_createCustomToolSave as createCustomToolSave, index_createCustomToolTest as createCustomToolTest, 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_createDraftEmailTool as createDraftEmailTool, index_createEditFileTool as createEditFileTool, index_createEditMeetingTool as createEditMeetingTool, index_createExecuteJavaScriptTool as createExecuteJavaScriptTool, index_createFindMeetingSlotsTool as createFindMeetingSlotsTool, index_createGetMeetingTranscriptTool as createGetMeetingTranscriptTool, 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_createMeetingTool as createMeetingTool, index_createPRCommentsTool as createPRCommentsTool, index_createPRFilesTool as createPRFilesTool, index_createReadFileTool as createReadFileTool, index_createSearchCodeTool as createSearchCodeTool, index_createSearchFilesTool as createSearchFilesTool, index_createSendEmailTool as createSendEmailTool, 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_customToolDelete as customToolDelete, index_customToolDraft as customToolDraft, index_customToolList as customToolList, index_customToolLoad as customToolLoad, index_customToolSave as customToolSave, index_customToolTest as customToolTest, 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_executeInVM as executeInVM, index_executeJavaScript as executeJavaScript, index_expandTilde as expandTilde, index_formatAttendees as formatAttendees, index_formatRecipients as formatRecipients, 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_getUserPathPrefix as getUserPathPrefix, index_glob as glob, index_grep as grep, index_hydrateCustomTool as hydrateCustomTool, index_isBlockedCommand as isBlockedCommand, index_isExcludedExtension as isExcludedExtension, index_isTeamsMeetingUrl as isTeamsMeetingUrl, index_jsonManipulator as jsonManipulator, index_killBackgroundProcess as killBackgroundProcess, index_listDirectory as listDirectory, index_mergeTextPieces as mergeTextPieces, index_microsoftFetch as microsoftFetch, index_normalizeEmails as normalizeEmails, index_parseKeyCombo as parseKeyCombo, index_parseRepository as parseRepository, index_readFile as readFile, index_resetDefaultDriver as resetDefaultDriver, index_resolveMeetingId as resolveMeetingId, 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 };
|
|
14679
|
+
export { type index_BashResult as BashResult, type index_ConnectorToolEntry as ConnectorToolEntry, index_ConnectorTools as ConnectorTools, type index_CustomToolMetaToolsOptions as CustomToolMetaToolsOptions, 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_GraphDriveItem as GraphDriveItem, type index_GrepMatch as GrepMatch, type index_GrepResult as GrepResult, type index_HydrateOptions as HydrateOptions, 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_MeetingSlotSuggestion as MeetingSlotSuggestion, type index_MicrosoftCreateMeetingResult as MicrosoftCreateMeetingResult, type index_MicrosoftDraftEmailResult as MicrosoftDraftEmailResult, type index_MicrosoftEditMeetingResult as MicrosoftEditMeetingResult, type index_MicrosoftFindSlotsResult as MicrosoftFindSlotsResult, type index_MicrosoftGetTranscriptResult as MicrosoftGetTranscriptResult, type index_MicrosoftListFilesResult as MicrosoftListFilesResult, type index_MicrosoftReadFileResult as MicrosoftReadFileResult, type index_MicrosoftSearchFilesResult as MicrosoftSearchFilesResult, type index_MicrosoftSendEmailResult as MicrosoftSendEmailResult, 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_createCustomToolDelete as createCustomToolDelete, index_createCustomToolDraft as createCustomToolDraft, index_createCustomToolList as createCustomToolList, index_createCustomToolLoad as createCustomToolLoad, index_createCustomToolMetaTools as createCustomToolMetaTools, index_createCustomToolSave as createCustomToolSave, index_createCustomToolTest as createCustomToolTest, 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_createDraftEmailTool as createDraftEmailTool, index_createEditFileTool as createEditFileTool, index_createEditMeetingTool as createEditMeetingTool, index_createExecuteJavaScriptTool as createExecuteJavaScriptTool, index_createFindMeetingSlotsTool as createFindMeetingSlotsTool, index_createGenerateRoutine as createGenerateRoutine, index_createGetMeetingTranscriptTool as createGetMeetingTranscriptTool, 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_createMeetingTool as createMeetingTool, index_createMicrosoftListFilesTool as createMicrosoftListFilesTool, index_createMicrosoftReadFileTool as createMicrosoftReadFileTool, index_createMicrosoftSearchFilesTool as createMicrosoftSearchFilesTool, index_createPRCommentsTool as createPRCommentsTool, index_createPRFilesTool as createPRFilesTool, index_createReadFileTool as createReadFileTool, index_createSearchCodeTool as createSearchCodeTool, index_createSearchFilesTool as createSearchFilesTool, index_createSendEmailTool as createSendEmailTool, 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_customToolDelete as customToolDelete, index_customToolDraft as customToolDraft, index_customToolList as customToolList, index_customToolLoad as customToolLoad, index_customToolSave as customToolSave, index_customToolTest as customToolTest, 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_encodeSharingUrl as encodeSharingUrl, index_executeInVM as executeInVM, index_executeJavaScript as executeJavaScript, index_expandTilde as expandTilde, index_formatAttendees as formatAttendees, index_formatFileSize as formatFileSize, index_formatRecipients as formatRecipients, index_generateRoutine as generateRoutine, index_getAllBuiltInTools as getAllBuiltInTools, index_getBackgroundOutput as getBackgroundOutput, index_getDesktopDriver as getDesktopDriver, index_getDrivePrefix as getDrivePrefix, 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_getUserPathPrefix as getUserPathPrefix, index_glob as glob, index_grep as grep, index_hydrateCustomTool as hydrateCustomTool, index_isBlockedCommand as isBlockedCommand, index_isExcludedExtension as isExcludedExtension, index_isMicrosoftFileUrl as isMicrosoftFileUrl, index_isTeamsMeetingUrl as isTeamsMeetingUrl, index_isWebUrl as isWebUrl, index_jsonManipulator as jsonManipulator, index_killBackgroundProcess as killBackgroundProcess, index_listDirectory as listDirectory, index_mergeTextPieces as mergeTextPieces, index_microsoftFetch as microsoftFetch, index_normalizeEmails as normalizeEmails, index_parseKeyCombo as parseKeyCombo, index_parseRepository as parseRepository, index_readFile as readFile, index_resetDefaultDriver as resetDefaultDriver, index_resolveFileEndpoints as resolveFileEndpoints, index_resolveMeetingId as resolveMeetingId, 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 };
|
|
14202
14680
|
}
|
|
14203
14681
|
|
|
14204
14682
|
/**
|
|
@@ -14253,4 +14731,76 @@ declare class ProviderConfigAgent {
|
|
|
14253
14731
|
reset(): void;
|
|
14254
14732
|
}
|
|
14255
14733
|
|
|
14256
|
-
export { AGENT_DEFINITION_FORMAT_VERSION, AIError, APPROVAL_STATE_VERSION, Agent, type AgentConfig$1 as AgentConfig, AgentContextNextGen, AgentContextNextGenConfig, type AgentDefinitionListOptions, type AgentDefinitionMetadata, type AgentDefinitionSummary, AgentEvents, type AgentMetrics, type AgentPermissionsConfig, AgentResponse, type AgentSessionConfig, type AgentState, type AgentStatus, type ApprovalCacheEntry, type ApprovalDecision, ApproximateTokenEstimator, AudioFormat, AuditEntry, AuthIdentity, type AuthTemplate, type AuthTemplateField, type BackoffConfig, type BackoffStrategyType, BaseMediaProvider, BasePluginNextGen, BaseProvider, type BaseProviderConfig$1 as BaseProviderConfig, type BaseProviderResponse, BaseTextProvider, type BashResult, type BeforeExecuteResult, BraveProvider, CONNECTOR_CONFIG_VERSION, CUSTOM_TOOL_DEFINITION_VERSION, CheckpointManager, type CheckpointStrategy, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerEvents, type CircuitBreakerMetrics, CircuitOpenError, type CircuitState, type ClipboardImageResult, CompactionContext, CompactionResult, Connector, ConnectorAccessContext, ConnectorAuth, ConnectorConfig, ConnectorConfigResult, ConnectorConfigStore, ConnectorFetchOptions, type ConnectorToolEntry, ConnectorTools, type ConnectorToolsOptions, ConsoleMetrics, ConsolidationResult, Content, ContextBudget$1 as ContextBudget, ContextEvents, ContextFeatures, type ContextManagerConfig, type ContextOverflowBudget, ContextOverflowError, ContextSessionMetadata, ContextSessionSummary, ContextStorageListOptions, type ControlFlowResult, type ConversationMessage, type CreateConnectorOptions, type CustomToolDefinition, type CustomToolListOptions, type CustomToolMetaToolsOptions, type CustomToolMetadata, type CustomToolSummary, type CustomToolTestCase, DEFAULT_ALLOWLIST, DEFAULT_BACKOFF_CONFIG, DEFAULT_CHECKPOINT_STRATEGY, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONTEXT_CONFIG, DEFAULT_DESKTOP_CONFIG, DEFAULT_FILESYSTEM_CONFIG, DEFAULT_HISTORY_MANAGER_CONFIG, DEFAULT_PERMISSION_CONFIG, DEFAULT_RATE_LIMITER_CONFIG, DEFAULT_SHELL_CONFIG, DESKTOP_TOOL_NAMES, type DefaultAllowlistedTool, DefaultCompactionStrategy, type DefaultCompactionStrategyConfig, DependencyCycleError, type DesktopGetCursorResult, type DesktopGetScreenSizeResult, type DesktopKeyboardKeyArgs, type DesktopKeyboardKeyResult, type DesktopKeyboardTypeArgs, type DesktopKeyboardTypeResult, type DesktopMouseClickArgs, type DesktopMouseClickResult, type DesktopMouseDragArgs, type DesktopMouseDragResult, type DesktopMouseMoveArgs, type DesktopMouseMoveResult, type DesktopMouseScrollArgs, type DesktopMouseScrollResult, type DesktopPoint, type DesktopScreenSize, type DesktopScreenshot, type DesktopScreenshotArgs, type DesktopScreenshotResult, type DesktopToolConfig, type DesktopToolName, type DesktopWindow, type DesktopWindowFocusArgs, type DesktopWindowFocusResult, type DesktopWindowListResult, type DirectCallOptions, type DocumentFamily, type DocumentFormat, type DocumentImagePiece, type DocumentMetadata, type DocumentPiece, type DocumentReadOptions, DocumentReader, type DocumentReaderConfig, type DocumentResult, type DocumentSource, type DocumentTextPiece, type DocumentToContentOptions, type EditFileResult, type ErrorContext, ErrorHandler, type ErrorHandlerConfig, type ErrorHandlerEvents, type EvictionStrategy, type ExecuteRoutineOptions, ExecutionContext, ExecutionMetrics, type ExtendedFetchOptions, type ExternalDependency, type ExternalDependencyEvents, ExternalDependencyHandler, type FetchedContent, FileAgentDefinitionStorage, type FileAgentDefinitionStorageConfig, FileConnectorStorage, type FileConnectorStorageConfig, FileContextStorage, type FileContextStorageConfig, FileCustomToolStorage, type FileCustomToolStorageConfig, FileMediaStorage as FileMediaOutputHandler, FileMediaStorage, type FileMediaStorageConfig, FilePersistentInstructionsStorage, type FilePersistentInstructionsStorageConfig, FileRoutineDefinitionStorage, type FileRoutineDefinitionStorageConfig, FileStorage, type FileStorageConfig, FileUserInfoStorage, type FileUserInfoStorageConfig, type FilesystemToolConfig, type FormatDetectionResult, FormatDetector, FrameworkLogger, FunctionToolDefinition, type GeneratedPlan, type GenericAPICallArgs, type GenericAPICallResult, type GenericAPIToolOptions, type GitHubCreatePRResult, type GitHubGetPRResult, type GitHubPRCommentEntry, type GitHubPRCommentsResult, type GitHubPRFilesResult, type GitHubReadFileResult, type GitHubRepository, type GitHubSearchCodeResult, type GitHubSearchFilesResult, type GlobResult, type GrepMatch, type GrepResult, type HTTPTransportConfig, type HistoryManagerEvents, type HistoryMessage, HistoryMode, HookConfig, HookName, type HydrateOptions, type IAgentDefinitionStorage, type IAgentStateStorage, type IAgentStorage, type IAsyncDisposable, IBaseModelDescription, type ICapabilityProvider, ICompactionStrategy, IConnectorAccessPolicy, type IConnectorConfigStorage, IConnectorRegistry, type IContextCompactor, type IContextComponent, IContextPluginNextGen, type IContextSnapshot, IContextStorage, type IContextStrategy, type ICustomToolStorage, type IDesktopDriver, type IDisposable, type IDocumentTransformer, type IFormatHandler, type IHistoryManager, type IHistoryManagerConfig, type IHistoryStorage, IImageProvider, type IMCPClient, type IMediaStorage as IMediaOutputHandler, type IMediaStorage, type IMemoryStorage, type IPersistentInstructionsStorage, type IPlanStorage, type IPluginSnapshot, IProvider, type IResearchSource, type IRoutineDefinitionStorage, type ISTTModelDescription, type IScrapeProvider, type ISearchProvider, type ISpeechToTextProvider, type ITTSModelDescription, ITextProvider, type ITextToSpeechProvider, ITokenEstimator$1 as ITokenEstimator, ITokenStorage, type IToolExecutionPipeline, type IToolExecutionPlugin, type IToolExecutor, type IToolSnapshot, type IUserInfoStorage, type IVideoModelDescription, type IVideoProvider, type IViewContextComponent, type IViewContextData, type IVoiceInfo, type ImageFilterOptions, type InContextEntry, type InContextMemoryConfig, InContextMemoryPluginNextGen, type InContextPriority, InMemoryAgentStateStorage, InMemoryHistoryStorage, InMemoryMetrics, InMemoryPlanStorage, InMemoryStorage, InputItem, type InstructionEntry, InvalidConfigError, InvalidToolArgumentsError, type JSONExtractionResult, LLMResponse, type LogEntry, type LogLevel, type LoggerConfig, LoggingPlugin, type LoggingPluginOptions, MCPClient, type MCPClientConnectionState, type MCPClientState, type MCPConfiguration, MCPConnectionError, MCPError, type MCPPrompt, type MCPPromptResult, MCPProtocolError, MCPRegistry, type MCPResource, type MCPResourceContent, MCPResourceError, type MCPServerCapabilities, type MCPServerConfig, MCPTimeoutError, type MCPTool, MCPToolError, type MCPToolResult, type MCPTransportType, type MediaStorageMetadata as MediaOutputMetadata, type MediaStorageResult as MediaOutputResult, type MediaStorageEntry, type MediaStorageListOptions, type MediaStorageMetadata, type MediaStorageResult, type MeetingSlotSuggestion, MemoryConnectorStorage, MemoryEntry, MemoryEvictionCompactor, MemoryIndex, MemoryPriority, MemoryScope, MemoryStorage, MessageBuilder, MessageRole, type MetricTags, type MetricsCollector, type MetricsCollectorType, type MicrosoftCreateMeetingResult, type MicrosoftDraftEmailResult, type MicrosoftEditMeetingResult, type MicrosoftFindSlotsResult, type MicrosoftGetTranscriptResult, type MicrosoftSendEmailResult, ModelCapabilities, ModelNotSupportedError, type MouseButton, type EvictionStrategy$1 as NextGenEvictionStrategy, NoOpMetrics, NutTreeDriver, type OAuthConfig, type OAuthFlow, OAuthManager, OutputItem, ParallelTasksError, type PermissionCheckContext, type PermissionCheckResult, type PermissionManagerEvent, type PermissionScope, type PersistentInstructionsConfig, PersistentInstructionsPluginNextGen, type PieceMetadata, type Plan, type PlanConcurrency, type PlanInput, type PlanStatus, PlanningAgent, type PlanningAgentConfig, type PluginExecutionContext, PreparedContext, ProviderAuthError, ProviderCapabilities, ProviderConfigAgent, ProviderContextLengthError, ProviderError, ProviderErrorMapper, ProviderNotFoundError, ProviderRateLimitError, ROUTINE_KEYS, RapidAPIProvider, RateLimitError, type RateLimiterConfig, type RateLimiterMetrics, type ReadFileResult, type FetchOptions as ResearchFetchOptions, type ResearchFinding, type ResearchPlan, type ResearchProgress, type ResearchQuery, type ResearchResult, type SearchOptions as ResearchSearchOptions, type SearchResponse as ResearchSearchResponse, type RiskLevel, type RoutineDefinition, type RoutineDefinitionInput, type RoutineExecution, type RoutineExecutionStatus, type RoutineParameter, 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, SerializedContextState, type SerializedHistoryState, type SerializedInContextMemoryState, type SerializedPersistentInstructionsState, type SerializedToolState, type SerializedUserInfoState, type SerializedWorkingMemoryState, SerperProvider, ServiceCategory, type ServiceToolFactory, type ShellToolConfig, type SimpleIcon, type SimpleVideoGenerateOptions, type SourceCapabilities, type SourceResult, SpeechToText, type SpeechToTextConfig, type StdioTransportConfig, type StorageConfig, type StorageContext, StorageRegistry, type StoredAgentDefinition, type StoredAgentType, type StoredConnectorConfig, StoredContextSession, type StoredToken, type StrategyInfo, StrategyRegistry, type StrategyRegistryEntry, StreamEvent, StreamEventType, StreamHelpers, StreamState, type SubRoutineSpec, SummarizeCompactor, TERMINAL_TASK_STATUSES, type TTSModelCapabilities, type TTSOptions, type TTSResponse, TTS_MODELS, TTS_MODEL_REGISTRY, type Task, type AgentConfig as TaskAgentStateConfig, type TaskCondition, type TaskControlFlow, type TaskExecution, type TaskFailure, type TaskFoldFlow, type TaskInput, type TaskMapFlow, type TaskStatus, TaskStatusForMemory, TaskTimeoutError, ToolContext as TaskToolContext, type TaskUntilFlow, type TaskValidation, TaskValidationError, type TaskValidationResult, TavilyProvider, type TemplateCredentials, TextGenerateOptions, TextToSpeech, type TextToSpeechConfig, TokenBucketRateLimiter, type TokenContentType, Tool, ToolCall, type 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, type ToolSource, ToolTimeoutError, type TransportConfig, TruncateCompactor, type UserInfoEntry, type UserInfoPluginConfig, UserInfoPluginNextGen, VENDOR_ICON_MAP, VIDEO_MODELS, VIDEO_MODEL_REGISTRY, type ValidationContext, Vendor, type VendorInfo, type VendorLogo, VendorOptionSchema, type VendorRegistryEntry, type VendorTemplate, type VideoExtendOptions, type VideoGenerateOptions, VideoGeneration, type VideoGenerationCreateOptions, type VideoJob, type VideoModelCapabilities, type VideoModelPricing, type VideoResponse, type VideoStatus, type WordTimestamp, WorkingMemory, WorkingMemoryAccess, WorkingMemoryConfig, type WorkingMemoryEvents, type WorkingMemoryPluginConfig, WorkingMemoryPluginNextGen, type WriteFileResult, addJitter, allVendorTemplates, assertNotDestroyed, authenticatedFetch, backoffSequence, backoffWait, bash, buildAuthConfig, buildEndpointWithQuery, buildQueryString, calculateBackoff, calculateSTTCost, calculateTTSCost, calculateVideoCost, canTaskExecute, createAgentStorage, createAuthenticatedFetch, createBashTool, createConnectorFromTemplate, createCreatePRTool, createCustomToolDelete, createCustomToolDraft, createCustomToolList, createCustomToolLoad, createCustomToolMetaTools, createCustomToolSave, createCustomToolTest, createDesktopGetCursorTool, createDesktopGetScreenSizeTool, createDesktopKeyboardKeyTool, createDesktopKeyboardTypeTool, createDesktopMouseClickTool, createDesktopMouseDragTool, createDesktopMouseMoveTool, createDesktopMouseScrollTool, createDesktopScreenshotTool, createDesktopWindowFocusTool, createDesktopWindowListTool, createDraftEmailTool, createEditFileTool, createEditMeetingTool, createEstimator, createExecuteJavaScriptTool, createFileAgentDefinitionStorage, createFileContextStorage, createFileCustomToolStorage, createFileMediaStorage, createFileRoutineDefinitionStorage, createFindMeetingSlotsTool, createGetMeetingTranscriptTool, createGetPRTool, createGitHubReadFileTool, createGlobTool, createGrepTool, createImageGenerationTool, createImageProvider, createListDirectoryTool, createMeetingTool, createMessageWithImages, createMetricsCollector, createPRCommentsTool, createPRFilesTool, createPlan, createProvider, createReadFileTool, createRoutineDefinition, createRoutineExecution, createSearchCodeTool, createSearchFilesTool, createSendEmailTool, createSpeechToTextTool, createTask, createTextMessage, createTextToSpeechTool, createVideoProvider, createVideoTools, createWriteFileTool, customToolDelete, customToolDraft, customToolList, customToolLoad, customToolSave, customToolTest, desktopGetCursor, desktopGetScreenSize, desktopKeyboardKey, desktopKeyboardType, desktopMouseClick, desktopMouseDrag, desktopMouseMove, desktopMouseScroll, desktopScreenshot, desktopTools, desktopWindowFocus, desktopWindowList, detectDependencyCycle, developerTools, documentToContent, editFile, evaluateCondition, executeRoutine, extractJSON, extractJSONField, extractNumber, findConnectorByServiceTypes, formatAttendees, formatPluginDisplayName, formatRecipients, generateEncryptionKey, generateSimplePlan, generateWebAPITool, getActiveSTTModels, getActiveTTSModels, getActiveVideoModels, getAllBuiltInTools, getAllVendorLogos, getAllVendorTemplates, getBackgroundOutput, getConnectorTools, getCredentialsSetupURL, getDesktopDriver, getDocsURL, getMediaOutputHandler, getMediaStorage, getNextExecutableTasks, getRegisteredScrapeProviders, getRoutineProgress, getSTTModelInfo, getSTTModelsByVendor, getSTTModelsWithFeature, getTTSModelInfo, getTTSModelsByVendor, getTTSModelsWithFeature, getTaskDependencies, getToolByName, getToolCategories, getToolRegistry, getToolsByCategory, getToolsRequiringConnector, getUserPathPrefix, getVendorAuthTemplate, getVendorColor, getVendorDefaultBaseURL, getVendorInfo, getVendorLogo, getVendorLogoCdnUrl, getVendorLogoSvg, getVendorTemplate, getVideoModelInfo, getVideoModelsByVendor, getVideoModelsWithAudio, getVideoModelsWithFeature, glob, globalErrorHandler, grep, hasClipboardImage, hasVendorLogo, hydrateCustomTool, isBlockedCommand, isExcludedExtension, isTaskBlocked, isTeamsMeetingUrl, isTerminalStatus, killBackgroundProcess, listConnectorsByServiceTypes, listDirectory, listVendorIds, listVendors, listVendorsByAuthType, listVendorsByCategory, listVendorsWithLogos, logger, mergeTextPieces, metrics, microsoftFetch, normalizeEmails, parseKeyCombo, parseRepository, readClipboardImage, readDocumentAsContent, readFile, registerScrapeProvider, resetDefaultDriver, resolveConnector, resolveDependencies, resolveMaxContextTokens, resolveMeetingId, resolveModelCapabilities, resolveRepository, resolveTemplates, retryWithBackoff, sanitizeToolName, setMediaOutputHandler, setMediaStorage, setMetricsCollector, simpleTokenEstimator, toConnectorOptions, toolRegistry, index as tools, updateTaskStatus, validatePath, writeFile };
|
|
14734
|
+
/**
|
|
14735
|
+
* Scheduler interface for running routines on a timer.
|
|
14736
|
+
*
|
|
14737
|
+
* Supports interval, one-time (timestamp), and cron schedules.
|
|
14738
|
+
* Implementations may support all or a subset of schedule types.
|
|
14739
|
+
*/
|
|
14740
|
+
|
|
14741
|
+
interface ScheduleHandle {
|
|
14742
|
+
id: string;
|
|
14743
|
+
cancel(): void;
|
|
14744
|
+
}
|
|
14745
|
+
interface ScheduleSpec {
|
|
14746
|
+
/** Cron expression (e.g. '0 9 * * 1-5'). Not all implementations support this. */
|
|
14747
|
+
cron?: string;
|
|
14748
|
+
/** Repeat every N milliseconds. */
|
|
14749
|
+
intervalMs?: number;
|
|
14750
|
+
/** Fire once at this Unix timestamp (ms). */
|
|
14751
|
+
once?: number;
|
|
14752
|
+
/** IANA timezone for cron expressions (e.g. 'America/New_York'). */
|
|
14753
|
+
timezone?: string;
|
|
14754
|
+
}
|
|
14755
|
+
interface IScheduler extends IDisposable {
|
|
14756
|
+
/** Schedule a callback. Returns a handle to cancel it. */
|
|
14757
|
+
schedule(id: string, spec: ScheduleSpec, callback: () => void | Promise<void>): ScheduleHandle;
|
|
14758
|
+
/** Cancel a scheduled callback by ID. */
|
|
14759
|
+
cancel(id: string): void;
|
|
14760
|
+
/** Cancel all scheduled callbacks. */
|
|
14761
|
+
cancelAll(): void;
|
|
14762
|
+
/** Check if a schedule exists by ID. */
|
|
14763
|
+
has(id: string): boolean;
|
|
14764
|
+
}
|
|
14765
|
+
|
|
14766
|
+
/**
|
|
14767
|
+
* SimpleScheduler — built-in scheduler using setInterval / setTimeout.
|
|
14768
|
+
*
|
|
14769
|
+
* Supports `intervalMs` and `once` schedule types.
|
|
14770
|
+
* Throws for `cron` — use a cron-capable implementation instead.
|
|
14771
|
+
*/
|
|
14772
|
+
|
|
14773
|
+
declare class SimpleScheduler implements IScheduler {
|
|
14774
|
+
private timers;
|
|
14775
|
+
private _isDestroyed;
|
|
14776
|
+
schedule(id: string, spec: ScheduleSpec, callback: () => void | Promise<void>): ScheduleHandle;
|
|
14777
|
+
cancel(id: string): void;
|
|
14778
|
+
cancelAll(): void;
|
|
14779
|
+
has(id: string): boolean;
|
|
14780
|
+
destroy(): void;
|
|
14781
|
+
get isDestroyed(): boolean;
|
|
14782
|
+
}
|
|
14783
|
+
|
|
14784
|
+
/**
|
|
14785
|
+
* EventEmitterTrigger — simple typed event emitter for routine triggers.
|
|
14786
|
+
*
|
|
14787
|
+
* Consumers call `emit()` from their webhook/queue/signal handlers
|
|
14788
|
+
* to trigger routine execution.
|
|
14789
|
+
*/
|
|
14790
|
+
|
|
14791
|
+
declare class EventEmitterTrigger implements IDisposable {
|
|
14792
|
+
private listeners;
|
|
14793
|
+
private _isDestroyed;
|
|
14794
|
+
/**
|
|
14795
|
+
* Register a listener for an event. Returns an unsubscribe function.
|
|
14796
|
+
*/
|
|
14797
|
+
on(event: string, callback: (payload: unknown) => void | Promise<void>): () => void;
|
|
14798
|
+
/**
|
|
14799
|
+
* Emit an event to all registered listeners.
|
|
14800
|
+
*/
|
|
14801
|
+
emit(event: string, payload?: unknown): void;
|
|
14802
|
+
destroy(): void;
|
|
14803
|
+
get isDestroyed(): boolean;
|
|
14804
|
+
}
|
|
14805
|
+
|
|
14806
|
+
export { AGENT_DEFINITION_FORMAT_VERSION, AIError, APPROVAL_STATE_VERSION, Agent, type AgentConfig$1 as AgentConfig, AgentContextNextGen, AgentContextNextGenConfig, type AgentDefinitionListOptions, type AgentDefinitionMetadata, type AgentDefinitionSummary, AgentEvents, type AgentMetrics, type AgentPermissionsConfig, AgentResponse, type AgentSessionConfig, type AgentState, type AgentStatus, type ApprovalCacheEntry, type ApprovalDecision, ApproximateTokenEstimator, AudioFormat, AuditEntry, AuthIdentity, type AuthTemplate, type AuthTemplateField, type BackoffConfig, type BackoffStrategyType, BaseMediaProvider, BasePluginNextGen, BaseProvider, type BaseProviderConfig$1 as BaseProviderConfig, type BaseProviderResponse, BaseTextProvider, type BashResult, type BeforeExecuteResult, BraveProvider, CONNECTOR_CONFIG_VERSION, CUSTOM_TOOL_DEFINITION_VERSION, CheckpointManager, type CheckpointStrategy, CircuitBreaker, type CircuitBreakerConfig, type CircuitBreakerEvents, type CircuitBreakerMetrics, CircuitOpenError, type CircuitState, type ClipboardImageResult, CompactionContext, CompactionResult, Connector, ConnectorAccessContext, ConnectorAuth, ConnectorConfig, ConnectorConfigResult, ConnectorConfigStore, ConnectorFetchOptions, type ConnectorToolEntry, ConnectorTools, type ConnectorToolsOptions, ConsoleMetrics, ConsolidationResult, Content, ContextBudget$1 as ContextBudget, ContextEvents, ContextFeatures, type ContextManagerConfig, type ContextOverflowBudget, ContextOverflowError, ContextSessionMetadata, ContextSessionSummary, ContextStorageListOptions, type ControlFlowResult, type ControlFlowSource, type ConversationMessage, type CreateConnectorOptions, type CustomToolDefinition, type CustomToolListOptions, type CustomToolMetaToolsOptions, type CustomToolMetadata, type CustomToolSummary, type CustomToolTestCase, DEFAULT_ALLOWLIST, DEFAULT_BACKOFF_CONFIG, DEFAULT_CHECKPOINT_STRATEGY, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONTEXT_CONFIG, DEFAULT_DESKTOP_CONFIG, DEFAULT_FILESYSTEM_CONFIG, DEFAULT_HISTORY_MANAGER_CONFIG, DEFAULT_PERMISSION_CONFIG, DEFAULT_RATE_LIMITER_CONFIG, DEFAULT_SHELL_CONFIG, DESKTOP_TOOL_NAMES, type DefaultAllowlistedTool, DefaultCompactionStrategy, type DefaultCompactionStrategyConfig, DependencyCycleError, type DesktopGetCursorResult, type DesktopGetScreenSizeResult, type DesktopKeyboardKeyArgs, type DesktopKeyboardKeyResult, type DesktopKeyboardTypeArgs, type DesktopKeyboardTypeResult, type DesktopMouseClickArgs, type DesktopMouseClickResult, type DesktopMouseDragArgs, type DesktopMouseDragResult, type DesktopMouseMoveArgs, type DesktopMouseMoveResult, type DesktopMouseScrollArgs, type DesktopMouseScrollResult, type DesktopPoint, type DesktopScreenSize, type DesktopScreenshot, type DesktopScreenshotArgs, type DesktopScreenshotResult, type DesktopToolConfig, type DesktopToolName, type DesktopWindow, type DesktopWindowFocusArgs, type DesktopWindowFocusResult, type DesktopWindowListResult, type DirectCallOptions, type DocumentFamily, type DocumentFormat, type DocumentImagePiece, type DocumentMetadata, type DocumentPiece, type DocumentReadOptions, DocumentReader, type DocumentReaderConfig, type DocumentResult, type DocumentSource, type DocumentTextPiece, type DocumentToContentOptions, type EditFileResult, type ErrorContext, ErrorHandler, type ErrorHandlerConfig, type ErrorHandlerEvents, EventEmitterTrigger, type EvictionStrategy, type ExecuteRoutineOptions, ExecutionContext, ExecutionMetrics, type ExecutionRecorder, type ExecutionRecorderOptions, type ExtendedFetchOptions, type ExternalDependency, type ExternalDependencyEvents, ExternalDependencyHandler, type FetchedContent, FileAgentDefinitionStorage, type FileAgentDefinitionStorageConfig, FileConnectorStorage, type FileConnectorStorageConfig, FileContextStorage, type FileContextStorageConfig, FileCustomToolStorage, type FileCustomToolStorageConfig, FileMediaStorage as FileMediaOutputHandler, FileMediaStorage, type FileMediaStorageConfig, FilePersistentInstructionsStorage, type FilePersistentInstructionsStorageConfig, FileRoutineDefinitionStorage, type FileRoutineDefinitionStorageConfig, FileStorage, type FileStorageConfig, FileUserInfoStorage, type FileUserInfoStorageConfig, type FilesystemToolConfig, type FormatDetectionResult, FormatDetector, FrameworkLogger, FunctionToolDefinition, type GeneratedPlan, type GenericAPICallArgs, type GenericAPICallResult, type GenericAPIToolOptions, type GitHubCreatePRResult, type GitHubGetPRResult, type GitHubPRCommentEntry, type GitHubPRCommentsResult, type GitHubPRFilesResult, type GitHubReadFileResult, type GitHubRepository, type GitHubSearchCodeResult, type GitHubSearchFilesResult, type GlobResult, type GraphDriveItem, type GrepMatch, type GrepResult, type HTTPTransportConfig, type HistoryManagerEvents, type HistoryMessage, HistoryMode, HookConfig, HookName, type HydrateOptions, type IAgentDefinitionStorage, type IAgentStateStorage, type IAgentStorage, type IAsyncDisposable, IBaseModelDescription, type ICapabilityProvider, ICompactionStrategy, IConnectorAccessPolicy, type IConnectorConfigStorage, IConnectorRegistry, type IContextCompactor, type IContextComponent, IContextPluginNextGen, type IContextSnapshot, IContextStorage, type IContextStrategy, type ICustomToolStorage, type IDesktopDriver, type IDisposable, type IDocumentTransformer, type IFormatHandler, type IHistoryManager, type IHistoryManagerConfig, type IHistoryStorage, IImageProvider, type IMCPClient, type IMediaStorage as IMediaOutputHandler, type IMediaStorage, type IMemoryStorage, type IPersistentInstructionsStorage, type IPlanStorage, type IPluginSnapshot, IProvider, type IResearchSource, type IRoutineDefinitionStorage, type IRoutineExecutionStorage, type ISTTModelDescription, type IScheduler, type IScrapeProvider, type ISearchProvider, type ISpeechToTextProvider, type ITTSModelDescription, ITextProvider, type ITextToSpeechProvider, ITokenEstimator$1 as ITokenEstimator, ITokenStorage, type IToolExecutionPipeline, type IToolExecutionPlugin, type IToolExecutor, type IToolSnapshot, type IUserInfoStorage, type IVideoModelDescription, type IVideoProvider, type IViewContextComponent, type IViewContextData, type IVoiceInfo, type ImageFilterOptions, type InContextEntry, type InContextMemoryConfig, InContextMemoryPluginNextGen, type InContextPriority, InMemoryAgentStateStorage, InMemoryHistoryStorage, InMemoryMetrics, InMemoryPlanStorage, InMemoryStorage, InputItem, type InstructionEntry, InvalidConfigError, InvalidToolArgumentsError, type JSONExtractionResult, LLMResponse, type LogEntry, type LogLevel, type LoggerConfig, LoggingPlugin, type LoggingPluginOptions, MCPClient, type MCPClientConnectionState, type MCPClientState, type MCPConfiguration, MCPConnectionError, MCPError, type MCPPrompt, type MCPPromptResult, MCPProtocolError, MCPRegistry, type MCPResource, type MCPResourceContent, MCPResourceError, type MCPServerCapabilities, type MCPServerConfig, MCPTimeoutError, type MCPTool, MCPToolError, type MCPToolResult, type MCPTransportType, type MediaStorageMetadata as MediaOutputMetadata, type MediaStorageResult as MediaOutputResult, type MediaStorageEntry, type MediaStorageListOptions, type MediaStorageMetadata, type MediaStorageResult, type MeetingSlotSuggestion, MemoryConnectorStorage, MemoryEntry, MemoryEvictionCompactor, MemoryIndex, MemoryPriority, MemoryScope, MemoryStorage, MessageBuilder, MessageRole, type MetricTags, type MetricsCollector, type MetricsCollectorType, type MicrosoftCreateMeetingResult, type MicrosoftDraftEmailResult, type MicrosoftEditMeetingResult, type MicrosoftFindSlotsResult, type MicrosoftGetTranscriptResult, type MicrosoftListFilesResult, type MicrosoftReadFileResult, type MicrosoftSearchFilesResult, type MicrosoftSendEmailResult, ModelCapabilities, ModelNotSupportedError, type MouseButton, type EvictionStrategy$1 as NextGenEvictionStrategy, NoOpMetrics, NutTreeDriver, type OAuthConfig, type OAuthFlow, OAuthManager, OutputItem, ParallelTasksError, type PermissionCheckContext, type PermissionCheckResult, type PermissionManagerEvent, type PermissionScope, type PersistentInstructionsConfig, PersistentInstructionsPluginNextGen, type PieceMetadata, type Plan, type PlanConcurrency, type PlanInput, type PlanStatus, PlanningAgent, type PlanningAgentConfig, type PluginExecutionContext, PreparedContext, ProviderAuthError, ProviderCapabilities, ProviderConfigAgent, ProviderContextLengthError, ProviderError, ProviderErrorMapper, ProviderNotFoundError, ProviderRateLimitError, ROUTINE_KEYS, RapidAPIProvider, RateLimitError, type RateLimiterConfig, type RateLimiterMetrics, type ReadFileResult, type FetchOptions as ResearchFetchOptions, type ResearchFinding, type ResearchPlan, type ResearchProgress, type ResearchQuery, type ResearchResult, type SearchOptions as ResearchSearchOptions, type SearchResponse as ResearchSearchResponse, type RiskLevel, type RoutineDefinition, type RoutineDefinitionInput, type RoutineExecution, type RoutineExecutionRecord, type RoutineExecutionStatus, type RoutineExecutionStep, type RoutineParameter, type RoutineStepType, type RoutineTaskResult, type RoutineTaskSnapshot, SIMPLE_ICONS_CDN, type STTModelCapabilities, type STTOptions, type STTOutputFormat$1 as STTOutputFormat, type STTResponse, STT_MODELS, STT_MODEL_REGISTRY, type ScheduleHandle, type ScheduleSpec, ScopedConnectorRegistry, type ScrapeFeature, type ScrapeOptions, ScrapeProvider, type ScrapeProviderConfig, type ScrapeProviderFallbackConfig, type ScrapeResponse, type ScrapeResult, type SearchOptions$1 as SearchOptions, SearchProvider, type SearchProviderConfig, type SearchResponse$1 as SearchResponse, type SearchResult, type SegmentTimestamp, type SerializedApprovalEntry, type SerializedApprovalState, SerializedContextState, type SerializedHistoryState, type SerializedInContextMemoryState, type SerializedPersistentInstructionsState, type SerializedToolState, type SerializedUserInfoState, type SerializedWorkingMemoryState, SerperProvider, ServiceCategory, type ServiceToolFactory, type ShellToolConfig, type SimpleIcon, SimpleScheduler, type SimpleVideoGenerateOptions, type SourceCapabilities, type SourceResult, SpeechToText, type SpeechToTextConfig, type StdioTransportConfig, type StorageConfig, type StorageContext, StorageRegistry, type StoredAgentDefinition, type StoredAgentType, type StoredConnectorConfig, StoredContextSession, type StoredToken, type StrategyInfo, StrategyRegistry, type StrategyRegistryEntry, StreamEvent, StreamEventType, StreamHelpers, StreamState, type SubRoutineSpec, SummarizeCompactor, TERMINAL_TASK_STATUSES, type TTSModelCapabilities, type TTSOptions, type TTSResponse, TTS_MODELS, TTS_MODEL_REGISTRY, type Task, type AgentConfig as TaskAgentStateConfig, type TaskCondition, type TaskControlFlow, type TaskExecution, type TaskFailure, type TaskFoldFlow, type TaskInput, type TaskMapFlow, type TaskSourceRef, type TaskStatus, TaskStatusForMemory, TaskTimeoutError, ToolContext as TaskToolContext, type TaskUntilFlow, type TaskValidation, TaskValidationError, type TaskValidationResult, TavilyProvider, type TemplateCredentials, TextGenerateOptions, TextToSpeech, type TextToSpeechConfig, TokenBucketRateLimiter, type TokenContentType, Tool, ToolCall, type ToolCatalogPluginConfig, ToolCatalogPluginNextGen, type ToolCategory, ToolCategoryScope, type ToolCondition, ToolContext, ToolExecutionError, ToolExecutionPipeline, type ToolExecutionPipelineOptions, ToolFunction, ToolManager, type ToolManagerConfig, type ToolManagerEvent, type ToolManagerStats, type ToolMetadata, ToolNotFoundError, type ToolOptions, type ToolPermissionConfig, ToolPermissionManager, type ToolRegistration, ToolRegistry, type ToolRegistryEntry, ToolResult, type ToolSelectionContext, type ToolSource, ToolTimeoutError, type TransportConfig, TruncateCompactor, type UserInfoEntry, type UserInfoPluginConfig, UserInfoPluginNextGen, VENDOR_ICON_MAP, VIDEO_MODELS, VIDEO_MODEL_REGISTRY, type ValidationContext, Vendor, type VendorInfo, type VendorLogo, VendorOptionSchema, type VendorRegistryEntry, type VendorTemplate, type VideoExtendOptions, type VideoGenerateOptions, VideoGeneration, type VideoGenerationCreateOptions, type VideoJob, type VideoModelCapabilities, type VideoModelPricing, type VideoResponse, type VideoStatus, type WordTimestamp, WorkingMemory, WorkingMemoryAccess, WorkingMemoryConfig, type WorkingMemoryEvents, type WorkingMemoryPluginConfig, WorkingMemoryPluginNextGen, type WriteFileResult, addJitter, allVendorTemplates, assertNotDestroyed, authenticatedFetch, backoffSequence, backoffWait, bash, buildAuthConfig, buildEndpointWithQuery, buildQueryString, calculateBackoff, calculateSTTCost, calculateTTSCost, calculateVideoCost, canTaskExecute, createAgentStorage, createAuthenticatedFetch, createBashTool, createConnectorFromTemplate, createCreatePRTool, createCustomToolDelete, createCustomToolDraft, createCustomToolList, createCustomToolLoad, createCustomToolMetaTools, createCustomToolSave, createCustomToolTest, createDesktopGetCursorTool, createDesktopGetScreenSizeTool, createDesktopKeyboardKeyTool, createDesktopKeyboardTypeTool, createDesktopMouseClickTool, createDesktopMouseDragTool, createDesktopMouseMoveTool, createDesktopMouseScrollTool, createDesktopScreenshotTool, createDesktopWindowFocusTool, createDesktopWindowListTool, createDraftEmailTool, createEditFileTool, createEditMeetingTool, createEstimator, createExecuteJavaScriptTool, createExecutionRecorder, createFileAgentDefinitionStorage, createFileContextStorage, createFileCustomToolStorage, createFileMediaStorage, createFileRoutineDefinitionStorage, createFindMeetingSlotsTool, createGetMeetingTranscriptTool, createGetPRTool, createGitHubReadFileTool, createGlobTool, createGrepTool, createImageGenerationTool, createImageProvider, createListDirectoryTool, createMeetingTool, createMessageWithImages, createMetricsCollector, createMicrosoftListFilesTool, createMicrosoftReadFileTool, createMicrosoftSearchFilesTool, createPRCommentsTool, createPRFilesTool, createPlan, createProvider, createReadFileTool, createRoutineDefinition, createRoutineExecution, createRoutineExecutionRecord, createSearchCodeTool, createSearchFilesTool, createSendEmailTool, createSpeechToTextTool, createTask, createTaskSnapshots, createTextMessage, createTextToSpeechTool, createVideoProvider, createVideoTools, createWriteFileTool, customToolDelete, customToolDraft, customToolList, customToolLoad, customToolSave, customToolTest, desktopGetCursor, desktopGetScreenSize, desktopKeyboardKey, desktopKeyboardType, desktopMouseClick, desktopMouseDrag, desktopMouseMove, desktopMouseScroll, desktopScreenshot, desktopTools, desktopWindowFocus, desktopWindowList, detectDependencyCycle, developerTools, documentToContent, editFile, encodeSharingUrl, evaluateCondition, executeRoutine, extractJSON, extractJSONField, extractNumber, findConnectorByServiceTypes, formatAttendees, formatFileSize, formatPluginDisplayName, formatRecipients, generateEncryptionKey, generateSimplePlan, generateWebAPITool, getActiveSTTModels, getActiveTTSModels, getActiveVideoModels, getAllBuiltInTools, getAllVendorLogos, getAllVendorTemplates, getBackgroundOutput, getConnectorTools, getCredentialsSetupURL, getDesktopDriver, getDocsURL, getDrivePrefix, getMediaOutputHandler, getMediaStorage, getNextExecutableTasks, getRegisteredScrapeProviders, getRoutineProgress, getSTTModelInfo, getSTTModelsByVendor, getSTTModelsWithFeature, getTTSModelInfo, getTTSModelsByVendor, getTTSModelsWithFeature, getTaskDependencies, getToolByName, getToolCategories, getToolRegistry, getToolsByCategory, getToolsRequiringConnector, getUserPathPrefix, getVendorAuthTemplate, getVendorColor, getVendorDefaultBaseURL, getVendorInfo, getVendorLogo, getVendorLogoCdnUrl, getVendorLogoSvg, getVendorTemplate, getVideoModelInfo, getVideoModelsByVendor, getVideoModelsWithAudio, getVideoModelsWithFeature, glob, globalErrorHandler, grep, hasClipboardImage, hasVendorLogo, hydrateCustomTool, isBlockedCommand, isExcludedExtension, isMicrosoftFileUrl, isTaskBlocked, isTeamsMeetingUrl, isTerminalStatus, isWebUrl, killBackgroundProcess, listConnectorsByServiceTypes, listDirectory, listVendorIds, listVendors, listVendorsByAuthType, listVendorsByCategory, listVendorsWithLogos, logger, mergeTextPieces, metrics, microsoftFetch, normalizeEmails, parseKeyCombo, parseRepository, readClipboardImage, readDocumentAsContent, readFile, registerScrapeProvider, resetDefaultDriver, resolveConnector, resolveDependencies, resolveFileEndpoints, resolveFlowSource, resolveMaxContextTokens, resolveMeetingId, resolveModelCapabilities, resolveRepository, resolveTemplates, retryWithBackoff, sanitizeToolName, setMediaOutputHandler, setMediaStorage, setMetricsCollector, simpleTokenEstimator, toConnectorOptions, toolRegistry, index as tools, updateTaskStatus, validatePath, writeFile };
|