diff --git a/CONTEXT.md b/CONTEXT.md index 3eb142b65..cb9a1a527 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -101,7 +101,7 @@ Module owning SDK-to-`get-shit-done-redux` compatibility policy: legacy asset di Module owning runtime-aware global skills directory policy for SDK query surfaces. Resolves runtime-global skills bases/skill paths from runtime + env precedence, renders display paths for warnings/manifests, and reports unsupported runtimes with no skills directory. ### Runtime Name Policy Module -Shared CJS/SDK Module owning runtime identity normalization at runtime-selection seams. Canonicalizes alias signals from env/config (`GSD_RUNTIME`, `.planning/config.json:runtime`) to supported runtime IDs so output emitters and query runtime gates stay consistent across naming variants (for example `codex-app`/`codex-cli` -> `codex`). Sources: `get-shit-done/bin/lib/runtime-name-policy.cjs`, `sdk/src/runtime-name-policy.ts`, alias manifest `sdk/shared/runtime-aliases.manifest.json`. +Shared CJS/SDK Module owning runtime identity normalization at runtime-selection seams. Canonicalizes alias signals from env/config (`GSD_RUNTIME`, `.planning/config.json:runtime`) to supported runtime IDs so output emitters and query runtime gates stay consistent across naming variants (for example `codex-app`/`codex-cli` -> `codex`). Sources: `get-shit-done/bin/lib/runtime-name-policy.cjs`, `sdk/src/runtime/name-policy.ts`, alias manifest `sdk/shared/runtime-aliases.manifest.json`. ### Installer Migration Authoring Guard Module Module owning validation for Installer Migration Module records and planned actions. It enforces migration metadata, explicit install scopes, ownership evidence for destructive/config actions, and runtime contract citations for runtime config rewrites before a migration can enter planning or apply. diff --git a/sdk/src/query/helpers.ts b/sdk/src/query/helpers.ts index a8db4b0ec..f505e7156 100644 --- a/sdk/src/query/helpers.ts +++ b/sdk/src/query/helpers.ts @@ -24,7 +24,7 @@ import { homedir } from 'node:os'; import { GSDError, ErrorClassification } from '../errors.js'; export { SUPPORTED_RUNTIMES, type Runtime } from '../model-catalog.js'; import { SUPPORTED_RUNTIMES, type Runtime } from '../model-catalog.js'; -import { canonicalizeRuntimeName } from '../runtime-name-policy.js'; +import { canonicalizeRuntimeName } from '../runtime/name-policy.js'; import { workspacePlanningPaths, resolveWorkspaceContext, type PlanningPaths } from './workspace.js'; export { stateExtractField } from '../state/index.js'; import { relPlanningPath, validateWorkstreamName } from '../workstream-utils.js'; diff --git a/sdk/src/runtime-gate.ts b/sdk/src/runtime-gate.ts index 6e6d88812..cd0a0b10c 100644 --- a/sdk/src/runtime-gate.ts +++ b/sdk/src/runtime-gate.ts @@ -13,7 +13,7 @@ * for non-Claude runtimes. */ import { detectRuntime, SUPPORTED_RUNTIMES, type Runtime } from './query/helpers.js'; -import { canonicalizeRuntimeName } from './runtime-name-policy.js'; +import { canonicalizeRuntimeName } from './runtime/name-policy.js'; /** * Throw a clear error when the active runtime is not Claude. diff --git a/sdk/src/runtime-name-policy.ts b/sdk/src/runtime/name-policy.ts similarity index 100% rename from sdk/src/runtime-name-policy.ts rename to sdk/src/runtime/name-policy.ts