Skip to content

v5.1.4 - HermesAdapter (#28), postinstall removed

Latest

Choose a tag to compare

@Jovancoding Jovancoding released this 23 Apr 18:39

What's new

Added

  • HermesAdapter (adapters/hermes-adapter.ts) — adapter #28, wrapping NousResearch Hermes and any OpenAI-compatible endpoint (Ollama, Together AI, Fireworks, llama.cpp). BYOC client path (HermesChatClient) or built-in fetch; API key from HERMES_API_KEY env var; per-request AbortController timeout.
  • 12 new tests in test-adapters.ts — total 2,711 passing across 26 suites.

Removed

  • scripts/postinstall.js — was patching node_modules/openai/src/tsconfig.json on install to suppress a TS 6.x moduleResolution deprecation warning. TypeScript now compiles cleanly without it. Removing the postinstall script eliminates the Socket.dev install-scripts supply-chain alert.

Fixed

  • tsconfig.json: add noEmit: true — prevents VS Code language server from emitting to dist/ and showing false TS5055 "would overwrite input file" errors.
  • tsconfig.build.json: override noEmit: false so npm run build still emits; exclude examples/output/ to prevent stale demo-generated files from breaking CI builds.

Upgrade

npm install network-ai@5.1.4

No breaking changes. Drop-in upgrade from v5.1.3.

Adapter count: 28

New Description
HermesAdapter NousResearch Hermes / any OpenAI-compatible endpoint — Ollama, Together AI, Fireworks, llama.cpp

Full adapter list: references/adapter-system.md