Repository navigation
npm 1.1.0 release prep (format 1.0.0) - #33
Merged
Merged
Conversation
- SQL schema 2 migration repairs npm 1.0.0 provider-import typed-table bytes - Durable atomic export, locale-independent JSON key order, ath repair command - Unify interactive migrate with confirmed backup path and database ID prompt - Oura member-portal CSV scores and JSON contributors; remove dead 0.x modules - Split CLI runtime helpers; CI on Node 22/24; D130-D143 build history Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
Compare typed-table JSON with recursive key sorting so npm 1.0.0 provider imports repair and migrate. Ship SQL migration 002, durable export directories, confirmed repair backups, Oura SpO2 and member-portal fixes, and tests that build databases through athleticstandard@1.0.0. Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
…ixtures Classify Oura portal scores from contributor key sets; commit a synthetic npm 1.0.0 encoding database for tests. Run migration repair in one transaction with PRAGMA user_version, semantic-only alignment, user_version recovery, and cleaner migrate/repair errors. Regenerate skill CLI help with after-text. Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
- Stop reconciling PRAGMA user_version on check, inspect, and open paths; recover only after verified backup in confirmed migrate. - Add ath repair --from-revision with backup reuse for semantic typed-table drift. - Mark export staging dirs and remove only stale ones; drop marker before rename. - Open read-only CLI commands with deferWal so check/stats/export do not enable WAL. - Align D132/D146/D148, Oura skip counts, and shared migration 002 header text. Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
- Use upsertTypedRecord from current revision for repair and --from-revision. - Add check for denormalized typed columns vs data_json. - Remove revertLocalWal, backup reuse, and SQLite header recovery paths. - Fix export marker timing; clean unmarked dead-pid staging dirs. - Read-only opens allow outdated schema; releaseLocalDatabase on close. - CLI tests for divergence repair, migrate errors, and unhealthy hash stability. Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
…aging Derive denormalized typed-table checks from typedMainRowFields and child rows; count column-only mismatches in repair preview. Throw CliExitError from fail() and release tracked databases on exit. Keep repair and read-only opens off WAL; skip WAL checkpoint on read-only release. Tighten export staging cleanup and remove markers before rename. Fix performance bulk SQL duration_ms, Oura met skip, backup name collisions, and decision order D147-D150. Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
Defer WAL on write-command opens and enable WAL before write transactions, reverting sidecars when a write rolls back. Expand CLI sidecar refusal matrix, conflicts show DELETE-mode hash coverage, export post-rename cleanup safety, and typed_denormalized repair cycles for every column family. Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
Never unlink WAL sidecars after a failed write (D151). Revert DELETE-mode files with PRAGMA only when safe. Keep export markers through rename. Batch typed denormalized reads, handle parse errors, restore migration journal mode on failure, and expand regression tests. Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
…vert Hold a real read snapshot in the WAL test, corrupt typed data_json with non-schema JSON, keep original failures when DELETE revert throws, format Zod errors in CLI and repair output, and document SQLite WAL sidecars on read-only files. Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
…rt test Co-authored-by: Michael Whitham <mwhitham@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re-verification fixes (
76d3bb1)ath repair --from-revisionrebuilds typed rows viaupsertTypedRecord(notdata_jsononly).ath checkaddstyped_denormalizedwhen columns disagree withdata_json.revertLocalWal, repair backup reuse, and SQLite header recovery.allowOutdatedSchema+releaseLocalDatabase.New CLI tests:
tests/v1-repair-cli.test.ts,tests/v1-export-staging.test.ts.