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,7 +6,7 @@
|
||||
* WHY THIS FILE EXISTS
|
||||
* ────────────────────
|
||||
* A scenario is a small JSON document describing a sequence of loop-host
|
||||
* points, artifacts an "agent" would write at each point, and `gsd-tools`
|
||||
* points, artifacts an "agent" would write at each point, and `msd-tools`
|
||||
* invocations to run there. `loadScenario` validates the JSON shape so a
|
||||
* malformed scenario fails fast and loud (never a silent no-op walk);
|
||||
* `runScenario` drives a `LoopWalk` through the steps, evaluating both
|
||||
@@ -19,7 +19,7 @@
|
||||
const fs = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const { resolveRef } = require('./fixtures/index.cjs');
|
||||
const { LOOP_HOST_CONTRACT } = require('../../gsd-core/bin/lib/loop-host-contract.cjs');
|
||||
const { LOOP_HOST_CONTRACT } = require('../../msd-core/bin/lib/loop-host-contract.cjs');
|
||||
const { MUTATIONS, apply, NOOP } = require('./mutations.cjs');
|
||||
const { resolveWithin, isAbsoluteLike, hasTraversalSegment } = require('./paths.cjs');
|
||||
|
||||
@@ -309,7 +309,7 @@ function evaluateExpectations(expectations, result) {
|
||||
* keep?: boolean,
|
||||
* }} opts `keep` (default `false`) preserves the walk's temp project instead
|
||||
* of removing it in `finally` — see `LoopWalk#cleanup`. Also honored via
|
||||
* the `GSD_QA_KEEP=1` environment variable (an `||`, not an override: either
|
||||
* the `MSD_QA_KEEP=1` environment variable (an `||`, not an override: either
|
||||
* one being truthy keeps the tree), since a CI operator invoking this
|
||||
* through a shell cannot pass a JS option.
|
||||
* @returns {{
|
||||
@@ -328,7 +328,7 @@ function runScenario(scenario, opts) {
|
||||
if (typeof runOracles !== 'function') {
|
||||
throw new Error('runScenario: opts.runOracles (function) is required');
|
||||
}
|
||||
const shouldKeep = keep || process.env.GSD_QA_KEEP === '1';
|
||||
const shouldKeep = keep || process.env.MSD_QA_KEEP === '1';
|
||||
|
||||
const walk = LoopWalk.create({ fixture: scenario.fixture });
|
||||
/** @type {object[]} */
|
||||
@@ -405,7 +405,7 @@ function runScenario(scenario, opts) {
|
||||
const readOnly = !!step.readOnly;
|
||||
const runs = Array.isArray(step.run) ? step.run : [];
|
||||
// `step.jsonErrors === false` opts a step into the human-invocation
|
||||
// path (`gsd_run <cmd>` without `--json-errors`); any other value
|
||||
// path (`msd_run <cmd>` without `--json-errors`); any other value
|
||||
// (including undefined) keeps `LoopWalk#run`'s own default of true.
|
||||
const jsonErrorMode = step.jsonErrors !== false;
|
||||
const runOptions = { jsonErrors: jsonErrorMode };
|
||||
|
||||
Reference in New Issue
Block a user