
Research
/Security News
OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.
@mearl/setup
Advanced tools
Mearl 环境的一次性安装、更新、卸载与配置工具。无需先全局安装 setup:
npx @mearl/setup [install] [--local] [--cloud] [--mcp] [--yes]
npx @mearl/setup <update|uninstall> [--local] [--cloud] [--mcp] [--yes]
配置 AgentBay API Key 时只需执行一次下面的命令,然后在隐藏输入提示中粘贴 Key。
重复执行会更新现有 Key,并保留 ~/.mearl/.env 中的其他配置:
npx @mearl/setup agentbay
无交互环境可使用 --stdin 或 --key-file <path>。为避免 Key 进入 shell history 和
进程参数,不接受把 Key 直接写在命令行中。
install 可以省略;直接执行 npx @mearl/setup 等同于 npx @mearl/setup install。
以选项开头时也默认安装,例如 npx @mearl/setup --cloud --yes。install 未指定环境时默认 --local。-h / --help 显示帮助,-v / --version 显示 setup 版本。update 和 uninstall 未指定环境时,从当前 PATH 中的
mearl-native-host、mearl-cloud-server、mearl-mcp-server 自动检测,可同时处理
多个已安装环境。--local、--cloud 与 --mcp 可以组合,显式传入时只处理选中的环境。@mearl/cloud-server 与 @mearl/client:首次安装后启动
Server,更新后仅在 Server 原本运行时重启,卸载前停止。@mearl/client;组合安装只处理一次,卸载单个环境时若另一个环境仍在使用则保留。@mearl/cloud-client,避免它遗留的 mearl bin 与统一 client 冲突。ali-skills 的 JSON 清单定位,只处理一次。--mcp 的客户端配置和清理由 @mearl/mcp-server 自己的命令完成。浏览器扩展与 Native Host 首次建联时会交换版本。每次扩展后台启动只检查一次;当扩展
进入更高的 major.minor release line 时,旧 Host 会在保持当前连接可用的前提下,调用
对应 major.minor.x 范围内最新的 @mearl/setup,把 @mearl/native-host 与
@mearl/client 一起更新到该范围内的最新版本。成功后 Host 退出,扩展通过已有重连机制
启动新版本。只有两个本地 CLI 版本一致且都属于扩展的 release line 时,更新才会被视为成功。
自动更新不会降级较新的 Host,也不会改动 cloud、MCP 或独立安装的 Mearl Skill。
目标 npm 版本尚未发布、网络不可用或更新失败时,旧 Host 会继续运行;下一次扩展后台
生命周期可重新尝试,也可手动执行 npx @mearl/setup update --local。
--yes,需要选择 Skill 安装目标或 MCP 客户端时会显示交互提示。--yes(也可写
--non-interactive)。首次安装会选择已检测到的 Agent / MCP 客户端,卸载会清理
所有已检测到的相关配置。install 或 uninstall 却未加上述参数时,会在任何改动前退出并提示正确命令。0 表示完整成功,1 表示执行未完成,2 表示参数或交互模式不适用。# 默认安装本地浏览器环境
npx @mearl/setup
# 与上一条等价
npx @mearl/setup install
# Agent / CI 无交互安装
npx @mearl/setup install --yes
# 安装云端 Agent 环境
npx @mearl/setup install --cloud
# 同一台机器同时作为本地浏览器宿主和云端 Agent
npx @mearl/setup install --local --cloud
# 自动更新当前 PATH 中检测到的全部 Mearl 环境
npx @mearl/setup update
# 只卸载本地环境
npx @mearl/setup uninstall --local
# 自动检测并无交互卸载
npx @mearl/setup uninstall --yes
# 配置或更新 AgentBay API Key
npx @mearl/setup agentbay
# 无交互配置(从权限受控的文件读取)
npx @mearl/setup agentbay --key-file ./agentbay.key
原有的 npm/npx 安装方式和各包 CLI 保持可用;setup 只是统一的便利入口。
FAQs
One-shot environment setup and configuration for Mearl
The npm package @mearl/setup receives a total of 404 weekly downloads. As such, @mearl/setup popularity was classified as not popular.
We found that @mearl/setup demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.