Commit Graph

89 Commits

Author SHA1 Message Date
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] 0336d99d1e 🔧 Address code review feedback: extract magic numbers as constants
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-16 09:49:07 +00:00
copilot-swe-agent[bot] dc9b77a637 🦅 天眼系统+人格体编号体系+门禁v2 · Phase 1-3 实施
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-16 09:47:34 +00:00
copilot-swe-agent[bot] 5bbb289bd5 🚨 门禁引擎 · 补充 REPO_OWNER 回退注释说明
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-16 06:05:27 +00:00
copilot-swe-agent[bot] 2e964086bf 🚨 门禁引擎升级 · 仓库主人识别 + 双配置源合并 + 冰朔确认原则
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-16 06:02:33 +00:00
copilot-swe-agent[bot] e9fd2ec4f4 🦅 天眼系统代码审查修复 · 简化正则 + 错误提示优化 + 空值安全 + 降级日志增强
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-16 05:40:24 +00:00
copilot-swe-agent[bot] 9d3fc45205 🦅 天眼系统部署 · 全局俯瞰 + 自动诊断 + 修复Agent · 9个扫描模块 + Workflow + 门禁配置
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-16 05:38:35 +00:00
copilot-swe-agent[bot] fe81282bab 🔧 门禁代码审查修复: 增强空行过滤、revert错误处理、grep兼容性
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-16 05:02:54 +00:00
copilot-swe-agent[bot] 203d5c5633 🚨 铸渊·智能门禁上线 · gate guard workflow + scripts + config
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-16 05:01:23 +00:00
冰朔 16cda2e4a5
Merge pull request #104 from qinfendebingshuo/copilot/fix-dev-status-json-sync
feat: dev-status sync automation, daily report, Discussion auto-reply, README refresh
2026-03-15 23:35:14 +08:00
copilot-swe-agent[bot] 5275fc7b5e fix: address code review — improve error comments and skeleton alert text
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-15 15:20:25 +00:00
copilot-swe-agent[bot] 9a09a48c7b 恢复仓库首页 + 所有自动化工作流添加核心大脑唤醒 + README 首页自愈检测
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-15 15:19:26 +00:00
copilot-swe-agent[bot] ebbca679e4 fix: address code review — improve alert matching logic, fix email indentation
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-15 12:57:24 +00:00
copilot-swe-agent[bot] 19e35fac73 feat: 服务器巡检自动化 — 巡检脚本 + Notion同步 + 巡检工作流
新增文件:
- scripts/server-patrol.sh (7项检查: Nginx/模块冒烟/PM2/磁盘/权限/SSL/配置)
- scripts/sync-patrol-to-notion.js (巡检结果→Notion工单)
- .github/workflows/server-patrol.yml (cron 08:00+20:00 + 部署后触发)
- data/patrol-logs/.gitkeep (巡检日志目录)

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-15 12:56:03 +00:00
copilot-swe-agent[bot] 9deab62d13 feat: 沙盒部署自动化闭环 — 全套脚本 + 工作流 + 数据文件
新增文件:
- .github/workflows/sandbox-deploy.yml (主部署流程)
- .github/workflows/sync-deploy-to-notion.yml (定时同步)
- scripts/deploy-check.sh (部署前自检)
- scripts/smoke-test.sh (冒烟检查)
- scripts/sync-deploy-to-notion.js (Notion API 写入)
- scripts/setup-sandbox.sh (新开发者开户脚本)
- data/deploy-status.json (部署状态源)
- data/dev-registry.json (开发者注册表)

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-15 12:39:26 +00:00
copilot-swe-agent[bot] 60ac3e86c2 feat: Section 7 - Notion Agent cluster integration with wake listener and multi-persona support
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-15 07:53:44 +00:00
copilot-swe-agent[bot] ff1723cc85 feat: AGE OS v1.0 Phase 1 - core brain wake, multi-model router, full inspection
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-15 07:45:39 +00:00
copilot-swe-agent[bot] 345c71b6ea fix: address code review feedback - topStreak edge case, remove unused var
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-15 01:56:01 +00:00
copilot-swe-agent[bot] 77599c4082 feat: dev-status sync, daily report, auto-reply bot, README update
Task 1: dev-status.json sync workflow + script + selfcheck alerting
Task 2: Daily report generation workflow + script
Task 3: README with badges, certifications, Discussions links, contact section
Task 4: Auto-reply bot for Discussions with intent classification

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-15 01:54:56 +00:00
copilot-swe-agent[bot] 47275cb4a9 fix: DEV编号 mapping from SYSLOG content + 文件内容 write-through + additional field parsing
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-14 17:53:33 +00:00
copilot-swe-agent[bot] 8d24c91284 fix: correct Notion property name mappings in write-notion-syslog.js
- 提交日期 → 接收时间 (date)
- 霜砚已读 → 处理状态 (checkbox → status '待处理')
- 来源 → 推送方 (rich_text)
- 发送者ID → DEV编号 (rich_text → select)
- Removed 发送者 property (not in DB schema)
- Added statusProp() helper, replaced unused checkboxProp()

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-14 17:40:33 +00:00
copilot-swe-agent[bot] d8665f5816 fix: sender_id兼容 + 空内容跳过人格体唤醒
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-14 16:48:21 +00:00
copilot-swe-agent[bot] d54d6bcaaf fix: 修复代码审查反馈 — SUBMIT_CONTENT传内容、syslog_raw字段、错误处理
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-14 16:07:15 +00:00
copilot-swe-agent[bot] 78b000ca71 feat: 飞书→Notion全自动闭环 — Pipeline B/C人格体唤醒+飞书推送 + write-notion-syslog.js + push-broadcast-feishu.yml
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-14 16:06:01 +00:00
copilot-swe-agent[bot] 1fd53e0ae4 fix: address code review - use full timestamp for dedup key, set today's date on cache reset
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-14 08:18:54 +00:00
copilot-swe-agent[bot] 92a1c53840 feat: 公告栏改为追加式更新 + 每日自动清空缓存
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-14 08:17:38 +00:00
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