@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.
- package/README.md +261 -0
- package/dist/application/dto/candidate-summary.d.ts +10 -0
- package/dist/application/dto/candidate-summary.js +2 -0
- package/dist/application/dto/candidate-summary.js.map +1 -0
- package/dist/application/dto/extracted-cv.d.ts +46 -0
- package/dist/application/dto/extracted-cv.js +2 -0
- package/dist/application/dto/extracted-cv.js.map +1 -0
- package/dist/application/dto/filter-input.d.ts +7 -0
- package/dist/application/dto/filter-input.js +2 -0
- package/dist/application/dto/filter-input.js.map +1 -0
- package/dist/application/dto/index.d.ts +5 -0
- package/dist/application/dto/index.js +2 -0
- package/dist/application/dto/index.js.map +1 -0
- package/dist/application/dto/search-results.d.ts +13 -0
- package/dist/application/dto/search-results.js +2 -0
- package/dist/application/dto/search-results.js.map +1 -0
- package/dist/application/dto/stats.d.ts +10 -0
- package/dist/application/dto/stats.js +2 -0
- package/dist/application/dto/stats.js.map +1 -0
- package/dist/application/ports/document-parser.d.ts +8 -0
- package/dist/application/ports/document-parser.js +2 -0
- package/dist/application/ports/document-parser.js.map +1 -0
- package/dist/application/ports/embedding-service.d.ts +4 -0
- package/dist/application/ports/embedding-service.js +2 -0
- package/dist/application/ports/embedding-service.js.map +1 -0
- package/dist/application/ports/export-service.d.ts +5 -0
- package/dist/application/ports/export-service.js +2 -0
- package/dist/application/ports/export-service.js.map +1 -0
- package/dist/application/ports/index.d.ts +4 -0
- package/dist/application/ports/index.js +2 -0
- package/dist/application/ports/index.js.map +1 -0
- package/dist/application/ports/structured-extractor.d.ts +4 -0
- package/dist/application/ports/structured-extractor.js +2 -0
- package/dist/application/ports/structured-extractor.js.map +1 -0
- package/dist/application/use-cases/add-cv.d.ts +16 -0
- package/dist/application/use-cases/add-cv.js +113 -0
- package/dist/application/use-cases/add-cv.js.map +1 -0
- package/dist/application/use-cases/add-job-posting.d.ts +17 -0
- package/dist/application/use-cases/add-job-posting.js +27 -0
- package/dist/application/use-cases/add-job-posting.js.map +1 -0
- package/dist/application/use-cases/add-pipeline-note.d.ts +15 -0
- package/dist/application/use-cases/add-pipeline-note.js +34 -0
- package/dist/application/use-cases/add-pipeline-note.js.map +1 -0
- package/dist/application/use-cases/add-to-pipeline.d.ts +18 -0
- package/dist/application/use-cases/add-to-pipeline.js +54 -0
- package/dist/application/use-cases/add-to-pipeline.js.map +1 -0
- package/dist/application/use-cases/bulk-add-cvs.d.ts +14 -0
- package/dist/application/use-cases/bulk-add-cvs.js +32 -0
- package/dist/application/use-cases/bulk-add-cvs.js.map +1 -0
- package/dist/application/use-cases/delete-cv.d.ts +10 -0
- package/dist/application/use-cases/delete-cv.js +21 -0
- package/dist/application/use-cases/delete-cv.js.map +1 -0
- package/dist/application/use-cases/export-results.d.ts +9 -0
- package/dist/application/use-cases/export-results.js +21 -0
- package/dist/application/use-cases/export-results.js.map +1 -0
- package/dist/application/use-cases/filter-candidates.d.ts +9 -0
- package/dist/application/use-cases/filter-candidates.js +51 -0
- package/dist/application/use-cases/filter-candidates.js.map +1 -0
- package/dist/application/use-cases/get-candidate-history.d.ts +25 -0
- package/dist/application/use-cases/get-candidate-history.js +36 -0
- package/dist/application/use-cases/get-candidate-history.js.map +1 -0
- package/dist/application/use-cases/get-cv-chunks.d.ts +15 -0
- package/dist/application/use-cases/get-cv-chunks.js +18 -0
- package/dist/application/use-cases/get-cv-chunks.js.map +1 -0
- package/dist/application/use-cases/get-cv-detail.d.ts +7 -0
- package/dist/application/use-cases/get-cv-detail.js +15 -0
- package/dist/application/use-cases/get-cv-detail.js.map +1 -0
- package/dist/application/use-cases/get-cv-versions.d.ts +9 -0
- package/dist/application/use-cases/get-cv-versions.js +18 -0
- package/dist/application/use-cases/get-cv-versions.js.map +1 -0
- package/dist/application/use-cases/get-pending-actions.d.ts +23 -0
- package/dist/application/use-cases/get-pending-actions.js +50 -0
- package/dist/application/use-cases/get-pending-actions.js.map +1 -0
- package/dist/application/use-cases/get-pipeline.d.ts +27 -0
- package/dist/application/use-cases/get-pipeline.js +40 -0
- package/dist/application/use-cases/get-pipeline.js.map +1 -0
- package/dist/application/use-cases/get-stats.d.ts +13 -0
- package/dist/application/use-cases/get-stats.js +50 -0
- package/dist/application/use-cases/get-stats.js.map +1 -0
- package/dist/application/use-cases/index.d.ts +23 -0
- package/dist/application/use-cases/index.js +24 -0
- package/dist/application/use-cases/index.js.map +1 -0
- package/dist/application/use-cases/list-cvs.d.ts +8 -0
- package/dist/application/use-cases/list-cvs.js +20 -0
- package/dist/application/use-cases/list-cvs.js.map +1 -0
- package/dist/application/use-cases/list-job-postings.d.ts +7 -0
- package/dist/application/use-cases/list-job-postings.js +10 -0
- package/dist/application/use-cases/list-job-postings.js.map +1 -0
- package/dist/application/use-cases/manage-tags.d.ts +7 -0
- package/dist/application/use-cases/manage-tags.js +36 -0
- package/dist/application/use-cases/manage-tags.js.map +1 -0
- package/dist/application/use-cases/match-candidates.d.ts +27 -0
- package/dist/application/use-cases/match-candidates.js +92 -0
- package/dist/application/use-cases/match-candidates.js.map +1 -0
- package/dist/application/use-cases/semantic-search.d.ts +11 -0
- package/dist/application/use-cases/semantic-search.js +40 -0
- package/dist/application/use-cases/semantic-search.js.map +1 -0
- package/dist/application/use-cases/set-pending-action.d.ts +13 -0
- package/dist/application/use-cases/set-pending-action.js +24 -0
- package/dist/application/use-cases/set-pending-action.js.map +1 -0
- package/dist/application/use-cases/update-cv.d.ts +17 -0
- package/dist/application/use-cases/update-cv.js +103 -0
- package/dist/application/use-cases/update-cv.js.map +1 -0
- package/dist/application/use-cases/update-job-posting.d.ts +19 -0
- package/dist/application/use-cases/update-job-posting.js +28 -0
- package/dist/application/use-cases/update-job-posting.js.map +1 -0
- package/dist/application/use-cases/update-pipeline-status.d.ts +14 -0
- package/dist/application/use-cases/update-pipeline-status.js +38 -0
- package/dist/application/use-cases/update-pipeline-status.js.map +1 -0
- package/dist/domain/entities/application-event.d.ts +11 -0
- package/dist/domain/entities/application-event.js +2 -0
- package/dist/domain/entities/application-event.js.map +1 -0
- package/dist/domain/entities/application.d.ts +13 -0
- package/dist/domain/entities/application.js +2 -0
- package/dist/domain/entities/application.js.map +1 -0
- package/dist/domain/entities/candidate.d.ts +26 -0
- package/dist/domain/entities/candidate.js +2 -0
- package/dist/domain/entities/candidate.js.map +1 -0
- package/dist/domain/entities/cv-chunk.d.ts +10 -0
- package/dist/domain/entities/cv-chunk.js +2 -0
- package/dist/domain/entities/cv-chunk.js.map +1 -0
- package/dist/domain/entities/cv-version.d.ts +7 -0
- package/dist/domain/entities/cv-version.js +2 -0
- package/dist/domain/entities/cv-version.js.map +1 -0
- package/dist/domain/entities/index.d.ts +6 -0
- package/dist/domain/entities/index.js +2 -0
- package/dist/domain/entities/index.js.map +1 -0
- package/dist/domain/entities/job-posting.d.ts +14 -0
- package/dist/domain/entities/job-posting.js +2 -0
- package/dist/domain/entities/job-posting.js.map +1 -0
- package/dist/domain/repositories/application-event-repository.d.ts +7 -0
- package/dist/domain/repositories/application-event-repository.js +2 -0
- package/dist/domain/repositories/application-event-repository.js.map +1 -0
- package/dist/domain/repositories/application-repository.d.ts +12 -0
- package/dist/domain/repositories/application-repository.js +2 -0
- package/dist/domain/repositories/application-repository.js.map +1 -0
- package/dist/domain/repositories/candidate-repository.d.ts +12 -0
- package/dist/domain/repositories/candidate-repository.js +2 -0
- package/dist/domain/repositories/candidate-repository.js.map +1 -0
- package/dist/domain/repositories/chunk-repository.d.ts +13 -0
- package/dist/domain/repositories/chunk-repository.js +2 -0
- package/dist/domain/repositories/chunk-repository.js.map +1 -0
- package/dist/domain/repositories/index.d.ts +6 -0
- package/dist/domain/repositories/index.js +2 -0
- package/dist/domain/repositories/index.js.map +1 -0
- package/dist/domain/repositories/job-posting-repository.d.ts +9 -0
- package/dist/domain/repositories/job-posting-repository.js +2 -0
- package/dist/domain/repositories/job-posting-repository.js.map +1 -0
- package/dist/domain/repositories/version-repository.d.ts +6 -0
- package/dist/domain/repositories/version-repository.js +2 -0
- package/dist/domain/repositories/version-repository.js.map +1 -0
- package/dist/domain/value-objects/certification.d.ts +5 -0
- package/dist/domain/value-objects/certification.js +2 -0
- package/dist/domain/value-objects/certification.js.map +1 -0
- package/dist/domain/value-objects/contact-info.d.ts +5 -0
- package/dist/domain/value-objects/contact-info.js +2 -0
- package/dist/domain/value-objects/contact-info.js.map +1 -0
- package/dist/domain/value-objects/education.d.ts +7 -0
- package/dist/domain/value-objects/education.js +2 -0
- package/dist/domain/value-objects/education.js.map +1 -0
- package/dist/domain/value-objects/experience.d.ts +7 -0
- package/dist/domain/value-objects/experience.js +2 -0
- package/dist/domain/value-objects/experience.js.map +1 -0
- package/dist/domain/value-objects/index.d.ts +7 -0
- package/dist/domain/value-objects/index.js +2 -0
- package/dist/domain/value-objects/index.js.map +1 -0
- package/dist/domain/value-objects/language.d.ts +4 -0
- package/dist/domain/value-objects/language.js +2 -0
- package/dist/domain/value-objects/language.js.map +1 -0
- package/dist/domain/value-objects/links.d.ts +6 -0
- package/dist/domain/value-objects/links.js +2 -0
- package/dist/domain/value-objects/links.js.map +1 -0
- package/dist/domain/value-objects/project.d.ts +5 -0
- package/dist/domain/value-objects/project.js +2 -0
- package/dist/domain/value-objects/project.js.map +1 -0
- package/dist/infrastructure/ai/index.d.ts +2 -0
- package/dist/infrastructure/ai/index.js +3 -0
- package/dist/infrastructure/ai/index.js.map +1 -0
- package/dist/infrastructure/ai/openai-embedding-service.d.ts +8 -0
- package/dist/infrastructure/ai/openai-embedding-service.js +39 -0
- package/dist/infrastructure/ai/openai-embedding-service.js.map +1 -0
- package/dist/infrastructure/ai/openai-structured-extractor.d.ts +9 -0
- package/dist/infrastructure/ai/openai-structured-extractor.js +163 -0
- package/dist/infrastructure/ai/openai-structured-extractor.js.map +1 -0
- package/dist/infrastructure/config/app-config.d.ts +9 -0
- package/dist/infrastructure/config/app-config.js +15 -0
- package/dist/infrastructure/config/app-config.js.map +1 -0
- package/dist/infrastructure/export/csv-export-service.d.ts +6 -0
- package/dist/infrastructure/export/csv-export-service.js +24 -0
- package/dist/infrastructure/export/csv-export-service.js.map +1 -0
- package/dist/infrastructure/parsers/docx-parser.d.ts +5 -0
- package/dist/infrastructure/parsers/docx-parser.js +17 -0
- package/dist/infrastructure/parsers/docx-parser.js.map +1 -0
- package/dist/infrastructure/parsers/index.d.ts +3 -0
- package/dist/infrastructure/parsers/index.js +4 -0
- package/dist/infrastructure/parsers/index.js.map +1 -0
- package/dist/infrastructure/parsers/ocr-service.d.ts +8 -0
- package/dist/infrastructure/parsers/ocr-service.js +65 -0
- package/dist/infrastructure/parsers/ocr-service.js.map +1 -0
- package/dist/infrastructure/parsers/pdf-parser.d.ts +5 -0
- package/dist/infrastructure/parsers/pdf-parser.js +44 -0
- package/dist/infrastructure/parsers/pdf-parser.js.map +1 -0
- package/dist/infrastructure/persistence/database.d.ts +20 -0
- package/dist/infrastructure/persistence/database.js +156 -0
- package/dist/infrastructure/persistence/database.js.map +1 -0
- package/dist/infrastructure/persistence/index.d.ts +6 -0
- package/dist/infrastructure/persistence/index.js +7 -0
- package/dist/infrastructure/persistence/index.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-application-event-repository.d.ts +16 -0
- package/dist/infrastructure/persistence/lancedb-application-event-repository.js +85 -0
- package/dist/infrastructure/persistence/lancedb-application-event-repository.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-application-repository.d.ts +21 -0
- package/dist/infrastructure/persistence/lancedb-application-repository.js +151 -0
- package/dist/infrastructure/persistence/lancedb-application-repository.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-candidate-repository.d.ts +21 -0
- package/dist/infrastructure/persistence/lancedb-candidate-repository.js +169 -0
- package/dist/infrastructure/persistence/lancedb-candidate-repository.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-chunk-repository.d.ts +18 -0
- package/dist/infrastructure/persistence/lancedb-chunk-repository.js +105 -0
- package/dist/infrastructure/persistence/lancedb-chunk-repository.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-job-posting-repository.d.ts +21 -0
- package/dist/infrastructure/persistence/lancedb-job-posting-repository.js +128 -0
- package/dist/infrastructure/persistence/lancedb-job-posting-repository.js.map +1 -0
- package/dist/infrastructure/persistence/lancedb-version-repository.d.ts +13 -0
- package/dist/infrastructure/persistence/lancedb-version-repository.js +62 -0
- package/dist/infrastructure/persistence/lancedb-version-repository.js.map +1 -0
- package/dist/interface/cli/index.d.ts +2 -0
- package/dist/interface/cli/index.js +17 -0
- package/dist/interface/cli/index.js.map +1 -0
- package/dist/interface/dashboard/call-context.d.ts +4 -0
- package/dist/interface/dashboard/call-context.js +26 -0
- package/dist/interface/dashboard/call-context.js.map +1 -0
- package/dist/interface/dashboard/event-bus.d.ts +7 -0
- package/dist/interface/dashboard/event-bus.js +16 -0
- package/dist/interface/dashboard/event-bus.js.map +1 -0
- package/dist/interface/dashboard/events.d.ts +30 -0
- package/dist/interface/dashboard/events.js +2 -0
- package/dist/interface/dashboard/events.js.map +1 -0
- package/dist/interface/dashboard/html.d.ts +1 -0
- package/dist/interface/dashboard/html.js +1007 -0
- package/dist/interface/dashboard/html.js.map +1 -0
- package/dist/interface/dashboard/public/200.html +1 -0
- package/dist/interface/dashboard/public/404.html +1 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-8KeALpAu2nWJknvJhMk31fqE06iajfSeiM57lsZAo5g.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-CAyrLGU3kauAbzcFnj2Cv_iAPV8wT2NEvNmrA_77Up0.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-Cbq5YGF_nsoQo6qYm9EhA3p-oINRUqlXhACZ2Wh4BBE.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-G1pKsfAhfeIECsLbuPUckyz92yuHFKi9rmiwlRl8Tb0.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-OnaIl8fChu9Cb4bpYiOA4dK_W7eeMCjXQOWR8tUhXJ0.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-kzEiBeXQ06q7fC06p1Y4RaOpLlRWCnHcCcSaqFMJ6fc.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-rmd8_oLeTXCNUhiFyy1UYsogNo6QYBr9dQHrhl_hLbs.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-wjJHhPsTzX4mZm37l7bbvLDtOEIT1R38DKPlwV_Z34A.woff +0 -0
- package/dist/interface/dashboard/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
- package/dist/interface/dashboard/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
- package/dist/interface/dashboard/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
- package/dist/interface/dashboard/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
- package/dist/interface/dashboard/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
- package/dist/interface/dashboard/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
- package/dist/interface/dashboard/public/_nuxt/BtFgTcXQ.js +30 -0
- package/dist/interface/dashboard/public/_nuxt/CdJZeyak.js +30 -0
- package/dist/interface/dashboard/public/_nuxt/D9vxbU2B.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/DHg6ig_T.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/DhFk2_Al.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/DlAUqK2U.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/DtX-aPBA.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/DvCMYK3d.js +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/latest.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/027020ec-4e7d-4fc7-8447-19800f7d0bac.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/18e19101-a96b-41dc-b602-f9a8f013a036.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/2fd3d0d3-6004-4659-9055-d27aa6656fd3.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/54792d4b-ca55-4b5d-b0dd-1d7dc34de344.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/5959a14b-2494-4e0d-be28-fef9adfd889d.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/60cda583-d704-4d4e-b37e-7ab337e3b6cc.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/64d05a43-99ec-4c22-934e-071b310b968f.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/6c1632a5-f0af-41e3-9d88-12294e03a0b9.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/6c80982c-5e2c-446c-aaf6-7000a976e493.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/79161adb-748c-4d36-a031-a71899a56ecd.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/84e5a87d-4ae5-48dd-8d5e-5b1fe89f7243.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/86082677-a11d-4acf-ab04-c3c067a71622.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/8892e611-c2b4-425b-a6a5-988314d8da4d.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/9bfe6b22-73f8-4584-b13d-ed1df5600e12.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/a39bf957-ddae-41a6-a183-08292363098b.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/b0bf7fc4-02c1-46fd-acca-f4458feed978.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/b2847d83-b695-45d4-9dca-d7498158a501.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/c8382eda-1354-4f92-b6d0-5b5b9f43354a.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/e707aa44-7202-413d-bcd5-1538b5b56570.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/ea661002-05ab-4bfb-b02f-c91bb721c5e9.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/f2f23a12-a792-480e-922a-ee8b73dc0310.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/f6503b83-d731-40f8-9110-c1599663b3ba.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/builds/meta/feac6d04-6bc5-4fa4-a241-79e897d7f8c1.json +1 -0
- package/dist/interface/dashboard/public/_nuxt/entry.BSUaoqsu.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/entry.Bl31cpjT.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/error-404.B6WzzNMA.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/error-500.CVIcHofV.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/index.BH5Gbe6q.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/index.TQmbXYdV.css +1 -0
- package/dist/interface/dashboard/public/_nuxt/qq1iUjth.js +1 -0
- package/dist/interface/dashboard/public/favicon.ico +0 -0
- package/dist/interface/dashboard/public/index.html +1 -0
- package/dist/interface/dashboard/server.d.ts +11 -0
- package/dist/interface/dashboard/server.js +145 -0
- package/dist/interface/dashboard/server.js.map +1 -0
- package/dist/interface/dashboard/tool-wrapper.d.ts +4 -0
- package/dist/interface/dashboard/tool-wrapper.js +96 -0
- package/dist/interface/dashboard/tool-wrapper.js.map +1 -0
- package/dist/interface/mcp/server.d.ts +2 -0
- package/dist/interface/mcp/server.js +109 -0
- package/dist/interface/mcp/server.js.map +1 -0
- package/dist/interface/mcp/tools/add-cv.d.ts +3 -0
- package/dist/interface/mcp/tools/add-cv.js +21 -0
- package/dist/interface/mcp/tools/add-cv.js.map +1 -0
- package/dist/interface/mcp/tools/add-job-posting.d.ts +3 -0
- package/dist/interface/mcp/tools/add-job-posting.js +38 -0
- package/dist/interface/mcp/tools/add-job-posting.js.map +1 -0
- package/dist/interface/mcp/tools/add-pipeline-note.d.ts +3 -0
- package/dist/interface/mcp/tools/add-pipeline-note.js +32 -0
- package/dist/interface/mcp/tools/add-pipeline-note.js.map +1 -0
- package/dist/interface/mcp/tools/add-to-pipeline.d.ts +3 -0
- package/dist/interface/mcp/tools/add-to-pipeline.js +28 -0
- package/dist/interface/mcp/tools/add-to-pipeline.js.map +1 -0
- package/dist/interface/mcp/tools/bulk-add-cvs.d.ts +3 -0
- package/dist/interface/mcp/tools/bulk-add-cvs.js +28 -0
- package/dist/interface/mcp/tools/bulk-add-cvs.js.map +1 -0
- package/dist/interface/mcp/tools/delete-cv.d.ts +3 -0
- package/dist/interface/mcp/tools/delete-cv.js +20 -0
- package/dist/interface/mcp/tools/delete-cv.js.map +1 -0
- package/dist/interface/mcp/tools/delete-job-posting.d.ts +3 -0
- package/dist/interface/mcp/tools/delete-job-posting.js +27 -0
- package/dist/interface/mcp/tools/delete-job-posting.js.map +1 -0
- package/dist/interface/mcp/tools/export-results.d.ts +3 -0
- package/dist/interface/mcp/tools/export-results.js +23 -0
- package/dist/interface/mcp/tools/export-results.js.map +1 -0
- package/dist/interface/mcp/tools/filter-candidates.d.ts +3 -0
- package/dist/interface/mcp/tools/filter-candidates.js +32 -0
- package/dist/interface/mcp/tools/filter-candidates.js.map +1 -0
- package/dist/interface/mcp/tools/get-candidate-history.d.ts +3 -0
- package/dist/interface/mcp/tools/get-candidate-history.js +22 -0
- package/dist/interface/mcp/tools/get-candidate-history.js.map +1 -0
- package/dist/interface/mcp/tools/get-cv-chunks.d.ts +3 -0
- package/dist/interface/mcp/tools/get-cv-chunks.js +26 -0
- package/dist/interface/mcp/tools/get-cv-chunks.js.map +1 -0
- package/dist/interface/mcp/tools/get-cv-detail.d.ts +3 -0
- package/dist/interface/mcp/tools/get-cv-detail.js +23 -0
- package/dist/interface/mcp/tools/get-cv-detail.js.map +1 -0
- package/dist/interface/mcp/tools/get-cv-versions.d.ts +3 -0
- package/dist/interface/mcp/tools/get-cv-versions.js +20 -0
- package/dist/interface/mcp/tools/get-cv-versions.js.map +1 -0
- package/dist/interface/mcp/tools/get-job-posting.d.ts +3 -0
- package/dist/interface/mcp/tools/get-job-posting.js +26 -0
- package/dist/interface/mcp/tools/get-job-posting.js.map +1 -0
- package/dist/interface/mcp/tools/get-pending-actions.d.ts +3 -0
- package/dist/interface/mcp/tools/get-pending-actions.js +19 -0
- package/dist/interface/mcp/tools/get-pending-actions.js.map +1 -0
- package/dist/interface/mcp/tools/get-pipeline.d.ts +3 -0
- package/dist/interface/mcp/tools/get-pipeline.js +22 -0
- package/dist/interface/mcp/tools/get-pipeline.js.map +1 -0
- package/dist/interface/mcp/tools/get-server-status.d.ts +3 -0
- package/dist/interface/mcp/tools/get-server-status.js +38 -0
- package/dist/interface/mcp/tools/get-server-status.js.map +1 -0
- package/dist/interface/mcp/tools/get-stats.d.ts +3 -0
- package/dist/interface/mcp/tools/get-stats.js +19 -0
- package/dist/interface/mcp/tools/get-stats.js.map +1 -0
- package/dist/interface/mcp/tools/list-cvs.d.ts +3 -0
- package/dist/interface/mcp/tools/list-cvs.js +32 -0
- package/dist/interface/mcp/tools/list-cvs.js.map +1 -0
- package/dist/interface/mcp/tools/list-job-postings.d.ts +3 -0
- package/dist/interface/mcp/tools/list-job-postings.js +19 -0
- package/dist/interface/mcp/tools/list-job-postings.js.map +1 -0
- package/dist/interface/mcp/tools/manage-tags.d.ts +3 -0
- package/dist/interface/mcp/tools/manage-tags.js +24 -0
- package/dist/interface/mcp/tools/manage-tags.js.map +1 -0
- package/dist/interface/mcp/tools/match-candidates.d.ts +3 -0
- package/dist/interface/mcp/tools/match-candidates.js +23 -0
- package/dist/interface/mcp/tools/match-candidates.js.map +1 -0
- package/dist/interface/mcp/tools/reset-database.d.ts +3 -0
- package/dist/interface/mcp/tools/reset-database.js +35 -0
- package/dist/interface/mcp/tools/reset-database.js.map +1 -0
- package/dist/interface/mcp/tools/semantic-search.d.ts +3 -0
- package/dist/interface/mcp/tools/semantic-search.js +27 -0
- package/dist/interface/mcp/tools/semantic-search.js.map +1 -0
- package/dist/interface/mcp/tools/set-pending-action.d.ts +3 -0
- package/dist/interface/mcp/tools/set-pending-action.js +36 -0
- package/dist/interface/mcp/tools/set-pending-action.js.map +1 -0
- package/dist/interface/mcp/tools/update-cv.d.ts +3 -0
- package/dist/interface/mcp/tools/update-cv.js +23 -0
- package/dist/interface/mcp/tools/update-cv.js.map +1 -0
- package/dist/interface/mcp/tools/update-job-posting.d.ts +3 -0
- package/dist/interface/mcp/tools/update-job-posting.js +42 -0
- package/dist/interface/mcp/tools/update-job-posting.js.map +1 -0
- package/dist/interface/mcp/tools/update-pipeline-status.d.ts +3 -0
- package/dist/interface/mcp/tools/update-pipeline-status.js +41 -0
- package/dist/interface/mcp/tools/update-pipeline-status.js.map +1 -0
- package/dist/interface/mcp/types.d.ts +26 -0
- package/dist/interface/mcp/types.js +2 -0
- package/dist/interface/mcp/types.js.map +1 -0
- package/dist/shared/errors/index.d.ts +32 -0
- package/dist/shared/errors/index.js +56 -0
- package/dist/shared/errors/index.js.map +1 -0
- package/dist/shared/types/index.d.ts +19 -0
- package/dist/shared/types/index.js +2 -0
- package/dist/shared/types/index.js.map +1 -0
- package/dist/shared/utils/chunking.d.ts +3 -0
- package/dist/shared/utils/chunking.js +89 -0
- package/dist/shared/utils/chunking.js.map +1 -0
- package/dist/shared/utils/file-storage.d.ts +8 -0
- package/dist/shared/utils/file-storage.js +49 -0
- package/dist/shared/utils/file-storage.js.map +1 -0
- package/dist/shared/utils/index.d.ts +3 -0
- package/dist/shared/utils/index.js +4 -0
- package/dist/shared/utils/index.js.map +1 -0
- package/dist/shared/utils/text.d.ts +5 -0
- package/dist/shared/utils/text.js +21 -0
- package/dist/shared/utils/text.js.map +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,1007 @@
|
|
|
1
|
+
export function getDashboardHtml(port) {
|
|
2
|
+
return `<!DOCTYPE html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>HireBase — Live Dashboard</title>
|
|
8
|
+
<style>
|
|
9
|
+
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
|
|
10
|
+
|
|
11
|
+
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
|
12
|
+
|
|
13
|
+
:root {
|
|
14
|
+
--bg-deep: #07090e;
|
|
15
|
+
--bg-base: #0f1117;
|
|
16
|
+
--bg-card: #161923;
|
|
17
|
+
--bg-card-hover: #1c2030;
|
|
18
|
+
--bg-elevated: #1e2235;
|
|
19
|
+
--border-subtle: rgba(99, 102, 241, 0.12);
|
|
20
|
+
--border-active: rgba(99, 102, 241, 0.35);
|
|
21
|
+
--accent: #6366f1;
|
|
22
|
+
--accent-glow: rgba(99, 102, 241, 0.4);
|
|
23
|
+
--accent-soft: rgba(99, 102, 241, 0.15);
|
|
24
|
+
--success: #22c55e;
|
|
25
|
+
--success-soft: rgba(34, 197, 94, 0.12);
|
|
26
|
+
--error: #ef4444;
|
|
27
|
+
--error-soft: rgba(239, 68, 68, 0.12);
|
|
28
|
+
--warning: #f59e0b;
|
|
29
|
+
--text-primary: #e8eaf0;
|
|
30
|
+
--text-secondary: #8b8fa3;
|
|
31
|
+
--text-muted: #5c6078;
|
|
32
|
+
--mono: 'JetBrains Mono', monospace;
|
|
33
|
+
--sans: 'Outfit', sans-serif;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
html { font-size: 14px; }
|
|
37
|
+
|
|
38
|
+
body {
|
|
39
|
+
background: var(--bg-deep);
|
|
40
|
+
color: var(--text-primary);
|
|
41
|
+
font-family: var(--sans);
|
|
42
|
+
min-height: 100vh;
|
|
43
|
+
overflow-x: hidden;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* === BACKGROUND GRID EFFECT === */
|
|
47
|
+
body::before {
|
|
48
|
+
content: '';
|
|
49
|
+
position: fixed;
|
|
50
|
+
inset: 0;
|
|
51
|
+
background:
|
|
52
|
+
linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
|
|
53
|
+
linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
|
|
54
|
+
background-size: 60px 60px;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
z-index: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
body::after {
|
|
60
|
+
content: '';
|
|
61
|
+
position: fixed;
|
|
62
|
+
top: -50%;
|
|
63
|
+
left: -50%;
|
|
64
|
+
width: 200%;
|
|
65
|
+
height: 200%;
|
|
66
|
+
background: radial-gradient(ellipse at 30% 20%, rgba(99,102,241,0.06) 0%, transparent 50%),
|
|
67
|
+
radial-gradient(ellipse at 70% 80%, rgba(99,102,241,0.04) 0%, transparent 50%);
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
z-index: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* === HEADER === */
|
|
73
|
+
.header {
|
|
74
|
+
position: sticky;
|
|
75
|
+
top: 0;
|
|
76
|
+
z-index: 100;
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: space-between;
|
|
80
|
+
padding: 0.75rem 1.5rem;
|
|
81
|
+
background: rgba(7, 9, 14, 0.85);
|
|
82
|
+
backdrop-filter: blur(20px) saturate(1.4);
|
|
83
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.header-left {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: 0.75rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.logo {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: 0.5rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.logo-icon {
|
|
99
|
+
width: 28px;
|
|
100
|
+
height: 28px;
|
|
101
|
+
background: linear-gradient(135deg, var(--accent), #818cf8);
|
|
102
|
+
border-radius: 7px;
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
font-size: 14px;
|
|
107
|
+
font-weight: 800;
|
|
108
|
+
color: white;
|
|
109
|
+
letter-spacing: -0.5px;
|
|
110
|
+
box-shadow: 0 0 20px var(--accent-glow);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.logo-text {
|
|
114
|
+
font-family: var(--sans);
|
|
115
|
+
font-weight: 800;
|
|
116
|
+
font-size: 1.15rem;
|
|
117
|
+
letter-spacing: -0.5px;
|
|
118
|
+
background: linear-gradient(135deg, #e8eaf0 40%, var(--accent));
|
|
119
|
+
-webkit-background-clip: text;
|
|
120
|
+
-webkit-text-fill-color: transparent;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.logo-badge {
|
|
124
|
+
font-family: var(--mono);
|
|
125
|
+
font-size: 0.65rem;
|
|
126
|
+
font-weight: 500;
|
|
127
|
+
padding: 0.15rem 0.45rem;
|
|
128
|
+
background: var(--accent-soft);
|
|
129
|
+
color: var(--accent);
|
|
130
|
+
border-radius: 4px;
|
|
131
|
+
border: 1px solid var(--border-subtle);
|
|
132
|
+
letter-spacing: 0.5px;
|
|
133
|
+
text-transform: uppercase;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.conn-status {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
gap: 0.5rem;
|
|
140
|
+
font-family: var(--mono);
|
|
141
|
+
font-size: 0.75rem;
|
|
142
|
+
color: var(--text-muted);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.conn-dot {
|
|
146
|
+
width: 8px;
|
|
147
|
+
height: 8px;
|
|
148
|
+
border-radius: 50%;
|
|
149
|
+
background: var(--error);
|
|
150
|
+
transition: background 0.3s, box-shadow 0.3s;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.conn-dot.connected {
|
|
154
|
+
background: var(--success);
|
|
155
|
+
box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
|
|
156
|
+
animation: pulse-dot 2s ease-in-out infinite;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@keyframes pulse-dot {
|
|
160
|
+
0%, 100% { opacity: 1; }
|
|
161
|
+
50% { opacity: 0.5; }
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* === LAYOUT === */
|
|
165
|
+
.dashboard {
|
|
166
|
+
position: relative;
|
|
167
|
+
z-index: 1;
|
|
168
|
+
display: grid;
|
|
169
|
+
grid-template-columns: 1fr 1fr;
|
|
170
|
+
grid-template-rows: auto 1fr;
|
|
171
|
+
gap: 1px;
|
|
172
|
+
height: calc(100vh - 49px);
|
|
173
|
+
background: var(--border-subtle);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.stats-panel {
|
|
177
|
+
grid-column: 1 / -1;
|
|
178
|
+
background: var(--bg-base);
|
|
179
|
+
padding: 1rem 1.5rem;
|
|
180
|
+
overflow-x: auto;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.activity-feed {
|
|
184
|
+
background: var(--bg-base);
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
overflow: hidden;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.search-panel {
|
|
191
|
+
background: var(--bg-base);
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* === PANEL HEADERS === */
|
|
198
|
+
.panel-header {
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: 0.5rem;
|
|
202
|
+
padding: 0.75rem 1rem;
|
|
203
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
204
|
+
flex-shrink: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.panel-header h2 {
|
|
208
|
+
font-family: var(--sans);
|
|
209
|
+
font-size: 0.8rem;
|
|
210
|
+
font-weight: 700;
|
|
211
|
+
text-transform: uppercase;
|
|
212
|
+
letter-spacing: 1.2px;
|
|
213
|
+
color: var(--text-secondary);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.panel-header .count {
|
|
217
|
+
font-family: var(--mono);
|
|
218
|
+
font-size: 0.65rem;
|
|
219
|
+
padding: 0.1rem 0.4rem;
|
|
220
|
+
background: var(--bg-elevated);
|
|
221
|
+
border-radius: 3px;
|
|
222
|
+
color: var(--text-muted);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.panel-content {
|
|
226
|
+
flex: 1;
|
|
227
|
+
overflow-y: auto;
|
|
228
|
+
padding: 0.75rem;
|
|
229
|
+
scroll-behavior: smooth;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.panel-content::-webkit-scrollbar { width: 4px; }
|
|
233
|
+
.panel-content::-webkit-scrollbar-track { background: transparent; }
|
|
234
|
+
.panel-content::-webkit-scrollbar-thumb { background: var(--border-active); border-radius: 2px; }
|
|
235
|
+
|
|
236
|
+
/* === STATS === */
|
|
237
|
+
.stats-grid {
|
|
238
|
+
display: flex;
|
|
239
|
+
gap: 1rem;
|
|
240
|
+
align-items: stretch;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.stat-card {
|
|
244
|
+
flex: 0 0 auto;
|
|
245
|
+
min-width: 130px;
|
|
246
|
+
padding: 0.75rem 1rem;
|
|
247
|
+
background: var(--bg-card);
|
|
248
|
+
border: 1px solid var(--border-subtle);
|
|
249
|
+
border-radius: 8px;
|
|
250
|
+
transition: border-color 0.2s, transform 0.2s;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.stat-card:hover {
|
|
254
|
+
border-color: var(--border-active);
|
|
255
|
+
transform: translateY(-1px);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.stat-label {
|
|
259
|
+
font-family: var(--mono);
|
|
260
|
+
font-size: 0.65rem;
|
|
261
|
+
text-transform: uppercase;
|
|
262
|
+
letter-spacing: 0.8px;
|
|
263
|
+
color: var(--text-muted);
|
|
264
|
+
margin-bottom: 0.35rem;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.stat-value {
|
|
268
|
+
font-family: var(--mono);
|
|
269
|
+
font-size: 1.6rem;
|
|
270
|
+
font-weight: 700;
|
|
271
|
+
color: var(--text-primary);
|
|
272
|
+
line-height: 1;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.stat-value.accent { color: var(--accent); }
|
|
276
|
+
|
|
277
|
+
.stat-card-wide {
|
|
278
|
+
flex: 1;
|
|
279
|
+
min-width: 200px;
|
|
280
|
+
padding: 0.75rem 1rem;
|
|
281
|
+
background: var(--bg-card);
|
|
282
|
+
border: 1px solid var(--border-subtle);
|
|
283
|
+
border-radius: 8px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.stat-card-wide .stat-label { margin-bottom: 0.5rem; }
|
|
287
|
+
|
|
288
|
+
.skill-bar-row {
|
|
289
|
+
display: flex;
|
|
290
|
+
align-items: center;
|
|
291
|
+
gap: 0.5rem;
|
|
292
|
+
margin-bottom: 0.3rem;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.skill-bar-row:last-child { margin-bottom: 0; }
|
|
296
|
+
|
|
297
|
+
.skill-name {
|
|
298
|
+
font-family: var(--mono);
|
|
299
|
+
font-size: 0.7rem;
|
|
300
|
+
color: var(--text-secondary);
|
|
301
|
+
width: 90px;
|
|
302
|
+
overflow: hidden;
|
|
303
|
+
text-overflow: ellipsis;
|
|
304
|
+
white-space: nowrap;
|
|
305
|
+
flex-shrink: 0;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.skill-bar-track {
|
|
309
|
+
flex: 1;
|
|
310
|
+
height: 6px;
|
|
311
|
+
background: var(--bg-deep);
|
|
312
|
+
border-radius: 3px;
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.skill-bar-fill {
|
|
317
|
+
height: 100%;
|
|
318
|
+
background: linear-gradient(90deg, var(--accent), #818cf8);
|
|
319
|
+
border-radius: 3px;
|
|
320
|
+
transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.skill-bar-fill.location {
|
|
324
|
+
background: linear-gradient(90deg, #06b6d4, #22d3ee);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.skill-count {
|
|
328
|
+
font-family: var(--mono);
|
|
329
|
+
font-size: 0.65rem;
|
|
330
|
+
color: var(--text-muted);
|
|
331
|
+
width: 24px;
|
|
332
|
+
text-align: right;
|
|
333
|
+
flex-shrink: 0;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* === ACTIVITY CARDS === */
|
|
337
|
+
.activity-card {
|
|
338
|
+
background: var(--bg-card);
|
|
339
|
+
border: 1px solid var(--border-subtle);
|
|
340
|
+
border-radius: 8px;
|
|
341
|
+
padding: 0.65rem 0.75rem;
|
|
342
|
+
margin-bottom: 0.5rem;
|
|
343
|
+
animation: card-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
|
|
344
|
+
transition: border-color 0.2s;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.activity-card:hover { border-color: var(--border-active); }
|
|
348
|
+
|
|
349
|
+
.activity-card.running {
|
|
350
|
+
border-left: 2px solid var(--accent);
|
|
351
|
+
background: linear-gradient(90deg, rgba(99,102,241,0.04), transparent 40%);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.activity-card.success { border-left: 2px solid var(--success); }
|
|
355
|
+
.activity-card.error { border-left: 2px solid var(--error); }
|
|
356
|
+
|
|
357
|
+
@keyframes card-in {
|
|
358
|
+
from { opacity: 0; transform: translateY(-8px) scale(0.98); }
|
|
359
|
+
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.card-top {
|
|
363
|
+
display: flex;
|
|
364
|
+
align-items: center;
|
|
365
|
+
justify-content: space-between;
|
|
366
|
+
margin-bottom: 0.3rem;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.card-top-left {
|
|
370
|
+
display: flex;
|
|
371
|
+
align-items: center;
|
|
372
|
+
gap: 0.4rem;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.status-indicator {
|
|
376
|
+
width: 7px;
|
|
377
|
+
height: 7px;
|
|
378
|
+
border-radius: 50%;
|
|
379
|
+
flex-shrink: 0;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.status-indicator.running {
|
|
383
|
+
background: var(--accent);
|
|
384
|
+
animation: blink 1s ease-in-out infinite;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.status-indicator.success { background: var(--success); }
|
|
388
|
+
.status-indicator.error { background: var(--error); }
|
|
389
|
+
|
|
390
|
+
@keyframes blink {
|
|
391
|
+
0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent-glow); }
|
|
392
|
+
50% { opacity: 0.3; box-shadow: none; }
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.tool-name {
|
|
396
|
+
font-family: var(--mono);
|
|
397
|
+
font-size: 0.8rem;
|
|
398
|
+
font-weight: 600;
|
|
399
|
+
color: var(--text-primary);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.duration-badge {
|
|
403
|
+
font-family: var(--mono);
|
|
404
|
+
font-size: 0.6rem;
|
|
405
|
+
font-weight: 500;
|
|
406
|
+
padding: 0.1rem 0.35rem;
|
|
407
|
+
border-radius: 3px;
|
|
408
|
+
background: var(--bg-elevated);
|
|
409
|
+
color: var(--text-muted);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.duration-badge.fast { color: var(--success); background: var(--success-soft); }
|
|
413
|
+
.duration-badge.slow { color: var(--warning); background: rgba(245,158,11,0.12); }
|
|
414
|
+
|
|
415
|
+
.card-time {
|
|
416
|
+
font-family: var(--mono);
|
|
417
|
+
font-size: 0.6rem;
|
|
418
|
+
color: var(--text-muted);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.card-args {
|
|
422
|
+
font-family: var(--mono);
|
|
423
|
+
font-size: 0.65rem;
|
|
424
|
+
color: var(--text-muted);
|
|
425
|
+
padding: 0.3rem 0.5rem;
|
|
426
|
+
background: var(--bg-deep);
|
|
427
|
+
border-radius: 4px;
|
|
428
|
+
overflow: hidden;
|
|
429
|
+
text-overflow: ellipsis;
|
|
430
|
+
white-space: nowrap;
|
|
431
|
+
max-width: 100%;
|
|
432
|
+
margin-top: 0.25rem;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.card-result {
|
|
436
|
+
margin-top: 0.35rem;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.result-toggle {
|
|
440
|
+
font-family: var(--mono);
|
|
441
|
+
font-size: 0.6rem;
|
|
442
|
+
color: var(--accent);
|
|
443
|
+
cursor: pointer;
|
|
444
|
+
border: none;
|
|
445
|
+
background: none;
|
|
446
|
+
padding: 0;
|
|
447
|
+
display: flex;
|
|
448
|
+
align-items: center;
|
|
449
|
+
gap: 0.25rem;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.result-toggle:hover { text-decoration: underline; }
|
|
453
|
+
.result-toggle .arrow { transition: transform 0.2s; display: inline-block; }
|
|
454
|
+
.result-toggle .arrow.open { transform: rotate(90deg); }
|
|
455
|
+
|
|
456
|
+
.result-preview {
|
|
457
|
+
font-family: var(--mono);
|
|
458
|
+
font-size: 0.6rem;
|
|
459
|
+
color: var(--text-secondary);
|
|
460
|
+
padding: 0.35rem 0.5rem;
|
|
461
|
+
background: var(--bg-deep);
|
|
462
|
+
border-radius: 4px;
|
|
463
|
+
margin-top: 0.25rem;
|
|
464
|
+
white-space: pre-wrap;
|
|
465
|
+
word-break: break-all;
|
|
466
|
+
max-height: 120px;
|
|
467
|
+
overflow-y: auto;
|
|
468
|
+
display: none;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.result-preview.open { display: block; animation: card-in 0.2s ease; }
|
|
472
|
+
|
|
473
|
+
/* === SEARCH RESULTS === */
|
|
474
|
+
.search-empty {
|
|
475
|
+
display: flex;
|
|
476
|
+
flex-direction: column;
|
|
477
|
+
align-items: center;
|
|
478
|
+
justify-content: center;
|
|
479
|
+
height: 100%;
|
|
480
|
+
color: var(--text-muted);
|
|
481
|
+
font-family: var(--mono);
|
|
482
|
+
font-size: 0.75rem;
|
|
483
|
+
gap: 0.5rem;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.search-empty-icon {
|
|
487
|
+
font-size: 2rem;
|
|
488
|
+
opacity: 0.3;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.search-result-card {
|
|
492
|
+
background: var(--bg-card);
|
|
493
|
+
border: 1px solid var(--border-subtle);
|
|
494
|
+
border-radius: 8px;
|
|
495
|
+
padding: 0.65rem 0.75rem;
|
|
496
|
+
margin-bottom: 0.5rem;
|
|
497
|
+
animation: card-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
|
|
498
|
+
transition: border-color 0.2s;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.search-result-card:hover { border-color: var(--border-active); }
|
|
502
|
+
|
|
503
|
+
.sr-top {
|
|
504
|
+
display: flex;
|
|
505
|
+
align-items: center;
|
|
506
|
+
justify-content: space-between;
|
|
507
|
+
margin-bottom: 0.35rem;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.sr-name {
|
|
511
|
+
font-family: var(--sans);
|
|
512
|
+
font-weight: 600;
|
|
513
|
+
font-size: 0.85rem;
|
|
514
|
+
color: var(--text-primary);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.sr-section-badge {
|
|
518
|
+
font-family: var(--mono);
|
|
519
|
+
font-size: 0.55rem;
|
|
520
|
+
text-transform: uppercase;
|
|
521
|
+
letter-spacing: 0.5px;
|
|
522
|
+
padding: 0.1rem 0.4rem;
|
|
523
|
+
background: var(--accent-soft);
|
|
524
|
+
color: var(--accent);
|
|
525
|
+
border-radius: 3px;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.sr-score-row {
|
|
529
|
+
display: flex;
|
|
530
|
+
align-items: center;
|
|
531
|
+
gap: 0.5rem;
|
|
532
|
+
margin-bottom: 0.35rem;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.sr-score-track {
|
|
536
|
+
flex: 1;
|
|
537
|
+
height: 8px;
|
|
538
|
+
background: var(--bg-deep);
|
|
539
|
+
border-radius: 4px;
|
|
540
|
+
overflow: hidden;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.sr-score-fill {
|
|
544
|
+
height: 100%;
|
|
545
|
+
border-radius: 4px;
|
|
546
|
+
transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.sr-score-fill.high { background: linear-gradient(90deg, var(--success), #4ade80); }
|
|
550
|
+
.sr-score-fill.mid { background: linear-gradient(90deg, var(--warning), #fbbf24); }
|
|
551
|
+
.sr-score-fill.low { background: linear-gradient(90deg, var(--error), #f87171); }
|
|
552
|
+
|
|
553
|
+
.sr-score-label {
|
|
554
|
+
font-family: var(--mono);
|
|
555
|
+
font-size: 0.7rem;
|
|
556
|
+
font-weight: 600;
|
|
557
|
+
color: var(--text-secondary);
|
|
558
|
+
width: 40px;
|
|
559
|
+
text-align: right;
|
|
560
|
+
flex-shrink: 0;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.sr-snippet {
|
|
564
|
+
font-family: var(--mono);
|
|
565
|
+
font-size: 0.6rem;
|
|
566
|
+
color: var(--text-muted);
|
|
567
|
+
padding: 0.3rem 0.5rem;
|
|
568
|
+
background: var(--bg-deep);
|
|
569
|
+
border-radius: 4px;
|
|
570
|
+
max-height: 48px;
|
|
571
|
+
overflow: hidden;
|
|
572
|
+
line-height: 1.4;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.search-query-banner {
|
|
576
|
+
display: flex;
|
|
577
|
+
align-items: center;
|
|
578
|
+
gap: 0.5rem;
|
|
579
|
+
padding: 0.5rem 0.75rem;
|
|
580
|
+
margin-bottom: 0.5rem;
|
|
581
|
+
background: var(--accent-soft);
|
|
582
|
+
border: 1px solid var(--border-active);
|
|
583
|
+
border-radius: 6px;
|
|
584
|
+
font-family: var(--mono);
|
|
585
|
+
font-size: 0.7rem;
|
|
586
|
+
color: var(--accent);
|
|
587
|
+
animation: card-in 0.3s ease;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.search-query-banner .label {
|
|
591
|
+
font-weight: 600;
|
|
592
|
+
flex-shrink: 0;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.search-query-banner .query-text {
|
|
596
|
+
color: var(--text-primary);
|
|
597
|
+
overflow: hidden;
|
|
598
|
+
text-overflow: ellipsis;
|
|
599
|
+
white-space: nowrap;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/* === EMPTY STATE === */
|
|
603
|
+
.feed-empty {
|
|
604
|
+
display: flex;
|
|
605
|
+
flex-direction: column;
|
|
606
|
+
align-items: center;
|
|
607
|
+
justify-content: center;
|
|
608
|
+
height: 100%;
|
|
609
|
+
color: var(--text-muted);
|
|
610
|
+
font-family: var(--mono);
|
|
611
|
+
font-size: 0.75rem;
|
|
612
|
+
gap: 0.5rem;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.feed-empty-icon {
|
|
616
|
+
width: 40px;
|
|
617
|
+
height: 40px;
|
|
618
|
+
border: 2px dashed var(--border-active);
|
|
619
|
+
border-radius: 50%;
|
|
620
|
+
display: flex;
|
|
621
|
+
align-items: center;
|
|
622
|
+
justify-content: center;
|
|
623
|
+
animation: rotate-slow 8s linear infinite;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
@keyframes rotate-slow {
|
|
627
|
+
from { transform: rotate(0deg); }
|
|
628
|
+
to { transform: rotate(360deg); }
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/* === RESPONSIVE === */
|
|
632
|
+
@media (max-width: 768px) {
|
|
633
|
+
.dashboard {
|
|
634
|
+
grid-template-columns: 1fr;
|
|
635
|
+
grid-template-rows: auto 1fr 1fr;
|
|
636
|
+
}
|
|
637
|
+
.stats-grid { flex-wrap: wrap; }
|
|
638
|
+
}
|
|
639
|
+
</style>
|
|
640
|
+
</head>
|
|
641
|
+
<body>
|
|
642
|
+
|
|
643
|
+
<header class="header">
|
|
644
|
+
<div class="header-left">
|
|
645
|
+
<div class="logo">
|
|
646
|
+
<div class="logo-icon">H</div>
|
|
647
|
+
<span class="logo-text">HireBase</span>
|
|
648
|
+
</div>
|
|
649
|
+
<span class="logo-badge">live</span>
|
|
650
|
+
</div>
|
|
651
|
+
<div class="conn-status">
|
|
652
|
+
<div class="conn-dot" id="connDot"></div>
|
|
653
|
+
<span id="connLabel">disconnected</span>
|
|
654
|
+
</div>
|
|
655
|
+
</header>
|
|
656
|
+
|
|
657
|
+
<div class="dashboard">
|
|
658
|
+
<!-- STATS -->
|
|
659
|
+
<section class="stats-panel">
|
|
660
|
+
<div class="stats-grid" id="statsGrid">
|
|
661
|
+
<div class="stat-card">
|
|
662
|
+
<div class="stat-label">Candidates</div>
|
|
663
|
+
<div class="stat-value accent" id="statCandidates">—</div>
|
|
664
|
+
</div>
|
|
665
|
+
<div class="stat-card">
|
|
666
|
+
<div class="stat-label">Chunks</div>
|
|
667
|
+
<div class="stat-value" id="statChunks">—</div>
|
|
668
|
+
</div>
|
|
669
|
+
<div class="stat-card">
|
|
670
|
+
<div class="stat-label">Avg Exp. Yrs</div>
|
|
671
|
+
<div class="stat-value" id="statAvgExp">—</div>
|
|
672
|
+
</div>
|
|
673
|
+
<div class="stat-card-wide">
|
|
674
|
+
<div class="stat-label">Top Skills</div>
|
|
675
|
+
<div id="skillBars"></div>
|
|
676
|
+
</div>
|
|
677
|
+
<div class="stat-card-wide">
|
|
678
|
+
<div class="stat-label">Locations</div>
|
|
679
|
+
<div id="locationBars"></div>
|
|
680
|
+
</div>
|
|
681
|
+
</div>
|
|
682
|
+
</section>
|
|
683
|
+
|
|
684
|
+
<!-- ACTIVITY FEED -->
|
|
685
|
+
<section class="activity-feed">
|
|
686
|
+
<div class="panel-header">
|
|
687
|
+
<h2>Activity Feed</h2>
|
|
688
|
+
<span class="count" id="feedCount">0</span>
|
|
689
|
+
</div>
|
|
690
|
+
<div class="panel-content" id="feedContent">
|
|
691
|
+
<div class="feed-empty" id="feedEmpty">
|
|
692
|
+
<div class="feed-empty-icon">◆</div>
|
|
693
|
+
<span>Waiting for tool calls…</span>
|
|
694
|
+
</div>
|
|
695
|
+
</div>
|
|
696
|
+
</section>
|
|
697
|
+
|
|
698
|
+
<!-- SEARCH RESULTS -->
|
|
699
|
+
<section class="search-panel">
|
|
700
|
+
<div class="panel-header">
|
|
701
|
+
<h2>Search Results</h2>
|
|
702
|
+
<span class="count" id="searchCount">0</span>
|
|
703
|
+
</div>
|
|
704
|
+
<div class="panel-content" id="searchContent">
|
|
705
|
+
<div class="search-empty" id="searchEmpty">
|
|
706
|
+
<div class="search-empty-icon">⌕</div>
|
|
707
|
+
<span>Run semantic_search to see results</span>
|
|
708
|
+
</div>
|
|
709
|
+
</div>
|
|
710
|
+
</section>
|
|
711
|
+
</div>
|
|
712
|
+
|
|
713
|
+
<script>
|
|
714
|
+
(function() {
|
|
715
|
+
const PORT = ${port};
|
|
716
|
+
const MAX_CARDS = 100;
|
|
717
|
+
let ws = null;
|
|
718
|
+
let retryDelay = 1000;
|
|
719
|
+
const activeTools = new Map();
|
|
720
|
+
let feedCardCount = 0;
|
|
721
|
+
|
|
722
|
+
// DOM refs
|
|
723
|
+
const connDot = document.getElementById('connDot');
|
|
724
|
+
const connLabel = document.getElementById('connLabel');
|
|
725
|
+
const feedContent = document.getElementById('feedContent');
|
|
726
|
+
const feedEmpty = document.getElementById('feedEmpty');
|
|
727
|
+
const feedCount = document.getElementById('feedCount');
|
|
728
|
+
const searchContent = document.getElementById('searchContent');
|
|
729
|
+
const searchEmpty = document.getElementById('searchEmpty');
|
|
730
|
+
const searchCount = document.getElementById('searchCount');
|
|
731
|
+
const statCandidates = document.getElementById('statCandidates');
|
|
732
|
+
const statChunks = document.getElementById('statChunks');
|
|
733
|
+
const statAvgExp = document.getElementById('statAvgExp');
|
|
734
|
+
const skillBars = document.getElementById('skillBars');
|
|
735
|
+
const locationBars = document.getElementById('locationBars');
|
|
736
|
+
|
|
737
|
+
function setConnected(ok) {
|
|
738
|
+
connDot.className = ok ? 'conn-dot connected' : 'conn-dot';
|
|
739
|
+
connLabel.textContent = ok ? 'connected' : 'disconnected';
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
function formatTime(ts) {
|
|
743
|
+
return new Date(ts).toLocaleTimeString('en-GB', { hour12: false });
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
function formatDuration(ms) {
|
|
747
|
+
if (ms < 1000) return ms + 'ms';
|
|
748
|
+
return (ms / 1000).toFixed(1) + 's';
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
function truncateStr(s, n) {
|
|
752
|
+
return s && s.length > n ? s.slice(0, n) + '…' : (s || '');
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
function summarizeArgs(args) {
|
|
756
|
+
if (!args || Object.keys(args).length === 0) return '';
|
|
757
|
+
const parts = [];
|
|
758
|
+
for (const [k, v] of Object.entries(args)) {
|
|
759
|
+
let val = typeof v === 'string' ? truncateStr(v, 60) : JSON.stringify(v);
|
|
760
|
+
parts.push(k + ': ' + val);
|
|
761
|
+
}
|
|
762
|
+
return parts.join(', ');
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
function renderBars(container, counts, cssClass) {
|
|
766
|
+
if (!counts || Object.keys(counts).length === 0) {
|
|
767
|
+
container.innerHTML = '<span style="font-family:var(--mono);font-size:0.65rem;color:var(--text-muted)">No data</span>';
|
|
768
|
+
return;
|
|
769
|
+
}
|
|
770
|
+
const sorted = Object.entries(counts).sort((a, b) => b[1] - a[1]).slice(0, 5);
|
|
771
|
+
const max = sorted[0][1];
|
|
772
|
+
container.innerHTML = sorted.map(([name, count]) => {
|
|
773
|
+
const pct = Math.round((count / max) * 100);
|
|
774
|
+
return '<div class="skill-bar-row">' +
|
|
775
|
+
'<span class="skill-name">' + escHtml(name) + '</span>' +
|
|
776
|
+
'<div class="skill-bar-track"><div class="skill-bar-fill ' + cssClass + '" style="width:' + pct + '%"></div></div>' +
|
|
777
|
+
'<span class="skill-count">' + count + '</span>' +
|
|
778
|
+
'</div>';
|
|
779
|
+
}).join('');
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
function escHtml(s) {
|
|
783
|
+
const d = document.createElement('div');
|
|
784
|
+
d.textContent = s;
|
|
785
|
+
return d.innerHTML;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
// --- Event Handlers ---
|
|
789
|
+
|
|
790
|
+
function handleToolCallStart(ev) {
|
|
791
|
+
feedEmpty.style.display = 'none';
|
|
792
|
+
activeTools.set(ev.id, ev);
|
|
793
|
+
|
|
794
|
+
const card = document.createElement('div');
|
|
795
|
+
card.className = 'activity-card running';
|
|
796
|
+
card.id = 'card-' + ev.id;
|
|
797
|
+
|
|
798
|
+
const argsSummary = summarizeArgs(ev.args);
|
|
799
|
+
|
|
800
|
+
card.innerHTML =
|
|
801
|
+
'<div class="card-top">' +
|
|
802
|
+
'<div class="card-top-left">' +
|
|
803
|
+
'<div class="status-indicator running"></div>' +
|
|
804
|
+
'<span class="tool-name">' + escHtml(ev.tool) + '</span>' +
|
|
805
|
+
'</div>' +
|
|
806
|
+
'<span class="card-time">' + formatTime(ev.timestamp) + '</span>' +
|
|
807
|
+
'</div>' +
|
|
808
|
+
(argsSummary ? '<div class="card-args">' + escHtml(argsSummary) + '</div>' : '');
|
|
809
|
+
|
|
810
|
+
feedContent.prepend(card);
|
|
811
|
+
trimFeed();
|
|
812
|
+
updateFeedCount();
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
function handleToolCallEnd(ev) {
|
|
816
|
+
const startEvent = activeTools.get(ev.id);
|
|
817
|
+
activeTools.delete(ev.id);
|
|
818
|
+
const card = document.getElementById('card-' + ev.id);
|
|
819
|
+
|
|
820
|
+
if (card) {
|
|
821
|
+
card.className = 'activity-card ' + (ev.success ? 'success' : 'error');
|
|
822
|
+
|
|
823
|
+
const indicator = card.querySelector('.status-indicator');
|
|
824
|
+
if (indicator) {
|
|
825
|
+
indicator.className = 'status-indicator ' + (ev.success ? 'success' : 'error');
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
const topRow = card.querySelector('.card-top');
|
|
829
|
+
const timeEl = topRow.querySelector('.card-time');
|
|
830
|
+
|
|
831
|
+
const durClass = ev.durationMs < 1000 ? 'fast' : (ev.durationMs > 5000 ? 'slow' : '');
|
|
832
|
+
const badge = document.createElement('span');
|
|
833
|
+
badge.className = 'duration-badge ' + durClass;
|
|
834
|
+
badge.textContent = formatDuration(ev.durationMs);
|
|
835
|
+
topRow.insertBefore(badge, timeEl);
|
|
836
|
+
|
|
837
|
+
if (ev.resultPreview) {
|
|
838
|
+
const resultDiv = document.createElement('div');
|
|
839
|
+
resultDiv.className = 'card-result';
|
|
840
|
+
const toggleId = 'toggle-' + ev.id;
|
|
841
|
+
resultDiv.innerHTML =
|
|
842
|
+
'<button class="result-toggle" onclick="toggleResult(\\'' + ev.id + '\\')">' +
|
|
843
|
+
'<span class="arrow" id="arrow-' + ev.id + '">▸</span> result' +
|
|
844
|
+
'</button>' +
|
|
845
|
+
'<div class="result-preview" id="preview-' + ev.id + '">' + escHtml(ev.resultPreview) + '</div>';
|
|
846
|
+
card.appendChild(resultDiv);
|
|
847
|
+
}
|
|
848
|
+
} else {
|
|
849
|
+
// card not found (from history), create completed card
|
|
850
|
+
feedEmpty.style.display = 'none';
|
|
851
|
+
const newCard = document.createElement('div');
|
|
852
|
+
newCard.className = 'activity-card ' + (ev.success ? 'success' : 'error');
|
|
853
|
+
newCard.id = 'card-' + ev.id;
|
|
854
|
+
|
|
855
|
+
const durClass = ev.durationMs < 1000 ? 'fast' : (ev.durationMs > 5000 ? 'slow' : '');
|
|
856
|
+
|
|
857
|
+
newCard.innerHTML =
|
|
858
|
+
'<div class="card-top">' +
|
|
859
|
+
'<div class="card-top-left">' +
|
|
860
|
+
'<div class="status-indicator ' + (ev.success ? 'success' : 'error') + '"></div>' +
|
|
861
|
+
'<span class="tool-name">' + escHtml(ev.tool) + '</span>' +
|
|
862
|
+
'</div>' +
|
|
863
|
+
'<span class="duration-badge ' + durClass + '">' + formatDuration(ev.durationMs) + '</span>' +
|
|
864
|
+
'<span class="card-time">' + formatTime(ev.timestamp) + '</span>' +
|
|
865
|
+
'</div>' +
|
|
866
|
+
(ev.resultPreview ?
|
|
867
|
+
'<div class="card-result">' +
|
|
868
|
+
'<button class="result-toggle" onclick="toggleResult(\\'' + ev.id + '\\')">' +
|
|
869
|
+
'<span class="arrow" id="arrow-' + ev.id + '">▸</span> result' +
|
|
870
|
+
'</button>' +
|
|
871
|
+
'<div class="result-preview" id="preview-' + ev.id + '">' + escHtml(ev.resultPreview) + '</div>' +
|
|
872
|
+
'</div>' : '') ;
|
|
873
|
+
|
|
874
|
+
feedContent.prepend(newCard);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
// Parse search results
|
|
878
|
+
if (ev.tool === 'semantic_search' && ev.success && ev.resultPreview) {
|
|
879
|
+
try {
|
|
880
|
+
const data = JSON.parse(ev.resultPreview);
|
|
881
|
+
if (Array.isArray(data)) renderSearchResults(data, startEvent?.args);
|
|
882
|
+
} catch {}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
trimFeed();
|
|
886
|
+
updateFeedCount();
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
function handleStatsUpdate(ev) {
|
|
890
|
+
const s = ev.stats;
|
|
891
|
+
if (s.totalCandidates !== undefined) statCandidates.textContent = s.totalCandidates;
|
|
892
|
+
if (s.totalChunks !== undefined) statChunks.textContent = s.totalChunks;
|
|
893
|
+
if (s.avgExperienceYears !== undefined) statAvgExp.textContent = Number(s.avgExperienceYears).toFixed(1);
|
|
894
|
+
if (s.skillCounts) renderBars(skillBars, s.skillCounts, '');
|
|
895
|
+
if (s.locationCounts) renderBars(locationBars, s.locationCounts, 'location');
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
function renderSearchResults(results, startArgs) {
|
|
899
|
+
searchEmpty.style.display = 'none';
|
|
900
|
+
searchContent.innerHTML = '';
|
|
901
|
+
|
|
902
|
+
if (startArgs) {
|
|
903
|
+
const banner = document.createElement('div');
|
|
904
|
+
banner.className = 'search-query-banner';
|
|
905
|
+
banner.innerHTML = '<span class="label">Query:</span><span class="query-text">' +
|
|
906
|
+
escHtml(typeof startArgs === 'object' ? (startArgs.query || JSON.stringify(startArgs)) : String(startArgs)) + '</span>';
|
|
907
|
+
searchContent.appendChild(banner);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
results.forEach(function(r, i) {
|
|
911
|
+
const name = r.candidateName || r.candidate_name || r.name || 'Unknown';
|
|
912
|
+
const score = typeof r.score === 'number' ? r.score : (typeof r.relevanceScore === 'number' ? r.relevanceScore : 0);
|
|
913
|
+
const pct = Math.round(score * 100);
|
|
914
|
+
const section = r.sectionType || r.section_type || '';
|
|
915
|
+
const snippet = r.textPreview || r.text_preview || r.snippet || r.text || '';
|
|
916
|
+
|
|
917
|
+
const scoreClass = pct >= 70 ? 'high' : (pct >= 40 ? 'mid' : 'low');
|
|
918
|
+
|
|
919
|
+
const card = document.createElement('div');
|
|
920
|
+
card.className = 'search-result-card';
|
|
921
|
+
card.style.animationDelay = (i * 0.05) + 's';
|
|
922
|
+
|
|
923
|
+
card.innerHTML =
|
|
924
|
+
'<div class="sr-top">' +
|
|
925
|
+
'<span class="sr-name">' + escHtml(name) + '</span>' +
|
|
926
|
+
(section ? '<span class="sr-section-badge">' + escHtml(section) + '</span>' : '') +
|
|
927
|
+
'</div>' +
|
|
928
|
+
'<div class="sr-score-row">' +
|
|
929
|
+
'<div class="sr-score-track"><div class="sr-score-fill ' + scoreClass + '" style="width:' + pct + '%"></div></div>' +
|
|
930
|
+
'<span class="sr-score-label">' + pct + '%</span>' +
|
|
931
|
+
'</div>' +
|
|
932
|
+
(snippet ? '<div class="sr-snippet">' + escHtml(truncateStr(snippet, 200)) + '</div>' : '');
|
|
933
|
+
|
|
934
|
+
searchContent.appendChild(card);
|
|
935
|
+
});
|
|
936
|
+
|
|
937
|
+
searchCount.textContent = results.length;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
function trimFeed() {
|
|
941
|
+
const cards = feedContent.querySelectorAll('.activity-card');
|
|
942
|
+
while (cards.length > MAX_CARDS) {
|
|
943
|
+
feedContent.removeChild(cards[cards.length - 1]);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
function updateFeedCount() {
|
|
948
|
+
feedCount.textContent = feedContent.querySelectorAll('.activity-card').length;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
// Toggle result preview
|
|
952
|
+
window.toggleResult = function(id) {
|
|
953
|
+
const preview = document.getElementById('preview-' + id);
|
|
954
|
+
const arrow = document.getElementById('arrow-' + id);
|
|
955
|
+
if (preview) {
|
|
956
|
+
const open = preview.classList.toggle('open');
|
|
957
|
+
if (arrow) arrow.className = 'arrow' + (open ? ' open' : '');
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
function processEvent(ev) {
|
|
962
|
+
switch (ev.type) {
|
|
963
|
+
case 'tool_call_start': handleToolCallStart(ev); break;
|
|
964
|
+
case 'tool_call_end': handleToolCallEnd(ev); break;
|
|
965
|
+
case 'stats_update': handleStatsUpdate(ev); break;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
// --- WebSocket ---
|
|
970
|
+
function connect() {
|
|
971
|
+
ws = new WebSocket('ws://localhost:' + PORT + '/ws');
|
|
972
|
+
|
|
973
|
+
ws.onopen = function() {
|
|
974
|
+
setConnected(true);
|
|
975
|
+
retryDelay = 1000;
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
ws.onclose = function() {
|
|
979
|
+
setConnected(false);
|
|
980
|
+
setTimeout(connect, retryDelay);
|
|
981
|
+
retryDelay = Math.min(retryDelay * 2, 30000);
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
ws.onerror = function() {
|
|
985
|
+
ws.close();
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
ws.onmessage = function(msg) {
|
|
989
|
+
try {
|
|
990
|
+
const data = JSON.parse(msg.data);
|
|
991
|
+
if (Array.isArray(data)) {
|
|
992
|
+
// history batch
|
|
993
|
+
data.forEach(processEvent);
|
|
994
|
+
} else {
|
|
995
|
+
processEvent(data);
|
|
996
|
+
}
|
|
997
|
+
} catch {}
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
connect();
|
|
1002
|
+
})();
|
|
1003
|
+
</script>
|
|
1004
|
+
</body>
|
|
1005
|
+
</html>`;
|
|
1006
|
+
}
|
|
1007
|
+
//# sourceMappingURL=html.js.map
|