wowok_agent 2.1.36 → 2.1.37

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # WoWok Agent (MCP Server)
2
- Making It Easy for AI-Agents to Communicate, Collaborate, Trade, and Trust.
2
+ Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.
3
3
 
4
4
  Docs: [https://github.com/wowok-ai/docs/](https://github.com/wowok-ai/docs/)
5
5
 
@@ -19,7 +19,7 @@ export function strictParse(schema, input, fieldName = "input") {
19
19
  export const NamedObjectSchema = z.object({
20
20
  name: NameSchema.optional().describe("The name of the object"),
21
21
  tags: z.array(z.string()).optional().describe("The tags of the object"),
22
- onChain: z.boolean().optional().describe("CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone. Only set to true for public identities you want to share."),
22
+ onChain: z.boolean().optional().describe("CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone. Only set to true for displaying the relationships you are willing to make public on the chain."),
23
23
  replaceExistName: z.boolean().optional().describe("FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name (e.g., 'I must use this name', 'force rename', 'replace the existing one'). " +
24
24
  "WARNING: This will UNBIND the name from its original object and rebind it to the new one, potentially breaking existing references. " +
25
25
  "If not specified or false: the operation will FAIL with an error when the name is already in use (safe default behavior)."),
@@ -2875,6 +2875,7 @@ export declare const ObjectProgressSchema: z.ZodObject<{
2875
2875
  threshold: number;
2876
2876
  }>, "many">;
2877
2877
  history_count: z.ZodNumber;
2878
+ current_time: z.ZodNumber;
2878
2879
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2879
2880
  object: z.ZodString;
2880
2881
  type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
@@ -3071,6 +3072,7 @@ export declare const ObjectProgressSchema: z.ZodObject<{
3071
3072
  threshold: number;
3072
3073
  }>, "many">;
3073
3074
  history_count: z.ZodNumber;
3075
+ current_time: z.ZodNumber;
3074
3076
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3075
3077
  object: z.ZodString;
3076
3078
  type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
@@ -3267,6 +3269,7 @@ export declare const ObjectProgressSchema: z.ZodObject<{
3267
3269
  threshold: number;
3268
3270
  }>, "many">;
3269
3271
  history_count: z.ZodNumber;
3272
+ current_time: z.ZodNumber;
3270
3273
  }, z.ZodTypeAny, "passthrough">>;
3271
3274
  export declare const AmountSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3272
3275
  type: z.ZodLiteral<"GuardU64Identifier">;
@@ -14631,6 +14634,7 @@ export declare const ObjectUnionSchema: z.ZodUnion<[z.ZodObject<{
14631
14634
  threshold: number;
14632
14635
  }>, "many">;
14633
14636
  history_count: z.ZodNumber;
14637
+ current_time: z.ZodNumber;
14634
14638
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
14635
14639
  object: z.ZodString;
14636
14640
  type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
@@ -14827,6 +14831,7 @@ export declare const ObjectUnionSchema: z.ZodUnion<[z.ZodObject<{
14827
14831
  threshold: number;
14828
14832
  }>, "many">;
14829
14833
  history_count: z.ZodNumber;
14834
+ current_time: z.ZodNumber;
14830
14835
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
14831
14836
  object: z.ZodString;
14832
14837
  type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
@@ -15023,6 +15028,7 @@ export declare const ObjectUnionSchema: z.ZodUnion<[z.ZodObject<{
15023
15028
  threshold: number;
15024
15029
  }>, "many">;
15025
15030
  history_count: z.ZodNumber;
15031
+ current_time: z.ZodNumber;
15026
15032
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
15027
15033
  object: z.ZodString;
15028
15034
  type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
@@ -22763,6 +22769,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
22763
22769
  threshold: number;
22764
22770
  }>, "many">;
22765
22771
  history_count: z.ZodNumber;
22772
+ current_time: z.ZodNumber;
22766
22773
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
22767
22774
  object: z.ZodString;
22768
22775
  type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
@@ -22959,6 +22966,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
22959
22966
  threshold: number;
22960
22967
  }>, "many">;
22961
22968
  history_count: z.ZodNumber;
22969
+ current_time: z.ZodNumber;
22962
22970
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
22963
22971
  object: z.ZodString;
22964
22972
  type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
@@ -23155,6 +23163,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
23155
23163
  threshold: number;
23156
23164
  }>, "many">;
23157
23165
  history_count: z.ZodNumber;
23166
+ current_time: z.ZodNumber;
23158
23167
  }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
23159
23168
  object: z.ZodString;
23160
23169
  type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
@@ -29595,6 +29604,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
29595
29604
  threshold: number;
29596
29605
  }>, "many">;
29597
29606
  history_count: z.ZodNumber;
29607
+ current_time: z.ZodNumber;
29598
29608
  }, z.ZodTypeAny, "passthrough"> | z.objectOutputType<{
29599
29609
  object: z.ZodString;
29600
29610
  type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
@@ -32307,6 +32317,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
32307
32317
  threshold: number;
32308
32318
  }>, "many">;
32309
32319
  history_count: z.ZodNumber;
32320
+ current_time: z.ZodNumber;
32310
32321
  }, z.ZodTypeAny, "passthrough"> | z.objectInputType<{
32311
32322
  object: z.ZodString;
32312
32323
  type: z.ZodOptional<z.ZodEnum<[import("wowok").ObjectType.Permission, import("wowok").ObjectType.Repository, import("wowok").ObjectType.Arb, import("wowok").ObjectType.Arbitration, import("wowok").ObjectType.Service, import("wowok").ObjectType.Machine, import("wowok").ObjectType.Order, import("wowok").ObjectType.Progress, import("wowok").ObjectType.Payment, import("wowok").ObjectType.Treasury, import("wowok").ObjectType.Guard, import("wowok").ObjectType.Demand, import("wowok").ObjectType.Passport, import("wowok").ObjectType.Allocation, import("wowok").ObjectType.Resource, import("wowok").ObjectType.Reward, import("wowok").ObjectType.Discount, import("wowok").ObjectType.EntityRegistrar, import("wowok").ObjectType.EntityLinker, import("wowok").ObjectType.Proof, import("wowok").ObjectType.WReceivedObject, import("wowok").ObjectType.Contact, import("wowok").ObjectType.TableItem_ProgressHistory, import("wowok").ObjectType.TableItem_PermissionPerm, import("wowok").ObjectType.TableItem_DemandPresenter, import("wowok").ObjectType.TableItem_MachineNode, import("wowok").ObjectType.TableItem_TreasuryHistory, import("wowok").ObjectType.TableItem_RepositoryData, import("wowok").ObjectType.TableItem_RewardRecord, import("wowok").ObjectType.TableItem_EntityLinker, import("wowok").ObjectType.TableItem_AddressMark, import("wowok").ObjectType.TableItem_EntityRegistrar]>>;
@@ -117,8 +117,8 @@ export const ServiceSaleSchema = z.object({
117
117
  price: BalanceTypeSchema.describe("Price of the product or service"), // BalanceType type
118
118
  stock: BalanceTypeSchema.describe("Stock of the product or service"), // BalanceType type
119
119
  suspension: z.boolean().describe("Whether sale is suspended"),
120
- wip: z.string().describe("URL of wip file"),
121
- wip_hash: z.string().describe("Hash of wip file"),
120
+ wip: z.string().describe("HTTP URL of wip file"),
121
+ wip_hash: z.string().describe(`Hash of WIP. If EMPTY string, the hash within wip will be automatically used; else, the consistency of the hash within wip will be verified with the provided hash.`),
122
122
  }).describe("Service sale");
123
123
  // 定义PurchasedItem schema
124
124
  export const PurchasedItemSchema = z.object({
@@ -173,6 +173,7 @@ export const ObjectProgressSchema = ObjectBaseSchema.extend({
173
173
  namedOperator: z.array(NamedOperatorSchema).describe("Namespace operator list. Each process can independently maintain operators for permissions represented by its namespace."),
174
174
  session: z.array(ProgressSessionSchema).describe("Progress session list"),
175
175
  history_count: z.number().describe("Number of historical sessions for completed nodes in Progress. Use 'query_table' or 'query_table_item' to get 'ProgressHistory' table items."),
176
+ current_time: z.number().describe("Current node entry timestamp"),
176
177
  }).describe("Progress object");
177
178
  // 定义Amount schema
178
179
  export const AmountSchema = z.discriminatedUnion("type", [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wowok_agent",
3
- "version": "2.1.36",
4
- "description": "Making It Easy for Agents to Communicate, Collaborate, Trade, and Trust.",
3
+ "version": "2.1.37",
4
+ "description": "Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "module": "node",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@modelcontextprotocol/sdk": "^1.29.0",
32
32
  "lodash": "^4.18.1",
33
- "wowok": "2.1.35",
33
+ "wowok": "2.1.37",
34
34
  "zod": "^3.25.76"
35
35
  },
36
36
  "devDependencies": {