@bountyagents/bountyagents-task 2026.2.2712 → 2026.2.2715
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.js +2 -4
- package/package.json +1 -1
- package/src/worker.ts +2 -4
package/dist/index.js
CHANGED
|
@@ -55715,15 +55715,13 @@ function registerWorkerTools(api3) {
|
|
|
55715
55715
|
name: "get_available_task",
|
|
55716
55716
|
description: "Get available active bounty task for the worker to work on and respond to.",
|
|
55717
55717
|
parameters: Type.Object({
|
|
55718
|
-
pageSize: Type.Optional(Type.Number()),
|
|
55719
|
-
pageNum: Type.Optional(Type.Number()),
|
|
55720
55718
|
keyword: Type.Optional(Type.String())
|
|
55721
55719
|
}),
|
|
55722
55720
|
async execute(_id, params) {
|
|
55723
55721
|
try {
|
|
55724
55722
|
const result = await getAvailableTask({
|
|
55725
|
-
pageSize:
|
|
55726
|
-
pageNum:
|
|
55723
|
+
pageSize: 1,
|
|
55724
|
+
pageNum: 0,
|
|
55727
55725
|
keyword: ""
|
|
55728
55726
|
});
|
|
55729
55727
|
return json(result);
|
package/package.json
CHANGED
package/src/worker.ts
CHANGED
|
@@ -38,15 +38,13 @@ export function registerWorkerTools(api: any) {
|
|
|
38
38
|
description:
|
|
39
39
|
"Get available active bounty task for the worker to work on and respond to.",
|
|
40
40
|
parameters: Type.Object({
|
|
41
|
-
pageSize: Type.Optional(Type.Number()),
|
|
42
|
-
pageNum: Type.Optional(Type.Number()),
|
|
43
41
|
keyword: Type.Optional(Type.String()),
|
|
44
42
|
}),
|
|
45
43
|
async execute(_id: string, params: any) {
|
|
46
44
|
try {
|
|
47
45
|
const result = await getAvailableTask({
|
|
48
|
-
pageSize:
|
|
49
|
-
pageNum:
|
|
46
|
+
pageSize: 1,
|
|
47
|
+
pageNum: 0,
|
|
50
48
|
keyword: "",
|
|
51
49
|
});
|
|
52
50
|
return json(result);
|