hirify-cli 0.6.2 → 0.6.4
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.
- package/bin/lib/commands.js +6 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/skills/hirify/SKILL.md +1 -1
package/bin/lib/commands.js
CHANGED
|
@@ -483,15 +483,18 @@ async function cmdVacancyApply(args, words) {
|
|
|
483
483
|
const res = await callCapability('applications.apply', {
|
|
484
484
|
params: { slug },
|
|
485
485
|
payload: { ...(profile ? { profile_id: Number(profile) } : {}), ...(cover ? { cover_letter: cover } : {}) },
|
|
486
|
-
allow: [201, 404, 422, 502],
|
|
486
|
+
allow: [201, 404, 409, 422, 502],
|
|
487
487
|
})
|
|
488
488
|
|
|
489
489
|
if (res.status === 404) die('there is no vacancy with that slug.')
|
|
490
490
|
if (res.status === 502) throw new CliError('outcome_unknown', 'The application result could not be confirmed. Check your applications before trying again.', { status: 502 })
|
|
491
|
-
if (res.status === 422) {
|
|
491
|
+
if (res.status === 422 || res.status === 409) {
|
|
492
492
|
// These come from the same rules the site applies: archived, flagged, hosted
|
|
493
493
|
// elsewhere, someone else's profile. They are written to be read, so pass them on
|
|
494
|
-
// instead of flattening every one of them into "something went wrong".
|
|
494
|
+
// instead of flattening every one of them into "something went wrong". A repeat
|
|
495
|
+
// application is a 409 since 30.09 and names the existing application_id - the
|
|
496
|
+
// one line the person needs. (An action_required 409 never reaches here: the api
|
|
497
|
+
// layer raises it before any allow list is consulted.)
|
|
495
498
|
die(serverMessage(res.body) || 'the application was not accepted. Please check the vacancy and the profile.')
|
|
496
499
|
}
|
|
497
500
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hirify-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "hirify-cli",
|
|
9
|
-
"version": "0.6.
|
|
9
|
+
"version": "0.6.4",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"cross-spawn": "7.0.6",
|
package/package.json
CHANGED
package/skills/hirify/SKILL.md
CHANGED
|
@@ -6,7 +6,7 @@ description: Job search through Hirify - vacancies from the user's saved feeds,
|
|
|
6
6
|
# Hirify job search
|
|
7
7
|
|
|
8
8
|
Use the Hirify job board through the `hirify` CLI. This file gives the working order; `reference.md`
|
|
9
|
-
has every command
|
|
9
|
+
has every command; `hirify intro` prints the playbook: hirify.me/agent-playbook.txt.
|
|
10
10
|
|
|
11
11
|
## Setup and automation
|
|
12
12
|
|