wowok_agent 2.1.27 → 2.1.29
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/dist/index.d.ts +37 -237
- package/dist/index.js +150 -2
- package/dist/schema/call/order.d.ts +16 -112
- package/dist/schema/call/progress.d.ts +20 -202
- package/dist/schema/call/progress.js +5 -14
- package/dist/schema/call/treasury.d.ts +38 -248
- package/dist/schema/call/treasury.js +4 -4
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ export declare const ProgressNextSchema: z.ZodObject<{
|
|
|
9
9
|
forward: string;
|
|
10
10
|
next_node_name: string;
|
|
11
11
|
}>;
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const OperateSchema: z.ZodObject<{
|
|
13
13
|
operation: z.ZodObject<{
|
|
14
14
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
15
15
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -20,112 +20,26 @@ export declare const OperateWithHoldSchema: z.ZodObject<{
|
|
|
20
20
|
forward: string;
|
|
21
21
|
next_node_name: string;
|
|
22
22
|
}>;
|
|
23
|
-
hold: z.
|
|
23
|
+
hold: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
25
25
|
message: z.ZodOptional<z.ZodString>;
|
|
26
26
|
}, "strict", z.ZodTypeAny, {
|
|
27
|
-
hold: true;
|
|
28
27
|
operation: {
|
|
29
28
|
forward: string;
|
|
30
29
|
next_node_name: string;
|
|
31
30
|
};
|
|
32
31
|
message?: string | undefined;
|
|
32
|
+
hold?: boolean | undefined;
|
|
33
33
|
adminUnhold?: boolean | undefined;
|
|
34
34
|
}, {
|
|
35
|
-
hold: true;
|
|
36
35
|
operation: {
|
|
37
36
|
forward: string;
|
|
38
37
|
next_node_name: string;
|
|
39
38
|
};
|
|
40
39
|
message?: string | undefined;
|
|
40
|
+
hold?: boolean | undefined;
|
|
41
41
|
adminUnhold?: boolean | undefined;
|
|
42
42
|
}>;
|
|
43
|
-
export declare const OperateWithoutHoldSchema: z.ZodObject<{
|
|
44
|
-
operation: z.ZodObject<{
|
|
45
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
46
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
47
|
-
}, "strict", z.ZodTypeAny, {
|
|
48
|
-
forward: string;
|
|
49
|
-
next_node_name: string;
|
|
50
|
-
}, {
|
|
51
|
-
forward: string;
|
|
52
|
-
next_node_name: string;
|
|
53
|
-
}>;
|
|
54
|
-
hold: z.ZodLiteral<false>;
|
|
55
|
-
message: z.ZodOptional<z.ZodString>;
|
|
56
|
-
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
hold: false;
|
|
58
|
-
operation: {
|
|
59
|
-
forward: string;
|
|
60
|
-
next_node_name: string;
|
|
61
|
-
};
|
|
62
|
-
message?: string | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
hold: false;
|
|
65
|
-
operation: {
|
|
66
|
-
forward: string;
|
|
67
|
-
next_node_name: string;
|
|
68
|
-
};
|
|
69
|
-
message?: string | undefined;
|
|
70
|
-
}>;
|
|
71
|
-
export declare const OperateSchema: z.ZodDiscriminatedUnion<"hold", [z.ZodObject<{
|
|
72
|
-
operation: z.ZodObject<{
|
|
73
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
74
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
75
|
-
}, "strict", z.ZodTypeAny, {
|
|
76
|
-
forward: string;
|
|
77
|
-
next_node_name: string;
|
|
78
|
-
}, {
|
|
79
|
-
forward: string;
|
|
80
|
-
next_node_name: string;
|
|
81
|
-
}>;
|
|
82
|
-
hold: z.ZodLiteral<true>;
|
|
83
|
-
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
-
message: z.ZodOptional<z.ZodString>;
|
|
85
|
-
}, "strict", z.ZodTypeAny, {
|
|
86
|
-
hold: true;
|
|
87
|
-
operation: {
|
|
88
|
-
forward: string;
|
|
89
|
-
next_node_name: string;
|
|
90
|
-
};
|
|
91
|
-
message?: string | undefined;
|
|
92
|
-
adminUnhold?: boolean | undefined;
|
|
93
|
-
}, {
|
|
94
|
-
hold: true;
|
|
95
|
-
operation: {
|
|
96
|
-
forward: string;
|
|
97
|
-
next_node_name: string;
|
|
98
|
-
};
|
|
99
|
-
message?: string | undefined;
|
|
100
|
-
adminUnhold?: boolean | undefined;
|
|
101
|
-
}>, z.ZodObject<{
|
|
102
|
-
operation: z.ZodObject<{
|
|
103
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
104
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
105
|
-
}, "strict", z.ZodTypeAny, {
|
|
106
|
-
forward: string;
|
|
107
|
-
next_node_name: string;
|
|
108
|
-
}, {
|
|
109
|
-
forward: string;
|
|
110
|
-
next_node_name: string;
|
|
111
|
-
}>;
|
|
112
|
-
hold: z.ZodLiteral<false>;
|
|
113
|
-
message: z.ZodOptional<z.ZodString>;
|
|
114
|
-
}, "strict", z.ZodTypeAny, {
|
|
115
|
-
hold: false;
|
|
116
|
-
operation: {
|
|
117
|
-
forward: string;
|
|
118
|
-
next_node_name: string;
|
|
119
|
-
};
|
|
120
|
-
message?: string | undefined;
|
|
121
|
-
}, {
|
|
122
|
-
hold: false;
|
|
123
|
-
operation: {
|
|
124
|
-
forward: string;
|
|
125
|
-
next_node_name: string;
|
|
126
|
-
};
|
|
127
|
-
message?: string | undefined;
|
|
128
|
-
}>]>;
|
|
129
43
|
export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
130
44
|
object: z.ZodEffects<z.ZodString, string, string>;
|
|
131
45
|
task: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -203,7 +117,7 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
203
117
|
check_all_founded?: boolean | undefined;
|
|
204
118
|
};
|
|
205
119
|
}>>;
|
|
206
|
-
operate: z.ZodOptional<z.
|
|
120
|
+
operate: z.ZodOptional<z.ZodObject<{
|
|
207
121
|
operation: z.ZodObject<{
|
|
208
122
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
209
123
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -214,53 +128,26 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
214
128
|
forward: string;
|
|
215
129
|
next_node_name: string;
|
|
216
130
|
}>;
|
|
217
|
-
hold: z.
|
|
131
|
+
hold: z.ZodOptional<z.ZodBoolean>;
|
|
218
132
|
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
219
133
|
message: z.ZodOptional<z.ZodString>;
|
|
220
134
|
}, "strict", z.ZodTypeAny, {
|
|
221
|
-
hold: true;
|
|
222
135
|
operation: {
|
|
223
136
|
forward: string;
|
|
224
137
|
next_node_name: string;
|
|
225
138
|
};
|
|
226
139
|
message?: string | undefined;
|
|
140
|
+
hold?: boolean | undefined;
|
|
227
141
|
adminUnhold?: boolean | undefined;
|
|
228
142
|
}, {
|
|
229
|
-
hold: true;
|
|
230
143
|
operation: {
|
|
231
144
|
forward: string;
|
|
232
145
|
next_node_name: string;
|
|
233
146
|
};
|
|
234
147
|
message?: string | undefined;
|
|
148
|
+
hold?: boolean | undefined;
|
|
235
149
|
adminUnhold?: boolean | undefined;
|
|
236
|
-
}
|
|
237
|
-
operation: z.ZodObject<{
|
|
238
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
239
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
240
|
-
}, "strict", z.ZodTypeAny, {
|
|
241
|
-
forward: string;
|
|
242
|
-
next_node_name: string;
|
|
243
|
-
}, {
|
|
244
|
-
forward: string;
|
|
245
|
-
next_node_name: string;
|
|
246
|
-
}>;
|
|
247
|
-
hold: z.ZodLiteral<false>;
|
|
248
|
-
message: z.ZodOptional<z.ZodString>;
|
|
249
|
-
}, "strict", z.ZodTypeAny, {
|
|
250
|
-
hold: false;
|
|
251
|
-
operation: {
|
|
252
|
-
forward: string;
|
|
253
|
-
next_node_name: string;
|
|
254
|
-
};
|
|
255
|
-
message?: string | undefined;
|
|
256
|
-
}, {
|
|
257
|
-
hold: false;
|
|
258
|
-
operation: {
|
|
259
|
-
forward: string;
|
|
260
|
-
next_node_name: string;
|
|
261
|
-
};
|
|
262
|
-
message?: string | undefined;
|
|
263
|
-
}>]>>;
|
|
150
|
+
}>>;
|
|
264
151
|
}, "strict", z.ZodTypeAny, {
|
|
265
152
|
object: string;
|
|
266
153
|
task?: string | undefined;
|
|
@@ -285,20 +172,13 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
285
172
|
};
|
|
286
173
|
} | undefined;
|
|
287
174
|
operate?: {
|
|
288
|
-
hold: true;
|
|
289
175
|
operation: {
|
|
290
176
|
forward: string;
|
|
291
177
|
next_node_name: string;
|
|
292
178
|
};
|
|
293
179
|
message?: string | undefined;
|
|
180
|
+
hold?: boolean | undefined;
|
|
294
181
|
adminUnhold?: boolean | undefined;
|
|
295
|
-
} | {
|
|
296
|
-
hold: false;
|
|
297
|
-
operation: {
|
|
298
|
-
forward: string;
|
|
299
|
-
next_node_name: string;
|
|
300
|
-
};
|
|
301
|
-
message?: string | undefined;
|
|
302
182
|
} | undefined;
|
|
303
183
|
}, {
|
|
304
184
|
object: string;
|
|
@@ -324,20 +204,13 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
|
|
|
324
204
|
};
|
|
325
205
|
} | undefined;
|
|
326
206
|
operate?: {
|
|
327
|
-
hold: true;
|
|
328
207
|
operation: {
|
|
329
208
|
forward: string;
|
|
330
209
|
next_node_name: string;
|
|
331
210
|
};
|
|
332
211
|
message?: string | undefined;
|
|
212
|
+
hold?: boolean | undefined;
|
|
333
213
|
adminUnhold?: boolean | undefined;
|
|
334
|
-
} | {
|
|
335
|
-
hold: false;
|
|
336
|
-
operation: {
|
|
337
|
-
forward: string;
|
|
338
|
-
next_node_name: string;
|
|
339
|
-
};
|
|
340
|
-
message?: string | undefined;
|
|
341
214
|
} | undefined;
|
|
342
215
|
}>;
|
|
343
216
|
export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
@@ -418,7 +291,7 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
418
291
|
check_all_founded?: boolean | undefined;
|
|
419
292
|
};
|
|
420
293
|
}>>;
|
|
421
|
-
operate: z.ZodOptional<z.
|
|
294
|
+
operate: z.ZodOptional<z.ZodObject<{
|
|
422
295
|
operation: z.ZodObject<{
|
|
423
296
|
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
424
297
|
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -429,53 +302,26 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
429
302
|
forward: string;
|
|
430
303
|
next_node_name: string;
|
|
431
304
|
}>;
|
|
432
|
-
hold: z.
|
|
305
|
+
hold: z.ZodOptional<z.ZodBoolean>;
|
|
433
306
|
adminUnhold: z.ZodOptional<z.ZodBoolean>;
|
|
434
307
|
message: z.ZodOptional<z.ZodString>;
|
|
435
308
|
}, "strict", z.ZodTypeAny, {
|
|
436
|
-
hold: true;
|
|
437
309
|
operation: {
|
|
438
310
|
forward: string;
|
|
439
311
|
next_node_name: string;
|
|
440
312
|
};
|
|
441
313
|
message?: string | undefined;
|
|
314
|
+
hold?: boolean | undefined;
|
|
442
315
|
adminUnhold?: boolean | undefined;
|
|
443
316
|
}, {
|
|
444
|
-
hold: true;
|
|
445
317
|
operation: {
|
|
446
318
|
forward: string;
|
|
447
319
|
next_node_name: string;
|
|
448
320
|
};
|
|
449
321
|
message?: string | undefined;
|
|
322
|
+
hold?: boolean | undefined;
|
|
450
323
|
adminUnhold?: boolean | undefined;
|
|
451
|
-
}
|
|
452
|
-
operation: z.ZodObject<{
|
|
453
|
-
next_node_name: z.ZodEffects<z.ZodString, string, string>;
|
|
454
|
-
forward: z.ZodEffects<z.ZodString, string, string>;
|
|
455
|
-
}, "strict", z.ZodTypeAny, {
|
|
456
|
-
forward: string;
|
|
457
|
-
next_node_name: string;
|
|
458
|
-
}, {
|
|
459
|
-
forward: string;
|
|
460
|
-
next_node_name: string;
|
|
461
|
-
}>;
|
|
462
|
-
hold: z.ZodLiteral<false>;
|
|
463
|
-
message: z.ZodOptional<z.ZodString>;
|
|
464
|
-
}, "strict", z.ZodTypeAny, {
|
|
465
|
-
hold: false;
|
|
466
|
-
operation: {
|
|
467
|
-
forward: string;
|
|
468
|
-
next_node_name: string;
|
|
469
|
-
};
|
|
470
|
-
message?: string | undefined;
|
|
471
|
-
}, {
|
|
472
|
-
hold: false;
|
|
473
|
-
operation: {
|
|
474
|
-
forward: string;
|
|
475
|
-
next_node_name: string;
|
|
476
|
-
};
|
|
477
|
-
message?: string | undefined;
|
|
478
|
-
}>]>>;
|
|
324
|
+
}>>;
|
|
479
325
|
}, "strict", z.ZodTypeAny, {
|
|
480
326
|
object: string;
|
|
481
327
|
task?: string | undefined;
|
|
@@ -500,20 +346,13 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
500
346
|
};
|
|
501
347
|
} | undefined;
|
|
502
348
|
operate?: {
|
|
503
|
-
hold: true;
|
|
504
349
|
operation: {
|
|
505
350
|
forward: string;
|
|
506
351
|
next_node_name: string;
|
|
507
352
|
};
|
|
508
353
|
message?: string | undefined;
|
|
354
|
+
hold?: boolean | undefined;
|
|
509
355
|
adminUnhold?: boolean | undefined;
|
|
510
|
-
} | {
|
|
511
|
-
hold: false;
|
|
512
|
-
operation: {
|
|
513
|
-
forward: string;
|
|
514
|
-
next_node_name: string;
|
|
515
|
-
};
|
|
516
|
-
message?: string | undefined;
|
|
517
356
|
} | undefined;
|
|
518
357
|
}, {
|
|
519
358
|
object: string;
|
|
@@ -539,20 +378,13 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
539
378
|
};
|
|
540
379
|
} | undefined;
|
|
541
380
|
operate?: {
|
|
542
|
-
hold: true;
|
|
543
381
|
operation: {
|
|
544
382
|
forward: string;
|
|
545
383
|
next_node_name: string;
|
|
546
384
|
};
|
|
547
385
|
message?: string | undefined;
|
|
386
|
+
hold?: boolean | undefined;
|
|
548
387
|
adminUnhold?: boolean | undefined;
|
|
549
|
-
} | {
|
|
550
|
-
hold: false;
|
|
551
|
-
operation: {
|
|
552
|
-
forward: string;
|
|
553
|
-
next_node_name: string;
|
|
554
|
-
};
|
|
555
|
-
message?: string | undefined;
|
|
556
388
|
} | undefined;
|
|
557
389
|
}>;
|
|
558
390
|
env: z.ZodOptional<z.ZodObject<{
|
|
@@ -779,20 +611,13 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
779
611
|
};
|
|
780
612
|
} | undefined;
|
|
781
613
|
operate?: {
|
|
782
|
-
hold: true;
|
|
783
614
|
operation: {
|
|
784
615
|
forward: string;
|
|
785
616
|
next_node_name: string;
|
|
786
617
|
};
|
|
787
618
|
message?: string | undefined;
|
|
619
|
+
hold?: boolean | undefined;
|
|
788
620
|
adminUnhold?: boolean | undefined;
|
|
789
|
-
} | {
|
|
790
|
-
hold: false;
|
|
791
|
-
operation: {
|
|
792
|
-
forward: string;
|
|
793
|
-
next_node_name: string;
|
|
794
|
-
};
|
|
795
|
-
message?: string | undefined;
|
|
796
621
|
} | undefined;
|
|
797
622
|
};
|
|
798
623
|
submission?: {
|
|
@@ -854,20 +679,13 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
|
|
|
854
679
|
};
|
|
855
680
|
} | undefined;
|
|
856
681
|
operate?: {
|
|
857
|
-
hold: true;
|
|
858
682
|
operation: {
|
|
859
683
|
forward: string;
|
|
860
684
|
next_node_name: string;
|
|
861
685
|
};
|
|
862
686
|
message?: string | undefined;
|
|
687
|
+
hold?: boolean | undefined;
|
|
863
688
|
adminUnhold?: boolean | undefined;
|
|
864
|
-
} | {
|
|
865
|
-
hold: false;
|
|
866
|
-
operation: {
|
|
867
|
-
forward: string;
|
|
868
|
-
next_node_name: string;
|
|
869
|
-
};
|
|
870
|
-
message?: string | undefined;
|
|
871
689
|
} | undefined;
|
|
872
690
|
};
|
|
873
691
|
submission?: {
|
|
@@ -5,24 +5,15 @@ import { NameOrAddressSchema, NameSchema } from "../common/index.js";
|
|
|
5
5
|
// ProgressNext 类型定义
|
|
6
6
|
export const ProgressNextSchema = z.object({
|
|
7
7
|
next_node_name: NameSchema.describe("Next node name."),
|
|
8
|
-
forward: NameSchema.describe("Next
|
|
8
|
+
forward: NameSchema.describe("Next forward name."),
|
|
9
9
|
}).strict().describe("Specify a specific operation between current node and next node.");
|
|
10
10
|
// Operate 操作类型
|
|
11
|
-
export const
|
|
11
|
+
export const OperateSchema = z.object({
|
|
12
12
|
operation: ProgressNextSchema,
|
|
13
|
-
hold: z.
|
|
14
|
-
adminUnhold: z.boolean().optional().describe("Whether to allow admin to force unlock."),
|
|
13
|
+
hold: z.boolean().optional().describe("Whether to lock operation permission. When true, locks the permission; when false or omitted, submits operation result directly."),
|
|
14
|
+
adminUnhold: z.boolean().optional().describe("Whether to allow admin to force unlock. Only applicable when hold is true."),
|
|
15
15
|
message: z.string().optional().describe("Operation result message."),
|
|
16
|
-
}).strict().describe("Advance Progress object: lock operation permission.");
|
|
17
|
-
export const OperateWithoutHoldSchema = z.object({
|
|
18
|
-
operation: ProgressNextSchema,
|
|
19
|
-
hold: z.literal(false),
|
|
20
|
-
message: z.string().optional().describe("Operation result message."),
|
|
21
|
-
}).strict().describe("Advance Progress object: submit operation result.");
|
|
22
|
-
export const OperateSchema = z.discriminatedUnion("hold", [
|
|
23
|
-
OperateWithHoldSchema,
|
|
24
|
-
OperateWithoutHoldSchema,
|
|
25
|
-
]);
|
|
16
|
+
}).strict().describe("Advance Progress object: lock operation permission (hold=true) or submit operation result (hold=false or omitted).");
|
|
26
17
|
export const CallProgress_DataSchema = z.object({
|
|
27
18
|
object: NameOrAddressSchema.describe("Progress object ID or name"),
|
|
28
19
|
task: NameOrAddressSchema.optional().describe("Task ID. Cannot be changed after setting."),
|