@wowok/agent-mcp 2.3.16 → 2.4.1

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 (136) hide show
  1. package/dist/customer/index.d.ts +9 -0
  2. package/dist/customer/index.js +9 -0
  3. package/dist/customer/industry-risks.d.ts +4 -0
  4. package/dist/customer/industry-risks.js +45 -31
  5. package/dist/customer/order-monitor.js +57 -57
  6. package/dist/customer/order-strategy.js +89 -89
  7. package/dist/customer/post-purchase.js +97 -97
  8. package/dist/customer/reminder-system.js +26 -26
  9. package/dist/customer/risk-assessment.js +46 -46
  10. package/dist/customer/types.d.ts +4 -4
  11. package/dist/customer/types.js +4 -4
  12. package/dist/customer/user-preferences.d.ts +3 -0
  13. package/dist/customer/user-preferences.js +59 -50
  14. package/dist/experience/intent-distill.js +6 -6
  15. package/dist/experience/realtime-feedback.js +17 -0
  16. package/dist/index.js +360 -273
  17. package/dist/knowledge/acquisition-flywheel.d.ts +3 -0
  18. package/dist/knowledge/acquisition-flywheel.js +73 -64
  19. package/dist/knowledge/arbitration-trust.js +10 -10
  20. package/dist/knowledge/demand-matching.js +8 -8
  21. package/dist/knowledge/dynamic-pricing.js +18 -18
  22. package/dist/knowledge/flywheel-loop.js +11 -11
  23. package/dist/knowledge/glossary.js +22 -22
  24. package/dist/knowledge/guard-ledger.d.ts +19 -0
  25. package/dist/knowledge/guard-ledger.js +246 -0
  26. package/dist/knowledge/guard-lint.d.ts +76 -0
  27. package/dist/knowledge/guard-lint.js +590 -0
  28. package/dist/knowledge/guard-puzzle.d.ts +188 -0
  29. package/dist/knowledge/guard-puzzle.js +804 -0
  30. package/dist/knowledge/guard-risk.d.ts +67 -0
  31. package/dist/knowledge/guard-risk.js +1046 -0
  32. package/dist/knowledge/guard-templates.d.ts +37 -0
  33. package/dist/knowledge/guard-templates.js +329 -0
  34. package/dist/knowledge/guard-translation.d.ts +58 -0
  35. package/dist/knowledge/guard-translation.js +1118 -0
  36. package/dist/knowledge/index.d.ts +17 -0
  37. package/dist/knowledge/index.js +17 -0
  38. package/dist/knowledge/industry-evolution.js +29 -29
  39. package/dist/knowledge/industry-generalizer.js +52 -52
  40. package/dist/knowledge/industry-registry.d.ts +1 -2
  41. package/dist/knowledge/industry-registry.js +43 -36
  42. package/dist/knowledge/intent-metrics.js +67 -67
  43. package/dist/knowledge/process-model.js +80 -80
  44. package/dist/knowledge/reputation-rules.js +9 -9
  45. package/dist/knowledge/reward-templates.js +51 -51
  46. package/dist/knowledge/safety-rules.js +63 -2
  47. package/dist/knowledge/tool-constraints.js +17 -11
  48. package/dist/knowledge/trust-metrics.js +26 -26
  49. package/dist/safety/confirm-gate.d.ts +4 -2
  50. package/dist/safety/confirm-gate.js +48 -4
  51. package/dist/schema/call/allocation.d.ts +24 -14
  52. package/dist/schema/call/arbitration.d.ts +142 -132
  53. package/dist/schema/call/base.d.ts +901 -43
  54. package/dist/schema/call/base.js +77 -13
  55. package/dist/schema/call/bridge-handler.js +15 -2
  56. package/dist/schema/call/bridge.d.ts +795 -27
  57. package/dist/schema/call/bridge.js +37 -0
  58. package/dist/schema/call/contact.d.ts +10 -0
  59. package/dist/schema/call/demand.d.ts +94 -84
  60. package/dist/schema/call/guard.d.ts +229 -46
  61. package/dist/schema/call/guard.js +50 -0
  62. package/dist/schema/call/handler.js +46 -14
  63. package/dist/schema/call/machine.d.ts +158 -138
  64. package/dist/schema/call/order.d.ts +10 -0
  65. package/dist/schema/call/payment.d.ts +10 -0
  66. package/dist/schema/call/permission.d.ts +314 -304
  67. package/dist/schema/call/personal.d.ts +10 -0
  68. package/dist/schema/call/progress.d.ts +10 -0
  69. package/dist/schema/call/proof.d.ts +20 -0
  70. package/dist/schema/call/repository.d.ts +32 -22
  71. package/dist/schema/call/reward.d.ts +10 -0
  72. package/dist/schema/call/semantic.d.ts +9 -2
  73. package/dist/schema/call/semantic.js +617 -25
  74. package/dist/schema/call/service.d.ts +20 -10
  75. package/dist/schema/call/treasury.d.ts +10 -0
  76. package/dist/schema/config/index.d.ts +18 -0
  77. package/dist/schema/config/index.js +17 -0
  78. package/dist/schema/index.d.ts +6 -0
  79. package/dist/schema/index.js +5 -0
  80. package/dist/schema/local/index.d.ts +9 -9
  81. package/dist/schema/local/index.js +9 -0
  82. package/dist/schema/local/wip.d.ts +39 -19
  83. package/dist/schema/local/wip.js +5 -5
  84. package/dist/schema/messenger/index.d.ts +376 -55
  85. package/dist/schema/messenger/index.js +19 -19
  86. package/dist/schema/operations.d.ts +1881 -681
  87. package/dist/schema/operations.js +91 -96
  88. package/dist/schema/project/index.d.ts +21 -0
  89. package/dist/schema/project/index.js +32 -0
  90. package/dist/schema/query/index.d.ts +1074 -168
  91. package/dist/schema/query/index.js +8 -8
  92. package/dist/schema/schema-query/index.d.ts +33 -0
  93. package/dist/schema/schema-query/index.js +36 -0
  94. package/dist/schema/schema-version.d.ts +25 -0
  95. package/dist/schema/schema-version.js +76 -0
  96. package/dist/schema/trust/index.d.ts +407 -0
  97. package/dist/schema/trust/index.js +113 -0
  98. package/dist/schema/utils/guard-parser.js +4 -4
  99. package/dist/schema/utils/node-parser.js +14 -14
  100. package/dist/schemas/bridge_operation.output.json +233 -9
  101. package/dist/schemas/bridge_operation.schema.json +67 -8
  102. package/dist/schemas/config_operation.output.json +18 -0
  103. package/dist/schemas/config_operation.schema.json +34 -0
  104. package/dist/schemas/guard-node-schema.json +82 -0
  105. package/dist/schemas/guard2file.schema.json +8 -0
  106. package/dist/schemas/index.json +19 -1
  107. package/dist/schemas/machineNode2file.schema.json +8 -0
  108. package/dist/schemas/messenger_operation.output.json +236 -10
  109. package/dist/schemas/onchain_events.output.json +718 -0
  110. package/dist/schemas/onchain_operations.output.json +286 -11
  111. package/dist/schemas/onchain_operations.schema.json +19 -16
  112. package/dist/schemas/onchain_operations_allocation.schema.json +8 -0
  113. package/dist/schemas/onchain_operations_arbitration.schema.json +8 -0
  114. package/dist/schemas/onchain_operations_contact.schema.json +8 -0
  115. package/dist/schemas/onchain_operations_demand.schema.json +8 -0
  116. package/dist/schemas/onchain_operations_gen_passport.schema.json +16 -0
  117. package/dist/schemas/onchain_operations_guard.schema.json +11 -16
  118. package/dist/schemas/onchain_operations_machine.schema.json +8 -0
  119. package/dist/schemas/onchain_operations_order.schema.json +8 -0
  120. package/dist/schemas/onchain_operations_payment.schema.json +8 -0
  121. package/dist/schemas/onchain_operations_permission.schema.json +8 -0
  122. package/dist/schemas/onchain_operations_personal.schema.json +8 -0
  123. package/dist/schemas/onchain_operations_progress.schema.json +8 -0
  124. package/dist/schemas/onchain_operations_repository.schema.json +8 -0
  125. package/dist/schemas/onchain_operations_reward.schema.json +8 -0
  126. package/dist/schemas/onchain_operations_service.schema.json +8 -0
  127. package/dist/schemas/onchain_operations_treasury.schema.json +8 -0
  128. package/dist/schemas/onchain_table_data.output.json +718 -0
  129. package/dist/schemas/project_operation.output.json +18 -0
  130. package/dist/schemas/project_operation.schema.json +42 -0
  131. package/dist/schemas/query_toolkit.schema.json +360 -368
  132. package/dist/schemas/schema_query.schema.json +6 -3
  133. package/dist/schemas/trust_score.output.json +327 -0
  134. package/dist/schemas/trust_score.schema.json +46 -0
  135. package/dist/schemas/wip_file.output.json +24 -1
  136. package/package.json +2 -2
@@ -13,6 +13,31 @@ export declare const CallGuard_RootSchema: z.ZodUnion<[z.ZodEffects<z.ZodType<an
13
13
  file_path: string;
14
14
  format?: "markdown" | "json" | undefined;
15
15
  }>]>;
16
+ export declare const GuardBindingHintActionSchema: z.ZodEnum<["buy", "forward", "allocate", "claim_reward", "vote", "dispute", "write_repository", "submit_progress", "gen_passport", "custom"]>;
17
+ export declare const GuardBindingHintHostObjectSchema: z.ZodEnum<["Service", "Machine", "Arbitration", "Reward", "Repository", "Progress", "Demand", "Standalone"]>;
18
+ export declare const GuardBindingHintBindingFieldSchema: z.ZodEnum<["buy_guard", "order_allocators", "Forward.guard", "submission", "guard", "write_guard", "usage_guard", "voting_guard", "ServiceGuard", "none"]>;
19
+ export declare const GuardBindingHintSchema: z.ZodObject<{
20
+ action: z.ZodEnum<["buy", "forward", "allocate", "claim_reward", "vote", "dispute", "write_repository", "submit_progress", "gen_passport", "custom"]>;
21
+ host_object: z.ZodEnum<["Service", "Machine", "Arbitration", "Reward", "Repository", "Progress", "Demand", "Standalone"]>;
22
+ binding_field: z.ZodEnum<["buy_guard", "order_allocators", "Forward.guard", "submission", "guard", "write_guard", "usage_guard", "voting_guard", "ServiceGuard", "none"]>;
23
+ rule_sentence: z.ZodOptional<z.ZodString>;
24
+ failure_conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
+ circular_reference: z.ZodOptional<z.ZodBoolean>;
26
+ }, "strict", z.ZodTypeAny, {
27
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
28
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
29
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
30
+ rule_sentence?: string | undefined;
31
+ failure_conditions?: string[] | undefined;
32
+ circular_reference?: boolean | undefined;
33
+ }, {
34
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
35
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
36
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
37
+ rule_sentence?: string | undefined;
38
+ failure_conditions?: string[] | undefined;
39
+ circular_reference?: boolean | undefined;
40
+ }>;
16
41
  export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
17
42
  namedNew: z.ZodOptional<z.ZodObject<{
18
43
  name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -124,15 +149,30 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
124
149
  guards: string[];
125
150
  logic_or?: boolean | undefined;
126
151
  }>>;
152
+ binding_hint: z.ZodOptional<z.ZodObject<{
153
+ action: z.ZodEnum<["buy", "forward", "allocate", "claim_reward", "vote", "dispute", "write_repository", "submit_progress", "gen_passport", "custom"]>;
154
+ host_object: z.ZodEnum<["Service", "Machine", "Arbitration", "Reward", "Repository", "Progress", "Demand", "Standalone"]>;
155
+ binding_field: z.ZodEnum<["buy_guard", "order_allocators", "Forward.guard", "submission", "guard", "write_guard", "usage_guard", "voting_guard", "ServiceGuard", "none"]>;
156
+ rule_sentence: z.ZodOptional<z.ZodString>;
157
+ failure_conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
158
+ circular_reference: z.ZodOptional<z.ZodBoolean>;
159
+ }, "strict", z.ZodTypeAny, {
160
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
161
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
162
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
163
+ rule_sentence?: string | undefined;
164
+ failure_conditions?: string[] | undefined;
165
+ circular_reference?: boolean | undefined;
166
+ }, {
167
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
168
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
169
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
170
+ rule_sentence?: string | undefined;
171
+ failure_conditions?: string[] | undefined;
172
+ circular_reference?: boolean | undefined;
173
+ }>>;
127
174
  }, "strict", z.ZodTypeAny, {
128
175
  description?: string | undefined;
129
- namedNew?: {
130
- name?: string | undefined;
131
- replaceExistName?: boolean | undefined;
132
- tags?: string[] | undefined;
133
- onChain?: boolean | undefined;
134
- } | undefined;
135
- root?: any;
136
176
  table?: {
137
177
  identifier: number;
138
178
  b_submission: boolean;
@@ -149,19 +189,27 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
149
189
  check_all_founded?: boolean | undefined;
150
190
  } | string[] | boolean[] | number[] | number[][] | undefined;
151
191
  }[] | undefined;
192
+ root?: any;
152
193
  rely?: {
153
194
  guards: string[];
154
195
  logic_or?: boolean | undefined;
155
196
  } | undefined;
156
- }, {
157
- description?: string | undefined;
158
197
  namedNew?: {
159
198
  name?: string | undefined;
160
199
  replaceExistName?: boolean | undefined;
161
200
  tags?: string[] | undefined;
162
201
  onChain?: boolean | undefined;
163
202
  } | undefined;
164
- root?: any;
203
+ binding_hint?: {
204
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
205
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
206
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
207
+ rule_sentence?: string | undefined;
208
+ failure_conditions?: string[] | undefined;
209
+ circular_reference?: boolean | undefined;
210
+ } | undefined;
211
+ }, {
212
+ description?: string | undefined;
165
213
  table?: {
166
214
  identifier: number;
167
215
  b_submission: boolean;
@@ -178,19 +226,27 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
178
226
  } | string[] | boolean[] | number[] | number[][] | undefined;
179
227
  name?: string | undefined;
180
228
  }[] | undefined;
229
+ root?: any;
181
230
  rely?: {
182
231
  guards: string[];
183
232
  logic_or?: boolean | undefined;
184
233
  } | undefined;
185
- }>, {
186
- description?: string | undefined;
187
234
  namedNew?: {
188
235
  name?: string | undefined;
189
236
  replaceExistName?: boolean | undefined;
190
237
  tags?: string[] | undefined;
191
238
  onChain?: boolean | undefined;
192
239
  } | undefined;
193
- root?: any;
240
+ binding_hint?: {
241
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
242
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
243
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
244
+ rule_sentence?: string | undefined;
245
+ failure_conditions?: string[] | undefined;
246
+ circular_reference?: boolean | undefined;
247
+ } | undefined;
248
+ }>, {
249
+ description?: string | undefined;
194
250
  table?: {
195
251
  identifier: number;
196
252
  b_submission: boolean;
@@ -207,19 +263,27 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
207
263
  check_all_founded?: boolean | undefined;
208
264
  } | string[] | boolean[] | number[] | number[][] | undefined;
209
265
  }[] | undefined;
266
+ root?: any;
210
267
  rely?: {
211
268
  guards: string[];
212
269
  logic_or?: boolean | undefined;
213
270
  } | undefined;
214
- }, {
215
- description?: string | undefined;
216
271
  namedNew?: {
217
272
  name?: string | undefined;
218
273
  replaceExistName?: boolean | undefined;
219
274
  tags?: string[] | undefined;
220
275
  onChain?: boolean | undefined;
221
276
  } | undefined;
222
- root?: any;
277
+ binding_hint?: {
278
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
279
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
280
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
281
+ rule_sentence?: string | undefined;
282
+ failure_conditions?: string[] | undefined;
283
+ circular_reference?: boolean | undefined;
284
+ } | undefined;
285
+ }, {
286
+ description?: string | undefined;
223
287
  table?: {
224
288
  identifier: number;
225
289
  b_submission: boolean;
@@ -236,10 +300,25 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
236
300
  } | string[] | boolean[] | number[] | number[][] | undefined;
237
301
  name?: string | undefined;
238
302
  }[] | undefined;
303
+ root?: any;
239
304
  rely?: {
240
305
  guards: string[];
241
306
  logic_or?: boolean | undefined;
242
307
  } | undefined;
308
+ namedNew?: {
309
+ name?: string | undefined;
310
+ replaceExistName?: boolean | undefined;
311
+ tags?: string[] | undefined;
312
+ onChain?: boolean | undefined;
313
+ } | undefined;
314
+ binding_hint?: {
315
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
316
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
317
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
318
+ rule_sentence?: string | undefined;
319
+ failure_conditions?: string[] | undefined;
320
+ circular_reference?: boolean | undefined;
321
+ } | undefined;
243
322
  }>;
244
323
  export declare const CallGuard_InputSchema: z.ZodObject<{
245
324
  data: z.ZodEffects<z.ZodObject<{
@@ -353,15 +432,30 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
353
432
  guards: string[];
354
433
  logic_or?: boolean | undefined;
355
434
  }>>;
435
+ binding_hint: z.ZodOptional<z.ZodObject<{
436
+ action: z.ZodEnum<["buy", "forward", "allocate", "claim_reward", "vote", "dispute", "write_repository", "submit_progress", "gen_passport", "custom"]>;
437
+ host_object: z.ZodEnum<["Service", "Machine", "Arbitration", "Reward", "Repository", "Progress", "Demand", "Standalone"]>;
438
+ binding_field: z.ZodEnum<["buy_guard", "order_allocators", "Forward.guard", "submission", "guard", "write_guard", "usage_guard", "voting_guard", "ServiceGuard", "none"]>;
439
+ rule_sentence: z.ZodOptional<z.ZodString>;
440
+ failure_conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
441
+ circular_reference: z.ZodOptional<z.ZodBoolean>;
442
+ }, "strict", z.ZodTypeAny, {
443
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
444
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
445
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
446
+ rule_sentence?: string | undefined;
447
+ failure_conditions?: string[] | undefined;
448
+ circular_reference?: boolean | undefined;
449
+ }, {
450
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
451
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
452
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
453
+ rule_sentence?: string | undefined;
454
+ failure_conditions?: string[] | undefined;
455
+ circular_reference?: boolean | undefined;
456
+ }>>;
356
457
  }, "strict", z.ZodTypeAny, {
357
458
  description?: string | undefined;
358
- namedNew?: {
359
- name?: string | undefined;
360
- replaceExistName?: boolean | undefined;
361
- tags?: string[] | undefined;
362
- onChain?: boolean | undefined;
363
- } | undefined;
364
- root?: any;
365
459
  table?: {
366
460
  identifier: number;
367
461
  b_submission: boolean;
@@ -378,19 +472,27 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
378
472
  check_all_founded?: boolean | undefined;
379
473
  } | string[] | boolean[] | number[] | number[][] | undefined;
380
474
  }[] | undefined;
475
+ root?: any;
381
476
  rely?: {
382
477
  guards: string[];
383
478
  logic_or?: boolean | undefined;
384
479
  } | undefined;
385
- }, {
386
- description?: string | undefined;
387
480
  namedNew?: {
388
481
  name?: string | undefined;
389
482
  replaceExistName?: boolean | undefined;
390
483
  tags?: string[] | undefined;
391
484
  onChain?: boolean | undefined;
392
485
  } | undefined;
393
- root?: any;
486
+ binding_hint?: {
487
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
488
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
489
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
490
+ rule_sentence?: string | undefined;
491
+ failure_conditions?: string[] | undefined;
492
+ circular_reference?: boolean | undefined;
493
+ } | undefined;
494
+ }, {
495
+ description?: string | undefined;
394
496
  table?: {
395
497
  identifier: number;
396
498
  b_submission: boolean;
@@ -407,19 +509,27 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
407
509
  } | string[] | boolean[] | number[] | number[][] | undefined;
408
510
  name?: string | undefined;
409
511
  }[] | undefined;
512
+ root?: any;
410
513
  rely?: {
411
514
  guards: string[];
412
515
  logic_or?: boolean | undefined;
413
516
  } | undefined;
414
- }>, {
415
- description?: string | undefined;
416
517
  namedNew?: {
417
518
  name?: string | undefined;
418
519
  replaceExistName?: boolean | undefined;
419
520
  tags?: string[] | undefined;
420
521
  onChain?: boolean | undefined;
421
522
  } | undefined;
422
- root?: any;
523
+ binding_hint?: {
524
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
525
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
526
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
527
+ rule_sentence?: string | undefined;
528
+ failure_conditions?: string[] | undefined;
529
+ circular_reference?: boolean | undefined;
530
+ } | undefined;
531
+ }>, {
532
+ description?: string | undefined;
423
533
  table?: {
424
534
  identifier: number;
425
535
  b_submission: boolean;
@@ -436,19 +546,27 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
436
546
  check_all_founded?: boolean | undefined;
437
547
  } | string[] | boolean[] | number[] | number[][] | undefined;
438
548
  }[] | undefined;
549
+ root?: any;
439
550
  rely?: {
440
551
  guards: string[];
441
552
  logic_or?: boolean | undefined;
442
553
  } | undefined;
443
- }, {
444
- description?: string | undefined;
445
554
  namedNew?: {
446
555
  name?: string | undefined;
447
556
  replaceExistName?: boolean | undefined;
448
557
  tags?: string[] | undefined;
449
558
  onChain?: boolean | undefined;
450
559
  } | undefined;
451
- root?: any;
560
+ binding_hint?: {
561
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
562
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
563
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
564
+ rule_sentence?: string | undefined;
565
+ failure_conditions?: string[] | undefined;
566
+ circular_reference?: boolean | undefined;
567
+ } | undefined;
568
+ }, {
569
+ description?: string | undefined;
452
570
  table?: {
453
571
  identifier: number;
454
572
  b_submission: boolean;
@@ -465,10 +583,25 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
465
583
  } | string[] | boolean[] | number[] | number[][] | undefined;
466
584
  name?: string | undefined;
467
585
  }[] | undefined;
586
+ root?: any;
468
587
  rely?: {
469
588
  guards: string[];
470
589
  logic_or?: boolean | undefined;
471
590
  } | undefined;
591
+ namedNew?: {
592
+ name?: string | undefined;
593
+ replaceExistName?: boolean | undefined;
594
+ tags?: string[] | undefined;
595
+ onChain?: boolean | undefined;
596
+ } | undefined;
597
+ binding_hint?: {
598
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
599
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
600
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
601
+ rule_sentence?: string | undefined;
602
+ failure_conditions?: string[] | undefined;
603
+ circular_reference?: boolean | undefined;
604
+ } | undefined;
472
605
  }>;
473
606
  env: z.ZodOptional<z.ZodObject<{
474
607
  account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
@@ -479,6 +612,8 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
479
612
  confirmed: z.ZodOptional<z.ZodBoolean>;
480
613
  user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
481
614
  project: z.ZodOptional<z.ZodString>;
615
+ client_schema_version: z.ZodOptional<z.ZodString>;
616
+ schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
482
617
  }, "strict", z.ZodTypeAny, {
483
618
  account: string;
484
619
  no_cache?: boolean | undefined;
@@ -488,6 +623,8 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
488
623
  confirmed?: boolean | undefined;
489
624
  user_intent_phrases?: string[] | undefined;
490
625
  project?: string | undefined;
626
+ client_schema_version?: string | undefined;
627
+ schema_strict_mode?: boolean | undefined;
491
628
  }, {
492
629
  no_cache?: boolean | undefined;
493
630
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
@@ -497,17 +634,12 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
497
634
  confirmed?: boolean | undefined;
498
635
  user_intent_phrases?: string[] | undefined;
499
636
  project?: string | undefined;
637
+ client_schema_version?: string | undefined;
638
+ schema_strict_mode?: boolean | undefined;
500
639
  }>>;
501
640
  }, "strict", z.ZodTypeAny, {
502
641
  data: {
503
642
  description?: string | undefined;
504
- namedNew?: {
505
- name?: string | undefined;
506
- replaceExistName?: boolean | undefined;
507
- tags?: string[] | undefined;
508
- onChain?: boolean | undefined;
509
- } | undefined;
510
- root?: any;
511
643
  table?: {
512
644
  identifier: number;
513
645
  b_submission: boolean;
@@ -524,10 +656,25 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
524
656
  check_all_founded?: boolean | undefined;
525
657
  } | string[] | boolean[] | number[] | number[][] | undefined;
526
658
  }[] | undefined;
659
+ root?: any;
527
660
  rely?: {
528
661
  guards: string[];
529
662
  logic_or?: boolean | undefined;
530
663
  } | undefined;
664
+ namedNew?: {
665
+ name?: string | undefined;
666
+ replaceExistName?: boolean | undefined;
667
+ tags?: string[] | undefined;
668
+ onChain?: boolean | undefined;
669
+ } | undefined;
670
+ binding_hint?: {
671
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
672
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
673
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
674
+ rule_sentence?: string | undefined;
675
+ failure_conditions?: string[] | undefined;
676
+ circular_reference?: boolean | undefined;
677
+ } | undefined;
531
678
  };
532
679
  env?: {
533
680
  account: string;
@@ -538,17 +685,12 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
538
685
  confirmed?: boolean | undefined;
539
686
  user_intent_phrases?: string[] | undefined;
540
687
  project?: string | undefined;
688
+ client_schema_version?: string | undefined;
689
+ schema_strict_mode?: boolean | undefined;
541
690
  } | undefined;
542
691
  }, {
543
692
  data: {
544
693
  description?: string | undefined;
545
- namedNew?: {
546
- name?: string | undefined;
547
- replaceExistName?: boolean | undefined;
548
- tags?: string[] | undefined;
549
- onChain?: boolean | undefined;
550
- } | undefined;
551
- root?: any;
552
694
  table?: {
553
695
  identifier: number;
554
696
  b_submission: boolean;
@@ -565,10 +707,25 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
565
707
  } | string[] | boolean[] | number[] | number[][] | undefined;
566
708
  name?: string | undefined;
567
709
  }[] | undefined;
710
+ root?: any;
568
711
  rely?: {
569
712
  guards: string[];
570
713
  logic_or?: boolean | undefined;
571
714
  } | undefined;
715
+ namedNew?: {
716
+ name?: string | undefined;
717
+ replaceExistName?: boolean | undefined;
718
+ tags?: string[] | undefined;
719
+ onChain?: boolean | undefined;
720
+ } | undefined;
721
+ binding_hint?: {
722
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
723
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
724
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
725
+ rule_sentence?: string | undefined;
726
+ failure_conditions?: string[] | undefined;
727
+ circular_reference?: boolean | undefined;
728
+ } | undefined;
572
729
  };
573
730
  env?: {
574
731
  no_cache?: boolean | undefined;
@@ -579,6 +736,8 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
579
736
  confirmed?: boolean | undefined;
580
737
  user_intent_phrases?: string[] | undefined;
581
738
  project?: string | undefined;
739
+ client_schema_version?: string | undefined;
740
+ schema_strict_mode?: boolean | undefined;
582
741
  } | undefined;
583
742
  }>;
584
743
  export declare const CallGenPassport_InputSchema: z.ZodObject<{
@@ -772,6 +931,8 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
772
931
  confirmed: z.ZodOptional<z.ZodBoolean>;
773
932
  user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
774
933
  project: z.ZodOptional<z.ZodString>;
934
+ client_schema_version: z.ZodOptional<z.ZodString>;
935
+ schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
775
936
  }, "strict", z.ZodTypeAny, {
776
937
  account: string;
777
938
  no_cache?: boolean | undefined;
@@ -781,6 +942,8 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
781
942
  confirmed?: boolean | undefined;
782
943
  user_intent_phrases?: string[] | undefined;
783
944
  project?: string | undefined;
945
+ client_schema_version?: string | undefined;
946
+ schema_strict_mode?: boolean | undefined;
784
947
  }, {
785
948
  no_cache?: boolean | undefined;
786
949
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
@@ -790,6 +953,8 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
790
953
  confirmed?: boolean | undefined;
791
954
  user_intent_phrases?: string[] | undefined;
792
955
  project?: string | undefined;
956
+ client_schema_version?: string | undefined;
957
+ schema_strict_mode?: boolean | undefined;
793
958
  }>>;
794
959
  }, "strict", z.ZodTypeAny, {
795
960
  guard: string | string[];
@@ -829,6 +994,8 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
829
994
  confirmed?: boolean | undefined;
830
995
  user_intent_phrases?: string[] | undefined;
831
996
  project?: string | undefined;
997
+ client_schema_version?: string | undefined;
998
+ schema_strict_mode?: boolean | undefined;
832
999
  } | undefined;
833
1000
  }, {
834
1001
  guard: string | string[];
@@ -868,6 +1035,8 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
868
1035
  confirmed?: boolean | undefined;
869
1036
  user_intent_phrases?: string[] | undefined;
870
1037
  project?: string | undefined;
1038
+ client_schema_version?: string | undefined;
1039
+ schema_strict_mode?: boolean | undefined;
871
1040
  } | undefined;
872
1041
  }>;
873
1042
  export declare const Guard2File_InputSchema: z.ZodObject<{
@@ -883,6 +1052,8 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
883
1052
  confirmed: z.ZodOptional<z.ZodBoolean>;
884
1053
  user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
885
1054
  project: z.ZodOptional<z.ZodString>;
1055
+ client_schema_version: z.ZodOptional<z.ZodString>;
1056
+ schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
886
1057
  }, "strict", z.ZodTypeAny, {
887
1058
  account: string;
888
1059
  no_cache?: boolean | undefined;
@@ -892,6 +1063,8 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
892
1063
  confirmed?: boolean | undefined;
893
1064
  user_intent_phrases?: string[] | undefined;
894
1065
  project?: string | undefined;
1066
+ client_schema_version?: string | undefined;
1067
+ schema_strict_mode?: boolean | undefined;
895
1068
  }, {
896
1069
  no_cache?: boolean | undefined;
897
1070
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
@@ -901,6 +1074,8 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
901
1074
  confirmed?: boolean | undefined;
902
1075
  user_intent_phrases?: string[] | undefined;
903
1076
  project?: string | undefined;
1077
+ client_schema_version?: string | undefined;
1078
+ schema_strict_mode?: boolean | undefined;
904
1079
  }>>;
905
1080
  }, "strict", z.ZodTypeAny, {
906
1081
  guard: string;
@@ -915,6 +1090,8 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
915
1090
  confirmed?: boolean | undefined;
916
1091
  user_intent_phrases?: string[] | undefined;
917
1092
  project?: string | undefined;
1093
+ client_schema_version?: string | undefined;
1094
+ schema_strict_mode?: boolean | undefined;
918
1095
  } | undefined;
919
1096
  }, {
920
1097
  guard: string;
@@ -929,6 +1106,8 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
929
1106
  confirmed?: boolean | undefined;
930
1107
  user_intent_phrases?: string[] | undefined;
931
1108
  project?: string | undefined;
1109
+ client_schema_version?: string | undefined;
1110
+ schema_strict_mode?: boolean | undefined;
932
1111
  } | undefined;
933
1112
  }>;
934
1113
  export declare const Guard2File_OutputSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
@@ -1042,3 +1221,7 @@ export type CallGenPassport_Input = z.infer<typeof CallGenPassport_InputSchema>;
1042
1221
  export type Guard2File_Input = z.infer<typeof Guard2File_InputSchema>;
1043
1222
  export type Guard2File_Output = z.infer<typeof Guard2File_OutputSchema>;
1044
1223
  export type Guard2File_OutputWrapped = z.infer<typeof Guard2File_OutputWrappedSchema>;
1224
+ export type GuardBindingHintAction = z.infer<typeof GuardBindingHintActionSchema>;
1225
+ export type GuardBindingHintHostObject = z.infer<typeof GuardBindingHintHostObjectSchema>;
1226
+ export type GuardBindingHintBindingField = z.infer<typeof GuardBindingHintBindingFieldSchema>;
1227
+ export type GuardBindingHint = z.infer<typeof GuardBindingHintSchema>;
@@ -47,6 +47,54 @@ const isBoolValueType = (valueType) => {
47
47
  }
48
48
  return false;
49
49
  };
50
+ export const GuardBindingHintActionSchema = z.enum([
51
+ "buy",
52
+ "forward",
53
+ "allocate",
54
+ "claim_reward",
55
+ "vote",
56
+ "dispute",
57
+ "write_repository",
58
+ "submit_progress",
59
+ "gen_passport",
60
+ "custom",
61
+ ]).describe("Guard protected action type. Maps to IntentPuzzle.action in the puzzle model.");
62
+ export const GuardBindingHintHostObjectSchema = z.enum([
63
+ "Service",
64
+ "Machine",
65
+ "Arbitration",
66
+ "Reward",
67
+ "Repository",
68
+ "Progress",
69
+ "Demand",
70
+ "Standalone",
71
+ ]).describe("Host object type that the Guard will bind to. 'Standalone' for independent Guards (rely dependency or gen_passport).");
72
+ export const GuardBindingHintBindingFieldSchema = z.enum([
73
+ "buy_guard",
74
+ "order_allocators",
75
+ "Forward.guard",
76
+ "submission",
77
+ "guard",
78
+ "write_guard",
79
+ "usage_guard",
80
+ "voting_guard",
81
+ "ServiceGuard",
82
+ "none",
83
+ ]).describe("Binding field on the host object. 'none' for standalone Guards.");
84
+ export const GuardBindingHintSchema = z.object({
85
+ action: GuardBindingHintActionSchema
86
+ .describe("Protected action type. Example: 'buy' for Service buy_guard, 'forward' for Machine Forward.guard."),
87
+ host_object: GuardBindingHintHostObjectSchema
88
+ .describe("Host object type. Example: 'Service', 'Machine'."),
89
+ binding_field: GuardBindingHintBindingFieldSchema
90
+ .describe("Binding field. Example: 'buy_guard', 'Forward.guard'."),
91
+ rule_sentence: z.string().optional()
92
+ .describe("One-sentence description of the validation rule (human-readable). Example: 'Only the author can purchase this service'."),
93
+ failure_conditions: z.array(z.string()).optional()
94
+ .describe("List of conditions under which the Guard should FAIL. Example: ['Signer is not in allowlist','Order is already completed']."),
95
+ circular_reference: z.boolean().optional()
96
+ .describe("Whether the Guard references the Host Object itself (circular reference pattern). true=Guard queries the Host Object it binds to."),
97
+ }).strict().describe("Optional semantic hint for Guard capability system. Provides intent + binding context so the MCP server can derive GuardPuzzle, run risk assessment, and generate confirmation text. Strongly recommended: fill this field to enable puzzle_status, matched_scene, suggested_patterns, confirmation_text, and pending_questions in the response guard_advice.");
50
98
  export const CallGuard_DataSchema = z.object({
51
99
  namedNew: NamedObjectSchema.optional().describe("Name and optional tags for the new Guard object. Set 'onChain: true' to create a public on-chain identity. When using root.type='file', this field OVERRIDES namedNew in the file."),
52
100
  description: DescriptionSchema.optional().describe("Guard description. When using root.type='file', this field OVERRIDES description in the file."),
@@ -56,6 +104,8 @@ export const CallGuard_DataSchema = z.object({
56
104
  guards: z.array(NameOrAddressSchema).describe("List of dependent Guard object IDs or names."),
57
105
  logic_or: z.boolean().optional().describe("Whether to use logical OR operator."),
58
106
  }).optional().describe("All Guard objects that the new Guard object depends on. If logic_or is true, the execution result of the new Guard object is the logical OR of the execution results of all dependent Guard objects; otherwise, it is logical AND. When using root.type='file', this field OVERRIDES rely in the file."),
107
+ binding_hint: GuardBindingHintSchema.optional()
108
+ .describe("Phase 5 Guard capability hint. Provides semantic context (action + host_object + binding_field + optional rule/failure_conditions) for puzzle derivation. When provided, the response will include complete guard_advice (puzzle_status, matched_scene, suggested_patterns, confirmation_text, pending_questions). When absent, puzzle_status intent/binding dimensions are marked incomplete."),
59
109
  }).strict().refine((data) => {
60
110
  if (typeof data.root === 'object' && data.root !== null && 'type' in data.root) {
61
111
  const rootObj = data.root;