Commit Graph

14 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 50f48338a6
fix: add error handling to hli-smoke.test.js run() call
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5c6d1708-122e-40ae-b9d5-1023b601481b
2026-03-26 07:47:07 +00:00
copilot-swe-agent[bot] 79d07d7ed8
fix(skyeye): revert ontology.json to avoid R4 critical block + add HLI test scripts
- Revert ontology.json to main version (R4 triggers critical for agent PRs
  modifying SKYEYE_CORE_FILES → automatic BLOCK)
- Add test:contract script (node scripts/hli-contract-check.js)
- Add test:route-align script (node scripts/route-align-check.js)
- Add start:test and test:smoke scripts for HLI Contract Check workflow
- Fix route-align-check.js to exit(1) on failure
- Create hli-contract-check.js for schema validation
- Create tests/smoke/hli-smoke.test.js for server health check

SkyEye simulated result: WARN (1 HIGH for package.json) → PASS

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5c6d1708-122e-40ae-b9d5-1023b601481b
2026-03-26 07:44:47 +00:00
copilot-swe-agent[bot] d7ff35e346 feat: 🌊 Guanghu Language Shell v1.0 — unified gateway protocol layer [ZY-GLSHELL-001]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/e198eccd-d605-4e5c-bddb-b0874c4207ec
2026-03-21 14:00:14 +00:00
copilot-swe-agent[bot] 3edd723faf 🔐 修复SFP nonce生成偏差 + 提取magic numbers为命名常量
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-18 16:27:30 +00:00
copilot-swe-agent[bot] b50e4555e5 🎖️ 将军架构v1.0 + SFP指纹协议v1.0 + D14/D15天眼维度 + 仓库公告板 + 定时调度
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-18 16:22:40 +00:00
copilot-swe-agent[bot] 84d4d91aec 🔏 铸渊指令签名校验协议 v1.1:授权名单 + 校验模块 + 中间件 + 契约测试
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-17 02:12:32 +00:00
copilot-swe-agent[bot] 84c8131e3a fix: use proper Markdown numbered list format (1.) instead of bullet (•)
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-16 14:19:46 +00:00
copilot-swe-agent[bot] b570eac59c feat: add Notion page reader script and workflow for reading page content from URLs
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-16 14:18:41 +00:00
copilot-swe-agent[bot] 2062878c9f fix: 修复 Persona Studio 「我要开发」任务提交失败
根因修复:
1. Nginx CORS 头缺失(跨域预检失败导致 fetch 抛出异常)
2. WebSocket /ws/preview 路由被 /ws 匹配到端口 8080(应路由到 3002)
3. 前端开发端口不匹配 (3721 → 3002)

增强:
- 添加重试机制(最多2次重试)
- 提供详细错误诊断信息
- 更新 nginx-api-proxy.conf 参考配置
- 修复 smoke test 默认端口

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 07:09:19 +00: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] 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] 818e7c5d89 feat: add HLI CI/CD pipeline, contract scripts, Copilot instructions and project structure
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-05 09:35:50 +00:00