groove-admin-config
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- groove:managed — do not edit; changes will be overwritten by groove update -->
<!-- groove:managed — do not edit; changes will be overwritten by groove update -->
groove-admin-config
groove-admin-config
Outcome
执行结果
.groove/index.md/groove-admin-install.groove/index.md/groove-admin-installAcceptance Criteria
验收标准
- exists with all config keys populated
.groove/index.md - Each key was either confirmed by the user or accepted as default
- Git strategy is applied (written) before exiting
.groove/.gitignore - User is shown a summary of the final config and told to run
/groove-admin-install
- 已存在,且所有配置键均已填充
.groove/index.md - 每个配置键要么经用户确认,要么使用默认值
- 退出前已应用Git策略(已写入文件)
.groove/.gitignore - 向用户展示最终配置的摘要,并提示用户运行
/groove-admin-install
Steps
执行步骤
Walk the user through each config key in order. For each key: show the current value (or default if new), explain what it does, and ask to confirm or change.
按顺序引导用户完成每个配置键的设置。针对每个配置项:展示当前值(新配置则展示默认值),说明其作用,询问用户是否确认或修改。
Keys and defaults
配置项与默认值
| Key | Default | Options | Question to ask |
|---|---|---|---|
| | | "Which task backend? beans tracks tasks as markdown files in your repo." |
| | any path | "Where should groove store memory logs? (default: .groove/memory/)" |
| | | "Git strategy for memory logs? ignore-all keeps them local, hybrid commits logs but ignores sessions, commit-all commits everything." |
| | | "Git strategy for task files (.groove/tasks/)? ignore-all keeps them local, commit-all tracks them in git." |
| | | "Git strategy for hooks (.groove/hooks/)? commit-all shares hooks with the team, ignore-all keeps them local." |
After all keys are confirmed:
- Write with confirmed values and
.groove/index.mdgroove-version: <installed version> - Apply git strategy — write (see constraints)
.groove/.gitignore - Show summary of written config
- Tell user: "Run to install backends."
/groove-admin-install
| Key | Default | Options | Question to ask |
|---|---|---|---|
| | | "使用哪款任务管理后端?beans会将任务作为markdown文件存储在你的代码仓库中。" |
| | 任意路径 | "groove应该将内存日志存储在什么位置?(默认值:.groove/memory/)" |
| | | "内存日志的Git策略是什么?ignore-all将日志全部保留在本地,hybrid仅提交日志但忽略会话记录,commit-all提交所有内容。" |
| | | "任务文件(.groove/tasks/)的Git策略是什么?ignore-all将文件全部保留在本地,commit-all在Git中跟踪这些文件。" |
| | | "钩子文件(.groove/hooks/)的Git策略是什么?commit-all会将钩子共享给团队,ignore-all将钩子保留在本地。" |
所有配置项确认完成后:
- 使用确认后的配置值写入,同时添加
.groove/index.mdgroove-version: <已安装版本号> - 应用Git策略 — 写入文件(见约束条件)
.groove/.gitignore - 展示已写入的配置摘要
- 提示用户:"运行 以安装后端。"
/groove-admin-install
Constraints
约束条件
- If already exists, pre-fill each question with the current value
.groove/index.md - If run non-interactively (arguments provided), apply them without prompting: e.g.
groove-admin-config tasks=linear git.memory=hybrid - Always write matching the installed version from
groove-version:skills/groove/SKILL.md
- 如果已存在,每个询问项将预先填充当前值
.groove/index.md - 如果以非交互方式运行(已提供参数),则无需提示直接应用参数:例如
groove-admin-config tasks=linear git.memory=hybrid - 始终写入与中已安装版本匹配的
skills/groove/SKILL.md值groove-version:
Git strategy → .groove/.gitignore
.groove/.gitignoreGit策略对应.groove/.gitignore
规则
.groove/.gitignoreAfter writing , generate from the sub-keys:
.groove/index.md.groove/.gitignoregit.*| Component | Strategy | Entry added to |
|---|---|---|
| | |
| | |
| | (none) |
| | |
| | (none) |
| | |
| | (none) |
Write the generated entries to , replacing the file entirely. If no entries are generated (all ), write an empty file with a comment: .
.groove/.gitignorecommit-all# groove git strategy: commit-allAlways append these lines at the end of , regardless of strategy:
.groove/.gitignoreundefined写入后,根据子配置项生成文件:
.groove/index.mdgit.*.groove/.gitignore| Component | Strategy | Entry added to |
|---|---|---|
| | |
| | |
| | (无) |
| | |
| | (无) |
| | |
| | (无) |
将生成的条目写入,完全替换原有文件。如果没有生成任何条目(所有策略均为),则写入带注释的空文件:。
.groove/.gitignorecommit-all# groove git strategy: commit-all无论使用哪种策略,始终在末尾追加以下行:
.groove/.gitignoreundefinedcache — always local
cache — always local
.cache/*
!.cache/.gitkeep
- If `.groove/` is listed in the root `.gitignore`, warn the user: "Note: `.groove/` is in your root .gitignore — any commit-all strategies require removing it."
- Do not modify the root `.gitignore` automatically — flag it for the user to resolve.cache/*
!.cache/.gitkeep
- 如果根目录`.gitignore`中已列出`.groove/`,警告用户:"注意:`.groove/`已加入根目录.gitignore中 — 若要使用任意commit-all策略,需要将其从.gitignore中移除。"
- 不要自动修改根目录`.gitignore` — 标记该问题由用户自行解决