fix(set-profile): use hyphenated /gsd-set-profile in pre-flight message

Project convention (#1748) requires /gsd-<cmd> hyphen form everywhere
except designated test inputs. Fix the colon references in the
pre-flight error and its regression test to satisfy stale-colon-refs.
This commit is contained in:
Jeremy McSpadden
2026-04-19 15:40:50 -05:00
parent d8aaeb6717
commit 708f60874e
2 changed files with 3 additions and 3 deletions

View File

@@ -9,4 +9,4 @@ allowed-tools:
Show the following output to the user verbatim, with no extra commentary: Show the following output to the user verbatim, with no extra commentary:
!`if ! command -v gsd-sdk >/dev/null 2>&1; then printf '⚠ gsd-sdk not found in PATH — /gsd:set-profile requires it.\n\nInstall the GSD SDK:\n npm install -g @gsd-build/sdk\n\nOr update GSD to get the latest packages:\n /gsd-update\n'; exit 1; fi; gsd-sdk query config-set-model-profile $ARGUMENTS --raw` !`if ! command -v gsd-sdk >/dev/null 2>&1; then printf '⚠ gsd-sdk not found in PATH — /gsd-set-profile requires it.\n\nInstall the GSD SDK:\n npm install -g @gsd-build/sdk\n\nOr update GSD to get the latest packages:\n /gsd-update\n'; exit 1; fi; gsd-sdk query config-set-model-profile $ARGUMENTS --raw`

View File

@@ -1,7 +1,7 @@
/** /**
* Regression test for bug #2439 * Regression test for bug #2439
* *
* /gsd:set-profile crashed with `command not found: gsd-sdk` when the * /gsd-set-profile crashed with `command not found: gsd-sdk` when the
* gsd-sdk binary was not installed or not in PATH. The command body * gsd-sdk binary was not installed or not in PATH. The command body
* invoked `gsd-sdk query config-set-model-profile` directly with no * invoked `gsd-sdk query config-set-model-profile` directly with no
* pre-flight check, so missing gsd-sdk produced an opaque shell error. * pre-flight check, so missing gsd-sdk produced an opaque shell error.
@@ -19,7 +19,7 @@ const path = require('path');
const COMMAND_PATH = path.join(__dirname, '..', 'commands', 'gsd', 'set-profile.md'); const COMMAND_PATH = path.join(__dirname, '..', 'commands', 'gsd', 'set-profile.md');
describe('bug #2439: /gsd:set-profile gsd-sdk pre-flight check', () => { describe('bug #2439: /gsd-set-profile gsd-sdk pre-flight check', () => {
const content = fs.readFileSync(COMMAND_PATH, 'utf-8'); const content = fs.readFileSync(COMMAND_PATH, 'utf-8');
test('command file exists', () => { test('command file exists', () => {