@johpaz/hive 1.7.8 → 1.7.10

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.
Files changed (3) hide show
  1. package/README.md +78 -16
  2. package/dist/hive.js +5 -3
  3. 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.8
117
+ johpaz/hive:1.7.10
118
118
  ```
119
119
 
120
120
  **Variables de entorno disponibles:**
@@ -143,6 +143,68 @@ 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
+
146
208
  #### Docker portable — USB o disco externo
147
209
 
148
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.
@@ -153,10 +215,10 @@ En el equipo donde tienes conexión a internet:
153
215
 
154
216
  ```bash
155
217
  # Descargar la imagen si no la tienes
156
- docker pull johpaz/hive:1.7.8
218
+ docker pull johpaz/hive:1.7.10
157
219
 
158
220
  # Exportar a archivo tar (cabe en cualquier USB de 512 MB+)
159
- docker save johpaz/hive:1.7.8 -o /media/usb/hive-image.tar
221
+ docker save johpaz/hive:1.7.10 -o /media/usb/hive-image.tar
160
222
  ```
161
223
 
162
224
  **Paso 2 — Crear la estructura en la USB**
@@ -174,7 +236,7 @@ Crea el `docker-compose.yml` en la USB con el volumen apuntando a la USB:
174
236
  ```yaml
175
237
  services:
176
238
  hive:
177
- image: johpaz/hive:1.7.8
239
+ image: johpaz/hive:1.7.10
178
240
  ports:
179
241
  - "18790:18790"
180
242
  volumes:
@@ -253,11 +315,11 @@ Descarga manual de cualquier plataforma o versión específica.
253
315
 
254
316
  | Plataforma | Archivo | Descarga directa |
255
317
  |------------|---------|------------------|
256
- | Linux x64 | `hive-v1.7.8-linux-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.8-linux-x64) |
257
- | Linux ARM64 (Raspberry Pi, etc.) | `hive-v1.7.8-linux-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.8-linux-arm64) |
258
- | macOS Apple Silicon (M1/M2/M3/M4) | `hive-v1.7.8-macos-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.8-macos-arm64) |
259
- | macOS Intel | `hive-v1.7.8-macos-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.8-macos-x64) |
260
- | Windows x64 | `hive-v1.7.8-windows-x64.exe` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.8-windows-x64.exe) |
318
+ | Linux x64 | `hive-v1.7.10-linux-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.10-linux-x64) |
319
+ | Linux ARM64 (Raspberry Pi, etc.) | `hive-v1.7.10-linux-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.10-linux-arm64) |
320
+ | macOS Apple Silicon (M1/M2/M3/M4) | `hive-v1.7.10-macos-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.10-macos-arm64) |
321
+ | macOS Intel | `hive-v1.7.10-macos-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.10-macos-x64) |
322
+ | Windows x64 | `hive-v1.7.10-windows-x64.exe` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.10-windows-x64.exe) |
261
323
 
262
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).
263
325
 
@@ -267,7 +329,7 @@ Descarga manual de cualquier plataforma o versión específica.
267
329
 
268
330
  ```bash
269
331
  # 1. Descargar el binario (reemplaza "linux-x64" por "linux-arm64" si es ARM)
270
- curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.8-linux-x64
332
+ curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.10-linux-x64
271
333
 
272
334
  # 2. Dar permisos de ejecución
273
335
  chmod +x hive
@@ -299,7 +361,7 @@ hive start
299
361
 
300
362
  ```bash
301
363
  # 1. Descargar
302
- curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.8-macos-arm64
364
+ curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.10-macos-arm64
303
365
 
304
366
  # 2. Dar permisos de ejecución
305
367
  chmod +x hive
@@ -334,7 +396,7 @@ hive start
334
396
  Igual que Apple Silicon pero descarga `macos-x64`:
335
397
 
336
398
  ```bash
337
- curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.8-macos-x64
399
+ curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.10-macos-x64
338
400
  chmod +x hive
339
401
  xattr -d com.apple.quarantine hive
340
402
  curl -L https://github.com/johpaz/hive/releases/latest/download/ui-dist.tar.gz \
@@ -349,7 +411,7 @@ mkdir -p ~/.hive/ui && cp -r ui-dist/* ~/.hive/ui/
349
411
 
350
412
  **Paso 1 — Descargar el binario**
351
413
 
352
- Descarga [`hive-v1.7.8-windows-x64.exe`](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.8-windows-x64.exe) desde GitHub o desde [hiveagents.io](https://www.hiveagents.io/#installation).
414
+ Descarga [`hive-v1.7.10-windows-x64.exe`](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.10-windows-x64.exe) desde GitHub o desde [hiveagents.io](https://www.hiveagents.io/#installation).
353
415
 
354
416
  **Paso 2 — Windows SmartScreen**
355
417
 
@@ -379,7 +441,7 @@ tar -xzf ui-dist.tar.gz -C "$env:USERPROFILE\.hive\ui"
379
441
  **Paso 4 — Ejecutar**
380
442
 
381
443
  ```powershell
382
- .\hive-v1.7.8-windows-x64.exe start
444
+ .\hive-v1.7.10-windows-x64.exe start
383
445
  ```
384
446
 
385
447
  El navegador se abre automáticamente en `http://localhost:18790`.
@@ -388,7 +450,7 @@ El navegador se abre automáticamente en `http://localhost:18790`.
388
450
 
389
451
  ```powershell
390
452
  # Mover a una carpeta ya en el PATH, por ejemplo:
391
- Move-Item .\hive-v1.7.8-windows-x64.exe C:\Windows\System32\hive.exe
453
+ Move-Item .\hive-v1.7.10-windows-x64.exe C:\Windows\System32\hive.exe
392
454
 
393
455
  # Luego ejecutar desde cualquier lugar:
394
456
  hive start
@@ -439,7 +501,7 @@ El binario standalone es ideal para llevarlo en una USB. Tu agente viaja contigo
439
501
  **Preparar la USB:**
440
502
 
441
503
  ```bash
442
- cp hive-v1.7.8-linux-x64 /media/usb/hive
504
+ cp hive-v1.7.10-linux-x64 /media/usb/hive
443
505
  chmod +x /media/usb/hive
444
506
  cp -r ui-dist/* /media/usb/ui/
445
507
 
package/dist/hive.js CHANGED
@@ -67748,12 +67748,14 @@ async function compileContext(opts) {
67748
67748
  const now = new Date;
67749
67749
  const fecha = getUserDate(userTimezone, now);
67750
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)` : "";
67751
67753
  systemPrompt += `
67752
67754
 
67753
67755
  # ENTORNO ACTUAL
67754
67756
  **Fecha**: ${fecha}
67755
67757
  **Hora**: ${hora}
67756
- **Zona horaria**: ${userTimezone}
67758
+ **Zona horaria**: ${userTimezone}${workspaceLine}
67757
67759
  `;
67758
67760
  log53.info(`[context-compiler] [STEP-10b] \u2705 Injected current date/time: ${fecha} ${hora} (${userTimezone})`);
67759
67761
  if (scratchpadNotes.length > 0) {
@@ -313043,7 +313045,7 @@ async function start(flags) {
313043
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
313044
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
313045
313047
  \u2551 \u2551
313046
- \u2551 Personal Swarm AI Gateway \u2014 v1.7.8 \u2551
313048
+ \u2551 Personal Swarm AI Gateway \u2014 v1.7.10 \u2551
313047
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
313048
313050
  `);
313049
313051
  }
@@ -314980,7 +314982,7 @@ async function executeAsync(gatewayUrl, payload, spinner) {
314980
314982
  }
314981
314983
 
314982
314984
  // packages/cli/src/index.ts
314983
- var VERSION4 = "1.7.8";
314985
+ var VERSION4 = "1.7.10";
314984
314986
  var HELP = `
314985
314987
  \uD83D\uDC1D Hive \u2014 Personal Swarm AI Gateway v${VERSION4}
314986
314988
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johpaz/hive",
3
- "version": "1.7.8",
3
+ "version": "1.7.10",
4
4
  "description": "Tu colmena de agentes IA. Local-first. Multi-canal. Open source. Construido desde Colombia para el mundo.",
5
5
  "private": false,
6
6
  "bin": {