TODO: mark phase 2 complete — settings types, read, write, effective, tests.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -131,11 +131,11 @@
|
||||
|
||||
### Фаза 2 — Настройки
|
||||
|
||||
- [ ] **settings.ts types** — `SkillReinjectSettings` + defaults из §7.3 (`enabled`, `trackReadPaths`, `triggerTurn`, `reinjectOnManualCompaction`, `autoCompactIntegration`, `suffix`)
|
||||
- [ ] **settings.ts read** — merge global + project из `ctx` / Pi settings API; зачем: не читать файл вручную, если API даёт merged view
|
||||
- [ ] **settings.ts writeGlobal** — merge в `~/.pi/agent/settings.json` без затирания чужих ключей; зачем: `/skill-reinject global on`
|
||||
- [ ] **settings.ts effective** — `effectiveEnabled(sessionOverride, global)`, `effectiveIntegration(...)`; зачем: три слоя §5.1
|
||||
- [ ] **test/settings.test.ts** — defaults, merge write (mock/temp file); зачем: §12.1
|
||||
- [x] **settings.ts types** — `SkillReinjectSettings` + defaults из §7.3 (`enabled`, `trackReadPaths`, `triggerTurn`, `reinjectOnManualCompaction`, `autoCompactIntegration`, `suffix`)
|
||||
- [x] **settings.ts read** — merge global + project из `ctx` / Pi settings API; зачем: не читать файл вручную, если API даёт merged view
|
||||
- [x] **settings.ts writeGlobal** — merge в `~/.pi/agent/settings.json` без затирания чужих ключей; зачем: `/skill-reinject global on`
|
||||
- [x] **settings.ts effective** — `effectiveEnabled(sessionOverride, global)`, `effectiveIntegration(...)`; зачем: три слоя §5.1
|
||||
- [x] **test/settings.test.ts** — defaults, merge write (mock/temp file); зачем: §12.1
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user