🔧 PATCH-ZY-ZHIZHI-001: 修正部署目标为zhizhi200271现有仓库 + 7项签到检查 + MAIN_REPO_TOKEN
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/dff59708-c241-48ad-ada4-d2981d6d3e29
This commit is contained in:
parent
8ce067c62d
commit
0c3f3867f3
|
|
@ -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": "小草莓",
|
||||
|
|
|
|||
|
|
@ -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个人现有仓库·不新建仓库"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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"}}' \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 "⚠️ 拉取失败,保留本地版本"
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue