fix(skill-stocktake): make batch workflow executable

This commit is contained in:
Yann Roberto
2026-10-01 01:59:10 +08:00
parent 6d9c1eb3bc
commit 1d20d449e6
2 changed files with 52 additions and 36 deletions
@@ -56,8 +56,10 @@ if (process.platform === 'win32') {
batch_progress: { completed: 1, total: 2 },
skills: { unchanged, updated: { verdict: 'Improve' } },
}));
const input = { skills: { updated: { verdict: 'Keep' }, added: { verdict: 'Keep' } } };
if (mode) input.mode = mode;
const input = {
skills: { updated: { verdict: 'Keep' }, added: { verdict: 'Keep' } },
...(mode ? { mode } : {}),
};
const result = save(resultsPath, input);
assert.strictEqual(result.status, 0, result.stderr);
const output = readResults(resultsPath);