Commit Graph
142 Commits
Author SHA1 Message Date
liujing ee89cd6119 fix: configure Docker buildx cache path 2026-07-22 11:33:34 +08:00
LiuMangMang db51733383 fix: clarify New-API authentication failures 2026-07-22 00:49:32 +08:00
SmartUp Developer 6906c3b998 feat: support Grok platform account imports 2026-07-12 13:16:29 +08:00
SmartUp Developer 40e75c0b51 fix: stream long-running website operations 2026-07-12 12:07:47 +08:00
SmartUp Developer c0b3b8276d Clarify upstream key usage status 2026-07-06 14:50:04 +08:00
SmartUp Developer a62ee00115 Improve abnormal account cleanup 2026-07-06 13:48:41 +08:00
SmartUp Developer c26bdb766c Refine orphaned key status labels 2026-07-06 11:19:51 +08:00
SmartUp Developer f659cc53a4 Localize key status labels 2026-07-06 11:02:51 +08:00
SmartUp Developer 41ef047b6e Add repository contributor guide 2026-07-06 10:41:40 +08:00
SmartUp DeveloperandClaude Opus 4.8 72aa21aed2 docs: add guidance to read Go sources for upstream/downstream API context
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 10:40:42 +08:00
SmartUp DeveloperandClaude Opus 4.8 a4c7fd6290 docs: clarify sibling Go projects in CLAUDE.md
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 10:38:47 +08:00
SmartUp DeveloperandClaude Opus 4.8 f854146c9b docs: add CLAUDE.md with project architecture and dev commands
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 10:37:41 +08:00
SmartUp DeveloperandClaude Opus 4.8 2262b6a564 feat: proactive Bearer token refresh with unified fallback
- Parse JWT 'exp' claim to track token expiry (token_expires_at)
- Proactively refresh Bearer tokens 1 hour before expiry in
  ensure_authenticated()
- Refresh response without expires_in now falls back to JWT exp for
  expiry derivation
- Support custom refresh_path via bearer auth_config whitelist
- Unify 401 fallback: all bearer types (including Sub2API) now go
  through _refresh_bearer_token() instead of separate old path
- Remove dead _is_sub2api_bearer() / _refresh_sub2api_bearer_token()
- Add 2 new tests: refresh_path override + JWT exp backfill

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 10:31:29 +08:00
SmartUp Developer 5a20e792fe Add SmartUp account pool parameter configuration 2026-07-04 11:59:21 +08:00
SmartUp Developer 0cce5d53fe Improve website groups loading state 2026-07-04 00:25:01 +08:00
SmartUp Developer 1bba833291 Match finance dashboard dark design 2026-07-03 23:57:52 +08:00
SmartUp Developer 71455c7a94 Align finance dashboard visual style 2026-07-03 23:43:01 +08:00
SmartUp Developer 4dd4448970 Reapply "Redesign finance dashboard with period summaries"
This reverts commit da14ec5740.
2026-07-03 23:25:47 +08:00
SmartUp Developer da14ec5740 Revert "Redesign finance dashboard with period summaries"
This reverts commit 8d41956d88.
2026-07-03 23:19:32 +08:00
SmartUp Developer 8d41956d88 Redesign finance dashboard with period summaries 2026-07-03 22:16:05 +08:00
SmartUp Developer 1670503720 fix finance balance delta recharges 2026-07-03 20:05:28 +08:00
SmartUp Developer bb7ed5a7e0 Refactor finance reconciliation dashboard 2026-07-03 18:02:57 +08:00
SmartUp Developer eba209395d feat: persist finance daily summaries 2026-07-03 17:38:54 +08:00
SmartUp Developer 1a1a663b6a fix: use user log stat endpoint for finance upstream costs 2026-07-03 15:59:47 +08:00
SmartUp Developer a1e2c059b9 fix: reuse configured clients for finance stats 2026-07-03 15:42:29 +08:00
SmartUp Developer 5e99abcbc5 feat: 财务对账页面 — GET /api/finance/daily-summary + Finance.vue 2026-07-03 15:28:06 +08:00
SmartUp Developer 9997b9d56a fix: restore api_key from local key_value when syncing upstream models for apikey accounts 2026-07-02 23:38:57 +08:00
SmartUp Developer a0c96ed5da fix: close platform-check silent-success loophole — raise WebsiteError on None list, missing account, or stale platform after update 2026-07-02 23:28:28 +08:00
SmartUp Developer 2c976f4d48 fix: add active check post account platform update to prevent silent ignore by remote backend 2026-07-02 23:06:38 +08:00
SmartUp Developer 445f33a6b0 style: remove temporary probe and fix scripts from repository 2026-07-02 23:01:09 +08:00
SmartUp Developer fd2755d539 feat: resolve account platforms prioritizing structural snapshot values and correction on existing accounts 2026-07-02 22:58:15 +08:00
SmartUp Developer 1cb13e878e style: remove trailing whitespace in website_sync.py 2026-07-02 21:45:02 +08:00
SmartUp Developer fdbcca4d95 fix: delay binding.percent update until remote sync succeeds and update UI labels to 自动保底盈利 2026-07-02 21:27:52 +08:00
SmartUp Developer 0e77de31ae feat: implement automatic margin pricing and margin reverse engineering in sync 2026-07-02 21:22:37 +08:00
SmartUp Developer 9011c68b9d fix: use equal weight sharing for remaining 15% and quantize min_rate floor comparison to 2 decimal places 2026-07-02 20:45:40 +08:00
SmartUp Developer 8746068cd4 feat: implement priority_weighted_plus_percent pricing algorithm 2026-07-02 20:23:20 +08:00
SmartUp Developer d07ab62772 test: fix trailing whitespaces and add symmetric compact_model_mapping assertions 2026-07-02 19:48:47 +08:00
SmartUp Developer c20c9cfd26 fix: add stream close check, recover regression test assertions, and secure credentials type check 2026-07-02 19:18:10 +08:00
SmartUp Developer ece11d66e6 feat: sync upstream models with real-time streaming updates 2026-07-02 18:11:55 +08:00
liumangmang 852bf84246 fix: 优化同步上游模型,过滤克隆载荷中的敏感 credentials 字段,规避重写导致脱敏密钥丢失/清空的事故风险 2026-07-02 17:05:44 +08:00
liumangmang 316ef24188 fix: 优化同步上游模型的写回载荷,克隆并保留远端返回的所有非敏感 credentials,避免丢失 compact_model_mapping 等其它配置 2026-07-02 17:02:37 +08:00
liumangmang 4645460ff9 fix: 一键同步模型接口同步修复并携带上游 base_url,防止 sub2api 账号 base_url 被清空或置为默认值 2026-07-02 16:56:45 +08:00
SmartUp Developer 59be00bd11 chore: remove obsolete wangwang888 endpoint script 2026-07-02 16:09:35 +08:00
liumangmang 3c1fff2491 fix: 优化上游模型同步的写回逻辑,采用增量 JSONB merge,避免脱敏的 credentials 覆盖或丢失原有敏感字段 2026-07-02 15:47:34 +08:00
liumangmang 63cbdf4dca feat: 实现一键同步网站账号上游模型功能 2026-07-02 15:43:00 +08:00
SmartUp Developer c70b68d814 refactor: clean up unused variables in external api logs router 2026-07-02 15:17:05 +08:00
SmartUp Developer ea3fd64686 fix: optimize summary count query and refine row keys for external api logs 2026-07-02 15:07:32 +08:00
SmartUp Developer e2129d3796 fix: 防止分页漏读和上游异常快照误标 orphaned 2026-07-02 14:21:09 +08:00
SmartUp Developer 00af34c487 fix: Sub2ApiWebsiteClient.list_accounts 支持分页拉取,避免只拿到默认第一页 20 条导致误建重复账号 2026-07-02 11:04:46 +08:00
SmartUp Developer fe3f9f4a4c feat: 一键整理强制对齐分组逻辑,移除旧托管分组并优化统计消息区分 2026-07-02 10:42:18 +08:00