@humanlayer/cli 0.2.0-beta.20260324044951
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/humanlayer +47 -0
- package/package.json +37 -0
package/bin/humanlayer
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { createRequire } from "module";
|
|
4
|
+
import { platform, arch } from "os";
|
|
5
|
+
import { execFileSync } from "child_process";
|
|
6
|
+
|
|
7
|
+
const require = createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
const PLATFORMS = {
|
|
10
|
+
"darwin-arm64": "@humanlayer/cli-darwin-arm64",
|
|
11
|
+
"darwin-x64": "@humanlayer/cli-darwin-x64",
|
|
12
|
+
"linux-arm64": "@humanlayer/cli-linux-arm64",
|
|
13
|
+
"linux-x64": "@humanlayer/cli-linux-x64",
|
|
14
|
+
"win32-x64": "@humanlayer/cli-win32-x64",
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const key = `${platform()}-${arch()}`;
|
|
18
|
+
const pkg = PLATFORMS[key];
|
|
19
|
+
|
|
20
|
+
if (!pkg) {
|
|
21
|
+
console.error(
|
|
22
|
+
`Unsupported platform: ${key}\nSupported: ${Object.keys(PLATFORMS).join(", ")}`
|
|
23
|
+
);
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const ext = platform() === "win32" ? ".exe" : "";
|
|
28
|
+
let binPath;
|
|
29
|
+
try {
|
|
30
|
+
binPath = require.resolve(`${pkg}/bin/humanlayer${ext}`);
|
|
31
|
+
} catch {
|
|
32
|
+
console.error(
|
|
33
|
+
`Could not find binary package ${pkg}.\n` +
|
|
34
|
+
`This usually means npm did not install the platform-specific package.\n` +
|
|
35
|
+
`Try: npm install @humanlayer/cli --force`
|
|
36
|
+
);
|
|
37
|
+
process.exit(1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
try {
|
|
41
|
+
execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
42
|
+
} catch (e) {
|
|
43
|
+
if (e && typeof e === "object" && "status" in e) {
|
|
44
|
+
process.exit(e.status);
|
|
45
|
+
}
|
|
46
|
+
throw e;
|
|
47
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@humanlayer/cli",
|
|
3
|
+
"version": "0.2.0-beta.20260324044951",
|
|
4
|
+
"description": "HumanLayer CLI — daemon management and authentication",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"humanlayer": "bin/humanlayer"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin/humanlayer",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "bun run ./build.ts",
|
|
15
|
+
"build:all": "bun run ./build.ts --all",
|
|
16
|
+
"start": "NODE_USE_SYSTEM_CA=1 bun run src/index.ts",
|
|
17
|
+
"typecheck": "tsc --noEmit"
|
|
18
|
+
},
|
|
19
|
+
"optionalDependencies": {
|
|
20
|
+
"@humanlayer/cli-darwin-arm64": "0.2.0-beta.20260324044951",
|
|
21
|
+
"@humanlayer/cli-darwin-x64": "0.2.0-beta.20260324044951",
|
|
22
|
+
"@humanlayer/cli-linux-arm64": "0.2.0-beta.20260324044951",
|
|
23
|
+
"@humanlayer/cli-linux-x64": "0.2.0-beta.20260324044951",
|
|
24
|
+
"@humanlayer/cli-win32-x64": "0.2.0-beta.20260324044951"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"commander": "^14.0.0",
|
|
28
|
+
"@codelayer/riptide-api-contract": "workspace:*",
|
|
29
|
+
"@codelayer/riptide-daemon": "workspace:*",
|
|
30
|
+
"@orpc/client": "catalog:",
|
|
31
|
+
"@orpc/contract": "catalog:",
|
|
32
|
+
"@orpc/openapi-client": "catalog:"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@types/bun": "^1.3.4"
|
|
36
|
+
}
|
|
37
|
+
}
|