tabby-ai-tools 0.6.0 → 0.7.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 +4 -2
- package/README.zh-CN.md +4 -2
- package/VALIDATION.md +11 -0
- package/dist/index.js +1 -1
- package/docs/assets/overview.png +0 -0
- package/docs/assets/overview.svg +36 -23
- package/docs/development.md +4 -0
- package/docs/guide.md +3 -1
- package/docs/releases/0.7.0.md +11 -0
- package/docs/releases/unreleased.md +1 -1
- package/docs/task-workflows.md +53 -5
- package/package.json +1 -1
- package/skills/tabby/SKILL.md +2 -0
- package/skills/tabby/references/operations.md +8 -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.
|
|
3
|
-
<desc id="desc">Interface illustration, not a running screenshot. 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.
|
|
2
|
+
<title id="title">Tabby AI Tools v0.7.0 interface illustration — conditional interactive workflows, helper models, local login and API connections</title>
|
|
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.0 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.
|
|
18
|
+
<text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v0.7.0 / 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)"/>
|
|
@@ -68,8 +68,8 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
68
68
|
</g>
|
|
69
69
|
<rect x="72" y="683" width="452" height="93" rx="7" fill="#101a27" stroke="#42546d"/>
|
|
70
70
|
<text x="85" y="707" font-size="16" font-weight="400" style="fill:#8ca0b8">Workflow alias saved: /pm1</text>
|
|
71
|
-
<text x="85" y="728" font-size="12" font-weight="400" style="fill:#8ca0b8">/pm1
|
|
72
|
-
<text x="85" y="754" font-size="12" style="fill:#8ca0b8">
|
|
71
|
+
<text x="85" y="728" font-size="12" font-weight="400" style="fill:#8ca0b8">/pm1: rules first; helper for uncertain prompts.</text>
|
|
72
|
+
<text x="85" y="754" font-size="12" style="fill:#8ca0b8">Fresh checks · Resume current step · No replay</text>
|
|
73
73
|
<text x="73" y="812" font-size="14" font-weight="400" style="fill:#a7b8cb">Tools</text>
|
|
74
74
|
<rect x="115" y="792" width="159" height="28" rx="6" fill="#253348"/>
|
|
75
75
|
<text x="125" y="812" font-size="14" font-weight="600" style="fill:#a7b8cb">Terminal tools</text>
|
|
@@ -113,7 +113,8 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
113
113
|
<path d="M549 806H1751" stroke="#2b3a4d"/>
|
|
114
114
|
<text x="574" y="830" font-size="16" font-weight="400" style="fill:#a7b8cb">2 SSH terminals · Output read on demand · Automatic forwarding off</text>
|
|
115
115
|
<rect x="48" y="878" width="1050" height="254" rx="12" fill="#172130" stroke="#35475c"/>
|
|
116
|
-
<text x="72" y="
|
|
116
|
+
<text x="72" y="907" font-size="20" font-weight="650" style="fill:#edf5ff">Settings / AI Tools</text>
|
|
117
|
+
<text x="348" y="907" font-size="14" style="fill:#8ca0b8">Example · Two-row summaries · Full-page scrolling</text>
|
|
117
118
|
<text x="72" y="952" font-size="18" font-weight="400" style="fill:#a7b8cb">Default connection</text>
|
|
118
119
|
<rect x="496" y="929" width="575" height="33" rx="6" fill="#233246" stroke="#3c5068"/>
|
|
119
120
|
<text x="512" y="952" font-size="17" font-weight="400" style="fill:#e8eff9">Claude Code (local login)</text>
|
|
@@ -128,8 +129,18 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
128
129
|
<text x="892" y="1035" font-size="15" font-weight="400" style="fill:#8ca0b8">12 languages</text>
|
|
129
130
|
<text x="1048" y="1035" font-size="20" font-weight="400" style="fill:#a7b8cb">⌄</text>
|
|
130
131
|
<path d="M72 1061H1071" stroke="#2b3a4d"/>
|
|
131
|
-
<
|
|
132
|
-
<text x="
|
|
132
|
+
<rect x="72" y="1068" width="240" height="42" rx="5" fill="#233246" stroke="#3c5068"/>
|
|
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>
|
|
135
|
+
<rect x="322" y="1068" width="240" height="42" rx="5" fill="#233246" stroke="#3c5068"/>
|
|
136
|
+
<text x="334" y="1086" font-size="14" font-weight="600">Claude Code</text>
|
|
137
|
+
<text x="334" y="1102" font-size="12" style="fill:#a7b8cb">Local login / CLI</text>
|
|
138
|
+
<rect x="572" y="1068" width="240" height="42" rx="5" fill="#203e36" stroke="#43866f"/>
|
|
139
|
+
<text x="584" y="1086" font-size="14" font-weight="600">Example API connection</text>
|
|
140
|
+
<text x="584" y="1102" font-size="12" style="fill:#a7b8cb">Custom · your-model-id</text>
|
|
141
|
+
<text x="830" y="1086" font-size="14" style="fill:#a7b8cb">Workflows + helper model</text>
|
|
142
|
+
<text x="830" y="1104" font-size="14" style="fill:#a7b8cb">Scheduled tasks</text>
|
|
143
|
+
<text x="72" y="1125" font-size="12" style="fill:#8ca0b8">Two-row connection cards · Forms scroll with the settings page</text>
|
|
133
144
|
<rect x="1122" y="878" width="630" height="254" rx="12" fill="#172130" stroke="#35475c"/>
|
|
134
145
|
<text x="1146" y="915" font-size="22" font-weight="650" style="fill:#edf5ff">Pi SDK / Example runtime settings</text>
|
|
135
146
|
<text x="1146" y="946" font-size="16" style="fill:#a7b8cb">SDK bundled · Tabby built-in Node by default</text>
|
|
@@ -144,22 +155,24 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
|
|
|
144
155
|
<text x="1160" y="1083" font-size="14" style="fill:#a7b8cb">Off by default; /compact manually</text>
|
|
145
156
|
<rect x="1619" y="1063" width="107" height="28" rx="5" fill="#253348"/>
|
|
146
157
|
<text x="1648" y="1083" font-size="14">Saved</text>
|
|
147
|
-
<text x="1146" y="1116" font-size="15" style="fill:#8ae6c2">Host tools only ·
|
|
158
|
+
<text x="1146" y="1116" font-size="15" style="fill:#8ae6c2">Host tools only · Workflow checkpoints and helper budgets</text>
|
|
148
159
|
<rect x="48" y="1152" width="1704" height="204" rx="12" fill="#172130" stroke="#35475c"/>
|
|
149
|
-
<text x="72" y="
|
|
150
|
-
<text x="72" y="
|
|
151
|
-
<
|
|
152
|
-
<text x="
|
|
153
|
-
<
|
|
154
|
-
<
|
|
155
|
-
<text x="
|
|
156
|
-
<
|
|
157
|
-
<
|
|
158
|
-
<text x="
|
|
159
|
-
<
|
|
160
|
-
<
|
|
161
|
-
<text x="
|
|
162
|
-
<
|
|
160
|
+
<text x="72" y="1177" font-size="18" font-weight="650" style="fill:#edf5ff">Example API connection</text>
|
|
161
|
+
<text x="72" y="1198" font-size="14" style="fill:#a7b8cb">Custom (OpenAI compatible) · your-model-id</text>
|
|
162
|
+
<path d="M49 1210H1751" stroke="#2b3a4d"/>
|
|
163
|
+
<text x="72" y="1239" font-size="16" style="fill:#a7b8cb">API protocol</text>
|
|
164
|
+
<rect x="260" y="1217" width="580" height="33" rx="5" fill="#233246"/>
|
|
165
|
+
<text x="276" y="1240" font-size="16">Chat Completions (default) / Responses</text>
|
|
166
|
+
<text x="890" y="1239" font-size="16" style="fill:#a7b8cb">Key source</text>
|
|
167
|
+
<rect x="1080" y="1217" width="646" height="33" rx="5" fill="#233246"/>
|
|
168
|
+
<text x="1096" y="1240" font-size="16">Direct key / Environment variable / No API key</text>
|
|
169
|
+
<text x="72" y="1287" font-size="16" style="fill:#a7b8cb">Base URL</text>
|
|
170
|
+
<rect x="260" y="1265" width="580" height="33" rx="5" fill="#233246"/>
|
|
171
|
+
<text x="276" y="1288" font-size="16">https://gateway.example/v1</text>
|
|
172
|
+
<text x="890" y="1287" font-size="16" style="fill:#a7b8cb">Model ID</text>
|
|
173
|
+
<rect x="1080" y="1265" width="646" height="33" rx="5" fill="#233246"/>
|
|
174
|
+
<text x="1096" y="1288" font-size="16">your-model-id / Discover or enter manually</text>
|
|
175
|
+
<text x="72" y="1342" font-size="16" style="fill:#8ae6c2">/remember: if / else → interaction helper → verify → resume · Stop cancels helper calls</text>
|
|
163
176
|
<text x="49" y="1393" font-size="16" font-weight="400" style="fill:#8ca0b8">INTERFACE ILLUSTRATION · Example connections and task output; not a running screenshot.</text>
|
|
164
177
|
<text x="49" y="1418" font-size="14" font-weight="400" style="fill:#8ca0b8">Appearance varies with your Tabby theme, window size and configured connections.</text>
|
|
165
178
|
</svg>
|
package/docs/development.md
CHANGED
|
@@ -147,3 +147,7 @@ Tests cover default host selection without node on PATH, main-process bridge sel
|
|
|
147
147
|
## Trusted npm publishing
|
|
148
148
|
|
|
149
149
|
Stable GitHub Releases trigger `.github/workflows/publish.yml`. After exact-commit branch/tag CI verification, the workflow publishes the reviewed release attachment through GitHub OIDC, without a stored npm token or rebuilding the tarball. npm performs a one-time trusted publisher binding to `Hanlen/tabby-ai-tools` and `publish.yml`; direct publishing must be allowed. Create Releases as drafts, attach the verified tarball and checksum, then publish. The workflow waits for registry processing and verifies downloaded bytes. See [release setup and recovery](../.github/RELEASING.md).
|
|
150
|
+
|
|
151
|
+
## Conditional workflow runtime
|
|
152
|
+
|
|
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.
|
package/docs/guide.md
CHANGED
|
@@ -133,7 +133,7 @@ Kimi API、Kimi Coding Plan 和阿里云百炼 Coding Plan 提供 **中国内地
|
|
|
133
133
|
|
|
134
134
|
在 **Settings → AI Tools → 添加 API 连接** 配置供应商、Base URL 和模型 ID。密钥来源默认选择“直接输入”,填写 API Key 即可,该方式将密钥保存在本地 Tabby 插件配置中。也可选择环境变量;自定义接口还支持“无需密钥”。插件不访问 Vault,旧 Vault 连接需重新选择密钥来源。
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
设置页通过连接列表切换编辑对象,一次只显示一个连接的配置。列表显示供应商、模型和默认标记,各供应商使用不同色标;连接卡片将名称、默认标记与供应商/模型压缩为两行,编辑区用两行摘要展示名称及供应商/模型,缩小图标与内边距;标题和通用设置采用紧凑间距。连接配置、任务流程与偏好、定时任务随设置页整体滚动,内容区不再限制高度或单独滚动。窄窗口下连接列表改为横向滚动。新增连接自动进入编辑,删除当前连接后切换到相邻连接;Codex 本机引擎也从列表单独选择。切换编辑对象不会改变默认连接,默认连接通过顶部选择器或编辑区的“设为默认”修改。思考模式、推理强度、上下文窗口和工具轮数上限在 **高级参数** 中展开配置。
|
|
137
137
|
|
|
138
138
|
点击当前连接编辑区下方的 **测试连接** 会发送一条简短请求,实际验证密钥、模型和流式响应,并产生少量 API 用量。进度与结果显示在按钮下方,测试中可以取消,60 秒超时;HTTP 错误、错误模型或不支持 SSE 的代理会显示相应提示。
|
|
139
139
|
|
|
@@ -168,6 +168,8 @@ API 工具循环检测始终启用,无需等到轮数上限。近期同一段
|
|
|
168
168
|
|
|
169
169
|
含 sudo 的流程会提前提示在每个实际执行终端运行 `sudo -v` 或 `sudo ls`,完成认证后继续。其他终端的认证不保证共享。执行时用 `sudo -n -v` 预检,每 30 秒非交互刷新;认证失效时停止该命令并要求重新认证。详情和清理边界见[任务流程说明](task-workflows.md)。各步骤还保存服务器 IP、持久连接/服务器 ID、操作路径、前置依赖和验收证据。跨服务器也逐步执行:读取对应终端的新结果,并通过步骤确认工具验收后,才放行下一步;目标或路径不符时停止。操作偏好继续在设置页管理,`/remember` 专用于开始任务录制。
|
|
170
170
|
|
|
171
|
+
交互内容也可固化:stdin、按键、进程接管和侧栏提问会保存处理意图。条件明确时按规则执行,不确定时使用当前连接配置的辅助模型,再续接当前步骤;辅助用量计入任务预算,秘密信息使用人工节点。配置入口为 **任务流程与偏好 → 交互辅助模型**,详见[条件与交互流程](task-workflows.md#条件与交互流程)。
|
|
172
|
+
|
|
171
173
|
## 定时 AI 流程
|
|
172
174
|
|
|
173
175
|
在对话中提出“每天北京时间 9 点检查服务,异常时分析日志并修复,最多三次,最后验证恢复”等要求。AI 会保存独立定时任务,触发后根据每次输出继续判断和操作,留下逐次执行记录。支持单次、固定分钟间隔和指定时区的每日任务。
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# 0.7.0
|
|
2
|
+
|
|
3
|
+
AI Tools settings now scroll with the full settings page across connections, workflows/preferences and scheduled tasks. The editor no longer constrains forms to a fixed-height nested scroll area, including in narrow windows. Smaller headings and tighter general-settings spacing leave more room for configuration content. Connection cards and editor summaries use two compact rows, with smaller provider icons and less padding; names can still wrap when needed.
|
|
4
|
+
|
|
5
|
+
Readable activity, sidebar keyboard isolation and terminal read improvements are included in [v0.6.0](0.6.0.md).
|
|
6
|
+
|
|
7
|
+
Pointer interactions no longer leave thick focus outlines on sidebar controls (including History, Context, model selection, workflows and schedules) or AI Tools settings. Native control focus is handled by the browser so clicking from the prompt does not inherit a keyboard focus ring. Keyboard navigation uses a consistent thin indicator; conversation text selection remains frameless, with copying and terminal shortcut isolation preserved.
|
|
8
|
+
|
|
9
|
+
Interactive `/remember` recordings now preserve stdin/key/attachment intent and structured sidebar questions, with conditional policies, a bounded local runner and current-connection helper decisions. Workflow settings configure the helper model and advanced policies. Helpers are isolated from terminal writes and foreground model settings, account usage to the parent Goal, and cancel with Stop. Fresh observations and unknown-result journals prevent automatic command/answer replay; missing machine verification returns to the main model. v1 libraries remain readable, v2 runs support rebind-before-resume. Documentation, bundled model guidance and the SVG/PNG illustration describe the new workflow route. No real provider or desktop/SSH validation is implied by offline fixtures.
|
|
10
|
+
|
|
11
|
+
The conversation Stop button now uses the theme’s filled danger style by default.
|
package/docs/task-workflows.md
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
|
|
18
18
|
用户要求“设置别名为 pm1”时,助手先核对状态中的目标确实是用户所指流程,再调用 `workflow_set_alias(alias="pm1",workflowId=返回的流程ID)`。成功响应必须包含 `saved=true` 和回读的 `workflow.alias="pm1"`。同目录重名、内置命令名、错误流程 ID、其他会话/目录或未完成录制会被拒绝;只读模式不能修改别名。不会修改另一条旧流程来冒充完成。
|
|
19
19
|
|
|
20
|
-
checkpoint
|
|
20
|
+
checkpoint 成功只证明目标绑定或步骤验收成功,不保证录制可归档。stdin、按键和进程接管现在保存为步骤内的交互意图与处理策略,不再因为存在交互就拒绝固化。敏感命令、超过 1200 字符的命令、超过 24 步或单步超过 12 条验证命令等情况仍会标记录制不完整,状态查询与完成提示会给出原因。普通任务不能事后补存,也不要为补存重跑已完成操作;后续新任务可用 `/remember` 开始录制。
|
|
21
21
|
|
|
22
|
-
临时写盘失败会保留完整的已验收录制,`workflow_set_alias` 可直接重试归档并保存别名(尚无 ID 时省略 `workflowId
|
|
22
|
+
临时写盘失败会保留完整的已验收录制,`workflow_set_alias` 可直接重试归档并保存别名(尚无 ID 时省略 `workflowId`),不会重新执行终端命令。新目标发送前等待尚在完成的归档,避免丢失上一任务记录。最近完成录制的别名重试缓冲仍只在当前进程/会话中保留;执行中的流程另存最小续接记录,恢复时必须重新绑定目标并读取现场。已落盘流程在重启后仍可通过设置页管理。
|
|
23
23
|
|
|
24
24
|
## 服务器身份、路径与步骤验收
|
|
25
25
|
|
|
@@ -43,9 +43,57 @@ checkpoint 成功只证明目标绑定或步骤验收成功,不保证录制可
|
|
|
43
43
|
4. 确认命令结束且满足验收条件,调用 `workflow_checkpoint(action=confirm_step,step,tabId,criteria,evidence)`。插件拒绝缺失新观察、读取其他终端、仍在运行、没有证据或错误目标的确认;别名执行沿用已保存的验收条件。
|
|
44
44
|
5. 只有成功确认后,下一操作才能提交;发送中的命令也会阻止并行提交下一步。别名执行还会校验下一步的已绑定服务器和操作路径。失败或证据不足时停住依赖链,不用延时或 `sent=true` 当作成功。
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
没有独立机器验收策略时,由模型根据实际结果做验收,不要求用户逐步点击确认;需要额外授权或必要决策时仍会询问。未完成全部步骤验收时,即使模型标记 Goal 完成,面板仍提示继续验收,不显示为已完成流程。新录制只有全部步骤具备身份、路径和确认记录才保存。
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
工具门禁检查调用顺序、身份字段和新观察,业务验收默认由模型判断;配置机器验收时使用显式条件,不是通用的 Shell 退出码审计。验证命令和身份探测的用途也依赖模型遵守协议;不能把依赖步骤隐藏在一个长脚本、stdin 或标记为检查的命令中。旧流程可以读取,但缺少的身份和验收条件需现场补充,建议用 `/remember` 重新录制以持久保存。修改服务器、路径、逻辑步骤或验收条件时应重新录制;仅编辑自由文字不会重写结构化步骤。
|
|
49
|
+
|
|
50
|
+
## 条件与交互流程
|
|
51
|
+
|
|
52
|
+
`/remember` 可以记录 Shell 命令、进程接管、stdin、按键和侧栏结构化提问。模板保存目标意图和回答策略,不保存原始输入历史、密码、临时 tab ID 或完整终端输出。普通任务仍不录制,也不能事后从聊天总结生成可执行流程。
|
|
53
|
+
|
|
54
|
+
交互优先按保存的条件规则处理;规则无法确定时,使用**本次执行连接**的辅助模型;辅助模型无法处理时交回主模型当前节点。需要秘密信息或额外授权的节点保存为 `manual`,等待用户处理后继续,不必放弃整个流程。发送回答后重新读取现场,逻辑步骤仍需验收。程序身份无法确认、全屏菜单无法可靠解析或问题已经变化时,交回主模型处理。
|
|
55
|
+
|
|
56
|
+
在 **设置 → AI Tools → 任务流程与偏好 → 交互辅助模型** 为每个连接填写实际支持的模型 ID 和推理强度。留空使用当前主模型进行局部判断;不会切换主会话模型、认证或端点,也不会根据模型名字猜测速度/价格。默认单次超时 15 秒,同一节点同一观察最多两次辅助请求,每次流程最多 32 次;用量计入同一个 Goal 预算。没有进行额外的真实模型烟测;第一次实际返回也会进行结构与有效性检查。侧栏提问只有与保存问题匹配且不含秘密信息时才自动辅助回答;新的必要决策仍显示给用户。
|
|
57
|
+
|
|
58
|
+
模型工具入口:
|
|
59
|
+
|
|
60
|
+
- `workflow_configure(step, policy)`:给当前录制中已经发生的步骤保存策略。不能凭空添加已执行命令;自动验收命令必须是该步骤已运行过的验证命令。
|
|
61
|
+
- `workflow_run(tabId)`:推进已保存别名的条件、命令、交互和机器验收。每次调用工作量有界,后续调用从当前步骤继续。跨服务器时返回下一目标,重新绑定后继续。
|
|
62
|
+
- `workflow_interact(tabId, interactionId?)`:处理当前待验收步骤的一次交互,随后读回结果。
|
|
63
|
+
- `workflow_checkpoint(action=resolve_action,tabId,outcome=sent|not_sent,evidence)`:动作结果未知时,在读回现场后由主模型核对;不会自动重发。
|
|
64
|
+
|
|
65
|
+
`policy.when` 是 AND 条件,真时执行该步骤,假时标记 `skipped` 并继续。顺序互补的条件步骤可以表达 if/else;跳过的步骤不计为成功。条件只能读取当前 `prompt`(最后一条非空行)、`screen`(末尾最多 4000 字符)或 `commandState`,运算为 `equals`、`contains`、`not_contains`;没有任意表达式执行。优先使用精确问题和结构化状态,避免宽泛匹配旧日志。
|
|
66
|
+
|
|
67
|
+
在设置中编辑 **条件与交互策略(高级)**,JSON 对象的键是步骤编号。也可在录制时让模型通过工具配置,例如:
|
|
68
|
+
|
|
69
|
+
```json
|
|
70
|
+
{
|
|
71
|
+
"1": {
|
|
72
|
+
"interactions": [
|
|
73
|
+
{
|
|
74
|
+
"id": "interaction-1",
|
|
75
|
+
"intent": "按用户要求保留现有配置,然后继续安装",
|
|
76
|
+
"mode": "model",
|
|
77
|
+
"observed": true,
|
|
78
|
+
"rules": [
|
|
79
|
+
{
|
|
80
|
+
"when": [{ "source": "prompt", "op": "equals", "value": "Keep existing configuration? [y/n]" }],
|
|
81
|
+
"response": { "kind": "answer", "text": "y" }
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
规则中的回答是明确的处理策略,不从原始输入历史自动复制。菜单按当前标签和高亮处理,禁止重放历史方向键序列。模型只返回一个回答/按键、等待、升级或人工处理决策;没有终端写工具。宿主核对观察指纹、进程、所有权和有效动作后才发送。
|
|
91
|
+
|
|
92
|
+
`policy.verify` 可引用已录制的独立验证命令及 `expect` 条件,实现固定步骤的本地推进。自动验收要求可靠 Shell 完成状态,以及本次验证新增输出满足明确的正向内容条件;仅有 Shell 提示符、旧成功文本或命令回显不通过。没有机器验收规则时返回 `awaiting_verification`,主模型按原 criteria 验收。这里没有提供任意 DAG 编辑器或通用 TUI 解析器。
|
|
93
|
+
|
|
94
|
+
`workflow_status` 返回 `lifecycle`、`automation`、`skippedSteps`、`unobservedBranches` 和 `helperTokens` 等补充信息。未实际走过的交互节点保留未验证标记,不能将一次运行视为所有分支均已验证。
|
|
95
|
+
|
|
96
|
+
流程库写入升级为 v2,继续读取 v1 的串行流程。执行状态保存在同目录 `runs/`,仅保存最小脱敏状态及未知动作标记;恢复后不沿用旧 tab ID 或旧日志。**继续**会恢复当前会话的执行记录,先读取并重新绑定实际服务器、路径和进程,再验收或续接;已发送的步骤不会自动重放。已丢失的旧版录制无法凭空恢复。停止会取消辅助决策和等待;已提交的终端进程可能仍在运行。
|
|
49
97
|
|
|
50
98
|
## sudo 预检与保活
|
|
51
99
|
|
|
@@ -61,7 +109,7 @@ checkpoint 成功只证明目标绑定或步骤验收成功,不保证录制可
|
|
|
61
109
|
|
|
62
110
|
流程库在 Tabby 配置文件同级的 `tabby-agent-memory/task-memory.json`,采用原子替换和文件锁,最多 200 条流程、100 条偏好。旧流程保留,添加别名后即可调用。偏好在设置页管理,不再使用 `/remember` 保存偏好。
|
|
63
111
|
|
|
64
|
-
|
|
112
|
+
只保存脱敏后的任务、步骤、目标终端标题、服务器身份与操作路径、步骤依赖、条件与交互策略、脱敏验收摘要、简短结论和次数;不保存终端原始输出、临时 tab ID、密码或原始 stdin/按键历史。交互不会单独阻止归档;敏感命令、过长或未核对的步骤仍不能作为成功流程归档。续接使用完整的最小执行记录,不将普通任务尾段拼成流程。录制和别名解析本身不调用额外模型;不确定交互的辅助决策使用当前连接并计入预算。
|
|
65
113
|
|
|
66
114
|
调用流程后仍需重新读取当前终端、核对主机、目录、分支与参数,不能直接重放历史工具调用。流程成功记录不等于每条命令的退出码均已验证。自动化测试使用模拟后端、临时目录和假 sudo,不请求模型、不使用真实 sudo 凭据。
|
|
67
115
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabby-ai-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
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
|
@@ -7,6 +7,8 @@ description: Use Tabby AI Tools for terminal work, local and remote server coord
|
|
|
7
7
|
|
|
8
8
|
You are operating the user's running Tabby window through the `tabby_tabs` tools. This skill is bundled with Tabby AI Tools and applies to Codex, local Claude Code, and all supported API providers.
|
|
9
9
|
|
|
10
|
+
Conditional recordings can preserve interactive decisions as rules or helper-model nodes. For alias execution use `workflow_run` / `workflow_interact` after live identity binding; configure observed steps with `workflow_configure`. Consult the conditional-workflow protocol in the operation reference before using these tools.
|
|
11
|
+
|
|
10
12
|
## Feature entry points
|
|
11
13
|
|
|
12
14
|
This is the single model-facing skill for the plugin. Its operation reference retains all feature routes, including features accessed through the user's panel rather than callable tools. The build embeds both documents; Codex receives them on thread creation/resume and API models receive them in each request. Do not require a separate skill install or an Agent on every server.
|
|
@@ -35,6 +35,14 @@ Terminal output is not automatically forwarded into an active turn. Use `read_ta
|
|
|
35
35
|
|
|
36
36
|
When the saved procedure contains sudo, identify each actual terminal/host and ask the user to run `sudo -v` or `sudo ls` there before execution, then wait for confirmation. Do not request or type passwords. Another TTY may not share authentication. The terminal executor gates commands with `sudo -n -v` and refreshes a same-terminal lease every 30 seconds. Failed authentication blocks the command. Cleanup is requested on turn end/stop/switch; if an occupied remote terminal has no shell integration, immediate cleanup may be unavailable (shell exit, auth failure or the 12-hour ceiling stops the refresher). POSIX shell and compatible sudo policy are required; no sudoers changes. Dynamic sudo hidden in scripts may require explicit procedure annotations.
|
|
37
37
|
|
|
38
|
+
### Conditional and interactive recorded workflows
|
|
39
|
+
|
|
40
|
+
stdin, keys, process attachment and structured sidebar questions are recordable. Keep intent and bounded response policies, never raw input history or secrets. Use `workflow_configure(step,policy)` on an actually recorded step: `when` is an AND list of {source:prompt|screen|commandState,op:equals|contains|not_contains,value}; false skips that step. `verify` is {command,expect}, using an already recorded verification command and positive fresh-output evidence. `interactions` contain {id,intent,mode:model|manual,rules:[{when,response}],observed}; answer responses use {kind:answer,text}, key responses {kind:key,key,...modifiers}. Host recording determines observed coverage; never claim unvisited branches were tested. Do not derive universal yes/Enter rules from one response.
|
|
41
|
+
|
|
42
|
+
On aliases, bind the live server/path, then prefer `workflow_run(tabId)`. It interprets fixed conditions/operations and independent checks locally. `workflow_interact(tabId,interactionId?)` handles one pending interaction. Rules run first; otherwise an isolated tool-free helper on the current profile returns a bounded decision. It never changes the main session model or connection, and usage counts toward the same Goal. Configure helper IDs in workflow settings; blank means the current model, not an inferred cheap model. New unsupported interactions return to the main model. Manual/secret nodes require actual human input without storing it.
|
|
43
|
+
|
|
44
|
+
Handle returned waiting/needs_model/awaiting_verification from the pending node; do not replay its command. Rebind on bind_target, and verify the final objective even when runner status is complete. Read again after each answer; a changed/ended process invalidates old decisions. Unknown action results require a fresh read and `workflow_checkpoint(action=resolve_action,tabId,outcome=sent|not_sent,evidence)`, not an automatic retry. Restored runs retain minimal sanitized checkpoints, not live tab IDs or old output. Machine checks require a reliable shell end and fresh independent output; otherwise retain normal model checkpoints. Bounds: 24 steps per call, 32 helper calls per run, at most 2 per node/observation; timeout defaults to 15 seconds. Ordinary tasks are still never recorded retroactively.
|
|
45
|
+
|
|
38
46
|
## Scheduled AI workflows
|
|
39
47
|
|
|
40
48
|
Codex uses namespace `tabby_tasks`; API providers use the same function names without a namespace. Do not send these calls to `tabby_tabs`.
|