@nuvin/agent-core 0.0.0-rc.16 → 0.0.0-rc.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +36 -3
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-HRU363DY.js +1 -0
- package/dist/chunk-NHBKADBW.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.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 +53 -4
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-CVC34mwR.d.ts → provider-adapters-D1hQNeFc.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 +15 -2
- package/dist/tools/index.js +1 -1
- package/dist/{types-CSXSwpwn.d.ts → types-11Znykt2.d.ts} +14 -1
- package/package.json +1 -1
- package/dist/chunk-SEP4YYY3.js +0 -1
- package/dist/chunk-T7UKN6FZ.js +0 -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 { I as AutoReasoningEffort, x as ReasoningConfig, K as AnthropicThinkingConfig, L as OpenAiReasoningConfig, h as TurnState } from '../types-11Znykt2.js';
|
|
2
|
+
export { aS as AgentAssistantChunkEvent, aR as AgentAssistantMessageEvent, bm as AgentDefinition, bl as AgentDefinitionFactoryContext, A as AgentEvent, aD as AgentEventContext, b5 as AgentEventHandler, a_ as AgentFinalMessageEvent, b as AgentInput, b1 as AgentLifecycleEvent, aP as AgentModelRequestEvent, aQ as AgentModelResponseEvent, a as AgentOptions, b0 as AgentProviderRetryEvent, aW as AgentReasoningChunkEvent, aV as AgentReasoningMessageEvent, c as AgentSendOptions, aX as AgentToolCallEvent, aY as AgentToolResultEvent, aZ as AgentToolResultMessageEvent, aU as AgentToolUseChunkEvent, aT as AgentToolUseMessageEvent, a$ as AgentTurnCompleteEvent, aO as AgentUserMessageEvent, af as AnthropicAdaptiveThinkingConfig, a9 as AnthropicAssistantContentBlock, ag as AnthropicDisabledThinkingConfig, ae as AnthropicEnabledThinkingConfig, a4 as AnthropicRedactedThinkingBlock, a8 as AnthropicRedactedThinkingWireBlock, as as AnthropicSignatureDeltaChunk, a3 as AnthropicThinkingBlock, ar as AnthropicThinkingDeltaChunk, ac as AnthropicThinkingDisplay, ad as AnthropicThinkingEffort, a7 as AnthropicThinkingWireBlock, bk as AnyExtensionRegistration, bb as AnyToolDefinition, aG as AskUserAnswers, aE as AskUserOption, aF as AskUserQuestion, aH as AskUserQuestionRequest, ak as AssistantContentBlock, ab as AutoReasoningConfig, B as BaseChatModelOptions, aC as ChatModel, C as ChatRequest, p as ChatResponse, y as ChatResponseChunk, m as CompileRequestInput, i as ContentBlock, ap as ContentDeltaChunk, k as ContentInput, bu as CreateManagedRunInput, aw as DoneChunk, E as EngineChatModel, bg as ExtensionContext, e as ExtensionRegistry, am as IdentifiedMessage, a0 as ImageBlock, $ as ImageMediaType, b7 as InferJsonSchema, Q as JsonObject, N as JsonPrimitive, _ as JsonSchema, Z as JsonSchemaArray, Y as JsonSchemaBoolean, X as JsonSchemaNumber, J as JsonSchemaObject, W as JsonSchemaString, V as JsonSchemaType, U as JsonValue, bp as ManagedAgentRun, bq as ManagedAgentRunHandle, bo as ManagedRunError, br as ManagedRunEvent, bs as ManagedRunEventHandler, bn as ManagedRunStatus, M as Message, l as MessageInput, aj as MessageProviderState, al as MessageRole, z as ModelExecutionOptions, D as ModelInfo, F as ModelLimits, n as ModelRequest, o as ModelResponse, bi as Observer, bj as ObserverExtensionRegistration, bd as ObserverOnlyStage, by as OpenAiFunctionCall, bz as OpenAiFunctionCallOutput, bG as OpenAiFunctionTool, bw as OpenAiInputImage, bx as OpenAiInputMessage, bv as OpenAiInputText, bC as OpenAiOutputMessage, bA as OpenAiOutputTextPart, a6 as OpenAiReasoningBlock, at as OpenAiReasoningDeltaChunk, ah as OpenAiReasoningEffort, bD as OpenAiReasoningOutputItem, ai as OpenAiReasoningSummary, au as OpenAiReasoningSummaryDeltaChunk, a5 as OpenAiReasoningSummaryText, bB as OpenAiRefusalPart, bE as OpenAiResponsesOutputItem, bF as OpenAiResponsesReasoningParam, O as OpenAiResponsesRequest, ao as OutputFormat, bf as PayloadByStage, aB as PrepareRequestInput, v as PreparedRequest, w as ProviderCredential, G as ProviderCredentialKind, H as ProviderEndpoints, u as ProviderRequestMutator, av as ProviderRetryChunk, P as ProviderSessionResolver, aa as ReasoningVisibility, t as ResolvedProviderSession, R as RunTurnDeps, bt as RuntimeManagerOptions, be as Stage, S as SystemInput, j as TextBlock, ba as ToolDefinition, aI as ToolExecutionContext, b9 as ToolGenerator, az as ToolOutputEnvelope, b8 as ToolOutputValue, s as ToolResult, r as ToolResultBlock, ay as ToolResultChunk, a2 as ToolResultContent, a1 as ToolResultContentBlock, ax as ToolResultMeta, b6 as ToolRuntime, aL as ToolRuntimeCompletedEvent, b2 as ToolRuntimeDispatchDecision, aN as ToolRuntimeEvent, b4 as ToolRuntimeEventHandler, aK as ToolRuntimeOutputChunkEvent, aM as ToolRuntimeRejectedEvent, aJ as ToolRuntimeStartedEvent, b3 as ToolRuntimeToolCallHandler, T as ToolSchema, q as ToolUseBlock, aq as ToolUseDeltaChunk, bc as TransformableStage, bh as Transformer, f as TransformerExtensionRegistration, g as TurnInput, d as TurnResult, aA as TurnResultStatus, an as Usage } from '../types-11Znykt2.js';
|
|
3
3
|
|
|
4
4
|
declare class OperationAbortedError extends Error {
|
|
5
5
|
readonly code = "ABORT_ERR";
|
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x406257,_0x36ced4){var _0x2e2623={_0x16e8a3:0x2bc,_0x205251:0x2b7,_0x283aa9:0x2bb,_0x1e00cf:0x2ba,_0x32ea1d:0x2b7,_0x3fdbba:0x2b5,_0x2f50bf:0x273,_0x5e1067:0x272,_0x211940:0x26e,_0x15f02a:0x269,_0x1d0d95:0x265,_0x1749c5:0x2b7,_0x5f5973:0x2b0,_0x29d12e:0x2ba,_0x1d6114:0x2bd,_0x247580:0x26d,_0x17906c:0x26b,_0x3264a7:0x26a,_0x3ad192:0x2b9,_0x1cf2e8:0x2bd,_0x40bde6:0x2bd},_0x129b36={_0x5132bc:0x1e3};function _0x18e744(_0x1a4fbe,_0x396f43,_0xbc7067,_0x532cc8){return _0xad3f(_0x1a4fbe- -0x345,_0x532cc8);}function _0x583c53(_0x4ff0e8,_0x51b729,_0x5d65e9,_0x30935e){return _0xad3f(_0x5d65e9-_0x129b36._0x5132bc,_0x51b729);}var _0x3600fb=_0x406257();while(!![]){try{var _0x3216b3=-parseInt(_0x18e744(-_0x2e2623._0x16e8a3,-_0x2e2623._0x205251,-_0x2e2623._0x283aa9,-_0x2e2623._0x1e00cf))/0x1+parseInt(_0x18e744(-_0x2e2623._0x32ea1d,-_0x2e2623._0x3fdbba,-_0x2e2623._0x3fdbba,-0x2b3))/0x2*(-parseInt(_0x583c53(0x26f,_0x2e2623._0x2f50bf,0x26d,_0x2e2623._0x5e1067))/0x3)+-parseInt(_0x583c53(0x270,0x26b,0x270,_0x2e2623._0x211940))/0x4+parseInt(_0x583c53(0x268,0x267,_0x2e2623._0x15f02a,_0x2e2623._0x1d0d95))/0x5*(-parseInt(_0x18e744(-0x2b5,-_0x2e2623._0x1749c5,-_0x2e2623._0x3fdbba,-_0x2e2623._0x5f5973))/0x6)+parseInt(_0x18e744(-_0x2e2623._0x29d12e,-0x2b9,-_0x2e2623._0x1d6114,-_0x2e2623._0x3fdbba))/0x7*(parseInt(_0x583c53(_0x2e2623._0x247580,0x277,_0x2e2623._0x5e1067,0x275))/0x8)+-parseInt(_0x583c53(0x266,_0x2e2623._0x17906c,_0x2e2623._0x3264a7,0x26c))/0x9*(-parseInt(_0x18e744(-_0x2e2623._0x3ad192,-0x2be,-0x2b6,-_0x2e2623._0x1cf2e8))/0xa)+parseInt(_0x18e744(-_0x2e2623._0x1d6114,-0x2bc,-0x2b7,-_0x2e2623._0x40bde6))/0xb;if(_0x3216b3===_0x36ced4)break;else _0x3600fb['push'](_0x3600fb['shift']());}catch(_0x1401f9){_0x3600fb['push'](_0x3600fb['shift']());}}}(_0x1006,0xb62a9));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';function _0x1006(){var _0x5bc2cd=['m3DvyMTlAG','n0flugzPqG','mZaZmhnWzKzHAa','mZm4mtC4nenhDvfQvG','nte4mdyWA1zvAuDL','mte1otq4mtzczLjotNm','nLzPEhPYBW','nZmWnZu3mhfVt29Lvq','ndiZownHz2LWCq','mZmZmda4nZjPvhnjr00','mtmWnZi3ng9Yr3HJAa'];_0x1006=function(){return _0x5bc2cd;};return _0x1006();}function _0xad3f(_0x493e87,_0x2df4aa){_0x493e87=_0x493e87-0x86;var _0x1006fe=_0x1006();var _0xad3fe=_0x1006fe[_0x493e87];if(_0xad3f['dOYYEI']===undefined){var _0x511c5e=function(_0x2e4059){var _0x4bca54='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4478b5='',_0x5ebda1='';for(var _0x27699a=0x0,_0x14ad36,_0xfe4c7,_0x5dfeba=0x0;_0xfe4c7=_0x2e4059['charAt'](_0x5dfeba++);~_0xfe4c7&&(_0x14ad36=_0x27699a%0x4?_0x14ad36*0x40+_0xfe4c7:_0xfe4c7,_0x27699a++%0x4)?_0x4478b5+=String['fromCharCode'](0xff&_0x14ad36>>(-0x2*_0x27699a&0x6)):0x0){_0xfe4c7=_0x4bca54['indexOf'](_0xfe4c7);}for(var _0x343f85=0x0,_0x391447=_0x4478b5['length'];_0x343f85<_0x391447;_0x343f85++){_0x5ebda1+='%'+('00'+_0x4478b5['charCodeAt'](_0x343f85)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5ebda1);};_0xad3f['DoMTFe']=_0x511c5e,_0xad3f['YNNdpl']={},_0xad3f['dOYYEI']=!![];}var _0x5f4d23=_0x1006fe[0x0],_0x44a4ed=_0x493e87+_0x5f4d23,_0x2f01c8=_0xad3f['YNNdpl'][_0x44a4ed];return!_0x2f01c8?(_0xad3fe=_0xad3f['DoMTFe'](_0xad3fe),_0xad3f['YNNdpl'][_0x44a4ed]=_0xad3fe):_0xad3fe=_0x2f01c8,_0xad3fe;}import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';export{OperationAbortedError,TurnFailedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
|
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 { ba as ToolDefinition, az as ToolOutputEnvelope, bb as AnyToolDefinition, b4 as ToolRuntimeEventHandler, b3 as ToolRuntimeToolCallHandler, b6 as ToolRuntime, Q as JsonObject, J as JsonSchemaObject, _ as JsonSchema, bl as AgentDefinitionFactoryContext, a as AgentOptions, s as ToolResult, b8 as ToolOutputValue, ay as ToolResultChunk, a2 as ToolResultContent, b7 as InferJsonSchema, aI as ToolExecutionContext, T as ToolSchema, U as JsonValue } from '../types-11Znykt2.js';
|
|
3
3
|
import { CommandDefinitionReference, SerializedCommandDefinition, MCPAuthConfig, MCPServerConfig } from '@nuvin/config';
|
|
4
4
|
import { OAuthClientProvider } from '@modelcontextprotocol/sdk/client/auth.js';
|
|
5
5
|
import { CallToolResult, ListToolsResult } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -495,6 +495,7 @@ type DelegatedAgentDefinition = AgentOptions | ((ctx: DelegatedAgentFactoryConte
|
|
|
495
495
|
interface CreateDelegationToolsOptions {
|
|
496
496
|
agents?: Record<string, DelegatedAgentDefinition>;
|
|
497
497
|
}
|
|
498
|
+
declare function resolveDelegatedAgentOptions(definition: DelegatedAgentDefinition, ctx: DelegatedAgentFactoryContext): Promise<AgentOptions>;
|
|
498
499
|
declare function createAssignTaskTool(options: CreateDelegationToolsOptions): ToolDefinition<{
|
|
499
500
|
description: string;
|
|
500
501
|
task: string;
|
|
@@ -675,6 +676,18 @@ declare class ToolRegistry {
|
|
|
675
676
|
declare function validateToolInput<TSchema extends JsonSchemaObject>(input: JsonValue, schema: TSchema): InferJsonSchema<TSchema>;
|
|
676
677
|
declare function deriveFinalToolOutput(chunks: ToolResultChunk[]): ToolResultChunk;
|
|
677
678
|
|
|
679
|
+
declare function createUpdateTopicTool(): ToolDefinition<{
|
|
680
|
+
topic: string;
|
|
681
|
+
}, ToolOutputEnvelope, undefined, {
|
|
682
|
+
readonly type: "object";
|
|
683
|
+
readonly properties: {
|
|
684
|
+
readonly topic: {
|
|
685
|
+
readonly type: "string";
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
readonly required: readonly ["topic"];
|
|
689
|
+
}>;
|
|
690
|
+
|
|
678
691
|
interface ViewFileToolOptions {
|
|
679
692
|
allowedDirs?: readonly string[];
|
|
680
693
|
defaultCwd?: string;
|
|
@@ -794,4 +807,4 @@ declare function resolveAllowedPath(rootDir: string, allowedDirs: readonly strin
|
|
|
794
807
|
declare function assertWorkspaceFile(filePath: string): Promise<void>;
|
|
795
808
|
declare function isProbablyBinary(buffer: Buffer): boolean;
|
|
796
809
|
|
|
797
|
-
export { type BashToolInput, type BashToolOptions, type CommandReference, type CommandToolOptions, type CreateDelegationToolsOptions, type DelegatedAgentDefinition, type DelegatedAgentFactoryContext, type FileEditToolOptions, type FileNewToolOptions, type FileReadToolOptions, type GlobToolOptions, type GoogleCseEngineOptions, type GrepToolOptions, type LoadedCommand, type LoadedSkill, type LsToolOptions, type LspService, type LspServiceConfig, type LspToolOptions, type McpConnectionOptions, type McpConnector, type McpOAuthProviderOptions, type McpServerConnectionStatus, type McpToolBundle, type McpToolClient, type McpToolDescriptor, type OllamaEngineOptions, type RipgrepMatch, type SkillReference, type SkillSource, type SkillToolOptions, type TavilyEngineOptions, ToolExecutionError, type ToolOutputOffloadOptions, ToolRegistry, type ViewFileToolOptions, type WebFetchToolOptions, type WebSearchEngine, type WebSearchToolOptions, assertWorkspaceFile, buildMcpHttpHeaders, connectMcpServer, createAskUserTool, createAssignTaskTool, createBashTool, createDelegateToAgentTool, createDelegationTools, createFileEditTool, createFileNewTool, createFileReadTool, createGlobTool, createGrepTool, createInternalToolRuntime, createInvokeCommandTool, createLoadSkillTool, createLsTool, createLspService, createLspTool, createMcpOAuthProvider, createMcpTool, createMcpToolName, createMcpToolsFromServers, createMockToolRuntime, createShellExecTool, createTodoWriteTool, createToolOutput, createViewFileTool, createWebFetchTool, createWebSearchTool, defineTool, deriveFinalToolOutput, filepath, files, isProbablyBinary, normalizeToolOutputValue, resolveAllowedPath, resolveWorkspacePath, search, toNuvinToolSchema, truncateToolOutput, validateToolInput };
|
|
810
|
+
export { type BashToolInput, type BashToolOptions, type CommandReference, type CommandToolOptions, type CreateDelegationToolsOptions, type DelegatedAgentDefinition, type DelegatedAgentFactoryContext, type FileEditToolOptions, type FileNewToolOptions, type FileReadToolOptions, type GlobToolOptions, type GoogleCseEngineOptions, type GrepToolOptions, type LoadedCommand, type LoadedSkill, type LsToolOptions, type LspService, type LspServiceConfig, type LspToolOptions, type McpConnectionOptions, type McpConnector, type McpOAuthProviderOptions, type McpServerConnectionStatus, type McpToolBundle, type McpToolClient, type McpToolDescriptor, type OllamaEngineOptions, type RipgrepMatch, type SkillReference, type SkillSource, type SkillToolOptions, type TavilyEngineOptions, ToolExecutionError, type ToolOutputOffloadOptions, ToolRegistry, type ViewFileToolOptions, type WebFetchToolOptions, type WebSearchEngine, type WebSearchToolOptions, assertWorkspaceFile, buildMcpHttpHeaders, connectMcpServer, createAskUserTool, createAssignTaskTool, createBashTool, createDelegateToAgentTool, createDelegationTools, createFileEditTool, createFileNewTool, createFileReadTool, createGlobTool, createGrepTool, createInternalToolRuntime, createInvokeCommandTool, createLoadSkillTool, createLsTool, createLspService, createLspTool, createMcpOAuthProvider, createMcpTool, createMcpToolName, createMcpToolsFromServers, createMockToolRuntime, createShellExecTool, createTodoWriteTool, createToolOutput, createUpdateTopicTool, createViewFileTool, createWebFetchTool, createWebSearchTool, defineTool, deriveFinalToolOutput, filepath, files, isProbablyBinary, normalizeToolOutputValue, resolveAllowedPath, resolveDelegatedAgentOptions, resolveWorkspacePath, search, toNuvinToolSchema, truncateToolOutput, validateToolInput };
|