Skip to content

v1.8.1 — Core Abstractions & Handler Integration

Choose a tag to compare

@wheattoast11 wheattoast11 released this 07 Dec 06:31
· 3 commits to main since this release

v1.8.1 — Core Abstractions & Handler Integration

Core Abstractions (Convergence Plan v2.0)

  • Signal Protocol: Unified message type for inter-agent communication
    • Signal class with confidence scoring and source attribution
    • SignalBus for event-driven signal routing
    • ConsensusCalculator for multi-model consensus
  • Parameter Normalization: Single declarative alias system
    • Global aliases (q→query, k→limit, cost→costPreference)
    • Replaces 10+ scattered normalizer functions
  • Schema Registry: Centralized Zod schemas with composable building blocks
    • Domain-organized schemas (Research, KB, Job, Graph, Session, Util, Web)
  • RoleShift Protocol: Bidirectional communication via MCP sampling/elicitation

Handler Integration (Phase F)

  • Feature-flagged routing: CORE_HANDLERS_ENABLED=true routes 28 tools through handlers/
  • wrapWithHandler(): Unified wrapper function for handler → legacy fallback
  • Zero behavioral change: When handlers disabled, all tools use legacy implementations
  • Tools integrated: ping, date_time, calc, list_tools, search_tools, job_status, cancel_job, task_, undo, redo, fork_session, time_travel, session_state, checkpoint, graph_, search, query, retrieve, get_report, history

Consolidated Handlers

  • New src/server/handlers/ directory with domain-organized handlers
  • Master router in handlers/index.js for 28 tools

Error Visibility & Reliability

  • Error Infrastructure: MCPError, APIError, ConfigurationError classes
  • Pre-flight Checks: API key, database, and embedder validation
  • Job Worker Improvements: Fixed silent error swallowing, enhanced failure details

Codebase Cleanup

  • Removed 5 Windows .bat files, old archives, and 6 stale docs
  • Fixed duplicate searchTool() in tools.js

Installation

```bash
npm install @terminals-tech/openrouter-agents@1.8.1
```

Usage

```bash

Enable new handler routing

CORE_HANDLERS_ENABLED=true npx @terminals-tech/openrouter-agents --stdio

Legacy mode (default)

npx @terminals-tech/openrouter-agents --stdio
```

Full Changelog: v1.8.0...v1.8.1