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);