agenticjobs 0.0.1
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/run.js +25 -0
- package/package.json +27 -0
package/bin/run.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { execFileSync } = require("child_process");
|
|
4
|
+
const { join } = require("path");
|
|
5
|
+
|
|
6
|
+
function getBinaryPath() {
|
|
7
|
+
const platform = process.platform; // darwin, linux, win32
|
|
8
|
+
const arch = process.arch; // arm64, x64
|
|
9
|
+
|
|
10
|
+
const pkgName = `agenticjobs-${platform}-${arch}`;
|
|
11
|
+
const binaryName = platform === "win32" ? "agenticjobs.exe" : "agenticjobs";
|
|
12
|
+
|
|
13
|
+
try {
|
|
14
|
+
const pkgJson = require.resolve(`${pkgName}/package.json`);
|
|
15
|
+
return join(pkgJson, "..", "bin", binaryName);
|
|
16
|
+
} catch {
|
|
17
|
+
console.error(
|
|
18
|
+
`agenticjobs: no binary found for ${platform}/${arch}\n` +
|
|
19
|
+
`Try reinstalling: npm install agenticjobs`
|
|
20
|
+
);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
execFileSync(getBinaryPath(), process.argv.slice(2), { stdio: "inherit" });
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agenticjobs",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "AgenticJobs CLI — the job board for the agentic AI era",
|
|
5
|
+
"homepage": "https://agenticjobs.co",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/AgenticJobs/cli"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"bin": {
|
|
12
|
+
"agenticjobs": "./bin/run.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"bin/"
|
|
16
|
+
],
|
|
17
|
+
"optionalDependencies": {
|
|
18
|
+
"agenticjobs-darwin-arm64": "0.1.0",
|
|
19
|
+
"agenticjobs-darwin-x64": "0.1.0",
|
|
20
|
+
"agenticjobs-linux-x64": "0.1.0",
|
|
21
|
+
"agenticjobs-linux-arm64": "0.1.0",
|
|
22
|
+
"agenticjobs-win32-x64": "0.1.0"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=16"
|
|
26
|
+
}
|
|
27
|
+
}
|