@nuvin/agent-core 0.0.0-rc.10 → 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 } 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, f as TurnState, 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";
@@ -14,4 +14,9 @@ declare function mapAutoReasoningEffortToBudgetTokens(effort: AutoReasoningEffor
14
14
  declare function resolveAnthropicThinkingConfig(reasoning: ReasoningConfig | undefined): AnthropicThinkingConfig | undefined;
15
15
  declare function resolveOpenAiReasoningConfig(reasoning: ReasoningConfig | undefined): OpenAiReasoningConfig | undefined;
16
16
 
17
- export { AnthropicThinkingConfig, AutoReasoningEffort, OpenAiReasoningConfig, OperationAbortedError, ReasoningConfig, addAbortListener, isAbortError, mapAutoReasoningEffortToBudgetTokens, resolveAnthropicThinkingConfig, resolveOpenAiReasoningConfig, throwIfAborted, toAbortError };
17
+ declare class TurnFailedError extends Error {
18
+ readonly state: TurnState;
19
+ constructor(cause: unknown, state: TurnState);
20
+ }
21
+
22
+ export { AnthropicThinkingConfig, AutoReasoningEffort, OpenAiReasoningConfig, OperationAbortedError, ReasoningConfig, TurnFailedError, TurnState, addAbortListener, isAbortError, mapAutoReasoningEffortToBudgetTokens, resolveAnthropicThinkingConfig, resolveOpenAiReasoningConfig, throwIfAborted, toAbortError };
@@ -1 +1 @@
1
- (function(_0x2083f0,_0x12e3e5){var _0x1eb86d={_0xd4021e:0x6,_0x27bb98:0xda,_0x30aa28:0xd7,_0x10e261:0x5,_0x1d3bca:0x3,_0x34288e:0x3,_0x13c123:0xdf,_0x422370:0xdc,_0x44115e:0xdd,_0x4d95ae:0x4,_0x564eb2:0x1,_0x2e28b5:0xdb,_0x2ed302:0xd9,_0x564e15:0xd8,_0x94efde:0xd6,_0x46c4a3:0xe3,_0x35c6d1:0xe4,_0x5bfec4:0xe0,_0x5f21d2:0xe6},_0x18a69c={_0x18b339:0x16c},_0x48ec82=_0x2083f0();function _0x36cec1(_0x1a9aee,_0x89c1d9,_0xb23e85,_0x4641ee){return _0x4cc7(_0x89c1d9- -0x248,_0x4641ee);}function _0x55a672(_0x306065,_0x250c3f,_0x5b9010,_0x51bcb5){return _0x4cc7(_0x51bcb5- -_0x18a69c._0x18b339,_0x5b9010);}while(!![]){try{var _0x395ef5=-parseInt(_0x55a672(0x3,0x0,0xb,_0x1eb86d._0xd4021e))/0x1*(-parseInt(_0x36cec1(-_0x1eb86d._0x27bb98,-_0x1eb86d._0x30aa28,-0xdd,-0xd8))/0x2)+parseInt(_0x55a672(_0x1eb86d._0x10e261,-0x6,-_0x1eb86d._0x1d3bca,0x0))/0x3*(-parseInt(_0x55a672(-_0x1eb86d._0x34288e,0x7,0x7,0x2))/0x4)+parseInt(_0x36cec1(-0xe2,-_0x1eb86d._0x13c123,-0xde,-0xe5))/0x5*(-parseInt(_0x36cec1(-0xdd,-0xe1,-0xe3,-0xde))/0x6)+-parseInt(_0x36cec1(-_0x1eb86d._0x422370,-0xdd,-_0x1eb86d._0x44115e,-_0x1eb86d._0x13c123))/0x7+-parseInt(_0x55a672(0x0,-_0x1eb86d._0x4d95ae,0x2,_0x1eb86d._0x564eb2))/0x8*(parseInt(_0x36cec1(-_0x1eb86d._0x2e28b5,-_0x1eb86d._0x2ed302,-0xdb,-0xd4))/0x9)+parseInt(_0x36cec1(-0xdc,-_0x1eb86d._0x564e15,-0xd4,-_0x1eb86d._0x94efde))/0xa+parseInt(_0x36cec1(-_0x1eb86d._0x564e15,-0xde,-_0x1eb86d._0x46c4a3,-_0x1eb86d._0x13c123))/0xb*(parseInt(_0x36cec1(-_0x1eb86d._0x35c6d1,-_0x1eb86d._0x5bfec4,-0xe2,-_0x1eb86d._0x5f21d2))/0xc);if(_0x395ef5===_0x12e3e5)break;else _0x48ec82['push'](_0x48ec82['shift']());}catch(_0x50cce3){_0x48ec82['push'](_0x48ec82['shift']());}}}(_0x4a79,0xdffb1));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';function _0x4cc7(_0x5314ac,_0x345209){_0x5314ac=_0x5314ac-0x167;var _0x4a793a=_0x4a79();var _0x4cc78c=_0x4a793a[_0x5314ac];if(_0x4cc7['ilPWGW']===undefined){var _0x47ff64=function(_0x3b2409){var _0x380954='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x569e49='',_0x593e52='';for(var _0x21262e=0x0,_0x252a5f,_0x1e9692,_0x6ab5c9=0x0;_0x1e9692=_0x3b2409['charAt'](_0x6ab5c9++);~_0x1e9692&&(_0x252a5f=_0x21262e%0x4?_0x252a5f*0x40+_0x1e9692:_0x1e9692,_0x21262e++%0x4)?_0x569e49+=String['fromCharCode'](0xff&_0x252a5f>>(-0x2*_0x21262e&0x6)):0x0){_0x1e9692=_0x380954['indexOf'](_0x1e9692);}for(var _0x31beac=0x0,_0x42d9bf=_0x569e49['length'];_0x31beac<_0x42d9bf;_0x31beac++){_0x593e52+='%'+('00'+_0x569e49['charCodeAt'](_0x31beac)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x593e52);};_0x4cc7['CaRvNz']=_0x47ff64,_0x4cc7['ZaoFgB']={},_0x4cc7['ilPWGW']=!![];}var _0x51bf57=_0x4a793a[0x0],_0x55ee7a=_0x5314ac+_0x51bf57,_0x22ea93=_0x4cc7['ZaoFgB'][_0x55ee7a];return!_0x22ea93?(_0x4cc78c=_0x4cc7['CaRvNz'](_0x4cc78c),_0x4cc7['ZaoFgB'][_0x55ee7a]=_0x4cc78c):_0x4cc78c=_0x22ea93,_0x4cc78c;}function _0x4a79(){var _0xecb19=['ndj4BNz2AuS','mti2mJG0ntzeCevICvi','mtu5ody0senpC0fs','ourQz1nfBa','nZKXmZuWt0fXr1ze','mZe5odm1ohfnvuvrAa','mwnYthjXBG','mZbTtxHvz3q','mJe4mdrXshDhCwO','nda0otyWBwPxz2Tn','mtq3nZnzEuHhEg0','ndyWnJu1m0jWC0Lfuq'];_0x4a79=function(){return _0xecb19;};return _0x4a79();}import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';export{OperationAbortedError,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 };