Commit Graph

20 Commits

Author SHA1 Message Date
john dcf8fd1ff9 chore: consolidate admin cleanup and colima config 2026-06-28 08:20:43 +08:00
john fffa1f7c7d fix: skill 路由统一挂在 /admin-api/skills,兼容 vite proxy
前台 vite 将 /api → portal(8081),/admin-api → memindadm(8085)。
将 user 路由从 /api/skills 移至 /admin-api/skills,公共 GET
不需要 auth,invoke 需 user auth,admin 操作需 admin auth。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 19:44:31 +08:00
john 2e6b0c1818 feat: skill 系统 MVP — SkillRegistry + FeatureFlag + awesome-design-md
- 新增 server/skills/ 模块:
  - schema.mjs:adm_skills / adm_skill_flags / adm_skill_invocations 三表建表 + seed
  - index.mjs:SkillService(listSkills / getSkill / invokeSkill / setSkillEnabled / setSkillFlag)
  - flag-resolver.mjs:优先级链 user > plan > caller_type > global
  - goosed-client.mjs:HTTPS + 自签名证书 + round-robin 双节点支持
  - executors/goosed.mjs:一次性 goosed session,SSE 收集结果
  - design-catalog.mjs:54 个 awesome-design-md DESIGN.md 本地 bundle
  - routes.mjs:/api/skills/* (public) + /admin-api/skills/* (admin)
- 设计 DESIGN.md 无需 auth 即可访问(GET /api/skills/designs)
- Admin 可一键 PATCH /admin-api/skills/:slug/enabled 开关任意 skill
- GOOSED_URLS 环境变量支持本地单节点/103双节点兼容

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 17:27:11 +08:00
john 9e907bde57 延长 preview 启动等待,避免发布脚本误判 /auth 反代未就绪。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 12:42:59 +08:00
john 1d54706b7c 修复 103 登录:API/5174 监听 0.0.0.0,preview 反代 /auth 到 8085。
105 nginx 需能访问 Studio 端口;5174 直连时也需把鉴权请求转发到 Admin API。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 12:42:03 +08:00
john deb3f031fd 修复 memind_adm 产物发布:保留 dist/index.html 并以 /ops 为生产 base 路径。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 12:36:02 +08:00
john b51a89ef86 补齐 memind_adm 运行 memind-lib 共享模块所需的 npm 依赖。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 12:34:47 +08:00
john c52086e36a 修复 103 发布:将 test-memind 共享模块打入 memind_adm 产物包。
Memind 生产目录已切为无源码 runtime,memind_adm 改为自带 memind-lib 模块并保留 MEMIND_LIB_ROOT 作数据根路径。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 12:33:52 +08:00
john 8af8676ad5 收口 memind_adm 主线并切换 103 为无源码产物发布。
统一共享用户/计费/空间额度能力,新增 Ops 与套餐同步,并以 release-prod.sh 作为唯一生产发布入口。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 12:31:25 +08:00
john f2172322fd Fix user list pagination SQL 2026-06-20 17:06:21 +08:00
john a59823d347 Fix admin dashboard summary nulls 2026-06-20 17:04:30 +08:00
john dae3e2f350 Harden wechat summary and login input 2026-06-20 17:02:16 +08:00
john 78907792db Harden ops analytics rendering 2026-06-20 16:59:57 +08:00
john 2129b0e8cf Restore admin bootstrap secret 2026-06-20 16:58:28 +08:00
john 371aedd6a9 Make admin init noninteractive 2026-06-20 16:56:44 +08:00
john a2333f991b Move admin auth local 2026-06-20 16:52:13 +08:00
John 7a5b9cc912 Add argon2 polyfill and unified preview/API startup for admin login.
Node < 24 lacks crypto.argon2Sync; wire @node-rs/argon2 fallback and start Admin API alongside vite preview in local and remote deploy flows.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-17 16:38:58 -07:00
John 9ecfa73831 Add embedded Express admin API and unified dev workflow.
Move admin backend into this repo (Express + MySQL on :8085) so npm run dev starts both API and Vite, with updated env defaults and Caddy config for gadm.tkmind.cn.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 16:29:06 -07:00
john 680e2c9427 Add LAN deploy scripts and improve admin billing/users UX.
Provide rsync deploy and restart tooling for the 100 server, document the workflow, and add pagination plus user filtering across billing and user management pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 20:46:59 +08:00
john 8ad1a8a8da Initial commit: tkmind admin frontend (React + Vite).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 19:44:31 +08:00