AI Newsletter Digest improvements: fixed QP soft line break decoding, URL extraction, and content cleaning

This commit is contained in:
Krilly
2026-03-04 13:29:22 +00:00
parent 29a98137a7
commit 57dd294675
13706 changed files with 2114953 additions and 237629 deletions

View File

@@ -0,0 +1,40 @@
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const jobsPath = path.join(process.env.HOME, '.openclaw/cron/jobs.json');
try {
// 읽기
const raw = fs.readFileSync(jobsPath, 'utf8');
const data = JSON.parse(raw);
let modified = 0;
// isolation 키 제거
data.jobs.forEach(job => {
if (job.payload && job.payload.isolation !== undefined) {
delete job.payload.isolation;
modified++;
}
});
if (modified === 0) {
console.log('No isolation keys found.');
process.exit(0);
}
// 백업
const backupPath = jobsPath + '.backup-' + Date.now();
fs.copyFileSync(jobsPath, backupPath);
console.log(`Backup saved: ${backupPath}`);
// 저장
fs.writeFileSync(jobsPath, JSON.stringify(data, null, 2), 'utf8');
console.log(`Removed ${modified} isolation keys from jobs.json`);
console.log('Gateway restart required: kill -SIGUSR1 $(pgrep -f "openclaw gateway")');
} catch (err) {
console.error('Error:', err.message);
process.exit(1);
}