@hadoku/jobplatform-worker 2.32.72 → 2.32.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5528,6 +5528,11 @@ async function readOptions(c) {
5528
5528
  function ownerNameOf(opts) {
5529
5529
  return typeof opts.ownerName === "string" ? opts.ownerName : void 0;
5530
5530
  }
5531
+ function questionsOf(opts) {
5532
+ if (!Array.isArray(opts.questions)) return void 0;
5533
+ const questions = opts.questions.filter((q) => typeof q === "string" && q.trim() !== "").map((q) => q.trim().slice(0, 500)).slice(0, 25);
5534
+ return questions.length ? questions : void 0;
5535
+ }
5531
5536
  const UPSTREAM_DETAIL_CHARS = 1500;
5532
5537
  async function upstreamError(c, kind, jobId, res) {
5533
5538
  const detail = (await res.text()).slice(0, UPSTREAM_DETAIL_CHARS);
@@ -5711,7 +5716,8 @@ function registerTailoringRoutes(app2) {
5711
5716
  // The kit's location answers must speak to THIS job's location, not the
5712
5717
  // candidate's default metro — resume-api injects these into its prompt.
5713
5718
  job_location: job.location ?? void 0,
5714
- workplace_type: job.workplace_type ?? void 0
5719
+ workplace_type: job.workplace_type ?? void 0,
5720
+ questions: questionsOf(opts)
5715
5721
  });
5716
5722
  if (!res.ok) return c.json(await upstreamError(c, "application_extras", id, res), 502);
5717
5723
  const data = await res.json();
@@ -1 +1 @@
1
- {"version":3,"file":"tailoring.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/tailoring.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAqD,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AA6I9F,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAwO1D"}
1
+ {"version":3,"file":"tailoring.d.ts","sourceRoot":"","sources":["../../../src/routes/jobs/tailoring.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAqD,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AA2J9F,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CA6O1D"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/jobplatform-worker",
3
- "version": "2.32.72",
4
- "gitHead": "c114cbe477f873a9a8f948cdbf6560701de64716",
3
+ "version": "2.32.73",
4
+ "gitHead": "e4651fc42028d2489edcea2370d0909aac496cb1",
5
5
  "description": "Job listings aggregation and tracking dashboard - Worker package",
6
6
  "license": "MIT",
7
7
  "type": "module",