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:
@@ -64,7 +64,7 @@ describe('no-source-grep rule', () => {
|
||||
code: `
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const content = fs.readFileSync(path.join(__dirname, '..', 'gsd-core', 'workflows', 'config.json'), 'utf-8');
|
||||
const content = fs.readFileSync(path.join(__dirname, '..', 'msd-core', 'workflows', 'config.json'), 'utf-8');
|
||||
content.includes('key');
|
||||
`,
|
||||
filename: 'tests/foo.test.cjs',
|
||||
@@ -82,7 +82,7 @@ describe('no-source-grep rule', () => {
|
||||
code: `
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const src = fs.readFileSync(path.join(__dirname, '..', 'gsd-core', 'bin', 'lib', 'io.cjs'), 'utf-8');
|
||||
const src = fs.readFileSync(path.join(__dirname, '..', 'msd-core', 'bin', 'lib', 'io.cjs'), 'utf-8');
|
||||
src.includes('someFunction');
|
||||
`,
|
||||
filename: 'tests/foo.test.cjs',
|
||||
@@ -119,7 +119,7 @@ describe('no-source-grep rule', () => {
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
// allow-test-rule: pending migration
|
||||
const src = fs.readFileSync(path.join(__dirname, '..', 'gsd-core', 'bin', 'lib', 'io.cjs'), 'utf-8'); src.includes('someFunction');
|
||||
const src = fs.readFileSync(path.join(__dirname, '..', 'msd-core', 'bin', 'lib', 'io.cjs'), 'utf-8'); src.includes('someFunction');
|
||||
`,
|
||||
filename: 'tests/foo.test.cjs',
|
||||
},
|
||||
@@ -133,7 +133,7 @@ describe('no-source-grep rule', () => {
|
||||
valid: [
|
||||
{
|
||||
code: `
|
||||
const mod = require('../gsd-core/bin/lib/io.cjs');
|
||||
const mod = require('../msd-core/bin/lib/io.cjs');
|
||||
mod.someMethod();
|
||||
`,
|
||||
filename: 'tests/foo.test.cjs',
|
||||
@@ -146,7 +146,7 @@ describe('no-source-grep rule', () => {
|
||||
|
||||
// ─── no-source-grep widening (#3502 / Phase 3 of #3464) ─────────────────────
|
||||
//
|
||||
// One RuleTester case per row of .gsd/phase/chore-3464-widen-source-grep/
|
||||
// One RuleTester case per row of .msd/phase/chore-3464-widen-source-grep/
|
||||
// 50-test-matrix.md. Row numbers in test names refer to that matrix.
|
||||
|
||||
describe('no-source-grep rule — widening (#3502)', () => {
|
||||
@@ -545,10 +545,10 @@ describe('no-source-grep rule — widening (#3502)', () => {
|
||||
// ─── fold + hooks widening (#3545 / Phase 7 of #3464) ─────────────────────
|
||||
//
|
||||
// One RuleTester case per row of
|
||||
// .gsd/phase/chore-3545-fold-hooks-widening-migration/50-test-matrix.md,
|
||||
// .msd/phase/chore-3545-fold-hooks-widening-migration/50-test-matrix.md,
|
||||
// rows 1-8. Covers `fold` (a bare-Identifier readFileSync
|
||||
// path argument resolved ONE hop back to its VariableDeclarator init) and
|
||||
// `hooks` (now a recognized source directory alongside bin/lib/gsd-core/src).
|
||||
// `hooks` (now a recognized source directory alongside bin/lib/msd-core/src).
|
||||
|
||||
test('#3545 row 1: baseline inline literal src path — unchanged by fold/hooks widening', () => {
|
||||
ruleTester.run('no-source-grep', noSourceGrep, {
|
||||
@@ -792,7 +792,7 @@ describe('no-source-grep rule — widening (#3502)', () => {
|
||||
// ─── no-source-grep site-scoped suppression (#3508 / Phase 4 of #3464) ──────
|
||||
//
|
||||
// One RuleTester case per row of
|
||||
// .gsd/phase/chore-3464-site-scoped-suppression/50-test-matrix.md, rows 1-12.
|
||||
// .msd/phase/chore-3464-site-scoped-suppression/50-test-matrix.md, rows 1-12.
|
||||
// Row 4 is the one that actually proves the defect is closed: file-wide
|
||||
// amnesty is gone, so a marker adjacent to one violation must NOT reach an
|
||||
// unrelated violation later in the same file. Rows 3 and 6 are the
|
||||
@@ -2107,7 +2107,7 @@ describe('no-adhoc-markdown-parsing rule', () => {
|
||||
valid: [
|
||||
{
|
||||
code: String.raw`const cellPattern = /\|[^|]*\|/;`,
|
||||
filename: 'gsd-core/bin/lib/foo.cjs',
|
||||
filename: 'msd-core/bin/lib/foo.cjs',
|
||||
},
|
||||
],
|
||||
invalid: [],
|
||||
@@ -2328,7 +2328,7 @@ describe('no-adhoc-markdown-parsing rule', () => {
|
||||
valid: [
|
||||
{
|
||||
code: String.raw`const stripFences = /~~~[\s\S]*?~~~/;`,
|
||||
filename: 'gsd-core/bin/lib/foo.cjs',
|
||||
filename: 'msd-core/bin/lib/foo.cjs',
|
||||
},
|
||||
],
|
||||
invalid: [],
|
||||
@@ -2431,7 +2431,7 @@ describe('no-adhoc-markdown-parsing rule', () => {
|
||||
valid: [
|
||||
{
|
||||
code: String.raw`const rowRe = /\|[^|]*\|/;`,
|
||||
filename: 'gsd-core/bin/lib/foo.cjs',
|
||||
filename: 'msd-core/bin/lib/foo.cjs',
|
||||
},
|
||||
],
|
||||
invalid: [],
|
||||
@@ -2581,7 +2581,7 @@ describe('no-adhoc-markdown-parsing rule', () => {
|
||||
valid: [
|
||||
{
|
||||
code: String.raw`const rowRe = new RegExp('\\|[^|]*\\|');`,
|
||||
filename: 'gsd-core/bin/lib/foo.cjs',
|
||||
filename: 'msd-core/bin/lib/foo.cjs',
|
||||
},
|
||||
],
|
||||
invalid: [],
|
||||
@@ -2693,7 +2693,7 @@ describe('no-adhoc-markdown-parsing rule', () => {
|
||||
valid: [
|
||||
{
|
||||
code: String.raw`roadmapContent.replace(/\|[^|]*\|/, 'x');`,
|
||||
filename: 'gsd-core/bin/lib/foo.cjs',
|
||||
filename: 'msd-core/bin/lib/foo.cjs',
|
||||
},
|
||||
],
|
||||
invalid: [],
|
||||
@@ -3508,7 +3508,7 @@ describe('require-subprocess-timeout rule', () => {
|
||||
|
||||
// ─── require-registered-exit (#3910, epic #3889 Phase 6) ──────────────────
|
||||
//
|
||||
// See .gsd/phase/enhance-3910-ban-raw-terminator/50-test-matrix.md for the
|
||||
// See .msd/phase/enhance-3910-ban-raw-terminator/50-test-matrix.md for the
|
||||
// enumerated input-class matrix these tests implement.
|
||||
|
||||
describe('require-registered-exit rule', () => {
|
||||
@@ -3557,13 +3557,13 @@ describe('require-registered-exit rule', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('invalid: process.exit() at top level — gsd-core/bin/**/*.cjs glob', () => {
|
||||
test('invalid: process.exit() at top level — msd-core/bin/**/*.cjs glob', () => {
|
||||
ruleTester.run('require-registered-exit', requireRegisteredExit, {
|
||||
valid: [],
|
||||
invalid: [
|
||||
{
|
||||
code: `process.exit(1);`,
|
||||
filename: 'gsd-core/bin/gsd-tools.cjs',
|
||||
filename: 'msd-core/bin/msd-tools.cjs',
|
||||
errors: [{ messageId: 'rawProcessExit' }],
|
||||
},
|
||||
],
|
||||
@@ -3603,10 +3603,10 @@ describe('require-registered-exit rule', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('valid: process.exitCode = 1 is not flagged — gsd-core/bin/**/*.cjs glob', () => {
|
||||
test('valid: process.exitCode = 1 is not flagged — msd-core/bin/**/*.cjs glob', () => {
|
||||
ruleTester.run('require-registered-exit', requireRegisteredExit, {
|
||||
valid: [
|
||||
{ code: `process.exitCode = 1;`, filename: 'gsd-core/bin/gsd-tools.cjs' },
|
||||
{ code: `process.exitCode = 1;`, filename: 'msd-core/bin/msd-tools.cjs' },
|
||||
],
|
||||
invalid: [],
|
||||
});
|
||||
@@ -3770,7 +3770,7 @@ describe('require-registered-exit rule', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('invalid: a function named terminateNow in gsd-core/bin/gsd-tools.cjs (not cli-exit.cts) is still flagged', () => {
|
||||
test('invalid: a function named terminateNow in msd-core/bin/msd-tools.cjs (not cli-exit.cts) is still flagged', () => {
|
||||
ruleTester.run('require-registered-exit', requireRegisteredExit, {
|
||||
valid: [],
|
||||
invalid: [
|
||||
@@ -3780,7 +3780,7 @@ describe('require-registered-exit rule', () => {
|
||||
process.exit(0);
|
||||
}
|
||||
`,
|
||||
filename: 'gsd-core/bin/gsd-tools.cjs',
|
||||
filename: 'msd-core/bin/msd-tools.cjs',
|
||||
errors: [{ messageId: 'rawProcessExit' }],
|
||||
},
|
||||
],
|
||||
@@ -3795,7 +3795,7 @@ describe('require-registered-exit rule', () => {
|
||||
// wiring: it resolves the real config for one representative path per
|
||||
// glob and asserts the rule is enabled there. This test fails if a glob
|
||||
// registration is ever removed from eslint.config.mjs (verified live:
|
||||
// temporarily deleting the gsd-core/bin/**/*.cjs registration flipped
|
||||
// temporarily deleting the msd-core/bin/**/*.cjs registration flipped
|
||||
// this test red before it was restored).
|
||||
test('the rule is registered at error for one representative path per glob in the real config', async () => {
|
||||
const REPO_ROOT = path.join(__dirname, '..');
|
||||
@@ -3803,8 +3803,8 @@ describe('require-registered-exit rule', () => {
|
||||
const representativePaths = [
|
||||
path.join(REPO_ROOT, 'src', 'cli-exit.cts'),
|
||||
path.join(REPO_ROOT, 'scripts', 'affected-tests-lib.cjs'),
|
||||
path.join(REPO_ROOT, 'hooks', 'gsd-check-update.js'),
|
||||
path.join(REPO_ROOT, 'gsd-core', 'bin', 'gsd-tools.cjs'),
|
||||
path.join(REPO_ROOT, 'hooks', 'msd-check-update.js'),
|
||||
path.join(REPO_ROOT, 'msd-core', 'bin', 'msd-tools.cjs'),
|
||||
];
|
||||
for (const p of representativePaths) {
|
||||
// Sequential config resolution (not a hot loop) — no-await-in-loop is
|
||||
@@ -3823,7 +3823,7 @@ describe('require-registered-exit rule', () => {
|
||||
//
|
||||
// An isolated review, plus live measurement (see the parity matrix below),
|
||||
// proved the original #3914 retirement of n/no-process-exit on
|
||||
// gsd-core/bin/**/*.cjs and scripts/**/*.cjs was WRONG: local/require-
|
||||
// msd-core/bin/**/*.cjs and scripts/**/*.cjs was WRONG: local/require-
|
||||
// registered-exit is NOT a strict superset there. n/no-process-exit's
|
||||
// esquery selector `[property.name="exit"]` matches ANY MemberExpression
|
||||
// property node whose own AST `.name` reads `exit`, computed or not,
|
||||
@@ -3852,7 +3852,7 @@ describe('require-registered-exit rule', () => {
|
||||
}
|
||||
|
||||
// n/no-process-exit is registered ('error') on exactly the nine globs of
|
||||
// the shared CommonJS block (eslint.config.mjs ~:476-486): gsd-core/bin/**/*.cjs,
|
||||
// the shared CommonJS block (eslint.config.mjs ~:476-486): msd-core/bin/**/*.cjs,
|
||||
// scripts/**/*.cjs, eslint-rules/**/*.cjs, bin/lib/**/*.cjs, pi/**/*.cjs,
|
||||
// examples/**/*.cjs, vscode/*.js, .kilo/plugins/*.js, .opencode/plugins/*.js.
|
||||
// hooks/**/*.js is NOT one of them — the hooks block (eslint.config.mjs
|
||||
@@ -3868,14 +3868,14 @@ describe('require-registered-exit rule', () => {
|
||||
const REPO_ROOT = path.join(__dirname, '..');
|
||||
const eslint = new ESLint({ cwd: REPO_ROOT });
|
||||
const allPaths = [
|
||||
path.join(REPO_ROOT, 'gsd-core', 'bin', 'gsd-tools.cjs'),
|
||||
path.join(REPO_ROOT, 'msd-core', 'bin', 'msd-tools.cjs'),
|
||||
path.join(REPO_ROOT, 'scripts', 'affected-tests-lib.cjs'),
|
||||
path.join(REPO_ROOT, 'eslint-rules', 'no-source-grep.cjs'),
|
||||
path.join(REPO_ROOT, 'pi', 'gsd.cjs'),
|
||||
path.join(REPO_ROOT, 'pi', 'msd.cjs'),
|
||||
path.join(REPO_ROOT, 'examples', 'dynamic-context-management', 'demo.cjs'),
|
||||
path.join(REPO_ROOT, 'vscode', 'extension.js'),
|
||||
path.join(REPO_ROOT, '.kilo', 'plugins', 'gsd-core.js'),
|
||||
path.join(REPO_ROOT, '.opencode', 'plugins', 'gsd-core.js'),
|
||||
path.join(REPO_ROOT, '.kilo', 'plugins', 'msd-core.js'),
|
||||
path.join(REPO_ROOT, '.opencode', 'plugins', 'msd-core.js'),
|
||||
];
|
||||
for (const p of allPaths) {
|
||||
const config = await eslint.calculateConfigForFile(p);
|
||||
@@ -3896,7 +3896,7 @@ describe('require-registered-exit rule', () => {
|
||||
test('on hooks/** n/no-process-exit is unregistered (undefined) while local/require-registered-exit is error', async () => {
|
||||
const REPO_ROOT = path.join(__dirname, '..');
|
||||
const eslint = new ESLint({ cwd: REPO_ROOT });
|
||||
const p = path.join(REPO_ROOT, 'hooks', 'gsd-check-update.js');
|
||||
const p = path.join(REPO_ROOT, 'hooks', 'msd-check-update.js');
|
||||
const config = await eslint.calculateConfigForFile(p);
|
||||
assert.strictEqual(
|
||||
config.rules['n/no-process-exit'],
|
||||
@@ -3916,8 +3916,8 @@ describe('require-registered-exit rule', () => {
|
||||
const registeredPaths = [
|
||||
path.join(REPO_ROOT, 'src', 'cli-exit.cts'),
|
||||
path.join(REPO_ROOT, 'scripts', 'affected-tests-lib.cjs'),
|
||||
path.join(REPO_ROOT, 'hooks', 'gsd-check-update.js'),
|
||||
path.join(REPO_ROOT, 'gsd-core', 'bin', 'gsd-tools.cjs'),
|
||||
path.join(REPO_ROOT, 'hooks', 'msd-check-update.js'),
|
||||
path.join(REPO_ROOT, 'msd-core', 'bin', 'msd-tools.cjs'),
|
||||
];
|
||||
for (const p of registeredPaths) {
|
||||
const config = await eslint.calculateConfigForFile(p);
|
||||
|
||||
Reference in New Issue
Block a user