feat(shell-projection): route PATH guidance through typed action projection (#3447)

* feat(shell-projection): route PATH guidance through typed action projection

* chore(changeset): add PR 3447 changelog fragment
This commit is contained in:
Tom Boucher
2026-05-12 19:19:04 -04:00
committed by GitHub
parent 7e91a861ee
commit 16f5009270
4 changed files with 232 additions and 13 deletions

View File

@@ -12,6 +12,7 @@ const {
projectLocalHookPrefix,
projectLegacySettingsHookCommand,
projectManagedHookCommand,
projectPathActionProjection,
projectPortableHookBaseDir,
projectShellCommandText,
projectCodexHookTomlCommand,
@@ -9785,8 +9786,15 @@ function maybeSuggestPathExport(globalBin, homeDir) {
console.log('');
console.log(` ${yellow}⚠${reset} ${bold}${globalBin}${reset} is not on your PATH.`);
console.log(` Add it with one of:`);
console.log(` ${cyan}echo 'export PATH="${globalBin}:$PATH"' >> ~/.zshrc${reset}`);
console.log(` ${cyan}echo 'export PATH="${globalBin}:$PATH"' >> ~/.bashrc${reset}`);
const projected = projectPathActionProjection({
mode: 'persist',
targetDir: globalBin,
platform: process.platform,
});
for (const action of projected.shellActions) {
const label = action.label ? `${action.label}: ` : '';
console.log(` ${cyan}${label}${action.command}${reset}`);
}
console.log('');
}