modality-kit 0.14.16 → 0.15.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/index.js +13276 -3716
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schemas/schemas_empty.d.ts +1 -1
- package/dist/types/schemas/schemas_symbol.d.ts +37 -51
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type { DataPendingOperation, PendingOperation } from "./util_pending";
|
|
|
14
14
|
*/
|
|
15
15
|
export { JSONRPCUtils } from "./JSONRPCUtils";
|
|
16
16
|
export { JSONRPCManager } from "./jsonrpc-manager";
|
|
17
|
-
export { JSONRPCErrorCode } from "./schemas/jsonrpc";
|
|
17
|
+
export { JSONRPCErrorCode, JSONRPC_VERSION } from "./schemas/jsonrpc";
|
|
18
18
|
export type { JSONRPCManagerEvents, JSONRPCManagerConfig, } from "./jsonrpc-manager";
|
|
19
19
|
export type { JSONRPCMessage, JSONRPCRequest, JSONRPCNotification, JSONRPCResponse, JSONRPCBatchRequest, JSONRPCBatchResponse, JSONRPCErrorResponse, JSONRPCValidationResult, JSONRPCError, JSONRPCParams, JSONRPCId, CommandExecuteParams, NotificationSendParams, } from "./schemas/jsonrpc";
|
|
20
20
|
export { ERROR_METHOD_NOT_FOUND } from "./jsonrpc-manager";
|
|
@@ -2,56 +2,47 @@ import { z } from "zod";
|
|
|
2
2
|
declare const positionSchema: z.ZodObject<{
|
|
3
3
|
line: z.ZodNumber;
|
|
4
4
|
col: z.ZodNumber;
|
|
5
|
-
},
|
|
6
|
-
line: number;
|
|
7
|
-
col: number;
|
|
8
|
-
}, {
|
|
9
|
-
line: number;
|
|
10
|
-
col: number;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
export declare const symbolKinds: readonly ["File", "Module", "Namespace", "Package", "Class", "Method", "Property", "Field", "Constructor", "Enum", "Interface", "Function", "Variable", "Constant", "String", "Number", "Boolean", "Array", "Object", "Key", "Null", "EnumMember", "Struct", "Event", "Operator", "TypeParameter"];
|
|
13
|
-
export declare const symbolKindSchema: z.ZodEnum<
|
|
7
|
+
export declare const symbolKindSchema: z.ZodEnum<{
|
|
8
|
+
File: "File";
|
|
9
|
+
Module: "Module";
|
|
10
|
+
Namespace: "Namespace";
|
|
11
|
+
Package: "Package";
|
|
12
|
+
Class: "Class";
|
|
13
|
+
Method: "Method";
|
|
14
|
+
Property: "Property";
|
|
15
|
+
Field: "Field";
|
|
16
|
+
Constructor: "Constructor";
|
|
17
|
+
Enum: "Enum";
|
|
18
|
+
Interface: "Interface";
|
|
19
|
+
Function: "Function";
|
|
20
|
+
Variable: "Variable";
|
|
21
|
+
Constant: "Constant";
|
|
22
|
+
String: "String";
|
|
23
|
+
Number: "Number";
|
|
24
|
+
Boolean: "Boolean";
|
|
25
|
+
Array: "Array";
|
|
26
|
+
Object: "Object";
|
|
27
|
+
Key: "Key";
|
|
28
|
+
Null: "Null";
|
|
29
|
+
EnumMember: "EnumMember";
|
|
30
|
+
Struct: "Struct";
|
|
31
|
+
Event: "Event";
|
|
32
|
+
Operator: "Operator";
|
|
33
|
+
TypeParameter: "TypeParameter";
|
|
34
|
+
}>;
|
|
14
35
|
export type SymbolKindType = z.infer<typeof symbolKindSchema>;
|
|
15
36
|
export declare const rangeSchema: z.ZodObject<{
|
|
16
37
|
start: z.ZodObject<{
|
|
17
38
|
line: z.ZodNumber;
|
|
18
39
|
col: z.ZodNumber;
|
|
19
|
-
},
|
|
20
|
-
line: number;
|
|
21
|
-
col: number;
|
|
22
|
-
}, {
|
|
23
|
-
line: number;
|
|
24
|
-
col: number;
|
|
25
|
-
}>;
|
|
40
|
+
}, z.core.$strip>;
|
|
26
41
|
end: z.ZodObject<{
|
|
27
42
|
line: z.ZodNumber;
|
|
28
43
|
col: z.ZodNumber;
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
col: number;
|
|
32
|
-
}, {
|
|
33
|
-
line: number;
|
|
34
|
-
col: number;
|
|
35
|
-
}>;
|
|
36
|
-
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
start: {
|
|
38
|
-
line: number;
|
|
39
|
-
col: number;
|
|
40
|
-
};
|
|
41
|
-
end: {
|
|
42
|
-
line: number;
|
|
43
|
-
col: number;
|
|
44
|
-
};
|
|
45
|
-
}, {
|
|
46
|
-
start: {
|
|
47
|
-
line: number;
|
|
48
|
-
col: number;
|
|
49
|
-
};
|
|
50
|
-
end: {
|
|
51
|
-
line: number;
|
|
52
|
-
col: number;
|
|
53
|
-
};
|
|
54
|
-
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
}, z.core.$strip>;
|
|
55
46
|
export type Position = z.infer<typeof positionSchema>;
|
|
56
47
|
export type Range = z.infer<typeof rangeSchema>;
|
|
57
48
|
interface SymbolBase {
|
|
@@ -88,17 +79,12 @@ export interface VSCodeSymbol extends SymbolBase {
|
|
|
88
79
|
}
|
|
89
80
|
declare const fileEntrySchema: z.ZodObject<{
|
|
90
81
|
path: z.ZodString;
|
|
91
|
-
type: z.ZodEnum<
|
|
82
|
+
type: z.ZodEnum<{
|
|
83
|
+
file: "file";
|
|
84
|
+
directory: "directory";
|
|
85
|
+
}>;
|
|
92
86
|
lastModified: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
93
|
-
},
|
|
94
|
-
type: "file" | "directory";
|
|
95
|
-
path: string;
|
|
96
|
-
lastModified?: number | null | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
type: "file" | "directory";
|
|
99
|
-
path: string;
|
|
100
|
-
lastModified?: number | null | undefined;
|
|
101
|
-
}>;
|
|
87
|
+
}, z.core.$strip>;
|
|
102
88
|
export type FileEntryType = z.infer<typeof fileEntrySchema>;
|
|
103
89
|
export interface VSCodeFileEntryType extends FileEntryType {
|
|
104
90
|
position: VSCodePosition;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.15.0",
|
|
3
3
|
"name": "modality-kit",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@modelcontextprotocol/sdk": "^1.24.2",
|
|
17
17
|
"modality-bun-kit": "^0.0.1",
|
|
18
|
-
"zod": "^3.
|
|
18
|
+
"zod": "^4.3.4"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|