@profullstack/hqtui-demo 0.1.11 → 0.1.12
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 +30 -3
- package/dist/main.js +1 -1
- package/package.json +2 -2
- package/src/main.ts +1 -1
package/README.md
CHANGED
|
@@ -15,11 +15,38 @@ reproducible.
|
|
|
15
15
|
|
|
16
16
|
## Run it
|
|
17
17
|
|
|
18
|
+
To automatically fetch **latest main**, build it and run it on every invocation:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
# Vanilla — uses your installed toolchain (Bun for TypeScript)
|
|
22
|
+
curl -fsSL https://hqtui.com/demo.sh | sh -s -- --system typescript
|
|
23
|
+
curl -fsSL https://hqtui.com/demo.sh | sh -s -- --system rust
|
|
24
|
+
|
|
25
|
+
# Mise — installs/uses the selected pinned toolchain
|
|
26
|
+
curl -fsSL https://hqtui.com/demo.sh | sh -s -- --mise typescript
|
|
27
|
+
curl -fsSL https://hqtui.com/demo.sh | sh -s -- --mise rust
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Replace the language with `go`, `python` or `zig` for the other native demos.
|
|
31
|
+
Append `--sim` directly; native headless previews use `--snapshot`. Git and curl
|
|
32
|
+
are required. Review the [launcher](https://hqtui.com/demo.sh) before executing it.
|
|
33
|
+
|
|
34
|
+
The launcher prints the exact commit, fetches before every run, caches sources
|
|
35
|
+
and optimized builds under `$XDG_CACHE_HOME/hqtui-demo` (default
|
|
36
|
+
`~/.cache/hqtui-demo`), and never modifies your own checkout. A failed update
|
|
37
|
+
does not silently run an old copy. Set `HQTUI_DEMO_CACHE` to a dedicated absolute
|
|
38
|
+
directory to choose another cache. Old revisions are retained so running demos
|
|
39
|
+
are not disrupted. `--check` before the language prints the fetched commit without
|
|
40
|
+
building or entering a terminal. First builds are slower; unchanged revisions
|
|
41
|
+
reuse completed builds. C/C++ demos are not available yet.
|
|
42
|
+
|
|
43
|
+
For the latest **published npm release** instead of latest source:
|
|
44
|
+
|
|
18
45
|
```bash
|
|
19
|
-
bunx @profullstack/hqtui-demo # your real machine
|
|
20
|
-
bunx @profullstack/hqtui-demo --sim # deterministic simulation
|
|
46
|
+
bunx @profullstack/hqtui-demo@latest # your real machine
|
|
47
|
+
bunx @profullstack/hqtui-demo@latest --sim # deterministic simulation
|
|
21
48
|
|
|
22
|
-
npx @profullstack/hqtui-demo
|
|
49
|
+
npx --yes @profullstack/hqtui-demo@latest # Node 22.6+ works too
|
|
23
50
|
```
|
|
24
51
|
|
|
25
52
|
## Options
|
package/dist/main.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@profullstack/hqtui-demo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "The HQTUI reference dashboard: a btop-grade terminal system monitor. Runs on real system metrics or a deterministic simulation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"audit:scroll": "bun scripts/scrollaudit.ts"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@profullstack/hqtui": "^0.1.
|
|
30
|
+
"@profullstack/hqtui": "^0.1.12"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
package/src/main.ts
CHANGED
|
@@ -51,7 +51,7 @@ function parseArgs(argv: string[]): Options {
|
|
|
51
51
|
case "-h":
|
|
52
52
|
case "--help": printHelp(); process.exit(0);
|
|
53
53
|
case "-v":
|
|
54
|
-
case "--version": console.log("hqtui-demo 0.1.
|
|
54
|
+
case "--version": console.log("hqtui-demo 0.1.12"); process.exit(0);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
return options;
|