@milisp/keke 0.1.3 → 0.1.6
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 +37 -6
- package/README.zh-CN.md +15 -7
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ Works with subscriptions you already have, standard API keys, or self-hosted loc
|
|
|
16
16
|
|
|
17
17
|
## Install
|
|
18
18
|
|
|
19
|
+
### Shell (recommended)
|
|
20
|
+
|
|
19
21
|
```sh
|
|
20
22
|
curl -fsSL https://raw.githubusercontent.com/milisp/keke-agent/main/scripts/install.sh | sh
|
|
21
23
|
```
|
|
@@ -23,6 +25,12 @@ curl -fsSL https://raw.githubusercontent.com/milisp/keke-agent/main/scripts/inst
|
|
|
23
25
|
This downloads the latest prebuilt binary for your platform into
|
|
24
26
|
`~/.local/bin` (override with `KEKE_INSTALL_DIR`).
|
|
25
27
|
|
|
28
|
+
### npm
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
npm install -g @milisp/keke
|
|
32
|
+
```
|
|
33
|
+
|
|
26
34
|
You can also grab a binary directly from the
|
|
27
35
|
[latest release](https://github.com/milisp/keke-agent/releases/latest), or build
|
|
28
36
|
from source with `cargo build --release`.
|
|
@@ -51,25 +59,48 @@ keke doctor # which providers and logins resolve
|
|
|
51
59
|
| Anthropic Claude | `ANTHROPIC_API_KEY` | Built in; the default provider. API key only — no subscription login |
|
|
52
60
|
| xAI Grok | `keke login grok`, or `XAI_API_KEY` | Built in |
|
|
53
61
|
| Local (Ollama, vLLM, …) | none | Your code never leaves the machine |
|
|
54
|
-
| Any OpenAI-compatible gateway | `
|
|
62
|
+
| Any OpenAI-compatible gateway | `env_key` in `config.toml` | Company proxies, NVIDIA NIM, routers |
|
|
55
63
|
|
|
56
64
|
Anything not built in is a few lines of `$KEKE_HOME/config.toml`, not a code
|
|
57
65
|
change:
|
|
58
66
|
|
|
59
67
|
```toml
|
|
60
68
|
[providers.ollama]
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
base_url = "http://localhost:11434/v1"
|
|
70
|
+
default_model = "gpt-oss:20b"
|
|
63
71
|
|
|
64
72
|
[providers.anthropic]
|
|
65
|
-
|
|
66
|
-
|
|
73
|
+
base_url = "https://api.anthropic.com"
|
|
74
|
+
env_key = "ANTHROPIC_API_KEY"
|
|
67
75
|
wire = "messages"
|
|
68
76
|
```
|
|
69
77
|
|
|
70
|
-
`wire` picks the request format — `
|
|
78
|
+
`wire` picks the request format — `chat_completions` (the default),
|
|
71
79
|
`responses`, or `messages` — so a new endpoint is a config entry rather than a release.
|
|
72
80
|
|
|
81
|
+
Behind a corporate proxy or a TLS-intercepting gateway, a declared provider
|
|
82
|
+
can also carry a CA certificate, a proxy, and headers your gateway wants for
|
|
83
|
+
routing or audit:
|
|
84
|
+
|
|
85
|
+
```toml
|
|
86
|
+
[providers.internal-gateway]
|
|
87
|
+
base_url = "https://gateway.corp.internal/v1"
|
|
88
|
+
env_key = "INTERNAL_GATEWAY_API_KEY"
|
|
89
|
+
ca_cert_path = "/etc/ssl/certs/corp-root-ca.pem"
|
|
90
|
+
proxy = "http://proxy.corp.internal:8080"
|
|
91
|
+
proxy_username = "svc-keke"
|
|
92
|
+
proxy_password_env_key = "CORP_PROXY_PASSWORD"
|
|
93
|
+
|
|
94
|
+
[providers.internal-gateway.headers]
|
|
95
|
+
X-Department-Token = "env:DEPT_TOKEN"
|
|
96
|
+
X-Company-User-Id = "milisp-labs"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
A header value written as `env:VAR_NAME` is resolved from the environment
|
|
100
|
+
rather than taken literally, so a secret header need not sit in the config
|
|
101
|
+
file in the clear. `authorization` is reserved for the provider's own
|
|
102
|
+
credential and cannot be set here.
|
|
103
|
+
|
|
73
104
|
## Status
|
|
74
105
|
|
|
75
106
|
Usable day to day. `keke exec`, the TUI, and the ACP server all run real
|
package/README.zh-CN.md
CHANGED
|
@@ -14,6 +14,8 @@ GUI(编辑器、Zed 之类)都能像终端一样驱动它。如果想在脚
|
|
|
14
14
|
|
|
15
15
|
## 安装
|
|
16
16
|
|
|
17
|
+
### 脚本安装(推荐)
|
|
18
|
+
|
|
17
19
|
```sh
|
|
18
20
|
curl -fsSL https://raw.githubusercontent.com/milisp/keke-agent/main/scripts/install.sh | sh
|
|
19
21
|
```
|
|
@@ -21,6 +23,12 @@ curl -fsSL https://raw.githubusercontent.com/milisp/keke-agent/main/scripts/inst
|
|
|
21
23
|
该脚本会为你的平台下载最新的预编译二进制文件到 `~/.local/bin`
|
|
22
24
|
(可通过 `KEKE_INSTALL_DIR` 覆盖)。
|
|
23
25
|
|
|
26
|
+
### npm 安装
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
npm install -g @milisp/keke
|
|
30
|
+
```
|
|
31
|
+
|
|
24
32
|
你也可以直接从 [latest release](https://github.com/milisp/keke-agent/releases/latest)
|
|
25
33
|
下载预编译二进制文件,或者用 `cargo build --release` 从源码构建。
|
|
26
34
|
|
|
@@ -46,24 +54,24 @@ keke doctor # 查看哪些 provider 和登录能解
|
|
|
46
54
|
| --- | --- | --- |
|
|
47
55
|
| OpenAI / ChatGPT | `keke login codex`,或 `OPENAI_API_KEY` | OAuth 流程从 codex 移植而来 |
|
|
48
56
|
| xAI Grok | `keke login grok`,或 `XAI_API_KEY` | 内置,默认 provider |
|
|
49
|
-
| Anthropic | `config.toml` 中的 `
|
|
57
|
+
| Anthropic | `config.toml` 中的 `env_key` | 声明时用 `wire = "messages"` |
|
|
50
58
|
| 本地模型(Ollama、vLLM 等) | 无需认证 | 代码不会离开这台机器 |
|
|
51
|
-
| 任意 OpenAI 兼容网关 | `config.toml` 中的 `
|
|
59
|
+
| 任意 OpenAI 兼容网关 | `config.toml` 中的 `env_key` | 公司代理、NVIDIA NIM、路由器等 |
|
|
52
60
|
|
|
53
61
|
内置支持之外的服务,只需要在 `$KEKE_HOME/config.toml` 里加几行,不需要改代码:
|
|
54
62
|
|
|
55
63
|
```toml
|
|
56
64
|
[providers.ollama]
|
|
57
|
-
|
|
58
|
-
|
|
65
|
+
base_url = "http://localhost:11434/v1"
|
|
66
|
+
default_model = "gpt-oss:20b"
|
|
59
67
|
|
|
60
68
|
[providers.anthropic]
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
base_url = "https://api.anthropic.com"
|
|
70
|
+
env_key = "ANTHROPIC_API_KEY"
|
|
63
71
|
wire = "messages"
|
|
64
72
|
```
|
|
65
73
|
|
|
66
|
-
`wire` 决定请求格式——`
|
|
74
|
+
`wire` 决定请求格式——`chat_completions`(默认)、`responses`,或
|
|
67
75
|
`messages`——所以接入新接口只是一条配置,而不是一次发版。
|
|
68
76
|
|
|
69
77
|
## 现状
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milisp/keke",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "keke is a multi-vendor terminal coding agent.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"win32"
|
|
19
19
|
],
|
|
20
20
|
"optionalDependencies": {
|
|
21
|
-
"@milisp/keke-darwin-x64": "0.1.
|
|
22
|
-
"@milisp/keke-darwin-arm64": "0.1.
|
|
23
|
-
"@milisp/keke-linux-x64": "0.1.
|
|
24
|
-
"@milisp/keke-linux-arm64": "0.1.
|
|
25
|
-
"@milisp/keke-win32-x64": "0.1.
|
|
21
|
+
"@milisp/keke-darwin-x64": "0.1.6",
|
|
22
|
+
"@milisp/keke-darwin-arm64": "0.1.6",
|
|
23
|
+
"@milisp/keke-linux-x64": "0.1.6",
|
|
24
|
+
"@milisp/keke-linux-arm64": "0.1.6",
|
|
25
|
+
"@milisp/keke-win32-x64": "0.1.6"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|