Split app.py into modules #20
Labels
No labels
documentation
feature
infrastructure
manual-work
tech-debt
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hiten/claude-code-pwa#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
app.pyis one 770-line file. It works but is now the longest file by far and routes / tmux / claude-registry / git / state are all interleaved.Acceptance Criteria
pwa/__init__.pypwa/main.py(FastAPI app, routes)pwa/tmux.py(subprocess helpers)pwa/claude.py(registry parsing, URL building, descendant discovery)pwa/git.py(per-cwd git status with cache)pwa/state.py(history / state / URL cache load + save)pwa/config.pyapp.pybecomes a thin entrypoint, or replace withpython -m pwaDepends on
T1 (need tests as a safety net before refactoring)