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:
@@ -5,8 +5,8 @@
|
||||
*
|
||||
* Mirrors tests/lint-legacy-dir-name.test.cjs's structure and conventions
|
||||
* closely: a temp git-fixture repo, driven via the process seam, with the
|
||||
* guard's REPO_ROOT overridden through GSD_LINT_RETIRED_RUNTIME_REPO_ROOT
|
||||
* (the sibling seam to that precedent's GSD_LINT_LEGACY_REPO_ROOT).
|
||||
* guard's REPO_ROOT overridden through MSD_LINT_RETIRED_RUNTIME_REPO_ROOT
|
||||
* (the sibling seam to that precedent's MSD_LINT_LEGACY_REPO_ROOT).
|
||||
*/
|
||||
// docs-guard-exempt: this file's `writeFile('docs/...', ...)` calls WRITE
|
||||
// fabricated fixture content into a throwaway mkdtemp repo; none of it reads
|
||||
@@ -41,7 +41,7 @@ const MIN_EXPECTED_FILES = 150;
|
||||
const RETIRED_NAME = 'Gem' + 'ini';
|
||||
|
||||
function createTempRepo() {
|
||||
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-lint-retired-runtime-test-'));
|
||||
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-lint-retired-runtime-test-'));
|
||||
gitOrThrow(['init', '--initial-branch=main'], { cwd: dir });
|
||||
gitOrThrow(['config', 'user.email', 'test@example.com'], { cwd: dir });
|
||||
gitOrThrow(['config', 'user.name', 'Test'], { cwd: dir });
|
||||
@@ -79,7 +79,7 @@ function seedFillerFiles(dir, count) {
|
||||
function runGuard(cwd) {
|
||||
const r = runNode([GUARD_SCRIPT], {
|
||||
cwd,
|
||||
env: { ...process.env, GSD_LINT_RETIRED_RUNTIME_REPO_ROOT: cwd },
|
||||
env: { ...process.env, MSD_LINT_RETIRED_RUNTIME_REPO_ROOT: cwd },
|
||||
timeoutMs: GUARD_TIMEOUT_MS,
|
||||
});
|
||||
return { status: r.exitCode, stdout: r.stdout, stderr: r.stderr };
|
||||
@@ -159,7 +159,7 @@ describe('lint-retired-runtime-name — case sensitivity is the mechanism', () =
|
||||
});
|
||||
});
|
||||
|
||||
describe('lint-retired-runtime-name — gsd-allow-retired-runtime-name marker', () => {
|
||||
describe('lint-retired-runtime-name — msd-allow-retired-runtime-name marker', () => {
|
||||
test('exits 0 when the violating line also carries the inline allow marker', () => {
|
||||
const dir = createTempRepo();
|
||||
try {
|
||||
@@ -167,7 +167,7 @@ describe('lint-retired-runtime-name — gsd-allow-retired-runtime-name marker',
|
||||
writeFile(
|
||||
dir,
|
||||
'docs/history/migration-note.md',
|
||||
`# Migration note\n\nInstall ${RETIRED_NAME} CLI for legacy testing. <!-- gsd-allow-retired-runtime-name: legacy-install note, see #1928 -->\n`,
|
||||
`# Migration note\n\nInstall ${RETIRED_NAME} CLI for legacy testing. <!-- msd-allow-retired-runtime-name: legacy-install note, see #1928 -->\n`,
|
||||
);
|
||||
gitAddAll(dir);
|
||||
|
||||
@@ -294,7 +294,7 @@ describe('lint-retired-runtime-name — root-level *.md is in the scan set', ()
|
||||
// Regression test for the defect that made this guard necessary AND
|
||||
// initially unable to see it: four locale READMEs advertised the retired
|
||||
// runtime as supported at README.<locale>.md:9/:24/:46 while the scan set
|
||||
// covered only docs/ gsd-core/ commands/ agents/ skills/. The repo's
|
||||
// covered only docs/ msd-core/ commands/ agents/ skills/. The repo's
|
||||
// most-read runtime-advertising surface was structurally invisible.
|
||||
const dir = createTempRepo();
|
||||
try {
|
||||
@@ -535,7 +535,7 @@ describe('lint-retired-runtime-name — dialect marker may PRECEDE the name', ()
|
||||
writeFile(
|
||||
dir,
|
||||
'docs/pt-BR/guides/hooks.md',
|
||||
`# Hooks\n\nEntradas de hook no estilo ${RETIRED_NAME} quando instalado pelo GSD.\n`,
|
||||
`# Hooks\n\nEntradas de hook no estilo ${RETIRED_NAME} quando instalado pelo MSD.\n`,
|
||||
);
|
||||
gitAddAll(dir);
|
||||
|
||||
@@ -647,7 +647,7 @@ describe('lint-retired-runtime-name — a version number never launders a claim'
|
||||
['a version ending the sentence', 'docs/guides/b1.md',
|
||||
`The installer now offers ${RETIRED_NAME} 3.`],
|
||||
['a version inside a runtime list', 'docs/guides/b2.md',
|
||||
`GSD installs cleanly on ${RETIRED_NAME} 3, Kimi, and Codex.`],
|
||||
`MSD installs cleanly on ${RETIRED_NAME} 3, Kimi, and Codex.`],
|
||||
['a version in parentheses', 'docs/guides/b3.md',
|
||||
`Pick your coding tool (${RETIRED_NAME} 3) during setup.`],
|
||||
['a "plugins" list — "plugin" is not a runtime word', 'docs/guides/c3.md',
|
||||
@@ -687,8 +687,8 @@ describe('lint-retired-runtime-name — pins are span-scoped, not line-scoped',
|
||||
seedFillerFiles(dir, MIN_EXPECTED_FILES);
|
||||
writeFile(
|
||||
dir,
|
||||
'gsd-core/workflows/settings-advanced.md',
|
||||
`# t\n\nKnown provider menu update: ${RETIRED_NAME} CLI is once again a selectable GSD runtime.\n`,
|
||||
'msd-core/workflows/settings-advanced.md',
|
||||
`# t\n\nKnown provider menu update: ${RETIRED_NAME} CLI is once again a selectable MSD runtime.\n`,
|
||||
);
|
||||
gitAddAll(dir);
|
||||
|
||||
@@ -705,8 +705,8 @@ describe('lint-retired-runtime-name — pins are span-scoped, not line-scoped',
|
||||
seedFillerFiles(dir, MIN_EXPECTED_FILES);
|
||||
writeFile(
|
||||
dir,
|
||||
'agents/gsd-framework-selector.md',
|
||||
`# t\n\nInstall target: Google (${RETIRED_NAME}) — choose ${RETIRED_NAME} CLI as your GSD runtime.\n`,
|
||||
'agents/msd-framework-selector.md',
|
||||
`# t\n\nInstall target: Google (${RETIRED_NAME}) — choose ${RETIRED_NAME} CLI as your MSD runtime.\n`,
|
||||
);
|
||||
gitAddAll(dir);
|
||||
|
||||
@@ -723,7 +723,7 @@ describe('lint-retired-runtime-name — pins are span-scoped, not line-scoped',
|
||||
seedFillerFiles(dir, MIN_EXPECTED_FILES);
|
||||
writeFile(
|
||||
dir,
|
||||
'agents/gsd-framework-selector.md',
|
||||
'agents/msd-framework-selector.md',
|
||||
`# t\n\n{ label: "Google (${RETIRED_NAME})", description: "Committed to ${RETIRED_NAME} / Google Cloud / Vertex AI" },\n`,
|
||||
);
|
||||
gitAddAll(dir);
|
||||
@@ -741,16 +741,16 @@ describe('lint-retired-runtime-name — pins are span-scoped, not line-scoped',
|
||||
seedFillerFiles(dir, MIN_EXPECTED_FILES);
|
||||
writeFile(
|
||||
dir,
|
||||
'agents/gsd-framework-selector.md',
|
||||
'agents/msd-framework-selector.md',
|
||||
`# t\n\n{ label: "Google (${RETIRED_NAME})", description: "Committed to ${RETIRED_NAME} / Google Cloud / Vertex AI" },\n`
|
||||
+ `Install target: choose ${RETIRED_NAME} CLI as your GSD runtime.\n`,
|
||||
+ `Install target: choose ${RETIRED_NAME} CLI as your MSD runtime.\n`,
|
||||
);
|
||||
gitAddAll(dir);
|
||||
|
||||
const result = runGuard(dir);
|
||||
assert.equal(result.status, 1, `expected exit 1, got ${result.status}; stdout: ${result.stdout}`);
|
||||
assert.ok(
|
||||
result.stderr.includes('agents/gsd-framework-selector.md:4:'),
|
||||
result.stderr.includes('agents/msd-framework-selector.md:4:'),
|
||||
`the NEW line 4 must be reported: ${result.stderr}`,
|
||||
);
|
||||
} finally {
|
||||
@@ -819,7 +819,7 @@ describe('lint-retired-runtime-name — the escape hatch must carry a reason', (
|
||||
writeFile(
|
||||
dir,
|
||||
'docs/guides/d1.md',
|
||||
`# t\n\n${RETIRED_NAME} CLI is a fully supported GSD runtime. <!-- gsd-allow-retired-runtime-name -->\n`,
|
||||
`# t\n\n${RETIRED_NAME} CLI is a fully supported MSD runtime. <!-- msd-allow-retired-runtime-name -->\n`,
|
||||
);
|
||||
gitAddAll(dir);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user