@nuvin/agent-core 0.0.0-rc.6 → 0.0.0-rc.8

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-mpqTRf_e.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-mpqTRf_e.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, n as ChatResponse, w as ChatResponseChunk, k as CompileRequestInput, g as ContentBlock, an as ContentDeltaChunk, i as ContentInput, bs as CreateManagedRunInput, au as DoneChunk, E as EngineChatModel, bc as ExtensionContext, bh as ExtensionRegistration, 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, bn as ManagedAgentRun, bo as ManagedAgentRunHandle, bm as ManagedRunError, bp as ManagedRunEvent, bq as ManagedRunEventHandler, bl 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, 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, 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, br as RuntimeManagerOptions, ba 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, bd as Transformer, bf as TransformerExtensionRegistration, e as TurnInput, T as TurnResult, ay as TurnResultStatus, f as TurnState, am as Usage } from '../types-mpqTRf_e.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(_0x375263,_0x3f0f83){var _0x2ad27a={_0x3cdd86:0x51b,_0x3ffeb1:0x516,_0x2f5f11:0x59b,_0x11bc34:0x59a,_0x114c22:0x51a,_0x467f97:0x595,_0xc6c999:0x595,_0x3ff8d0:0x598,_0x3fa1ab:0x513,_0xee690e:0x515,_0x4dcbd3:0x518,_0x55808d:0x517,_0x497ba7:0x592,_0x1ba135:0x599,_0x148e58:0x51d,_0x559ff9:0x51d,_0x256e7d:0x51c,_0x197240:0x598,_0x10f7df:0x50f,_0x2e76c2:0x511},_0x3f0cfe={_0xe078f3:0x3c8},_0x4de389=_0x375263();function _0x29f722(_0x2548e9,_0x5d26d3,_0x1887f4,_0x35ce88){return _0x5303(_0x5d26d3-_0x3f0cfe._0xe078f3,_0x1887f4);}function _0x11b6f0(_0x140e4b,_0x492af0,_0xf44c6d,_0x21d9fc){return _0x5303(_0x21d9fc-0x347,_0x140e4b);}while(!![]){try{var _0xb9ac3a=parseInt(_0x11b6f0(0x514,_0x2ad27a._0x3cdd86,0x515,_0x2ad27a._0x3ffeb1))/0x1*(-parseInt(_0x29f722(_0x2ad27a._0x2f5f11,_0x2ad27a._0x11bc34,0x5a0,0x59b))/0x2)+parseInt(_0x11b6f0(0x518,_0x2ad27a._0x114c22,0x51e,0x51a))/0x3*(parseInt(_0x29f722(_0x2ad27a._0x467f97,_0x2ad27a._0xc6c999,0x595,_0x2ad27a._0x3ff8d0))/0x4)+parseInt(_0x11b6f0(0x51b,0x511,_0x2ad27a._0x3fa1ab,_0x2ad27a._0xee690e))/0x5+-parseInt(_0x11b6f0(_0x2ad27a._0x4dcbd3,_0x2ad27a._0x55808d,0x50f,0x512))/0x6*(-parseInt(_0x29f722(0x59c,0x598,_0x2ad27a._0x497ba7,_0x2ad27a._0x1ba135))/0x7)+parseInt(_0x11b6f0(_0x2ad27a._0x148e58,0x51a,_0x2ad27a._0x559ff9,_0x2ad27a._0x256e7d))/0x8*(parseInt(_0x29f722(_0x2ad27a._0x1ba135,_0x2ad27a._0x1ba135,_0x2ad27a._0x197240,0x59c))/0x9)+parseInt(_0x11b6f0(_0x2ad27a._0x10f7df,_0x2ad27a._0x3ffeb1,_0x2ad27a._0x2e76c2,0x513))/0xa+-parseInt(_0x29f722(0x59e,0x59c,0x597,0x59c))/0xb;if(_0xb9ac3a===_0x3f0f83)break;else _0x4de389['push'](_0x4de389['shift']());}catch(_0x450351){_0x4de389['push'](_0x4de389['shift']());}}}(_0x30db,0x1b012));function _0x5303(_0x338e9e,_0xb63432){_0x338e9e=_0x338e9e-0x1cb;var _0x30db97=_0x30db();var _0x530351=_0x30db97[_0x338e9e];if(_0x5303['rLtrOo']===undefined){var _0x2f42d2=function(_0xbbe0b){var _0xaebdad='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1223f2='',_0x19b08d='';for(var _0x333a8d=0x0,_0x5689bd,_0x498a6b,_0x47fad9=0x0;_0x498a6b=_0xbbe0b['charAt'](_0x47fad9++);~_0x498a6b&&(_0x5689bd=_0x333a8d%0x4?_0x5689bd*0x40+_0x498a6b:_0x498a6b,_0x333a8d++%0x4)?_0x1223f2+=String['fromCharCode'](0xff&_0x5689bd>>(-0x2*_0x333a8d&0x6)):0x0){_0x498a6b=_0xaebdad['indexOf'](_0x498a6b);}for(var _0x5732ec=0x0,_0x5080e4=_0x1223f2['length'];_0x5732ec<_0x5080e4;_0x5732ec++){_0x19b08d+='%'+('00'+_0x1223f2['charCodeAt'](_0x5732ec)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x19b08d);};_0x5303['IrXMPL']=_0x2f42d2,_0x5303['BoBhBh']={},_0x5303['rLtrOo']=!![];}var _0x5e4ead=_0x30db97[0x0],_0x14c56b=_0x338e9e+_0x5e4ead,_0x556931=_0x5303['BoBhBh'][_0x14c56b];return!_0x556931?(_0x530351=_0x5303['IrXMPL'](_0x530351),_0x5303['BoBhBh'][_0x14c56b]=_0x530351):_0x530351=_0x556931,_0x530351;}function _0x30db(){var _0x23686d=['ndm5otCZnNDSsfPvrG','mJrUuKncu1y','nNf6qxL0BG','mtGZmZiWmfvTChrgtq','nfvqwe9zCq','otaXmJCWAMXICMTR','ntLUrwTrEKq','odm5nJqZyKLxyvbU','mZm4mtiXzeLOEu9P','mZq2mhbtzgLTrG','ndKYnZHbAgDQCMe'];_0x30db=function(){return _0x23686d;};return _0x30db();}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,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-mpqTRf_e.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 };