@vheins/local-memory-mcp 0.3.16 → 0.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard/server.js +3 -0
- package/dist/dashboard/server.js.map +1 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +7 -3
- package/dist/router.js.map +1 -1
- package/dist/storage/sqlite.d.ts +1 -0
- package/dist/storage/sqlite.d.ts.map +1 -1
- package/dist/storage/sqlite.js +10 -0
- package/dist/storage/sqlite.js.map +1 -1
- package/dist/tasks.bulk.test.js +53 -0
- package/dist/tasks.bulk.test.js.map +1 -1
- package/dist/tasks.e2e.test.js +9 -28
- package/dist/tasks.e2e.test.js.map +1 -1
- package/dist/tools/schemas.d.ts +187 -30
- package/dist/tools/schemas.d.ts.map +1 -1
- package/dist/tools/schemas.js +77 -81
- package/dist/tools/schemas.js.map +1 -1
- package/dist/tools/task.bulk-manage.d.ts.map +1 -1
- package/dist/tools/task.bulk-manage.js +8 -0
- package/dist/tools/task.bulk-manage.js.map +1 -1
- package/dist/tools/task.manage.d.ts +15 -1
- package/dist/tools/task.manage.d.ts.map +1 -1
- package/dist/tools/task.manage.js +75 -118
- package/dist/tools/task.manage.js.map +1 -1
- package/package.json +1 -1
package/dist/tools/schemas.d.ts
CHANGED
|
@@ -100,15 +100,31 @@ export declare const TaskStatusSchema: z.ZodEnum<{
|
|
|
100
100
|
blocked: "blocked";
|
|
101
101
|
}>;
|
|
102
102
|
export declare const TaskPrioritySchema: z.ZodNumber;
|
|
103
|
-
export declare const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
export declare const TaskCreateSchema: z.ZodObject<{
|
|
104
|
+
repo: z.ZodString;
|
|
105
|
+
task_code: z.ZodString;
|
|
106
|
+
phase: z.ZodString;
|
|
107
|
+
title: z.ZodString;
|
|
108
|
+
description: z.ZodString;
|
|
109
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
110
|
+
pending: "pending";
|
|
111
|
+
in_progress: "in_progress";
|
|
112
|
+
completed: "completed";
|
|
113
|
+
canceled: "canceled";
|
|
114
|
+
blocked: "blocked";
|
|
115
|
+
}>>;
|
|
116
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
117
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
118
|
+
role: z.ZodOptional<z.ZodString>;
|
|
119
|
+
doc_path: z.ZodOptional<z.ZodString>;
|
|
120
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
122
|
+
parent_id: z.ZodOptional<z.ZodString>;
|
|
123
|
+
depends_on: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export declare const TaskUpdateSchema: z.ZodObject<{
|
|
110
126
|
repo: z.ZodString;
|
|
111
|
-
id: z.
|
|
127
|
+
id: z.ZodString;
|
|
112
128
|
task_code: z.ZodOptional<z.ZodString>;
|
|
113
129
|
phase: z.ZodOptional<z.ZodString>;
|
|
114
130
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -169,6 +185,10 @@ export declare const TaskBulkManageSchema: z.ZodObject<{
|
|
|
169
185
|
depends_on: z.ZodOptional<z.ZodString>;
|
|
170
186
|
}, z.core.$strip>>;
|
|
171
187
|
}, z.core.$strip>;
|
|
188
|
+
export declare const TaskDeleteSchema: z.ZodObject<{
|
|
189
|
+
repo: z.ZodString;
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
}, z.core.$strip>;
|
|
172
192
|
export declare const TOOL_DEFINITIONS: ({
|
|
173
193
|
name: string;
|
|
174
194
|
description: string;
|
|
@@ -259,7 +279,6 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
259
279
|
include_archived?: undefined;
|
|
260
280
|
signals?: undefined;
|
|
261
281
|
offset?: undefined;
|
|
262
|
-
action?: undefined;
|
|
263
282
|
task_code?: undefined;
|
|
264
283
|
phase?: undefined;
|
|
265
284
|
description?: undefined;
|
|
@@ -269,6 +288,7 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
269
288
|
metadata?: undefined;
|
|
270
289
|
parent_id?: undefined;
|
|
271
290
|
depends_on?: undefined;
|
|
291
|
+
action?: undefined;
|
|
272
292
|
tasks?: undefined;
|
|
273
293
|
};
|
|
274
294
|
required: string[];
|
|
@@ -316,7 +336,6 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
316
336
|
include_archived?: undefined;
|
|
317
337
|
signals?: undefined;
|
|
318
338
|
offset?: undefined;
|
|
319
|
-
action?: undefined;
|
|
320
339
|
task_code?: undefined;
|
|
321
340
|
phase?: undefined;
|
|
322
341
|
description?: undefined;
|
|
@@ -326,6 +345,7 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
326
345
|
metadata?: undefined;
|
|
327
346
|
parent_id?: undefined;
|
|
328
347
|
depends_on?: undefined;
|
|
348
|
+
action?: undefined;
|
|
329
349
|
tasks?: undefined;
|
|
330
350
|
};
|
|
331
351
|
required: string[];
|
|
@@ -397,7 +417,6 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
397
417
|
include_archived?: undefined;
|
|
398
418
|
signals?: undefined;
|
|
399
419
|
offset?: undefined;
|
|
400
|
-
action?: undefined;
|
|
401
420
|
task_code?: undefined;
|
|
402
421
|
phase?: undefined;
|
|
403
422
|
description?: undefined;
|
|
@@ -407,6 +426,7 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
407
426
|
metadata?: undefined;
|
|
408
427
|
parent_id?: undefined;
|
|
409
428
|
depends_on?: undefined;
|
|
429
|
+
action?: undefined;
|
|
410
430
|
tasks?: undefined;
|
|
411
431
|
};
|
|
412
432
|
required: string[];
|
|
@@ -482,7 +502,6 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
482
502
|
id?: undefined;
|
|
483
503
|
signals?: undefined;
|
|
484
504
|
offset?: undefined;
|
|
485
|
-
action?: undefined;
|
|
486
505
|
task_code?: undefined;
|
|
487
506
|
phase?: undefined;
|
|
488
507
|
description?: undefined;
|
|
@@ -492,6 +511,7 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
492
511
|
metadata?: undefined;
|
|
493
512
|
parent_id?: undefined;
|
|
494
513
|
depends_on?: undefined;
|
|
514
|
+
action?: undefined;
|
|
495
515
|
tasks?: undefined;
|
|
496
516
|
};
|
|
497
517
|
required: string[];
|
|
@@ -540,7 +560,6 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
540
560
|
current_file_path?: undefined;
|
|
541
561
|
include_archived?: undefined;
|
|
542
562
|
offset?: undefined;
|
|
543
|
-
action?: undefined;
|
|
544
563
|
task_code?: undefined;
|
|
545
564
|
phase?: undefined;
|
|
546
565
|
description?: undefined;
|
|
@@ -550,6 +569,7 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
550
569
|
metadata?: undefined;
|
|
551
570
|
parent_id?: undefined;
|
|
552
571
|
depends_on?: undefined;
|
|
572
|
+
action?: undefined;
|
|
553
573
|
tasks?: undefined;
|
|
554
574
|
};
|
|
555
575
|
required: string[];
|
|
@@ -591,7 +611,6 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
591
611
|
include_archived?: undefined;
|
|
592
612
|
signals?: undefined;
|
|
593
613
|
offset?: undefined;
|
|
594
|
-
action?: undefined;
|
|
595
614
|
task_code?: undefined;
|
|
596
615
|
phase?: undefined;
|
|
597
616
|
description?: undefined;
|
|
@@ -601,6 +620,7 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
601
620
|
metadata?: undefined;
|
|
602
621
|
parent_id?: undefined;
|
|
603
622
|
depends_on?: undefined;
|
|
623
|
+
action?: undefined;
|
|
604
624
|
tasks?: undefined;
|
|
605
625
|
};
|
|
606
626
|
required: string[];
|
|
@@ -652,7 +672,6 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
652
672
|
current_file_path?: undefined;
|
|
653
673
|
include_archived?: undefined;
|
|
654
674
|
signals?: undefined;
|
|
655
|
-
action?: undefined;
|
|
656
675
|
task_code?: undefined;
|
|
657
676
|
phase?: undefined;
|
|
658
677
|
description?: undefined;
|
|
@@ -662,6 +681,7 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
662
681
|
metadata?: undefined;
|
|
663
682
|
parent_id?: undefined;
|
|
664
683
|
depends_on?: undefined;
|
|
684
|
+
action?: undefined;
|
|
665
685
|
tasks?: undefined;
|
|
666
686
|
};
|
|
667
687
|
required: string[];
|
|
@@ -672,11 +692,99 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
672
692
|
inputSchema: {
|
|
673
693
|
type: string;
|
|
674
694
|
properties: {
|
|
675
|
-
|
|
695
|
+
repo: {
|
|
676
696
|
type: string;
|
|
677
|
-
enum: string[];
|
|
678
697
|
description: string;
|
|
679
698
|
};
|
|
699
|
+
task_code: {
|
|
700
|
+
type: string;
|
|
701
|
+
description: string;
|
|
702
|
+
};
|
|
703
|
+
phase: {
|
|
704
|
+
type: string;
|
|
705
|
+
description: string;
|
|
706
|
+
};
|
|
707
|
+
title: {
|
|
708
|
+
type: string;
|
|
709
|
+
minLength: number;
|
|
710
|
+
maxLength: number;
|
|
711
|
+
description?: undefined;
|
|
712
|
+
};
|
|
713
|
+
description: {
|
|
714
|
+
type: string;
|
|
715
|
+
};
|
|
716
|
+
status: {
|
|
717
|
+
type: string;
|
|
718
|
+
enum: string[];
|
|
719
|
+
description?: undefined;
|
|
720
|
+
};
|
|
721
|
+
priority: {
|
|
722
|
+
type: string;
|
|
723
|
+
minimum: number;
|
|
724
|
+
maximum: number;
|
|
725
|
+
default: number;
|
|
726
|
+
};
|
|
727
|
+
agent: {
|
|
728
|
+
type: string;
|
|
729
|
+
description?: undefined;
|
|
730
|
+
};
|
|
731
|
+
role: {
|
|
732
|
+
type: string;
|
|
733
|
+
};
|
|
734
|
+
doc_path: {
|
|
735
|
+
type: string;
|
|
736
|
+
};
|
|
737
|
+
tags: {
|
|
738
|
+
type: string;
|
|
739
|
+
items: {
|
|
740
|
+
type: string;
|
|
741
|
+
};
|
|
742
|
+
description?: undefined;
|
|
743
|
+
};
|
|
744
|
+
metadata: {
|
|
745
|
+
type: string;
|
|
746
|
+
};
|
|
747
|
+
parent_id: {
|
|
748
|
+
type: string;
|
|
749
|
+
format: string;
|
|
750
|
+
};
|
|
751
|
+
depends_on: {
|
|
752
|
+
type: string;
|
|
753
|
+
format: string;
|
|
754
|
+
};
|
|
755
|
+
type?: undefined;
|
|
756
|
+
content?: undefined;
|
|
757
|
+
importance?: undefined;
|
|
758
|
+
model?: undefined;
|
|
759
|
+
scope?: undefined;
|
|
760
|
+
is_global?: undefined;
|
|
761
|
+
ttlDays?: undefined;
|
|
762
|
+
supersedes?: undefined;
|
|
763
|
+
memory_id?: undefined;
|
|
764
|
+
application_context?: undefined;
|
|
765
|
+
id?: undefined;
|
|
766
|
+
query?: undefined;
|
|
767
|
+
prompt?: undefined;
|
|
768
|
+
current_tags?: undefined;
|
|
769
|
+
types?: undefined;
|
|
770
|
+
minImportance?: undefined;
|
|
771
|
+
limit?: undefined;
|
|
772
|
+
includeRecap?: undefined;
|
|
773
|
+
current_file_path?: undefined;
|
|
774
|
+
include_archived?: undefined;
|
|
775
|
+
signals?: undefined;
|
|
776
|
+
offset?: undefined;
|
|
777
|
+
action?: undefined;
|
|
778
|
+
tasks?: undefined;
|
|
779
|
+
};
|
|
780
|
+
required: string[];
|
|
781
|
+
};
|
|
782
|
+
} | {
|
|
783
|
+
name: string;
|
|
784
|
+
description: string;
|
|
785
|
+
inputSchema: {
|
|
786
|
+
type: string;
|
|
787
|
+
properties: {
|
|
680
788
|
repo: {
|
|
681
789
|
type: string;
|
|
682
790
|
description: string;
|
|
@@ -688,75 +796,114 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
688
796
|
};
|
|
689
797
|
task_code: {
|
|
690
798
|
type: string;
|
|
691
|
-
description
|
|
799
|
+
description?: undefined;
|
|
692
800
|
};
|
|
693
801
|
phase: {
|
|
694
802
|
type: string;
|
|
695
|
-
description
|
|
803
|
+
description?: undefined;
|
|
696
804
|
};
|
|
697
805
|
title: {
|
|
698
806
|
type: string;
|
|
699
807
|
minLength: number;
|
|
700
808
|
maxLength: number;
|
|
701
|
-
description
|
|
809
|
+
description?: undefined;
|
|
702
810
|
};
|
|
703
811
|
description: {
|
|
704
812
|
type: string;
|
|
705
|
-
description: string;
|
|
706
813
|
};
|
|
707
814
|
status: {
|
|
708
815
|
type: string;
|
|
709
816
|
enum: string[];
|
|
710
|
-
description
|
|
817
|
+
description?: undefined;
|
|
711
818
|
};
|
|
712
819
|
priority: {
|
|
713
820
|
type: string;
|
|
714
821
|
minimum: number;
|
|
715
822
|
maximum: number;
|
|
716
|
-
|
|
823
|
+
default?: undefined;
|
|
717
824
|
};
|
|
718
825
|
agent: {
|
|
719
826
|
type: string;
|
|
720
|
-
description
|
|
827
|
+
description?: undefined;
|
|
721
828
|
};
|
|
722
829
|
role: {
|
|
723
830
|
type: string;
|
|
724
|
-
description: string;
|
|
725
831
|
};
|
|
726
832
|
doc_path: {
|
|
727
833
|
type: string;
|
|
728
|
-
description: string;
|
|
729
834
|
};
|
|
730
835
|
tags: {
|
|
731
836
|
type: string;
|
|
732
837
|
items: {
|
|
733
838
|
type: string;
|
|
734
839
|
};
|
|
735
|
-
description
|
|
840
|
+
description?: undefined;
|
|
736
841
|
};
|
|
737
842
|
metadata: {
|
|
738
843
|
type: string;
|
|
739
|
-
description: string;
|
|
740
844
|
};
|
|
741
845
|
parent_id: {
|
|
742
846
|
type: string;
|
|
743
847
|
format: string;
|
|
744
|
-
description: string;
|
|
745
848
|
};
|
|
746
849
|
depends_on: {
|
|
747
850
|
type: string;
|
|
748
851
|
format: string;
|
|
852
|
+
};
|
|
853
|
+
type?: undefined;
|
|
854
|
+
content?: undefined;
|
|
855
|
+
importance?: undefined;
|
|
856
|
+
model?: undefined;
|
|
857
|
+
scope?: undefined;
|
|
858
|
+
is_global?: undefined;
|
|
859
|
+
ttlDays?: undefined;
|
|
860
|
+
supersedes?: undefined;
|
|
861
|
+
memory_id?: undefined;
|
|
862
|
+
application_context?: undefined;
|
|
863
|
+
query?: undefined;
|
|
864
|
+
prompt?: undefined;
|
|
865
|
+
current_tags?: undefined;
|
|
866
|
+
types?: undefined;
|
|
867
|
+
minImportance?: undefined;
|
|
868
|
+
limit?: undefined;
|
|
869
|
+
includeRecap?: undefined;
|
|
870
|
+
current_file_path?: undefined;
|
|
871
|
+
include_archived?: undefined;
|
|
872
|
+
signals?: undefined;
|
|
873
|
+
offset?: undefined;
|
|
874
|
+
action?: undefined;
|
|
875
|
+
tasks?: undefined;
|
|
876
|
+
};
|
|
877
|
+
required: string[];
|
|
878
|
+
};
|
|
879
|
+
} | {
|
|
880
|
+
name: string;
|
|
881
|
+
description: string;
|
|
882
|
+
inputSchema: {
|
|
883
|
+
type: string;
|
|
884
|
+
properties: {
|
|
885
|
+
repo: {
|
|
886
|
+
type: string;
|
|
887
|
+
description: string;
|
|
888
|
+
};
|
|
889
|
+
id: {
|
|
890
|
+
type: string;
|
|
891
|
+
format: string;
|
|
749
892
|
description: string;
|
|
750
893
|
};
|
|
751
894
|
type?: undefined;
|
|
895
|
+
title?: undefined;
|
|
752
896
|
content?: undefined;
|
|
753
897
|
importance?: undefined;
|
|
898
|
+
agent?: undefined;
|
|
754
899
|
model?: undefined;
|
|
755
900
|
scope?: undefined;
|
|
901
|
+
tags?: undefined;
|
|
756
902
|
is_global?: undefined;
|
|
757
903
|
ttlDays?: undefined;
|
|
758
904
|
supersedes?: undefined;
|
|
759
905
|
memory_id?: undefined;
|
|
906
|
+
status?: undefined;
|
|
760
907
|
application_context?: undefined;
|
|
761
908
|
query?: undefined;
|
|
762
909
|
prompt?: undefined;
|
|
@@ -769,6 +916,16 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
769
916
|
include_archived?: undefined;
|
|
770
917
|
signals?: undefined;
|
|
771
918
|
offset?: undefined;
|
|
919
|
+
task_code?: undefined;
|
|
920
|
+
phase?: undefined;
|
|
921
|
+
description?: undefined;
|
|
922
|
+
priority?: undefined;
|
|
923
|
+
role?: undefined;
|
|
924
|
+
doc_path?: undefined;
|
|
925
|
+
metadata?: undefined;
|
|
926
|
+
parent_id?: undefined;
|
|
927
|
+
depends_on?: undefined;
|
|
928
|
+
action?: undefined;
|
|
772
929
|
tasks?: undefined;
|
|
773
930
|
};
|
|
774
931
|
required: string[];
|
|
@@ -828,7 +985,6 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
828
985
|
current_file_path?: undefined;
|
|
829
986
|
include_archived?: undefined;
|
|
830
987
|
signals?: undefined;
|
|
831
|
-
action?: undefined;
|
|
832
988
|
task_code?: undefined;
|
|
833
989
|
description?: undefined;
|
|
834
990
|
priority?: undefined;
|
|
@@ -837,6 +993,7 @@ export declare const TOOL_DEFINITIONS: ({
|
|
|
837
993
|
metadata?: undefined;
|
|
838
994
|
parent_id?: undefined;
|
|
839
995
|
depends_on?: undefined;
|
|
996
|
+
action?: undefined;
|
|
840
997
|
tasks?: undefined;
|
|
841
998
|
};
|
|
842
999
|
required: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/tools/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;EAA0D,CAAC;AAGxF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;iBAa5B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;iBAe9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;iBAY7B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;EAAyE,CAAC;AACvG,eAAO,MAAM,kBAAkB,aAA2B,CAAC;AAE3D,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/tools/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;EAA0D,CAAC;AAGxF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;iBAa5B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;iBAe9B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;iBAY7B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;iBAGhC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;EAAyE,CAAC;AACvG,eAAO,MAAM,kBAAkB,aAA2B,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;iBAe3B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;iBAmB5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;iBAMzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkB/B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AAGH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuT5B,CAAC"}
|
package/dist/tools/schemas.js
CHANGED
|
@@ -64,10 +64,25 @@ export const MemorySummarizeSchema = z.object({
|
|
|
64
64
|
});
|
|
65
65
|
export const TaskStatusSchema = z.enum(["pending", "in_progress", "completed", "canceled", "blocked"]);
|
|
66
66
|
export const TaskPrioritySchema = z.number().min(1).max(5);
|
|
67
|
-
export const
|
|
68
|
-
action: z.enum(["create", "update", "list", "delete"]),
|
|
67
|
+
export const TaskCreateSchema = z.object({
|
|
69
68
|
repo: z.string().min(1),
|
|
70
|
-
|
|
69
|
+
task_code: z.string().min(1),
|
|
70
|
+
phase: z.string().min(1),
|
|
71
|
+
title: z.string().min(3).max(100),
|
|
72
|
+
description: z.string().min(1),
|
|
73
|
+
status: TaskStatusSchema.default("pending"),
|
|
74
|
+
priority: TaskPrioritySchema.default(3),
|
|
75
|
+
agent: z.string().optional(),
|
|
76
|
+
role: z.string().optional(),
|
|
77
|
+
doc_path: z.string().optional(),
|
|
78
|
+
tags: z.array(z.string()).optional(),
|
|
79
|
+
metadata: z.record(z.string(), z.any()).optional(),
|
|
80
|
+
parent_id: z.string().uuid().optional(),
|
|
81
|
+
depends_on: z.string().uuid().optional()
|
|
82
|
+
});
|
|
83
|
+
export const TaskUpdateSchema = z.object({
|
|
84
|
+
repo: z.string().min(1),
|
|
85
|
+
id: z.string().uuid(),
|
|
71
86
|
task_code: z.string().optional(),
|
|
72
87
|
phase: z.string().optional(),
|
|
73
88
|
title: z.string().min(3).max(100).optional(),
|
|
@@ -81,7 +96,7 @@ export const TaskManageSchema = z.object({
|
|
|
81
96
|
metadata: z.record(z.string(), z.any()).optional(),
|
|
82
97
|
parent_id: z.string().uuid().optional(),
|
|
83
98
|
depends_on: z.string().uuid().optional()
|
|
84
|
-
});
|
|
99
|
+
}).refine((data) => Object.keys(data).length > 2, { message: "At least one field besides repo and id must be provided for update" });
|
|
85
100
|
export const TaskListSchema = z.object({
|
|
86
101
|
repo: z.string().min(1),
|
|
87
102
|
status: TaskStatusSchema.optional(),
|
|
@@ -108,6 +123,10 @@ export const TaskBulkManageSchema = z.object({
|
|
|
108
123
|
depends_on: z.string().uuid().optional()
|
|
109
124
|
})).min(1)
|
|
110
125
|
});
|
|
126
|
+
export const TaskDeleteSchema = z.object({
|
|
127
|
+
repo: z.string().min(1),
|
|
128
|
+
id: z.string().uuid()
|
|
129
|
+
});
|
|
111
130
|
// Tool definitions for MCP
|
|
112
131
|
export const TOOL_DEFINITIONS = [
|
|
113
132
|
{
|
|
@@ -282,87 +301,64 @@ export const TOOL_DEFINITIONS = [
|
|
|
282
301
|
}
|
|
283
302
|
},
|
|
284
303
|
{
|
|
285
|
-
name: "task-
|
|
286
|
-
description: "
|
|
304
|
+
name: "task-create",
|
|
305
|
+
description: "Create a new task in a repository. task_code must be unique within the repository.",
|
|
287
306
|
inputSchema: {
|
|
288
307
|
type: "object",
|
|
289
308
|
properties: {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
},
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
},
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
},
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
},
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
},
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}
|
|
341
|
-
doc_path: {
|
|
342
|
-
type: "string",
|
|
343
|
-
description: "Path or URL to the relevant documentation for this task"
|
|
344
|
-
},
|
|
345
|
-
tags: {
|
|
346
|
-
type: "array",
|
|
347
|
-
items: { type: "string" },
|
|
348
|
-
description: "Optional tags for categorization"
|
|
349
|
-
},
|
|
350
|
-
metadata: {
|
|
351
|
-
type: "object",
|
|
352
|
-
description: "Arbitrary metadata for the task"
|
|
353
|
-
},
|
|
354
|
-
parent_id: {
|
|
355
|
-
type: "string",
|
|
356
|
-
format: "uuid",
|
|
357
|
-
description: "Parent task ID for hierarchical tasks"
|
|
358
|
-
},
|
|
359
|
-
depends_on: {
|
|
360
|
-
type: "string",
|
|
361
|
-
format: "uuid",
|
|
362
|
-
description: "Task ID that this task depends on"
|
|
363
|
-
}
|
|
309
|
+
repo: { type: "string", description: "Repository name" },
|
|
310
|
+
task_code: { type: "string", description: "Unique task code (e.g. TASK-001)" },
|
|
311
|
+
phase: { type: "string", description: "Project phase" },
|
|
312
|
+
title: { type: "string", minLength: 3, maxLength: 100 },
|
|
313
|
+
description: { type: "string" },
|
|
314
|
+
status: { type: "string", enum: ["pending", "in_progress", "completed", "canceled", "blocked"] },
|
|
315
|
+
priority: { type: "number", minimum: 1, maximum: 5, default: 3 },
|
|
316
|
+
agent: { type: "string" },
|
|
317
|
+
role: { type: "string" },
|
|
318
|
+
doc_path: { type: "string" },
|
|
319
|
+
tags: { type: "array", items: { type: "string" } },
|
|
320
|
+
metadata: { type: "object" },
|
|
321
|
+
parent_id: { type: "string", format: "uuid" },
|
|
322
|
+
depends_on: { type: "string", format: "uuid" }
|
|
323
|
+
},
|
|
324
|
+
required: ["repo", "task_code", "phase", "title", "description", "status"]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
name: "task-update",
|
|
329
|
+
description: "Update an existing task. Provide only the fields that need to be changed.",
|
|
330
|
+
inputSchema: {
|
|
331
|
+
type: "object",
|
|
332
|
+
properties: {
|
|
333
|
+
repo: { type: "string", description: "Repository name" },
|
|
334
|
+
id: { type: "string", format: "uuid", description: "Task ID" },
|
|
335
|
+
task_code: { type: "string" },
|
|
336
|
+
phase: { type: "string" },
|
|
337
|
+
title: { type: "string", minLength: 3, maxLength: 100 },
|
|
338
|
+
description: { type: "string" },
|
|
339
|
+
status: { type: "string", enum: ["pending", "in_progress", "completed", "canceled", "blocked"] },
|
|
340
|
+
priority: { type: "number", minimum: 1, maximum: 5 },
|
|
341
|
+
agent: { type: "string" },
|
|
342
|
+
role: { type: "string" },
|
|
343
|
+
doc_path: { type: "string" },
|
|
344
|
+
tags: { type: "array", items: { type: "string" } },
|
|
345
|
+
metadata: { type: "object" },
|
|
346
|
+
parent_id: { type: "string", format: "uuid" },
|
|
347
|
+
depends_on: { type: "string", format: "uuid" }
|
|
348
|
+
},
|
|
349
|
+
required: ["repo", "id"]
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
name: "task-delete",
|
|
354
|
+
description: "Delete a task from a repository.",
|
|
355
|
+
inputSchema: {
|
|
356
|
+
type: "object",
|
|
357
|
+
properties: {
|
|
358
|
+
repo: { type: "string", description: "Repository name" },
|
|
359
|
+
id: { type: "string", format: "uuid", description: "Task ID" }
|
|
364
360
|
},
|
|
365
|
-
required: ["
|
|
361
|
+
required: ["repo", "id"]
|
|
366
362
|
}
|
|
367
363
|
},
|
|
368
364
|
{
|