@codebolt/codeboltjs 2.0.17 → 2.2.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/core/Codebolt.d.ts +48 -53
- package/dist/core/messageManager.d.ts +0 -1
- package/dist/modules/chat.d.ts +1 -1
- package/dist/modules/codeparsers.js +24 -15
- package/dist/modules/codeutils.js +19 -9
- package/dist/modules/task.d.ts +1 -1
- package/dist/modules/terminal.d.ts +0 -1
- package/dist/notificationfunctions/agent.js +4 -4
- package/dist/notificationfunctions/browser.js +5 -5
- package/dist/notificationfunctions/chat.js +5 -5
- package/dist/notificationfunctions/codeutils.js +5 -5
- package/dist/notificationfunctions/crawler.js +5 -5
- package/dist/notificationfunctions/dbmemory.js +5 -5
- package/dist/notificationfunctions/fs.js +23 -23
- package/dist/notificationfunctions/git.js +25 -25
- package/dist/notificationfunctions/history.js +5 -5
- package/dist/notificationfunctions/llm.js +5 -5
- package/dist/notificationfunctions/mcp.js +9 -9
- package/dist/notificationfunctions/search.js +7 -7
- package/dist/notificationfunctions/system.js +3 -3
- package/dist/notificationfunctions/terminal.js +3 -3
- package/dist/notificationfunctions/todo.js +7 -7
- package/dist/notificationfunctions/utils.js +8 -8
- package/dist/types/InternalTypes.d.ts +0 -3
- package/dist/types/commonTypes.d.ts +2 -2
- package/dist/types/socketMessageTypes.d.ts +0 -2
- package/dist/types/socketMessageTypes.js +6 -7
- package/package.json +23 -29
- package/dist/utils/docutils.d.ts +0 -9
- package/dist/utils/docutils.js +0 -69
- package/dist/utils/mcpServer.d.ts +0 -481
- package/dist/utils/mcpServer.js +0 -779
- package/dist/utils/parse-source-code/index.d.ts +0 -9
- package/dist/utils/parse-source-code/index.js +0 -233
- package/dist/utils/parse-source-code/languageParser.d.ts +0 -2
- package/dist/utils/parse-source-code/languageParser.js +0 -137
- package/dist/utils/parse-source-code/queries/c-sharp.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/c-sharp.js +0 -25
- package/dist/utils/parse-source-code/queries/c.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/c.js +0 -17
- package/dist/utils/parse-source-code/queries/cpp.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/cpp.js +0 -25
- package/dist/utils/parse-source-code/queries/go.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/go.js +0 -29
- package/dist/utils/parse-source-code/queries/index.d.ts +0 -12
- package/dist/utils/parse-source-code/queries/index.js +0 -30
- package/dist/utils/parse-source-code/queries/java.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/java.js +0 -17
- package/dist/utils/parse-source-code/queries/javascript.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/javascript.js +0 -67
- package/dist/utils/parse-source-code/queries/php.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/php.js +0 -17
- package/dist/utils/parse-source-code/queries/python.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/python.js +0 -13
- package/dist/utils/parse-source-code/queries/ruby.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/ruby.js +0 -54
- package/dist/utils/parse-source-code/queries/rust.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/rust.js +0 -18
- package/dist/utils/parse-source-code/queries/swift.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/swift.js +0 -47
- package/dist/utils/parse-source-code/queries/typescript.d.ts +0 -2
- package/dist/utils/parse-source-code/queries/typescript.js +0 -34
- package/dist/utils/parse-source-code/tree-sitter-c.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-c_sharp.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-cpp.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-go.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-java.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-javascript.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-php.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-python.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-ruby.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-rust.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-swift.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-tsx.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter-typescript.wasm +0 -0
- package/dist/utils/parse-source-code/tree-sitter.wasm +0 -0
- package/dist/utils.d.ts +0 -2
- package/dist/utils.js +0 -10
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
- class declarations
|
|
5
|
-
- function definitions
|
|
6
|
-
- method declarations
|
|
7
|
-
*/
|
|
8
|
-
exports.default = `
|
|
9
|
-
(class_declaration
|
|
10
|
-
name: (name) @name.definition.class) @definition.class
|
|
11
|
-
|
|
12
|
-
(function_definition
|
|
13
|
-
name: (name) @name.definition.function) @definition.function
|
|
14
|
-
|
|
15
|
-
(method_declaration
|
|
16
|
-
name: (name) @name.definition.function) @definition.function
|
|
17
|
-
`;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
- class definitions
|
|
5
|
-
- function definitions
|
|
6
|
-
*/
|
|
7
|
-
exports.default = `
|
|
8
|
-
(class_definition
|
|
9
|
-
name: (identifier) @name.definition.class) @definition.class
|
|
10
|
-
|
|
11
|
-
(function_definition
|
|
12
|
-
name: (identifier) @name.definition.function) @definition.function
|
|
13
|
-
`;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "\n(\n (comment)* @doc\n .\n [\n (method\n name: (_) @name.definition.method) @definition.method\n (singleton_method\n name: (_) @name.definition.method) @definition.method\n ]\n (#strip! @doc \"^#\\s*\")\n (#select-adjacent! @doc @definition.method)\n)\n\n(alias\n name: (_) @name.definition.method) @definition.method\n\n(\n (comment)* @doc\n .\n [\n (class\n name: [\n (constant) @name.definition.class\n (scope_resolution\n name: (_) @name.definition.class)\n ]) @definition.class\n (singleton_class\n value: [\n (constant) @name.definition.class\n (scope_resolution\n name: (_) @name.definition.class)\n ]) @definition.class\n ]\n (#strip! @doc \"^#\\s*\")\n (#select-adjacent! @doc @definition.class)\n)\n\n(\n (module\n name: [\n (constant) @name.definition.module\n (scope_resolution\n name: (_) @name.definition.module)\n ]) @definition.module\n)\n";
|
|
2
|
-
export default _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
- method definitions (including singleton methods and aliases, with associated comments)
|
|
5
|
-
- class definitions (including singleton classes, with associated comments)
|
|
6
|
-
- module definitions
|
|
7
|
-
*/
|
|
8
|
-
exports.default = `
|
|
9
|
-
(
|
|
10
|
-
(comment)* @doc
|
|
11
|
-
.
|
|
12
|
-
[
|
|
13
|
-
(method
|
|
14
|
-
name: (_) @name.definition.method) @definition.method
|
|
15
|
-
(singleton_method
|
|
16
|
-
name: (_) @name.definition.method) @definition.method
|
|
17
|
-
]
|
|
18
|
-
(#strip! @doc "^#\\s*")
|
|
19
|
-
(#select-adjacent! @doc @definition.method)
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
(alias
|
|
23
|
-
name: (_) @name.definition.method) @definition.method
|
|
24
|
-
|
|
25
|
-
(
|
|
26
|
-
(comment)* @doc
|
|
27
|
-
.
|
|
28
|
-
[
|
|
29
|
-
(class
|
|
30
|
-
name: [
|
|
31
|
-
(constant) @name.definition.class
|
|
32
|
-
(scope_resolution
|
|
33
|
-
name: (_) @name.definition.class)
|
|
34
|
-
]) @definition.class
|
|
35
|
-
(singleton_class
|
|
36
|
-
value: [
|
|
37
|
-
(constant) @name.definition.class
|
|
38
|
-
(scope_resolution
|
|
39
|
-
name: (_) @name.definition.class)
|
|
40
|
-
]) @definition.class
|
|
41
|
-
]
|
|
42
|
-
(#strip! @doc "^#\\s*")
|
|
43
|
-
(#select-adjacent! @doc @definition.class)
|
|
44
|
-
)
|
|
45
|
-
|
|
46
|
-
(
|
|
47
|
-
(module
|
|
48
|
-
name: [
|
|
49
|
-
(constant) @name.definition.module
|
|
50
|
-
(scope_resolution
|
|
51
|
-
name: (_) @name.definition.module)
|
|
52
|
-
]) @definition.module
|
|
53
|
-
)
|
|
54
|
-
`;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "\n(struct_item\n name: (type_identifier) @name.definition.class) @definition.class\n\n(declaration_list\n (function_item\n name: (identifier) @name.definition.method)) @definition.method\n\n(function_item\n name: (identifier) @name.definition.function) @definition.function\n";
|
|
2
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
- struct definitions
|
|
5
|
-
- method definitions
|
|
6
|
-
- function definitions
|
|
7
|
-
*/
|
|
8
|
-
exports.default = `
|
|
9
|
-
(struct_item
|
|
10
|
-
name: (type_identifier) @name.definition.class) @definition.class
|
|
11
|
-
|
|
12
|
-
(declaration_list
|
|
13
|
-
(function_item
|
|
14
|
-
name: (identifier) @name.definition.method)) @definition.method
|
|
15
|
-
|
|
16
|
-
(function_item
|
|
17
|
-
name: (identifier) @name.definition.function) @definition.function
|
|
18
|
-
`;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "\n(class_declaration\n name: (type_identifier) @name) @definition.class\n\n(protocol_declaration\n name: (type_identifier) @name) @definition.interface\n\n(class_declaration\n (class_body\n [\n (function_declaration\n name: (simple_identifier) @name\n )\n (subscript_declaration\n (parameter (simple_identifier) @name)\n )\n (init_declaration \"init\" @name)\n (deinit_declaration \"deinit\" @name)\n ]\n )\n) @definition.method\n\n(class_declaration\n (class_body\n [\n (property_declaration\n (pattern (simple_identifier) @name)\n )\n ]\n )\n) @definition.property\n\n(property_declaration\n (pattern (simple_identifier) @name)\n) @definition.property\n\n(function_declaration\n name: (simple_identifier) @name) @definition.function\n";
|
|
2
|
-
export default _default;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
- class declarations
|
|
5
|
-
- method declarations (including initializers and deinitializers)
|
|
6
|
-
- property declarations
|
|
7
|
-
- function declarations
|
|
8
|
-
*/
|
|
9
|
-
exports.default = `
|
|
10
|
-
(class_declaration
|
|
11
|
-
name: (type_identifier) @name) @definition.class
|
|
12
|
-
|
|
13
|
-
(protocol_declaration
|
|
14
|
-
name: (type_identifier) @name) @definition.interface
|
|
15
|
-
|
|
16
|
-
(class_declaration
|
|
17
|
-
(class_body
|
|
18
|
-
[
|
|
19
|
-
(function_declaration
|
|
20
|
-
name: (simple_identifier) @name
|
|
21
|
-
)
|
|
22
|
-
(subscript_declaration
|
|
23
|
-
(parameter (simple_identifier) @name)
|
|
24
|
-
)
|
|
25
|
-
(init_declaration "init" @name)
|
|
26
|
-
(deinit_declaration "deinit" @name)
|
|
27
|
-
]
|
|
28
|
-
)
|
|
29
|
-
) @definition.method
|
|
30
|
-
|
|
31
|
-
(class_declaration
|
|
32
|
-
(class_body
|
|
33
|
-
[
|
|
34
|
-
(property_declaration
|
|
35
|
-
(pattern (simple_identifier) @name)
|
|
36
|
-
)
|
|
37
|
-
]
|
|
38
|
-
)
|
|
39
|
-
) @definition.property
|
|
40
|
-
|
|
41
|
-
(property_declaration
|
|
42
|
-
(pattern (simple_identifier) @name)
|
|
43
|
-
) @definition.property
|
|
44
|
-
|
|
45
|
-
(function_declaration
|
|
46
|
-
name: (simple_identifier) @name) @definition.function
|
|
47
|
-
`;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: "\n(function_signature\n name: (identifier) @name.definition.function) @definition.function\n\n(method_signature\n name: (property_identifier) @name.definition.method) @definition.method\n\n(abstract_method_signature\n name: (property_identifier) @name.definition.method) @definition.method\n\n(abstract_class_declaration\n name: (type_identifier) @name.definition.class) @definition.class\n\n(module\n name: (identifier) @name.definition.module) @definition.module\n\n(function_declaration\n name: (identifier) @name.definition.function) @definition.function\n\n(method_definition\n name: (property_identifier) @name.definition.method) @definition.method\n\n(class_declaration\n name: (type_identifier) @name.definition.class) @definition.class\n";
|
|
2
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
- function signatures and declarations
|
|
5
|
-
- method signatures and definitions
|
|
6
|
-
- abstract method signatures
|
|
7
|
-
- class declarations (including abstract classes)
|
|
8
|
-
- module declarations
|
|
9
|
-
*/
|
|
10
|
-
exports.default = `
|
|
11
|
-
(function_signature
|
|
12
|
-
name: (identifier) @name.definition.function) @definition.function
|
|
13
|
-
|
|
14
|
-
(method_signature
|
|
15
|
-
name: (property_identifier) @name.definition.method) @definition.method
|
|
16
|
-
|
|
17
|
-
(abstract_method_signature
|
|
18
|
-
name: (property_identifier) @name.definition.method) @definition.method
|
|
19
|
-
|
|
20
|
-
(abstract_class_declaration
|
|
21
|
-
name: (type_identifier) @name.definition.class) @definition.class
|
|
22
|
-
|
|
23
|
-
(module
|
|
24
|
-
name: (identifier) @name.definition.module) @definition.module
|
|
25
|
-
|
|
26
|
-
(function_declaration
|
|
27
|
-
name: (identifier) @name.definition.function) @definition.function
|
|
28
|
-
|
|
29
|
-
(method_definition
|
|
30
|
-
name: (property_identifier) @name.definition.method) @definition.method
|
|
31
|
-
|
|
32
|
-
(class_declaration
|
|
33
|
-
name: (type_identifier) @name.definition.class) @definition.class
|
|
34
|
-
`;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/utils.d.ts
DELETED
package/dist/utils.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.docutils = exports.MCPServer = void 0;
|
|
7
|
-
var mcpServer_1 = require("./utils/mcpServer");
|
|
8
|
-
Object.defineProperty(exports, "MCPServer", { enumerable: true, get: function () { return mcpServer_1.MCPServer; } });
|
|
9
|
-
var docutils_1 = require("./utils/docutils");
|
|
10
|
-
Object.defineProperty(exports, "docutils", { enumerable: true, get: function () { return __importDefault(docutils_1).default; } });
|