openxgen 1.3.3 → 1.6.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 +79 -71
- package/dist/index.js +539 -84
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,107 +1,115 @@
|
|
|
1
|
-
# OPEN XGEN
|
|
1
|
+
# OPEN XGEN CLI
|
|
2
2
|
|
|
3
|
-
AI
|
|
3
|
+
A terminal-based AI coding agent and XGEN platform CLI. Chat-first interface inspired by Claude Code — talk to your AI, manage workflows, query knowledge graphs, and handle documents, all from the terminal.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## 설치
|
|
5
|
+
## Install
|
|
8
6
|
|
|
9
7
|
```bash
|
|
10
8
|
npm install -g openxgen
|
|
11
9
|
```
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## 빠른 시작
|
|
16
|
-
|
|
17
|
-
### AI 에이전트 모드
|
|
11
|
+
## Quick Start
|
|
18
12
|
|
|
19
13
|
```bash
|
|
20
|
-
# 프로바이더 설정 (OpenAI, Gemini, Ollama 등)
|
|
21
|
-
xgen provider add
|
|
22
|
-
|
|
23
|
-
# AI 코딩 에이전트 시작
|
|
24
|
-
xgen agent
|
|
25
|
-
|
|
26
|
-
# 또는 바로
|
|
27
14
|
xgen
|
|
28
15
|
```
|
|
29
16
|
|
|
30
|
-
|
|
17
|
+
That's it. On first run, you'll be guided through provider setup (OpenAI, Gemini, Anthropic, Ollama, etc.).
|
|
31
18
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
# 문서
|
|
43
|
-
xgen doc ls # 목록
|
|
44
|
-
xgen doc upload <file> # 업로드
|
|
45
|
-
|
|
46
|
-
# 온톨로지
|
|
47
|
-
xgen ont query "질문" # GraphRAG 질의
|
|
48
|
-
xgen ont chat # 멀티턴 대화
|
|
19
|
+
## What It Does
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
❯ show workflows → lists all XGEN workflows
|
|
23
|
+
❯ run #6 "hello" → executes workflow immediately
|
|
24
|
+
❯ collections → shows document collections
|
|
25
|
+
❯ list files in ./src → browses local filesystem
|
|
26
|
+
❯ read main.py → displays file contents
|
|
27
|
+
❯ write a fibonacci func → generates code + saves file
|
|
28
|
+
❯ run npm test → executes shell command
|
|
49
29
|
```
|
|
50
30
|
|
|
51
|
-
|
|
31
|
+
No menus, no wizards. Just tell it what you want.
|
|
52
32
|
|
|
53
|
-
|
|
54
|
-
|--------|------|
|
|
55
|
-
| `xgen` | 에이전트 또는 채팅 모드 (설정에 따라) |
|
|
56
|
-
| `xgen agent` | AI 코딩 에이전트 |
|
|
57
|
-
| `xgen provider add/ls/use/remove` | 프로바이더 관리 |
|
|
58
|
-
| `xgen chat [id]` | 워크플로우 대화 |
|
|
59
|
-
| `xgen wf ls/info/run/history` | 워크플로우 관리 |
|
|
60
|
-
| `xgen doc ls/upload/info` | 문서 관리 |
|
|
61
|
-
| `xgen ont query/chat/stats` | 온톨로지 질의 |
|
|
62
|
-
| `xgen config` | 설정 관리 |
|
|
63
|
-
| `xgen login/logout/whoami` | 인증 |
|
|
33
|
+
## Features
|
|
64
34
|
|
|
65
|
-
|
|
35
|
+
### AI Agent
|
|
36
|
+
- **9 providers**: OpenAI, Gemini, Anthropic, Ollama, Groq, Together AI, OpenRouter, DeepSeek, Custom (OpenAI-compatible)
|
|
37
|
+
- **50+ models** with auto-detection from environment variables
|
|
38
|
+
- **Streaming** responses with multi-step tool calling (up to 20 rounds)
|
|
39
|
+
- **Token usage** tracking per response and per session
|
|
66
40
|
|
|
67
|
-
|
|
41
|
+
### Built-in Tools (7)
|
|
42
|
+
`file_read` `file_write` `file_edit` `bash` `grep` `list_files` `sandbox_run`
|
|
68
43
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
- **file_edit** — 파일 내 텍스트 교체
|
|
72
|
-
- **bash** — 셸 명령어 실행
|
|
73
|
-
- **grep** — 파일 내 패턴 검색
|
|
74
|
-
- **list_files** — 디렉토리 목록 / glob 검색
|
|
44
|
+
### XGEN Platform Tools (10)
|
|
45
|
+
`xgen_workflow_list` `xgen_workflow_run` `xgen_workflow_info` `xgen_collection_list` `xgen_document_list` `xgen_document_upload` `xgen_graph_rag_query` `xgen_graph_stats` `xgen_execution_history` `xgen_server_status`
|
|
75
46
|
|
|
76
|
-
|
|
47
|
+
### MCP Integration
|
|
48
|
+
Reads `.mcp.json` and auto-connects to MCP servers (stdio transport).
|
|
77
49
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
| OpenAI | `openai` | GPT-4o, GPT-4o-mini 등 |
|
|
81
|
-
| Google Gemini | `gemini` | OpenAI 호환 엔드포인트 사용 |
|
|
82
|
-
| Ollama | `ollama` | 로컬 모델 (API Key 불필요) |
|
|
83
|
-
| Anthropic | `anthropic` | Claude 모델 |
|
|
84
|
-
| Custom | `custom` | OpenAI 호환 API 서버 |
|
|
50
|
+
### Conversation History
|
|
51
|
+
Save and restore chat sessions. Auto-stored in `~/.xgen/conversations/`.
|
|
85
52
|
|
|
86
|
-
|
|
53
|
+
### TUI Dashboard
|
|
54
|
+
4-panel blessed-based dashboard: workflows | details | collections | AI chat.
|
|
55
|
+
|
|
56
|
+
## Slash Commands
|
|
57
|
+
|
|
58
|
+
| Command | Description |
|
|
59
|
+
|---------|-------------|
|
|
60
|
+
| `/connect` | Connect to XGEN server (HQ / Jeju / Lotte presets) |
|
|
61
|
+
| `/env` | Switch environment |
|
|
62
|
+
| `/provider` | Change AI provider |
|
|
63
|
+
| `/dashboard` | Open TUI dashboard |
|
|
64
|
+
| `/tools` | List available tools |
|
|
65
|
+
| `/status` | Show connection status |
|
|
66
|
+
| `/save [name]` | Save conversation |
|
|
67
|
+
| `/load` | Load previous conversation |
|
|
68
|
+
| `/conversations` | List saved conversations |
|
|
69
|
+
| `/usage` | Show token usage |
|
|
70
|
+
| `/clear` | Reset conversation |
|
|
71
|
+
| `/exit` | Quit |
|
|
72
|
+
|
|
73
|
+
## Providers
|
|
74
|
+
|
|
75
|
+
| Provider | Models |
|
|
76
|
+
|----------|--------|
|
|
77
|
+
| OpenAI | gpt-4o, gpt-4.1, gpt-4o-mini, o3-mini |
|
|
78
|
+
| Google Gemini | gemini-2.5-pro, gemini-2.0-flash |
|
|
79
|
+
| Anthropic | claude-opus-4, claude-sonnet-4 |
|
|
80
|
+
| Ollama | llama3.1, codellama, qwen2.5-coder |
|
|
81
|
+
| Groq | llama-3.3-70b, mixtral-8x7b |
|
|
82
|
+
| Together AI | Meta-Llama-3.1-70B |
|
|
83
|
+
| OpenRouter | multi-model proxy |
|
|
84
|
+
| DeepSeek | deepseek-chat, deepseek-coder |
|
|
85
|
+
| Custom | any OpenAI-compatible endpoint |
|
|
86
|
+
|
|
87
|
+
## Config
|
|
87
88
|
|
|
88
89
|
```
|
|
89
90
|
~/.xgen/
|
|
90
|
-
├── config.json
|
|
91
|
-
├── auth.json
|
|
92
|
-
|
|
91
|
+
├── config.json server URL, defaults
|
|
92
|
+
├── auth.json login tokens
|
|
93
|
+
├── providers.json AI providers
|
|
94
|
+
├── environments.json server profiles
|
|
95
|
+
└── conversations/ saved chat sessions
|
|
93
96
|
```
|
|
94
97
|
|
|
95
|
-
##
|
|
98
|
+
## Development
|
|
96
99
|
|
|
97
100
|
```bash
|
|
98
|
-
git clone
|
|
99
|
-
cd
|
|
101
|
+
git clone https://github.com/jinsoo96/openxgen.git
|
|
102
|
+
cd openxgen
|
|
100
103
|
npm install
|
|
101
104
|
npm run build
|
|
102
|
-
npm run dev # watch
|
|
105
|
+
npm run dev # watch mode
|
|
103
106
|
```
|
|
104
107
|
|
|
108
|
+
## Links
|
|
109
|
+
|
|
110
|
+
- npm: https://www.npmjs.com/package/openxgen
|
|
111
|
+
- GitHub: https://github.com/jinsoo96/openxgen
|
|
112
|
+
|
|
105
113
|
## License
|
|
106
114
|
|
|
107
115
|
MIT
|