Commit Graph
22 Commits
Author SHA1 Message Date
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