@everworker/oneringai 0.4.4 → 0.4.6
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 +25 -12
- package/dist/{ImageModel-OWbA277F.d.ts → ImageModel-1uP-2vk7.d.ts} +8 -2
- package/dist/{ImageModel-Ds5_6sf7.d.cts → ImageModel-BDI37OED.d.cts} +8 -2
- package/dist/capabilities/agents/index.d.cts +1 -1
- package/dist/capabilities/agents/index.d.ts +1 -1
- package/dist/capabilities/images/index.cjs +149 -7
- package/dist/capabilities/images/index.cjs.map +1 -1
- package/dist/capabilities/images/index.d.cts +1 -1
- package/dist/capabilities/images/index.d.ts +1 -1
- package/dist/capabilities/images/index.js +149 -7
- package/dist/capabilities/images/index.js.map +1 -1
- package/dist/{index-DmYrHH7d.d.cts → index-DJ-qAK15.d.cts} +25 -5
- package/dist/{index-Dyl6pHfq.d.ts → index-oBtp-8Qn.d.ts} +25 -5
- package/dist/index.cjs +1348 -199
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -13
- package/dist/index.d.ts +47 -13
- package/dist/index.js +1348 -199
- package/dist/index.js.map +1 -1
- package/dist/shared/index.cjs +785 -133
- package/dist/shared/index.cjs.map +1 -1
- package/dist/shared/index.d.cts +20 -2
- package/dist/shared/index.d.ts +20 -2
- package/dist/shared/index.js +785 -133
- package/dist/shared/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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 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-
|
|
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-
|
|
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-DJ-qAK15.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-DJ-qAK15.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';
|
|
8
|
-
import { A as AudioFormat, I as IBaseModelDescription, V as VendorOptionSchema, a as IImageProvider } from './ImageModel-
|
|
9
|
-
export { b as AspectRatio, c as IImageModelDescription, d as IMAGE_MODELS, e as IMAGE_MODEL_REGISTRY, f as ISourceLinks, g as ImageEditOptions, h as ImageGenerateOptions, i as ImageGeneration, j as ImageGenerationCreateOptions, k as ImageModelCapabilities, l as ImageModelPricing, m as ImageResponse, n as ImageVariationOptions, O as OutputFormat, Q as QualityLevel, S as SimpleGenerateOptions, o as calculateImageCost, p as getActiveImageModels, q as getImageModelInfo, r as getImageModelsByVendor, s as getImageModelsWithFeature } from './ImageModel-
|
|
8
|
+
import { A as AudioFormat, I as IBaseModelDescription, V as VendorOptionSchema, a as IImageProvider } from './ImageModel-BDI37OED.cjs';
|
|
9
|
+
export { b as AspectRatio, c as IImageModelDescription, d as IMAGE_MODELS, e as IMAGE_MODEL_REGISTRY, f as ISourceLinks, g as ImageEditOptions, h as ImageGenerateOptions, i as ImageGeneration, j as ImageGenerationCreateOptions, k as ImageModelCapabilities, l as ImageModelPricing, m as ImageResponse, n as ImageVariationOptions, O as OutputFormat, Q as QualityLevel, S as SimpleGenerateOptions, o as calculateImageCost, p as getActiveImageModels, q as getImageModelInfo, r as getImageModelsByVendor, s as getImageModelsWithFeature } from './ImageModel-BDI37OED.cjs';
|
|
10
10
|
import { ServiceCategory } from './shared/index.cjs';
|
|
11
11
|
export { ILLMDescription, LLM_MODELS, MODEL_REGISTRY, SERVICE_DEFINITIONS, SERVICE_INFO, SERVICE_URL_PATTERNS, ServiceDefinition, ServiceInfo, ServiceType, Services, calculateCost, detectServiceFromURL, getActiveModels, getAllServiceIds, getModelInfo, getModelsByVendor, getServiceDefinition, getServiceInfo, getServicesByCategory, isKnownService } from './shared/index.cjs';
|
|
12
12
|
|
|
@@ -5062,30 +5062,45 @@ declare class UserInfoPluginNextGen implements IContextPluginNextGen {
|
|
|
5062
5062
|
* Categories come from ToolCatalogRegistry (static global) and ConnectorTools
|
|
5063
5063
|
* (runtime discovery). The plugin manages loaded/unloaded state via ToolManager.
|
|
5064
5064
|
*
|
|
5065
|
+
* Scoping:
|
|
5066
|
+
* - Built-in categories are scoped by `categoryScope` (toolCategories config)
|
|
5067
|
+
* - Connector categories are scoped by `identities` (not by categoryScope)
|
|
5068
|
+
* - Plugin tools (memory_*, context_*, etc.) are always available and separate
|
|
5069
|
+
*
|
|
5065
5070
|
* @example
|
|
5066
5071
|
* ```typescript
|
|
5067
5072
|
* const ctx = AgentContextNextGen.create({
|
|
5068
5073
|
* model: 'gpt-4',
|
|
5069
5074
|
* features: { toolCatalog: true },
|
|
5070
|
-
* toolCategories: ['filesystem', 'web'], //
|
|
5075
|
+
* toolCategories: ['filesystem', 'web'], // built-in scope only
|
|
5076
|
+
* identities: [{ connector: 'github' }], // connector scope
|
|
5077
|
+
* plugins: {
|
|
5078
|
+
* toolCatalog: {
|
|
5079
|
+
* pinned: ['filesystem'], // always loaded, can't unload
|
|
5080
|
+
* },
|
|
5081
|
+
* },
|
|
5071
5082
|
* });
|
|
5072
5083
|
* ```
|
|
5073
5084
|
*/
|
|
5074
5085
|
|
|
5075
5086
|
interface ToolCatalogPluginConfig {
|
|
5076
|
-
/** Scope filter for which categories are visible */
|
|
5087
|
+
/** Scope filter for which built-in categories are visible (does NOT affect connector categories) */
|
|
5077
5088
|
categoryScope?: ToolCategoryScope;
|
|
5078
|
-
/** Categories to pre-load on initialization */
|
|
5089
|
+
/** Categories to pre-load on initialization (can be unloaded by LLM) */
|
|
5079
5090
|
autoLoadCategories?: string[];
|
|
5080
|
-
/**
|
|
5091
|
+
/** Categories that are always loaded and cannot be unloaded by the LLM */
|
|
5092
|
+
pinned?: string[];
|
|
5093
|
+
/** Maximum loaded categories at once, excluding pinned (default: 10) */
|
|
5081
5094
|
maxLoadedCategories?: number;
|
|
5082
|
-
/** Auth identities for connector filtering */
|
|
5095
|
+
/** Auth identities for connector category filtering */
|
|
5083
5096
|
identities?: AuthIdentity[];
|
|
5084
5097
|
}
|
|
5085
5098
|
declare class ToolCatalogPluginNextGen extends BasePluginNextGen {
|
|
5086
5099
|
readonly name = "tool_catalog";
|
|
5087
5100
|
/** category name → array of tool names that were loaded */
|
|
5088
5101
|
private _loadedCategories;
|
|
5102
|
+
/** Categories that cannot be unloaded */
|
|
5103
|
+
private _pinnedCategories;
|
|
5089
5104
|
/** Reference to the ToolManager for registering/disabling tools */
|
|
5090
5105
|
private _toolManager;
|
|
5091
5106
|
/** Cached connector categories — discovered once in setToolManager() */
|
|
@@ -5111,6 +5126,8 @@ declare class ToolCatalogPluginNextGen extends BasePluginNextGen {
|
|
|
5111
5126
|
setToolManager(tm: ToolManager): void;
|
|
5112
5127
|
/** Get list of currently loaded category names */
|
|
5113
5128
|
get loadedCategories(): string[];
|
|
5129
|
+
/** Get set of pinned category names */
|
|
5130
|
+
get pinnedCategories(): ReadonlySet<string>;
|
|
5114
5131
|
private executeSearch;
|
|
5115
5132
|
executeLoad(category: string): Record<string, unknown>;
|
|
5116
5133
|
private executeUnload;
|
|
@@ -5119,6 +5136,14 @@ declare class ToolCatalogPluginNextGen extends BasePluginNextGen {
|
|
|
5119
5136
|
* Get connector categories from cache (populated once in setToolManager).
|
|
5120
5137
|
*/
|
|
5121
5138
|
private getConnectorCategories;
|
|
5139
|
+
/**
|
|
5140
|
+
* Build status markers for a category (e.g., " [PINNED]", " [LOADED]", " [PINNED] [LOADED]")
|
|
5141
|
+
*/
|
|
5142
|
+
private getCategoryMarkers;
|
|
5143
|
+
/**
|
|
5144
|
+
* Build dynamic instructions that include the list of available categories.
|
|
5145
|
+
*/
|
|
5146
|
+
private buildInstructions;
|
|
5122
5147
|
private keywordSearch;
|
|
5123
5148
|
private searchConnectorCategory;
|
|
5124
5149
|
private getCategoriesSortedByLastUsed;
|
|
@@ -6101,8 +6126,12 @@ interface TTSModelCapabilities {
|
|
|
6101
6126
|
* TTS model pricing
|
|
6102
6127
|
*/
|
|
6103
6128
|
interface TTSModelPricing {
|
|
6104
|
-
/** Cost per 1,000 characters */
|
|
6105
|
-
per1kCharacters
|
|
6129
|
+
/** Cost per 1,000 characters (OpenAI) */
|
|
6130
|
+
per1kCharacters?: number;
|
|
6131
|
+
/** Cost per 1M input tokens (Google) */
|
|
6132
|
+
perMInputTokens?: number;
|
|
6133
|
+
/** Cost per 1M output tokens (Google) */
|
|
6134
|
+
perMOutputTokens?: number;
|
|
6106
6135
|
currency: 'USD';
|
|
6107
6136
|
}
|
|
6108
6137
|
/**
|
|
@@ -6142,8 +6171,13 @@ declare const getActiveTTSModels: () => ITTSModelDescription[];
|
|
|
6142
6171
|
declare function getTTSModelsWithFeature(feature: keyof ITTSModelDescription['capabilities']['features']): ITTSModelDescription[];
|
|
6143
6172
|
/**
|
|
6144
6173
|
* Calculate estimated cost for TTS
|
|
6174
|
+
* For OpenAI models: based on character count
|
|
6175
|
+
* For Google models: based on input/output token count
|
|
6145
6176
|
*/
|
|
6146
|
-
declare function calculateTTSCost(modelName: string, characterCount: number
|
|
6177
|
+
declare function calculateTTSCost(modelName: string, characterCount: number, options?: {
|
|
6178
|
+
inputTokens?: number;
|
|
6179
|
+
outputTokens?: number;
|
|
6180
|
+
}): number | null;
|
|
6147
6181
|
|
|
6148
6182
|
/**
|
|
6149
6183
|
* Configuration for TextToSpeech capability
|
|
@@ -14077,7 +14111,7 @@ declare const desktopTools: (ToolFunction<DesktopScreenshotArgs, DesktopScreensh
|
|
|
14077
14111
|
* AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
|
|
14078
14112
|
*
|
|
14079
14113
|
* Generated by: scripts/generate-tool-registry.ts
|
|
14080
|
-
* Generated at: 2026-
|
|
14114
|
+
* Generated at: 2026-03-04T17:26:21.729Z
|
|
14081
14115
|
*
|
|
14082
14116
|
* To regenerate: npm run generate:tools
|
|
14083
14117
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { I as IConnectorRegistry, a as IConnectorAccessPolicy, C as ConnectorAccessContext, b as Connector, c as ConnectorConfig, d as ITokenStorage, e as IProvider, f as ConnectorFetchOptions, P as ProviderCapabilities, S as StoredToken$1, g as ConnectorAuth, h as ConnectorConfigResult } from './IProvider-CxDUGl6n.js';
|
|
2
2
|
export { A as APIKeyConnectorAuth, D as DEFAULT_BASE_DELAY_MS, i as DEFAULT_CONNECTOR_TIMEOUT, j as DEFAULT_MAX_DELAY_MS, k as DEFAULT_MAX_RETRIES, l as DEFAULT_RETRYABLE_STATUSES, J as JWTConnectorAuth, O as OAuthConnectorAuth } from './IProvider-CxDUGl6n.js';
|
|
3
|
-
import { C as ContextFeatures, M as MemoryEntry, a as MemoryScope, I as IContextStorage, T as Tool, b as ToolFunction, c as ToolContext, d as ToolPermissionConfig$1, e as ContextBudget$1, f as ToolCall, g as IContextPluginNextGen, W as WorkingMemoryConfig, P as PriorityCalculator, h as MemoryPriority, i as MemoryTier, j as ContextEvents, A as AgentContextNextGenConfig, k as AuthIdentity, l as ICompactionStrategy, B as BeforeCompactionCallback, m as InputItem, n as Content, o as PreparedContext, O as OutputItem, p as ToolResult, q as ConsolidationResult, S as SerializedContextState, r as StoredContextSession, s as ITextProvider, t as ContextSessionMetadata, F as FunctionToolDefinition, L as LLMResponse, u as StreamEvent, H as HookConfig, v as HistoryMode, w as AgentEvents, x as AgentResponse, E as ExecutionContext, y as ExecutionMetrics, z as AuditEntry, D as HookName, G as ITokenEstimator$1, J as ToolCategoryScope, K as CompactionContext, N as CompactionResult, Q as 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-
|
|
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-
|
|
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-oBtp-8Qn.js';
|
|
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-oBtp-8Qn.js';
|
|
5
5
|
import { EventEmitter } from 'eventemitter3';
|
|
6
6
|
import { V as Vendor } from './Vendor-DYh_bzwo.js';
|
|
7
7
|
export { a as VENDORS, i as isVendor } from './Vendor-DYh_bzwo.js';
|
|
8
|
-
import { A as AudioFormat, I as IBaseModelDescription, V as VendorOptionSchema, a as IImageProvider } from './ImageModel-
|
|
9
|
-
export { b as AspectRatio, c as IImageModelDescription, d as IMAGE_MODELS, e as IMAGE_MODEL_REGISTRY, f as ISourceLinks, g as ImageEditOptions, h as ImageGenerateOptions, i as ImageGeneration, j as ImageGenerationCreateOptions, k as ImageModelCapabilities, l as ImageModelPricing, m as ImageResponse, n as ImageVariationOptions, O as OutputFormat, Q as QualityLevel, S as SimpleGenerateOptions, o as calculateImageCost, p as getActiveImageModels, q as getImageModelInfo, r as getImageModelsByVendor, s as getImageModelsWithFeature } from './ImageModel-
|
|
8
|
+
import { A as AudioFormat, I as IBaseModelDescription, V as VendorOptionSchema, a as IImageProvider } from './ImageModel-1uP-2vk7.js';
|
|
9
|
+
export { b as AspectRatio, c as IImageModelDescription, d as IMAGE_MODELS, e as IMAGE_MODEL_REGISTRY, f as ISourceLinks, g as ImageEditOptions, h as ImageGenerateOptions, i as ImageGeneration, j as ImageGenerationCreateOptions, k as ImageModelCapabilities, l as ImageModelPricing, m as ImageResponse, n as ImageVariationOptions, O as OutputFormat, Q as QualityLevel, S as SimpleGenerateOptions, o as calculateImageCost, p as getActiveImageModels, q as getImageModelInfo, r as getImageModelsByVendor, s as getImageModelsWithFeature } from './ImageModel-1uP-2vk7.js';
|
|
10
10
|
import { ServiceCategory } from './shared/index.js';
|
|
11
11
|
export { ILLMDescription, LLM_MODELS, MODEL_REGISTRY, SERVICE_DEFINITIONS, SERVICE_INFO, SERVICE_URL_PATTERNS, ServiceDefinition, ServiceInfo, ServiceType, Services, calculateCost, detectServiceFromURL, getActiveModels, getAllServiceIds, getModelInfo, getModelsByVendor, getServiceDefinition, getServiceInfo, getServicesByCategory, isKnownService } from './shared/index.js';
|
|
12
12
|
|
|
@@ -5062,30 +5062,45 @@ declare class UserInfoPluginNextGen implements IContextPluginNextGen {
|
|
|
5062
5062
|
* Categories come from ToolCatalogRegistry (static global) and ConnectorTools
|
|
5063
5063
|
* (runtime discovery). The plugin manages loaded/unloaded state via ToolManager.
|
|
5064
5064
|
*
|
|
5065
|
+
* Scoping:
|
|
5066
|
+
* - Built-in categories are scoped by `categoryScope` (toolCategories config)
|
|
5067
|
+
* - Connector categories are scoped by `identities` (not by categoryScope)
|
|
5068
|
+
* - Plugin tools (memory_*, context_*, etc.) are always available and separate
|
|
5069
|
+
*
|
|
5065
5070
|
* @example
|
|
5066
5071
|
* ```typescript
|
|
5067
5072
|
* const ctx = AgentContextNextGen.create({
|
|
5068
5073
|
* model: 'gpt-4',
|
|
5069
5074
|
* features: { toolCatalog: true },
|
|
5070
|
-
* toolCategories: ['filesystem', 'web'], //
|
|
5075
|
+
* toolCategories: ['filesystem', 'web'], // built-in scope only
|
|
5076
|
+
* identities: [{ connector: 'github' }], // connector scope
|
|
5077
|
+
* plugins: {
|
|
5078
|
+
* toolCatalog: {
|
|
5079
|
+
* pinned: ['filesystem'], // always loaded, can't unload
|
|
5080
|
+
* },
|
|
5081
|
+
* },
|
|
5071
5082
|
* });
|
|
5072
5083
|
* ```
|
|
5073
5084
|
*/
|
|
5074
5085
|
|
|
5075
5086
|
interface ToolCatalogPluginConfig {
|
|
5076
|
-
/** Scope filter for which categories are visible */
|
|
5087
|
+
/** Scope filter for which built-in categories are visible (does NOT affect connector categories) */
|
|
5077
5088
|
categoryScope?: ToolCategoryScope;
|
|
5078
|
-
/** Categories to pre-load on initialization */
|
|
5089
|
+
/** Categories to pre-load on initialization (can be unloaded by LLM) */
|
|
5079
5090
|
autoLoadCategories?: string[];
|
|
5080
|
-
/**
|
|
5091
|
+
/** Categories that are always loaded and cannot be unloaded by the LLM */
|
|
5092
|
+
pinned?: string[];
|
|
5093
|
+
/** Maximum loaded categories at once, excluding pinned (default: 10) */
|
|
5081
5094
|
maxLoadedCategories?: number;
|
|
5082
|
-
/** Auth identities for connector filtering */
|
|
5095
|
+
/** Auth identities for connector category filtering */
|
|
5083
5096
|
identities?: AuthIdentity[];
|
|
5084
5097
|
}
|
|
5085
5098
|
declare class ToolCatalogPluginNextGen extends BasePluginNextGen {
|
|
5086
5099
|
readonly name = "tool_catalog";
|
|
5087
5100
|
/** category name → array of tool names that were loaded */
|
|
5088
5101
|
private _loadedCategories;
|
|
5102
|
+
/** Categories that cannot be unloaded */
|
|
5103
|
+
private _pinnedCategories;
|
|
5089
5104
|
/** Reference to the ToolManager for registering/disabling tools */
|
|
5090
5105
|
private _toolManager;
|
|
5091
5106
|
/** Cached connector categories — discovered once in setToolManager() */
|
|
@@ -5111,6 +5126,8 @@ declare class ToolCatalogPluginNextGen extends BasePluginNextGen {
|
|
|
5111
5126
|
setToolManager(tm: ToolManager): void;
|
|
5112
5127
|
/** Get list of currently loaded category names */
|
|
5113
5128
|
get loadedCategories(): string[];
|
|
5129
|
+
/** Get set of pinned category names */
|
|
5130
|
+
get pinnedCategories(): ReadonlySet<string>;
|
|
5114
5131
|
private executeSearch;
|
|
5115
5132
|
executeLoad(category: string): Record<string, unknown>;
|
|
5116
5133
|
private executeUnload;
|
|
@@ -5119,6 +5136,14 @@ declare class ToolCatalogPluginNextGen extends BasePluginNextGen {
|
|
|
5119
5136
|
* Get connector categories from cache (populated once in setToolManager).
|
|
5120
5137
|
*/
|
|
5121
5138
|
private getConnectorCategories;
|
|
5139
|
+
/**
|
|
5140
|
+
* Build status markers for a category (e.g., " [PINNED]", " [LOADED]", " [PINNED] [LOADED]")
|
|
5141
|
+
*/
|
|
5142
|
+
private getCategoryMarkers;
|
|
5143
|
+
/**
|
|
5144
|
+
* Build dynamic instructions that include the list of available categories.
|
|
5145
|
+
*/
|
|
5146
|
+
private buildInstructions;
|
|
5122
5147
|
private keywordSearch;
|
|
5123
5148
|
private searchConnectorCategory;
|
|
5124
5149
|
private getCategoriesSortedByLastUsed;
|
|
@@ -6101,8 +6126,12 @@ interface TTSModelCapabilities {
|
|
|
6101
6126
|
* TTS model pricing
|
|
6102
6127
|
*/
|
|
6103
6128
|
interface TTSModelPricing {
|
|
6104
|
-
/** Cost per 1,000 characters */
|
|
6105
|
-
per1kCharacters
|
|
6129
|
+
/** Cost per 1,000 characters (OpenAI) */
|
|
6130
|
+
per1kCharacters?: number;
|
|
6131
|
+
/** Cost per 1M input tokens (Google) */
|
|
6132
|
+
perMInputTokens?: number;
|
|
6133
|
+
/** Cost per 1M output tokens (Google) */
|
|
6134
|
+
perMOutputTokens?: number;
|
|
6106
6135
|
currency: 'USD';
|
|
6107
6136
|
}
|
|
6108
6137
|
/**
|
|
@@ -6142,8 +6171,13 @@ declare const getActiveTTSModels: () => ITTSModelDescription[];
|
|
|
6142
6171
|
declare function getTTSModelsWithFeature(feature: keyof ITTSModelDescription['capabilities']['features']): ITTSModelDescription[];
|
|
6143
6172
|
/**
|
|
6144
6173
|
* Calculate estimated cost for TTS
|
|
6174
|
+
* For OpenAI models: based on character count
|
|
6175
|
+
* For Google models: based on input/output token count
|
|
6145
6176
|
*/
|
|
6146
|
-
declare function calculateTTSCost(modelName: string, characterCount: number
|
|
6177
|
+
declare function calculateTTSCost(modelName: string, characterCount: number, options?: {
|
|
6178
|
+
inputTokens?: number;
|
|
6179
|
+
outputTokens?: number;
|
|
6180
|
+
}): number | null;
|
|
6147
6181
|
|
|
6148
6182
|
/**
|
|
6149
6183
|
* Configuration for TextToSpeech capability
|
|
@@ -14077,7 +14111,7 @@ declare const desktopTools: (ToolFunction<DesktopScreenshotArgs, DesktopScreensh
|
|
|
14077
14111
|
* AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
|
|
14078
14112
|
*
|
|
14079
14113
|
* Generated by: scripts/generate-tool-registry.ts
|
|
14080
|
-
* Generated at: 2026-
|
|
14114
|
+
* Generated at: 2026-03-04T17:26:21.729Z
|
|
14081
14115
|
*
|
|
14082
14116
|
* To regenerate: npm run generate:tools
|
|
14083
14117
|
*/
|