Skip to content

Fix D1 release import and Windows tooling#53

Draft
mandel59 wants to merge 11 commits into
mainfrom
codex/d1-release-windows-tooling
Draft

Fix D1 release import and Windows tooling#53
mandel59 wants to merge 11 commits into
mainfrom
codex/d1-release-windows-tooling

Conversation

@mandel59

@mandel59 mandel59 commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • materialize Unihan variant/property relations for D1 imports and promote the verified MOJIDATA_DB release
  • fix Windows idsfind.db detection so FTS5 import uses the D1-safe SQL builder
  • add per-binding D1 create/import/promote support with manifest metadata for selected and unchanged bindings
  • switch release DB naming to fixed binding bases so names do not grow across releases
  • document Windows D1 release constraints, LF checkout rules, and normalize idsdb-fts5 output paths under Git Bash

Verification

  • corepack yarn mojidata-api:d1:check
  • corepack yarn --cwd packages/idsdb-fts5 prepare
  • partial promote smoke with a temporary manifest/config
  • production D1 API verified: unihan.kTraditionalVariant=線 returns results=["线","缐"], total=2

Related issues

mandel59 added 11 commits May 7, 2026 19:02
Allow D1 import preparation to discover Unihan variant source relations from tables or views, and add a regression test that keeps the unihan_variant materialization SQL present for kTraditionalVariant imports.

Related: #48

Generated-by: Codex/GPT-5.4
Include table and view backed unihan_k* relations when creating the D1 unihan table so space-delimited Unihan properties are not dropped from remote detail responses.

Related: #48

Generated-by: Codex/GPT-5.4
Add a SQLite-backed regression test that verifies the D1 Unihan materialization includes view-backed unihan_k* relations, matching the missing kTraditionalVariant import path from #48.

Related: #48

Generated-by: Codex/GPT-5.4
Use fileURLToPath and avoid spawning .cmd shims directly from Node on Windows. Also decode Unihan variant codepoints with D1 char(codepoint) so variant search values are stored as valid Unicode characters.

Related: #48

Generated-by: Codex/GPT-5.4
Point the default D1 Worker binding at the verified mojidata release database while keeping the existing idsfind database active.

Related: #48

Generated-by: Codex/GPT-5.4
Detect idsfind.db with either POSIX or Windows path separators so D1 import uses the FTS5-safe SQL builder instead of raw SQLite dump output. Add coverage for Windows-style paths.

Generated-by: Codex (GPT-5)
Add --binding selection to D1 release creation, import, and promotion. Release manifests now record selected and unchanged bindings, imports default to manifest-selected bindings, and promotion applies stale checks only to selected bindings. Document the per-DB workflow.

Generated-by: Codex (GPT-5)
Generate blue/green release database names from binding-specific base names instead of appending release labels to the currently active database name. Document the naming rule and enforce a generated name length guard.

Generated-by: Codex (GPT-5)
Add LF checkout rules for package shell scripts and download manifests, and document the Node 22 recommendation for Windows D1 release/import work.

Generated-by: Codex (GPT-5)
Convert the idsdb-fts5 prepare output directory with cygpath when available so Windows Node receives a native path instead of a POSIX-style Git Bash path. Document the behavior in the D1 deployment notes.

Generated-by: Codex (GPT-5)
The D1 deployment and release tooling changes do not publish package artifacts, so add an empty changeset for the pull request validation workflow.

Generated-by: Codex (GPT-5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant