@wowok/agent-mcp 2.6.0 → 2.6.3

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 (186) hide show
  1. package/README.md +5 -3
  2. package/dist/customer/info-puzzle.d.ts +1 -1
  3. package/dist/customer/info-puzzle.js +4 -2
  4. package/dist/customer/risk-assessment.js +26 -4
  5. package/dist/customer/types.d.ts +2 -0
  6. package/dist/examples/guard-template-balance-check.json +38 -0
  7. package/dist/examples/guard-template-time-lock.json +39 -0
  8. package/dist/examples/machine-template-7node-rental.json +114 -0
  9. package/dist/examples/rental-ziroom-machine-create.json +137 -0
  10. package/dist/examples/rental-ziroom-permission-create.json +35 -0
  11. package/dist/examples/rental-ziroom-service-create.json +80 -0
  12. package/dist/examples/retail-myshop-service-create.json +88 -0
  13. package/dist/extensions/capability-manifest.d.ts +125 -0
  14. package/dist/extensions/capability-manifest.js +594 -0
  15. package/dist/extensions/constraint-registry.d.ts +24 -0
  16. package/dist/extensions/constraint-registry.js +196 -0
  17. package/dist/extensions/index.d.ts +12 -0
  18. package/dist/extensions/index.js +6 -0
  19. package/dist/extensions/metric-registry.d.ts +26 -0
  20. package/dist/extensions/metric-registry.js +257 -0
  21. package/dist/extensions/mode-evaluator.d.ts +15 -0
  22. package/dist/extensions/mode-evaluator.js +170 -0
  23. package/dist/extensions/modes.d.ts +2 -0
  24. package/dist/extensions/modes.js +493 -0
  25. package/dist/extensions/registry.d.ts +50 -0
  26. package/dist/extensions/registry.js +662 -0
  27. package/dist/extensions/types.d.ts +219 -0
  28. package/dist/extensions/types.js +1 -0
  29. package/dist/index.js +50 -0
  30. package/dist/knowledge/deployment-scanner.d.ts +3 -0
  31. package/dist/knowledge/deployment-scanner.js +64 -3
  32. package/dist/knowledge/fund-layer.d.ts +72 -0
  33. package/dist/knowledge/fund-layer.js +420 -0
  34. package/dist/knowledge/guard-render.d.ts +57 -0
  35. package/dist/knowledge/guard-render.js +700 -0
  36. package/dist/knowledge/guard-risk.d.ts +13 -0
  37. package/dist/knowledge/guard-risk.js +57 -0
  38. package/dist/knowledge/guard-submission-prompt.d.ts +31 -0
  39. package/dist/knowledge/guard-submission-prompt.js +171 -0
  40. package/dist/knowledge/guard-templates.js +278 -0
  41. package/dist/knowledge/machine-ledger.js +1 -1
  42. package/dist/knowledge/machine-render.d.ts +41 -0
  43. package/dist/knowledge/machine-render.js +565 -0
  44. package/dist/knowledge/machine-templates.js +24 -5
  45. package/dist/knowledge/reward-confirm.js +2 -2
  46. package/dist/knowledge/reward-puzzle.js +1 -1
  47. package/dist/knowledge/reward-risk.js +9 -9
  48. package/dist/knowledge/reward-templates.js +2 -2
  49. package/dist/knowledge/service-confirm.d.ts +15 -6
  50. package/dist/knowledge/service-confirm.js +119 -11
  51. package/dist/knowledge/service-context.js +1 -1
  52. package/dist/knowledge/service-ledger.js +1 -1
  53. package/dist/knowledge/service-risk.d.ts +1 -1
  54. package/dist/knowledge/service-risk.js +3 -3
  55. package/dist/knowledge/service-templates.js +2 -2
  56. package/dist/knowledge/service-translation.d.ts +1 -1
  57. package/dist/knowledge/service-translation.js +7 -7
  58. package/dist/knowledge/tool-constraints.js +6 -2
  59. package/dist/project/deployment-bridge.d.ts +1 -1
  60. package/dist/project/deployment-bridge.js +31 -7
  61. package/dist/project/deployment-doc.d.ts +3 -0
  62. package/dist/project/deployment-doc.js +76 -14
  63. package/dist/project/edit-planner.d.ts +123 -0
  64. package/dist/project/edit-planner.js +1371 -0
  65. package/dist/project/evaluation.d.ts +2 -0
  66. package/dist/project/evaluation.js +873 -88
  67. package/dist/project/graph-builder.d.ts +4 -1
  68. package/dist/project/graph-builder.js +132 -62
  69. package/dist/project/graph.d.ts +1 -0
  70. package/dist/project/handlers.d.ts +317 -6
  71. package/dist/project/handlers.js +1171 -19
  72. package/dist/project/stage-gate.d.ts +4 -0
  73. package/dist/project/stage-gate.js +64 -5
  74. package/dist/project/task-tracker.d.ts +26 -0
  75. package/dist/project/task-tracker.js +78 -0
  76. package/dist/safety/preview.js +16 -0
  77. package/dist/schema/call/allocation.d.ts +16 -16
  78. package/dist/schema/call/allocation.js +2 -2
  79. package/dist/schema/call/arbitration.js +19 -6
  80. package/dist/schema/call/base.d.ts +21 -13
  81. package/dist/schema/call/base.js +27 -6
  82. package/dist/schema/call/bridge.d.ts +5 -5
  83. package/dist/schema/call/bridge.js +3 -1
  84. package/dist/schema/call/contact.js +2 -2
  85. package/dist/schema/call/demand.d.ts +23 -31
  86. package/dist/schema/call/demand.js +2 -2
  87. package/dist/schema/call/guard.js +2 -2
  88. package/dist/schema/call/machine.d.ts +1976 -752
  89. package/dist/schema/call/machine.js +50 -4
  90. package/dist/schema/call/order.d.ts +149 -228
  91. package/dist/schema/call/order.js +4 -3
  92. package/dist/schema/call/payment.d.ts +183 -3
  93. package/dist/schema/call/payment.js +21 -3
  94. package/dist/schema/call/permission.js +2 -2
  95. package/dist/schema/call/personal.d.ts +241 -52
  96. package/dist/schema/call/progress.d.ts +53 -61
  97. package/dist/schema/call/progress.js +18 -4
  98. package/dist/schema/call/repository.d.ts +23 -31
  99. package/dist/schema/call/repository.js +2 -2
  100. package/dist/schema/call/reward.js +3 -3
  101. package/dist/schema/call/semantic.d.ts +1 -1
  102. package/dist/schema/call/semantic.js +37 -2
  103. package/dist/schema/call/service.d.ts +275 -127
  104. package/dist/schema/call/service.js +89 -13
  105. package/dist/schema/call/treasury.js +3 -3
  106. package/dist/schema/common/index.d.ts +13 -2
  107. package/dist/schema/common/index.js +80 -15
  108. package/dist/schema/local/index.d.ts +32 -35
  109. package/dist/schema/local/index.js +28 -6
  110. package/dist/schema/messenger/index.d.ts +274 -46
  111. package/dist/schema/operations.d.ts +1264 -544
  112. package/dist/schema/operations.js +65 -7
  113. package/dist/schema/project/index.d.ts +2846 -167
  114. package/dist/schema/project/index.js +570 -16
  115. package/dist/schema/query/index.d.ts +922 -349
  116. package/dist/schema/query/index.js +205 -42
  117. package/dist/schema/schema-query/index.d.ts +65 -3
  118. package/dist/schema/schema-query/index.js +38 -5
  119. package/dist/schema/utils/node-parser.js +20 -4
  120. package/dist/schema/utils/object-type-utils.d.ts +12 -0
  121. package/dist/schema/utils/object-type-utils.js +35 -0
  122. package/dist/schema/utils/permission-machine-check.d.ts +49 -0
  123. package/dist/schema/utils/permission-machine-check.js +121 -0
  124. package/dist/schema/utils/skills-recommendation.d.ts +2 -0
  125. package/dist/schema/utils/skills-recommendation.js +76 -0
  126. package/dist/schema-query/index.d.ts +20 -1
  127. package/dist/schema-query/index.js +306 -4
  128. package/dist/schemas/account_operation.output.json +7 -1
  129. package/dist/schemas/account_operation.schema.json +3 -3
  130. package/dist/schemas/bridge_operation.output.json +6 -0
  131. package/dist/schemas/bridge_operation.schema.json +1 -1
  132. package/dist/schemas/guard-templates.json +379 -0
  133. package/dist/schemas/guard2file.schema.json +1 -1
  134. package/dist/schemas/index.json +1 -1
  135. package/dist/schemas/local_info_operation.output.json +6 -0
  136. package/dist/schemas/local_mark_operation.output.json +7 -1
  137. package/dist/schemas/local_mark_operation.schema.json +1 -1
  138. package/dist/schemas/machineNode2file.schema.json +1 -1
  139. package/dist/schemas/messenger_operation.schema.json +4 -4
  140. package/dist/schemas/onchain_events.output.json +1 -1
  141. package/dist/schemas/onchain_operations.output.json +2820 -0
  142. package/dist/schemas/onchain_operations.schema.json +444 -330
  143. package/dist/schemas/onchain_operations_allocation.schema.json +37 -28
  144. package/dist/schemas/onchain_operations_arbitration.schema.json +16 -14
  145. package/dist/schemas/onchain_operations_contact.schema.json +10 -10
  146. package/dist/schemas/onchain_operations_demand.schema.json +10 -10
  147. package/dist/schemas/onchain_operations_gen_passport.schema.json +16 -16
  148. package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
  149. package/dist/schemas/onchain_operations_guard.schema.json +2 -2
  150. package/dist/schemas/onchain_operations_machine.schema.json +43 -35
  151. package/dist/schemas/onchain_operations_order.schema.json +72 -78
  152. package/dist/schemas/onchain_operations_payment.schema.json +141 -111
  153. package/dist/schemas/onchain_operations_permission.schema.json +3 -3
  154. package/dist/schemas/onchain_operations_personal.schema.json +7 -7
  155. package/dist/schemas/onchain_operations_progress.schema.json +9 -9
  156. package/dist/schemas/onchain_operations_proof.schema.json +8 -8
  157. package/dist/schemas/onchain_operations_repository.schema.json +10 -10
  158. package/dist/schemas/onchain_operations_reward.schema.json +14 -14
  159. package/dist/schemas/onchain_operations_service.schema.json +119 -48
  160. package/dist/schemas/onchain_operations_treasury.schema.json +11 -11
  161. package/dist/schemas/onchain_table_data.output.json +33 -25
  162. package/dist/schemas/onchain_table_data.schema.json +22 -21
  163. package/dist/schemas/project_operation.output.json +2194 -23
  164. package/dist/schemas/project_operation.schema.json +84 -6
  165. package/dist/schemas/query_toolkit.output.json +108 -80
  166. package/dist/schemas/query_toolkit.schema.json +12 -12
  167. package/dist/schemas/schema_query.output.json +70 -3
  168. package/dist/schemas/schema_query.schema.json +18 -3
  169. package/dist/schemas/wowok_buildin_info.output.json +81 -8
  170. package/dist/schemas/wowok_buildin_info.schema.json +46 -2
  171. package/dist/tools/handlers/local.js +20 -5
  172. package/dist/tools/handlers/onchain.js +594 -6
  173. package/dist/tools/handlers/project.js +76 -4
  174. package/dist/tools/handlers/query.js +27 -0
  175. package/dist/tools/handlers/schema-query.js +43 -1
  176. package/dist/tools/handlers/task-status.d.ts +170 -0
  177. package/dist/tools/handlers/task-status.js +55 -0
  178. package/dist/tools/handlers/wip.js +47 -1
  179. package/dist/tools/index.d.ts +8 -0
  180. package/dist/tools/index.js +387 -12
  181. package/dist/tools/retry.d.ts +8 -0
  182. package/dist/tools/retry.js +85 -0
  183. package/dist/tools/wip-deploy-assist.d.ts +28 -0
  184. package/dist/tools/wip-deploy-assist.js +278 -0
  185. package/package.json +2 -2
  186. package/dist/schemas/guard-node-examples.md +0 -199
@@ -44,7 +44,7 @@ export declare const RevenueSchema: z.ZodObject<{
44
44
  local_mark_first?: boolean | undefined;
45
45
  };
46
46
  }>;
47
- export declare const CallPayment_DataSchema: z.ZodObject<{
47
+ export declare const CallPayment_CreateSchema: z.ZodObject<{
48
48
  object: z.ZodObject<{
49
49
  name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
50
50
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -177,8 +177,166 @@ export declare const CallPayment_DataSchema: z.ZodObject<{
177
177
  };
178
178
  }[];
179
179
  }>;
180
+ export declare const CallPayment_ReceiveSchema: z.ZodObject<{
181
+ object: z.ZodEffects<z.ZodString, string, string>;
182
+ receive: z.ZodLiteral<true>;
183
+ type_parameter: z.ZodString;
184
+ }, "strict", z.ZodTypeAny, {
185
+ object: string;
186
+ type_parameter: string;
187
+ receive: true;
188
+ }, {
189
+ object: string;
190
+ type_parameter: string;
191
+ receive: true;
192
+ }>;
193
+ export declare const CallPayment_DataSchema: z.ZodUnion<[z.ZodObject<{
194
+ object: z.ZodObject<{
195
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
196
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
197
+ onChain: z.ZodOptional<z.ZodBoolean>;
198
+ replaceExistName: z.ZodOptional<z.ZodBoolean>;
199
+ } & {
200
+ type_parameter: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
201
+ }, "strict", z.ZodTypeAny, {
202
+ type_parameter: string;
203
+ name?: string | undefined;
204
+ replaceExistName?: boolean | undefined;
205
+ tags?: string[] | undefined;
206
+ onChain?: boolean | undefined;
207
+ }, {
208
+ name?: string | undefined;
209
+ replaceExistName?: boolean | undefined;
210
+ tags?: string[] | undefined;
211
+ onChain?: boolean | undefined;
212
+ type_parameter?: string | undefined;
213
+ }>;
214
+ revenue: z.ZodArray<z.ZodObject<{
215
+ recipient: z.ZodObject<{
216
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
217
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
218
+ }, "strict", z.ZodTypeAny, {
219
+ name_or_address?: string | undefined;
220
+ local_mark_first?: boolean | undefined;
221
+ }, {
222
+ name_or_address?: string | undefined;
223
+ local_mark_first?: boolean | undefined;
224
+ }>;
225
+ amount: z.ZodUnion<[z.ZodObject<{
226
+ balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ balance: string | number;
229
+ }, {
230
+ balance: string | number;
231
+ }>, z.ZodObject<{
232
+ coin: z.ZodString;
233
+ }, "strip", z.ZodTypeAny, {
234
+ coin: string;
235
+ }, {
236
+ coin: string;
237
+ }>]>;
238
+ }, "strict", z.ZodTypeAny, {
239
+ amount: {
240
+ balance: string | number;
241
+ } | {
242
+ coin: string;
243
+ };
244
+ recipient: {
245
+ name_or_address?: string | undefined;
246
+ local_mark_first?: boolean | undefined;
247
+ };
248
+ }, {
249
+ amount: {
250
+ balance: string | number;
251
+ } | {
252
+ coin: string;
253
+ };
254
+ recipient: {
255
+ name_or_address?: string | undefined;
256
+ local_mark_first?: boolean | undefined;
257
+ };
258
+ }>, "many">;
259
+ info: z.ZodObject<{
260
+ for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
261
+ for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
262
+ remark: z.ZodString;
263
+ index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ index: string | number;
266
+ remark: string;
267
+ for_object?: string | null | undefined;
268
+ for_guard?: string | null | undefined;
269
+ }, {
270
+ index: string | number;
271
+ remark: string;
272
+ for_object?: string | null | undefined;
273
+ for_guard?: string | null | undefined;
274
+ }>;
275
+ }, "strict", z.ZodTypeAny, {
276
+ object: {
277
+ type_parameter: string;
278
+ name?: string | undefined;
279
+ replaceExistName?: boolean | undefined;
280
+ tags?: string[] | undefined;
281
+ onChain?: boolean | undefined;
282
+ };
283
+ info: {
284
+ index: string | number;
285
+ remark: string;
286
+ for_object?: string | null | undefined;
287
+ for_guard?: string | null | undefined;
288
+ };
289
+ revenue: {
290
+ amount: {
291
+ balance: string | number;
292
+ } | {
293
+ coin: string;
294
+ };
295
+ recipient: {
296
+ name_or_address?: string | undefined;
297
+ local_mark_first?: boolean | undefined;
298
+ };
299
+ }[];
300
+ }, {
301
+ object: {
302
+ name?: string | undefined;
303
+ replaceExistName?: boolean | undefined;
304
+ tags?: string[] | undefined;
305
+ onChain?: boolean | undefined;
306
+ type_parameter?: string | undefined;
307
+ };
308
+ info: {
309
+ index: string | number;
310
+ remark: string;
311
+ for_object?: string | null | undefined;
312
+ for_guard?: string | null | undefined;
313
+ };
314
+ revenue: {
315
+ amount: {
316
+ balance: string | number;
317
+ } | {
318
+ coin: string;
319
+ };
320
+ recipient: {
321
+ name_or_address?: string | undefined;
322
+ local_mark_first?: boolean | undefined;
323
+ };
324
+ }[];
325
+ }>, z.ZodObject<{
326
+ object: z.ZodEffects<z.ZodString, string, string>;
327
+ receive: z.ZodLiteral<true>;
328
+ type_parameter: z.ZodString;
329
+ }, "strict", z.ZodTypeAny, {
330
+ object: string;
331
+ type_parameter: string;
332
+ receive: true;
333
+ }, {
334
+ object: string;
335
+ type_parameter: string;
336
+ receive: true;
337
+ }>]>;
180
338
  export declare const CallPayment_InputSchema: z.ZodObject<{
181
- data: z.ZodObject<{
339
+ data: z.ZodUnion<[z.ZodObject<{
182
340
  object: z.ZodObject<{
183
341
  name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
184
342
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -310,7 +468,19 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
310
468
  local_mark_first?: boolean | undefined;
311
469
  };
312
470
  }[];
313
- }>;
471
+ }>, z.ZodObject<{
472
+ object: z.ZodEffects<z.ZodString, string, string>;
473
+ receive: z.ZodLiteral<true>;
474
+ type_parameter: z.ZodString;
475
+ }, "strict", z.ZodTypeAny, {
476
+ object: string;
477
+ type_parameter: string;
478
+ receive: true;
479
+ }, {
480
+ object: string;
481
+ type_parameter: string;
482
+ receive: true;
483
+ }>]>;
314
484
  env: z.ZodOptional<z.ZodObject<{
315
485
  account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
316
486
  permission_guard: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -374,6 +544,10 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
374
544
  local_mark_first?: boolean | undefined;
375
545
  };
376
546
  }[];
547
+ } | {
548
+ object: string;
549
+ type_parameter: string;
550
+ receive: true;
377
551
  };
378
552
  env?: {
379
553
  account: string;
@@ -414,6 +588,10 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
414
588
  local_mark_first?: boolean | undefined;
415
589
  };
416
590
  }[];
591
+ } | {
592
+ object: string;
593
+ type_parameter: string;
594
+ receive: true;
417
595
  };
418
596
  env?: {
419
597
  no_cache?: boolean | undefined;
@@ -430,5 +608,7 @@ export declare const CallPayment_InputSchema: z.ZodObject<{
430
608
  } | undefined;
431
609
  }>;
432
610
  export type Revenue = z.infer<typeof RevenueSchema>;
611
+ export type CallPaymentCreate_Data = z.infer<typeof CallPayment_CreateSchema>;
612
+ export type CallPaymentReceive_Data = z.infer<typeof CallPayment_ReceiveSchema>;
433
613
  export type CallPayment_Data = z.infer<typeof CallPayment_DataSchema>;
434
614
  export type CallPayment_Input = z.infer<typeof CallPayment_InputSchema>;
@@ -1,16 +1,34 @@
1
1
  import { z } from "zod";
2
2
  import { PaymentInfoSchema } from "../query/index.js";
3
3
  import { CoinParamSchema, CallEnvSchema, TypeNamedObjectSchema } from "./base.js";
4
- import { AccountOrMark_AddressSchema } from "../common/index.js";
4
+ import { AccountOrMark_AddressSchema, NameOrAddressSchema } from "../common/index.js";
5
5
  export const RevenueSchema = z.object({
6
6
  recipient: AccountOrMark_AddressSchema,
7
7
  amount: CoinParamSchema
8
8
  }).strict().describe("Payment recipient and amount");
9
- export const CallPayment_DataSchema = z.object({
9
+ export const CallPayment_CreateSchema = z.object({
10
10
  object: TypeNamedObjectSchema,
11
11
  revenue: z.array(RevenueSchema).describe("Array of payment recipients and amounts"),
12
12
  info: PaymentInfoSchema
13
- }).strict().describe("On-chain Payment creation. USAGE: Set 'object' field with {name, type, ...} to create a named Payment. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. Payment is an immutable object - it can only be created, not modified. The 'object' field is CRITICAL and REQUIRED.");
13
+ }).strict().describe("Create a new Payment. USAGE: Set 'object' field with {name, type, ...} to create a named Payment. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. Payment is an immutable object - it can only be created, not modified. The 'object' field is CRITICAL and REQUIRED.");
14
+ export const CallPayment_ReceiveSchema = z.object({
15
+ object: NameOrAddressSchema.describe("CoinWrapper object ID (0x...) or local name to unwrap. " +
16
+ "Find received CoinWrappers via query_toolkit with query_type='onchain_received'."),
17
+ receive: z.literal(true).describe("Set to true to activate receive mode. " +
18
+ "CoinWrapper objects ARE transferred to recipients via transfer::public_transfer (they arrive as owned objects), " +
19
+ "but they are NOT spendable coins. This mode unwraps a CoinWrapper into actual coins in your wallet " +
20
+ "via payment::unwrap_to_myself. The caller must be the CoinWrapper's owner (the recipient " +
21
+ "specified in the Allocation's revenue split)."),
22
+ type_parameter: z.string().describe("Coin type of the CoinWrapper, e.g. '0x2::wow::WOW'. " +
23
+ "Must match the type used when the Allocation created the Payment."),
24
+ }).strict().describe("Receive mode: unwrap a CoinWrapper to the caller's wallet. Use after Allocation's alloc_by_guard creates a Payment with your address as a revenue recipient. The CoinWrapper holds your share — call this to convert it to actual coins in your wallet.");
25
+ export const CallPayment_DataSchema = z.union([
26
+ CallPayment_CreateSchema,
27
+ CallPayment_ReceiveSchema,
28
+ ]).describe("On-chain Payment operations. TWO modes:\n" +
29
+ "(1) CREATE: Set 'object' with {name, type_parameter, ...}, 'revenue', and 'info' to create a new Payment.\n" +
30
+ "(2) RECEIVE: Set {object: '<coinwrapper_id_or_name>', receive: true, type_parameter: '0x2::wow::WOW'} to unwrap a CoinWrapper to your wallet.\n" +
31
+ "The 'object' field is CRITICAL and REQUIRED in both modes. STRING for receive (CoinWrapper ID/name), OBJECT for create.");
14
32
  export const CallPayment_InputSchema = z.object({
15
33
  data: CallPayment_DataSchema,
16
34
  env: CallEnvSchema.optional(),
@@ -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({