@wowok/agent-mcp 2.3.14 → 2.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +1 -0
- package/dist/config/runtime.d.ts +26 -0
- package/dist/config/runtime.js +217 -0
- package/dist/customer/index.d.ts +9 -0
- package/dist/customer/index.js +9 -0
- package/dist/customer/industry-risks.d.ts +40 -0
- package/dist/customer/industry-risks.js +438 -0
- package/dist/customer/info-puzzle.d.ts +102 -0
- package/dist/customer/info-puzzle.js +312 -0
- package/dist/customer/order-monitor.d.ts +75 -0
- package/dist/customer/order-monitor.js +327 -0
- package/dist/customer/order-strategy.d.ts +36 -0
- package/dist/customer/order-strategy.js +373 -0
- package/dist/customer/post-purchase.d.ts +42 -0
- package/dist/customer/post-purchase.js +350 -0
- package/dist/customer/reminder-system.d.ts +42 -0
- package/dist/customer/reminder-system.js +295 -0
- package/dist/customer/risk-assessment.d.ts +8 -0
- package/dist/customer/risk-assessment.js +337 -0
- package/dist/customer/types.d.ts +193 -0
- package/dist/customer/types.js +13 -0
- package/dist/customer/user-preferences.d.ts +70 -0
- package/dist/customer/user-preferences.js +460 -0
- package/dist/experience/experience-reuse.d.ts +10 -0
- package/dist/experience/experience-reuse.js +103 -0
- package/dist/experience/index.d.ts +6 -0
- package/dist/experience/index.js +5 -0
- package/dist/experience/intent-distill.d.ts +3 -0
- package/dist/experience/intent-distill.js +83 -0
- package/dist/experience/realtime-feedback.d.ts +5 -0
- package/dist/experience/realtime-feedback.js +94 -0
- package/dist/experience/types.d.ts +50 -0
- package/dist/experience/types.js +1 -0
- package/dist/experience/user-profile.d.ts +25 -0
- package/dist/experience/user-profile.js +171 -0
- package/dist/index.js +842 -371
- package/dist/knowledge/acquisition-flywheel.d.ts +53 -0
- package/dist/knowledge/acquisition-flywheel.js +192 -0
- package/dist/knowledge/arbitration-trust.d.ts +24 -0
- package/dist/knowledge/arbitration-trust.js +117 -0
- package/dist/knowledge/audit-rules.d.ts +28 -0
- package/dist/knowledge/audit-rules.js +141 -0
- package/dist/knowledge/demand-matching.d.ts +29 -0
- package/dist/knowledge/demand-matching.js +132 -0
- package/dist/knowledge/dynamic-pricing.d.ts +31 -0
- package/dist/knowledge/dynamic-pricing.js +87 -0
- package/dist/knowledge/flywheel-loop.d.ts +87 -0
- package/dist/knowledge/flywheel-loop.js +378 -0
- package/dist/knowledge/glossary.d.ts +18 -0
- package/dist/knowledge/glossary.js +209 -0
- package/dist/knowledge/guard-ledger.d.ts +19 -0
- package/dist/knowledge/guard-ledger.js +219 -0
- package/dist/knowledge/guard-puzzle.d.ts +93 -0
- package/dist/knowledge/guard-puzzle.js +278 -0
- package/dist/knowledge/guard-risk.d.ts +60 -0
- package/dist/knowledge/guard-risk.js +474 -0
- package/dist/knowledge/guard-translation.d.ts +46 -0
- package/dist/knowledge/guard-translation.js +487 -0
- package/dist/knowledge/index.d.ts +77 -0
- package/dist/knowledge/index.js +79 -0
- package/dist/knowledge/industry-evolution.d.ts +82 -0
- package/dist/knowledge/industry-evolution.js +323 -0
- package/dist/knowledge/industry-generalizer.d.ts +17 -0
- package/dist/knowledge/industry-generalizer.js +381 -0
- package/dist/knowledge/industry-registry.d.ts +48 -0
- package/dist/knowledge/industry-registry.js +187 -0
- package/dist/knowledge/intent-metrics.d.ts +42 -0
- package/dist/knowledge/intent-metrics.js +566 -0
- package/dist/knowledge/process-model.d.ts +24 -0
- package/dist/knowledge/process-model.js +160 -0
- package/dist/knowledge/reputation-rules.d.ts +42 -0
- package/dist/knowledge/reputation-rules.js +99 -0
- package/dist/knowledge/reward-templates.d.ts +25 -0
- package/dist/knowledge/reward-templates.js +125 -0
- package/dist/knowledge/safety-rules.d.ts +36 -0
- package/dist/knowledge/safety-rules.js +232 -0
- package/dist/knowledge/tool-constraints.d.ts +30 -0
- package/dist/knowledge/tool-constraints.js +175 -0
- package/dist/knowledge/trust-metrics.d.ts +37 -0
- package/dist/knowledge/trust-metrics.js +138 -0
- package/dist/loop-engineering/diagnose.d.ts +3 -2
- package/dist/loop-engineering/diagnose.js +94 -0
- package/dist/loop-engineering/improve.d.ts +1 -1
- package/dist/loop-engineering/improve.js +52 -1
- package/dist/project/graph.d.ts +71 -0
- package/dist/project/graph.js +314 -0
- package/dist/project/index.d.ts +62 -0
- package/dist/project/index.js +167 -0
- package/dist/project/namespace.d.ts +62 -0
- package/dist/project/namespace.js +181 -0
- package/dist/project/query.d.ts +40 -0
- package/dist/project/query.js +110 -0
- package/dist/safety/confirm-gate.d.ts +17 -0
- package/dist/safety/confirm-gate.js +88 -0
- package/dist/safety/index.d.ts +3 -0
- package/dist/safety/index.js +3 -0
- package/dist/safety/preview.d.ts +2 -0
- package/dist/safety/preview.js +36 -0
- package/dist/schema/call/allocation.d.ts +39 -14
- package/dist/schema/call/arbitration.d.ts +187 -162
- package/dist/schema/call/base.d.ts +1971 -87
- package/dist/schema/call/base.js +135 -3
- package/dist/schema/call/bridge-handler.js +15 -2
- package/dist/schema/call/bridge.d.ts +1478 -53
- package/dist/schema/call/bridge.js +50 -2
- package/dist/schema/call/contact.d.ts +25 -0
- package/dist/schema/call/demand.d.ts +79 -54
- package/dist/schema/call/guard.d.ts +125 -50
- package/dist/schema/call/handler.d.ts +3 -0
- package/dist/schema/call/handler.js +60 -14
- package/dist/schema/call/machine.d.ts +988 -938
- package/dist/schema/call/order.d.ts +25 -0
- package/dist/schema/call/payment.d.ts +25 -0
- package/dist/schema/call/permission.d.ts +244 -219
- package/dist/schema/call/personal.d.ts +25 -0
- package/dist/schema/call/progress.d.ts +25 -0
- package/dist/schema/call/proof.d.ts +62 -12
- package/dist/schema/call/proof.js +3 -3
- package/dist/schema/call/repository.d.ts +101 -76
- package/dist/schema/call/reward.d.ts +55 -30
- package/dist/schema/call/semantic.d.ts +10 -2
- package/dist/schema/call/semantic.js +616 -11
- package/dist/schema/call/service.d.ts +442 -417
- package/dist/schema/call/treasury.d.ts +25 -0
- package/dist/schema/common/index.js +3 -3
- package/dist/schema/config/index.d.ts +18 -0
- package/dist/schema/config/index.js +17 -0
- package/dist/schema/index.d.ts +6 -0
- package/dist/schema/index.js +5 -0
- package/dist/schema/local/index.d.ts +237 -81
- package/dist/schema/local/index.js +42 -6
- package/dist/schema/messenger/index.d.ts +1018 -79
- package/dist/schema/messenger/index.js +26 -17
- package/dist/schema/operations.d.ts +3192 -1746
- package/dist/schema/operations.js +93 -98
- package/dist/schema/project/index.d.ts +21 -0
- package/dist/schema/project/index.js +32 -0
- package/dist/schema/query/index.d.ts +2762 -1856
- package/dist/schema/query/index.js +38 -35
- package/dist/schema/schema-query/index.d.ts +33 -0
- package/dist/schema/schema-query/index.js +36 -0
- package/dist/schema/schema-version.d.ts +25 -0
- package/dist/schema/schema-version.js +76 -0
- package/dist/schema/trust/index.d.ts +407 -0
- package/dist/schema/trust/index.js +113 -0
- package/dist/schemas/account_operation.output.json +25 -16
- package/dist/schemas/account_operation.schema.json +1 -1
- package/dist/schemas/bridge_operation.output.json +744 -0
- package/dist/schemas/bridge_operation.schema.json +82 -8
- package/dist/schemas/config_operation.output.json +18 -0
- package/dist/schemas/config_operation.schema.json +34 -0
- package/dist/schemas/guard-node-schema.json +82 -0
- package/dist/schemas/guard2file.schema.json +23 -0
- package/dist/schemas/index.json +19 -1
- package/dist/schemas/local_info_operation.output.json +23 -0
- package/dist/schemas/local_info_operation.schema.json +1 -1
- package/dist/schemas/local_mark_operation.output.json +24 -1
- package/dist/schemas/local_mark_operation.schema.json +4 -4
- package/dist/schemas/machineNode2file.schema.json +23 -0
- package/dist/schemas/messenger_operation.output.json +752 -0
- package/dist/schemas/onchain_events.output.json +718 -0
- package/dist/schemas/onchain_operations.output.json +627 -18
- package/dist/schemas/onchain_operations.schema.json +115 -39
- package/dist/schemas/onchain_operations_allocation.schema.json +23 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +23 -0
- package/dist/schemas/onchain_operations_contact.schema.json +23 -0
- package/dist/schemas/onchain_operations_demand.schema.json +23 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +46 -0
- package/dist/schemas/onchain_operations_guard.schema.json +26 -16
- package/dist/schemas/onchain_operations_machine.schema.json +89 -23
- package/dist/schemas/onchain_operations_order.schema.json +23 -0
- package/dist/schemas/onchain_operations_payment.schema.json +23 -0
- package/dist/schemas/onchain_operations_permission.schema.json +23 -0
- package/dist/schemas/onchain_operations_personal.schema.json +23 -0
- package/dist/schemas/onchain_operations_progress.schema.json +23 -0
- package/dist/schemas/onchain_operations_repository.schema.json +23 -0
- package/dist/schemas/onchain_operations_reward.schema.json +23 -0
- package/dist/schemas/onchain_operations_service.schema.json +23 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +23 -0
- package/dist/schemas/onchain_table_data.output.json +939 -69
- package/dist/schemas/onchain_table_data.schema.json +2 -2
- package/dist/schemas/project_operation.output.json +18 -0
- package/dist/schemas/project_operation.schema.json +42 -0
- package/dist/schemas/query_toolkit.schema.json +360 -368
- package/dist/schemas/schema_query.schema.json +6 -3
- package/dist/schemas/trust_score.output.json +327 -0
- package/dist/schemas/trust_score.schema.json +46 -0
- package/package.json +2 -2
|
@@ -852,7 +852,23 @@
|
|
|
852
852
|
"perm": {
|
|
853
853
|
"type": "array",
|
|
854
854
|
"items": {
|
|
855
|
-
"
|
|
855
|
+
"anyOf": [
|
|
856
|
+
{
|
|
857
|
+
"anyOf": [
|
|
858
|
+
{
|
|
859
|
+
"type": "integer",
|
|
860
|
+
"description": "Permission index type"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"type": "null"
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"description": "Permission index type"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"type": "number"
|
|
870
|
+
}
|
|
871
|
+
],
|
|
856
872
|
"description": "Permission index type"
|
|
857
873
|
},
|
|
858
874
|
"description": "Permission list obtained after user or Guard object verification"
|
|
@@ -928,20 +944,37 @@
|
|
|
928
944
|
"description": "Entity description"
|
|
929
945
|
},
|
|
930
946
|
"time": {
|
|
931
|
-
"type":
|
|
947
|
+
"type": [
|
|
948
|
+
"number",
|
|
949
|
+
"string"
|
|
950
|
+
],
|
|
932
951
|
"description": "On-chain registration time"
|
|
933
952
|
},
|
|
934
953
|
"referrer": {
|
|
935
|
-
"
|
|
936
|
-
|
|
937
|
-
|
|
954
|
+
"anyOf": [
|
|
955
|
+
{
|
|
956
|
+
"type": "string"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"type": "null"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"not": {}
|
|
963
|
+
}
|
|
938
964
|
],
|
|
939
965
|
"description": "Referrer"
|
|
940
966
|
},
|
|
941
967
|
"mark_object": {
|
|
942
|
-
"
|
|
943
|
-
|
|
944
|
-
|
|
968
|
+
"anyOf": [
|
|
969
|
+
{
|
|
970
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/0"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/1"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/2"
|
|
977
|
+
}
|
|
945
978
|
],
|
|
946
979
|
"description": "Your on-chain address mark object by entity ID"
|
|
947
980
|
},
|
|
@@ -993,8 +1026,6 @@
|
|
|
993
1026
|
"address",
|
|
994
1027
|
"description",
|
|
995
1028
|
"time",
|
|
996
|
-
"referrer",
|
|
997
|
-
"mark_object",
|
|
998
1029
|
"records"
|
|
999
1030
|
],
|
|
1000
1031
|
"additionalProperties": true,
|
|
@@ -1058,11 +1089,17 @@
|
|
|
1058
1089
|
"description": "Followed ID"
|
|
1059
1090
|
},
|
|
1060
1091
|
"pos": {
|
|
1061
|
-
"type":
|
|
1092
|
+
"type": [
|
|
1093
|
+
"number",
|
|
1094
|
+
"string"
|
|
1095
|
+
],
|
|
1062
1096
|
"description": "Current follow information position"
|
|
1063
1097
|
},
|
|
1064
1098
|
"count": {
|
|
1065
|
-
"type":
|
|
1099
|
+
"type": [
|
|
1100
|
+
"number",
|
|
1101
|
+
"string"
|
|
1102
|
+
],
|
|
1066
1103
|
"description": "Follower count. Number of entities who have been followed others. Use 'query_table' or 'query_table_item' to get 'EntityLinker' table items."
|
|
1067
1104
|
},
|
|
1068
1105
|
"votes": {
|
|
@@ -1087,7 +1124,10 @@
|
|
|
1087
1124
|
"description": "Whether affiliated"
|
|
1088
1125
|
},
|
|
1089
1126
|
"time": {
|
|
1090
|
-
"type":
|
|
1127
|
+
"type": [
|
|
1128
|
+
"number",
|
|
1129
|
+
"string"
|
|
1130
|
+
],
|
|
1091
1131
|
"description": "Time"
|
|
1092
1132
|
}
|
|
1093
1133
|
},
|
|
@@ -1192,21 +1232,30 @@
|
|
|
1192
1232
|
"description": "Reward amount"
|
|
1193
1233
|
},
|
|
1194
1234
|
"time": {
|
|
1195
|
-
"type":
|
|
1235
|
+
"type": [
|
|
1236
|
+
"number",
|
|
1237
|
+
"string"
|
|
1238
|
+
],
|
|
1196
1239
|
"description": "Reward time"
|
|
1197
1240
|
},
|
|
1198
1241
|
"store_from_id": {
|
|
1199
|
-
"
|
|
1200
|
-
|
|
1201
|
-
|
|
1242
|
+
"anyOf": [
|
|
1243
|
+
{
|
|
1244
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/0"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/1"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/2"
|
|
1251
|
+
}
|
|
1202
1252
|
],
|
|
1203
1253
|
"description": "Stored value from Guard table. This stores the value (address or number converted to address, including submitted values) from the Guard table at the specified index for Guard verification purposes."
|
|
1204
1254
|
}
|
|
1205
1255
|
},
|
|
1206
1256
|
"required": [
|
|
1207
1257
|
"amount",
|
|
1208
|
-
"time"
|
|
1209
|
-
"store_from_id"
|
|
1258
|
+
"time"
|
|
1210
1259
|
],
|
|
1211
1260
|
"additionalProperties": false
|
|
1212
1261
|
},
|
|
@@ -1285,20 +1334,40 @@
|
|
|
1285
1334
|
"description": "Recommendation letter"
|
|
1286
1335
|
},
|
|
1287
1336
|
"service": {
|
|
1288
|
-
"
|
|
1289
|
-
|
|
1290
|
-
|
|
1337
|
+
"anyOf": [
|
|
1338
|
+
{
|
|
1339
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/0"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/1"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/2"
|
|
1346
|
+
}
|
|
1291
1347
|
],
|
|
1292
1348
|
"description": "Recommended service object ID"
|
|
1293
1349
|
},
|
|
1294
1350
|
"update_time": {
|
|
1295
|
-
"type":
|
|
1351
|
+
"type": [
|
|
1352
|
+
"number",
|
|
1353
|
+
"string"
|
|
1354
|
+
],
|
|
1296
1355
|
"description": "Last update time"
|
|
1297
1356
|
},
|
|
1298
1357
|
"acceptance_score": {
|
|
1299
|
-
"
|
|
1300
|
-
|
|
1301
|
-
|
|
1358
|
+
"anyOf": [
|
|
1359
|
+
{
|
|
1360
|
+
"type": "number"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"type": "string"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"type": "null"
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"not": {}
|
|
1370
|
+
}
|
|
1302
1371
|
],
|
|
1303
1372
|
"description": "Demand object feedback score"
|
|
1304
1373
|
},
|
|
@@ -1307,7 +1376,10 @@
|
|
|
1307
1376
|
"description": "Demand object feedback information"
|
|
1308
1377
|
},
|
|
1309
1378
|
"feedback_time": {
|
|
1310
|
-
"type":
|
|
1379
|
+
"type": [
|
|
1380
|
+
"number",
|
|
1381
|
+
"string"
|
|
1382
|
+
],
|
|
1311
1383
|
"description": "Demand object feedback time"
|
|
1312
1384
|
}
|
|
1313
1385
|
},
|
|
@@ -1315,9 +1387,7 @@
|
|
|
1315
1387
|
"object",
|
|
1316
1388
|
"address",
|
|
1317
1389
|
"recommend",
|
|
1318
|
-
"service",
|
|
1319
1390
|
"update_time",
|
|
1320
|
-
"acceptance_score",
|
|
1321
1391
|
"feedback",
|
|
1322
1392
|
"feedback_time"
|
|
1323
1393
|
],
|
|
@@ -1395,9 +1465,16 @@
|
|
|
1395
1465
|
"description": "Operator ID"
|
|
1396
1466
|
},
|
|
1397
1467
|
"external_guard": {
|
|
1398
|
-
"
|
|
1399
|
-
|
|
1400
|
-
|
|
1468
|
+
"anyOf": [
|
|
1469
|
+
{
|
|
1470
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/0"
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/1"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/2"
|
|
1477
|
+
}
|
|
1401
1478
|
],
|
|
1402
1479
|
"description": "Guard object ID verified during operation (none if operated through Permission)"
|
|
1403
1480
|
},
|
|
@@ -1409,13 +1486,23 @@
|
|
|
1409
1486
|
"description": "Payment amount"
|
|
1410
1487
|
},
|
|
1411
1488
|
"time": {
|
|
1412
|
-
"type":
|
|
1489
|
+
"type": [
|
|
1490
|
+
"number",
|
|
1491
|
+
"string"
|
|
1492
|
+
],
|
|
1413
1493
|
"description": "Payment time (Unix timestamp)"
|
|
1414
1494
|
},
|
|
1415
1495
|
"store_from_id": {
|
|
1416
|
-
"
|
|
1417
|
-
|
|
1418
|
-
|
|
1496
|
+
"anyOf": [
|
|
1497
|
+
{
|
|
1498
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/0"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/1"
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/2"
|
|
1505
|
+
}
|
|
1419
1506
|
],
|
|
1420
1507
|
"description": "Stored value from Guard table. This stores the value (address or number converted to address, including submitted values) from the Guard table at the specified index for Guard verification purposes."
|
|
1421
1508
|
}
|
|
@@ -1425,10 +1512,8 @@
|
|
|
1425
1512
|
"payment",
|
|
1426
1513
|
"op",
|
|
1427
1514
|
"signer",
|
|
1428
|
-
"external_guard",
|
|
1429
1515
|
"amount",
|
|
1430
|
-
"time"
|
|
1431
|
-
"store_from_id"
|
|
1516
|
+
"time"
|
|
1432
1517
|
],
|
|
1433
1518
|
"additionalProperties": true,
|
|
1434
1519
|
"description": "Payment record in Treasury object"
|
|
@@ -1500,9 +1585,10 @@
|
|
|
1500
1585
|
"description": "Previous node name"
|
|
1501
1586
|
},
|
|
1502
1587
|
"threshold": {
|
|
1503
|
-
"type":
|
|
1504
|
-
|
|
1505
|
-
|
|
1588
|
+
"type": [
|
|
1589
|
+
"number",
|
|
1590
|
+
"string"
|
|
1591
|
+
],
|
|
1506
1592
|
"description": "Threshold to trigger node advancement. If total Forward weight is greater than or equal to threshold, node advancement is triggered."
|
|
1507
1593
|
},
|
|
1508
1594
|
"forwards": {
|
|
@@ -1515,38 +1601,80 @@
|
|
|
1515
1601
|
"description": "Forward name"
|
|
1516
1602
|
},
|
|
1517
1603
|
"namedOperator": {
|
|
1518
|
-
"
|
|
1604
|
+
"anyOf": [
|
|
1605
|
+
{
|
|
1606
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/0"
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/1"
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/3/properties/result/anyOf/0/properties/referrer/anyOf/2"
|
|
1613
|
+
}
|
|
1614
|
+
],
|
|
1519
1615
|
"description": "Forward operation permission 1: Namespace (one of the two must be specified); recommended if Progress object operators are different (e.g., different delivery personnel for different orders)."
|
|
1520
1616
|
},
|
|
1521
1617
|
"permissionIndex": {
|
|
1522
|
-
"
|
|
1618
|
+
"anyOf": [
|
|
1619
|
+
{
|
|
1620
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/6/properties/result/anyOf/0/properties/acceptance_score/anyOf/0"
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/6/properties/result/anyOf/0/properties/acceptance_score/anyOf/1"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/6/properties/result/anyOf/0/properties/acceptance_score/anyOf/2"
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/6/properties/result/anyOf/0/properties/acceptance_score/anyOf/3"
|
|
1630
|
+
}
|
|
1631
|
+
],
|
|
1523
1632
|
"description": "Forward operation permission 2: Permission index (one of the two must be specified); recommended if all Progress object operators are the same (e.g., same reward reviewers for all orders)."
|
|
1524
1633
|
},
|
|
1525
1634
|
"weight": {
|
|
1526
|
-
"type":
|
|
1527
|
-
|
|
1528
|
-
|
|
1635
|
+
"type": [
|
|
1636
|
+
"number",
|
|
1637
|
+
"string"
|
|
1638
|
+
],
|
|
1529
1639
|
"description": "Forward weight"
|
|
1530
1640
|
},
|
|
1531
1641
|
"guard": {
|
|
1532
|
-
"
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
"
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1642
|
+
"anyOf": [
|
|
1643
|
+
{
|
|
1644
|
+
"type": "object",
|
|
1645
|
+
"properties": {
|
|
1646
|
+
"guard": {
|
|
1647
|
+
"type": "string",
|
|
1648
|
+
"description": "Guard object ID"
|
|
1649
|
+
},
|
|
1650
|
+
"retained_submission": {
|
|
1651
|
+
"anyOf": [
|
|
1652
|
+
{
|
|
1653
|
+
"type": "array",
|
|
1654
|
+
"items": {
|
|
1655
|
+
"type": [
|
|
1656
|
+
"number",
|
|
1657
|
+
"string"
|
|
1658
|
+
]
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"type": "null"
|
|
1663
|
+
}
|
|
1664
|
+
],
|
|
1665
|
+
"description": "Data submitted by user during Guard object verification"
|
|
1666
|
+
}
|
|
1542
1667
|
},
|
|
1543
|
-
"
|
|
1668
|
+
"required": [
|
|
1669
|
+
"guard"
|
|
1670
|
+
],
|
|
1671
|
+
"additionalProperties": false,
|
|
1672
|
+
"description": "Record of Guard object in MachineForwardGuard object"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"type": "null"
|
|
1544
1676
|
}
|
|
1545
|
-
},
|
|
1546
|
-
"required": [
|
|
1547
|
-
"guard"
|
|
1548
1677
|
],
|
|
1549
|
-
"additionalProperties": false,
|
|
1550
1678
|
"description": "Guard object ID, if defined, Guard verification must also pass to complete Forward (e.g., completed promised supply chain sub-order)."
|
|
1551
1679
|
}
|
|
1552
1680
|
},
|
|
@@ -1633,7 +1761,10 @@
|
|
|
1633
1761
|
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
|
|
1634
1762
|
},
|
|
1635
1763
|
"index": {
|
|
1636
|
-
"type":
|
|
1764
|
+
"type": [
|
|
1765
|
+
"number",
|
|
1766
|
+
"string"
|
|
1767
|
+
],
|
|
1637
1768
|
"description": "Progress record index (starting from 0)"
|
|
1638
1769
|
},
|
|
1639
1770
|
"node": {
|
|
@@ -1722,7 +1853,10 @@
|
|
|
1722
1853
|
"description": "Whether completed"
|
|
1723
1854
|
},
|
|
1724
1855
|
"time": {
|
|
1725
|
-
"type":
|
|
1856
|
+
"type": [
|
|
1857
|
+
"number",
|
|
1858
|
+
"string"
|
|
1859
|
+
],
|
|
1726
1860
|
"description": "Session creation time"
|
|
1727
1861
|
}
|
|
1728
1862
|
},
|
|
@@ -1740,11 +1874,17 @@
|
|
|
1740
1874
|
"description": "Operation list in Progress session"
|
|
1741
1875
|
},
|
|
1742
1876
|
"weights": {
|
|
1743
|
-
"type":
|
|
1877
|
+
"type": [
|
|
1878
|
+
"number",
|
|
1879
|
+
"string"
|
|
1880
|
+
],
|
|
1744
1881
|
"description": "Total operation weight"
|
|
1745
1882
|
},
|
|
1746
1883
|
"threshold": {
|
|
1747
|
-
"type":
|
|
1884
|
+
"type": [
|
|
1885
|
+
"number",
|
|
1886
|
+
"string"
|
|
1887
|
+
],
|
|
1748
1888
|
"description": "Operation threshold. When total operation weight exceeds threshold, session is considered completed and Progress moves from current node to next node."
|
|
1749
1889
|
}
|
|
1750
1890
|
},
|
|
@@ -1760,7 +1900,20 @@
|
|
|
1760
1900
|
"description": "Progress session list"
|
|
1761
1901
|
},
|
|
1762
1902
|
"time": {
|
|
1763
|
-
"
|
|
1903
|
+
"anyOf": [
|
|
1904
|
+
{
|
|
1905
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/6/properties/result/anyOf/0/properties/acceptance_score/anyOf/0"
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/6/properties/result/anyOf/0/properties/acceptance_score/anyOf/1"
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/6/properties/result/anyOf/0/properties/acceptance_score/anyOf/2"
|
|
1912
|
+
},
|
|
1913
|
+
{
|
|
1914
|
+
"$ref": "#/definitions/onchain_table_data/properties/result/anyOf/6/properties/result/anyOf/0/properties/acceptance_score/anyOf/3"
|
|
1915
|
+
}
|
|
1916
|
+
],
|
|
1764
1917
|
"description": "Progress record completion time (Unix timestamp)"
|
|
1765
1918
|
}
|
|
1766
1919
|
},
|
|
@@ -1769,8 +1922,7 @@
|
|
|
1769
1922
|
"index",
|
|
1770
1923
|
"node",
|
|
1771
1924
|
"next_node",
|
|
1772
|
-
"session"
|
|
1773
|
-
"time"
|
|
1925
|
+
"session"
|
|
1774
1926
|
],
|
|
1775
1927
|
"additionalProperties": true,
|
|
1776
1928
|
"description": "Completed progress record in Progress object"
|
|
@@ -1927,6 +2079,724 @@
|
|
|
1927
2079
|
]
|
|
1928
2080
|
},
|
|
1929
2081
|
"semantic": {
|
|
2082
|
+
"type": "object",
|
|
2083
|
+
"properties": {
|
|
2084
|
+
"intent": {
|
|
2085
|
+
"type": "string",
|
|
2086
|
+
"description": "Inferred user intent / operation goal. Constraint: snake_case string. Relation: derived from operation_type + data signals. Example: 'publish_service'"
|
|
2087
|
+
},
|
|
2088
|
+
"status": {
|
|
2089
|
+
"type": "string",
|
|
2090
|
+
"enum": [
|
|
2091
|
+
"success",
|
|
2092
|
+
"partial",
|
|
2093
|
+
"failed",
|
|
2094
|
+
"pending_input"
|
|
2095
|
+
],
|
|
2096
|
+
"description": "Business-level status (not raw tx status). 'pending_input' = needs Guard submission. Example: 'success'"
|
|
2097
|
+
},
|
|
2098
|
+
"summary": {
|
|
2099
|
+
"type": "string",
|
|
2100
|
+
"description": "One-sentence human-readable summary of what happened. AI should read this first. Example: 'Successfully published Service my-shop with Machine bound'"
|
|
2101
|
+
},
|
|
2102
|
+
"created": {
|
|
2103
|
+
"type": "array",
|
|
2104
|
+
"items": {
|
|
2105
|
+
"type": "object",
|
|
2106
|
+
"properties": {
|
|
2107
|
+
"id": {
|
|
2108
|
+
"type": "string",
|
|
2109
|
+
"description": "Object ID (64-hex with 0x prefix). Identifies the on-chain object. Example: '0xa1d4...'"
|
|
2110
|
+
},
|
|
2111
|
+
"name": {
|
|
2112
|
+
"type": [
|
|
2113
|
+
"string",
|
|
2114
|
+
"null"
|
|
2115
|
+
],
|
|
2116
|
+
"description": "Local mark name if assigned, else null. Relation: resolved via local_mark_operation. Example: 'my-shop' or null"
|
|
2117
|
+
},
|
|
2118
|
+
"role": {
|
|
2119
|
+
"type": "string",
|
|
2120
|
+
"enum": [
|
|
2121
|
+
"Permission",
|
|
2122
|
+
"Guard",
|
|
2123
|
+
"Machine",
|
|
2124
|
+
"Progress",
|
|
2125
|
+
"Service",
|
|
2126
|
+
"Order",
|
|
2127
|
+
"Allocation",
|
|
2128
|
+
"Arbitration",
|
|
2129
|
+
"ArbCase",
|
|
2130
|
+
"Messenger",
|
|
2131
|
+
"Contact",
|
|
2132
|
+
"Demand",
|
|
2133
|
+
"Reward",
|
|
2134
|
+
"Personal",
|
|
2135
|
+
"Repository",
|
|
2136
|
+
"Treasury",
|
|
2137
|
+
"Discount",
|
|
2138
|
+
"Other"
|
|
2139
|
+
],
|
|
2140
|
+
"description": "Business role of the object in the dependency graph. Constraint: enum of 18 values. Relation: derived from objectType last segment; drives Plan/Verify Loop positioning. Example: 'Service'"
|
|
2141
|
+
},
|
|
2142
|
+
"relation": {
|
|
2143
|
+
"type": "object",
|
|
2144
|
+
"properties": {
|
|
2145
|
+
"parent": {
|
|
2146
|
+
"type": [
|
|
2147
|
+
"string",
|
|
2148
|
+
"null"
|
|
2149
|
+
],
|
|
2150
|
+
"description": "Parent object ID, if this object belongs to another (e.g. Machine belongs to Service). Example: '0x123...' or null"
|
|
2151
|
+
},
|
|
2152
|
+
"relation_type": {
|
|
2153
|
+
"type": "string",
|
|
2154
|
+
"enum": [
|
|
2155
|
+
"machine_of",
|
|
2156
|
+
"guard_of",
|
|
2157
|
+
"allocator_of",
|
|
2158
|
+
"permission_of",
|
|
2159
|
+
"progress_of",
|
|
2160
|
+
"allocation_of",
|
|
2161
|
+
"arb_of",
|
|
2162
|
+
"other"
|
|
2163
|
+
],
|
|
2164
|
+
"description": "How this object relates to its parent. Example: 'machine_of'"
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2167
|
+
"additionalProperties": false,
|
|
2168
|
+
"description": "Relationship to another object in the dependency graph"
|
|
2169
|
+
},
|
|
2170
|
+
"immutable": {
|
|
2171
|
+
"type": "boolean",
|
|
2172
|
+
"description": "Whether the object has entered an immutable state (e.g. Service published). Constraint: true after publish. Example: true"
|
|
2173
|
+
}
|
|
2174
|
+
},
|
|
2175
|
+
"required": [
|
|
2176
|
+
"id",
|
|
2177
|
+
"role"
|
|
2178
|
+
],
|
|
2179
|
+
"additionalProperties": false,
|
|
2180
|
+
"description": "An object tagged with its business role and relationship within the object dependency graph"
|
|
2181
|
+
},
|
|
2182
|
+
"description": "Objects newly created in this operation, tagged with roles"
|
|
2183
|
+
},
|
|
2184
|
+
"modified": {
|
|
2185
|
+
"type": "array",
|
|
2186
|
+
"items": {
|
|
2187
|
+
"$ref": "#/definitions/onchain_table_data/properties/semantic/properties/created/items"
|
|
2188
|
+
},
|
|
2189
|
+
"description": "Objects mutated in this operation, tagged with roles"
|
|
2190
|
+
},
|
|
2191
|
+
"released": {
|
|
2192
|
+
"type": "array",
|
|
2193
|
+
"items": {
|
|
2194
|
+
"type": "object",
|
|
2195
|
+
"properties": {
|
|
2196
|
+
"amount": {
|
|
2197
|
+
"type": "string",
|
|
2198
|
+
"description": "Amount change as stringified integer (smallest unit). Negative=spend, positive=receive. Example: '-10000000000'"
|
|
2199
|
+
},
|
|
2200
|
+
"coinType": {
|
|
2201
|
+
"type": "string",
|
|
2202
|
+
"description": "Coin type tag (format: {address}::{module}::{struct}). Example: '0x2::wow::WOW'"
|
|
2203
|
+
},
|
|
2204
|
+
"role": {
|
|
2205
|
+
"type": "string",
|
|
2206
|
+
"enum": [
|
|
2207
|
+
"payment",
|
|
2208
|
+
"refund",
|
|
2209
|
+
"change",
|
|
2210
|
+
"compensation",
|
|
2211
|
+
"reward",
|
|
2212
|
+
"gas",
|
|
2213
|
+
"deposit",
|
|
2214
|
+
"release",
|
|
2215
|
+
"other"
|
|
2216
|
+
],
|
|
2217
|
+
"description": "Business role of this fund movement. Constraint: enum of 9 values. Relation: derived from operation context. Example: 'payment'"
|
|
2218
|
+
},
|
|
2219
|
+
"from": {
|
|
2220
|
+
"type": [
|
|
2221
|
+
"string",
|
|
2222
|
+
"null"
|
|
2223
|
+
],
|
|
2224
|
+
"description": "Sender address if known. Example: '0xabc...' or null"
|
|
2225
|
+
},
|
|
2226
|
+
"to": {
|
|
2227
|
+
"type": [
|
|
2228
|
+
"string",
|
|
2229
|
+
"null"
|
|
2230
|
+
],
|
|
2231
|
+
"description": "Recipient address if known. Example: '0xdef...' or null"
|
|
2232
|
+
}
|
|
2233
|
+
},
|
|
2234
|
+
"required": [
|
|
2235
|
+
"amount",
|
|
2236
|
+
"coinType",
|
|
2237
|
+
"role"
|
|
2238
|
+
],
|
|
2239
|
+
"additionalProperties": false,
|
|
2240
|
+
"description": "A fund movement tagged with its business role"
|
|
2241
|
+
},
|
|
2242
|
+
"description": "Fund movements in this operation, tagged with roles"
|
|
2243
|
+
},
|
|
2244
|
+
"events": {
|
|
2245
|
+
"type": "array",
|
|
2246
|
+
"items": {
|
|
2247
|
+
"type": "object",
|
|
2248
|
+
"properties": {
|
|
2249
|
+
"event_type": {
|
|
2250
|
+
"type": "string",
|
|
2251
|
+
"description": "Raw on-chain event type tag. Example: '0x2::service::ServicePublishedEvent'"
|
|
2252
|
+
},
|
|
2253
|
+
"business_meaning": {
|
|
2254
|
+
"type": "string",
|
|
2255
|
+
"description": "Human-readable business meaning. Example: 'Service has been published and is now immutable'"
|
|
2256
|
+
},
|
|
2257
|
+
"category": {
|
|
2258
|
+
"type": "string",
|
|
2259
|
+
"enum": [
|
|
2260
|
+
"lifecycle",
|
|
2261
|
+
"state_change",
|
|
2262
|
+
"fund_flow",
|
|
2263
|
+
"permission",
|
|
2264
|
+
"guard",
|
|
2265
|
+
"other"
|
|
2266
|
+
],
|
|
2267
|
+
"description": "Business category. Constraint: enum of 6 values. Example: 'lifecycle'"
|
|
2268
|
+
},
|
|
2269
|
+
"related_object": {
|
|
2270
|
+
"type": "string",
|
|
2271
|
+
"description": "Object ID the event relates to, if extractable. Example: '0x123...'"
|
|
2272
|
+
},
|
|
2273
|
+
"side_effect": {
|
|
2274
|
+
"type": "string",
|
|
2275
|
+
"description": "Side effect description for AI. Example: 'Customers can now place orders against this Service'"
|
|
2276
|
+
}
|
|
2277
|
+
},
|
|
2278
|
+
"required": [
|
|
2279
|
+
"event_type",
|
|
2280
|
+
"business_meaning",
|
|
2281
|
+
"category"
|
|
2282
|
+
],
|
|
2283
|
+
"additionalProperties": false,
|
|
2284
|
+
"description": "An on-chain event annotated with business semantics"
|
|
2285
|
+
},
|
|
2286
|
+
"description": "On-chain events annotated with business semantics (S-8)"
|
|
2287
|
+
},
|
|
2288
|
+
"next_actions": {
|
|
2289
|
+
"type": "array",
|
|
2290
|
+
"items": {
|
|
2291
|
+
"type": "object",
|
|
2292
|
+
"properties": {
|
|
2293
|
+
"action": {
|
|
2294
|
+
"type": "string",
|
|
2295
|
+
"description": "Recommended next action. Example: 'add sales products'"
|
|
2296
|
+
},
|
|
2297
|
+
"reason": {
|
|
2298
|
+
"type": "string",
|
|
2299
|
+
"description": "Why this action is recommended. Example: 'Service has no products; customers cannot order'"
|
|
2300
|
+
},
|
|
2301
|
+
"tool": {
|
|
2302
|
+
"type": "string",
|
|
2303
|
+
"description": "MCP tool to use, if applicable. Example: 'onchain_operations'"
|
|
2304
|
+
},
|
|
2305
|
+
"prerequisite": {
|
|
2306
|
+
"type": "string",
|
|
2307
|
+
"description": "Condition that must hold before this action. Example: 'Service must be created first'"
|
|
2308
|
+
},
|
|
2309
|
+
"priority": {
|
|
2310
|
+
"type": "string",
|
|
2311
|
+
"enum": [
|
|
2312
|
+
"required",
|
|
2313
|
+
"recommended",
|
|
2314
|
+
"optional"
|
|
2315
|
+
],
|
|
2316
|
+
"description": "Priority. Constraint: enum. Example: 'required'"
|
|
2317
|
+
}
|
|
2318
|
+
},
|
|
2319
|
+
"required": [
|
|
2320
|
+
"action",
|
|
2321
|
+
"reason",
|
|
2322
|
+
"priority"
|
|
2323
|
+
],
|
|
2324
|
+
"additionalProperties": false,
|
|
2325
|
+
"description": "A recommended next action with priority and rationale"
|
|
2326
|
+
},
|
|
2327
|
+
"description": "Recommended next actions to drive the workflow forward"
|
|
2328
|
+
},
|
|
2329
|
+
"warnings": {
|
|
2330
|
+
"type": "array",
|
|
2331
|
+
"items": {
|
|
2332
|
+
"type": "string"
|
|
2333
|
+
},
|
|
2334
|
+
"description": "Business-level warnings. Example: 'order_allocators not configured; order funds cannot be distributed'"
|
|
2335
|
+
},
|
|
2336
|
+
"experience": {
|
|
2337
|
+
"type": "object",
|
|
2338
|
+
"properties": {
|
|
2339
|
+
"advice": {
|
|
2340
|
+
"type": "string",
|
|
2341
|
+
"description": "Advice from past experience. Example: 'Last time you forgot to set buy_guard; add it before publishing'"
|
|
2342
|
+
},
|
|
2343
|
+
"avoid": {
|
|
2344
|
+
"type": "array",
|
|
2345
|
+
"items": {
|
|
2346
|
+
"type": "string"
|
|
2347
|
+
},
|
|
2348
|
+
"description": "Pitfalls to avoid based on history. Example: ['Guard rejection on delivery_proof']"
|
|
2349
|
+
},
|
|
2350
|
+
"relevance": {
|
|
2351
|
+
"type": "number",
|
|
2352
|
+
"minimum": 0,
|
|
2353
|
+
"maximum": 1,
|
|
2354
|
+
"description": "Relevance score 0-1 of the matched experience. Example: 0.85"
|
|
2355
|
+
},
|
|
2356
|
+
"matched_scenario": {
|
|
2357
|
+
"type": "string",
|
|
2358
|
+
"description": "Matched historical scenario. Example: 'publish_service_freelance'"
|
|
2359
|
+
}
|
|
2360
|
+
},
|
|
2361
|
+
"additionalProperties": false,
|
|
2362
|
+
"description": "Experience layer feedback from past operations (Phase 2 议题 2)"
|
|
2363
|
+
},
|
|
2364
|
+
"service_status": {
|
|
2365
|
+
"type": "object",
|
|
2366
|
+
"properties": {
|
|
2367
|
+
"active": {
|
|
2368
|
+
"type": "array",
|
|
2369
|
+
"items": {
|
|
2370
|
+
"type": "string"
|
|
2371
|
+
},
|
|
2372
|
+
"description": "Phase 2 services currently active (enabled). Example: ['confirm_gate','project_service','experience_layer']"
|
|
2373
|
+
},
|
|
2374
|
+
"inactive": {
|
|
2375
|
+
"type": "array",
|
|
2376
|
+
"items": {
|
|
2377
|
+
"type": "string"
|
|
2378
|
+
},
|
|
2379
|
+
"description": "Phase 2 services currently inactive (can be toggled via config_operation). Example: ['harness','graph_persist']"
|
|
2380
|
+
}
|
|
2381
|
+
},
|
|
2382
|
+
"required": [
|
|
2383
|
+
"active"
|
|
2384
|
+
],
|
|
2385
|
+
"additionalProperties": false,
|
|
2386
|
+
"description": "Phase 2 runtime service status (populated when semantic_rich is enabled). Lets AI see active services in each response."
|
|
2387
|
+
},
|
|
2388
|
+
"customer_advice": {
|
|
2389
|
+
"type": "object",
|
|
2390
|
+
"properties": {
|
|
2391
|
+
"risk_score": {
|
|
2392
|
+
"type": "number",
|
|
2393
|
+
"minimum": 0,
|
|
2394
|
+
"maximum": 100,
|
|
2395
|
+
"description": "Composite risk score 0-100 (higher = safer). Relation: from risk-assessment.ts 4-dimension scoring. Example: 75"
|
|
2396
|
+
},
|
|
2397
|
+
"risk_level": {
|
|
2398
|
+
"type": "string",
|
|
2399
|
+
"enum": [
|
|
2400
|
+
"low",
|
|
2401
|
+
"medium_low",
|
|
2402
|
+
"medium_high",
|
|
2403
|
+
"high"
|
|
2404
|
+
],
|
|
2405
|
+
"description": "Risk level bucket. 'high' = strongly discourage purchase. Example: 'medium_high'"
|
|
2406
|
+
},
|
|
2407
|
+
"recommendations": {
|
|
2408
|
+
"type": "array",
|
|
2409
|
+
"items": {
|
|
2410
|
+
"type": "string"
|
|
2411
|
+
},
|
|
2412
|
+
"description": "Actionable recommendations for the buyer. Example: ['要求商家配置仲裁','通过 Messenger 协商退款条款']"
|
|
2413
|
+
},
|
|
2414
|
+
"reminders": {
|
|
2415
|
+
"type": "array",
|
|
2416
|
+
"items": {
|
|
2417
|
+
"type": "object",
|
|
2418
|
+
"properties": {
|
|
2419
|
+
"id": {
|
|
2420
|
+
"type": "string",
|
|
2421
|
+
"description": "Reminder rule id. Example: 'high_risk_score'"
|
|
2422
|
+
},
|
|
2423
|
+
"stage": {
|
|
2424
|
+
"type": "string",
|
|
2425
|
+
"enum": [
|
|
2426
|
+
"browse",
|
|
2427
|
+
"evaluate",
|
|
2428
|
+
"preorder",
|
|
2429
|
+
"in_progress",
|
|
2430
|
+
"complete",
|
|
2431
|
+
"after_sale"
|
|
2432
|
+
],
|
|
2433
|
+
"description": "Order lifecycle stage when this reminder fires. Example: 'evaluate'"
|
|
2434
|
+
},
|
|
2435
|
+
"priority": {
|
|
2436
|
+
"type": "string",
|
|
2437
|
+
"enum": [
|
|
2438
|
+
"required",
|
|
2439
|
+
"recommended",
|
|
2440
|
+
"info",
|
|
2441
|
+
"reminder"
|
|
2442
|
+
],
|
|
2443
|
+
"description": "Priority. 'required' = blocks purchase; 'recommended' = strong caution. Example: 'required'"
|
|
2444
|
+
},
|
|
2445
|
+
"message": {
|
|
2446
|
+
"type": "string",
|
|
2447
|
+
"description": "Human-readable reminder message. Example: '🔴 综合风险分 25/100,强烈建议不购买'"
|
|
2448
|
+
},
|
|
2449
|
+
"action": {
|
|
2450
|
+
"type": "string",
|
|
2451
|
+
"description": "Suggested next action. Example: 'require merchant to bind Arbitration before ordering'"
|
|
2452
|
+
}
|
|
2453
|
+
},
|
|
2454
|
+
"required": [
|
|
2455
|
+
"id",
|
|
2456
|
+
"stage",
|
|
2457
|
+
"priority",
|
|
2458
|
+
"message"
|
|
2459
|
+
],
|
|
2460
|
+
"additionalProperties": false,
|
|
2461
|
+
"description": "A buyer-side reminder triggered at a specific order lifecycle stage (Phase 3 C-3)."
|
|
2462
|
+
},
|
|
2463
|
+
"description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'🔴 模糊 Guard 必须人工审查'}]"
|
|
2464
|
+
},
|
|
2465
|
+
"preference_match": {
|
|
2466
|
+
"type": "object",
|
|
2467
|
+
"properties": {
|
|
2468
|
+
"score": {
|
|
2469
|
+
"type": "number",
|
|
2470
|
+
"minimum": 0,
|
|
2471
|
+
"maximum": 100,
|
|
2472
|
+
"description": "Match score 0-100 (higher = better fit). Example: 75"
|
|
2473
|
+
},
|
|
2474
|
+
"matches": {
|
|
2475
|
+
"type": "array",
|
|
2476
|
+
"items": {
|
|
2477
|
+
"type": "string"
|
|
2478
|
+
},
|
|
2479
|
+
"description": "Aspects that match user preferences. Example: ['价格低于均价 10%','有仲裁']"
|
|
2480
|
+
},
|
|
2481
|
+
"mismatches": {
|
|
2482
|
+
"type": "array",
|
|
2483
|
+
"items": {
|
|
2484
|
+
"type": "string"
|
|
2485
|
+
},
|
|
2486
|
+
"description": "Aspects that mismatch user preferences. Example: ['交付周期超出期望']"
|
|
2487
|
+
}
|
|
2488
|
+
},
|
|
2489
|
+
"required": [
|
|
2490
|
+
"score",
|
|
2491
|
+
"matches",
|
|
2492
|
+
"mismatches"
|
|
2493
|
+
],
|
|
2494
|
+
"additionalProperties": false,
|
|
2495
|
+
"description": "Service-to-preference match (populated when user preferences exist). Example: {score:75, matches:[...], mismatches:[...]}"
|
|
2496
|
+
}
|
|
2497
|
+
},
|
|
2498
|
+
"required": [
|
|
2499
|
+
"recommendations",
|
|
2500
|
+
"reminders"
|
|
2501
|
+
],
|
|
2502
|
+
"additionalProperties": false,
|
|
2503
|
+
"description": "Buyer-side advice (Phase 3 C-3.3). Populated when customer_intelligence service is enabled AND operation is order/query on a Service. Contains risk_score, recommendations, reminders, and preference_match."
|
|
2504
|
+
},
|
|
2505
|
+
"evolution_context": {
|
|
2506
|
+
"type": "object",
|
|
2507
|
+
"properties": {
|
|
2508
|
+
"industry_signal": {
|
|
2509
|
+
"type": "string",
|
|
2510
|
+
"description": "Industry evolution signal summary. Example: '行业健康度 82/100(healthy);累积 25 个行业信号'"
|
|
2511
|
+
},
|
|
2512
|
+
"evolution_advice": {
|
|
2513
|
+
"type": "string",
|
|
2514
|
+
"description": "Evolution advice for the current operation. Example: '建议强制配置仲裁 + 赔偿金 + 交付 Guard'"
|
|
2515
|
+
},
|
|
2516
|
+
"confidence": {
|
|
2517
|
+
"type": "number",
|
|
2518
|
+
"minimum": 0,
|
|
2519
|
+
"maximum": 1,
|
|
2520
|
+
"description": "Confidence of the evolution context 0-1. <0.5 means no data yet. Example: 0.75"
|
|
2521
|
+
},
|
|
2522
|
+
"health_score": {
|
|
2523
|
+
"type": "number",
|
|
2524
|
+
"minimum": 0,
|
|
2525
|
+
"maximum": 100,
|
|
2526
|
+
"description": "Industry health score 0-100 if available. Example: 82"
|
|
2527
|
+
},
|
|
2528
|
+
"pending_suggestions": {
|
|
2529
|
+
"type": "integer",
|
|
2530
|
+
"minimum": 0,
|
|
2531
|
+
"description": "Count of pending industry update suggestions (filtered by role if role is set). Example: 3"
|
|
2532
|
+
},
|
|
2533
|
+
"intent": {
|
|
2534
|
+
"type": "string",
|
|
2535
|
+
"enum": [
|
|
2536
|
+
"default",
|
|
2537
|
+
"growth",
|
|
2538
|
+
"retention",
|
|
2539
|
+
"compliance",
|
|
2540
|
+
"efficiency",
|
|
2541
|
+
"trust_building",
|
|
2542
|
+
"custom"
|
|
2543
|
+
],
|
|
2544
|
+
"description": "Phase 4 P4-6.C: Current business intent driving the scoring model. Absent = 'default'. Example: 'growth'"
|
|
2545
|
+
},
|
|
2546
|
+
"role_advice": {
|
|
2547
|
+
"type": "array",
|
|
2548
|
+
"items": {
|
|
2549
|
+
"type": "string"
|
|
2550
|
+
},
|
|
2551
|
+
"description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['强化忠诚度飞轮','优化首单转化']"
|
|
2552
|
+
},
|
|
2553
|
+
"role": {
|
|
2554
|
+
"type": "string",
|
|
2555
|
+
"enum": [
|
|
2556
|
+
"user",
|
|
2557
|
+
"merchant",
|
|
2558
|
+
"arbitrator"
|
|
2559
|
+
],
|
|
2560
|
+
"description": "Phase 4 P4-6.C: Role used for advice routing. Example: 'merchant'"
|
|
2561
|
+
}
|
|
2562
|
+
},
|
|
2563
|
+
"required": [
|
|
2564
|
+
"confidence"
|
|
2565
|
+
],
|
|
2566
|
+
"additionalProperties": false,
|
|
2567
|
+
"description": "Phase 4 industry evolution context (populated when industry_evolution service is enabled). Provides AI with industry health signals and evolution advice."
|
|
2568
|
+
},
|
|
2569
|
+
"guard_advice": {
|
|
2570
|
+
"type": "object",
|
|
2571
|
+
"properties": {
|
|
2572
|
+
"current_round": {
|
|
2573
|
+
"type": "string",
|
|
2574
|
+
"enum": [
|
|
2575
|
+
"R1",
|
|
2576
|
+
"R2",
|
|
2577
|
+
"R3",
|
|
2578
|
+
"R4",
|
|
2579
|
+
"R5",
|
|
2580
|
+
"R6",
|
|
2581
|
+
"R7",
|
|
2582
|
+
"R8",
|
|
2583
|
+
"R9",
|
|
2584
|
+
"R10"
|
|
2585
|
+
],
|
|
2586
|
+
"description": "Current R1-R10 dialogue round. R1=intent, R2=table, R3=tree, R4=rely, R5=binding, R6=review, R7=CREATE, R8=test, R9=bind, R10=verify. Example: 'R3'"
|
|
2587
|
+
},
|
|
2588
|
+
"puzzle_status": {
|
|
2589
|
+
"type": "object",
|
|
2590
|
+
"properties": {
|
|
2591
|
+
"intent": {
|
|
2592
|
+
"type": "boolean",
|
|
2593
|
+
"description": "Intent dimension complete (action + rule + failure conditions)"
|
|
2594
|
+
},
|
|
2595
|
+
"binding": {
|
|
2596
|
+
"type": "boolean",
|
|
2597
|
+
"description": "Binding dimension complete (host object + field + circular ref)"
|
|
2598
|
+
},
|
|
2599
|
+
"data": {
|
|
2600
|
+
"type": "boolean",
|
|
2601
|
+
"description": "Data dimension complete (table entries + witnesses)"
|
|
2602
|
+
},
|
|
2603
|
+
"query": {
|
|
2604
|
+
"type": "boolean",
|
|
2605
|
+
"description": "Query dimension complete (query instructions if needed)"
|
|
2606
|
+
},
|
|
2607
|
+
"logic": {
|
|
2608
|
+
"type": "boolean",
|
|
2609
|
+
"description": "Logic dimension complete (root node returns Bool)"
|
|
2610
|
+
},
|
|
2611
|
+
"constraints": {
|
|
2612
|
+
"type": "boolean",
|
|
2613
|
+
"description": "Constraints dimension complete (10 Pitfalls checked)"
|
|
2614
|
+
}
|
|
2615
|
+
},
|
|
2616
|
+
"required": [
|
|
2617
|
+
"intent",
|
|
2618
|
+
"binding",
|
|
2619
|
+
"data",
|
|
2620
|
+
"query",
|
|
2621
|
+
"logic",
|
|
2622
|
+
"constraints"
|
|
2623
|
+
],
|
|
2624
|
+
"additionalProperties": false,
|
|
2625
|
+
"description": "Information puzzle completeness (6 dimensions). Missing dimensions need user input before CREATE."
|
|
2626
|
+
},
|
|
2627
|
+
"matched_scene": {
|
|
2628
|
+
"type": "string",
|
|
2629
|
+
"description": "Matched Guard scene id from the 8 binding scenarios ledger. Example: 'machine_forward_guard'"
|
|
2630
|
+
},
|
|
2631
|
+
"scene_description": {
|
|
2632
|
+
"type": "string",
|
|
2633
|
+
"description": "Human-readable scene description. Example: '工作流节点推进验证(Forward.guard)'"
|
|
2634
|
+
},
|
|
2635
|
+
"scene_constraints": {
|
|
2636
|
+
"type": "array",
|
|
2637
|
+
"items": {
|
|
2638
|
+
"type": "string"
|
|
2639
|
+
},
|
|
2640
|
+
"description": "Special constraints for the matched scene. Example: ['Machine 发布后 Forward.guard 不可修改']"
|
|
2641
|
+
},
|
|
2642
|
+
"suggested_patterns": {
|
|
2643
|
+
"type": "array",
|
|
2644
|
+
"items": {
|
|
2645
|
+
"type": "string"
|
|
2646
|
+
},
|
|
2647
|
+
"description": "Suggested Guard patterns based on user intent. Example: ['时间锁','进度状态检查']"
|
|
2648
|
+
},
|
|
2649
|
+
"available_queries": {
|
|
2650
|
+
"type": "array",
|
|
2651
|
+
"items": {
|
|
2652
|
+
"type": "object",
|
|
2653
|
+
"properties": {
|
|
2654
|
+
"id": {
|
|
2655
|
+
"type": "integer",
|
|
2656
|
+
"description": "Query instruction ID. Example: 1253"
|
|
2657
|
+
},
|
|
2658
|
+
"name": {
|
|
2659
|
+
"type": "string",
|
|
2660
|
+
"description": "Query instruction name. Example: 'progress.current_node_name'"
|
|
2661
|
+
},
|
|
2662
|
+
"objectType": {
|
|
2663
|
+
"type": "string",
|
|
2664
|
+
"description": "Target object type. Example: 'Progress'"
|
|
2665
|
+
},
|
|
2666
|
+
"returnType": {
|
|
2667
|
+
"type": "string",
|
|
2668
|
+
"description": "Return value type. Example: 'String'"
|
|
2669
|
+
},
|
|
2670
|
+
"description": {
|
|
2671
|
+
"type": "string",
|
|
2672
|
+
"description": "Query description"
|
|
2673
|
+
}
|
|
2674
|
+
},
|
|
2675
|
+
"required": [
|
|
2676
|
+
"id",
|
|
2677
|
+
"name",
|
|
2678
|
+
"objectType",
|
|
2679
|
+
"returnType"
|
|
2680
|
+
],
|
|
2681
|
+
"additionalProperties": false,
|
|
2682
|
+
"description": "A Guard query instruction available for the current context (subset of GUARDQUERY 375 entries)."
|
|
2683
|
+
},
|
|
2684
|
+
"description": "Available query instructions for the current context (subset of 375 GUARDQUERY entries)"
|
|
2685
|
+
},
|
|
2686
|
+
"risk_warnings": {
|
|
2687
|
+
"type": "array",
|
|
2688
|
+
"items": {
|
|
2689
|
+
"type": "string"
|
|
2690
|
+
},
|
|
2691
|
+
"description": "Risk warnings for the current Guard design. Example: ['Guard 创建后不可修改','时间锁测试用 1000ms']"
|
|
2692
|
+
},
|
|
2693
|
+
"pending_questions": {
|
|
2694
|
+
"type": "array",
|
|
2695
|
+
"items": {
|
|
2696
|
+
"type": "string"
|
|
2697
|
+
},
|
|
2698
|
+
"description": "Questions for the user to complete the puzzle. Example: ['Guard 将绑定到哪个 Host Object?']"
|
|
2699
|
+
},
|
|
2700
|
+
"confirmation_text": {
|
|
2701
|
+
"type": "string",
|
|
2702
|
+
"description": "Structured semantic confirmation text for user review (generated when puzzle is complete). User must explicitly confirm before CREATE."
|
|
2703
|
+
},
|
|
2704
|
+
"test_result": {
|
|
2705
|
+
"type": "object",
|
|
2706
|
+
"properties": {
|
|
2707
|
+
"status": {
|
|
2708
|
+
"type": "string",
|
|
2709
|
+
"enum": [
|
|
2710
|
+
"pass",
|
|
2711
|
+
"fail",
|
|
2712
|
+
"not_tested"
|
|
2713
|
+
]
|
|
2714
|
+
},
|
|
2715
|
+
"failure_node": {
|
|
2716
|
+
"type": "string",
|
|
2717
|
+
"description": "Node that caused failure (if fail)"
|
|
2718
|
+
},
|
|
2719
|
+
"passport_id": {
|
|
2720
|
+
"type": "string",
|
|
2721
|
+
"description": "Generated Passport ID (if pass)"
|
|
2722
|
+
}
|
|
2723
|
+
},
|
|
2724
|
+
"required": [
|
|
2725
|
+
"status"
|
|
2726
|
+
],
|
|
2727
|
+
"additionalProperties": false,
|
|
2728
|
+
"description": "gen_passport static test result. Must pass before CREATE."
|
|
2729
|
+
},
|
|
2730
|
+
"risk_assessment": {
|
|
2731
|
+
"type": "object",
|
|
2732
|
+
"properties": {
|
|
2733
|
+
"overall_risk": {
|
|
2734
|
+
"type": "string",
|
|
2735
|
+
"enum": [
|
|
2736
|
+
"critical",
|
|
2737
|
+
"high",
|
|
2738
|
+
"medium",
|
|
2739
|
+
"low",
|
|
2740
|
+
"info"
|
|
2741
|
+
],
|
|
2742
|
+
"description": "Overall risk level (highest from all risks)"
|
|
2743
|
+
},
|
|
2744
|
+
"risk_count": {
|
|
2745
|
+
"type": "integer",
|
|
2746
|
+
"description": "Total number of detected risks"
|
|
2747
|
+
},
|
|
2748
|
+
"critical_count": {
|
|
2749
|
+
"type": "integer",
|
|
2750
|
+
"description": "Number of critical risks"
|
|
2751
|
+
},
|
|
2752
|
+
"high_count": {
|
|
2753
|
+
"type": "integer",
|
|
2754
|
+
"description": "Number of high risks"
|
|
2755
|
+
},
|
|
2756
|
+
"needs_human_review": {
|
|
2757
|
+
"type": "boolean",
|
|
2758
|
+
"description": "Whether human review is required (critical or 2+ high risks)"
|
|
2759
|
+
},
|
|
2760
|
+
"top_risks": {
|
|
2761
|
+
"type": "array",
|
|
2762
|
+
"items": {
|
|
2763
|
+
"type": "string"
|
|
2764
|
+
},
|
|
2765
|
+
"description": "Top risk titles (critical and high, max 3)"
|
|
2766
|
+
},
|
|
2767
|
+
"stakeholder_advice": {
|
|
2768
|
+
"type": "object",
|
|
2769
|
+
"additionalProperties": {
|
|
2770
|
+
"type": "array",
|
|
2771
|
+
"items": {
|
|
2772
|
+
"type": "string"
|
|
2773
|
+
}
|
|
2774
|
+
},
|
|
2775
|
+
"description": "Per-stakeholder advice. Key=stakeholder (customer/provider/arbitrator/claimant), value=advice list"
|
|
2776
|
+
}
|
|
2777
|
+
},
|
|
2778
|
+
"required": [
|
|
2779
|
+
"overall_risk",
|
|
2780
|
+
"risk_count",
|
|
2781
|
+
"critical_count",
|
|
2782
|
+
"high_count",
|
|
2783
|
+
"needs_human_review",
|
|
2784
|
+
"top_risks"
|
|
2785
|
+
],
|
|
2786
|
+
"additionalProperties": false,
|
|
2787
|
+
"description": "Business-layer risk assessment (game theory, data source trust, logic gaps). Populated during Guard design to warn about business risks beyond syntax."
|
|
2788
|
+
}
|
|
2789
|
+
},
|
|
2790
|
+
"additionalProperties": false,
|
|
2791
|
+
"description": "Phase 5 Guard capability advice (populated when user intent involves Guard). Provides puzzle status, scene matching, suggested patterns, available queries, risk warnings, and confirmation text. AI uses this to guide Guard design dialogue (R1-R10)."
|
|
2792
|
+
}
|
|
2793
|
+
},
|
|
2794
|
+
"required": [
|
|
2795
|
+
"intent",
|
|
2796
|
+
"status",
|
|
2797
|
+
"summary"
|
|
2798
|
+
],
|
|
2799
|
+
"additionalProperties": false,
|
|
1930
2800
|
"description": "Business semantic summary for the table data query"
|
|
1931
2801
|
}
|
|
1932
2802
|
},
|