@nuvin/agent-core 0.0.0-rc.5 → 0.0.0-rc.7

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 { j as ChatRequest, O as OpenAiResponsesRequest } from './types-QPBW5jHO.js';
1
+ import { C as ChatRequest, O as OpenAiResponsesRequest } from './types-Dpf5wjPw.js';
2
2
 
3
3
  declare function toOpenAiResponsesRequest(request: ChatRequest): OpenAiResponsesRequest;
4
4
 
@@ -1,5 +1,5 @@
1
- import { D as AutoReasoningEffort, u as ReasoningConfig, F as AnthropicThinkingConfig, G as OpenAiReasoningConfig } from '../types-QPBW5jHO.js';
2
- export { aJ as AgentAssistantChunkEvent, aI as AgentAssistantMessageEvent, bd as AgentDefinition, bc as AgentDefinitionFactoryContext, aU as AgentEvent, ay as AgentEventContext, aY as AgentEventHandler, aR as AgentFinalMessageEvent, a as AgentInput, aT as AgentLifecycleEvent, aG as AgentModelRequestEvent, aH as AgentModelResponseEvent, A as AgentOptions, aN as AgentReasoningChunkEvent, aM as AgentReasoningMessageEvent, b as AgentSendOptions, aO as AgentToolCallEvent, aP as AgentToolResultEvent, aQ as AgentToolResultMessageEvent, aL as AgentToolUseChunkEvent, aK as AgentToolUseMessageEvent, aS as AgentTurnCompleteEvent, aF as AgentUserMessageEvent, ab as AnthropicAdaptiveThinkingConfig, a5 as AnthropicAssistantContentBlock, ac as AnthropicDisabledThinkingConfig, aa as AnthropicEnabledThinkingConfig, a0 as AnthropicRedactedThinkingBlock, a4 as AnthropicRedactedThinkingWireBlock, ao as AnthropicSignatureDeltaChunk, $ as AnthropicThinkingBlock, an as AnthropicThinkingDeltaChunk, a8 as AnthropicThinkingDisplay, a9 as AnthropicThinkingEffort, a3 as AnthropicThinkingWireBlock, bb as AnyExtensionRegistration, b2 as AnyToolDefinition, ag as AssistantContentBlock, a7 as AutoReasoningConfig, B as BaseChatModelOptions, ax as ChatModel, j as ChatRequest, l as ChatResponse, v as ChatResponseChunk, h as CompileRequestInput, f as ContentBlock, al as ContentDeltaChunk, C as ContentInput, bl as CreateManagedRunInput, t as EngineChatModel, b5 as ExtensionContext, ba as ExtensionRegistration, E as ExtensionRegistry, ai as IdentifiedMessage, Y as ImageBlock, X as ImageMediaType, a_ as InferJsonSchema, H as JsonObject, J as JsonPrimitive, W as JsonSchema, U as JsonSchemaArray, Q as JsonSchemaBoolean, N as JsonSchemaNumber, V as JsonSchemaObject, L as JsonSchemaString, K as JsonSchemaType, I as JsonValue, bg as ManagedAgentRun, bh as ManagedAgentRunHandle, bf as ManagedRunError, bi as ManagedRunEvent, bj as ManagedRunEventHandler, be as ManagedRunStatus, M as Message, g as MessageInput, af as MessageProviderState, ah as MessageRole, w as ModelExecutionOptions, x as ModelInfo, ar as ModelLimits, i as ModelRequest, k as ModelResponse, b7 as Observer, b9 as ObserverExtensionRegistration, bp as OpenAiFunctionCall, bq as OpenAiFunctionCallOutput, bx as OpenAiFunctionTool, bn as OpenAiInputImage, bo as OpenAiInputMessage, bm as OpenAiInputText, bt as OpenAiOutputMessage, br as OpenAiOutputTextPart, a2 as OpenAiReasoningBlock, ap as OpenAiReasoningDeltaChunk, ad as OpenAiReasoningEffort, bu as OpenAiReasoningOutputItem, ae as OpenAiReasoningSummary, aq as OpenAiReasoningSummaryDeltaChunk, a1 as OpenAiReasoningSummaryText, bs as OpenAiRefusalPart, bv as OpenAiResponsesOutputItem, bw as OpenAiResponsesReasoningParam, O as OpenAiResponsesRequest, b4 as PayloadByStage, aw as PrepareRequestInput, r as PreparedRequest, s as ProviderCredential, y as ProviderCredentialKind, z as ProviderEndpoints, q as ProviderRequestMutator, P as ProviderSessionResolver, a6 as ReasoningVisibility, p as ResolvedProviderSession, R as RunTurnDeps, bk as RuntimeManagerOptions, b3 as Stage, S as SystemInput, e as TextBlock, b1 as ToolDefinition, az as ToolExecutionContext, b0 as ToolGenerator, au as ToolOutputEnvelope, a$ as ToolOutputValue, o as ToolResult, n as ToolResultBlock, at as ToolResultChunk, _ as ToolResultContent, Z as ToolResultContentBlock, as as ToolResultMeta, aZ as ToolRuntime, aC as ToolRuntimeCompletedEvent, aV as ToolRuntimeDispatchDecision, aE as ToolRuntimeEvent, aX as ToolRuntimeEventHandler, aB as ToolRuntimeOutputChunkEvent, aD as ToolRuntimeRejectedEvent, aA as ToolRuntimeStartedEvent, aW as ToolRuntimeToolCallHandler, aj as ToolSchema, m as ToolUseBlock, am as ToolUseDeltaChunk, b6 as Transformer, b8 as TransformerExtensionRegistration, c as TurnInput, T as TurnResult, av as TurnResultStatus, d as TurnState, ak as Usage } from '../types-QPBW5jHO.js';
1
+ import { G as AutoReasoningEffort, v as ReasoningConfig, H as AnthropicThinkingConfig, I as OpenAiReasoningConfig } from '../types-Dpf5wjPw.js';
2
+ export { aQ as AgentAssistantChunkEvent, aP as AgentAssistantMessageEvent, bk as AgentDefinition, bj 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, bi 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, m as ChatResponse, w as ChatResponseChunk, j as CompileRequestInput, f as ContentBlock, an as ContentDeltaChunk, h as ContentInput, bs as CreateManagedRunInput, au as DoneChunk, u as EngineChatModel, bc as ExtensionContext, bh as ExtensionRegistration, E 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, bn as ManagedAgentRun, bo as ManagedAgentRunHandle, bm as ManagedRunError, bp as ManagedRunEvent, bq as ManagedRunEventHandler, bl as ManagedRunStatus, M as Message, i as MessageInput, ah as MessageProviderState, aj as MessageRole, x as ModelExecutionOptions, y as ModelInfo, z as ModelLimits, k as ModelRequest, l as ModelResponse, be as Observer, bg as ObserverExtensionRegistration, bw as OpenAiFunctionCall, bx as OpenAiFunctionCallOutput, bE as OpenAiFunctionTool, bu as OpenAiInputImage, bv as OpenAiInputMessage, bt as OpenAiInputText, bA as OpenAiOutputMessage, by as OpenAiOutputTextPart, a4 as OpenAiReasoningBlock, ar as OpenAiReasoningDeltaChunk, af as OpenAiReasoningEffort, bB as OpenAiReasoningOutputItem, ag as OpenAiReasoningSummary, as as OpenAiReasoningSummaryDeltaChunk, a3 as OpenAiReasoningSummaryText, bz as OpenAiRefusalPart, bC as OpenAiResponsesOutputItem, bD as OpenAiResponsesReasoningParam, O as OpenAiResponsesRequest, bb as PayloadByStage, az as PrepareRequestInput, s as PreparedRequest, t as ProviderCredential, D as ProviderCredentialKind, F as ProviderEndpoints, r as ProviderRequestMutator, at as ProviderRetryChunk, P as ProviderSessionResolver, a8 as ReasoningVisibility, q as ResolvedProviderSession, R as RunTurnDeps, br as RuntimeManagerOptions, ba as Stage, S as SystemInput, g as TextBlock, b8 as ToolDefinition, aG as ToolExecutionContext, b7 as ToolGenerator, ax as ToolOutputEnvelope, b6 as ToolOutputValue, p as ToolResult, o 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, n as ToolUseBlock, ao as ToolUseDeltaChunk, bd as Transformer, bf as TransformerExtensionRegistration, d as TurnInput, T as TurnResult, ay as TurnResultStatus, e as TurnState, am as Usage } from '../types-Dpf5wjPw.js';
3
3
 
4
4
  declare class OperationAbortedError extends Error {
5
5
  readonly code = "ABORT_ERR";
@@ -1 +1 @@
1
- function _0x1ead(_0x29a891,_0x3db51c){_0x29a891=_0x29a891-0x133;var _0x383cb8=_0x383c();var _0x1eadec=_0x383cb8[_0x29a891];if(_0x1ead['pmaacz']===undefined){var _0x36bcd4=function(_0x48060d){var _0x108c9d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5813aa='',_0x3bc88e='';for(var _0x24f177=0x0,_0x5d7316,_0x269b3b,_0x295272=0x0;_0x269b3b=_0x48060d['charAt'](_0x295272++);~_0x269b3b&&(_0x5d7316=_0x24f177%0x4?_0x5d7316*0x40+_0x269b3b:_0x269b3b,_0x24f177++%0x4)?_0x5813aa+=String['fromCharCode'](0xff&_0x5d7316>>(-0x2*_0x24f177&0x6)):0x0){_0x269b3b=_0x108c9d['indexOf'](_0x269b3b);}for(var _0x42c76e=0x0,_0x57bedc=_0x5813aa['length'];_0x42c76e<_0x57bedc;_0x42c76e++){_0x3bc88e+='%'+('00'+_0x5813aa['charCodeAt'](_0x42c76e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3bc88e);};_0x1ead['qpKrzf']=_0x36bcd4,_0x1ead['RXmCmd']={},_0x1ead['pmaacz']=!![];}var _0x53a817=_0x383cb8[0x0],_0x13a990=_0x29a891+_0x53a817,_0x1a5b9a=_0x1ead['RXmCmd'][_0x13a990];return!_0x1a5b9a?(_0x1eadec=_0x1ead['qpKrzf'](_0x1eadec),_0x1ead['RXmCmd'][_0x13a990]=_0x1eadec):_0x1eadec=_0x1a5b9a,_0x1eadec;}(function(_0x4b1bbe,_0x1a9f54){var _0x43a7bd={_0x1d7b2e:0x142,_0x156a90:0x144,_0x33058e:0x192,_0x445974:0x190,_0x490c8b:0x18e,_0x41e77a:0x142,_0x3f0d9b:0x149,_0x2d8a5e:0x195,_0x2c117f:0x14a,_0x244c4e:0x191,_0x59646f:0x192,_0x1776d8:0x143,_0x501c2c:0x13e,_0x18ea90:0x199,_0x38b2ba:0x18e,_0x4ecb26:0x145},_0x1938b9={_0x33b3d3:0x58},_0xc90991=_0x4b1bbe();function _0xbb026b(_0x429e12,_0x977d5a,_0x3fa0f6,_0x527c79){return _0x1ead(_0x429e12-_0x1938b9._0x33b3d3,_0x527c79);}function _0x2f1565(_0x36b22c,_0x5aa7ab,_0x423990,_0x3893d6){return _0x1ead(_0x36b22c-0x10,_0x3893d6);}while(!![]){try{var _0x92237e=parseInt(_0x2f1565(0x147,0x143,_0x43a7bd._0x1d7b2e,_0x43a7bd._0x156a90))/0x1*(-parseInt(_0x2f1565(0x14d,0x14a,0x152,0x14d))/0x2)+-parseInt(_0xbb026b(0x18d,_0x43a7bd._0x33058e,_0x43a7bd._0x445974,_0x43a7bd._0x490c8b))/0x3+parseInt(_0x2f1565(_0x43a7bd._0x156a90,_0x43a7bd._0x1d7b2e,_0x43a7bd._0x41e77a,_0x43a7bd._0x3f0d9b))/0x4+-parseInt(_0xbb026b(_0x43a7bd._0x33058e,0x192,0x197,_0x43a7bd._0x2d8a5e))/0x5*(parseInt(_0x2f1565(0x14b,_0x43a7bd._0x2c117f,0x14f,0x14c))/0x6)+-parseInt(_0xbb026b(_0x43a7bd._0x445974,0x190,_0x43a7bd._0x244c4e,_0x43a7bd._0x59646f))/0x7+-parseInt(_0x2f1565(_0x43a7bd._0x1776d8,0x140,0x143,_0x43a7bd._0x501c2c))/0x8*(-parseInt(_0xbb026b(0x194,0x19a,_0x43a7bd._0x18ea90,0x191))/0x9)+-parseInt(_0xbb026b(_0x43a7bd._0x38b2ba,0x188,_0x43a7bd._0x445974,0x18a))/0xa*(-parseInt(_0x2f1565(0x149,0x14b,0x148,_0x43a7bd._0x4ecb26))/0xb);if(_0x92237e===_0x1a9f54)break;else _0xc90991['push'](_0xc90991['shift']());}catch(_0xecebf1){_0xc90991['push'](_0xc90991['shift']());}}}(_0x383c,0xe3577));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0x383c(){var _0xaf5ca0=['mti1ote1n0LLCNL5Bq','ndi3nJeWteX4zhfp','mu9lDgrdrW','mtiZmZmXmJvusvjwsKC','nJGYrw5urxrR','mJvZzhnzBLi','ndi1nZa2wuDrANvA','ovPprgvguG','mZqZmZyXmejrDg5bvG','ntK2ntu1mNjoEeziEG','nZe0otG3nLjyz1rzBG'];_0x383c=function(){return _0xaf5ca0;};return _0x383c();}export{OperationAbortedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
1
+ function _0x3a6f(){var _0x35539a=['otuWnJKWm3v3qMTprW','otKZnZGXBuTVCgH5','mKPwEhvhzG','owDzC2r0Dq','ndiYmda4ngfUEK5XsG','ntq4mdGWnJHuueDtvuK','nZG0mZi3mgHtEerjsa','nNLywgPTyq','m29AuMHyEq','mJC4nJiYnerYEgPqzq','odK0mfPpEfjgta','mtKZmJDfrLffqu8'];_0x3a6f=function(){return _0x35539a;};return _0x3a6f();}(function(_0x5cdac5,_0x2c7467){var _0x106e8a={_0x99ca68:0x180,_0x189372:0x17c,_0x305d1a:0x2a2,_0x903c5c:0x2a6,_0x3c678c:0x2ac,_0x1b0b8f:0x2ab,_0x2d3d64:0x178,_0x3973ac:0x182,_0xa9b015:0x29f,_0x295a28:0x2a1,_0x50387e:0x2a4,_0x9ab95d:0x185,_0x38f137:0x187,_0x1c38a0:0x181,_0x1e56ba:0x181,_0x4cc252:0x183,_0x2471eb:0x17a,_0x2d28a6:0x17c},_0x2a91a0=_0x5cdac5();function _0x4e1ac0(_0x2f47bb,_0x54b02d,_0x3f5b4b,_0x23c5f7){return _0xf14b(_0x23c5f7- -0x21f,_0x54b02d);}function _0x2a383c(_0x50257f,_0x400800,_0x717176,_0x181690){return _0xf14b(_0x717176- -0x346,_0x181690);}while(!![]){try{var _0x58fccf=-parseInt(_0x4e1ac0(-_0x106e8a._0x99ca68,-_0x106e8a._0x189372,-0x185,-0x180))/0x1*(parseInt(_0x2a383c(-_0x106e8a._0x305d1a,-0x2a5,-_0x106e8a._0x903c5c,-_0x106e8a._0x3c678c))/0x2)+-parseInt(_0x2a383c(-_0x106e8a._0x1b0b8f,-0x2ae,-0x2ac,-0x2b2))/0x3*(parseInt(_0x4e1ac0(-0x179,-_0x106e8a._0x2d3d64,-_0x106e8a._0x3973ac,-0x17d))/0x4)+parseInt(_0x2a383c(-_0x106e8a._0xa9b015,-_0x106e8a._0x295a28,-0x2a2,-_0x106e8a._0x50387e))/0x5+parseInt(_0x4e1ac0(-0x18b,-0x182,-0x189,-0x186))/0x6*(-parseInt(_0x4e1ac0(-_0x106e8a._0x9ab95d,-0x17c,-_0x106e8a._0x38f137,-_0x106e8a._0x1c38a0))/0x7)+-parseInt(_0x4e1ac0(-0x17f,-0x182,-0x189,-0x184))/0x8*(parseInt(_0x4e1ac0(-_0x106e8a._0x1c38a0,-_0x106e8a._0x1c38a0,-0x183,-0x17e))/0x9)+parseInt(_0x4e1ac0(-0x17f,-0x17f,-_0x106e8a._0x1e56ba,-_0x106e8a._0x4cc252))/0xa*(-parseInt(_0x2a383c(-_0x106e8a._0x903c5c,-0x2af,-0x2a9,-0x2a4))/0xb)+parseInt(_0x4e1ac0(-_0x106e8a._0x3973ac,-0x17d,-_0x106e8a._0x2471eb,-_0x106e8a._0x2d28a6))/0xc;if(_0x58fccf===_0x2c7467)break;else _0x2a91a0['push'](_0x2a91a0['shift']());}catch(_0x3969e1){_0x2a91a0['push'](_0x2a91a0['shift']());}}}(_0x3a6f,0xc5c2a));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';function _0xf14b(_0x3a90bf,_0x27d6a2){_0x3a90bf=_0x3a90bf-0x99;var _0x3a6f35=_0x3a6f();var _0xf14b89=_0x3a6f35[_0x3a90bf];if(_0xf14b['INmGwR']===undefined){var _0x241c66=function(_0x559fc9){var _0x93387e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4b3d32='',_0x1270e6='';for(var _0x10a380=0x0,_0x5ddad0,_0x7b7d4b,_0x25703f=0x0;_0x7b7d4b=_0x559fc9['charAt'](_0x25703f++);~_0x7b7d4b&&(_0x5ddad0=_0x10a380%0x4?_0x5ddad0*0x40+_0x7b7d4b:_0x7b7d4b,_0x10a380++%0x4)?_0x4b3d32+=String['fromCharCode'](0xff&_0x5ddad0>>(-0x2*_0x10a380&0x6)):0x0){_0x7b7d4b=_0x93387e['indexOf'](_0x7b7d4b);}for(var _0x175d69=0x0,_0x5dbf16=_0x4b3d32['length'];_0x175d69<_0x5dbf16;_0x175d69++){_0x1270e6+='%'+('00'+_0x4b3d32['charCodeAt'](_0x175d69)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1270e6);};_0xf14b['NdMqDv']=_0x241c66,_0xf14b['psXzsm']={},_0xf14b['INmGwR']=!![];}var _0x1bbdbf=_0x3a6f35[0x0],_0xc256a6=_0x3a90bf+_0x1bbdbf,_0x172f27=_0xf14b['psXzsm'][_0xc256a6];return!_0x172f27?(_0xf14b89=_0xf14b['NdMqDv'](_0xf14b89),_0xf14b['psXzsm'][_0xc256a6]=_0xf14b89):_0xf14b89=_0x172f27,_0xf14b89;}import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';export{OperationAbortedError,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 { b1 as ToolDefinition, au as ToolOutputEnvelope, b2 as AnyToolDefinition, aX as ToolRuntimeEventHandler, aW as ToolRuntimeToolCallHandler, aZ as ToolRuntime, H as JsonObject, V as JsonSchemaObject, W as JsonSchema, bc as AgentDefinitionFactoryContext, A as AgentOptions, a$ as ToolOutputValue, at as ToolResultChunk, _ as ToolResultContent, a_ as InferJsonSchema, az as ToolExecutionContext, aj as ToolSchema, I as JsonValue } from '../types-QPBW5jHO.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, bj as AgentDefinitionFactoryContext, a as AgentOptions, b6 as ToolOutputValue, aw as ToolResultChunk, a0 as ToolResultContent, b5 as InferJsonSchema, aG as ToolExecutionContext, al as ToolSchema, L as JsonValue } from '../types-Dpf5wjPw.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';
@@ -35,6 +35,61 @@ interface LspService {
35
35
  }
36
36
  declare function createLspService(config?: LspServiceConfig): LspService;
37
37
 
38
+ declare function createAskUserTool(): ToolDefinition<{
39
+ answers: {};
40
+ questions: {
41
+ question: string;
42
+ header: string;
43
+ options: {
44
+ label: string;
45
+ description: string;
46
+ }[];
47
+ multiSelect: boolean;
48
+ }[];
49
+ }, ToolOutputEnvelope, ToolOutputEnvelope | undefined, {
50
+ type: "object";
51
+ properties: {
52
+ questions: {
53
+ type: "array";
54
+ items: {
55
+ type: "object";
56
+ properties: {
57
+ question: {
58
+ type: "string";
59
+ };
60
+ header: {
61
+ type: "string";
62
+ };
63
+ options: {
64
+ type: "array";
65
+ items: {
66
+ type: "object";
67
+ properties: {
68
+ label: {
69
+ type: "string";
70
+ };
71
+ description: {
72
+ type: "string";
73
+ };
74
+ };
75
+ required: string[];
76
+ };
77
+ };
78
+ multiSelect: {
79
+ type: "boolean";
80
+ };
81
+ };
82
+ required: string[];
83
+ };
84
+ };
85
+ answers: {
86
+ type: "object";
87
+ properties: {};
88
+ };
89
+ };
90
+ required: string[];
91
+ }>;
92
+
38
93
  interface BashToolInput {
39
94
  command: string;
40
95
  cwd?: string;
@@ -439,14 +494,22 @@ interface CreateDelegationToolsOptions {
439
494
  agents?: Record<string, DelegatedAgentDefinition>;
440
495
  }
441
496
  declare function createAssignTaskTool(options: CreateDelegationToolsOptions): ToolDefinition<{
497
+ description: string;
442
498
  task: string;
443
499
  agentId: string;
500
+ nickname: string;
444
501
  }, ToolOutputEnvelope, ToolOutputEnvelope, {
445
502
  type: "object";
446
503
  properties: {
447
504
  agentId: {
448
505
  type: "string";
449
506
  };
507
+ description: {
508
+ type: "string";
509
+ };
510
+ nickname: {
511
+ type: "string";
512
+ };
450
513
  task: {
451
514
  type: "string";
452
515
  };
@@ -455,14 +518,22 @@ declare function createAssignTaskTool(options: CreateDelegationToolsOptions): To
455
518
  }>;
456
519
  declare const createDelegateToAgentTool: typeof createAssignTaskTool;
457
520
  declare function createDelegationTools(options: CreateDelegationToolsOptions): ToolDefinition<{
521
+ description: string;
458
522
  task: string;
459
523
  agentId: string;
524
+ nickname: string;
460
525
  }, ToolOutputEnvelope, ToolOutputEnvelope, {
461
526
  type: "object";
462
527
  properties: {
463
528
  agentId: {
464
529
  type: "string";
465
530
  };
531
+ description: {
532
+ type: "string";
533
+ };
534
+ nickname: {
535
+ type: "string";
536
+ };
466
537
  task: {
467
538
  type: "string";
468
539
  };
@@ -503,6 +574,71 @@ declare function createLoadSkillTool<TRef extends SkillReference>(options: Skill
503
574
  required: readonly ["name"];
504
575
  }>;
505
576
 
577
+ type TodoStatus = "pending" | "in_progress" | "completed";
578
+ type TodoPriority = "high" | "medium" | "low";
579
+ type TodoInputItem = {
580
+ id: string;
581
+ content: string;
582
+ status: TodoStatus;
583
+ priority: TodoPriority;
584
+ createdAt?: string;
585
+ };
586
+ type TodoItem = TodoInputItem & {
587
+ sessionId: string;
588
+ createdAt: string;
589
+ updatedAt: string;
590
+ };
591
+ type TodoStats = {
592
+ total: number;
593
+ pending: number;
594
+ inProgress: number;
595
+ completed: number;
596
+ };
597
+ declare class TodoStore {
598
+ private readonly todosBySession;
599
+ getTodos(sessionId: string): TodoItem[];
600
+ setTodos(sessionId: string, todos: TodoItem[]): void;
601
+ getStats(sessionId: string): TodoStats;
602
+ }
603
+ declare function createTodoWriteTool(store?: TodoStore): ToolDefinition<{
604
+ todos: {
605
+ content: string;
606
+ id: string;
607
+ priority: string;
608
+ status: string;
609
+ createdAt: string;
610
+ }[];
611
+ }, never, ToolOutputEnvelope, {
612
+ type: "object";
613
+ properties: {
614
+ todos: {
615
+ type: "array";
616
+ items: {
617
+ type: "object";
618
+ properties: {
619
+ content: {
620
+ type: "string";
621
+ };
622
+ status: {
623
+ type: "string";
624
+ };
625
+ priority: {
626
+ type: "string";
627
+ };
628
+ id: {
629
+ type: "string";
630
+ };
631
+ createdAt: {
632
+ type: "string";
633
+ };
634
+ };
635
+ required: string[];
636
+ };
637
+ };
638
+ };
639
+ required: string[];
640
+ }>;
641
+
506
642
  declare function normalizeToolOutputValue(output: ToolOutputValue): ToolResultChunk;
507
643
  declare function createToolOutput(output: string, structured?: JsonObject, content?: ToolResultContent): ToolOutputEnvelope;
508
644
  declare class ToolExecutionError extends Error {
@@ -577,8 +713,8 @@ interface WebSearchToolOptions {
577
713
  declare function createWebSearchTool(options: WebSearchToolOptions): ToolDefinition<{
578
714
  query: string;
579
715
  type?: string | undefined;
580
- count?: number | undefined;
581
716
  description?: string | undefined;
717
+ count?: number | undefined;
582
718
  offset?: number | undefined;
583
719
  safe?: boolean | undefined;
584
720
  domains?: string[] | undefined;
@@ -634,4 +770,4 @@ declare function resolveAllowedPath(rootDir: string, allowedDirs: readonly strin
634
770
  declare function assertWorkspaceFile(filePath: string): Promise<void>;
635
771
  declare function isProbablyBinary(buffer: Buffer): boolean;
636
772
 
637
- 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, ToolRegistry, type ViewFileToolOptions, type WebFetchToolOptions, type WebSearchToolOptions, assertWorkspaceFile, buildMcpHttpHeaders, connectMcpServer, createAssignTaskTool, createBashTool, createDelegateToAgentTool, createDelegationTools, createFileEditTool, createFileNewTool, createFileReadTool, createGlobTool, createGrepTool, createInternalToolRuntime, createInvokeCommandTool, createLoadSkillTool, createLsTool, createLspService, createLspTool, createMcpOAuthProvider, createMcpTool, createMcpToolName, createMcpToolsFromServers, createMockToolRuntime, createShellExecTool, createToolOutput, createViewFileTool, createWebFetchTool, createWebSearchTool, defineTool, deriveFinalToolOutput, filepath, files, isProbablyBinary, normalizeToolOutputValue, resolveAllowedPath, resolveWorkspacePath, search, toNuvinToolSchema, validateToolInput };
773
+ 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, 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, validateToolInput };