@proagentstore/cli 0.4.136 → 0.4.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -225,7 +225,8 @@ export class LocalApplyRuntime {
|
|
|
225
225
|
return { state: "unavailable", jobUrl: parsed.toString(), reason: gone };
|
|
226
226
|
// An accessible Apply control is an active path, unlike a generic careers/search URL.
|
|
227
227
|
if (/(?:button|link)\s+"[^"]{0,80}\bapply(?: now| for| here)?\b|\bapply (?:now|for (?:this )?(?:job|role|position))\b|\bstart application\b/i.test(page)) {
|
|
228
|
-
|
|
228
|
+
const title = page.match(/^\s*-?\s*Page Title:\s*(.+)$/m)?.[1]?.trim().slice(0, 300); // names a posting pasted with none (#1098)
|
|
229
|
+
return { state: "live", jobUrl: parsed.toString(), applyUrl: parsed.toString(), evidence: "apply_control_present", ...(title ? { title } : {}) };
|
|
229
230
|
}
|
|
230
231
|
return { state: "unverifiable", jobUrl: parsed.toString(), reason: "no_active_apply_path" };
|
|
231
232
|
}
|