@hadoku/resume-bot 3.15.97 → 3.15.98

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.
@@ -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,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,EAuFS,CAAA;AAEV,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAA;AAEV,eAAO,MAAM,sBAAsB;;;CASzB,CAAA;AAUV,eAAO,MAAM,gBAAgB;;;;CAanB,CAAA;AAEV,eAAO,MAAM,mBAAmB,OAAO,CAAA;AAMvC,eAAO,MAAM,yBAAyB,OAAO,CAAA;AAwB7C,eAAO,MAAM,mBAAmB,SAAU,CAAA;AAM1C,eAAO,MAAM,cAAc,OAAQ,CAAA"}
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,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,EA4ES,CAAA;AAEV,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAA;AAEV,eAAO,MAAM,sBAAsB;;;CASzB,CAAA;AAUV,eAAO,MAAM,gBAAgB;;;;CAanB,CAAA;AAEV,eAAO,MAAM,mBAAmB,OAAO,CAAA;AAMvC,eAAO,MAAM,yBAAyB,OAAO,CAAA;AAwB7C,eAAO,MAAM,mBAAmB,SAAU,CAAA;AAM1C,eAAO,MAAM,cAAc,OAAQ,CAAA"}
package/dist/worker.js CHANGED
@@ -15003,25 +15003,15 @@ const LLM_PROVIDERS = [
15003
15003
  name: "gemini",
15004
15004
  envKey: "GEMINI_API_KEY",
15005
15005
  baseUrl: "https://generativelanguage.googleapis.com/v1beta/openai/",
15006
- model: "gemini-3.8-flash",
15007
- // The key rides in `x-goog-api-key`, NOT in `Authorization: Bearer`.
15006
+ model: "gemini-3.8-flash"
15007
+ // The key rides in `Authorization: Bearer`, the OpenAI way. No authHeader.
15008
15008
  //
15009
- // Measured against this key on 2026-09-15, holding everything else equal:
15010
- //
15011
- // Bearer -> 403, no body (credential refused outright)
15012
- // x-goog-api-key -> 400, no body (credential accepted, request refused)
15013
- //
15014
- // Google moved AI Studio keys from `AIza…` to `AQ.Ab…`, and the newer form
15015
- // is not accepted as a Bearer token on this surface. 403 vs 400 is the tell:
15016
- // one never got past auth, the other did.
15017
- //
15018
- // The 400 that remains is the documented "Multiple authentication
15019
- // credentials received" — the endpoint reads its own header AND still sees
15020
- // an Authorization, so the SDK's header has to be genuinely removed rather
15021
- // than merely set to null. llm.ts does that in a fetch wrapper now; a null
15022
- // defaultHeader is dropped by openai 6.32 in Node but was evidently not
15023
- // reaching the wire that way on workerd.
15024
- authHeader: "x-goog-api-key"
15009
+ // Measured 2026-11-20, once llm.ts stopped hiding Google's error bodies
15010
+ // (they come as a JSON array the openai SDK reported as "(no body)"):
15011
+ // with the key in `x-goog-api-key` and Authorization deleted, the answer
15012
+ // is `400 Missing or invalid Authorization header.` That is the 400 every
15013
+ // Gemini call returned since 2026-09-15. Its earlier diagnosis ("Multiple
15014
+ // authentication credentials received") was read off a bare status code.
15025
15015
  },
15026
15016
  {
15027
15017
  // A SECOND Gemini key, and the only reason it is worth a slot is that free
@@ -15034,8 +15024,7 @@ const LLM_PROVIDERS = [
15034
15024
  name: "gemini-2",
15035
15025
  envKey: "GEMINI_API_KEY_2",
15036
15026
  baseUrl: "https://generativelanguage.googleapis.com/v1beta/openai/",
15037
- model: "gemini-3.8-flash",
15038
- authHeader: "x-goog-api-key"
15027
+ model: "gemini-3.8-flash"
15039
15028
  },
15040
15029
  {
15041
15030
  // Cloudflare Workers AI. 10,000 neurons/day, no card, and this ecosystem
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/resume-bot",
3
- "version": "3.15.97",
4
- "gitHead": "1e6d0dc996e2c392f1d075004fa956f019c40f2f",
3
+ "version": "3.15.98",
4
+ "gitHead": "7e28f02e6e2783ab9f72cdee4e6b8455578ced5a",
5
5
  "description": "AI-powered conversational interface for interactive resume exploration",
6
6
  "license": "MIT",
7
7
  "type": "module",