Commit Graph

83 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 83b80fdc50 feat: 铸渊交互页面升级 — Notion数据注入 + 天眼状态展示 + @铸渊执行按钮 + 画像同步系统
新增文件:
- scripts/sync-notion-profiles.js: Notion→GitHub 开发者画像同步脚本
- .github/workflows/sync-notion-profiles.yml: 每6小时定时同步 workflow
- .github/notion-cache/dev-profiles/*.json: 7个开发者画像缓存初始文件
- .github/notion-cache/skyeye/latest-report.json: 天眼报告缓存占位
- .github/notion-cache/broadcasts/active-broadcasts.json: 活跃广播缓存

修改文件:
- docs/index.html: 交互页面升级 (Notion数据注入system prompt + 天眼卡片 + @铸渊执行)
- .github/workflows/zhuyuan-skyeye.yml: Phase 6.5 天眼报告缓存更新步骤

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/f22ed4e7-70d7-426e-ac6d-63925ec2b843
2026-03-24 12:39:23 +00:00
copilot-swe-agent[bot] a10e020d26 fix: web deploy diagnostic + module navigation + post-deploy smoke test
- Add cost-control/index.html redirect for proper Nginx serving
- Update docs/index.html navigation with all modules (cost-control, devboard, persona-studio)
- Add devboard symlink step to deploy workflow (modules/devboard → devboard)
- Add post-deploy smoke test step checking all module directories
- Expand deploy verification to check all key modules
- Create scripts/web-deploy-diag.sh for Phase A server diagnostics
- Create data/web-deploy-diag-20260324.txt diagnostic log
- Create data/web-deploy-fix-report.json fix report

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/4d7b9c05-531f-4e93-a770-f9324c663c38
2026-03-24 10:20:05 +00:00
copilot-swe-agent[bot] 7f7016b4ad Add Persona Studio link in docs nav, update smoke tests to target unified proxy
- Add 🧠 Persona Studio navigation tab in docs/index.html sidebar
- Update smoke tests to target api-proxy.js (port 3721) instead of persona-studio backend (3002)
- Update error code assertion to match improved error specificity
- Add test for INVALID_API_BASE validation
- Replace auth/login tests with /api/health check (auth is on separate service)

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 12:30:08 +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] 6391319c9b fix: replace literary-template synesthesia style with natural speech rules (v3.0)
- system-prompt.md: add identity anchoring, replace 5 sensory-channel mapping
  rules with 3 hard rules (structure, emoji-as-emotion, breathing rhythm),
  add correct/incorrect examples, update context to 200k
- style-config.json: delete mapping_examples (fixed metaphor phrases causing
  template responses), bump to v3.0, set mode to 'natural'
- docs/index.html sysPrompt(): replace inline synesthesia section with new
  v3.0 rules, add identity anchoring at prompt start

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 15:38:11 +00:00
copilot-swe-agent[bot] 5253def3b0 Address code review: extract formatDocs helper, remove diagnostic log
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 15:16:55 +00:00
copilot-swe-agent[bot] c52568df87 v5.4: remove 冰朔 shortcut, add file upload, 200k context, fix API, clean modules
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 15:13:44 +00:00
copilot-swe-agent[bot] 4b8d8908bc feat: 后端 Notion 开发者同步 API + 前端自动同步集成
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 14:52:26 +00:00
copilot-swe-agent[bot] 027b126f87 feat: 团队登录增加自定义开发者编号输入(DEV-XXX)
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 14:37:24 +00:00
copilot-swe-agent[bot] 2afe93e1a1 feat: 团队登录模式 + API代理部署 + 128k上下文(无需API密钥)
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 14:28:10 +00:00
copilot-swe-agent[bot] 203ecee955 fix: 改进滑动窗口保留最近消息 + 添加北京时间注释
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 13:52:16 +00:00
copilot-swe-agent[bot] e7723e6444 feat: MVP升级 P0-A(128k上下文) + P0-B(通感语言风格) + 基础设施
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 13:51:00 +00:00
copilot-swe-agent[bot] 6ef51c01d0 fix: address code review - restore zoom accessibility, use CSS var for viewport height, debounce resize
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 11:34:24 +00:00
copilot-swe-agent[bot] a015a3a003 feat: mobile compatibility fixes + guest mode DeepSeek API integration
- Fix viewport meta: add viewport-fit=cover, maximum-scale=1, user-scalable=no
- Replace 100vh with 100dvh (with fallback) for app shell, sidebars, panels
- Add iOS safe-area-inset padding for notched devices (iPhone X+)
- Add -webkit-overflow-scrolling: touch for momentum scrolling
- Fix input font-size to 16px (prevent iOS auto-zoom on focus)
- Fix side panels max-width: 100vw for small screens
- Improve mobile layout: smaller padding, hidden footer meta, horizontal scroll quick replies
- Add overscroll-behavior: none to prevent pull-to-refresh
- Increase touch targets to 44px minimum (iOS guidelines)
- Add visualViewport resize handler for mobile keyboard
- Add touch event handling for sidebar dismiss
- Configure guest mode to use DeepSeek via api-proxy
- Add guestStreamReply() with full 铸渊 system prompt
- Guest mode tries real API first, falls back to demo responses
- Update UI text to reflect guest API capability
- Version bump to v5.1

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 11:32:45 +00:00
copilot-swe-agent[bot] 15187c8b89 feat: 全站部署 — rsync 同步全仓库 + 模块导航 + 后端部署 + Nginx 配置
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 10:41:56 +00:00
copilot-swe-agent[bot] 41f05bf9e8 refactor: redesign login page with guest/dev modes and auto-detect API
- Replace multi-provider dropdown with two login modes: 访客模式 (guest) and 编号登录 (developer)
- Guest mode: one-click demo entry, no API key needed
- Developer login: identity selection + API endpoint + key + auto-detect models
- Remove all provider-specific logic (PROVS → KNOWN_ENDPOINTS for fallback)
- Simplify settings panel: endpoint URL + model + key (no provider dropdown)
- Auto-detect probes user's endpoint first, falls back to known endpoints
- Model dropdown populated from auto-detect results
- Remove proxy mode support
- Update help panel, version to v5.0, demo response text

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 08:21:44 +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
copilot-swe-agent[bot] aac7f53d4b feat: upgrade 铸渊助手 to v4.0 with three-column layout
- Three-column layout on desktop (>900px): left sidebar, center area, right sidebar
- Left sidebar: user identity, nav tabs (公告栏/聊天), conversation history, settings
- Center area switches between announcements and chat views
- Right sidebar: always-visible team panel for controllers (founder/supreme/main)
- Chat history system with localStorage (zy_conversations, max 20 conversations)
- Announcements page with system info from brain files, tasks, quick actions
- Mobile responsive: left sidebar toggleable via hamburger menu
- Identity preview on setup screen with DEV-ID display
- All existing JS functions, API streaming, demo mode, brain loading preserved
- Version bumped from v3.1 to v4.0

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 07:24:05 +00:00
copilot-swe-agent[bot] b48c401a6e fix: deploy feature branch to GitHub Pages so live site reflects all fixes
- deploy-pages.yml: add copilot/** branch pattern so Copilot Agent PRs
  auto-deploy to GitHub Pages while under review (no hardcoded branch name)
- docs/index.html: v3.1 version comment triggers the deploy on this push

This makes the live site immediately show: auto-detect API key, Gemini
provider, sessionStorage key (no cross-session stale key), and all other
fixes from this PR branch.

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-06 07:20:22 +00:00
copilot-swe-agent[bot] 1af4fd8411 feat: add auto-detect API provider and models from any key
- Add 🔍 自动检测 button in setup form and settings panel
- autoDetectAPI() probes GET /models on all known providers
  (yunwu → openai → gemini → deepseek → moonshot → zhipu)
- Custom endpoint is tried first if one is set
- Auto-fills provider select + model dropdown with live API response
- 8s timeout per probe (PROBE_TIMEOUT_MS constant)
- Shows inline loading/success/error feedback
- Add .det-btn CSS class for consistent button styling

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-06 06:52:09 +00:00
copilot-swe-agent[bot] c05c84512b feat: add Google Gemini as a named AI provider
- Add gemini entry to PROVS with OpenAI-compatible endpoint
  (https://generativelanguage.googleapis.com/v1beta/openai)
- Include models: gemini-2.0-flash, gemini-2.0-flash-lite, gemini-1.5-pro, gemini-1.5-flash
- Add 🔮 Google Gemini option to setup form and settings panel dropdowns
- Fixes 405 error caused by user entering raw "gemini" text as endpoint URL

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-06 06:44:04 +00:00
copilot-swe-agent[bot] f6430ffefb fix: 支持聚合 API 平台——自定义提供商模式下允许手动输入任意模型名
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-06 06:28:08 +00:00
copilot-swe-agent[bot] 33e1f3a746 feat: API 密钥改用 sessionStorage,关闭标签页即消失,彻底解决跨会话旧 Key 残留
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-06 05:45:56 +00:00
copilot-swe-agent[bot] a42675d2a5 fix: 多层防御修复持续报错旧 Key — no-cache、URL reset、header 重置按钮、扩展 sanitization
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-06 05:33:24 +00:00
copilot-swe-agent[bot] 447f6a7b3b fix: 根本修复 KEY_MASK bug,密钥框始终为空,添加重置所有设置按钮
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-06 05:17:41 +00:00
copilot-swe-agent[bot] 5d33beae91 fix: 修复聊天室跳转链接 + API 401 认证错误提示 + 密钥清空重填按钮
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-06 05:09:04 +00:00
copilot-swe-agent[bot] d92128faed plan: fix chat URL, key mask UX, and 401 error handling
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-06 05:06:13 +00:00
copilot-swe-agent[bot] 50f6c07fea fix: add yunwu AI as default provider
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-06 04:50:32 +00:00
copilot-swe-agent[bot] 997229a808 docs: 铸渊使用指南 — README 重写 + 帮助面板 + 一键复制链接
- README.md: 角色专属快速入门(冰朔/肥猫/桔子/开发者),API Key来源表,分享方法,功能一览
- docs/index.html: 新增  帮助按钮和帮助面板(#hp),包含:
  - 一键复制聊天室链接(📋 复制链接·发给队友)
  - 5步使用指南
  - API Key获取说明
  - 肥猫/桔子专属功能说明
  - 离线用法/微信传文件说明
  - 4种聊天模式解释
  - 常见问题FAQ
  - CHAT_URL常量统一管理URL,copyUrl函数含成功/失败反馈

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-05 15:47:00 +00:00
copilot-swe-agent[bot] f669a09d2b feat: 铸渊聊天室 v3.0 - 身份/角色系统 + 总控指挥台 + 团队进度看板
- 新增身份识别系统(冰朔=创始人, 肥猫=总控, 桔子=主控, 9名开发者)
- 总控/主控/创始人专属 🦁 指挥台面板,显示全员进度、等待阻塞、服务器信息
- 身份感知欢迎词:肥猫看到团队概况,桔子看到个人进度,开发者看到自己状态
- 角色徽章显示在 header,总控专属快捷指令按钮
- 角色感知 system prompt:控制层自动注入全员进度数据
- 加载 dev-status.json 团队进度数据
- 身份/GitHub用户名持久化到 localStorage,⚙️ 设置中可修改
- 角色徽章由 ROLE_MAP 统一管理,无硬编码 dev ID

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-05 15:31:04 +00:00
copilot-swe-agent[bot] dca614ebd3 feat: 铸渊助手 v2.0 — 真实 AI 流式对话 + API 接入 + 桌面下载 + 模式自动切换
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-05 13:31:50 +00:00
copilot-swe-agent[bot] 27493ce4c1 feat: 铸渊聊天室 — docs/index.html GitHub Pages UI + deploy-pages.yml + README 入口
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-05 12:58:42 +00:00