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,6 +1,6 @@
|
||||
/**
|
||||
* Claude orchestration command router — CLI dispatcher for
|
||||
* `gsd-tools claude-orchestration <subcommand>`.
|
||||
* `msd-tools claude-orchestration <subcommand>`.
|
||||
*
|
||||
* #1143 — thin CLI adapter over the pure `claude-orchestration.cjs` module.
|
||||
* Lets execute-phase (or any orchestrator) invoke the Workflow-backend
|
||||
@@ -15,8 +15,8 @@
|
||||
* detect-backend [--runtime <id>] [--agent-sdk-version <ver>] [--no-nested-dispatch]
|
||||
* Resolves whether the Workflow backend should activate. Both flags are
|
||||
* OPTIONAL (#2590): `--runtime` falls back to the canonical
|
||||
* `GSD_RUNTIME > config.runtime > 'claude'` chain, and
|
||||
* `--agent-sdk-version` to `GSD_AGENT_SDK_VERSION` then the installed
|
||||
* `MSD_RUNTIME > config.runtime > 'claude'` chain, and
|
||||
* `--agent-sdk-version` to `MSD_AGENT_SDK_VERSION` then the installed
|
||||
* @anthropic-ai/claude-agent-sdk version. Reads the
|
||||
* `claude_orchestration.*` keys from .planning/config.json. Emits
|
||||
* { available, backend, reason }.
|
||||
@@ -67,7 +67,7 @@ interface RouterOpts {
|
||||
|
||||
function usage(error: (msg: string, reason?: string) => void): void {
|
||||
error(
|
||||
'Usage: gsd-tools claude-orchestration <detect-backend|emit-workflow|resolve-wave-dispatch> [...]\n' +
|
||||
'Usage: msd-tools claude-orchestration <detect-backend|emit-workflow|resolve-wave-dispatch> [...]\n' +
|
||||
' detect-backend [--runtime <id>] [--agent-sdk-version <ver>] [--no-nested-dispatch]\n' +
|
||||
' emit-workflow --waves <path> --run-id <id> [--phase-dir <dir>] [--budget <n>] [--executor-model <id>]\n' +
|
||||
' resolve-wave-dispatch --waves <path> --run-id <id> [--runtime <id>] [--agent-sdk-version <ver>] [--no-nested-dispatch] [--phase-dir <dir>] [--budget <n>] [--executor-model <id>]',
|
||||
@@ -150,8 +150,8 @@ function resolveInstalledAgentSdkVersion(cwd: string): string | undefined {
|
||||
* and `resolve-wave-dispatch` pass to the pure detection seam.
|
||||
*/
|
||||
function resolveDetectionArgs(args: string[], cwd?: string): { runtimeId: string; hostIntegration: { dispatch: { nested: boolean; background: boolean } }; agentSdkVersion: string | undefined } {
|
||||
// #2590: the old fallback chain was `--runtime > GSD_RUNTIME > 'unknown'`,
|
||||
// diverging from the canonical `GSD_RUNTIME > config.runtime > 'claude'` used
|
||||
// #2590: the old fallback chain was `--runtime > MSD_RUNTIME > 'unknown'`,
|
||||
// diverging from the canonical `MSD_RUNTIME > config.runtime > 'claude'` used
|
||||
// by runtime-slash.resolveRuntime — so ANY manual invocation without
|
||||
// --runtime reported `runtime_not_claude` on a perfectly ordinary Claude
|
||||
// project. Delegate to the canonical resolver instead of re-deriving it.
|
||||
@@ -159,7 +159,7 @@ function resolveDetectionArgs(args: string[], cwd?: string): { runtimeId: string
|
||||
// Explicit flag wins (lets a caller pin a version); then the environment;
|
||||
// then the actually-installed SDK.
|
||||
const agentSdkVersion = argValue(args, '--agent-sdk-version')
|
||||
|| process.env['GSD_AGENT_SDK_VERSION']
|
||||
|| process.env['MSD_AGENT_SDK_VERSION']
|
||||
|| resolveInstalledAgentSdkVersion(cwd || process.cwd());
|
||||
const noNested = args.includes('--no-nested-dispatch');
|
||||
const hostIntegration = noNested ? { dispatch: { nested: false, background: true } } : CAPABLE_HOST;
|
||||
@@ -167,7 +167,7 @@ function resolveDetectionArgs(args: string[], cwd?: string): { runtimeId: string
|
||||
}
|
||||
|
||||
/**
|
||||
* #2686 — resolve the `gsd-executor` model this dispatch should carry.
|
||||
* #2686 — resolve the `msd-executor` model this dispatch should carry.
|
||||
*
|
||||
* Defaults from the project config rather than requiring a flag. The Workflow
|
||||
* backend previously emitted no model at all, so `model_overrides` /
|
||||
@@ -184,7 +184,7 @@ function resolveExecutorModel(args: string[], cwd: string): string | undefined {
|
||||
const pinned = argValue(args, '--executor-model');
|
||||
if (pinned !== undefined) return pinned;
|
||||
try {
|
||||
const resolved = modelResolver.resolveModelInternal(cwd, 'gsd-executor') as unknown;
|
||||
const resolved = modelResolver.resolveModelInternal(cwd, 'msd-executor') as unknown;
|
||||
return typeof resolved === 'string' ? resolved : undefined;
|
||||
} catch {
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user