@devboy-tools/cli 0.15.1 → 0.16.0

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.
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- "use strict";
3
+ 'use strict';
4
4
 
5
- const { spawn } = require("child_process");
6
- const { getBinaryPath } = require("../index");
5
+ const { spawn } = require('child_process');
6
+ const { getBinaryPath } = require('../index');
7
7
 
8
8
  let binaryPath;
9
9
  try {
@@ -14,11 +14,11 @@ try {
14
14
  }
15
15
 
16
16
  const child = spawn(binaryPath, process.argv.slice(2), {
17
- stdio: "inherit",
17
+ stdio: 'inherit',
18
18
  });
19
19
 
20
- child.on("error", (err) => {
21
- if (err.code === "ENOENT") {
20
+ child.on('error', (err) => {
21
+ if (err.code === 'ENOENT') {
22
22
  console.error(
23
23
  `devboy binary not found at: ${binaryPath}\n` +
24
24
  "Run 'npm rebuild @devboy-tools/cli' or set DEVBOY_BINARY_PATH.",
@@ -29,7 +29,7 @@ child.on("error", (err) => {
29
29
  process.exit(1);
30
30
  });
31
31
 
32
- child.on("exit", (code, signal) => {
32
+ child.on('exit', (code, signal) => {
33
33
  if (signal) {
34
34
  process.kill(process.pid, signal);
35
35
  } else {
@@ -38,7 +38,7 @@ child.on("exit", (code, signal) => {
38
38
  });
39
39
 
40
40
  // Forward signals to child process
41
- for (const sig of ["SIGINT", "SIGTERM"]) {
41
+ for (const sig of ['SIGINT', 'SIGTERM']) {
42
42
  process.on(sig, () => {
43
43
  if (!child.killed) {
44
44
  child.kill(sig);
package/index.js CHANGED
@@ -1,14 +1,14 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- const fs = require("fs");
4
- const path = require("path");
3
+ const fs = require('fs');
4
+ const path = require('path');
5
5
 
6
6
  const pkg = JSON.parse(
7
- fs.readFileSync(path.join(__dirname, "package.json"), "utf8"),
7
+ fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8'),
8
8
  );
9
9
 
10
10
  /** Package name */
11
- exports.name = "devboy";
11
+ exports.name = 'devboy';
12
12
 
13
13
  /** Package version */
14
14
  exports.version = pkg.version;
@@ -37,12 +37,12 @@ exports.getBinaryPath = function getBinaryPath() {
37
37
 
38
38
  // 2. Platform-specific package
39
39
  const platformPkg = `@devboy-tools/${process.platform}-${process.arch}`;
40
- const ext = process.platform === "win32" ? ".exe" : "";
40
+ const ext = process.platform === 'win32' ? '.exe' : '';
41
41
  const binaryName = `devboy${ext}`;
42
42
 
43
43
  try {
44
44
  const pkgJsonPath = require.resolve(`${platformPkg}/package.json`);
45
- const binaryPath = path.join(path.dirname(pkgJsonPath), "bin", binaryName);
45
+ const binaryPath = path.join(path.dirname(pkgJsonPath), 'bin', binaryName);
46
46
  if (fs.existsSync(binaryPath)) {
47
47
  return binaryPath;
48
48
  }
@@ -52,8 +52,8 @@ exports.getBinaryPath = function getBinaryPath() {
52
52
 
53
53
  throw new Error(
54
54
  `devboy binary not found. No package ${platformPkg} installed.\n` +
55
- "Your platform might not be supported. " +
56
- "Set DEVBOY_BINARY_PATH to point to a devboy binary, or install from source:\n" +
57
- " cargo install --git https://github.com/meteora-pro/devboy-tools.git",
55
+ 'Your platform might not be supported. ' +
56
+ 'Set DEVBOY_BINARY_PATH to point to a devboy binary, or install from source:\n' +
57
+ ' cargo install --git https://github.com/meteora-pro/devboy-tools.git',
58
58
  );
59
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devboy-tools/cli",
3
- "version": "0.15.1",
3
+ "version": "0.16.0",
4
4
  "description": "Fast and efficient MCP server for coding agents — npm wrapper for Rust binary",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -37,10 +37,10 @@
37
37
  "node": ">=18"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@devboy-tools/darwin-arm64": "0.15.1",
41
- "@devboy-tools/darwin-x64": "0.15.1",
42
- "@devboy-tools/linux-arm64": "0.15.1",
43
- "@devboy-tools/linux-x64": "0.15.1",
44
- "@devboy-tools/win32-x64": "0.15.1"
40
+ "@devboy-tools/darwin-arm64": "0.16.0",
41
+ "@devboy-tools/darwin-x64": "0.16.0",
42
+ "@devboy-tools/linux-arm64": "0.16.0",
43
+ "@devboy-tools/linux-x64": "0.16.0",
44
+ "@devboy-tools/win32-x64": "0.16.0"
45
45
  }
46
46
  }