@nuvin/nuvin-core 2.1.0-rc.1 → 2.1.0-rc.2
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 +113 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/VERSION
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -314,7 +314,19 @@ type MemoryExtractArgs = {
|
|
|
314
314
|
maxMessages?: number;
|
|
315
315
|
minSimilarityScore?: number;
|
|
316
316
|
};
|
|
317
|
-
type
|
|
317
|
+
type LspArgs = {
|
|
318
|
+
operation: 'goToDefinition' | 'findReferences' | 'hover' | 'documentSymbol' | 'workspaceSymbol' | 'goToImplementation' | 'prepareCallHierarchy' | 'incomingCalls' | 'outgoingCalls' | 'diagnostics';
|
|
319
|
+
filePath: string;
|
|
320
|
+
line: number;
|
|
321
|
+
character: number;
|
|
322
|
+
query?: string;
|
|
323
|
+
description?: string;
|
|
324
|
+
};
|
|
325
|
+
type SkillArgs = {
|
|
326
|
+
name: string;
|
|
327
|
+
description?: string;
|
|
328
|
+
};
|
|
329
|
+
type ToolArguments = BashToolArgs | FileReadArgs | FileEditArgs | FileNewArgs | LsArgs | GlobArgs | GrepArgs | WebSearchArgs | WebFetchArgs | TodoWriteArgs | AssignTaskArgs | AskUserArgs | ComputerUseArgs | MemoryQueryArgs | MemoryExtractArgs | LspArgs | SkillArgs;
|
|
318
330
|
/**
|
|
319
331
|
* Type guard to safely parse tool arguments
|
|
320
332
|
*/
|
|
@@ -351,6 +363,8 @@ type ToolParameterMap = {
|
|
|
351
363
|
computer: ComputerUseArgs;
|
|
352
364
|
memory_query: MemoryQueryArgs;
|
|
353
365
|
memory_extract: MemoryExtractArgs;
|
|
366
|
+
lsp: LspArgs;
|
|
367
|
+
skill: SkillArgs;
|
|
354
368
|
};
|
|
355
369
|
type ToolName = keyof ToolParameterMap;
|
|
356
370
|
type TypedToolInvocation<T extends ToolName = ToolName> = {
|
|
@@ -752,6 +766,31 @@ type ToolInvocation = {
|
|
|
752
766
|
name: 'assign_task';
|
|
753
767
|
parameters: AssignTaskArgs;
|
|
754
768
|
editInstruction?: string;
|
|
769
|
+
} | {
|
|
770
|
+
id: string;
|
|
771
|
+
name: 'grep_tool';
|
|
772
|
+
parameters: GrepArgs;
|
|
773
|
+
editInstruction?: string;
|
|
774
|
+
} | {
|
|
775
|
+
id: string;
|
|
776
|
+
name: 'glob_tool';
|
|
777
|
+
parameters: GlobArgs;
|
|
778
|
+
editInstruction?: string;
|
|
779
|
+
} | {
|
|
780
|
+
id: string;
|
|
781
|
+
name: 'lsp';
|
|
782
|
+
parameters: LspArgs;
|
|
783
|
+
editInstruction?: string;
|
|
784
|
+
} | {
|
|
785
|
+
id: string;
|
|
786
|
+
name: 'skill';
|
|
787
|
+
parameters: SkillArgs;
|
|
788
|
+
editInstruction?: string;
|
|
789
|
+
} | {
|
|
790
|
+
id: string;
|
|
791
|
+
name: 'ask_user_tool';
|
|
792
|
+
parameters: AskUserArgs;
|
|
793
|
+
editInstruction?: string;
|
|
755
794
|
} | {
|
|
756
795
|
id: string;
|
|
757
796
|
name: string;
|
|
@@ -844,6 +883,54 @@ type ToolExecutionResult = {
|
|
|
844
883
|
result: string;
|
|
845
884
|
metadata: AssignTaskMetadata;
|
|
846
885
|
durationMs?: number;
|
|
886
|
+
} | {
|
|
887
|
+
id: string;
|
|
888
|
+
name: 'grep_tool';
|
|
889
|
+
status: 'success';
|
|
890
|
+
type: 'text';
|
|
891
|
+
result: string;
|
|
892
|
+
metadata?: GrepToolMetadata;
|
|
893
|
+
durationMs?: number;
|
|
894
|
+
} | {
|
|
895
|
+
id: string;
|
|
896
|
+
name: 'glob_tool';
|
|
897
|
+
status: 'success';
|
|
898
|
+
type: 'text';
|
|
899
|
+
result: string;
|
|
900
|
+
metadata?: GlobToolMetadata;
|
|
901
|
+
durationMs?: number;
|
|
902
|
+
} | {
|
|
903
|
+
id: string;
|
|
904
|
+
name: 'lsp';
|
|
905
|
+
status: 'success';
|
|
906
|
+
type: 'text';
|
|
907
|
+
result: string;
|
|
908
|
+
metadata?: {
|
|
909
|
+
operation: string;
|
|
910
|
+
filePath: string;
|
|
911
|
+
line: number;
|
|
912
|
+
character: number;
|
|
913
|
+
resultCount?: number;
|
|
914
|
+
};
|
|
915
|
+
durationMs?: number;
|
|
916
|
+
} | {
|
|
917
|
+
id: string;
|
|
918
|
+
name: 'skill';
|
|
919
|
+
status: 'success';
|
|
920
|
+
type: 'text';
|
|
921
|
+
result: string;
|
|
922
|
+
metadata?: {
|
|
923
|
+
name: string;
|
|
924
|
+
};
|
|
925
|
+
durationMs?: number;
|
|
926
|
+
} | {
|
|
927
|
+
id: string;
|
|
928
|
+
name: 'ask_user_tool';
|
|
929
|
+
status: 'success';
|
|
930
|
+
type: 'text';
|
|
931
|
+
result: string;
|
|
932
|
+
metadata: AskUserMetadata;
|
|
933
|
+
durationMs?: number;
|
|
847
934
|
} | {
|
|
848
935
|
id: string;
|
|
849
936
|
name: string;
|
|
@@ -3222,6 +3309,29 @@ declare const toolSchemas: {
|
|
|
3222
3309
|
maxMessages: z.ZodOptional<z.ZodNumber>;
|
|
3223
3310
|
minSimilarityScore: z.ZodOptional<z.ZodNumber>;
|
|
3224
3311
|
}, z.core.$strip>;
|
|
3312
|
+
readonly lsp: z.ZodObject<{
|
|
3313
|
+
operation: z.ZodEnum<{
|
|
3314
|
+
goToDefinition: "goToDefinition";
|
|
3315
|
+
findReferences: "findReferences";
|
|
3316
|
+
hover: "hover";
|
|
3317
|
+
documentSymbol: "documentSymbol";
|
|
3318
|
+
workspaceSymbol: "workspaceSymbol";
|
|
3319
|
+
goToImplementation: "goToImplementation";
|
|
3320
|
+
prepareCallHierarchy: "prepareCallHierarchy";
|
|
3321
|
+
incomingCalls: "incomingCalls";
|
|
3322
|
+
outgoingCalls: "outgoingCalls";
|
|
3323
|
+
diagnostics: "diagnostics";
|
|
3324
|
+
}>;
|
|
3325
|
+
filePath: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
3326
|
+
line: z.ZodNumber;
|
|
3327
|
+
character: z.ZodNumber;
|
|
3328
|
+
query: z.ZodOptional<z.ZodString>;
|
|
3329
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3330
|
+
}, z.core.$strip>;
|
|
3331
|
+
readonly skill: z.ZodObject<{
|
|
3332
|
+
name: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
3333
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3334
|
+
}, z.core.$strip>;
|
|
3225
3335
|
};
|
|
3226
3336
|
declare function validateToolParams<T extends ToolName>(toolName: T, params: Record<string, unknown>): ValidationResult<ToolParameterMap[T]>;
|
|
3227
3337
|
declare const toolValidators: {
|
|
@@ -3239,6 +3349,8 @@ declare const toolValidators: {
|
|
|
3239
3349
|
computer: (params: Record<string, unknown>) => ValidationResult<ComputerUseArgs>;
|
|
3240
3350
|
memory_query: (params: Record<string, unknown>) => ValidationResult<MemoryQueryArgs>;
|
|
3241
3351
|
memory_extract: (params: Record<string, unknown>) => ValidationResult<MemoryExtractArgs>;
|
|
3352
|
+
lsp: (params: Record<string, unknown>) => ValidationResult<LspArgs>;
|
|
3353
|
+
skill: (params: Record<string, unknown>) => ValidationResult<SkillArgs>;
|
|
3242
3354
|
};
|
|
3243
3355
|
|
|
3244
3356
|
type ValidationError = {
|