hopdeck 1.2.1 → 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 CHANGED
@@ -1,5 +1,18 @@
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
+
11
+ ## 1.2.2
12
+
13
+ ### Corregido
14
+ - **Una errata en un comando ya no abre Hopdeck:** `hopdeck unistall` abría la interfaz y le pasaba la palabra a `claude` como argumento, que se aplicaba a los chats que abrieras. Ahora una palabra que no es un comando da un error con una sugerencia («¿Quisiste decir "uninstall"?»). También se aceptan `--uninstall`, `--install`, `--doctor` y los alias `desinstalar`, `instalar`, `ayuda`, `version` y `list`. Lo que empieza por `-` sigue pasando a `claude`.
15
+
3
16
  ## 1.2.1
4
17
 
5
18
  ### 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 install`.
56
+ You can say no and always use `hopdeck`. If you change your mind: `hopdeck shortcut on`.
57
57
 
58
- **Remove it:** `hopdeck uninstall`. To skip it once: `HOPDECK_SKIP=1 claude`.
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
 
@@ -148,9 +148,22 @@ It always starts at `~`. Recently used folders appear on top (`↻ recent`).
148
148
  ### More
149
149
 
150
150
  - The project's **git branch** is shown and the list refreshes itself.
151
- - `hopdeck --list` prints the projects as plain text. `hopdeck <arguments>` passes them to `claude` when opening chats (for example `hopdeck --model opus`).
152
151
  - Available in **Spanish and English** (follows the system language).
153
152
 
153
+ ## Commands
154
+
155
+ | Command | What it does |
156
+ |---|---|
157
+ | `hopdeck` | Opens 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 |
160
+ | `hopdeck doctor` | Checks your setup and tells you how to fix whatever is missing |
161
+ | `hopdeck --list` | Lists the projects as plain text |
162
+ | `hopdeck --version` | Shows the version |
163
+ | `hopdeck --model opus` | Anything starting with `-` is passed to `claude` when opening chats |
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.
166
+
154
167
  ## Compatibility
155
168
 
156
169
  | System | Works with | Notes |
@@ -194,7 +207,7 @@ Other variables: `HOPDECK_EMBED=1` forces the built-in terminal, `HOPDECK_NOTMUX
194
207
 
195
208
  - **Nothing is sent to the internet.** No telemetry, no analytics, no network requests. Everything happens on your machine.
196
209
  - It reads your local Claude Code history and launches the `claude` you already have. It does not touch your session or your credentials.
197
- - It only writes its preferences and cache (in your home folder), the `hopdeck install` block in your shell profile and, if you rename a conversation, that conversation's title.
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.
198
211
 
199
212
  More details, and how to report a security problem: [SECURITY.md](SECURITY.md).
200
213
 
@@ -214,7 +227,7 @@ Always start with `hopdeck doctor`.
214
227
 
215
228
  **I can't select text with the mouse.** Press `F3` to turn Hopdeck's mouse off, or hold `Shift` while dragging.
216
229
 
217
- **I want `claude` back to normal.** `hopdeck uninstall`, or `HOPDECK_SKIP=1 claude` to skip it once.
230
+ **I want `claude` back to normal.** `hopdeck shortcut off`, or `HOPDECK_SKIP=1 claude` to skip it once.
218
231
 
219
232
  **It looks wrong in my terminal.** Try `HOPDECK_THEME=light` (light background) or `NO_COLOR=1`.
220
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 install`.
56
+ Puedes decir que no y usar siempre `hopdeck`. Si cambias de idea: `hopdeck shortcut on`.
57
57
 
58
- **Quitarlo:** `hopdeck uninstall`. Para saltarlo una sola vez: `HOPDECK_SKIP=1 claude`.
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
 
@@ -148,9 +148,22 @@ Empieza siempre en `~`. Las carpetas que usaste hace poco aparecen arriba (`↻
148
148
  ### Otros detalles
149
149
 
150
150
  - Se muestra la **rama de git** del proyecto y la lista se refresca sola.
151
- - `hopdeck --list` imprime los proyectos en texto plano. `hopdeck <argumentos>` pasa esos argumentos a `claude` al abrir chats (por ejemplo `hopdeck --model opus`).
152
151
  - Disponible en **español e inglés** (sigue el idioma del sistema).
153
152
 
153
+ ## Comandos
154
+
155
+ | Comando | Qué hace |
156
+ |---|---|
157
+ | `hopdeck` | Abre 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 |
160
+ | `hopdeck doctor` | Revisa tu instalación y dice cómo arreglar lo que falte |
161
+ | `hopdeck --list` | Lista los proyectos en texto plano |
162
+ | `hopdeck --version` | Muestra la versión |
163
+ | `hopdeck --model opus` | Lo que empiece por `-` se pasa a `claude` al abrir chats |
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.
166
+
154
167
  ## Compatibilidad
155
168
 
156
169
  | Sistema | Funciona con | Notas |
@@ -194,7 +207,7 @@ Otras variables: `HOPDECK_EMBED=1` fuerza el terminal integrado, `HOPDECK_NOTMUX
194
207
 
195
208
  - **No envía nada a internet.** Sin telemetría, sin analítica, sin peticiones de red. Todo ocurre en tu equipo.
196
209
  - Lee tu historial local de Claude Code y lanza el `claude` que ya tienes. No toca tu sesión ni tus credenciales.
197
- - Solo escribe sus preferencias y su caché (en tu carpeta de usuario), el bloque de `hopdeck install` en tu perfil de shell y, si renombras una conversación, el título de esa conversación.
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.
198
211
 
199
212
  Más detalles, y cómo avisar de un problema de seguridad: [SECURITY.md](SECURITY.md).
200
213
 
@@ -214,7 +227,7 @@ Empieza siempre por `hopdeck doctor`.
214
227
 
215
228
  **No puedo seleccionar texto con el ratón.** Pulsa `F3` para apagar el ratón de Hopdeck, o mantén `Shift` mientras arrastras.
216
229
 
217
- **Quiero que `claude` vuelva a ser el de siempre.** `hopdeck uninstall`, o `HOPDECK_SKIP=1 claude` para saltarlo una vez.
230
+ **Quiero que `claude` vuelva a ser el de siempre.** `hopdeck shortcut off`, o `HOPDECK_SKIP=1 claude` para saltarlo una vez.
218
231
 
219
232
  **Se ve mal en mi terminal.** Prueba `HOPDECK_THEME=light` (fondo claro) o `NO_COLOR=1`.
220
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 install`, 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 uninstall` quita el bloque.
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 install" no existe todavía
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,20 +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 ─────────────────────────
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);
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]; };
1944
+ /** El comando que se quiso escribir (por parecido, sin contar guiones, o por sinónimo), o null. */
1945
+ function suggestCommand(word) {
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; } }
1950
+ return best;
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'];
1954
+
1909
1955
  function main() {
1910
1956
  const [cmd, ...rest] = process.argv.slice(2);
1911
- if (cmd === 'install') { install(false); markAsked(); }
1912
- else if (cmd === 'uninstall') { install(true); markAsked(); }
1913
- else if (cmd === 'help' || cmd === '--help' || cmd === '-h') tutorial(false);
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))) {
1960
+ const sug = suggestCommand(cmd);
1961
+ console.error(`${C.warn}${T.unknownCmd(cmd)}${R}${sug ? ' ' + T.didYouMean(sug) : ''}\n${C.dim}${T.cmdList}${R}`);
1962
+ process.exit(2);
1963
+ }
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);
1914
1973
  else if (cmd === '--version' || cmd === '-v') console.log(VERSION);
1915
1974
  else if (cmd === '--list') printList();
1916
- else if (cmd === 'doctor') doctor();
1975
+ else if (commandName(cmd) === 'doctor') doctor();
1917
1976
  else if (cmd === '--idle') idle();
1918
1977
  else if (cmd === '--frame') { // vista previa de un cuadro (pruebas)
1919
1978
  load();
@@ -1933,7 +1992,7 @@ else {
1933
1992
  module.exports = {
1934
1993
  cw, strW, fit, clean, imageExt, exportImages, safeId, findClaude, install, backupProfile, ago, tidy, fuzzy, wrapText, parseKeys, KEYMAP, isType, T, S, CFG, E,
1935
1994
  readSession, buildProject, scan, scanAsync, finishScan, sortProjects, projectDirs,
1936
- view, flatList, stripBlock, offerShortcut, SNIP, MARK_A, MARK_B, toggleProject, cacheLoad, selNorm,
1995
+ view, flatList, stripBlock, offerShortcut, uninstallAll, commandName, suggestCommand, SNIP, MARK_A, MARK_B, toggleProject, cacheLoad, selNorm,
1937
1996
  decodePNG, decodeImage, scaleBox, fitSize, halfBlocks, collectImages, extractImages,
1938
1997
  editBuf, normalizeKeys, stripJsonc, wtCtrlV, fbNames, fbOpen, fbRows, sidebarMouse, gitBranch, imageMarkerAt, shownSession, linkChats, findImageByNumber: images.findImageByNumber,
1939
1998
  };
package/lib/i18n.js CHANGED
@@ -20,13 +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
- offerQ: '¿Quieres poder abrir Hopdeck escribiendo claude?', offerInfo: 'Se añade una función a tu perfil de shell, con copia de seguridad (para quitarla: hopdeck uninstall). 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 install', 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 install', offerCont: 'Pulsa una tecla para continuar…',
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…',
24
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',
25
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.',
26
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',
27
31
  dcTmux: 'tmux disponible → vista dividida con tmux', dcEmbed: 'Terminal embebido disponible (node-pty + xterm) → vista dividida',
28
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).',
29
- dcShort: 'Atajo instalado: escribir "claude" abre Hopdeck', dcNoShort: 'Atajo no instalado', dcNoShortHint: 'Ejecuta: hopdeck install', dcNoCmdHint: 'Primero crea el comando (npm install -g hopdeck, o npm link si clonaste el repositorio) y luego ejecuta: hopdeck install', dcPrefs: (a, b) => `Preferencias: ${a} · caché: ${b}`, bakMsg: (f) => `Copia de seguridad de tu perfil: ${f}`,
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}`,
30
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',
31
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.',
32
36
  hiddenMsg: 'Proyecto oculto. Pulsa H para ver los ocultos.', pinMsg: 'Fijado arriba ★',
@@ -55,13 +59,17 @@ const T = {
55
59
  copied: (n) => `Copied (${n} chars)`, archMsg: 'Archived (H to show)', unarchMsg: 'Unarchived', qsHint: 'jump to any conversation',
56
60
  prevHint: '⏎ resume this conversation', noPrev: 'No messages to show',
57
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',
58
- 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 uninstall). 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 install', 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 install', offerCont: 'Press any key to continue…',
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…',
59
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',
60
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.',
61
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',
62
70
  dcTmux: 'tmux available → split view with tmux', dcEmbed: 'Embedded terminal available (node-pty + xterm) → split view',
63
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).',
64
- dcShort: 'Shortcut installed: typing "claude" opens Hopdeck', dcNoShort: 'Shortcut not installed', dcNoShortHint: 'Run: hopdeck install', dcNoCmdHint: 'First create the command (npm install -g hopdeck, or npm link if you cloned the repo), then run: hopdeck install', dcPrefs: (a, b) => `Preferences: ${a} · cache: ${b}`, bakMsg: (f) => `Backup of your profile: ${f}`,
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}`,
65
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',
66
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.',
67
75
  hiddenMsg: 'Project hidden. Press H to show hidden ones.', pinMsg: 'Pinned on top ★',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hopdeck",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Selector visual de proyectos y conversaciones para Claude Code, en la terminal: salta entre proyectos sin hacer cd.",
5
5
  "author": "fabriciodev26",
6
6
  "license": "MIT",