@acahti/phaevo 0.0.0-stage → 0.8.15
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/README.md +10 -2
- package/bin/phaevo.js +20 -0
- package/bin/phaevo_darwin_amd64 +0 -0
- package/bin/phaevo_darwin_arm64 +0 -0
- package/bin/phaevo_linux_amd64 +0 -0
- package/bin/phaevo_linux_arm64 +0 -0
- package/package.json +22 -4
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @acahti/phaevo
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Phaevo client: audited, credential-free access to private environments through an Acahti identity. It carries binaries for macOS and Linux on amd64 and arm64.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install -g @acahti/phaevo
|
|
7
|
+
phaevo login
|
|
8
|
+
phaevo env
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The gateway (`phaevo gateway`) runs on Linux only. The Phaevo service's `/skill.md` describes the commands.
|
package/bin/phaevo.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { spawn } = require("child_process")
|
|
3
|
+
const fs = require("fs")
|
|
4
|
+
const path = require("path")
|
|
5
|
+
|
|
6
|
+
const arch = process.arch === "x64" ? "amd64" : process.arch
|
|
7
|
+
const name = `phaevo_${process.platform}_${arch}`
|
|
8
|
+
const bin = path.join(__dirname, name)
|
|
9
|
+
if (!fs.existsSync(bin)) {
|
|
10
|
+
console.error(`phaevo: no binary for ${process.platform}/${process.arch}`)
|
|
11
|
+
process.exit(1)
|
|
12
|
+
}
|
|
13
|
+
const child = spawn(bin, process.argv.slice(2), { stdio: "inherit" })
|
|
14
|
+
child.on("exit", (code, signal) => {
|
|
15
|
+
if (signal) {
|
|
16
|
+
process.kill(process.pid, signal)
|
|
17
|
+
return
|
|
18
|
+
}
|
|
19
|
+
process.exit(code == null ? 1 : code)
|
|
20
|
+
})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acahti/phaevo",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.8.15",
|
|
4
|
+
"description": "Phaevo client: audited, credential-free access to private environments through Acahti",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/acahti-dev/phaevo.git",
|
|
9
|
+
"directory": "packaging/npm"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"phaevo": "bin/phaevo.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"bin",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=18"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
}
|
|
24
|
+
}
|