@nuvin/agent-core 0.0.0-rc.16 → 0.0.0-rc.17
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.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +34 -3
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-SEP4YYY3.js +1 -1
- package/dist/chunk-T7UKN6FZ.js +1 -1
- package/dist/chunk-WHYFEBOU.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +2 -2
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-CVC34mwR.d.ts → provider-adapters-Bupd2RBH.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +14 -2
- package/dist/tools/index.js +1 -1
- package/dist/{types-CSXSwpwn.d.ts → types-3UUDPpJs.d.ts} +4 -1
- package/package.json +1 -1
- package/dist/chunk-WJMBJOVF.js +0 -1
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { H as AutoReasoningEffort, w as ReasoningConfig, I as AnthropicThinkingConfig, J as OpenAiReasoningConfig, g as TurnState } from '../types-3UUDPpJs.js';
|
|
2
|
+
export { aR as AgentAssistantChunkEvent, aQ as AgentAssistantMessageEvent, bl as AgentDefinition, bk as AgentDefinitionFactoryContext, A as AgentEvent, aC as AgentEventContext, b4 as AgentEventHandler, aZ as AgentFinalMessageEvent, b as AgentInput, b0 as AgentLifecycleEvent, aO as AgentModelRequestEvent, aP as AgentModelResponseEvent, a as AgentOptions, a$ as AgentProviderRetryEvent, aV as AgentReasoningChunkEvent, aU as AgentReasoningMessageEvent, c as AgentSendOptions, aW as AgentToolCallEvent, aX as AgentToolResultEvent, aY as AgentToolResultMessageEvent, aT as AgentToolUseChunkEvent, aS as AgentToolUseMessageEvent, a_ as AgentTurnCompleteEvent, aN as AgentUserMessageEvent, ae as AnthropicAdaptiveThinkingConfig, a8 as AnthropicAssistantContentBlock, af as AnthropicDisabledThinkingConfig, ad as AnthropicEnabledThinkingConfig, a3 as AnthropicRedactedThinkingBlock, a7 as AnthropicRedactedThinkingWireBlock, ar as AnthropicSignatureDeltaChunk, a2 as AnthropicThinkingBlock, aq as AnthropicThinkingDeltaChunk, ab as AnthropicThinkingDisplay, ac as AnthropicThinkingEffort, a6 as AnthropicThinkingWireBlock, bj as AnyExtensionRegistration, ba as AnyToolDefinition, aF as AskUserAnswers, aD as AskUserOption, aE as AskUserQuestion, aG as AskUserQuestionRequest, aj as AssistantContentBlock, aa as AutoReasoningConfig, B as BaseChatModelOptions, aB as ChatModel, C as ChatRequest, o as ChatResponse, x as ChatResponseChunk, l as CompileRequestInput, h as ContentBlock, ao as ContentDeltaChunk, j as ContentInput, bt as CreateManagedRunInput, av as DoneChunk, E as EngineChatModel, bf as ExtensionContext, d as ExtensionRegistry, al as IdentifiedMessage, $ as ImageBlock, _ as ImageMediaType, b6 as InferJsonSchema, L as JsonObject, K as JsonPrimitive, Z as JsonSchema, X as JsonSchemaArray, W as JsonSchemaBoolean, V as JsonSchemaNumber, Y as JsonSchemaObject, U as JsonSchemaString, Q as JsonSchemaType, N as JsonValue, bo as ManagedAgentRun, bp as ManagedAgentRunHandle, bn as ManagedRunError, bq as ManagedRunEvent, br as ManagedRunEventHandler, bm as ManagedRunStatus, M as Message, k as MessageInput, ai as MessageProviderState, ak as MessageRole, y as ModelExecutionOptions, z as ModelInfo, D as ModelLimits, m as ModelRequest, n as ModelResponse, bh as Observer, bi as ObserverExtensionRegistration, bc 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, a5 as OpenAiReasoningBlock, as as OpenAiReasoningDeltaChunk, ag as OpenAiReasoningEffort, bC as OpenAiReasoningOutputItem, ah as OpenAiReasoningSummary, at as OpenAiReasoningSummaryDeltaChunk, a4 as OpenAiReasoningSummaryText, bA as OpenAiRefusalPart, bD as OpenAiResponsesOutputItem, bE as OpenAiResponsesReasoningParam, O as OpenAiResponsesRequest, be as PayloadByStage, aA as PrepareRequestInput, u as PreparedRequest, v as ProviderCredential, F as ProviderCredentialKind, G as ProviderEndpoints, t as ProviderRequestMutator, au as ProviderRetryChunk, P as ProviderSessionResolver, a9 as ReasoningVisibility, s as ResolvedProviderSession, R as RunTurnDeps, bs as RuntimeManagerOptions, bd as Stage, S as SystemInput, i as TextBlock, b9 as ToolDefinition, aH as ToolExecutionContext, b8 as ToolGenerator, ay as ToolOutputEnvelope, b7 as ToolOutputValue, r as ToolResult, q as ToolResultBlock, ax as ToolResultChunk, a1 as ToolResultContent, a0 as ToolResultContentBlock, aw as ToolResultMeta, b5 as ToolRuntime, aK as ToolRuntimeCompletedEvent, b1 as ToolRuntimeDispatchDecision, aM as ToolRuntimeEvent, b3 as ToolRuntimeEventHandler, aJ as ToolRuntimeOutputChunkEvent, aL as ToolRuntimeRejectedEvent, aI as ToolRuntimeStartedEvent, b2 as ToolRuntimeToolCallHandler, am as ToolSchema, p as ToolUseBlock, ap as ToolUseDeltaChunk, bb as TransformableStage, bg as Transformer, e as TransformerExtensionRegistration, f as TurnInput, T as TurnResult, az as TurnResultStatus, an as Usage } from '../types-3UUDPpJs.js';
|
|
3
3
|
|
|
4
4
|
declare class OperationAbortedError extends Error {
|
|
5
5
|
readonly code = "ABORT_ERR";
|
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0xe291(_0x49c09d,_0x53f9d7){_0x49c09d=_0x49c09d-0x79;var _0x56553b=_0x5655();var _0xe29173=_0x56553b[_0x49c09d];if(_0xe291['HuzlFl']===undefined){var _0x2f3457=function(_0x230201){var _0x2493fc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x39f7de='',_0x52898b='';for(var _0x5ccfe2=0x0,_0x4bb17e,_0xa0695a,_0x17f1d5=0x0;_0xa0695a=_0x230201['charAt'](_0x17f1d5++);~_0xa0695a&&(_0x4bb17e=_0x5ccfe2%0x4?_0x4bb17e*0x40+_0xa0695a:_0xa0695a,_0x5ccfe2++%0x4)?_0x39f7de+=String['fromCharCode'](0xff&_0x4bb17e>>(-0x2*_0x5ccfe2&0x6)):0x0){_0xa0695a=_0x2493fc['indexOf'](_0xa0695a);}for(var _0xc351ef=0x0,_0x42a7f8=_0x39f7de['length'];_0xc351ef<_0x42a7f8;_0xc351ef++){_0x52898b+='%'+('00'+_0x39f7de['charCodeAt'](_0xc351ef)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x52898b);};_0xe291['LujLJT']=_0x2f3457,_0xe291['BmuNNO']={},_0xe291['HuzlFl']=!![];}var _0x3fde08=_0x56553b[0x0],_0x341bd8=_0x49c09d+_0x3fde08,_0x53ce0b=_0xe291['BmuNNO'][_0x341bd8];return!_0x53ce0b?(_0xe29173=_0xe291['LujLJT'](_0xe29173),_0xe291['BmuNNO'][_0x341bd8]=_0xe29173):_0xe29173=_0x53ce0b,_0xe29173;}(function(_0x54934b,_0x47c762){var _0x5cc2f9={_0x2a0d19:0x36b,_0x1bd92b:0x367,_0x3eb79f:0x36c,_0x567edf:0x36b,_0x5f27a9:0x368,_0x3c2a65:0x36e,_0x10d0ec:0x36d,_0x53a9e8:0x363,_0x4679e7:0x35f,_0x1a62a9:0x360,_0x564dd5:0x365,_0x1052e5:0x365,_0x26a9b7:0x363,_0x13e40b:0x36d,_0x3b684a:0x36f,_0x2bbfce:0x2ed,_0x14c0ff:0x2e9,_0x258afa:0x2ed,_0x35ac2e:0x366,_0x17535f:0x366,_0x22c04b:0x368,_0x492d16:0x369},_0x594023={_0x32ef8a:0x2ea},_0x4ac3b1=_0x54934b();function _0x2eb221(_0x28151c,_0x4a89f5,_0x4ce37c,_0x23db62){return _0xe291(_0x28151c-_0x594023._0x32ef8a,_0x23db62);}function _0x4c3446(_0x490389,_0x2873dc,_0xa07011,_0x2e65c7){return _0xe291(_0x2873dc- -0x36d,_0x2e65c7);}while(!![]){try{var _0x111c3c=-parseInt(_0x2eb221(_0x5cc2f9._0x2a0d19,_0x5cc2f9._0x1bd92b,_0x5cc2f9._0x3eb79f,_0x5cc2f9._0x567edf))/0x1*(-parseInt(_0x2eb221(_0x5cc2f9._0x5f27a9,_0x5cc2f9._0x3c2a65,0x362,_0x5cc2f9._0x10d0ec))/0x2)+-parseInt(_0x2eb221(_0x5cc2f9._0x53a9e8,_0x5cc2f9._0x4679e7,0x35d,_0x5cc2f9._0x4679e7))/0x3*(-parseInt(_0x2eb221(0x364,0x367,_0x5cc2f9._0x53a9e8,_0x5cc2f9._0x1a62a9))/0x4)+parseInt(_0x2eb221(_0x5cc2f9._0x564dd5,_0x5cc2f9._0x1052e5,_0x5cc2f9._0x26a9b7,0x363))/0x5+-parseInt(_0x2eb221(_0x5cc2f9._0x13e40b,0x371,0x373,_0x5cc2f9._0x3b684a))/0x6+parseInt(_0x4c3446(-0x2ea,-_0x5cc2f9._0x2bbfce,-0x2e9,-0x2f1))/0x7*(-parseInt(_0x4c3446(-0x2f0,-0x2eb,-_0x5cc2f9._0x14c0ff,-_0x5cc2f9._0x258afa))/0x8)+-parseInt(_0x2eb221(0x367,_0x5cc2f9._0x53a9e8,_0x5cc2f9._0x35ac2e,_0x5cc2f9._0x5f27a9))/0x9+parseInt(_0x2eb221(_0x5cc2f9._0x17535f,_0x5cc2f9._0x22c04b,_0x5cc2f9._0x492d16,_0x5cc2f9._0x1a62a9))/0xa*(parseInt(_0x2eb221(0x369,0x36d,0x365,_0x5cc2f9._0x567edf))/0xb);if(_0x111c3c===_0x47c762)break;else _0x4ac3b1['push'](_0x4ac3b1['shift']());}catch(_0x38ba47){_0x4ac3b1['push'](_0x4ac3b1['shift']());}}}(_0x5655,0x20bd8));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';function _0x5655(){var _0x2f242e=['mtbOC2rvqxi','mtC5nJmXounxs3bxAG','mJeWzg9HzgLP','nZG4otiWCLLwz29Z','mtm3oxfez29zCG','mtG2n0fQAezvtW','ntqYnfjIELfduW','mti3mte4nejSv1rvzW','nNj4DvnJBG','nta3nJy4tMfYvMv3','nZG3nJGWuun2yu5Z'];_0x5655=function(){return _0x2f242e;};return _0x5655();}import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';export{OperationAbortedError,TurnFailedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Diagnostic, Location, Hover, DocumentSymbol, SymbolInformation, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-types';
|
|
2
|
-
import {
|
|
2
|
+
import { b9 as ToolDefinition, ay as ToolOutputEnvelope, ba as AnyToolDefinition, b3 as ToolRuntimeEventHandler, b2 as ToolRuntimeToolCallHandler, b5 as ToolRuntime, L as JsonObject, Y as JsonSchemaObject, Z as JsonSchema, bk as AgentDefinitionFactoryContext, a as AgentOptions, r as ToolResult, b7 as ToolOutputValue, ax as ToolResultChunk, a1 as ToolResultContent, b6 as InferJsonSchema, aH as ToolExecutionContext, am as ToolSchema, N as JsonValue } from '../types-3UUDPpJs.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';
|
|
@@ -675,6 +675,18 @@ declare class ToolRegistry {
|
|
|
675
675
|
declare function validateToolInput<TSchema extends JsonSchemaObject>(input: JsonValue, schema: TSchema): InferJsonSchema<TSchema>;
|
|
676
676
|
declare function deriveFinalToolOutput(chunks: ToolResultChunk[]): ToolResultChunk;
|
|
677
677
|
|
|
678
|
+
declare function createUpdateTopicTool(): ToolDefinition<{
|
|
679
|
+
topic: string;
|
|
680
|
+
}, ToolOutputEnvelope, undefined, {
|
|
681
|
+
readonly type: "object";
|
|
682
|
+
readonly properties: {
|
|
683
|
+
readonly topic: {
|
|
684
|
+
readonly type: "string";
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
readonly required: readonly ["topic"];
|
|
688
|
+
}>;
|
|
689
|
+
|
|
678
690
|
interface ViewFileToolOptions {
|
|
679
691
|
allowedDirs?: readonly string[];
|
|
680
692
|
defaultCwd?: string;
|
|
@@ -794,4 +806,4 @@ declare function resolveAllowedPath(rootDir: string, allowedDirs: readonly strin
|
|
|
794
806
|
declare function assertWorkspaceFile(filePath: string): Promise<void>;
|
|
795
807
|
declare function isProbablyBinary(buffer: Buffer): boolean;
|
|
796
808
|
|
|
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 };
|
|
809
|
+
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, resolveWorkspacePath, search, toNuvinToolSchema, truncateToolOutput, validateToolInput };
|