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:
@@ -4,9 +4,9 @@
|
||||
* quick-batch.test.cjs — Behavioral tests for quick-batch core primitives
|
||||
* (#3675, epic #3344, ADR-1239 "Quick-batch binding").
|
||||
*
|
||||
* Module: gsd-core/bin/lib/quick-batch.cjs (compiled from src/quick-batch.cts)
|
||||
* Module: msd-core/bin/lib/quick-batch.cjs (compiled from src/quick-batch.cts)
|
||||
*
|
||||
* Test matrix: `.gsd/phase/feat-3675-quick-batch-core-primitives/50-test-matrix.md`.
|
||||
* Test matrix: `.msd/phase/feat-3675-quick-batch-core-primitives/50-test-matrix.md`.
|
||||
* This file covers every row EXCEPT the five property-based rows (15, 26, 30,
|
||||
* 32, 33), which live in quick-batch.property.test.cjs.
|
||||
*
|
||||
@@ -36,20 +36,20 @@ const {
|
||||
completeQuickItem,
|
||||
hasQuickTaskRow,
|
||||
updateBatchItems,
|
||||
} = require('../gsd-core/bin/lib/quick-batch.cjs');
|
||||
} = require('../msd-core/bin/lib/quick-batch.cjs');
|
||||
|
||||
const { auditOpenArtifacts } = require('../gsd-core/bin/lib/audit.cjs');
|
||||
const { appendQuickTaskRow } = require('../gsd-core/bin/lib/markdown-table.cjs');
|
||||
const { auditOpenArtifacts } = require('../msd-core/bin/lib/audit.cjs');
|
||||
const { appendQuickTaskRow } = require('../msd-core/bin/lib/markdown-table.cjs');
|
||||
const { makeFakeClock } = require('./helpers/clock.cjs');
|
||||
const { runGsdTools, cleanup } = require('./helpers.cjs');
|
||||
const { runMsdTools, cleanup } = require('./helpers.cjs');
|
||||
|
||||
// #3677: crash-window duplicate-dispatch guard — combines resumeBatch (this
|
||||
// module) with filterAlreadyExecuted (the pure decision extracted into
|
||||
// quick-batch-dispatch.cts) and a REAL on-disk SUMMARY.md, the same three
|
||||
// pieces worktree-dispatch.md's Step 6 wires together at runtime.
|
||||
const { filterAlreadyExecuted } = require('../gsd-core/bin/lib/quick-batch-dispatch.cjs');
|
||||
const { generateSlugInternal } = require('../gsd-core/bin/lib/core-utils.cjs');
|
||||
const { planningPaths } = require('../gsd-core/bin/lib/planning-workspace.cjs');
|
||||
const { filterAlreadyExecuted } = require('../msd-core/bin/lib/quick-batch-dispatch.cjs');
|
||||
const { generateSlugInternal } = require('../msd-core/bin/lib/core-utils.cjs');
|
||||
const { planningPaths } = require('../msd-core/bin/lib/planning-workspace.cjs');
|
||||
|
||||
/**
|
||||
* A single `mkfifo` subprocess call, near-instant. Distinct from
|
||||
@@ -765,7 +765,7 @@ describe('quick-batch: exactly-once STATE completion', () => {
|
||||
// additionally check for an on-disk SUMMARY.md via filterAlreadyExecuted.
|
||||
// Real fixture (real BATCH.json via createBatch, real SUMMARY.md file on
|
||||
// disk, real resumeBatch call), not a prose/structural proxy — see
|
||||
// `.gsd/phase/feat-3677-quick-batch-hardening-acceptance/40-design.md` §1.
|
||||
// `.msd/phase/feat-3677-quick-batch-hardening-acceptance/40-design.md` §1.
|
||||
|
||||
describe('quick-batch: crash-window duplicate-dispatch guard (#3677) — SUMMARY.md written but BATCH.json still pending', () => {
|
||||
test('resumeBatch alone still reports the crashed item eligible; filterAlreadyExecuted (fed a REAL on-disk SUMMARY.md check) excludes it from spawnEligible', () => {
|
||||
@@ -894,13 +894,13 @@ describe('quick-batch: independence from scanQuickTasks, regression on existing
|
||||
}
|
||||
});
|
||||
|
||||
test('row 35: ordinary (non-batch) `gsd-tools init quick` / appendQuickTaskRow paths are unmodified', () => {
|
||||
test('row 35: ordinary (non-batch) `msd-tools init quick` / appendQuickTaskRow paths are unmodified', () => {
|
||||
const dir = mkTmpProject();
|
||||
try {
|
||||
// Exercised through the SAME underlying CLI entry point (`init quick` ->
|
||||
// cmdInitQuick) that fast.md/quick.md use — quick-batch.cts adds a NEW
|
||||
// caller of the quick-id grammar; it never touches this existing path.
|
||||
const result = runGsdTools('init quick "a regular quick task"', dir);
|
||||
const result = runMsdTools('init quick "a regular quick task"', dir);
|
||||
assert.equal(result.success, true, `Command failed: ${result.error}`);
|
||||
const parsed = JSON.parse(result.output);
|
||||
assert.match(parsed.quick_id, /^\d{6}-[0-9a-z]{3}$/);
|
||||
@@ -1100,7 +1100,7 @@ describe('quick-batch: hasQuickTaskRow idempotency primitive', () => {
|
||||
// and that module is already at its 2-file cap
|
||||
// (quick-batch.test.cjs + quick-batch.property.test.cjs) — every existing
|
||||
// test above this point is untouched, only new coverage is appended.
|
||||
// Design doc: `.gsd/phase/feat-3676-quick-batch-command-workflow/40-design.md`
|
||||
// Design doc: `.msd/phase/feat-3676-quick-batch-command-workflow/40-design.md`
|
||||
// (row 15, rows 22-23). Test matrix rows 22-24.
|
||||
|
||||
describe('quick-batch: updateBatchItems — basic mutation + persistence', () => {
|
||||
|
||||
Reference in New Issue
Block a user