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

@@ -2,14 +2,14 @@
'use strict';
/**
* Generates the schema-derived MARKED REGIONS inside `gsd-core/templates/state.md`
* Generates the schema-derived MARKED REGIONS inside `msd-core/templates/state.md`
* and the five `docs/{,ja-JP/,zh-CN/,ko-KR/,pt-BR/}reference/state-md.md` pages
* from `STATE_FIELD_SCHEMA` (`src/state-md-schema.cts`, ADR-3473 §8.8, #3873).
*
* WHY THIS EXISTS. Four hand-maintained declarations of "which STATE.md keys
* exist and what they carry" already disagreed (see `src/state-md-schema.cts`'s
* own docstring for the `last_activity` case). Two of the SIX places named in
* `.gsd/phase/feat-3873-state-md-schema/40-design.md`'s table are documents,
* `.msd/phase/feat-3873-state-md-schema/40-design.md`'s table are documents,
* not code: the shipped template and the reference docs. This generator is
* their half of the consolidation. `FIELD_CLASSIFICATION` /
* `FRONTMATTER_BODY_SOURCE` / `FRONTMATTER_KEY_TO_BODY_LABEL` project from the
@@ -26,7 +26,7 @@
*
* Two regions are declared today:
* - `frontmatter` — the initial YAML frontmatter block in
* `gsd-core/templates/state.md`, the block a new project starts from.
* `msd-core/templates/state.md`, the block a new project starts from.
* - `status-lifecycle` — the `### Status lifecycle (ADR-2207)` section
* documenting the `status` field's lifecycle. This is the section
* ISSUE #3873's own design doc found missing from all four locale
@@ -78,7 +78,7 @@ const path = require('node:path');
const { ExitError, runMain } = require('./lib/cli-exit.cjs');
const REPO_ROOT = path.resolve(__dirname, '..');
const SCHEMA_LIB_PATH = path.join(REPO_ROOT, 'gsd-core', 'bin', 'lib', 'state-md-schema.cjs');
const SCHEMA_LIB_PATH = path.join(REPO_ROOT, 'msd-core', 'bin', 'lib', 'state-md-schema.cjs');
const MARKER_TAG = 'STATE-MD-SCHEMA';
@@ -101,7 +101,7 @@ const REASON = Object.freeze({
* only the template carries `frontmatter`.
*/
const TARGETS = Object.freeze([
{ key: 'template', relPath: path.join('gsd-core', 'templates', 'state.md'), regions: ['frontmatter'] },
{ key: 'template', relPath: path.join('msd-core', 'templates', 'state.md'), regions: ['frontmatter'] },
{ key: 'en', relPath: path.join('docs', 'reference', 'state-md.md'), locale: 'en', regions: ['status-lifecycle', 'cardinality'] },
{ key: 'ja-JP', relPath: path.join('docs', 'ja-JP', 'reference', 'state-md.md'), locale: 'ja-JP', regions: ['status-lifecycle', 'cardinality'] },
{ key: 'zh-CN', relPath: path.join('docs', 'zh-CN', 'reference', 'state-md.md'), locale: 'zh-CN', regions: ['status-lifecycle', 'cardinality'] },
@@ -118,7 +118,7 @@ function endMarker(region) {
return `<!-- ${MARKER_TAG}:END:${region} -->`;
}
// ─── Frontmatter region (gsd-core/templates/state.md) ──────────────────────
// ─── Frontmatter region (msd-core/templates/state.md) ──────────────────────
/**
* The subset of `STATE_FIELD_SCHEMA` keys a FRESH project's initial STATE.md
@@ -126,7 +126,7 @@ function endMarker(region) {
* future schema change drops one of these keys, rendering throws rather than
* silently emitting a template field the schema no longer recognizes.
*/
const TEMPLATE_FRONTMATTER_FIELDS = Object.freeze(['gsd_state_version', 'status', 'progress']);
const TEMPLATE_FRONTMATTER_FIELDS = Object.freeze(['msd_state_version', 'status', 'progress']);
function renderFrontmatterRegion(schema) {
for (const field of TEMPLATE_FRONTMATTER_FIELDS) {
@@ -149,7 +149,7 @@ function renderFrontmatterRegion(schema) {
return [
'```markdown',
'---',
"gsd_state_version: '1.0' # placeholder; syncStateFrontmatter overwrites on first state.* call",
"msd_state_version: '1.0' # placeholder; syncStateFrontmatter overwrites on first state.* call",
'status: planning',
'progress:',
' total_phases: 0',