@rk0429/agentic-relay 0.2.0 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +14 -5
  2. package/dist/relay.mjs +1628 -685
  3. package/package.json +3 -1
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # agentic-relay
2
2
 
3
+ [![CI](https://github.com/RK0429/agentic-relay/actions/workflows/ci.yml/badge.svg)](https://github.com/RK0429/agentic-relay/actions/workflows/ci.yml)
4
+ [![npm version](https://img.shields.io/npm/v/@rk0429/agentic-relay)](https://www.npmjs.com/package/@rk0429/agentic-relay)
5
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
6
+ [![Node.js](https://img.shields.io/badge/node-%3E%3D22-brightgreen)](https://nodejs.org/)
7
+
3
8
  A unified CLI that brings Claude Code, Codex CLI, and Gemini CLI under a single interface -- solving tool fragmentation, enabling multi-layer sub-agent orchestration via MCP, and providing proactive context window monitoring.
4
9
 
5
10
  ## Why agentic-relay?
@@ -94,7 +99,9 @@ relay mcp list # List MCP servers
94
99
  relay mcp add <name> -- CMD # Add MCP server
95
100
  relay mcp remove <name> # Remove MCP server
96
101
  relay mcp sync # Sync MCP config to backends
97
- relay mcp serve # Start relay as MCP server (stdio)
102
+ relay mcp serve # Start as MCP server (stdio, default)
103
+ relay mcp serve --transport http # Start as MCP server (HTTP)
104
+ relay mcp serve --transport http --port 8080 # Custom port
98
105
  ```
99
106
 
100
107
  ## Configuration
@@ -144,9 +151,10 @@ Example configuration:
144
151
  | `RELAY_LOG_LEVEL` | Log level (debug/info/warn/error) | `info` |
145
152
  | `RELAY_MAX_DEPTH` | Max recursion depth in MCP server mode | `5` |
146
153
  | `RELAY_CONTEXT_THRESHOLD` | Context warning threshold (%) | `75` |
147
- | `ANTHROPIC_API_KEY` | Passed through to Claude Code | -- |
148
- | `OPENAI_API_KEY` | Passed through to Codex CLI | -- |
149
- | `GEMINI_API_KEY` | Passed through to Gemini CLI | -- |
154
+ | `RELAY_CLAUDE_PERMISSION_MODE` | Claude permission mode (`bypassPermissions` or `default`) | `bypassPermissions` |
155
+ | `ANTHROPIC_API_KEY` | Passed through to Claude Code (optional with subscription) | -- |
156
+ | `OPENAI_API_KEY` | Passed through to Codex CLI (optional with subscription) | -- |
157
+ | `GEMINI_API_KEY` | Passed through to Gemini CLI (optional with subscription) | -- |
150
158
 
151
159
  ## MCP Server Mode
152
160
 
@@ -309,7 +317,8 @@ src/
309
317
  - **Process management**: execa (interactive modes, Gemini CLI)
310
318
  - **Validation**: zod
311
319
  - **Logging**: consola
312
- - **Testing**: vitest (283 tests across 18 files)
320
+ - **Testing**: vitest (507 tests across 28 files)
321
+ - **Coverage**: @vitest/coverage-v8
313
322
 
314
323
  ## License
315
324