Wave 3 返工:修复总工 4 条必改(cursor/goose 脚本 URL、goose 配置路径按平台选型、yaml+crushrc 编解码)

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-08-25 19:34:10 +08:00
co-authored by multica-agent
parent b0d7124170
commit 0cec468ae6
9 changed files with 271 additions and 35 deletions
+6 -1
View File
@@ -182,7 +182,12 @@
"properties": {
"path": { "type": "string", "description": "支持 ~ 与平台变量" },
"format": { "type": "string", "enum": ["toml", "json", "jsonc", "yaml", "env", "crushrc"] },
"scope": { "type": "string", "enum": ["user", "project", "system"] }
"scope": { "type": "string", "enum": ["user", "project", "system"] },
"platforms": {
"type": "array",
"items": { "type": "string", "enum": ["windows", "linux"] },
"description": "适用平台;空数组 = 全平台适用(同一 CLI 不同平台路径不同时用于按平台选型)"
}
}
}
},
+7 -1
View File
@@ -35,6 +35,12 @@ install:
package: charmbracelet.crush
elevate: never
post_checks: [detect]
- id: npm
platforms: [windows, linux]
command: [npm, install, -g, "@charmland/crush"]
package: "@charmland/crush"
elevate: never
post_checks: [detect]
- id: apt
platforms: [linux]
command: [sudo, apt-get, install, -y, crush]
@@ -98,7 +104,7 @@ diagnostics:
documentation:
quickstart_zh: 安装后配置 API Key,运行 `crush` 进入会话,或用 `crush -p "提示词"` 无头执行。
install_zh: Windows 推荐 winget `charmbracelet.crush`Ubuntu 用官方 apt 仓库(GPG)。备选 scoop / GitHub Releases(本适配器 npm 渠道按调研底稿标记为备选,非默认)
install_zh: Windows 推荐 winget `charmbracelet.crush`Ubuntu 用官方 apt 仓库(GPG)。备选 npm `@charmland/crush` / scoop / GitHub Releases
auth_zh: 仅 API Key(环境变量注入):OPENAI_API_KEY / ANTHROPIC_API_KEY 等各家模型 Key。crushrc 内也可用 export 语句。
commands:
- cmd: crush
+3 -3
View File
@@ -33,14 +33,14 @@ install:
- id: official_script
platforms: [windows]
script:
url: https://cursor.com/install.ps1
url: https://cursor.com/install?win32=true
kind: powershell_irm
elevate: never
post_checks: [detect]
- id: official_script
platforms: [linux]
script:
url: https://cursor.com/install.sh
url: https://cursor.com/install
kind: bash_pipe
elevate: never
post_checks: [detect]
@@ -119,7 +119,7 @@ diagnostics:
documentation:
quickstart_zh: 安装后运行 `agent login` 登录 Cursor 账号,或用 `agent -p "提示词"` 无头执行。
install_zh: 仅官方脚本渠道(Windows install.ps1 / Linux install.sh),无 npm。`agent` 命令随 Cursor 安装(也可在 Cursor 内「Install agent command」)。
install_zh: 仅官方脚本渠道(Windows `https://cursor.com/install?win32=true` / Linux `https://cursor.com/install`),无 npm。`agent` 命令随 Cursor 安装(也可在 Cursor 内「Install agent command」)。
auth_zh: ① 浏览器登录:`agent login``agent status` 查看状态);② API KeyCURSOR_API_KEY 环境变量或 --api-key。
commands:
- cmd: agent
+17 -9
View File
@@ -1,7 +1,7 @@
# ============================================================
# AgentDock 适配器 · GooseLinux 基金会 AAIF / Block)(Wave 3
# 数据依据:调研底稿 agent-cli-survey-2026-08-24.md + 架构 §3.3
# 注意:配置 YAMLWindows 路径差异 %APPDATA%\Block\goose\;密钥默认进系统钥匙串。
# 注意:配置 YAMLWindows 路径差异 %APPDATA%\Block\goose\config\;密钥默认进系统钥匙串。
# ============================================================
id: goose
name: Goose
@@ -14,7 +14,7 @@ license: Apache-2.0
platforms:
windows:
architectures: [x64]
notes: 官方 download_cli.ps1;配置位于 %APPDATA%\Block\goose\
notes: 官方 download_cli.ps1;配置位于 %APPDATA%\Block\goose\config\
linux:
distributions: [ubuntu]
architectures: [x64]
@@ -22,7 +22,7 @@ platforms:
official:
homepage: https://block.github.io/goose/
docs: https://block.github.io/goose/docs/
allowed_hosts: [github.com, block.github.io]
allowed_hosts: [github.com, raw.githubusercontent.com, block.github.io]
runtime_deps: []
@@ -32,14 +32,14 @@ install:
- id: official_script
platforms: [windows]
script:
url: https://github.com/block/goose/releases/download/stable/download_cli.ps1
url: https://raw.githubusercontent.com/aaif-goose/goose/main/download_cli.ps1
kind: powershell_irm
elevate: never
post_checks: [detect]
- id: official_script
platforms: [linux]
script:
url: https://github.com/block/goose/releases/download/stable/download_cli.sh
url: https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh
kind: bash_pipe
elevate: never
post_checks: [detect]
@@ -68,13 +68,20 @@ authorization:
env_keys: [ANTHROPIC_API_KEY, OPENAI_API_KEY]
notes_zh: 各家模型 API Key(密钥默认进系统钥匙串);另有订阅 ACP 接入
# 配置机制(调研底稿 Goose 章节):YAML。Windows 路径为 %APPDATA%\Block\goose\config.yaml
# Linux 为 ~/.config/goose/config.yaml。密钥默认进系统钥匙串,不写入 config.yaml。
# 配置机制(调研底稿 Goose 章节):YAML。密钥默认进系统钥匙串,不写入 config.yaml
# 按平台选型(引擎按 files[].platforms 过滤当前平台):
# Windows -> %APPDATA%\Block\goose\config\config.yaml(比旧版多一层 config\
# Linux -> ~/.config/goose/config.yaml
configuration:
files:
- path: "%APPDATA%\\Block\\goose\\config.yaml"
- path: "%APPDATA%\\Block\\goose\\config\\config.yaml"
format: yaml
scope: user
platforms: [windows]
- path: "~/.config/goose/config.yaml"
format: yaml
scope: user
platforms: [linux]
environment:
- key: ANTHROPIC_API_KEY
sensitive: true
@@ -138,6 +145,7 @@ documentation:
desc_zh: 显示版本号
updated_at: "2026-08-25"
risks_zh:
- Windows 配置路径为 %APPDATA%\Block\goose\Linux 为 ~/.config/goose/),本适配器以 Windows 路径为准
- 安装 URL 与配置路径已按官方与调研底稿核对(aaif-goose 仓库;Windows 为 %APPDATA%\Block\goose\config\config.yamlLinux 为 ~/.config/goose/config.yaml
- Windows 配置路径比旧版多一层 config\%APPDATA%\Block\goose\config\),引擎按 files[].platforms 选型
- 密钥默认进系统钥匙串,AgentDock 与之对齐,不把 Key 写入 config.yaml
- extensions / profiles 等高级配置本表单不覆盖,以官方文档为准