lumira 1.12.0 → 1.12.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.
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
},
|
|
6
6
|
"metadata": {
|
|
7
7
|
"description": "Real-time statusline HUD for Claude Code and Qwen Code — analytics, quota projection, themes, powerline",
|
|
8
|
-
"version": "1.12.
|
|
8
|
+
"version": "1.12.1"
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
11
|
{
|
|
12
12
|
"name": "lumira",
|
|
13
13
|
"source": "./",
|
|
14
14
|
"description": "Real-time statusline HUD for Claude Code and Qwen Code. Session analytics, API latency widget, 7-day quota projection, auto-compact warnings, 7 themes, powerline support. Zero runtime dependencies. Run /lumira:setup after install to activate.",
|
|
15
|
-
"version": "1.12.
|
|
15
|
+
"version": "1.12.1",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "Carlos Cativo"
|
|
18
18
|
},
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
34
|
],
|
|
35
|
-
"version": "1.12.
|
|
35
|
+
"version": "1.12.1"
|
|
36
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lumira",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Real-time statusline HUD for Claude Code and Qwen Code — session analytics, API latency, 7-day quota projection, auto-compact warnings, 7 themes, powerline. Zero runtime deps.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Carlos Cativo"
|
package/dist/installer.js
CHANGED
|
@@ -26,16 +26,24 @@ function makeStatusLine(command) {
|
|
|
26
26
|
return { type: 'command', command, padding: 0 };
|
|
27
27
|
}
|
|
28
28
|
// Rank a statusLine command by per-render speed (higher = faster).
|
|
29
|
-
//
|
|
29
|
+
// 3 = bare `lumira` binary — always resolves to the current installed version
|
|
30
|
+
// 2 = node /path/dist/index.js or plugin-cache path — fast but version-pinned
|
|
30
31
|
// 1 = npx, cached (`npx lumira`)
|
|
31
32
|
// 0 = npx, registry (`npx lumira@latest` / any pinned `@version`)
|
|
32
33
|
// Used to decide migration: only ever rewrite TOWARD a faster form.
|
|
34
|
+
// Speed 3 vs 2 distinction matters: a plugin-cache path (speed 2) can point to
|
|
35
|
+
// a stale version even after `npm i -g lumira`, so the installer must migrate it
|
|
36
|
+
// to the bare `lumira` binary when the global bin is available.
|
|
33
37
|
export function commandSpeed(command) {
|
|
34
38
|
const c = command.trim();
|
|
35
39
|
// `npx` as a bare word or a path basename (e.g. /usr/local/bin/npx, …\npx).
|
|
36
40
|
if (/(^|[\s/\\])npx(\s|$)/.test(c)) {
|
|
37
41
|
return /@(latest|\d)/.test(c) ? 0 : 1;
|
|
38
42
|
}
|
|
43
|
+
// Bare `lumira` (or platform-specific forms like `lumira.cmd`) — always current.
|
|
44
|
+
if (/^lumira(\.cmd|\.exe)?$/.test(c))
|
|
45
|
+
return 3;
|
|
46
|
+
// node /path/dist/index.js or plugin-cache — version-pinned, may be stale.
|
|
39
47
|
return 2;
|
|
40
48
|
}
|
|
41
49
|
// Is `lumira` resolvable as a global bin on PATH?
|
|
@@ -230,8 +238,10 @@ export async function install(opts = {}) {
|
|
|
230
238
|
const existingCmd = existingIsLumira
|
|
231
239
|
? String(settings.statusLine.command ?? '')
|
|
232
240
|
: '';
|
|
233
|
-
// Already on the
|
|
234
|
-
|
|
241
|
+
// Already on the bare `lumira` binary — optimal, nothing to rewrite.
|
|
242
|
+
// A node /path/dist/index.js or plugin-cache path (speed 2) is NOT skipped
|
|
243
|
+
// here — it may point to a stale version and should be migrated to `lumira`.
|
|
244
|
+
if (existingIsLumira && commandSpeed(existingCmd) >= 3) {
|
|
235
245
|
lines.push(ok('lumira is already configured (optimal command)'));
|
|
236
246
|
return finalize();
|
|
237
247
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lumira",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Real-time statusline HUD for Claude Code and Qwen Code. Includes session analytics CLI, API latency overhead widget, 7d quota projection, auto-compact proximity warnings, themes, and powerline. Zero deps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|