@bountyagents/bountyagents-task 2026.3.95 → 2026.3.97

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.
Files changed (3) hide show
  1. package/dist/index.js +21 -36
  2. package/index.ts +33 -33
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30026,27 +30026,6 @@ var require_eventsource = __commonJS((exports, module) => {
30026
30026
  };
30027
30027
  });
30028
30028
 
30029
- // src/helper.ts
30030
- import * as fs from "fs";
30031
- import * as path from "path";
30032
- import * as os from "os";
30033
- function json(data) {
30034
- return {
30035
- content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
30036
- details: data
30037
- };
30038
- }
30039
- var KEY_PATH = path.join(os.homedir(), ".bountyagents_key");
30040
- function getPrivateKey() {
30041
- if (fs.existsSync(KEY_PATH)) {
30042
- const key = fs.readFileSync(KEY_PATH, "utf-8").trim();
30043
- if (key.startsWith("0x")) {
30044
- return key;
30045
- }
30046
- }
30047
- return "0x289f92dd30c36ff24b75b48623c70dea2b428dabac7a52c5ca810bcda64d861b";
30048
- }
30049
-
30050
30029
  // ../node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
30051
30030
  var exports_value = {};
30052
30031
  __export(exports_value, {
@@ -41397,6 +41376,27 @@ var buildSettleDataHash = (contractAddress, key, owner, token, worker, amount) =
41397
41376
  ]));
41398
41377
  };
41399
41378
 
41379
+ // src/helper.ts
41380
+ import * as fs from "fs";
41381
+ import * as path from "path";
41382
+ import * as os from "os";
41383
+ function json(data) {
41384
+ return {
41385
+ content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
41386
+ details: data
41387
+ };
41388
+ }
41389
+ var KEY_PATH = path.join(os.homedir(), ".bountyagents_key");
41390
+ function getPrivateKey() {
41391
+ if (fs.existsSync(KEY_PATH)) {
41392
+ const key = fs.readFileSync(KEY_PATH, "utf-8").trim();
41393
+ if (key.startsWith("0x")) {
41394
+ return key;
41395
+ }
41396
+ }
41397
+ return "0x289f92dd30c36ff24b75b48623c70dea2b428dabac7a52c5ca810bcda64d861b";
41398
+ }
41399
+
41400
41400
  // node_modules/undici/index.js
41401
41401
  var __filename = "/Users/amigo/Develop/mizu/bountyagents/plugin/node_modules/undici/index.js";
41402
41402
  var Client = require_client();
@@ -55817,21 +55817,6 @@ function registerWorkerTools(api3) {
55817
55817
 
55818
55818
  // index.ts
55819
55819
  function register(api3) {
55820
- api3.registerCommand({
55821
- name: "upclaw",
55822
- description: "UpClaw Bounty Agents Task commands",
55823
- acceptsArgs: true,
55824
- handler: async (ctx) => {
55825
- const args = ctx.args?.trim() ?? "";
55826
- const tokens = args.split(/\s+/).filter(Boolean);
55827
- const action = (tokens[0] ?? "status").toLowerCase();
55828
- if (action === "init") {}
55829
- return json({
55830
- text: ["UpClaw Bounty Agents Task commands:", "", "/upclaw-task init"].join(`
55831
- `)
55832
- });
55833
- }
55834
- });
55835
55820
  registerPublisherTools(api3);
55836
55821
  registerWorkerTools(api3);
55837
55822
  }
package/index.ts CHANGED
@@ -5,41 +5,41 @@ import { generatePrivateKey } from "viem/accounts";
5
5
  import * as fs from "fs";
6
6
 
7
7
  export default function register(api: any) {
8
- api.registerCommand({
9
- name: "upclaw",
10
- description: "UpClaw Bounty Agents Task commands",
11
- acceptsArgs: true,
12
- handler: async (ctx: any) => {
13
- const args = ctx.args?.trim() ?? "";
14
- const tokens = args.split(/\s+/).filter(Boolean);
15
- const action = (tokens[0] ?? "status").toLowerCase();
8
+ // api.registerCommand({
9
+ // name: "upclaw",
10
+ // description: "UpClaw Bounty Agents Task commands",
11
+ // acceptsArgs: true,
12
+ // handler: async (ctx: any) => {
13
+ // const args = ctx.args?.trim() ?? "";
14
+ // const tokens = args.split(/\s+/).filter(Boolean);
15
+ // const action = (tokens[0] ?? "status").toLowerCase();
16
16
 
17
- if (action === "init") {
18
- // try {
19
- // if (!fs.existsSync(KEY_PATH)) {
20
- // const pk = generatePrivateKey();
21
- // fs.writeFileSync(KEY_PATH, pk, "utf-8");
22
- // return json({
23
- // text: `Initialized new EVM private key and saved to ${KEY_PATH}`,
24
- // });
25
- // } else {
26
- // return json({
27
- // text: `EVM private key already exists at ${KEY_PATH}`,
28
- // });
29
- // }
30
- // } catch (error: any) {
31
- // return json({
32
- // text: "Failed to initialize key:",
33
- // error: error.message,
34
- // });
35
- // }
36
- }
17
+ // if (action === "init") {
18
+ // // try {
19
+ // // if (!fs.existsSync(KEY_PATH)) {
20
+ // // const pk = generatePrivateKey();
21
+ // // fs.writeFileSync(KEY_PATH, pk, "utf-8");
22
+ // // return json({
23
+ // // text: `Initialized new EVM private key and saved to ${KEY_PATH}`,
24
+ // // });
25
+ // // } else {
26
+ // // return json({
27
+ // // text: `EVM private key already exists at ${KEY_PATH}`,
28
+ // // });
29
+ // // }
30
+ // // } catch (error: any) {
31
+ // // return json({
32
+ // // text: "Failed to initialize key:",
33
+ // // error: error.message,
34
+ // // });
35
+ // // }
36
+ // }
37
37
 
38
- return json({
39
- text: ["UpClaw Bounty Agents Task commands:", "", "/upclaw-task init"].join("\n"),
40
- });
41
- },
42
- });
38
+ // return json({
39
+ // text: ["UpClaw Bounty Agents Task commands:", "", "/upclaw-task init"].join("\n"),
40
+ // });
41
+ // },
42
+ // });
43
43
 
44
44
  registerPublisherTools(api);
45
45
  registerWorkerTools(api);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bountyagents/bountyagents-task",
3
- "version": "2026.3.95",
3
+ "version": "2026.3.97",
4
4
  "description": "BountyAgents Task Plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",