Commit Graph
44 Commits
Author SHA1 Message Date
gongzhiyong 30e0b0b4c6 omx(team): auto-checkpoint worker-2 [2] 2026-05-02 23:28:34 +08:00
gongzhiyong bf42bbda8a omx(team): auto-checkpoint worker-4 [4] 2026-05-02 23:26:17 +08:00
gongzhiyong f0cda510a7 omx(team): merge worker-3 2026-05-02 23:24:29 +08:00
gongzhiyong 6fa8dbcb20 omx(team): auto-checkpoint worker-3 [3] 2026-05-02 23:24:29 +08:00
gongzhiyong 912e3155fd docs: converge heicode plan entrypoint 2026-05-02 23:21:16 +08:00
gongzhiyong a19b90c858 docs: split heicode plan documents 2026-05-02 22:26:44 +08:00
gongzhiyong e08a5d4dcc docs: consolidate current heicode plan 2026-05-02 22:15:33 +08:00
gongzhiyong 72d0e095a4 docs: remove obsolete agnet plans 2026-05-02 22:11:19 +08:00
gongzhiyong f585d26fe7 docs: define saas manager agnet architecture 2026-05-02 22:07:02 +08:00
gongzhiyong 63fe529b36 feat(agnet): allow users to bind git sources 2026-05-01 20:55:58 +08:00
gongzhiyong 75bc93b47a docs(agnet): capture user deployment flow 2026-05-01 20:36:30 +08:00
xiaohei be0d102553 fix(manager): load env file in compose override 2026-05-01 11:50:13 +00:00
Ubuntu 2f0bf2563e feat(manager): login auto relay token hidden from UI; available models page
- Add hide_from_user_ui on tokens; EnsureUserRelayToken on login and Agnet session

- List/search tokens: end-users see only visible keys; admins see all

- Add /available-models and sidebar entry; i18n en/zh + locales

- desktop download / router hooks if present under heicode/
2026-05-01 10:00:11 +00:00
Ubuntu b0acfd44c1 feat(agnet): SK repo_ref validation, create deployment UI, docs touch-ups
Extend agnet SK sources with repo_ref and snapshot display; add authenticated
deployment sheet + API types; cockpit toolbar entry; locale strings; minor docs.

Made-with: Cursor
2026-05-01 09:12:00 +00:00
Ubuntu 356592e294 fix(ui): reorder cockpit nav to bind Git sources before deployments
Made-with: Cursor
2026-05-01 08:18:35 +00:00
Ubuntu 4e8b4a66c6 feat(agnet): persist runtime_execution and sk_access_policy with validation
Go control plane: extend agent plan structs, validate bindings and SK policy
codes. Web: surface bindings on Agents page with i18n.

Made-with: Cursor
2026-05-01 08:13:21 +00:00
Ubuntu b42e5b2dd0 feat(heicode): SK workflow UI, Agnet contract docs, usage-log schema
Manager web: Git sources workflow steps and copy; typecheck fixes for auth
and home sections; UsageLog type in usage-log-schema.ts (outside ignored data/).

docs: Agnet platform contract adds runtime_execution and sk_access_policy,
orchestration-plan and acceptance matrix aligned.

Made-with: Cursor
2026-05-01 07:38:17 +00:00
Ubuntu a8f64bce68 feat(ui): reframe SK area as Git-backed sources and snapshot anchors
SK 正文以 Git 为准:侧栏/首页/登录支柱改为「Git 来源」叙事;
/sk-sources 页增加 Git 绑定说明 +「已解析快照锚点」列表标题;
驾驶舱快捷入口与 i18n(中英及同步 locale)对齐。

Made-with: Cursor
2026-05-01 07:21:02 +00:00
Ubuntu a0e69bf076 i18n(zh): complete localization of cockpit/agnet-console/sign-in
- 补齐 109 个 t() key 的中英对照(涵盖 Code 交付驾驶舱、agnet-console
  四张面板、登录页、侧栏/顶部导航/页脚、usage-logs/about/lib/api 等)
- BRAND_TAGLINE 在 auth-layout 改走 t(),新增「智能体研发控制面」
- password-input 的眼睛按钮 aria-label 走 t(),新增「切换密码可见性」
- fr/ja/ru/vi 同步 key(暂用英文兜底,等后续按 i18n 报告补译)

Made-with: Cursor
2026-05-01 06:37:25 +00:00
Ubuntu 8cd82caf72 feat(ui): hide developer console for management backend users
平台定位为管理后台,登录后不再向普通用户暴露 Playground / API Keys / Models
等开发者控制台入口;Usage logs 作为交付链路一环并入 Code delivery 分组。
路由本身保留,仅侧栏不再展示。

Made-with: Cursor
2026-05-01 04:33:15 +00:00
Ubuntu a668e1fca1 feat(auth,ui): hardened Agnet auth, admin workspace and role whitelist
Backend (controller/heicode_agnet_session.go):
- Add HEICODE_ROOT_EMAILS / HEICODE_ADMIN_EMAILS whitelists for JIT role
  assignment. Manager no longer trusts Agnet's role claim — admin / root
  is granted only by local config.
- Default JIT-synced users to RoleCommonUser.
- Promote-only role sync on every login (never demote).

Frontend auth fixes:
- login() no longer hard-codes id=1; preserves the real manager user id
  returned by /api/user/session/from-agnet so the New-Api-User header
  matches the cookie session.
- After login, prefer local /api/user/self over Agnet /me so role /
  status reflect actual manager state (e.g. whitelist promotion).
- lib/api.ts: scope 401 -> "Session expired" handling to identity
  endpoints only; admin-only 401 no longer resets the session.

UI restructuring:
- Default sidebar shows only Code delivery + Console + Personal, plus a
  single "System settings" entry for ROLE.ADMIN+.
- system-settings workspace now hosts the full Tenant administration
  tree (Channels / Models / Subscriptions / Redemption codes / Tenants /
  Templates / Agents / Vendors / All usage logs) for ROLE.ADMIN+, with
  System Administration sub-tree gated to ROLE.SUPER_ADMIN.
- Workspace switch triggers on admin paths (channels, users, templates,
  agents, subscriptions, models, redemption-codes) — not only
  /system-settings.
- system-settings route now allows ROLE.ADMIN+ instead of root-only.

Branding cleanup:
- Drop orphan "NewAPI" i18n keys from web/default locales.
- Rename web/default workspace package newapi-web -> heicode-web.

Config:
- docker-compose.azure-vm.yml exposes HEICODE_ROOT_EMAILS /
  HEICODE_ADMIN_EMAILS.

VERSION: 1.1.0-default-user-role
Made-with: Cursor
2026-04-30 21:03:08 +00:00
Ubuntu aae8dd329a chore(release): bump VERSION to 1.0.2-agnet-jit after Agnet JIT session bridge
Made-with: Cursor
2026-04-30 18:39:10 +00:00
Ubuntu c2633bb1ae fix(auth): use model.UserNameMaxLength for JIT username length
Made-with: Cursor
2026-04-30 18:29:24 +00:00
Ubuntu 6f8ed68422 chore(config): document canonical Agnet base URL from integration doc
Made-with: Cursor
2026-04-30 18:26:33 +00:00
Ubuntu 4cdd06f352 feat(auth): Manager session from Agnet tokens with JIT local user
Replace password-based /api/user/login bridge after external auth with POST /api/user/session/from-agnet: verify access (and optional refresh) against Agnet /api/auth/me, upsert local user by email, then issue the Manager session cookie. Frontend sends bearer tokens only.

Includes HEICODE_AUTH_BASE_URL in compose defaults and .env.example.

Made-with: Cursor
2026-04-30 18:23:39 +00:00
Ubuntu 4f5521a6cf refactor(auth): replace 2FA string sentinel with typed error
Use a dedicated TwoFactorRequiredError and shared type guard to keep login flow checks type-safe and less brittle than matching magic strings.

Made-with: Cursor
2026-04-30 18:07:12 +00:00
gongzhiyong 0b4d4f811e fix(auth): establish Manager session cookie after Heicode password login
External IdP login alone did not set Gin session; proxied API calls returned 401 and triggered session-expired toast. Call POST /api/user/login after token exchange, support Turnstile on sign-in, handle 2FA pending session, and clear Manager cookie on logout.

Made-with: Cursor
2026-05-01 01:59:26 +08:00
gongzhiyong 1f21309597 refactor: rename manager codebase dir new-api → heicode, module github.com/heicode/manager
Remove user-facing new-api naming; Docker/network/container names use heicode.
Go imports updated; Dockerfiles and workflows ldflags fixed.

Made-with: Cursor
2026-05-01 01:47:23 +08:00
gongzhiyong 5d2d463db3 fix: stabilize production auth redirect and HTTPS defaults
Normalize redirect targets and fallback auth state after login, and switch manager server defaults to the production HTTPS domain to avoid localhost-origin redirect issues.

Made-with: Cursor
2026-04-30 21:00:59 +08:00
gongzhiyong 9bf3a73a75 feat: align heicode web-manager branding and deployment docs
Unify website and manager experience with updated logo and manager entry links, and document the current production topology and URLs in CLAUDE.md for consistent future operations.

Made-with: Cursor
2026-04-30 20:23:46 +08:00
gongzhiyong aae31e7506 feat(new-api): rebrand manager UI and expose login integration assets
Rebrand the default console experience to Heicode Manager, reshape key navigation toward deployment/ops workflows, and surface login integration docs/screenshots directly in the app for implementation handoff.

Constraint: Keep runtime/module identifiers compatible while shipping user-visible brand and IA changes first
Confidence: medium
Scope-risk: moderate
Not-tested: Full browser regression run across all default/classic pages
Made-with: Cursor
2026-04-30 15:37:33 +08:00
gongzhiyong b3cbbd5199 chore(docs): add renamed integration screenshots
Rename and upload documentation screenshots with stable English filenames for easier referencing in docs and cross-platform tooling.

Made-with: Cursor
2026-04-30 14:30:38 +08:00
gongzhiyong 2a6a709f58 docs: expand integration and onboarding documentation set
Add a complete docs skeleton for onboarding and integration, including orchestration-plan contract, acceptance matrix, OAuth flow, architecture maps, and milestone status tracking to support Agnet-facing delivery work.

Made-with: Cursor
2026-04-30 14:26:25 +08:00
gongzhiyong 55181c1958 chore: remove duplicate _all-in-one-upload tree
Drop the nested mirror of cc-haha/new-api; canonical paths remain at repo root.
Update README layout table accordingly.

Made-with: Cursor
2026-04-30 13:40:06 +08:00
gongzhiyong d5e95fa97b docs(integration): 明确 Agnet 子 agent 与 SK(Git/上传)对平台接口要求
- §5.0.1:部署、SK 快照、Git/制品只读、刷新与禁止项
- 术语:子 agent 为 Agnet 平台内;README/M3 引用更新

Made-with: Cursor
2026-04-30 11:28:18 +08:00
gongzhiyong 0dd1976519 docs: Agnet 可视化分工与 M5/愿景对齐;README 更新;同步 _all-in-one-upload
Made-with: Cursor
2026-04-30 11:06:58 +08:00
gongzhiyong abbbf7210c website: 迁移为 Next.js(App Router),替换静态 HTML 站点
- 移除静态 website/Dockerfile、nginx、旧 css/js
- 新增 Next.js 应用、组件与样式;pnpm 依赖

Made-with: Cursor
2026-04-30 01:06:54 +08:00
gongzhiyong acc9632104 docs: 里程碑拆分、Agnet 集成 API 设计;官网增强;愿景与 README 称谓更新
- docs/milestones: M1~M5 交付里程碑与索引
- docs/integration: Agnet 权限、隔离、编排与可视化接口草案
- website: 能力矩阵、优势对比、典型场景与样式
- vision/README/new-api/cc-haha: Heicode Manager / 客户端命名与愿景收敛

Made-with: Cursor
2026-04-30 00:55:23 +08:00
gongzhiyong 68f7b568c5 merge: 合并 Gitea xiaohei/heicode 与本地 Heicode 文档/官网
- 解决 README 冲突:合并愿景说明与 Taiji 网关/快速启动说明
- 解决 mac_helper.py:统一为可执行脚本

Made-with: Cursor
2026-04-30 00:40:24 +08:00
gongzhiyong 90586571ba docs: README 补充官网 Docker 本地预览说明
Made-with: Cursor
2026-04-30 00:39:01 +08:00
gongzhiyong ca6289fab4 feat: 静态官网与 Docker Compose 本地部署
- website: 单页落地(愿景、架构、路径、团队范式、生命周期)
- nginx:alpine 镜像与 docker-compose(端口 8888)

Made-with: Cursor
2026-04-30 00:38:58 +08:00
gongzhiyong 0c84dde85b docs: Heicode 愿景范式、瀑布/敏捷子 Agnet 角色与规模
- 新增 docs/vision-heicode-full-stack-agentic-dev.md(完整范式与 W1-W9 / A1-A8 角色)
- 新增根 README.md 与 .gitignore(排除 node_modules、target 等)

Made-with: Cursor
2026-04-30 00:33:20 +08:00
gongzhiyong 191685bfcd docs: rewrite README set for unified product delivery
Refresh root, client, and gateway READMEs to present a cohesive HeiCode monorepo story, with clear startup flows and integration guidance for deployment teams.

Made-with: Cursor
2026-04-29 21:15:30 +08:00
gongzhiyong 1efcf73992 chore: consolidate heicode workspace into single repository
Import cc-haha and new-api into a single repository layout for unified delivery.

Made-with: Cursor
2026-04-29 21:08:15 +08:00