@nuvin/nuvin-core 1.19.0-rc.8 → 2.0.0-rc.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 +26 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/VERSION
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ type AgentTemplate = {
|
|
|
23
23
|
metadata?: Record<string, unknown>;
|
|
24
24
|
location?: 'built-in' | 'global' | 'profile' | 'local';
|
|
25
25
|
};
|
|
26
|
-
type CompleteAgent = Required<Pick<AgentTemplate, 'instructions' | 'name' | 'description' | 'allowed_tools'
|
|
26
|
+
type CompleteAgent = Required<Pick<AgentTemplate, 'instructions' | 'name' | 'description' | 'allowed_tools'>> & Pick<AgentTemplate, 'model' | 'disable_model_invocation' | 'user_invocable' | 'context' | 'agent' | 'provider' | 'temperature' | 'top_p' | 'max_tokens' | 'timeout_ms' | 'share_context' | 'metadata'> & {
|
|
27
27
|
location?: 'built-in' | 'global' | 'profile' | 'local';
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -210,6 +210,7 @@ type BashToolArgs = {
|
|
|
210
210
|
cwd?: string;
|
|
211
211
|
timeoutMs?: number;
|
|
212
212
|
description?: string;
|
|
213
|
+
ignoreOutput?: boolean;
|
|
213
214
|
};
|
|
214
215
|
type FileReadArgs = {
|
|
215
216
|
path: string;
|
|
@@ -539,8 +540,8 @@ type ChatMessage = {
|
|
|
539
540
|
type CompletionParams = {
|
|
540
541
|
messages: ChatMessage[];
|
|
541
542
|
model: string;
|
|
542
|
-
temperature
|
|
543
|
-
topP
|
|
543
|
+
temperature?: number;
|
|
544
|
+
topP?: number;
|
|
544
545
|
maxTokens?: number;
|
|
545
546
|
tools?: Array<{
|
|
546
547
|
type: 'function';
|
|
@@ -627,6 +628,7 @@ type SendMessageOptions = {
|
|
|
627
628
|
conversationId?: string;
|
|
628
629
|
stream?: boolean;
|
|
629
630
|
signal?: AbortSignal;
|
|
631
|
+
skipAutoSummaryCheck?: boolean;
|
|
630
632
|
};
|
|
631
633
|
type UserAttachment = ImageContentPart & {
|
|
632
634
|
token?: string;
|
|
@@ -914,9 +916,9 @@ interface MetricsPort {
|
|
|
914
916
|
type AgentConfig = {
|
|
915
917
|
id: string;
|
|
916
918
|
systemPrompt: string;
|
|
917
|
-
topP
|
|
919
|
+
topP?: number;
|
|
918
920
|
model: string;
|
|
919
|
-
temperature
|
|
921
|
+
temperature?: number;
|
|
920
922
|
maxTokens?: number;
|
|
921
923
|
enabledTools?: string[];
|
|
922
924
|
maxToolConcurrency?: number;
|
|
@@ -1433,6 +1435,10 @@ type InjectedSystemParams = {
|
|
|
1433
1435
|
description: string;
|
|
1434
1436
|
}>;
|
|
1435
1437
|
folderTree?: string;
|
|
1438
|
+
shell?: string;
|
|
1439
|
+
gitBranch?: string;
|
|
1440
|
+
gitRepo?: string;
|
|
1441
|
+
recentCommits?: string;
|
|
1436
1442
|
};
|
|
1437
1443
|
declare function buildInjectedSystem(p: InjectedSystemParams, { withSubAgent }?: {
|
|
1438
1444
|
withSubAgent?: boolean;
|
|
@@ -1880,6 +1886,11 @@ type SystemContext = {
|
|
|
1880
1886
|
arch: string;
|
|
1881
1887
|
tempDir: string;
|
|
1882
1888
|
workspaceDir: string;
|
|
1889
|
+
shell?: string;
|
|
1890
|
+
gitBranch?: string;
|
|
1891
|
+
gitRepo?: string;
|
|
1892
|
+
recentCommits?: string;
|
|
1893
|
+
folderTree?: string;
|
|
1883
1894
|
};
|
|
1884
1895
|
type AgentInfo = {
|
|
1885
1896
|
id: string;
|
|
@@ -2089,6 +2100,7 @@ type BashParams = {
|
|
|
2089
2100
|
cmd: string;
|
|
2090
2101
|
cwd?: string;
|
|
2091
2102
|
timeoutMs?: number;
|
|
2103
|
+
ignoreOutput?: boolean;
|
|
2092
2104
|
};
|
|
2093
2105
|
type BashSuccessResult$1 = {
|
|
2094
2106
|
status: 'success';
|
|
@@ -2124,6 +2136,10 @@ declare class BashTool implements FunctionTool<BashParams, ToolExecutionContext,
|
|
|
2124
2136
|
readonly minimum: 1;
|
|
2125
2137
|
readonly description: "Timeout in ms. Default: 30000.";
|
|
2126
2138
|
};
|
|
2139
|
+
readonly ignoreOutput: {
|
|
2140
|
+
readonly type: "boolean";
|
|
2141
|
+
readonly description: "If true, discard stdout/stderr and return only the exit code. Useful when you only care whether the command succeeded or failed.";
|
|
2142
|
+
};
|
|
2127
2143
|
};
|
|
2128
2144
|
readonly required: readonly ["cmd"];
|
|
2129
2145
|
};
|
|
@@ -2175,6 +2191,7 @@ declare const bashToolSchema: z.ZodObject<{
|
|
|
2175
2191
|
cwd: z.ZodOptional<z.ZodString>;
|
|
2176
2192
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2177
2193
|
description: z.ZodOptional<z.ZodString>;
|
|
2194
|
+
ignoreOutput: z.ZodOptional<z.ZodBoolean>;
|
|
2178
2195
|
}, z.core.$strip>;
|
|
2179
2196
|
declare const fileReadSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
2180
2197
|
path: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
@@ -2260,6 +2277,7 @@ declare const toolSchemas: {
|
|
|
2260
2277
|
cwd: z.ZodOptional<z.ZodString>;
|
|
2261
2278
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2262
2279
|
description: z.ZodOptional<z.ZodString>;
|
|
2280
|
+
ignoreOutput: z.ZodOptional<z.ZodBoolean>;
|
|
2263
2281
|
}, z.core.$strip>;
|
|
2264
2282
|
readonly file_read: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
2265
2283
|
path: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
@@ -2470,6 +2488,7 @@ type GrepParams = {
|
|
|
2470
2488
|
path?: string;
|
|
2471
2489
|
include?: string;
|
|
2472
2490
|
limit?: number;
|
|
2491
|
+
context?: number;
|
|
2473
2492
|
};
|
|
2474
2493
|
type GrepSuccessResult$1 = {
|
|
2475
2494
|
status: 'success';
|
|
@@ -3028,7 +3047,7 @@ interface LLMOptions {
|
|
|
3028
3047
|
retry?: Partial<RetryConfig>;
|
|
3029
3048
|
}
|
|
3030
3049
|
interface CustomProviderDefinition {
|
|
3031
|
-
type?: 'openai-compat' | 'anthropic-compat';
|
|
3050
|
+
type?: 'openai-compat' | 'anthropic-compat' | 'openai-response-compat';
|
|
3032
3051
|
baseUrl?: string;
|
|
3033
3052
|
models?: ModelConfig;
|
|
3034
3053
|
customHeaders?: Record<string, string>;
|
|
@@ -3089,6 +3108,7 @@ declare class CoreMCPClient {
|
|
|
3089
3108
|
constructor(opts: MCPOptions, timeoutMs?: number);
|
|
3090
3109
|
private getAuthHeaders;
|
|
3091
3110
|
connect(): Promise<void>;
|
|
3111
|
+
private performConnect;
|
|
3092
3112
|
reconnectWithNewToken(): Promise<void>;
|
|
3093
3113
|
isConnected(): boolean;
|
|
3094
3114
|
getCurrentToken(): string | null;
|