peppa/openspec/changes/pep-261-access-request-buttons/tasks.md

12 lines
906 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 1. Ядро
- [ ] 1.1 `rights`/`term` в выдаче по запросу (`grantFor`, `grantAccessFromExisting`, `connectAndGrantAccess`), `grantAccessByButton`, кнопки в `announceAccessRequest` и `accessRequestKeyboard`
- [ ] 1.2 Текст агенту о решении — со сроком; подсказка `request_access` при `expired`/`idle_revoked`
## 2. Каналы
- [ ] 2.1 Бот: `ar:<id>:r|f`, `ar:<id>:r|f:<срок>`, `ar:<id>:back`
- [ ] 2.2 Веб: кнопки в «Агенты просят доступ», права и срок на карточке запроса; переводы en/kk
## 3. Проверка
- [ ] 3.1 Тест `access-request-buttons.test.ts` (Telegram: чтение на 1 день → вызов → истёк; чужой; нет подключения; веб-карточка)
- [ ] 3.2 lint, typecheck, затронутые тесты