codestrate 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/constants.d.ts.map +1 -1
  2. package/dist/constants.js +5 -3
  3. package/dist/constants.js.map +1 -1
  4. package/dist/index.js +42 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/install.d.ts +7 -0
  7. package/dist/install.d.ts.map +1 -0
  8. package/dist/install.js +75 -0
  9. package/dist/install.js.map +1 -0
  10. package/dist/schemas/index.d.ts +1021 -3
  11. package/dist/schemas/index.d.ts.map +1 -1
  12. package/dist/schemas/index.js +229 -0
  13. package/dist/schemas/index.js.map +1 -1
  14. package/dist/services/code-searcher.d.ts.map +1 -1
  15. package/dist/services/code-searcher.js +9 -5
  16. package/dist/services/code-searcher.js.map +1 -1
  17. package/dist/services/context-builder.js +8 -7
  18. package/dist/services/context-builder.js.map +1 -1
  19. package/dist/services/repository-parser.js +65 -42
  20. package/dist/services/repository-parser.js.map +1 -1
  21. package/dist/services/tree-sitter.d.ts.map +1 -1
  22. package/dist/services/tree-sitter.js +158 -4
  23. package/dist/services/tree-sitter.js.map +1 -1
  24. package/dist/services/validation-runner.d.ts.map +1 -1
  25. package/dist/services/validation-runner.js +35 -15
  26. package/dist/services/validation-runner.js.map +1 -1
  27. package/dist/store/sqlite.d.ts +2 -0
  28. package/dist/store/sqlite.d.ts.map +1 -1
  29. package/dist/store/sqlite.js +34 -0
  30. package/dist/store/sqlite.js.map +1 -1
  31. package/dist/tools/analyze-impact.d.ts.map +1 -1
  32. package/dist/tools/analyze-impact.js +5 -2
  33. package/dist/tools/analyze-impact.js.map +1 -1
  34. package/dist/tools/detect-dead-code.d.ts +7 -0
  35. package/dist/tools/detect-dead-code.d.ts.map +1 -0
  36. package/dist/tools/detect-dead-code.js +67 -0
  37. package/dist/tools/detect-dead-code.js.map +1 -0
  38. package/dist/tools/explore.d.ts.map +1 -1
  39. package/dist/tools/explore.js +23 -5
  40. package/dist/tools/explore.js.map +1 -1
  41. package/dist/tools/get-context.d.ts.map +1 -1
  42. package/dist/tools/get-context.js +4 -2
  43. package/dist/tools/get-context.js.map +1 -1
  44. package/dist/tools/inspect-symbol.d.ts.map +1 -1
  45. package/dist/tools/inspect-symbol.js +4 -2
  46. package/dist/tools/inspect-symbol.js.map +1 -1
  47. package/dist/tools/recall-experience.d.ts.map +1 -1
  48. package/dist/tools/recall-experience.js +5 -3
  49. package/dist/tools/recall-experience.js.map +1 -1
  50. package/dist/tools/record-experience.d.ts.map +1 -1
  51. package/dist/tools/record-experience.js +4 -2
  52. package/dist/tools/record-experience.js.map +1 -1
  53. package/dist/tools/register.d.ts +23 -0
  54. package/dist/tools/register.d.ts.map +1 -0
  55. package/dist/tools/register.js +4 -0
  56. package/dist/tools/register.js.map +1 -0
  57. package/dist/tools/reindex.d.ts.map +1 -1
  58. package/dist/tools/reindex.js +27 -3
  59. package/dist/tools/reindex.js.map +1 -1
  60. package/dist/tools/repo-overview.d.ts.map +1 -1
  61. package/dist/tools/repo-overview.js +59 -3
  62. package/dist/tools/repo-overview.js.map +1 -1
  63. package/dist/tools/run-validation.d.ts.map +1 -1
  64. package/dist/tools/run-validation.js +4 -2
  65. package/dist/tools/run-validation.js.map +1 -1
  66. package/dist/tools/search-code.d.ts.map +1 -1
  67. package/dist/tools/search-code.js +4 -2
  68. package/dist/tools/search-code.js.map +1 -1
  69. package/dist/tools/search-history.d.ts.map +1 -1
  70. package/dist/tools/search-history.js +4 -2
  71. package/dist/tools/search-history.js.map +1 -1
  72. package/dist/tools/status.d.ts.map +1 -1
  73. package/dist/tools/status.js +6 -4
  74. package/dist/tools/status.js.map +1 -1
  75. package/dist/tools/trace-flow.d.ts.map +1 -1
  76. package/dist/tools/trace-flow.js +4 -2
  77. package/dist/tools/trace-flow.js.map +1 -1
  78. package/grammars/tree-sitter-c.wasm +0 -0
  79. package/grammars/tree-sitter-cpp.wasm +0 -0
  80. package/grammars/tree-sitter-go.wasm +0 -0
  81. package/grammars/tree-sitter-java.wasm +0 -0
  82. package/grammars/tree-sitter-javascript.wasm +0 -0
  83. package/grammars/tree-sitter-rust.wasm +0 -0
  84. package/grammars/tree-sitter-tsx.wasm +0 -0
  85. package/package.json +5 -4
@@ -70,8 +70,8 @@ export declare const GetContextSchema: z.ZodObject<{
70
70
  includeMemory: z.ZodDefault<z.ZodBoolean>;
71
71
  responseFormat: z.ZodDefault<z.ZodNativeEnum<typeof ResponseFormat>>;
72
72
  }, "strict", z.ZodTypeAny, {
73
- responseFormat: ResponseFormat;
74
73
  task: string;
74
+ responseFormat: ResponseFormat;
75
75
  tokenBudget: number;
76
76
  includeHistory: boolean;
77
77
  includeMemory: boolean;
@@ -104,8 +104,8 @@ export declare const RecallExperienceSchema: z.ZodObject<{
104
104
  repo: z.ZodOptional<z.ZodString>;
105
105
  responseFormat: z.ZodDefault<z.ZodNativeEnum<typeof ResponseFormat>>;
106
106
  }, "strict", z.ZodTypeAny, {
107
- responseFormat: ResponseFormat;
108
107
  task: string;
108
+ responseFormat: ResponseFormat;
109
109
  topK: number;
110
110
  repo?: string | undefined;
111
111
  memoryTypes?: ("semantic" | "episodic" | "procedural" | "negative")[] | undefined;
@@ -150,10 +150,10 @@ export declare const RecordExperienceSchema: z.ZodObject<{
150
150
  diagnosis: string;
151
151
  solution: string;
152
152
  changedFiles: string[];
153
+ failedAttempts: string[];
153
154
  buildPassed: boolean;
154
155
  testsPassed: boolean;
155
156
  validationCommand: string;
156
- failedAttempts: string[];
157
157
  }, {
158
158
  commit: string;
159
159
  task: string;
@@ -257,4 +257,1022 @@ export declare const ExploreSchema: z.ZodObject<{
257
257
  maxResults?: number | undefined;
258
258
  }>;
259
259
  export type ExploreInput = z.infer<typeof ExploreSchema>;
260
+ export declare const ExploreOutputSchema: z.ZodObject<{
261
+ data: z.ZodObject<{
262
+ query: z.ZodString;
263
+ total: z.ZodNumber;
264
+ results: z.ZodArray<z.ZodObject<{
265
+ name: z.ZodString;
266
+ kind: z.ZodString;
267
+ file: z.ZodString;
268
+ line: z.ZodNumber;
269
+ signature: z.ZodString;
270
+ }, "strip", z.ZodTypeAny, {
271
+ file: string;
272
+ name: string;
273
+ kind: string;
274
+ signature: string;
275
+ line: number;
276
+ }, {
277
+ file: string;
278
+ name: string;
279
+ kind: string;
280
+ signature: string;
281
+ line: number;
282
+ }>, "many">;
283
+ }, "strip", z.ZodTypeAny, {
284
+ query: string;
285
+ total: number;
286
+ results: {
287
+ file: string;
288
+ name: string;
289
+ kind: string;
290
+ signature: string;
291
+ line: number;
292
+ }[];
293
+ }, {
294
+ query: string;
295
+ total: number;
296
+ results: {
297
+ file: string;
298
+ name: string;
299
+ kind: string;
300
+ signature: string;
301
+ line: number;
302
+ }[];
303
+ }>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ data: {
306
+ query: string;
307
+ total: number;
308
+ results: {
309
+ file: string;
310
+ name: string;
311
+ kind: string;
312
+ signature: string;
313
+ line: number;
314
+ }[];
315
+ };
316
+ }, {
317
+ data: {
318
+ query: string;
319
+ total: number;
320
+ results: {
321
+ file: string;
322
+ name: string;
323
+ kind: string;
324
+ signature: string;
325
+ line: number;
326
+ }[];
327
+ };
328
+ }>;
329
+ export type ExploreOutputType = z.infer<typeof ExploreOutputSchema>;
330
+ export declare const DeadCodeSchema: z.ZodObject<{
331
+ kinds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
332
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
333
+ responseFormat: z.ZodOptional<z.ZodNativeEnum<typeof ResponseFormat>>;
334
+ }, "strict", z.ZodTypeAny, {
335
+ limit: number;
336
+ responseFormat?: ResponseFormat | undefined;
337
+ kinds?: string[] | undefined;
338
+ }, {
339
+ responseFormat?: ResponseFormat | undefined;
340
+ kinds?: string[] | undefined;
341
+ limit?: number | undefined;
342
+ }>;
343
+ export type DeadCodeInput = z.infer<typeof DeadCodeSchema>;
344
+ export declare const RepoOverviewOutputSchema: z.ZodObject<{
345
+ data: z.ZodObject<{
346
+ path: z.ZodString;
347
+ commitSha: z.ZodString;
348
+ branch: z.ZodString;
349
+ repoFingerprint: z.ZodString;
350
+ buildSystem: z.ZodNullable<z.ZodString>;
351
+ frameworks: z.ZodArray<z.ZodString, "many">;
352
+ entryPoints: z.ZodArray<z.ZodString, "many">;
353
+ totalFiles: z.ZodNumber;
354
+ filesByLanguage: z.ZodRecord<z.ZodString, z.ZodNumber>;
355
+ commands: z.ZodObject<{
356
+ build: z.ZodNullable<z.ZodString>;
357
+ test: z.ZodNullable<z.ZodString>;
358
+ lint: z.ZodNullable<z.ZodString>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ build: string | null;
361
+ test: string | null;
362
+ lint: string | null;
363
+ }, {
364
+ build: string | null;
365
+ test: string | null;
366
+ lint: string | null;
367
+ }>;
368
+ detectedLayers: z.ZodRecord<z.ZodString, z.ZodNumber>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ commitSha: string;
371
+ branch: string;
372
+ repoFingerprint: string;
373
+ path: string;
374
+ buildSystem: string | null;
375
+ frameworks: string[];
376
+ entryPoints: string[];
377
+ commands: {
378
+ build: string | null;
379
+ test: string | null;
380
+ lint: string | null;
381
+ };
382
+ totalFiles: number;
383
+ filesByLanguage: Record<string, number>;
384
+ detectedLayers: Record<string, number>;
385
+ }, {
386
+ commitSha: string;
387
+ branch: string;
388
+ repoFingerprint: string;
389
+ path: string;
390
+ buildSystem: string | null;
391
+ frameworks: string[];
392
+ entryPoints: string[];
393
+ commands: {
394
+ build: string | null;
395
+ test: string | null;
396
+ lint: string | null;
397
+ };
398
+ totalFiles: number;
399
+ filesByLanguage: Record<string, number>;
400
+ detectedLayers: Record<string, number>;
401
+ }>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ data: {
404
+ commitSha: string;
405
+ branch: string;
406
+ repoFingerprint: string;
407
+ path: string;
408
+ buildSystem: string | null;
409
+ frameworks: string[];
410
+ entryPoints: string[];
411
+ commands: {
412
+ build: string | null;
413
+ test: string | null;
414
+ lint: string | null;
415
+ };
416
+ totalFiles: number;
417
+ filesByLanguage: Record<string, number>;
418
+ detectedLayers: Record<string, number>;
419
+ };
420
+ }, {
421
+ data: {
422
+ commitSha: string;
423
+ branch: string;
424
+ repoFingerprint: string;
425
+ path: string;
426
+ buildSystem: string | null;
427
+ frameworks: string[];
428
+ entryPoints: string[];
429
+ commands: {
430
+ build: string | null;
431
+ test: string | null;
432
+ lint: string | null;
433
+ };
434
+ totalFiles: number;
435
+ filesByLanguage: Record<string, number>;
436
+ detectedLayers: Record<string, number>;
437
+ };
438
+ }>;
439
+ export declare const SearchCodeOutputSchema: z.ZodObject<{
440
+ data: z.ZodObject<{
441
+ text: z.ZodString;
442
+ metadata: z.ZodObject<{
443
+ total: z.ZodNumber;
444
+ count: z.ZodNumber;
445
+ offset: z.ZodNumber;
446
+ hasMore: z.ZodBoolean;
447
+ nextOffset: z.ZodOptional<z.ZodNumber>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ offset: number;
450
+ total: number;
451
+ count: number;
452
+ hasMore: boolean;
453
+ nextOffset?: number | undefined;
454
+ }, {
455
+ offset: number;
456
+ total: number;
457
+ count: number;
458
+ hasMore: boolean;
459
+ nextOffset?: number | undefined;
460
+ }>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ text: string;
463
+ metadata: {
464
+ offset: number;
465
+ total: number;
466
+ count: number;
467
+ hasMore: boolean;
468
+ nextOffset?: number | undefined;
469
+ };
470
+ }, {
471
+ text: string;
472
+ metadata: {
473
+ offset: number;
474
+ total: number;
475
+ count: number;
476
+ hasMore: boolean;
477
+ nextOffset?: number | undefined;
478
+ };
479
+ }>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ data: {
482
+ text: string;
483
+ metadata: {
484
+ offset: number;
485
+ total: number;
486
+ count: number;
487
+ hasMore: boolean;
488
+ nextOffset?: number | undefined;
489
+ };
490
+ };
491
+ }, {
492
+ data: {
493
+ text: string;
494
+ metadata: {
495
+ offset: number;
496
+ total: number;
497
+ count: number;
498
+ hasMore: boolean;
499
+ nextOffset?: number | undefined;
500
+ };
501
+ };
502
+ }>;
503
+ export declare const InspectSymbolOutputSchema: z.ZodObject<{
504
+ data: z.ZodObject<{
505
+ symbol: z.ZodNullable<z.ZodObject<{
506
+ name: z.ZodString;
507
+ kind: z.ZodEnum<["class", "interface", "function", "method", "variable", "type", "enum", "module", "component", "unknown"]>;
508
+ file: z.ZodString;
509
+ line: z.ZodNumber;
510
+ column: z.ZodNumber;
511
+ signature: z.ZodString;
512
+ summary: z.ZodString;
513
+ imports: z.ZodArray<z.ZodString, "many">;
514
+ calls: z.ZodArray<z.ZodString, "many">;
515
+ calledBy: z.ZodArray<z.ZodString, "many">;
516
+ relatedTests: z.ZodArray<z.ZodString, "many">;
517
+ commitSha: z.ZodString;
518
+ repoFingerprint: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ calls: string[];
521
+ imports: string[];
522
+ file: string;
523
+ commitSha: string;
524
+ repoFingerprint: string;
525
+ name: string;
526
+ kind: "function" | "class" | "interface" | "method" | "variable" | "type" | "enum" | "module" | "component" | "unknown";
527
+ signature: string;
528
+ line: number;
529
+ column: number;
530
+ summary: string;
531
+ calledBy: string[];
532
+ relatedTests: string[];
533
+ }, {
534
+ calls: string[];
535
+ imports: string[];
536
+ file: string;
537
+ commitSha: string;
538
+ repoFingerprint: string;
539
+ name: string;
540
+ kind: "function" | "class" | "interface" | "method" | "variable" | "type" | "enum" | "module" | "component" | "unknown";
541
+ signature: string;
542
+ line: number;
543
+ column: number;
544
+ summary: string;
545
+ calledBy: string[];
546
+ relatedTests: string[];
547
+ }>>;
548
+ definition: z.ZodNullable<z.ZodString>;
549
+ callers: z.ZodArray<z.ZodObject<{
550
+ source: z.ZodString;
551
+ target: z.ZodString;
552
+ kind: z.ZodEnum<["calls", "extends", "implements", "imports", "composes"]>;
553
+ }, "strip", z.ZodTypeAny, {
554
+ source: string;
555
+ target: string;
556
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
557
+ }, {
558
+ source: string;
559
+ target: string;
560
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
561
+ }>, "many">;
562
+ callees: z.ZodArray<z.ZodObject<{
563
+ source: z.ZodString;
564
+ target: z.ZodString;
565
+ kind: z.ZodEnum<["calls", "extends", "implements", "imports", "composes"]>;
566
+ }, "strip", z.ZodTypeAny, {
567
+ source: string;
568
+ target: string;
569
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
570
+ }, {
571
+ source: string;
572
+ target: string;
573
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
574
+ }>, "many">;
575
+ relatedTests: z.ZodArray<z.ZodString, "many">;
576
+ error: z.ZodOptional<z.ZodString>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ symbol: {
579
+ calls: string[];
580
+ imports: string[];
581
+ file: string;
582
+ commitSha: string;
583
+ repoFingerprint: string;
584
+ name: string;
585
+ kind: "function" | "class" | "interface" | "method" | "variable" | "type" | "enum" | "module" | "component" | "unknown";
586
+ signature: string;
587
+ line: number;
588
+ column: number;
589
+ summary: string;
590
+ calledBy: string[];
591
+ relatedTests: string[];
592
+ } | null;
593
+ relatedTests: string[];
594
+ definition: string | null;
595
+ callers: {
596
+ source: string;
597
+ target: string;
598
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
599
+ }[];
600
+ callees: {
601
+ source: string;
602
+ target: string;
603
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
604
+ }[];
605
+ error?: string | undefined;
606
+ }, {
607
+ symbol: {
608
+ calls: string[];
609
+ imports: string[];
610
+ file: string;
611
+ commitSha: string;
612
+ repoFingerprint: string;
613
+ name: string;
614
+ kind: "function" | "class" | "interface" | "method" | "variable" | "type" | "enum" | "module" | "component" | "unknown";
615
+ signature: string;
616
+ line: number;
617
+ column: number;
618
+ summary: string;
619
+ calledBy: string[];
620
+ relatedTests: string[];
621
+ } | null;
622
+ relatedTests: string[];
623
+ definition: string | null;
624
+ callers: {
625
+ source: string;
626
+ target: string;
627
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
628
+ }[];
629
+ callees: {
630
+ source: string;
631
+ target: string;
632
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
633
+ }[];
634
+ error?: string | undefined;
635
+ }>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ data: {
638
+ symbol: {
639
+ calls: string[];
640
+ imports: string[];
641
+ file: string;
642
+ commitSha: string;
643
+ repoFingerprint: string;
644
+ name: string;
645
+ kind: "function" | "class" | "interface" | "method" | "variable" | "type" | "enum" | "module" | "component" | "unknown";
646
+ signature: string;
647
+ line: number;
648
+ column: number;
649
+ summary: string;
650
+ calledBy: string[];
651
+ relatedTests: string[];
652
+ } | null;
653
+ relatedTests: string[];
654
+ definition: string | null;
655
+ callers: {
656
+ source: string;
657
+ target: string;
658
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
659
+ }[];
660
+ callees: {
661
+ source: string;
662
+ target: string;
663
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
664
+ }[];
665
+ error?: string | undefined;
666
+ };
667
+ }, {
668
+ data: {
669
+ symbol: {
670
+ calls: string[];
671
+ imports: string[];
672
+ file: string;
673
+ commitSha: string;
674
+ repoFingerprint: string;
675
+ name: string;
676
+ kind: "function" | "class" | "interface" | "method" | "variable" | "type" | "enum" | "module" | "component" | "unknown";
677
+ signature: string;
678
+ line: number;
679
+ column: number;
680
+ summary: string;
681
+ calledBy: string[];
682
+ relatedTests: string[];
683
+ } | null;
684
+ relatedTests: string[];
685
+ definition: string | null;
686
+ callers: {
687
+ source: string;
688
+ target: string;
689
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
690
+ }[];
691
+ callees: {
692
+ source: string;
693
+ target: string;
694
+ kind: "calls" | "extends" | "implements" | "imports" | "composes";
695
+ }[];
696
+ error?: string | undefined;
697
+ };
698
+ }>;
699
+ export declare const GetContextOutputSchema: z.ZodObject<{
700
+ data: z.ZodUnion<[z.ZodObject<{
701
+ task: z.ZodString;
702
+ summary: z.ZodString;
703
+ items: z.ZodArray<z.ZodObject<{
704
+ type: z.ZodEnum<["repo_map", "symbol", "file", "history", "memory", "rule"]>;
705
+ label: z.ZodString;
706
+ content: z.ZodString;
707
+ tokens: z.ZodNumber;
708
+ relevance: z.ZodNumber;
709
+ }, "strip", z.ZodTypeAny, {
710
+ type: "symbol" | "repo_map" | "file" | "history" | "memory" | "rule";
711
+ content: string;
712
+ label: string;
713
+ tokens: number;
714
+ relevance: number;
715
+ }, {
716
+ type: "symbol" | "repo_map" | "file" | "history" | "memory" | "rule";
717
+ content: string;
718
+ label: string;
719
+ tokens: number;
720
+ relevance: number;
721
+ }>, "many">;
722
+ totalTokens: z.ZodNumber;
723
+ hasMore: z.ZodBoolean;
724
+ }, "strip", z.ZodTypeAny, {
725
+ task: string;
726
+ summary: string;
727
+ hasMore: boolean;
728
+ items: {
729
+ type: "symbol" | "repo_map" | "file" | "history" | "memory" | "rule";
730
+ content: string;
731
+ label: string;
732
+ tokens: number;
733
+ relevance: number;
734
+ }[];
735
+ totalTokens: number;
736
+ }, {
737
+ task: string;
738
+ summary: string;
739
+ hasMore: boolean;
740
+ items: {
741
+ type: "symbol" | "repo_map" | "file" | "history" | "memory" | "rule";
742
+ content: string;
743
+ label: string;
744
+ tokens: number;
745
+ relevance: number;
746
+ }[];
747
+ totalTokens: number;
748
+ }>, z.ZodNull]>;
749
+ }, "strip", z.ZodTypeAny, {
750
+ data: {
751
+ task: string;
752
+ summary: string;
753
+ hasMore: boolean;
754
+ items: {
755
+ type: "symbol" | "repo_map" | "file" | "history" | "memory" | "rule";
756
+ content: string;
757
+ label: string;
758
+ tokens: number;
759
+ relevance: number;
760
+ }[];
761
+ totalTokens: number;
762
+ } | null;
763
+ }, {
764
+ data: {
765
+ task: string;
766
+ summary: string;
767
+ hasMore: boolean;
768
+ items: {
769
+ type: "symbol" | "repo_map" | "file" | "history" | "memory" | "rule";
770
+ content: string;
771
+ label: string;
772
+ tokens: number;
773
+ relevance: number;
774
+ }[];
775
+ totalTokens: number;
776
+ } | null;
777
+ }>;
778
+ export declare const SearchHistoryOutputSchema: z.ZodObject<{
779
+ data: z.ZodObject<{
780
+ commits: z.ZodArray<z.ZodObject<{
781
+ commit: z.ZodString;
782
+ message: z.ZodString;
783
+ date: z.ZodString;
784
+ author: z.ZodString;
785
+ files: z.ZodArray<z.ZodString, "many">;
786
+ }, "strip", z.ZodTypeAny, {
787
+ files: string[];
788
+ commit: string;
789
+ message: string;
790
+ date: string;
791
+ author: string;
792
+ }, {
793
+ files: string[];
794
+ commit: string;
795
+ message: string;
796
+ date: string;
797
+ author: string;
798
+ }>, "many">;
799
+ total: z.ZodNumber;
800
+ query: z.ZodString;
801
+ }, "strip", z.ZodTypeAny, {
802
+ query: string;
803
+ total: number;
804
+ commits: {
805
+ files: string[];
806
+ commit: string;
807
+ message: string;
808
+ date: string;
809
+ author: string;
810
+ }[];
811
+ }, {
812
+ query: string;
813
+ total: number;
814
+ commits: {
815
+ files: string[];
816
+ commit: string;
817
+ message: string;
818
+ date: string;
819
+ author: string;
820
+ }[];
821
+ }>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ data: {
824
+ query: string;
825
+ total: number;
826
+ commits: {
827
+ files: string[];
828
+ commit: string;
829
+ message: string;
830
+ date: string;
831
+ author: string;
832
+ }[];
833
+ };
834
+ }, {
835
+ data: {
836
+ query: string;
837
+ total: number;
838
+ commits: {
839
+ files: string[];
840
+ commit: string;
841
+ message: string;
842
+ date: string;
843
+ author: string;
844
+ }[];
845
+ };
846
+ }>;
847
+ export declare const RecallExperienceOutputSchema: z.ZodObject<{
848
+ data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
849
+ id: z.ZodString;
850
+ task: z.ZodString;
851
+ diagnosis: z.ZodString;
852
+ solution: z.ZodString;
853
+ changedFiles: z.ZodArray<z.ZodString, "many">;
854
+ commit: z.ZodString;
855
+ quality: z.ZodNumber;
856
+ timestamp: z.ZodString;
857
+ repo: z.ZodString;
858
+ type: z.ZodLiteral<"episodic">;
859
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
860
+ id: z.ZodString;
861
+ task: z.ZodString;
862
+ diagnosis: z.ZodString;
863
+ solution: z.ZodString;
864
+ changedFiles: z.ZodArray<z.ZodString, "many">;
865
+ commit: z.ZodString;
866
+ quality: z.ZodNumber;
867
+ timestamp: z.ZodString;
868
+ repo: z.ZodString;
869
+ type: z.ZodLiteral<"episodic">;
870
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
871
+ id: z.ZodString;
872
+ task: z.ZodString;
873
+ diagnosis: z.ZodString;
874
+ solution: z.ZodString;
875
+ changedFiles: z.ZodArray<z.ZodString, "many">;
876
+ commit: z.ZodString;
877
+ quality: z.ZodNumber;
878
+ timestamp: z.ZodString;
879
+ repo: z.ZodString;
880
+ type: z.ZodLiteral<"episodic">;
881
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
882
+ id: z.ZodString;
883
+ type: z.ZodEnum<["semantic", "episodic", "procedural", "negative"]>;
884
+ content: z.ZodString;
885
+ quality: z.ZodNumber;
886
+ timestamp: z.ZodString;
887
+ repo: z.ZodString;
888
+ source: z.ZodEnum<["manual", "auto", "derived"]>;
889
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
890
+ id: z.ZodString;
891
+ type: z.ZodEnum<["semantic", "episodic", "procedural", "negative"]>;
892
+ content: z.ZodString;
893
+ quality: z.ZodNumber;
894
+ timestamp: z.ZodString;
895
+ repo: z.ZodString;
896
+ source: z.ZodEnum<["manual", "auto", "derived"]>;
897
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
898
+ id: z.ZodString;
899
+ type: z.ZodEnum<["semantic", "episodic", "procedural", "negative"]>;
900
+ content: z.ZodString;
901
+ quality: z.ZodNumber;
902
+ timestamp: z.ZodString;
903
+ repo: z.ZodString;
904
+ source: z.ZodEnum<["manual", "auto", "derived"]>;
905
+ }, z.ZodTypeAny, "passthrough">>]>, "many">;
906
+ }, "strip", z.ZodTypeAny, {
907
+ data: (z.objectOutputType<{
908
+ id: z.ZodString;
909
+ task: z.ZodString;
910
+ diagnosis: z.ZodString;
911
+ solution: z.ZodString;
912
+ changedFiles: z.ZodArray<z.ZodString, "many">;
913
+ commit: z.ZodString;
914
+ quality: z.ZodNumber;
915
+ timestamp: z.ZodString;
916
+ repo: z.ZodString;
917
+ type: z.ZodLiteral<"episodic">;
918
+ }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
919
+ id: z.ZodString;
920
+ type: z.ZodEnum<["semantic", "episodic", "procedural", "negative"]>;
921
+ content: z.ZodString;
922
+ quality: z.ZodNumber;
923
+ timestamp: z.ZodString;
924
+ repo: z.ZodString;
925
+ source: z.ZodEnum<["manual", "auto", "derived"]>;
926
+ }, z.ZodTypeAny, "passthrough">)[];
927
+ }, {
928
+ data: (z.objectInputType<{
929
+ id: z.ZodString;
930
+ task: z.ZodString;
931
+ diagnosis: z.ZodString;
932
+ solution: z.ZodString;
933
+ changedFiles: z.ZodArray<z.ZodString, "many">;
934
+ commit: z.ZodString;
935
+ quality: z.ZodNumber;
936
+ timestamp: z.ZodString;
937
+ repo: z.ZodString;
938
+ type: z.ZodLiteral<"episodic">;
939
+ }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
940
+ id: z.ZodString;
941
+ type: z.ZodEnum<["semantic", "episodic", "procedural", "negative"]>;
942
+ content: z.ZodString;
943
+ quality: z.ZodNumber;
944
+ timestamp: z.ZodString;
945
+ repo: z.ZodString;
946
+ source: z.ZodEnum<["manual", "auto", "derived"]>;
947
+ }, z.ZodTypeAny, "passthrough">)[];
948
+ }>;
949
+ export declare const RunValidationOutputSchema: z.ZodObject<{
950
+ data: z.ZodArray<z.ZodObject<{
951
+ type: z.ZodEnum<["build", "test", "lint"]>;
952
+ passed: z.ZodBoolean;
953
+ command: z.ZodString;
954
+ output: z.ZodString;
955
+ errors: z.ZodArray<z.ZodString, "many">;
956
+ duration: z.ZodNumber;
957
+ exitCode: z.ZodNullable<z.ZodNumber>;
958
+ }, "strip", z.ZodTypeAny, {
959
+ type: "build" | "test" | "lint";
960
+ passed: boolean;
961
+ command: string;
962
+ output: string;
963
+ errors: string[];
964
+ duration: number;
965
+ exitCode: number | null;
966
+ }, {
967
+ type: "build" | "test" | "lint";
968
+ passed: boolean;
969
+ command: string;
970
+ output: string;
971
+ errors: string[];
972
+ duration: number;
973
+ exitCode: number | null;
974
+ }>, "many">;
975
+ }, "strip", z.ZodTypeAny, {
976
+ data: {
977
+ type: "build" | "test" | "lint";
978
+ passed: boolean;
979
+ command: string;
980
+ output: string;
981
+ errors: string[];
982
+ duration: number;
983
+ exitCode: number | null;
984
+ }[];
985
+ }, {
986
+ data: {
987
+ type: "build" | "test" | "lint";
988
+ passed: boolean;
989
+ command: string;
990
+ output: string;
991
+ errors: string[];
992
+ duration: number;
993
+ exitCode: number | null;
994
+ }[];
995
+ }>;
996
+ export declare const RecordExperienceOutputSchema: z.ZodObject<{
997
+ data: z.ZodObject<{
998
+ id: z.ZodString;
999
+ quality: z.ZodNumber;
1000
+ message: z.ZodString;
1001
+ repoFingerprint: z.ZodString;
1002
+ }, "strip", z.ZodTypeAny, {
1003
+ id: string;
1004
+ quality: number;
1005
+ repoFingerprint: string;
1006
+ message: string;
1007
+ }, {
1008
+ id: string;
1009
+ quality: number;
1010
+ repoFingerprint: string;
1011
+ message: string;
1012
+ }>;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ data: {
1015
+ id: string;
1016
+ quality: number;
1017
+ repoFingerprint: string;
1018
+ message: string;
1019
+ };
1020
+ }, {
1021
+ data: {
1022
+ id: string;
1023
+ quality: number;
1024
+ repoFingerprint: string;
1025
+ message: string;
1026
+ };
1027
+ }>;
1028
+ export declare const TraceFlowOutputSchema: z.ZodObject<{
1029
+ data: z.ZodObject<{
1030
+ symbol: z.ZodString;
1031
+ nodes: z.ZodArray<z.ZodObject<{
1032
+ symbol: z.ZodString;
1033
+ depth: z.ZodNumber;
1034
+ callers: z.ZodArray<z.ZodString, "many">;
1035
+ callees: z.ZodArray<z.ZodString, "many">;
1036
+ }, "strip", z.ZodTypeAny, {
1037
+ symbol: string;
1038
+ depth: number;
1039
+ callers: string[];
1040
+ callees: string[];
1041
+ }, {
1042
+ symbol: string;
1043
+ depth: number;
1044
+ callers: string[];
1045
+ callees: string[];
1046
+ }>, "many">;
1047
+ total: z.ZodNumber;
1048
+ }, "strip", z.ZodTypeAny, {
1049
+ symbol: string;
1050
+ total: number;
1051
+ nodes: {
1052
+ symbol: string;
1053
+ depth: number;
1054
+ callers: string[];
1055
+ callees: string[];
1056
+ }[];
1057
+ }, {
1058
+ symbol: string;
1059
+ total: number;
1060
+ nodes: {
1061
+ symbol: string;
1062
+ depth: number;
1063
+ callers: string[];
1064
+ callees: string[];
1065
+ }[];
1066
+ }>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ data: {
1069
+ symbol: string;
1070
+ total: number;
1071
+ nodes: {
1072
+ symbol: string;
1073
+ depth: number;
1074
+ callers: string[];
1075
+ callees: string[];
1076
+ }[];
1077
+ };
1078
+ }, {
1079
+ data: {
1080
+ symbol: string;
1081
+ total: number;
1082
+ nodes: {
1083
+ symbol: string;
1084
+ depth: number;
1085
+ callers: string[];
1086
+ callees: string[];
1087
+ }[];
1088
+ };
1089
+ }>;
1090
+ export declare const AnalyzeImpactOutputSchema: z.ZodObject<{
1091
+ data: z.ZodObject<{
1092
+ changedFiles: z.ZodArray<z.ZodString, "many">;
1093
+ affectedFiles: z.ZodArray<z.ZodString, "many">;
1094
+ testFiles: z.ZodArray<z.ZodString, "many">;
1095
+ totalAffected: z.ZodNumber;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ changedFiles: string[];
1098
+ affectedFiles: string[];
1099
+ testFiles: string[];
1100
+ totalAffected: number;
1101
+ }, {
1102
+ changedFiles: string[];
1103
+ affectedFiles: string[];
1104
+ testFiles: string[];
1105
+ totalAffected: number;
1106
+ }>;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ data: {
1109
+ changedFiles: string[];
1110
+ affectedFiles: string[];
1111
+ testFiles: string[];
1112
+ totalAffected: number;
1113
+ };
1114
+ }, {
1115
+ data: {
1116
+ changedFiles: string[];
1117
+ affectedFiles: string[];
1118
+ testFiles: string[];
1119
+ totalAffected: number;
1120
+ };
1121
+ }>;
1122
+ export declare const ReindexOutputSchema: z.ZodObject<{
1123
+ data: z.ZodObject<{
1124
+ path: z.ZodString;
1125
+ commitSha: z.ZodString;
1126
+ filesIndexed: z.ZodNumber;
1127
+ symbolsFound: z.ZodNumber;
1128
+ mode: z.ZodEnum<["full", "incremental"]>;
1129
+ }, "strip", z.ZodTypeAny, {
1130
+ commitSha: string;
1131
+ path: string;
1132
+ filesIndexed: number;
1133
+ symbolsFound: number;
1134
+ mode: "incremental" | "full";
1135
+ }, {
1136
+ commitSha: string;
1137
+ path: string;
1138
+ filesIndexed: number;
1139
+ symbolsFound: number;
1140
+ mode: "incremental" | "full";
1141
+ }>;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ data: {
1144
+ commitSha: string;
1145
+ path: string;
1146
+ filesIndexed: number;
1147
+ symbolsFound: number;
1148
+ mode: "incremental" | "full";
1149
+ };
1150
+ }, {
1151
+ data: {
1152
+ commitSha: string;
1153
+ path: string;
1154
+ filesIndexed: number;
1155
+ symbolsFound: number;
1156
+ mode: "incremental" | "full";
1157
+ };
1158
+ }>;
1159
+ export declare const StatusOutputSchema: z.ZodObject<{
1160
+ data: z.ZodObject<{
1161
+ indexed: z.ZodBoolean;
1162
+ repoFingerprint: z.ZodNullable<z.ZodString>;
1163
+ commitSha: z.ZodNullable<z.ZodString>;
1164
+ branch: z.ZodNullable<z.ZodString>;
1165
+ symbolCount: z.ZodNumber;
1166
+ relationCount: z.ZodNumber;
1167
+ filesByLanguage: z.ZodRecord<z.ZodString, z.ZodNumber>;
1168
+ stale: z.ZodBoolean;
1169
+ staleReason: z.ZodOptional<z.ZodString>;
1170
+ indexAge: z.ZodString;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ commitSha: string | null;
1173
+ branch: string | null;
1174
+ repoFingerprint: string | null;
1175
+ filesByLanguage: Record<string, number>;
1176
+ indexed: boolean;
1177
+ symbolCount: number;
1178
+ relationCount: number;
1179
+ stale: boolean;
1180
+ indexAge: string;
1181
+ staleReason?: string | undefined;
1182
+ }, {
1183
+ commitSha: string | null;
1184
+ branch: string | null;
1185
+ repoFingerprint: string | null;
1186
+ filesByLanguage: Record<string, number>;
1187
+ indexed: boolean;
1188
+ symbolCount: number;
1189
+ relationCount: number;
1190
+ stale: boolean;
1191
+ indexAge: string;
1192
+ staleReason?: string | undefined;
1193
+ }>;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ data: {
1196
+ commitSha: string | null;
1197
+ branch: string | null;
1198
+ repoFingerprint: string | null;
1199
+ filesByLanguage: Record<string, number>;
1200
+ indexed: boolean;
1201
+ symbolCount: number;
1202
+ relationCount: number;
1203
+ stale: boolean;
1204
+ indexAge: string;
1205
+ staleReason?: string | undefined;
1206
+ };
1207
+ }, {
1208
+ data: {
1209
+ commitSha: string | null;
1210
+ branch: string | null;
1211
+ repoFingerprint: string | null;
1212
+ filesByLanguage: Record<string, number>;
1213
+ indexed: boolean;
1214
+ symbolCount: number;
1215
+ relationCount: number;
1216
+ stale: boolean;
1217
+ indexAge: string;
1218
+ staleReason?: string | undefined;
1219
+ };
1220
+ }>;
1221
+ export declare const DeadCodeOutputSchema: z.ZodObject<{
1222
+ data: z.ZodObject<{
1223
+ deadCount: z.ZodNumber;
1224
+ symbols: z.ZodArray<z.ZodObject<{
1225
+ name: z.ZodString;
1226
+ kind: z.ZodString;
1227
+ file: z.ZodString;
1228
+ line: z.ZodNumber;
1229
+ }, "strip", z.ZodTypeAny, {
1230
+ file: string;
1231
+ name: string;
1232
+ kind: string;
1233
+ line: number;
1234
+ }, {
1235
+ file: string;
1236
+ name: string;
1237
+ kind: string;
1238
+ line: number;
1239
+ }>, "many">;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ symbols: {
1242
+ file: string;
1243
+ name: string;
1244
+ kind: string;
1245
+ line: number;
1246
+ }[];
1247
+ deadCount: number;
1248
+ }, {
1249
+ symbols: {
1250
+ file: string;
1251
+ name: string;
1252
+ kind: string;
1253
+ line: number;
1254
+ }[];
1255
+ deadCount: number;
1256
+ }>;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ data: {
1259
+ symbols: {
1260
+ file: string;
1261
+ name: string;
1262
+ kind: string;
1263
+ line: number;
1264
+ }[];
1265
+ deadCount: number;
1266
+ };
1267
+ }, {
1268
+ data: {
1269
+ symbols: {
1270
+ file: string;
1271
+ name: string;
1272
+ kind: string;
1273
+ line: number;
1274
+ }[];
1275
+ deadCount: number;
1276
+ };
1277
+ }>;
260
1278
  //# sourceMappingURL=index.d.ts.map