@wowok/agent-mcp 2.3.14 → 2.3.16

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 (156) 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/industry-risks.d.ts +36 -0
  6. package/dist/customer/industry-risks.js +424 -0
  7. package/dist/customer/info-puzzle.d.ts +102 -0
  8. package/dist/customer/info-puzzle.js +312 -0
  9. package/dist/customer/order-monitor.d.ts +75 -0
  10. package/dist/customer/order-monitor.js +327 -0
  11. package/dist/customer/order-strategy.d.ts +36 -0
  12. package/dist/customer/order-strategy.js +373 -0
  13. package/dist/customer/post-purchase.d.ts +42 -0
  14. package/dist/customer/post-purchase.js +350 -0
  15. package/dist/customer/reminder-system.d.ts +42 -0
  16. package/dist/customer/reminder-system.js +295 -0
  17. package/dist/customer/risk-assessment.d.ts +8 -0
  18. package/dist/customer/risk-assessment.js +337 -0
  19. package/dist/customer/types.d.ts +193 -0
  20. package/dist/customer/types.js +13 -0
  21. package/dist/customer/user-preferences.d.ts +67 -0
  22. package/dist/customer/user-preferences.js +451 -0
  23. package/dist/experience/experience-reuse.d.ts +10 -0
  24. package/dist/experience/experience-reuse.js +103 -0
  25. package/dist/experience/index.d.ts +6 -0
  26. package/dist/experience/index.js +5 -0
  27. package/dist/experience/intent-distill.d.ts +3 -0
  28. package/dist/experience/intent-distill.js +83 -0
  29. package/dist/experience/realtime-feedback.d.ts +5 -0
  30. package/dist/experience/realtime-feedback.js +77 -0
  31. package/dist/experience/types.d.ts +50 -0
  32. package/dist/experience/types.js +1 -0
  33. package/dist/experience/user-profile.d.ts +25 -0
  34. package/dist/experience/user-profile.js +171 -0
  35. package/dist/index.js +570 -186
  36. package/dist/knowledge/acquisition-flywheel.d.ts +50 -0
  37. package/dist/knowledge/acquisition-flywheel.js +183 -0
  38. package/dist/knowledge/arbitration-trust.d.ts +24 -0
  39. package/dist/knowledge/arbitration-trust.js +117 -0
  40. package/dist/knowledge/audit-rules.d.ts +28 -0
  41. package/dist/knowledge/audit-rules.js +141 -0
  42. package/dist/knowledge/demand-matching.d.ts +29 -0
  43. package/dist/knowledge/demand-matching.js +132 -0
  44. package/dist/knowledge/dynamic-pricing.d.ts +31 -0
  45. package/dist/knowledge/dynamic-pricing.js +87 -0
  46. package/dist/knowledge/flywheel-loop.d.ts +87 -0
  47. package/dist/knowledge/flywheel-loop.js +378 -0
  48. package/dist/knowledge/glossary.d.ts +18 -0
  49. package/dist/knowledge/glossary.js +209 -0
  50. package/dist/knowledge/index.d.ts +64 -0
  51. package/dist/knowledge/index.js +66 -0
  52. package/dist/knowledge/industry-evolution.d.ts +82 -0
  53. package/dist/knowledge/industry-evolution.js +323 -0
  54. package/dist/knowledge/industry-generalizer.d.ts +17 -0
  55. package/dist/knowledge/industry-generalizer.js +381 -0
  56. package/dist/knowledge/industry-registry.d.ts +49 -0
  57. package/dist/knowledge/industry-registry.js +167 -0
  58. package/dist/knowledge/intent-metrics.d.ts +42 -0
  59. package/dist/knowledge/intent-metrics.js +566 -0
  60. package/dist/knowledge/process-model.d.ts +24 -0
  61. package/dist/knowledge/process-model.js +160 -0
  62. package/dist/knowledge/reputation-rules.d.ts +42 -0
  63. package/dist/knowledge/reputation-rules.js +99 -0
  64. package/dist/knowledge/reward-templates.d.ts +25 -0
  65. package/dist/knowledge/reward-templates.js +125 -0
  66. package/dist/knowledge/safety-rules.d.ts +36 -0
  67. package/dist/knowledge/safety-rules.js +171 -0
  68. package/dist/knowledge/tool-constraints.d.ts +30 -0
  69. package/dist/knowledge/tool-constraints.js +185 -0
  70. package/dist/knowledge/trust-metrics.d.ts +37 -0
  71. package/dist/knowledge/trust-metrics.js +138 -0
  72. package/dist/loop-engineering/diagnose.d.ts +3 -2
  73. package/dist/loop-engineering/diagnose.js +94 -0
  74. package/dist/loop-engineering/improve.d.ts +1 -1
  75. package/dist/loop-engineering/improve.js +52 -1
  76. package/dist/project/graph.d.ts +71 -0
  77. package/dist/project/graph.js +314 -0
  78. package/dist/project/index.d.ts +62 -0
  79. package/dist/project/index.js +167 -0
  80. package/dist/project/namespace.d.ts +62 -0
  81. package/dist/project/namespace.js +181 -0
  82. package/dist/project/query.d.ts +40 -0
  83. package/dist/project/query.js +110 -0
  84. package/dist/safety/confirm-gate.d.ts +15 -0
  85. package/dist/safety/confirm-gate.js +44 -0
  86. package/dist/safety/index.d.ts +3 -0
  87. package/dist/safety/index.js +3 -0
  88. package/dist/safety/preview.d.ts +2 -0
  89. package/dist/safety/preview.js +36 -0
  90. package/dist/schema/call/allocation.d.ts +15 -0
  91. package/dist/schema/call/arbitration.d.ts +111 -96
  92. package/dist/schema/call/base.d.ts +1070 -44
  93. package/dist/schema/call/base.js +69 -1
  94. package/dist/schema/call/bridge.d.ts +709 -52
  95. package/dist/schema/call/bridge.js +13 -2
  96. package/dist/schema/call/contact.d.ts +15 -0
  97. package/dist/schema/call/demand.d.ts +69 -54
  98. package/dist/schema/call/guard.d.ts +125 -80
  99. package/dist/schema/call/handler.d.ts +3 -0
  100. package/dist/schema/call/handler.js +14 -0
  101. package/dist/schema/call/machine.d.ts +830 -800
  102. package/dist/schema/call/order.d.ts +15 -0
  103. package/dist/schema/call/payment.d.ts +15 -0
  104. package/dist/schema/call/permission.d.ts +15 -0
  105. package/dist/schema/call/personal.d.ts +15 -0
  106. package/dist/schema/call/progress.d.ts +15 -0
  107. package/dist/schema/call/proof.d.ts +42 -12
  108. package/dist/schema/call/proof.js +3 -3
  109. package/dist/schema/call/repository.d.ts +91 -76
  110. package/dist/schema/call/reward.d.ts +45 -30
  111. package/dist/schema/call/semantic.d.ts +1 -0
  112. package/dist/schema/call/semantic.js +217 -0
  113. package/dist/schema/call/service.d.ts +407 -392
  114. package/dist/schema/call/treasury.d.ts +15 -0
  115. package/dist/schema/common/index.js +3 -3
  116. package/dist/schema/local/index.d.ts +228 -72
  117. package/dist/schema/local/index.js +33 -6
  118. package/dist/schema/messenger/index.d.ts +668 -50
  119. package/dist/schema/messenger/index.js +9 -0
  120. package/dist/schema/operations.d.ts +1693 -1369
  121. package/dist/schema/operations.js +2 -2
  122. package/dist/schema/query/index.d.ts +1614 -1614
  123. package/dist/schema/query/index.js +30 -27
  124. package/dist/schemas/account_operation.output.json +25 -16
  125. package/dist/schemas/account_operation.schema.json +1 -1
  126. package/dist/schemas/bridge_operation.output.json +520 -0
  127. package/dist/schemas/bridge_operation.schema.json +15 -0
  128. package/dist/schemas/guard2file.schema.json +15 -0
  129. package/dist/schemas/index.json +1 -1
  130. package/dist/schemas/local_info_operation.output.json +23 -0
  131. package/dist/schemas/local_info_operation.schema.json +1 -1
  132. package/dist/schemas/local_mark_operation.output.json +24 -1
  133. package/dist/schemas/local_mark_operation.schema.json +4 -4
  134. package/dist/schemas/machineNode2file.schema.json +15 -0
  135. package/dist/schemas/messenger_operation.output.json +528 -0
  136. package/dist/schemas/onchain_operations.output.json +350 -16
  137. package/dist/schemas/onchain_operations.schema.json +96 -23
  138. package/dist/schemas/onchain_operations_allocation.schema.json +15 -0
  139. package/dist/schemas/onchain_operations_arbitration.schema.json +15 -0
  140. package/dist/schemas/onchain_operations_contact.schema.json +15 -0
  141. package/dist/schemas/onchain_operations_demand.schema.json +15 -0
  142. package/dist/schemas/onchain_operations_gen_passport.schema.json +30 -0
  143. package/dist/schemas/onchain_operations_guard.schema.json +15 -0
  144. package/dist/schemas/onchain_operations_machine.schema.json +81 -23
  145. package/dist/schemas/onchain_operations_order.schema.json +15 -0
  146. package/dist/schemas/onchain_operations_payment.schema.json +15 -0
  147. package/dist/schemas/onchain_operations_permission.schema.json +15 -0
  148. package/dist/schemas/onchain_operations_personal.schema.json +15 -0
  149. package/dist/schemas/onchain_operations_progress.schema.json +15 -0
  150. package/dist/schemas/onchain_operations_repository.schema.json +15 -0
  151. package/dist/schemas/onchain_operations_reward.schema.json +15 -0
  152. package/dist/schemas/onchain_operations_service.schema.json +15 -0
  153. package/dist/schemas/onchain_operations_treasury.schema.json +15 -0
  154. package/dist/schemas/onchain_table_data.output.json +221 -69
  155. package/dist/schemas/onchain_table_data.schema.json +2 -2
  156. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { CallEnvSchema } from "./base.js";
2
+ import { CallEnvSchema, SemanticSummarySchema } from "./base.js";
3
3
  import { WowAddressSchema } from "../common/index.js";
4
4
  export const BridgeTokenSchema = z.enum(["ETH", "WETH", "WBTC", "USDC", "USDT"])
5
5
  .describe("Cross-chain token identifier. ETH=native ETH; WETH/WBTC/USDC/USDT=ERC20. Decimals are handled by SDK config.");
@@ -398,11 +398,22 @@ export const BridgeCallOutputSchema = z.object({
398
398
  result: z.discriminatedUnion("type", [
399
399
  z.object({
400
400
  type: z.literal("data"),
401
- data: z.any().describe("Operation result data (structure varies by operation_type)"),
401
+ data: z.unknown().describe("Operation result data (structure varies by operation_type)"),
402
402
  }).describe("Successful result"),
403
403
  z.object({
404
404
  type: z.literal("error"),
405
405
  error: z.string().describe("Error message"),
406
+ error_code: z
407
+ .enum([
408
+ "invalid_parameter", "guard_rejected", "state_conflict",
409
+ "insufficient_balance", "object_not_found", "permission_denied",
410
+ "immutable_violation", "network_error", "unknown",
411
+ ])
412
+ .optional()
413
+ .describe("Error classification for programmatic recovery"),
414
+ retryable: z.boolean().optional().describe("Whether the operation can be retried as-is"),
415
+ recovery_hint: z.string().optional().describe("Recovery suggestion for AI or user"),
406
416
  }).describe("Error result"),
407
417
  ]).describe("Bridge operation result (data or error)"),
418
+ semantic: SemanticSummarySchema.optional().describe("Business semantic summary for bridge operation"),
408
419
  }).describe("Bridge operation output (matches CallOutput structure returned by the handler)");
@@ -602,18 +602,27 @@ export declare const CallContact_InputSchema: z.ZodObject<{
602
602
  no_cache: z.ZodOptional<z.ZodBoolean>;
603
603
  network: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet, import("@wowok/wowok").ENTRYPOINT.Mainnet]>>;
604
604
  referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
605
+ confirmed: z.ZodOptional<z.ZodBoolean>;
606
+ user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
607
+ project: z.ZodOptional<z.ZodString>;
605
608
  }, "strict", z.ZodTypeAny, {
606
609
  account: string;
607
610
  no_cache?: boolean | undefined;
608
611
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
609
612
  permission_guard?: string[] | undefined;
610
613
  referrer?: string | undefined;
614
+ confirmed?: boolean | undefined;
615
+ user_intent_phrases?: string[] | undefined;
616
+ project?: string | undefined;
611
617
  }, {
612
618
  no_cache?: boolean | undefined;
613
619
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
614
620
  account?: string | undefined;
615
621
  permission_guard?: string[] | undefined;
616
622
  referrer?: string | undefined;
623
+ confirmed?: boolean | undefined;
624
+ user_intent_phrases?: string[] | undefined;
625
+ project?: string | undefined;
617
626
  }>>;
618
627
  submission: z.ZodOptional<z.ZodObject<{
619
628
  type: z.ZodLiteral<"submission">;
@@ -878,6 +887,9 @@ export declare const CallContact_InputSchema: z.ZodObject<{
878
887
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
879
888
  permission_guard?: string[] | undefined;
880
889
  referrer?: string | undefined;
890
+ confirmed?: boolean | undefined;
891
+ user_intent_phrases?: string[] | undefined;
892
+ project?: string | undefined;
881
893
  } | undefined;
882
894
  }, {
883
895
  data: {
@@ -962,6 +974,9 @@ export declare const CallContact_InputSchema: z.ZodObject<{
962
974
  account?: string | undefined;
963
975
  permission_guard?: string[] | undefined;
964
976
  referrer?: string | undefined;
977
+ confirmed?: boolean | undefined;
978
+ user_intent_phrases?: string[] | undefined;
979
+ project?: string | undefined;
965
980
  } | undefined;
966
981
  }>;
967
982
  export type ImEntry = z.infer<typeof ImEntrySchema>;
@@ -349,6 +349,15 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
349
349
  } | undefined;
350
350
  };
351
351
  description?: string | undefined;
352
+ rewards?: {
353
+ op: "set" | "add";
354
+ objects: string[];
355
+ } | {
356
+ op: "remove";
357
+ objects: string[];
358
+ } | {
359
+ op: "clear";
360
+ } | undefined;
352
361
  location?: string | undefined;
353
362
  owner_receive?: {
354
363
  received: {
@@ -363,15 +372,6 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
363
372
  id: string;
364
373
  content_raw?: any;
365
374
  }[] | undefined;
366
- rewards?: {
367
- op: "set" | "add";
368
- objects: string[];
369
- } | {
370
- op: "remove";
371
- objects: string[];
372
- } | {
373
- op: "clear";
374
- } | undefined;
375
375
  guards?: {
376
376
  op: "add";
377
377
  guard: {
@@ -419,6 +419,15 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
419
419
  } | undefined;
420
420
  };
421
421
  description?: string | undefined;
422
+ rewards?: {
423
+ op: "set" | "add";
424
+ objects: string[];
425
+ } | {
426
+ op: "remove";
427
+ objects: string[];
428
+ } | {
429
+ op: "clear";
430
+ } | undefined;
422
431
  location?: string | undefined;
423
432
  owner_receive?: {
424
433
  received: {
@@ -433,15 +442,6 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
433
442
  id: string;
434
443
  content_raw?: any;
435
444
  }[] | undefined;
436
- rewards?: {
437
- op: "set" | "add";
438
- objects: string[];
439
- } | {
440
- op: "remove";
441
- objects: string[];
442
- } | {
443
- op: "clear";
444
- } | undefined;
445
445
  guards?: {
446
446
  op: "add";
447
447
  guard: {
@@ -721,6 +721,15 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
721
721
  } | undefined;
722
722
  };
723
723
  description?: string | undefined;
724
+ rewards?: {
725
+ op: "set" | "add";
726
+ objects: string[];
727
+ } | {
728
+ op: "remove";
729
+ objects: string[];
730
+ } | {
731
+ op: "clear";
732
+ } | undefined;
724
733
  location?: string | undefined;
725
734
  owner_receive?: {
726
735
  received: {
@@ -735,15 +744,6 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
735
744
  id: string;
736
745
  content_raw?: any;
737
746
  }[] | undefined;
738
- rewards?: {
739
- op: "set" | "add";
740
- objects: string[];
741
- } | {
742
- op: "remove";
743
- objects: string[];
744
- } | {
745
- op: "clear";
746
- } | undefined;
747
747
  guards?: {
748
748
  op: "add";
749
749
  guard: {
@@ -791,6 +791,15 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
791
791
  } | undefined;
792
792
  };
793
793
  description?: string | undefined;
794
+ rewards?: {
795
+ op: "set" | "add";
796
+ objects: string[];
797
+ } | {
798
+ op: "remove";
799
+ objects: string[];
800
+ } | {
801
+ op: "clear";
802
+ } | undefined;
794
803
  location?: string | undefined;
795
804
  owner_receive?: {
796
805
  received: {
@@ -805,15 +814,6 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
805
814
  id: string;
806
815
  content_raw?: any;
807
816
  }[] | undefined;
808
- rewards?: {
809
- op: "set" | "add";
810
- objects: string[];
811
- } | {
812
- op: "remove";
813
- objects: string[];
814
- } | {
815
- op: "clear";
816
- } | undefined;
817
817
  guards?: {
818
818
  op: "add";
819
819
  guard: {
@@ -853,18 +853,27 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
853
853
  no_cache: z.ZodOptional<z.ZodBoolean>;
854
854
  network: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet, import("@wowok/wowok").ENTRYPOINT.Mainnet]>>;
855
855
  referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
856
+ confirmed: z.ZodOptional<z.ZodBoolean>;
857
+ user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
858
+ project: z.ZodOptional<z.ZodString>;
856
859
  }, "strict", z.ZodTypeAny, {
857
860
  account: string;
858
861
  no_cache?: boolean | undefined;
859
862
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
860
863
  permission_guard?: string[] | undefined;
861
864
  referrer?: string | undefined;
865
+ confirmed?: boolean | undefined;
866
+ user_intent_phrases?: string[] | undefined;
867
+ project?: string | undefined;
862
868
  }, {
863
869
  no_cache?: boolean | undefined;
864
870
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
865
871
  account?: string | undefined;
866
872
  permission_guard?: string[] | undefined;
867
873
  referrer?: string | undefined;
874
+ confirmed?: boolean | undefined;
875
+ user_intent_phrases?: string[] | undefined;
876
+ project?: string | undefined;
868
877
  }>>;
869
878
  submission: z.ZodOptional<z.ZodObject<{
870
879
  type: z.ZodLiteral<"submission">;
@@ -1062,6 +1071,15 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1062
1071
  } | undefined;
1063
1072
  };
1064
1073
  description?: string | undefined;
1074
+ rewards?: {
1075
+ op: "set" | "add";
1076
+ objects: string[];
1077
+ } | {
1078
+ op: "remove";
1079
+ objects: string[];
1080
+ } | {
1081
+ op: "clear";
1082
+ } | undefined;
1065
1083
  location?: string | undefined;
1066
1084
  owner_receive?: {
1067
1085
  received: {
@@ -1076,15 +1094,6 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1076
1094
  id: string;
1077
1095
  content_raw?: any;
1078
1096
  }[] | undefined;
1079
- rewards?: {
1080
- op: "set" | "add";
1081
- objects: string[];
1082
- } | {
1083
- op: "remove";
1084
- objects: string[];
1085
- } | {
1086
- op: "clear";
1087
- } | undefined;
1088
1097
  guards?: {
1089
1098
  op: "add";
1090
1099
  guard: {
@@ -1151,6 +1160,9 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1151
1160
  network?: import("@wowok/wowok").ENTRYPOINT | undefined;
1152
1161
  permission_guard?: string[] | undefined;
1153
1162
  referrer?: string | undefined;
1163
+ confirmed?: boolean | undefined;
1164
+ user_intent_phrases?: string[] | undefined;
1165
+ project?: string | undefined;
1154
1166
  } | undefined;
1155
1167
  }, {
1156
1168
  data: {
@@ -1168,6 +1180,15 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1168
1180
  } | undefined;
1169
1181
  };
1170
1182
  description?: string | undefined;
1183
+ rewards?: {
1184
+ op: "set" | "add";
1185
+ objects: string[];
1186
+ } | {
1187
+ op: "remove";
1188
+ objects: string[];
1189
+ } | {
1190
+ op: "clear";
1191
+ } | undefined;
1171
1192
  location?: string | undefined;
1172
1193
  owner_receive?: {
1173
1194
  received: {
@@ -1182,15 +1203,6 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1182
1203
  id: string;
1183
1204
  content_raw?: any;
1184
1205
  }[] | undefined;
1185
- rewards?: {
1186
- op: "set" | "add";
1187
- objects: string[];
1188
- } | {
1189
- op: "remove";
1190
- objects: string[];
1191
- } | {
1192
- op: "clear";
1193
- } | undefined;
1194
1206
  guards?: {
1195
1207
  op: "add";
1196
1208
  guard: {
@@ -1257,6 +1269,9 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1257
1269
  account?: string | undefined;
1258
1270
  permission_guard?: string[] | undefined;
1259
1271
  referrer?: string | undefined;
1272
+ confirmed?: boolean | undefined;
1273
+ user_intent_phrases?: string[] | undefined;
1274
+ project?: string | undefined;
1260
1275
  } | undefined;
1261
1276
  }>;
1262
1277
  export type CallDemand_Data = z.infer<typeof CallDemand_DataSchema>;