refactor(#1734): extract install engine from bin/install.js (ADR-1239 Phase B deep move) (#1735)

* refactor(#1734): extract install engine from bin/install.js (ADR-1239 Phase B deep move)

Relocate the runtime-artifact install cluster out of the 12,490-line
bin/install.js into a dedicated src/install-engine.cts -> install-engine.cjs:
installRuntimeArtifacts, uninstallRuntimeArtifacts, installOpencodeFamilySkills,
and their cluster helpers (_copyStaged, snapshot/restore, legacy migration,
GSD-entry pruning, preserve/restoreUserArtifacts, OpenCode-family converters,
USER_OWNED_ARTIFACTS).

- bin/install.js imports the engine and re-exports the moved symbols for
  back-compat; getCommitAttribution STAYS in install.js (impure config I/O +
  argv explicitConfigDir global) and is injected via a resolveAttribution param.
- 17 test files migrated to import the moved symbols from the engine.
- Bookkeeping: eslint built-artifact ignore, .gitignore, INVENTORY manifest+row,
  CONTEXT.md Install Engine Module glossary seam.

Behaviour-preserving: install output is byte-identical for all 16 runtimes
(golden-parity harness #1730) — the only delta is the new install-engine.cjs
file shipping in the installed gsd-core/bin/lib/ tree.

Closes #1734

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* chore(#1734): backfill changeset PR number (#1735)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: review-bot <review-bot@gsd>
This commit is contained in:
Tom Boucher
2026-06-25 21:16:47 -04:00
committed by GitHub
parent 6414249d25
commit b307c4cfde
42 changed files with 936 additions and 3128 deletions

View File

@@ -109,148 +109,6 @@
"gsd-core/bin/check-latest-version.cjs": "e4a224058c8f4d74",
"gsd-core/bin/gsd-tools.cjs": "1f2ff4e80aa45439",
"gsd-core/bin/gsd_run": "62d9b647ede212e6",
"gsd-core/bin/lib/active-workstream-store.cjs": "3bfe7dff4b800602",
"gsd-core/bin/lib/adr-parser.cjs": "741a7a23743fdb46",
"gsd-core/bin/lib/agent-command-router.cjs": "dc06df2790d6b6f7",
"gsd-core/bin/lib/agent-install-check.cjs": "66afc7f0f1935b9a",
"gsd-core/bin/lib/artifacts.cjs": "253076a1b2476446",
"gsd-core/bin/lib/audit-command-router.cjs": "83320c0d5945060b",
"gsd-core/bin/lib/audit.cjs": "9c0b659cde833828",
"gsd-core/bin/lib/capability-activation.cjs": "6319c7b3f8b71d7b",
"gsd-core/bin/lib/capability-consent.cjs": "309c957ef1707b21",
"gsd-core/bin/lib/capability-ledger.cjs": "1abaf0d194703c92",
"gsd-core/bin/lib/capability-lifecycle.cjs": "b6887bd3413e8a72",
"gsd-core/bin/lib/capability-loader.cjs": "38fc9566893db3af",
"gsd-core/bin/lib/capability-lock.cjs": "81cf58b717a32e2a",
"gsd-core/bin/lib/capability-registry.cjs": "40888aec313fd6c7",
"gsd-core/bin/lib/capability-source.cjs": "1122731793f04408",
"gsd-core/bin/lib/capability-state.cjs": "bd174dc7488dfc10",
"gsd-core/bin/lib/capability-trust.cjs": "28f513d40b58af16",
"gsd-core/bin/lib/capability-validator.cjs": "3e4658be7e0a5741",
"gsd-core/bin/lib/capability-writer.cjs": "760f53876da20268",
"gsd-core/bin/lib/check-command-router.cjs": "7363dc0df9e5f8c5",
"gsd-core/bin/lib/cjs-command-router-adapter.cjs": "baaddeadfacf4ed2",
"gsd-core/bin/lib/cli-exit.cjs": "8913adfc6f878155",
"gsd-core/bin/lib/clock.cjs": "e0121af119585126",
"gsd-core/bin/lib/clusters.cjs": "64526279798dada8",
"gsd-core/bin/lib/code-review-flags.cjs": "a347151887fc8486",
"gsd-core/bin/lib/command-aliases.cjs": "aaad70c106709bbe",
"gsd-core/bin/lib/command-arg-projection.cjs": "5dc425098779393e",
"gsd-core/bin/lib/command-roster.cjs": "e9c8cc5cdbb2d234",
"gsd-core/bin/lib/command-routing-hub.cjs": "5c3d4e54c3eb0dee",
"gsd-core/bin/lib/commands.cjs": "710ae91893333dfa",
"gsd-core/bin/lib/config-loader.cjs": "ad06d596d8e0c71d",
"gsd-core/bin/lib/config-schema.cjs": "28eb2a5db1b407a7",
"gsd-core/bin/lib/config-types.cjs": "96d613c58f03e1b4",
"gsd-core/bin/lib/config.cjs": "fb2cfce9ab259ffe",
"gsd-core/bin/lib/configuration.cjs": "05b2194def83ed56",
"gsd-core/bin/lib/context-utilization.cjs": "e584bd8192164750",
"gsd-core/bin/lib/core-utils.cjs": "31a635dae39110ae",
"gsd-core/bin/lib/coverage.cjs": "2dd1a846167d29ca",
"gsd-core/bin/lib/decisions.cjs": "4714718596d2fe73",
"gsd-core/bin/lib/docs.cjs": "2575e4c1172aa022",
"gsd-core/bin/lib/drift.cjs": "3336156fb1d90f9e",
"gsd-core/bin/lib/edge-probe.cjs": "965a6eb3ff5e65f4",
"gsd-core/bin/lib/eval-command-router.cjs": "c27b6b78bbdeaaf4",
"gsd-core/bin/lib/eval.cjs": "1fe6f60777fc3e68",
"gsd-core/bin/lib/fallow-runner.cjs": "b01ed16271f408b1",
"gsd-core/bin/lib/federated-config.cjs": "070bec8afc3e523a",
"gsd-core/bin/lib/frontmatter.cjs": "5fdc9423eba17a9f",
"gsd-core/bin/lib/gap-checker.cjs": "08f1f264b2031a50",
"gsd-core/bin/lib/git-base-branch.cjs": "53a4e91cd94f6221",
"gsd-core/bin/lib/graphify-command-router.cjs": "6672e02eca402d2b",
"gsd-core/bin/lib/graphify.cjs": "9471802c2efc13c1",
"gsd-core/bin/lib/gsd2-import.cjs": "4dc7dbb282e00185",
"gsd-core/bin/lib/host-integration.cjs": "5050b73b4c50fc79",
"gsd-core/bin/lib/init-command-router.cjs": "5f6b583acaba1037",
"gsd-core/bin/lib/init.cjs": "bcbe3af4720cb769",
"gsd-core/bin/lib/install-profiles.cjs": "8c5d1318f4940307",
"gsd-core/bin/lib/installer-migration-authoring.cjs": "050285a34b4b0b22",
"gsd-core/bin/lib/installer-migration-report.cjs": "675fd40fd9c3aae4",
"gsd-core/bin/lib/installer-migrations.cjs": "2c1b6d9ab7cab62a",
"gsd-core/bin/lib/installer-migrations/000-first-time-baseline.cjs": "27ae3ff0770c4c7b",
"gsd-core/bin/lib/installer-migrations/001-legacy-orphan-files.cjs": "e279bc0b87f040ca",
"gsd-core/bin/lib/installer-migrations/002-codex-legacy-hooks-json.cjs": "8292c3e6af11c481",
"gsd-core/bin/lib/installer-migrations/003-rename-get-shit-done-to-gsd-core.cjs": "2cfb01e1e4d23461",
"gsd-core/bin/lib/installer-migrations/004-prune-stale-pristine-snapshots.cjs": "c1409ecc6b92b7e9",
"gsd-core/bin/lib/intel-command-router.cjs": "3611eabadbaedbab",
"gsd-core/bin/lib/intel.cjs": "86bf72a9910944e0",
"gsd-core/bin/lib/io.cjs": "7d83809959fb3a8a",
"gsd-core/bin/lib/learnings.cjs": "0f45ad609455ca62",
"gsd-core/bin/lib/legacy-cleanup.cjs": "9aaf0480449906e6",
"gsd-core/bin/lib/loop-host-contract.cjs": "da7f76ddb082620d",
"gsd-core/bin/lib/loop-resolver.cjs": "25ce1eb00e95fa80",
"gsd-core/bin/lib/markdown-sectionizer.cjs": "29d794e5de981792",
"gsd-core/bin/lib/milestone.cjs": "ba975c7595f4a929",
"gsd-core/bin/lib/model-catalog.cjs": "c4dcf3ddd17d25cd",
"gsd-core/bin/lib/model-profiles.cjs": "83249502f09ccd78",
"gsd-core/bin/lib/model-resolver.cjs": "cac3ec39756ab17e",
"gsd-core/bin/lib/observability/event.cjs": "c3595929b827ab0e",
"gsd-core/bin/lib/observability/logger.cjs": "c57185d96dec038f",
"gsd-core/bin/lib/observability/redaction.cjs": "1565fe81a6c50837",
"gsd-core/bin/lib/package-identity.cjs": "34051a3e4874fae4",
"gsd-core/bin/lib/package-legitimacy.cjs": "d9677032f76cbdb2",
"gsd-core/bin/lib/phase-command-router.cjs": "74ac64360d41ae5b",
"gsd-core/bin/lib/phase-id.cjs": "60e2e0e4760f6b82",
"gsd-core/bin/lib/phase-lifecycle.cjs": "0b1d7e6b4d14ad66",
"gsd-core/bin/lib/phase-locator.cjs": "cf8de89cfcf097cd",
"gsd-core/bin/lib/phase.cjs": "dbb0cb0aa8a04c2b",
"gsd-core/bin/lib/phases-command-router.cjs": "f57d97992f0281c6",
"gsd-core/bin/lib/plan-drift-guard.cjs": "b3d0bc58767b2567",
"gsd-core/bin/lib/plan-scan.cjs": "07cadb766a55c6d0",
"gsd-core/bin/lib/planning-workspace.cjs": "f2317830591bf4f8",
"gsd-core/bin/lib/probe-core.cjs": "73ba5d375910ff28",
"gsd-core/bin/lib/profile-output.cjs": "378808e03fd67c61",
"gsd-core/bin/lib/profile-pipeline-command-router.cjs": "827e4e524304ad25",
"gsd-core/bin/lib/profile-pipeline.cjs": "787e4248ca4c878d",
"gsd-core/bin/lib/prohibition-enforcement.cjs": "c183ec49139a62e5",
"gsd-core/bin/lib/project-root.cjs": "163993df1925a44b",
"gsd-core/bin/lib/prompt-budget.cjs": "7356b0e890cda70b",
"gsd-core/bin/lib/research-provider.cjs": "23b53a582199eff6",
"gsd-core/bin/lib/research-store.cjs": "5031d4e184367f7f",
"gsd-core/bin/lib/resolution.cjs": "fd11df257a4eb398",
"gsd-core/bin/lib/review-reviewer-selection.cjs": "2f632c155aefbdd3",
"gsd-core/bin/lib/roadmap-command-router.cjs": "13dfdf17596f8998",
"gsd-core/bin/lib/roadmap-parser.cjs": "077b798638c88f6c",
"gsd-core/bin/lib/roadmap-upgrade.cjs": "31b1d30bb04a773f",
"gsd-core/bin/lib/roadmap.cjs": "c49ec2fa9ec9e423",
"gsd-core/bin/lib/runtime-artifact-conversion.cjs": "16d63bcf307a2a35",
"gsd-core/bin/lib/runtime-artifact-install-plan.cjs": "2389590d607dd559",
"gsd-core/bin/lib/runtime-artifact-layout.cjs": "61e04a9e389ff4e2",
"gsd-core/bin/lib/runtime-config-adapter-registry.cjs": "89e41665a8a90477",
"gsd-core/bin/lib/runtime-homes.cjs": "12b47d66d04170c8",
"gsd-core/bin/lib/runtime-hooks-surface.cjs": "7c559132cabe057d",
"gsd-core/bin/lib/runtime-name-policy.cjs": "9ad3466f6811210e",
"gsd-core/bin/lib/runtime-slash.cjs": "252e7cbc25eb2197",
"gsd-core/bin/lib/schema-detect.cjs": "451be154264efe2f",
"gsd-core/bin/lib/secrets.cjs": "02b42408bba154f2",
"gsd-core/bin/lib/security.cjs": "c7f10a4c817b8b86",
"gsd-core/bin/lib/semver-compare.cjs": "4f661153bc421cfc",
"gsd-core/bin/lib/shell-command-projection.cjs": "f0a1c2d8d0ba9a1e",
"gsd-core/bin/lib/stale-bake-guard.cjs": "d81694c9ff2836d3",
"gsd-core/bin/lib/state-command-router.cjs": "f388d1204557b02b",
"gsd-core/bin/lib/state-document.cjs": "33936a718bae305a",
"gsd-core/bin/lib/state.cjs": "4d06f311264fcbe0",
"gsd-core/bin/lib/surface.cjs": "59e7f250d204a513",
"gsd-core/bin/lib/task-command-router.cjs": "f1eb768e2a233057",
"gsd-core/bin/lib/teams-status.cjs": "1c779e9b1928cdc5",
"gsd-core/bin/lib/template.cjs": "3c02fe523b07da1a",
"gsd-core/bin/lib/uat-predicate.cjs": "f0cf70e68244b834",
"gsd-core/bin/lib/uat.cjs": "e1e3f2448e46f795",
"gsd-core/bin/lib/ui-safety-gate.cjs": "f98279fb1ad1cee9",
"gsd-core/bin/lib/update-context.cjs": "c45cfd1f73c37685",
"gsd-core/bin/lib/validate-command-router.cjs": "e570f512c81f36aa",
"gsd-core/bin/lib/validate.cjs": "71d10133337363d5",
"gsd-core/bin/lib/verification-command-router.cjs": "7bb27562559625a2",
"gsd-core/bin/lib/verification.cjs": "349fe736d467eec9",
"gsd-core/bin/lib/verify-command-router.cjs": "847b2e8b74d4141d",
"gsd-core/bin/lib/verify.cjs": "495c7a5a09593127",
"gsd-core/bin/lib/workstream-inventory-builder.cjs": "17dd14ec7c59a024",
"gsd-core/bin/lib/workstream-inventory.cjs": "e0383128698517de",
"gsd-core/bin/lib/workstream-name-policy.cjs": "151ef8edad98cf2c",
"gsd-core/bin/lib/workstream.cjs": "b7b6832f8b5a7b7f",
"gsd-core/bin/lib/worktree-base-ref.cjs": "0a20f520af59b940",
"gsd-core/bin/lib/worktree-safety.cjs": "d1e943bdf02c115a",
"gsd-core/bin/shared/config-defaults.manifest.json": "517e6a7c1e9f4f16",
"gsd-core/bin/shared/config-schema.manifest.json": "67e4addbfd248a7c",
"gsd-core/bin/shared/model-catalog.json": "dbe26e683236d8c6",