Commit Graph

24 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 05121ebf02 chore: 服务器迁移 ZY-SVR-001(香港) → ZY-SVR-002(新加坡)
SY-CMD-SVR-013 · 铸渊主权服务器迁移

- IP: 150.109.76.244 → 43.134.16.246
- Region: 香港二区 → 新加坡二区
- OS: Ubuntu 22.04 → 24.04 LTS
- Specs: 4GB/70GB → 8GB/80GB SSD
- Bandwidth: 2048GB → 2560GB/月
- Expiry: 2027-03-29

Updated 17 files across server config, workflows, nginx,
skyeye, brain, README, and deployment scripts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-29 11:14:42 +00:00
copilot-swe-agent[bot] dbd4129ae1
阿里云→腾讯云迁移:更新主部署工作流 + 配置文件IP更新
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/deed974d-4a99-48a9-b00a-1d105d5892bc

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-29 04:27:26 +00:00
copilot-swe-agent[bot] 86ce5babd1 Address code review: add proxy startup warning, session expiration cleanup
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/dd3872e9-4f8f-4c5f-ad59-1fc55166d46d
2026-03-25 02:46:22 +00:00
copilot-swe-agent[bot] 89c659272a Phase 4-7: 人类使用侧全面修复 · CD管线人类验证 + 模块导航修复 + 服务器API代理 + 微信登录预留 + Web部署守卫 + 诊断报告
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/dd3872e9-4f8f-4c5f-ad59-1fc55166d46d
2026-03-25 02:43:24 +00:00
copilot-swe-agent[bot] b913d119e4 fix(persona-studio): 修复「我要开发」后端连接失败 [ZY-FIX]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-15 06:55:53 +00:00
juzi0412 247795f47d [BC-集成-005-JZ][DEV-010] API鉴权+开发者详情+模块列表 2026-03-14 02:49:48 +08:00
copilot-swe-agent[bot] f3f4ead417 fix: address code review feedback - path traversal protection, error msg fallback, named constant
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 05:59:53 +00:00
copilot-swe-agent[bot] 0fb07ab66a feat: 铸渊代理开发工作流 · 壳-核分离架构 (Core Brain + Agent)
- 新建 agent-workflow.js: 铸渊核心大脑唤醒 + 铸渊代理执行的壳-核分离架构
  - Phase 1: 核心大脑加载开发者记忆/画像/项目/知识库/模式库,深度分析意图
  - Phase 2: 代理接收核心大脑的开发计划,逐步执行代码生成
  - Phase 3: 核心大脑自进化(知识提取+模式识别+画像学习+进化日志)
- 更新 build.js: 支持 GUEST 模式、接收用户 API 凭证、使用 Agent 工作流
- 更新 chat.js: 传递用户 API 凭证、修复 WebSocket 时序竞态、增强错误反馈
- 更新 .gitignore: 排除 workspace 生成文件
- 更新核心大脑记忆: 记录本次恢复事件

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 05:56:33 +00:00
copilot-swe-agent[bot] 791ae45a0b fix: add rate limiting to preview API routes (CodeQL alert)
- Add per-IP rate limiting (60 req/min) to preview routes
- Periodic cleanup of expired rate limit entries

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 11:52:13 +00:00
copilot-swe-agent[bot] b4a835b8a7 fix: address code review feedback - validation, sanitization, docs
- Fix email validation JSDoc comment in chat.js
- Add explicit format validation for devId/project in preview routes
- Sanitize contact field input in build route
- Add detailed token estimation comment in memory-injector
- Add warning log when ws module is not available

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 11:50:12 +00:00
copilot-swe-agent[bot] 6f02d67ecd feat: implement split-screen layout, enhanced email modal, preview panel, and WebSocket
- chat.html: Enhanced modal with email+contact fields, split-screen HTML structure,
  resizer divider, preview panel with status bar and iframe
- chat.js: Email validation (frontend regex), email prefill on repeat visits,
  split-screen enterDevMode(), draggable resizer with touch support,
  preview panel status updates, WebSocket connection for build progress
- style.css: Split-screen dev-mode layout, resizer styles, preview panel styles
  with status indicators (waiting/building/done/error), modal field styles
- backend: Preview API route, WebSocket server for progress push,
  enhanced build route with email validation and broadcast,
  enhanced email template with file list and brand signature

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 11:47:50 +00:00
copilot-swe-agent[bot] f6ad45745b feat: implement database self-evolution + 200k context + memory injection
- Add profile-learner.js for auto user profile learning
- Add knowledge-extractor.js for knowledge auto-extraction
- Add pattern-analyzer.js for pattern recognition
- Add evolution-logger.js for evolution event logging
- Add memory-injector.js with 5-layer system prompt
- Update model-config.json with context_window_target: 200000
- Update model-router.js to prioritize 200k+ models
- Update persona-engine.js with knowledge/pattern queries
- Update code-generator.js with post-build evolution triggers
- Update memory-manager.js with updateProfile/autoExtractKnowledge
- Update chat route with auto profile update after each conversation
- Add brain JSON structures for knowledge-base, pattern-library, evolution-log, quality-scores

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 11:41:20 +00:00
copilot-swe-agent[bot] ceb9b3669c Replace 知秋 with 铸渊 references, add EXP-012/EXP-013 experience numbers
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 09:50:31 +00:00
copilot-swe-agent[bot] 4ee9c4c562 feat: upgrade Persona Studio - ZhuYuan persona + dark theme + two-mode login
1. Login page: two modes (developer EXP-XXX / guest), both require API key
2. Persona: upgraded from 知秋 to 铸渊 with core brain cognition
3. UI: dark theme with gradients, animations, modern visual style
4. Guest mode: enabled with reminder about developer ID application
5. Developer mode: memory continuity with dev info lookup
6. API wake mechanism: ZhuYuan wakes when real API key is provided

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 09:21:32 +00:00
copilot-swe-agent[bot] ff3ec0d024 fix: 修复模型无法回复用户消息 — 浏览器直连 API + 后端 URL 构造修复
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 03:04:29 +00:00
copilot-swe-agent[bot] 6063f7f8f4 fix: 修复用户消息无法获得模型回复的问题
- 修复 TDZ 崩溃: conversationHistory 声明移到 IIFE 之前(API Key 模式)
- 修复前端错误处理: DEV_ID 模式下后端返回错误时显示错误信息给用户
- 添加 "思考中" 状态指示: 用户发送消息后显示思考中提示
- 修复后端错误响应: 500 错误时也包含 reply 字段确保用户始终看到回复
- 添加知秋人格体 system prompt 到 API Key 模式对话

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 02:53:24 +00:00
copilot-swe-agent[bot] 523e4281fc refactor: address code review feedback - fix normalizeApiBase regex, improve error code propagation
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 12:53:19 +00:00
copilot-swe-agent[bot] 3eaf3b2c83 fix: Persona Studio API detection - switch from backend proxy to client-side direct calls
- Frontend index.html: Replace backend proxy model detection with direct browser fetch to user's API /models endpoint, add KNOWN_ENDPOINTS auto-probing, AbortController timeout
- Frontend chat.js: Replace backend proxy chat with direct browser fetch to user's API /chat/completions with streaming support
- Backend apikey.js: Add URL format validation (INVALID_API_BASE) and specific error codes (DNS_ERROR, NETWORK_ERROR, TIMEOUT)
- Backend server.js: Add /api/health endpoint for smoke test compatibility

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 12:51:34 +00:00
copilot-swe-agent[bot] 62ec0fcfae fix: address code review - const/let scoping, header injection guard, error messages
- Use const/let instead of var for block-scoped variables in frontend
- Add header injection validation for API Key (reject newline chars)
- Include original error message in fetchModels error callback
- Use more reliable hostname for unreachable API base test

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 12:08:37 +00:00
copilot-swe-agent[bot] a32c737073 feat: upgrade Persona Studio login to support API Key auto-detect model mode
- Add backend route POST /api/ps/apikey/detect-models for model auto-detection with 1-hour caching
- Add backend route POST /api/ps/apikey/chat for proxying chat through user's own API credentials
- Update login page with API Key login section (API Base URL + API Key + model detection + model list)
- Update chat.js to support API Key mode with dynamic model usage (selected_model)
- Update styles for API Key login UI (detect status, model list, etc.)
- Add smoke tests for new endpoints and dev_id login backward compatibility
- Security: API Key stored only in sessionStorage, never persisted on backend

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 12:06:23 +00:00
copilot-swe-agent[bot] 3ee4494e09 feat: establish Persona Studio human developer numbering system v1.0
- Create human-registry.json master database (EXP-000 through EXP-011)
- Migrate 冰朔 to EXP-000 as master control reserved number
- Import 11 collaborators from dev-status.json into EXP numbering
- Create notification outbox with queued notifications
- Update registry.json to v2.0 with all developers
- Update auth.js to read from human-registry.json
- Add HLI registry lookup route (HLI-REGISTRY-001)
- Update frontend: guest mode disabled, numbering hints updated

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 11:02:52 +00:00
copilot-swe-agent[bot] ce30f59f5c 修复 Persona Studio 聊天交互 · 添加访客体验模式 · 恢复核心大脑 · 创建跨仓库同步
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 07:18:47 +00:00
copilot-swe-agent[bot] 5bc0fba34c fix: upgrade nodemailer to 7.0.13 to fix DoS and domain validation vulnerabilities
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 05:19:13 +00:00
copilot-swe-agent[bot] 39a688ed03 feat: persona-studio 后端服务 + 智能模型路由 + 部署集成
- backend/server.js (Express on port 3002)
- routes: auth, chat, build, notify
- brain: memory-manager, persona-engine, code-generator, model-router
- model-config.json (routing strategy)
- utils: github-api, email-sender
- deploy workflow: PM2 + Nginx proxy for /api/ps/
- GitHub Actions: ps-on-login/chat/build/complete workflows
- Frontend API paths updated to /api/ps/ prefix

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 05:15:56 +00:00