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:
@@ -8,10 +8,10 @@ const assert = require('node:assert/strict');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
describe('MCP tool usage in GSD agents', () => {
|
||||
describe('MCP tool usage in MSD agents', () => {
|
||||
const agentFiles = [
|
||||
path.join(__dirname, '..', 'agents', 'gsd-executor.md'),
|
||||
path.join(__dirname, '..', 'agents', 'gsd-planner.md'),
|
||||
path.join(__dirname, '..', 'agents', 'msd-executor.md'),
|
||||
path.join(__dirname, '..', 'agents', 'msd-planner.md'),
|
||||
];
|
||||
|
||||
for (const agentFile of agentFiles) {
|
||||
@@ -28,7 +28,7 @@ describe('MCP tool usage in GSD agents', () => {
|
||||
});
|
||||
}
|
||||
|
||||
test('gsd-executor.md explicitly instructs to use available MCP tools', () => {
|
||||
test('msd-executor.md explicitly instructs to use available MCP tools', () => {
|
||||
const content = fs.readFileSync(agentFiles[0], 'utf-8');
|
||||
assert.ok(
|
||||
content.includes('MCP') || content.includes('mcp__'),
|
||||
@@ -42,9 +42,9 @@ describe('MCP tool usage in GSD agents', () => {
|
||||
// on every runtime (no explicit registry mapping needed until io.github.* IDs are confirmed).
|
||||
describe('Researcher agents declare mcp__tavily/ref/jina tools (#657)', () => {
|
||||
const researcherAgents = [
|
||||
path.join(__dirname, '..', 'agents', 'gsd-project-researcher.md'),
|
||||
path.join(__dirname, '..', 'agents', 'gsd-phase-researcher.md'),
|
||||
path.join(__dirname, '..', 'agents', 'gsd-ui-researcher.md'),
|
||||
path.join(__dirname, '..', 'agents', 'msd-project-researcher.md'),
|
||||
path.join(__dirname, '..', 'agents', 'msd-phase-researcher.md'),
|
||||
path.join(__dirname, '..', 'agents', 'msd-ui-researcher.md'),
|
||||
];
|
||||
|
||||
// Tools that must appear in the tools: frontmatter line of every researcher agent
|
||||
@@ -83,9 +83,9 @@ describe('Researcher agents declare mcp__tavily/ref/jina tools (#657)', () => {
|
||||
// in every researcher agent. This test fails when the two sets diverge (#657 generative-fix).
|
||||
describe('Researcher agent MCP tool set parity: new tools match exa/firecrawl pattern (#657)', () => {
|
||||
const researcherAgents = [
|
||||
path.join(__dirname, '..', 'agents', 'gsd-project-researcher.md'),
|
||||
path.join(__dirname, '..', 'agents', 'gsd-phase-researcher.md'),
|
||||
path.join(__dirname, '..', 'agents', 'gsd-ui-researcher.md'),
|
||||
path.join(__dirname, '..', 'agents', 'msd-project-researcher.md'),
|
||||
path.join(__dirname, '..', 'agents', 'msd-phase-researcher.md'),
|
||||
path.join(__dirname, '..', 'agents', 'msd-ui-researcher.md'),
|
||||
];
|
||||
|
||||
for (const agentFile of researcherAgents) {
|
||||
@@ -122,7 +122,7 @@ describe('Researcher agent MCP tool set parity: new tools match exa/firecrawl pa
|
||||
// Guards against a provider being added to the waterfall + dispatch table
|
||||
// without the matching mcp__<server>__* grant (the perplexity drift). ---
|
||||
describe('researcher Step-C dispatch ↔ tools frontmatter parity (#1284)', () => {
|
||||
const RESEARCHERS = ['gsd-phase-researcher', 'gsd-project-researcher'];
|
||||
const RESEARCHERS = ['msd-phase-researcher', 'msd-project-researcher'];
|
||||
|
||||
function mcpServersIn(text) {
|
||||
const servers = new Set();
|
||||
@@ -173,14 +173,14 @@ describe('researcher Step-C dispatch ↔ tools frontmatter parity (#1284)', () =
|
||||
// --- Regression (#2526): the generalization of the #1284 check above, applied
|
||||
// to EVERY agent and its WHOLE body rather than two researchers and one table.
|
||||
//
|
||||
// gsd-ui-auditor declared `tools: Read, Write, Bash, Grep, Glob, Skill` — no
|
||||
// msd-ui-auditor declared `tools: Read, Write, Bash, Grep, Glob, Skill` — no
|
||||
// mcp__* grant of any kind — while its body presented a
|
||||
// <playwright_mcp_approach> block as the *preferred* capture path. That branch
|
||||
// was unreachable by construction: the availability check had a fixed answer,
|
||||
// the three mcp__playwright__* calls could never dispatch, and the "when
|
||||
// Playwright-MCP is NOT available" fallback was the only branch that ever ran.
|
||||
//
|
||||
// Frontmatter is read through the canonical parser (gsd-core/bin/lib/
|
||||
// Frontmatter is read through the canonical parser (msd-core/bin/lib/
|
||||
// frontmatter.cjs), not a hand-rolled scan, so every valid YAML shape —
|
||||
// inline CSV, block sequence, flow array, quoted scalar, commented-out key —
|
||||
// is handled by construction rather than by accumulating regex special cases.
|
||||
@@ -197,7 +197,7 @@ describe('researcher Step-C dispatch ↔ tools frontmatter parity (#1284)', () =
|
||||
// (`mcp__playwright__navigate`). Bare prose naming a server is not an
|
||||
// invocation and is not flagged.
|
||||
// * A single-character server id is a prose metavariable, not a reference:
|
||||
// gsd-phase-researcher legitimately writes "for any other provider id `X`
|
||||
// msd-phase-researcher legitimately writes "for any other provider id `X`
|
||||
// ... use `mcp__X__*`". Real server ids are longer. (Same false-positive
|
||||
// hazard #1284 avoids by scoping to table rows.)
|
||||
// A MULTI-character placeholder is spelled `mcp__<SERVER>__*` — the
|
||||
@@ -212,7 +212,7 @@ describe('researcher Step-C dispatch ↔ tools frontmatter parity (#1284)', () =
|
||||
// English words that appear throughout agent prose and would be pure noise.
|
||||
// ---
|
||||
describe('agent tools: allowlist covers every documented MCP namespace (#2526)', () => {
|
||||
const { parseFrontmatter, stripFrontmatter } = require('../gsd-core/bin/lib/frontmatter.cjs');
|
||||
const { parseFrontmatter, stripFrontmatter } = require('../msd-core/bin/lib/frontmatter.cjs');
|
||||
const AGENTS_DIR = path.join(__dirname, '..', 'agents');
|
||||
|
||||
// A tool name is `mcp__<server>__<tool>`; `<server>` may contain underscores
|
||||
@@ -325,7 +325,7 @@ describe('agent tools: allowlist covers every documented MCP namespace (#2526)',
|
||||
test('flags the #2526 shape: MCP block under an MCP-less allowlist', () => {
|
||||
assert.deepStrictEqual(
|
||||
ungrantedServers(agent(
|
||||
['name: gsd-ui-auditor', 'tools: Read, Write, Bash, Grep, Glob, Skill'],
|
||||
['name: msd-ui-auditor', 'tools: Read, Write, Bash, Grep, Glob, Skill'],
|
||||
['Check whether `mcp__playwright__*` tools are available in this session.',
|
||||
'mcp__playwright__navigate(url="http://localhost:3000")'])),
|
||||
['playwright']);
|
||||
|
||||
Reference in New Issue
Block a user