@dolusoft/hirebase-mcp 1.1.8

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 (413) hide show
  1. package/README.md +261 -0
  2. package/dist/application/dto/candidate-summary.d.ts +10 -0
  3. package/dist/application/dto/candidate-summary.js +2 -0
  4. package/dist/application/dto/candidate-summary.js.map +1 -0
  5. package/dist/application/dto/extracted-cv.d.ts +46 -0
  6. package/dist/application/dto/extracted-cv.js +2 -0
  7. package/dist/application/dto/extracted-cv.js.map +1 -0
  8. package/dist/application/dto/filter-input.d.ts +7 -0
  9. package/dist/application/dto/filter-input.js +2 -0
  10. package/dist/application/dto/filter-input.js.map +1 -0
  11. package/dist/application/dto/index.d.ts +5 -0
  12. package/dist/application/dto/index.js +2 -0
  13. package/dist/application/dto/index.js.map +1 -0
  14. package/dist/application/dto/search-results.d.ts +13 -0
  15. package/dist/application/dto/search-results.js +2 -0
  16. package/dist/application/dto/search-results.js.map +1 -0
  17. package/dist/application/dto/stats.d.ts +10 -0
  18. package/dist/application/dto/stats.js +2 -0
  19. package/dist/application/dto/stats.js.map +1 -0
  20. package/dist/application/ports/document-parser.d.ts +8 -0
  21. package/dist/application/ports/document-parser.js +2 -0
  22. package/dist/application/ports/document-parser.js.map +1 -0
  23. package/dist/application/ports/embedding-service.d.ts +4 -0
  24. package/dist/application/ports/embedding-service.js +2 -0
  25. package/dist/application/ports/embedding-service.js.map +1 -0
  26. package/dist/application/ports/export-service.d.ts +5 -0
  27. package/dist/application/ports/export-service.js +2 -0
  28. package/dist/application/ports/export-service.js.map +1 -0
  29. package/dist/application/ports/index.d.ts +4 -0
  30. package/dist/application/ports/index.js +2 -0
  31. package/dist/application/ports/index.js.map +1 -0
  32. package/dist/application/ports/structured-extractor.d.ts +4 -0
  33. package/dist/application/ports/structured-extractor.js +2 -0
  34. package/dist/application/ports/structured-extractor.js.map +1 -0
  35. package/dist/application/use-cases/add-cv.d.ts +16 -0
  36. package/dist/application/use-cases/add-cv.js +113 -0
  37. package/dist/application/use-cases/add-cv.js.map +1 -0
  38. package/dist/application/use-cases/add-job-posting.d.ts +17 -0
  39. package/dist/application/use-cases/add-job-posting.js +27 -0
  40. package/dist/application/use-cases/add-job-posting.js.map +1 -0
  41. package/dist/application/use-cases/add-pipeline-note.d.ts +15 -0
  42. package/dist/application/use-cases/add-pipeline-note.js +34 -0
  43. package/dist/application/use-cases/add-pipeline-note.js.map +1 -0
  44. package/dist/application/use-cases/add-to-pipeline.d.ts +18 -0
  45. package/dist/application/use-cases/add-to-pipeline.js +54 -0
  46. package/dist/application/use-cases/add-to-pipeline.js.map +1 -0
  47. package/dist/application/use-cases/bulk-add-cvs.d.ts +14 -0
  48. package/dist/application/use-cases/bulk-add-cvs.js +32 -0
  49. package/dist/application/use-cases/bulk-add-cvs.js.map +1 -0
  50. package/dist/application/use-cases/delete-cv.d.ts +10 -0
  51. package/dist/application/use-cases/delete-cv.js +21 -0
  52. package/dist/application/use-cases/delete-cv.js.map +1 -0
  53. package/dist/application/use-cases/export-results.d.ts +9 -0
  54. package/dist/application/use-cases/export-results.js +21 -0
  55. package/dist/application/use-cases/export-results.js.map +1 -0
  56. package/dist/application/use-cases/filter-candidates.d.ts +9 -0
  57. package/dist/application/use-cases/filter-candidates.js +51 -0
  58. package/dist/application/use-cases/filter-candidates.js.map +1 -0
  59. package/dist/application/use-cases/get-candidate-history.d.ts +25 -0
  60. package/dist/application/use-cases/get-candidate-history.js +36 -0
  61. package/dist/application/use-cases/get-candidate-history.js.map +1 -0
  62. package/dist/application/use-cases/get-cv-chunks.d.ts +15 -0
  63. package/dist/application/use-cases/get-cv-chunks.js +18 -0
  64. package/dist/application/use-cases/get-cv-chunks.js.map +1 -0
  65. package/dist/application/use-cases/get-cv-detail.d.ts +7 -0
  66. package/dist/application/use-cases/get-cv-detail.js +15 -0
  67. package/dist/application/use-cases/get-cv-detail.js.map +1 -0
  68. package/dist/application/use-cases/get-cv-versions.d.ts +9 -0
  69. package/dist/application/use-cases/get-cv-versions.js +18 -0
  70. package/dist/application/use-cases/get-cv-versions.js.map +1 -0
  71. package/dist/application/use-cases/get-pending-actions.d.ts +23 -0
  72. package/dist/application/use-cases/get-pending-actions.js +50 -0
  73. package/dist/application/use-cases/get-pending-actions.js.map +1 -0
  74. package/dist/application/use-cases/get-pipeline.d.ts +27 -0
  75. package/dist/application/use-cases/get-pipeline.js +40 -0
  76. package/dist/application/use-cases/get-pipeline.js.map +1 -0
  77. package/dist/application/use-cases/get-stats.d.ts +13 -0
  78. package/dist/application/use-cases/get-stats.js +50 -0
  79. package/dist/application/use-cases/get-stats.js.map +1 -0
  80. package/dist/application/use-cases/index.d.ts +23 -0
  81. package/dist/application/use-cases/index.js +24 -0
  82. package/dist/application/use-cases/index.js.map +1 -0
  83. package/dist/application/use-cases/list-cvs.d.ts +8 -0
  84. package/dist/application/use-cases/list-cvs.js +20 -0
  85. package/dist/application/use-cases/list-cvs.js.map +1 -0
  86. package/dist/application/use-cases/list-job-postings.d.ts +7 -0
  87. package/dist/application/use-cases/list-job-postings.js +10 -0
  88. package/dist/application/use-cases/list-job-postings.js.map +1 -0
  89. package/dist/application/use-cases/manage-tags.d.ts +7 -0
  90. package/dist/application/use-cases/manage-tags.js +36 -0
  91. package/dist/application/use-cases/manage-tags.js.map +1 -0
  92. package/dist/application/use-cases/match-candidates.d.ts +27 -0
  93. package/dist/application/use-cases/match-candidates.js +92 -0
  94. package/dist/application/use-cases/match-candidates.js.map +1 -0
  95. package/dist/application/use-cases/semantic-search.d.ts +11 -0
  96. package/dist/application/use-cases/semantic-search.js +40 -0
  97. package/dist/application/use-cases/semantic-search.js.map +1 -0
  98. package/dist/application/use-cases/set-pending-action.d.ts +13 -0
  99. package/dist/application/use-cases/set-pending-action.js +24 -0
  100. package/dist/application/use-cases/set-pending-action.js.map +1 -0
  101. package/dist/application/use-cases/update-cv.d.ts +17 -0
  102. package/dist/application/use-cases/update-cv.js +103 -0
  103. package/dist/application/use-cases/update-cv.js.map +1 -0
  104. package/dist/application/use-cases/update-job-posting.d.ts +19 -0
  105. package/dist/application/use-cases/update-job-posting.js +28 -0
  106. package/dist/application/use-cases/update-job-posting.js.map +1 -0
  107. package/dist/application/use-cases/update-pipeline-status.d.ts +14 -0
  108. package/dist/application/use-cases/update-pipeline-status.js +38 -0
  109. package/dist/application/use-cases/update-pipeline-status.js.map +1 -0
  110. package/dist/domain/entities/application-event.d.ts +11 -0
  111. package/dist/domain/entities/application-event.js +2 -0
  112. package/dist/domain/entities/application-event.js.map +1 -0
  113. package/dist/domain/entities/application.d.ts +13 -0
  114. package/dist/domain/entities/application.js +2 -0
  115. package/dist/domain/entities/application.js.map +1 -0
  116. package/dist/domain/entities/candidate.d.ts +26 -0
  117. package/dist/domain/entities/candidate.js +2 -0
  118. package/dist/domain/entities/candidate.js.map +1 -0
  119. package/dist/domain/entities/cv-chunk.d.ts +10 -0
  120. package/dist/domain/entities/cv-chunk.js +2 -0
  121. package/dist/domain/entities/cv-chunk.js.map +1 -0
  122. package/dist/domain/entities/cv-version.d.ts +7 -0
  123. package/dist/domain/entities/cv-version.js +2 -0
  124. package/dist/domain/entities/cv-version.js.map +1 -0
  125. package/dist/domain/entities/index.d.ts +6 -0
  126. package/dist/domain/entities/index.js +2 -0
  127. package/dist/domain/entities/index.js.map +1 -0
  128. package/dist/domain/entities/job-posting.d.ts +14 -0
  129. package/dist/domain/entities/job-posting.js +2 -0
  130. package/dist/domain/entities/job-posting.js.map +1 -0
  131. package/dist/domain/repositories/application-event-repository.d.ts +7 -0
  132. package/dist/domain/repositories/application-event-repository.js +2 -0
  133. package/dist/domain/repositories/application-event-repository.js.map +1 -0
  134. package/dist/domain/repositories/application-repository.d.ts +12 -0
  135. package/dist/domain/repositories/application-repository.js +2 -0
  136. package/dist/domain/repositories/application-repository.js.map +1 -0
  137. package/dist/domain/repositories/candidate-repository.d.ts +12 -0
  138. package/dist/domain/repositories/candidate-repository.js +2 -0
  139. package/dist/domain/repositories/candidate-repository.js.map +1 -0
  140. package/dist/domain/repositories/chunk-repository.d.ts +13 -0
  141. package/dist/domain/repositories/chunk-repository.js +2 -0
  142. package/dist/domain/repositories/chunk-repository.js.map +1 -0
  143. package/dist/domain/repositories/index.d.ts +6 -0
  144. package/dist/domain/repositories/index.js +2 -0
  145. package/dist/domain/repositories/index.js.map +1 -0
  146. package/dist/domain/repositories/job-posting-repository.d.ts +9 -0
  147. package/dist/domain/repositories/job-posting-repository.js +2 -0
  148. package/dist/domain/repositories/job-posting-repository.js.map +1 -0
  149. package/dist/domain/repositories/version-repository.d.ts +6 -0
  150. package/dist/domain/repositories/version-repository.js +2 -0
  151. package/dist/domain/repositories/version-repository.js.map +1 -0
  152. package/dist/domain/value-objects/certification.d.ts +5 -0
  153. package/dist/domain/value-objects/certification.js +2 -0
  154. package/dist/domain/value-objects/certification.js.map +1 -0
  155. package/dist/domain/value-objects/contact-info.d.ts +5 -0
  156. package/dist/domain/value-objects/contact-info.js +2 -0
  157. package/dist/domain/value-objects/contact-info.js.map +1 -0
  158. package/dist/domain/value-objects/education.d.ts +7 -0
  159. package/dist/domain/value-objects/education.js +2 -0
  160. package/dist/domain/value-objects/education.js.map +1 -0
  161. package/dist/domain/value-objects/experience.d.ts +7 -0
  162. package/dist/domain/value-objects/experience.js +2 -0
  163. package/dist/domain/value-objects/experience.js.map +1 -0
  164. package/dist/domain/value-objects/index.d.ts +7 -0
  165. package/dist/domain/value-objects/index.js +2 -0
  166. package/dist/domain/value-objects/index.js.map +1 -0
  167. package/dist/domain/value-objects/language.d.ts +4 -0
  168. package/dist/domain/value-objects/language.js +2 -0
  169. package/dist/domain/value-objects/language.js.map +1 -0
  170. package/dist/domain/value-objects/links.d.ts +6 -0
  171. package/dist/domain/value-objects/links.js +2 -0
  172. package/dist/domain/value-objects/links.js.map +1 -0
  173. package/dist/domain/value-objects/project.d.ts +5 -0
  174. package/dist/domain/value-objects/project.js +2 -0
  175. package/dist/domain/value-objects/project.js.map +1 -0
  176. package/dist/infrastructure/ai/index.d.ts +2 -0
  177. package/dist/infrastructure/ai/index.js +3 -0
  178. package/dist/infrastructure/ai/index.js.map +1 -0
  179. package/dist/infrastructure/ai/openai-embedding-service.d.ts +8 -0
  180. package/dist/infrastructure/ai/openai-embedding-service.js +39 -0
  181. package/dist/infrastructure/ai/openai-embedding-service.js.map +1 -0
  182. package/dist/infrastructure/ai/openai-structured-extractor.d.ts +9 -0
  183. package/dist/infrastructure/ai/openai-structured-extractor.js +163 -0
  184. package/dist/infrastructure/ai/openai-structured-extractor.js.map +1 -0
  185. package/dist/infrastructure/config/app-config.d.ts +9 -0
  186. package/dist/infrastructure/config/app-config.js +15 -0
  187. package/dist/infrastructure/config/app-config.js.map +1 -0
  188. package/dist/infrastructure/export/csv-export-service.d.ts +6 -0
  189. package/dist/infrastructure/export/csv-export-service.js +24 -0
  190. package/dist/infrastructure/export/csv-export-service.js.map +1 -0
  191. package/dist/infrastructure/parsers/docx-parser.d.ts +5 -0
  192. package/dist/infrastructure/parsers/docx-parser.js +17 -0
  193. package/dist/infrastructure/parsers/docx-parser.js.map +1 -0
  194. package/dist/infrastructure/parsers/index.d.ts +3 -0
  195. package/dist/infrastructure/parsers/index.js +4 -0
  196. package/dist/infrastructure/parsers/index.js.map +1 -0
  197. package/dist/infrastructure/parsers/ocr-service.d.ts +8 -0
  198. package/dist/infrastructure/parsers/ocr-service.js +65 -0
  199. package/dist/infrastructure/parsers/ocr-service.js.map +1 -0
  200. package/dist/infrastructure/parsers/pdf-parser.d.ts +5 -0
  201. package/dist/infrastructure/parsers/pdf-parser.js +44 -0
  202. package/dist/infrastructure/parsers/pdf-parser.js.map +1 -0
  203. package/dist/infrastructure/persistence/database.d.ts +20 -0
  204. package/dist/infrastructure/persistence/database.js +156 -0
  205. package/dist/infrastructure/persistence/database.js.map +1 -0
  206. package/dist/infrastructure/persistence/index.d.ts +6 -0
  207. package/dist/infrastructure/persistence/index.js +7 -0
  208. package/dist/infrastructure/persistence/index.js.map +1 -0
  209. package/dist/infrastructure/persistence/lancedb-application-event-repository.d.ts +16 -0
  210. package/dist/infrastructure/persistence/lancedb-application-event-repository.js +85 -0
  211. package/dist/infrastructure/persistence/lancedb-application-event-repository.js.map +1 -0
  212. package/dist/infrastructure/persistence/lancedb-application-repository.d.ts +21 -0
  213. package/dist/infrastructure/persistence/lancedb-application-repository.js +151 -0
  214. package/dist/infrastructure/persistence/lancedb-application-repository.js.map +1 -0
  215. package/dist/infrastructure/persistence/lancedb-candidate-repository.d.ts +21 -0
  216. package/dist/infrastructure/persistence/lancedb-candidate-repository.js +169 -0
  217. package/dist/infrastructure/persistence/lancedb-candidate-repository.js.map +1 -0
  218. package/dist/infrastructure/persistence/lancedb-chunk-repository.d.ts +18 -0
  219. package/dist/infrastructure/persistence/lancedb-chunk-repository.js +105 -0
  220. package/dist/infrastructure/persistence/lancedb-chunk-repository.js.map +1 -0
  221. package/dist/infrastructure/persistence/lancedb-job-posting-repository.d.ts +21 -0
  222. package/dist/infrastructure/persistence/lancedb-job-posting-repository.js +128 -0
  223. package/dist/infrastructure/persistence/lancedb-job-posting-repository.js.map +1 -0
  224. package/dist/infrastructure/persistence/lancedb-version-repository.d.ts +13 -0
  225. package/dist/infrastructure/persistence/lancedb-version-repository.js +62 -0
  226. package/dist/infrastructure/persistence/lancedb-version-repository.js.map +1 -0
  227. package/dist/interface/cli/index.d.ts +2 -0
  228. package/dist/interface/cli/index.js +17 -0
  229. package/dist/interface/cli/index.js.map +1 -0
  230. package/dist/interface/dashboard/call-context.d.ts +4 -0
  231. package/dist/interface/dashboard/call-context.js +26 -0
  232. package/dist/interface/dashboard/call-context.js.map +1 -0
  233. package/dist/interface/dashboard/event-bus.d.ts +7 -0
  234. package/dist/interface/dashboard/event-bus.js +16 -0
  235. package/dist/interface/dashboard/event-bus.js.map +1 -0
  236. package/dist/interface/dashboard/events.d.ts +30 -0
  237. package/dist/interface/dashboard/events.js +2 -0
  238. package/dist/interface/dashboard/events.js.map +1 -0
  239. package/dist/interface/dashboard/html.d.ts +1 -0
  240. package/dist/interface/dashboard/html.js +1007 -0
  241. package/dist/interface/dashboard/html.js.map +1 -0
  242. package/dist/interface/dashboard/public/200.html +1 -0
  243. package/dist/interface/dashboard/public/404.html +1 -0
  244. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-8KeALpAu2nWJknvJhMk31fqE06iajfSeiM57lsZAo5g.woff +0 -0
  245. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-CAyrLGU3kauAbzcFnj2Cv_iAPV8wT2NEvNmrA_77Up0.woff +0 -0
  246. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-Cbq5YGF_nsoQo6qYm9EhA3p-oINRUqlXhACZ2Wh4BBE.woff +0 -0
  247. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-G1pKsfAhfeIECsLbuPUckyz92yuHFKi9rmiwlRl8Tb0.woff +0 -0
  248. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-OnaIl8fChu9Cb4bpYiOA4dK_W7eeMCjXQOWR8tUhXJ0.woff +0 -0
  249. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-kzEiBeXQ06q7fC06p1Y4RaOpLlRWCnHcCcSaqFMJ6fc.woff +0 -0
  250. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-rmd8_oLeTXCNUhiFyy1UYsogNo6QYBr9dQHrhl_hLbs.woff +0 -0
  251. package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-wjJHhPsTzX4mZm37l7bbvLDtOEIT1R38DKPlwV_Z34A.woff +0 -0
  252. package/dist/interface/dashboard/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
  253. package/dist/interface/dashboard/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
  254. package/dist/interface/dashboard/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
  255. package/dist/interface/dashboard/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
  256. package/dist/interface/dashboard/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
  257. package/dist/interface/dashboard/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
  258. package/dist/interface/dashboard/public/_nuxt/BtFgTcXQ.js +30 -0
  259. package/dist/interface/dashboard/public/_nuxt/CdJZeyak.js +30 -0
  260. package/dist/interface/dashboard/public/_nuxt/D9vxbU2B.js +1 -0
  261. package/dist/interface/dashboard/public/_nuxt/DHg6ig_T.js +1 -0
  262. package/dist/interface/dashboard/public/_nuxt/DhFk2_Al.js +1 -0
  263. package/dist/interface/dashboard/public/_nuxt/DlAUqK2U.js +1 -0
  264. package/dist/interface/dashboard/public/_nuxt/DtX-aPBA.js +1 -0
  265. package/dist/interface/dashboard/public/_nuxt/DvCMYK3d.js +1 -0
  266. package/dist/interface/dashboard/public/_nuxt/builds/latest.json +1 -0
  267. package/dist/interface/dashboard/public/_nuxt/builds/meta/027020ec-4e7d-4fc7-8447-19800f7d0bac.json +1 -0
  268. package/dist/interface/dashboard/public/_nuxt/builds/meta/18e19101-a96b-41dc-b602-f9a8f013a036.json +1 -0
  269. package/dist/interface/dashboard/public/_nuxt/builds/meta/2fd3d0d3-6004-4659-9055-d27aa6656fd3.json +1 -0
  270. package/dist/interface/dashboard/public/_nuxt/builds/meta/54792d4b-ca55-4b5d-b0dd-1d7dc34de344.json +1 -0
  271. package/dist/interface/dashboard/public/_nuxt/builds/meta/5959a14b-2494-4e0d-be28-fef9adfd889d.json +1 -0
  272. package/dist/interface/dashboard/public/_nuxt/builds/meta/60cda583-d704-4d4e-b37e-7ab337e3b6cc.json +1 -0
  273. package/dist/interface/dashboard/public/_nuxt/builds/meta/64d05a43-99ec-4c22-934e-071b310b968f.json +1 -0
  274. package/dist/interface/dashboard/public/_nuxt/builds/meta/6c1632a5-f0af-41e3-9d88-12294e03a0b9.json +1 -0
  275. package/dist/interface/dashboard/public/_nuxt/builds/meta/6c80982c-5e2c-446c-aaf6-7000a976e493.json +1 -0
  276. package/dist/interface/dashboard/public/_nuxt/builds/meta/79161adb-748c-4d36-a031-a71899a56ecd.json +1 -0
  277. package/dist/interface/dashboard/public/_nuxt/builds/meta/84e5a87d-4ae5-48dd-8d5e-5b1fe89f7243.json +1 -0
  278. package/dist/interface/dashboard/public/_nuxt/builds/meta/86082677-a11d-4acf-ab04-c3c067a71622.json +1 -0
  279. package/dist/interface/dashboard/public/_nuxt/builds/meta/8892e611-c2b4-425b-a6a5-988314d8da4d.json +1 -0
  280. package/dist/interface/dashboard/public/_nuxt/builds/meta/9bfe6b22-73f8-4584-b13d-ed1df5600e12.json +1 -0
  281. package/dist/interface/dashboard/public/_nuxt/builds/meta/a39bf957-ddae-41a6-a183-08292363098b.json +1 -0
  282. package/dist/interface/dashboard/public/_nuxt/builds/meta/b0bf7fc4-02c1-46fd-acca-f4458feed978.json +1 -0
  283. package/dist/interface/dashboard/public/_nuxt/builds/meta/b2847d83-b695-45d4-9dca-d7498158a501.json +1 -0
  284. package/dist/interface/dashboard/public/_nuxt/builds/meta/c8382eda-1354-4f92-b6d0-5b5b9f43354a.json +1 -0
  285. package/dist/interface/dashboard/public/_nuxt/builds/meta/e707aa44-7202-413d-bcd5-1538b5b56570.json +1 -0
  286. package/dist/interface/dashboard/public/_nuxt/builds/meta/ea661002-05ab-4bfb-b02f-c91bb721c5e9.json +1 -0
  287. package/dist/interface/dashboard/public/_nuxt/builds/meta/f2f23a12-a792-480e-922a-ee8b73dc0310.json +1 -0
  288. package/dist/interface/dashboard/public/_nuxt/builds/meta/f6503b83-d731-40f8-9110-c1599663b3ba.json +1 -0
  289. package/dist/interface/dashboard/public/_nuxt/builds/meta/feac6d04-6bc5-4fa4-a241-79e897d7f8c1.json +1 -0
  290. package/dist/interface/dashboard/public/_nuxt/entry.BSUaoqsu.css +1 -0
  291. package/dist/interface/dashboard/public/_nuxt/entry.Bl31cpjT.css +1 -0
  292. package/dist/interface/dashboard/public/_nuxt/error-404.B6WzzNMA.css +1 -0
  293. package/dist/interface/dashboard/public/_nuxt/error-500.CVIcHofV.css +1 -0
  294. package/dist/interface/dashboard/public/_nuxt/index.BH5Gbe6q.css +1 -0
  295. package/dist/interface/dashboard/public/_nuxt/index.TQmbXYdV.css +1 -0
  296. package/dist/interface/dashboard/public/_nuxt/qq1iUjth.js +1 -0
  297. package/dist/interface/dashboard/public/favicon.ico +0 -0
  298. package/dist/interface/dashboard/public/index.html +1 -0
  299. package/dist/interface/dashboard/server.d.ts +11 -0
  300. package/dist/interface/dashboard/server.js +145 -0
  301. package/dist/interface/dashboard/server.js.map +1 -0
  302. package/dist/interface/dashboard/tool-wrapper.d.ts +4 -0
  303. package/dist/interface/dashboard/tool-wrapper.js +96 -0
  304. package/dist/interface/dashboard/tool-wrapper.js.map +1 -0
  305. package/dist/interface/mcp/server.d.ts +2 -0
  306. package/dist/interface/mcp/server.js +109 -0
  307. package/dist/interface/mcp/server.js.map +1 -0
  308. package/dist/interface/mcp/tools/add-cv.d.ts +3 -0
  309. package/dist/interface/mcp/tools/add-cv.js +21 -0
  310. package/dist/interface/mcp/tools/add-cv.js.map +1 -0
  311. package/dist/interface/mcp/tools/add-job-posting.d.ts +3 -0
  312. package/dist/interface/mcp/tools/add-job-posting.js +38 -0
  313. package/dist/interface/mcp/tools/add-job-posting.js.map +1 -0
  314. package/dist/interface/mcp/tools/add-pipeline-note.d.ts +3 -0
  315. package/dist/interface/mcp/tools/add-pipeline-note.js +32 -0
  316. package/dist/interface/mcp/tools/add-pipeline-note.js.map +1 -0
  317. package/dist/interface/mcp/tools/add-to-pipeline.d.ts +3 -0
  318. package/dist/interface/mcp/tools/add-to-pipeline.js +28 -0
  319. package/dist/interface/mcp/tools/add-to-pipeline.js.map +1 -0
  320. package/dist/interface/mcp/tools/bulk-add-cvs.d.ts +3 -0
  321. package/dist/interface/mcp/tools/bulk-add-cvs.js +28 -0
  322. package/dist/interface/mcp/tools/bulk-add-cvs.js.map +1 -0
  323. package/dist/interface/mcp/tools/delete-cv.d.ts +3 -0
  324. package/dist/interface/mcp/tools/delete-cv.js +20 -0
  325. package/dist/interface/mcp/tools/delete-cv.js.map +1 -0
  326. package/dist/interface/mcp/tools/delete-job-posting.d.ts +3 -0
  327. package/dist/interface/mcp/tools/delete-job-posting.js +27 -0
  328. package/dist/interface/mcp/tools/delete-job-posting.js.map +1 -0
  329. package/dist/interface/mcp/tools/export-results.d.ts +3 -0
  330. package/dist/interface/mcp/tools/export-results.js +23 -0
  331. package/dist/interface/mcp/tools/export-results.js.map +1 -0
  332. package/dist/interface/mcp/tools/filter-candidates.d.ts +3 -0
  333. package/dist/interface/mcp/tools/filter-candidates.js +32 -0
  334. package/dist/interface/mcp/tools/filter-candidates.js.map +1 -0
  335. package/dist/interface/mcp/tools/get-candidate-history.d.ts +3 -0
  336. package/dist/interface/mcp/tools/get-candidate-history.js +22 -0
  337. package/dist/interface/mcp/tools/get-candidate-history.js.map +1 -0
  338. package/dist/interface/mcp/tools/get-cv-chunks.d.ts +3 -0
  339. package/dist/interface/mcp/tools/get-cv-chunks.js +26 -0
  340. package/dist/interface/mcp/tools/get-cv-chunks.js.map +1 -0
  341. package/dist/interface/mcp/tools/get-cv-detail.d.ts +3 -0
  342. package/dist/interface/mcp/tools/get-cv-detail.js +23 -0
  343. package/dist/interface/mcp/tools/get-cv-detail.js.map +1 -0
  344. package/dist/interface/mcp/tools/get-cv-versions.d.ts +3 -0
  345. package/dist/interface/mcp/tools/get-cv-versions.js +20 -0
  346. package/dist/interface/mcp/tools/get-cv-versions.js.map +1 -0
  347. package/dist/interface/mcp/tools/get-job-posting.d.ts +3 -0
  348. package/dist/interface/mcp/tools/get-job-posting.js +26 -0
  349. package/dist/interface/mcp/tools/get-job-posting.js.map +1 -0
  350. package/dist/interface/mcp/tools/get-pending-actions.d.ts +3 -0
  351. package/dist/interface/mcp/tools/get-pending-actions.js +19 -0
  352. package/dist/interface/mcp/tools/get-pending-actions.js.map +1 -0
  353. package/dist/interface/mcp/tools/get-pipeline.d.ts +3 -0
  354. package/dist/interface/mcp/tools/get-pipeline.js +22 -0
  355. package/dist/interface/mcp/tools/get-pipeline.js.map +1 -0
  356. package/dist/interface/mcp/tools/get-server-status.d.ts +3 -0
  357. package/dist/interface/mcp/tools/get-server-status.js +38 -0
  358. package/dist/interface/mcp/tools/get-server-status.js.map +1 -0
  359. package/dist/interface/mcp/tools/get-stats.d.ts +3 -0
  360. package/dist/interface/mcp/tools/get-stats.js +19 -0
  361. package/dist/interface/mcp/tools/get-stats.js.map +1 -0
  362. package/dist/interface/mcp/tools/list-cvs.d.ts +3 -0
  363. package/dist/interface/mcp/tools/list-cvs.js +32 -0
  364. package/dist/interface/mcp/tools/list-cvs.js.map +1 -0
  365. package/dist/interface/mcp/tools/list-job-postings.d.ts +3 -0
  366. package/dist/interface/mcp/tools/list-job-postings.js +19 -0
  367. package/dist/interface/mcp/tools/list-job-postings.js.map +1 -0
  368. package/dist/interface/mcp/tools/manage-tags.d.ts +3 -0
  369. package/dist/interface/mcp/tools/manage-tags.js +24 -0
  370. package/dist/interface/mcp/tools/manage-tags.js.map +1 -0
  371. package/dist/interface/mcp/tools/match-candidates.d.ts +3 -0
  372. package/dist/interface/mcp/tools/match-candidates.js +23 -0
  373. package/dist/interface/mcp/tools/match-candidates.js.map +1 -0
  374. package/dist/interface/mcp/tools/reset-database.d.ts +3 -0
  375. package/dist/interface/mcp/tools/reset-database.js +35 -0
  376. package/dist/interface/mcp/tools/reset-database.js.map +1 -0
  377. package/dist/interface/mcp/tools/semantic-search.d.ts +3 -0
  378. package/dist/interface/mcp/tools/semantic-search.js +27 -0
  379. package/dist/interface/mcp/tools/semantic-search.js.map +1 -0
  380. package/dist/interface/mcp/tools/set-pending-action.d.ts +3 -0
  381. package/dist/interface/mcp/tools/set-pending-action.js +36 -0
  382. package/dist/interface/mcp/tools/set-pending-action.js.map +1 -0
  383. package/dist/interface/mcp/tools/update-cv.d.ts +3 -0
  384. package/dist/interface/mcp/tools/update-cv.js +23 -0
  385. package/dist/interface/mcp/tools/update-cv.js.map +1 -0
  386. package/dist/interface/mcp/tools/update-job-posting.d.ts +3 -0
  387. package/dist/interface/mcp/tools/update-job-posting.js +42 -0
  388. package/dist/interface/mcp/tools/update-job-posting.js.map +1 -0
  389. package/dist/interface/mcp/tools/update-pipeline-status.d.ts +3 -0
  390. package/dist/interface/mcp/tools/update-pipeline-status.js +41 -0
  391. package/dist/interface/mcp/tools/update-pipeline-status.js.map +1 -0
  392. package/dist/interface/mcp/types.d.ts +26 -0
  393. package/dist/interface/mcp/types.js +2 -0
  394. package/dist/interface/mcp/types.js.map +1 -0
  395. package/dist/shared/errors/index.d.ts +32 -0
  396. package/dist/shared/errors/index.js +56 -0
  397. package/dist/shared/errors/index.js.map +1 -0
  398. package/dist/shared/types/index.d.ts +19 -0
  399. package/dist/shared/types/index.js +2 -0
  400. package/dist/shared/types/index.js.map +1 -0
  401. package/dist/shared/utils/chunking.d.ts +3 -0
  402. package/dist/shared/utils/chunking.js +89 -0
  403. package/dist/shared/utils/chunking.js.map +1 -0
  404. package/dist/shared/utils/file-storage.d.ts +8 -0
  405. package/dist/shared/utils/file-storage.js +49 -0
  406. package/dist/shared/utils/file-storage.js.map +1 -0
  407. package/dist/shared/utils/index.d.ts +3 -0
  408. package/dist/shared/utils/index.js +4 -0
  409. package/dist/shared/utils/index.js.map +1 -0
  410. package/dist/shared/utils/text.d.ts +5 -0
  411. package/dist/shared/utils/text.js +21 -0
  412. package/dist/shared/utils/text.js.map +1 -0
  413. package/package.json +72 -0
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod/v4';
2
+ import { getDatabase, resetAllTables } from '../../../infrastructure/persistence/database.js';
3
+ import { loadConfig } from '../../../infrastructure/config/app-config.js';
4
+ export function registerResetDatabaseTool(server, deps) {
5
+ server.tool('reset_database', 'Drop all tables and recreate them with fresh schema. This permanently deletes ALL candidates, chunks, and versions.', {
6
+ confirm: z.literal('yes').describe('Must be "yes" to confirm the reset'),
7
+ }, async ({ confirm }) => {
8
+ if (confirm !== 'yes') {
9
+ return {
10
+ content: [{ type: 'text', text: 'Reset cancelled. Pass confirm: "yes" to proceed.' }],
11
+ };
12
+ }
13
+ try {
14
+ const config = loadConfig();
15
+ const db = await getDatabase(config.lancedbPath);
16
+ await resetAllTables(db);
17
+ deps.candidateRepo.refreshTable();
18
+ deps.chunkRepo.refreshTable();
19
+ deps.versionRepo.refreshTable();
20
+ deps.jobPostingRepo.refreshTable();
21
+ deps.applicationRepo.refreshTable();
22
+ deps.applicationEventRepo.refreshTable();
23
+ return {
24
+ content: [{ type: 'text', text: 'Database reset complete. All tables recreated with fresh schema.' }],
25
+ };
26
+ }
27
+ catch (error) {
28
+ return {
29
+ content: [{ type: 'text', text: JSON.stringify({ error: error.message }) }],
30
+ isError: true,
31
+ };
32
+ }
33
+ });
34
+ }
35
+ //# sourceMappingURL=reset-database.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reset-database.js","sourceRoot":"","sources":["../../../../src/interface/mcp/tools/reset-database.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAG1E,MAAM,UAAU,yBAAyB,CAAC,MAAiB,EAAE,IAAkB;IAC7E,MAAM,CAAC,IAAI,CACT,gBAAgB,EAChB,qHAAqH,EACrH;QACE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;KACzE,EACD,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACpB,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;YACtB,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,kDAAkD,EAAE,CAAC;aAC/F,CAAC;QACJ,CAAC;QAED,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;YAC5B,MAAM,EAAE,GAAG,MAAM,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACjD,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;YAEzB,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC;YAClC,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC;YAC9B,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC;YAChC,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC;YACnC,IAAI,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC;YACpC,IAAI,CAAC,oBAAoB,CAAC,YAAY,EAAE,CAAC;YAEzC,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,kEAAkE,EAAE,CAAC;aAC/G,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;gBAC/F,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import type { Dependencies } from '../types.js';
3
+ export declare function registerSemanticSearchTool(server: McpServer, deps: Dependencies): void;
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod/v4';
2
+ import { SemanticSearchUseCase } from '../../../application/use-cases/semantic-search.js';
3
+ export function registerSemanticSearchTool(server, deps) {
4
+ const useCase = new SemanticSearchUseCase(deps.chunkRepo, deps.embeddingService, deps.candidateRepo);
5
+ server.tool('semantic_search', 'Search for candidates matching a text query using vector similarity. Returns ranked results with relevance scores.', {
6
+ query: z.string().describe('Search query text (e.g., job description or skill requirements)'),
7
+ limit: z.number().optional().describe('Maximum number of results (default: 10)'),
8
+ section_type: z
9
+ .enum(['summary', 'experience', 'education', 'skills', 'projects', 'certifications', 'full'])
10
+ .optional()
11
+ .describe('Filter results to a specific CV section type'),
12
+ }, async ({ query, limit, section_type }) => {
13
+ try {
14
+ const results = await useCase.execute({ query, limit, sectionType: section_type });
15
+ return {
16
+ content: [{ type: 'text', text: JSON.stringify(results, null, 2) }],
17
+ };
18
+ }
19
+ catch (error) {
20
+ return {
21
+ content: [{ type: 'text', text: JSON.stringify({ error: error.message }) }],
22
+ isError: true,
23
+ };
24
+ }
25
+ });
26
+ }
27
+ //# sourceMappingURL=semantic-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file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,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;gBAC/F,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import type { Dependencies } from '../types.js';
3
+ export declare function registerSetPendingActionTool(server: McpServer, deps: Dependencies): void;
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod/v4';
2
+ import { SetPendingActionUseCase } from '../../../application/use-cases/set-pending-action.js';
3
+ export function registerSetPendingActionTool(server, deps) {
4
+ const useCase = new SetPendingActionUseCase(deps.applicationRepo);
5
+ server.tool('set_pending_action', 'Set or clear a pending action on an application. Use to track what needs to happen next and who is responsible.', {
6
+ application_id: z.string().describe('ID of the application'),
7
+ action: z
8
+ .string()
9
+ .optional()
10
+ .describe('Pending action description (omit or empty to clear)'),
11
+ due_date: z.string().optional().describe('Due date (ISO format, e.g. "2026-03-01")'),
12
+ owner: z
13
+ .enum(['us', 'candidate'])
14
+ .optional()
15
+ .describe('Who is responsible: "us" or "candidate"'),
16
+ }, async ({ application_id, action, due_date, owner }) => {
17
+ try {
18
+ const application = await useCase.execute({
19
+ applicationId: application_id,
20
+ action,
21
+ dueDate: due_date,
22
+ owner,
23
+ });
24
+ return {
25
+ content: [{ type: 'text', text: JSON.stringify(application, null, 2) }],
26
+ };
27
+ }
28
+ catch (error) {
29
+ return {
30
+ content: [{ type: 'text', text: JSON.stringify({ error: error.message }) }],
31
+ isError: true,
32
+ };
33
+ }
34
+ });
35
+ }
36
+ //# sourceMappingURL=set-pending-action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-pending-action.js","sourceRoot":"","sources":["../../../../src/interface/mcp/tools/set-pending-action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,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AAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;gBAC/F,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import type { Dependencies } from '../types.js';
3
+ export declare function registerUpdateCvTool(server: McpServer, deps: Dependencies): void;
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod/v4';
2
+ import { UpdateCvUseCase } from '../../../application/use-cases/update-cv.js';
3
+ export function registerUpdateCvTool(server, deps) {
4
+ const useCase = new UpdateCvUseCase(deps.candidateRepo, deps.chunkRepo, deps.versionRepo, deps.parsers, deps.embeddingService, deps.extractor);
5
+ server.tool('update_cv', 'Update an existing CV with a new file. Archives the old version and replaces with new data.', {
6
+ candidate_id: z.string().describe('ID of the candidate to update'),
7
+ file_path: z.string().describe('Absolute path to the new CV file (PDF or DOCX)'),
8
+ }, async ({ candidate_id, file_path }) => {
9
+ try {
10
+ const candidate = await useCase.execute(candidate_id, file_path);
11
+ return {
12
+ content: [{ type: 'text', text: JSON.stringify(candidate, null, 2) }],
13
+ };
14
+ }
15
+ catch (error) {
16
+ return {
17
+ content: [{ type: 'text', text: JSON.stringify({ error: error.message }) }],
18
+ isError: true,
19
+ };
20
+ }
21
+ });
22
+ }
23
+ //# sourceMappingURL=update-cv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-cv.js","sourceRoot":"","sources":["../../../../src/interface/mcp/tools/update-cv.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAG9E,MAAM,UAAU,oBAAoB,CAAC,MAAiB,EAAE,IAAkB;IACxE,MAAM,OAAO,GAAG,IAAI,eAAe,CACjC,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,SAAS,CACf,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,WAAW,EACX,6FAA6F,EAC7F;QACE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;QAClE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;KACjF,EACD,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,EAAE;QACpC,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;YACjE,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;aAC/E,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;gBAC/F,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import type { Dependencies } from '../types.js';
3
+ export declare function registerUpdateJobPostingTool(server: McpServer, deps: Dependencies): void;
@@ -0,0 +1,42 @@
1
+ import { z } from 'zod/v4';
2
+ import { UpdateJobPostingUseCase } from '../../../application/use-cases/update-job-posting.js';
3
+ export function registerUpdateJobPostingTool(server, deps) {
4
+ const useCase = new UpdateJobPostingUseCase(deps.jobPostingRepo);
5
+ server.tool('update_job_posting', 'Update an existing job posting. Only provided fields are updated; omitted fields remain unchanged.', {
6
+ id: z.string().describe('Job posting ID'),
7
+ title: z.string().optional().describe('Job title'),
8
+ description: z.string().optional().describe('Full job description'),
9
+ raw_text: z.string().optional().describe('Original raw text of the job posting'),
10
+ requirements: z.string().optional().describe('Specific job requirements'),
11
+ required_skills: z.array(z.string()).optional().describe('Skills required for this position'),
12
+ preferred_skills: z.array(z.string()).optional().describe('Nice-to-have skills'),
13
+ location: z.string().optional().describe('Job location'),
14
+ salary_range: z.string().optional().describe('Salary range'),
15
+ status: z.enum(['open', 'closed']).optional().describe('Job posting status'),
16
+ }, async ({ id, title, description, raw_text, requirements, required_skills, preferred_skills, location, salary_range, status }) => {
17
+ try {
18
+ const jobPosting = await useCase.execute({
19
+ id,
20
+ title,
21
+ description,
22
+ rawText: raw_text,
23
+ requirements,
24
+ requiredSkills: required_skills,
25
+ preferredSkills: preferred_skills,
26
+ location,
27
+ salaryRange: salary_range,
28
+ status,
29
+ });
30
+ return {
31
+ content: [{ type: 'text', text: JSON.stringify(jobPosting, null, 2) }],
32
+ };
33
+ }
34
+ catch (error) {
35
+ return {
36
+ content: [{ type: 'text', text: JSON.stringify({ error: error.message }) }],
37
+ isError: true,
38
+ };
39
+ }
40
+ });
41
+ }
42
+ //# sourceMappingURL=update-job-posting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-job-posting.js","sourceRoot":"","sources":["../../../../src/interface/mcp/tools/update-job-posting.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAG/F,MAAM,UAAU,4BAA4B,CAAC,MAAiB,EAAE,IAAkB;IAChF,MAAM,OAAO,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAEjE,MAAM,CAAC,IAAI,CACT,oBAAoB,EACpB,oGAAoG,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AAU,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC;gBACvC,EAAE;gBACF,KAAK;gBACL,WAAW;gBACX,OAAO,EAAE,QAAQ;gBACjB,YAAY;gBACZ,cAAc,EAAE,eAAe;gBAC/B,eAAe,EAAE,gBAAgB;gBACjC,QAAQ;gBACR,WAAW,EAAE,YAAY;gBACzB,MAAM;aACP,CAAC,CAAC;YACH,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;aAChF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;gBAC/F,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import type { Dependencies } from '../types.js';
3
+ export declare function registerUpdatePipelineStatusTool(server: McpServer, deps: Dependencies): void;
@@ -0,0 +1,41 @@
1
+ import { z } from 'zod/v4';
2
+ import { UpdatePipelineStatusUseCase } from '../../../application/use-cases/update-pipeline-status.js';
3
+ export function registerUpdatePipelineStatusTool(server, deps) {
4
+ const useCase = new UpdatePipelineStatusUseCase(deps.applicationRepo, deps.applicationEventRepo);
5
+ server.tool('update_pipeline_status', 'Update the status of a candidate in the recruitment pipeline. Statuses: new, contacted, unreachable, not_interested, interview_scheduled, no_show, interviewed, rejected, offer_sent, hired.', {
6
+ application_id: z.string().describe('ID of the application'),
7
+ new_status: z
8
+ .enum([
9
+ 'new',
10
+ 'contacted',
11
+ 'unreachable',
12
+ 'not_interested',
13
+ 'interview_scheduled',
14
+ 'no_show',
15
+ 'interviewed',
16
+ 'rejected',
17
+ 'offer_sent',
18
+ 'hired',
19
+ ])
20
+ .describe('New status'),
21
+ note: z.string().optional().describe('Optional note about the status change'),
22
+ }, async ({ application_id, new_status, note }) => {
23
+ try {
24
+ const application = await useCase.execute({
25
+ applicationId: application_id,
26
+ newStatus: new_status,
27
+ note,
28
+ });
29
+ return {
30
+ content: [{ type: 'text', text: JSON.stringify(application, null, 2) }],
31
+ };
32
+ }
33
+ catch (error) {
34
+ return {
35
+ content: [{ type: 'text', text: JSON.stringify({ error: error.message }) }],
36
+ isError: true,
37
+ };
38
+ }
39
+ });
40
+ }
41
+ //# sourceMappingURL=update-pipeline-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-pipeline-status.js","sourceRoot":"","sources":["../../../../src/interface/mcp/tools/update-pipeline-status.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,2BAA2B,EAAE,MAAM,0DAA0D,CAAC;AAGvG,MAAM,UAAU,gCAAgC,CAAC,MAAiB,EAAE,IAAkB;IACpF,MAAM,OAAO,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAEjG,MAAM,CAAC,IAAI,CACT,wBAAwB,EACxB,8LAA8L,EAC9L;QACE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;QAC5D,UAAU,EAAE,CAAC;aACV,IAAI,CAAC;YACJ,KAAK;YACL,WAAW;YACX,aAAa;YACb,gBAAgB;YAChB,qBAAqB;YACrB,SAAS;YACT,aAAa;YACb,UAAU;YACV,YAAY;YACZ,OAAO;SACR,CAAC;aACD,QAAQ,CAAC,YAAY,CAAC;QACzB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;KAC9E,EACD,KAAK,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE;QAC7C,IAAI,CAAC;YACH,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC;gBACxC,aAAa,EAAE,cAAc;gBAC7B,SAAS,EAAE,UAAU;gBACrB,IAAI;aACL,CAAC,CAAC;YACH,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;aACjF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;gBAC/F,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { ICandidateRepository } from '../../domain/repositories/candidate-repository.js';
2
+ import type { IChunkRepository } from '../../domain/repositories/chunk-repository.js';
3
+ import type { IVersionRepository } from '../../domain/repositories/version-repository.js';
4
+ import type { IDocumentParser } from '../../application/ports/document-parser.js';
5
+ import type { IEmbeddingService } from '../../application/ports/embedding-service.js';
6
+ import type { IStructuredExtractor } from '../../application/ports/structured-extractor.js';
7
+ import type { IExportService } from '../../application/ports/export-service.js';
8
+ import type { IJobPostingRepository } from '../../domain/repositories/job-posting-repository.js';
9
+ import type { IApplicationRepository } from '../../domain/repositories/application-repository.js';
10
+ import type { IApplicationEventRepository } from '../../domain/repositories/application-event-repository.js';
11
+ interface Refreshable {
12
+ refreshTable(): void;
13
+ }
14
+ export interface Dependencies {
15
+ candidateRepo: ICandidateRepository & Refreshable;
16
+ chunkRepo: IChunkRepository & Refreshable;
17
+ versionRepo: IVersionRepository & Refreshable;
18
+ jobPostingRepo: IJobPostingRepository & Refreshable;
19
+ applicationRepo: IApplicationRepository & Refreshable;
20
+ applicationEventRepo: IApplicationEventRepository & Refreshable;
21
+ parsers: IDocumentParser[];
22
+ embeddingService: IEmbeddingService;
23
+ extractor: IStructuredExtractor;
24
+ exportService: IExportService;
25
+ }
26
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/interface/mcp/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ export declare class AppError extends Error {
2
+ readonly code: string;
3
+ readonly cause?: unknown | undefined;
4
+ constructor(code: string, message: string, cause?: unknown | undefined);
5
+ }
6
+ export declare class CandidateNotFoundError extends AppError {
7
+ constructor(candidateId: string);
8
+ }
9
+ export declare class DuplicateCandidateError extends AppError {
10
+ constructor(identifier: string);
11
+ }
12
+ export declare class DocumentParseError extends AppError {
13
+ constructor(message: string, cause?: unknown);
14
+ }
15
+ export declare class EmbeddingError extends AppError {
16
+ constructor(message: string, cause?: unknown);
17
+ }
18
+ export declare class ExtractionError extends AppError {
19
+ constructor(message: string, cause?: unknown);
20
+ }
21
+ export declare class DatabaseError extends AppError {
22
+ constructor(message: string, cause?: unknown);
23
+ }
24
+ export declare class ValidationError extends AppError {
25
+ constructor(message: string);
26
+ }
27
+ export declare class FileNotFoundError extends AppError {
28
+ constructor(filePath: string);
29
+ }
30
+ export declare class UnsupportedFileTypeError extends AppError {
31
+ constructor(fileType: string);
32
+ }
@@ -0,0 +1,56 @@
1
+ export class AppError extends Error {
2
+ code;
3
+ cause;
4
+ constructor(code, message, cause) {
5
+ super(message);
6
+ this.code = code;
7
+ this.cause = cause;
8
+ this.name = this.constructor.name;
9
+ }
10
+ }
11
+ export class CandidateNotFoundError extends AppError {
12
+ constructor(candidateId) {
13
+ super('CANDIDATE_NOT_FOUND', `Candidate not found: ${candidateId}`);
14
+ }
15
+ }
16
+ export class DuplicateCandidateError extends AppError {
17
+ constructor(identifier) {
18
+ super('DUPLICATE_CANDIDATE', `Candidate already exists: ${identifier}`);
19
+ }
20
+ }
21
+ export class DocumentParseError extends AppError {
22
+ constructor(message, cause) {
23
+ super('DOCUMENT_PARSE_ERROR', message, cause);
24
+ }
25
+ }
26
+ export class EmbeddingError extends AppError {
27
+ constructor(message, cause) {
28
+ super('EMBEDDING_ERROR', message, cause);
29
+ }
30
+ }
31
+ export class ExtractionError extends AppError {
32
+ constructor(message, cause) {
33
+ super('EXTRACTION_ERROR', message, cause);
34
+ }
35
+ }
36
+ export class DatabaseError extends AppError {
37
+ constructor(message, cause) {
38
+ super('DATABASE_ERROR', message, cause);
39
+ }
40
+ }
41
+ export class ValidationError extends AppError {
42
+ constructor(message) {
43
+ super('VALIDATION_ERROR', message);
44
+ }
45
+ }
46
+ export class FileNotFoundError extends AppError {
47
+ constructor(filePath) {
48
+ super('FILE_NOT_FOUND', `File not found: ${filePath}`);
49
+ }
50
+ }
51
+ export class UnsupportedFileTypeError extends AppError {
52
+ constructor(fileType) {
53
+ super('UNSUPPORTED_FILE_TYPE', `Unsupported file type: ${fileType}`);
54
+ }
55
+ }
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/errors/index.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,QAAS,SAAQ,KAAK;IAEf;IAEA;IAHlB,YACkB,IAAY,EAC5B,OAAe,EACC,KAAe;QAE/B,KAAK,CAAC,OAAO,CAAC,CAAC;QAJC,SAAI,GAAJ,IAAI,CAAQ;QAEZ,UAAK,GAAL,KAAK,CAAU;QAG/B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAED,MAAM,OAAO,sBAAuB,SAA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AQ,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
@@ -0,0 +1,19 @@
1
+ export type SectionType = 'summary' | 'experience' | 'education' | 'skills' | 'projects' | 'certifications' | 'full';
2
+ export type FileType = 'pdf' | 'docx';
3
+ export type TagAction = 'add' | 'remove' | 'list';
4
+ export type ExportFormat = 'json' | 'csv';
5
+ export type SortField = 'name' | 'created_at' | 'updated_at' | 'experience_years';
6
+ export type SortOrder = 'asc' | 'desc';
7
+ export interface PaginationOptions {
8
+ offset: number;
9
+ limit: number;
10
+ }
11
+ export interface SortOptions {
12
+ field: SortField;
13
+ order: SortOrder;
14
+ }
15
+ export interface ChunkInput {
16
+ sectionType: SectionType;
17
+ content: string;
18
+ metadata: Record<string, unknown>;
19
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/types/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { ExtractedCv } from '../../application/dto/extracted-cv.js';
2
+ import type { ChunkInput } from '../types/index.js';
3
+ export declare function createChunks(extracted: ExtractedCv, rawText: string): ChunkInput[];
@@ -0,0 +1,89 @@
1
+ export function createChunks(extracted, rawText) {
2
+ const chunks = [];
3
+ if (extracted.summary) {
4
+ chunks.push({
5
+ sectionType: 'summary',
6
+ content: extracted.summary,
7
+ metadata: {},
8
+ });
9
+ }
10
+ for (let i = 0; i < extracted.experience.length; i++) {
11
+ const exp = extracted.experience[i];
12
+ const parts = [
13
+ `${exp.position} at ${exp.company}`,
14
+ exp.startDate || exp.endDate
15
+ ? `(${exp.startDate ?? '?'} - ${exp.endDate ?? 'Present'})`
16
+ : '',
17
+ exp.description ?? '',
18
+ ].filter(Boolean);
19
+ chunks.push({
20
+ sectionType: 'experience',
21
+ content: parts.join(' '),
22
+ metadata: { index: i, company: exp.company, position: exp.position },
23
+ });
24
+ }
25
+ if (extracted.education.length > 0) {
26
+ const content = extracted.education
27
+ .map((e) => {
28
+ const parts = [
29
+ e.degree,
30
+ e.field ? `in ${e.field}` : '',
31
+ `at ${e.institution}`,
32
+ e.startDate || e.endDate
33
+ ? `(${e.startDate ?? '?'} - ${e.endDate ?? '?'})`
34
+ : '',
35
+ ].filter(Boolean);
36
+ return parts.join(' ');
37
+ })
38
+ .join('\n');
39
+ chunks.push({
40
+ sectionType: 'education',
41
+ content,
42
+ metadata: { count: extracted.education.length },
43
+ });
44
+ }
45
+ if (extracted.skills.length > 0) {
46
+ chunks.push({
47
+ sectionType: 'skills',
48
+ content: extracted.skills.join(', '),
49
+ metadata: { count: extracted.skills.length },
50
+ });
51
+ }
52
+ if (extracted.projects.length > 0) {
53
+ const content = extracted.projects
54
+ .map((p) => {
55
+ const parts = [
56
+ p.name,
57
+ p.description ?? '',
58
+ p.technologies ? `Technologies: ${p.technologies.join(', ')}` : '',
59
+ ].filter(Boolean);
60
+ return parts.join(' - ');
61
+ })
62
+ .join('\n');
63
+ chunks.push({
64
+ sectionType: 'projects',
65
+ content,
66
+ metadata: { count: extracted.projects.length },
67
+ });
68
+ }
69
+ if (extracted.certifications.length > 0) {
70
+ const content = extracted.certifications
71
+ .map((c) => {
72
+ const parts = [c.name, c.issuer ? `by ${c.issuer}` : '', c.date ?? ''].filter(Boolean);
73
+ return parts.join(' ');
74
+ })
75
+ .join('\n');
76
+ chunks.push({
77
+ sectionType: 'certifications',
78
+ content,
79
+ metadata: { count: extracted.certifications.length },
80
+ });
81
+ }
82
+ chunks.push({
83
+ sectionType: 'full',
84
+ content: rawText,
85
+ metadata: {},
86
+ });
87
+ return chunks;
88
+ }
89
+ //# sourceMappingURL=chunking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunking.js","sourceRoot":"","sources":["../../../src/shared/utils/chunking.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,YAAY,CAAC,SAAsB,EAAE,OAAe;IAClE,MAAM,MAAM,GAAiB,EAAE,CAAC;IAEh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C,CAAC;YAClB,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC3B,CAAC,CAAC;aACD,IAAI,CAAC,IAAI,CAAC,CAAC;QAEd,MAAM,CAAC,IAAI,CAAC;YACV,WAAW,EAAE,UAAU;YACvB,OAAO;YACP,QAAQ,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE;SAC/C,CAAC,CAAC;IACL,CAAC;IAED,IAAI,SAAS,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACxC,MAAM,OAAO,GAAG,SAAS,CAAC,cAAc;aACrC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACvF,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACzB,CAAC,CAAC;aACD,IAAI,CAAC,IAAI,CAAC,CAAC;QAEd,MAAM,CAAC,IAAI,CAAC;YACV,WAAW,EAAE,gBAAgB;YAC7B,OAAO;YACP,QAAQ,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,EAAE;SACrD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,IAAI,CAAC;QACV,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,EAAE;KACb,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Resolves a file path by handling Unicode NFC/NFD normalization differences.
3
+ * Some OS/programs create filenames in NFD (decomposed) form while paths are
4
+ * typically passed in NFC (composed) form. This tries both normalizations.
5
+ */
6
+ export declare function resolveFilePath(filePath: string): Promise<string>;
7
+ export declare function storeOriginalFile(filePath: string, candidateId: string): Promise<string>;
8
+ export declare function getCvFilesDir(): string;
@@ -0,0 +1,49 @@
1
+ import { access, copyFile, mkdir, readdir } from 'node:fs/promises';
2
+ import { join, extname, dirname, basename } from 'node:path';
3
+ const CV_FILES_DIR = 'data/cv-files';
4
+ /**
5
+ * Resolves a file path by handling Unicode NFC/NFD normalization differences.
6
+ * Some OS/programs create filenames in NFD (decomposed) form while paths are
7
+ * typically passed in NFC (composed) form. This tries both normalizations.
8
+ */
9
+ export async function resolveFilePath(filePath) {
10
+ // Try the path as-is first
11
+ try {
12
+ await access(filePath);
13
+ return filePath;
14
+ }
15
+ catch {
16
+ // File not found with original path, try normalization
17
+ }
18
+ const dir = dirname(filePath);
19
+ const target = basename(filePath);
20
+ const targetNFC = target.normalize('NFC');
21
+ const targetNFD = target.normalize('NFD');
22
+ let entries;
23
+ try {
24
+ entries = await readdir(dir);
25
+ }
26
+ catch {
27
+ throw new Error(`Directory not found: ${dir}`);
28
+ }
29
+ for (const entry of entries) {
30
+ const entryNFC = entry.normalize('NFC');
31
+ const entryNFD = entry.normalize('NFD');
32
+ if (entryNFC === targetNFC || entryNFD === targetNFD || entryNFC === targetNFD || entryNFD === targetNFC) {
33
+ return join(dir, entry);
34
+ }
35
+ }
36
+ throw new Error(`File not found: ${filePath}`);
37
+ }
38
+ export async function storeOriginalFile(filePath, candidateId) {
39
+ await mkdir(CV_FILES_DIR, { recursive: true });
40
+ const ext = extname(filePath).toLowerCase();
41
+ const destFileName = `${candidateId}${ext}`;
42
+ const destPath = join(CV_FILES_DIR, destFileName);
43
+ await copyFile(filePath, destPath);
44
+ return destPath;
45
+ }
46
+ export function getCvFilesDir() {
47
+ return CV_FILES_DIR;
48
+ }
49
+ //# sourceMappingURL=file-storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-storage.js","sourceRoot":"","sources":["../../../src/shared/utils/file-storage.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,KAAK,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,mBAAmB,QAAQ,EAAE,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAgB,EAAE,WAAmB;IAC3E,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC/C,MAAM,GAAG,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;IAC5C,MAAM,YAAY,GAAG,GAAG,WAAW,GAAG,GAAG,EAAE,CAAC;IAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IAClD,MAAM,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACnC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,OAAO,YAAY,CAAC;AACtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { normalizeWhitespace, truncateText, detectFileType, escapeFilterValue } from './text.js';
2
+ export { createChunks } from './chunking.js';
3
+ export { resolveFilePath } from './file-storage.js';
@@ -0,0 +1,4 @@
1
+ export { normalizeWhitespace, truncateText, detectFileType, escapeFilterValue } from './text.js';
2
+ export { createChunks } from './chunking.js';
3
+ export { resolveFilePath } from './file-storage.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { FileType } from '../types/index.js';
2
+ export declare function normalizeWhitespace(text: string): string;
3
+ export declare function truncateText(text: string, maxLength: number): string;
4
+ export declare function detectFileType(filePath: string): FileType;
5
+ export declare function escapeFilterValue(value: string): string;