@jetthai/cuora 1.1.441-dev.0 → 1.1.441
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/auto-git-flow.md +12 -5
- package/.claude/commands/commit-push.md +4 -15
- package/.claude/commands/sync-ai-prompts.md +1 -88
- package/.claude/settings.local.json +1 -3
- package/.claude/worktrees/geemee-sendpixel/.claude/commands/auto-git-flow.md +52 -0
- package/.claude/worktrees/geemee-sendpixel/.claude/commands/commit-push.md +174 -0
- package/.claude/worktrees/geemee-sendpixel/.claude/commands/create-branch.md +142 -0
- package/.claude/worktrees/geemee-sendpixel/.claude/commands/sync-ai-prompts.md +93 -0
- package/.claude/worktrees/geemee-sendpixel/.claude/settings.local.json +23 -0
- package/.claude/worktrees/geemee-sendpixel/.github/copilot-instructions.md +696 -0
- package/.claude/worktrees/geemee-sendpixel/.husky/post-checkout +32 -0
- package/.claude/worktrees/geemee-sendpixel/.husky/pre-commit +2 -0
- package/.claude/worktrees/geemee-sendpixel/.husky/pre-push +36 -0
- package/.claude/worktrees/geemee-sendpixel/.prettierignore +1 -0
- package/.claude/worktrees/geemee-sendpixel/.prettierrc +7 -0
- package/.claude/worktrees/geemee-sendpixel/AGENTS.md +696 -0
- package/.claude/worktrees/geemee-sendpixel/AI_PROMPT_SOURCE.md +758 -0
- package/.claude/worktrees/geemee-sendpixel/CHANGELOG.md +1779 -0
- package/.claude/worktrees/geemee-sendpixel/CLAUDE.md +696 -0
- package/.claude/worktrees/geemee-sendpixel/GEMINI.md +696 -0
- package/.claude/worktrees/geemee-sendpixel/README.md +308 -0
- package/.claude/worktrees/geemee-sendpixel/docs/kibana/crypto-way-deposit-amount-bug-analysis.md +1003 -0
- package/.claude/worktrees/geemee-sendpixel/docs/kibana/play-providerId-error.md +202 -0
- package/.claude/worktrees/geemee-sendpixel/docs/kibana/play-selectedWalletType.md +1 -0
- package/.claude/worktrees/geemee-sendpixel/docs/kibana/play-selectedWalletType_2.md +1 -0
- package/.claude/worktrees/geemee-sendpixel/docs/kibana/play-selectedWalletType_analysis.md +565 -0
- package/.claude/worktrees/geemee-sendpixel/package-lock.json +2455 -0
- package/.claude/worktrees/geemee-sendpixel/package.json +34 -0
- package/.claude/worktrees/geemee-sendpixel/scripts/auto-version.js +68 -0
- package/.claude/worktrees/geemee-sendpixel/scripts/auto-version.sh +33 -0
- package/.claude/worktrees/geemee-sendpixel/scripts/branch-auto-npm-publish.js +29 -0
- package/.claude/worktrees/geemee-sendpixel/scripts/check-version.sh +36 -0
- package/.claude/worktrees/geemee-sendpixel/scripts/clean-tags.sh +59 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/account.js +8 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/activity.js +128 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/auth.js +63 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/common.js +17 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/form.js +3 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/game.js +114 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/index.js +13 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/mailbox.js +24 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/otp.js +5 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/payment.js +262 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/ranking.js +27 -0
- package/.claude/worktrees/geemee-sendpixel/src/api/user.js +69 -0
- package/.claude/worktrees/geemee-sendpixel/src/index.js +7 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/activity.js +209 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/activity_cash.js +181 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/cash_rain_activity.js +153 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/continue_deposit_activity.js +146 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/deposit_activity.js +95 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/diamond_shop_activity_cash.js +179 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/diamond_shop_activity_fc.js +196 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/diamond_shop_activity_vn.js +178 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/fafafa_activity.js +208 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/friend_invite_friends_activity.js +287 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/index.js +51 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/instant_rebate_activity.js +209 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/invite_friends_activity.js +114 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/jackpot.js +74 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/mini_game_activity.js +68 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/otp_verified_activity.js +74 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/ranking_activity.js +105 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/return_bonus_activity.js +153 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/roulette_activity_v2.js +95 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/sign_in_activity.js +157 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/sign_in_monthly_activity.js +65 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/specify_bets_activity.js +157 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/specify_turnover_activity.js +136 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/time_bomb_activity.js +89 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/activity/vip_card_activity.js +187 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/auth.js +592 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/auth_otp_v2.js +177 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/auth_otp_v3.js +300 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/bank_binding.js +277 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/bank_binding_amb.js +146 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/bonus.js +76 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/common.js +418 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/amb.js +93 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/crypto_bank.js +330 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/crypto_bank_cash.js +307 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/crypto_qrcode.js +148 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/crypto_qrcode_cash.js +131 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/crypto_way.js +252 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/crypto_way_cash.js +296 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/deposit_fc.js +272 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/direct.js +310 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/direct_cash.js +225 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/float.js +375 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/index.js +49 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/krway.js +151 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/loadcard_cash.js +215 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/loadcard_vn.js +351 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/manual_cash.js +364 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/manual_vn.js +458 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/qrcode_cash.js +225 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/qrcode_v2.js +338 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/usdt.js +144 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/usdt_cash.js +138 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/virtual_bank_cash.js +209 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/virtual_bank_vn.js +269 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/deposit/vpay.js +368 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/error.js +112 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/game_betslip.js +46 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/game_favorite_v2.js +160 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/game_hot_new.js +79 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/game_info.js +61 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/game_replay.js +46 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/game_search_cash.js +401 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/game_search_v2.js +401 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/game_v2_1.js +699 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/honor_board.js +132 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/honor_board_cash.js +89 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/inbox.js +489 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/index.js +89 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/leaderboard.js +130 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/merge.js +57 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/navbar.js +126 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/payment_data.js +86 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/promotions.js +170 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/ranking.js +219 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/reward.js +255 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/reward_cash.js +276 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/reward_fc.js +98 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/roulette_v2.js +280 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/setting.js +47 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/side.js +154 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/side_cash.js +111 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/side_v2.js +209 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/user_info.js +64 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/user_photo.js +65 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/user_reset_password.js +231 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/user_sign_up.js +244 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/vip_table.js +57 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/websocket.js +361 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/welcome.js +110 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/withdraw/index.js +11 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/withdraw/withdraw_crypto_cash.js +327 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/withdraw/withdraw_krway.js +223 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/withdraw/withdraw_manual.js +536 -0
- package/.claude/worktrees/geemee-sendpixel/src/machine/withdraw/withdraw_manual_cash.js +324 -0
- package/.claude/worktrees/geemee-sendpixel/src/request/config.js +41 -0
- package/.claude/worktrees/geemee-sendpixel/src/request/request.js +365 -0
- package/.claude/worktrees/geemee-sendpixel/src/util/constant.js +20 -0
- package/.claude/worktrees/geemee-sendpixel/src/util/index.js +6 -0
- package/.claude/worktrees/geemee-sendpixel/src/util/math.js +4 -0
- package/.claude/worktrees/geemee-sendpixel/src/util/storage.js +42 -0
- package/.github/copilot-instructions.md +399 -551
- package/.husky/post-checkout +3 -3
- package/.husky/pre-push +1 -1
- package/.prettierignore +1 -2
- package/AGENTS.md +399 -551
- package/AI_PROMPT_SOURCE.md +130 -662
- package/CHANGELOG.md +24 -220
- package/CLAUDE.md +399 -551
- package/GEMINI.md +399 -551
- package/README.md +137 -40
- package/package.json +1 -1
- package/scripts/auto-version.js +0 -1
- package/src/api/activity.js +0 -10
- package/src/machine/activity/activity_cash.js +3 -18
- package/src/machine/common.js +15 -1
- package/src/machine/ranking.js +25 -43
- package/src/machine/user_sign_up.js +3 -1
|
@@ -13,19 +13,25 @@ git checkout master
|
|
|
13
13
|
git fetch --prune
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
刪除已合併至 master 的 remote 分支(排除 master/qa/dev/HEAD):
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
git branch -r --merged master | grep -v -E "(master|dev|
|
|
19
|
+
git branch -r --merged origin/master | grep -v -E "(master|qa|dev|HEAD)" | sed 's/origin\///' | xargs -r -I {} git push origin --delete {}
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
刪除已合併至 master 的 local 分支(排除 master/qa/dev):
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
git branch --merged master | grep -v -E "^\*?\s*(master|dev
|
|
25
|
+
git branch --merged master | grep -v -E "^\*?\s*(master|qa|dev)$" | xargs -r git branch -d
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
### Step 5 — 刪除不合規 tags
|
|
29
|
+
|
|
30
|
+
執行 `scripts/clean-tags.sh` 清理不符合正式版號格式的本地及遠端 tags:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
sh scripts/clean-tags.sh
|
|
34
|
+
```
|
|
29
35
|
|
|
30
36
|
---
|
|
31
37
|
|
|
@@ -42,4 +48,5 @@ git checkout master
|
|
|
42
48
|
回報以下資訊:
|
|
43
49
|
|
|
44
50
|
- 刪除了多少已合併分支
|
|
51
|
+
- 刪除了多少不合規 tags
|
|
45
52
|
- 當前所在分支
|
|
@@ -145,20 +145,9 @@ git commit -m "<title>" -m "<body>"
|
|
|
145
145
|
|
|
146
146
|
---
|
|
147
147
|
|
|
148
|
-
## Step 7 —
|
|
148
|
+
## Step 7 — 執行 Push
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
- **Push** — 立即 push 到遠端
|
|
153
|
-
- **Skip** — 跳過 push,僅完成 commit
|
|
154
|
-
|
|
155
|
-
等待使用者選擇。
|
|
156
|
-
|
|
157
|
-
---
|
|
158
|
-
|
|
159
|
-
## Step 8 — 執行 Push(如使用者選擇 Push)
|
|
160
|
-
|
|
161
|
-
如果使用者選擇 Skip,跳過此步驟直接到 Step 9。
|
|
150
|
+
Commit 完成後直接執行 push,不需詢問使用者。
|
|
162
151
|
|
|
163
152
|
將 commit push 到遠端:
|
|
164
153
|
|
|
@@ -176,10 +165,10 @@ git push --set-upstream origin <current_branch>
|
|
|
176
165
|
|
|
177
166
|
---
|
|
178
167
|
|
|
179
|
-
## Step
|
|
168
|
+
## Step 8 — 完成回報
|
|
180
169
|
|
|
181
170
|
顯示以下資訊:
|
|
182
171
|
|
|
183
172
|
- 分支名稱
|
|
184
173
|
- Commit message 內容
|
|
185
|
-
- Push
|
|
174
|
+
- Push 結果(成功/失敗)
|
|
@@ -6,96 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
## Step 0 — 分析專案並更新 AI_PROMPT_SOURCE.md
|
|
10
|
-
|
|
11
|
-
在同步之前,先掃描專案的實際狀態,確保 `AI_PROMPT_SOURCE.md` 中的數據與程式碼一致。
|
|
12
|
-
|
|
13
|
-
### Part A — 數據校準
|
|
14
|
-
|
|
15
|
-
驗證並更新文件中的統計數據,確保與程式碼一致:
|
|
16
|
-
|
|
17
|
-
1. **版本號**:讀取 `package.json` 的 `version` 欄位,更新文件中的版本號
|
|
18
|
-
2. **檔案數量統計**:
|
|
19
|
-
- `src/` 下的 `.js` 檔案總數
|
|
20
|
-
- `src/api/` 檔案數
|
|
21
|
-
- `src/machine/` 檔案總數(含子目錄),以及狀態機數量(= 總數 - index 檔案數)
|
|
22
|
-
- `src/machine/activity/`、`src/machine/deposit/`、`src/machine/withdraw/` 各自檔案數
|
|
23
|
-
- `src/util/` 檔案數
|
|
24
|
-
3. **API 函式數量**:對每個 `src/api/*.js` 模組,計算 `=>` 的出現次數以統計函式數
|
|
25
|
-
4. **行數驗證**:驗證以下檔案的實際行數:
|
|
26
|
-
- `src/request/request.js`、`src/request/config.js`
|
|
27
|
-
- 所有超過 300 行的狀態機檔案(用於「大型狀態機檔案」表格)
|
|
28
|
-
5. **supportVersion2List 端點數**:計算 `request.js` 中 `supportVersion2List` 陣列的實際項目數
|
|
29
|
-
6. **specifyingPath 映射數**:計算 `_convertUrlToKebabCase` 中 `specifyingPath` 的 key 數量
|
|
30
|
-
7. **關鍵行號參照**:驗證文件中引用的行號(如 `request.js:207`、`request.js:254` 等)是否仍然正確,若偏移則更新
|
|
31
|
-
8. **依賴套件版本**:讀取 `package.json` 的 `dependencies`,更新版本號
|
|
32
|
-
|
|
33
|
-
### Part B — Know-How 與架構驗證
|
|
34
|
-
|
|
35
|
-
檢查 `1.7 核心業務流程與關鍵 Know-How` 章節的內容是否仍然反映程式碼的實際行為:
|
|
36
|
-
|
|
37
|
-
1. **認證流程**:讀取 `src/machine/auth.js`,驗證:
|
|
38
|
-
|
|
39
|
-
- Token TTL、輪詢間隔、延展機制是否有變
|
|
40
|
-
- inline vs login 狀態判斷邏輯(`rank >= 0`)是否有變
|
|
41
|
-
- 登入方式是否有新增或移除(檢查全域 `on:` 事件列表)
|
|
42
|
-
- OTP 流程是否有調整
|
|
43
|
-
|
|
44
|
-
2. **存款流程**:抽樣讀取 2-3 個 deposit 狀態機,驗證:
|
|
45
|
-
|
|
46
|
-
- canonical 流程(loading → promotion → loaded → debouncing → calculating → submitting → submitted)是否有變
|
|
47
|
-
- Cash vs Non-Cash 變體的差異描述是否仍然正確
|
|
48
|
-
- 是否有新增的存款類型或支付方式
|
|
49
|
-
|
|
50
|
-
3. **提款流程**:讀取 `src/machine/withdraw/withdraw_manual.js`,驗證:
|
|
51
|
-
|
|
52
|
-
- 五步驟資格驗證鏈是否有調整
|
|
53
|
-
- OTP 平行狀態是否有變
|
|
54
|
-
|
|
55
|
-
4. **WebSocket**:讀取 `src/machine/websocket.js`,驗證:
|
|
56
|
-
|
|
57
|
-
- 連線參數、重連策略是否有變
|
|
58
|
-
- 事件轉發映射表是否有新增事件
|
|
59
|
-
|
|
60
|
-
5. **Error Machine**:讀取 `src/machine/error.js`,驗證:
|
|
61
|
-
|
|
62
|
-
- 錯誤代碼分類是否有新增
|
|
63
|
-
- 路由邏輯是否有調整
|
|
64
|
-
|
|
65
|
-
6. **Common Machine**:讀取 `src/machine/common.js`,驗證:
|
|
66
|
-
|
|
67
|
-
- 4 個平行子機器的結構是否有變
|
|
68
|
-
- siteConfig 解碼方式是否有變
|
|
69
|
-
|
|
70
|
-
7. **API 請求生命週期**:讀取 `src/request/request.js`,驗證:
|
|
71
|
-
|
|
72
|
-
- 攔截器邏輯、V2 轉換流程是否有變
|
|
73
|
-
- isBlocked 維護模式機制是否有變
|
|
74
|
-
|
|
75
|
-
8. **新增狀態機**:比對 `src/machine/` 目錄與文件中的狀態機分類表,若有新增檔案:
|
|
76
|
-
- 判斷歸類(核心/存款/提款/活動/遊戲/使用者/UI)
|
|
77
|
-
- 更新分類表中的數量與代表檔案
|
|
78
|
-
|
|
79
|
-
### Part C — Clean Code 規範驗證
|
|
80
|
-
|
|
81
|
-
檢查「二、程式碼品質標準」中列出的問題是否已修正:
|
|
82
|
-
|
|
83
|
-
1. **已修正的問題**:若問題已被修正(如 HTTP 方法大小寫已統一),將該項標記為已修正或移除
|
|
84
|
-
2. **新增的問題**:若發現新的程式碼品質問題,添加到對應章節
|
|
85
|
-
|
|
86
|
-
### 執行方式
|
|
87
|
-
|
|
88
|
-
- 使用 shell 指令(`wc -l`、`grep -c`、`find` 等)取得實際數據
|
|
89
|
-
- 使用 Agent subagent 平行分析多個核心檔案
|
|
90
|
-
- 將每項差異直接修正到 `AI_PROMPT_SOURCE.md` 中
|
|
91
|
-
- 若無差異則跳過,不做無意義修改
|
|
92
|
-
- 完成後簡短回報哪些項目有更新
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
9
|
## Step 1 — 讀取來源檔
|
|
97
10
|
|
|
98
|
-
讀取 `AI_PROMPT_SOURCE.md`
|
|
11
|
+
讀取 `AI_PROMPT_SOURCE.md` 完整內容。
|
|
99
12
|
|
|
100
13
|
---
|
|
101
14
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Auto Git Flow
|
|
2
|
+
|
|
3
|
+
請依序執行每個步驟進行完整的清理流程,每步執行前先告知使用者當前進度。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Phase 1: 清理
|
|
8
|
+
|
|
9
|
+
### Step 1 — 刪除已合併到 master 的分支
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
git checkout master
|
|
13
|
+
git fetch --prune
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
刪除已合併至 master 的 remote 分支(排除 master/qa/dev/HEAD):
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
git branch -r --merged origin/master | grep -v -E "(master|qa|dev|HEAD)" | sed 's/origin\///' | xargs -r -I {} git push origin --delete {}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
刪除已合併至 master 的 local 分支(排除 master/qa/dev):
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
git branch --merged master | grep -v -E "^\*?\s*(master|qa|dev)$" | xargs -r git branch -d
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Step 5 — 刪除不合規 tags
|
|
29
|
+
|
|
30
|
+
執行 `scripts/clean-tags.sh` 清理不符合正式版號格式的本地及遠端 tags:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
sh scripts/clean-tags.sh
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Phase 2: 完成
|
|
39
|
+
|
|
40
|
+
### Step 2 — 回報結果
|
|
41
|
+
|
|
42
|
+
切回 master 分支,顯示完成摘要:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
git checkout master
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
回報以下資訊:
|
|
49
|
+
|
|
50
|
+
- 刪除了多少已合併分支
|
|
51
|
+
- 刪除了多少不合規 tags
|
|
52
|
+
- 當前所在分支
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Commit & Push
|
|
2
|
+
|
|
3
|
+
執行 git commit 和 push 流程,支援多種 commit message 生成方式。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Step 1 — 同步遠端分支
|
|
8
|
+
|
|
9
|
+
檢查當前分支的遠端是否有更新:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
git fetch origin
|
|
13
|
+
git status
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
如果本地已經是最新(沒有 behind commits),直接進入 Step 2。
|
|
17
|
+
|
|
18
|
+
如果遠端有更新(本地 behind),執行 pull:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
git pull
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
如果 pull 發生衝突:
|
|
25
|
+
|
|
26
|
+
1. 取消 merge:
|
|
27
|
+
```bash
|
|
28
|
+
git merge --abort
|
|
29
|
+
```
|
|
30
|
+
2. 告知使用者:「遠端有更新且與本地變更衝突,請先還原當前所有檔案的異動,還原完成後請回覆。」
|
|
31
|
+
3. 等待使用者回覆。
|
|
32
|
+
4. 使用者回覆後,重新執行 pull:
|
|
33
|
+
```bash
|
|
34
|
+
git pull
|
|
35
|
+
```
|
|
36
|
+
5. Pull 成功後,告知使用者:「遠端同步完成,請將剛才還原的異動重新加回,完成後請回覆。」
|
|
37
|
+
6. 等待使用者回覆確認已全部加回,再繼續後續流程。
|
|
38
|
+
|
|
39
|
+
出現錯誤則停止,詢問使用者要怎麼做。
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Step 2 — 檢查工作區狀態
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
git status
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
如果沒有任何變更(工作區乾淨),告知使用者「沒有需要提交的變更」並停止。
|
|
50
|
+
|
|
51
|
+
如果有變更,顯示變更檔案清單給使用者確認。
|
|
52
|
+
|
|
53
|
+
出現錯誤則停止,詢問使用者要怎麼做。
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Step 3 — Stage 變更
|
|
58
|
+
|
|
59
|
+
將所有變更加入 staging area:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
git add -A
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
出現錯誤則停止,詢問使用者要怎麼做。
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Step 4 — 選擇 Commit Message 方式
|
|
70
|
+
|
|
71
|
+
使用 `AskUserQuestion` 工具顯示選單,讓使用者從以下選項中選擇:
|
|
72
|
+
|
|
73
|
+
- **自動生成** — AI 根據異動自動生成,直接使用
|
|
74
|
+
- **自動生成 + 修改** — AI 自動生成後,顯示給使用者確認或修改
|
|
75
|
+
- **手動輸入** — 完全由使用者手動輸入 commit message
|
|
76
|
+
|
|
77
|
+
使用者也可以選擇「Other」輸入自訂指示,AI 會根據指示和異動內容生成 commit message 並顯示給使用者確認。
|
|
78
|
+
|
|
79
|
+
等待使用者選擇。
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Step 5 — 生成 Commit Message
|
|
84
|
+
|
|
85
|
+
根據使用者在 Step 3 的選擇執行:
|
|
86
|
+
|
|
87
|
+
### 選項 1 或 2:自動生成
|
|
88
|
+
|
|
89
|
+
分析 `git diff --cached` 的內容,生成符合 Conventional Commits 格式的 commit message:
|
|
90
|
+
|
|
91
|
+
- 格式:`type(scope): description`
|
|
92
|
+
- type:feat / fix / refactor / style / docs / chore / perf / test
|
|
93
|
+
- scope:根據變更的主要目錄或功能模組決定(可省略)
|
|
94
|
+
- description:簡潔描述變更內容(中文)
|
|
95
|
+
|
|
96
|
+
當變更涉及多個不同類型或模組時,自行分類並以條列式呈現:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
type(scope): 主要描述
|
|
100
|
+
|
|
101
|
+
- type(scope): 細項描述 1
|
|
102
|
+
- type(scope): 細項描述 2
|
|
103
|
+
- type(scope): 細項描述 3
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
例如:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
feat(payment): 新增加密貨幣存款功能
|
|
110
|
+
|
|
111
|
+
- feat(deposit): 新增 USDT 存款方式
|
|
112
|
+
- fix(withdraw): 修正提款金額驗證邏輯
|
|
113
|
+
- style(modal): 調整存款彈窗樣式
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
如果是選項 2,將生成的 message 顯示給使用者,等待使用者確認或提供修改後的版本。
|
|
117
|
+
|
|
118
|
+
### 選項 3:手動輸入
|
|
119
|
+
|
|
120
|
+
等待使用者輸入完整的 commit message。
|
|
121
|
+
|
|
122
|
+
### 選項 4:其他
|
|
123
|
+
|
|
124
|
+
等待使用者輸入自訂指示,然後結合 `git diff --cached` 的異動內容,根據使用者的指示生成 commit message,顯示給使用者確認或修改。
|
|
125
|
+
|
|
126
|
+
出現錯誤則停止,詢問使用者要怎麼做。
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Step 6 — 執行 Commit
|
|
131
|
+
|
|
132
|
+
使用確定的 commit message 執行 commit:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
git commit -m "<commit_message>"
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
如果 commit message 包含多行,使用:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
git commit -m "<title>" -m "<body>"
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
出現錯誤則停止,詢問使用者要怎麼做。
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Step 7 — 執行 Push
|
|
149
|
+
|
|
150
|
+
Commit 完成後直接執行 push,不需詢問使用者。
|
|
151
|
+
|
|
152
|
+
將 commit push 到遠端:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
git push
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
如果當前分支沒有設定 upstream,使用:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
git push --set-upstream origin <current_branch>
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
出現錯誤則停止,詢問使用者要怎麼做。
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Step 8 — 完成回報
|
|
169
|
+
|
|
170
|
+
顯示以下資訊:
|
|
171
|
+
|
|
172
|
+
- 分支名稱
|
|
173
|
+
- Commit message 內容
|
|
174
|
+
- Push 結果(成功/失敗)
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# Create Branch
|
|
2
|
+
|
|
3
|
+
從目前 HEAD 建立新分支(feat / fix / hotfix),**建立後切換到該分支**。
|
|
4
|
+
|
|
5
|
+
- 分支命名:
|
|
6
|
+
- `feat` → `feat/well/{子名稱}`
|
|
7
|
+
- `fix` → `fix/well/{子名稱}`
|
|
8
|
+
- `hotfix` → `hotfix/{版號}`(例如 `hotfix/1.1.562`)
|
|
9
|
+
|
|
10
|
+
請依序執行每個步驟,每步執行前先告知使用者當前進度。
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Step 1 — 檢查工作區是否乾淨(忽略 submodule)
|
|
15
|
+
|
|
16
|
+
若有未提交的變更(staged、unstaged、untracked),立即終止並提醒使用者先處理(commit 或 stash)。**忽略 submodule 變更。**
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
git status --porcelain --ignore-submodules=all
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
若輸出非空,停止後續步驟並回報:
|
|
23
|
+
|
|
24
|
+
- 工作區目前有未提交的變更,為避免遺失,已中止操作
|
|
25
|
+
- 列出 `git status --short --ignore-submodules=all` 的結果
|
|
26
|
+
- 建議使用者先 `git commit` 或 `git stash` 後再重新執行
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Step 2 — 詢問 branch 類型
|
|
31
|
+
|
|
32
|
+
使用 `AskUserQuestion` 工具,讓使用者選擇 branch 類型:
|
|
33
|
+
|
|
34
|
+
- 問題:`請選擇要建立的 branch 類型?`
|
|
35
|
+
- header:`Branch 類型`
|
|
36
|
+
- 選項:
|
|
37
|
+
- `feat` — 新功能開發
|
|
38
|
+
- `fix` — Bug 修正
|
|
39
|
+
- `hotfix` — 緊急修復
|
|
40
|
+
|
|
41
|
+
將使用者選擇的答案儲存為 `<BRANCH_TYPE>`。
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Step 3 — 決定最終 branch 名稱
|
|
46
|
+
|
|
47
|
+
依 `<BRANCH_TYPE>` 分支處理:
|
|
48
|
+
|
|
49
|
+
### 若 `<BRANCH_TYPE>` 為 `hotfix`
|
|
50
|
+
|
|
51
|
+
使用 `AskUserQuestion` 工具,請使用者透過「Other」選項輸入版號:
|
|
52
|
+
|
|
53
|
+
- 問題:`請輸入 hotfix 版號(例如:1.1.562)?`
|
|
54
|
+
- header:`Hotfix 版號`
|
|
55
|
+
- 選項:
|
|
56
|
+
- 提供 1~2 個範例選項讓使用者參考(例如 `1.0.0`、`1.1.562`)
|
|
57
|
+
- 明確提示使用者應該選「Other」自行輸入
|
|
58
|
+
|
|
59
|
+
將使用者輸入的值儲存為 `<HOTFIX_VERSION>`。
|
|
60
|
+
|
|
61
|
+
**驗證規則**:
|
|
62
|
+
|
|
63
|
+
- 不可為空
|
|
64
|
+
- 必須符合 `^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$` 格式(不含 `v` 前綴)
|
|
65
|
+
- 若不符合規則,請使用者重新輸入
|
|
66
|
+
|
|
67
|
+
組合:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
<FINAL_BRANCH_NAME> = hotfix/<HOTFIX_VERSION>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
例如 `hotfix/1.1.562`。跳到 Step 4。
|
|
74
|
+
|
|
75
|
+
### 若 `<BRANCH_TYPE>` 為 `feat` 或 `fix`
|
|
76
|
+
|
|
77
|
+
使用 `AskUserQuestion` 工具,請使用者透過「Other」選項自行輸入 branch 子名稱:
|
|
78
|
+
|
|
79
|
+
- 問題:`請輸入 branch 子名稱(例如:login-fix、header-refactor)?`
|
|
80
|
+
- header:`子名稱`
|
|
81
|
+
- 選項:
|
|
82
|
+
- 提供 2 個範例選項讓使用者參考(例如 `example-feature`、`example-bug`)
|
|
83
|
+
- 明確提示使用者應該選「Other」自行輸入
|
|
84
|
+
|
|
85
|
+
將使用者輸入的值儲存為 `<BRANCH_SUBNAME>`。
|
|
86
|
+
|
|
87
|
+
**驗證規則**:
|
|
88
|
+
|
|
89
|
+
- 不可為空
|
|
90
|
+
- 只允許英文字母、數字、連字號(`-`)、底線(`_`)、斜線(`/`)
|
|
91
|
+
- 若不符合規則,請使用者重新輸入
|
|
92
|
+
|
|
93
|
+
組合:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
<FINAL_BRANCH_NAME> = <BRANCH_TYPE>/well/<BRANCH_SUBNAME>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
範例:
|
|
100
|
+
|
|
101
|
+
- `feat/well/login-page`
|
|
102
|
+
- `fix/well/header-layout`
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Step 4 — 檢查 branch 是否已存在
|
|
107
|
+
|
|
108
|
+
檢查 `<FINAL_BRANCH_NAME>` 是否已存在(本地或遠端):
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
git rev-parse --verify <FINAL_BRANCH_NAME> 2>/dev/null
|
|
112
|
+
git ls-remote --exit-code --heads origin <FINAL_BRANCH_NAME> 2>/dev/null
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
若已存在,停止並告知使用者:
|
|
116
|
+
|
|
117
|
+
- hotfix 場景:該版號的 hotfix 分支已存在,建議改用其他版號或先處理舊分支再重試
|
|
118
|
+
- feat / fix 場景:建議改用其他子名稱
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Step 5 — 建立新 branch 並切換
|
|
123
|
+
|
|
124
|
+
從目前 HEAD 建立新分支,**並切換到該分支**:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
git checkout -b <FINAL_BRANCH_NAME>
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
若失敗則停止並回報原因。
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Step 6 — 回報結果
|
|
135
|
+
|
|
136
|
+
顯示完成摘要:
|
|
137
|
+
|
|
138
|
+
- 新 branch 名稱:`<FINAL_BRANCH_NAME>`
|
|
139
|
+
- 基於的 commit SHA(短版,`git log -1 --pretty=format:'%h'`)與訊息首行(`git log -1 --pretty=format:'%s'`)
|
|
140
|
+
- 已切換到新分支
|
|
141
|
+
- 提示使用者:
|
|
142
|
+
- 若要推送到遠端,可執行 `git push -u origin <FINAL_BRANCH_NAME>`
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Sync AI Prompts
|
|
2
|
+
|
|
3
|
+
將 `AI_PROMPT_SOURCE.md` 的內容同步到各 AI 工具的指令檔。
|
|
4
|
+
|
|
5
|
+
⚠️ 只修改 `AI_PROMPT_SOURCE.md` 作為唯一來源,其他檔案皆由此指令自動生成。
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Step 1 — 讀取來源檔
|
|
10
|
+
|
|
11
|
+
讀取 `AI_PROMPT_SOURCE.md` 完整內容。
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Step 2 — 同步 CLAUDE.md
|
|
16
|
+
|
|
17
|
+
將 `AI_PROMPT_SOURCE.md` 的內容**翻譯成英文**,並轉換為 CLAUDE.md 格式:
|
|
18
|
+
|
|
19
|
+
**翻譯規則**:同 Step 3。
|
|
20
|
+
|
|
21
|
+
**格式調整**:
|
|
22
|
+
|
|
23
|
+
- 第一行標題改為 `# CLAUDE.md`
|
|
24
|
+
- 第二行加上 `<!-- AUTO-SYNCED FROM AI_PROMPT_SOURCE.md — DO NOT EDIT DIRECTLY -->`
|
|
25
|
+
- 描述行改為:`This file provides guidance for Claude Code (claude.ai/code) when working in this project.`
|
|
26
|
+
- 其餘結構不變
|
|
27
|
+
|
|
28
|
+
寫入 `CLAUDE.md`。
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Step 3 — 同步 AGENTS.md(OpenAI Codex / Cursor / Windsurf)
|
|
33
|
+
|
|
34
|
+
將 `AI_PROMPT_SOURCE.md` 的內容**翻譯成英文**,並轉換為 AGENTS.md 格式:
|
|
35
|
+
|
|
36
|
+
**翻譯規則**:
|
|
37
|
+
|
|
38
|
+
- 所有繁體中文文字翻譯成英文
|
|
39
|
+
- 程式碼區塊中的**註解**翻譯成英文,**程式碼本身不動**
|
|
40
|
+
- 檔案路徑、變數名、函式名等技術名詞保持不變
|
|
41
|
+
- Markdown 結構(標題層級、列表、表格)保持不變
|
|
42
|
+
|
|
43
|
+
**格式調整**:
|
|
44
|
+
|
|
45
|
+
- 第一行標題改為 `# AGENTS.md`
|
|
46
|
+
- 第二行加上 `<!-- AUTO-SYNCED FROM AI_PROMPT_SOURCE.md — DO NOT EDIT DIRECTLY -->`
|
|
47
|
+
- 描述行改為:`This file provides guidance for AI coding agents when working on this project.`
|
|
48
|
+
- 其餘結構不變
|
|
49
|
+
|
|
50
|
+
寫入 `AGENTS.md`。
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Step 4 — 同步 GEMINI.md(Gemini CLI)
|
|
55
|
+
|
|
56
|
+
將 `AI_PROMPT_SOURCE.md` 的內容**翻譯成英文**,並轉換為 GEMINI.md 格式:
|
|
57
|
+
|
|
58
|
+
**翻譯規則**:同 Step 3。
|
|
59
|
+
|
|
60
|
+
**格式調整**:
|
|
61
|
+
|
|
62
|
+
- 第一行標題改為 `# GEMINI.md`
|
|
63
|
+
- 第二行加上 `<!-- AUTO-SYNCED FROM AI_PROMPT_SOURCE.md — DO NOT EDIT DIRECTLY -->`
|
|
64
|
+
- 描述行改為:`This file provides guidance for Gemini CLI when working on this project.`
|
|
65
|
+
- 其餘結構不變
|
|
66
|
+
|
|
67
|
+
寫入 `GEMINI.md`。
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Step 5 — 同步 .github/copilot-instructions.md(GitHub Copilot)
|
|
72
|
+
|
|
73
|
+
將 `AI_PROMPT_SOURCE.md` 的內容**翻譯成英文**,並轉換為 copilot-instructions.md 格式:
|
|
74
|
+
|
|
75
|
+
**翻譯規則**:同 Step 3。
|
|
76
|
+
|
|
77
|
+
**格式調整**:
|
|
78
|
+
|
|
79
|
+
- 第一行標題改為 `# Copilot Instructions`
|
|
80
|
+
- 第二行加上 `<!-- AUTO-SYNCED FROM AI_PROMPT_SOURCE.md — DO NOT EDIT DIRECTLY -->`
|
|
81
|
+
- 描述行改為:`This file provides guidance for GitHub Copilot when working on this project.`
|
|
82
|
+
- 其餘結構不變
|
|
83
|
+
|
|
84
|
+
寫入 `.github/copilot-instructions.md`。
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Step 6 — 回報結果
|
|
89
|
+
|
|
90
|
+
顯示完成摘要:
|
|
91
|
+
|
|
92
|
+
- 列出已同步的檔案及各自的行數/大小
|
|
93
|
+
- 提醒使用者需要 commit 這些變更
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Read(*)",
|
|
5
|
+
"Bash(*)",
|
|
6
|
+
"WebFetch(domain:docs.qingque.cn)",
|
|
7
|
+
"WebFetch(domain:github.com)",
|
|
8
|
+
"WebFetch(domain:medium.com)",
|
|
9
|
+
"WebFetch(domain:nitro.build)",
|
|
10
|
+
"WebFetch(domain:raw.githubusercontent.com)",
|
|
11
|
+
"WebFetch(domain:unstorage.unjs.io)",
|
|
12
|
+
"WebFetch(domain:www.yungoucms.com)",
|
|
13
|
+
"mcp__chrome-devtools__list_console_messages",
|
|
14
|
+
"mcp__chrome-devtools__list_pages",
|
|
15
|
+
"mcp__sentry__find_organizations",
|
|
16
|
+
"mcp__sentry__find_projects",
|
|
17
|
+
"mcp__sentry__get_issue_details",
|
|
18
|
+
"mcp__sentry__search_issues",
|
|
19
|
+
"Bash(git add:*)",
|
|
20
|
+
"Bash(git commit:*)"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|