botinabox 1.5.0 → 1.7.0
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 +12 -6
- package/dist/index.d.ts +771 -1
- package/dist/index.js +1529 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,6 +5,14 @@ A modular TypeScript framework for building multi-agent bots with LLM orchestrat
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
7
|
- **Multi-agent orchestration** -- Define agents with different models, roles, and execution adapters. Task queue with priority scheduling, retry policies, and followup chains.
|
|
8
|
+
- **Chat response layer** -- Fast (<2s) conversational responses via cheap LLM. Rolling context window, LLM-filtered readability, redundancy suppression. Store-before-respond guarantee for all messages.
|
|
9
|
+
- **Message interpretation** -- Async structured extraction from messages into tasks, memories, files, and user context. Pluggable extractors for custom data types.
|
|
10
|
+
- **Two-tier agents** -- Deterministic adapter for tasks that don't need LLM reasoning (routing, validation, data fetching). API and CLI adapters for LLM-driven tasks.
|
|
11
|
+
- **Triage routing** -- Content-aware message routing with keyword/regex matching, priority rules, and LLM fallback for ambiguous messages. Ownership chain logging for every routing decision.
|
|
12
|
+
- **Loop detection and circuit breakers** -- Pattern-based loop detection (self-loops, ping-pong, blocked re-entry) plus circuit breakers with automatic human escalation when agents fail repeatedly.
|
|
13
|
+
- **Learning pipeline** -- Structured feedback capture with auto-promotion: 3+ similar feedback records become a playbook, playbooks used by 3+ agents become reusable skills. Two-axis scoring (accuracy + efficiency).
|
|
14
|
+
- **Governance gates** -- Independent QA, quality, and drift gates that validate agent output and report to the human operator. Gates run independently and cannot override each other.
|
|
15
|
+
- **Permission relay** -- Remote approval for unattended agents via messaging platforms (Slack, Discord, Telegram). Dual approval: local terminal and remote, first response wins.
|
|
8
16
|
- **LLM provider abstraction** -- Swap between Anthropic, OpenAI, and Ollama with a unified interface. Model aliasing, purpose-based routing, and fallback chains.
|
|
9
17
|
- **Channel adapters** -- Connect to Slack, Discord, and webhooks. Auto-discovery, session management, and notification queuing.
|
|
10
18
|
- **Workflow engine** -- Define multi-step workflows with dependency resolution, parallel execution, and conditional branching.
|
|
@@ -15,8 +23,6 @@ A modular TypeScript framework for building multi-agent bots with LLM orchestrat
|
|
|
15
23
|
- **Connectors** -- Generic `Connector<T>` interface for external service integrations. Ships with Google Gmail and Calendar implementations (OAuth2 and service account auth).
|
|
16
24
|
- **Domain tables** -- `defineDomainTables()` and `defineDomainEntityContexts()` for standard multi-agent app schemas (org, project, client, invoice, repository, and more).
|
|
17
25
|
- **Auto-update** -- `autoUpdate()` checks npm for newer versions and installs them at startup.
|
|
18
|
-
- **Cursor persistence** -- `SecretStore.loadCursor()` / `saveCursor()` for persisting sync state across restarts.
|
|
19
|
-
- **Utilities** -- `truncateAtWord()` for word-boundary text truncation, `parseClaudeStream()`, `buildProcessEnv()`, and more.
|
|
20
26
|
- **Security** -- Input sanitization, field length enforcement, audit logging, and HMAC webhook verification.
|
|
21
27
|
|
|
22
28
|
## Install
|
|
@@ -128,10 +134,10 @@ hooks.register('run.completed', async (ctx) => {
|
|
|
128
134
|
|
|
|
129
135
|
+--------------------+--------------------+
|
|
130
136
|
v v v
|
|
131
|
-
+------------------+ +------------------+
|
|
132
|
-
| CLI Adapter | | API Adapter | |
|
|
133
|
-
| (subprocess) | | (LLM + tools) | |
|
|
134
|
-
+------------------+ +--------+----------+
|
|
137
|
+
+------------------+ +------------------+ +------------------+
|
|
138
|
+
| CLI Adapter | | API Adapter | | Deterministic |
|
|
139
|
+
| (subprocess) | | (LLM + tools) | | (no LLM) |
|
|
140
|
+
+------------------+ +--------+----------+ +------------------+
|
|
135
141
|
|
|
|
136
142
|
+--------------v-----------------------+
|
|
137
143
|
| LLM Layer |
|