@ebowwa/stack 0.1.4 → 0.3.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 (4) hide show
  1. package/README.md +26 -11
  2. package/dist/index.js +64318 -4384
  3. package/package.json +9 -9
  4. package/src/index.ts +122 -206
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # @ebowwa/stack
2
2
 
3
- Full-stack daemon orchestrator combining unified-router (cross-channel communication) and node-agent (Ralph orchestration).
3
+ Cross-channel AI stack with shared memory.
4
4
 
5
5
  ## Features
6
6
 
7
- - **Unified Router**: Cross-channel communication (SSH + Telegram)
8
- - **Node Agent**: Ralph loop orchestration, worktrees, monitoring
9
- - **Shared Memory**: Cross-channel context with permission controls
10
- - **HTTP API**: REST endpoints for management (port 8911)
7
+ - **Channels**: SSH, Telegram (both optional)
8
+ - **Cross-Channel Memory**: Shared context between channels with permission controls
9
+ - **AI Brain**: GLM-powered message handling with tool execution
10
+ - **Minimal API**: Status and health endpoints
11
11
 
12
12
  ## Installation
13
13
 
@@ -18,18 +18,33 @@ bun add @ebowwa/stack
18
18
  ## Usage
19
19
 
20
20
  ```bash
21
- # Start the stack
22
- bun run @ebowwa/stack
21
+ # Telegram only
22
+ TELEGRAM_BOT_TOKEN=xxx bun run @ebowwa/stack
23
23
 
24
- # Or via environment
24
+ # SSH only
25
+ SSH_CHAT_DIR=/root/.ssh-chat bun run @ebowwa/stack
26
+
27
+ # Both channels
25
28
  SSH_CHAT_DIR=/root/.ssh-chat TELEGRAM_BOT_TOKEN=xxx bun run @ebowwa/stack
26
29
  ```
27
30
 
31
+ ## Environment Variables
32
+
33
+ | Variable | Description |
34
+ |----------|-------------|
35
+ | `SSH_CHAT_DIR` | SSH chat directory (enables SSH channel) |
36
+ | `TELEGRAM_BOT_TOKEN` | Telegram bot token (enables Telegram) |
37
+ | `TELEGRAM_CHAT_ID` | Allowed Telegram chat ID |
38
+ | `API_PORT` | API port (default: 8911) |
39
+ | `NODE_NAME` | Node name (default: stack) |
40
+
41
+ ## API Endpoints
42
+
43
+ - `GET /api/status` - Stack status
44
+ - `GET /health` - Health check
45
+
28
46
  ## Commands
29
47
 
30
- - `/ralph start <prompt>` - Start a Ralph loop
31
- - `/ralph list` - List running loops
32
- - `/ralph stop <id>` - Stop a loop
33
48
  - `/status` - Node status
34
49
  - `/memory <cmd>` - Memory management (grant, revoke, list, clear)
35
50