@johpaz/hive 1.7.3 → 1.7.7

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 +49 -20
  2. package/dist/hive.js +36 -15
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -17,13 +17,47 @@ Hive es un Gateway de IA Orquestado — un Enjambre de Agentes Especializados qu
17
17
 
18
18
  ---
19
19
 
20
+ ## Por dentro
21
+
22
+ 51.937 líneas de TypeScript. Sin frameworks de agentes. Sin LangChain. Sin abstracciones intermedias. Todo construido desde cero sobre Bun + SQLite.
23
+
24
+ ```
25
+ Language files blank comment code
26
+ ─────────────────────────────────────────────────────
27
+ TypeScript 434 7671 2683 51937 ← motor, gateway, canales, UI
28
+ Markdown 45 2225 0 8233
29
+ JSON 15 5 0 575
30
+ CSS 1 141 29 450
31
+ YAML 2 35 11 197
32
+ Shell 2 14 5 61
33
+ Dockerfile 1 19 10 38
34
+ ─────────────────────────────────────────────────────
35
+ TOTAL 504 10119 2741 61546
36
+ ```
37
+
38
+ La imagen Docker pesa ~120 MB. El bundle npm pesa ~12 MB. El binario standalone ~50 MB. Todo el runtime cabe en una Raspberry Pi Zero 2W con 512 MB de RAM.
39
+
40
+ ---
41
+
20
42
  ## Instalación
21
43
 
44
+ ### Prerequisito — Bun
45
+
46
+ Hive requiere [Bun](https://bun.sh) como runtime para las opciones de binario y npm. Docker no lo requiere.
47
+
48
+ ```bash
49
+ curl -fsSL https://bun.sh/install | bash
50
+ source ~/.bashrc # o reinicia la terminal
51
+ bun --version # verifica que quedó instalado
52
+ ```
53
+
54
+ ---
55
+
22
56
  Elige la opción que mejor se adapte a tu caso:
23
57
 
24
58
  | | Docker | Binario | npm / bun |
25
59
  |---|---|---|---|
26
- | Requiere | Docker | Nada | [Bun](https://bun.sh) |
60
+ | Requiere | Docker | Bun | Bun |
27
61
  | Setup | 1 comando | descarga + ejecuta | `bun install -g @johpaz/hive` |
28
62
  | Actualizar | `docker compose pull` | descarga nueva versión | `bun install -g @johpaz/hive` |
29
63
  | Ideal para | Raspberry Pi, VPS, laptop vieja, VM | uso personal, USB | desarrolladores |
@@ -80,7 +114,7 @@ docker run -d \
80
114
  -v hive-data:/root/.hive \
81
115
  --name hive \
82
116
  --restart unless-stopped \
83
- johpaz/hive:latest
117
+ johpaz/hive:1.7.7
84
118
  ```
85
119
 
86
120
  **Variables de entorno disponibles:**
@@ -115,17 +149,17 @@ Descarga un ejecutable único para tu plataforma. No requiere Node, Bun ni Docke
115
149
 
116
150
  | Plataforma | Descarga |
117
151
  |------------|----------|
118
- | Linux x64 | [hive-v1.7.2-linux-x64](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.2-linux-x64) |
119
- | Linux ARM64 | [hive-v1.7.2-linux-arm64](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.2-linux-arm64) |
120
- | macOS Intel | [hive-v1.7.2-macos-x64](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.2-macos-x64) |
121
- | macOS Apple Silicon | [hive-v1.7.2-macos-arm64](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.2-macos-arm64) |
122
- | Windows x64 | [hive-v1.7.2-windows-x64.exe](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.2-windows-x64.exe) |
152
+ | Linux x64 | [hive-v1.7.7-linux-x64](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.7-linux-x64) |
153
+ | Linux ARM64 | [hive-v1.7.7-linux-arm64](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.7-linux-arm64) |
154
+ | macOS Intel | [hive-v1.7.7-macos-x64](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.7-macos-x64) |
155
+ | macOS Apple Silicon | [hive-v1.7.7-macos-arm64](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.7-macos-arm64) |
156
+ | Windows x64 | [hive-v1.7.7-windows-x64.exe](https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.7-windows-x64.exe) |
123
157
 
124
158
  **Instalación en Linux / macOS:**
125
159
 
126
160
  ```bash
127
161
  # 1. Descargar binario (ajusta la URL a tu plataforma)
128
- curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.2-linux-x64
162
+ curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v1.7.7-linux-x64
129
163
  chmod +x hive
130
164
 
131
165
  # 2. Descargar la UI
@@ -139,10 +173,10 @@ mkdir -p ~/.hive/ui && mv ui-dist/* ~/.hive/ui/
139
173
  **Instalación en Windows:**
140
174
 
141
175
  ```powershell
142
- # 1. Descargar hive-v1.7.2-windows-x64.exe desde el link de arriba
176
+ # 1. Descargar hive-v1.7.7-windows-x64.exe desde el link de arriba
143
177
  # 2. Descargar ui-dist.tar.gz y extraer en %USERPROFILE%\.hive\ui\
144
178
  # 3. Ejecutar
145
- .\hive-v1.7.2-windows-x64.exe start
179
+ .\hive-v1.7.7-windows-x64.exe start
146
180
  ```
147
181
 
148
182
  **¿Dónde se guardan los datos?**
@@ -191,7 +225,7 @@ El binario standalone es ideal para llevarlo en una USB. Tu agente viaja contigo
191
225
 
192
226
  ```bash
193
227
  # Copiar binario
194
- cp hive-v1.7.2-linux-x64 /media/usb/hive
228
+ cp hive-v1.7.7-linux-x64 /media/usb/hive
195
229
  chmod +x /media/usb/hive
196
230
 
197
231
  # Copiar UI
@@ -227,23 +261,18 @@ cp ~/backup-hive-20260310.db ~/.hive/data/hive.db
227
261
 
228
262
  ---
229
263
 
230
- ### Opción 3 — npm / bun (Para desarrolladores)
264
+ ### Opción 3 — bun (Para desarrolladores)
231
265
 
232
- > **Requisito:** Hive requiere [Bun](https://bun.sh) como runtime. Instálalo primero:
233
- > ```bash
234
- > curl -fsSL https://bun.sh/install | bash
235
- > ```
266
+ > Requiere Bun instalado ver prerequisito al inicio de esta sección.
236
267
 
237
268
  **Instalación global:**
238
269
 
239
270
  ```bash
240
- # Con bun (recomendado)
241
271
  bun install -g @johpaz/hive
242
-
243
- # Con npm
244
- npm install -g @johpaz/hive
245
272
  ```
246
273
 
274
+ > Si instalas con `npm install -g @johpaz/hive` también funciona, pero igualmente necesitas Bun instalado — el CLI lo usa como runtime.
275
+
247
276
  **Iniciar:**
248
277
 
249
278
  ```bash
package/dist/hive.js CHANGED
@@ -6,39 +6,60 @@ var __defProp = Object.defineProperty;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ function __accessProp(key) {
10
+ return this[key];
11
+ }
12
+ var __toESMCache_node;
13
+ var __toESMCache_esm;
9
14
  var __toESM = (mod2, isNodeMode, target) => {
15
+ var canCache = mod2 != null && typeof mod2 === "object";
16
+ if (canCache) {
17
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
18
+ var cached = cache.get(mod2);
19
+ if (cached)
20
+ return cached;
21
+ }
10
22
  target = mod2 != null ? __create(__getProtoOf(mod2)) : {};
11
23
  const to = isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target;
12
24
  for (let key of __getOwnPropNames(mod2))
13
25
  if (!__hasOwnProp.call(to, key))
14
26
  __defProp(to, key, {
15
- get: () => mod2[key],
27
+ get: __accessProp.bind(mod2, key),
16
28
  enumerable: true
17
29
  });
30
+ if (canCache)
31
+ cache.set(mod2, to);
18
32
  return to;
19
33
  };
20
- var __moduleCache = /* @__PURE__ */ new WeakMap;
21
34
  var __toCommonJS = (from) => {
22
- var entry = __moduleCache.get(from), desc;
35
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
23
36
  if (entry)
24
37
  return entry;
25
38
  entry = __defProp({}, "__esModule", { value: true });
26
- if (from && typeof from === "object" || typeof from === "function")
27
- __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
28
- get: () => from[key],
29
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
30
- }));
39
+ if (from && typeof from === "object" || typeof from === "function") {
40
+ for (var key of __getOwnPropNames(from))
41
+ if (!__hasOwnProp.call(entry, key))
42
+ __defProp(entry, key, {
43
+ get: __accessProp.bind(from, key),
44
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
45
+ });
46
+ }
31
47
  __moduleCache.set(from, entry);
32
48
  return entry;
33
49
  };
50
+ var __moduleCache;
34
51
  var __commonJS = (cb, mod2) => () => (mod2 || cb((mod2 = { exports: {} }).exports, mod2), mod2.exports);
52
+ var __returnValue = (v) => v;
53
+ function __exportSetter(name, newValue) {
54
+ this[name] = __returnValue.bind(null, newValue);
55
+ }
35
56
  var __export = (target, all) => {
36
57
  for (var name in all)
37
58
  __defProp(target, name, {
38
59
  get: all[name],
39
60
  enumerable: true,
40
61
  configurable: true,
41
- set: (newValue) => all[name] = () => newValue
62
+ set: __exportSetter.bind(all, name)
42
63
  });
43
64
  };
44
65
  var __esm = (fn2, res) => () => (fn2 && (res = fn2(fn2 = 0)), res);
@@ -19523,7 +19544,7 @@ class SkillLoader {
19523
19544
  this.cache.clear();
19524
19545
  }
19525
19546
  }
19526
- var __dirname = "/home/johnpaez/Documentos/Agents/hive/packages/skills/src";
19547
+ var __dirname = "/home/runner/work/hive/hive/packages/skills/src";
19527
19548
  var init_loader2 = __esm(() => {
19528
19549
  init_js_yaml();
19529
19550
  });
@@ -103420,7 +103441,7 @@ var require_ClientVoiceManager = __commonJS((exports2, module2) => {
103420
103441
 
103421
103442
  // node_modules/.bun/@discordjs+ws@1.2.3/node_modules/@discordjs/ws/dist/index.js
103422
103443
  var require_dist11 = __commonJS((exports2, module2) => {
103423
- var __dirname = "/home/johnpaez/Documentos/Agents/hive/node_modules/.bun/@discordjs+ws@1.2.3/node_modules/@discordjs/ws/dist";
103444
+ var __dirname = "/home/runner/work/hive/hive/node_modules/.bun/@discordjs+ws@1.2.3/node_modules/@discordjs/ws/dist";
103424
103445
  var __create2 = Object.create;
103425
103446
  var __defProp3 = Object.defineProperty;
103426
103447
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -238674,7 +238695,7 @@ var require_indexes = __commonJS((exports2, module2) => {
238674
238695
 
238675
238696
  // node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/index.js
238676
238697
  var require_thread_stream = __commonJS((exports2, module2) => {
238677
- var __dirname = "/home/johnpaez/Documentos/Agents/hive/node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream";
238698
+ var __dirname = "/home/runner/work/hive/hive/node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream";
238678
238699
  var { version: version3 } = require_package5();
238679
238700
  var { EventEmitter: EventEmitter6 } = __require("events");
238680
238701
  var { Worker } = __require("worker_threads");
@@ -239095,7 +239116,7 @@ var require_thread_stream = __commonJS((exports2, module2) => {
239095
239116
 
239096
239117
  // node_modules/.bun/pino@9.14.0/node_modules/pino/lib/transport.js
239097
239118
  var require_transport = __commonJS((exports2, module2) => {
239098
- var __dirname = "/home/johnpaez/Documentos/Agents/hive/node_modules/.bun/pino@9.14.0/node_modules/pino/lib";
239119
+ var __dirname = "/home/runner/work/hive/hive/node_modules/.bun/pino@9.14.0/node_modules/pino/lib";
239099
239120
  var { createRequire } = __require("module");
239100
239121
  var getCallers = require_caller();
239101
239122
  var { join: join12, isAbsolute: isAbsolute2, sep } = __require("path");
@@ -313020,7 +313041,7 @@ async function start(flags) {
313020
313041
  \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
313021
313042
  \u2551 \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u2551
313022
313043
  \u2551 \u2551
313023
- \u2551 Personal Swarm AI Gateway \u2014 v1.7.3 \u2551
313044
+ \u2551 Personal Swarm AI Gateway \u2014 v1.7.7 \u2551
313024
313045
  \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
313025
313046
  `);
313026
313047
  }
@@ -314957,7 +314978,7 @@ async function executeAsync(gatewayUrl, payload, spinner) {
314957
314978
  }
314958
314979
 
314959
314980
  // packages/cli/src/index.ts
314960
- var VERSION4 = "1.7.3";
314981
+ var VERSION4 = "1.7.7";
314961
314982
  var HELP = `
314962
314983
  \uD83D\uDC1D Hive \u2014 Personal Swarm AI Gateway v${VERSION4}
314963
314984
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@johpaz/hive",
3
- "version": "1.7.3",
3
+ "version": "1.7.7",
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": {