Commit Graph

42 Commits

Author SHA1 Message Date
0832b270fa Merge branch 'main' into task/pep-215 2026-11-20 18:49:06 +05:00
d7f7a9a72d PEP-215: доска не ждёт Gitea, сессии проекта одним запросом, обновление страницы не чаще раза в 4 с
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 17:36:40 +05:00
65a5d15aae PEP-216: Главная и «Подписки» без задержек — прогресс без запроса на проект, поток, индекс событий
Главная 80 → 30 мс, 40 запросов разом p95 2,98 → 1,12 с; «Подписки» 36 → 22 мс.
Замер на копии живой базы (apps/web/scripts/bench-pages.ts).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:31:10 +05:00
e8247924c6 PEP-207: чаты — понятно, что от меня нужно, и это можно сделать на месте
Агент не меняет статус принятой задачи (причина противоречия в PEP-204);
«Посмотреть результат» / «Принять» / «Поправить» в сообщении «готово»;
переписка сверху вниз с полем ввода внизу; строка состояния вместо служебных
сообщений; компактные события; очистка «Всех событий»; выбор проекта списком;
«Задача описана. Начать работу?».

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 00:30:02 +05:00
Асель
9afe6d4d5d PEP-174: пауза проекта — агенты, роли ИИ и уведомления стоят до «Продолжить»
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:25:21 +05:00
Асель
45754f1f23 PEP-149: message types — end of turn is progress, ask_pm with options and default, report_blocker, no «continue» button
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-16 13:05:59 +05:00
Асель
9052f3245f Merge main into task/pep-98: PEP-112…124 texts through the dictionary
Main's new wording (PEP-123 «Продакт» words) kept and wrapped in t()/m();
wording(mode, locale) gives English words for {task}/{runner} placeholders;
glossary check (pnpm lint) passes; English for all new keys (en/merge-*.ts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 22:04:39 +05:00
Асель
d729995d24 Merge main into task/pep-123 (PEP-121, PEP-112): both sides kept, new texts in the words of «Продакт»
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 20:54:48 +05:00
Асель
05dfb08b67 Merge main into task/pep-98: PEP-119 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 19:56:56 +05:00
Асель
284f1757ff Merge main into task/pep-123 (PEP-115, PEP-128): conflicts resolved, new messages in the words of «Продакт»
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:19:23 +05:00
Асель
b977e7b5b9 PEP-121: one-line agents strip for «Продакт»; subscription names only for a superadmin and the one who connected it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 19:11:04 +05:00
Асель
2dcd16da3a PEP-119: «Продакт» mode by default and «Инженер» by choice — project tabs, menu, no dev badges, 720 px; union merge for shared docs
One clean commit on top of main (the branch history had an intermediate commit with conflict markers).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:50:34 +05:00
Асель
8e9ee4d813 Merge main into task/pep-98: PEP-115 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 18:35:08 +05:00
Асель
2c957631e8 PEP-123: wording by view — «задача»/«агент» for «Продакт», «вы» everywhere; engineer-only project settings
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 18:05:34 +05:00
Асель
7ec9fe9bc5 PEP-115: comment on a backlog story goes to the analyst — description reworked, answer in the discussion
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:38:49 +05:00
Асель
805dd6020a PEP-119: «Продакт» mode by default and «Инженер» by choice — project tabs, menu, no dev badges, 720 px
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 17:34:59 +05:00
Асель
8ff54d6363 Merge main into task/pep-98: PEP-111/114 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 16:32:40 +05:00
Асель
c739e877f5 PEP-114: a page opened before the site was updated asks to be reloaded
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 15:58:52 +05:00
Асель
905aeb912d Merge main into task/pep-98: PEP-106 discussion texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:36:29 +05:00
Асель
6f1cec5bc1 PEP-106: project discussion — a plain chat of the project's people, with unread counts and notifications
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 15:12:02 +05:00
Асель
1b0f6063cb Merge main into task/pep-98: PEP-94/97/100/101/102 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:11:59 +05:00
Асель
1f16286dca PEP-98: English for web, bot, notifications and runner messages; product name «Peppa FACTORY» everywhere
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:47:50 +05:00
Асель
355c5b19b2 PEP-98: i18n core — dictionaries, localizeText, user locale, web provider, bot and push localization, i18n-check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:25:03 +05:00
2a977bcc46 Merge pull request 'PEP-95: выкинуть всех пользователей из веба' (#89) from task/pep-95 into main 2026-11-15 14:24:09 +05:00
Асель
feeeb908e5 PEP-95: peppa web logout-all — every web session issued before the cut-off ends
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:00:05 +05:00
Асель
664054c217 PEP-94: the PM is a product person — no technical questions, no waiting for approval; Proposal is «План» in the UI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 13:56:25 +05:00
Асель
3159e888d2 PEP-90: sign in and register with Google (OAuth code + PKCE), link with eGov in Settings
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 12:40:26 +05:00
Асель
044d6b9bf6 PEP-89: «Агенты за работой» — the agent's name and story up front, run details folded
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-15 00:13:03 +05:00
Асель
57d7857d94 PEP-71: login only through eGov, unknown IIN registers an account
Gitea and password login are gone from the web; the first eGov login creates a
Peppa account (login from the certificate name). Projects of self-registered
owners run agents only on a subscription pool, never on the machine login.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 17:57:02 +05:00
Асель
14916079bc PEP-5/43/47/48: usage and limits, story budgets, factory metrics, audit journal
- PEP-5: statusLine hook (cost, context, 5h/7d limit windows), transcript tokens,
  sessions.usage, usage strip over every page, runner usage, bot /status, MCP get_usage
- PEP-43: project/story budgets in settings, watchdog pause (Escape, question to the PM:
  extend x2 / remove limit / stop), start/resume guard, budget on the story card
- PEP-47: project metrics tab (cycle time, first pass, review returns, questions, runner
  hours, PM wait, limits, spend by week/agent/epic), MCP get_metrics
- PEP-48: event authors (actor columns, AsyncLocalStorage context), question_answered,
  /journal for superadmins, project journal tab, authors in the story feed
- Migration 0007_usage_audit; OpenSpec changes archived

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:52:13 +05:00
Асель
5a8948d01e PEP-52: command palette ⌘K, keyboard shortcuts, /help/shortcuts; help for board order, dependencies, planner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:29:00 +05:00
Асель
3b86c00768 PEP-34/42: web — board drag order, collapsed Done, epic progress, archive, dependencies, plan page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:29:00 +05:00
Асель
4a80d9dc6b PEP-32/33/37: story page tabs, live agent step feed, SSE live updates instead of 5 s polling
- PEP-37: change hub (runner/live.ts) woken by notify() (new 'web' subscriber) and
  PRAGMA data_version; per-scope fingerprints; GET /api/live SSE (no-transform, ping 15 s);
  LiveRefresh replaces AutoRefresh with a connection indicator and polling fallback
- PEP-33: async PostToolUse/PostToolUseFailure hook -> 'step' events (last 200 per
  session), AgentSteps live feed on the story page and runner panel, tasks.md progress
  on board cards and the story header
- PEP-32: story page header + tabs Proposal/Design/Specs/Tasks/Comments/Tests/Merge
  request/Activity, safe Markdown renderer, PM comments visible in get_task, edit
  title/description/epic, accept-and-merge (acceptStory)
- OpenSpec changes archived; specs live-updates, agent-steps, story-page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:59:15 +05:00
Асель
ed49767c31 PEP-65: eGov QR login through the KazEDS relay (sign.aitu.uz)
Login page and Settings → eGov: relay session with a server-side challenge/nonce, QR + eGov Mobile
deep link, polling, one-shot completion; IIN from the signer's certificate (own DER reader),
users.egov_iin. The relay is trusted (PM decision): no own XMLDSig check. CLI peppa user egov,
mock-kazeds-relay, tests. Dev mode: /_next/static is no-store (Cloudflare cached stale chunks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 01:14:10 +05:00
Асель
b517072362 UI: stories only — goals removed from the web (project page, board cards, task page)
Goals stay in the DB and MCP for now (agent context, Bugsink); PEP-66 turns them into epic labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 00:44:55 +05:00
Асель
d3a54fc845 PEP-38: runners console — filter counters, search, limit resume time, details panel
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:40:27 +05:00
Асель
28fbde4add PEP-38: console foundation — Tailwind v4, shadcn/ui components, dark theme, three-panel layout
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:21:43 +05:00
Асель
73966e7e99 PEP-16: only allowlisted people can log into Peppa
- platform.allowed_logins (default asel, 7601978, dana): allowlisted logins,
  project invitees and members, and local CLI accounts may log in
- enforced in the Gitea OAuth callback, on every web request (removal takes
  effect at once) and on every remote MCP request (401)
- CLI: peppa platform allowlist | allow <login> | deny <login>
- tests: one per spec scenario (69 e2e total, green)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 03:38:08 +05:00
Асель
56b6224587 PEP-12: share projects with other users
- project_members / project_invites; owner adds people by Gitea login,
  invitations are applied at first login; members get the owner's access
  except member management; a member can leave
- access everywhere via projectForUser / userProjectIds (owner or member):
  web inbox, sessions, project pages, MCP
- shareProject / unshareProject: login checked in Gitea, repo collaborator
  (write) added by the owner's client or peppa-bot; missing admin rights
  don't block membership (repoAccess flag)
- web: Members block on the project page, 'shared' badge; MCP:
  list_members, add_member, remove_member; Help updated
- tests: 5 sharing journeys on mock-gitea (64 e2e total, green); test DB
  now also clears users and OAuth clients between files
- OpenSpec: pep-12 archived (project-sharing, web-auth)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-12 22:35:56 +05:00
Асель
39367b1d82 PEP-8: remote MCP for ChatGPT with Peppa as OAuth 2.1 server
- OAuth: RFC 8414/9728 metadata, RFC 7591 dynamic registration,
  authorization code + PKCE S256 with a consent screen after Gitea login,
  refresh token rotation; tokens and codes stored hashed; revoke in web
- /mcp: stateless Streamable HTTP, Bearer → user; PM tools from
  @peppa/mcp/manager: projects, goals, tasks, create, move (board
  semantics, starts agents), inbox, answer/accept — owner-scoped
- login keeps ?next= through Gitea OAuth; Settings page with MCP URL and
  connected apps
- 5 new tests (53 e2e total, green); verified on prod as a client:
  DCR → consent → token → MCP over HTTPS → revoke → 401
- OpenSpec: pep-8 archived into spec remote-mcp

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:38:09 +05:00
Асель
00c8f79a36 PEP-7: autonomous mode — board moves start agents, PM only for stoppers
- web board (Backlog / In progress / Review / Done) with drag-and-drop and
  buttons; moveTask starts an agent on In progress, stops on Backlog/Done
- routine proposals go straight to apply; request_approval/ask_pm only for
  architectural stoppers (RULES.md, MCP hints, template pushed to Gitea)
- Stop hook keeps the agent going (decision: block, max 2 in a row,
  sessions.auto_nudges reset by a human answer) instead of pinging the PM
- review: ready-for-review message with Accept (acceptTask → done, session
  stopped) in Telegram and web; a text reply goes back to the agent
- mock-claude honours Stop-hook block; 6 new e2e tests (48 total, green)
- OpenSpec: pep-7 archived (task-autonomy, web-workspace board)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:21:11 +05:00
Асель
2b0f2fd984 PEP-1: web platform with Gitea login, projects, goals, tasks, sessions
- web: Gitea OAuth2 login, signed session cookie, everything behind login;
  inbox with answers, project board (goals → tasks), task page with
  OpenSpec artifacts, questions and session controls; new project form;
  auto-refresh, light/dark, mobile
- users + projects.owner_id; tokens AES-256-GCM encrypted; owner-only access
- provisionProject (runner): new or existing Gitea repo, peppa-bot
  collaborator, template + openspec init, push, rollback; used by web and
  peppa project create (replaces scripts/bootstrap-project.sh)
- peppa web login-link, peppa project owner; Gitea OAuth app script
- bins/template resolved via PEPPA_ROOT (works inside the Next build)
- testkit: mock-gitea + 10 tests (42 e2e total, all green)
- OpenSpec: pep-1-web-platform archived into specs web-auth,
  project-provisioning, web-workspace

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:55:02 +05:00