From 5a97e6124e3822328e7388095807573a6ff07793 Mon Sep 17 00:00:00 2001 From: Sisyphus Date: Fri, 14 Aug 2026 09:32:32 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=92=A4=E5=9B=9E=20.omo=20=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E6=95=B0=E6=8D=AE=E4=B8=8E=20taskboard=20=E5=86=85?= =?UTF-8?q?=E9=83=A8=E6=95=B0=E6=8D=AE=EF=BC=8C=E4=B8=8D=E6=8E=A8=E9=80=81?= =?UTF-8?q?=20GitHub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 9 +++++++++ taskboard/.syntax-check.js | 0 taskboard/migrate-tz.js | 21 --------------------- 3 files changed, 9 insertions(+), 21 deletions(-) delete mode 100644 taskboard/.syntax-check.js delete mode 100644 taskboard/migrate-tz.js diff --git a/.gitignore b/.gitignore index fe0bab8..bbbbdc6 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,9 @@ coverage/ taskboard/watch.log taskboard/watch.err +# Release pipeline runtime state (auto-commit.js) +auto-commit-state.json + # Logs logs/ *.log @@ -51,3 +54,9 @@ Thumbs.db # 中间件凭据等敏感本地文件 credentials.md *.pem + +# OpenCode 会话与任务数据(内部,不推送 GitHub) +.omo/ +taskboard/tasks.json +taskboard/*.log +taskboard/*.err diff --git a/taskboard/.syntax-check.js b/taskboard/.syntax-check.js deleted file mode 100644 index e69de29..0000000 diff --git a/taskboard/migrate-tz.js b/taskboard/migrate-tz.js deleted file mode 100644 index 4c0af47..0000000 --- a/taskboard/migrate-tz.js +++ /dev/null @@ -1,21 +0,0 @@ -const fs = require('fs'); -const p = 'D:/拼豆/taskboard/tasks.json'; -const db = JSON.parse(fs.readFileSync(p, 'utf8')); -const TZ = 8 * 60 * 60 * 1000; -function migrate(v) { - if (typeof v === 'string' && /^\d{4}-\d{2}-\d{2}T[\d:.]+Z$/.test(v)) { - const d = new Date(Date.parse(v) + TZ); - return d.toISOString().replace('Z', '+08:00'); - } - return v; -} -function walk(obj) { - if (Array.isArray(obj)) { obj.forEach(walk); return; } - if (obj && typeof obj === 'object') { - for (const k of Object.keys(obj)) obj[k] = migrate(obj[k]); - for (const k of Object.keys(obj)) if (obj[k] && typeof obj[k] === 'object') walk(obj[k]); - } -} -walk(db); -fs.writeFileSync(p, JSON.stringify(db, null, 2), 'utf8'); -console.log('migrated to +08:00, tasks:', db.tasks.length, 'agents:', Object.keys(db.agents || {}).length);