@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
|
@@ -1020,14 +1020,7 @@
|
|
|
1020
1020
|
},
|
|
1021
1021
|
"parsedJson": {
|
|
1022
1022
|
"type": "object",
|
|
1023
|
-
"additionalProperties": {
|
|
1024
|
-
"type": [
|
|
1025
|
-
"string",
|
|
1026
|
-
"number",
|
|
1027
|
-
"boolean",
|
|
1028
|
-
"null"
|
|
1029
|
-
]
|
|
1030
|
-
},
|
|
1023
|
+
"additionalProperties": {},
|
|
1031
1024
|
"description": "Parsed JSON value of the event"
|
|
1032
1025
|
},
|
|
1033
1026
|
"sender": {
|
|
@@ -1097,14 +1090,7 @@
|
|
|
1097
1090
|
},
|
|
1098
1091
|
"parsedJson": {
|
|
1099
1092
|
"type": "object",
|
|
1100
|
-
"additionalProperties": {
|
|
1101
|
-
"type": [
|
|
1102
|
-
"string",
|
|
1103
|
-
"number",
|
|
1104
|
-
"boolean",
|
|
1105
|
-
"null"
|
|
1106
|
-
]
|
|
1107
|
-
},
|
|
1093
|
+
"additionalProperties": {},
|
|
1108
1094
|
"description": "Parsed JSON value of the event"
|
|
1109
1095
|
},
|
|
1110
1096
|
"sender": {
|
|
@@ -1782,6 +1768,121 @@
|
|
|
1782
1768
|
"type"
|
|
1783
1769
|
],
|
|
1784
1770
|
"additionalProperties": false
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"type": "object",
|
|
1774
|
+
"properties": {
|
|
1775
|
+
"type": {
|
|
1776
|
+
"type": "string",
|
|
1777
|
+
"const": "pending_confirmation",
|
|
1778
|
+
"description": "Discriminator. The operation was NOT executed; it is blocked pending user confirmation. Re-call with env.confirmed=true to proceed, or modify/cancel."
|
|
1779
|
+
},
|
|
1780
|
+
"preview": {
|
|
1781
|
+
"type": "object",
|
|
1782
|
+
"properties": {
|
|
1783
|
+
"level": {
|
|
1784
|
+
"type": "string",
|
|
1785
|
+
"enum": [
|
|
1786
|
+
"none",
|
|
1787
|
+
"standard",
|
|
1788
|
+
"amount",
|
|
1789
|
+
"publish",
|
|
1790
|
+
"irreversible"
|
|
1791
|
+
],
|
|
1792
|
+
"description": "Confirmation level. 'irreversible' = cannot be undone (arb verdict, payment). 'publish' = locks immutable fields. 'amount' = amount-sensitive. 'standard' = default-value warnings."
|
|
1793
|
+
},
|
|
1794
|
+
"operation": {
|
|
1795
|
+
"type": "string",
|
|
1796
|
+
"description": "operation_type that triggered the gate. Example: 'payment'"
|
|
1797
|
+
},
|
|
1798
|
+
"object": {
|
|
1799
|
+
"anyOf": [
|
|
1800
|
+
{
|
|
1801
|
+
"type": "string"
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
"type": "object",
|
|
1805
|
+
"additionalProperties": {}
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
"type": "null"
|
|
1809
|
+
}
|
|
1810
|
+
],
|
|
1811
|
+
"description": "Object name/id involved (string for existing, object for new creation). Example: 'myshop_service' or {name: 'myshop_service'}"
|
|
1812
|
+
},
|
|
1813
|
+
"network": {
|
|
1814
|
+
"type": "string",
|
|
1815
|
+
"description": "Network in use. Example: 'mainnet'"
|
|
1816
|
+
},
|
|
1817
|
+
"account": {
|
|
1818
|
+
"type": "string",
|
|
1819
|
+
"description": "Signing account ('' = default). Example: '' or '0xabc...'"
|
|
1820
|
+
},
|
|
1821
|
+
"amount": {
|
|
1822
|
+
"type": "object",
|
|
1823
|
+
"properties": {
|
|
1824
|
+
"value": {
|
|
1825
|
+
"type": "string",
|
|
1826
|
+
"description": "Smallest-unit value as string. Example: '2500000000'"
|
|
1827
|
+
},
|
|
1828
|
+
"token": {
|
|
1829
|
+
"type": "string",
|
|
1830
|
+
"description": "Coin type tag. Example: '0x2::wow::WOW'"
|
|
1831
|
+
},
|
|
1832
|
+
"human_readable": {
|
|
1833
|
+
"type": "string",
|
|
1834
|
+
"description": "Human-readable amount. Example: '2.5 WOW'"
|
|
1835
|
+
},
|
|
1836
|
+
"recipient": {
|
|
1837
|
+
"type": "string",
|
|
1838
|
+
"description": "Recipient address if known. Example: '0xdef...'"
|
|
1839
|
+
}
|
|
1840
|
+
},
|
|
1841
|
+
"required": [
|
|
1842
|
+
"value",
|
|
1843
|
+
"token",
|
|
1844
|
+
"human_readable"
|
|
1845
|
+
],
|
|
1846
|
+
"additionalProperties": false,
|
|
1847
|
+
"description": "Amount info for amount-level confirmations."
|
|
1848
|
+
},
|
|
1849
|
+
"immutable_after": {
|
|
1850
|
+
"type": "array",
|
|
1851
|
+
"items": {
|
|
1852
|
+
"type": "string"
|
|
1853
|
+
},
|
|
1854
|
+
"description": "Fields that become immutable after this op (for publish). Example: ['machine','order_allocators']"
|
|
1855
|
+
},
|
|
1856
|
+
"warnings": {
|
|
1857
|
+
"type": "array",
|
|
1858
|
+
"items": {
|
|
1859
|
+
"type": "string"
|
|
1860
|
+
},
|
|
1861
|
+
"description": "Default-value warnings. Example: ['Using default account (env.account=\"\")']"
|
|
1862
|
+
},
|
|
1863
|
+
"irreversible": {
|
|
1864
|
+
"type": "boolean",
|
|
1865
|
+
"description": "True when the operation cannot be reverted. Example: true"
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"required": [
|
|
1869
|
+
"level",
|
|
1870
|
+
"operation"
|
|
1871
|
+
],
|
|
1872
|
+
"additionalProperties": false,
|
|
1873
|
+
"description": "Preview of the operation awaiting confirmation."
|
|
1874
|
+
},
|
|
1875
|
+
"rule_id": {
|
|
1876
|
+
"type": "string",
|
|
1877
|
+
"description": "Id of the confirmation rule that matched. Example: 'publish_immutable'"
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
"required": [
|
|
1881
|
+
"type",
|
|
1882
|
+
"preview"
|
|
1883
|
+
],
|
|
1884
|
+
"additionalProperties": false,
|
|
1885
|
+
"description": "Pending confirmation. The ConfirmGate blocked the operation. Read preview first; if user consents, re-invoke the SAME call with env.confirmed=true."
|
|
1785
1886
|
}
|
|
1786
1887
|
],
|
|
1787
1888
|
"description": "Discriminated result. Check result.type first: 'transaction'|'submission'|'error'|'data'|'null'. Each variant has different fields."
|
|
@@ -2044,6 +2145,239 @@
|
|
|
2044
2145
|
"type": "string"
|
|
2045
2146
|
},
|
|
2046
2147
|
"description": "Business-level warnings. Example: 'order_allocators not configured; order funds cannot be distributed'"
|
|
2148
|
+
},
|
|
2149
|
+
"experience": {
|
|
2150
|
+
"type": "object",
|
|
2151
|
+
"properties": {
|
|
2152
|
+
"advice": {
|
|
2153
|
+
"type": "string",
|
|
2154
|
+
"description": "Advice from past experience. Example: 'Last time you forgot to set buy_guard; add it before publishing'"
|
|
2155
|
+
},
|
|
2156
|
+
"avoid": {
|
|
2157
|
+
"type": "array",
|
|
2158
|
+
"items": {
|
|
2159
|
+
"type": "string"
|
|
2160
|
+
},
|
|
2161
|
+
"description": "Pitfalls to avoid based on history. Example: ['Guard rejection on delivery_proof']"
|
|
2162
|
+
},
|
|
2163
|
+
"relevance": {
|
|
2164
|
+
"type": "number",
|
|
2165
|
+
"minimum": 0,
|
|
2166
|
+
"maximum": 1,
|
|
2167
|
+
"description": "Relevance score 0-1 of the matched experience. Example: 0.85"
|
|
2168
|
+
},
|
|
2169
|
+
"matched_scenario": {
|
|
2170
|
+
"type": "string",
|
|
2171
|
+
"description": "Matched historical scenario. Example: 'publish_service_freelance'"
|
|
2172
|
+
}
|
|
2173
|
+
},
|
|
2174
|
+
"additionalProperties": false,
|
|
2175
|
+
"description": "Experience layer feedback from past operations (Phase 2 议题 2)"
|
|
2176
|
+
},
|
|
2177
|
+
"service_status": {
|
|
2178
|
+
"type": "object",
|
|
2179
|
+
"properties": {
|
|
2180
|
+
"active": {
|
|
2181
|
+
"type": "array",
|
|
2182
|
+
"items": {
|
|
2183
|
+
"type": "string"
|
|
2184
|
+
},
|
|
2185
|
+
"description": "Phase 2 services currently active (enabled). Example: ['confirm_gate','project_service','experience_layer']"
|
|
2186
|
+
},
|
|
2187
|
+
"inactive": {
|
|
2188
|
+
"type": "array",
|
|
2189
|
+
"items": {
|
|
2190
|
+
"type": "string"
|
|
2191
|
+
},
|
|
2192
|
+
"description": "Phase 2 services currently inactive (can be toggled via config_operation). Example: ['harness','graph_persist']"
|
|
2193
|
+
}
|
|
2194
|
+
},
|
|
2195
|
+
"required": [
|
|
2196
|
+
"active"
|
|
2197
|
+
],
|
|
2198
|
+
"additionalProperties": false,
|
|
2199
|
+
"description": "Phase 2 runtime service status (populated when semantic_rich is enabled). Lets AI see active services in each response."
|
|
2200
|
+
},
|
|
2201
|
+
"customer_advice": {
|
|
2202
|
+
"type": "object",
|
|
2203
|
+
"properties": {
|
|
2204
|
+
"risk_score": {
|
|
2205
|
+
"type": "number",
|
|
2206
|
+
"minimum": 0,
|
|
2207
|
+
"maximum": 100,
|
|
2208
|
+
"description": "Composite risk score 0-100 (higher = safer). Relation: from risk-assessment.ts 4-dimension scoring. Example: 75"
|
|
2209
|
+
},
|
|
2210
|
+
"risk_level": {
|
|
2211
|
+
"type": "string",
|
|
2212
|
+
"enum": [
|
|
2213
|
+
"low",
|
|
2214
|
+
"medium_low",
|
|
2215
|
+
"medium_high",
|
|
2216
|
+
"high"
|
|
2217
|
+
],
|
|
2218
|
+
"description": "Risk level bucket. 'high' = strongly discourage purchase. Example: 'medium_high'"
|
|
2219
|
+
},
|
|
2220
|
+
"recommendations": {
|
|
2221
|
+
"type": "array",
|
|
2222
|
+
"items": {
|
|
2223
|
+
"type": "string"
|
|
2224
|
+
},
|
|
2225
|
+
"description": "Actionable recommendations for the buyer. Example: ['要求商家配置仲裁','通过 Messenger 协商退款条款']"
|
|
2226
|
+
},
|
|
2227
|
+
"reminders": {
|
|
2228
|
+
"type": "array",
|
|
2229
|
+
"items": {
|
|
2230
|
+
"type": "object",
|
|
2231
|
+
"properties": {
|
|
2232
|
+
"id": {
|
|
2233
|
+
"type": "string",
|
|
2234
|
+
"description": "Reminder rule id. Example: 'high_risk_score'"
|
|
2235
|
+
},
|
|
2236
|
+
"stage": {
|
|
2237
|
+
"type": "string",
|
|
2238
|
+
"enum": [
|
|
2239
|
+
"browse",
|
|
2240
|
+
"evaluate",
|
|
2241
|
+
"preorder",
|
|
2242
|
+
"in_progress",
|
|
2243
|
+
"complete",
|
|
2244
|
+
"after_sale"
|
|
2245
|
+
],
|
|
2246
|
+
"description": "Order lifecycle stage when this reminder fires. Example: 'evaluate'"
|
|
2247
|
+
},
|
|
2248
|
+
"priority": {
|
|
2249
|
+
"type": "string",
|
|
2250
|
+
"enum": [
|
|
2251
|
+
"required",
|
|
2252
|
+
"recommended",
|
|
2253
|
+
"info",
|
|
2254
|
+
"reminder"
|
|
2255
|
+
],
|
|
2256
|
+
"description": "Priority. 'required' = blocks purchase; 'recommended' = strong caution. Example: 'required'"
|
|
2257
|
+
},
|
|
2258
|
+
"message": {
|
|
2259
|
+
"type": "string",
|
|
2260
|
+
"description": "Human-readable reminder message. Example: '🔴 综合风险分 25/100,强烈建议不购买'"
|
|
2261
|
+
},
|
|
2262
|
+
"action": {
|
|
2263
|
+
"type": "string",
|
|
2264
|
+
"description": "Suggested next action. Example: 'require merchant to bind Arbitration before ordering'"
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
"required": [
|
|
2268
|
+
"id",
|
|
2269
|
+
"stage",
|
|
2270
|
+
"priority",
|
|
2271
|
+
"message"
|
|
2272
|
+
],
|
|
2273
|
+
"additionalProperties": false,
|
|
2274
|
+
"description": "A buyer-side reminder triggered at a specific order lifecycle stage (Phase 3 C-3)."
|
|
2275
|
+
},
|
|
2276
|
+
"description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'🔴 模糊 Guard 必须人工审查'}]"
|
|
2277
|
+
},
|
|
2278
|
+
"preference_match": {
|
|
2279
|
+
"type": "object",
|
|
2280
|
+
"properties": {
|
|
2281
|
+
"score": {
|
|
2282
|
+
"type": "number",
|
|
2283
|
+
"minimum": 0,
|
|
2284
|
+
"maximum": 100,
|
|
2285
|
+
"description": "Match score 0-100 (higher = better fit). Example: 75"
|
|
2286
|
+
},
|
|
2287
|
+
"matches": {
|
|
2288
|
+
"type": "array",
|
|
2289
|
+
"items": {
|
|
2290
|
+
"type": "string"
|
|
2291
|
+
},
|
|
2292
|
+
"description": "Aspects that match user preferences. Example: ['价格低于均价 10%','有仲裁']"
|
|
2293
|
+
},
|
|
2294
|
+
"mismatches": {
|
|
2295
|
+
"type": "array",
|
|
2296
|
+
"items": {
|
|
2297
|
+
"type": "string"
|
|
2298
|
+
},
|
|
2299
|
+
"description": "Aspects that mismatch user preferences. Example: ['交付周期超出期望']"
|
|
2300
|
+
}
|
|
2301
|
+
},
|
|
2302
|
+
"required": [
|
|
2303
|
+
"score",
|
|
2304
|
+
"matches",
|
|
2305
|
+
"mismatches"
|
|
2306
|
+
],
|
|
2307
|
+
"additionalProperties": false,
|
|
2308
|
+
"description": "Service-to-preference match (populated when user preferences exist). Example: {score:75, matches:[...], mismatches:[...]}"
|
|
2309
|
+
}
|
|
2310
|
+
},
|
|
2311
|
+
"required": [
|
|
2312
|
+
"recommendations",
|
|
2313
|
+
"reminders"
|
|
2314
|
+
],
|
|
2315
|
+
"additionalProperties": false,
|
|
2316
|
+
"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."
|
|
2317
|
+
},
|
|
2318
|
+
"evolution_context": {
|
|
2319
|
+
"type": "object",
|
|
2320
|
+
"properties": {
|
|
2321
|
+
"industry_signal": {
|
|
2322
|
+
"type": "string",
|
|
2323
|
+
"description": "Industry evolution signal summary. Example: '行业健康度 82/100(healthy);累积 25 个行业信号'"
|
|
2324
|
+
},
|
|
2325
|
+
"evolution_advice": {
|
|
2326
|
+
"type": "string",
|
|
2327
|
+
"description": "Evolution advice for the current operation. Example: '建议强制配置仲裁 + 赔偿金 + 交付 Guard'"
|
|
2328
|
+
},
|
|
2329
|
+
"confidence": {
|
|
2330
|
+
"type": "number",
|
|
2331
|
+
"minimum": 0,
|
|
2332
|
+
"maximum": 1,
|
|
2333
|
+
"description": "Confidence of the evolution context 0-1. <0.5 means no data yet. Example: 0.75"
|
|
2334
|
+
},
|
|
2335
|
+
"health_score": {
|
|
2336
|
+
"type": "number",
|
|
2337
|
+
"minimum": 0,
|
|
2338
|
+
"maximum": 100,
|
|
2339
|
+
"description": "Industry health score 0-100 if available. Example: 82"
|
|
2340
|
+
},
|
|
2341
|
+
"pending_suggestions": {
|
|
2342
|
+
"type": "integer",
|
|
2343
|
+
"minimum": 0,
|
|
2344
|
+
"description": "Count of pending industry update suggestions (filtered by role if role is set). Example: 3"
|
|
2345
|
+
},
|
|
2346
|
+
"intent": {
|
|
2347
|
+
"type": "string",
|
|
2348
|
+
"enum": [
|
|
2349
|
+
"default",
|
|
2350
|
+
"growth",
|
|
2351
|
+
"retention",
|
|
2352
|
+
"compliance",
|
|
2353
|
+
"efficiency",
|
|
2354
|
+
"trust_building",
|
|
2355
|
+
"custom"
|
|
2356
|
+
],
|
|
2357
|
+
"description": "Phase 4 P4-6.C: Current business intent driving the scoring model. Absent = 'default'. Example: 'growth'"
|
|
2358
|
+
},
|
|
2359
|
+
"role_advice": {
|
|
2360
|
+
"type": "array",
|
|
2361
|
+
"items": {
|
|
2362
|
+
"type": "string"
|
|
2363
|
+
},
|
|
2364
|
+
"description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['强化忠诚度飞轮','优化首单转化']"
|
|
2365
|
+
},
|
|
2366
|
+
"role": {
|
|
2367
|
+
"type": "string",
|
|
2368
|
+
"enum": [
|
|
2369
|
+
"user",
|
|
2370
|
+
"merchant",
|
|
2371
|
+
"arbitrator"
|
|
2372
|
+
],
|
|
2373
|
+
"description": "Phase 4 P4-6.C: Role used for advice routing. Example: 'merchant'"
|
|
2374
|
+
}
|
|
2375
|
+
},
|
|
2376
|
+
"required": [
|
|
2377
|
+
"confidence"
|
|
2378
|
+
],
|
|
2379
|
+
"additionalProperties": false,
|
|
2380
|
+
"description": "Phase 4 industry evolution context (populated when industry_evolution service is enabled). Provides AI with industry health signals and evolution advice."
|
|
2047
2381
|
}
|
|
2048
2382
|
},
|
|
2049
2383
|
"required": [
|
|
@@ -591,6 +591,21 @@
|
|
|
591
591
|
"referrer": {
|
|
592
592
|
"$ref": "#/definitions/env/properties/account",
|
|
593
593
|
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
594
|
+
},
|
|
595
|
+
"confirmed": {
|
|
596
|
+
"type": "boolean",
|
|
597
|
+
"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."
|
|
598
|
+
},
|
|
599
|
+
"user_intent_phrases": {
|
|
600
|
+
"type": "array",
|
|
601
|
+
"items": {
|
|
602
|
+
"type": "string"
|
|
603
|
+
},
|
|
604
|
+
"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."
|
|
605
|
+
},
|
|
606
|
+
"project": {
|
|
607
|
+
"type": "string",
|
|
608
|
+
"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."
|
|
594
609
|
}
|
|
595
610
|
},
|
|
596
611
|
"additionalProperties": false,
|
|
@@ -2212,9 +2227,10 @@
|
|
|
2212
2227
|
"description": "Previous node name"
|
|
2213
2228
|
},
|
|
2214
2229
|
"threshold": {
|
|
2215
|
-
"type":
|
|
2216
|
-
|
|
2217
|
-
|
|
2230
|
+
"type": [
|
|
2231
|
+
"number",
|
|
2232
|
+
"string"
|
|
2233
|
+
],
|
|
2218
2234
|
"description": "Threshold to trigger node advancement. If total Forward weight is greater than or equal to threshold, node advancement is triggered."
|
|
2219
2235
|
},
|
|
2220
2236
|
"forwards": {
|
|
@@ -2227,38 +2243,80 @@
|
|
|
2227
2243
|
"description": "Forward name"
|
|
2228
2244
|
},
|
|
2229
2245
|
"namedOperator": {
|
|
2230
|
-
"
|
|
2246
|
+
"anyOf": [
|
|
2247
|
+
{
|
|
2248
|
+
"type": "string"
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
"type": "null"
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"not": {}
|
|
2255
|
+
}
|
|
2256
|
+
],
|
|
2231
2257
|
"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)."
|
|
2232
2258
|
},
|
|
2233
2259
|
"permissionIndex": {
|
|
2234
|
-
"
|
|
2260
|
+
"anyOf": [
|
|
2261
|
+
{
|
|
2262
|
+
"type": "number"
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
"type": "string"
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
"type": "null"
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
"not": {}
|
|
2272
|
+
}
|
|
2273
|
+
],
|
|
2235
2274
|
"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)."
|
|
2236
2275
|
},
|
|
2237
2276
|
"weight": {
|
|
2238
|
-
"type":
|
|
2239
|
-
|
|
2240
|
-
|
|
2277
|
+
"type": [
|
|
2278
|
+
"number",
|
|
2279
|
+
"string"
|
|
2280
|
+
],
|
|
2241
2281
|
"description": "Forward weight"
|
|
2242
2282
|
},
|
|
2243
2283
|
"guard": {
|
|
2244
|
-
"
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
"
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2284
|
+
"anyOf": [
|
|
2285
|
+
{
|
|
2286
|
+
"type": "object",
|
|
2287
|
+
"properties": {
|
|
2288
|
+
"guard": {
|
|
2289
|
+
"type": "string",
|
|
2290
|
+
"description": "Guard object ID"
|
|
2291
|
+
},
|
|
2292
|
+
"retained_submission": {
|
|
2293
|
+
"anyOf": [
|
|
2294
|
+
{
|
|
2295
|
+
"type": "array",
|
|
2296
|
+
"items": {
|
|
2297
|
+
"type": [
|
|
2298
|
+
"number",
|
|
2299
|
+
"string"
|
|
2300
|
+
]
|
|
2301
|
+
}
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
"type": "null"
|
|
2305
|
+
}
|
|
2306
|
+
],
|
|
2307
|
+
"description": "Data submitted by user during Guard object verification"
|
|
2308
|
+
}
|
|
2254
2309
|
},
|
|
2255
|
-
"
|
|
2310
|
+
"required": [
|
|
2311
|
+
"guard"
|
|
2312
|
+
],
|
|
2313
|
+
"additionalProperties": false,
|
|
2314
|
+
"description": "Record of Guard object in MachineForwardGuard object"
|
|
2315
|
+
},
|
|
2316
|
+
{
|
|
2317
|
+
"type": "null"
|
|
2256
2318
|
}
|
|
2257
|
-
},
|
|
2258
|
-
"required": [
|
|
2259
|
-
"guard"
|
|
2260
2319
|
],
|
|
2261
|
-
"additionalProperties": false,
|
|
2262
2320
|
"description": "Guard object ID, if defined, Guard verification must also pass to complete Forward (e.g., completed promised supply chain sub-order)."
|
|
2263
2321
|
}
|
|
2264
2322
|
},
|
|
@@ -8639,6 +8697,21 @@
|
|
|
8639
8697
|
"referrer": {
|
|
8640
8698
|
"$ref": "#/definitions/data_gen_passport/properties/guard/anyOf/0",
|
|
8641
8699
|
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
8700
|
+
},
|
|
8701
|
+
"confirmed": {
|
|
8702
|
+
"type": "boolean",
|
|
8703
|
+
"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."
|
|
8704
|
+
},
|
|
8705
|
+
"user_intent_phrases": {
|
|
8706
|
+
"type": "array",
|
|
8707
|
+
"items": {
|
|
8708
|
+
"type": "string"
|
|
8709
|
+
},
|
|
8710
|
+
"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."
|
|
8711
|
+
},
|
|
8712
|
+
"project": {
|
|
8713
|
+
"type": "string",
|
|
8714
|
+
"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."
|
|
8642
8715
|
}
|
|
8643
8716
|
},
|
|
8644
8717
|
"additionalProperties": false,
|
|
@@ -398,6 +398,21 @@
|
|
|
398
398
|
"referrer": {
|
|
399
399
|
"$ref": "#/definitions/env/properties/account",
|
|
400
400
|
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
401
|
+
},
|
|
402
|
+
"confirmed": {
|
|
403
|
+
"type": "boolean",
|
|
404
|
+
"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."
|
|
405
|
+
},
|
|
406
|
+
"user_intent_phrases": {
|
|
407
|
+
"type": "array",
|
|
408
|
+
"items": {
|
|
409
|
+
"type": "string"
|
|
410
|
+
},
|
|
411
|
+
"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."
|
|
412
|
+
},
|
|
413
|
+
"project": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"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."
|
|
401
416
|
}
|
|
402
417
|
},
|
|
403
418
|
"additionalProperties": false,
|
|
@@ -650,6 +650,21 @@
|
|
|
650
650
|
"referrer": {
|
|
651
651
|
"$ref": "#/definitions/env/properties/account",
|
|
652
652
|
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
653
|
+
},
|
|
654
|
+
"confirmed": {
|
|
655
|
+
"type": "boolean",
|
|
656
|
+
"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."
|
|
657
|
+
},
|
|
658
|
+
"user_intent_phrases": {
|
|
659
|
+
"type": "array",
|
|
660
|
+
"items": {
|
|
661
|
+
"type": "string"
|
|
662
|
+
},
|
|
663
|
+
"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."
|
|
664
|
+
},
|
|
665
|
+
"project": {
|
|
666
|
+
"type": "string",
|
|
667
|
+
"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."
|
|
653
668
|
}
|
|
654
669
|
},
|
|
655
670
|
"additionalProperties": false,
|
|
@@ -337,6 +337,21 @@
|
|
|
337
337
|
"referrer": {
|
|
338
338
|
"$ref": "#/definitions/env/properties/account",
|
|
339
339
|
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
340
|
+
},
|
|
341
|
+
"confirmed": {
|
|
342
|
+
"type": "boolean",
|
|
343
|
+
"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."
|
|
344
|
+
},
|
|
345
|
+
"user_intent_phrases": {
|
|
346
|
+
"type": "array",
|
|
347
|
+
"items": {
|
|
348
|
+
"type": "string"
|
|
349
|
+
},
|
|
350
|
+
"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."
|
|
351
|
+
},
|
|
352
|
+
"project": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"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."
|
|
340
355
|
}
|
|
341
356
|
},
|
|
342
357
|
"additionalProperties": false,
|
|
@@ -468,6 +468,21 @@
|
|
|
468
468
|
"referrer": {
|
|
469
469
|
"$ref": "#/definitions/env/properties/account",
|
|
470
470
|
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
471
|
+
},
|
|
472
|
+
"confirmed": {
|
|
473
|
+
"type": "boolean",
|
|
474
|
+
"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."
|
|
475
|
+
},
|
|
476
|
+
"user_intent_phrases": {
|
|
477
|
+
"type": "array",
|
|
478
|
+
"items": {
|
|
479
|
+
"type": "string"
|
|
480
|
+
},
|
|
481
|
+
"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."
|
|
482
|
+
},
|
|
483
|
+
"project": {
|
|
484
|
+
"type": "string",
|
|
485
|
+
"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."
|
|
471
486
|
}
|
|
472
487
|
},
|
|
473
488
|
"additionalProperties": false,
|