tabby-ai-tools 0.7.0 → 0.7.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 +5 -1
- package/README.zh-CN.md +5 -1
- package/VALIDATION.md +6 -0
- package/dist/index.js +1 -1
- package/dist/pi/sidecar.mjs +4320 -4320
- package/docs/assets/overview.png +0 -0
- package/docs/assets/overview.svg +4 -4
- package/docs/development.md +2 -0
- package/docs/guide.md +11 -3
- package/docs/releases/0.7.1.md +11 -0
- package/package.json +1 -1
- package/skills/tabby/SKILL.md +2 -0
- package/skills/tabby/references/operations.md +2 -0
package/docs/assets/overview.png
CHANGED
|
Binary file
|
package/docs/assets/overview.svg
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="1800" height="1440" viewBox="0 0 1800 1440" role="img" aria-labelledby="title desc">
|
|
2
|
-
<title id="title">Tabby AI Tools v0.7.
|
|
3
|
-
<desc id="desc">Interface illustration, not a running screenshot. Conditional recordings preserve interaction intent; local rules run first, with an optional current-connection helper model and rebind-before-resume checkpoints. Settings use two-row connection cards and editor summaries, compact headings and full-page scrolling for connections, workflows/preferences and scheduled tasks, with no fixed-height editor. The assistant sidebar coordinates example staging database and application terminals. Connection and model controls share one compact row. Scheduled tasks, provider connections, startup opening enabled by default and twelve interface languages and the Claude Code local-login connection are shown below. Active goals continue automatically by default. Thinking and tool calls appear as collapsed conversation entries that can be expanded. Terminal reads return early after reliable shell completion. Terminal output is read on demand without automatic forwarding; a completed explicit recording and a saved workflow alias are shown. Archive status distinguishes successful checkpoints from successful persistence. Pi runtime settings show the built-in runtime and an optional Node override, host-only tools and opt-in automatic context compaction. The provider list includes Kimi and Alibaba Cloud Coding Plan connections. Custom OpenAI-compatible settings show an example Base URL, model, protocol and authentication. Version 0.7.
|
|
2
|
+
<title id="title">Tabby AI Tools v0.7.1 interface illustration — conditional interactive workflows, helper models, local login and API connections</title>
|
|
3
|
+
<desc id="desc">Interface illustration, not a running screenshot. Windows default discovery compares actual Codex versions across PATH, desktop and standalone installations. Conditional recordings preserve interaction intent; local rules run first, with an optional current-connection helper model and rebind-before-resume checkpoints. Settings use two-row connection cards and editor summaries, compact headings and full-page scrolling for connections, workflows/preferences and scheduled tasks, with no fixed-height editor. The assistant sidebar coordinates example staging database and application terminals. Connection and model controls share one compact row. Scheduled tasks, provider connections, startup opening enabled by default and twelve interface languages and the Claude Code local-login connection are shown below. Active goals continue automatically by default. Thinking and tool calls appear as collapsed conversation entries that can be expanded. Terminal reads return early after reliable shell completion. Terminal output is read on demand without automatic forwarding; a completed explicit recording and a saved workflow alias are shown. Archive status distinguishes successful checkpoints from successful persistence. Pi runtime settings show the built-in runtime and an optional Node override, host-only tools and opt-in automatic context compaction. The provider list includes Kimi and Alibaba Cloud Coding Plan connections. Custom OpenAI-compatible settings show an example Base URL, model, protocol and authentication. Version 0.7.1 example with optional Pi SDK runtime, built-in Node 22.19+, manual context compaction and structured retry waiting.</desc>
|
|
4
4
|
<defs>
|
|
5
5
|
<linearGradient id="background" x2="1" y2="1"><stop stop-color="#0c1622"/><stop offset="1" stop-color="#151729"/></linearGradient>
|
|
6
6
|
<linearGradient id="outline"><stop stop-color="#375d5d"/><stop offset="1" stop-color="#3b3d5c"/></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.7.
|
|
18
|
+
<text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v0.7.1 / Pi optional</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 + Claude Code + APIs + optional Pi SDK / Terminal tools / Scheduled AI tasks</text>
|
|
21
21
|
<rect x="48" y="210" width="1704" height="632" rx="14" fill="#0d1520" stroke="url(#outline)"/>
|
|
@@ -131,7 +131,7 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
131
131
|
<path d="M72 1061H1071" stroke="#2b3a4d"/>
|
|
132
132
|
<rect x="72" y="1068" width="240" height="42" rx="5" fill="#233246" stroke="#3c5068"/>
|
|
133
133
|
<text x="84" y="1086" font-size="14" font-weight="600">Codex · Default</text>
|
|
134
|
-
<text x="84" y="1102" font-size="12" style="fill:#a7b8cb">Local login / CLI</text>
|
|
134
|
+
<text x="84" y="1102" font-size="12" style="fill:#a7b8cb">Local login / newest CLI</text>
|
|
135
135
|
<rect x="322" y="1068" width="240" height="42" rx="5" fill="#233246" stroke="#3c5068"/>
|
|
136
136
|
<text x="334" y="1086" font-size="14" font-weight="600">Claude Code</text>
|
|
137
137
|
<text x="334" y="1102" font-size="12" style="fill:#a7b8cb">Local login / CLI</text>
|
package/docs/development.md
CHANGED
|
@@ -151,3 +151,5 @@ Stable GitHub Releases trigger `.github/workflows/publish.yml`. After exact-comm
|
|
|
151
151
|
## Conditional workflow runtime
|
|
152
152
|
|
|
153
153
|
`workflow-policy.ts` defines bounded declarative predicates and response policies; `task-memory.ts` records intents and maintains ordered identity/result gates. `workflow-runner.ts` interprets conditional steps and independent verification, and `workflow-session.ts` binds calls to the current connection, Goal budget and cancellation. `workflow-decision.ts` uses isolated tool-free decision sessions; the backend factory applies model overrides to Codex, Claude Code, API and Pi without mutating the foreground profile. Temporary auxiliary transcripts are removed after disposal. v2 libraries retain v1 compatibility; separate minimal run journals omit raw observations, replies and live tab IDs. Offline fixtures in `test/workflow.test.js` cover rule execution, helper fallback, stale decisions, duplicate input, unknown results, restart/rebind and budget attribution. General TUI interpretation and missing shell completion still require the main model.
|
|
154
|
+
|
|
155
|
+
Windows 默认 CLI 选择:`node --test test/codex-version.test.js test/executable.test.js test/windows-launch.test.js test/installations.test.js` 验证语义版本比较、多个 PATH 入口、桌面升级目录清理、固定路径、超时与取消。Linux 上的 win32 文件系统模拟不替代真实 Windows 启动测试。
|
package/docs/guide.md
CHANGED
|
@@ -286,11 +286,11 @@ Goal 通过证据检查和持续执行降低过早结束的概率,但无法数
|
|
|
286
286
|
|
|
287
287
|
## CLI 自动发现与启动排查
|
|
288
288
|
|
|
289
|
-
`codexAgent.executable` 留空或保持默认 `codex`
|
|
289
|
+
`codexAgent.executable` 留空或保持默认 `codex` 时,**Windows 会收集并比较已发现安装的实际 CLI 版本**:Tabby 进程 PATH 的所有匹配项、`CODEX_INSTALL_DIR`、`%LOCALAPPDATA%\Programs\OpenAI\Codex\bin\codex.exe`、`CODEX_HOME` 下的 standalone 入口、`%LOCALAPPDATA%\OpenAI\Codex\bin\<目录>\codex.exe`、用户 `.local\bin` 及 npm 常见目录和全局 prefix。不会命中第一个 PATH 旧版就停止。多个候选使用不消耗模型额度的 `--version` 查询,按语义版本选择较新者;稳定版优先于同版本预发布版,版本相同时保留发现顺序。哈希名及文件修改时间不作为版本新旧依据。单项查询限时 1.5 秒、输出最多 16 KiB,最多四项并发;失败或无法解析的候选不压过有有效版本号的候选。所有版本均未知时保留原发现顺序(桌面子目录内部以程序修改时间排序),此时不能保证最新。每次新连接重新扫描,不缓存版本结果;已有连接复用当前进程。Linux/macOS 仍先检查 PATH,再检查 `CODEX_INSTALL_DIR` 和下文的补充来源。
|
|
290
290
|
|
|
291
291
|
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 等运行时钩子,也不把环境变量内容写入诊断。
|
|
292
292
|
|
|
293
|
-
默认 Codex 仍未找到时,按下表补充安装来源。POSIX 先恢复用户 Shell 环境,再检查 standalone、配置的 prefix、NVM 和常见系统目录;Windows
|
|
293
|
+
默认 Codex 仍未找到时,按下表补充安装来源。POSIX 先恢复用户 Shell 环境,再检查 standalone、配置的 prefix、NVM 和常见系统目录;Windows 已在上面的候选比较中检查独立安装、桌面安装和 npm 等目录。尚未找到时才查询包管理器 prefix,随后检查 macOS 桌面包,最后才扫描 IDE 扩展。Linux/macOS 已通过 PATH 选定的 Codex、各平台明确设置的文件路径或自定义命令不会被另一安装替换。
|
|
294
294
|
|
|
295
295
|
| 来源 | macOS / Linux | Windows |
|
|
296
296
|
| --- | --- | --- |
|
|
@@ -314,7 +314,15 @@ NVM 优先 current,其余按 Node 版本降序。IDE 同时支持 `.vscode-ins
|
|
|
314
314
|
|
|
315
315
|
服务关闭和重连会等待旧进程回收。Linux/macOS 为服务创建独立进程组,先发送 SIGTERM,等待最多 1 秒,再向仍存活的进程组发送 SIGKILL,并等待最多 2 秒确认服务管道关闭。Windows 使用由 SystemRoot / WINDIR 定位的绝对路径 `System32\taskkill.exe /t /f`,不依赖 PATH;执行和退出确认均有 2 秒上限。回收失败会给出诊断并阻止启动另一个服务,需要处理该错误并重启 Tabby 后重试。
|
|
316
316
|
|
|
317
|
-
|
|
317
|
+
Windows 桌面版升级可能更换或清理版本目录。要持续使用这套安装,在 **Codex CLI 可执行文件** 中填写稳定的父目录(用实际用户名替换 `用户名`):
|
|
318
|
+
|
|
319
|
+
```text
|
|
320
|
+
C:\Users\用户名\AppData\Local\OpenAI\Codex\bin
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
此目录配置每次新连接都扫描直属子目录,并比较 `codex.exe --version` 选择较新版本;仅限此目录,不比较 PATH 中的其他安装。默认留空同样会比较桌面安装与 PATH 版本,普通用户无需指定目录。无需在每次升级后手动填写哈希。若之前填写的是该桌面目录下的 `<目录>\codex.exe` 且文件已被移除,会在同一 `OpenAI\Codex\bin` 内恢复查找;若文件仍存在,保留显式固定版本。目录内没有可用程序时报错,不切换到另一安装。输入实际完整路径,不使用 `%LOCALAPPDATA%` 占位符。
|
|
324
|
+
|
|
325
|
+
显式配置的绝对路径、相对路径或 `~/` 路径优先(可带一对外层引号),会验证真实文件存在;除上述已移除的 Windows 桌面版本路径外,无效立即报错,**不会自动降级到另一安装**。自定义命令名(如 `my-codex`、`codex.cmd`)仅按 PATH / Windows PATHEXT 查找,保留命令名配置兼容性;未找到也不会改用桌面安装。Windows 支持原生 exe/com 和 cmd/bat 启动器,含空格、中文路径可用。原生程序使用绝对路径、参数数组和 `shell:false`;cmd/bat 由 cross-spawn 负责 cmd.exe 转义,stdin/stdout JSONL 及 stderr 均保留为管道。只填写文件路径或命令名,不附加参数。
|
|
318
326
|
|
|
319
327
|
子进程环境会移除所有大小写形式的 `CODEX_INTERNAL_ORIGINATOR_OVERRIDE`,初始化始终使用插件自己的 `clientInfo.name = tabby_codex_agent`,父进程环境不变。定位失败会给出 PATH 检查情况、Windows 安装扫描路径或 LOCALAPPDATA 缺失、Linux/macOS 的 Shell 探测结果及补充安装目录、候选拒绝原因,以及 **Settings → AI Tools → Codex CLI 可执行文件(`codexAgent.executable`)** 设置入口。
|
|
320
328
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# 0.7.1 — Windows Codex CLI discovery
|
|
2
|
+
|
|
3
|
+
Windows default configuration (blank or `codex`) now compares actual CLI versions across all PATH matches, desktop/standalone installs, user `.local/bin`, and known/npm global-prefix locations. A stale PATH entry no longer wins over a newer discovered CLI. Each new connection rescans without calling a model.
|
|
4
|
+
|
|
5
|
+
Version probes use semantic version ordering, a 1.5-second timeout, a 16-KiB output limit and at most four concurrent children. Synchronous process-launch errors are isolated to the failing candidate. Failed or unknown probes cannot outrank a known version; if every version is unknown, discovery order is retained and freshness cannot be guaranteed. CLI selection does not change account model entitlements.
|
|
6
|
+
|
|
7
|
+
An explicit `OpenAI\Codex\bin` directory compares only its child installations. Removed version-specific desktop entrypoints recover within the same installation. Existing explicit files and custom command names remain pinned. Linux/macOS lookup priority is unchanged.
|
|
8
|
+
|
|
9
|
+
English/Chinese READMEs, discovery/development guidance, bundled Tabby skill knowledge and the overview SVG/PNG now describe this behavior. The robot animation and reduced-motion fallback are preserved. The overview is an illustration with example tasks and connections, not a desktop screenshot.
|
|
10
|
+
|
|
11
|
+
Local validation uses Node 22.19.0. Release validation includes skill bundle/check, typecheck, full tests, production build, a real npm archive and installation with no node on PATH and lifecycle scripts enabled. Linux/macOS/Windows CI must pass before publication. Real account/model calls and an interactive Windows desktop session are outside this validation scope.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabby-ai-tools",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "A persistent AI agent sidebar for Tabby with Codex, Claude Code, OpenAI-compatible providers, DeepSeek, GLM, Kimi, and Alibaba Cloud Coding Plan support",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/skills/tabby/SKILL.md
CHANGED
|
@@ -61,3 +61,5 @@ Terminal output is not automatically forwarded into an active turn. Use `read_ta
|
|
|
61
61
|
API connections may select an isolated Pi SDK runtime. Since plugin 0.5.1, its SDK is bundled: installing the plugin does not require a system node command or installing Pi packages. Pi defaults to Tabby’s built-in Node through an isolated Electron utility process; leave the compatibility Node path blank. Prefer updating an incompatible Tabby host. An external Node >=22.19 path is only an explicit compatibility option; do not present a separate Node installation as a normal prerequisite. Only registered Tabby tools are available; built-in local shell/file tools and resource discovery are disabled. Host approval, read-only, terminal ownership, sudo and workflow checkpoints always apply. Complete a goal only after actual verification, regardless of a successful tool send or a native agent_end event. Pi may retry or summarize before agent_settled.
|
|
62
62
|
|
|
63
63
|
The user can run /compact on an idle API/Pi session. Summaries cost tokens and retain raw history; automatic compaction is opt-in. Preserve current user constraints, active skills, observed outcomes and pending workflow checkpoints. Neither a summary nor previous tool success substitutes for current terminal evidence. After interruption or an unknown action result, read the actual terminal before continuing; never replay a modifying operation merely to recover a lost response. Goal token budgets and host tool limits still apply during retries and summaries.
|
|
64
|
+
|
|
65
|
+
On Windows, leave the Codex CLI executable blank or set it to codex for automatic version selection. Discovery collects all PATH matches, desktop/standalone installs, user .local/bin and known/npm global prefix locations, comparing --version using semantic versions instead of file dates or hash names. Probes do not call a model; each has a 1.5-second/16-KiB limit, with four concurrent probes and cancellation cleanup. A valid version outranks failed/unknown probes; all unknown retains discovery order without guaranteeing newest. Each new connection rescans. An explicit stable OpenAI/Codex/bin directory compares only its child installations. Removed version-specific desktop paths recover within that same installation; existing explicit file paths and custom command names stay pinned. CLI freshness alone does not grant account model access.
|
|
@@ -102,3 +102,5 @@ Native successful sessions resume from an opaque CLI session ID. Provider/model
|
|
|
102
102
|
API connections may select an isolated Pi SDK runtime. Since plugin 0.5.1, its SDK is bundled: installing the plugin does not require a system node command or installing Pi packages. Pi defaults to Tabby’s built-in Node through an isolated Electron utility process; leave the compatibility Node path blank. Prefer updating an incompatible Tabby host. An external Node >=22.19 path is only an explicit compatibility option; do not present a separate Node installation as a normal prerequisite. Only registered Tabby tools are available; built-in local shell/file tools and resource discovery are disabled. Host approval, read-only, terminal ownership, sudo and workflow checkpoints always apply. Complete a goal only after actual verification, regardless of a successful tool send or a native agent_end event. Pi may retry or summarize before agent_settled.
|
|
103
103
|
|
|
104
104
|
The user can run /compact on an idle API/Pi session. Summaries cost tokens and retain raw history; automatic compaction is opt-in. Preserve current user constraints, active skills, observed outcomes and pending workflow checkpoints. Neither a summary nor previous tool success substitutes for current terminal evidence. After interruption or an unknown action result, read the actual terminal before continuing; never replay a modifying operation merely to recover a lost response. Goal token budgets and host tool limits still apply during retries and summaries.
|
|
105
|
+
|
|
106
|
+
On Windows, leave the Codex CLI executable blank or set it to codex for automatic version selection. Discovery collects all PATH matches, desktop/standalone installs, user .local/bin and known/npm global prefix locations, comparing --version using semantic versions instead of file dates or hash names. Probes do not call a model; each has a 1.5-second/16-KiB limit, with four concurrent probes and cancellation cleanup. A valid version outranks failed/unknown probes; all unknown retains discovery order without guaranteeing newest. Each new connection rescans. An explicit stable OpenAI/Codex/bin directory compares only its child installations. Removed version-specific desktop paths recover within that same installation; existing explicit file paths and custom command names stay pinned. CLI freshness alone does not grant account model access.
|