Uh oh!
There was an error while loading. Please reload this page.
sqlite: enable common flags - #57621
Conversation
nodejs-github-bot
commented
Mar 25, 2025
Review requested:
|
geeksilva97
commented
Mar 25, 2025
Not sure whether this will be a problem, but this increases the binary size by 600KB. |
e4b93b9 to
9590deeCompare
cjihrig
left a comment
There was a problem hiding this comment.
Not saying whether or not we should land this, but https://github.com/nodejs/node/blob/main/deps/sqlite/unofficial.gni should be updated, and there should be at least one test for each new API to prevent regressions.
geeksilva97
commented
Mar 25, 2025
Good point. Also, I think it would be good to have some benchmarks on sqlite implementations. |
9590dee to
0c1ec86Comparegeeksilva97
commented
Mar 25, 2025
@cjihrig , what's the difference between .gyp and .gni file? |
Uh oh!
There was an error while loading. Please reload this page.
0c1ec86 to
31c5aa5Comparecjihrig
commented
Mar 25, 2025
They are for two different build systems. The .gyp file is used by the official build. The .gni file is used by the unofficial GN build. |
geeksilva97
commented
Mar 25, 2025
Thank you! |
cjihrig
commented
Mar 25, 2025
Why not? And why not the Geopoly extension? |
For |
On the other hand, the issue mentions the SQLite Amalgamation. I think we could have RBU enabled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## main #57621 +/- ##
==========================================
+ Coverage 90.22% 90.23% +0.01%
==========================================
Files 630 630 Lines 185054 185055 +1 Branches 36254 36219 -35 ==========================================
+ Hits 166963 166985 +22 - Misses 11032 11037 +5 + Partials 7059 7033 -26 🚀 New features to boost your workflow:
|
Uh oh!
There was an error while loading. Please reload this page.
31c5aa5 to
3f64dfaCompareUh oh!
There was an error while loading. Please reload this page.
cjihrig
left a comment
There was a problem hiding this comment.
One comment, but changes LGTM.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
| ); | ||
| }); | ||
| test('fts3 parenthesis', (t) => { |
There was a problem hiding this comment.
This is inconsistent with the rest, missing is enabled in its name.
Uh oh!
There was an error while loading. Please reload this page.
cjihrig
left a comment
There was a problem hiding this comment.
Still unsure whether or not we want all of these enabled, but giving this a LGTM so it's not stalled.
PR-URL: #57621 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: #57621 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: #57621 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: #57621 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: #57621 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: #57621 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
More common flags that are missing are |
22.13 exposes node:sqlite but SQLite was built without FTS5 until 22.16 (nodejs/node#57621). Co-authored-by: Cursor <cursoragent@cursor.com>
…gelog - Pin CI/security to Node 22.16 (node:sqlite + FTS5, nodejs/node#57621) - engines, .nvmrc, docs: require >=22.16.0 - Tests: storageGrowth nulls vs expect.anything(); EventLog CHECK relaxed - CHANGELOG [Unreleased]: cron exit validation (#1203) + Node bump - Biome-format cron exit validator / harness / install paths Co-authored-by: Cursor <cursoragent@cursor.com>
- Pin CI/security to Node 22.16 (node:sqlite + FTS5, nodejs/node#57621) - engines, .nvmrc, docs: require >=22.16.0; sync verify/maintenance copy - Tests: storageGrowth null handling; EventLog CHECK relaxed - CHANGELOG [Unreleased]: maintenance LLM tier + Node bump - Biome-format touched config/CLI files Co-authored-by: Cursor <cursoragent@cursor.com>
- Pin CI/security to Node 22.16 (node:sqlite + FTS5, nodejs/node#57621) - engines, .nvmrc, docs: require >=22.16.0; sync verify/maintenance copy - Tests: storageGrowth null handling; EventLog CHECK relaxed - CHANGELOG [Unreleased]: deprecated cron command handling + Node bump Co-authored-by: Cursor <cursoragent@cursor.com>
- Pin CI/security to Node 22.16 (node:sqlite + FTS5, nodejs/node#57621) - engines, .nvmrc, docs: require >=22.16.0; sync verify/maintenance copy - Tests: storageGrowth null handling; EventLog CHECK relaxed - CHANGELOG [Unreleased]: Node requirement under Changed Co-authored-by: Cursor <cursoragent@cursor.com>
* Initial plan * Add JSON output to config command, features command, and consolidate-episodes deprecation notice Agent-Logs-Url: https://github.com/markus-lassfolk/openclaw-hybrid-memory/sessions/25f77f4e-1ea6-444b-b0b2-60f98bd13a4d Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> * Update CHANGELOG with new CLI commands and fixes Agent-Logs-Url: https://github.com/markus-lassfolk/openclaw-hybrid-memory/sessions/25f77f4e-1ea6-444b-b0b2-60f98bd13a4d Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> * fix(ci): Node 22.13 for node:sqlite; Biome-format hybrid-mem CLI - CI/security: pin Node 22 jobs to 22.13 (22.12 needs --experimental-sqlite) - engines, .nvmrc, docs: require >=22.13.0; sync verify/maintenance copy - Format cmd-config and register-corrections-and-pipeline with Biome Co-authored-by: Cursor <cursoragent@cursor.com> * fix(ci): require Node 22.16 for node:sqlite FTS5 support 22.13 exposes node:sqlite but SQLite was built without FTS5 until 22.16 (nodejs/node#57621). Co-authored-by: Cursor <cursoragent@cursor.com> * test: align audit-health and event-log expectations with Vitest and schema - expect.anything() does not match null (storageGrowth delta fields) - EventLog no longer applies CHECK on event_type after relaxation migration Co-authored-by: Cursor <cursoragent@cursor.com> * fix(memory-hybrid): config JSON contract, format validation, consolidate shim - Versioned config-view JSON summary + wal/ambient/futureDateProtection toggles. - features command emits features-only JSON; validate config --format. - consolidate-episodes exits 0 with deprecation warning; changelog aligned. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> Co-authored-by: Ralph <ralph@openclaw.dev> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: OpenClaw Agent <agent@openclaw.dev>
…1214) * Initial plan * fix: add timeout protection and partial result handling to audit-health - Add `status` field ("ok"|"partial"|"failed") and `errors` array to AuditHealthReport schema - Keep backward-compatible `ok` field (deprecated) - Add 5000-row LIMIT to implicitFeedbackPrefixHistogram query to prevent scanning huge fact tables - Wrap prefix histogram in try-catch with error tracking - Add 5-second timeout for LanceDB size calculation (getStorageSizes) - Update strict mode to check both status and ok fields - Update markdown printer to show errors section - Update tests to validate new schema fields Fixes hang on long-lived stores by bounding expensive operations. Agent-Logs-Url: https://github.com/markus-lassfolk/openclaw-hybrid-memory/sessions/64bfcd5d-27d4-4a78-b223-6142f3a0b1ab Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> * docs: add CHANGELOG entry for audit-health timeout fix Agent-Logs-Url: https://github.com/markus-lassfolk/openclaw-hybrid-memory/sessions/64bfcd5d-27d4-4a78-b223-6142f3a0b1ab Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> * fix(ci): Node 22.16 + FTS5; Vitest audit-health/event-log; changelog - Pin CI/security to Node 22.16 (node:sqlite + FTS5, nodejs/node#57621) - engines, .nvmrc, docs: require >=22.16.0; sync verify/maintenance copy - Tests: storageGrowth null handling; EventLog CHECK relaxed - CHANGELOG [Unreleased]: Node requirement under Changed Co-authored-by: Cursor <cursoragent@cursor.com> * fix(memory-hybrid): audit-health status, Lance size timeout, and changelog ref - Derive partial status when warnings or report errors exist; align legacy ok flag. - Record LanceDB du timeout in report.errors; kill du via execFile timeout. - Rename misleading EventLog test describe; changelog references #1214. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(memory-hybrid): detect implicit-feedback histogram truncation via LIMIT+1 Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> Co-authored-by: Ralph <ralph@openclaw.dev> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: OpenClaw Agent <agent@openclaw.dev>
* Initial plan * Fix stale consolidate-episodes references in cron/verify * fix(ci): Node 22.16 + FTS5; Vitest audit-health/event-log; changelog - Pin CI/security to Node 22.16 (node:sqlite + FTS5, nodejs/node#57621) - engines, .nvmrc, docs: require >=22.16.0; sync verify/maintenance copy - Tests: storageGrowth null handling; EventLog CHECK relaxed - CHANGELOG [Unreleased]: deprecated cron command handling + Node bump Co-authored-by: Cursor <cursoragent@cursor.com> * fix(memory-hybrid): robust HM_EXIT scan for deprecated cron steps - Recursively collect recent .exit.txt under cron-hybrid-mem (flat + subdirs). - Per-file read isolation; escape regex metacharacters in deprecated tokens. - Tests: mkdtemp + cleanup; cover exit ledger path collection. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(memory-hybrid): skip deprecated-cron warnings for feature-gated jobs Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com> Co-authored-by: Ralph <ralph@openclaw.dev> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: OpenClaw Agent <agent@openclaw.dev>
* Initial plan * feat(memory-hybrid): add maintenance LLM tier and routing warnings Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> * fix(ci): Node 22.16 + FTS5; Vitest audit-health/event-log; changelog - Pin CI/security to Node 22.16 (node:sqlite + FTS5, nodejs/node#57621) - engines, .nvmrc, docs: require >=22.16.0; sync verify/maintenance copy - Tests: storageGrowth null handling; EventLog CHECK relaxed - CHANGELOG [Unreleased]: maintenance LLM tier + Node bump - Biome-format touched config/CLI files Co-authored-by: Cursor <cursoragent@cursor.com> * fix(memory-hybrid): align reflection routing with maintenance tier and docs - Route reflect/reflect-rules/reflect-meta through maintenance tier and default reflectionConfig.model from that tier. - Derive extraction heavy-model warnings from filtered tier preferences. - Correct distill.extractionModelTier schema/docs: unset defaults to nano. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(memory-hybrid): derive dream-cycle heavy warning from filtered maintenance tier Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com> Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> Co-authored-by: Ralph <ralph@openclaw.dev> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: OpenClaw Agent <agent@openclaw.dev>
…on (#1204) * Initial plan * Add exit ledger validation for cron jobs - Create cron-exit-validator.ts with structured validation - Add validate-cron-exit CLI command for internal use - Update cron job bash harness with validation instructions - Add comprehensive tests for exit ledger parsing and validation - Register new validation command in CLI Agent-Logs-Url: https://github.com/markus-lassfolk/openclaw-hybrid-memory/sessions/cd60b52e-d486-4166-b77f-63a3040389a2 Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> * Add message normalization to fix obsolete cron commands - Update existing cron job messages when normalizeExisting=true - Remove obsolete command references (e.g., consolidate-episodes) - Convert tests to vitest format - All 14 tests passing Agent-Logs-Url: https://github.com/markus-lassfolk/openclaw-hybrid-memory/sessions/cd60b52e-d486-4166-b77f-63a3040389a2 Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> * Add comprehensive documentation for cron exit validation - Document validation behavior and expected outcomes - Explain migration path for existing installations - Detail config-based skipping mechanism - List acceptance criteria and testing coverage Agent-Logs-Url: https://github.com/markus-lassfolk/openclaw-hybrid-memory/sessions/cd60b52e-d486-4166-b77f-63a3040389a2 Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> * fix(ci): Node 22.16 + FTS5; Vitest audit-health/event-log tests; changelog - Pin CI/security to Node 22.16 (node:sqlite + FTS5, nodejs/node#57621) - engines, .nvmrc, docs: require >=22.16.0 - Tests: storageGrowth nulls vs expect.anything(); EventLog CHECK relaxed - CHANGELOG [Unreleased]: cron exit validation (#1203) + Node bump - Biome-format cron exit validator / harness / install paths Co-authored-by: Cursor <cursoragent@cursor.com> * fix(memory-hybrid): use Number.parseInt in cron-exit-validator (Biome error) Co-authored-by: Cursor <cursoragent@cursor.com> * fix(memory-hybrid): treat all-missing exit ledger as failed, not skipped Empty or step-less HM_EXIT cannot distinguish guard skip from abort before hm_step; report failure so validate-cron-exit surfaces the error. Co-authored-by: chatgpt-codex-connector <noreply@openai.com> Co-authored-by: Cursor <cursoragent@cursor.com> * fix(memory-hybrid): respect messageOverrides during cron normalizeExisting Apply overrides to payload.message for agentTurn jobs and skip canonical message replacement when a per-job override is provided. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(cron): treat empty exit ledger as skipped when log shows feature-gated skip Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: markus-lassfolk <3661143+markus-lassfolk@users.noreply.github.com> Co-authored-by: Ralph <ralph@openclaw.dev> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: chatgpt-codex-connector <noreply@openai.com> Co-authored-by: OpenClaw Agent <agent@openclaw.dev>
This PR enables flags that are common to other sqlite players in Node.js ecosystem:
This is related to #56476, even though it does not enable the RBU extension.
I see this as a good step toward the stabilization since it will make it easier for people from other dependencies.