Skip to content

Commit baae5e7

Browse files
committed
feat: 熵减 Entropydecrease 品牌迁移与全仓规范化重构
迁移阶段 1-15 全量成果续接课伴历史:品牌重命名(客户端/网关/同步服务/官网/CI)、巨型文件拆分归零(§1)、@ai-context 全覆盖(§3)、docs 重组(10 目录→4)、main/dev 分支策略落地(.releaserc/workflows/husky+commitlint)、仓库更名联动修复(electron-updater 源/官网链接)。用户数据标识(keban.db 等)永久豁免保留。
1 parent 2ce52dc commit baae5e7

861 files changed

Lines changed: 143234 additions & 111501 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.env.example‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ===========================================
2-
# 课伴 (KeBan) MVP-2 Alpha 环境变量模板
2+
# 熵减 (Entropydecrease) 环境变量模板
33
# ===========================================
44
# 复制此文件为 .env 并填入实际值
55

@@ -54,10 +54,10 @@ AI_GATEWAY_PORT=8000
5454
# --- 生产部署配置 ---
5555

5656
# CORS 允许的前端域名(多个用逗号分隔)
57-
# CORS_ORIGINS=https://keban.app,https://www.keban.app
57+
# CORS_ORIGINS=https://entropydecrease.com,https://www.entropydecrease.com
5858

5959
# 前端 API 基础 URL(生产环境设置为后端服务域名)
60-
# VITE_API_BASE_URL=https://api.keban.app
60+
# VITE_API_BASE_URL=https://api.entropydecrease.com
6161

6262
# 日志级别(DEBUG/INFO/WARNING/ERROR)
6363
# LOG_LEVEL=INFO

‎.gitattributes‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*.png filter=lfs diff=lfs merge=lfs -text
1+
*.png filter=lfs diff=lfs merge=lfs -text

‎.github/workflows/deploy-server.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy AI Gateway
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
paths: ['server/**']
77

88
jobs:
@@ -21,7 +21,7 @@ jobs:
2121
username: ${{ secrets.SERVER_USER }}
2222
key: ${{ secrets.SSH_PRIVATE_KEY }}
2323
script: |
24-
cd /opt/keban
24+
cd /opt/entropydecrease
2525
docker-compose pull
2626
docker-compose up -d --force-recreate
2727
sleep 10

‎.github/workflows/deploy-website.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy Website
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
paths: ['website/**']
77

88
jobs:
@@ -29,7 +29,7 @@ jobs:
2929
host: ${{ secrets.SERVER_HOST }}
3030
username: ${{ secrets.SERVER_USER }}
3131
key: ${{ secrets.SSH_PRIVATE_KEY }}
32-
script: mkdir -p /opt/keban/website
32+
script: mkdir -p /opt/entropydecrease/website
3333

3434
- name: Upload static files to server
3535
uses: appleboy/scp-action@v0.1.7
@@ -38,7 +38,7 @@ jobs:
3838
username: ${{ secrets.SERVER_USER }}
3939
key: ${{ secrets.SSH_PRIVATE_KEY }}
4040
source: website/out/*
41-
target: /opt/keban/website
41+
target: /opt/entropydecrease/website
4242
strip_components: 2
4343
rm: true
4444

@@ -52,7 +52,7 @@ jobs:
5252
# scp 的 rm:true 会重建挂载目录导致 bind mount 失效,必须重启容器
5353
docker restart entropy-decrease-nginx
5454
sleep 5
55-
curl -sf https://entropydecrease.com/ | grep -q "课伴" || exit 1
55+
curl -sf https://entropydecrease.com/ | grep -q "熵减" || exit 1
5656
5757
- name: Notify IndexNow
5858
run: |

‎.github/workflows/pr-check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: PR Quality Check
22

33
on:
44
pull_request:
5-
branches: [master]
5+
branches: [main, dev]
66

77
jobs:
88
# ===========================================================================

‎.github/workflows/release.yml‎

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
name: Release Electron App
2-
3-
# 由 semantic-release 创建的 v* tag 触发:构建 Electron 安装包并附加到对应 Release
4-
on:
5-
push:
6-
tags: ['v*']
7-
8-
# 上传构建产物到 GitHub Release 需要写权限
9-
permissions:
10-
contents: write
11-
12-
jobs:
13-
lint-test:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20
20-
cache: 'npm'
21-
cache-dependency-path: client/package-lock.json
22-
- run: cd client && npm ci
23-
- run: cd client && npm run lint
24-
- run: cd client && npm run test -- --run
25-
26-
build:
27-
needs: lint-test
28-
strategy:
29-
matrix:
30-
os: [windows-latest, macos-latest]
31-
runs-on: ${{ matrix.os }}
32-
steps:
33-
- uses: actions/checkout@v4
34-
- uses: actions/setup-node@v4
35-
with:
36-
node-version: 20
37-
cache: 'npm'
38-
cache-dependency-path: client/package-lock.json
39-
- run: cd client && npm ci
40-
- run: cd client && npm run electron:build
41-
- uses: actions/upload-artifact@v4
42-
with:
43-
name: release-${{ matrix.os }}
44-
path: client/release/*.{exe,dmg,AppImage}
45-
46-
release:
47-
needs: build
48-
runs-on: ubuntu-latest
49-
steps:
50-
- uses: actions/download-artifact@v4
51-
with:
52-
pattern: release-*
53-
- uses: softprops/action-gh-release@v2
54-
with:
55-
files: release-*/*
1+
name: Release Electron App
2+
3+
# 由 semantic-release 创建的 v* tag 触发:构建 Electron 安装包并附加到对应 Release
4+
on:
5+
push:
6+
tags: ['v*']
7+
8+
# 上传构建产物到 GitHub Release 需要写权限
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
lint-test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
cache: 'npm'
21+
cache-dependency-path: client/package-lock.json
22+
- run: cd client && npm ci
23+
- run: cd client && npm run lint
24+
- run: cd client && npm run test -- --run
25+
26+
build:
27+
needs: lint-test
28+
strategy:
29+
matrix:
30+
os: [windows-latest, macos-latest]
31+
runs-on: ${{ matrix.os }}
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: 20
37+
cache: 'npm'
38+
cache-dependency-path: client/package-lock.json
39+
- run: cd client && npm ci
40+
- run: cd client && npm run electron:build
41+
- uses: actions/upload-artifact@v4
42+
with:
43+
name: release-${{ matrix.os }}
44+
path: client/release/*.{exe,dmg,AppImage}
45+
46+
release:
47+
needs: build
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/download-artifact@v4
51+
with:
52+
pattern: release-*
53+
- uses: softprops/action-gh-release@v2
54+
with:
55+
files: release-*/*

‎.github/workflows/version-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Version & Release
66
# 自动更新 package.json/package-lock.json、生成 CHANGELOG、创建 Git tag 与 GitHub Release。
77
on:
88
push:
9-
branches: [master]
9+
branches: [main]
1010

1111
# 同一分支串行执行,避免并发发布产生 tag/版本竞争
1212
concurrency:

‎.gitignore‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Thumbs.db
3535
.env.local
3636
.env.*.local
3737
.env.production
38+
.env.test
3839

39-
# Documentation (local only, not version controlled)
40-
docs/
40+
# Brainstorm scratch (personal notes)
4141
brainstorm*.md
4242
ui_brainstorm.md
4343

‎.husky/commit-msg‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit "$1"

‎.husky/pre-commit‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

0 commit comments

Comments
 (0)