@aemi-cli/aemi 0.0.12 → 0.0.14

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 (2) hide show
  1. package/README.md +108 -0
  2. package/package.json +5 -5
package/README.md ADDED
@@ -0,0 +1,108 @@
1
+ # AEMI
2
+
3
+ Agent Mirror - AI agent routing tool with Telegram and Discord bot integration.
4
+
5
+ A CLI tool that relays AI agent responses through Telegram/Discord bots.
6
+
7
+ ## Origin
8
+
9
+ This project is a fork of [kstost/cokacdir](https://github.com/kstost/cokacdir). It is based on the LLM CLI routing portion of the original project, with the TUI file manager removed to focus on bot relay functionality.
10
+
11
+ ## Features
12
+
13
+ - **AI Agent Routing**: Query AI agents and receive responses via `--prompt`
14
+ - **Telegram Bot**: Route AI agent through Telegram with `--routing telegram`
15
+ - **Discord Bot**: Route AI agent through Discord with `--routing discord`
16
+ - **Multi-Bot**: Run multiple Telegram bot tokens simultaneously
17
+ - **Access Control**: `--chat-id` (Telegram) / `--channel-id` (Discord) required for routing
18
+
19
+ ## Usage
20
+
21
+ ```bash
22
+ # Query Claude Code directly
23
+ aemi --prompt "explain this code"
24
+
25
+ # Start Telegram bot server with Claude (--chat-id required)
26
+ aemi --agent claude --routing telegram --token <TOKEN> --chat-id <CHAT_ID>
27
+
28
+ # Start Telegram bot server with Gemini
29
+ aemi --agent gemini --routing telegram --token <TOKEN> --chat-id <CHAT_ID>
30
+
31
+ # Start Discord bot server (--channel-id required)
32
+ aemi --agent claude --routing discord --token <TOKEN> --channel-id <CHANNEL_ID>
33
+
34
+ # Start Telegram bot server with Codex
35
+ aemi --agent codex --routing telegram --token <TOKEN> --chat-id <CHAT_ID>
36
+
37
+ # Start Discord bot server with Gemini
38
+ aemi --agent gemini --routing discord --token <TOKEN> --channel-id <CHANNEL_ID>
39
+
40
+ # Start Discord bot server with Codex
41
+ aemi --agent codex --routing discord --token <TOKEN> --channel-id <CHANNEL_ID>
42
+
43
+ # Start Telegram bot server with OpenCode
44
+ aemi --agent opencode --routing telegram --token <TOKEN> --chat-id <CHAT_ID>
45
+
46
+ # Start Discord bot server with OpenCode
47
+ aemi --agent opencode --routing discord --token <TOKEN> --channel-id <CHANNEL_ID>
48
+
49
+ # Run multiple Telegram bots simultaneously
50
+ aemi --agent claude --routing telegram --token <TOKEN1> <TOKEN2> <TOKEN3> --chat-id <CHAT_ID>
51
+ ```
52
+
53
+ ## Installation
54
+
55
+ ### Prerequisites
56
+
57
+ - Install the CLI tool for the agent you want to use (see [Agent Types](#agent-types))
58
+
59
+ ### Build from source
60
+
61
+ ```bash
62
+ # Clone
63
+ git clone https://github.com/KyongSik-Yoon/aemi.git
64
+ cd aemi
65
+
66
+ # Build
67
+ cargo build --release
68
+
69
+ # Binary location
70
+ ./target/release/aemi
71
+ ```
72
+
73
+ See [build_manual.md](build_manual.md) for detailed build instructions including cross-compilation.
74
+
75
+ ## Agent Types
76
+
77
+ | Agent | CLI Flag | Status | Priority |
78
+ |-------|----------|--------|----------|
79
+ | [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | `--agent claude` | Available | - |
80
+ | [Gemini CLI](https://github.com/google-gemini/gemini-cli) | `--agent gemini` | Available | - |
81
+ | [Codex CLI](https://github.com/openai/codex) | `--agent codex` | Available | - |
82
+ | [OpenCode](https://opencode.ai) | `--agent opencode` | Available | - |
83
+
84
+ ### Prerequisites per Agent
85
+
86
+ Each agent requires its own CLI tool to be installed:
87
+
88
+ - **Claude**: `npm install -g @anthropic-ai/claude-code`
89
+ - **Gemini**: `npm install -g @google/gemini-cli`
90
+ - **Codex**: `npm install -g @openai/codex`
91
+ - **OpenCode**: `npm install -g opencode` (or see [opencode.ai](https://opencode.ai/docs/) for other methods)
92
+
93
+ ## Supported Platforms
94
+
95
+ - macOS (Apple Silicon & Intel)
96
+ - Linux (x86_64 & ARM64)
97
+
98
+ ## License
99
+
100
+ MIT License
101
+
102
+ ## Disclaimer
103
+
104
+ THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
105
+
106
+ IN NO EVENT SHALL THE AUTHORS, COPYRIGHT HOLDERS, OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
107
+
108
+ **USE AT YOUR OWN RISK.**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aemi-cli/aemi",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "LLM CLI routing tool with Telegram and Discord bot integration",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -23,9 +23,9 @@
23
23
  "aemi": "bin/aemi"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@aemi-cli/linux-x64": "0.0.12",
27
- "@aemi-cli/linux-arm64": "0.0.12",
28
- "@aemi-cli/darwin-x64": "0.0.12",
29
- "@aemi-cli/darwin-arm64": "0.0.12"
26
+ "@aemi-cli/linux-x64": "0.0.14",
27
+ "@aemi-cli/linux-arm64": "0.0.14",
28
+ "@aemi-cli/darwin-x64": "0.0.14",
29
+ "@aemi-cli/darwin-arm64": "0.0.14"
30
30
  }
31
31
  }