@cesarandreslopez/occ 0.4.0 → 0.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 (98) hide show
  1. package/dist/src/cli-validation.d.ts +14 -0
  2. package/dist/src/cli-validation.js +58 -0
  3. package/dist/src/cli-validation.js.map +1 -0
  4. package/dist/src/cli.js +18 -8
  5. package/dist/src/cli.js.map +1 -1
  6. package/dist/src/code/build.d.ts +7 -5
  7. package/dist/src/code/build.js +46 -2
  8. package/dist/src/code/build.js.map +1 -1
  9. package/dist/src/code/command.js +24 -17
  10. package/dist/src/code/command.js.map +1 -1
  11. package/dist/src/code/discover.d.ts +6 -4
  12. package/dist/src/code/discover.js +5 -0
  13. package/dist/src/code/discover.js.map +1 -1
  14. package/dist/src/code/languages.d.ts +28 -7
  15. package/dist/src/code/languages.js +9 -0
  16. package/dist/src/code/languages.js.map +1 -1
  17. package/dist/src/code/parsers.js +23 -0
  18. package/dist/src/code/parsers.js.map +1 -1
  19. package/dist/src/code/types.d.ts +1201 -147
  20. package/dist/src/code/types.js +150 -1
  21. package/dist/src/code/types.js.map +1 -1
  22. package/dist/src/doc/command.js +10 -10
  23. package/dist/src/doc/command.js.map +1 -1
  24. package/dist/src/doc/inspect-odt.js +2 -1
  25. package/dist/src/doc/inspect-odt.js.map +1 -1
  26. package/dist/src/doc/inspect-pdf.js +8 -2
  27. package/dist/src/doc/inspect-pdf.js.map +1 -1
  28. package/dist/src/doc/types.d.ts +171 -58
  29. package/dist/src/doc/types.js +61 -1
  30. package/dist/src/doc/types.js.map +1 -1
  31. package/dist/src/inspect/shared.d.ts +12 -10
  32. package/dist/src/inspect/shared.js +11 -0
  33. package/dist/src/inspect/shared.js.map +1 -1
  34. package/dist/src/inspect/xlsx-cells.d.ts +4 -0
  35. package/dist/src/inspect/xlsx-cells.js +31 -0
  36. package/dist/src/inspect/xlsx-cells.js.map +1 -0
  37. package/dist/src/markdown/convert.js +6 -4
  38. package/dist/src/markdown/convert.js.map +1 -1
  39. package/dist/src/output/tabular.d.ts +6 -4
  40. package/dist/src/output/tabular.js +5 -0
  41. package/dist/src/output/tabular.js.map +1 -1
  42. package/dist/src/output/tree.d.ts +21 -9
  43. package/dist/src/output/tree.js +10 -0
  44. package/dist/src/output/tree.js.map +1 -1
  45. package/dist/src/parsers/docx.js +5 -1
  46. package/dist/src/parsers/docx.js.map +1 -1
  47. package/dist/src/parsers/odf.js +4 -3
  48. package/dist/src/parsers/odf.js.map +1 -1
  49. package/dist/src/parsers/pdf.js +6 -1
  50. package/dist/src/parsers/pdf.js.map +1 -1
  51. package/dist/src/parsers/pptx.js +2 -1
  52. package/dist/src/parsers/pptx.js.map +1 -1
  53. package/dist/src/parsers/xlsx.js +8 -1
  54. package/dist/src/parsers/xlsx.js.map +1 -1
  55. package/dist/src/progress.d.ts +7 -5
  56. package/dist/src/progress.js +6 -0
  57. package/dist/src/progress.js.map +1 -1
  58. package/dist/src/scc.d.ts +35 -26
  59. package/dist/src/scc.js +26 -1
  60. package/dist/src/scc.js.map +1 -1
  61. package/dist/src/sheet/command.js +12 -21
  62. package/dist/src/sheet/command.js.map +1 -1
  63. package/dist/src/sheet/inspect.d.ts +0 -4
  64. package/dist/src/sheet/inspect.js +1 -29
  65. package/dist/src/sheet/inspect.js.map +1 -1
  66. package/dist/src/sheet/types.d.ts +472 -117
  67. package/dist/src/sheet/types.js +118 -1
  68. package/dist/src/sheet/types.js.map +1 -1
  69. package/dist/src/slide/command.js +10 -10
  70. package/dist/src/slide/command.js.map +1 -1
  71. package/dist/src/slide/types.d.ts +166 -58
  72. package/dist/src/slide/types.js +60 -1
  73. package/dist/src/slide/types.js.map +1 -1
  74. package/dist/src/stats.d.ts +6 -4
  75. package/dist/src/stats.js +5 -0
  76. package/dist/src/stats.js.map +1 -1
  77. package/dist/src/structure/types.d.ts +19 -11
  78. package/dist/src/structure/types.js +26 -21
  79. package/dist/src/structure/types.js.map +1 -1
  80. package/dist/src/table/command.js +11 -21
  81. package/dist/src/table/command.js.map +1 -1
  82. package/dist/src/table/inspect-xlsx.js +1 -1
  83. package/dist/src/table/inspect-xlsx.js.map +1 -1
  84. package/dist/src/table/inspect.js +4 -2
  85. package/dist/src/table/inspect.js.map +1 -1
  86. package/dist/src/table/types.d.ts +104 -38
  87. package/dist/src/table/types.js +39 -1
  88. package/dist/src/table/types.js.map +1 -1
  89. package/dist/src/types.d.ts +25 -20
  90. package/dist/src/types.js +21 -1
  91. package/dist/src/types.js.map +1 -1
  92. package/dist/src/utils.d.ts +11 -1
  93. package/dist/src/utils.js +2 -0
  94. package/dist/src/utils.js.map +1 -1
  95. package/dist/src/walker.d.ts +21 -12
  96. package/dist/src/walker.js +13 -0
  97. package/dist/src/walker.js.map +1 -1
  98. package/package.json +3 -2
@@ -1,148 +1,1202 @@
1
- export type CodeNodeType = 'file' | 'module' | 'function' | 'class' | 'interface' | 'type-alias' | 'enum' | 'variable' | 'parameter';
2
- export type CodeEdgeType = 'contains' | 'imports' | 'calls' | 'inherits' | 'implements' | 'has_parameter';
3
- export type ResolutionStatus = 'resolved' | 'ambiguous' | 'unresolved';
4
- export type ImportKind = 'local' | 'external' | 'unresolved';
5
- export interface CodeCapabilities {
6
- definitions: boolean;
7
- imports: boolean;
8
- calls: boolean;
9
- inheritance: boolean;
10
- content: boolean;
11
- }
12
- export interface ParsedImportBinding {
13
- localName: string;
14
- importedName?: string;
15
- isNamespace?: boolean;
16
- isDefault?: boolean;
17
- }
18
- export interface ParsedImport {
19
- specifier: string;
20
- line: number;
21
- kind: 'local' | 'external' | 'unresolved';
22
- bindings: ParsedImportBinding[];
23
- resolvedPath?: string;
24
- }
25
- export interface ParsedSymbol {
26
- type: Extract<CodeNodeType, 'function' | 'class' | 'interface' | 'type-alias' | 'enum' | 'variable'>;
27
- name: string;
28
- line: number;
29
- containerName?: string;
30
- signature?: string;
31
- exported?: boolean;
32
- }
33
- export interface ParsedCall {
34
- callerName: string;
35
- callerLine: number;
36
- callerContainerName?: string;
37
- calleeName: string;
38
- qualifier?: string;
39
- line: number;
40
- }
41
- export interface ParsedInheritance {
42
- className: string;
43
- classLine: number;
44
- baseName: string;
45
- line: number;
46
- kind?: 'extends' | 'implements';
47
- }
48
- export interface ParsedFile {
49
- path: string;
50
- relativePath: string;
51
- moduleName: string;
52
- language: string;
53
- content: string;
54
- lines: string[];
55
- symbols: ParsedSymbol[];
56
- imports: ParsedImport[];
57
- calls: ParsedCall[];
58
- inheritances: ParsedInheritance[];
59
- }
60
- export interface CodeNode {
61
- id: string;
62
- type: CodeNodeType;
63
- name: string;
64
- path: string;
65
- relativePath?: string;
66
- line?: number;
67
- language: string;
68
- moduleName?: string;
69
- containerId?: string;
70
- containerName?: string;
71
- signature?: string;
72
- external?: boolean;
73
- }
74
- export interface CodeEdge {
75
- id: string;
76
- type: CodeEdgeType;
77
- from: string;
78
- to?: string;
79
- fromPath: string;
80
- toPath?: string;
81
- line?: number;
82
- status: ResolutionStatus;
83
- targetName?: string;
84
- detail?: string;
85
- specifier?: string;
86
- importKind?: ImportKind;
87
- candidates?: Array<{
88
- name: string;
89
- relativePath?: string;
90
- line?: number;
1
+ import { z } from 'zod';
2
+ export declare const CodeNodeTypeSchema: z.ZodEnum<{
3
+ function: "function";
4
+ file: "file";
5
+ enum: "enum";
6
+ module: "module";
7
+ class: "class";
8
+ interface: "interface";
9
+ "type-alias": "type-alias";
10
+ variable: "variable";
11
+ parameter: "parameter";
12
+ }>;
13
+ export type CodeNodeType = z.infer<typeof CodeNodeTypeSchema>;
14
+ export declare const CodeEdgeTypeSchema: z.ZodEnum<{
15
+ contains: "contains";
16
+ imports: "imports";
17
+ calls: "calls";
18
+ inherits: "inherits";
19
+ implements: "implements";
20
+ has_parameter: "has_parameter";
21
+ }>;
22
+ export type CodeEdgeType = z.infer<typeof CodeEdgeTypeSchema>;
23
+ export declare const ResolutionStatusSchema: z.ZodEnum<{
24
+ resolved: "resolved";
25
+ ambiguous: "ambiguous";
26
+ unresolved: "unresolved";
27
+ }>;
28
+ export type ResolutionStatus = z.infer<typeof ResolutionStatusSchema>;
29
+ export declare const ImportKindSchema: z.ZodEnum<{
30
+ external: "external";
31
+ unresolved: "unresolved";
32
+ local: "local";
33
+ }>;
34
+ export type ImportKind = z.infer<typeof ImportKindSchema>;
35
+ export declare const CodeCapabilitiesSchema: z.ZodObject<{
36
+ definitions: z.ZodBoolean;
37
+ imports: z.ZodBoolean;
38
+ calls: z.ZodBoolean;
39
+ inheritance: z.ZodBoolean;
40
+ content: z.ZodBoolean;
41
+ }, z.core.$strip>;
42
+ export type CodeCapabilities = z.infer<typeof CodeCapabilitiesSchema>;
43
+ export declare const ParsedImportBindingSchema: z.ZodObject<{
44
+ localName: z.ZodString;
45
+ importedName: z.ZodOptional<z.ZodString>;
46
+ isNamespace: z.ZodOptional<z.ZodBoolean>;
47
+ isDefault: z.ZodOptional<z.ZodBoolean>;
48
+ }, z.core.$strip>;
49
+ export type ParsedImportBinding = z.infer<typeof ParsedImportBindingSchema>;
50
+ export declare const ParsedImportSchema: z.ZodObject<{
51
+ specifier: z.ZodString;
52
+ line: z.ZodNumber;
53
+ kind: z.ZodEnum<{
54
+ external: "external";
55
+ unresolved: "unresolved";
56
+ local: "local";
91
57
  }>;
92
- }
93
- export interface CodebaseIndex {
94
- repoRoot: string;
95
- files: ParsedFile[];
96
- nodes: CodeNode[];
97
- edges: CodeEdge[];
98
- capabilities: Record<string, CodeCapabilities>;
99
- }
100
- export interface CodeSearchResult {
101
- node: CodeNode;
102
- resolution?: ResolutionStatus;
103
- }
104
- export interface ContentMatch {
105
- path: string;
106
- relativePath: string;
107
- language: string;
108
- line: number;
109
- snippet: string;
110
- }
111
- export interface RelationMatch {
112
- from: CodeNode;
113
- edge: CodeEdge;
114
- to?: CodeNode;
115
- }
116
- export interface DependencyAnalysis {
117
- target: string;
118
- targetFile?: CodeNode;
119
- importers: RelationMatch[];
120
- localImports: RelationMatch[];
121
- externalImports: RelationMatch[];
122
- unresolvedImports: RelationMatch[];
123
- }
124
- export interface ClassTreeAnalysis {
125
- target: CodeNode;
126
- parents: RelationMatch[];
127
- children: RelationMatch[];
128
- methods: CodeNode[];
129
- }
130
- export interface CallChain {
131
- nodes: CodeNode[];
132
- edges: CodeEdge[];
133
- direction?: 'forward' | 'reverse';
134
- status?: 'resolved' | 'blocked_ambiguous';
135
- blockedAt?: CodeNode;
136
- blockedBy?: CodeEdge;
137
- }
138
- export interface CodeCommandPayload {
139
- repo: string;
140
- query: Record<string, unknown>;
141
- results: unknown;
142
- stats: {
143
- filesIndexed: number;
144
- nodes: number;
145
- edges: number;
146
- };
147
- capabilities: Record<string, CodeCapabilities>;
148
- }
58
+ bindings: z.ZodArray<z.ZodObject<{
59
+ localName: z.ZodString;
60
+ importedName: z.ZodOptional<z.ZodString>;
61
+ isNamespace: z.ZodOptional<z.ZodBoolean>;
62
+ isDefault: z.ZodOptional<z.ZodBoolean>;
63
+ }, z.core.$strip>>;
64
+ resolvedPath: z.ZodOptional<z.ZodString>;
65
+ isReExport: z.ZodOptional<z.ZodBoolean>;
66
+ }, z.core.$strip>;
67
+ export type ParsedImport = z.infer<typeof ParsedImportSchema>;
68
+ export declare const ParsedSymbolSchema: z.ZodObject<{
69
+ type: z.ZodEnum<{
70
+ function: "function";
71
+ enum: "enum";
72
+ class: "class";
73
+ interface: "interface";
74
+ "type-alias": "type-alias";
75
+ variable: "variable";
76
+ }>;
77
+ name: z.ZodString;
78
+ line: z.ZodNumber;
79
+ containerName: z.ZodOptional<z.ZodString>;
80
+ signature: z.ZodOptional<z.ZodString>;
81
+ exported: z.ZodOptional<z.ZodBoolean>;
82
+ }, z.core.$strip>;
83
+ export type ParsedSymbol = z.infer<typeof ParsedSymbolSchema>;
84
+ export declare const ParsedCallSchema: z.ZodObject<{
85
+ callerName: z.ZodString;
86
+ callerLine: z.ZodNumber;
87
+ callerContainerName: z.ZodOptional<z.ZodString>;
88
+ calleeName: z.ZodString;
89
+ qualifier: z.ZodOptional<z.ZodString>;
90
+ line: z.ZodNumber;
91
+ }, z.core.$strip>;
92
+ export type ParsedCall = z.infer<typeof ParsedCallSchema>;
93
+ export declare const ParsedInheritanceSchema: z.ZodObject<{
94
+ className: z.ZodString;
95
+ classLine: z.ZodNumber;
96
+ baseName: z.ZodString;
97
+ line: z.ZodNumber;
98
+ kind: z.ZodOptional<z.ZodEnum<{
99
+ implements: "implements";
100
+ extends: "extends";
101
+ }>>;
102
+ }, z.core.$strip>;
103
+ export type ParsedInheritance = z.infer<typeof ParsedInheritanceSchema>;
104
+ export declare const ParsedFileSchema: z.ZodObject<{
105
+ path: z.ZodString;
106
+ relativePath: z.ZodString;
107
+ moduleName: z.ZodString;
108
+ language: z.ZodString;
109
+ content: z.ZodString;
110
+ lines: z.ZodArray<z.ZodString>;
111
+ symbols: z.ZodArray<z.ZodObject<{
112
+ type: z.ZodEnum<{
113
+ function: "function";
114
+ enum: "enum";
115
+ class: "class";
116
+ interface: "interface";
117
+ "type-alias": "type-alias";
118
+ variable: "variable";
119
+ }>;
120
+ name: z.ZodString;
121
+ line: z.ZodNumber;
122
+ containerName: z.ZodOptional<z.ZodString>;
123
+ signature: z.ZodOptional<z.ZodString>;
124
+ exported: z.ZodOptional<z.ZodBoolean>;
125
+ }, z.core.$strip>>;
126
+ imports: z.ZodArray<z.ZodObject<{
127
+ specifier: z.ZodString;
128
+ line: z.ZodNumber;
129
+ kind: z.ZodEnum<{
130
+ external: "external";
131
+ unresolved: "unresolved";
132
+ local: "local";
133
+ }>;
134
+ bindings: z.ZodArray<z.ZodObject<{
135
+ localName: z.ZodString;
136
+ importedName: z.ZodOptional<z.ZodString>;
137
+ isNamespace: z.ZodOptional<z.ZodBoolean>;
138
+ isDefault: z.ZodOptional<z.ZodBoolean>;
139
+ }, z.core.$strip>>;
140
+ resolvedPath: z.ZodOptional<z.ZodString>;
141
+ isReExport: z.ZodOptional<z.ZodBoolean>;
142
+ }, z.core.$strip>>;
143
+ calls: z.ZodArray<z.ZodObject<{
144
+ callerName: z.ZodString;
145
+ callerLine: z.ZodNumber;
146
+ callerContainerName: z.ZodOptional<z.ZodString>;
147
+ calleeName: z.ZodString;
148
+ qualifier: z.ZodOptional<z.ZodString>;
149
+ line: z.ZodNumber;
150
+ }, z.core.$strip>>;
151
+ inheritances: z.ZodArray<z.ZodObject<{
152
+ className: z.ZodString;
153
+ classLine: z.ZodNumber;
154
+ baseName: z.ZodString;
155
+ line: z.ZodNumber;
156
+ kind: z.ZodOptional<z.ZodEnum<{
157
+ implements: "implements";
158
+ extends: "extends";
159
+ }>>;
160
+ }, z.core.$strip>>;
161
+ }, z.core.$strip>;
162
+ export type ParsedFile = z.infer<typeof ParsedFileSchema>;
163
+ export declare const CodeNodeSchema: z.ZodObject<{
164
+ id: z.ZodString;
165
+ type: z.ZodEnum<{
166
+ function: "function";
167
+ file: "file";
168
+ enum: "enum";
169
+ module: "module";
170
+ class: "class";
171
+ interface: "interface";
172
+ "type-alias": "type-alias";
173
+ variable: "variable";
174
+ parameter: "parameter";
175
+ }>;
176
+ name: z.ZodString;
177
+ path: z.ZodString;
178
+ relativePath: z.ZodOptional<z.ZodString>;
179
+ line: z.ZodOptional<z.ZodNumber>;
180
+ language: z.ZodString;
181
+ moduleName: z.ZodOptional<z.ZodString>;
182
+ containerId: z.ZodOptional<z.ZodString>;
183
+ containerName: z.ZodOptional<z.ZodString>;
184
+ signature: z.ZodOptional<z.ZodString>;
185
+ external: z.ZodOptional<z.ZodBoolean>;
186
+ }, z.core.$strip>;
187
+ export type CodeNode = z.infer<typeof CodeNodeSchema>;
188
+ export declare const CodeEdgeSchema: z.ZodObject<{
189
+ id: z.ZodString;
190
+ type: z.ZodEnum<{
191
+ contains: "contains";
192
+ imports: "imports";
193
+ calls: "calls";
194
+ inherits: "inherits";
195
+ implements: "implements";
196
+ has_parameter: "has_parameter";
197
+ }>;
198
+ from: z.ZodString;
199
+ to: z.ZodOptional<z.ZodString>;
200
+ fromPath: z.ZodString;
201
+ toPath: z.ZodOptional<z.ZodString>;
202
+ line: z.ZodOptional<z.ZodNumber>;
203
+ status: z.ZodEnum<{
204
+ resolved: "resolved";
205
+ ambiguous: "ambiguous";
206
+ unresolved: "unresolved";
207
+ }>;
208
+ targetName: z.ZodOptional<z.ZodString>;
209
+ detail: z.ZodOptional<z.ZodString>;
210
+ specifier: z.ZodOptional<z.ZodString>;
211
+ importKind: z.ZodOptional<z.ZodEnum<{
212
+ external: "external";
213
+ unresolved: "unresolved";
214
+ local: "local";
215
+ }>>;
216
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
217
+ name: z.ZodString;
218
+ relativePath: z.ZodOptional<z.ZodString>;
219
+ line: z.ZodOptional<z.ZodNumber>;
220
+ }, z.core.$strip>>>;
221
+ }, z.core.$strip>;
222
+ export type CodeEdge = z.infer<typeof CodeEdgeSchema>;
223
+ export declare const CodebaseIndexSchema: z.ZodObject<{
224
+ repoRoot: z.ZodString;
225
+ files: z.ZodArray<z.ZodObject<{
226
+ path: z.ZodString;
227
+ relativePath: z.ZodString;
228
+ moduleName: z.ZodString;
229
+ language: z.ZodString;
230
+ content: z.ZodString;
231
+ lines: z.ZodArray<z.ZodString>;
232
+ symbols: z.ZodArray<z.ZodObject<{
233
+ type: z.ZodEnum<{
234
+ function: "function";
235
+ enum: "enum";
236
+ class: "class";
237
+ interface: "interface";
238
+ "type-alias": "type-alias";
239
+ variable: "variable";
240
+ }>;
241
+ name: z.ZodString;
242
+ line: z.ZodNumber;
243
+ containerName: z.ZodOptional<z.ZodString>;
244
+ signature: z.ZodOptional<z.ZodString>;
245
+ exported: z.ZodOptional<z.ZodBoolean>;
246
+ }, z.core.$strip>>;
247
+ imports: z.ZodArray<z.ZodObject<{
248
+ specifier: z.ZodString;
249
+ line: z.ZodNumber;
250
+ kind: z.ZodEnum<{
251
+ external: "external";
252
+ unresolved: "unresolved";
253
+ local: "local";
254
+ }>;
255
+ bindings: z.ZodArray<z.ZodObject<{
256
+ localName: z.ZodString;
257
+ importedName: z.ZodOptional<z.ZodString>;
258
+ isNamespace: z.ZodOptional<z.ZodBoolean>;
259
+ isDefault: z.ZodOptional<z.ZodBoolean>;
260
+ }, z.core.$strip>>;
261
+ resolvedPath: z.ZodOptional<z.ZodString>;
262
+ isReExport: z.ZodOptional<z.ZodBoolean>;
263
+ }, z.core.$strip>>;
264
+ calls: z.ZodArray<z.ZodObject<{
265
+ callerName: z.ZodString;
266
+ callerLine: z.ZodNumber;
267
+ callerContainerName: z.ZodOptional<z.ZodString>;
268
+ calleeName: z.ZodString;
269
+ qualifier: z.ZodOptional<z.ZodString>;
270
+ line: z.ZodNumber;
271
+ }, z.core.$strip>>;
272
+ inheritances: z.ZodArray<z.ZodObject<{
273
+ className: z.ZodString;
274
+ classLine: z.ZodNumber;
275
+ baseName: z.ZodString;
276
+ line: z.ZodNumber;
277
+ kind: z.ZodOptional<z.ZodEnum<{
278
+ implements: "implements";
279
+ extends: "extends";
280
+ }>>;
281
+ }, z.core.$strip>>;
282
+ }, z.core.$strip>>;
283
+ nodes: z.ZodArray<z.ZodObject<{
284
+ id: z.ZodString;
285
+ type: z.ZodEnum<{
286
+ function: "function";
287
+ file: "file";
288
+ enum: "enum";
289
+ module: "module";
290
+ class: "class";
291
+ interface: "interface";
292
+ "type-alias": "type-alias";
293
+ variable: "variable";
294
+ parameter: "parameter";
295
+ }>;
296
+ name: z.ZodString;
297
+ path: z.ZodString;
298
+ relativePath: z.ZodOptional<z.ZodString>;
299
+ line: z.ZodOptional<z.ZodNumber>;
300
+ language: z.ZodString;
301
+ moduleName: z.ZodOptional<z.ZodString>;
302
+ containerId: z.ZodOptional<z.ZodString>;
303
+ containerName: z.ZodOptional<z.ZodString>;
304
+ signature: z.ZodOptional<z.ZodString>;
305
+ external: z.ZodOptional<z.ZodBoolean>;
306
+ }, z.core.$strip>>;
307
+ edges: z.ZodArray<z.ZodObject<{
308
+ id: z.ZodString;
309
+ type: z.ZodEnum<{
310
+ contains: "contains";
311
+ imports: "imports";
312
+ calls: "calls";
313
+ inherits: "inherits";
314
+ implements: "implements";
315
+ has_parameter: "has_parameter";
316
+ }>;
317
+ from: z.ZodString;
318
+ to: z.ZodOptional<z.ZodString>;
319
+ fromPath: z.ZodString;
320
+ toPath: z.ZodOptional<z.ZodString>;
321
+ line: z.ZodOptional<z.ZodNumber>;
322
+ status: z.ZodEnum<{
323
+ resolved: "resolved";
324
+ ambiguous: "ambiguous";
325
+ unresolved: "unresolved";
326
+ }>;
327
+ targetName: z.ZodOptional<z.ZodString>;
328
+ detail: z.ZodOptional<z.ZodString>;
329
+ specifier: z.ZodOptional<z.ZodString>;
330
+ importKind: z.ZodOptional<z.ZodEnum<{
331
+ external: "external";
332
+ unresolved: "unresolved";
333
+ local: "local";
334
+ }>>;
335
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
336
+ name: z.ZodString;
337
+ relativePath: z.ZodOptional<z.ZodString>;
338
+ line: z.ZodOptional<z.ZodNumber>;
339
+ }, z.core.$strip>>>;
340
+ }, z.core.$strip>>;
341
+ capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
342
+ definitions: z.ZodBoolean;
343
+ imports: z.ZodBoolean;
344
+ calls: z.ZodBoolean;
345
+ inheritance: z.ZodBoolean;
346
+ content: z.ZodBoolean;
347
+ }, z.core.$strip>>;
348
+ }, z.core.$strip>;
349
+ export type CodebaseIndex = z.infer<typeof CodebaseIndexSchema>;
350
+ export declare const CodeSearchResultSchema: z.ZodObject<{
351
+ node: z.ZodObject<{
352
+ id: z.ZodString;
353
+ type: z.ZodEnum<{
354
+ function: "function";
355
+ file: "file";
356
+ enum: "enum";
357
+ module: "module";
358
+ class: "class";
359
+ interface: "interface";
360
+ "type-alias": "type-alias";
361
+ variable: "variable";
362
+ parameter: "parameter";
363
+ }>;
364
+ name: z.ZodString;
365
+ path: z.ZodString;
366
+ relativePath: z.ZodOptional<z.ZodString>;
367
+ line: z.ZodOptional<z.ZodNumber>;
368
+ language: z.ZodString;
369
+ moduleName: z.ZodOptional<z.ZodString>;
370
+ containerId: z.ZodOptional<z.ZodString>;
371
+ containerName: z.ZodOptional<z.ZodString>;
372
+ signature: z.ZodOptional<z.ZodString>;
373
+ external: z.ZodOptional<z.ZodBoolean>;
374
+ }, z.core.$strip>;
375
+ resolution: z.ZodOptional<z.ZodEnum<{
376
+ resolved: "resolved";
377
+ ambiguous: "ambiguous";
378
+ unresolved: "unresolved";
379
+ }>>;
380
+ }, z.core.$strip>;
381
+ export type CodeSearchResult = z.infer<typeof CodeSearchResultSchema>;
382
+ export declare const ContentMatchSchema: z.ZodObject<{
383
+ path: z.ZodString;
384
+ relativePath: z.ZodString;
385
+ language: z.ZodString;
386
+ line: z.ZodNumber;
387
+ snippet: z.ZodString;
388
+ }, z.core.$strip>;
389
+ export type ContentMatch = z.infer<typeof ContentMatchSchema>;
390
+ export declare const RelationMatchSchema: z.ZodObject<{
391
+ from: z.ZodObject<{
392
+ id: z.ZodString;
393
+ type: z.ZodEnum<{
394
+ function: "function";
395
+ file: "file";
396
+ enum: "enum";
397
+ module: "module";
398
+ class: "class";
399
+ interface: "interface";
400
+ "type-alias": "type-alias";
401
+ variable: "variable";
402
+ parameter: "parameter";
403
+ }>;
404
+ name: z.ZodString;
405
+ path: z.ZodString;
406
+ relativePath: z.ZodOptional<z.ZodString>;
407
+ line: z.ZodOptional<z.ZodNumber>;
408
+ language: z.ZodString;
409
+ moduleName: z.ZodOptional<z.ZodString>;
410
+ containerId: z.ZodOptional<z.ZodString>;
411
+ containerName: z.ZodOptional<z.ZodString>;
412
+ signature: z.ZodOptional<z.ZodString>;
413
+ external: z.ZodOptional<z.ZodBoolean>;
414
+ }, z.core.$strip>;
415
+ edge: z.ZodObject<{
416
+ id: z.ZodString;
417
+ type: z.ZodEnum<{
418
+ contains: "contains";
419
+ imports: "imports";
420
+ calls: "calls";
421
+ inherits: "inherits";
422
+ implements: "implements";
423
+ has_parameter: "has_parameter";
424
+ }>;
425
+ from: z.ZodString;
426
+ to: z.ZodOptional<z.ZodString>;
427
+ fromPath: z.ZodString;
428
+ toPath: z.ZodOptional<z.ZodString>;
429
+ line: z.ZodOptional<z.ZodNumber>;
430
+ status: z.ZodEnum<{
431
+ resolved: "resolved";
432
+ ambiguous: "ambiguous";
433
+ unresolved: "unresolved";
434
+ }>;
435
+ targetName: z.ZodOptional<z.ZodString>;
436
+ detail: z.ZodOptional<z.ZodString>;
437
+ specifier: z.ZodOptional<z.ZodString>;
438
+ importKind: z.ZodOptional<z.ZodEnum<{
439
+ external: "external";
440
+ unresolved: "unresolved";
441
+ local: "local";
442
+ }>>;
443
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
444
+ name: z.ZodString;
445
+ relativePath: z.ZodOptional<z.ZodString>;
446
+ line: z.ZodOptional<z.ZodNumber>;
447
+ }, z.core.$strip>>>;
448
+ }, z.core.$strip>;
449
+ to: z.ZodOptional<z.ZodObject<{
450
+ id: z.ZodString;
451
+ type: z.ZodEnum<{
452
+ function: "function";
453
+ file: "file";
454
+ enum: "enum";
455
+ module: "module";
456
+ class: "class";
457
+ interface: "interface";
458
+ "type-alias": "type-alias";
459
+ variable: "variable";
460
+ parameter: "parameter";
461
+ }>;
462
+ name: z.ZodString;
463
+ path: z.ZodString;
464
+ relativePath: z.ZodOptional<z.ZodString>;
465
+ line: z.ZodOptional<z.ZodNumber>;
466
+ language: z.ZodString;
467
+ moduleName: z.ZodOptional<z.ZodString>;
468
+ containerId: z.ZodOptional<z.ZodString>;
469
+ containerName: z.ZodOptional<z.ZodString>;
470
+ signature: z.ZodOptional<z.ZodString>;
471
+ external: z.ZodOptional<z.ZodBoolean>;
472
+ }, z.core.$strip>>;
473
+ }, z.core.$strip>;
474
+ export type RelationMatch = z.infer<typeof RelationMatchSchema>;
475
+ export declare const DependencyAnalysisSchema: z.ZodObject<{
476
+ target: z.ZodString;
477
+ targetFile: z.ZodOptional<z.ZodObject<{
478
+ id: z.ZodString;
479
+ type: z.ZodEnum<{
480
+ function: "function";
481
+ file: "file";
482
+ enum: "enum";
483
+ module: "module";
484
+ class: "class";
485
+ interface: "interface";
486
+ "type-alias": "type-alias";
487
+ variable: "variable";
488
+ parameter: "parameter";
489
+ }>;
490
+ name: z.ZodString;
491
+ path: z.ZodString;
492
+ relativePath: z.ZodOptional<z.ZodString>;
493
+ line: z.ZodOptional<z.ZodNumber>;
494
+ language: z.ZodString;
495
+ moduleName: z.ZodOptional<z.ZodString>;
496
+ containerId: z.ZodOptional<z.ZodString>;
497
+ containerName: z.ZodOptional<z.ZodString>;
498
+ signature: z.ZodOptional<z.ZodString>;
499
+ external: z.ZodOptional<z.ZodBoolean>;
500
+ }, z.core.$strip>>;
501
+ importers: z.ZodArray<z.ZodObject<{
502
+ from: z.ZodObject<{
503
+ id: z.ZodString;
504
+ type: z.ZodEnum<{
505
+ function: "function";
506
+ file: "file";
507
+ enum: "enum";
508
+ module: "module";
509
+ class: "class";
510
+ interface: "interface";
511
+ "type-alias": "type-alias";
512
+ variable: "variable";
513
+ parameter: "parameter";
514
+ }>;
515
+ name: z.ZodString;
516
+ path: z.ZodString;
517
+ relativePath: z.ZodOptional<z.ZodString>;
518
+ line: z.ZodOptional<z.ZodNumber>;
519
+ language: z.ZodString;
520
+ moduleName: z.ZodOptional<z.ZodString>;
521
+ containerId: z.ZodOptional<z.ZodString>;
522
+ containerName: z.ZodOptional<z.ZodString>;
523
+ signature: z.ZodOptional<z.ZodString>;
524
+ external: z.ZodOptional<z.ZodBoolean>;
525
+ }, z.core.$strip>;
526
+ edge: z.ZodObject<{
527
+ id: z.ZodString;
528
+ type: z.ZodEnum<{
529
+ contains: "contains";
530
+ imports: "imports";
531
+ calls: "calls";
532
+ inherits: "inherits";
533
+ implements: "implements";
534
+ has_parameter: "has_parameter";
535
+ }>;
536
+ from: z.ZodString;
537
+ to: z.ZodOptional<z.ZodString>;
538
+ fromPath: z.ZodString;
539
+ toPath: z.ZodOptional<z.ZodString>;
540
+ line: z.ZodOptional<z.ZodNumber>;
541
+ status: z.ZodEnum<{
542
+ resolved: "resolved";
543
+ ambiguous: "ambiguous";
544
+ unresolved: "unresolved";
545
+ }>;
546
+ targetName: z.ZodOptional<z.ZodString>;
547
+ detail: z.ZodOptional<z.ZodString>;
548
+ specifier: z.ZodOptional<z.ZodString>;
549
+ importKind: z.ZodOptional<z.ZodEnum<{
550
+ external: "external";
551
+ unresolved: "unresolved";
552
+ local: "local";
553
+ }>>;
554
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
555
+ name: z.ZodString;
556
+ relativePath: z.ZodOptional<z.ZodString>;
557
+ line: z.ZodOptional<z.ZodNumber>;
558
+ }, z.core.$strip>>>;
559
+ }, z.core.$strip>;
560
+ to: z.ZodOptional<z.ZodObject<{
561
+ id: z.ZodString;
562
+ type: z.ZodEnum<{
563
+ function: "function";
564
+ file: "file";
565
+ enum: "enum";
566
+ module: "module";
567
+ class: "class";
568
+ interface: "interface";
569
+ "type-alias": "type-alias";
570
+ variable: "variable";
571
+ parameter: "parameter";
572
+ }>;
573
+ name: z.ZodString;
574
+ path: z.ZodString;
575
+ relativePath: z.ZodOptional<z.ZodString>;
576
+ line: z.ZodOptional<z.ZodNumber>;
577
+ language: z.ZodString;
578
+ moduleName: z.ZodOptional<z.ZodString>;
579
+ containerId: z.ZodOptional<z.ZodString>;
580
+ containerName: z.ZodOptional<z.ZodString>;
581
+ signature: z.ZodOptional<z.ZodString>;
582
+ external: z.ZodOptional<z.ZodBoolean>;
583
+ }, z.core.$strip>>;
584
+ }, z.core.$strip>>;
585
+ localImports: z.ZodArray<z.ZodObject<{
586
+ from: z.ZodObject<{
587
+ id: z.ZodString;
588
+ type: z.ZodEnum<{
589
+ function: "function";
590
+ file: "file";
591
+ enum: "enum";
592
+ module: "module";
593
+ class: "class";
594
+ interface: "interface";
595
+ "type-alias": "type-alias";
596
+ variable: "variable";
597
+ parameter: "parameter";
598
+ }>;
599
+ name: z.ZodString;
600
+ path: z.ZodString;
601
+ relativePath: z.ZodOptional<z.ZodString>;
602
+ line: z.ZodOptional<z.ZodNumber>;
603
+ language: z.ZodString;
604
+ moduleName: z.ZodOptional<z.ZodString>;
605
+ containerId: z.ZodOptional<z.ZodString>;
606
+ containerName: z.ZodOptional<z.ZodString>;
607
+ signature: z.ZodOptional<z.ZodString>;
608
+ external: z.ZodOptional<z.ZodBoolean>;
609
+ }, z.core.$strip>;
610
+ edge: z.ZodObject<{
611
+ id: z.ZodString;
612
+ type: z.ZodEnum<{
613
+ contains: "contains";
614
+ imports: "imports";
615
+ calls: "calls";
616
+ inherits: "inherits";
617
+ implements: "implements";
618
+ has_parameter: "has_parameter";
619
+ }>;
620
+ from: z.ZodString;
621
+ to: z.ZodOptional<z.ZodString>;
622
+ fromPath: z.ZodString;
623
+ toPath: z.ZodOptional<z.ZodString>;
624
+ line: z.ZodOptional<z.ZodNumber>;
625
+ status: z.ZodEnum<{
626
+ resolved: "resolved";
627
+ ambiguous: "ambiguous";
628
+ unresolved: "unresolved";
629
+ }>;
630
+ targetName: z.ZodOptional<z.ZodString>;
631
+ detail: z.ZodOptional<z.ZodString>;
632
+ specifier: z.ZodOptional<z.ZodString>;
633
+ importKind: z.ZodOptional<z.ZodEnum<{
634
+ external: "external";
635
+ unresolved: "unresolved";
636
+ local: "local";
637
+ }>>;
638
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
639
+ name: z.ZodString;
640
+ relativePath: z.ZodOptional<z.ZodString>;
641
+ line: z.ZodOptional<z.ZodNumber>;
642
+ }, z.core.$strip>>>;
643
+ }, z.core.$strip>;
644
+ to: z.ZodOptional<z.ZodObject<{
645
+ id: z.ZodString;
646
+ type: z.ZodEnum<{
647
+ function: "function";
648
+ file: "file";
649
+ enum: "enum";
650
+ module: "module";
651
+ class: "class";
652
+ interface: "interface";
653
+ "type-alias": "type-alias";
654
+ variable: "variable";
655
+ parameter: "parameter";
656
+ }>;
657
+ name: z.ZodString;
658
+ path: z.ZodString;
659
+ relativePath: z.ZodOptional<z.ZodString>;
660
+ line: z.ZodOptional<z.ZodNumber>;
661
+ language: z.ZodString;
662
+ moduleName: z.ZodOptional<z.ZodString>;
663
+ containerId: z.ZodOptional<z.ZodString>;
664
+ containerName: z.ZodOptional<z.ZodString>;
665
+ signature: z.ZodOptional<z.ZodString>;
666
+ external: z.ZodOptional<z.ZodBoolean>;
667
+ }, z.core.$strip>>;
668
+ }, z.core.$strip>>;
669
+ externalImports: z.ZodArray<z.ZodObject<{
670
+ from: z.ZodObject<{
671
+ id: z.ZodString;
672
+ type: z.ZodEnum<{
673
+ function: "function";
674
+ file: "file";
675
+ enum: "enum";
676
+ module: "module";
677
+ class: "class";
678
+ interface: "interface";
679
+ "type-alias": "type-alias";
680
+ variable: "variable";
681
+ parameter: "parameter";
682
+ }>;
683
+ name: z.ZodString;
684
+ path: z.ZodString;
685
+ relativePath: z.ZodOptional<z.ZodString>;
686
+ line: z.ZodOptional<z.ZodNumber>;
687
+ language: z.ZodString;
688
+ moduleName: z.ZodOptional<z.ZodString>;
689
+ containerId: z.ZodOptional<z.ZodString>;
690
+ containerName: z.ZodOptional<z.ZodString>;
691
+ signature: z.ZodOptional<z.ZodString>;
692
+ external: z.ZodOptional<z.ZodBoolean>;
693
+ }, z.core.$strip>;
694
+ edge: z.ZodObject<{
695
+ id: z.ZodString;
696
+ type: z.ZodEnum<{
697
+ contains: "contains";
698
+ imports: "imports";
699
+ calls: "calls";
700
+ inherits: "inherits";
701
+ implements: "implements";
702
+ has_parameter: "has_parameter";
703
+ }>;
704
+ from: z.ZodString;
705
+ to: z.ZodOptional<z.ZodString>;
706
+ fromPath: z.ZodString;
707
+ toPath: z.ZodOptional<z.ZodString>;
708
+ line: z.ZodOptional<z.ZodNumber>;
709
+ status: z.ZodEnum<{
710
+ resolved: "resolved";
711
+ ambiguous: "ambiguous";
712
+ unresolved: "unresolved";
713
+ }>;
714
+ targetName: z.ZodOptional<z.ZodString>;
715
+ detail: z.ZodOptional<z.ZodString>;
716
+ specifier: z.ZodOptional<z.ZodString>;
717
+ importKind: z.ZodOptional<z.ZodEnum<{
718
+ external: "external";
719
+ unresolved: "unresolved";
720
+ local: "local";
721
+ }>>;
722
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
723
+ name: z.ZodString;
724
+ relativePath: z.ZodOptional<z.ZodString>;
725
+ line: z.ZodOptional<z.ZodNumber>;
726
+ }, z.core.$strip>>>;
727
+ }, z.core.$strip>;
728
+ to: z.ZodOptional<z.ZodObject<{
729
+ id: z.ZodString;
730
+ type: z.ZodEnum<{
731
+ function: "function";
732
+ file: "file";
733
+ enum: "enum";
734
+ module: "module";
735
+ class: "class";
736
+ interface: "interface";
737
+ "type-alias": "type-alias";
738
+ variable: "variable";
739
+ parameter: "parameter";
740
+ }>;
741
+ name: z.ZodString;
742
+ path: z.ZodString;
743
+ relativePath: z.ZodOptional<z.ZodString>;
744
+ line: z.ZodOptional<z.ZodNumber>;
745
+ language: z.ZodString;
746
+ moduleName: z.ZodOptional<z.ZodString>;
747
+ containerId: z.ZodOptional<z.ZodString>;
748
+ containerName: z.ZodOptional<z.ZodString>;
749
+ signature: z.ZodOptional<z.ZodString>;
750
+ external: z.ZodOptional<z.ZodBoolean>;
751
+ }, z.core.$strip>>;
752
+ }, z.core.$strip>>;
753
+ unresolvedImports: z.ZodArray<z.ZodObject<{
754
+ from: z.ZodObject<{
755
+ id: z.ZodString;
756
+ type: z.ZodEnum<{
757
+ function: "function";
758
+ file: "file";
759
+ enum: "enum";
760
+ module: "module";
761
+ class: "class";
762
+ interface: "interface";
763
+ "type-alias": "type-alias";
764
+ variable: "variable";
765
+ parameter: "parameter";
766
+ }>;
767
+ name: z.ZodString;
768
+ path: z.ZodString;
769
+ relativePath: z.ZodOptional<z.ZodString>;
770
+ line: z.ZodOptional<z.ZodNumber>;
771
+ language: z.ZodString;
772
+ moduleName: z.ZodOptional<z.ZodString>;
773
+ containerId: z.ZodOptional<z.ZodString>;
774
+ containerName: z.ZodOptional<z.ZodString>;
775
+ signature: z.ZodOptional<z.ZodString>;
776
+ external: z.ZodOptional<z.ZodBoolean>;
777
+ }, z.core.$strip>;
778
+ edge: z.ZodObject<{
779
+ id: z.ZodString;
780
+ type: z.ZodEnum<{
781
+ contains: "contains";
782
+ imports: "imports";
783
+ calls: "calls";
784
+ inherits: "inherits";
785
+ implements: "implements";
786
+ has_parameter: "has_parameter";
787
+ }>;
788
+ from: z.ZodString;
789
+ to: z.ZodOptional<z.ZodString>;
790
+ fromPath: z.ZodString;
791
+ toPath: z.ZodOptional<z.ZodString>;
792
+ line: z.ZodOptional<z.ZodNumber>;
793
+ status: z.ZodEnum<{
794
+ resolved: "resolved";
795
+ ambiguous: "ambiguous";
796
+ unresolved: "unresolved";
797
+ }>;
798
+ targetName: z.ZodOptional<z.ZodString>;
799
+ detail: z.ZodOptional<z.ZodString>;
800
+ specifier: z.ZodOptional<z.ZodString>;
801
+ importKind: z.ZodOptional<z.ZodEnum<{
802
+ external: "external";
803
+ unresolved: "unresolved";
804
+ local: "local";
805
+ }>>;
806
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
807
+ name: z.ZodString;
808
+ relativePath: z.ZodOptional<z.ZodString>;
809
+ line: z.ZodOptional<z.ZodNumber>;
810
+ }, z.core.$strip>>>;
811
+ }, z.core.$strip>;
812
+ to: z.ZodOptional<z.ZodObject<{
813
+ id: z.ZodString;
814
+ type: z.ZodEnum<{
815
+ function: "function";
816
+ file: "file";
817
+ enum: "enum";
818
+ module: "module";
819
+ class: "class";
820
+ interface: "interface";
821
+ "type-alias": "type-alias";
822
+ variable: "variable";
823
+ parameter: "parameter";
824
+ }>;
825
+ name: z.ZodString;
826
+ path: z.ZodString;
827
+ relativePath: z.ZodOptional<z.ZodString>;
828
+ line: z.ZodOptional<z.ZodNumber>;
829
+ language: z.ZodString;
830
+ moduleName: z.ZodOptional<z.ZodString>;
831
+ containerId: z.ZodOptional<z.ZodString>;
832
+ containerName: z.ZodOptional<z.ZodString>;
833
+ signature: z.ZodOptional<z.ZodString>;
834
+ external: z.ZodOptional<z.ZodBoolean>;
835
+ }, z.core.$strip>>;
836
+ }, z.core.$strip>>;
837
+ }, z.core.$strip>;
838
+ export type DependencyAnalysis = z.infer<typeof DependencyAnalysisSchema>;
839
+ export declare const ClassTreeAnalysisSchema: z.ZodObject<{
840
+ target: z.ZodObject<{
841
+ id: z.ZodString;
842
+ type: z.ZodEnum<{
843
+ function: "function";
844
+ file: "file";
845
+ enum: "enum";
846
+ module: "module";
847
+ class: "class";
848
+ interface: "interface";
849
+ "type-alias": "type-alias";
850
+ variable: "variable";
851
+ parameter: "parameter";
852
+ }>;
853
+ name: z.ZodString;
854
+ path: z.ZodString;
855
+ relativePath: z.ZodOptional<z.ZodString>;
856
+ line: z.ZodOptional<z.ZodNumber>;
857
+ language: z.ZodString;
858
+ moduleName: z.ZodOptional<z.ZodString>;
859
+ containerId: z.ZodOptional<z.ZodString>;
860
+ containerName: z.ZodOptional<z.ZodString>;
861
+ signature: z.ZodOptional<z.ZodString>;
862
+ external: z.ZodOptional<z.ZodBoolean>;
863
+ }, z.core.$strip>;
864
+ parents: z.ZodArray<z.ZodObject<{
865
+ from: z.ZodObject<{
866
+ id: z.ZodString;
867
+ type: z.ZodEnum<{
868
+ function: "function";
869
+ file: "file";
870
+ enum: "enum";
871
+ module: "module";
872
+ class: "class";
873
+ interface: "interface";
874
+ "type-alias": "type-alias";
875
+ variable: "variable";
876
+ parameter: "parameter";
877
+ }>;
878
+ name: z.ZodString;
879
+ path: z.ZodString;
880
+ relativePath: z.ZodOptional<z.ZodString>;
881
+ line: z.ZodOptional<z.ZodNumber>;
882
+ language: z.ZodString;
883
+ moduleName: z.ZodOptional<z.ZodString>;
884
+ containerId: z.ZodOptional<z.ZodString>;
885
+ containerName: z.ZodOptional<z.ZodString>;
886
+ signature: z.ZodOptional<z.ZodString>;
887
+ external: z.ZodOptional<z.ZodBoolean>;
888
+ }, z.core.$strip>;
889
+ edge: z.ZodObject<{
890
+ id: z.ZodString;
891
+ type: z.ZodEnum<{
892
+ contains: "contains";
893
+ imports: "imports";
894
+ calls: "calls";
895
+ inherits: "inherits";
896
+ implements: "implements";
897
+ has_parameter: "has_parameter";
898
+ }>;
899
+ from: z.ZodString;
900
+ to: z.ZodOptional<z.ZodString>;
901
+ fromPath: z.ZodString;
902
+ toPath: z.ZodOptional<z.ZodString>;
903
+ line: z.ZodOptional<z.ZodNumber>;
904
+ status: z.ZodEnum<{
905
+ resolved: "resolved";
906
+ ambiguous: "ambiguous";
907
+ unresolved: "unresolved";
908
+ }>;
909
+ targetName: z.ZodOptional<z.ZodString>;
910
+ detail: z.ZodOptional<z.ZodString>;
911
+ specifier: z.ZodOptional<z.ZodString>;
912
+ importKind: z.ZodOptional<z.ZodEnum<{
913
+ external: "external";
914
+ unresolved: "unresolved";
915
+ local: "local";
916
+ }>>;
917
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
918
+ name: z.ZodString;
919
+ relativePath: z.ZodOptional<z.ZodString>;
920
+ line: z.ZodOptional<z.ZodNumber>;
921
+ }, z.core.$strip>>>;
922
+ }, z.core.$strip>;
923
+ to: z.ZodOptional<z.ZodObject<{
924
+ id: z.ZodString;
925
+ type: z.ZodEnum<{
926
+ function: "function";
927
+ file: "file";
928
+ enum: "enum";
929
+ module: "module";
930
+ class: "class";
931
+ interface: "interface";
932
+ "type-alias": "type-alias";
933
+ variable: "variable";
934
+ parameter: "parameter";
935
+ }>;
936
+ name: z.ZodString;
937
+ path: z.ZodString;
938
+ relativePath: z.ZodOptional<z.ZodString>;
939
+ line: z.ZodOptional<z.ZodNumber>;
940
+ language: z.ZodString;
941
+ moduleName: z.ZodOptional<z.ZodString>;
942
+ containerId: z.ZodOptional<z.ZodString>;
943
+ containerName: z.ZodOptional<z.ZodString>;
944
+ signature: z.ZodOptional<z.ZodString>;
945
+ external: z.ZodOptional<z.ZodBoolean>;
946
+ }, z.core.$strip>>;
947
+ }, z.core.$strip>>;
948
+ children: z.ZodArray<z.ZodObject<{
949
+ from: z.ZodObject<{
950
+ id: z.ZodString;
951
+ type: z.ZodEnum<{
952
+ function: "function";
953
+ file: "file";
954
+ enum: "enum";
955
+ module: "module";
956
+ class: "class";
957
+ interface: "interface";
958
+ "type-alias": "type-alias";
959
+ variable: "variable";
960
+ parameter: "parameter";
961
+ }>;
962
+ name: z.ZodString;
963
+ path: z.ZodString;
964
+ relativePath: z.ZodOptional<z.ZodString>;
965
+ line: z.ZodOptional<z.ZodNumber>;
966
+ language: z.ZodString;
967
+ moduleName: z.ZodOptional<z.ZodString>;
968
+ containerId: z.ZodOptional<z.ZodString>;
969
+ containerName: z.ZodOptional<z.ZodString>;
970
+ signature: z.ZodOptional<z.ZodString>;
971
+ external: z.ZodOptional<z.ZodBoolean>;
972
+ }, z.core.$strip>;
973
+ edge: z.ZodObject<{
974
+ id: z.ZodString;
975
+ type: z.ZodEnum<{
976
+ contains: "contains";
977
+ imports: "imports";
978
+ calls: "calls";
979
+ inherits: "inherits";
980
+ implements: "implements";
981
+ has_parameter: "has_parameter";
982
+ }>;
983
+ from: z.ZodString;
984
+ to: z.ZodOptional<z.ZodString>;
985
+ fromPath: z.ZodString;
986
+ toPath: z.ZodOptional<z.ZodString>;
987
+ line: z.ZodOptional<z.ZodNumber>;
988
+ status: z.ZodEnum<{
989
+ resolved: "resolved";
990
+ ambiguous: "ambiguous";
991
+ unresolved: "unresolved";
992
+ }>;
993
+ targetName: z.ZodOptional<z.ZodString>;
994
+ detail: z.ZodOptional<z.ZodString>;
995
+ specifier: z.ZodOptional<z.ZodString>;
996
+ importKind: z.ZodOptional<z.ZodEnum<{
997
+ external: "external";
998
+ unresolved: "unresolved";
999
+ local: "local";
1000
+ }>>;
1001
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1002
+ name: z.ZodString;
1003
+ relativePath: z.ZodOptional<z.ZodString>;
1004
+ line: z.ZodOptional<z.ZodNumber>;
1005
+ }, z.core.$strip>>>;
1006
+ }, z.core.$strip>;
1007
+ to: z.ZodOptional<z.ZodObject<{
1008
+ id: z.ZodString;
1009
+ type: z.ZodEnum<{
1010
+ function: "function";
1011
+ file: "file";
1012
+ enum: "enum";
1013
+ module: "module";
1014
+ class: "class";
1015
+ interface: "interface";
1016
+ "type-alias": "type-alias";
1017
+ variable: "variable";
1018
+ parameter: "parameter";
1019
+ }>;
1020
+ name: z.ZodString;
1021
+ path: z.ZodString;
1022
+ relativePath: z.ZodOptional<z.ZodString>;
1023
+ line: z.ZodOptional<z.ZodNumber>;
1024
+ language: z.ZodString;
1025
+ moduleName: z.ZodOptional<z.ZodString>;
1026
+ containerId: z.ZodOptional<z.ZodString>;
1027
+ containerName: z.ZodOptional<z.ZodString>;
1028
+ signature: z.ZodOptional<z.ZodString>;
1029
+ external: z.ZodOptional<z.ZodBoolean>;
1030
+ }, z.core.$strip>>;
1031
+ }, z.core.$strip>>;
1032
+ methods: z.ZodArray<z.ZodObject<{
1033
+ id: z.ZodString;
1034
+ type: z.ZodEnum<{
1035
+ function: "function";
1036
+ file: "file";
1037
+ enum: "enum";
1038
+ module: "module";
1039
+ class: "class";
1040
+ interface: "interface";
1041
+ "type-alias": "type-alias";
1042
+ variable: "variable";
1043
+ parameter: "parameter";
1044
+ }>;
1045
+ name: z.ZodString;
1046
+ path: z.ZodString;
1047
+ relativePath: z.ZodOptional<z.ZodString>;
1048
+ line: z.ZodOptional<z.ZodNumber>;
1049
+ language: z.ZodString;
1050
+ moduleName: z.ZodOptional<z.ZodString>;
1051
+ containerId: z.ZodOptional<z.ZodString>;
1052
+ containerName: z.ZodOptional<z.ZodString>;
1053
+ signature: z.ZodOptional<z.ZodString>;
1054
+ external: z.ZodOptional<z.ZodBoolean>;
1055
+ }, z.core.$strip>>;
1056
+ }, z.core.$strip>;
1057
+ export type ClassTreeAnalysis = z.infer<typeof ClassTreeAnalysisSchema>;
1058
+ export declare const CallChainSchema: z.ZodObject<{
1059
+ nodes: z.ZodArray<z.ZodObject<{
1060
+ id: z.ZodString;
1061
+ type: z.ZodEnum<{
1062
+ function: "function";
1063
+ file: "file";
1064
+ enum: "enum";
1065
+ module: "module";
1066
+ class: "class";
1067
+ interface: "interface";
1068
+ "type-alias": "type-alias";
1069
+ variable: "variable";
1070
+ parameter: "parameter";
1071
+ }>;
1072
+ name: z.ZodString;
1073
+ path: z.ZodString;
1074
+ relativePath: z.ZodOptional<z.ZodString>;
1075
+ line: z.ZodOptional<z.ZodNumber>;
1076
+ language: z.ZodString;
1077
+ moduleName: z.ZodOptional<z.ZodString>;
1078
+ containerId: z.ZodOptional<z.ZodString>;
1079
+ containerName: z.ZodOptional<z.ZodString>;
1080
+ signature: z.ZodOptional<z.ZodString>;
1081
+ external: z.ZodOptional<z.ZodBoolean>;
1082
+ }, z.core.$strip>>;
1083
+ edges: z.ZodArray<z.ZodObject<{
1084
+ id: z.ZodString;
1085
+ type: z.ZodEnum<{
1086
+ contains: "contains";
1087
+ imports: "imports";
1088
+ calls: "calls";
1089
+ inherits: "inherits";
1090
+ implements: "implements";
1091
+ has_parameter: "has_parameter";
1092
+ }>;
1093
+ from: z.ZodString;
1094
+ to: z.ZodOptional<z.ZodString>;
1095
+ fromPath: z.ZodString;
1096
+ toPath: z.ZodOptional<z.ZodString>;
1097
+ line: z.ZodOptional<z.ZodNumber>;
1098
+ status: z.ZodEnum<{
1099
+ resolved: "resolved";
1100
+ ambiguous: "ambiguous";
1101
+ unresolved: "unresolved";
1102
+ }>;
1103
+ targetName: z.ZodOptional<z.ZodString>;
1104
+ detail: z.ZodOptional<z.ZodString>;
1105
+ specifier: z.ZodOptional<z.ZodString>;
1106
+ importKind: z.ZodOptional<z.ZodEnum<{
1107
+ external: "external";
1108
+ unresolved: "unresolved";
1109
+ local: "local";
1110
+ }>>;
1111
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1112
+ name: z.ZodString;
1113
+ relativePath: z.ZodOptional<z.ZodString>;
1114
+ line: z.ZodOptional<z.ZodNumber>;
1115
+ }, z.core.$strip>>>;
1116
+ }, z.core.$strip>>;
1117
+ direction: z.ZodOptional<z.ZodEnum<{
1118
+ reverse: "reverse";
1119
+ forward: "forward";
1120
+ }>>;
1121
+ status: z.ZodOptional<z.ZodEnum<{
1122
+ resolved: "resolved";
1123
+ blocked_ambiguous: "blocked_ambiguous";
1124
+ }>>;
1125
+ blockedAt: z.ZodOptional<z.ZodObject<{
1126
+ id: z.ZodString;
1127
+ type: z.ZodEnum<{
1128
+ function: "function";
1129
+ file: "file";
1130
+ enum: "enum";
1131
+ module: "module";
1132
+ class: "class";
1133
+ interface: "interface";
1134
+ "type-alias": "type-alias";
1135
+ variable: "variable";
1136
+ parameter: "parameter";
1137
+ }>;
1138
+ name: z.ZodString;
1139
+ path: z.ZodString;
1140
+ relativePath: z.ZodOptional<z.ZodString>;
1141
+ line: z.ZodOptional<z.ZodNumber>;
1142
+ language: z.ZodString;
1143
+ moduleName: z.ZodOptional<z.ZodString>;
1144
+ containerId: z.ZodOptional<z.ZodString>;
1145
+ containerName: z.ZodOptional<z.ZodString>;
1146
+ signature: z.ZodOptional<z.ZodString>;
1147
+ external: z.ZodOptional<z.ZodBoolean>;
1148
+ }, z.core.$strip>>;
1149
+ blockedBy: z.ZodOptional<z.ZodObject<{
1150
+ id: z.ZodString;
1151
+ type: z.ZodEnum<{
1152
+ contains: "contains";
1153
+ imports: "imports";
1154
+ calls: "calls";
1155
+ inherits: "inherits";
1156
+ implements: "implements";
1157
+ has_parameter: "has_parameter";
1158
+ }>;
1159
+ from: z.ZodString;
1160
+ to: z.ZodOptional<z.ZodString>;
1161
+ fromPath: z.ZodString;
1162
+ toPath: z.ZodOptional<z.ZodString>;
1163
+ line: z.ZodOptional<z.ZodNumber>;
1164
+ status: z.ZodEnum<{
1165
+ resolved: "resolved";
1166
+ ambiguous: "ambiguous";
1167
+ unresolved: "unresolved";
1168
+ }>;
1169
+ targetName: z.ZodOptional<z.ZodString>;
1170
+ detail: z.ZodOptional<z.ZodString>;
1171
+ specifier: z.ZodOptional<z.ZodString>;
1172
+ importKind: z.ZodOptional<z.ZodEnum<{
1173
+ external: "external";
1174
+ unresolved: "unresolved";
1175
+ local: "local";
1176
+ }>>;
1177
+ candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1178
+ name: z.ZodString;
1179
+ relativePath: z.ZodOptional<z.ZodString>;
1180
+ line: z.ZodOptional<z.ZodNumber>;
1181
+ }, z.core.$strip>>>;
1182
+ }, z.core.$strip>>;
1183
+ }, z.core.$strip>;
1184
+ export type CallChain = z.infer<typeof CallChainSchema>;
1185
+ export declare const CodeCommandPayloadSchema: z.ZodObject<{
1186
+ repo: z.ZodString;
1187
+ query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1188
+ results: z.ZodUnknown;
1189
+ stats: z.ZodObject<{
1190
+ filesIndexed: z.ZodNumber;
1191
+ nodes: z.ZodNumber;
1192
+ edges: z.ZodNumber;
1193
+ }, z.core.$strip>;
1194
+ capabilities: z.ZodRecord<z.ZodString, z.ZodObject<{
1195
+ definitions: z.ZodBoolean;
1196
+ imports: z.ZodBoolean;
1197
+ calls: z.ZodBoolean;
1198
+ inheritance: z.ZodBoolean;
1199
+ content: z.ZodBoolean;
1200
+ }, z.core.$strip>>;
1201
+ }, z.core.$strip>;
1202
+ export type CodeCommandPayload = z.infer<typeof CodeCommandPayloadSchema>;