aidex-mcp 1.4.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +128 -0
  2. package/LICENSE +21 -0
  3. package/MCP-API-REFERENCE.md +690 -0
  4. package/README.md +314 -0
  5. package/build/commands/files.d.ts +28 -0
  6. package/build/commands/files.js +124 -0
  7. package/build/commands/index.d.ts +14 -0
  8. package/build/commands/index.js +14 -0
  9. package/build/commands/init.d.ts +24 -0
  10. package/build/commands/init.js +396 -0
  11. package/build/commands/link.d.ts +45 -0
  12. package/build/commands/link.js +167 -0
  13. package/build/commands/note.d.ts +29 -0
  14. package/build/commands/note.js +105 -0
  15. package/build/commands/query.d.ts +36 -0
  16. package/build/commands/query.js +176 -0
  17. package/build/commands/scan.d.ts +25 -0
  18. package/build/commands/scan.js +104 -0
  19. package/build/commands/session.d.ts +52 -0
  20. package/build/commands/session.js +216 -0
  21. package/build/commands/signature.d.ts +52 -0
  22. package/build/commands/signature.js +171 -0
  23. package/build/commands/summary.d.ts +56 -0
  24. package/build/commands/summary.js +324 -0
  25. package/build/commands/update.d.ts +36 -0
  26. package/build/commands/update.js +273 -0
  27. package/build/constants.d.ts +10 -0
  28. package/build/constants.js +10 -0
  29. package/build/db/database.d.ts +69 -0
  30. package/build/db/database.js +126 -0
  31. package/build/db/index.d.ts +7 -0
  32. package/build/db/index.js +6 -0
  33. package/build/db/queries.d.ts +163 -0
  34. package/build/db/queries.js +273 -0
  35. package/build/db/schema.sql +136 -0
  36. package/build/index.d.ts +13 -0
  37. package/build/index.js +74 -0
  38. package/build/parser/extractor.d.ts +41 -0
  39. package/build/parser/extractor.js +249 -0
  40. package/build/parser/index.d.ts +7 -0
  41. package/build/parser/index.js +7 -0
  42. package/build/parser/languages/c.d.ts +28 -0
  43. package/build/parser/languages/c.js +70 -0
  44. package/build/parser/languages/cpp.d.ts +28 -0
  45. package/build/parser/languages/cpp.js +91 -0
  46. package/build/parser/languages/csharp.d.ts +32 -0
  47. package/build/parser/languages/csharp.js +97 -0
  48. package/build/parser/languages/go.d.ts +28 -0
  49. package/build/parser/languages/go.js +83 -0
  50. package/build/parser/languages/index.d.ts +21 -0
  51. package/build/parser/languages/index.js +107 -0
  52. package/build/parser/languages/java.d.ts +28 -0
  53. package/build/parser/languages/java.js +58 -0
  54. package/build/parser/languages/php.d.ts +28 -0
  55. package/build/parser/languages/php.js +75 -0
  56. package/build/parser/languages/python.d.ts +28 -0
  57. package/build/parser/languages/python.js +67 -0
  58. package/build/parser/languages/ruby.d.ts +28 -0
  59. package/build/parser/languages/ruby.js +68 -0
  60. package/build/parser/languages/rust.d.ts +28 -0
  61. package/build/parser/languages/rust.js +73 -0
  62. package/build/parser/languages/typescript.d.ts +28 -0
  63. package/build/parser/languages/typescript.js +82 -0
  64. package/build/parser/tree-sitter.d.ts +30 -0
  65. package/build/parser/tree-sitter.js +132 -0
  66. package/build/server/mcp-server.d.ts +7 -0
  67. package/build/server/mcp-server.js +36 -0
  68. package/build/server/tools.d.ts +18 -0
  69. package/build/server/tools.js +1245 -0
  70. package/build/viewer/git-status.d.ts +25 -0
  71. package/build/viewer/git-status.js +163 -0
  72. package/build/viewer/index.d.ts +5 -0
  73. package/build/viewer/index.js +5 -0
  74. package/build/viewer/server.d.ts +12 -0
  75. package/build/viewer/server.js +1122 -0
  76. package/package.json +66 -0
@@ -0,0 +1,91 @@
1
+ /**
2
+ * C++ language configuration for AiDex
3
+ */
4
+ /**
5
+ * C++ keywords that should be filtered out during indexing
6
+ */
7
+ export const CPP_KEYWORDS = new Set([
8
+ // Access/Type modifiers
9
+ 'public', 'private', 'protected',
10
+ 'class', 'struct', 'union', 'enum',
11
+ 'namespace', 'using',
12
+ // Type keywords
13
+ 'typename',
14
+ 'void', 'bool',
15
+ 'char', 'char8_t', 'char16_t', 'char32_t', 'wchar_t',
16
+ 'short', 'int', 'long',
17
+ 'signed', 'unsigned',
18
+ 'float', 'double',
19
+ // Modifiers
20
+ 'static', 'extern', 'const', 'volatile', 'mutable',
21
+ 'constexpr', 'consteval', 'constinit',
22
+ 'inline', 'virtual', 'explicit', 'export',
23
+ 'friend', 'typedef',
24
+ // Control flow
25
+ 'if', 'else', 'switch', 'case', 'default',
26
+ 'for', 'while', 'do',
27
+ 'break', 'continue', 'return', 'goto',
28
+ 'try', 'catch', 'throw',
29
+ // Operators & literals
30
+ 'new', 'delete', 'this', 'nullptr',
31
+ 'true', 'false',
32
+ 'sizeof', 'typeid', 'decltype',
33
+ 'static_cast', 'dynamic_cast', 'reinterpret_cast', 'const_cast',
34
+ 'operator',
35
+ // C++11 features
36
+ 'alignas', 'alignof', 'auto',
37
+ 'static_assert', 'noexcept',
38
+ 'thread_local',
39
+ // C++17/20 features
40
+ 'concept', 'requires',
41
+ 'co_await', 'co_return', 'co_yield',
42
+ // Alternative operators (ISO C++)
43
+ 'and', 'or', 'not',
44
+ 'and_eq', 'or_eq', 'xor', 'xor_eq',
45
+ 'bitand', 'bitor', 'compl', 'not_eq',
46
+ // Contextual keywords
47
+ 'final', 'override', 'import', 'module',
48
+ // Other
49
+ 'asm', 'register',
50
+ ]);
51
+ /**
52
+ * Tree-sitter node types that represent identifiers in C++
53
+ */
54
+ export const CPP_IDENTIFIER_NODES = new Set([
55
+ 'identifier',
56
+ 'type_identifier',
57
+ 'field_identifier',
58
+ 'namespace_identifier',
59
+ ]);
60
+ /**
61
+ * Tree-sitter node types for comments
62
+ */
63
+ export const CPP_COMMENT_NODES = new Set([
64
+ 'comment',
65
+ ]);
66
+ /**
67
+ * Tree-sitter node types for function declarations
68
+ */
69
+ export const CPP_METHOD_NODES = new Set([
70
+ 'function_definition',
71
+ 'function_declarator',
72
+ 'template_function',
73
+ ]);
74
+ /**
75
+ * Tree-sitter node types for type declarations
76
+ */
77
+ export const CPP_TYPE_NODES = new Set([
78
+ 'class_specifier',
79
+ 'struct_specifier',
80
+ 'union_specifier',
81
+ 'enum_specifier',
82
+ 'type_definition',
83
+ 'template_declaration',
84
+ ]);
85
+ /**
86
+ * Check if a term is a C++ keyword
87
+ */
88
+ export function isKeyword(term) {
89
+ return CPP_KEYWORDS.has(term);
90
+ }
91
+ //# sourceMappingURL=cpp.js.map
@@ -0,0 +1,32 @@
1
+ /**
2
+ * C# language configuration for AiDex
3
+ */
4
+ /**
5
+ * C# keywords that should be filtered out during indexing
6
+ */
7
+ export declare const CSHARP_KEYWORDS: Set<string>;
8
+ /**
9
+ * Tree-sitter node types that represent identifiers in C#
10
+ */
11
+ export declare const CSHARP_IDENTIFIER_NODES: Set<string>;
12
+ /**
13
+ * Tree-sitter node types for comments
14
+ */
15
+ export declare const CSHARP_COMMENT_NODES: Set<string>;
16
+ /**
17
+ * Tree-sitter node types for method declarations
18
+ */
19
+ export declare const CSHARP_METHOD_NODES: Set<string>;
20
+ /**
21
+ * Tree-sitter node types for type declarations
22
+ */
23
+ export declare const CSHARP_TYPE_NODES: Set<string>;
24
+ /**
25
+ * Tree-sitter node types for property declarations
26
+ */
27
+ export declare const CSHARP_PROPERTY_NODES: Set<string>;
28
+ /**
29
+ * Check if a term is a C# keyword
30
+ */
31
+ export declare function isKeyword(term: string): boolean;
32
+ //# sourceMappingURL=csharp.d.ts.map
@@ -0,0 +1,97 @@
1
+ /**
2
+ * C# language configuration for AiDex
3
+ */
4
+ /**
5
+ * C# keywords that should be filtered out during indexing
6
+ */
7
+ export const CSHARP_KEYWORDS = new Set([
8
+ // Access modifiers
9
+ 'public', 'private', 'protected', 'internal',
10
+ // Type keywords
11
+ 'class', 'struct', 'interface', 'enum', 'record',
12
+ 'namespace', 'using',
13
+ // Modifiers
14
+ 'static', 'readonly', 'const', 'volatile',
15
+ 'virtual', 'override', 'abstract', 'sealed',
16
+ 'async', 'await', 'partial', 'extern',
17
+ 'unsafe', 'fixed',
18
+ // Primitive types
19
+ 'void', 'int', 'uint', 'long', 'ulong', 'short', 'ushort',
20
+ 'byte', 'sbyte', 'float', 'double', 'decimal',
21
+ 'bool', 'char', 'string', 'object', 'dynamic', 'var',
22
+ 'nint', 'nuint',
23
+ // Control flow
24
+ 'if', 'else', 'switch', 'case', 'default',
25
+ 'for', 'foreach', 'while', 'do',
26
+ 'break', 'continue', 'return', 'yield',
27
+ 'try', 'catch', 'finally', 'throw',
28
+ 'goto', 'when',
29
+ // Operators and literals
30
+ 'new', 'typeof', 'sizeof', 'nameof', 'default',
31
+ 'is', 'as', 'in', 'out', 'ref', 'params',
32
+ 'true', 'false', 'null',
33
+ 'this', 'base', 'value',
34
+ // Property accessors
35
+ 'get', 'set', 'init', 'add', 'remove',
36
+ // LINQ
37
+ 'where', 'select', 'from', 'orderby', 'group', 'by',
38
+ 'into', 'join', 'on', 'equals', 'let', 'ascending', 'descending',
39
+ // Other
40
+ 'delegate', 'event', 'operator',
41
+ 'implicit', 'explicit',
42
+ 'checked', 'unchecked',
43
+ 'lock', 'stackalloc',
44
+ 'with', 'and', 'or', 'not',
45
+ 'required', 'file', 'scoped',
46
+ // Common framework types (often noise)
47
+ 'Task', 'Action', 'Func', 'List', 'Dictionary',
48
+ 'IEnumerable', 'IList', 'ICollection',
49
+ ]);
50
+ /**
51
+ * Tree-sitter node types that represent identifiers in C#
52
+ */
53
+ export const CSHARP_IDENTIFIER_NODES = new Set([
54
+ 'identifier',
55
+ 'type_identifier',
56
+ ]);
57
+ /**
58
+ * Tree-sitter node types for comments
59
+ */
60
+ export const CSHARP_COMMENT_NODES = new Set([
61
+ 'comment',
62
+ 'multiline_comment',
63
+ ]);
64
+ /**
65
+ * Tree-sitter node types for method declarations
66
+ */
67
+ export const CSHARP_METHOD_NODES = new Set([
68
+ 'method_declaration',
69
+ 'constructor_declaration',
70
+ 'operator_declaration',
71
+ 'conversion_operator_declaration',
72
+ 'local_function_statement',
73
+ ]);
74
+ /**
75
+ * Tree-sitter node types for type declarations
76
+ */
77
+ export const CSHARP_TYPE_NODES = new Set([
78
+ 'class_declaration',
79
+ 'struct_declaration',
80
+ 'interface_declaration',
81
+ 'enum_declaration',
82
+ 'record_declaration',
83
+ ]);
84
+ /**
85
+ * Tree-sitter node types for property declarations
86
+ */
87
+ export const CSHARP_PROPERTY_NODES = new Set([
88
+ 'property_declaration',
89
+ 'indexer_declaration',
90
+ ]);
91
+ /**
92
+ * Check if a term is a C# keyword
93
+ */
94
+ export function isKeyword(term) {
95
+ return CSHARP_KEYWORDS.has(term.toLowerCase());
96
+ }
97
+ //# sourceMappingURL=csharp.js.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Go language configuration for AiDex
3
+ */
4
+ /**
5
+ * Go keywords that should be filtered out during indexing
6
+ */
7
+ export declare const GO_KEYWORDS: Set<string>;
8
+ /**
9
+ * Tree-sitter node types that represent identifiers in Go
10
+ */
11
+ export declare const GO_IDENTIFIER_NODES: Set<string>;
12
+ /**
13
+ * Tree-sitter node types for comments
14
+ */
15
+ export declare const GO_COMMENT_NODES: Set<string>;
16
+ /**
17
+ * Tree-sitter node types for function declarations
18
+ */
19
+ export declare const GO_METHOD_NODES: Set<string>;
20
+ /**
21
+ * Tree-sitter node types for type declarations
22
+ */
23
+ export declare const GO_TYPE_NODES: Set<string>;
24
+ /**
25
+ * Check if a term is a Go keyword
26
+ */
27
+ export declare function isKeyword(term: string): boolean;
28
+ //# sourceMappingURL=go.d.ts.map
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Go language configuration for AiDex
3
+ */
4
+ /**
5
+ * Go keywords that should be filtered out during indexing
6
+ */
7
+ export const GO_KEYWORDS = new Set([
8
+ 'break',
9
+ 'case',
10
+ 'chan',
11
+ 'const',
12
+ 'continue',
13
+ 'default',
14
+ 'defer',
15
+ 'else',
16
+ 'fallthrough',
17
+ 'for',
18
+ 'func',
19
+ 'go',
20
+ 'goto',
21
+ 'if',
22
+ 'import',
23
+ 'interface',
24
+ 'map',
25
+ 'package',
26
+ 'range',
27
+ 'return',
28
+ 'select',
29
+ 'struct',
30
+ 'switch',
31
+ 'type',
32
+ 'var',
33
+ // Built-in types
34
+ 'bool', 'byte', 'complex64', 'complex128',
35
+ 'error', 'float32', 'float64',
36
+ 'int', 'int8', 'int16', 'int32', 'int64',
37
+ 'rune', 'string',
38
+ 'uint', 'uint8', 'uint16', 'uint32', 'uint64', 'uintptr',
39
+ // Built-in constants
40
+ 'true', 'false', 'iota', 'nil',
41
+ // Built-in functions (often noise)
42
+ 'append', 'cap', 'close', 'complex', 'copy', 'delete',
43
+ 'imag', 'len', 'make', 'new', 'panic', 'print', 'println',
44
+ 'real', 'recover',
45
+ ]);
46
+ /**
47
+ * Tree-sitter node types that represent identifiers in Go
48
+ */
49
+ export const GO_IDENTIFIER_NODES = new Set([
50
+ 'identifier',
51
+ 'type_identifier',
52
+ 'field_identifier',
53
+ 'package_identifier',
54
+ ]);
55
+ /**
56
+ * Tree-sitter node types for comments
57
+ */
58
+ export const GO_COMMENT_NODES = new Set([
59
+ 'comment',
60
+ ]);
61
+ /**
62
+ * Tree-sitter node types for function declarations
63
+ */
64
+ export const GO_METHOD_NODES = new Set([
65
+ 'function_declaration',
66
+ 'method_declaration',
67
+ ]);
68
+ /**
69
+ * Tree-sitter node types for type declarations
70
+ */
71
+ export const GO_TYPE_NODES = new Set([
72
+ 'type_declaration',
73
+ 'type_spec',
74
+ 'struct_type',
75
+ 'interface_type',
76
+ ]);
77
+ /**
78
+ * Check if a term is a Go keyword
79
+ */
80
+ export function isKeyword(term) {
81
+ return GO_KEYWORDS.has(term);
82
+ }
83
+ //# sourceMappingURL=go.js.map
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Language configuration registry
3
+ */
4
+ import type { SupportedLanguage } from '../tree-sitter.js';
5
+ export interface LanguageConfig {
6
+ isKeyword: (term: string) => boolean;
7
+ identifierNodes: Set<string>;
8
+ commentNodes: Set<string>;
9
+ methodNodes: Set<string>;
10
+ typeNodes: Set<string>;
11
+ propertyNodes?: Set<string>;
12
+ }
13
+ /**
14
+ * Get language configuration
15
+ */
16
+ export declare function getLanguageConfig(language: SupportedLanguage): LanguageConfig;
17
+ /**
18
+ * Check if a term is a keyword for the given language
19
+ */
20
+ export declare function isKeyword(term: string, language: SupportedLanguage): boolean;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Language configuration registry
3
+ */
4
+ import * as csharp from './csharp.js';
5
+ import * as typescript from './typescript.js';
6
+ import * as rust from './rust.js';
7
+ import * as python from './python.js';
8
+ import * as c from './c.js';
9
+ import * as cpp from './cpp.js';
10
+ import * as java from './java.js';
11
+ import * as go from './go.js';
12
+ import * as php from './php.js';
13
+ import * as ruby from './ruby.js';
14
+ const configs = {
15
+ csharp: {
16
+ isKeyword: csharp.isKeyword,
17
+ identifierNodes: csharp.CSHARP_IDENTIFIER_NODES,
18
+ commentNodes: csharp.CSHARP_COMMENT_NODES,
19
+ methodNodes: csharp.CSHARP_METHOD_NODES,
20
+ typeNodes: csharp.CSHARP_TYPE_NODES,
21
+ propertyNodes: csharp.CSHARP_PROPERTY_NODES,
22
+ },
23
+ typescript: {
24
+ isKeyword: typescript.isKeyword,
25
+ identifierNodes: typescript.TYPESCRIPT_IDENTIFIER_NODES,
26
+ commentNodes: typescript.TYPESCRIPT_COMMENT_NODES,
27
+ methodNodes: typescript.TYPESCRIPT_METHOD_NODES,
28
+ typeNodes: typescript.TYPESCRIPT_TYPE_NODES,
29
+ },
30
+ javascript: {
31
+ // JavaScript uses same config as TypeScript
32
+ isKeyword: typescript.isKeyword,
33
+ identifierNodes: typescript.TYPESCRIPT_IDENTIFIER_NODES,
34
+ commentNodes: typescript.TYPESCRIPT_COMMENT_NODES,
35
+ methodNodes: typescript.TYPESCRIPT_METHOD_NODES,
36
+ typeNodes: typescript.TYPESCRIPT_TYPE_NODES,
37
+ },
38
+ rust: {
39
+ isKeyword: rust.isKeyword,
40
+ identifierNodes: rust.RUST_IDENTIFIER_NODES,
41
+ commentNodes: rust.RUST_COMMENT_NODES,
42
+ methodNodes: rust.RUST_METHOD_NODES,
43
+ typeNodes: rust.RUST_TYPE_NODES,
44
+ },
45
+ python: {
46
+ isKeyword: python.isKeyword,
47
+ identifierNodes: python.PYTHON_IDENTIFIER_NODES,
48
+ commentNodes: python.PYTHON_COMMENT_NODES,
49
+ methodNodes: python.PYTHON_METHOD_NODES,
50
+ typeNodes: python.PYTHON_TYPE_NODES,
51
+ },
52
+ c: {
53
+ isKeyword: c.isKeyword,
54
+ identifierNodes: c.C_IDENTIFIER_NODES,
55
+ commentNodes: c.C_COMMENT_NODES,
56
+ methodNodes: c.C_METHOD_NODES,
57
+ typeNodes: c.C_TYPE_NODES,
58
+ },
59
+ cpp: {
60
+ isKeyword: cpp.isKeyword,
61
+ identifierNodes: cpp.CPP_IDENTIFIER_NODES,
62
+ commentNodes: cpp.CPP_COMMENT_NODES,
63
+ methodNodes: cpp.CPP_METHOD_NODES,
64
+ typeNodes: cpp.CPP_TYPE_NODES,
65
+ },
66
+ java: {
67
+ isKeyword: java.isKeyword,
68
+ identifierNodes: java.JAVA_IDENTIFIER_NODES,
69
+ commentNodes: java.JAVA_COMMENT_NODES,
70
+ methodNodes: java.JAVA_METHOD_NODES,
71
+ typeNodes: java.JAVA_TYPE_NODES,
72
+ },
73
+ go: {
74
+ isKeyword: go.isKeyword,
75
+ identifierNodes: go.GO_IDENTIFIER_NODES,
76
+ commentNodes: go.GO_COMMENT_NODES,
77
+ methodNodes: go.GO_METHOD_NODES,
78
+ typeNodes: go.GO_TYPE_NODES,
79
+ },
80
+ php: {
81
+ isKeyword: php.isKeyword,
82
+ identifierNodes: php.PHP_IDENTIFIER_NODES,
83
+ commentNodes: php.PHP_COMMENT_NODES,
84
+ methodNodes: php.PHP_METHOD_NODES,
85
+ typeNodes: php.PHP_TYPE_NODES,
86
+ },
87
+ ruby: {
88
+ isKeyword: ruby.isKeyword,
89
+ identifierNodes: ruby.RUBY_IDENTIFIER_NODES,
90
+ commentNodes: ruby.RUBY_COMMENT_NODES,
91
+ methodNodes: ruby.RUBY_METHOD_NODES,
92
+ typeNodes: ruby.RUBY_TYPE_NODES,
93
+ },
94
+ };
95
+ /**
96
+ * Get language configuration
97
+ */
98
+ export function getLanguageConfig(language) {
99
+ return configs[language];
100
+ }
101
+ /**
102
+ * Check if a term is a keyword for the given language
103
+ */
104
+ export function isKeyword(term, language) {
105
+ return configs[language].isKeyword(term);
106
+ }
107
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Java language configuration for AiDex
3
+ */
4
+ /**
5
+ * Java keywords that should be filtered out during indexing
6
+ */
7
+ export declare const JAVA_KEYWORDS: Set<string>;
8
+ /**
9
+ * Tree-sitter node types that represent identifiers in Java
10
+ */
11
+ export declare const JAVA_IDENTIFIER_NODES: Set<string>;
12
+ /**
13
+ * Tree-sitter node types for comments
14
+ */
15
+ export declare const JAVA_COMMENT_NODES: Set<string>;
16
+ /**
17
+ * Tree-sitter node types for function declarations
18
+ */
19
+ export declare const JAVA_METHOD_NODES: Set<string>;
20
+ /**
21
+ * Tree-sitter node types for type declarations
22
+ */
23
+ export declare const JAVA_TYPE_NODES: Set<string>;
24
+ /**
25
+ * Check if a term is a Java keyword
26
+ */
27
+ export declare function isKeyword(term: string): boolean;
28
+ //# sourceMappingURL=java.d.ts.map
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Java language configuration for AiDex
3
+ */
4
+ /**
5
+ * Java keywords that should be filtered out during indexing
6
+ */
7
+ export const JAVA_KEYWORDS = new Set([
8
+ // Reserved keywords
9
+ 'abstract', 'assert', 'boolean', 'break', 'byte', 'case', 'catch', 'char',
10
+ 'class', 'const', 'continue', 'default', 'do', 'double', 'else', 'enum',
11
+ 'extends', 'final', 'finally', 'float', 'for', 'goto', 'if', 'implements',
12
+ 'import', 'instanceof', 'int', 'interface', 'long', 'native', 'new',
13
+ 'package', 'private', 'protected', 'public', 'return', 'short', 'static',
14
+ 'strictfp', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws',
15
+ 'transient', 'try', 'void', 'volatile', 'while',
16
+ // Contextual keywords (reserved in specific contexts)
17
+ 'var', 'record', 'sealed', 'permits', 'yield', 'non-sealed',
18
+ // Literals
19
+ 'true', 'false', 'null',
20
+ ]);
21
+ /**
22
+ * Tree-sitter node types that represent identifiers in Java
23
+ */
24
+ export const JAVA_IDENTIFIER_NODES = new Set([
25
+ 'identifier',
26
+ 'type_identifier',
27
+ ]);
28
+ /**
29
+ * Tree-sitter node types for comments
30
+ */
31
+ export const JAVA_COMMENT_NODES = new Set([
32
+ 'line_comment',
33
+ 'block_comment',
34
+ ]);
35
+ /**
36
+ * Tree-sitter node types for function declarations
37
+ */
38
+ export const JAVA_METHOD_NODES = new Set([
39
+ 'method_declaration',
40
+ 'constructor_declaration',
41
+ ]);
42
+ /**
43
+ * Tree-sitter node types for type declarations
44
+ */
45
+ export const JAVA_TYPE_NODES = new Set([
46
+ 'class_declaration',
47
+ 'interface_declaration',
48
+ 'enum_declaration',
49
+ 'record_declaration',
50
+ 'annotation_type_declaration',
51
+ ]);
52
+ /**
53
+ * Check if a term is a Java keyword
54
+ */
55
+ export function isKeyword(term) {
56
+ return JAVA_KEYWORDS.has(term);
57
+ }
58
+ //# sourceMappingURL=java.js.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ * PHP language configuration for AiDex
3
+ */
4
+ /**
5
+ * PHP keywords that should be filtered out during indexing
6
+ */
7
+ export declare const PHP_KEYWORDS: Set<string>;
8
+ /**
9
+ * Tree-sitter node types that represent identifiers in PHP
10
+ */
11
+ export declare const PHP_IDENTIFIER_NODES: Set<string>;
12
+ /**
13
+ * Tree-sitter node types for comments
14
+ */
15
+ export declare const PHP_COMMENT_NODES: Set<string>;
16
+ /**
17
+ * Tree-sitter node types for function declarations
18
+ */
19
+ export declare const PHP_METHOD_NODES: Set<string>;
20
+ /**
21
+ * Tree-sitter node types for type declarations
22
+ */
23
+ export declare const PHP_TYPE_NODES: Set<string>;
24
+ /**
25
+ * Check if a term is a PHP keyword
26
+ */
27
+ export declare function isKeyword(term: string): boolean;
28
+ //# sourceMappingURL=php.d.ts.map
@@ -0,0 +1,75 @@
1
+ /**
2
+ * PHP language configuration for AiDex
3
+ */
4
+ /**
5
+ * PHP keywords that should be filtered out during indexing
6
+ */
7
+ export const PHP_KEYWORDS = new Set([
8
+ // Control flow
9
+ 'if', 'elseif', 'else', 'switch', 'case', 'default',
10
+ 'for', 'foreach', 'while', 'do', 'break', 'continue',
11
+ 'goto', 'throw', 'try', 'catch', 'finally',
12
+ // Functions & Classes
13
+ 'function', 'class', 'interface', 'trait', 'namespace',
14
+ 'abstract', 'final', 'static', 'const', 'var',
15
+ // Visibility
16
+ 'public', 'protected', 'private', 'readonly',
17
+ // Include/Require
18
+ 'include', 'include_once', 'require', 'require_once',
19
+ 'use',
20
+ // Object operators
21
+ 'new', 'clone', 'instanceof', 'insteadof', 'implements', 'extends',
22
+ // Output
23
+ 'echo', 'print',
24
+ // Logical operators
25
+ 'and', 'or', 'xor',
26
+ // Language constructs
27
+ 'array', 'list', 'eval', 'unset', 'empty', 'isset',
28
+ 'return', 'yield',
29
+ // Declarations
30
+ 'declare', 'enddeclare', 'endif', 'endfor', 'endforeach',
31
+ 'endswitch', 'endwhile', 'callable',
32
+ // Other
33
+ '__halt_compiler', 'die', 'exit', 'fn', 'match', 'global',
34
+ // Magic constants
35
+ '__CLASS__', '__DIR__', '__FILE__', '__FUNCTION__',
36
+ '__LINE__', '__METHOD__', '__NAMESPACE__', '__TRAIT__',
37
+ // Literals
38
+ 'true', 'false', 'null',
39
+ ]);
40
+ /**
41
+ * Tree-sitter node types that represent identifiers in PHP
42
+ */
43
+ export const PHP_IDENTIFIER_NODES = new Set([
44
+ 'name',
45
+ 'variable_name',
46
+ ]);
47
+ /**
48
+ * Tree-sitter node types for comments
49
+ */
50
+ export const PHP_COMMENT_NODES = new Set([
51
+ 'comment',
52
+ ]);
53
+ /**
54
+ * Tree-sitter node types for function declarations
55
+ */
56
+ export const PHP_METHOD_NODES = new Set([
57
+ 'function_definition',
58
+ 'method_declaration',
59
+ ]);
60
+ /**
61
+ * Tree-sitter node types for type declarations
62
+ */
63
+ export const PHP_TYPE_NODES = new Set([
64
+ 'class_declaration',
65
+ 'interface_declaration',
66
+ 'trait_declaration',
67
+ 'enum_declaration',
68
+ ]);
69
+ /**
70
+ * Check if a term is a PHP keyword
71
+ */
72
+ export function isKeyword(term) {
73
+ return PHP_KEYWORDS.has(term.toLowerCase());
74
+ }
75
+ //# sourceMappingURL=php.js.map
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Python language configuration for AiDex
3
+ */
4
+ /**
5
+ * Python keywords that should be filtered out during indexing
6
+ */
7
+ export declare const PYTHON_KEYWORDS: Set<string>;
8
+ /**
9
+ * Tree-sitter node types that represent identifiers in Python
10
+ */
11
+ export declare const PYTHON_IDENTIFIER_NODES: Set<string>;
12
+ /**
13
+ * Tree-sitter node types for comments
14
+ */
15
+ export declare const PYTHON_COMMENT_NODES: Set<string>;
16
+ /**
17
+ * Tree-sitter node types for function declarations
18
+ */
19
+ export declare const PYTHON_METHOD_NODES: Set<string>;
20
+ /**
21
+ * Tree-sitter node types for type declarations
22
+ */
23
+ export declare const PYTHON_TYPE_NODES: Set<string>;
24
+ /**
25
+ * Check if a term is a Python keyword
26
+ */
27
+ export declare function isKeyword(term: string): boolean;
28
+ //# sourceMappingURL=python.d.ts.map