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,4 +1,4 @@
|
||||
// Guards the dispatch model-pin VALUE policy in gsd-core/bin/gsd-tools.cjs
|
||||
// Guards the dispatch model-pin VALUE policy in msd-core/bin/msd-tools.cjs
|
||||
// (`resolveDispatchModelPin`, `MODEL_ID_CHARSET_RE`, `MODEL_ID_CHARSET_BODY`,
|
||||
// `MODEL_ID_SANITIZE_STRIP_RE`, `MODEL_ID_MAX_LENGTH`):
|
||||
//
|
||||
@@ -23,14 +23,14 @@ const { describe, test } = require('node:test');
|
||||
const assert = require('node:assert/strict');
|
||||
const fc = require('fast-check');
|
||||
|
||||
const gsdTools = require('../gsd-core/bin/gsd-tools.cjs');
|
||||
const msdTools = require('../msd-core/bin/msd-tools.cjs');
|
||||
const {
|
||||
resolveDispatchModelPin,
|
||||
MODEL_ID_CHARSET_RE,
|
||||
MODEL_ID_CHARSET_BODY,
|
||||
MODEL_ID_SANITIZE_STRIP_RE,
|
||||
MODEL_ID_MAX_LENGTH,
|
||||
} = gsdTools;
|
||||
} = msdTools;
|
||||
|
||||
/** Capture process.stderr.write() calls made during `fn()`. */
|
||||
function captureStderr(fn) {
|
||||
@@ -74,7 +74,7 @@ describe('#3714 follow-up: dispatch model-pin VALUE policy', () => {
|
||||
const stderr = captureStderr(() => {
|
||||
assert.strictEqual(resolveDispatchModelPin(`agent-${bad}`, bad), undefined);
|
||||
});
|
||||
assert.match(stderr, /gsd: warning/);
|
||||
assert.match(stderr, /msd: warning/);
|
||||
assert.match(stderr, /unsafe characters/);
|
||||
}
|
||||
});
|
||||
@@ -84,7 +84,7 @@ describe('#3714 follow-up: dispatch model-pin VALUE policy', () => {
|
||||
const stderr = captureStderr(() => {
|
||||
assert.strictEqual(resolveDispatchModelPin(`agent-${bad}`, bad), undefined);
|
||||
});
|
||||
assert.match(stderr, /gsd: warning/);
|
||||
assert.match(stderr, /msd: warning/);
|
||||
assert.match(stderr, /looks like a flag\/option, not a model id \(leading "-"\)/);
|
||||
assert.doesNotMatch(stderr, /unsafe characters/);
|
||||
}
|
||||
@@ -95,7 +95,7 @@ describe('#3714 follow-up: dispatch model-pin VALUE policy', () => {
|
||||
const stderr = captureStderr(() => {
|
||||
assert.strictEqual(resolveDispatchModelPin(`agent-x`, bad), undefined);
|
||||
});
|
||||
assert.match(stderr, /gsd: warning/);
|
||||
assert.match(stderr, /msd: warning/);
|
||||
assert.match(stderr, /unsafe characters/);
|
||||
assert.doesNotMatch(stderr, /flag\/option/);
|
||||
}
|
||||
@@ -119,7 +119,7 @@ describe('#3714 follow-up: dispatch model-pin VALUE policy', () => {
|
||||
stderr = captureStderr(() => {
|
||||
assert.strictEqual(resolveDispatchModelPin('agent-201', at201), undefined);
|
||||
});
|
||||
assert.match(stderr, /gsd: warning/);
|
||||
assert.match(stderr, /msd: warning/);
|
||||
assert.match(stderr, /exceeds the maximum model id length \(200 characters\)/);
|
||||
});
|
||||
|
||||
@@ -166,12 +166,12 @@ describe('#3714 follow-up: dispatch model-pin VALUE policy', () => {
|
||||
assert.strictEqual(sanitized, value, `"${ch}" is accepted but was sanitized away`);
|
||||
}
|
||||
// Assert the literal class body above EQUALS the exported production
|
||||
// value, so this test fails if gsd-tools.cjs's MODEL_ID_CHARSET_BODY is
|
||||
// value, so this test fails if msd-tools.cjs's MODEL_ID_CHARSET_BODY is
|
||||
// edited (e.g. widened) without updating this test's expectations.
|
||||
assert.strictEqual(
|
||||
acceptedNonLeadingChars,
|
||||
MODEL_ID_CHARSET_BODY,
|
||||
'this test\'s expected charset has drifted from gsd-tools.cjs\'s MODEL_ID_CHARSET_BODY',
|
||||
'this test\'s expected charset has drifted from msd-tools.cjs\'s MODEL_ID_CHARSET_BODY',
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user