refactor directory

This commit is contained in:
LiBr
2026-04-10 08:53:51 +08:00
parent 41d3f700b9
commit 8d31144741
215 changed files with 938 additions and 1836 deletions

View File

@@ -8,14 +8,16 @@
- Use `bun` for all Node.js dependency and script operations.
## Project Layout
- Core npm package source: `src/`
- High-level iMobileDevice interactions: `src/core/imobiledevice-client.ts`
- Core npm package source: `dependencies/webmuxd/src/`
- High-level iMobileDevice interactions: `dependencies/webmuxd/src/core/imobiledevice-client.ts`
- Browser demo app: `frontend/`
- Cloudflare Workers demo backend: `backend/`
- OpenSSL Rust/WASM project: `wasm/openssl/`
## Key Rule: Avoid Logic Duplication
- Do not re-implement usbmux/lockdown/AFC/InstProxy protocol logic in `frontend`.
- `frontend/src/main.ts` must consume root package exports from `webmuxd`.
- If behavior changes are needed, modify root package logic first, then wire it in frontend.
- `frontend/src/main.ts` must consume workspace package exports from `webmuxd`.
- If behavior changes are needed, modify `dependencies/webmuxd/` first, then wire it in frontend.
## Build & Validate
- Root build: `bun run build`