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:
@@ -7,20 +7,20 @@
|
||||
/**
|
||||
* Regression tests for bug #1991
|
||||
*
|
||||
* Cline is listed in GSD documentation as a supported runtime but was
|
||||
* completely absent from bin/install.js. Running `npx @opengsd/gsd-core`
|
||||
* Cline is listed in MSD documentation as a supported runtime but was
|
||||
* completely absent from bin/install.js. Running `npx @golem15/msd-core`
|
||||
* did not show Cline as an option in the interactive menu.
|
||||
*
|
||||
* Fixed: Cline is now a first-class runtime that:
|
||||
* - Appears in the interactive menu and --all flag
|
||||
* - Supports the --cline CLI flag
|
||||
* - Writes .clinerules to the install directory
|
||||
* - Installs gsd-core/ engine with path replacement
|
||||
* - Installs msd-core/ engine with path replacement
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
process.env.GSD_TEST_MODE = '1';
|
||||
process.env.MSD_TEST_MODE = '1';
|
||||
|
||||
const { test, describe, beforeEach, afterEach } = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
@@ -40,20 +40,20 @@ const {
|
||||
install,
|
||||
finishInstall,
|
||||
uninstall,
|
||||
stripGsdFromAgentsMd,
|
||||
GSD_AGENTS_MD_MARKER,
|
||||
GSD_AGENTS_MD_CLOSE_MARKER,
|
||||
stripMsdFromAgentsMd,
|
||||
MSD_AGENTS_MD_MARKER,
|
||||
MSD_AGENTS_MD_CLOSE_MARKER,
|
||||
} = require('../bin/install.js');
|
||||
|
||||
const { getDirName } = require('../gsd-core/bin/lib/runtime-name-policy.cjs');
|
||||
const { getDirName } = require('../msd-core/bin/lib/runtime-name-policy.cjs');
|
||||
const {
|
||||
buildClineRulesBody,
|
||||
buildClinePreToolUseHook,
|
||||
buildClineAgentsMdBody,
|
||||
mergeGsdAgentsMd,
|
||||
} = require('../gsd-core/bin/lib/runtime-hooks-surface.cjs');
|
||||
mergeMsdAgentsMd,
|
||||
} = require('../msd-core/bin/lib/runtime-hooks-surface.cjs');
|
||||
|
||||
const { getGlobalConfigDir } = require('../gsd-core/bin/lib/runtime-homes.cjs');
|
||||
const { getGlobalConfigDir } = require('../msd-core/bin/lib/runtime-homes.cjs');
|
||||
|
||||
describe('Cline runtime directory mapping', () => {
|
||||
test('getDirName returns .cline for local installs', () => {
|
||||
@@ -126,7 +126,7 @@ describe('Cline markdown conversion', () => {
|
||||
});
|
||||
|
||||
test('replaces .claude/ paths with .cline/', () => {
|
||||
const result = convertClaudeToCliineMarkdown('See ~/.claude/gsd-core/');
|
||||
const result = convertClaudeToCliineMarkdown('See ~/.claude/msd-core/');
|
||||
assert.ok(!result.includes('.claude/'), `Expected no .claude/ in: ${result}`);
|
||||
assert.ok(result.includes('.cline/'));
|
||||
});
|
||||
@@ -138,7 +138,7 @@ describe('Cline markdown conversion', () => {
|
||||
});
|
||||
|
||||
test('replaces .claude/skills/ with .cline/skills/', () => {
|
||||
const result = convertClaudeToCliineMarkdown('skills at .claude/skills/gsd-executor');
|
||||
const result = convertClaudeToCliineMarkdown('skills at .claude/skills/msd-executor');
|
||||
assert.ok(!result.includes('.claude/skills/'));
|
||||
assert.ok(result.includes('.cline/skills/'));
|
||||
});
|
||||
@@ -149,7 +149,7 @@ describe('Cline install (local)', () => {
|
||||
let previousCwd;
|
||||
|
||||
beforeEach(() => {
|
||||
tmpDir = createTempDir('gsd-cline-test-');
|
||||
tmpDir = createTempDir('msd-cline-test-');
|
||||
previousCwd = process.cwd();
|
||||
process.chdir(tmpDir);
|
||||
});
|
||||
@@ -159,25 +159,25 @@ describe('Cline install (local)', () => {
|
||||
cleanup(tmpDir);
|
||||
});
|
||||
|
||||
test('install creates .clinerules directory with gsd.md (#787 directory form)', () => {
|
||||
test('install creates .clinerules directory with msd.md (#787 directory form)', () => {
|
||||
install(false, 'cline');
|
||||
const clinerulesDir = path.join(tmpDir, '.clinerules');
|
||||
assert.ok(fs.existsSync(clinerulesDir), '.clinerules must exist after cline install');
|
||||
assert.ok(fs.statSync(clinerulesDir).isDirectory(), '.clinerules must be a directory (#787)');
|
||||
assert.ok(fs.existsSync(path.join(clinerulesDir, 'gsd.md')), '.clinerules/gsd.md must exist');
|
||||
assert.ok(fs.existsSync(path.join(clinerulesDir, 'msd.md')), '.clinerules/msd.md must exist');
|
||||
});
|
||||
|
||||
test('.clinerules/gsd.md contains GSD instructions', () => {
|
||||
test('.clinerules/msd.md contains MSD instructions', () => {
|
||||
install(false, 'cline');
|
||||
const ruleFile = path.join(tmpDir, '.clinerules', 'gsd.md');
|
||||
const ruleFile = path.join(tmpDir, '.clinerules', 'msd.md');
|
||||
const content = fs.readFileSync(ruleFile, 'utf8');
|
||||
assert.ok(content.includes('GSD') || content.includes('gsd'), '.clinerules/gsd.md must reference GSD');
|
||||
assert.ok(content.includes('MSD') || content.includes('msd'), '.clinerules/msd.md must reference MSD');
|
||||
});
|
||||
|
||||
test('install creates gsd-core engine directory', () => {
|
||||
test('install creates msd-core engine directory', () => {
|
||||
install(false, 'cline');
|
||||
const engineDir = path.join(tmpDir, 'gsd-core');
|
||||
assert.ok(fs.existsSync(engineDir), 'gsd-core directory must exist after install');
|
||||
const engineDir = path.join(tmpDir, 'msd-core');
|
||||
assert.ok(fs.existsSync(engineDir), 'msd-core directory must exist after install');
|
||||
});
|
||||
|
||||
test('finishInstall does not throw ERR_INVALID_ARG_TYPE for cline runtime (regression: null settingsPath guard)', () => {
|
||||
@@ -197,19 +197,19 @@ describe('Cline install (local)', () => {
|
||||
assert.ok(!fs.existsSync(settingsJson), 'settings.json must not be written for cline runtime');
|
||||
});
|
||||
|
||||
test('install writes agents/gsd-*.md locally (regression: agents dropped when the inline agent-staging loop was deleted, #2875 Part 2)', () => {
|
||||
test('install writes agents/msd-*.md locally (regression: agents dropped when the inline agent-staging loop was deleted, #2875 Part 2)', () => {
|
||||
install(false, 'cline');
|
||||
const agentsDir = path.join(tmpDir, 'agents');
|
||||
assert.ok(fs.existsSync(agentsDir), 'agents/ directory must exist after cline local install');
|
||||
const agentFiles = fs.readdirSync(agentsDir).filter((f) => f.startsWith('gsd-') && f.endsWith('.md'));
|
||||
assert.ok(agentFiles.length > 0, 'cline local install must write at least one gsd-*.md agent file');
|
||||
const agentFiles = fs.readdirSync(agentsDir).filter((f) => f.startsWith('msd-') && f.endsWith('.md'));
|
||||
assert.ok(agentFiles.length > 0, 'cline local install must write at least one msd-*.md agent file');
|
||||
const sample = fs.readFileSync(path.join(agentsDir, agentFiles[0]), 'utf8');
|
||||
assert.match(sample, /^---\r?\nname: /, 'cline agent frontmatter must be Cline-dialect (name + description only)');
|
||||
});
|
||||
|
||||
test('installed engine files have no leaked .claude paths', () => {
|
||||
install(false, 'cline');
|
||||
const engineDir = path.join(tmpDir, 'gsd-core');
|
||||
const engineDir = path.join(tmpDir, 'msd-core');
|
||||
if (!fs.existsSync(engineDir)) return; // skip if engine not installed
|
||||
|
||||
function scanDir(dir) {
|
||||
@@ -225,11 +225,11 @@ describe('Cline install (local)', () => {
|
||||
// runtime-specific install rewrites; this test is only for deployed Cline payload leaks.
|
||||
if (entry.name === 'runtime-artifact-conversion.cjs') continue;
|
||||
const content = fs.readFileSync(fullPath, 'utf8');
|
||||
// Check for GSD install paths that should have been substituted.
|
||||
// Check for MSD install paths that should have been substituted.
|
||||
// profile-pipeline.cjs intentionally references ~/.claude/projects (Claude Code
|
||||
// session data) as a runtime feature — that is not a leaked install path.
|
||||
const hasLeaked = /~\/\.claude\/(?:gsd-core|commands|agents|hooks)|HOME\/\.claude\/(?:gsd-core|commands|agents|hooks)/.test(content);
|
||||
assert.ok(!hasLeaked, `Found leaked GSD .claude install path in ${fullPath}`);
|
||||
const hasLeaked = /~\/\.claude\/(?:msd-core|commands|agents|hooks)|HOME\/\.claude\/(?:msd-core|commands|agents|hooks)/.test(content);
|
||||
assert.ok(!hasLeaked, `Found leaked MSD .claude install path in ${fullPath}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -247,10 +247,10 @@ describe('Cline install (local)', () => {
|
||||
__foldDescribe('folded:issue-787-cline-hooks-agents', () => {
|
||||
|
||||
describe('#787 Cline pure helpers', () => {
|
||||
test('buildClineRulesBody returns GSD directory-form rules markdown', () => {
|
||||
test('buildClineRulesBody returns MSD directory-form rules markdown', () => {
|
||||
const body = buildClineRulesBody();
|
||||
assert.equal(typeof body, 'string');
|
||||
assert.match(body, /GSD workflows live in `gsd-core\/workflows\/`/);
|
||||
assert.match(body, /MSD workflows live in `msd-core\/workflows\/`/);
|
||||
assert.ok(body.endsWith('\n'), 'rules body should end with a trailing newline');
|
||||
});
|
||||
|
||||
@@ -260,7 +260,7 @@ describe('#787 Cline pure helpers', () => {
|
||||
// Cline protocol fields must be present in the emitted decision surface.
|
||||
assert.match(script, /cancel/);
|
||||
assert.match(script, /errorMessage/);
|
||||
const tmp = createTempDir('gsd-787-hookcheck-');
|
||||
const tmp = createTempDir('msd-787-hookcheck-');
|
||||
try {
|
||||
const p = path.join(tmp, 'PreToolUse');
|
||||
fs.writeFileSync(p, script);
|
||||
@@ -272,7 +272,7 @@ describe('#787 Cline pure helpers', () => {
|
||||
});
|
||||
|
||||
test('PreToolUse hook allows a normal tool call (cancel:false)', () => {
|
||||
const tmp = createTempDir('gsd-787-hookrun-');
|
||||
const tmp = createTempDir('msd-787-hookrun-');
|
||||
try {
|
||||
const p = path.join(tmp, 'PreToolUse');
|
||||
fs.writeFileSync(p, buildClinePreToolUseHook());
|
||||
@@ -289,7 +289,7 @@ describe('#787 Cline pure helpers', () => {
|
||||
});
|
||||
|
||||
test('PreToolUse hook cancels a write into .planning/ with an errorMessage', () => {
|
||||
const tmp = createTempDir('gsd-787-hookguard-');
|
||||
const tmp = createTempDir('msd-787-hookguard-');
|
||||
try {
|
||||
const p = path.join(tmp, 'PreToolUse');
|
||||
fs.writeFileSync(p, buildClinePreToolUseHook());
|
||||
@@ -307,14 +307,14 @@ describe('#787 Cline pure helpers', () => {
|
||||
});
|
||||
|
||||
test('PreToolUse hook does NOT cancel a write to a non-planning path whose CONTENT mentions .planning/', () => {
|
||||
const tmp = createTempDir('gsd-787-hookfp-');
|
||||
const tmp = createTempDir('msd-787-hookfp-');
|
||||
try {
|
||||
const p = path.join(tmp, 'PreToolUse');
|
||||
fs.writeFileSync(p, buildClinePreToolUseHook());
|
||||
const res = runNode([p], {
|
||||
input: JSON.stringify({
|
||||
toolName: 'write_to_file',
|
||||
toolInput: { path: 'docs/guide.md', content: 'Edit your .planning/ROADMAP.md via /gsd commands.' },
|
||||
toolInput: { path: 'docs/guide.md', content: 'Edit your .planning/ROADMAP.md via /msd commands.' },
|
||||
}),
|
||||
timeoutMs: PROBE_TIMEOUT_MS,
|
||||
});
|
||||
@@ -326,7 +326,7 @@ describe('#787 Cline pure helpers', () => {
|
||||
});
|
||||
|
||||
test('PreToolUse hook fails open on malformed stdin', () => {
|
||||
const tmp = createTempDir('gsd-787-hookbad-');
|
||||
const tmp = createTempDir('msd-787-hookbad-');
|
||||
try {
|
||||
const p = path.join(tmp, 'PreToolUse');
|
||||
fs.writeFileSync(p, buildClinePreToolUseHook());
|
||||
@@ -338,47 +338,47 @@ describe('#787 Cline pure helpers', () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('mergeGsdAgentsMd creates a marker-delimited block when no file exists', () => {
|
||||
const tmp = createTempDir('gsd-787-agents-new-');
|
||||
test('mergeMsdAgentsMd creates a marker-delimited block when no file exists', () => {
|
||||
const tmp = createTempDir('msd-787-agents-new-');
|
||||
try {
|
||||
const p = path.join(tmp, 'AGENTS.md');
|
||||
mergeGsdAgentsMd(p, buildClineAgentsMdBody());
|
||||
mergeMsdAgentsMd(p, buildClineAgentsMdBody());
|
||||
const content = fs.readFileSync(p, 'utf8');
|
||||
assert.ok(content.includes(GSD_AGENTS_MD_MARKER));
|
||||
assert.ok(content.includes(GSD_AGENTS_MD_CLOSE_MARKER));
|
||||
assert.match(content, /GSD/);
|
||||
assert.ok(content.includes(MSD_AGENTS_MD_MARKER));
|
||||
assert.ok(content.includes(MSD_AGENTS_MD_CLOSE_MARKER));
|
||||
assert.match(content, /MSD/);
|
||||
} finally {
|
||||
cleanup(tmp);
|
||||
}
|
||||
});
|
||||
|
||||
test('mergeGsdAgentsMd preserves pre-existing user content', () => {
|
||||
const tmp = createTempDir('gsd-787-agents-merge-');
|
||||
test('mergeMsdAgentsMd preserves pre-existing user content', () => {
|
||||
const tmp = createTempDir('msd-787-agents-merge-');
|
||||
try {
|
||||
const p = path.join(tmp, 'AGENTS.md');
|
||||
fs.writeFileSync(p, '# My rules\n\nKeep me.\n');
|
||||
mergeGsdAgentsMd(p, buildClineAgentsMdBody());
|
||||
mergeMsdAgentsMd(p, buildClineAgentsMdBody());
|
||||
const content = fs.readFileSync(p, 'utf8');
|
||||
assert.match(content, /Keep me\./);
|
||||
assert.ok(content.includes(GSD_AGENTS_MD_MARKER));
|
||||
assert.ok(content.includes(MSD_AGENTS_MD_MARKER));
|
||||
// Idempotent: second merge does not duplicate the block.
|
||||
mergeGsdAgentsMd(p, buildClineAgentsMdBody());
|
||||
mergeMsdAgentsMd(p, buildClineAgentsMdBody());
|
||||
const twice = fs.readFileSync(p, 'utf8');
|
||||
const occurrences = twice.split(GSD_AGENTS_MD_MARKER).length - 1;
|
||||
assert.equal(occurrences, 1, 'GSD block must not duplicate on re-merge');
|
||||
const occurrences = twice.split(MSD_AGENTS_MD_MARKER).length - 1;
|
||||
assert.equal(occurrences, 1, 'MSD block must not duplicate on re-merge');
|
||||
assert.match(twice, /Keep me\./);
|
||||
} finally {
|
||||
cleanup(tmp);
|
||||
}
|
||||
});
|
||||
|
||||
test('stripGsdFromAgentsMd returns null when file was GSD-only, else cleaned content', () => {
|
||||
const onlyGsd = `${GSD_AGENTS_MD_MARKER}\nhi\n${GSD_AGENTS_MD_CLOSE_MARKER}\n`;
|
||||
assert.equal(stripGsdFromAgentsMd(onlyGsd), null);
|
||||
const mixed = `# Keep\n\n${GSD_AGENTS_MD_MARKER}\nhi\n${GSD_AGENTS_MD_CLOSE_MARKER}\n`;
|
||||
const cleaned = stripGsdFromAgentsMd(mixed);
|
||||
test('stripMsdFromAgentsMd returns null when file was MSD-only, else cleaned content', () => {
|
||||
const onlyMsd = `${MSD_AGENTS_MD_MARKER}\nhi\n${MSD_AGENTS_MD_CLOSE_MARKER}\n`;
|
||||
assert.equal(stripMsdFromAgentsMd(onlyMsd), null);
|
||||
const mixed = `# Keep\n\n${MSD_AGENTS_MD_MARKER}\nhi\n${MSD_AGENTS_MD_CLOSE_MARKER}\n`;
|
||||
const cleaned = stripMsdFromAgentsMd(mixed);
|
||||
assert.match(cleaned, /# Keep/);
|
||||
assert.ok(!cleaned.includes(GSD_AGENTS_MD_MARKER));
|
||||
assert.ok(!cleaned.includes(MSD_AGENTS_MD_MARKER));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -389,7 +389,7 @@ describe('#787 Cline local install — directory form + PreToolUse hook', () =>
|
||||
let previousCwd;
|
||||
|
||||
beforeEach(() => {
|
||||
tmpDir = createTempDir('gsd-787-cline-local-');
|
||||
tmpDir = createTempDir('msd-787-cline-local-');
|
||||
previousCwd = process.cwd();
|
||||
process.chdir(tmpDir);
|
||||
});
|
||||
@@ -399,13 +399,13 @@ describe('#787 Cline local install — directory form + PreToolUse hook', () =>
|
||||
cleanup(tmpDir);
|
||||
});
|
||||
|
||||
test('writes .clinerules/ as a directory containing gsd.md', () => {
|
||||
test('writes .clinerules/ as a directory containing msd.md', () => {
|
||||
install(false, 'cline');
|
||||
const dir = path.join(tmpDir, '.clinerules');
|
||||
assert.ok(fs.statSync(dir).isDirectory(), '.clinerules must be a directory');
|
||||
const ruleFile = path.join(dir, 'gsd.md');
|
||||
assert.ok(fs.existsSync(ruleFile), '.clinerules/gsd.md must exist');
|
||||
assert.match(fs.readFileSync(ruleFile, 'utf8'), /gsd-core\/workflows\//);
|
||||
const ruleFile = path.join(dir, 'msd.md');
|
||||
assert.ok(fs.existsSync(ruleFile), '.clinerules/msd.md must exist');
|
||||
assert.match(fs.readFileSync(ruleFile, 'utf8'), /msd-core\/workflows\//);
|
||||
});
|
||||
|
||||
test('writes an executable PreToolUse hook with no extension', () => {
|
||||
@@ -424,13 +424,13 @@ describe('#787 Cline local install — directory form + PreToolUse hook', () =>
|
||||
install(false, 'cline');
|
||||
const dir = path.join(tmpDir, '.clinerules');
|
||||
assert.ok(fs.statSync(dir).isDirectory(), 'legacy file must be replaced by a directory');
|
||||
assert.ok(fs.existsSync(path.join(dir, 'gsd.md')));
|
||||
assert.ok(fs.existsSync(path.join(dir, 'msd.md')));
|
||||
});
|
||||
|
||||
test('does not follow a symlinked .clinerules (writes the real directory in place)', () => {
|
||||
if (process.platform === 'win32') return; // symlink perms differ on Windows
|
||||
// Point .clinerules at an external directory via symlink; install must NOT
|
||||
// write GSD files through the link.
|
||||
// write MSD files through the link.
|
||||
const external = path.join(tmpDir, 'external-target');
|
||||
fs.mkdirSync(external);
|
||||
fs.symlinkSync(external, path.join(tmpDir, '.clinerules'));
|
||||
@@ -438,16 +438,16 @@ describe('#787 Cline local install — directory form + PreToolUse hook', () =>
|
||||
const dir = path.join(tmpDir, '.clinerules');
|
||||
assert.ok(fs.lstatSync(dir).isDirectory() && !fs.lstatSync(dir).isSymbolicLink(),
|
||||
'.clinerules must be a real directory, not the symlink');
|
||||
assert.ok(!fs.existsSync(path.join(external, 'gsd.md')), 'must not write through the symlink target');
|
||||
assert.ok(fs.existsSync(path.join(dir, 'gsd.md')));
|
||||
assert.ok(!fs.existsSync(path.join(external, 'msd.md')), 'must not write through the symlink target');
|
||||
assert.ok(fs.existsSync(path.join(dir, 'msd.md')));
|
||||
});
|
||||
|
||||
test('manifest tracks the new directory-form artifacts', () => {
|
||||
install(false, 'cline');
|
||||
const manifestPath = path.join(tmpDir, 'gsd-file-manifest.json');
|
||||
const manifestPath = path.join(tmpDir, 'msd-file-manifest.json');
|
||||
assert.ok(fs.existsSync(manifestPath));
|
||||
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
|
||||
assert.ok(manifest.files['.clinerules/gsd.md'], 'manifest should track .clinerules/gsd.md');
|
||||
assert.ok(manifest.files['.clinerules/msd.md'], 'manifest should track .clinerules/msd.md');
|
||||
assert.ok(manifest.files['.clinerules/hooks/PreToolUse'], 'manifest should track the hook');
|
||||
});
|
||||
});
|
||||
@@ -456,9 +456,9 @@ describe('#787 Cline local install — directory form + PreToolUse hook', () =>
|
||||
|
||||
describe('#787 Cline global install — ~/.agents/AGENTS.md', () => {
|
||||
function runGlobalClineInstall() {
|
||||
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-787-cline-global-'));
|
||||
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-787-cline-global-'));
|
||||
const env = { ...process.env, HOME: root, USERPROFILE: root };
|
||||
delete env.GSD_TEST_MODE;
|
||||
delete env.MSD_TEST_MODE;
|
||||
const res = runNode(
|
||||
[INSTALL_SCRIPT, '--cline', '--global', '--config-dir', path.join(root, '.cline')],
|
||||
{ cwd: root, env, timeoutMs: INSTALL_TIMEOUT_MS },
|
||||
@@ -466,15 +466,15 @@ describe('#787 Cline global install — ~/.agents/AGENTS.md', () => {
|
||||
return { root, res };
|
||||
}
|
||||
|
||||
test('writes ~/.agents/AGENTS.md with a GSD marker block', () => {
|
||||
test('writes ~/.agents/AGENTS.md with a MSD marker block', () => {
|
||||
const { root, res } = runGlobalClineInstall();
|
||||
try {
|
||||
assert.equal(res.exitCode, 0, `installer failed: ${res.stderr}`);
|
||||
const agents = path.join(root, '.agents', 'AGENTS.md');
|
||||
assert.ok(fs.existsSync(agents), '~/.agents/AGENTS.md must exist after a global Cline install');
|
||||
const content = fs.readFileSync(agents, 'utf8');
|
||||
assert.ok(content.includes(GSD_AGENTS_MD_MARKER));
|
||||
assert.match(content, /GSD/);
|
||||
assert.ok(content.includes(MSD_AGENTS_MD_MARKER));
|
||||
assert.match(content, /MSD/);
|
||||
} finally {
|
||||
cleanup(root);
|
||||
}
|
||||
@@ -488,7 +488,7 @@ describe('#787 Cline uninstall removes managed artifacts', () => {
|
||||
let previousCwd;
|
||||
|
||||
beforeEach(() => {
|
||||
tmpDir = createTempDir('gsd-787-cline-uninstall-');
|
||||
tmpDir = createTempDir('msd-787-cline-uninstall-');
|
||||
previousCwd = process.cwd();
|
||||
process.chdir(tmpDir);
|
||||
});
|
||||
@@ -498,11 +498,11 @@ describe('#787 Cline uninstall removes managed artifacts', () => {
|
||||
cleanup(tmpDir);
|
||||
});
|
||||
|
||||
test('local uninstall removes .clinerules/gsd.md and the hook', () => {
|
||||
test('local uninstall removes .clinerules/msd.md and the hook', () => {
|
||||
install(false, 'cline');
|
||||
assert.ok(fs.existsSync(path.join(tmpDir, '.clinerules', 'gsd.md')));
|
||||
assert.ok(fs.existsSync(path.join(tmpDir, '.clinerules', 'msd.md')));
|
||||
uninstall(false, 'cline');
|
||||
assert.ok(!fs.existsSync(path.join(tmpDir, '.clinerules', 'gsd.md')), 'gsd.md should be removed');
|
||||
assert.ok(!fs.existsSync(path.join(tmpDir, '.clinerules', 'msd.md')), 'msd.md should be removed');
|
||||
assert.ok(!fs.existsSync(path.join(tmpDir, '.clinerules', 'hooks', 'PreToolUse')), 'hook should be removed');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user