@devboy-tools/agent-usage 0.1.1 → 0.3.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.
- package/bin/agent-usage.js +2 -2
- package/index.js +4 -4
- package/package.json +8 -8
package/bin/agent-usage.js
CHANGED
|
@@ -20,11 +20,11 @@ const child = spawn(binaryPath, process.argv.slice(2), {
|
|
|
20
20
|
child.on("error", (err) => {
|
|
21
21
|
if (err.code === "ENOENT") {
|
|
22
22
|
console.error(
|
|
23
|
-
`devboy-agent-usage binary not found at: ${binaryPath}\n` +
|
|
23
|
+
`devboy-tools-agent-usage binary not found at: ${binaryPath}\n` +
|
|
24
24
|
"Run 'npm rebuild @devboy-tools/agent-usage' or set DEVBOY_AGENT_USAGE_BINARY_PATH.",
|
|
25
25
|
);
|
|
26
26
|
} else {
|
|
27
|
-
console.error(`Failed to start devboy-agent-usage: ${err.message}`);
|
|
27
|
+
console.error(`Failed to start devboy-tools-agent-usage: ${err.message}`);
|
|
28
28
|
}
|
|
29
29
|
process.exit(1);
|
|
30
30
|
});
|
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.name = pkg.name;
|
|
|
9
9
|
exports.version = pkg.version;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* Resolves the path to the devboy-agent-usage binary.
|
|
12
|
+
* Resolves the path to the devboy-tools-agent-usage binary.
|
|
13
13
|
*
|
|
14
14
|
* Resolution order:
|
|
15
15
|
* 1. DEVBOY_AGENT_USAGE_BINARY_PATH environment variable
|
|
@@ -33,7 +33,7 @@ exports.getBinaryPath = function getBinaryPath() {
|
|
|
33
33
|
// 2. Resolve from platform-specific package
|
|
34
34
|
const platformPkg = `@devboy-tools/agent-usage-${process.platform}-${process.arch}`;
|
|
35
35
|
const ext = process.platform === "win32" ? ".exe" : "";
|
|
36
|
-
const binaryName = `devboy-agent-usage${ext}`;
|
|
36
|
+
const binaryName = `devboy-tools-agent-usage${ext}`;
|
|
37
37
|
|
|
38
38
|
try {
|
|
39
39
|
const pkgJsonPath = require.resolve(`${platformPkg}/package.json`);
|
|
@@ -46,9 +46,9 @@ exports.getBinaryPath = function getBinaryPath() {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
throw new Error(
|
|
49
|
-
`devboy-agent-usage binary not found. No package ${platformPkg} installed.\n` +
|
|
49
|
+
`devboy-tools-agent-usage binary not found. No package ${platformPkg} installed.\n` +
|
|
50
50
|
"Your platform might not be supported. " +
|
|
51
51
|
"Set DEVBOY_AGENT_USAGE_BINARY_PATH to point to a binary, or install from source:\n" +
|
|
52
|
-
" cargo install --git https://github.com/meteora-pro/devboy-agent-usage.git",
|
|
52
|
+
" cargo install --git https://github.com/meteora-pro/devboy-tools-agent-usage.git",
|
|
53
53
|
);
|
|
54
54
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devboy-tools/agent-usage",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "CLI tool for analyzing AI agent usage (Claude Code) — npm wrapper for Rust binary",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/meteora-pro/devboy-agent-usage.git"
|
|
8
|
+
"url": "https://github.com/meteora-pro/devboy-tools-agent-usage.git"
|
|
9
9
|
},
|
|
10
10
|
"bin": {
|
|
11
|
-
"devboy-agent-usage": "bin/agent-usage.js"
|
|
11
|
+
"devboy-tools-agent-usage": "bin/agent-usage.js"
|
|
12
12
|
},
|
|
13
13
|
"main": "index.js",
|
|
14
14
|
"types": "index.d.ts",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@devboy-tools/agent-usage-darwin-arm64": "0.
|
|
25
|
-
"@devboy-tools/agent-usage-darwin-x64": "0.
|
|
26
|
-
"@devboy-tools/agent-usage-linux-arm64": "0.
|
|
27
|
-
"@devboy-tools/agent-usage-linux-x64": "0.
|
|
28
|
-
"@devboy-tools/agent-usage-win32-x64": "0.
|
|
24
|
+
"@devboy-tools/agent-usage-darwin-arm64": "0.3.0",
|
|
25
|
+
"@devboy-tools/agent-usage-darwin-x64": "0.3.0",
|
|
26
|
+
"@devboy-tools/agent-usage-linux-arm64": "0.3.0",
|
|
27
|
+
"@devboy-tools/agent-usage-linux-x64": "0.3.0",
|
|
28
|
+
"@devboy-tools/agent-usage-win32-x64": "0.3.0"
|
|
29
29
|
}
|
|
30
30
|
}
|