chore: add diagnostic and seeding scripts

- Add script to generate bcrypt admin password hash.
- Add script to seed sample articles for local development.
- Add Kimi/Moonshot API diagnostic scripts (SDK and direct curl).
This commit is contained in:
hermes
2026-06-17 04:34:35 +00:00
parent fd0553a6b9
commit 1b23f57d6c
4 changed files with 210 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import bcrypt from 'bcryptjs';
async function main() {
const password = process.argv[2] || 'admin';
const hash = await bcrypt.hash(password, 10);
console.log(`Password: ${password}`);
console.log(`Hash: ${hash}`);
}
main();