Give an agent a CV, languages, avoid and must texts, and read a posting's languages with a level and its deadline (migration 28)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ed6d641373
commit
4fc474c437
15 files changed
+716
-79
No files matched your search
+7
-3
@@ -5,7 +5,8 @@ and marks the role due. `run` maps every due role: its company through
|
||||
`company_aliases`, its places against the gazetteer, its level, contract
|
||||
and remote through the host's tables (`app.prep.words`), its country from
|
||||
the places (`app.prep.country`), and a remote role's area
|
||||
(`app.prep.area`). `remote` is the model's (`remote_model`), else the
|
||||
(`app.prep.area`), and its `deadline` (the host's date, else the one
|
||||
`extract` read). `remote` is the model's (`remote_model`), else the
|
||||
host's word, else what the place line or a search role's title says. When
|
||||
the tables or the gazetteer in code (`places.seed`) changed since the last
|
||||
run (`fingerprint`, kept in state as `prep:tables`), the new places and
|
||||
@@ -35,8 +36,9 @@ from app.storage import Store
|
||||
|
||||
#: Raised when the rules in this package change the way a stored word maps,
|
||||
#: so every open role is mapped again as it is after a table changes. 3: the
|
||||
#: remote area, and remote as the model's before the host's word.
|
||||
VERSION = 3
|
||||
#: remote area, and remote as the model's before the host's word. 4: the
|
||||
#: deadline, the host's before the model's.
|
||||
VERSION = 4
|
||||
|
||||
#: The state key the last run's `fingerprint` is kept under.
|
||||
STATE = "prep:tables"
|
||||
@@ -115,6 +117,7 @@ def map_role(row: Mapping[str, Any], gaz: places.Gazetteer, folds: Mapping[str,
|
||||
"remote_area": list(area(gaz, texts, place_ids, _model_names(row["remote_where_model"]))
|
||||
if remote == "remote" else ()),
|
||||
"country": country(gaz, place_ids, row["country_host"]),
|
||||
"deadline": row["deadline_host"] or row["deadline_model"] or None,
|
||||
}
|
||||
|
||||
|
||||
@@ -124,6 +127,7 @@ def _changed(row: Mapping[str, Any], found: Mapping[str, Any]) -> bool:
|
||||
or found["remote"] != row["remote"] \
|
||||
or found["remote_area"] != json.loads(row["remote_area"] or "[]") \
|
||||
or (found["country"] and found["country"] != row["country"]) \
|
||||
or found["deadline"] != row["deadline"] \
|
||||
or any(found[c] != row[c] for c in ("company_key", "seniority_stated",
|
||||
"seniority_title", "employment"))
|
||||
|
||||
|
||||
Reference in new issue
Block a user