@nuvin/nuvin-core 2.0.0-rc.5 → 2.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.
- package/dist/VERSION +2 -2
- package/dist/index.d.ts +41 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/VERSION
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -971,6 +971,7 @@ declare const AgentEventTypes: {
|
|
|
971
971
|
readonly SubAgentMetrics: "sub_agent_metrics";
|
|
972
972
|
readonly UserQuestionRequired: "user_question_required";
|
|
973
973
|
readonly UserQuestionResponse: "user_question_response";
|
|
974
|
+
readonly ToolOutputChunk: "tool_output_chunk";
|
|
974
975
|
};
|
|
975
976
|
type ToolApprovalDecision = 'approve' | 'deny' | 'approve_all' | 'edit';
|
|
976
977
|
type AgentEvent = {
|
|
@@ -1107,6 +1108,13 @@ type AgentEvent = {
|
|
|
1107
1108
|
messageId: string;
|
|
1108
1109
|
questionId: string;
|
|
1109
1110
|
answers: Record<string, string | string[]>;
|
|
1111
|
+
} | {
|
|
1112
|
+
type: typeof AgentEventTypes.ToolOutputChunk;
|
|
1113
|
+
conversationId: string;
|
|
1114
|
+
messageId: string;
|
|
1115
|
+
toolCallId: string;
|
|
1116
|
+
content: string;
|
|
1117
|
+
totalLines: number;
|
|
1110
1118
|
};
|
|
1111
1119
|
interface EventPort {
|
|
1112
1120
|
emit(event: AgentEvent): void | Promise<void>;
|
|
@@ -1522,16 +1530,21 @@ type MemoryScope = 'global' | 'project';
|
|
|
1522
1530
|
type MemorySource = 'extracted' | 'explicit' | 'imported';
|
|
1523
1531
|
interface MemoryEntry {
|
|
1524
1532
|
id: string;
|
|
1533
|
+
topic: string;
|
|
1534
|
+
title?: string;
|
|
1525
1535
|
content: string;
|
|
1526
1536
|
type: MemoryType;
|
|
1527
1537
|
scope: MemoryScope;
|
|
1528
1538
|
tags: string[];
|
|
1539
|
+
keywords: string[];
|
|
1540
|
+
workspaceId?: string;
|
|
1529
1541
|
createdAt: string;
|
|
1530
1542
|
updatedAt: string;
|
|
1531
1543
|
accessCount: number;
|
|
1532
1544
|
lastAccessedAt: string;
|
|
1533
1545
|
source: MemorySource;
|
|
1534
1546
|
}
|
|
1547
|
+
type MemoryEntryInput = Omit<MemoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'accessCount' | 'lastAccessedAt' | 'topic' | 'keywords'> & Partial<Pick<MemoryEntry, 'topic' | 'keywords' | 'title' | 'workspaceId'>>;
|
|
1535
1548
|
interface MemorySearchOptions {
|
|
1536
1549
|
type?: MemoryType;
|
|
1537
1550
|
scope?: MemoryScope;
|
|
@@ -1539,7 +1552,7 @@ interface MemorySearchOptions {
|
|
|
1539
1552
|
limit?: number;
|
|
1540
1553
|
}
|
|
1541
1554
|
interface MemoryStorePort {
|
|
1542
|
-
add(entry:
|
|
1555
|
+
add(entry: MemoryEntryInput): Promise<MemoryEntry>;
|
|
1543
1556
|
update(id: string, updates: Partial<Pick<MemoryEntry, 'content' | 'tags'>>): Promise<MemoryEntry | null>;
|
|
1544
1557
|
delete(id: string): Promise<boolean>;
|
|
1545
1558
|
get(id: string): Promise<MemoryEntry | null>;
|
|
@@ -1565,7 +1578,7 @@ declare class JsonFileMemoryStore implements MemoryStorePort {
|
|
|
1565
1578
|
private persist;
|
|
1566
1579
|
private now;
|
|
1567
1580
|
private generateId;
|
|
1568
|
-
add(input:
|
|
1581
|
+
add(input: MemoryEntryInput): Promise<MemoryEntry>;
|
|
1569
1582
|
update(id: string, updates: Partial<Pick<MemoryEntry, 'content' | 'tags'>>): Promise<MemoryEntry | null>;
|
|
1570
1583
|
delete(id: string): Promise<boolean>;
|
|
1571
1584
|
get(id: string): Promise<MemoryEntry | null>;
|
|
@@ -1785,6 +1798,7 @@ type ToolExecutionContext = {
|
|
|
1785
1798
|
workspaceDir?: string;
|
|
1786
1799
|
delegationDepth?: number;
|
|
1787
1800
|
messageId?: string;
|
|
1801
|
+
toolCallId?: string;
|
|
1788
1802
|
eventPort?: EventPort;
|
|
1789
1803
|
signal?: AbortSignal;
|
|
1790
1804
|
waitForUserQuestion?: (questionId: string, questions: Array<{
|
|
@@ -2178,6 +2192,10 @@ declare const memorySaveToolDefinition: {
|
|
|
2178
2192
|
type: string;
|
|
2179
2193
|
description: string;
|
|
2180
2194
|
};
|
|
2195
|
+
topic: {
|
|
2196
|
+
type: string;
|
|
2197
|
+
description: string;
|
|
2198
|
+
};
|
|
2181
2199
|
type: {
|
|
2182
2200
|
type: string;
|
|
2183
2201
|
enum: string[];
|
|
@@ -2195,15 +2213,35 @@ declare const memorySaveToolDefinition: {
|
|
|
2195
2213
|
};
|
|
2196
2214
|
description: string;
|
|
2197
2215
|
};
|
|
2216
|
+
keywords: {
|
|
2217
|
+
type: string;
|
|
2218
|
+
items: {
|
|
2219
|
+
type: string;
|
|
2220
|
+
};
|
|
2221
|
+
description: string;
|
|
2222
|
+
};
|
|
2223
|
+
title: {
|
|
2224
|
+
type: string;
|
|
2225
|
+
description: string;
|
|
2226
|
+
};
|
|
2227
|
+
updateMode: {
|
|
2228
|
+
type: string;
|
|
2229
|
+
enum: string[];
|
|
2230
|
+
description: string;
|
|
2231
|
+
};
|
|
2198
2232
|
};
|
|
2199
2233
|
required: string[];
|
|
2200
2234
|
};
|
|
2201
2235
|
};
|
|
2202
2236
|
interface MemorySaveToolInput {
|
|
2203
2237
|
content: string;
|
|
2238
|
+
topic?: string;
|
|
2239
|
+
title?: string;
|
|
2204
2240
|
type: 'semantic' | 'episodic' | 'procedural';
|
|
2205
2241
|
scope: 'global' | 'project';
|
|
2206
2242
|
tags?: string[];
|
|
2243
|
+
keywords?: string[];
|
|
2244
|
+
updateMode?: 'merge' | 'replace';
|
|
2207
2245
|
}
|
|
2208
2246
|
|
|
2209
2247
|
declare class ToolRegistry implements ToolPort, AgentAwareToolPort, OrchestratorAwareToolPort {
|
|
@@ -3948,4 +3986,4 @@ declare function resolveBackspaces(s: string): string;
|
|
|
3948
3986
|
declare function stripAnsiAndControls(s: string): string;
|
|
3949
3987
|
declare function canonicalizeTerminalPaste(raw: string): string;
|
|
3950
3988
|
|
|
3951
|
-
export { AGENT_CREATOR_SYSTEM_PROMPT, type AXElement, type AXPressResult, type AXSetValueResult, type AXSnapshotResult, AbortError, type AgentAwareToolPort, type AgentCatalog, type AgentConfig, type AgentEvent, AgentEventTypes, AgentFilePersistence, AgentManager, AgentManagerCommandRunner, AgentOrchestrator, AgentRegistry, type AgentSession, type AgentStateManager, type AgentTemplate, type AnnotateResult, AnthropicAISDKLLM, type AskUserArgs, type AskUserMetadata, AskUserTool, type AssignErrorResult, type AssignParams, type AssignResult, type AssignSuccessResult$1 as AssignSuccessResult, type AssignTaskArgs, type AssignTaskMetadata, type AuthFlowResult, type AuthServerMetadata, type BaseLLMOptions, type BashErrorResult, type BashParams, type BashResult, type BashSuccessResult$1 as BashSuccessResult, BashTool, type BashToolArgs, type BashToolMetadata, CommandFilePersistence, CommandHookExecutor, type CommandMetadata, type CommandSource, type CompleteAgent, type CompleteCustomCommand, CompositeHookPort, CompositeToolPort, type ComputerAction, type ComputerBackend, type ComputerUseArgs, type ComputerUseMetadata, type ComputerUseParams, type ComputerUseResult, ComputerUseTool, type Conversation, ConversationContext, type ConversationMetadata, type ConversationSnapshot, ConversationStore, CoreMCPClient, type CustomCommandFrontmatter, type CustomCommandTemplate, DEFAULT_RETRY_CONFIG, DefaultAgentStateManager, DefaultDelegationService, DefaultSpecialistAgentFactory, type DelegationMetadata, type DelegationService, type DelegationServiceConfig, DelegationServiceFactory, type DirEntry, type ErrorMetadata, ErrorReason, type ExecResult, type ExecResultError, type ExecResultSuccess, type FileEditArgs, type FileEditMetadata, type FileEditResult, type FileEditSuccessResult$1 as FileEditSuccessResult, type FileMetadata, type FileNewArgs, type FileNewMetadata, type FileNewParams, type FileNewResult, type FileNewSuccessResult$1 as FileNewSuccessResult, type FileReadArgs, type FileReadErrorResult, type FileReadMetadata, type FileReadParams, type FileReadResult, type FileReadSuccessResult$1 as FileReadSuccessResult, type FolderTreeOptions, type FunctionTool, GithubLLM, type GlobArgs, type GlobParams, type GlobResult, type GlobSuccessResult$1 as GlobSuccessResult, type GlobToolMetadata, type GrepArgs, type GrepParams, type GrepResult, type GrepSuccessResult$1 as GrepSuccessResult, type GrepToolMetadata, type HookContext, HookDecision, type HookDecisionType, type HookDefinition, type HookEventConfig, type HookEventType, HookEventTypes, type HookPort, HookRegistry, type HookResult, type HooksConfig, InMemoryMemory, InMemoryMetadata, InMemoryMetricsPort, JsonFileMemoryPersistence, JsonFileMemoryStore, type LLMConfig, LLMError, type LLMFactory, type LLMOptions, type LLMPort, LLMResolver, type LineRangeMetadata, type LsArgs, type LsMetadata, type LsParams, type LsResult, type LsSuccessResult$1 as LsSuccessResult, type LspService, LspTool, type MCPAuthOptions, type MCPCallResult, type MCPConfig, type MCPHttpOptions, MCPOAuthClient, type MCPOAuthConfig, type MCPOptions, type MCPServerConfig, type MCPStdioOptions, type MCPToolCall, MCPToolPort, type MCPToolSchema, type MemoryCandidate, type MemoryEntry, MemoryExtractor, type MemoryPort, MemoryPortMetadataAdapter, type MemorySaveToolInput, type MemoryScope, type MemorySearchOptions, type MemorySource, type MemoryStorePort, type MemoryType, type Message, type MessageContent, type MessageContentPart, type MetadataPort, type MetricsChangeHandler, type MetricsPort, type MetricsSnapshot, type ModelInfo, type ModelLimits, NoopMetricsPort, NoopReminders, type OrchestratorAwareToolPort, type ParseResult, PersistedMemory, PersistingConsoleEventPort, type ProtectedResourceMetadata, type RetryConfig, RetryTransport, RuntimeEnv, type SendMessageOptions, SimpleContextBuilder, SimpleCost, SimpleId, type SkillErrorResult, type SkillMetadata, type SkillParams, type SkillProvider, type SkillResult, type SkillSuccessResult, SkillTool, type SkillInfo as SkillToolInfo, type SpecialistAgentConfig, type SpecialistAgentResult, type StoredTokens, type SubAgentState, type SubAgentToolCall, SystemClock, type TaskOutputMetadata, type TaskOutputParams, type TaskOutputResult, type TaskOutputSuccessResult, type TodoWriteArgs, type TodoWriteMetadata, type TodoWriteResult, type TodoWriteSuccessResult$1 as TodoWriteSuccessResult, type TokenStorage, type ToolApprovalDecision, type ToolArguments, type ToolCall, type ToolCallConversionResult, type ToolCallValidation, type ToolErrorMetadata, type ToolExecutionContext, type ToolExecutionResult, type ToolMetadataMap, type ToolName, type ToolParameterMap, type ToolPort, ToolRegistry, type ToolValidator, type TypedToolInvocation, type UsageData, type UserAttachment, type UserMessagePayload, type ValidationError, type ValidationResult, type WebFetchArgs, type WebFetchMetadata, type WebFetchParams, type WebFetchResult, type WebFetchSuccessResult$1 as WebFetchSuccessResult, type WebSearchArgs, type WebSearchMetadata, type WebSearchParams, type WebSearchResult, type WebSearchSuccessResult$1 as WebSearchSuccessResult, type WebSearchToolResult, assignTaskSchema, bashToolSchema, buildAISDKToolResultOutput, buildAgentCreationPrompt, buildInjectedSystem, canonicalizeTerminalPaste, computerToolSchema, convertToolCall, convertToolCalls, convertToolCallsWithErrorHandling, createEmptySnapshot, createLLM, deduplicateModels, err, fileEditSchema, fileNewSchema, fileReadSchema, formatMemoriesForPrompt, generateFolderTree, getAvailableProviders, getFallbackLimits, getProviderAuthMethods, getProviderDefaultModels, getProviderLabel, globToolSchema, grepToolSchema, isAssignResult, isAssignSuccess, isAssignTaskArgs, isBashResult, isBashSuccess, isBashToolArgs, isComputerResult, isComputerSuccess, isComputerUseArgs, isError, isFileEditArgs, isFileEditResult, isFileEditSuccess, isFileNewArgs, isFileNewResult, isFileNewSuccess, isFileReadArgs, isFileReadResult, isFileReadSuccess, isGlobArgs, isGlobResult, isGlobSuccess, isGrepArgs, isGrepResult, isGrepSuccess, isInsufficientScopeError, isJsonResult, isLsArgs, isLsToolResult, isLsToolSuccess, isRetryableError, isRetryableStatusCode, isSuccess, isSuccessJson, isSuccessText, isTextResult, isTodoWriteArgs, isTodoWriteResult, isTodoWriteSuccess, isUnauthorizedError, isValidCommandId, isWebFetchArgs, isWebFetchResult, isWebFetchSuccess, isWebSearchArgs, isWebSearchResult, isWebSearchSuccess, loadHooksFromFrontmatter, lsToolSchema, memorySaveToolDefinition, mergeAgentConfig, normalizeModelInfo, normalizeModelLimits, normalizeNewlines, okJson, okText, parseJSON, parseSubAgentToolCallArguments, parseToolArguments, parseWWWAuthenticate, rankMemories, renderTemplate, resolveBackspaces, resolveCarriageReturns, sanitizeCommandId, stripAnsiAndControls, supportsGetModels, todoWriteSchema, toolSchemas, toolValidators, validateToolParams, webFetchSchema, webSearchSchema };
|
|
3989
|
+
export { AGENT_CREATOR_SYSTEM_PROMPT, type AXElement, type AXPressResult, type AXSetValueResult, type AXSnapshotResult, AbortError, type AgentAwareToolPort, type AgentCatalog, type AgentConfig, type AgentEvent, AgentEventTypes, AgentFilePersistence, AgentManager, AgentManagerCommandRunner, AgentOrchestrator, AgentRegistry, type AgentSession, type AgentStateManager, type AgentTemplate, type AnnotateResult, AnthropicAISDKLLM, type AskUserArgs, type AskUserMetadata, AskUserTool, type AssignErrorResult, type AssignParams, type AssignResult, type AssignSuccessResult$1 as AssignSuccessResult, type AssignTaskArgs, type AssignTaskMetadata, type AuthFlowResult, type AuthServerMetadata, type BaseLLMOptions, type BashErrorResult, type BashParams, type BashResult, type BashSuccessResult$1 as BashSuccessResult, BashTool, type BashToolArgs, type BashToolMetadata, CommandFilePersistence, CommandHookExecutor, type CommandMetadata, type CommandSource, type CompleteAgent, type CompleteCustomCommand, CompositeHookPort, CompositeToolPort, type ComputerAction, type ComputerBackend, type ComputerUseArgs, type ComputerUseMetadata, type ComputerUseParams, type ComputerUseResult, ComputerUseTool, type Conversation, ConversationContext, type ConversationMetadata, type ConversationSnapshot, ConversationStore, CoreMCPClient, type CustomCommandFrontmatter, type CustomCommandTemplate, DEFAULT_RETRY_CONFIG, DefaultAgentStateManager, DefaultDelegationService, DefaultSpecialistAgentFactory, type DelegationMetadata, type DelegationService, type DelegationServiceConfig, DelegationServiceFactory, type DirEntry, type ErrorMetadata, ErrorReason, type ExecResult, type ExecResultError, type ExecResultSuccess, type FileEditArgs, type FileEditMetadata, type FileEditResult, type FileEditSuccessResult$1 as FileEditSuccessResult, type FileMetadata, type FileNewArgs, type FileNewMetadata, type FileNewParams, type FileNewResult, type FileNewSuccessResult$1 as FileNewSuccessResult, type FileReadArgs, type FileReadErrorResult, type FileReadMetadata, type FileReadParams, type FileReadResult, type FileReadSuccessResult$1 as FileReadSuccessResult, type FolderTreeOptions, type FunctionTool, GithubLLM, type GlobArgs, type GlobParams, type GlobResult, type GlobSuccessResult$1 as GlobSuccessResult, type GlobToolMetadata, type GrepArgs, type GrepParams, type GrepResult, type GrepSuccessResult$1 as GrepSuccessResult, type GrepToolMetadata, type HookContext, HookDecision, type HookDecisionType, type HookDefinition, type HookEventConfig, type HookEventType, HookEventTypes, type HookPort, HookRegistry, type HookResult, type HooksConfig, InMemoryMemory, InMemoryMetadata, InMemoryMetricsPort, JsonFileMemoryPersistence, JsonFileMemoryStore, type LLMConfig, LLMError, type LLMFactory, type LLMOptions, type LLMPort, LLMResolver, type LineRangeMetadata, type LsArgs, type LsMetadata, type LsParams, type LsResult, type LsSuccessResult$1 as LsSuccessResult, type LspService, LspTool, type MCPAuthOptions, type MCPCallResult, type MCPConfig, type MCPHttpOptions, MCPOAuthClient, type MCPOAuthConfig, type MCPOptions, type MCPServerConfig, type MCPStdioOptions, type MCPToolCall, MCPToolPort, type MCPToolSchema, type MemoryCandidate, type MemoryEntry, type MemoryEntryInput, MemoryExtractor, type MemoryPort, MemoryPortMetadataAdapter, type MemorySaveToolInput, type MemoryScope, type MemorySearchOptions, type MemorySource, type MemoryStorePort, type MemoryType, type Message, type MessageContent, type MessageContentPart, type MetadataPort, type MetricsChangeHandler, type MetricsPort, type MetricsSnapshot, type ModelInfo, type ModelLimits, NoopMetricsPort, NoopReminders, type OrchestratorAwareToolPort, type ParseResult, PersistedMemory, PersistingConsoleEventPort, type ProtectedResourceMetadata, type RetryConfig, RetryTransport, RuntimeEnv, type SendMessageOptions, SimpleContextBuilder, SimpleCost, SimpleId, type SkillErrorResult, type SkillMetadata, type SkillParams, type SkillProvider, type SkillResult, type SkillSuccessResult, SkillTool, type SkillInfo as SkillToolInfo, type SpecialistAgentConfig, type SpecialistAgentResult, type StoredTokens, type SubAgentState, type SubAgentToolCall, SystemClock, type TaskOutputMetadata, type TaskOutputParams, type TaskOutputResult, type TaskOutputSuccessResult, type TodoWriteArgs, type TodoWriteMetadata, type TodoWriteResult, type TodoWriteSuccessResult$1 as TodoWriteSuccessResult, type TokenStorage, type ToolApprovalDecision, type ToolArguments, type ToolCall, type ToolCallConversionResult, type ToolCallValidation, type ToolErrorMetadata, type ToolExecutionContext, type ToolExecutionResult, type ToolMetadataMap, type ToolName, type ToolParameterMap, type ToolPort, ToolRegistry, type ToolValidator, type TypedToolInvocation, type UsageData, type UserAttachment, type UserMessagePayload, type ValidationError, type ValidationResult, type WebFetchArgs, type WebFetchMetadata, type WebFetchParams, type WebFetchResult, type WebFetchSuccessResult$1 as WebFetchSuccessResult, type WebSearchArgs, type WebSearchMetadata, type WebSearchParams, type WebSearchResult, type WebSearchSuccessResult$1 as WebSearchSuccessResult, type WebSearchToolResult, assignTaskSchema, bashToolSchema, buildAISDKToolResultOutput, buildAgentCreationPrompt, buildInjectedSystem, canonicalizeTerminalPaste, computerToolSchema, convertToolCall, convertToolCalls, convertToolCallsWithErrorHandling, createEmptySnapshot, createLLM, deduplicateModels, err, fileEditSchema, fileNewSchema, fileReadSchema, formatMemoriesForPrompt, generateFolderTree, getAvailableProviders, getFallbackLimits, getProviderAuthMethods, getProviderDefaultModels, getProviderLabel, globToolSchema, grepToolSchema, isAssignResult, isAssignSuccess, isAssignTaskArgs, isBashResult, isBashSuccess, isBashToolArgs, isComputerResult, isComputerSuccess, isComputerUseArgs, isError, isFileEditArgs, isFileEditResult, isFileEditSuccess, isFileNewArgs, isFileNewResult, isFileNewSuccess, isFileReadArgs, isFileReadResult, isFileReadSuccess, isGlobArgs, isGlobResult, isGlobSuccess, isGrepArgs, isGrepResult, isGrepSuccess, isInsufficientScopeError, isJsonResult, isLsArgs, isLsToolResult, isLsToolSuccess, isRetryableError, isRetryableStatusCode, isSuccess, isSuccessJson, isSuccessText, isTextResult, isTodoWriteArgs, isTodoWriteResult, isTodoWriteSuccess, isUnauthorizedError, isValidCommandId, isWebFetchArgs, isWebFetchResult, isWebFetchSuccess, isWebSearchArgs, isWebSearchResult, isWebSearchSuccess, loadHooksFromFrontmatter, lsToolSchema, memorySaveToolDefinition, mergeAgentConfig, normalizeModelInfo, normalizeModelLimits, normalizeNewlines, okJson, okText, parseJSON, parseSubAgentToolCallArguments, parseToolArguments, parseWWWAuthenticate, rankMemories, renderTemplate, resolveBackspaces, resolveCarriageReturns, sanitizeCommandId, stripAnsiAndControls, supportsGetModels, todoWriteSchema, toolSchemas, toolValidators, validateToolParams, webFetchSchema, webSearchSchema };
|