@johpaz/hive-agents 0.0.25 → 0.0.26
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 +16 -16
- package/dist/hive.js +14 -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:0.0.
|
|
117
|
+
johpaz/hive:0.0.26
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
**Variables de entorno disponibles:**
|
|
@@ -188,10 +188,10 @@ En el equipo donde tienes conexión a internet:
|
|
|
188
188
|
|
|
189
189
|
```bash
|
|
190
190
|
# Descargar la imagen si no la tienes
|
|
191
|
-
docker pull johpaz/hive:0.0.
|
|
191
|
+
docker pull johpaz/hive:0.0.26
|
|
192
192
|
|
|
193
193
|
# Exportar a archivo tar (cabe en cualquier USB de 512 MB+)
|
|
194
|
-
docker save johpaz/hive:0.0.
|
|
194
|
+
docker save johpaz/hive:0.0.26 -o /media/usb/hive-image.tar
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
**Paso 2 — Crear la estructura en la USB**
|
|
@@ -209,7 +209,7 @@ Crea el `docker-compose.yml` en la USB con el volumen apuntando a la USB:
|
|
|
209
209
|
```yaml
|
|
210
210
|
services:
|
|
211
211
|
hive:
|
|
212
|
-
image: johpaz/hive:0.0.
|
|
212
|
+
image: johpaz/hive:0.0.26
|
|
213
213
|
ports:
|
|
214
214
|
- "18790:18790"
|
|
215
215
|
volumes:
|
|
@@ -288,11 +288,11 @@ Descarga manual de cualquier plataforma o versión específica.
|
|
|
288
288
|
|
|
289
289
|
| Plataforma | Archivo | Descarga directa |
|
|
290
290
|
|------------|---------|------------------|
|
|
291
|
-
| Linux x64 | `hive-v0.0.
|
|
292
|
-
| Linux ARM64 (Raspberry Pi, etc.) | `hive-v0.0.
|
|
293
|
-
| macOS Apple Silicon (M1/M2/M3/M4) | `hive-v0.0.
|
|
294
|
-
| macOS Intel | `hive-v0.0.
|
|
295
|
-
| Windows x64 | `hive-v0.0.
|
|
291
|
+
| Linux x64 | `hive-v0.0.26-linux-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.26-linux-x64) |
|
|
292
|
+
| Linux ARM64 (Raspberry Pi, etc.) | `hive-v0.0.26-linux-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.26-linux-arm64) |
|
|
293
|
+
| macOS Apple Silicon (M1/M2/M3/M4) | `hive-v0.0.26-macos-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.26-macos-arm64) |
|
|
294
|
+
| macOS Intel | `hive-v0.0.26-macos-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.26-macos-x64) |
|
|
295
|
+
| Windows x64 | `hive-v0.0.26-windows-x64.exe` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.26-windows-x64.exe) |
|
|
296
296
|
|
|
297
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).
|
|
298
298
|
|
|
@@ -302,7 +302,7 @@ Descarga manual de cualquier plataforma o versión específica.
|
|
|
302
302
|
|
|
303
303
|
```bash
|
|
304
304
|
# 1. Descargar el binario (reemplaza "linux-x64" por "linux-arm64" si es ARM)
|
|
305
|
-
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.
|
|
305
|
+
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.26-linux-x64
|
|
306
306
|
|
|
307
307
|
# 2. Dar permisos de ejecución
|
|
308
308
|
chmod +x hive
|
|
@@ -334,7 +334,7 @@ hive start
|
|
|
334
334
|
|
|
335
335
|
```bash
|
|
336
336
|
# 1. Descargar
|
|
337
|
-
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.
|
|
337
|
+
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.26-macos-arm64
|
|
338
338
|
|
|
339
339
|
# 2. Dar permisos de ejecución
|
|
340
340
|
chmod +x hive
|
|
@@ -374,7 +374,7 @@ hive start
|
|
|
374
374
|
Igual que Apple Silicon pero descarga `macos-x64`:
|
|
375
375
|
|
|
376
376
|
```bash
|
|
377
|
-
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.
|
|
377
|
+
curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.26-macos-x64
|
|
378
378
|
chmod +x hive
|
|
379
379
|
xattr -d com.apple.quarantine hive
|
|
380
380
|
curl -L https://github.com/johpaz/hive/releases/latest/download/ui-dist.tar.gz \
|
|
@@ -389,7 +389,7 @@ mkdir -p ~/.hive/ui && cp -r ui-dist/* ~/.hive/ui/
|
|
|
389
389
|
|
|
390
390
|
**Paso 1 — Descargar el binario**
|
|
391
391
|
|
|
392
|
-
Descarga [`hive-v0.0.
|
|
392
|
+
Descarga [`hive-v0.0.26-windows-x64.exe`](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.26-windows-x64.exe) desde GitHub o desde [hiveagents.io](https://www.hiveagents.io/#installation).
|
|
393
393
|
|
|
394
394
|
**Paso 2 — Windows SmartScreen**
|
|
395
395
|
|
|
@@ -419,7 +419,7 @@ tar -xzf ui-dist.tar.gz -C "$env:USERPROFILE\.hive\ui"
|
|
|
419
419
|
**Paso 4 — Ejecutar**
|
|
420
420
|
|
|
421
421
|
```powershell
|
|
422
|
-
.\hive-v0.0.
|
|
422
|
+
.\hive-v0.0.26-windows-x64.exe start
|
|
423
423
|
```
|
|
424
424
|
|
|
425
425
|
El navegador se abre automáticamente en `http://localhost:18790`.
|
|
@@ -428,7 +428,7 @@ El navegador se abre automáticamente en `http://localhost:18790`.
|
|
|
428
428
|
|
|
429
429
|
```powershell
|
|
430
430
|
# Mover a una carpeta ya en el PATH, por ejemplo:
|
|
431
|
-
Move-Item .\hive-v0.0.
|
|
431
|
+
Move-Item .\hive-v0.0.26-windows-x64.exe C:\Windows\System32\hive.exe
|
|
432
432
|
|
|
433
433
|
# Luego ejecutar desde cualquier lugar:
|
|
434
434
|
hive start
|
|
@@ -479,7 +479,7 @@ El binario standalone es ideal para llevarlo en una USB. Tu agente viaja contigo
|
|
|
479
479
|
**Preparar la USB:**
|
|
480
480
|
|
|
481
481
|
```bash
|
|
482
|
-
cp hive-v0.0.
|
|
482
|
+
cp hive-v0.0.26-linux-x64 /media/usb/hive
|
|
483
483
|
chmod +x /media/usb/hive
|
|
484
484
|
cp -r ui-dist/* /media/usb/ui/
|
|
485
485
|
|
package/dist/hive.js
CHANGED
|
@@ -719655,7 +719655,9 @@ async function handleToggleProvider(req, addCorsHeaders) {
|
|
|
719655
719655
|
if (active === undefined) {
|
|
719656
719656
|
return addCorsHeaders(new Response("Missing active field", { status: 400 }), req);
|
|
719657
719657
|
}
|
|
719658
|
-
|
|
719658
|
+
const db = getDb();
|
|
719659
|
+
db.query(`UPDATE providers SET active = ?, enabled = ? WHERE id = ?`).run(active ? 1 : 0, active ? 1 : 0, providerId);
|
|
719660
|
+
db.query(`UPDATE models SET active = ?, enabled = ? WHERE provider_id = ?`).run(active ? 1 : 0, active ? 1 : 0, providerId);
|
|
719659
719661
|
return addCorsHeaders(Response.json({ success: true, active }), req);
|
|
719660
719662
|
}
|
|
719661
719663
|
async function handleUpdateProvider(req, addCorsHeaders) {
|
|
@@ -719708,6 +719710,15 @@ async function handleUpdateProvider(req, addCorsHeaders) {
|
|
|
719708
719710
|
if (updates.length > 0) {
|
|
719709
719711
|
params2.push(id);
|
|
719710
719712
|
getDb().query(`UPDATE providers SET ${updates.join(", ")} WHERE id = ?`).run(...params2);
|
|
719713
|
+
const activeIdx = updates.findIndex((u) => u.startsWith("active"));
|
|
719714
|
+
const enabledIdx = updates.findIndex((u) => u.startsWith("enabled"));
|
|
719715
|
+
if (activeIdx !== -1) {
|
|
719716
|
+
const activeVal = params2[activeIdx];
|
|
719717
|
+
getDb().query(`UPDATE models SET active = ?, enabled = ? WHERE provider_id = ?`).run(activeVal, activeVal, id);
|
|
719718
|
+
} else if (enabledIdx !== -1) {
|
|
719719
|
+
const enabledVal = params2[enabledIdx];
|
|
719720
|
+
getDb().query(`UPDATE models SET enabled = ?, active = ? WHERE provider_id = ?`).run(enabledVal, enabledVal, id);
|
|
719721
|
+
}
|
|
719711
719722
|
}
|
|
719712
719723
|
return addCorsHeaders(Response.json({ ok: true }), req);
|
|
719713
719724
|
}
|
|
@@ -720898,7 +720909,7 @@ var package_default;
|
|
|
720898
720909
|
var init_package = __esm(() => {
|
|
720899
720910
|
package_default = {
|
|
720900
720911
|
name: "@johpaz/hive-agents",
|
|
720901
|
-
version: "0.0.
|
|
720912
|
+
version: "0.0.26",
|
|
720902
720913
|
description: "Tu colmena de agentes IA. Local-first. Multi-canal. Open source. Construido desde Colombia para el mundo.",
|
|
720903
720914
|
private: false,
|
|
720904
720915
|
bin: {
|
|
@@ -731503,7 +731514,7 @@ async function start(flags3) {
|
|
|
731503
731514
|
\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
|
|
731504
731515
|
\u2551 \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u2551
|
|
731505
731516
|
\u2551 \u2551
|
|
731506
|
-
\u2551 Personal Swarm AI Gateway \u2014 v0.0.
|
|
731517
|
+
\u2551 Personal Swarm AI Gateway \u2014 v0.0.26 \u2551
|
|
731507
731518
|
\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
|
|
731508
731519
|
|
|
731509
731520
|
\uD83D\uDCE6 Installation: ${adapter.name}
|