@legios/quartermaster 0.1.23 → 0.1.25
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 +27 -2
- package/bin/qm-indicator +719 -207
- package/dist/adapters/cache-endpoint.js +13 -11
- package/dist/adapters/cache-endpoint.js.map +1 -1
- package/dist/adapters/codex.js +6 -4
- package/dist/adapters/codex.js.map +1 -1
- package/dist/adapters/cuota-guardada.js +4 -3
- package/dist/adapters/cuota-guardada.js.map +1 -1
- package/dist/adapters/directorio-cache.js +48 -0
- package/dist/adapters/directorio-cache.js.map +1 -0
- package/dist/adapters/entorno.js +201 -13
- package/dist/adapters/entorno.js.map +1 -1
- package/dist/adapters/historial.js +29 -12
- package/dist/adapters/historial.js.map +1 -1
- package/dist/adapters/statusline.js +14 -9
- package/dist/adapters/statusline.js.map +1 -1
- package/dist/cli/aviso.js +1 -1
- package/dist/cli/aviso.js.map +1 -1
- package/dist/cli/diagnostico.js +411 -0
- package/dist/cli/diagnostico.js.map +1 -0
- package/dist/cli/mejor.js +1 -1
- package/dist/cli/mejor.js.map +1 -1
- package/dist/cli/qm.js +51 -124
- package/dist/cli/qm.js.map +1 -1
- package/dist/core/config.js +38 -3
- package/dist/core/config.js.map +1 -1
- package/dist/core/tipos.js +4 -0
- package/dist/core/tipos.js.map +1 -1
- package/extension/gnome43/quartermaster@legios/metadata.json +1 -1
- package/extension/quartermaster@legios/metadata.json +1 -1
- package/package.json +1 -1
- package/scripts/gate-dibujo.sh +4 -0
- package/scripts/gate-edades.py +2 -1
- package/scripts/gate-minimalista.py +90 -0
- package/scripts/hacer-deb.sh +5 -0
- package/scripts/hacer-manifests.mjs +7 -4
package/dist/core/tipos.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tipos.js","sourceRoot":"","sources":["../../src/core/tipos.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,4EAA4E;AAE5E,OAAO,EAAE,EAAE,EA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6C,MAAM,oBAAoB,EACvE,0CAA0C,MAAM,oBAAoB,CACrE,CAAC;QACJ,KAAK,SAAS;YACZ,OAAO,EAAE,CACP,iDAAiD,MAAM,oBAAoB,EAC3E,+CAA+C,MAAM,oBAAoB,CAC1E,CAAC;QACJ,KAAK,WAAW;YACd,yEAAyE;YACzE,yEAAyE;YACzE,kEAAkE;YAClE,OAAO,MAAM,KAAK,OAAO;gBACvB,CAAC,CAAC,EAAE,CACF,6DAA6D,EAC7D,gEAAgE,CACjE;gBACD,CAAC,CAAC,EAAE,CACF,kJAAkJ,EAClJ,4IAA4I,CAC7I,CAAC;QACN,KAAK,mBAAmB;YACtB,OAAO,CAAC,CAAC,OAAO,CAAC;QACnB,KAAK,eAAe;YAClB,OAAO,EAAE,CAAC,wCAAwC,EAAE,wCAAwC,CAAC,CAAC;QAChG,KAAK,iBAAiB;YACpB,OAAO,EAAE,CACP,+EAA+E,EAC/E,2EAA2E,CAC5E,CAAC;QACJ,KAAK,UAAU;YACb,OAAO,EAAE,CAAC,2BAA2B,CAAC,CAAC,OAAO,EAAE,EAAE,8BAA8B,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;QAC/F,KAAK,OAAO;YACV,OAAO,EAAE,CAAC,kCAAkC,CAAC,CAAC,OAAO,EAAE,EAAE,2BAA2B,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;AACH,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"uuid": "quartermaster@legios",
|
|
3
3
|
"name": "quartermaster",
|
|
4
4
|
"description": "Shows the quartermaster meter in the top bar: at a glance, how much quota is left in every agent account on the machine — each Claude Code profile, Codex, and the providers stored by opencode. One click opens the full panel.\n\nThis extension only displays and forwards the click: the numbers, the icon and the panel are drawn by the quartermaster CLI (https://github.com/legiosai/quartermaster), which has to be installed and running. It knows nothing about credentials or HTTP; it reads the PNGs the CLI leaves in the user cache directory and writes a one-line request file back when you click.\n\nIt exists because the AppIndicator extension keeps the left click for its own menu, so seeing the panel took two clicks. With an item of our own, the first click opens it.\n\nThis is the GNOME 43/44 build of the same extension: identical behaviour, written against the pre-45 extension API. It exists for Debian 12 and other distributions still on GNOME 43.",
|
|
5
|
-
"version-name": "0.1.
|
|
5
|
+
"version-name": "0.1.25",
|
|
6
6
|
"shell-version": [
|
|
7
7
|
"43",
|
|
8
8
|
"44"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"uuid": "quartermaster@legios",
|
|
3
3
|
"name": "quartermaster",
|
|
4
4
|
"description": "Shows the quartermaster meter in the top bar: at a glance, how much quota is left in every agent account on the machine — each Claude Code profile, Codex, and the providers stored by opencode. One click opens the full panel.\n\nThis extension only displays and forwards the click: the numbers, the icon and the panel are drawn by the quartermaster CLI (https://github.com/legiosai/quartermaster), which has to be installed and running. It knows nothing about credentials or HTTP; it reads the PNGs the CLI leaves in the user cache directory and writes a one-line request file back when you click.\n\nIt exists because the AppIndicator extension keeps the left click for its own menu, so seeing the panel took two clicks. With an item of our own, the first click opens it.",
|
|
5
|
-
"version-name": "0.1.
|
|
5
|
+
"version-name": "0.1.25",
|
|
6
6
|
"shell-version": ["45", "46", "47", "48", "49"],
|
|
7
7
|
"url": "https://github.com/legiosai/quartermaster"
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legios/quartermaster",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "Cuánta cuota te queda en TODOS los perfiles de Claude Code de la máquina, más Codex y los proveedores de opencode. Sin red y sin credenciales: el número sale del cache que Claude Code deja en disco.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
package/scripts/gate-dibujo.sh
CHANGED
|
@@ -164,4 +164,8 @@ python3 scripts/gate-edades.py || fallar "una barra de una lectura vieja se dibu
|
|
|
164
164
|
# que tapa la pantalla durante horas se cierra sin leer.
|
|
165
165
|
python3 scripts/gate-avisos.py || fallar "un aviso del escritorio se queda en pantalla hasta que lo cerrás"
|
|
166
166
|
|
|
167
|
+
# 9 · la apariencia minimalista (issue #27): que dibuje con su ancho y sus
|
|
168
|
+
# letras, y que la básica quede idéntica a no haber elegido nada.
|
|
169
|
+
python3 -B scripts/gate-minimalista.py || fallar "la apariencia minimalista no dibuja, o cambió el panel de siempre"
|
|
170
|
+
|
|
167
171
|
echo "gate de dibujo: verde"
|
package/scripts/gate-edades.py
CHANGED
|
@@ -64,7 +64,8 @@ def main() -> int:
|
|
|
64
64
|
"sesion": sesion, "semanal": semanal},
|
|
65
65
|
}
|
|
66
66
|
vista = qmi.VistaCuenta(cuenta, 0)
|
|
67
|
-
|
|
67
|
+
# Lo que se dibuja abajo de cada medidor, no una frase armada aparte.
|
|
68
|
+
pies = {b["nombre"]: b["edad"] or "" for b in vista.barras}
|
|
68
69
|
if "leída hace 24m" not in pies.get("iguana_necktie", ""):
|
|
69
70
|
fallas.append(f"GNOME: la barra de la lectura vieja no dice su edad: {pies.get('iguana_necktie')!r}")
|
|
70
71
|
if any("leída" in pies.get(k, "") for k in ("session", "weekly_all")):
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""La apariencia minimalista del panel de GNOME (issue #27): que dibuje, con su
|
|
3
|
+
ancho, y que cada barra tenga la letra que dice el diseño.
|
|
4
|
+
|
|
5
|
+
Y lo más importante: que la básica no cambie. Quien no tocó nada tiene que
|
|
6
|
+
seguir viendo exactamente el panel de antes, así que el panel sin `apariencia`
|
|
7
|
+
y el panel con `apariencia: basica` tienen que salir píxel por píxel iguales.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import importlib.machinery
|
|
11
|
+
import importlib.util
|
|
12
|
+
import json
|
|
13
|
+
import sys
|
|
14
|
+
import tempfile
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
|
|
17
|
+
import cairo
|
|
18
|
+
|
|
19
|
+
RAIZ = Path(__file__).resolve().parent.parent
|
|
20
|
+
FIXTURE = RAIZ / "test/fixtures/panel.json"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def cargar():
|
|
24
|
+
"""bin/qm-indicator no termina en .py: hay que darle el loader a mano."""
|
|
25
|
+
spec = importlib.util.spec_from_loader(
|
|
26
|
+
"qm", importlib.machinery.SourceFileLoader("qm", str(RAIZ / "bin/qm-indicator")))
|
|
27
|
+
modulo = importlib.util.module_from_spec(spec)
|
|
28
|
+
spec.loader.exec_module(modulo)
|
|
29
|
+
return modulo
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def main() -> int:
|
|
33
|
+
qm = cargar()
|
|
34
|
+
qm.TEMA = qm.Tema(True)
|
|
35
|
+
qm.FAMILIA = "Sans"
|
|
36
|
+
fallas = []
|
|
37
|
+
|
|
38
|
+
# 1 · las letras
|
|
39
|
+
casos = [
|
|
40
|
+
({"clave": "session", "grupo": "session", "alcance": None}, "s"),
|
|
41
|
+
({"clave": "five_hour", "grupo": None, "alcance": None}, "s"),
|
|
42
|
+
({"clave": "weekly_all", "grupo": "weekly", "alcance": None}, "w"),
|
|
43
|
+
({"clave": "weekly_scoped", "grupo": "weekly", "alcance": "Fable"}, "wf"),
|
|
44
|
+
({"clave": "weekly", "grupo": None, "alcance": None}, "w"),
|
|
45
|
+
({"clave": "nimbus_quill", "grupo": None, "alcance": None, "nombre": "nimbus_quill"}, "nimbu…"),
|
|
46
|
+
]
|
|
47
|
+
for v, esperada in casos:
|
|
48
|
+
if qm.letra_de(v) != esperada:
|
|
49
|
+
fallas.append(f"la letra de {v['clave']} salió «{qm.letra_de(v)}» y tiene que ser «{esperada}»")
|
|
50
|
+
|
|
51
|
+
datos = json.loads(FIXTURE.read_text())
|
|
52
|
+
with tempfile.TemporaryDirectory() as tmp:
|
|
53
|
+
# 2 · dibuja, con su ancho y con píxeles adentro
|
|
54
|
+
mini = dict(datos, apariencia="minimalista")
|
|
55
|
+
ruta = f"{tmp}/mini.png"
|
|
56
|
+
alto = qm.capturar(mini, ruta)
|
|
57
|
+
s = cairo.ImageSurface.create_from_png(ruta)
|
|
58
|
+
crudo = bytes(s.get_data())
|
|
59
|
+
pintados = sum(1 for i in range(3, len(crudo), 4) if crudo[i] != 0)
|
|
60
|
+
if s.get_width() != qm.ANCHO_MINI:
|
|
61
|
+
fallas.append(f"la minimalista salió de {s.get_width()} px y tiene que ser {qm.ANCHO_MINI}")
|
|
62
|
+
if s.get_height() != alto or not 150 <= alto <= 1200:
|
|
63
|
+
fallas.append(f"la minimalista salió de {s.get_height()} px de alto (dijo {alto})")
|
|
64
|
+
if pintados < s.get_width() * s.get_height() // 2:
|
|
65
|
+
fallas.append(f"la minimalista está casi vacía: {pintados} píxeles con algo")
|
|
66
|
+
# Tiene que ser más corta que el panel completo: es la razón de existir.
|
|
67
|
+
completo = qm.medir_panel(datos)
|
|
68
|
+
if alto >= completo:
|
|
69
|
+
fallas.append(f"la minimalista ({alto} px) no es más corta que el panel completo ({completo} px)")
|
|
70
|
+
|
|
71
|
+
# 3 · la básica, idéntica a no haber elegido nada
|
|
72
|
+
qm.capturar(datos, f"{tmp}/sin.png")
|
|
73
|
+
qm.capturar(dict(datos, apariencia="basica"), f"{tmp}/basica.png")
|
|
74
|
+
qm.capturar(dict(datos, apariencia="neon"), f"{tmp}/neon.png")
|
|
75
|
+
sin = Path(f"{tmp}/sin.png").read_bytes()
|
|
76
|
+
if Path(f"{tmp}/basica.png").read_bytes() != sin:
|
|
77
|
+
fallas.append("el panel con apariencia «basica» no es idéntico al de siempre")
|
|
78
|
+
if Path(f"{tmp}/neon.png").read_bytes() != sin:
|
|
79
|
+
fallas.append("una apariencia desconocida no cae en el panel de siempre")
|
|
80
|
+
|
|
81
|
+
if fallas:
|
|
82
|
+
for f in fallas:
|
|
83
|
+
print(f"GATE ROJO: {f}", file=sys.stderr)
|
|
84
|
+
return 1
|
|
85
|
+
print(f"minimalista: {qm.ANCHO_MINI} px, letras s/w/wf, y la básica idéntica a la de siempre")
|
|
86
|
+
return 0
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
if __name__ == "__main__":
|
|
90
|
+
sys.exit(main())
|
package/scripts/hacer-deb.sh
CHANGED
|
@@ -29,6 +29,11 @@ mkdir -p "$arma/DEBIAN" "$arma/usr/lib/quartermaster" "$arma/usr/bin" \
|
|
|
29
29
|
|
|
30
30
|
cp -r bin src scripts extension Makefile package.json "$arma/usr/lib/quartermaster/"
|
|
31
31
|
cp README.md LICENSE "$arma/usr/share/doc/quartermaster/"
|
|
32
|
+
# El completado, en las dos rutas donde bash-completion y el zsh de Debian lo
|
|
33
|
+
# levantan solos, sin que nadie toque un .bashrc.
|
|
34
|
+
mkdir -p "$arma/usr/share/bash-completion/completions" "$arma/usr/share/zsh/vendor-completions"
|
|
35
|
+
cp paquetes/completions/qm.bash "$arma/usr/share/bash-completion/completions/qm"
|
|
36
|
+
cp paquetes/completions/_qm "$arma/usr/share/zsh/vendor-completions/_qm"
|
|
32
37
|
# El lanzador sigue los symlinks para encontrar el src/, así que un enlace
|
|
33
38
|
# alcanza y no hay que duplicar el árbol.
|
|
34
39
|
#
|
|
@@ -191,9 +191,12 @@ ManifestVersion: 1.6.0
|
|
|
191
191
|
// ── scoop ───────────────────────────────────────────────────────────────
|
|
192
192
|
// scoop no quiere instaladores: descomprime, arma shims y desinstala borrando
|
|
193
193
|
// el directorio. Por eso apunta al zip portable y no al .exe.
|
|
194
|
+
//
|
|
195
|
+
// En inglés, como el locale en-US de winget y el README: es la vidriera de un
|
|
196
|
+
// catálogo, y scoop no tiene campo por idioma.
|
|
194
197
|
const scoop = {
|
|
195
198
|
version,
|
|
196
|
-
description: '
|
|
199
|
+
description: 'How much quota you have left, in every agent account on the machine: every Claude Code profile, plus Codex, Antigravity and opencode.',
|
|
197
200
|
homepage: 'https://quartermaster.legios.com.ar/',
|
|
198
201
|
license: 'MIT',
|
|
199
202
|
// El piso es 22.6 y nodejs-lts lo pasa. Sin esto el shim se instala y no
|
|
@@ -208,9 +211,9 @@ const scoop = {
|
|
|
208
211
|
],
|
|
209
212
|
shortcuts: [['bin\\qm-tray.cmd', 'quartermaster (bandeja)', '', 'bin\\quartermaster.ico']],
|
|
210
213
|
notes: [
|
|
211
|
-
'
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
+
'The tray does not start by itself: `qm-tray` starts it, and so does the Start menu shortcut.',
|
|
215
|
+
'To start it when you sign in, put that shortcut in the Startup folder (shell:startup).',
|
|
216
|
+
'The dashboard in the browser: `qm-web`.',
|
|
214
217
|
],
|
|
215
218
|
checkver: { github: 'https://github.com/legiosai/quartermaster' },
|
|
216
219
|
autoupdate: {
|