@johpaz/hive-agents 0.0.23 → 0.0.25

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 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.23
117
+ johpaz/hive:0.0.25
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.23
191
+ docker pull johpaz/hive:0.0.25
192
192
 
193
193
  # Exportar a archivo tar (cabe en cualquier USB de 512 MB+)
194
- docker save johpaz/hive:0.0.23 -o /media/usb/hive-image.tar
194
+ docker save johpaz/hive:0.0.25 -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.23
212
+ image: johpaz/hive:0.0.25
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.23-linux-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.23-linux-x64) |
292
- | Linux ARM64 (Raspberry Pi, etc.) | `hive-v0.0.23-linux-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.23-linux-arm64) |
293
- | macOS Apple Silicon (M1/M2/M3/M4) | `hive-v0.0.23-macos-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.23-macos-arm64) |
294
- | macOS Intel | `hive-v0.0.23-macos-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.23-macos-x64) |
295
- | Windows x64 | `hive-v0.0.23-windows-x64.exe` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.23-windows-x64.exe) |
291
+ | Linux x64 | `hive-v0.0.25-linux-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.25-linux-x64) |
292
+ | Linux ARM64 (Raspberry Pi, etc.) | `hive-v0.0.25-linux-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.25-linux-arm64) |
293
+ | macOS Apple Silicon (M1/M2/M3/M4) | `hive-v0.0.25-macos-arm64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.25-macos-arm64) |
294
+ | macOS Intel | `hive-v0.0.25-macos-x64` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.25-macos-x64) |
295
+ | Windows x64 | `hive-v0.0.25-windows-x64.exe` | [Descargar](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.25-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.23-linux-x64
305
+ curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.25-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.23-macos-arm64
337
+ curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.25-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.23-macos-x64
377
+ curl -L -o hive https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.25-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.23-windows-x64.exe`](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.23-windows-x64.exe) desde GitHub o desde [hiveagents.io](https://www.hiveagents.io/#installation).
392
+ Descarga [`hive-v0.0.25-windows-x64.exe`](https://github.com/johpaz/hive/releases/latest/download/hive-v0.0.25-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.23-windows-x64.exe start
422
+ .\hive-v0.0.25-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.23-windows-x64.exe C:\Windows\System32\hive.exe
431
+ Move-Item .\hive-v0.0.25-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.23-linux-x64 /media/usb/hive
482
+ cp hive-v0.0.25-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
@@ -720893,103 +720893,165 @@ var init_voice3 = __esm(() => {
720893
720893
  init_crypto();
720894
720894
  });
720895
720895
 
720896
- // packages/core/package.json
720896
+ // package.json
720897
720897
  var package_default;
720898
720898
  var init_package = __esm(() => {
720899
720899
  package_default = {
720900
- name: "@johpaz/hive-agents-core",
720901
- version: "0.0.23",
720902
- private: true,
720903
- description: "Hive Gateway \u2014 Personal AI agent runtime",
720904
- main: "./src/index.ts",
720905
- module: "./src/index.ts",
720906
- types: "./src/index.ts",
720907
- license: "MIT",
720900
+ name: "@johpaz/hive-agents",
720901
+ version: "0.0.25",
720902
+ description: "Tu colmena de agentes IA. Local-first. Multi-canal. Open source. Construido desde Colombia para el mundo.",
720903
+ private: false,
720904
+ bin: {
720905
+ hive: "dist/hive.js"
720906
+ },
720907
+ main: "packages/core/src/index.ts",
720908
+ types: "packages/core/src/index.ts",
720909
+ workspaces: [
720910
+ "packages/*"
720911
+ ],
720912
+ exports: {
720913
+ ".": "./packages/core/src/index.ts",
720914
+ "./core": "./packages/core/src/index.ts",
720915
+ "./agent/service": "./packages/core/src/agent/service.ts",
720916
+ "./agent/agent-loop": "./packages/core/src/agent/agent-loop.ts",
720917
+ "./agent/context-compiler": "./packages/core/src/agent/context-compiler.ts",
720918
+ "./agent/prompt-builder": "./packages/core/src/agent/prompt-builder.ts",
720919
+ "./agent/conversation-store": "./packages/core/src/agent/conversation-store.ts",
720920
+ "./agent/tool-selector": "./packages/core/src/agent/tool-selector.ts",
720921
+ "./agent/skill-selector": "./packages/core/src/agent/skill-selector.ts",
720922
+ "./agent/playbook-selector": "./packages/core/src/agent/playbook-selector.ts",
720923
+ "./agent/llm-client": "./packages/core/src/agent/llm-client.ts",
720924
+ "./agent/native-tools": "./packages/core/src/agent/native-tools.ts",
720925
+ "./channels/manager": "./packages/core/src/channels/manager.ts",
720926
+ "./channels/base": "./packages/core/src/channels/base.ts",
720927
+ "./channels/telegram": "./packages/core/src/channels/telegram.ts",
720928
+ "./channels/discord": "./packages/core/src/channels/discord.ts",
720929
+ "./channels/whatsapp": "./packages/core/src/channels/whatsapp.ts",
720930
+ "./channels/slack": "./packages/core/src/channels/slack.ts",
720931
+ "./channels/webchat": "./packages/core/src/channels/webchat.ts",
720932
+ "./storage/sqlite": "./packages/core/src/storage/sqlite.ts",
720933
+ "./storage/schema": "./packages/core/src/storage/schema.ts",
720934
+ "./storage/seed": "./packages/core/src/storage/seed.ts",
720935
+ "./storage/crypto": "./packages/core/src/storage/crypto.ts",
720936
+ "./storage/onboarding": "./packages/core/src/storage/onboarding.ts",
720937
+ "./tools/index": "./packages/core/src/tools/index.ts",
720938
+ "./tools/types": "./packages/core/src/tools/types.ts",
720939
+ "./tools/agents/index": "./packages/core/src/tools/agents/index.ts",
720940
+ "./tools/filesystem/index": "./packages/core/src/tools/filesystem/index.ts",
720941
+ "./tools/web/index": "./packages/core/src/tools/web/index.ts",
720942
+ "./tools/projects/index": "./packages/core/src/tools/projects/index.ts",
720943
+ "./tools/cron/index": "./packages/core/src/tools/cron/index.ts",
720944
+ "./tools/schedule": "./packages/core/src/tools/schedule.ts",
720945
+ "./tools/cli/index": "./packages/core/src/tools/cli/index.ts",
720946
+ "./tools/canvas/index": "./packages/core/src/tools/canvas/index.ts",
720947
+ "./tools/codebridge/index": "./packages/core/src/tools/codebridge/index.ts",
720948
+ "./tools/voice/index": "./packages/core/src/tools/voice/index.ts",
720949
+ "./tools/core/index": "./packages/core/src/tools/core/index.ts",
720950
+ "./config/index": "./packages/core/src/config/index.ts",
720951
+ "./utils/logger": "./packages/core/src/utils/logger.ts",
720952
+ "./utils/crypto": "./packages/core/src/utils/crypto.ts",
720953
+ "./utils/retry": "./packages/core/src/utils/retry.ts",
720954
+ "./gateway/index": "./packages/core/src/gateway/index.ts",
720955
+ "./gateway/server": "./packages/core/src/gateway/server.ts",
720956
+ "./mcp": "./packages/mcp/src/index.ts",
720957
+ "./mcp/manager": "./packages/mcp/src/manager.ts",
720958
+ "./mcp/config": "./packages/mcp/src/config.ts",
720959
+ "./mcp/logger": "./packages/mcp/src/logger.ts",
720960
+ "./mcp/transports": "./packages/mcp/src/transports/index.ts",
720961
+ "./skills": "./packages/skills/src/index.ts",
720962
+ "./skills/loader": "./packages/skills/src/loader.ts",
720963
+ "./code-bridge": "./packages/code-bridge/src/index.ts",
720964
+ "./cli": "./packages/cli/src/index.ts",
720965
+ "./sdk": "./packages/sdk/src/index.ts",
720966
+ "./sdk/*": "./packages/sdk/src/*"
720967
+ },
720908
720968
  files: [
720909
- "src/"
720969
+ "dist/hive.js",
720970
+ "dist/hive.cmd",
720971
+ "dist/hive.ps1",
720972
+ "dist/ui",
720973
+ "README.md",
720974
+ "LICENSE"
720910
720975
  ],
720976
+ repository: {
720977
+ type: "git",
720978
+ url: "git+https://github.com/johpaz/hive.git"
720979
+ },
720980
+ keywords: [
720981
+ "hive",
720982
+ "agents",
720983
+ "ai",
720984
+ "llm",
720985
+ "context-engine",
720986
+ "local-first",
720987
+ "multi-channel",
720988
+ "telegram",
720989
+ "discord",
720990
+ "whatsapp",
720991
+ "bun",
720992
+ "sqlite",
720993
+ "mcp",
720994
+ "open-source",
720995
+ "latam",
720996
+ "colombia"
720997
+ ],
720998
+ license: "MIT",
720911
720999
  scripts: {
721000
+ hive: "bun packages/cli/src/index.ts",
721001
+ dev: "cd packages/hive-ui && bun run build && cd ../.. && HIVE_HOME=$HOME/.hive-dev HIVE_DEV=true bun run packages/cli/src/index.ts dev",
721002
+ "doctor:dev": "HIVE_HOME=$HOME/.hive-dev HIVE_DEV=true bun run packages/cli/src/index.ts doctor",
721003
+ "dev:keep": "HIVE_HOME=$HOME/.hive-dev HIVE_DEV=true HIVE_DEV_CLEAN=false bun run packages/cli/src/index.ts dev",
721004
+ start: "bun run packages/cli/src/index.ts start",
721005
+ build: "bun packages/skills/scripts/generate-bundle.ts && bun build packages/cli/src/index.ts --bundle --outfile dist/hive.js --target bun && cd packages/hive-ui && bun run build && cd ../.. && cp -r packages/hive-ui/dist dist/ui && bun packages/cli/scripts/postbuild.ts",
721006
+ "build:binary": "cd packages/hive-ui && bun run build && cd ../cli && bun scripts/generate-ui-bundle.ts && bun build src/index.ts --compile --outfile ../../dist/hive-binary",
721007
+ prepublishOnly: "bun run build",
720912
721008
  test: "bun test",
720913
- typecheck: "tsc --noEmit"
721009
+ "test:ci": "bun test --coverage",
721010
+ lint: "bunx tsc --noEmit",
721011
+ "build:binaries": "bun run scripts/build-binaries.ts",
721012
+ bench: "bun run scripts/bench.ts",
721013
+ "publish:sdk": "bun run scripts/publish-sdk.ts",
721014
+ "reload-tools": "bun run scripts/reload-tools.ts"
720914
721015
  },
720915
721016
  dependencies: {
720916
721017
  "@ag-ui/core": "^0.0.46",
720917
- "@johpaz/hive-agents-code-bridge": "^0.0.23",
720918
- "@johpaz/hive-agents-mcp": "^0.0.23",
720919
- "@johpaz/hive-agents-skills": "^0.0.23",
720920
- "@modelcontextprotocol/sdk": "latest",
720921
- "@puppeteer/browsers": "^2.13.0",
721018
+ "@anthropic-ai/sdk": "^0.74.0",
721019
+ "@clack/prompts": "^0.5.0",
721020
+ "@google/genai": "^1.43.0",
721021
+ "@modelcontextprotocol/sdk": "^1.26.0",
720922
721022
  "@sapphire/snowflake": "latest",
720923
721023
  "@slack/bolt": "latest",
721024
+ "@vitejs/plugin-react": "^5.1.4",
720924
721025
  "@whiskeysockets/baileys": "latest",
721026
+ "async-mutex": "^0.5.0",
721027
+ "cron-parser": "^5.5.0",
720925
721028
  croner: "^10.0.1",
720926
721029
  "discord.js": "latest",
720927
- docx: "^9.6.1",
720928
721030
  grammy: "latest",
720929
- "js-yaml": "latest",
720930
- jszip: "^3.10.1",
720931
- mammoth: "^1.12.0",
720932
- "pdf-lib": "^1.17.1",
720933
- "pdfjs-dist": "^5.6.205",
720934
- pptxgenjs: "^4.0.1",
720935
- puppeteer: "^24.39.1",
721031
+ "groq-sdk": "^0.37.0",
721032
+ "isomorphic-git": "^1.37.2",
721033
+ "js-yaml": "^4.1.1",
721034
+ jsonwebtoken: "^9.0.3",
721035
+ ollama: "^0.6.3",
721036
+ openai: "^6.18.0",
721037
+ "puppeteer-core": "^24.0.0",
720936
721038
  "qrcode-terminal": "latest",
720937
- "toon-format-parser": "1.1.4",
720938
- xlsx: "^0.18.5",
721039
+ "react-markdown": "^10.1.0",
721040
+ "toon-format-parser": "^1.1.0",
720939
721041
  zod: "latest"
720940
721042
  },
720941
721043
  devDependencies: {
720942
- typescript: "6.0.2",
720943
- "@types/bun": "latest"
721044
+ "@types/bun": "latest",
721045
+ "@types/js-yaml": "^4.0.9",
721046
+ "@types/jsonwebtoken": "^9.0.10",
721047
+ "@types/react": "^18.3.23",
721048
+ typescript: "6.0.2"
720944
721049
  },
720945
- exports: {
720946
- ".": "./src/index.ts",
720947
- "./gateway": "./src/gateway/index.ts",
720948
- "./agent": "./src/agent/index.ts",
720949
- "./agent/service": "./src/agent/service.ts",
720950
- "./agent/agent-loop": "./src/agent/agent-loop.ts",
720951
- "./agent/context-compiler": "./src/agent/context-compiler.ts",
720952
- "./agent/prompt-builder": "./src/agent/prompt-builder.ts",
720953
- "./agent/conversation-store": "./src/agent/conversation-store.ts",
720954
- "./agent/tool-selector": "./src/agent/tool-selector.ts",
720955
- "./agent/skill-selector": "./src/agent/skill-selector.ts",
720956
- "./agent/playbook-selector": "./src/agent/playbook-selector.ts",
720957
- "./agent/llm-client": "./src/agent/llm-client.ts",
720958
- "./channels": "./src/channels/index.ts",
720959
- "./channels/base": "./src/channels/base.ts",
720960
- "./channels/manager": "./src/channels/manager.ts",
720961
- "./channels/telegram": "./src/channels/telegram.ts",
720962
- "./channels/discord": "./src/channels/discord.ts",
720963
- "./channels/whatsapp": "./src/channels/whatsapp.ts",
720964
- "./channels/slack": "./src/channels/slack.ts",
720965
- "./channels/webchat": "./src/channels/webchat.ts",
720966
- "./config": "./src/config/loader.ts",
720967
- "./config/loader": "./src/config/loader.ts",
720968
- "./utils": "./src/utils/logger.ts",
720969
- "./utils/logger": "./src/utils/logger.ts",
720970
- "./storage/sqlite": "./src/storage/sqlite.ts",
720971
- "./storage/onboarding": "./src/storage/onboarding.ts",
720972
- "./storage/crypto": "./src/storage/crypto.ts",
720973
- "./storage/schema": "./src/storage/schema.ts",
720974
- "./storage/seed": "./src/storage/seed.ts",
720975
- "./tools": "./src/tools/index.ts",
720976
- "./tools/agents": "./src/tools/agents/index.ts",
720977
- "./tools/canvas": "./src/tools/canvas/index.ts",
720978
- "./tools/cli": "./src/tools/cli/index.ts",
720979
- "./tools/codebridge": "./src/tools/codebridge/index.ts",
720980
- "./tools/core": "./src/tools/core/index.ts",
720981
- "./tools/cron": "./src/tools/cron/index.ts",
720982
- "./tools/filesystem": "./src/tools/filesystem/index.ts",
720983
- "./tools/office": "./src/tools/office/index.ts",
720984
- "./tools/projects": "./src/tools/projects/index.ts",
720985
- "./tools/voice": "./src/tools/voice/index.ts",
720986
- "./tools/web": "./src/tools/web/index.ts",
720987
- "./tools/schedule": "./src/tools/schedule.ts",
720988
- "./integrations": "./src/integrations/index.ts",
720989
- "./integrations/catalog": "./src/integrations/catalog.ts",
720990
- "./integrations/env": "./src/integrations/env.ts",
720991
- "./voice": "./src/voice/index.ts",
720992
- "./scheduler/dag": "./src/scheduler/dag/index.ts"
721050
+ overrides: {
721051
+ vite: "^8.0.0"
721052
+ },
721053
+ resolutions: {
721054
+ vite: "^8.0.0"
720993
721055
  }
720994
721056
  };
720995
721057
  });
@@ -721074,33 +721136,7 @@ async function handleGetVersion(req, addCorsHeaders) {
721074
721136
  status: "checking",
721075
721137
  installationType
721076
721138
  };
721077
- const latestPromise = installationType === "docker" ? getLatestVersionFromGitHub() : getLatestVersionFromNpm();
721078
- latestPromise.then((latest2) => {
721079
- if (latest2) {
721080
- const isUpdateAvailable = compareVersions4(latest2, CURRENT_VERSION) > 0;
721081
- versionInfo = {
721082
- current: CURRENT_VERSION,
721083
- latest: latest2,
721084
- status: isUpdateAvailable ? "update-available" : "up-to-date",
721085
- installationType
721086
- };
721087
- } else {
721088
- versionInfo = {
721089
- current: CURRENT_VERSION,
721090
- status: "error",
721091
- error: "No se pudo verificar la \xFAltima versi\xF3n",
721092
- installationType
721093
- };
721094
- }
721095
- }).catch((err) => {
721096
- versionInfo = {
721097
- current: CURRENT_VERSION,
721098
- status: "error",
721099
- error: err.message,
721100
- installationType
721101
- };
721102
- });
721103
- const latest = await latestPromise;
721139
+ const latest = await getLatestVersionFromNpm().then((v2) => v2 ?? getLatestVersionFromGitHub());
721104
721140
  if (latest) {
721105
721141
  const isUpdateAvailable = compareVersions4(latest, CURRENT_VERSION) > 0;
721106
721142
  versionInfo = {
@@ -726046,6 +726082,12 @@ ${messageContent}`;
726046
726082
  return true;
726047
726083
  } catch {}
726048
726084
  }
726085
+ try {
726086
+ const user = getDb().query(`SELECT email, password_hash FROM users LIMIT 1`).get();
726087
+ const hasCredentials = !!(user?.email && user?.password_hash);
726088
+ if (!hasCredentials)
726089
+ return true;
726090
+ } catch {}
726049
726091
  const activeToken = process.env.HIVE_AUTH_TOKEN;
726050
726092
  if (!activeToken)
726051
726093
  return true;
@@ -731461,7 +731503,7 @@ async function start(flags3) {
731461
731503
  \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
731462
731504
  \u2551 \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u2551
731463
731505
  \u2551 \u2551
731464
- \u2551 Personal Swarm AI Gateway \u2014 v0.0.23 \u2551
731506
+ \u2551 Personal Swarm AI Gateway \u2014 v0.0.25 \u2551
731465
731507
  \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
731466
731508
 
731467
731509
  \uD83D\uDCE6 Installation: ${adapter.name}
@@ -733898,16 +733940,23 @@ async function updateFromGitRepo() {
733898
733940
  }
733899
733941
  async function updateFromGlobalPackage() {
733900
733942
  try {
733901
- const { execSync: execSync7 } = await import("child_process");
733902
- const currentVersion = execSync7("hive --version", { encoding: "utf-8" }).trim();
733943
+ const { execSync: execSync8 } = await import("child_process");
733944
+ const currentVersion = execSync8("hive --version", { encoding: "utf-8" }).trim();
733903
733945
  console.log(`Versi\xF3n actual: ${currentVersion}`);
733904
733946
  } catch {
733905
733947
  console.log("Versi\xF3n actual: desconocida");
733906
733948
  }
733949
+ const { execSync: execSync7 } = await import("child_process");
733950
+ let packageManager = "npm";
733951
+ try {
733952
+ execSync7("bun --version", { encoding: "utf-8", stdio: "pipe" });
733953
+ packageManager = "bun";
733954
+ } catch {}
733955
+ const installCmd = packageManager === "bun" ? ["bun", "install", "-g", `${MAIN_PACKAGE}@latest`] : ["npm", "install", "-g", `${MAIN_PACKAGE}@latest`];
733907
733956
  console.log(`
733908
- Descargando ${MAIN_PACKAGE}@latest...`);
733957
+ Descargando ${MAIN_PACKAGE}@latest (via ${packageManager})...`);
733909
733958
  try {
733910
- const proc = Bun.spawn(["bun", "install", "-g", `${MAIN_PACKAGE}@latest`], {
733959
+ const proc = Bun.spawn(installCmd, {
733911
733960
  stdout: "inherit",
733912
733961
  stderr: "inherit"
733913
733962
  });
@@ -733915,7 +733964,7 @@ Descargando ${MAIN_PACKAGE}@latest...`);
733915
733964
  if (exitCode !== 0) {
733916
733965
  console.log(`
733917
733966
  \u26A0\uFE0F Error durante la actualizaci\xF3n (exit code ${exitCode})`);
733918
- console.log(` Intenta manualmente: bun install -g ${MAIN_PACKAGE}@latest
733967
+ console.log(` Intenta manualmente: ${installCmd.join(" ")}
733919
733968
  `);
733920
733969
  return;
733921
733970
  }
@@ -734263,7 +734312,8 @@ async function migrate() {
734263
734312
  }
734264
734313
 
734265
734314
  // packages/cli/src/index.ts
734266
- var VERSION5 = "0.0.23";
734315
+ init_package();
734316
+ var VERSION5 = package_default.version;
734267
734317
  var HELP = `
734268
734318
  \uD83D\uDC1D Hive \u2014 Personal Swarm AI Gateway v${VERSION5}
734269
734319