@wowok/agent-mcp 2.5.5 → 2.6.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.
- package/dist/config/runtime.js +3 -6
- package/dist/harness/checkpoint.js +2 -2
- package/dist/knowledge/flywheel-loop.js +2 -5
- package/dist/knowledge/overrides-loader.js +2 -4
- package/dist/knowledge/progress-ledger.js +3 -0
- package/dist/knowledge/progress-translation.js +5 -1
- package/dist/loop-engineering/improve.js +2 -4
- package/dist/project/deployment-bridge.d.ts +5 -0
- package/dist/project/deployment-bridge.js +96 -0
- package/dist/project/evaluation.js +10 -3
- package/dist/project/graph-builder.js +15 -2
- package/dist/project/handlers.d.ts +2 -0
- package/dist/project/handlers.js +115 -6
- package/dist/project/index.js +2 -6
- package/dist/project/project-store.js +2 -5
- package/dist/schema/config/index.d.ts +12 -12
- package/dist/schema/local/index.d.ts +108 -108
- package/dist/schema/local/index.js +21 -18
- package/dist/schema/messenger/index.d.ts +16 -16
- package/dist/schema/messenger/index.js +2 -2
- package/dist/schema/operations.d.ts +0 -6
- package/dist/schema/project/index.d.ts +271 -7
- package/dist/schema/project/index.js +52 -0
- package/dist/schema/query/index.d.ts +10 -5
- package/dist/schema/trust/index.d.ts +8 -8
- package/dist/schemas/account_operation.output.json +7 -21
- package/dist/schemas/account_operation.schema.json +9 -23
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +6 -6
- package/dist/schemas/project_operation.output.json +180 -0
- package/dist/schemas/project_operation.schema.json +14 -1
- package/dist/schemas/query_toolkit.output.json +7 -6
- package/dist/schemas/query_toolkit.schema.json +0 -4
- package/dist/telemetry/storage.js +2 -2
- package/dist/tools/handlers/onchain.js +13 -0
- package/dist/tools/handlers/project.js +22 -0
- package/dist/tools/index.js +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const ProjectObjectTypeEnum: z.ZodEnum<["service", "machine", "guard", "permission", "reward", "arb", "progress", "treasury", "demand", "repository", "contact", "order", "allocation", "personal", "payment", "proof"]>;
|
|
3
3
|
export declare const EdgeKindEnum: z.ZodEnum<["machine", "order_allocators", "arbitrations", "compensation_fund", "rewards", "buy_guard", "permission", "guard", "prev", "next", "forward", "parent", "service", "progress", "arbitration", "sub_order", "references"]>;
|
|
4
4
|
export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
5
|
-
action: z.ZodEnum<["list_projects", "create_project", "create_project_from_onchain", "update_project", "get_project_detail", "add_object", "remove_object", "update_object", "create_version", "build_graph", "get_graph", "evaluate_project", "save_evaluation", "compare_projects", "refresh_objects", "get_object_diff", "delete_project", "assemble_context"]>;
|
|
5
|
+
action: z.ZodEnum<["list_projects", "create_project", "create_project_from_onchain", "update_project", "get_project_detail", "add_object", "remove_object", "update_object", "create_version", "build_graph", "get_graph", "evaluate_project", "save_evaluation", "compare_projects", "refresh_objects", "get_object_diff", "delete_project", "assemble_context", "generate_deployment_doc"]>;
|
|
6
6
|
project: z.ZodOptional<z.ZodString>;
|
|
7
7
|
version: z.ZodOptional<z.ZodString>;
|
|
8
8
|
context_objects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -45,9 +45,12 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
45
45
|
diff_address: z.ZodOptional<z.ZodString>;
|
|
46
46
|
diff_from_time: z.ZodOptional<z.ZodNumber>;
|
|
47
47
|
diff_to_time: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
|
|
49
|
+
save: z.ZodOptional<z.ZodBoolean>;
|
|
48
50
|
}, "strict", z.ZodTypeAny, {
|
|
49
|
-
action: "list_projects" | "create_project" | "create_project_from_onchain" | "update_project" | "get_project_detail" | "add_object" | "remove_object" | "create_version" | "build_graph" | "get_graph" | "evaluate_project" | "save_evaluation" | "compare_projects" | "refresh_objects" | "get_object_diff" | "assemble_context" | "update_object" | "delete_project";
|
|
51
|
+
action: "list_projects" | "create_project" | "create_project_from_onchain" | "update_project" | "get_project_detail" | "add_object" | "remove_object" | "create_version" | "build_graph" | "get_graph" | "evaluate_project" | "save_evaluation" | "compare_projects" | "refresh_objects" | "get_object_diff" | "assemble_context" | "update_object" | "delete_project" | "generate_deployment_doc";
|
|
50
52
|
version?: string | undefined;
|
|
53
|
+
network?: "testnet" | "mainnet" | undefined;
|
|
51
54
|
project?: string | undefined;
|
|
52
55
|
service_address?: string | undefined;
|
|
53
56
|
context_objects?: string[] | undefined;
|
|
@@ -89,9 +92,11 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
89
92
|
diff_address?: string | undefined;
|
|
90
93
|
diff_from_time?: number | undefined;
|
|
91
94
|
diff_to_time?: number | undefined;
|
|
95
|
+
save?: boolean | undefined;
|
|
92
96
|
}, {
|
|
93
|
-
action: "list_projects" | "create_project" | "create_project_from_onchain" | "update_project" | "get_project_detail" | "add_object" | "remove_object" | "create_version" | "build_graph" | "get_graph" | "evaluate_project" | "save_evaluation" | "compare_projects" | "refresh_objects" | "get_object_diff" | "assemble_context" | "update_object" | "delete_project";
|
|
97
|
+
action: "list_projects" | "create_project" | "create_project_from_onchain" | "update_project" | "get_project_detail" | "add_object" | "remove_object" | "create_version" | "build_graph" | "get_graph" | "evaluate_project" | "save_evaluation" | "compare_projects" | "refresh_objects" | "get_object_diff" | "assemble_context" | "update_object" | "delete_project" | "generate_deployment_doc";
|
|
94
98
|
version?: string | undefined;
|
|
99
|
+
network?: "testnet" | "mainnet" | undefined;
|
|
95
100
|
project?: string | undefined;
|
|
96
101
|
service_address?: string | undefined;
|
|
97
102
|
context_objects?: string[] | undefined;
|
|
@@ -133,6 +138,7 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
|
|
|
133
138
|
diff_address?: string | undefined;
|
|
134
139
|
diff_from_time?: number | undefined;
|
|
135
140
|
diff_to_time?: number | undefined;
|
|
141
|
+
save?: boolean | undefined;
|
|
136
142
|
}>;
|
|
137
143
|
export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
138
144
|
result: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
|
|
@@ -155,6 +161,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
155
161
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
156
162
|
} & {
|
|
157
163
|
objectCount: z.ZodNumber;
|
|
164
|
+
evaluationCount: z.ZodNumber;
|
|
158
165
|
objectTypes: z.ZodArray<z.ZodString, "many">;
|
|
159
166
|
}, "strict", z.ZodTypeAny, {
|
|
160
167
|
status: "active" | "inactive" | "draft" | "archived";
|
|
@@ -173,6 +180,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
173
180
|
serviceAddress: string | null;
|
|
174
181
|
defaultAccount: string | null;
|
|
175
182
|
objectCount: number;
|
|
183
|
+
evaluationCount: number;
|
|
176
184
|
objectTypes: string[];
|
|
177
185
|
}, {
|
|
178
186
|
status: "active" | "inactive" | "draft" | "archived";
|
|
@@ -191,6 +199,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
191
199
|
serviceAddress: string | null;
|
|
192
200
|
defaultAccount: string | null;
|
|
193
201
|
objectCount: number;
|
|
202
|
+
evaluationCount: number;
|
|
194
203
|
objectTypes: string[];
|
|
195
204
|
}>, "many">;
|
|
196
205
|
total: z.ZodNumber;
|
|
@@ -213,6 +222,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
213
222
|
serviceAddress: string | null;
|
|
214
223
|
defaultAccount: string | null;
|
|
215
224
|
objectCount: number;
|
|
225
|
+
evaluationCount: number;
|
|
216
226
|
objectTypes: string[];
|
|
217
227
|
}[];
|
|
218
228
|
total: number;
|
|
@@ -235,6 +245,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
235
245
|
serviceAddress: string | null;
|
|
236
246
|
defaultAccount: string | null;
|
|
237
247
|
objectCount: number;
|
|
248
|
+
evaluationCount: number;
|
|
238
249
|
objectTypes: string[];
|
|
239
250
|
}[];
|
|
240
251
|
total: number;
|
|
@@ -649,17 +660,110 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
649
660
|
evalType: z.ZodEnum<["risk", "trust", "completeness", "value", "worth_buying"]>;
|
|
650
661
|
score: z.ZodNullable<z.ZodNumber>;
|
|
651
662
|
summary: z.ZodNullable<z.ZodString>;
|
|
663
|
+
details: z.ZodNullable<z.ZodObject<{
|
|
664
|
+
criterionScores: z.ZodArray<z.ZodObject<{
|
|
665
|
+
name: z.ZodString;
|
|
666
|
+
score: z.ZodNumber;
|
|
667
|
+
weight: z.ZodNumber;
|
|
668
|
+
rationale: z.ZodString;
|
|
669
|
+
}, "strict", z.ZodTypeAny, {
|
|
670
|
+
name: string;
|
|
671
|
+
score: number;
|
|
672
|
+
weight: number;
|
|
673
|
+
rationale: string;
|
|
674
|
+
}, {
|
|
675
|
+
name: string;
|
|
676
|
+
score: number;
|
|
677
|
+
weight: number;
|
|
678
|
+
rationale: string;
|
|
679
|
+
}>, "many">;
|
|
680
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
681
|
+
criterion: z.ZodString;
|
|
682
|
+
severity: z.ZodEnum<["critical", "warning", "info"]>;
|
|
683
|
+
message: z.ZodString;
|
|
684
|
+
deduction: z.ZodNumber;
|
|
685
|
+
}, "strict", z.ZodTypeAny, {
|
|
686
|
+
message: string;
|
|
687
|
+
severity: "info" | "critical" | "warning";
|
|
688
|
+
criterion: string;
|
|
689
|
+
deduction: number;
|
|
690
|
+
}, {
|
|
691
|
+
message: string;
|
|
692
|
+
severity: "info" | "critical" | "warning";
|
|
693
|
+
criterion: string;
|
|
694
|
+
deduction: number;
|
|
695
|
+
}>, "many">;
|
|
696
|
+
strengths: z.ZodArray<z.ZodString, "many">;
|
|
697
|
+
}, "strict", z.ZodTypeAny, {
|
|
698
|
+
criterionScores: {
|
|
699
|
+
name: string;
|
|
700
|
+
score: number;
|
|
701
|
+
weight: number;
|
|
702
|
+
rationale: string;
|
|
703
|
+
}[];
|
|
704
|
+
findings: {
|
|
705
|
+
message: string;
|
|
706
|
+
severity: "info" | "critical" | "warning";
|
|
707
|
+
criterion: string;
|
|
708
|
+
deduction: number;
|
|
709
|
+
}[];
|
|
710
|
+
strengths: string[];
|
|
711
|
+
}, {
|
|
712
|
+
criterionScores: {
|
|
713
|
+
name: string;
|
|
714
|
+
score: number;
|
|
715
|
+
weight: number;
|
|
716
|
+
rationale: string;
|
|
717
|
+
}[];
|
|
718
|
+
findings: {
|
|
719
|
+
message: string;
|
|
720
|
+
severity: "info" | "critical" | "warning";
|
|
721
|
+
criterion: string;
|
|
722
|
+
deduction: number;
|
|
723
|
+
}[];
|
|
724
|
+
strengths: string[];
|
|
725
|
+
}>>;
|
|
652
726
|
evaluatedAt: z.ZodNumber;
|
|
653
727
|
}, "strict", z.ZodTypeAny, {
|
|
654
728
|
id: string;
|
|
655
729
|
summary: string | null;
|
|
656
730
|
score: number | null;
|
|
731
|
+
details: {
|
|
732
|
+
criterionScores: {
|
|
733
|
+
name: string;
|
|
734
|
+
score: number;
|
|
735
|
+
weight: number;
|
|
736
|
+
rationale: string;
|
|
737
|
+
}[];
|
|
738
|
+
findings: {
|
|
739
|
+
message: string;
|
|
740
|
+
severity: "info" | "critical" | "warning";
|
|
741
|
+
criterion: string;
|
|
742
|
+
deduction: number;
|
|
743
|
+
}[];
|
|
744
|
+
strengths: string[];
|
|
745
|
+
} | null;
|
|
657
746
|
evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
658
747
|
evaluatedAt: number;
|
|
659
748
|
}, {
|
|
660
749
|
id: string;
|
|
661
750
|
summary: string | null;
|
|
662
751
|
score: number | null;
|
|
752
|
+
details: {
|
|
753
|
+
criterionScores: {
|
|
754
|
+
name: string;
|
|
755
|
+
score: number;
|
|
756
|
+
weight: number;
|
|
757
|
+
rationale: string;
|
|
758
|
+
}[];
|
|
759
|
+
findings: {
|
|
760
|
+
message: string;
|
|
761
|
+
severity: "info" | "critical" | "warning";
|
|
762
|
+
criterion: string;
|
|
763
|
+
deduction: number;
|
|
764
|
+
}[];
|
|
765
|
+
strengths: string[];
|
|
766
|
+
} | null;
|
|
663
767
|
evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
664
768
|
evaluatedAt: number;
|
|
665
769
|
}>, "many">;
|
|
@@ -711,6 +815,21 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
711
815
|
id: string;
|
|
712
816
|
summary: string | null;
|
|
713
817
|
score: number | null;
|
|
818
|
+
details: {
|
|
819
|
+
criterionScores: {
|
|
820
|
+
name: string;
|
|
821
|
+
score: number;
|
|
822
|
+
weight: number;
|
|
823
|
+
rationale: string;
|
|
824
|
+
}[];
|
|
825
|
+
findings: {
|
|
826
|
+
message: string;
|
|
827
|
+
severity: "info" | "critical" | "warning";
|
|
828
|
+
criterion: string;
|
|
829
|
+
deduction: number;
|
|
830
|
+
}[];
|
|
831
|
+
strengths: string[];
|
|
832
|
+
} | null;
|
|
714
833
|
evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
715
834
|
evaluatedAt: number;
|
|
716
835
|
}[];
|
|
@@ -754,6 +873,21 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
754
873
|
id: string;
|
|
755
874
|
summary: string | null;
|
|
756
875
|
score: number | null;
|
|
876
|
+
details: {
|
|
877
|
+
criterionScores: {
|
|
878
|
+
name: string;
|
|
879
|
+
score: number;
|
|
880
|
+
weight: number;
|
|
881
|
+
rationale: string;
|
|
882
|
+
}[];
|
|
883
|
+
findings: {
|
|
884
|
+
message: string;
|
|
885
|
+
severity: "info" | "critical" | "warning";
|
|
886
|
+
criterion: string;
|
|
887
|
+
deduction: number;
|
|
888
|
+
}[];
|
|
889
|
+
strengths: string[];
|
|
890
|
+
} | null;
|
|
757
891
|
evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
758
892
|
evaluatedAt: number;
|
|
759
893
|
}[];
|
|
@@ -1043,7 +1177,6 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1043
1177
|
summary: string;
|
|
1044
1178
|
action: "evaluate_project";
|
|
1045
1179
|
score: number;
|
|
1046
|
-
evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
1047
1180
|
criterionScores: {
|
|
1048
1181
|
name: string;
|
|
1049
1182
|
score: number;
|
|
@@ -1057,6 +1190,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1057
1190
|
deduction: number;
|
|
1058
1191
|
}[];
|
|
1059
1192
|
strengths: string[];
|
|
1193
|
+
evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
1060
1194
|
needsLlm: boolean;
|
|
1061
1195
|
evaluationId: string;
|
|
1062
1196
|
llmPrompt?: string | undefined;
|
|
@@ -1064,7 +1198,6 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1064
1198
|
summary: string;
|
|
1065
1199
|
action: "evaluate_project";
|
|
1066
1200
|
score: number;
|
|
1067
|
-
evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
1068
1201
|
criterionScores: {
|
|
1069
1202
|
name: string;
|
|
1070
1203
|
score: number;
|
|
@@ -1078,6 +1211,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1078
1211
|
deduction: number;
|
|
1079
1212
|
}[];
|
|
1080
1213
|
strengths: string[];
|
|
1214
|
+
evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
1081
1215
|
needsLlm: boolean;
|
|
1082
1216
|
evaluationId: string;
|
|
1083
1217
|
llmPrompt?: string | undefined;
|
|
@@ -1279,6 +1413,76 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1279
1413
|
proposal_created: boolean;
|
|
1280
1414
|
proposal_id?: string | undefined;
|
|
1281
1415
|
} | undefined;
|
|
1416
|
+
}>, z.ZodObject<{
|
|
1417
|
+
action: z.ZodLiteral<"generate_deployment_doc">;
|
|
1418
|
+
markdown: z.ZodString;
|
|
1419
|
+
validation: z.ZodObject<{
|
|
1420
|
+
valid: z.ZodBoolean;
|
|
1421
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
1422
|
+
check_id: z.ZodString;
|
|
1423
|
+
description: z.ZodString;
|
|
1424
|
+
status: z.ZodEnum<["PASS", "FAIL", "WARN"]>;
|
|
1425
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1426
|
+
}, "strict", z.ZodTypeAny, {
|
|
1427
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1428
|
+
description: string;
|
|
1429
|
+
check_id: string;
|
|
1430
|
+
notes?: string | undefined;
|
|
1431
|
+
}, {
|
|
1432
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1433
|
+
description: string;
|
|
1434
|
+
check_id: string;
|
|
1435
|
+
notes?: string | undefined;
|
|
1436
|
+
}>, "many">;
|
|
1437
|
+
errors: z.ZodArray<z.ZodString, "many">;
|
|
1438
|
+
}, "strict", z.ZodTypeAny, {
|
|
1439
|
+
valid: boolean;
|
|
1440
|
+
errors: string[];
|
|
1441
|
+
checks: {
|
|
1442
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1443
|
+
description: string;
|
|
1444
|
+
check_id: string;
|
|
1445
|
+
notes?: string | undefined;
|
|
1446
|
+
}[];
|
|
1447
|
+
}, {
|
|
1448
|
+
valid: boolean;
|
|
1449
|
+
errors: string[];
|
|
1450
|
+
checks: {
|
|
1451
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1452
|
+
description: string;
|
|
1453
|
+
check_id: string;
|
|
1454
|
+
notes?: string | undefined;
|
|
1455
|
+
}[];
|
|
1456
|
+
}>;
|
|
1457
|
+
saved: z.ZodBoolean;
|
|
1458
|
+
}, "strict", z.ZodTypeAny, {
|
|
1459
|
+
validation: {
|
|
1460
|
+
valid: boolean;
|
|
1461
|
+
errors: string[];
|
|
1462
|
+
checks: {
|
|
1463
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1464
|
+
description: string;
|
|
1465
|
+
check_id: string;
|
|
1466
|
+
notes?: string | undefined;
|
|
1467
|
+
}[];
|
|
1468
|
+
};
|
|
1469
|
+
markdown: string;
|
|
1470
|
+
action: "generate_deployment_doc";
|
|
1471
|
+
saved: boolean;
|
|
1472
|
+
}, {
|
|
1473
|
+
validation: {
|
|
1474
|
+
valid: boolean;
|
|
1475
|
+
errors: string[];
|
|
1476
|
+
checks: {
|
|
1477
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1478
|
+
description: string;
|
|
1479
|
+
check_id: string;
|
|
1480
|
+
notes?: string | undefined;
|
|
1481
|
+
}[];
|
|
1482
|
+
};
|
|
1483
|
+
markdown: string;
|
|
1484
|
+
action: "generate_deployment_doc";
|
|
1485
|
+
saved: boolean;
|
|
1282
1486
|
}>]>;
|
|
1283
1487
|
}, "strict", z.ZodTypeAny, {
|
|
1284
1488
|
result: {
|
|
@@ -1313,6 +1517,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1313
1517
|
serviceAddress: string | null;
|
|
1314
1518
|
defaultAccount: string | null;
|
|
1315
1519
|
objectCount: number;
|
|
1520
|
+
evaluationCount: number;
|
|
1316
1521
|
objectTypes: string[];
|
|
1317
1522
|
}[];
|
|
1318
1523
|
total: number;
|
|
@@ -1420,6 +1625,21 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1420
1625
|
id: string;
|
|
1421
1626
|
summary: string | null;
|
|
1422
1627
|
score: number | null;
|
|
1628
|
+
details: {
|
|
1629
|
+
criterionScores: {
|
|
1630
|
+
name: string;
|
|
1631
|
+
score: number;
|
|
1632
|
+
weight: number;
|
|
1633
|
+
rationale: string;
|
|
1634
|
+
}[];
|
|
1635
|
+
findings: {
|
|
1636
|
+
message: string;
|
|
1637
|
+
severity: "info" | "critical" | "warning";
|
|
1638
|
+
criterion: string;
|
|
1639
|
+
deduction: number;
|
|
1640
|
+
}[];
|
|
1641
|
+
strengths: string[];
|
|
1642
|
+
} | null;
|
|
1423
1643
|
evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
1424
1644
|
evaluatedAt: number;
|
|
1425
1645
|
}[];
|
|
@@ -1488,7 +1708,6 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1488
1708
|
summary: string;
|
|
1489
1709
|
action: "evaluate_project";
|
|
1490
1710
|
score: number;
|
|
1491
|
-
evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
1492
1711
|
criterionScores: {
|
|
1493
1712
|
name: string;
|
|
1494
1713
|
score: number;
|
|
@@ -1502,6 +1721,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1502
1721
|
deduction: number;
|
|
1503
1722
|
}[];
|
|
1504
1723
|
strengths: string[];
|
|
1724
|
+
evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
1505
1725
|
needsLlm: boolean;
|
|
1506
1726
|
evaluationId: string;
|
|
1507
1727
|
llmPrompt?: string | undefined;
|
|
@@ -1544,6 +1764,20 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1544
1764
|
oldValue?: unknown;
|
|
1545
1765
|
newValue?: unknown;
|
|
1546
1766
|
}[];
|
|
1767
|
+
} | {
|
|
1768
|
+
validation: {
|
|
1769
|
+
valid: boolean;
|
|
1770
|
+
errors: string[];
|
|
1771
|
+
checks: {
|
|
1772
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
1773
|
+
description: string;
|
|
1774
|
+
check_id: string;
|
|
1775
|
+
notes?: string | undefined;
|
|
1776
|
+
}[];
|
|
1777
|
+
};
|
|
1778
|
+
markdown: string;
|
|
1779
|
+
action: "generate_deployment_doc";
|
|
1780
|
+
saved: boolean;
|
|
1547
1781
|
};
|
|
1548
1782
|
}, {
|
|
1549
1783
|
result: {
|
|
@@ -1578,6 +1812,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1578
1812
|
serviceAddress: string | null;
|
|
1579
1813
|
defaultAccount: string | null;
|
|
1580
1814
|
objectCount: number;
|
|
1815
|
+
evaluationCount: number;
|
|
1581
1816
|
objectTypes: string[];
|
|
1582
1817
|
}[];
|
|
1583
1818
|
total: number;
|
|
@@ -1685,6 +1920,21 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1685
1920
|
id: string;
|
|
1686
1921
|
summary: string | null;
|
|
1687
1922
|
score: number | null;
|
|
1923
|
+
details: {
|
|
1924
|
+
criterionScores: {
|
|
1925
|
+
name: string;
|
|
1926
|
+
score: number;
|
|
1927
|
+
weight: number;
|
|
1928
|
+
rationale: string;
|
|
1929
|
+
}[];
|
|
1930
|
+
findings: {
|
|
1931
|
+
message: string;
|
|
1932
|
+
severity: "info" | "critical" | "warning";
|
|
1933
|
+
criterion: string;
|
|
1934
|
+
deduction: number;
|
|
1935
|
+
}[];
|
|
1936
|
+
strengths: string[];
|
|
1937
|
+
} | null;
|
|
1688
1938
|
evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
1689
1939
|
evaluatedAt: number;
|
|
1690
1940
|
}[];
|
|
@@ -1753,7 +2003,6 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1753
2003
|
summary: string;
|
|
1754
2004
|
action: "evaluate_project";
|
|
1755
2005
|
score: number;
|
|
1756
|
-
evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
1757
2006
|
criterionScores: {
|
|
1758
2007
|
name: string;
|
|
1759
2008
|
score: number;
|
|
@@ -1767,6 +2016,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1767
2016
|
deduction: number;
|
|
1768
2017
|
}[];
|
|
1769
2018
|
strengths: string[];
|
|
2019
|
+
evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
|
|
1770
2020
|
needsLlm: boolean;
|
|
1771
2021
|
evaluationId: string;
|
|
1772
2022
|
llmPrompt?: string | undefined;
|
|
@@ -1809,5 +2059,19 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
|
|
|
1809
2059
|
oldValue?: unknown;
|
|
1810
2060
|
newValue?: unknown;
|
|
1811
2061
|
}[];
|
|
2062
|
+
} | {
|
|
2063
|
+
validation: {
|
|
2064
|
+
valid: boolean;
|
|
2065
|
+
errors: string[];
|
|
2066
|
+
checks: {
|
|
2067
|
+
status: "PASS" | "FAIL" | "WARN";
|
|
2068
|
+
description: string;
|
|
2069
|
+
check_id: string;
|
|
2070
|
+
notes?: string | undefined;
|
|
2071
|
+
}[];
|
|
2072
|
+
};
|
|
2073
|
+
markdown: string;
|
|
2074
|
+
action: "generate_deployment_doc";
|
|
2075
|
+
saved: boolean;
|
|
1812
2076
|
};
|
|
1813
2077
|
}>;
|
|
@@ -69,6 +69,7 @@ export const ProjectOperationInputSchema = z
|
|
|
69
69
|
"get_object_diff",
|
|
70
70
|
"delete_project",
|
|
71
71
|
"assemble_context",
|
|
72
|
+
"generate_deployment_doc",
|
|
72
73
|
])
|
|
73
74
|
.describe("Action to perform. Two categories:\n" +
|
|
74
75
|
"1. Project Entity + Evaluation (15, GLM6): list_projects, create_project, create_project_from_onchain, update_project, get_project_detail, add_object, remove_object, create_version, build_graph, get_graph, evaluate_project, save_evaluation, compare_projects, refresh_objects, get_object_diff. Projects are first-class entities with SQLite persistence, rigid project-object relationships, three-pathway graph construction, and a dual rule-based + LLM-assisted evaluation engine.\n" +
|
|
@@ -256,6 +257,14 @@ export const ProjectOperationInputSchema = z
|
|
|
256
257
|
.int()
|
|
257
258
|
.optional()
|
|
258
259
|
.describe("End timestamp (ms) for get_object_diff."),
|
|
260
|
+
network: z
|
|
261
|
+
.enum(["testnet", "mainnet"])
|
|
262
|
+
.optional()
|
|
263
|
+
.describe("Target network for generate_deployment_doc. Required when action='generate_deployment_doc'."),
|
|
264
|
+
save: z
|
|
265
|
+
.boolean()
|
|
266
|
+
.optional()
|
|
267
|
+
.describe("When true (default), persist the generated MD to SQLite project_documents table for generate_deployment_doc."),
|
|
259
268
|
})
|
|
260
269
|
.strict();
|
|
261
270
|
const AssembleContextResultSchema = z
|
|
@@ -335,6 +344,7 @@ const ProjectSchema = z
|
|
|
335
344
|
.strict();
|
|
336
345
|
const ProjectListItemSchema = ProjectSchema.extend({
|
|
337
346
|
objectCount: z.number().describe("Number of objects in this project (from project_objects table)."),
|
|
347
|
+
evaluationCount: z.number().describe("Number of stored evaluations for this project (from evaluations table)."),
|
|
338
348
|
objectTypes: z.array(z.string()).describe("Distinct object types in this project (e.g. ['Service','Machine'])."),
|
|
339
349
|
});
|
|
340
350
|
const ListProjectsResultSchema = z
|
|
@@ -358,6 +368,29 @@ const CreateProjectFromOnchainResultSchema = z
|
|
|
358
368
|
const UpdateProjectResultSchema = z
|
|
359
369
|
.object({ action: z.literal("update_project"), project: ProjectSchema.describe("The updated project.") })
|
|
360
370
|
.strict();
|
|
371
|
+
const EvaluationDetailsSchema = z
|
|
372
|
+
.object({
|
|
373
|
+
criterionScores: z
|
|
374
|
+
.array(z.object({
|
|
375
|
+
name: z.string().describe("Criterion name (e.g. 'Service Published', 'Governance Present')."),
|
|
376
|
+
score: z.number().describe("Per-criterion score (0-100, higher = better)."),
|
|
377
|
+
weight: z.number().describe("Weight in the overall score (0-1)."),
|
|
378
|
+
rationale: z.string().describe("Why this score was assigned."),
|
|
379
|
+
}).strict())
|
|
380
|
+
.describe("Per-criterion scores with rationale."),
|
|
381
|
+
findings: z
|
|
382
|
+
.array(z.object({
|
|
383
|
+
criterion: z.string().describe("Criterion this finding relates to."),
|
|
384
|
+
severity: z.enum(["critical", "warning", "info"]).describe("Severity level: critical (blocks deployment), warning (should fix), info (advisory)."),
|
|
385
|
+
message: z.string().describe("Human-readable finding description."),
|
|
386
|
+
deduction: z.number().describe("Score deduction applied (negative number, e.g. -20)."),
|
|
387
|
+
}).strict())
|
|
388
|
+
.describe("Negative findings (warnings/critical issues) with deductions."),
|
|
389
|
+
strengths: z
|
|
390
|
+
.array(z.string())
|
|
391
|
+
.describe("Positive evidence explaining high scores."),
|
|
392
|
+
})
|
|
393
|
+
.strict();
|
|
361
394
|
const GetProjectDetailResultSchema = z
|
|
362
395
|
.object({
|
|
363
396
|
action: z.literal("get_project_detail"),
|
|
@@ -370,6 +403,7 @@ const GetProjectDetailResultSchema = z
|
|
|
370
403
|
evalType: z.enum(["risk", "trust", "completeness", "value", "worth_buying"]),
|
|
371
404
|
score: z.number().nullable(),
|
|
372
405
|
summary: z.string().nullable(),
|
|
406
|
+
details: EvaluationDetailsSchema.nullable().describe("Structured inspection content (criterion scores, findings, strengths). Null for evaluations created before details were stored."),
|
|
373
407
|
evaluatedAt: z.number(),
|
|
374
408
|
}).strict())
|
|
375
409
|
.describe("Stored evaluation results (most recent first)."),
|
|
@@ -505,6 +539,23 @@ const GetObjectDiffResultSchema = z
|
|
|
505
539
|
}).strict()).describe("Changed fields between the two timestamps."),
|
|
506
540
|
})
|
|
507
541
|
.strict();
|
|
542
|
+
const GenerateDeploymentDocResultSchema = z
|
|
543
|
+
.object({
|
|
544
|
+
action: z.literal("generate_deployment_doc"),
|
|
545
|
+
markdown: z.string().describe("Generated deployment document markdown content (follows 71-deployment-list-spec)."),
|
|
546
|
+
validation: z.object({
|
|
547
|
+
valid: z.boolean().describe("True iff no D-check FAIL."),
|
|
548
|
+
checks: z.array(z.object({
|
|
549
|
+
check_id: z.string(),
|
|
550
|
+
description: z.string(),
|
|
551
|
+
status: z.enum(["PASS", "FAIL", "WARN"]),
|
|
552
|
+
notes: z.string().optional(),
|
|
553
|
+
}).strict()).describe("D-01..D-18 check results."),
|
|
554
|
+
errors: z.array(z.string()).describe("List of FAIL error messages."),
|
|
555
|
+
}).strict().describe("Deployment doc validation result against D-01..D-18."),
|
|
556
|
+
saved: z.boolean().describe("Whether the markdown was persisted to SQLite project_documents table."),
|
|
557
|
+
})
|
|
558
|
+
.strict();
|
|
508
559
|
export const ProjectOperationOutputSchema = z
|
|
509
560
|
.object({
|
|
510
561
|
result: z.discriminatedUnion("action", [
|
|
@@ -526,6 +577,7 @@ export const ProjectOperationOutputSchema = z
|
|
|
526
577
|
GetObjectDiffResultSchema,
|
|
527
578
|
DeleteProjectResultSchema,
|
|
528
579
|
AssembleContextResultSchema,
|
|
580
|
+
GenerateDeploymentDocResultSchema,
|
|
529
581
|
]).describe("Query result — shape depends on action"),
|
|
530
582
|
})
|
|
531
583
|
.strict();
|
|
@@ -48722,25 +48722,28 @@ export declare const LocalQueryResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
48722
48722
|
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
48723
48723
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
48724
48724
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
48725
|
-
|
|
48725
|
+
messenger: z.ZodOptional<z.ZodBoolean>;
|
|
48726
|
+
suspendedName: z.ZodOptional<z.ZodString>;
|
|
48726
48727
|
}, "strip", z.ZodTypeAny, {
|
|
48727
48728
|
address: string;
|
|
48728
48729
|
name?: string | undefined;
|
|
48729
48730
|
createdAt?: number | undefined;
|
|
48730
48731
|
updatedAt?: number | undefined;
|
|
48731
|
-
|
|
48732
|
+
messenger?: boolean | undefined;
|
|
48732
48733
|
suspended?: boolean | undefined;
|
|
48733
48734
|
pubkey?: string | undefined;
|
|
48734
48735
|
secret?: string | undefined;
|
|
48736
|
+
suspendedName?: string | undefined;
|
|
48735
48737
|
}, {
|
|
48736
48738
|
address: string;
|
|
48737
48739
|
name?: string | undefined;
|
|
48738
48740
|
createdAt?: number | undefined;
|
|
48739
48741
|
updatedAt?: number | undefined;
|
|
48740
|
-
|
|
48742
|
+
messenger?: boolean | undefined;
|
|
48741
48743
|
suspended?: boolean | undefined;
|
|
48742
48744
|
pubkey?: string | undefined;
|
|
48743
48745
|
secret?: string | undefined;
|
|
48746
|
+
suspendedName?: string | undefined;
|
|
48744
48747
|
}>, "many">;
|
|
48745
48748
|
}, "strip", z.ZodTypeAny, {
|
|
48746
48749
|
result: {
|
|
@@ -48748,10 +48751,11 @@ export declare const LocalQueryResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
48748
48751
|
name?: string | undefined;
|
|
48749
48752
|
createdAt?: number | undefined;
|
|
48750
48753
|
updatedAt?: number | undefined;
|
|
48751
|
-
|
|
48754
|
+
messenger?: boolean | undefined;
|
|
48752
48755
|
suspended?: boolean | undefined;
|
|
48753
48756
|
pubkey?: string | undefined;
|
|
48754
48757
|
secret?: string | undefined;
|
|
48758
|
+
suspendedName?: string | undefined;
|
|
48755
48759
|
}[];
|
|
48756
48760
|
query_type: "account_list";
|
|
48757
48761
|
}, {
|
|
@@ -48760,10 +48764,11 @@ export declare const LocalQueryResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
48760
48764
|
name?: string | undefined;
|
|
48761
48765
|
createdAt?: number | undefined;
|
|
48762
48766
|
updatedAt?: number | undefined;
|
|
48763
|
-
|
|
48767
|
+
messenger?: boolean | undefined;
|
|
48764
48768
|
suspended?: boolean | undefined;
|
|
48765
48769
|
pubkey?: string | undefined;
|
|
48766
48770
|
secret?: string | undefined;
|
|
48771
|
+
suspendedName?: string | undefined;
|
|
48767
48772
|
}[];
|
|
48768
48773
|
query_type: "account_list";
|
|
48769
48774
|
}>, z.ZodObject<{
|