@nuvin/nuvin-core 1.9.4 → 1.11.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 +93 -67
- package/dist/index.js +1 -7133
- package/package.json +1 -1
package/dist/VERSION
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -230,11 +230,22 @@ type FileNewArgs = {
|
|
|
230
230
|
content: string;
|
|
231
231
|
description?: string;
|
|
232
232
|
};
|
|
233
|
-
type
|
|
233
|
+
type LsArgs = {
|
|
234
234
|
path?: string;
|
|
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 |
|
|
281
|
+
type ToolArguments = BashToolArgs | FileReadArgs | FileEditArgs | FileNewArgs | LsArgs | GlobArgs | GrepArgs | WebSearchArgs | WebFetchArgs | TodoWriteArgs | AssignTaskArgs;
|
|
271
282
|
/**
|
|
272
283
|
* Type guard to safely parse tool arguments
|
|
273
284
|
*/
|
|
@@ -283,13 +294,17 @@ 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;
|
|
286
|
-
declare function
|
|
297
|
+
declare function isGlobArgs(args: ToolArguments): args is GlobArgs;
|
|
298
|
+
declare function isGrepArgs(args: ToolArguments): args is GrepArgs;
|
|
299
|
+
declare function isLsArgs(args: ToolArguments): args is LsArgs;
|
|
287
300
|
type ToolParameterMap = {
|
|
288
301
|
bash_tool: BashToolArgs;
|
|
289
302
|
file_read: FileReadArgs;
|
|
290
303
|
file_edit: FileEditArgs;
|
|
291
304
|
file_new: FileNewArgs;
|
|
292
|
-
|
|
305
|
+
ls_tool: LsArgs;
|
|
306
|
+
glob: GlobArgs;
|
|
307
|
+
grep: GrepArgs;
|
|
293
308
|
web_search: WebSearchArgs;
|
|
294
309
|
web_fetch: WebFetchArgs;
|
|
295
310
|
todo_write: TodoWriteArgs;
|
|
@@ -376,10 +391,24 @@ type FileNewMetadata = {
|
|
|
376
391
|
created: string;
|
|
377
392
|
overwritten?: boolean;
|
|
378
393
|
};
|
|
379
|
-
type
|
|
394
|
+
type LsMetadata = {
|
|
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;
|
|
@@ -428,7 +457,9 @@ type ToolMetadataMap = {
|
|
|
428
457
|
file_read: FileReadMetadata;
|
|
429
458
|
file_edit: FileEditMetadata;
|
|
430
459
|
file_new: FileNewMetadata;
|
|
431
|
-
|
|
460
|
+
ls_tool: LsMetadata;
|
|
461
|
+
glob: GlobToolMetadata;
|
|
462
|
+
grep: GrepToolMetadata;
|
|
432
463
|
web_search: WebSearchMetadata;
|
|
433
464
|
web_fetch: WebFetchMetadata;
|
|
434
465
|
todo_write: TodoWriteMetadata;
|
|
@@ -629,8 +660,8 @@ type ToolInvocation = {
|
|
|
629
660
|
editInstruction?: string;
|
|
630
661
|
} | {
|
|
631
662
|
id: string;
|
|
632
|
-
name: '
|
|
633
|
-
parameters:
|
|
663
|
+
name: 'ls_tool';
|
|
664
|
+
parameters: LsArgs;
|
|
634
665
|
editInstruction?: string;
|
|
635
666
|
} | {
|
|
636
667
|
id: string;
|
|
@@ -705,11 +736,11 @@ type ToolExecutionResult = {
|
|
|
705
736
|
durationMs?: number;
|
|
706
737
|
} | {
|
|
707
738
|
id: string;
|
|
708
|
-
name: '
|
|
739
|
+
name: 'ls_tool';
|
|
709
740
|
status: 'success';
|
|
710
741
|
type: 'text';
|
|
711
742
|
result: string;
|
|
712
|
-
metadata?:
|
|
743
|
+
metadata?: LsMetadata;
|
|
713
744
|
durationMs?: number;
|
|
714
745
|
} | {
|
|
715
746
|
id: string;
|
|
@@ -1707,7 +1738,7 @@ type FileNewSuccessResult$1 = {
|
|
|
1707
1738
|
};
|
|
1708
1739
|
type FileNewResult = FileNewSuccessResult$1 | ExecResultError;
|
|
1709
1740
|
|
|
1710
|
-
type
|
|
1741
|
+
type LsParams = {
|
|
1711
1742
|
path?: string;
|
|
1712
1743
|
limit?: number;
|
|
1713
1744
|
};
|
|
@@ -1719,18 +1750,38 @@ type DirEntry = {
|
|
|
1719
1750
|
mode?: number;
|
|
1720
1751
|
lineCount?: number;
|
|
1721
1752
|
};
|
|
1722
|
-
type
|
|
1753
|
+
type LsSuccessResult$1 = {
|
|
1723
1754
|
status: 'success';
|
|
1724
|
-
type: '
|
|
1725
|
-
result:
|
|
1726
|
-
|
|
1727
|
-
entries: DirEntry[];
|
|
1728
|
-
truncated: boolean;
|
|
1729
|
-
total: number;
|
|
1730
|
-
};
|
|
1731
|
-
metadata?: DirLsMetadata;
|
|
1755
|
+
type: 'text';
|
|
1756
|
+
result: string;
|
|
1757
|
+
metadata?: LsMetadata;
|
|
1732
1758
|
};
|
|
1733
|
-
type
|
|
1759
|
+
type LsResult = LsSuccessResult$1 | ExecResultError;
|
|
1760
|
+
|
|
1761
|
+
type GlobParams = {
|
|
1762
|
+
pattern: string;
|
|
1763
|
+
path?: string;
|
|
1764
|
+
};
|
|
1765
|
+
type GlobSuccessResult$1 = {
|
|
1766
|
+
status: 'success';
|
|
1767
|
+
type: 'text';
|
|
1768
|
+
result: string;
|
|
1769
|
+
metadata?: GlobToolMetadata;
|
|
1770
|
+
};
|
|
1771
|
+
type GlobResult = GlobSuccessResult$1 | ExecResultError;
|
|
1772
|
+
|
|
1773
|
+
type GrepParams = {
|
|
1774
|
+
pattern: string;
|
|
1775
|
+
path?: string;
|
|
1776
|
+
include?: string;
|
|
1777
|
+
};
|
|
1778
|
+
type GrepSuccessResult$1 = {
|
|
1779
|
+
status: 'success';
|
|
1780
|
+
type: 'text';
|
|
1781
|
+
result: string;
|
|
1782
|
+
metadata?: GrepToolMetadata;
|
|
1783
|
+
};
|
|
1784
|
+
type GrepResult = GrepSuccessResult$1 | ExecResultError;
|
|
1734
1785
|
|
|
1735
1786
|
/**
|
|
1736
1787
|
* WebSearchTool — Google Programmable Search Engine (CSE) ONLY
|
|
@@ -1849,7 +1900,9 @@ type BashSuccessResult = WithToolExecutionFields<BashSuccessResult$1>;
|
|
|
1849
1900
|
type FileReadSuccessResult = WithToolExecutionFields<FileReadSuccessResult$1>;
|
|
1850
1901
|
type FileEditSuccessResult = WithToolExecutionFields<FileEditSuccessResult$1>;
|
|
1851
1902
|
type FileNewSuccessResult = WithToolExecutionFields<FileNewSuccessResult$1>;
|
|
1852
|
-
type
|
|
1903
|
+
type LsSuccessResult = WithToolExecutionFields<LsSuccessResult$1>;
|
|
1904
|
+
type GlobSuccessResult = WithToolExecutionFields<GlobSuccessResult$1>;
|
|
1905
|
+
type GrepSuccessResult = WithToolExecutionFields<GrepSuccessResult$1>;
|
|
1853
1906
|
type WebSearchSuccessResult = WithToolExecutionFields<WebSearchSuccessResult$1>;
|
|
1854
1907
|
type WebFetchSuccessResult = WithToolExecutionFields<WebFetchSuccessResult$1>;
|
|
1855
1908
|
type TodoWriteSuccessResult = WithToolExecutionFields<TodoWriteSuccessResult$1>;
|
|
@@ -1862,8 +1915,12 @@ declare function isFileEditResult(result: ToolExecutionResult): result is ToolEx
|
|
|
1862
1915
|
declare function isFileEditSuccess(result: ToolExecutionResult): result is FileEditSuccessResult;
|
|
1863
1916
|
declare function isFileNewResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
1864
1917
|
declare function isFileNewSuccess(result: ToolExecutionResult): result is FileNewSuccessResult;
|
|
1865
|
-
declare function
|
|
1866
|
-
declare function
|
|
1918
|
+
declare function isLsToolResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
1919
|
+
declare function isLsToolSuccess(result: ToolExecutionResult): result is LsSuccessResult;
|
|
1920
|
+
declare function isGlobResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
1921
|
+
declare function isGlobSuccess(result: ToolExecutionResult): result is GlobSuccessResult;
|
|
1922
|
+
declare function isGrepResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
1923
|
+
declare function isGrepSuccess(result: ToolExecutionResult): result is GrepSuccessResult;
|
|
1867
1924
|
declare function isWebSearchResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
1868
1925
|
declare function isWebSearchSuccess(result: ToolExecutionResult): result is WebSearchSuccessResult;
|
|
1869
1926
|
declare function isWebFetchResult(result: ToolExecutionResult): result is ToolExecutionResult;
|
|
@@ -1973,17 +2030,6 @@ type SubAgentState = {
|
|
|
1973
2030
|
*/
|
|
1974
2031
|
declare function parseSubAgentToolCallArguments(argsString?: string): Record<string, unknown>;
|
|
1975
2032
|
|
|
1976
|
-
type LogLevel = 'DEBUG' | 'INFO' | 'WARN' | 'ERROR';
|
|
1977
|
-
type LogFormat = 'json' | 'structured';
|
|
1978
|
-
type PersistOptions = {
|
|
1979
|
-
persistFile?: string;
|
|
1980
|
-
logLevel?: LogLevel;
|
|
1981
|
-
logFormat?: LogFormat;
|
|
1982
|
-
maxFileSize?: number;
|
|
1983
|
-
enableConsoleLog?: boolean;
|
|
1984
|
-
captureResponseBody?: boolean;
|
|
1985
|
-
};
|
|
1986
|
-
|
|
1987
2033
|
type HttpHeaders = Record<string, string>;
|
|
1988
2034
|
interface TransportResponse {
|
|
1989
2035
|
ok: boolean;
|
|
@@ -1995,36 +2041,6 @@ interface HttpTransport {
|
|
|
1995
2041
|
get(url: string, headers?: HttpHeaders, signal?: AbortSignal): Promise<TransportResponse>;
|
|
1996
2042
|
post(url: string, body: unknown, headers?: HttpHeaders, signal?: AbortSignal): Promise<Response>;
|
|
1997
2043
|
}
|
|
1998
|
-
declare class FetchTransport implements HttpTransport {
|
|
1999
|
-
private opts;
|
|
2000
|
-
private logger;
|
|
2001
|
-
constructor(opts?: PersistOptions);
|
|
2002
|
-
private getResponseSize;
|
|
2003
|
-
private headersToRecord;
|
|
2004
|
-
post(url: string, body: unknown, headers?: HttpHeaders, signal?: AbortSignal): Promise<Response>;
|
|
2005
|
-
get(url: string, headers?: HttpHeaders, signal?: AbortSignal): Promise<TransportResponse>;
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
declare class GithubAuthTransport implements HttpTransport {
|
|
2009
|
-
private apiKey?;
|
|
2010
|
-
private accessToken?;
|
|
2011
|
-
private dynamicApiUrl?;
|
|
2012
|
-
private readonly baseUrl;
|
|
2013
|
-
private readonly inner;
|
|
2014
|
-
constructor(inner: FetchTransport, opts: {
|
|
2015
|
-
apiKey?: string;
|
|
2016
|
-
accessToken?: string;
|
|
2017
|
-
baseUrl?: string;
|
|
2018
|
-
});
|
|
2019
|
-
private exchangeToken;
|
|
2020
|
-
private buildFullUrl;
|
|
2021
|
-
private hasVisionPayload;
|
|
2022
|
-
private makeAuthHeaders;
|
|
2023
|
-
private determineInitiator;
|
|
2024
|
-
private generateRequestId;
|
|
2025
|
-
post(url: string, body: unknown, headers?: HttpHeaders, signal?: AbortSignal): Promise<Response>;
|
|
2026
|
-
get(url: string, headers?: HttpHeaders, signal?: AbortSignal): Promise<TransportResponse>;
|
|
2027
|
-
}
|
|
2028
2044
|
|
|
2029
2045
|
interface RetryConfig {
|
|
2030
2046
|
maxRetries: number;
|
|
@@ -2054,6 +2070,15 @@ declare class RetryTransport implements HttpTransport {
|
|
|
2054
2070
|
declare function isRetryableStatusCode(status: number, retryableStatusCodes?: number[]): boolean;
|
|
2055
2071
|
declare function isRetryableError(error: unknown, retryableStatusCodes?: number[]): boolean;
|
|
2056
2072
|
|
|
2073
|
+
declare class LLMErrorTransport implements HttpTransport {
|
|
2074
|
+
private inner;
|
|
2075
|
+
constructor(inner: HttpTransport);
|
|
2076
|
+
get(url: string, headers?: HttpHeaders, signal?: AbortSignal): Promise<TransportResponse>;
|
|
2077
|
+
post(url: string, body: unknown, headers?: HttpHeaders, signal?: AbortSignal): Promise<Response>;
|
|
2078
|
+
private throwLLMError;
|
|
2079
|
+
private handleError;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2057
2082
|
interface BaseLLMOptions {
|
|
2058
2083
|
enablePromptCaching?: boolean;
|
|
2059
2084
|
retry?: Partial<RetryConfig>;
|
|
@@ -2072,6 +2097,7 @@ declare abstract class BaseLLM implements LLMPort {
|
|
|
2072
2097
|
protected abstract createTransport(): HttpTransport;
|
|
2073
2098
|
protected transformUsage(rawUsage: unknown): UsageData | undefined;
|
|
2074
2099
|
protected getTransport(): HttpTransport;
|
|
2100
|
+
protected throwResponseError(statusCode: number, message: string): never;
|
|
2075
2101
|
protected applyCacheControl(params: CompletionParams): CompletionParams;
|
|
2076
2102
|
generateCompletion(params: CompletionParams, signal?: AbortSignal): Promise<CompletionResult>;
|
|
2077
2103
|
streamCompletion(params: CompletionParams, handlers?: {
|
|
@@ -2109,7 +2135,7 @@ type GithubOptions = {
|
|
|
2109
2135
|
declare class GithubLLM extends BaseLLM implements LLMPort {
|
|
2110
2136
|
private readonly opts;
|
|
2111
2137
|
constructor(opts?: GithubOptions);
|
|
2112
|
-
protected createTransport():
|
|
2138
|
+
protected createTransport(): LLMErrorTransport;
|
|
2113
2139
|
protected transformUsage(rawUsage: unknown): UsageData | undefined;
|
|
2114
2140
|
getModels(signal?: AbortSignal): Promise<ModelInfo[]>;
|
|
2115
2141
|
private handleError;
|
|
@@ -2285,4 +2311,4 @@ declare function resolveBackspaces(s: string): string;
|
|
|
2285
2311
|
declare function stripAnsiAndControls(s: string): string;
|
|
2286
2312
|
declare function canonicalizeTerminalPaste(raw: string): string;
|
|
2287
2313
|
|
|
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
|
|
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 };
|