@nuvin/nuvin-core 1.18.0 → 1.19.0-rc.1
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 +42 -34
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/VERSION
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1970,27 +1970,27 @@ type ValidationResult<T = unknown> = {
|
|
|
1970
1970
|
};
|
|
1971
1971
|
type ToolValidator<T extends ToolName> = (params: Record<string, unknown>) => ValidationResult<ToolParameterMap[T]>;
|
|
1972
1972
|
declare const bashToolSchema: z.ZodObject<{
|
|
1973
|
-
cmd: z.ZodString
|
|
1973
|
+
cmd: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
1974
1974
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1975
1975
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1976
1976
|
description: z.ZodOptional<z.ZodString>;
|
|
1977
1977
|
}, z.core.$strip>;
|
|
1978
|
-
declare const fileReadSchema: z.ZodObject<{
|
|
1979
|
-
path: z.ZodString
|
|
1978
|
+
declare const fileReadSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
1979
|
+
path: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
1980
1980
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
1981
1981
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
1982
1982
|
description: z.ZodOptional<z.ZodString>;
|
|
1983
|
-
}, z.core.$strip
|
|
1983
|
+
}, z.core.$strip>>;
|
|
1984
1984
|
declare const fileEditSchema: z.ZodObject<{
|
|
1985
|
-
file_path: z.ZodString
|
|
1986
|
-
old_text: z.ZodString
|
|
1987
|
-
new_text: z.ZodString
|
|
1985
|
+
file_path: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
1986
|
+
old_text: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
1987
|
+
new_text: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
1988
1988
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
1989
1989
|
description: z.ZodOptional<z.ZodString>;
|
|
1990
1990
|
}, z.core.$strip>;
|
|
1991
1991
|
declare const fileNewSchema: z.ZodObject<{
|
|
1992
|
-
file_path: z.ZodString
|
|
1993
|
-
content: z.ZodString
|
|
1992
|
+
file_path: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
1993
|
+
content: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
1994
1994
|
description: z.ZodOptional<z.ZodString>;
|
|
1995
1995
|
}, z.core.$strip>;
|
|
1996
1996
|
declare const lsToolSchema: z.ZodObject<{
|
|
@@ -1999,7 +1999,7 @@ declare const lsToolSchema: z.ZodObject<{
|
|
|
1999
1999
|
description: z.ZodOptional<z.ZodString>;
|
|
2000
2000
|
}, z.core.$strip>;
|
|
2001
2001
|
declare const webSearchSchema: z.ZodObject<{
|
|
2002
|
-
query: z.ZodString
|
|
2002
|
+
query: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2003
2003
|
count: z.ZodOptional<z.ZodNumber>;
|
|
2004
2004
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
2005
2005
|
domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2015,7 +2015,7 @@ declare const webSearchSchema: z.ZodObject<{
|
|
|
2015
2015
|
description: z.ZodOptional<z.ZodString>;
|
|
2016
2016
|
}, z.core.$strip>;
|
|
2017
2017
|
declare const webFetchSchema: z.ZodObject<{
|
|
2018
|
-
url: z.ZodString
|
|
2018
|
+
url: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2019
2019
|
description: z.ZodOptional<z.ZodString>;
|
|
2020
2020
|
}, z.core.$strip>;
|
|
2021
2021
|
declare const todoWriteSchema: z.ZodObject<{
|
|
@@ -2037,44 +2037,44 @@ declare const todoWriteSchema: z.ZodObject<{
|
|
|
2037
2037
|
description: z.ZodOptional<z.ZodString>;
|
|
2038
2038
|
}, z.core.$strip>;
|
|
2039
2039
|
declare const assignTaskSchema: z.ZodObject<{
|
|
2040
|
-
agent: z.ZodString
|
|
2041
|
-
task: z.ZodString
|
|
2042
|
-
description: z.ZodString
|
|
2040
|
+
agent: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2041
|
+
task: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2042
|
+
description: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2043
2043
|
}, z.core.$strip>;
|
|
2044
2044
|
declare const globToolSchema: z.ZodObject<{
|
|
2045
|
-
pattern: z.ZodString
|
|
2045
|
+
pattern: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2046
2046
|
path: z.ZodOptional<z.ZodString>;
|
|
2047
2047
|
description: z.ZodOptional<z.ZodString>;
|
|
2048
2048
|
}, z.core.$strip>;
|
|
2049
2049
|
declare const grepToolSchema: z.ZodObject<{
|
|
2050
|
-
pattern: z.ZodString
|
|
2050
|
+
pattern: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2051
2051
|
path: z.ZodOptional<z.ZodString>;
|
|
2052
2052
|
include: z.ZodOptional<z.ZodString>;
|
|
2053
2053
|
description: z.ZodOptional<z.ZodString>;
|
|
2054
2054
|
}, z.core.$strip>;
|
|
2055
2055
|
declare const toolSchemas: {
|
|
2056
2056
|
readonly bash_tool: z.ZodObject<{
|
|
2057
|
-
cmd: z.ZodString
|
|
2057
|
+
cmd: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2058
2058
|
cwd: z.ZodOptional<z.ZodString>;
|
|
2059
2059
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2060
2060
|
description: z.ZodOptional<z.ZodString>;
|
|
2061
2061
|
}, z.core.$strip>;
|
|
2062
|
-
readonly file_read: z.ZodObject<{
|
|
2063
|
-
path: z.ZodString
|
|
2062
|
+
readonly file_read: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
2063
|
+
path: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2064
2064
|
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
2065
2065
|
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
2066
2066
|
description: z.ZodOptional<z.ZodString>;
|
|
2067
|
-
}, z.core.$strip
|
|
2067
|
+
}, z.core.$strip>>;
|
|
2068
2068
|
readonly file_edit: z.ZodObject<{
|
|
2069
|
-
file_path: z.ZodString
|
|
2070
|
-
old_text: z.ZodString
|
|
2071
|
-
new_text: z.ZodString
|
|
2069
|
+
file_path: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2070
|
+
old_text: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2071
|
+
new_text: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2072
2072
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
2073
2073
|
description: z.ZodOptional<z.ZodString>;
|
|
2074
2074
|
}, z.core.$strip>;
|
|
2075
2075
|
readonly file_new: z.ZodObject<{
|
|
2076
|
-
file_path: z.ZodString
|
|
2077
|
-
content: z.ZodString
|
|
2076
|
+
file_path: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2077
|
+
content: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2078
2078
|
description: z.ZodOptional<z.ZodString>;
|
|
2079
2079
|
}, z.core.$strip>;
|
|
2080
2080
|
readonly ls_tool: z.ZodObject<{
|
|
@@ -2083,7 +2083,7 @@ declare const toolSchemas: {
|
|
|
2083
2083
|
description: z.ZodOptional<z.ZodString>;
|
|
2084
2084
|
}, z.core.$strip>;
|
|
2085
2085
|
readonly web_search: z.ZodObject<{
|
|
2086
|
-
query: z.ZodString
|
|
2086
|
+
query: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2087
2087
|
count: z.ZodOptional<z.ZodNumber>;
|
|
2088
2088
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
2089
2089
|
domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2099,7 +2099,7 @@ declare const toolSchemas: {
|
|
|
2099
2099
|
description: z.ZodOptional<z.ZodString>;
|
|
2100
2100
|
}, z.core.$strip>;
|
|
2101
2101
|
readonly web_fetch: z.ZodObject<{
|
|
2102
|
-
url: z.ZodString
|
|
2102
|
+
url: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2103
2103
|
description: z.ZodOptional<z.ZodString>;
|
|
2104
2104
|
}, z.core.$strip>;
|
|
2105
2105
|
readonly todo_write: z.ZodObject<{
|
|
@@ -2121,17 +2121,17 @@ declare const toolSchemas: {
|
|
|
2121
2121
|
description: z.ZodOptional<z.ZodString>;
|
|
2122
2122
|
}, z.core.$strip>;
|
|
2123
2123
|
readonly assign_task: z.ZodObject<{
|
|
2124
|
-
agent: z.ZodString
|
|
2125
|
-
task: z.ZodString
|
|
2126
|
-
description: z.ZodString
|
|
2124
|
+
agent: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2125
|
+
task: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2126
|
+
description: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2127
2127
|
}, z.core.$strip>;
|
|
2128
2128
|
readonly glob_tool: z.ZodObject<{
|
|
2129
|
-
pattern: z.ZodString
|
|
2129
|
+
pattern: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2130
2130
|
path: z.ZodOptional<z.ZodString>;
|
|
2131
2131
|
description: z.ZodOptional<z.ZodString>;
|
|
2132
2132
|
}, z.core.$strip>;
|
|
2133
2133
|
readonly grep_tool: z.ZodObject<{
|
|
2134
|
-
pattern: z.ZodString
|
|
2134
|
+
pattern: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
2135
2135
|
path: z.ZodOptional<z.ZodString>;
|
|
2136
2136
|
include: z.ZodOptional<z.ZodString>;
|
|
2137
2137
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2388,7 +2388,7 @@ declare class AskUserTool implements FunctionTool<AskUserArgs, ToolExecutionCont
|
|
|
2388
2388
|
};
|
|
2389
2389
|
readonly header: {
|
|
2390
2390
|
readonly type: "string";
|
|
2391
|
-
readonly description: "Very short label displayed as a chip/tag (max
|
|
2391
|
+
readonly description: "Very short label displayed as a chip/tag (max 20 chars). Examples: \"Auth method\", \"Library\", \"Approach\".";
|
|
2392
2392
|
};
|
|
2393
2393
|
readonly options: {
|
|
2394
2394
|
readonly type: "array";
|
|
@@ -2699,7 +2699,8 @@ type ModelInfo = {
|
|
|
2699
2699
|
id: string;
|
|
2700
2700
|
name?: string;
|
|
2701
2701
|
limits?: ModelLimits;
|
|
2702
|
-
|
|
2702
|
+
supportedEndpoints?: string[];
|
|
2703
|
+
[key: string]: string | number | ModelLimits | string[] | undefined | unknown;
|
|
2703
2704
|
};
|
|
2704
2705
|
type RawModelResponse = {
|
|
2705
2706
|
[key: string]: string | number | undefined | unknown;
|
|
@@ -2718,14 +2719,21 @@ type GithubOptions = {
|
|
|
2718
2719
|
};
|
|
2719
2720
|
declare class GithubLLM extends BaseLLM implements LLMPort {
|
|
2720
2721
|
private readonly opts;
|
|
2722
|
+
private modelEndpointCache;
|
|
2721
2723
|
constructor(opts?: GithubOptions);
|
|
2722
2724
|
protected createTransport(): LLMErrorTransport;
|
|
2723
2725
|
protected transformUsage(rawUsage: unknown): UsageData | undefined;
|
|
2724
2726
|
getModels(signal?: AbortSignal): Promise<ModelInfo[]>;
|
|
2727
|
+
private needsResponsesApi;
|
|
2728
|
+
private markModelAsResponsesOnly;
|
|
2725
2729
|
private handleError;
|
|
2730
|
+
private throwResponsesApiError;
|
|
2731
|
+
private generateCompletionViaResponses;
|
|
2732
|
+
private streamCompletionViaResponses;
|
|
2726
2733
|
generateCompletion(params: CompletionParams, signal?: AbortSignal): Promise<CompletionResult>;
|
|
2727
2734
|
streamCompletion(params: CompletionParams, handlers?: {
|
|
2728
2735
|
onChunk?: (delta: string, usage?: UsageData) => void;
|
|
2736
|
+
onReasoningChunk?: (delta: string) => void;
|
|
2729
2737
|
onToolCallDelta?: (tc: ToolCall) => void;
|
|
2730
2738
|
onStreamFinish?: (finishReason?: string, usage?: UsageData) => void;
|
|
2731
2739
|
onUsage?: (usage: UsageData) => void;
|