job-pro 1.0.82 → 1.0.84

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/dist/apply.js CHANGED
@@ -554,9 +554,10 @@ async function buildMultipartForm(staged) {
554
554
  * → { code:0, data:{ upload_url, attachment_id, fields:{…} } }
555
555
  * 2. POST/PUT to data.upload_url (lf-package-cn.feishucdn.com or similar)
556
556
  * multipart/form-data with fields[…] + file bytes
557
- * 3. POST {host}/api/v1/resume/apply
558
- * body: { post_id, attachment_id, applicant_info:{ name, email, phone } }
559
- * { code:0, data:{ application_id } }
557
+ * 3. POST {host}/api/v1/user/applications (was /api/v1/resume/apply
558
+ * pre-1.0.62; the real route discovered via atsx-throne SPA chunk
559
+ * dump). Body: { post_id, attachment_id, applicant_info:{ name,
560
+ * email, phone } } → { code:0, data:{ application_id } }
560
561
  *
561
562
  * Session.json must contain valid Feishu cookies (typically `_csrf_token`,
562
563
  * `lark_oapi_session`, `passport_csrf_token`) for the host.
package/dist/index.js CHANGED
@@ -833,6 +833,11 @@ async function runCompany(adapter, company, rawArgs) {
833
833
  return emit({ mode: "really-submit", staged, submit_kind: kind, session_used: true, result }, compact);
834
834
  }
835
835
  if (!isGenericMultipart) {
836
+ // Reachable only if a schema returns a SubmitKind that isn't in the
837
+ // current taxonomy (multipart-anon/session/feishu-3-step/moka-aes/
838
+ // beisen-wecruit/beisen-italent/cdp-real-browser/external). The
839
+ // SubmitKind type permits `(string & {})` extensibility, so a future
840
+ // contributor adding a new family without wiring it would land here.
836
841
  return emit({
837
842
  ok: false,
838
843
  source: company,
@@ -841,12 +846,12 @@ async function runCompany(adapter, company, rawArgs) {
841
846
  staged,
842
847
  submit_kind: kind,
843
848
  submit_notes: sr.schema.submit_notes,
844
- message: `submit_kind="${kind}" this adapter family doesn't yet have an ` +
845
- `executor wired. The application schema + submit endpoint are ` +
846
- `documented (see submit_notes), but firing the submission needs a ` +
847
- `family-specific multi-step flow (token exchange / AES envelope / ` +
848
- `CDP / etc.). Landing per-family executors is the next iteration of ` +
849
- `Phase 2. Use --debug-submit-to <url> to inspect what we have today.`,
849
+ message: `submit_kind="${kind}" is unknown no wired executor. The 7 ` +
850
+ `current families are: multipart-anon, multipart-session, ` +
851
+ `feishu-3-step, moka-aes, beisen-wecruit, beisen-italent, ` +
852
+ `cdp-real-browser. To add a new family, wire an executor in ` +
853
+ `cli/src/apply.ts. Use --debug-submit-to <url> in the meantime ` +
854
+ `to verify the wire format you'd want.`,
850
855
  }, compact);
851
856
  }
852
857
  // Non-anon multipart families need session.json.
package/dist/unitree.js CHANGED
@@ -49,7 +49,6 @@ import { extractResumeSignals, scoreOverlap, checkResume } from "./tencent.js";
49
49
  export { checkResume };
50
50
  const SOURCE = "unitree.com";
51
51
  const POSITION_PAGE = "https://www.unitree.com/position/";
52
- const POSITION_PAGE_CN = "https://www.unitree.com/cn/position/";
53
52
  const DETAIL_URL = (jobCode) => `https://www.unitree.com/position/${encodeURIComponent(jobCode)}`;
54
53
  const DEFAULT_HEADERS = {
55
54
  "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "job-pro",
3
- "version": "1.0.82",
3
+ "version": "1.0.84",
4
4
  "description": "Query Chinese big-tech campus recruiting + auto-apply from your terminal. 50 companies, all 50 live (46 via official APIs, 4 via Liepin third-party fallback). 45/50 with end-to-end verified apply endpoints; 5 structurally-external (Liepin IM × 4 + Unitree WeChat). No signup, no token, no server.",
5
5
  "homepage": "https://job.ha7ch.com",
6
6
  "repository": "https://github.com/HA7CH/job-pro",