Files
deepseek-harness/.agents/notes/implemented/architecture/2026-09-09-profile-resolution-generations.i18n.yaml
T
turtle1999 879ad372ac feat(hmr): replace plugins whose package files changed during profile recomposition
With HMR, installing, enabling, disabling and removing bundles take effect live. Each profile recomposition compares
the loaded modules below the profile directory and its linked targets with disk, stops the plugins whose files
changed, and recomposes the profile through app-boot's recomposeProfile(): the rows the next generation drops are
removed first, the latest runtime resolution is published once, and the generation is applied and judged. Afterwards
HMR evicts the modules below the mappings the recomposition dropped.

- app-boot: recomposeProfile(); PluginPackages.resolution; ResolutionRestartRequired; the resolver accepts in-place
  version changes and relinks, and relocates Node's cached link real paths.
- plugin-manager: with HMR, installBundle refuses an installed package (already-installed), so an upgrade is a
  removal and an installation; every restart-required result carries a restartReason; removal uses the registry the
  package was installed from.
- ui-plugin-manager: the Official Update removes and then installs; restart prompts name their reason.
2026-10-13 22:15:57 +08:00

53 lines
2.5 KiB
YAML

# Bilingual-pair consistency record for 2026-09-09-profile-resolution-generations.md (docs/i18n/README.md): per heading
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
# After editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write .agents/notes/implemented/architecture/2026-09-09-profile-resolution-generations.md
/agent-note-add-immutable-profile-resolution-generations:
en: 6a4338564c01ad91
zh: 241248cff9bd4cfc
/agent-note-add-immutable-profile-resolution-generations/problem:
en: 907a40c722a6faff
zh: a471d7034d8c231f
/agent-note-add-immutable-profile-resolution-generations/decision:
en: a3022a87337058c5
zh: 1d53a08a25ed6eb3
/agent-note-add-immutable-profile-resolution-generations/decision/one-selection-algorithm:
en: eae0faee66f97e5e
zh: 6d400543869aa7b3
/agent-note-add-immutable-profile-resolution-generations/decision/ordinary-and-linked-package-examples:
en: f77ef79e2499a0dc
zh: 4bc28292763a1075
/agent-note-add-immutable-profile-resolution-generations/decision/source-and-built-module-identity:
en: 53a9e92698ce9a5d
zh: 6124d446e8d4a532
/agent-note-add-immutable-profile-resolution-generations/decision/immutable-generations:
en: e10b224e0e68b701
zh: d43fbdf37e6bfc54
/agent-note-add-immutable-profile-resolution-generations/decision/shared-esm-and-commonjs-rule:
en: 0e0575a04a081b52
zh: 94c74334939e6d13
/agent-note-add-immutable-profile-resolution-generations/decision/active-plugin-list-and-package-metadata:
en: 031404dd5b36d408
zh: de21e819edffbcf7
/agent-note-add-immutable-profile-resolution-generations/decision/workers-and-generation-updates:
en: 99308bd758859e02
zh: 35f1e7719fe80d2e
/agent-note-add-immutable-profile-resolution-generations/decision/additive-package-changes:
en: 39d27cff0d419259
zh: 6cbdc88a450614d0
/agent-note-add-immutable-profile-resolution-generations/decision/filesystem-and-runtime-carriers:
en: b0607713102a093d
zh: 2de9c33bfaa0e3e2
/agent-note-add-immutable-profile-resolution-generations/decision/performance-and-verification:
en: bf7bd2f8371f54f3
zh: 426c3b33af8874b8
/agent-note-add-immutable-profile-resolution-generations/alternatives-considered:
en: 2426173c58a17a48
zh: 0423b3700273accd
/agent-note-add-immutable-profile-resolution-generations/verification:
en: 74cb43ea2ccdb334
zh: b966bbed43a83c82
/agent-note-add-immutable-profile-resolution-generations/consequences:
en: 457a7d1e82b45fe0
zh: 800036e083a7674c