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:
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* emitted-sizes.test.cjs — matrix section B (#2931 `.gsd/phase/chore-2931-emitted-byte-caps/50-test-matrix.md`).
|
||||
* emitted-sizes.test.cjs — matrix section B (#2931 `.msd/phase/chore-2931-emitted-byte-caps/50-test-matrix.md`).
|
||||
*
|
||||
* Covers `buildEmittedSizes` (tests/helpers/install-shared.cjs), the sibling of
|
||||
* `buildParityManifest` that measures emitted-artifact BYTE SIZES over the same
|
||||
@@ -61,7 +61,7 @@ after(() => {
|
||||
* these synthetic cases).
|
||||
*/
|
||||
function makeSyntheticConfig(filesOrFactory) {
|
||||
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'gsd-emitted-sizes-'));
|
||||
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'msd-emitted-sizes-'));
|
||||
// `filesOrFactory` may be a `(root) => files` factory for callers whose
|
||||
// file CONTENT must embed the just-created temp root path (e.g. simulating
|
||||
// an `@`-reference). It cannot be the root's own destructured binding —
|
||||
@@ -141,12 +141,12 @@ test('normalizesConfigRootBeforeCounting', (t) => {
|
||||
// agents/commands/workflows do) must be built from the `root` the
|
||||
// factory receives, not a `root` this destructuring is still declaring.
|
||||
const { configDir, root } = makeSyntheticConfig((r) => ({
|
||||
'artifact.md': `see @${r}/gsd-core/CONTEXT.md for details\n`,
|
||||
'artifact.md': `see @${r}/msd-core/CONTEXT.md for details\n`,
|
||||
}));
|
||||
t.after(() => cleanup(root));
|
||||
|
||||
const sizes = buildEmittedSizes(configDir, root);
|
||||
const expectedNormalized = `see @<HOME>/gsd-core/CONTEXT.md for details\n`;
|
||||
const expectedNormalized = `see @<HOME>/msd-core/CONTEXT.md for details\n`;
|
||||
|
||||
assert.strictEqual(sizes['artifact.md'], Buffer.byteLength(expectedNormalized, 'utf8'));
|
||||
// The raw on-disk byte count (root not collapsed to '<HOME>') must differ
|
||||
|
||||
Reference in New Issue
Block a user