@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
@@ -185,8 +185,8 @@ export const WtsSignatureVerificationSchema = z.object({
185
185
  export const WtsVerificationResultSchema = z.object({
186
186
  valid: z.boolean().describe("Whether verification succeeded"),
187
187
  error: z.string().optional().describe("Error message if verification failed"),
188
- hashValid: z.boolean().optional().describe("Whether hash validation passed"),
189
- hasSignature: z.boolean().optional().describe("Whether WTS has signatures"),
188
+ hashValid: z.boolean().describe("Whether hash validation passed"),
189
+ hasSignature: z.boolean().describe("Whether WTS has signatures"),
190
190
  signatureValid: z.boolean().optional().describe("Whether signature validation passed"),
191
191
  signatures: z.array(WtsSignatureVerificationSchema).optional().describe("Signature verification details"),
192
192
  }).describe("WTS verification result");
@@ -293,91 +293,91 @@ export const MessengerOperationInputSchema = z.discriminatedUnion("operation", [
293
293
  z.object({
294
294
  operation: z.literal("watch_conversations"),
295
295
  filter: ConversationsFilterSchema.optional().describe("Conversations filter options - use unreadOnly to find conversations with unread messages, previewMessageCount to control message previews (default 2), and sortBy/sortOrder to customize sorting"),
296
- }),
296
+ }).strict(),
297
297
  z.object({
298
298
  operation: z.literal("send_message"),
299
299
  from: NameOrAddressSchema.optional().describe("Sender account name or address. If not specified, uses default account"),
300
300
  to: AccountOrMark_AddressAISchema.describe("Recipient address or account name - can be a string (name/address) or full object"),
301
301
  content: z.string().max(NORMAL_MESSAGE_BYTES_LIMIT).describe("Message content text (max 10240 bytes)"),
302
302
  options: SendMessageOptionsSchema.optional().describe("Optional message settings"),
303
- }),
303
+ }).strict(),
304
304
  z.object({
305
305
  operation: z.literal("send_file"),
306
306
  from: NameOrAddressSchema.optional().describe("Sender account name or address. If not specified, uses default account"),
307
307
  to: AccountOrMark_AddressAISchema.describe("Recipient address or account name - can be a string (name/address) or full object"),
308
308
  filePath: z.string().describe("Local file path to send. File will be compressed as ZIP before sending"),
309
309
  options: SendFileOptionsSchema.optional().describe("Optional file sending settings"),
310
- }),
310
+ }).strict(),
311
311
  z.object({
312
312
  operation: z.literal("watch_messages"),
313
313
  filter: MessageFilterSchema.optional().describe("Message filter options"),
314
- }),
314
+ }).strict(),
315
315
  z.object({
316
316
  operation: z.literal("extract_zip_messages"),
317
317
  account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
318
318
  messages: z.array(z.union([z.string(), MessageSchema])).describe("Array of message objects or message IDs to extract"),
319
319
  outputDir: z.string().describe("Output directory path for extracted files"),
320
- }),
320
+ }).strict(),
321
321
  z.object({
322
322
  operation: z.literal("generate_wts"),
323
323
  params: WtsGenerationParamsSchema.describe("WTS generation parameters"),
324
- }),
324
+ }).strict(),
325
325
  z.object({
326
326
  operation: z.literal("verify_wts"),
327
327
  wtsFilePath: z.string().describe("WTS file path to verify"),
328
- }),
328
+ }).strict(),
329
329
  z.object({
330
330
  operation: z.literal("sign_wts"),
331
331
  wtsFilePath: z.string().describe("WTS file path to sign"),
332
332
  account: NameOrAddressSchema.optional().describe("Account name or address to sign with. If not specified, uses default account"),
333
333
  outputPath: z.string().optional().describe("Output file path. If not specified, saves to signed_*.wts"),
334
- }),
334
+ }).strict(),
335
335
  z.object({
336
336
  operation: z.literal("wts2html"),
337
337
  wtsPath: z.string().describe("WTS file path or directory to convert"),
338
338
  options: WtsToHtmlOptionsSchema.optional().describe("Conversion options"),
339
- }),
339
+ }).strict(),
340
340
  z.object({
341
341
  operation: z.literal("proof_message"),
342
342
  account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
343
343
  messageId: z.string().describe("Message ID to proof on-chain"),
344
344
  network: EntrypointSchema.describe("Network to use for on-chain proof (required)"),
345
- }),
345
+ }).strict(),
346
346
  z.object({
347
347
  operation: z.literal("blacklist"),
348
348
  account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
349
349
  blacklist: BlacklistOperationSchema.describe("Blacklist management operation"),
350
- }),
350
+ }).strict(),
351
351
  z.object({
352
352
  operation: z.literal("friendslist"),
353
353
  account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
354
354
  friendslist: FriendslistOperationSchema.describe("Friends list management operation"),
355
- }),
355
+ }).strict(),
356
356
  z.object({
357
357
  operation: z.literal("guardlist"),
358
358
  account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
359
359
  guardlist: GuardlistOperationSchema.describe("Guard list management operation"),
360
- }),
360
+ }).strict(),
361
361
  z.object({
362
362
  operation: z.literal("settings"),
363
363
  account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
364
364
  settings: SettingsOperationSchema.describe("Settings management operation"),
365
- }),
365
+ }).strict(),
366
366
  z.object({
367
367
  operation: z.literal("mark_messages_as_viewed"),
368
368
  account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
369
369
  messageIds: z.array(z.string()).min(1).max(1000).describe("Array of message IDs to mark as viewed (1-1000 messages). Only messages belonging to this account will be marked"),
370
- }),
370
+ }).strict(),
371
371
  z.object({
372
372
  operation: z.literal("mark_conversation_as_viewed"),
373
373
  account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
374
374
  peerAddress: AccountOrMark_AddressAISchema.describe("Peer address or account name - can be a string (name/address) or full object. All unviewed received messages from this peer will be marked as viewed"),
375
- }),
375
+ }).strict(),
376
376
  z.object({
377
377
  operation: z.literal("pull_messages"),
378
378
  account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
379
379
  limit: z.number().optional().describe("Maximum number of messages to pull from server"),
380
- }),
380
+ }).strict(),
381
381
  ]).describe("Messenger operation input schema");
382
382
  export const MessengerOperationOutputSchema = z.object({
383
383
  result: z.discriminatedUnion("operation", [