chore: clean up repo for public release
- Remove BMAD framework, IDE configs, dev screenshots, test files, internal docs, and backup files - Rename keep-notes/ to memento-note/ - Update all references from keep-notes to memento-note - Add Apache 2.0 license with Commons Clause (non-commercial restriction) - Add clean .gitignore and .env.docker.example
This commit is contained in:
41
memento-note/scripts/debug-config.ts
Normal file
41
memento-note/scripts/debug-config.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import prisma from '../lib/prisma'
|
||||
|
||||
async function debugConfig() {
|
||||
console.log('=== System Configuration Debug ===\n')
|
||||
|
||||
const configs = await prisma.systemConfig.findMany()
|
||||
|
||||
console.log(`Total configs in DB: ${configs.length}\n`)
|
||||
|
||||
// Group by category
|
||||
const aiConfigs = configs.filter(c => c.key.startsWith('AI_'))
|
||||
const ollamaConfigs = configs.filter(c => c.key.includes('OLLAMA'))
|
||||
const openaiConfigs = configs.filter(c => c.key.includes('OPENAI'))
|
||||
|
||||
console.log('=== AI Provider Configs ===')
|
||||
aiConfigs.forEach(c => {
|
||||
console.log(`${c.key}: "${c.value}"`)
|
||||
})
|
||||
|
||||
console.log('\n=== Ollama Configs ===')
|
||||
ollamaConfigs.forEach(c => {
|
||||
console.log(`${c.key}: "${c.value}"`)
|
||||
})
|
||||
|
||||
console.log('\n=== OpenAI Configs ===')
|
||||
openaiConfigs.forEach(c => {
|
||||
console.log(`${c.key}: "${c.value}"`)
|
||||
})
|
||||
|
||||
console.log('\n=== All Configs ===')
|
||||
configs.forEach(c => {
|
||||
console.log(`${c.key}: "${c.value}"`)
|
||||
})
|
||||
}
|
||||
|
||||
debugConfig()
|
||||
.then(() => process.exit(0))
|
||||
.catch((err) => {
|
||||
console.error(err)
|
||||
process.exit(1)
|
||||
})
|
||||
Reference in New Issue
Block a user