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:
@@ -6,10 +6,10 @@
|
||||
/**
|
||||
* Cursor CLI Reviewer Tests (#1960)
|
||||
*
|
||||
* Verifies that /gsd-review includes Cursor CLI as a peer reviewer:
|
||||
* Verifies that /msd-review includes Cursor CLI as a peer reviewer:
|
||||
* - review.md workflow contains cursor detection, flag parsing, self-detection, invocation
|
||||
* - commands/gsd/review.md command file mentions --cursor flag
|
||||
* - help.md lists --cursor in the /gsd-review signature
|
||||
* - commands/msd/review.md command file mentions --cursor flag
|
||||
* - help.md lists --cursor in the /msd-review signature
|
||||
* - docs/COMMANDS.md has --cursor flag row
|
||||
* - docs/FEATURES.md has Cursor in the review section
|
||||
* - i18n docs mirror the same content
|
||||
@@ -23,12 +23,12 @@ const path = require('path');
|
||||
|
||||
const ROOT = path.join(__dirname, '..');
|
||||
|
||||
describe('Cursor CLI reviewer in /gsd-review (#1960)', () => {
|
||||
describe('Cursor CLI reviewer in /msd-review (#1960)', () => {
|
||||
|
||||
// --- review.md workflow ---
|
||||
|
||||
describe('review.md workflow', () => {
|
||||
const reviewPath = path.join(ROOT, 'gsd-core', 'workflows', 'review.md');
|
||||
const reviewPath = path.join(ROOT, 'msd-core', 'workflows', 'review.md');
|
||||
let _content;
|
||||
|
||||
test('review.md exists', () => {
|
||||
@@ -64,14 +64,14 @@ describe('Cursor CLI reviewer in /gsd-review (#1960)', () => {
|
||||
// These four assertions follow it: the descriptor and the resolved plan ARE the deployed
|
||||
// contract now, and asserting on them is strictly stronger than matching fence text.
|
||||
test('invocation uses the cursor-agent single binary, not two-token "cursor agent"', () => {
|
||||
const { REVIEWER_LANES } = require('../gsd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
const { REVIEWER_LANES } = require('../msd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
const lane = REVIEWER_LANES.find((l) => l.slug === 'cursor');
|
||||
assert.equal(lane.invoke.binary, 'cursor-agent');
|
||||
assert.ok(lane.invoke.args.includes('-p'));
|
||||
});
|
||||
|
||||
test('invocation includes --output-format text', () => {
|
||||
const { REVIEWER_LANES } = require('../gsd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
const { REVIEWER_LANES } = require('../msd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
const lane = REVIEWER_LANES.find((l) => l.slug === 'cursor');
|
||||
const i = lane.invoke.args.indexOf('--output-format');
|
||||
assert.ok(i !== -1);
|
||||
@@ -81,14 +81,14 @@ describe('Cursor CLI reviewer in /gsd-review (#1960)', () => {
|
||||
test('the prompt is a file-path ARGUMENT, never piped on stdin', () => {
|
||||
// Print mode takes the prompt as an argument, and a full plan set inline would approach the
|
||||
// 32,767-char Windows execFileSync ceiling — hence the file reference.
|
||||
const { REVIEWER_LANES } = require('../gsd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
const { resolveLanePlan } = require('../gsd-core/bin/lib/review-lane-invocation.cjs');
|
||||
const { REVIEWER_LANES } = require('../msd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
const { resolveLanePlan } = require('../msd-core/bin/lib/review-lane-invocation.cjs');
|
||||
const lane = REVIEWER_LANES.find((l) => l.slug === 'cursor');
|
||||
assert.equal(lane.invoke.promptChannel, 'argv-file-ref');
|
||||
const r = resolveLanePlan({ lane, configGet: () => undefined, runDir: '/rd', repoRoot: '/repo' });
|
||||
assert.equal(r.ok, true);
|
||||
assert.equal(r.plan.stdin, null, 'nothing may be fed on stdin');
|
||||
assert.ok(r.plan.argv[r.plan.argv.length - 1].includes('/rd/gsd-review-prompt.md'));
|
||||
assert.ok(r.plan.argv[r.plan.argv.length - 1].includes('/rd/msd-review-prompt.md'));
|
||||
});
|
||||
|
||||
test('does NOT use broken two-token "cursor agent " form', () => {
|
||||
@@ -116,7 +116,7 @@ describe('Cursor CLI reviewer in /gsd-review (#1960)', () => {
|
||||
// sections from each lane's declared `reviewsSection`, so THAT is the contract now — and
|
||||
// uniqueness across lanes is enforced by the parity gate (ADR-2782 D8), which a hardcoded
|
||||
// list never was.
|
||||
const { REVIEWER_LANES } = require('../gsd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
const { REVIEWER_LANES } = require('../msd-core/bin/lib/review-lane-descriptor.cjs');
|
||||
const lane = REVIEWER_LANES.find((l) => l.slug === 'cursor');
|
||||
assert.equal(lane.reviewsSection, 'Cursor');
|
||||
const sections = REVIEWER_LANES.map((l) => l.reviewsSection);
|
||||
@@ -135,16 +135,16 @@ describe('Cursor CLI reviewer in /gsd-review (#1960)', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// --- commands/gsd/review.md ---
|
||||
// --- commands/msd/review.md ---
|
||||
|
||||
describe('commands/gsd/review.md', () => {
|
||||
const cmdPath = path.join(ROOT, 'commands', 'gsd', 'review.md');
|
||||
describe('commands/msd/review.md', () => {
|
||||
const cmdPath = path.join(ROOT, 'commands', 'msd', 'review.md');
|
||||
|
||||
test('mentions --cursor flag', () => {
|
||||
const c = fs.readFileSync(cmdPath, 'utf-8');
|
||||
assert.ok(
|
||||
c.includes('--cursor'),
|
||||
'commands/gsd/review.md should mention --cursor flag'
|
||||
'commands/msd/review.md should mention --cursor flag'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -152,7 +152,7 @@ describe('Cursor CLI reviewer in /gsd-review (#1960)', () => {
|
||||
const c = fs.readFileSync(cmdPath, 'utf-8');
|
||||
assert.ok(
|
||||
c.includes('Cursor'),
|
||||
'commands/gsd/review.md should mention Cursor'
|
||||
'commands/msd/review.md should mention Cursor'
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -161,13 +161,13 @@ describe('Cursor CLI reviewer in /gsd-review (#1960)', () => {
|
||||
|
||||
describe('help.md', () => {
|
||||
// After #3039, help content moved into help/modes/full.md.
|
||||
const helpPath = path.join(ROOT, 'gsd-core', 'workflows', 'help', 'modes', 'full.md');
|
||||
const helpPath = path.join(ROOT, 'msd-core', 'workflows', 'help', 'modes', 'full.md');
|
||||
|
||||
test('lists --cursor in /gsd-review signature', () => {
|
||||
test('lists --cursor in /msd-review signature', () => {
|
||||
const c = fs.readFileSync(helpPath, 'utf-8');
|
||||
assert.ok(
|
||||
c.includes('--cursor'),
|
||||
'help.md should list --cursor in the /gsd-review command signature'
|
||||
'help.md should list --cursor in the /msd-review command signature'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user