41 lines
1.3 KiB
Markdown
41 lines
1.3 KiB
Markdown
<!-- BEGIN:nextjs-agent-rules -->
|
||
# This is NOT the Next.js you know
|
||
|
||
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
|
||
<!-- END:nextjs-agent-rules -->
|
||
|
||
# Boss 项目接手规则
|
||
|
||
先读:
|
||
|
||
1. `README.md`
|
||
2. `docs/architecture/ai_handoff_index_cn.md`
|
||
3. `docs/architecture/current_runtime_and_deploy_status_cn.md`
|
||
4. `docs/architecture/api_and_service_inventory_cn.md`
|
||
|
||
当前有效实现:
|
||
|
||
- Web MVP:`src/app`、`src/components`、`src/lib`
|
||
- 本地设备端:`local-agent`
|
||
- 部署资产:`deployment`、`scripts`
|
||
|
||
当前不是有效运行时:
|
||
|
||
- `docs/source-material`
|
||
- `deploy`
|
||
- `src/boss_control`
|
||
- `src/boss_device_agent`
|
||
|
||
运行与部署约束:
|
||
|
||
- Web 当前使用文件存储:`data/boss-state.json`
|
||
- 本地 agent 当前通过 `launchd` 常驻:`com.hyzq.boss.local-agent`
|
||
- 服务器固定是 `106.53.170.158`
|
||
- 优先使用 skill:`$HOME/.codex/skills/boss-server-debug/SKILL.md`
|
||
|
||
如果你要继续开发:
|
||
|
||
- 先验证 `npm run build` 和 `npm run lint`
|
||
- 先看当前路由和 API,再改文档
|
||
- 对服务器、域名和 HTTPS 的判断以 `docs/architecture/current_runtime_and_deploy_status_cn.md` 为准,不要沿用旧上下文
|