@jetthai/cuora 1.1.427-dev.5 → 1.1.427-hotfix

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.
@@ -4,7 +4,43 @@
4
4
 
5
5
  ---
6
6
 
7
- ## Step 1 — 檢查工作區狀態
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 — 檢查工作區狀態
8
44
 
9
45
  ```bash
10
46
  git status
@@ -18,7 +54,7 @@ git status
18
54
 
19
55
  ---
20
56
 
21
- ## Step 2 — Stage 變更
57
+ ## Step 3 — Stage 變更
22
58
 
23
59
  將所有變更加入 staging area:
24
60
 
@@ -30,7 +66,7 @@ git add -A
30
66
 
31
67
  ---
32
68
 
33
- ## Step 3 — 選擇 Commit Message 方式
69
+ ## Step 4 — 選擇 Commit Message 方式
34
70
 
35
71
  使用 `AskUserQuestion` 工具顯示選單,讓使用者從以下選項中選擇:
36
72
 
@@ -44,7 +80,7 @@ git add -A
44
80
 
45
81
  ---
46
82
 
47
- ## Step 4 — 生成 Commit Message
83
+ ## Step 5 — 生成 Commit Message
48
84
 
49
85
  根據使用者在 Step 3 的選擇執行:
50
86
 
@@ -55,7 +91,27 @@ git add -A
55
91
  - 格式:`type(scope): description`
56
92
  - type:feat / fix / refactor / style / docs / chore / perf / test
57
93
  - scope:根據變更的主要目錄或功能模組決定(可省略)
58
- - description:簡潔描述變更內容(英文)
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
+ ```
59
115
 
60
116
  如果是選項 2,將生成的 message 顯示給使用者,等待使用者確認或提供修改後的版本。
61
117
 
@@ -71,7 +127,7 @@ git add -A
71
127
 
72
128
  ---
73
129
 
74
- ## Step 5 — 執行 Commit
130
+ ## Step 6 — 執行 Commit
75
131
 
76
132
  使用確定的 commit message 執行 commit:
77
133
 
@@ -89,20 +145,20 @@ git commit -m "<title>" -m "<body>"
89
145
 
90
146
  ---
91
147
 
92
- ## Step 6 — 確認是否 Push
148
+ ## Step 7 — 確認是否 Push
93
149
 
94
150
  使用 `AskUserQuestion` 工具顯示選單,讓使用者從以下選項中選擇:
95
151
 
96
152
  - **Push** — 立即 push 到遠端
97
- - **不 Push** — 只 commit,不 push
153
+ - **Skip** — 跳過 push,僅完成 commit
98
154
 
99
155
  等待使用者選擇。
100
156
 
101
- 如果使用者選擇「不 Push」,跳過 push 直接進入 Step 8 完成回報。
102
-
103
157
  ---
104
158
 
105
- ## Step 7 — 執行 Push
159
+ ## Step 8 — 執行 Push(如使用者選擇 Push)
160
+
161
+ 如果使用者選擇 Skip,跳過此步驟直接到 Step 9。
106
162
 
107
163
  將 commit push 到遠端:
108
164
 
@@ -120,10 +176,10 @@ git push --set-upstream origin <current_branch>
120
176
 
121
177
  ---
122
178
 
123
- ## Step 8 — 完成回報
179
+ ## Step 9 — 完成回報
124
180
 
125
181
  顯示以下資訊:
126
182
 
127
183
  - 分支名稱
128
184
  - Commit message 內容
129
- - Push 結果(成功/失敗)
185
+ - Push 結果(成功/失敗/已跳過)
@@ -17,9 +17,7 @@
17
17
  "mcp__sentry__get_issue_details",
18
18
  "mcp__sentry__search_issues",
19
19
  "Bash(git add:*)",
20
- "Bash(git commit:*)",
21
- "Bash(git branch:*)",
22
- "Bash(git merge:*)"
20
+ "Bash(git commit:*)"
23
21
  ]
24
22
  }
25
23
  }
package/.prettierignore CHANGED
@@ -1,2 +1 @@
1
- dist/
2
- CHANGELOG.md
1
+ dist/
package/CHANGELOG.md CHANGED
@@ -2,11 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### [1.1.427-dev.5](https://github.com/jetthai/cuora-module/compare/v1.1.427...v1.1.427-dev.5) (2026-04-12)
5
+ ### [1.1.427-hotfix](https://github.com/jetthai/cuora-module/compare/v1.1.427...v1.1.427-hotfix) (2026-04-14)
6
6
 
7
- ### [1.1.427-dev.4](https://github.com/jetthai/cuora-module/compare/v1.1.427-dev.0...v1.1.427-dev.4) (2026-04-12)
7
+ ### Features
8
+
9
+ - **husky:** skip pre-push hooks on force push to dev/qa ([79e9df9](https://github.com/jetthai/cuora-module/commit/79e9df9bfd9335dca7d5aec590fa25d7580586ac))
8
10
 
9
- ### [1.1.427-dev.0](https://github.com/jetthai/cuora-module/compare/v1.1.427...v1.1.427-dev.0) (2026-04-12)
11
+ ### Bug Fixes
12
+
13
+ - **withdraw:** 修正加密貨幣提款計算錯誤時的狀態轉移 ([3acbe09](https://github.com/jetthai/cuora-module/commit/3acbe0985bf5d4a85ccd02390c5f99092829c820))
10
14
 
11
15
  ### [1.1.427](https://github.com/jetthai/cuora-module/compare/v1.1.426...v1.1.427) (2026-04-07)
12
16
 
@@ -26,77 +30,7 @@ All notable changes to this project will be documented in this file. See [standa
26
30
 
27
31
  ### [1.1.424](https://github.com/jetthai/cuora-module/compare/v1.1.423...v1.1.424) (2026-03-17)
28
32
 
29
- ### [1.1.422-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.422-dev-1...v1.1.422-dev-2) (2026-03-17)
30
-
31
- ### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
32
-
33
- ### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
34
-
35
- ### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
36
-
37
- ### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
38
-
39
- ### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
40
-
41
- ### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
42
-
43
- ### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
44
-
45
- ### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
46
-
47
- ### [1.1.422-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.422-dev-1...v1.1.422-dev-2) (2026-03-17)
48
-
49
- ### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
50
-
51
- ### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
52
-
53
- ### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
54
-
55
- ### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
56
-
57
- ### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
58
-
59
- ### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
60
-
61
- ### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
62
-
63
- ### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
64
-
65
- ### [1.1.422-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.422-dev-1...v1.1.422-dev-2) (2026-03-17)
66
-
67
- ### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
68
-
69
- ### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
70
-
71
- ### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
72
-
73
- ### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
74
-
75
- ### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
76
-
77
- ### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
78
-
79
- ### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
80
-
81
- ### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
82
-
83
- ### [1.1.422-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.422-dev-1...v1.1.422-dev-2) (2026-03-17)
84
-
85
- ### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
86
-
87
- ### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
88
-
89
- ### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
90
-
91
- ### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
92
-
93
- ### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
94
-
95
- ### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
96
-
97
- ### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
98
-
99
- ### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
33
+ ### [1.1.423](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.423) (2026-03-17)
100
34
 
101
35
  ### [1.1.422](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.422) (2026-03-16)
102
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.427-dev.5",
3
+ "version": "1.1.427-hotfix",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- // Copyright 2024 The Terasology Foundation
3
2
 
4
3
  // dev/qa 分支自動計算下一個 prerelease 版號
5
4
  // 版號格式:{master 版號}-{分支名}.{遞增編號}
@@ -120,9 +120,4 @@ export default {
120
120
  method: 'post',
121
121
  params: { startDate, endDate, appSecret },
122
122
  }),
123
- getMissionHistory: ({ activityNo, appSecret }) => ({
124
- url: 'activities/mission-history',
125
- method: 'get',
126
- params: { activityNo, appSecret },
127
- }),
128
123
  }
@@ -110,28 +110,6 @@ export default function (request) {
110
110
  },
111
111
  },
112
112
  otpChecking: {
113
- initial: 'pending',
114
- states: {
115
- pending: {
116
- after: {
117
- TIMEOUT: {
118
- target: 'fetching',
119
- },
120
- },
121
- },
122
- fetching: {
123
- invoke: {
124
- src: 'fetchUserInfo',
125
- onDone: {
126
- target: 'pending',
127
- actions: ['setUserInfo', 'extendToken'],
128
- },
129
- onError: {
130
- target: 'pending',
131
- },
132
- },
133
- },
134
- },
135
113
  on: {
136
114
  OTP_VERIFIED: {
137
115
  target: 'loginSuccess',
@@ -130,7 +130,7 @@ export default function (request, context) {
130
130
  },
131
131
  ],
132
132
  onError: {
133
- target: 'idle',
133
+ target: '#withdraw_crypto_cash.calculated',
134
134
  },
135
135
  },
136
136
  },