Skip to content
Apothem
工具适配器

Windsurf

适用于 Windsurf(正式版)的 Apothem 工具适配器。

厂商: Codeium 安装名称: windsurf 状态: 正式版 平台原生配置: <project>/.devin/rules/apothem-rules.md

安装

apothem install --harness windsurf --project /path/to/project

该适配器从共享的 Apothem 规则与治理面,写入一个项目级的 Windsurf 规则文件。

写入的文件: <project>/.devin/rules/apothem-rules.md

配置档案到平台原生配置的映射

在每次 apothem installapothem update 运行时,适配器都会读取 Apothem 的共享配置档案并渲染项目规则文件。共享配置档案是事实来源;在下一次同步替换 Apothem 所管理的内容之前,对生成文件的项目本地编辑会先被备份。

兼容性说明

Windsurf 当前的规则面是项目级的,位于 .devin/rules/ 之下。 工作流和机器本地的记忆由操作者所有;Apothem 不会写入它们。 单文件形式的 .windsurfrules 出于设计考虑不会被写入。

验证

apothem verify --harness windsurf --project /path/to/project

verify 命令确认:

  1. 平台原生配置存在于预期路径。
  2. 共享配置档案中的所有必需字段均存在。
  3. 适配器专属的验证例程报告成功。

更新

apothem update --harness windsurf --project /path/to/project

从当前的共享配置档案状态重新派生项目规则文件。

卸载

apothem uninstall --harness windsurf --project /path/to/project

移除适配器写入的平台原生配置文件。 共享配置档案 YAML 和 Apothem 引擎不受影响。

合规门

python -m apothem.conformity.gate --all .

故障排查

症状修复方法
找不到配置文件重新运行 apothem install --harness windsurf --project /path/to/project
验证失败运行 apothem update --harness windsurf --project /path/to/project,然后再次验证
意外的配置内容检查 ~/.config/apothem/profile.yaml--profile PATH,然后重新运行 apothem update --harness windsurf --project /path/to/project

配置开关

标志默认值说明
--dry-runfalse预览安装而不写入文件。

On this page