@wowok/agent-mcp 2.2.8

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 (62) hide show
  1. package/README.md +56 -0
  2. package/dist/index.d.ts +15800 -0
  3. package/dist/index.js +1479 -0
  4. package/dist/schema/call/allocation.d.ts +1430 -0
  5. package/dist/schema/call/allocation.js +24 -0
  6. package/dist/schema/call/arbitration.d.ts +1974 -0
  7. package/dist/schema/call/arbitration.js +92 -0
  8. package/dist/schema/call/base.d.ts +7325 -0
  9. package/dist/schema/call/base.js +138 -0
  10. package/dist/schema/call/contact.d.ts +970 -0
  11. package/dist/schema/call/contact.js +37 -0
  12. package/dist/schema/call/demand.d.ts +1265 -0
  13. package/dist/schema/call/demand.js +47 -0
  14. package/dist/schema/call/guard.d.ts +951 -0
  15. package/dist/schema/call/guard.js +58 -0
  16. package/dist/schema/call/handler.d.ts +38 -0
  17. package/dist/schema/call/handler.js +171 -0
  18. package/dist/schema/call/index.d.ts +18 -0
  19. package/dist/schema/call/index.js +18 -0
  20. package/dist/schema/call/machine.d.ts +3974 -0
  21. package/dist/schema/call/machine.js +152 -0
  22. package/dist/schema/call/order.d.ts +974 -0
  23. package/dist/schema/call/order.js +34 -0
  24. package/dist/schema/call/payment.d.ts +404 -0
  25. package/dist/schema/call/payment.js +17 -0
  26. package/dist/schema/call/permission.d.ts +3017 -0
  27. package/dist/schema/call/permission.js +105 -0
  28. package/dist/schema/call/personal.d.ts +1472 -0
  29. package/dist/schema/call/personal.js +68 -0
  30. package/dist/schema/call/progress.d.ts +725 -0
  31. package/dist/schema/call/progress.js +26 -0
  32. package/dist/schema/call/proof.d.ts +320 -0
  33. package/dist/schema/call/proof.js +27 -0
  34. package/dist/schema/call/repository.d.ts +2358 -0
  35. package/dist/schema/call/repository.js +76 -0
  36. package/dist/schema/call/reward.d.ts +1232 -0
  37. package/dist/schema/call/reward.js +30 -0
  38. package/dist/schema/call/service.d.ts +3494 -0
  39. package/dist/schema/call/service.js +82 -0
  40. package/dist/schema/call/treasury.d.ts +2345 -0
  41. package/dist/schema/call/treasury.js +71 -0
  42. package/dist/schema/common/index.d.ts +843 -0
  43. package/dist/schema/common/index.js +347 -0
  44. package/dist/schema/index.d.ts +7 -0
  45. package/dist/schema/index.js +7 -0
  46. package/dist/schema/local/index.d.ts +17522 -0
  47. package/dist/schema/local/index.js +855 -0
  48. package/dist/schema/local/wip.d.ts +784 -0
  49. package/dist/schema/local/wip.js +187 -0
  50. package/dist/schema/messenger/index.d.ts +4655 -0
  51. package/dist/schema/messenger/index.js +446 -0
  52. package/dist/schema/query/index.d.ts +73445 -0
  53. package/dist/schema/query/index.js +1324 -0
  54. package/dist/schema/utils/guard-parser.d.ts +20 -0
  55. package/dist/schema/utils/guard-parser.js +401 -0
  56. package/dist/schema/utils/guard-query-utils.d.ts +5 -0
  57. package/dist/schema/utils/guard-query-utils.js +22 -0
  58. package/dist/schema/utils/node-parser.d.ts +45 -0
  59. package/dist/schema/utils/node-parser.js +353 -0
  60. package/dist/schema/utils/permission-index-utils.d.ts +2 -0
  61. package/dist/schema/utils/permission-index-utils.js +7 -0
  62. package/package.json +48 -0
@@ -0,0 +1,37 @@
1
+ import { z } from "zod";
2
+ import { WithPermissionObjectSchema, CallEnvSchema, SubmissionCallSchema } from "./base.js";
3
+ import { NameOrAddressSchema, ReceivedObjectsOrRecentlySchema, DescriptionSchema, LongNameSchema, NameSchema } from "../common/index.js";
4
+ export const ImEntrySchema = z.object({
5
+ at: NameOrAddressSchema.describe("Contact's account address or name for instant messaging"),
6
+ description: LongNameSchema.optional().describe("Optional description or note about this contact"),
7
+ }).strict().describe("An instant messaging contact entry with address and optional description");
8
+ export const ImsOperationSchema = z.discriminatedUnion("op", [
9
+ z.object({
10
+ op: z.literal("add").describe("Add new IM contacts to the list"),
11
+ im: z.array(ImEntrySchema).describe("List of IM contacts to add"),
12
+ }).strict().describe("Add operation: Append new contacts to the existing IM list"),
13
+ z.object({
14
+ op: z.literal("set").describe("Set/replace all IM contacts"),
15
+ im: z.array(ImEntrySchema).describe("Complete list of IM contacts to set"),
16
+ }).strict().describe("Set operation: Replace entire IM list with new contacts"),
17
+ z.object({
18
+ op: z.literal("remove").describe("Remove specific IM contacts"),
19
+ im: z.array(NameOrAddressSchema).describe("List of contact addresses or names to remove"),
20
+ }).strict().describe("Remove operation: Delete specified contacts from the IM list"),
21
+ z.object({
22
+ op: z.literal("clear").describe("Clear all IM contacts"),
23
+ }).strict().describe("Clear operation: Remove all contacts from the IM list"),
24
+ ]).describe("IM list operation: add, set, remove, or clear contacts");
25
+ export const CallContact_DataSchema = z.object({
26
+ object: WithPermissionObjectSchema,
27
+ my_status: NameSchema.optional().describe("Set your status message in this contact list. Only valid if your account is already in the IM list"),
28
+ description: DescriptionSchema.optional().describe("Contact object description or public information"),
29
+ location: LongNameSchema.optional().describe("Physical or virtual location information for this contact"),
30
+ ims: ImsOperationSchema.optional().describe("IM contact list operation: add, set, remove, or clear instant messaging contacts"),
31
+ owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Receive objects sent to this contact object and unwrap them to the permission owner"),
32
+ }).strict().describe("On-chain Contact operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Contact. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
33
+ export const CallContact_InputSchema = z.object({
34
+ data: CallContact_DataSchema.describe("Contact operation data containing object reference and operations to perform"),
35
+ env: CallEnvSchema.optional().describe("Call environment parameters including account, network, and cache settings"),
36
+ submission: SubmissionCallSchema.optional().describe("Guard submission data for permission verification"),
37
+ }).strict().describe("Contact object operation data. Manage on-chain contact information and instant messaging addresses for real-time encrypted communication");