初始提交:ai-review 项目当前版本(含赛道一/二提交规范修订与时间节点文档)

This commit is contained in:
hangshuo652
2026-08-23 11:52:45 +08:00
commit 4da7044c4b
152 changed files with 33490 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
const db = require('./dist/db').default || require('./dist/db');
const projectId = 'b1b5884e-ba85-4d8f-9a92-e524603587a0';
// All standards for this project
const all = db.prepare('SELECT id, name, category_tag FROM standards WHERE project_id = ?').all(projectId);
console.log('ALL STANDARDS:', JSON.stringify(all, null, 2));
// Try exact match with empty string
const m1 = db.prepare('SELECT id, name FROM standards WHERE project_id = ? AND category_tag = ?').get(projectId, '');
console.log('MATCH EMPTY:', m1);
// Try exact match with empty string as first param
const m2 = db.prepare('SELECT id, name FROM standards WHERE project_id = ? AND (category_tag = ? OR category_tag IS NULL)').get(projectId, '');
console.log('MATCH EMPTY OR NULL:', m2);