@wowok/agent-mcp 2.5.0 → 2.5.2

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.
@@ -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", "list_objects", "shareable", "dependencies", "referenced_by", "pre_publish_check", "cross_project_refs", "graph_stats", "save_graph", "load_graph", "analyze_intent", "aggregate_risks", "generate_deployment_doc", "trace_substeps"]>;
5
+ action: z.ZodEnum<["list_projects", "list_objects", "shareable", "dependencies", "referenced_by", "pre_publish_check", "cross_project_refs", "graph_stats", "save_graph", "load_graph", "analyze_intent", "aggregate_risks", "generate_deployment_doc", "trace_substeps", "get_project_status"]>;
6
6
  project: z.ZodOptional<z.ZodString>;
7
7
  version: z.ZodOptional<z.ZodString>;
8
8
  object: z.ZodOptional<z.ZodString>;
@@ -246,7 +246,7 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
246
246
  } | undefined;
247
247
  }>, "many">>;
248
248
  }, "strict", z.ZodTypeAny, {
249
- action: "dependencies" | "pre_publish_check" | "referenced_by" | "list_projects" | "list_objects" | "shareable" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph" | "analyze_intent" | "aggregate_risks" | "generate_deployment_doc" | "trace_substeps";
249
+ action: "dependencies" | "pre_publish_check" | "referenced_by" | "list_projects" | "list_objects" | "shareable" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph" | "analyze_intent" | "aggregate_risks" | "generate_deployment_doc" | "trace_substeps" | "get_project_status";
250
250
  object?: string | undefined;
251
251
  version?: string | undefined;
252
252
  network?: "testnet" | "mainnet" | undefined;
@@ -330,7 +330,7 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
330
330
  } | undefined;
331
331
  }[] | undefined;
332
332
  }, {
333
- action: "dependencies" | "pre_publish_check" | "referenced_by" | "list_projects" | "list_objects" | "shareable" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph" | "analyze_intent" | "aggregate_risks" | "generate_deployment_doc" | "trace_substeps";
333
+ action: "dependencies" | "pre_publish_check" | "referenced_by" | "list_projects" | "list_objects" | "shareable" | "cross_project_refs" | "graph_stats" | "save_graph" | "load_graph" | "analyze_intent" | "aggregate_risks" | "generate_deployment_doc" | "trace_substeps" | "get_project_status";
334
334
  object?: string | undefined;
335
335
  version?: string | undefined;
336
336
  network?: "testnet" | "mainnet" | undefined;
@@ -589,6 +589,8 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
589
589
  }>>;
590
590
  overall_completeness: z.ZodEnum<["complete", "partial", "empty"]>;
591
591
  next_step: z.ZodString;
592
+ recommended_creation_order: z.ZodArray<z.ZodString, "many">;
593
+ next_action: z.ZodEnum<["aggregate_risks", "none"]>;
592
594
  warnings: z.ZodArray<z.ZodString, "many">;
593
595
  }, "strict", z.ZodTypeAny, {
594
596
  action: "analyze_intent";
@@ -616,6 +618,8 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
616
618
  };
617
619
  overall_completeness: "partial" | "complete" | "empty";
618
620
  next_step: string;
621
+ recommended_creation_order: string[];
622
+ next_action: "none" | "aggregate_risks";
619
623
  }, {
620
624
  action: "analyze_intent";
621
625
  warnings: string[];
@@ -642,6 +646,8 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
642
646
  };
643
647
  overall_completeness: "partial" | "complete" | "empty";
644
648
  next_step: string;
649
+ recommended_creation_order: string[];
650
+ next_action: "none" | "aggregate_risks";
645
651
  }>, z.ZodObject<{
646
652
  action: z.ZodLiteral<"aggregate_risks">;
647
653
  namespace: z.ZodObject<{
@@ -736,15 +742,36 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
736
742
  risk_rule_id: string;
737
743
  fix_suggestion: string;
738
744
  }>, "many">>;
745
+ fix_suggestions_grouped: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
746
+ risk_rule_id: z.ZodString;
747
+ severity: z.ZodEnum<["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFO"]>;
748
+ message: z.ZodString;
749
+ fix_suggestion: z.ZodString;
750
+ entry_id: z.ZodString;
751
+ }, "strip", z.ZodTypeAny, {
752
+ message: string;
753
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
754
+ entry_id: string;
755
+ risk_rule_id: string;
756
+ fix_suggestion: string;
757
+ }, {
758
+ message: string;
759
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
760
+ entry_id: string;
761
+ risk_rule_id: string;
762
+ fix_suggestion: string;
763
+ }>, "many">>>;
739
764
  calibrated_at: z.ZodNumber;
740
765
  warnings: z.ZodArray<z.ZodString, "many">;
741
766
  can_proceed: z.ZodBoolean;
767
+ next_action: z.ZodEnum<["generate_deployment_doc", "fix_risks", "none"]>;
742
768
  user_action_required: z.ZodString;
743
769
  }, "strict", z.ZodTypeAny, {
744
770
  status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
745
771
  action: "aggregate_risks";
746
772
  warnings: string[];
747
773
  user_action_required: string;
774
+ next_action: "none" | "generate_deployment_doc" | "fix_risks";
748
775
  namespace: {
749
776
  version: string;
750
777
  prefix: string;
@@ -778,11 +805,19 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
778
805
  risk_rule_id: string;
779
806
  fix_suggestion: string;
780
807
  }[] | undefined;
808
+ fix_suggestions_grouped?: Record<string, {
809
+ message: string;
810
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
811
+ entry_id: string;
812
+ risk_rule_id: string;
813
+ fix_suggestion: string;
814
+ }[]> | undefined;
781
815
  }, {
782
816
  status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
783
817
  action: "aggregate_risks";
784
818
  warnings: string[];
785
819
  user_action_required: string;
820
+ next_action: "none" | "generate_deployment_doc" | "fix_risks";
786
821
  namespace: {
787
822
  version: string;
788
823
  prefix: string;
@@ -816,6 +851,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
816
851
  risk_rule_id: string;
817
852
  fix_suggestion: string;
818
853
  }[] | undefined;
854
+ fix_suggestions_grouped?: Record<string, {
855
+ message: string;
856
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
857
+ entry_id: string;
858
+ risk_rule_id: string;
859
+ fix_suggestion: string;
860
+ }[]> | undefined;
819
861
  }>, z.ZodObject<{
820
862
  action: z.ZodLiteral<"generate_deployment_doc">;
821
863
  markdown: z.ZodString;
@@ -876,7 +918,46 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
876
918
  notes?: string | undefined;
877
919
  }[];
878
920
  }>>;
921
+ estimated_gas: z.ZodOptional<z.ZodObject<{
922
+ total_gas_mist: z.ZodNumber;
923
+ per_object: z.ZodArray<z.ZodObject<{
924
+ entry_id: z.ZodString;
925
+ object_type: z.ZodString;
926
+ create_gas_mist: z.ZodNumber;
927
+ publish_gas_mist: z.ZodNumber;
928
+ }, "strip", z.ZodTypeAny, {
929
+ object_type: string;
930
+ entry_id: string;
931
+ create_gas_mist: number;
932
+ publish_gas_mist: number;
933
+ }, {
934
+ object_type: string;
935
+ entry_id: string;
936
+ create_gas_mist: number;
937
+ publish_gas_mist: number;
938
+ }>, "many">;
939
+ publish_gas_mist: z.ZodNumber;
940
+ }, "strip", z.ZodTypeAny, {
941
+ total_gas_mist: number;
942
+ per_object: {
943
+ object_type: string;
944
+ entry_id: string;
945
+ create_gas_mist: number;
946
+ publish_gas_mist: number;
947
+ }[];
948
+ publish_gas_mist: number;
949
+ }, {
950
+ total_gas_mist: number;
951
+ per_object: {
952
+ object_type: string;
953
+ entry_id: string;
954
+ create_gas_mist: number;
955
+ publish_gas_mist: number;
956
+ }[];
957
+ publish_gas_mist: number;
958
+ }>>;
879
959
  can_proceed: z.ZodBoolean;
960
+ next_action: z.ZodEnum<["trace_substeps", "fix_doc_errors", "none"]>;
880
961
  user_action_required: z.ZodString;
881
962
  }, "strict", z.ZodTypeAny, {
882
963
  markdown: string;
@@ -889,6 +970,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
889
970
  };
890
971
  action: "generate_deployment_doc";
891
972
  user_action_required: string;
973
+ next_action: "none" | "trace_substeps" | "fix_doc_errors";
892
974
  can_proceed: boolean;
893
975
  validation?: {
894
976
  valid: boolean;
@@ -900,6 +982,16 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
900
982
  notes?: string | undefined;
901
983
  }[];
902
984
  } | undefined;
985
+ estimated_gas?: {
986
+ total_gas_mist: number;
987
+ per_object: {
988
+ object_type: string;
989
+ entry_id: string;
990
+ create_gas_mist: number;
991
+ publish_gas_mist: number;
992
+ }[];
993
+ publish_gas_mist: number;
994
+ } | undefined;
903
995
  }, {
904
996
  markdown: string;
905
997
  meta: {
@@ -911,6 +1003,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
911
1003
  };
912
1004
  action: "generate_deployment_doc";
913
1005
  user_action_required: string;
1006
+ next_action: "none" | "trace_substeps" | "fix_doc_errors";
914
1007
  can_proceed: boolean;
915
1008
  validation?: {
916
1009
  valid: boolean;
@@ -922,6 +1015,16 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
922
1015
  notes?: string | undefined;
923
1016
  }[];
924
1017
  } | undefined;
1018
+ estimated_gas?: {
1019
+ total_gas_mist: number;
1020
+ per_object: {
1021
+ object_type: string;
1022
+ entry_id: string;
1023
+ create_gas_mist: number;
1024
+ publish_gas_mist: number;
1025
+ }[];
1026
+ publish_gas_mist: number;
1027
+ } | undefined;
925
1028
  }>, z.ZodObject<{
926
1029
  action: z.ZodLiteral<"trace_substeps">;
927
1030
  namespace: z.ZodObject<{
@@ -1022,12 +1125,14 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1022
1125
  check_id: "D-10";
1023
1126
  }>;
1024
1127
  can_proceed: z.ZodBoolean;
1128
+ next_action: z.ZodEnum<["deploy", "fix_substeps", "none"]>;
1025
1129
  user_action_required: z.ZodString;
1026
1130
  }, "strict", z.ZodTypeAny, {
1027
1131
  network: "testnet" | "mainnet";
1028
1132
  action: "trace_substeps";
1029
1133
  user_action_required: string;
1030
1134
  topological_order: string[];
1135
+ next_action: "none" | "deploy" | "fix_substeps";
1031
1136
  namespace: {
1032
1137
  version: string;
1033
1138
  prefix: string;
@@ -1071,6 +1176,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1071
1176
  action: "trace_substeps";
1072
1177
  user_action_required: string;
1073
1178
  topological_order: string[];
1179
+ next_action: "none" | "deploy" | "fix_substeps";
1074
1180
  namespace: {
1075
1181
  version: string;
1076
1182
  prefix: string;
@@ -1109,6 +1215,48 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1109
1215
  description: string;
1110
1216
  check_id: "D-10";
1111
1217
  };
1218
+ }>, z.ZodObject<{
1219
+ action: z.ZodLiteral<"get_project_status">;
1220
+ project: z.ZodString;
1221
+ version: z.ZodString;
1222
+ stage: z.ZodNumber;
1223
+ stage_name: z.ZodString;
1224
+ stage_description: z.ZodString;
1225
+ next_action: z.ZodString;
1226
+ can_proceed: z.ZodBoolean;
1227
+ last_updated: z.ZodOptional<z.ZodNumber>;
1228
+ risk_status: z.ZodOptional<z.ZodString>;
1229
+ risk_can_proceed: z.ZodOptional<z.ZodBoolean>;
1230
+ doc_generated: z.ZodOptional<z.ZodBoolean>;
1231
+ trace_coherent: z.ZodOptional<z.ZodBoolean>;
1232
+ }, "strict", z.ZodTypeAny, {
1233
+ version: string;
1234
+ action: "get_project_status";
1235
+ stage: number;
1236
+ project: string;
1237
+ next_action: string;
1238
+ can_proceed: boolean;
1239
+ stage_name: string;
1240
+ stage_description: string;
1241
+ risk_status?: string | undefined;
1242
+ last_updated?: number | undefined;
1243
+ risk_can_proceed?: boolean | undefined;
1244
+ doc_generated?: boolean | undefined;
1245
+ trace_coherent?: boolean | undefined;
1246
+ }, {
1247
+ version: string;
1248
+ action: "get_project_status";
1249
+ stage: number;
1250
+ project: string;
1251
+ next_action: string;
1252
+ can_proceed: boolean;
1253
+ stage_name: string;
1254
+ stage_description: string;
1255
+ risk_status?: string | undefined;
1256
+ last_updated?: number | undefined;
1257
+ risk_can_proceed?: boolean | undefined;
1258
+ doc_generated?: boolean | undefined;
1259
+ trace_coherent?: boolean | undefined;
1112
1260
  }>]>;
1113
1261
  }, "strict", z.ZodTypeAny, {
1114
1262
  result: {
@@ -1137,11 +1285,14 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1137
1285
  };
1138
1286
  overall_completeness: "partial" | "complete" | "empty";
1139
1287
  next_step: string;
1288
+ recommended_creation_order: string[];
1289
+ next_action: "none" | "aggregate_risks";
1140
1290
  } | {
1141
1291
  status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
1142
1292
  action: "aggregate_risks";
1143
1293
  warnings: string[];
1144
1294
  user_action_required: string;
1295
+ next_action: "none" | "generate_deployment_doc" | "fix_risks";
1145
1296
  namespace: {
1146
1297
  version: string;
1147
1298
  prefix: string;
@@ -1175,6 +1326,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1175
1326
  risk_rule_id: string;
1176
1327
  fix_suggestion: string;
1177
1328
  }[] | undefined;
1329
+ fix_suggestions_grouped?: Record<string, {
1330
+ message: string;
1331
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
1332
+ entry_id: string;
1333
+ risk_rule_id: string;
1334
+ fix_suggestion: string;
1335
+ }[]> | undefined;
1178
1336
  } | {
1179
1337
  markdown: string;
1180
1338
  meta: {
@@ -1186,6 +1344,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1186
1344
  };
1187
1345
  action: "generate_deployment_doc";
1188
1346
  user_action_required: string;
1347
+ next_action: "none" | "trace_substeps" | "fix_doc_errors";
1189
1348
  can_proceed: boolean;
1190
1349
  validation?: {
1191
1350
  valid: boolean;
@@ -1197,11 +1356,22 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1197
1356
  notes?: string | undefined;
1198
1357
  }[];
1199
1358
  } | undefined;
1359
+ estimated_gas?: {
1360
+ total_gas_mist: number;
1361
+ per_object: {
1362
+ object_type: string;
1363
+ entry_id: string;
1364
+ create_gas_mist: number;
1365
+ publish_gas_mist: number;
1366
+ }[];
1367
+ publish_gas_mist: number;
1368
+ } | undefined;
1200
1369
  } | {
1201
1370
  network: "testnet" | "mainnet";
1202
1371
  action: "trace_substeps";
1203
1372
  user_action_required: string;
1204
1373
  topological_order: string[];
1374
+ next_action: "none" | "deploy" | "fix_substeps";
1205
1375
  namespace: {
1206
1376
  version: string;
1207
1377
  prefix: string;
@@ -1240,6 +1410,20 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1240
1410
  description: string;
1241
1411
  check_id: "D-10";
1242
1412
  };
1413
+ } | {
1414
+ version: string;
1415
+ action: "get_project_status";
1416
+ stage: number;
1417
+ project: string;
1418
+ next_action: string;
1419
+ can_proceed: boolean;
1420
+ stage_name: string;
1421
+ stage_description: string;
1422
+ risk_status?: string | undefined;
1423
+ last_updated?: number | undefined;
1424
+ risk_can_proceed?: boolean | undefined;
1425
+ doc_generated?: boolean | undefined;
1426
+ trace_coherent?: boolean | undefined;
1243
1427
  } | {
1244
1428
  action: string;
1245
1429
  items: Record<string, unknown>[];
@@ -1284,11 +1468,14 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1284
1468
  };
1285
1469
  overall_completeness: "partial" | "complete" | "empty";
1286
1470
  next_step: string;
1471
+ recommended_creation_order: string[];
1472
+ next_action: "none" | "aggregate_risks";
1287
1473
  } | {
1288
1474
  status: "RISK_PASSED" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
1289
1475
  action: "aggregate_risks";
1290
1476
  warnings: string[];
1291
1477
  user_action_required: string;
1478
+ next_action: "none" | "generate_deployment_doc" | "fix_risks";
1292
1479
  namespace: {
1293
1480
  version: string;
1294
1481
  prefix: string;
@@ -1322,6 +1509,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1322
1509
  risk_rule_id: string;
1323
1510
  fix_suggestion: string;
1324
1511
  }[] | undefined;
1512
+ fix_suggestions_grouped?: Record<string, {
1513
+ message: string;
1514
+ severity: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "INFO";
1515
+ entry_id: string;
1516
+ risk_rule_id: string;
1517
+ fix_suggestion: string;
1518
+ }[]> | undefined;
1325
1519
  } | {
1326
1520
  markdown: string;
1327
1521
  meta: {
@@ -1333,6 +1527,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1333
1527
  };
1334
1528
  action: "generate_deployment_doc";
1335
1529
  user_action_required: string;
1530
+ next_action: "none" | "trace_substeps" | "fix_doc_errors";
1336
1531
  can_proceed: boolean;
1337
1532
  validation?: {
1338
1533
  valid: boolean;
@@ -1344,11 +1539,22 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1344
1539
  notes?: string | undefined;
1345
1540
  }[];
1346
1541
  } | undefined;
1542
+ estimated_gas?: {
1543
+ total_gas_mist: number;
1544
+ per_object: {
1545
+ object_type: string;
1546
+ entry_id: string;
1547
+ create_gas_mist: number;
1548
+ publish_gas_mist: number;
1549
+ }[];
1550
+ publish_gas_mist: number;
1551
+ } | undefined;
1347
1552
  } | {
1348
1553
  network: "testnet" | "mainnet";
1349
1554
  action: "trace_substeps";
1350
1555
  user_action_required: string;
1351
1556
  topological_order: string[];
1557
+ next_action: "none" | "deploy" | "fix_substeps";
1352
1558
  namespace: {
1353
1559
  version: string;
1354
1560
  prefix: string;
@@ -1387,6 +1593,20 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1387
1593
  description: string;
1388
1594
  check_id: "D-10";
1389
1595
  };
1596
+ } | {
1597
+ version: string;
1598
+ action: "get_project_status";
1599
+ stage: number;
1600
+ project: string;
1601
+ next_action: string;
1602
+ can_proceed: boolean;
1603
+ stage_name: string;
1604
+ stage_description: string;
1605
+ risk_status?: string | undefined;
1606
+ last_updated?: number | undefined;
1607
+ risk_can_proceed?: boolean | undefined;
1608
+ doc_generated?: boolean | undefined;
1609
+ trace_coherent?: boolean | undefined;
1390
1610
  } | {
1391
1611
  action: string;
1392
1612
  items: Record<string, unknown>[];
@@ -78,8 +78,11 @@ export const ProjectOperationInputSchema = z
78
78
  "aggregate_risks",
79
79
  "generate_deployment_doc",
80
80
  "trace_substeps",
81
+ "get_project_status",
81
82
  ])
82
- .describe("Query/action to perform"),
83
+ .describe("Action to perform. Two categories:\n" +
84
+ "1. Graph Query (10): list_projects, list_objects, shareable, dependencies, referenced_by, pre_publish_check, cross_project_refs, graph_stats, save_graph, load_graph.\n" +
85
+ "2. Project-Based Deployment 5-Stage (4): Call IN ORDER — analyze_intent (Stage 2) → aggregate_risks (Stage 3) → generate_deployment_doc (Stage 4) → trace_substeps (Stage 5). Each action's output includes `next_action` telling you which action to call next. Stage 1 (Project Naming) uses the `project` + `version` params."),
83
86
  project: z
84
87
  .string()
85
88
  .optional()
@@ -277,6 +280,12 @@ const AnalyzeIntentResultSchema = z
277
280
  puzzles: z.record(z.string(), PuzzleEntrySchema),
278
281
  overall_completeness: z.enum(["complete", "partial", "empty"]),
279
282
  next_step: z.string(),
283
+ recommended_creation_order: z
284
+ .array(z.string())
285
+ .describe("Recommended object creation order based on dependency topology (e.g. ['permission','progress','guard','allocation','machine','service'])."),
286
+ next_action: z
287
+ .enum(["aggregate_risks", "none"])
288
+ .describe("Next project_operation action to call. 'aggregate_risks' when puzzles are complete enough; 'none' if user must fill missing fields first."),
280
289
  warnings: z.array(z.string()),
281
290
  })
282
291
  .strict();
@@ -325,11 +334,24 @@ const AggregateRisksResultSchema = z
325
334
  entry_id: z.string(),
326
335
  }))
327
336
  .optional(),
337
+ fix_suggestions_grouped: z
338
+ .record(z.string(), z.array(z.object({
339
+ risk_rule_id: z.string(),
340
+ severity: z.enum(["CRITICAL", "HIGH", "MEDIUM", "LOW", "INFO"]),
341
+ message: z.string(),
342
+ fix_suggestion: z.string(),
343
+ entry_id: z.string(),
344
+ })))
345
+ .optional()
346
+ .describe("Fix suggestions grouped by object_type for better readability."),
328
347
  calibrated_at: z.number().int(),
329
348
  warnings: z.array(z.string()),
330
349
  can_proceed: z
331
350
  .boolean()
332
351
  .describe("Whether the user can proceed to the next stage. False only when CRITICAL risks exist."),
352
+ next_action: z
353
+ .enum(["generate_deployment_doc", "fix_risks", "none"])
354
+ .describe("Next project_operation action. 'generate_deployment_doc' when can_proceed=true; 'fix_risks' when CRITICAL risks exist; 'none' for other cases."),
333
355
  user_action_required: z
334
356
  .string()
335
357
  .describe("Human-readable next-step guidance."),
@@ -359,9 +381,25 @@ const GenerateDeploymentDocResultSchema = z
359
381
  })
360
382
  .optional()
361
383
  .describe("Scanner validation result. Present when run_scanner=true."),
384
+ estimated_gas: z
385
+ .object({
386
+ total_gas_mist: z.number().int().describe("Estimated total gas in MIST (1 WOW = 10^9 MIST)."),
387
+ per_object: z.array(z.object({
388
+ entry_id: z.string(),
389
+ object_type: z.string(),
390
+ create_gas_mist: z.number().int(),
391
+ publish_gas_mist: z.number().int(),
392
+ })),
393
+ publish_gas_mist: z.number().int().describe("Gas for publish operations only."),
394
+ })
395
+ .optional()
396
+ .describe("Gas cost estimate for deploying all objects."),
362
397
  can_proceed: z
363
398
  .boolean()
364
399
  .describe("Whether the user can proceed to stage 5. False when D-errors exist."),
400
+ next_action: z
401
+ .enum(["trace_substeps", "fix_doc_errors", "none"])
402
+ .describe("Next project_operation action. 'trace_substeps' when can_proceed=true; 'fix_doc_errors' when D-errors exist; 'none' for other cases."),
365
403
  user_action_required: z.string(),
366
404
  })
367
405
  .strict();
@@ -412,9 +450,29 @@ const TraceSubstepsResultSchema = z
412
450
  can_proceed: z
413
451
  .boolean()
414
452
  .describe("Whether deployment can complete. False when D-10 fails or substeps FAILED."),
453
+ next_action: z
454
+ .enum(["deploy", "fix_substeps", "none"])
455
+ .describe("Next action. 'deploy' when can_proceed=true (execute substeps via onchain_operations); 'fix_substeps' when issues exist; 'none' when done."),
415
456
  user_action_required: z.string(),
416
457
  })
417
458
  .strict();
459
+ const GetProjectStatusResultSchema = z
460
+ .object({
461
+ action: z.literal("get_project_status"),
462
+ project: z.string(),
463
+ version: z.string(),
464
+ stage: z.number().int().min(1).max(5),
465
+ stage_name: z.string(),
466
+ stage_description: z.string(),
467
+ next_action: z.string().describe("The next project_operation action to call."),
468
+ can_proceed: z.boolean(),
469
+ last_updated: z.number().int().optional().describe("Timestamp of last stage update (ms)."),
470
+ risk_status: z.string().optional(),
471
+ risk_can_proceed: z.boolean().optional(),
472
+ doc_generated: z.boolean().optional(),
473
+ trace_coherent: z.boolean().optional(),
474
+ })
475
+ .strict();
418
476
  export const ProjectOperationOutputSchema = z
419
477
  .object({
420
478
  result: z.discriminatedUnion("action", [
@@ -451,6 +509,7 @@ export const ProjectOperationOutputSchema = z
451
509
  AggregateRisksResultSchema,
452
510
  GenerateDeploymentDocResultSchema,
453
511
  TraceSubstepsResultSchema,
512
+ GetProjectStatusResultSchema,
454
513
  ]).describe("Query result — shape depends on action"),
455
514
  })
456
515
  .strict();
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "title": "WoWok MCP Schema Index",
4
4
  "description": "Index of all available JSON schemas for WoWok MCP tools",
5
- "generatedAt": "2026-07-21T01:31:19.970Z",
5
+ "generatedAt": "2026-07-21T22:17:57.943Z",
6
6
  "tools": [
7
7
  {
8
8
  "name": "onchain_operations",
@@ -253,10 +253,6 @@
253
253
  "env": {
254
254
  "$ref": "#/definitions/env",
255
255
  "$schema": "http://json-schema.org/draft-07/schema#"
256
- },
257
- "submission": {
258
- "$ref": "#/definitions/submission",
259
- "$schema": "http://json-schema.org/draft-07/schema#"
260
256
  }
261
257
  },
262
258
  "required": [
@@ -340,10 +336,6 @@
340
336
  "env": {
341
337
  "$ref": "#/definitions/env",
342
338
  "$schema": "http://json-schema.org/draft-07/schema#"
343
- },
344
- "submission": {
345
- "$ref": "#/definitions/submission",
346
- "$schema": "http://json-schema.org/draft-07/schema#"
347
339
  }
348
340
  },
349
341
  "required": [
@@ -366,10 +358,6 @@
366
358
  "env": {
367
359
  "$ref": "#/definitions/env",
368
360
  "$schema": "http://json-schema.org/draft-07/schema#"
369
- },
370
- "submission": {
371
- "$ref": "#/definitions/submission",
372
- "$schema": "http://json-schema.org/draft-07/schema#"
373
361
  }
374
362
  },
375
363
  "required": [
@@ -392,10 +380,6 @@
392
380
  "env": {
393
381
  "$ref": "#/definitions/env",
394
382
  "$schema": "http://json-schema.org/draft-07/schema#"
395
- },
396
- "submission": {
397
- "$ref": "#/definitions/submission",
398
- "$schema": "http://json-schema.org/draft-07/schema#"
399
383
  }
400
384
  },
401
385
  "required": [