ReviewOS

also looking at this

craft-native/craft

fix(native): preserve workspace sources and native overlay lifecycle

#384
Merged chris wants to merge codex/windows-zig-cache-diagnostics into main
20 files +500 -227

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

scripts/verify-zig-core-project.tsmodified+4-0
Changes to scripts/verify-zig-core-project.ts
@@ -6,6 +6,10 @@ import { cpus } from 'node:os'
66
77const source = resolve(import.meta.dir, '..')
88const zig = resolveZig(source)
9if (process.platform === 'win32') {
10 const provenance = Bun.spawnSync(['pwsh', '-NoProfile', '-NonInteractive', '-File', join(source, 'scripts/inspect-windows-source.ps1'), '-Stage', 'compiler'], { cwd: source, stdout: 'pipe', stderr: 'pipe' })
11 console.log('Source after compiler:', provenance.stdout.toString(), provenance.stderr.toString())
12}
913const trackedBuild = join(source, 'packages/zig/build.zig')
1014console.log('Tracked core project:', JSON.stringify({ file: trackedBuild, exists: existsSync(trackedBuild), sha256: existsSync(trackedBuild) ? createHash('sha256').update(readFileSync(trackedBuild)).digest('hex') : null, bun: Bun.version, executable: process.execPath, cpu: cpus()[0]?.model, platform: process.platform }))
1115const zigLibrary = join(dirname(realpathSync(zig.path)), 'lib/std/zig.zig')