@nuvin/agent-core 0.0.0-rc.16 → 0.0.0-rc.18

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-CSXSwpwn.js';
1
+ import { C as ChatRequest, O as OpenAiResponsesRequest } from './types-11Znykt2.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-CSXSwpwn.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-CSXSwpwn.js';
1
+ import { I as AutoReasoningEffort, x as ReasoningConfig, K as AnthropicThinkingConfig, L as OpenAiReasoningConfig, h as TurnState } from '../types-11Znykt2.js';
2
+ export { aS as AgentAssistantChunkEvent, aR as AgentAssistantMessageEvent, bm as AgentDefinition, bl as AgentDefinitionFactoryContext, A as AgentEvent, aD as AgentEventContext, b5 as AgentEventHandler, a_ as AgentFinalMessageEvent, b as AgentInput, b1 as AgentLifecycleEvent, aP as AgentModelRequestEvent, aQ as AgentModelResponseEvent, a as AgentOptions, b0 as AgentProviderRetryEvent, aW as AgentReasoningChunkEvent, aV as AgentReasoningMessageEvent, c as AgentSendOptions, aX as AgentToolCallEvent, aY as AgentToolResultEvent, aZ as AgentToolResultMessageEvent, aU as AgentToolUseChunkEvent, aT as AgentToolUseMessageEvent, a$ as AgentTurnCompleteEvent, aO as AgentUserMessageEvent, af as AnthropicAdaptiveThinkingConfig, a9 as AnthropicAssistantContentBlock, ag as AnthropicDisabledThinkingConfig, ae as AnthropicEnabledThinkingConfig, a4 as AnthropicRedactedThinkingBlock, a8 as AnthropicRedactedThinkingWireBlock, as as AnthropicSignatureDeltaChunk, a3 as AnthropicThinkingBlock, ar as AnthropicThinkingDeltaChunk, ac as AnthropicThinkingDisplay, ad as AnthropicThinkingEffort, a7 as AnthropicThinkingWireBlock, bk as AnyExtensionRegistration, bb as AnyToolDefinition, aG as AskUserAnswers, aE as AskUserOption, aF as AskUserQuestion, aH as AskUserQuestionRequest, ak as AssistantContentBlock, ab as AutoReasoningConfig, B as BaseChatModelOptions, aC as ChatModel, C as ChatRequest, p as ChatResponse, y as ChatResponseChunk, m as CompileRequestInput, i as ContentBlock, ap as ContentDeltaChunk, k as ContentInput, bu as CreateManagedRunInput, aw as DoneChunk, E as EngineChatModel, bg as ExtensionContext, e as ExtensionRegistry, am as IdentifiedMessage, a0 as ImageBlock, $ as ImageMediaType, b7 as InferJsonSchema, Q as JsonObject, N as JsonPrimitive, _ as JsonSchema, Z as JsonSchemaArray, Y as JsonSchemaBoolean, X as JsonSchemaNumber, J as JsonSchemaObject, W as JsonSchemaString, V as JsonSchemaType, U as JsonValue, bp as ManagedAgentRun, bq as ManagedAgentRunHandle, bo as ManagedRunError, br as ManagedRunEvent, bs as ManagedRunEventHandler, bn as ManagedRunStatus, M as Message, l as MessageInput, aj as MessageProviderState, al as MessageRole, z as ModelExecutionOptions, D as ModelInfo, F as ModelLimits, n as ModelRequest, o as ModelResponse, bi as Observer, bj as ObserverExtensionRegistration, bd as ObserverOnlyStage, by as OpenAiFunctionCall, bz as OpenAiFunctionCallOutput, bG as OpenAiFunctionTool, bw as OpenAiInputImage, bx as OpenAiInputMessage, bv as OpenAiInputText, bC as OpenAiOutputMessage, bA as OpenAiOutputTextPart, a6 as OpenAiReasoningBlock, at as OpenAiReasoningDeltaChunk, ah as OpenAiReasoningEffort, bD as OpenAiReasoningOutputItem, ai as OpenAiReasoningSummary, au as OpenAiReasoningSummaryDeltaChunk, a5 as OpenAiReasoningSummaryText, bB as OpenAiRefusalPart, bE as OpenAiResponsesOutputItem, bF as OpenAiResponsesReasoningParam, O as OpenAiResponsesRequest, ao as OutputFormat, bf as PayloadByStage, aB as PrepareRequestInput, v as PreparedRequest, w as ProviderCredential, G as ProviderCredentialKind, H as ProviderEndpoints, u as ProviderRequestMutator, av as ProviderRetryChunk, P as ProviderSessionResolver, aa as ReasoningVisibility, t as ResolvedProviderSession, R as RunTurnDeps, bt as RuntimeManagerOptions, be as Stage, S as SystemInput, j as TextBlock, ba as ToolDefinition, aI as ToolExecutionContext, b9 as ToolGenerator, az as ToolOutputEnvelope, b8 as ToolOutputValue, s as ToolResult, r as ToolResultBlock, ay as ToolResultChunk, a2 as ToolResultContent, a1 as ToolResultContentBlock, ax as ToolResultMeta, b6 as ToolRuntime, aL as ToolRuntimeCompletedEvent, b2 as ToolRuntimeDispatchDecision, aN as ToolRuntimeEvent, b4 as ToolRuntimeEventHandler, aK as ToolRuntimeOutputChunkEvent, aM as ToolRuntimeRejectedEvent, aJ as ToolRuntimeStartedEvent, b3 as ToolRuntimeToolCallHandler, T as ToolSchema, q as ToolUseBlock, aq as ToolUseDeltaChunk, bc as TransformableStage, bh as Transformer, f as TransformerExtensionRegistration, g as TurnInput, d as TurnResult, aA as TurnResultStatus, an as Usage } from '../types-11Znykt2.js';
3
3
 
4
4
  declare class OperationAbortedError extends Error {
5
5
  readonly code = "ABORT_ERR";
@@ -1 +1 @@
1
- (function(_0xfd444b,_0x3881c3){var _0x5db0b4={_0x5db366:0x76,_0x5834ec:0x79,_0x529a6d:0x73,_0x5af8a8:0x77,_0x57f8fe:0x7d,_0x439479:0x7d,_0x533588:0x79,_0x258d32:0x2d5,_0x1aaa6c:0x80,_0x2b9954:0x2d9,_0x3cff1a:0x2d7,_0x22d5bb:0x2d2,_0xf2df70:0x7b,_0x59f545:0x2db,_0x3f10d9:0x2dc,_0x47e40f:0x7a,_0x16a186:0x77,_0x609dd9:0x71,_0x2d7a4e:0x2d0,_0x1a3e23:0x2d2};function _0x581c43(_0x362067,_0x22bfed,_0x12e998,_0x2009ab){return _0x1491(_0x22bfed- -0x59,_0x12e998);}function _0x28e77c(_0x160637,_0x402b83,_0x6a418e,_0x2de90c){return _0x1491(_0x6a418e- -0x3aa,_0x402b83);}var _0x1fa116=_0xfd444b();while(!![]){try{var _0x421e82=parseInt(_0x581c43(_0x5db0b4._0x5db366,_0x5db0b4._0x5834ec,_0x5db0b4._0x529a6d,_0x5db0b4._0x5af8a8))/0x1*(-parseInt(_0x581c43(_0x5db0b4._0x57f8fe,_0x5db0b4._0x439479,0x7e,_0x5db0b4._0x533588))/0x2)+parseInt(_0x28e77c(-0x2d9,-_0x5db0b4._0x258d32,-0x2d3,-0x2d7))/0x3*(parseInt(_0x581c43(_0x5db0b4._0x1aaa6c,0x7c,0x77,_0x5db0b4._0x1aaa6c))/0x4)+parseInt(_0x28e77c(-_0x5db0b4._0x2b9954,-0x2d6,-_0x5db0b4._0x3cff1a,-_0x5db0b4._0x22d5bb))/0x5*(-parseInt(_0x581c43(0x75,0x78,_0x5db0b4._0xf2df70,0x7a))/0x6)+parseInt(_0x28e77c(-_0x5db0b4._0x59f545,-_0x5db0b4._0x3f10d9,-0x2db,-0x2e0))/0x7*(parseInt(_0x581c43(0x80,0x80,0x81,0x7a))/0x8)+parseInt(_0x581c43(_0x5db0b4._0x47e40f,_0x5db0b4._0x16a186,0x78,_0x5db0b4._0x609dd9))/0x9+-parseInt(_0x581c43(0x77,0x7b,0x81,0x7f))/0xa*(parseInt(_0x28e77c(-0x2d3,-0x2d6,-_0x5db0b4._0x2d7a4e,-0x2d0))/0xb)+parseInt(_0x28e77c(-0x2d4,-_0x5db0b4._0x2d7a4e,-_0x5db0b4._0x22d5bb,-_0x5db0b4._0x1a3e23))/0xc;if(_0x421e82===_0x3881c3)break;else _0x1fa116['push'](_0x1fa116['shift']());}catch(_0x490bdc){_0x1fa116['push'](_0x1fa116['shift']());}}}(_0x4b02,0x78740));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';function _0x4b02(){var _0x125bd3=['mtG2ndG5mgfcBLPPzq','nde1mdjby1f2sKS','ntvItwT2B1m','nxDnAeDtta','nJyXmZbjv3jIDui','ngLpq1vYwa','mJaYwfvLr0Hi','mti2mdK1n0fgu0H0yq','nta2mZC5nLvLqNnHAW','ntzru25tu0m','mtuYowPHDhbUrG','mZC1ntqZuM9Htevd'];_0x4b02=function(){return _0x125bd3;};return _0x4b02();}function _0x1491(_0x331f11,_0x4ebb0d){_0x331f11=_0x331f11-0xcf;var _0x4b0278=_0x4b02();var _0x1491ea=_0x4b0278[_0x331f11];if(_0x1491['MYhvLk']===undefined){var _0x2e51be=function(_0x11d135){var _0x5c2b87='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x29b05f='',_0x2f6b8a='';for(var _0x43ff75=0x0,_0x2f5aaf,_0x41d597,_0x39b360=0x0;_0x41d597=_0x11d135['charAt'](_0x39b360++);~_0x41d597&&(_0x2f5aaf=_0x43ff75%0x4?_0x2f5aaf*0x40+_0x41d597:_0x41d597,_0x43ff75++%0x4)?_0x29b05f+=String['fromCharCode'](0xff&_0x2f5aaf>>(-0x2*_0x43ff75&0x6)):0x0){_0x41d597=_0x5c2b87['indexOf'](_0x41d597);}for(var _0x345f57=0x0,_0x380974=_0x29b05f['length'];_0x345f57<_0x380974;_0x345f57++){_0x2f6b8a+='%'+('00'+_0x29b05f['charCodeAt'](_0x345f57)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f6b8a);};_0x1491['PeZjAq']=_0x2e51be,_0x1491['RrRQvy']={},_0x1491['MYhvLk']=!![];}var _0x80cba0=_0x4b0278[0x0],_0x322bff=_0x331f11+_0x80cba0,_0x163635=_0x1491['RrRQvy'][_0x322bff];return!_0x163635?(_0x1491ea=_0x1491['PeZjAq'](_0x1491ea),_0x1491['RrRQvy'][_0x322bff]=_0x1491ea):_0x1491ea=_0x163635,_0x1491ea;}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(_0x406257,_0x36ced4){var _0x2e2623={_0x16e8a3:0x2bc,_0x205251:0x2b7,_0x283aa9:0x2bb,_0x1e00cf:0x2ba,_0x32ea1d:0x2b7,_0x3fdbba:0x2b5,_0x2f50bf:0x273,_0x5e1067:0x272,_0x211940:0x26e,_0x15f02a:0x269,_0x1d0d95:0x265,_0x1749c5:0x2b7,_0x5f5973:0x2b0,_0x29d12e:0x2ba,_0x1d6114:0x2bd,_0x247580:0x26d,_0x17906c:0x26b,_0x3264a7:0x26a,_0x3ad192:0x2b9,_0x1cf2e8:0x2bd,_0x40bde6:0x2bd},_0x129b36={_0x5132bc:0x1e3};function _0x18e744(_0x1a4fbe,_0x396f43,_0xbc7067,_0x532cc8){return _0xad3f(_0x1a4fbe- -0x345,_0x532cc8);}function _0x583c53(_0x4ff0e8,_0x51b729,_0x5d65e9,_0x30935e){return _0xad3f(_0x5d65e9-_0x129b36._0x5132bc,_0x51b729);}var _0x3600fb=_0x406257();while(!![]){try{var _0x3216b3=-parseInt(_0x18e744(-_0x2e2623._0x16e8a3,-_0x2e2623._0x205251,-_0x2e2623._0x283aa9,-_0x2e2623._0x1e00cf))/0x1+parseInt(_0x18e744(-_0x2e2623._0x32ea1d,-_0x2e2623._0x3fdbba,-_0x2e2623._0x3fdbba,-0x2b3))/0x2*(-parseInt(_0x583c53(0x26f,_0x2e2623._0x2f50bf,0x26d,_0x2e2623._0x5e1067))/0x3)+-parseInt(_0x583c53(0x270,0x26b,0x270,_0x2e2623._0x211940))/0x4+parseInt(_0x583c53(0x268,0x267,_0x2e2623._0x15f02a,_0x2e2623._0x1d0d95))/0x5*(-parseInt(_0x18e744(-0x2b5,-_0x2e2623._0x1749c5,-_0x2e2623._0x3fdbba,-_0x2e2623._0x5f5973))/0x6)+parseInt(_0x18e744(-_0x2e2623._0x29d12e,-0x2b9,-_0x2e2623._0x1d6114,-_0x2e2623._0x3fdbba))/0x7*(parseInt(_0x583c53(_0x2e2623._0x247580,0x277,_0x2e2623._0x5e1067,0x275))/0x8)+-parseInt(_0x583c53(0x266,_0x2e2623._0x17906c,_0x2e2623._0x3264a7,0x26c))/0x9*(-parseInt(_0x18e744(-_0x2e2623._0x3ad192,-0x2be,-0x2b6,-_0x2e2623._0x1cf2e8))/0xa)+parseInt(_0x18e744(-_0x2e2623._0x1d6114,-0x2bc,-0x2b7,-_0x2e2623._0x40bde6))/0xb;if(_0x3216b3===_0x36ced4)break;else _0x3600fb['push'](_0x3600fb['shift']());}catch(_0x1401f9){_0x3600fb['push'](_0x3600fb['shift']());}}}(_0x1006,0xb62a9));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';function _0x1006(){var _0x5bc2cd=['m3DvyMTlAG','n0flugzPqG','mZaZmhnWzKzHAa','mZm4mtC4nenhDvfQvG','nte4mdyWA1zvAuDL','mte1otq4mtzczLjotNm','nLzPEhPYBW','nZmWnZu3mhfVt29Lvq','ndiZownHz2LWCq','mZmZmda4nZjPvhnjr00','mtmWnZi3ng9Yr3HJAa'];_0x1006=function(){return _0x5bc2cd;};return _0x1006();}function _0xad3f(_0x493e87,_0x2df4aa){_0x493e87=_0x493e87-0x86;var _0x1006fe=_0x1006();var _0xad3fe=_0x1006fe[_0x493e87];if(_0xad3f['dOYYEI']===undefined){var _0x511c5e=function(_0x2e4059){var _0x4bca54='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4478b5='',_0x5ebda1='';for(var _0x27699a=0x0,_0x14ad36,_0xfe4c7,_0x5dfeba=0x0;_0xfe4c7=_0x2e4059['charAt'](_0x5dfeba++);~_0xfe4c7&&(_0x14ad36=_0x27699a%0x4?_0x14ad36*0x40+_0xfe4c7:_0xfe4c7,_0x27699a++%0x4)?_0x4478b5+=String['fromCharCode'](0xff&_0x14ad36>>(-0x2*_0x27699a&0x6)):0x0){_0xfe4c7=_0x4bca54['indexOf'](_0xfe4c7);}for(var _0x343f85=0x0,_0x391447=_0x4478b5['length'];_0x343f85<_0x391447;_0x343f85++){_0x5ebda1+='%'+('00'+_0x4478b5['charCodeAt'](_0x343f85)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5ebda1);};_0xad3f['DoMTFe']=_0x511c5e,_0xad3f['YNNdpl']={},_0xad3f['dOYYEI']=!![];}var _0x5f4d23=_0x1006fe[0x0],_0x44a4ed=_0x493e87+_0x5f4d23,_0x2f01c8=_0xad3f['YNNdpl'][_0x44a4ed];return!_0x2f01c8?(_0xad3fe=_0xad3f['DoMTFe'](_0xad3fe),_0xad3f['YNNdpl'][_0x44a4ed]=_0xad3fe):_0xad3fe=_0x2f01c8,_0xad3fe;}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-CSXSwpwn.js';
2
+ import { ba as ToolDefinition, az as ToolOutputEnvelope, bb as AnyToolDefinition, b4 as ToolRuntimeEventHandler, b3 as ToolRuntimeToolCallHandler, b6 as ToolRuntime, Q as JsonObject, J as JsonSchemaObject, _ as JsonSchema, bl as AgentDefinitionFactoryContext, a as AgentOptions, s as ToolResult, b8 as ToolOutputValue, ay as ToolResultChunk, a2 as ToolResultContent, b7 as InferJsonSchema, aI as ToolExecutionContext, T as ToolSchema, U as JsonValue } from '../types-11Znykt2.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';
@@ -495,6 +495,7 @@ type DelegatedAgentDefinition = AgentOptions | ((ctx: DelegatedAgentFactoryConte
495
495
  interface CreateDelegationToolsOptions {
496
496
  agents?: Record<string, DelegatedAgentDefinition>;
497
497
  }
498
+ declare function resolveDelegatedAgentOptions(definition: DelegatedAgentDefinition, ctx: DelegatedAgentFactoryContext): Promise<AgentOptions>;
498
499
  declare function createAssignTaskTool(options: CreateDelegationToolsOptions): ToolDefinition<{
499
500
  description: string;
500
501
  task: string;
@@ -675,6 +676,18 @@ declare class ToolRegistry {
675
676
  declare function validateToolInput<TSchema extends JsonSchemaObject>(input: JsonValue, schema: TSchema): InferJsonSchema<TSchema>;
676
677
  declare function deriveFinalToolOutput(chunks: ToolResultChunk[]): ToolResultChunk;
677
678
 
679
+ declare function createUpdateTopicTool(): ToolDefinition<{
680
+ topic: string;
681
+ }, ToolOutputEnvelope, undefined, {
682
+ readonly type: "object";
683
+ readonly properties: {
684
+ readonly topic: {
685
+ readonly type: "string";
686
+ };
687
+ };
688
+ readonly required: readonly ["topic"];
689
+ }>;
690
+
678
691
  interface ViewFileToolOptions {
679
692
  allowedDirs?: readonly string[];
680
693
  defaultCwd?: string;
@@ -794,4 +807,4 @@ declare function resolveAllowedPath(rootDir: string, allowedDirs: readonly strin
794
807
  declare function assertWorkspaceFile(filePath: string): Promise<void>;
795
808
  declare function isProbablyBinary(buffer: Buffer): boolean;
796
809
 
797
- 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 };
810
+ 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, createUpdateTopicTool, createViewFileTool, createWebFetchTool, createWebSearchTool, defineTool, deriveFinalToolOutput, filepath, files, isProbablyBinary, normalizeToolOutputValue, resolveAllowedPath, resolveDelegatedAgentOptions, resolveWorkspacePath, search, toNuvinToolSchema, truncateToolOutput, validateToolInput };