Commit Graph

63 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] f1137aa3f0 fix: address code review feedback on generator scripts and workflow
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 19:39:42 +00:00
copilot-swe-agent[bot] 3c0617f32e feat: 数字地球系统通信协议 v4.0 · Repository侧部署
- brain/ 目录建立(master-brain.md, read-order.md)
- communication-map.json 通信地图
- automation-map.json 自动化地图
- id-map.json 编号档案
- repo-map.json 仓库目录结构
- system-health.json 系统健康状态
- daily-maintenance.yml 每日巡检 workflow
- 生成器脚本(generate-communication-map.js, generate-automation-map.js, generate-system-health.js)
- npm scripts 注册

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 19:37:13 +00:00
copilot-swe-agent[bot] 8b013c998f fix: address code review feedback - fix empty catch blocks, remove redundant fallback, fix email step status
- Add error logging to catch blocks in intent-router.js and pipeline-reporter.js
- Remove redundant devId+devInfo fallback in handleBingshuoComment (now handled by parseIntent)
- Fix email step progress reporting to use steps.email.outcome instead of steps.persona.outcome
- Standardize last_synced field access

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 15:46:41 +00:00
copilot-swe-agent[bot] 2bd9a84abb fix: replace static progress table with per-step comments + add intent routing for @铸渊 queries
Bug A: syslog-issue-pipeline.yml now posts individual progress comments
for each step (1-8) instead of a static table that never updates.
zhuyuan-issue-reply.yml syslog-ack simplified to receipt confirmation.

Bug B: zhuyuan-issue-reply.js now uses intent-router.js to parse @铸渊
queries. Pipeline status queries (#92闭环状态) are routed correctly
instead of dumping team overview data.

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 15:44:55 +00:00
copilot-swe-agent[bot] 983fd6e951 refactor: extract magic numbers as named constants in diagnose report
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 13:55:14 +00:00
copilot-swe-agent[bot] cecde1d924 feat: PM2 server diagnosis workflow + Notion report + port conflict fix
- Add pm2-server-diagnose.yml workflow for SSH-based PM2 diagnosis
- Add server-diagnose-report.js script for Notion ticket creation
- Fix port conflict: guanghulab (src/index.js) now uses port 3001
- Update ecosystem.config.js to align with deploy workflow process names

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 13:53:55 +00:00
copilot-swe-agent[bot] 8addc17ccc fix: exclude SYSLOG issues from zhuyuan-issue-reply + add title/body detection to syslog-issue-pipeline
Problem: When developers submit SYSLOG via the 🚀 开发者入口, zhuyuan-issue-reply.yml
intercepts the issue and responds with "已记录。霜砚会在下次巡检时处理" instead of letting
syslog-issue-pipeline.yml handle the full auto-processing loop.

Root causes:
1. zhuyuan-issue-reply.yml triggers on ALL new issues with no exclusion for SYSLOG
2. syslog-issue-pipeline.yml only detects via 'syslog' label which may not exist in repo
3. zhuyuan-issue-reply.js has no guard against SYSLOG issues, falls through to generic fallback

Fixes:
- zhuyuan-issue-reply.yml: Exclude issues with syslog/bingshuo-deploy labels, SYSLOG/系统日志
  in title, or '### 广播编号' in body (template field marker)
- syslog-issue-pipeline.yml: Detect SYSLOG issues by label OR title OR body pattern
- zhuyuan-issue-reply.js: Add isSyslog guard in handleIssueTrigger() as defense-in-depth

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 12:52:28 +00:00
copilot-swe-agent[bot] c9d6495e5f refactor: 提取共享 dev-suffix-map 模块 + 修复代码审查反馈
- 创建 scripts/utils/dev-suffix-map.js (共享后缀→DEV-ID映射)
- 更新 verify-modules.js + push-broadcast-to-github.js 使用共享映射
- 移动 require 到文件顶部 (invoke-persona.js, create-standardized-ticket.js)
- 心跳监控参数可配置化 (HEARTBEAT_TIMEOUT_MINUTES, MAX_RETRY_COUNT)

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 06:37:11 +00:00
copilot-swe-agent[bot] e0dbe71bdc feat: Phase B 全自动闭环对接 · 标准化工单 + 人格体调用端点 + 心跳监控 + 广播推送
Phase B1: 标准化工单创建 (create-standardized-ticket.js + receive-syslog.js更新)
Phase B2: 人格体调用端点 (invoke-persona.js + persona-invoke.yml workflow_dispatch)
Phase B3: 心跳监控 (notion-heartbeat.js + notion-heartbeat.yml 每5分钟)
Phase B4: 广播推送 (push-broadcast-to-github.js + broadcasts/ 目录)

工作流更新: syslog-issue-pipeline.yml, syslog-auto-pipeline.yml, notion-callback-pipeline.yml

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 06:33:17 +00:00
copilot-swe-agent[bot] a6567ff2d2 fix: 修复代码审查问题 - extractDevId 逻辑 + 事件去重 + 工单状态条件化
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 06:08:13 +00:00
copilot-swe-agent[bot] bce083dc66 feat: 铸渊 SYSLOG 全闭环工作流 · 模块验证 + 核心大脑唤醒 + Notion 回传管道
新增:
- scripts/verify-modules.js: 模块上传验证脚本
- .github/workflows/notion-callback-pipeline.yml: Notion→GitHub 回传核验管道

增强:
- syslog-issue-pipeline.yml: 新增模块验证步骤 + 核心大脑注入验证结果
- syslog-auto-pipeline.yml: 同步增强
- wake-persona.js: 支持 MODULE_VERIFY_RESULT + NOTION_CALLBACK_RESULT 注入

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 06:05:53 +00:00
copilot-swe-agent[bot] b3d03221e2 feat: broadcast_code_injection = always for automated pipeline + code review fixes
- Add permanent rule: automated pipeline broadcasts must include complete runnable code
- Fix Notion ticket step condition (secrets.NOTION_API_TOKEN check)
- Extract MAX_PROTOCOL_TEXT_LENGTH constant

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 03:54:31 +00:00
copilot-swe-agent[bot] 81a8939c05 feat: v4.0 协议动态注入 + 移除 Anthropic 硬编码 fallback
- 移除 api.anthropic.com 硬编码默认值,LLM_BASE_URL 必须显式配置
- 新增 LLM_BASE_URL 缺失时的优雅降级
- 新增 Notion API 工具函数(notionGet/notionPost/getNotionPageBlocks)
- 新增 fetchCoreBrainProtocols() — 从核心大脑 v4.0 读取协议段落
- 新增 fetchDevPortrait() — 查询画像库最近 2-3 条快照
- 新增 fetchModuleFingerprint() — 查询模块指纹注册表
- buildSystemPrompt() 改为 async,动态注入所有 v4.0 协议到 system prompt
- workflow 新增 CORE_BRAIN_PAGE_ID/PORTRAIT_DB_ID/FINGERPRINT_DB_ID secrets

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 03:51:30 +00:00
copilot-swe-agent[bot] 1999a55091 fix: address code review - remove duplicate model, fix null refs, improve email masking
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 03:40:47 +00:00
copilot-swe-agent[bot] 6487a8b2f0 feat: SYSLOG 自助提交系统 · Discussion 入口 + Actions 管道 + LLM 自动检测
- 创建 Discussion 模板 (.github/DISCUSSION_TEMPLATE/syslog-submit.yml)
- 创建 Actions 管道 (.github/workflows/syslog-auto-pipeline.yml)
- 创建 LLM 自动检测 + 人格体唤醒脚本 (scripts/wake-persona.js)
- 更新 README.md 添加醒目开发者入口

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 03:39:23 +00:00
copilot-swe-agent[bot] 9fb8197042 refactor: extract shared feishu alert script + fix error messages + code review fixes
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 17:25:53 +00:00
copilot-swe-agent[bot] d0cc67953b feat: Phase 4 — AI对话引擎 + 多轮上下文 + 协作数据采集 + 失败告警 + 幂等性
Phase 4A: backend/feishu-bot/ai-chat.js — DeepSeek/通义千问 AI 模型接入
Phase 4A: backend/feishu-bot/context-manager.js — 多轮对话上下文管理
Phase 4B: push-broadcast.yml — 飞书群新广播通知
Phase 4C: backend/feishu-bot/collaboration-logger.js — 协作数据采集
Phase 4C: scripts/save-collaboration-log.js — persona-brain-db 数据对齐导出
Phase 4D: 三条链路 workflow 失败告警 → 飞书通知
Phase 4D: receive-syslog.js — 幂等性保护(相同 SYSLOG 不重复创建工单)

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 17:22:57 +00:00
copilot-swe-agent[bot] 6d1c3e02eb fix: address code review — env var for GitHub repo, date dedup in receive-syslog
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 17:17:14 +00:00
copilot-swe-agent[bot] ceb61cbac8 feat: M-BRIDGE 飞书集成 — 三条链路脚本 + 飞书机器人回传桥
- sync-login-entry.yml + .js: Notion 登录入口 → 飞书文档A (全量替换)
- push-broadcast.yml + .js: Notion 广播 → 飞书文档B (追加到顶部)
- receive-syslog.yml + .js: SYSLOG 回传 → 存入仓库 + Notion 收件箱 + 霜砚工单
- feishu-bot.js: 飞书机器人事件回调处理 (SYSLOG 回传桥)
- syslog/ 目录创建

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 17:12:52 +00:00
copilot-swe-agent[bot] 0d59041e72 refine: 使 systemWorkflows 匹配模式更精确以避免误匹配
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 15:20:41 +00:00
copilot-swe-agent[bot] e108dc7b8d fix: 修复合作者公告栏自动更新链路 · workflow_run 触发器名称修正 + systemWorkflows 匹配修正 + 模块路径补全
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 15:18:07 +00:00
copilot-swe-agent[bot] 6628bf12c6 fix: add Array.isArray guard for module field normalization
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 13:05:01 +00:00
copilot-swe-agent[bot] 054900ba4f fix: normalize dev-status.json and collaborators.json field names for zhuyuan issue reply
The script expected field names (team_status, modules, next_step, waiting_for,
last_synced) that didn't match the actual Notion-synced data (team, module,
current, waiting, last_sync). Added a data normalization step after reading
JSON files to bridge the gap. Also handles nested collaborators.json format
and missing tech_routing/server_info/os fields gracefully.

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 13:04:08 +00: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
copilot-swe-agent[bot] e160fbbde1 feat: Implement Bingshuo Core Brain Dual-Layer System v1.0 with auto-agent framework
- Brain Bridge module with sync fields, master mode, consistency check
- Human developer EXP numbering system with notification queue
- 8 auto-agent definitions for maintenance/sync/archiving/inspection
- 10 new HLI brain bridge API endpoints
- Brain bridge sync CLI tool
- Persona collaboration rules and volume/archiving rules
- Master brain documentation with full system definitions

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 11:15:58 +00:00
copilot-swe-agent[bot] b395dac2c8 refactor: 提取 workflow 文件名常量,移除 root_cause_summary 截断
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 10:11:16 +00:00
copilot-swe-agent[bot] 5feb1bc94b feat: 构建冰朔主控神经系统 v1.0 — 核心文件、Agent 脚本与自动维护 workflow
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 10:10:00 +00:00
copilot-swe-agent[bot] e50a79aeaa fix: exclude index.js router aggregator from HLI contract check
The contract-check.js script was requiring schema files for index.js
files in route directories, but index.js files are router aggregators
(not HLI endpoints) and should not have schemas. This caused the
deploy-to-server.yml CD pipeline to fail, preventing persona-studio
backend from being deployed. As a result, users could not login or
access the interactive chat interface.

Error:  [MISSING] index.js → 缺少 src/schemas/hli/auth/index.schema.json

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 08:16:33 +00:00
copilot-swe-agent[bot] 1723ae7906 修复 workflow 环境变量命名 · 改进错误信息
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 07:22:33 +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
冰朔 8da0610dce
Merge pull request #30 from qinfendebingshuo/copilot/add-system-introduction-and-announcement
📢 Split bulletin into Bingshuo/Collaborator sections with auto-alerts and Zhuyuan workspace
2026-03-09 17:38:05 +08:00
copilot-swe-agent[bot] f00d67061e 修复代码审查反馈:改进错误日志、常量命名、类型检查
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-09 09:30:51 +00:00
copilot-swe-agent[bot] 3e8395923a 📢 公告栏v2: 分离冰朔/合作者公告 + 铸渊自动提醒 + 铸渊工作区
- README.md: 冰朔公告栏(自检/轮询/数据库) + 合作者公告栏(模块上传) + 铸渊工作区
- scripts/update-readme-bulletin.js: v2.0 分离事件分类 + 红绿提醒 + 邮件通知
- .github/workflows/update-readme-bulletin.yml: 增加SMTP环境变量和PSP巡检触发
- .github/workflows/zhuyuan-issue-reply.yml: 新增 issue_comment 触发(@铸渊)
- scripts/zhuyuan-issue-reply.js: 评论区唤醒 + 权限控制 + 安全检查 + 一人一问

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-09 09:29:26 +00:00
copilot-swe-agent[bot] f79ead0e71 修复代码审查反馈:使用 Intl.DateTimeFormat、提取常量、改进错误日志
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-09 09:16:58 +00:00
copilot-swe-agent[bot] 7bd40b3e9a 📢 添加光湖系统介绍 + 系统公告区 + 自动更新工作流
- 重写 README.md:系统简介、架构图、人格体介绍、技术栈、团队信息、模块目录
- 添加系统公告区(BULLETIN_START/END 标记),自动显示模块上传和系统事件
- 新增 scripts/update-readme-bulletin.js:从 memory.json + GitHub API + git 日志聚合事件
- 新增 .github/workflows/update-readme-bulletin.yml:推送/工作流完成/定时触发自动更新公告

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-09 09:15:40 +00:00
yeye-guanghu 4a0c856c7e
Merge branch 'main' into step5-workflow 2026-03-09 17:08:46 +08:00
淑婷陈 1fc71abdc1 Step 8: 广播分发系统完成 2026-03-09 16:33:09 +08:00
淑婷陈 03870f8822 Step 7: 自检脚本 + 每日自检工作流 2026-03-09 16:30:00 +08:00
copilot-swe-agent[bot] 43f92af0cb fix: 处理 TEST_RESULT 为 unknown 的边界情况
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-09 08:27:55 +00:00
淑婷陈 0105815fb6 Step 7: 广播接收脚本 + 记忆自更新工作流 2026-03-09 16:27:12 +08:00
copilot-swe-agent[bot] d120b776c4 fix: 模块通知邮件路由修复 - 改用 Commit Comment 通知推送者本人,不再通知仓库所有者
v2.0 改动:
1. notify-module-received.js: 改用 Commit Comment API(替代 Issue API)
   - 邮件只发给推送者本人(@github.actor),不再通知仓库所有者
   - 通知中包含模块自检结果(通过/未通过 + 详细报告)
2. generate-module-doc.yml: 新增模块自检步骤(检查 README、package.json、src/ 等)
3. bingshuo-deploy-agent.yml: 新增 workflow_run 触发,模块推送后自动启动冰朔人格体

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-09 08:25:38 +00:00
淑婷陈 455686d064 Step 7: 铸渊 PR 审核工作流 + 记忆更新脚本 2026-03-09 16:16:49 +08:00
淑婷陈 21b9d43709 Step 6: 契约校验脚本完成 2026-03-09 15:55:22 +08: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] bcecea3912 🧪 refactor: address code review feedback (rename fmt, improve push error logging)
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 13:05:50 +00:00
copilot-swe-agent[bot] e3475f64e7 🧪 feat: add Notion connectivity test script and workflow (YM-TEST-20260307-001)
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 13:04:48 +00:00
copilot-swe-agent[bot] bca45ccd02 feat: custom domain + staging preview + 铸渊人格协议 module management
- Add docs/CNAME for guanghulab.com custom domain
- Fix deploy-pages.yml: production deploy only from main (not copilot/**)
- Add staging-preview.yml: PR preview with module integrity checks
- Add .github/brain/module-protocol.md: ZMP v1.0 protocol documentation
- Add scripts/zhuyuan-module-protocol.js: module lifecycle CLI
- Add module:protocol npm script
- Update 使用指南.md: custom domain + module management sections

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 08:58:07 +00:00
copilot-swe-agent[bot] cedcf5127e fix: address code review — consistent description, conditional commit step
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 07:44:35 +00:00
copilot-swe-agent[bot] e695e0d3b2 feat: add Notion signal bridge + poll workflow, suspend ESP email processor
- scripts/notion-signal-bridge.js: Notion API direct communication replacing email
  - Poll work orders from 工单簿 (query status='已发送')
  - Execute work orders (broadcast, status query, deploy check, data sync)
  - Write back results to work order + signal log (dual-write: Notion + local)
  - Health check mode for diagnostics
- .github/workflows/notion-poll.yml: 15-minute polling workflow
- Suspend esp-signal-processor.yml schedule (keep manual trigger)
- Update signal-log description to reflect Notion migration
- Add npm scripts: notion:poll, notion:health

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