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:
@@ -2,14 +2,14 @@
|
||||
|
||||
/**
|
||||
* Property-based tests for src/workflow-fragments.cts (compiled to
|
||||
* gsd-core/bin/lib/workflow-fragments.cjs) — issue #2930 (epic #1671
|
||||
* msd-core/bin/lib/workflow-fragments.cjs) — issue #2930 (epic #1671
|
||||
* Phase 3). Covers 50-test-matrix.md rows 30-31.
|
||||
*
|
||||
* Document-shaped generators (CONTRIBUTING.md "Fixture provenance #2371",
|
||||
* mirroring tests/context-predicates.property.test.cjs): these generators
|
||||
* build arbitrary markdown documents out of prose lines, fenced blocks
|
||||
* (whose contents — including marker LOOKALIKES — are always literal), and
|
||||
* well-formed `gsd:section` marker pairs. They are NOT seeded from this
|
||||
* well-formed `msd:section` marker pairs. They are NOT seeded from this
|
||||
* module's own `composeWorkflow`/`renderFragments` — document shape (which
|
||||
* lines exist, in what order, wrapped in what fences) is generated
|
||||
* independently; only the STRIPPED-EXPECTATION bookkeeping (which line
|
||||
@@ -25,7 +25,7 @@ const { describe, test } = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const fc = require('./helpers/fast-check-setup.cjs');
|
||||
|
||||
const { parseWorkflowSections, composeWorkflow, WHEN_VOCABULARY } = require('../gsd-core/bin/lib/workflow-fragments.cjs');
|
||||
const { parseWorkflowSections, composeWorkflow, WHEN_VOCABULARY } = require('../msd-core/bin/lib/workflow-fragments.cjs');
|
||||
|
||||
// Derived from the module's own frozen WHEN_VOCABULARY (DEFECT.GENERATIVE-FIX,
|
||||
// chore/2930 review): a hardcoded copy here would silently desync from the
|
||||
@@ -44,14 +44,14 @@ const whenArb = fc.constantFrom(...WHEN_VALUES);
|
||||
// A prose line that LOOKS marker-adjacent but is never a real marker: a
|
||||
// heading, a blockquote, a table row, a mid-line backticked mention (extra
|
||||
// prose before/after disqualifies it structurally), or a one-line
|
||||
// `gsd:loop-host` comment (a different marker family entirely).
|
||||
// `msd:loop-host` comment (a different marker family entirely).
|
||||
const proseLineArb = fc.oneof(
|
||||
proseTextArb,
|
||||
proseTextArb.map((t) => `# ${t}`),
|
||||
proseTextArb.map((t) => `> ${t}`),
|
||||
proseTextArb.map((t) => `| ${t} | cell |`),
|
||||
idArb.map((id) => `See \`<!-- gsd:section id="${id}" when="always" -->\` for syntax.`),
|
||||
fc.constant('<!-- gsd:loop-host foo -->'),
|
||||
idArb.map((id) => `See \`<!-- msd:section id="${id}" when="always" -->\` for syntax.`),
|
||||
fc.constant('<!-- msd:loop-host foo -->'),
|
||||
);
|
||||
|
||||
const fenceTickArb = fc.constantFrom('```', '~~~', '````');
|
||||
@@ -66,8 +66,8 @@ function fenceBlockArb() {
|
||||
fc.array(
|
||||
fc.oneof(
|
||||
proseLineArb,
|
||||
idArb.map((id) => `<!-- gsd:section id="${id}" when="always" -->`),
|
||||
fc.constant('<!-- /gsd:section -->'),
|
||||
idArb.map((id) => `<!-- msd:section id="${id}" when="always" -->`),
|
||||
fc.constant('<!-- /msd:section -->'),
|
||||
),
|
||||
{ minLength: 0, maxLength: 4 },
|
||||
),
|
||||
@@ -87,7 +87,7 @@ function markerBodyArb() {
|
||||
}
|
||||
|
||||
// A top-level document block: a single prose line, a whole fenced block, or
|
||||
// a well-formed gsd:section marker pair (id assigned by the assembler for
|
||||
// a well-formed msd:section marker pair (id assigned by the assembler for
|
||||
// document-wide uniqueness — see documentArb).
|
||||
const blockArb = fc.oneof(
|
||||
{ arbitrary: proseLineArb.map((line) => ({ kind: 'prose', lines: [line] })), weight: 3 },
|
||||
@@ -119,10 +119,10 @@ function documentArb() {
|
||||
const id = `sec${counter}`;
|
||||
counter += 1;
|
||||
markerLineIndexes.add(allLines.length);
|
||||
allLines.push(`<!-- gsd:section id="${id}" when="${block.when}" -->`);
|
||||
allLines.push(`<!-- msd:section id="${id}" when="${block.when}" -->`);
|
||||
allLines.push(...block.body);
|
||||
markerLineIndexes.add(allLines.length);
|
||||
allLines.push('<!-- /gsd:section -->');
|
||||
allLines.push('<!-- /msd:section -->');
|
||||
}
|
||||
// Per-line records, each carrying ITS OWN terminator -- mirrors how
|
||||
// workflow-fragments.cts's own line splitter models termination, so
|
||||
|
||||
Reference in New Issue
Block a user