hopdeck 1.2.2 → 1.2.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/CHANGELOG.md +8 -0
- package/README.en.md +7 -6
- package/README.md +7 -6
- package/SECURITY.md +2 -1
- package/bin/hopdeck.js +59 -23
- package/lib/i18n.js +12 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Cambios
|
|
2
2
|
|
|
3
|
+
## 1.2.3
|
|
4
|
+
|
|
5
|
+
### Cambiado
|
|
6
|
+
- **`hopdeck uninstall` desinstala de verdad.** Antes solo quitaba el atajo de `claude` y Hopdeck seguía instalado (`hopdeck --version` seguía funcionando). Ahora quita el atajo de tu perfil, borra tus preferencias y la caché y desinstala el programa (`npm uninstall -g hopdeck`). Pregunta antes; sin terminal exige `--yes`. No toca tu historial de Claude Code ni las copias de seguridad de tus perfiles.
|
|
7
|
+
- **El atajo de `claude` se gestiona con `hopdeck shortcut on` y `hopdeck shortcut off`** (antes `hopdeck install` y `hopdeck uninstall`).
|
|
8
|
+
- **Una sola forma para cada comando:** `hopdeck shortcut on|off`, `hopdeck uninstall`, `hopdeck doctor` y `hopdeck help`. Se retiran las variantes que la 1.2.2 aceptaba (`--install`, `--uninstall`, `--doctor` y los alias en español): ahora dan un error que sugiere el comando correcto, en lugar de ejecutarse.
|
|
9
|
+
- **Las erratas con guiones también avisan:** `hopdeck --unistall` abría Hopdeck en silencio y le pasaba esa opción a `claude`. Ahora una opción con guiones que se parece a un comando da el mismo error con sugerencia. Las opciones reales de `claude` (`--model`, `--resume`, `-p`…) se siguen pasando tal cual.
|
|
10
|
+
|
|
3
11
|
## 1.2.2
|
|
4
12
|
|
|
5
13
|
### Corregido
|
package/README.en.md
CHANGED
|
@@ -53,9 +53,9 @@ Done. You can also try it without installing: `npx hopdeck`.
|
|
|
53
53
|
- `claude` alone → opens Hopdeck.
|
|
54
54
|
- `claude <any argument>` (`-p`, `--resume`, `--model`…) → works exactly as usual.
|
|
55
55
|
|
|
56
|
-
You can say no and always use `hopdeck`. If you change your mind: `hopdeck
|
|
56
|
+
You can say no and always use `hopdeck`. If you change your mind: `hopdeck shortcut on`.
|
|
57
57
|
|
|
58
|
-
**Remove
|
|
58
|
+
**Remove only the shortcut:** `hopdeck shortcut off`. **Uninstall Hopdeck completely:** `hopdeck uninstall` (asks first; removes the shortcut, your preferences and cache, and the program). To skip the shortcut once: `HOPDECK_SKIP=1 claude`.
|
|
59
59
|
|
|
60
60
|
**Something wrong?** Run `hopdeck doctor`: it checks your setup and tells you how to fix whatever is missing.
|
|
61
61
|
|
|
@@ -155,13 +155,14 @@ It always starts at `~`. Recently used folders appear on top (`↻ recent`).
|
|
|
155
155
|
| Command | What it does |
|
|
156
156
|
|---|---|
|
|
157
157
|
| `hopdeck` | Opens Hopdeck |
|
|
158
|
-
| `hopdeck
|
|
158
|
+
| `hopdeck shortcut on` / `hopdeck shortcut off` | Installs or removes the shortcut so that `claude` opens Hopdeck |
|
|
159
|
+
| `hopdeck uninstall` | **Uninstalls Hopdeck completely**: the shortcut, your preferences and cache, and the program. Asks first (without a terminal, use `--yes`). Does not touch your Claude Code history |
|
|
159
160
|
| `hopdeck doctor` | Checks your setup and tells you how to fix whatever is missing |
|
|
160
161
|
| `hopdeck --list` | Lists the projects as plain text |
|
|
161
162
|
| `hopdeck --version` | Shows the version |
|
|
162
163
|
| `hopdeck --model opus` | Anything starting with `-` is passed to `claude` when opening chats |
|
|
163
164
|
|
|
164
|
-
|
|
165
|
+
Each command has **one single form**. Any other word, or a variant such as `install`, `--uninstall`, `desinstalar` or `unistall`, gives an error that suggests the right command and neither opens Hopdeck nor does anything.
|
|
165
166
|
|
|
166
167
|
## Compatibility
|
|
167
168
|
|
|
@@ -206,7 +207,7 @@ Other variables: `HOPDECK_EMBED=1` forces the built-in terminal, `HOPDECK_NOTMUX
|
|
|
206
207
|
|
|
207
208
|
- **Nothing is sent to the internet.** No telemetry, no analytics, no network requests. Everything happens on your machine.
|
|
208
209
|
- It reads your local Claude Code history and launches the `claude` you already have. It does not touch your session or your credentials.
|
|
209
|
-
- It only writes its preferences and cache (in your home folder), the `hopdeck
|
|
210
|
+
- It only writes its preferences and cache (in your home folder), the `hopdeck shortcut on` block in your shell profile and, if you rename a conversation, that conversation's title.
|
|
210
211
|
|
|
211
212
|
More details, and how to report a security problem: [SECURITY.md](SECURITY.md).
|
|
212
213
|
|
|
@@ -226,7 +227,7 @@ Always start with `hopdeck doctor`.
|
|
|
226
227
|
|
|
227
228
|
**I can't select text with the mouse.** Press `F3` to turn Hopdeck's mouse off, or hold `Shift` while dragging.
|
|
228
229
|
|
|
229
|
-
**I want `claude` back to normal.** `hopdeck
|
|
230
|
+
**I want `claude` back to normal.** `hopdeck shortcut off`, or `HOPDECK_SKIP=1 claude` to skip it once.
|
|
230
231
|
|
|
231
232
|
**It looks wrong in my terminal.** Try `HOPDECK_THEME=light` (light background) or `NO_COLOR=1`.
|
|
232
233
|
|
package/README.md
CHANGED
|
@@ -53,9 +53,9 @@ Listo. También puedes probarlo sin instalar: `npx hopdeck`.
|
|
|
53
53
|
- `claude` solo → abre Hopdeck.
|
|
54
54
|
- `claude <cualquier argumento>` (`-p`, `--resume`, `--model`…) → funciona exactamente igual que siempre.
|
|
55
55
|
|
|
56
|
-
Puedes decir que no y usar siempre `hopdeck`. Si cambias de idea: `hopdeck
|
|
56
|
+
Puedes decir que no y usar siempre `hopdeck`. Si cambias de idea: `hopdeck shortcut on`.
|
|
57
57
|
|
|
58
|
-
**
|
|
58
|
+
**Quitar solo el atajo:** `hopdeck shortcut off`. **Desinstalar Hopdeck por completo:** `hopdeck uninstall` (pregunta antes; quita el atajo, tus preferencias y la caché, y el programa). Para saltar el atajo una sola vez: `HOPDECK_SKIP=1 claude`.
|
|
59
59
|
|
|
60
60
|
**¿Algo no va bien?** Ejecuta `hopdeck doctor`: revisa tu instalación y dice cómo arreglar lo que falte.
|
|
61
61
|
|
|
@@ -155,13 +155,14 @@ Empieza siempre en `~`. Las carpetas que usaste hace poco aparecen arriba (`↻
|
|
|
155
155
|
| Comando | Qué hace |
|
|
156
156
|
|---|---|
|
|
157
157
|
| `hopdeck` | Abre Hopdeck |
|
|
158
|
-
| `hopdeck
|
|
158
|
+
| `hopdeck shortcut on` / `hopdeck shortcut off` | Instala o quita el atajo para que `claude` abra Hopdeck |
|
|
159
|
+
| `hopdeck uninstall` | **Desinstala Hopdeck por completo**: el atajo, tus preferencias y la caché, y el programa. Pregunta antes (sin terminal, usa `--yes`). No toca tu historial de Claude Code |
|
|
159
160
|
| `hopdeck doctor` | Revisa tu instalación y dice cómo arreglar lo que falte |
|
|
160
161
|
| `hopdeck --list` | Lista los proyectos en texto plano |
|
|
161
162
|
| `hopdeck --version` | Muestra la versión |
|
|
162
163
|
| `hopdeck --model opus` | Lo que empiece por `-` se pasa a `claude` al abrir chats |
|
|
163
164
|
|
|
164
|
-
|
|
165
|
+
Cada comando tiene **una sola forma**. Cualquier otra palabra, o una variante como `install`, `--uninstall`, `desinstalar` o `unistall`, da un error que sugiere el comando correcto y no abre Hopdeck ni hace nada.
|
|
165
166
|
|
|
166
167
|
## Compatibilidad
|
|
167
168
|
|
|
@@ -206,7 +207,7 @@ Otras variables: `HOPDECK_EMBED=1` fuerza el terminal integrado, `HOPDECK_NOTMUX
|
|
|
206
207
|
|
|
207
208
|
- **No envía nada a internet.** Sin telemetría, sin analítica, sin peticiones de red. Todo ocurre en tu equipo.
|
|
208
209
|
- Lee tu historial local de Claude Code y lanza el `claude` que ya tienes. No toca tu sesión ni tus credenciales.
|
|
209
|
-
- Solo escribe sus preferencias y su caché (en tu carpeta de usuario), el bloque de `hopdeck
|
|
210
|
+
- Solo escribe sus preferencias y su caché (en tu carpeta de usuario), el bloque de `hopdeck shortcut on` en tu perfil de shell y, si renombras una conversación, el título de esa conversación.
|
|
210
211
|
|
|
211
212
|
Más detalles, y cómo avisar de un problema de seguridad: [SECURITY.md](SECURITY.md).
|
|
212
213
|
|
|
@@ -226,7 +227,7 @@ Empieza siempre por `hopdeck doctor`.
|
|
|
226
227
|
|
|
227
228
|
**No puedo seleccionar texto con el ratón.** Pulsa `F3` para apagar el ratón de Hopdeck, o mantén `Shift` mientras arrastras.
|
|
228
229
|
|
|
229
|
-
**Quiero que `claude` vuelva a ser el de siempre.** `hopdeck
|
|
230
|
+
**Quiero que `claude` vuelva a ser el de siempre.** `hopdeck shortcut off`, o `HOPDECK_SKIP=1 claude` para saltarlo una vez.
|
|
230
231
|
|
|
231
232
|
**Se ve mal en mi terminal.** Prueba `HOPDECK_THEME=light` (fondo claro) o `NO_COLOR=1`.
|
|
232
233
|
|
package/SECURITY.md
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
- Escribe solo en tu equipo:
|
|
7
7
|
- `~/.hopdeck.json` (preferencias: proyectos fijados, ocultos, recientes…) y `~/.hopdeck-cache.json` (índice de títulos y primeros mensajes, con permisos solo para tu usuario).
|
|
8
8
|
- Una carpeta temporal privada con las imágenes cuando abres la galería con `o` (se borra al salir).
|
|
9
|
-
- Con `hopdeck
|
|
9
|
+
- Con `hopdeck shortcut on`, un bloque marcado en el perfil de tu shell (`~/.bashrc`, `~/.zshrc`, perfil de PowerShell…). Antes guarda una copia `<perfil>.hopdeck-backup` (la primera, sin sobrescribirla). `hopdeck shortcut off` quita el bloque.
|
|
10
|
+
- `hopdeck uninstall` (siempre con tu confirmación, o `--yes`) quita ese bloque, borra tus preferencias y la caché, y ejecuta `npm uninstall -g hopdeck`. No toca tu historial de Claude Code ni las copias de seguridad de los perfiles.
|
|
10
11
|
- Al renombrar una conversación (`R`), añade una línea `custom-title` al final de su archivo `.jsonl`, igual que hace Claude Code.
|
|
11
12
|
- Ejecuta el comando `claude` que encuentre en tu `PATH`. Si alguien puede cambiar tu `PATH`, puede cambiar qué se ejecuta (como con cualquier programa).
|
|
12
13
|
- Lo que se muestra en pantalla procedente del historial (títulos, mensajes, rutas) se limpia de caracteres de control y secuencias de escape antes de dibujarse.
|
package/bin/hopdeck.js
CHANGED
|
@@ -1695,7 +1695,7 @@ function doctor() {
|
|
|
1695
1695
|
else bad(T.dcNone, WIN ? T.dcNoneWin : T.dcNoneUnix);
|
|
1696
1696
|
let wrapped = false;
|
|
1697
1697
|
for (const t of targets()) { try { if (fs.readFileSync(t.file, 'utf8').includes(MARK_A)) wrapped = true; } catch { /* */ } }
|
|
1698
|
-
wrapped ? ok(T.dcShort) : bad(T.dcNoShort, findClaude('hopdeck') ? T.dcNoShortHint : T.dcNoCmdHint); // sin el comando en el PATH, "hopdeck
|
|
1698
|
+
wrapped ? ok(T.dcShort) : bad(T.dcNoShort, findClaude('hopdeck') ? T.dcNoShortHint : T.dcNoCmdHint); // sin el comando en el PATH, "hopdeck shortcut on" no existe todavía
|
|
1699
1699
|
ok(T.dcPrefs(shortPath(CFG_FILE), shortPath(CACHE_FILE)));
|
|
1700
1700
|
if (process.env.WT_SESSION) { // dentro de Windows Terminal: Ctrl+V solo pega texto y no deja pegar imágenes
|
|
1701
1701
|
const f = wtSettingsFile(); let st = null;
|
|
@@ -1817,6 +1817,34 @@ function install(remove, list = targets(), quiet = false) {
|
|
|
1817
1817
|
return { done, baks };
|
|
1818
1818
|
}
|
|
1819
1819
|
|
|
1820
|
+
/**
|
|
1821
|
+
* Desinstala Hopdeck por completo: quita el atajo del perfil, borra sus preferencias y su caché y ejecuta `npm uninstall -g hopdeck`.
|
|
1822
|
+
* Pregunta antes (sin terminal exige --yes). No toca el historial de Claude Code ni las copias de seguridad de tus perfiles.
|
|
1823
|
+
* HOPDECK_NO_NPM=1 no ejecuta npm (para las pruebas). Devuelve el código de salida.
|
|
1824
|
+
*/
|
|
1825
|
+
async function uninstallAll({ yes = false, list = targets() } = {}) {
|
|
1826
|
+
const tty = process.stdin.isTTY && process.stdout.isTTY;
|
|
1827
|
+
if (!yes) {
|
|
1828
|
+
if (!tty) { console.error(`${C.warn}${T.unNeedYes}${R}`); return 2; }
|
|
1829
|
+
process.stdout.write(`\n ${C.text}${C.bold}${T.unQ}${R}\n ${C.dim}${T.unInfo}${R}\n\n ${C.accent}${T.unKeys}${R}\n`);
|
|
1830
|
+
const ans = await readKey((k) => (/^[sSyY]$/.test(k) ? 'yes' : /^[nN]$/.test(k) || k === '\r' || k === '\n' || k === '\x1b' ? 'no' : undefined));
|
|
1831
|
+
if (ans !== 'yes') { console.log(`\n ${C.dim}${T.unCancel}${R}`); return 0; }
|
|
1832
|
+
}
|
|
1833
|
+
const ok = (m) => console.log(` ${C.ok}✓${R} ${m}`), note = (m) => console.log(` ${C.dim}· ${m}${R}`);
|
|
1834
|
+
console.log('');
|
|
1835
|
+
const had = hasShortcut(list);
|
|
1836
|
+
const r = install(true, list, true);
|
|
1837
|
+
if (had && r.done.length) ok(T.unShortcutOff); else note(T.unNoShortcut);
|
|
1838
|
+
for (const f of [CFG_FILE, CACHE_FILE, CACHE_FILE + '.tmp']) { try { fs.rmSync(f, { force: true }); } catch { /* */ } }
|
|
1839
|
+
ok(T.unData);
|
|
1840
|
+
if (process.env.HOPDECK_NO_NPM) { note(T.unSkipNpm); console.log(`\n ${C.dim}${T.unDone}${R}`); return 0; }
|
|
1841
|
+
const res = cp.spawnSync('npm uninstall -g hopdeck', { shell: true, stdio: 'inherit' }); // comando fijo, sin datos de fuera
|
|
1842
|
+
if (res.status === 0 && !fs.existsSync(__filename)) ok(T.unProgram);
|
|
1843
|
+
else console.log(` ${C.warn}✗${R} ${T.unProgramFail(path.dirname(__dirname))}`);
|
|
1844
|
+
console.log(`\n ${C.dim}${T.unDone}${R}`);
|
|
1845
|
+
return 0;
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1820
1848
|
// ── Primer arranque: ofrecer que escribir `claude` abra Hopdeck ──
|
|
1821
1849
|
const markAsked = () => { CFG.shortcutAsked = true; saveCfg(); };
|
|
1822
1850
|
const hasShortcut = (list) => list.some((t) => { try { return fs.readFileSync(t.file, 'utf8').includes(MARK_A); } catch { return false; } });
|
|
@@ -1890,7 +1918,7 @@ function tutorial(afterInstall) {
|
|
|
1890
1918
|
`${a}4${R} Al salir de Claude (${d}/exit${R}) vuelves aquí, sin abrir otra terminal`, '',
|
|
1891
1919
|
`${d}/ buscar · r recargar · q salir${R}`,
|
|
1892
1920
|
`${d}claude con argumentos (claude -p "...", claude --resume) funciona igual que siempre.${R}`,
|
|
1893
|
-
`${d}Desinstalar: hopdeck uninstall${R}`,
|
|
1921
|
+
`${d}Quitar el atajo: hopdeck shortcut off · Desinstalar todo: hopdeck uninstall${R}`,
|
|
1894
1922
|
] : [
|
|
1895
1923
|
`${C.brand}${b}» Hop${R}${C.text}${b}deck${R} ${d}v${VERSION}${R}`, '',
|
|
1896
1924
|
afterInstall ? `${C.ok}Done.${R} Open a new terminal and type ${b}claude${R}.` : `Type ${b}hopdeck${R} (or just ${b}claude${R} if you installed the shortcut).`, '',
|
|
@@ -1900,43 +1928,51 @@ function tutorial(afterInstall) {
|
|
|
1900
1928
|
`${a}4${R} When you exit Claude (${d}/exit${R}) you land back here — no new terminal needed`, '',
|
|
1901
1929
|
`${d}/ search · r reload · q quit${R}`,
|
|
1902
1930
|
`${d}claude with arguments (claude -p "...", claude --resume) works as usual.${R}`,
|
|
1903
|
-
`${d}Uninstall: hopdeck uninstall${R}`,
|
|
1931
|
+
`${d}Remove the shortcut: hopdeck shortcut off · Uninstall everything: hopdeck uninstall${R}`,
|
|
1904
1932
|
];
|
|
1905
1933
|
console.log('\n' + L.map((x) => ' ' + x).join('\n') + '\n');
|
|
1906
1934
|
}
|
|
1907
1935
|
|
|
1908
1936
|
// ───────────────────────── entrada ─────────────────────────
|
|
1909
|
-
// ── Comandos:
|
|
1910
|
-
const COMMANDS = ['
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
return COMMANDS.includes(w) ? w : COMMAND_ALIASES[w] || null;
|
|
1916
|
-
}
|
|
1937
|
+
// ── Comandos: UNA sola forma para cada uno (shortcut on|off, uninstall, doctor, help). Lo demás no hace nada: da un error con una sugerencia ──
|
|
1938
|
+
const COMMANDS = ['shortcut', 'uninstall', 'doctor', 'help'];
|
|
1939
|
+
// Palabras que alguien escribiría para lo mismo: no son comandos y no se ejecutan, solo sirven para sugerir el correcto
|
|
1940
|
+
const SYNONYMS = { install: 'shortcut on', instalar: 'shortcut on', atajo: 'shortcut on', desinstalar: 'uninstall', remove: 'uninstall', delete: 'uninstall', ayuda: 'help', diagnostico: 'doctor', version: '--version', list: '--list' };
|
|
1941
|
+
/** Nombre de comando si `arg` es exactamente uno (sin guiones ni variantes); null si no. */
|
|
1942
|
+
const commandName = (arg) => (COMMANDS.includes(String(arg || '').toLowerCase()) ? String(arg).toLowerCase() : null);
|
|
1917
1943
|
const editDistance = (a, b) => { const d = Array.from({ length: a.length + 1 }, (_, i) => [i, ...Array(b.length).fill(0)]); for (let j = 1; j <= b.length; j++) d[0][j] = j; for (let i = 1; i <= a.length; i++) for (let j = 1; j <= b.length; j++) d[i][j] = Math.min(d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1)); return d[a.length][b.length]; };
|
|
1918
|
-
/** El comando que
|
|
1944
|
+
/** El comando que se quiso escribir (por parecido, sin contar guiones, o por sinónimo), o null. */
|
|
1919
1945
|
function suggestCommand(word) {
|
|
1920
|
-
const w = String(word || '').toLowerCase();
|
|
1921
|
-
|
|
1946
|
+
const w = String(word || '').replace(/^-+/, '').toLowerCase();
|
|
1947
|
+
if (SYNONYMS[w]) return SYNONYMS[w];
|
|
1948
|
+
let best = null, bd = 3;
|
|
1949
|
+
for (const c of COMMANDS) { const d = editDistance(w, c); if (d < bd) { bd = d; best = c; } }
|
|
1922
1950
|
return best;
|
|
1923
1951
|
}
|
|
1952
|
+
// Opciones que el propio programa entiende; el resto de lo que empiece por "-" se pasa a claude
|
|
1953
|
+
const OWN_FLAGS = ['--help', '-h', '--version', '-v', '--list', '--idle', '--frame', '--sidebar'];
|
|
1924
1954
|
|
|
1925
1955
|
function main() {
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1956
|
+
const [cmd, ...rest] = process.argv.slice(2);
|
|
1957
|
+
// una palabra suelta, o una opción con guiones que se parece a un comando (--uninstall, --unistall…), es una errata: no se abre
|
|
1958
|
+
// Hopdeck ni se le pasa nada a claude
|
|
1959
|
+
if (cmd && !commandName(cmd) && !OWN_FLAGS.includes(cmd) && (!cmd.startsWith('-') || suggestCommand(cmd))) {
|
|
1930
1960
|
const sug = suggestCommand(cmd);
|
|
1931
1961
|
console.error(`${C.warn}${T.unknownCmd(cmd)}${R}${sug ? ' ' + T.didYouMean(sug) : ''}\n${C.dim}${T.cmdList}${R}`);
|
|
1932
1962
|
process.exit(2);
|
|
1933
1963
|
}
|
|
1934
|
-
if (cmd === '
|
|
1935
|
-
|
|
1936
|
-
|
|
1964
|
+
if (commandName(cmd) === 'shortcut') { // hopdeck shortcut on | off: solo el atajo de claude
|
|
1965
|
+
if (rest.length !== 1 || !['on', 'off'].includes(rest[0])) { console.error(`${C.warn}${T.shortcutUsage}${R}`); process.exit(2); }
|
|
1966
|
+
install(rest[0] === 'off'); markAsked();
|
|
1967
|
+
}
|
|
1968
|
+
else if (commandName(cmd) === 'uninstall') { // desinstalación completa: atajo, preferencias, caché y programa
|
|
1969
|
+
if (rest.some((a) => a !== '--yes' && a !== '-y')) { console.error(`${C.warn}${T.unknownCmd(rest.find((a) => a !== '--yes' && a !== '-y'))}${R}\n${C.dim}${T.cmdList}${R}`); process.exit(2); }
|
|
1970
|
+
uninstallAll({ yes: rest.length > 0 }).then((code) => process.exit(code), (e) => { console.error(e); process.exit(1); });
|
|
1971
|
+
}
|
|
1972
|
+
else if (commandName(cmd) === 'help' || cmd === '--help' || cmd === '-h') tutorial(false);
|
|
1937
1973
|
else if (cmd === '--version' || cmd === '-v') console.log(VERSION);
|
|
1938
1974
|
else if (cmd === '--list') printList();
|
|
1939
|
-
else if (cmd === 'doctor') doctor();
|
|
1975
|
+
else if (commandName(cmd) === 'doctor') doctor();
|
|
1940
1976
|
else if (cmd === '--idle') idle();
|
|
1941
1977
|
else if (cmd === '--frame') { // vista previa de un cuadro (pruebas)
|
|
1942
1978
|
load();
|
|
@@ -1956,7 +1992,7 @@ else {
|
|
|
1956
1992
|
module.exports = {
|
|
1957
1993
|
cw, strW, fit, clean, imageExt, exportImages, safeId, findClaude, install, backupProfile, ago, tidy, fuzzy, wrapText, parseKeys, KEYMAP, isType, T, S, CFG, E,
|
|
1958
1994
|
readSession, buildProject, scan, scanAsync, finishScan, sortProjects, projectDirs,
|
|
1959
|
-
view, flatList, stripBlock, offerShortcut, commandName, suggestCommand, SNIP, MARK_A, MARK_B, toggleProject, cacheLoad, selNorm,
|
|
1995
|
+
view, flatList, stripBlock, offerShortcut, uninstallAll, commandName, suggestCommand, SNIP, MARK_A, MARK_B, toggleProject, cacheLoad, selNorm,
|
|
1960
1996
|
decodePNG, decodeImage, scaleBox, fitSize, halfBlocks, collectImages, extractImages,
|
|
1961
1997
|
editBuf, normalizeKeys, stripJsonc, wtCtrlV, fbNames, fbOpen, fbRows, sidebarMouse, gitBranch, imageMarkerAt, shownSession, linkChats, findImageByNumber: images.findImageByNumber,
|
|
1962
1998
|
};
|
package/lib/i18n.js
CHANGED
|
@@ -20,14 +20,17 @@ const T = {
|
|
|
20
20
|
copied: (n) => `Copiado (${n} caracteres)`, archMsg: 'Archivada (H para verlas)', unarchMsg: 'Desarchivada', qsHint: 'saltar a cualquier conversación',
|
|
21
21
|
prevHint: '⏎ reanudar esta conversación', noPrev: 'Sin mensajes para mostrar',
|
|
22
22
|
bar6: 'ocultar lista', bar7: 'mostrar lista', deep: 'contenido', pathPrompt: 'nombre de la nueva carpeta', mkIn: 'se crea en', fbTitle: 'Elegir carpeta', fbHere: 'Abrir chat aquí', fbNew: 'Nueva carpeta aquí…', fbUp: 'Subir un nivel', fbProj: 'proyecto', fbHint: '⏎ entrar · ␣ abrir · / buscar · . ocultas', fbDrives: 'Este equipo', fbRecent: 'reciente', hoverMiss: (n) => `[Image #${n}]: aún no está en el historial`, fbEmpty: 'Sin subcarpetas', badId: 'Identificador de sesión no válido',
|
|
23
|
-
unknownCmd: (c) => `Comando desconocido: "${c}"`, didYouMean: (s) => `¿Quisiste decir "${s}"?`, cmdList: 'Comandos:
|
|
24
|
-
|
|
23
|
+
unknownCmd: (c) => `Comando desconocido: "${c}"`, didYouMean: (s) => `¿Quisiste decir "${s}"?`, cmdList: 'Comandos: hopdeck shortcut on|off · uninstall · doctor · help (y --list, --version).\nLas opciones de claude (por ejemplo --model opus) se pasan tal cual: hopdeck --model opus',
|
|
24
|
+
shortcutUsage: 'Uso: hopdeck shortcut on (instalar el atajo de claude) · hopdeck shortcut off (quitarlo)',
|
|
25
|
+
unQ: '¿Desinstalar Hopdeck por completo?', unInfo: 'Se quitará el atajo de tu perfil de shell, tus preferencias y la caché de Hopdeck, y el programa (npm uninstall -g hopdeck). Tu historial de Claude Code no se toca.', unKeys: '[s] Sí, desinstalar [Enter] No', unCancel: 'Cancelado: no se ha quitado nada.', unNeedYes: 'Sin terminal no puedo preguntar. Para desinstalar sin preguntar: hopdeck uninstall --yes',
|
|
26
|
+
unShortcutOff: 'Atajo quitado de tu perfil de shell', unNoShortcut: 'No había atajo instalado', unData: 'Preferencias y caché borradas', unProgram: 'Programa desinstalado (npm uninstall -g hopdeck)', unProgramFail: (p) => `El programa sigue en ${p}. Si no lo instalaste con npm, quítalo con tu gestor (pnpm, yarn…); si es una copia de código fuente, borra esa carpeta. Con npm: npm uninstall -g hopdeck`, unDone: 'Hopdeck se ha desinstalado. Si también lo instalaste en otro sitio (por ejemplo en WSL y en Windows), repite allí: hopdeck uninstall', unSkipNpm: 'Sin ejecutar npm (HOPDECK_NO_NPM). El comando sería: npm uninstall -g hopdeck',
|
|
27
|
+
offerQ: '¿Quieres poder abrir Hopdeck escribiendo claude?', offerInfo: 'Se añade una función a tu perfil de shell, con copia de seguridad (para quitarlo: hopdeck shortcut off). Responder que no no cambia nada: Hopdeck se abre igualmente y puedes usarlo siempre con el comando hopdeck.', offerKeys: '[Enter] Sí, instalar el atajo [n] No, gracias [m] Más tarde', offerNo: 'Atajo no instalado. Si cambias de idea: hopdeck shortcut on', offerLater: 'Te lo volveré a preguntar la próxima vez.', offerDone: 'Hecho. Abre una terminal nueva para activarlo.', offerFail: 'No se pudo modificar tu perfil. Puedes intentarlo luego con: hopdeck shortcut on', offerCont: 'Pulsa una tecla para continuar…',
|
|
25
28
|
dcNodeOld: (v) => `Node ${v}: se necesita Node 22 o superior`, dcNodeOldHint: 'Con versiones anteriores el ratón no funciona en Windows. Actualiza Node: https://nodejs.org',
|
|
26
29
|
dcHist: (n, p) => `Historial de Claude: ${n} proyectos en ${p}`, dcNoHist: (p) => `No hay historial en ${p}`, dcNoHistHint: 'Usa Claude Code una vez, o define CLAUDE_CONFIG_DIR.',
|
|
27
30
|
dcClaude: (p) => `claude encontrado: ${p}`, dcNoClaude: 'No se encuentra "claude" en el PATH', dcInstallWin: 'Instálalo: irm https://claude.ai/install.ps1 | iex', dcInstallUnix: 'Instálalo: curl -fsSL https://claude.ai/install.sh | bash',
|
|
28
31
|
dcTmux: 'tmux disponible → vista dividida con tmux', dcEmbed: 'Terminal embebido disponible (node-pty + xterm) → vista dividida',
|
|
29
32
|
dcNone: 'Sin tmux ni terminal embebido → vista a pantalla completa', dcNoneWin: 'Ejecuta npm install dentro de la carpeta del paquete.', dcNoneUnix: 'Instala tmux (brew install tmux / sudo apt install tmux).',
|
|
30
|
-
dcShort: 'Atajo instalado: escribir "claude" abre Hopdeck', dcNoShort: 'Atajo no instalado', dcNoShortHint: 'Ejecuta: hopdeck
|
|
33
|
+
dcShort: 'Atajo instalado: escribir "claude" abre Hopdeck', dcNoShort: 'Atajo no instalado', dcNoShortHint: 'Ejecuta: hopdeck shortcut on', dcNoCmdHint: 'Primero crea el comando (npm install -g hopdeck, o npm link si clonaste el repositorio) y luego ejecuta: hopdeck shortcut on', dcPrefs: (a, b) => `Preferencias: ${a} · caché: ${b}`, bakMsg: (f) => `Copia de seguridad de tu perfil: ${f}`,
|
|
31
34
|
wtOk: 'Windows Terminal: Ctrl+V está reasignado (se pueden pegar imágenes)', wtBad: 'Windows Terminal: Ctrl+V solo pega texto, no imágenes', wtUnknown: 'Windows Terminal: no pude leer su settings.json para revisar Ctrl+V',
|
|
32
35
|
wtHint: 'Para pegar imágenes con Ctrl+V añade en "actions" de settings.json:\n { "command": { "action": "sendInput", "input": "\\u001bv" }, "keys": "ctrl+v" }\n (el texto se sigue pegando con Ctrl+Shift+V). Alternativa sin tocar nada: Alt+V.',
|
|
33
36
|
hiddenMsg: 'Proyecto oculto. Pulsa H para ver los ocultos.', pinMsg: 'Fijado arriba ★',
|
|
@@ -56,14 +59,17 @@ const T = {
|
|
|
56
59
|
copied: (n) => `Copied (${n} chars)`, archMsg: 'Archived (H to show)', unarchMsg: 'Unarchived', qsHint: 'jump to any conversation',
|
|
57
60
|
prevHint: '⏎ resume this conversation', noPrev: 'No messages to show',
|
|
58
61
|
bar6: 'hide list', bar7: 'show list', deep: 'content', pathPrompt: 'new folder name', mkIn: 'created in', fbTitle: 'Pick a folder', fbHere: 'Open chat here', fbNew: 'New folder here…', fbUp: 'Go up', fbProj: 'project', fbHint: '⏎ enter · ␣ open · / find · . hidden', fbDrives: 'This PC', fbRecent: 'recent', hoverMiss: (n) => `[Image #${n}]: not in the history yet`, fbEmpty: 'No subfolders', badId: 'Invalid session id',
|
|
59
|
-
unknownCmd: (c) => `Unknown command: "${c}"`, didYouMean: (s) => `Did you mean "${s}"?`, cmdList: 'Commands:
|
|
60
|
-
|
|
62
|
+
unknownCmd: (c) => `Unknown command: "${c}"`, didYouMean: (s) => `Did you mean "${s}"?`, cmdList: 'Commands: hopdeck shortcut on|off · uninstall · doctor · help (and --list, --version).\nclaude options (for example --model opus) are passed through as they are: hopdeck --model opus',
|
|
63
|
+
shortcutUsage: 'Usage: hopdeck shortcut on (install the claude shortcut) · hopdeck shortcut off (remove it)',
|
|
64
|
+
unQ: 'Uninstall Hopdeck completely?', unInfo: 'This removes the shortcut from your shell profile, Hopdeck\'s preferences and cache, and the program itself (npm uninstall -g hopdeck). Your Claude Code history is not touched.', unKeys: '[y] Yes, uninstall [Enter] No', unCancel: 'Cancelled: nothing was removed.', unNeedYes: 'Without a terminal I cannot ask. To uninstall without asking: hopdeck uninstall --yes',
|
|
65
|
+
unShortcutOff: 'Shortcut removed from your shell profile', unNoShortcut: 'There was no shortcut installed', unData: 'Preferences and cache deleted', unProgram: 'Program uninstalled (npm uninstall -g hopdeck)', unProgramFail: (p) => `The program is still at ${p}. If you did not install it with npm, remove it with your package manager (pnpm, yarn…); if it is a source copy, delete that folder. With npm: npm uninstall -g hopdeck`, unDone: 'Hopdeck has been uninstalled. If you also installed it elsewhere (for example in WSL and in Windows), repeat there: hopdeck uninstall', unSkipNpm: 'Not running npm (HOPDECK_NO_NPM). The command would be: npm uninstall -g hopdeck',
|
|
66
|
+
offerQ: 'Do you want to open Hopdeck by typing claude?', offerInfo: 'A function is added to your shell profile, with a backup (to remove it: hopdeck shortcut off). Answering no changes nothing: Hopdeck opens anyway and you can always use the hopdeck command.', offerKeys: '[Enter] Yes, install the shortcut [n] No, thanks [m] Later', offerNo: 'Shortcut not installed. If you change your mind: hopdeck shortcut on', offerLater: 'I will ask you again next time.', offerDone: 'Done. Open a new terminal to activate it.', offerFail: 'Could not modify your profile. You can try later with: hopdeck shortcut on', offerCont: 'Press any key to continue…',
|
|
61
67
|
dcNodeOld: (v) => `Node ${v}: Node 22 or newer is required`, dcNodeOldHint: 'With older versions the mouse does not work on Windows. Update Node: https://nodejs.org',
|
|
62
68
|
dcHist: (n, p) => `Claude history: ${n} projects in ${p}`, dcNoHist: (p) => `No history found in ${p}`, dcNoHistHint: 'Use Claude Code once, or set CLAUDE_CONFIG_DIR.',
|
|
63
69
|
dcClaude: (p) => `claude found: ${p}`, dcNoClaude: '"claude" not found in PATH', dcInstallWin: 'Install it: irm https://claude.ai/install.ps1 | iex', dcInstallUnix: 'Install it: curl -fsSL https://claude.ai/install.sh | bash',
|
|
64
70
|
dcTmux: 'tmux available → split view with tmux', dcEmbed: 'Embedded terminal available (node-pty + xterm) → split view',
|
|
65
71
|
dcNone: 'No tmux or embedded terminal → full-screen view', dcNoneWin: 'Run npm install inside the package folder.', dcNoneUnix: 'Install tmux (brew install tmux / sudo apt install tmux).',
|
|
66
|
-
dcShort: 'Shortcut installed: typing "claude" opens Hopdeck', dcNoShort: 'Shortcut not installed', dcNoShortHint: 'Run: hopdeck
|
|
72
|
+
dcShort: 'Shortcut installed: typing "claude" opens Hopdeck', dcNoShort: 'Shortcut not installed', dcNoShortHint: 'Run: hopdeck shortcut on', dcNoCmdHint: 'First create the command (npm install -g hopdeck, or npm link if you cloned the repo), then run: hopdeck shortcut on', dcPrefs: (a, b) => `Preferences: ${a} · cache: ${b}`, bakMsg: (f) => `Backup of your profile: ${f}`,
|
|
67
73
|
wtOk: 'Windows Terminal: Ctrl+V is remapped (images can be pasted)', wtBad: 'Windows Terminal: Ctrl+V only pastes text, not images', wtUnknown: 'Windows Terminal: could not read its settings.json to check Ctrl+V',
|
|
68
74
|
wtHint: 'To paste images with Ctrl+V add to "actions" in settings.json:\n { "command": { "action": "sendInput", "input": "\\u001bv" }, "keys": "ctrl+v" }\n (text can still be pasted with Ctrl+Shift+V). No-config alternative: Alt+V.',
|
|
69
75
|
hiddenMsg: 'Project hidden. Press H to show hidden ones.', pinMsg: 'Pinned on top ★',
|
package/package.json
CHANGED