Conversation
- webprobe.go: CheckinStatus(POST 双端点回退)、UserResourceRich(套餐聚合/ FIELD_FAMILIES 首个正值族/到期键/2位小数)、ParseTsMs 动态时间戳 - weboauth.go: OAuth 设备登录三步(state/poll/account)从 cmd/login 库化, 业务 code 非 0 归一为 waiting(11217 login ing) - travel.go: TravelState 扩展 location/buddy_id/depart/arrive/server_now (json.RawMessage 动态类型 + ParseTsMs 归一)
- internal/web: /api/* 全部接口(账号/探测/任务/OAuth/网关观测/统计) + SPA 静态托管;与 Node 版前端契约逐字对齐(camelCase/错误信封) - 任务语义与调度器同轨(禁用跳过/12153计数/活跃N条+streak回读), 直接调用上游原语以捕获逐账号结果;调度器零改动 - server/logging.go: ChatRow hook(完整模型/uid8/原始行),logChatRow 打印后通知 - main.go: 顶层 mux 精确匹配 /v1、/status、/healthz 后 GET / 兜底 web.Handler; log.SetOutput MultiWriter 镜像 stderr 入管理台环形缓冲;回环地址归一 127.0.0.1 - config.go: web.disabled(缺省 false=启用) - pool: Status 增加 SessionDeadFails(12153 徽标预警)
- web/: Vue3 SPA(vite outDir→internal/web/dist);api 密钥门(localStorage Bearer + 401 弹出解锁);设置页改为只读网关信息+密钥+主题;自动化页只读 排程+立即执行+近期事件 - Dockerfile: node:22-alpine webbuild 阶段构建 dist 供 go:embed - .gitignore/.dockerignore: dist 产物与 node_modules 排除
|
🤖 当前为 dry-run 模式(演练):机器人已分析此 issue,但不会关闭或创建任何 issue。下面是它本应执行的动作。 本应执行:新建 canonical issue(并打标签 canonical,enhancement);规范化标题;正文顶部追加关联块 |
4 tasks
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
动机
网关缺少网页端管理面板,账号池状态(积分/签到/猫猫旅行/token 健康)只能靠日志与 CLI 观察。
方案
internal/web薄壳:全部/api/*接口直接复用网关自身服务(pool/upstream/调度同语义),前端 Vue3 SPA 经go:embed内嵌,单容器单端口同时服务/v1与面板/v1、/status、/healthz后GET /兜底;/api/*与/v1共用同一把 api_keyconfig.json新增web.disabled(缺省 false=启用),可一键关闭功能
触碰面(重基冲突面最小化)
新增
internal/web/、web/;仅追加式触碰:main.go(+mux 组合)、server/logging.go(+ChatRow hook)、cmd/server/config.go(+web 段)、upstream/travel.go(TravelState 扩展字段)、Dockerfile(+node 构建阶段)。测试
internal/web/internal/upstream单测全绿(探测解析/签到回退/套餐聚合/统计)