@wowok/agent-mcp 3.1.4 → 3.1.6

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 (152) hide show
  1. package/dist/evaluation/arbitration-game.js +1 -1
  2. package/dist/evaluation/builtins/graph-service.js +1 -1
  3. package/dist/graph/onchain/analyze.js +1 -1
  4. package/dist/graph/onchain/analyze.spec.js +1 -1
  5. package/dist/graph/onchain/extract.js +1 -1
  6. package/dist/graph/onchain/facts.d.ts +1 -0
  7. package/dist/graph/onchain/facts.js +1 -1
  8. package/dist/graph/onchain/fixtures.js +1 -1
  9. package/dist/graph/onchain/onchain.spec.js +1 -1
  10. package/dist/graph/onchain/strategy.js +1 -1
  11. package/dist/graph/onchain/strategy.spec.js +1 -1
  12. package/dist/harness/recover.js +1 -1
  13. package/dist/knowledge/alloc-audit-policy.spec.js +1 -1
  14. package/dist/knowledge/allocation-risk.js +1 -1
  15. package/dist/knowledge/arbitration-ledger.js +1 -1
  16. package/dist/knowledge/audit-rules.d.ts +1 -0
  17. package/dist/knowledge/audit-rules.js +1 -1
  18. package/dist/knowledge/baselines/rules/alloc_audit.json +20 -0
  19. package/dist/knowledge/baselines/rules/allocation.json +1 -19
  20. package/dist/knowledge/baselines/rules/arb.json +1 -1
  21. package/dist/knowledge/baselines/rules/guard.json +8 -8
  22. package/dist/knowledge/fund-layer.js +1 -1
  23. package/dist/knowledge/guard-design-patterns.d.ts +2 -1
  24. package/dist/knowledge/guard-design-patterns.js +1 -1
  25. package/dist/knowledge/guard-design-patterns.spec.d.ts +1 -0
  26. package/dist/knowledge/guard-design-patterns.spec.js +1 -0
  27. package/dist/knowledge/guard-lint.d.ts +1 -1
  28. package/dist/knowledge/guard-lint.js +1 -1
  29. package/dist/knowledge/guard-puzzle.js +1 -1
  30. package/dist/knowledge/guard-render.js +1 -1
  31. package/dist/knowledge/guard-risk.js +1 -1
  32. package/dist/knowledge/guard-translation.js +1 -1
  33. package/dist/knowledge/index.js +1 -1
  34. package/dist/knowledge/industry-registry.js +1 -1
  35. package/dist/knowledge/jsonrpc-enum.js +1 -1
  36. package/dist/knowledge/permission-ledger.js +1 -1
  37. package/dist/knowledge/recipient-constraint.js +1 -1
  38. package/dist/knowledge/safety-rules.extract-amount.spec.d.ts +1 -0
  39. package/dist/knowledge/safety-rules.extract-amount.spec.js +1 -0
  40. package/dist/knowledge/safety-rules.js +1 -1
  41. package/dist/knowledge/service-ledger.js +1 -1
  42. package/dist/knowledge/template-registry.js +1 -1
  43. package/dist/knowledge/template-scanner.js +1 -1
  44. package/dist/knowledge/tool-constraints.js +1 -1
  45. package/dist/knowledge/tools-reference.js +1 -1
  46. package/dist/knowledge/workflow-guidance.js +1 -1
  47. package/dist/monitor/MonitorLoop.js +1 -1
  48. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  49. package/dist/playbooks/service-build/pipeline-actions.d.ts +1 -1
  50. package/dist/playbooks/service-build/pipeline-actions.js +1 -1
  51. package/dist/playbooks/service-build/risk-aggregator.js +1 -1
  52. package/dist/role/derivation.d.ts +1 -1
  53. package/dist/role/derivation.js +1 -1
  54. package/dist/safety/confirm-gate.js +1 -1
  55. package/dist/schema/call/allocation.d.ts +7 -0
  56. package/dist/schema/call/allocation.js +1 -1
  57. package/dist/schema/call/arbitration.d.ts +4 -0
  58. package/dist/schema/call/arbitration.js +1 -1
  59. package/dist/schema/call/base.d.ts +48 -0
  60. package/dist/schema/call/base.js +1 -1
  61. package/dist/schema/call/bridge.d.ts +26 -0
  62. package/dist/schema/call/contact.d.ts +4 -0
  63. package/dist/schema/call/demand.d.ts +4 -0
  64. package/dist/schema/call/error-codes.d.ts +1 -1
  65. package/dist/schema/call/error-codes.js +1 -1
  66. package/dist/schema/call/guard.d.ts +12 -0
  67. package/dist/schema/call/handler.js +1 -1
  68. package/dist/schema/call/machine.d.ts +8 -0
  69. package/dist/schema/call/order.d.ts +4 -0
  70. package/dist/schema/call/order.js +1 -1
  71. package/dist/schema/call/payment.d.ts +4 -0
  72. package/dist/schema/call/permission.d.ts +4 -0
  73. package/dist/schema/call/personal.d.ts +4 -0
  74. package/dist/schema/call/progress.d.ts +4 -0
  75. package/dist/schema/call/proof.d.ts +8 -0
  76. package/dist/schema/call/repository.d.ts +4 -0
  77. package/dist/schema/call/repository.js +1 -1
  78. package/dist/schema/call/reward.d.ts +4 -0
  79. package/dist/schema/call/semantic-customer-advice.spec.js +1 -1
  80. package/dist/schema/call/semantic.d.ts +11 -0
  81. package/dist/schema/call/semantic.js +1 -1
  82. package/dist/schema/call/service.d.ts +14 -0
  83. package/dist/schema/call/service.js +1 -1
  84. package/dist/schema/call/treasury.d.ts +4 -0
  85. package/dist/schema/common/index.js +1 -1
  86. package/dist/schema/keeper/index.d.ts +5 -0
  87. package/dist/schema/local/index.d.ts +28 -0
  88. package/dist/schema/local/index.js +1 -1
  89. package/dist/schema/messenger/index.d.ts +5 -0
  90. package/dist/schema/messenger/index.js +1 -1
  91. package/dist/schema/operations.d.ts +83 -0
  92. package/dist/schema/query/bi.js +1 -1
  93. package/dist/schema/query/index.d.ts +16 -0
  94. package/dist/schema/query/index.js +1 -1
  95. package/dist/schema/schema-version.js +1 -1
  96. package/dist/schema/workflow/index.d.ts +2 -0
  97. package/dist/schema/workflow/index.js +1 -1
  98. package/dist/schema/workspace/index.d.ts +53 -0
  99. package/dist/schema/workspace/index.js +1 -1
  100. package/dist/schema-query-impl/index.js +1 -1
  101. package/dist/schemas/account_operation.output.json +25 -1
  102. package/dist/schemas/bridge_operation.output.json +25 -1
  103. package/dist/schemas/bridge_operation.schema.json +40 -0
  104. package/dist/schemas/guard2file.schema.json +8 -0
  105. package/dist/schemas/index.json +1 -1
  106. package/dist/schemas/keeper_operation.output.json +24 -1
  107. package/dist/schemas/local_history_operation.output.json +25 -1
  108. package/dist/schemas/local_info_operation.output.json +25 -1
  109. package/dist/schemas/local_mark_operation.output.json +25 -1
  110. package/dist/schemas/machineNode2file.schema.json +8 -0
  111. package/dist/schemas/messenger_operation.output.json +24 -1
  112. package/dist/schemas/messenger_operation.schema.json +2 -2
  113. package/dist/schemas/monitor_events.output.json +24 -1
  114. package/dist/schemas/monitor_subscription.output.json +24 -1
  115. package/dist/schemas/onchain_events.output.json +24 -1
  116. package/dist/schemas/onchain_operations.output.json +73 -3
  117. package/dist/schemas/onchain_operations.schema.json +3286 -821
  118. package/dist/schemas/onchain_operations_allocation.schema.json +12 -0
  119. package/dist/schemas/onchain_operations_arbitration.schema.json +18 -10
  120. package/dist/schemas/onchain_operations_contact.schema.json +8 -0
  121. package/dist/schemas/onchain_operations_demand.schema.json +8 -0
  122. package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -0
  123. package/dist/schemas/onchain_operations_gen_proof.schema.json +8 -0
  124. package/dist/schemas/onchain_operations_guard.schema.json +2896 -596
  125. package/dist/schemas/onchain_operations_machine.schema.json +8 -0
  126. package/dist/schemas/onchain_operations_order.schema.json +10 -2
  127. package/dist/schemas/onchain_operations_payment.schema.json +8 -0
  128. package/dist/schemas/onchain_operations_permission.schema.json +8 -0
  129. package/dist/schemas/onchain_operations_personal.schema.json +8 -0
  130. package/dist/schemas/onchain_operations_progress.schema.json +8 -0
  131. package/dist/schemas/onchain_operations_proof.schema.json +8 -0
  132. package/dist/schemas/onchain_operations_repository.schema.json +14 -6
  133. package/dist/schemas/onchain_operations_reward.schema.json +8 -0
  134. package/dist/schemas/onchain_operations_service.schema.json +43 -10
  135. package/dist/schemas/onchain_operations_treasury.schema.json +8 -0
  136. package/dist/schemas/onchain_table_data.output.json +35 -12
  137. package/dist/schemas/query_toolkit.output.json +1179 -10
  138. package/dist/schemas/query_toolkit.schema.json +11 -11
  139. package/dist/schemas/workflow_operation.schema.json +8 -0
  140. package/dist/schemas/workspace_operation.output.json +181 -1
  141. package/dist/schemas/workspace_operation.schema.json +61 -2
  142. package/dist/tools/handlers/config.js +1 -1
  143. package/dist/tools/handlers/dispatch-expectations.js +1 -1
  144. package/dist/tools/handlers/dispatch-expectations.spec.d.ts +1 -0
  145. package/dist/tools/handlers/dispatch-expectations.spec.js +1 -0
  146. package/dist/tools/handlers/onchain.js +1 -1
  147. package/dist/tools/handlers/workflow.js +1 -1
  148. package/dist/tools/handlers/workspace.js +1 -1
  149. package/dist/tools/index.js +1 -1
  150. package/dist/tools/move-fn-index.gen.js +1 -1
  151. package/dist/tools/registry/business.js +1 -1
  152. package/package.json +2 -2
@@ -312,6 +312,10 @@
312
312
  ],
313
313
  "additionalProperties": false,
314
314
  "description": "Payment information"
315
+ },
316
+ "allow_unanchored": {
317
+ "description": "docs#11 escape hatch: explicitly allow creating an Allocation whose payment_info has NO for_object anchor while any sharing row uses a GuardIdentifier recipient. Unanchored + GuardIdentifier lets any guard-passing caller redirect the submitted payout address to an arbitrary address — anchor it with payment_info.for_object instead. Set true ONLY after the user explicitly accepts that risk. Default: blocked.",
318
+ "type": "boolean"
315
319
  }
316
320
  },
317
321
  "required": [
@@ -491,6 +495,14 @@
491
495
  "description": "Phase 1 dry_run: when true, SIMULATE the transaction without signing or submitting. Returns effects + events showing what WOULD happen — no on-chain state is modified, no gas is charged. Use this to verify that an operation will succeed before committing. The returned digest will be 'dry_run:<timestamp>' and objectChanges will be empty (simulation only).",
492
496
  "type": "boolean"
493
497
  },
498
+ "response_level": {
499
+ "description": "Write-success response size. 'compact' (default) trims the structured result to key fields (digest + created object references); 'full' includes the complete raw result. Default: compact.",
500
+ "type": "string",
501
+ "enum": [
502
+ "compact",
503
+ "full"
504
+ ]
505
+ },
494
506
  "confirm_mode": {
495
507
  "description": "Confirmation frequency for this call. 'full': confirm every matched gate rule. 'streamlined' (client default): skip fail-open 'standard' level prompts — fail-closed levels (irreversible/publish/amount) ALWAYS still confirm. 'quiet': same hard floor as streamlined, for clients that batch/suppress repeat low-risk prompts in their own UI. This field NEVER downgrades fail-closed levels.",
496
508
  "type": "string",
@@ -95,7 +95,7 @@
95
95
  "description": "Two ways to specify an object: (1) STRING - Reference an EXISTING object by name or ID; (2) OBJECT - CREATE a NEW object with full configuration including name, tags, description, token type for payments, and Permission-based access control. The object format is used when you need both token specification AND permission management."
96
96
  },
97
97
  "dispute": {
98
- "description": "Create a new Arb object for the order.",
98
+ "description": "Create a new Arb object for the order; the case lands directly in state 1 (Arbitrator_confirming) — the customer does not confirm at filing time.",
99
99
  "type": "object",
100
100
  "properties": {
101
101
  "order": {
@@ -150,7 +150,7 @@
150
150
  "additionalProperties": false
151
151
  }
152
152
  ],
153
- "description": "Dispute processing fee. FORMAT: {balance: <amount_in_smallest_unit>} — field name is 'balance' (NOT 'amount'). The token type and precision are determined by the Arbitration object's type_parameter (the generic type set when the Arbitration was created). For WOW (9 decimals): {balance: 50000000} = 0.05 WOW. For tokens with different decimals, adjust accordingly (e.g. USDC has 6 decimals, so {balance: 50000} = 0.05 USDC)."
153
+ "description": "Dispute processing fee. FORMAT: {balance: <amount_in_smallest_unit>} — field name is 'balance' (NOT 'amount'). The token type and precision are determined by the Arbitration object's type_parameter (the generic type set when the Arbitration was created). For WOW (9 decimals): {balance: 50000000} = 0.05 WOW. For tokens with different decimals, adjust accordingly (e.g. USDC has 6 decimals, so {balance: 50000} = 0.05 USDC). docs#45: the fee does NOT return to the filer on a win — it stays in the Arbitration object and is withdrawable by the arbitrator."
154
154
  },
155
155
  "namedArb": {
156
156
  "description": "RECOMMENDED: Set a local name for the newly created Arb (arbitration case) object. Without this, the Arb is only referenceable by its on-chain address. Example: {name: 'my_dispute_v1'} allows subsequent vote/feedback operations to use 'my_dispute_v1'.",
@@ -210,7 +210,7 @@
210
210
  "type": "boolean"
211
211
  },
212
212
  "confirm": {
213
- "description": "Confirm the materials submitted by the user for arbitration.",
213
+ "description": "ARBITRATOR-side material confirmation (from state 1): moves the case to state 2 (Voting). Customers cannot call this — the customer-side step is order.arb_confirm (state 0 to 1).",
214
214
  "type": "object",
215
215
  "properties": {
216
216
  "arb": {
@@ -337,7 +337,7 @@
337
337
  "additionalProperties": false
338
338
  },
339
339
  "reset": {
340
- "description": "User applies to resubmit materials and restart arbitration.",
340
+ "description": "ARBITRATOR-side reset (arbitration permission holder; valid from state 4 Objectionable or state 1): voids the ruling, clears the indemnity and returns the case to state 0 (Principal_confirming). After a reset ONLY the customer can advance the case again via order.arb_confirm — state 0 has no timeout and the fee stays locked until the customer re-confirms.",
341
341
  "type": "object",
342
342
  "properties": {
343
343
  "arb": {
@@ -356,7 +356,7 @@
356
356
  "additionalProperties": false
357
357
  },
358
358
  "arb_withdraw": {
359
- "description": "Withdraw arbitration fees from the Arb object.",
359
+ "description": "Withdraw arbitration fees from the Arb object (arbitrator). Immediately from state 5 (Finished); from state 3 only after 30 days from the ruling time (no objection filed — silence = acceptance); rejected in states 0/1/2. State 4 (Objectionable) can NEVER withdraw (protocol 141): a contested case keeps its fee escrowed until the customer closes the objection cycle — reset → order.arb_confirm → new ruling → unchallenged (or accepted via finish).",
360
360
  "type": "object",
361
361
  "properties": {
362
362
  "arb": {
@@ -370,7 +370,7 @@
370
370
  "additionalProperties": false
371
371
  },
372
372
  "fees_transfer": {
373
- "description": "Distribute the withdrawn arbitration fees.",
373
+ "description": "Distribute the withdrawn arbitration fees. Moves the Arbitration's ENTIRE balance in ONE call — there is NO amount parameter. The balance leaves as a CoinWrapper owned by the target (allocation or treasury); for a treasury target, intake it with treasury receive: \"recently\" (permission 253) — see the 'to' field description.",
374
374
  "type": "object",
375
375
  "properties": {
376
376
  "to": {
@@ -393,7 +393,7 @@
393
393
  "properties": {
394
394
  "treasury": {
395
395
  "type": "string",
396
- "description": "Treasury object ID or name."
396
+ "description": "Treasury object ID or name. NOTE: the transferred funds arrive as a CoinWrapper owned by the Treasury and only count after the Treasury intakes them — call treasury receive: \"recently\" (requires permission 253 TREASURY_RECEIVE on the Treasury)."
397
397
  }
398
398
  },
399
399
  "required": [
@@ -506,8 +506,8 @@
506
506
  "FixedValue": {
507
507
  "type": "integer",
508
508
  "minimum": 0,
509
- "maximum": 65535,
510
- "description": "Fixed voting weight value"
509
+ "maximum": 4294967295,
510
+ "description": "Fixed voting weight value (u32)"
511
511
  }
512
512
  },
513
513
  "required": [
@@ -517,7 +517,7 @@
517
517
  "description": "Fixed voting weight"
518
518
  }
519
519
  ],
520
- "description": "Voting weight"
520
+ "description": "Voting weight — an OBJECT, never a bare number: {\"FixedValue\": <0-4294967295, u32>} = constant weight; {\"GuardIdentifier\": <u8, 0-255>} = the number the voter SUBMITS at vote time (looked up in the Guard's table slot) becomes their weight."
521
521
  }
522
522
  },
523
523
  "required": [
@@ -772,6 +772,14 @@
772
772
  "description": "Phase 1 dry_run: when true, SIMULATE the transaction without signing or submitting. Returns effects + events showing what WOULD happen — no on-chain state is modified, no gas is charged. Use this to verify that an operation will succeed before committing. The returned digest will be 'dry_run:<timestamp>' and objectChanges will be empty (simulation only).",
773
773
  "type": "boolean"
774
774
  },
775
+ "response_level": {
776
+ "description": "Write-success response size. 'compact' (default) trims the structured result to key fields (digest + created object references); 'full' includes the complete raw result. Default: compact.",
777
+ "type": "string",
778
+ "enum": [
779
+ "compact",
780
+ "full"
781
+ ]
782
+ },
775
783
  "confirm_mode": {
776
784
  "description": "Confirmation frequency for this call. 'full': confirm every matched gate rule. 'streamlined' (client default): skip fail-open 'standard' level prompts — fail-closed levels (irreversible/publish/amount) ALWAYS still confirm. 'quiet': same hard floor as streamlined, for clients that batch/suppress repeat low-risk prompts in their own UI. This field NEVER downgrades fail-closed levels.",
777
785
  "type": "string",
@@ -407,6 +407,14 @@
407
407
  "description": "Phase 1 dry_run: when true, SIMULATE the transaction without signing or submitting. Returns effects + events showing what WOULD happen — no on-chain state is modified, no gas is charged. Use this to verify that an operation will succeed before committing. The returned digest will be 'dry_run:<timestamp>' and objectChanges will be empty (simulation only).",
408
408
  "type": "boolean"
409
409
  },
410
+ "response_level": {
411
+ "description": "Write-success response size. 'compact' (default) trims the structured result to key fields (digest + created object references); 'full' includes the complete raw result. Default: compact.",
412
+ "type": "string",
413
+ "enum": [
414
+ "compact",
415
+ "full"
416
+ ]
417
+ },
410
418
  "confirm_mode": {
411
419
  "description": "Confirmation frequency for this call. 'full': confirm every matched gate rule. 'streamlined' (client default): skip fail-open 'standard' level prompts — fail-closed levels (irreversible/publish/amount) ALWAYS still confirm. 'quiet': same hard floor as streamlined, for clients that batch/suppress repeat low-risk prompts in their own UI. This field NEVER downgrades fail-closed levels.",
412
420
  "type": "string",
@@ -557,6 +557,14 @@
557
557
  "description": "Phase 1 dry_run: when true, SIMULATE the transaction without signing or submitting. Returns effects + events showing what WOULD happen — no on-chain state is modified, no gas is charged. Use this to verify that an operation will succeed before committing. The returned digest will be 'dry_run:<timestamp>' and objectChanges will be empty (simulation only).",
558
558
  "type": "boolean"
559
559
  },
560
+ "response_level": {
561
+ "description": "Write-success response size. 'compact' (default) trims the structured result to key fields (digest + created object references); 'full' includes the complete raw result. Default: compact.",
562
+ "type": "string",
563
+ "enum": [
564
+ "compact",
565
+ "full"
566
+ ]
567
+ },
560
568
  "confirm_mode": {
561
569
  "description": "Confirmation frequency for this call. 'full': confirm every matched gate rule. 'streamlined' (client default): skip fail-open 'standard' level prompts — fail-closed levels (irreversible/publish/amount) ALWAYS still confirm. 'quiet': same hard floor as streamlined, for clients that batch/suppress repeat low-risk prompts in their own UI. This field NEVER downgrades fail-closed levels.",
562
570
  "type": "string",
@@ -613,6 +613,14 @@
613
613
  "description": "Phase 1 dry_run: when true, SIMULATE the transaction without signing or submitting. Returns effects + events showing what WOULD happen — no on-chain state is modified, no gas is charged. Use this to verify that an operation will succeed before committing. The returned digest will be 'dry_run:<timestamp>' and objectChanges will be empty (simulation only).",
614
614
  "type": "boolean"
615
615
  },
616
+ "response_level": {
617
+ "description": "Write-success response size. 'compact' (default) trims the structured result to key fields (digest + created object references); 'full' includes the complete raw result. Default: compact.",
618
+ "type": "string",
619
+ "enum": [
620
+ "compact",
621
+ "full"
622
+ ]
623
+ },
616
624
  "confirm_mode": {
617
625
  "description": "Confirmation frequency for this call. 'full': confirm every matched gate rule. 'streamlined' (client default): skip fail-open 'standard' level prompts — fail-closed levels (irreversible/publish/amount) ALWAYS still confirm. 'quiet': same hard floor as streamlined, for clients that batch/suppress repeat low-risk prompts in their own UI. This field NEVER downgrades fail-closed levels.",
618
626
  "type": "string",
@@ -130,6 +130,14 @@
130
130
  "description": "Phase 1 dry_run: when true, SIMULATE the transaction without signing or submitting. Returns effects + events showing what WOULD happen — no on-chain state is modified, no gas is charged. Use this to verify that an operation will succeed before committing. The returned digest will be 'dry_run:<timestamp>' and objectChanges will be empty (simulation only).",
131
131
  "type": "boolean"
132
132
  },
133
+ "response_level": {
134
+ "description": "Write-success response size. 'compact' (default) trims the structured result to key fields (digest + created object references); 'full' includes the complete raw result. Default: compact.",
135
+ "type": "string",
136
+ "enum": [
137
+ "compact",
138
+ "full"
139
+ ]
140
+ },
133
141
  "confirm_mode": {
134
142
  "description": "Confirmation frequency for this call. 'full': confirm every matched gate rule. 'streamlined' (client default): skip fail-open 'standard' level prompts — fail-closed levels (irreversible/publish/amount) ALWAYS still confirm. 'quiet': same hard floor as streamlined, for clients that batch/suppress repeat low-risk prompts in their own UI. This field NEVER downgrades fail-closed levels.",
135
143
  "type": "string",