@bountyagents/bountyagents-task 2026.3.115 → 2026.3.117

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 +18 -33
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -55900,66 +55900,51 @@ function register(api3) {
55900
55900
  description: "Custom commands",
55901
55901
  acceptsArgs: true,
55902
55902
  handler: async (ctx) => {
55903
- const args = ctx.args?.trim() ?? "";
55904
- const tokens = args.split(/\s+/).filter(Boolean);
55905
- const action = (tokens[0] ?? "status").toLowerCase();
55906
- if (action === "status") {
55907
- return json({
55908
- text: "Task status"
55909
- });
55910
- }
55903
+ return json({
55904
+ text: "Task status"
55905
+ });
55911
55906
  }
55912
55907
  });
55913
55908
  api3.registerCli(({ program }) => {
55914
55909
  program.command("upclaw").description("UpClaw Bounty Agents CLI").argument("[action]", "action: status, init, reset, etc.", "status").option("-v, --verbose", "verbose output").action((action, options) => {
55915
- console.log("Action:", action);
55916
55910
  if (options.verbose)
55917
55911
  console.log("Verbose mode");
55918
55912
  if (action === "status") {
55919
55913
  const address = getWalletAddress();
55920
55914
  if (!address) {
55921
- return json({
55922
- Status: "Wallet not initialized, run `openclaw upclaw init` to initialize"
55923
- });
55915
+ console.log("Status: Wallet not initialized, run `openclaw upclaw init` to initialize");
55916
+ return;
55924
55917
  }
55925
- return json({
55926
- Status: "Wallet initialized",
55927
- "Wallet Address": address
55928
- });
55918
+ console.log("Status: Wallet initialized");
55919
+ console.log("Wallet Address:", address);
55920
+ return;
55929
55921
  }
55930
55922
  if (action === "init") {
55931
55923
  try {
55932
55924
  if (!fs2.existsSync(KEY_PATH)) {
55933
55925
  const pk = generatePrivateKey();
55934
55926
  fs2.writeFileSync(KEY_PATH, pk, "utf-8");
55935
- return json({
55936
- text: `Initialized new EVM private key and saved to ${KEY_PATH}`
55937
- });
55927
+ console.log(`Initialized new EVM private key and saved to ${KEY_PATH}`);
55928
+ return;
55938
55929
  } else {
55939
- return json({
55940
- text: `EVM private key already exists at ${KEY_PATH}, if you want to use a different key, run 'openclaw upclaw reset' first to initialize a new key`
55941
- });
55930
+ console.log(`EVM private key already exists at ${KEY_PATH}, if you want to use a different key, run 'openclaw upclaw reset' first to initialize a new key`);
55931
+ return;
55942
55932
  }
55943
55933
  } catch (error48) {
55944
- return json({
55945
- text: "Failed to initialize key:",
55946
- error: error48.message
55947
- });
55934
+ console.error("Failed to initialize key:", error48.message);
55935
+ return;
55948
55936
  }
55949
55937
  }
55950
55938
  if (action === "reset") {
55951
55939
  try {
55952
55940
  if (fs2.existsSync(KEY_PATH)) {
55953
55941
  fs2.unlinkSync(KEY_PATH);
55954
- return json({
55955
- text: `Reset EVM private key and deleted ${KEY_PATH}`
55956
- });
55942
+ console.log(`Reset EVM private key and deleted ${KEY_PATH}`);
55943
+ return;
55957
55944
  }
55958
55945
  } catch (error48) {
55959
- return json({
55960
- text: "Failed to reset key:",
55961
- error: error48.message
55962
- });
55946
+ console.error("Failed to reset key:", error48.message);
55947
+ return;
55963
55948
  }
55964
55949
  }
55965
55950
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bountyagents/bountyagents-task",
3
- "version": "2026.3.115",
3
+ "version": "2026.3.117",
4
4
  "description": "BountyAgents Task Plugin for OpenClaw",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",