Commit Graph

4 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] ebefa1f1da fix: address code review feedback — schema, comment, key collision, streaming fallback
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 10:02:39 +00:00
copilot-swe-agent[bot] 8951eb86f1 feat: core brain upgrade v3.0 — shell-core separation architecture
- Created src/brain/ module (prompt-assembler, mode-detector, model-router, context-trimmer, memory-manager)
- Added HLI BRAIN domain endpoints (prompt, route, context, memory, status)
- Upgraded api-proxy.js with auto-fallback across providers
- Unified brain version to v3.0 across all files
- Frontend now calls backend brain APIs with local fallback
- Added truth-source federation documentation

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 09:57:26 +00:00
copilot-swe-agent[bot] 466f344ef8 fix: address code review — CORS, input validation, timeout alignment, logging
- CORS: default whitelist restricted to project domains (not wildcard)
- Input validation: clamp temperature [0,2] and max_tokens [1,8192]
- Timeout: increase to 60s, align Nginx config (90s read / 60s send)
- Logging: remove client IP and message count from logs
- Frontend: move proxy option lower in dropdown, fix duplicate system prompt
- Shorten proxy mode placeholder text

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 07:34:59 +00:00
copilot-swe-agent[bot] 723f6b16bc feat: add backend API proxy layer for China network access
- backend-integration/api-proxy.js: Node.js proxy with SSE streaming passthrough
  - Supports DeepSeek/Moonshot/Zhipu (China-direct) + Yunwu/OpenAI/Gemini
  - API keys managed server-side via environment variables
  - Rate limiting (10 req/min per IP)
  - CORS support for cross-origin access
  - Health check and model listing endpoints
- backend-integration/nginx-api-proxy.conf: Nginx config reference
- docs/index.html: Added "后端代理" provider option (no API key required)
- package.json: Added proxy:start script

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 07:31:58 +00:00