尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Source of truth for the poker-trainer POC: a personal-first NLHE cash drill trainer (no live play, no solver in the web app). pnpm monorepo — Next.js App Router UI plus static strategy packs. Solvers never ship in the deployable web app or Vercel/Docker web image.
Default pack: packs/toy-6max-expand v0.5.0 (ships_solver_code: false). The browser loads the copy under apps/web/public/packs.
pnpm i
pnpm --filter @poker-trainer/pack-format build
pnpm test
pnpm dev # syncs packs, then http://localhost:3000
No .env is required. Do not commit secrets.
Other commands:
| Command | What it does |
|---|---|
pnpm build | Build pack-format, sync packs into public/, build Next app |
pnpm test | Vitest: PackManifest + drill pack schema + scoring |
pnpm typecheck | tsc --noEmit in packages |
pnpm validate-packs | CLI validate toy packs, including toy-6max-expand, and weeklock |
Requires Node 20+ and pnpm.
apps/web/ Next.js UI (Vercel Hobby target)
packages/pack-format/ Zod PackManifest (CDN) + compact drill spots + scoring
packs/toy-6max-expand/ Default drill pack v0.5.0 (synced → public/packs)
packs/toy-6max/ Slice-1 compact drill JSON
packs/toy-6max-multistreet/ Flop/turn/river practice nodes
packs/weeklock/ Week-lock fixture
packs/examples/… Full PackManifest fixture (CAS blob refs)
tools/pack-builder/ Stub only — offline/CI solver runner lives here later
tools/generate-toy-expand/ Regenerates toy expand / multistreet JSON
apps/web/scripts/sync-packs.mjs copies packs/ → apps/web/public/packs/ (predev and prebuild).
MVP ($0): compact drill packs under packs/ (default toy-6max-expand v0.5.0) are copied to apps/web/public/packs and fetched by the browser. No object store required.
Production target: Cloudflare R2 (not wired in this slice):
packs/{pack_id}/{version}/manifest.json
blobs/{sha256} # content-addressed, Cache-Control: immutable
Schema: packages/pack-format/src/manifest.ts (schema_version, pack_id, ships_solver_code: false, blob sha256 refs, provenance, …). Validate with validatePackManifest. Toy drill UI keeps a separate compact spot JSON path (DrillPackSchema / validatePack) so demos stay simple.
Never put AGPL solvers (TexasSolver, postflop-solver, …) in the web Docker/Vercel image. Separate pack-builder (offline/CI) vs web. Pack artifacts = manifest + blobs only. See NOTICE and pack provenance.ships_solver_code: false.
Live drills grade with gradeDrillNode only.
EV loss (bb) = max(0, bestEv − chosenEv).
localStorage key poker-trainer:user holds { id, display_name, created_at, pack_prefs } — shape documented for a later Postgres users table. Saved drill settings: poker-trainer:saved-drill.
.github/workflows/ci.yml on push to main and on pull requests: pnpm i --frozen-lockfile → pack-format build → pnpm test → pnpm typecheck → sync packs → web build. No solver install.
tools/pack-builder job that emits PackManifest + blobsaws s3 sync compatible) with immutable blob cache headersuser_id stub