linkr-bee-cli 1.1.2 → 1.1.3
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 +5 -5
- package/package.json +1 -5
- package/lib/install.js +0 -20
package/README.md
CHANGED
|
@@ -6,10 +6,11 @@ or against a loopback simulator. It is the program the
|
|
|
6
6
|
[`dsh-linkr-bee`](https://github.com/radxa/linkr-bee/tree/main/linkr-bee-dsh)
|
|
7
7
|
DeepSeek Harness plugin shells out to — and it is useful on its own.
|
|
8
8
|
|
|
9
|
-
This npm package carries no binary. On first use it
|
|
10
|
-
built for your platform by the project's Rust
|
|
11
|
-
against the release's `SHA256SUMS`, and caches it,
|
|
12
|
-
|
|
9
|
+
This npm package carries no binary and runs no install script. On first use it
|
|
10
|
+
downloads the release asset built for your platform by the project's Rust
|
|
11
|
+
release workflow, verifies it against the release's `SHA256SUMS`, and caches it,
|
|
12
|
+
so `npx`, a global install and a package manager that refuses build scripts all
|
|
13
|
+
end up running the same compiled program.
|
|
13
14
|
|
|
14
15
|
## Use
|
|
15
16
|
|
|
@@ -52,7 +53,6 @@ a guess: nothing is executed that the release did not sign for.
|
|
|
52
53
|
| `BEE_CLI_REPO` | GitHub `owner/name` to download from (default `radxa/linkr-bee`) |
|
|
53
54
|
| `BEE_CLI_CACHE_DIR` | Cache root (default `$XDG_CACHE_HOME/bee-cli`) |
|
|
54
55
|
| `BEE_CLI_SHA256` | Pin the expected checksum instead of reading `SHA256SUMS` |
|
|
55
|
-
| `BEE_CLI_SKIP_DOWNLOAD=1` | Do not warm the cache during `npm install` |
|
|
56
56
|
|
|
57
57
|
### Platforms
|
|
58
58
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linkr-bee-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Linkr Bee wireless serial bridge: the command-line client (bee-cli) for talking to a board's UART console over Bluetooth LE, LAN or loopback.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bee-cli",
|
|
@@ -37,10 +37,6 @@
|
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=18"
|
|
39
39
|
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"postinstall": "node ./lib/install.js",
|
|
42
|
-
"test": "node --test ./test/*.test.mjs"
|
|
43
|
-
},
|
|
44
40
|
"publishConfig": {
|
|
45
41
|
"access": "public"
|
|
46
42
|
}
|
package/lib/install.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
/**
|
|
3
|
-
* Postinstall: warm the cache so the first `bee-cli` run does not wait for a
|
|
4
|
-
* download. Best effort by design — an offline install must not fail, because
|
|
5
|
-
* the binary is not needed until something actually talks to a board.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
const { ensureBinary } = require('./ensure')
|
|
9
|
-
|
|
10
|
-
async function main() {
|
|
11
|
-
if (process.env.BEE_CLI_SKIP_DOWNLOAD === '1') return
|
|
12
|
-
try {
|
|
13
|
-
const binary = await ensureBinary({ quiet: true })
|
|
14
|
-
if (binary) process.stdout.write(`bee-cli: ${binary}\n`)
|
|
15
|
-
} catch (error) {
|
|
16
|
-
process.stderr.write(`bee-cli: will fetch the binary on first use (${error.message})\n`)
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
if (require.main === module) main()
|