laplus 0.1.1-rc.12 → 0.1.1-rc.13
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 +15 -0
- package/dist/bin.mjs +10 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -35,6 +35,21 @@ npx laplus@latest --network # reachable from your phone on this netwo
|
|
|
35
35
|
npx laplus@latest --port 5000
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
## Keeping it running
|
|
39
|
+
|
|
40
|
+
On Linux with systemd, laplus can install itself as a background service for
|
|
41
|
+
your user — it starts at boot and survives you logging out of SSH.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
npx laplus@latest service install --network
|
|
45
|
+
npx laplus@latest service status
|
|
46
|
+
npx laplus@latest service uninstall
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The flags you pass to `service install` are the ones the service runs with. The
|
|
50
|
+
pairing URL then goes to `~/.laplus/logs/service.log` instead of your terminal,
|
|
51
|
+
so `tail -f` that after a restart.
|
|
52
|
+
|
|
38
53
|
`--network` turns the listener off loopback **for one run** and does not change
|
|
39
54
|
what the desktop app does next time it starts. Anything it can reach can drive
|
|
40
55
|
an agent on that machine, so the credential printed at startup is the whole of
|
package/dist/bin.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import * as NodeChildProcess from "node:child_process";
|
|
|
4
4
|
import * as NodeFS from "node:fs";
|
|
5
5
|
import * as NodeURL from "node:url";
|
|
6
6
|
//#region package.json
|
|
7
|
-
var version = "0.1.1-rc.
|
|
7
|
+
var version = "0.1.1-rc.13";
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/invocation.ts
|
|
10
10
|
/**
|
|
@@ -21,6 +21,15 @@ const HELP = `laplus — the laplus server, and the UI it serves.
|
|
|
21
21
|
npx laplus listen on 127.0.0.1:4773 and print a URL to open
|
|
22
22
|
npx laplus --network also listen off loopback, for a phone on this network
|
|
23
23
|
|
|
24
|
+
Keeping it running (Linux with systemd):
|
|
25
|
+
|
|
26
|
+
npx laplus service install [flags] start at boot, and survive logging out
|
|
27
|
+
npx laplus service status whether one is installed, and up to date
|
|
28
|
+
npx laplus service uninstall stop it and take it off startup
|
|
29
|
+
|
|
30
|
+
The flags given to \`service install\` are the ones the service runs with. The
|
|
31
|
+
pairing URL then goes to ~/.laplus/logs/service.log rather than to a terminal.
|
|
32
|
+
|
|
24
33
|
Flags, all of them the server's own:
|
|
25
34
|
|
|
26
35
|
--port <n> the port to listen on (default 4773, LAPLUS_PORT)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "laplus",
|
|
3
|
-
"version": "0.1.1-rc.
|
|
3
|
+
"version": "0.1.1-rc.13",
|
|
4
4
|
"description": "Run the laplus server and its UI without building either.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"node": ">=20"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@laplus/server-darwin-arm64": "0.1.1-rc.
|
|
35
|
-
"@laplus/server-darwin-x64": "0.1.1-rc.
|
|
36
|
-
"@laplus/server-linux-arm64": "0.1.1-rc.
|
|
37
|
-
"@laplus/server-linux-x64": "0.1.1-rc.
|
|
38
|
-
"@laplus/server-win32-x64": "0.1.1-rc.
|
|
34
|
+
"@laplus/server-darwin-arm64": "0.1.1-rc.13",
|
|
35
|
+
"@laplus/server-darwin-x64": "0.1.1-rc.13",
|
|
36
|
+
"@laplus/server-linux-arm64": "0.1.1-rc.13",
|
|
37
|
+
"@laplus/server-linux-x64": "0.1.1-rc.13",
|
|
38
|
+
"@laplus/server-win32-x64": "0.1.1-rc.13"
|
|
39
39
|
}
|
|
40
40
|
}
|