fix: align datasource plugin environment (#595)

* fix: align datasource plugin environment

* refactor: inject managed Kimi env into all stdio plugins

Pin the datasource credential-name test to the canonical
resolveKimiCodeOAuthKey so a digest drift in the standalone plugin
fails CI, and drop the hardcoded plugin-name special case so every
stdio plugin receives the active managed Kimi base URL / OAuth host
consistently (process.env and KIMI_CODE_HOME are already shared with
all plugins).
This commit is contained in:
7Sageer 2026-06-10 12:42:27 +08:00 committed by GitHub
parent 2ebe38769f
commit 1580f35136
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 271 additions and 13 deletions

View file

@ -59,7 +59,7 @@ Kimi Datasource is the official Kimi Code data plugin. It lets you query financi
### Installation
You must first complete OAuth login with a Kimi Code account via `/login`. The plugin relies on local credentials to access data services.
You must first complete OAuth login with a Kimi Code account via `/login`. The plugin relies on local credentials to access data services. When you run Kimi Code with `KIMI_CODE_OAUTH_HOST` or `KIMI_CODE_BASE_URL`, log in under the same environment so the datasource plugin uses the matching credentials and service endpoint.
1. Run `/plugins` and select **Marketplace**
2. Find **Kimi Datasource** and press `Space` to install

View file

@ -59,7 +59,7 @@ Kimi Datasource 是 Kimi Code 官方数据插件,让你通过自然语言直
### 安装
需先通过 `/login` 完成 Kimi Code 账号 OAuth 登录,插件依赖本地凭据访问数据服务。
需先通过 `/login` 完成 Kimi Code 账号 OAuth 登录,插件依赖本地凭据访问数据服务。当你通过 `KIMI_CODE_OAUTH_HOST``KIMI_CODE_BASE_URL` 运行 Kimi Code 时,需要在同一环境下登录,这样 datasource 插件会使用匹配的凭据和服务端点。
1. 运行 `/plugins`,选择 **Marketplace**
2. 找到 **Kimi Datasource**,按 `Space` 安装