@longleash/cli 0.1.0-rc.3 → 0.1.0-rc.4
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 +6 -3
- package/bin/longleash.mjs +8 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/runtime/app/dist/assets/{app-NKyZHFwH.js → app-DvraQaIc.js} +2 -2
- package/runtime/app/dist/assets/{welcome-Df4xKIqw.js → welcome-CTTvis4A.js} +1 -1
- package/runtime/app/dist/build.json +1 -1
- package/runtime/app/dist/index.html +1 -1
- package/runtime/app/dist/welcome.html +1 -1
package/README.md
CHANGED
|
@@ -26,9 +26,12 @@ longleash doctor
|
|
|
26
26
|
longleash run ~/code
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
and
|
|
29
|
+
Setup recommends a per-user background service, so the setup terminal may close after installation.
|
|
30
|
+
Use `longleash service status` to verify it, and `longleash pair` to print a fresh QR. Explicit
|
|
31
|
+
`longleash run` remains available for foreground diagnosis and requires that terminal to stay open.
|
|
32
|
+
See the [first-party setup guide](https://longleash.dev/docs/getting-started),
|
|
33
|
+
[background-service guide](https://longleash.dev/docs/background-service), and
|
|
34
|
+
[connectivity comparison](https://longleash.dev/docs/connectivity) before pairing.
|
|
32
35
|
|
|
33
36
|
## Security notes
|
|
34
37
|
|
package/bin/longleash.mjs
CHANGED
|
@@ -1300,6 +1300,11 @@ function assertVersion(value) {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return value;
|
|
1302
1302
|
}
|
|
1303
|
+
function updatePackageSpec(target, currentVersion) {
|
|
1304
|
+
const selected = target ?? (currentVersion.includes("-") ? "rc" : "latest");
|
|
1305
|
+
if (selected === "latest" || selected === "rc") return `@longleash/cli@${selected}`;
|
|
1306
|
+
return `@longleash/cli@${assertVersion(selected)}`;
|
|
1307
|
+
}
|
|
1303
1308
|
function packageLocation(prefix) {
|
|
1304
1309
|
return join2(prefix, "node_modules", "@longleash", "cli");
|
|
1305
1310
|
}
|
|
@@ -2119,7 +2124,7 @@ async function main() {
|
|
|
2119
2124
|
if (command === "hooks") return runHooks(args.slice(1));
|
|
2120
2125
|
if (command === "devices") return runNode(devicesEntry, []);
|
|
2121
2126
|
if (command === "revoke") return runNode(devicesEntry, ["revoke", ...args.slice(1)]);
|
|
2122
|
-
if (command === "update") return update(args[1]
|
|
2127
|
+
if (command === "update") return update(args[1]);
|
|
2123
2128
|
if (command === "uninstall") return uninstall();
|
|
2124
2129
|
if (command === "run") return runDaemon(args.slice(1));
|
|
2125
2130
|
if (command?.startsWith("-")) {
|
|
@@ -2148,7 +2153,7 @@ Usage:
|
|
|
2148
2153
|
longleash hooks [--remove] install or remove supported provider hooks
|
|
2149
2154
|
longleash devices list paired phones
|
|
2150
2155
|
longleash revoke <id|--all> revoke paired phone access
|
|
2151
|
-
longleash update [version] atomically
|
|
2156
|
+
longleash update [version] atomically update this channel or install an exact version
|
|
2152
2157
|
longleash uninstall remove runtime and hooks; preserve user data
|
|
2153
2158
|
longleash where print the active npm package directory`);
|
|
2154
2159
|
}
|
|
@@ -2457,7 +2462,7 @@ async function runHooks(args) {
|
|
|
2457
2462
|
return failed ? 1 : 0;
|
|
2458
2463
|
}
|
|
2459
2464
|
async function update(target) {
|
|
2460
|
-
const spec = target
|
|
2465
|
+
const spec = updatePackageSpec(target, VERSION);
|
|
2461
2466
|
const child = spawn("npm", [
|
|
2462
2467
|
"exec",
|
|
2463
2468
|
"--yes",
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longleash/cli",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@longleash/cli",
|
|
9
|
-
"version": "0.1.0-rc.
|
|
9
|
+
"version": "0.1.0-rc.4",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"os": [
|
|
12
12
|
"darwin",
|