@johpaz/hive 1.7.7 → 1.7.9
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 +339 -46
- package/dist/hive.js +11 -7
- package/package.json +1 -1
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.9
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
**Variables de entorno disponibles:**
|
|
@@ -143,59 +143,336 @@ docker compose logs -f hive
|
|
|
143
143
|
|
|
144
144
|
---
|
|
145
145
|
|
|
146
|
+
#### Acceso a archivos del sistema desde Docker
|
|
147
|
+
|
|
148
|
+
Por defecto, el contenedor solo puede acceder al directorio `./workspace`. Para que el agente pueda leer, editar y eliminar archivos de tu sistema:
|
|
149
|
+
|
|
150
|
+
**Paso 1 — El script crea `.env` automáticamente**
|
|
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 |
|
|
155
|
+
|---------|--------------|---------------------------|
|
|
156
|
+
| **Linux** | `/home/tu_usuario` | `/host/home` |
|
|
157
|
+
| **macOS** | `/Users/tu_usuario` | `/host/home` |
|
|
158
|
+
| **Windows** | `C:/Users/tu_usuario` | `/host/home` |
|
|
159
|
+
|
|
160
|
+
**Paso 2 — Configurar el workspace en la UI**
|
|
161
|
+
|
|
162
|
+
1. Abre la UI: `http://localhost:18790`
|
|
163
|
+
2. Ve a **Configuración del Agente** (o crea tu agente si es la primera vez)
|
|
164
|
+
3. En el campo **Workspace**, configura: `/host/home`
|
|
165
|
+
|
|
166
|
+
También puedes usar subdirectorios:
|
|
167
|
+
- `/host/home/Documentos` — solo carpeta Documentos
|
|
168
|
+
- `/host/home/Proyectos` — solo carpeta Proyectos
|
|
169
|
+
- `/host/home` — todo tu home
|
|
170
|
+
|
|
171
|
+
**Paso 3 — El agente guarda la configuración**
|
|
172
|
+
|
|
173
|
+
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
|
+
|
|
175
|
+
**Ejemplo de uso:**
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
Usuario: "Crea un archivo README.md en mi carpeta Proyectos"
|
|
179
|
+
Agente: → Escribe en: /host/home/Proyectos/README.md
|
|
180
|
+
→ Que se traduce a: /home/johnpaez/Proyectos/README.md (en tu host)
|
|
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
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
> **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`.
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
#### Docker portable — USB o disco externo
|
|
209
|
+
|
|
210
|
+
Docker también puede viajar en una USB. La clave es exportar la imagen como archivo `.tar` y montar el volumen de datos desde la USB en vez de un volumen gestionado por Docker.
|
|
211
|
+
|
|
212
|
+
**Paso 1 — Exportar la imagen a un archivo**
|
|
213
|
+
|
|
214
|
+
En el equipo donde tienes conexión a internet:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
# Descargar la imagen si no la tienes
|
|
218
|
+
docker pull johpaz/hive:1.7.9
|
|
219
|
+
|
|
220
|
+
# Exportar a archivo tar (cabe en cualquier USB de 512 MB+)
|
|
221
|
+
docker save johpaz/hive:1.7.9 -o /media/usb/hive-image.tar
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
**Paso 2 — Crear la estructura en la USB**
|
|
225
|
+
|
|
226
|
+
```
|
|
227
|
+
/usb/
|
|
228
|
+
├── hive-image.tar ← imagen Docker exportada (~120 MB)
|
|
229
|
+
├── docker-compose.yml ← archivo de configuración
|
|
230
|
+
└── datos/ ← directorio de datos de Hive (se crea al primer arranque)
|
|
231
|
+
└── hive.db
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Crea el `docker-compose.yml` en la USB con el volumen apuntando a la USB:
|
|
235
|
+
|
|
236
|
+
```yaml
|
|
237
|
+
services:
|
|
238
|
+
hive:
|
|
239
|
+
image: johpaz/hive:1.7.9
|
|
240
|
+
ports:
|
|
241
|
+
- "18790:18790"
|
|
242
|
+
volumes:
|
|
243
|
+
- ./datos:/root/.hive
|
|
244
|
+
restart: unless-stopped
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
> La clave es `./datos:/root/.hive` — monta la carpeta `datos/` relativa al `docker-compose.yml`, que está en la USB. Así los datos viajan con la USB, no quedan en el equipo.
|
|
248
|
+
|
|
249
|
+
**Paso 3 — Cargar y ejecutar en cualquier equipo con Docker**
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
# 1. Cargar la imagen desde el archivo (sin internet)
|
|
253
|
+
docker load -i /media/usb/hive-image.tar
|
|
254
|
+
|
|
255
|
+
# 2. Ir al directorio de la USB
|
|
256
|
+
cd /media/usb
|
|
257
|
+
|
|
258
|
+
# 3. Levantar
|
|
259
|
+
docker compose up -d
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
Abre `http://localhost:18790` en el navegador. Si es la primera vez en ese equipo, muestra el wizard de setup. Si la USB ya tiene datos, carga tu agente directamente.
|
|
263
|
+
|
|
264
|
+
**Detener y llevar la USB a otro equipo:**
|
|
265
|
+
|
|
266
|
+
```bash
|
|
267
|
+
# Detener el contenedor
|
|
268
|
+
docker compose down
|
|
269
|
+
|
|
270
|
+
# En el otro equipo, volver al Paso 3
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
> **Nota para Windows:** Docker Desktop usa rutas como `D:\` para la USB. Ajusta el volumen en el `docker-compose.yml` a la letra de tu unidad:
|
|
274
|
+
> ```yaml
|
|
275
|
+
> volumes:
|
|
276
|
+
> - D:\datos:/root/.hive
|
|
277
|
+
> ```
|
|
278
|
+
|
|
279
|
+
**Backup de los datos del contenedor:**
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
# Copiar la BD desde la USB a tu máquina
|
|
283
|
+
cp /media/usb/datos/hive.db ~/backup-hive-$(date +%Y%m%d).db
|
|
284
|
+
|
|
285
|
+
# Restaurar
|
|
286
|
+
cp ~/backup-hive-20260312.db /media/usb/datos/hive.db
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
**Actualizar la imagen en la USB:**
|
|
290
|
+
|
|
291
|
+
```bash
|
|
292
|
+
# En un equipo con internet
|
|
293
|
+
docker pull johpaz/hive:latest
|
|
294
|
+
docker save johpaz/hive:latest -o /media/usb/hive-image.tar
|
|
295
|
+
|
|
296
|
+
# Actualizar el tag en docker-compose.yml
|
|
297
|
+
# Luego en cualquier equipo:
|
|
298
|
+
docker load -i /media/usb/hive-image.tar
|
|
299
|
+
docker compose up -d
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
146
304
|
### Opción 2 — Binario standalone (Sin dependencias)
|
|
147
305
|
|
|
148
306
|
Descarga un ejecutable único para tu plataforma. No requiere Node, Bun ni Docker. Al ejecutarlo, **el navegador se abre automáticamente** en `/setup` (primera vez) o en el dashboard.
|
|
149
307
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
308
|
+
#### Dónde descargar
|
|
309
|
+
|
|
310
|
+
**Desde la web** — [hiveagents.io](https://www.hiveagents.io/#installation)
|
|
311
|
+
La página detecta tu sistema operativo automáticamente y muestra el botón de descarga correcto. También puedes seleccionar otra plataforma desde el selector.
|
|
312
|
+
|
|
313
|
+
**Desde GitHub Releases** — [github.com/johpaz/hive/releases/latest](https://github.com/johpaz/hive/releases/latest)
|
|
314
|
+
Descarga manual de cualquier plataforma o versión específica.
|
|
315
|
+
|
|
316
|
+
| Plataforma | Archivo | Descarga directa |
|
|
317
|
+
|------------|---------|------------------|
|
|
318
|
+
| Linux x64 | `hive-v1.7.9-linux-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.9-linux-x64) |
|
|
319
|
+
| Linux ARM64 (Raspberry Pi, etc.) | `hive-v1.7.9-linux-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.9-linux-arm64) |
|
|
320
|
+
| macOS Apple Silicon (M1/M2/M3/M4) | `hive-v1.7.9-macos-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.9-macos-arm64) |
|
|
321
|
+
| macOS Intel | `hive-v1.7.9-macos-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.9-macos-x64) |
|
|
322
|
+
| Windows x64 | `hive-v1.7.9-windows-x64.exe` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.9-windows-x64.exe) |
|
|
323
|
+
|
|
324
|
+
> 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
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
#### Linux x64 / ARM64
|
|
329
|
+
|
|
330
|
+
```bash
|
|
331
|
+
# 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.9-linux-x64
|
|
333
|
+
|
|
334
|
+
# 2. Dar permisos de ejecución
|
|
335
|
+
chmod +x hive
|
|
336
|
+
|
|
337
|
+
# 3. Descargar la UI web
|
|
338
|
+
curl -L https://github.com/johpaz/hive/releases/latest/download/ui-dist.tar.gz \
|
|
339
|
+
| tar -xz --one-top-level=ui-dist
|
|
340
|
+
|
|
341
|
+
# 4. Colocar la UI donde Hive la espera
|
|
342
|
+
mkdir -p ~/.hive/ui
|
|
343
|
+
cp -r ui-dist/* ~/.hive/ui/
|
|
344
|
+
|
|
345
|
+
# 5. Ejecutar
|
|
346
|
+
./hive start
|
|
347
|
+
```
|
|
157
348
|
|
|
158
|
-
|
|
349
|
+
El gateway levanta en `http://localhost:18790`. El navegador se abre automáticamente.
|
|
350
|
+
|
|
351
|
+
**Agregar al PATH (opcional)** para ejecutar `hive` desde cualquier directorio:
|
|
159
352
|
|
|
160
353
|
```bash
|
|
161
|
-
|
|
162
|
-
|
|
354
|
+
sudo mv hive /usr/local/bin/hive
|
|
355
|
+
hive start
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
#### macOS — Apple Silicon (M1/M2/M3/M4)
|
|
361
|
+
|
|
362
|
+
```bash
|
|
363
|
+
# 1. Descargar
|
|
364
|
+
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.9-macos-arm64
|
|
365
|
+
|
|
366
|
+
# 2. Dar permisos de ejecución
|
|
163
367
|
chmod +x hive
|
|
164
368
|
|
|
165
|
-
#
|
|
166
|
-
|
|
167
|
-
|
|
369
|
+
# 3. Quitar la cuarentena de Gatekeeper (necesario en todos los binarios descargados)
|
|
370
|
+
xattr -d com.apple.quarantine hive
|
|
371
|
+
|
|
372
|
+
# 4. Descargar la UI
|
|
373
|
+
curl -L https://github.com/johpaz/hive/releases/latest/download/ui-dist.tar.gz \
|
|
374
|
+
| tar -xz --one-top-level=ui-dist
|
|
375
|
+
mkdir -p ~/.hive/ui && cp -r ui-dist/* ~/.hive/ui/
|
|
376
|
+
|
|
377
|
+
# 5. Ejecutar
|
|
378
|
+
./hive start
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
> **¿Por qué el paso `xattr`?** macOS bloquea binarios descargados de internet que no tienen firma de Apple. El comando `xattr -d com.apple.quarantine` elimina esa restricción. Si lo omites, verás el error: _"hive no se puede abrir porque Apple no puede comprobar que no contiene software malicioso"_.
|
|
382
|
+
>
|
|
383
|
+
> Alternativa: en Finder, haz clic derecho sobre el archivo → **Abrir** → **Abrir** de nuevo en el diálogo. Esto también lo desbloquea.
|
|
384
|
+
|
|
385
|
+
**Agregar al PATH:**
|
|
168
386
|
|
|
169
|
-
|
|
387
|
+
```bash
|
|
388
|
+
sudo mv hive /usr/local/bin/hive
|
|
389
|
+
hive start
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
#### macOS — Intel
|
|
395
|
+
|
|
396
|
+
Igual que Apple Silicon pero descarga `macos-x64`:
|
|
397
|
+
|
|
398
|
+
```bash
|
|
399
|
+
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.9-macos-x64
|
|
400
|
+
chmod +x hive
|
|
401
|
+
xattr -d com.apple.quarantine hive
|
|
402
|
+
curl -L https://github.com/johpaz/hive/releases/latest/download/ui-dist.tar.gz \
|
|
403
|
+
| tar -xz --one-top-level=ui-dist
|
|
404
|
+
mkdir -p ~/.hive/ui && cp -r ui-dist/* ~/.hive/ui/
|
|
170
405
|
./hive start
|
|
171
406
|
```
|
|
172
407
|
|
|
173
|
-
|
|
408
|
+
---
|
|
409
|
+
|
|
410
|
+
#### Windows x64
|
|
411
|
+
|
|
412
|
+
**Paso 1 — Descargar el binario**
|
|
413
|
+
|
|
414
|
+
Descarga [`hive-v1.7.9-windows-x64.exe`](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.9-windows-x64.exe) desde GitHub o desde [hiveagents.io](https://www.hiveagents.io/#installation).
|
|
415
|
+
|
|
416
|
+
**Paso 2 — Windows SmartScreen**
|
|
417
|
+
|
|
418
|
+
Al ejecutar por primera vez, Windows puede mostrar _"Windows protegió tu PC"_. Es normal para binarios sin firma de código.
|
|
419
|
+
|
|
420
|
+
1. Haz clic en **"Más información"**
|
|
421
|
+
2. Luego en **"Ejecutar de todas formas"**
|
|
422
|
+
|
|
423
|
+
**Paso 3 — Descargar la UI**
|
|
424
|
+
|
|
425
|
+
Descarga [`ui-dist.tar.gz`](https://github.com/johpaz/hive/releases/latest/download/ui-dist.tar.gz) y extrae su contenido en:
|
|
426
|
+
|
|
427
|
+
```
|
|
428
|
+
C:\Users\TU_USUARIO\.hive\ui\
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
Puedes usar [7-Zip](https://www.7-zip.org/) o WSL para extraer el `.tar.gz`. Con PowerShell 5+:
|
|
174
432
|
|
|
175
433
|
```powershell
|
|
176
|
-
#
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
434
|
+
# Crear la carpeta de destino
|
|
435
|
+
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.hive\ui"
|
|
436
|
+
|
|
437
|
+
# Extraer (requiere PowerShell 5+ o Windows 11)
|
|
438
|
+
tar -xzf ui-dist.tar.gz -C "$env:USERPROFILE\.hive\ui"
|
|
180
439
|
```
|
|
181
440
|
|
|
182
|
-
|
|
441
|
+
**Paso 4 — Ejecutar**
|
|
442
|
+
|
|
443
|
+
```powershell
|
|
444
|
+
.\hive-v1.7.9-windows-x64.exe start
|
|
445
|
+
```
|
|
183
446
|
|
|
184
|
-
|
|
447
|
+
El navegador se abre automáticamente en `http://localhost:18790`.
|
|
185
448
|
|
|
449
|
+
**Agregar al PATH (opcional):**
|
|
450
|
+
|
|
451
|
+
```powershell
|
|
452
|
+
# Mover a una carpeta ya en el PATH, por ejemplo:
|
|
453
|
+
Move-Item .\hive-v1.7.9-windows-x64.exe C:\Windows\System32\hive.exe
|
|
454
|
+
|
|
455
|
+
# Luego ejecutar desde cualquier lugar:
|
|
456
|
+
hive start
|
|
186
457
|
```
|
|
187
|
-
|
|
458
|
+
|
|
459
|
+
---
|
|
460
|
+
|
|
461
|
+
#### ¿Dónde se guardan los datos?
|
|
462
|
+
|
|
463
|
+
Todos los datos (base de datos, configuración, logs) se guardan en `~/.hive/`:
|
|
464
|
+
|
|
465
|
+
```
|
|
466
|
+
~/.hive/ # Windows: C:\Users\TU_USUARIO\.hive\
|
|
188
467
|
├── data/
|
|
189
|
-
│ └── hive.db ←
|
|
468
|
+
│ └── hive.db ← SQLite (agentes, conversaciones, config)
|
|
190
469
|
├── ui/ ← archivos de la interfaz web
|
|
191
470
|
├── logs/
|
|
192
471
|
│ └── gateway.log
|
|
193
472
|
└── gateway.pid
|
|
194
473
|
```
|
|
195
474
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
**Variables de entorno:**
|
|
475
|
+
**Variables de entorno disponibles:**
|
|
199
476
|
|
|
200
477
|
| Variable | Default | Descripción |
|
|
201
478
|
|----------|---------|-------------|
|
|
@@ -206,7 +483,7 @@ La UI se sirve desde `~/.hive/ui/`. Puedes apuntar a una ruta alternativa con la
|
|
|
206
483
|
|
|
207
484
|
---
|
|
208
485
|
|
|
209
|
-
|
|
486
|
+
#### Uso portable — USB o disco externo
|
|
210
487
|
|
|
211
488
|
El binario standalone es ideal para llevarlo en una USB. Tu agente viaja contigo con toda su memoria, historial y configuración.
|
|
212
489
|
|
|
@@ -215,48 +492,37 @@ El binario standalone es ideal para llevarlo en una USB. Tu agente viaja contigo
|
|
|
215
492
|
```
|
|
216
493
|
/usb/
|
|
217
494
|
├── hive ← binario ejecutable
|
|
218
|
-
├── ui/ ← archivos de la
|
|
495
|
+
├── ui/ ← archivos de la UI (extraídos de ui-dist.tar.gz)
|
|
219
496
|
└── datos/ ← directorio de datos (se crea automáticamente)
|
|
220
497
|
├── data/hive.db
|
|
221
498
|
└── ...
|
|
222
499
|
```
|
|
223
500
|
|
|
224
|
-
**Preparar la USB
|
|
501
|
+
**Preparar la USB:**
|
|
225
502
|
|
|
226
503
|
```bash
|
|
227
|
-
|
|
228
|
-
cp hive-v1.7.7-linux-x64 /media/usb/hive
|
|
504
|
+
cp hive-v1.7.9-linux-x64 /media/usb/hive
|
|
229
505
|
chmod +x /media/usb/hive
|
|
230
|
-
|
|
231
|
-
# Copiar UI
|
|
232
506
|
cp -r ui-dist/* /media/usb/ui/
|
|
233
507
|
|
|
234
|
-
# (Opcional)
|
|
508
|
+
# (Opcional) llevar los datos existentes
|
|
235
509
|
cp -r ~/.hive/data /media/usb/datos/
|
|
236
510
|
```
|
|
237
511
|
|
|
238
|
-
**Ejecutar
|
|
512
|
+
**Ejecutar desde la USB:**
|
|
239
513
|
|
|
240
514
|
```bash
|
|
515
|
+
# Linux
|
|
241
516
|
HIVE_HOME=/media/usb/datos HIVE_UI_DIR=/media/usb/ui /media/usb/hive start
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
El navegador se abre automáticamente. Si es la primera vez en ese equipo, muestra el wizard de setup. Si ya tienes datos en la USB, carga tu agente directamente.
|
|
245
517
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
```bash
|
|
518
|
+
# macOS
|
|
249
519
|
HIVE_HOME=/Volumes/USB/datos HIVE_UI_DIR=/Volumes/USB/ui /Volumes/USB/hive start
|
|
250
520
|
```
|
|
251
521
|
|
|
252
522
|
**Backup de datos:**
|
|
253
523
|
|
|
254
524
|
```bash
|
|
255
|
-
# Hacer backup de la BD
|
|
256
525
|
cp ~/.hive/data/hive.db ~/backup-hive-$(date +%Y%m%d).db
|
|
257
|
-
|
|
258
|
-
# Restaurar
|
|
259
|
-
cp ~/backup-hive-20260310.db ~/.hive/data/hive.db
|
|
260
526
|
```
|
|
261
527
|
|
|
262
528
|
---
|
|
@@ -311,6 +577,33 @@ bun install
|
|
|
311
577
|
bun run dev
|
|
312
578
|
```
|
|
313
579
|
|
|
580
|
+
**Migrar datos a otro equipo (portable):**
|
|
581
|
+
|
|
582
|
+
El ejecutable de Hive queda instalado globalmente en el sistema, pero **todos los datos viven en `~/.hive/`** — agentes, conversaciones, configuración, API keys. Para llevarlos a otro equipo basta con copiar esa carpeta:
|
|
583
|
+
|
|
584
|
+
```bash
|
|
585
|
+
# En el equipo origen — comprimir los datos
|
|
586
|
+
tar -czf hive-datos.tar.gz -C ~ .hive
|
|
587
|
+
|
|
588
|
+
# Copiar a USB, disco externo o transferir por red
|
|
589
|
+
cp hive-datos.tar.gz /media/usb/
|
|
590
|
+
|
|
591
|
+
# En el equipo destino — instalar Hive y restaurar datos
|
|
592
|
+
bun install -g @johpaz/hive
|
|
593
|
+
tar -xzf /media/usb/hive-datos.tar.gz -C ~
|
|
594
|
+
|
|
595
|
+
# Arrancar — carga tu agente con toda su memoria
|
|
596
|
+
hive start
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
> La carpeta `.hive` contiene la BD SQLite (`data/hive.db`), la UI web (`ui/`) y los logs. No contiene el binario de Hive — ese se reinstala con `bun install -g`.
|
|
600
|
+
|
|
601
|
+
**Backup rápido solo de la BD:**
|
|
602
|
+
|
|
603
|
+
```bash
|
|
604
|
+
cp ~/.hive/data/hive.db ~/backup-hive-$(date +%Y%m%d).db
|
|
605
|
+
```
|
|
606
|
+
|
|
314
607
|
---
|
|
315
608
|
|
|
316
609
|
## Los Cuatro Pilares
|
package/dist/hive.js
CHANGED
|
@@ -66884,6 +66884,7 @@ var init_canvas = __esm(() => {
|
|
|
66884
66884
|
type: "object",
|
|
66885
66885
|
properties: {
|
|
66886
66886
|
title: { type: "string", description: "Card title" },
|
|
66887
|
+
content: { type: "string", description: "Card content (Markdown supported)" },
|
|
66887
66888
|
items: {
|
|
66888
66889
|
type: "array",
|
|
66889
66890
|
description: "List of key-value items",
|
|
@@ -66896,11 +66897,12 @@ var init_canvas = __esm(() => {
|
|
|
66896
66897
|
}
|
|
66897
66898
|
}
|
|
66898
66899
|
},
|
|
66899
|
-
required: ["title"
|
|
66900
|
+
required: ["title"]
|
|
66900
66901
|
},
|
|
66901
66902
|
execute: async (params) => {
|
|
66902
66903
|
const title = params.title;
|
|
66903
|
-
const
|
|
66904
|
+
const content = params.content;
|
|
66905
|
+
const items = params.items || [];
|
|
66904
66906
|
try {
|
|
66905
66907
|
const id = `card_${Date.now()}`;
|
|
66906
66908
|
emitCanvas("canvas:render", {
|
|
@@ -66909,8 +66911,8 @@ var init_canvas = __esm(() => {
|
|
|
66909
66911
|
type: "card",
|
|
66910
66912
|
props: {
|
|
66911
66913
|
title,
|
|
66912
|
-
children: items.map((item) => `**${item.label}:** ${item.value}`).join(`
|
|
66913
|
-
`),
|
|
66914
|
+
children: content ?? (items.length > 0 ? items.map((item) => `**${item.label}:** ${item.value}`).join(`
|
|
66915
|
+
`) : ""),
|
|
66914
66916
|
items
|
|
66915
66917
|
},
|
|
66916
66918
|
position: { x: 0, y: 0 },
|
|
@@ -67746,12 +67748,14 @@ async function compileContext(opts) {
|
|
|
67746
67748
|
const now = new Date;
|
|
67747
67749
|
const fecha = getUserDate(userTimezone, now);
|
|
67748
67750
|
const hora = getUserTime(userTimezone, now);
|
|
67751
|
+
const workspaceLine = agent.workspace ? `
|
|
67752
|
+
**Workspace**: ${agent.workspace} (usa SIEMPRE este path como basePath en herramientas de filesystem)` : "";
|
|
67749
67753
|
systemPrompt += `
|
|
67750
67754
|
|
|
67751
67755
|
# ENTORNO ACTUAL
|
|
67752
67756
|
**Fecha**: ${fecha}
|
|
67753
67757
|
**Hora**: ${hora}
|
|
67754
|
-
**Zona horaria**: ${userTimezone}
|
|
67758
|
+
**Zona horaria**: ${userTimezone}${workspaceLine}
|
|
67755
67759
|
`;
|
|
67756
67760
|
log53.info(`[context-compiler] [STEP-10b] \u2705 Injected current date/time: ${fecha} ${hora} (${userTimezone})`);
|
|
67757
67761
|
if (scratchpadNotes.length > 0) {
|
|
@@ -313041,7 +313045,7 @@ async function start(flags) {
|
|
|
313041
313045
|
\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2554\u255D \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2551
|
|
313042
313046
|
\u2551 \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u2551
|
|
313043
313047
|
\u2551 \u2551
|
|
313044
|
-
\u2551 Personal Swarm AI Gateway \u2014 v1.7.
|
|
313048
|
+
\u2551 Personal Swarm AI Gateway \u2014 v1.7.9 \u2551
|
|
313045
313049
|
\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
|
|
313046
313050
|
`);
|
|
313047
313051
|
}
|
|
@@ -314978,7 +314982,7 @@ async function executeAsync(gatewayUrl, payload, spinner) {
|
|
|
314978
314982
|
}
|
|
314979
314983
|
|
|
314980
314984
|
// packages/cli/src/index.ts
|
|
314981
|
-
var VERSION4 = "1.7.
|
|
314985
|
+
var VERSION4 = "1.7.9";
|
|
314982
314986
|
var HELP = `
|
|
314983
314987
|
\uD83D\uDC1D Hive \u2014 Personal Swarm AI Gateway v${VERSION4}
|
|
314984
314988
|
|