llm-api-gateway-cli 1.0.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/.env.example +10 -0
- package/README.md +1127 -0
- package/cli-agent.js +666 -0
- package/cli-anthropic.js +236 -0
- package/cli-claude-code.js +317 -0
- package/cli-openai.js +212 -0
- package/completions/_llm-api-gateway-cli +65 -0
- package/completions/llm-api-gateway-cli.bash +64 -0
- package/completions/llm-api-gateway-cli.fish +43 -0
- package/images/chat.png +0 -0
- package/images/settings.png +0 -0
- package/images/task.png +0 -0
- package/lib/agent.js +607 -0
- package/lib/commands.js +468 -0
- package/lib/common.js +196 -0
- package/lib/config.js +70 -0
- package/lib/configcmd.js +230 -0
- package/lib/hub.js +1494 -0
- package/lib/jsonstore.js +49 -0
- package/lib/mcp.js +375 -0
- package/lib/memory.js +109 -0
- package/lib/plandoc.js +178 -0
- package/lib/pricing.js +52 -0
- package/lib/runner.js +234 -0
- package/lib/runstore.js +96 -0
- package/lib/secrets.js +198 -0
- package/lib/sessionstore.js +269 -0
- package/lib/settings.js +517 -0
- package/lib/tasksession.js +594 -0
- package/lib/taskstore.js +740 -0
- package/lib/tools.js +927 -0
- package/package.json +55 -0
- package/public/app.js +1055 -0
- package/public/index.html +167 -0
- package/public/manual.css +215 -0
- package/public/manual.html +381 -0
- package/public/manual.js +186 -0
- package/public/models.js +121 -0
- package/public/render.js +250 -0
- package/public/styles.css +955 -0
- package/public/task-slash.js +493 -0
- package/public/task.css +739 -0
- package/public/task.html +220 -0
- package/public/task.js +3127 -0
- package/public/theme.js +91 -0
- package/public/tint.js +261 -0
- package/scripts/install.ps1 +537 -0
- package/scripts/install.sh +510 -0
- package/server.js +14 -0
- package/task-server.js +15 -0
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "llm-api-gateway-cli",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "CLI 测试工具:验证 LLM API Gateway(http://127.0.0.1:9000)的 OpenAI / Anthropic / 原生 Agent / Claude Code 多种接入方式",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"llm-api-gateway-cli": "./cli-agent.js",
|
|
8
|
+
"gateway-agent": "./cli-agent.js",
|
|
9
|
+
"gateway-openai": "./cli-openai.js",
|
|
10
|
+
"gateway-anthropic": "./cli-anthropic.js",
|
|
11
|
+
"gateway-claude-code": "./cli-claude-code.js",
|
|
12
|
+
"gateway-web": "./server.js",
|
|
13
|
+
"gateway-task": "./task-server.js"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"agent": "node cli-agent.js",
|
|
17
|
+
"openai": "node cli-openai.js",
|
|
18
|
+
"anthropic": "node cli-anthropic.js",
|
|
19
|
+
"claude-code": "node cli-claude-code.js",
|
|
20
|
+
"web": "node server.js",
|
|
21
|
+
"task": "node task-server.js",
|
|
22
|
+
"test": "node scripts/run-tests.mjs",
|
|
23
|
+
"test:live": "node scripts/run-tests.mjs live",
|
|
24
|
+
"test:all": "node scripts/run-tests.mjs all"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@anthropic-ai/sdk": "^0.124.0",
|
|
28
|
+
"openai": "^4.0.0"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=18"
|
|
32
|
+
},
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/boonya-hrgk/llm-api-gateway-cli.git"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/boonya-hrgk/llm-api-gateway-cli#readme",
|
|
39
|
+
"files": [
|
|
40
|
+
"cli-agent.js",
|
|
41
|
+
"cli-openai.js",
|
|
42
|
+
"cli-anthropic.js",
|
|
43
|
+
"cli-claude-code.js",
|
|
44
|
+
"server.js",
|
|
45
|
+
"task-server.js",
|
|
46
|
+
"lib/",
|
|
47
|
+
"!lib/.tasks/",
|
|
48
|
+
"public/",
|
|
49
|
+
"completions/",
|
|
50
|
+
"images/",
|
|
51
|
+
".env.example",
|
|
52
|
+
"scripts/install.sh",
|
|
53
|
+
"scripts/install.ps1"
|
|
54
|
+
]
|
|
55
|
+
}
|