six-degrees 0.4.11 → 0.5.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 (375) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +3 -3
  3. package/.next/standalone/.next/prerender-manifest.json +9 -9
  4. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  5. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  10. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  12. package/.next/standalone/.next/server/app/_not-found.rsc +12 -12
  13. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
  14. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +11 -11
  15. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  16. package/.next/standalone/.next/server/app/api/admin-delete/route.js +1 -1
  17. package/.next/standalone/.next/server/app/api/admin-delete/route.js.nft.json +1 -1
  18. package/.next/standalone/.next/server/app/api/admin-update/route.js +1 -1
  19. package/.next/standalone/.next/server/app/api/admin-update/route.js.nft.json +1 -1
  20. package/.next/standalone/.next/server/app/api/bridges/route.js +1 -1
  21. package/.next/standalone/.next/server/app/api/bridges/route.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/api/bulk-import/route.js +1 -1
  23. package/.next/standalone/.next/server/app/api/bulk-import/route.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/api/company-scores/legacy/route.js +1 -1
  25. package/.next/standalone/.next/server/app/api/company-scores/legacy/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/api/company-scores/route.js +1 -1
  27. package/.next/standalone/.next/server/app/api/company-scores/route.js.nft.json +1 -1
  28. package/.next/standalone/.next/server/app/api/connections/route.js +1 -1
  29. package/.next/standalone/.next/server/app/api/connections/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/data/export/route.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/api/data/import/route.js.nft.json +1 -1
  32. package/.next/standalone/.next/server/app/api/data/restart/route.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/api/data/reveal/route.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/api/data/route.js.nft.json +1 -1
  35. package/.next/standalone/.next/server/app/api/delete-cluster/route.js +1 -1
  36. package/.next/standalone/.next/server/app/api/delete-cluster/route.js.nft.json +1 -1
  37. package/.next/standalone/.next/server/app/api/ingest/route.js +1 -1
  38. package/.next/standalone/.next/server/app/api/ingest/route.js.nft.json +1 -1
  39. package/.next/standalone/.next/server/app/api/network/route.js +1 -1
  40. package/.next/standalone/.next/server/app/api/network/route.js.nft.json +1 -1
  41. package/.next/standalone/.next/server/app/api/notifications/route.js +1 -1
  42. package/.next/standalone/.next/server/app/api/notifications/route.js.nft.json +1 -1
  43. package/.next/standalone/.next/server/app/api/outreach/route.js +1 -1
  44. package/.next/standalone/.next/server/app/api/outreach/route.js.nft.json +1 -1
  45. package/.next/standalone/.next/server/app/api/queue/route.js +1 -1
  46. package/.next/standalone/.next/server/app/api/queue/route.js.nft.json +1 -1
  47. package/.next/standalone/.next/server/app/api/scraper/route.js +3 -2
  48. package/.next/standalone/.next/server/app/api/scraper/route.js.nft.json +1 -1
  49. package/.next/standalone/.next/server/app/api/settings/route.js +1 -1
  50. package/.next/standalone/.next/server/app/api/settings/route.js.nft.json +1 -1
  51. package/.next/standalone/.next/server/app/api/settings/sector-preview/route.js +1 -1
  52. package/.next/standalone/.next/server/app/api/settings/sector-preview/route.js.nft.json +1 -1
  53. package/.next/standalone/.next/server/app/api/settings/sector-suggestions/route.js +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/social/crm/route.js.nft.json +1 -1
  58. package/.next/standalone/.next/server/app/api/social/messages/route.js.nft.json +1 -1
  59. package/.next/standalone/.next/server/app/api/social/route.js +3 -3
  60. package/.next/standalone/.next/server/app/api/social/route.js.nft.json +1 -1
  61. package/.next/standalone/.next/server/app/api/unlock/route.js +1 -1
  62. package/.next/standalone/.next/server/app/api/unlock/route.js.nft.json +1 -1
  63. package/.next/standalone/.next/server/app/api/update/route.js.nft.json +1 -1
  64. package/.next/standalone/.next/server/app/api/update-images/route.js +1 -1
  65. package/.next/standalone/.next/server/app/api/update-images/route.js.nft.json +1 -1
  66. package/.next/standalone/.next/server/app/api/users/route.js +1 -1
  67. package/.next/standalone/.next/server/app/api/users/route.js.nft.json +1 -1
  68. package/.next/standalone/.next/server/app/avatars/[file]/route.js.nft.json +1 -1
  69. package/.next/standalone/.next/server/app/import/page.js.nft.json +1 -1
  70. package/.next/standalone/.next/server/app/import/page_client-reference-manifest.js +1 -1
  71. package/.next/standalone/.next/server/app/import.html +1 -1
  72. package/.next/standalone/.next/server/app/import.rsc +14 -14
  73. package/.next/standalone/.next/server/app/import.segments/_full.segment.rsc +14 -14
  74. package/.next/standalone/.next/server/app/import.segments/_tree.segment.rsc +1 -1
  75. package/.next/standalone/.next/server/app/import.segments/import/__PAGE__.segment.rsc +13 -13
  76. package/.next/standalone/.next/server/app/index.html +1 -1
  77. package/.next/standalone/.next/server/app/index.rsc +14 -14
  78. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +13 -13
  79. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +14 -14
  80. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  81. package/.next/standalone/.next/server/app/launch/page.js.nft.json +1 -1
  82. package/.next/standalone/.next/server/app/launch/page_client-reference-manifest.js +1 -1
  83. package/.next/standalone/.next/server/app/launch.html +2 -2
  84. package/.next/standalone/.next/server/app/launch.rsc +14 -14
  85. package/.next/standalone/.next/server/app/launch.segments/_full.segment.rsc +14 -14
  86. package/.next/standalone/.next/server/app/launch.segments/_tree.segment.rsc +1 -1
  87. package/.next/standalone/.next/server/app/launch.segments/launch/__PAGE__.segment.rsc +13 -13
  88. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  89. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  90. package/.next/standalone/.next/server/app/paths/page.js.nft.json +1 -1
  91. package/.next/standalone/.next/server/app/paths/page_client-reference-manifest.js +1 -1
  92. package/.next/standalone/.next/server/app/paths.html +1 -1
  93. package/.next/standalone/.next/server/app/paths.rsc +14 -14
  94. package/.next/standalone/.next/server/app/paths.segments/_full.segment.rsc +14 -14
  95. package/.next/standalone/.next/server/app/paths.segments/_tree.segment.rsc +1 -1
  96. package/.next/standalone/.next/server/app/paths.segments/paths/__PAGE__.segment.rsc +13 -13
  97. package/.next/standalone/.next/server/app/profile/page.js.nft.json +1 -1
  98. package/.next/standalone/.next/server/app/profile/page_client-reference-manifest.js +1 -1
  99. package/.next/standalone/.next/server/app/profile.html +1 -1
  100. package/.next/standalone/.next/server/app/profile.rsc +14 -14
  101. package/.next/standalone/.next/server/app/profile.segments/_full.segment.rsc +14 -14
  102. package/.next/standalone/.next/server/app/profile.segments/_tree.segment.rsc +1 -1
  103. package/.next/standalone/.next/server/app/profile.segments/profile/__PAGE__.segment.rsc +13 -13
  104. package/.next/standalone/.next/server/app/queue/page.js.nft.json +1 -1
  105. package/.next/standalone/.next/server/app/queue/page_client-reference-manifest.js +1 -1
  106. package/.next/standalone/.next/server/app/queue.html +1 -1
  107. package/.next/standalone/.next/server/app/queue.rsc +14 -14
  108. package/.next/standalone/.next/server/app/queue.segments/_full.segment.rsc +14 -14
  109. package/.next/standalone/.next/server/app/queue.segments/_tree.segment.rsc +1 -1
  110. package/.next/standalone/.next/server/app/queue.segments/queue/__PAGE__.segment.rsc +13 -13
  111. package/.next/standalone/.next/server/app/scores/page.js.nft.json +1 -1
  112. package/.next/standalone/.next/server/app/scores/page_client-reference-manifest.js +1 -1
  113. package/.next/standalone/.next/server/app/scores.html +1 -1
  114. package/.next/standalone/.next/server/app/scores.rsc +14 -14
  115. package/.next/standalone/.next/server/app/scores.segments/_full.segment.rsc +14 -14
  116. package/.next/standalone/.next/server/app/scores.segments/_tree.segment.rsc +1 -1
  117. package/.next/standalone/.next/server/app/scores.segments/scores/__PAGE__.segment.rsc +13 -13
  118. package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
  119. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  120. package/.next/standalone/.next/server/app/settings.html +1 -1
  121. package/.next/standalone/.next/server/app/settings.rsc +14 -14
  122. package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +14 -14
  123. package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  124. package/.next/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +13 -13
  125. package/.next/standalone/.next/server/app/setup/page.js.nft.json +1 -1
  126. package/.next/standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  127. package/.next/standalone/.next/server/app/setup.html +1 -1
  128. package/.next/standalone/.next/server/app/setup.rsc +14 -14
  129. package/.next/standalone/.next/server/app/setup.segments/_full.segment.rsc +14 -14
  130. package/.next/standalone/.next/server/app/setup.segments/_tree.segment.rsc +1 -1
  131. package/.next/standalone/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +13 -13
  132. package/.next/standalone/.next/server/app/social/page.js.nft.json +1 -1
  133. package/.next/standalone/.next/server/app/social/page_client-reference-manifest.js +1 -1
  134. package/.next/standalone/.next/server/app/social.html +1 -1
  135. package/.next/standalone/.next/server/app/social.rsc +14 -14
  136. package/.next/standalone/.next/server/app/social.segments/_full.segment.rsc +14 -14
  137. package/.next/standalone/.next/server/app/social.segments/_tree.segment.rsc +1 -1
  138. package/.next/standalone/.next/server/app/social.segments/social/__PAGE__.segment.rsc +13 -13
  139. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0bat8nx._.js → [root-of-the-server]__13dx4sd._.js} +2 -2
  140. package/.next/standalone/.next/server/chunks/[root-of-the-server]__15wc9e-._.js +3 -0
  141. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1kbl21f._.js +1 -1
  142. package/.next/standalone/.next/server/chunks/[root-of-the-server]__20rwfdw._.js +8 -0
  143. package/.next/standalone/.next/server/chunks/_072jl0y._.js +1 -1
  144. package/.next/standalone/.next/server/chunks/_1_fynia._.js +7 -7
  145. package/.next/standalone/.next/server/chunks/_1itd1o_._.js +1 -1
  146. package/.next/standalone/.next/server/chunks/_1iwkh8t._.js +1 -1
  147. package/.next/standalone/.next/server/chunks/lib_0851sk0._.js +8 -0
  148. package/.next/standalone/.next/server/chunks/lib_1q7p2ro._.js +8 -0
  149. package/.next/standalone/.next/server/chunks/lib_1r6l86l._.js +8 -0
  150. package/.next/standalone/.next/server/chunks/lib_db-client_15le7cw.js +8 -8
  151. package/.next/standalone/.next/server/chunks/lib_rpc_04s8mzr.js +3 -0
  152. package/.next/standalone/.next/server/chunks/lib_rpc_053z7as.js +3 -0
  153. package/.next/standalone/.next/server/chunks/lib_rpc_0b_-2te.js +3 -0
  154. package/.next/standalone/.next/server/chunks/lib_rpc_0dhbxdm.js +3 -0
  155. package/.next/standalone/.next/server/chunks/lib_rpc_0dxlk31.js +3 -0
  156. package/.next/standalone/.next/server/chunks/lib_rpc_0f8b-qc.js +3 -0
  157. package/.next/standalone/.next/server/chunks/lib_rpc_0pzie7_.js +3 -0
  158. package/.next/standalone/.next/server/chunks/lib_rpc_0r76fq_.js +3 -0
  159. package/.next/standalone/.next/server/chunks/lib_rpc_0ut7pjp.js +3 -0
  160. package/.next/standalone/.next/server/chunks/lib_rpc_15zyqaz.js +3 -0
  161. package/.next/standalone/.next/server/chunks/lib_rpc_18zpjtq.js +3 -0
  162. package/.next/standalone/.next/server/chunks/lib_rpc_1a8xkiz.js +3 -0
  163. package/.next/standalone/.next/server/chunks/lib_rpc_1e_55xo.js +3 -0
  164. package/.next/standalone/.next/server/chunks/lib_rpc_1oxfd1_.js +3 -0
  165. package/.next/standalone/.next/server/chunks/lib_rpc_1s0lod0.js +3 -0
  166. package/.next/standalone/.next/server/chunks/lib_scoring_1-e4ur0.js +1 -1
  167. package/.next/standalone/.next/server/chunks/ssr/_01kacen._.js +3 -0
  168. package/.next/standalone/.next/server/chunks/ssr/_03l7vge._.js +3 -0
  169. package/.next/standalone/.next/server/chunks/ssr/{_1ap1tu_._.js → _0gtv9jb._.js} +2 -2
  170. package/.next/standalone/.next/server/chunks/ssr/_0jdkqgi._.js +3 -0
  171. package/.next/standalone/.next/server/chunks/ssr/_0xi-fbs._.js +3 -0
  172. package/.next/standalone/.next/server/chunks/ssr/_0xmwmfv._.js +3 -0
  173. package/.next/standalone/.next/server/chunks/ssr/_1-b9hj7._.js +9 -0
  174. package/.next/standalone/.next/server/chunks/ssr/_112ewem._.js +3 -0
  175. package/.next/standalone/.next/server/chunks/ssr/_16ab63q._.js +3 -0
  176. package/.next/standalone/.next/server/chunks/ssr/_1fxm0-s._.js +3 -0
  177. package/.next/standalone/.next/server/chunks/ssr/_1ra1d3r._.js +9 -0
  178. package/.next/standalone/.next/server/chunks/ssr/app_141w189._.js +3 -0
  179. package/.next/standalone/.next/server/chunks/ssr/app_components_ui_0pdmz2z.js +3 -0
  180. package/.next/standalone/.next/server/chunks/ssr/app_page_1fazqbf.js +22 -10
  181. package/.next/standalone/.next/server/chunks/ssr/app_paths_page_1ol90m7.js +2 -2
  182. package/.next/standalone/.next/server/chunks/ssr/app_profile_page_0u3-l5y.js +1 -1
  183. package/.next/standalone/.next/server/chunks/ssr/app_queue_page_0c6znd6.js +6 -5
  184. package/.next/standalone/.next/server/chunks/ssr/app_settings_page_1f8mjj_.js +1 -1
  185. package/.next/standalone/.next/server/chunks/ssr/app_setup_page_1-282zx.js +19 -3
  186. package/.next/standalone/.next/server/chunks/ssr/app_social_page_0h7zxda.js +1 -2
  187. package/.next/standalone/.next/server/chunks/ssr/lib_0i8v-s3._.js +1 -1
  188. package/.next/standalone/.next/server/chunks/ssr/lib_13rapwj._.js +3 -0
  189. package/.next/standalone/.next/server/chunks/ssr/lib_galaxy-lab_108_lu-.js +1 -1
  190. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  191. package/.next/standalone/.next/server/middleware-manifest.json +5 -5
  192. package/.next/standalone/.next/server/pages/404.html +1 -1
  193. package/.next/standalone/.next/server/pages/500.html +1 -1
  194. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  195. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  196. package/.next/standalone/.next/static/chunks/03bziijw5srol.js +1 -0
  197. package/.next/standalone/.next/static/chunks/0bgq8wmopl_ig.js +7 -0
  198. package/.next/standalone/.next/static/chunks/0ezus6p2eb-vg.js +1 -0
  199. package/.next/standalone/.next/static/chunks/0g_fy2034bp0x.js +34 -0
  200. package/.next/standalone/.next/static/chunks/0q5dru4q6gxl5.js +22 -0
  201. package/.next/standalone/.next/static/chunks/0w-byiwb2zax8.js +2 -0
  202. package/.next/standalone/.next/static/chunks/1g7jcovdejc9-.js +1 -0
  203. package/.next/standalone/.next/static/chunks/1i51yylxdzht1.js +1 -0
  204. package/.next/standalone/.next/static/chunks/1zf8swaasjf1e.js +43 -0
  205. package/.next/standalone/.next/static/chunks/2rqtpccruavf2.js +1 -0
  206. package/.next/standalone/.next/static/chunks/2wgz9ietkqqe6.js +1 -0
  207. package/.next/standalone/.next/static/chunks/30x3oq_st7a5r.js +1 -0
  208. package/.next/standalone/.next/static/chunks/355ryio1b7sm1.js +1 -0
  209. package/.next/standalone/.next/static/chunks/3ap5hgma7n0o7.js +1 -0
  210. package/.next/standalone/.next/static/chunks/3fci6qi39-1n5.js +1 -0
  211. package/.next/standalone/.next/static/chunks/{24tvdun1cb3g1.js → 3sowbvbaj1s6n.js} +1 -1
  212. package/.next/standalone/CHANGELOG.md +187 -0
  213. package/.next/standalone/app/api/ingest/route.js +40 -1
  214. package/.next/standalone/app/api/scraper/route.js +7 -1
  215. package/.next/standalone/app/api/settings/sector-preview/route.js +2 -1
  216. package/.next/standalone/app/components/AppTabs.js +59 -0
  217. package/.next/standalone/app/components/ChainView.js +303 -89
  218. package/.next/standalone/app/components/CirclePanel.js +162 -0
  219. package/.next/standalone/app/components/CompanyScores.js +2 -2
  220. package/.next/standalone/app/components/FieldStep.js +4 -4
  221. package/.next/standalone/app/components/FilterPanel.js +121 -183
  222. package/.next/standalone/app/components/ForceGraph.js +41 -3
  223. package/.next/standalone/app/components/GalaxyLab.js +26 -31
  224. package/.next/standalone/app/components/LegacyScoresCard.js +2 -2
  225. package/.next/standalone/app/components/MapControls.js +154 -0
  226. package/.next/standalone/app/components/NoteDetail.js +118 -0
  227. package/.next/standalone/app/components/PathsAnalyzer.js +147 -110
  228. package/.next/standalone/app/components/PeopleMap.js +308 -0
  229. package/.next/standalone/app/components/ScanRadar.js +129 -0
  230. package/.next/standalone/app/components/ScanStatusBar.js +71 -27
  231. package/.next/standalone/app/components/SeparationView.js +626 -118
  232. package/.next/standalone/app/components/Sidebar.js +28 -2
  233. package/.next/standalone/app/components/settings/NetworkHealthSection.js +1 -1
  234. package/.next/standalone/app/components/settings/SectorSection.js +2 -2
  235. package/.next/standalone/app/components/settings/TierSection.js +1 -1
  236. package/.next/standalone/app/components/settings/TitleSection.js +149 -0
  237. package/.next/standalone/app/components/views.js +15 -14
  238. package/.next/standalone/app/page.js +89 -156
  239. package/.next/standalone/app/paths/page.js +39 -27
  240. package/.next/standalone/app/profile/page.js +33 -5
  241. package/.next/standalone/app/queue/page.js +56 -34
  242. package/.next/standalone/app/scores/page.js +16 -66
  243. package/.next/standalone/app/settings/page.js +27 -13
  244. package/.next/standalone/app/setup/page.js +298 -205
  245. package/.next/standalone/app/social/SocialHub.js +374 -0
  246. package/.next/standalone/app/social/page.js +10 -362
  247. package/.next/standalone/lib/chain-layout.js +105 -35
  248. package/.next/standalone/lib/degrees.js +0 -6
  249. package/.next/standalone/lib/dot-rings.js +25 -0
  250. package/.next/standalone/lib/galaxy-lab.js +65 -6
  251. package/.next/standalone/lib/ingest.js +2 -0
  252. package/.next/standalone/lib/island.js +40 -0
  253. package/.next/standalone/lib/linkedin-limits.js +6 -2
  254. package/.next/standalone/lib/map-heat.js +20 -0
  255. package/.next/standalone/lib/network-health.js +1 -1
  256. package/.next/standalone/lib/notifications.js +121 -0
  257. package/.next/standalone/lib/people-map.js +82 -0
  258. package/.next/standalone/lib/rarity.js +45 -3
  259. package/.next/standalone/lib/reach.js +7 -6
  260. package/.next/standalone/lib/rpc.js +15 -4
  261. package/.next/standalone/lib/scan-pace.js +46 -0
  262. package/.next/standalone/lib/scoring.js +39 -8
  263. package/.next/standalone/lib/scraper-client.js +19 -6
  264. package/.next/standalone/lib/sector-focus.js +4 -4
  265. package/.next/standalone/lib/separation.js +137 -10
  266. package/.next/standalone/lib/settings-effects.js +20 -11
  267. package/.next/standalone/lib/settings.js +3 -0
  268. package/.next/standalone/lib/tier-grid.js +99 -0
  269. package/.next/standalone/lib/title-ranking.js +83 -0
  270. package/.next/standalone/package-lock.json +2 -2
  271. package/.next/standalone/package.json +1 -1
  272. package/.next/standalone/scripts/scrape.py +51 -13
  273. package/.next/static/chunks/03bziijw5srol.js +1 -0
  274. package/.next/static/chunks/0bgq8wmopl_ig.js +7 -0
  275. package/.next/static/chunks/0ezus6p2eb-vg.js +1 -0
  276. package/.next/static/chunks/0g_fy2034bp0x.js +34 -0
  277. package/.next/static/chunks/0q5dru4q6gxl5.js +22 -0
  278. package/.next/static/chunks/0w-byiwb2zax8.js +2 -0
  279. package/.next/static/chunks/1g7jcovdejc9-.js +1 -0
  280. package/.next/static/chunks/1i51yylxdzht1.js +1 -0
  281. package/.next/static/chunks/1zf8swaasjf1e.js +43 -0
  282. package/.next/static/chunks/2rqtpccruavf2.js +1 -0
  283. package/.next/static/chunks/2wgz9ietkqqe6.js +1 -0
  284. package/.next/static/chunks/30x3oq_st7a5r.js +1 -0
  285. package/.next/static/chunks/355ryio1b7sm1.js +1 -0
  286. package/.next/static/chunks/3ap5hgma7n0o7.js +1 -0
  287. package/.next/static/chunks/3fci6qi39-1n5.js +1 -0
  288. package/.next/static/chunks/{24tvdun1cb3g1.js → 3sowbvbaj1s6n.js} +1 -1
  289. package/CHANGELOG.md +187 -0
  290. package/lib/chain-layout.js +105 -35
  291. package/lib/degrees.js +0 -6
  292. package/lib/dot-rings.js +25 -0
  293. package/lib/galaxy-lab.js +65 -6
  294. package/lib/ingest.js +2 -0
  295. package/lib/island.js +40 -0
  296. package/lib/linkedin-limits.js +6 -2
  297. package/lib/map-heat.js +20 -0
  298. package/lib/network-health.js +1 -1
  299. package/lib/notifications.js +121 -0
  300. package/lib/people-map.js +82 -0
  301. package/lib/rarity.js +45 -3
  302. package/lib/reach.js +7 -6
  303. package/lib/rpc.js +15 -4
  304. package/lib/scan-pace.js +46 -0
  305. package/lib/scoring.js +39 -8
  306. package/lib/scraper-client.js +19 -6
  307. package/lib/sector-focus.js +4 -4
  308. package/lib/separation.js +137 -10
  309. package/lib/settings-effects.js +20 -11
  310. package/lib/settings.js +3 -0
  311. package/lib/tier-grid.js +99 -0
  312. package/lib/title-ranking.js +83 -0
  313. package/package.json +1 -1
  314. package/scripts/scrape.py +51 -13
  315. package/.next/standalone/.next/server/chunks/[root-of-the-server]__17hjtzl._.js +0 -8
  316. package/.next/standalone/.next/server/chunks/[root-of-the-server]__20tmem7._.js +0 -3
  317. package/.next/standalone/.next/server/chunks/lib_rpc_03i8xef.js +0 -3
  318. package/.next/standalone/.next/server/chunks/lib_rpc_05gt5ya.js +0 -3
  319. package/.next/standalone/.next/server/chunks/lib_rpc_08fc3rp.js +0 -3
  320. package/.next/standalone/.next/server/chunks/lib_rpc_08r2t_q.js +0 -3
  321. package/.next/standalone/.next/server/chunks/lib_rpc_0btpv1t.js +0 -3
  322. package/.next/standalone/.next/server/chunks/lib_rpc_0c9d9ti.js +0 -8
  323. package/.next/standalone/.next/server/chunks/lib_rpc_0cm2ev3.js +0 -3
  324. package/.next/standalone/.next/server/chunks/lib_rpc_0iovswz.js +0 -3
  325. package/.next/standalone/.next/server/chunks/lib_rpc_0is8flp.js +0 -3
  326. package/.next/standalone/.next/server/chunks/lib_rpc_0v8ajtd.js +0 -3
  327. package/.next/standalone/.next/server/chunks/lib_rpc_0xgmvvt.js +0 -3
  328. package/.next/standalone/.next/server/chunks/lib_rpc_144mzbf.js +0 -3
  329. package/.next/standalone/.next/server/chunks/lib_rpc_1bggi0n.js +0 -3
  330. package/.next/standalone/.next/server/chunks/lib_rpc_1dkcu9f.js +0 -3
  331. package/.next/standalone/.next/server/chunks/lib_rpc_1o0jb6w.js +0 -3
  332. package/.next/standalone/.next/server/chunks/ssr/_0-85h6g._.js +0 -3
  333. package/.next/standalone/.next/server/chunks/ssr/_08cfj2b._.js +0 -3
  334. package/.next/standalone/.next/server/chunks/ssr/_0c_y09g._.js +0 -3
  335. package/.next/standalone/.next/server/chunks/ssr/_0j4-lc3._.js +0 -3
  336. package/.next/standalone/.next/server/chunks/ssr/_0l8cxmo._.js +0 -3
  337. package/.next/standalone/.next/server/chunks/ssr/_0xkur4p._.js +0 -3
  338. package/.next/standalone/.next/server/chunks/ssr/_14iv_zy._.js +0 -3
  339. package/.next/standalone/.next/server/chunks/ssr/_15x6q32._.js +0 -3
  340. package/.next/standalone/.next/server/chunks/ssr/_212xw8q._.js +0 -3
  341. package/.next/standalone/.next/server/chunks/ssr/app_components_19c2d9c._.js +0 -3
  342. package/.next/standalone/.next/server/chunks/ssr/app_scores_page_09wepvv.js +0 -3
  343. package/.next/standalone/.next/static/chunks/0a5iadnmt9u9k.js +0 -1
  344. package/.next/standalone/.next/static/chunks/15sjx07xhpn6p.js +0 -1
  345. package/.next/standalone/.next/static/chunks/160wjb73ddwqd.js +0 -6
  346. package/.next/standalone/.next/static/chunks/1a74dky22dxd6.js +0 -1
  347. package/.next/standalone/.next/static/chunks/1c_n0973t07l0.js +0 -2
  348. package/.next/standalone/.next/static/chunks/1e1n0kkz-psdb.js +0 -1
  349. package/.next/standalone/.next/static/chunks/236f0jtp68j_h.js +0 -1
  350. package/.next/standalone/.next/static/chunks/297e1z34yi--z.js +0 -1
  351. package/.next/standalone/.next/static/chunks/2_ak6qjxb6oa5.js +0 -1
  352. package/.next/standalone/.next/static/chunks/2kfhc58df2xyo.js +0 -1
  353. package/.next/standalone/.next/static/chunks/39hr8d-b2ibtw.js +0 -31
  354. package/.next/standalone/.next/static/chunks/3ui4d-uqkqj5d.js +0 -2
  355. package/.next/standalone/.next/static/chunks/3zw8bv7-mc4n6.js +0 -33
  356. package/.next/standalone/app/components/OrbitGraph.js +0 -737
  357. package/.next/static/chunks/0a5iadnmt9u9k.js +0 -1
  358. package/.next/static/chunks/15sjx07xhpn6p.js +0 -1
  359. package/.next/static/chunks/160wjb73ddwqd.js +0 -6
  360. package/.next/static/chunks/1a74dky22dxd6.js +0 -1
  361. package/.next/static/chunks/1c_n0973t07l0.js +0 -2
  362. package/.next/static/chunks/1e1n0kkz-psdb.js +0 -1
  363. package/.next/static/chunks/236f0jtp68j_h.js +0 -1
  364. package/.next/static/chunks/297e1z34yi--z.js +0 -1
  365. package/.next/static/chunks/2_ak6qjxb6oa5.js +0 -1
  366. package/.next/static/chunks/2kfhc58df2xyo.js +0 -1
  367. package/.next/static/chunks/39hr8d-b2ibtw.js +0 -31
  368. package/.next/static/chunks/3ui4d-uqkqj5d.js +0 -2
  369. package/.next/static/chunks/3zw8bv7-mc4n6.js +0 -33
  370. /package/.next/standalone/.next/static/{jqE2D3zWqSGz5su948Azf → I-cj79yE2IZ8taX2dZGp3}/_buildManifest.js +0 -0
  371. /package/.next/standalone/.next/static/{jqE2D3zWqSGz5su948Azf → I-cj79yE2IZ8taX2dZGp3}/_clientMiddlewareManifest.js +0 -0
  372. /package/.next/standalone/.next/static/{jqE2D3zWqSGz5su948Azf → I-cj79yE2IZ8taX2dZGp3}/_ssgManifest.js +0 -0
  373. /package/.next/static/{jqE2D3zWqSGz5su948Azf → I-cj79yE2IZ8taX2dZGp3}/_buildManifest.js +0 -0
  374. /package/.next/static/{jqE2D3zWqSGz5su948Azf → I-cj79yE2IZ8taX2dZGp3}/_clientMiddlewareManifest.js +0 -0
  375. /package/.next/static/{jqE2D3zWqSGz5su948Azf → I-cj79yE2IZ8taX2dZGp3}/_ssgManifest.js +0 -0
@@ -1,371 +1,19 @@
1
1
  'use client';
2
2
 
3
- // Social (experimental): what your own LinkedIn data says about your
4
- // relationships (lib/linkedin-export.js). Two sources, both yours:
5
- // - the export LinkedIn emails you (Settings → Data privacy → Get a copy of
6
- // your data), read here in the browser: full history, no traffic to LinkedIn;
7
- // - an experimental live sync (the scanner's --messages): your messages list,
8
- // read once in your own Chrome, by hand or once a day.
9
- // Kept on this computer: dates, who wrote last and counts, the names of people
10
- // who aren't your connections, and the messages themselves (and the notes sent
11
- // with requests) only if you turn on Keep my messages, in a file of their own
12
- // that switching it off deletes. The CRM (Crm.js) is the main section: everyone
13
- // you've been in touch with, and your own stage, tags, notes and follow-ups.
3
+ // Social is part of Outlink now (Blake, 2026-10-02): the CRM, your LinkedIn
4
+ // export and the messages sit under Outlink → Messages & follow-ups
5
+ // (app/social/SocialHub.js). Old links land there.
14
6
 
15
- import { useEffect, useMemo, useRef, useState } from 'react';
7
+ import { useEffect } from 'react';
16
8
  import Link from 'next/link';
17
- import OnboardingGate from '../components/OnboardingGate';
18
- import { useUser } from '../components/UserProvider';
19
- import { loadNetwork } from '../../lib/network';
20
- import {
21
- readTable, messageStats, careerChapters, postingEffect, invitationSplit, warmthOf, buildConversations, conversationSummary, buildInvitations,
22
- } from '../../lib/linkedin-export';
23
- import { mergeSocial } from '../../lib/galaxy-lab';
24
- import { keyFor } from '../../lib/separation';
25
- import { runScrape, watchScanner, scannerNow } from '../../lib/scraper-client';
26
- import { Body, LINE, FONT } from '../components/ui';
27
- import { IS_DEMO } from '../../lib/demo';
28
- import Crm from './Crm';
29
-
30
- const WARMTH = { warm: ['Warm', '#ff9f43'], cool: ['Cool', '#3498DB'], dormant: ['Dormant', '#8899aa'], never: ['Never messaged', '#556'] };
31
- const FILES = { 'connections.csv': 'first name', 'messages.csv': 'conversation id', 'invitations.csv': 'direction', 'positions.csv': 'company name', 'shares.csv': 'date' };
32
- const day = (t) => (t ? new Date(t).toLocaleDateString(undefined, { day: 'numeric', month: 'short', year: 'numeric' }) : '');
33
- // Messages go to the server in parts of about this many characters: a request
34
- // here can carry 10 MB, and a character can take up to 3 bytes.
35
- const PART_CHARS = 2_500_000;
36
-
37
- /** An import's messages, in parts that each fit in one request. */
38
- async function sendMessages(conversations) {
39
- const parts = [];
40
- let cur = {};
41
- let size = 0;
42
- for (const c of conversations) {
43
- for (const m of c.messages) {
44
- const n = JSON.stringify(m).length + 2;
45
- if (size + n > PART_CHARS && size > 0) { parts.push(cur); cur = {}; size = 0; }
46
- if (!cur[c.id]) { cur[c.id] = { title: c.title || '', messages: [] }; size += c.id.length + (c.title || '').length + 40; }
47
- cur[c.id].messages.push(m);
48
- size += n;
49
- }
50
- }
51
- parts.push(cur);
52
- for (let i = 0; i < parts.length; i++) {
53
- const r = await fetch('/api/social/messages', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ part: i, parts: parts.length, threads: parts[i] }) });
54
- if (!r.ok) throw new Error((await r.json().catch(() => ({}))).error || 'The messages couldn’t be saved.');
55
- }
56
- }
57
-
58
- /** The notes sent with requests, when the messages are kept: they ride in the same file and go with it. */
59
- async function sendInviteNotes(invitations) {
60
- const invites = {};
61
- for (const i of invitations) if (i.note) invites[i.id] = i.note;
62
- const r = await fetch('/api/social/messages', { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ invites }) });
63
- if (!r.ok) throw new Error((await r.json().catch(() => ({}))).error || 'The requests’ notes couldn’t be saved.');
64
- }
65
-
66
- export default function SocialPage() {
67
- return <OnboardingGate><SocialInner /></OnboardingGate>;
68
- }
69
-
70
- function SocialInner() {
71
- const { userId } = useUser();
72
- const [social, setSocial] = useState(undefined);
73
- const [net, setNet] = useState(null);
74
- const [keepEmails, setKeepEmails] = useState(false);
75
- const [note, setNote] = useState(null);
76
- const [busy, setBusy] = useState(false);
77
- const [job, setJob] = useState(() => scannerNow());
78
- const [switching, setSwitching] = useState(false);
79
- const [listToken, setListToken] = useState(0);
80
- const [crmToken, setCrmToken] = useState(0);
81
- // The last export's messages.csv and Invitations.csv, in this window only, so
82
- // turning Keep my messages on right after an import needn't ask for the folder again.
83
- const lastMessages = useRef(null);
84
- const lastInvites = useRef(null);
85
- const keep = social?.keepMessages === true;
86
-
87
- // The Conversations list reads again whenever this does (listToken).
88
- const reload = () => fetch('/api/social').then((r) => r.json()).then((d) => setSocial(d.social || null)).catch(() => setSocial(null))
89
- .finally(() => setListToken((n) => n + 1));
90
- useEffect(() => { reload(); }, []);
91
- useEffect(() => watchScanner(() => setJob(scannerNow())), []);
92
- useEffect(() => {
93
- if (!userId) return undefined;
94
- let live = true;
95
- loadNetwork(userId).then((n) => { if (live) setNet(n); }).catch(() => {});
96
- return () => { live = false; };
97
- }, [userId]);
98
-
99
- async function importFolder(list) {
100
- setBusy(true);
101
- setNote(null);
102
- try {
103
- const found = {};
104
- for (const f of Array.from(list || [])) {
105
- const name = f.name.toLowerCase();
106
- if (FILES[name] && !found[name]) found[name] = readTable(await f.text(), FILES[name]);
107
- }
108
- if (!Object.keys(found).length) throw new Error('That folder doesn’t have LinkedIn’s export files in it (Connections.csv, messages.csv and so on).');
109
- const conns = found['connections.csv'] || [];
110
- const stats = found['messages.csv'] ? messageStats(found['messages.csv']) : { asOf: null, people: new Map() };
111
- // The words are read out of messages.csv only when Keep my messages is on.
112
- const built = found['messages.csv'] ? buildConversations(found['messages.csv'], { keepText: keep }) : null;
113
- const invitations = found['invitations.csv'] ? buildInvitations(found['invitations.csv'], { keepText: keep }) : null;
114
- lastMessages.current = found['messages.csv'] || null;
115
- lastInvites.current = found['invitations.csv'] || null;
116
- const people = {};
117
- for (const [url, v] of stats.people) people[url] = { last: v.last, lastFromThem: v.lastFromThem, total: v.total, recent: v.recent };
118
- if (keepEmails) {
119
- for (const c of conns) {
120
- const e = c['email address'];
121
- if (!e) continue;
122
- const k = keyFor({ profile_url: c.url });
123
- people[k] = { ...(people[k] || {}), email: e };
124
- }
125
- }
126
- const asOf = stats.asOf || Date.now();
127
- const body = {
128
- asOf,
129
- people,
130
- conversations: built ? built.conversations.map(conversationSummary) : [],
131
- chapters: careerChapters(found['positions.csv'] || [], conns, asOf),
132
- posts: found['shares.csv'] ? postingEffect(found['shares.csv'], conns) : null,
133
- invites: found['invitations.csv'] ? invitationSplit(found['invitations.csv']) : null,
134
- // One record per request, without the notes: those go with the messages, below.
135
- invitations: (invitations || []).map(({ note, ...rest }) => rest),
136
- // Names as the export spells them, so people who aren't connections can be listed.
137
- names: built ? built.names : {},
138
- emails: keepEmails,
139
- };
140
- const r = await fetch('/api/social', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) });
141
- if (!r.ok) throw new Error((await r.json().catch(() => ({}))).error || 'It couldn’t be saved.');
142
- if (built && keep) await sendMessages(built.conversations);
143
- if (invitations && keep) await sendInviteNotes(invitations);
144
- const odd = built ? [
145
- built.drafts ? `${built.drafts.toLocaleString()} unsent ${built.drafts === 1 ? 'draft' : 'drafts'} left out` : '',
146
- built.skipped ? `${built.skipped.toLocaleString()} ${built.skipped === 1 ? 'row' : 'rows'} with no conversation or date left out` : '',
147
- ].filter(Boolean) : [];
148
- setNote({
149
- good: true,
150
- text: `Read ${Object.keys(found).length} of LinkedIn’s files: ${stats.people.size.toLocaleString()} people you’ve messaged one to one`
151
- + (built ? `, ${built.conversations.length.toLocaleString()} conversations${keep ? ', their messages kept on this computer' : ''}` : '')
152
- + (invitations ? `, ${invitations.length.toLocaleString()} connection requests` : '')
153
- + `.${odd.length ? ` (${odd.join('; ')}.)` : ''}`,
154
- });
155
- await reload();
156
- } catch (e) {
157
- setNote({ good: false, text: e.message });
158
- } finally {
159
- setBusy(false);
160
- }
161
- }
162
-
163
- // The daily sync reads the top of the list; `full` scrolls until the whole
164
- // history has loaded (scripts/scrape.py --full-history), at the same pace.
165
- async function syncNow(full = false) {
166
- setNote(null);
167
- try {
168
- const end = await runScrape(full ? 'messages-full' : 'messages');
169
- setNote(end?.exitCode === 0
170
- ? { good: true, text: full ? 'Your whole messages history is read.' : 'Your messages list is read.' }
171
- : { good: false, text: 'The sync stopped before it finished. The Scan page has the log.' });
172
- await reload();
173
- } catch (e) {
174
- setNote({ good: false, text: e.message });
175
- }
176
- }
177
-
178
- async function setAuto(on) {
179
- await fetch('/api/social', { method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ autoSync: on }) });
180
- reload();
181
- }
182
-
183
- // Keep my messages. On: from now on the export's and the sync's words are
184
- // kept, and if an export was read in this window, its messages are kept now.
185
- // Off, once you've said so: the kept messages are deleted.
186
- async function setKeep(on) {
187
- if (!on && !window.confirm('Delete the messages kept on this computer? The list of conversations stays; the messages themselves are deleted.')) return;
188
- setSwitching(true);
189
- setNote(null);
190
- try {
191
- if (!on) await fetch('/api/social/messages', { method: 'DELETE' });
192
- const r = await fetch('/api/social', { method: 'PATCH', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ keepMessages: on }) });
193
- if (!r.ok) throw new Error('The switch couldn’t be saved.');
194
- if (on && (lastMessages.current || lastInvites.current)) {
195
- if (lastMessages.current) await sendMessages(buildConversations(lastMessages.current, { keepText: true }).conversations);
196
- if (lastInvites.current) await sendInviteNotes(buildInvitations(lastInvites.current, { keepText: true }));
197
- setNote({ good: true, text: 'Your messages are kept on this computer now.' });
198
- } else if (on) {
199
- setNote({ good: true, text: 'On. Choose your export folder again, or sync your messages, to bring the messages in.' });
200
- } else {
201
- setNote({ good: true, text: 'Off. The kept messages are deleted.' });
202
- }
203
- } catch (e) {
204
- setNote({ good: false, text: e.message });
205
- } finally {
206
- setSwitching(false);
207
- reload();
208
- }
209
- }
210
-
211
- // Forget it: the export's and the sync's findings, and the messages. Your CRM
212
- // notes are your own work, so they're a question of their own, asked after.
213
- async function forget() {
214
- await fetch('/api/social', { method: 'DELETE' });
215
- lastMessages.current = null;
216
- lastInvites.current = null;
217
- let text = 'Forgotten. Nothing from your export or messages is kept here now, the messages themselves included.';
218
- if (window.confirm('Also delete your CRM: the stages, tags, notes and follow-up dates you added? This can’t be undone. Cancel keeps them.')) {
219
- await fetch('/api/social/crm', { method: 'DELETE' });
220
- setCrmToken((n) => n + 1);
221
- text += ' Your CRM notes are deleted too.';
222
- } else {
223
- text += ' Your CRM notes are kept.';
224
- }
225
- setNote({ good: true, text });
226
- reload();
227
- }
228
-
229
- // What each person's messages say, the export and the live sync together, and
230
- // "now" for warmth: the newest thing the data knows, so an older export reads as it was.
231
- const { merged, asOf } = useMemo(() => mergeSocial(social), [social]);
232
-
233
- const warmth = useMemo(() => {
234
- const counts = { warm: 0, cool: 0, dormant: 0, never: 0 };
235
- for (const c of net?.degree1 || []) counts[warmthOf(merged.get(keyFor(c)), asOf)] += 1;
236
- return counts;
237
- }, [net, merged, asOf]);
238
-
239
- if (IS_DEMO) return <div style={{ minHeight: '100vh', background: '#0a0a1a', color: '#aaa', padding: 40, fontFamily: FONT }}>Not part of the demo.</div>;
240
- const running = job?.running;
241
- const box = { padding: '12px 14px', borderRadius: 8, border: LINE, background: 'rgba(255,255,255,0.03)', marginTop: 10 };
242
- const h2 = { fontSize: 16, margin: '24px 0 6px' };
9
+ import { useRouter } from 'next/navigation';
243
10
 
11
+ export default function SocialMoved() {
12
+ const router = useRouter();
13
+ useEffect(() => { router.replace('/queue?view=messages'); }, [router]);
244
14
  return (
245
- <div style={{ minHeight: '100vh', background: '#0a0a1a', color: '#fff', fontFamily: FONT }}>
246
- <header style={{ padding: '16px 24px', borderBottom: LINE, display: 'flex', alignItems: 'center', gap: 16 }}>
247
- <Link href="/" style={{ color: '#888', textDecoration: 'none', fontSize: 13, fontWeight: 600, padding: '6px 14px', borderRadius: 6, background: 'rgba(255,255,255,0.06)', border: LINE }}>← Back to Map</Link>
248
- <h1 style={{ fontSize: 22, fontWeight: 700, margin: 0, color: '#FFD700' }}>Social <span style={{ fontSize: 12, color: '#8b9a9a', fontWeight: 600 }}>experimental</span></h1>
249
- </header>
250
- <main style={{ maxWidth: 1180, margin: '0 auto', padding: '8px 16px 64px' }}>
251
- <Body style={{ marginTop: 16 }}>
252
- Everyone you&rsquo;ve been in touch with on LinkedIn, connections or not: who&rsquo;s waiting on you, who
253
- hasn&rsquo;t answered, what you&rsquo;ve sent and received, and your own notes and follow-ups on each, from
254
- your own LinkedIn data. Only dates, who wrote last, counts and names are kept on this computer, and what
255
- messages say only if you turn on <i>Keep my messages</i> below.
256
- </Body>
257
-
258
- <h2 style={h2}>Your LinkedIn export</h2>
259
- <div style={box}>
260
- <Body style={{ margin: 0 }}>
261
- On LinkedIn: <i>Settings → Data privacy → Get a copy of your data</i>, pick the larger archive, and unzip the
262
- file it emails you. Then choose that folder here. It&rsquo;s read in this window; nothing goes to LinkedIn.
263
- </Body>
264
- <label style={{ display: 'flex', gap: 8, alignItems: 'flex-start', fontSize: 12.5, color: '#b8c4c4', marginTop: 10 }}>
265
- <input type="checkbox" checked={keepEmails} onChange={(e) => setKeepEmails(e.target.checked)} style={{ marginTop: 3 }} />
266
- <span>Also keep email addresses from it, on this computer only, for one-click email.</span>
267
- </label>
268
- <div style={{ marginTop: 10, display: 'flex', gap: 10, alignItems: 'center', flexWrap: 'wrap' }}>
269
- <label style={{ padding: '7px 14px', borderRadius: 8, background: 'rgba(52,152,219,0.18)', color: '#cfe6f7', cursor: busy ? 'default' : 'pointer', fontSize: 13 }}>
270
- {busy ? 'Reading…' : social ? 'Choose a newer export' : 'Choose the export folder'}
271
- <input type="file" webkitdirectory="" directory="" multiple disabled={busy} style={{ display: 'none' }} onChange={(e) => importFolder(e.target.files)} />
272
- </label>
273
- {social && <span style={{ fontSize: 12, color: '#8b9a9a' }}>From an export up to {day(social.asOf)}{social.liveAt ? ` · messages synced ${day(Date.parse(social.liveAt))}` : ''}</span>}
274
- {social && <button onClick={forget} style={{ background: 'none', border: 'none', color: '#ff9b9b', cursor: 'pointer', fontSize: 12 }}>Forget it</button>}
275
- </div>
276
- </div>
277
-
278
- <h2 style={h2}>Live messages sync <span style={{ fontSize: 11, color: '#FFD700' }}>experimental</span></h2>
279
- <div style={box}>
280
- <Body style={{ margin: 0 }}>
281
- Reads your messages list once, in your own Chrome: who each conversation is with, connections or not, when it
282
- was last active, whether it&rsquo;s unread and who wrote last. It uses no search budget and opens no
283
- conversation. The newest message&rsquo;s words are kept only if <i>Keep my messages</i> is on. The daily sync
284
- reads the top of the list; <i>Read my whole history</i> keeps scrolling until no more conversations load
285
- (at most 60 scrolls, about 1,000 conversations), at the same slow, fixed pace, so it takes a few minutes.
286
- </Body>
287
- <div style={{ marginTop: 10, display: 'flex', gap: 12, alignItems: 'center', flexWrap: 'wrap' }}>
288
- <button onClick={() => syncNow(false)} disabled={running} style={{ padding: '7px 14px', borderRadius: 8, border: 'none', background: running ? '#333' : 'rgba(0,255,136,0.15)', color: running ? '#777' : '#00ff88', cursor: running ? 'default' : 'pointer', fontSize: 13 }}>
289
- {running ? 'The scanner is busy' : 'Sync messages now'}
290
- </button>
291
- <button onClick={() => syncNow(true)} disabled={running} style={{ padding: '7px 14px', borderRadius: 8, border: LINE, background: 'none', color: running ? '#777' : '#cfe6f7', cursor: running ? 'default' : 'pointer', fontSize: 13 }}>
292
- Read my whole history
293
- </button>
294
- <label style={{ display: 'flex', gap: 6, alignItems: 'center', fontSize: 12.5, color: '#b8c4c4' }}>
295
- <input type="checkbox" checked={social?.autoSync === true} onChange={(e) => setAuto(e.target.checked)} />
296
- Once a day while the app is open (daytime only)
297
- </label>
298
- </div>
299
- </div>
300
- {note && <div style={{ marginTop: 10, fontSize: 13, color: note.good ? '#00ff88' : '#ff9b9b' }}>{note.text}</div>}
301
-
302
- <h2 style={h2}>People</h2>
303
- <Crm net={net} asOf={social ? asOf : null} keep={keep} onKeep={setKeep} switching={switching || busy} token={listToken} crmToken={crmToken} />
304
-
305
- {social && (
306
- <>
307
- <h2 style={h2}>Warmth</h2>
308
- <div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(160px, 1fr))', gap: 10 }}>
309
- {Object.entries(WARMTH).map(([k, [label, color]]) => (
310
- <div key={k} style={{ ...box, marginTop: 0 }}>
311
- <div style={{ fontSize: 22, fontWeight: 700, color }}>{(warmth[k] || 0).toLocaleString()}</div>
312
- <div style={{ fontSize: 12.5, color: '#b8c4c4' }}>{label}</div>
313
- </div>
314
- ))}
315
- </div>
316
- <div style={{ fontSize: 11.5, color: '#778', marginTop: 6 }}>
317
- Of your connections. Warm: messaged in the last 30 days, or 3+ messages in 90. Cool: within a year. Dormant: longer ago.
318
- </div>
319
-
320
- {social.chapters?.length > 0 && (
321
- <>
322
- <h2 style={h2}>Career chapters</h2>
323
- <div style={{ ...box, padding: 0 }}>
324
- {social.chapters.map((c) => {
325
- const warm = (c.people || []).filter((u) => ['warm', 'cool'].includes(warmthOf(merged.get(keyFor({ profile_url: u })), asOf))).length;
326
- return (
327
- <div key={`${c.company}-${c.from}`} style={{ display: 'flex', gap: 10, padding: '8px 14px', borderBottom: '1px solid rgba(255,255,255,0.04)', fontSize: 13, alignItems: 'baseline' }}>
328
- <span style={{ flex: 1 }}><b>{c.company}</b> <span style={{ color: '#8b9a9a' }}>{c.title} · {new Date(c.from).getFullYear()}–{c.to ? new Date(c.to).getFullYear() : 'now'}</span></span>
329
- <span style={{ color: '#b8c4c4' }}>{c.made.toLocaleString()} connections made</span>
330
- <span style={{ color: '#ff9f43', minWidth: 90, textAlign: 'right' }}>{c.made ? `${Math.round((100 * warm) / c.made)}% still in touch` : ''}</span>
331
- </div>
332
- );
333
- })}
334
- </div>
335
- </>
336
- )}
337
-
338
- {social.posts?.posts?.length > 0 && (
339
- <>
340
- <h2 style={h2}>Does posting work?</h2>
341
- <div style={box}>
342
- <div style={{ fontSize: 13 }}>
343
- In the week after a post you made <b>{social.posts.afterPosts.toFixed(1)}</b> new connections on average; a usual week, <b>{social.posts.usualWeek.toFixed(1)}</b>.
344
- </div>
345
- <div style={{ fontSize: 11.5, color: '#778', marginTop: 4 }}>What came after a post, not proof it came from it.</div>
346
- {[...social.posts.posts].sort((a, b) => b.week - a.week).slice(0, 3).map((p) => (
347
- <div key={p.t} style={{ fontSize: 12.5, color: '#b8c4c4', marginTop: 6 }}>
348
- {day(p.t)}: {p.week} new connections that week {p.link ? <a href={p.link} target="_blank" rel="noreferrer" style={{ color: '#3498DB', textDecoration: 'none' }}>Post ↗</a> : null}
349
- </div>
350
- ))}
351
- </div>
352
- </>
353
- )}
354
-
355
- {social.invites?.total > 0 && (
356
- <>
357
- <h2 style={h2}>Who reaches out</h2>
358
- <div style={box}>
359
- <span style={{ fontSize: 13 }}>
360
- {social.invites.incoming.toLocaleString()} requests came to you and you sent {social.invites.outgoing.toLocaleString()}
361
- {' '}({Math.round((100 * social.invites.incoming) / social.invites.total)}% came to you), as far as your export shows.
362
- </span>
363
- </div>
364
- </>
365
- )}
366
- </>
367
- )}
368
- </main>
15
+ <div style={{ minHeight: '100vh', background: '#0a0a1a', color: '#aab', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: 13 }}>
16
+ Social is part of <Link href="/queue?view=messages" style={{ color: '#FF6B35', marginLeft: 4 }}>Outlink</Link> now.
369
17
  </div>
370
18
  );
371
19
  }
@@ -17,19 +17,19 @@ function capacity(radius, spacing, sweep) {
17
17
  return Math.max(1, sweep >= TAU - 1e-9 ? Math.floor(arc / spacing) : Math.floor(arc / spacing) + 1);
18
18
  }
19
19
 
20
- /** The rings from `inner` outwards, `spacing` apart, until `n` dots fit. */
21
- function ringsFor(n, inner, spacing, sweep) {
20
+ /** The rings from `inner` outwards, `gap` apart (at least `spacing`), until `n` dots fit. */
21
+ function ringsFor(n, inner, spacing, sweep, gap = spacing) {
22
22
  const radii = [];
23
23
  let room = 0;
24
- for (let r = inner; room < n; r += spacing) {
24
+ for (let r = inner; room < n; r += Math.max(spacing, gap)) {
25
25
  radii.push(r);
26
26
  room += capacity(r, spacing, sweep);
27
27
  }
28
28
  return radii;
29
29
  }
30
30
 
31
- const outerOf = (n, inner, spacing, sweep) => {
32
- const radii = ringsFor(n, inner, spacing, sweep);
31
+ const outerOf = (n, inner, spacing, sweep, gap) => {
32
+ const radii = ringsFor(n, inner, spacing, sweep, gap);
33
33
  return radii[radii.length - 1];
34
34
  };
35
35
 
@@ -46,43 +46,44 @@ const outerOf = (n, inner, spacing, sweep) => {
46
46
  * neighbouring rings don't line up in spokes.
47
47
  *
48
48
  * `start` and `sweep` fill an arc instead of the whole circle, each ring from
49
- * its middle outwards.
49
+ * its middle outwards. `ringGap` keeps the rings at least that far apart, for
50
+ * dots that carry a name under them and need the room.
50
51
  *
51
52
  * @returns {{ spacing: number, inner: number, rings: { radius: number, count: number }[],
52
53
  * points: { x: number, y: number, angle: number, ring: number }[] }}
53
54
  */
54
55
  export function ringLayout(n, {
55
56
  inner, outer, spacing, minSpacing = spacing / 3, innerMin = inner,
56
- start = -Math.PI / 2, sweep = TAU,
57
+ start = -Math.PI / 2, sweep = TAU, ringGap = 0,
57
58
  } = {}) {
58
59
  const count = Math.max(0, Math.floor(n) || 0);
59
60
  if (!count) return { spacing, inner, rings: [], points: [] };
60
61
 
61
62
  let s = spacing;
62
63
  let r0 = inner;
63
- if (outerOf(count, r0, s, sweep) > outer) {
64
+ if (outerOf(count, r0, s, sweep, ringGap) > outer) {
64
65
  // Start further in, as far as innerMin, before closing anything up.
65
- if (outerOf(count, innerMin, s, sweep) <= outer) {
66
+ if (outerOf(count, innerMin, s, sweep, ringGap) <= outer) {
66
67
  let lo = innerMin, hi = inner;
67
68
  for (let i = 0; i < 24; i++) {
68
69
  const mid = (lo + hi) / 2;
69
- if (outerOf(count, mid, s, sweep) <= outer) lo = mid; else hi = mid;
70
+ if (outerOf(count, mid, s, sweep, ringGap) <= outer) lo = mid; else hi = mid;
70
71
  }
71
72
  r0 = lo;
72
73
  } else {
73
74
  r0 = innerMin;
74
75
  let lo = minSpacing, hi = spacing;
75
- if (outerOf(count, r0, lo, sweep) <= outer) {
76
+ if (outerOf(count, r0, lo, sweep, ringGap) <= outer) {
76
77
  for (let i = 0; i < 24; i++) {
77
78
  const mid = (lo + hi) / 2;
78
- if (outerOf(count, r0, mid, sweep) <= outer) lo = mid; else hi = mid;
79
+ if (outerOf(count, r0, mid, sweep, ringGap) <= outer) lo = mid; else hi = mid;
79
80
  }
80
81
  }
81
82
  s = lo;
82
83
  }
83
84
  }
84
85
 
85
- const radii = ringsFor(count, r0, s, sweep);
86
+ const radii = ringsFor(count, r0, s, sweep, ringGap);
86
87
  const caps = radii.map((r) => capacity(r, s, sweep));
87
88
  const room = caps.reduce((a, b) => a + b, 0);
88
89
 
@@ -162,8 +163,9 @@ const TIER_BANDS = ['S', 'A', 'B', 'C', 'D'];
162
163
  *
163
164
  * @returns {{ spacing: number, edge: number, bands: { tier: string, inner: number, outer: number }[],
164
165
  * points: { x: number, y: number, angle: number, slot: number }[] }}
166
+ * `start` is the angle each ring's first dot sits at (the top, unless told).
165
167
  */
166
- export function tierBandLayout(rows, { inner, outer, spacing, minSpacing = spacing / 3, gap = spacing }) {
168
+ export function tierBandLayout(rows, { inner, outer, spacing, minSpacing = spacing / 3, gap = spacing, start = -Math.PI / 2 }) {
167
169
  const groups = TIER_BANDS.map((tier) => ({ tier, idx: [] }));
168
170
  rows.forEach((row, i) => {
169
171
  const t = TIER_BANDS.indexOf(row?.tier);
@@ -175,7 +177,7 @@ export function tierBandLayout(rows, { inner, outer, spacing, minSpacing = spaci
175
177
  const bands = [];
176
178
  let r = inner;
177
179
  for (const g of used) {
178
- const l = ringLayout(g.idx.length, { inner: r, outer: Infinity, spacing: s, minSpacing: s });
180
+ const l = ringLayout(g.idx.length, { inner: r, outer: Infinity, spacing: s, minSpacing: s, start });
179
181
  g.idx.forEach((rowIndex, j) => {
180
182
  const p = l.points[j];
181
183
  points[rowIndex] = { x: p.x, y: p.y, angle: p.angle, slot: TAU / l.rings[p.ring].count };
@@ -201,28 +203,96 @@ export function tierBandLayout(rows, { inner, outer, spacing, minSpacing = spaci
201
203
  }
202
204
 
203
205
  /**
204
- * The people behind each person in an opened circle: their own circle, drawn
205
- * as a fan of small dots beyond `from`, centred on that person's angle and no
206
- * wider than their slot (at most a sixth of the circle), so each fan sits
207
- * behind its own person. At most `cap` dots a fan and about `total` in all, so
208
- * a big network stays quick; `more` is how many weren't drawn.
206
+ * The chains that lead on from an opened circle (Blake, 2026-10-02: "once they
207
+ * are clicked on and can view the cluster i want any scanned d2,3,4 or whatever
208
+ * to be show inside with lines out of the d1 leading to the d2s").
209
209
  *
210
- * @param {{ angle: number, slot: number, count: number }[]} anchors
211
- * @returns {({ points: { x: number, y: number }[], more: number } | null)[]}
210
+ * `parents[i]` is the index of the link that introduced link i, or -1 when the
211
+ * person in the middle did. The links one step on sit on a ring at `from`, each
212
+ * as near its own angle in `angles` as it can get (where that person's dot is
213
+ * in the circle), or fanned about `toward` without one; each later step sits `hop` further out,
214
+ * as near the angle of the link it came from as it can get without touching a
215
+ * neighbour on its own ring (`spacing` apart). So a chain reads outwards from
216
+ * the middle: the bridge, someone met through them, someone met through *them*.
217
+ *
218
+ * @param {number[]} parents
219
+ * @returns {{ rings: { radius: number, count: number, depth: number }[],
220
+ * points: { x: number, y: number, angle: number, radius: number, depth: number, parent: number }[] }}
212
221
  */
213
- export function outerFans(anchors, { from, spacing = 7, cap = 40, total = 1200 } = {}) {
214
- const fans = anchors.filter((a) => a?.count > 0).length;
215
- const each = Math.max(6, Math.min(cap, Math.floor(total / Math.max(1, fans))));
216
- return anchors.map((a) => {
217
- if (!(a?.count > 0)) return null;
218
- const n = Math.min(a.count, each);
219
- // Only as wide as the dots need at `spacing`, never wider than their slot:
220
- // more rows once it's full, so a small fan stays a tight cluster.
221
- const room = Math.min(a.slot || TAU, TAU / 6);
222
- const width = Math.min(room, Math.max((spacing * 3) / from, (n * spacing) / from));
223
- const l = ringLayout(n, {
224
- inner: from, outer: Infinity, spacing, minSpacing: spacing, start: a.angle - width / 2, sweep: width,
222
+ export function chainTree(parents = [], { from = 0, hop = 60, spacing = 46, toward = 0, angles = [] } = {}) {
223
+ const n = parents.length;
224
+ const parent = parents.map((p, i) => (Number.isInteger(p) && p >= 0 && p < n && p !== i ? p : -1));
225
+
226
+ // How many steps out each one is. A loop (it shouldn't happen) is cut where
227
+ // it closes, so everyone still gets a place.
228
+ const depth = new Array(n).fill(0);
229
+ for (let i = 0; i < n; i++) {
230
+ const trail = [];
231
+ let k = i;
232
+ while (k >= 0 && !depth[k] && !trail.includes(k)) { trail.push(k); k = parent[k]; }
233
+ if (k >= 0 && !depth[k]) { parent[trail[trail.length - 1]] = -1; k = -1; }
234
+ let d = k >= 0 ? depth[k] + 1 : 1;
235
+ for (let j = trail.length - 1; j >= 0; j--) depth[trail[j]] = d++;
236
+ }
237
+
238
+ const points = new Array(n);
239
+ const rings = [];
240
+ for (let d = 1; d <= Math.max(0, ...depth); d++) {
241
+ const here = [];
242
+ for (let i = 0; i < n; i++) if (depth[i] === d) here.push(i);
243
+ const radius = from + (d - 1) * hop;
244
+ const placed = spread(here.map((i) => (parent[i] < 0 ? (Number.isFinite(angles[i]) ? angles[i] : toward) : points[parent[i]].angle)),
245
+ Math.min(spacing / Math.max(1, radius), TAU / here.length));
246
+ here.forEach((i, j) => {
247
+ const angle = placed[j];
248
+ points[i] = { x: radius * Math.cos(angle), y: radius * Math.sin(angle), angle, radius, depth: d, parent: parent[i] };
225
249
  });
226
- return { points: l.points.map(({ x, y }) => ({ x, y })), more: a.count - n };
250
+ rings.push({ radius, count: here.length, depth: d });
251
+ }
252
+ return { rings, points };
253
+ }
254
+
255
+ /**
256
+ * Angles as near the ones asked for as they can be while staying `sep` apart:
257
+ * neighbours that would touch move apart by the same amount each way, so two
258
+ * people met through the same person sit either side of them. Comes back in
259
+ * the order given.
260
+ */
261
+ function spread(wanted, sep) {
262
+ const m = wanted.length;
263
+ if (m < 2) return wanted.slice();
264
+ const turn = (a) => ((a % TAU) + TAU) % TAU;
265
+ const order = wanted.map((a, i) => i).sort((i, j) => turn(wanted[i]) - turn(wanted[j]) || i - j);
266
+ // Start counting just after the widest empty stretch, so no group straddles the join.
267
+ let cut = 0;
268
+ let widest = -1;
269
+ order.forEach((i, k) => {
270
+ const next = order[(k + 1) % m];
271
+ const gap = turn(turn(wanted[next]) - turn(wanted[i])) || (m > 1 && k === m - 1 ? TAU : 0);
272
+ if (gap > widest) { widest = gap; cut = (k + 1) % m; }
227
273
  });
274
+ const seq = order.slice(cut).concat(order.slice(0, cut));
275
+ const first = turn(wanted[seq[0]]);
276
+ const at = seq.map((i) => first + turn(turn(wanted[i]) - first));
277
+
278
+ // Least movement that keeps them `sep` apart: take the spacing out, pool any
279
+ // neighbours left out of order to their average, put the spacing back.
280
+ const blocks = [];
281
+ at.forEach((a, k) => {
282
+ blocks.push({ sum: a - k * sep, count: 1 });
283
+ while (blocks.length > 1 && blocks[blocks.length - 2].sum / blocks[blocks.length - 2].count > blocks[blocks.length - 1].sum / blocks[blocks.length - 1].count) {
284
+ const last = blocks.pop();
285
+ blocks[blocks.length - 1].sum += last.sum;
286
+ blocks[blocks.length - 1].count += last.count;
287
+ }
288
+ });
289
+ let placed = blocks.flatMap((b) => new Array(b.count).fill(b.sum / b.count)).map((q, k) => q + k * sep);
290
+ // Round the join too: if the last has come back round onto the first, share the ring evenly.
291
+ if (placed[m - 1] - placed[0] > TAU - sep) {
292
+ const mid = (placed[0] + placed[m - 1]) / 2;
293
+ placed = placed.map((_, k) => mid + (k - (m - 1) / 2) * (TAU / m));
294
+ }
295
+ const out = new Array(m);
296
+ seq.forEach((i, k) => { out[i] = placed[k]; });
297
+ return out;
228
298
  }
@@ -22,9 +22,3 @@ export function peopleByDegree(degree1 = [], degree2 = [], degree3 = []) {
22
22
  };
23
23
  return { 1: take(degree1, 1), 2: take(degree2, 2), 3: take(degree3, 3) };
24
24
  }
25
-
26
- export function tierCountsOf(rows = []) {
27
- const counts = {};
28
- for (const row of rows) counts[row.tier] = (counts[row.tier] || 0) + 1;
29
- return counts;
30
- }
@@ -18,4 +18,29 @@ export function ringSegments(r) {
18
18
  });
19
19
  }
20
20
 
21
+ /**
22
+ * The ring round a bridge in Bridge Chains (Blake, 2026-10-02: "the bars on the
23
+ * ring should signify how many dots in the clusters are ready to be scanned
24
+ * and new clusters formed"). One bar for each person you added through that
25
+ * circle: the ones scanned since, with a cluster of their own (`formed`),
26
+ * then the ones waiting for a scan (`ready`). Past `max` bars the two kinds
27
+ * share them in proportion, each keeping at least one.
28
+ *
29
+ * @returns {{ d: string, kind: 'formed' | 'ready' }[]}
30
+ */
31
+ export function reachSegments(r, { formed = 0, ready = 0 } = {}, max = 12) {
32
+ const total = Math.max(0, formed) + Math.max(0, ready);
33
+ if (!total) return [];
34
+ const n = Math.min(total, max);
35
+ let nFormed = formed > 0 ? Math.max(1, Math.round((n * formed) / total)) : 0;
36
+ if (ready > 0 && nFormed >= n) nFormed = n - 1;
37
+ const gap = n === 1 ? 0.5 : Math.min(GAP, ((2 * Math.PI) / n) * 0.35);
38
+ const span = (2 * Math.PI) / n - gap;
39
+ const p = (a) => `${(r * Math.cos(a)).toFixed(2)} ${(r * Math.sin(a)).toFixed(2)}`;
40
+ return Array.from({ length: n }, (_, i) => {
41
+ const a0 = -Math.PI / 2 + gap / 2 + i * (span + gap);
42
+ return { kind: i < nFormed ? 'formed' : 'ready', d: `M${p(a0)} A${r} ${r} 0 ${span > Math.PI ? 1 : 0} 1 ${p(a0 + span)}` };
43
+ });
44
+ }
45
+
21
46
  export const RING = { filled: '#1abc9c', empty: 'rgba(255,255,255,0.16)', badge: '#7F77DD' };