fix: replace literal BrowserStack access key with placeholder in SDK / yml tool output
What this PR does
Stops the BrowserStack SDK setup instructions and browserstack.yml generator from emitting the literal
BROWSERSTACK_ACCESS_KEY into MCP tool output. Output now contains a <your BrowserStack access key>
placeholder; users substitute their key locally.
Why
Same prompt-injection exfil class as PMAA-100's Percy token leak: anything in MCP tool response text can be recovered from LLM transcripts, shared sessions, or compromised assistant sessions. The access key is user-supplied (lower severity than the server-fetched Percy token) but the path is identical.
Flagged during PMAA-100 security review as the "Adjacent concern" — explicitly framed as out-of-scope for PMAA-100 with a recommendation to open a follow-up audit ticket. This is that follow-up.
Changes
src/tools/sdk-utils/bstack/commands.ts—getSDKPrefixCommand(and its internal helpers) no longer take anaccessKeyparameter. Output uses a sharedACCESS_KEY_PLACEHOLDERconstant.src/tools/sdk-utils/bstack/configUtils.ts—generateBrowserStackYMLInstructionsemitsaccessKey: "<your BrowserStack access key>"in the renderedbrowserstack.yml.src/tools/sdk-utils/percy-bstack/handler.ts,src/tools/sdk-utils/bstack/sdkHandler.ts— callers updated to drop the now-removedaccessKeyargument.tests/tools/sdk-utils-commands.test.ts— assertions inverted to pin the new contract: the placeholder must appear; the access key must not.
Behavioural change
Maven and Node.js setup commands in tool output now contain the placeholder string where the literal key used to appear. Users substitute their key before running — matches the pattern used for the Percy token (#288).
Out of scope (worth a separate audit if not already tracked)
Other ${accessKey} interpolation sites that this PR doesn't touch:
src/tools/sdk-utils/bstack/constants.ts— 6 sitessrc/tools/appautomate-utils/appium-sdk/languages/java.ts— 2 sitessrc/tools/appautomate-utils/appium-sdk/languages/nodejs.ts— 1 site
Verification
npm run build→ lint, format, 171 tests pass, tsc clean.getSDKPrefixCommandis not imported anywhere outsidesrc/tools/sdk-utils/bstack/andsrc/tools/sdk-utils/percy-bstack/(verified viagrep -rn).