Peppa platform: web, MCP, runner, bot
Go to file
Асель 3a282b8054 PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres
- packages/db: schema on sqlite-core (timestamps as epoch ms → Date, JSON as text,
  booleans 0/1), one baseline migration; node:sqlite client under drizzle's
  better-sqlite3 session (busy_timeout first, WAL, BEGIN IMMEDIATE, retries on
  SQLITE_BUSY, lazy open, async transaction callbacks refused); PEPPA_DB
  (default ~/.peppa/peppa.db)
- live updates: notify() pokes the bot over a unix socket; the bot also watches
  PRAGMA data_version every second (writes by other processes)
- Postgres specifics ported: createTask transaction is synchronous, no
  `for update skip locked`, `count(*)`, json_extract instead of ->>, json_each
  instead of @>
- `peppa db migrate` and `peppa db migrate-to-sqlite <file>` (read-only
  snapshot of Postgres, FK order from the schema, row count + foreign key
  checks, file appears only when they pass); old Postgres schema kept in
  packages/cli/legacy-pg-migrations for the migration and its test
- daily VACUUM INTO backup from the watchdog (7 copies, admin alert on failure)
- tests: a temp SQLite file per test file; storage.test.ts (20 processes,
  per-project numbering across processes, socket/data_version, migration from
  Postgres incl. a dangling foreign key, backups); two test races fixed
- CI: no per-run Postgres database; PEPPA_TEST_PG only for the migration test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 17:23:24 +05:00
.agents/skills Bootstrap Peppa monorepo, DB schema, OpenSpec and project template 2026-11-12 19:13:16 +05:00
.claude/skills Bootstrap Peppa monorepo, DB schema, OpenSpec and project template 2026-11-12 19:13:16 +05:00
.gitea PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
.peppa PEP-57: Peppa on its own pipeline — CI via project checks and peppa-check.sh; 4.2 moved to PEP-18 2026-11-13 16:59:04 +05:00
apps PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
bench/sqlite PEP-36: PM decision — Node 26 + node:sqlite; drizzle shim and check 2026-11-13 16:28:59 +05:00
docs Plans for PEP-56 (limit auto-resume), PEP-57 (CI/CD), PEP-58 (Bugsink) and handoff notes 2026-11-12 23:05:45 +05:00
infra PEP-58: Bugsink — production errors become Peppa incidents and tasks 2026-11-13 14:31:32 +05:00
openspec PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
packages PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
scripts PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
template PEP-57: CD — deploy workflow, preview/staging/prod, health check and rollback, releases 2026-11-13 14:49:24 +05:00
.env.example PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
.gitignore Bootstrap Peppa monorepo, DB schema, OpenSpec and project template 2026-11-12 19:13:16 +05:00
.mcp.json PEP: manage Peppa through Peppa; OpenSpec change for PEP-1 2026-11-12 20:40:09 +05:00
AGENTS.md PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
CLAUDE.md Add Codex provider, mock agents and end-to-end CJM suite 2026-11-12 20:09:43 +05:00
package.json PEP-36 stage 1: run Peppa with Node 26 type stripping instead of tsx 2026-11-13 16:51:22 +05:00
pnpm-lock.yaml PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
pnpm-workspace.yaml Bootstrap Peppa monorepo, DB schema, OpenSpec and project template 2026-11-12 19:13:16 +05:00
README.md PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
tsconfig.base.json PEP-36 stage 1: run Peppa with Node 26 type stripping instead of tsx 2026-11-13 16:51:22 +05:00

Peppa

Софтвейр-фабрика на Claude Code + OpenSpec. Подробности — в CLAUDE.md.

pnpm install
cp .env.example .env      # GITEA_TOKEN и т.д.
pnpm db:migrate          # SQLite в ~/.peppa/peppa.db (PEPPA_DB)
scripts/push-template.sh  # залить template/ в Gitea
peppa project create demo DEMO "Demo project"