tokenhud 0.1.0 → 0.1.1
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 +13 -2
- package/bin/tokenhud +4 -0
- package/lib/tokenhud.cjs +3 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ history on first run.
|
|
|
16
16
|
|
|
17
17
|
## Install
|
|
18
18
|
|
|
19
|
-
**With Bun** (recommended on Linux and macOS
|
|
19
|
+
**With Bun** (recommended on Linux and macOS):
|
|
20
20
|
|
|
21
21
|
```sh
|
|
22
22
|
bun add -g tokenhud
|
|
@@ -26,6 +26,10 @@ No Node is needed. Bun puts the `tokenhud` command in `~/.bun/bin`, which Bun's
|
|
|
26
26
|
adds to your PATH; `tokenhud doctor` says if it isn't there. Release candidates:
|
|
27
27
|
`bun add -g tokenhud@next`.
|
|
28
28
|
|
|
29
|
+
Bun ends by saying `Blocked 1 postinstall`. That is expected, and harmless on Linux and
|
|
30
|
+
macOS: the script it blocked is tokenhud's own `preinstall`, which sets up the command for
|
|
31
|
+
npm on Windows and does nothing anywhere else. Leave it blocked; don't `bun pm -g trust` it.
|
|
32
|
+
|
|
29
33
|
> **On Windows, Bun isn't supported yet.** `bun add -g tokenhud` installs a command that
|
|
30
34
|
> fails at once with `interpreter executable "/bin/sh" not found`. On Windows, use
|
|
31
35
|
> `npm i -g tokenhud` or the PowerShell installer (see **On Windows**, below).
|
|
@@ -43,6 +47,13 @@ is a small sh script that starts the binary: no JS runtime runs, so it needs nei
|
|
|
43
47
|
nor Bun, and nothing in the directory you run it in (a `.env`, a `bunfig.toml`) can reach
|
|
44
48
|
tokenhud.
|
|
45
49
|
|
|
50
|
+
If a download of that package fails, Bun and npm install tokenhud without it, and the
|
|
51
|
+
command only says the package is not installed (`tokenhud doctor`, from another copy, says
|
|
52
|
+
so too). Right after a release, npm's servers can take a few minutes to serve it
|
|
53
|
+
everywhere; wait a few minutes and reinstall:
|
|
54
|
+
`bun remove -g tokenhud && bun add -g --no-cache tokenhud`, or
|
|
55
|
+
`npm install -g --prefer-online tokenhud`.
|
|
56
|
+
|
|
46
57
|
**On Windows**, tokenhud is supported through npm (`npm i -g tokenhud`, Node 18 or later)
|
|
47
58
|
or the PowerShell installer, `install.ps1`, below; not through Bun. npm's install script
|
|
48
59
|
sets up a Node launcher for the command. If you installed with Bun, that command can't run,
|
|
@@ -646,7 +657,7 @@ test/ bun test suites
|
|
|
646
657
|
scripts/build.ts builds, checksums and smoke-tests the binaries
|
|
647
658
|
install.sh the Linux and macOS installer; install.ps1 is the Windows one
|
|
648
659
|
npm/ the npm package's command (sh) and Windows launcher; scripts/stage-npm.ts
|
|
649
|
-
builds the npm packages
|
|
660
|
+
builds the npm packages, scripts/publish-npm.ts publishes them
|
|
650
661
|
plugin/ the Claude Code plugin (listed by .claude-plugin/marketplace.json)
|
|
651
662
|
```
|
|
652
663
|
|
package/bin/tokenhud
CHANGED
|
@@ -138,6 +138,10 @@ if [ -z "$binary" ]; then
|
|
|
138
138
|
" bun add -g tokenhud (a global install with bun)" \
|
|
139
139
|
" npm install -g tokenhud (a global install with npm)" \
|
|
140
140
|
" npm install tokenhud (in a project)" \
|
|
141
|
+
"It is also missing when its download failed, which bun and npm pass over without an" \
|
|
142
|
+
"error. If tokenhud was just released, wait a few minutes and reinstall:" \
|
|
143
|
+
" bun remove -g tokenhud && bun add -g --no-cache tokenhud" \
|
|
144
|
+
" npm install -g --prefer-online tokenhud" \
|
|
141
145
|
"or install the binary directly: https://github.com/ZhuoQiuMcgill/tokenhud#install"
|
|
142
146
|
;;
|
|
143
147
|
esac
|
package/lib/tokenhud.cjs
CHANGED
|
@@ -83,6 +83,9 @@ if (bin === null) {
|
|
|
83
83
|
"made on another platform). Reinstall tokenhud the same way, without --omit=optional:\n" +
|
|
84
84
|
" npm install -g tokenhud (a global install)\n" +
|
|
85
85
|
" npm install tokenhud (in a project)\n" +
|
|
86
|
+
"It is also missing when its download failed, which npm passes over without an\n" +
|
|
87
|
+
"error. If tokenhud was just released, wait a few minutes and reinstall:\n" +
|
|
88
|
+
" npm install -g --prefer-online tokenhud\n" +
|
|
86
89
|
"or install the binary directly: https://github.com/ZhuoQiuMcgill/tokenhud#install",
|
|
87
90
|
);
|
|
88
91
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tokenhud",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/ZhuoQiuMcgill/tokenhud#readme",
|
|
6
6
|
"repository": {
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"node": ">=18"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@tokenhud/linux-x64": "0.1.
|
|
39
|
-
"@tokenhud/linux-arm64": "0.1.
|
|
40
|
-
"@tokenhud/darwin-x64": "0.1.
|
|
41
|
-
"@tokenhud/darwin-arm64": "0.1.
|
|
42
|
-
"@tokenhud/win32-x64": "0.1.
|
|
43
|
-
"@tokenhud/win32-arm64": "0.1.
|
|
38
|
+
"@tokenhud/linux-x64": "0.1.1",
|
|
39
|
+
"@tokenhud/linux-arm64": "0.1.1",
|
|
40
|
+
"@tokenhud/darwin-x64": "0.1.1",
|
|
41
|
+
"@tokenhud/darwin-arm64": "0.1.1",
|
|
42
|
+
"@tokenhud/win32-x64": "0.1.1",
|
|
43
|
+
"@tokenhud/win32-arm64": "0.1.1"
|
|
44
44
|
}
|
|
45
45
|
}
|