Repository navigation
feat(extensions): configure an installed extension by its platform name (#43) - #133
Merged
Merged
Conversation
- add explicit installed-name selection and side-effect-free security previews - preserve source-set validation, global CLI flags and platform failure receipts - share full read-only config checks and canonical resolution of missing parent paths - document the contract and guard selection, preview and symlink regressions (cherry picked from commit 804d3ab)
- keep command identity and typed errors when preview conflicts with cleanup - reject invalid workspace paths in Designer previews without filesystem writes - guard canonical path candidates and shared preview errors with CLI regressions (cherry picked from commit 09db98c)
Перенос нормативной части вклада: у автора она легла в снятый слой (spec/architecture/invariants.md и spec/decisions/0027), а он с 14.09 в архиве и заморожен. Смысл тот же, запись атомарная: DEC.2026-09-16.A-PROPERTY-UPDATE-ADDRESSES-AN-INSTALLED-EXTENSION-BY-NAME с правилом INV.CLI.EXTENSION-TARGETS-ARE-SELECTED-EXPLICITLY. Правила превью заводить не пришлось: у команды --dry-run подчиняется общим, они в реестре с 11.09 — ничего не запускает, не берёт замок, возвращается после поиска утилиты. Заодно ARCHITECTURE.md перестаёт ссылаться на номер ADR-0027: страж против возврата номеров на это и рассчитан. Тест автора, опиравшийся на снятый BuilderBackend, переведён на матрицу провайдеров.
# Conflicts: # SKILL/references/config-and-backends.md # spec/arch/index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #43.
This is @korolevpavel's work from #108, carried onto current
master. Both of their commits keep their authorship; what I added is the third commit, which does the porting. #108 can be closed in favour of this one once this lands.What the command gains
extensions --installed-name <platform name>disables safe mode and unsafe action protection for an extension the infobase knows by name, with no matching source-set required — the case of a.cfeinstalled separately (a test framework, a vendor extension).--namekeeps meaning a configured source-set and an unknown one is refused rather than looked up in the infobase; all configured source-sets are taken only when neither selector is given. The parent command also gains--dry-run.What the porting took
spec/architecture/invariants.mdandspec/decisions/0027-…, and that layer went intospec/archive/on 14.09 and is frozen. The same meaning is now an atomic record:DEC.2026-09-16.A-PROPERTY-UPDATE-ADDRESSES-AN-INSTALLED-EXTENSION-BY-NAMEestablishingINV.CLI.EXTENSION-TARGETS-ARE-SELECTED-EXPLICITLY. No preview rule was needed:--dry-runhere obeys the ones the registry has held since 11.09.validategained provider checks inside the contributor'svalidate_read_onlysplit, andconfigure_extensionsruns oneSafetySetteroveribcmdor the agent — the preview now sits before the executor is opened and names either.BuilderBackend, removed with thebuilderkey; it moved to the provider map.ARCHITECTURE.mdstopped namingADR-0027; the guard against returning numbers exists for exactly this.Verification
tests/cli_extensions.rs: 28 tests, 15 of them the contributor's — mixed selectors preserve exact names and dispatch order, an invalid installed name never dispatches or cleans, a platform failure keeps target and exit code in JSON, the parent preview is read-only and redacts credentials.--installed-name Зонд2 --dry-runnames target, infobase and executor and touches nothing; the same without--dry-rundisables both flags;--installed-name НетТакогоcomes back as a typedExtensionNotFoundfrom the platform with the target and its own error type, not a verdict read from prose;--name НетТакогоis refused as an unknown source-set without reaching the infobase.--check,cargo fmt.