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,14 +6,14 @@ const fs = require('node:fs');
|
||||
const os = require('node:os');
|
||||
const path = require('node:path');
|
||||
|
||||
const { createRuntimeArtifactInstallPlan } = require('../gsd-core/bin/lib/runtime-artifact-install-plan.cjs');
|
||||
const { createRuntimeArtifactInstallPlan } = require('../msd-core/bin/lib/runtime-artifact-install-plan.cjs');
|
||||
const { cleanup } = require('./helpers.cjs');
|
||||
|
||||
function kind(name, destSubpath, stagedDir, calls) {
|
||||
return {
|
||||
kind: name,
|
||||
destSubpath,
|
||||
prefix: 'gsd-',
|
||||
prefix: 'msd-',
|
||||
stage: (resolvedProfile) => {
|
||||
calls.push([name, resolvedProfile.name]);
|
||||
return stagedDir;
|
||||
@@ -23,7 +23,7 @@ function kind(name, destSubpath, stagedDir, calls) {
|
||||
|
||||
describe('createRuntimeArtifactInstallPlan', () => {
|
||||
test('stages layout kinds in order and projects rewritten source dirs', () => {
|
||||
const configDir = path.join(os.tmpdir(), 'gsd-plan-config');
|
||||
const configDir = path.join(os.tmpdir(), 'msd-plan-config');
|
||||
const calls = [];
|
||||
const rewriteCalls = [];
|
||||
const layout = {
|
||||
@@ -79,7 +79,7 @@ describe('createRuntimeArtifactInstallPlan', () => {
|
||||
});
|
||||
|
||||
test('returns stage_failed when a layout kind stage adapter throws', () => {
|
||||
const configDir = path.join(os.tmpdir(), 'gsd-plan-config');
|
||||
const configDir = path.join(os.tmpdir(), 'msd-plan-config');
|
||||
const layout = {
|
||||
runtime: 'claude',
|
||||
configDir,
|
||||
@@ -109,7 +109,7 @@ describe('createRuntimeArtifactInstallPlan', () => {
|
||||
});
|
||||
|
||||
test('returns rewrite_failed with prior cleanup obligations when conversion throws', () => {
|
||||
const configDir = path.join(os.tmpdir(), 'gsd-plan-config');
|
||||
const configDir = path.join(os.tmpdir(), 'msd-plan-config');
|
||||
const calls = [];
|
||||
const layout = {
|
||||
runtime: 'claude',
|
||||
@@ -138,8 +138,8 @@ describe('createRuntimeArtifactInstallPlan', () => {
|
||||
});
|
||||
|
||||
test('uses real command rewrite seam by default', (t) => {
|
||||
const stagedCommands = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-install-plan-commands-'));
|
||||
const configDir = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-install-plan-config-'));
|
||||
const stagedCommands = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-install-plan-commands-'));
|
||||
const configDir = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-install-plan-config-'));
|
||||
t.after(() => {
|
||||
cleanup(stagedCommands);
|
||||
cleanup(configDir);
|
||||
|
||||
Reference in New Issue
Block a user