@wowok/agent-mcp 2.5.5 → 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 (146) hide show
  1. package/README.md +5 -3
  2. package/dist/config/runtime.js +3 -6
  3. package/dist/extensions/capability-manifest.d.ts +125 -0
  4. package/dist/extensions/capability-manifest.js +594 -0
  5. package/dist/extensions/constraint-registry.d.ts +24 -0
  6. package/dist/extensions/constraint-registry.js +196 -0
  7. package/dist/extensions/index.d.ts +12 -0
  8. package/dist/extensions/index.js +6 -0
  9. package/dist/extensions/metric-registry.d.ts +26 -0
  10. package/dist/extensions/metric-registry.js +257 -0
  11. package/dist/extensions/mode-evaluator.d.ts +15 -0
  12. package/dist/extensions/mode-evaluator.js +170 -0
  13. package/dist/extensions/modes.d.ts +2 -0
  14. package/dist/extensions/modes.js +407 -0
  15. package/dist/extensions/registry.d.ts +48 -0
  16. package/dist/extensions/registry.js +629 -0
  17. package/dist/extensions/types.d.ts +218 -0
  18. package/dist/extensions/types.js +1 -0
  19. package/dist/harness/checkpoint.js +2 -2
  20. package/dist/knowledge/deployment-scanner.d.ts +3 -0
  21. package/dist/knowledge/deployment-scanner.js +64 -3
  22. package/dist/knowledge/flywheel-loop.js +2 -5
  23. package/dist/knowledge/guard-risk.d.ts +13 -0
  24. package/dist/knowledge/guard-risk.js +57 -0
  25. package/dist/knowledge/guard-templates.js +278 -0
  26. package/dist/knowledge/machine-templates.js +20 -1
  27. package/dist/knowledge/overrides-loader.js +2 -4
  28. package/dist/knowledge/progress-ledger.js +3 -0
  29. package/dist/knowledge/progress-translation.js +5 -1
  30. package/dist/knowledge/service-confirm.d.ts +14 -5
  31. package/dist/knowledge/service-confirm.js +116 -8
  32. package/dist/knowledge/tool-constraints.js +6 -2
  33. package/dist/loop-engineering/improve.js +2 -4
  34. package/dist/project/deployment-bridge.d.ts +5 -0
  35. package/dist/project/deployment-bridge.js +119 -0
  36. package/dist/project/deployment-doc.d.ts +3 -0
  37. package/dist/project/deployment-doc.js +72 -10
  38. package/dist/project/evaluation.d.ts +2 -0
  39. package/dist/project/evaluation.js +578 -86
  40. package/dist/project/graph-builder.d.ts +4 -1
  41. package/dist/project/graph-builder.js +141 -63
  42. package/dist/project/graph.d.ts +1 -0
  43. package/dist/project/handlers.d.ts +221 -5
  44. package/dist/project/handlers.js +933 -14
  45. package/dist/project/index.js +2 -6
  46. package/dist/project/project-store.js +2 -5
  47. package/dist/project/stage-gate.d.ts +4 -0
  48. package/dist/project/stage-gate.js +64 -5
  49. package/dist/project/task-tracker.d.ts +26 -0
  50. package/dist/project/task-tracker.js +78 -0
  51. package/dist/safety/preview.js +16 -0
  52. package/dist/schema/call/allocation.d.ts +16 -16
  53. package/dist/schema/call/base.d.ts +21 -13
  54. package/dist/schema/call/base.js +27 -6
  55. package/dist/schema/call/bridge.d.ts +5 -5
  56. package/dist/schema/call/bridge.js +3 -1
  57. package/dist/schema/call/demand.d.ts +23 -31
  58. package/dist/schema/call/guard.js +1 -1
  59. package/dist/schema/call/machine.d.ts +402 -376
  60. package/dist/schema/call/order.d.ts +149 -228
  61. package/dist/schema/call/order.js +7 -3
  62. package/dist/schema/call/payment.d.ts +183 -3
  63. package/dist/schema/call/payment.js +21 -3
  64. package/dist/schema/call/personal.d.ts +241 -52
  65. package/dist/schema/call/progress.d.ts +53 -61
  66. package/dist/schema/call/progress.js +18 -4
  67. package/dist/schema/call/repository.d.ts +23 -31
  68. package/dist/schema/call/semantic.d.ts +1 -1
  69. package/dist/schema/call/semantic.js +30 -1
  70. package/dist/schema/call/service.d.ts +95 -119
  71. package/dist/schema/call/service.js +22 -1
  72. package/dist/schema/common/index.d.ts +11 -2
  73. package/dist/schema/common/index.js +43 -14
  74. package/dist/schema/config/index.d.ts +12 -12
  75. package/dist/schema/local/index.d.ts +140 -143
  76. package/dist/schema/local/index.js +44 -23
  77. package/dist/schema/messenger/index.d.ts +290 -62
  78. package/dist/schema/messenger/index.js +2 -2
  79. package/dist/schema/operations.d.ts +680 -545
  80. package/dist/schema/operations.js +22 -0
  81. package/dist/schema/project/index.d.ts +2064 -84
  82. package/dist/schema/project/index.js +354 -12
  83. package/dist/schema/query/index.d.ts +715 -354
  84. package/dist/schema/query/index.js +164 -31
  85. package/dist/schema/schema-query/index.d.ts +15 -3
  86. package/dist/schema/schema-query/index.js +23 -5
  87. package/dist/schema/trust/index.d.ts +8 -8
  88. package/dist/schema/utils/node-parser.js +7 -4
  89. package/dist/schema-query/index.d.ts +7 -1
  90. package/dist/schema-query/index.js +204 -4
  91. package/dist/schemas/account_operation.output.json +14 -22
  92. package/dist/schemas/account_operation.schema.json +11 -25
  93. package/dist/schemas/bridge_operation.output.json +6 -0
  94. package/dist/schemas/bridge_operation.schema.json +1 -1
  95. package/dist/schemas/guard-templates.json +379 -0
  96. package/dist/schemas/guard2file.schema.json +1 -1
  97. package/dist/schemas/index.json +1 -1
  98. package/dist/schemas/local_info_operation.output.json +6 -0
  99. package/dist/schemas/local_mark_operation.output.json +7 -1
  100. package/dist/schemas/local_mark_operation.schema.json +1 -1
  101. package/dist/schemas/machineNode2file.schema.json +1 -1
  102. package/dist/schemas/messenger_operation.schema.json +10 -10
  103. package/dist/schemas/onchain_events.output.json +1 -1
  104. package/dist/schemas/onchain_operations.schema.json +348 -296
  105. package/dist/schemas/onchain_operations_allocation.schema.json +34 -25
  106. package/dist/schemas/onchain_operations_arbitration.schema.json +8 -8
  107. package/dist/schemas/onchain_operations_contact.schema.json +8 -8
  108. package/dist/schemas/onchain_operations_demand.schema.json +8 -8
  109. package/dist/schemas/onchain_operations_gen_passport.schema.json +14 -14
  110. package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
  111. package/dist/schemas/onchain_operations_guard.schema.json +1 -1
  112. package/dist/schemas/onchain_operations_machine.schema.json +41 -33
  113. package/dist/schemas/onchain_operations_order.schema.json +71 -77
  114. package/dist/schemas/onchain_operations_payment.schema.json +141 -111
  115. package/dist/schemas/onchain_operations_permission.schema.json +2 -2
  116. package/dist/schemas/onchain_operations_personal.schema.json +7 -7
  117. package/dist/schemas/onchain_operations_progress.schema.json +8 -8
  118. package/dist/schemas/onchain_operations_proof.schema.json +7 -7
  119. package/dist/schemas/onchain_operations_repository.schema.json +8 -8
  120. package/dist/schemas/onchain_operations_reward.schema.json +10 -10
  121. package/dist/schemas/onchain_operations_service.schema.json +46 -35
  122. package/dist/schemas/onchain_operations_treasury.schema.json +8 -8
  123. package/dist/schemas/onchain_table_data.output.json +33 -25
  124. package/dist/schemas/onchain_table_data.schema.json +12 -12
  125. package/dist/schemas/project_operation.output.json +1352 -20
  126. package/dist/schemas/project_operation.schema.json +53 -4
  127. package/dist/schemas/query_toolkit.output.json +111 -82
  128. package/dist/schemas/query_toolkit.schema.json +9 -13
  129. package/dist/schemas/schema_query.output.json +7 -3
  130. package/dist/schemas/schema_query.schema.json +17 -3
  131. package/dist/telemetry/storage.js +2 -2
  132. package/dist/tools/handlers/local.js +20 -5
  133. package/dist/tools/handlers/onchain.js +36 -0
  134. package/dist/tools/handlers/project.js +72 -1
  135. package/dist/tools/handlers/query.js +27 -0
  136. package/dist/tools/handlers/schema-query.js +19 -0
  137. package/dist/tools/handlers/task-status.d.ts +170 -0
  138. package/dist/tools/handlers/task-status.js +55 -0
  139. package/dist/tools/handlers/wip.js +47 -1
  140. package/dist/tools/index.js +212 -8
  141. package/dist/tools/retry.d.ts +8 -0
  142. package/dist/tools/retry.js +85 -0
  143. package/dist/tools/wip-deploy-assist.d.ts +28 -0
  144. package/dist/tools/wip-deploy-assist.js +278 -0
  145. package/package.json +2 -2
  146. 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"]>;
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>;
@@ -45,9 +49,13 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
45
49
  diff_address: z.ZodOptional<z.ZodString>;
46
50
  diff_from_time: z.ZodOptional<z.ZodNumber>;
47
51
  diff_to_time: z.ZodOptional<z.ZodNumber>;
52
+ network: z.ZodOptional<z.ZodEnum<["testnet", "mainnet"]>>;
53
+ save: z.ZodOptional<z.ZodBoolean>;
54
+ detail_level: z.ZodOptional<z.ZodEnum<["summary", "detailed", "full"]>>;
48
55
  }, "strict", z.ZodTypeAny, {
49
- action: "list_projects" | "create_project" | "create_project_from_onchain" | "update_project" | "get_project_detail" | "add_object" | "remove_object" | "create_version" | "build_graph" | "get_graph" | "evaluate_project" | "save_evaluation" | "compare_projects" | "refresh_objects" | "get_object_diff" | "assemble_context" | "update_object" | "delete_project";
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";
50
57
  version?: string | undefined;
58
+ network?: "testnet" | "mainnet" | undefined;
51
59
  project?: string | undefined;
52
60
  service_address?: string | undefined;
53
61
  context_objects?: string[] | undefined;
@@ -62,8 +70,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
62
70
  project_perspective?: "consumer" | "producer" | "both" | undefined;
63
71
  project_labels?: string[] | undefined;
64
72
  project_network?: "testnet" | "mainnet" | undefined;
73
+ skip_templates?: boolean | undefined;
65
74
  project_id?: string | undefined;
66
75
  project_status?: "active" | "inactive" | "draft" | "archived" | undefined;
76
+ target_network?: "testnet" | "mainnet" | undefined;
67
77
  object_address?: string | undefined;
68
78
  object_name_add?: string | undefined;
69
79
  object_type_add?: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Payment" | "Proof" | undefined;
@@ -78,8 +88,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
78
88
  version_description?: string | undefined;
79
89
  fork_from_version?: string | undefined;
80
90
  max_depth?: number | undefined;
91
+ depth?: number | undefined;
81
92
  enable_registrar?: boolean | undefined;
82
93
  enable_potential?: boolean | undefined;
94
+ async_mode?: boolean | undefined;
83
95
  evaluation_type?: "value" | "trust" | "risk" | "completeness" | "worth_buying" | undefined;
84
96
  refresh_before_eval?: boolean | undefined;
85
97
  eval_score?: number | undefined;
@@ -89,9 +101,12 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
89
101
  diff_address?: string | undefined;
90
102
  diff_from_time?: number | undefined;
91
103
  diff_to_time?: number | undefined;
104
+ save?: boolean | undefined;
105
+ detail_level?: "summary" | "full" | "detailed" | undefined;
92
106
  }, {
93
- action: "list_projects" | "create_project" | "create_project_from_onchain" | "update_project" | "get_project_detail" | "add_object" | "remove_object" | "create_version" | "build_graph" | "get_graph" | "evaluate_project" | "save_evaluation" | "compare_projects" | "refresh_objects" | "get_object_diff" | "assemble_context" | "update_object" | "delete_project";
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";
94
108
  version?: string | undefined;
109
+ network?: "testnet" | "mainnet" | undefined;
95
110
  project?: string | undefined;
96
111
  service_address?: string | undefined;
97
112
  context_objects?: string[] | undefined;
@@ -106,8 +121,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
106
121
  project_perspective?: "consumer" | "producer" | "both" | undefined;
107
122
  project_labels?: string[] | undefined;
108
123
  project_network?: "testnet" | "mainnet" | undefined;
124
+ skip_templates?: boolean | undefined;
109
125
  project_id?: string | undefined;
110
126
  project_status?: "active" | "inactive" | "draft" | "archived" | undefined;
127
+ target_network?: "testnet" | "mainnet" | undefined;
111
128
  object_address?: string | undefined;
112
129
  object_name_add?: string | undefined;
113
130
  object_type_add?: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Payment" | "Proof" | undefined;
@@ -122,8 +139,10 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
122
139
  version_description?: string | undefined;
123
140
  fork_from_version?: string | undefined;
124
141
  max_depth?: number | undefined;
142
+ depth?: number | undefined;
125
143
  enable_registrar?: boolean | undefined;
126
144
  enable_potential?: boolean | undefined;
145
+ async_mode?: boolean | undefined;
127
146
  evaluation_type?: "value" | "trust" | "risk" | "completeness" | "worth_buying" | undefined;
128
147
  refresh_before_eval?: boolean | undefined;
129
148
  eval_score?: number | undefined;
@@ -133,6 +152,8 @@ export declare const ProjectOperationInputSchema: z.ZodObject<{
133
152
  diff_address?: string | undefined;
134
153
  diff_from_time?: number | undefined;
135
154
  diff_to_time?: number | undefined;
155
+ save?: boolean | undefined;
156
+ detail_level?: "summary" | "full" | "detailed" | undefined;
136
157
  }>;
137
158
  export declare const ProjectOperationOutputSchema: z.ZodObject<{
138
159
  result: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
@@ -155,6 +176,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
155
176
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
156
177
  } & {
157
178
  objectCount: z.ZodNumber;
179
+ evaluationCount: z.ZodNumber;
158
180
  objectTypes: z.ZodArray<z.ZodString, "many">;
159
181
  }, "strict", z.ZodTypeAny, {
160
182
  status: "active" | "inactive" | "draft" | "archived";
@@ -173,6 +195,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
173
195
  serviceAddress: string | null;
174
196
  defaultAccount: string | null;
175
197
  objectCount: number;
198
+ evaluationCount: number;
176
199
  objectTypes: string[];
177
200
  }, {
178
201
  status: "active" | "inactive" | "draft" | "archived";
@@ -191,6 +214,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
191
214
  serviceAddress: string | null;
192
215
  defaultAccount: string | null;
193
216
  objectCount: number;
217
+ evaluationCount: number;
194
218
  objectTypes: string[];
195
219
  }>, "many">;
196
220
  total: z.ZodNumber;
@@ -213,6 +237,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
213
237
  serviceAddress: string | null;
214
238
  defaultAccount: string | null;
215
239
  objectCount: number;
240
+ evaluationCount: number;
216
241
  objectTypes: string[];
217
242
  }[];
218
243
  total: number;
@@ -235,6 +260,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
235
260
  serviceAddress: string | null;
236
261
  defaultAccount: string | null;
237
262
  objectCount: number;
263
+ evaluationCount: number;
238
264
  objectTypes: string[];
239
265
  }[];
240
266
  total: number;
@@ -289,6 +315,50 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
289
315
  serviceAddress: string | null;
290
316
  defaultAccount: string | null;
291
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>;
292
362
  }, "strict", z.ZodTypeAny, {
293
363
  action: "create_project";
294
364
  project: {
@@ -308,6 +378,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
308
378
  serviceAddress: string | null;
309
379
  defaultAccount: string | null;
310
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;
311
399
  }, {
312
400
  action: "create_project";
313
401
  project: {
@@ -327,6 +415,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
327
415
  serviceAddress: string | null;
328
416
  defaultAccount: string | null;
329
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;
330
436
  }>, z.ZodObject<{
331
437
  action: z.ZodLiteral<"create_project_from_onchain">;
332
438
  project: z.ZodObject<{
@@ -384,13 +490,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
384
490
  objectAddress: z.ZodString;
385
491
  objectType: z.ZodNullable<z.ZodString>;
386
492
  objectName: z.ZodNullable<z.ZodString>;
387
- role: z.ZodEnum<["core", "dependency", "reference"]>;
493
+ role: z.ZodString;
388
494
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
389
495
  addedAt: z.ZodNumber;
390
496
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
391
497
  }, "strict", z.ZodTypeAny, {
392
498
  id: string;
393
- role: "reference" | "dependency" | "core";
499
+ role: string;
394
500
  objectType: string | null;
395
501
  tags: string[] | null;
396
502
  projectId: string;
@@ -400,7 +506,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
400
506
  metadata: Record<string, unknown> | null;
401
507
  }, {
402
508
  id: string;
403
- role: "reference" | "dependency" | "core";
509
+ role: string;
404
510
  objectType: string | null;
405
511
  tags: string[] | null;
406
512
  projectId: string;
@@ -431,7 +537,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
431
537
  };
432
538
  objects: {
433
539
  id: string;
434
- role: "reference" | "dependency" | "core";
540
+ role: string;
435
541
  objectType: string | null;
436
542
  tags: string[] | null;
437
543
  projectId: string;
@@ -462,7 +568,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
462
568
  };
463
569
  objects: {
464
570
  id: string;
465
- role: "reference" | "dependency" | "core";
571
+ role: string;
466
572
  objectType: string | null;
467
573
  tags: string[] | null;
468
574
  projectId: string;
@@ -618,13 +724,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
618
724
  objectAddress: z.ZodString;
619
725
  objectType: z.ZodNullable<z.ZodString>;
620
726
  objectName: z.ZodNullable<z.ZodString>;
621
- role: z.ZodEnum<["core", "dependency", "reference"]>;
727
+ role: z.ZodString;
622
728
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
623
729
  addedAt: z.ZodNumber;
624
730
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
625
731
  }, "strict", z.ZodTypeAny, {
626
732
  id: string;
627
- role: "reference" | "dependency" | "core";
733
+ role: string;
628
734
  objectType: string | null;
629
735
  tags: string[] | null;
630
736
  projectId: string;
@@ -634,7 +740,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
634
740
  metadata: Record<string, unknown> | null;
635
741
  }, {
636
742
  id: string;
637
- role: "reference" | "dependency" | "core";
743
+ role: string;
638
744
  objectType: string | null;
639
745
  tags: string[] | null;
640
746
  projectId: string;
@@ -643,23 +749,380 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
643
749
  addedAt: number;
644
750
  metadata: Record<string, unknown> | null;
645
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
+ }>;
646
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
+ }>>;
647
1017
  evaluations: z.ZodArray<z.ZodObject<{
648
1018
  id: z.ZodString;
649
1019
  evalType: z.ZodEnum<["risk", "trust", "completeness", "value", "worth_buying"]>;
650
1020
  score: z.ZodNullable<z.ZodNumber>;
651
1021
  summary: z.ZodNullable<z.ZodString>;
1022
+ details: z.ZodNullable<z.ZodObject<{
1023
+ criterionScores: z.ZodArray<z.ZodObject<{
1024
+ name: z.ZodString;
1025
+ score: z.ZodNumber;
1026
+ weight: z.ZodNumber;
1027
+ rationale: z.ZodString;
1028
+ }, "strict", z.ZodTypeAny, {
1029
+ name: string;
1030
+ score: number;
1031
+ weight: number;
1032
+ rationale: string;
1033
+ }, {
1034
+ name: string;
1035
+ score: number;
1036
+ weight: number;
1037
+ rationale: string;
1038
+ }>, "many">;
1039
+ findings: z.ZodArray<z.ZodObject<{
1040
+ criterion: z.ZodString;
1041
+ severity: z.ZodEnum<["critical", "warning", "info"]>;
1042
+ message: z.ZodString;
1043
+ deduction: z.ZodNumber;
1044
+ }, "strict", z.ZodTypeAny, {
1045
+ message: string;
1046
+ severity: "info" | "critical" | "warning";
1047
+ criterion: string;
1048
+ deduction: number;
1049
+ }, {
1050
+ message: string;
1051
+ severity: "info" | "critical" | "warning";
1052
+ criterion: string;
1053
+ deduction: number;
1054
+ }>, "many">;
1055
+ strengths: z.ZodArray<z.ZodString, "many">;
1056
+ }, "strict", z.ZodTypeAny, {
1057
+ criterionScores: {
1058
+ name: string;
1059
+ score: number;
1060
+ weight: number;
1061
+ rationale: string;
1062
+ }[];
1063
+ findings: {
1064
+ message: string;
1065
+ severity: "info" | "critical" | "warning";
1066
+ criterion: string;
1067
+ deduction: number;
1068
+ }[];
1069
+ strengths: string[];
1070
+ }, {
1071
+ criterionScores: {
1072
+ name: string;
1073
+ score: number;
1074
+ weight: number;
1075
+ rationale: string;
1076
+ }[];
1077
+ findings: {
1078
+ message: string;
1079
+ severity: "info" | "critical" | "warning";
1080
+ criterion: string;
1081
+ deduction: number;
1082
+ }[];
1083
+ strengths: string[];
1084
+ }>>;
652
1085
  evaluatedAt: z.ZodNumber;
653
1086
  }, "strict", z.ZodTypeAny, {
654
1087
  id: string;
655
1088
  summary: string | null;
656
1089
  score: number | null;
1090
+ details: {
1091
+ criterionScores: {
1092
+ name: string;
1093
+ score: number;
1094
+ weight: number;
1095
+ rationale: string;
1096
+ }[];
1097
+ findings: {
1098
+ message: string;
1099
+ severity: "info" | "critical" | "warning";
1100
+ criterion: string;
1101
+ deduction: number;
1102
+ }[];
1103
+ strengths: string[];
1104
+ } | null;
657
1105
  evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
658
1106
  evaluatedAt: number;
659
1107
  }, {
660
1108
  id: string;
661
1109
  summary: string | null;
662
1110
  score: number | null;
1111
+ details: {
1112
+ criterionScores: {
1113
+ name: string;
1114
+ score: number;
1115
+ weight: number;
1116
+ rationale: string;
1117
+ }[];
1118
+ findings: {
1119
+ message: string;
1120
+ severity: "info" | "critical" | "warning";
1121
+ criterion: string;
1122
+ deduction: number;
1123
+ }[];
1124
+ strengths: string[];
1125
+ } | null;
663
1126
  evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
664
1127
  evaluatedAt: number;
665
1128
  }>, "many">;
@@ -697,7 +1160,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
697
1160
  };
698
1161
  objects: {
699
1162
  id: string;
700
- role: "reference" | "dependency" | "core";
1163
+ role: string;
701
1164
  objectType: string | null;
702
1165
  tags: string[] | null;
703
1166
  projectId: string;
@@ -707,10 +1170,83 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
707
1170
  metadata: Record<string, unknown> | null;
708
1171
  }[];
709
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;
710
1231
  evaluations: {
711
1232
  id: string;
712
1233
  summary: string | null;
713
1234
  score: number | null;
1235
+ details: {
1236
+ criterionScores: {
1237
+ name: string;
1238
+ score: number;
1239
+ weight: number;
1240
+ rationale: string;
1241
+ }[];
1242
+ findings: {
1243
+ message: string;
1244
+ severity: "info" | "critical" | "warning";
1245
+ criterion: string;
1246
+ deduction: number;
1247
+ }[];
1248
+ strengths: string[];
1249
+ } | null;
714
1250
  evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
715
1251
  evaluatedAt: number;
716
1252
  }[];
@@ -740,7 +1276,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
740
1276
  };
741
1277
  objects: {
742
1278
  id: string;
743
- role: "reference" | "dependency" | "core";
1279
+ role: string;
744
1280
  objectType: string | null;
745
1281
  tags: string[] | null;
746
1282
  projectId: string;
@@ -750,10 +1286,83 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
750
1286
  metadata: Record<string, unknown> | null;
751
1287
  }[];
752
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;
753
1347
  evaluations: {
754
1348
  id: string;
755
1349
  summary: string | null;
756
1350
  score: number | null;
1351
+ details: {
1352
+ criterionScores: {
1353
+ name: string;
1354
+ score: number;
1355
+ weight: number;
1356
+ rationale: string;
1357
+ }[];
1358
+ findings: {
1359
+ message: string;
1360
+ severity: "info" | "critical" | "warning";
1361
+ criterion: string;
1362
+ deduction: number;
1363
+ }[];
1364
+ strengths: string[];
1365
+ } | null;
757
1366
  evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
758
1367
  evaluatedAt: number;
759
1368
  }[];
@@ -770,13 +1379,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
770
1379
  objectAddress: z.ZodString;
771
1380
  objectType: z.ZodNullable<z.ZodString>;
772
1381
  objectName: z.ZodNullable<z.ZodString>;
773
- role: z.ZodEnum<["core", "dependency", "reference"]>;
1382
+ role: z.ZodString;
774
1383
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
775
1384
  addedAt: z.ZodNumber;
776
1385
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
777
1386
  }, "strict", z.ZodTypeAny, {
778
1387
  id: string;
779
- role: "reference" | "dependency" | "core";
1388
+ role: string;
780
1389
  objectType: string | null;
781
1390
  tags: string[] | null;
782
1391
  projectId: string;
@@ -786,7 +1395,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
786
1395
  metadata: Record<string, unknown> | null;
787
1396
  }, {
788
1397
  id: string;
789
- role: "reference" | "dependency" | "core";
1398
+ role: string;
790
1399
  objectType: string | null;
791
1400
  tags: string[] | null;
792
1401
  projectId: string;
@@ -798,7 +1407,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
798
1407
  }, "strict", z.ZodTypeAny, {
799
1408
  object: {
800
1409
  id: string;
801
- role: "reference" | "dependency" | "core";
1410
+ role: string;
802
1411
  objectType: string | null;
803
1412
  tags: string[] | null;
804
1413
  projectId: string;
@@ -811,7 +1420,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
811
1420
  }, {
812
1421
  object: {
813
1422
  id: string;
814
- role: "reference" | "dependency" | "core";
1423
+ role: string;
815
1424
  objectType: string | null;
816
1425
  tags: string[] | null;
817
1426
  projectId: string;
@@ -838,13 +1447,13 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
838
1447
  objectAddress: z.ZodString;
839
1448
  objectType: z.ZodNullable<z.ZodString>;
840
1449
  objectName: z.ZodNullable<z.ZodString>;
841
- role: z.ZodEnum<["core", "dependency", "reference"]>;
1450
+ role: z.ZodString;
842
1451
  tags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
843
1452
  addedAt: z.ZodNumber;
844
1453
  metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
845
1454
  }, "strict", z.ZodTypeAny, {
846
1455
  id: string;
847
- role: "reference" | "dependency" | "core";
1456
+ role: string;
848
1457
  objectType: string | null;
849
1458
  tags: string[] | null;
850
1459
  projectId: string;
@@ -854,7 +1463,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
854
1463
  metadata: Record<string, unknown> | null;
855
1464
  }, {
856
1465
  id: string;
857
- role: "reference" | "dependency" | "core";
1466
+ role: string;
858
1467
  objectType: string | null;
859
1468
  tags: string[] | null;
860
1469
  projectId: string;
@@ -866,7 +1475,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
866
1475
  }, "strict", z.ZodTypeAny, {
867
1476
  object: {
868
1477
  id: string;
869
- role: "reference" | "dependency" | "core";
1478
+ role: string;
870
1479
  objectType: string | null;
871
1480
  tags: string[] | null;
872
1481
  projectId: string;
@@ -879,7 +1488,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
879
1488
  }, {
880
1489
  object: {
881
1490
  id: string;
882
- role: "reference" | "dependency" | "core";
1491
+ role: string;
883
1492
  objectType: string | null;
884
1493
  tags: string[] | null;
885
1494
  projectId: string;
@@ -920,25 +1529,133 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
920
1529
  action: "create_version";
921
1530
  }>, z.ZodObject<{
922
1531
  action: z.ZodLiteral<"build_graph">;
923
- nodeCount: z.ZodNumber;
924
- edgeCount: z.ZodNumber;
925
- edgesBySource: z.ZodRecord<z.ZodString, z.ZodNumber>;
926
- reputationCount: z.ZodNumber;
927
- 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>;
928
1601
  }, "strict", z.ZodTypeAny, {
929
1602
  action: "build_graph";
930
- nodeCount: number;
931
- edgeCount: number;
932
- edgesBySource: Record<string, number>;
933
- reputationCount: number;
934
- 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;
935
1630
  }, {
936
1631
  action: "build_graph";
937
- nodeCount: number;
938
- edgeCount: number;
939
- edgesBySource: Record<string, number>;
940
- reputationCount: number;
941
- 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;
942
1659
  }>, z.ZodObject<{
943
1660
  action: z.ZodLiteral<"get_graph">;
944
1661
  edges: z.ZodArray<z.ZodObject<{
@@ -954,49 +1671,49 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
954
1671
  }, "strict", z.ZodTypeAny, {
955
1672
  weight: number;
956
1673
  direction: string | null;
1674
+ depth: number;
1675
+ verified: boolean;
1676
+ fieldName: string | null;
1677
+ relationshipType: string;
957
1678
  sourceObject: string;
958
1679
  targetObject: string;
959
1680
  edgeSource: "registrar" | "internal" | "potential";
960
- relationshipType: string;
961
- fieldName: string | null;
962
- depth: number;
963
- verified: boolean;
964
1681
  }, {
965
1682
  weight: number;
966
1683
  direction: string | null;
1684
+ depth: number;
1685
+ verified: boolean;
1686
+ fieldName: string | null;
1687
+ relationshipType: string;
967
1688
  sourceObject: string;
968
1689
  targetObject: string;
969
1690
  edgeSource: "registrar" | "internal" | "potential";
970
- relationshipType: string;
971
- fieldName: string | null;
972
- depth: number;
973
- verified: boolean;
974
1691
  }>, "many">;
975
1692
  }, "strict", z.ZodTypeAny, {
976
1693
  action: "get_graph";
977
1694
  edges: {
978
1695
  weight: number;
979
1696
  direction: string | null;
1697
+ depth: number;
1698
+ verified: boolean;
1699
+ fieldName: string | null;
1700
+ relationshipType: string;
980
1701
  sourceObject: string;
981
1702
  targetObject: string;
982
1703
  edgeSource: "registrar" | "internal" | "potential";
983
- relationshipType: string;
984
- fieldName: string | null;
985
- depth: number;
986
- verified: boolean;
987
1704
  }[];
988
1705
  }, {
989
1706
  action: "get_graph";
990
1707
  edges: {
991
1708
  weight: number;
992
1709
  direction: string | null;
1710
+ depth: number;
1711
+ verified: boolean;
1712
+ fieldName: string | null;
1713
+ relationshipType: string;
993
1714
  sourceObject: string;
994
1715
  targetObject: string;
995
1716
  edgeSource: "registrar" | "internal" | "potential";
996
- relationshipType: string;
997
- fieldName: string | null;
998
- depth: number;
999
- verified: boolean;
1000
1717
  }[];
1001
1718
  }>, z.ZodObject<{
1002
1719
  action: z.ZodLiteral<"evaluate_project">;
@@ -1043,7 +1760,6 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1043
1760
  summary: string;
1044
1761
  action: "evaluate_project";
1045
1762
  score: number;
1046
- evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
1047
1763
  criterionScores: {
1048
1764
  name: string;
1049
1765
  score: number;
@@ -1057,6 +1773,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1057
1773
  deduction: number;
1058
1774
  }[];
1059
1775
  strengths: string[];
1776
+ evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
1060
1777
  needsLlm: boolean;
1061
1778
  evaluationId: string;
1062
1779
  llmPrompt?: string | undefined;
@@ -1064,7 +1781,6 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1064
1781
  summary: string;
1065
1782
  action: "evaluate_project";
1066
1783
  score: number;
1067
- evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
1068
1784
  criterionScores: {
1069
1785
  name: string;
1070
1786
  score: number;
@@ -1078,6 +1794,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1078
1794
  deduction: number;
1079
1795
  }[];
1080
1796
  strengths: string[];
1797
+ evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
1081
1798
  needsLlm: boolean;
1082
1799
  evaluationId: string;
1083
1800
  llmPrompt?: string | undefined;
@@ -1279,6 +1996,747 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1279
1996
  proposal_created: boolean;
1280
1997
  proposal_id?: string | undefined;
1281
1998
  } | undefined;
1999
+ }>, z.ZodObject<{
2000
+ action: z.ZodLiteral<"generate_deployment_doc">;
2001
+ markdown: z.ZodString;
2002
+ validation: z.ZodObject<{
2003
+ valid: z.ZodBoolean;
2004
+ checks: z.ZodArray<z.ZodObject<{
2005
+ check_id: z.ZodString;
2006
+ description: z.ZodString;
2007
+ status: z.ZodEnum<["PASS", "FAIL", "WARN"]>;
2008
+ notes: z.ZodOptional<z.ZodString>;
2009
+ }, "strict", z.ZodTypeAny, {
2010
+ status: "PASS" | "FAIL" | "WARN";
2011
+ description: string;
2012
+ check_id: string;
2013
+ notes?: string | undefined;
2014
+ }, {
2015
+ status: "PASS" | "FAIL" | "WARN";
2016
+ description: string;
2017
+ check_id: string;
2018
+ notes?: string | undefined;
2019
+ }>, "many">;
2020
+ errors: z.ZodArray<z.ZodString, "many">;
2021
+ }, "strict", z.ZodTypeAny, {
2022
+ valid: boolean;
2023
+ errors: string[];
2024
+ checks: {
2025
+ status: "PASS" | "FAIL" | "WARN";
2026
+ description: string;
2027
+ check_id: string;
2028
+ notes?: string | undefined;
2029
+ }[];
2030
+ }, {
2031
+ valid: boolean;
2032
+ errors: string[];
2033
+ checks: {
2034
+ status: "PASS" | "FAIL" | "WARN";
2035
+ description: string;
2036
+ check_id: string;
2037
+ notes?: string | undefined;
2038
+ }[];
2039
+ }>;
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
+ }>;
2238
+ }, "strict", z.ZodTypeAny, {
2239
+ validation: {
2240
+ valid: boolean;
2241
+ errors: string[];
2242
+ checks: {
2243
+ status: "PASS" | "FAIL" | "WARN";
2244
+ description: string;
2245
+ check_id: string;
2246
+ notes?: string | undefined;
2247
+ }[];
2248
+ };
2249
+ markdown: string;
2250
+ action: "generate_deployment_doc";
2251
+ detail_level: "summary" | "full" | "detailed";
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
+ };
2299
+ }, {
2300
+ validation: {
2301
+ valid: boolean;
2302
+ errors: string[];
2303
+ checks: {
2304
+ status: "PASS" | "FAIL" | "WARN";
2305
+ description: string;
2306
+ check_id: string;
2307
+ notes?: string | undefined;
2308
+ }[];
2309
+ };
2310
+ markdown: string;
2311
+ action: "generate_deployment_doc";
2312
+ detail_level: "summary" | "full" | "detailed";
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;
1282
2740
  }>]>;
1283
2741
  }, "strict", z.ZodTypeAny, {
1284
2742
  result: {
@@ -1313,6 +2771,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1313
2771
  serviceAddress: string | null;
1314
2772
  defaultAccount: string | null;
1315
2773
  objectCount: number;
2774
+ evaluationCount: number;
1316
2775
  objectTypes: string[];
1317
2776
  }[];
1318
2777
  total: number;
@@ -1335,6 +2794,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1335
2794
  serviceAddress: string | null;
1336
2795
  defaultAccount: string | null;
1337
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;
1338
2815
  } | {
1339
2816
  action: "create_project_from_onchain";
1340
2817
  project: {
@@ -1356,7 +2833,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1356
2833
  };
1357
2834
  objects: {
1358
2835
  id: string;
1359
- role: "reference" | "dependency" | "core";
2836
+ role: string;
1360
2837
  objectType: string | null;
1361
2838
  tags: string[] | null;
1362
2839
  projectId: string;
@@ -1406,7 +2883,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1406
2883
  };
1407
2884
  objects: {
1408
2885
  id: string;
1409
- role: "reference" | "dependency" | "core";
2886
+ role: string;
1410
2887
  objectType: string | null;
1411
2888
  tags: string[] | null;
1412
2889
  projectId: string;
@@ -1416,10 +2893,83 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1416
2893
  metadata: Record<string, unknown> | null;
1417
2894
  }[];
1418
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;
1419
2954
  evaluations: {
1420
2955
  id: string;
1421
2956
  summary: string | null;
1422
2957
  score: number | null;
2958
+ details: {
2959
+ criterionScores: {
2960
+ name: string;
2961
+ score: number;
2962
+ weight: number;
2963
+ rationale: string;
2964
+ }[];
2965
+ findings: {
2966
+ message: string;
2967
+ severity: "info" | "critical" | "warning";
2968
+ criterion: string;
2969
+ deduction: number;
2970
+ }[];
2971
+ strengths: string[];
2972
+ } | null;
1423
2973
  evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
1424
2974
  evaluatedAt: number;
1425
2975
  }[];
@@ -1431,7 +2981,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1431
2981
  } | {
1432
2982
  object: {
1433
2983
  id: string;
1434
- role: "reference" | "dependency" | "core";
2984
+ role: string;
1435
2985
  objectType: string | null;
1436
2986
  tags: string[] | null;
1437
2987
  projectId: string;
@@ -1447,7 +2997,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1447
2997
  } | {
1448
2998
  object: {
1449
2999
  id: string;
1450
- role: "reference" | "dependency" | "core";
3000
+ role: string;
1451
3001
  objectType: string | null;
1452
3002
  tags: string[] | null;
1453
3003
  projectId: string;
@@ -1466,29 +3016,50 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1466
3016
  action: "create_version";
1467
3017
  } | {
1468
3018
  action: "build_graph";
1469
- nodeCount: number;
1470
- edgeCount: number;
1471
- edgesBySource: Record<string, number>;
1472
- reputationCount: number;
1473
- 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;
1474
3046
  } | {
1475
3047
  action: "get_graph";
1476
3048
  edges: {
1477
3049
  weight: number;
1478
3050
  direction: string | null;
3051
+ depth: number;
3052
+ verified: boolean;
3053
+ fieldName: string | null;
3054
+ relationshipType: string;
1479
3055
  sourceObject: string;
1480
3056
  targetObject: string;
1481
3057
  edgeSource: "registrar" | "internal" | "potential";
1482
- relationshipType: string;
1483
- fieldName: string | null;
1484
- depth: number;
1485
- verified: boolean;
1486
3058
  }[];
1487
3059
  } | {
1488
3060
  summary: string;
1489
3061
  action: "evaluate_project";
1490
3062
  score: number;
1491
- evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
1492
3063
  criterionScores: {
1493
3064
  name: string;
1494
3065
  score: number;
@@ -1502,6 +3073,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1502
3073
  deduction: number;
1503
3074
  }[];
1504
3075
  strengths: string[];
3076
+ evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
1505
3077
  needsLlm: boolean;
1506
3078
  evaluationId: string;
1507
3079
  llmPrompt?: string | undefined;
@@ -1544,6 +3116,153 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1544
3116
  oldValue?: unknown;
1545
3117
  newValue?: unknown;
1546
3118
  }[];
3119
+ } | {
3120
+ validation: {
3121
+ valid: boolean;
3122
+ errors: string[];
3123
+ checks: {
3124
+ status: "PASS" | "FAIL" | "WARN";
3125
+ description: string;
3126
+ check_id: string;
3127
+ notes?: string | undefined;
3128
+ }[];
3129
+ };
3130
+ markdown: string;
3131
+ action: "generate_deployment_doc";
3132
+ detail_level: "summary" | "full" | "detailed";
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;
1547
3266
  };
1548
3267
  }, {
1549
3268
  result: {
@@ -1578,6 +3297,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1578
3297
  serviceAddress: string | null;
1579
3298
  defaultAccount: string | null;
1580
3299
  objectCount: number;
3300
+ evaluationCount: number;
1581
3301
  objectTypes: string[];
1582
3302
  }[];
1583
3303
  total: number;
@@ -1600,6 +3320,24 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1600
3320
  serviceAddress: string | null;
1601
3321
  defaultAccount: string | null;
1602
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;
1603
3341
  } | {
1604
3342
  action: "create_project_from_onchain";
1605
3343
  project: {
@@ -1621,7 +3359,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1621
3359
  };
1622
3360
  objects: {
1623
3361
  id: string;
1624
- role: "reference" | "dependency" | "core";
3362
+ role: string;
1625
3363
  objectType: string | null;
1626
3364
  tags: string[] | null;
1627
3365
  projectId: string;
@@ -1671,7 +3409,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1671
3409
  };
1672
3410
  objects: {
1673
3411
  id: string;
1674
- role: "reference" | "dependency" | "core";
3412
+ role: string;
1675
3413
  objectType: string | null;
1676
3414
  tags: string[] | null;
1677
3415
  projectId: string;
@@ -1681,10 +3419,83 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1681
3419
  metadata: Record<string, unknown> | null;
1682
3420
  }[];
1683
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;
1684
3480
  evaluations: {
1685
3481
  id: string;
1686
3482
  summary: string | null;
1687
3483
  score: number | null;
3484
+ details: {
3485
+ criterionScores: {
3486
+ name: string;
3487
+ score: number;
3488
+ weight: number;
3489
+ rationale: string;
3490
+ }[];
3491
+ findings: {
3492
+ message: string;
3493
+ severity: "info" | "critical" | "warning";
3494
+ criterion: string;
3495
+ deduction: number;
3496
+ }[];
3497
+ strengths: string[];
3498
+ } | null;
1688
3499
  evalType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
1689
3500
  evaluatedAt: number;
1690
3501
  }[];
@@ -1696,7 +3507,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1696
3507
  } | {
1697
3508
  object: {
1698
3509
  id: string;
1699
- role: "reference" | "dependency" | "core";
3510
+ role: string;
1700
3511
  objectType: string | null;
1701
3512
  tags: string[] | null;
1702
3513
  projectId: string;
@@ -1712,7 +3523,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1712
3523
  } | {
1713
3524
  object: {
1714
3525
  id: string;
1715
- role: "reference" | "dependency" | "core";
3526
+ role: string;
1716
3527
  objectType: string | null;
1717
3528
  tags: string[] | null;
1718
3529
  projectId: string;
@@ -1731,29 +3542,50 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1731
3542
  action: "create_version";
1732
3543
  } | {
1733
3544
  action: "build_graph";
1734
- nodeCount: number;
1735
- edgeCount: number;
1736
- edgesBySource: Record<string, number>;
1737
- reputationCount: number;
1738
- 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;
1739
3572
  } | {
1740
3573
  action: "get_graph";
1741
3574
  edges: {
1742
3575
  weight: number;
1743
3576
  direction: string | null;
3577
+ depth: number;
3578
+ verified: boolean;
3579
+ fieldName: string | null;
3580
+ relationshipType: string;
1744
3581
  sourceObject: string;
1745
3582
  targetObject: string;
1746
3583
  edgeSource: "registrar" | "internal" | "potential";
1747
- relationshipType: string;
1748
- fieldName: string | null;
1749
- depth: number;
1750
- verified: boolean;
1751
3584
  }[];
1752
3585
  } | {
1753
3586
  summary: string;
1754
3587
  action: "evaluate_project";
1755
3588
  score: number;
1756
- evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
1757
3589
  criterionScores: {
1758
3590
  name: string;
1759
3591
  score: number;
@@ -1767,6 +3599,7 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1767
3599
  deduction: number;
1768
3600
  }[];
1769
3601
  strengths: string[];
3602
+ evaluationType: "value" | "trust" | "risk" | "completeness" | "worth_buying";
1770
3603
  needsLlm: boolean;
1771
3604
  evaluationId: string;
1772
3605
  llmPrompt?: string | undefined;
@@ -1809,5 +3642,152 @@ export declare const ProjectOperationOutputSchema: z.ZodObject<{
1809
3642
  oldValue?: unknown;
1810
3643
  newValue?: unknown;
1811
3644
  }[];
3645
+ } | {
3646
+ validation: {
3647
+ valid: boolean;
3648
+ errors: string[];
3649
+ checks: {
3650
+ status: "PASS" | "FAIL" | "WARN";
3651
+ description: string;
3652
+ check_id: string;
3653
+ notes?: string | undefined;
3654
+ }[];
3655
+ };
3656
+ markdown: string;
3657
+ action: "generate_deployment_doc";
3658
+ detail_level: "summary" | "full" | "detailed";
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;
1812
3792
  };
1813
3793
  }>;