@wowok/agent-mcp 2.6.1 → 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.
Files changed (246) hide show
  1. package/dist/customer/customer-advice.d.ts +31 -0
  2. package/dist/customer/customer-advice.js +129 -0
  3. package/dist/customer/index.d.ts +2 -0
  4. package/dist/customer/index.js +2 -0
  5. package/dist/customer/info-puzzle.d.ts +9 -2
  6. package/dist/customer/info-puzzle.js +34 -7
  7. package/dist/customer/order-monitor.d.ts +2 -0
  8. package/dist/customer/order-monitor.js +3 -2
  9. package/dist/customer/post-purchase.d.ts +2 -0
  10. package/dist/customer/post-purchase.js +6 -5
  11. package/dist/customer/preorder-compare.d.ts +24 -0
  12. package/dist/customer/preorder-compare.js +34 -0
  13. package/dist/customer/reminder-system.d.ts +2 -0
  14. package/dist/customer/reminder-system.js +2 -1
  15. package/dist/customer/risk-assessment.js +30 -7
  16. package/dist/customer/types.d.ts +7 -0
  17. package/dist/examples/arbitration-dispute-create.json +41 -0
  18. package/dist/examples/arbitration-vote-weighted.json +35 -0
  19. package/dist/examples/arbitration-voting-guard-add.json +38 -0
  20. package/dist/examples/demand-present-service.json +33 -0
  21. package/dist/examples/gen-passport-verify-guard.json +48 -0
  22. package/dist/examples/guard-template-balance-check.json +59 -0
  23. package/dist/examples/guard-template-time-lock.json +60 -0
  24. package/dist/examples/insurance-guard-claim-timelock.json +75 -0
  25. package/dist/examples/insurance-guard-withdraw-allocation.json +96 -0
  26. package/dist/examples/insurance-machine-create-publish.json +75 -0
  27. package/dist/examples/insurance-service-allocators-publish.json +56 -0
  28. package/dist/examples/machine-multisig-threshold.json +86 -0
  29. package/dist/examples/machine-template-7node-rental.json +119 -0
  30. package/dist/examples/payment-scenario-bound.json +45 -0
  31. package/dist/examples/rental-ziroom-machine-create.json +149 -0
  32. package/dist/examples/rental-ziroom-permission-create.json +42 -0
  33. package/dist/examples/rental-ziroom-service-create.json +89 -0
  34. package/dist/examples/retail-adv-guard-customer-win-create.json +80 -0
  35. package/dist/examples/retail-adv-guard-messenger-proof-create.json +65 -0
  36. package/dist/examples/retail-adv-guard-reward-timeout-create.json +92 -0
  37. package/dist/examples/retail-adv-reward-guard-add.json +51 -0
  38. package/dist/examples/retail-myshop-allocation-activate.json +55 -0
  39. package/dist/examples/retail-myshop-arbitration-create.json +40 -0
  40. package/dist/examples/retail-myshop-contact-create.json +43 -0
  41. package/dist/examples/retail-myshop-order-create.json +56 -0
  42. package/dist/examples/retail-myshop-progress-operate.json +38 -0
  43. package/dist/examples/retail-myshop-reward-create.json +35 -0
  44. package/dist/examples/retail-myshop-service-create.json +88 -0
  45. package/dist/examples/service-discount-issue.json +46 -0
  46. package/dist/examples/threebody-guard-create.json +56 -0
  47. package/dist/examples/threebody-machine-create.json +72 -0
  48. package/dist/examples/threebody-permission-create.json +38 -0
  49. package/dist/examples/threebody-service-allocators.json +49 -0
  50. package/dist/examples/travel-guard-time-lock.json +69 -0
  51. package/dist/examples/travel-guard-weather-oracle.json +70 -0
  52. package/dist/examples/travel-machine-create.json +136 -0
  53. package/dist/examples/travel-repository-create.json +47 -0
  54. package/dist/examples/travel-service-create.json +102 -0
  55. package/dist/examples/travel-treasury-create.json +34 -0
  56. package/dist/examples/treasury-deposit.json +37 -0
  57. package/dist/examples/treasury-withdraw.json +38 -0
  58. package/dist/extensions/business-modules.d.ts +49 -0
  59. package/dist/extensions/business-modules.js +287 -0
  60. package/dist/extensions/capability-manifest.js +216 -29
  61. package/dist/extensions/constraint-registry.js +21 -19
  62. package/dist/extensions/metric-registry.js +14 -14
  63. package/dist/extensions/mode-evaluator.js +16 -16
  64. package/dist/extensions/modes.js +141 -49
  65. package/dist/extensions/registry.d.ts +16 -9
  66. package/dist/extensions/registry.js +132 -44
  67. package/dist/extensions/types.d.ts +2 -0
  68. package/dist/index.js +50 -0
  69. package/dist/knowledge/deployment-scanner.js +1 -1
  70. package/dist/knowledge/fund-layer.d.ts +138 -0
  71. package/dist/knowledge/fund-layer.js +969 -0
  72. package/dist/knowledge/guard-render.d.ts +57 -0
  73. package/dist/knowledge/guard-render.js +700 -0
  74. package/dist/knowledge/guard-submission-prompt.d.ts +31 -0
  75. package/dist/knowledge/guard-submission-prompt.js +171 -0
  76. package/dist/knowledge/guard-templates.d.ts +10 -0
  77. package/dist/knowledge/guard-templates.js +50 -0
  78. package/dist/knowledge/index.d.ts +2 -2
  79. package/dist/knowledge/index.js +2 -2
  80. package/dist/knowledge/machine-ledger.js +1 -1
  81. package/dist/knowledge/machine-render.d.ts +41 -0
  82. package/dist/knowledge/machine-render.js +565 -0
  83. package/dist/knowledge/machine-risk.js +4 -1
  84. package/dist/knowledge/machine-templates.js +4 -4
  85. package/dist/knowledge/progress-context.js +1 -1
  86. package/dist/knowledge/progress-ledger.js +3 -3
  87. package/dist/knowledge/progress-templates.js +1 -1
  88. package/dist/knowledge/progress-translation.js +1 -1
  89. package/dist/knowledge/reward-confirm.js +2 -2
  90. package/dist/knowledge/reward-puzzle.js +1 -1
  91. package/dist/knowledge/reward-risk.js +9 -9
  92. package/dist/knowledge/reward-templates.js +2 -2
  93. package/dist/knowledge/safety-rules.d.ts +83 -1
  94. package/dist/knowledge/safety-rules.js +166 -2
  95. package/dist/knowledge/scenario-modes.d.ts +1 -1
  96. package/dist/knowledge/scenario-modes.js +13 -11
  97. package/dist/knowledge/service-confirm.d.ts +1 -1
  98. package/dist/knowledge/service-confirm.js +3 -3
  99. package/dist/knowledge/service-context.js +1 -1
  100. package/dist/knowledge/service-ledger.js +1 -1
  101. package/dist/knowledge/service-risk.d.ts +1 -1
  102. package/dist/knowledge/service-risk.js +3 -3
  103. package/dist/knowledge/service-templates.js +2 -2
  104. package/dist/knowledge/service-translation.d.ts +1 -1
  105. package/dist/knowledge/service-translation.js +7 -7
  106. package/dist/knowledge/template-registry.d.ts +48 -0
  107. package/dist/knowledge/template-registry.js +341 -0
  108. package/dist/knowledge/tool-constraints.js +6 -6
  109. package/dist/knowledge/tools-reference.js +11 -8
  110. package/dist/participation/merchant-interest.d.ts +32 -0
  111. package/dist/participation/merchant-interest.js +100 -0
  112. package/dist/participation/radar-core.d.ts +104 -0
  113. package/dist/participation/radar-core.js +269 -0
  114. package/dist/project/context-assembly.js +8 -0
  115. package/dist/project/deployment-bridge.js +6 -5
  116. package/dist/project/deployment-doc.js +5 -5
  117. package/dist/project/edit-planner.d.ts +123 -0
  118. package/dist/project/edit-planner.js +1342 -0
  119. package/dist/project/evaluation.d.ts +36 -0
  120. package/dist/project/evaluation.js +734 -68
  121. package/dist/project/game-theory.d.ts +43 -0
  122. package/dist/project/game-theory.js +177 -0
  123. package/dist/project/graph-builder.js +7 -1
  124. package/dist/project/handlers.d.ts +137 -2
  125. package/dist/project/handlers.js +423 -51
  126. package/dist/project/intent-analyzer.d.ts +71 -0
  127. package/dist/project/intent-analyzer.js +149 -0
  128. package/dist/project/machine-nodes.d.ts +2 -0
  129. package/dist/project/machine-nodes.js +36 -0
  130. package/dist/project/merchant-guide.d.ts +165 -0
  131. package/dist/project/merchant-guide.js +264 -0
  132. package/dist/project/mode-actions.d.ts +199 -0
  133. package/dist/project/mode-actions.js +309 -0
  134. package/dist/project/participation-radar.d.ts +18 -0
  135. package/dist/project/participation-radar.js +428 -0
  136. package/dist/project/pipeline-actions.d.ts +101 -0
  137. package/dist/project/pipeline-actions.js +109 -0
  138. package/dist/project/semantic-graph.d.ts +95 -0
  139. package/dist/project/semantic-graph.js +245 -0
  140. package/dist/project/stage-gate.js +4 -4
  141. package/dist/schema/call/allocation.d.ts +11 -11
  142. package/dist/schema/call/allocation.js +13 -3
  143. package/dist/schema/call/arbitration.d.ts +21 -21
  144. package/dist/schema/call/arbitration.js +30 -9
  145. package/dist/schema/call/base.d.ts +2 -2
  146. package/dist/schema/call/base.js +1 -1
  147. package/dist/schema/call/bridge.d.ts +127 -127
  148. package/dist/schema/call/bridge.js +12 -12
  149. package/dist/schema/call/contact.d.ts +3 -3
  150. package/dist/schema/call/contact.js +2 -2
  151. package/dist/schema/call/demand.d.ts +3 -3
  152. package/dist/schema/call/demand.js +2 -2
  153. package/dist/schema/call/guard.d.ts +11 -11
  154. package/dist/schema/call/guard.js +2 -2
  155. package/dist/schema/call/machine.d.ts +2072 -679
  156. package/dist/schema/call/machine.js +51 -5
  157. package/dist/schema/call/order.d.ts +7 -7
  158. package/dist/schema/call/order.js +3 -6
  159. package/dist/schema/call/payment.d.ts +3 -3
  160. package/dist/schema/call/permission.d.ts +3 -3
  161. package/dist/schema/call/permission.js +2 -2
  162. package/dist/schema/call/personal.d.ts +337 -3
  163. package/dist/schema/call/personal.js +10 -0
  164. package/dist/schema/call/progress.d.ts +177 -9
  165. package/dist/schema/call/progress.js +7 -3
  166. package/dist/schema/call/proof.d.ts +6 -6
  167. package/dist/schema/call/repository.d.ts +3 -3
  168. package/dist/schema/call/repository.js +2 -2
  169. package/dist/schema/call/reward.d.ts +57 -57
  170. package/dist/schema/call/reward.js +3 -3
  171. package/dist/schema/call/semantic.js +48 -2
  172. package/dist/schema/call/service.d.ts +285 -113
  173. package/dist/schema/call/service.js +92 -28
  174. package/dist/schema/call/treasury.d.ts +57 -57
  175. package/dist/schema/call/treasury.js +3 -3
  176. package/dist/schema/common/index.d.ts +2 -0
  177. package/dist/schema/common/index.js +46 -10
  178. package/dist/schema/local/index.js +5 -1
  179. package/dist/schema/messenger/index.js +4 -1
  180. package/dist/schema/operations.d.ts +1318 -317
  181. package/dist/schema/operations.js +76 -7
  182. package/dist/schema/project/index.d.ts +5662 -164
  183. package/dist/schema/project/index.js +1136 -5
  184. package/dist/schema/query/index.d.ts +580 -19
  185. package/dist/schema/query/index.js +88 -36
  186. package/dist/schema/schema-query/index.d.ts +59 -3
  187. package/dist/schema/schema-query/index.js +45 -6
  188. package/dist/schema/trust/index.d.ts +1012 -6
  189. package/dist/schema/trust/index.js +212 -11
  190. package/dist/schema/utils/node-parser.js +13 -0
  191. package/dist/schema/utils/object-type-utils.d.ts +12 -0
  192. package/dist/schema/utils/object-type-utils.js +35 -0
  193. package/dist/schema/utils/permission-machine-check.d.ts +49 -0
  194. package/dist/schema/utils/permission-machine-check.js +121 -0
  195. package/dist/schema/utils/skills-recommendation.d.ts +2 -0
  196. package/dist/schema/utils/skills-recommendation.js +77 -0
  197. package/dist/schema-query/index.d.ts +17 -1
  198. package/dist/schema-query/index.js +359 -3
  199. package/dist/schemas/account_operation.schema.json +1 -1
  200. package/dist/schemas/bridge_operation.schema.json +14 -7
  201. package/dist/schemas/guard2file.schema.json +2 -0
  202. package/dist/schemas/index.json +1 -1
  203. package/dist/schemas/machineNode2file.schema.json +2 -0
  204. package/dist/schemas/messenger_operation.schema.json +1 -1
  205. package/dist/schemas/onchain_events.output.json +1 -1
  206. package/dist/schemas/onchain_operations.output.json +2820 -0
  207. package/dist/schemas/onchain_operations.schema.json +255 -65
  208. package/dist/schemas/onchain_operations_allocation.schema.json +7 -6
  209. package/dist/schemas/onchain_operations_arbitration.schema.json +14 -10
  210. package/dist/schemas/onchain_operations_contact.schema.json +4 -3
  211. package/dist/schemas/onchain_operations_demand.schema.json +4 -3
  212. package/dist/schemas/onchain_operations_gen_passport.schema.json +4 -2
  213. package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -0
  214. package/dist/schemas/onchain_operations_guard.schema.json +579 -1
  215. package/dist/schemas/onchain_operations_machine.schema.json +5 -4
  216. package/dist/schemas/onchain_operations_order.schema.json +7 -6
  217. package/dist/schemas/onchain_operations_payment.schema.json +2 -1
  218. package/dist/schemas/onchain_operations_permission.schema.json +3 -2
  219. package/dist/schemas/onchain_operations_personal.schema.json +37 -0
  220. package/dist/schemas/onchain_operations_progress.schema.json +91 -4
  221. package/dist/schemas/onchain_operations_proof.schema.json +2 -1
  222. package/dist/schemas/onchain_operations_repository.schema.json +4 -3
  223. package/dist/schemas/onchain_operations_reward.schema.json +7 -6
  224. package/dist/schemas/onchain_operations_service.schema.json +80 -19
  225. package/dist/schemas/onchain_operations_treasury.schema.json +5 -4
  226. package/dist/schemas/onchain_table_data.output.json +1 -1
  227. package/dist/schemas/onchain_table_data.schema.json +10 -9
  228. package/dist/schemas/project_operation.output.json +3318 -57
  229. package/dist/schemas/project_operation.schema.json +728 -4
  230. package/dist/schemas/query_toolkit.output.json +16 -16
  231. package/dist/schemas/query_toolkit.schema.json +40 -3
  232. package/dist/schemas/schema_query.output.json +65 -2
  233. package/dist/schemas/schema_query.schema.json +31 -5
  234. package/dist/schemas/trust_score.output.json +392 -1
  235. package/dist/schemas/trust_score.schema.json +275 -1
  236. package/dist/schemas/wowok_buildin_info.output.json +81 -8
  237. package/dist/schemas/wowok_buildin_info.schema.json +46 -2
  238. package/dist/tools/handlers/onchain.js +636 -6
  239. package/dist/tools/handlers/project.js +71 -2
  240. package/dist/tools/handlers/query.js +117 -2
  241. package/dist/tools/handlers/schema-query.js +65 -1
  242. package/dist/tools/handlers/trust.js +192 -6
  243. package/dist/tools/index.d.ts +8 -0
  244. package/dist/tools/index.js +229 -15
  245. package/dist/tools/wrap.js +194 -15
  246. package/package.json +2 -2
@@ -1,7 +1,23 @@
1
1
  import { z } from 'zod';
2
2
  import { WithPermissionObjectSchema, NamedObjectSchema, ObjectsSchema, CallEnvSchema, SubmissionCallSchema, } from './base.js';
3
3
  import { MachineNodeSchema, MachineForwardSchema } from '../query/index.js';
4
- import { ManyAccountOrMark_AddressSchema, NameOrAddressSchema, NameSchema, NotEmptyNameSchema, ReceivedObjectsOrRecentlySchema } from '../common/index.js';
4
+ import { ManyAccountOrMark_AddressSchema, NameOrAddressSchema, NameSchema, NotEmptyNameSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from '../common/index.js';
5
+ function validateEntryForward(nodes) {
6
+ for (const node of nodes) {
7
+ if (!node.pairs)
8
+ continue;
9
+ for (const pair of node.pairs) {
10
+ if (pair.prev_node === "") {
11
+ return true;
12
+ }
13
+ }
14
+ }
15
+ return false;
16
+ }
17
+ const ENTRY_FORWARD_ERROR_MESSAGE = "Machine has no entry forward. At least one node must have a pair with prev_node=\"\" (empty string), " +
18
+ "which defines how Progress advances from the initial state (current=\"\") to the first node. " +
19
+ "Without an entry forward, the workflow will be permanently stuck. " +
20
+ "Example: {name: 'Subscribed', pairs: [{prev_node: '', forwards: [{name: 'Subscribe', weight: 1}]}]}";
5
21
  export const ProgressNamedOperatorSchema = z.object({
6
22
  op: z.union([z.literal('add'), z.literal('set'), z.literal('remove')]),
7
23
  name: NotEmptyNameSchema,
@@ -68,7 +84,17 @@ export const NodeSchema = z.discriminatedUnion('op', [
68
84
  op: z.literal('remove forward'),
69
85
  data: z.array(NodeRemoveForwardDataSchema).describe('List of operations to delete.'),
70
86
  }).strict().describe('Delete operations.'),
71
- ]);
87
+ ])
88
+ .superRefine((data, ctx) => {
89
+ if ((data.op === 'add' || data.op === 'set') && data.bReplace === true) {
90
+ if (!validateEntryForward(data.nodes)) {
91
+ ctx.addIssue({
92
+ code: z.ZodIssueCode.custom,
93
+ message: ENTRY_FORWARD_ERROR_MESSAGE,
94
+ });
95
+ }
96
+ }
97
+ });
72
98
  export const NodeJsonOrMarkdownFileSchema = z.object({
73
99
  json_or_markdown_file: z.string().describe(`Path to a JSON or Markdown file containing node array for COMPLETE REPLACEMENT of all nodes.
74
100
 
@@ -113,9 +139,29 @@ Supported formats: JSON array or Markdown with code blocks.
113
139
  If parsing fails, error includes line number and column information.`),
114
140
  pause: z.boolean().optional().describe('Whether to pause generating new Progress objects.'),
115
141
  publish: z.boolean().optional().describe('Whether to publish the object. After the object is published, new Progress objects can be generated; and node settings will no longer be changeable.'),
116
- owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object.'),
142
+ owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this Machine object and send them to the owner of its Permission object.' + RECEIVE_FORMAT_BLOCK_OBJECTS),
117
143
  um: z.union([NameOrAddressSchema, z.null()]).optional().describe('Contact object ID or name.'),
118
- }).strict().describe("On-chain Machine operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Machine. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
144
+ }).strict()
145
+ .refine((data) => {
146
+ if (data.publish !== true)
147
+ return true;
148
+ if (!data.node)
149
+ return true;
150
+ if ('json_or_markdown_file' in data.node)
151
+ return true;
152
+ if ('nodes' in data.node && Array.isArray(data.node.nodes)) {
153
+ const isCreatingNew = typeof data.object === 'object' && data.object !== null;
154
+ const isReplace = data.node.bReplace === true;
155
+ if (isCreatingNew || isReplace) {
156
+ const nodes = data.node.nodes;
157
+ if (Array.isArray(nodes) && nodes.length > 0 && typeof nodes[0] === 'object') {
158
+ return validateEntryForward(nodes);
159
+ }
160
+ }
161
+ }
162
+ return true;
163
+ }, { message: ENTRY_FORWARD_ERROR_MESSAGE })
164
+ .describe("On-chain Machine operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Machine. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
119
165
  export const CallMachine_InputSchema = z.object({
120
166
  data: CallMachine_DataSchema,
121
167
  env: CallEnvSchema.optional(),
@@ -124,7 +170,7 @@ export const CallMachine_InputSchema = z.object({
124
170
  export const MachineNode2File_InputSchema = z.object({
125
171
  machine: NameOrAddressSchema.describe("Machine object ID or name to export"),
126
172
  file_path: z.string().describe("Output file path (absolute or relative)"),
127
- format: z.enum(["json", "markdown"]).optional().describe("Output format: 'json' (default) or 'markdown'"),
173
+ format: z.enum(["json", "markdown"]).optional().default("json").describe("Output format: 'json' (default) or 'markdown'"),
128
174
  env: CallEnvSchema.optional(),
129
175
  }).strict().describe("Query a Machine object from the blockchain and export its node definition to a JSON or Markdown file. The exported file can be edited and used to create new Machine objects.");
130
176
  export const MachineNode2File_OutputSchema = z.discriminatedUnion("status", [
@@ -71,7 +71,7 @@ export declare const CallOrder_DataSchema: z.ZodObject<{
71
71
  forward: string;
72
72
  next_node_name: string;
73
73
  }>;
74
- op: z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]>;
74
+ op: z.ZodDefault<z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]>>;
75
75
  message: z.ZodOptional<z.ZodString>;
76
76
  }, "strict", z.ZodTypeAny, {
77
77
  op: "next" | "hold" | "unhold" | "adminUnhold";
@@ -81,12 +81,12 @@ export declare const CallOrder_DataSchema: z.ZodObject<{
81
81
  };
82
82
  message?: string | undefined;
83
83
  }, {
84
- op: "next" | "hold" | "unhold" | "adminUnhold";
85
84
  operation: {
86
85
  forward: string;
87
86
  next_node_name: string;
88
87
  };
89
88
  message?: string | undefined;
89
+ op?: "next" | "hold" | "unhold" | "adminUnhold" | undefined;
90
90
  }>, {
91
91
  op: "next" | "hold" | "unhold" | "adminUnhold";
92
92
  operation: {
@@ -313,7 +313,7 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
313
313
  forward: string;
314
314
  next_node_name: string;
315
315
  }>;
316
- op: z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]>;
316
+ op: z.ZodDefault<z.ZodEnum<["next", "hold", "unhold", "adminUnhold"]>>;
317
317
  message: z.ZodOptional<z.ZodString>;
318
318
  }, "strict", z.ZodTypeAny, {
319
319
  op: "next" | "hold" | "unhold" | "adminUnhold";
@@ -323,12 +323,12 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
323
323
  };
324
324
  message?: string | undefined;
325
325
  }, {
326
- op: "next" | "hold" | "unhold" | "adminUnhold";
327
326
  operation: {
328
327
  forward: string;
329
328
  next_node_name: string;
330
329
  };
331
330
  message?: string | undefined;
331
+ op?: "next" | "hold" | "unhold" | "adminUnhold" | undefined;
332
332
  }>, {
333
333
  op: "next" | "hold" | "unhold" | "adminUnhold";
334
334
  operation: {
@@ -525,10 +525,11 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
525
525
  user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
526
526
  project: z.ZodOptional<z.ZodString>;
527
527
  client_schema_version: z.ZodOptional<z.ZodString>;
528
- schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
528
+ schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
529
529
  dry_run: z.ZodOptional<z.ZodBoolean>;
530
530
  }, "strict", z.ZodTypeAny, {
531
531
  account: string;
532
+ schema_strict_mode: boolean;
532
533
  no_cache?: boolean | undefined;
533
534
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
534
535
  permission_guard?: string[] | undefined;
@@ -537,7 +538,6 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
537
538
  user_intent_phrases?: string[] | undefined;
538
539
  project?: string | undefined;
539
540
  client_schema_version?: string | undefined;
540
- schema_strict_mode?: boolean | undefined;
541
541
  dry_run?: boolean | undefined;
542
542
  }, {
543
543
  no_cache?: boolean | undefined;
@@ -811,6 +811,7 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
811
811
  } | undefined;
812
812
  env?: {
813
813
  account: string;
814
+ schema_strict_mode: boolean;
814
815
  no_cache?: boolean | undefined;
815
816
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
816
817
  permission_guard?: string[] | undefined;
@@ -819,7 +820,6 @@ export declare const CallOrder_InputSchema: z.ZodObject<{
819
820
  user_intent_phrases?: string[] | undefined;
820
821
  project?: string | undefined;
821
822
  client_schema_version?: string | undefined;
822
- schema_strict_mode?: boolean | undefined;
823
823
  dry_run?: boolean | undefined;
824
824
  } | undefined;
825
825
  }, {
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { CallEnvSchema, SubmissionCallSchema } from "./base.js";
3
3
  import { OperateSchema } from "./progress.js";
4
- import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
4
+ import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from "../common/index.js";
5
5
  export const ArbConfirmSchema = z.object({
6
6
  arb: NameOrAddressSchema.describe("Arb object ID or name."),
7
7
  confirm: z.boolean().describe("Whether to confirm that the submitted arbitration materials are valid for arbitration."),
@@ -24,11 +24,8 @@ export const CallOrder_DataSchema = z.object({
24
24
  arb_objection: ArbObjectionSchema.optional().describe("Oppose and appeal the arbitration result, request re-arbitration."),
25
25
  arb_claim_compensation: ArbClaimCompensationSchema.optional().describe("Specify the adjudicated Arb object to obtain order compensation."),
26
26
  receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects or other objects received by the order and transfer them to the order owner. " +
27
- "ACCEPTED FORMATS (consistent with `owner_receive` on other objects — see arbitration/contact/demand/machine/permission/repository/reward/service/treasury):\n" +
28
- "• 'recently' (string) — auto-query and receive all recently received objects\n" +
29
- "• ReceivedNormal[] (array) — explicit list of received objects: [{id, type, content_raw?}]\n" +
30
- "• ReceivedBalance ({token_type, balance, received: [{id, balance, payment}]}) — received balance record\n" +
31
- "DO NOT wrap in {result: ...} — pass directly (NOT {result: [...]})"),
27
+ "Consistent with `owner_receive` on other objects (arbitration/contact/demand/machine/permission/repository/reward/service/treasury)." +
28
+ RECEIVE_FORMAT_BLOCK_OBJECTS),
32
29
  transfer_to: AccountOrMark_AddressSchema.optional().describe("Set new owner of the order. Requires order owner permission to set."),
33
30
  }).strict().describe("On-chain, operate on an Order object.");
34
31
  export const CallOrder_InputSchema = z.object({
@@ -491,10 +491,11 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
491
491
  user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
492
492
  project: z.ZodOptional<z.ZodString>;
493
493
  client_schema_version: z.ZodOptional<z.ZodString>;
494
- schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
494
+ schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
495
495
  dry_run: z.ZodOptional<z.ZodBoolean>;
496
496
  }, "strict", z.ZodTypeAny, {
497
497
  account: string;
498
+ schema_strict_mode: boolean;
498
499
  no_cache?: boolean | undefined;
499
500
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
500
501
  permission_guard?: string[] | undefined;
@@ -503,7 +504,6 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
503
504
  user_intent_phrases?: string[] | undefined;
504
505
  project?: string | undefined;
505
506
  client_schema_version?: string | undefined;
506
- schema_strict_mode?: boolean | undefined;
507
507
  dry_run?: boolean | undefined;
508
508
  }, {
509
509
  no_cache?: boolean | undefined;
@@ -551,6 +551,7 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
551
551
  };
552
552
  env?: {
553
553
  account: string;
554
+ schema_strict_mode: boolean;
554
555
  no_cache?: boolean | undefined;
555
556
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
556
557
  permission_guard?: string[] | undefined;
@@ -559,7 +560,6 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
559
560
  user_intent_phrases?: string[] | undefined;
560
561
  project?: string | undefined;
561
562
  client_schema_version?: string | undefined;
562
- schema_strict_mode?: boolean | undefined;
563
563
  dry_run?: boolean | undefined;
564
564
  } | undefined;
565
565
  }, {
@@ -2468,10 +2468,11 @@ export declare const CallPermission_InputSchema: z.ZodObject<{
2468
2468
  user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2469
2469
  project: z.ZodOptional<z.ZodString>;
2470
2470
  client_schema_version: z.ZodOptional<z.ZodString>;
2471
- schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
2471
+ schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2472
2472
  dry_run: z.ZodOptional<z.ZodBoolean>;
2473
2473
  }, "strict", z.ZodTypeAny, {
2474
2474
  account: string;
2475
+ schema_strict_mode: boolean;
2475
2476
  no_cache?: boolean | undefined;
2476
2477
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
2477
2478
  permission_guard?: string[] | undefined;
@@ -2480,7 +2481,6 @@ export declare const CallPermission_InputSchema: z.ZodObject<{
2480
2481
  user_intent_phrases?: string[] | undefined;
2481
2482
  project?: string | undefined;
2482
2483
  client_schema_version?: string | undefined;
2483
- schema_strict_mode?: boolean | undefined;
2484
2484
  dry_run?: boolean | undefined;
2485
2485
  }, {
2486
2486
  no_cache?: boolean | undefined;
@@ -2842,6 +2842,7 @@ export declare const CallPermission_InputSchema: z.ZodObject<{
2842
2842
  } | undefined;
2843
2843
  env?: {
2844
2844
  account: string;
2845
+ schema_strict_mode: boolean;
2845
2846
  no_cache?: boolean | undefined;
2846
2847
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
2847
2848
  permission_guard?: string[] | undefined;
@@ -2850,7 +2851,6 @@ export declare const CallPermission_InputSchema: z.ZodObject<{
2850
2851
  user_intent_phrases?: string[] | undefined;
2851
2852
  project?: string | undefined;
2852
2853
  client_schema_version?: string | undefined;
2853
- schema_strict_mode?: boolean | undefined;
2854
2854
  dry_run?: boolean | undefined;
2855
2855
  } | undefined;
2856
2856
  }, {
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { PermissionIndexTypeSchema } from "../query/index.js";
3
3
  import { CallEnvSchema, SubmissionCallSchema, NormalObjectSchema } from "./base.js";
4
- import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
4
+ import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from "../common/index.js";
5
5
  export const RemarkSetSchema = z.object({
6
6
  op: z.literal("set"),
7
7
  index: PermissionIndexTypeSchema,
@@ -95,7 +95,7 @@ export const CallPermission_DataSchema = z.object({
95
95
  admin: AdminSchema.optional().describe("Manage Permission object admins: add new admins, remove existing admins, or set the complete admin list. Only the Permission object owner (builder) can perform this operation. The creator automatically becomes an admin with full permissions."),
96
96
  apply: z.array(NameOrAddressSchema).optional().describe("Array of object IDs or names to operate on, apply the Permission object to these objects' permission control. Note: The signer must be the owner of the existing Permission objects for these objects"),
97
97
  builder: AccountOrMark_AddressSchema.optional().describe("Set or transfer ownership of the Permission object to the specified user ID. The creator automatically becomes the builder; only the builder can transfer ownership to other users."),
98
- owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this object and send them to the builder(owner).'),
98
+ owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this Permission object and send them to the builder(owner).' + RECEIVE_FORMAT_BLOCK_OBJECTS),
99
99
  um: z.union([NameOrAddressSchema, z.null()]).optional().describe("Contact object ID or name."),
100
100
  }).strict().describe("On-chain Permission operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, tags?, ...} to create a Permission. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
101
101
  export const CallPermission_InputSchema = z.object({