@wowok/agent-mcp 2.2.13 → 2.2.14

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.
Files changed (126) hide show
  1. package/dist/index.js +42 -98
  2. package/dist/schema-query/index.d.ts +29 -0
  3. package/dist/schema-query/index.js +149 -0
  4. package/dist/schemas/account_operation.schema.json +255 -0
  5. package/dist/schemas/guard2file.schema.json +71 -0
  6. package/dist/schemas/index.json +139 -0
  7. package/dist/schemas/local_info_operation.schema.json +142 -0
  8. package/dist/schemas/local_mark_operation.schema.json +119 -0
  9. package/dist/schemas/machineNode2file.schema.json +71 -0
  10. package/dist/schemas/messenger_operation.schema.json +1393 -0
  11. package/dist/schemas/onchain_events.schema.json +113 -0
  12. package/dist/schemas/onchain_operations.schema.json +376 -0
  13. package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
  14. package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
  15. package/dist/schemas/onchain_operations_contact.schema.json +853 -0
  16. package/dist/schemas/onchain_operations_demand.schema.json +984 -0
  17. package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
  18. package/dist/schemas/onchain_operations_guard.schema.json +713 -0
  19. package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
  20. package/dist/schemas/onchain_operations_order.schema.json +830 -0
  21. package/dist/schemas/onchain_operations_payment.schema.json +717 -0
  22. package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
  23. package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
  24. package/dist/schemas/onchain_operations_progress.schema.json +751 -0
  25. package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
  26. package/dist/schemas/onchain_operations_reward.schema.json +955 -0
  27. package/dist/schemas/onchain_operations_service.schema.json +1411 -0
  28. package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
  29. package/dist/schemas/onchain_table_data.schema.json +35 -0
  30. package/dist/schemas/operations/guard.json +163 -0
  31. package/dist/schemas/operations/permission.json +22 -0
  32. package/dist/schemas/query_toolkit.schema.json +32 -0
  33. package/dist/schemas/schema_query.schema.json +33 -0
  34. package/dist/schemas/wip_file.schema.json +27 -0
  35. package/dist/schemas/wowok_buildin_info.schema.json +487 -0
  36. package/package.json +7 -5
  37. package/dist/docs/index.d.ts +0 -3
  38. package/dist/docs/index.js +0 -2
  39. package/dist/docs/loader.d.ts +0 -12
  40. package/dist/docs/loader.js +0 -177
  41. package/dist/docs/search.d.ts +0 -17
  42. package/dist/docs/search.js +0 -325
  43. package/dist/docs/types.d.ts +0 -55
  44. package/dist/docs/types.js +0 -1
  45. package/docs/README.md +0 -249
  46. package/docs/WIP.md +0 -388
  47. package/docs/WTS.md +0 -536
  48. package/docs/docs/account.md +0 -914
  49. package/docs/docs/allocation.md +0 -635
  50. package/docs/docs/arbitration.md +0 -1804
  51. package/docs/docs/arbitration_state_machine.md +0 -270
  52. package/docs/docs/contact.md +0 -709
  53. package/docs/docs/demand.md +0 -948
  54. package/docs/docs/guard.md +0 -1465
  55. package/docs/docs/localinfo.md +0 -432
  56. package/docs/docs/localmark.md +0 -583
  57. package/docs/docs/machine.md +0 -2490
  58. package/docs/docs/messenger.md +0 -2098
  59. package/docs/docs/onchain_events.md +0 -267
  60. package/docs/docs/order.md +0 -1001
  61. package/docs/docs/payment.md +0 -512
  62. package/docs/docs/permission.md +0 -1438
  63. package/docs/docs/personal.md +0 -742
  64. package/docs/docs/progress.md +0 -1748
  65. package/docs/docs/query.md +0 -467
  66. package/docs/docs/repository.md +0 -1043
  67. package/docs/docs/reward.md +0 -833
  68. package/docs/docs/service.md +0 -2130
  69. package/docs/docs/stage-01-introduction.md +0 -243
  70. package/docs/docs/stage-02-trust.md +0 -302
  71. package/docs/docs/stage-03-collaboration.md +0 -337
  72. package/docs/docs/stage-04-transaction.md +0 -277
  73. package/docs/docs/stage-05-business.md +0 -151
  74. package/docs/docs/stage-06-personal.md +0 -203
  75. package/docs/docs/stage-07-query.md +0 -572
  76. package/docs/docs/stage-08-examples.md +0 -184
  77. package/docs/docs/treasury.md +0 -1149
  78. package/docs/docs/wowok_buildin_info.md +0 -740
  79. package/docs/examples/Insurance/Insurance.md +0 -594
  80. package/docs/examples/Insurance/Insurance_TestResults.md +0 -481
  81. package/docs/examples/Insurance/insurance_complete_guard_v1.json +0 -50
  82. package/docs/examples/MyShop/MyShop.md +0 -1353
  83. package/docs/examples/MyShop/MyShop_TestResults.md +0 -1003
  84. package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +0 -1898
  85. package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +0 -1297
  86. package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +0 -743
  87. package/docs/examples/MyShop_Advanced/machine_nodes.json +0 -222
  88. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +0 -776
  89. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +0 -599
  90. package/docs/examples/Travel/Travel.md +0 -1157
  91. package/docs/examples/Travel/Travel_TestResults.md +0 -743
  92. package/docs/examples/Travel/calc-weather-timestamps.js +0 -8
  93. package/docs/examples/Travel/travel_machine_v2_export.json +0 -104
  94. package/docs/examples/Travel/weather_check_guard_v1.json +0 -51
  95. package/docs/skills/WOWOK.md +0 -650
  96. package/docs/skills/onchain_operations/_common.md +0 -406
  97. package/docs/skills/onchain_operations/_index.md +0 -196
  98. package/docs/skills/onchain_operations/allocation.md +0 -28
  99. package/docs/skills/onchain_operations/arbitration.md +0 -106
  100. package/docs/skills/onchain_operations/contact.md +0 -40
  101. package/docs/skills/onchain_operations/demand.md +0 -53
  102. package/docs/skills/onchain_operations/gen_passport.md +0 -23
  103. package/docs/skills/onchain_operations/guard.md +0 -56
  104. package/docs/skills/onchain_operations/machine.md +0 -89
  105. package/docs/skills/onchain_operations/order.md +0 -56
  106. package/docs/skills/onchain_operations/payment.md +0 -24
  107. package/docs/skills/onchain_operations/permission.md +0 -68
  108. package/docs/skills/onchain_operations/personal.md +0 -58
  109. package/docs/skills/onchain_operations/progress.md +0 -38
  110. package/docs/skills/onchain_operations/repository.md +0 -70
  111. package/docs/skills/onchain_operations/reward.md +0 -38
  112. package/docs/skills/onchain_operations/service.md +0 -78
  113. package/docs/skills/onchain_operations/treasury.md +0 -68
  114. package/docs/skills/schema-account_operation.md +0 -402
  115. package/docs/skills/schema-guard2file.md +0 -153
  116. package/docs/skills/schema-local_info_operation.md +0 -160
  117. package/docs/skills/schema-local_mark_operation.md +0 -148
  118. package/docs/skills/schema-machineNode2file.md +0 -155
  119. package/docs/skills/schema-messenger_operation.md +0 -547
  120. package/docs/skills/schema-onchain_events.md +0 -201
  121. package/docs/skills/schema-onchain_table_data.md +0 -334
  122. package/docs/skills/schema-query_toolkit.md +0 -395
  123. package/docs/skills/schema-wip_file.md +0 -240
  124. package/docs/skills/schema-wowok_buildin_info.md +0 -296
  125. package/docs/wip-examples/three_body.html +0 -57
  126. package/docs/wip-examples/three_body.wip +0 -30
@@ -1,106 +0,0 @@
1
- # onchain_operations / arbitration
2
-
3
- Create arbitration rules for dispute resolution.
4
-
5
- > **CREATE vs MODIFY**: See [_common.md](./_common.md) for the unified pattern.
6
- > Arbitration uses `TypedPermissionObject`: object shape = CREATE, string = MODIFY.
7
-
8
- ## Data Schema
9
-
10
- ```typescript
11
- CallArbitration_Data {
12
- // Object reference - string (existing) or object (create new)
13
- // See _common.md: TypedPermissionObject
14
- object: TypedPermissionObject;
15
-
16
- // Create new Arb object for an order
17
- dispute?: {
18
- order: NameOrAddress; // Order ID or name
19
- description?: string; // Dispute description (max 4000 bcs chars)
20
- proposition: string[]; // List of dispute propositions (each max 256 bcs chars)
21
- fee: CoinParam; // Dispute processing fee
22
- namedArb?: NamedObject; // Name for newly created arbitration object
23
- };
24
-
25
- description?: string; // Introduction of the Arbitration object (max 4000 bcs chars)
26
- location?: string; // Arbitration location (max 256 bcs chars)
27
- fee?: string | number; // Arbitration fee
28
- pause?: boolean; // Whether to pause arbitration
29
-
30
- // Confirm materials submitted for arbitration
31
- confirm?: {
32
- arb: NameOrAddress; // Arb object ID or name
33
- voting_deadline: number | null; // Voting deadline
34
- };
35
-
36
- // Change voting deadline
37
- voting_deadline_change?: {
38
- arb: NameOrAddress; // Arb object ID or name
39
- voting_deadline: number | null; // New voting deadline
40
- };
41
-
42
- // Vote on propositions
43
- vote?: {
44
- arb: NameOrAddress; // Arb object ID or name
45
- votes: number[]; // Vote values (per proposition, 0-255)
46
- voting_guard?: NameOrAddress; // Voting Guard object ID or name
47
- };
48
-
49
- // Provide arbitration feedback
50
- feedback?: {
51
- arb: NameOrAddress; // Arb object ID or name
52
- feedback: string; // Arbitration feedback (max 4000 bcs chars)
53
- };
54
-
55
- // Provide definitive arbitration result
56
- arbitration?: {
57
- arb: NameOrAddress; // Arb object ID or name
58
- feedback: string; // Arbitration feedback (max 4000 bcs chars)
59
- indemnity: number; // Indemnity amount (int >= 0)
60
- };
61
-
62
- // User applies to resubmit materials and restart arbitration
63
- reset?: {
64
- arb: NameOrAddress; // Arb object ID or name
65
- feedback: string; // Arbitration feedback (max 4000 bcs chars)
66
- };
67
-
68
- // Withdraw arbitration fees
69
- arb_withdraw?: {
70
- arb: NameOrAddress; // Arb object ID or name
71
- };
72
-
73
- // Distribute withdrawn arbitration fees
74
- fees_transfer?: {
75
- to:
76
- | { allocation: NameOrAddress } // Transfer to Allocation object
77
- | { treasury: NameOrAddress }; // Transfer to Treasury object
78
- payment_remark: string; // Payment remark (max 64 bcs chars)
79
- payment_index: number; // Payment index (int >= 0)
80
- newPayment?: NamedObject; // Name for new payment object
81
- };
82
-
83
- usage_guard?: NameOrAddress | null; // Guard for verifying when users apply
84
- voting_guard?: VotingGuardAction; // Guard for verifying during voting
85
- owner_receive?: ReceivedObjectsOrRecently;
86
- um?: NameOrAddress | null; // Contact object
87
- }
88
-
89
- // Voting guard operations (discriminated union)
90
- VotingGuardAction =
91
- | {
92
- op: "add" | "set";
93
- guards: VotingGuard[]; // Array of voting guard configs
94
- }
95
- | {
96
- op: "remove";
97
- guards: NameOrAddress[]; // Guard IDs or names to remove
98
- }
99
- | {
100
- op: "clear";
101
- };
102
- ```
103
-
104
- ---
105
-
106
- See [_common.md](./_common.md) for shared types: CallEnv, SubmissionCall, TypedPermissionObject, CoinParam, NamedObject, VotingGuard, ReceivedObjectsOrRecently.
@@ -1,40 +0,0 @@
1
- # onchain_operations / contact
2
-
3
- Create Contact objects linking social signals to on-chain rewards.
4
-
5
- > **CREATE vs MODIFY**: See [_common.md](./_common.md) for the unified pattern.
6
- > Contact uses `WithPermissionObject`: object shape = CREATE, string = MODIFY.
7
-
8
- ## Data Schema
9
-
10
- ```typescript
11
- CallContact_Data {
12
- // Object reference - string (existing) or object (create new)
13
- // See _common.md: WithPermissionObject
14
- object: WithPermissionObject;
15
-
16
- my_status?: string; // Set your status message in this contact list (max 64 bcs chars)
17
- description?: string; // Contact object description or public information (max 4000 bcs chars)
18
- location?: string; // Physical or virtual location information (max 256 bcs chars)
19
-
20
- // IM contact list operations (discriminated union)
21
- ims?: {
22
- op: "add" | "set";
23
- im: {
24
- at: NameOrAddress; // Contact address or name for IM
25
- description?: string; // Optional description (max 256 bcs chars)
26
- }[];
27
- } | {
28
- op: "remove";
29
- im: NameOrAddress[]; // Contact addresses or names to remove
30
- } | {
31
- op: "clear";
32
- };
33
-
34
- owner_receive?: ReceivedObjectsOrRecently;
35
- }
36
- ```
37
-
38
- ---
39
-
40
- See [_common.md](./_common.md) for shared types: CallEnv, SubmissionCall, WithPermissionObject, ReceivedObjectsOrRecently.
@@ -1,53 +0,0 @@
1
- # onchain_operations / demand
2
-
3
- Create and manage Demand objects for service procurement with Guard validation.
4
-
5
- > **CREATE vs MODIFY**: See [_common.md](./_common.md) for the unified pattern.
6
- > Demand uses `WithPermissionObject`: object shape = CREATE, string = MODIFY.
7
-
8
- ## Data Schema
9
-
10
- ```typescript
11
- CallDemand_Data {
12
- // Object reference - string (existing) or object (create new)
13
- // See _common.md: WithPermissionObject
14
- object: WithPermissionObject;
15
-
16
- // Recommend a Service to the Demand
17
- present?: {
18
- recommend: string; // Recommendation description (max 4000 bcs chars)
19
- by_guard?: NameOrAddress; // Guard ID — pass verification via Guard
20
- service?: NameOrAddress; // Service ID or name to present
21
- };
22
-
23
- description?: string; // Demand description (max 4000 bcs chars)
24
- location?: string; // Service location (max 256 bcs chars)
25
-
26
- rewards?: ObjectsOp; // Reward information
27
-
28
- // User feedback
29
- feedback?: {
30
- who: AccountOrMark_Address; // User being rated
31
- acceptance_score?: number; // Acceptance score (0-255)
32
- feedback?: string; // Feedback content (max 4000 bcs chars)
33
- }[];
34
-
35
- // Validation Guards (discriminated union)
36
- guards?: {
37
- op: "add" | "set";
38
- guard: ServiceGuard[]; // Guard configs to add/set
39
- } | {
40
- op: "remove";
41
- guard: NameOrAddress[]; // Guard IDs or names to remove
42
- } | {
43
- op: "clear";
44
- };
45
-
46
- owner_receive?: ReceivedObjectsOrRecently;
47
- um?: NameOrAddress | null; // Contact object
48
- }
49
- ```
50
-
51
- ---
52
-
53
- See [_common.md](./_common.md) for shared types: CallEnv, SubmissionCall, WithPermissionObject, ObjectsOp, ServiceGuard, AccountOrMark_Address, ReceivedObjectsOrRecently.
@@ -1,23 +0,0 @@
1
- # onchain_operations / gen_passport
2
-
3
- Generate Verified Passport Object: Create immutable verified credentials (passport).
4
-
5
- > **Structure Exception**: `gen_passport` has a **FLAT** structure — no `data` wrapper, no `submission` field.
6
-
7
- ## Schema
8
-
9
- ```typescript
10
- GenPassport {
11
- // Guard verification
12
- guard: NameOrAddress | NameOrAddress[]; // Guard object ID(s) to verify and embed
13
-
14
- // Optional submission data during Guard verification
15
- info?: SubmissionCall; // Submission data for Guards requiring user input
16
-
17
- env?: CallEnv; // Optional execution environment
18
- }
19
- ```
20
-
21
- ---
22
-
23
- See [_common.md](./_common.md) for shared types: CallEnv, SubmissionCall.
@@ -1,56 +0,0 @@
1
- # onchain_operations / guard
2
-
3
- Create immutable programmable validation rules that return boolean results.
4
-
5
- > **CREATE vs MODIFY**: See [_common.md](./_common.md) for the unified pattern.
6
- > Guard is **CREATE-only** and immutable. No `object` field — use `namedNew` for naming.
7
-
8
- ## Data Schema
9
-
10
- ```typescript
11
- CallGuard_Data {
12
- namedNew?: NamedObject; // Name for new Guard (optional naming)
13
- description?: string; // Guard description (max 4000 bcs chars)
14
-
15
- // Data table definitions (uses GuardTableItemBaseSchema — no object_type field)
16
- table?: {
17
- identifier: number; // 0-255
18
- b_submission: boolean; // User submission required
19
- value_type: ValueType; // Expected type
20
- value?: SupportedValue; // Default value (if b_submission=false)
21
- name?: string; // Description (default: "")
22
- }[];
23
-
24
- // Rule tree root (required)
25
- root: {
26
- type: "node";
27
- node: GuardNode; // Direct node tree
28
- } | {
29
- type: "file";
30
- file_path: string; // Path to JSON or Markdown file
31
- format?: "json" | "markdown"; // File format (default: "json")
32
- };
33
-
34
- // Dependent Guards
35
- rely?: {
36
- guards: string[]; // Dependent Guard object IDs
37
- logic_or?: boolean; // OR logic (default: AND)
38
- };
39
- }
40
- ```
41
-
42
- ## Guard Root Notes
43
-
44
- - **`root.type === "node"`**: Build the Guard computational tree directly inline using `node: GuardNode`
45
- - **`root.type === "file"`**: Load the Guard definition from a JSON or Markdown file. The file can define `namedNew`, `description`, `table`, `root`, `rely`. Any fields defined in the schema will **OVERRIDE** the corresponding fields in the file.
46
-
47
- ## GuardNode (recursive, lazy-evaluated)
48
-
49
- The GuardNode is a recursive, strongly-typed computational tree with 70+ node types.
50
- Each node has a `type` field that discriminates its behavior.
51
-
52
- For the complete canonical list of all GuardNode types, see the MCP source at `src/schema/query/index.ts` `GuardNodeSchema`.
53
-
54
- ---
55
-
56
- See [_common.md](./_common.md) for shared types: CallEnv, NamedObject.
@@ -1,89 +0,0 @@
1
- # onchain_operations / machine
2
-
3
- Design and deploy automated workflow templates (Machines) that define how services are delivered.
4
-
5
- > **CREATE vs MODIFY**: See [_common.md](./_common.md) for the unified pattern.
6
- > Machine uses `WithPermissionObject`: object shape = CREATE, string = MODIFY.
7
-
8
- ## Data Schema
9
-
10
- ```typescript
11
- CallMachine_Data {
12
- // Object reference - string (existing) or object (create new)
13
- // See _common.md: WithPermissionObject
14
- object: WithPermissionObject;
15
-
16
- // Generate new Progress
17
- progress_new?: {
18
- task?: string | null; // Task ID bound to Progress
19
- repository?: ObjectsOp; // Repository list
20
- progress_namedOperator?: { // Manage namespace operators
21
- op: "add" | "set" | "remove";
22
- name: string; // Namespace name (non-empty)
23
- operators: ManyAccountOrMark_Address;
24
- };
25
- namedNew?: NamedObject; // Name for new Progress
26
- };
27
-
28
- description?: string; // Machine description
29
- repository?: ObjectsOp; // Consensus repositories
30
-
31
- // Node operations - TWO MODES (mutually exclusive)
32
- node?:
33
- // Mode 1: Incremental operations
34
- | {
35
- op: "add" | "set";
36
- nodes: MachineNode[]; // Node array
37
- bReplace?: boolean; // Whether to replace existing
38
- }
39
- | { op: "remove"; nodes: string[] } // Node names to delete
40
- | { op: "clear" }
41
- | { op: "exchange"; node_one: string; node_other: string } // Swap two nodes
42
- | { op: "rename"; node_name_old: string; node_name_new: string } // Rename node
43
- | { op: "remove prior node"; pairs: { prior_node_name: string[]; node_name: string; }[] } // Delete prev→next pairs
44
- | { op: "add forward"; data: {
45
- prior_node_name: string; // Previous node name
46
- node_name: string; // Next node name
47
- forward: {
48
- name: string; // Operation name
49
- namedOperator?: string | null; // Per-Progress namespace operator (null or empty "" = order permission)
50
- permissionIndex?: number | null; // Shared permission index
51
- weight: number; // Forward weight (0-65535)
52
- }[];
53
- threshold?: number | null; // Weight threshold (int >= 0)
54
- }[] }
55
- | { op: "remove forward"; data: {
56
- prior_node_name: string;
57
- node_name: string;
58
- forward_name: string[]; // Operation names to delete
59
- }[] }
60
- // Mode 2: Complete replacement from file
61
- | { json_or_markdown_file: string };
62
-
63
- pause?: boolean; // Pause new Progress
64
- publish?: boolean; // Publish (nodes immutable after)
65
- owner_receive?: ReceivedObjectsOrRecently;
66
- um?: NameOrAddress | null; // Contact object
67
- }
68
-
69
- // MachineNode definition (referenced by node operations)
70
- // For the canonical MachineNodeNodeSchema, see MCP source at src/schema/query
71
- MachineNode {
72
- name: string; // Node name
73
- pairs: {
74
- prior_node: string; // Previous node name ("" for entry)
75
- forwards: {
76
- name: string; // Forward name
77
- namedOperator?: string; // Per-Progress namespace
78
- permissionIndex?: number; // Shared permission index
79
- weight: number; // Forward weight
80
- guard?: MachineForwardGuard; // { guard: string; retained_submission?: number[] }
81
- }[];
82
- threshold?: number; // Weight threshold (null = any single forward triggers)
83
- }[];
84
- }
85
- ```
86
-
87
- ---
88
-
89
- See [_common.md](./_common.md) for shared types: CallEnv, SubmissionCall, WithPermissionObject, NamedObject, ObjectsOp, ManyAccountOrMark_Address, ReceivedObjectsOrRecently.
@@ -1,56 +0,0 @@
1
- # onchain_operations / order
2
-
3
- Track and manage service delivery lifecycle — progress, arbitration, compensation.
4
-
5
- > **Note**: Order is **MODIFY-only**.
6
-
7
- ## Data Schema
8
-
9
- ```typescript
10
- CallOrder_Data {
11
- object: NameOrAddress; // Order object ID or name (required)
12
-
13
- agents?: ManyAccountOrMark_Address; // Order agents (operate, but cannot receive funds)
14
-
15
- required_info?: NameOrAddress | null; // Contact object ID (recipient) or WTS Proof (delivery proof)
16
-
17
- // Advance order progress workflow
18
- progress?: {
19
- operation: {
20
- next_node_name: string; // Target node name (max 64 bcs chars)
21
- forward: string; // Forward (operation) name (max 64 bcs chars)
22
- };
23
- hold?: boolean; // Lock operation permission
24
- adminUnhold?: boolean; // Allow admin to force unlock
25
- message?: string; // Operation note
26
- };
27
-
28
- // Submit compensation request and apply for arbitration
29
- arb_confirm?: {
30
- arb: NameOrAddress; // Arb object ID or name
31
- confirm: boolean; // Confirm arbitration materials are valid
32
- description?: string; // Message description for compensation (max 4000 bcs chars)
33
- proposition?: string[]; // Compensation claims (each max 256 bcs chars)
34
- };
35
-
36
- // Oppose and appeal arbitration result
37
- arb_objection?: {
38
- arb: NameOrAddress; // Arb object ID or name
39
- objection: string; // Reason for objection (max 4000 bcs chars)
40
- };
41
-
42
- // Claim order compensation from adjudicated Arb
43
- arb_claim_compensation?: {
44
- arb: NameOrAddress; // Arb object ID or name
45
- };
46
-
47
- // Unwrap received CoinWrappers/objects and transfer to owner
48
- receive?: QueryReceivedResult;
49
-
50
- transfer_to?: AccountOrMark_Address; // Transfer order ownership
51
- }
52
- ```
53
-
54
- ---
55
-
56
- See [_common.md](./_common.md) for shared types: CallEnv, SubmissionCall, ManyAccountOrMark_Address, AccountOrMark_Address, QueryReceivedResult.
@@ -1,24 +0,0 @@
1
- # onchain_operations / payment
2
-
3
- Token payment (transfer) operations with detailed remarks.
4
-
5
- > **Note**: Payment is **CREATE-only** — it issues immutable payment records. No `submission` field.
6
-
7
- ## Data Schema
8
-
9
- ```typescript
10
- CallPayment_Data {
11
- object: TypeNamedObject; // CREATE new payment object with {name, type_parameter?}
12
-
13
- revenue: {
14
- recipient: AccountOrMark_Address; // Payment recipient
15
- amount: CoinParam; // Payment amount
16
- }[];
17
-
18
- info: PaymentInfo; // Payment record info
19
- }
20
- ```
21
-
22
- ---
23
-
24
- See [_common.md](./_common.md) for shared types: CallEnv, TypeNamedObject, CoinParam, PaymentInfo, AccountOrMark_Address.
@@ -1,68 +0,0 @@
1
- # onchain_operations / permission
2
-
3
- Define who can perform which operations on WoWok objects.
4
-
5
- > **CREATE vs MODIFY**: See [_common.md](./_common.md) for the unified pattern.
6
- > Permission uses `NormalObject`: object shape = CREATE, string = MODIFY.
7
-
8
- ## Data Schema
9
-
10
- ```typescript
11
- CallPermission_Data {
12
- // Object reference - string (existing) or object (create new)
13
- // See _common.md: NormalObject
14
- object?: NormalObject;
15
-
16
- description?: string; // Permission description (max 4000 bcs chars)
17
-
18
- // Remark operations (discriminated union)
19
- remark?: {
20
- op: "set";
21
- index: number; // Permission index (REQUIRED)
22
- remark: string; // Permission remark (REQUIRED)
23
- } | {
24
- op: "remove";
25
- index: number; // Permission index (REQUIRED)
26
- } | {
27
- op: "clear";
28
- };
29
-
30
- // Permission table operations (discriminated union)
31
- table?: {
32
- // Permission-centric: assign ONE permission to MANY entities
33
- op: "add perm by index" | "set perm by index" | "remove perm by index";
34
- index: number; // Permission index
35
- entity: ManyAccountOrMark_Address;
36
- } | {
37
- // Entity-centric: assign MANY permissions to ONE entity
38
- op: "add perm by entity" | "set perm by entity" | "remove perm by entity";
39
- entity: AccountOrMark_Address;
40
- index: number[]; // Permission indices
41
- };
42
-
43
- // Advanced entity operations (requires admin)
44
- entity?: {
45
- op: "swap" | "replace" | "copy";
46
- entity1: AccountOrMark_Address;
47
- entity2: AccountOrMark_Address;
48
- } | {
49
- op: "del";
50
- entity: AccountOrMark_Address;
51
- };
52
-
53
- // Admin management (builder/owner only)
54
- admin?: {
55
- op: "add" | "remove" | "set";
56
- addresses: ManyAccountOrMark_Address;
57
- };
58
-
59
- apply?: NameOrAddress[]; // Object IDs to apply permission to
60
- builder?: AccountOrMark_Address; // Set/transfer ownership
61
- owner_receive?: ReceivedObjectsOrRecently;
62
- um?: string | null; // Contact object
63
- }
64
- ```
65
-
66
- ---
67
-
68
- See [_common.md](./_common.md) for shared types: CallEnv, NormalObject, AccountOrMark_Address, ManyAccountOrMark_Address, ReceivedObjectsOrRecently.
@@ -1,58 +0,0 @@
1
- # onchain_operations / personal
2
-
3
- Manage your personal on-chain account profile and identity marks.
4
-
5
- > **Note**: Personal has no `submission` field. There is only one Personal object per account, created automatically on first use.
6
-
7
- ## Data Schema
8
-
9
- ```typescript
10
- CallPersonal_Data {
11
- description?: string; // Personal description (max 4000 bcs chars)
12
-
13
- referrer?: NameOrAddress | null; // Referrer ID for joining network
14
-
15
- // Public personal info records (discriminated union)
16
- information?: {
17
- op: "add";
18
- data: RecordsInEntity[]; // Records to add (PUBLIC: social handles, URLs — NEVER private data)
19
- } | {
20
- op: "remove";
21
- name: string[]; // Record names to remove
22
- } | {
23
- op: "clear";
24
- };
25
-
26
- // Public on-chain identity mark (discriminated union)
27
- mark?: {
28
- op: "add";
29
- data: {
30
- address: string; // Address
31
- name?: string; // Name (optional)
32
- tags?: string[]; // Tags (optional)
33
- }[];
34
- } | {
35
- op: "remove";
36
- data: {
37
- address: string; // Address
38
- tags?: string[]; // Tags to remove
39
- }[];
40
- } | {
41
- op: "clear";
42
- address: ManyAccountOrMark_Address; // Addresses to clear
43
- } | {
44
- op: "transfer";
45
- to: string; // Transfer mark to another address
46
- } | {
47
- op: "replace";
48
- new_mark_object: string; // Replace with new mark object ID
49
- } | {
50
- op: "destroy"; // Permanently destroy identity mark
51
- };
52
- }
53
- ```
54
-
55
- ---
56
-
57
- See [_common.md](./_common.md) for shared types: CallEnv, AccountOrMark_Address, ManyAccountOrMark_Address.
58
- `RecordsInEntity` schema is defined in the MCP source at `src/schema/query/index.ts`.
@@ -1,38 +0,0 @@
1
- # onchain_operations / progress
2
-
3
- Track and manage active workflows in real-time.
4
-
5
- > **Note**: Progress is **MODIFY-only** — Progress objects are created via `machine.progress_new`, not directly.
6
-
7
- ## Data Schema
8
-
9
- ```typescript
10
- CallProgress_Data {
11
- object: NameOrAddress; // Progress ID or name (required) — MODIFY only
12
-
13
- task?: NameOrAddress; // Task ID (cannot be changed after setting)
14
- repository?: ObjectsOp; // Context repositories
15
-
16
- // Manage namespace operators
17
- progress_namedOperator?: {
18
- op: "add" | "set" | "remove";
19
- name: string; // Namespace name (non-empty, max 64 bcs chars)
20
- operators: ManyAccountOrMark_Address;
21
- };
22
-
23
- // Advance workflow
24
- operate?: {
25
- operation: {
26
- next_node_name: string; // Target node name (max 64 bcs chars)
27
- forward: string; // Forward (operation) name (max 64 bcs chars)
28
- };
29
- hold?: boolean; // Lock operation permission
30
- adminUnhold?: boolean; // Allow admin to force unlock
31
- message?: string; // Operation note
32
- };
33
- }
34
- ```
35
-
36
- ---
37
-
38
- See [_common.md](./_common.md) for shared types: CallEnv, SubmissionCall, ObjectsOp, ManyAccountOrMark_Address.