@jetthai/cuora 1.1.432 → 1.1.434-dev.0
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 +5 -12
- package/.claude/commands/commit-push.md +15 -4
- package/.claude/commands/create-branch.md +142 -0
- package/.claude/commands/sync-ai-prompts.md +88 -1
- package/.claude/settings.local.json +3 -1
- package/.github/copilot-instructions.md +551 -399
- package/.husky/pre-push +11 -2
- package/.prettierignore +2 -1
- package/AGENTS.md +551 -399
- package/AI_PROMPT_SOURCE.md +726 -130
- package/CHANGELOG.md +158 -8
- package/CLAUDE.md +551 -399
- package/GEMINI.md +551 -399
- package/README.md +35 -107
- package/package.json +1 -1
- package/prepare-for-pr/JT-1776243420.md +85 -0
- package/scripts/auto-version.js +1 -0
- package/scripts/check-version.sh +36 -0
- package/scripts/clean-tags.sh +48 -60
- package/src/api/activity.js +5 -0
- package/src/machine/auth.js +21 -1
- package/src/machine/deposit/crypto_bank_cash.js +1 -0
- package/src/machine/deposit/crypto_way_cash.js +1 -0
- package/src/machine/game_v2_1.js +14 -8
- package/src/machine/user_sign_up.js +2 -1
- package/src/machine/websocket.js +0 -8
package/.husky/pre-push
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
# 從 stdin 偵測是否為 force push(非 fast-forward
|
|
1
|
+
# 從 stdin 偵測是否為 force push(非 fast-forward)以及是否推向 master
|
|
2
2
|
# pre-push hook 會收到:<local_ref> <local_sha> <remote_ref> <remote_sha>
|
|
3
3
|
IS_FORCE=false
|
|
4
|
+
PUSH_TO_MASTER=false
|
|
4
5
|
while read local_ref local_sha remote_ref remote_sha; do
|
|
6
|
+
# 偵測是否推向 master(refs/heads/master)
|
|
7
|
+
case "$remote_ref" in
|
|
8
|
+
refs/heads/master) PUSH_TO_MASTER=true ;;
|
|
9
|
+
esac
|
|
5
10
|
# 跳過新建分支或刪除分支的情況(sha 全為 0)
|
|
6
11
|
[ "$remote_sha" = "0000000000000000000000000000000000000000" ] && continue
|
|
7
12
|
[ "$local_sha" = "0000000000000000000000000000000000000000" ] && continue
|
|
8
13
|
# 若遠端 sha 不是本地 sha 的祖先,代表是 force push
|
|
9
14
|
if ! git merge-base --is-ancestor "$remote_sha" "$local_sha" 2>/dev/null; then
|
|
10
15
|
IS_FORCE=true
|
|
11
|
-
break
|
|
12
16
|
fi
|
|
13
17
|
done
|
|
14
18
|
|
|
@@ -21,6 +25,11 @@ if [ "$IS_FORCE" = true ] && { [ "$BRANCH" = "dev" ] || [ "$BRANCH" = "qa" ]; };
|
|
|
21
25
|
exit 0
|
|
22
26
|
fi
|
|
23
27
|
|
|
28
|
+
# 推向 master 前檢查 package.json 的 version 是否符合規範,不符合則回退到最近合規 tag
|
|
29
|
+
if [ "$PUSH_TO_MASTER" = true ]; then
|
|
30
|
+
sh scripts/check-version.sh || exit 1
|
|
31
|
+
fi
|
|
32
|
+
|
|
24
33
|
# 清理不合規的 tag(本地 + 遠端)
|
|
25
34
|
sh scripts/clean-tags.sh
|
|
26
35
|
# 自動升版並發布(僅 dev/qa 分支會實際執行,$1 為遠端名稱)
|
package/.prettierignore
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
dist/
|
|
1
|
+
dist/
|
|
2
|
+
CHANGELOG.md
|