Skip to content

feat(global): add workable-search - #69

Open
lucacome wants to merge 1 commit into
ai-job-search-dev:mainfrom
lucacome:feat/workable
Open

lucacome wants to merge 1 commit into
ai-job-search-dev:mainfrom
lucacome:feat/workable

Conversation

@lucacome

@lucacome lucacome commented Nov 26, 2026 •

Copy link
Copy Markdown

What changed and why

Adds a Workable portal: search lists one company's Workable board and detail
reads a posting's full text from its URL. Workable boards are per company, like
Greenhouse and Ashby, so every call names an account slug. The CLI folds the
public board response into one posting per shortcode, filters client-side, and
follows the same contract and output shapes as the existing ATS portals.
Includes SKILL.md, url-reference.md, offline fixtures and tests, and a
.github/CODEOWNERS line.

search calls Workable's documented public jobs endpoint
(www.workable.com/api/accounts/<slug>, which redirects to the widget endpoint).
detail calls the board's account job endpoint, which returns every location
plus separate requirements and benefits.

Search also supports --remote remote|hybrid|onsite. remote falls back to
Workable's telecommuting boolean; hybrid and onsite warn on stderr when a
board sends no workplace_type, instead of silently returning nothing.

Portal

The five checks

  • The contract. search --format json|table|plain and detail --format json|plain (no table, optional in the contract). Errors are JSON on stderr with exit 1; 429/5xx back off, honoring Retry-After as seconds or an HTTP-date (including 0); zero runtime dependencies; 73 offline tests; a Query syntax: line sits under the search command. One deviation declared below: the board has no server-side search or pagination.
  • A safety pass. No install or lifecycle scripts, no trustedDependencies, no bunfig.toml or .npmrc. The CLI reads no environment variables or files. It makes requests only to www.workable.com (/api/accounts/<slug>, the documented endpoint) and apply.workable.com (the redirect target and the account job endpoint). Pasted www/tenant /j/ URLs are parsed into a validated slug and shortcode, never fetched.
  • Honest scoping. No API key or metered service, so enabled: true. search uses Workable's documented public jobs endpoint; detail uses the board's public account job endpoint. A personal-use note covers volume, and the skill says to fall back to WebSearch if Workable blocks access. The documented public single-job endpoint is not used because it returns only the primary location and one combined description.
  • robots.txt and terms respected. apply.workable.com/robots.txt allows /; www.workable.com allows /api/ and disallows /j/. The CLI calls /api/ and never fetches a /j/ link. Both are documented in SKILL.md and url-reference.md. No workaround is used for a blocked path.
  • Search only. Reads postings. Nothing fills in or submits an application.

Ownership

  • /portals/global/workable-search/ @lucacome is in .github/CODEOWNERS, and workable-search is unique across the repo.

Deviations from the contract

  • detail sets company to the board slug because Workable's account job endpoint returns no account display name. search uses the display name from the public board response.
  • No structured pay: neither endpoint exposes a salary or deadline field, so pay appears only when the posting text states it.
  • The board endpoint returns the whole board and has no server-side search or pagination; --query, --location, --remote, --jobage, --page and --limit run client-side.
  • --remote hybrid and --remote onsite need workplace_type; on a board that sends none, the CLI writes a WORKPLACE_TYPE_UNAVAILABLE warning to stderr and exits 0. --remote remote still uses telecommuting.
  • detail exposes Workable's department[] as both a joined department string and the raw departments[] array; requisitionId is Workable's internal code.
  • detail supports --format json|plain only; table is optional in the contract.
  • search calls the documented URL, which 302s to the widget endpoint, so each search is two HTTP requests (302 + 200). Calling the redirect target directly would save one hop but lose the documented contract.
  • The documented public single-job endpoint (www.workable.com/api/jobs/<shortcode>?details=true) resolves a posting without a slug, but returns one primary location and a combined description, so detail uses the account endpoint instead.

Verification

Run in portals/global/workable-search/cli/:

  • bun install (lockfile not committed, as other portals do)
  • bun run typecheck — clean
  • bun test — 73 pass, 0 fail; network-free, fixtures only
  • python tools/security_guards.py — OK
  • python -m unittest discover -s tests — 30 pass

Manual smoke checks against board digitalgenius (not part of CI): search through the documented URL and its 302, detail by URL, www.workable.com/j/<id> share link, and /api/v2/... detail URL all returned the expected posting. --remote remote returned the two remote postings; --remote hybrid emitted the WORKPLACE_TYPE_UNAVAILABLE warning.


Summary by cubic

Adds a workable-search portal that reads company job boards hosted on Workable through its public endpoints: search lists one company's board and detail reads a posting's full text from its URL. Workable boards are per company, so every call names an account slug, and the CLI follows the same contract and output shapes as the existing ATS portals.

Contract deviations

  • The board endpoint returns the whole board, so --query, --location, --jobage, --page, and --limit filter client-side. The new --remote remote|hybrid|onsite flag does too.
  • detail sets company to the board slug because the account job endpoint returns no display name.
  • Neither endpoint exposes structured pay; salary appears only when the posting text states it.
  • detail supports json|plain only.
  • Boards that send no workplace_type cannot filter hybrid/onsite; the CLI warns with WORKPLACE_TYPE_UNAVAILABLE instead of returning an empty result.

Portal contents

  • Ships SKILL.md, url-reference.md, and a zero-runtime-dependency cli/ with offline fixtures and tests.
  • Pasted www.workable.com/j/ share links are parsed but never fetched (robots.txt disallows that path).
  • Adds a .github/CODEOWNERS entry for @lucacome.

Written for commit caa60cf. Summary will update on new commits.

View guided diff

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 17 files

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread portals/global/workable-search/SKILL.md Resolved

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 10 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 8 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant