Commit Graph

349 Commits

Author SHA1 Message Date
铸渊 (ZhùYuān) 8f0f9b35ce 📋 自动更新 HoloLake Era 模块文档 · 2026-03-10 15:36 UTC 2026-03-10 15:36:02 +00:00
bingshuo-neural-system dca5686665 🧠 冰朔主控神经系统自动编译 2026-03-10T15:35:52Z 2026-03-10 15:35:52 +00:00
冰朔 c5191e52b1
Merge pull request #51 from qinfendebingshuo/copilot/debug-cd-deploy-pipeline
fix: add secrets validation to CD deploy pipeline
2026-03-10 23:35:30 +08:00
冰朔 6041719b67
Merge pull request #50 from qinfendebingshuo/copilot/fix-api-response-issue
fix: add reverse proxy for Persona Studio backend routes in api-proxy
2026-03-10 23:35:05 +08:00
copilot-swe-agent[bot] 0de4170ee7 chore: 添加 CORS 头过滤注释说明(代码审查反馈)
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 14:39:20 +00:00
copilot-swe-agent[bot] df64cb221d fix: 修复 Persona Studio 对话无回复 · API代理层新增反向代理 + PM2配置补全 + 模块自检修复
问题根因:Nginx 将所有 /api/* 路由到 api-proxy (port 3721),但
api-proxy 未处理 /api/ps/chat/*, /api/ps/auth/* 等 Persona Studio
后端路由,导致请求返回 404,用户发送消息后无回复。

修复内容:
1. api-proxy.js 新增反向代理,将 /api/ps/chat/*, /api/ps/auth/*,
   /api/ps/build/*, /api/ps/notify/* 转发到 PS 后端 (port 3002)
2. ecosystem.config.js 补全 api-proxy + persona-studio PM2 配置
3. m15-cloud-drive/ 补全 README.md(模块自检修复)
4. README.md 开发者公告栏更新修复状态

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 14:38:17 +00:00
copilot-swe-agent[bot] 39d6d43b53 fix: add secrets validation step to CD pipeline, add diagnostic report
The deploy job now validates DEPLOY_HOST, DEPLOY_USER, DEPLOY_KEY, and
DEPLOY_PATH secrets before attempting SSH operations. This replaces the
cryptic ssh-keyscan failure with a clear error message explaining which
secrets need to be configured.

Also made ssh-keyscan more robust by quoting the hostname and adding
fallback handling.

Ref: YM-CD-DEBUG-20260310-001

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 14:38:06 +00:00
copilot-swe-agent[bot] 7ba16f1e8b Initial plan 2026-03-10 14:32:59 +00:00
copilot-swe-agent[bot] ae0e52029e Initial plan 2026-03-10 14:19:24 +00:00
github-actions[bot] 60dda7e38a 📢 自动更新系统公告区 [skip ci] 2026-03-10 14:08:23 +00:00
铸渊 (ZhùYuān) 5d34fd4ff3 📚 铸渊图书馆目录更新 · 2026-03-10T14:08 2026-03-10 14:08:21 +00:00
bingshuo-neural-system 8a768a82db 🧠 冰朔主控神经系统自动编译 2026-03-10T14:08:07Z 2026-03-10 14:08:07 +00:00
冰朔 f951ef1876
Merge pull request #49 from qinfendebingshuo/copilot/fix-model-interaction-issues
fix: Persona Studio API Key chat CORS failure, bulletin push race condition, add daily inspection agent
2026-03-10 22:07:57 +08:00
copilot-swe-agent[bot] 85519ab1cd fix: address code review feedback - remove duplicate variable, fix report job deps
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 13:57:02 +00:00
copilot-swe-agent[bot] 555247a913 fix: Persona Studio chat proxy, bulletin push retry, daily agent workflow
1. Fix API Key mode chat: route through backend proxy to avoid CORS
2. Fix bulletin update workflow: add git pull --rebase retry on push failure
3. Add daily inspection Agent workflow and script

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 13:56:03 +00:00
github-actions[bot] 9edea7d4e2 📢 自动更新系统公告区 [skip ci] 2026-03-10 13:54:48 +00:00
copilot-swe-agent[bot] f8b32844be Initial plan 2026-03-10 13:46:55 +00:00
铸渊 (ZhùYuān) a4374bc87b 🧠 铸渊记忆更新 · 2026-03-10 2026-03-10 13:24:33 +00:00
铸渊 (ZhùYuān) 729a2dcf35 📚 铸渊图书馆目录更新 · 2026-03-10T13:24 2026-03-10 13:24:07 +00:00
铸渊 (ZhùYuān) 1bb120d9ba 📋 自动更新 HoloLake Era 模块文档 · 2026-03-10 13:23 UTC 2026-03-10 13:23:52 +00:00
zhizhi200271 6d777062e8 合并远程更新并添加钉钉Phase1模块 2026-03-10 21:23:40 +08:00
zhizhi200271 c47b4b2c36 DEV-004: M-DINGTALK Phase1- SYSLOG自动接收+解析+模型API广播生成+推送 2026-03-10 21:20:01 +08:00
铸渊 (ZhùYuān) b1f861c43a 📚 铸渊图书馆目录更新 · 2026-03-10T13:11 2026-03-10 13:11:27 +00:00
bingshuo-neural-system 381cdd8423 🧠 冰朔主控神经系统自动编译 2026-03-10T13:11:12Z 2026-03-10 13:11:13 +00:00
冰朔 ca9065b08a
Merge pull request #47 from qinfendebingshuo/copilot/fix-api-input-issues
fix: Persona Studio API detection — client-side direct calls instead of backend proxy
2026-03-10 21:11:01 +08: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
铸渊 (ZhùYuān) 690a0a61e2 📚 铸渊图书馆目录更新 · 2026-03-10T12:50 2026-03-10 12:50:05 +00:00
github-actions[bot] bc4e24ffe6 📢 自动更新系统公告区 [skip ci] 2026-03-10 12:50:03 +00:00
zhizhi200271 9a0eeb036f [BC-GLOBAL-002][DEV-002] Git连通测试成功 2026-03-10 20:49:40 +08:00
copilot-swe-agent[bot] 70db41e17e Initial plan 2026-03-10 12:40:45 +00:00
铸渊 (ZhùYuān) cbcfc35714 🧠 铸渊记忆更新 · 2026-03-10 2026-03-10 12:38:40 +00:00
铸渊 (ZhùYuān) 0809f4d00f 🧠 铸渊记忆更新 · 2026-03-10 2026-03-10 12:38:12 +00:00
铸渊 (ZhùYuān) 1945e7298c 📚 铸渊图书馆目录更新 · 2026-03-10T12:37 2026-03-10 12:37:16 +00:00
铸渊 (ZhùYuān) 7dc7d61346 📋 自动更新 HoloLake Era 模块文档 · 2026-03-10 12:37 UTC 2026-03-10 12:37:08 +00:00
bingshuo-neural-system bf2f6e9870 🧠 冰朔主控神经系统自动编译 2026-03-10T12:37:06Z 2026-03-10 12:37:06 +00:00
冰朔 a19a2f928a
Merge pull request #45 from qinfendebingshuo/copilot/fix-persona-studio-api-detection
Fix Persona Studio API key detection by unifying with docs main site proxy
2026-03-10 20:36:55 +08:00
copilot-swe-agent[bot] 2482567ac2 Address code review: fix SSRF protection, cache key safety, error handling
- Add protocol validation (http/https only) to prevent SSRF via file:/ftp: URLs
- Hash both apiBase+apiKey together in cache key to prevent collision attacks
- Simplify frontend error detection (use TypeError instanceof instead of fragile string check)
- Make smoke test error code assertion more precise with regex

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 12:31:56 +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] e36bc19cfb Fix: Add user API key endpoints to api-proxy.js, unify Persona Studio backend with docs proxy
Root cause: Persona Studio frontend sent requests to /api/ps/apikey/detect-models
but api-proxy.js (port 3721, the only backend Nginx routes to) didn't handle those paths.
The separate persona-studio backend (port 3002) was never deployed via ecosystem.config.js or Nginx.

Fix: Add detect-models and chat handlers directly to api-proxy.js so they work through
the same Nginx → API Proxy chain that the docs main site already uses successfully.
Also update frontend to point to port 3721 for local dev, and improve error messages.

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 12:25:36 +00:00
copilot-swe-agent[bot] a1486fc216 Initial plan 2026-03-10 12:19:33 +00:00
铸渊 (ZhùYuān) be0d810c45 📚 铸渊图书馆目录更新 · 2026-03-10T12:11 2026-03-10 12:11:58 +00:00
bingshuo-neural-system 4c7b34d6d2 🧠 冰朔主控神经系统自动编译 2026-03-10T12:11:48Z 2026-03-10 12:11:48 +00:00
冰朔 b26d42a1b7
Merge pull request #44 from qinfendebingshuo/copilot/upgrade-login-system-to-api-key
feat: add API Key login mode with auto-detect models to Persona Studio
2026-03-10 20:11:37 +08: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] 00d13e6537 Initial plan 2026-03-10 11:59:44 +00:00
铸渊 (ZhùYuān) c3775f56e2 🧠 铸渊记忆更新 · 2026-03-10 2026-03-10 11:54:33 +00:00
铸渊 (ZhùYuān) dd3615999e 🧠 铸渊记忆更新 · 2026-03-10 2026-03-10 11:54:19 +00:00
铸渊 (ZhùYuān) dcc31b3fd1 🧠 铸渊记忆更新 · 2026-03-10 2026-03-10 11:37:53 +00:00