wowok_agent 2.1.9 → 2.1.18
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 +2 -8
- package/dist/index.d.ts +14321 -3
- package/dist/index.js +76 -37
- package/dist/schema/call/allocation.d.ts +1426 -4
- package/dist/schema/call/arbitration.d.ts +1948 -13
- package/dist/schema/call/base.d.ts +7289 -20
- package/dist/schema/call/contact.d.ts +953 -4
- package/dist/schema/call/demand.d.ts +1248 -5
- package/dist/schema/call/guard.d.ts +943 -7
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +3952 -13
- package/dist/schema/call/order.d.ts +1048 -5
- package/dist/schema/call/payment.d.ts +400 -3
- package/dist/schema/call/permission.d.ts +2991 -13
- package/dist/schema/call/personal.d.ts +1458 -13
- package/dist/schema/call/progress.d.ts +907 -6
- package/dist/schema/call/proof.d.ts +316 -3
- package/dist/schema/call/repository.d.ts +2346 -15
- package/dist/schema/call/reward.d.ts +1238 -7
- package/dist/schema/call/service.d.ts +3654 -7
- package/dist/schema/call/treasury.d.ts +2459 -6
- package/dist/schema/common/index.d.ts +754 -33
- package/dist/schema/common/index.js +5 -1
- package/dist/schema/local/index.d.ts +7784 -54
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/local/wip.d.ts +773 -25
- package/dist/schema/messenger/index.d.ts +3655 -31
- package/dist/schema/messenger/index.js +9 -9
- package/dist/schema/query/index.d.ts +47258 -128
- package/dist/schema/query/index.js +3 -61
- package/dist/schema/utils/guard-query-utils.d.ts +2 -2
- package/package.json +10 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { TokenTypeInfoSchema, QueryLocalMarkListResultSchema, QueryAccountListResultSchema, QueryLocalInfoListResultSchema, QueryLocalTokenListResultSchema, QueryAccountResultSchema } from "../local/index.js";
|
|
3
|
-
import { AccountOrMark_AddressSchema, BalanceTypeSchema, EntrypointSchema, GuardIdentifierSchema, GuardTableItemSchema, NameOrAddressSchema, ObjectBaseSchema, ObjectTypeSchema, QueryIdSchema, SupportedValueSchema, ValueTypeSchema,
|
|
3
|
+
import { AccountOrMark_AddressSchema, BalanceTypeSchema, EntrypointSchema, GuardIdentifierSchema, GuardTableItemSchema, NameOrAddressSchema, ObjectBaseSchema, ObjectTypeSchema, QueryIdSchema, SupportedValueSchema, ValueTypeSchema, LongNameSchema, DescriptionSchema } from "../common/index.js";
|
|
4
4
|
import { isValidPermissionIndex } from '../utils/permission-index-utils.js';
|
|
5
5
|
import { isValidGuardQueryId, isValidGuardQueryIdOrName } from '../utils/guard-query-utils.js';
|
|
6
6
|
import { isWitnessType, } from "wowok";
|
|
@@ -1166,7 +1166,8 @@ export const GuardInstructFilterOptionsSchema = z.object({
|
|
|
1166
1166
|
id: z.optional(z.array(z.number().int())).describe('ID array filter (OperatorType | ContextType | number)'),
|
|
1167
1167
|
returnType: z.optional(ValueTypeSchema).describe('Return type filter'),
|
|
1168
1168
|
paramCount: z.optional(z.number().int()).describe('Parameter count filter'),
|
|
1169
|
-
scope: z.optional(z.enum(['instruct', 'object query', 'all'])).describe('Scope filter: instruct, object query, or all').default("all")
|
|
1169
|
+
scope: z.optional(z.enum(['instruct', 'object query', 'all'])).describe('Scope filter: instruct, object query, or all').default("all"),
|
|
1170
|
+
objectType: z.optional(ObjectTypeSchema).describe('Object type filter (only for object query scope)')
|
|
1170
1171
|
}).describe('Guard instruction filter options');
|
|
1171
1172
|
// PermissionFilter类型
|
|
1172
1173
|
export const PermissionFilterSchema = z.object({
|
|
@@ -1248,65 +1249,6 @@ export const LocalQueryResultSchema = z.union([
|
|
|
1248
1249
|
result: QueryAccountResultSchema,
|
|
1249
1250
|
}),
|
|
1250
1251
|
]);
|
|
1251
|
-
// 链上查询结果类型
|
|
1252
|
-
export const OnchainQueryResultSchema = z.union([
|
|
1253
|
-
z.object({
|
|
1254
|
-
query_type: z.literal("onchain_personal_profile"),
|
|
1255
|
-
result: ObjectPersonalOrUndefinedSchema.shape.result,
|
|
1256
|
-
}),
|
|
1257
|
-
z.object({
|
|
1258
|
-
query_type: z.literal("onchain_objects"),
|
|
1259
|
-
result: ObjectsAnswerSchema,
|
|
1260
|
-
}),
|
|
1261
|
-
z.object({
|
|
1262
|
-
query_type: z.literal("onchain_table"),
|
|
1263
|
-
result: TableAnswerSchema,
|
|
1264
|
-
}),
|
|
1265
|
-
z.object({
|
|
1266
|
-
query_type: z.literal("onchain_table_item_entity_registrar"),
|
|
1267
|
-
result: TableItem_EntityRegistrarOrUndefinedSchema,
|
|
1268
|
-
}),
|
|
1269
|
-
z.object({
|
|
1270
|
-
query_type: z.literal("onchain_table_item_entity_linker"),
|
|
1271
|
-
result: TableItem_EntityLinkerOrUndefinedSchema,
|
|
1272
|
-
}),
|
|
1273
|
-
z.object({
|
|
1274
|
-
query_type: z.literal("onchain_table_item_reward_record"),
|
|
1275
|
-
result: TableItem_RewardRecordOrUndefinedSchema,
|
|
1276
|
-
}),
|
|
1277
|
-
z.object({
|
|
1278
|
-
query_type: z.literal("onchain_table_item_demand_presenter"),
|
|
1279
|
-
result: TableItem_DemandPresenterOrUndefinedSchema,
|
|
1280
|
-
}),
|
|
1281
|
-
z.object({
|
|
1282
|
-
query_type: z.literal("onchain_table_item_treasury_history"),
|
|
1283
|
-
result: TableItem_TreasuryHistoryOrUndefinedSchema,
|
|
1284
|
-
}),
|
|
1285
|
-
z.object({
|
|
1286
|
-
query_type: z.literal("onchain_table_item_machine_node"),
|
|
1287
|
-
result: TableItem_MachineNodeOrUndefinedSchema,
|
|
1288
|
-
}),
|
|
1289
|
-
z.object({
|
|
1290
|
-
query_type: z.literal("onchain_table_item_progress_history"),
|
|
1291
|
-
result: TableItem_ProgressHistoryOrUndefinedSchema,
|
|
1292
|
-
}),
|
|
1293
|
-
z.object({
|
|
1294
|
-
query_type: z.literal("onchain_table_item_address_mark"),
|
|
1295
|
-
result: TableItem_AddressMarkOrUndefinedSchema,
|
|
1296
|
-
}),
|
|
1297
|
-
z.object({
|
|
1298
|
-
query_type: z.literal("onchain_table_item_repository_data"),
|
|
1299
|
-
result: TableItem_RepositoryDataOrUndefinedSchema,
|
|
1300
|
-
}),
|
|
1301
|
-
z.object({
|
|
1302
|
-
query_type: z.literal("onchain_table_item_permission_perm"),
|
|
1303
|
-
result: TableItem_PermissionPermOrUndefinedSchema,
|
|
1304
|
-
}),
|
|
1305
|
-
z.object({
|
|
1306
|
-
query_type: z.literal("onchain_received"),
|
|
1307
|
-
result: QueryReceivedResultSchema,
|
|
1308
|
-
}),
|
|
1309
|
-
]);
|
|
1310
1252
|
// WatchQueryOperations统一输出schema - 使用类型断言避免 TypeScript 推断超限
|
|
1311
1253
|
export const WatchQueryOperationsResultSchema = z.object({
|
|
1312
1254
|
result: z.any()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const isValidGuardQueryId: (id: number) => boolean;
|
|
2
2
|
export declare const isValidGuardQueryName: (name: string) => boolean;
|
|
3
3
|
export declare const isValidGuardQueryIdOrName: (input: number | string) => boolean;
|
|
4
|
-
export declare const getGuardQueryByIdOrName: (input: number | string) =>
|
|
5
|
-
export declare const GUARD_QUERY_NAMES:
|
|
4
|
+
export declare const getGuardQueryByIdOrName: (input: number | string) => import("wowok").GuardQuery | undefined;
|
|
5
|
+
export declare const GUARD_QUERY_NAMES: string[];
|
package/package.json
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wowok_agent",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.18",
|
|
4
4
|
"description": "Making It Easy for 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
|
-
"scripts": {
|
|
10
|
-
"clean": "rm -rf dist",
|
|
11
|
-
"build": "tsc",
|
|
12
|
-
"watch": "tsc --watch",
|
|
13
|
-
"start": "tsx src/index.ts"
|
|
14
|
-
},
|
|
15
9
|
"files": [
|
|
16
10
|
"dist"
|
|
17
11
|
],
|
|
@@ -36,12 +30,18 @@
|
|
|
36
30
|
"dependencies": {
|
|
37
31
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
38
32
|
"lodash": "^4.18.1",
|
|
39
|
-
"wowok": "
|
|
33
|
+
"wowok": "2.1.18",
|
|
40
34
|
"zod": "^3.25.76"
|
|
41
35
|
},
|
|
42
36
|
"devDependencies": {
|
|
43
|
-
"@types/node": "^22.
|
|
37
|
+
"@types/node": "^22.19.17",
|
|
44
38
|
"tsx": "^4.21.0",
|
|
45
39
|
"typescript": "^5.8.2"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"clean": "rm -rf dist",
|
|
43
|
+
"build": "tsc",
|
|
44
|
+
"watch": "tsc --watch",
|
|
45
|
+
"start": "tsx src/index.ts"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|