Files
paseo/public-docs/muse-code.zh-CN.md
T
Mohamed Boudra bd15e40e94 Serve paseo.sh in Simplified Chinese (#7373)
* feat(website): serve paseo.sh in Simplified Chinese

Every page of the website now has a Simplified Chinese version under
/zh-CN: the interface, docs, blog posts, comparison pages, legal pages,
all changelog releases and the homepage mockup. English URLs are unchanged.

The URL alone decides the language. There is no browser-language redirect
and no stored preference, because either would have to redirect the
unprefixed English URLs that people share and search engines index.
Internal links carry the page's language instead, and hreflang alternates
point Chinese search results at /zh-CN.

Translated headings pin the English anchor with {#id}, so section links
work in both languages. content-translations.test.ts fails when a page
has no translation or a translation's headings drift from the English.
Changelog releases and plugin listings without a translation render
whole in English under a notice, so a release never waits on one.

Plugin manifests and the registry gain optional translations and
OVERVIEW.zh-CN.md fields; older clients and registries ignore them.

* feat(website): replace the native language select with an EN/ZH menu

The header showed an OS-native select whose popup did not match the site.
The trigger now shows the language abbreviated (EN, ZH) and opens a menu in
the app's dropdown style that names each language in itself, with its name
in the page language underneath. Rows are real links to the same page in
that language; arrows, Escape, outside presses and taps behave as a menu
button, and the menu keeps itself on screen when a narrow header pushes the
trigger toward an edge.

Also drops the stray space after the full-width comma in the Chinese
homepage subtitle.

* docs(website): translate main's new docs and 0.12.0 release notes

Main added Keep run workspaces to the schedules docs, rewrote plugin icons
around inline SVG, and promoted 0.12.0 with new entries. Bring the Chinese
pages and changelog in line so no section falls back to English.

* fix(server): leave plugin listing translations to the registry

The daemon rejected manifests whose translations the registry would refuse,
so a plugin main installs could fail to load here. Paseo never reads
translations; the registry validates them at publish. Docs now say which
checks are automated at publish and which are human review.

* docs(plugins): describe the registry's final overview translation discovery

* style(server): format manifest test

* test(app): measure sidebar rows one at a time

After a reload the developer error toast appears while expectVerticalOrder
measures every row at once. Each concurrent boundingBox runs the toast
locator handler, and only one of them resumes, so the poll timed out on
every attempt since #7424. Measuring sequentially keeps one action in flight.

* test(app): return sidebar row measuring to main

#7480 hides the developer toast instead of running a locator handler, so
measuring the rows concurrently no longer races it. Reverts 41ac23016.

* test(app): wait for the compact shell before opening compact Changes

The shell survives the breakpoint, so right after the resize the wide
Explorer could still be visible: the test skipped the Explorer toggle and
the tab then disappeared, or toggled at the wrong time. Wait for the
compact-shell marker, as the composer helpers do since #7424.

* docs(website): translate main's plugin file panel docs

* test(app): edit the code font size after the font family remount

A committed appearance change remounts the settings screen through
AppearanceStyleBoundary, and the new form starts from the stored size.
Filling the size before that remount lost the edit in CI.

* docs(website): translate main's client/ui import docs

Follows #7474: one /client/ui entry, StreamedText instead of useRevealedText,
SettingsGroup dropped from the settings table, and the new
'UI imports in v0.13' migration section.

* test(app): wait for the previous layout's file panel picker to leave

After a resize the old layout's picker animates out while the new one is
already mounted, so the Use button matched two elements and the strict
locator failed. Wait for the shell's layout and a single picker first.
2026-10-21 13:13:03 +07:00

3.8 KiB
Raw Blame History

title, description, nav
title description nav
Muse Code 为 Paseo 安装和配置 Muse Code。 Muse Code

Muse Code

使用你现有的 Muse 安装和凭据,在 Paseo 中运行 Meta 的终端编程 Agent。

开始使用

在运行 Paseo daemon 的机器上安装 Muse Code:

curl -fsSL https://dev.meta.ai/install.sh | sh
muse login

请使用 Muse 1.3.0 或更高版本。此集成已在 1.4.1 上验证。如需 API 访问,请在 daemon 的环境中设置 META_API_KEY,而不是登录。参见 Provider 环境变量覆盖。

在 Paseo 中选择 Muse Code,然后选择模型、审批模式和推理强度。Paseo 运行 muse serve,并通过 Muse Session Protocol(MSP)通信。可用的模型由你的 Muse 配置决定。

Provider 选项

Paseo 启动 Muse 时会禁用沙箱(--disable-sandbox)并开启工作区信任(--trust-workspace)。Muse 可以使用你的 npm 缓存安装软件包,并加载项目规则、技能和配置。

在 daemon 所在机器的 config.json 中,于 agents.providers.muse.options 下为所有 Muse Agent 设置默认值:

{
  "agents": {
    "providers": {
      "muse": {
        "options": {
          "sandbox": { "enabled": true, "network": "proxy-only" },
          "trustWorkspace": false
        }
      }
    }
  }
}

创建 Agent 时,你也可以提供每个 Agent 各自的 providerOptions。daemon 会把 Provider 默认值与每个 Agent 的选项合并,并把生效的 providerOptions 传给 Muse。配置和创建方法见 Provider 选项。

每个 Agent 的选项会随 Agent 一起保存,并在刷新或恢复时打开其 Muse 主机时重新应用。无效的值和未知的键会使会话创建失败,并报告 providerOptions 错误。

选项 默认值 作用
sandbox.enabled false 启用 Muse 的文件系统和网络沙箱。沙箱中的主目录是只读的,npm 无法写入默认缓存。
sandbox.network "proxy-only" 沙箱网络策略:"proxy-only"、"restricted" 或 "enabled"。禁用沙箱时,Muse 允许完全的网络访问。
trustWorkspace true 允许 Muse 加载项目规则、技能和配置。

审批模式单独控制工具决策:Default、Ask、Strict 和 Full access。Full access 会自动允许升级的审批阶段,并保留生效的 Provider 选项。技能会和 /compact 一起出现在斜杠命令菜单中。

Muse 1.4.1 中的限制

  • Paseo MCP 工具不可用。 Muse 在匹配 MCP 调用之前丢弃了返回的工具命名空间。这是上游问题,必须先在 Muse 中修复,它的 Agent 才能使用 Paseo 工具。
  • 上下文压缩需要模型的上下文上限。 如果你的端点不报告上限,请在 Muse 中为所选模型配置 context_compaction.provider_context_limit_tokens。
  • 只有 Muse 报告用量窗口时才会显示。 usage/read 返回空响应时,订阅用量将不可用。
  • 原生子 Agent 可能需要 Muse 的实验性 SDK 开关。 如果缺少原生子 Agent 工具,请在 Provider 环境中设置 MUSE_EXPERIMENTAL_SDK_ENABLED=on。只有当 Muse 提供 childSessionId 时,关联的子会话才会出现。

要在 agents.providers.muse 下覆盖二进制文件或环境变量,请参见自定义 Provider。