@wowok/agent-mcp 2.3.14 → 2.3.18

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 (189) hide show
  1. package/dist/config/index.d.ts +1 -0
  2. package/dist/config/index.js +1 -0
  3. package/dist/config/runtime.d.ts +26 -0
  4. package/dist/config/runtime.js +217 -0
  5. package/dist/customer/index.d.ts +9 -0
  6. package/dist/customer/index.js +9 -0
  7. package/dist/customer/industry-risks.d.ts +40 -0
  8. package/dist/customer/industry-risks.js +438 -0
  9. package/dist/customer/info-puzzle.d.ts +102 -0
  10. package/dist/customer/info-puzzle.js +312 -0
  11. package/dist/customer/order-monitor.d.ts +75 -0
  12. package/dist/customer/order-monitor.js +327 -0
  13. package/dist/customer/order-strategy.d.ts +36 -0
  14. package/dist/customer/order-strategy.js +373 -0
  15. package/dist/customer/post-purchase.d.ts +42 -0
  16. package/dist/customer/post-purchase.js +350 -0
  17. package/dist/customer/reminder-system.d.ts +42 -0
  18. package/dist/customer/reminder-system.js +295 -0
  19. package/dist/customer/risk-assessment.d.ts +8 -0
  20. package/dist/customer/risk-assessment.js +337 -0
  21. package/dist/customer/types.d.ts +193 -0
  22. package/dist/customer/types.js +13 -0
  23. package/dist/customer/user-preferences.d.ts +70 -0
  24. package/dist/customer/user-preferences.js +460 -0
  25. package/dist/experience/experience-reuse.d.ts +10 -0
  26. package/dist/experience/experience-reuse.js +103 -0
  27. package/dist/experience/index.d.ts +6 -0
  28. package/dist/experience/index.js +5 -0
  29. package/dist/experience/intent-distill.d.ts +3 -0
  30. package/dist/experience/intent-distill.js +83 -0
  31. package/dist/experience/realtime-feedback.d.ts +5 -0
  32. package/dist/experience/realtime-feedback.js +94 -0
  33. package/dist/experience/types.d.ts +50 -0
  34. package/dist/experience/types.js +1 -0
  35. package/dist/experience/user-profile.d.ts +25 -0
  36. package/dist/experience/user-profile.js +171 -0
  37. package/dist/index.js +842 -371
  38. package/dist/knowledge/acquisition-flywheel.d.ts +53 -0
  39. package/dist/knowledge/acquisition-flywheel.js +192 -0
  40. package/dist/knowledge/arbitration-trust.d.ts +24 -0
  41. package/dist/knowledge/arbitration-trust.js +117 -0
  42. package/dist/knowledge/audit-rules.d.ts +28 -0
  43. package/dist/knowledge/audit-rules.js +141 -0
  44. package/dist/knowledge/demand-matching.d.ts +29 -0
  45. package/dist/knowledge/demand-matching.js +132 -0
  46. package/dist/knowledge/dynamic-pricing.d.ts +31 -0
  47. package/dist/knowledge/dynamic-pricing.js +87 -0
  48. package/dist/knowledge/flywheel-loop.d.ts +87 -0
  49. package/dist/knowledge/flywheel-loop.js +378 -0
  50. package/dist/knowledge/glossary.d.ts +18 -0
  51. package/dist/knowledge/glossary.js +209 -0
  52. package/dist/knowledge/guard-ledger.d.ts +19 -0
  53. package/dist/knowledge/guard-ledger.js +219 -0
  54. package/dist/knowledge/guard-puzzle.d.ts +93 -0
  55. package/dist/knowledge/guard-puzzle.js +278 -0
  56. package/dist/knowledge/guard-risk.d.ts +60 -0
  57. package/dist/knowledge/guard-risk.js +474 -0
  58. package/dist/knowledge/guard-translation.d.ts +46 -0
  59. package/dist/knowledge/guard-translation.js +487 -0
  60. package/dist/knowledge/index.d.ts +77 -0
  61. package/dist/knowledge/index.js +79 -0
  62. package/dist/knowledge/industry-evolution.d.ts +82 -0
  63. package/dist/knowledge/industry-evolution.js +323 -0
  64. package/dist/knowledge/industry-generalizer.d.ts +17 -0
  65. package/dist/knowledge/industry-generalizer.js +381 -0
  66. package/dist/knowledge/industry-registry.d.ts +48 -0
  67. package/dist/knowledge/industry-registry.js +187 -0
  68. package/dist/knowledge/intent-metrics.d.ts +42 -0
  69. package/dist/knowledge/intent-metrics.js +566 -0
  70. package/dist/knowledge/process-model.d.ts +24 -0
  71. package/dist/knowledge/process-model.js +160 -0
  72. package/dist/knowledge/reputation-rules.d.ts +42 -0
  73. package/dist/knowledge/reputation-rules.js +99 -0
  74. package/dist/knowledge/reward-templates.d.ts +25 -0
  75. package/dist/knowledge/reward-templates.js +125 -0
  76. package/dist/knowledge/safety-rules.d.ts +36 -0
  77. package/dist/knowledge/safety-rules.js +232 -0
  78. package/dist/knowledge/tool-constraints.d.ts +30 -0
  79. package/dist/knowledge/tool-constraints.js +175 -0
  80. package/dist/knowledge/trust-metrics.d.ts +37 -0
  81. package/dist/knowledge/trust-metrics.js +138 -0
  82. package/dist/loop-engineering/diagnose.d.ts +3 -2
  83. package/dist/loop-engineering/diagnose.js +94 -0
  84. package/dist/loop-engineering/improve.d.ts +1 -1
  85. package/dist/loop-engineering/improve.js +52 -1
  86. package/dist/project/graph.d.ts +71 -0
  87. package/dist/project/graph.js +314 -0
  88. package/dist/project/index.d.ts +62 -0
  89. package/dist/project/index.js +167 -0
  90. package/dist/project/namespace.d.ts +62 -0
  91. package/dist/project/namespace.js +181 -0
  92. package/dist/project/query.d.ts +40 -0
  93. package/dist/project/query.js +110 -0
  94. package/dist/safety/confirm-gate.d.ts +17 -0
  95. package/dist/safety/confirm-gate.js +88 -0
  96. package/dist/safety/index.d.ts +3 -0
  97. package/dist/safety/index.js +3 -0
  98. package/dist/safety/preview.d.ts +2 -0
  99. package/dist/safety/preview.js +36 -0
  100. package/dist/schema/call/allocation.d.ts +39 -14
  101. package/dist/schema/call/arbitration.d.ts +187 -162
  102. package/dist/schema/call/base.d.ts +1971 -87
  103. package/dist/schema/call/base.js +135 -3
  104. package/dist/schema/call/bridge-handler.js +15 -2
  105. package/dist/schema/call/bridge.d.ts +1478 -53
  106. package/dist/schema/call/bridge.js +50 -2
  107. package/dist/schema/call/contact.d.ts +25 -0
  108. package/dist/schema/call/demand.d.ts +79 -54
  109. package/dist/schema/call/guard.d.ts +125 -50
  110. package/dist/schema/call/handler.d.ts +3 -0
  111. package/dist/schema/call/handler.js +60 -14
  112. package/dist/schema/call/machine.d.ts +988 -938
  113. package/dist/schema/call/order.d.ts +25 -0
  114. package/dist/schema/call/payment.d.ts +25 -0
  115. package/dist/schema/call/permission.d.ts +244 -219
  116. package/dist/schema/call/personal.d.ts +25 -0
  117. package/dist/schema/call/progress.d.ts +25 -0
  118. package/dist/schema/call/proof.d.ts +62 -12
  119. package/dist/schema/call/proof.js +3 -3
  120. package/dist/schema/call/repository.d.ts +101 -76
  121. package/dist/schema/call/reward.d.ts +55 -30
  122. package/dist/schema/call/semantic.d.ts +10 -2
  123. package/dist/schema/call/semantic.js +616 -11
  124. package/dist/schema/call/service.d.ts +442 -417
  125. package/dist/schema/call/treasury.d.ts +25 -0
  126. package/dist/schema/common/index.js +3 -3
  127. package/dist/schema/config/index.d.ts +18 -0
  128. package/dist/schema/config/index.js +17 -0
  129. package/dist/schema/index.d.ts +6 -0
  130. package/dist/schema/index.js +5 -0
  131. package/dist/schema/local/index.d.ts +237 -81
  132. package/dist/schema/local/index.js +42 -6
  133. package/dist/schema/messenger/index.d.ts +1018 -79
  134. package/dist/schema/messenger/index.js +26 -17
  135. package/dist/schema/operations.d.ts +3192 -1746
  136. package/dist/schema/operations.js +93 -98
  137. package/dist/schema/project/index.d.ts +21 -0
  138. package/dist/schema/project/index.js +32 -0
  139. package/dist/schema/query/index.d.ts +2762 -1856
  140. package/dist/schema/query/index.js +38 -35
  141. package/dist/schema/schema-query/index.d.ts +33 -0
  142. package/dist/schema/schema-query/index.js +36 -0
  143. package/dist/schema/schema-version.d.ts +25 -0
  144. package/dist/schema/schema-version.js +76 -0
  145. package/dist/schema/trust/index.d.ts +407 -0
  146. package/dist/schema/trust/index.js +113 -0
  147. package/dist/schemas/account_operation.output.json +25 -16
  148. package/dist/schemas/account_operation.schema.json +1 -1
  149. package/dist/schemas/bridge_operation.output.json +744 -0
  150. package/dist/schemas/bridge_operation.schema.json +82 -8
  151. package/dist/schemas/config_operation.output.json +18 -0
  152. package/dist/schemas/config_operation.schema.json +34 -0
  153. package/dist/schemas/guard-node-schema.json +82 -0
  154. package/dist/schemas/guard2file.schema.json +23 -0
  155. package/dist/schemas/index.json +19 -1
  156. package/dist/schemas/local_info_operation.output.json +23 -0
  157. package/dist/schemas/local_info_operation.schema.json +1 -1
  158. package/dist/schemas/local_mark_operation.output.json +24 -1
  159. package/dist/schemas/local_mark_operation.schema.json +4 -4
  160. package/dist/schemas/machineNode2file.schema.json +23 -0
  161. package/dist/schemas/messenger_operation.output.json +752 -0
  162. package/dist/schemas/onchain_events.output.json +718 -0
  163. package/dist/schemas/onchain_operations.output.json +627 -18
  164. package/dist/schemas/onchain_operations.schema.json +115 -39
  165. package/dist/schemas/onchain_operations_allocation.schema.json +23 -0
  166. package/dist/schemas/onchain_operations_arbitration.schema.json +23 -0
  167. package/dist/schemas/onchain_operations_contact.schema.json +23 -0
  168. package/dist/schemas/onchain_operations_demand.schema.json +23 -0
  169. package/dist/schemas/onchain_operations_gen_passport.schema.json +46 -0
  170. package/dist/schemas/onchain_operations_guard.schema.json +26 -16
  171. package/dist/schemas/onchain_operations_machine.schema.json +89 -23
  172. package/dist/schemas/onchain_operations_order.schema.json +23 -0
  173. package/dist/schemas/onchain_operations_payment.schema.json +23 -0
  174. package/dist/schemas/onchain_operations_permission.schema.json +23 -0
  175. package/dist/schemas/onchain_operations_personal.schema.json +23 -0
  176. package/dist/schemas/onchain_operations_progress.schema.json +23 -0
  177. package/dist/schemas/onchain_operations_repository.schema.json +23 -0
  178. package/dist/schemas/onchain_operations_reward.schema.json +23 -0
  179. package/dist/schemas/onchain_operations_service.schema.json +23 -0
  180. package/dist/schemas/onchain_operations_treasury.schema.json +23 -0
  181. package/dist/schemas/onchain_table_data.output.json +939 -69
  182. package/dist/schemas/onchain_table_data.schema.json +2 -2
  183. package/dist/schemas/project_operation.output.json +18 -0
  184. package/dist/schemas/project_operation.schema.json +42 -0
  185. package/dist/schemas/query_toolkit.schema.json +360 -368
  186. package/dist/schemas/schema_query.schema.json +6 -3
  187. package/dist/schemas/trust_score.output.json +327 -0
  188. package/dist/schemas/trust_score.schema.json +46 -0
  189. package/package.json +2 -2
@@ -143,16 +143,16 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
143
143
  } | string[] | boolean[] | number[] | number[][] | undefined;
144
144
  }[] | undefined;
145
145
  root?: any;
146
+ rely?: {
147
+ guards: string[];
148
+ logic_or?: boolean | undefined;
149
+ } | undefined;
146
150
  namedNew?: {
147
151
  name?: string | undefined;
148
152
  replaceExistName?: boolean | undefined;
149
153
  tags?: string[] | undefined;
150
154
  onChain?: boolean | undefined;
151
155
  } | undefined;
152
- rely?: {
153
- guards: string[];
154
- logic_or?: boolean | undefined;
155
- } | undefined;
156
156
  }, {
157
157
  description?: string | undefined;
158
158
  table?: {
@@ -172,16 +172,16 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
172
172
  name?: string | undefined;
173
173
  }[] | undefined;
174
174
  root?: any;
175
+ rely?: {
176
+ guards: string[];
177
+ logic_or?: boolean | undefined;
178
+ } | undefined;
175
179
  namedNew?: {
176
180
  name?: string | undefined;
177
181
  replaceExistName?: boolean | undefined;
178
182
  tags?: string[] | undefined;
179
183
  onChain?: boolean | undefined;
180
184
  } | undefined;
181
- rely?: {
182
- guards: string[];
183
- logic_or?: boolean | undefined;
184
- } | undefined;
185
185
  }>, {
186
186
  description?: string | undefined;
187
187
  table?: {
@@ -201,16 +201,16 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
201
201
  } | string[] | boolean[] | number[] | number[][] | undefined;
202
202
  }[] | undefined;
203
203
  root?: any;
204
+ rely?: {
205
+ guards: string[];
206
+ logic_or?: boolean | undefined;
207
+ } | undefined;
204
208
  namedNew?: {
205
209
  name?: string | undefined;
206
210
  replaceExistName?: boolean | undefined;
207
211
  tags?: string[] | undefined;
208
212
  onChain?: boolean | undefined;
209
213
  } | undefined;
210
- rely?: {
211
- guards: string[];
212
- logic_or?: boolean | undefined;
213
- } | undefined;
214
214
  }, {
215
215
  description?: string | undefined;
216
216
  table?: {
@@ -230,16 +230,16 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
230
230
  name?: string | undefined;
231
231
  }[] | undefined;
232
232
  root?: any;
233
+ rely?: {
234
+ guards: string[];
235
+ logic_or?: boolean | undefined;
236
+ } | undefined;
233
237
  namedNew?: {
234
238
  name?: string | undefined;
235
239
  replaceExistName?: boolean | undefined;
236
240
  tags?: string[] | undefined;
237
241
  onChain?: boolean | undefined;
238
242
  } | undefined;
239
- rely?: {
240
- guards: string[];
241
- logic_or?: boolean | undefined;
242
- } | undefined;
243
243
  }>;
244
244
  export declare const CallGuard_InputSchema: z.ZodObject<{
245
245
  data: z.ZodEffects<z.ZodObject<{
@@ -372,16 +372,16 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
372
372
  } | string[] | boolean[] | number[] | number[][] | undefined;
373
373
  }[] | undefined;
374
374
  root?: any;
375
+ rely?: {
376
+ guards: string[];
377
+ logic_or?: boolean | undefined;
378
+ } | undefined;
375
379
  namedNew?: {
376
380
  name?: string | undefined;
377
381
  replaceExistName?: boolean | undefined;
378
382
  tags?: string[] | undefined;
379
383
  onChain?: boolean | undefined;
380
384
  } | undefined;
381
- rely?: {
382
- guards: string[];
383
- logic_or?: boolean | undefined;
384
- } | undefined;
385
385
  }, {
386
386
  description?: string | undefined;
387
387
  table?: {
@@ -401,16 +401,16 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
401
401
  name?: string | undefined;
402
402
  }[] | undefined;
403
403
  root?: any;
404
+ rely?: {
405
+ guards: string[];
406
+ logic_or?: boolean | undefined;
407
+ } | undefined;
404
408
  namedNew?: {
405
409
  name?: string | undefined;
406
410
  replaceExistName?: boolean | undefined;
407
411
  tags?: string[] | undefined;
408
412
  onChain?: boolean | undefined;
409
413
  } | undefined;
410
- rely?: {
411
- guards: string[];
412
- logic_or?: boolean | undefined;
413
- } | undefined;
414
414
  }>, {
415
415
  description?: string | undefined;
416
416
  table?: {
@@ -430,16 +430,16 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
430
430
  } | string[] | boolean[] | number[] | number[][] | undefined;
431
431
  }[] | undefined;
432
432
  root?: any;
433
+ rely?: {
434
+ guards: string[];
435
+ logic_or?: boolean | undefined;
436
+ } | undefined;
433
437
  namedNew?: {
434
438
  name?: string | undefined;
435
439
  replaceExistName?: boolean | undefined;
436
440
  tags?: string[] | undefined;
437
441
  onChain?: boolean | undefined;
438
442
  } | undefined;
439
- rely?: {
440
- guards: string[];
441
- logic_or?: boolean | undefined;
442
- } | undefined;
443
443
  }, {
444
444
  description?: string | undefined;
445
445
  table?: {
@@ -459,16 +459,16 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
459
459
  name?: string | undefined;
460
460
  }[] | undefined;
461
461
  root?: any;
462
+ rely?: {
463
+ guards: string[];
464
+ logic_or?: boolean | undefined;
465
+ } | undefined;
462
466
  namedNew?: {
463
467
  name?: string | undefined;
464
468
  replaceExistName?: boolean | undefined;
465
469
  tags?: string[] | undefined;
466
470
  onChain?: boolean | undefined;
467
471
  } | undefined;
468
- rely?: {
469
- guards: string[];
470
- logic_or?: boolean | undefined;
471
- } | undefined;
472
472
  }>;
473
473
  env: z.ZodOptional<z.ZodObject<{
474
474
  account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
@@ -476,18 +476,33 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
476
476
  no_cache: z.ZodOptional<z.ZodBoolean>;
477
477
  network: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet, import("@wowok/wowok").ENTRYPOINT.Mainnet]>>;
478
478
  referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
479
+ confirmed: z.ZodOptional<z.ZodBoolean>;
480
+ user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
481
+ project: z.ZodOptional<z.ZodString>;
482
+ client_schema_version: z.ZodOptional<z.ZodString>;
483
+ schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
479
484
  }, "strict", z.ZodTypeAny, {
480
485
  account: string;
481
486
  no_cache?: boolean | undefined;
482
487
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
483
488
  permission_guard?: string[] | undefined;
484
489
  referrer?: string | undefined;
490
+ confirmed?: boolean | undefined;
491
+ user_intent_phrases?: string[] | undefined;
492
+ project?: string | undefined;
493
+ client_schema_version?: string | undefined;
494
+ schema_strict_mode?: boolean | undefined;
485
495
  }, {
486
496
  no_cache?: boolean | undefined;
487
497
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
488
498
  account?: string | undefined;
489
499
  permission_guard?: string[] | undefined;
490
500
  referrer?: string | undefined;
501
+ confirmed?: boolean | undefined;
502
+ user_intent_phrases?: string[] | undefined;
503
+ project?: string | undefined;
504
+ client_schema_version?: string | undefined;
505
+ schema_strict_mode?: boolean | undefined;
491
506
  }>>;
492
507
  }, "strict", z.ZodTypeAny, {
493
508
  data: {
@@ -509,16 +524,16 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
509
524
  } | string[] | boolean[] | number[] | number[][] | undefined;
510
525
  }[] | undefined;
511
526
  root?: any;
527
+ rely?: {
528
+ guards: string[];
529
+ logic_or?: boolean | undefined;
530
+ } | undefined;
512
531
  namedNew?: {
513
532
  name?: string | undefined;
514
533
  replaceExistName?: boolean | undefined;
515
534
  tags?: string[] | undefined;
516
535
  onChain?: boolean | undefined;
517
536
  } | undefined;
518
- rely?: {
519
- guards: string[];
520
- logic_or?: boolean | undefined;
521
- } | undefined;
522
537
  };
523
538
  env?: {
524
539
  account: string;
@@ -526,6 +541,11 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
526
541
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
527
542
  permission_guard?: string[] | undefined;
528
543
  referrer?: string | undefined;
544
+ confirmed?: boolean | undefined;
545
+ user_intent_phrases?: string[] | undefined;
546
+ project?: string | undefined;
547
+ client_schema_version?: string | undefined;
548
+ schema_strict_mode?: boolean | undefined;
529
549
  } | undefined;
530
550
  }, {
531
551
  data: {
@@ -547,16 +567,16 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
547
567
  name?: string | undefined;
548
568
  }[] | undefined;
549
569
  root?: any;
570
+ rely?: {
571
+ guards: string[];
572
+ logic_or?: boolean | undefined;
573
+ } | undefined;
550
574
  namedNew?: {
551
575
  name?: string | undefined;
552
576
  replaceExistName?: boolean | undefined;
553
577
  tags?: string[] | undefined;
554
578
  onChain?: boolean | undefined;
555
579
  } | undefined;
556
- rely?: {
557
- guards: string[];
558
- logic_or?: boolean | undefined;
559
- } | undefined;
560
580
  };
561
581
  env?: {
562
582
  no_cache?: boolean | undefined;
@@ -564,6 +584,11 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
564
584
  account?: string | undefined;
565
585
  permission_guard?: string[] | undefined;
566
586
  referrer?: string | undefined;
587
+ confirmed?: boolean | undefined;
588
+ user_intent_phrases?: string[] | undefined;
589
+ project?: string | undefined;
590
+ client_schema_version?: string | undefined;
591
+ schema_strict_mode?: boolean | undefined;
567
592
  } | undefined;
568
593
  }>;
569
594
  export declare const CallGenPassport_InputSchema: z.ZodObject<{
@@ -754,28 +779,36 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
754
779
  no_cache: z.ZodOptional<z.ZodBoolean>;
755
780
  network: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet, import("@wowok/wowok").ENTRYPOINT.Mainnet]>>;
756
781
  referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
782
+ confirmed: z.ZodOptional<z.ZodBoolean>;
783
+ user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
784
+ project: z.ZodOptional<z.ZodString>;
785
+ client_schema_version: z.ZodOptional<z.ZodString>;
786
+ schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
757
787
  }, "strict", z.ZodTypeAny, {
758
788
  account: string;
759
789
  no_cache?: boolean | undefined;
760
790
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
761
791
  permission_guard?: string[] | undefined;
762
792
  referrer?: string | undefined;
793
+ confirmed?: boolean | undefined;
794
+ user_intent_phrases?: string[] | undefined;
795
+ project?: string | undefined;
796
+ client_schema_version?: string | undefined;
797
+ schema_strict_mode?: boolean | undefined;
763
798
  }, {
764
799
  no_cache?: boolean | undefined;
765
800
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
766
801
  account?: string | undefined;
767
802
  permission_guard?: string[] | undefined;
768
803
  referrer?: string | undefined;
804
+ confirmed?: boolean | undefined;
805
+ user_intent_phrases?: string[] | undefined;
806
+ project?: string | undefined;
807
+ client_schema_version?: string | undefined;
808
+ schema_strict_mode?: boolean | undefined;
769
809
  }>>;
770
810
  }, "strict", z.ZodTypeAny, {
771
811
  guard: string | string[];
772
- env?: {
773
- account: string;
774
- no_cache?: boolean | undefined;
775
- network?: import("@wowok/wowok").ENTRYPOINT | undefined;
776
- permission_guard?: string[] | undefined;
777
- referrer?: string | undefined;
778
- } | undefined;
779
812
  info?: {
780
813
  type: "submission";
781
814
  guard: {
@@ -803,15 +836,20 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
803
836
  }[];
804
837
  }[];
805
838
  } | undefined;
806
- }, {
807
- guard: string | string[];
808
839
  env?: {
840
+ account: string;
809
841
  no_cache?: boolean | undefined;
810
842
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
811
- account?: string | undefined;
812
843
  permission_guard?: string[] | undefined;
813
844
  referrer?: string | undefined;
845
+ confirmed?: boolean | undefined;
846
+ user_intent_phrases?: string[] | undefined;
847
+ project?: string | undefined;
848
+ client_schema_version?: string | undefined;
849
+ schema_strict_mode?: boolean | undefined;
814
850
  } | undefined;
851
+ }, {
852
+ guard: string | string[];
815
853
  info?: {
816
854
  type: "submission";
817
855
  guard: {
@@ -839,6 +877,18 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
839
877
  }[];
840
878
  }[];
841
879
  } | undefined;
880
+ env?: {
881
+ no_cache?: boolean | undefined;
882
+ network?: import("@wowok/wowok").ENTRYPOINT | undefined;
883
+ account?: string | undefined;
884
+ permission_guard?: string[] | undefined;
885
+ referrer?: string | undefined;
886
+ confirmed?: boolean | undefined;
887
+ user_intent_phrases?: string[] | undefined;
888
+ project?: string | undefined;
889
+ client_schema_version?: string | undefined;
890
+ schema_strict_mode?: boolean | undefined;
891
+ } | undefined;
842
892
  }>;
843
893
  export declare const Guard2File_InputSchema: z.ZodObject<{
844
894
  guard: z.ZodEffects<z.ZodString, string, string>;
@@ -850,18 +900,33 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
850
900
  no_cache: z.ZodOptional<z.ZodBoolean>;
851
901
  network: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet, import("@wowok/wowok").ENTRYPOINT.Mainnet]>>;
852
902
  referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
903
+ confirmed: z.ZodOptional<z.ZodBoolean>;
904
+ user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
905
+ project: z.ZodOptional<z.ZodString>;
906
+ client_schema_version: z.ZodOptional<z.ZodString>;
907
+ schema_strict_mode: z.ZodOptional<z.ZodBoolean>;
853
908
  }, "strict", z.ZodTypeAny, {
854
909
  account: string;
855
910
  no_cache?: boolean | undefined;
856
911
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
857
912
  permission_guard?: string[] | undefined;
858
913
  referrer?: string | undefined;
914
+ confirmed?: boolean | undefined;
915
+ user_intent_phrases?: string[] | undefined;
916
+ project?: string | undefined;
917
+ client_schema_version?: string | undefined;
918
+ schema_strict_mode?: boolean | undefined;
859
919
  }, {
860
920
  no_cache?: boolean | undefined;
861
921
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
862
922
  account?: string | undefined;
863
923
  permission_guard?: string[] | undefined;
864
924
  referrer?: string | undefined;
925
+ confirmed?: boolean | undefined;
926
+ user_intent_phrases?: string[] | undefined;
927
+ project?: string | undefined;
928
+ client_schema_version?: string | undefined;
929
+ schema_strict_mode?: boolean | undefined;
865
930
  }>>;
866
931
  }, "strict", z.ZodTypeAny, {
867
932
  guard: string;
@@ -873,6 +938,11 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
873
938
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
874
939
  permission_guard?: string[] | undefined;
875
940
  referrer?: string | undefined;
941
+ confirmed?: boolean | undefined;
942
+ user_intent_phrases?: string[] | undefined;
943
+ project?: string | undefined;
944
+ client_schema_version?: string | undefined;
945
+ schema_strict_mode?: boolean | undefined;
876
946
  } | undefined;
877
947
  }, {
878
948
  guard: string;
@@ -884,6 +954,11 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
884
954
  account?: string | undefined;
885
955
  permission_guard?: string[] | undefined;
886
956
  referrer?: string | undefined;
957
+ confirmed?: boolean | undefined;
958
+ user_intent_phrases?: string[] | undefined;
959
+ project?: string | undefined;
960
+ client_schema_version?: string | undefined;
961
+ schema_strict_mode?: boolean | undefined;
887
962
  } | undefined;
888
963
  }>;
889
964
  export declare const Guard2File_OutputSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
@@ -1,6 +1,8 @@
1
1
  import type { CallEnv } from "@wowok/wowok";
2
2
  import type { CallOutput } from "./base.js";
3
3
  import { type SemanticContext } from "./semantic.js";
4
+ type SuccessHook = (result: any, context: SemanticContext | undefined) => void;
5
+ export declare function registerSuccessHook(hook: SuccessHook | null): void;
4
6
  export declare function handleCallResult(result: any, context?: SemanticContext): {
5
7
  content: any[];
6
8
  structuredContent: CallOutput;
@@ -37,3 +39,4 @@ export declare function createToolAnnotations(readOnlyHint?: boolean, destructiv
37
39
  export declare function transformSubmission(submission: any): Promise<any>;
38
40
  export declare function validateInput<T>(data: any, schema: any): T;
39
41
  export declare function getEnvConfig(env?: any): CallEnv;
42
+ export {};
@@ -1,5 +1,42 @@
1
1
  import { ResponseData, LocalMark, enrichMoveError } from "@wowok/wowok";
2
2
  import { classifyError, buildSemantic } from "./semantic.js";
3
+ let successHook = null;
4
+ export function registerSuccessHook(hook) {
5
+ successHook = hook;
6
+ }
7
+ function fireSuccessHook(result, context) {
8
+ if (successHook) {
9
+ try {
10
+ successHook(result, context);
11
+ }
12
+ catch { }
13
+ }
14
+ }
15
+ function applySchemaWarning(output, context) {
16
+ const schemaCheck = context?.schema_check;
17
+ if (!schemaCheck || (schemaCheck.warnings.length === 0 && schemaCheck.errors.length === 0)) {
18
+ return output;
19
+ }
20
+ const warnings = [...schemaCheck.warnings, ...schemaCheck.errors];
21
+ let semantic = output.semantic;
22
+ if (semantic && warnings.length > 0) {
23
+ semantic = {
24
+ ...semantic,
25
+ warnings: [...(semantic.warnings || []), ...warnings],
26
+ };
27
+ }
28
+ const schemaWarning = {
29
+ compatible: schemaCheck.compatible,
30
+ warnings,
31
+ client_version: schemaCheck.client_version,
32
+ server_versions: schemaCheck.versions,
33
+ };
34
+ return {
35
+ ...output,
36
+ semantic,
37
+ schema_warning: schemaWarning,
38
+ };
39
+ }
3
40
  function convertBigInts(obj) {
4
41
  if (typeof obj === "bigint")
5
42
  return obj.toString();
@@ -74,9 +111,10 @@ export function handleCallResult(result, context) {
74
111
  const harnessReport = runHarnessLoops(context, output, classified.error_code);
75
112
  if (harnessReport)
76
113
  output.harness_report = harnessReport;
114
+ const finalOutput = applySchemaWarning(output, context);
77
115
  return {
78
- content: [{ type: "text", text: output.message }],
79
- structuredContent: output,
116
+ content: [{ type: "text", text: finalOutput.message }],
117
+ structuredContent: finalOutput,
80
118
  };
81
119
  }
82
120
  if (safeResult && "digest" in safeResult) {
@@ -100,12 +138,13 @@ export function handleCallResult(result, context) {
100
138
  const harnessReport = runHarnessLoops(context, output, classified.error_code);
101
139
  if (harnessReport)
102
140
  output.harness_report = harnessReport;
141
+ const finalOutput = applySchemaWarning(output, context);
103
142
  return {
104
143
  content: [
105
- { type: "text", text: output.message },
144
+ { type: "text", text: finalOutput.message },
106
145
  { type: "text", text: JSON.stringify(r) },
107
146
  ],
108
- structuredContent: output,
147
+ structuredContent: finalOutput,
109
148
  };
110
149
  }
111
150
  const output = {
@@ -116,12 +155,14 @@ export function handleCallResult(result, context) {
116
155
  const harnessReport = runHarnessLoops(context, output);
117
156
  if (harnessReport)
118
157
  output.harness_report = harnessReport;
158
+ fireSuccessHook(result, context);
159
+ const finalOutput = applySchemaWarning(output, context);
119
160
  return {
120
161
  content: [
121
- { type: "text", text: output.message },
162
+ { type: "text", text: finalOutput.message },
122
163
  { type: "text", text: JSON.stringify(r) },
123
164
  ],
124
- structuredContent: output,
165
+ structuredContent: finalOutput,
125
166
  };
126
167
  }
127
168
  if (safeResult && "guard" in safeResult && "submission" in safeResult) {
@@ -143,12 +184,13 @@ export function handleCallResult(result, context) {
143
184
  const harnessReport = runHarnessLoops(context, output);
144
185
  if (harnessReport)
145
186
  output.harness_report = harnessReport;
187
+ const finalOutput = applySchemaWarning(output, context);
146
188
  return {
147
189
  content: [
148
- { type: "text", text: output.message },
190
+ { type: "text", text: finalOutput.message },
149
191
  { type: "text", text: JSON.stringify(safeResult) },
150
192
  ],
151
- structuredContent: output,
193
+ structuredContent: finalOutput,
152
194
  };
153
195
  }
154
196
  if (Array.isArray(safeResult)) {
@@ -159,12 +201,13 @@ export function handleCallResult(result, context) {
159
201
  const harnessReport = runHarnessLoops(context, output);
160
202
  if (harnessReport)
161
203
  output.harness_report = harnessReport;
204
+ const finalOutput = applySchemaWarning(output, context);
162
205
  return {
163
206
  content: [
164
- { type: "text", text: output.message },
207
+ { type: "text", text: finalOutput.message },
165
208
  { type: "text", text: JSON.stringify(safeResult) },
166
209
  ],
167
- structuredContent: output,
210
+ structuredContent: finalOutput,
168
211
  };
169
212
  }
170
213
  if (safeResult === undefined || safeResult === null) {
@@ -175,21 +218,24 @@ export function handleCallResult(result, context) {
175
218
  const harnessReport = runHarnessLoops(context, output);
176
219
  if (harnessReport)
177
220
  output.harness_report = harnessReport;
221
+ const finalOutput = applySchemaWarning(output, context);
178
222
  return {
179
- content: [{ type: "text", text: output.message }],
180
- structuredContent: output,
223
+ content: [{ type: "text", text: finalOutput.message }],
224
+ structuredContent: finalOutput,
181
225
  };
182
226
  }
183
227
  const output = {
184
228
  message: "Operation completed",
185
229
  result: { type: "transaction", ...safeResult },
230
+ semantic: buildSemantic(safeResult, context),
186
231
  };
187
232
  const harnessReport = runHarnessLoops(context, output);
188
233
  if (harnessReport)
189
234
  output.harness_report = harnessReport;
235
+ const finalOutput = applySchemaWarning(output, context);
190
236
  return {
191
- content: [{ type: "text", text: output.message }],
192
- structuredContent: output,
237
+ content: [{ type: "text", text: finalOutput.message }],
238
+ structuredContent: finalOutput,
193
239
  };
194
240
  }
195
241
  export function createServerConfig(packageJson, description) {