mirror of
https://github.com/Dasemu/vnpipe.git
synced 2026-11-26 23:36:32 +00:00
feat: extract vnpipe pipeline from faust-vn
Generic "classic novels to visual novels" pipeline extracted from faust-vn (source commit 6486ab1). The work-specific data (Faust text, annotations, assets, generated project) stays in faust-vn. Changes versus the source: --work defaults to the current directory, the renpy command writes to <work root>/vn, the Ren'Py SDK is located through RENPY_SDK, and tests only use fixtures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
ff78dc5b14
68 files changed
+7727
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# CLAUDE.md
|
||||
|
||||
`vnpipe`: work-agnostic pipeline that turns a public-domain text into a Ren'Py visual novel.
|
||||
Works (texts) live in their own repos, e.g. `../Faust-VN`.
|
||||
|
||||
## Rules
|
||||
- Repo content in English; game text comes from the source and is never rewritten.
|
||||
- Nothing work-specific in `src/vnpipe`: no hard-coded work ids, paths, characters or text.
|
||||
Work details go in the work's `work.toml`.
|
||||
- Every stage must be deterministic and idempotent; LLM/image outputs are cached by input hash.
|
||||
- Data contracts live in `src/vnpipe/schemas/*.schema.json`; change schema + tests together.
|
||||
- Tests use only `tests/fixtures/`; never depend on a real work's data.
|
||||
|
||||
## Commands
|
||||
- `uv sync` — install. `uv run pytest` — tests. `uv run ruff check . && uv run ruff format --check .` — lint.
|
||||
- `uv run vnpipe --help` — CLI (`--work` defaults to the current directory). Stages: `fetch`,
|
||||
`parse`, `annotate {chunk,status,prompt,merge}`, `assets {...}`, `renpy [--with-test]`
|
||||
(default output `<work>/vn`).
|
||||
- Ren'Py SDK: set `RENPY_SDK` to the unpacked SDK directory (tests that need it are skipped
|
||||
otherwise; fallback `tools/renpy-sdk`). See `docs/running.md`.
|
||||
- In the sandbox: `export UV_CACHE_DIR=$TMPDIR/uv-cache`.
|
||||
|
||||
## Branches and versions
|
||||
- `development` is the integration branch; `main` receives reviewed merges from it.
|
||||
Feature work branches off `development` (`feat/...`, `fix/...`).
|
||||
- `VERSION` is bumped by `.github/workflows/version.yml` on push. Do not edit it by hand.
|
||||
- CI (`.github/workflows/ci.yml`) runs ruff and pytest.
|
||||
|
||||
## Layout
|
||||
`src/vnpipe/` code, `schemas/`, `prompts/`, `renpy_templates/`; `tests/`; `docs/`
|
||||
(see `docs/pipeline.md`).
|
||||
Reference in new issue
Block a user