@wowok/agent-mcp 2.3.14 → 2.3.16
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/industry-risks.d.ts +36 -0
- package/dist/customer/industry-risks.js +424 -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 +67 -0
- package/dist/customer/user-preferences.js +451 -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 +77 -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 +570 -186
- package/dist/knowledge/acquisition-flywheel.d.ts +50 -0
- package/dist/knowledge/acquisition-flywheel.js +183 -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/index.d.ts +64 -0
- package/dist/knowledge/index.js +66 -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 +49 -0
- package/dist/knowledge/industry-registry.js +167 -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 +171 -0
- package/dist/knowledge/tool-constraints.d.ts +30 -0
- package/dist/knowledge/tool-constraints.js +185 -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 +15 -0
- package/dist/safety/confirm-gate.js +44 -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 +15 -0
- package/dist/schema/call/arbitration.d.ts +111 -96
- package/dist/schema/call/base.d.ts +1070 -44
- package/dist/schema/call/base.js +69 -1
- package/dist/schema/call/bridge.d.ts +709 -52
- package/dist/schema/call/bridge.js +13 -2
- package/dist/schema/call/contact.d.ts +15 -0
- package/dist/schema/call/demand.d.ts +69 -54
- package/dist/schema/call/guard.d.ts +125 -80
- package/dist/schema/call/handler.d.ts +3 -0
- package/dist/schema/call/handler.js +14 -0
- package/dist/schema/call/machine.d.ts +830 -800
- package/dist/schema/call/order.d.ts +15 -0
- package/dist/schema/call/payment.d.ts +15 -0
- package/dist/schema/call/permission.d.ts +15 -0
- package/dist/schema/call/personal.d.ts +15 -0
- package/dist/schema/call/progress.d.ts +15 -0
- package/dist/schema/call/proof.d.ts +42 -12
- package/dist/schema/call/proof.js +3 -3
- package/dist/schema/call/repository.d.ts +91 -76
- package/dist/schema/call/reward.d.ts +45 -30
- package/dist/schema/call/semantic.d.ts +1 -0
- package/dist/schema/call/semantic.js +217 -0
- package/dist/schema/call/service.d.ts +407 -392
- package/dist/schema/call/treasury.d.ts +15 -0
- package/dist/schema/common/index.js +3 -3
- package/dist/schema/local/index.d.ts +228 -72
- package/dist/schema/local/index.js +33 -6
- package/dist/schema/messenger/index.d.ts +668 -50
- package/dist/schema/messenger/index.js +9 -0
- package/dist/schema/operations.d.ts +1693 -1369
- package/dist/schema/operations.js +2 -2
- package/dist/schema/query/index.d.ts +1614 -1614
- package/dist/schema/query/index.js +30 -27
- 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 +520 -0
- package/dist/schemas/bridge_operation.schema.json +15 -0
- package/dist/schemas/guard2file.schema.json +15 -0
- package/dist/schemas/index.json +1 -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 +15 -0
- package/dist/schemas/messenger_operation.output.json +528 -0
- package/dist/schemas/onchain_operations.output.json +350 -16
- package/dist/schemas/onchain_operations.schema.json +96 -23
- package/dist/schemas/onchain_operations_allocation.schema.json +15 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +15 -0
- package/dist/schemas/onchain_operations_contact.schema.json +15 -0
- package/dist/schemas/onchain_operations_demand.schema.json +15 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +30 -0
- package/dist/schemas/onchain_operations_guard.schema.json +15 -0
- package/dist/schemas/onchain_operations_machine.schema.json +81 -23
- package/dist/schemas/onchain_operations_order.schema.json +15 -0
- package/dist/schemas/onchain_operations_payment.schema.json +15 -0
- package/dist/schemas/onchain_operations_permission.schema.json +15 -0
- package/dist/schemas/onchain_operations_personal.schema.json +15 -0
- package/dist/schemas/onchain_operations_progress.schema.json +15 -0
- package/dist/schemas/onchain_operations_repository.schema.json +15 -0
- package/dist/schemas/onchain_operations_reward.schema.json +15 -0
- package/dist/schemas/onchain_operations_service.schema.json +15 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +15 -0
- package/dist/schemas/onchain_table_data.output.json +221 -69
- package/dist/schemas/onchain_table_data.schema.json +2 -2
- package/package.json +2 -2
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"value"
|
|
40
40
|
],
|
|
41
41
|
"additionalProperties": false,
|
|
42
|
-
"description": "Mark naming configuration"
|
|
42
|
+
"description": "Mark naming configuration. MUST be an object {value: string, replaceExistName?: boolean}, NOT a plain string. Example: {name: {value: 'my-account', replaceExistName: true}}"
|
|
43
43
|
},
|
|
44
44
|
"address": {
|
|
45
45
|
"type": "string",
|
|
46
|
-
"description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9,
|
|
46
|
+
"description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9, 0xa, 0xc, 0xd, 0x403, 0xaaa, 0xaab, 0xacc)"
|
|
47
47
|
},
|
|
48
48
|
"tags": {
|
|
49
49
|
"type": "array",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"address"
|
|
60
60
|
],
|
|
61
61
|
"additionalProperties": false,
|
|
62
|
-
"description": "LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. For public on-chain marks, use the 'personal' tool instead."
|
|
62
|
+
"description": "LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. For public on-chain marks, use the 'personal' tool instead. IMPORTANT: 'name' field is an OBJECT {value, replaceExistName?}, not a string."
|
|
63
63
|
},
|
|
64
64
|
"minItems": 1,
|
|
65
65
|
"description": "Array of mark data to add (at least 1 item)"
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
"additionalProperties": false,
|
|
116
|
-
"description": "Local mark operations. Exactly one operation type (add/remove/clear) must be specified."
|
|
116
|
+
"description": "Local mark operations. Exactly one operation type (add/remove/clear) must be specified as a NESTED field. Example: {add: {op:'add', data:[...]}} — NOT flat {op:'add', data:[...]}."
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -55,6 +55,21 @@
|
|
|
55
55
|
"referrer": {
|
|
56
56
|
"$ref": "#/definitions/machineNode2file/properties/env/properties/account",
|
|
57
57
|
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
58
|
+
},
|
|
59
|
+
"confirmed": {
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
|
|
62
|
+
},
|
|
63
|
+
"user_intent_phrases": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
|
|
69
|
+
},
|
|
70
|
+
"project": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
|
|
58
73
|
}
|
|
59
74
|
},
|
|
60
75
|
"additionalProperties": false,
|
|
@@ -1074,9 +1074,537 @@
|
|
|
1074
1074
|
"result"
|
|
1075
1075
|
],
|
|
1076
1076
|
"additionalProperties": false
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"type": "object",
|
|
1080
|
+
"properties": {
|
|
1081
|
+
"operation": {
|
|
1082
|
+
"type": "string",
|
|
1083
|
+
"const": "error"
|
|
1084
|
+
},
|
|
1085
|
+
"error": {
|
|
1086
|
+
"type": "string",
|
|
1087
|
+
"description": "Error message"
|
|
1088
|
+
},
|
|
1089
|
+
"error_code": {
|
|
1090
|
+
"type": "string",
|
|
1091
|
+
"description": "Error code"
|
|
1092
|
+
},
|
|
1093
|
+
"retryable": {
|
|
1094
|
+
"type": "boolean",
|
|
1095
|
+
"description": "Whether the operation is retryable"
|
|
1096
|
+
},
|
|
1097
|
+
"recovery_hint": {
|
|
1098
|
+
"type": "string",
|
|
1099
|
+
"description": "Recovery hint"
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
"required": [
|
|
1103
|
+
"operation",
|
|
1104
|
+
"error"
|
|
1105
|
+
],
|
|
1106
|
+
"additionalProperties": false,
|
|
1107
|
+
"description": "Error response"
|
|
1077
1108
|
}
|
|
1078
1109
|
],
|
|
1079
1110
|
"description": "Messenger operation result discriminated union"
|
|
1111
|
+
},
|
|
1112
|
+
"semantic": {
|
|
1113
|
+
"type": "object",
|
|
1114
|
+
"properties": {
|
|
1115
|
+
"intent": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"description": "Inferred user intent / operation goal. Constraint: snake_case string. Relation: derived from operation_type + data signals. Example: 'publish_service'"
|
|
1118
|
+
},
|
|
1119
|
+
"status": {
|
|
1120
|
+
"type": "string",
|
|
1121
|
+
"enum": [
|
|
1122
|
+
"success",
|
|
1123
|
+
"partial",
|
|
1124
|
+
"failed",
|
|
1125
|
+
"pending_input"
|
|
1126
|
+
],
|
|
1127
|
+
"description": "Business-level status (not raw tx status). 'pending_input' = needs Guard submission. Example: 'success'"
|
|
1128
|
+
},
|
|
1129
|
+
"summary": {
|
|
1130
|
+
"type": "string",
|
|
1131
|
+
"description": "One-sentence human-readable summary of what happened. AI should read this first. Example: 'Successfully published Service my-shop with Machine bound'"
|
|
1132
|
+
},
|
|
1133
|
+
"created": {
|
|
1134
|
+
"type": "array",
|
|
1135
|
+
"items": {
|
|
1136
|
+
"type": "object",
|
|
1137
|
+
"properties": {
|
|
1138
|
+
"id": {
|
|
1139
|
+
"type": "string",
|
|
1140
|
+
"description": "Object ID (64-hex with 0x prefix). Identifies the on-chain object. Example: '0xa1d4...'"
|
|
1141
|
+
},
|
|
1142
|
+
"name": {
|
|
1143
|
+
"type": [
|
|
1144
|
+
"string",
|
|
1145
|
+
"null"
|
|
1146
|
+
],
|
|
1147
|
+
"description": "Local mark name if assigned, else null. Relation: resolved via local_mark_operation. Example: 'my-shop' or null"
|
|
1148
|
+
},
|
|
1149
|
+
"role": {
|
|
1150
|
+
"type": "string",
|
|
1151
|
+
"enum": [
|
|
1152
|
+
"Permission",
|
|
1153
|
+
"Guard",
|
|
1154
|
+
"Machine",
|
|
1155
|
+
"Progress",
|
|
1156
|
+
"Service",
|
|
1157
|
+
"Order",
|
|
1158
|
+
"Allocation",
|
|
1159
|
+
"Arbitration",
|
|
1160
|
+
"ArbCase",
|
|
1161
|
+
"Messenger",
|
|
1162
|
+
"Contact",
|
|
1163
|
+
"Demand",
|
|
1164
|
+
"Reward",
|
|
1165
|
+
"Personal",
|
|
1166
|
+
"Repository",
|
|
1167
|
+
"Treasury",
|
|
1168
|
+
"Discount",
|
|
1169
|
+
"Other"
|
|
1170
|
+
],
|
|
1171
|
+
"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'"
|
|
1172
|
+
},
|
|
1173
|
+
"relation": {
|
|
1174
|
+
"type": "object",
|
|
1175
|
+
"properties": {
|
|
1176
|
+
"parent": {
|
|
1177
|
+
"type": [
|
|
1178
|
+
"string",
|
|
1179
|
+
"null"
|
|
1180
|
+
],
|
|
1181
|
+
"description": "Parent object ID, if this object belongs to another (e.g. Machine belongs to Service). Example: '0x123...' or null"
|
|
1182
|
+
},
|
|
1183
|
+
"relation_type": {
|
|
1184
|
+
"type": "string",
|
|
1185
|
+
"enum": [
|
|
1186
|
+
"machine_of",
|
|
1187
|
+
"guard_of",
|
|
1188
|
+
"allocator_of",
|
|
1189
|
+
"permission_of",
|
|
1190
|
+
"progress_of",
|
|
1191
|
+
"allocation_of",
|
|
1192
|
+
"arb_of",
|
|
1193
|
+
"other"
|
|
1194
|
+
],
|
|
1195
|
+
"description": "How this object relates to its parent. Example: 'machine_of'"
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
"additionalProperties": false,
|
|
1199
|
+
"description": "Relationship to another object in the dependency graph"
|
|
1200
|
+
},
|
|
1201
|
+
"immutable": {
|
|
1202
|
+
"type": "boolean",
|
|
1203
|
+
"description": "Whether the object has entered an immutable state (e.g. Service published). Constraint: true after publish. Example: true"
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
"required": [
|
|
1207
|
+
"id",
|
|
1208
|
+
"role"
|
|
1209
|
+
],
|
|
1210
|
+
"additionalProperties": false,
|
|
1211
|
+
"description": "An object tagged with its business role and relationship within the object dependency graph"
|
|
1212
|
+
},
|
|
1213
|
+
"description": "Objects newly created in this operation, tagged with roles"
|
|
1214
|
+
},
|
|
1215
|
+
"modified": {
|
|
1216
|
+
"type": "array",
|
|
1217
|
+
"items": {
|
|
1218
|
+
"$ref": "#/definitions/messenger_operation/properties/semantic/properties/created/items"
|
|
1219
|
+
},
|
|
1220
|
+
"description": "Objects mutated in this operation, tagged with roles"
|
|
1221
|
+
},
|
|
1222
|
+
"released": {
|
|
1223
|
+
"type": "array",
|
|
1224
|
+
"items": {
|
|
1225
|
+
"type": "object",
|
|
1226
|
+
"properties": {
|
|
1227
|
+
"amount": {
|
|
1228
|
+
"type": "string",
|
|
1229
|
+
"description": "Amount change as stringified integer (smallest unit). Negative=spend, positive=receive. Example: '-10000000000'"
|
|
1230
|
+
},
|
|
1231
|
+
"coinType": {
|
|
1232
|
+
"type": "string",
|
|
1233
|
+
"description": "Coin type tag (format: {address}::{module}::{struct}). Example: '0x2::wow::WOW'"
|
|
1234
|
+
},
|
|
1235
|
+
"role": {
|
|
1236
|
+
"type": "string",
|
|
1237
|
+
"enum": [
|
|
1238
|
+
"payment",
|
|
1239
|
+
"refund",
|
|
1240
|
+
"change",
|
|
1241
|
+
"compensation",
|
|
1242
|
+
"reward",
|
|
1243
|
+
"gas",
|
|
1244
|
+
"deposit",
|
|
1245
|
+
"release",
|
|
1246
|
+
"other"
|
|
1247
|
+
],
|
|
1248
|
+
"description": "Business role of this fund movement. Constraint: enum of 9 values. Relation: derived from operation context. Example: 'payment'"
|
|
1249
|
+
},
|
|
1250
|
+
"from": {
|
|
1251
|
+
"type": [
|
|
1252
|
+
"string",
|
|
1253
|
+
"null"
|
|
1254
|
+
],
|
|
1255
|
+
"description": "Sender address if known. Example: '0xabc...' or null"
|
|
1256
|
+
},
|
|
1257
|
+
"to": {
|
|
1258
|
+
"type": [
|
|
1259
|
+
"string",
|
|
1260
|
+
"null"
|
|
1261
|
+
],
|
|
1262
|
+
"description": "Recipient address if known. Example: '0xdef...' or null"
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
"required": [
|
|
1266
|
+
"amount",
|
|
1267
|
+
"coinType",
|
|
1268
|
+
"role"
|
|
1269
|
+
],
|
|
1270
|
+
"additionalProperties": false,
|
|
1271
|
+
"description": "A fund movement tagged with its business role"
|
|
1272
|
+
},
|
|
1273
|
+
"description": "Fund movements in this operation, tagged with roles"
|
|
1274
|
+
},
|
|
1275
|
+
"events": {
|
|
1276
|
+
"type": "array",
|
|
1277
|
+
"items": {
|
|
1278
|
+
"type": "object",
|
|
1279
|
+
"properties": {
|
|
1280
|
+
"event_type": {
|
|
1281
|
+
"type": "string",
|
|
1282
|
+
"description": "Raw on-chain event type tag. Example: '0x2::service::ServicePublishedEvent'"
|
|
1283
|
+
},
|
|
1284
|
+
"business_meaning": {
|
|
1285
|
+
"type": "string",
|
|
1286
|
+
"description": "Human-readable business meaning. Example: 'Service has been published and is now immutable'"
|
|
1287
|
+
},
|
|
1288
|
+
"category": {
|
|
1289
|
+
"type": "string",
|
|
1290
|
+
"enum": [
|
|
1291
|
+
"lifecycle",
|
|
1292
|
+
"state_change",
|
|
1293
|
+
"fund_flow",
|
|
1294
|
+
"permission",
|
|
1295
|
+
"guard",
|
|
1296
|
+
"other"
|
|
1297
|
+
],
|
|
1298
|
+
"description": "Business category. Constraint: enum of 6 values. Example: 'lifecycle'"
|
|
1299
|
+
},
|
|
1300
|
+
"related_object": {
|
|
1301
|
+
"type": "string",
|
|
1302
|
+
"description": "Object ID the event relates to, if extractable. Example: '0x123...'"
|
|
1303
|
+
},
|
|
1304
|
+
"side_effect": {
|
|
1305
|
+
"type": "string",
|
|
1306
|
+
"description": "Side effect description for AI. Example: 'Customers can now place orders against this Service'"
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
"required": [
|
|
1310
|
+
"event_type",
|
|
1311
|
+
"business_meaning",
|
|
1312
|
+
"category"
|
|
1313
|
+
],
|
|
1314
|
+
"additionalProperties": false,
|
|
1315
|
+
"description": "An on-chain event annotated with business semantics"
|
|
1316
|
+
},
|
|
1317
|
+
"description": "On-chain events annotated with business semantics (S-8)"
|
|
1318
|
+
},
|
|
1319
|
+
"next_actions": {
|
|
1320
|
+
"type": "array",
|
|
1321
|
+
"items": {
|
|
1322
|
+
"type": "object",
|
|
1323
|
+
"properties": {
|
|
1324
|
+
"action": {
|
|
1325
|
+
"type": "string",
|
|
1326
|
+
"description": "Recommended next action. Example: 'add sales products'"
|
|
1327
|
+
},
|
|
1328
|
+
"reason": {
|
|
1329
|
+
"type": "string",
|
|
1330
|
+
"description": "Why this action is recommended. Example: 'Service has no products; customers cannot order'"
|
|
1331
|
+
},
|
|
1332
|
+
"tool": {
|
|
1333
|
+
"type": "string",
|
|
1334
|
+
"description": "MCP tool to use, if applicable. Example: 'onchain_operations'"
|
|
1335
|
+
},
|
|
1336
|
+
"prerequisite": {
|
|
1337
|
+
"type": "string",
|
|
1338
|
+
"description": "Condition that must hold before this action. Example: 'Service must be created first'"
|
|
1339
|
+
},
|
|
1340
|
+
"priority": {
|
|
1341
|
+
"type": "string",
|
|
1342
|
+
"enum": [
|
|
1343
|
+
"required",
|
|
1344
|
+
"recommended",
|
|
1345
|
+
"optional"
|
|
1346
|
+
],
|
|
1347
|
+
"description": "Priority. Constraint: enum. Example: 'required'"
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
"required": [
|
|
1351
|
+
"action",
|
|
1352
|
+
"reason",
|
|
1353
|
+
"priority"
|
|
1354
|
+
],
|
|
1355
|
+
"additionalProperties": false,
|
|
1356
|
+
"description": "A recommended next action with priority and rationale"
|
|
1357
|
+
},
|
|
1358
|
+
"description": "Recommended next actions to drive the workflow forward"
|
|
1359
|
+
},
|
|
1360
|
+
"warnings": {
|
|
1361
|
+
"type": "array",
|
|
1362
|
+
"items": {
|
|
1363
|
+
"type": "string"
|
|
1364
|
+
},
|
|
1365
|
+
"description": "Business-level warnings. Example: 'order_allocators not configured; order funds cannot be distributed'"
|
|
1366
|
+
},
|
|
1367
|
+
"experience": {
|
|
1368
|
+
"type": "object",
|
|
1369
|
+
"properties": {
|
|
1370
|
+
"advice": {
|
|
1371
|
+
"type": "string",
|
|
1372
|
+
"description": "Advice from past experience. Example: 'Last time you forgot to set buy_guard; add it before publishing'"
|
|
1373
|
+
},
|
|
1374
|
+
"avoid": {
|
|
1375
|
+
"type": "array",
|
|
1376
|
+
"items": {
|
|
1377
|
+
"type": "string"
|
|
1378
|
+
},
|
|
1379
|
+
"description": "Pitfalls to avoid based on history. Example: ['Guard rejection on delivery_proof']"
|
|
1380
|
+
},
|
|
1381
|
+
"relevance": {
|
|
1382
|
+
"type": "number",
|
|
1383
|
+
"minimum": 0,
|
|
1384
|
+
"maximum": 1,
|
|
1385
|
+
"description": "Relevance score 0-1 of the matched experience. Example: 0.85"
|
|
1386
|
+
},
|
|
1387
|
+
"matched_scenario": {
|
|
1388
|
+
"type": "string",
|
|
1389
|
+
"description": "Matched historical scenario. Example: 'publish_service_freelance'"
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
"additionalProperties": false,
|
|
1393
|
+
"description": "Experience layer feedback from past operations (Phase 2 议题 2)"
|
|
1394
|
+
},
|
|
1395
|
+
"service_status": {
|
|
1396
|
+
"type": "object",
|
|
1397
|
+
"properties": {
|
|
1398
|
+
"active": {
|
|
1399
|
+
"type": "array",
|
|
1400
|
+
"items": {
|
|
1401
|
+
"type": "string"
|
|
1402
|
+
},
|
|
1403
|
+
"description": "Phase 2 services currently active (enabled). Example: ['confirm_gate','project_service','experience_layer']"
|
|
1404
|
+
},
|
|
1405
|
+
"inactive": {
|
|
1406
|
+
"type": "array",
|
|
1407
|
+
"items": {
|
|
1408
|
+
"type": "string"
|
|
1409
|
+
},
|
|
1410
|
+
"description": "Phase 2 services currently inactive (can be toggled via config_operation). Example: ['harness','graph_persist']"
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
"required": [
|
|
1414
|
+
"active"
|
|
1415
|
+
],
|
|
1416
|
+
"additionalProperties": false,
|
|
1417
|
+
"description": "Phase 2 runtime service status (populated when semantic_rich is enabled). Lets AI see active services in each response."
|
|
1418
|
+
},
|
|
1419
|
+
"customer_advice": {
|
|
1420
|
+
"type": "object",
|
|
1421
|
+
"properties": {
|
|
1422
|
+
"risk_score": {
|
|
1423
|
+
"type": "number",
|
|
1424
|
+
"minimum": 0,
|
|
1425
|
+
"maximum": 100,
|
|
1426
|
+
"description": "Composite risk score 0-100 (higher = safer). Relation: from risk-assessment.ts 4-dimension scoring. Example: 75"
|
|
1427
|
+
},
|
|
1428
|
+
"risk_level": {
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"enum": [
|
|
1431
|
+
"low",
|
|
1432
|
+
"medium_low",
|
|
1433
|
+
"medium_high",
|
|
1434
|
+
"high"
|
|
1435
|
+
],
|
|
1436
|
+
"description": "Risk level bucket. 'high' = strongly discourage purchase. Example: 'medium_high'"
|
|
1437
|
+
},
|
|
1438
|
+
"recommendations": {
|
|
1439
|
+
"type": "array",
|
|
1440
|
+
"items": {
|
|
1441
|
+
"type": "string"
|
|
1442
|
+
},
|
|
1443
|
+
"description": "Actionable recommendations for the buyer. Example: ['要求商家配置仲裁','通过 Messenger 协商退款条款']"
|
|
1444
|
+
},
|
|
1445
|
+
"reminders": {
|
|
1446
|
+
"type": "array",
|
|
1447
|
+
"items": {
|
|
1448
|
+
"type": "object",
|
|
1449
|
+
"properties": {
|
|
1450
|
+
"id": {
|
|
1451
|
+
"type": "string",
|
|
1452
|
+
"description": "Reminder rule id. Example: 'high_risk_score'"
|
|
1453
|
+
},
|
|
1454
|
+
"stage": {
|
|
1455
|
+
"type": "string",
|
|
1456
|
+
"enum": [
|
|
1457
|
+
"browse",
|
|
1458
|
+
"evaluate",
|
|
1459
|
+
"preorder",
|
|
1460
|
+
"in_progress",
|
|
1461
|
+
"complete",
|
|
1462
|
+
"after_sale"
|
|
1463
|
+
],
|
|
1464
|
+
"description": "Order lifecycle stage when this reminder fires. Example: 'evaluate'"
|
|
1465
|
+
},
|
|
1466
|
+
"priority": {
|
|
1467
|
+
"type": "string",
|
|
1468
|
+
"enum": [
|
|
1469
|
+
"required",
|
|
1470
|
+
"recommended",
|
|
1471
|
+
"info",
|
|
1472
|
+
"reminder"
|
|
1473
|
+
],
|
|
1474
|
+
"description": "Priority. 'required' = blocks purchase; 'recommended' = strong caution. Example: 'required'"
|
|
1475
|
+
},
|
|
1476
|
+
"message": {
|
|
1477
|
+
"type": "string",
|
|
1478
|
+
"description": "Human-readable reminder message. Example: '🔴 综合风险分 25/100,强烈建议不购买'"
|
|
1479
|
+
},
|
|
1480
|
+
"action": {
|
|
1481
|
+
"type": "string",
|
|
1482
|
+
"description": "Suggested next action. Example: 'require merchant to bind Arbitration before ordering'"
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
"required": [
|
|
1486
|
+
"id",
|
|
1487
|
+
"stage",
|
|
1488
|
+
"priority",
|
|
1489
|
+
"message"
|
|
1490
|
+
],
|
|
1491
|
+
"additionalProperties": false,
|
|
1492
|
+
"description": "A buyer-side reminder triggered at a specific order lifecycle stage (Phase 3 C-3)."
|
|
1493
|
+
},
|
|
1494
|
+
"description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'🔴 模糊 Guard 必须人工审查'}]"
|
|
1495
|
+
},
|
|
1496
|
+
"preference_match": {
|
|
1497
|
+
"type": "object",
|
|
1498
|
+
"properties": {
|
|
1499
|
+
"score": {
|
|
1500
|
+
"type": "number",
|
|
1501
|
+
"minimum": 0,
|
|
1502
|
+
"maximum": 100,
|
|
1503
|
+
"description": "Match score 0-100 (higher = better fit). Example: 75"
|
|
1504
|
+
},
|
|
1505
|
+
"matches": {
|
|
1506
|
+
"type": "array",
|
|
1507
|
+
"items": {
|
|
1508
|
+
"type": "string"
|
|
1509
|
+
},
|
|
1510
|
+
"description": "Aspects that match user preferences. Example: ['价格低于均价 10%','有仲裁']"
|
|
1511
|
+
},
|
|
1512
|
+
"mismatches": {
|
|
1513
|
+
"type": "array",
|
|
1514
|
+
"items": {
|
|
1515
|
+
"type": "string"
|
|
1516
|
+
},
|
|
1517
|
+
"description": "Aspects that mismatch user preferences. Example: ['交付周期超出期望']"
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1520
|
+
"required": [
|
|
1521
|
+
"score",
|
|
1522
|
+
"matches",
|
|
1523
|
+
"mismatches"
|
|
1524
|
+
],
|
|
1525
|
+
"additionalProperties": false,
|
|
1526
|
+
"description": "Service-to-preference match (populated when user preferences exist). Example: {score:75, matches:[...], mismatches:[...]}"
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
"required": [
|
|
1530
|
+
"recommendations",
|
|
1531
|
+
"reminders"
|
|
1532
|
+
],
|
|
1533
|
+
"additionalProperties": false,
|
|
1534
|
+
"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."
|
|
1535
|
+
},
|
|
1536
|
+
"evolution_context": {
|
|
1537
|
+
"type": "object",
|
|
1538
|
+
"properties": {
|
|
1539
|
+
"industry_signal": {
|
|
1540
|
+
"type": "string",
|
|
1541
|
+
"description": "Industry evolution signal summary. Example: '行业健康度 82/100(healthy);累积 25 个行业信号'"
|
|
1542
|
+
},
|
|
1543
|
+
"evolution_advice": {
|
|
1544
|
+
"type": "string",
|
|
1545
|
+
"description": "Evolution advice for the current operation. Example: '建议强制配置仲裁 + 赔偿金 + 交付 Guard'"
|
|
1546
|
+
},
|
|
1547
|
+
"confidence": {
|
|
1548
|
+
"type": "number",
|
|
1549
|
+
"minimum": 0,
|
|
1550
|
+
"maximum": 1,
|
|
1551
|
+
"description": "Confidence of the evolution context 0-1. <0.5 means no data yet. Example: 0.75"
|
|
1552
|
+
},
|
|
1553
|
+
"health_score": {
|
|
1554
|
+
"type": "number",
|
|
1555
|
+
"minimum": 0,
|
|
1556
|
+
"maximum": 100,
|
|
1557
|
+
"description": "Industry health score 0-100 if available. Example: 82"
|
|
1558
|
+
},
|
|
1559
|
+
"pending_suggestions": {
|
|
1560
|
+
"type": "integer",
|
|
1561
|
+
"minimum": 0,
|
|
1562
|
+
"description": "Count of pending industry update suggestions (filtered by role if role is set). Example: 3"
|
|
1563
|
+
},
|
|
1564
|
+
"intent": {
|
|
1565
|
+
"type": "string",
|
|
1566
|
+
"enum": [
|
|
1567
|
+
"default",
|
|
1568
|
+
"growth",
|
|
1569
|
+
"retention",
|
|
1570
|
+
"compliance",
|
|
1571
|
+
"efficiency",
|
|
1572
|
+
"trust_building",
|
|
1573
|
+
"custom"
|
|
1574
|
+
],
|
|
1575
|
+
"description": "Phase 4 P4-6.C: Current business intent driving the scoring model. Absent = 'default'. Example: 'growth'"
|
|
1576
|
+
},
|
|
1577
|
+
"role_advice": {
|
|
1578
|
+
"type": "array",
|
|
1579
|
+
"items": {
|
|
1580
|
+
"type": "string"
|
|
1581
|
+
},
|
|
1582
|
+
"description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['强化忠诚度飞轮','优化首单转化']"
|
|
1583
|
+
},
|
|
1584
|
+
"role": {
|
|
1585
|
+
"type": "string",
|
|
1586
|
+
"enum": [
|
|
1587
|
+
"user",
|
|
1588
|
+
"merchant",
|
|
1589
|
+
"arbitrator"
|
|
1590
|
+
],
|
|
1591
|
+
"description": "Phase 4 P4-6.C: Role used for advice routing. Example: 'merchant'"
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
"required": [
|
|
1595
|
+
"confidence"
|
|
1596
|
+
],
|
|
1597
|
+
"additionalProperties": false,
|
|
1598
|
+
"description": "Phase 4 industry evolution context (populated when industry_evolution service is enabled). Provides AI with industry health signals and evolution advice."
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"required": [
|
|
1602
|
+
"intent",
|
|
1603
|
+
"status",
|
|
1604
|
+
"summary"
|
|
1605
|
+
],
|
|
1606
|
+
"additionalProperties": false,
|
|
1607
|
+
"description": "Business semantic summary for messenger operation"
|
|
1080
1608
|
}
|
|
1081
1609
|
},
|
|
1082
1610
|
"required": [
|