@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.
- package/README.md +56 -0
- package/dist/index.d.ts +15800 -0
- package/dist/index.js +1479 -0
- package/dist/schema/call/allocation.d.ts +1430 -0
- package/dist/schema/call/allocation.js +24 -0
- package/dist/schema/call/arbitration.d.ts +1974 -0
- package/dist/schema/call/arbitration.js +92 -0
- package/dist/schema/call/base.d.ts +7325 -0
- package/dist/schema/call/base.js +138 -0
- package/dist/schema/call/contact.d.ts +970 -0
- package/dist/schema/call/contact.js +37 -0
- package/dist/schema/call/demand.d.ts +1265 -0
- package/dist/schema/call/demand.js +47 -0
- package/dist/schema/call/guard.d.ts +951 -0
- package/dist/schema/call/guard.js +58 -0
- package/dist/schema/call/handler.d.ts +38 -0
- package/dist/schema/call/handler.js +171 -0
- package/dist/schema/call/index.d.ts +18 -0
- package/dist/schema/call/index.js +18 -0
- package/dist/schema/call/machine.d.ts +3974 -0
- package/dist/schema/call/machine.js +152 -0
- package/dist/schema/call/order.d.ts +974 -0
- package/dist/schema/call/order.js +34 -0
- package/dist/schema/call/payment.d.ts +404 -0
- package/dist/schema/call/payment.js +17 -0
- package/dist/schema/call/permission.d.ts +3017 -0
- package/dist/schema/call/permission.js +105 -0
- package/dist/schema/call/personal.d.ts +1472 -0
- package/dist/schema/call/personal.js +68 -0
- package/dist/schema/call/progress.d.ts +725 -0
- package/dist/schema/call/progress.js +26 -0
- package/dist/schema/call/proof.d.ts +320 -0
- package/dist/schema/call/proof.js +27 -0
- package/dist/schema/call/repository.d.ts +2358 -0
- package/dist/schema/call/repository.js +76 -0
- package/dist/schema/call/reward.d.ts +1232 -0
- package/dist/schema/call/reward.js +30 -0
- package/dist/schema/call/service.d.ts +3494 -0
- package/dist/schema/call/service.js +82 -0
- package/dist/schema/call/treasury.d.ts +2345 -0
- package/dist/schema/call/treasury.js +71 -0
- package/dist/schema/common/index.d.ts +843 -0
- package/dist/schema/common/index.js +347 -0
- package/dist/schema/index.d.ts +7 -0
- package/dist/schema/index.js +7 -0
- package/dist/schema/local/index.d.ts +17522 -0
- package/dist/schema/local/index.js +855 -0
- package/dist/schema/local/wip.d.ts +784 -0
- package/dist/schema/local/wip.js +187 -0
- package/dist/schema/messenger/index.d.ts +4655 -0
- package/dist/schema/messenger/index.js +446 -0
- package/dist/schema/query/index.d.ts +73445 -0
- package/dist/schema/query/index.js +1324 -0
- package/dist/schema/utils/guard-parser.d.ts +20 -0
- package/dist/schema/utils/guard-parser.js +401 -0
- package/dist/schema/utils/guard-query-utils.d.ts +5 -0
- package/dist/schema/utils/guard-query-utils.js +22 -0
- package/dist/schema/utils/node-parser.d.ts +45 -0
- package/dist/schema/utils/node-parser.js +353 -0
- package/dist/schema/utils/permission-index-utils.d.ts +2 -0
- package/dist/schema/utils/permission-index-utils.js +7 -0
- package/package.json +48 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WithPermissionObjectSchema, ObjectsSchema, CallEnvSchema, SubmissionCallSchema, } from './base.js';
|
|
3
|
+
import { ServiceGuardSchema } from '../query/index.js';
|
|
4
|
+
import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema } from '../common/index.js';
|
|
5
|
+
export const GuardsSchema = z.discriminatedUnion('op', [
|
|
6
|
+
z.object({
|
|
7
|
+
op: z.literal('add'),
|
|
8
|
+
guard: z.array(ServiceGuardSchema).describe('List of guard IDs or names to add'),
|
|
9
|
+
}).strict(),
|
|
10
|
+
z.object({
|
|
11
|
+
op: z.literal('set'),
|
|
12
|
+
guard: z.array(ServiceGuardSchema).describe('List of guard IDs or names to set'),
|
|
13
|
+
}).strict(),
|
|
14
|
+
z.object({
|
|
15
|
+
op: z.literal('remove'),
|
|
16
|
+
guard: z.array(NameOrAddressSchema).describe('List of guard IDs or names to remove'),
|
|
17
|
+
}).strict(),
|
|
18
|
+
z.object({
|
|
19
|
+
op: z.literal('clear'),
|
|
20
|
+
}).strict(),
|
|
21
|
+
]);
|
|
22
|
+
export const DemandPresentSchema = z.object({
|
|
23
|
+
recommend: DescriptionSchema.describe('Recommendation for the demand'),
|
|
24
|
+
by_guard: NameOrAddressSchema.optional().describe('Guard ID or name, used to select which Guard\'s verification to pass through'),
|
|
25
|
+
service: NameOrAddressSchema.optional().describe('Service ID or name to present'),
|
|
26
|
+
}).strict();
|
|
27
|
+
export const FeedbackInfoSchema = z.object({
|
|
28
|
+
who: AccountOrMark_AddressSchema.describe('Account address or mark name, used to identify providing feedback to this user'),
|
|
29
|
+
acceptance_score: z.number().int().min(0).max(255).optional().describe('Acceptance score, used to evaluate the reception level of the service recommended by the user'),
|
|
30
|
+
feedback: DescriptionSchema.optional().describe('Feedback content for the user'),
|
|
31
|
+
}).strict();
|
|
32
|
+
export const CallDemand_DataSchema = z.object({
|
|
33
|
+
object: WithPermissionObjectSchema,
|
|
34
|
+
present: DemandPresentSchema.optional().describe('Recommend Service to Demand object'),
|
|
35
|
+
description: DescriptionSchema.optional(),
|
|
36
|
+
location: LongNameSchema.optional().describe('Service location of the Demand object'),
|
|
37
|
+
rewards: ObjectsSchema.optional().describe('Reward information of the Demand object'),
|
|
38
|
+
feedback: z.array(FeedbackInfoSchema).optional().describe('User feedback information for the Demand object'),
|
|
39
|
+
guards: GuardsSchema.optional().describe('Validation Guard list for the Demand object. Used to verify whether the service recommended by the user meets the requirements'),
|
|
40
|
+
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object.'),
|
|
41
|
+
um: z.union([NameOrAddressSchema, z.null()]).optional().describe('Contact object.'),
|
|
42
|
+
}).strict().describe("On-chain Demand operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Demand. 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.");
|
|
43
|
+
export const CallDemand_InputSchema = z.object({
|
|
44
|
+
data: CallDemand_DataSchema,
|
|
45
|
+
env: CallEnvSchema.optional(),
|
|
46
|
+
submission: SubmissionCallSchema.optional(),
|
|
47
|
+
}).strict();
|