mirror of
https://github.com/lbr77/SideImpactor.git
synced 2026-05-06 11:14:01 -04:00
refactor directory
This commit is contained in:
10
AGENTS.md
10
AGENTS.md
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user