@nuvin/nuvin-core 1.19.0-rc.7 → 1.19.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 +78 -12
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/VERSION
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -21,8 +21,11 @@ type AgentTemplate = {
|
|
|
21
21
|
share_context?: boolean;
|
|
22
22
|
stream?: boolean;
|
|
23
23
|
metadata?: Record<string, unknown>;
|
|
24
|
+
location?: 'built-in' | 'global' | 'profile' | 'local';
|
|
25
|
+
};
|
|
26
|
+
type CompleteAgent = Required<Pick<AgentTemplate, 'instructions' | 'name' | 'description' | 'allowed_tools' | 'temperature'>> & Pick<AgentTemplate, 'model' | 'disable_model_invocation' | 'user_invocable' | 'context' | 'agent' | 'provider' | 'top_p' | 'max_tokens' | 'timeout_ms' | 'share_context' | 'metadata'> & {
|
|
27
|
+
location?: 'built-in' | 'global' | 'profile' | 'local';
|
|
24
28
|
};
|
|
25
|
-
type CompleteAgent = Required<Pick<AgentTemplate, 'instructions' | 'name' | 'description' | 'allowed_tools' | 'temperature'>> & Pick<AgentTemplate, 'model' | 'disable_model_invocation' | 'user_invocable' | 'context' | 'agent' | 'provider' | 'top_p' | 'max_tokens' | 'timeout_ms' | 'share_context' | 'metadata'>;
|
|
26
29
|
/**
|
|
27
30
|
* Specialist Agent Configuration (Internal - used by AgentManager)
|
|
28
31
|
*/
|
|
@@ -107,14 +110,19 @@ declare class AgentRegistry {
|
|
|
107
110
|
private agents;
|
|
108
111
|
private defaultAgentIds;
|
|
109
112
|
private persistence?;
|
|
110
|
-
private
|
|
113
|
+
private localFilePersistence?;
|
|
114
|
+
private profileFilePersistence?;
|
|
115
|
+
private globalFilePersistence?;
|
|
111
116
|
private loadingPromise?;
|
|
112
117
|
constructor(options?: {
|
|
113
118
|
persistence?: MemoryPort<AgentTemplate>;
|
|
114
|
-
|
|
119
|
+
localFilePersistence?: AgentFilePersistence;
|
|
120
|
+
profileFilePersistence?: AgentFilePersistence;
|
|
121
|
+
globalFilePersistence?: AgentFilePersistence;
|
|
115
122
|
});
|
|
116
123
|
/**
|
|
117
124
|
* Load agents from both persistence and files
|
|
125
|
+
* Load order matters: global → profile → local (later loads can override)
|
|
118
126
|
*/
|
|
119
127
|
private loadAgents;
|
|
120
128
|
/**
|
|
@@ -136,10 +144,6 @@ declare class AgentRegistry {
|
|
|
136
144
|
* Load agents from file system
|
|
137
145
|
*/
|
|
138
146
|
private loadFromFiles;
|
|
139
|
-
/**
|
|
140
|
-
* Save current agents to persistence
|
|
141
|
-
*/
|
|
142
|
-
private saveToPersistence;
|
|
143
147
|
/**
|
|
144
148
|
* Validate agent template (only instructions required)
|
|
145
149
|
*/
|
|
@@ -150,14 +154,20 @@ declare class AgentRegistry {
|
|
|
150
154
|
register(agent: Partial<AgentTemplate> & {
|
|
151
155
|
instructions: string;
|
|
152
156
|
}): void;
|
|
157
|
+
/**
|
|
158
|
+
* Get the appropriate persistence layer for a given location
|
|
159
|
+
*/
|
|
160
|
+
private getPersistenceForLocation;
|
|
153
161
|
/**
|
|
154
162
|
* Save agent to file
|
|
155
163
|
*/
|
|
156
164
|
saveToFile(agent: CompleteAgent): Promise<void>;
|
|
157
165
|
/**
|
|
158
|
-
* Delete agent from file
|
|
166
|
+
* Delete agent from file.
|
|
167
|
+
* Location is required — callers must know where the agent lives.
|
|
168
|
+
* Directory placement is the single source of truth for location.
|
|
159
169
|
*/
|
|
160
|
-
deleteFromFile(agentName: string): Promise<void>;
|
|
170
|
+
deleteFromFile(agentName: string, location: 'local' | 'profile' | 'global'): Promise<void>;
|
|
161
171
|
/**
|
|
162
172
|
* Check if an agent is a default agent
|
|
163
173
|
*/
|
|
@@ -178,6 +188,12 @@ declare class AgentRegistry {
|
|
|
178
188
|
* Check if an agent exists
|
|
179
189
|
*/
|
|
180
190
|
exists(agentName: string): boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Reload all agents from disk.
|
|
193
|
+
* Clears non-default agents and re-reads from all file persistence layers.
|
|
194
|
+
* Similar to commands' registry.reload() pattern.
|
|
195
|
+
*/
|
|
196
|
+
reload(): Promise<void>;
|
|
181
197
|
}
|
|
182
198
|
|
|
183
199
|
/**
|
|
@@ -194,6 +210,7 @@ type BashToolArgs = {
|
|
|
194
210
|
cwd?: string;
|
|
195
211
|
timeoutMs?: number;
|
|
196
212
|
description?: string;
|
|
213
|
+
ignoreOutput?: boolean;
|
|
197
214
|
};
|
|
198
215
|
type FileReadArgs = {
|
|
199
216
|
path: string;
|
|
@@ -794,8 +811,16 @@ type ToolExecutionResult = {
|
|
|
794
811
|
id: string;
|
|
795
812
|
name: string;
|
|
796
813
|
status: 'success';
|
|
797
|
-
type: '
|
|
798
|
-
result:
|
|
814
|
+
type: 'mixed';
|
|
815
|
+
result: Array<TextContentPart | ImageContentPart>;
|
|
816
|
+
metadata?: Record<string, unknown>;
|
|
817
|
+
durationMs?: number;
|
|
818
|
+
} | {
|
|
819
|
+
id: string;
|
|
820
|
+
name: string;
|
|
821
|
+
status: 'success';
|
|
822
|
+
type: 'text' | 'json' | 'mixed';
|
|
823
|
+
result: string | Record<string, unknown> | unknown[] | Array<TextContentPart | ImageContentPart>;
|
|
799
824
|
metadata?: Record<string, unknown>;
|
|
800
825
|
durationMs?: number;
|
|
801
826
|
} | {
|
|
@@ -1409,6 +1434,10 @@ type InjectedSystemParams = {
|
|
|
1409
1434
|
description: string;
|
|
1410
1435
|
}>;
|
|
1411
1436
|
folderTree?: string;
|
|
1437
|
+
shell?: string;
|
|
1438
|
+
gitBranch?: string;
|
|
1439
|
+
gitRepo?: string;
|
|
1440
|
+
recentCommits?: string;
|
|
1412
1441
|
};
|
|
1413
1442
|
declare function buildInjectedSystem(p: InjectedSystemParams, { withSubAgent }?: {
|
|
1414
1443
|
withSubAgent?: boolean;
|
|
@@ -1856,6 +1885,11 @@ type SystemContext = {
|
|
|
1856
1885
|
arch: string;
|
|
1857
1886
|
tempDir: string;
|
|
1858
1887
|
workspaceDir: string;
|
|
1888
|
+
shell?: string;
|
|
1889
|
+
gitBranch?: string;
|
|
1890
|
+
gitRepo?: string;
|
|
1891
|
+
recentCommits?: string;
|
|
1892
|
+
folderTree?: string;
|
|
1859
1893
|
};
|
|
1860
1894
|
type AgentInfo = {
|
|
1861
1895
|
id: string;
|
|
@@ -2065,6 +2099,7 @@ type BashParams = {
|
|
|
2065
2099
|
cmd: string;
|
|
2066
2100
|
cwd?: string;
|
|
2067
2101
|
timeoutMs?: number;
|
|
2102
|
+
ignoreOutput?: boolean;
|
|
2068
2103
|
};
|
|
2069
2104
|
type BashSuccessResult$1 = {
|
|
2070
2105
|
status: 'success';
|
|
@@ -2100,6 +2135,10 @@ declare class BashTool implements FunctionTool<BashParams, ToolExecutionContext,
|
|
|
2100
2135
|
readonly minimum: 1;
|
|
2101
2136
|
readonly description: "Timeout in ms. Default: 30000.";
|
|
2102
2137
|
};
|
|
2138
|
+
readonly ignoreOutput: {
|
|
2139
|
+
readonly type: "boolean";
|
|
2140
|
+
readonly description: "If true, discard stdout/stderr and return only the exit code. Useful when you only care whether the command succeeded or failed.";
|
|
2141
|
+
};
|
|
2103
2142
|
};
|
|
2104
2143
|
readonly required: readonly ["cmd"];
|
|
2105
2144
|
};
|
|
@@ -2151,6 +2190,7 @@ declare const bashToolSchema: z.ZodObject<{
|
|
|
2151
2190
|
cwd: z.ZodOptional<z.ZodString>;
|
|
2152
2191
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2153
2192
|
description: z.ZodOptional<z.ZodString>;
|
|
2193
|
+
ignoreOutput: z.ZodOptional<z.ZodBoolean>;
|
|
2154
2194
|
}, z.core.$strip>;
|
|
2155
2195
|
declare const fileReadSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
2156
2196
|
path: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
@@ -2236,6 +2276,7 @@ declare const toolSchemas: {
|
|
|
2236
2276
|
cwd: z.ZodOptional<z.ZodString>;
|
|
2237
2277
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2238
2278
|
description: z.ZodOptional<z.ZodString>;
|
|
2279
|
+
ignoreOutput: z.ZodOptional<z.ZodBoolean>;
|
|
2239
2280
|
}, z.core.$strip>;
|
|
2240
2281
|
readonly file_read: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
2241
2282
|
path: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
@@ -2446,6 +2487,7 @@ type GrepParams = {
|
|
|
2446
2487
|
path?: string;
|
|
2447
2488
|
include?: string;
|
|
2448
2489
|
limit?: number;
|
|
2490
|
+
context?: number;
|
|
2449
2491
|
};
|
|
2450
2492
|
type GrepSuccessResult$1 = {
|
|
2451
2493
|
status: 'success';
|
|
@@ -2940,6 +2982,29 @@ type AnthropicAISDKOptions = {
|
|
|
2940
2982
|
expires: number;
|
|
2941
2983
|
}) => void;
|
|
2942
2984
|
};
|
|
2985
|
+
/**
|
|
2986
|
+
* Converts ChatMessage content to AI SDK tool result output format.
|
|
2987
|
+
*
|
|
2988
|
+
* When content contains ProviderContentPart[] with image_url parts,
|
|
2989
|
+
* uses the AI SDK 'content' output type with 'media' parts for images.
|
|
2990
|
+
* Falls back to a simple 'text' output for string content.
|
|
2991
|
+
*
|
|
2992
|
+
* @see LanguageModelV2ToolResultOutput from @ai-sdk/provider
|
|
2993
|
+
*/
|
|
2994
|
+
declare function buildAISDKToolResultOutput(content: string | null | ProviderContentPart[]): {
|
|
2995
|
+
type: 'text';
|
|
2996
|
+
value: string;
|
|
2997
|
+
} | {
|
|
2998
|
+
type: 'content';
|
|
2999
|
+
value: Array<{
|
|
3000
|
+
type: 'text';
|
|
3001
|
+
text: string;
|
|
3002
|
+
} | {
|
|
3003
|
+
type: 'media';
|
|
3004
|
+
data: string;
|
|
3005
|
+
mediaType: string;
|
|
3006
|
+
}>;
|
|
3007
|
+
};
|
|
2943
3008
|
declare class AnthropicAISDKLLM {
|
|
2944
3009
|
private readonly opts;
|
|
2945
3010
|
private provider?;
|
|
@@ -3042,6 +3107,7 @@ declare class CoreMCPClient {
|
|
|
3042
3107
|
constructor(opts: MCPOptions, timeoutMs?: number);
|
|
3043
3108
|
private getAuthHeaders;
|
|
3044
3109
|
connect(): Promise<void>;
|
|
3110
|
+
private performConnect;
|
|
3045
3111
|
reconnectWithNewToken(): Promise<void>;
|
|
3046
3112
|
isConnected(): boolean;
|
|
3047
3113
|
getCurrentToken(): string | null;
|
|
@@ -3358,4 +3424,4 @@ declare function resolveBackspaces(s: string): string;
|
|
|
3358
3424
|
declare function stripAnsiAndControls(s: string): string;
|
|
3359
3425
|
declare function canonicalizeTerminalPaste(raw: string): string;
|
|
3360
3426
|
|
|
3361
|
-
export { AGENT_CREATOR_SYSTEM_PROMPT, AbortError, type AgentAwareToolPort, type AgentCatalog, type AgentConfig, type AgentEvent, AgentEventTypes, AgentFilePersistence, AgentManager, AgentManagerCommandRunner, AgentOrchestrator, AgentRegistry, type AgentSession, type AgentStateManager, type AgentTemplate, 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 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, 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 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 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, 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, isInsufficientScopeError, isJsonResult, isLsArgs, isLsToolResult, isLsToolSuccess, isRetryableError, isRetryableStatusCode, isSuccess, isSuccessJson, isSuccessText, isTextResult, isTodoWriteArgs, isTodoWriteResult, isTodoWriteSuccess, isUnauthorizedError, isValidCommandId, isWebFetchArgs, isWebFetchResult, isWebFetchSuccess, isWebSearchArgs, isWebSearchResult, isWebSearchSuccess, loadHooksFromFrontmatter, lsToolSchema, mergeAgentConfig, normalizeModelInfo, normalizeModelLimits, normalizeNewlines, okJson, okText, parseJSON, parseSubAgentToolCallArguments, parseToolArguments, parseWWWAuthenticate, renderTemplate, resolveBackspaces, resolveCarriageReturns, sanitizeCommandId, stripAnsiAndControls, supportsGetModels, todoWriteSchema, toolSchemas, toolValidators, validateToolParams, webFetchSchema, webSearchSchema };
|
|
3427
|
+
export { AGENT_CREATOR_SYSTEM_PROMPT, AbortError, type AgentAwareToolPort, type AgentCatalog, type AgentConfig, type AgentEvent, AgentEventTypes, AgentFilePersistence, AgentManager, AgentManagerCommandRunner, AgentOrchestrator, AgentRegistry, type AgentSession, type AgentStateManager, type AgentTemplate, 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 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, 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 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 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, 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, isInsufficientScopeError, isJsonResult, isLsArgs, isLsToolResult, isLsToolSuccess, isRetryableError, isRetryableStatusCode, isSuccess, isSuccessJson, isSuccessText, isTextResult, isTodoWriteArgs, isTodoWriteResult, isTodoWriteSuccess, isUnauthorizedError, isValidCommandId, isWebFetchArgs, isWebFetchResult, isWebFetchSuccess, isWebSearchArgs, isWebSearchResult, isWebSearchSuccess, loadHooksFromFrontmatter, lsToolSchema, mergeAgentConfig, normalizeModelInfo, normalizeModelLimits, normalizeNewlines, okJson, okText, parseJSON, parseSubAgentToolCallArguments, parseToolArguments, parseWWWAuthenticate, renderTemplate, resolveBackspaces, resolveCarriageReturns, sanitizeCommandId, stripAnsiAndControls, supportsGetModels, todoWriteSchema, toolSchemas, toolValidators, validateToolParams, webFetchSchema, webSearchSchema };
|