job-pro 1.0.89 → 1.0.90

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -700,16 +700,20 @@ async function runCompany(adapter, company, rawArgs) {
700
700
  if (debugUrl) {
701
701
  // Route through the family-specific executor where appropriate so the
702
702
  // user can verify each step's wire format against their echo server.
703
+ // --via-cdp forces the puppeteer DOM path even in debug mode (CDP's
704
+ // debug mode just navigates the apply_url and pauses for 3s without
705
+ // submitting — useful to verify the SPA loads correctly).
703
706
  const kindForDebug = sr.schema.submit_kind ?? "multipart-anon";
704
- const debugExecutor = kindForDebug === "feishu-3-step" ? executeFeishu3Step :
705
- kindForDebug === "moka-aes" ? executeMokaApply :
706
- kindForDebug === "beisen-wecruit" ? executeBeisenWecruit :
707
- kindForDebug === "beisen-italent" ? executeBeisenITalent :
708
- kindForDebug === "cdp-real-browser" ? executeCdpRealBrowser :
709
- null;
707
+ const debugExecutor = viaCdp ? executeCdpRealBrowser :
708
+ kindForDebug === "feishu-3-step" ? executeFeishu3Step :
709
+ kindForDebug === "moka-aes" ? executeMokaApply :
710
+ kindForDebug === "beisen-wecruit" ? executeBeisenWecruit :
711
+ kindForDebug === "beisen-italent" ? executeBeisenITalent :
712
+ kindForDebug === "cdp-real-browser" ? executeCdpRealBrowser :
713
+ null;
710
714
  if (debugExecutor) {
711
715
  const result = await debugExecutor(staged, session, { kind: "debug", url: debugUrl });
712
- return emit({ mode: "debug-submit", staged, submit_kind: kindForDebug, result }, compact);
716
+ return emit({ mode: "debug-submit", staged, submit_kind: kindForDebug, via_cdp: viaCdp, result }, compact);
713
717
  }
714
718
  const result = await submitApplication(staged, { kind: "debug", url: debugUrl });
715
719
  return emit({ mode: "debug-submit", staged, submit_kind: kindForDebug, result }, compact);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "job-pro",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
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",