@johpaz/hive 1.7.15 → 1.7.18
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 +32 -54
- package/dist/hive.js +5810 -4705
- package/package.json +47 -4
- package/packages/core/src/index.ts +41 -4
package/README.md
CHANGED
|
@@ -114,7 +114,7 @@ docker run -d \
|
|
|
114
114
|
-v hive-data:/root/.hive \
|
|
115
115
|
--name hive \
|
|
116
116
|
--restart unless-stopped \
|
|
117
|
-
johpaz/hive:1.7.
|
|
117
|
+
johpaz/hive:1.7.18
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
**Variables de entorno disponibles:**
|
|
@@ -145,30 +145,24 @@ docker compose logs -f hive
|
|
|
145
145
|
|
|
146
146
|
#### Acceso a archivos del sistema desde Docker
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
El `docker-compose.yml` monta automáticamente tu home completo dentro del contenedor — sin configuración adicional ni variables de entorno:
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Al ejecutar `./hive-docker.sh`, el script detecta tu sistema operativo y crea un archivo `.env` con el path correcto:
|
|
153
|
-
|
|
154
|
-
| Sistema | Path montado | Path dentro del contenedor |
|
|
150
|
+
| Sistema | Path del host | Path dentro del contenedor |
|
|
155
151
|
|---------|--------------|---------------------------|
|
|
156
152
|
| **Linux** | `/home/tu_usuario` | `/host/home` |
|
|
157
153
|
| **macOS** | `/Users/tu_usuario` | `/host/home` |
|
|
158
|
-
| **Windows** | `C
|
|
154
|
+
| **Windows** | `C:\Users\tu_usuario` | `/host/home` |
|
|
155
|
+
|
|
156
|
+
La variable `${HOME}` la detecta el shell automáticamente al hacer `docker compose up`.
|
|
159
157
|
|
|
160
|
-
**
|
|
158
|
+
**Configurar el workspace en la UI**
|
|
161
159
|
|
|
162
160
|
1. Abre la UI: `http://localhost:18790`
|
|
163
161
|
2. Ve a **Configuración del Agente** (o crea tu agente si es la primera vez)
|
|
164
|
-
3. En el campo **Workspace**, configura:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
- `/host/home/
|
|
168
|
-
- `/host/home/Proyectos` — solo carpeta Proyectos
|
|
169
|
-
- `/host/home` — todo tu home
|
|
170
|
-
|
|
171
|
-
**Paso 3 — El agente guarda la configuración**
|
|
162
|
+
3. En el campo **Workspace**, configura el subdirectorio que quieres:
|
|
163
|
+
- `/host/home` — todo tu home
|
|
164
|
+
- `/host/home/Documentos` — solo carpeta Documentos
|
|
165
|
+
- `/host/home/Proyectos` — solo carpeta Proyectos
|
|
172
166
|
|
|
173
167
|
El path se guarda en la base de datos SQLite (`agents.workspace`). A partir de ese momento, todas las operaciones de filesystem del agente están restringidas a ese directorio por seguridad.
|
|
174
168
|
|
|
@@ -177,28 +171,7 @@ El path se guarda en la base de datos SQLite (`agents.workspace`). A partir de e
|
|
|
177
171
|
```
|
|
178
172
|
Usuario: "Crea un archivo README.md en mi carpeta Proyectos"
|
|
179
173
|
Agente: → Escribe en: /host/home/Proyectos/README.md
|
|
180
|
-
→ Que se traduce a:
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
**Personalizar el path montado:**
|
|
184
|
-
|
|
185
|
-
Si quieres montar un directorio diferente, edita el archivo `.env`:
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
# Linux — montar solo Documentos
|
|
189
|
-
HIVE_HOME_PATH=/home/$USER/Documentos
|
|
190
|
-
|
|
191
|
-
# macOS — montar un directorio personalizado
|
|
192
|
-
HIVE_HOME_PATH=/Users/$USER/Desarrollo
|
|
193
|
-
|
|
194
|
-
# Windows — montar otro drive
|
|
195
|
-
HIVE_HOME_PATH=D:/Proyectos
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
Luego reinicia el contenedor:
|
|
199
|
-
```bash
|
|
200
|
-
docker compose down
|
|
201
|
-
docker compose up -d
|
|
174
|
+
→ Que se traduce a: ~/Proyectos/README.md (en tu host)
|
|
202
175
|
```
|
|
203
176
|
|
|
204
177
|
> **Nota de seguridad:** El agente solo puede acceder al path que configures como workspace. Si configuras `/host/home/Documentos`, no podrá leer `/host/home/Proyectos`.
|
|
@@ -215,10 +188,10 @@ En el equipo donde tienes conexión a internet:
|
|
|
215
188
|
|
|
216
189
|
```bash
|
|
217
190
|
# Descargar la imagen si no la tienes
|
|
218
|
-
docker pull johpaz/hive:1.7.
|
|
191
|
+
docker pull johpaz/hive:1.7.18
|
|
219
192
|
|
|
220
193
|
# Exportar a archivo tar (cabe en cualquier USB de 512 MB+)
|
|
221
|
-
docker save johpaz/hive:1.7.
|
|
194
|
+
docker save johpaz/hive:1.7.18 -o /media/usb/hive-image.tar
|
|
222
195
|
```
|
|
223
196
|
|
|
224
197
|
**Paso 2 — Crear la estructura en la USB**
|
|
@@ -236,7 +209,7 @@ Crea el `docker-compose.yml` en la USB con el volumen apuntando a la USB:
|
|
|
236
209
|
```yaml
|
|
237
210
|
services:
|
|
238
211
|
hive:
|
|
239
|
-
image: johpaz/hive:1.7.
|
|
212
|
+
image: johpaz/hive:1.7.18
|
|
240
213
|
ports:
|
|
241
214
|
- "18790:18790"
|
|
242
215
|
volumes:
|
|
@@ -315,11 +288,11 @@ Descarga manual de cualquier plataforma o versión específica.
|
|
|
315
288
|
|
|
316
289
|
| Plataforma | Archivo | Descarga directa |
|
|
317
290
|
|------------|---------|------------------|
|
|
318
|
-
| Linux x64 | `hive-v1.7.
|
|
319
|
-
| Linux ARM64 (Raspberry Pi, etc.) | `hive-v1.7.
|
|
320
|
-
| macOS Apple Silicon (M1/M2/M3/M4) | `hive-v1.7.
|
|
321
|
-
| macOS Intel | `hive-v1.7.
|
|
322
|
-
| Windows x64 | `hive-v1.7.
|
|
291
|
+
| Linux x64 | `hive-v1.7.18-linux-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.18-linux-x64) |
|
|
292
|
+
| Linux ARM64 (Raspberry Pi, etc.) | `hive-v1.7.18-linux-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.18-linux-arm64) |
|
|
293
|
+
| macOS Apple Silicon (M1/M2/M3/M4) | `hive-v1.7.18-macos-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.18-macos-arm64) |
|
|
294
|
+
| macOS Intel | `hive-v1.7.18-macos-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.18-macos-x64) |
|
|
295
|
+
| Windows x64 | `hive-v1.7.18-windows-x64.exe` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.18-windows-x64.exe) |
|
|
323
296
|
|
|
324
297
|
> Los links anteriores siempre apuntan a la última versión publicada. Si necesitas una versión específica, visita la [página de releases](https://github.com/johpaz/hive/releases).
|
|
325
298
|
|
|
@@ -329,7 +302,7 @@ Descarga manual de cualquier plataforma o versión específica.
|
|
|
329
302
|
|
|
330
303
|
```bash
|
|
331
304
|
# 1. Descargar el binario (reemplaza "linux-x64" por "linux-arm64" si es ARM)
|
|
332
|
-
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.
|
|
305
|
+
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.18-linux-x64
|
|
333
306
|
|
|
334
307
|
# 2. Dar permisos de ejecución
|
|
335
308
|
chmod +x hive
|
|
@@ -361,7 +334,7 @@ hive start
|
|
|
361
334
|
|
|
362
335
|
```bash
|
|
363
336
|
# 1. Descargar
|
|
364
|
-
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.
|
|
337
|
+
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.18-macos-arm64
|
|
365
338
|
|
|
366
339
|
# 2. Dar permisos de ejecución
|
|
367
340
|
chmod +x hive
|
|
@@ -382,6 +355,11 @@ mkdir -p ~/.hive/ui && cp -r ui-dist/* ~/.hive/ui/
|
|
|
382
355
|
>
|
|
383
356
|
> Alternativa: en Finder, haz clic derecho sobre el archivo → **Abrir** → **Abrir** de nuevo en el diálogo. Esto también lo desbloquea.
|
|
384
357
|
|
|
358
|
+
> **Error "there is no application set to open this document"**
|
|
359
|
+
> El binario es un ejecutable de terminal — **no se puede abrir con doble clic desde Finder**. Siempre se ejecuta desde Terminal con `./hive start`. Si aparece ese mensaje al hacer doble clic, ignóralo y usa Terminal.
|
|
360
|
+
>
|
|
361
|
+
> Si después del `xattr` el error persiste, ve a **Ajustes del Sistema → Privacidad y Seguridad** y haz clic en **"Abrir de todas formas"**.
|
|
362
|
+
|
|
385
363
|
**Agregar al PATH:**
|
|
386
364
|
|
|
387
365
|
```bash
|
|
@@ -396,7 +374,7 @@ hive start
|
|
|
396
374
|
Igual que Apple Silicon pero descarga `macos-x64`:
|
|
397
375
|
|
|
398
376
|
```bash
|
|
399
|
-
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.
|
|
377
|
+
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.18-macos-x64
|
|
400
378
|
chmod +x hive
|
|
401
379
|
xattr -d com.apple.quarantine hive
|
|
402
380
|
curl -L https://github.com/johpaz/hive/releases/latest/download/ui-dist.tar.gz \
|
|
@@ -411,7 +389,7 @@ mkdir -p ~/.hive/ui && cp -r ui-dist/* ~/.hive/ui/
|
|
|
411
389
|
|
|
412
390
|
**Paso 1 — Descargar el binario**
|
|
413
391
|
|
|
414
|
-
Descarga [`hive-v1.7.
|
|
392
|
+
Descarga [`hive-v1.7.18-windows-x64.exe`](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.18-windows-x64.exe) desde GitHub o desde [hiveagents.io](https://www.hiveagents.io/#installation).
|
|
415
393
|
|
|
416
394
|
**Paso 2 — Windows SmartScreen**
|
|
417
395
|
|
|
@@ -441,7 +419,7 @@ tar -xzf ui-dist.tar.gz -C "$env:USERPROFILE\.hive\ui"
|
|
|
441
419
|
**Paso 4 — Ejecutar**
|
|
442
420
|
|
|
443
421
|
```powershell
|
|
444
|
-
.\hive-v1.7.
|
|
422
|
+
.\hive-v1.7.18-windows-x64.exe start
|
|
445
423
|
```
|
|
446
424
|
|
|
447
425
|
El navegador se abre automáticamente en `http://localhost:18790`.
|
|
@@ -450,7 +428,7 @@ El navegador se abre automáticamente en `http://localhost:18790`.
|
|
|
450
428
|
|
|
451
429
|
```powershell
|
|
452
430
|
# Mover a una carpeta ya en el PATH, por ejemplo:
|
|
453
|
-
Move-Item .\hive-v1.7.
|
|
431
|
+
Move-Item .\hive-v1.7.18-windows-x64.exe C:\Windows\System32\hive.exe
|
|
454
432
|
|
|
455
433
|
# Luego ejecutar desde cualquier lugar:
|
|
456
434
|
hive start
|
|
@@ -501,7 +479,7 @@ El binario standalone es ideal para llevarlo en una USB. Tu agente viaja contigo
|
|
|
501
479
|
**Preparar la USB:**
|
|
502
480
|
|
|
503
481
|
```bash
|
|
504
|
-
cp hive-v1.7.
|
|
482
|
+
cp hive-v1.7.18-linux-x64 /media/usb/hive
|
|
505
483
|
chmod +x /media/usb/hive
|
|
506
484
|
cp -r ui-dist/* /media/usb/ui/
|
|
507
485
|
|