wowok_agent 2.2.5 → 2.2.7

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.
@@ -952,7 +952,8 @@ export const EventTypeSchema = z.union([
952
952
  z.literal("DemandPresentEvent"),
953
953
  z.literal("DemandFeedbackEvent"),
954
954
  z.literal("NewEntityEvent"),
955
- ]).describe("Event type");
955
+ z.string(),
956
+ ]).describe("Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')");
956
957
  export const EventCursorSchema = z.object({
957
958
  eventSeq: z.string().describe("Event sequence number"),
958
959
  txDigest: z.string().describe("Transaction digest"),
@@ -960,17 +961,10 @@ export const EventCursorSchema = z.object({
960
961
  export const EventBaseSchema = z.object({
961
962
  id: EventCursorSchema,
962
963
  sender: z.string().describe("Event sender ID"),
963
- type: z.union([
964
- z.string(),
965
- z.literal("ArbEvent"),
966
- z.literal("NewOrderEvent"),
967
- z.literal("ProgressEvent"),
968
- z.literal("DemandPresentEvent"),
969
- z.literal("DemandFeedbackEvent"),
970
- z.literal("NewEntityEvent"),
971
- ]).describe("Event type"),
964
+ type: EventTypeSchema,
972
965
  type_raw: z.string().describe("Raw event type"),
973
966
  time: z.string().describe("Event occurrence time"),
967
+ parsedJson_raw: z.any().optional().describe("Raw parsed JSON data from the event"),
974
968
  }).describe("Event base information");
975
969
  export const ArbEventSchema = EventBaseSchema.extend({
976
970
  arb: z.string().describe("Arbitration object ID"),
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "wowok_agent",
3
- "version": "2.2.5",
3
+ "version": "2.2.7",
4
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",
8
8
  "type": "module",
9
9
  "files": [
10
- "dist"
10
+ "dist",
11
+ "README.md"
11
12
  ],
12
13
  "bin": {
13
14
  "wowok_agent": "dist/index.js"
@@ -30,7 +31,7 @@
30
31
  "dependencies": {
31
32
  "@modelcontextprotocol/sdk": "^1.29.0",
32
33
  "lodash": "^4.18.1",
33
- "wowok": "2.2.7",
34
+ "wowok": "2.2.8",
34
35
  "zod": "^3.25.76"
35
36
  },
36
37
  "devDependencies": {