@nuvin/nuvin-core 1.11.1 → 1.13.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 +232 -10
- package/dist/index.js +1 -1
- package/package.json +4 -2
package/dist/VERSION
CHANGED
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
|
-
|
|
307
|
-
|
|
307
|
+
glob_tool: GlobArgs;
|
|
308
|
+
grep_tool: GrepArgs;
|
|
308
309
|
web_search: WebSearchArgs;
|
|
309
310
|
web_fetch: WebFetchArgs;
|
|
310
311
|
todo_write: TodoWriteArgs;
|
|
@@ -536,6 +537,12 @@ type CompletionParams = {
|
|
|
536
537
|
reasoning?: {
|
|
537
538
|
effort: string;
|
|
538
539
|
};
|
|
540
|
+
thinking?: {
|
|
541
|
+
type: 'enabled';
|
|
542
|
+
budget_tokens: number;
|
|
543
|
+
} | {
|
|
544
|
+
type: 'disabled';
|
|
545
|
+
};
|
|
539
546
|
usage?: {
|
|
540
547
|
include?: boolean;
|
|
541
548
|
};
|
|
@@ -611,6 +618,7 @@ interface LLMPort {
|
|
|
611
618
|
generateCompletion(params: CompletionParams, signal?: AbortSignal): Promise<CompletionResult>;
|
|
612
619
|
streamCompletion?(params: CompletionParams, handlers?: {
|
|
613
620
|
onChunk?: (delta: string, usage?: UsageData) => void;
|
|
621
|
+
onReasoningChunk?: (delta: string) => void;
|
|
614
622
|
onToolCallDelta?: (tc: ToolCall) => void;
|
|
615
623
|
onStreamFinish?: (finishReason?: string, usage?: UsageData) => void;
|
|
616
624
|
}, signal?: AbortSignal): Promise<CompletionResult>;
|
|
@@ -700,6 +708,7 @@ declare enum ErrorReason {
|
|
|
700
708
|
NetworkError = "network_error",
|
|
701
709
|
RateLimit = "rate_limit",
|
|
702
710
|
ToolNotFound = "tool_not_found",
|
|
711
|
+
ValidationFailed = "validation_failed",
|
|
703
712
|
Unknown = "unknown"
|
|
704
713
|
}
|
|
705
714
|
type ToolExecutionResult = {
|
|
@@ -882,6 +891,7 @@ type AgentConfig = {
|
|
|
882
891
|
maxToolConcurrency?: number;
|
|
883
892
|
requireToolApproval?: boolean;
|
|
884
893
|
reasoningEffort?: string;
|
|
894
|
+
thinking?: string;
|
|
885
895
|
strictToolValidation?: boolean;
|
|
886
896
|
};
|
|
887
897
|
declare const MessageRoles: {
|
|
@@ -896,6 +906,7 @@ declare const AgentEventTypes: {
|
|
|
896
906
|
readonly ToolApprovalRequired: "tool_approval_required";
|
|
897
907
|
readonly ToolApprovalResponse: "tool_approval_response";
|
|
898
908
|
readonly ToolResult: "tool_result";
|
|
909
|
+
readonly ReasoningChunk: "reasoning_chunk";
|
|
899
910
|
readonly AssistantChunk: "assistant_chunk";
|
|
900
911
|
readonly AssistantMessage: "assistant_message";
|
|
901
912
|
readonly StreamFinish: "stream_finish";
|
|
@@ -941,6 +952,11 @@ type AgentEvent = {
|
|
|
941
952
|
conversationId: string;
|
|
942
953
|
messageId: string;
|
|
943
954
|
result: ToolExecutionResult;
|
|
955
|
+
} | {
|
|
956
|
+
type: typeof AgentEventTypes.ReasoningChunk;
|
|
957
|
+
conversationId: string;
|
|
958
|
+
messageId: string;
|
|
959
|
+
delta: string;
|
|
944
960
|
} | {
|
|
945
961
|
type: typeof AgentEventTypes.AssistantChunk;
|
|
946
962
|
conversationId: string;
|
|
@@ -1103,7 +1119,7 @@ declare class AgentOrchestrator {
|
|
|
1103
1119
|
send(content: UserMessagePayload, opts?: SendMessageOptions): Promise<MessageResponse>;
|
|
1104
1120
|
private waitForToolApproval;
|
|
1105
1121
|
handleToolApproval(approvalId: string, decision: ToolApprovalDecision, approvedCalls?: ToolCall[], editInstruction?: string): void;
|
|
1106
|
-
private
|
|
1122
|
+
private getAvailableToolNames;
|
|
1107
1123
|
}
|
|
1108
1124
|
|
|
1109
1125
|
declare class SimpleContextBuilder implements ContextBuilder {
|
|
@@ -1676,28 +1692,227 @@ type ValidationResult<T = unknown> = {
|
|
|
1676
1692
|
errors: string[];
|
|
1677
1693
|
};
|
|
1678
1694
|
type ToolValidator<T extends ToolName> = (params: Record<string, unknown>) => ValidationResult<ToolParameterMap[T]>;
|
|
1679
|
-
declare const
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1695
|
+
declare const bashToolSchema: z.ZodObject<{
|
|
1696
|
+
cmd: z.ZodString;
|
|
1697
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1699
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1700
|
+
}, z.core.$strip>;
|
|
1701
|
+
declare const fileReadSchema: z.ZodObject<{
|
|
1702
|
+
path: z.ZodString;
|
|
1703
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1704
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1705
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1706
|
+
}, z.core.$strip>;
|
|
1707
|
+
declare const fileEditSchema: z.ZodObject<{
|
|
1708
|
+
file_path: z.ZodString;
|
|
1709
|
+
old_text: z.ZodString;
|
|
1710
|
+
new_text: z.ZodString;
|
|
1711
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
1712
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1713
|
+
}, z.core.$strip>;
|
|
1714
|
+
declare const fileNewSchema: z.ZodObject<{
|
|
1715
|
+
file_path: z.ZodString;
|
|
1716
|
+
content: z.ZodString;
|
|
1717
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1718
|
+
}, z.core.$strip>;
|
|
1719
|
+
declare const lsToolSchema: z.ZodObject<{
|
|
1720
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1722
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1723
|
+
}, z.core.$strip>;
|
|
1724
|
+
declare const webSearchSchema: z.ZodObject<{
|
|
1725
|
+
query: z.ZodString;
|
|
1726
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1727
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1728
|
+
domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1729
|
+
recencyDays: z.ZodOptional<z.ZodNumber>;
|
|
1730
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
region: z.ZodOptional<z.ZodString>;
|
|
1732
|
+
safe: z.ZodOptional<z.ZodBoolean>;
|
|
1733
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1734
|
+
web: "web";
|
|
1735
|
+
images: "images";
|
|
1736
|
+
}>>;
|
|
1737
|
+
hydrateMeta: z.ZodOptional<z.ZodBoolean>;
|
|
1738
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1739
|
+
}, z.core.$strip>;
|
|
1740
|
+
declare const webFetchSchema: z.ZodObject<{
|
|
1741
|
+
url: z.ZodString;
|
|
1742
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1743
|
+
}, z.core.$strip>;
|
|
1744
|
+
declare const todoWriteSchema: z.ZodObject<{
|
|
1745
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
1746
|
+
id: z.ZodString;
|
|
1747
|
+
content: z.ZodString;
|
|
1748
|
+
status: z.ZodEnum<{
|
|
1749
|
+
pending: "pending";
|
|
1750
|
+
in_progress: "in_progress";
|
|
1751
|
+
completed: "completed";
|
|
1752
|
+
}>;
|
|
1753
|
+
priority: z.ZodEnum<{
|
|
1754
|
+
high: "high";
|
|
1755
|
+
medium: "medium";
|
|
1756
|
+
low: "low";
|
|
1757
|
+
}>;
|
|
1758
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1759
|
+
}, z.core.$strip>>;
|
|
1760
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1761
|
+
}, z.core.$strip>;
|
|
1762
|
+
declare const assignTaskSchema: z.ZodObject<{
|
|
1763
|
+
agent: z.ZodString;
|
|
1764
|
+
task: z.ZodString;
|
|
1765
|
+
description: z.ZodString;
|
|
1766
|
+
}, z.core.$strip>;
|
|
1767
|
+
declare const globToolSchema: z.ZodObject<{
|
|
1768
|
+
pattern: z.ZodString;
|
|
1769
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1770
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1771
|
+
}, z.core.$strip>;
|
|
1772
|
+
declare const grepToolSchema: z.ZodObject<{
|
|
1773
|
+
pattern: z.ZodString;
|
|
1774
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1775
|
+
include: z.ZodOptional<z.ZodString>;
|
|
1776
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1777
|
+
}, z.core.$strip>;
|
|
1778
|
+
declare const toolSchemas: {
|
|
1779
|
+
readonly bash_tool: z.ZodObject<{
|
|
1780
|
+
cmd: z.ZodString;
|
|
1781
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1782
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1783
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1784
|
+
}, z.core.$strip>;
|
|
1785
|
+
readonly file_read: z.ZodObject<{
|
|
1786
|
+
path: z.ZodString;
|
|
1787
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1788
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1789
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1790
|
+
}, z.core.$strip>;
|
|
1791
|
+
readonly file_edit: z.ZodObject<{
|
|
1792
|
+
file_path: z.ZodString;
|
|
1793
|
+
old_text: z.ZodString;
|
|
1794
|
+
new_text: z.ZodString;
|
|
1795
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
1796
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1797
|
+
}, z.core.$strip>;
|
|
1798
|
+
readonly file_new: z.ZodObject<{
|
|
1799
|
+
file_path: z.ZodString;
|
|
1800
|
+
content: z.ZodString;
|
|
1801
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1802
|
+
}, z.core.$strip>;
|
|
1803
|
+
readonly ls_tool: z.ZodObject<{
|
|
1804
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1805
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1806
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1807
|
+
}, z.core.$strip>;
|
|
1808
|
+
readonly web_search: z.ZodObject<{
|
|
1809
|
+
query: z.ZodString;
|
|
1810
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
1811
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1812
|
+
domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1813
|
+
recencyDays: z.ZodOptional<z.ZodNumber>;
|
|
1814
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
1815
|
+
region: z.ZodOptional<z.ZodString>;
|
|
1816
|
+
safe: z.ZodOptional<z.ZodBoolean>;
|
|
1817
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1818
|
+
web: "web";
|
|
1819
|
+
images: "images";
|
|
1820
|
+
}>>;
|
|
1821
|
+
hydrateMeta: z.ZodOptional<z.ZodBoolean>;
|
|
1822
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1823
|
+
}, z.core.$strip>;
|
|
1824
|
+
readonly web_fetch: z.ZodObject<{
|
|
1825
|
+
url: z.ZodString;
|
|
1826
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1827
|
+
}, z.core.$strip>;
|
|
1828
|
+
readonly todo_write: z.ZodObject<{
|
|
1829
|
+
todos: z.ZodArray<z.ZodObject<{
|
|
1830
|
+
id: z.ZodString;
|
|
1831
|
+
content: z.ZodString;
|
|
1832
|
+
status: z.ZodEnum<{
|
|
1833
|
+
pending: "pending";
|
|
1834
|
+
in_progress: "in_progress";
|
|
1835
|
+
completed: "completed";
|
|
1836
|
+
}>;
|
|
1837
|
+
priority: z.ZodEnum<{
|
|
1838
|
+
high: "high";
|
|
1839
|
+
medium: "medium";
|
|
1840
|
+
low: "low";
|
|
1841
|
+
}>;
|
|
1842
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
1843
|
+
}, z.core.$strip>>;
|
|
1844
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1845
|
+
}, z.core.$strip>;
|
|
1846
|
+
readonly assign_task: z.ZodObject<{
|
|
1847
|
+
agent: z.ZodString;
|
|
1848
|
+
task: z.ZodString;
|
|
1849
|
+
description: z.ZodString;
|
|
1850
|
+
}, z.core.$strip>;
|
|
1851
|
+
readonly glob_tool: z.ZodObject<{
|
|
1852
|
+
pattern: z.ZodString;
|
|
1853
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1854
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1855
|
+
}, z.core.$strip>;
|
|
1856
|
+
readonly grep_tool: z.ZodObject<{
|
|
1857
|
+
pattern: z.ZodString;
|
|
1858
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1859
|
+
include: z.ZodOptional<z.ZodString>;
|
|
1860
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1861
|
+
}, z.core.$strip>;
|
|
1862
|
+
};
|
|
1863
|
+
declare function validateToolParams<T extends ToolName>(toolName: T, params: Record<string, unknown>): ValidationResult<ToolParameterMap[T]>;
|
|
1864
|
+
declare const toolValidators: {
|
|
1865
|
+
bash_tool: (params: Record<string, unknown>) => ValidationResult<BashToolArgs>;
|
|
1866
|
+
file_read: (params: Record<string, unknown>) => ValidationResult<FileReadArgs>;
|
|
1867
|
+
file_edit: (params: Record<string, unknown>) => ValidationResult<FileEditArgs>;
|
|
1868
|
+
file_new: (params: Record<string, unknown>) => ValidationResult<FileNewArgs>;
|
|
1869
|
+
ls_tool: (params: Record<string, unknown>) => ValidationResult<LsArgs>;
|
|
1870
|
+
web_search: (params: Record<string, unknown>) => ValidationResult<WebSearchArgs>;
|
|
1871
|
+
web_fetch: (params: Record<string, unknown>) => ValidationResult<WebFetchArgs>;
|
|
1872
|
+
todo_write: (params: Record<string, unknown>) => ValidationResult<TodoWriteArgs>;
|
|
1873
|
+
assign_task: (params: Record<string, unknown>) => ValidationResult<AssignTaskArgs>;
|
|
1874
|
+
glob_tool: (params: Record<string, unknown>) => ValidationResult<GlobArgs>;
|
|
1875
|
+
grep_tool: (params: Record<string, unknown>) => ValidationResult<GrepArgs>;
|
|
1876
|
+
};
|
|
1877
|
+
|
|
1878
|
+
type ValidationError = {
|
|
1879
|
+
id: string;
|
|
1880
|
+
name: string;
|
|
1881
|
+
error: string;
|
|
1882
|
+
errorType: 'tool_not_found' | 'parse' | 'validation' | 'unknown';
|
|
1883
|
+
};
|
|
1884
|
+
type ToolCallConversionResult = {
|
|
1885
|
+
success: true;
|
|
1886
|
+
invocations: ToolInvocation[];
|
|
1887
|
+
errors?: ValidationError[];
|
|
1888
|
+
} | {
|
|
1889
|
+
success: false;
|
|
1890
|
+
invocations: ToolInvocation[];
|
|
1891
|
+
errors: ValidationError[];
|
|
1892
|
+
};
|
|
1683
1893
|
type ToolCallValidation = {
|
|
1684
1894
|
valid: true;
|
|
1685
1895
|
invocation: ToolInvocation;
|
|
1686
1896
|
} | {
|
|
1687
1897
|
valid: false;
|
|
1688
1898
|
error: string;
|
|
1689
|
-
errorType: 'parse' | 'validation'
|
|
1899
|
+
errorType: 'parse' | 'validation';
|
|
1690
1900
|
callId: string;
|
|
1691
1901
|
toolName: string;
|
|
1692
1902
|
rawArguments?: string;
|
|
1693
1903
|
};
|
|
1694
1904
|
declare function convertToolCall(toolCall: ToolCall, options?: {
|
|
1695
1905
|
strict?: boolean;
|
|
1906
|
+
availableTools?: Set<string>;
|
|
1696
1907
|
}): ToolCallValidation;
|
|
1697
1908
|
declare function convertToolCalls(toolCalls: ToolCall[], options?: {
|
|
1698
1909
|
strict?: boolean;
|
|
1699
1910
|
throwOnError?: boolean;
|
|
1700
1911
|
}): ToolInvocation[];
|
|
1912
|
+
declare function convertToolCallsWithErrorHandling(toolCalls: ToolCall[], options?: {
|
|
1913
|
+
strict?: boolean;
|
|
1914
|
+
availableTools?: Set<string>;
|
|
1915
|
+
}): ToolCallConversionResult;
|
|
1701
1916
|
|
|
1702
1917
|
type FileReadParams = {
|
|
1703
1918
|
path: string;
|
|
@@ -2102,6 +2317,7 @@ declare abstract class BaseLLM implements LLMPort {
|
|
|
2102
2317
|
generateCompletion(params: CompletionParams, signal?: AbortSignal): Promise<CompletionResult>;
|
|
2103
2318
|
streamCompletion(params: CompletionParams, handlers?: {
|
|
2104
2319
|
onChunk?: (delta: string, usage?: UsageData) => void;
|
|
2320
|
+
onReasoningChunk?: (delta: string) => void;
|
|
2105
2321
|
onToolCallDelta?: (tc: ToolCall) => void;
|
|
2106
2322
|
onStreamFinish?: (finishReason?: string, usage?: UsageData) => void;
|
|
2107
2323
|
}, signal?: AbortSignal): Promise<CompletionResult>;
|
|
@@ -2205,7 +2421,7 @@ interface LLMOptions {
|
|
|
2205
2421
|
retry?: Partial<RetryConfig>;
|
|
2206
2422
|
}
|
|
2207
2423
|
interface CustomProviderDefinition {
|
|
2208
|
-
type?: 'openai-compat' | 'anthropic';
|
|
2424
|
+
type?: 'openai-compat' | 'anthropic-compat';
|
|
2209
2425
|
baseUrl?: string;
|
|
2210
2426
|
models?: ModelConfig;
|
|
2211
2427
|
customHeaders?: Record<string, string>;
|
|
@@ -2214,6 +2430,11 @@ declare function createLLM(providerName: string, options?: LLMOptions, customPro
|
|
|
2214
2430
|
declare function getAvailableProviders(customProviders?: Record<string, CustomProviderDefinition>): string[];
|
|
2215
2431
|
declare function supportsGetModels(providerName: string, customProviders?: Record<string, CustomProviderDefinition>): boolean;
|
|
2216
2432
|
declare function getProviderLabel(providerKey: string, customProviders?: Record<string, CustomProviderDefinition>): string | undefined;
|
|
2433
|
+
declare function getProviderAuthMethods(providerKey: string, customProviders?: Record<string, CustomProviderDefinition>): Array<{
|
|
2434
|
+
label: string;
|
|
2435
|
+
value: string;
|
|
2436
|
+
}>;
|
|
2437
|
+
declare function getProviderDefaultModels(providerKey: string, customProviders?: Record<string, CustomProviderDefinition>): string[];
|
|
2217
2438
|
|
|
2218
2439
|
type MCPHttpOptions = {
|
|
2219
2440
|
type: 'http';
|
|
@@ -2262,6 +2483,7 @@ declare class MCPToolPort implements ToolPort {
|
|
|
2262
2483
|
private client;
|
|
2263
2484
|
private map;
|
|
2264
2485
|
private toolSchemas;
|
|
2486
|
+
private zodSchemas;
|
|
2265
2487
|
private prefix;
|
|
2266
2488
|
constructor(client: CoreMCPClient, opts?: {
|
|
2267
2489
|
prefix?: string;
|
|
@@ -2311,4 +2533,4 @@ declare function resolveBackspaces(s: string): string;
|
|
|
2311
2533
|
declare function stripAnsiAndControls(s: string): string;
|
|
2312
2534
|
declare function canonicalizeTerminalPaste(raw: string): string;
|
|
2313
2535
|
|
|
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 };
|
|
2536
|
+
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 };
|