Secondary-dev Next UI with DnD, labels, stopwatch, archive, activity; pads with revisions; README documents pnpm dev:work-api. Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
2.1 KiB
Markdown
30 lines
2.1 KiB
Markdown
# Nomadro agent notes
|
||
|
||
Follow `.cursor/rules/*.mdc`。
|
||
|
||
**发版核心:`nomadro.com`(美国机)**。`.com` 分中文/国际受众;中文轨测稳后再**独立同步** `.cn`(中国机)。未点名域名时默认部署 `.com`,见 `com-first-deploy.mdc`。链路:`.com` → `.cn`(Next) → Taro H5 → 微信/抖音/小红书(微信为中国核心)。
|
||
|
||
**对外标准面**:`/api/public/v1` + `@nomadro/sdk` + `@nomadro/mcp` + `.cursor/skills/nomadro-platform`(工具 SoT `packages/sdk/tools.json`)。文档 [`docs/public-api.md`](docs/public-api.md)。
|
||
|
||
| Layer | Path |
|
||
|---|---|
|
||
| Next portal(.com 主 / .cn 同步) | `src/app` + `src/modules` |
|
||
| Remote work | 读 Planka/Etherpad 域模型后自研:Next `src/modules/work` + FastAPI `apps/api/services/work_svc`(`/api/work/v1`,`work_main.py :8021`)。禁止 iframe/二级域 |
|
||
| Taro H5 SoT | `apps/miniprogram/h5`(weapp 共用 `../h5/src`) |
|
||
| Unified API | `apps/api` |
|
||
| Admin SPA (.cn) | `apps/admin` → `admin.nomadro.cn`(微信 / 抖音) |
|
||
| **.com 隔离树** | `apps/com/*`(美国 VPS · **无小程序**);`apps/com/admin` → `admin.nomadro.com` |
|
||
| Shared | `packages/{pay,pb,sdk}` |
|
||
|
||
## Dev
|
||
|
||
根目录:`pnpm install` → `pnpm dev` / `dev:h5` / `dev:admin` / `dev:admin-com` / `dev:api` / `typecheck` / `clean`。
|
||
|
||
Remote config: `POST /api/config/pull` · `WS /api/config/ws` · offline defaults. Current WeChat audit branch/tag: `test9` / `2026-11-02`. Do not reintroduce deleted vertical trees (`payjsapi` / `community-api` / `ebook` / `navmini` / `nomadweb` / `nomadvip` / `wemini`).
|
||
|
||
**全端小程序禁止 web-view**(微信 / 抖音 / 小红书 / H5 SoT):业务内容必须原生页;见 `.cursor/rules/no-webview-content.mdc`。
|
||
|
||
**受众模块**:`src/modules/audience/{cn,intl}` — 支付/登录/关注/文案/VIP/埋点/社群全模块化;`resolveAudienceBundle()`。后台登录后选 `/cn`|`/intl`。见 `audience-cn-intl.mdc`。
|
||
|
||
H5 游戏(Nomad Day 3D)冷冻:勿改 `apps/miniprogram/h5/src/modules/game` / `pages/game`,除非用户明确要求。
|