tabby-ai-tools 0.9.2 → 0.9.3

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.
Binary file
@@ -1,6 +1,6 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" width="1800" height="2250" viewBox="0 0 1800 2250" role="img" aria-labelledby="title desc">
2
- <title id="title">Tabby AI Tools v0.9.2 interface illustration — conditional interactive workflows, helper models, local login and API connections</title>
3
- <desc id="desc">Codex checks known Windows companions and recovers once at an idle boundary without replay; Claude rechecks its original CLI selector before every invocation; native Linux SSH agents use an independent PID and output-only PTY identity proof; clipboard attachments with clickable thumbnails and larger image previews and native tab progress; custom instructions/private CLI session spaces and Pi configuration: native provider search, offline SDK 1.4.0 catalog, four custom protocols and Save/Discard/Copy drafts. Interface illustration, not a running screenshot. Windows default Codex discovery compares actual CLI versions across PATH and desktop/standalone installations; a stable directory limits selection to its own children. 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.9.2 example with optional Pi SDK runtime, built-in Node 22.19+, manual context compaction and structured retry waiting.</desc>
2
+ <title id="title">Tabby AI Tools interface illustration — unreleased Markdown replies, terminal tools, local login and API connections</title>
3
+ <desc id="desc">Unreleased Markdown output: assistant tables preserve column alignment, code blocks have syntax highlighting and copy buttons and wide content scrolls inside messages. Codex checks known Windows companions and recovers once at an idle boundary without replay; Claude rechecks its original CLI selector before every invocation; native Linux SSH agents use an independent PID and output-only PTY identity proof; clipboard attachments with clickable thumbnails and larger image previews and native tab progress; custom instructions/private CLI session spaces and Pi configuration: native provider search, offline SDK 1.4.0 catalog, four custom protocols and Save/Discard/Copy drafts. Interface illustration, not a running screenshot. Windows default Codex discovery compares actual CLI versions across PATH and desktop/standalone installations; a stable directory limits selection to its own children. Commands and multiline workflow scripts retain up to 10,000 characters; explicit AI decision steps return to scripted execution after judgment. 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; an example health table and a copyable code block 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. v0.9.3 Markdown UI 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">&gt;_</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.9.2 / CLI recovery</text>
18
+ <text x="1544" y="64" font-size="16" font-weight="600" style="fill:#8ae6c2">v0.9.3 / Markdown</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)"/>
@@ -41,35 +41,43 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
41
41
  <rect x="276" y="302" width="248" height="33" rx="5" fill="#202d40"/>
42
42
  <text x="284" y="325" font-size="14" style="fill:#e8eff9">default</text>
43
43
  <text x="390" y="325" font-size="14" style="fill:#a7b8cb">reasoning: high</text>
44
- <g transform="translate(0 -40)">
45
- <rect x="72" y="384" width="88" height="28" rx="6" fill="#344132"/>
46
- <text x="82" y="404" font-size="15" font-weight="600" style="fill:#d4e9a1">Done</text>
47
- <text x="174" y="405" font-size="15" font-weight="400" style="fill:#a7b8cb">Context —</text>
48
- <text x="290" y="405" font-size="15" font-weight="400" style="fill:#8ae6c2">Control —</text>
49
-
50
- <text x="461" y="405" font-size="14" font-weight="400" style="fill:#a7b8cb">Fwd off</text>
51
- <rect x="72" y="419" width="452" height="80" rx="8" fill="#21324b" stroke="#3b4f70"/>
52
- <text x="86" y="442" font-size="14" font-weight="600" style="fill:#b9d3f7">You</text>
53
- <text x="86" y="467" font-size="17" font-weight="400" style="fill:#e8eff9">/remember Check staging services.</text>
54
- <text x="86" y="489" font-size="17" font-weight="400" style="fill:#e8eff9">Verify database and application health.</text>
55
- <rect x="72" y="509" width="452" height="24" rx="5" fill="#1b2839" stroke="#344458"/>
56
- <text x="86" y="526" font-size="14" style="fill:#a7b8cb">› Thinking · Readable summary</text>
57
- <text x="450" y="526" font-size="12" style="fill:#8ae6c2">Ended</text>
58
- <rect x="72" y="537" width="452" height="24" rx="5" fill="#1b2839" stroke="#344458"/>
59
- <text x="86" y="554" font-size="14" style="fill:#a7b8cb">› Tool call · read_tab · staging-app</text>
60
- <text x="450" y="554" font-size="12" style="fill:#8ae6c2">Ended</text>
61
- <text x="86" y="584" font-size="15" style="fill:#e8eff9">Assistant · Checks passed; alias /pm1 saved.</text>
62
- <text x="75" y="606" font-size="15" font-weight="600" style="fill:#a7b8cb">Workflows</text>
63
- <text x="205" y="606" font-size="15" font-weight="600" style="fill:#8ae6c2">Scheduled tasks</text>
64
- <rect x="72" y="619" width="452" height="92" rx="7" fill="#1a2938" stroke="#35534f"/>
65
- <text x="85" y="644" font-size="18" font-weight="600" style="fill:#e5f3eb">Daily service health</text>
66
- <text x="85" y="667" font-size="15" font-weight="400" style="fill:#a7b8cb">Enabled · Daily 09:00 (Asia/Shanghai)</text>
67
- <text x="85" y="692" font-size="15" font-weight="400" style="fill:#8ae6c2">Run now Pause Run history</text>
68
- </g>
69
- <rect x="72" y="683" width="452" height="93" rx="7" fill="#101a27" stroke="#42546d"/>
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: 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>
44
+ <rect x="72" y="344" width="88" height="28" rx="6" fill="#344132"/>
45
+ <text x="82" y="364" font-size="15" font-weight="600" style="fill:#d4e9a1">Done</text>
46
+ <text x="174" y="365" font-size="15" style="fill:#a7b8cb">Context —</text>
47
+ <text x="290" y="365" font-size="15" style="fill:#8ae6c2">Control —</text>
48
+ <text x="461" y="365" font-size="14" style="fill:#a7b8cb">Fwd off</text>
49
+ <rect x="72" y="379" width="452" height="60" rx="8" fill="#21324b" stroke="#3b4f70"/>
50
+ <text x="86" y="402" font-size="14" font-weight="600" style="fill:#b9d3f7">You</text>
51
+ <text x="86" y="426" font-size="16">Check staging services; verify health.</text>
52
+ <rect x="72" y="447" width="452" height="24" rx="5" fill="#1b2839" stroke="#344458"/>
53
+ <text x="86" y="464" font-size="14" style="fill:#a7b8cb">› Thinking · Readable summary</text>
54
+ <text x="450" y="464" font-size="12" style="fill:#8ae6c2">Ended</text>
55
+ <rect x="72" y="479" width="452" height="24" rx="5" fill="#1b2839" stroke="#344458"/>
56
+ <text x="86" y="496" font-size="14" style="fill:#a7b8cb">› Tool call · read_tab · staging-app</text>
57
+ <text x="450" y="496" font-size="12" style="fill:#8ae6c2">Ended</text>
58
+ <rect x="72" y="511" width="452" height="122" rx="8" fill="#172130" stroke="#344458"/>
59
+ <text x="86" y="531" font-size="14" font-weight="600">Assistant</text>
60
+ <text x="482" y="531" font-size="12" style="fill:#a7b8cb">Copy</text>
61
+ <rect x="86" y="540" width="424" height="60" rx="3" fill="#1b2839" stroke="#405067"/>
62
+ <path d="M86 560H510M86 580H510M332 540V600" stroke="#405067"/>
63
+ <text x="96" y="554" font-size="13" font-weight="600">Service</text>
64
+ <text x="344" y="554" font-size="13" font-weight="600">Status</text>
65
+ <text x="96" y="575" font-size="13">PostgreSQL</text>
66
+ <text x="344" y="575" font-size="13" style="fill:#8ae6c2">Ready</text>
67
+ <text x="96" y="595" font-size="13">Application</text>
68
+ <text x="344" y="595" font-size="13" style="fill:#8ae6c2">Ready</text>
69
+ <rect x="86" y="606" width="424" height="20" rx="3" fill="#0d1117"/>
70
+ <text x="96" y="621" font-size="12" class="mono"><tspan style="fill:#79c0ff">echo</tspan><tspan style="fill:#e6edf3"> </tspan><tspan style="fill:#a5d6ff">&quot;healthy&quot;</tspan></text>
71
+ <text x="270" y="621" font-size="11" style="fill:#8b949e">sh · syntax highlight</text>
72
+ <text x="478" y="621" font-size="11" style="fill:#a7b8cb">Copy</text>
73
+ <text x="75" y="654" font-size="15" font-weight="600" style="fill:#a7b8cb">Workflows</text>
74
+ <text x="205" y="654" font-size="15" font-weight="600" style="fill:#8ae6c2">Scheduled tasks</text>
75
+ <rect x="72" y="665" width="452" height="53" rx="7" fill="#1a2938" stroke="#35534f"/>
76
+ <text x="85" y="686" font-size="16" font-weight="600">Daily service health · Enabled</text>
77
+ <text x="85" y="709" font-size="13" style="fill:#8ae6c2">09:00 Asia/Shanghai · Run now · Run history</text>
78
+ <rect x="72" y="728" width="452" height="48" rx="7" fill="#101a27" stroke="#42546d"/>
79
+ <text x="85" y="750" font-size="14" style="fill:#8ca0b8">Summarize the checks…</text>
80
+ <text x="85" y="768" font-size="11" style="fill:#8ca0b8">Example draft · Ctrl / Cmd + Enter to send</text>
73
81
  <text x="73" y="812" font-size="14" font-weight="400" style="fill:#a7b8cb">Tools</text>
74
82
  <rect x="115" y="792" width="159" height="28" rx="6" fill="#253348"/>
75
83
  <text x="125" y="812" font-size="14" font-weight="600" style="fill:#a7b8cb">Terminal tools</text>
@@ -139,7 +147,7 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
139
147
  <rect x="572" y="1068" width="240" height="42" rx="5" fill="#203e36" stroke="#43866f"/>
140
148
  <text x="584" y="1086" font-size="14" font-weight="600">Example Pi connection</text>
141
149
  <text x="584" y="1102" font-size="12" style="fill:#a7b8cb">Google · gemini-2.5-flash</text>
142
- <text x="830" y="1086" font-size="14" style="fill:#a7b8cb">Workflows + helper model</text>
150
+ <text x="830" y="1086" font-size="14" style="fill:#a7b8cb">Scripted workflows + AI</text>
143
151
  <text x="830" y="1104" font-size="14" style="fill:#a7b8cb">Scheduled tasks</text>
144
152
  <text x="72" y="1125" font-size="12" style="fill:#8ca0b8">Connection drafts · Reconnect when idle to apply · Active tasks keep their snapshot</text>
145
153
  <rect x="1122" y="878" width="630" height="254" rx="12" fill="#172130" stroke="#35475c"/>
@@ -201,7 +209,7 @@ text{font-family:"DejaVu Sans",sans-serif;fill:#e8eff9}
201
209
  <text x="72" y="1866" font-size="22" font-weight="650">Incremental output and task logs — example</text>
202
210
  <text x="72" y="1901" font-size="17" fill="#a7b8cb">Cursor pages · Wait for output / completion · Fresh screen before interaction</text>
203
211
  <text x="72" y="1934" font-size="17" fill="#8ae6c2">Settings: Save task terminal logs · Local retention · Paging and literal search</text>
204
- <text x="72" y="1960" font-size="15" fill="#a7b8cb">Ordinary terminal tools work with workflows idle · Active workflow budgets and cancellation stay enforced</text>
212
+ <text x="72" y="1960" font-size="15" fill="#a7b8cb">Workflows: full scripts up to 10,000 characters · Fixed checks run locally · AI decisions at marked steps</text>
205
213
  <rect x="48" y="1994" width="1704" height="158" rx="12" fill="#172130" stroke="#35475c"/>
206
214
  <text x="72" y="2029" font-size="22" font-weight="650">Native CLI recovery and Linux SSH identity — example behavior</text>
207
215
  <text x="72" y="2063" font-size="17" style="fill:#a7b8cb">Codex: known companion checks · One idle-boundary rebuild · No task or tool replay</text>
@@ -12,6 +12,18 @@ v0.4.1 已优先加入 `provider: custom`:可选 `apiFormat: chat-completions
12
12
 
13
13
  ## 本地开发
14
14
 
15
+ ### Markdown 输出
16
+
17
+ `markdown.ts` 使用固定版本的 `markdown-it` 解析正文,禁用原始 HTML。表格的列对齐转为 CSS class,以保留 Angular 15 清理后的排版;图片转为文字链接,外部 URL 只允许 HTTP、HTTPS 和 mailto。原文留在 `ChatEntry.text`,不把渲染 HTML 写入历史或模型上下文。
18
+
19
+ `MarkdownComponent` 以动画帧合并文本变化,按顶层块绑定经过 Angular 清理的 HTML;未变化的块保留 DOM,更新时恢复表格/代码横向位置。HTML 后代不会获得 Angular 的模拟样式属性,因此样式使用 `ViewEncapsulation.None`,每条规则均限定在 `.codex-markdown` 内。复制按钮是清理后由 `Renderer2` 创建的固定控件,不编译模型 HTML、不绕过清理;嵌套代码同样可复制。复制和链接打开复用 Tabby `PlatformService`,组件卸载时取消帧、反馈计时器和语言监听。
20
+
21
+ 语法高亮使用固定版本 `highlight.js/lib/common` 加 PowerShell/Dockerfile 语法,只对显式语言及别名着色;不自动猜测语言。HTML 中仅增加 token span/class,仍经过 Angular 清理。单块超过 20,000 字符或语法不可用时退回安全转义,最多缓存 32 个代码结果以避免流式追加时反复着色完整块。代码区使用固定深色背景和限定在 `.codex-markdown pre` 的配色,避免宿主深浅主题或全局高亮样式影响可读性。
22
+
23
+ Markdown 解析器与高亮器随 webpack 主包打包,仅为构建依赖,不给终端用户增加 Node.js 或安装脚本要求;升级解析器或相关依赖时同步 [第三方声明](markdown-third-party-notices.md)。使用 `node --test test/markdown.test.js test/chat-scroll.test.js test/i18n.test.js` 验证解析、流式片段、安全边界、复制、销毁与语言切换。浏览器检查应覆盖 Angular 实际清理和样式、320/480/800 px、深浅主题、嵌套代码复制、宽表格/代码滚动、历史恢复和暂停/恢复自动跟随。真实桌面和跨平台结果需另行记录。
24
+
25
+ ### 对话与终端输出
26
+
15
27
  对话过程展示由 `chat-activity.ts` 统一转换实时条目与历史条目。思考摘要/文本增量与工具开始、完成事件更新同一记录;原生 `details/summary` 默认折叠,正文按需挂载,`trackBy` 保留展开状态。API、Claude Code 和 Pi 仅转发服务提供的可展示文本,不渲染加密载荷;展示记录与模型原生历史分开保存。终端读取以 OSC 133 的 C→D→A 完成序列提前唤醒,保留 50 ms 渲染缓冲和原等待上限;新命令、会话更换或结束会清除旧完成记录。多行批次不因中间提示符提前返回。
16
28
 
17
29
  2026-11-01 本地 Linux 验证:Node 22.19.0 下完整测试 771 项通过、6 项平台相关跳过;类型检查和生产构建通过。新增夹具覆盖完成前/完成后读屏提前返回、伪提示符与多行批次不提前返回、取消订阅清理、工具结果未到时的过程显示、思考展示上限和历史恢复。当前默认 Node 20 会导致两项 Pi 夹具在运行时版本检查处失败,完整验证使用临时 Node 22.19.0。未调用收费模型,也未验证真实 Tabby 桌面或本次提交的跨平台 CI。
@@ -158,6 +170,8 @@ Stable GitHub Releases trigger `.github/workflows/publish.yml`. After exact-comm
158
170
 
159
171
  ## Conditional workflow runtime
160
172
 
173
+ `terminal-limits.ts` shares the 10,000-character input cap across terminal transport, tool schema, recording, verification policies and uncertain-action receipts. Accepted commands retain their complete text, including multiline scripts; redaction must not silently change executable content. `policy.decision` marks a required main-model judgment before an operation: the runner returns `needs_model` before sending, the main model submits the current logical step, and the runner resumes its verification and successors. Missing machine checks also count as model-assisted automation. Fixed steps should record independent positive checks instead of requiring AI verification on every run.
174
+
161
175
  `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.
162
176
 
163
177
  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
@@ -4,7 +4,7 @@
4
4
 
5
5
  本文是完整配置与使用入口;README 只介绍主要使用场景。
6
6
 
7
- [安装与首次使用](#安装与首次使用) · [基础配置](#基础配置) · [API 连接](#api-密钥与切换模型) · [内网与 sudo](#内网服务器与-sudo-临时认证) · [任务编排](#任务编排与多服务器协作) · [定时任务](#定时-ai-流程) · [全部功能入口](#全部功能入口) · [启动排查](#cli-自动发现与启动排查)
7
+ [安装与首次使用](#安装与首次使用) · [Markdown 输出](#markdown-输出待发布) · [基础配置](#基础配置) · [API 连接](#api-密钥与切换模型) · [内网与 sudo](#内网服务器与-sudo-临时认证) · [任务编排](#任务编排与多服务器协作) · [定时任务](#定时-ai-流程) · [全部功能入口](#全部功能入口) · [启动排查](#cli-自动发现与启动排查)
8
8
 
9
9
  v0.9.1 修复流程库空闲时普通终端工具被误拦截的问题。普通任务无需先录制或运行流程,即可发送命令、stdin、Enter 或接管进程;终端只读、所有权、进程核验及活动流程预算限制仍然生效。见 [发布说明](releases/0.9.1.md)。
10
10
 
@@ -51,6 +51,16 @@ npm run install:tabby -- "<Tabby 插件目录路径>"
51
51
 
52
52
  侧栏顶部的连接(Provider)与模型(Model)并排显示;长名称可悬停查看。状态详情等面板只滚动内容区,标题栏与关闭按钮始终保留在顶部。
53
53
 
54
+ ## Markdown 输出(待发布)
55
+
56
+ 助手回复、恢复的历史回复和定时任务执行记录中的 AI 说明默认渲染 Markdown,包括表格、标题、粗体/斜体/删除线、嵌套列表、引用、链接、行内代码与代码块。沿用 Tabby 的字体和主题;宽表格与代码块各自横向滚动,不撑宽侧栏。聚焦表格或代码区后可用键盘滚动。
57
+
58
+ 消息标题旁的“复制”保留原始 Markdown。代码块右上角的“复制”只复制代码,保留缩进和换行,不含围栏或语言标记;引用、列表中的代码块也可复制。复制后显示成功或失败反馈。
59
+
60
+ 格式随流式输出更新,未闭合的代码块可继续阅读;向上滚动查看历史会暂停自动跟随,点击“回到最新消息”恢复跟随。用户消息、系统提示、思考记录和工具日志保留文本显示。
61
+
62
+ HTTP、HTTPS 和邮件链接经宿主交给外部应用打开;相对文件路径只显示文字,不跳转当前窗口。回复中的原始 HTML 按文字展示;Markdown 图片显示为文字链接,不自动加载远程图片。代码块按围栏中的语言标记进行语法高亮(例如 `js`、`ts`、`python`、`sh`、`json`、`html`、`md`、`ps1`);代码区使用固定深色背景,保证深浅主题下文字可读。未标记、不支持的语言及超过 20,000 字符的代码块保留等宽纯文本,不自动猜测语言。
63
+
54
64
  ## 基础配置
55
65
 
56
66
  打开 **Settings → AI Tools**。配置自动保存;修改连接参数后,在侧栏点击连接图标应用。默认连接和当前正在编辑的连接分别选择,编辑连接不会自动把它设为默认。
@@ -166,7 +176,7 @@ API 工具循环检测始终启用,无需等到轮数上限。近期同一段
166
176
 
167
177
  ## 重复任务与操作习惯
168
178
 
169
- 用 `/remember 任务描述` 明确开始录制,插件执行任务并记录已核对的终端步骤;完成后提示是否设置别名,例如 `task1`。之后直接发送 `/task1` 执行流程。普通任务不再自动归档,也不再按相似描述自动匹配;输入框中的“不检索记忆”复选框已移除。点击 **任务流程** 或输入 `/workflows` 查看当前目录的流程,设置中可以给已有流程添加别名。也可以直接告诉助手“设置别名为 pm1”:助手先用 `workflow_status` 核对本会话最近录制的目标与归档状态,再用 `workflow_set_alias` 保存并回读 `/pm1`。checkpoint 成功仅表示步骤验收;录制不完整或含敏感内容时会说明无法归档的原因。普通任务不能事后保存为流程,不能为了补存而重跑已完成操作。
179
+ 用 `/remember 任务描述` 明确开始录制,插件执行任务并记录已核对的终端步骤;完成后提示是否设置别名,例如 `task1`。之后直接发送 `/task1` 执行流程。普通任务不再自动归档,也不再按相似描述自动匹配;输入框中的“不检索记忆”复选框已移除。点击 **任务流程** 或输入 `/workflows` 查看当前目录的流程,设置中可以给已有流程添加别名。也可以直接告诉助手“设置别名为 pm1”:助手先用 `workflow_status` 核对本会话最近录制的目标与归档状态,再用 `workflow_set_alias` 保存并回读 `/pm1`。checkpoint 成功仅表示步骤验收;录制不完整或含敏感内容时会说明无法归档的原因。 命令及验证脚本按终端上限完整保存最多 10000 字符,不再因超过 1200 字符而丢弃。固定步骤优先配置机器验收;必要判断用 `policy.decision` 在发送该步命令前交给主 AI,处理后继续运行器,见[脚本与 AI 决策](task-workflows.md#脚本执行与-ai-决策穿插)。普通任务不能事后保存为流程,不能为了补存而重跑已完成操作。
170
180
 
171
181
  含 sudo 的流程会提前提示在每个实际执行终端运行 `sudo -v` 或 `sudo ls`,完成认证后继续。其他终端的认证不保证共享。执行时用 `sudo -n -v` 预检,每 30 秒非交互刷新;认证失效时停止该命令并要求重新认证。详情和清理边界见[任务流程说明](task-workflows.md)。各步骤还保存服务器 IP、持久连接/服务器 ID、操作路径、前置依赖和验收证据。跨服务器也逐步执行:读取对应终端的新结果,并通过步骤确认工具验收后,才放行下一步;目标或路径不符时停止。操作偏好继续在设置页管理,`/remember` 专用于开始任务录制。
172
182
 
@@ -0,0 +1,221 @@
1
+ # Markdown renderer third-party notices
2
+
3
+ The following packages are bundled into the plugin main entry for Markdown rendering. These notices accompany the distributed plugin. Update them when the parser, highlighter or these dependencies change.
4
+
5
+ ## markdown-it 15.0.3
6
+
7
+ License: MIT
8
+
9
+ ```text
10
+ Copyright (c) 2014 Vitaly Puzrin, Alex Kocharin.
11
+
12
+ Permission is hereby granted, free of charge, to any person
13
+ obtaining a copy of this software and associated documentation
14
+ files (the "Software"), to deal in the Software without
15
+ restriction, including without limitation the rights to use,
16
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the
18
+ Software is furnished to do so, subject to the following
19
+ conditions:
20
+
21
+ The above copyright notice and this permission notice shall be
22
+ included in all copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
26
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
28
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
29
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
30
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
31
+ OTHER DEALINGS IN THE SOFTWARE.
32
+ ```
33
+
34
+ ## mdurl 2.1.0
35
+
36
+ License: MIT
37
+
38
+ ```text
39
+ Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.
40
+
41
+ Permission is hereby granted, free of charge, to any person
42
+ obtaining a copy of this software and associated documentation
43
+ files (the "Software"), to deal in the Software without
44
+ restriction, including without limitation the rights to use,
45
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
46
+ copies of the Software, and to permit persons to whom the
47
+ Software is furnished to do so, subject to the following
48
+ conditions:
49
+
50
+ The above copyright notice and this permission notice shall be
51
+ included in all copies or substantial portions of the Software.
52
+
53
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
54
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
55
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
56
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
57
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
58
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
59
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
60
+ OTHER DEALINGS IN THE SOFTWARE.
61
+
62
+ --------------------------------------------------------------------------------
63
+
64
+ .parse() is based on Joyent's node.js `url` code:
65
+
66
+ Copyright Joyent, Inc. and other Node contributors. All rights reserved.
67
+ Permission is hereby granted, free of charge, to any person obtaining a copy
68
+ of this software and associated documentation files (the "Software"), to
69
+ deal in the Software without restriction, including without limitation the
70
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
71
+ sell copies of the Software, and to permit persons to whom the Software is
72
+ furnished to do so, subject to the following conditions:
73
+
74
+ The above copyright notice and this permission notice shall be included in
75
+ all copies or substantial portions of the Software.
76
+
77
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
78
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
79
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
80
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
81
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
82
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
83
+ IN THE SOFTWARE.
84
+ ```
85
+
86
+ ## entities 8.1.0
87
+
88
+ License: BSD-2-Clause
89
+
90
+ ```text
91
+ Copyright (c) Felix Böhm
92
+ All rights reserved.
93
+
94
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
95
+
96
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
97
+
98
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
99
+
100
+ THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
101
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
102
+ ```
103
+
104
+ ## linkify-it 6.1.0
105
+
106
+ License: MIT
107
+
108
+ ```text
109
+ Copyright (c) 2015 Vitaly Puzrin.
110
+
111
+ Permission is hereby granted, free of charge, to any person
112
+ obtaining a copy of this software and associated documentation
113
+ files (the "Software"), to deal in the Software without
114
+ restriction, including without limitation the rights to use,
115
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
116
+ copies of the Software, and to permit persons to whom the
117
+ Software is furnished to do so, subject to the following
118
+ conditions:
119
+
120
+ The above copyright notice and this permission notice shall be
121
+ included in all copies or substantial portions of the Software.
122
+
123
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
124
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
125
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
126
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
127
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
128
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
129
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
130
+ OTHER DEALINGS IN THE SOFTWARE.
131
+ ```
132
+
133
+ ## uc.micro 3.0.0
134
+
135
+ License: MIT
136
+
137
+ ```text
138
+ Copyright Mathias Bynens <https://mathiasbynens.be/>
139
+
140
+ Permission is hereby granted, free of charge, to any person obtaining
141
+ a copy of this software and associated documentation files (the
142
+ "Software"), to deal in the Software without restriction, including
143
+ without limitation the rights to use, copy, modify, merge, publish,
144
+ distribute, sublicense, and/or sell copies of the Software, and to
145
+ permit persons to whom the Software is furnished to do so, subject to
146
+ the following conditions:
147
+
148
+ The above copyright notice and this permission notice shall be
149
+ included in all copies or substantial portions of the Software.
150
+
151
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
152
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
153
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
154
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
155
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
156
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
157
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
158
+ ```
159
+
160
+ ## punycode.js 2.3.1
161
+
162
+ License: MIT
163
+
164
+ ```text
165
+ Copyright Mathias Bynens <https://mathiasbynens.be/>
166
+
167
+ Permission is hereby granted, free of charge, to any person obtaining
168
+ a copy of this software and associated documentation files (the
169
+ "Software"), to deal in the Software without restriction, including
170
+ without limitation the rights to use, copy, modify, merge, publish,
171
+ distribute, sublicense, and/or sell copies of the Software, and to
172
+ permit persons to whom the Software is furnished to do so, subject to
173
+ the following conditions:
174
+
175
+ The above copyright notice and this permission notice shall be
176
+ included in all copies or substantial portions of the Software.
177
+
178
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
179
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
180
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
181
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
182
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
183
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
184
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
185
+ ```
186
+
187
+ ## highlight.js 11.12.0
188
+
189
+ License: BSD-3-Clause. Common languages plus PowerShell and Dockerfile are bundled; no CDN requests are made.
190
+
191
+ ```text
192
+ BSD 3-Clause License
193
+
194
+ Copyright (c) 2006, Ivan Sagalaev.
195
+ All rights reserved.
196
+
197
+ Redistribution and use in source and binary forms, with or without
198
+ modification, are permitted provided that the following conditions are met:
199
+
200
+ * Redistributions of source code must retain the above copyright notice, this
201
+ list of conditions and the following disclaimer.
202
+
203
+ * Redistributions in binary form must reproduce the above copyright notice,
204
+ this list of conditions and the following disclaimer in the documentation
205
+ and/or other materials provided with the distribution.
206
+
207
+ * Neither the name of the copyright holder nor the names of its
208
+ contributors may be used to endorse or promote products derived from
209
+ this software without specific prior written permission.
210
+
211
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
212
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
213
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
214
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
215
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
216
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
217
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
218
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
219
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
220
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
221
+ ```
@@ -1,3 +1,17 @@
1
1
  # Unreleased
2
2
 
3
- No unreleased changes.
3
+ ## Markdown replies
4
+
5
+ Assistant replies, restored history and scheduled AI explanations render Markdown tables, headings, lists, quotes, emphasis, links and code. Tables preserve column alignment and scroll horizontally within the sidebar. Code blocks keep indentation and have a copy button, including when nested in a list or quote. Whole-message copy retains the original Markdown.
6
+
7
+ Streaming updates are grouped by animation frame and keep unchanged root blocks mounted. Horizontal scroll positions survive updates, and the existing follow / scrollback / jump-to-latest behavior is retained. Labels are available in all twelve interface languages; code remains left-to-right in RTL interfaces.
8
+
9
+ Raw HTML is escaped and Angular sanitization remains enabled. HTTP, HTTPS and mailto links use the host's external opener; relative file links stay inert. Markdown images become text links without automatic network requests. Labeled code fences now receive syntax highlighting, including JavaScript/TypeScript, Python, Shell, JSON, HTML, Markdown and PowerShell aliases. Code uses a consistent dark surface in both light and dark host themes. Unlabeled, unknown and over-20,000-character blocks remain escaped plain text; no language guessing or remote assets are used. Code copy preserves the exact original code text during streaming.
10
+
11
+ The bilingual README, guide, development notes and SVG/PNG interface illustration are updated. The illustration contains example content and is labeled unreleased. This change does not modify provider protocols, CLI discovery, authentication or task execution. Local validation is recorded in [VALIDATION.md](../../VALIDATION.md); this entry does not indicate an npm release.
12
+
13
+ ## Long workflow recordings and AI decision steps
14
+
15
+ Recordings now preserve complete installation commands and multiline scripts up to the terminal transport’s 10,000-character limit, replacing the recorder’s 1,200-character cutoff. Independent verification commands, policy schemas and unknown-action recovery use the same limit. Sensitive or altered executable content is still rejected rather than saved as a partial command.
16
+
17
+ Fixed steps should use recorded machine checks for local progression. An optional `policy.decision` returns to the main AI before the marked operation, carrying its intent and current observation. After the AI submits that logical step, the runner resumes verification and subsequent scripted steps without replaying completed operations. Automation status includes required AI judgment and missing machine checks. Workflow documentation, bundled guidance and the SVG/PNG illustration are updated. This entry describes local changes, not an npm release; real desktop/account verification remains pending.
@@ -17,7 +17,7 @@
17
17
 
18
18
  用户要求“设置别名为 pm1”时,助手先核对状态中的目标确实是用户所指流程,再调用 `workflow_set_alias(alias="pm1",workflowId=返回的流程ID)`。成功响应必须包含 `saved=true` 和回读的 `workflow.alias="pm1"`。同目录重名、内置命令名、错误流程 ID、其他会话/目录或未完成录制会被拒绝;只读模式不能修改别名。不会修改另一条旧流程来冒充完成。
19
19
 
20
- checkpoint 成功只证明目标绑定或步骤验收成功,不保证录制可归档。stdin、按键和进程接管现在保存为步骤内的交互意图与处理策略,不再因为存在交互就拒绝固化。敏感命令、超过 1200 字符的命令、超过 24 步或单步超过 12 条验证命令等情况仍会标记录制不完整,状态查询与完成提示会给出原因。普通任务不能事后补存,也不要为补存重跑已完成操作;后续新任务可用 `/remember` 开始录制。
20
+ checkpoint 成功只证明目标绑定或步骤验收成功,不保证录制可归档。stdin、按键和进程接管现在保存为步骤内的交互意图与处理策略,不再因为存在交互就拒绝固化。普通命令和独立验证命令均可完整保存最多 10000 字符,与终端单次输入上限一致;多行安装脚本不会因超过 1200 字符而被丢弃。超限输入在发送与写入动作记录前拒绝,避免生成截断的恢复命令。敏感命令、无法原样保存的控制字符、超过 24 步或单步超过 12 条验证命令等情况仍会标记录制不完整,状态查询与完成提示会给出原因。普通任务不能事后补存,也不要为补存重跑已完成操作;后续新任务可用 `/remember` 开始录制。
21
21
 
22
22
  临时写盘失败会保留完整的已验收录制,`workflow_set_alias` 可直接重试归档并保存别名(尚无 ID 时省略 `workflowId`),不会重新执行终端命令。新目标发送前等待尚在完成的归档,避免丢失上一任务记录。最近完成录制的别名重试缓冲仍只在当前进程/会话中保留;执行中的流程另存最小续接记录,恢复时必须重新绑定目标并读取现场。已落盘流程在重启后仍可通过设置页管理。
23
23
 
@@ -47,6 +47,26 @@ checkpoint 成功只证明目标绑定或步骤验收成功,不保证录制可
47
47
 
48
48
  工具门禁检查调用顺序、身份字段和新观察,业务验收默认由模型判断;配置机器验收时使用显式条件,不是通用的 Shell 退出码审计。验证命令和身份探测的用途也依赖模型遵守协议;不能把依赖步骤隐藏在一个长脚本、stdin 或标记为检查的命令中。旧流程可以读取,但缺少的身份和验收条件需现场补充,建议用 `/remember` 重新录制以持久保存。修改服务器、路径、逻辑步骤或验收条件时应重新录制;仅编辑自由文字不会重写结构化步骤。
49
49
 
50
+ ## 脚本执行与 AI 决策穿插
51
+
52
+ 录制时优先把固定操作写成可复用的命令或多行脚本,并实际执行独立验证命令,再用 `workflow_configure(step, policy)` 保存 `verify.command` 与正向 `expect` 条件。执行别名时,`workflow_run` 在本地推进这些命令与验收,明确规则命中时无需辅助推理。脚本仍只表示一个逻辑步骤;跨服务器、依赖验收或必要判断的位置必须拆开。
53
+
54
+ 对需要按现场版本、配置差异或输出判断的步骤,设置 `policy.decision`,例如:
55
+
56
+ ```json
57
+ {
58
+ "decision": "核对当前配置与目标版本,决定保留配置还是执行迁移;仅处理用户授权的升级",
59
+ "verify": {
60
+ "command": "appctl health",
61
+ "expect": [{ "source": "screen", "op": "contains", "value": "HEALTHY" }]
62
+ }
63
+ }
64
+ ```
65
+
66
+ 这里的 `appctl` 和输出仅为示例;验证命令必须在录制时真实执行。到达该步骤且 `when` 条件成立时,运行器在发送操作前返回 `needs_model`、步骤号、决策意图及当前观察。主模型读取现场,作出判断,用 `send_input` 提交当前逻辑步骤,再调用 `workflow_run` 验收并推进后续固定步骤。决策本身不视为验收;不要重跑前序步骤。`decision` 是执行前主模型判断;步骤内交互仍使用规则/辅助模型,秘密信息或额外授权仍需用户实际处理。
67
+
68
+ `automation=automatic` 表示步骤具备机器验收且没有必需的 AI/人工节点;缺少机器验收或含 `decision` 时返回 `model_assisted`,人工节点返回 `manual_required`。这描述已保存的执行方式,不保证每次运行的环境和输出都符合自动化条件。
69
+
50
70
  ## 条件与交互流程
51
71
 
52
72
  `/remember` 可以记录 Shell 命令、进程接管、stdin、按键和侧栏结构化提问。模板保存目标意图和回答策略,不保存原始输入历史、密码、临时 tab ID 或完整终端输出。普通任务仍不录制,也不能事后从聊天总结生成可执行流程。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabby-ai-tools",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
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",
@@ -66,6 +66,8 @@
66
66
  "@types/node": "^18.19.0",
67
67
  "apply-loader": "^2.0.0",
68
68
  "esbuild": "0.28.2",
69
+ "highlight.js": "11.12.0",
70
+ "markdown-it": "15.0.3",
69
71
  "pug": "^2.0.4",
70
72
  "pug-loader": "^2.4.0",
71
73
  "rxjs": "^7.8.2",
@@ -7,7 +7,7 @@ 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.
10
+ Conditional recordings can preserve interactive decisions as rules or helper-model nodes. Prefer scripted fixed steps with recorded independent machine checks. Full commands and multiline scripts up to 10,000 characters are retained. Set `policy.decision` on steps needing main-AI judgment before execution; handle `needs_model` at that step and resume without replaying predecessors. 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
11
 
12
12
  ## Feature entry points
13
13
 
@@ -41,6 +41,10 @@ When the saved procedure contains sudo, identify each actual terminal/host and a
41
41
 
42
42
  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.
43
43
 
44
+ Prefer scripted fixed operations with independent recorded verification and positive `expect` conditions. Commands and verification scripts are retained intact up to the terminal input cap of 10,000 characters, including multiline content; never truncate an executable command or split it just to evade the recorder. Keep server, dependency-verification and necessary-decision boundaries as separate logical steps.
45
+
46
+ Use `workflow_configure(step,policy)` with `decision="specific required judgment"` to require the main AI before that step's operation. The runner returns `needs_model` with the live observation and intent before sending. Observe the target, decide within authorization, submit this logical step using `send_input`, then resume `workflow_run` for verification and successors. Never restart the workflow or resend predecessors to pass a decision. `when=false` skips the step before requesting judgment. Step-internal questions still use interaction rules/helpers. Missing machine verification also yields model-assisted status; manual/secret nodes still require actual user handling.
47
+
44
48
  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.
45
49
 
46
50
  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.