@wowok/agent-mcp 2.6.0 → 2.6.1

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 (133) hide show
  1. package/README.md +5 -3
  2. package/dist/extensions/capability-manifest.d.ts +125 -0
  3. package/dist/extensions/capability-manifest.js +594 -0
  4. package/dist/extensions/constraint-registry.d.ts +24 -0
  5. package/dist/extensions/constraint-registry.js +196 -0
  6. package/dist/extensions/index.d.ts +12 -0
  7. package/dist/extensions/index.js +6 -0
  8. package/dist/extensions/metric-registry.d.ts +26 -0
  9. package/dist/extensions/metric-registry.js +257 -0
  10. package/dist/extensions/mode-evaluator.d.ts +15 -0
  11. package/dist/extensions/mode-evaluator.js +170 -0
  12. package/dist/extensions/modes.d.ts +2 -0
  13. package/dist/extensions/modes.js +407 -0
  14. package/dist/extensions/registry.d.ts +48 -0
  15. package/dist/extensions/registry.js +629 -0
  16. package/dist/extensions/types.d.ts +218 -0
  17. package/dist/extensions/types.js +1 -0
  18. package/dist/knowledge/deployment-scanner.d.ts +3 -0
  19. package/dist/knowledge/deployment-scanner.js +64 -3
  20. package/dist/knowledge/guard-risk.d.ts +13 -0
  21. package/dist/knowledge/guard-risk.js +57 -0
  22. package/dist/knowledge/guard-templates.js +278 -0
  23. package/dist/knowledge/machine-templates.js +20 -1
  24. package/dist/knowledge/service-confirm.d.ts +14 -5
  25. package/dist/knowledge/service-confirm.js +116 -8
  26. package/dist/knowledge/tool-constraints.js +6 -2
  27. package/dist/project/deployment-bridge.d.ts +1 -1
  28. package/dist/project/deployment-bridge.js +27 -4
  29. package/dist/project/deployment-doc.d.ts +3 -0
  30. package/dist/project/deployment-doc.js +72 -10
  31. package/dist/project/evaluation.d.ts +2 -0
  32. package/dist/project/evaluation.js +569 -84
  33. package/dist/project/graph-builder.d.ts +4 -1
  34. package/dist/project/graph-builder.js +126 -61
  35. package/dist/project/graph.d.ts +1 -0
  36. package/dist/project/handlers.d.ts +219 -5
  37. package/dist/project/handlers.js +819 -9
  38. package/dist/project/stage-gate.d.ts +4 -0
  39. package/dist/project/stage-gate.js +64 -5
  40. package/dist/project/task-tracker.d.ts +26 -0
  41. package/dist/project/task-tracker.js +78 -0
  42. package/dist/safety/preview.js +16 -0
  43. package/dist/schema/call/allocation.d.ts +16 -16
  44. package/dist/schema/call/base.d.ts +21 -13
  45. package/dist/schema/call/base.js +27 -6
  46. package/dist/schema/call/bridge.d.ts +5 -5
  47. package/dist/schema/call/bridge.js +3 -1
  48. package/dist/schema/call/demand.d.ts +23 -31
  49. package/dist/schema/call/guard.js +1 -1
  50. package/dist/schema/call/machine.d.ts +402 -376
  51. package/dist/schema/call/order.d.ts +149 -228
  52. package/dist/schema/call/order.js +7 -3
  53. package/dist/schema/call/payment.d.ts +183 -3
  54. package/dist/schema/call/payment.js +21 -3
  55. package/dist/schema/call/personal.d.ts +241 -52
  56. package/dist/schema/call/progress.d.ts +53 -61
  57. package/dist/schema/call/progress.js +18 -4
  58. package/dist/schema/call/repository.d.ts +23 -31
  59. package/dist/schema/call/semantic.d.ts +1 -1
  60. package/dist/schema/call/semantic.js +30 -1
  61. package/dist/schema/call/service.d.ts +95 -119
  62. package/dist/schema/call/service.js +22 -1
  63. package/dist/schema/common/index.d.ts +11 -2
  64. package/dist/schema/common/index.js +43 -14
  65. package/dist/schema/local/index.d.ts +32 -35
  66. package/dist/schema/local/index.js +23 -5
  67. package/dist/schema/messenger/index.d.ts +274 -46
  68. package/dist/schema/operations.d.ts +680 -539
  69. package/dist/schema/operations.js +22 -0
  70. package/dist/schema/project/index.d.ts +1796 -80
  71. package/dist/schema/project/index.js +304 -14
  72. package/dist/schema/query/index.d.ts +705 -349
  73. package/dist/schema/query/index.js +164 -31
  74. package/dist/schema/schema-query/index.d.ts +15 -3
  75. package/dist/schema/schema-query/index.js +23 -5
  76. package/dist/schema/utils/node-parser.js +7 -4
  77. package/dist/schema-query/index.d.ts +7 -1
  78. package/dist/schema-query/index.js +204 -4
  79. package/dist/schemas/account_operation.output.json +7 -1
  80. package/dist/schemas/account_operation.schema.json +2 -2
  81. package/dist/schemas/bridge_operation.output.json +6 -0
  82. package/dist/schemas/bridge_operation.schema.json +1 -1
  83. package/dist/schemas/guard-templates.json +379 -0
  84. package/dist/schemas/guard2file.schema.json +1 -1
  85. package/dist/schemas/index.json +1 -1
  86. package/dist/schemas/local_info_operation.output.json +6 -0
  87. package/dist/schemas/local_mark_operation.output.json +7 -1
  88. package/dist/schemas/local_mark_operation.schema.json +1 -1
  89. package/dist/schemas/machineNode2file.schema.json +1 -1
  90. package/dist/schemas/messenger_operation.schema.json +4 -4
  91. package/dist/schemas/onchain_events.output.json +1 -1
  92. package/dist/schemas/onchain_operations.schema.json +348 -296
  93. package/dist/schemas/onchain_operations_allocation.schema.json +34 -25
  94. package/dist/schemas/onchain_operations_arbitration.schema.json +8 -8
  95. package/dist/schemas/onchain_operations_contact.schema.json +8 -8
  96. package/dist/schemas/onchain_operations_demand.schema.json +8 -8
  97. package/dist/schemas/onchain_operations_gen_passport.schema.json +14 -14
  98. package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
  99. package/dist/schemas/onchain_operations_guard.schema.json +1 -1
  100. package/dist/schemas/onchain_operations_machine.schema.json +41 -33
  101. package/dist/schemas/onchain_operations_order.schema.json +71 -77
  102. package/dist/schemas/onchain_operations_payment.schema.json +141 -111
  103. package/dist/schemas/onchain_operations_permission.schema.json +2 -2
  104. package/dist/schemas/onchain_operations_personal.schema.json +7 -7
  105. package/dist/schemas/onchain_operations_progress.schema.json +8 -8
  106. package/dist/schemas/onchain_operations_proof.schema.json +7 -7
  107. package/dist/schemas/onchain_operations_repository.schema.json +8 -8
  108. package/dist/schemas/onchain_operations_reward.schema.json +10 -10
  109. package/dist/schemas/onchain_operations_service.schema.json +46 -35
  110. package/dist/schemas/onchain_operations_treasury.schema.json +8 -8
  111. package/dist/schemas/onchain_table_data.output.json +33 -25
  112. package/dist/schemas/onchain_table_data.schema.json +12 -12
  113. package/dist/schemas/project_operation.output.json +1175 -23
  114. package/dist/schemas/project_operation.schema.json +40 -4
  115. package/dist/schemas/query_toolkit.output.json +104 -76
  116. package/dist/schemas/query_toolkit.schema.json +9 -9
  117. package/dist/schemas/schema_query.output.json +7 -3
  118. package/dist/schemas/schema_query.schema.json +17 -3
  119. package/dist/tools/handlers/local.js +20 -5
  120. package/dist/tools/handlers/onchain.js +23 -0
  121. package/dist/tools/handlers/project.js +52 -3
  122. package/dist/tools/handlers/query.js +27 -0
  123. package/dist/tools/handlers/schema-query.js +19 -0
  124. package/dist/tools/handlers/task-status.d.ts +170 -0
  125. package/dist/tools/handlers/task-status.js +55 -0
  126. package/dist/tools/handlers/wip.js +47 -1
  127. package/dist/tools/index.js +211 -7
  128. package/dist/tools/retry.d.ts +8 -0
  129. package/dist/tools/retry.js +85 -0
  130. package/dist/tools/wip-deploy-assist.d.ts +28 -0
  131. package/dist/tools/wip-deploy-assist.js +278 -0
  132. package/package.json +2 -2
  133. package/dist/schemas/guard-node-examples.md +0 -199
@@ -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", "generate_deployment_doc"]>;
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", "get_machine_graph", "generate_deployment_doc", "pre_evaluate_check", "verify_deployment", "clone_project_to_network", "migrate_network"]>;
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">>;
@@ -18,8 +18,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
18
18
  project_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19
19
  service_address: z.ZodOptional<z.ZodString>;
20
20
  project_network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
21
+ skip_templates: z.ZodOptional<z.ZodBoolean>;
21
22
  project_id: z.ZodOptional<z.ZodString>;
22
23
  project_status: z.ZodOptional<z.ZodEnum<["draft", "active", "inactive", "archived"]>>;
24
+ target_network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
23
25
  object_address: z.ZodOptional<z.ZodString>;
24
26
  object_name_add: z.ZodOptional<z.ZodString>;
25
27
  object_type_add: z.ZodOptional<z.ZodEnum<["Service", "Machine", "Guard", "Permission", "Reward", "Arbitration", "Progress", "Treasury", "Demand", "Repository", "Contact", "Order", "Allocation", "Personal", "Payment", "Proof"]>>;
@@ -34,8 +36,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
34
36
  version_description: z.ZodOptional<z.ZodString>;
35
37
  fork_from_version: z.ZodOptional<z.ZodString>;
36
38
  max_depth: z.ZodOptional<z.ZodNumber>;
39
+ depth: z.ZodOptional<z.ZodNumber>;
37
40
  enable_registrar: z.ZodOptional<z.ZodBoolean>;
38
41
  enable_potential: z.ZodOptional<z.ZodBoolean>;
42
+ async_mode: z.ZodOptional<z.ZodBoolean>;
39
43
  evaluation_type: z.ZodOptional<z.ZodEnum<["risk", "trust", "completeness", "value", "worth_buying"]>>;
40
44
  refresh_before_eval: z.ZodOptional<z.ZodBoolean>;
41
45
  eval_score: z.ZodOptional<z.ZodNumber>;
@@ -47,8 +51,9 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
47
51
  diff_to_time: z.ZodOptional<z.ZodNumber>;
48
52
  network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
49
53
  save: z.ZodOptional<z.ZodBoolean>;
54
+ detail_level: z.ZodOptional<z.ZodEnum<["summary", "detailed", "full"]>>;
50
55
  }, "strict", z.ZodTypeAny, {
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";
56
+ 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" | "get_machine_graph" | "generate_deployment_doc" | "pre_evaluate_check" | "verify_deployment" | "clone_project_to_network" | "migrate_network";
52
57
  version?: string | undefined;
53
58
  network?: "testnet" | "mainnet" | undefined;
54
59
  project?: string | undefined;
@@ -65,8 +70,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
65
70
  project_perspective?: "consumer" | "producer" | "both" | undefined;
66
71
  project_labels?: string[] | undefined;
67
72
  project_network?: "testnet" | "mainnet" | undefined;
73
+ skip_templates?: boolean | undefined;
68
74
  project_id?: string | undefined;
69
75
  project_status?: "active" | "inactive" | "draft" | "archived" | undefined;
76
+ target_network?: "testnet" | "mainnet" | undefined;
70
77
  object_address?: string | undefined;
71
78
  object_name_add?: string | undefined;
72
79
  object_type_add?: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Payment" | "Proof" | undefined;
@@ -81,8 +88,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
81
88
  version_description?: string | undefined;
82
89
  fork_from_version?: string | undefined;
83
90
  max_depth?: number | undefined;
91
+ depth?: number | undefined;
84
92
  enable_registrar?: boolean | undefined;
85
93
  enable_potential?: boolean | undefined;
94
+ async_mode?: boolean | undefined;
86
95
  evaluation_type?: "value" | "trust" | "risk" | "completeness" | "worth_buying" | undefined;
87
96
  refresh_before_eval?: boolean | undefined;
88
97
  eval_score?: number | undefined;
@@ -93,8 +102,9 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
93
102
  diff_from_time?: number | undefined;
94
103
  diff_to_time?: number | undefined;
95
104
  save?: boolean | undefined;
105
+ detail_level?: "summary" | "full" | "detailed" | undefined;
96
106
  }, {
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";
107
+ 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" | "get_machine_graph" | "generate_deployment_doc" | "pre_evaluate_check" | "verify_deployment" | "clone_project_to_network" | "migrate_network";
98
108
  version?: string | undefined;
99
109
  network?: "testnet" | "mainnet" | undefined;
100
110
  project?: string | undefined;
@@ -111,8 +121,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
111
121
  project_perspective?: "consumer" | "producer" | "both" | undefined;
112
122
  project_labels?: string[] | undefined;
113
123
  project_network?: "testnet" | "mainnet" | undefined;
124
+ skip_templates?: boolean | undefined;
114
125
  project_id?: string | undefined;
115
126
  project_status?: "active" | "inactive" | "draft" | "archived" | undefined;
127
+ target_network?: "testnet" | "mainnet" | undefined;
116
128
  object_address?: string | undefined;
117
129
  object_name_add?: string | undefined;
118
130
  object_type_add?: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Payment" | "Proof" | undefined;
@@ -127,8 +139,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
127
139
  version_description?: string | undefined;
128
140
  fork_from_version?: string | undefined;
129
141
  max_depth?: number | undefined;
142
+ depth?: number | undefined;
130
143
  enable_registrar?: boolean | undefined;
131
144
  enable_potential?: boolean | undefined;
145
+ async_mode?: boolean | undefined;
132
146
  evaluation_type?: "value" | "trust" | "risk" | "completeness" | "worth_buying" | undefined;
133
147
  refresh_before_eval?: boolean | undefined;
134
148
  eval_score?: number | undefined;
@@ -139,6 +153,7 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
139
153
  diff_from_time?: number | undefined;
140
154
  diff_to_time?: number | undefined;
141
155
  save?: boolean | undefined;
156
+ detail_level?: "summary" | "full" | "detailed" | undefined;
142
157
  }>;
143
158
  export declare const ProjectOperationOutputSchema: z.ZodObject<{
144
159
  result: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
@@ -300,6 +315,50 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
300
315
  serviceAddress: string | null;
301
316
  defaultAccount: string | null;
302
317
  }>;
318
+ recommended_creation_order: z.ZodArray<z.ZodObject<{
319
+ step: z.ZodNumber;
320
+ object: z.ZodString;
321
+ reason: z.ZodString;
322
+ required: z.ZodBoolean;
323
+ }, "strict", z.ZodTypeAny, {
324
+ object: string;
325
+ reason: string;
326
+ required: boolean;
327
+ step: number;
328
+ }, {
329
+ object: string;
330
+ reason: string;
331
+ required: boolean;
332
+ step: number;
333
+ }>, "many">;
334
+ blueprint: z.ZodOptional<z.ZodObject<{
335
+ objects_count: z.ZodNumber;
336
+ edges_count: z.ZodNumber;
337
+ industry_source: z.ZodString;
338
+ applied_template: z.ZodString;
339
+ steps_count: z.ZodNumber;
340
+ scenarios_count: z.ZodNumber;
341
+ key_risk: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
+ }, "strict", z.ZodTypeAny, {
343
+ objects_count: number;
344
+ edges_count: number;
345
+ industry_source: string;
346
+ applied_template: string;
347
+ steps_count: number;
348
+ scenarios_count: number;
349
+ key_risk?: string | null | undefined;
350
+ }, {
351
+ objects_count: number;
352
+ edges_count: number;
353
+ industry_source: string;
354
+ applied_template: string;
355
+ steps_count: number;
356
+ scenarios_count: number;
357
+ key_risk?: string | null | undefined;
358
+ }>>;
359
+ blueprint_warning: z.ZodOptional<z.ZodString>;
360
+ blueprint_skipped: z.ZodOptional<z.ZodBoolean>;
361
+ hint: z.ZodOptional<z.ZodString>;
303
362
  }, "strict", z.ZodTypeAny, {
304
363
  action: "create_project";
305
364
  project: {
@@ -319,6 +378,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
319
378
  serviceAddress: string | null;
320
379
  defaultAccount: string | null;
321
380
  };
381
+ recommended_creation_order: {
382
+ object: string;
383
+ reason: string;
384
+ required: boolean;
385
+ step: number;
386
+ }[];
387
+ hint?: string | undefined;
388
+ blueprint?: {
389
+ objects_count: number;
390
+ edges_count: number;
391
+ industry_source: string;
392
+ applied_template: string;
393
+ steps_count: number;
394
+ scenarios_count: number;
395
+ key_risk?: string | null | undefined;
396
+ } | undefined;
397
+ blueprint_warning?: string | undefined;
398
+ blueprint_skipped?: boolean | undefined;
322
399
  }, {
323
400
  action: "create_project";
324
401
  project: {
@@ -338,6 +415,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
338
415
  serviceAddress: string | null;
339
416
  defaultAccount: string | null;
340
417
  };
418
+ recommended_creation_order: {
419
+ object: string;
420
+ reason: string;
421
+ required: boolean;
422
+ step: number;
423
+ }[];
424
+ hint?: string | undefined;
425
+ blueprint?: {
426
+ objects_count: number;
427
+ edges_count: number;
428
+ industry_source: string;
429
+ applied_template: string;
430
+ steps_count: number;
431
+ scenarios_count: number;
432
+ key_risk?: string | null | undefined;
433
+ } | undefined;
434
+ blueprint_warning?: string | undefined;
435
+ blueprint_skipped?: boolean | undefined;
341
436
  }>, z.ZodObject<{
342
437
  action: z.ZodLiteral<"create_project_from_onchain">;
343
438
  project: z.ZodObject<{
@@ -395,13 +490,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
395
490
  objectAddress: z.ZodString;
396
491
  objectType: z.ZodNullable<z.ZodString>;
397
492
  objectName: z.ZodNullable<z.ZodString>;
398
- role: z.ZodEnum<["core", "dependency", "reference"]>;
493
+ role: z.ZodString;
399
494
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
400
495
  addedAt: z.ZodNumber;
401
496
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
402
497
  }, "strict", z.ZodTypeAny, {
403
498
  id: string;
404
- role: "reference" | "dependency" | "core";
499
+ role: string;
405
500
  objectType: string | null;
406
501
  tags: string[] | null;
407
502
  projectId: string;
@@ -411,7 +506,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
411
506
  metadata: Record<string, unknown> | null;
412
507
  }, {
413
508
  id: string;
414
- role: "reference" | "dependency" | "core";
509
+ role: string;
415
510
  objectType: string | null;
416
511
  tags: string[] | null;
417
512
  projectId: string;
@@ -442,7 +537,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
442
537
  };
443
538
  objects: {
444
539
  id: string;
445
- role: "reference" | "dependency" | "core";
540
+ role: string;
446
541
  objectType: string | null;
447
542
  tags: string[] | null;
448
543
  projectId: string;
@@ -473,7 +568,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
473
568
  };
474
569
  objects: {
475
570
  id: string;
476
- role: "reference" | "dependency" | "core";
571
+ role: string;
477
572
  objectType: string | null;
478
573
  tags: string[] | null;
479
574
  projectId: string;
@@ -629,13 +724,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
629
724
  objectAddress: z.ZodString;
630
725
  objectType: z.ZodNullable<z.ZodString>;
631
726
  objectName: z.ZodNullable<z.ZodString>;
632
- role: z.ZodEnum<["core", "dependency", "reference"]>;
727
+ role: z.ZodString;
633
728
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
634
729
  addedAt: z.ZodNumber;
635
730
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
636
731
  }, "strict", z.ZodTypeAny, {
637
732
  id: string;
638
- role: "reference" | "dependency" | "core";
733
+ role: string;
639
734
  objectType: string | null;
640
735
  tags: string[] | null;
641
736
  projectId: string;
@@ -645,7 +740,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
645
740
  metadata: Record<string, unknown> | null;
646
741
  }, {
647
742
  id: string;
648
- role: "reference" | "dependency" | "core";
743
+ role: string;
649
744
  objectType: string | null;
650
745
  tags: string[] | null;
651
746
  projectId: string;
@@ -654,7 +749,271 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
654
749
  addedAt: number;
655
750
  metadata: Record<string, unknown> | null;
656
751
  }>, "many">;
752
+ objectGroups: z.ZodObject<{
753
+ core: z.ZodArray<z.ZodObject<{
754
+ id: z.ZodString;
755
+ projectId: z.ZodString;
756
+ objectAddress: z.ZodString;
757
+ objectType: z.ZodNullable<z.ZodString>;
758
+ objectName: z.ZodNullable<z.ZodString>;
759
+ role: z.ZodString;
760
+ tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
761
+ addedAt: z.ZodNumber;
762
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
763
+ }, "strict", z.ZodTypeAny, {
764
+ id: string;
765
+ role: string;
766
+ objectType: string | null;
767
+ tags: string[] | null;
768
+ projectId: string;
769
+ objectAddress: string;
770
+ objectName: string | null;
771
+ addedAt: number;
772
+ metadata: Record<string, unknown> | null;
773
+ }, {
774
+ id: string;
775
+ role: string;
776
+ objectType: string | null;
777
+ tags: string[] | null;
778
+ projectId: string;
779
+ objectAddress: string;
780
+ objectName: string | null;
781
+ addedAt: number;
782
+ metadata: Record<string, unknown> | null;
783
+ }>, "many">;
784
+ dependency: z.ZodArray<z.ZodObject<{
785
+ id: z.ZodString;
786
+ projectId: z.ZodString;
787
+ objectAddress: z.ZodString;
788
+ objectType: z.ZodNullable<z.ZodString>;
789
+ objectName: z.ZodNullable<z.ZodString>;
790
+ role: z.ZodString;
791
+ tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
792
+ addedAt: z.ZodNumber;
793
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
794
+ }, "strict", z.ZodTypeAny, {
795
+ id: string;
796
+ role: string;
797
+ objectType: string | null;
798
+ tags: string[] | null;
799
+ projectId: string;
800
+ objectAddress: string;
801
+ objectName: string | null;
802
+ addedAt: number;
803
+ metadata: Record<string, unknown> | null;
804
+ }, {
805
+ id: string;
806
+ role: string;
807
+ objectType: string | null;
808
+ tags: string[] | null;
809
+ projectId: string;
810
+ objectAddress: string;
811
+ objectName: string | null;
812
+ addedAt: number;
813
+ metadata: Record<string, unknown> | null;
814
+ }>, "many">;
815
+ reference: z.ZodArray<z.ZodObject<{
816
+ id: z.ZodString;
817
+ projectId: z.ZodString;
818
+ objectAddress: z.ZodString;
819
+ objectType: z.ZodNullable<z.ZodString>;
820
+ objectName: z.ZodNullable<z.ZodString>;
821
+ role: z.ZodString;
822
+ tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
823
+ addedAt: z.ZodNumber;
824
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
825
+ }, "strict", z.ZodTypeAny, {
826
+ id: string;
827
+ role: string;
828
+ objectType: string | null;
829
+ tags: string[] | null;
830
+ projectId: string;
831
+ objectAddress: string;
832
+ objectName: string | null;
833
+ addedAt: number;
834
+ metadata: Record<string, unknown> | null;
835
+ }, {
836
+ id: string;
837
+ role: string;
838
+ objectType: string | null;
839
+ tags: string[] | null;
840
+ projectId: string;
841
+ objectAddress: string;
842
+ objectName: string | null;
843
+ addedAt: number;
844
+ metadata: Record<string, unknown> | null;
845
+ }>, "many">;
846
+ other: z.ZodArray<z.ZodObject<{
847
+ id: z.ZodString;
848
+ projectId: z.ZodString;
849
+ objectAddress: z.ZodString;
850
+ objectType: z.ZodNullable<z.ZodString>;
851
+ objectName: z.ZodNullable<z.ZodString>;
852
+ role: z.ZodString;
853
+ tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
854
+ addedAt: z.ZodNumber;
855
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
856
+ }, "strict", z.ZodTypeAny, {
857
+ id: string;
858
+ role: string;
859
+ objectType: string | null;
860
+ tags: string[] | null;
861
+ projectId: string;
862
+ objectAddress: string;
863
+ objectName: string | null;
864
+ addedAt: number;
865
+ metadata: Record<string, unknown> | null;
866
+ }, {
867
+ id: string;
868
+ role: string;
869
+ objectType: string | null;
870
+ tags: string[] | null;
871
+ projectId: string;
872
+ objectAddress: string;
873
+ objectName: string | null;
874
+ addedAt: number;
875
+ metadata: Record<string, unknown> | null;
876
+ }>, "many">;
877
+ stats: z.ZodObject<{
878
+ total: z.ZodNumber;
879
+ core_count: z.ZodNumber;
880
+ dependency_count: z.ZodNumber;
881
+ reference_count: z.ZodNumber;
882
+ other_count: z.ZodNumber;
883
+ by_type: z.ZodRecord<z.ZodString, z.ZodNumber>;
884
+ }, "strict", z.ZodTypeAny, {
885
+ total: number;
886
+ core_count: number;
887
+ dependency_count: number;
888
+ reference_count: number;
889
+ other_count: number;
890
+ by_type: Record<string, number>;
891
+ }, {
892
+ total: number;
893
+ core_count: number;
894
+ dependency_count: number;
895
+ reference_count: number;
896
+ other_count: number;
897
+ by_type: Record<string, number>;
898
+ }>;
899
+ }, "strict", z.ZodTypeAny, {
900
+ other: {
901
+ id: string;
902
+ role: string;
903
+ objectType: string | null;
904
+ tags: string[] | null;
905
+ projectId: string;
906
+ objectAddress: string;
907
+ objectName: string | null;
908
+ addedAt: number;
909
+ metadata: Record<string, unknown> | null;
910
+ }[];
911
+ reference: {
912
+ id: string;
913
+ role: string;
914
+ objectType: string | null;
915
+ tags: string[] | null;
916
+ projectId: string;
917
+ objectAddress: string;
918
+ objectName: string | null;
919
+ addedAt: number;
920
+ metadata: Record<string, unknown> | null;
921
+ }[];
922
+ dependency: {
923
+ id: string;
924
+ role: string;
925
+ objectType: string | null;
926
+ tags: string[] | null;
927
+ projectId: string;
928
+ objectAddress: string;
929
+ objectName: string | null;
930
+ addedAt: number;
931
+ metadata: Record<string, unknown> | null;
932
+ }[];
933
+ core: {
934
+ id: string;
935
+ role: string;
936
+ objectType: string | null;
937
+ tags: string[] | null;
938
+ projectId: string;
939
+ objectAddress: string;
940
+ objectName: string | null;
941
+ addedAt: number;
942
+ metadata: Record<string, unknown> | null;
943
+ }[];
944
+ stats: {
945
+ total: number;
946
+ core_count: number;
947
+ dependency_count: number;
948
+ reference_count: number;
949
+ other_count: number;
950
+ by_type: Record<string, number>;
951
+ };
952
+ }, {
953
+ other: {
954
+ id: string;
955
+ role: string;
956
+ objectType: string | null;
957
+ tags: string[] | null;
958
+ projectId: string;
959
+ objectAddress: string;
960
+ objectName: string | null;
961
+ addedAt: number;
962
+ metadata: Record<string, unknown> | null;
963
+ }[];
964
+ reference: {
965
+ id: string;
966
+ role: string;
967
+ objectType: string | null;
968
+ tags: string[] | null;
969
+ projectId: string;
970
+ objectAddress: string;
971
+ objectName: string | null;
972
+ addedAt: number;
973
+ metadata: Record<string, unknown> | null;
974
+ }[];
975
+ dependency: {
976
+ id: string;
977
+ role: string;
978
+ objectType: string | null;
979
+ tags: string[] | null;
980
+ projectId: string;
981
+ objectAddress: string;
982
+ objectName: string | null;
983
+ addedAt: number;
984
+ metadata: Record<string, unknown> | null;
985
+ }[];
986
+ core: {
987
+ id: string;
988
+ role: string;
989
+ objectType: string | null;
990
+ tags: string[] | null;
991
+ projectId: string;
992
+ objectAddress: string;
993
+ objectName: string | null;
994
+ addedAt: number;
995
+ metadata: Record<string, unknown> | null;
996
+ }[];
997
+ stats: {
998
+ total: number;
999
+ core_count: number;
1000
+ dependency_count: number;
1001
+ reference_count: number;
1002
+ other_count: number;
1003
+ by_type: Record<string, number>;
1004
+ };
1005
+ }>;
657
1006
  graphEdgeCount: z.ZodNumber;
1007
+ serviceStatus: z.ZodNullable<z.ZodObject<{
1008
+ published: z.ZodNullable<z.ZodBoolean>;
1009
+ paused: z.ZodNullable<z.ZodBoolean>;
1010
+ }, "strict", z.ZodTypeAny, {
1011
+ published: boolean | null;
1012
+ paused: boolean | null;
1013
+ }, {
1014
+ published: boolean | null;
1015
+ paused: boolean | null;
1016
+ }>>;
658
1017
  evaluations: z.ZodArray<z.ZodObject<{
659
1018
  id: z.ZodString;
660
1019
  evalType: z.ZodEnum<["risk", "trust", "completeness", "value", "worth_buying"]>;
@@ -801,7 +1160,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
801
1160
  };
802
1161
  objects: {
803
1162
  id: string;
804
- role: "reference" | "dependency" | "core";
1163
+ role: string;
805
1164
  objectType: string | null;
806
1165
  tags: string[] | null;
807
1166
  projectId: string;
@@ -811,6 +1170,64 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
811
1170
  metadata: Record<string, unknown> | null;
812
1171
  }[];
813
1172
  graphEdgeCount: number;
1173
+ objectGroups: {
1174
+ other: {
1175
+ id: string;
1176
+ role: string;
1177
+ objectType: string | null;
1178
+ tags: string[] | null;
1179
+ projectId: string;
1180
+ objectAddress: string;
1181
+ objectName: string | null;
1182
+ addedAt: number;
1183
+ metadata: Record<string, unknown> | null;
1184
+ }[];
1185
+ reference: {
1186
+ id: string;
1187
+ role: string;
1188
+ objectType: string | null;
1189
+ tags: string[] | null;
1190
+ projectId: string;
1191
+ objectAddress: string;
1192
+ objectName: string | null;
1193
+ addedAt: number;
1194
+ metadata: Record<string, unknown> | null;
1195
+ }[];
1196
+ dependency: {
1197
+ id: string;
1198
+ role: string;
1199
+ objectType: string | null;
1200
+ tags: string[] | null;
1201
+ projectId: string;
1202
+ objectAddress: string;
1203
+ objectName: string | null;
1204
+ addedAt: number;
1205
+ metadata: Record<string, unknown> | null;
1206
+ }[];
1207
+ core: {
1208
+ id: string;
1209
+ role: string;
1210
+ objectType: string | null;
1211
+ tags: string[] | null;
1212
+ projectId: string;
1213
+ objectAddress: string;
1214
+ objectName: string | null;
1215
+ addedAt: number;
1216
+ metadata: Record<string, unknown> | null;
1217
+ }[];
1218
+ stats: {
1219
+ total: number;
1220
+ core_count: number;
1221
+ dependency_count: number;
1222
+ reference_count: number;
1223
+ other_count: number;
1224
+ by_type: Record<string, number>;
1225
+ };
1226
+ };
1227
+ serviceStatus: {
1228
+ published: boolean | null;
1229
+ paused: boolean | null;
1230
+ } | null;
814
1231
  evaluations: {
815
1232
  id: string;
816
1233
  summary: string | null;
@@ -859,7 +1276,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
859
1276
  };
860
1277
  objects: {
861
1278
  id: string;
862
- role: "reference" | "dependency" | "core";
1279
+ role: string;
863
1280
  objectType: string | null;
864
1281
  tags: string[] | null;
865
1282
  projectId: string;
@@ -869,6 +1286,64 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
869
1286
  metadata: Record<string, unknown> | null;
870
1287
  }[];
871
1288
  graphEdgeCount: number;
1289
+ objectGroups: {
1290
+ other: {
1291
+ id: string;
1292
+ role: string;
1293
+ objectType: string | null;
1294
+ tags: string[] | null;
1295
+ projectId: string;
1296
+ objectAddress: string;
1297
+ objectName: string | null;
1298
+ addedAt: number;
1299
+ metadata: Record<string, unknown> | null;
1300
+ }[];
1301
+ reference: {
1302
+ id: string;
1303
+ role: string;
1304
+ objectType: string | null;
1305
+ tags: string[] | null;
1306
+ projectId: string;
1307
+ objectAddress: string;
1308
+ objectName: string | null;
1309
+ addedAt: number;
1310
+ metadata: Record<string, unknown> | null;
1311
+ }[];
1312
+ dependency: {
1313
+ id: string;
1314
+ role: string;
1315
+ objectType: string | null;
1316
+ tags: string[] | null;
1317
+ projectId: string;
1318
+ objectAddress: string;
1319
+ objectName: string | null;
1320
+ addedAt: number;
1321
+ metadata: Record<string, unknown> | null;
1322
+ }[];
1323
+ core: {
1324
+ id: string;
1325
+ role: string;
1326
+ objectType: string | null;
1327
+ tags: string[] | null;
1328
+ projectId: string;
1329
+ objectAddress: string;
1330
+ objectName: string | null;
1331
+ addedAt: number;
1332
+ metadata: Record<string, unknown> | null;
1333
+ }[];
1334
+ stats: {
1335
+ total: number;
1336
+ core_count: number;
1337
+ dependency_count: number;
1338
+ reference_count: number;
1339
+ other_count: number;
1340
+ by_type: Record<string, number>;
1341
+ };
1342
+ };
1343
+ serviceStatus: {
1344
+ published: boolean | null;
1345
+ paused: boolean | null;
1346
+ } | null;
872
1347
  evaluations: {
873
1348
  id: string;
874
1349
  summary: string | null;
@@ -904,13 +1379,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
904
1379
  objectAddress: z.ZodString;
905
1380
  objectType: z.ZodNullable<z.ZodString>;
906
1381
  objectName: z.ZodNullable<z.ZodString>;
907
- role: z.ZodEnum<["core", "dependency", "reference"]>;
1382
+ role: z.ZodString;
908
1383
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
909
1384
  addedAt: z.ZodNumber;
910
1385
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
911
1386
  }, "strict", z.ZodTypeAny, {
912
1387
  id: string;
913
- role: "reference" | "dependency" | "core";
1388
+ role: string;
914
1389
  objectType: string | null;
915
1390
  tags: string[] | null;
916
1391
  projectId: string;
@@ -920,7 +1395,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
920
1395
  metadata: Record<string, unknown> | null;
921
1396
  }, {
922
1397
  id: string;
923
- role: "reference" | "dependency" | "core";
1398
+ role: string;
924
1399
  objectType: string | null;
925
1400
  tags: string[] | null;
926
1401
  projectId: string;
@@ -932,7 +1407,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
932
1407
  }, "strict", z.ZodTypeAny, {
933
1408
  object: {
934
1409
  id: string;
935
- role: "reference" | "dependency" | "core";
1410
+ role: string;
936
1411
  objectType: string | null;
937
1412
  tags: string[] | null;
938
1413
  projectId: string;
@@ -945,7 +1420,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
945
1420
  }, {
946
1421
  object: {
947
1422
  id: string;
948
- role: "reference" | "dependency" | "core";
1423
+ role: string;
949
1424
  objectType: string | null;
950
1425
  tags: string[] | null;
951
1426
  projectId: string;
@@ -972,13 +1447,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
972
1447
  objectAddress: z.ZodString;
973
1448
  objectType: z.ZodNullable<z.ZodString>;
974
1449
  objectName: z.ZodNullable<z.ZodString>;
975
- role: z.ZodEnum<["core", "dependency", "reference"]>;
1450
+ role: z.ZodString;
976
1451
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
977
1452
  addedAt: z.ZodNumber;
978
1453
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
979
1454
  }, "strict", z.ZodTypeAny, {
980
1455
  id: string;
981
- role: "reference" | "dependency" | "core";
1456
+ role: string;
982
1457
  objectType: string | null;
983
1458
  tags: string[] | null;
984
1459
  projectId: string;
@@ -988,7 +1463,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
988
1463
  metadata: Record<string, unknown> | null;
989
1464
  }, {
990
1465
  id: string;
991
- role: "reference" | "dependency" | "core";
1466
+ role: string;
992
1467
  objectType: string | null;
993
1468
  tags: string[] | null;
994
1469
  projectId: string;
@@ -1000,7 +1475,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1000
1475
  }, "strict", z.ZodTypeAny, {
1001
1476
  object: {
1002
1477
  id: string;
1003
- role: "reference" | "dependency" | "core";
1478
+ role: string;
1004
1479
  objectType: string | null;
1005
1480
  tags: string[] | null;
1006
1481
  projectId: string;
@@ -1013,7 +1488,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1013
1488
  }, {
1014
1489
  object: {
1015
1490
  id: string;
1016
- role: "reference" | "dependency" | "core";
1491
+ role: string;
1017
1492
  objectType: string | null;
1018
1493
  tags: string[] | null;
1019
1494
  projectId: string;
@@ -1054,25 +1529,133 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1054
1529
  action: "create_version";
1055
1530
  }>, z.ZodObject<{
1056
1531
  action: z.ZodLiteral<"build_graph">;
1057
- nodeCount: z.ZodNumber;
1058
- edgeCount: z.ZodNumber;
1059
- edgesBySource: z.ZodRecord<z.ZodString, z.ZodNumber>;
1060
- reputationCount: z.ZodNumber;
1061
- builtAt: z.ZodNumber;
1532
+ async_mode: z.ZodOptional<z.ZodBoolean>;
1533
+ task_id: z.ZodOptional<z.ZodString>;
1534
+ nodeCount: z.ZodOptional<z.ZodNumber>;
1535
+ edgeCount: z.ZodOptional<z.ZodNumber>;
1536
+ edgesBySource: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1537
+ reputationCount: z.ZodOptional<z.ZodNumber>;
1538
+ builtAt: z.ZodOptional<z.ZodNumber>;
1539
+ binding_verification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1540
+ service: z.ZodString;
1541
+ bindings: z.ZodRecord<z.ZodString, z.ZodObject<{
1542
+ expected: z.ZodString;
1543
+ actual: z.ZodNullable<z.ZodString>;
1544
+ count: z.ZodOptional<z.ZodNumber>;
1545
+ verified: z.ZodBoolean;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ expected: string;
1548
+ actual: string | null;
1549
+ verified: boolean;
1550
+ count?: number | undefined;
1551
+ }, {
1552
+ expected: string;
1553
+ actual: string | null;
1554
+ verified: boolean;
1555
+ count?: number | undefined;
1556
+ }>>;
1557
+ all_verified: z.ZodBoolean;
1558
+ }, "strip", z.ZodTypeAny, {
1559
+ service: string;
1560
+ bindings: Record<string, {
1561
+ expected: string;
1562
+ actual: string | null;
1563
+ verified: boolean;
1564
+ count?: number | undefined;
1565
+ }>;
1566
+ all_verified: boolean;
1567
+ }, {
1568
+ service: string;
1569
+ bindings: Record<string, {
1570
+ expected: string;
1571
+ actual: string | null;
1572
+ verified: boolean;
1573
+ count?: number | undefined;
1574
+ }>;
1575
+ all_verified: boolean;
1576
+ }>>>;
1577
+ topEdges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1578
+ source: z.ZodString;
1579
+ target: z.ZodString;
1580
+ fieldName: z.ZodNullable<z.ZodString>;
1581
+ relationshipType: z.ZodString;
1582
+ weight: z.ZodNullable<z.ZodNumber>;
1583
+ verified: z.ZodBoolean;
1584
+ }, "strict", z.ZodTypeAny, {
1585
+ source: string;
1586
+ weight: number | null;
1587
+ target: string;
1588
+ verified: boolean;
1589
+ fieldName: string | null;
1590
+ relationshipType: string;
1591
+ }, {
1592
+ source: string;
1593
+ weight: number | null;
1594
+ target: string;
1595
+ verified: boolean;
1596
+ fieldName: string | null;
1597
+ relationshipType: string;
1598
+ }>, "many">>;
1599
+ visualization: z.ZodOptional<z.ZodString>;
1600
+ hint: z.ZodOptional<z.ZodString>;
1062
1601
  }, "strict", z.ZodTypeAny, {
1063
1602
  action: "build_graph";
1064
- nodeCount: number;
1065
- edgeCount: number;
1066
- edgesBySource: Record<string, number>;
1067
- reputationCount: number;
1068
- builtAt: number;
1603
+ hint?: string | undefined;
1604
+ async_mode?: boolean | undefined;
1605
+ task_id?: string | undefined;
1606
+ nodeCount?: number | undefined;
1607
+ edgeCount?: number | undefined;
1608
+ edgesBySource?: Record<string, number> | undefined;
1609
+ reputationCount?: number | undefined;
1610
+ builtAt?: number | undefined;
1611
+ binding_verification?: {
1612
+ service: string;
1613
+ bindings: Record<string, {
1614
+ expected: string;
1615
+ actual: string | null;
1616
+ verified: boolean;
1617
+ count?: number | undefined;
1618
+ }>;
1619
+ all_verified: boolean;
1620
+ } | null | undefined;
1621
+ topEdges?: {
1622
+ source: string;
1623
+ weight: number | null;
1624
+ target: string;
1625
+ verified: boolean;
1626
+ fieldName: string | null;
1627
+ relationshipType: string;
1628
+ }[] | undefined;
1629
+ visualization?: string | undefined;
1069
1630
  }, {
1070
1631
  action: "build_graph";
1071
- nodeCount: number;
1072
- edgeCount: number;
1073
- edgesBySource: Record<string, number>;
1074
- reputationCount: number;
1075
- builtAt: number;
1632
+ hint?: string | undefined;
1633
+ async_mode?: boolean | undefined;
1634
+ task_id?: string | undefined;
1635
+ nodeCount?: number | undefined;
1636
+ edgeCount?: number | undefined;
1637
+ edgesBySource?: Record<string, number> | undefined;
1638
+ reputationCount?: number | undefined;
1639
+ builtAt?: number | undefined;
1640
+ binding_verification?: {
1641
+ service: string;
1642
+ bindings: Record<string, {
1643
+ expected: string;
1644
+ actual: string | null;
1645
+ verified: boolean;
1646
+ count?: number | undefined;
1647
+ }>;
1648
+ all_verified: boolean;
1649
+ } | null | undefined;
1650
+ topEdges?: {
1651
+ source: string;
1652
+ weight: number | null;
1653
+ target: string;
1654
+ verified: boolean;
1655
+ fieldName: string | null;
1656
+ relationshipType: string;
1657
+ }[] | undefined;
1658
+ visualization?: string | undefined;
1076
1659
  }>, z.ZodObject<{
1077
1660
  action: z.ZodLiteral<"get_graph">;
1078
1661
  edges: z.ZodArray<z.ZodObject<{
@@ -1088,49 +1671,49 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1088
1671
  }, "strict", z.ZodTypeAny, {
1089
1672
  weight: number;
1090
1673
  direction: string | null;
1674
+ depth: number;
1675
+ verified: boolean;
1676
+ fieldName: string | null;
1677
+ relationshipType: string;
1091
1678
  sourceObject: string;
1092
1679
  targetObject: string;
1093
1680
  edgeSource: "registrar" | "internal" | "potential";
1094
- relationshipType: string;
1095
- fieldName: string | null;
1096
- depth: number;
1097
- verified: boolean;
1098
1681
  }, {
1099
1682
  weight: number;
1100
1683
  direction: string | null;
1684
+ depth: number;
1685
+ verified: boolean;
1686
+ fieldName: string | null;
1687
+ relationshipType: string;
1101
1688
  sourceObject: string;
1102
1689
  targetObject: string;
1103
1690
  edgeSource: "registrar" | "internal" | "potential";
1104
- relationshipType: string;
1105
- fieldName: string | null;
1106
- depth: number;
1107
- verified: boolean;
1108
1691
  }>, "many">;
1109
1692
  }, "strict", z.ZodTypeAny, {
1110
1693
  action: "get_graph";
1111
1694
  edges: {
1112
1695
  weight: number;
1113
1696
  direction: string | null;
1697
+ depth: number;
1698
+ verified: boolean;
1699
+ fieldName: string | null;
1700
+ relationshipType: string;
1114
1701
  sourceObject: string;
1115
1702
  targetObject: string;
1116
1703
  edgeSource: "registrar" | "internal" | "potential";
1117
- relationshipType: string;
1118
- fieldName: string | null;
1119
- depth: number;
1120
- verified: boolean;
1121
1704
  }[];
1122
1705
  }, {
1123
1706
  action: "get_graph";
1124
1707
  edges: {
1125
1708
  weight: number;
1126
1709
  direction: string | null;
1710
+ depth: number;
1711
+ verified: boolean;
1712
+ fieldName: string | null;
1713
+ relationshipType: string;
1127
1714
  sourceObject: string;
1128
1715
  targetObject: string;
1129
1716
  edgeSource: "registrar" | "internal" | "potential";
1130
- relationshipType: string;
1131
- fieldName: string | null;
1132
- depth: number;
1133
- verified: boolean;
1134
1717
  }[];
1135
1718
  }>, z.ZodObject<{
1136
1719
  action: z.ZodLiteral<"evaluate_project">;
@@ -1455,6 +2038,203 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1455
2038
  }[];
1456
2039
  }>;
1457
2040
  saved: z.ZodBoolean;
2041
+ detail_level: z.ZodEnum<["summary", "detailed", "full"]>;
2042
+ stage_gate: z.ZodObject<{
2043
+ stage: z.ZodNumber;
2044
+ passed: z.ZodBoolean;
2045
+ can_proceed: z.ZodBoolean;
2046
+ blocking_issues: z.ZodArray<z.ZodString, "many">;
2047
+ warnings: z.ZodArray<z.ZodString, "many">;
2048
+ checks: z.ZodArray<z.ZodObject<{
2049
+ dimension: z.ZodEnum<["semantic", "tools", "reversibility", "risk", "isolation", "gas_budget"]>;
2050
+ status: z.ZodEnum<["PASS", "WARN", "FAIL"]>;
2051
+ message: z.ZodString;
2052
+ }, "strict", z.ZodTypeAny, {
2053
+ message: string;
2054
+ status: "PASS" | "FAIL" | "WARN";
2055
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2056
+ }, {
2057
+ message: string;
2058
+ status: "PASS" | "FAIL" | "WARN";
2059
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2060
+ }>, "many">;
2061
+ }, "strict", z.ZodTypeAny, {
2062
+ warnings: string[];
2063
+ stage: number;
2064
+ passed: boolean;
2065
+ checks: {
2066
+ message: string;
2067
+ status: "PASS" | "FAIL" | "WARN";
2068
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2069
+ }[];
2070
+ can_proceed: boolean;
2071
+ blocking_issues: string[];
2072
+ }, {
2073
+ warnings: string[];
2074
+ stage: number;
2075
+ passed: boolean;
2076
+ checks: {
2077
+ message: string;
2078
+ status: "PASS" | "FAIL" | "WARN";
2079
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2080
+ }[];
2081
+ can_proceed: boolean;
2082
+ blocking_issues: string[];
2083
+ }>;
2084
+ deployment_scan: z.ZodObject<{
2085
+ overall_readiness: z.ZodEnum<["ready", "blocked", "warnings"]>;
2086
+ critical_count: z.ZodNumber;
2087
+ warning_count: z.ZodNumber;
2088
+ findings: z.ZodArray<z.ZodObject<{
2089
+ check_id: z.ZodString;
2090
+ severity: z.ZodEnum<["critical", "warning", "info"]>;
2091
+ message: z.ZodString;
2092
+ location: z.ZodOptional<z.ZodString>;
2093
+ suggestion: z.ZodOptional<z.ZodString>;
2094
+ }, "strict", z.ZodTypeAny, {
2095
+ message: string;
2096
+ severity: "info" | "critical" | "warning";
2097
+ check_id: string;
2098
+ location?: string | undefined;
2099
+ suggestion?: string | undefined;
2100
+ }, {
2101
+ message: string;
2102
+ severity: "info" | "critical" | "warning";
2103
+ check_id: string;
2104
+ location?: string | undefined;
2105
+ suggestion?: string | undefined;
2106
+ }>, "many">;
2107
+ checks: z.ZodObject<{
2108
+ D01_object_defined: z.ZodEnum<["pass", "fail"]>;
2109
+ D02_dependency_complete: z.ZodEnum<["pass", "fail"]>;
2110
+ D03_scenario_covered: z.ZodEnum<["pass", "fail"]>;
2111
+ D04_testnet_topo_order: z.ZodEnum<["pass", "fail"]>;
2112
+ D05_testnet_network: z.ZodEnum<["pass", "fail"]>;
2113
+ D06_testnet_replace: z.ZodEnum<["pass", "fail"]>;
2114
+ D07_permission_index: z.ZodEnum<["pass", "fail"]>;
2115
+ D08_guard_gen_passport: z.ZodEnum<["pass", "fail"]>;
2116
+ D09_machine_node_count: z.ZodEnum<["pass", "fail"]>;
2117
+ D10_substep_coherence: z.ZodEnum<["pass", "fail"]>;
2118
+ D11_mainnet_testnet_match: z.ZodEnum<["pass", "fail"]>;
2119
+ D12_mainnet_network: z.ZodEnum<["pass", "fail"]>;
2120
+ D13_mainnet_replace: z.ZodEnum<["pass", "fail"]>;
2121
+ D14_testnet_verification: z.ZodEnum<["pass", "fail"]>;
2122
+ D15_mainnet_verification: z.ZodEnum<["pass", "fail"]>;
2123
+ D16_no_critical_risk: z.ZodEnum<["pass", "fail"]>;
2124
+ D17_no_high_risk: z.ZodEnum<["pass", "fail"]>;
2125
+ D18_completeness_checklist: z.ZodEnum<["pass", "fail"]>;
2126
+ D19_machine_entry_forward: z.ZodEnum<["pass", "fail"]>;
2127
+ D20_service_compensation_fund: z.ZodEnum<["pass", "fail"]>;
2128
+ }, "strict", z.ZodTypeAny, {
2129
+ D01_object_defined: "pass" | "fail";
2130
+ D02_dependency_complete: "pass" | "fail";
2131
+ D03_scenario_covered: "pass" | "fail";
2132
+ D04_testnet_topo_order: "pass" | "fail";
2133
+ D05_testnet_network: "pass" | "fail";
2134
+ D06_testnet_replace: "pass" | "fail";
2135
+ D07_permission_index: "pass" | "fail";
2136
+ D08_guard_gen_passport: "pass" | "fail";
2137
+ D09_machine_node_count: "pass" | "fail";
2138
+ D10_substep_coherence: "pass" | "fail";
2139
+ D11_mainnet_testnet_match: "pass" | "fail";
2140
+ D12_mainnet_network: "pass" | "fail";
2141
+ D13_mainnet_replace: "pass" | "fail";
2142
+ D14_testnet_verification: "pass" | "fail";
2143
+ D15_mainnet_verification: "pass" | "fail";
2144
+ D16_no_critical_risk: "pass" | "fail";
2145
+ D17_no_high_risk: "pass" | "fail";
2146
+ D18_completeness_checklist: "pass" | "fail";
2147
+ D19_machine_entry_forward: "pass" | "fail";
2148
+ D20_service_compensation_fund: "pass" | "fail";
2149
+ }, {
2150
+ D01_object_defined: "pass" | "fail";
2151
+ D02_dependency_complete: "pass" | "fail";
2152
+ D03_scenario_covered: "pass" | "fail";
2153
+ D04_testnet_topo_order: "pass" | "fail";
2154
+ D05_testnet_network: "pass" | "fail";
2155
+ D06_testnet_replace: "pass" | "fail";
2156
+ D07_permission_index: "pass" | "fail";
2157
+ D08_guard_gen_passport: "pass" | "fail";
2158
+ D09_machine_node_count: "pass" | "fail";
2159
+ D10_substep_coherence: "pass" | "fail";
2160
+ D11_mainnet_testnet_match: "pass" | "fail";
2161
+ D12_mainnet_network: "pass" | "fail";
2162
+ D13_mainnet_replace: "pass" | "fail";
2163
+ D14_testnet_verification: "pass" | "fail";
2164
+ D15_mainnet_verification: "pass" | "fail";
2165
+ D16_no_critical_risk: "pass" | "fail";
2166
+ D17_no_high_risk: "pass" | "fail";
2167
+ D18_completeness_checklist: "pass" | "fail";
2168
+ D19_machine_entry_forward: "pass" | "fail";
2169
+ D20_service_compensation_fund: "pass" | "fail";
2170
+ }>;
2171
+ }, "strict", z.ZodTypeAny, {
2172
+ critical_count: number;
2173
+ findings: {
2174
+ message: string;
2175
+ severity: "info" | "critical" | "warning";
2176
+ check_id: string;
2177
+ location?: string | undefined;
2178
+ suggestion?: string | undefined;
2179
+ }[];
2180
+ checks: {
2181
+ D01_object_defined: "pass" | "fail";
2182
+ D02_dependency_complete: "pass" | "fail";
2183
+ D03_scenario_covered: "pass" | "fail";
2184
+ D04_testnet_topo_order: "pass" | "fail";
2185
+ D05_testnet_network: "pass" | "fail";
2186
+ D06_testnet_replace: "pass" | "fail";
2187
+ D07_permission_index: "pass" | "fail";
2188
+ D08_guard_gen_passport: "pass" | "fail";
2189
+ D09_machine_node_count: "pass" | "fail";
2190
+ D10_substep_coherence: "pass" | "fail";
2191
+ D11_mainnet_testnet_match: "pass" | "fail";
2192
+ D12_mainnet_network: "pass" | "fail";
2193
+ D13_mainnet_replace: "pass" | "fail";
2194
+ D14_testnet_verification: "pass" | "fail";
2195
+ D15_mainnet_verification: "pass" | "fail";
2196
+ D16_no_critical_risk: "pass" | "fail";
2197
+ D17_no_high_risk: "pass" | "fail";
2198
+ D18_completeness_checklist: "pass" | "fail";
2199
+ D19_machine_entry_forward: "pass" | "fail";
2200
+ D20_service_compensation_fund: "pass" | "fail";
2201
+ };
2202
+ overall_readiness: "warnings" | "blocked" | "ready";
2203
+ warning_count: number;
2204
+ }, {
2205
+ critical_count: number;
2206
+ findings: {
2207
+ message: string;
2208
+ severity: "info" | "critical" | "warning";
2209
+ check_id: string;
2210
+ location?: string | undefined;
2211
+ suggestion?: string | undefined;
2212
+ }[];
2213
+ checks: {
2214
+ D01_object_defined: "pass" | "fail";
2215
+ D02_dependency_complete: "pass" | "fail";
2216
+ D03_scenario_covered: "pass" | "fail";
2217
+ D04_testnet_topo_order: "pass" | "fail";
2218
+ D05_testnet_network: "pass" | "fail";
2219
+ D06_testnet_replace: "pass" | "fail";
2220
+ D07_permission_index: "pass" | "fail";
2221
+ D08_guard_gen_passport: "pass" | "fail";
2222
+ D09_machine_node_count: "pass" | "fail";
2223
+ D10_substep_coherence: "pass" | "fail";
2224
+ D11_mainnet_testnet_match: "pass" | "fail";
2225
+ D12_mainnet_network: "pass" | "fail";
2226
+ D13_mainnet_replace: "pass" | "fail";
2227
+ D14_testnet_verification: "pass" | "fail";
2228
+ D15_mainnet_verification: "pass" | "fail";
2229
+ D16_no_critical_risk: "pass" | "fail";
2230
+ D17_no_high_risk: "pass" | "fail";
2231
+ D18_completeness_checklist: "pass" | "fail";
2232
+ D19_machine_entry_forward: "pass" | "fail";
2233
+ D20_service_compensation_fund: "pass" | "fail";
2234
+ };
2235
+ overall_readiness: "warnings" | "blocked" | "ready";
2236
+ warning_count: number;
2237
+ }>;
1458
2238
  }, "strict", z.ZodTypeAny, {
1459
2239
  validation: {
1460
2240
  valid: boolean;
@@ -1468,7 +2248,54 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1468
2248
  };
1469
2249
  markdown: string;
1470
2250
  action: "generate_deployment_doc";
2251
+ detail_level: "summary" | "full" | "detailed";
1471
2252
  saved: boolean;
2253
+ stage_gate: {
2254
+ warnings: string[];
2255
+ stage: number;
2256
+ passed: boolean;
2257
+ checks: {
2258
+ message: string;
2259
+ status: "PASS" | "FAIL" | "WARN";
2260
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2261
+ }[];
2262
+ can_proceed: boolean;
2263
+ blocking_issues: string[];
2264
+ };
2265
+ deployment_scan: {
2266
+ critical_count: number;
2267
+ findings: {
2268
+ message: string;
2269
+ severity: "info" | "critical" | "warning";
2270
+ check_id: string;
2271
+ location?: string | undefined;
2272
+ suggestion?: string | undefined;
2273
+ }[];
2274
+ checks: {
2275
+ D01_object_defined: "pass" | "fail";
2276
+ D02_dependency_complete: "pass" | "fail";
2277
+ D03_scenario_covered: "pass" | "fail";
2278
+ D04_testnet_topo_order: "pass" | "fail";
2279
+ D05_testnet_network: "pass" | "fail";
2280
+ D06_testnet_replace: "pass" | "fail";
2281
+ D07_permission_index: "pass" | "fail";
2282
+ D08_guard_gen_passport: "pass" | "fail";
2283
+ D09_machine_node_count: "pass" | "fail";
2284
+ D10_substep_coherence: "pass" | "fail";
2285
+ D11_mainnet_testnet_match: "pass" | "fail";
2286
+ D12_mainnet_network: "pass" | "fail";
2287
+ D13_mainnet_replace: "pass" | "fail";
2288
+ D14_testnet_verification: "pass" | "fail";
2289
+ D15_mainnet_verification: "pass" | "fail";
2290
+ D16_no_critical_risk: "pass" | "fail";
2291
+ D17_no_high_risk: "pass" | "fail";
2292
+ D18_completeness_checklist: "pass" | "fail";
2293
+ D19_machine_entry_forward: "pass" | "fail";
2294
+ D20_service_compensation_fund: "pass" | "fail";
2295
+ };
2296
+ overall_readiness: "warnings" | "blocked" | "ready";
2297
+ warning_count: number;
2298
+ };
1472
2299
  }, {
1473
2300
  validation: {
1474
2301
  valid: boolean;
@@ -1482,7 +2309,434 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1482
2309
  };
1483
2310
  markdown: string;
1484
2311
  action: "generate_deployment_doc";
2312
+ detail_level: "summary" | "full" | "detailed";
1485
2313
  saved: boolean;
2314
+ stage_gate: {
2315
+ warnings: string[];
2316
+ stage: number;
2317
+ passed: boolean;
2318
+ checks: {
2319
+ message: string;
2320
+ status: "PASS" | "FAIL" | "WARN";
2321
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
2322
+ }[];
2323
+ can_proceed: boolean;
2324
+ blocking_issues: string[];
2325
+ };
2326
+ deployment_scan: {
2327
+ critical_count: number;
2328
+ findings: {
2329
+ message: string;
2330
+ severity: "info" | "critical" | "warning";
2331
+ check_id: string;
2332
+ location?: string | undefined;
2333
+ suggestion?: string | undefined;
2334
+ }[];
2335
+ checks: {
2336
+ D01_object_defined: "pass" | "fail";
2337
+ D02_dependency_complete: "pass" | "fail";
2338
+ D03_scenario_covered: "pass" | "fail";
2339
+ D04_testnet_topo_order: "pass" | "fail";
2340
+ D05_testnet_network: "pass" | "fail";
2341
+ D06_testnet_replace: "pass" | "fail";
2342
+ D07_permission_index: "pass" | "fail";
2343
+ D08_guard_gen_passport: "pass" | "fail";
2344
+ D09_machine_node_count: "pass" | "fail";
2345
+ D10_substep_coherence: "pass" | "fail";
2346
+ D11_mainnet_testnet_match: "pass" | "fail";
2347
+ D12_mainnet_network: "pass" | "fail";
2348
+ D13_mainnet_replace: "pass" | "fail";
2349
+ D14_testnet_verification: "pass" | "fail";
2350
+ D15_mainnet_verification: "pass" | "fail";
2351
+ D16_no_critical_risk: "pass" | "fail";
2352
+ D17_no_high_risk: "pass" | "fail";
2353
+ D18_completeness_checklist: "pass" | "fail";
2354
+ D19_machine_entry_forward: "pass" | "fail";
2355
+ D20_service_compensation_fund: "pass" | "fail";
2356
+ };
2357
+ overall_readiness: "warnings" | "blocked" | "ready";
2358
+ warning_count: number;
2359
+ };
2360
+ }>, z.ZodObject<{
2361
+ action: z.ZodLiteral<"pre_evaluate_check">;
2362
+ ready: z.ZodBoolean;
2363
+ missing: z.ZodArray<z.ZodObject<{
2364
+ id: z.ZodString;
2365
+ description: z.ZodString;
2366
+ impact: z.ZodString;
2367
+ }, "strict", z.ZodTypeAny, {
2368
+ description: string;
2369
+ id: string;
2370
+ impact: string;
2371
+ }, {
2372
+ description: string;
2373
+ id: string;
2374
+ impact: string;
2375
+ }>, "many">;
2376
+ warnings: z.ZodArray<z.ZodObject<{
2377
+ id: z.ZodString;
2378
+ description: z.ZodString;
2379
+ impact: z.ZodString;
2380
+ }, "strict", z.ZodTypeAny, {
2381
+ description: string;
2382
+ id: string;
2383
+ impact: string;
2384
+ }, {
2385
+ description: string;
2386
+ id: string;
2387
+ impact: string;
2388
+ }>, "many">;
2389
+ summary: z.ZodString;
2390
+ counts: z.ZodObject<{
2391
+ objects: z.ZodNumber;
2392
+ edges: z.ZodNumber;
2393
+ uncached: z.ZodNumber;
2394
+ stale: z.ZodNumber;
2395
+ dangling_edges: z.ZodNumber;
2396
+ drafts: z.ZodNumber;
2397
+ }, "strict", z.ZodTypeAny, {
2398
+ objects: number;
2399
+ edges: number;
2400
+ uncached: number;
2401
+ stale: number;
2402
+ dangling_edges: number;
2403
+ drafts: number;
2404
+ }, {
2405
+ objects: number;
2406
+ edges: number;
2407
+ uncached: number;
2408
+ stale: number;
2409
+ dangling_edges: number;
2410
+ drafts: number;
2411
+ }>;
2412
+ }, "strict", z.ZodTypeAny, {
2413
+ summary: string;
2414
+ action: "pre_evaluate_check";
2415
+ warnings: {
2416
+ description: string;
2417
+ id: string;
2418
+ impact: string;
2419
+ }[];
2420
+ ready: boolean;
2421
+ missing: {
2422
+ description: string;
2423
+ id: string;
2424
+ impact: string;
2425
+ }[];
2426
+ counts: {
2427
+ objects: number;
2428
+ edges: number;
2429
+ uncached: number;
2430
+ stale: number;
2431
+ dangling_edges: number;
2432
+ drafts: number;
2433
+ };
2434
+ }, {
2435
+ summary: string;
2436
+ action: "pre_evaluate_check";
2437
+ warnings: {
2438
+ description: string;
2439
+ id: string;
2440
+ impact: string;
2441
+ }[];
2442
+ ready: boolean;
2443
+ missing: {
2444
+ description: string;
2445
+ id: string;
2446
+ impact: string;
2447
+ }[];
2448
+ counts: {
2449
+ objects: number;
2450
+ edges: number;
2451
+ uncached: number;
2452
+ stale: number;
2453
+ dangling_edges: number;
2454
+ drafts: number;
2455
+ };
2456
+ }>, z.ZodObject<{
2457
+ action: z.ZodLiteral<"verify_deployment">;
2458
+ verifiedCount: z.ZodNumber;
2459
+ matched: z.ZodNumber;
2460
+ mismatched: z.ZodNumber;
2461
+ missing: z.ZodNumber;
2462
+ unreachable: z.ZodNumber;
2463
+ results: z.ZodArray<z.ZodObject<{
2464
+ objectAddress: z.ZodString;
2465
+ objectName: z.ZodNullable<z.ZodString>;
2466
+ objectType: z.ZodNullable<z.ZodString>;
2467
+ status: z.ZodEnum<["matched", "mismatched", "missing", "unreachable"]>;
2468
+ differences: z.ZodOptional<z.ZodArray<z.ZodObject<{
2469
+ field: z.ZodString;
2470
+ sqlite: z.ZodUnknown;
2471
+ onchain: z.ZodUnknown;
2472
+ }, "strict", z.ZodTypeAny, {
2473
+ field: string;
2474
+ sqlite?: unknown;
2475
+ onchain?: unknown;
2476
+ }, {
2477
+ field: string;
2478
+ sqlite?: unknown;
2479
+ onchain?: unknown;
2480
+ }>, "many">>;
2481
+ bindings: z.ZodOptional<z.ZodObject<{
2482
+ machine: z.ZodBoolean;
2483
+ permission: z.ZodBoolean;
2484
+ buy_guard: z.ZodBoolean;
2485
+ order_allocators: z.ZodBoolean;
2486
+ }, "strict", z.ZodTypeAny, {
2487
+ permission: boolean;
2488
+ buy_guard: boolean;
2489
+ machine: boolean;
2490
+ order_allocators: boolean;
2491
+ }, {
2492
+ permission: boolean;
2493
+ buy_guard: boolean;
2494
+ machine: boolean;
2495
+ order_allocators: boolean;
2496
+ }>>;
2497
+ error: z.ZodOptional<z.ZodString>;
2498
+ }, "strict", z.ZodTypeAny, {
2499
+ status: "missing" | "matched" | "mismatched" | "unreachable";
2500
+ objectType: string | null;
2501
+ objectAddress: string;
2502
+ objectName: string | null;
2503
+ error?: string | undefined;
2504
+ bindings?: {
2505
+ permission: boolean;
2506
+ buy_guard: boolean;
2507
+ machine: boolean;
2508
+ order_allocators: boolean;
2509
+ } | undefined;
2510
+ differences?: {
2511
+ field: string;
2512
+ sqlite?: unknown;
2513
+ onchain?: unknown;
2514
+ }[] | undefined;
2515
+ }, {
2516
+ status: "missing" | "matched" | "mismatched" | "unreachable";
2517
+ objectType: string | null;
2518
+ objectAddress: string;
2519
+ objectName: string | null;
2520
+ error?: string | undefined;
2521
+ bindings?: {
2522
+ permission: boolean;
2523
+ buy_guard: boolean;
2524
+ machine: boolean;
2525
+ order_allocators: boolean;
2526
+ } | undefined;
2527
+ differences?: {
2528
+ field: string;
2529
+ sqlite?: unknown;
2530
+ onchain?: unknown;
2531
+ }[] | undefined;
2532
+ }>, "many">;
2533
+ summary: z.ZodString;
2534
+ }, "strict", z.ZodTypeAny, {
2535
+ summary: string;
2536
+ action: "verify_deployment";
2537
+ missing: number;
2538
+ verifiedCount: number;
2539
+ matched: number;
2540
+ mismatched: number;
2541
+ unreachable: number;
2542
+ results: {
2543
+ status: "missing" | "matched" | "mismatched" | "unreachable";
2544
+ objectType: string | null;
2545
+ objectAddress: string;
2546
+ objectName: string | null;
2547
+ error?: string | undefined;
2548
+ bindings?: {
2549
+ permission: boolean;
2550
+ buy_guard: boolean;
2551
+ machine: boolean;
2552
+ order_allocators: boolean;
2553
+ } | undefined;
2554
+ differences?: {
2555
+ field: string;
2556
+ sqlite?: unknown;
2557
+ onchain?: unknown;
2558
+ }[] | undefined;
2559
+ }[];
2560
+ }, {
2561
+ summary: string;
2562
+ action: "verify_deployment";
2563
+ missing: number;
2564
+ verifiedCount: number;
2565
+ matched: number;
2566
+ mismatched: number;
2567
+ unreachable: number;
2568
+ results: {
2569
+ status: "missing" | "matched" | "mismatched" | "unreachable";
2570
+ objectType: string | null;
2571
+ objectAddress: string;
2572
+ objectName: string | null;
2573
+ error?: string | undefined;
2574
+ bindings?: {
2575
+ permission: boolean;
2576
+ buy_guard: boolean;
2577
+ machine: boolean;
2578
+ order_allocators: boolean;
2579
+ } | undefined;
2580
+ differences?: {
2581
+ field: string;
2582
+ sqlite?: unknown;
2583
+ onchain?: unknown;
2584
+ }[] | undefined;
2585
+ }[];
2586
+ }>, z.ZodObject<{
2587
+ action: z.ZodLiteral<"get_machine_graph">;
2588
+ machineAddress: z.ZodString;
2589
+ machineName: z.ZodNullable<z.ZodString>;
2590
+ nodes: z.ZodArray<z.ZodObject<{
2591
+ name: z.ZodString;
2592
+ description: z.ZodNullable<z.ZodString>;
2593
+ }, "strict", z.ZodTypeAny, {
2594
+ name: string;
2595
+ description: string | null;
2596
+ }, {
2597
+ name: string;
2598
+ description: string | null;
2599
+ }>, "many">;
2600
+ edges: z.ZodArray<z.ZodObject<{
2601
+ from: z.ZodString;
2602
+ to: z.ZodString;
2603
+ threshold: z.ZodNumber;
2604
+ forwards: z.ZodArray<z.ZodObject<{
2605
+ name: z.ZodString;
2606
+ weight: z.ZodNumber;
2607
+ guard: z.ZodNullable<z.ZodString>;
2608
+ named_operator: z.ZodNullable<z.ZodString>;
2609
+ permission_index: z.ZodNullable<z.ZodNumber>;
2610
+ }, "strict", z.ZodTypeAny, {
2611
+ name: string;
2612
+ guard: string | null;
2613
+ weight: number;
2614
+ permission_index: number | null;
2615
+ named_operator: string | null;
2616
+ }, {
2617
+ name: string;
2618
+ guard: string | null;
2619
+ weight: number;
2620
+ permission_index: number | null;
2621
+ named_operator: string | null;
2622
+ }>, "many">;
2623
+ }, "strict", z.ZodTypeAny, {
2624
+ from: string;
2625
+ to: string;
2626
+ forwards: {
2627
+ name: string;
2628
+ guard: string | null;
2629
+ weight: number;
2630
+ permission_index: number | null;
2631
+ named_operator: string | null;
2632
+ }[];
2633
+ threshold: number;
2634
+ }, {
2635
+ from: string;
2636
+ to: string;
2637
+ forwards: {
2638
+ name: string;
2639
+ guard: string | null;
2640
+ weight: number;
2641
+ permission_index: number | null;
2642
+ named_operator: string | null;
2643
+ }[];
2644
+ threshold: number;
2645
+ }>, "many">;
2646
+ published: z.ZodNullable<z.ZodBoolean>;
2647
+ paused: z.ZodNullable<z.ZodBoolean>;
2648
+ }, "strict", z.ZodTypeAny, {
2649
+ action: "get_machine_graph";
2650
+ published: boolean | null;
2651
+ nodes: {
2652
+ name: string;
2653
+ description: string | null;
2654
+ }[];
2655
+ paused: boolean | null;
2656
+ machineName: string | null;
2657
+ machineAddress: string;
2658
+ edges: {
2659
+ from: string;
2660
+ to: string;
2661
+ forwards: {
2662
+ name: string;
2663
+ guard: string | null;
2664
+ weight: number;
2665
+ permission_index: number | null;
2666
+ named_operator: string | null;
2667
+ }[];
2668
+ threshold: number;
2669
+ }[];
2670
+ }, {
2671
+ action: "get_machine_graph";
2672
+ published: boolean | null;
2673
+ nodes: {
2674
+ name: string;
2675
+ description: string | null;
2676
+ }[];
2677
+ paused: boolean | null;
2678
+ machineName: string | null;
2679
+ machineAddress: string;
2680
+ edges: {
2681
+ from: string;
2682
+ to: string;
2683
+ forwards: {
2684
+ name: string;
2685
+ guard: string | null;
2686
+ weight: number;
2687
+ permission_index: number | null;
2688
+ named_operator: string | null;
2689
+ }[];
2690
+ threshold: number;
2691
+ }[];
2692
+ }>, z.ZodObject<{
2693
+ action: z.ZodLiteral<"clone_project_to_network">;
2694
+ new_project_id: z.ZodString;
2695
+ new_prefix: z.ZodString;
2696
+ target_network: z.ZodEnum<["testnet", "mainnet"]>;
2697
+ cloned_objects_count: z.ZodNumber;
2698
+ message: z.ZodString;
2699
+ next_steps: z.ZodString;
2700
+ }, "strict", z.ZodTypeAny, {
2701
+ message: string;
2702
+ action: "clone_project_to_network";
2703
+ target_network: "testnet" | "mainnet";
2704
+ new_project_id: string;
2705
+ new_prefix: string;
2706
+ cloned_objects_count: number;
2707
+ next_steps: string;
2708
+ }, {
2709
+ message: string;
2710
+ action: "clone_project_to_network";
2711
+ target_network: "testnet" | "mainnet";
2712
+ new_project_id: string;
2713
+ new_prefix: string;
2714
+ cloned_objects_count: number;
2715
+ next_steps: string;
2716
+ }>, z.ZodObject<{
2717
+ action: z.ZodLiteral<"migrate_network">;
2718
+ new_project_id: z.ZodString;
2719
+ new_prefix: z.ZodString;
2720
+ target_network: z.ZodEnum<["testnet", "mainnet"]>;
2721
+ cloned_objects_count: z.ZodNumber;
2722
+ message: z.ZodString;
2723
+ next_steps: z.ZodString;
2724
+ }, "strict", z.ZodTypeAny, {
2725
+ message: string;
2726
+ action: "migrate_network";
2727
+ target_network: "testnet" | "mainnet";
2728
+ new_project_id: string;
2729
+ new_prefix: string;
2730
+ cloned_objects_count: number;
2731
+ next_steps: string;
2732
+ }, {
2733
+ message: string;
2734
+ action: "migrate_network";
2735
+ target_network: "testnet" | "mainnet";
2736
+ new_project_id: string;
2737
+ new_prefix: string;
2738
+ cloned_objects_count: number;
2739
+ next_steps: string;
1486
2740
  }>]>;
1487
2741
  }, "strict", z.ZodTypeAny, {
1488
2742
  result: {
@@ -1540,6 +2794,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1540
2794
  serviceAddress: string | null;
1541
2795
  defaultAccount: string | null;
1542
2796
  };
2797
+ recommended_creation_order: {
2798
+ object: string;
2799
+ reason: string;
2800
+ required: boolean;
2801
+ step: number;
2802
+ }[];
2803
+ hint?: string | undefined;
2804
+ blueprint?: {
2805
+ objects_count: number;
2806
+ edges_count: number;
2807
+ industry_source: string;
2808
+ applied_template: string;
2809
+ steps_count: number;
2810
+ scenarios_count: number;
2811
+ key_risk?: string | null | undefined;
2812
+ } | undefined;
2813
+ blueprint_warning?: string | undefined;
2814
+ blueprint_skipped?: boolean | undefined;
1543
2815
  } | {
1544
2816
  action: "create_project_from_onchain";
1545
2817
  project: {
@@ -1561,7 +2833,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1561
2833
  };
1562
2834
  objects: {
1563
2835
  id: string;
1564
- role: "reference" | "dependency" | "core";
2836
+ role: string;
1565
2837
  objectType: string | null;
1566
2838
  tags: string[] | null;
1567
2839
  projectId: string;
@@ -1611,7 +2883,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1611
2883
  };
1612
2884
  objects: {
1613
2885
  id: string;
1614
- role: "reference" | "dependency" | "core";
2886
+ role: string;
1615
2887
  objectType: string | null;
1616
2888
  tags: string[] | null;
1617
2889
  projectId: string;
@@ -1621,6 +2893,64 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1621
2893
  metadata: Record<string, unknown> | null;
1622
2894
  }[];
1623
2895
  graphEdgeCount: number;
2896
+ objectGroups: {
2897
+ other: {
2898
+ id: string;
2899
+ role: string;
2900
+ objectType: string | null;
2901
+ tags: string[] | null;
2902
+ projectId: string;
2903
+ objectAddress: string;
2904
+ objectName: string | null;
2905
+ addedAt: number;
2906
+ metadata: Record<string, unknown> | null;
2907
+ }[];
2908
+ reference: {
2909
+ id: string;
2910
+ role: string;
2911
+ objectType: string | null;
2912
+ tags: string[] | null;
2913
+ projectId: string;
2914
+ objectAddress: string;
2915
+ objectName: string | null;
2916
+ addedAt: number;
2917
+ metadata: Record<string, unknown> | null;
2918
+ }[];
2919
+ dependency: {
2920
+ id: string;
2921
+ role: string;
2922
+ objectType: string | null;
2923
+ tags: string[] | null;
2924
+ projectId: string;
2925
+ objectAddress: string;
2926
+ objectName: string | null;
2927
+ addedAt: number;
2928
+ metadata: Record<string, unknown> | null;
2929
+ }[];
2930
+ core: {
2931
+ id: string;
2932
+ role: string;
2933
+ objectType: string | null;
2934
+ tags: string[] | null;
2935
+ projectId: string;
2936
+ objectAddress: string;
2937
+ objectName: string | null;
2938
+ addedAt: number;
2939
+ metadata: Record<string, unknown> | null;
2940
+ }[];
2941
+ stats: {
2942
+ total: number;
2943
+ core_count: number;
2944
+ dependency_count: number;
2945
+ reference_count: number;
2946
+ other_count: number;
2947
+ by_type: Record<string, number>;
2948
+ };
2949
+ };
2950
+ serviceStatus: {
2951
+ published: boolean | null;
2952
+ paused: boolean | null;
2953
+ } | null;
1624
2954
  evaluations: {
1625
2955
  id: string;
1626
2956
  summary: string | null;
@@ -1651,7 +2981,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1651
2981
  } | {
1652
2982
  object: {
1653
2983
  id: string;
1654
- role: "reference" | "dependency" | "core";
2984
+ role: string;
1655
2985
  objectType: string | null;
1656
2986
  tags: string[] | null;
1657
2987
  projectId: string;
@@ -1667,7 +2997,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1667
2997
  } | {
1668
2998
  object: {
1669
2999
  id: string;
1670
- role: "reference" | "dependency" | "core";
3000
+ role: string;
1671
3001
  objectType: string | null;
1672
3002
  tags: string[] | null;
1673
3003
  projectId: string;
@@ -1686,23 +3016,45 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1686
3016
  action: "create_version";
1687
3017
  } | {
1688
3018
  action: "build_graph";
1689
- nodeCount: number;
1690
- edgeCount: number;
1691
- edgesBySource: Record<string, number>;
1692
- reputationCount: number;
1693
- builtAt: number;
3019
+ hint?: string | undefined;
3020
+ async_mode?: boolean | undefined;
3021
+ task_id?: string | undefined;
3022
+ nodeCount?: number | undefined;
3023
+ edgeCount?: number | undefined;
3024
+ edgesBySource?: Record<string, number> | undefined;
3025
+ reputationCount?: number | undefined;
3026
+ builtAt?: number | undefined;
3027
+ binding_verification?: {
3028
+ service: string;
3029
+ bindings: Record<string, {
3030
+ expected: string;
3031
+ actual: string | null;
3032
+ verified: boolean;
3033
+ count?: number | undefined;
3034
+ }>;
3035
+ all_verified: boolean;
3036
+ } | null | undefined;
3037
+ topEdges?: {
3038
+ source: string;
3039
+ weight: number | null;
3040
+ target: string;
3041
+ verified: boolean;
3042
+ fieldName: string | null;
3043
+ relationshipType: string;
3044
+ }[] | undefined;
3045
+ visualization?: string | undefined;
1694
3046
  } | {
1695
3047
  action: "get_graph";
1696
3048
  edges: {
1697
3049
  weight: number;
1698
3050
  direction: string | null;
3051
+ depth: number;
3052
+ verified: boolean;
3053
+ fieldName: string | null;
3054
+ relationshipType: string;
1699
3055
  sourceObject: string;
1700
3056
  targetObject: string;
1701
3057
  edgeSource: "registrar" | "internal" | "potential";
1702
- relationshipType: string;
1703
- fieldName: string | null;
1704
- depth: number;
1705
- verified: boolean;
1706
3058
  }[];
1707
3059
  } | {
1708
3060
  summary: string;
@@ -1777,7 +3129,140 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1777
3129
  };
1778
3130
  markdown: string;
1779
3131
  action: "generate_deployment_doc";
3132
+ detail_level: "summary" | "full" | "detailed";
1780
3133
  saved: boolean;
3134
+ stage_gate: {
3135
+ warnings: string[];
3136
+ stage: number;
3137
+ passed: boolean;
3138
+ checks: {
3139
+ message: string;
3140
+ status: "PASS" | "FAIL" | "WARN";
3141
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
3142
+ }[];
3143
+ can_proceed: boolean;
3144
+ blocking_issues: string[];
3145
+ };
3146
+ deployment_scan: {
3147
+ critical_count: number;
3148
+ findings: {
3149
+ message: string;
3150
+ severity: "info" | "critical" | "warning";
3151
+ check_id: string;
3152
+ location?: string | undefined;
3153
+ suggestion?: string | undefined;
3154
+ }[];
3155
+ checks: {
3156
+ D01_object_defined: "pass" | "fail";
3157
+ D02_dependency_complete: "pass" | "fail";
3158
+ D03_scenario_covered: "pass" | "fail";
3159
+ D04_testnet_topo_order: "pass" | "fail";
3160
+ D05_testnet_network: "pass" | "fail";
3161
+ D06_testnet_replace: "pass" | "fail";
3162
+ D07_permission_index: "pass" | "fail";
3163
+ D08_guard_gen_passport: "pass" | "fail";
3164
+ D09_machine_node_count: "pass" | "fail";
3165
+ D10_substep_coherence: "pass" | "fail";
3166
+ D11_mainnet_testnet_match: "pass" | "fail";
3167
+ D12_mainnet_network: "pass" | "fail";
3168
+ D13_mainnet_replace: "pass" | "fail";
3169
+ D14_testnet_verification: "pass" | "fail";
3170
+ D15_mainnet_verification: "pass" | "fail";
3171
+ D16_no_critical_risk: "pass" | "fail";
3172
+ D17_no_high_risk: "pass" | "fail";
3173
+ D18_completeness_checklist: "pass" | "fail";
3174
+ D19_machine_entry_forward: "pass" | "fail";
3175
+ D20_service_compensation_fund: "pass" | "fail";
3176
+ };
3177
+ overall_readiness: "warnings" | "blocked" | "ready";
3178
+ warning_count: number;
3179
+ };
3180
+ } | {
3181
+ summary: string;
3182
+ action: "pre_evaluate_check";
3183
+ warnings: {
3184
+ description: string;
3185
+ id: string;
3186
+ impact: string;
3187
+ }[];
3188
+ ready: boolean;
3189
+ missing: {
3190
+ description: string;
3191
+ id: string;
3192
+ impact: string;
3193
+ }[];
3194
+ counts: {
3195
+ objects: number;
3196
+ edges: number;
3197
+ uncached: number;
3198
+ stale: number;
3199
+ dangling_edges: number;
3200
+ drafts: number;
3201
+ };
3202
+ } | {
3203
+ summary: string;
3204
+ action: "verify_deployment";
3205
+ missing: number;
3206
+ verifiedCount: number;
3207
+ matched: number;
3208
+ mismatched: number;
3209
+ unreachable: number;
3210
+ results: {
3211
+ status: "missing" | "matched" | "mismatched" | "unreachable";
3212
+ objectType: string | null;
3213
+ objectAddress: string;
3214
+ objectName: string | null;
3215
+ error?: string | undefined;
3216
+ bindings?: {
3217
+ permission: boolean;
3218
+ buy_guard: boolean;
3219
+ machine: boolean;
3220
+ order_allocators: boolean;
3221
+ } | undefined;
3222
+ differences?: {
3223
+ field: string;
3224
+ sqlite?: unknown;
3225
+ onchain?: unknown;
3226
+ }[] | undefined;
3227
+ }[];
3228
+ } | {
3229
+ action: "get_machine_graph";
3230
+ published: boolean | null;
3231
+ nodes: {
3232
+ name: string;
3233
+ description: string | null;
3234
+ }[];
3235
+ paused: boolean | null;
3236
+ machineName: string | null;
3237
+ machineAddress: string;
3238
+ edges: {
3239
+ from: string;
3240
+ to: string;
3241
+ forwards: {
3242
+ name: string;
3243
+ guard: string | null;
3244
+ weight: number;
3245
+ permission_index: number | null;
3246
+ named_operator: string | null;
3247
+ }[];
3248
+ threshold: number;
3249
+ }[];
3250
+ } | {
3251
+ message: string;
3252
+ action: "clone_project_to_network";
3253
+ target_network: "testnet" | "mainnet";
3254
+ new_project_id: string;
3255
+ new_prefix: string;
3256
+ cloned_objects_count: number;
3257
+ next_steps: string;
3258
+ } | {
3259
+ message: string;
3260
+ action: "migrate_network";
3261
+ target_network: "testnet" | "mainnet";
3262
+ new_project_id: string;
3263
+ new_prefix: string;
3264
+ cloned_objects_count: number;
3265
+ next_steps: string;
1781
3266
  };
1782
3267
  }, {
1783
3268
  result: {
@@ -1835,6 +3320,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1835
3320
  serviceAddress: string | null;
1836
3321
  defaultAccount: string | null;
1837
3322
  };
3323
+ recommended_creation_order: {
3324
+ object: string;
3325
+ reason: string;
3326
+ required: boolean;
3327
+ step: number;
3328
+ }[];
3329
+ hint?: string | undefined;
3330
+ blueprint?: {
3331
+ objects_count: number;
3332
+ edges_count: number;
3333
+ industry_source: string;
3334
+ applied_template: string;
3335
+ steps_count: number;
3336
+ scenarios_count: number;
3337
+ key_risk?: string | null | undefined;
3338
+ } | undefined;
3339
+ blueprint_warning?: string | undefined;
3340
+ blueprint_skipped?: boolean | undefined;
1838
3341
  } | {
1839
3342
  action: "create_project_from_onchain";
1840
3343
  project: {
@@ -1856,7 +3359,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1856
3359
  };
1857
3360
  objects: {
1858
3361
  id: string;
1859
- role: "reference" | "dependency" | "core";
3362
+ role: string;
1860
3363
  objectType: string | null;
1861
3364
  tags: string[] | null;
1862
3365
  projectId: string;
@@ -1906,7 +3409,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1906
3409
  };
1907
3410
  objects: {
1908
3411
  id: string;
1909
- role: "reference" | "dependency" | "core";
3412
+ role: string;
1910
3413
  objectType: string | null;
1911
3414
  tags: string[] | null;
1912
3415
  projectId: string;
@@ -1916,6 +3419,64 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1916
3419
  metadata: Record<string, unknown> | null;
1917
3420
  }[];
1918
3421
  graphEdgeCount: number;
3422
+ objectGroups: {
3423
+ other: {
3424
+ id: string;
3425
+ role: string;
3426
+ objectType: string | null;
3427
+ tags: string[] | null;
3428
+ projectId: string;
3429
+ objectAddress: string;
3430
+ objectName: string | null;
3431
+ addedAt: number;
3432
+ metadata: Record<string, unknown> | null;
3433
+ }[];
3434
+ reference: {
3435
+ id: string;
3436
+ role: string;
3437
+ objectType: string | null;
3438
+ tags: string[] | null;
3439
+ projectId: string;
3440
+ objectAddress: string;
3441
+ objectName: string | null;
3442
+ addedAt: number;
3443
+ metadata: Record<string, unknown> | null;
3444
+ }[];
3445
+ dependency: {
3446
+ id: string;
3447
+ role: string;
3448
+ objectType: string | null;
3449
+ tags: string[] | null;
3450
+ projectId: string;
3451
+ objectAddress: string;
3452
+ objectName: string | null;
3453
+ addedAt: number;
3454
+ metadata: Record<string, unknown> | null;
3455
+ }[];
3456
+ core: {
3457
+ id: string;
3458
+ role: string;
3459
+ objectType: string | null;
3460
+ tags: string[] | null;
3461
+ projectId: string;
3462
+ objectAddress: string;
3463
+ objectName: string | null;
3464
+ addedAt: number;
3465
+ metadata: Record<string, unknown> | null;
3466
+ }[];
3467
+ stats: {
3468
+ total: number;
3469
+ core_count: number;
3470
+ dependency_count: number;
3471
+ reference_count: number;
3472
+ other_count: number;
3473
+ by_type: Record<string, number>;
3474
+ };
3475
+ };
3476
+ serviceStatus: {
3477
+ published: boolean | null;
3478
+ paused: boolean | null;
3479
+ } | null;
1919
3480
  evaluations: {
1920
3481
  id: string;
1921
3482
  summary: string | null;
@@ -1946,7 +3507,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1946
3507
  } | {
1947
3508
  object: {
1948
3509
  id: string;
1949
- role: "reference" | "dependency" | "core";
3510
+ role: string;
1950
3511
  objectType: string | null;
1951
3512
  tags: string[] | null;
1952
3513
  projectId: string;
@@ -1962,7 +3523,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1962
3523
  } | {
1963
3524
  object: {
1964
3525
  id: string;
1965
- role: "reference" | "dependency" | "core";
3526
+ role: string;
1966
3527
  objectType: string | null;
1967
3528
  tags: string[] | null;
1968
3529
  projectId: string;
@@ -1981,23 +3542,45 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1981
3542
  action: "create_version";
1982
3543
  } | {
1983
3544
  action: "build_graph";
1984
- nodeCount: number;
1985
- edgeCount: number;
1986
- edgesBySource: Record<string, number>;
1987
- reputationCount: number;
1988
- builtAt: number;
3545
+ hint?: string | undefined;
3546
+ async_mode?: boolean | undefined;
3547
+ task_id?: string | undefined;
3548
+ nodeCount?: number | undefined;
3549
+ edgeCount?: number | undefined;
3550
+ edgesBySource?: Record<string, number> | undefined;
3551
+ reputationCount?: number | undefined;
3552
+ builtAt?: number | undefined;
3553
+ binding_verification?: {
3554
+ service: string;
3555
+ bindings: Record<string, {
3556
+ expected: string;
3557
+ actual: string | null;
3558
+ verified: boolean;
3559
+ count?: number | undefined;
3560
+ }>;
3561
+ all_verified: boolean;
3562
+ } | null | undefined;
3563
+ topEdges?: {
3564
+ source: string;
3565
+ weight: number | null;
3566
+ target: string;
3567
+ verified: boolean;
3568
+ fieldName: string | null;
3569
+ relationshipType: string;
3570
+ }[] | undefined;
3571
+ visualization?: string | undefined;
1989
3572
  } | {
1990
3573
  action: "get_graph";
1991
3574
  edges: {
1992
3575
  weight: number;
1993
3576
  direction: string | null;
3577
+ depth: number;
3578
+ verified: boolean;
3579
+ fieldName: string | null;
3580
+ relationshipType: string;
1994
3581
  sourceObject: string;
1995
3582
  targetObject: string;
1996
3583
  edgeSource: "registrar" | "internal" | "potential";
1997
- relationshipType: string;
1998
- fieldName: string | null;
1999
- depth: number;
2000
- verified: boolean;
2001
3584
  }[];
2002
3585
  } | {
2003
3586
  summary: string;
@@ -2072,6 +3655,139 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
2072
3655
  };
2073
3656
  markdown: string;
2074
3657
  action: "generate_deployment_doc";
3658
+ detail_level: "summary" | "full" | "detailed";
2075
3659
  saved: boolean;
3660
+ stage_gate: {
3661
+ warnings: string[];
3662
+ stage: number;
3663
+ passed: boolean;
3664
+ checks: {
3665
+ message: string;
3666
+ status: "PASS" | "FAIL" | "WARN";
3667
+ dimension: "semantic" | "risk" | "gas_budget" | "tools" | "reversibility" | "isolation";
3668
+ }[];
3669
+ can_proceed: boolean;
3670
+ blocking_issues: string[];
3671
+ };
3672
+ deployment_scan: {
3673
+ critical_count: number;
3674
+ findings: {
3675
+ message: string;
3676
+ severity: "info" | "critical" | "warning";
3677
+ check_id: string;
3678
+ location?: string | undefined;
3679
+ suggestion?: string | undefined;
3680
+ }[];
3681
+ checks: {
3682
+ D01_object_defined: "pass" | "fail";
3683
+ D02_dependency_complete: "pass" | "fail";
3684
+ D03_scenario_covered: "pass" | "fail";
3685
+ D04_testnet_topo_order: "pass" | "fail";
3686
+ D05_testnet_network: "pass" | "fail";
3687
+ D06_testnet_replace: "pass" | "fail";
3688
+ D07_permission_index: "pass" | "fail";
3689
+ D08_guard_gen_passport: "pass" | "fail";
3690
+ D09_machine_node_count: "pass" | "fail";
3691
+ D10_substep_coherence: "pass" | "fail";
3692
+ D11_mainnet_testnet_match: "pass" | "fail";
3693
+ D12_mainnet_network: "pass" | "fail";
3694
+ D13_mainnet_replace: "pass" | "fail";
3695
+ D14_testnet_verification: "pass" | "fail";
3696
+ D15_mainnet_verification: "pass" | "fail";
3697
+ D16_no_critical_risk: "pass" | "fail";
3698
+ D17_no_high_risk: "pass" | "fail";
3699
+ D18_completeness_checklist: "pass" | "fail";
3700
+ D19_machine_entry_forward: "pass" | "fail";
3701
+ D20_service_compensation_fund: "pass" | "fail";
3702
+ };
3703
+ overall_readiness: "warnings" | "blocked" | "ready";
3704
+ warning_count: number;
3705
+ };
3706
+ } | {
3707
+ summary: string;
3708
+ action: "pre_evaluate_check";
3709
+ warnings: {
3710
+ description: string;
3711
+ id: string;
3712
+ impact: string;
3713
+ }[];
3714
+ ready: boolean;
3715
+ missing: {
3716
+ description: string;
3717
+ id: string;
3718
+ impact: string;
3719
+ }[];
3720
+ counts: {
3721
+ objects: number;
3722
+ edges: number;
3723
+ uncached: number;
3724
+ stale: number;
3725
+ dangling_edges: number;
3726
+ drafts: number;
3727
+ };
3728
+ } | {
3729
+ summary: string;
3730
+ action: "verify_deployment";
3731
+ missing: number;
3732
+ verifiedCount: number;
3733
+ matched: number;
3734
+ mismatched: number;
3735
+ unreachable: number;
3736
+ results: {
3737
+ status: "missing" | "matched" | "mismatched" | "unreachable";
3738
+ objectType: string | null;
3739
+ objectAddress: string;
3740
+ objectName: string | null;
3741
+ error?: string | undefined;
3742
+ bindings?: {
3743
+ permission: boolean;
3744
+ buy_guard: boolean;
3745
+ machine: boolean;
3746
+ order_allocators: boolean;
3747
+ } | undefined;
3748
+ differences?: {
3749
+ field: string;
3750
+ sqlite?: unknown;
3751
+ onchain?: unknown;
3752
+ }[] | undefined;
3753
+ }[];
3754
+ } | {
3755
+ action: "get_machine_graph";
3756
+ published: boolean | null;
3757
+ nodes: {
3758
+ name: string;
3759
+ description: string | null;
3760
+ }[];
3761
+ paused: boolean | null;
3762
+ machineName: string | null;
3763
+ machineAddress: string;
3764
+ edges: {
3765
+ from: string;
3766
+ to: string;
3767
+ forwards: {
3768
+ name: string;
3769
+ guard: string | null;
3770
+ weight: number;
3771
+ permission_index: number | null;
3772
+ named_operator: string | null;
3773
+ }[];
3774
+ threshold: number;
3775
+ }[];
3776
+ } | {
3777
+ message: string;
3778
+ action: "clone_project_to_network";
3779
+ target_network: "testnet" | "mainnet";
3780
+ new_project_id: string;
3781
+ new_prefix: string;
3782
+ cloned_objects_count: number;
3783
+ next_steps: string;
3784
+ } | {
3785
+ message: string;
3786
+ action: "migrate_network";
3787
+ target_network: "testnet" | "mainnet";
3788
+ new_project_id: string;
3789
+ new_prefix: string;
3790
+ cloned_objects_count: number;
3791
+ next_steps: string;
2076
3792
  };
2077
3793
  }>;