@nuvin/nuvin-core 1.11.1 → 1.12.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 CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "1.11.1",
3
- "commit": "448e0b4"
2
+ "version": "1.12.0",
3
+ "commit": "cf55bdc"
4
4
  }
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  import { StdioServerParameters } from '@modelcontextprotocol/sdk/client/stdio.js';
2
3
 
3
4
  /**
@@ -303,8 +304,8 @@ type ToolParameterMap = {
303
304
  file_edit: FileEditArgs;
304
305
  file_new: FileNewArgs;
305
306
  ls_tool: LsArgs;
306
- glob: GlobArgs;
307
- grep: GrepArgs;
307
+ glob_tool: GlobArgs;
308
+ grep_tool: GrepArgs;
308
309
  web_search: WebSearchArgs;
309
310
  web_fetch: WebFetchArgs;
310
311
  todo_write: TodoWriteArgs;
@@ -611,6 +612,7 @@ interface LLMPort {
611
612
  generateCompletion(params: CompletionParams, signal?: AbortSignal): Promise<CompletionResult>;
612
613
  streamCompletion?(params: CompletionParams, handlers?: {
613
614
  onChunk?: (delta: string, usage?: UsageData) => void;
615
+ onReasoningChunk?: (delta: string) => void;
614
616
  onToolCallDelta?: (tc: ToolCall) => void;
615
617
  onStreamFinish?: (finishReason?: string, usage?: UsageData) => void;
616
618
  }, signal?: AbortSignal): Promise<CompletionResult>;
@@ -700,6 +702,7 @@ declare enum ErrorReason {
700
702
  NetworkError = "network_error",
701
703
  RateLimit = "rate_limit",
702
704
  ToolNotFound = "tool_not_found",
705
+ ValidationFailed = "validation_failed",
703
706
  Unknown = "unknown"
704
707
  }
705
708
  type ToolExecutionResult = {
@@ -896,6 +899,7 @@ declare const AgentEventTypes: {
896
899
  readonly ToolApprovalRequired: "tool_approval_required";
897
900
  readonly ToolApprovalResponse: "tool_approval_response";
898
901
  readonly ToolResult: "tool_result";
902
+ readonly ReasoningChunk: "reasoning_chunk";
899
903
  readonly AssistantChunk: "assistant_chunk";
900
904
  readonly AssistantMessage: "assistant_message";
901
905
  readonly StreamFinish: "stream_finish";
@@ -941,6 +945,11 @@ type AgentEvent = {
941
945
  conversationId: string;
942
946
  messageId: string;
943
947
  result: ToolExecutionResult;
948
+ } | {
949
+ type: typeof AgentEventTypes.ReasoningChunk;
950
+ conversationId: string;
951
+ messageId: string;
952
+ delta: string;
944
953
  } | {
945
954
  type: typeof AgentEventTypes.AssistantChunk;
946
955
  conversationId: string;
@@ -1103,7 +1112,7 @@ declare class AgentOrchestrator {
1103
1112
  send(content: UserMessagePayload, opts?: SendMessageOptions): Promise<MessageResponse>;
1104
1113
  private waitForToolApproval;
1105
1114
  handleToolApproval(approvalId: string, decision: ToolApprovalDecision, approvedCalls?: ToolCall[], editInstruction?: string): void;
1106
- private toInvocations;
1115
+ private getAvailableToolNames;
1107
1116
  }
1108
1117
 
1109
1118
  declare class SimpleContextBuilder implements ContextBuilder {
@@ -1676,28 +1685,227 @@ type ValidationResult<T = unknown> = {
1676
1685
  errors: string[];
1677
1686
  };
1678
1687
  type ToolValidator<T extends ToolName> = (params: Record<string, unknown>) => ValidationResult<ToolParameterMap[T]>;
1679
- declare const toolValidators: Partial<{
1680
- [K in ToolName]: ToolValidator<K>;
1681
- }>;
1682
-
1688
+ declare const bashToolSchema: z.ZodObject<{
1689
+ cmd: z.ZodString;
1690
+ cwd: z.ZodOptional<z.ZodString>;
1691
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1692
+ description: z.ZodOptional<z.ZodString>;
1693
+ }, z.core.$strip>;
1694
+ declare const fileReadSchema: z.ZodObject<{
1695
+ path: z.ZodString;
1696
+ lineStart: z.ZodOptional<z.ZodNumber>;
1697
+ lineEnd: z.ZodOptional<z.ZodNumber>;
1698
+ description: z.ZodOptional<z.ZodString>;
1699
+ }, z.core.$strip>;
1700
+ declare const fileEditSchema: z.ZodObject<{
1701
+ file_path: z.ZodString;
1702
+ old_text: z.ZodString;
1703
+ new_text: z.ZodString;
1704
+ dry_run: z.ZodOptional<z.ZodBoolean>;
1705
+ description: z.ZodOptional<z.ZodString>;
1706
+ }, z.core.$strip>;
1707
+ declare const fileNewSchema: z.ZodObject<{
1708
+ file_path: z.ZodString;
1709
+ content: z.ZodString;
1710
+ description: z.ZodOptional<z.ZodString>;
1711
+ }, z.core.$strip>;
1712
+ declare const lsToolSchema: z.ZodObject<{
1713
+ path: z.ZodOptional<z.ZodString>;
1714
+ limit: z.ZodOptional<z.ZodNumber>;
1715
+ description: z.ZodOptional<z.ZodString>;
1716
+ }, z.core.$strip>;
1717
+ declare const webSearchSchema: z.ZodObject<{
1718
+ query: z.ZodString;
1719
+ count: z.ZodOptional<z.ZodNumber>;
1720
+ offset: z.ZodOptional<z.ZodNumber>;
1721
+ domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
1722
+ recencyDays: z.ZodOptional<z.ZodNumber>;
1723
+ lang: z.ZodOptional<z.ZodString>;
1724
+ region: z.ZodOptional<z.ZodString>;
1725
+ safe: z.ZodOptional<z.ZodBoolean>;
1726
+ type: z.ZodOptional<z.ZodEnum<{
1727
+ web: "web";
1728
+ images: "images";
1729
+ }>>;
1730
+ hydrateMeta: z.ZodOptional<z.ZodBoolean>;
1731
+ description: z.ZodOptional<z.ZodString>;
1732
+ }, z.core.$strip>;
1733
+ declare const webFetchSchema: z.ZodObject<{
1734
+ url: z.ZodString;
1735
+ description: z.ZodOptional<z.ZodString>;
1736
+ }, z.core.$strip>;
1737
+ declare const todoWriteSchema: z.ZodObject<{
1738
+ todos: z.ZodArray<z.ZodObject<{
1739
+ id: z.ZodString;
1740
+ content: z.ZodString;
1741
+ status: z.ZodEnum<{
1742
+ pending: "pending";
1743
+ in_progress: "in_progress";
1744
+ completed: "completed";
1745
+ }>;
1746
+ priority: z.ZodEnum<{
1747
+ high: "high";
1748
+ medium: "medium";
1749
+ low: "low";
1750
+ }>;
1751
+ createdAt: z.ZodOptional<z.ZodString>;
1752
+ }, z.core.$strip>>;
1753
+ description: z.ZodOptional<z.ZodString>;
1754
+ }, z.core.$strip>;
1755
+ declare const assignTaskSchema: z.ZodObject<{
1756
+ agent: z.ZodString;
1757
+ task: z.ZodString;
1758
+ description: z.ZodString;
1759
+ }, z.core.$strip>;
1760
+ declare const globToolSchema: z.ZodObject<{
1761
+ pattern: z.ZodString;
1762
+ path: z.ZodOptional<z.ZodString>;
1763
+ description: z.ZodOptional<z.ZodString>;
1764
+ }, z.core.$strip>;
1765
+ declare const grepToolSchema: z.ZodObject<{
1766
+ pattern: z.ZodString;
1767
+ path: z.ZodOptional<z.ZodString>;
1768
+ include: z.ZodOptional<z.ZodString>;
1769
+ description: z.ZodOptional<z.ZodString>;
1770
+ }, z.core.$strip>;
1771
+ declare const toolSchemas: {
1772
+ readonly bash_tool: z.ZodObject<{
1773
+ cmd: z.ZodString;
1774
+ cwd: z.ZodOptional<z.ZodString>;
1775
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1776
+ description: z.ZodOptional<z.ZodString>;
1777
+ }, z.core.$strip>;
1778
+ readonly file_read: z.ZodObject<{
1779
+ path: z.ZodString;
1780
+ lineStart: z.ZodOptional<z.ZodNumber>;
1781
+ lineEnd: z.ZodOptional<z.ZodNumber>;
1782
+ description: z.ZodOptional<z.ZodString>;
1783
+ }, z.core.$strip>;
1784
+ readonly file_edit: z.ZodObject<{
1785
+ file_path: z.ZodString;
1786
+ old_text: z.ZodString;
1787
+ new_text: z.ZodString;
1788
+ dry_run: z.ZodOptional<z.ZodBoolean>;
1789
+ description: z.ZodOptional<z.ZodString>;
1790
+ }, z.core.$strip>;
1791
+ readonly file_new: z.ZodObject<{
1792
+ file_path: z.ZodString;
1793
+ content: z.ZodString;
1794
+ description: z.ZodOptional<z.ZodString>;
1795
+ }, z.core.$strip>;
1796
+ readonly ls_tool: z.ZodObject<{
1797
+ path: z.ZodOptional<z.ZodString>;
1798
+ limit: z.ZodOptional<z.ZodNumber>;
1799
+ description: z.ZodOptional<z.ZodString>;
1800
+ }, z.core.$strip>;
1801
+ readonly web_search: z.ZodObject<{
1802
+ query: z.ZodString;
1803
+ count: z.ZodOptional<z.ZodNumber>;
1804
+ offset: z.ZodOptional<z.ZodNumber>;
1805
+ domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
1806
+ recencyDays: z.ZodOptional<z.ZodNumber>;
1807
+ lang: z.ZodOptional<z.ZodString>;
1808
+ region: z.ZodOptional<z.ZodString>;
1809
+ safe: z.ZodOptional<z.ZodBoolean>;
1810
+ type: z.ZodOptional<z.ZodEnum<{
1811
+ web: "web";
1812
+ images: "images";
1813
+ }>>;
1814
+ hydrateMeta: z.ZodOptional<z.ZodBoolean>;
1815
+ description: z.ZodOptional<z.ZodString>;
1816
+ }, z.core.$strip>;
1817
+ readonly web_fetch: z.ZodObject<{
1818
+ url: z.ZodString;
1819
+ description: z.ZodOptional<z.ZodString>;
1820
+ }, z.core.$strip>;
1821
+ readonly todo_write: z.ZodObject<{
1822
+ todos: z.ZodArray<z.ZodObject<{
1823
+ id: z.ZodString;
1824
+ content: z.ZodString;
1825
+ status: z.ZodEnum<{
1826
+ pending: "pending";
1827
+ in_progress: "in_progress";
1828
+ completed: "completed";
1829
+ }>;
1830
+ priority: z.ZodEnum<{
1831
+ high: "high";
1832
+ medium: "medium";
1833
+ low: "low";
1834
+ }>;
1835
+ createdAt: z.ZodOptional<z.ZodString>;
1836
+ }, z.core.$strip>>;
1837
+ description: z.ZodOptional<z.ZodString>;
1838
+ }, z.core.$strip>;
1839
+ readonly assign_task: z.ZodObject<{
1840
+ agent: z.ZodString;
1841
+ task: z.ZodString;
1842
+ description: z.ZodString;
1843
+ }, z.core.$strip>;
1844
+ readonly glob_tool: z.ZodObject<{
1845
+ pattern: z.ZodString;
1846
+ path: z.ZodOptional<z.ZodString>;
1847
+ description: z.ZodOptional<z.ZodString>;
1848
+ }, z.core.$strip>;
1849
+ readonly grep_tool: z.ZodObject<{
1850
+ pattern: z.ZodString;
1851
+ path: z.ZodOptional<z.ZodString>;
1852
+ include: z.ZodOptional<z.ZodString>;
1853
+ description: z.ZodOptional<z.ZodString>;
1854
+ }, z.core.$strip>;
1855
+ };
1856
+ declare function validateToolParams<T extends ToolName>(toolName: T, params: Record<string, unknown>): ValidationResult<ToolParameterMap[T]>;
1857
+ declare const toolValidators: {
1858
+ bash_tool: (params: Record<string, unknown>) => ValidationResult<BashToolArgs>;
1859
+ file_read: (params: Record<string, unknown>) => ValidationResult<FileReadArgs>;
1860
+ file_edit: (params: Record<string, unknown>) => ValidationResult<FileEditArgs>;
1861
+ file_new: (params: Record<string, unknown>) => ValidationResult<FileNewArgs>;
1862
+ ls_tool: (params: Record<string, unknown>) => ValidationResult<LsArgs>;
1863
+ web_search: (params: Record<string, unknown>) => ValidationResult<WebSearchArgs>;
1864
+ web_fetch: (params: Record<string, unknown>) => ValidationResult<WebFetchArgs>;
1865
+ todo_write: (params: Record<string, unknown>) => ValidationResult<TodoWriteArgs>;
1866
+ assign_task: (params: Record<string, unknown>) => ValidationResult<AssignTaskArgs>;
1867
+ glob_tool: (params: Record<string, unknown>) => ValidationResult<GlobArgs>;
1868
+ grep_tool: (params: Record<string, unknown>) => ValidationResult<GrepArgs>;
1869
+ };
1870
+
1871
+ type ValidationError = {
1872
+ id: string;
1873
+ name: string;
1874
+ error: string;
1875
+ errorType: 'tool_not_found' | 'parse' | 'validation' | 'unknown';
1876
+ };
1877
+ type ToolCallConversionResult = {
1878
+ success: true;
1879
+ invocations: ToolInvocation[];
1880
+ errors?: ValidationError[];
1881
+ } | {
1882
+ success: false;
1883
+ invocations: ToolInvocation[];
1884
+ errors: ValidationError[];
1885
+ };
1683
1886
  type ToolCallValidation = {
1684
1887
  valid: true;
1685
1888
  invocation: ToolInvocation;
1686
1889
  } | {
1687
1890
  valid: false;
1688
1891
  error: string;
1689
- errorType: 'parse' | 'validation' | 'unknown';
1892
+ errorType: 'parse' | 'validation';
1690
1893
  callId: string;
1691
1894
  toolName: string;
1692
1895
  rawArguments?: string;
1693
1896
  };
1694
1897
  declare function convertToolCall(toolCall: ToolCall, options?: {
1695
1898
  strict?: boolean;
1899
+ availableTools?: Set<string>;
1696
1900
  }): ToolCallValidation;
1697
1901
  declare function convertToolCalls(toolCalls: ToolCall[], options?: {
1698
1902
  strict?: boolean;
1699
1903
  throwOnError?: boolean;
1700
1904
  }): ToolInvocation[];
1905
+ declare function convertToolCallsWithErrorHandling(toolCalls: ToolCall[], options?: {
1906
+ strict?: boolean;
1907
+ availableTools?: Set<string>;
1908
+ }): ToolCallConversionResult;
1701
1909
 
1702
1910
  type FileReadParams = {
1703
1911
  path: string;
@@ -2205,7 +2413,7 @@ interface LLMOptions {
2205
2413
  retry?: Partial<RetryConfig>;
2206
2414
  }
2207
2415
  interface CustomProviderDefinition {
2208
- type?: 'openai-compat' | 'anthropic';
2416
+ type?: 'openai-compat' | 'anthropic-compat';
2209
2417
  baseUrl?: string;
2210
2418
  models?: ModelConfig;
2211
2419
  customHeaders?: Record<string, string>;
@@ -2214,6 +2422,11 @@ declare function createLLM(providerName: string, options?: LLMOptions, customPro
2214
2422
  declare function getAvailableProviders(customProviders?: Record<string, CustomProviderDefinition>): string[];
2215
2423
  declare function supportsGetModels(providerName: string, customProviders?: Record<string, CustomProviderDefinition>): boolean;
2216
2424
  declare function getProviderLabel(providerKey: string, customProviders?: Record<string, CustomProviderDefinition>): string | undefined;
2425
+ declare function getProviderAuthMethods(providerKey: string, customProviders?: Record<string, CustomProviderDefinition>): Array<{
2426
+ label: string;
2427
+ value: string;
2428
+ }>;
2429
+ declare function getProviderDefaultModels(providerKey: string, customProviders?: Record<string, CustomProviderDefinition>): string[];
2217
2430
 
2218
2431
  type MCPHttpOptions = {
2219
2432
  type: 'http';
@@ -2262,6 +2475,7 @@ declare class MCPToolPort implements ToolPort {
2262
2475
  private client;
2263
2476
  private map;
2264
2477
  private toolSchemas;
2478
+ private zodSchemas;
2265
2479
  private prefix;
2266
2480
  constructor(client: CoreMCPClient, opts?: {
2267
2481
  prefix?: string;
@@ -2311,4 +2525,4 @@ declare function resolveBackspaces(s: string): string;
2311
2525
  declare function stripAnsiAndControls(s: string): string;
2312
2526
  declare function canonicalizeTerminalPaste(raw: string): string;
2313
2527
 
2314
- 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 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 LsArgs, type LsMetadata, type LsParams, type LsResult, type LsSuccessResult$1 as LsSuccessResult, 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, isError, isFileEditArgs, isFileEditResult, isFileEditSuccess, isFileNewArgs, isFileNewResult, isFileNewSuccess, isFileReadArgs, isFileReadResult, isFileReadSuccess, isGlobArgs, isGlobResult, isGlobSuccess, isGrepArgs, isGrepResult, isGrepSuccess, isJsonResult, isLsArgs, isLsToolResult, isLsToolSuccess, 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 };
2528
+ 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 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 LsArgs, type LsMetadata, type LsParams, type LsResult, type LsSuccessResult$1 as LsSuccessResult, 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 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, buildAgentCreationPrompt, buildInjectedSystem, canonicalizeTerminalPaste, convertToolCall, convertToolCalls, convertToolCallsWithErrorHandling, createEmptySnapshot, createLLM, deduplicateModels, err, fileEditSchema, fileNewSchema, fileReadSchema, generateFolderTree, getAvailableProviders, getFallbackLimits, getProviderAuthMethods, getProviderDefaultModels, getProviderLabel, globToolSchema, grepToolSchema, isAssignResult, isAssignSuccess, isAssignTaskArgs, isBashResult, isBashSuccess, isBashToolArgs, isError, isFileEditArgs, isFileEditResult, isFileEditSuccess, isFileNewArgs, isFileNewResult, isFileNewSuccess, isFileReadArgs, isFileReadResult, isFileReadSuccess, isGlobArgs, isGlobResult, isGlobSuccess, isGrepArgs, isGrepResult, isGrepSuccess, isJsonResult, isLsArgs, isLsToolResult, isLsToolSuccess, isRetryableError, isRetryableStatusCode, isSuccess, isSuccessJson, isSuccessText, isTextResult, isTodoWriteArgs, isTodoWriteResult, isTodoWriteSuccess, isValidCommandId, isWebFetchArgs, isWebFetchResult, isWebFetchSuccess, isWebSearchArgs, isWebSearchResult, isWebSearchSuccess, lsToolSchema, normalizeModelInfo, normalizeModelLimits, normalizeNewlines, okJson, okText, parseJSON, parseSubAgentToolCallArguments, parseToolArguments, renderTemplate, resolveBackspaces, resolveCarriageReturns, sanitizeCommandId, stripAnsiAndControls, supportsGetModels, todoWriteSchema, toolSchemas, toolValidators, validateToolParams, webFetchSchema, webSearchSchema };