@hadoku/jobplatform 3.42.123 → 3.42.125

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/README.md CHANGED
@@ -46,15 +46,17 @@ versions and redeploy — see [contributing.md#how-it-deploys](docs/guide/contri
46
46
 
47
47
  A fresh clone installs, builds and passes every check with no credential and no
48
48
  `.npmrc`: the `@wolffm/*` dev dependencies are npm aliases of their public npmjs copies
49
- (`npm:@hadoku/<name>`). The dev server and the signed-in e2e suite talk to the real
50
- hadoku.me API, so those need your own credential. Getting one is the same for every
51
- hadoku repo, so the steps live on one page:
49
+ (`npm:@hadoku/<name>`). The dev server talks to the real hadoku.me API and needs
50
+ only your own hadoku.me key: open `localhost:5173/?apiKey=<key>` once to sign in.
51
+ The signed-in e2e suite is the one command that needs a credential, because it signs
52
+ in as the shared e2e account. Getting one is the same for every hadoku repo, so the
53
+ steps live on one page:
52
54
  **[hadoku.me/docs/contributing/#jobplatform](https://hadoku.me/docs/contributing/#jobplatform)**.
53
- The identity to ask for is `jobplatform-service-key`. Once you have it, `pnpm dev` and
54
- `pnpm test:e2e` work as they are: they run through dev-vault (a dev dependency).
55
+ The identity to ask for is `jobplatform-service-key`. Once you have it,
56
+ `pnpm test:e2e` works as it is: it runs through dev-vault (a dev dependency).
55
57
 
56
- New to the project? [docs/ONBOARDING.md](docs/ONBOARDING.md) sets up all three
57
- repos the pipeline spans, from GitHub access to a first passing test.
58
+ New to the project? [docs/ONBOARDING.md](docs/ONBOARDING.md) sets up any one of the
59
+ three repos the pipeline spans, without the other two.
58
60
 
59
61
  ---
60
62
 
@@ -64,7 +66,7 @@ Requires Node 22+ and `pnpm`.
64
66
 
65
67
  ```bash
66
68
  pnpm install
67
- pnpm dev # dev server on :5173, needs a credential — see Getting access above
69
+ pnpm dev # dev server on :5173, sign in with ?apiKey= — see Getting access above
68
70
  ```
69
71
 
70
72
  The rest of the commands, the theming and logging conventions, and how a change
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, Fragment as G, jsx as a } from "react/jsx-runtime";
2
2
  import { useRef as K, useState as l, useEffect as Q } from "react";
3
- import { u as V, i as h, J as X } from "./entry-DxJgMtQK.js";
4
- import { l as I, s as ee, a as te, d as ae } from "./pipeline-D1w1b6S9.js";
3
+ import { u as V, i as h, J as X } from "./entry-BPQSVIdk.js";
4
+ import { l as I, s as ee, a as te, d as ae } from "./pipeline-YSKh77yD.js";
5
5
  const ne = {
6
6
  notes: null,
7
7
  priority: null,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, jsx as e, Fragment as K } from "react/jsx-runtime";
2
2
  import { useState as _, useMemo as W, useCallback as Q, useEffect as V } from "react";
3
- import { l as M, a as J, J as S, s as U, f as X, b as Z, u as ee, c as ne, d as te } from "./entry-DxJgMtQK.js";
3
+ import { l as M, a as J, J as S, s as U, f as X, b as Z, u as ee, c as ne, d as te } from "./entry-BPQSVIdk.js";
4
4
  function F(r) {
5
5
  return r.replace(/\*/g, " ").toLowerCase().replace(/n't\b/g, " not ").replace(/[^a-z0-9]+/g, " ").trim();
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as a, jsxs as d } from "react/jsx-runtime";
2
2
  import { useState as s, useRef as f, useEffect as h } from "react";
3
- import { u as _, k as j } from "./entry-DxJgMtQK.js";
3
+ import { u as _, k as j } from "./entry-BPQSVIdk.js";
4
4
  function y(e) {
5
5
  const t = e.work_experience?.find((i) => i.current) ?? e.work_experience?.[0];
6
6
  return [
@@ -1,5 +1,5 @@
1
1
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { u as _, J as j, j as g } from "./entry-DxJgMtQK.js";
2
+ import { u as _, J as j, j as g } from "./entry-BPQSVIdk.js";
3
3
  const o = (s) => s === null ? "—" : `${Math.round(s * 100)}%`;
4
4
  function h(s) {
5
5
  return (/* @__PURE__ */ new Date(`${s}T00:00:00Z`)).toLocaleDateString(void 0, { month: "short", day: "numeric", timeZone: "UTC" });
@@ -1,7 +1,7 @@
1
1
  import { jsxs as t, jsx as a, Fragment as d } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as _ } from "react";
3
- import { g as y, J as b, D as v } from "./entry-DxJgMtQK.js";
4
- import { g, p as E, a as P } from "./packets-C2ub3995.js";
3
+ import { g as y, J as b, D as v } from "./entry-BPQSVIdk.js";
4
+ import { g, p as E, a as P } from "./packets-BZ_hk5bs.js";
5
5
  function L({ auth: f, jobId: m, slug: n, onClose: s }) {
6
6
  const [e, h] = i(null), [o, k] = i(null), [r, j] = i(null), [p, u] = i(null);
7
7
  _(() => {
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { u, e as k, J as p } from "./entry-DxJgMtQK.js";
3
- import { p as j } from "./packets-C2ub3995.js";
2
+ import { u, e as k, J as p } from "./entry-BPQSVIdk.js";
3
+ import { p as j } from "./packets-BZ_hk5bs.js";
4
4
  function h(c) {
5
5
  const t = new Date(c);
6
6
  return Number.isNaN(t.getTime()) ? c : t.toLocaleDateString();
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as a, Fragment as F } from "react/jsx-runtime";
2
2
  import { useState as h, useEffect as P, useMemo as I } from "react";
3
- import { J as D, u as O, i as L, h as B } from "./entry-DxJgMtQK.js";
4
- import { i as J, g as Y } from "./pipeline-D1w1b6S9.js";
3
+ import { J as D, u as O, i as L, h as B } from "./entry-BPQSVIdk.js";
4
+ import { i as J, g as Y } from "./pipeline-YSKh77yD.js";
5
5
  const G = [
6
6
  { value: "saved", label: "Saved" },
7
7
  { value: "interested", label: "Interested" },
@@ -1,6 +1,6 @@
1
1
  import { jsx as a, jsxs as c } from "react/jsx-runtime";
2
2
  import { useState as y, useEffect as R } from "react";
3
- import { u as A, k as F, m as P, J as L, n as M, i as C, o as w, p as D } from "./entry-DxJgMtQK.js";
3
+ import { u as A, k as F, m as P, J as L, n as M, i as C, o as w, p as D } from "./entry-BPQSVIdk.js";
4
4
  const N = (e, n) => e instanceof L ? e.message : n, Y = [
5
5
  { key: "name", label: "Full name" },
6
6
  { key: "email", label: "Email", type: "email" },
@@ -1,6 +1,33 @@
1
+ /**
2
+ * "Apply for me", as one call the feed and the drawer both make.
3
+ *
4
+ * Handing a posting to the form runner is four requests, not one: tailor the
5
+ * résumé, build the rest of the kit, mint the packet link, then queue. The
6
+ * variant_slug the mint returns is what `POST /jobs/:id/apply` pins onto the
7
+ * application row, so a later re-tailor cannot change what an in-flight
8
+ * application sends — which is why the packet has to exist BEFORE the queue
9
+ * call, and why this is a sequence rather than a button wired straight to the
10
+ * queue endpoint.
11
+ *
12
+ * It lives here rather than in a component because two places now start it (a
13
+ * feed card and the drawer) and both must run the same sequence. Duplicating
14
+ * it would mean duplicating the rate-limit reasoning below, and that is exactly
15
+ * the kind of comment that only gets fixed in one copy.
16
+ */
17
+ import { type ApplicationExtras } from './jobs';
1
18
  import type { Auth } from './auth';
2
19
  /** Where one job is in the sequence. `error` carries a reason; the rest don't. */
3
20
  export type ApplyPhase = 'idle' | 'waiting' | 'preparing' | 'queueing' | 'queued' | 'error';
21
+ /** What one run of the sequence produced. */
22
+ export interface PreparedPacket {
23
+ slug: string;
24
+ url: string;
25
+ resume: string;
26
+ coverLetter: string;
27
+ /** The whole kit, or null when its call failed — `kitError` then says why. */
28
+ kit: ApplicationExtras | null;
29
+ kitError: string | null;
30
+ }
4
31
  export interface ApplyStatus {
5
32
  phase: ApplyPhase;
6
33
  error?: string;
@@ -15,12 +42,7 @@ export interface ApplyStatus {
15
42
  * calls used to stack past Groq's per-minute token cap so the trailing one
16
43
  * 500'd, leaving a packet with a résumé and no kit.
17
44
  */
18
- export declare function prepareApplicationPacket(jobId: string, auth: Auth, onPhase?: (phase: ApplyPhase) => void): Promise<{
19
- slug: string;
20
- url: string;
21
- resume: string;
22
- coverLetter: string;
23
- }>;
45
+ export declare function prepareApplicationPacket(jobId: string, auth: Auth, onPhase?: (phase: ApplyPhase) => void): Promise<PreparedPacket>;
24
46
  /**
25
47
  * Handing a posting to the runner is now ONE request.
26
48
  *
@@ -1 +1 @@
1
- {"version":3,"file":"applyQueue.d.ts","sourceRoot":"","sources":["../../src/api/applyQueue.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAElC,kFAAkF;AAClF,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3F,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,UAAU,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GACpC,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CA6B7E;AAED;;;;;;;;;;;;;;;GAeG;AAEH,kFAAkF;AAClF,wBAAsB,YAAY,CAChC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,GACtC,OAAO,CAAC,IAAI,CAAC,CAgBf"}
1
+ {"version":3,"file":"applyQueue.d.ts","sourceRoot":"","sources":["../../src/api/applyQueue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAElC,kFAAkF;AAClF,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO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