tabby-ai-tools 0.3.1 → 0.3.2
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 +2 -2
- package/README.zh-CN.md +2 -2
- package/VALIDATION.md +9 -0
- package/dist/index.js +1 -1
- package/docs/assets/overview.png +0 -0
- package/docs/assets/overview.svg +3 -3
- package/docs/development.md +1 -1
- package/docs/guide.md +20 -4
- package/docs/releases/0.3.2.md +13 -0
- package/package.json +1 -1
package/docs/assets/overview.png
CHANGED
|
Binary file
|
package/docs/assets/overview.svg
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="1800" height="1220" viewBox="0 0 1800 1220" role="img" aria-labelledby="title desc">
|
|
2
|
-
<title id="title">Tabby AI Tools 0.3.
|
|
2
|
+
<title id="title">Tabby AI Tools 0.3.2 — multi-terminal work, schedules and language settings</title>
|
|
3
3
|
<desc id="desc">Interface illustration, not a running screenshot. The assistant sidebar coordinates example staging database and application terminals. Scheduled tasks, provider connections, startup opening enabled by default and twelve interface languages are shown below.</desc>
|
|
4
4
|
<defs>
|
|
5
5
|
<linearGradient id="background" x2="1" y2="1"><stop stop-color="#0c1622"/><stop offset="1" stop-color="#151729"/></linearGradient>
|
|
@@ -15,7 +15,7 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
15
15
|
<text x="56" y="65" font-size="23" font-weight="700" style="fill:#8ae6c2" class="mono">>_</text>
|
|
16
16
|
<text x="106" y="66" font-size="21" font-weight="700" style="fill:#a7b8cb">TABBY AI TOOLS</text>
|
|
17
17
|
<rect x="1534" y="44" width="218" height="28" rx="6" fill="#22313f"/>
|
|
18
|
-
<text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v0.3.
|
|
18
|
+
<text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v0.3.2 / 12 languages</text>
|
|
19
19
|
<text x="48" y="134" font-size="54" font-weight="700" style="fill:#f1f6ff">Your terminals. Working together.</text>
|
|
20
20
|
<text x="50" y="176" font-size="23" font-weight="400" style="fill:#a7b8cb">Codex + API connections / Automatic terminal takeover / Scheduled AI tasks</text>
|
|
21
21
|
<rect x="48" y="210" width="1704" height="632" rx="14" fill="#0d1520" stroke="url(#outline)"/>
|
|
@@ -123,7 +123,7 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
123
123
|
<text x="1048" y="1035" font-size="20" font-weight="400" style="fill:#a7b8cb">⌄</text>
|
|
124
124
|
<path d="M72 1061H1071" stroke="#2b3a4d"/>
|
|
125
125
|
<text x="72" y="1086" font-size="18" font-weight="500" style="fill:#8ae6c2">Codex · OpenAI · DeepSeek · GLM · Claude</text>
|
|
126
|
-
<text x="72" y="1115" font-size="14" style="fill:#a7b8cb">macOS discovery:
|
|
126
|
+
<text x="72" y="1115" font-size="14" style="fill:#a7b8cb">macOS discovery: ChatGPT.app/Contents/Resources/codex-cli/bin/codex</text>
|
|
127
127
|
<rect x="1122" y="878" width="630" height="254" rx="12" fill="#172130" stroke="#35475c"/>
|
|
128
128
|
<text x="1146" y="915" font-size="24" font-weight="650" style="fill:#edf5ff">One setup, many targets</text>
|
|
129
129
|
<circle cx="1153" cy="948" r="4" fill="#8ae6c2"/>
|
package/docs/development.md
CHANGED
|
@@ -35,7 +35,7 @@ Tabby 在应用内安装、升级插件后,已由[内置插件管理器](https
|
|
|
35
35
|
|
|
36
36
|
运行 `npm test`、`npm run typecheck` 和 `npm run build`。自动测试覆盖显式路径和命令名兼容、PATH 优先级、PATH 无 codex、大小写环境变量、哈希目录缺文件、按文件时间选择、升级后重新扫描、无效显式路径不降级,以及 JSONL 握手、进程重用、流式通知和 stderr。`test/executable.test.js` 在 Linux 上模拟 Windows 定位规则;`test/windows-launch.test.js` 仅在真实 Windows 上执行含空格 exe/cmd/bat 和无 PATH 自动定位管道测试,其他平台明确跳过。exe 夹具使用真正的 Node PE 可执行文件配合测试用 preload;它验证启动方式,不代替真实 Codex 测试。
|
|
37
37
|
|
|
38
|
-
`test/posix-discovery.test.js` 覆盖 Linux/macOS 定位规则、NVM_DIR、自定义命令及显式路径约定、Shell 启动输出隔离、输出上限、超时及失败后的扫描、查找与启动的 PATH 一致、关闭及切换配置时取消发现;并实际启动 `#!/usr/bin/env node` JSONL 夹具验证桌面 PATH 同时缺少 Codex 和 Node 的情况。新增回归覆盖 Codex 已在 PATH 而 Node 缺失、显式路径不切换安装、Shell 配置传递及父环境优先,以及 macOS ChatGPT.app 内置可执行文件发现、PATH 优先级和无执行权限时的拒绝。`test/process-lifecycle.test.js` 覆盖强制回收、等待旧服务退出、子进程清理和回收失败时阻止重启;Windows 专用测试验证空 PATH 下 cmd 启动器与常驻 Node 子进程的回收。CI 在 Ubuntu、macOS、Windows 上执行测试、类型检查和构建;本机 Linux 的规则模拟不代表 macOS/Windows 实测。
|
|
38
|
+
`test/posix-discovery.test.js` 覆盖 Linux/macOS 定位规则、NVM_DIR、自定义命令及显式路径约定、Shell 启动输出隔离、输出上限、超时及失败后的扫描、查找与启动的 PATH 一致、关闭及切换配置时取消发现;并实际启动 `#!/usr/bin/env node` JSONL 夹具验证桌面 PATH 同时缺少 Codex 和 Node 的情况。新增回归覆盖 Codex 已在 PATH 而 Node 缺失、显式路径不切换安装、Shell 配置传递及父环境优先,以及 macOS ChatGPT.app 内置可执行文件发现、PATH 优先级和无执行权限时的拒绝。`test/installations.test.js` 逐项覆盖 standalone 内部入口、新旧 macOS 桌面包、动态 Homebrew/npm prefix、Windows npm 目录、IDE OS/架构和版本筛选,以及无效输出、超时和取消。`test/windows-launch.test.js` 增加真实 npm.cmd prefix 查询并启动 codex.cmd 的回归;全量测试中的进程初始化检查等待实际进程出现,不依赖固定微任务数量。`test/process-lifecycle.test.js` 覆盖强制回收、等待旧服务退出、子进程清理和回收失败时阻止重启;Windows 专用测试验证空 PATH 下 cmd 启动器与常驻 Node 子进程的回收。CI 在 Ubuntu、macOS、Windows 上执行测试、类型检查和构建;本机 Linux 的规则模拟不代表 macOS/Windows 实测。
|
|
39
39
|
|
|
40
40
|
Windows 解压验证包后,用已安装 Node.js 20+ 的 PowerShell 运行(需联网安装 npm 依赖):
|
|
41
41
|
|
package/docs/guide.md
CHANGED
|
@@ -251,13 +251,29 @@ Goal 通过证据检查和持续执行降低过早结束的概率,但无法数
|
|
|
251
251
|
|
|
252
252
|
## CLI 自动发现与启动排查
|
|
253
253
|
|
|
254
|
-
`codexAgent.executable` 留空或保持默认 `codex` 时,先从 **Tabby 自身进程的 PATH** 查找并验证文件,随后检查 `CODEX_INSTALL_DIR`。Windows 再检查官方独立安装入口 `%LOCALAPPDATA%\Programs\OpenAI\Codex\bin\codex.exe
|
|
254
|
+
`codexAgent.executable` 留空或保持默认 `codex` 时,先从 **Tabby 自身进程的 PATH** 查找并验证文件,随后检查 `CODEX_INSTALL_DIR`。Windows 再检查官方独立安装入口 `%LOCALAPPDATA%\Programs\OpenAI\Codex\bin\codex.exe`,再检查 `CODEX_HOME` 下的 standalone 内部入口,随后扫描桌面安装 `%LOCALAPPDATA%\OpenAI\Codex\bin\<目录>\codex.exe`。桌面安装目录名可以是哈希,按有效 **codex.exe 的修改时间降序** 选择,时间相同按完整路径排序;不从目录名推断版本。每次启动后台进程都会重新查找,以适配升级和旧目录清理;已有连接复用当前进程。
|
|
255
255
|
|
|
256
|
-
Linux/macOS 在默认命令模式下会异步启动 `$SHELL -ilc` 补全环境,即使桌面 PATH 已经包含 Codex,也会读取用户 Shell 中的 Codex 配置。未设置 SHELL 时,Linux 使用 `/bin/bash`,macOS 使用 `/bin/zsh`;支持 bash/zsh/sh/dash/ksh/fish。探测限时 3 秒,通过独立管道读取最多 64 KiB,忽略 Shell 启动输出。仅导入 PATH、CODEX_HOME / CODEX_SQLITE_HOME / CODEX_INSTALL_DIR、NVM_DIR、代理、证书及 OPENAI_API_KEY / CODEX_API_KEY / CODEX_ACCESS_TOKEN;其中非 PATH 变量以父进程已有值(包括空值)为准,不导入 Shell 的 NODE_OPTIONS 等运行时钩子,也不把环境变量内容写入诊断。
|
|
256
|
+
Linux/macOS 在默认命令模式下会异步启动 `$SHELL -ilc` 补全环境,即使桌面 PATH 已经包含 Codex,也会读取用户 Shell 中的 Codex 配置。未设置 SHELL 时,Linux 使用 `/bin/bash`,macOS 使用 `/bin/zsh`;支持 bash/zsh/sh/dash/ksh/fish。探测限时 3 秒,通过独立管道读取最多 64 KiB,忽略 Shell 启动输出。仅导入 PATH、CODEX_HOME / CODEX_SQLITE_HOME / CODEX_INSTALL_DIR、NVM_DIR、HOMEBREW_PREFIX、NPM_CONFIG_PREFIX / npm_config_prefix、代理、证书及 OPENAI_API_KEY / CODEX_API_KEY / CODEX_ACCESS_TOKEN;其中非 PATH 变量以父进程已有值(包括空值)为准,不导入 Shell 的 NODE_OPTIONS 等运行时钩子,也不把环境变量内容写入诊断。
|
|
257
257
|
|
|
258
|
-
默认 Codex
|
|
258
|
+
默认 Codex 仍未找到时,按下表补充安装来源。POSIX 先恢复用户 Shell 环境,再检查 standalone、配置的 prefix、NVM 和常见系统目录;Windows 保留上文的独立安装/桌面安装优先级,再查 npm 等目录。尚未找到时才查询包管理器 prefix,随后检查 macOS 桌面包,最后才扫描 IDE 扩展。已通过 PATH 或设置选定的 Codex 不会被另一安装替换。
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
| 来源 | macOS / Linux | Windows |
|
|
261
|
+
| --- | --- | --- |
|
|
262
|
+
| PATH | `codex` | `codex.exe`、`codex.cmd` 等 PATHEXT 支持的启动器 |
|
|
263
|
+
| 官方 standalone | `~/.local/bin/codex` | `%LOCALAPPDATA%\Programs\OpenAI\Codex\bin\codex.exe` |
|
|
264
|
+
| 自定义 standalone | `$CODEX_INSTALL_DIR/codex` | `%CODEX_INSTALL_DIR%\codex.exe` |
|
|
265
|
+
| standalone 内部入口 | `${CODEX_HOME:-~/.codex}/packages/standalone/current/bin/codex`,兼容 `current/codex` | `%CODEX_HOME%\packages\standalone\current\bin\codex.exe`,兼容 `current\codex.exe`;未配置时使用 `%USERPROFILE%\.codex` |
|
|
266
|
+
| Homebrew | `$(brew --prefix)/bin/codex`,也检查 `HOMEBREW_PREFIX/bin` 和常见 Homebrew/Linuxbrew 目录 | — |
|
|
267
|
+
| npm | `$(npm prefix -g)/bin/codex`,也检查配置的 npm prefix、`~/.npm-global/bin` | `$(npm prefix -g)\codex.cmd`,也检查配置的 npm prefix 和 `%APPDATA%\npm` |
|
|
268
|
+
| NVM | `$NVM_DIR` 和 `~/.nvm` 的 `current/bin`、`versions/node/v*/bin` | — |
|
|
269
|
+
| macOS 新桌面包 | `/Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex`,同样支持 `~/Applications` 和 `Codex.app` | — |
|
|
270
|
+
| macOS 兼容入口 | `/Applications/ChatGPT.app/Contents/Resources/codex`、`/Applications/Codex.app/Contents/Resources/codex`,同样支持 `~/Applications` | — |
|
|
271
|
+
| Windows 桌面兼容目录 | — | `%LOCALAPPDATA%\OpenAI\Codex\bin\<目录>\codex.exe` |
|
|
272
|
+
| IDE 扩展最后兜底 | `~/.vscode/extensions/openai.chatgpt-*/bin/<platform>/codex` | `%USERPROFILE%\.vscode\extensions\openai.chatgpt-*\bin\<platform>\codex.exe` |
|
|
273
|
+
|
|
274
|
+
包管理器只执行已安装命令的 `brew --prefix` / `npm prefix -g`,不安装或更新软件。两项查询并发,各限时 2 秒,stdout 最多 16 KiB,只接受单行绝对路径;失败、无效输出或超时后继续查找,关闭/切换配置会取消并回收查询进程树。npm 查询也可使用从 NVM 恢复的 Node。诊断不包含包管理器输出或环境变量值。standalone 路径与布局依据官方 [POSIX 安装脚本](https://github.com/openai/codex/blob/main/scripts/install/install.sh) 和 [Windows 安装脚本](https://github.com/openai/codex/blob/main/scripts/install/install.ps1);npm prefix 与 bin 位置见 [npm prefix](https://docs.npmjs.com/cli/v12/commands/npm-prefix/) 和 [npm folders](https://docs.npmjs.com/cli/v12/configuring-npm/folders/)。
|
|
275
|
+
|
|
276
|
+
NVM 优先 current,其余按 Node 版本降序。IDE 同时支持 `.vscode-insiders`、`.vscode-server` 和 `.vscode-server-insiders` 的 extensions 目录,只检查 `openai.chatgpt-*`,按扩展版本降序选择当前 OS/x64 或 arm64 架构的有效文件,跳过缺失或不兼容的候选;不运行扩展自带的任意安装脚本。IDE 和桌面包内部路径属于兼容兜底,布局变化或自定义位置仍可填写实际完整路径。POSIX 候选必须有执行权限,目录和断开的软链接不会被选中。
|
|
261
277
|
|
|
262
278
|
查找结果与启动环境一起传递:Linux/macOS 把启动器所在目录放到子进程 PATH 首位。对于 `#!/usr/bin/env node`(含 `env -S node`)启动器,若 Node 不在同目录或 PATH,则从用户 Shell 及 NVM 等补充目录恢复 Node;这也适用于有效的显式路径和自定义命令名。找不到 Node 时报告运行环境错误,保留选定的 Codex。父进程环境不变,关闭或切换配置会取消尚未结束的探测。
|
|
263
279
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Tabby AI Tools 0.3.2
|
|
2
|
+
|
|
3
|
+
Complete Codex executable discovery across macOS, Linux and Windows. Version 0.3.1 only added an older macOS bundle entrypoint; this patch also supports the current `ChatGPT.app/Contents/Resources/codex-cli/bin/codex` layout, the former `Codex.app` name, and both system and user Applications directories.
|
|
4
|
+
|
|
5
|
+
- Discover standalone package entrypoints under `CODEX_HOME/packages/standalone/current/bin`, with compatibility for the older `current` layout.
|
|
6
|
+
- Query installed Homebrew and npm for their global prefixes when ordinary locations do not contain Codex. Support configured prefix variables, Linuxbrew, Windows npm global shims and Node recovered through NVM.
|
|
7
|
+
- Use compatible Codex binaries from VS Code, Insiders and remote-server extensions only as a final fallback. Select valid entries by extension version and current OS/CPU architecture.
|
|
8
|
+
- Bound prefix queries to two seconds and 16 KiB, reject malformed output, and cancel their process trees on close or configuration changes. Keep explicit/custom command contracts and already-selected CLI priority.
|
|
9
|
+
- Update both READMEs, the full discovery matrix and development/validation notes, twelve settings translations, and the SVG/PNG overview. Preserve the robot GIF and reduced-motion fallback.
|
|
10
|
+
|
|
11
|
+
Validation: skill bundle generation/consistency, TypeScript, 501 local tests (495 passed, six platform skips), production build, whitespace checks, rendered bilingual Markdown, image inspection and actual npm tarball contents. Branch and tag publication require the Linux/macOS/Windows GitHub Actions matrix to pass. Tests cover each installation source, stale symlinks, custom prefixes, architecture/version filtering, invalid manager output, timeouts, cancellation and actual Windows npm.cmd-to-codex.cmd startup.
|
|
12
|
+
|
|
13
|
+
Limitations: source-layout fixtures and mock transports verify discovery and process behavior, not every installed desktop/IDE version. App/extension internals may change; an explicit executable path remains available. No live Tabby desktop/SSH end-to-end or paid model smoke tests were run.
|