@wispbit/local 1.0.25

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 (89) hide show
  1. package/dist/build.d.ts +3 -0
  2. package/dist/build.d.ts.map +1 -0
  3. package/dist/cli.js +3668 -0
  4. package/dist/cli.js.map +7 -0
  5. package/dist/index.js +3868 -0
  6. package/dist/index.js.map +7 -0
  7. package/dist/package.json +72 -0
  8. package/dist/src/cli.d.ts +16 -0
  9. package/dist/src/cli.d.ts.map +1 -0
  10. package/dist/src/config.d.ts +6 -0
  11. package/dist/src/config.d.ts.map +1 -0
  12. package/dist/src/environment/Config.d.ts +69 -0
  13. package/dist/src/environment/Config.d.ts.map +1 -0
  14. package/dist/src/environment/Environment.d.ts +23 -0
  15. package/dist/src/environment/Environment.d.ts.map +1 -0
  16. package/dist/src/environment/Sandbox.d.ts +48 -0
  17. package/dist/src/environment/Sandbox.d.ts.map +1 -0
  18. package/dist/src/environment/Storage.d.ts +84 -0
  19. package/dist/src/environment/Storage.d.ts.map +1 -0
  20. package/dist/src/index.d.ts +16 -0
  21. package/dist/src/index.d.ts.map +1 -0
  22. package/dist/src/languages.d.ts +36 -0
  23. package/dist/src/languages.d.ts.map +1 -0
  24. package/dist/src/providers/AstGrepAstProvider.d.ts +44 -0
  25. package/dist/src/providers/AstGrepAstProvider.d.ts.map +1 -0
  26. package/dist/src/providers/LanguageBackend.d.ts +74 -0
  27. package/dist/src/providers/LanguageBackend.d.ts.map +1 -0
  28. package/dist/src/providers/RuleProvider.d.ts +46 -0
  29. package/dist/src/providers/RuleProvider.d.ts.map +1 -0
  30. package/dist/src/providers/ScipIntelligenceProvider.d.ts +84 -0
  31. package/dist/src/providers/ScipIntelligenceProvider.d.ts.map +1 -0
  32. package/dist/src/providers/ViolationValidationProvider.d.ts +42 -0
  33. package/dist/src/providers/ViolationValidationProvider.d.ts.map +1 -0
  34. package/dist/src/providers/WispbitRuleProvider.d.ts +45 -0
  35. package/dist/src/providers/WispbitRuleProvider.d.ts.map +1 -0
  36. package/dist/src/providers/WispbitViolationValidationProvider.d.ts +15 -0
  37. package/dist/src/providers/WispbitViolationValidationProvider.d.ts.map +1 -0
  38. package/dist/src/schemas.d.ts +1771 -0
  39. package/dist/src/schemas.d.ts.map +1 -0
  40. package/dist/src/steps/ExecutionEventEmitter.d.ts +156 -0
  41. package/dist/src/steps/ExecutionEventEmitter.d.ts.map +1 -0
  42. package/dist/src/steps/FileExecutionContext.d.ts +85 -0
  43. package/dist/src/steps/FileExecutionContext.d.ts.map +1 -0
  44. package/dist/src/steps/FileFilterStep.d.ts +35 -0
  45. package/dist/src/steps/FileFilterStep.d.ts.map +1 -0
  46. package/dist/src/steps/FileFilterStep.test.d.ts +2 -0
  47. package/dist/src/steps/FileFilterStep.test.d.ts.map +1 -0
  48. package/dist/src/steps/FindMatchesStep.d.ts +41 -0
  49. package/dist/src/steps/FindMatchesStep.d.ts.map +1 -0
  50. package/dist/src/steps/FindMatchesStep.test.d.ts +2 -0
  51. package/dist/src/steps/FindMatchesStep.test.d.ts.map +1 -0
  52. package/dist/src/steps/GotoDefinitionStep.d.ts +86 -0
  53. package/dist/src/steps/GotoDefinitionStep.d.ts.map +1 -0
  54. package/dist/src/steps/LLMStep.d.ts +50 -0
  55. package/dist/src/steps/LLMStep.d.ts.map +1 -0
  56. package/dist/src/steps/RuleExecutor.d.ts +35 -0
  57. package/dist/src/steps/RuleExecutor.d.ts.map +1 -0
  58. package/dist/src/steps/RuleExecutor.test.d.ts +2 -0
  59. package/dist/src/steps/RuleExecutor.test.d.ts.map +1 -0
  60. package/dist/src/test/TestExecutor.d.ts +33 -0
  61. package/dist/src/test/TestExecutor.d.ts.map +1 -0
  62. package/dist/src/test/rules.test.d.ts +2 -0
  63. package/dist/src/test/rules.test.d.ts.map +1 -0
  64. package/dist/src/types.d.ts +200 -0
  65. package/dist/src/types.d.ts.map +1 -0
  66. package/dist/src/utils/asciiFrames.d.ts +5 -0
  67. package/dist/src/utils/asciiFrames.d.ts.map +1 -0
  68. package/dist/src/utils/formatters.d.ts +55 -0
  69. package/dist/src/utils/formatters.d.ts.map +1 -0
  70. package/dist/src/utils/generateTreeDump.d.ts +19 -0
  71. package/dist/src/utils/generateTreeDump.d.ts.map +1 -0
  72. package/dist/src/utils/git.d.ts +39 -0
  73. package/dist/src/utils/git.d.ts.map +1 -0
  74. package/dist/src/utils/hashString.d.ts +2 -0
  75. package/dist/src/utils/hashString.d.ts.map +1 -0
  76. package/dist/src/utils/readTextAtRange.d.ts +10 -0
  77. package/dist/src/utils/readTextAtRange.d.ts.map +1 -0
  78. package/dist/src/utils/snapshotComparison.d.ts +16 -0
  79. package/dist/src/utils/snapshotComparison.d.ts.map +1 -0
  80. package/dist/src/utils/startupScreen.d.ts +5 -0
  81. package/dist/src/utils/startupScreen.d.ts.map +1 -0
  82. package/dist/src/utils/validateRule.d.ts +16 -0
  83. package/dist/src/utils/validateRule.d.ts.map +1 -0
  84. package/dist/src/version.d.ts +3 -0
  85. package/dist/src/version.d.ts.map +1 -0
  86. package/dist/tsconfig.tsbuildinfo +1 -0
  87. package/dist/vitest.config.d.mts +3 -0
  88. package/dist/vitest.config.d.mts.map +1 -0
  89. package/package.json +90 -0
@@ -0,0 +1,1771 @@
1
+ import { z } from "zod";
2
+ import { Language } from "powerlint/languages";
3
+ export declare const RangePositionSchema: z.ZodObject<{
4
+ line: z.ZodNumber;
5
+ column: z.ZodOptional<z.ZodNumber>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ line: number;
8
+ column?: number | undefined;
9
+ }, {
10
+ line: number;
11
+ column?: number | undefined;
12
+ }>;
13
+ export declare const RangeObjectSchema: z.ZodObject<{
14
+ start: z.ZodObject<{
15
+ line: z.ZodNumber;
16
+ column: z.ZodOptional<z.ZodNumber>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ line: number;
19
+ column?: number | undefined;
20
+ }, {
21
+ line: number;
22
+ column?: number | undefined;
23
+ }>;
24
+ end: z.ZodObject<{
25
+ line: z.ZodNumber;
26
+ column: z.ZodOptional<z.ZodNumber>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ line: number;
29
+ column?: number | undefined;
30
+ }, {
31
+ line: number;
32
+ column?: number | undefined;
33
+ }>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ end: {
36
+ line: number;
37
+ column?: number | undefined;
38
+ };
39
+ start: {
40
+ line: number;
41
+ column?: number | undefined;
42
+ };
43
+ }, {
44
+ end: {
45
+ line: number;
46
+ column?: number | undefined;
47
+ };
48
+ start: {
49
+ line: number;
50
+ column?: number | undefined;
51
+ };
52
+ }>;
53
+ export declare const PatternObjectSchema: z.ZodObject<{
54
+ selector: z.ZodOptional<z.ZodString>;
55
+ context: z.ZodOptional<z.ZodString>;
56
+ strictness: z.ZodOptional<z.ZodEnum<["cst", "smart", "ast", "relaxed", "signature"]>>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ selector?: string | undefined;
59
+ context?: string | undefined;
60
+ strictness?: "cst" | "smart" | "ast" | "relaxed" | "signature" | undefined;
61
+ }, {
62
+ selector?: string | undefined;
63
+ context?: string | undefined;
64
+ strictness?: "cst" | "smart" | "ast" | "relaxed" | "signature" | undefined;
65
+ }>;
66
+ export declare const NthChildSchema: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodObject<{
67
+ position: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
68
+ reverse: z.ZodOptional<z.ZodBoolean>;
69
+ ofRule: z.ZodOptional<z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ position: string | number;
72
+ reverse?: boolean | undefined;
73
+ ofRule?: any;
74
+ }, {
75
+ position: string | number;
76
+ reverse?: boolean | undefined;
77
+ ofRule?: any;
78
+ }>]>;
79
+ export declare const AstGrepRuleSchema: z.ZodType<any>;
80
+ export declare const FactPredicateSchema: z.ZodObject<{
81
+ fact: z.ZodEnum<["fs.siblingAny", "fs.siblingExists", "fs.pathMatches", "fs.ancestorHas"]>;
82
+ args: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
83
+ equals: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ equals: boolean;
86
+ fact: "fs.siblingAny" | "fs.siblingExists" | "fs.pathMatches" | "fs.ancestorHas";
87
+ args?: string | number | boolean | unknown[] | Record<string, unknown> | null | undefined;
88
+ }, {
89
+ fact: "fs.siblingAny" | "fs.siblingExists" | "fs.pathMatches" | "fs.ancestorHas";
90
+ equals?: boolean | undefined;
91
+ args?: string | number | boolean | unknown[] | Record<string, unknown> | null | undefined;
92
+ }>;
93
+ export declare const WhereExprSchema: z.ZodType<any>;
94
+ export declare const FileFilterConditionSchema: z.ZodUnion<[z.ZodObject<{
95
+ "fs.siblingExists": z.ZodObject<{
96
+ filename: z.ZodString;
97
+ }, "strip", z.ZodTypeAny, {
98
+ filename: string;
99
+ }, {
100
+ filename: string;
101
+ }>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ "fs.siblingExists": {
104
+ filename: string;
105
+ };
106
+ }, {
107
+ "fs.siblingExists": {
108
+ filename: string;
109
+ };
110
+ }>, z.ZodObject<{
111
+ "fs.pathMatches": z.ZodObject<{
112
+ pattern: z.ZodString;
113
+ }, "strip", z.ZodTypeAny, {
114
+ pattern: string;
115
+ }, {
116
+ pattern: string;
117
+ }>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ "fs.pathMatches": {
120
+ pattern: string;
121
+ };
122
+ }, {
123
+ "fs.pathMatches": {
124
+ pattern: string;
125
+ };
126
+ }>, z.ZodObject<{
127
+ "fs.ancestorHas": z.ZodObject<{
128
+ filename: z.ZodString;
129
+ }, "strip", z.ZodTypeAny, {
130
+ filename: string;
131
+ }, {
132
+ filename: string;
133
+ }>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ "fs.ancestorHas": {
136
+ filename: string;
137
+ };
138
+ }, {
139
+ "fs.ancestorHas": {
140
+ filename: string;
141
+ };
142
+ }>, z.ZodObject<{
143
+ "fs.siblingAny": z.ZodObject<{
144
+ pattern: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ pattern: string;
147
+ }, {
148
+ pattern: string;
149
+ }>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ "fs.siblingAny": {
152
+ pattern: string;
153
+ };
154
+ }, {
155
+ "fs.siblingAny": {
156
+ pattern: string;
157
+ };
158
+ }>]>;
159
+ export declare const FileFilterConditionsSchema: z.ZodObject<{
160
+ all: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
161
+ "fs.siblingExists": z.ZodObject<{
162
+ filename: z.ZodString;
163
+ }, "strip", z.ZodTypeAny, {
164
+ filename: string;
165
+ }, {
166
+ filename: string;
167
+ }>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ "fs.siblingExists": {
170
+ filename: string;
171
+ };
172
+ }, {
173
+ "fs.siblingExists": {
174
+ filename: string;
175
+ };
176
+ }>, z.ZodObject<{
177
+ "fs.pathMatches": z.ZodObject<{
178
+ pattern: z.ZodString;
179
+ }, "strip", z.ZodTypeAny, {
180
+ pattern: string;
181
+ }, {
182
+ pattern: string;
183
+ }>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ "fs.pathMatches": {
186
+ pattern: string;
187
+ };
188
+ }, {
189
+ "fs.pathMatches": {
190
+ pattern: string;
191
+ };
192
+ }>, z.ZodObject<{
193
+ "fs.ancestorHas": z.ZodObject<{
194
+ filename: z.ZodString;
195
+ }, "strip", z.ZodTypeAny, {
196
+ filename: string;
197
+ }, {
198
+ filename: string;
199
+ }>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ "fs.ancestorHas": {
202
+ filename: string;
203
+ };
204
+ }, {
205
+ "fs.ancestorHas": {
206
+ filename: string;
207
+ };
208
+ }>, z.ZodObject<{
209
+ "fs.siblingAny": z.ZodObject<{
210
+ pattern: z.ZodString;
211
+ }, "strip", z.ZodTypeAny, {
212
+ pattern: string;
213
+ }, {
214
+ pattern: string;
215
+ }>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ "fs.siblingAny": {
218
+ pattern: string;
219
+ };
220
+ }, {
221
+ "fs.siblingAny": {
222
+ pattern: string;
223
+ };
224
+ }>]>, "many">>;
225
+ any: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
226
+ "fs.siblingExists": z.ZodObject<{
227
+ filename: z.ZodString;
228
+ }, "strip", z.ZodTypeAny, {
229
+ filename: string;
230
+ }, {
231
+ filename: string;
232
+ }>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ "fs.siblingExists": {
235
+ filename: string;
236
+ };
237
+ }, {
238
+ "fs.siblingExists": {
239
+ filename: string;
240
+ };
241
+ }>, z.ZodObject<{
242
+ "fs.pathMatches": z.ZodObject<{
243
+ pattern: z.ZodString;
244
+ }, "strip", z.ZodTypeAny, {
245
+ pattern: string;
246
+ }, {
247
+ pattern: string;
248
+ }>;
249
+ }, "strip", z.ZodTypeAny, {
250
+ "fs.pathMatches": {
251
+ pattern: string;
252
+ };
253
+ }, {
254
+ "fs.pathMatches": {
255
+ pattern: string;
256
+ };
257
+ }>, z.ZodObject<{
258
+ "fs.ancestorHas": z.ZodObject<{
259
+ filename: z.ZodString;
260
+ }, "strip", z.ZodTypeAny, {
261
+ filename: string;
262
+ }, {
263
+ filename: string;
264
+ }>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ "fs.ancestorHas": {
267
+ filename: string;
268
+ };
269
+ }, {
270
+ "fs.ancestorHas": {
271
+ filename: string;
272
+ };
273
+ }>, z.ZodObject<{
274
+ "fs.siblingAny": z.ZodObject<{
275
+ pattern: z.ZodString;
276
+ }, "strip", z.ZodTypeAny, {
277
+ pattern: string;
278
+ }, {
279
+ pattern: string;
280
+ }>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ "fs.siblingAny": {
283
+ pattern: string;
284
+ };
285
+ }, {
286
+ "fs.siblingAny": {
287
+ pattern: string;
288
+ };
289
+ }>]>, "many">>;
290
+ not: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
291
+ "fs.siblingExists": z.ZodObject<{
292
+ filename: z.ZodString;
293
+ }, "strip", z.ZodTypeAny, {
294
+ filename: string;
295
+ }, {
296
+ filename: string;
297
+ }>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ "fs.siblingExists": {
300
+ filename: string;
301
+ };
302
+ }, {
303
+ "fs.siblingExists": {
304
+ filename: string;
305
+ };
306
+ }>, z.ZodObject<{
307
+ "fs.pathMatches": z.ZodObject<{
308
+ pattern: z.ZodString;
309
+ }, "strip", z.ZodTypeAny, {
310
+ pattern: string;
311
+ }, {
312
+ pattern: string;
313
+ }>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ "fs.pathMatches": {
316
+ pattern: string;
317
+ };
318
+ }, {
319
+ "fs.pathMatches": {
320
+ pattern: string;
321
+ };
322
+ }>, z.ZodObject<{
323
+ "fs.ancestorHas": z.ZodObject<{
324
+ filename: z.ZodString;
325
+ }, "strip", z.ZodTypeAny, {
326
+ filename: string;
327
+ }, {
328
+ filename: string;
329
+ }>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ "fs.ancestorHas": {
332
+ filename: string;
333
+ };
334
+ }, {
335
+ "fs.ancestorHas": {
336
+ filename: string;
337
+ };
338
+ }>, z.ZodObject<{
339
+ "fs.siblingAny": z.ZodObject<{
340
+ pattern: z.ZodString;
341
+ }, "strip", z.ZodTypeAny, {
342
+ pattern: string;
343
+ }, {
344
+ pattern: string;
345
+ }>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ "fs.siblingAny": {
348
+ pattern: string;
349
+ };
350
+ }, {
351
+ "fs.siblingAny": {
352
+ pattern: string;
353
+ };
354
+ }>]>, "many">>;
355
+ }, "strip", z.ZodTypeAny, {
356
+ all?: ({
357
+ "fs.siblingExists": {
358
+ filename: string;
359
+ };
360
+ } | {
361
+ "fs.pathMatches": {
362
+ pattern: string;
363
+ };
364
+ } | {
365
+ "fs.ancestorHas": {
366
+ filename: string;
367
+ };
368
+ } | {
369
+ "fs.siblingAny": {
370
+ pattern: string;
371
+ };
372
+ })[] | undefined;
373
+ any?: ({
374
+ "fs.siblingExists": {
375
+ filename: string;
376
+ };
377
+ } | {
378
+ "fs.pathMatches": {
379
+ pattern: string;
380
+ };
381
+ } | {
382
+ "fs.ancestorHas": {
383
+ filename: string;
384
+ };
385
+ } | {
386
+ "fs.siblingAny": {
387
+ pattern: string;
388
+ };
389
+ })[] | undefined;
390
+ not?: ({
391
+ "fs.siblingExists": {
392
+ filename: string;
393
+ };
394
+ } | {
395
+ "fs.pathMatches": {
396
+ pattern: string;
397
+ };
398
+ } | {
399
+ "fs.ancestorHas": {
400
+ filename: string;
401
+ };
402
+ } | {
403
+ "fs.siblingAny": {
404
+ pattern: string;
405
+ };
406
+ })[] | undefined;
407
+ }, {
408
+ all?: ({
409
+ "fs.siblingExists": {
410
+ filename: string;
411
+ };
412
+ } | {
413
+ "fs.pathMatches": {
414
+ pattern: string;
415
+ };
416
+ } | {
417
+ "fs.ancestorHas": {
418
+ filename: string;
419
+ };
420
+ } | {
421
+ "fs.siblingAny": {
422
+ pattern: string;
423
+ };
424
+ })[] | undefined;
425
+ any?: ({
426
+ "fs.siblingExists": {
427
+ filename: string;
428
+ };
429
+ } | {
430
+ "fs.pathMatches": {
431
+ pattern: string;
432
+ };
433
+ } | {
434
+ "fs.ancestorHas": {
435
+ filename: string;
436
+ };
437
+ } | {
438
+ "fs.siblingAny": {
439
+ pattern: string;
440
+ };
441
+ })[] | undefined;
442
+ not?: ({
443
+ "fs.siblingExists": {
444
+ filename: string;
445
+ };
446
+ } | {
447
+ "fs.pathMatches": {
448
+ pattern: string;
449
+ };
450
+ } | {
451
+ "fs.ancestorHas": {
452
+ filename: string;
453
+ };
454
+ } | {
455
+ "fs.siblingAny": {
456
+ pattern: string;
457
+ };
458
+ })[] | undefined;
459
+ }>;
460
+ export declare const AstGrepStepSchema: z.ZodObject<{
461
+ type: z.ZodLiteral<"ast-grep">;
462
+ language: z.ZodNativeEnum<typeof Language>;
463
+ rule: z.ZodType<any, z.ZodTypeDef, any>;
464
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<any, z.ZodTypeDef, any>>>;
465
+ }, "strict", z.ZodTypeAny, {
466
+ language: Language;
467
+ type: "ast-grep";
468
+ rule?: any;
469
+ constraints?: Record<string, any> | undefined;
470
+ }, {
471
+ language: Language;
472
+ type: "ast-grep";
473
+ rule?: any;
474
+ constraints?: Record<string, any> | undefined;
475
+ }>;
476
+ export declare const FileFilterStepSchema: z.ZodObject<{
477
+ type: z.ZodLiteral<"file-filter">;
478
+ include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
479
+ ignore: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
480
+ conditions: z.ZodOptional<z.ZodObject<{
481
+ all: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
482
+ "fs.siblingExists": z.ZodObject<{
483
+ filename: z.ZodString;
484
+ }, "strip", z.ZodTypeAny, {
485
+ filename: string;
486
+ }, {
487
+ filename: string;
488
+ }>;
489
+ }, "strip", z.ZodTypeAny, {
490
+ "fs.siblingExists": {
491
+ filename: string;
492
+ };
493
+ }, {
494
+ "fs.siblingExists": {
495
+ filename: string;
496
+ };
497
+ }>, z.ZodObject<{
498
+ "fs.pathMatches": z.ZodObject<{
499
+ pattern: z.ZodString;
500
+ }, "strip", z.ZodTypeAny, {
501
+ pattern: string;
502
+ }, {
503
+ pattern: string;
504
+ }>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ "fs.pathMatches": {
507
+ pattern: string;
508
+ };
509
+ }, {
510
+ "fs.pathMatches": {
511
+ pattern: string;
512
+ };
513
+ }>, z.ZodObject<{
514
+ "fs.ancestorHas": z.ZodObject<{
515
+ filename: z.ZodString;
516
+ }, "strip", z.ZodTypeAny, {
517
+ filename: string;
518
+ }, {
519
+ filename: string;
520
+ }>;
521
+ }, "strip", z.ZodTypeAny, {
522
+ "fs.ancestorHas": {
523
+ filename: string;
524
+ };
525
+ }, {
526
+ "fs.ancestorHas": {
527
+ filename: string;
528
+ };
529
+ }>, z.ZodObject<{
530
+ "fs.siblingAny": z.ZodObject<{
531
+ pattern: z.ZodString;
532
+ }, "strip", z.ZodTypeAny, {
533
+ pattern: string;
534
+ }, {
535
+ pattern: string;
536
+ }>;
537
+ }, "strip", z.ZodTypeAny, {
538
+ "fs.siblingAny": {
539
+ pattern: string;
540
+ };
541
+ }, {
542
+ "fs.siblingAny": {
543
+ pattern: string;
544
+ };
545
+ }>]>, "many">>;
546
+ any: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
547
+ "fs.siblingExists": z.ZodObject<{
548
+ filename: z.ZodString;
549
+ }, "strip", z.ZodTypeAny, {
550
+ filename: string;
551
+ }, {
552
+ filename: string;
553
+ }>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ "fs.siblingExists": {
556
+ filename: string;
557
+ };
558
+ }, {
559
+ "fs.siblingExists": {
560
+ filename: string;
561
+ };
562
+ }>, z.ZodObject<{
563
+ "fs.pathMatches": z.ZodObject<{
564
+ pattern: z.ZodString;
565
+ }, "strip", z.ZodTypeAny, {
566
+ pattern: string;
567
+ }, {
568
+ pattern: string;
569
+ }>;
570
+ }, "strip", z.ZodTypeAny, {
571
+ "fs.pathMatches": {
572
+ pattern: string;
573
+ };
574
+ }, {
575
+ "fs.pathMatches": {
576
+ pattern: string;
577
+ };
578
+ }>, z.ZodObject<{
579
+ "fs.ancestorHas": z.ZodObject<{
580
+ filename: z.ZodString;
581
+ }, "strip", z.ZodTypeAny, {
582
+ filename: string;
583
+ }, {
584
+ filename: string;
585
+ }>;
586
+ }, "strip", z.ZodTypeAny, {
587
+ "fs.ancestorHas": {
588
+ filename: string;
589
+ };
590
+ }, {
591
+ "fs.ancestorHas": {
592
+ filename: string;
593
+ };
594
+ }>, z.ZodObject<{
595
+ "fs.siblingAny": z.ZodObject<{
596
+ pattern: z.ZodString;
597
+ }, "strip", z.ZodTypeAny, {
598
+ pattern: string;
599
+ }, {
600
+ pattern: string;
601
+ }>;
602
+ }, "strip", z.ZodTypeAny, {
603
+ "fs.siblingAny": {
604
+ pattern: string;
605
+ };
606
+ }, {
607
+ "fs.siblingAny": {
608
+ pattern: string;
609
+ };
610
+ }>]>, "many">>;
611
+ not: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
612
+ "fs.siblingExists": z.ZodObject<{
613
+ filename: z.ZodString;
614
+ }, "strip", z.ZodTypeAny, {
615
+ filename: string;
616
+ }, {
617
+ filename: string;
618
+ }>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ "fs.siblingExists": {
621
+ filename: string;
622
+ };
623
+ }, {
624
+ "fs.siblingExists": {
625
+ filename: string;
626
+ };
627
+ }>, z.ZodObject<{
628
+ "fs.pathMatches": z.ZodObject<{
629
+ pattern: z.ZodString;
630
+ }, "strip", z.ZodTypeAny, {
631
+ pattern: string;
632
+ }, {
633
+ pattern: string;
634
+ }>;
635
+ }, "strip", z.ZodTypeAny, {
636
+ "fs.pathMatches": {
637
+ pattern: string;
638
+ };
639
+ }, {
640
+ "fs.pathMatches": {
641
+ pattern: string;
642
+ };
643
+ }>, z.ZodObject<{
644
+ "fs.ancestorHas": z.ZodObject<{
645
+ filename: z.ZodString;
646
+ }, "strip", z.ZodTypeAny, {
647
+ filename: string;
648
+ }, {
649
+ filename: string;
650
+ }>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ "fs.ancestorHas": {
653
+ filename: string;
654
+ };
655
+ }, {
656
+ "fs.ancestorHas": {
657
+ filename: string;
658
+ };
659
+ }>, z.ZodObject<{
660
+ "fs.siblingAny": z.ZodObject<{
661
+ pattern: z.ZodString;
662
+ }, "strip", z.ZodTypeAny, {
663
+ pattern: string;
664
+ }, {
665
+ pattern: string;
666
+ }>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ "fs.siblingAny": {
669
+ pattern: string;
670
+ };
671
+ }, {
672
+ "fs.siblingAny": {
673
+ pattern: string;
674
+ };
675
+ }>]>, "many">>;
676
+ }, "strip", z.ZodTypeAny, {
677
+ all?: ({
678
+ "fs.siblingExists": {
679
+ filename: string;
680
+ };
681
+ } | {
682
+ "fs.pathMatches": {
683
+ pattern: string;
684
+ };
685
+ } | {
686
+ "fs.ancestorHas": {
687
+ filename: string;
688
+ };
689
+ } | {
690
+ "fs.siblingAny": {
691
+ pattern: string;
692
+ };
693
+ })[] | undefined;
694
+ any?: ({
695
+ "fs.siblingExists": {
696
+ filename: string;
697
+ };
698
+ } | {
699
+ "fs.pathMatches": {
700
+ pattern: string;
701
+ };
702
+ } | {
703
+ "fs.ancestorHas": {
704
+ filename: string;
705
+ };
706
+ } | {
707
+ "fs.siblingAny": {
708
+ pattern: string;
709
+ };
710
+ })[] | undefined;
711
+ not?: ({
712
+ "fs.siblingExists": {
713
+ filename: string;
714
+ };
715
+ } | {
716
+ "fs.pathMatches": {
717
+ pattern: string;
718
+ };
719
+ } | {
720
+ "fs.ancestorHas": {
721
+ filename: string;
722
+ };
723
+ } | {
724
+ "fs.siblingAny": {
725
+ pattern: string;
726
+ };
727
+ })[] | undefined;
728
+ }, {
729
+ all?: ({
730
+ "fs.siblingExists": {
731
+ filename: string;
732
+ };
733
+ } | {
734
+ "fs.pathMatches": {
735
+ pattern: string;
736
+ };
737
+ } | {
738
+ "fs.ancestorHas": {
739
+ filename: string;
740
+ };
741
+ } | {
742
+ "fs.siblingAny": {
743
+ pattern: string;
744
+ };
745
+ })[] | undefined;
746
+ any?: ({
747
+ "fs.siblingExists": {
748
+ filename: string;
749
+ };
750
+ } | {
751
+ "fs.pathMatches": {
752
+ pattern: string;
753
+ };
754
+ } | {
755
+ "fs.ancestorHas": {
756
+ filename: string;
757
+ };
758
+ } | {
759
+ "fs.siblingAny": {
760
+ pattern: string;
761
+ };
762
+ })[] | undefined;
763
+ not?: ({
764
+ "fs.siblingExists": {
765
+ filename: string;
766
+ };
767
+ } | {
768
+ "fs.pathMatches": {
769
+ pattern: string;
770
+ };
771
+ } | {
772
+ "fs.ancestorHas": {
773
+ filename: string;
774
+ };
775
+ } | {
776
+ "fs.siblingAny": {
777
+ pattern: string;
778
+ };
779
+ })[] | undefined;
780
+ }>>;
781
+ }, "strict", z.ZodTypeAny, {
782
+ type: "file-filter";
783
+ ignore?: string[] | undefined;
784
+ include?: string[] | undefined;
785
+ conditions?: {
786
+ all?: ({
787
+ "fs.siblingExists": {
788
+ filename: string;
789
+ };
790
+ } | {
791
+ "fs.pathMatches": {
792
+ pattern: string;
793
+ };
794
+ } | {
795
+ "fs.ancestorHas": {
796
+ filename: string;
797
+ };
798
+ } | {
799
+ "fs.siblingAny": {
800
+ pattern: string;
801
+ };
802
+ })[] | undefined;
803
+ any?: ({
804
+ "fs.siblingExists": {
805
+ filename: string;
806
+ };
807
+ } | {
808
+ "fs.pathMatches": {
809
+ pattern: string;
810
+ };
811
+ } | {
812
+ "fs.ancestorHas": {
813
+ filename: string;
814
+ };
815
+ } | {
816
+ "fs.siblingAny": {
817
+ pattern: string;
818
+ };
819
+ })[] | undefined;
820
+ not?: ({
821
+ "fs.siblingExists": {
822
+ filename: string;
823
+ };
824
+ } | {
825
+ "fs.pathMatches": {
826
+ pattern: string;
827
+ };
828
+ } | {
829
+ "fs.ancestorHas": {
830
+ filename: string;
831
+ };
832
+ } | {
833
+ "fs.siblingAny": {
834
+ pattern: string;
835
+ };
836
+ })[] | undefined;
837
+ } | undefined;
838
+ }, {
839
+ type: "file-filter";
840
+ ignore?: string[] | undefined;
841
+ include?: string[] | undefined;
842
+ conditions?: {
843
+ all?: ({
844
+ "fs.siblingExists": {
845
+ filename: string;
846
+ };
847
+ } | {
848
+ "fs.pathMatches": {
849
+ pattern: string;
850
+ };
851
+ } | {
852
+ "fs.ancestorHas": {
853
+ filename: string;
854
+ };
855
+ } | {
856
+ "fs.siblingAny": {
857
+ pattern: string;
858
+ };
859
+ })[] | undefined;
860
+ any?: ({
861
+ "fs.siblingExists": {
862
+ filename: string;
863
+ };
864
+ } | {
865
+ "fs.pathMatches": {
866
+ pattern: string;
867
+ };
868
+ } | {
869
+ "fs.ancestorHas": {
870
+ filename: string;
871
+ };
872
+ } | {
873
+ "fs.siblingAny": {
874
+ pattern: string;
875
+ };
876
+ })[] | undefined;
877
+ not?: ({
878
+ "fs.siblingExists": {
879
+ filename: string;
880
+ };
881
+ } | {
882
+ "fs.pathMatches": {
883
+ pattern: string;
884
+ };
885
+ } | {
886
+ "fs.ancestorHas": {
887
+ filename: string;
888
+ };
889
+ } | {
890
+ "fs.siblingAny": {
891
+ pattern: string;
892
+ };
893
+ })[] | undefined;
894
+ } | undefined;
895
+ }>;
896
+ export declare const LLMStepSchema: z.ZodObject<{
897
+ type: z.ZodLiteral<"llm">;
898
+ }, "strict", z.ZodTypeAny, {
899
+ type: "llm";
900
+ }, {
901
+ type: "llm";
902
+ }>;
903
+ export declare const GotoDefinitionStepSchema: z.ZodLazy<z.ZodObject<{
904
+ type: z.ZodLiteral<"goto-definition">;
905
+ language: z.ZodNativeEnum<typeof Language>;
906
+ where: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
907
+ }, "strict", z.ZodTypeAny, {
908
+ language: Language;
909
+ type: "goto-definition";
910
+ where?: any;
911
+ }, {
912
+ language: Language;
913
+ type: "goto-definition";
914
+ where?: any;
915
+ }>>;
916
+ export declare const StepGroupStepSchema: z.ZodLazy<z.ZodObject<{
917
+ type: z.ZodLiteral<"step-group">;
918
+ steps: z.ZodArray<z.ZodUnion<[z.ZodObject<{
919
+ type: z.ZodLiteral<"ast-grep">;
920
+ language: z.ZodNativeEnum<typeof Language>;
921
+ rule: z.ZodType<any, z.ZodTypeDef, any>;
922
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<any, z.ZodTypeDef, any>>>;
923
+ }, "strict", z.ZodTypeAny, {
924
+ language: Language;
925
+ type: "ast-grep";
926
+ rule?: any;
927
+ constraints?: Record<string, any> | undefined;
928
+ }, {
929
+ language: Language;
930
+ type: "ast-grep";
931
+ rule?: any;
932
+ constraints?: Record<string, any> | undefined;
933
+ }>, z.ZodObject<{
934
+ type: z.ZodLiteral<"file-filter">;
935
+ include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
936
+ ignore: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
937
+ conditions: z.ZodOptional<z.ZodObject<{
938
+ all: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
939
+ "fs.siblingExists": z.ZodObject<{
940
+ filename: z.ZodString;
941
+ }, "strip", z.ZodTypeAny, {
942
+ filename: string;
943
+ }, {
944
+ filename: string;
945
+ }>;
946
+ }, "strip", z.ZodTypeAny, {
947
+ "fs.siblingExists": {
948
+ filename: string;
949
+ };
950
+ }, {
951
+ "fs.siblingExists": {
952
+ filename: string;
953
+ };
954
+ }>, z.ZodObject<{
955
+ "fs.pathMatches": z.ZodObject<{
956
+ pattern: z.ZodString;
957
+ }, "strip", z.ZodTypeAny, {
958
+ pattern: string;
959
+ }, {
960
+ pattern: string;
961
+ }>;
962
+ }, "strip", z.ZodTypeAny, {
963
+ "fs.pathMatches": {
964
+ pattern: string;
965
+ };
966
+ }, {
967
+ "fs.pathMatches": {
968
+ pattern: string;
969
+ };
970
+ }>, z.ZodObject<{
971
+ "fs.ancestorHas": z.ZodObject<{
972
+ filename: z.ZodString;
973
+ }, "strip", z.ZodTypeAny, {
974
+ filename: string;
975
+ }, {
976
+ filename: string;
977
+ }>;
978
+ }, "strip", z.ZodTypeAny, {
979
+ "fs.ancestorHas": {
980
+ filename: string;
981
+ };
982
+ }, {
983
+ "fs.ancestorHas": {
984
+ filename: string;
985
+ };
986
+ }>, z.ZodObject<{
987
+ "fs.siblingAny": z.ZodObject<{
988
+ pattern: z.ZodString;
989
+ }, "strip", z.ZodTypeAny, {
990
+ pattern: string;
991
+ }, {
992
+ pattern: string;
993
+ }>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ "fs.siblingAny": {
996
+ pattern: string;
997
+ };
998
+ }, {
999
+ "fs.siblingAny": {
1000
+ pattern: string;
1001
+ };
1002
+ }>]>, "many">>;
1003
+ any: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1004
+ "fs.siblingExists": z.ZodObject<{
1005
+ filename: z.ZodString;
1006
+ }, "strip", z.ZodTypeAny, {
1007
+ filename: string;
1008
+ }, {
1009
+ filename: string;
1010
+ }>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ "fs.siblingExists": {
1013
+ filename: string;
1014
+ };
1015
+ }, {
1016
+ "fs.siblingExists": {
1017
+ filename: string;
1018
+ };
1019
+ }>, z.ZodObject<{
1020
+ "fs.pathMatches": z.ZodObject<{
1021
+ pattern: z.ZodString;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ pattern: string;
1024
+ }, {
1025
+ pattern: string;
1026
+ }>;
1027
+ }, "strip", z.ZodTypeAny, {
1028
+ "fs.pathMatches": {
1029
+ pattern: string;
1030
+ };
1031
+ }, {
1032
+ "fs.pathMatches": {
1033
+ pattern: string;
1034
+ };
1035
+ }>, z.ZodObject<{
1036
+ "fs.ancestorHas": z.ZodObject<{
1037
+ filename: z.ZodString;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ filename: string;
1040
+ }, {
1041
+ filename: string;
1042
+ }>;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ "fs.ancestorHas": {
1045
+ filename: string;
1046
+ };
1047
+ }, {
1048
+ "fs.ancestorHas": {
1049
+ filename: string;
1050
+ };
1051
+ }>, z.ZodObject<{
1052
+ "fs.siblingAny": z.ZodObject<{
1053
+ pattern: z.ZodString;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ pattern: string;
1056
+ }, {
1057
+ pattern: string;
1058
+ }>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ "fs.siblingAny": {
1061
+ pattern: string;
1062
+ };
1063
+ }, {
1064
+ "fs.siblingAny": {
1065
+ pattern: string;
1066
+ };
1067
+ }>]>, "many">>;
1068
+ not: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1069
+ "fs.siblingExists": z.ZodObject<{
1070
+ filename: z.ZodString;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ filename: string;
1073
+ }, {
1074
+ filename: string;
1075
+ }>;
1076
+ }, "strip", z.ZodTypeAny, {
1077
+ "fs.siblingExists": {
1078
+ filename: string;
1079
+ };
1080
+ }, {
1081
+ "fs.siblingExists": {
1082
+ filename: string;
1083
+ };
1084
+ }>, z.ZodObject<{
1085
+ "fs.pathMatches": z.ZodObject<{
1086
+ pattern: z.ZodString;
1087
+ }, "strip", z.ZodTypeAny, {
1088
+ pattern: string;
1089
+ }, {
1090
+ pattern: string;
1091
+ }>;
1092
+ }, "strip", z.ZodTypeAny, {
1093
+ "fs.pathMatches": {
1094
+ pattern: string;
1095
+ };
1096
+ }, {
1097
+ "fs.pathMatches": {
1098
+ pattern: string;
1099
+ };
1100
+ }>, z.ZodObject<{
1101
+ "fs.ancestorHas": z.ZodObject<{
1102
+ filename: z.ZodString;
1103
+ }, "strip", z.ZodTypeAny, {
1104
+ filename: string;
1105
+ }, {
1106
+ filename: string;
1107
+ }>;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ "fs.ancestorHas": {
1110
+ filename: string;
1111
+ };
1112
+ }, {
1113
+ "fs.ancestorHas": {
1114
+ filename: string;
1115
+ };
1116
+ }>, z.ZodObject<{
1117
+ "fs.siblingAny": z.ZodObject<{
1118
+ pattern: z.ZodString;
1119
+ }, "strip", z.ZodTypeAny, {
1120
+ pattern: string;
1121
+ }, {
1122
+ pattern: string;
1123
+ }>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ "fs.siblingAny": {
1126
+ pattern: string;
1127
+ };
1128
+ }, {
1129
+ "fs.siblingAny": {
1130
+ pattern: string;
1131
+ };
1132
+ }>]>, "many">>;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ all?: ({
1135
+ "fs.siblingExists": {
1136
+ filename: string;
1137
+ };
1138
+ } | {
1139
+ "fs.pathMatches": {
1140
+ pattern: string;
1141
+ };
1142
+ } | {
1143
+ "fs.ancestorHas": {
1144
+ filename: string;
1145
+ };
1146
+ } | {
1147
+ "fs.siblingAny": {
1148
+ pattern: string;
1149
+ };
1150
+ })[] | undefined;
1151
+ any?: ({
1152
+ "fs.siblingExists": {
1153
+ filename: string;
1154
+ };
1155
+ } | {
1156
+ "fs.pathMatches": {
1157
+ pattern: string;
1158
+ };
1159
+ } | {
1160
+ "fs.ancestorHas": {
1161
+ filename: string;
1162
+ };
1163
+ } | {
1164
+ "fs.siblingAny": {
1165
+ pattern: string;
1166
+ };
1167
+ })[] | undefined;
1168
+ not?: ({
1169
+ "fs.siblingExists": {
1170
+ filename: string;
1171
+ };
1172
+ } | {
1173
+ "fs.pathMatches": {
1174
+ pattern: string;
1175
+ };
1176
+ } | {
1177
+ "fs.ancestorHas": {
1178
+ filename: string;
1179
+ };
1180
+ } | {
1181
+ "fs.siblingAny": {
1182
+ pattern: string;
1183
+ };
1184
+ })[] | undefined;
1185
+ }, {
1186
+ all?: ({
1187
+ "fs.siblingExists": {
1188
+ filename: string;
1189
+ };
1190
+ } | {
1191
+ "fs.pathMatches": {
1192
+ pattern: string;
1193
+ };
1194
+ } | {
1195
+ "fs.ancestorHas": {
1196
+ filename: string;
1197
+ };
1198
+ } | {
1199
+ "fs.siblingAny": {
1200
+ pattern: string;
1201
+ };
1202
+ })[] | undefined;
1203
+ any?: ({
1204
+ "fs.siblingExists": {
1205
+ filename: string;
1206
+ };
1207
+ } | {
1208
+ "fs.pathMatches": {
1209
+ pattern: string;
1210
+ };
1211
+ } | {
1212
+ "fs.ancestorHas": {
1213
+ filename: string;
1214
+ };
1215
+ } | {
1216
+ "fs.siblingAny": {
1217
+ pattern: string;
1218
+ };
1219
+ })[] | undefined;
1220
+ not?: ({
1221
+ "fs.siblingExists": {
1222
+ filename: string;
1223
+ };
1224
+ } | {
1225
+ "fs.pathMatches": {
1226
+ pattern: string;
1227
+ };
1228
+ } | {
1229
+ "fs.ancestorHas": {
1230
+ filename: string;
1231
+ };
1232
+ } | {
1233
+ "fs.siblingAny": {
1234
+ pattern: string;
1235
+ };
1236
+ })[] | undefined;
1237
+ }>>;
1238
+ }, "strict", z.ZodTypeAny, {
1239
+ type: "file-filter";
1240
+ ignore?: string[] | undefined;
1241
+ include?: string[] | undefined;
1242
+ conditions?: {
1243
+ all?: ({
1244
+ "fs.siblingExists": {
1245
+ filename: string;
1246
+ };
1247
+ } | {
1248
+ "fs.pathMatches": {
1249
+ pattern: string;
1250
+ };
1251
+ } | {
1252
+ "fs.ancestorHas": {
1253
+ filename: string;
1254
+ };
1255
+ } | {
1256
+ "fs.siblingAny": {
1257
+ pattern: string;
1258
+ };
1259
+ })[] | undefined;
1260
+ any?: ({
1261
+ "fs.siblingExists": {
1262
+ filename: string;
1263
+ };
1264
+ } | {
1265
+ "fs.pathMatches": {
1266
+ pattern: string;
1267
+ };
1268
+ } | {
1269
+ "fs.ancestorHas": {
1270
+ filename: string;
1271
+ };
1272
+ } | {
1273
+ "fs.siblingAny": {
1274
+ pattern: string;
1275
+ };
1276
+ })[] | undefined;
1277
+ not?: ({
1278
+ "fs.siblingExists": {
1279
+ filename: string;
1280
+ };
1281
+ } | {
1282
+ "fs.pathMatches": {
1283
+ pattern: string;
1284
+ };
1285
+ } | {
1286
+ "fs.ancestorHas": {
1287
+ filename: string;
1288
+ };
1289
+ } | {
1290
+ "fs.siblingAny": {
1291
+ pattern: string;
1292
+ };
1293
+ })[] | undefined;
1294
+ } | undefined;
1295
+ }, {
1296
+ type: "file-filter";
1297
+ ignore?: string[] | undefined;
1298
+ include?: string[] | undefined;
1299
+ conditions?: {
1300
+ all?: ({
1301
+ "fs.siblingExists": {
1302
+ filename: string;
1303
+ };
1304
+ } | {
1305
+ "fs.pathMatches": {
1306
+ pattern: string;
1307
+ };
1308
+ } | {
1309
+ "fs.ancestorHas": {
1310
+ filename: string;
1311
+ };
1312
+ } | {
1313
+ "fs.siblingAny": {
1314
+ pattern: string;
1315
+ };
1316
+ })[] | undefined;
1317
+ any?: ({
1318
+ "fs.siblingExists": {
1319
+ filename: string;
1320
+ };
1321
+ } | {
1322
+ "fs.pathMatches": {
1323
+ pattern: string;
1324
+ };
1325
+ } | {
1326
+ "fs.ancestorHas": {
1327
+ filename: string;
1328
+ };
1329
+ } | {
1330
+ "fs.siblingAny": {
1331
+ pattern: string;
1332
+ };
1333
+ })[] | undefined;
1334
+ not?: ({
1335
+ "fs.siblingExists": {
1336
+ filename: string;
1337
+ };
1338
+ } | {
1339
+ "fs.pathMatches": {
1340
+ pattern: string;
1341
+ };
1342
+ } | {
1343
+ "fs.ancestorHas": {
1344
+ filename: string;
1345
+ };
1346
+ } | {
1347
+ "fs.siblingAny": {
1348
+ pattern: string;
1349
+ };
1350
+ })[] | undefined;
1351
+ } | undefined;
1352
+ }>, z.ZodObject<{
1353
+ type: z.ZodLiteral<"llm">;
1354
+ }, "strict", z.ZodTypeAny, {
1355
+ type: "llm";
1356
+ }, {
1357
+ type: "llm";
1358
+ }>, z.ZodLazy<z.ZodObject<{
1359
+ type: z.ZodLiteral<"goto-definition">;
1360
+ language: z.ZodNativeEnum<typeof Language>;
1361
+ where: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1362
+ }, "strict", z.ZodTypeAny, {
1363
+ language: Language;
1364
+ type: "goto-definition";
1365
+ where?: any;
1366
+ }, {
1367
+ language: Language;
1368
+ type: "goto-definition";
1369
+ where?: any;
1370
+ }>>]>, "many">;
1371
+ }, "strict", z.ZodTypeAny, {
1372
+ type: "step-group";
1373
+ steps: ({
1374
+ language: Language;
1375
+ type: "ast-grep";
1376
+ rule?: any;
1377
+ constraints?: Record<string, any> | undefined;
1378
+ } | {
1379
+ type: "file-filter";
1380
+ ignore?: string[] | undefined;
1381
+ include?: string[] | undefined;
1382
+ conditions?: {
1383
+ all?: ({
1384
+ "fs.siblingExists": {
1385
+ filename: string;
1386
+ };
1387
+ } | {
1388
+ "fs.pathMatches": {
1389
+ pattern: string;
1390
+ };
1391
+ } | {
1392
+ "fs.ancestorHas": {
1393
+ filename: string;
1394
+ };
1395
+ } | {
1396
+ "fs.siblingAny": {
1397
+ pattern: string;
1398
+ };
1399
+ })[] | undefined;
1400
+ any?: ({
1401
+ "fs.siblingExists": {
1402
+ filename: string;
1403
+ };
1404
+ } | {
1405
+ "fs.pathMatches": {
1406
+ pattern: string;
1407
+ };
1408
+ } | {
1409
+ "fs.ancestorHas": {
1410
+ filename: string;
1411
+ };
1412
+ } | {
1413
+ "fs.siblingAny": {
1414
+ pattern: string;
1415
+ };
1416
+ })[] | undefined;
1417
+ not?: ({
1418
+ "fs.siblingExists": {
1419
+ filename: string;
1420
+ };
1421
+ } | {
1422
+ "fs.pathMatches": {
1423
+ pattern: string;
1424
+ };
1425
+ } | {
1426
+ "fs.ancestorHas": {
1427
+ filename: string;
1428
+ };
1429
+ } | {
1430
+ "fs.siblingAny": {
1431
+ pattern: string;
1432
+ };
1433
+ })[] | undefined;
1434
+ } | undefined;
1435
+ } | {
1436
+ type: "llm";
1437
+ } | {
1438
+ language: Language;
1439
+ type: "goto-definition";
1440
+ where?: any;
1441
+ })[];
1442
+ }, {
1443
+ type: "step-group";
1444
+ steps: ({
1445
+ language: Language;
1446
+ type: "ast-grep";
1447
+ rule?: any;
1448
+ constraints?: Record<string, any> | undefined;
1449
+ } | {
1450
+ type: "file-filter";
1451
+ ignore?: string[] | undefined;
1452
+ include?: string[] | undefined;
1453
+ conditions?: {
1454
+ all?: ({
1455
+ "fs.siblingExists": {
1456
+ filename: string;
1457
+ };
1458
+ } | {
1459
+ "fs.pathMatches": {
1460
+ pattern: string;
1461
+ };
1462
+ } | {
1463
+ "fs.ancestorHas": {
1464
+ filename: string;
1465
+ };
1466
+ } | {
1467
+ "fs.siblingAny": {
1468
+ pattern: string;
1469
+ };
1470
+ })[] | undefined;
1471
+ any?: ({
1472
+ "fs.siblingExists": {
1473
+ filename: string;
1474
+ };
1475
+ } | {
1476
+ "fs.pathMatches": {
1477
+ pattern: string;
1478
+ };
1479
+ } | {
1480
+ "fs.ancestorHas": {
1481
+ filename: string;
1482
+ };
1483
+ } | {
1484
+ "fs.siblingAny": {
1485
+ pattern: string;
1486
+ };
1487
+ })[] | undefined;
1488
+ not?: ({
1489
+ "fs.siblingExists": {
1490
+ filename: string;
1491
+ };
1492
+ } | {
1493
+ "fs.pathMatches": {
1494
+ pattern: string;
1495
+ };
1496
+ } | {
1497
+ "fs.ancestorHas": {
1498
+ filename: string;
1499
+ };
1500
+ } | {
1501
+ "fs.siblingAny": {
1502
+ pattern: string;
1503
+ };
1504
+ })[] | undefined;
1505
+ } | undefined;
1506
+ } | {
1507
+ type: "llm";
1508
+ } | {
1509
+ language: Language;
1510
+ type: "goto-definition";
1511
+ where?: any;
1512
+ })[];
1513
+ }>>;
1514
+ export declare const RuleStepSchema: z.ZodType<any>;
1515
+ export declare const MatchRangeSchema: z.ZodObject<{
1516
+ start: z.ZodObject<{
1517
+ line: z.ZodNumber;
1518
+ column: z.ZodNumber;
1519
+ }, "strip", z.ZodTypeAny, {
1520
+ line: number;
1521
+ column: number;
1522
+ }, {
1523
+ line: number;
1524
+ column: number;
1525
+ }>;
1526
+ end: z.ZodObject<{
1527
+ line: z.ZodNumber;
1528
+ column: z.ZodNumber;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ line: number;
1531
+ column: number;
1532
+ }, {
1533
+ line: number;
1534
+ column: number;
1535
+ }>;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ end: {
1538
+ line: number;
1539
+ column: number;
1540
+ };
1541
+ start: {
1542
+ line: number;
1543
+ column: number;
1544
+ };
1545
+ }, {
1546
+ end: {
1547
+ line: number;
1548
+ column: number;
1549
+ };
1550
+ start: {
1551
+ line: number;
1552
+ column: number;
1553
+ };
1554
+ }>;
1555
+ export declare const MatchSourceSchema: z.ZodType<any>;
1556
+ export declare const MatchMetadataSchema: z.ZodOptional<z.ZodObject<{
1557
+ fromCache: z.ZodOptional<z.ZodBoolean>;
1558
+ llmValidation: z.ZodOptional<z.ZodObject<{
1559
+ isViolation: z.ZodBoolean;
1560
+ confidence: z.ZodNumber;
1561
+ reason: z.ZodString;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ isViolation: boolean;
1564
+ confidence: number;
1565
+ reason: string;
1566
+ }, {
1567
+ isViolation: boolean;
1568
+ confidence: number;
1569
+ reason: string;
1570
+ }>>;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ fromCache?: boolean | undefined;
1573
+ llmValidation?: {
1574
+ isViolation: boolean;
1575
+ confidence: number;
1576
+ reason: string;
1577
+ } | undefined;
1578
+ }, {
1579
+ fromCache?: boolean | undefined;
1580
+ llmValidation?: {
1581
+ isViolation: boolean;
1582
+ confidence: number;
1583
+ reason: string;
1584
+ } | undefined;
1585
+ }>>;
1586
+ export declare const MatchSchema: z.ZodObject<{
1587
+ filePath: z.ZodString;
1588
+ text: z.ZodOptional<z.ZodString>;
1589
+ range: z.ZodObject<{
1590
+ start: z.ZodObject<{
1591
+ line: z.ZodNumber;
1592
+ column: z.ZodNumber;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ line: number;
1595
+ column: number;
1596
+ }, {
1597
+ line: number;
1598
+ column: number;
1599
+ }>;
1600
+ end: z.ZodObject<{
1601
+ line: z.ZodNumber;
1602
+ column: z.ZodNumber;
1603
+ }, "strip", z.ZodTypeAny, {
1604
+ line: number;
1605
+ column: number;
1606
+ }, {
1607
+ line: number;
1608
+ column: number;
1609
+ }>;
1610
+ }, "strip", z.ZodTypeAny, {
1611
+ end: {
1612
+ line: number;
1613
+ column: number;
1614
+ };
1615
+ start: {
1616
+ line: number;
1617
+ column: number;
1618
+ };
1619
+ }, {
1620
+ end: {
1621
+ line: number;
1622
+ column: number;
1623
+ };
1624
+ start: {
1625
+ line: number;
1626
+ column: number;
1627
+ };
1628
+ }>;
1629
+ symbol: z.ZodOptional<z.ZodString>;
1630
+ language: z.ZodNativeEnum<typeof Language>;
1631
+ source: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
1632
+ metadata: z.ZodOptional<z.ZodObject<{
1633
+ fromCache: z.ZodOptional<z.ZodBoolean>;
1634
+ llmValidation: z.ZodOptional<z.ZodObject<{
1635
+ isViolation: z.ZodBoolean;
1636
+ confidence: z.ZodNumber;
1637
+ reason: z.ZodString;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ isViolation: boolean;
1640
+ confidence: number;
1641
+ reason: string;
1642
+ }, {
1643
+ isViolation: boolean;
1644
+ confidence: number;
1645
+ reason: string;
1646
+ }>>;
1647
+ }, "strip", z.ZodTypeAny, {
1648
+ fromCache?: boolean | undefined;
1649
+ llmValidation?: {
1650
+ isViolation: boolean;
1651
+ confidence: number;
1652
+ reason: string;
1653
+ } | undefined;
1654
+ }, {
1655
+ fromCache?: boolean | undefined;
1656
+ llmValidation?: {
1657
+ isViolation: boolean;
1658
+ confidence: number;
1659
+ reason: string;
1660
+ } | undefined;
1661
+ }>>;
1662
+ }, "strip", z.ZodTypeAny, {
1663
+ language: Language;
1664
+ filePath: string;
1665
+ range: {
1666
+ end: {
1667
+ line: number;
1668
+ column: number;
1669
+ };
1670
+ start: {
1671
+ line: number;
1672
+ column: number;
1673
+ };
1674
+ };
1675
+ symbol?: string | undefined;
1676
+ text?: string | undefined;
1677
+ metadata?: {
1678
+ fromCache?: boolean | undefined;
1679
+ llmValidation?: {
1680
+ isViolation: boolean;
1681
+ confidence: number;
1682
+ reason: string;
1683
+ } | undefined;
1684
+ } | undefined;
1685
+ source?: any[] | undefined;
1686
+ }, {
1687
+ language: Language;
1688
+ filePath: string;
1689
+ range: {
1690
+ end: {
1691
+ line: number;
1692
+ column: number;
1693
+ };
1694
+ start: {
1695
+ line: number;
1696
+ column: number;
1697
+ };
1698
+ };
1699
+ symbol?: string | undefined;
1700
+ text?: string | undefined;
1701
+ metadata?: {
1702
+ fromCache?: boolean | undefined;
1703
+ llmValidation?: {
1704
+ isViolation: boolean;
1705
+ confidence: number;
1706
+ reason: string;
1707
+ } | undefined;
1708
+ } | undefined;
1709
+ source?: any[] | undefined;
1710
+ }>;
1711
+ export declare const GenerateRuleSchema: z.ZodObject<{
1712
+ reason: z.ZodString;
1713
+ steps: z.ZodArray<z.ZodObject<{
1714
+ id: z.ZodString;
1715
+ step: z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>;
1716
+ }, "strip", z.ZodTypeAny, {
1717
+ id: string;
1718
+ step?: any;
1719
+ }, {
1720
+ id: string;
1721
+ step?: any;
1722
+ }>, "many">;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ reason: string;
1725
+ steps: {
1726
+ id: string;
1727
+ step?: any;
1728
+ }[];
1729
+ }, {
1730
+ reason: string;
1731
+ steps: {
1732
+ id: string;
1733
+ step?: any;
1734
+ }[];
1735
+ }>;
1736
+ export declare const GenerateRuleSchemaTool: import("openai/lib/parser.mjs").AutoParseableTool<{
1737
+ arguments: z.ZodObject<{
1738
+ reason: z.ZodString;
1739
+ steps: z.ZodArray<z.ZodObject<{
1740
+ id: z.ZodString;
1741
+ step: z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ id: string;
1744
+ step?: any;
1745
+ }, {
1746
+ id: string;
1747
+ step?: any;
1748
+ }>, "many">;
1749
+ }, "strip", z.ZodTypeAny, {
1750
+ reason: string;
1751
+ steps: {
1752
+ id: string;
1753
+ step?: any;
1754
+ }[];
1755
+ }, {
1756
+ reason: string;
1757
+ steps: {
1758
+ id: string;
1759
+ step?: any;
1760
+ }[];
1761
+ }>;
1762
+ name: string;
1763
+ function: (args: {
1764
+ reason: string;
1765
+ steps: {
1766
+ id: string;
1767
+ step?: any;
1768
+ }[];
1769
+ }) => unknown;
1770
+ }>;
1771
+ //# sourceMappingURL=schemas.d.ts.map