@hadoku/resume-bot 3.15.40 → 3.15.41

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 (2) hide show
  1. package/dist/worker.js +7 -4
  2. package/package.json +3 -3
package/dist/worker.js CHANGED
@@ -14881,7 +14881,8 @@ var EDGE_IDENTITY_HEADERS = [
14881
14881
  "X-User-Id",
14882
14882
  "X-User-Name",
14883
14883
  "X-Hadoku-Tier",
14884
- "X-Hadoku-Content-Level"
14884
+ "X-Hadoku-Content-Level",
14885
+ "X-Hadoku-Vouched"
14885
14886
  ];
14886
14887
  function withoutEdgeIdentity(req) {
14887
14888
  const headers = new Headers(req.headers);
@@ -14907,7 +14908,8 @@ function verifyEdgeAuth(c, env) {
14907
14908
  userType,
14908
14909
  credential,
14909
14910
  userId: headerOrNull(c, "X-User-Id"),
14910
- userName: headerOrNull(c, "X-User-Name")
14911
+ userName: headerOrNull(c, "X-User-Name"),
14912
+ vouched: c.req.header("X-Hadoku-Vouched") === "1"
14911
14913
  };
14912
14914
  }
14913
14915
  function createEdgeAuth(options) {
@@ -14919,8 +14921,9 @@ function createEdgeAuth(options) {
14919
14921
  userType: result.userType,
14920
14922
  credential: result.credential,
14921
14923
  userId: result.userId,
14922
- userName: result.userName
14923
- } : { userType: "public", credential: null, userId: null, userName: null };
14924
+ userName: result.userName,
14925
+ vouched: result.vouched
14926
+ } : { userType: "public", credential: null, userId: null, userName: null, vouched: false };
14924
14927
  const ctx = base;
14925
14928
  c.set(contextKey, ctx);
14926
14929
  await next();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/resume-bot",
3
- "version": "3.15.40",
4
- "gitHead": "eb87db0a72c66ebbcf722bd7aa7ced2cf24260f7",
3
+ "version": "3.15.41",
4
+ "gitHead": "41f007e119562fd1e3db9bec902b26a755788f7f",
5
5
  "description": "AI-powered conversational interface for interactive resume exploration",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.1.20",
38
- "@wolffm/worker-utils": "npm:@hadoku/worker-utils@^1.7.12",
38
+ "@wolffm/worker-utils": "npm:@hadoku/worker-utils@^1.7.14",
39
39
  "hono": "^4.11.4",
40
40
  "openai": "^6.21.0",
41
41
  "pdf-lib": "^1.17.1",