@wowok/agent-mcp 2.6.3 → 2.6.4
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/customer/customer-advice.d.ts +31 -0
- package/dist/customer/customer-advice.js +129 -0
- package/dist/customer/index.d.ts +2 -0
- package/dist/customer/index.js +2 -0
- package/dist/customer/info-puzzle.d.ts +8 -1
- package/dist/customer/info-puzzle.js +30 -5
- package/dist/customer/order-monitor.d.ts +2 -0
- package/dist/customer/order-monitor.js +3 -2
- package/dist/customer/post-purchase.d.ts +2 -0
- package/dist/customer/post-purchase.js +6 -5
- package/dist/customer/preorder-compare.d.ts +24 -0
- package/dist/customer/preorder-compare.js +34 -0
- package/dist/customer/reminder-system.d.ts +2 -0
- package/dist/customer/reminder-system.js +2 -1
- package/dist/customer/risk-assessment.js +4 -3
- package/dist/customer/types.d.ts +5 -0
- package/dist/examples/arbitration-dispute-create.json +41 -0
- package/dist/examples/arbitration-vote-weighted.json +35 -0
- package/dist/examples/arbitration-voting-guard-add.json +38 -0
- package/dist/examples/demand-present-service.json +33 -0
- package/dist/examples/gen-passport-verify-guard.json +48 -0
- package/dist/examples/guard-template-balance-check.json +36 -15
- package/dist/examples/guard-template-time-lock.json +33 -12
- package/dist/examples/insurance-guard-claim-timelock.json +75 -0
- package/dist/examples/insurance-guard-withdraw-allocation.json +96 -0
- package/dist/examples/insurance-machine-create-publish.json +75 -0
- package/dist/examples/insurance-service-allocators-publish.json +56 -0
- package/dist/examples/machine-multisig-threshold.json +86 -0
- package/dist/examples/machine-template-7node-rental.json +99 -94
- package/dist/examples/payment-scenario-bound.json +45 -0
- package/dist/examples/rental-ziroom-machine-create.json +126 -114
- package/dist/examples/rental-ziroom-permission-create.json +10 -3
- package/dist/examples/rental-ziroom-service-create.json +27 -18
- package/dist/examples/retail-adv-guard-customer-win-create.json +80 -0
- package/dist/examples/retail-adv-guard-messenger-proof-create.json +65 -0
- package/dist/examples/retail-adv-guard-reward-timeout-create.json +92 -0
- package/dist/examples/retail-adv-reward-guard-add.json +51 -0
- package/dist/examples/retail-myshop-allocation-activate.json +55 -0
- package/dist/examples/retail-myshop-arbitration-create.json +40 -0
- package/dist/examples/retail-myshop-contact-create.json +43 -0
- package/dist/examples/retail-myshop-order-create.json +56 -0
- package/dist/examples/retail-myshop-progress-operate.json +38 -0
- package/dist/examples/retail-myshop-reward-create.json +35 -0
- package/dist/examples/service-discount-issue.json +46 -0
- package/dist/examples/threebody-guard-create.json +56 -0
- package/dist/examples/threebody-machine-create.json +72 -0
- package/dist/examples/threebody-permission-create.json +38 -0
- package/dist/examples/threebody-service-allocators.json +49 -0
- package/dist/examples/travel-guard-time-lock.json +69 -0
- package/dist/examples/travel-guard-weather-oracle.json +70 -0
- package/dist/examples/travel-machine-create.json +136 -0
- package/dist/examples/travel-repository-create.json +47 -0
- package/dist/examples/travel-service-create.json +102 -0
- package/dist/examples/travel-treasury-create.json +34 -0
- package/dist/examples/treasury-deposit.json +37 -0
- package/dist/examples/treasury-withdraw.json +38 -0
- package/dist/extensions/business-modules.d.ts +49 -0
- package/dist/extensions/business-modules.js +287 -0
- package/dist/extensions/capability-manifest.js +192 -5
- package/dist/extensions/constraint-registry.js +3 -1
- package/dist/extensions/modes.js +10 -4
- package/dist/extensions/registry.d.ts +14 -9
- package/dist/extensions/registry.js +69 -14
- package/dist/extensions/types.d.ts +1 -0
- package/dist/knowledge/fund-layer.d.ts +67 -1
- package/dist/knowledge/fund-layer.js +561 -12
- package/dist/knowledge/guard-templates.d.ts +10 -0
- package/dist/knowledge/guard-templates.js +50 -0
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +2 -2
- package/dist/knowledge/machine-risk.js +4 -1
- package/dist/knowledge/progress-context.js +1 -1
- package/dist/knowledge/progress-ledger.js +3 -3
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/progress-translation.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +83 -1
- package/dist/knowledge/safety-rules.js +166 -2
- package/dist/knowledge/scenario-modes.d.ts +1 -1
- package/dist/knowledge/scenario-modes.js +13 -11
- package/dist/knowledge/template-registry.d.ts +48 -0
- package/dist/knowledge/template-registry.js +341 -0
- package/dist/knowledge/tool-constraints.js +6 -6
- package/dist/knowledge/tools-reference.js +11 -8
- package/dist/participation/merchant-interest.d.ts +32 -0
- package/dist/participation/merchant-interest.js +100 -0
- package/dist/participation/radar-core.d.ts +104 -0
- package/dist/participation/radar-core.js +269 -0
- package/dist/project/context-assembly.js +8 -0
- package/dist/project/edit-planner.js +27 -56
- package/dist/project/evaluation.d.ts +36 -0
- package/dist/project/evaluation.js +422 -56
- package/dist/project/game-theory.d.ts +43 -0
- package/dist/project/game-theory.js +177 -0
- package/dist/project/graph-builder.js +1 -0
- package/dist/project/handlers.d.ts +38 -0
- package/dist/project/handlers.js +65 -35
- package/dist/project/intent-analyzer.d.ts +71 -0
- package/dist/project/intent-analyzer.js +149 -0
- package/dist/project/machine-nodes.d.ts +2 -0
- package/dist/project/machine-nodes.js +36 -0
- package/dist/project/merchant-guide.d.ts +165 -0
- package/dist/project/merchant-guide.js +264 -0
- package/dist/project/mode-actions.d.ts +199 -0
- package/dist/project/mode-actions.js +309 -0
- package/dist/project/participation-radar.d.ts +18 -0
- package/dist/project/participation-radar.js +428 -0
- package/dist/project/pipeline-actions.d.ts +101 -0
- package/dist/project/pipeline-actions.js +109 -0
- package/dist/project/semantic-graph.d.ts +95 -0
- package/dist/project/semantic-graph.js +245 -0
- package/dist/schema/call/allocation.d.ts +11 -11
- package/dist/schema/call/allocation.js +11 -1
- package/dist/schema/call/arbitration.d.ts +21 -21
- package/dist/schema/call/arbitration.js +17 -9
- package/dist/schema/call/base.d.ts +2 -2
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +127 -127
- package/dist/schema/call/bridge.js +12 -12
- package/dist/schema/call/contact.d.ts +3 -3
- package/dist/schema/call/demand.d.ts +3 -3
- package/dist/schema/call/guard.d.ts +11 -11
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +216 -21
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +7 -7
- package/dist/schema/call/payment.d.ts +3 -3
- package/dist/schema/call/permission.d.ts +3 -3
- package/dist/schema/call/personal.d.ts +337 -3
- package/dist/schema/call/personal.js +10 -0
- package/dist/schema/call/progress.d.ts +177 -9
- package/dist/schema/call/progress.js +7 -3
- package/dist/schema/call/proof.d.ts +6 -6
- package/dist/schema/call/repository.d.ts +3 -3
- package/dist/schema/call/reward.d.ts +57 -57
- package/dist/schema/call/semantic.js +41 -1
- package/dist/schema/call/service.d.ts +114 -114
- package/dist/schema/call/service.js +11 -2
- package/dist/schema/call/treasury.d.ts +57 -57
- package/dist/schema/messenger/index.js +4 -1
- package/dist/schema/operations.d.ts +713 -291
- package/dist/schema/operations.js +33 -0
- package/dist/schema/project/index.d.ts +4635 -100
- package/dist/schema/project/index.js +868 -1
- package/dist/schema/query/index.d.ts +363 -19
- package/dist/schema/query/index.js +25 -3
- package/dist/schema/schema-query/index.d.ts +13 -7
- package/dist/schema/schema-query/index.js +29 -5
- package/dist/schema/trust/index.d.ts +1012 -6
- package/dist/schema/trust/index.js +212 -11
- package/dist/schema/utils/skills-recommendation.js +1 -0
- package/dist/schema-query/index.d.ts +4 -1
- package/dist/schema-query/index.js +255 -1
- package/dist/schemas/bridge_operation.schema.json +14 -7
- package/dist/schemas/guard2file.schema.json +2 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +2 -0
- package/dist/schemas/messenger_operation.schema.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +143 -15
- package/dist/schemas/onchain_operations_allocation.schema.json +2 -1
- package/dist/schemas/onchain_operations_arbitration.schema.json +7 -5
- package/dist/schemas/onchain_operations_contact.schema.json +1 -0
- package/dist/schemas/onchain_operations_demand.schema.json +1 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +2 -0
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -0
- package/dist/schemas/onchain_operations_guard.schema.json +578 -0
- package/dist/schemas/onchain_operations_machine.schema.json +1 -0
- package/dist/schemas/onchain_operations_order.schema.json +4 -3
- package/dist/schemas/onchain_operations_payment.schema.json +1 -0
- package/dist/schemas/onchain_operations_permission.schema.json +1 -0
- package/dist/schemas/onchain_operations_personal.schema.json +37 -0
- package/dist/schemas/onchain_operations_progress.schema.json +90 -3
- package/dist/schemas/onchain_operations_proof.schema.json +1 -0
- package/dist/schemas/onchain_operations_repository.schema.json +1 -0
- package/dist/schemas/onchain_operations_reward.schema.json +1 -0
- package/dist/schemas/onchain_operations_service.schema.json +4 -3
- package/dist/schemas/onchain_operations_treasury.schema.json +1 -0
- package/dist/schemas/project_operation.output.json +2243 -1
- package/dist/schemas/project_operation.schema.json +683 -1
- package/dist/schemas/query_toolkit.output.json +1 -1
- package/dist/schemas/query_toolkit.schema.json +37 -0
- package/dist/schemas/schema_query.output.json +1 -1
- package/dist/schemas/schema_query.schema.json +30 -5
- package/dist/schemas/trust_score.output.json +392 -1
- package/dist/schemas/trust_score.schema.json +275 -1
- package/dist/tools/handlers/onchain.js +73 -8
- package/dist/tools/handlers/project.js +46 -0
- package/dist/tools/handlers/query.js +117 -2
- package/dist/tools/handlers/schema-query.js +41 -0
- package/dist/tools/handlers/trust.js +192 -6
- package/dist/tools/index.js +52 -9
- package/dist/tools/wrap.js +194 -15
- package/package.json +2 -2
|
@@ -2652,7 +2652,7 @@
|
|
|
2652
2652
|
},
|
|
2653
2653
|
"wip_hash": {
|
|
2654
2654
|
"type": "string",
|
|
2655
|
-
"description": "
|
|
2655
|
+
"description": "SHA-256 hash (hex string) of the sale's WIP file, committed on-chain by the merchant. BUY RULE: if this is NON-EMPTY, the buyer MUST pass this exact value as wip_hash when creating an order (ServiceBuyItem.wip_hash) — NEVER use \"\". Pinning the on-chain hash prevents the merchant from replacing the WIP file (a legitimate update) between the buyer's view and order placement, ensuring 'what you see is what you get'. EMPTY means no hash was committed (TESTING ONLY, no delivery-integrity guarantee)."
|
|
2656
2656
|
}
|
|
2657
2657
|
},
|
|
2658
2658
|
"required": [
|
|
@@ -584,6 +584,43 @@
|
|
|
584
584
|
],
|
|
585
585
|
"additionalProperties": false,
|
|
586
586
|
"description": "FORENSICS TOOL — query all transactions sent by an address. WARNING: like onchain_object_history, this can lead to non-convergent queries. For AI context building, use assemble_context (extracts embedded history) or query_events (real-time transitions) instead. This tool is for auditing/user-activity profiling only. Returns: TransactionHistoryAnswer | undefined"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"type": "object",
|
|
590
|
+
"properties": {
|
|
591
|
+
"query_type": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"const": "token_value_convert"
|
|
594
|
+
},
|
|
595
|
+
"token_type": {
|
|
596
|
+
"$ref": "#/definitions/query_toolkit/anyOf/4/properties/token_type",
|
|
597
|
+
"description": "Full token type in Move format: 0x<package>::<module>::<struct>. Examples: \"0x2::wow::WOW\" (9 decimals). The token's decimals drive the conversion — resolved from official registry → local cache → on-chain coin metadata."
|
|
598
|
+
},
|
|
599
|
+
"raw": {
|
|
600
|
+
"type": [
|
|
601
|
+
"string",
|
|
602
|
+
"number"
|
|
603
|
+
],
|
|
604
|
+
"description": "Raw smallest-unit value (u64, e.g. \"2200000000\") to convert TO a human unit value. Provide EXACTLY ONE of raw / unit."
|
|
605
|
+
},
|
|
606
|
+
"unit": {
|
|
607
|
+
"type": [
|
|
608
|
+
"string",
|
|
609
|
+
"number"
|
|
610
|
+
],
|
|
611
|
+
"description": "Human unit value (e.g. \"2.2\") to convert TO raw smallest units (u64). Provide EXACTLY ONE of raw / unit. Conversion is REFUSED when the token's decimals cannot be resolved (guessing would forge wrong on-chain values)."
|
|
612
|
+
},
|
|
613
|
+
"network": {
|
|
614
|
+
"$ref": "#/definitions/query_toolkit/anyOf/4/properties/network",
|
|
615
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on. FIX-010 cross-network note: LocalMark names are scoped per network (testnet marks are invisible on mainnet and vice versa). When migrating from testnet to mainnet, recreate all objects on mainnet and re-register LocalMark names with the SAME names to keep name-based references working across networks. Use project_operation action='clone_project_to_network' to clone the project blueprint to the target network, then re-run onchain_operations with env.network=target_network to deploy."
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
"required": [
|
|
619
|
+
"query_type",
|
|
620
|
+
"token_type"
|
|
621
|
+
],
|
|
622
|
+
"additionalProperties": false,
|
|
623
|
+
"description": "Convert between raw on-chain smallest units (u64) and human unit values, in EITHER direction. Provide EXACTLY ONE of raw / unit (handler-validated). raw → unit: \"2200000000\" → \"2.2\" (pass-through when precision unknown). unit → raw: \"2.2\" → \"2200000000\" (REFUSED when precision unknown — never guesses decimals). Use this before displaying chain values to users, and before entering amounts for on-chain operations. Returns: { token_type, symbol?, decimals?, precision_known, direction, input, output, error?, text }"
|
|
587
624
|
}
|
|
588
625
|
]
|
|
589
626
|
}
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
{
|
|
110
110
|
"type": "object",
|
|
111
111
|
"additionalProperties": {},
|
|
112
|
-
"description": "JSON Schema object (get/get_output/get_field)
|
|
112
|
+
"description": "JSON Schema object (get/get_output/get_field), Guard template data, tool reference data (get_tool_reference), Guard design pattern catalog (get_guard_design_patterns), or safety rules tables (get_safety_rules)."
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"type": "null",
|
|
@@ -18,17 +18,21 @@
|
|
|
18
18
|
"list_operations",
|
|
19
19
|
"get_guard_templates",
|
|
20
20
|
"get_field",
|
|
21
|
-
"search_examples"
|
|
21
|
+
"search_examples",
|
|
22
|
+
"get_tool_reference",
|
|
23
|
+
"get_guard_design_patterns",
|
|
24
|
+
"get_safety_rules",
|
|
25
|
+
"get_templates"
|
|
22
26
|
],
|
|
23
|
-
"description": "Action to perform: 'list' (all schemas), 'get' (specific input schema), 'get_output' (tool output schema), 'get_field' (field-path query e.g. field_path='data.node'), 'search' (by keyword), 'list_operations' (on-chain operations), 'get_guard_templates' (Guard creation templates + best practices), 'search_examples' (search verified example files by keyword — matches title, description, tags, operation_type, industry)."
|
|
27
|
+
"description": "Action to perform: 'list' (all schemas), 'get' (specific input schema), 'get_output' (tool output schema), 'get_field' (field-path query e.g. field_path='data.node'), 'search' (by keyword), 'list_operations' (on-chain operations), 'get_guard_templates' (Guard creation templates + best practices), 'search_examples' (search verified example files by keyword — matches title, description, tags, operation_type, industry), 'get_tool_reference' (MCP tool usage reference: summaries, actions, prerequisites, notes — sunk from wowok-tools skill), 'get_guard_design_patterns' (curated Guard design pattern catalog: business requirement → logic tree template — sunk from wowok-guard skill), 'get_safety_rules' (object reuse/immutability/operation-classification/naming rules — sunk from wowok-safety skill), 'get_templates' (unified template registry: ~90 parameterized templates across 11 object types — guard/machine/service/order/progress/arbitration/treasury/permission/passport/allocation/reward; omit 'template' to list metadata, provide 'template' for full detail, provide 'template' + 'params' to instantiate into executable JSON)."
|
|
24
28
|
},
|
|
25
29
|
"name": {
|
|
26
30
|
"type": "string",
|
|
27
|
-
"description": "Schema/tool name for 'get'/'get_output'/'get_field' action (e.g., 'onchain_operations', 'onchain_operations_machine')."
|
|
31
|
+
"description": "Schema/tool name for 'get'/'get_output'/'get_field'/'get_tool_reference' action (e.g., 'onchain_operations', 'onchain_operations_machine'), or pattern id for 'get_guard_design_patterns' (e.g., 'pattern.identity_check_allowlist')."
|
|
28
32
|
},
|
|
29
33
|
"query": {
|
|
30
34
|
"type": "string",
|
|
31
|
-
"description": "Search query for 'search' action"
|
|
35
|
+
"description": "Search query for 'search' action, keyword filter for 'get_tool_reference', or host filter for 'get_guard_design_patterns' (e.g. 'service_buy_guard', 'machine_forward', 'reward_claim')."
|
|
32
36
|
},
|
|
33
37
|
"field_path": {
|
|
34
38
|
"type": "string",
|
|
@@ -36,7 +40,28 @@
|
|
|
36
40
|
},
|
|
37
41
|
"template": {
|
|
38
42
|
"type": "string",
|
|
39
|
-
"description": "Guard template name for 'get_guard_templates' action. Omit to list all available templates. Available: signer_verification, progress_node_check, order_owner_verification, service_belonging_check, reward_not_claimed, combined_reward_guard."
|
|
43
|
+
"description": "Guard template name for 'get_guard_templates' action. Omit to list all available templates. Available: signer_verification, progress_node_check, order_owner_verification, service_belonging_check, reward_not_claimed, combined_reward_guard. For 'get_templates': unified template id (e.g. 'tpl_buy_guard_whitelist', 'tpl_machine_ecommerce_standard', 'T-S-01', 'T-O-01', 'first_order')."
|
|
44
|
+
},
|
|
45
|
+
"object_type": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": [
|
|
48
|
+
"guard",
|
|
49
|
+
"machine",
|
|
50
|
+
"service",
|
|
51
|
+
"order",
|
|
52
|
+
"progress",
|
|
53
|
+
"arbitration",
|
|
54
|
+
"treasury",
|
|
55
|
+
"permission",
|
|
56
|
+
"passport",
|
|
57
|
+
"allocation",
|
|
58
|
+
"reward"
|
|
59
|
+
],
|
|
60
|
+
"description": "Object-type filter for 'get_templates' list mode (e.g. 'guard' lists only Guard templates)."
|
|
61
|
+
},
|
|
62
|
+
"params": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "JSON-encoded parameter object for 'get_templates' instantiation mode (e.g. '{\"whitelist\":[\"0xabc\"]}'). Required params are declared in each template's 'parameters' list (see detail mode)."
|
|
40
65
|
},
|
|
41
66
|
"output_file": {
|
|
42
67
|
"type": "string",
|
|
@@ -304,6 +304,397 @@
|
|
|
304
304
|
],
|
|
305
305
|
"additionalProperties": false,
|
|
306
306
|
"description": "InfoPuzzle summary — present only when depth >= 'evaluate'."
|
|
307
|
+
},
|
|
308
|
+
"preorder_advice": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"properties": {
|
|
311
|
+
"confidence": {
|
|
312
|
+
"type": "object",
|
|
313
|
+
"properties": {
|
|
314
|
+
"score": {
|
|
315
|
+
"type": "number",
|
|
316
|
+
"minimum": 0,
|
|
317
|
+
"maximum": 100,
|
|
318
|
+
"description": "Composite order confidence (0-100, higher = safer to order)."
|
|
319
|
+
},
|
|
320
|
+
"base": {
|
|
321
|
+
"type": "number",
|
|
322
|
+
"description": "Base confidence = 100 - risk.total."
|
|
323
|
+
},
|
|
324
|
+
"user_adjustment": {
|
|
325
|
+
"type": "number",
|
|
326
|
+
"description": "User-controllable adjustment from user_metrics (±cap)."
|
|
327
|
+
},
|
|
328
|
+
"preference_nudge": {
|
|
329
|
+
"type": "number",
|
|
330
|
+
"description": "Preference-match nudge (±5, only when preferences were provided)."
|
|
331
|
+
},
|
|
332
|
+
"explanation": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"description": "Transparent breakdown of the confidence components."
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": [
|
|
338
|
+
"score",
|
|
339
|
+
"base",
|
|
340
|
+
"user_adjustment",
|
|
341
|
+
"preference_nudge",
|
|
342
|
+
"explanation"
|
|
343
|
+
],
|
|
344
|
+
"additionalProperties": false,
|
|
345
|
+
"description": "ConfidenceScore — user-controllable composite order confidence."
|
|
346
|
+
},
|
|
347
|
+
"industry": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"enum": [
|
|
350
|
+
"freelance",
|
|
351
|
+
"rental",
|
|
352
|
+
"education",
|
|
353
|
+
"travel",
|
|
354
|
+
"subscription",
|
|
355
|
+
"retail"
|
|
356
|
+
],
|
|
357
|
+
"description": "Industry used for the industry-specific risk checks (explicit input or inferred)."
|
|
358
|
+
},
|
|
359
|
+
"strategies": {
|
|
360
|
+
"type": "array",
|
|
361
|
+
"items": {
|
|
362
|
+
"type": "object",
|
|
363
|
+
"properties": {
|
|
364
|
+
"scenario": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"enum": [
|
|
367
|
+
"info_asymmetry",
|
|
368
|
+
"fund_safety",
|
|
369
|
+
"refund_dispute",
|
|
370
|
+
"arbitration_fairness",
|
|
371
|
+
"pricing",
|
|
372
|
+
"delivery_sla",
|
|
373
|
+
"quality_verification",
|
|
374
|
+
"after_sales"
|
|
375
|
+
],
|
|
376
|
+
"description": "Game scenario detected from the puzzle."
|
|
377
|
+
},
|
|
378
|
+
"merchant_tactic": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"description": "Merchant's potential tactic in this scenario."
|
|
381
|
+
},
|
|
382
|
+
"user_strategy": {
|
|
383
|
+
"type": "string",
|
|
384
|
+
"description": "Recommended user-side strategy (protection/mitigation)."
|
|
385
|
+
},
|
|
386
|
+
"nash_equilibrium": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"description": "Win-win equilibrium the strategy pushes toward."
|
|
389
|
+
},
|
|
390
|
+
"confidence": {
|
|
391
|
+
"type": "number",
|
|
392
|
+
"minimum": 0,
|
|
393
|
+
"maximum": 1,
|
|
394
|
+
"description": "Strategy confidence (0-1)."
|
|
395
|
+
},
|
|
396
|
+
"fallback": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"description": "Alternative when the user rejects the main strategy."
|
|
399
|
+
},
|
|
400
|
+
"rationale": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"description": "Trigger-condition explanation from puzzle evidence."
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"required": [
|
|
406
|
+
"scenario",
|
|
407
|
+
"merchant_tactic",
|
|
408
|
+
"user_strategy",
|
|
409
|
+
"nash_equilibrium",
|
|
410
|
+
"confidence",
|
|
411
|
+
"rationale"
|
|
412
|
+
],
|
|
413
|
+
"additionalProperties": false
|
|
414
|
+
},
|
|
415
|
+
"description": "Top merchant-vs-user game strategies (user side, max 3)."
|
|
416
|
+
},
|
|
417
|
+
"preference_match": {
|
|
418
|
+
"type": "object",
|
|
419
|
+
"properties": {
|
|
420
|
+
"score": {
|
|
421
|
+
"type": "number",
|
|
422
|
+
"minimum": 0,
|
|
423
|
+
"maximum": 100,
|
|
424
|
+
"description": "Preference match score (0-100)."
|
|
425
|
+
},
|
|
426
|
+
"matches": {
|
|
427
|
+
"type": "array",
|
|
428
|
+
"items": {
|
|
429
|
+
"type": "string"
|
|
430
|
+
},
|
|
431
|
+
"description": "Aspects matching the user's preferences."
|
|
432
|
+
},
|
|
433
|
+
"mismatches": {
|
|
434
|
+
"type": "array",
|
|
435
|
+
"items": {
|
|
436
|
+
"type": "string"
|
|
437
|
+
},
|
|
438
|
+
"description": "Aspects mismatching the user's preferences."
|
|
439
|
+
},
|
|
440
|
+
"warnings": {
|
|
441
|
+
"type": "array",
|
|
442
|
+
"items": {
|
|
443
|
+
"type": "string"
|
|
444
|
+
},
|
|
445
|
+
"description": "Match warnings (e.g. budget stretch)."
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"required": [
|
|
449
|
+
"score",
|
|
450
|
+
"matches",
|
|
451
|
+
"mismatches",
|
|
452
|
+
"warnings"
|
|
453
|
+
],
|
|
454
|
+
"additionalProperties": false,
|
|
455
|
+
"description": "PreferenceMatchResult — present when preferences (input or profile) were available."
|
|
456
|
+
},
|
|
457
|
+
"preference_issues": {
|
|
458
|
+
"type": "array",
|
|
459
|
+
"items": {
|
|
460
|
+
"type": "string"
|
|
461
|
+
},
|
|
462
|
+
"description": "Validation issues found in the merged preferences (e.g. budget min > max)."
|
|
463
|
+
},
|
|
464
|
+
"industry_risks": {
|
|
465
|
+
"type": "object",
|
|
466
|
+
"properties": {
|
|
467
|
+
"score_adjustment": {
|
|
468
|
+
"type": "number",
|
|
469
|
+
"description": "Industry risk adjustment applied to the base risk score (-10 to +10)."
|
|
470
|
+
},
|
|
471
|
+
"summary": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"description": "Industry risk assessment summary."
|
|
474
|
+
},
|
|
475
|
+
"checks": {
|
|
476
|
+
"type": "array",
|
|
477
|
+
"items": {
|
|
478
|
+
"$ref": "#/definitions/trust_score/properties/result/properties/risk_score/properties/dimensions/items/properties/checks/items"
|
|
479
|
+
},
|
|
480
|
+
"description": "Industry-specific risk checks."
|
|
481
|
+
},
|
|
482
|
+
"unmet_needs": {
|
|
483
|
+
"type": "array",
|
|
484
|
+
"items": {
|
|
485
|
+
"type": "object",
|
|
486
|
+
"properties": {
|
|
487
|
+
"id": {
|
|
488
|
+
"type": "string",
|
|
489
|
+
"description": "Need identifier."
|
|
490
|
+
},
|
|
491
|
+
"tier": {
|
|
492
|
+
"type": "string",
|
|
493
|
+
"enum": [
|
|
494
|
+
"common",
|
|
495
|
+
"personalized",
|
|
496
|
+
"advanced"
|
|
497
|
+
],
|
|
498
|
+
"description": "Need tier."
|
|
499
|
+
},
|
|
500
|
+
"description": {
|
|
501
|
+
"type": "string",
|
|
502
|
+
"description": "Need description."
|
|
503
|
+
},
|
|
504
|
+
"advice": {
|
|
505
|
+
"type": "string",
|
|
506
|
+
"description": "Advice for fulfilling the need."
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"required": [
|
|
510
|
+
"id",
|
|
511
|
+
"tier",
|
|
512
|
+
"description"
|
|
513
|
+
],
|
|
514
|
+
"additionalProperties": false
|
|
515
|
+
},
|
|
516
|
+
"description": "Industry needs not satisfied by this Service."
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"required": [
|
|
520
|
+
"score_adjustment",
|
|
521
|
+
"summary",
|
|
522
|
+
"checks",
|
|
523
|
+
"unmet_needs"
|
|
524
|
+
],
|
|
525
|
+
"additionalProperties": false,
|
|
526
|
+
"description": "IndustryRiskResult — industry pain-point checks (needs met / risks triggered)."
|
|
527
|
+
},
|
|
528
|
+
"reminders": {
|
|
529
|
+
"type": "array",
|
|
530
|
+
"items": {
|
|
531
|
+
"type": "object",
|
|
532
|
+
"properties": {
|
|
533
|
+
"id": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"description": "Reminder rule identifier."
|
|
536
|
+
},
|
|
537
|
+
"stage": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"enum": [
|
|
540
|
+
"browse",
|
|
541
|
+
"evaluate",
|
|
542
|
+
"preorder",
|
|
543
|
+
"in_progress",
|
|
544
|
+
"complete",
|
|
545
|
+
"after_sale"
|
|
546
|
+
],
|
|
547
|
+
"description": "Workflow stage this reminder belongs to."
|
|
548
|
+
},
|
|
549
|
+
"priority": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"enum": [
|
|
552
|
+
"required",
|
|
553
|
+
"recommended",
|
|
554
|
+
"info",
|
|
555
|
+
"reminder"
|
|
556
|
+
],
|
|
557
|
+
"description": "Priority: required = blocking, recommended = strongly suggested."
|
|
558
|
+
},
|
|
559
|
+
"message": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"description": "Human-readable reminder message."
|
|
562
|
+
},
|
|
563
|
+
"action": {
|
|
564
|
+
"type": "string",
|
|
565
|
+
"description": "Suggested follow-up action, if any."
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
"required": [
|
|
569
|
+
"id",
|
|
570
|
+
"stage",
|
|
571
|
+
"priority",
|
|
572
|
+
"message"
|
|
573
|
+
],
|
|
574
|
+
"additionalProperties": false
|
|
575
|
+
},
|
|
576
|
+
"description": "Transaction-safety reminders at the preorder stage (sorted, capped)."
|
|
577
|
+
},
|
|
578
|
+
"blocking_reminders": {
|
|
579
|
+
"type": "array",
|
|
580
|
+
"items": {
|
|
581
|
+
"$ref": "#/definitions/trust_score/properties/result/properties/preorder_advice/properties/reminders/items"
|
|
582
|
+
},
|
|
583
|
+
"description": "Blocking (priority=required) reminders — resolve these before ordering."
|
|
584
|
+
},
|
|
585
|
+
"summary": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"description": "AI-ready paragraph summarizing the whole preorder report."
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"required": [
|
|
591
|
+
"confidence",
|
|
592
|
+
"strategies",
|
|
593
|
+
"reminders",
|
|
594
|
+
"blocking_reminders",
|
|
595
|
+
"summary"
|
|
596
|
+
],
|
|
597
|
+
"additionalProperties": false,
|
|
598
|
+
"description": "PreorderAdvice (GLM6/94 §3) — present only when depth = 'preorder'. AI presents evidence and options; the USER decides whether to order."
|
|
599
|
+
},
|
|
600
|
+
"comparison": {
|
|
601
|
+
"type": "object",
|
|
602
|
+
"properties": {
|
|
603
|
+
"rows": {
|
|
604
|
+
"type": "array",
|
|
605
|
+
"items": {
|
|
606
|
+
"type": "object",
|
|
607
|
+
"properties": {
|
|
608
|
+
"service_id": {
|
|
609
|
+
"type": "string"
|
|
610
|
+
},
|
|
611
|
+
"service_name": {
|
|
612
|
+
"type": "string"
|
|
613
|
+
},
|
|
614
|
+
"error": {
|
|
615
|
+
"type": "string",
|
|
616
|
+
"description": "Per-service evaluation failure (row excluded from best-per-metric)."
|
|
617
|
+
},
|
|
618
|
+
"industry": {
|
|
619
|
+
"$ref": "#/definitions/trust_score/properties/result/properties/preorder_advice/properties/industry"
|
|
620
|
+
},
|
|
621
|
+
"confidence": {
|
|
622
|
+
"type": "number",
|
|
623
|
+
"description": "Order confidence 0-100 (higher = safer)."
|
|
624
|
+
},
|
|
625
|
+
"risk_total": {
|
|
626
|
+
"type": "number",
|
|
627
|
+
"description": "Risk score 0-100 (lower = safer)."
|
|
628
|
+
},
|
|
629
|
+
"risk_level": {
|
|
630
|
+
"type": "string"
|
|
631
|
+
},
|
|
632
|
+
"trust_score": {
|
|
633
|
+
"type": "number",
|
|
634
|
+
"description": "Trust score 0-100 (higher = more trustworthy)."
|
|
635
|
+
},
|
|
636
|
+
"trust_level": {
|
|
637
|
+
"type": "string"
|
|
638
|
+
},
|
|
639
|
+
"preference_match": {
|
|
640
|
+
"type": "number",
|
|
641
|
+
"description": "Preference match 0-100 (higher = better fit)."
|
|
642
|
+
},
|
|
643
|
+
"reputation_like_ratio": {
|
|
644
|
+
"type": "number",
|
|
645
|
+
"description": "likes/(likes+dislikes); 1 when no votes."
|
|
646
|
+
},
|
|
647
|
+
"reputation_votes": {
|
|
648
|
+
"type": "number"
|
|
649
|
+
},
|
|
650
|
+
"red_flags_count": {
|
|
651
|
+
"type": "number"
|
|
652
|
+
},
|
|
653
|
+
"blocking_reminders_count": {
|
|
654
|
+
"type": "number"
|
|
655
|
+
},
|
|
656
|
+
"info_gaps_count": {
|
|
657
|
+
"type": "number"
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
"required": [
|
|
661
|
+
"service_id",
|
|
662
|
+
"service_name"
|
|
663
|
+
],
|
|
664
|
+
"additionalProperties": false
|
|
665
|
+
},
|
|
666
|
+
"description": "One row per evaluated service (primary first, then compare_with candidates)."
|
|
667
|
+
},
|
|
668
|
+
"best_per_metric": {
|
|
669
|
+
"type": "object",
|
|
670
|
+
"additionalProperties": {
|
|
671
|
+
"type": "array",
|
|
672
|
+
"items": {
|
|
673
|
+
"type": "string"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"description": "metric name → service_ids with the best value (ties all listed). Per-metric ONLY."
|
|
677
|
+
},
|
|
678
|
+
"evaluated_metrics": {
|
|
679
|
+
"type": "array",
|
|
680
|
+
"items": {
|
|
681
|
+
"type": "string"
|
|
682
|
+
},
|
|
683
|
+
"description": "Metrics actually compared (skipped when fewer than 2 rows have data)."
|
|
684
|
+
},
|
|
685
|
+
"note": {
|
|
686
|
+
"type": "string",
|
|
687
|
+
"description": "Neutrality note: no overall ranking; metric weights belong to the buyer."
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
"required": [
|
|
691
|
+
"rows",
|
|
692
|
+
"best_per_metric",
|
|
693
|
+
"evaluated_metrics",
|
|
694
|
+
"note"
|
|
695
|
+
],
|
|
696
|
+
"additionalProperties": false,
|
|
697
|
+
"description": "Deterministic multi-service comparison (GLM6/94 L6) — present only when depth='preorder' and compare_with is provided. Per-metric bests ONLY, no overall ranking — the buyer decides."
|
|
307
698
|
}
|
|
308
699
|
},
|
|
309
700
|
"required": [
|
|
@@ -315,7 +706,7 @@
|
|
|
315
706
|
"depth"
|
|
316
707
|
],
|
|
317
708
|
"additionalProperties": false,
|
|
318
|
-
"description": "Trust score result. Contains: trust_score (ServiceTrustScore), risk_score (RiskScore, when depth >= evaluate), info_puzzle summary, and service_basics snapshot."
|
|
709
|
+
"description": "Trust score result. Contains: trust_score (ServiceTrustScore), risk_score (RiskScore, when depth >= evaluate), info_puzzle summary, preorder_advice (PreorderAdvice, when depth = preorder), comparison (PreorderComparison, when depth = preorder and compare_with given), and service_basics snapshot."
|
|
319
710
|
}
|
|
320
711
|
},
|
|
321
712
|
"required": [
|