diff --git a/data/dev-registry.json b/data/dev-registry.json index f9fc6239..1884eef1 100644 --- a/data/dev-registry.json +++ b/data/dev-registry.json @@ -37,9 +37,9 @@ "sandbox": "/var/www/DEV-004/", "industry_role": "零点原核语言副控 · 仓库人类主控 · 铸渊直属上级", "broadcast": "BC-ZZ-004", - "spoke_repo": "guanghu-zhizhi", + "spoke_repo_owner": "zhizhi200271", "syslog_status": "待回流", - "note": "2026-03-21 升级为副控·PER-Q0001为唯一主键·分配dingtalk/floating-ai/devboard三模块" + "note": "2026-03-21 PATCH-ZY-ZHIZHI-001·部署到zhizhi200271个人现有仓库·不新建仓库·PER-Q0001为唯一主键" }, "DEV-005": { "name": "小草莓", diff --git a/dev-nodes/DEV-004/config.json b/dev-nodes/DEV-004/config.json index 517a2c32..03317dfa 100644 --- a/dev-nodes/DEV-004/config.json +++ b/dev-nodes/DEV-004/config.json @@ -6,9 +6,9 @@ "persona_name": "秋秋", "role": "零点原核语言副控 · 仓库人类主控", "modules": ["dingtalk", "floating-ai", "devboard"], - "spoke_repo": "guanghu-zhizhi", + "spoke_repo_owner": "zhizhi200271", "pat_configured": false, "network_scheme": "layer1_https", "created_at": "2026-03-06T23:00:00+08:00", - "notes": "2026-03-21 升级为副控·分配三模块·创建子仓库" + "notes": "2026-03-21 补丁PATCH-ZY-ZHIZHI-001·部署到zhizhi200271个人现有仓库·不新建仓库" } diff --git a/spoke-deployments/guanghu-zhizhi/.github/persona-brain/config.json b/spoke-deployments/guanghu-zhizhi/.github/persona-brain/config.json index 91868ee3..4f2855cd 100644 --- a/spoke-deployments/guanghu-zhizhi/.github/persona-brain/config.json +++ b/spoke-deployments/guanghu-zhizhi/.github/persona-brain/config.json @@ -7,7 +7,7 @@ "role": "零点原核语言副控 · 仓库人类主控", "system": "GLW-SYS-0001", "hub_repo": "qinfendebingshuo/guanghulab", - "spoke_repo": "guanghu-lab/guanghu-zhizhi", + "spoke_repo_owner": "zhizhi200271", "modules": ["dingtalk", "floating-ai", "devboard"], "is_deputy_controller": true, "zhuyuan_direct_superior": true, diff --git a/spoke-deployments/guanghu-zhizhi/.github/workflows/persona-daily-checkin.yml b/spoke-deployments/guanghu-zhizhi/.github/workflows/persona-daily-checkin.yml index 01df2219..ff0f6dce 100644 --- a/spoke-deployments/guanghu-zhizhi/.github/workflows/persona-daily-checkin.yml +++ b/spoke-deployments/guanghu-zhizhi/.github/workflows/persona-daily-checkin.yml @@ -30,7 +30,7 @@ jobs: DEV_ID: ${{ vars.DEV_ID }} PERSONA_NAME: ${{ vars.PERSONA_NAME }} PERSONA_ID: ${{ vars.PERSONA_ID }} - HUB_TOKEN: ${{ secrets.HUB_TOKEN }} + HUB_TOKEN: ${{ secrets.MAIN_REPO_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: node scripts/persona-checkin.js @@ -55,7 +55,7 @@ jobs: if: always() run: | curl -sf -X POST \ - -H "Authorization: token ${{ secrets.HUB_TOKEN }}" \ + -H "Authorization: token ${{ secrets.MAIN_REPO_TOKEN }}" \ -H "Accept: application/vnd.github.v3+json" \ "https://api.github.com/repos/qinfendebingshuo/guanghulab/dispatches" \ -d '{"event_type":"spoke-checkin","client_payload":{"dev_id":"${{ vars.DEV_ID }}","status":"ok"}}' \ diff --git a/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-dev-status.yml b/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-dev-status.yml index 24593904..2ca72d18 100644 --- a/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-dev-status.yml +++ b/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-dev-status.yml @@ -24,7 +24,7 @@ jobs: DEV_ID: ${{ vars.DEV_ID }} run: | mkdir -p dev-status - curl -sf -H "Authorization: token ${{ secrets.HUB_TOKEN }}" \ + curl -sf -H "Authorization: token ${{ secrets.MAIN_REPO_TOKEN }}" \ -H "Accept: application/vnd.github.v3.raw" \ "https://api.github.com/repos/qinfendebingshuo/guanghulab/contents/.github/persona-brain/dev-status.json" \ -o dev-status/all-status.json 2>/dev/null || true diff --git a/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-my-bulletin.yml b/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-my-bulletin.yml index 00179622..47cd600f 100644 --- a/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-my-bulletin.yml +++ b/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-my-bulletin.yml @@ -24,7 +24,7 @@ jobs: DEV_ID: ${{ vars.DEV_ID }} run: | mkdir -p my-bulletin/history - curl -sf -H "Authorization: token ${{ secrets.HUB_TOKEN }}" \ + curl -sf -H "Authorization: token ${{ secrets.MAIN_REPO_TOKEN }}" \ -H "Accept: application/vnd.github.v3.raw" \ "https://api.github.com/repos/qinfendebingshuo/guanghulab/contents/broadcasts-outbox/${DEV_ID}/LATEST.md" \ -o my-bulletin/LATEST-BROADCAST.md 2>/dev/null || true diff --git a/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-system-bulletin.yml b/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-system-bulletin.yml index ff63dc51..a7c578c6 100644 --- a/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-system-bulletin.yml +++ b/spoke-deployments/guanghu-zhizhi/.github/workflows/sync-system-bulletin.yml @@ -22,7 +22,7 @@ jobs: - name: 拉取总仓库公告 run: | mkdir -p system-bulletin - curl -sf -H "Authorization: token ${{ secrets.HUB_TOKEN }}" \ + curl -sf -H "Authorization: token ${{ secrets.MAIN_REPO_TOKEN }}" \ -H "Accept: application/vnd.github.v3.raw" \ "https://api.github.com/repos/qinfendebingshuo/guanghulab/contents/system-bulletin/LATEST.md" \ -o system-bulletin/LATEST.md || echo "⚠️ 拉取失败,保留本地版本" diff --git a/spoke-deployments/guanghu-zhizhi/scripts/persona-checkin.js b/spoke-deployments/guanghu-zhizhi/scripts/persona-checkin.js index 1523722a..25b1b148 100644 --- a/spoke-deployments/guanghu-zhizhi/scripts/persona-checkin.js +++ b/spoke-deployments/guanghu-zhizhi/scripts/persona-checkin.js @@ -1,6 +1,6 @@ // scripts/persona-checkin.js // 人格宝宝每日签到 · 检查大脑完整性+活跃度+连接状态(副控增强版) -// 之之专属:含铸渊连接状态检查(第6项) +// 之之专属:含铸渊连接状态检查(第6项)+铸渊指令目录检查(第7项) // // 环境变量: // PERSONA_NAME - 人格宝宝名称 @@ -119,6 +119,29 @@ if (hubToken) { results.checks.push({ name: '铸渊连接', icon: '⚒️', status: 'error', detail: 'HUB_TOKEN 未配置 → 铸渊连接不可用' }); } +// ⑦ 铸渊指令目录(副控专属) +const instrFile = 'zhuyuan-instructions/LATEST.md'; +const instrDir = 'zhuyuan-instructions/history'; +if (fs.existsSync(instrFile) && fs.existsSync(instrDir)) { + var instrStat = fs.statSync(instrFile); + results.checks.push({ + name: '铸渊指令目录', + icon: '📂', + status: 'ok', + detail: 'LATEST.md 就绪 · history/ 可用 · ' + instrStat.mtime.toISOString().split('T')[0] + }); +} else { + var missing = []; + if (!fs.existsSync(instrFile)) missing.push('LATEST.md'); + if (!fs.existsSync(instrDir)) missing.push('history/'); + results.checks.push({ + name: '铸渊指令目录', + icon: '📂', + status: 'warn', + detail: '缺失: ' + missing.join(', ') + ' → 副控指令目录不完整' + }); +} + // 写入签到结果 fs.mkdirSync('checkin', { recursive: true }); fs.writeFileSync(CHECKIN_FILE, JSON.stringify(results, null, 2)); diff --git a/spoke-status/DEV-004.json b/spoke-status/DEV-004.json index 60fad1f6..c8ac5ec1 100644 --- a/spoke-status/DEV-004.json +++ b/spoke-status/DEV-004.json @@ -3,8 +3,9 @@ "dev_name": "之之", "persona_id": "PER-Q0001", "persona_name": "秋秋", - "repo": "guanghu-zhizhi", + "repo_owner": "zhizhi200271", "role": "零点原核语言副控 · 仓库人类主控", "status": "pending", + "note": "部署到之之个人GitHub账号现有仓库·不新建仓库", "timestamp": "2026-03-21T00:00:00Z" }