chore: 导入旧记忆备份供恢复

This commit is contained in:
2026-09-23 22:38:40 +08:00
parent 5313fcee7a
commit 6a6a895eaf
638 changed files with 29816 additions and 1 deletions
@@ -0,0 +1,30 @@
---
title: 代码与构建规则
type: rule
permalink: main/projects/6f47523e-e22e-4cdd-bd18-76e5e474ee0c/代码与构建规则
stable_id: ce9006a3-2313-411f-b577-10bbb9b9c3bb
scope: project
memory_type: rule
project_id: 6f47523e-e22e-4cdd-bd18-76e5e474ee0c
usage_profile_id: 7aee455b-24cc-4008-bdaf-443721e6f939
status: active
revision: 1
request_id: migrate-rule-02
created_at: '2026-08-12T17:20:23.365811+00:00'
updated_at: '2026-08-12T17:20:23.365811+00:00'
tags:
- rules
- build
- validation
---
1. 构建仅支持 Windows 10/11 + WSL2 + Docker Desktop(Linux 容器)。
2. 环境依赖:Python 3.11+、Node.js 20 LTS+、npm、Git、Docker。
3. 依赖安装:npm install && pip install -r requirements.txt(或 uv sync)。
4. start.py 始终使用当前 Python 解释器,不强制 uv。
5. 编译 feeds 只接受 HTTPS Git 地址,源名称和分支名称必须合法(见 FEED_NAME_RE、FEED_URL_RE、BRANCH_RE)。
6. 包名必须匹配 PACKAGE_RE;已知别名在 PACKAGE_ALIASES 中。
7. .runtime/ 已 gitignore,但包含敏感配置(Wi-Fi、PPPoE、Root 密码),不应提交。
8. tests/ 已 gitignore,项目暂无自动化测试。
9. 前端可用 npm run typecheck 进行 TypeScript 类型检查。
10. 构建产物输出到 outputs/ax9000/,网页构建另外打包为时间戳 ZIP。