- bot: own Bot API client, long polling with persisted offset, updates claimed before acting (no replay after restart), outbox with retries (429 retry_after, 5xx), /start pairing code (hashed, single use, 10 min), only the paired chat/user is served - PM questions rendered per kind: approve button / reply to reject, option buttons, allow/always/deny, alerts with continue or resume/stop; messages are closed with who answered what, incl. terminal answers - stopping/resuming a session expires its open questions - CLI: peppa telegram pair|status|unpair; launchd agent for the bot - testkit: mock-telegram + 11 bot journeys (32 e2e tests, all green) - fix: keep the tmux server alive when empty (exit-empty off) — a new session could die with a server shutting down after the last kill - fix: test env must load before runner modules (no leaks to real tmux) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
469 B
JSON
20 lines
469 B
JSON
{
|
|
"name": "@peppa/testkit",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"typecheck": "tsc -p .",
|
|
"test": "tsx --test --test-concurrency=1 test/*.test.ts"
|
|
},
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
"@peppa/core": "workspace:*",
|
|
"@peppa/db": "workspace:*",
|
|
"@peppa/runner": "workspace:*",
|
|
"@peppa/shared": "workspace:*",
|
|
"drizzle-orm": "0.45.4",
|
|
"@peppa/bot": "workspace:*"
|
|
}
|
|
}
|