@hadoku/resume-bot 3.15.117 → 3.15.119

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 (40) 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/style.css +1 -1
  5. package/dist/worker/application-extras.d.ts +4 -1
  6. package/dist/worker/application-extras.d.ts.map +1 -1
  7. package/dist/worker/blocks.d.ts +6 -1
  8. package/dist/worker/blocks.d.ts.map +1 -1
  9. package/dist/worker/builder.d.ts +20 -6
  10. package/dist/worker/builder.d.ts.map +1 -1
  11. package/dist/worker/contact.d.ts +21 -1
  12. package/dist/worker/contact.d.ts.map +1 -1
  13. package/dist/worker/cover-letter.d.ts +4 -1
  14. package/dist/worker/cover-letter.d.ts.map +1 -1
  15. package/dist/worker/erase.d.ts +31 -0
  16. package/dist/worker/erase.d.ts.map +1 -0
  17. package/dist/worker/fit.d.ts +32 -0
  18. package/dist/worker/fit.d.ts.map +1 -0
  19. package/dist/worker/form-answers.d.ts +4 -1
  20. package/dist/worker/form-answers.d.ts.map +1 -1
  21. package/dist/worker/index.d.ts +18 -5
  22. package/dist/worker/index.d.ts.map +1 -1
  23. package/dist/worker/paper.d.ts +16 -0
  24. package/dist/worker/paper.d.ts.map +1 -0
  25. package/dist/worker/pdf.d.ts +25 -0
  26. package/dist/worker/pdf.d.ts.map +1 -1
  27. package/dist/worker/resume-import.d.ts +33 -0
  28. package/dist/worker/resume-import.d.ts.map +1 -0
  29. package/dist/worker/resume.d.ts +2 -1
  30. package/dist/worker/resume.d.ts.map +1 -1
  31. package/dist/worker/scope.d.ts +105 -0
  32. package/dist/worker/scope.d.ts.map +1 -0
  33. package/dist/worker/skeleton.d.ts +31 -2
  34. package/dist/worker/skeleton.d.ts.map +1 -1
  35. package/dist/worker/tailored-resume.d.ts +8 -1
  36. package/dist/worker/tailored-resume.d.ts.map +1 -1
  37. package/dist/worker/variants.d.ts +49 -5
  38. package/dist/worker/variants.d.ts.map +1 -1
  39. package/dist/worker.js +1 -1
  40. package/package.json +2 -2
@@ -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;;;;;;;;;;;;;GAaG;AAcH,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd,oFAAoF;IAC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AAA;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,WAAW,QAAQ;IACvB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;;OAIG;IACH,yBAAyB,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O,MAAM,cAAc,YAAY,CAAA;AAEvC,+DAA+D;AAC/D,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,EAAE,CAGlE;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAEhE"}
@@ -1,4 +1,5 @@
1
1
  import type { ResumeBlock } from './blocks.js';
2
+ import type { ContentScope } from './scope.js';
2
3
  /**
3
4
  * The résumé is a fixed skeleton of sections in a fixed order, grouped into
4
5
  * pages. Tailoring selects WHICH blocks land in each section; it never reorders
@@ -7,7 +8,7 @@ import type { ResumeBlock } from './blocks.js';
7
8
  * absent we fall back to a section derived from the block type, so the assembler
8
9
  * still produces correct structure for blocks authored before the tag existed.
9
10
  */
10
- export type SectionId = 'header' | 'summary' | 'experience-primary' | 'projects' | 'skills' | 'experience-secondary' | 'education';
11
+ export type SectionId = 'header' | 'summary' | 'experience-primary' | 'projects' | 'skills' | 'experience-secondary' | 'education' | 'languages' | 'certifications' | 'extra';
11
12
  /** Sections in render order, top of page 1 to bottom of the last page. */
12
13
  export declare const SECTION_ORDER: readonly SectionId[];
13
14
  /**
@@ -23,6 +24,34 @@ export declare const PAGE_BREAK_BEFORE: ReadonlySet<SectionId>;
23
24
  * stays invisible if any markdown path ever renders it literally.
24
25
  */
25
26
  export declare const PAGE_BREAK_MARKER = "<!-- page-break -->";
27
+ /**
28
+ * A page skeleton: which sections exist, in what order, under which headings,
29
+ * where the hard page breaks fall and whether projects group by category.
30
+ *
31
+ * OWNER_LAYOUT is the owner's fixed three-page résumé (docs/resume-structure.md)
32
+ * and is what every caller gets by default. GENERIC_LAYOUT is for every other
33
+ * user: a single flowing document with no owner-specific page budgets.
34
+ */
35
+ export interface ResumeLayout {
36
+ order: readonly SectionId[];
37
+ headings: Partial<Record<SectionId, string>>;
38
+ pageBreakBefore: ReadonlySet<SectionId>;
39
+ projectCategories: ReadonlyArray<{
40
+ id: string;
41
+ heading: string;
42
+ }> | null;
43
+ }
44
+ export declare const OWNER_LAYOUT: ResumeLayout;
45
+ /**
46
+ * Header (name, contact line), summary, experience, projects, skills,
47
+ * education, languages, certifications, then any extra section. An `extra`
48
+ * block carries its own `#` heading (e.g. "# Hackathons"), so one layout fits
49
+ * whatever additional section a résumé has. No forced page breaks: the PDF
50
+ * flows onto as many pages as the content needs.
51
+ */
52
+ export declare const GENERIC_LAYOUT: ResumeLayout;
53
+ /** The owner's content uses the owner's skeleton; everyone else the generic one. */
54
+ export declare function layoutFor(scope: ContentScope): ResumeLayout;
26
55
  /**
27
56
  * Blocks tagged `canonical` form the default résumé — the curated subset shown
28
57
  * at /resume and in the plain PDF. The full block set stays a palette the
@@ -51,7 +80,7 @@ export declare function stripPageBreaks(markdown: string): string;
51
80
  * (a per-job variant) — either way the output has the same page structure. The
52
81
  * caller's ordering is intentionally ignored; the skeleton decides order.
53
82
  */
54
- export declare function assembleResume(blocks: ResumeBlock[]): string;
83
+ export declare function assembleResume(blocks: ResumeBlock[], layout?: ResumeLayout): string;
55
84
  /**
56
85
  * The projects anchor — the uncategorized always+canonical paragraph that opens
57
86
  * page 2 — carries verified platform figures (docs/resume-structure.md). Its
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../worker/src/skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAE9C;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GACjB,QAAQ,GACR,SAAS,GACT,oBAAoB,GACpB,UAAU,GACV,QAAQ,GACR,sBAAsB,GACtB,WAAW,CAAA;AAEf,0EAA0E;AAC1E,eAAO,MAAM,aAAa,EAAE,SAAS,SAAS,EAQ7C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,SAAS,CAAmC,CAAA;AAExF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,wBAAwB,CAAA;AAkDtD;;;;;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K,EAAE,SAAS,SAAS,EAAE,CAAA;IAC3B,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAA;IAC5C,eAAe,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IACvC,iBAAiB,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAA;CACzE;AAED,eAAO,MAAM,YAAY,EAAE,YAK1B,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAE,YAyB5B,CAAA;AAED,oFAAoF;AACpF,wBAAgB,SAAS,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAE3D;AAiBD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,cAAc,CAAA;AAExC;;;;;GAKG;AACH,eAAO,MAAM,UAAU,WAAW,CAAA;AAElC,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,WAAW,EAAE,CAEpE;AAED;oEACoE;AACpE,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAOxD;AAyBD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,MAAM,GAAE,YAA2B,GAAG,MAAM,CA+CjG;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAQhE;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAiB9E;AAED;iEACiE;AACjE,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMxD"}
@@ -1,4 +1,5 @@
1
1
  import type { KVNamespace } from '@cloudflare/workers-types';
2
+ import { type ContentScope } from './scope.js';
2
3
  import { type LLMChain } from './llm.js';
3
4
  /**
4
5
  * LLMs sometimes wrap their entire response in a ```` ```markdown … ``` ```` code
@@ -27,5 +28,11 @@ export declare function generateTailoredResume(client: LLMChain, kv: KVNamespace
27
28
  * passes ITS deadline instead, because there the résumé shares one edge
28
29
  * timeout with a cover letter generated afterwards.
29
30
  */
30
- deadline?: number): Promise<TailoredResumeResponse>;
31
+ deadline?: number,
32
+ /**
33
+ * Whose blocks to tailor from. The owner's by default; a user scope reads
34
+ * only that user's blocks, caches under that user's keys, and uses the
35
+ * generic layout and prompts instead of the owner's three-page rules.
36
+ */
37
+ scope?: ContentScope): Promise<TailoredResumeResponse>;
31
38
  //# sourceMappingURL=tailored-resume.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tailored-resume.d.ts","sourceRoot":"","sources":["../../worker/src/tailored-resume.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAU5D,OAAO,EAAsB,KAAK,QAAQ,EAAoB,MAAM,UAAU,CAAA;AA4B9E;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAInD;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,QAAQ,EAChB,EAAE,EAAE,WAAW,EACf,GAAG,EAAE,qBAAqB;AAC1B;;;;;GAKG;AACH,QAAQ,GAAE,MAAyC,GAClD,OAAO,CAAC,sBAAsB,CAAC,CA6SjC"}
1
+ {"version":3,"file":"tailored-resume.d.ts","sourceRoot":"","sources":["../../worker/src/tailored-resume.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAW5D,OAAO,EAA+C,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAC3F,OAAO,EAAsB,KAAK,QAAQ,EAAoB,MAAM,UAAU,CAAA;AA+B9E;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAInD;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,QAAQ,EAChB,EAAE,EAAE,WAAW,EACf,GAAG,EAAE,qBAAqB;AAC1B;;;;;GAKG;AACH,QAAQ,GAAE,MAAyC;AACnD;;;;GAIG;AACH,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,sBAAsB,CAAC,CAwUjC"}
@@ -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 ResumeVariant {
4
5
  slug: string;
5
6
  label: string;
@@ -12,8 +13,22 @@ export interface ResumeVariant {
12
13
  /** Posting context, so the delivered page can label the packet. */
13
14
  company?: string;
14
15
  job_title?: string;
16
+ /**
17
+ * The person the packet belongs to, for the PDF's file name and metadata.
18
+ * Set on user variants only; the owner's use the handler's ownerName.
19
+ */
20
+ candidate_name?: string;
15
21
  created_at: string;
16
22
  }
23
+ /** A variant together with whose it is. */
24
+ export interface ScopedVariant {
25
+ variant: ResumeVariant;
26
+ scope: ContentScope;
27
+ }
28
+ /** Thrown when a requested slug already belongs to someone else. */
29
+ export declare class SlugTakenError extends Error {
30
+ constructor(slug: string);
31
+ }
17
32
  export interface MintVariantRequest {
18
33
  label: string;
19
34
  slug?: string;
@@ -36,16 +51,45 @@ export interface MintVariantRequest {
36
51
  /** Auto-expire the link after this many days */
37
52
  ttl_days?: number;
38
53
  }
39
- export declare function getVariant(kv: KVNamespace, slug: string): Promise<ResumeVariant | null>;
54
+ /** One scope's variant by slug. Defaults to the owner's. */
55
+ export declare function getVariant(kv: KVNamespace, slug: string, scope?: ContentScope): Promise<ResumeVariant | null>;
56
+ /** A user's slug whose variant has expired or was deleted. */
57
+ export interface GoneVariant {
58
+ gone: true;
59
+ }
60
+ /**
61
+ * Find a variant by slug alone, whoever's it is: the public `?v=<slug>` path.
62
+ * The owner's key first (every link minted before per-user variants), then
63
+ * the slug pointer to a user's. A slug with a ':' is refused outright, so
64
+ * `?v=<userId>:<slug>` cannot read a user's variant as if it were the owner's.
65
+ *
66
+ * A user's pointer outlives the variant (it is written without a TTL and kept
67
+ * on delete), so an expired or deleted user packet is reported as gone rather
68
+ * than looking like an unknown slug, which the public routes answer with the
69
+ * owner's resume.
70
+ */
71
+ export declare function findVariant(kv: KVNamespace, slug: string): Promise<ScopedVariant | GoneVariant | null>;
40
72
  /** Resolve a variant to resume markdown. Returns null when it holds no renderable content. */
41
- export declare function renderVariant(kv: KVNamespace, variant: ResumeVariant): Promise<string | null>;
42
- export declare function mintVariant(client: LLMChain, kv: KVNamespace, req: MintVariantRequest): Promise<ResumeVariant>;
73
+ export declare function renderVariant(kv: KVNamespace, variant: ResumeVariant, scope?: ContentScope): Promise<string | null>;
74
+ /**
75
+ * The first `# ` heading of a résumé, which is the name line in every layout.
76
+ * Used to name a user's PDF when no contact profile is stored.
77
+ */
78
+ export declare function nameFromMarkdown(markdown: string | undefined): string | null;
79
+ export declare function mintVariant(client: LLMChain, kv: KVNamespace, req: MintVariantRequest,
80
+ /** Whose variant this is. The owner's by default (see the key layout above). */
81
+ scope?: ContentScope): Promise<ResumeVariant>;
43
82
  export interface VariantSummary {
44
83
  slug: string;
45
84
  label: string;
46
85
  created_at: string;
47
86
  source: 'markdown' | 'blocks';
48
87
  }
49
- export declare function listVariants(kv: KVNamespace): Promise<VariantSummary[]>;
50
- export declare function deleteVariant(kv: KVNamespace, slug: string): Promise<boolean>;
88
+ /**
89
+ * One scope's variants, newest first. The owner's listing walks the owner's
90
+ * prefix and skips the users' keys nested under it; a user's walks only
91
+ * `resume:variant:<userId>:`.
92
+ */
93
+ export declare function listVariants(kv: KVNamespace, scope?: ContentScope): Promise<VariantSummary[]>;
94
+ export declare function deleteVariant(kv: KVNamespace, slug: string, scope?: ContentScope): Promise<boolean>;
51
95
  //# sourceMappingURL=variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../worker/src/variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AASxC,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB,yEAAyE;IACzE,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QA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W,EACf,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,YAA0B,GAChC,OAAO,CAAC,OAAO,CAAC,CAUlB"}
package/dist/worker.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c } from "./index-D6Xd4aSy.js";
1
+ import { c } from "./index-DTz0YFfl.js";
2
2
  export {
3
3
  c as createResumeHandler
4
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/resume-bot",
3
- "version": "3.15.117",
4
- "gitHead": "579f2d2d23d2373eadc51205304d0680727bedb2",
3
+ "version": "3.15.119",
4
+ "gitHead": "4ca9bc6e6597c6af9333533eb35ebd2f92a1fca9",
5
5
  "description": "AI-powered conversational interface for interactive resume exploration",
6
6
  "license": "MIT",
7
7
  "type": "module",