open-agents-ai 0.62.0 → 0.62.1
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 +29 -0
- package/dist/index.d.ts +6 -59
- package/dist/index.js +37801 -250
- package/package.json +1 -1
- package/dist/args.d.ts +0 -3
- package/dist/args.d.ts.map +0 -1
- package/dist/args.js +0 -51
- package/dist/args.js.map +0 -1
- package/dist/bin.d.ts +0 -3
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js +0 -7
- package/dist/bin.js.map +0 -1
- package/dist/cli.d.ts +0 -5
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -39
- package/dist/cli.js.map +0 -1
- package/dist/commands/config.d.ts +0 -32
- package/dist/commands/config.d.ts.map +0 -1
- package/dist/commands/config.js +0 -188
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/eval.d.ts +0 -33
- package/dist/commands/eval.d.ts.map +0 -1
- package/dist/commands/eval.js +0 -211
- package/dist/commands/eval.js.map +0 -1
- package/dist/commands/index-repo.d.ts +0 -16
- package/dist/commands/index-repo.d.ts.map +0 -1
- package/dist/commands/index-repo.js +0 -84
- package/dist/commands/index-repo.js.map +0 -1
- package/dist/commands/run.d.ts +0 -25
- package/dist/commands/run.d.ts.map +0 -1
- package/dist/commands/run.js +0 -36
- package/dist/commands/run.js.map +0 -1
- package/dist/commands/serve.d.ts +0 -34
- package/dist/commands/serve.d.ts.map +0 -1
- package/dist/commands/serve.js +0 -195
- package/dist/commands/serve.js.map +0 -1
- package/dist/commands/status.d.ts +0 -14
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -186
- package/dist/commands/status.js.map +0 -1
- package/dist/config.d.ts +0 -49
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -150
- package/dist/config.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/open-agents-bin +0 -11
- package/dist/tui/bless-engine.d.ts +0 -53
- package/dist/tui/bless-engine.d.ts.map +0 -1
- package/dist/tui/bless-engine.js +0 -158
- package/dist/tui/bless-engine.js.map +0 -1
- package/dist/tui/braille-spinner.d.ts +0 -83
- package/dist/tui/braille-spinner.d.ts.map +0 -1
- package/dist/tui/braille-spinner.js +0 -288
- package/dist/tui/braille-spinner.js.map +0 -1
- package/dist/tui/call-agent.d.ts +0 -78
- package/dist/tui/call-agent.d.ts.map +0 -1
- package/dist/tui/call-agent.js +0 -299
- package/dist/tui/call-agent.js.map +0 -1
- package/dist/tui/carousel-descriptors.d.ts +0 -46
- package/dist/tui/carousel-descriptors.d.ts.map +0 -1
- package/dist/tui/carousel-descriptors.js +0 -367
- package/dist/tui/carousel-descriptors.js.map +0 -1
- package/dist/tui/carousel.d.ts +0 -53
- package/dist/tui/carousel.d.ts.map +0 -1
- package/dist/tui/carousel.js +0 -315
- package/dist/tui/carousel.js.map +0 -1
- package/dist/tui/commands.d.ts +0 -147
- package/dist/tui/commands.d.ts.map +0 -1
- package/dist/tui/commands.js +0 -1140
- package/dist/tui/commands.js.map +0 -1
- package/dist/tui/dmn-engine.d.ts +0 -199
- package/dist/tui/dmn-engine.d.ts.map +0 -1
- package/dist/tui/dmn-engine.js +0 -982
- package/dist/tui/dmn-engine.js.map +0 -1
- package/dist/tui/dream-engine.d.ts +0 -133
- package/dist/tui/dream-engine.d.ts.map +0 -1
- package/dist/tui/dream-engine.js +0 -1358
- package/dist/tui/dream-engine.js.map +0 -1
- package/dist/tui/edit-history.d.ts +0 -38
- package/dist/tui/edit-history.d.ts.map +0 -1
- package/dist/tui/edit-history.js +0 -140
- package/dist/tui/edit-history.js.map +0 -1
- package/dist/tui/emotion-engine.d.ts +0 -100
- package/dist/tui/emotion-engine.d.ts.map +0 -1
- package/dist/tui/emotion-engine.js +0 -334
- package/dist/tui/emotion-engine.js.map +0 -1
- package/dist/tui/index.d.ts +0 -7
- package/dist/tui/index.d.ts.map +0 -1
- package/dist/tui/index.js +0 -5
- package/dist/tui/index.js.map +0 -1
- package/dist/tui/interactive.d.ts +0 -12
- package/dist/tui/interactive.d.ts.map +0 -1
- package/dist/tui/interactive.js +0 -2723
- package/dist/tui/interactive.js.map +0 -1
- package/dist/tui/listen.d.ts +0 -128
- package/dist/tui/listen.d.ts.map +0 -1
- package/dist/tui/listen.js +0 -752
- package/dist/tui/listen.js.map +0 -1
- package/dist/tui/model-picker.d.ts +0 -55
- package/dist/tui/model-picker.d.ts.map +0 -1
- package/dist/tui/model-picker.js +0 -283
- package/dist/tui/model-picker.js.map +0 -1
- package/dist/tui/oa-directory.d.ts +0 -181
- package/dist/tui/oa-directory.d.ts.map +0 -1
- package/dist/tui/oa-directory.js +0 -500
- package/dist/tui/oa-directory.js.map +0 -1
- package/dist/tui/project-context.d.ts +0 -99
- package/dist/tui/project-context.d.ts.map +0 -1
- package/dist/tui/project-context.js +0 -377
- package/dist/tui/project-context.js.map +0 -1
- package/dist/tui/render.d.ts +0 -102
- package/dist/tui/render.d.ts.map +0 -1
- package/dist/tui/render.js +0 -883
- package/dist/tui/render.js.map +0 -1
- package/dist/tui/setup.d.ts +0 -99
- package/dist/tui/setup.d.ts.map +0 -1
- package/dist/tui/setup.js +0 -1349
- package/dist/tui/setup.js.map +0 -1
- package/dist/tui/snr-engine.d.ts +0 -115
- package/dist/tui/snr-engine.d.ts.map +0 -1
- package/dist/tui/snr-engine.js +0 -440
- package/dist/tui/snr-engine.js.map +0 -1
- package/dist/tui/status-bar.d.ts +0 -312
- package/dist/tui/status-bar.d.ts.map +0 -1
- package/dist/tui/status-bar.js +0 -1042
- package/dist/tui/status-bar.js.map +0 -1
- package/dist/tui/stream-renderer.d.ts +0 -106
- package/dist/tui/stream-renderer.d.ts.map +0 -1
- package/dist/tui/stream-renderer.js +0 -562
- package/dist/tui/stream-renderer.js.map +0 -1
- package/dist/tui/telegram-bridge.d.ts +0 -220
- package/dist/tui/telegram-bridge.d.ts.map +0 -1
- package/dist/tui/telegram-bridge.js +0 -1274
- package/dist/tui/telegram-bridge.js.map +0 -1
- package/dist/tui/tool-policy.d.ts +0 -57
- package/dist/tui/tool-policy.d.ts.map +0 -1
- package/dist/tui/tool-policy.js +0 -189
- package/dist/tui/tool-policy.js.map +0 -1
- package/dist/tui/voice-session.d.ts +0 -118
- package/dist/tui/voice-session.d.ts.map +0 -1
- package/dist/tui/voice-session.js +0 -846
- package/dist/tui/voice-session.js.map +0 -1
- package/dist/tui/voice.d.ts +0 -126
- package/dist/tui/voice.d.ts.map +0 -1
- package/dist/tui/voice.js +0 -1435
- package/dist/tui/voice.js.map +0 -1
- package/dist/types.d.ts +0 -10
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -9
- package/dist/types.js.map +0 -1
- package/dist/ui/output.d.ts +0 -36
- package/dist/ui/output.d.ts.map +0 -1
- package/dist/ui/output.js +0 -117
- package/dist/ui/output.js.map +0 -1
- package/dist/ui/spinner.d.ts +0 -30
- package/dist/ui/spinner.d.ts.map +0 -1
- package/dist/ui/spinner.js +0 -106
- package/dist/ui/spinner.js.map +0 -1
- package/dist/updater.d.ts +0 -42
- package/dist/updater.d.ts.map +0 -1
- package/dist/updater.js +0 -165
- package/dist/updater.js.map +0 -1
package/README.md
CHANGED
|
@@ -40,6 +40,7 @@ An autonomous multi-turn tool-calling agent that reads your code, makes changes,
|
|
|
40
40
|
- **Autoresearch Swarm** — 5-agent GPU experiment loop during REM sleep: Researcher, Monitor, Evaluator, Critic, Flow Maintainer autonomously run ML training experiments, keep improvements, discard regressions
|
|
41
41
|
- **Live Listen** — bidirectional voice communication with real-time Whisper transcription
|
|
42
42
|
- **Live Voice Session** — `/listen` with `/voice` enabled spawns a cloudflared tunnel with a real-time WebSocket audio endpoint. A floating presence UI shows live transcription, connected users, and audio visualization. Echo cancellation prevents TTS feedback loops
|
|
43
|
+
- **Call Sub-Agent** — each WebSocket caller gets a dedicated AgenticRunner for low-latency voice-to-voice loops, with admin/public access tiers and bidirectional activity sharing with the main agent
|
|
43
44
|
- **Telegram Voice** — `/voice` enabled via Telegram forwards TTS audio as voice messages alongside text responses. Incoming voice messages are auto-transcribed and handled as text
|
|
44
45
|
- **Neural TTS** — hear what the agent is doing via GLaDOS or Overwatch ONNX voices, with personality-driven expressiveness
|
|
45
46
|
- **Personality Core** — SAC framework-based style control (concise/balanced/verbose/pedagogical) that shapes agent response depth, voice expressiveness, and system prompt behavior
|
|
@@ -1051,6 +1052,34 @@ When `/voice` is enabled and the Telegram bridge is active:
|
|
|
1051
1052
|
|
|
1052
1053
|
Cloudflared is automatically installed at startup alongside other dependencies (moondream, tesseract, transcribe-cli). The install is non-blocking and runs in the background.
|
|
1053
1054
|
|
|
1055
|
+
### Call Sub-Agent Architecture
|
|
1056
|
+
|
|
1057
|
+
Each WebSocket caller in a live voice session gets a **dedicated AgenticRunner** — a fully independent agent instance that handles the voice-to-text-to-LLM-to-TTS-to-reply pipeline with minimal latency.
|
|
1058
|
+
|
|
1059
|
+
**Access tiers** — callers connect at one of two privilege levels:
|
|
1060
|
+
|
|
1061
|
+
| Tier | URL | Tool Access | Max Turns |
|
|
1062
|
+
|------|-----|-------------|-----------|
|
|
1063
|
+
| **Admin** | `wss://…?key=<session-key>` | Full tool set (12 tools: file read/write/edit, shell, grep, glob, list directory, web search/fetch, memory read/write/search) | 15 |
|
|
1064
|
+
| **Public** | `wss://…` (no key) | Read-only tools (6 tools: file read, grep, glob, list directory, memory read/search) | 5 |
|
|
1065
|
+
|
|
1066
|
+
The **session key** is a `crypto.randomBytes(16)` hex string generated per TUI session and displayed in the terminal when the voice session starts. Passing it as the `?key=` URL parameter on the WebSocket connection upgrades the caller to admin access.
|
|
1067
|
+
|
|
1068
|
+
**ActivityFeed** — the main TUI agent and all call sub-agents share a bidirectional ring buffer (max 100 entries). Tool calls and results from call sub-agents surface in the main terminal waterfall, and the main agent's activity is visible to connected callers. Each entry carries timestamp, source (main/call), sourceId, tool name, success status, and a summary. Admin callers see verbose timestamped activity; public callers see surface-level summaries.
|
|
1069
|
+
|
|
1070
|
+
**Per-client lifecycle** — on WebSocket connect, a `CallSubAgent` is instantiated with its own `AgenticRunner`, `OllamaAgenticBackend`, and conversation history. Transcripts are queued FIFO if the agent is mid-response, ensuring nothing is dropped. On disconnect, the sub-agent is disposed and removed from the active client map.
|
|
1071
|
+
|
|
1072
|
+
### Content-Aware Voice Narration
|
|
1073
|
+
|
|
1074
|
+
The stochastic narration engine generates spoken descriptions of what the agent is doing for TTS output. Instead of preset phrases, it uses:
|
|
1075
|
+
|
|
1076
|
+
- **Variant pools** — 6-10 phrasings per tool per personality tier (terse/conversational/chatty), selected randomly with no back-to-back repeats
|
|
1077
|
+
- **Context modifiers** — tracks session state (consecutive errors, file revisits, progress beats) to add natural transitions like "Third time's the charm" or "Coming back to"
|
|
1078
|
+
- **Content digests** — extracts key details from actual tool result content (ETH balances, test results, error messages, wallet addresses, status tags, version numbers) and weaves them into the spoken narration. Instead of "Got it", the agent says "Got it — 2.5 ETH, address 0x9fe7F838..." or "That worked, 42 tests passed"
|
|
1079
|
+
- **Cross-tool context** — the digest from a tool result optionally carries forward into the next tool call description, so the agent can say "Checking that file, following up on 2.5 ETH" instead of repeating a generic opener
|
|
1080
|
+
- **Personality scaling** — terse mode (level 1-2) uses short functional descriptions; conversational (3) adds natural phrasing; chatty (4-5) adds theatrical commentary and content references
|
|
1081
|
+
- **Natural silence** — on bland successes without notable content, ~40% of the time the narration is skipped entirely for a more natural rhythm
|
|
1082
|
+
|
|
1054
1083
|
## Personality Core — SAC Framework Style Control
|
|
1055
1084
|
|
|
1056
1085
|
The personality system controls how the agent communicates — from silent operator to teacher mode. It's based on the **SAC framework** (arXiv:2506.20993) which models personality along five behavioral intensity dimensions rather than binary trait toggles.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,59 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* Commands:
|
|
8
|
-
* open-agents "task" implicit run
|
|
9
|
-
* open-agents run "task" explicit run
|
|
10
|
-
* open-agents index /path/to/repo index a repository
|
|
11
|
-
* open-agents status show system status
|
|
12
|
-
* open-agents config show config
|
|
13
|
-
* open-agents config set KEY VALUE set config key
|
|
14
|
-
* open-agents serve start vLLM server
|
|
15
|
-
* open-agents eval run eval suite
|
|
16
|
-
* open-agents --help help
|
|
17
|
-
* open-agents --version version
|
|
18
|
-
*/
|
|
19
|
-
import type { BackendType } from "./config.js";
|
|
20
|
-
export type CommandName = "run" | "index" | "status" | "config" | "serve" | "eval" | "unknown";
|
|
21
|
-
export interface ParsedCliArgs {
|
|
22
|
-
command: CommandName;
|
|
23
|
-
/** Task text for the run command */
|
|
24
|
-
task?: string;
|
|
25
|
-
/** Repository path (for run and index commands) */
|
|
26
|
-
repoPath?: string;
|
|
27
|
-
/** Config sub-command (e.g. "set", "keys") */
|
|
28
|
-
configSubCommand?: string;
|
|
29
|
-
/** Config key (for config set) */
|
|
30
|
-
configKey?: string;
|
|
31
|
-
/** Config value (for config set) */
|
|
32
|
-
configValue?: string;
|
|
33
|
-
/** Eval suite name */
|
|
34
|
-
evalSuite?: string;
|
|
35
|
-
/** vLLM server port for serve command */
|
|
36
|
-
servePort?: number;
|
|
37
|
-
model?: string;
|
|
38
|
-
backendUrl?: string;
|
|
39
|
-
backendType?: BackendType;
|
|
40
|
-
dryRun?: boolean;
|
|
41
|
-
verbose?: boolean;
|
|
42
|
-
maxRetries?: number;
|
|
43
|
-
timeoutMs?: number;
|
|
44
|
-
offline?: boolean;
|
|
45
|
-
/** When true, config set writes to .oa/settings.json (project-local) */
|
|
46
|
-
local?: boolean;
|
|
47
|
-
help?: boolean;
|
|
48
|
-
version?: boolean;
|
|
49
|
-
}
|
|
50
|
-
export declare function routeCommand(command: string): CommandName;
|
|
51
|
-
export declare function parseCliArgs(argv: string[]): ParsedCliArgs;
|
|
52
|
-
export { createCli } from "./cli.js";
|
|
53
|
-
export { parseArgs } from "./args.js";
|
|
54
|
-
export type { CliOptions } from "./types.js";
|
|
55
|
-
export { loadConfig, mergeConfig, setConfigValue, DEFAULT_CONFIG } from "./config.js";
|
|
56
|
-
export type { AgentConfig, BackendType } from "./config.js";
|
|
57
|
-
export { Spinner } from "./ui/spinner.js";
|
|
58
|
-
export { printHeader, printSuccess, printError, printWarning, printInfo, printSection, printKeyValue, printBlank, printReport, formatDuration, } from "./ui/output.js";
|
|
59
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { parseCliArgs, routeCommand } from "./types.js";
|
|
2
|
+
export type { ParsedCliArgs, CommandName } from "./types.js";
|
|
3
|
+
export { loadConfig, mergeConfig, setConfigValue, DEFAULT_CONFIG } from "./types.js";
|
|
4
|
+
export type { AgentConfig, BackendType } from "./types.js";
|
|
5
|
+
export { Spinner } from "./types.js";
|
|
6
|
+
export { printHeader, printSuccess, printError, printWarning, printInfo, printSection, printKeyValue, printBlank, printReport, formatDuration } from "./types.js";
|