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
+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 等高级配置本表单不覆盖,以官方文档为准