refactor: hard-fork GSD -> MSD (Make Software Done)

Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD
across contents and paths, upstream package/repo coordinates -> @golem15/msd-core
and golem15com/msd-core. Deep links into upstream history, sibling upstream
packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is.

Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line,
package/plugin identity, regenerated lockfile, install-tree fixtures, derived
registries and benchmark baseline; migration checksum baseline re-locked
(MSD keeps its own install state, so no install had applied the old sums);
sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
Jakub Zych
2026-10-06 01:47:40 +02:00
parent fe069b2a56
commit a9a7a328e6
2763 changed files with 78465 additions and 78434 deletions

View File

@@ -12,7 +12,7 @@
* exported `HOOKS_TO_COPY` list. This replaces a former `.js`-extension-count
* heuristic ("populated" if at least one `.js` file exists), which could not
* see a dist missing exactly the file class that caused #3108: build-hooks
* also ships `.sh` files (e.g. `gsd-session-state.sh`), so a dist with every
* also ships `.sh` files (e.g. `msd-session-state.sh`), so a dist with every
* `.js` present and every `.sh` absent read as fully populated and the
* rebuild was silently skipped. The set-membership check has no such blind
* spot: any expected entry missing, of any extension, is stale. It does NOT
@@ -50,7 +50,7 @@ const BUILD_HOOKS_SCRIPT = path.join(REPO_ROOT, 'scripts', 'build-hooks.js');
* expects to have copied there (`HOOKS_TO_COPY`, bare top-level filenames,
* and `HOOKS_SUBDIRS_TO_COPY`, bare subdirectory names such as `lib`). A dist
* with every top-level file present but no `lib/` (e.g. missing
* `gsd-graphify-rebuild.sh`) is exactly the same blindness the old
* `msd-graphify-rebuild.sh`) is exactly the same blindness the old
* `.js`-count heuristic had, one level down — so each subdir entry is first
* checked against the same top-level readdir Set, THEN additionally required
* to be a readable, non-empty directory (one extra `readdirSync` per subdir
@@ -85,7 +85,7 @@ function isHooksDistStale(dir) {
// Presence in the top-level Set only proves an entry named `lib`
// exists — not that it is a directory, nor that it is populated. A
// stray regular file named `lib`, or an empty `lib/` missing e.g.
// `gsd-graphify-rebuild.sh`, would otherwise read as fresh: exactly
// `msd-graphify-rebuild.sh`, would otherwise read as fresh: exactly
// the blind spot the subdir check exists to close. One `readdirSync`
// per subdir entry (there is exactly one, `lib`) — no per-expected-file
// `existsSync`/`statSync`, keeping the added cost to one syscall total.