@hadoku/resume-bot 3.15.107 → 3.15.108

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.
@@ -15098,6 +15098,7 @@ const SELECTION_BUDGET = {
15098
15098
  [0, 1e3]
15099
15099
  ]
15100
15100
  };
15101
+ const FULL_JD_MAX_CHARS = 6e4;
15101
15102
  const COVER_LETTER_TOKENS = 2048;
15102
15103
  const APPLICATION_EXTRAS_TOKENS = 3500;
15103
15104
  const OPERATION_BUDGET_MS = 1e5;
@@ -29473,7 +29474,7 @@ var rotateRectangle = function(rectangle, borderWidth, degreeAngle) {
29473
29474
  else
29474
29475
  return { x: x - b, y: y - b, width: w, height: h };
29475
29476
  };
29476
- var clip = function() {
29477
+ var clip$1 = function() {
29477
29478
  return PDFOperator.of(Ops.ClipNonZero);
29478
29479
  };
29479
29480
  var cos = Math.cos, sin = Math.sin, tan = Math.tan;
@@ -30370,7 +30371,7 @@ var drawTextField = function(options) {
30370
30371
  lineTo(clipX + clipWidth, clipY + clipHeight),
30371
30372
  lineTo(clipX + clipWidth, clipY),
30372
30373
  closePath(),
30373
- clip(),
30374
+ clip$1(),
30374
30375
  endPath()
30375
30376
  ];
30376
30377
  var background = drawRectangle({
@@ -30424,7 +30425,7 @@ var drawOptionList = function(options) {
30424
30425
  lineTo(clipX + clipWidth, clipY + clipHeight),
30425
30426
  lineTo(clipX + clipWidth, clipY),
30426
30427
  closePath(),
30427
- clip(),
30428
+ clip$1(),
30428
30429
  endPath()
30429
30430
  ];
30430
30431
  var background = drawRectangle({
@@ -48514,7 +48515,7 @@ var EnvironmentWorker = /* @__PURE__ */ (() => {
48514
48515
  const ctrl = new AbortController();
48515
48516
  const detachExternal = linkAbort(externalSignal, ctrl);
48516
48517
  const lease = new Lease(ctrl);
48517
- const agentToolset = await import("./node.browser-DSzcmXp_.js");
48518
+ const agentToolset = await import("./node.browser-DkeWIwXw.js");
48518
48519
  let leaseTtlMs;
48519
48520
  let runner;
48520
48521
  const heartbeatPromise = heartbeatLoop(sessionClient, work, lease, log, this.requestOptions, (ttlMs) => {
@@ -65143,7 +65144,7 @@ function redactSensitive(body) {
65143
65144
  async function checkCredentialsFileSafety(path2, onWarn = (m) => console.warn(`anthropic-sdk: ${m}`)) {
65144
65145
  if (typeof process === "undefined" || process.platform === "win32")
65145
65146
  return;
65146
- const { fs } = await import("./node.browser-CdiOmtfD.js");
65147
+ const { fs } = await import("./node.browser-BPhU4Bff.js");
65147
65148
  let resolved = path2;
65148
65149
  let st;
65149
65150
  try {
@@ -65164,7 +65165,7 @@ async function checkCredentialsFileSafety(path2, onWarn = (m) => console.warn(`a
65164
65165
  }
65165
65166
  }
65166
65167
  async function writeCredentialsFileAtomic(targetPath, data) {
65167
- const { fs, path: path2 } = await import("./node.browser-CdiOmtfD.js");
65168
+ const { fs, path: path2 } = await import("./node.browser-BPhU4Bff.js");
65168
65169
  const dir = path2.dirname(targetPath);
65169
65170
  await fs.promises.mkdir(dir, { recursive: true, mode: 448 });
65170
65171
  const tmpPath = `${targetPath}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;
@@ -65383,7 +65384,7 @@ const loadConfigWithSource = async (profile) => {
65383
65384
  return null;
65384
65385
  }
65385
65386
  validateProfileName(profileName);
65386
- const { fs, path: path2 } = await import("./node.browser-CdiOmtfD.js");
65387
+ const { fs, path: path2 } = await import("./node.browser-BPhU4Bff.js");
65387
65388
  const configPath = path2.join(rootConfigPath, "configs", `${profileName}.json`);
65388
65389
  let configRaw;
65389
65390
  try {
@@ -65444,14 +65445,14 @@ const getCredentialsPath = async (config2, profile) => {
65444
65445
  return null;
65445
65446
  }
65446
65447
  validateProfileName(profileName);
65447
- const { path: path2 } = await import("./node.browser-CdiOmtfD.js");
65448
+ const { path: path2 } = await import("./node.browser-BPhU4Bff.js");
65448
65449
  return path2.join(rootConfigPath, "credentials", `${profileName}.json`);
65449
65450
  };
65450
65451
  const getRootConfigPath = async () => {
65451
65452
  if (!supportsLocalConfigFiles()) {
65452
65453
  return null;
65453
65454
  }
65454
- const { path: path2 } = await import("./node.browser-CdiOmtfD.js");
65455
+ const { path: path2 } = await import("./node.browser-BPhU4Bff.js");
65455
65456
  const configDir = readEnv("ANTHROPIC_CONFIG_DIR");
65456
65457
  if (configDir) {
65457
65458
  return configDir;
@@ -65491,7 +65492,7 @@ const getActiveProfileName = async () => {
65491
65492
  if (profileName) {
65492
65493
  return profileName;
65493
65494
  }
65494
- const { fs, path: path2 } = await import("./node.browser-CdiOmtfD.js");
65495
+ const { fs, path: path2 } = await import("./node.browser-BPhU4Bff.js");
65495
65496
  const filePath = path2.join(rootConfigPath, "active_config");
65496
65497
  try {
65497
65498
  return (await fs.promises.readFile(filePath, "utf-8")).trim() || "default";
@@ -65507,7 +65508,7 @@ function identityTokenFromFile(path2) {
65507
65508
  throw new AnthropicError("Identity token file path is empty");
65508
65509
  }
65509
65510
  return async () => {
65510
- const { fs } = await import("./node.browser-CdiOmtfD.js");
65511
+ const { fs } = await import("./node.browser-BPhU4Bff.js");
65511
65512
  let content;
65512
65513
  try {
65513
65514
  content = await fs.promises.readFile(path2, "utf-8");
@@ -65586,7 +65587,7 @@ function oidcFederationProvider(config2) {
65586
65587
  }
65587
65588
  function userOAuthProvider(config2) {
65588
65589
  return async (opts) => {
65589
- const { fs } = await import("./node.browser-CdiOmtfD.js");
65590
+ const { fs } = await import("./node.browser-BPhU4Bff.js");
65590
65591
  await checkCredentialsFileSafety(config2.credentialsPath, config2.onSafetyWarning);
65591
65592
  let raw;
65592
65593
  try {
@@ -65753,7 +65754,7 @@ function resolveIdentityTokenProvider(auth) {
65753
65754
  }
65754
65755
  function cachedExchangeProvider(exchange, credentialsPath, onCacheWriteError, onSafetyWarning) {
65755
65756
  return async (opts) => {
65756
- const { fs } = await import("./node.browser-CdiOmtfD.js");
65757
+ const { fs } = await import("./node.browser-BPhU4Bff.js");
65757
65758
  await checkCredentialsFileSafety(credentialsPath, onSafetyWarning);
65758
65759
  let existing;
65759
65760
  try {
@@ -67178,6 +67179,9 @@ function openAIProvider(name, model, client) {
67178
67179
  name,
67179
67180
  model,
67180
67181
  attemptTimeoutMs: REQUEST_TIMEOUT_MS,
67182
+ // Every free tier gets the strictest one's ceiling (Groq's), as every
67183
+ // prompt here was sized before providers carried their own.
67184
+ requestTokenLimit: SELECTION_BUDGET.MAX_REQUEST_TOKENS,
67181
67185
  async complete(messages2, req) {
67182
67186
  const response = await client.chat.completions.create(
67183
67187
  { model, messages: messages2, temperature: req.temperature, max_tokens: req.maxTokens },
@@ -67227,7 +67231,8 @@ async function callProvider(provider, messages2, options, retryOnRateLimit) {
67227
67231
  );
67228
67232
  }
67229
67233
  try {
67230
- return await provider.complete(messages2, {
67234
+ const built = typeof messages2 === "function" ? messages2(provider) : messages2;
67235
+ return await provider.complete(built, {
67231
67236
  maxTokens: options?.maxTokens ?? LLM_CONFIG.MAX_TOKENS,
67232
67237
  temperature: options?.temperature ?? LLM_CONFIG.TEMPERATURE,
67233
67238
  timeoutMs: Math.min(provider.attemptTimeoutMs, left)
@@ -67274,6 +67279,49 @@ async function sendChatCompletion(chain, messages2, options) {
67274
67279
  }
67275
67280
  throw new Error(`All LLM providers failed: ${failures.join("; ")}`);
67276
67281
  }
67282
+ const ENTITIES = {
67283
+ amp: "&",
67284
+ lt: "<",
67285
+ gt: ">",
67286
+ quot: '"',
67287
+ apos: "'",
67288
+ nbsp: " ",
67289
+ rsquo: "'",
67290
+ lsquo: "'",
67291
+ rdquo: '"',
67292
+ ldquo: '"',
67293
+ hellip: "...",
67294
+ mdash: "-",
67295
+ ndash: "-",
67296
+ bull: "-",
67297
+ middot: "-",
67298
+ trade: "(TM)",
67299
+ reg: "(R)",
67300
+ copy: "(C)"
67301
+ };
67302
+ function decodeEntities(s) {
67303
+ return s.replace(/&(#x[0-9a-f]+|#\d+|[a-z]+);/gi, (whole, name) => {
67304
+ if (name[0] === "#") {
67305
+ const code = name[1] === "x" || name[1] === "X" ? parseInt(name.slice(2), 16) : parseInt(name.slice(1), 10);
67306
+ return Number.isFinite(code) && code > 0 && code <= 1114111 ? String.fromCodePoint(code) : whole;
67307
+ }
67308
+ return ENTITIES[name.toLowerCase()] ?? whole;
67309
+ });
67310
+ }
67311
+ function jobText(description) {
67312
+ const html = /&lt;\/?[a-z]/i.test(description) ? decodeEntities(description) : description;
67313
+ const text = html.replace(/<(script|style)\b[\s\S]*?<\/\1>/gi, "").replace(/<li\b[^>]*>/gi, "\n- ").replace(/<br\s*\/?>/gi, "\n").replace(/<\/(p|div|ul|ol|h[1-6]|tr|section|blockquote)>/gi, "\n").replace(/<[^>]+>/g, "");
67314
+ return decodeEntities(text).replace(/[ \t\f\v\u00a0]+/g, " ").replace(/ *\n */g, "\n").replace(/\n{3,}/g, "\n\n").replace(/\n\n(?=- )/g, "\n").trim();
67315
+ }
67316
+ function postingCharsFor(provider, promptChars, maxTokens) {
67317
+ if (provider.requestTokenLimit === void 0) return FULL_JD_MAX_CHARS;
67318
+ const left = (provider.requestTokenLimit - maxTokens) * SELECTION_BUDGET.CHARS_PER_TOKEN - promptChars;
67319
+ return Math.max(0, Math.min(FULL_JD_MAX_CHARS, Math.floor(left)));
67320
+ }
67321
+ function clip(posting, chars2) {
67322
+ return posting.length > chars2 ? `${posting.slice(0, chars2)}…` : posting;
67323
+ }
67324
+ const POSTING_INSTRUCTIONS_RULE = "If the posting asks applicants to do something specific in their application (mention a particular word or phrase, answer a question, follow a format), do it, naturally, in the cover letter and in the answers about why the candidate is applying.";
67277
67325
  const CACHE_TTL_SECONDS$2 = 2592e3;
67278
67326
  function stripCodeFence(text) {
67279
67327
  const trimmed = text.trim();
@@ -67284,6 +67332,9 @@ async function generateTailoredResume(client, kv, req, deadline = Date.now() + O
67284
67332
  const { job_title, company, description, profile_type, tailor = true } = req;
67285
67333
  const key = await cacheKey(
67286
67334
  "resume:tailored",
67335
+ // Résumés cached before the whole posting was read were tailored to a
67336
+ // 1-2.5k-character slice of its HTML; a new key retires them.
67337
+ "full-posting",
67287
67338
  job_title,
67288
67339
  company,
67289
67340
  description,
@@ -67300,7 +67351,8 @@ async function generateTailoredResume(client, kv, req, deadline = Date.now() + O
67300
67351
  throw new Error("No resume blocks found in KV storage");
67301
67352
  }
67302
67353
  const truncate = (s, max) => s.length > max ? `${s.slice(0, max)}…` : s;
67303
- const buildPrompt = (snippetChars, jdChars) => {
67354
+ const posting = jobText(description);
67355
+ const buildPrompt = (snippetChars, jdForSelection) => {
67304
67356
  const blockSummaries = blocks.map(
67305
67357
  (b) => `ID: ${b.id}
67306
67358
  Type: ${b.type}
@@ -67309,7 +67361,6 @@ Title: ${b.title}` + (snippetChars > 0 ? `
67309
67361
  ---
67310
67362
  ${truncate(b.content, snippetChars)}` : "")
67311
67363
  ).join("\n\n");
67312
- const jdForSelection = truncate(description, jdChars);
67313
67364
  const profileHint = profile_type ? `
67314
67365
  Profile preference: "${profile_type}" — prefer blocks tagged with this, but include cross-tag blocks where genuinely relevant (e.g. a Staff ML role will usually want a leadership block too).` : "";
67315
67366
  return `You are assembling a tailored resume for a job application. Select the most relevant resume blocks and return their IDs in the order they should appear.${profileHint}
@@ -67333,22 +67384,24 @@ Rules:
67333
67384
  - Never select a rollup block AND its constituent detail blocks together; their bullets would duplicate.
67334
67385
  - Respond with ONLY a valid JSON array of block IDs, nothing else. Example: ["header", "exp_microsoft_se2", "skills_ml"]`;
67335
67386
  };
67336
- const { MAX_REQUEST_TOKENS, CHARS_PER_TOKEN, LADDER } = SELECTION_BUDGET;
67387
+ const { CHARS_PER_TOKEN, LADDER } = SELECTION_BUDGET;
67337
67388
  const estimateTokens = (s) => Math.ceil(s.length / CHARS_PER_TOKEN);
67338
- const fits = (prompt) => estimateTokens(prompt) + TAILORED_RESUME_TOKENS.SELECTION <= MAX_REQUEST_TOKENS;
67339
- let selectionPrompt = buildPrompt(LADDER[0][0], LADDER[0][1]);
67340
- for (const [snippetChars, jdChars] of LADDER) {
67341
- selectionPrompt = buildPrompt(snippetChars, jdChars);
67342
- if (fits(selectionPrompt)) break;
67343
- }
67344
- if (!fits(selectionPrompt)) {
67389
+ const selectionFor = (provider) => {
67390
+ const limit2 = provider.requestTokenLimit;
67391
+ if (limit2 === void 0)
67392
+ return buildPrompt(LADDER[0][0], clip(posting, postingCharsFor(provider, 0, 0)));
67393
+ let prompt = "";
67394
+ for (const [snippetChars, jdChars] of LADDER) {
67395
+ prompt = buildPrompt(snippetChars, clip(posting, jdChars));
67396
+ if (estimateTokens(prompt) + TAILORED_RESUME_TOKENS.SELECTION <= limit2) return prompt;
67397
+ }
67345
67398
  throw new Error(
67346
- `Selection prompt cannot fit the provider token budget even without snippets (${estimateTokens(selectionPrompt)} est. tokens, budget ${MAX_REQUEST_TOKENS}); the block palette (${blocks.length} blocks) is too large for single-pass selection`
67399
+ `selection prompt cannot fit the ${limit2}-token request ceiling even without snippets (${estimateTokens(prompt)} est. tokens; the palette has ${blocks.length} blocks)`
67347
67400
  );
67348
- }
67401
+ };
67349
67402
  const selectionResponse = await sendChatCompletion(
67350
67403
  client,
67351
- [{ role: "user", content: selectionPrompt }],
67404
+ (provider) => [{ role: "user", content: selectionFor(provider) }],
67352
67405
  { maxTokens: TAILORED_RESUME_TOKENS.SELECTION, temperature: 0.1, deadline }
67353
67406
  );
67354
67407
  let selectedIds;
@@ -67432,15 +67485,20 @@ Resume to tailor:
67432
67485
  ${resumeMarkdown}
67433
67486
 
67434
67487
  Return only the full rewritten resume markdown, no preamble or explanation.`;
67435
- const promptOverhead = estimateTokens(buildTailoringPrompt(""));
67436
- const jdBudgetTokens = MAX_REQUEST_TOKENS - TAILORED_RESUME_TOKENS.TAILORING - promptOverhead;
67437
- const jdChars = Math.floor(jdBudgetTokens * CHARS_PER_TOKEN);
67488
+ const promptChars = buildTailoringPrompt("").length;
67489
+ const jdCharsFor = (provider) => postingCharsFor(provider, promptChars, TAILORED_RESUME_TOKENS.TAILORING);
67490
+ const jdChars = Math.max(0, ...client.map(jdCharsFor));
67438
67491
  const timeLeft = deadline - Date.now();
67439
67492
  if (jdChars >= 500 && timeLeft >= MIN_ATTEMPT_MS) {
67440
67493
  try {
67441
67494
  const tailoredResponse = await sendChatCompletion(
67442
67495
  client,
67443
- [{ role: "user", content: buildTailoringPrompt(truncate(description, jdChars)) }],
67496
+ (provider) => {
67497
+ const chars2 = jdCharsFor(provider);
67498
+ if (chars2 < 500)
67499
+ throw new Error(`the résumé leaves ${chars2} characters for the posting`);
67500
+ return [{ role: "user", content: buildTailoringPrompt(clip(posting, chars2)) }];
67501
+ },
67444
67502
  { maxTokens: TAILORED_RESUME_TOKENS.TAILORING, deadline }
67445
67503
  );
67446
67504
  const tailored = normalizeTypography(stripCodeFence(tailoredResponse.message));
@@ -67462,14 +67520,15 @@ Return only the full rewritten resume markdown, no preamble or explanation.`;
67462
67520
  const CACHE_TTL_SECONDS$1 = 2592e3;
67463
67521
  async function generateCoverLetter(client, kv, resumeContent, req, deadline = Date.now() + OPERATION_BUDGET_MS) {
67464
67522
  const { job_title, company, description, tone = "conversational" } = req;
67465
- const key = await cacheKey("resume:coverletter", job_title, company, description);
67523
+ const key = await cacheKey("resume:coverletter", "full-posting", job_title, company, description);
67466
67524
  const hit = await kv.get(key);
67467
67525
  if (hit) {
67468
67526
  const result2 = JSON.parse(hit);
67469
67527
  return { ...result2, cached: true };
67470
67528
  }
67471
67529
  const toneGuidance = tone === "formal" ? "Use formal, professional language throughout." : "Use a conversational but professional tone — confident, direct, and human. Avoid stiff corporate phrasing.";
67472
- const prompt = `Write a tailored cover letter for a job application. ${toneGuidance}
67530
+ const posting = jobText(description);
67531
+ const buildPrompt = (jd) => `Write a tailored cover letter for a job application. ${toneGuidance}
67473
67532
 
67474
67533
  Structure: exactly 3 paragraphs:
67475
67534
  1. Why this company specifically — reference something genuine about their work, mission, or the role itself
@@ -67478,15 +67537,26 @@ Structure: exactly 3 paragraphs:
67478
67537
 
67479
67538
  Job: ${job_title} at ${company}
67480
67539
  Job Description:
67481
- ${description}
67540
+ ${jd}
67482
67541
 
67483
67542
  My Resume:
67484
67543
  ${resumeContent}
67485
67544
 
67486
67545
  Never use em dashes anywhere; use commas, colons, or hyphens instead.
67487
67546
 
67547
+ ${POSTING_INSTRUCTIONS_RULE}
67548
+
67488
67549
  Return only the cover letter in markdown, no preamble or explanation.`;
67489
- const response = await sendChatCompletion(client, [{ role: "user", content: prompt }], {
67550
+ const promptChars = buildPrompt("").length;
67551
+ const messages2 = (provider) => [
67552
+ {
67553
+ role: "user",
67554
+ content: buildPrompt(
67555
+ clip(posting, postingCharsFor(provider, promptChars, COVER_LETTER_TOKENS))
67556
+ )
67557
+ }
67558
+ ];
67559
+ const response = await sendChatCompletion(client, messages2, {
67490
67560
  maxTokens: COVER_LETTER_TOKENS,
67491
67561
  deadline
67492
67562
  });
@@ -67515,7 +67585,6 @@ function renderStandardFields(p) {
67515
67585
  ].join("\n");
67516
67586
  }
67517
67587
  const CACHE_TTL_SECONDS = 2592e3;
67518
- const JD_CHARS = 3e3;
67519
67588
  const RESUME_CHARS = 4e3;
67520
67589
  function cap(s, n) {
67521
67590
  return s.length > n ? `${s.slice(0, n)}…` : s;
@@ -67529,6 +67598,9 @@ async function generateApplicationExtras(client, kv, req) {
67529
67598
  const standard_fields = renderStandardFields(contact);
67530
67599
  const key = await cacheKey(
67531
67600
  "resume:extras",
67601
+ // Kits cached before the whole posting was read were written from its first
67602
+ // 3,000 characters; a new key retires them rather than serving them 30 days.
67603
+ "full-posting",
67532
67604
  job_title,
67533
67605
  company,
67534
67606
  description,
@@ -67541,7 +67613,8 @@ async function generateApplicationExtras(client, kv, req) {
67541
67613
  const cachedExtras = JSON.parse(hit);
67542
67614
  return { ...cachedExtras, standard_fields, contact, cached: true };
67543
67615
  }
67544
- const prompt = `You are preparing everything a candidate needs to apply for a job, besides the résumé itself — including the cover letter. Produce it as one JSON object.
67616
+ const posting = jobText(description);
67617
+ const buildPrompt = (jd) => `You are preparing everything a candidate needs to apply for a job, besides the résumé itself — including the cover letter. Produce it as one JSON object.
67545
67618
 
67546
67619
  Candidate facts (use verbatim where relevant — never invent or contradict these):
67547
67620
  - Name: ${contact.name}
@@ -67556,7 +67629,7 @@ Job location: ${job_location || "not stated in the posting"} (workplace type: ${
67556
67629
  Location rule: every location-related statement in the kit — cover letter, screening answers, availability — must be consistent with THIS job's location/workplace type above and the candidate's relocation/remote stance. If the job is hybrid or onsite outside the candidate's area, address it honestly using the relocation fact (e.g. openness to relocation or the stated remote preference); never imply the candidate is local to the job's city unless their location fact says so, and never answer as if the job were remote when it isn't.
67557
67630
 
67558
67631
  Job description:
67559
- ${cap(description, JD_CHARS)}
67632
+ ${jd}
67560
67633
 
67561
67634
  The candidate's tailored résumé for this role:
67562
67635
  ${cap(resume_markdown, RESUME_CHARS)}
@@ -67581,8 +67654,19 @@ Return ONLY a JSON object with exactly these keys, no preamble, no markdown fenc
67581
67654
  "talking_points": ["3 to 5 short bullets for a recruiter phone screen — concrete, résumé-grounded strengths for THIS role."]
67582
67655
  }
67583
67656
 
67584
- Keep every answer truthful to the résumé and the candidate facts. Do not fabricate employers, dates, or metrics.`;
67585
- const response = await sendChatCompletion(client, [{ role: "user", content: prompt }], {
67657
+ Keep every answer truthful to the résumé and the candidate facts. Do not fabricate employers, dates, or metrics.
67658
+
67659
+ ${POSTING_INSTRUCTIONS_RULE}`;
67660
+ const promptChars = buildPrompt("").length;
67661
+ const messages2 = (provider) => [
67662
+ {
67663
+ role: "user",
67664
+ content: buildPrompt(
67665
+ clip(posting, postingCharsFor(provider, promptChars, APPLICATION_EXTRAS_TOKENS))
67666
+ )
67667
+ }
67668
+ ];
67669
+ const response = await sendChatCompletion(client, messages2, {
67586
67670
  maxTokens: APPLICATION_EXTRAS_TOKENS,
67587
67671
  temperature: 0.5,
67588
67672
  // Without one, a wait for a rate limit has no ceiling but the edge's 120s.
@@ -1,4 +1,4 @@
1
- import { A as AnthropicError } from "./index-D_yx_ElR.js";
1
+ import { A as AnthropicError } from "./index-DVV6SMsJ.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-D_yx_ElR.js";
2
- import { D, M } from "./index-D_yx_ElR.js";
1
+ import { A as AnthropicError } from "./index-DVV6SMsJ.js";
2
+ import { D, M } from "./index-DVV6SMsJ.js";
3
3
  function nodeOnly(name) {
4
4
  throw new AnthropicError(`${name} requires Node.js or a Node-compatible runtime`);
5
5
  }
@@ -1 +1 @@
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,EAAE,MAAM,UAAU,CAAA;AAI5D,OAAO,EAA2C,KAAK,cAAc,EAAE,MAAM,cAAc,CAAA;AAK3F,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;CACxB;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,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4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAA;IACrB,kDAAkD;IAClD,cAAc,EAAE,MAAM,EAAE,CAAA;CACzB;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,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,GAC5B,OAAO,CAAC,yBAAyB,CAAC,CAuIpC"}
@@ -63,6 +63,12 @@ export declare const SELECTION_BUDGET: {
63
63
  readonly CHARS_PER_TOKEN: 3.4;
64
64
  readonly LADDER: readonly [readonly [200, 2500], readonly [120, 2000], readonly [80, 1500], readonly [0, 1000]];
65
65
  };
66
+ /**
67
+ * The most of a posting any prompt carries, for a provider with no per-request
68
+ * token ceiling (job-text.ts). A sanity bound, not a budget: real postings run
69
+ * 3-15k characters as text, and this is ~18k tokens.
70
+ */
71
+ export declare const FULL_JD_MAX_CHARS = 60000;
66
72
  export declare const COVER_LETTER_TOKENS = 2048;
67
73
  export declare const APPLICATION_EXTRAS_TOKENS = 3500;
68
74
  export declare const OPERATION_BUDGET_MS = 100000;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../worker/src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;CAGb,CAAA;AA0DV;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GACtB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,qBAAqB,GACrB,iBAAiB,CAAA;AAErB,eAAO,MAAM,aAAa,EAAE;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM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AU,CAAA;AAM1C,eAAO,MAAM,cAAc,OAAQ,CAAA"}
@@ -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,EAAE,MAAM,UAAU,CAAA;AAQ5D,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,CA6C9B"}
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"}
@@ -0,0 +1,21 @@
1
+ import type { LLMProvider } from './llm.js';
2
+ /** The posting's text: markup dropped, block structure kept as line breaks. */
3
+ export declare function jobText(description: string): string;
4
+ /**
5
+ * How much of the posting `provider` can take in one request.
6
+ *
7
+ * `promptChars` is the rest of the prompt and `maxTokens` the output allowance;
8
+ * a provider's ceiling counts both. No ceiling means the whole posting, bounded
9
+ * only by FULL_JD_MAX_CHARS. Returns 0 when nothing fits, so the caller decides
10
+ * whether a posting-less prompt is still worth sending.
11
+ */
12
+ export declare function postingCharsFor(provider: LLMProvider, promptChars: number, maxTokens: number): number;
13
+ /** The posting cut to `chars`, marked when anything was dropped. */
14
+ export declare function clip(posting: string, chars: number): string;
15
+ /**
16
+ * The instruction every generator that writes TO the employer carries. A
17
+ * posting that asks for something specific is testing whether the applicant
18
+ * read it, and missing it reads as a form letter.
19
+ */
20
+ export declare const POSTING_INSTRUCTIONS_RULE = "If the posting asks applicants to do something specific in their application (mention a particular word or phrase, answer a question, follow a format), do it, naturally, in the cover letter and in the answers about why the candidate is applying.";
21
+ //# sourceMappingURL=job-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"job-text.d.ts","sourceRoot":"","sources":["../../worker/src/job-text.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAuD3C,+EAA+E;AAC/E,wBAAgB,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAoBnD;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,WAAW,EACrB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,MAAM,CAKR;AAED,oEAAoE;AACpE,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,0PACmN,CAAA"}
@@ -58,10 +58,25 @@ export interface LLMProvider {
58
58
  model: string;
59
59
  /** The longest one attempt may take before the chain gives up on it. */
60
60
  attemptTimeoutMs: number;
61
+ /**
62
+ * The most one request may spend, prompt and max_tokens together, or
63
+ * undefined when only the context window bounds it. The free tiers are a
64
+ * RATE limit per request (Groq: 8k tokens a minute, and a bigger request is a
65
+ * deterministic 413); Claude has none worth sizing a prompt to. Prompts that
66
+ * carry a whole job posting cut it for this, per provider (job-text.ts).
67
+ */
68
+ requestTokenLimit?: number;
61
69
  complete(messages: ChatMessage[], req: CompletionRequest): Promise<ChatResponse>;
62
70
  }
63
71
  /** A prioritized chain of providers; calls fall over from one to the next. */
64
72
  export type LLMChain = LLMProvider[];
73
+ /**
74
+ * A completion's messages, or how to build them for the provider about to be
75
+ * tried. The function form is for a prompt whose size depends on the provider:
76
+ * the whole posting for Claude, what fits for a free tier. A builder that
77
+ * throws counts as that provider failing, so the chain moves on.
78
+ */
79
+ export type Messages = ChatMessage[] | ((provider: LLMProvider) => ChatMessage[]);
65
80
  /** Just the key bindings the chain reads — a subset of the worker env. */
66
81
  /**
67
82
  * The bindings the chain reads. Derived from `ProviderEnvKey` so it cannot fall
@@ -104,5 +119,5 @@ export declare function createLLMClient(env: LLMEnv, defer?: Defer): LLMChain;
104
119
  * etc.). Only the final provider retries a rate limit, since there's nothing left
105
120
  * to fall back to.
106
121
  */
107
- export declare function sendChatCompletion(chain: LLMChain, messages: ChatMessage[], options?: CompletionOptions): Promise<ChatResponse>;
122
+ export declare function sendChatCompletion(chain: LLMChain, messages: Messages, options?: CompletionOptions): Promise<ChatResponse>;
108
123
  //# sourceMappingURL=llm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../worker/src/llm.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G,EAAE,qBAAqB;AAC1B;;;;;GAKG;AACH,QAAQ,GAAE,MAAyC,GAClD,OAAO,CAAC,sBAAsB,CAAC,CA8RjC"}
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"}
package/dist/worker.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c } from "./index-D_yx_ElR.js";
1
+ import { c } from "./index-DVV6SMsJ.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.107",
4
- "gitHead": "f98bad16320e391a7f4628d1228f44157c43ecaf",
3
+ "version": "3.15.108",
4
+ "gitHead": "0bdfdab17c6e5b5b58cf4a0619c061070f6a6a17",
5
5
  "description": "AI-powered conversational interface for interactive resume exploration",
6
6
  "license": "MIT",
7
7
  "type": "module",