Skip to content

v0.2.5827 — native Windows support

Choose a tag to compare

@justrach justrach released this 23 Jun 15:29

Native Windows support

codedb now cross-compiles and runs as a native x86_64-windows binary, verified end-to-end (--version, index, search, read, outline, and MCP-over-stdio initialize + tools/list). macOS/Linux behaviour is unchanged and the full test suite still passes.

Platform shim (cio.zig) — a Windows path for every POSIX primitive

  • argv: WTF-16 command line via std.process.Args.toSlice
  • stdio: CRT _write/_read (HANDLE-typed std.c.write avoided)
  • sync: pthread (POSIX) / SRWLOCK (Windows)
  • time: clock_gettime (POSIX) / QueryPerformanceCounter + FILETIME (Windows)
  • mmap: new mmapReadonly/munmap shim — mmap(MAP_SHARED) vs CreateFileMapping + MapViewOfFile
  • env/home: setenv_putenv_s; homeDir() resolves $HOME / %USERPROFILE%

Graceful degradation on Windows

Warm-daemon proxy disabled (CLI runs cold-direct, MCP on stdio); runCapture reports SpawnUnsupported so git-SHA tagging and self-update no-op cleanly; RSS profiling returns 0. Native CreateProcess + named-pipe IPC are tracked follow-ups.

Assets

platform asset
macOS arm64 (notarized) codedb-darwin-arm64
macOS x86_64 (unsigned, #504) codedb-darwin-x86_64
Linux x86_64 codedb-linux-x86_64
Linux arm64 codedb-linux-arm64
Windows x86_64 codedb-windows-x86_64.exe

npx codedeebee@0.2.5827 resolves the right binary per platform (now including Windows).