@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
|
@@ -40,7 +40,21 @@
|
|
|
40
40
|
"plan_object_edit",
|
|
41
41
|
"apply_object_edit",
|
|
42
42
|
"patch_machine_nodes",
|
|
43
|
-
"patch_guard_tree"
|
|
43
|
+
"patch_guard_tree",
|
|
44
|
+
"recommend_industry",
|
|
45
|
+
"list_modes",
|
|
46
|
+
"derive_user_mode",
|
|
47
|
+
"evolve_user_mode",
|
|
48
|
+
"register_user_mode",
|
|
49
|
+
"unregister_user_mode",
|
|
50
|
+
"register_custom_metric",
|
|
51
|
+
"register_custom_constraint",
|
|
52
|
+
"list_metrics_constraints",
|
|
53
|
+
"analyze_intent",
|
|
54
|
+
"aggregate_risks",
|
|
55
|
+
"trace_substeps",
|
|
56
|
+
"merchant_guide",
|
|
57
|
+
"participation_radar"
|
|
44
58
|
],
|
|
45
59
|
"description": "Action to perform. Two categories:\n1. Project Entity + Evaluation (15, GLM6): list_projects, create_project, create_project_from_onchain, update_project, get_project_detail, add_object, remove_object, create_version, build_graph, get_graph, evaluate_project, save_evaluation, compare_projects, refresh_objects, get_object_diff. Projects are first-class entities with SQLite persistence, rigid project-object relationships, three-pathway graph construction, and a dual rule-based + LLM-assisted evaluation engine.\n2. Context Assembly (1): assemble_context (query on-chain object states + extract embedded history + optional events, and assemble a structured semantic context for LLM consumption). Required input: context_objects (array of object IDs/names). Optional: include_events (query recent state-transition events).\n3. Cross-Network Migration (FIX-012): clone_project_to_network (or its alias migrate_network) copies a source project's object metadata to a new project bound to target_network. The 5-step migration workflow: 1) call clone_project_to_network (or migrate_network) with target_network to copy metadata, 2) re-run onchain_operations with env.network=target_network to deploy objects on-chain, 3) re-register LocalMark names with the SAME names on the target network (FIX-011 cross-network consistency), 4) update_project to set service_address on the new project, 5) build_graph to construct the new project's relationship graph."
|
|
46
60
|
},
|
|
@@ -397,6 +411,674 @@
|
|
|
397
411
|
"type": "string"
|
|
398
412
|
},
|
|
399
413
|
"description": "Patch operations for patch_machine_nodes / patch_guard_tree. Each string is a single patch operation.\nMachine operations (13 total):\n 'add node <name>' | 'remove node <name>' | 'set description <node_name> <text...>'\n 'add edge <from> <to>' | 'remove edge <from> <to>' | 'set threshold <edge_from> <edge_to> <value>'\n 'add forward <edge_from> <edge_to> <forward_name>' | 'remove forward <edge_from> <edge_to> <forward_name>'\n 'set guard <edge_from> <edge_to> <forward_name> <guard_addr_or_name|none>'\n 'set permission <edge_from> <edge_to> <forward_name> <perm_index>'\n 'set operator <edge_from> <edge_to> <forward_name> <named_operator|none>'\n 'set weight <edge_from> <edge_to> <forward_name> <weight>'\n 'set retained_submission <edge_from> <edge_to> <forward_name> <comma_separated_indices|none>'\nGuard operations (8 total — see patch_guard_tree):\n 'add table <identifier> <name|none> <value_type> <b_submission> [json_value]'\n 'remove table <identifier>' | 'set table_value <identifier> [json_value|none]'\n 'set table_name <identifier> <name|none>' | 'set table_submission <identifier> <true|false>'\n 'set root <json_node>' | 'set rely <comma_separated_guard_addresses|none>'\nOperations are applied in order. Both patches are validated (validateMachine/validateGuard) before execution."
|
|
414
|
+
},
|
|
415
|
+
"intent": {
|
|
416
|
+
"type": "string",
|
|
417
|
+
"maxLength": 2000,
|
|
418
|
+
"description": "Business intent text for recommend_industry (e.g. 'I rent cameras to photographers with deposit and damage inspection'). Falls back to project_description / project_name when omitted."
|
|
419
|
+
},
|
|
420
|
+
"mode_source": {
|
|
421
|
+
"type": "string",
|
|
422
|
+
"description": "Source builtin mode name for derive_user_mode (e.g. 'freelance'). Call list_modes to see available modes."
|
|
423
|
+
},
|
|
424
|
+
"mode_name": {
|
|
425
|
+
"type": "string",
|
|
426
|
+
"maxLength": 100,
|
|
427
|
+
"description": "Mode name for derive_user_mode (new mode name), evolve_user_mode / unregister_user_mode (existing custom mode), register_user_mode (new mode name). Must NOT conflict with builtin mode names."
|
|
428
|
+
},
|
|
429
|
+
"mode_display_name": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"maxLength": 200,
|
|
432
|
+
"description": "Display name for derive_user_mode / register_user_mode. Defaults to mode_name."
|
|
433
|
+
},
|
|
434
|
+
"mode_changes": {
|
|
435
|
+
"type": "object",
|
|
436
|
+
"additionalProperties": {},
|
|
437
|
+
"description": "Mode field overrides for derive_user_mode / evolve_user_mode / register_user_mode. For register_user_mode, REQUIRED fields: machine_shape (non-empty array of {name, role}) and key_risk (string). Common overrides: machine_shape (array of {name:string, role:string}), config_overrides (per-object config), allocator, guards, build_notes, risk_appetite. R-M1-11 ENFORCED: machine_shape node names must NOT contain dispute/refund/arb terms — disputes flow through Service.arbitrations independently of the Machine."
|
|
438
|
+
},
|
|
439
|
+
"mode_change_description": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"maxLength": 500,
|
|
442
|
+
"description": "Change description for evolve_user_mode (recorded in evolution history)."
|
|
443
|
+
},
|
|
444
|
+
"mode_bump_version": {
|
|
445
|
+
"type": "boolean",
|
|
446
|
+
"description": "Whether evolve_user_mode bumps the patch version (default true: v1.0 → v1.1)."
|
|
447
|
+
},
|
|
448
|
+
"metric_id": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"maxLength": 100,
|
|
451
|
+
"description": "Unique metric ID for register_custom_metric (e.g. 'seasonality_risk')."
|
|
452
|
+
},
|
|
453
|
+
"metric_display_name": {
|
|
454
|
+
"type": "string",
|
|
455
|
+
"maxLength": 200,
|
|
456
|
+
"description": "Display name for register_custom_metric."
|
|
457
|
+
},
|
|
458
|
+
"metric_description": {
|
|
459
|
+
"type": "string",
|
|
460
|
+
"maxLength": 1000,
|
|
461
|
+
"description": "Description for register_custom_metric."
|
|
462
|
+
},
|
|
463
|
+
"metric_type": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"enum": [
|
|
466
|
+
"risk",
|
|
467
|
+
"benefit"
|
|
468
|
+
],
|
|
469
|
+
"description": "Metric type for register_custom_metric: 'risk' (negative) or 'benefit' (positive)."
|
|
470
|
+
},
|
|
471
|
+
"metric_scale": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"enum": [
|
|
474
|
+
"level",
|
|
475
|
+
"numeric",
|
|
476
|
+
"percentage"
|
|
477
|
+
],
|
|
478
|
+
"description": "Metric scale for register_custom_metric: 'level' (high/medium/low), 'numeric', or 'percentage'."
|
|
479
|
+
},
|
|
480
|
+
"metric_weight": {
|
|
481
|
+
"type": "number",
|
|
482
|
+
"minimum": 0,
|
|
483
|
+
"maximum": 10,
|
|
484
|
+
"description": "Metric weight for register_custom_metric (default 1.0)."
|
|
485
|
+
},
|
|
486
|
+
"constraint_id": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"maxLength": 100,
|
|
489
|
+
"description": "Unique constraint ID for register_custom_constraint."
|
|
490
|
+
},
|
|
491
|
+
"constraint_display_name": {
|
|
492
|
+
"type": "string",
|
|
493
|
+
"maxLength": 200,
|
|
494
|
+
"description": "Display name for register_custom_constraint."
|
|
495
|
+
},
|
|
496
|
+
"constraint_description": {
|
|
497
|
+
"type": "string",
|
|
498
|
+
"maxLength": 1000,
|
|
499
|
+
"description": "Description for register_custom_constraint."
|
|
500
|
+
},
|
|
501
|
+
"constraint_rule": {
|
|
502
|
+
"anyOf": [
|
|
503
|
+
{
|
|
504
|
+
"type": "object",
|
|
505
|
+
"properties": {
|
|
506
|
+
"type": {
|
|
507
|
+
"type": "string",
|
|
508
|
+
"const": "capability_required"
|
|
509
|
+
},
|
|
510
|
+
"capability_id": {
|
|
511
|
+
"type": "string"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"required": [
|
|
515
|
+
"type",
|
|
516
|
+
"capability_id"
|
|
517
|
+
],
|
|
518
|
+
"additionalProperties": false
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"type": "object",
|
|
522
|
+
"properties": {
|
|
523
|
+
"type": {
|
|
524
|
+
"type": "string",
|
|
525
|
+
"const": "capability_forbidden"
|
|
526
|
+
},
|
|
527
|
+
"capability_id": {
|
|
528
|
+
"type": "string"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"required": [
|
|
532
|
+
"type",
|
|
533
|
+
"capability_id"
|
|
534
|
+
],
|
|
535
|
+
"additionalProperties": false
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"type": "object",
|
|
539
|
+
"properties": {
|
|
540
|
+
"type": {
|
|
541
|
+
"type": "string",
|
|
542
|
+
"const": "numeric_limit"
|
|
543
|
+
},
|
|
544
|
+
"field": {
|
|
545
|
+
"type": "string"
|
|
546
|
+
},
|
|
547
|
+
"max": {
|
|
548
|
+
"type": "number"
|
|
549
|
+
},
|
|
550
|
+
"min": {
|
|
551
|
+
"type": "number"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"required": [
|
|
555
|
+
"type",
|
|
556
|
+
"field"
|
|
557
|
+
],
|
|
558
|
+
"additionalProperties": false
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"type": "object",
|
|
562
|
+
"properties": {
|
|
563
|
+
"type": {
|
|
564
|
+
"type": "string",
|
|
565
|
+
"const": "condition_required"
|
|
566
|
+
},
|
|
567
|
+
"condition": {
|
|
568
|
+
"type": "string"
|
|
569
|
+
},
|
|
570
|
+
"ai_evaluated": {
|
|
571
|
+
"type": "boolean",
|
|
572
|
+
"const": true
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"required": [
|
|
576
|
+
"type",
|
|
577
|
+
"condition",
|
|
578
|
+
"ai_evaluated"
|
|
579
|
+
],
|
|
580
|
+
"additionalProperties": false
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
"description": "Constraint rule for register_custom_constraint. 4 types: capability_required/capability_forbidden (capability_id), numeric_limit (field + max/min), condition_required (natural-language condition, AI-evaluated)."
|
|
584
|
+
},
|
|
585
|
+
"constraint_severity": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"enum": [
|
|
588
|
+
"hard",
|
|
589
|
+
"soft"
|
|
590
|
+
],
|
|
591
|
+
"description": "Constraint severity for register_custom_constraint: 'hard' blocks applyTemplate on violation; 'soft' only warns (default 'soft')."
|
|
592
|
+
},
|
|
593
|
+
"constraint_on_violation": {
|
|
594
|
+
"type": "string",
|
|
595
|
+
"enum": [
|
|
596
|
+
"block",
|
|
597
|
+
"warn",
|
|
598
|
+
"log"
|
|
599
|
+
],
|
|
600
|
+
"description": "Violation action for register_custom_constraint (default 'warn')."
|
|
601
|
+
},
|
|
602
|
+
"metric_type_filter": {
|
|
603
|
+
"type": "string",
|
|
604
|
+
"enum": [
|
|
605
|
+
"risk",
|
|
606
|
+
"benefit"
|
|
607
|
+
],
|
|
608
|
+
"description": "Filter list_metrics_constraints by metric type."
|
|
609
|
+
},
|
|
610
|
+
"scope_filter": {
|
|
611
|
+
"type": "string",
|
|
612
|
+
"enum": [
|
|
613
|
+
"builtin",
|
|
614
|
+
"custom"
|
|
615
|
+
],
|
|
616
|
+
"description": "Filter list_metrics_constraints by scope (builtin or custom)."
|
|
617
|
+
},
|
|
618
|
+
"target_objects": {
|
|
619
|
+
"type": "array",
|
|
620
|
+
"items": {
|
|
621
|
+
"type": "string"
|
|
622
|
+
},
|
|
623
|
+
"description": "Optional explicit target objects for analyze_intent (entry_ids or object_type names). When provided, puzzle snapshots are restricted to these objects."
|
|
624
|
+
},
|
|
625
|
+
"puzzles": {
|
|
626
|
+
"type": "object",
|
|
627
|
+
"additionalProperties": {
|
|
628
|
+
"type": "object",
|
|
629
|
+
"properties": {
|
|
630
|
+
"puzzle": {
|
|
631
|
+
"description": "Puzzle snapshot (opaque — pass through from analyze_intent output unchanged)."
|
|
632
|
+
},
|
|
633
|
+
"completeness": {
|
|
634
|
+
"description": "Completeness snapshot (opaque — pass through unchanged)."
|
|
635
|
+
},
|
|
636
|
+
"missing_dimensions": {
|
|
637
|
+
"type": "array",
|
|
638
|
+
"items": {
|
|
639
|
+
"type": "string"
|
|
640
|
+
},
|
|
641
|
+
"description": "Dimensions still missing for this object."
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
"required": [
|
|
645
|
+
"missing_dimensions"
|
|
646
|
+
],
|
|
647
|
+
"additionalProperties": false
|
|
648
|
+
},
|
|
649
|
+
"description": "Per-object puzzle snapshots for aggregate_risks, keyed by object_type. Pass the 'puzzles' field from a prior analyze_intent result UNCHANGED. When omitted but 'intent' is present, the handler runs analyze_intent first (C1→C2 in one call)."
|
|
650
|
+
},
|
|
651
|
+
"severity_threshold": {
|
|
652
|
+
"type": "string",
|
|
653
|
+
"enum": [
|
|
654
|
+
"CRITICAL",
|
|
655
|
+
"HIGH",
|
|
656
|
+
"MEDIUM",
|
|
657
|
+
"LOW",
|
|
658
|
+
"INFO"
|
|
659
|
+
],
|
|
660
|
+
"description": "Severity threshold for aggregate_risks (default 'HIGH'). Risks at or above this level block deployment (status RISK_BLOCKED)."
|
|
661
|
+
},
|
|
662
|
+
"user_confirmed_high_risks": {
|
|
663
|
+
"type": "array",
|
|
664
|
+
"items": {
|
|
665
|
+
"type": "string"
|
|
666
|
+
},
|
|
667
|
+
"description": "IDs of HIGH risks the user has already confirmed in a prior round (aggregate_risks). Confirmed HIGH risks no longer trigger RISK_PENDING_CONFIRM."
|
|
668
|
+
},
|
|
669
|
+
"planned_objects": {
|
|
670
|
+
"type": "array",
|
|
671
|
+
"items": {
|
|
672
|
+
"type": "object",
|
|
673
|
+
"properties": {
|
|
674
|
+
"object_type": {
|
|
675
|
+
"type": "string",
|
|
676
|
+
"description": "Wowok object type (e.g. 'service', 'guard', 'machine')."
|
|
677
|
+
},
|
|
678
|
+
"is_new": {
|
|
679
|
+
"type": "boolean",
|
|
680
|
+
"description": "true when creating a NEW object; false when reusing an existing one."
|
|
681
|
+
},
|
|
682
|
+
"name": {
|
|
683
|
+
"type": "string",
|
|
684
|
+
"description": "Planned object name (for readable messages)."
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"required": [
|
|
688
|
+
"object_type",
|
|
689
|
+
"is_new"
|
|
690
|
+
],
|
|
691
|
+
"additionalProperties": false
|
|
692
|
+
},
|
|
693
|
+
"description": "Planned objects for aggregate_risks OBJECT_REUSE check (safety-rules). Flags NEW objects whose type carries an always/strongly-recommended reuse rule."
|
|
694
|
+
},
|
|
695
|
+
"planned_operations": {
|
|
696
|
+
"type": "array",
|
|
697
|
+
"items": {
|
|
698
|
+
"type": "object",
|
|
699
|
+
"properties": {
|
|
700
|
+
"object_type": {
|
|
701
|
+
"type": "string",
|
|
702
|
+
"description": "Wowok object type (e.g. 'service', 'arbitration')."
|
|
703
|
+
},
|
|
704
|
+
"trigger": {
|
|
705
|
+
"type": "string",
|
|
706
|
+
"enum": [
|
|
707
|
+
"create",
|
|
708
|
+
"publish"
|
|
709
|
+
],
|
|
710
|
+
"description": "Lifecycle trigger that locks fields."
|
|
711
|
+
},
|
|
712
|
+
"name": {
|
|
713
|
+
"type": "string",
|
|
714
|
+
"description": "Object name (for readable messages)."
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"required": [
|
|
718
|
+
"object_type",
|
|
719
|
+
"trigger"
|
|
720
|
+
],
|
|
721
|
+
"additionalProperties": false
|
|
722
|
+
},
|
|
723
|
+
"description": "Planned create/publish operations for aggregate_risks IMMUTABILITY check (safety-rules). Warns which fields become permanently locked after each operation."
|
|
724
|
+
},
|
|
725
|
+
"substeps": {
|
|
726
|
+
"type": "array",
|
|
727
|
+
"items": {
|
|
728
|
+
"type": "object",
|
|
729
|
+
"properties": {
|
|
730
|
+
"step_id": {
|
|
731
|
+
"type": "string",
|
|
732
|
+
"description": "Substep id, format 'T<step>.<substep>' e.g. 'T1.1'."
|
|
733
|
+
},
|
|
734
|
+
"parent_step": {
|
|
735
|
+
"type": "string",
|
|
736
|
+
"description": "Parent step id, format 'T<step>' e.g. 'T1'."
|
|
737
|
+
},
|
|
738
|
+
"object_type": {
|
|
739
|
+
"type": "string",
|
|
740
|
+
"enum": [
|
|
741
|
+
"service",
|
|
742
|
+
"machine",
|
|
743
|
+
"guard",
|
|
744
|
+
"permission",
|
|
745
|
+
"reward",
|
|
746
|
+
"arb",
|
|
747
|
+
"progress",
|
|
748
|
+
"treasury",
|
|
749
|
+
"demand",
|
|
750
|
+
"repository",
|
|
751
|
+
"contact",
|
|
752
|
+
"order",
|
|
753
|
+
"allocation",
|
|
754
|
+
"personal",
|
|
755
|
+
"payment",
|
|
756
|
+
"proof"
|
|
757
|
+
],
|
|
758
|
+
"description": "Wowok object type this substep operates on."
|
|
759
|
+
},
|
|
760
|
+
"entry_id": {
|
|
761
|
+
"type": "string",
|
|
762
|
+
"description": "Puzzle entry_id this substep corresponds to."
|
|
763
|
+
},
|
|
764
|
+
"operation_type": {
|
|
765
|
+
"type": "string",
|
|
766
|
+
"description": "operation_type for onchain_operations."
|
|
767
|
+
},
|
|
768
|
+
"network": {
|
|
769
|
+
"type": "string",
|
|
770
|
+
"enum": [
|
|
771
|
+
"testnet",
|
|
772
|
+
"mainnet"
|
|
773
|
+
],
|
|
774
|
+
"description": "Target network."
|
|
775
|
+
},
|
|
776
|
+
"input": {
|
|
777
|
+
"type": "object",
|
|
778
|
+
"properties": {
|
|
779
|
+
"data": {
|
|
780
|
+
"type": "object",
|
|
781
|
+
"additionalProperties": {},
|
|
782
|
+
"description": "Input data payload."
|
|
783
|
+
},
|
|
784
|
+
"input_refs": {
|
|
785
|
+
"type": "array",
|
|
786
|
+
"items": {
|
|
787
|
+
"type": "string"
|
|
788
|
+
},
|
|
789
|
+
"description": "Upstream substep_ids this substep consumes."
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
"required": [
|
|
793
|
+
"data",
|
|
794
|
+
"input_refs"
|
|
795
|
+
],
|
|
796
|
+
"additionalProperties": false
|
|
797
|
+
},
|
|
798
|
+
"output": {
|
|
799
|
+
"type": "object",
|
|
800
|
+
"properties": {
|
|
801
|
+
"object_id": {
|
|
802
|
+
"type": "string"
|
|
803
|
+
},
|
|
804
|
+
"tx_digest": {
|
|
805
|
+
"type": "string"
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"additionalProperties": {},
|
|
809
|
+
"description": "Output data (filled after execution)."
|
|
810
|
+
},
|
|
811
|
+
"timestamp": {
|
|
812
|
+
"type": "number",
|
|
813
|
+
"description": "Execution timestamp (ms)."
|
|
814
|
+
},
|
|
815
|
+
"status": {
|
|
816
|
+
"type": "string",
|
|
817
|
+
"enum": [
|
|
818
|
+
"PENDING",
|
|
819
|
+
"SUCCESS",
|
|
820
|
+
"FAILED",
|
|
821
|
+
"SKIPPED"
|
|
822
|
+
],
|
|
823
|
+
"description": "Execution status."
|
|
824
|
+
},
|
|
825
|
+
"failure_reason": {
|
|
826
|
+
"type": "string",
|
|
827
|
+
"description": "Failure reason (when status='FAILED')."
|
|
828
|
+
},
|
|
829
|
+
"dependencies": {
|
|
830
|
+
"type": "object",
|
|
831
|
+
"properties": {
|
|
832
|
+
"input_refs": {
|
|
833
|
+
"type": "array",
|
|
834
|
+
"items": {
|
|
835
|
+
"type": "string"
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"output_refs": {
|
|
839
|
+
"type": "array",
|
|
840
|
+
"items": {
|
|
841
|
+
"type": "object",
|
|
842
|
+
"properties": {
|
|
843
|
+
"substep_id": {
|
|
844
|
+
"type": "string",
|
|
845
|
+
"description": "Downstream substep that consumes this output."
|
|
846
|
+
},
|
|
847
|
+
"field_path": {
|
|
848
|
+
"type": "string",
|
|
849
|
+
"description": "Field path produced by this substep (e.g. 'permission_address')."
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"required": [
|
|
853
|
+
"substep_id",
|
|
854
|
+
"field_path"
|
|
855
|
+
],
|
|
856
|
+
"additionalProperties": false
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
"required": [
|
|
861
|
+
"input_refs",
|
|
862
|
+
"output_refs"
|
|
863
|
+
],
|
|
864
|
+
"additionalProperties": false,
|
|
865
|
+
"description": "Dependencies (input_refs + output_refs)."
|
|
866
|
+
},
|
|
867
|
+
"retry_info": {
|
|
868
|
+
"type": "object",
|
|
869
|
+
"properties": {
|
|
870
|
+
"original_step_id": {
|
|
871
|
+
"type": "string"
|
|
872
|
+
},
|
|
873
|
+
"retry_count": {
|
|
874
|
+
"type": "number"
|
|
875
|
+
},
|
|
876
|
+
"retry_reason": {
|
|
877
|
+
"type": "string"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
"required": [
|
|
881
|
+
"original_step_id",
|
|
882
|
+
"retry_count",
|
|
883
|
+
"retry_reason"
|
|
884
|
+
],
|
|
885
|
+
"additionalProperties": false,
|
|
886
|
+
"description": "Retry info (when this substep is a retry of an earlier one)."
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"required": [
|
|
890
|
+
"step_id",
|
|
891
|
+
"parent_step",
|
|
892
|
+
"object_type",
|
|
893
|
+
"entry_id",
|
|
894
|
+
"operation_type",
|
|
895
|
+
"network",
|
|
896
|
+
"input",
|
|
897
|
+
"timestamp",
|
|
898
|
+
"status",
|
|
899
|
+
"dependencies"
|
|
900
|
+
],
|
|
901
|
+
"additionalProperties": false
|
|
902
|
+
},
|
|
903
|
+
"description": "Substep execution records for trace_substeps (63-spec §2.1). Required when action='trace_substeps'. Construct from your deployment execution trace."
|
|
904
|
+
},
|
|
905
|
+
"substep_edges": {
|
|
906
|
+
"type": "array",
|
|
907
|
+
"items": {
|
|
908
|
+
"type": "object",
|
|
909
|
+
"properties": {
|
|
910
|
+
"source": {
|
|
911
|
+
"type": "string",
|
|
912
|
+
"description": "Source substep id."
|
|
913
|
+
},
|
|
914
|
+
"target": {
|
|
915
|
+
"type": "string",
|
|
916
|
+
"description": "Target substep id (depends on source)."
|
|
917
|
+
},
|
|
918
|
+
"field_path": {
|
|
919
|
+
"type": "string",
|
|
920
|
+
"description": "Field path flowing along this edge."
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
"required": [
|
|
924
|
+
"source",
|
|
925
|
+
"target",
|
|
926
|
+
"field_path"
|
|
927
|
+
],
|
|
928
|
+
"additionalProperties": false
|
|
929
|
+
},
|
|
930
|
+
"description": "Explicit DAG edges for trace_substeps. When omitted, edges are derived from each substep's input_refs."
|
|
931
|
+
},
|
|
932
|
+
"guide_state": {
|
|
933
|
+
"type": "object",
|
|
934
|
+
"properties": {
|
|
935
|
+
"intent_text": {
|
|
936
|
+
"type": "string",
|
|
937
|
+
"description": "Step 1: raw merchant business description."
|
|
938
|
+
},
|
|
939
|
+
"confirmed_industry": {
|
|
940
|
+
"type": "string",
|
|
941
|
+
"description": "Step 2: merchant-confirmed industry id."
|
|
942
|
+
},
|
|
943
|
+
"currency": {
|
|
944
|
+
"type": "string",
|
|
945
|
+
"description": "Step 5: payment currency (default WOW)."
|
|
946
|
+
},
|
|
947
|
+
"deliverables": {
|
|
948
|
+
"type": "array",
|
|
949
|
+
"items": {},
|
|
950
|
+
"description": "Step 4: merchant-defined deliverables (opaque passthrough)."
|
|
951
|
+
},
|
|
952
|
+
"payment_override": {
|
|
953
|
+
"type": "object",
|
|
954
|
+
"additionalProperties": {},
|
|
955
|
+
"description": "Step 5: payment structure overrides (opaque passthrough)."
|
|
956
|
+
},
|
|
957
|
+
"trust_override": {
|
|
958
|
+
"type": "object",
|
|
959
|
+
"additionalProperties": {},
|
|
960
|
+
"description": "Step 6: trust mechanism overrides (opaque passthrough)."
|
|
961
|
+
},
|
|
962
|
+
"adopted_module_ids": {
|
|
963
|
+
"type": "array",
|
|
964
|
+
"items": {
|
|
965
|
+
"type": "string"
|
|
966
|
+
},
|
|
967
|
+
"description": "Step 6: merchant-confirmed business module ids."
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
"required": [
|
|
971
|
+
"intent_text"
|
|
972
|
+
],
|
|
973
|
+
"additionalProperties": false,
|
|
974
|
+
"description": "Wizard state from a prior merchant_guide result. Pass back UNCHANGED on every subsequent call (same pattern as C1→C2 puzzles). The handler re-runs the pipeline deterministically and advances to the furthest reachable step."
|
|
975
|
+
},
|
|
976
|
+
"guide_confirm": {
|
|
977
|
+
"type": "object",
|
|
978
|
+
"properties": {
|
|
979
|
+
"industry": {
|
|
980
|
+
"type": "string",
|
|
981
|
+
"description": "Step 2 confirmation: industry id (e.g. 'freelance')."
|
|
982
|
+
},
|
|
983
|
+
"currency": {
|
|
984
|
+
"type": "string",
|
|
985
|
+
"description": "Step 5 confirmation: payment currency."
|
|
986
|
+
},
|
|
987
|
+
"deliverables": {
|
|
988
|
+
"type": "array",
|
|
989
|
+
"items": {},
|
|
990
|
+
"description": "Step 4 confirmation: deliverable definitions."
|
|
991
|
+
},
|
|
992
|
+
"payment": {
|
|
993
|
+
"type": "object",
|
|
994
|
+
"additionalProperties": {},
|
|
995
|
+
"description": "Step 5 confirmation: { model, triggers, allocation } overrides."
|
|
996
|
+
},
|
|
997
|
+
"trust": {
|
|
998
|
+
"type": "object",
|
|
999
|
+
"additionalProperties": {},
|
|
1000
|
+
"description": "Step 6 confirmation: { refundPolicy, arbitration, escrow } overrides."
|
|
1001
|
+
},
|
|
1002
|
+
"adopted_module_ids": {
|
|
1003
|
+
"type": "array",
|
|
1004
|
+
"items": {
|
|
1005
|
+
"type": "string"
|
|
1006
|
+
},
|
|
1007
|
+
"description": "Step 6 confirmation: business module ids to adopt (overrides recommendation)."
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
"additionalProperties": false,
|
|
1011
|
+
"description": "Merchant decisions for the current wizard step. Merged over guide_state. Typical flow: call 1 with intent only → receive step-2 industry options → call 2 with guide_state + guide_confirm={industry} → receive full blueprint plan (steps 7-10)."
|
|
1012
|
+
},
|
|
1013
|
+
"radar_account": {
|
|
1014
|
+
"type": "string",
|
|
1015
|
+
"description": "Account to analyze — address (0x...) or LocalMark name (resolved to an address). Required when action='participation_radar'. The perspective (customer/operator/observer) is DERIVED from on-chain data (Order.builder + PermissionPerm grants) — never asserted by this field."
|
|
1016
|
+
},
|
|
1017
|
+
"radar_targets": {
|
|
1018
|
+
"type": "array",
|
|
1019
|
+
"items": {
|
|
1020
|
+
"type": "object",
|
|
1021
|
+
"properties": {
|
|
1022
|
+
"progress": {
|
|
1023
|
+
"type": "string",
|
|
1024
|
+
"description": "Progress object address (0x...) or LocalMark name. The Progress carries the current node + bound Machine."
|
|
1025
|
+
},
|
|
1026
|
+
"order": {
|
|
1027
|
+
"type": "string",
|
|
1028
|
+
"description": "Order object address or LocalMark name (optional but recommended — enables order-holder detection, service-level compensation/reward claims, and dispute context)."
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
"required": [
|
|
1032
|
+
"progress"
|
|
1033
|
+
],
|
|
1034
|
+
"additionalProperties": false
|
|
1035
|
+
},
|
|
1036
|
+
"minItems": 1,
|
|
1037
|
+
"maxItems": 20,
|
|
1038
|
+
"description": "In-flight orders to analyze (1-20). Required when action='participation_radar'. Each target is analyzed independently; results are aggregated into one account dashboard."
|
|
1039
|
+
},
|
|
1040
|
+
"radar_include_alerts": {
|
|
1041
|
+
"type": "boolean",
|
|
1042
|
+
"description": "Attach order-monitor alerts (progress stall / compensation fund / review & arbitration windows) to each per-order result. Default true."
|
|
1043
|
+
},
|
|
1044
|
+
"radar_monitor_thresholds": {
|
|
1045
|
+
"type": "object",
|
|
1046
|
+
"properties": {
|
|
1047
|
+
"progress_stall_hours": {
|
|
1048
|
+
"type": "number",
|
|
1049
|
+
"exclusiveMinimum": 0,
|
|
1050
|
+
"description": "Progress stall alert threshold in HOURS. Default 0 = auto (expected_node_duration × 2)."
|
|
1051
|
+
},
|
|
1052
|
+
"compensation_drop_ratio": {
|
|
1053
|
+
"type": "number",
|
|
1054
|
+
"minimum": 0,
|
|
1055
|
+
"maximum": 1,
|
|
1056
|
+
"description": "Compensation fund drop alert ratio (0-1). Default 0.3 = alert on ≥30% drop."
|
|
1057
|
+
},
|
|
1058
|
+
"compensation_coverage_min": {
|
|
1059
|
+
"type": "number",
|
|
1060
|
+
"minimum": 0,
|
|
1061
|
+
"maximum": 1,
|
|
1062
|
+
"description": "Minimum compensation coverage ratio vs order amount (0-1). Default 1.0 = must fully cover."
|
|
1063
|
+
},
|
|
1064
|
+
"messenger_timeout_hours": {
|
|
1065
|
+
"type": "number",
|
|
1066
|
+
"exclusiveMinimum": 0,
|
|
1067
|
+
"description": "Messenger no-reply timeout in HOURS. Default 24."
|
|
1068
|
+
},
|
|
1069
|
+
"review_window_closing_days": {
|
|
1070
|
+
"type": "number",
|
|
1071
|
+
"exclusiveMinimum": 0,
|
|
1072
|
+
"description": "Review window near-closing alert threshold in DAYS. Default 3."
|
|
1073
|
+
},
|
|
1074
|
+
"arb_window_closing_days": {
|
|
1075
|
+
"type": "number",
|
|
1076
|
+
"exclusiveMinimum": 0,
|
|
1077
|
+
"description": "Arbitration window near-closing alert threshold in DAYS. Default 3."
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
"additionalProperties": false,
|
|
1081
|
+
"description": "Optional per-call overrides for order-monitor alert thresholds (only used when radar_include_alerts is on). All fields optional; omitted fields keep defaults. Units: hours/days as marked per field."
|
|
400
1082
|
}
|
|
401
1083
|
},
|
|
402
1084
|
"required": [
|