fix(linkedin-search): reject an unknown --remote mode instead of searching every workplace type (#645)

* fix(linkedin-search): reject an unknown --remote mode instead of searching every workplace type

workTypeFlag() maps a mode it does not recognise to null, and the search URL
then carries no f_WT. So --remote remote,hybrid, a misspelt mode or a bare
--remote returned onsite postings too, with exit 0 and an empty stderr.
Validate the mode before dispatch and exit 1 with BAD_ARG; remote, hybrid,
onsite and the accepted on-site spelling keep their f_WT values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* changelog: place the #645 entry under [Unreleased]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Mads Lorentzen <madslorentzen_17@hotmail.com>
This commit is contained in:
authored and GitHub committed 2026-10-19 19:55:31 +02:00
1 parent 6ce6a1dece
commit 5f0b799479
3 files changed
+63

No files matched your search

+7
View File
@@ -115,6 +115,13 @@ per-file diff commands.
lookup then failed and `/apply` quietly dropped the benchmark. The converter now exits 2 before
reading the workbook or opening the output, and `0` or a finite custom baseline still converts.
- **`linkedin-search` rejects a `--remote` mode it does not recognise instead of searching every
workplace type** (#645, `.agents/skills/linkedin-search/cli/src/cli.ts`, `tests/remote-mode.test.ts`) -
`workTypeFlag()` maps an unknown mode to `null` and the request then carries no `f_WT`, so
`--remote remote,hybrid`, a misspelt mode or a bare `--remote` returned onsite postings too,
with exit 0 and an empty stderr. Anything other than `remote`, `hybrid` or `onsite` (and the
accepted `on-site` spelling) now exits 1 with `BAD_ARG` before any request is sent.
## [1.7.3] - 2026-10-19
### Added