fix(jobdanmark-search): filter search by the administrative regions locations returns (#650)

* fix(jobdanmark-search): filter search by the administrative regions locations returns

`locations` lists two kinds of region: landsdele such as Østjylland
(category `region`) and the administrative regions such as Region
Midtjylland (category `administrativeRegion`), and the search API
filters each by its own type. `--region` always sent type `region`, so
an administrative region - and SKILL.md's own `--region Midtjylland`
example - returned a successful search with zero jobs.

Add `--administrative-region`, sent as the `administrativeRegion`
filter, map each locations category to its flag in SKILL.md and the
README, and give `--region` examples that exist.

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

* changelog: place the #650 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 20:03:09 +02:00
1 parent a869a5a2dc
commit 09a8c31b24
5 files changed
+101 -5

No files matched your search

+10
View File
@@ -146,6 +146,16 @@ per-file diff commands.
API's `occupations` parameter returns the 830 nurse ads for the same UUID. The new flag sends that
parameter and accepts the full URI or the bare UUID; the docs stop pointing at the numeric flags.
- **`jobdanmark-search search` can filter by the administrative regions that `locations` returns**
(#650, `.agents/skills/jobdanmark-search/cli/src/commands/search.ts`, `tests/region-filter-cli.test.ts`,
`SKILL.md`, `cli/README.md`) - `locations` lists two kinds of region: landsdele such as `Østjylland`
(category `region`) and the five administrative regions such as `Region Midtjylland` (category
`administrativeRegion`), and the search API filters each by its own type. `--region` always sent
type `region`, so an administrative region - and SKILL.md's own example `--region Midtjylland` - came
back as a successful search with zero jobs. A new `--administrative-region` flag sends the
`administrativeRegion` filter (2,486 jobs for `Region Midtjylland`), and the docs map each `locations`
category to its flag and give `--region` examples that exist.
## [1.7.3] - 2026-10-19
### Added