pstdio 0.9.0 → 0.12.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/README.md +2 -0
- package/bin/pstdio.cjs +1 -1
- package/bin/resolve-package.cjs +3 -4
- package/bin/resolve-package.test.ts +4 -4
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -30,3 +30,5 @@ We recommend adding `.pstdio/tickets` and `.pstdio/config.json` to `.gitignore`
|
|
|
30
30
|
### Commands
|
|
31
31
|
|
|
32
32
|
Learn more about the CLI using `pstdio --help`.
|
|
33
|
+
|
|
34
|
+
Run `pstdio serve --host 0.0.0.0` to expose the API and dashboard to other devices on a trusted LAN. The serve command has no authentication, so do not bind it to untrusted networks.
|
package/bin/pstdio.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const pkg = resolvePackageName(process.platform, process.arch);
|
|
|
8
8
|
if (!pkg) {
|
|
9
9
|
process.stderr.write(
|
|
10
10
|
`pstdio: unsupported platform ${process.platform}-${process.arch}.\n` +
|
|
11
|
-
`Supported: darwin-arm64, darwin-x64, linux-x64, linux-arm64,
|
|
11
|
+
`Supported: darwin-arm64, darwin-x64, linux-x64, linux-arm64, win-x64, win-arm64\n`,
|
|
12
12
|
);
|
|
13
13
|
process.exit(1);
|
|
14
14
|
}
|
package/bin/resolve-package.cjs
CHANGED
|
@@ -10,10 +10,9 @@ function detectLinuxLibc() {
|
|
|
10
10
|
function resolvePackageName(platform, arch, libc = platform === "linux" ? detectLinuxLibc() : null) {
|
|
11
11
|
if (platform === "darwin" && arch === "arm64") return "@pstdio/cli-darwin-arm64";
|
|
12
12
|
if (platform === "darwin" && arch === "x64") return "@pstdio/cli-darwin-x64";
|
|
13
|
-
if (platform === "linux" &&
|
|
14
|
-
|
|
15
|
-
if (platform === "linux" && arch === "arm64")
|
|
16
|
-
return libc === "musl" ? "@pstdio/cli-linux-arm64-musl" : "@pstdio/cli-linux-arm64";
|
|
13
|
+
if (platform === "linux" && libc === "musl") return null;
|
|
14
|
+
if (platform === "linux" && arch === "x64") return "@pstdio/cli-linux-x64";
|
|
15
|
+
if (platform === "linux" && arch === "arm64") return "@pstdio/cli-linux-arm64";
|
|
17
16
|
if (platform === "win32" && arch === "x64") return "@pstdio/cli-win-x64";
|
|
18
17
|
if (platform === "win32" && arch === "arm64") return "@pstdio/cli-win-arm64";
|
|
19
18
|
return null;
|
|
@@ -22,12 +22,12 @@ describe("resolvePackageName", () => {
|
|
|
22
22
|
expect(resolvePackageName("linux", "arm64", "glibc")).toBe("@pstdio/cli-linux-arm64");
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
test("linux x64 musl", () => {
|
|
26
|
-
expect(resolvePackageName("linux", "x64", "musl")).
|
|
25
|
+
test("returns null for linux x64 musl", () => {
|
|
26
|
+
expect(resolvePackageName("linux", "x64", "musl")).toBeNull();
|
|
27
27
|
});
|
|
28
28
|
|
|
29
|
-
test("linux arm64 musl", () => {
|
|
30
|
-
expect(resolvePackageName("linux", "arm64", "musl")).
|
|
29
|
+
test("returns null for linux arm64 musl", () => {
|
|
30
|
+
expect(resolvePackageName("linux", "arm64", "musl")).toBeNull();
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
test("win32 x64", () => {
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pstdio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
|
-
"pstdio": "./bin/pstdio.cjs"
|
|
6
|
+
"pstdio": "./bin/pstdio.cjs",
|
|
7
|
+
"pst": "./bin/pstdio.cjs"
|
|
7
8
|
},
|
|
8
9
|
"files": [
|
|
9
10
|
"bin"
|
|
@@ -31,14 +32,12 @@
|
|
|
31
32
|
"yargs": "^18.0.0"
|
|
32
33
|
},
|
|
33
34
|
"optionalDependencies": {
|
|
34
|
-
"@pstdio/cli-darwin-arm64": "0.
|
|
35
|
-
"@pstdio/cli-darwin-x64": "0.
|
|
36
|
-
"@pstdio/cli-linux-x64": "0.
|
|
37
|
-
"@pstdio/cli-linux-arm64": "0.
|
|
38
|
-
"@pstdio/cli-
|
|
39
|
-
"@pstdio/cli-
|
|
40
|
-
"@pstdio/cli-win-x64": "0.9.0",
|
|
41
|
-
"@pstdio/cli-win-arm64": "0.9.0"
|
|
35
|
+
"@pstdio/cli-darwin-arm64": "0.12.0",
|
|
36
|
+
"@pstdio/cli-darwin-x64": "0.12.0",
|
|
37
|
+
"@pstdio/cli-linux-x64": "0.12.0",
|
|
38
|
+
"@pstdio/cli-linux-arm64": "0.12.0",
|
|
39
|
+
"@pstdio/cli-win-x64": "0.12.0",
|
|
40
|
+
"@pstdio/cli-win-arm64": "0.12.0"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@types/bun": "latest",
|
|
@@ -48,10 +47,12 @@
|
|
|
48
47
|
"@types/yargs": "^17.0.35",
|
|
49
48
|
"pstdio-agents": "workspace:*",
|
|
50
49
|
"pstdio-api": "workspace:*",
|
|
50
|
+
"pstdio-api-contracts": "workspace:*",
|
|
51
51
|
"pstdio-dashboard": "workspace:*",
|
|
52
52
|
"pstdio-db": "workspace:*",
|
|
53
53
|
"pstdio-logging": "workspace:*",
|
|
54
54
|
"pstdio-plugins": "workspace:*",
|
|
55
|
+
"pstdio-paths": "workspace:*",
|
|
55
56
|
"pstdio-wt": "workspace:*",
|
|
56
57
|
"@pstdio/sdk": "workspace:*",
|
|
57
58
|
"typescript": "6.0.2"
|