@nuvin/nuvin-core 1.9.4 → 1.10.0
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 +64 -2
- package/dist/index.js +1 -7133
- package/package.json +1 -1
package/dist/VERSION
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -235,6 +235,17 @@ type DirLsArgs = {
|
|
|
235
235
|
limit?: number;
|
|
236
236
|
description?: string;
|
|
237
237
|
};
|
|
238
|
+
type GlobArgs = {
|
|
239
|
+
pattern: string;
|
|
240
|
+
path?: string;
|
|
241
|
+
description?: string;
|
|
242
|
+
};
|
|
243
|
+
type GrepArgs = {
|
|
244
|
+
pattern: string;
|
|
245
|
+
path?: string;
|
|
246
|
+
include?: string;
|
|
247
|
+
description?: string;
|
|
248
|
+
};
|
|
238
249
|
type WebSearchArgs = {
|
|
239
250
|
query: string;
|
|
240
251
|
count?: number;
|
|
@@ -267,7 +278,7 @@ type AssignTaskArgs = {
|
|
|
267
278
|
task: string;
|
|
268
279
|
description: string;
|
|
269
280
|
};
|
|
270
|
-
type ToolArguments = BashToolArgs | FileReadArgs | FileEditArgs | FileNewArgs | DirLsArgs | WebSearchArgs | WebFetchArgs | TodoWriteArgs | AssignTaskArgs;
|
|
281
|
+
type ToolArguments = BashToolArgs | FileReadArgs | FileEditArgs | FileNewArgs | DirLsArgs | GlobArgs | GrepArgs | WebSearchArgs | WebFetchArgs | TodoWriteArgs | AssignTaskArgs;
|
|
271
282
|
/**
|
|
272
283
|
* Type guard to safely parse tool arguments
|
|
273
284
|
*/
|
|
@@ -283,6 +294,8 @@ declare function isTodoWriteArgs(args: ToolArguments): args is TodoWriteArgs;
|
|
|
283
294
|
declare function isAssignTaskArgs(args: ToolArguments): args is AssignTaskArgs;
|
|
284
295
|
declare function isWebSearchArgs(args: ToolArguments): args is WebSearchArgs;
|
|
285
296
|
declare function isWebFetchArgs(args: ToolArguments): args is WebFetchArgs;
|
|
297
|
+
declare function isGlobArgs(args: ToolArguments): args is GlobArgs;
|
|
298
|
+
declare function isGrepArgs(args: ToolArguments): args is GrepArgs;
|
|
286
299
|
declare function isDirLsArgs(args: ToolArguments): args is DirLsArgs;
|
|
287
300
|
type ToolParameterMap = {
|
|
288
301
|
bash_tool: BashToolArgs;
|
|
@@ -290,6 +303,8 @@ type ToolParameterMap = {
|
|
|
290
303
|
file_edit: FileEditArgs;
|
|
291
304
|
file_new: FileNewArgs;
|
|
292
305
|
dir_ls: DirLsArgs;
|
|
306
|
+
glob: GlobArgs;
|
|
307
|
+
grep: GrepArgs;
|
|
293
308
|
web_search: WebSearchArgs;
|
|
294
309
|
web_fetch: WebFetchArgs;
|
|
295
310
|
todo_write: TodoWriteArgs;
|
|
@@ -380,6 +395,20 @@ type DirLsMetadata = {
|
|
|
380
395
|
limit: number;
|
|
381
396
|
includeHidden: boolean;
|
|
382
397
|
};
|
|
398
|
+
type GlobToolMetadata = {
|
|
399
|
+
searchPath: string;
|
|
400
|
+
pattern: string;
|
|
401
|
+
count: number;
|
|
402
|
+
truncated: boolean;
|
|
403
|
+
};
|
|
404
|
+
type GrepToolMetadata = {
|
|
405
|
+
searchPath: string;
|
|
406
|
+
pattern: string;
|
|
407
|
+
include?: string;
|
|
408
|
+
matchCount: number;
|
|
409
|
+
fileCount: number;
|
|
410
|
+
truncated: boolean;
|
|
411
|
+
};
|
|
383
412
|
type WebSearchMetadata = {
|
|
384
413
|
offset: number;
|
|
385
414
|
totalRequested: number;
|
|
@@ -429,6 +458,8 @@ type ToolMetadataMap = {
|
|
|
429
458
|
file_edit: FileEditMetadata;
|
|
430
459
|
file_new: FileNewMetadata;
|
|
431
460
|
dir_ls: DirLsMetadata;
|
|
461
|
+
glob: GlobToolMetadata;
|
|
462
|
+
grep: GrepToolMetadata;
|
|
432
463
|
web_search: WebSearchMetadata;
|
|
433
464
|
web_fetch: WebFetchMetadata;
|
|
434
465
|
todo_write: TodoWriteMetadata;
|
|
@@ -1732,6 +1763,31 @@ type DirLsSuccessResult$1 = {
|
|
|
1732
1763
|
};
|
|
1733
1764
|
type DirLsResult = DirLsSuccessResult$1 | ExecResultError;
|
|
1734
1765
|
|
|
1766
|
+
type GlobParams = {
|
|
1767
|
+
pattern: string;
|
|
1768
|
+
path?: string;
|
|
1769
|
+
};
|
|
1770
|
+
type GlobSuccessResult$1 = {
|
|
1771
|
+
status: 'success';
|
|
1772
|
+
type: 'text';
|
|
1773
|
+
result: string;
|
|
1774
|
+
metadata?: GlobToolMetadata;
|
|
1775
|
+
};
|
|
1776
|
+
type GlobResult = GlobSuccessResult$1 | ExecResultError;
|
|
1777
|
+
|
|
1778
|
+
type GrepParams = {
|
|
1779
|
+
pattern: string;
|
|
1780
|
+
path?: string;
|
|
1781
|
+
include?: string;
|
|
1782
|
+
};
|
|
1783
|
+
type GrepSuccessResult$1 = {
|
|
1784
|
+
status: 'success';
|
|
1785
|
+
type: 'text';
|
|
1786
|
+
result: string;
|
|
1787
|
+
metadata?: GrepToolMetadata;
|
|
1788
|
+
};
|
|
1789
|
+
type GrepResult = GrepSuccessResult$1 | ExecResultError;
|
|
1790
|
+
|
|
1735
1791
|
/**
|
|
1736
1792
|
* WebSearchTool — Google Programmable Search Engine (CSE) ONLY
|
|
1737
1793
|
* -----------------------------------------------------------------
|
|
@@ -1850,6 +1906,8 @@ type FileReadSuccessResult = WithToolExecutionFields<FileReadSuccessResult$1>;
|
|
|
1850
1906
|
type FileEditSuccessResult = WithToolExecutionFields<FileEditSuccessResult$1>;
|
|
1851
1907
|
type FileNewSuccessResult = WithToolExecutionFields<FileNewSuccessResult$1>;
|
|
1852
1908
|
type DirLsSuccessResult = WithToolExecutionFields<DirLsSuccessResult$1>;
|
|
1909
|
+
type GlobSuccessResult = WithToolExecutionFields<GlobSuccessResult$1>;
|
|
1910
|
+
type GrepSuccessResult = WithToolExecutionFields<GrepSuccessResult$1>;
|
|
1853
1911
|
type WebSearchSuccessResult = WithToolExecutionFields<WebSearchSuccessResult$1>;
|
|
1854
1912
|
type WebFetchSuccessResult = WithToolExecutionFields<WebFetchSuccessResult$1>;
|
|
1855
1913
|
type TodoWriteSuccessResult = WithToolExecutionFields<TodoWriteSuccessResult$1>;
|
|
@@ -1864,6 +1922,10 @@ declare function isFileNewResult(result: ToolExecutionResult): result is ToolExe
|
|
|
1864
1922
|
declare function isFileNewSuccess(result: ToolExecutionResult): result is FileNewSuccessResult;
|
|
1865
1923
|
declare function isDirLsResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
1866
1924
|
declare function isDirLsSuccess(result: ToolExecutionResult): result is DirLsSuccessResult;
|
|
1925
|
+
declare function isGlobResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
1926
|
+
declare function isGlobSuccess(result: ToolExecutionResult): result is GlobSuccessResult;
|
|
1927
|
+
declare function isGrepResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
1928
|
+
declare function isGrepSuccess(result: ToolExecutionResult): result is GrepSuccessResult;
|
|
1867
1929
|
declare function isWebSearchResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
1868
1930
|
declare function isWebSearchSuccess(result: ToolExecutionResult): result is WebSearchSuccessResult;
|
|
1869
1931
|
declare function isWebFetchResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
@@ -2285,4 +2347,4 @@ declare function resolveBackspaces(s: string): string;
|
|
|
2285
2347
|
declare function stripAnsiAndControls(s: string): string;
|
|
2286
2348
|
declare function canonicalizeTerminalPaste(raw: string): string;
|
|
2287
2349
|
|
|
2288
|
-
export { AGENT_CREATOR_SYSTEM_PROMPT, AbortError, type AgentAwareToolPort, type AgentCatalog, type AgentConfig, type AgentEvent, AgentEventTypes, AgentFilePersistence, AgentManager, AgentManagerCommandRunner, AgentOrchestrator, AgentRegistry, type AgentTemplate, AnthropicAISDKLLM, type AssignErrorResult, type AssignParams, type AssignResult, type AssignSuccessResult$1 as AssignSuccessResult, type AssignTaskArgs, type AssignTaskMetadata, type BaseLLMOptions, type BashErrorResult, type BashParams, type BashResult, type BashSuccessResult$1 as BashSuccessResult, BashTool, type BashToolArgs, type BashToolMetadata, CommandFilePersistence, type CommandMetadata, type CommandSource, type CompleteAgent, type CompleteCustomCommand, CompositeToolPort, type Conversation, ConversationContext, type ConversationMetadata, type ConversationSnapshot, ConversationStore, CoreMCPClient, type CustomCommandFrontmatter, type CustomCommandTemplate, DEFAULT_RETRY_CONFIG, DefaultDelegationPolicy, DefaultDelegationResultFormatter, DefaultDelegationService, DefaultSpecialistAgentFactory, type DelegationMetadata, type DelegationService, type DelegationServiceConfig, DelegationServiceFactory, type DirEntry, type DirLsArgs, type DirLsMetadata, type DirLsParams, type DirLsResult, type DirLsSuccessResult$1 as DirLsSuccessResult, 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, InMemoryMemory, InMemoryMetadata, InMemoryMetricsPort, JsonFileMemoryPersistence, type LLMConfig, LLMError, type LLMFactory, type LLMOptions, type LLMPort, LLMResolver, type LineRangeMetadata, type MCPConfig, type MCPServerConfig, MCPToolPort, type MemoryPort, MemoryPortMetadataAdapter, 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 RetryConfig, RetryTransport, RuntimeEnv, type SendMessageOptions, SimpleContextBuilder, SimpleCost, SimpleId, type SpecialistAgentConfig, type SpecialistAgentResult, type SubAgentState, type SubAgentToolCall, SystemClock, type TodoWriteArgs, type TodoWriteMetadata, type TodoWriteResult, type TodoWriteSuccessResult$1 as TodoWriteSuccessResult, type ToolApprovalDecision, type ToolArguments, type ToolCall, 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 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, buildAgentCreationPrompt, buildInjectedSystem, canonicalizeTerminalPaste, convertToolCall, convertToolCalls, createEmptySnapshot, createLLM, deduplicateModels, err, generateFolderTree, getAvailableProviders, getFallbackLimits, getProviderLabel, isAssignResult, isAssignSuccess, isAssignTaskArgs, isBashResult, isBashSuccess, isBashToolArgs, isDirLsArgs, isDirLsResult, isDirLsSuccess, isError, isFileEditArgs, isFileEditResult, isFileEditSuccess, isFileNewArgs, isFileNewResult, isFileNewSuccess, isFileReadArgs, isFileReadResult, isFileReadSuccess, isJsonResult, isRetryableError, isRetryableStatusCode, isSuccess, isSuccessJson, isSuccessText, isTextResult, isTodoWriteArgs, isTodoWriteResult, isTodoWriteSuccess, isValidCommandId, isWebFetchArgs, isWebFetchResult, isWebFetchSuccess, isWebSearchArgs, isWebSearchResult, isWebSearchSuccess, normalizeModelInfo, normalizeModelLimits, normalizeNewlines, okJson, okText, parseJSON, parseSubAgentToolCallArguments, parseToolArguments, renderTemplate, resolveBackspaces, resolveCarriageReturns, sanitizeCommandId, stripAnsiAndControls, supportsGetModels, toolValidators };
|
|
2350
|
+
export { AGENT_CREATOR_SYSTEM_PROMPT, AbortError, type AgentAwareToolPort, type AgentCatalog, type AgentConfig, type AgentEvent, AgentEventTypes, AgentFilePersistence, AgentManager, AgentManagerCommandRunner, AgentOrchestrator, AgentRegistry, type AgentTemplate, AnthropicAISDKLLM, type AssignErrorResult, type AssignParams, type AssignResult, type AssignSuccessResult$1 as AssignSuccessResult, type AssignTaskArgs, type AssignTaskMetadata, type BaseLLMOptions, type BashErrorResult, type BashParams, type BashResult, type BashSuccessResult$1 as BashSuccessResult, BashTool, type BashToolArgs, type BashToolMetadata, CommandFilePersistence, type CommandMetadata, type CommandSource, type CompleteAgent, type CompleteCustomCommand, CompositeToolPort, type Conversation, ConversationContext, type ConversationMetadata, type ConversationSnapshot, ConversationStore, CoreMCPClient, type CustomCommandFrontmatter, type CustomCommandTemplate, DEFAULT_RETRY_CONFIG, DefaultDelegationPolicy, DefaultDelegationResultFormatter, DefaultDelegationService, DefaultSpecialistAgentFactory, type DelegationMetadata, type DelegationService, type DelegationServiceConfig, DelegationServiceFactory, type DirEntry, type DirLsArgs, type DirLsMetadata, type DirLsParams, type DirLsResult, type DirLsSuccessResult$1 as DirLsSuccessResult, 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, InMemoryMemory, InMemoryMetadata, InMemoryMetricsPort, JsonFileMemoryPersistence, type LLMConfig, LLMError, type LLMFactory, type LLMOptions, type LLMPort, LLMResolver, type LineRangeMetadata, type MCPConfig, type MCPServerConfig, MCPToolPort, type MemoryPort, MemoryPortMetadataAdapter, 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 RetryConfig, RetryTransport, RuntimeEnv, type SendMessageOptions, SimpleContextBuilder, SimpleCost, SimpleId, type SpecialistAgentConfig, type SpecialistAgentResult, type SubAgentState, type SubAgentToolCall, SystemClock, type TodoWriteArgs, type TodoWriteMetadata, type TodoWriteResult, type TodoWriteSuccessResult$1 as TodoWriteSuccessResult, type ToolApprovalDecision, type ToolArguments, type ToolCall, 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 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, buildAgentCreationPrompt, buildInjectedSystem, canonicalizeTerminalPaste, convertToolCall, convertToolCalls, createEmptySnapshot, createLLM, deduplicateModels, err, generateFolderTree, getAvailableProviders, getFallbackLimits, getProviderLabel, isAssignResult, isAssignSuccess, isAssignTaskArgs, isBashResult, isBashSuccess, isBashToolArgs, isDirLsArgs, isDirLsResult, isDirLsSuccess, isError, isFileEditArgs, isFileEditResult, isFileEditSuccess, isFileNewArgs, isFileNewResult, isFileNewSuccess, isFileReadArgs, isFileReadResult, isFileReadSuccess, isGlobArgs, isGlobResult, isGlobSuccess, isGrepArgs, isGrepResult, isGrepSuccess, isJsonResult, isRetryableError, isRetryableStatusCode, isSuccess, isSuccessJson, isSuccessText, isTextResult, isTodoWriteArgs, isTodoWriteResult, isTodoWriteSuccess, isValidCommandId, isWebFetchArgs, isWebFetchResult, isWebFetchSuccess, isWebSearchArgs, isWebSearchResult, isWebSearchSuccess, normalizeModelInfo, normalizeModelLimits, normalizeNewlines, okJson, okText, parseJSON, parseSubAgentToolCallArguments, parseToolArguments, renderTemplate, resolveBackspaces, resolveCarriageReturns, sanitizeCommandId, stripAnsiAndControls, supportsGetModels, toolValidators };
|