wowok_agent 2.2.4 → 2.2.6
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 +111 -1
- package/dist/index.d.ts +104 -4
- package/dist/index.js +79 -7
- package/dist/schema/call/arbitration.d.ts +12 -0
- package/dist/schema/call/base.d.ts +15 -0
- package/dist/schema/call/contact.d.ts +12 -0
- package/dist/schema/call/demand.d.ts +12 -0
- package/dist/schema/call/machine.d.ts +12 -0
- package/dist/schema/call/order.d.ts +16 -0
- package/dist/schema/call/permission.d.ts +12 -0
- package/dist/schema/call/repository.d.ts +12 -0
- package/dist/schema/call/reward.d.ts +12 -0
- package/dist/schema/call/service.d.ts +12 -0
- package/dist/schema/call/treasury.d.ts +12 -0
- package/dist/schema/common/index.d.ts +32 -3
- package/dist/schema/common/index.js +4 -2
- package/dist/schema/query/index.d.ts +778 -35
- package/dist/schema/query/index.js +5 -11
- package/package.json +2 -2
|
@@ -420,7 +420,7 @@ export const GuardNodeSchema = z.lazy(() => z.discriminatedUnion('type', [
|
|
|
420
420
|
convert_witness: WitnessTypeSchema.optional().describe("Optional. When specified, the query retrieves data from the associated object instead of the object itself. For example, querying an order with convert_witness=TypeOrderProgress retrieves the associated Progress object data."),
|
|
421
421
|
}).strict().describe("The object to query from the Guard table."),
|
|
422
422
|
parameters: z.array(GuardNodeSchema).describe("Parameters required by the query (must match the query's expected parameters type)."),
|
|
423
|
-
}).strict().describe("Returns the result of executing a data query instruction on the specified object. The return type depends on the query being executed."),
|
|
423
|
+
}).strict().describe("Returns the result of executing a data query instruction on the specified object. The return type depends on the query being executed. SPECIAL NOTE for EntityLinker/EntityRegistrar queries: Use system addresses in the Guard table - ENTITY_LINKER_ADDRESS (0xaaa) for EntityLinker queries, ENTITY_REGISTRAR_ADDRESS (0xaab) for EntityRegistrar queries."),
|
|
424
424
|
z.object({
|
|
425
425
|
type: z.literal('logic_as_u256_greater_or_equal'),
|
|
426
426
|
nodes: z.array(GuardNodeSchema),
|
|
@@ -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
|
-
|
|
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:
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wowok_agent",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
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",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
32
32
|
"lodash": "^4.18.1",
|
|
33
|
-
"wowok": "2.2.
|
|
33
|
+
"wowok": "2.2.8",
|
|
34
34
|
"zod": "^3.25.76"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|