@hadoku/resume-bot 3.15.117 → 3.15.118

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 (39) hide show
  1. package/dist/{index-D6Xd4aSy.js → index-DTz0YFfl.js} +1189 -201
  2. package/dist/{node.browser-CP5wfAdg.js → node.browser-B0AdQysu.js} +1 -1
  3. package/dist/{node.browser-Bk9bty0A.js → node.browser-iYPBhOfA.js} +2 -2
  4. package/dist/worker/application-extras.d.ts +4 -1
  5. package/dist/worker/application-extras.d.ts.map +1 -1
  6. package/dist/worker/blocks.d.ts +6 -1
  7. package/dist/worker/blocks.d.ts.map +1 -1
  8. package/dist/worker/builder.d.ts +20 -6
  9. package/dist/worker/builder.d.ts.map +1 -1
  10. package/dist/worker/contact.d.ts +21 -1
  11. package/dist/worker/contact.d.ts.map +1 -1
  12. package/dist/worker/cover-letter.d.ts +4 -1
  13. package/dist/worker/cover-letter.d.ts.map +1 -1
  14. package/dist/worker/erase.d.ts +31 -0
  15. package/dist/worker/erase.d.ts.map +1 -0
  16. package/dist/worker/fit.d.ts +32 -0
  17. package/dist/worker/fit.d.ts.map +1 -0
  18. package/dist/worker/form-answers.d.ts +4 -1
  19. package/dist/worker/form-answers.d.ts.map +1 -1
  20. package/dist/worker/index.d.ts +18 -5
  21. package/dist/worker/index.d.ts.map +1 -1
  22. package/dist/worker/paper.d.ts +16 -0
  23. package/dist/worker/paper.d.ts.map +1 -0
  24. package/dist/worker/pdf.d.ts +25 -0
  25. package/dist/worker/pdf.d.ts.map +1 -1
  26. package/dist/worker/resume-import.d.ts +33 -0
  27. package/dist/worker/resume-import.d.ts.map +1 -0
  28. package/dist/worker/resume.d.ts +2 -1
  29. package/dist/worker/resume.d.ts.map +1 -1
  30. package/dist/worker/scope.d.ts +105 -0
  31. package/dist/worker/scope.d.ts.map +1 -0
  32. package/dist/worker/skeleton.d.ts +31 -2
  33. package/dist/worker/skeleton.d.ts.map +1 -1
  34. package/dist/worker/tailored-resume.d.ts +8 -1
  35. package/dist/worker/tailored-resume.d.ts.map +1 -1
  36. package/dist/worker/variants.d.ts +49 -5
  37. package/dist/worker/variants.d.ts.map +1 -1
  38. package/dist/worker.js +1 -1
  39. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { A as AnthropicError } from "./index-D6Xd4aSy.js";
1
+ import { A as AnthropicError } from "./index-DTz0YFfl.js";
2
2
  function unavailable(module) {
3
3
  return new Proxy({}, {
4
4
  get(_target, property) {
@@ -1,5 +1,5 @@
1
- import { A as AnthropicError } from "./index-D6Xd4aSy.js";
2
- import { D, M } from "./index-D6Xd4aSy.js";
1
+ import { A as AnthropicError } from "./index-DTz0YFfl.js";
2
+ import { D, M } from "./index-DTz0YFfl.js";
3
3
  function nodeOnly(name) {
4
4
  throw new AnthropicError(`${name} requires Node.js or a Node-compatible runtime`);
5
5
  }
@@ -1,6 +1,7 @@
1
1
  import type { KVNamespace } from '@cloudflare/workers-types';
2
2
  import { type LLMChain } from './llm.js';
3
3
  import { type ContactProfile } from './contact.js';
4
+ import { type ContentScope } from './scope.js';
4
5
  export interface ApplicationExtrasRequest {
5
6
  job_title: string;
6
7
  company: string;
@@ -59,5 +60,7 @@ export interface ApplicationExtrasResponse extends ApplicationExtras {
59
60
  * tailored résumé (so talking points and screening answers match what was sent).
60
61
  * The standard-fields block is assembled deterministically, not generated.
61
62
  */
62
- export declare function generateApplicationExtras(client: LLMChain, kv: KVNamespace, req: ApplicationExtrasRequest): Promise<ApplicationExtrasResponse>;
63
+ export declare function generateApplicationExtras(client: LLMChain, kv: KVNamespace, req: ApplicationExtrasRequest,
64
+ /** Whose contact profile grounds the kit, and whose cache it lives in. */
65
+ scope?: ContentScope): Promise<ApplicationExtrasResponse>;
63
66
  //# sourceMappingURL=application-extras.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-extras.d.ts","sourceRoot":"","sources":["../../worker/src/application-extras.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE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E,WAAW,EACf,GAAG,EAAE,wBAAwB,GAC5B,OAAO,CAAC,yBAAyB,CAAC,CAuIpC"}
1
+ {"version":3,"file":"application-extras.d.ts","sourceRoot":"","sources":["../../worker/src/application-extras.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,EAAsB,KAAK,QAAQ,EAAoB,MAAM,UAAU,CAAA;AAK9E,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,cAAc,CAAA;AACrB,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAKtE,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,uFAAuF;IACvF,eAAe,EAAE,MAAM,CAAA;IACvB;;+EAE2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;OAKG;IACH,qBAAqB,EAAE,MAAM,CAAA;IAC7B,4DAA4D;IAC5D,WAAW,EAAE,MAAM,CAAA;IACnB,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAA;IAChB,2EAA2E;IAC3E,iBAAiB,EAAE,eAAe,EAAE,CAAA;IACpC,+CAA+C;IAC/C,WAAW,EAAE,MAAM,CAAA;IACnB,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAA;IACrB,kDAAkD;IAClD,cAAc,EAAE,MAAM,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,mFAAmF;IACnF,YAAY,CAAC,EAAE,eAAe,EAAE,CAAA;IAChC,0EAA0E;IAC1E,eAAe,EAAE,MAAM,CAAA;IACvB,4EAA4E;IAC5E,OAAO,EAAE,cAAc,CAAA;IACvB,MAAM,EAAE,OAAO,CAAA;CAChB;AAaD;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,QAAQ,EAChB,EAAE,EAAE,WAAW,EACf,GAAG,EAAE,wBAAwB;AAC7B,0EAA0E;AAC1E,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,yBAAyB,CAAC,CAwIpC"}
@@ -1,4 +1,5 @@
1
1
  import type { KVNamespace } from '@cloudflare/workers-types';
2
+ import { type ContentScope } from './scope.js';
2
3
  export interface ResumeBlock {
3
4
  id: string;
4
5
  type: 'experience' | 'project' | 'skills' | 'education' | 'summary' | 'header';
@@ -7,6 +8,10 @@ export interface ResumeBlock {
7
8
  content: string;
8
9
  priority: number;
9
10
  }
10
- export declare function getAllBlocks(kv: KVNamespace): Promise<ResumeBlock[]>;
11
+ /**
12
+ * Every block in one scope, in render order. Defaults to the owner's global
13
+ * set; a user scope reads only that user's keys (scope.ts).
14
+ */
15
+ export declare function getAllBlocks(kv: KVNamespace, scope?: ContentScope): Promise<ResumeBlock[]>;
11
16
  export declare function cacheKey(prefix: string, ...parts: string[]): Promise<string>;
12
17
  //# sourceMappingURL=blocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../worker/src/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAA;IAC9E,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wBAAsB,YAAY,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAc1E;AAED,wBAAsB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CASlF"}
1
+ {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../worker/src/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAEtE,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAA;IAC9E,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAChC,EAAE,EAAE,WAAW,EACf,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,WAAW,EAAE,CAAC,CAexB;AAED,wBAAsB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CASlF"}
@@ -1,5 +1,6 @@
1
1
  import type { KVNamespace } from '@cloudflare/workers-types';
2
2
  import { type ResumeBlock } from './blocks.js';
3
+ import { type ContentScope } from './scope.js';
3
4
  export interface BlockFeedbackEntry {
4
5
  text: string;
5
6
  updated: string;
@@ -12,10 +13,23 @@ export type BlockFeedback = Record<string, BlockFeedbackEntry>;
12
13
  * violation; returns the typed block on success.
13
14
  */
14
15
  export declare function validateBlock(raw: unknown): ResumeBlock;
16
+ /**
17
+ * Drop every cached tailored resume / cover letter. Block edits change what the
18
+ * tailoring pipeline would produce, but those caches are keyed by job hash, not
19
+ * by block — so a plain edit would otherwise serve stale output for 24h.
20
+ */
21
+ export declare function bustDerivedCaches(kv: KVNamespace, scope: ContentScope): Promise<void>;
15
22
  /** Create or update a block. New ids are appended to the render index. */
16
- export declare function upsertBlock(kv: KVNamespace, block: ResumeBlock): Promise<void>;
23
+ export declare function upsertBlock(kv: KVNamespace, block: ResumeBlock, scope?: ContentScope): Promise<void>;
24
+ /**
25
+ * Replace a scope's whole block set in one go: the import path. Blocks no
26
+ * longer present are deleted, the index is rewritten in the given order, and
27
+ * the scope's derived caches are busted once. Refuses the owner's set, which
28
+ * is edited block by block through the admin builder only.
29
+ */
30
+ export declare function replaceBlocks(kv: KVNamespace, blocks: ResumeBlock[], scope: ContentScope): Promise<void>;
17
31
  /** Delete a block + drop it from the index. Returns false if it wasn't present. */
18
- export declare function deleteBlock(kv: KVNamespace, id: string): Promise<boolean>;
32
+ export declare function deleteBlock(kv: KVNamespace, id: string, scope?: ContentScope): Promise<boolean>;
19
33
  /**
20
34
  * Replace the render order. `ids` must be a permutation of the current index.
21
35
  *
@@ -24,10 +38,10 @@ export declare function deleteBlock(kv: KVNamespace, id: string): Promise<boolea
24
38
  * though no block's content moved. It did not bust before, which only went
25
39
  * unnoticed because the 24h TTL swept everything overnight anyway.
26
40
  */
27
- export declare function reorderBlocks(kv: KVNamespace, ids: string[]): Promise<void>;
28
- export declare function getFeedback(kv: KVNamespace): Promise<BlockFeedback>;
41
+ export declare function reorderBlocks(kv: KVNamespace, ids: string[], scope?: ContentScope): Promise<void>;
42
+ export declare function getFeedback(kv: KVNamespace, scope?: ContentScope): Promise<BlockFeedback>;
29
43
  /** Upsert (or clear, when text is empty) one block's review note. */
30
- export declare function setFeedback(kv: KVNamespace, id: string, text: string): Promise<BlockFeedback>;
44
+ export declare function setFeedback(kv: KVNamespace, id: string, text: string, scope?: ContentScope): Promise<BlockFeedback>;
31
45
  /** Blocks in render order — the exact array shape `blocks.json` holds, for git backup. */
32
- export declare function exportBlocks(kv: KVNamespace): Promise<ResumeBlock[]>;
46
+ export declare function exportBlocks(kv: KVNamespace, scope?: ContentScope): Promise<ResumeBlock[]>;
33
47
  //# sourceMappingURL=builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../worker/src/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AA6B5D,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AACD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAA;AAE9D;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW,CAmCvD;AAuBD,0EAA0E;AAC1E,wBAAsB,WAAW,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAQpF;AAED,mFAAmF;AACnF,wBAAsB,WAAW,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO/E;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CASjF;AAED,wBAAsB,WAAW,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAGzE;AAED,qEAAqE;AACrE,wBAAsB,WAAW,CAC/B,EAAE,EAAE,WAAW,EACf,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,aAAa,C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G,EAAE,MAAM,EAAE,EACb,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,IAAI,CAAC,CASf;AAED,wBAAsB,WAAW,CAC/B,EAAE,EAAE,WAAW,EACf,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,aAAa,CAAC,CAGxB;AAED,qEAAqE;AACrE,wBAAsB,WAAW,CAC/B,EAAE,EAAE,WAAW,EACf,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,aAAa,CAAC,CASxB;AAED,0FAA0F;AAC1F,wBAAsB,YAAY,CAChC,EAAE,EAAE,WAAW,EACf,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,WAAW,EAAE,CAAC,CAExB"}
@@ -1,4 +1,6 @@
1
1
  import type { KVNamespace } from '@cloudflare/workers-types';
2
+ import { type ContentScope } from './scope.js';
3
+ import { type Paper } from './paper.js';
2
4
  /**
3
5
  * The owner's constant application facts — the boring, repeated form fields plus
4
6
  * the context the extras generator needs to answer "why us", salary and
@@ -25,7 +27,25 @@ export interface ContactProfile {
25
27
  salary_line: string;
26
28
  }
27
29
  export declare const CONTACT_KEY = "resume:profile:contact";
28
- export declare function getContactProfile(kv: KVNamespace): Promise<ContactProfile | null>;
30
+ /** Thrown when a user-scoped generator needs a contact profile the user has not stored. */
31
+ export declare class NoContactProfileError extends Error {
32
+ readonly code = "NO_CONTACT_PROFILE";
33
+ constructor();
34
+ }
35
+ /** The owner's at CONTACT_KEY; a user's at `resume:profile:contact:<userId>`. */
36
+ export declare function getContactProfile(kv: KVNamespace, scope?: ContentScope): Promise<ContactProfile | null>;
37
+ /**
38
+ * The paper a scope's PDFs are set on: Letter for the owner (unchanged),
39
+ * otherwise from the user's contact location (A4 unless US or Canada).
40
+ */
41
+ export declare function paperFor(kv: KVNamespace, scope: ContentScope): Promise<Paper>;
42
+ export declare function putContactProfile(kv: KVNamespace, profile: ContactProfile, scope: ContentScope): Promise<void>;
43
+ /**
44
+ * An untrusted contact object, made safe to store: only the known fields, each
45
+ * a trimmed string (missing becomes ''), each capped. Returns null when there
46
+ * is no name, since every generated answer signs with it.
47
+ */
48
+ export declare function sanitizeContact(raw: unknown): ContactProfile | null;
29
49
  /**
30
50
  * The copy-paste block for the boring repeated fields on an application form.
31
51
  * Deterministic — assembled from the contact profile, no LLM involved.
@@ -1 +1 @@
1
- {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../worker/src/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAA;IACjB,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,WAAW,2BAA2B,CAAA;AAEnD,wBAAsB,iBAAiB,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAGvF;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,cAAc,GAAG,MAAM,CAW9D"}
1
+ {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../worker/src/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AACtE,OAAO,EAAoB,KAAK,KAAK,EAAE,MAAM,YAAY,CAAA;AAEzD;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAA;IACjB,qEAAqE;IACrE,UAAU,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,WAAW,2BAA2B,CAAA;AAEnD,2FAA2F;AAC3F,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,IAAI,wBAAuB;;CAKrC;AAED,iFAAiF;AACjF,wBAAsB,iBAAiB,CACrC,EAAE,EAAE,WAAW,EACf,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAGhC;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,CAGnF;AAED,wBAAsB,iBAAiB,CACrC,EAAE,EAAE,WAAW,EACf,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,YAAY,GAClB,OAAO,CAAC,IAAI,CAAC,CAGf;AAiBD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc,GAAG,IAAI,CASnE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,cAAc,GAAG,MAAM,CAW9D"}
@@ -1,5 +1,6 @@
1
1
  import type { KVNamespace } from '@cloudflare/workers-types';
2
2
  import { type LLMChain } from './llm.js';
3
+ import { type ContentScope } from './scope.js';
3
4
  export interface CoverLetterRequest {
4
5
  job_title: string;
5
6
  company: string;
@@ -12,5 +13,7 @@ export interface CoverLetterResponse {
12
13
  }
13
14
  export declare function generateCoverLetter(client: LLMChain, kv: KVNamespace, resumeContent: string, req: CoverLetterRequest,
14
15
  /** Epoch ms this generation must finish by. See generateTailoredResume. */
15
- deadline?: number): Promise<CoverLetterResponse>;
16
+ deadline?: number,
17
+ /** Whose cache this letter lives in; the caller passes that scope's résumé. */
18
+ scope?: ContentScope): Promise<CoverLetterResponse>;
16
19
  //# sourceMappingURL=cover-letter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cover-letter.d.ts","sourceRoot":"","sources":["../../worker/src/cover-letter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,EAAsB,KAAK,QAAQ,EAAoB,MAAM,UAAU,CAAA;AAS9E,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,gBAAgB,CAAA;CACnC;AAED,MAAM,WAAW,mBAAmB;IAClC,qBAAqB,EAAE,MAAM,CAAA;IAC7B,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,QAAQ,EAChB,EAAE,EAAE,WAAW,EACf,aAAa,EAAE,MAAM,EACrB,GAAG,EAAE,kBAAkB;AACvB,2EAA2E;AAC3E,QAAQ,GAAE,MAAyC,GAClD,OAAO,CAAC,mBAAmB,CAAC,CA6D9B"}
1
+ {"version":3,"file":"cover-letter.d.ts","sourceRoot":"","sources":["../../worker/src/cover-letter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,EAAsB,KAAK,QAAQ,EAAoB,MAAM,UAAU,CAAA;AAK9E,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAKtE,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,gBAAgB,CAAA;CACnC;AAED,MAAM,WAAW,mBAAmB;IAClC,qBAAqB,EAAE,MAAM,CAAA;IAC7B,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,QAAQ,EAChB,EAAE,EAAE,WAAW,EACf,aAAa,EAAE,MAAM,EACrB,GAAG,EAAE,kBAAkB;AACvB,2EAA2E;AAC3E,QAAQ,GAAE,MAAyC;AACnD,+EAA+E;AAC/E,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,mBAAmB,CAAC,CAmE9B"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The account-erase hook's work (hadoku_site IDENTITY_MODEL R12, "Erase
3
+ * hooks"): everything one person has stored here, by their userId. Their
4
+ * blocks, block feedback, contact profile, variants and derived caches.
5
+ *
6
+ * Only keys that carry the userId are touched, so the owner's set (the
7
+ * original global keys, which name nobody) is never erased by this, even for
8
+ * the owner's own id: it is the site's public résumé, not account data.
9
+ *
10
+ * A person's slug pointers are not deleted but overwritten with ERASED_POINTER:
11
+ * a deleted pointer would turn their shared link into an unclaimed slug, which
12
+ * serves the owner's resume. The tombstone keeps the link answering "gone" and
13
+ * drops the userId it held.
14
+ *
15
+ * Idempotent: a second run finds nothing to erase, so the edge's second call
16
+ * and a retry after a failure part way are both safe.
17
+ */
18
+ import type { KVNamespace } from '@cloudflare/workers-types';
19
+ /** What one erase removed, by kind: the hook's `erased` counts. */
20
+ export interface EraseCounts {
21
+ /** Block keys: the index, every block and the feedback map. */
22
+ blocks: number;
23
+ contact_profile: number;
24
+ variants: number;
25
+ /** Cached tailored resumes, cover letters, extras and form answers. */
26
+ cached_outputs: number;
27
+ /** Slug pointers overwritten so the person's old links read as gone. */
28
+ links_retired: number;
29
+ }
30
+ export declare function eraseUserData(kv: KVNamespace, userId: string): Promise<EraseCounts>;
31
+ //# sourceMappingURL=erase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erase.d.ts","sourceRoot":"","sources":["../../worker/src/erase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AA+C5D,mEAAmE;AACnE,MAAM,WAAW,WAAW;IAC1B,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAA;IACd,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,uEAAuE;IACvE,cAAc,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAczF"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Fit a non-owner résumé onto a page budget.
3
+ *
4
+ * The owner's résumé has its own fixed three-page skeleton. Everyone else's is
5
+ * held to GENERIC_MAX_PAGES (two pages: the norm for most applications) by
6
+ * condensing it step by step until it fits, measured with the same typesetter
7
+ * that renders the PDF:
8
+ *
9
+ * 1. Skills written as a bullet list become one line-wrapped paragraph
10
+ * (nothing is lost, only line breaks).
11
+ * 2. Bullets per job are capped by recency: the latest job keeps the most,
12
+ * older jobs fewer, the oldest come down to one or two.
13
+ * 3. Optional sections (hackathons, awards, anything outside the standard
14
+ * set) and certifications are shortened, and as a last resort the optional
15
+ * sections are dropped.
16
+ *
17
+ * Every job heading, employer line, date and the education section always
18
+ * stay: employment history is never tailored away, only its bullets. Each job
19
+ * keeps its first bullets, so the tailoring pass orders them by relevance.
20
+ */
21
+ export declare const GENERIC_MAX_PAGES = 2;
22
+ /**
23
+ * The least-condensed version of `markdown` that `countPages` puts on at most
24
+ * `maxPages` pages. Unchanged when it already fits; the most condensed version
25
+ * when nothing does.
26
+ */
27
+ export declare function fitResumeToPages(markdown: string, maxPages: number, countPages: (markdown: string) => number): {
28
+ markdown: string;
29
+ pages: number;
30
+ condensed: boolean;
31
+ };
32
+ //# sourceMappingURL=fit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fit.d.ts","sourceRoot":"","sources":["../../worker/src/fit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,eAAO,MAAM,iBAAiB,IAAI,CAAA;AAsIlC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,GACvC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAWzD"}
@@ -1,5 +1,6 @@
1
1
  import type { KVNamespace } from '@cloudflare/workers-types';
2
2
  import { type ContactProfile } from './contact.js';
3
+ import { type ContentScope } from './scope.js';
3
4
  import { type LLMChain } from './llm.js';
4
5
  import type { ScreeningAnswer } from './application-extras.js';
5
6
  /**
@@ -32,7 +33,9 @@ export interface FormAnswersInput {
32
33
  * since the runner matches on that label. An empty answer means "the owner
33
34
  * should answer this": the model is told to return one rather than guess.
34
35
  */
35
- export declare function generateFormAnswers(client: LLMChain, kv: KVNamespace, input: FormAnswersInput, deadline?: number): Promise<ScreeningAnswer[]>;
36
+ export declare function generateFormAnswers(client: LLMChain, kv: KVNamespace, input: FormAnswersInput, deadline?: number,
37
+ /** Whose cache the answers live in; `input.contact` is already that scope's. */
38
+ scope?: ContentScope): Promise<ScreeningAnswer[]>;
36
39
  /** The `questions` a caller sent, kept only when well-formed, else undefined. */
37
40
  export declare function readQuestions(value: unknown): string[] | undefined;
38
41
  //# sourceMappingURL=form-answers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-answers.d.ts","sourceRoot":"","sources":["../../worker/src/form-answers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD,OAAO,EAAsB,KAAK,QAAQ,EAAoB,MAAM,UAAU,CAAA;AAG9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAE9D;;;;;;;;;;GAUG;AAEH,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,KAAK,CAAA;AACpC,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAErC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,MAAM,EAAE,CAAA;CACpB;AAKD;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,QAAQ,EAChB,EAAE,EAAE,WAAW,EACf,KAAK,EAAE,gBAAgB,EACvB,QAAQ,GAAE,MAAyC,GAClD,OAAO,CAAC,eAAe,EAAE,CAAC,CAoF5B;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAOlE"}
1
+ {"version":3,"file":"form-answers.d.ts","sourceRoot":"","sources":["../../worker/src/form-answers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAGtE,OAAO,EAAsB,KAAK,QAAQ,EAAoB,MAAM,UAAU,CAAA;AAG9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAE9D;;;;;;;;;;GAUG;AAEH,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,KAAK,CAAA;AACpC,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAErC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,MAAM,EAAE,CAAA;CACpB;AAKD;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,QAAQ,EAChB,EAAE,EAAE,WAAW,EACf,KAAK,EAAE,gBAAgB,EACvB,QAAQ,GAAE,MAAyC;AACnD,gFAAgF;AAChF,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,eAAe,EAAE,CAAC,CAoF5B;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,CAOlE"}
@@ -13,7 +13,10 @@
13
13
  */
14
14
  import { Hono } from 'hono';
15
15
  import type { KVNamespace } from '@cloudflare/workers-types';
16
- interface ResumeEnv {
16
+ import { type HadokuAuthContext } from '@wolffm/worker-utils';
17
+ import { type LLMChain, type LLMEnv } from './llm.js';
18
+ import { type ContentScope, type ScopeEnv } from './scope.js';
19
+ interface ResumeEnv extends ScopeEnv {
17
20
  /** Groq API key: the free fallback behind the Claude pool. See constants.ts. */
18
21
  GROQ_API_KEY?: string;
19
22
  /** Service binding to edge-router, for leasing from crossposter (claude-pool.ts). */
@@ -34,11 +37,21 @@ interface ResumeEnv {
34
37
  RATE_LIMIT_KV: KVNamespace;
35
38
  CONTENT_KV: KVNamespace;
36
39
  }
40
+ /** createEdgeAuth stores the edge-verified identity under `authContext`. */
41
+ type HandlerEnv = {
42
+ Bindings: ResumeEnv;
43
+ Variables: {
44
+ authContext: HadokuAuthContext;
45
+ };
46
+ };
37
47
  export interface ResumeHandlerOptions {
38
48
  ownerName?: string;
49
+ /**
50
+ * Builds the LLM chain for a request. Defaults to `createLLMClient`; a test
51
+ * passes a scripted chain here.
52
+ */
53
+ createClient?: (env: LLMEnv, defer: (work: Promise<unknown>) => void) => LLMChain;
39
54
  }
40
- export declare function createResumeHandler(basePath: string, options?: ResumeHandlerOptions): Hono<{
41
- Bindings: ResumeEnv;
42
- }, import("hono/types").BlankSchema, "/">;
43
- export type { ResumeEnv };
55
+ export declare function createResumeHandler(basePath: string, options?: ResumeHandlerOptions): Hono<HandlerEnv, import("hono/types").BlankSchema, "/">;
56
+ export type { ResumeEnv, ContentScope };
44
57
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../worker/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAgC5D,UAAU,SAAS;IACjB,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,qFAAqF;IACrF,IAAI,CAAC,EAAE;QAAE,KAAK,EAAE,OAAO,KAAK,CAAA;KAAE,CAAA;IAC9B,kFAAkF;IAClF,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,8EAA8E;IAC9E,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,EAAE,WAAW,CAAA;IAC1B,UAAU,EAAE,WAAW,CAAA;CACxB;AAkBD,MA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Y,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,KAAK,QAAQ,CAAA;CAClF;AAsCD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,oBAAyB,2DAunBvF;AAWD,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Paper size for a résumé PDF.
3
+ *
4
+ * The owner's PDF is US Letter, as it always was. Everyone else gets A4, the
5
+ * size used almost everywhere, unless their contact location is in the US or
6
+ * Canada, where Letter is the norm.
7
+ */
8
+ export type Paper = 'a4' | 'letter';
9
+ /** Page size in PDF points (1/72 inch). */
10
+ export declare const PAPER_SIZE: Record<Paper, {
11
+ width: number;
12
+ height: number;
13
+ }>;
14
+ /** Letter for a location in the US or Canada, A4 for anywhere else or unknown. */
15
+ export declare function paperForLocation(location: string | null | undefined): Paper;
16
+ //# sourceMappingURL=paper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paper.d.ts","sourceRoot":"","sources":["../../worker/src/paper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,KAAK,GAAG,IAAI,GAAG,QAAQ,CAAA;AAEnC,2CAA2C;AAC3C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAGvE,CAAA;AAeD,kFAAkF;AAClF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAS3E"}
@@ -12,6 +12,7 @@
12
12
  * `*italic*`, `[text](url)` links and `---` rules. This is a purpose-built
13
13
  * typesetter for exactly that subset, not a general markdown engine.
14
14
  */
15
+ import { type Paper } from './paper.js';
15
16
  export interface ResumePdfInput {
16
17
  /** Résumé markdown (the canonical or variant-rendered content). */
17
18
  resume: string;
@@ -19,7 +20,24 @@ export interface ResumePdfInput {
19
20
  coverLetter?: string | null;
20
21
  /** Document metadata: title bar in PDF viewers, and the Author field. */
21
22
  ownerName: string;
23
+ /**
24
+ * Overrides the Title metadata. Default: the owner's historical title
25
+ * (the name, an em dash, "Résumé"), kept so the owner's PDF does not change.
26
+ */
27
+ title?: string;
28
+ /** Page geometry and type sizes. Default: the owner's layout. */
29
+ style?: PdfStyle;
30
+ /** Paper size. Default: US Letter, the owner's. */
31
+ paper?: Paper;
22
32
  }
33
+ /**
34
+ * - `owner`: the owner's layout, unchanged (roomy, every heading level drawn
35
+ * as a ruled section heading, page breaks from the skeleton's markers).
36
+ * - `compact`: everyone else's. Tighter margins and type, and `##`/`###`
37
+ * headings (one per job) drawn as bold entry lines without a rule, so a
38
+ * typical five-role résumé fits on two pages.
39
+ */
40
+ export type PdfStyle = 'owner' | 'compact';
23
41
  interface InlineRun {
24
42
  text: string;
25
43
  bold: boolean;
@@ -28,6 +46,7 @@ interface InlineRun {
28
46
  }
29
47
  type Block = {
30
48
  kind: 'heading';
49
+ level: number;
31
50
  runs: InlineRun[];
32
51
  } | {
33
52
  kind: 'paragraph';
@@ -41,6 +60,12 @@ type Block = {
41
60
  kind: 'page-break';
42
61
  };
43
62
  export declare function parseBlocks(markdown: string): Block[];
63
+ /**
64
+ * A page counter for résumé markdown in one style: how many pages
65
+ * `renderResumePdf` would produce for it (without a cover letter). Fonts are
66
+ * embedded once, so measuring many candidate versions stays cheap.
67
+ */
68
+ export declare function createPageCounter(style: PdfStyle, paper?: Paper): Promise<(markdown: string) => number>;
44
69
  export declare function renderResumePdf(input: ResumePdfInput): Promise<Uint8Array>;
45
70
  export {};
46
71
  //# sourceMappingURL=pdf.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdf.d.ts","sourceRoot":"","sources":["../../worker/src/pdf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;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,iEAAiE;IACjE,KAAK,CAAC,EAAE,QAAQ,CAAA;IAChB,mDAAmD;IACnD,KAAK,CAAC,EAAE,KAAK,CAAA;CACd;AAED;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AAE1C,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,KAAK,KAAK,GACN;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,EAAE,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,SAAS,EAAE,EAAE,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,SAAS,EAAE,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,CAAA;AAoC1B,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,EAAE,CAuCrD;AA2YD;;;;GAIG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,QAAQ,EACf,KAAK,GAAE,KAAgB,GACtB,OAAO,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,CASvC;AAED,wBAAsB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,CAkBhF"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Turn a pasted résumé (markdown or plain text) into blocks.
3
+ *
4
+ * Deterministic, no LLM: a person's résumé is split along its own headings so
5
+ * every fact in a block is a fact they wrote. The result is a palette for the
6
+ * GENERIC layout (skeleton.ts): a header, a summary, one block per job, skills,
7
+ * education, languages, certifications, and one block per any other section
8
+ * (hackathons, awards, volunteering...), which keeps its own heading.
9
+ *
10
+ * Structural blocks are tagged `always` (tailoring may rephrase them, never drop
11
+ * them); projects and extra sections are optional and left to the selector.
12
+ */
13
+ import type { ResumeBlock } from './blocks.js';
14
+ import type { ContactProfile } from './contact.js';
15
+ export interface ImportedResume {
16
+ blocks: ResumeBlock[];
17
+ /** What could be read off the header. Fields not found are ''. */
18
+ contact: ContactProfile;
19
+ }
20
+ /** Longest résumé accepted, in characters: several times a long CV. */
21
+ export declare const MAX_RESUME_CHARS = 60000;
22
+ type SectionKind = 'summary' | 'experience' | 'projects' | 'skills' | 'education' | 'languages' | 'certifications' | 'extra';
23
+ /** Which kind of section a heading names. Order matters: first match wins. */
24
+ export declare function classifyHeading(heading: string): SectionKind;
25
+ /** Read contact fields off the lines between the name and the first section. */
26
+ export declare function parseContact(name: string, preamble: string[]): ContactProfile;
27
+ /**
28
+ * Parse a résumé into blocks plus whatever contact details its header shows.
29
+ * Throws when there is nothing to parse.
30
+ */
31
+ export declare function parseResumeText(input: string): ImportedResume;
32
+ export {};
33
+ //# sourceMappingURL=resume-import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resume-import.d.ts","sourceRoot":"","sources":["../../worker/src/resume-import.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,kEAAkE;IAClE,OAAO,EAAE,cAAc,CAAA;CACxB;AAED,uEAAuE;AACvE,eAAO,MAAM,gBAAgB,QAAS,CAAA;AAItC,KAAK,WAAW,GACZ,SAAS,GACT,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,WAAW,GACX,WAAW,GACX,gBAAgB,GAChB,OAAO,CAAA;AAEX,8EAA8E;AAC9E,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAe5D;AAmDD,gFAAgF;AAChF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,cAAc,CA2B7E;AA4ED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAkK7D"}
@@ -1,4 +1,5 @@
1
1
  import type { KVNamespace } from '@cloudflare/workers-types';
2
+ import { type ContentScope } from './scope.js';
2
3
  export interface ResumeEnv {
3
4
  CONTENT_KV: KVNamespace;
4
5
  /**
@@ -15,7 +16,7 @@ export interface ResumeEnv {
15
16
  * display, the PDF and the chatbot never drift from a stale pre-baked blob.
16
17
  * Falls back to the legacy pre-rendered keys only if no block carries the tag.
17
18
  */
18
- export declare function getResumeContent(env: ResumeEnv): Promise<string>;
19
+ export declare function getResumeContent(env: ResumeEnv, scope?: ContentScope): Promise<string>;
19
20
  /**
20
21
  * KV first, worker secret second.
21
22
  *
@@ -1 +1 @@
1
- {"version":3,"file":"resume.d.ts","sourceRoot":"","sources":["../../worker/src/resume.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAI5D,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,WAAW,CAAA;IACvB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAUtE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAOrE;AAED,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAe5F"}
1
+ {"version":3,"file":"resume.d.ts","sourceRoot":"","sources":["../../worker/src/resume.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAG5D,OAAO,EAAoC,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAEhF,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,WAAW,CAAA;IACvB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,SAAS,EACd,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,MAAM,CAAC,CAiBjB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAOrE;AAED,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAe5F"}
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Whose résumé content a request reads and writes.
3
+ *
4
+ * The owner's content is the original global set: `resume:blocks:<id>`,
5
+ * `resume:variant:<slug>`, `resume:profile:contact` and the unprefixed derived
6
+ * caches. Those keys are unchanged, so nothing about the owner moves.
7
+ *
8
+ * Every other user gets their own key space, with their registry userId in
9
+ * every key (`resume:blocks:<userId>:<id>`, `resume:variant:<userId>:<slug>`,
10
+ * ...). Nothing reads across that boundary: a user's tailoring loads only the
11
+ * user's blocks, and a user with no blocks gets an error, never the owner's.
12
+ */
13
+ import { type HadokuAuthContext } from '@wolffm/worker-utils';
14
+ export type ContentScope = {
15
+ kind: 'owner';
16
+ } | {
17
+ kind: 'user';
18
+ userId: string;
19
+ };
20
+ export declare const OWNER_SCOPE: ContentScope;
21
+ /** The env vars scope resolution reads. Both are plain `[vars]`, not secrets. */
22
+ export interface ScopeEnv {
23
+ /**
24
+ * The owner's registry userId. A request whose effective user is this id
25
+ * reads the owner's (global) content. Unset: only an admin caller does.
26
+ */
27
+ RESUME_OWNER_USER_ID?: string;
28
+ /**
29
+ * Comma-separated registry userIds of service callers allowed to name the
30
+ * user they are acting for (`on_behalf_of_user_id`). Today that is
31
+ * jobplatform-api, which reaches this worker as its own service identity.
32
+ */
33
+ ON_BEHALF_CALLER_USER_IDS?: string;
34
+ }
35
+ /** Thrown when a user-scoped generator finds no blocks for that user. */
36
+ export declare class NoResumeBlocksError extends Error {
37
+ readonly code = "NO_RESUME_BLOCKS";
38
+ constructor(scope: ContentScope);
39
+ }
40
+ export type ScopeResult = {
41
+ scope: ContentScope;
42
+ } | {
43
+ status: 400 | 403 | 503;
44
+ error: string;
45
+ };
46
+ /** True for an id that can go into this worker's KV keys. */
47
+ export declare function isUserId(id: string): boolean;
48
+ /**
49
+ * Decide the scope from the edge-verified identity.
50
+ *
51
+ * - `onBehalfOf` (a service caller naming the user it acts for) is honoured
52
+ * only for an admin, or a service caller whose OWN edge-verified userId is
53
+ * listed in ON_BEHALF_CALLER_USER_IDS. Anyone else naming a user gets 403:
54
+ * a friend cannot read another user's content by naming them. With
55
+ * RESUME_OWNER_USER_ID unset it is 503, since the owner could not be told
56
+ * apart from any other user.
57
+ * - Otherwise an admin caller is the owner.
58
+ * - Otherwise a service caller is refused (403): it must name a user.
59
+ * - Otherwise the caller's own userId decides: the owner's id maps to the
60
+ * owner scope, any other id to that user's own scope.
61
+ * - No userId at all (a request that did not come through the edge) is 403.
62
+ * It never falls back to the owner.
63
+ */
64
+ export declare function resolveScope(auth: HadokuAuthContext | undefined, env: ScopeEnv, onBehalfOf?: unknown): ScopeResult;
65
+ /**
66
+ * The KV keys one scope owns. The owner's are exactly the keys the worker has
67
+ * always used; a user's carry the userId right after the namespace.
68
+ */
69
+ export interface ScopeKeys {
70
+ blockIndex: string;
71
+ block(id: string): string;
72
+ feedback: string;
73
+ contact: string;
74
+ /** Where a variant minted in this scope is stored. */
75
+ variant(slug: string): string;
76
+ /** The prefix `listVariants` walks for this scope. */
77
+ variantListPrefix: string;
78
+ /** Prefix handed to `cacheKey` for one kind of derived output. */
79
+ cache(kind: DerivedCacheKind): string;
80
+ }
81
+ export type DerivedCacheKind = 'tailored' | 'coverletter' | 'extras' | 'form-answers';
82
+ export declare function scopeKeys(scope: ContentScope): ScopeKeys;
83
+ /** Where every slug pointer lives; erase.ts walks it. */
84
+ export declare const VARIANT_OWNER_PREFIX = "resume:variant-owner:";
85
+ /**
86
+ * Points a user variant's slug at its owner, so the public `/resume?v=<slug>`
87
+ * link (which carries only the slug) can find it. Deliberately NOT under
88
+ * `resume:variant:`, so the owner's variant listing never walks it.
89
+ */
90
+ export declare function variantOwnerKey(slug: string): string;
91
+ /**
92
+ * What an erased user's slug pointers are overwritten with. It fails
93
+ * USER_ID_PATTERN, so it can never be a real user: the link reads as gone, and
94
+ * nobody can claim the slug (which would point a recruiter's link elsewhere).
95
+ */
96
+ export declare const ERASED_POINTER = "!erased";
97
+ /** The cache prefixes a block edit in this scope must bust. */
98
+ export declare function derivedCachePrefixes(scope: ContentScope): string[];
99
+ /**
100
+ * True when a key under one of the owner's cache prefixes actually belongs to
101
+ * a user (`resume:tailored:<userId>:<hash>`). The owner's own cache keys are
102
+ * `<prefix>:<64 hex>` with no further ':'.
103
+ */
104
+ export declare function isUserScopedRemainder(remainder: string): boolean;
105
+ //# sourceMappingURL=scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../worker/src/scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAE1E,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAE/E,eAAO,MAAM,WAAW,EAAE,YAAgC,CAAA;AAE1D,iFAAiF;AACjF,MAAM,WA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