@nuvin/agent-core 0.0.0-rc.6 → 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-BS0Io2Vs.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-BS0Io2Vs.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, C as ContentBlock, al as ContentDeltaChunk, f 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-BS0Io2Vs.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 _0x48a4(){var _0x191585=['ndaZmJmYrvDgCuLd','mtCXnJi3mfHXDxDYwG','nZjkz2Tzzu8','mZmZmta1vvfKBw5y','mtm2vxfbzwTT','mZmYng9iyu9zsa','mtGYnJC3Aw1QAhrg','mtCZmeLSr1fstW','ngTHrwTSBa','ndu4ndCWmM5os2vJvG','mJe2ode2nMf5Cw1jvW'];_0x48a4=function(){return _0x191585;};return _0x48a4();}function _0x1d00(_0xd01dd7,_0x180a0a){_0xd01dd7=_0xd01dd7-0x99;var _0x48a4d2=_0x48a4();var _0x1d006d=_0x48a4d2[_0xd01dd7];if(_0x1d00['vVySpc']===undefined){var _0x358d3b=function(_0x472a60){var _0x2a957a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2db1d0='',_0x258b4d='';for(var _0x160354=0x0,_0x2cb2d3,_0xd6512f,_0x21c994=0x0;_0xd6512f=_0x472a60['charAt'](_0x21c994++);~_0xd6512f&&(_0x2cb2d3=_0x160354%0x4?_0x2cb2d3*0x40+_0xd6512f:_0xd6512f,_0x160354++%0x4)?_0x2db1d0+=String['fromCharCode'](0xff&_0x2cb2d3>>(-0x2*_0x160354&0x6)):0x0){_0xd6512f=_0x2a957a['indexOf'](_0xd6512f);}for(var _0x1d9766=0x0,_0x4b0ca3=_0x2db1d0['length'];_0x1d9766<_0x4b0ca3;_0x1d9766++){_0x258b4d+='%'+('00'+_0x2db1d0['charCodeAt'](_0x1d9766)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x258b4d);};_0x1d00['osRtZq']=_0x358d3b,_0x1d00['WsdSQQ']={},_0x1d00['vVySpc']=!![];}var _0x126777=_0x48a4d2[0x0],_0x3aa3f0=_0xd01dd7+_0x126777,_0x15e072=_0x1d00['WsdSQQ'][_0x3aa3f0];return!_0x15e072?(_0x1d006d=_0x1d00['osRtZq'](_0x1d006d),_0x1d00['WsdSQQ'][_0x3aa3f0]=_0x1d006d):_0x1d006d=_0x15e072,_0x1d006d;}(function(_0x149af8,_0x3af3ac){var _0x4b5fa9={_0x39a16c:0x279,_0x41526f:0x27f,_0x156c50:0x273,_0x4308d0:0x26f,_0x2fdce7:0x2a8,_0x12a634:0x2a7,_0x3d068c:0x272,_0xdfb68:0x26c,_0x536119:0x274,_0x3dc8e7:0x2aa,_0x1d9548:0x2ae,_0x59b0cd:0x271,_0x1d0a02:0x277,_0x40109a:0x2a7,_0x252f95:0x2a7,_0xadc238:0x275,_0x2a3afa:0x278,_0x58d560:0x276,_0x4a1d9f:0x27b,_0xe75aa6:0x272,_0xb776e7:0x27c,_0x2072f0:0x275,_0x40368e:0x271},_0x8b5f6b={_0x5a56ee:0x1d6},_0x49a719=_0x149af8();function _0x48db28(_0x24a792,_0xd67413,_0x204ebb,_0x171bc7){return _0x1d00(_0x24a792-0x208,_0xd67413);}function _0x558391(_0x40df3d,_0x5b6a81,_0xe84e79,_0x576bea){return _0x1d00(_0x40df3d-_0x8b5f6b._0x5a56ee,_0x576bea);}while(!![]){try{var _0x33716b=-parseInt(_0x558391(_0x4b5fa9._0x39a16c,_0x4b5fa9._0x41526f,0x274,_0x4b5fa9._0x156c50))/0x1*(parseInt(_0x558391(_0x4b5fa9._0x4308d0,0x271,0x26c,0x26f))/0x2)+-parseInt(_0x48db28(_0x4b5fa9._0x2fdce7,_0x4b5fa9._0x12a634,0x2a9,0x2a2))/0x3+-parseInt(_0x558391(_0x4b5fa9._0x3d068c,0x270,_0x4b5fa9._0xdfb68,_0x4b5fa9._0x536119))/0x4*(parseInt(_0x48db28(_0x4b5fa9._0x3dc8e7,0x2a7,_0x4b5fa9._0x1d9548,0x2a8))/0x5)+-parseInt(_0x558391(0x273,_0x4b5fa9._0x59b0cd,_0x4b5fa9._0x1d0a02,0x278))/0x6+-parseInt(_0x48db28(0x2a6,0x2ac,_0x4b5fa9._0x40109a,_0x4b5fa9._0x252f95))/0x7+parseInt(_0x558391(_0x4b5fa9._0xadc238,_0x4b5fa9._0x2a3afa,_0x4b5fa9._0x58d560,_0x4b5fa9._0x4a1d9f))/0x8*(-parseInt(_0x558391(0x277,_0x4b5fa9._0xe75aa6,0x27d,_0x4b5fa9._0xb776e7))/0x9)+parseInt(_0x558391(0x271,_0x4b5fa9._0x2072f0,_0x4b5fa9._0x156c50,_0x4b5fa9._0x58d560))/0xa*(parseInt(_0x558391(0x270,_0x4b5fa9._0xadc238,0x26b,_0x4b5fa9._0x40368e))/0xb);if(_0x33716b===_0x3af3ac)break;else _0x49a719['push'](_0x49a719['shift']());}catch(_0x20576e){_0x49a719['push'](_0x49a719['shift']());}}}(_0x48a4,0x81aed));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';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-BS0Io2Vs.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;
@@ -442,6 +497,7 @@ declare function createAssignTaskTool(options: CreateDelegationToolsOptions): To
442
497
  description: string;
443
498
  task: string;
444
499
  agentId: string;
500
+ nickname: string;
445
501
  }, ToolOutputEnvelope, ToolOutputEnvelope, {
446
502
  type: "object";
447
503
  properties: {
@@ -451,6 +507,9 @@ declare function createAssignTaskTool(options: CreateDelegationToolsOptions): To
451
507
  description: {
452
508
  type: "string";
453
509
  };
510
+ nickname: {
511
+ type: "string";
512
+ };
454
513
  task: {
455
514
  type: "string";
456
515
  };
@@ -462,6 +521,7 @@ declare function createDelegationTools(options: CreateDelegationToolsOptions): T
462
521
  description: string;
463
522
  task: string;
464
523
  agentId: string;
524
+ nickname: string;
465
525
  }, ToolOutputEnvelope, ToolOutputEnvelope, {
466
526
  type: "object";
467
527
  properties: {
@@ -471,6 +531,9 @@ declare function createDelegationTools(options: CreateDelegationToolsOptions): T
471
531
  description: {
472
532
  type: "string";
473
533
  };
534
+ nickname: {
535
+ type: "string";
536
+ };
474
537
  task: {
475
538
  type: "string";
476
539
  };
@@ -511,6 +574,71 @@ declare function createLoadSkillTool<TRef extends SkillReference>(options: Skill
511
574
  required: readonly ["name"];
512
575
  }>;
513
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
+
514
642
  declare function normalizeToolOutputValue(output: ToolOutputValue): ToolResultChunk;
515
643
  declare function createToolOutput(output: string, structured?: JsonObject, content?: ToolResultContent): ToolOutputEnvelope;
516
644
  declare class ToolExecutionError extends Error {
@@ -585,8 +713,8 @@ interface WebSearchToolOptions {
585
713
  declare function createWebSearchTool(options: WebSearchToolOptions): ToolDefinition<{
586
714
  query: string;
587
715
  type?: string | undefined;
588
- count?: number | undefined;
589
716
  description?: string | undefined;
717
+ count?: number | undefined;
590
718
  offset?: number | undefined;
591
719
  safe?: boolean | undefined;
592
720
  domains?: string[] | undefined;
@@ -642,4 +770,4 @@ declare function resolveAllowedPath(rootDir: string, allowedDirs: readonly strin
642
770
  declare function assertWorkspaceFile(filePath: string): Promise<void>;
643
771
  declare function isProbablyBinary(buffer: Buffer): boolean;
644
772
 
645
- 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 };