fix(jobnet-search): filter search by the ESCO occupation that occupations prints (#649)

* fix(jobnet-search): filter search by the ESCO occupation that occupations prints

SKILL.md and the CLI README told users to pass the conceptUriDa UUID
from `occupations` to `search --occupation-area` / `--occupation-group`.
Those flags take the numeric area and group codes (10000, 10060), so a
UUID there returned a successful search with zero ads. The API filters
one occupation through its `occupations` parameter, which returns the
830 nurse ads for the sygeplejerske UUID.

Add `search --occupation`, sent as `occupations`, accepting the full
conceptUriDa or its trailing UUID, and point the docs at it.

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

* changelog: place the #649 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:01:08 +02:00
1 parent f6063fd8a1
commit a869a5a2dc
5 files changed
+107 -4

No files matched your search

+8
View File
@@ -138,6 +138,14 @@ per-file diff commands.
so the requested newest-first sort was silently not applied. The option is now an enum like
`--format`, and any other value exits 1 with the CLI's validation error before any request.
- **`jobnet-search search --occupation` filters by the ESCO occupation that `occupations` prints**
(#649, `.agents/skills/jobnet-search/cli/src/commands/search.ts`, `tests/occupation-filter-cli.test.ts`,
`SKILL.md`, `cli/README.md`) - the skill and README said to pass the `conceptUriDa` UUID from
`occupations` to `--occupation-area` / `--occupation-group`, but those take the numeric area and
group codes (`10000`, `10060`); a UUID there returned a successful search with zero ads, while the
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.
## [1.7.3] - 2026-10-19
### Added