tabby-ai-tools 0.7.1 → 0.8.0

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,9 @@
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 v0.7.1 interface illustration with bundled optional Pi runtime and context compaction: the assistant coordinates two SSH terminals, with verified workflow recording and a saved /pm1 alias, collapsed thinking and tool activity, on-demand terminal reads, scheduled tasks, Pi built-in runtime and compaction settings, 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.8.0 interface illustration with SSH attachments, native tab progress, native Pi providers, offline model catalog, instruction snapshots, private CLI history and connection drafts: the assistant coordinates two SSH terminals, with verified workflow recording and a saved /pm1 alias, collapsed thinking and tool activity, on-demand terminal reads, scheduled tasks, Pi built-in runtime and compaction settings, provider connections, automatic startup and language settings](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
26
+
27
+ **New in v0.8.0: SSH attachments.** Paste screenshots or add files, upload/download through your existing SSH connection and follow native tab progress. The plugin handles every chunk and base64 fallback without model relay. Copy the verified remote path for your terminal Agent; automatic Codex image attachment and sidebar visual input are not included. [Files, limits and compatibility](docs/attachments.md).
26
28
 
27
29
  <sub>Interface illustration with example tasks and connections; appearance varies with your Tabby theme and window size.</sub>
28
30
 
@@ -30,6 +32,10 @@ Thinking and tool activity stream into collapsed entries in the conversation. Ex
30
32
 
31
33
  **Fixed in v0.7.1:** Windows default discovery compares installed Codex CLI versions, so an older PATH entry no longer hides a newer desktop installation. Desktop upgrade paths recover automatically. See the [release notes](docs/releases/0.7.1.md).
32
34
 
35
+ **Pi API configuration (v0.8.0):** new API connections recommend Pi SDK, with searchable native providers (including Gemini and OpenRouter), an offline SDK 1.4.0 model catalog, capability-based reasoning/output limits and four explicit custom protocols. Connection edits now use Save / Discard / Copy drafts. Existing connections keep their runtime and product presets. Local checks and paid model/tool tests are separate; OAuth/cloud identity and advanced import/export remain pending. See [Pi configuration and boundaries](docs/pi.md#unreleased-native-providers-and-connection-drafts-p0--p1).
36
+
37
+ **Custom instructions and private CLI history:** configure shared or per-connection instruction text/local AGENTS.md with previews and saved session snapshots. Unused Codex/Claude Code connections default to Tabby private history; existing CLI references retain an explicit compatibility mode. Generate a space-specific login command, check its authentication and switch when idle. See [instructions, authentication and migration](docs/instructions-sessions.md).
38
+
33
39
  **New in v0.7.0:** readable thinking/tool activity, safe sidebar copying and earlier terminal readback after verified command completion. See the [release notes](docs/releases/0.7.0.md) for validation and limits.
34
40
 
35
41
  Terminal takeover is automatic: unavailable foreground-process detection (including SSH) does not require a confirmation click. The agent inspects terminal output, preserves needed tasks, and can interrupt detected unrelated tasks.
@@ -46,8 +52,8 @@ Terminal output is read on demand with `read_tab`; it is no longer automatically
46
52
 
47
53
  | Connection | How to use it |
48
54
  | --- | --- |
49
- | **ChatGPT subscription → local Codex** | Install Codex CLI locally, run `codex login`, and select **Codex (local login)** in AI Tools. |
50
- | **Claude subscription → local Claude Code** | Install the official CLI, run `claude auth login`, check `claude auth status`, and select **Claude Code (local login)**. |
55
+ | **ChatGPT subscription → local Codex** | Install Codex CLI and select **Codex (local login)**. Generate the selected-space login command in Settings → AI Tools → Instructions and sessions. |
56
+ | **Claude subscription → local Claude Code** | Install the official CLI and select **Claude Code (local login)**. Generate its selected-space login command, then check that space's login in Settings. |
51
57
  | **OpenAI API** | Add an OpenAI connection with an API key, Base URL, and model ID. |
52
58
  | **DeepSeek** | Add a DeepSeek API connection and choose the model and Thinking settings. |
53
59
  | **GLM / Zhipu** | Add a GLM API connection using the endpoint and model available to your account. |
@@ -82,14 +88,14 @@ When elevated access is needed, manually run `sudo ls` or `sudo -v` in the same
82
88
  ## Start with your local ChatGPT subscription login
83
89
 
84
90
  1. Install [Codex CLI](https://learn.chatgpt.com/docs/cli) on the computer running Tabby.
85
- 2. Run the following commands, sign in with your ChatGPT account in the browser, and confirm that the CLI is logged in:
91
+ 2. Open **Settings → AI Tools → Codex → Instructions and sessions**. Generate the selected-space login command, run it in a local terminal and complete the official ChatGPT login. Then check the selected-space login. Unused connections default to a private space. For an existing **System space (legacy compatibility)** connection, the ordinary commands are:
86
92
 
87
93
  ```bash
88
94
  codex login
89
95
  codex login status
90
96
  ```
91
97
 
92
- 3. AI Tools opens automatically when Tabby starts, using **Codex (local login)** by default. Choose a model available to your account in the sidebar, or use the Codex default. No settings change is required.
98
+ 3. AI Tools opens automatically when Tabby starts, using **Codex (local login)** by default. Reconnect after logging in to the selected space, then choose a model available to your account or use the Codex default.
93
99
 
94
100
  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.
95
101
 
package/README.zh-CN.md CHANGED
@@ -22,7 +22,9 @@
22
22
 
23
23
  Tabby AI Tools 是集成在 [Tabby](https://github.com/Eugeny/tabby) 中的 AI 助手插件。它可以读取终端输出、发送命令,并根据执行结果继续分析和操作。你在侧栏描述目标,在终端查看过程,也可以随时取回输入控制。
24
24
 
25
- ![Tabby AI Tools v0.7.1 界面示意(含已打包的可选 Pi 运行时与上下文压缩):侧栏协调两个 SSH 终端,展示流程录制验收与已保存的 /pm1 别名、可折叠思考与工具过程、按需读屏、定时任务、Pi 内置运行时与压缩设置、连接列表、启动与语言设置,含自定义 OpenAI 兼容接口设置](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
25
+ ![Tabby AI Tools v0.8.0 界面示意(含 SSH 附件与原生 tab 进度、原生 Pi 供应商、离线模型目录、指令快照、独立 CLI 历史与连接草稿):侧栏协调两个 SSH 终端,展示流程录制验收与已保存的 /pm1 别名、可折叠思考与工具过程、按需读屏、定时任务、Pi 内置运行时与压缩设置、连接列表、启动与语言设置,含自定义 OpenAI 兼容接口设置](https://raw.githubusercontent.com/Hanlen/tabby-ai-tools/main/docs/assets/overview.png)
26
+
27
+ **v0.8.0 新增 SSH 附件传输:** 粘贴截图或添加文件,复用已有 SSH 上传/下载,并在目标 tab 显示原生进度。插件连续处理所有分块及 base64 回退,无需模型逐段接力。取得校验后的远端路径再交给终端 Agent;本版不自动附图到 Codex,也不向侧栏模型发送图片。[操作、限制与兼容范围](docs/attachments.md)。
26
28
 
27
29
  <sub>根据当前功能绘制的英文界面示意,任务和连接均为示例;实际外观随 Tabby 主题与窗口尺寸变化。</sub>
28
30
 
@@ -30,6 +32,10 @@ Tabby AI Tools 是集成在 [Tabby](https://github.com/Eugeny/tabby) 中的 AI
30
32
 
31
33
  **v0.7.1 修复:** Windows 默认查找会比较已安装 Codex CLI 的真实版本,避免 PATH 中的旧版遮住桌面新版,并支持桌面升级后的路径恢复。详见[发布说明](docs/releases/0.7.1.md)。
32
34
 
35
+ **Pi API 配置(v0.8.0):** 新建 API 连接推荐 Pi SDK,可搜索原生供应商(含 Gemini、OpenRouter)、浏览 SDK 1.4.0 离线模型目录,按模型能力选择推理与输出预算,并配置四类自定义协议。连接采用保存/放弃/复制草稿;旧连接保留运行时和产品预设。无推理检查与付费用量的模型/工具测试分开。OAuth/云身份与高级导入导出仍待后续阶段。[配置与验证边界](docs/pi.md#unreleased-native-providers-and-connection-drafts-p0--p1)。
36
+
37
+ **自定义指令与独立 CLI 历史:** 支持全局默认/连接级指令正文或本地 AGENTS.md,提供预览和会话快照。未使用过的 Codex/Claude Code 默认采用 Tabby 独立空间,已有 CLI 引用保留明确的兼容模式。可生成目标空间登录命令、检查认证,空闲时切换并交接当前对话。[指令、认证与迁移说明](docs/instructions-sessions.md)。
38
+
33
39
  **v0.7.0 新增:** 可读的思考/工具过程、安全的侧栏复制,以及确认命令完成后的提前读屏。验证范围与限制见[发布说明](docs/releases/0.7.0.md)。
34
40
 
35
41
  终端接管自动完成:前台进程检测不可用(包括 SSH)时不再要求点击确认。AI 先读取终端输出,保留当前任务需要的进程,并可自动中断已检测到的无关任务。
@@ -46,8 +52,8 @@ Tabby AI Tools 是集成在 [Tabby](https://github.com/Eugeny/tabby) 中的 AI
46
52
 
47
53
  | 连接方式 | 如何使用 |
48
54
  | --- | --- |
49
- | **ChatGPT 订阅 → 本机 Codex** | 本机安装 Codex CLI,执行 `codex login`,在插件中选择 **Codex(本机登录)**。 |
50
- | **Claude 订阅 → 本机 Claude Code** | 安装官方 CLI,执行 `claude auth login`,确认 `claude auth status`,在侧栏选择 **Claude Code(本机登录)**。 |
55
+ | **ChatGPT 订阅 → 本机 Codex** | 安装 Codex CLI 并选择 **Codex(本机登录)**,在设置的“指令与会话”生成选定空间的登录命令。 |
56
+ | **Claude 订阅 → 本机 Claude Code** | 安装官方 CLI 并选择 **Claude Code(本机登录)**,生成目标空间登录命令,完成后在设置里检查该空间登录。 |
51
57
  | **OpenAI API** | 添加 OpenAI 连接,配置 API Key、Base URL 和模型 ID。 |
52
58
  | **DeepSeek** | 添加 DeepSeek API 连接,选择模型与 Thinking 设置。 |
53
59
  | **GLM/智谱** | 添加 GLM API 连接,使用账号对应套餐的端点和模型。 |
@@ -82,14 +88,14 @@ v0.4.1 已支持自定义连接。Base URL 示例为 `https://gateway.example/v1
82
88
  ## ChatGPT 订阅用户如何开始
83
89
 
84
90
  1. 在运行 Tabby 的本机安装 [Codex CLI](https://learn.chatgpt.com/docs/cli)。
85
- 2. 执行以下命令,在浏览器登录 ChatGPT 账号,并确认 CLI 已登录:
91
+ 2. 打开 **Settings → AI Tools → Codex → 指令与会话**,生成选定空间的登录命令,在本地终端执行并完成 ChatGPT 官方登录,再检查该空间认证。未使用过的连接默认采用独立空间。已有的**系统空间(旧版兼容)**连接可使用以下普通命令:
86
92
 
87
93
  ```bash
88
94
  codex login
89
95
  codex login status
90
96
  ```
91
97
 
92
- 3. 启动 Tabby 后 AI Tools 会自动打开,默认使用 **Codex(本机登录)**,无需先进入设置。直接在侧栏选择账号可用的模型,或沿用 Codex 默认模型。
98
+ 3. 启动 Tabby 后 AI Tools 会自动打开,默认使用 **Codex(本机登录)**。在选定空间登录后点击侧栏重连,再选择账号可用模型,或沿用 Codex 默认模型。
93
99
 
94
100
  只需在本机安装和登录 Codex,即可沿用 Tabby 已连接的 SSH 终端协助操作服务器;服务器无需逐台登录 ChatGPT 或安装 AI Agent。
95
101
 
package/VALIDATION.md CHANGED
@@ -1,3 +1,27 @@
1
+ # Unreleased instructions and private CLI session spaces — 2026-11-02
2
+
3
+ Implemented global/per-connection inline or local AGENTS.md instructions, bounded UTF-8 validation, preview and immutable session snapshots across API, Pi, Codex and Claude Code. Codex/Claude private homes, indexes, references, authentication checks and login-command generation are separate from their legacy system mode. Existing source history is retained during portable handoff, repeated handoffs are deduplicated and native session writers are locked. Saving does not start inference or hot-switch an active task.
4
+
5
+ Final Linux / Node 22.19.0 suite: **839 tests, 833 passed, 0 failed, 6 platform-only skips** (`/tmp/tabby-instructions-final-tests.log`). The first run used the shell's Node 20 and exposed the known Pi minimum-runtime check plus assertions for the superseded shared-Codex behavior; those compatibility tests now explicitly cover system mode and private startup. New offline tests cover UTF-8/BOM/oversize/missing files, inherited/disabled/overridden instructions, persisted snapshots after source removal, private ownership, restart persistence, process replacement, auth/inference environment consistency, draft failure rollback, writer rejection and handoff deduplication without replay. Skill bundle/check, both TypeScript boundaries, offline Pi catalog reproducibility, production build and diff check pass.
6
+
7
+ Actual Linux Tabby 1.0.238 / Electron 43.7.0 with an empty PATH verified global and connection instruction edits, file preview, missing-file errors, discard, source selection, native space Save/Discard and persisted dynamic configuration. At 1400×900 and 650×640 window sizes, settings had no horizontal overflow. Evidence: `/tmp/tabby-settings-preview-loUt2s/`, `/tmp/tabby-instructions-final-desktop.log`. Both READMEs were rendered and checked in Chromium (`/tmp/tabby-instructions-readmes/`); the synchronized SVG/PNG overview is 1800×1650, and the unchanged 1024×512 GIF retains 12 frames with a matching static fallback.
8
+
9
+ The locally installed Codex CLI 0.166.0 was separately initialized in an empty temporary private space: `account/read` correctly reported no login, thread creation/read succeeded, and SQLite/log paths stayed under that space. No `turn/start` was sent. Evidence: `/tmp/tabby-instructions-codex-LBFl8x/result.json`. An initial extended-turn read hit this CLI's unsupported `list_turns`; the smoke check was narrowed to supported metadata reads, without claiming native transcript compatibility beyond the existing history adapter.
10
+
11
+ Real tarball inventory/checksum and scripts-enabled, no-system-Node installation evidence are recorded outside the package under `/tmp/tabby-instructions-package-4qqyy17k/`. No real Claude login, model entitlement, paid inference, SSH task, Windows/macOS desktop check or remote CI result is claimed. This session implements local changes only; it does not bump the version, commit, push, tag or publish. Local research and AGENTS.md remain excluded.
12
+
13
+ # Unreleased Pi provider configuration — P0/P1 (2026-11-02)
14
+
15
+ Pinned Pi SDK 1.4.0; no paid model inference, account credentials, CLI login or original task replay. The offline inventory contains 42 providers, with unavailable adapters explicitly labeled. Native Google Gemini and OpenRouter retain provider identity, SDK compatibility metadata, protocol, context/output limits and per-connection keys through endpoint overrides. Local HTTP fixtures cover their streaming and one host-tool round trip, plus all four custom protocols (Chat Completions, Responses, Anthropic Messages, Google Generative AI). Legacy Kimi Coding/Alibaba/product behavior, recovery, permission denial, budgets, retries and cancellation remain covered. The Google fixture was corrected to emit `data:` SSE events as required by the pinned Google client. An attempted Bedrock static import exposed an optional `kerberos` dependency; Bedrock remains disabled for identity/dependency adaptation rather than being claimed as packaged support.
16
+
17
+ The initial full run exposed old settings tests that assumed reference sharing and immediate save. They now assert independent drafts, explicit save and provider-specific key restoration; new tests cover failed persistence, cancellation, copies, SDK capabilities, fingerprints, provider switching and concurrent sidebar thread references. Final review also removed the legacy 131072 output-budget clamp for new Pi configurations, preserving SDK-supported larger limits while keeping legacy API normalization unchanged. Final checks and archive details are recorded separately below. No remote CI was triggered and no macOS/Windows desktop or real provider/account authorization result is claimed.
18
+
19
+ Actual isolated Linux Tabby 1.0.238 (Electron 43.7.0 / built-in Node 24.21.0) was exercised under Xvfb. With PATH empty for Tabby, the installed plugin rendered native settings, completed its no-inference configuration/runtime check, browsed the offline catalog, retained drafts on navigation, discarded edits, canceled copies, saved, and focused a validation error summary. Window sizes 1400×900 and 650×640 had no horizontal content overflow. Screenshots and UI results: `/tmp/tabby-settings-preview-1v1Xzs/`. A separate native Gemini local HTTP fixture exercised the actual packaged main bridge and utility process with no Node on PATH: two requests, one host-tool round trip, 60 fixture tokens, then stop while a tool result was pending and owner-window destruction both closed the process. Evidence: `/tmp/tabby-electron-worker-de5TrT/` and `/tmp/tabby-pi-p1-electron.log`. These are local fixtures, not real account or SSH/PTY mutation evidence.
20
+
21
+ The bilingual README, guide, Pi capability inventory, development/release notes, skill/knowledge and synchronized SVG/PNG illustration describe the unreleased changes. The robot GIF/static fallback are retained. P2/P3 remain pending. The separate custom-instructions/private-CLI-space implementation has its own validation entry above; existing system sessions are retained through its explicit compatibility mode. This is an implementation-only session: no commit, tag, release or npm publication.
22
+
23
+ Final local verification: `skill:bundle`, `skill:check`, `pi:catalog:check`, `typecheck`, production build and `git diff --check` passed. On Node 22.19.0 the full suite reports **818 tests: 812 passed, 0 failed, 6 platform-only skips** (`/tmp/tabby-pi-verified-test.log`). Both README files were rendered to HTML and loaded in Chromium with the current local assets; the unchanged robot GIF has 12 frames at 1024×512 and a matching static fallback. The synchronized overview was inspected at 1800×1440. Final tarball, archive inventory, checksum, extracted-runtime fixture results and scripts-enabled installation evidence are retained under `/tmp/tabby-pi-p1-package-sv_1_9zv/`; its external `verification.json` records the exact artifact so no self-referential checksum is embedded in the package.
24
+
1
25
  # v0.6.0 release validation (2026-11-01)
2
26
 
3
27
  ## Conditional interactive workflows — 2026-11-01 (local, unreleased)
@@ -344,3 +368,22 @@ The fixes change context acknowledgement, error classification and provider wire
344
368
  The isolated release includes only the Windows CLI selection/path recovery fix and its documentation/tests. On Linux with Node 22.19.0: skill bundle/check, typecheck, all 812 tests (806 passed, 6 platform-specific skips), production build and diff checks passed. Tests compare actual fixture CLI versions across old PATH/new desktop installs, deliberately reversed file times, numeric and prerelease versions, invalid/oversized/timed-out output, synchronous Windows process-launch rejection and cancellation. README Markdown was rendered to HTML and checked; the synchronized overview PNG was previewed. Robot GIF and reduced-motion static fallback remain unchanged.
345
369
 
346
370
  Version probes run only --version and make no model requests. Account model entitlements and an interactive Windows desktop remain outside local validation. The release requires Linux/macOS/Windows branch and tag CI, package installation without node on PATH with lifecycle scripts enabled, and registry artifact-integrity verification. GitHub Actions results are recorded on the tag and release rather than represented as local desktop evidence.
371
+
372
+ ### Windows desktop Codex upgrade paths (local)
373
+
374
+ Stable `OpenAI/Codex/bin` directory selection and recovery of removed version-specific entrypoints are covered by `test/executable.test.js`. Focused discovery/launch/installations run: 41 passed, 5 actual Windows cases skipped on Linux. Typecheck, skill bundle/check, production build and diff whitespace check passed. Full suite under Node 20.20.2: 779 passed, 39 skipped, 2 Pi compaction tests failed because Pi requires Node >=22.19.0. This run does not establish actual Windows desktop behavior. Overview SVG/PNG were synchronized and the PNG preview inspected.
375
+
376
+ ### Windows default newest CLI selection (local)
377
+
378
+ Default Windows startup now gathers all PATH matches plus desktop, standalone, user .local/bin and known/npm global-prefix candidates, then compares actual `--version` results with semantic version ordering. Explicit file/custom-command settings remain pinned; a desktop bin directory compares only its children. The full suite ran 825 cases: 784 passed, 39 skipped, and the same 2 Pi compaction tests failed under Node 20.20.2 because Pi requires >=22.19.0. After adding discovery-boundary cancellation coverage, all 6 version-selection tests passed separately. Typecheck, skill bundle/check and production build passed. Windows-native launch cases remain unverified on this Linux host. SVG/PNG were synchronized and previewed. No model inference was invoked.
379
+ # 0.8.0 SSH attachment and configuration release validation
380
+
381
+ Linux with Node 22.19.0: the final suite ran 855 tests, with 849 passed, zero failures and six platform-specific skips. Skill bundle/check, the SDK 1.4.0 offline catalog check and TypeScript checks passed. Tests cover owner-scoped immutable/persistent attachment caches, one-operation streaming and idempotency, checksums and changing sources, cancellation, ambiguous publication, progress ownership, raw-output privacy, scoped native event-buffer retention and attachment/workflow boundaries. Actual local POSIX exec binary/base64 and Linux PTY upload/download round trips preserve every byte without model chunk calls. These subprocess fixtures are distinct from authenticated SSH evidence.
382
+
383
+ Actual Linux Tabby 1.0.238 (Electron 43.7.0, host Node 24.21.0) loaded the built plugin under an isolated Xvfb profile. A temporary loopback OpenSSH server with a new test key authenticated the real Tabby SSH client. SFTP upload/download and a forced independent-exec fallback completed and matched the image SHA-256. A separate server with no SFTP subsystem exercised the host's native capability-timeout response and independent exec upload/download. Native tab progress was observed at 27.1995% (53.84375px in the test tab), and attachment UI checks at 220, 320, 420 and 600px had no horizontal overflow or page errors. Images were added through the actual file input and native Linux clipboard Ctrl+V; ordinary text paste also remained functional. These checks do not establish other OS clipboard behavior. No paid model requests were made.
384
+
385
+ The host's russh 0.1.38 directory chmod replays directory size metadata, which OpenSSH rejects. Private upload directory preparation therefore uses the same SSH connection's independent exec when available; file bytes still use SFTP. Attachment-owned channel buffers are retained until the random result frame is drained, avoiding native close/data callback ordering loss; unrelated channels keep normal cleanup. Model-facing results contain metadata/receipts, not base64, and ambiguous results are never automatically replayed.
386
+
387
+ The bilingual READMEs were rendered with GitHub's Markdown API and previewed in Chromium. The 1800×1900 overview SVG/PNG were synchronized and visually inspected, with example attachment/native-progress data and an explicit illustration label. Robot GIF and reduced-motion PNG remain unchanged. Final tarball installation without system Node, checksum/inventory checks, Linux/macOS/Windows branch/tag CI and Registry readback are recorded separately in the GitHub Release.
388
+
389
+ Validation boundaries: actual desktop and SSH evidence above is Linux loopback, not every server/network, Windows/macOS desktop, remote Windows filesystem or real-model image analysis. Existing CLI login/session and provider-account limits continue to apply. This release offers verified remote paths, not automatic Codex image attachment or sidebar model visual input. Unattended transfers are not reusable workflow steps; transfer files before a recording/alias. General incremental read-screen improvements remain deferred.