@celljs/ta 4.13.0 → 4.14.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 (276) hide show
  1. package/dist/cli.mjs +997 -811
  2. package/dist/gateway.mjs +315 -129
  3. package/dist/pi/CHANGELOG.md +11 -0
  4. package/dist/pi/package.json +1 -1
  5. package/dist/pi/packages/ta-agents/package.json +3 -3
  6. package/dist/pi/packages/ta-bots/extension/index.mjs +21 -0
  7. package/dist/pi/packages/ta-bots/host/index.mjs +171 -114
  8. package/dist/pi/packages/ta-bots/package.json +3 -3
  9. package/dist/pi/packages/ta-changes/extension/index.mjs +21 -0
  10. package/dist/pi/packages/ta-changes/package.json +3 -3
  11. package/dist/pi/packages/ta-channels/extension/index.mjs +23 -2
  12. package/dist/pi/packages/ta-channels/host/index.mjs +170 -113
  13. package/dist/pi/packages/ta-channels/lib/extension.js +2 -2
  14. package/dist/pi/packages/ta-channels/lib/room.js +3 -3
  15. package/dist/pi/packages/ta-channels/package.json +3 -3
  16. package/dist/pi/packages/ta-channels/web/index.js +1 -0
  17. package/dist/pi/packages/ta-computer-use/package.json +3 -3
  18. package/dist/pi/packages/ta-cron/README.en.md +1 -1
  19. package/dist/pi/packages/ta-cron/README.md +1 -1
  20. package/dist/pi/packages/ta-cron/extension/index.mjs +22 -1
  21. package/dist/pi/packages/ta-cron/lib/extension.js +1 -1
  22. package/dist/pi/packages/ta-cron/lib/page.d.ts +2 -0
  23. package/dist/pi/packages/ta-cron/lib/page.js +8 -4
  24. package/dist/pi/packages/ta-cron/package.json +3 -3
  25. package/dist/pi/packages/ta-cron/web/index.js +9 -4
  26. package/dist/pi/packages/ta-extensions/package.json +3 -3
  27. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +1 -1
  28. package/dist/pi/packages/ta-extensions/web/index.js +170 -113
  29. package/dist/pi/packages/ta-games/package.json +3 -3
  30. package/dist/pi/packages/ta-glance/extension/index.mjs +21 -0
  31. package/dist/pi/packages/ta-glance/package.json +3 -3
  32. package/dist/pi/packages/ta-initiative/README.en.md +1 -0
  33. package/dist/pi/packages/ta-initiative/README.md +1 -0
  34. package/dist/pi/packages/ta-initiative/extension/index.mjs +24 -3
  35. package/dist/pi/packages/ta-initiative/host/index.mjs +3 -0
  36. package/dist/pi/packages/ta-initiative/lib/extension.js +3 -4
  37. package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +1 -0
  38. package/dist/pi/packages/ta-initiative/lib/i18n.js +4 -2
  39. package/dist/pi/packages/ta-initiative/lib/inbox.js +1 -1
  40. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +2 -0
  41. package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +1 -0
  42. package/dist/pi/packages/ta-initiative/lib/initiative-service.js +3 -0
  43. package/dist/pi/packages/ta-initiative/lib/initiative-store.js +5 -1
  44. package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
  45. package/dist/pi/packages/ta-initiative/lib/style.js +1 -1
  46. package/dist/pi/packages/ta-initiative/package.json +3 -3
  47. package/dist/pi/packages/ta-initiative/web/index.js +10 -7
  48. package/dist/pi/packages/ta-launcher/package.json +3 -3
  49. package/dist/pi/packages/ta-manual/package.json +3 -3
  50. package/dist/pi/packages/ta-moments/extension/index.mjs +104 -47
  51. package/dist/pi/packages/ta-moments/host/index.mjs +103 -46
  52. package/dist/pi/packages/ta-moments/lib/editor.js +1 -1
  53. package/dist/pi/packages/ta-moments/lib/extension.js +2 -2
  54. package/dist/pi/packages/ta-moments/lib/friends.d.ts +4 -1
  55. package/dist/pi/packages/ta-moments/lib/friends.js +3 -2
  56. package/dist/pi/packages/ta-moments/lib/moments-host.js +1 -1
  57. package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +2 -0
  58. package/dist/pi/packages/ta-moments/lib/page.js +4 -5
  59. package/dist/pi/packages/ta-moments/lib/post-util.js +2 -2
  60. package/dist/pi/packages/ta-moments/lib/store.js +6 -0
  61. package/dist/pi/packages/ta-moments/lib/style.d.ts +1 -1
  62. package/dist/pi/packages/ta-moments/lib/style.js +4 -5
  63. package/dist/pi/packages/ta-moments/package.json +3 -3
  64. package/dist/pi/packages/ta-moments/web/index.js +193 -128
  65. package/dist/pi/packages/ta-nearby/extension/index.mjs +22 -1
  66. package/dist/pi/packages/ta-nearby/host/index.mjs +189 -4
  67. package/dist/pi/packages/ta-nearby/lib/extension.js +1 -1
  68. package/dist/pi/packages/ta-nearby/lib/nearby-net.js +2 -0
  69. package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +11 -0
  70. package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +3 -0
  71. package/dist/pi/packages/ta-nearby/lib/nearby-service.js +32 -7
  72. package/dist/pi/packages/ta-nearby/lib/page.js +10 -9
  73. package/dist/pi/packages/ta-nearby/lib/style.d.ts +1 -1
  74. package/dist/pi/packages/ta-nearby/lib/style.js +1 -1
  75. package/dist/pi/packages/ta-nearby/package.json +3 -3
  76. package/dist/pi/packages/ta-nearby/web/index.js +10 -2
  77. package/dist/pi/packages/ta-notify/README.en.md +1 -0
  78. package/dist/pi/packages/ta-notify/README.md +1 -0
  79. package/dist/pi/packages/ta-notify/extension/index.mjs +21 -0
  80. package/dist/pi/packages/ta-notify/host/index.mjs +3 -0
  81. package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +2 -0
  82. package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +1 -0
  83. package/dist/pi/packages/ta-notify/lib/notify-service.js +3 -0
  84. package/dist/pi/packages/ta-notify/package.json +3 -3
  85. package/dist/pi/packages/ta-recall/README.en.md +1 -1
  86. package/dist/pi/packages/ta-recall/README.md +1 -1
  87. package/dist/pi/packages/ta-recall/extension/index.mjs +22 -1
  88. package/dist/pi/packages/ta-recall/host/index.mjs +30 -12
  89. package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +3 -3
  90. package/dist/pi/packages/ta-recall/lib/extension.js +1 -1
  91. package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +5 -3
  92. package/dist/pi/packages/ta-recall/lib/recall-service.js +11 -7
  93. package/dist/pi/packages/ta-recall/package.json +3 -3
  94. package/dist/pi/packages/ta-recall/web/index.js +21 -0
  95. package/dist/pi/packages/ta-rooms/extension/index.mjs +23 -2
  96. package/dist/pi/packages/ta-rooms/host/index.mjs +21 -0
  97. package/dist/pi/packages/ta-rooms/lib/extension.js +2 -2
  98. package/dist/pi/packages/ta-rooms/lib/friends-view.js +7 -8
  99. package/dist/pi/packages/ta-rooms/lib/page.d.ts +12 -0
  100. package/dist/pi/packages/ta-rooms/lib/page.js +38 -3
  101. package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
  102. package/dist/pi/packages/ta-rooms/lib/style.js +1 -2
  103. package/dist/pi/packages/ta-rooms/package.json +3 -3
  104. package/dist/pi/packages/ta-rooms/web/index.js +58 -17
  105. package/dist/pi/packages/ta-share/extension/index.mjs +21 -0
  106. package/dist/pi/packages/ta-share/package.json +3 -3
  107. package/dist/pi/packages/ta-sync/lib/i18n.js +2 -2
  108. package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +2 -2
  109. package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
  110. package/dist/pi/packages/ta-sync/lib/style.js +1 -1
  111. package/dist/pi/packages/ta-sync/package.json +3 -3
  112. package/dist/pi/packages/ta-sync/web/index.js +5 -5
  113. package/dist/pi/packages/ta-sync-cloud/package.json +3 -3
  114. package/dist/pi/packages/ta-team/README.en.md +3 -1
  115. package/dist/pi/packages/ta-team/README.md +3 -1
  116. package/dist/pi/packages/ta-team/extension/index.mjs +21 -0
  117. package/dist/pi/packages/ta-team/host/index.mjs +590 -47
  118. package/dist/pi/packages/ta-team/lib/dialogs.js +83 -16
  119. package/dist/pi/packages/ta-team/lib/host.js +4 -0
  120. package/dist/pi/packages/ta-team/lib/i18n.d.ts +11 -0
  121. package/dist/pi/packages/ta-team/lib/i18n.js +24 -2
  122. package/dist/pi/packages/ta-team/lib/members-tab.js +55 -8
  123. package/dist/pi/packages/ta-team/lib/page.d.ts +5 -0
  124. package/dist/pi/packages/ta-team/lib/page.js +15 -0
  125. package/dist/pi/packages/ta-team/lib/parts.d.ts +3 -1
  126. package/dist/pi/packages/ta-team/lib/parts.js +4 -3
  127. package/dist/pi/packages/ta-team/lib/policy.d.ts +24 -0
  128. package/dist/pi/packages/ta-team/lib/policy.js +32 -0
  129. package/dist/pi/packages/ta-team/lib/protocol.d.ts +22 -15
  130. package/dist/pi/packages/ta-team/lib/protocol.js +1 -3
  131. package/dist/pi/packages/ta-team/lib/shared-home.js +2 -2
  132. package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
  133. package/dist/pi/packages/ta-team/lib/style.js +8 -4
  134. package/dist/pi/packages/ta-team/lib/team-admin.js +1 -0
  135. package/dist/pi/packages/ta-team/lib/team-core.js +1 -0
  136. package/dist/pi/packages/ta-team/lib/team-invites.d.ts +74 -6
  137. package/dist/pi/packages/ta-team/lib/team-invites.js +207 -10
  138. package/dist/pi/packages/ta-team/lib/team-people.js +2 -0
  139. package/dist/pi/packages/ta-team/package.json +7 -3
  140. package/dist/pi/packages/ta-team/web/index.js +362 -139
  141. package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
  142. package/dist/pi/packages/ta-workspace/lib/style.js +2 -2
  143. package/dist/pi/packages/ta-workspace/package.json +4 -4
  144. package/dist/pi/packages/ta-workspace/web/index.js +210 -139
  145. package/dist/public/assets/{abnfDiagram-S7VZAUFO-DJMZKA5d.js → abnfDiagram-S7VZAUFO-DMceNIR5.js} +1 -1
  146. package/dist/public/assets/{architecture-WOLXFQ4H-DwZ8A2Bp.js → architecture-WOLXFQ4H-5AdYeEv8.js} +1 -1
  147. package/dist/public/assets/{architectureDiagram-YGSQEFNW-DPezb7-w.js → architectureDiagram-YGSQEFNW-CqkJHg0A.js} +1 -1
  148. package/dist/public/assets/{blockDiagram-APKKGZFW-SrFYBlSp.js → blockDiagram-APKKGZFW-BtuHdIjQ.js} +1 -1
  149. package/dist/public/assets/{browser-D2CY3Lfb.js → browser-D2BcOPKG.js} +1 -1
  150. package/dist/public/assets/{browser-CljOqDFz.js → browser-Ds5TwWWr.js} +1 -1
  151. package/dist/public/assets/{c4Diagram-KJ2TOQU5-COCMkiJ6.js → c4Diagram-KJ2TOQU5-eebbjTgZ.js} +1 -1
  152. package/dist/public/assets/{chunk-6MUBBAK2-CWRxZCiu.js → chunk-6MUBBAK2-BjMKSfTf.js} +1 -1
  153. package/dist/public/assets/{chunk-AXFCVDMN-Dgn3RHlx.js → chunk-AXFCVDMN-BElluw_7.js} +1 -1
  154. package/dist/public/assets/{chunk-BG4553SI-BDnAChfb.js → chunk-BG4553SI-CUDwpWNL.js} +1 -1
  155. package/dist/public/assets/{chunk-DQASFODM-DSgprMfc.js → chunk-DQASFODM-B-92o8Uj.js} +1 -1
  156. package/dist/public/assets/{chunk-HFQBQIA3-ChtjyKjP.js → chunk-HFQBQIA3-pveEMcXK.js} +1 -1
  157. package/dist/public/assets/{chunk-KQLB2F66-B2o0ufJC.js → chunk-KQLB2F66-m7DKNjYW.js} +1 -1
  158. package/dist/public/assets/{chunk-KS47KZWR-C4qJvDaX.js → chunk-KS47KZWR-CnSSETdj.js} +1 -1
  159. package/dist/public/assets/{chunk-LEVMRMFU-2jTGUstS.js → chunk-LEVMRMFU-Ds7OnJrC.js} +1 -1
  160. package/dist/public/assets/{chunk-M57EVK23-CKAWW7fj.js → chunk-M57EVK23-PJSYCuUh.js} +1 -1
  161. package/dist/public/assets/{chunk-OY52VR5R-B5TUKZAt.js → chunk-OY52VR5R-C3ygRwSC.js} +1 -1
  162. package/dist/public/assets/{chunk-QB3YPZ4I-CyQFTqwG.js → chunk-QB3YPZ4I-DcFtmZh7.js} +1 -1
  163. package/dist/public/assets/{chunk-R3KSYZAL-C6git_yh.js → chunk-R3KSYZAL-B4BOidE6.js} +1 -1
  164. package/dist/public/assets/{chunk-STOXU5M4-AwEqcNnS.js → chunk-STOXU5M4-DcXfwN7k.js} +1 -1
  165. package/dist/public/assets/{chunk-TU62E6Q5-GKcRDmvw.js → chunk-TU62E6Q5-B-rpQQxX.js} +1 -1
  166. package/dist/public/assets/{chunk-X4PVCEUW-CMG5EfZ9.js → chunk-X4PVCEUW-BBtlFSw1.js} +1 -1
  167. package/dist/public/assets/{chunk-XXDRQBXY-BHd-dKtZ.js → chunk-XXDRQBXY-Do8BIocv.js} +1 -1
  168. package/dist/public/assets/{classDiagram-v2-L25IHNXF-HaRsBCG9.js → classDiagram-v2-L25IHNXF-bhGAODMS.js} +1 -1
  169. package/dist/public/assets/{client-sUFoEC5s.js → client-C8gi9Fk2.js} +1 -1
  170. package/dist/public/assets/{common-CGQN5htF.js → common-DrZR0tgm.js} +2 -2
  171. package/dist/public/assets/{cose-bilkent-JH36ORCC-BPBTCfj3.js → cose-bilkent-JH36ORCC-B7Qv6Hv_.js} +1 -1
  172. package/dist/public/assets/cynefin-EF2NZ3EQ-Dfu5k3iG.js +1 -0
  173. package/dist/public/assets/{cynefinDiagram-L36ESFBY-dAmWDtva.js → cynefinDiagram-L36ESFBY-BX-R5Z6L.js} +1 -1
  174. package/dist/public/assets/{d3-selection-BhemR5ul.js → d3-selection-D3xgEEla.js} +1 -1
  175. package/dist/public/assets/{dagre-SPEB5RXH-D93g6hNI.js → dagre-SPEB5RXH-MfJ9yO0v.js} +1 -1
  176. package/dist/public/assets/{diagram-3B7GL73J-FJBKgG3X.js → diagram-3B7GL73J-DxFRc2vC.js} +1 -1
  177. package/dist/public/assets/{diagram-DNEMPZML-BP22T976.js → diagram-DNEMPZML-BcBwOLbM.js} +1 -1
  178. package/dist/public/assets/{diagram-L3MUGCDN-DcrCJXRt.js → diagram-L3MUGCDN--Rw-isPI.js} +1 -1
  179. package/dist/public/assets/{diagram-LA4NIPWU-DUgd3PHQ.js → diagram-LA4NIPWU-DXkY85UN.js} +1 -1
  180. package/dist/public/assets/{diagram-MHCOC4E2-ejTInqzQ.js → diagram-MHCOC4E2-CbNmfAid.js} +1 -1
  181. package/dist/public/assets/{diagram-XPFHEONP-BLjkgho1.js → diagram-XPFHEONP-D1nGQjzf.js} +1 -1
  182. package/dist/public/assets/{dist-C9xqTt0E.js → dist-B1JMTrET.js} +1 -1
  183. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-CB1QQ4_T.js → ebnfDiagram-UZSYDL2S-DGXbVfke.js} +1 -1
  184. package/dist/public/assets/{editor.api-lz6I1oVk.js → editor.api-e3yQoo1r.js} +1 -1
  185. package/dist/public/assets/{elk-XV6XMXQE-CLBx1s2b.js → elk-XV6XMXQE-pA-iT6fg.js} +1 -1
  186. package/dist/public/assets/{erDiagram-EYBAPDEH-Dsj6RYi5.js → erDiagram-EYBAPDEH-BpgBun7y.js} +1 -1
  187. package/dist/public/assets/{eventmodeling-K75KTNOO-smOORsSG.js → eventmodeling-K75KTNOO-CVfyCcul.js} +1 -1
  188. package/dist/public/assets/flowDiagram-MALGAFMO-BHlXeeVG.js +1 -0
  189. package/dist/public/assets/{freemarker2-DrLPw7Mc.js → freemarker2-dYGec-fT.js} +1 -1
  190. package/dist/public/assets/{ganttDiagram-23REXITY-BV9WK0rK.js → ganttDiagram-23REXITY-DjLTTWwA.js} +1 -1
  191. package/dist/public/assets/gitGraph-VSP46ZUC-CFVSDv3q.js +1 -0
  192. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CsSpSQ0T.js → gitGraphDiagram-STJD7YCW-D9m7IVyJ.js} +1 -1
  193. package/dist/public/assets/{handlebars-CLx5-csF.js → handlebars-Bxerz7ci.js} +1 -1
  194. package/dist/public/assets/{html-C9LmGm46.js → html-DlVnGsdp.js} +1 -1
  195. package/dist/public/assets/{index-CLWW0mVu.js → index-CZmGe9gc.js} +2 -2
  196. package/dist/public/assets/info-OHQRW6UA-C_Db4yjo.js +1 -0
  197. package/dist/public/assets/{infoDiagram-KBXO4MBG-wm5AnXDz.js → infoDiagram-KBXO4MBG-DoYdhkAy.js} +1 -1
  198. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-BLUBDeS3.js → ishikawaDiagram-M35NCXHK-Bc0GAInW.js} +1 -1
  199. package/dist/public/assets/{javascript-C4S1eQb7.js → javascript-DZrowo_I.js} +1 -1
  200. package/dist/public/assets/{journeyDiagram-OPLOXDXO-DXc7-I_g.js → journeyDiagram-OPLOXDXO-BM7Dwstu.js} +1 -1
  201. package/dist/public/assets/{jsonMode-lLJKR2M6.js → jsonMode-Bs30wPr5.js} +1 -1
  202. package/dist/public/assets/{kanban-definition-BZKZHSQY-D5Ra4L_5.js → kanban-definition-BZKZHSQY-CO-Crrdu.js} +1 -1
  203. package/dist/public/assets/{liquid-DRlm-XZd.js → liquid-dLz9d3ax.js} +1 -1
  204. package/dist/public/assets/{mdx-CzIqeqPy.js → mdx-DO0x92Kn.js} +1 -1
  205. package/dist/public/assets/{mermaid-parser.core-BIPB1BgS.js → mermaid-parser.core-BXwArNvw.js} +3 -3
  206. package/dist/public/assets/{mermaid.core-DxBlQ6oF.js → mermaid.core-C6mppfDC.js} +4 -4
  207. package/dist/public/assets/{mindmap-definition-I2QAS2VK-BdupvuYr.js → mindmap-definition-I2QAS2VK-vcQ2EU4T.js} +1 -1
  208. package/dist/public/assets/module-C0tELrcJ.js +1 -0
  209. package/dist/public/assets/{module-B8jze-Tx.js → module-Cm_mLwAQ.js} +1 -1
  210. package/dist/public/assets/module-CteT9pTP.js +2405 -0
  211. package/dist/public/assets/module-DDH-aU6z.js +1 -0
  212. package/dist/public/assets/module-DRofmFJn.js +1 -0
  213. package/dist/public/assets/{module-ZhkaqrNe.js → module-DUYj4E8T.js} +1 -1
  214. package/dist/public/assets/module-MaD4hvv4.js +1 -0
  215. package/dist/public/assets/module-ZDJutm0b.js +1 -0
  216. package/dist/public/assets/module-qoBVcE5h.js +1 -0
  217. package/dist/public/assets/{monaco-ChpJIYsY.js → monaco-J_Pr5zjk.js} +3 -3
  218. package/dist/public/assets/packet-JDAUHWVQ-Bw7hmDUU.js +1 -0
  219. package/dist/public/assets/{pegDiagram-FD4XPPHP-C_GF7Fng.js → pegDiagram-FD4XPPHP-DPDrbtS2.js} +1 -1
  220. package/dist/public/assets/pie-XZMESJXO-cb_eq1B6.js +1 -0
  221. package/dist/public/assets/{pieDiagram-J4AKIIQI-WlpNP-IM.js → pieDiagram-J4AKIIQI-DXuaepGJ.js} +1 -1
  222. package/dist/public/assets/{python-BJgFCfc8.js → python-nnmIOv4s.js} +1 -1
  223. package/dist/public/assets/{quadrantDiagram-XTYBLID2-CkCL5rJY.js → quadrantDiagram-XTYBLID2-BuD_-coZ.js} +1 -1
  224. package/dist/public/assets/radar-ABXABTNO-Dqy-xoY_.js +1 -0
  225. package/dist/public/assets/railroad-I3PHUGI6-CBPVCTd3.js +1 -0
  226. package/dist/public/assets/{railroad-abnf-LNEFI6M7-DZZKUytl.js → railroad-abnf-LNEFI6M7-CkCl68xY.js} +1 -1
  227. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CS7KsJdb.js → railroad-ebnf-DWYD2UWJ-DO3GiRv6.js} +1 -1
  228. package/dist/public/assets/{railroad-peg-JR7BVNR7-CiukTZVd.js → railroad-peg-JR7BVNR7-DZBsKy4P.js} +1 -1
  229. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-BS0R_H3-.js → railroadDiagram-MRQ6NCDL-BeLq7Mqp.js} +1 -1
  230. package/dist/public/assets/{razor-jcBIjr45.js → razor-l2rRITgB.js} +1 -1
  231. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-C0_T9jgl.js → requirementDiagram-Y7LWUY3S-BBizkrON.js} +1 -1
  232. package/dist/public/assets/{resolver-B7c_-amj.js → resolver-0zC31mg5.js} +1 -1
  233. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-DF15sUfS.js → sankeyDiagram-WGJFYUXA-tyo-p7oc.js} +1 -1
  234. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-7AkTLleX.js → sequenceDiagram-5NDRBG5M-BSGPbeJX.js} +1 -1
  235. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js → stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js} +1 -1
  236. package/dist/public/assets/{swimlanes-UMQ2AFYF-CR-ieLeo.js → swimlanes-UMQ2AFYF-BJfgQyQo.js} +1 -1
  237. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BWvcVkFg.js +8 -0
  238. package/dist/public/assets/{timeline-definition-SEUHKTQE-DeM0Uekm.js → timeline-definition-SEUHKTQE-Ch8aQwF6.js} +1 -1
  239. package/dist/public/assets/treeView-D4JQ5SDB--XUqgqA6.js +1 -0
  240. package/dist/public/assets/treemap-SAJKECNS-CfrNtG7H.js +1 -0
  241. package/dist/public/assets/{typescript-B7zp7QPf.js → typescript-LasX-M7S.js} +1 -1
  242. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-D6rDIgdU.js → usecaseDiagram-AFA6YXN4-BzlSB4R4.js} +1 -1
  243. package/dist/public/assets/{vennDiagram-NNMJR3RB-CncVDcMl.js → vennDiagram-NNMJR3RB-4xaWLrMk.js} +1 -1
  244. package/dist/public/assets/wardley-7MLQ67FV-BXBG-txR.js +1 -0
  245. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DKPAMfTE.js → wardleyDiagram-S7YFUSEH-C-iK1p-O.js} +1 -1
  246. package/dist/public/assets/{xml-BJIgLD52.js → xml-CGhYQUqn.js} +1 -1
  247. package/dist/public/assets/{xychartDiagram-GGNKY7IX-DmmXGebm.js → xychartDiagram-GGNKY7IX-CFsnisdM.js} +1 -1
  248. package/dist/public/assets/{yaml-Dxb2gmP5.js → yaml-BcOaPfuH.js} +1 -1
  249. package/dist/public/index.html +2 -2
  250. package/dist/serve/index.mjs +2333 -1253
  251. package/package.json +39 -39
  252. package/dist/pi/packages/ta-team/lib/join.d.ts +0 -28
  253. package/dist/pi/packages/ta-team/lib/join.js +0 -48
  254. package/dist/pi/packages/ta-team/lib/remote.d.ts +0 -31
  255. package/dist/pi/packages/ta-team/lib/remote.js +0 -128
  256. package/dist/pi/packages/ta-team/lib/seal.d.ts +0 -28
  257. package/dist/pi/packages/ta-team/lib/seal.js +0 -75
  258. package/dist/public/assets/cynefin-EF2NZ3EQ-DyqqRII3.js +0 -1
  259. package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +0 -1
  260. package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +0 -1
  261. package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +0 -1
  262. package/dist/public/assets/module-BPxWyxwR.js +0 -2362
  263. package/dist/public/assets/module-Blc8dqbf.js +0 -1
  264. package/dist/public/assets/module-C9WFrzAc.js +0 -1
  265. package/dist/public/assets/module-C_MSCGQC.js +0 -1
  266. package/dist/public/assets/module-CouMtASh.js +0 -1
  267. package/dist/public/assets/module-EGdAhoOx.js +0 -1
  268. package/dist/public/assets/module-EeaigZHL.js +0 -1
  269. package/dist/public/assets/packet-JDAUHWVQ-BjrqMgis.js +0 -1
  270. package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +0 -1
  271. package/dist/public/assets/radar-ABXABTNO-4nLUXAkG.js +0 -1
  272. package/dist/public/assets/railroad-I3PHUGI6-BD2LqZSr.js +0 -1
  273. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-COK2pFDF.js +0 -8
  274. package/dist/public/assets/treeView-D4JQ5SDB-BL13z_2J.js +0 -1
  275. package/dist/public/assets/treemap-SAJKECNS-Lx2qjQpO.js +0 -1
  276. package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +0 -1
@@ -328,6 +328,168 @@ var NearbyMeetUtil;
328
328
  import { createSocket } from "node:dgram";
329
329
  import { createConnection, createServer } from "node:net";
330
330
  import { networkInterfaces } from "node:os";
331
+
332
+ // ../ta-relay/esm/common/relay-bytes.js
333
+ var RelayBytes;
334
+ (function(RelayBytes2) {
335
+ function random(length) {
336
+ return globalThis.crypto.getRandomValues(new Uint8Array(length));
337
+ }
338
+ RelayBytes2.random = random;
339
+ function toBase64(bytes) {
340
+ let binary = "";
341
+ for (const byte of bytes) {
342
+ binary += String.fromCharCode(byte);
343
+ }
344
+ return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
345
+ }
346
+ RelayBytes2.toBase64 = toBase64;
347
+ function fromBase64(text) {
348
+ if (!/^[A-Za-z0-9_-]*$/.test(text)) {
349
+ throw new Error("Not base64url.");
350
+ }
351
+ const binary = atob(text.replace(/-/g, "+").replace(/_/g, "/"));
352
+ const bytes = new Uint8Array(binary.length);
353
+ for (let i = 0;i < binary.length; i++) {
354
+ bytes[i] = binary.charCodeAt(i);
355
+ }
356
+ return bytes;
357
+ }
358
+ RelayBytes2.fromBase64 = fromBase64;
359
+ function concat(...parts) {
360
+ const bytes = new Uint8Array(parts.reduce((length, part) => length + part.length, 0));
361
+ let offset = 0;
362
+ for (const part of parts) {
363
+ bytes.set(part, offset);
364
+ offset += part.length;
365
+ }
366
+ return bytes;
367
+ }
368
+ RelayBytes2.concat = concat;
369
+ })(RelayBytes || (RelayBytes = {}));
370
+
371
+ // ../ta-relay/esm/common/relay-identity.js
372
+ var encoder = new TextEncoder;
373
+ var decoder = new TextDecoder;
374
+ var subtle = () => globalThis.crypto.subtle;
375
+ var SIGN = { name: "ECDSA", namedCurve: "P-256" };
376
+ var BOX = { name: "ECDH", namedCurve: "P-256" };
377
+ var SIGNATURE = { name: "ECDSA", hash: "SHA-256" };
378
+ var RelayKeys;
379
+ (function(RelayKeys2) {
380
+ async function hkdf(key, salt, info) {
381
+ const secret = await subtle().importKey("raw", key, "HKDF", false, ["deriveBits"]);
382
+ const bits = await subtle().deriveBits({ name: "HKDF", hash: "SHA-256", salt, info: encoder.encode(info) }, secret, 256);
383
+ return new Uint8Array(bits);
384
+ }
385
+ RelayKeys2.hkdf = hkdf;
386
+ async function sha256(bytes) {
387
+ const data = typeof bytes === "string" ? encoder.encode(bytes) : bytes;
388
+ return new Uint8Array(await subtle().digest("SHA-256", data));
389
+ }
390
+ RelayKeys2.sha256 = sha256;
391
+ async function hash(text) {
392
+ return RelayBytes.toBase64(await sha256(text));
393
+ }
394
+ RelayKeys2.hash = hash;
395
+ async function hmac(key, text) {
396
+ const imported = await subtle().importKey("raw", key, { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
397
+ return RelayBytes.toBase64(new Uint8Array(await subtle().sign("HMAC", imported, encoder.encode(text))));
398
+ }
399
+ RelayKeys2.hmac = hmac;
400
+ function aesKey(key) {
401
+ return subtle().importKey("raw", key, "AES-GCM", false, ["encrypt", "decrypt"]);
402
+ }
403
+ RelayKeys2.aesKey = aesKey;
404
+ async function seal(key, text) {
405
+ const iv = RelayBytes.random(12);
406
+ const sealed = await subtle().encrypt({ name: "AES-GCM", iv }, key, encoder.encode(text));
407
+ return RelayBytes.toBase64(RelayBytes.concat(iv, new Uint8Array(sealed)));
408
+ }
409
+ RelayKeys2.seal = seal;
410
+ async function open(key, sealed) {
411
+ const bytes = RelayBytes.fromBase64(sealed);
412
+ const opened = await subtle().decrypt({ name: "AES-GCM", iv: bytes.subarray(0, 12) }, key, bytes.subarray(12));
413
+ return decoder.decode(opened);
414
+ }
415
+ RelayKeys2.open = open;
416
+ })(RelayKeys || (RelayKeys = {}));
417
+ var RelayIdentityUtil;
418
+ (function(RelayIdentityUtil2) {
419
+ async function create(name, now = Date.now()) {
420
+ const sign2 = await subtle().generateKey(SIGN, true, ["sign", "verify"]);
421
+ const box = await subtle().generateKey(BOX, true, ["deriveBits"]);
422
+ const raw = async (key) => RelayBytes.toBase64(new Uint8Array(await subtle().exportKey("raw", key)));
423
+ const [signPublic, boxPublic] = await Promise.all([raw(sign2.publicKey), raw(box.publicKey)]);
424
+ return {
425
+ id: await id(signPublic, boxPublic),
426
+ name,
427
+ sign: signPublic,
428
+ box: boxPublic,
429
+ signKey: await subtle().exportKey("jwk", sign2.privateKey),
430
+ boxKey: await subtle().exportKey("jwk", box.privateKey),
431
+ createdAt: now
432
+ };
433
+ }
434
+ RelayIdentityUtil2.create = create;
435
+ async function id(sign2, box) {
436
+ const digest = await RelayKeys.sha256(RelayBytes.concat(RelayBytes.fromBase64(sign2), RelayBytes.fromBase64(box)));
437
+ return RelayBytes.toBase64(digest.subarray(0, 16));
438
+ }
439
+ RelayIdentityUtil2.id = id;
440
+ async function check(identity) {
441
+ try {
442
+ if (identity.id !== await id(identity.sign, identity.box)) {
443
+ return false;
444
+ }
445
+ await Promise.all([importSign(identity.sign), importBox(identity.box)]);
446
+ return true;
447
+ } catch (_a) {
448
+ return false;
449
+ }
450
+ }
451
+ RelayIdentityUtil2.check = check;
452
+ function publicOf(identity) {
453
+ return withLook({ id: identity.id, name: identity.name, sign: identity.sign, box: identity.box }, identity.look);
454
+ }
455
+ RelayIdentityUtil2.publicOf = publicOf;
456
+ function isLook(look) {
457
+ return typeof look === "string" && /^[a-z][a-z0-9-]{0,31}$/.test(look);
458
+ }
459
+ RelayIdentityUtil2.isLook = isLook;
460
+ function withLook(value, look) {
461
+ const { look: _, ...rest } = value;
462
+ return isLook(look) ? { ...rest, look } : rest;
463
+ }
464
+ RelayIdentityUtil2.withLook = withLook;
465
+ async function sign(identity, text) {
466
+ const key = await subtle().importKey("jwk", identity.signKey, SIGN, false, ["sign"]);
467
+ return RelayBytes.toBase64(new Uint8Array(await subtle().sign(SIGNATURE, key, encoder.encode(text))));
468
+ }
469
+ RelayIdentityUtil2.sign = sign;
470
+ async function verify(signPublic, text, signature) {
471
+ try {
472
+ return await subtle().verify(SIGNATURE, await importSign(signPublic), RelayBytes.fromBase64(signature), encoder.encode(text));
473
+ } catch (_a) {
474
+ return false;
475
+ }
476
+ }
477
+ RelayIdentityUtil2.verify = verify;
478
+ async function agree(identity, otherBox, salt, info) {
479
+ const own = await subtle().importKey("jwk", identity.boxKey, BOX, false, ["deriveBits"]);
480
+ const shared = await subtle().deriveBits({ name: "ECDH", public: await importBox(otherBox) }, own, 256);
481
+ return RelayKeys.hkdf(new Uint8Array(shared), encoder.encode(salt), info);
482
+ }
483
+ RelayIdentityUtil2.agree = agree;
484
+ function importSign(raw) {
485
+ return subtle().importKey("raw", RelayBytes.fromBase64(raw), SIGN, false, ["verify"]);
486
+ }
487
+ function importBox(raw) {
488
+ return subtle().importKey("raw", RelayBytes.fromBase64(raw), BOX, false, []);
489
+ }
490
+ })(RelayIdentityUtil || (RelayIdentityUtil = {}));
491
+
492
+ // web-src/nearby-net.ts
331
493
  var OFFERS = ["show", "work"];
332
494
  var MAX_LINE = 1500000;
333
495
  var SEND_MS = 4000;
@@ -367,7 +529,8 @@ var NearbyNetUtil;
367
529
  x: data.x,
368
530
  h: data.h,
369
531
  ...offers.length ? { o: [...new Set(offers)] } : {},
370
- ...data.m === 1 ? { m: 1 } : {}
532
+ ...data.m === 1 ? { m: 1 } : {},
533
+ ...RelayIdentityUtil.isLook(data.l) ? { l: data.l } : {}
371
534
  };
372
535
  } catch {
373
536
  return;
@@ -911,6 +1074,7 @@ var GATHER_MS = 5 * 60000;
911
1074
  var PROPOSE_GAP_MS = 2 * 60 * 60000;
912
1075
  var SKEW_MS = 5 * 60000;
913
1076
  var TICK_MS = 2000;
1077
+ var IDENTITY_MS = 1e4;
914
1078
  var INITIATIVE = "@celljs/ta-initiative";
915
1079
  var NOTIFY = "@celljs/ta-notify";
916
1080
  var ROOM_KIND = "nearby.room";
@@ -933,6 +1097,7 @@ class NearbyService {
933
1097
  sent = new Map;
934
1098
  received = new Map;
935
1099
  identity;
1100
+ identityAt = 0;
936
1101
  friends = [];
937
1102
  friendsAt = 0;
938
1103
  error;
@@ -1023,7 +1188,11 @@ class NearbyService {
1023
1188
  return {
1024
1189
  visible: !!this.visible,
1025
1190
  ...this.visible?.until !== undefined ? { until: this.visible.until } : {},
1026
- self: { name: this.selfName(), face: this.identity ? FaceUtil.of(this.identity.id) : 0 },
1191
+ self: {
1192
+ name: this.selfName(),
1193
+ face: this.identity ? FaceUtil.of(this.identity.id) : 0,
1194
+ ...this.identity?.look ? { look: this.identity.look } : {}
1195
+ },
1027
1196
  peers: this.peers(),
1028
1197
  invites: [...this.received.values()].filter((invite) => now - invite.at < INVITE_MS).map(({ link: _, ...invite }) => invite),
1029
1198
  ...this.shown ? { shown: NearbyService.withoutData(this.shown) } : {},
@@ -1035,7 +1204,15 @@ class NearbyService {
1035
1204
  };
1036
1205
  }
1037
1206
  peers() {
1038
- return [...this.heard.values()].sort((a, b) => a.since - b.since).map(({ data, since, friend }) => ({ e: data.e, name: data.n, face: data.f, ...friend ? { friend } : {}, offers: data.o ?? [], since }));
1207
+ return [...this.heard.values()].sort((a, b) => a.since - b.since).map(({ data, since, friend }) => ({
1208
+ e: data.e,
1209
+ name: data.n,
1210
+ face: data.f,
1211
+ ...data.l ? { look: data.l } : {},
1212
+ ...friend ? { friend } : {},
1213
+ offers: data.o ?? [],
1214
+ since
1215
+ }));
1039
1216
  }
1040
1217
  section() {
1041
1218
  if (!this.visible) {
@@ -1114,6 +1291,7 @@ class NearbyService {
1114
1291
  e: keys.e,
1115
1292
  n: this.selfName(),
1116
1293
  f: this.identity ? FaceUtil.of(this.identity.id) : 0,
1294
+ ...this.identity?.look ? { l: this.identity.look } : {},
1117
1295
  p: port,
1118
1296
  a: NearbyNetUtil.addresses(),
1119
1297
  x: keys.x,
@@ -1132,9 +1310,10 @@ class NearbyService {
1132
1310
  return this.settings.hideName ? "" : (this.identity?.name ?? "").slice(0, 40);
1133
1311
  }
1134
1312
  async loadIdentity() {
1313
+ this.identityAt = this.now();
1135
1314
  try {
1136
1315
  const identity = await this.host.rooms.getIdentity();
1137
- this.identity = { id: identity.id, name: identity.name };
1316
+ this.identity = { id: identity.id, name: identity.name, ...identity.look ? { look: identity.look } : {} };
1138
1317
  } catch {}
1139
1318
  }
1140
1319
  async tick() {
@@ -1147,6 +1326,9 @@ class NearbyService {
1147
1326
  await this.publish(true);
1148
1327
  return;
1149
1328
  }
1329
+ if (this.keys && now - this.identityAt >= IDENTITY_MS) {
1330
+ await this.loadIdentity();
1331
+ }
1150
1332
  if (this.keys && now - this.keys.createdAt >= SLOT_MS) {
1151
1333
  this.previous = this.keys;
1152
1334
  this.keys = new NearbyKeys(now);
@@ -1331,6 +1513,7 @@ class NearbyService {
1331
1513
  title: String(message.title ?? "").slice(0, 80) || NearbyTexts.nearby(),
1332
1514
  name: heard.data.n,
1333
1515
  face: heard.data.f,
1516
+ ...heard.data.l ? { look: heard.data.l } : {},
1334
1517
  ...heard.friend ? { friend: heard.friend } : {},
1335
1518
  ...typeof message.why === "string" && message.why ? { why: message.why.slice(0, 200) } : {},
1336
1519
  at: this.now(),
@@ -1405,6 +1588,7 @@ class NearbyService {
1405
1588
  kind: message.kind,
1406
1589
  name: heard.data.n,
1407
1590
  face: heard.data.f,
1591
+ ...heard.data.l ? { look: heard.data.l } : {},
1408
1592
  ...heard.friend ? { friend: heard.friend } : {},
1409
1593
  ask: mode === "ask",
1410
1594
  at: this.now(),
@@ -1586,6 +1770,7 @@ class NearbyService {
1586
1770
  e: heard.data.e,
1587
1771
  name: heard.data.n,
1588
1772
  face: heard.data.f,
1773
+ ...heard.data.l ? { look: heard.data.l } : {},
1589
1774
  ...heard.friend ? { friend: heard.friend } : {},
1590
1775
  line: String(message.line ?? "").slice(0, 200),
1591
1776
  why: String(message.why ?? "").slice(0, 300),
@@ -38,7 +38,7 @@ function activate(pi) {
38
38
  };
39
39
  pi.on('before_agent_start', async (event, ctx) => {
40
40
  var _a;
41
- if (ctx.getSystemPrompt().includes(ta_extension_host_1.TA_WITH_OTHERS_MARK)) {
41
+ if (ta_extension_host_1.TaHostUtil.marked(ctx.getSystemPrompt(), ta_extension_host_1.TA_WITH_OTHERS_MARK)) {
42
42
  return undefined;
43
43
  }
44
44
  const section = (_a = (await reach()).service) === null || _a === void 0 ? void 0 : _a.section();
@@ -4,6 +4,7 @@ exports.NearbyChannel = exports.NearbyBeacon = exports.NearbyNetUtil = void 0;
4
4
  const node_dgram_1 = require("node:dgram");
5
5
  const node_net_1 = require("node:net");
6
6
  const node_os_1 = require("node:os");
7
+ const relay_identity_1 = require("@celljs/ta-relay/lib/common/relay-identity");
7
8
  const OFFERS = ['show', 'work'];
8
9
  /** A line of the channel at most: a message and its seal. */
9
10
  const MAX_LINE = 1500000;
@@ -70,6 +71,7 @@ var NearbyNetUtil;
70
71
  h: data.h,
71
72
  ...(offers.length ? { o: [...new Set(offers)] } : {}),
72
73
  ...(data.m === 1 ? { m: 1 } : {}),
74
+ ...(relay_identity_1.RelayIdentityUtil.isLook(data.l) ? { l: data.l } : {}),
73
75
  };
74
76
  }
75
77
  catch (_a) {
@@ -51,6 +51,8 @@ export interface NearbyShown {
51
51
  /** Who shows it. */
52
52
  name: string;
53
53
  face: number;
54
+ /** The look of its double (TaIdentity.look): drawn as that dinosaur. None from a Ta of before. */
55
+ look?: string;
54
56
  friend?: {
55
57
  id: string;
56
58
  name: string;
@@ -76,6 +78,8 @@ export interface NearbyPeer {
76
78
  /** The name it gives; empty when it shows none. A stranger's is only what it says. */
77
79
  name: string;
78
80
  face: number;
81
+ /** The look of its double (TaIdentity.look): drawn as that dinosaur. None from a Ta of before. */
82
+ look?: string;
79
83
  /** A Ta friend recognized by its mark: who it is for sure. */
80
84
  friend?: {
81
85
  id: string;
@@ -93,6 +97,8 @@ export interface NearbyInvite {
93
97
  title: string;
94
98
  name: string;
95
99
  face: number;
100
+ /** The look of its double (TaIdentity.look): drawn as that dinosaur. None from a Ta of before. */
101
+ look?: string;
96
102
  friend?: {
97
103
  id: string;
98
104
  name: string;
@@ -106,6 +112,8 @@ export interface NearbyGreet {
106
112
  e: string;
107
113
  name: string;
108
114
  face: number;
115
+ /** The look of its double (TaIdentity.look): drawn as that dinosaur. None from a Ta of before. */
116
+ look?: string;
109
117
  friend?: {
110
118
  id: string;
111
119
  name: string;
@@ -122,6 +130,7 @@ export interface NearbyStatus {
122
130
  self: {
123
131
  name: string;
124
132
  face: number;
133
+ look?: string;
125
134
  };
126
135
  peers: NearbyPeer[];
127
136
  invites: NearbyInvite[];
@@ -218,6 +227,8 @@ export interface NearbyBeaconData {
218
227
  e: string;
219
228
  n: string;
220
229
  f: number;
230
+ /** The look of its double (TaIdentity.look). */
231
+ l?: string;
221
232
  p: number;
222
233
  a: string[];
223
234
  x: string;
@@ -77,7 +77,10 @@ export declare class NearbyService {
77
77
  protected identity?: {
78
78
  id: string;
79
79
  name: string;
80
+ look?: string;
80
81
  };
82
+ /** When the identity was last read. */
83
+ protected identityAt: number;
81
84
  protected friends: TaFriend[];
82
85
  protected friendsAt: number;
83
86
  protected error?: string;
@@ -20,6 +20,8 @@ const PROPOSE_GAP_MS = 2 * 60 * 60000;
20
20
  /** Messages older or newer than this are dropped. */
21
21
  const SKEW_MS = 5 * 60000;
22
22
  const TICK_MS = 2000;
23
+ /** How often the identity is read again while visible: its name or look may change. */
24
+ const IDENTITY_MS = 10000;
23
25
  const INITIATIVE = '@celljs/ta-initiative';
24
26
  const NOTIFY = '@celljs/ta-notify';
25
27
  exports.ROOM_KIND = 'nearby.room';
@@ -45,6 +47,8 @@ class NearbyService {
45
47
  this.heard = new Map();
46
48
  this.sent = new Map();
47
49
  this.received = new Map();
50
+ /** When the identity was last read. */
51
+ this.identityAt = 0;
48
52
  this.friends = [];
49
53
  this.friendsAt = 0;
50
54
  this.published = '';
@@ -127,12 +131,16 @@ class NearbyService {
127
131
  return !!this.visible;
128
132
  }
129
133
  status() {
130
- var _a;
134
+ var _a, _b;
131
135
  const now = this.now();
132
136
  return {
133
137
  visible: !!this.visible,
134
138
  ...(((_a = this.visible) === null || _a === void 0 ? void 0 : _a.until) !== undefined ? { until: this.visible.until } : {}),
135
- self: { name: this.selfName(), face: this.identity ? relay_faces_1.FaceUtil.of(this.identity.id) : 0 },
139
+ self: {
140
+ name: this.selfName(),
141
+ face: this.identity ? relay_faces_1.FaceUtil.of(this.identity.id) : 0,
142
+ ...(((_b = this.identity) === null || _b === void 0 ? void 0 : _b.look) ? { look: this.identity.look } : {}),
143
+ },
136
144
  peers: this.peers(),
137
145
  invites: [...this.received.values()].filter(invite => now - invite.at < INVITE_MS).map(({ link: _, ...invite }) => invite),
138
146
  ...(this.shown ? { shown: NearbyService.withoutData(this.shown) } : {}),
@@ -146,7 +154,15 @@ class NearbyService {
146
154
  peers() {
147
155
  return [...this.heard.values()]
148
156
  .sort((a, b) => a.since - b.since)
149
- .map(({ data, since, friend }) => { var _a; return ({ e: data.e, name: data.n, face: data.f, ...(friend ? { friend } : {}), offers: (_a = data.o) !== null && _a !== void 0 ? _a : [], since }); });
157
+ .map(({ data, since, friend }) => { var _a; return ({
158
+ e: data.e,
159
+ name: data.n,
160
+ face: data.f,
161
+ ...(data.l ? { look: data.l } : {}),
162
+ ...(friend ? { friend } : {}),
163
+ offers: (_a = data.o) !== null && _a !== void 0 ? _a : [],
164
+ since,
165
+ }); });
150
166
  }
151
167
  /** What Ta is told of who is around, in the user's conversations; none while the user is not visible. */
152
168
  section() {
@@ -226,8 +242,8 @@ class NearbyService {
226
242
  this.heard.clear();
227
243
  }
228
244
  beaconData(port) {
229
- var _a;
230
- var _b;
245
+ var _a, _b;
246
+ var _c;
231
247
  const keys = this.keys;
232
248
  return {
233
249
  t: 'ta-near',
@@ -235,10 +251,11 @@ class NearbyService {
235
251
  e: keys.e,
236
252
  n: this.selfName(),
237
253
  f: this.identity ? relay_faces_1.FaceUtil.of(this.identity.id) : 0,
254
+ ...(((_a = this.identity) === null || _a === void 0 ? void 0 : _a.look) ? { l: this.identity.look } : {}),
238
255
  p: port,
239
256
  a: nearby_net_1.NearbyNetUtil.addresses(),
240
257
  x: keys.x,
241
- h: nearby_crypto_1.NearbyCrypto.mark((_b = (_a = this.identity) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : '', nearby_crypto_1.NearbyCrypto.slot(this.now())),
258
+ h: nearby_crypto_1.NearbyCrypto.mark((_c = (_b = this.identity) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : '', nearby_crypto_1.NearbyCrypto.slot(this.now())),
242
259
  ...(this.offers().length ? { o: this.offers() } : {}),
243
260
  ...(this.meets() ? { m: 1 } : {}),
244
261
  };
@@ -257,9 +274,10 @@ class NearbyService {
257
274
  return this.settings.hideName ? '' : ((_b = (_a = this.identity) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : '').slice(0, 40);
258
275
  }
259
276
  async loadIdentity() {
277
+ this.identityAt = this.now();
260
278
  try {
261
279
  const identity = await this.host.rooms.getIdentity();
262
- this.identity = { id: identity.id, name: identity.name };
280
+ this.identity = { id: identity.id, name: identity.name, ...(identity.look ? { look: identity.look } : {}) };
263
281
  }
264
282
  catch (_a) {
265
283
  // Rooms are off: no mark of its own.
@@ -274,6 +292,10 @@ class NearbyService {
274
292
  await this.publish(true);
275
293
  return;
276
294
  }
295
+ // The double's look may have changed: the next beacon says it.
296
+ if (this.keys && now - this.identityAt >= IDENTITY_MS) {
297
+ await this.loadIdentity();
298
+ }
277
299
  if (this.keys && now - this.keys.createdAt >= nearby_crypto_1.SLOT_MS) {
278
300
  this.previous = this.keys;
279
301
  this.keys = new nearby_crypto_1.NearbyKeys(now);
@@ -467,6 +489,7 @@ class NearbyService {
467
489
  title: String((_a = message.title) !== null && _a !== void 0 ? _a : '').slice(0, 80) || server_texts_1.NearbyTexts.nearby(),
468
490
  name: heard.data.n,
469
491
  face: heard.data.f,
492
+ ...(heard.data.l ? { look: heard.data.l } : {}),
470
493
  ...(heard.friend ? { friend: heard.friend } : {}),
471
494
  ...(typeof message.why === 'string' && message.why ? { why: message.why.slice(0, 200) } : {}),
472
495
  at: this.now(),
@@ -544,6 +567,7 @@ class NearbyService {
544
567
  kind: message.kind,
545
568
  name: heard.data.n,
546
569
  face: heard.data.f,
570
+ ...(heard.data.l ? { look: heard.data.l } : {}),
547
571
  ...(heard.friend ? { friend: heard.friend } : {}),
548
572
  ask: mode === 'ask',
549
573
  at: this.now(),
@@ -741,6 +765,7 @@ class NearbyService {
741
765
  e: heard.data.e,
742
766
  name: heard.data.n,
743
767
  face: heard.data.f,
768
+ ...(heard.data.l ? { look: heard.data.l } : {}),
744
769
  ...(heard.friend ? { friend: heard.friend } : {}),
745
770
  line: String((_a = message.line) !== null && _a !== void 0 ? _a : '').slice(0, 200),
746
771
  why: String((_b = message.why) !== null && _b !== void 0 ? _b : '').slice(0, 300),
@@ -115,8 +115,9 @@ function restOfDay(now = new Date()) {
115
115
  end.setHours(23, 59, 59, 999);
116
116
  return Math.max(1, Math.round((end.getTime() - now.getTime()) / 60000));
117
117
  }
118
- function Face({ seed, face, size }) {
119
- return react_1.React.createElement(exports.pi.ui.Face, { seed: seed, face: face, size: size });
118
+ /** One nearby, as its double looks (`look`); its face in a Ta of before. */
119
+ function Face({ seed, face, look, size }) {
120
+ return react_1.React.createElement(exports.pi.ui.Face, { seed: seed, face: face, look: look, size: size });
120
121
  }
121
122
  /** Rings that go out from the user: looking around. */
122
123
  function Looking({ peers }) {
@@ -134,7 +135,7 @@ function Looking({ peers }) {
134
135
  react_1.React.createElement("span", { className: "tnb-ring tnb-ring-3" }),
135
136
  react_1.React.createElement("span", { className: "tnb-me" }, exports.pi.ui.Avatar ? react_1.React.createElement(exports.pi.ui.Avatar, { size: 44 }) : null),
136
137
  shown.map((peer, index) => { var _a; var _b; return (react_1.React.createElement("span", { key: peer.e, className: "tnb-spot", style: { left: `${spots[index][0] * 100}%`, top: `${spots[index][1] * 100}%` } },
137
- react_1.React.createElement(Face, { seed: (_b = (_a = peer.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : peer.e, face: peer.face, size: 30 }))); })));
138
+ react_1.React.createElement(Face, { seed: (_b = (_a = peer.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : peer.e, face: peer.face, look: peer.look, size: 30 }))); })));
138
139
  }
139
140
  function Busy({ children, onClick, primary }) {
140
141
  const [busy, run] = exports.pi.ui.useBusy ? exports.pi.ui.useBusy() : [false, async (action) => action()];
@@ -168,7 +169,7 @@ function PeerTile({ peer, chosen, toggle }) {
168
169
  return (react_1.React.createElement("li", null,
169
170
  react_1.React.createElement("button", { type: "button", className: `tnb-peer${chosen ? ' tnb-chosen' : ''}`, "aria-pressed": chosen, onClick: toggle },
170
171
  react_1.React.createElement("span", { className: "tnb-peer-face" },
171
- react_1.React.createElement(Face, { seed: (_b = (_a = peer.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : peer.e, face: peer.face, size: 52 }),
172
+ react_1.React.createElement(Face, { seed: (_b = (_a = peer.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : peer.e, face: peer.face, look: peer.look, size: 52 }),
172
173
  react_1.React.createElement("span", { className: "tnb-check" }, exports.pi.ui.SelectCheck ? react_1.React.createElement(exports.pi.ui.SelectCheck, { checked: chosen }) : null)),
173
174
  react_1.React.createElement("span", { className: "tnb-peer-name tnb-ellipsis" }, who(peer)),
174
175
  peer.friend && react_1.React.createElement("span", { className: "tnb-tag tnb-tag-friend" }, t('friend')))));
@@ -177,7 +178,7 @@ function InviteRow({ invite }) {
177
178
  var _a;
178
179
  var _b;
179
180
  return (react_1.React.createElement("li", { className: "tnb-invite" },
180
- react_1.React.createElement(Face, { seed: (_b = (_a = invite.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : invite.e, face: invite.face, size: 40 }),
181
+ react_1.React.createElement(Face, { seed: (_b = (_a = invite.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : invite.e, face: invite.face, look: invite.look, size: 40 }),
181
182
  react_1.React.createElement("div", { className: "tnb-invite-text" },
182
183
  react_1.React.createElement("span", null, t('invited', { name: who(invite), title: invite.title })),
183
184
  invite.why && react_1.React.createElement("span", { className: "tnb-quiet" }, invite.why)),
@@ -315,7 +316,7 @@ function ShowOverlay({ shown, close }) {
315
316
  return (react_1.React.createElement(exports.pi.ui.Dialog, { title: t('title'), onClose: finish },
316
317
  react_1.React.createElement("div", { className: "tnb-dialog" },
317
318
  react_1.React.createElement("div", { className: "tnb-dialog-head" },
318
- react_1.React.createElement(Face, { seed: (_d = (_b = current.friend) === null || _b === void 0 ? void 0 : _b.id) !== null && _d !== void 0 ? _d : current.k, face: current.face, size: 48 }),
319
+ react_1.React.createElement(Face, { seed: (_d = (_b = current.friend) === null || _b === void 0 ? void 0 : _b.id) !== null && _d !== void 0 ? _d : current.k, face: current.face, look: current.look, size: 48 }),
319
320
  react_1.React.createElement("strong", null, t('wantsToShow', { name: who(current), title: current.title }))),
320
321
  react_1.React.createElement("p", { className: "tnb-quiet" }, [t('showNote'), current.friend ? '' : t('inviteStranger')].filter(Boolean).join(exports.pi.ui.language === 'zh-CN' ? '' : ' ')),
321
322
  react_1.React.createElement("div", { className: "tnb-actions tnb-dialog-actions" },
@@ -324,7 +325,7 @@ function ShowOverlay({ shown, close }) {
324
325
  }
325
326
  return (react_1.React.createElement(exports.pi.ui.FullScreen, { className: "tnb-show" },
326
327
  react_1.React.createElement("div", { className: "tnb-show-bar" },
327
- react_1.React.createElement(Face, { seed: (_e = (_c = current.friend) === null || _c === void 0 ? void 0 : _c.id) !== null && _e !== void 0 ? _e : current.k, face: current.face, size: 26 }),
328
+ react_1.React.createElement(Face, { seed: (_e = (_c = current.friend) === null || _c === void 0 ? void 0 : _c.id) !== null && _e !== void 0 ? _e : current.k, face: current.face, look: current.look, size: 26 }),
328
329
  react_1.React.createElement("span", { className: "tnb-show-title tnb-ellipsis" }, current.title),
329
330
  react_1.React.createElement("span", { className: "tnb-quiet tnb-ellipsis" }, t('from', { name: who(current) })),
330
331
  react_1.React.createElement("button", { type: "button", className: "ta-button", onClick: finish }, t('close'))),
@@ -381,7 +382,7 @@ function GreetRow({ greet }) {
381
382
  }
382
383
  };
383
384
  return (react_1.React.createElement("li", { className: "tnb-invite" },
384
- react_1.React.createElement(Face, { seed: (_b = (_a = greet.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : greet.e, face: greet.face, size: 40 }),
385
+ react_1.React.createElement(Face, { seed: (_b = (_a = greet.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : greet.e, face: greet.face, look: greet.look, size: 40 }),
385
386
  react_1.React.createElement("div", { className: "tnb-invite-text" },
386
387
  react_1.React.createElement("span", null, t('greetLine', { name: who(greet) })),
387
388
  greet.line && react_1.React.createElement("span", null, greet.line),
@@ -496,7 +497,7 @@ function openInvite(invite) {
496
497
  return (react_1.React.createElement(exports.pi.ui.Dialog, { title: t('title'), onClose: done },
497
498
  react_1.React.createElement("div", { className: "tnb-dialog" },
498
499
  react_1.React.createElement("div", { className: "tnb-dialog-head" },
499
- react_1.React.createElement(Face, { seed: (_b = (_a = invite.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : invite.e, face: invite.face, size: 48 }),
500
+ react_1.React.createElement(Face, { seed: (_b = (_a = invite.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : invite.e, face: invite.face, look: invite.look, size: 48 }),
500
501
  react_1.React.createElement("div", { className: "tnb-invite-text" },
501
502
  react_1.React.createElement("strong", null, t('invited', { name: who(invite), title: invite.title })),
502
503
  invite.friend ? react_1.React.createElement("span", { className: "tnb-tag tnb-tag-friend" }, t('friend')) : null)),
@@ -1,4 +1,4 @@
1
1
  /** The styles of the package; only the --ta-* variables of the page, so they follow its theme. Prefix `tnb-`. */
2
- export declare const STYLE = "\n.tnb-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tnb-quiet { color: var(--ta-muted); }\n.tnb-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; }\n.tnb-body { display: flex; flex-direction: column; gap: 18px; max-width: 560px; margin: 0 auto; padding: 12px 16px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n.tnb-section h3 { margin: 0 0 6px; padding: 0 4px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.tnb-card { margin: 0; padding: 2px 10px; list-style: none; border-radius: 14px; background: var(--ta-raised); }\n.tnb-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 0; }\n.tnb-invite > .ta-face, .tnb-invite > .trm-face { align-self: flex-start; }\n.tnb-invite .tnb-actions { margin-left: auto; }\n.tnb-invite + .tnb-invite { border-top: 1px solid var(--ta-border-muted); }\n.tnb-invite-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 200px; min-width: 0; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.45; }\n.tnb-invite-text .tnb-tag { align-self: flex-start; }\n.tnb-actions { display: flex; gap: 8px; flex: none; }\n/* Off: what it does, and for how long */\n.tnb-off, .tnb-on { display: flex; flex-direction: column; align-items: center; text-align: center; }\n.tnb-off h2 { margin: 6px 0 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }\n.tnb-off p { max-width: 380px; margin: 0; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; }\n.tnb-durations { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; margin-top: 20px; }\n.tnb-durations .ta-button { width: 100%; justify-content: center; min-height: 40px; }\n/* Rings that go out from the user */\n.tnb-looking { position: relative; width: 220px; height: 220px; margin: 8px 0 4px; }\n.tnb-ring { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ta-accent, var(--ta-link)) 35%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--ta-accent, var(--ta-link)) 7%, transparent) 0%, transparent 70%); animation: tnb-out 3.6s ease-out infinite; opacity: 0; }\n.tnb-ring-2 { animation-delay: 1.2s; }\n.tnb-ring-3 { animation-delay: 2.4s; }\n@keyframes tnb-out { 0% { transform: scale(0.25); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }\n@media (prefers-reduced-motion: reduce) { .tnb-ring { animation: none; opacity: 0.5; } .tnb-ring-2 { transform: scale(0.66); } .tnb-ring-3 { transform: scale(0.33); } }\n.tnb-me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }\n.tnb-spot { position: absolute; transform: translate(-50%, -50%); animation: tnb-in 300ms ease-out both; }\n@keyframes tnb-in { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } }\n.tnb-on-line { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-green); }\n.tnb-link { padding: 2px 6px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.tnb-link:hover { background: var(--ta-hover); }\n.tnb-error { margin: 8px 0 0; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-nobody { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; text-align: center; font-size: calc(13px * var(--ta-font-scale)); }\n/* Those around: tiles to choose */\n.tnb-peers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }\n.tnb-peers > li { width: 96px; }\n.tnb-peer { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; padding: 12px 6px 10px; border: 1px solid transparent; border-radius: 14px; background: var(--ta-raised); color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 120ms, opacity 120ms; }\n.tnb-peer:not(.tnb-chosen) { opacity: 0.55; }\n.tnb-peer.tnb-chosen { border-color: color-mix(in srgb, var(--ta-accent, var(--ta-link)) 45%, transparent); }\n.tnb-peer:focus-visible { outline: 1px solid var(--ta-border-focus); }\n.tnb-peer-face { position: relative; display: inline-flex; }\n.tnb-check { position: absolute; right: -4px; bottom: -4px; }\n.tnb-peer-name { max-width: 100%; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.tnb-tag { padding: 0 6px; border-radius: 6px; background: var(--ta-chip, var(--ta-hover)); color: var(--ta-secondary); font-size: calc(10.5px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }\n.tnb-tag-friend { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.tnb-make { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }\n.tnb-make .ta-button { min-width: 200px; min-height: 40px; justify-content: center; }\n.tnb-make p { margin: 0; font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-code-row { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); text-align: center; }\n.tnb-code-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 12px; border-radius: 14px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); text-align: center; }\n.tnb-code { font-size: calc(30px * var(--ta-font-scale)); font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }\n.tnb-self { display: flex; justify-content: center; gap: 8px; margin: 0; font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-select { height: 32px; padding: 0 28px 0 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-field { display: flex; flex-direction: column; gap: 4px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.tnb-input { box-sizing: border-box; width: 100%; padding: 7px 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); resize: vertical; }\n.tnb-input:focus { outline: none; border-color: var(--ta-border-focus); }\n.tnb-grow { flex: 1; }\n.tnb-meet { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); }\n.tnb-card-setting { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 360px; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-card-setting .ta-button { flex: none; }\n/* What one nearby shows, over the page */\n.tnb-show { background: var(--ta-main); color: var(--ta-text); }\n.tnb-show-bar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; box-sizing: border-box; border-bottom: 1px solid var(--ta-border-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-show-title { font-weight: 600; font-size: calc(14px * var(--ta-font-scale)); }\n.tnb-show-bar .ta-button { margin-left: auto; flex: none; }\n.tnb-show-body { flex: 1; min-height: 0; display: flex; overflow: auto; }\n.tnb-show-frame { flex: 1; width: 100%; border: 0; background: #fff; }\n.tnb-show-image { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }\n.tnb-show-text { width: 100%; max-width: 860px; margin: 0 auto; padding: 24px; box-sizing: border-box; font-size: calc(16px * var(--ta-font-scale)); line-height: 1.7; }\n.tnb-show-pre { white-space: pre-wrap; font-family: var(--ta-mono, ui-monospace, monospace); font-size: calc(14px * var(--ta-font-scale)); }\n/* The invitation over the page */\n.tnb-dialog { display: flex; flex-direction: column; gap: 10px; min-width: min(360px, 80vw); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.5; }\n.tnb-dialog p { margin: 0; }\n.tnb-dialog-head { display: flex; align-items: center; gap: 12px; }\n.tnb-dialog-actions { justify-content: flex-end; margin-top: 4px; }\n";
2
+ export declare const STYLE = "\n.tnb-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tnb-quiet { color: var(--ta-muted); }\n.tnb-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; }\n.tnb-body { display: flex; flex-direction: column; gap: 18px; max-width: 560px; margin: 0 auto; padding: 12px 16px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n.tnb-section h3 { margin: 0 0 6px; padding: 0 4px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.tnb-card { margin: 0; padding: 2px 10px; list-style: none; border-radius: 14px; background: var(--ta-raised); }\n.tnb-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 0; }\n.tnb-invite > .ta-face, .tnb-invite > .trm-face { align-self: flex-start; }\n.tnb-invite .tnb-actions { margin-left: auto; }\n.tnb-invite + .tnb-invite { border-top: 1px solid var(--ta-border-muted); }\n.tnb-invite-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 200px; min-width: 0; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.45; }\n.tnb-invite-text .tnb-tag { align-self: flex-start; }\n.tnb-actions { display: flex; gap: 8px; flex: none; }\n/* Off: what it does, and for how long */\n.tnb-off, .tnb-on { display: flex; flex-direction: column; align-items: center; text-align: center; }\n.tnb-off h2 { margin: 6px 0 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }\n.tnb-off p { max-width: 380px; margin: 0; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }\n.tnb-durations { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; margin-top: 20px; }\n.tnb-durations .ta-button { width: 100%; justify-content: center; min-height: 40px; }\n/* Rings that go out from the user */\n.tnb-looking { position: relative; width: 220px; height: 220px; margin: 8px 0 4px; }\n.tnb-ring { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ta-accent, var(--ta-link)) 35%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--ta-accent, var(--ta-link)) 7%, transparent) 0%, transparent 70%); animation: tnb-out 3.6s ease-out infinite; opacity: 0; }\n.tnb-ring-2 { animation-delay: 1.2s; }\n.tnb-ring-3 { animation-delay: 2.4s; }\n@keyframes tnb-out { 0% { transform: scale(0.25); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }\n@media (prefers-reduced-motion: reduce) { .tnb-ring { animation: none; opacity: 0.5; } .tnb-ring-2 { transform: scale(0.66); } .tnb-ring-3 { transform: scale(0.33); } }\n.tnb-me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }\n.tnb-spot { position: absolute; transform: translate(-50%, -50%); animation: tnb-in 300ms ease-out both; }\n@keyframes tnb-in { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } }\n.tnb-on-line { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-green); }\n.tnb-link { padding: 2px 6px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.tnb-link:hover { background: var(--ta-hover); }\n.tnb-error { margin: 8px 0 0; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-nobody { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; text-align: center; font-size: calc(13px * var(--ta-font-scale)); }\n/* Those around: tiles to choose */\n.tnb-peers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }\n.tnb-peers > li { width: 96px; }\n.tnb-peer { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; padding: 12px 6px 10px; border: 1px solid transparent; border-radius: 14px; background: var(--ta-raised); color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 120ms, opacity 120ms; }\n.tnb-peer:not(.tnb-chosen) { opacity: 0.55; }\n.tnb-peer.tnb-chosen { border-color: color-mix(in srgb, var(--ta-accent, var(--ta-link)) 45%, transparent); }\n.tnb-peer:focus-visible { outline: 1px solid var(--ta-border-focus); }\n.tnb-peer-face { position: relative; display: inline-flex; }\n.tnb-check { position: absolute; right: -4px; bottom: -4px; }\n.tnb-peer-name { max-width: 100%; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.tnb-tag { padding: 0 6px; border-radius: 6px; background: var(--ta-chip, var(--ta-hover)); color: var(--ta-secondary); font-size: calc(10.5px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }\n.tnb-tag-friend { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.tnb-make { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }\n.tnb-make .ta-button { min-width: 200px; min-height: 40px; justify-content: center; }\n.tnb-make p { margin: 0; font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-code-row { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); text-align: center; }\n.tnb-code-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 12px; border-radius: 14px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); text-align: center; }\n.tnb-code { font-size: calc(30px * var(--ta-font-scale)); font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }\n.tnb-self { display: flex; justify-content: center; gap: 8px; margin: 0; font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-select { height: 32px; padding: 0 28px 0 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-field { display: flex; flex-direction: column; gap: 4px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.tnb-input { box-sizing: border-box; width: 100%; padding: 7px 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); resize: vertical; }\n.tnb-input:focus { outline: none; border-color: var(--ta-border-focus); }\n.tnb-grow { flex: 1; }\n.tnb-meet { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); }\n.tnb-card-setting { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 360px; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-card-setting .ta-button { flex: none; }\n/* What one nearby shows, over the page */\n.tnb-show { background: var(--ta-main); color: var(--ta-text); }\n.tnb-show-bar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; box-sizing: border-box; border-bottom: 1px solid var(--ta-border-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-show-title { font-weight: 600; font-size: calc(14px * var(--ta-font-scale)); }\n.tnb-show-bar .ta-button { margin-left: auto; flex: none; }\n.tnb-show-body { flex: 1; min-height: 0; display: flex; overflow: auto; }\n.tnb-show-frame { flex: 1; width: 100%; border: 0; background: #fff; }\n.tnb-show-image { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }\n.tnb-show-text { width: 100%; max-width: 860px; margin: 0 auto; padding: 24px; box-sizing: border-box; font-size: calc(16px * var(--ta-font-scale)); line-height: 1.7; }\n.tnb-show-pre { white-space: pre-wrap; font-family: var(--ta-mono, ui-monospace, monospace); font-size: calc(14px * var(--ta-font-scale)); }\n/* The invitation over the page */\n.tnb-dialog { display: flex; flex-direction: column; gap: 10px; min-width: min(360px, 80vw); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.5; }\n.tnb-dialog p { margin: 0; }\n.tnb-dialog-head { display: flex; align-items: center; gap: 12px; }\n.tnb-dialog-actions { justify-content: flex-end; margin-top: 4px; }\n";
3
3
  export declare function injectStyle(): () => void;
4
4
  //# sourceMappingURL=style.d.ts.map
@@ -20,7 +20,7 @@ exports.STYLE = `
20
20
  /* Off: what it does, and for how long */
21
21
  .tnb-off, .tnb-on { display: flex; flex-direction: column; align-items: center; text-align: center; }
22
22
  .tnb-off h2 { margin: 6px 0 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }
23
- .tnb-off p { max-width: 380px; margin: 0; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; }
23
+ .tnb-off p { max-width: 380px; margin: 0; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
24
24
  .tnb-durations { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; margin-top: 20px; }
25
25
  .tnb-durations .ta-button { width: 100%; justify-content: center; min-height: 40px; }
26
26
  /* Rings that go out from the user */
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@celljs/ta-nearby",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
4
4
  "description": "A pi package for Ta: the other Ta around on the same network while you let them see you, known to Ta in your conversations, and rooms of those present made in a tap",
5
5
  "keywords": [
6
6
  "pi-package"
7
7
  ],
8
- "homepage": "https://github.com/cellbang/cell",
8
+ "homepage": "https://github.com/cellbang/ta",
9
9
  "bugs": {
10
- "url": "https://github.com/cellbang/cell/issues"
10
+ "url": "https://github.com/cellbang/ta/issues"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",