six-degrees 0.3.0 → 0.4.0

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 (427) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +1 -0
  3. package/.next/standalone/.next/build-manifest.json +3 -3
  4. package/.next/standalone/.next/prerender-manifest.json +35 -7
  5. package/.next/standalone/.next/required-server-files.json +6 -1
  6. package/.next/standalone/.next/routes-manifest.json +18 -1
  7. package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  8. package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  15. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  17. package/.next/standalone/.next/server/app/_not-found.rsc +11 -11
  18. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
  19. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +10 -10
  20. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  21. package/.next/standalone/.next/server/app/api/admin-delete/route.js +1 -1
  22. package/.next/standalone/.next/server/app/api/admin-delete/route.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/api/admin-update/route.js +1 -1
  24. package/.next/standalone/.next/server/app/api/admin-update/route.js.nft.json +1 -1
  25. package/.next/standalone/.next/server/app/api/bridges/route.js +1 -1
  26. package/.next/standalone/.next/server/app/api/bridges/route.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/api/bulk-import/route.js +1 -1
  28. package/.next/standalone/.next/server/app/api/bulk-import/route.js.nft.json +1 -1
  29. package/.next/standalone/.next/server/app/api/company-scores/legacy/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/company-scores/route.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/api/connections/route.js +1 -1
  32. package/.next/standalone/.next/server/app/api/connections/route.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/api/data/export/route.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/api/data/import/route.js.nft.json +1 -1
  35. package/.next/standalone/.next/server/app/api/data/restart/route.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/api/data/reveal/route.js.nft.json +1 -1
  37. package/.next/standalone/.next/server/app/api/data/route.js.nft.json +1 -1
  38. package/.next/standalone/.next/server/app/api/delete-cluster/route.js +1 -1
  39. package/.next/standalone/.next/server/app/api/delete-cluster/route.js.nft.json +1 -1
  40. package/.next/standalone/.next/server/app/api/ingest/route.js +1 -1
  41. package/.next/standalone/.next/server/app/api/ingest/route.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/api/network/route.js +1 -1
  43. package/.next/standalone/.next/server/app/api/network/route.js.nft.json +1 -1
  44. package/.next/standalone/.next/server/app/api/notifications/route.js +1 -1
  45. package/.next/standalone/.next/server/app/api/notifications/route.js.nft.json +1 -1
  46. package/.next/standalone/.next/server/app/api/outreach/route.js +3 -3
  47. package/.next/standalone/.next/server/app/api/outreach/route.js.nft.json +1 -1
  48. package/.next/standalone/.next/server/app/api/queue/route.js +1 -1
  49. package/.next/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
  50. package/.next/standalone/.next/server/app/api/scraper/route.js +1 -1
  51. package/.next/standalone/.next/server/app/api/scraper/route.js.nft.json +1 -1
  52. package/.next/standalone/.next/server/app/api/settings/route.js.nft.json +1 -1
  53. package/.next/standalone/.next/server/app/api/settings/sector-preview/route.js.nft.json +1 -1
  54. package/.next/standalone/.next/server/app/api/settings/sector-suggestions/route.js.nft.json +1 -1
  55. package/.next/standalone/.next/server/app/api/setup-profile/route.js +1 -1
  56. package/.next/standalone/.next/server/app/api/setup-profile/route.js.nft.json +1 -1
  57. package/.next/standalone/.next/server/app/api/unlock/route.js +1 -1
  58. package/.next/standalone/.next/server/app/api/unlock/route.js.nft.json +1 -1
  59. package/.next/standalone/.next/server/app/api/update/route.js.nft.json +1 -1
  60. package/.next/standalone/.next/server/app/api/update-images/route.js +1 -1
  61. package/.next/standalone/.next/server/app/api/update-images/route.js.nft.json +1 -1
  62. package/.next/standalone/.next/server/app/api/users/route.js +1 -1
  63. package/.next/standalone/.next/server/app/api/users/route.js.nft.json +1 -1
  64. package/.next/standalone/.next/server/app/avatars/[file]/route.js.nft.json +1 -1
  65. package/.next/standalone/.next/server/app/import/page.js.nft.json +1 -1
  66. package/.next/standalone/.next/server/app/import/page_client-reference-manifest.js +1 -1
  67. package/.next/standalone/.next/server/app/import.html +1 -1
  68. package/.next/standalone/.next/server/app/import.rsc +13 -13
  69. package/.next/standalone/.next/server/app/import.segments/_full.segment.rsc +13 -13
  70. package/.next/standalone/.next/server/app/import.segments/_tree.segment.rsc +2 -2
  71. package/.next/standalone/.next/server/app/import.segments/import/__PAGE__.segment.rsc +12 -12
  72. package/.next/standalone/.next/server/app/index.html +1 -1
  73. package/.next/standalone/.next/server/app/index.rsc +13 -13
  74. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +12 -12
  75. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +13 -13
  76. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  77. package/.next/standalone/.next/server/app/launch/page.js.nft.json +1 -1
  78. package/.next/standalone/.next/server/app/launch/page_client-reference-manifest.js +1 -1
  79. package/.next/standalone/.next/server/app/launch.html +2 -2
  80. package/.next/standalone/.next/server/app/launch.rsc +13 -13
  81. package/.next/standalone/.next/server/app/launch.segments/_full.segment.rsc +13 -13
  82. package/.next/standalone/.next/server/app/launch.segments/_tree.segment.rsc +2 -2
  83. package/.next/standalone/.next/server/app/launch.segments/launch/__PAGE__.segment.rsc +12 -12
  84. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  85. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  86. package/.next/standalone/.next/server/app/paths/page.js.nft.json +1 -1
  87. package/.next/standalone/.next/server/app/paths/page_client-reference-manifest.js +1 -1
  88. package/.next/standalone/.next/server/app/paths.html +1 -1
  89. package/.next/standalone/.next/server/app/paths.rsc +13 -13
  90. package/.next/standalone/.next/server/app/paths.segments/_full.segment.rsc +13 -13
  91. package/.next/standalone/.next/server/app/paths.segments/_tree.segment.rsc +2 -2
  92. package/.next/standalone/.next/server/app/paths.segments/paths/__PAGE__.segment.rsc +12 -12
  93. package/.next/standalone/.next/server/app/profile/page.js.nft.json +1 -1
  94. package/.next/standalone/.next/server/app/profile/page_client-reference-manifest.js +1 -1
  95. package/.next/standalone/.next/server/app/profile.html +1 -1
  96. package/.next/standalone/.next/server/app/profile.rsc +13 -13
  97. package/.next/standalone/.next/server/app/profile.segments/_full.segment.rsc +13 -13
  98. package/.next/standalone/.next/server/app/profile.segments/_tree.segment.rsc +2 -2
  99. package/.next/standalone/.next/server/app/profile.segments/profile/__PAGE__.segment.rsc +12 -12
  100. package/.next/standalone/.next/server/app/queue/page.js.nft.json +1 -1
  101. package/.next/standalone/.next/server/app/queue/page_client-reference-manifest.js +1 -1
  102. package/.next/standalone/.next/server/app/queue.html +1 -1
  103. package/.next/standalone/.next/server/app/queue.rsc +13 -13
  104. package/.next/standalone/.next/server/app/queue.segments/_full.segment.rsc +13 -13
  105. package/.next/standalone/.next/server/app/queue.segments/_tree.segment.rsc +2 -2
  106. package/.next/standalone/.next/server/app/queue.segments/queue/__PAGE__.segment.rsc +12 -12
  107. package/.next/standalone/.next/server/app/scores/page/app-paths-manifest.json +3 -0
  108. package/.next/standalone/.next/server/app/scores/page/build-manifest.json +20 -0
  109. package/.next/standalone/.next/server/app/scores/page/next-font-manifest.json +11 -0
  110. package/.next/standalone/.next/server/app/scores/page/react-loadable-manifest.json +1 -0
  111. package/.next/standalone/.next/server/app/scores/page/server-reference-manifest.json +4 -0
  112. package/.next/standalone/.next/server/app/scores/page.js +13 -0
  113. package/.next/standalone/.next/server/app/scores/page.js.map +5 -0
  114. package/.next/standalone/.next/server/app/scores/page.js.nft.json +1 -0
  115. package/.next/standalone/.next/server/app/scores/page_client-reference-manifest.js +3 -0
  116. package/.next/standalone/.next/server/app/scores.html +1 -0
  117. package/.next/standalone/.next/server/app/scores.meta +26 -0
  118. package/.next/standalone/.next/server/app/scores.rsc +24 -0
  119. package/.next/standalone/.next/server/app/scores.segments/_full.segment.rsc +24 -0
  120. package/.next/standalone/.next/server/app/scores.segments/_tree.segment.rsc +4 -0
  121. package/.next/standalone/.next/server/app/scores.segments/scores/__PAGE__.segment.rsc +28 -0
  122. package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
  123. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  124. package/.next/standalone/.next/server/app/settings.html +1 -1
  125. package/.next/standalone/.next/server/app/settings.rsc +13 -13
  126. package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +13 -13
  127. package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  128. package/.next/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +12 -12
  129. package/.next/standalone/.next/server/app/setup/page.js.nft.json +1 -1
  130. package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  131. package/.next/standalone/.next/server/app/setup.html +1 -1
  132. package/.next/standalone/.next/server/app/setup.rsc +13 -13
  133. package/.next/standalone/.next/server/app/setup.segments/_full.segment.rsc +13 -13
  134. package/.next/standalone/.next/server/app/setup.segments/_tree.segment.rsc +2 -2
  135. package/.next/standalone/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +12 -12
  136. package/.next/standalone/.next/server/app-paths-manifest.json +1 -0
  137. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0-rnla2._.js +1 -1
  138. package/.next/standalone/.next/server/chunks/[root-of-the-server]__00la_y0._.js +1 -1
  139. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0i5hdu4._.js → [root-of-the-server]__03ydxxh._.js} +2 -2
  140. package/.next/standalone/.next/server/chunks/[root-of-the-server]__07t47cm._.js +1 -1
  141. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0bat8nx._.js +8 -0
  142. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0cj5jqc._.js +1 -1
  143. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0e0fei3._.js +1 -1
  144. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ljcioj._.js +1 -1
  145. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0ljnyho._.js +1 -1
  146. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0o5-tcg._.js +1 -1
  147. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0qrnous._.js +1 -1
  148. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0t3v1a1._.js +1 -1
  149. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0uag-k5._.js +1 -1
  150. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0um1uey._.js +1 -1
  151. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0wmexuc._.js +1 -1
  152. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0xu34sz._.js +1 -1
  153. package/.next/standalone/.next/server/chunks/[root-of-the-server]__133knx1._.js +1 -1
  154. package/.next/standalone/.next/server/chunks/[root-of-the-server]__14ou7j5._.js +1 -1
  155. package/.next/standalone/.next/server/chunks/[root-of-the-server]__15-17hl._.js +1 -1
  156. package/.next/standalone/.next/server/chunks/[root-of-the-server]__16iu0hv._.js +1 -1
  157. package/.next/standalone/.next/server/chunks/[root-of-the-server]__19b7mig._.js +1 -1
  158. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1bbcwub._.js +2 -2
  159. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1eris29._.js +1 -1
  160. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1gjo_cq._.js +1 -1
  161. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1kbl21f._.js +1 -1
  162. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1qcm08_._.js +1 -1
  163. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1rphsdk._.js +1 -1
  164. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1w25q0m._.js +1 -1
  165. package/.next/standalone/.next/server/chunks/_02twlca._.js +10 -0
  166. package/.next/standalone/.next/server/chunks/_072jl0y._.js +1 -1
  167. package/.next/standalone/.next/server/chunks/_0lw8_i0._.js +1 -1
  168. package/.next/standalone/.next/server/chunks/_1_fynia._.js +8 -6
  169. package/.next/standalone/.next/server/chunks/_1fn30_l._.js +1 -1
  170. package/.next/standalone/.next/server/chunks/_1itd1o_._.js +1 -1
  171. package/.next/standalone/.next/server/chunks/_1iwkh8t._.js +1 -1
  172. package/.next/standalone/.next/server/chunks/lib_db-client_15le7cw.js +13 -8
  173. package/.next/standalone/.next/server/chunks/{lib_rpc_02ndsg2.js → lib_rpc_03i8xef.js} +1 -1
  174. package/.next/standalone/.next/server/chunks/{lib_rpc_08q5vp6.js → lib_rpc_08fc3rp.js} +1 -1
  175. package/.next/standalone/.next/server/chunks/{lib_rpc_00tx2sm.js → lib_rpc_08r2t_q.js} +1 -1
  176. package/.next/standalone/.next/server/chunks/{lib_rpc_02-qa4d.js → lib_rpc_0btpv1t.js} +1 -1
  177. package/.next/standalone/.next/server/chunks/lib_rpc_0c9d9ti.js +5 -5
  178. package/.next/standalone/.next/server/chunks/lib_rpc_0cm2ev3.js +3 -0
  179. package/.next/standalone/.next/server/chunks/lib_rpc_0iovswz.js +3 -0
  180. package/.next/standalone/.next/server/chunks/lib_rpc_0is8flp.js +3 -0
  181. package/.next/standalone/.next/server/chunks/lib_rpc_0v8ajtd.js +3 -0
  182. package/.next/standalone/.next/server/chunks/lib_rpc_0xgmvvt.js +3 -0
  183. package/.next/standalone/.next/server/chunks/lib_rpc_144mzbf.js +3 -0
  184. package/.next/standalone/.next/server/chunks/lib_rpc_1bggi0n.js +3 -0
  185. package/.next/standalone/.next/server/chunks/lib_rpc_1dkcu9f.js +3 -0
  186. package/.next/standalone/.next/server/chunks/lib_rpc_1o0jb6w.js +3 -0
  187. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0an6blh._.js → [root-of-the-server]__0zzcbqg._.js} +2 -2
  188. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1194jps._.js +3 -0
  189. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1z1j3ek._.js → [root-of-the-server]__19ip1qq._.js} +2 -2
  190. package/.next/standalone/.next/server/chunks/ssr/_01f38ty._.js +3 -0
  191. package/.next/standalone/.next/server/chunks/ssr/_06w_gl4._.js +3 -0
  192. package/.next/standalone/.next/server/chunks/ssr/_0hw_qnj._.js +3 -0
  193. package/.next/standalone/.next/server/chunks/ssr/_13kzrwv._.js +3 -0
  194. package/.next/standalone/.next/server/chunks/ssr/_15xuwkv._.js +3 -0
  195. package/.next/standalone/.next/server/chunks/ssr/_1cyxocj._.js +3 -0
  196. package/.next/standalone/.next/server/chunks/ssr/_1gpbbw9._.js +3 -0
  197. package/.next/standalone/.next/server/chunks/ssr/_1hgd5dp._.js +3 -0
  198. package/.next/standalone/.next/server/chunks/ssr/_1vpfyd-._.js +3 -0
  199. package/.next/standalone/.next/server/chunks/ssr/_20w06i-._.js +3 -0
  200. package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_scores_page_actions_0x-w58n.js +3 -0
  201. package/.next/standalone/.next/server/chunks/ssr/app_components_settings_SectorPicker_1c-29qw.js +3 -0
  202. package/.next/standalone/.next/server/chunks/ssr/app_launch_page_19t0dyd.js +1 -1
  203. package/.next/standalone/.next/server/chunks/ssr/app_page_1fazqbf.js +11 -9
  204. package/.next/standalone/.next/server/chunks/ssr/app_paths_page_1ol90m7.js +4 -0
  205. package/.next/standalone/.next/server/chunks/ssr/app_profile_page_0u3-l5y.js +1 -1
  206. package/.next/standalone/.next/server/chunks/ssr/app_queue_page_0c6znd6.js +5 -5
  207. package/.next/standalone/.next/server/chunks/ssr/app_scores_page_09wepvv.js +3 -0
  208. package/.next/standalone/.next/server/chunks/ssr/app_settings_page_1f8mjj_.js +1 -1
  209. package/.next/standalone/.next/server/chunks/ssr/app_setup_page_1-282zx.js +2 -2
  210. package/.next/standalone/.next/server/chunks/ssr/lib_1bn38gs._.js +3 -0
  211. package/.next/standalone/.next/server/chunks/ssr/node_modules_next_0x3i8za._.js +131 -0
  212. package/.next/standalone/.next/server/chunks/ssr/{node_modules_next_dist_1bunoni._.js → node_modules_next_dist_1v8aef8._.js} +2 -2
  213. package/.next/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_server-async-storage_0t1dato.js +3 -0
  214. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  215. package/.next/standalone/.next/server/middleware-manifest.json +5 -5
  216. package/.next/standalone/.next/server/next-font-manifest.js +1 -1
  217. package/.next/standalone/.next/server/next-font-manifest.json +4 -0
  218. package/.next/standalone/.next/server/pages/404.html +1 -1
  219. package/.next/standalone/.next/server/pages/500.html +1 -1
  220. package/.next/standalone/.next/server/prefetch-hints.json +14 -0
  221. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  222. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  223. package/.next/standalone/.next/static/chunks/0ax_9zzboyv6d.js +44 -0
  224. package/.next/standalone/.next/static/chunks/0cuuo2jwc9h94.js +1 -0
  225. package/.next/standalone/.next/static/chunks/0l1568qff0efj.js +1 -0
  226. package/.next/standalone/.next/static/chunks/0muwt9bykzr-1.js +1 -0
  227. package/.next/standalone/.next/static/chunks/0w76iraw7ij3k.js +18 -0
  228. package/.next/standalone/.next/static/chunks/135n87ydxjrra.js +2 -0
  229. package/.next/standalone/.next/static/chunks/18xu0fbgo_qz-.js +1 -0
  230. package/.next/standalone/.next/static/chunks/28bu26ausqzmn.js +1 -0
  231. package/.next/standalone/.next/static/chunks/{40nvbgfn7-072.css → 2p6o90z0vgcwr.css} +1 -1
  232. package/.next/standalone/.next/static/chunks/2pnbm1z6j7xab.js +1 -0
  233. package/.next/standalone/.next/static/chunks/2xjho0lroiwlq.js +1 -0
  234. package/.next/standalone/.next/static/chunks/3e8zg6ctvvb8p.js +33 -0
  235. package/.next/standalone/.next/static/chunks/3qh78g2aqhprd.js +2 -0
  236. package/.next/standalone/CHANGELOG.md +286 -0
  237. package/.next/standalone/CONTRIBUTING.md +15 -4
  238. package/.next/standalone/README.md +50 -29
  239. package/.next/standalone/SECURITY.md +10 -0
  240. package/.next/standalone/app/api/company-scores/legacy/route.js +1 -1
  241. package/.next/standalone/app/api/company-scores/route.js +1 -1
  242. package/.next/standalone/app/api/ingest/route.js +23 -2
  243. package/.next/standalone/app/api/outreach/route.js +107 -44
  244. package/.next/standalone/app/api/scraper/route.js +146 -17
  245. package/.next/standalone/app/api/settings/sector-preview/route.js +3 -2
  246. package/.next/standalone/app/api/settings/sector-suggestions/route.js +1 -1
  247. package/.next/standalone/app/api/update-images/route.js +41 -7
  248. package/.next/standalone/app/avatars/[file]/route.js +6 -1
  249. package/.next/standalone/app/components/Avatar.js +5 -2
  250. package/.next/standalone/app/components/ChainView.js +659 -469
  251. package/.next/standalone/app/components/CompanyScores.js +16 -10
  252. package/.next/standalone/app/components/EmptyState.js +1 -1
  253. package/.next/standalone/app/components/FieldStep.js +94 -0
  254. package/.next/standalone/app/components/ForceGraph.js +183 -768
  255. package/.next/standalone/app/components/GridView.js +9 -7
  256. package/.next/standalone/app/components/LegacyScoresCard.js +1 -1
  257. package/.next/standalone/app/components/LinkedInLimits.js +22 -7
  258. package/.next/standalone/app/components/ListView.js +6 -4
  259. package/.next/standalone/app/components/MappingProgress.js +5 -6
  260. package/.next/standalone/app/components/OnboardingGate.js +1 -1
  261. package/.next/standalone/app/components/OrbitGraph.js +33 -1
  262. package/.next/standalone/app/components/OutlinkQuest.js +5 -4
  263. package/.next/standalone/app/components/PathsAnalyzer.js +1 -1
  264. package/.next/standalone/app/components/RingsView.js +9 -8
  265. package/.next/standalone/app/components/SeparationView.js +96 -14
  266. package/.next/standalone/app/components/Sidebar.js +366 -287
  267. package/.next/standalone/app/components/TheirCircle.js +300 -0
  268. package/.next/standalone/app/components/settings/SectorPicker.js +202 -0
  269. package/.next/standalone/app/components/settings/SectorSection.js +21 -195
  270. package/.next/standalone/app/components/settings/TierSection.js +99 -0
  271. package/.next/standalone/app/components/useRequests.js +12 -0
  272. package/.next/standalone/app/components/useScanner.js +13 -0
  273. package/.next/standalone/app/components/views.js +3 -5
  274. package/.next/standalone/app/globals.css +7 -0
  275. package/.next/standalone/app/launch/page.js +6 -3
  276. package/.next/standalone/app/page.js +183 -74
  277. package/.next/standalone/app/paths/page.js +20 -14
  278. package/.next/standalone/app/profile/page.js +3 -3
  279. package/.next/standalone/app/queue/page.js +56 -60
  280. package/.next/standalone/app/scores/page.js +72 -0
  281. package/.next/standalone/app/settings/page.js +15 -3
  282. package/.next/standalone/app/setup/page.js +423 -260
  283. package/.next/standalone/db/schema.js +2 -1
  284. package/.next/standalone/eslint.config.mjs +3 -3
  285. package/.next/standalone/install.sh +3 -3
  286. package/.next/standalone/lib/chain-layout.js +139 -0
  287. package/.next/standalone/lib/circle.js +169 -0
  288. package/.next/standalone/lib/companies.js +1 -1
  289. package/.next/standalone/lib/csv.js +21 -10
  290. package/.next/standalone/lib/data-export.js +2 -1
  291. package/.next/standalone/lib/data-folder.js +4 -2
  292. package/.next/standalone/lib/db-client.js +1 -0
  293. package/.next/standalone/lib/galaxy.js +12 -0
  294. package/.next/standalone/lib/ingest.js +27 -8
  295. package/.next/standalone/lib/legacy-offer.js +7 -6
  296. package/.next/standalone/lib/legacy-scores.js +2 -2
  297. package/.next/standalone/lib/linkedin-limits.js +30 -8
  298. package/.next/standalone/lib/photos.js +47 -0
  299. package/.next/standalone/lib/quest.js +8 -3
  300. package/.next/standalone/lib/rarity.js +80 -0
  301. package/.next/standalone/lib/reach.js +113 -0
  302. package/.next/standalone/lib/requests-client.js +113 -0
  303. package/.next/standalone/lib/rpc.js +26 -15
  304. package/.next/standalone/lib/scan-state.js +1 -0
  305. package/.next/standalone/lib/scanner-setup.js +20 -1
  306. package/.next/standalone/lib/score-guess.js +60 -0
  307. package/.next/standalone/lib/scoring.js +1761 -69
  308. package/.next/standalone/lib/scraper-client.js +235 -17
  309. package/.next/standalone/lib/sector-directory.js +1 -1
  310. package/.next/standalone/lib/sector-focus.js +17 -3
  311. package/.next/standalone/lib/separation.js +4 -2
  312. package/.next/standalone/lib/settings-client.js +21 -0
  313. package/.next/standalone/lib/settings-effects.js +19 -1
  314. package/.next/standalone/lib/settings.js +7 -2
  315. package/.next/standalone/next.config.mjs +25 -3
  316. package/.next/standalone/package-lock.json +2 -2
  317. package/.next/standalone/package.json +2 -2
  318. package/.next/standalone/public/demo-data.json +1 -1
  319. package/.next/standalone/scripts/build-app.mjs +11 -2
  320. package/.next/standalone/scripts/check-node.mjs +1 -1
  321. package/.next/standalone/scripts/gen-synthetic.mjs +1 -1
  322. package/.next/standalone/scripts/image_store.py +77 -21
  323. package/.next/standalone/scripts/scrape.py +305 -29
  324. package/.next/standalone/server.js +1 -1
  325. package/.next/static/chunks/0ax_9zzboyv6d.js +44 -0
  326. package/.next/static/chunks/0cuuo2jwc9h94.js +1 -0
  327. package/.next/static/chunks/0l1568qff0efj.js +1 -0
  328. package/.next/static/chunks/0muwt9bykzr-1.js +1 -0
  329. package/.next/static/chunks/0w76iraw7ij3k.js +18 -0
  330. package/.next/static/chunks/135n87ydxjrra.js +2 -0
  331. package/.next/static/chunks/18xu0fbgo_qz-.js +1 -0
  332. package/.next/static/chunks/28bu26ausqzmn.js +1 -0
  333. package/.next/static/chunks/{40nvbgfn7-072.css → 2p6o90z0vgcwr.css} +1 -1
  334. package/.next/static/chunks/2pnbm1z6j7xab.js +1 -0
  335. package/.next/static/chunks/2xjho0lroiwlq.js +1 -0
  336. package/.next/static/chunks/3e8zg6ctvvb8p.js +33 -0
  337. package/.next/static/chunks/3qh78g2aqhprd.js +2 -0
  338. package/CHANGELOG.md +286 -0
  339. package/README.md +50 -29
  340. package/SECURITY.md +10 -0
  341. package/db/schema.js +2 -1
  342. package/lib/chain-layout.js +139 -0
  343. package/lib/circle.js +169 -0
  344. package/lib/companies.js +1 -1
  345. package/lib/csv.js +21 -10
  346. package/lib/data-export.js +2 -1
  347. package/lib/data-folder.js +4 -2
  348. package/lib/db-client.js +1 -0
  349. package/lib/galaxy.js +12 -0
  350. package/lib/ingest.js +27 -8
  351. package/lib/legacy-offer.js +7 -6
  352. package/lib/legacy-scores.js +2 -2
  353. package/lib/linkedin-limits.js +30 -8
  354. package/lib/photos.js +47 -0
  355. package/lib/quest.js +8 -3
  356. package/lib/rarity.js +80 -0
  357. package/lib/reach.js +113 -0
  358. package/lib/requests-client.js +113 -0
  359. package/lib/rpc.js +26 -15
  360. package/lib/scan-state.js +1 -0
  361. package/lib/scanner-setup.js +20 -1
  362. package/lib/score-guess.js +60 -0
  363. package/lib/scoring.js +1761 -69
  364. package/lib/scraper-client.js +235 -17
  365. package/lib/sector-directory.js +1 -1
  366. package/lib/sector-focus.js +17 -3
  367. package/lib/separation.js +4 -2
  368. package/lib/settings-client.js +21 -0
  369. package/lib/settings-effects.js +19 -1
  370. package/lib/settings.js +7 -2
  371. package/package.json +2 -2
  372. package/public/demo-data.json +1 -1
  373. package/scripts/check-node.mjs +1 -1
  374. package/scripts/image_store.py +77 -21
  375. package/scripts/scrape.py +305 -29
  376. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1t3rugi._.js +0 -3
  377. package/.next/standalone/.next/server/chunks/lib_rpc_0_8i3ft.js +0 -3
  378. package/.next/standalone/.next/server/chunks/lib_rpc_0huvw-3.js +0 -3
  379. package/.next/standalone/.next/server/chunks/lib_rpc_0ip2vdh.js +0 -3
  380. package/.next/standalone/.next/server/chunks/lib_rpc_0jzisgh.js +0 -3
  381. package/.next/standalone/.next/server/chunks/lib_rpc_0yi9xvd.js +0 -3
  382. package/.next/standalone/.next/server/chunks/lib_rpc_1jyhd0o.js +0 -3
  383. package/.next/standalone/.next/server/chunks/lib_rpc_1kn59-i.js +0 -3
  384. package/.next/standalone/.next/server/chunks/lib_rpc_1q2jkza.js +0 -3
  385. package/.next/standalone/.next/server/chunks/lib_rpc_1vpm1sk.js +0 -3
  386. package/.next/standalone/.next/server/chunks/lib_rpc_1x6p_31.js +0 -3
  387. package/.next/standalone/.next/server/chunks/ssr/_07u8byv._.js +0 -3
  388. package/.next/standalone/.next/server/chunks/ssr/_08r_mlf._.js +0 -3
  389. package/.next/standalone/.next/server/chunks/ssr/_0942v8n._.js +0 -3
  390. package/.next/standalone/.next/server/chunks/ssr/_0hl_t7r._.js +0 -3
  391. package/.next/standalone/.next/server/chunks/ssr/_0tb83dw._.js +0 -132
  392. package/.next/standalone/.next/server/chunks/ssr/_1-87bs1._.js +0 -3
  393. package/.next/standalone/.next/server/chunks/ssr/_17gui6a._.js +0 -3
  394. package/.next/standalone/.next/server/chunks/ssr/lib_0i8v-s3._.js +0 -3
  395. package/.next/standalone/.next/server/chunks/ssr/node_modules_16vay6l._.js +0 -3
  396. package/.next/standalone/.next/server/chunks/ssr/node_modules_1kciwn4._.js +0 -3
  397. package/.next/standalone/.next/static/chunks/06x3jiiz96m5t.js +0 -1
  398. package/.next/standalone/.next/static/chunks/08k1crid-05dt.js +0 -1
  399. package/.next/standalone/.next/static/chunks/0ngx9s6-zgshe.js +0 -33
  400. package/.next/standalone/.next/static/chunks/0q-_khndfxubv.js +0 -2
  401. package/.next/standalone/.next/static/chunks/1c79veqedvubt.js +0 -1
  402. package/.next/standalone/.next/static/chunks/1chp3nx45meg5.js +0 -44
  403. package/.next/standalone/.next/static/chunks/1irqj0lf-fu3d.js +0 -1
  404. package/.next/standalone/.next/static/chunks/1uadqylrod5_v.js +0 -1
  405. package/.next/standalone/.next/static/chunks/23u0zclgwpc4d.js +0 -1
  406. package/.next/standalone/.next/static/chunks/289ktj97di6zg.js +0 -1
  407. package/.next/standalone/.next/static/chunks/2b3lmf8e6uj8m.js +0 -16
  408. package/.next/standalone/.next/static/chunks/3npq5yd7c4dmn.js +0 -2
  409. package/.next/standalone/app/components/BridgeRing.js +0 -753
  410. package/.next/static/chunks/06x3jiiz96m5t.js +0 -1
  411. package/.next/static/chunks/08k1crid-05dt.js +0 -1
  412. package/.next/static/chunks/0ngx9s6-zgshe.js +0 -33
  413. package/.next/static/chunks/0q-_khndfxubv.js +0 -2
  414. package/.next/static/chunks/1c79veqedvubt.js +0 -1
  415. package/.next/static/chunks/1chp3nx45meg5.js +0 -44
  416. package/.next/static/chunks/1irqj0lf-fu3d.js +0 -1
  417. package/.next/static/chunks/1uadqylrod5_v.js +0 -1
  418. package/.next/static/chunks/23u0zclgwpc4d.js +0 -1
  419. package/.next/static/chunks/289ktj97di6zg.js +0 -1
  420. package/.next/static/chunks/2b3lmf8e6uj8m.js +0 -16
  421. package/.next/static/chunks/3npq5yd7c4dmn.js +0 -2
  422. /package/.next/standalone/.next/static/{qqqcxvzBUizkECrT4swyK → WseE_5HuU-1q0ywC9CP3U}/_buildManifest.js +0 -0
  423. /package/.next/standalone/.next/static/{qqqcxvzBUizkECrT4swyK → WseE_5HuU-1q0ywC9CP3U}/_clientMiddlewareManifest.js +0 -0
  424. /package/.next/standalone/.next/static/{qqqcxvzBUizkECrT4swyK → WseE_5HuU-1q0ywC9CP3U}/_ssgManifest.js +0 -0
  425. /package/.next/static/{qqqcxvzBUizkECrT4swyK → WseE_5HuU-1q0ywC9CP3U}/_buildManifest.js +0 -0
  426. /package/.next/static/{qqqcxvzBUizkECrT4swyK → WseE_5HuU-1q0ywC9CP3U}/_clientMiddlewareManifest.js +0 -0
  427. /package/.next/static/{qqqcxvzBUizkECrT4swyK → WseE_5HuU-1q0ywC9CP3U}/_ssgManifest.js +0 -0
@@ -6,6 +6,292 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.4.0] - 2026-09-28
10
+
11
+ ### Added
12
+ - **A cap on profile views.** A circle scan opens the person's profile once, and profile
13
+ views are what LinkedIn restricted an account for. They now have a cap of their own: 50
14
+ in any 24 hours by default. The Scan page offers 10, 25, 50 or 100, and there is no "no
15
+ limit".
16
+ - **A minute apart:** at least 60 seconds pass between any two profile opens. It's timed
17
+ from the last one written down, so scans started back to back can't open profiles back
18
+ to back. The log counts down while it waits, and Stop ends the wait.
19
+ - **Checked before the profile opens:** at the cap, a scan opens nothing and records
20
+ nothing about that person. Auto-Bridge stops, as it does at the search budget, and the
21
+ next run starts with the same person.
22
+ - **On the Scan page:** "3 of 50 profile views today", with a bar and the picker.
23
+ - **Re-mapping someone** checks it before deleting their circle. A damaged record counts
24
+ the day's views as used. An import brings the other computer's setting only when this
25
+ one has none, like the search budget.
26
+ - **The Scan page asks what field you're in, before your first scan.** One optional step,
27
+ with the same picks as *Scores → Your sector*: tech, government and defense, dental, and
28
+ the rest. Companies in your field count for more, so your first scores already use it.
29
+ *Skip for now* carries on without one. Both stay at the bottom of the window while you
30
+ look through the list. It's asked once, and never if you already have a network or picked
31
+ a sector. Change it anytime on the Scores tab.
32
+ - **Bridge Chains opens any circle, as far as your scans reach.** Click someone in a
33
+ bridge's circle and their own circle opens in place: the people found in it once you
34
+ connected and scanned it (3rd degree, counted along the chain), and on from there. A
35
+ trail at the top, and Esc, go back. An empty circle says why and what gets it: connect,
36
+ then scan their circle. While one is being scanned, it fills in as the scan saves.
37
+ Someone ready for a scan goes to the Scan page with them picked instead, since their
38
+ circle is empty until then.
39
+ - **A soft glow on people ready for a scan.** In Bridge Chains, someone you added through
40
+ a circle whose own circle isn't scanned yet has a soft breathing halo, and their bridge
41
+ says how many are "ready". A hidden list is greyed with a lock instead. The halo stays
42
+ still with Reduce Motion on. The old rainbow glow is gone: it looked for them inside the
43
+ circle they came from, which accepting takes them out of, so it never showed.
44
+ - **Ready to scan (N), in the Degrees panel.** It replaces *Auto-Bridge Next*, which
45
+ started a scan in one click, by name, with no cost shown, and offered hidden lists again
46
+ and again. The list is everyone you added through a circle whose circle can be scanned,
47
+ strongest first, with the circle you found them in and what a scan costs. Hidden lists
48
+ stay in view, greyed with a lock.
49
+ - **Scan one circle, on the Scan page.** A ready person, from the list or Bridge Chains,
50
+ opens the Scan page with them picked: the cost (a profile view, then a search a page, up
51
+ to 100), what's left of the day's budget, how deep to read, and a button. Nothing starts
52
+ until it's pressed.
53
+ - **A release checks the website's version lines.** Before building anything, the release
54
+ workflow runs `scripts/check-site-version.mjs`: the site's `softwareVersion` and
55
+ `llms.txt` must name the version, and its `dateModified` and sitemap `lastmod` can't be
56
+ older than the release's date in the changelog. A stale site stops the release with a
57
+ line for each thing to change. A pre-release skips it. Anyone can run it before tagging.
58
+
59
+ ### Changed
60
+ - **A big circle spreads out.** A bridge's circle used to sit on one ring, so a few hundred
61
+ people were almost a solid line. It now fills rings from the inside out, as many as it
62
+ needs, with the highest tiers nearest the middle; drag to move, scroll or +/− to zoom.
63
+ Lots of bridges spread the same way, and so does the preview on hover.
64
+ - **The map picks up a finished scan by itself.** No refresh needed.
65
+ - **One rule for "ready".** Bridge Chains, the Degrees panel, Outlink's new doors and the
66
+ profile page's mapping bar now agree on who can be scanned next, and all leave hidden
67
+ lists out.
68
+ - **Photos stay on your Mac.** The app shows a profile photo only from the copy saved on
69
+ your computer, so looking at your network never contacts LinkedIn. It used to load a
70
+ photo from LinkedIn until a scan had saved it, and a rescan could put LinkedIn's link
71
+ back in place of a saved photo. Every page now also tells the browser to load pictures
72
+ from the app alone, and the scanner fetches photos from LinkedIn's image servers only.
73
+ - **Photos an older version kept as links are saved once.** Until then those people show
74
+ initials. The next scan saves them at its end, or *Save photos* on the Scan page does it
75
+ now, without opening a browser. A link more than a few weeks old has expired: that
76
+ person's photo comes back when they're next scanned. Offline, or with LinkedIn's image
77
+ server busy, nothing is forgotten, and *Save photos* stops and says why.
78
+ - **Government and military titles are read.** A senator, a governor, a mayor and a cabinet
79
+ secretary score like a C-suite; their deputies, state legislators, commissioners,
80
+ ambassadors and judges like a VP; a city councilmember or a sheriff like a director.
81
+ Officers by rank: a 3–4 star general or admiral 10, a 1–2 star 9, a colonel 7.5, a
82
+ lieutenant colonel 6.5, a major 5, and a commander by their unit. "(Ret.)" and
83
+ "Retired" make a role former. They count only where a title is written, and only where
84
+ their own organization is a government's or a service's: a staffer in an Office of the
85
+ Secretary, a veteran's civilian job, a city manager at Uber, a Rotary district governor,
86
+ a team captain or a Kentucky colonel isn't one. A title that doesn't say whose it is
87
+ ("Mayor", "Police Chief", "Ambassador") needs its government named, or stays "Title
88
+ unclear": a missed official is a neutral 4, a realtor read as a mayor would be an A.
89
+ Until now all of them were "Title unclear" (a U.S. senator scored 2.9, C).
90
+ - **One name: Six Degrees.** The header, the welcome screen, the loading and launch pages,
91
+ the side panel and the Terminal installer said "6 Degrees". They now say Six Degrees, as
92
+ the window title and the app in Applications already did.
93
+ - **Contributor docs and `.gitignore`.** CONTRIBUTING says npm releases go out through
94
+ trusted publishing, with no token to set, and that `npm run build:desktop` builds the app
95
+ releases ship (`build:app` is the old launcher). `.gitignore` keeps a LinkedIn export, a
96
+ database, a saved copy of a network and the scanner's signed-in browser profile out of a
97
+ commit, wherever they sit in the tree. A local build keeps them out of the app too, and
98
+ its list of uncommitted files inside the app now names ignored ones as well.
99
+ - **0.4.0-beta.1, promoted: this is now the Mac app and npm package everyone gets.** It adds:
100
+ - **Their circle, on every card,** with rarity beside the tier and LinkedIn's own mutual count.
101
+ - **One scan at a time,** and *Resume* beside *Rescan*.
102
+ - **Tiers on your own network's curve,** with unknown companies at a neutral 5.
103
+ - **631 public organizations** the built-in list leaves off, and **scoring 6.**
104
+ - **Scores, a tab of its own.**
105
+
106
+ The details are under 0.4.0-beta.1 below.
107
+ - **The download page** says what's new in 0.4.0.
108
+ - **Degrees' corner toggle says Orbit, which is what it shows.** It said "Galaxy", but
109
+ the Galaxy is a Network Circle view, so Degrees fell back to Orbit. It switches
110
+ between Orbit and Bridge Chains, and it's on whenever Orbit is showing.
111
+
112
+ ### Removed
113
+ - **About 630 lines of Galaxy code that never ran:** a Degrees drawing from before Orbit
114
+ and Bridge Chains. Nothing could open it. The Galaxy draws Network Circle only.
115
+
116
+ ### Fixed
117
+ - **A one-person scan notes a hidden list.** A card's Scan or Rescan that found someone's
118
+ list hidden said so and noted nothing, so they stayed "not scanned yet" and were offered
119
+ again forever. Only a batch noted it. Now every read from page 1 does.
120
+ - **A scan reads the list of the person you picked.** A card's Scan and Rescan went by
121
+ name, so with two connections of the same name the scanner could read the other one's
122
+ list. Every Scan button now goes by that person's profile, as Resume already did.
123
+ - **A company's name after "at" is no longer read as a title.** "Server at President Hotel"
124
+ scored as a C-suite (7.3, A), and so did an IT specialist in an "Office of the Chief
125
+ Information Officer". "Executive Assistant to the General Manager" scored as a VP.
126
+ - **↻ asks before it scans.** The round button in the header started *Check for new* the
127
+ moment it was clicked. It now says what it will do (open Chrome on your connections list
128
+ and read it until it reaches people already saved) and what it costs (no search budget,
129
+ but it is LinkedIn traffic from your account), and waits for OK.
130
+ - **No Scan buttons on the sample or a CSV import.** Every card there offered a scan of
131
+ that person's circle, and Degrees offered *Auto-Bridge Next*, but both networks live
132
+ only in the window, so the scan could only fail ("Bridge '…' not found in database").
133
+ In their place a line says scanning needs your own network.
134
+ - **A CSV import's dates are the day LinkedIn says.** Anywhere east of London, each "Connected
135
+ On" date landed a day early (28 Sep 2026 became 27 Sep). The import now reads it as the
136
+ calendar date it is, the way a scan already did, and a date it can't read is left blank
137
+ rather than guessed.
138
+ - **Opening a panel no longer rebuilds the Galaxy.** Opening or closing the side panel or
139
+ the Filter panel used to draw the Galaxy again from scratch: the layout started over,
140
+ the selection ring vanished, and a big network stalled the page. Now the view slides
141
+ over at the same zoom, so what was in the middle stays in the middle.
142
+ - **The selection ring stays on the person you picked.** It is tied to their dot, and it
143
+ comes back after a tier filter that still shows them. It used to follow the first dot
144
+ it found near its old spot, which could be someone else, even You. *Back to list*
145
+ clears it.
146
+ - **The selection ring pulses gently, as it was always meant to.** Its animation had only
147
+ ever been written in code that never ran. With Reduce Motion on, it holds still.
148
+ - **Hovering a dot eases it up to 1.5 times its size,** instead of jumping. With Reduce
149
+ Motion on, it still changes at once.
150
+ - **The Galaxy draws faster on a big network.** Colouring its lines searched every person
151
+ for every line: about 1.4 s at 30,000 people, on every draw. It now takes under a
152
+ millisecond.
153
+ - **The main screen no longer stalls when nothing is selected on a big network.** The
154
+ side panel's Power Rankings counted every tier again for each person in the list, even
155
+ with the panel closed. At 30,000 people that took about 20 s each time the screen
156
+ redrew, opening the Filter panel included.
157
+ - **On a laptop, the Galaxy keeps its usual layout with a panel open.** Its fixed phone
158
+ layout used to switch on whenever the graph was under 768 pixels wide, which a tier
159
+ filter picked with a panel open could do. It now follows the window, as the page does.
160
+
161
+ ## [0.4.0-beta.1] - 2026-09-28 (beta: a pre-release, never installed automatically)
162
+
163
+ ### Added
164
+ - **Their circle, on every card.** Open one of your connections and the top of their card
165
+ is a small map of their circle. Their scanned connections sit round them (D2). Anyone
166
+ you connected with from it gets a green ring, and their own circle fans out behind
167
+ them (D3), on out to D6. A request you've sent and they haven't accepted is a dotted
168
+ dot. Tap the map for the large one, where any dot opens that person. It's built from
169
+ what the app already keeps (whose circle someone was found in, and who introduced
170
+ you), so it needs no extra scanning. Not scanned yet? It says so, and points at the
171
+ scan below.
172
+ - **Rarity, beside the tier.** How many mutual connections lead to someone, in five
173
+ bands: *Only way in* (1), *Rare* (2–3), *Uncommon* (4–10), *Common* (11–30) and
174
+ *Warm* (31+). It's a distinction, never a score: tiers and power are untouched.
175
+ Rarity and the tier filter together, in the circle and in Separation, so "S" and
176
+ "Only way in" is exactly the rare finds, and "S" and "Warm" the easy wins. Until a
177
+ scan saves LinkedIn's own count, it's counted from the circles you've scanned, which
178
+ can only go up as you scan more, and everywhere it shows says so.
179
+ - **Resume beside Rescan on a profile card.** When someone's list was only partly read (a
180
+ page limit, a stop, LinkedIn pushing back), their card offers *Resume from page N* next
181
+ to *Rescan from the start*: the same carry-on as the Scan page's Paused list, for that
182
+ one person. LinkedIn lists other people's connections in its own order, with no dates,
183
+ so anyone new can be on any page: Rescan reads the whole list again from page 1, and
184
+ Resume picks up where the last read stopped. A list read to the end says so instead.
185
+ - **LinkedIn's own mutual count, from circle scans.** Everyone a circle scan finds now
186
+ carries LinkedIn's count of the mutual connections you share with them, read from the
187
+ line under their result card ("Maya Chen and 23 other mutual connections" is 24).
188
+ - **No extra page views:** the line was already on the pages the scanner reads.
189
+ - **One count per person:** every copy of the person, one per bridge that knows them,
190
+ keeps the newest count read. A scan that doesn't see the line leaves the count alone.
191
+ - **Used by rarity** in place of the count from your scans, which could only be a floor.
192
+ - **Not yet tried against live LinkedIn,** and it reads English wording only. The first
193
+ real circle scan is the check. Any other wording reads as no count, never a wrong one.
194
+ - **A public company dataset: 631 organizations the built-in list leaves off,** scored 6
195
+ to 8 from public facts on one published scale, each with its source beside it (an exchange
196
+ listing, a reported valuation, a U.S. News rank, a federal department's size).
197
+ - **The Fortune 500 (2025):** 376 companies, and the brands their staff write as their
198
+ employer (KeyBank, Alaska Airlines, VMware, The Wall Street Journal…).
199
+ - **The U.S. federal government:** 114 entries. The departments and military branches
200
+ are 8; agencies and national labs 7. Each is matched only by forms that say which one
201
+ it is: "US Army", never "Army" alone.
202
+ - **Universities ranked 21–100 by U.S. News:** 77 of them.
203
+ - **64 more, researched one by one,** among them Anduril, CoreWeave, MLB, WWE, UF and UCF.
204
+
205
+ Someone there is scored from those facts, not as an unknown company, and the Scores tab
206
+ labels the score *public data*. The list is built from public sources only, never from
207
+ anyone's scan, and grows each release. The built-in list itself is unchanged: household
208
+ names only, 7 and up.
209
+ - **A card says when a score is a guess, and what would firm it up.** When someone's headline
210
+ gives the app no title to read, or no company it knows, the top of their card says so
211
+ ("Their score is a guess. The app couldn't find where they work.") and offers *Scan their
212
+ circle*, which brings the scan button into view. Who you can reach through them is what the
213
+ score can read instead, and a strong circle adds up to +2.
214
+
215
+ ### Fixed
216
+ - **A request you send shows everywhere, at once.**
217
+ - **Before:** *Connect to Unlock Path* marked one bridge's copy of the person and told
218
+ nothing else on the page.
219
+ - The card kept offering the link.
220
+ - Separation, Orbit and the circle never showed it, even after a reload.
221
+ - Every click awarded XP again.
222
+ - Undo took back only half of it.
223
+ - **Now:** a request belongs to the person, in one list every view reads, so the
224
+ card, Separation, Orbit, the new circle, the Outlink queue and the Pending badge
225
+ all change the moment you click.
226
+ - **The details:**
227
+ - The bridge whose circle you found them in is kept, so once they accept, their
228
+ card and circle say who introduced you.
229
+ - XP comes once per person.
230
+ - *Didn't send it? Undo* on the card takes all of it back, the XP too.
231
+ - **One scan at a time, and every Scan button knows it.** A scan started on one profile
232
+ card left the Scan button on every other card clickable, and *Auto-Bridge Next*, the ↻
233
+ refresh and Paths' company scan too. Pressing one was refused, and the card then said
234
+ *"Scan failed — connections may be private"* about a scan that had never started. Now
235
+ they all grey out while anything runs and say what does ("Ada Park's circle is being
236
+ scanned. One scan at a time…"), even a scan started on the Scan page or in another
237
+ window. Close a card mid-scan and open it again and its progress is still there; when it
238
+ ends, the card says so. The page asks the scanner once for all of them
239
+ (`/api/scraper?job=1`, which reads only memory), not once per button.
240
+ - **Company names written in styled letters or with a logo are read.** "𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁",
241
+ "Apple " (with Apple's logo) and "Snapchat|ex-L'Oréal" (a full-width bar) used to read
242
+ as unknown companies. So did "Meta Superintelligence Labs" and "Snapchat MENA Region",
243
+ and a class year ("UCF ’26") hid the school.
244
+ - **"President's Club" is a sales award, not a president.** A title's possessive read as
245
+ the title, so "Account Executive at Oracle | 3x President's Club" scored 7.3 (A) as a
246
+ C-suite, and so did "Chairman's Award" and "Chief of Staff, CEO's Office". It's the
247
+ title's own: 3.6 (C), and a chief of staff is a director again (5.4, B).
248
+
249
+ ### Changed
250
+ - **Tiers are graded on your own network's curve** (new: *Scores → Tiers*, and the default).
251
+ Your top 3% of connections are S, the next 12% A, the next 25% B and the next 30% C, so
252
+ the first scan of any network has a top, not only a network full of companies the app
253
+ knows. The curve only lifts: nobody drops a tier because their network is strong, and
254
+ nobody under 4 is lifted into S or A. People tied at a line all come in or all stay out.
255
+ Choose *On the fixed scale* for the lines as they were (S ≥ 7.5, A ≥ 5.5, B ≥ 4, C ≥ 2.5).
256
+ A LinkedIn CSV import opened in the app is always graded on its own curve.
257
+ - **A company the app doesn't know is neutral.** It counts as 5, the middle of the scale
258
+ (it was 4, and 3 when no company was found), so the people the built-in list doesn't
259
+ know aren't pushed down a tier for it. A founder at an unknown company scores 7.3 (was
260
+ 6.7), a director 5.4 (was 5.0). Claims in their headlines still count half. Your network
261
+ is rescored once, the first time the map loads after updating.
262
+ - **The power score reads more of who someone is.** A review of the score found kinds of
263
+ people it ranked too low:
264
+ - A title's company written without "at" counts: "Global Category President | The
265
+ Coca-Cola Company" scores 9.5 (S), not 7.3 (A), and so does "Corporate VP, Samsung".
266
+ Only a company the app knows, and not after a founder's, an owner's or a CEO's title,
267
+ not a program or a degree ("AWS Community Builder", "Harvard MBA"), and not a school
268
+ after a title that isn't an academic's.
269
+ - "MD @ J.P. Morgan", "MD, Investment Banking", "Head of Country" and "Country Head" are
270
+ senior, like a managing director; "MD, MBA" and "Physician, MD" aren't.
271
+ - Universities have their own ladder: an assistant professor 5, an associate professor
272
+ 6.5, a professor 7.5 (was 4, an entry-level job), a dean 9, a provost or a chancellor 10.
273
+ - An audience of their own counts like a title: 100K+ followers like a manager's, 1M+ a
274
+ director's, 10M+ a VP's. A creator with 2.5M followers scores 5.8 (A), not 3.3 (C).
275
+ - A title the app can't read counts as an individual contributor's (4, was 3), so a
276
+ founder whose headline names no title or company isn't put below every job.
277
+ - A strong circle counts by how many strong people are in it, not only by their share:
278
+ +1 for every 25 at A or S, up to +2 (was up to +1). A vague title at a big company with
279
+ 72 of them in a circle of 600 scores 5.6 (A), not 3.6 (C).
280
+
281
+ Your network is rescored once, the first time the map loads after updating. The sample
282
+ network's tiers don't change.
283
+ - **Scores has a tab of its own.** How a power score is worked out and the three things you
284
+ can change about it are in one place: your field (*Your sector*), how tiers are graded
285
+ (*Tiers*) and every company's score. Company scores used to be a tab inside Paths, and the
286
+ other two were in Settings. Old links (*Paths → Scores*, *Settings → Your sector*,
287
+ *Settings → Tiers*) forward there, and Settings says where they went.
288
+ - **Separation's map is "who to ask next".** It skips anyone you've already asked or
289
+ already know. Send requests to its ten and the next ten come up. The list below
290
+ still shows everyone, marked *Request sent* or *Connected*, with their rarity.
291
+
292
+ ### Removed
293
+ - **The Revolver view.** Degrees keeps Separation, Orbit, Bridge Chains, Pyramid and List.
294
+
9
295
  ## [0.3.0] - 2026-09-26
10
296
 
11
297
  ### Changed
@@ -42,16 +42,27 @@ run `node scripts/pin-python-packages.mjs`.
42
42
 
43
43
  Bump the version, tag it, push the tag. `.github/workflows/release.yml` builds the
44
44
  Mac app for Apple Silicon and Intel, publishes both `.dmg` files and a `SHA256SUMS`
45
- file on a GitHub Release (which is what `install.sh` downloads), and publishes to
46
- npm when an `NPM_TOKEN` secret is set.
45
+ file on a GitHub Release (which is what `install.sh` downloads), and publishes the npm
46
+ package through npm's trusted publishing: npm accepts this repository's
47
+ `release.yml`, and GitHub vouches for each run, so there is no npm token to set or
48
+ keep. A tag with a hyphen (`v0.4.0-beta.1`) is a pre-release on GitHub and goes to npm
49
+ under `next`, so neither `install.sh` nor `npx six-degrees` picks it up.
50
+
51
+ A full release also bumps the download website's version lines (`docs/SEO.md`, "Release
52
+ checklist"). `node scripts/check-site-version.mjs` says whether they match
53
+ `package.json` and the release's date in `CHANGELOG.md`; the release workflow runs it
54
+ before building anything and stops if they don't. A pre-release skips it.
47
55
 
48
56
  ```bash
49
57
  npm version 0.2.0 --no-git-tag-version
58
+ node scripts/check-site-version.mjs
50
59
  git commit -am "Release 0.2.0" && git tag v0.2.0 && git push --follow-tags
51
60
  ```
52
61
 
53
- To try a packaged build locally: `npm run build:app`, then
54
- `SIX_DEGREES_DMG=dist/Six-Degrees-<version>-arm64.dmg bash install.sh`.
62
+ To try a packaged build locally: `npm run build:desktop`, then
63
+ `SIX_DEGREES_DMG=dist/Six-Degrees-<version>-arm64.dmg bash install.sh`. That is the
64
+ Electron app releases ship. `npm run build:app` builds the older classic launcher, kept
65
+ only as a fallback.
55
66
 
56
67
  The picture behind the `.dmg` window is `scripts/dmg/background.html`. After changing
57
68
  it, run `node scripts/make-dmg-background.mjs` (needs Google Chrome) and commit the
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <a href="https://blakeb056.github.io/six-degrees/"><img src="desktop/icon/icon.svg" width="128" height="128" alt="Six Degrees website"></a>
2
+ <a href="https://sixdegreesapp.com/"><img src="desktop/icon/icon.svg" width="128" height="128" alt="Six Degrees website"></a>
3
3
  </p>
4
4
 
5
5
  <h1 align="center">Six Degrees</h1>
@@ -18,7 +18,7 @@
18
18
  <a href="https://github.com/blakeb056/six-degrees/releases/latest/download/Six-Degrees-Mac-Intel.dmg"><img src="docs/img/download-intel.png" width="346" alt="Download Six Degrees for a Mac with an Intel chip"></a>
19
19
  </p>
20
20
 
21
- <p align="center"><sub>Free Mac app · macOS 13.5 or later · <a href="https://blakeb056.github.io/six-degrees/">website</a> · <a href="https://github.com/blakeb056/six-degrees/releases/latest">what's new</a></sub></p>
21
+ <p align="center"><sub>Free Mac app · macOS 13.5 or later · <a href="https://sixdegreesapp.com/">website</a> · <a href="https://github.com/blakeb056/six-degrees/releases/latest">what's new</a></sub></p>
22
22
 
23
23
  **Which download?** Apple menu → **About This Mac**. If it says "Chip: Apple M…", take
24
24
  **Apple Silicon**. If it says "Processor: …Intel…", take **Intel**. It needs **macOS 13.5
@@ -123,8 +123,7 @@ whose own circles reach the furthest, and the shortest chain from you to a stran
123
123
  worth meeting.
124
124
 
125
125
  It's a Mac app (or `npx six-degrees` on Linux). It runs on your computer, against your own data, with no account and
126
- no server. (Inside the app the logo reads *6 Degrees*; in Applications it's **Six
127
- Degrees**.)
126
+ no server.
128
127
 
129
128
  ## Before you scan LinkedIn
130
129
 
@@ -137,8 +136,9 @@ Degrees**.)
137
136
  > - Search was blocked after results were read too fast (2026-09-24).
138
137
  >
139
138
  > The scanner now reads slowly and keeps to a search budget (by default 50 a day and 250
140
- > a month; you can change it on the Scan page). It locks itself during a cooldown, and
141
- > stops at the first sign of push-back. The risk is still yours.
139
+ > a month) and a cap on profile views (50 a day, at least a minute apart). You can change
140
+ > both on the Scan page. It locks itself during a cooldown, and stops at the first sign of
141
+ > push-back. The risk is still yours.
142
142
  >
143
143
  > **The CSV import and the sample network carry no LinkedIn risk at all.** Details:
144
144
  > [how scanning works and what it risks](docs/SCRAPING.md).
@@ -147,12 +147,13 @@ Degrees**.)
147
147
 
148
148
  The app opens on a welcome screen with three ways in, and asks nothing about you:
149
149
 
150
- - **Scan my LinkedIn**: a guided page that ticks each step off as it goes. It sets up
151
- the scanner in one click, you sign into LinkedIn yourself in a Chrome window, and then
152
- it scans. Needs Google Chrome. The Mac app brings its own Python; with `npx six-degrees`
153
- the page uses yours, or sets up a private one with a click. It checks and says what's
154
- missing. The app marks this *Recommended* because it's the only way to Degrees and
155
- Outlink. Read the warning above first.
150
+ - **Scan my LinkedIn**: a guided page that ticks each step off as it goes. It first asks
151
+ one optional question, what field you're in (see *Your sector* below), and *Skip for
152
+ now* is fine. Then it sets up the scanner in one click, you sign into LinkedIn yourself
153
+ in a Chrome window, and then it scans. Needs Google Chrome. The Mac app brings its own
154
+ Python; with `npx six-degrees` the page uses yours, or sets up a private one with a
155
+ click. It checks and says what's missing. The app marks this *Recommended* because
156
+ it's the only way to Degrees and Outlink. Read the warning above first.
156
157
  - **Import my LinkedIn CSV**: LinkedIn's official export, read on your machine. On
157
158
  LinkedIn: **Settings & Privacy → Data privacy → Get a copy of your data →
158
159
  Connections**. LinkedIn emails a link in about ten minutes; unzip it and drop
@@ -186,8 +187,8 @@ panel on the left.
186
187
 
187
188
  **Degrees** *(needs a scan or the sample)*. The people two steps away. **Separation**
188
189
  ranks every one of them with every way in: which of your connections knows them, and
189
- how many do. **Orbit**, **Bridge Chains**, **Revolver**, **Pyramid** and **List** draw
190
- the same people differently.
190
+ how many do. **Orbit**, **Bridge Chains**, **Pyramid** and **List** draw the same people
191
+ differently.
191
192
 
192
193
  <img src="docs/img/degrees.png" alt="Degrees → Separation: people two steps away, ranked, each with the connection who can introduce you" width="100%">
193
194
 
@@ -197,13 +198,16 @@ InMaps:
197
198
  where your connections at one know people at another.
198
199
  - **Industries**: a card per industry.
199
200
  - **Companies**: pick one to see its people level by level, up to the top.
200
- - **Scores**: every scanned company's score, which you can change.
201
201
 
202
202
  Click a company for its analyzer: who you know there, who you can reach, the warmest way
203
203
  in, and its most powerful people.
204
204
 
205
205
  <img src="docs/img/paths.png" alt="Paths → Map with the company analyzer open: companies grouped by industry, and one company's people by level and ways in" width="100%">
206
206
 
207
+ **Scores.** How a power score is worked out, and the three things you can change about
208
+ it, in one place: your field (the sectors you work in), how tiers are graded (on your
209
+ network's curve or the fixed scale), and every scanned company's score.
210
+
207
211
  **Outlink** *(needs a scan)*. Getting introduced, as a game. Each mapped connection's
208
212
  circle offers its best five people at a time; mark invites as sent to fill the ring and
209
213
  unlock the next five. It also shows the next best moves, levels and points (from
@@ -216,20 +220,28 @@ lock, and a **Paused** list you can carry on from.
216
220
 
217
221
  ```
218
222
  power = title × (0.45 + 0.055 × company score) + reach bonus + bridge boost
219
- tiers: S ≥ 7.5 A ≥ 5.5 B ≥ 4.0 C ≥ 2.5 D < 2.5
223
+ tiers, on your network's curve (the default): your top 3% S, then A to 15%, B to 40%, C to 70%
224
+ tiers, on the fixed scale: S ≥ 7.5 A ≥ 5.5 B ≥ 4.0 C ≥ 2.5 D < 2.5
220
225
  ```
221
226
 
222
- - **Title (1–10)** comes from someone's current role in their headline, with former
223
- roles at 70%; current students are capped.
224
- - **Company score (1–10)** is the one you set (Paths → Scores) if there is one. Otherwise
227
+ - **Title (1–10)** comes from someone's roles in their headline, with former roles at
228
+ 70%; current students are capped. Academics have their own ladder (an assistant
229
+ professor 5 up to a dean 9), and so do government and the services (a city
230
+ councilmember or a colonel 7.5 up to a senator or a four-star general 10), read only
231
+ where a title is written. An audience of their own counts like a title (100K+
232
+ followers 6.5, 1M+ 7.5, 10M+ 9), and a title it can't read counts as an individual
233
+ contributor's (4).
234
+ - **Company score (1–10)** is the one you set (the Scores tab) if there is one. Otherwise
225
235
  it comes from a built-in list of well-known companies, or from how many of your people
226
236
  work there. The built-in list is the same for everyone and follows one rule: only
227
237
  companies most US professionals would recognise (household names, the largest companies,
228
238
  top investment, consulting, law and accounting firms, frontier AI labs, top universities),
229
- scored 7 to 10. Anything else is estimated from your network. If you scanned with an
230
- earlier version, Paths → Scores offers once to keep its old scores for the companies in
239
+ scored 7 to 10. Anything else is estimated from your network: a company it doesn't
240
+ know counts as 5, the middle of the scale, a little more when several of your people
241
+ work there. If you scanned with an
242
+ earlier version, the Scores tab offers once to keep its old scores for the companies in
231
243
  your network whose score changed.
232
- - **Your sector (Settings, optional):** pick up to three sectors you work in, and companies
244
+ - **Your sector (Scores, optional):** pick up to three sectors you work in, and companies
233
245
  in them get +1 ("lean") or +2 ("strong") on that score, once, never above 10 and never on
234
246
  a score you set. A pick is one of twelve broad industries or a narrower sector from a
235
247
  built-in list of about fifty (Dental, Real Estate, Software & SaaS…). A sector matches by a
@@ -237,19 +249,26 @@ tiers: S ≥ 7.5 A ≥ 5.5 B ≥ 4.0 C ≥ 2.5 D < 2.5
237
249
  people you know there, where a job every kind of company has (recruiter, accountant,
238
250
  software engineer) doesn't count. An industry includes its sectors, and a company's one
239
251
  industry when the known list or the company's name gives it, not when only its people's
240
- job titles do. Settings suggests the sectors your network is in and shows what would
241
- change before you save.
252
+ job titles do. Scores suggests the sectors your network is in and shows what would
253
+ change before you save. The Scan page asks for it once, before your first scan, so your
254
+ first scores already use it; you can skip it and pick later.
242
255
  - Multiplying means seniority counts for more at a bigger company. A VP at a company
243
- scored 10 gets 9.0; a founder at an unknown company, 6.7.
256
+ scored 10 gets 9.0; a founder at an unknown company, 7.3.
244
257
  - **Reach bonus (up to 1.5)**: investor, YC, an audience in the millions, the top award
245
258
  of any field (a Nobel, a Pulitzer, an Oscar, an Olympic medal…). It counts half
246
259
  at an unknown company, because headlines are self-written (your sector doesn't change
247
260
  that).
248
- - **Bridge boost (up to 1)**: someone whose mapped circle is unusually strong.
261
+ - **Bridge boost (up to 2)**: someone whose mapped circle is unusually strong: a high
262
+ share of it at A or S (up to +1), or many people there (+1 for every 25, up to +2).
263
+ - **Tiers (Scores):** graded on your own network's curve by default, so any network has a
264
+ top: your top 3% of connections are S, the next 12% A, the next 25% B and the next 30% C.
265
+ The curve only lifts, so a network full of well-known companies keeps its tiers, and it
266
+ never lifts anyone under 4 into S or A. People tied at a line all come in or all stay out.
267
+ Choose the fixed scale instead for the same lines as everyone else.
249
268
 
250
269
  Scanned and sample people show the working ("VP / Partner / GM (9) · Adobe (8/10) · +0.7
251
270
  strong circle"). A CSV import shows the score only, and uses the built-in company list
252
- rather than your own scores or sectors; the sample network keeps its own. The model is
271
+ rather than your own scores or sectors, graded on its own curve; the sample network keeps its own. The model is
253
272
  [`lib/scoring.js`](lib/scoring.js), explained in
254
273
  [`docs/brain/SCORING.md`](docs/brain/SCORING.md).
255
274
 
@@ -262,8 +281,10 @@ It estimates **network position**, not what anyone is worth as a person.
262
281
  - A CSV import is read on your machine and never added to your network. It's held only
263
282
  in the app window's own storage, and you import it again next time.
264
283
  - The app contacts only these, and only when you act:
265
- - **LinkedIn**, while you scan. Also, until a profile photo has been saved to your
266
- computer, the app shows it straight from LinkedIn's image server.
284
+ - **LinkedIn**, while you scan. Each profile photo is saved on your computer as the
285
+ scan reads it, and the app shows photos only from there, so looking at your network
286
+ never contacts LinkedIn. (Photos an older version kept as links to LinkedIn show
287
+ initials until the next scan, or *Save photos* on the Scan page, saves them.)
267
288
  - Only without the Mac app (which carries the scanner's Python and add-ons inside it),
268
289
  once, when you set the scanner up: **PyPI** (the Python package library) for the
269
290
  scanner's add-ons, and, if the computer has no Python the scanner can use, **GitHub**
@@ -99,6 +99,14 @@ This app is designed to run **on your own machine, against your own network**.
99
99
  - Values stored in the database are treated as untrusted text and escaped
100
100
  before rendering. Do not reintroduce `innerHTML` (including d3's `.html()`)
101
101
  for anything data-bearing.
102
+ - **Profile photos come from this computer only.** A page shows a photo only
103
+ from a file saved in the data folder (`/avatars/<name>`, `lib/photos.js`),
104
+ never from a link, and every page carries
105
+ `Content-Security-Policy: img-src 'self' data: blob:`, so the browser won't
106
+ load a picture from anywhere else. The scanner fetches photos only from
107
+ LinkedIn's image servers (`*.licdn.com`, over https): while it scans, and
108
+ once each for links older versions stored, which a crafted import could also
109
+ carry.
102
110
  - Do not bind this app to `0.0.0.0` or expose it through a tunnel.
103
111
 
104
112
  ## Your data
@@ -108,6 +116,8 @@ Everything stays local:
108
116
  - A CSV import is parsed in the browser and held for that tab only. It is never
109
117
  uploaded and never written to a database.
110
118
  - Scanned data and cached avatars are written to your machine and are gitignored.
119
+ The app shows photos only from those files, so looking at your network never
120
+ contacts LinkedIn.
111
121
  - There is no telemetry, no analytics, and no crash reporting.
112
122
 
113
123
  If you run the scanner, `chrome-profile/` in the data directory holds a live
@@ -1,6 +1,6 @@
1
1
  import { legacyOffer, answerLegacyOffer, parseLegacyAnswer } from '../../../../lib/legacy-offer';
2
2
 
3
- // Paths → Scores' one-time offer to keep the curated list's old scores as your
3
+ // the Scores tab's one-time offer to keep the curated list's old scores as your
4
4
  // own, after the list was made neutral (lib/legacy-offer.js). GET says what is
5
5
  // offered: {offer: null} or {offer: {companies}}. POST answers it:
6
6
  // {keep: [names]} keeps those old scores, {keep: []} is No thanks, and either
@@ -6,7 +6,7 @@ import { industryByKey } from '../../../lib/companies';
6
6
  // Every company in your network with the score it gets and where that score
7
7
  // comes from — and the one place to set your own. Setting or clearing a score
8
8
  // rescores everyone, since a person's power depends on their company's.
9
- // Industries and the sector lean (Settings → Your sector) come from the same
9
+ // Industries and the sector lean (Scores → Your sector) come from the same
10
10
  // read rescoring uses (lib/rpc.js readForScoring), so a score here is the one
11
11
  // people carry.
12
12
 
@@ -1,6 +1,7 @@
1
1
  import { db as supabase } from '../../../lib/db';
2
- import { uniqueByProfile, splitAlreadyConnected, toIsoDate, refreshNotifications } from '../../../lib/ingest';
2
+ import { uniqueByProfile, splitAlreadyConnected, toIsoDate, refreshNotifications, mutualCountOf } from '../../../lib/ingest';
3
3
  import { promoteToFirstDegree } from '../../../lib/promote';
4
+ import { localPhoto } from '../../../lib/photos';
4
5
 
5
6
  function parseHeadline(h) {
6
7
  if (!h) return { role: '', company: '' };
@@ -29,8 +30,14 @@ export async function POST(request) {
29
30
  company: (company || (type === 'company' ? companyName : '') || '').substring(0, 100),
30
31
  role: role.substring(0, 100),
31
32
  profile_url: c.profileUrl?.trim(),
32
- profile_image_url: c.imageUrl || null,
33
+ // Only a photo already saved on this computer. The scanner sends
34
+ // LinkedIn's link here, then saves the picture and attaches its file
35
+ // through /api/update-images; kept, the link would replace a saved
36
+ // photo on every rescan, and the app never shows one (lib/photos.js).
37
+ profile_image_url: localPhoto(c.imageUrl),
33
38
  connected_date: toIsoDate(c.connectedDate),
39
+ // LinkedIn's own count, read off a circle's result card; nothing else sends one.
40
+ mutual_count: degree === 2 ? mutualCountOf(c.mutualCount) : null,
34
41
  };
35
42
  if (degree === 2 && bridgeId) {
36
43
  rec.source_connection_id = bridgeId;
@@ -164,6 +171,20 @@ export async function POST(request) {
164
171
  return Response.json({ error: insertError.message }, { status: 500 });
165
172
  }
166
173
 
174
+ // How many mutual connections you share with someone is one fact about
175
+ // the two of you, whichever bridge's circle turned them up. Every copy of
176
+ // them gets the newest count read (a re-scan brings it up to date), and a
177
+ // scan that didn't read one leaves the count alone.
178
+ if (degree === 2) {
179
+ for (const rec of records) {
180
+ if (rec.mutual_count == null) continue;
181
+ let q = supabase.from('linkedin_connections').update({ mutual_count: rec.mutual_count })
182
+ .eq('profile_url', rec.profile_url).eq('degree', 2);
183
+ if (userId) q = q.eq('user_id', userId);
184
+ await q;
185
+ }
186
+ }
187
+
167
188
  // Image updates handled separately via /api/update-images (avoids timeout)
168
189
 
169
190
  // Rescore everyone (lib/scoring.js): a new circle changes company headcounts