Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(file-manager): theme editor search controls (#1861)
Tony73d8932ade73
diff --git a/apps/desktop/resources/plugins/pi.file-manager/UPSTREAM.md b/apps/desktop/resources/plugins/pi.file-manager/UPSTREAM.mdindex 503189649..a1506bc9d 100644--- a/apps/desktop/resources/plugins/pi.file-manager/UPSTREAM.md+++ b/apps/desktop/resources/plugins/pi.file-manager/UPSTREAM.md@@ -12,11 +12,14 @@ every installation has a file view out of the box (ADR 0241).| Tag | `v0.5.2` || Commit | `d36ebe9f7fb82ee71e87670b0a65403660b18a00` || License | MIT (see `LICENSE`; upstream ships no license file) |-| Marketplace | published to the plugin center at <https://plugins.aiuo.net/console/publish/upload>: `pi.file-manager` 0.5.2, audit passed, artifact `c8416b755e5624ad30110176caa512cd433fdf699ef32c7a2ba2df7f2df2b0f5` (1462096 bytes) |+| Marketplace base | `pi.file-manager` 0.5.2, artifact `c8416b755e5624ad30110176caa512cd433fdf699ef32c7a2ba2df7f2df2b0f5` (1462096 bytes) |+| Bundled version | `0.5.3-pi.1` — PI-Desktop hotfix rebuilt from the tagged source |-The tag is pushed and the release is published, so a marketplace-installed 0.5.1-is now offered 0.5.2 from the marketplace as well as from this bundled copy.-Both paths ship the same bytes.+The official marketplace now offers newer upstream releases. The bundled+hotfix remains based on 0.5.2 so this maintenance PR does not pull unrelated+features into the app. Its prerelease version is strictly above 0.5.2, so the+app repairs an equal-version marketplace install, and below stable 0.5.3 and+all 0.6+ releases, so a newer user-installed copy still wins `sync_builtin`.> The published `.piplug` contains the seven files a plugin installs from> (`manifest.json`, `main.js`, `README.md`, `CHANGELOG.md`, `.gitignore`,@@ -26,9 +29,10 @@ Both paths ship the same bytes.> such a package as four blockers before it can be submitted — pack from a copy> of the tagged tree with `views-src/` removed instead.-The files below are byte-identical to that commit, except for the one manifest-field listed under local changes. Line endings are LF: the upstream commit-stores LF, and this repository's `.gitattributes` keeps it that way.+The files below record the unmodified 0.5.2 base. Local rebuilds and metadata+changes are listed separately with their shipped hashes. Line endings are LF:+the upstream commit stores LF, and this repository's `.gitattributes` keeps it+that way.## Upstream checksums (sha256)@@ -45,13 +49,14 @@ directory carries the built view the plugin publishes, not its React source.## Local changes-Two, so a re-sync stays a copy:+Three local changes, plus an upstream fix proposal, so a re-sync stays deliberate:-- `manifest.json` gains `"license": "MIT"` (after `author`), making the vendored- copy 14191 bytes- (`ba8d60726a0227d7f5530addf885a9849949b86ca75d12786f23ecb82d10fe3e`). Every- shipped plugin carries its license, and the upstream manifest predates that- convention.+- `manifest.json` gains `"license": "MIT"`, advances the local bundled version+ to `0.5.3-pi.1`, and prepends the dark-search hotfix changelog. The shipped+ copy is 14614 bytes+ (`a54f196da16372ece0fe4b8def438bc94df6e0305fc91d03898efc6005c7a6c3`).+ The prerelease suffix is intentional: host version ordering puts it above the+ 0.5.2 base but below stable 0.5.3 and every 0.6+ marketplace release.- `package.json` is **added**, containing `{"type": "commonjs"}`. It is not inthe upstream release and not in the published `.piplug`. `main.js` isCommonJS, and `apps/desktop/package.json` declares `"type": "module"`, so in@@ -62,6 +67,15 @@ Two, so a re-sync stays a copy:ancestor's `"module"`, which is why the marker cannot live one directory up.In a packaged app the file is inert, and deleting it only costs the developerexperience, never a user.+- `views/assets/index.js` is rebuilt from the tagged `views-src` after adding+ theme-token styles for CodeMirror's `.cm-panel.cm-search` text fields and+ buttons. CodeMirror otherwise applies its light defaults to those controls,+ producing white text on white fields when the plugin follows the dark app+ appearance. The local bundle is 1345983 bytes+ (`26b7d0d47992d0c4dbe77cb47f13238a85fac1f027b47391daf20bf1e6471cf1`).+- The same source fix is proposed against upstream `main` in+ [Tioit-Wang/pi-desktop-plugin-file-manager#6](https://github.com/Tioit-Wang/pi-desktop-plugin-file-manager/pull/6),+ where it can ship in a release newer than the marketplace's current 0.9.0.## Re-syncing a newer release@@ -72,13 +86,13 @@ Two, so a re-sync stays a copy:tag's copies, **as LF**: `git archive` applies the checkout's line-endingconversion, so extract the blobs from the working tree (or with`git cat-file blob`) instead of from an archive.-3. Re-apply `"license": "MIT"` to `manifest.json`, and re-create- `package.json` — the marker is local and the tag does not carry it.-4. Update `Origin`, the checksum table and the release section here, and the- commit hash `bundled-plugins.test.mjs` pins, then run+3. Re-apply `"license": "MIT"` and the local hotfix version/changelog to+ `manifest.json`, and re-create `package.json` — those are local additions.+4. Update `Origin`, the base and shipped checksum records, and the commit hash+ `bundled-plugins.test.mjs` pins, then run`node --test test/bundled-plugins.test.mjs` in `apps/desktop`.-5. Leave the version in `manifest.json` untouched: it is the upstream version,- and the marketplace offers an update from it.+5. If the upstream fix has shipped, replace this hotfix with that release and+ return the manifest to the exact upstream stable version.## What 0.5.2 addsdiff --git a/apps/desktop/resources/plugins/pi.file-manager/manifest.json b/apps/desktop/resources/plugins/pi.file-manager/manifest.jsonindex 0eb43790d..983aea46a 100644--- a/apps/desktop/resources/plugins/pi.file-manager/manifest.json+++ b/apps/desktop/resources/plugins/pi.file-manager/manifest.json@@ -2,7 +2,7 @@"schemaVersion": 1,"id": "pi.file-manager","name": "文件管理器",- "version": "0.5.2",+ "version": "0.5.3-pi.1","description": "在右侧工作面板中浏览、查看并编辑当前项目的文件:完整目录树(图标随文件类型变化)、左右分栏(左侧文件列表可整块收起)、代码高亮编辑与保存、Markdown 预览、图片与音视频查看、CSV/JSON 结构化查看、右键新建、重命名/移动、按文件名搜索、项目组里的多文件夹切换(宿主把一个项目注册成多个本地文件夹时,面板左上角的文件夹名就是切换器,按项目记住看的是哪个 folder),以及宿主驱动的打开请求——宿主可以让视图直接打开某个文件,包括项目之外的会话临时 / 附件路径。","i18n": {"en": {@@ -19,7 +19,7 @@"author": "Tioit-Wang","license": "MIT","categories": ["productivity", "community"],- "changelog": "Release 0.5.2:修掉「切了文件夹但列表没跟着换」的问题——宿主报的目录是正斜杠(C:/Users/…),而插件把记忆写盘时用 path.resolve 存成了反斜杠(C:\\Users\\…),两边比较只做原样与忽略大小写的比对,于是记忆匹配不上任何一个 root,包含基点退回主文件夹:头部名字换了(视图用自己那份原样字符串还能匹配),列表与编辑器却还停在主文件夹,重开也记不住。现在路径比较与分隔符无关,已经写坏的旧记忆也一并救回。 Release 0.5.1:修掉「用默认应用打开」与「在文件夹中显示」在项目组里换过文件夹之后可能打开错文件的问题——这两条通道由宿主执行、只接受工作区相对路径,基点切到兄弟文件夹时相对路径会被宿主按主文件夹解析,两个文件夹里有同名文件就会打开另一个;现在基点不是主文件夹时改送绝对路径(宿主对「本项目已注册文件夹根」下的绝对路径有对应的窄放行,见 ADR 0253)。基点仍是主文件夹时行为与 0.5.0 / 0.4 完全一致。 Release 0.5.0:宿主可以把一个项目注册成多个本地文件夹(workspace.get 与首次握手的 roots / projectId)。面板左上角的文件夹名成了切换器:组的文件夹多于一个时点开就是这组 folder 的菜单(标出主文件夹、当前在看的那个打勾),键盘可达且有 aria-haspopup / aria-expanded,Escape 与点到外面都能关;只有一个文件夹(或老宿主不送组信息)时头部与 0.4.0 完全一样,不留任何点了没反应的入口。切换会把树、展开、选中、搜索与已打开的文件整体重来,并照旧先过「未保存改动」确认——取消就什么都不换。看的是哪个 folder 按项目记住(键 p:<projectId>;宿主没给 projectId 时用 r:<主根路径>;值必须命中当前的 roots 才被信任,否则退回主根;最多 20 条、按最近写入淘汰),新项目从主文件夹开始。包含基点始终只有**一个** root,绝不放大成整个组的并集:树 / 读 / 写 / 新建 / 重命名 / 移动 / 搜索 / SQLite 一律相对当前选中的那个 root 解析,..、符号链接与 junction 逃逸、凭据黑名单一条都没放松。宿主打开请求按三种形态落地:项目内相对路径以主根为基准(看到的若不是主根会先切回主根再打开);落在同项目另一个 root 下的绝对路径会先切到包含它的那个 root、再按「相对该 root」打开(祖先目录照旧展开、行照旧高亮);组外的绝对路径照 0.4.0 走外部行为(不进树、不高亮、基点不动)。Release 0.4.0:补上宿主驱动的打开入口——宿主可以要求视图打开某个文件:视图入口 URL 的 ?piViewOpen= 载荷(挂载时同步读一次,不可能与页面抢跑)与 view:open 推送(页面加载完成之后用于实时更新;加载完成前宿主改写 URL 重新加载)两条路径全部接住,同一条请求重复投递只处理一次;项目内路径照旧展开并加载祖先目录,脏缓冲守卫照旧生效(不会静默丢弃未保存的编辑)。宿主自己选定的项目外绝对路径(会话临时目录 / 附件)也能打开与保存:视图带 external 标记,插件对它不做根内包含校验——它本来就在根外——凭据类黑名单照旧全量生效(原始字符串、规范化后与 realpath 之后各查一遍),保存同样原子写并记审计。左侧文件列表可整块收起:宿主请求打开文件时自动收起并持久化,分栏宽度照旧保留、展开即恢复,工具栏新增切换按钮(键盘可达)。Release 0.3.1:补齐「用默认应用打开」与「在文件夹中显示」(走宿主的 fs.openDefault / fs.reveal,为此声明 fs.read,权限与范围同内置 Files 视图;目录对这两个动作无效,只对文件提供)。Release 0.3.0:从「只能编辑文本」扩到「看得见各种文件」——图片查看(png/jpg/gif/webp/avif/bmp/ico/svg,适应窗口与实际大小、棋盘格、像素尺寸与体积)、音视频播放(mp4/mov/webm/mkv 与 mp3/wav/flac/ogg 等,不自动播放、编码不支持时明确提示)、CSV/TSV 表格(默认每页 1000 行可调并记住、点表头升/降/取消排序、行号列与表头双向吸顶、数字右对齐、悬停看全值)、JSON 折叠树,以及 SQLite 只读浏览与 SQL 查询框(readOnly + PRAGMA query_only + 单条只读语句白名单三层只读,字节不进视图,可打开几百 MB 的库)。二进制文件(zip/apk/exe 等)明确提示不支持预览。同时修掉保存链路的一个严重缺陷:保存成功后编辑器文档会被重装回打开时的旧内容(现以 loadToken 区分「从磁盘装载」与「保存后更新 mtime」),并修掉「没有改动也写盘」「连按 Ctrl+S 自己撞出冲突」「保存返回时用户已切走文件」「Ctrl+S 焦点不在编辑器就失效」等问题。Release 0.2.0:修复代码没有语法高亮(去掉 basicSetup 自带的 fallback 高亮器)、语言解析改为显式注册表、新增右键菜单与 Markdown 预览/编辑切换。Release 0.1.0:首个版本,右侧工作面板里的完整目录树 + 代码高亮编辑与保存 + 新建/重命名/移动 + 按文件名搜索。",+ "changelog": "Release 0.5.3-pi.1:修复暗色外观下编辑器查找 / 替换面板的输入框与按钮沿用 CodeMirror 浅色默认值,造成白底白字、内容不可见的问题;这些控件现在统一使用插件的主题前景色与表面色,亮色外观保持可读。此 PI-Desktop 内置补丁版本只覆盖 0.5.2 及更旧副本,不会回退用户已从 marketplace 安装的 0.6.0 或更高版本。 Release 0.5.2:修掉「切了文件夹但列表没跟着换」的问题——宿主报的目录是正斜杠(C:/Users/…),而插件把记忆写盘时用 path.resolve 存成了反斜杠(C:\\Users\\…),两边比较只做原样与忽略大小写的比对,于是记忆匹配不上任何一个 root,包含基点退回主文件夹:头部名字换了(视图用自己那份原样字符串还能匹配),列表与编辑器却还停在主文件夹,重开也记不住。现在路径比较与分隔符无关,已经写坏的旧记忆也一并救回。 Release 0.5.1:修掉「用默认应用打开」与「在文件夹中显示」在项目组里换过文件夹之后可能打开错文件的问题——这两条通道由宿主执行、只接受工作区相对路径,基点切到兄弟文件夹时相对路径会被宿主按主文件夹解析,两个文件夹里有同名文件就会打开另一个;现在基点不是主文件夹时改送绝对路径(宿主对「本项目已注册文件夹根」下的绝对路径有对应的窄放行,见 ADR 0253)。基点仍是主文件夹时行为与 0.5.0 / 0.4 完全一致。 Release 0.5.0:宿主可以把一个项目注册成多个本地文件夹(workspace.get 与首次握手的 roots / projectId)。面板左上角的文件夹名成了切换器:组的文件夹多于一个时点开就是这组 folder 的菜单(标出主文件夹、当前在看的那个打勾),键盘可达且有 aria-haspopup / aria-expanded,Escape 与点到外面都能关;只有一个文件夹(或老宿主不送组信息)时头部与 0.4.0 完全一样,不留任何点了没反应的入口。切换会把树、展开、选中、搜索与已打开的文件整体重来,并照旧先过「未保存改动」确认——取消就什么都不换。看的是哪个 folder 按项目记住(键 p:<projectId>;宿主没给 projectId 时用 r:<主根路径>;值必须命中当前的 roots 才被信任,否则退回主根;最多 20 条、按最近写入淘汰),新项目从主文件夹开始。包含基点始终只有**一个** root,绝不放大成整个组的并集:树 / 读 / 写 / 新建 / 重命名 / 移动 / 搜索 / SQLite 一律相对当前选中的那个 root 解析,..、符号链接与 junction 逃逸、凭据黑名单一条都没放松。宿主打开请求按三种形态落地:项目内相对路径以主根为基准(看到的若不是主根会先切回主根再打开);落在同项目另一个 root 下的绝对路径会先切到包含它的那个 root、再按「相对该 root」打开(祖先目录照旧展开、行照旧高亮);组外的绝对路径照 0.4.0 走外部行为(不进树、不高亮、基点不动)。Release 0.4.0:补上宿主驱动的打开入口——宿主可以要求视图打开某个文件:视图入口 URL 的 ?piViewOpen= 载荷(挂载时同步读一次,不可能与页面抢跑)与 view:open 推送(页面加载完成之后用于实时更新;加载完成前宿主改写 URL 重新加载)两条路径全部接住,同一条请求重复投递只处理一次;项目内路径照旧展开并加载祖先目录,脏缓冲守卫照旧生效(不会静默丢弃未保存的编辑)。宿主自己选定的项目外绝对路径(会话临时目录 / 附件)也能打开与保存:视图带 external 标记,插件对它不做根内包含校验——它本来就在根外——凭据类路径黑名单照旧全量生效(原始字符串、规范化后与 realpath 之后各查一遍),保存同样原子写并记审计。左侧文件列表可整块收起:宿主请求打开文件时自动收起并持久化,分栏宽度照旧保留、展开即恢复,工具栏新增切换按钮(键盘可达)。Release 0.3.1:补齐「用默认应用打开」与「在文件夹中显示」(走宿主的 fs.openDefault / fs.reveal,为此声明 fs.read,权限与范围同内置 Files 视图;目录对这两个动作无效,只对文件提供)。Release 0.3.0:从「只能编辑文本」扩到「看得见各种文件」——图片查看(png/jpg/gif/webp/avif/bmp/ico/svg,适应窗口与实际大小、棋盘格、像素尺寸与体积)、音视频播放(mp4/mov/webm/mkv 与 mp3/wav/flac/ogg 等,不自动播放、编码不支持时明确提示)、CSV/TSV 表格(默认每页 1000 行可调并记住、点表头升/降/取消排序、行号列与表头双向吸顶、数字右对齐、悬停看全值)、JSON 折叠树,以及 SQLite 只读浏览与 SQL 查询框(readOnly + PRAGMA query_only + 单条只读语句白名单三层只读,字节不进视图,可打开几百 MB 的库)。二进制文件(zip/apk/exe 等)明确提示不支持预览。同时修掉保存链路的一个严重缺陷:保存成功后编辑器文档会被重装回打开时的旧内容(现以 loadToken 区分「从磁盘装载」与「保存后更新 mtime」),并修掉「没有改动也写盘」「连按 Ctrl+S 自己撞出冲突」「保存返回时用户已切走文件」「Ctrl+S 焦点不在编辑器就失效」等问题。Release 0.2.0:修复代码没有语法高亮(去掉 basicSetup 自带的 fallback 高亮器)、语言解析改为显式注册表、新增右键菜单与 Markdown 预览/编辑切换。Release 0.1.0:首个版本,右侧工作面板里的完整目录树 + 代码高亮编辑与保存 + 新建/重命名/移动 + 按文件名搜索。","safetyNotes": "fs.read 仅用于「用默认应用打开」与「在文件夹中显示」这两个由宿主代为执行的动作(权限与范围同内置的 Files 视图:root workspace、scope **);插件自身的读写走自己进程内的 Node fs——宿主的权限网关不介入这些调用,manifest 也无法申报「整树写入」。路径的访问范围由插件自身限定在项目**当前选中的那个已注册文件夹根**(folder root)内:解析后的路径必须仍在根内(拒绝符号链接与 junction 逃逸)、拒绝凭据类路径(.env*、.ssh/、*.pem、.git/**)。项目注册了多个文件夹时,包含基点仍然是**其中一个** root、绝不放大成整个组的并集;宿主请求打开的绝对路径若落在同项目的另一个 root 下,插件会先把基点切到包含它的那个 root,再按「相对该 root」解析,根内包含校验一条不减。另有一条刻意的例外,它不在上面这条包含保证之内:宿主可以要求本视图打开由宿主自己选定的项目外文件(会话临时目录 / 附件的绝对路径),插件对这些路径走原生 Node fs 读写、不做根内包含校验;凭据类路径黑名单在两种模式下都照旧全量生效(原始字符串、规范化后与 realpath 之后各查一遍),这类路径同样原子写并记审计。保存采用原子写(临时文件 + 重命名)、覆盖在编辑器外被改动过的文件前会先询问。图片与音视频按各自上限(8 MiB / 24 MiB)读取后以 base64 data URI 交给视图;数据库一律以只读方式打开(readOnly + PRAGMA query_only),SQL 框只接受单条只读语句,只能浏览、绝无修改;zip、exe 这类二进制只报「不支持预览」,不做任何解码。无网络访问;插件数据目录只保存设置与写入审计日志。","main": "main.js","contributes": {diff --git a/apps/desktop/resources/plugins/pi.file-manager/views/assets/index.js b/apps/desktop/resources/plugins/pi.file-manager/views/assets/index.jsindex a4d8f5cd0..58a36cb65 100644--- a/apps/desktop/resources/plugins/pi.file-manager/views/assets/index.js+++ b/apps/desktop/resources/plugins/pi.file-manager/views/assets/index.js@@ -1,4 +1,4 @@-(function(){"use strict";var fm=document.createElement("style");fm.textContent=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.right-1{right:.25rem}.z-30{z-index:30}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-\\[11px\\]{height:11px}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.min-h-\\[24px\\]{min-height:24px}.min-h-\\[38px\\]{min-height:38px}.min-h-\\[42px\\]{min-height:42px}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-\\[11px\\]{width:11px}.w-\\[15px\\]{width:15px}.w-\\[3px\\]{width:3px}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\\[178px\\]{min-width:178px}.max-w-\\[18rem\\]{max-width:18rem}.max-w-\\[32ch\\]{max-width:32ch}.max-w-\\[34ch\\]{max-width:34ch}.max-w-\\[380px\\]{max-width:380px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-\\[1\\.5px\\]{border-width:1.5px}.border-b{border-bottom-width:1px}.bg-transparent{background-color:transparent}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\\[3px\\]{padding-top:3px;padding-bottom:3px}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.pb-1{padding-bottom:.25rem}.pb-1\\.5{padding-bottom:.375rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-6{padding-left:1.5rem}.pr-2{padding-right:.5rem}.pr-6{padding-right:1.5rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:var(--mono)}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.underline-offset-2{text-underline-offset:2px}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root{color-scheme:dark;--bg: #181818;--surface: #181818;--surface-raised: #1f1f1f;--surface-hover: color-mix(in oklab, #ffffff 6%, transparent);--surface-active: color-mix(in oklab, #ffffff 10%, transparent);--fg: #ffffff;--secondary: color-mix(in oklab, #ffffff 70%, transparent);--muted: color-mix(in oklab, #ffffff 52%, transparent);--faint: color-mix(in oklab, #ffffff 38%, transparent);--border: color-mix(in oklab, #ffffff 5%, transparent);--border-strong: color-mix(in oklab, #ffffff 14%, transparent);--accent: #ffffff;--danger: #ff6764;--icon-folder: color-mix(in oklab, #ffffff 46%, transparent);--icon-doc: color-mix(in oklab, #ffffff 58%, transparent);--json-key: #e06c75;--json-string: #98c379;--json-number: #d19a66;--json-literal: #c678dd;--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}:root[data-base=light]{color-scheme:light;--bg: #fafafa;--surface: #ffffff;--surface-raised: #f3f3f3;--surface-hover: color-mix(in oklab, #1a1c1f 5%, transparent);--surface-active: color-mix(in oklab, #1a1c1f 8%, transparent);--fg: #1a1c1f;--secondary: color-mix(in oklab, #1a1c1f 74%, transparent);--muted: #5d5d5d;--faint: #9a9a9a;--border: color-mix(in oklab, #1a1c1f 5%, transparent);--border-strong: color-mix(in oklab, #1a1c1f 12%, transparent);--accent: #1a1c1f;--danger: #e02e2a;--icon-folder: #c99a3c;--icon-doc: #6b7280;--json-key: #e45649;--json-string: #50a14f;--json-number: #986801;--json-literal: #a626a4}*,*:before,*:after{box-sizing:border-box}html,body{height:100%;margin:0;padding:0}body{padding-top:var(--pi-plugin-titlebar-height, 0px);overflow:hidden;background:var(--bg);color:var(--fg);font:12px/1.45 -apple-system,BlinkMacSystemFont,Segoe UI,system-ui,PingFang SC,Microsoft YaHei,sans-serif;-webkit-font-smoothing:antialiased}#root{height:100%;min-height:0}button,input{font:inherit;color:inherit}button:focus-visible,input:focus-visible{outline:2px solid color-mix(in oklab,var(--accent) 58%,transparent);outline-offset:-2px}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:8px;background-clip:content-box;background-color:color-mix(in oklab,var(--fg) 18%,transparent)}::-webkit-scrollbar-thumb:hover{background-color:color-mix(in oklab,var(--fg) 30%,transparent)}::-webkit-scrollbar-corner,::-webkit-scrollbar-track{background:transparent}.cm-editor{height:100%;background:transparent}.cm-editor .cm-scroller{font-family:var(--mono);font-size:12px;line-height:1.6}.cm-editor.cm-focused{outline:none}.cm-editor .cm-gutters{border-right:1px solid var(--border);background:transparent;color:var(--faint)}.cm-editor .cm-activeLine,.cm-editor .cm-activeLineGutter{background:color-mix(in oklab,var(--fg) 4%,transparent)}.cm-editor .cm-content ::-moz-selection{background:color-mix(in oklab,var(--accent) 22%,transparent)!important}.cm-editor .cm-selectionBackground,.cm-editor .cm-content ::selection{background:color-mix(in oklab,var(--accent) 22%,transparent)!important}.cm-editor .cm-cursor,.cm-editor .cm-dropCursor{border-left-color:var(--fg)}.cm-editor .cm-panels{border-bottom:1px solid var(--border);background:var(--surface-raised);color:var(--fg)}.cm-editor .cm-panels.cm-panels-bottom{border-top:1px solid var(--border);border-bottom:none}.cm-editor .cm-searchMatch{background:color-mix(in oklab,#f5c542 40%,transparent)}.cm-editor .cm-searchMatch.cm-searchMatch-selected{background:color-mix(in oklab,#f5c542 70%,transparent)}.cm-editor .cm-tooltip{border:1px solid var(--border-strong);background:var(--surface-raised);color:var(--fg)}.cm-editor .cm-foldPlaceholder{border:1px solid var(--border);background:var(--surface-hover);color:var(--secondary)}.tree-row{display:flex;width:100%;min-height:24px;align-items:center;gap:6px;border:0;border-radius:6px;padding:3px 8px 3px 6px;background:transparent;color:var(--secondary);cursor:pointer;font-size:12px;line-height:1.45;text-align:left;transition:background .15s cubic-bezier(.22,1,.36,1),color .15s cubic-bezier(.22,1,.36,1)}.tree-row:hover:not([data-selected=true]){background:var(--surface-hover);color:var(--fg)}.tree-row[data-selected=true]{background:color-mix(in oklab,var(--accent) 18%,transparent);box-shadow:inset 2px 0 0 var(--accent);color:var(--fg);font-weight:500}.tree-row[data-selected=true]:hover{background:color-mix(in oklab,var(--accent) 24%,transparent)}.tree-row:disabled{cursor:default;opacity:.5}.tree-row:disabled:hover{background:transparent}.tree-row[data-ignored=true]{color:var(--faint);font-style:italic}.tree-row[data-ignored=true] .tree-icon,.tree-row[data-ignored=true] svg{opacity:.65}.tree-row .tree-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-row .tree-caret{display:inline-flex;width:12px;flex:0 0 auto;align-items:center;justify-content:center;color:var(--faint);transition:transform .15s ease-out}.tree-row .tree-size,.tree-row .tree-mark{flex:0 0 auto;color:var(--faint);font-size:10px;font-variant-numeric:tabular-nums}.tree-row[data-selected=true] .tree-caret,.tree-row[data-selected=true] .tree-size,.tree-row[data-selected=true] .tree-mark{color:color-mix(in oklab,var(--fg) 70%,transparent)}.tree-row:not([data-selected=true]) svg{opacity:.92}.md-scroll,.dt-view,.dt-empty,.json-scroll,.img-stage,.media-stage{position:absolute;inset:0}.md-scroll{overflow:auto;padding:4px 20px 64px}.md-body{max-width:78ch;color:var(--fg);font-size:13px;line-height:1.7;word-wrap:break-word}.md-body>*:first-child{margin-top:0}.md-h1,.md-h2,.md-h3,.md-h4,.md-h5,.md-h6{margin:1.5em 0 .6em;font-weight:600;line-height:1.3}.md-h1{padding-bottom:.3em;border-bottom:1px solid var(--border);font-size:1.7em}.md-h2{padding-bottom:.25em;border-bottom:1px solid var(--border);font-size:1.4em}.md-h3{font-size:1.2em}.md-h4{font-size:1.06em}.md-h5{font-size:1em;color:var(--secondary)}.md-h6{font-size:.94em;color:var(--muted)}.md-p{margin:.75em 0;white-space:pre-wrap}.md-inline-code{border-radius:4px;padding:.12em .36em;background:color-mix(in oklab,var(--fg) 9%,transparent);font-family:var(--mono);font-size:.88em}.md-code{margin:.9em 0;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:10px 12px;background:color-mix(in oklab,var(--fg) 4%,transparent);font-family:var(--mono);font-size:.88em;line-height:1.55}.md-code code{white-space:pre}.md-quote{margin:.9em 0;border-left:3px solid color-mix(in oklab,var(--fg) 18%,transparent);padding:.1em 0 .1em 1em;color:var(--secondary)}.md-hr{height:1px;margin:1.6em 0;border:0;background:var(--border-strong)}.md-list{margin:.7em 0;padding-left:1.5em}.md-li{margin:.25em 0}.md-li-task{list-style:none;margin-left:-1.35em}.md-task{margin-right:.5em;vertical-align:middle;accent-color:var(--accent)}.md-table-wrap{margin:.9em 0;overflow-x:auto}.md-table{border-collapse:collapse;font-size:.95em}.md-table th,.md-table td{border:1px solid var(--border-strong);padding:5px 10px}.md-table th{background:color-mix(in oklab,var(--fg) 5%,transparent);font-weight:600}.md-link{color:#4aa3d9;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.md-link-unsafe{color:var(--danger);text-decoration-style:dotted}.md-image{display:inline-block;border-radius:6px;padding:.1em .45em;background:color-mix(in oklab,var(--fg) 7%,transparent);color:var(--muted);font-size:.92em}.img-stage{display:flex;flex-direction:column;background:var(--bg)}.img-canvas{display:flex;min-height:0;flex:1;overflow:auto;padding:16px;background-color:var(--surface);background-image:linear-gradient(45deg,color-mix(in oklab,var(--fg) 5%,transparent) 25%,transparent 25%,transparent 75%,color-mix(in oklab,var(--fg) 5%,transparent) 75%),linear-gradient(45deg,color-mix(in oklab,var(--fg) 5%,transparent) 25%,transparent 25%,transparent 75%,color-mix(in oklab,var(--fg) 5%,transparent) 75%);background-size:16px 16px;background-position:0 0,8px 8px}.img-canvas img{max-width:100%;max-height:100%;margin:auto;-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;user-select:none}.img-stage[data-actual=true] .img-canvas img{max-width:none;max-height:none}.img-bar{display:flex;flex:0 0 auto;align-items:center;gap:10px;border-top:1px solid var(--border);padding:6px 12px;color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums}.img-bar .img-dims{color:var(--secondary)}.img-zoom{margin-left:auto;border:0;border-radius:999px;padding:3px 10px;background:var(--surface-hover);color:var(--secondary);cursor:pointer;font-size:10.5px;transition:background .15s ease-out,color .15s ease-out}.img-zoom:hover{background:var(--surface-active);color:var(--fg)}.media-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;background:var(--bg)}.media-box{display:flex;width:100%;justify-content:center}.media-box video{max-width:100%;max-height:62vh;border-radius:8px;background:#000}.media-box audio{width:100%;max-width:520px}.media-meta{display:flex;max-width:100%;align-items:center;gap:10px;color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums}.media-meta .media-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono)}.media-error{border-radius:8px;padding:6px 12px;background:color-mix(in oklab,var(--danger) 14%,transparent);color:var(--danger);font-size:11.5px}.dt-view{display:flex;flex-direction:column;background:var(--bg)}.dt-scroll{min-height:0;flex:1;overflow:auto}.dt-table{min-width:100%;border-collapse:separate;border-spacing:0;font-size:11.5px;font-variant-numeric:tabular-nums;white-space:nowrap}.dt-table th,.dt-table td{border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:4px 10px;text-align:left;max-width:36ch;overflow:hidden;text-overflow:ellipsis}.dt-table td{color:var(--secondary)}.dt-table td[data-numeric=true]{text-align:right}.dt-table tbody tr:nth-child(2n) td{background:color-mix(in oklab,var(--fg) 2.5%,var(--bg))}.dt-table tbody tr:hover td{background:color-mix(in oklab,var(--fg) 7%,var(--bg));color:var(--fg)}.dt-table thead th{position:sticky;top:0;z-index:2;background:var(--surface-raised);color:var(--fg);font-weight:600}.dt-table thead th.dt-sortable{padding:0}.dt-sort{display:flex;width:100%;align-items:center;gap:4px;border:0;padding:4px 10px;background:transparent;color:inherit;cursor:pointer;font:inherit;font-weight:600;text-align:left;transition:background .15s ease-out}.dt-sort:hover{background:color-mix(in oklab,var(--fg) 8%,var(--surface-raised))}.dt-sort .dt-head{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dt-sort .dt-arrow{flex:0 0 auto;width:1ch;color:var(--faint);font-size:9px}.dt-sort[data-active=true],.dt-sort[data-active=true] .dt-arrow{color:var(--fg)}.dt-table .dt-index{position:sticky;left:0;z-index:1;width:1%;min-width:5ch;padding-right:8px;background:var(--bg);color:var(--faint);font-size:10px;text-align:right}.dt-table thead .dt-index{z-index:3;background:var(--surface-raised)}.dt-table tbody tr:nth-child(2n) .dt-index{background:color-mix(in oklab,var(--fg) 2.5%,var(--bg))}.dt-table tbody tr:hover .dt-index{background:color-mix(in oklab,var(--fg) 7%,var(--bg));color:var(--secondary)}.dt-bar{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:4px 12px;border-top:1px solid var(--border);padding:5px 10px;background:var(--surface);color:var(--muted);font-size:10.5px}.dt-bar .dt-range{color:var(--secondary);font-variant-numeric:tabular-nums}.dt-bar .dt-warn{color:var(--faint)}.dt-pager{display:flex;align-items:center;gap:1px;margin-left:auto}.dt-pager button{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;border:0;border-radius:5px;background:transparent;color:var(--secondary);cursor:pointer;font-size:12px;line-height:1;transition:background .15s ease-out,color .15s ease-out}.dt-pager button:hover:not(:disabled){background:var(--surface-hover);color:var(--fg)}.dt-pager button:disabled{cursor:default;opacity:.35}.dt-page{min-width:8ch;text-align:center;color:var(--secondary);font-variant-numeric:tabular-nums}.dt-size{display:flex;align-items:center;gap:5px;white-space:nowrap}.dt-size select{border:1px solid var(--border-strong);border-radius:6px;padding:1px 4px;background:var(--bg);color:var(--fg);font:inherit;cursor:pointer}.dt-empty{display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:12px}.json-scroll{overflow:auto;padding:6px 0 32px;background:var(--bg)}.json-body{min-width:-moz-min-content;min-width:min-content;font-family:var(--mono);font-size:11.5px;line-height:1.65}.json-row{display:flex;width:100%;align-items:baseline;gap:6px;border:0;padding:1px 12px;background:transparent;color:var(--secondary);text-align:left}button.json-row{cursor:pointer}button.json-row:hover{background:var(--surface-hover)}.json-caret{flex:0 0 auto;width:10px;color:var(--faint);font-size:9px}.json-key{flex:0 0 auto;color:var(--json-key)}.json-key:after{content:":";margin-left:1px;color:var(--faint)}.json-string{color:var(--json-string);white-space:pre-wrap;word-break:break-all}.json-number{color:var(--json-number)}.json-boolean{color:var(--json-literal)}.json-null{color:var(--muted)}.json-brace,.json-count{flex:0 0 auto;color:var(--faint)}.json-count{font-size:10.5px}.json-more{display:block;border:0;padding:1px 12px;background:transparent;color:#4aa3d9;cursor:pointer;font-family:var(--mono);font-size:11px}.json-more:hover{text-decoration:underline}.json-error{padding:12px 16px;color:var(--danger);font-family:var(--mono);font-size:11.5px}.sq-view{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--bg)}.sq-view .dt-view{position:static;min-height:0;flex:1}.sq-view .dt-scroll{min-height:0}.sq-info{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:4px 10px;border-bottom:1px solid var(--border);padding:5px 10px;background:var(--surface);color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums}.sq-info .sq-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg);font-family:var(--mono);font-size:11px}.sq-badge{border:1px solid var(--border-strong);border-radius:999px;padding:0 6px;color:var(--secondary)}.sq-warn{flex:0 0 auto;border-bottom:1px solid var(--border);padding:5px 10px;background:color-mix(in oklab,#f5c542 14%,transparent);color:color-mix(in oklab,#f5c542 62%,var(--fg));font-size:10.5px}.sq-notice{flex:0 0 auto;padding:10px 12px;color:var(--muted);font-size:11.5px}.sq-danger{color:var(--danger)}.sq-tabs{display:flex;flex:0 0 auto;gap:2px;border-bottom:1px solid var(--border);padding:4px 8px 0;background:var(--surface)}.sq-tab{border:0;border-bottom:2px solid transparent;padding:4px 10px;background:transparent;color:var(--muted);cursor:pointer;font-size:11.5px}.sq-tab:hover{color:var(--fg)}.sq-tab[data-active=true]{border-bottom-color:var(--accent);color:var(--fg);font-weight:600}.sq-bar{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:6px 8px;border-bottom:1px solid var(--border);padding:6px 8px;background:var(--surface);color:var(--muted);font-size:10.5px}.sq-select,.sq-size select{border:1px solid var(--border-strong);border-radius:6px;padding:1px 4px;background:var(--bg);color:var(--fg);font:inherit;max-width:100%}.sq-select{min-width:0;flex:1 1 110px}.sq-size{display:flex;align-items:center;gap:4px;margin-left:auto;white-space:nowrap}.sq-toggle,.sq-run{border:1px solid var(--border-strong);border-radius:6px;padding:2px 8px;background:transparent;color:var(--secondary);cursor:pointer;font-size:10.5px;transition:background .15s ease-out,color .15s ease-out}.sq-toggle:hover:not(:disabled){background:var(--surface-hover);color:var(--fg)}.sq-toggle[data-active=true]{background:var(--surface-active);color:var(--fg)}.sq-toggle:disabled,.sq-run:disabled{cursor:default;opacity:.4}.sq-run{border-color:transparent;background:var(--accent);color:var(--bg);font-weight:600}.sq-hint{color:var(--faint)}.sq-editor{flex:0 0 auto;height:108px;min-height:64px;border:0;border-bottom:1px solid var(--border);padding:8px 10px;background:var(--bg);color:var(--fg);font-family:var(--mono);font-size:11.5px;line-height:1.6;outline:none;resize:vertical}.sq-result{display:flex;min-height:0;flex:1;flex-direction:column}.sq-result-meta{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:10px;padding:5px 10px;color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums}.sq-structure{min-height:0;flex:1;overflow:auto;padding:10px 12px 24px}.sq-struct-title{margin:14px 0 4px;color:var(--muted);font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.sq-struct-title:first-child{margin-top:0}.sq-struct-list{margin:0;padding:0;list-style:none}.sq-struct-list li{display:flex;align-items:baseline;gap:8px;padding:2px 0;color:var(--secondary);font-size:11.5px}.sq-col-name{color:var(--fg);font-family:var(--mono)}.sq-col-type{color:var(--muted);font-size:10.5px}.sq-flag{border-radius:4px;padding:0 4px;background:var(--surface-hover);color:var(--faint);font-size:9.5px}.sq-sql{margin:0;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:8px 10px;background:color-mix(in oklab,var(--fg) 4%,transparent);color:var(--secondary);font-family:var(--mono);font-size:11px;line-height:1.6;white-space:pre-wrap}.dt-null{color:var(--faint);font-style:italic}.dt-view[data-busy=true] .dt-scroll{opacity:.5}@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}.hover\\:bg-\\[var\\(--surface-hover\\)\\]:hover{background-color:var(--surface-hover)}.hover\\:text-\\[var\\(--fg\\)\\]:hover{color:var(--fg)}.hover\\:opacity-85:hover{opacity:.85}.focus-visible\\:bg-\\[var\\(--surface-hover\\)\\]:focus-visible{background-color:var(--surface-hover)}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}+(function(){"use strict";var fm=document.createElement("style");fm.textContent=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.right-1{right:.25rem}.z-30{z-index:30}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.ml-auto{margin-left:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-\\[11px\\]{height:11px}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.min-h-\\[24px\\]{min-height:24px}.min-h-\\[38px\\]{min-height:38px}.min-h-\\[42px\\]{min-height:42px}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-\\[11px\\]{width:11px}.w-\\[15px\\]{width:15px}.w-\\[3px\\]{width:3px}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-\\[178px\\]{min-width:178px}.max-w-\\[18rem\\]{max-width:18rem}.max-w-\\[32ch\\]{max-width:32ch}.max-w-\\[34ch\\]{max-width:34ch}.max-w-\\[380px\\]{max-width:380px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-\\[1\\.5px\\]{border-width:1.5px}.border-b{border-bottom-width:1px}.bg-transparent{background-color:transparent}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\\[3px\\]{padding-top:3px;padding-bottom:3px}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.pb-1{padding-bottom:.25rem}.pb-1\\.5{padding-bottom:.375rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-6{padding-left:1.5rem}.pr-2{padding-right:.5rem}.pr-6{padding-right:1.5rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:var(--mono)}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-relaxed{line-height:1.625}.tracking-wider{letter-spacing:.05em}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.underline-offset-2{text-underline-offset:2px}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root{color-scheme:dark;--bg: #181818;--surface: #181818;--surface-raised: #1f1f1f;--surface-hover: color-mix(in oklab, #ffffff 6%, transparent);--surface-active: color-mix(in oklab, #ffffff 10%, transparent);--fg: #ffffff;--secondary: color-mix(in oklab, #ffffff 70%, transparent);--muted: color-mix(in oklab, #ffffff 52%, transparent);--faint: color-mix(in oklab, #ffffff 38%, transparent);--border: color-mix(in oklab, #ffffff 5%, transparent);--border-strong: color-mix(in oklab, #ffffff 14%, transparent);--accent: #ffffff;--danger: #ff6764;--icon-folder: color-mix(in oklab, #ffffff 46%, transparent);--icon-doc: color-mix(in oklab, #ffffff 58%, transparent);--json-key: #e06c75;--json-string: #98c379;--json-number: #d19a66;--json-literal: #c678dd;--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}:root[data-base=light]{color-scheme:light;--bg: #fafafa;--surface: #ffffff;--surface-raised: #f3f3f3;--surface-hover: color-mix(in oklab, #1a1c1f 5%, transparent);--surface-active: color-mix(in oklab, #1a1c1f 8%, transparent);--fg: #1a1c1f;--secondary: color-mix(in oklab, #1a1c1f 74%, transparent);--muted: #5d5d5d;--faint: #9a9a9a;--border: color-mix(in oklab, #1a1c1f 5%, transparent);--border-strong: color-mix(in oklab, #1a1c1f 12%, transparent);--accent: #1a1c1f;--danger: #e02e2a;--icon-folder: #c99a3c;--icon-doc: #6b7280;--json-key: #e45649;--json-string: #50a14f;--json-number: #986801;--json-literal: #a626a4}*,*:before,*:after{box-sizing:border-box}html,body{height:100%;margin:0;padding:0}body{padding-top:var(--pi-plugin-titlebar-height, 0px);overflow:hidden;background:var(--bg);color:var(--fg);font:12px/1.45 -apple-system,BlinkMacSystemFont,Segoe UI,system-ui,PingFang SC,Microsoft YaHei,sans-serif;-webkit-font-smoothing:antialiased}#root{height:100%;min-height:0}button,input{font:inherit;color:inherit}button:focus-visible,input:focus-visible{outline:2px solid color-mix(in oklab,var(--accent) 58%,transparent);outline-offset:-2px}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:8px;background-clip:content-box;background-color:color-mix(in oklab,var(--fg) 18%,transparent)}::-webkit-scrollbar-thumb:hover{background-color:color-mix(in oklab,var(--fg) 30%,transparent)}::-webkit-scrollbar-corner,::-webkit-scrollbar-track{background:transparent}.cm-editor{height:100%;background:transparent}.cm-editor .cm-scroller{font-family:var(--mono);font-size:12px;line-height:1.6}.cm-editor.cm-focused{outline:none}.cm-editor .cm-gutters{border-right:1px solid var(--border);background:transparent;color:var(--faint)}.cm-editor .cm-activeLine,.cm-editor .cm-activeLineGutter{background:color-mix(in oklab,var(--fg) 4%,transparent)}.cm-editor .cm-content ::-moz-selection{background:color-mix(in oklab,var(--accent) 22%,transparent)!important}.cm-editor .cm-selectionBackground,.cm-editor .cm-content ::selection{background:color-mix(in oklab,var(--accent) 22%,transparent)!important}.cm-editor .cm-cursor,.cm-editor .cm-dropCursor{border-left-color:var(--fg)}.cm-editor .cm-panels{border-bottom:1px solid var(--border);background:var(--surface-raised);color:var(--fg)}.cm-editor .cm-panels.cm-panels-bottom{border-top:1px solid var(--border);border-bottom:none}.cm-editor .cm-panel.cm-search .cm-textfield{border:1px solid var(--border-strong);border-radius:3px;background:var(--surface);color:var(--fg);caret-color:var(--fg)}.cm-editor .cm-panel.cm-search .cm-textfield::-moz-placeholder{color:var(--muted)}.cm-editor .cm-panel.cm-search .cm-textfield::placeholder{color:var(--muted)}.cm-editor .cm-panel.cm-search .cm-button{border:1px solid var(--border-strong);border-radius:3px;background:var(--surface-hover);color:var(--fg)}.cm-editor .cm-panel.cm-search .cm-button:hover:not(:disabled){background:var(--surface-active)}.cm-editor .cm-searchMatch{background:color-mix(in oklab,#f5c542 40%,transparent)}.cm-editor .cm-searchMatch.cm-searchMatch-selected{background:color-mix(in oklab,#f5c542 70%,transparent)}.cm-editor .cm-tooltip{border:1px solid var(--border-strong);background:var(--surface-raised);color:var(--fg)}.cm-editor .cm-foldPlaceholder{border:1px solid var(--border);background:var(--surface-hover);color:var(--secondary)}.tree-row{display:flex;width:100%;min-height:24px;align-items:center;gap:6px;border:0;border-radius:6px;padding:3px 8px 3px 6px;background:transparent;color:var(--secondary);cursor:pointer;font-size:12px;line-height:1.45;text-align:left;transition:background .15s cubic-bezier(.22,1,.36,1),color .15s cubic-bezier(.22,1,.36,1)}.tree-row:hover:not([data-selected=true]){background:var(--surface-hover);color:var(--fg)}.tree-row[data-selected=true]{background:color-mix(in oklab,var(--accent) 18%,transparent);box-shadow:inset 2px 0 0 var(--accent);color:var(--fg);font-weight:500}.tree-row[data-selected=true]:hover{background:color-mix(in oklab,var(--accent) 24%,transparent)}.tree-row:disabled{cursor:default;opacity:.5}.tree-row:disabled:hover{background:transparent}.tree-row[data-ignored=true]{color:var(--faint);font-style:italic}.tree-row[data-ignored=true] .tree-icon,.tree-row[data-ignored=true] svg{opacity:.65}.tree-row .tree-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-row .tree-caret{display:inline-flex;width:12px;flex:0 0 auto;align-items:center;justify-content:center;color:var(--faint);transition:transform .15s ease-out}.tree-row .tree-size,.tree-row .tree-mark{flex:0 0 auto;color:var(--faint);font-size:10px;font-variant-numeric:tabular-nums}.tree-row[data-selected=true] .tree-caret,.tree-row[data-selected=true] .tree-size,.tree-row[data-selected=true] .tree-mark{color:color-mix(in oklab,var(--fg) 70%,transparent)}.tree-row:not([data-selected=true]) svg{opacity:.92}.md-scroll,.dt-view,.dt-empty,.json-scroll,.img-stage,.media-stage{position:absolute;inset:0}.md-scroll{overflow:auto;padding:4px 20px 64px}.md-body{max-width:78ch;color:var(--fg);font-size:13px;line-height:1.7;word-wrap:break-word}.md-body>*:first-child{margin-top:0}.md-h1,.md-h2,.md-h3,.md-h4,.md-h5,.md-h6{margin:1.5em 0 .6em;font-weight:600;line-height:1.3}.md-h1{padding-bottom:.3em;border-bottom:1px solid var(--border);font-size:1.7em}.md-h2{padding-bottom:.25em;border-bottom:1px solid var(--border);font-size:1.4em}.md-h3{font-size:1.2em}.md-h4{font-size:1.06em}.md-h5{font-size:1em;color:var(--secondary)}.md-h6{font-size:.94em;color:var(--muted)}.md-p{margin:.75em 0;white-space:pre-wrap}.md-inline-code{border-radius:4px;padding:.12em .36em;background:color-mix(in oklab,var(--fg) 9%,transparent);font-family:var(--mono);font-size:.88em}.md-code{margin:.9em 0;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:10px 12px;background:color-mix(in oklab,var(--fg) 4%,transparent);font-family:var(--mono);font-size:.88em;line-height:1.55}.md-code code{white-space:pre}.md-quote{margin:.9em 0;border-left:3px solid color-mix(in oklab,var(--fg) 18%,transparent);padding:.1em 0 .1em 1em;color:var(--secondary)}.md-hr{height:1px;margin:1.6em 0;border:0;background:var(--border-strong)}.md-list{margin:.7em 0;padding-left:1.5em}.md-li{margin:.25em 0}.md-li-task{list-style:none;margin-left:-1.35em}.md-task{margin-right:.5em;vertical-align:middle;accent-color:var(--accent)}.md-table-wrap{margin:.9em 0;overflow-x:auto}.md-table{border-collapse:collapse;font-size:.95em}.md-table th,.md-table td{border:1px solid var(--border-strong);padding:5px 10px}.md-table th{background:color-mix(in oklab,var(--fg) 5%,transparent);font-weight:600}.md-link{color:#4aa3d9;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.md-link-unsafe{color:var(--danger);text-decoration-style:dotted}.md-image{display:inline-block;border-radius:6px;padding:.1em .45em;background:color-mix(in oklab,var(--fg) 7%,transparent);color:var(--muted);font-size:.92em}.img-stage{display:flex;flex-direction:column;background:var(--bg)}.img-canvas{display:flex;min-height:0;flex:1;overflow:auto;padding:16px;background-color:var(--surface);background-image:linear-gradient(45deg,color-mix(in oklab,var(--fg) 5%,transparent) 25%,transparent 25%,transparent 75%,color-mix(in oklab,var(--fg) 5%,transparent) 75%),linear-gradient(45deg,color-mix(in oklab,var(--fg) 5%,transparent) 25%,transparent 25%,transparent 75%,color-mix(in oklab,var(--fg) 5%,transparent) 75%);background-size:16px 16px;background-position:0 0,8px 8px}.img-canvas img{max-width:100%;max-height:100%;margin:auto;-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;user-select:none}.img-stage[data-actual=true] .img-canvas img{max-width:none;max-height:none}.img-bar{display:flex;flex:0 0 auto;align-items:center;gap:10px;border-top:1px solid var(--border);padding:6px 12px;color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums}.img-bar .img-dims{color:var(--secondary)}.img-zoom{margin-left:auto;border:0;border-radius:999px;padding:3px 10px;background:var(--surface-hover);color:var(--secondary);cursor:pointer;font-size:10.5px;transition:background .15s ease-out,color .15s ease-out}.img-zoom:hover{background:var(--surface-active);color:var(--fg)}.media-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;background:var(--bg)}.media-box{display:flex;width:100%;justify-content:center}.media-box video{max-width:100%;max-height:62vh;border-radius:8px;background:#000}.media-box audio{width:100%;max-width:520px}.media-meta{display:flex;max-width:100%;align-items:center;gap:10px;color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums}.media-meta .media-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono)}.media-error{border-radius:8px;padding:6px 12px;background:color-mix(in oklab,var(--danger) 14%,transparent);color:var(--danger);font-size:11.5px}.dt-view{display:flex;flex-direction:column;background:var(--bg)}.dt-scroll{min-height:0;flex:1;overflow:auto}.dt-table{min-width:100%;border-collapse:separate;border-spacing:0;font-size:11.5px;font-variant-numeric:tabular-nums;white-space:nowrap}.dt-table th,.dt-table td{border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:4px 10px;text-align:left;max-width:36ch;overflow:hidden;text-overflow:ellipsis}.dt-table td{color:var(--secondary)}.dt-table td[data-numeric=true]{text-align:right}.dt-table tbody tr:nth-child(2n) td{background:color-mix(in oklab,var(--fg) 2.5%,var(--bg))}.dt-table tbody tr:hover td{background:color-mix(in oklab,var(--fg) 7%,var(--bg));color:var(--fg)}.dt-table thead th{position:sticky;top:0;z-index:2;background:var(--surface-raised);color:var(--fg);font-weight:600}.dt-table thead th.dt-sortable{padding:0}.dt-sort{display:flex;width:100%;align-items:center;gap:4px;border:0;padding:4px 10px;background:transparent;color:inherit;cursor:pointer;font:inherit;font-weight:600;text-align:left;transition:background .15s ease-out}.dt-sort:hover{background:color-mix(in oklab,var(--fg) 8%,var(--surface-raised))}.dt-sort .dt-head{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dt-sort .dt-arrow{flex:0 0 auto;width:1ch;color:var(--faint);font-size:9px}.dt-sort[data-active=true],.dt-sort[data-active=true] .dt-arrow{color:var(--fg)}.dt-table .dt-index{position:sticky;left:0;z-index:1;width:1%;min-width:5ch;padding-right:8px;background:var(--bg);color:var(--faint);font-size:10px;text-align:right}.dt-table thead .dt-index{z-index:3;background:var(--surface-raised)}.dt-table tbody tr:nth-child(2n) .dt-index{background:color-mix(in oklab,var(--fg) 2.5%,var(--bg))}.dt-table tbody tr:hover .dt-index{background:color-mix(in oklab,var(--fg) 7%,var(--bg));color:var(--secondary)}.dt-bar{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:4px 12px;border-top:1px solid var(--border);padding:5px 10px;background:var(--surface);color:var(--muted);font-size:10.5px}.dt-bar .dt-range{color:var(--secondary);font-variant-numeric:tabular-nums}.dt-bar .dt-warn{color:var(--faint)}.dt-pager{display:flex;align-items:center;gap:1px;margin-left:auto}.dt-pager button{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;border:0;border-radius:5px;background:transparent;color:var(--secondary);cursor:pointer;font-size:12px;line-height:1;transition:background .15s ease-out,color .15s ease-out}.dt-pager button:hover:not(:disabled){background:var(--surface-hover);color:var(--fg)}.dt-pager button:disabled{cursor:default;opacity:.35}.dt-page{min-width:8ch;text-align:center;color:var(--secondary);font-variant-numeric:tabular-nums}.dt-size{display:flex;align-items:center;gap:5px;white-space:nowrap}.dt-size select{border:1px solid var(--border-strong);border-radius:6px;padding:1px 4px;background:var(--bg);color:var(--fg);font:inherit;cursor:pointer}.dt-empty{display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:12px}.json-scroll{overflow:auto;padding:6px 0 32px;background:var(--bg)}.json-body{min-width:-moz-min-content;min-width:min-content;font-family:var(--mono);font-size:11.5px;line-height:1.65}.json-row{display:flex;width:100%;align-items:baseline;gap:6px;border:0;padding:1px 12px;background:transparent;color:var(--secondary);text-align:left}button.json-row{cursor:pointer}button.json-row:hover{background:var(--surface-hover)}.json-caret{flex:0 0 auto;width:10px;color:var(--faint);font-size:9px}.json-key{flex:0 0 auto;color:var(--json-key)}.json-key:after{content:":";margin-left:1px;color:var(--faint)}.json-string{color:var(--json-string);white-space:pre-wrap;word-break:break-all}.json-number{color:var(--json-number)}.json-boolean{color:var(--json-literal)}.json-null{color:var(--muted)}.json-brace,.json-count{flex:0 0 auto;color:var(--faint)}.json-count{font-size:10.5px}.json-more{display:block;border:0;padding:1px 12px;background:transparent;color:#4aa3d9;cursor:pointer;font-family:var(--mono);font-size:11px}.json-more:hover{text-decoration:underline}.json-error{padding:12px 16px;color:var(--danger);font-family:var(--mono);font-size:11.5px}.sq-view{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--bg)}.sq-view .dt-view{position:static;min-height:0;flex:1}.sq-view .dt-scroll{min-height:0}.sq-info{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:4px 10px;border-bottom:1px solid var(--border);padding:5px 10px;background:var(--surface);color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums}.sq-info .sq-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg);font-family:var(--mono);font-size:11px}.sq-badge{border:1px solid var(--border-strong);border-radius:999px;padding:0 6px;color:var(--secondary)}.sq-warn{flex:0 0 auto;border-bottom:1px solid var(--border);padding:5px 10px;background:color-mix(in oklab,#f5c542 14%,transparent);color:color-mix(in oklab,#f5c542 62%,var(--fg));font-size:10.5px}.sq-notice{flex:0 0 auto;padding:10px 12px;color:var(--muted);font-size:11.5px}.sq-danger{color:var(--danger)}.sq-tabs{display:flex;flex:0 0 auto;gap:2px;border-bottom:1px solid var(--border);padding:4px 8px 0;background:var(--surface)}.sq-tab{border:0;border-bottom:2px solid transparent;padding:4px 10px;background:transparent;color:var(--muted);cursor:pointer;font-size:11.5px}.sq-tab:hover{color:var(--fg)}.sq-tab[data-active=true]{border-bottom-color:var(--accent);color:var(--fg);font-weight:600}.sq-bar{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:6px 8px;border-bottom:1px solid var(--border);padding:6px 8px;background:var(--surface);color:var(--muted);font-size:10.5px}.sq-select,.sq-size select{border:1px solid var(--border-strong);border-radius:6px;padding:1px 4px;background:var(--bg);color:var(--fg);font:inherit;max-width:100%}.sq-select{min-width:0;flex:1 1 110px}.sq-size{display:flex;align-items:center;gap:4px;margin-left:auto;white-space:nowrap}.sq-toggle,.sq-run{border:1px solid var(--border-strong);border-radius:6px;padding:2px 8px;background:transparent;color:var(--secondary);cursor:pointer;font-size:10.5px;transition:background .15s ease-out,color .15s ease-out}.sq-toggle:hover:not(:disabled){background:var(--surface-hover);color:var(--fg)}.sq-toggle[data-active=true]{background:var(--surface-active);color:var(--fg)}.sq-toggle:disabled,.sq-run:disabled{cursor:default;opacity:.4}.sq-run{border-color:transparent;background:var(--accent);color:var(--bg);font-weight:600}.sq-hint{color:var(--faint)}.sq-editor{flex:0 0 auto;height:108px;min-height:64px;border:0;border-bottom:1px solid var(--border);padding:8px 10px;background:var(--bg);color:var(--fg);font-family:var(--mono);font-size:11.5px;line-height:1.6;outline:none;resize:vertical}.sq-result{display:flex;min-height:0;flex:1;flex-direction:column}.sq-result-meta{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:10px;padding:5px 10px;color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums}.sq-structure{min-height:0;flex:1;overflow:auto;padding:10px 12px 24px}.sq-struct-title{margin:14px 0 4px;color:var(--muted);font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.sq-struct-title:first-child{margin-top:0}.sq-struct-list{margin:0;padding:0;list-style:none}.sq-struct-list li{display:flex;align-items:baseline;gap:8px;padding:2px 0;color:var(--secondary);font-size:11.5px}.sq-col-name{color:var(--fg);font-family:var(--mono)}.sq-col-type{color:var(--muted);font-size:10.5px}.sq-flag{border-radius:4px;padding:0 4px;background:var(--surface-hover);color:var(--faint);font-size:9.5px}.sq-sql{margin:0;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:8px 10px;background:color-mix(in oklab,var(--fg) 4%,transparent);color:var(--secondary);font-family:var(--mono);font-size:11px;line-height:1.6;white-space:pre-wrap}.dt-null{color:var(--faint);font-style:italic}.dt-view[data-busy=true] .dt-scroll{opacity:.5}@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}.hover\\:bg-\\[var\\(--surface-hover\\)\\]:hover{background-color:var(--surface-hover)}.hover\\:text-\\[var\\(--fg\\)\\]:hover{color:var(--fg)}.hover\\:opacity-85:hover{opacity:.85}.focus-visible\\:bg-\\[var\\(--surface-hover\\)\\]:focus-visible{background-color:var(--surface-hover)}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}/*$vite$:1*/`,document.head.appendChild(fm);var hm={exports:{}},Vo={},Qm={exports:{}},se={};/*** @license React* react.production.min.jsdiff --git a/apps/desktop/test/bundled-plugins.test.mjs b/apps/desktop/test/bundled-plugins.test.mjsindex 6359584d4..c34cb9b44 100644--- a/apps/desktop/test/bundled-plugins.test.mjs+++ b/apps/desktop/test/bundled-plugins.test.mjs@@ -61,21 +61,34 @@ test("the file view is a sandboxed page over the public bridge", () => {assert.match(view, /meta name="pi-plugin-chrome" content="v2"/);});+test("the file manager search panel remains readable in both themes", () => {+ assert.match(+ viewBundle,+ /\.cm-editor \.cm-panel\.cm-search \.cm-textfield\{[^}]*background:var\(--surface\);color:var\(--fg\);caret-color:var\(--fg\)/,+ );+ assert.match(+ viewBundle,+ /\.cm-editor \.cm-panel\.cm-search \.cm-button\{[^}]*background:var\(--surface-hover\);color:var\(--fg\)/,+ );+});+test("the vendored copy stays traceable to its upstream release", () => {assert.match(upstream, /github\.com\/Tioit-Wang\/pi-desktop-plugin-file-manager/);assert.match(upstream, /d36ebe9f7fb82ee71e87670b0a65403660b18a00/);- // The version the manifest carries and the tag the record names are the same- // release: a bump that skips the other one is a sync mistake.+ // The bundled hotfix is intentionally newer than its upstream base while+ // remaining below the next stable upstream release.const tag = upstream.match(/`v(\d+\.\d+\.\d+)`/);- assert.ok(tag, "UPSTREAM.md must name the vendored tag");- assert.equal(manifest.version, tag[1]);- // Every file the vendored copy does not patch still hashes to the recorded- // value, so a silent edit cannot pass as the released artifact.+ assert.ok(tag, "UPSTREAM.md must name the vendored base tag");+ assert.equal(tag[1], "0.5.2");+ assert.equal(manifest.version, "0.5.3-pi.1");+ // Every upstream or locally rebuilt file hashes to a recorded value, so a+ // silent edit cannot pass as the released artifact or documented patch.for (const file of ["main.js","README.md","views/index.html","views/assets/index.js",+ "manifest.json",]) {const hash = createHash("sha256").update(readFileSync(resolve(`${FILE_MANAGER}/${file}`)))diff --git a/apps/desktop/test/file-manager-theme-user-path.test.mjs b/apps/desktop/test/file-manager-theme-user-path.test.mjsnew file mode 100644index 000000000..cecd6f85c--- /dev/null+++ b/apps/desktop/test/file-manager-theme-user-path.test.mjs@@ -0,0 +1,263 @@+import assert from "node:assert/strict";+import { spawn } from "node:child_process";+import { mkdtemp, rm, writeFile } from "node:fs/promises";+import { tmpdir } from "node:os";+import { dirname, join } from "node:path";+import test from "node:test";+import { fileURLToPath } from "node:url";+import { resolveElectronBinary } from "../../../scripts/e2e/boot.mjs";++const root = join(dirname(fileURLToPath(import.meta.url)), "../../..");+const viewEntry =+ process.env.PI_FILE_MANAGER_VIEW ??+ join(root, "apps/desktop/resources/plugins/pi.file-manager/views/index.html");+const electronBinary =+ process.env.PI_DESKTOP_ELECTRON_BIN ?? resolveElectronBinary(root).electronBinary;++const preloadFixture = String.raw`+const { contextBridge } = require("electron");++const themeArgument = process.argv.find((value) => value.startsWith("--fixture-theme="));+const theme = themeArgument?.split("=")[1] === "light" ? "light" : "dark";+const workspace = {+ path: "C:/fixture/project",+ name: "project",+ projectId: "fixture-project",+ roots: [{ path: "C:/fixture/project", name: "project", primary: true }],+};+const prefs = {+ splitRatio: 0.32,+ treeCollapsed: false,+ showIgnored: false,+ mdPreview: false,+ csvTable: true,+ jsonTree: false,+ tablePageSize: 1000,+ projectRoots: {},+};++contextBridge.exposeInMainWorld("pluginBridge", {+ async invoke(channel, payload = {}) {+ switch (channel) {+ case "app.getAppearance":+ return { base: theme, locale: "en" };+ case "workspace.get":+ return workspace;+ case "fm.hello":+ return {+ ok: true,+ root: workspace,+ limits: {+ maxReadBytes: 2 * 1024 * 1024,+ maxWriteBytes: 8 * 1024 * 1024,+ maxListEntries: 5000,+ },+ ignoreFiles: [],+ prefs,+ };+ case "fm.list":+ return {+ ok: true,+ path: payload.path ?? "",+ entries: payload.path+ ? []+ : [{+ name: "test.ts",+ path: "test.ts",+ isDirectory: false,+ size: 22,+ mtimeMs: 1,+ ignored: false,+ isSymlink: false,+ outside: false,+ }],+ truncated: false,+ ignoreActive: false,+ };+ case "fm.read":+ return {+ ok: true,+ kind: "text",+ path: payload.path,+ text: "const visible = true;\n",+ eol: "lf",+ bom: false,+ size: 22,+ mtimeMs: 1,+ };+ case "fm.prefs.set":+ return { ok: true, prefs: { ...prefs, ...(payload.partial ?? {}) } };+ default:+ throw new Error("Unexpected fixture channel: " + channel);+ }+ },+ on() {+ return () => {};+ },+});+`;++const mainFixture = String.raw`+const { app, BrowserWindow } = require("electron");+const path = require("node:path");+const { pathToFileURL } = require("node:url");++const viewEntry = process.env.PI_FILE_MANAGER_VIEW;+app.setPath("userData", path.join(__dirname, "profile"));++async function waitFor(window, expression) {+ const timeoutMessage = JSON.stringify("timed out: " + expression);+ await window.webContents.executeJavaScript(+ "new Promise((resolve, reject) => {" ++ "const deadline = Date.now() + 5000;" ++ "const poll = () => {" ++ "if (" + expression + ") resolve();" ++ "else if (Date.now() > deadline) reject(new Error(" + timeoutMessage + "));" ++ "else setTimeout(poll, 50);" ++ "}; poll();" ++ "})",+ );+}++const windows = [];++async function probe(theme) {+ const window = new BrowserWindow({+ show: false,+ width: 900,+ height: 700,+ webPreferences: {+ sandbox: false,+ contextIsolation: true,+ nodeIntegration: false,+ backgroundThrottling: false,+ preload: path.join(__dirname, "preload.cjs"),+ additionalArguments: ["--fixture-theme=" + theme],+ },+ });+ windows.push(window);++ const viewUrl = pathToFileURL(viewEntry);+ viewUrl.searchParams.set("piViewOpen", "test.ts");+ await window.loadURL(viewUrl.href).catch((error) => {+ throw new Error(theme + " load failed: " + error.message);+ });+ await waitFor(window, "document.querySelector('.cm-content')?.textContent.includes('visible')");+ await window.webContents.executeJavaScript("document.querySelector('.cm-content').focus()");+ window.webContents.sendInputEvent({+ type: "keyDown",+ keyCode: "F",+ modifiers: [process.platform === "darwin" ? "meta" : "control"],+ });+ window.webContents.sendInputEvent({+ type: "keyUp",+ keyCode: "F",+ modifiers: [process.platform === "darwin" ? "meta" : "control"],+ });+ await waitFor(window, "document.querySelector('.cm-panel.cm-search .cm-textfield')");+ return await window.webContents.executeJavaScript("(() => {" ++ "const fields = [...document.querySelectorAll('.cm-panel.cm-search .cm-textfield')];" ++ "const buttons = [...document.querySelectorAll('.cm-panel.cm-search .cm-button')];" ++ "const styles = (element) => {" ++ "const style = getComputedStyle(element);" ++ "return {" ++ "color: style.color," ++ "backgroundColor: style.backgroundColor," ++ "backgroundImage: style.backgroundImage," ++ "};" ++ "};" ++ "return {" ++ "base: document.documentElement.dataset.base," ++ "fields: fields.map(styles)," ++ "buttons: buttons.map(styles)," ++ "};" ++ "})()");+}++app.whenReady().then(async () => {+ try {+ const result = { dark: await probe("dark"), light: await probe("light") };+ console.log("FILE_MANAGER_THEME_PROBE " + JSON.stringify({ ok: true, result }));+ app.exit(0);+ } catch (error) {+ console.error(+ "FILE_MANAGER_THEME_PROBE " ++ JSON.stringify({ ok: false, error: String(error?.stack ?? error) }),+ );+ app.exit(1);+ }+});+`;++function assertTheme(report, theme) {+ assert.equal(report.base, theme);+ assert.equal(report.fields.length, 2, "find and replace fields must both be themed");+ assert.ok(report.buttons.length >= 5, "search actions must be themed");++ const foreground = theme === "dark" ? "rgb(255, 255, 255)" : "rgb(26, 28, 31)";+ const fieldBackground = theme === "dark" ? "rgb(24, 24, 24)" : "rgb(255, 255, 255)";+ for (const field of report.fields) {+ assert.equal(field.color, foreground);+ assert.equal(field.backgroundColor, fieldBackground);+ assert.equal(field.backgroundImage, "none");+ }+ for (const button of report.buttons) {+ assert.equal(button.color, foreground);+ assert.equal(button.backgroundImage, "none");+ assert.notEqual(button.backgroundColor, "rgba(0, 0, 0, 0)");+ }+}++test(+ "File Manager find and replace controls follow light and dark appearance",+ {+ skip:+ process.platform === "linux" && !process.env.DISPLAY+ ? "Electron requires a display"+ : false,+ },+ async () => {+ const temp = await mkdtemp(join(tmpdir(), "pi-file-manager-theme-"));+ try {+ await writeFile(join(temp, "preload.cjs"), preloadFixture);+ await writeFile(join(temp, "main.cjs"), mainFixture);++ const env = { ...process.env, PI_FILE_MANAGER_VIEW: viewEntry };+ delete env.ELECTRON_RUN_AS_NODE;+ const child = spawn(+ electronBinary,+ [join(temp, "main.cjs")],+ { env, stdio: ["ignore", "pipe", "pipe"] },+ );+ let output = "";+ for (const stream of [child.stdout, child.stderr]) {+ stream.setEncoding("utf8");+ stream.on("data", (chunk) => {+ output += chunk;+ });+ }+ const timeout = setTimeout(() => child.kill("SIGKILL"), 45_000);+ let code;+ try {+ code = await new Promise((resolve, reject) => {+ child.once("error", reject);+ child.once("close", resolve);+ });+ } finally {+ clearTimeout(timeout);+ }++ const line = output+ .split(/\r?\n/)+ .find((item) => item.startsWith("FILE_MANAGER_THEME_PROBE "));+ assert.ok(line, output.slice(-6000));+ assert.equal(code, 0, output.slice(-6000));+ const report = JSON.parse(line.slice("FILE_MANAGER_THEME_PROBE ".length));+ assert.equal(report.ok, true, output.slice(-6000));+ assertTheme(report.result.dark, "dark");+ assertTheme(report.result.light, "light");+ } finally {+ await rm(temp, { recursive: true, force: true });+ }+ },+);diff --git a/crates/host-core/src/plugins/tests.rs b/crates/host-core/src/plugins/tests.rsindex 78a4fba17..3503e924b 100644--- a/crates/host-core/src/plugins/tests.rs+++ b/crates/host-core/src/plugins/tests.rs@@ -231,6 +231,18 @@ fn marketplace_uses_highest_semver_when_catalog_versions_are_unsorted() {compare_plugin_versions("0.5.1", "0.5.1-beta.1"),Ordering::Greater);+ assert_eq!(+ compare_plugin_versions("0.5.3-pi.1", "0.5.2"),+ Ordering::Greater+ );+ assert_eq!(+ compare_plugin_versions("0.5.3-pi.1", "0.5.3"),+ Ordering::Less+ );+ assert_eq!(+ compare_plugin_versions("0.5.3-pi.1", "0.6.0"),+ Ordering::Less+ );});}diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.mdindex 7ed3258bd..758ce9909 100644--- a/docs/spec/04-ux/08-component-spec.md+++ b/docs/spec/04-ux/08-component-spec.md@@ -1149,10 +1149,12 @@ entirely inside the plugin's isolated page:- Selecting a file replaces the tree with a focused viewer: syntax-highlightedediting with save, a Markdown preview toggle, image and audio/video viewing,CSV/TSV tables with paging and sorting, a JSON tree, and read-only SQLite- browsing with a SQL query box. Binaries report that they cannot be previewed- rather than being decoded, and every viewer names its own bound — 2 MiB for- text, 8 MiB for images, 24 MiB for media, none for databases, whose bytes stay- out of the page.+ browsing with a SQL query box. The editor's CodeMirror find/replace fields+ and buttons use the plugin theme surfaces and foreground in both light and+ dark appearances. Binaries report that they cannot be previewed rather than+ being decoded, and every viewer names its own bound — 2 MiB for text, 8 MiB+ for images, 24 MiB for media, none for databases, whose bytes stay out of+ the page.- Saving is atomic and refuses to overwrite a file that changed on disk since itwas opened until the user confirms. Loading, read failures, unsupportedbinaries, oversized files, empty folders, and folders that fail to load eachdiff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.mdindex 37b6f89c4..65d91ced0 100644--- a/docs/spec/06-delivery/04-e2e-test-plan.md+++ b/docs/spec/06-delivery/04-e2e-test-plan.md@@ -9762,14 +9762,17 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.actions are absent, the default-app action is disabled, and editor choicesremain available.5. Open a text file, edit it, and save. Confirm the file on disk changed and- the editor keeps the saved content. Change the same file outside the app,- edit and save again, and confirm the conflict is reported instead of the- external change being overwritten. Click the binary file and confirm it- reports as unsupported rather than printing replacement characters; open- the image, the CSV, and the Markdown file and confirm each gets its own- viewer. Switch the app to Simplified Chinese and confirm the tree, viewer,- and context menu are localized. Switch projects and confirm the tree- updates without waiting on a poll.+ the editor keeps the saved content. In dark appearance, press `Ctrl/Cmd+F`+ and confirm the find text, replace text, and action labels remain readable+ against their themed fields and buttons; repeat after switching to light+ appearance. Change the same file outside the app, edit and save again, and+ confirm the conflict is reported instead of the external change being+ overwritten. Click the binary file and confirm it reports as unsupported+ rather than printing replacement characters; open the image, the CSV, and+ the Markdown file and confirm each gets its own viewer. Switch the app to+ Simplified Chinese and confirm the tree, viewer, and context menu are+ localized. Switch projects and confirm the tree updates without waiting on+ a poll.6. Click a project file path in the conversation. Confirm it opens in thisview on that file — a chat click now prefers the file view over the host`file:` tab.@@ -9794,15 +9797,19 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.ADR 0169, ADR 0241, ADR 0249, ADR 0263, ADR 0330- **Acceptance**: G (plugins), D (workspace), Security, Quality- **Milestone**: M6+-- **Status**: Unit coverage in `apps/desktop/test/bundled-plugins.test.mjs`- (manifest contract, public-bridge-only page, vendored checksums),- `apps/desktop/test/plugin-fs-scope.test.mjs` (`fs.openDefault`,- `fs.openInBrowser`, and `fs.reveal` guards),- `apps/desktop/test/browser-preview-tool.test.mjs` (Browser resource-tab event- routing), `apps/desktop/test/plugin-work-panel-views.test.mjs` (docked-view- event broadcast), and host-core- `bundled_plugins_refresh_from_disk_but_keep_user_state`; the packaged journey- is Draft (run only in a capable environment when this surface changes)+- **Status**: `pnpm test:e2e:file-manager-theme` loads the shipped plugin view+ in Electron, opens a text file through a fixture public bridge, invokes+ `Ctrl/Cmd+F`, and checks the rendered find/replace fields and actions in dark+ and light appearances. `apps/desktop/test/bundled-plugins.test.mjs` also+ covers the manifest contract, public-bridge-only page, vendored checksums,+ and themed CodeMirror controls. `apps/desktop/test/plugin-fs-scope.test.mjs`+ covers `fs.openDefault`, `fs.openInBrowser`, and `fs.reveal` guards;+ `apps/desktop/test/browser-preview-tool.test.mjs` covers Browser resource-tab+ event routing; `apps/desktop/test/plugin-work-panel-views.test.mjs` covers+ docked-view event broadcast; and host-core covers+ `bundled_plugins_refresh_from_disk_but_keep_user_state`. The remaining+ packaged journey is Draft (run only in a capable environment when this+ surface changes).#### E2E-PLUGIN-file-view-collapse-persistsdiff --git a/package.json b/package.jsonindex e901f6378..35bd72669 100644--- a/package.json+++ b/package.json@@ -96,6 +96,7 @@"test:e2e:plugin-import-deps": "node scripts/e2e-plugin-import-deps.mjs","test:e2e:trusted-extensions": "node scripts/e2e-trusted-extensions.mjs","test:e2e:plugin-ui-slots": "node scripts/e2e-plugin-ui-slots.mjs",+ "test:e2e:file-manager-theme": "node --test apps/desktop/test/file-manager-theme-user-path.test.mjs","test:e2e:collaboration": "node scripts/e2e-session-collaboration.mjs","test:e2e:session-completion": "node scripts/e2e-session-completion.mjs","test:e2e:remote-host": "node scripts/e2e-remote-host.mjs",