Commit Graph
7 Commits
Author SHA1 Message Date
Jeffery 7de0900d5f docs(calculate-version): 重建 README、修正 compareVersionArrays JSDoc 並更新指令檔註解日期
CI / Release Tag Version (pull_request) Successful in 4s
CI / Calculate Version (pull_request) Successful in 27s
2026-06-30 17:43:09 +08:00
Jeffery fe299cac64 refactor(Dockerfile): 改為最新 node 多階段建置以縮小最終映像 2026-06-30 12:42:11 +08:00
JefferyandClaude Opus 4.8 fdf33b41d8 fix(calculate-version): 修復 AI 審查的安全與健全性問題
- Dockerfile 移除 --no-check-certificate,恢復 TLS 憑證檢查以防中間人攻擊
- config 對 GITEA_SERVER_URL 加入 http/https URL 格式驗證
- logger.fail 改為 logger.error(僅輸出不終止行程),退出移至 index 頂層處理
- index.main 改用相依注入並於頂層攔截錯誤後 exit 1,避免 library 內呼叫 process.exit
- releases 將 response.text() 包入 try-catch 並附帶頁碼

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 10:52:19 +08:00
JefferyandClaude Opus 4.8 bd6b6017ab refactor(calculate-version): 將版本計算邏輯由 bash 改寫為 Node.js 並依功能分檔
保留 entrypoint.sh 作為容器進入點,改為啟動 app/ 下的 Node.js 程式;
依功能拆分為 logger/config/version/releases/output/index,並更新 Dockerfile 改用 node:lts-alpine。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 10:41:34 +08:00
jiantw83 e8fa3ab67e feat(calculate-version): 改為計算版本 Docker Action 2026-06-25 10:52:39 +00:00
jiantw83 3cf52a2302 feat: add role management and usage tracking modules
- Implemented role parsing and loading functionality in roles.js, allowing for structured role definitions with metadata.
- Added tests for role management to ensure correct parsing and loading of roles.
- Created usage.js to track API usage metrics, including token counts and rate limits.
- Developed tests for usage tracking to validate functionality and edge cases.
- Enhanced overall code structure and documentation for clarity and maintainability.
2026-06-25 09:13:15 +00:00
jiantw83 6cdbcff681 Initial commit 2026-06-25 08:51:03 +00:00