fix(energy): deliver prototype-aligned hydrogen board and acceptance fixes
ci/woodpecker/push/woodpecker Pipeline was successful

Co-authored-by: HiFox Agent <agents-noreply@hifox.com>
This commit is contained in:
kfluous
2026-09-03 22:27:23 +08:00
co-authored by HiFox Agent
parent 5eb38a4b05
commit 6c91a6694a
77 changed files with 30169 additions and 361 deletions
+7
View File
@@ -0,0 +1,7 @@
const READ_ONLY_SQL = /^\s*(SELECT|SHOW|WITH|EXPLAIN)\b/i;
export function assertHydrogenReadOnlySql(statement: string, enabled: boolean) {
if (enabled && !READ_ONLY_SQL.test(statement)) {
throw new Error('HYDROGEN_DB_READ_ONLY blocks non-read SQL');
}
}