SuperAPI AI 工具集

olares-search

通用与其它

查看项目

更新于 10-15 17:24

技能介绍

用途:这是 Olares 桌面全局搜索(search)技能,通过 olares-cli search 子命令在多个来源中查找文件或知识条目。使用前先加载 ../olares-shared/SKILL.md 了解套件路由、活动 profile 选择、平台入口与认证门控;仅在需要登录、切换 profile、令牌存储或认证恢复时再加载其认证参考。语法用 olares-cli search <subcommand> --help 查看。

主要能力与子命令: drive(files)一次搜索 Drive、Sync、Google Drive 与 Dropbox; sync 仅搜索 Sync(Seafile)库; knowledge(wise)搜索 Wise/Knowledge 内容,需 Olares 1.12.7+; app 按可见标题匹配已安装应用,不是生命周期清单(后者用 market list --mine / market status)。 常见用法: olares-cli search drive "quarterly report" -o json olares-cli search app music -o json olares-cli search knowledge "retrieval" -o json olares-cli settings search status -o json

版本差异:Olares 1.12.7+ 中 drive 以一次异步联邦请求搜索 files_v2、google_drive、dropbox、seafile,没有单独的 gdrive / dropbox 子命令,sync 把同一通道限制到 seafile。1.12.6 及更早无联邦通道,drive 只覆盖本地 Drive,sync 回退到 /api/search/sync,需两条命令才覆盖新版的同等范围。

索引与限制:索引是异步的,未命中不能证明不存在,可先用 files ls 验证已知路径,用 settings search status 查看提取失败与索引进度。文件名索引范围较广但受排除模式约束;全文索引默认仅为 Drive /Documents/,其他目录需 settings search dirs add。加密、损坏或超大文件可能提取失败。Google Drive 与 Dropbox 需 Olares 1.12.7+ 且账号已绑定;未绑定账号会作为失败来源返回,任务仍完成并打印其他来源结果。绑定需在 LarePass → Settings → Integration 完成,CLI 不提供。可用 olares-cli settings integration accounts list-by-type google|dropbox 检查是否绑定。云端结果路径如 google/<account>/...、dropbox/<account>/... 可用于 files ls / files cat / files download;Sync 路径形如 /sync/<repo_id>/...。

安全:搜索为只读。settings search dirs add/rm 与 rebuild 属于独立的配置修改,需确认。不要把无结果当作文件或应用不存在的证据;不要在未获授权时执行绑定集成或重建索引,应转交 olares-settings。