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

@@ -6,7 +6,7 @@
* literal parts of skill/subagent names.
*/
process.env.GSD_TEST_MODE = '1';
process.env.MSD_TEST_MODE = '1';
const { describe, test } = require('node:test');
const assert = require('node:assert/strict');
@@ -15,7 +15,7 @@ const {
convertClaudeCommandToAugmentSkill,
convertClaudeAgentToAugmentAgent,
convertClaudeToAugmentMarkdown,
} = require('../gsd-core/bin/lib/runtime-artifact-conversion.cjs');
} = require('../msd-core/bin/lib/runtime-artifact-conversion.cjs');
describe('convertClaudeCommandToAugmentSkill', () => {
test('writes unquoted Augment skill name in frontmatter', () => {
@@ -29,31 +29,31 @@ Test body
</objective>
`;
const result = convertClaudeCommandToAugmentSkill(input, 'gsd-quick');
const result = convertClaudeCommandToAugmentSkill(input, 'msd-quick');
const nameMatch = result.match(/^name:\s*(.+)$/m);
assert.ok(nameMatch, 'frontmatter contains name field');
assert.strictEqual(nameMatch[1], 'gsd-quick', 'skill name is plain scalar');
assert.ok(!result.includes('name: "gsd-quick"'), 'quoted skill name is not emitted');
assert.strictEqual(nameMatch[1], 'msd-quick', 'skill name is plain scalar');
assert.ok(!result.includes('name: "msd-quick"'), 'quoted skill name is not emitted');
});
test('preserves slash for slash commands in markdown body', () => {
const input = `---
name: gsd:plan-phase
name: msd:plan-phase
description: Plan a phase
---
Next:
/gsd:execute-phase 17
/gsd-help
gsd:progress
/msd:execute-phase 17
/msd-help
msd:progress
`;
const result = convertClaudeCommandToAugmentSkill(input, 'gsd-plan-phase');
// Slash commands: /gsd:execute-phase -> /gsd-execute-phase
assert.ok(result.includes('/gsd-execute-phase 17'), 'slash command gsd: -> gsd-');
assert.ok(result.includes('/gsd-help'), '/gsd-help preserved');
assert.ok(result.includes('gsd-progress'), 'bare gsd: -> gsd-');
const result = convertClaudeCommandToAugmentSkill(input, 'msd-plan-phase');
// Slash commands: /msd:execute-phase -> /msd-execute-phase
assert.ok(result.includes('/msd-execute-phase 17'), 'slash command msd: -> msd-');
assert.ok(result.includes('/msd-help'), '/msd-help preserved');
assert.ok(result.includes('msd-progress'), 'bare msd: -> msd-');
});
test('includes augment_skill_adapter block', () => {
@@ -65,7 +65,7 @@ description: A test skill
Body content.
`;
const result = convertClaudeCommandToAugmentSkill(input, 'gsd-test');
const result = convertClaudeCommandToAugmentSkill(input, 'msd-test');
assert.ok(result.includes('<augment_skill_adapter>'), 'adapter header present');
assert.ok(result.includes('</augment_skill_adapter>'), 'adapter footer present');
assert.ok(result.includes('launch-process'), 'launch-process tool mentioned');
@@ -83,7 +83,7 @@ Use Edit() to modify files.
Use Read() to view files.
`;
const result = convertClaudeCommandToAugmentSkill(input, 'gsd-test');
const result = convertClaudeCommandToAugmentSkill(input, 'msd-test');
assert.ok(result.includes('launch-process('), 'Bash converted to launch-process');
assert.ok(result.includes('str-replace-editor('), 'Edit converted to str-replace-editor');
assert.ok(result.includes('view('), 'Read converted to view');
@@ -93,7 +93,7 @@ Use Read() to view files.
describe('convertClaudeAgentToAugmentAgent', () => {
test('converts agent frontmatter with unquoted name', () => {
const input = `---
name: gsd-bugfix
name: msd-bugfix
description: "Fix bugs automatically"
tools: Read, Write, Edit, Bash
color: green
@@ -108,13 +108,13 @@ You are a bug fixer.
const nameMatch = result.match(/^name:\s*(.+)$/m);
assert.ok(nameMatch, 'frontmatter contains name field');
assert.strictEqual(nameMatch[1], 'gsd-bugfix', 'agent name is plain scalar');
assert.ok(!result.includes('name: "gsd-bugfix"'), 'quoted agent name is not emitted');
assert.strictEqual(nameMatch[1], 'msd-bugfix', 'agent name is plain scalar');
assert.ok(!result.includes('name: "msd-bugfix"'), 'quoted agent name is not emitted');
});
test('removes color and skills from frontmatter', () => {
const input = `---
name: gsd-test
name: msd-test
description: Test agent
color: blue
skills:
@@ -129,7 +129,7 @@ Test role
const result = convertClaudeAgentToAugmentAgent(input);
assert.ok(result.includes('name: gsd-test'), 'name preserved');
assert.ok(result.includes('name: msd-test'), 'name preserved');
assert.ok(result.includes('description:'), 'description preserved');
assert.ok(!result.includes('color:'), 'color removed');
assert.ok(!result.includes('skills:'), 'skills removed');
@@ -137,7 +137,7 @@ Test role
test('replaces CLAUDE.md with .augment/rules/', () => {
const input = `---
name: gsd-test
name: msd-test
description: Test
---
@@ -163,9 +163,9 @@ describe('convertClaudeToAugmentMarkdown', () => {
assert.strictEqual(result, 'Check .augment/skills/ for more info.');
});
test('normalizes gsd: to gsd-', () => {
const input = 'Run /gsd:new-project for new projects.';
test('normalizes msd: to msd-', () => {
const input = 'Run /msd:new-project for new projects.';
const result = convertClaudeToAugmentMarkdown(input);
assert.strictEqual(result, 'Run /gsd-new-project for new projects.');
assert.strictEqual(result, 'Run /msd-new-project for new projects.');
});
});