@milisp/keke 0.1.4 → 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 CHANGED
@@ -59,23 +59,23 @@ keke doctor # which providers and logins resolve
59
59
  | Anthropic Claude | `ANTHROPIC_API_KEY` | Built in; the default provider. API key only — no subscription login |
60
60
  | xAI Grok | `keke login grok`, or `XAI_API_KEY` | Built in |
61
61
  | Local (Ollama, vLLM, …) | none | Your code never leaves the machine |
62
- | Any OpenAI-compatible gateway | `env-key` in `config.toml` | Company proxies, NVIDIA NIM, routers |
62
+ | Any OpenAI-compatible gateway | `env_key` in `config.toml` | Company proxies, NVIDIA NIM, routers |
63
63
 
64
64
  Anything not built in is a few lines of `$KEKE_HOME/config.toml`, not a code
65
65
  change:
66
66
 
67
67
  ```toml
68
68
  [providers.ollama]
69
- base-url = "http://localhost:11434/v1"
70
- default-model = "gpt-oss:20b"
69
+ base_url = "http://localhost:11434/v1"
70
+ default_model = "gpt-oss:20b"
71
71
 
72
72
  [providers.anthropic]
73
- base-url = "https://api.anthropic.com"
74
- env-key = "ANTHROPIC_API_KEY"
73
+ base_url = "https://api.anthropic.com"
74
+ env_key = "ANTHROPIC_API_KEY"
75
75
  wire = "messages"
76
76
  ```
77
77
 
78
- `wire` picks the request format — `chat-completions` (the default),
78
+ `wire` picks the request format — `chat_completions` (the default),
79
79
  `responses`, or `messages` — so a new endpoint is a config entry rather than a release.
80
80
 
81
81
  Behind a corporate proxy or a TLS-intercepting gateway, a declared provider
@@ -84,16 +84,16 @@ routing or audit:
84
84
 
85
85
  ```toml
86
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"
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
90
  proxy = "http://proxy.corp.internal:8080"
91
- proxy-username = "svc-keke"
92
- proxy-password-env-key = "CORP_PROXY_PASSWORD"
91
+ proxy_username = "svc-keke"
92
+ proxy_password_env_key = "CORP_PROXY_PASSWORD"
93
93
 
94
94
  [providers.internal-gateway.headers]
95
95
  X-Department-Token = "env:DEPT_TOKEN"
96
- X-Company-User-Id = "color-clock"
96
+ X-Company-User-Id = "milisp-labs"
97
97
  ```
98
98
 
99
99
  A header value written as `env:VAR_NAME` is resolved from the environment
package/README.zh-CN.md CHANGED
@@ -54,24 +54,24 @@ keke doctor # 查看哪些 provider 和登录能解
54
54
  | --- | --- | --- |
55
55
  | OpenAI / ChatGPT | `keke login codex`,或 `OPENAI_API_KEY` | OAuth 流程从 codex 移植而来 |
56
56
  | xAI Grok | `keke login grok`,或 `XAI_API_KEY` | 内置,默认 provider |
57
- | Anthropic | `config.toml` 中的 `env-key` | 声明时用 `wire = "messages"` |
57
+ | Anthropic | `config.toml` 中的 `env_key` | 声明时用 `wire = "messages"` |
58
58
  | 本地模型(Ollama、vLLM 等) | 无需认证 | 代码不会离开这台机器 |
59
- | 任意 OpenAI 兼容网关 | `config.toml` 中的 `env-key` | 公司代理、NVIDIA NIM、路由器等 |
59
+ | 任意 OpenAI 兼容网关 | `config.toml` 中的 `env_key` | 公司代理、NVIDIA NIM、路由器等 |
60
60
 
61
61
  内置支持之外的服务,只需要在 `$KEKE_HOME/config.toml` 里加几行,不需要改代码:
62
62
 
63
63
  ```toml
64
64
  [providers.ollama]
65
- base-url = "http://localhost:11434/v1"
66
- default-model = "gpt-oss:20b"
65
+ base_url = "http://localhost:11434/v1"
66
+ default_model = "gpt-oss:20b"
67
67
 
68
68
  [providers.anthropic]
69
- base-url = "https://api.anthropic.com"
70
- env-key = "ANTHROPIC_API_KEY"
69
+ base_url = "https://api.anthropic.com"
70
+ env_key = "ANTHROPIC_API_KEY"
71
71
  wire = "messages"
72
72
  ```
73
73
 
74
- `wire` 决定请求格式——`chat-completions`(默认)、`responses`,或
74
+ `wire` 决定请求格式——`chat_completions`(默认)、`responses`,或
75
75
  `messages`——所以接入新接口只是一条配置,而不是一次发版。
76
76
 
77
77
  ## 现状
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milisp/keke",
3
- "version": "0.1.4",
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.4",
22
- "@milisp/keke-darwin-arm64": "0.1.4",
23
- "@milisp/keke-linux-x64": "0.1.4",
24
- "@milisp/keke-linux-arm64": "0.1.4",
25
- "@milisp/keke-win32-x64": "0.1.4"
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",