@phystack/device-phyos 4.5.47-dev → 4.5.49-dev
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 +50 -3
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
# phydevice
|
|
2
|
+
|
|
3
|
+
PhyStack device agent for PhyOS.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Download the pre-built binary for your platform. No runtime dependencies required.
|
|
8
|
+
|
|
9
|
+
### Linux (x86_64)
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
curl -fsSL https://os.phygrid.com/cli/latest/phydevice-linux-x64.tar.gz | tar xz
|
|
13
|
+
sudo mv phydevice /usr/local/bin/
|
|
3
14
|
```
|
|
4
|
-
|
|
15
|
+
|
|
16
|
+
### macOS (Apple Silicon)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
curl -fsSL https://os.phygrid.com/cli/latest/phydevice-darwin-arm64.tar.gz | tar xz
|
|
20
|
+
sudo mv phydevice /usr/local/bin/
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### macOS (Intel)
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
curl -fsSL https://os.phygrid.com/cli/latest/phydevice-darwin-x64.tar.gz | tar xz
|
|
27
|
+
sudo mv phydevice /usr/local/bin/
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Install a specific version
|
|
31
|
+
|
|
32
|
+
Replace `latest` with the version number:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
curl -fsSL https://os.phygrid.com/cli/4.5.48/phydevice-linux-x64.tar.gz | tar xz
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Supported platforms
|
|
39
|
+
|
|
40
|
+
| Platform | Architecture | Download |
|
|
41
|
+
|----------|-------------|----------|
|
|
42
|
+
| Linux | x86_64 | `phydevice-linux-x64.tar.gz` |
|
|
43
|
+
| macOS | ARM64 | `phydevice-darwin-arm64.tar.gz` |
|
|
44
|
+
| macOS | x86_64 | `phydevice-darwin-x64.tar.gz` |
|
|
45
|
+
|
|
46
|
+
## Local development
|
|
47
|
+
|
|
48
|
+
Ensure the process can write to `/etc/phyos.env`. On macOS:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
sudo sh -c 'echo LOCAL > /etc/phyos.env'
|
|
5
52
|
sudo chmod 666 /etc/phyos.env
|
|
6
53
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phystack/device-phyos",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.49-dev",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
10
|
"build": "rimraf dist && tsc",
|
|
11
|
+
"build:binary": "npx bun build --compile --minify ./src/index.ts --outfile phydevice",
|
|
11
12
|
"start": "yarn build && node --inspect --enable-source-maps dist/index",
|
|
12
13
|
"dev": "NODE_ENV=development npx nodemon",
|
|
13
14
|
"format": "prettier --write \"src/**/*.{ts,js,json,md}\"",
|
|
@@ -27,10 +28,10 @@
|
|
|
27
28
|
"license": "MIT",
|
|
28
29
|
"description": "",
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@phystack/axios-proxy": "4.5.
|
|
31
|
-
"@phystack/hub-client": "4.5.
|
|
32
|
-
"@phystack/hub-device": "4.5.
|
|
33
|
-
"@phystack/phy-logger": "4.5.
|
|
31
|
+
"@phystack/axios-proxy": "4.5.49-dev",
|
|
32
|
+
"@phystack/hub-client": "4.5.49-dev",
|
|
33
|
+
"@phystack/hub-device": "4.5.49-dev",
|
|
34
|
+
"@phystack/phy-logger": "4.5.49-dev",
|
|
34
35
|
"@vercel/ncc": "^0.38.1",
|
|
35
36
|
"async-mutex": "^0.5.0",
|
|
36
37
|
"bufferutil": "^4.0.8",
|
|
@@ -64,5 +65,5 @@
|
|
|
64
65
|
"typescript": "^5.5.2",
|
|
65
66
|
"typescript-cli": "^0.1.0"
|
|
66
67
|
},
|
|
67
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "82afec3cab34ec3a3795e660f872aa934a32191c"
|
|
68
69
|
}
|