Commit 24a724f
committed
refactor: restructure into domain-based sub-packages
Reorganize 16 flat root files into 4 logical sub-packages:
## New Structure
```
src/qoder_autopilot/
├── cli.py, register.py, errors.py ← root (orchestration + core)
├── auth/ ← Authentication & Identity
│ ├── oauth.py (OAuth device flow)
│ ├── identity.py (Faker identity gen)
│ ├── credentials.py (Creds storage)
│ └── otp.py (OTP extraction)
├── infra/ ← Infrastructure & Integration
│ ├── config.py (Settings)
│ ├── user_config.py (Config CRUD)
│ ├── ninerouter.py (9Router SQLite)
│ ├── temp_mail.py (Mail providers)
│ └── relay.py (Relay FastAPI server)
├── setup/ ← Setup & Diagnostics
│ ├── first_run.py (Welcome wizard)
│ ├── deploy.py (Worker deployment)
│ └── doctor.py (Health check)
├── utils/ ← Shared Utilities
│ └── logger.py (Logging + verbosity)
├── browser/ ← (unchanged)
├── captcha/ ← (unchanged)
└── worker_template/ ← (unchanged)
```
## Changes
- 11 files moved to sub-packages
- All relative imports updated across 27 source + 7 test files
- Test mock.patch paths updated (relay monkeypatch)
- Pre-existing test lint issues fixed (unused imports, sort)
- No behavior changes, no public API changes
- No version bump (pure internal refactor)1 parent 8bc4f36 commit 24a724f
34 files changed
Lines changed: 102 additions & 98 deletions
File tree
- src/qoder_autopilot
- auth
- browser
- captcha
- infra
- setup
- utils
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
34 | 35 | | |
35 | | - | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Whitespace-only changes.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
File renamed without changes.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments