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

@@ -2,7 +2,7 @@
// Behavioral tests cover detection flow via validate health output.
/**
* GSD Tools Tests - Orphan/Stale Worktree Detection (W017)
* MSD Tools Tests - Orphan/Stale Worktree Detection (W017)
*
* Tests for feat/worktree-health-w017-2167:
* - Worktree Safety Policy Module exports health inspection interface (structural)
@@ -14,7 +14,7 @@ const { describe, test, beforeEach, afterEach } = require('node:test');
const assert = require('node:assert/strict');
const fs = require('fs');
const path = require('path');
const { runGsdTools, createTempGitProject, cleanup } = require('./helpers.cjs');
const { runMsdTools, createTempGitProject, cleanup } = require('./helpers.cjs');
// ─── Helpers ────────────────────────────────────────────────────────────────
@@ -66,13 +66,13 @@ function setupHealthyProject(tmpDir) {
describe('W017: structural presence', () => {
test('worktree-safety module exports inspectWorktreeHealth', () => {
const modulePath = path.join(__dirname, '..', 'gsd-core', 'bin', 'lib', 'worktree-safety.cjs');
const modulePath = path.join(__dirname, '..', 'msd-core', 'bin', 'lib', 'worktree-safety.cjs');
const seam = require(modulePath);
assert.strictEqual(typeof seam.inspectWorktreeHealth, 'function');
});
test('worktree-safety module exports linked worktree listing interface', () => {
const modulePath = path.join(__dirname, '..', 'gsd-core', 'bin', 'lib', 'worktree-safety.cjs');
const modulePath = path.join(__dirname, '..', 'msd-core', 'bin', 'lib', 'worktree-safety.cjs');
const seam = require(modulePath);
assert.strictEqual(typeof seam.listLinkedWorktreePaths, 'function');
});
@@ -93,7 +93,7 @@ describe('W017: no false positives', () => {
afterEach(() => cleanup(tmpDir));
test('no W017 when project has no linked worktrees', () => {
const result = runGsdTools('validate health --raw', tmpDir);
const result = runMsdTools('validate health --raw', tmpDir);
assert.ok(result.success, `validate health should succeed: ${result.error || ''}`);
const parsed = JSON.parse(result.output);
@@ -118,7 +118,7 @@ describe('W017: no regression on healthy projects', () => {
afterEach(() => cleanup(tmpDir));
test('validate health still reports healthy on a clean project', () => {
const result = runGsdTools('validate health --raw', tmpDir);
const result = runMsdTools('validate health --raw', tmpDir);
assert.ok(result.success, `validate health should succeed: ${result.error || ''}`);
const parsed = JSON.parse(result.output);
assert.equal(parsed.status, 'healthy', `Expected healthy status, got ${parsed.status}. Errors: ${JSON.stringify(parsed.errors)}. Warnings: ${JSON.stringify(parsed.warnings)}`);