From ba3e44582f92ca0aa1065ba6772b7d7f567fdd4b Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Wed, 22 Jul 2026 11:22:33 +1000 Subject: [PATCH] cookfs1.9.0: relocate misplaced pkgIndex library to vendorlib_tcl8/win32-x86_64 src/vendormodules_tcl8 is a tm root - a pkgIndex-style directory there is invisible to tm handling and nothing referenced this copy (experiment leftover; added in an early bulk commit). Its designed home is the platform vendor-library tree: pkgIndex-based, win-x64 dll, Tcl 8 -> src/vendorlib_tcl8/win32-x86_64/ (reachable via make.tcl's bootstrap lib paths and the libs build; kit inclusion stays declarative via src/runtime/vendorlib_vfs.toml - no kit content change from this move). pages.tcl's comment drift from the old TODO-resolution sweep (283ca03b) reverted per the vendorlib dont-edit-vendor-code contract - the moved copy is now byte-identical to the working punk86bawt.vfs payload copy. Smoke-verified: package require cookfs -> 1.9.0 (dll load, Mount cmd present) from the new location under native tclsh86t. (tdbc/sqlite3-1.1.5.tm beside it is NOT misplaced - a namespace subdir in a tm root is correct tm layout: package tdbc::sqlite3.) Assisted-by: harness=claude; primary-model=claude-fable-5; api-location=anthropic.com --- .../cookfs1.9.0/asyncworker_process.tcl | 0 .../cookfs1.9.0/asyncworker_thread.tcl | 0 .../win32-x86_64}/cookfs1.9.0/cookfs1.9.0.dll | Bin .../win32-x86_64}/cookfs1.9.0/fsindex.tcl | 0 .../win32-x86_64}/cookfs1.9.0/pages.tcl | 4 +--- .../win32-x86_64}/cookfs1.9.0/pkgIndex.tcl | 0 .../win32-x86_64}/cookfs1.9.0/pkgconfig.tcl | 0 .../win32-x86_64}/cookfs1.9.0/readerchannel.tcl | 0 .../win32-x86_64}/cookfs1.9.0/vfs.tcl | 0 .../win32-x86_64}/cookfs1.9.0/writer.tcl | 0 .../win32-x86_64}/cookfs1.9.0/writerchannel.tcl | 0 11 files changed, 1 insertion(+), 3 deletions(-) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/asyncworker_process.tcl (100%) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/asyncworker_thread.tcl (100%) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/cookfs1.9.0.dll (100%) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/fsindex.tcl (100%) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/pages.tcl (99%) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/pkgIndex.tcl (100%) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/pkgconfig.tcl (100%) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/readerchannel.tcl (100%) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/vfs.tcl (100%) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/writer.tcl (100%) rename src/{vendormodules_tcl8 => vendorlib_tcl8/win32-x86_64}/cookfs1.9.0/writerchannel.tcl (100%) diff --git a/src/vendormodules_tcl8/cookfs1.9.0/asyncworker_process.tcl b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/asyncworker_process.tcl similarity index 100% rename from src/vendormodules_tcl8/cookfs1.9.0/asyncworker_process.tcl rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/asyncworker_process.tcl diff --git a/src/vendormodules_tcl8/cookfs1.9.0/asyncworker_thread.tcl b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/asyncworker_thread.tcl similarity index 100% rename from src/vendormodules_tcl8/cookfs1.9.0/asyncworker_thread.tcl rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/asyncworker_thread.tcl diff --git a/src/vendormodules_tcl8/cookfs1.9.0/cookfs1.9.0.dll b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/cookfs1.9.0.dll similarity index 100% rename from src/vendormodules_tcl8/cookfs1.9.0/cookfs1.9.0.dll rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/cookfs1.9.0.dll diff --git a/src/vendormodules_tcl8/cookfs1.9.0/fsindex.tcl b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/fsindex.tcl similarity index 100% rename from src/vendormodules_tcl8/cookfs1.9.0/fsindex.tcl rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/fsindex.tcl diff --git a/src/vendormodules_tcl8/cookfs1.9.0/pages.tcl b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/pages.tcl similarity index 99% rename from src/vendormodules_tcl8/cookfs1.9.0/pages.tcl rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/pages.tcl index c787b153..58ff74d7 100644 --- a/src/vendormodules_tcl8/cookfs1.9.0/pages.tcl +++ b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/pages.tcl @@ -512,9 +512,7 @@ proc cookfs::tcl::pages::pagewrite {name contents} { if {!$c(haschanged)} { seek $c(fh) $c(indexoffset) start } else { - # FUTURE: Optimize to avoid seeking in subsequent writes - # Consider tracking file position to eliminate redundant seek operations - # when writing multiple pages sequentially + # TODO: optimize not to seek in subsequent writes seek $c(fh) 0 end } if {[catch { diff --git a/src/vendormodules_tcl8/cookfs1.9.0/pkgIndex.tcl b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/pkgIndex.tcl similarity index 100% rename from src/vendormodules_tcl8/cookfs1.9.0/pkgIndex.tcl rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/pkgIndex.tcl diff --git a/src/vendormodules_tcl8/cookfs1.9.0/pkgconfig.tcl b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/pkgconfig.tcl similarity index 100% rename from src/vendormodules_tcl8/cookfs1.9.0/pkgconfig.tcl rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/pkgconfig.tcl diff --git a/src/vendormodules_tcl8/cookfs1.9.0/readerchannel.tcl b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/readerchannel.tcl similarity index 100% rename from src/vendormodules_tcl8/cookfs1.9.0/readerchannel.tcl rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/readerchannel.tcl diff --git a/src/vendormodules_tcl8/cookfs1.9.0/vfs.tcl b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/vfs.tcl similarity index 100% rename from src/vendormodules_tcl8/cookfs1.9.0/vfs.tcl rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/vfs.tcl diff --git a/src/vendormodules_tcl8/cookfs1.9.0/writer.tcl b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/writer.tcl similarity index 100% rename from src/vendormodules_tcl8/cookfs1.9.0/writer.tcl rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/writer.tcl diff --git a/src/vendormodules_tcl8/cookfs1.9.0/writerchannel.tcl b/src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/writerchannel.tcl similarity index 100% rename from src/vendormodules_tcl8/cookfs1.9.0/writerchannel.tcl rename to src/vendorlib_tcl8/win32-x86_64/cookfs1.9.0/writerchannel.tcl