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,10 +1,10 @@
|
||||
/**
|
||||
* Quick-Batch command router — CLI subcommand dispatcher for
|
||||
* `gsd-tools quick-batch` (#3676, Phase 4 of epic #3344 / ADR-1239).
|
||||
* `msd-tools quick-batch` (#3676, Phase 4 of epic #3344 / ADR-1239).
|
||||
*
|
||||
* Quick-batch is a first-party, always-on command family (like `/gsd:quick`,
|
||||
* Quick-batch is a first-party, always-on command family (like `/msd:quick`,
|
||||
* which has no capability-registry entry), so this router is wired directly
|
||||
* into `HOST_COMMAND_ROUTERS` (`gsd-core/bin/gsd-tools.cjs`) — NOT the opt-in
|
||||
* into `HOST_COMMAND_ROUTERS` (`msd-core/bin/msd-tools.cjs`) — NOT the opt-in
|
||||
* capability-registry/`activationKey` path `graphify` uses. Shape follows
|
||||
* `graphify-command-router.cts` (thin `routeHubCommandFamily` wrapper), which
|
||||
* gives the Hub's `makeUnknownCommand` handling for free on an unknown
|
||||
@@ -21,7 +21,7 @@
|
||||
* convention `graphify-command-router.cts` uses.
|
||||
*
|
||||
* ADR-457 build-at-publish: compiled by tsc to
|
||||
* gsd-core/bin/lib/quick-batch-command-router.cjs.
|
||||
* msd-core/bin/lib/quick-batch-command-router.cjs.
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
@@ -134,7 +134,7 @@ function routeQuickBatchCommand({ args, cwd, raw, error, _quickBatch, _quickBatc
|
||||
create: () => {
|
||||
const filePath = argValue(args, '--file');
|
||||
if (!filePath) {
|
||||
return makeInvalidArgs('--file', 'Usage: gsd-tools quick-batch create --file <path> [--base-revision <sha>] [--options <json>]', ERROR_REASON.USAGE);
|
||||
return makeInvalidArgs('--file', 'Usage: msd-tools quick-batch create --file <path> [--base-revision <sha>] [--options <json>]', ERROR_REASON.USAGE);
|
||||
}
|
||||
const parsed = qb.parseTaskListFromFile(cwd, filePath) as { ok: boolean; reason?: string; value?: Array<{ description: string }> };
|
||||
if (!parsed.ok) {
|
||||
@@ -155,7 +155,7 @@ function routeQuickBatchCommand({ args, cwd, raw, error, _quickBatch, _quickBatc
|
||||
update: () => {
|
||||
const batchId = argValue(args, '--batch');
|
||||
if (!batchId) {
|
||||
return makeInvalidArgs('--batch', 'Usage: gsd-tools quick-batch update --batch <id> --updates <json>', ERROR_REASON.USAGE);
|
||||
return makeInvalidArgs('--batch', 'Usage: msd-tools quick-batch update --batch <id> --updates <json>', ERROR_REASON.USAGE);
|
||||
}
|
||||
const updatesResult = parseJsonArg<unknown[]>(argValue(args, '--updates'), '--updates');
|
||||
if (!updatesResult.ok) return makeInvalidArgs('--updates', updatesResult.reason, ERROR_REASON.USAGE);
|
||||
@@ -165,7 +165,7 @@ function routeQuickBatchCommand({ args, cwd, raw, error, _quickBatch, _quickBatc
|
||||
resume: () => {
|
||||
const batchId = argValue(args, '--batch');
|
||||
if (!batchId) {
|
||||
return makeInvalidArgs('--batch', 'Usage: gsd-tools quick-batch resume --batch <id> [--current-base-revision <sha>]', ERROR_REASON.USAGE);
|
||||
return makeInvalidArgs('--batch', 'Usage: msd-tools quick-batch resume --batch <id> [--current-base-revision <sha>]', ERROR_REASON.USAGE);
|
||||
}
|
||||
const currentBaseRevision = argValue(args, '--current-base-revision');
|
||||
emit(qb.resumeBatch(cwd, batchId, currentBaseRevision !== undefined ? { currentBaseRevision } : {}));
|
||||
@@ -180,7 +180,7 @@ function routeQuickBatchCommand({ args, cwd, raw, error, _quickBatch, _quickBatc
|
||||
if (!batchId || !quickId || !description || !date || !commit) {
|
||||
return makeInvalidArgs(
|
||||
'--batch/--quick-id/--description/--date/--commit',
|
||||
'Usage: gsd-tools quick-batch complete --batch <id> --quick-id <id> --description <t> --date <d> --commit <sha> [--directory <dir>]',
|
||||
'Usage: msd-tools quick-batch complete --batch <id> --quick-id <id> --description <t> --date <d> --commit <sha> [--directory <dir>]',
|
||||
ERROR_REASON.USAGE,
|
||||
);
|
||||
}
|
||||
@@ -196,7 +196,7 @@ function routeQuickBatchCommand({ args, cwd, raw, error, _quickBatch, _quickBatc
|
||||
if (jobsRaw === undefined || !Number.isFinite(taskCount) || !Number.isFinite(capacity)) {
|
||||
return makeInvalidArgs(
|
||||
'--jobs/--task-count/--capacity',
|
||||
'Usage: gsd-tools quick-batch effective-concurrency --jobs <auto|N> --task-count <N> --capacity <N> --isolation <str> [--mutating]',
|
||||
'Usage: msd-tools quick-batch effective-concurrency --jobs <auto|N> --task-count <N> --capacity <N> --isolation <str> [--mutating]',
|
||||
ERROR_REASON.USAGE,
|
||||
);
|
||||
}
|
||||
@@ -225,7 +225,7 @@ function routeQuickBatchCommand({ args, cwd, raw, error, _quickBatch, _quickBatc
|
||||
if (!Number.isFinite(capacity) || !Number.isFinite(currentInFlight)) {
|
||||
return makeInvalidArgs(
|
||||
'--capacity/--in-flight',
|
||||
'Usage: gsd-tools quick-batch spawn-plan --eligible <json-array> --capacity <N> --in-flight <N> [--refused <json-array>]',
|
||||
'Usage: msd-tools quick-batch spawn-plan --eligible <json-array> --capacity <N> --in-flight <N> [--refused <json-array>]',
|
||||
ERROR_REASON.USAGE,
|
||||
);
|
||||
}
|
||||
@@ -257,7 +257,7 @@ function routeQuickBatchCommand({ args, cwd, raw, error, _quickBatch, _quickBatc
|
||||
if (status !== 'passed' && status !== 'gaps_found' && status !== 'human_needed') {
|
||||
return makeInvalidArgs(
|
||||
'--status',
|
||||
'Usage: gsd-tools quick-batch verification-routing --status <passed|gaps_found|human_needed>',
|
||||
'Usage: msd-tools quick-batch verification-routing --status <passed|gaps_found|human_needed>',
|
||||
ERROR_REASON.USAGE,
|
||||
);
|
||||
}
|
||||
@@ -269,7 +269,7 @@ function routeQuickBatchCommand({ args, cwd, raw, error, _quickBatch, _quickBatc
|
||||
if (kind !== 'merged' && kind !== 'merge_failed' && kind !== 'scope_violation') {
|
||||
return makeInvalidArgs(
|
||||
'--kind',
|
||||
'Usage: gsd-tools quick-batch merge-routing --kind <merged|merge_failed|scope_violation> [--detail <text>]',
|
||||
'Usage: msd-tools quick-batch merge-routing --kind <merged|merge_failed|scope_violation> [--detail <text>]',
|
||||
ERROR_REASON.USAGE,
|
||||
);
|
||||
}
|
||||
@@ -286,7 +286,7 @@ function routeQuickBatchCommand({ args, cwd, raw, error, _quickBatch, _quickBatc
|
||||
if (!worktreePath || !branch || !expectedBase || planContent === undefined) {
|
||||
return makeInvalidArgs(
|
||||
'--worktree-path/--branch/--expected-base/--plan-content',
|
||||
'Usage: gsd-tools quick-batch cleanup-entry --worktree-path <p> --branch <b> --expected-base <b> --plan-content <text> [--agent-id <id>] [--allowed-bases <json-array>]',
|
||||
'Usage: msd-tools quick-batch cleanup-entry --worktree-path <p> --branch <b> --expected-base <b> --plan-content <text> [--agent-id <id>] [--allowed-bases <json-array>]',
|
||||
ERROR_REASON.USAGE,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user