@wowok/agent-mcp 2.5.4 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -26
- package/dist/config/runtime.js +3 -6
- package/dist/harness/checkpoint.js +2 -2
- package/dist/knowledge/flywheel-loop.js +2 -5
- package/dist/knowledge/overrides-loader.js +2 -4
- package/dist/knowledge/progress-ledger.js +3 -0
- package/dist/knowledge/progress-translation.js +5 -1
- package/dist/knowledge/reward-confirm.d.ts +3 -0
- package/dist/knowledge/reward-confirm.js +30 -0
- package/dist/knowledge/reward-puzzle.d.ts +1 -0
- package/dist/knowledge/reward-puzzle.js +12 -0
- package/dist/knowledge/reward-risk.d.ts +4 -1
- package/dist/knowledge/reward-risk.js +85 -3
- package/dist/knowledge/tools-reference.js +5 -4
- package/dist/loop-engineering/improve.js +2 -4
- package/dist/project/deployment-bridge.d.ts +5 -0
- package/dist/project/deployment-bridge.js +96 -0
- package/dist/project/evaluation.d.ts +53 -0
- package/dist/project/evaluation.js +860 -0
- package/dist/project/graph-builder.d.ts +43 -0
- package/dist/project/graph-builder.js +585 -0
- package/dist/project/handlers.d.ts +154 -0
- package/dist/project/handlers.js +567 -0
- package/dist/project/index.d.ts +1 -0
- package/dist/project/index.js +26 -7
- package/dist/project/project-store.js +2 -5
- package/dist/project/query.d.ts +1 -0
- package/dist/project/query.js +2 -0
- package/dist/project/semantic-assembler.d.ts +93 -0
- package/dist/project/semantic-assembler.js +345 -0
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/config/index.d.ts +12 -12
- package/dist/schema/local/index.d.ts +108 -108
- package/dist/schema/local/index.js +21 -18
- package/dist/schema/messenger/index.d.ts +16 -16
- package/dist/schema/messenger/index.js +2 -2
- package/dist/schema/operations.d.ts +0 -6
- package/dist/schema/project/index.d.ts +1840 -3903
- package/dist/schema/project/index.js +403 -955
- package/dist/schema/query/index.d.ts +10 -5
- package/dist/schema/trust/index.d.ts +6 -6
- package/dist/schemas/account_operation.output.json +7 -21
- package/dist/schemas/account_operation.schema.json +9 -23
- package/dist/schemas/bridge_operation.schema.json +1 -1
- package/dist/schemas/guard2file.schema.json +1 -1
- package/dist/schemas/index.json +2 -2
- package/dist/schemas/machineNode2file.schema.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +6 -6
- package/dist/schemas/onchain_operations.schema.json +5 -5
- package/dist/schemas/onchain_operations_allocation.schema.json +1 -1
- package/dist/schemas/onchain_operations_arbitration.schema.json +1 -1
- package/dist/schemas/onchain_operations_contact.schema.json +1 -1
- package/dist/schemas/onchain_operations_demand.schema.json +1 -1
- package/dist/schemas/onchain_operations_gen_passport.schema.json +2 -2
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
- package/dist/schemas/onchain_operations_guard.schema.json +1 -1
- package/dist/schemas/onchain_operations_machine.schema.json +1 -1
- package/dist/schemas/onchain_operations_order.schema.json +1 -1
- package/dist/schemas/onchain_operations_payment.schema.json +1 -1
- package/dist/schemas/onchain_operations_permission.schema.json +1 -1
- package/dist/schemas/onchain_operations_personal.schema.json +1 -1
- package/dist/schemas/onchain_operations_progress.schema.json +1 -1
- package/dist/schemas/onchain_operations_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_repository.schema.json +1 -1
- package/dist/schemas/onchain_operations_reward.schema.json +1 -1
- package/dist/schemas/onchain_operations_service.schema.json +1 -1
- package/dist/schemas/onchain_operations_treasury.schema.json +1 -1
- package/dist/schemas/project_operation.output.json +1178 -2494
- package/dist/schemas/project_operation.schema.json +216 -530
- package/dist/schemas/query_toolkit.output.json +7 -6
- package/dist/schemas/query_toolkit.schema.json +0 -4
- package/dist/telemetry/storage.js +2 -2
- package/dist/tools/handlers/onchain.js +110 -19
- package/dist/tools/handlers/project.js +56 -1046
- package/dist/tools/index.js +85 -56
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "https://wowok.net/schemas/project_operation.json",
|
|
4
|
-
"title": "Project -
|
|
5
|
-
"description": "
|
|
4
|
+
"title": "Project - Entity Management & Evaluation",
|
|
5
|
+
"description": "Project management service — manage projects as first-class entities with SQLite persistence, rigid project-object relationships, three-pathway graph construction, and a dual rule-based + LLM-assisted evaluation engine. Actions: 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.",
|
|
6
6
|
"$ref": "#/definitions/project_operation",
|
|
7
7
|
"definitions": {
|
|
8
8
|
"project_operation": {
|
|
@@ -12,68 +12,94 @@
|
|
|
12
12
|
"type": "string",
|
|
13
13
|
"enum": [
|
|
14
14
|
"list_projects",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"validate_stage_unit",
|
|
34
|
-
"get_stage_assessment",
|
|
35
|
-
"get_stage_risk_policy",
|
|
36
|
-
"get_doc_relations",
|
|
37
|
-
"update_deployment_doc",
|
|
38
|
-
"validate_validation_chain",
|
|
39
|
-
"apply_improvement",
|
|
40
|
-
"get_improvement_queue",
|
|
41
|
-
"get_flywheel_config",
|
|
42
|
-
"rollback_stage",
|
|
43
|
-
"get_reversibility",
|
|
44
|
-
"assemble_context"
|
|
15
|
+
"create_project",
|
|
16
|
+
"create_project_from_onchain",
|
|
17
|
+
"update_project",
|
|
18
|
+
"get_project_detail",
|
|
19
|
+
"add_object",
|
|
20
|
+
"remove_object",
|
|
21
|
+
"update_object",
|
|
22
|
+
"create_version",
|
|
23
|
+
"build_graph",
|
|
24
|
+
"get_graph",
|
|
25
|
+
"evaluate_project",
|
|
26
|
+
"save_evaluation",
|
|
27
|
+
"compare_projects",
|
|
28
|
+
"refresh_objects",
|
|
29
|
+
"get_object_diff",
|
|
30
|
+
"delete_project",
|
|
31
|
+
"assemble_context",
|
|
32
|
+
"generate_deployment_doc"
|
|
45
33
|
],
|
|
46
|
-
"description": "Action to perform.
|
|
34
|
+
"description": "Action to perform. Two categories:\n1. Project Entity + Evaluation (15, GLM6): list_projects, create_project, create_project_from_onchain, update_project, get_project_detail, add_object, remove_object, create_version, build_graph, get_graph, evaluate_project, save_evaluation, compare_projects, refresh_objects, get_object_diff. Projects are first-class entities with SQLite persistence, rigid project-object relationships, three-pathway graph construction, and a dual rule-based + LLM-assisted evaluation engine.\n2. Context Assembly (1): assemble_context (query on-chain object states + extract embedded history + optional events, and assemble a structured semantic context for LLM consumption). Required input: context_objects (array of object IDs/names). Optional: include_events (query recent state-transition events)."
|
|
47
35
|
},
|
|
48
36
|
"project": {
|
|
49
37
|
"type": "string",
|
|
50
|
-
"description": "Project prefix (
|
|
38
|
+
"description": "Project prefix (human-readable unique identifier). Used by create_version, build_graph, evaluate_project, etc. Takes precedence resolution: project_id > project (prefix)."
|
|
51
39
|
},
|
|
52
40
|
"version": {
|
|
53
41
|
"type": "string",
|
|
54
42
|
"pattern": "^v\\d+$",
|
|
55
|
-
"description": "Project version (e.g. 'v1').
|
|
43
|
+
"description": "Project version (e.g. 'v1'). Used by create_version."
|
|
56
44
|
},
|
|
57
|
-
"
|
|
45
|
+
"context_objects": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"description": "Object IDs (0x...) or LocalMark names to assemble context for. Required when action='assemble_context'. The current on-chain state of each object will be queried and enriched with semantic annotations."
|
|
51
|
+
},
|
|
52
|
+
"include_events": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"description": "When true, assemble_context also queries recent state-transition events (NewOrderEvent, ProgressEvent, ArbEvent, etc.). Events are the real-time transition log — convergent and bounded. Defaults to false. Note: object-embedded history (ProgressSession.forwards, Order.disputes) is ALWAYS extracted automatically — no flag needed."
|
|
55
|
+
},
|
|
56
|
+
"context_network": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"enum": [
|
|
59
|
+
"testnet",
|
|
60
|
+
"mainnet"
|
|
61
|
+
],
|
|
62
|
+
"description": "Network for assemble_context queries. Defaults to 'testnet' if omitted."
|
|
63
|
+
},
|
|
64
|
+
"filter_status": {
|
|
58
65
|
"type": "string",
|
|
59
|
-
"
|
|
66
|
+
"enum": [
|
|
67
|
+
"draft",
|
|
68
|
+
"active",
|
|
69
|
+
"inactive",
|
|
70
|
+
"archived"
|
|
71
|
+
],
|
|
72
|
+
"description": "Filter list_projects by project status."
|
|
60
73
|
},
|
|
61
|
-
"
|
|
74
|
+
"filter_perspective": {
|
|
62
75
|
"type": "string",
|
|
63
|
-
"
|
|
64
|
-
|
|
76
|
+
"enum": [
|
|
77
|
+
"producer",
|
|
78
|
+
"consumer",
|
|
79
|
+
"both"
|
|
80
|
+
],
|
|
81
|
+
"description": "Filter list_projects by project perspective."
|
|
65
82
|
},
|
|
66
|
-
"
|
|
83
|
+
"filter_network": {
|
|
67
84
|
"type": "string",
|
|
68
|
-
"
|
|
85
|
+
"enum": [
|
|
86
|
+
"testnet",
|
|
87
|
+
"mainnet"
|
|
88
|
+
],
|
|
89
|
+
"description": "Filter list_projects by network."
|
|
69
90
|
},
|
|
70
|
-
"
|
|
91
|
+
"project_name": {
|
|
71
92
|
"type": "string",
|
|
72
93
|
"minLength": 1,
|
|
94
|
+
"maxLength": 200,
|
|
95
|
+
"description": "Display name for create_project / create_project_from_onchain / update_project. Required when action='create_project'."
|
|
96
|
+
},
|
|
97
|
+
"project_description": {
|
|
98
|
+
"type": "string",
|
|
73
99
|
"maxLength": 2000,
|
|
74
|
-
"description": "
|
|
100
|
+
"description": "Project description for create_project / update_project."
|
|
75
101
|
},
|
|
76
|
-
"
|
|
102
|
+
"project_industry": {
|
|
77
103
|
"type": "string",
|
|
78
104
|
"enum": [
|
|
79
105
|
"general",
|
|
@@ -86,553 +112,213 @@
|
|
|
86
112
|
"subscription",
|
|
87
113
|
"custom"
|
|
88
114
|
],
|
|
89
|
-
"description": "Industry
|
|
115
|
+
"description": "Industry tag for create_project. Drives template defaults."
|
|
90
116
|
},
|
|
91
|
-
"
|
|
92
|
-
"type": "array",
|
|
93
|
-
"items": {
|
|
94
|
-
"type": "string"
|
|
95
|
-
},
|
|
96
|
-
"description": "Optional explicit target objects (entry_ids or object_type names) for analyze_intent."
|
|
97
|
-
},
|
|
98
|
-
"puzzles": {
|
|
99
|
-
"type": "object",
|
|
100
|
-
"additionalProperties": {
|
|
101
|
-
"type": "object",
|
|
102
|
-
"properties": {
|
|
103
|
-
"puzzle": {
|
|
104
|
-
"type": "object",
|
|
105
|
-
"additionalProperties": {},
|
|
106
|
-
"description": "Per-object puzzle snapshot. Shape varies per object_type — see knowledge/<obj>-puzzle.ts."
|
|
107
|
-
},
|
|
108
|
-
"completeness": {
|
|
109
|
-
"type": "object",
|
|
110
|
-
"additionalProperties": {},
|
|
111
|
-
"description": "Completeness assessment from checkPuzzleCompleteness(). Shape varies per object."
|
|
112
|
-
},
|
|
113
|
-
"missing_dimensions": {
|
|
114
|
-
"type": "array",
|
|
115
|
-
"items": {
|
|
116
|
-
"type": "string"
|
|
117
|
-
},
|
|
118
|
-
"description": "Dimensions still missing for this object (e.g. ['A','B'])."
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"required": [
|
|
122
|
-
"puzzle",
|
|
123
|
-
"completeness",
|
|
124
|
-
"missing_dimensions"
|
|
125
|
-
],
|
|
126
|
-
"additionalProperties": false
|
|
127
|
-
},
|
|
128
|
-
"description": "Per-object puzzle snapshots keyed by object_type. Required for aggregate_risks and generate_deployment_doc."
|
|
129
|
-
},
|
|
130
|
-
"severity_threshold": {
|
|
117
|
+
"project_perspective": {
|
|
131
118
|
"type": "string",
|
|
132
119
|
"enum": [
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"LOW",
|
|
137
|
-
"INFO"
|
|
120
|
+
"producer",
|
|
121
|
+
"consumer",
|
|
122
|
+
"both"
|
|
138
123
|
],
|
|
139
|
-
"description": "
|
|
124
|
+
"description": "Project perspective for create_project. 'producer' = build/operate services, 'consumer' = evaluate/buy services, 'both' = dual role. Defaults to 'producer'."
|
|
140
125
|
},
|
|
141
|
-
"
|
|
126
|
+
"project_labels": {
|
|
142
127
|
"type": "array",
|
|
143
128
|
"items": {
|
|
144
129
|
"type": "string"
|
|
145
130
|
},
|
|
146
|
-
"description": "
|
|
131
|
+
"description": "Free-form labels for create_project / update_project (e.g. ['travel','london','priority'])."
|
|
147
132
|
},
|
|
148
|
-
"
|
|
133
|
+
"service_address": {
|
|
149
134
|
"type": "string",
|
|
150
|
-
"
|
|
151
|
-
"maxLength": 500,
|
|
152
|
-
"description": "One-line business intent description for the deployment doc. Required when action='generate_deployment_doc'."
|
|
135
|
+
"description": "On-chain Service object address. Required for create_project_from_onchain. Optional for create_project (links the project to its core Service)."
|
|
153
136
|
},
|
|
154
|
-
"
|
|
137
|
+
"project_network": {
|
|
155
138
|
"type": "string",
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"
|
|
161
|
-
"type": "object",
|
|
162
|
-
"properties": {
|
|
163
|
-
"entry_id": {
|
|
164
|
-
"type": "string",
|
|
165
|
-
"description": "Stable id '<object_type>:<name>'"
|
|
166
|
-
},
|
|
167
|
-
"object_type": {
|
|
168
|
-
"type": "string",
|
|
169
|
-
"enum": [
|
|
170
|
-
"service",
|
|
171
|
-
"machine",
|
|
172
|
-
"guard",
|
|
173
|
-
"permission",
|
|
174
|
-
"reward",
|
|
175
|
-
"arb",
|
|
176
|
-
"progress",
|
|
177
|
-
"treasury",
|
|
178
|
-
"demand",
|
|
179
|
-
"repository",
|
|
180
|
-
"contact",
|
|
181
|
-
"order",
|
|
182
|
-
"allocation",
|
|
183
|
-
"personal",
|
|
184
|
-
"payment",
|
|
185
|
-
"proof"
|
|
186
|
-
]
|
|
187
|
-
},
|
|
188
|
-
"name": {
|
|
189
|
-
"type": "string"
|
|
190
|
-
},
|
|
191
|
-
"reused_from": {
|
|
192
|
-
"type": "string",
|
|
193
|
-
"description": "Existing on-chain address or local name if reused"
|
|
194
|
-
},
|
|
195
|
-
"publish_required": {
|
|
196
|
-
"type": "boolean",
|
|
197
|
-
"description": "Whether publish is required (only Service/Machine)"
|
|
198
|
-
},
|
|
199
|
-
"description": {
|
|
200
|
-
"type": "string"
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
"required": [
|
|
204
|
-
"entry_id",
|
|
205
|
-
"object_type",
|
|
206
|
-
"name",
|
|
207
|
-
"publish_required"
|
|
208
|
-
],
|
|
209
|
-
"additionalProperties": false
|
|
210
|
-
},
|
|
211
|
-
"description": "Deployment objects for generate_deployment_doc."
|
|
212
|
-
},
|
|
213
|
-
"edges": {
|
|
214
|
-
"type": "array",
|
|
215
|
-
"items": {
|
|
216
|
-
"type": "object",
|
|
217
|
-
"properties": {
|
|
218
|
-
"from": {
|
|
219
|
-
"type": "string"
|
|
220
|
-
},
|
|
221
|
-
"to": {
|
|
222
|
-
"type": "string"
|
|
223
|
-
},
|
|
224
|
-
"edge_kind": {
|
|
225
|
-
"type": "string",
|
|
226
|
-
"enum": [
|
|
227
|
-
"machine",
|
|
228
|
-
"order_allocators",
|
|
229
|
-
"arbitrations",
|
|
230
|
-
"compensation_fund",
|
|
231
|
-
"rewards",
|
|
232
|
-
"buy_guard",
|
|
233
|
-
"permission",
|
|
234
|
-
"guard",
|
|
235
|
-
"prev",
|
|
236
|
-
"next",
|
|
237
|
-
"forward",
|
|
238
|
-
"parent",
|
|
239
|
-
"service",
|
|
240
|
-
"progress",
|
|
241
|
-
"arbitration",
|
|
242
|
-
"sub_order",
|
|
243
|
-
"references"
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
|
-
"field_path": {
|
|
247
|
-
"type": "string"
|
|
248
|
-
},
|
|
249
|
-
"required_at_publish": {
|
|
250
|
-
"type": "boolean"
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
"required": [
|
|
254
|
-
"from",
|
|
255
|
-
"to",
|
|
256
|
-
"edge_kind",
|
|
257
|
-
"field_path",
|
|
258
|
-
"required_at_publish"
|
|
259
|
-
],
|
|
260
|
-
"additionalProperties": false
|
|
261
|
-
},
|
|
262
|
-
"description": "Dependency graph edges for generate_deployment_doc."
|
|
263
|
-
},
|
|
264
|
-
"steps": {
|
|
265
|
-
"type": "array",
|
|
266
|
-
"items": {
|
|
267
|
-
"type": "object",
|
|
268
|
-
"properties": {
|
|
269
|
-
"step": {
|
|
270
|
-
"type": "integer",
|
|
271
|
-
"exclusiveMinimum": 0
|
|
272
|
-
},
|
|
273
|
-
"object_type": {
|
|
274
|
-
"$ref": "#/definitions/project_operation/properties/objects/items/properties/object_type"
|
|
275
|
-
},
|
|
276
|
-
"operation": {
|
|
277
|
-
"type": "string"
|
|
278
|
-
},
|
|
279
|
-
"substep_count": {
|
|
280
|
-
"type": "integer",
|
|
281
|
-
"minimum": 0
|
|
282
|
-
},
|
|
283
|
-
"depends_on": {
|
|
284
|
-
"type": "array",
|
|
285
|
-
"items": {
|
|
286
|
-
"type": "integer"
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
"entry_id": {
|
|
290
|
-
"type": "string"
|
|
291
|
-
},
|
|
292
|
-
"network_phase": {
|
|
293
|
-
"type": "string",
|
|
294
|
-
"enum": [
|
|
295
|
-
"testnet",
|
|
296
|
-
"mainnet",
|
|
297
|
-
"both"
|
|
298
|
-
]
|
|
299
|
-
}
|
|
300
|
-
},
|
|
301
|
-
"required": [
|
|
302
|
-
"step",
|
|
303
|
-
"object_type",
|
|
304
|
-
"operation",
|
|
305
|
-
"substep_count",
|
|
306
|
-
"depends_on",
|
|
307
|
-
"entry_id",
|
|
308
|
-
"network_phase"
|
|
309
|
-
],
|
|
310
|
-
"additionalProperties": false
|
|
311
|
-
},
|
|
312
|
-
"description": "Topological execution plan for generate_deployment_doc."
|
|
139
|
+
"enum": [
|
|
140
|
+
"testnet",
|
|
141
|
+
"mainnet"
|
|
142
|
+
],
|
|
143
|
+
"description": "Network the project is bound to. A Service deployed to different networks are different projects. Defaults to 'testnet'."
|
|
313
144
|
},
|
|
314
|
-
"
|
|
315
|
-
"type": "
|
|
316
|
-
"
|
|
317
|
-
"type": "object",
|
|
318
|
-
"properties": {
|
|
319
|
-
"scenario_id": {
|
|
320
|
-
"type": "string"
|
|
321
|
-
},
|
|
322
|
-
"description": {
|
|
323
|
-
"type": "string"
|
|
324
|
-
},
|
|
325
|
-
"primary_object": {
|
|
326
|
-
"type": "string"
|
|
327
|
-
},
|
|
328
|
-
"supporting_objects": {
|
|
329
|
-
"type": "array",
|
|
330
|
-
"items": {
|
|
331
|
-
"type": "string"
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
"test_step_refs": {
|
|
335
|
-
"type": "array",
|
|
336
|
-
"items": {
|
|
337
|
-
"type": "string"
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
"required": [
|
|
342
|
-
"scenario_id",
|
|
343
|
-
"description",
|
|
344
|
-
"primary_object",
|
|
345
|
-
"supporting_objects"
|
|
346
|
-
],
|
|
347
|
-
"additionalProperties": false
|
|
348
|
-
},
|
|
349
|
-
"description": "Business scenarios for generate_deployment_doc §7."
|
|
145
|
+
"project_id": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"description": "Project UUID for update_project / get_project_detail / add_object / remove_object / create_version / build_graph / evaluate_project / refresh_objects. Takes precedence over 'project' (prefix) when both are given."
|
|
350
148
|
},
|
|
351
|
-
"
|
|
149
|
+
"project_status": {
|
|
352
150
|
"type": "string",
|
|
353
151
|
"enum": [
|
|
354
|
-
"
|
|
355
|
-
"
|
|
356
|
-
"
|
|
357
|
-
"
|
|
152
|
+
"draft",
|
|
153
|
+
"active",
|
|
154
|
+
"inactive",
|
|
155
|
+
"archived"
|
|
358
156
|
],
|
|
359
|
-
"description": "
|
|
157
|
+
"description": "New status for update_project. 'active' projects are live, 'archived' are read-only."
|
|
360
158
|
},
|
|
361
|
-
"
|
|
362
|
-
"type": "
|
|
363
|
-
"
|
|
364
|
-
"description": "CRITICAL risk count from aggregate_risks."
|
|
365
|
-
},
|
|
366
|
-
"risk_high_count": {
|
|
367
|
-
"type": "integer",
|
|
368
|
-
"minimum": 0,
|
|
369
|
-
"description": "HIGH risk count from aggregate_risks."
|
|
159
|
+
"object_address": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "On-chain object address (0x...) for add_object / remove_object. For add_object, alternatively use object_name to resolve via LocalMark."
|
|
370
162
|
},
|
|
371
|
-
"
|
|
372
|
-
"type": "
|
|
373
|
-
"description": "
|
|
163
|
+
"object_name_add": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "LocalMark name for add_object (alternative to object_address)."
|
|
374
166
|
},
|
|
375
|
-
"
|
|
376
|
-
"type": "
|
|
377
|
-
"
|
|
378
|
-
"
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
"
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
"
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
},
|
|
395
|
-
"warning": {
|
|
396
|
-
"type": "string",
|
|
397
|
-
"description": "Custom warning text. Defaults to a computed cost summary."
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
"required": [
|
|
401
|
-
"network"
|
|
167
|
+
"object_type_add": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"enum": [
|
|
170
|
+
"Service",
|
|
171
|
+
"Machine",
|
|
172
|
+
"Guard",
|
|
173
|
+
"Permission",
|
|
174
|
+
"Reward",
|
|
175
|
+
"Arbitration",
|
|
176
|
+
"Progress",
|
|
177
|
+
"Treasury",
|
|
178
|
+
"Demand",
|
|
179
|
+
"Repository",
|
|
180
|
+
"Contact",
|
|
181
|
+
"Order",
|
|
182
|
+
"Allocation",
|
|
183
|
+
"Personal",
|
|
184
|
+
"Payment",
|
|
185
|
+
"Proof"
|
|
402
186
|
],
|
|
403
|
-
"
|
|
404
|
-
"description": "Gas budget input for stage 4/5 gate (§3.5). Non-blocking; only surfaces a WARN on mainnet."
|
|
187
|
+
"description": "Object type for add_object."
|
|
405
188
|
},
|
|
406
|
-
"
|
|
189
|
+
"object_role": {
|
|
407
190
|
"type": "string",
|
|
408
191
|
"enum": [
|
|
409
|
-
"
|
|
410
|
-
"
|
|
192
|
+
"core",
|
|
193
|
+
"dependency",
|
|
194
|
+
"reference"
|
|
411
195
|
],
|
|
412
|
-
"description": "
|
|
196
|
+
"description": "Object role in project for add_object. 'core' = the Service (only one per project), 'dependency' = required binding, 'reference' = optional/auxiliary. Defaults to 'reference'."
|
|
413
197
|
},
|
|
414
|
-
"
|
|
198
|
+
"object_tags_add": {
|
|
415
199
|
"type": "array",
|
|
416
200
|
"items": {
|
|
417
|
-
"type": "
|
|
418
|
-
"properties": {
|
|
419
|
-
"step_id": {
|
|
420
|
-
"type": "string",
|
|
421
|
-
"pattern": "^T\\d+\\.\\d+$"
|
|
422
|
-
},
|
|
423
|
-
"parent_step": {
|
|
424
|
-
"type": "string",
|
|
425
|
-
"pattern": "^T\\d+$"
|
|
426
|
-
},
|
|
427
|
-
"object_type": {
|
|
428
|
-
"$ref": "#/definitions/project_operation/properties/objects/items/properties/object_type"
|
|
429
|
-
},
|
|
430
|
-
"entry_id": {
|
|
431
|
-
"type": "string"
|
|
432
|
-
},
|
|
433
|
-
"operation_type": {
|
|
434
|
-
"type": "string"
|
|
435
|
-
},
|
|
436
|
-
"network": {
|
|
437
|
-
"type": "string",
|
|
438
|
-
"enum": [
|
|
439
|
-
"testnet",
|
|
440
|
-
"mainnet"
|
|
441
|
-
]
|
|
442
|
-
},
|
|
443
|
-
"input": {
|
|
444
|
-
"type": "object",
|
|
445
|
-
"properties": {
|
|
446
|
-
"data": {
|
|
447
|
-
"type": "object",
|
|
448
|
-
"additionalProperties": {}
|
|
449
|
-
},
|
|
450
|
-
"input_refs": {
|
|
451
|
-
"type": "array",
|
|
452
|
-
"items": {
|
|
453
|
-
"type": "string"
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
|
-
"required": [
|
|
458
|
-
"data",
|
|
459
|
-
"input_refs"
|
|
460
|
-
],
|
|
461
|
-
"additionalProperties": false
|
|
462
|
-
},
|
|
463
|
-
"output": {
|
|
464
|
-
"type": "object",
|
|
465
|
-
"properties": {
|
|
466
|
-
"object_id": {
|
|
467
|
-
"type": "string"
|
|
468
|
-
},
|
|
469
|
-
"tx_digest": {
|
|
470
|
-
"type": "string"
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
"additionalProperties": false
|
|
474
|
-
},
|
|
475
|
-
"timestamp": {
|
|
476
|
-
"type": "integer"
|
|
477
|
-
},
|
|
478
|
-
"status": {
|
|
479
|
-
"type": "string",
|
|
480
|
-
"enum": [
|
|
481
|
-
"PENDING",
|
|
482
|
-
"SUCCESS",
|
|
483
|
-
"FAILED",
|
|
484
|
-
"SKIPPED"
|
|
485
|
-
]
|
|
486
|
-
},
|
|
487
|
-
"failure_reason": {
|
|
488
|
-
"type": "string"
|
|
489
|
-
},
|
|
490
|
-
"dependencies": {
|
|
491
|
-
"type": "object",
|
|
492
|
-
"properties": {
|
|
493
|
-
"input_refs": {
|
|
494
|
-
"type": "array",
|
|
495
|
-
"items": {
|
|
496
|
-
"type": "string"
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
"output_refs": {
|
|
500
|
-
"type": "array",
|
|
501
|
-
"items": {
|
|
502
|
-
"type": "object",
|
|
503
|
-
"properties": {
|
|
504
|
-
"substep_id": {
|
|
505
|
-
"type": "string"
|
|
506
|
-
},
|
|
507
|
-
"field_path": {
|
|
508
|
-
"type": "string"
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
"required": [
|
|
512
|
-
"substep_id",
|
|
513
|
-
"field_path"
|
|
514
|
-
],
|
|
515
|
-
"additionalProperties": false
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
"required": [
|
|
520
|
-
"input_refs",
|
|
521
|
-
"output_refs"
|
|
522
|
-
],
|
|
523
|
-
"additionalProperties": false
|
|
524
|
-
},
|
|
525
|
-
"retry_info": {
|
|
526
|
-
"type": "object",
|
|
527
|
-
"properties": {
|
|
528
|
-
"original_step_id": {
|
|
529
|
-
"type": "string"
|
|
530
|
-
},
|
|
531
|
-
"retry_count": {
|
|
532
|
-
"type": "integer",
|
|
533
|
-
"minimum": 0
|
|
534
|
-
},
|
|
535
|
-
"retry_reason": {
|
|
536
|
-
"type": "string"
|
|
537
|
-
}
|
|
538
|
-
},
|
|
539
|
-
"required": [
|
|
540
|
-
"original_step_id",
|
|
541
|
-
"retry_count",
|
|
542
|
-
"retry_reason"
|
|
543
|
-
],
|
|
544
|
-
"additionalProperties": false
|
|
545
|
-
}
|
|
546
|
-
},
|
|
547
|
-
"required": [
|
|
548
|
-
"step_id",
|
|
549
|
-
"parent_step",
|
|
550
|
-
"object_type",
|
|
551
|
-
"entry_id",
|
|
552
|
-
"operation_type",
|
|
553
|
-
"network",
|
|
554
|
-
"input",
|
|
555
|
-
"timestamp",
|
|
556
|
-
"status",
|
|
557
|
-
"dependencies"
|
|
558
|
-
],
|
|
559
|
-
"additionalProperties": false
|
|
201
|
+
"type": "string"
|
|
560
202
|
},
|
|
561
|
-
"description": "
|
|
203
|
+
"description": "Tags for add_object."
|
|
562
204
|
},
|
|
563
|
-
"
|
|
564
|
-
"type": "
|
|
565
|
-
"
|
|
566
|
-
"maximum": 5,
|
|
567
|
-
"description": "Stage number (1-5) for validate_stage_unit, get_stage_assessment, get_stage_risk_policy, and rollback_stage (the stage to rollback to). Required by these 4 actions."
|
|
205
|
+
"object_id_remove": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"description": "ProjectObject UUID for remove_object (the project_objects.id, NOT the on-chain address)."
|
|
568
208
|
},
|
|
569
|
-
"
|
|
209
|
+
"object_id_update": {
|
|
570
210
|
"type": "string",
|
|
571
|
-
"description": "
|
|
211
|
+
"description": "ProjectObject UUID for update_object (the project_objects.id)."
|
|
572
212
|
},
|
|
573
|
-
"
|
|
213
|
+
"object_name_update": {
|
|
574
214
|
"type": "string",
|
|
575
|
-
"
|
|
576
|
-
"approved",
|
|
577
|
-
"rejected",
|
|
578
|
-
"applied"
|
|
579
|
-
],
|
|
580
|
-
"description": "New review status to set (for apply_improvement). 'approved' triggers application (config_override or source_patch); 'rejected' marks as rejected; 'applied' marks as already applied."
|
|
215
|
+
"description": "New name for update_object."
|
|
581
216
|
},
|
|
582
|
-
"
|
|
217
|
+
"object_type_update": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "New type for update_object."
|
|
220
|
+
},
|
|
221
|
+
"object_role_update": {
|
|
583
222
|
"type": "string",
|
|
584
223
|
"enum": [
|
|
585
|
-
"
|
|
586
|
-
"
|
|
587
|
-
"
|
|
588
|
-
"applied"
|
|
224
|
+
"core",
|
|
225
|
+
"dependency",
|
|
226
|
+
"reference"
|
|
589
227
|
],
|
|
590
|
-
"description": "
|
|
228
|
+
"description": "New role for update_object."
|
|
591
229
|
},
|
|
592
|
-
"
|
|
230
|
+
"object_tags_update": {
|
|
231
|
+
"type": "array",
|
|
232
|
+
"items": {
|
|
233
|
+
"type": "string"
|
|
234
|
+
},
|
|
235
|
+
"description": "New tags for update_object."
|
|
236
|
+
},
|
|
237
|
+
"version_description": {
|
|
593
238
|
"type": "string",
|
|
594
|
-
"
|
|
239
|
+
"maxLength": 500,
|
|
240
|
+
"description": "Description for create_version."
|
|
595
241
|
},
|
|
596
|
-
"
|
|
242
|
+
"fork_from_version": {
|
|
597
243
|
"type": "string",
|
|
598
|
-
"description": "
|
|
244
|
+
"description": "Source version for create_version (fork objects + graph from this version)."
|
|
599
245
|
},
|
|
600
|
-
"
|
|
246
|
+
"max_depth": {
|
|
247
|
+
"type": "integer",
|
|
248
|
+
"minimum": 1,
|
|
249
|
+
"maximum": 5,
|
|
250
|
+
"description": "Max recursion depth for Pathway 1 (internal reference derivation) in build_graph. Default 3."
|
|
251
|
+
},
|
|
252
|
+
"enable_registrar": {
|
|
601
253
|
"type": "boolean",
|
|
602
|
-
"description": "
|
|
254
|
+
"description": "Enable Pathway 2 (Registrar inbound query) in build_graph. Default true."
|
|
603
255
|
},
|
|
604
|
-
"
|
|
605
|
-
"type": "
|
|
606
|
-
"description": "
|
|
256
|
+
"enable_potential": {
|
|
257
|
+
"type": "boolean",
|
|
258
|
+
"description": "Enable Pathway 3 (potential relationship detection) in build_graph. Default false."
|
|
607
259
|
},
|
|
608
|
-
"
|
|
260
|
+
"evaluation_type": {
|
|
609
261
|
"type": "string",
|
|
610
262
|
"enum": [
|
|
611
|
-
"
|
|
612
|
-
"
|
|
613
|
-
"
|
|
614
|
-
"
|
|
263
|
+
"risk",
|
|
264
|
+
"trust",
|
|
265
|
+
"completeness",
|
|
266
|
+
"value",
|
|
267
|
+
"worth_buying"
|
|
615
268
|
],
|
|
616
|
-
"description": "
|
|
269
|
+
"description": "Evaluation type for evaluate_project. risk/trust/completeness are rule-based (computed locally). worth_buying/value require LLM assistance (returns a prompt for the caller to process)."
|
|
617
270
|
},
|
|
618
|
-
"
|
|
271
|
+
"refresh_before_eval": {
|
|
272
|
+
"type": "boolean",
|
|
273
|
+
"description": "When true, evaluate_project refreshes object cache from chain before evaluating. Default false."
|
|
274
|
+
},
|
|
275
|
+
"eval_score": {
|
|
276
|
+
"type": "number",
|
|
277
|
+
"minimum": 0,
|
|
278
|
+
"maximum": 100,
|
|
279
|
+
"description": "Overall evaluation score (0-100) for save_evaluation."
|
|
280
|
+
},
|
|
281
|
+
"eval_summary": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"maxLength": 1000,
|
|
284
|
+
"description": "Evaluation summary for save_evaluation."
|
|
285
|
+
},
|
|
286
|
+
"eval_details": {
|
|
287
|
+
"type": "object",
|
|
288
|
+
"additionalProperties": {},
|
|
289
|
+
"description": "Structured evaluation details for save_evaluation (criterion_scores, findings, etc.)."
|
|
290
|
+
},
|
|
291
|
+
"compare_project_ids": {
|
|
619
292
|
"type": "array",
|
|
620
293
|
"items": {
|
|
621
294
|
"type": "string"
|
|
622
295
|
},
|
|
623
|
-
"
|
|
296
|
+
"minItems": 2,
|
|
297
|
+
"description": "Array of project IDs to compare (for compare_projects). Minimum 2."
|
|
624
298
|
},
|
|
625
|
-
"
|
|
626
|
-
"type": "
|
|
627
|
-
"description": "
|
|
299
|
+
"diff_address": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"description": "Object address for get_object_diff."
|
|
628
302
|
},
|
|
629
|
-
"
|
|
303
|
+
"diff_from_time": {
|
|
304
|
+
"type": "integer",
|
|
305
|
+
"description": "Start timestamp (ms) for get_object_diff."
|
|
306
|
+
},
|
|
307
|
+
"diff_to_time": {
|
|
308
|
+
"type": "integer",
|
|
309
|
+
"description": "End timestamp (ms) for get_object_diff."
|
|
310
|
+
},
|
|
311
|
+
"network": {
|
|
630
312
|
"type": "string",
|
|
631
313
|
"enum": [
|
|
632
314
|
"testnet",
|
|
633
315
|
"mainnet"
|
|
634
316
|
],
|
|
635
|
-
"description": "
|
|
317
|
+
"description": "Target network for generate_deployment_doc. Required when action='generate_deployment_doc'."
|
|
318
|
+
},
|
|
319
|
+
"save": {
|
|
320
|
+
"type": "boolean",
|
|
321
|
+
"description": "When true (default), persist the generated MD to SQLite project_documents table for generate_deployment_doc."
|
|
636
322
|
}
|
|
637
323
|
},
|
|
638
324
|
"required": [
|