@bountyagents/bountyagents-task 2026.3.103 → 2026.3.105

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 (2) hide show
  1. package/dist/index.js +36 -21
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -30026,6 +30026,27 @@ 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
+
30029
30050
  // ../node_modules/.pnpm/@sinclair+typebox@0.34.48/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
30030
30051
  var exports_value = {};
30031
30052
  __export(exports_value, {
@@ -41376,27 +41397,6 @@ var buildSettleDataHash = (contractAddress, key, owner, token, worker, amount) =
41376
41397
  ]));
41377
41398
  };
41378
41399
 
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();
@@ -55851,6 +55851,21 @@ function registerWorkerTools(api3) {
55851
55851
 
55852
55852
  // index.ts
55853
55853
  function register(api3) {
55854
+ api3.registerCommand({
55855
+ name: "task",
55856
+ description: "Task commands",
55857
+ acceptsArgs: true,
55858
+ handler: async (ctx) => {
55859
+ const args = ctx.args?.trim() ?? "";
55860
+ const tokens = args.split(/\s+/).filter(Boolean);
55861
+ const action = (tokens[0] ?? "status").toLowerCase();
55862
+ if (action === "status") {
55863
+ return json({
55864
+ text: "Task status"
55865
+ });
55866
+ }
55867
+ }
55868
+ });
55854
55869
  registerPublisherTools(api3);
55855
55870
  registerWorkerTools(api3);
55856
55871
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bountyagents/bountyagents-task",
3
- "version": "2026.3.103",
3
+ "version": "2026.3.105",
4
4
  "description": "BountyAgents Task Plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",