@nuvin/agent-core 0.0.0-rc.11 → 0.0.0-rc.12

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.
@@ -1,4 +1,4 @@
1
- import { C as ChatRequest, O as OpenAiResponsesRequest } from './types-Df0vlfj-.js';
1
+ import { C as ChatRequest, O as OpenAiResponsesRequest } from './types-DQXrm4dp.js';
2
2
 
3
3
  declare function toOpenAiResponsesRequest(request: ChatRequest): OpenAiResponsesRequest;
4
4
 
@@ -1,5 +1,5 @@
1
- import { G as AutoReasoningEffort, v as ReasoningConfig, H as AnthropicThinkingConfig, I as OpenAiReasoningConfig, f as TurnState } from '../types-Df0vlfj-.js';
2
- export { aQ as AgentAssistantChunkEvent, aP as AgentAssistantMessageEvent, bl as AgentDefinition, bk as AgentDefinitionFactoryContext, A as AgentEvent, aB as AgentEventContext, b3 as AgentEventHandler, aY as AgentFinalMessageEvent, b as AgentInput, a$ as AgentLifecycleEvent, aN as AgentModelRequestEvent, aO as AgentModelResponseEvent, a as AgentOptions, a_ as AgentProviderRetryEvent, aU as AgentReasoningChunkEvent, aT as AgentReasoningMessageEvent, c as AgentSendOptions, aV as AgentToolCallEvent, aW as AgentToolResultEvent, aX as AgentToolResultMessageEvent, aS as AgentToolUseChunkEvent, aR as AgentToolUseMessageEvent, aZ as AgentTurnCompleteEvent, aM as AgentUserMessageEvent, ad as AnthropicAdaptiveThinkingConfig, a7 as AnthropicAssistantContentBlock, ae as AnthropicDisabledThinkingConfig, ac as AnthropicEnabledThinkingConfig, a2 as AnthropicRedactedThinkingBlock, a6 as AnthropicRedactedThinkingWireBlock, aq as AnthropicSignatureDeltaChunk, a1 as AnthropicThinkingBlock, ap as AnthropicThinkingDeltaChunk, aa as AnthropicThinkingDisplay, ab as AnthropicThinkingEffort, a5 as AnthropicThinkingWireBlock, bj as AnyExtensionRegistration, b9 as AnyToolDefinition, aE as AskUserAnswers, aC as AskUserOption, aD as AskUserQuestion, aF as AskUserQuestionRequest, ai as AssistantContentBlock, a9 as AutoReasoningConfig, B as BaseChatModelOptions, aA as ChatModel, C as ChatRequest, n as ChatResponse, w as ChatResponseChunk, k as CompileRequestInput, g as ContentBlock, an as ContentDeltaChunk, i as ContentInput, bt as CreateManagedRunInput, au as DoneChunk, E as EngineChatModel, be as ExtensionContext, d as ExtensionRegistry, ak as IdentifiedMessage, _ as ImageBlock, Z as ImageMediaType, b5 as InferJsonSchema, K as JsonObject, J as JsonPrimitive, Y as JsonSchema, W as JsonSchemaArray, V as JsonSchemaBoolean, U as JsonSchemaNumber, X as JsonSchemaObject, Q as JsonSchemaString, N as JsonSchemaType, L as JsonValue, bo as ManagedAgentRun, bp as ManagedAgentRunHandle, bn as ManagedRunError, bq as ManagedRunEvent, br as ManagedRunEventHandler, bm as ManagedRunStatus, M as Message, j as MessageInput, ah as MessageProviderState, aj as MessageRole, x as ModelExecutionOptions, y as ModelInfo, z as ModelLimits, l as ModelRequest, m as ModelResponse, bg as Observer, bi as ObserverExtensionRegistration, bb as ObserverOnlyStage, bx as OpenAiFunctionCall, by as OpenAiFunctionCallOutput, bF as OpenAiFunctionTool, bv as OpenAiInputImage, bw as OpenAiInputMessage, bu as OpenAiInputText, bB as OpenAiOutputMessage, bz as OpenAiOutputTextPart, a4 as OpenAiReasoningBlock, ar as OpenAiReasoningDeltaChunk, af as OpenAiReasoningEffort, bC as OpenAiReasoningOutputItem, ag as OpenAiReasoningSummary, as as OpenAiReasoningSummaryDeltaChunk, a3 as OpenAiReasoningSummaryText, bA as OpenAiRefusalPart, bD as OpenAiResponsesOutputItem, bE as OpenAiResponsesReasoningParam, O as OpenAiResponsesRequest, bd as PayloadByStage, az as PrepareRequestInput, t as PreparedRequest, u as ProviderCredential, D as ProviderCredentialKind, F as ProviderEndpoints, s as ProviderRequestMutator, at as ProviderRetryChunk, P as ProviderSessionResolver, a8 as ReasoningVisibility, r as ResolvedProviderSession, R as RunTurnDeps, bs as RuntimeManagerOptions, bc as Stage, S as SystemInput, h as TextBlock, b8 as ToolDefinition, aG as ToolExecutionContext, b7 as ToolGenerator, ax as ToolOutputEnvelope, b6 as ToolOutputValue, q as ToolResult, p as ToolResultBlock, aw as ToolResultChunk, a0 as ToolResultContent, $ as ToolResultContentBlock, av as ToolResultMeta, b4 as ToolRuntime, aJ as ToolRuntimeCompletedEvent, b0 as ToolRuntimeDispatchDecision, aL as ToolRuntimeEvent, b2 as ToolRuntimeEventHandler, aI as ToolRuntimeOutputChunkEvent, aK as ToolRuntimeRejectedEvent, aH as ToolRuntimeStartedEvent, b1 as ToolRuntimeToolCallHandler, al as ToolSchema, o as ToolUseBlock, ao as ToolUseDeltaChunk, ba as TransformableStage, bf as Transformer, bh as TransformerExtensionRegistration, e as TurnInput, T as TurnResult, ay as TurnResultStatus, am as Usage } from '../types-Df0vlfj-.js';
1
+ import { G as AutoReasoningEffort, v as ReasoningConfig, H as AnthropicThinkingConfig, I as OpenAiReasoningConfig, f as TurnState } from '../types-DQXrm4dp.js';
2
+ export { aQ as AgentAssistantChunkEvent, aP as AgentAssistantMessageEvent, bl as AgentDefinition, bk as AgentDefinitionFactoryContext, A as AgentEvent, aB as AgentEventContext, b3 as AgentEventHandler, aY as AgentFinalMessageEvent, b as AgentInput, a$ as AgentLifecycleEvent, aN as AgentModelRequestEvent, aO as AgentModelResponseEvent, a as AgentOptions, a_ as AgentProviderRetryEvent, aU as AgentReasoningChunkEvent, aT as AgentReasoningMessageEvent, c as AgentSendOptions, aV as AgentToolCallEvent, aW as AgentToolResultEvent, aX as AgentToolResultMessageEvent, aS as AgentToolUseChunkEvent, aR as AgentToolUseMessageEvent, aZ as AgentTurnCompleteEvent, aM as AgentUserMessageEvent, ad as AnthropicAdaptiveThinkingConfig, a7 as AnthropicAssistantContentBlock, ae as AnthropicDisabledThinkingConfig, ac as AnthropicEnabledThinkingConfig, a2 as AnthropicRedactedThinkingBlock, a6 as AnthropicRedactedThinkingWireBlock, aq as AnthropicSignatureDeltaChunk, a1 as AnthropicThinkingBlock, ap as AnthropicThinkingDeltaChunk, aa as AnthropicThinkingDisplay, ab as AnthropicThinkingEffort, a5 as AnthropicThinkingWireBlock, bj as AnyExtensionRegistration, b9 as AnyToolDefinition, aE as AskUserAnswers, aC as AskUserOption, aD as AskUserQuestion, aF as AskUserQuestionRequest, ai as AssistantContentBlock, a9 as AutoReasoningConfig, B as BaseChatModelOptions, aA as ChatModel, C as ChatRequest, n as ChatResponse, w as ChatResponseChunk, k as CompileRequestInput, g as ContentBlock, an as ContentDeltaChunk, i as ContentInput, bt as CreateManagedRunInput, au as DoneChunk, E as EngineChatModel, be as ExtensionContext, d as ExtensionRegistry, ak as IdentifiedMessage, _ as ImageBlock, Z as ImageMediaType, b5 as InferJsonSchema, K as JsonObject, J as JsonPrimitive, Y as JsonSchema, W as JsonSchemaArray, V as JsonSchemaBoolean, U as JsonSchemaNumber, X as JsonSchemaObject, Q as JsonSchemaString, N as JsonSchemaType, L as JsonValue, bo as ManagedAgentRun, bp as ManagedAgentRunHandle, bn as ManagedRunError, bq as ManagedRunEvent, br as ManagedRunEventHandler, bm as ManagedRunStatus, M as Message, j as MessageInput, ah as MessageProviderState, aj as MessageRole, x as ModelExecutionOptions, y as ModelInfo, z as ModelLimits, l as ModelRequest, m as ModelResponse, bg as Observer, bi as ObserverExtensionRegistration, bb as ObserverOnlyStage, bx as OpenAiFunctionCall, by as OpenAiFunctionCallOutput, bF as OpenAiFunctionTool, bv as OpenAiInputImage, bw as OpenAiInputMessage, bu as OpenAiInputText, bB as OpenAiOutputMessage, bz as OpenAiOutputTextPart, a4 as OpenAiReasoningBlock, ar as OpenAiReasoningDeltaChunk, af as OpenAiReasoningEffort, bC as OpenAiReasoningOutputItem, ag as OpenAiReasoningSummary, as as OpenAiReasoningSummaryDeltaChunk, a3 as OpenAiReasoningSummaryText, bA as OpenAiRefusalPart, bD as OpenAiResponsesOutputItem, bE as OpenAiResponsesReasoningParam, O as OpenAiResponsesRequest, bd as PayloadByStage, az as PrepareRequestInput, t as PreparedRequest, u as ProviderCredential, D as ProviderCredentialKind, F as ProviderEndpoints, s as ProviderRequestMutator, at as ProviderRetryChunk, P as ProviderSessionResolver, a8 as ReasoningVisibility, r as ResolvedProviderSession, R as RunTurnDeps, bs as RuntimeManagerOptions, bc as Stage, S as SystemInput, h as TextBlock, b8 as ToolDefinition, aG as ToolExecutionContext, b7 as ToolGenerator, ax as ToolOutputEnvelope, b6 as ToolOutputValue, q as ToolResult, p as ToolResultBlock, aw as ToolResultChunk, a0 as ToolResultContent, $ as ToolResultContentBlock, av as ToolResultMeta, b4 as ToolRuntime, aJ as ToolRuntimeCompletedEvent, b0 as ToolRuntimeDispatchDecision, aL as ToolRuntimeEvent, b2 as ToolRuntimeEventHandler, aI as ToolRuntimeOutputChunkEvent, aK as ToolRuntimeRejectedEvent, aH as ToolRuntimeStartedEvent, b1 as ToolRuntimeToolCallHandler, al as ToolSchema, o as ToolUseBlock, ao as ToolUseDeltaChunk, ba as TransformableStage, bf as Transformer, bh as TransformerExtensionRegistration, e as TurnInput, T as TurnResult, ay as TurnResultStatus, am as Usage } from '../types-DQXrm4dp.js';
3
3
 
4
4
  declare class OperationAbortedError extends Error {
5
5
  readonly code = "ABORT_ERR";
@@ -1 +1 @@
1
- function _0x17b5(){var _0xd5e3b2=['ntiWwe1xsu1d','mJG5ntnOsurPEfa','mJjMuLbtq2y','mJCZndmYDeH3rKnW','mteXnZK1vg5LCKDy','ntzvANfezLm','mJeWnZi2tNrUvNr3','mtCWmJG3sgTYs1P4','ndrYAM5prNq','mty4ndyWvgXPsunp','mJq4mZi4txn5CeP0'];_0x17b5=function(){return _0xd5e3b2;};return _0x17b5();}(function(_0x5e5a50,_0x281532){var _0x24740e={_0x2c4a1d:0x1f6,_0x7667a4:0x1f1,_0x1d1e25:0x1ec,_0xbdcc82:0x43f,_0x2157a4:0x441,_0x36d8c3:0x447,_0x350ba0:0x1ee,_0x2ec419:0x43d,_0x2ea8ca:0x449,_0x53bc4f:0x449,_0x1e3d25:0x1ee,_0x1bbb9f:0x1f3,_0x32ae53:0x43e,_0x4cc170:0x43e,_0x90669:0x436,_0x588f38:0x43b,_0x311f25:0x447,_0x5c568b:0x447,_0x4f36da:0x1ea,_0x2bcb13:0x1f0},_0x73bca2={_0x69a702:0x283};function _0x4db19f(_0x342e60,_0x3fb3ad,_0xeda88f,_0x25ec91){return _0xd360(_0x3fb3ad-_0x73bca2._0x69a702,_0x25ec91);}function _0x4e83c2(_0x217d68,_0x536683,_0x3b871d,_0x3c2a79){return _0xd360(_0x536683-0x32,_0x3c2a79);}var _0xd9baf4=_0x5e5a50();while(!![]){try{var _0x24a9c2=parseInt(_0x4e83c2(_0x24740e._0x2c4a1d,_0x24740e._0x7667a4,_0x24740e._0x1d1e25,0x1ee))/0x1+parseInt(_0x4db19f(_0x24740e._0xbdcc82,_0x24740e._0x2157a4,_0x24740e._0x36d8c3,0x444))/0x2+parseInt(_0x4e83c2(0x1ed,0x1e9,_0x24740e._0x350ba0,0x1ec))/0x3+parseInt(_0x4db19f(_0x24740e._0x2ec419,0x443,_0x24740e._0x2ea8ca,_0x24740e._0x53bc4f))/0x4*(-parseInt(_0x4e83c2(0x1ef,_0x24740e._0x1e3d25,_0x24740e._0x1bbb9f,0x1e9))/0x5)+-parseInt(_0x4db19f(0x43d,_0x24740e._0x32ae53,0x439,_0x24740e._0x4cc170))/0x6*(-parseInt(_0x4db19f(0x445,0x440,0x445,0x443))/0x7)+-parseInt(_0x4db19f(0x438,0x43b,0x437,_0x24740e._0x90669))/0x8*(parseInt(_0x4db19f(_0x24740e._0xbdcc82,0x43c,0x440,_0x24740e._0x588f38))/0x9)+parseInt(_0x4db19f(0x43f,0x444,_0x24740e._0x311f25,_0x24740e._0x5c568b))/0xa*(-parseInt(_0x4e83c2(_0x24740e._0x4f36da,0x1ec,_0x24740e._0x2bcb13,0x1f2))/0xb);if(_0x24a9c2===_0x281532)break;else _0xd9baf4['push'](_0xd9baf4['shift']());}catch(_0x463a6e){_0xd9baf4['push'](_0xd9baf4['shift']());}}}(_0x17b5,0x39310));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';function _0xd360(_0x14163b,_0x9f63c2){_0x14163b=_0x14163b-0x1b7;var _0x17b517=_0x17b5();var _0xd360bd=_0x17b517[_0x14163b];if(_0xd360['FuQCpK']===undefined){var _0x1294f5=function(_0x14dc29){var _0x14cd85='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xe3c03e='',_0x41049c='';for(var _0x3a6930=0x0,_0x381cc1,_0x16a8b7,_0x54ca4a=0x0;_0x16a8b7=_0x14dc29['charAt'](_0x54ca4a++);~_0x16a8b7&&(_0x381cc1=_0x3a6930%0x4?_0x381cc1*0x40+_0x16a8b7:_0x16a8b7,_0x3a6930++%0x4)?_0xe3c03e+=String['fromCharCode'](0xff&_0x381cc1>>(-0x2*_0x3a6930&0x6)):0x0){_0x16a8b7=_0x14cd85['indexOf'](_0x16a8b7);}for(var _0x1a689b=0x0,_0x181264=_0xe3c03e['length'];_0x1a689b<_0x181264;_0x1a689b++){_0x41049c+='%'+('00'+_0xe3c03e['charCodeAt'](_0x1a689b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x41049c);};_0xd360['kmwZxY']=_0x1294f5,_0xd360['AveMvB']={},_0xd360['FuQCpK']=!![];}var _0x338bb7=_0x17b517[0x0],_0x3fcf7a=_0x14163b+_0x338bb7,_0x101ce4=_0xd360['AveMvB'][_0x3fcf7a];return!_0x101ce4?(_0xd360bd=_0xd360['kmwZxY'](_0xd360bd),_0xd360['AveMvB'][_0x3fcf7a]=_0xd360bd):_0xd360bd=_0x101ce4,_0xd360bd;}import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';export{OperationAbortedError,TurnFailedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
1
+ function _0x514a(){var _0x3f919e=['mJr1reTgEvG','mJmXmtqWmJHSuwfKv2e','mtbgtvfUvKu','mZnvBfjtzfu','odi1mZy4zxHcq21V','mJi3ntm2Avjcze5k','mtu3ntqWoe9JEevODq','mJfet3z4Afy','ody1odq2m3PJAhztta','ody2ELPQEwDo','ovPZsgnqEq','mtG5nZy0mhnNB1HbCW'];_0x514a=function(){return _0x3f919e;};return _0x514a();}(function(_0x5aa0fe,_0x3acc73){var _0x2212b3={_0x34521a:0x1f6,_0x2d7d27:0x1f5,_0x1a4508:0x1fc,_0x3ab2d9:0x1fa,_0x4852db:0x1fc,_0x57c91f:0x171,_0x5e4839:0x16b,_0x23748d:0x169,_0x4d966a:0x168,_0x4356f0:0x1fd,_0x555736:0x1f7,_0x3f300d:0x1f8,_0x2fd5b3:0x1f6,_0x10d9c6:0x1f9,_0x85d7da:0x173,_0x55bd30:0x172,_0x411a18:0x16e,_0x1a4a67:0x1f4,_0x2bd2b8:0x1f1,_0x519a9a:0x1f7,_0x4fef68:0x201},_0x11c478={_0x3a1549:0x3b6};function _0xef01fc(_0x460315,_0x572033,_0x43b868,_0x460f49){return _0x5510(_0x460315- -0x50,_0x572033);}function _0x5a18b0(_0x482d48,_0x2108ac,_0x41374b,_0x2f4225){return _0x5510(_0x2108ac- -_0x11c478._0x3a1549,_0x41374b);}var _0x3c6178=_0x5aa0fe();while(!![]){try{var _0x398486=-parseInt(_0x5a18b0(-_0x2212b3._0x34521a,-0x1f4,-0x1f5,-_0x2212b3._0x2d7d27))/0x1*(-parseInt(_0x5a18b0(-_0x2212b3._0x1a4508,-0x1fd,-_0x2212b3._0x3ab2d9,-_0x2212b3._0x4852db))/0x2)+parseInt(_0x5a18b0(-0x1fc,-0x1fa,-0x200,-0x200))/0x3*(-parseInt(_0xef01fc(0x16e,0x168,_0x2212b3._0x57c91f,0x169))/0x4)+-parseInt(_0xef01fc(_0x2212b3._0x5e4839,_0x2212b3._0x23748d,_0x2212b3._0x4d966a,0x171))/0x5*(parseInt(_0x5a18b0(-_0x2212b3._0x4356f0,-_0x2212b3._0x555736,-_0x2212b3._0x555736,-0x1f2))/0x6)+parseInt(_0x5a18b0(-_0x2212b3._0x3f300d,-_0x2212b3._0x2fd5b3,-0x1f2,-0x1f6))/0x7*(parseInt(_0x5a18b0(-0x1fd,-_0x2212b3._0x10d9c6,-0x1fd,-0x1f9))/0x8)+-parseInt(_0xef01fc(_0x2212b3._0x85d7da,_0x2212b3._0x55bd30,0x170,_0x2212b3._0x411a18))/0x9*(-parseInt(_0x5a18b0(-_0x2212b3._0x1a4a67,-0x1f2,-_0x2212b3._0x2bd2b8,-0x1ec))/0xa)+-parseInt(_0x5a18b0(-_0x2212b3._0x519a9a,-_0x2212b3._0x2d7d27,-0x1f3,-0x1f5))/0xb+parseInt(_0x5a18b0(-_0x2212b3._0x10d9c6,-0x1fc,-0x1fe,-_0x2212b3._0x4fef68))/0xc;if(_0x398486===_0x3acc73)break;else _0x3c6178['push'](_0x3c6178['shift']());}catch(_0x4d62d7){_0x3c6178['push'](_0x3c6178['shift']());}}}(_0x514a,0x798b5));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';function _0x5510(_0x1dff29,_0x65d107){_0x1dff29=_0x1dff29-0x1b9;var _0x514a26=_0x514a();var _0x55104b=_0x514a26[_0x1dff29];if(_0x5510['hDUvyb']===undefined){var _0xda4dfc=function(_0x5f03a5){var _0x3cdbcd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2a299b='',_0x302fa3='';for(var _0x11b9b9=0x0,_0x168acd,_0x3e8276,_0x38c680=0x0;_0x3e8276=_0x5f03a5['charAt'](_0x38c680++);~_0x3e8276&&(_0x168acd=_0x11b9b9%0x4?_0x168acd*0x40+_0x3e8276:_0x3e8276,_0x11b9b9++%0x4)?_0x2a299b+=String['fromCharCode'](0xff&_0x168acd>>(-0x2*_0x11b9b9&0x6)):0x0){_0x3e8276=_0x3cdbcd['indexOf'](_0x3e8276);}for(var _0x9ff112=0x0,_0x41804d=_0x2a299b['length'];_0x9ff112<_0x41804d;_0x9ff112++){_0x302fa3+='%'+('00'+_0x2a299b['charCodeAt'](_0x9ff112)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x302fa3);};_0x5510['twdsqB']=_0xda4dfc,_0x5510['jttRjQ']={},_0x5510['hDUvyb']=!![];}var _0x2db3cf=_0x514a26[0x0],_0x31868f=_0x1dff29+_0x2db3cf,_0x556413=_0x5510['jttRjQ'][_0x31868f];return!_0x556413?(_0x55104b=_0x5510['twdsqB'](_0x55104b),_0x5510['jttRjQ'][_0x31868f]=_0x55104b):_0x55104b=_0x556413,_0x55104b;}import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';export{OperationAbortedError,TurnFailedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
@@ -1,5 +1,5 @@
1
1
  import { Diagnostic, Location, Hover, DocumentSymbol, SymbolInformation, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-types';
2
- import { b8 as ToolDefinition, ax as ToolOutputEnvelope, b9 as AnyToolDefinition, b2 as ToolRuntimeEventHandler, b1 as ToolRuntimeToolCallHandler, b4 as ToolRuntime, K as JsonObject, X as JsonSchemaObject, Y as JsonSchema, bk as AgentDefinitionFactoryContext, a as AgentOptions, q as ToolResult, b6 as ToolOutputValue, aw as ToolResultChunk, a0 as ToolResultContent, b5 as InferJsonSchema, aG as ToolExecutionContext, al as ToolSchema, L as JsonValue } from '../types-Df0vlfj-.js';
2
+ import { b8 as ToolDefinition, ax as ToolOutputEnvelope, b9 as AnyToolDefinition, b2 as ToolRuntimeEventHandler, b1 as ToolRuntimeToolCallHandler, b4 as ToolRuntime, K as JsonObject, X as JsonSchemaObject, Y as JsonSchema, bk as AgentDefinitionFactoryContext, a as AgentOptions, q as ToolResult, b6 as ToolOutputValue, aw as ToolResultChunk, a0 as ToolResultContent, b5 as InferJsonSchema, aG as ToolExecutionContext, al as ToolSchema, L as JsonValue } from '../types-DQXrm4dp.js';
3
3
  import { CommandDefinitionReference, SerializedCommandDefinition, MCPAuthConfig, MCPServerConfig } from '@nuvin/config';
4
4
  import { OAuthClientProvider } from '@modelcontextprotocol/sdk/client/auth.js';
5
5
  import { CallToolResult, ListToolsResult } from '@modelcontextprotocol/sdk/types.js';
@@ -715,9 +715,21 @@ declare function createWebFetchTool(options?: WebFetchToolOptions): ToolDefiniti
715
715
  required: readonly ["url"];
716
716
  }>;
717
717
 
718
- interface WebSearchToolOptions {
718
+ interface GoogleCseEngineOptions {
719
719
  googleCseKey: string;
720
720
  googleCseCx: string;
721
+ }
722
+ interface OllamaEngineOptions {
723
+ apiKey: string;
724
+ }
725
+ interface TavilyEngineOptions {
726
+ tavilyApiKey: string;
727
+ searchDepth?: "basic" | "advanced";
728
+ topic?: "general" | "news" | "finance";
729
+ }
730
+ type WebSearchEngine = GoogleCseEngineOptions | OllamaEngineOptions | TavilyEngineOptions;
731
+ interface WebSearchToolOptions {
732
+ engines: WebSearchEngine[];
721
733
  name?: string;
722
734
  }
723
735
  declare function createWebSearchTool(options: WebSearchToolOptions): ToolDefinition<{
@@ -780,4 +792,4 @@ declare function resolveAllowedPath(rootDir: string, allowedDirs: readonly strin
780
792
  declare function assertWorkspaceFile(filePath: string): Promise<void>;
781
793
  declare function isProbablyBinary(buffer: Buffer): boolean;
782
794
 
783
- export { type BashToolInput, type BashToolOptions, type CommandReference, type CommandToolOptions, type CreateDelegationToolsOptions, type DelegatedAgentDefinition, type DelegatedAgentFactoryContext, type FileEditToolOptions, type FileNewToolOptions, type FileReadToolOptions, type GlobToolOptions, type GrepToolOptions, type LoadedCommand, type LoadedSkill, type LsToolOptions, type LspService, type LspServiceConfig, type LspToolOptions, type McpConnectionOptions, type McpConnector, type McpOAuthProviderOptions, type McpServerConnectionStatus, type McpToolBundle, type McpToolClient, type McpToolDescriptor, type RipgrepMatch, type SkillReference, type SkillSource, type SkillToolOptions, ToolExecutionError, type ToolOutputOffloadOptions, ToolRegistry, type ViewFileToolOptions, type WebFetchToolOptions, type WebSearchToolOptions, assertWorkspaceFile, buildMcpHttpHeaders, connectMcpServer, createAskUserTool, createAssignTaskTool, createBashTool, createDelegateToAgentTool, createDelegationTools, createFileEditTool, createFileNewTool, createFileReadTool, createGlobTool, createGrepTool, createInternalToolRuntime, createInvokeCommandTool, createLoadSkillTool, createLsTool, createLspService, createLspTool, createMcpOAuthProvider, createMcpTool, createMcpToolName, createMcpToolsFromServers, createMockToolRuntime, createShellExecTool, createTodoWriteTool, createToolOutput, createViewFileTool, createWebFetchTool, createWebSearchTool, defineTool, deriveFinalToolOutput, filepath, files, isProbablyBinary, normalizeToolOutputValue, resolveAllowedPath, resolveWorkspacePath, search, toNuvinToolSchema, truncateToolOutput, validateToolInput };
795
+ export { type BashToolInput, type BashToolOptions, type CommandReference, type CommandToolOptions, type CreateDelegationToolsOptions, type DelegatedAgentDefinition, type DelegatedAgentFactoryContext, type FileEditToolOptions, type FileNewToolOptions, type FileReadToolOptions, type GlobToolOptions, type GoogleCseEngineOptions, type GrepToolOptions, type LoadedCommand, type LoadedSkill, type LsToolOptions, type LspService, type LspServiceConfig, type LspToolOptions, type McpConnectionOptions, type McpConnector, type McpOAuthProviderOptions, type McpServerConnectionStatus, type McpToolBundle, type McpToolClient, type McpToolDescriptor, type OllamaEngineOptions, type RipgrepMatch, type SkillReference, type SkillSource, type SkillToolOptions, type TavilyEngineOptions, ToolExecutionError, type ToolOutputOffloadOptions, ToolRegistry, type ViewFileToolOptions, type WebFetchToolOptions, type WebSearchEngine, type WebSearchToolOptions, assertWorkspaceFile, buildMcpHttpHeaders, connectMcpServer, createAskUserTool, createAssignTaskTool, createBashTool, createDelegateToAgentTool, createDelegationTools, createFileEditTool, createFileNewTool, createFileReadTool, createGlobTool, createGrepTool, createInternalToolRuntime, createInvokeCommandTool, createLoadSkillTool, createLsTool, createLspService, createLspTool, createMcpOAuthProvider, createMcpTool, createMcpToolName, createMcpToolsFromServers, createMockToolRuntime, createShellExecTool, createTodoWriteTool, createToolOutput, createViewFileTool, createWebFetchTool, createWebSearchTool, defineTool, deriveFinalToolOutput, filepath, files, isProbablyBinary, normalizeToolOutputValue, resolveAllowedPath, resolveWorkspacePath, search, toNuvinToolSchema, truncateToolOutput, validateToolInput };