tabby-ai-tools 0.3.1 → 0.4.1

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
@@ -22,7 +22,7 @@
22
22
 
23
23
  Tabby AI Tools is an AI assistant inside [Tabby](https://github.com/Eugeny/tabby). It reads terminal output, sends commands, and uses the results to decide what to do next. Describe your goal in the sidebar, follow the work in your terminals, and reclaim terminal input whenever needed.
24
24
 
25
- ![Tabby AI Tools 0.3.1 interface illustration: the assistant coordinates two SSH terminals, with scheduled tasks, provider connections, automatic startup and language settings](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
25
+ ![Tabby AI Tools v0.4.1 interface illustration: the assistant coordinates two SSH terminals, with scheduled tasks, custom OpenAI-compatible and Coding Plan connections, automatic startup and language settings](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
26
26
 
27
27
  <sub>Interface illustration with example tasks and connections; appearance varies with your Tabby theme and window size.</sub>
28
28
 
@@ -35,12 +35,25 @@ Terminal takeover is automatic: unavailable foreground-process detection (includ
35
35
  | Connection | How to use it |
36
36
  | --- | --- |
37
37
  | **ChatGPT subscription → local Codex** | Install Codex CLI locally, run `codex login`, and select **Codex (local login)** in AI Tools. |
38
+ | **Claude subscription → local Claude Code** | Install the official CLI, run `claude auth login`, check `claude auth status`, and select **Claude Code (local login)**. |
38
39
  | **OpenAI API** | Add an OpenAI connection with an API key, Base URL, and model ID. |
39
40
  | **DeepSeek** | Add a DeepSeek API connection and choose the model and Thinking settings. |
40
41
  | **GLM / Zhipu** | Add a GLM API connection using the endpoint and model available to your account. |
42
+ | **Kimi API** | Select **Kimi API**, choose China mainland or International, and use an open-platform key. |
43
+ | **Kimi Coding Plan** | Select **Kimi Coding Plan**, choose the region, and use a Kimi Code membership key. |
44
+ | **Alibaba Cloud Coding Plan** | Select the dedicated Coding Plan provider and region, then use its plan key (`sk-sp-`). |
41
45
  | **Claude / Anthropic** | Add a Claude API connection with its API key and model ID. |
46
+ | **Custom OpenAI-compatible service** | Select **Custom (OpenAI compatible)**, enter a Base URL and model ID, and choose Chat Completions (default) or Responses. Use a direct key, an environment variable, or no key for services without authentication. |
42
47
 
43
- Save multiple named connections and switch them in the sidebar. Discover available models or enter a model ID manually. API connections use the selected provider's API credentials and usage-based billing; they can be used without Codex CLI. Compatible proxies must implement the selected provider's protocol.
48
+ **Claude Code subscription support is available in v0.4.1.** The plugin runs the local official CLI without reading or saving subscription credentials. Entitlements, limits, and authentication follow the CLI; API keys or cloud configuration may use separate billing. See [setup and limitations](docs/claude-code.md). A real subscription end-to-end run remains unverified.
49
+
50
+ Kimi and Alibaba Cloud Coding Plan connections are available in v0.4.1, with separate China mainland and international presets. See [endpoints, keys and setup](docs/coding-plans.md). Plans are for personal interactive coding; use an appropriate ordinary API for unattended schedules. Real plan access and quota deduction remain unverified.
51
+
52
+ Choose a model, then choose reasoning effort in the sidebar model picker, including for API connections and Claude Code. Provider defaults and manual effort values are available. API and Claude Code goals continue automatically by default without asking you to click Continue; stop controls, token budgets, and explicitly configured tool limits still apply.
53
+
54
+ Save multiple named connections and switch them in the sidebar. Discover available models or enter a model ID manually. API connections use the selected provider's credentials and billing plan; they can be used without Codex CLI. Compatible proxies must implement the selected provider's protocol.
55
+
56
+ Custom connections are available in v0.4.1. For example, use `https://gateway.example/v1` or `http://localhost:1234/v1` as the Base URL, without `/chat/completions` or `/responses`. Terminal tasks require SSE streaming and function calling; model discovery uses `/models` with manual entry as a fallback. HTTP is restricted to loopback addresses. See [custom connection setup and limitations (中文)](docs/guide.md#自定义-openai-兼容接口).
44
57
 
45
58
  ## Work with servers on a private network
46
59
 
@@ -68,7 +81,7 @@ When elevated access is needed, manually run `sudo ls` or `sudo -v` in the same
68
81
 
69
82
  Only your computer needs this Codex installation and login. The assistant can then use your existing Tabby SSH terminals to work on servers; those servers do not need their own ChatGPT login or AI Agent installation.
70
83
 
71
- On macOS, automatic discovery also checks `ChatGPT.app/Contents/Resources/codex` under `/Applications` and `~/Applications`, when that executable exists. For a different installation location, set the full path in **Settings → AI Tools → Codex CLI executable**.
84
+ Automatic discovery covers standalone installations (including `CODEX_INSTALL_DIR` and `CODEX_HOME/packages/standalone/current/bin`), Homebrew and npm global prefixes, and compatible Codex binaries in VS Code extensions as a final fallback. On macOS, it checks `ChatGPT.app/Contents/Resources/codex-cli/bin/codex` and the older `Contents/Resources/codex` entry under `/Applications` and `~/Applications`, including the former `Codex.app` name. For other locations, set the full path in **Settings → AI Tools → Codex CLI executable**. See the [discovery matrix (中文)](docs/guide.md#cli-自动发现与启动排查).
72
85
 
73
86
  ## Orchestrate tasks in natural language
74
87
 
package/README.zh-CN.md CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  Tabby AI Tools 是集成在 [Tabby](https://github.com/Eugeny/tabby) 中的 AI 助手插件。它可以读取终端输出、发送命令,并根据执行结果继续分析和操作。你在侧栏描述目标,在终端查看过程,也可以随时取回输入控制。
24
24
 
25
- ![Tabby AI Tools 0.3.1 界面示意:侧栏协调两个 SSH 终端,展示定时任务、API 连接、启动开关与语言设置](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
25
+ ![Tabby AI Tools v0.4.1 界面示意:侧栏协调两个 SSH 终端,展示定时任务、Kimi 与百炼 Coding Plan 连接、国内国际区域、启动开关与语言设置,含自定义 OpenAI 兼容接口设置](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
26
26
 
27
27
  <sub>根据当前功能绘制的英文界面示意,任务和连接均为示例;实际外观随 Tabby 主题与窗口尺寸变化。</sub>
28
28
 
@@ -35,13 +35,26 @@ Tabby AI Tools 是集成在 [Tabby](https://github.com/Eugeny/tabby) 中的 AI
35
35
  | 连接方式 | 如何使用 |
36
36
  | --- | --- |
37
37
  | **ChatGPT 订阅 → 本机 Codex** | 本机安装 Codex CLI,执行 `codex login`,在插件中选择 **Codex(本机登录)**。 |
38
+ | **Claude 订阅 → 本机 Claude Code** | 安装官方 CLI,执行 `claude auth login`,确认 `claude auth status`,在侧栏选择 **Claude Code(本机登录)**。 |
38
39
  | **OpenAI API** | 添加 OpenAI 连接,配置 API Key、Base URL 和模型 ID。 |
39
40
  | **DeepSeek** | 添加 DeepSeek API 连接,选择模型与 Thinking 设置。 |
40
41
  | **GLM/智谱** | 添加 GLM API 连接,使用账号对应套餐的端点和模型。 |
42
+ | **Kimi API** | 选择 **Kimi API** 和中国内地/国际区域,使用开放平台 Key,按量计费。 |
43
+ | **Kimi Coding Plan** | 选择 **Kimi Coding Plan** 和服务区域,使用 Kimi Code 会员套餐 Key。 |
44
+ | **阿里云百炼 Coding Plan** | 选择专用的 Coding Plan 供应商和区域,使用套餐 Key(`sk-sp-`)。 |
41
45
  | **Claude/Anthropic** | 添加 Claude API 连接,配置其 API Key 和模型 ID。 |
46
+ | **自定义 OpenAI 兼容服务** | 选择 **自定义(OpenAI 兼容)**,填写 Base URL 和模型 ID;协议默认 Chat Completions,也可选 Responses。支持直接输入密钥、环境变量或无需密钥。 |
47
+
48
+ **v0.4.1 已支持 Claude Code 订阅接入。** 插件运行本机官方 CLI,不读取或保存订阅凭据;账号权益、额度和实际认证方式由 CLI 决定。已有 API Key 或云平台配置可能走独立计费。安装与限制见 [Claude Code 接入说明](docs/claude-code.md)。尚未完成真实订阅账号的端到端验证。
49
+
50
+ v0.4.1 已支持 Kimi 与阿里云百炼 Coding Plan 接入,均提供国内与国际端点预设。详见[端点、密钥与配置说明](docs/coding-plans.md)。套餐用于个人交互式编程,无人值守定时任务应使用适合该场景的普通 API。真实套餐准入和扣费尚未验证。
51
+
52
+ 侧栏模型浮窗统一先选模型,再选 reasoning/推理强度,适用于 API 连接和 Claude Code;可选服务商默认或手动填写等级。API 与 Claude Code 的未完成目标默认自动继续,无需点击 Continue;停止、token 预算及主动设置的工具轮数上限仍然生效。
42
53
 
43
54
  可保存多个命名连接,在侧栏切换;支持获取模型列表或手动填写模型 ID。API 连接使用对应供应商的 API 凭据和计费,无需安装 Codex CLI。使用代理时,端点须兼容所选供应商协议。
44
55
 
56
+ v0.4.1 已支持自定义连接。Base URL 示例为 `https://gateway.example/v1` 或 `http://localhost:1234/v1`,不要附加 `/chat/completions` 或 `/responses`。终端任务要求 SSE 流式响应和工具调用;使用 `/models` 获取模型,不支持时可手动填写。HTTP 仅限本地回环地址。详见[自定义接口配置与限制](docs/guide.md#自定义-openai-兼容接口)。
57
+
45
58
  ## 内网服务器,也能使用 AI
46
59
 
47
60
  服务器无法访问外网时,只要你的电脑能连接 AI 服务,同时能通过 Tabby 连接服务器,就可以让 AI 通过 SSH 终端读取日志、排查问题、执行命令并验证结果。服务器无需访问模型服务,也无需安装 AI Agent;用于分析的终端内容由本机发送给所选模型服务。
@@ -68,7 +81,7 @@ Tabby AI Tools 是集成在 [Tabby](https://github.com/Eugeny/tabby) 中的 AI
68
81
 
69
82
  只需在本机安装和登录 Codex,即可沿用 Tabby 已连接的 SSH 终端协助操作服务器;服务器无需逐台登录 ChatGPT 或安装 AI Agent。
70
83
 
71
- macOS 自动查找也会检查 `/Applications` 和 `~/Applications` 下的 `ChatGPT.app/Contents/Resources/codex`(需实际存在且可执行)。安装位置不同时,可在 **Settings → AI Tools → Codex CLI 可执行文件** 中填写完整路径。
84
+ 自动查找覆盖 standalone 安装(含 `CODEX_INSTALL_DIR` 和 `CODEX_HOME/packages/standalone/current/bin`)、Homebrew/npm 全局 prefix,并以 VS Code 扩展中的兼容 Codex 作为最后兜底。macOS 检查 `/Applications` 和 `~/Applications` 下的 `ChatGPT.app/Contents/Resources/codex-cli/bin/codex` 及旧 `Contents/Resources/codex` 入口,也兼容原 `Codex.app` 名称。其他位置可在 **Settings → AI Tools → Codex CLI 可执行文件** 中填写完整路径。[查看完整发现矩阵](docs/guide.md#cli-自动发现与启动排查)。
72
85
 
73
86
  ## 用自然语言编排任务
74
87
 
package/VALIDATION.md CHANGED
@@ -1,3 +1,25 @@
1
+ # v0.4.1 release validation (2026-10-25)
2
+
3
+ The release includes custom OpenAI-compatible Chat Completions/Responses connections, explicit no-key authentication, protocol-safe history/context transfer, Kimi/Alibaba Coding Plan presets, continuous API/Claude Code goals and model → reasoning selection. Local HTTP/SSE and CLI/MCP fixtures exercise discovery, native request parameters, streaming, continuous tool rounds, approvals, read-only behavior, cancellation, usage/budgets, repeated-loop protection, history recovery and context handoff. Existing provider fingerprints remain unchanged.
4
+
5
+ Local checks: `npm run skill:bundle`, `npm run skill:check`, `npm run typecheck`, `npm test` (710 tests: 704 passed, 6 Windows-only skips), `npm run build` and `git diff --check`. The two READMEs are rendered and checked for title, model table, image paths and reduced-motion fallback. The versioned SVG/PNG illustration is previewed and the robot GIF's animation/static dimensions are checked. A real npm tarball is inspected for version, entry point, runtime dependency, complete docs, bilingual READMEs, images and bundled skill; local instructions, research, credentials and node_modules are excluded. Branch and tag Linux/macOS/Windows CI are checked during release; remote publication and artifact integrity are verified after upload.
6
+
7
+ The first pre-tag Windows CI exposed a Claude batch-launcher default-import interop failure in the CommonJS test harness. The launcher now uses the same named `cross-spawn` export as Codex; the regression test covers Windows batch/native selection and piped arguments on every platform. The v0.4.0 tag then exposed a macOS stdin-close race after the branch checks passed. Claude now ignores EPIPE and pipe errors after close, relying on the process exit status, while preserving other pipe failures. A regression simulates early EPIPE and late errors without signaling a stale process group. The v0.4.0 tag remains unchanged and is not published to npm; v0.4.1 carries the fix.
8
+
9
+ No paid model request was made. Real third-party gateways, membership access/quota deduction and full Tabby desktop/SSH behavior remain unverified. These limits also apply to the local Claude Code integration included since the previous npm release. The prior development validation records below describe their own scope and dates.
10
+
11
+ The macOS CLI-discovery cancellation regression retains its ESRCH assertion but allows up to two seconds for kernel PID reaping after termination, avoiding an assumption that process IDs disappear synchronously. A still-running query continues to fail the test.
12
+
13
+ # Claude Code local-login development validation (2026-10-24)
14
+
15
+ The new native connection runs the installed official CLI with its own login and an authenticated loopback MCP bridge. Existing Claude API configuration remains separate. The implementation and official references are documented in [Claude Code integration](docs/claude-code.md).
16
+
17
+ Local Linux validation passed: `npm run skill:bundle`, `npm run skill:check`, `npm run typecheck`, `npm test` (522 tests: 516 passed, 6 Windows-only skips), `npm run build`, and `git diff --check`. The 21 new offline tests exercise real child-process pipes and HTTP MCP for streaming, successful native resume, portable history, crash recovery, read-only restrictions, accepted/rejected approvals, cancellation during approvals, unexpected CLI exit, malformed/truncated output, usage accounting/budgets, queued messages, repeated-tool detection, independent settings, native scheduler execution, and the isolated candidate-model probe. No model inference was performed.
18
+
19
+ The real Angular settings component was rendered in Chromium at 320, 600, and 1100 pixels in dark and light themes. Connection selection, independent model persistence, default badges, and input layout passed without horizontal overflow or browser errors. Scripts, screenshots, and report: `artifacts/claude-code-20261024/` (local validation artifacts). The real Angular sidebar also passed at 320 and 600 pixels: the native connection is selected, API Thinking controls stay hidden, native status/permission labels render, the selector remains within the viewport, and both status columns keep readable widths without browser errors (`artifacts/claude-code-sidebar-20261024/`). Both READMEs were rendered with the CommonMark parser and their model tables and image fallback markup were checked. Both README documents, the guide, development/architecture notes, bundled skill, and SVG/PNG illustration were updated. The illustration explicitly describes an unreleased development example; the robot GIF and static reduced-motion fallback are preserved.
20
+
21
+ No Claude Code installation or logged-in subscription is available on this host. Actual subscription inference, Tabby desktop/SSH behavior, and macOS/Windows execution are not established by these tests. No GitHub CI run, release, or npm publication was performed for this development change.
22
+
1
23
  # v0.3.0 release validation (2026-10-24)
2
24
 
3
25
  Automatic terminal takeover removes the foreground-detection confirmation dialog for ordinary and scheduled tasks. SSH/unknown enumeration proceeds without a confirmation callback or blind Ctrl+C. Detected unrelated processes are interrupted only after the agent marks them unnecessary, with stop/session/ownership checks and verification that the process ended. Needed processes and other owners remain protected.
@@ -226,3 +248,12 @@ HTTP 服务工作目录只含 tabby-codex-windows-validation.tar.gz,日志和
226
248
  默认发现补充 `~/Applications/ChatGPT.app/Contents/Resources/codex` 和 `/Applications/ChatGPT.app/Contents/Resources/codex`,保留 PATH、Shell、NVM 及常见安装目录优先级。回归验证用户应用目录、替代系统应用目录、带空格显式路径、无执行权限拒绝、自定义命令不降级,以及 Linux 不扫描 macOS 用户应用目录。
227
249
 
228
250
  本地 Linux:469 项测试,464 通过、5 项平台跳过;类型检查、skill 一致性和生产构建通过。真实 ChatGPT.app 安装布局及 Tabby macOS 桌面端到端未在本机验证;不调用收费模型烟测。跨平台分支与标签 CI 结果由 GitHub Actions 单独核验。
251
+
252
+
253
+ ## 完整 Codex 安装来源发现(0.3.2)
254
+
255
+ 按跨平台路径表补齐 standalone 内部 current/bin 与旧 current 入口、动态 Homebrew/npm prefix、macOS 新 codex-cli/bin 与 Codex.app 兼容入口,以及 VS Code/Insiders/远程扩展兜底。候选逐个验证,IDE 按 OS/架构筛选并按扩展版本降序;显式路径、自定义命令和已选 CLI 不被替换。包管理器查询独立限时、限输出,失败后继续其他来源,取消会回收进程树;查询输出不写入诊断。
256
+
257
+ 新增路径矩阵测试、prefix 故障/超时/取消测试,以及 Windows 真实 npm.cmd 查询和 codex.cmd JSONL 连接夹具。源路径固定为临时目录;不访问真实模型,不将本机发现规则模拟报告为 macOS/Windows 桌面端到端验证。完整结果见发布说明和本次 GitHub Actions 分支/标签运行记录。
258
+
259
+ 本地 Linux 结果:501 项测试,495 通过、6 项平台跳过;skill bundle/check、TypeScript、生产构建及 git diff --check 通过。Windows 专用 npm.cmd 连接测试仅在真实 Windows CI 上执行,本机明确跳过。