nexpass 0.0.0-stage → 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nexgen Systems
4
+ Copyright (c) 2021 Jesse Luehrs (rbw, https://github.com/doy/rbw)
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
7
+ this software and associated documentation files (the "Software"), to deal in
8
+ the Software without restriction, including without limitation the rights to
9
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10
+ the Software, and to permit persons to whom the Software is furnished to do so,
11
+ subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,40 @@
1
- # Temporary Holding Version
1
+ # nexpass
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Cliente de contraseñas por línea de comandos, compatible con servidores Bitwarden y Vaultwarden.
4
+
5
+ ```bash
6
+ npm install -g nexpass
7
+ nexpass config set base_url https://tu-servidor
8
+ nexpass register # una vez por dispositivo
9
+ nexpass unlock
10
+ nexpass list
11
+ nexpass get github
12
+ ```
13
+
14
+ ## Plataformas
15
+
16
+ | Plataforma | Estado |
17
+ |---|---|
18
+ | Linux x64 (estático, musl) | sí |
19
+ | Linux arm64 | pendiente |
20
+ | macOS x64 / arm64 | pendiente |
21
+ | Windows | no; usa WSL |
22
+
23
+ En una plataforma sin binario, `npm install` falla con `EBADPLATFORM`. Es intencionado: mejor
24
+ un error claro al instalar que un comando roto después.
25
+
26
+ ## Qué es esto
27
+
28
+ Un binario de [rbw](https://github.com/doy/rbw) de Jesse Luehrs, con la marca de Nexpass y unos
29
+ pocos ajustes: nombre del ejecutable, carpeta de configuración (`~/.config/nexpass`, con respaldo a
30
+ `~/.config/rbw`) y cadena de versión.
31
+
32
+ Mantiene el comportamiento original: un agente en segundo plano guarda las claves descifradas, como
33
+ hace `ssh-agent`, así que no hay que pasar la contraseña maestra por variables de entorno en cada
34
+ comando.
35
+
36
+ Licencia MIT. El servidor con el que habla no está en este paquete: es [nexpass-server](https://github.com/NexgenSystemsMX/nexpass),
37
+ basado en Vaultwarden (AGPL-3.0).
38
+
39
+ Bitwarden es una marca registrada de Bitwarden Inc. Este proyecto no está afiliado ni respaldado por
40
+ Bitwarden Inc.
Binary file
Binary file
package/bin/nexpass.js ADDED
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env node
2
+ // Lanzador del binario de nexpass.
3
+ //
4
+ // El paquete lleva dos binarios: `nexpass` (el cliente) y `nexpass-agent` (el proceso
5
+ // que guarda las claves en memoria). El CLI busca al agente en `RBW_AGENT` o, si no
6
+ // está, en el PATH; aquí le decimos dónde vive el que viene en este paquete, porque
7
+ // npm sólo enlaza en el PATH el binario que declara `bin`.
8
+ 'use strict';
9
+
10
+ const { spawnSync } = require('node:child_process');
11
+ const path = require('node:path');
12
+ const fs = require('node:fs');
13
+
14
+ const SUPPORTED = {
15
+ 'linux-x64': 'linux-x64',
16
+ };
17
+
18
+ const platform = `${process.platform}-${process.arch}`;
19
+ const suffix = SUPPORTED[platform];
20
+
21
+ if (process.platform === 'win32') {
22
+ console.error('nexpass: no hay compilación nativa para Windows. Usa WSL.');
23
+ process.exit(1);
24
+ }
25
+
26
+ if (!suffix) {
27
+ console.error(`nexpass: plataforma no soportada (${platform}).`);
28
+ console.error(`Compilaciones publicadas: ${Object.keys(SUPPORTED).join(', ')}.`);
29
+ process.exit(1);
30
+ }
31
+
32
+ const cli = path.join(__dirname, `nexpass-${suffix}`);
33
+ const agent = path.join(__dirname, `nexpass-agent-${suffix}`);
34
+
35
+ for (const [label, file] of [['CLI', cli], ['agente', agent]]) {
36
+ if (!fs.existsSync(file)) {
37
+ console.error(`nexpass: falta el binario del ${label} para ${platform} (${path.basename(file)}).`);
38
+ console.error('Reinstala el paquete; puede que se instalara con --ignore-scripts o sea una versión antigua.');
39
+ process.exit(1);
40
+ }
41
+ }
42
+
43
+ // Las dos variables: NEXPASS_AGENT es la nuestra, RBW_AGENT la que entiende el
44
+ // código heredado de rbw. Se exportan para que el CLI y el agente se encuentren.
45
+ const env = { ...process.env, NEXPASS_AGENT: agent, RBW_AGENT: agent };
46
+
47
+ const result = spawnSync(cli, process.argv.slice(2), { stdio: 'inherit', env });
48
+
49
+ if (result.error) {
50
+ console.error(`nexpass: no se pudo ejecutar el binario: ${result.error.message}`);
51
+ process.exit(1);
52
+ }
53
+
54
+ // Conservar el código de salida real; si lo mató una señal, reflejarlo como 128+n
55
+ // en lugar de devolver un 1 genérico.
56
+ if (result.signal) {
57
+ const signals = { SIGHUP: 1, SIGINT: 2, SIGQUIT: 3, SIGKILL: 9, SIGTERM: 15 };
58
+ process.exit(128 + (signals[result.signal] || 0));
59
+ }
60
+
61
+ process.exit(result.status === null ? 1 : result.status);
package/package.json CHANGED
@@ -1,6 +1,39 @@
1
1
  {
2
2
  "name": "nexpass",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Nexpass CLI \u2014 cliente de contrase\u00f1as compatible con Bitwarden (basado en rbw)",
5
+ "keywords": [
6
+ "password-manager",
7
+ "bitwarden",
8
+ "vaultwarden",
9
+ "cli"
10
+ ],
11
+ "homepage": "https://github.com/NexgenSystemsMX/nexpass",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/NexgenSystemsMX/nexpass.git"
15
+ },
16
+ "license": "MIT",
17
+ "author": "Nexgen Systems",
18
+ "bin": {
19
+ "nexpass": "bin/nexpass.js"
20
+ },
21
+ "files": [
22
+ "bin/",
23
+ "README.md",
24
+ "LICENSE"
25
+ ],
26
+ "os": [
27
+ "linux"
28
+ ],
29
+ "cpu": [
30
+ "x64"
31
+ ],
32
+ "engines": {
33
+ "node": ">=18"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public",
37
+ "provenance": false
38
+ }
39
+ }