@celljs/ta 4.13.1 → 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.
- package/dist/cli.mjs +997 -811
- package/dist/gateway.mjs +315 -150
- package/dist/pi/CHANGELOG.md +7 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/package.json +3 -3
- package/dist/pi/packages/ta-bots/host/index.mjs +171 -135
- package/dist/pi/packages/ta-bots/package.json +3 -3
- package/dist/pi/packages/ta-changes/package.json +3 -3
- package/dist/pi/packages/ta-channels/host/index.mjs +170 -134
- package/dist/pi/packages/ta-channels/lib/room.js +3 -3
- package/dist/pi/packages/ta-channels/package.json +3 -3
- package/dist/pi/packages/ta-channels/web/index.js +1 -0
- package/dist/pi/packages/ta-computer-use/package.json +3 -3
- package/dist/pi/packages/ta-cron/README.en.md +1 -1
- package/dist/pi/packages/ta-cron/README.md +1 -1
- package/dist/pi/packages/ta-cron/lib/page.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/page.js +8 -4
- package/dist/pi/packages/ta-cron/package.json +3 -3
- package/dist/pi/packages/ta-cron/web/index.js +9 -4
- package/dist/pi/packages/ta-extensions/package.json +3 -3
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +1 -1
- package/dist/pi/packages/ta-extensions/web/index.js +170 -134
- package/dist/pi/packages/ta-games/package.json +3 -3
- package/dist/pi/packages/ta-glance/package.json +3 -3
- package/dist/pi/packages/ta-initiative/README.en.md +1 -0
- package/dist/pi/packages/ta-initiative/README.md +1 -0
- package/dist/pi/packages/ta-initiative/host/index.mjs +3 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +4 -2
- package/dist/pi/packages/ta-initiative/lib/inbox.js +1 -1
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +1 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +3 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.js +5 -1
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-initiative/lib/style.js +1 -1
- package/dist/pi/packages/ta-initiative/package.json +3 -3
- package/dist/pi/packages/ta-initiative/web/index.js +10 -7
- package/dist/pi/packages/ta-launcher/package.json +3 -3
- package/dist/pi/packages/ta-manual/package.json +3 -3
- package/dist/pi/packages/ta-moments/extension/index.mjs +81 -45
- package/dist/pi/packages/ta-moments/host/index.mjs +82 -46
- package/dist/pi/packages/ta-moments/lib/editor.js +1 -1
- package/dist/pi/packages/ta-moments/lib/friends.d.ts +4 -1
- package/dist/pi/packages/ta-moments/lib/friends.js +3 -2
- package/dist/pi/packages/ta-moments/lib/moments-host.js +1 -1
- package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-moments/lib/page.js +4 -5
- package/dist/pi/packages/ta-moments/lib/post-util.js +2 -2
- package/dist/pi/packages/ta-moments/lib/store.js +6 -0
- package/dist/pi/packages/ta-moments/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-moments/lib/style.js +4 -5
- package/dist/pi/packages/ta-moments/package.json +3 -3
- package/dist/pi/packages/ta-moments/web/index.js +193 -149
- package/dist/pi/packages/ta-nearby/host/index.mjs +189 -4
- package/dist/pi/packages/ta-nearby/lib/nearby-net.js +2 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +11 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +3 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +32 -7
- package/dist/pi/packages/ta-nearby/lib/page.js +10 -9
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-nearby/lib/style.js +1 -1
- package/dist/pi/packages/ta-nearby/package.json +3 -3
- package/dist/pi/packages/ta-nearby/web/index.js +10 -2
- package/dist/pi/packages/ta-notify/README.en.md +1 -0
- package/dist/pi/packages/ta-notify/README.md +1 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +3 -0
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +1 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.js +3 -0
- package/dist/pi/packages/ta-notify/package.json +3 -3
- package/dist/pi/packages/ta-recall/README.en.md +1 -1
- package/dist/pi/packages/ta-recall/README.md +1 -1
- package/dist/pi/packages/ta-recall/host/index.mjs +9 -12
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +3 -3
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +5 -3
- package/dist/pi/packages/ta-recall/lib/recall-service.js +11 -7
- package/dist/pi/packages/ta-recall/package.json +3 -3
- package/dist/pi/packages/ta-rooms/lib/friends-view.js +7 -8
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +12 -0
- package/dist/pi/packages/ta-rooms/lib/page.js +38 -3
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +1 -2
- package/dist/pi/packages/ta-rooms/package.json +3 -3
- package/dist/pi/packages/ta-rooms/web/index.js +58 -17
- package/dist/pi/packages/ta-share/package.json +3 -3
- package/dist/pi/packages/ta-sync/lib/i18n.js +2 -2
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +2 -2
- package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-sync/lib/style.js +1 -1
- package/dist/pi/packages/ta-sync/package.json +3 -3
- package/dist/pi/packages/ta-sync/web/index.js +5 -5
- package/dist/pi/packages/ta-sync-cloud/package.json +3 -3
- package/dist/pi/packages/ta-team/README.en.md +3 -1
- package/dist/pi/packages/ta-team/README.md +3 -1
- package/dist/pi/packages/ta-team/host/index.mjs +569 -47
- package/dist/pi/packages/ta-team/lib/dialogs.js +83 -16
- package/dist/pi/packages/ta-team/lib/host.js +4 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +11 -0
- package/dist/pi/packages/ta-team/lib/i18n.js +24 -2
- package/dist/pi/packages/ta-team/lib/members-tab.js +55 -8
- package/dist/pi/packages/ta-team/lib/page.d.ts +5 -0
- package/dist/pi/packages/ta-team/lib/page.js +15 -0
- package/dist/pi/packages/ta-team/lib/parts.d.ts +3 -1
- package/dist/pi/packages/ta-team/lib/parts.js +4 -3
- package/dist/pi/packages/ta-team/lib/policy.d.ts +24 -0
- package/dist/pi/packages/ta-team/lib/policy.js +32 -0
- package/dist/pi/packages/ta-team/lib/protocol.d.ts +22 -15
- package/dist/pi/packages/ta-team/lib/protocol.js +1 -3
- package/dist/pi/packages/ta-team/lib/shared-home.js +2 -2
- package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-team/lib/style.js +8 -4
- package/dist/pi/packages/ta-team/lib/team-admin.js +1 -0
- package/dist/pi/packages/ta-team/lib/team-core.js +1 -0
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +74 -6
- package/dist/pi/packages/ta-team/lib/team-invites.js +207 -10
- package/dist/pi/packages/ta-team/lib/team-people.js +2 -0
- package/dist/pi/packages/ta-team/package.json +7 -3
- package/dist/pi/packages/ta-team/web/index.js +362 -139
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +2 -2
- package/dist/pi/packages/ta-workspace/package.json +4 -4
- package/dist/pi/packages/ta-workspace/web/index.js +210 -160
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-C30pzFN3.js → abnfDiagram-S7VZAUFO-DMceNIR5.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-wfYFQl2u.js → architecture-WOLXFQ4H-5AdYeEv8.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-B05zgxyT.js → architectureDiagram-YGSQEFNW-CqkJHg0A.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BhN8Bsu0.js → blockDiagram-APKKGZFW-BtuHdIjQ.js} +1 -1
- package/dist/public/assets/{browser-D2CY3Lfb.js → browser-D2BcOPKG.js} +1 -1
- package/dist/public/assets/{browser-DteLjv_-.js → browser-Ds5TwWWr.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-DvdF3qCV.js → c4Diagram-KJ2TOQU5-eebbjTgZ.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-DNavkrnr.js → chunk-6MUBBAK2-BjMKSfTf.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-DplVEqp_.js → chunk-AXFCVDMN-BElluw_7.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-BazOaHvw.js → chunk-BG4553SI-CUDwpWNL.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-DmoQWa8b.js → chunk-DQASFODM-B-92o8Uj.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-Cj1m9ccz.js → chunk-HFQBQIA3-pveEMcXK.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-_jbilrLX.js → chunk-KQLB2F66-m7DKNjYW.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-CWU16Lut.js → chunk-KS47KZWR-CnSSETdj.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-wsbxWEZE.js → chunk-LEVMRMFU-Ds7OnJrC.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-BGvmwwTv.js → chunk-M57EVK23-PJSYCuUh.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-Bp3hJ4kT.js → chunk-OY52VR5R-C3ygRwSC.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-C1rQVxsJ.js → chunk-QB3YPZ4I-DcFtmZh7.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-CEy0dKWn.js → chunk-R3KSYZAL-B4BOidE6.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-akqvafwH.js → chunk-STOXU5M4-DcXfwN7k.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-CVXAS4DS.js → chunk-TU62E6Q5-B-rpQQxX.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-DT_bEMvQ.js → chunk-X4PVCEUW-BBtlFSw1.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-Bgv_n5Qh.js → chunk-XXDRQBXY-Do8BIocv.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-BtjQChpS.js → classDiagram-v2-L25IHNXF-bhGAODMS.js} +1 -1
- package/dist/public/assets/{client-sUFoEC5s.js → client-C8gi9Fk2.js} +1 -1
- package/dist/public/assets/{common-CGQN5htF.js → common-DrZR0tgm.js} +2 -2
- package/dist/public/assets/{cose-bilkent-JH36ORCC-DSrOY8Uk.js → cose-bilkent-JH36ORCC-B7Qv6Hv_.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dfu5k3iG.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-DTy7FNFS.js → cynefinDiagram-L36ESFBY-BX-R5Z6L.js} +1 -1
- package/dist/public/assets/{d3-selection-ip6rDUzY.js → d3-selection-D3xgEEla.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-CHrks7Jb.js → dagre-SPEB5RXH-MfJ9yO0v.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-eUJ7STAr.js → diagram-3B7GL73J-DxFRc2vC.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-B_fptNkg.js → diagram-DNEMPZML-BcBwOLbM.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-C15owCSG.js → diagram-L3MUGCDN--Rw-isPI.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-Bfa1qEgY.js → diagram-LA4NIPWU-DXkY85UN.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-Bwxsih_Q.js → diagram-MHCOC4E2-CbNmfAid.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-DKZ_lwah.js → diagram-XPFHEONP-D1nGQjzf.js} +1 -1
- package/dist/public/assets/{dist-VHGBaby6.js → dist-B1JMTrET.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-CCkttvYi.js → ebnfDiagram-UZSYDL2S-DGXbVfke.js} +1 -1
- package/dist/public/assets/{editor.api-a2gC0dVD.js → editor.api-e3yQoo1r.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-DcikW39e.js → elk-XV6XMXQE-pA-iT6fg.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BE3TV5lU.js → erDiagram-EYBAPDEH-BpgBun7y.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-C2s1kutf.js → eventmodeling-K75KTNOO-CVfyCcul.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-BHlXeeVG.js +1 -0
- package/dist/public/assets/{freemarker2-2e8pZojb.js → freemarker2-dYGec-fT.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-rGnJptii.js → ganttDiagram-23REXITY-DjLTTWwA.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-CFVSDv3q.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CNnsDjQA.js → gitGraphDiagram-STJD7YCW-D9m7IVyJ.js} +1 -1
- package/dist/public/assets/{handlebars-CMKN6E37.js → handlebars-Bxerz7ci.js} +1 -1
- package/dist/public/assets/{html-0AjXQhkQ.js → html-DlVnGsdp.js} +1 -1
- package/dist/public/assets/{index-TUtoc8CW.js → index-CZmGe9gc.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-C_Db4yjo.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-DMKs8cuE.js → infoDiagram-KBXO4MBG-DoYdhkAy.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Dg_IbA0G.js → ishikawaDiagram-M35NCXHK-Bc0GAInW.js} +1 -1
- package/dist/public/assets/{javascript-CqYOqPjw.js → javascript-DZrowo_I.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-ohAOfoEY.js → journeyDiagram-OPLOXDXO-BM7Dwstu.js} +1 -1
- package/dist/public/assets/{jsonMode-D-gI-S5H.js → jsonMode-Bs30wPr5.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-w-aKZS_U.js → kanban-definition-BZKZHSQY-CO-Crrdu.js} +1 -1
- package/dist/public/assets/{liquid-oBN7c8NZ.js → liquid-dLz9d3ax.js} +1 -1
- package/dist/public/assets/{mdx-CnwhgGjX.js → mdx-DO0x92Kn.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-CfFkSR0t.js → mermaid-parser.core-BXwArNvw.js} +3 -3
- package/dist/public/assets/{mermaid.core-apiVCSBY.js → mermaid.core-C6mppfDC.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-E7vqVWB0.js → mindmap-definition-I2QAS2VK-vcQ2EU4T.js} +1 -1
- package/dist/public/assets/module-C0tELrcJ.js +1 -0
- package/dist/public/assets/{module-B8jze-Tx.js → module-Cm_mLwAQ.js} +1 -1
- package/dist/public/assets/module-CteT9pTP.js +2405 -0
- package/dist/public/assets/module-DDH-aU6z.js +1 -0
- package/dist/public/assets/module-DRofmFJn.js +1 -0
- package/dist/public/assets/{module-ZhkaqrNe.js → module-DUYj4E8T.js} +1 -1
- package/dist/public/assets/module-MaD4hvv4.js +1 -0
- package/dist/public/assets/module-ZDJutm0b.js +1 -0
- package/dist/public/assets/module-qoBVcE5h.js +1 -0
- package/dist/public/assets/{monaco-C0ByxW3l.js → monaco-J_Pr5zjk.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-Bw7hmDUU.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP--RpwCE7x.js → pegDiagram-FD4XPPHP-DPDrbtS2.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-cb_eq1B6.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-DxSbPaRZ.js → pieDiagram-J4AKIIQI-DXuaepGJ.js} +1 -1
- package/dist/public/assets/{python-vNPe_Fao.js → python-nnmIOv4s.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-CR_eeYXi.js → quadrantDiagram-XTYBLID2-BuD_-coZ.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-Dqy-xoY_.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-CBPVCTd3.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-D6I2HxIC.js → railroad-abnf-LNEFI6M7-CkCl68xY.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BuhDRGo3.js → railroad-ebnf-DWYD2UWJ-DO3GiRv6.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-n15PB7Sb.js → railroad-peg-JR7BVNR7-DZBsKy4P.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Bbe5bNap.js → railroadDiagram-MRQ6NCDL-BeLq7Mqp.js} +1 -1
- package/dist/public/assets/{razor-CnKbF0Yz.js → razor-l2rRITgB.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-Beuygh9j.js → requirementDiagram-Y7LWUY3S-BBizkrON.js} +1 -1
- package/dist/public/assets/{resolver-B7c_-amj.js → resolver-0zC31mg5.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-jwWPgnrS.js → sankeyDiagram-WGJFYUXA-tyo-p7oc.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-CmU-HYQI.js → sequenceDiagram-5NDRBG5M-BSGPbeJX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-Bo7BEi-m.js → stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-PSKyZN_b.js → swimlanes-UMQ2AFYF-BJfgQyQo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BWvcVkFg.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-BuRxLScZ.js → timeline-definition-SEUHKTQE-Ch8aQwF6.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB--XUqgqA6.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CfrNtG7H.js +1 -0
- package/dist/public/assets/{typescript-C00ztMLg.js → typescript-LasX-M7S.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-Dlvyos8r.js → usecaseDiagram-AFA6YXN4-BzlSB4R4.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-CuLZubJH.js → vennDiagram-NNMJR3RB-4xaWLrMk.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-BXBG-txR.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-WOGGTs4y.js → wardleyDiagram-S7YFUSEH-C-iK1p-O.js} +1 -1
- package/dist/public/assets/{xml-CHBFuf5n.js → xml-CGhYQUqn.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DwW9eifP.js → xychartDiagram-GGNKY7IX-CFsnisdM.js} +1 -1
- package/dist/public/assets/{yaml-C4qkqzcL.js → yaml-BcOaPfuH.js} +1 -1
- package/dist/public/index.html +2 -2
- package/dist/serve/index.mjs +2318 -1257
- package/package.json +39 -39
- package/dist/pi/packages/ta-team/lib/join.d.ts +0 -28
- package/dist/pi/packages/ta-team/lib/join.js +0 -48
- package/dist/pi/packages/ta-team/lib/remote.d.ts +0 -31
- package/dist/pi/packages/ta-team/lib/remote.js +0 -128
- package/dist/pi/packages/ta-team/lib/seal.d.ts +0 -28
- package/dist/pi/packages/ta-team/lib/seal.js +0 -75
- package/dist/public/assets/cynefin-EF2NZ3EQ-DYlwwGUb.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Bufgn1OL.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D_tzR9z9.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-C5Pwv-6e.js +0 -1
- package/dist/public/assets/module-Blc8dqbf.js +0 -1
- package/dist/public/assets/module-C2jtFD0v.js +0 -2365
- package/dist/public/assets/module-C9WFrzAc.js +0 -1
- package/dist/public/assets/module-CouMtASh.js +0 -1
- package/dist/public/assets/module-EGdAhoOx.js +0 -1
- package/dist/public/assets/module-EeaigZHL.js +0 -1
- package/dist/public/assets/module-xT4L5yYw.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-xozI7a9T.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-BkHXIzDi.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-CaUh9zV3.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-DckPvlDe.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-z_0ABNQq.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-BN38Jg9j.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-CKdz7u7W.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-B0cvM1zV.js +0 -1
|
@@ -76,7 +76,11 @@ class InitiativeStore {
|
|
|
76
76
|
const newest = this.current.proposals.reduce((at, proposal) => { var _a; return Math.max(at, proposal.at, (_a = proposal.decidedAt) !== null && _a !== void 0 ? _a : 0); }, 0);
|
|
77
77
|
if (newest > this.current.seen) {
|
|
78
78
|
this.set({ ...this.current, seen: newest });
|
|
79
|
-
|
|
79
|
+
// Another device may have seen later ones than this page has read yet: what is kept only moves on.
|
|
80
|
+
void this.pi.storage
|
|
81
|
+
.get(initiative_protocol_1.Keys.SEEN)
|
|
82
|
+
.then(kept => (typeof kept === 'number' && kept >= newest ? undefined : this.pi.storage.set(initiative_protocol_1.Keys.SEEN, newest)))
|
|
83
|
+
.catch(() => undefined);
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
86
|
read() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. */
|
|
2
|
-
export declare const STYLE = "\n.tev-field { height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tev-field:disabled { opacity: 0.5; }\n.tev-now { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }\n.tev-profile { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 100%; }\n.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }\n[data-touch] .tev-profile-text { font-size: 16px; }\n/* The suggestions: a card each, its kind, what and why, the answers */\n.tin-inbox { max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; }\n.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }\n.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }\n.tin-card { padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }\n.tin-kind { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tin-kind > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tin-tag { flex: none; padding: 0 6px; border-radius: 6px; background: var(--ta-hover); }\n.tin-time { flex: none; font-variant-numeric: tabular-nums; }\n.tin-title { margin-top: 6px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }\n.tin-why { margin-top: 4px; color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; opacity: 0.85; overflow-wrap: anywhere; }\n.tin-state { margin-top: 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tin-card[data-state='failed'] .tin-state { color: var(--ta-red, #d33); }\n.tin-done .tin-title { font-weight: 500; }\n.tin-actions { display: flex; gap: 8px; margin-top: 10px; }\n.tin-actions .ta-button { min-width: 64px; justify-content: center; }\n[data-touch] .tin-actions .ta-button { min-height: 38px; flex: 1; }\n.tin-more { display: flex; gap: 14px; margin-top: 8px; }\n.tin-link { padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; text-align: left; }\n.tin-link:hover { color: var(--ta-text); }\n.tin-card > .tin-link { margin-top: 6px; display: block; }\n.tin-above { margin: 0 0 8px; }\n.tin-above .tin-card { padding: 10px 12px; }\n.tin-in-chat { margin: 4px 0; max-width: 620px; }\n.tin-decided { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; }\n.tin-empty { padding: 48px 12px; color: var(--ta-muted); text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }\n.tin-quiet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }\n/* The kinds, in the settings */\n.tin-kinds { margin: 0; padding: 0; list-style: none; width: 100%; }\n.tin-kind-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ta-border-muted); }\n.tin-kind-row:first-child { border-top: 0; }\n.tin-kind-text { flex: 1; min-width: 0; }\n.tin-kind-name { color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); }\n.tin-kind-reason { margin-top: 2px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tev-when { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n";
|
|
2
|
+
export declare const STYLE = "\n.tev-field { height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tev-field:disabled { opacity: 0.5; }\n.tev-now { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }\n.tev-profile { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 100%; }\n.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }\n[data-touch] .tev-profile-text { font-size: 16px; }\n/* The suggestions: a card each, its kind, what and why, the answers */\n.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; box-sizing: border-box; }\n.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }\n.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }\n.tin-card { padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }\n.tin-kind { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tin-kind > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tin-tag { flex: none; padding: 0 6px; border-radius: 6px; background: var(--ta-hover); }\n.tin-time { flex: none; font-variant-numeric: tabular-nums; }\n.tin-title { margin-top: 6px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }\n.tin-why { margin-top: 4px; color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; opacity: 0.85; overflow-wrap: anywhere; }\n.tin-state { margin-top: 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tin-card[data-state='failed'] .tin-state { color: var(--ta-red, #d33); }\n.tin-done .tin-title { font-weight: 500; }\n.tin-actions { display: flex; gap: 8px; margin-top: 10px; }\n.tin-actions .ta-button { min-width: 64px; justify-content: center; }\n[data-touch] .tin-actions .ta-button { min-height: 38px; flex: 1; }\n.tin-more { display: flex; gap: 14px; margin-top: 8px; }\n.tin-link { padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; text-align: left; }\n.tin-link:hover { color: var(--ta-text); }\n.tin-card > .tin-link { margin-top: 6px; display: block; }\n.tin-above { margin: 0 0 8px; }\n.tin-above .tin-card { padding: 10px 12px; }\n.tin-in-chat { margin: 4px 0; max-width: 620px; }\n.tin-decided { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; }\n.tin-empty { padding: 48px 12px; color: var(--ta-muted); text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }\n.tin-quiet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }\n/* The kinds, in the settings */\n.tin-kinds { margin: 0; padding: 0; list-style: none; width: 100%; }\n.tin-kind-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ta-border-muted); }\n.tin-kind-row:first-child { border-top: 0; }\n.tin-kind-text { flex: 1; min-width: 0; }\n.tin-kind-name { color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); }\n.tin-kind-reason { margin-top: 2px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tev-when { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n";
|
|
3
3
|
export declare function injectStyle(): () => void;
|
|
4
4
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -11,7 +11,7 @@ exports.STYLE = `
|
|
|
11
11
|
.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }
|
|
12
12
|
[data-touch] .tev-profile-text { font-size: 16px; }
|
|
13
13
|
/* The suggestions: a card each, its kind, what and why, the answers */
|
|
14
|
-
.tin-inbox { max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; }
|
|
14
|
+
.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; box-sizing: border-box; }
|
|
15
15
|
.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }
|
|
16
16
|
.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
|
|
17
17
|
.tin-card { padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-initiative",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: what Ta does on its own and how far, by kind and by the user's trust; proposals other packages offer, the user's suggestions to decide or undo, and a weekly review that keeps the scheduled tasks and learns the user",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/cellbang/
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/cellbang/
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -25,7 +25,8 @@ var en = {
|
|
|
25
25
|
inboxTitle: "Suggestions",
|
|
26
26
|
inboxWaiting: "Waiting for you",
|
|
27
27
|
inboxDone: "Done on its own",
|
|
28
|
-
inboxEmpty: "
|
|
28
|
+
inboxEmpty: "No suggestions yet",
|
|
29
|
+
inboxEmptyHint: "When Ta finds work you ask for again and again, it suggests it here.",
|
|
29
30
|
accept: "OK",
|
|
30
31
|
decline: "No",
|
|
31
32
|
always: "Always do it",
|
|
@@ -97,7 +98,8 @@ var zh = {
|
|
|
97
98
|
inboxTitle: "Ta 的建议",
|
|
98
99
|
inboxWaiting: "等你决定",
|
|
99
100
|
inboxDone: "已替你做",
|
|
100
|
-
inboxEmpty: "
|
|
101
|
+
inboxEmpty: "暂时没有建议",
|
|
102
|
+
inboxEmptyHint: "Ta 发现你反复交代的事,会在这里提出。",
|
|
101
103
|
accept: "好",
|
|
102
104
|
decline: "不用",
|
|
103
105
|
always: "以后直接做",
|
|
@@ -410,7 +412,7 @@ class InitiativeStore {
|
|
|
410
412
|
const newest = this.current.proposals.reduce((at, proposal) => Math.max(at, proposal.at, proposal.decidedAt ?? 0), 0);
|
|
411
413
|
if (newest > this.current.seen) {
|
|
412
414
|
this.set({ ...this.current, seen: newest });
|
|
413
|
-
this.pi.storage.set(Keys.SEEN, newest).catch(() => {
|
|
415
|
+
this.pi.storage.get(Keys.SEEN).then((kept) => typeof kept === "number" && kept >= newest ? undefined : this.pi.storage.set(Keys.SEEN, newest)).catch(() => {
|
|
414
416
|
return;
|
|
415
417
|
});
|
|
416
418
|
}
|
|
@@ -657,9 +659,10 @@ function Inbox({ pi, store }) {
|
|
|
657
659
|
}, [store, state.loaded, state.proposals]);
|
|
658
660
|
return /* @__PURE__ */ React.createElement("div", {
|
|
659
661
|
className: "tin-inbox"
|
|
660
|
-
}, waiting.length === 0 && done.length === 0 && state.loaded && /* @__PURE__ */ React.createElement(
|
|
661
|
-
|
|
662
|
-
|
|
662
|
+
}, waiting.length === 0 && done.length === 0 && state.loaded && /* @__PURE__ */ React.createElement(pi.ui.Empty, {
|
|
663
|
+
title: words.inboxEmpty,
|
|
664
|
+
hint: words.inboxEmptyHint
|
|
665
|
+
}), waiting.length > 0 && /* @__PURE__ */ React.createElement("section", null, /* @__PURE__ */ React.createElement("h3", {
|
|
663
666
|
className: "tin-head"
|
|
664
667
|
}, words.inboxWaiting), /* @__PURE__ */ React.createElement("ul", {
|
|
665
668
|
className: "tin-list"
|
|
@@ -1089,7 +1092,7 @@ var STYLE = `
|
|
|
1089
1092
|
.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }
|
|
1090
1093
|
[data-touch] .tev-profile-text { font-size: 16px; }
|
|
1091
1094
|
/* The suggestions: a card each, its kind, what and why, the answers */
|
|
1092
|
-
.tin-inbox { max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; }
|
|
1095
|
+
.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; box-sizing: border-box; }
|
|
1093
1096
|
.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }
|
|
1094
1097
|
.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
|
|
1095
1098
|
.tin-card { padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-launcher",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: what a phone pulls down over its first tab (a button of the rail elsewhere), the pages used lately and those kept in Mine, opened without installing too",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/cellbang/
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/cellbang/
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-manual",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: the user manual, a page of short illustrated guides to what Ta does, and the ta-manual skill that answers how to use Ta from it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/cellbang/
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/cellbang/
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -340,49 +340,6 @@ var TaPackageTextUtil;
|
|
|
340
340
|
}
|
|
341
341
|
TaPackageTextUtil2.pick = pick;
|
|
342
342
|
})(TaPackageTextUtil || (TaPackageTextUtil = {}));
|
|
343
|
-
// ../ta-protocol/esm/common/relay-protocol.js
|
|
344
|
-
var TaRelayServer = Symbol("TaRelayServer");
|
|
345
|
-
// ../ta-protocol/esm/common/remote-protocol.js
|
|
346
|
-
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
347
|
-
// ../ta-protocol/esm/common/room-protocol.js
|
|
348
|
-
var TaRoomServer = Symbol("TaRoomServer");
|
|
349
|
-
var TA_FRIENDS_KIND = "ta-friends";
|
|
350
|
-
var TaRoomWatchUtil;
|
|
351
|
-
(function(TaRoomWatchUtil2) {
|
|
352
|
-
function of(messages, state) {
|
|
353
|
-
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
354
|
-
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
355
|
-
}
|
|
356
|
-
TaRoomWatchUtil2.of = of;
|
|
357
|
-
function union(watches) {
|
|
358
|
-
let messages = false;
|
|
359
|
-
const state = [];
|
|
360
|
-
for (const watch of watches) {
|
|
361
|
-
messages || (messages = watch.messages);
|
|
362
|
-
state.push(...watch.state);
|
|
363
|
-
}
|
|
364
|
-
return of(messages, messages ? [] : state);
|
|
365
|
-
}
|
|
366
|
-
TaRoomWatchUtil2.union = union;
|
|
367
|
-
function same(a, b) {
|
|
368
|
-
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
369
|
-
`) === b.state.join(`
|
|
370
|
-
`);
|
|
371
|
-
}
|
|
372
|
-
TaRoomWatchUtil2.same = same;
|
|
373
|
-
function hears(watch, event) {
|
|
374
|
-
if (event.type === "message") {
|
|
375
|
-
return watch.messages;
|
|
376
|
-
}
|
|
377
|
-
if (event.type === "state") {
|
|
378
|
-
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
379
|
-
}
|
|
380
|
-
return true;
|
|
381
|
-
}
|
|
382
|
-
TaRoomWatchUtil2.hears = hears;
|
|
383
|
-
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
384
|
-
// ../ta-protocol/esm/common/settings-protocol.js
|
|
385
|
-
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
386
343
|
// ../ta-protocol/esm/common/ta-protocol.js
|
|
387
344
|
var TaServer = Symbol("TaServer");
|
|
388
345
|
var TaClient = Symbol("TaClient");
|
|
@@ -568,6 +525,85 @@ var TaSkillUse;
|
|
|
568
525
|
}
|
|
569
526
|
TaSkillUse2.command = command;
|
|
570
527
|
})(TaSkillUse || (TaSkillUse = {}));
|
|
528
|
+
|
|
529
|
+
// ../ta-protocol/esm/common/presence-protocol.js
|
|
530
|
+
var TaPresenceServer = Symbol("TaPresenceServer");
|
|
531
|
+
var TaMessageAuthor;
|
|
532
|
+
(function(TaMessageAuthor2) {
|
|
533
|
+
const LINE = /^\[ta:by ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
|
|
534
|
+
const LINES = /^\[ta:by [^\]\n]*\]$\n?/gm;
|
|
535
|
+
function strip(message) {
|
|
536
|
+
const context = TaMessageContext.read(message);
|
|
537
|
+
if (context === undefined || !LINE.test(context)) {
|
|
538
|
+
return message;
|
|
539
|
+
}
|
|
540
|
+
const kept = context.replace(LINES, "").replace(/\n+$/, "");
|
|
541
|
+
const body = TaMessageContext.strip(message);
|
|
542
|
+
return kept.trim() ? TaMessageContext.wrap(kept, body) : body;
|
|
543
|
+
}
|
|
544
|
+
TaMessageAuthor2.strip = strip;
|
|
545
|
+
function mark(message, id, name) {
|
|
546
|
+
const plain = strip(message);
|
|
547
|
+
if (/^[/!]/.test(plain)) {
|
|
548
|
+
return plain;
|
|
549
|
+
}
|
|
550
|
+
const line = `[ta:by ${id.replace(/[\s\]]/g, "")} ${name.replace(/[\]\n]/g, " ").trim() || id}]`;
|
|
551
|
+
const context = TaMessageContext.read(plain);
|
|
552
|
+
return TaMessageContext.wrap(context === undefined ? line : `${context}
|
|
553
|
+
${line}`, TaMessageContext.strip(plain));
|
|
554
|
+
}
|
|
555
|
+
TaMessageAuthor2.mark = mark;
|
|
556
|
+
function of(message) {
|
|
557
|
+
var _a;
|
|
558
|
+
const context = TaMessageContext.read(message);
|
|
559
|
+
const match = context === undefined ? null : LINE.exec(context);
|
|
560
|
+
return match ? { id: match[1], name: ((_a = match[2]) !== null && _a !== undefined ? _a : match[1]).trim() } : undefined;
|
|
561
|
+
}
|
|
562
|
+
TaMessageAuthor2.of = of;
|
|
563
|
+
})(TaMessageAuthor || (TaMessageAuthor = {}));
|
|
564
|
+
// ../ta-protocol/esm/common/relay-protocol.js
|
|
565
|
+
var TaRelayServer = Symbol("TaRelayServer");
|
|
566
|
+
// ../ta-protocol/esm/common/remote-protocol.js
|
|
567
|
+
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
568
|
+
// ../ta-protocol/esm/common/room-protocol.js
|
|
569
|
+
var TaRoomServer = Symbol("TaRoomServer");
|
|
570
|
+
var TA_FRIENDS_KIND = "ta-friends";
|
|
571
|
+
var TaRoomWatchUtil;
|
|
572
|
+
(function(TaRoomWatchUtil2) {
|
|
573
|
+
function of(messages, state) {
|
|
574
|
+
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
575
|
+
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
576
|
+
}
|
|
577
|
+
TaRoomWatchUtil2.of = of;
|
|
578
|
+
function union(watches) {
|
|
579
|
+
let messages = false;
|
|
580
|
+
const state = [];
|
|
581
|
+
for (const watch of watches) {
|
|
582
|
+
messages || (messages = watch.messages);
|
|
583
|
+
state.push(...watch.state);
|
|
584
|
+
}
|
|
585
|
+
return of(messages, messages ? [] : state);
|
|
586
|
+
}
|
|
587
|
+
TaRoomWatchUtil2.union = union;
|
|
588
|
+
function same(a, b) {
|
|
589
|
+
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
590
|
+
`) === b.state.join(`
|
|
591
|
+
`);
|
|
592
|
+
}
|
|
593
|
+
TaRoomWatchUtil2.same = same;
|
|
594
|
+
function hears(watch, event) {
|
|
595
|
+
if (event.type === "message") {
|
|
596
|
+
return watch.messages;
|
|
597
|
+
}
|
|
598
|
+
if (event.type === "state") {
|
|
599
|
+
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
600
|
+
}
|
|
601
|
+
return true;
|
|
602
|
+
}
|
|
603
|
+
TaRoomWatchUtil2.hears = hears;
|
|
604
|
+
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
605
|
+
// ../ta-protocol/esm/common/settings-protocol.js
|
|
606
|
+
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
571
607
|
// ../ta-protocol/esm/common/team-protocol.js
|
|
572
608
|
var TA_UNDECLARED = "extensions.install";
|
|
573
609
|
var TaPermissionUtil;
|
|
@@ -832,7 +868,7 @@ var PostUtil;
|
|
|
832
868
|
return [];
|
|
833
869
|
}
|
|
834
870
|
const online = owner.self || owner.online;
|
|
835
|
-
const author = { id: owner.id, name: owner.name || room.ownerName };
|
|
871
|
+
const author = { id: owner.id, name: owner.name || room.ownerName, ...owner.look ? { look: owner.look } : {} };
|
|
836
872
|
const byMember = new Map(room.members.map((member) => [member.member, member]));
|
|
837
873
|
const self = room.members.find((member) => member.self);
|
|
838
874
|
const marks = (prefix, id) => {
|
|
@@ -851,7 +887,7 @@ var PostUtil;
|
|
|
851
887
|
mine = true;
|
|
852
888
|
}
|
|
853
889
|
if (who.id === me || who.id === owner.id || owner.id === me || friends.has(who.id)) {
|
|
854
|
-
people.push({ id: who.id, name: who.name });
|
|
890
|
+
people.push({ id: who.id, name: who.name, ...who.look ? { look: who.look } : {} });
|
|
855
891
|
}
|
|
856
892
|
}
|
|
857
893
|
return { people, mine };
|
|
@@ -367,49 +367,6 @@ var TaLocation;
|
|
|
367
367
|
return squeezed.length > 1 ? squeezed.replace(/\/$/, "") : squeezed;
|
|
368
368
|
}
|
|
369
369
|
})(TaLocation || (TaLocation = {}));
|
|
370
|
-
// ../ta-protocol/esm/common/relay-protocol.js
|
|
371
|
-
var TaRelayServer = Symbol("TaRelayServer");
|
|
372
|
-
// ../ta-protocol/esm/common/remote-protocol.js
|
|
373
|
-
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
374
|
-
// ../ta-protocol/esm/common/room-protocol.js
|
|
375
|
-
var TaRoomServer = Symbol("TaRoomServer");
|
|
376
|
-
var TA_FRIENDS_KIND = "ta-friends";
|
|
377
|
-
var TaRoomWatchUtil;
|
|
378
|
-
(function(TaRoomWatchUtil2) {
|
|
379
|
-
function of(messages, state) {
|
|
380
|
-
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
381
|
-
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
382
|
-
}
|
|
383
|
-
TaRoomWatchUtil2.of = of;
|
|
384
|
-
function union(watches) {
|
|
385
|
-
let messages = false;
|
|
386
|
-
const state = [];
|
|
387
|
-
for (const watch of watches) {
|
|
388
|
-
messages || (messages = watch.messages);
|
|
389
|
-
state.push(...watch.state);
|
|
390
|
-
}
|
|
391
|
-
return of(messages, messages ? [] : state);
|
|
392
|
-
}
|
|
393
|
-
TaRoomWatchUtil2.union = union;
|
|
394
|
-
function same(a, b) {
|
|
395
|
-
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
396
|
-
`) === b.state.join(`
|
|
397
|
-
`);
|
|
398
|
-
}
|
|
399
|
-
TaRoomWatchUtil2.same = same;
|
|
400
|
-
function hears(watch, event) {
|
|
401
|
-
if (event.type === "message") {
|
|
402
|
-
return watch.messages;
|
|
403
|
-
}
|
|
404
|
-
if (event.type === "state") {
|
|
405
|
-
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
406
|
-
}
|
|
407
|
-
return true;
|
|
408
|
-
}
|
|
409
|
-
TaRoomWatchUtil2.hears = hears;
|
|
410
|
-
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
411
|
-
// ../ta-protocol/esm/common/settings-protocol.js
|
|
412
|
-
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
413
370
|
// ../ta-protocol/esm/common/ta-protocol.js
|
|
414
371
|
var TaServer = Symbol("TaServer");
|
|
415
372
|
var TaClient = Symbol("TaClient");
|
|
@@ -595,6 +552,85 @@ var TaSkillUse;
|
|
|
595
552
|
}
|
|
596
553
|
TaSkillUse2.command = command;
|
|
597
554
|
})(TaSkillUse || (TaSkillUse = {}));
|
|
555
|
+
|
|
556
|
+
// ../ta-protocol/esm/common/presence-protocol.js
|
|
557
|
+
var TaPresenceServer = Symbol("TaPresenceServer");
|
|
558
|
+
var TaMessageAuthor;
|
|
559
|
+
(function(TaMessageAuthor2) {
|
|
560
|
+
const LINE = /^\[ta:by ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
|
|
561
|
+
const LINES = /^\[ta:by [^\]\n]*\]$\n?/gm;
|
|
562
|
+
function strip(message) {
|
|
563
|
+
const context = TaMessageContext.read(message);
|
|
564
|
+
if (context === undefined || !LINE.test(context)) {
|
|
565
|
+
return message;
|
|
566
|
+
}
|
|
567
|
+
const kept = context.replace(LINES, "").replace(/\n+$/, "");
|
|
568
|
+
const body = TaMessageContext.strip(message);
|
|
569
|
+
return kept.trim() ? TaMessageContext.wrap(kept, body) : body;
|
|
570
|
+
}
|
|
571
|
+
TaMessageAuthor2.strip = strip;
|
|
572
|
+
function mark(message, id, name) {
|
|
573
|
+
const plain = strip(message);
|
|
574
|
+
if (/^[/!]/.test(plain)) {
|
|
575
|
+
return plain;
|
|
576
|
+
}
|
|
577
|
+
const line = `[ta:by ${id.replace(/[\s\]]/g, "")} ${name.replace(/[\]\n]/g, " ").trim() || id}]`;
|
|
578
|
+
const context = TaMessageContext.read(plain);
|
|
579
|
+
return TaMessageContext.wrap(context === undefined ? line : `${context}
|
|
580
|
+
${line}`, TaMessageContext.strip(plain));
|
|
581
|
+
}
|
|
582
|
+
TaMessageAuthor2.mark = mark;
|
|
583
|
+
function of(message) {
|
|
584
|
+
var _a;
|
|
585
|
+
const context = TaMessageContext.read(message);
|
|
586
|
+
const match = context === undefined ? null : LINE.exec(context);
|
|
587
|
+
return match ? { id: match[1], name: ((_a = match[2]) !== null && _a !== undefined ? _a : match[1]).trim() } : undefined;
|
|
588
|
+
}
|
|
589
|
+
TaMessageAuthor2.of = of;
|
|
590
|
+
})(TaMessageAuthor || (TaMessageAuthor = {}));
|
|
591
|
+
// ../ta-protocol/esm/common/relay-protocol.js
|
|
592
|
+
var TaRelayServer = Symbol("TaRelayServer");
|
|
593
|
+
// ../ta-protocol/esm/common/remote-protocol.js
|
|
594
|
+
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
595
|
+
// ../ta-protocol/esm/common/room-protocol.js
|
|
596
|
+
var TaRoomServer = Symbol("TaRoomServer");
|
|
597
|
+
var TA_FRIENDS_KIND = "ta-friends";
|
|
598
|
+
var TaRoomWatchUtil;
|
|
599
|
+
(function(TaRoomWatchUtil2) {
|
|
600
|
+
function of(messages, state) {
|
|
601
|
+
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
602
|
+
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
603
|
+
}
|
|
604
|
+
TaRoomWatchUtil2.of = of;
|
|
605
|
+
function union(watches) {
|
|
606
|
+
let messages = false;
|
|
607
|
+
const state = [];
|
|
608
|
+
for (const watch of watches) {
|
|
609
|
+
messages || (messages = watch.messages);
|
|
610
|
+
state.push(...watch.state);
|
|
611
|
+
}
|
|
612
|
+
return of(messages, messages ? [] : state);
|
|
613
|
+
}
|
|
614
|
+
TaRoomWatchUtil2.union = union;
|
|
615
|
+
function same(a, b) {
|
|
616
|
+
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
617
|
+
`) === b.state.join(`
|
|
618
|
+
`);
|
|
619
|
+
}
|
|
620
|
+
TaRoomWatchUtil2.same = same;
|
|
621
|
+
function hears(watch, event) {
|
|
622
|
+
if (event.type === "message") {
|
|
623
|
+
return watch.messages;
|
|
624
|
+
}
|
|
625
|
+
if (event.type === "state") {
|
|
626
|
+
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
627
|
+
}
|
|
628
|
+
return true;
|
|
629
|
+
}
|
|
630
|
+
TaRoomWatchUtil2.hears = hears;
|
|
631
|
+
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
632
|
+
// ../ta-protocol/esm/common/settings-protocol.js
|
|
633
|
+
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
598
634
|
// ../ta-protocol/esm/common/team-protocol.js
|
|
599
635
|
var TA_UNDECLARED = "extensions.install";
|
|
600
636
|
var TaPermissionUtil;
|
|
@@ -854,7 +890,7 @@ var PostUtil;
|
|
|
854
890
|
return [];
|
|
855
891
|
}
|
|
856
892
|
const online = owner.self || owner.online;
|
|
857
|
-
const author = { id: owner.id, name: owner.name || room.ownerName };
|
|
893
|
+
const author = { id: owner.id, name: owner.name || room.ownerName, ...owner.look ? { look: owner.look } : {} };
|
|
858
894
|
const byMember = new Map(room.members.map((member) => [member.member, member]));
|
|
859
895
|
const self = room.members.find((member) => member.self);
|
|
860
896
|
const marks = (prefix, id) => {
|
|
@@ -873,7 +909,7 @@ var PostUtil;
|
|
|
873
909
|
mine = true;
|
|
874
910
|
}
|
|
875
911
|
if (who.id === me || who.id === owner.id || owner.id === me || friends.has(who.id)) {
|
|
876
|
-
people.push({ id: who.id, name: who.name });
|
|
912
|
+
people.push({ id: who.id, name: who.name, ...who.look ? { look: who.look } : {} });
|
|
877
913
|
}
|
|
878
914
|
}
|
|
879
915
|
return { people, mine };
|
|
@@ -1768,7 +1804,7 @@ class MomentsHost {
|
|
|
1768
1804
|
}
|
|
1769
1805
|
return {
|
|
1770
1806
|
me,
|
|
1771
|
-
friends: friends.map(({ id, name }) => ({ id, name })),
|
|
1807
|
+
friends: friends.map(({ id, name, look }) => ({ id, name, ...look ? { look } : {} })),
|
|
1772
1808
|
asking: requests.length,
|
|
1773
1809
|
posts: posts.sort((a, b) => b.at - a.at)
|
|
1774
1810
|
};
|
|
@@ -112,7 +112,7 @@ function PostEditor({ text: first, images, attach: firstAttach, pickPackage, onP
|
|
|
112
112
|
context_1.React.createElement("button", { type: "button", className: "tmo-chip-x", "aria-label": (0, context_1.t)('cancel'), onClick: () => setAttach(undefined) }, X && context_1.React.createElement(X, { size: 12 }))))),
|
|
113
113
|
context_1.React.createElement("div", { className: "tmo-editor-row" },
|
|
114
114
|
context_1.React.createElement("span", { className: "tmo-editor-label" }, (0, context_1.t)('keep')),
|
|
115
|
-
context_1.React.createElement("div", { className: "tmo-segments" }, moments_protocol_1.Limits.DAYS.map(value => (context_1.React.createElement("button", { key: value, type: "button", "aria-pressed": days === value, className:
|
|
115
|
+
context_1.React.createElement("div", { className: "ta-segmented tmo-segments" }, moments_protocol_1.Limits.DAYS.map(value => (context_1.React.createElement("button", { key: value, type: "button", "aria-pressed": days === value, className: days === value ? 'ta-on' : undefined, onClick: () => setDays(value) }, (0, context_1.t)(KEEP[value])))))),
|
|
116
116
|
context_1.React.createElement("label", { className: "tmo-editor-row tmo-editor-check" },
|
|
117
117
|
context_1.React.createElement("input", { type: "checkbox", checked: ask, onChange: event => setAsk(event.target.checked) }),
|
|
118
118
|
context_1.React.createElement("span", null, (0, context_1.t)('allowAsk')),
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
export declare function show(component: React.ComponentType<{
|
|
3
3
|
close(): void;
|
|
4
4
|
}>): void;
|
|
5
|
-
|
|
5
|
+
/** A Ta as its double looks (`look`); the user's own, `mine`, as the double the user picked. */
|
|
6
|
+
export declare function Face({ id, look, mine, size }: {
|
|
6
7
|
id: string;
|
|
8
|
+
look?: string;
|
|
9
|
+
mine?: boolean;
|
|
7
10
|
size?: number;
|
|
8
11
|
}): import("react").JSX.Element;
|
|
9
12
|
/** The page of friends, which Rooms has: the one place friends are added, answered and removed. */
|
|
@@ -14,9 +14,10 @@ function show(component) {
|
|
|
14
14
|
}
|
|
15
15
|
context_1.pi.ui.custom(component);
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
/** A Ta as its double looks (`look`); the user's own, `mine`, as the double the user picked. */
|
|
18
|
+
function Face({ id, look, mine, size = 40 }) {
|
|
18
19
|
const Face = context_1.pi.ui.Face;
|
|
19
|
-
return Face ? context_1.React.createElement(Face, { seed: id, size: size }) : context_1.React.createElement("span", { className: "tmo-face", style: { width: size, height: size } });
|
|
20
|
+
return Face ? context_1.React.createElement(Face, { seed: id, look: look, double: mine || undefined, size: size }) : context_1.React.createElement("span", { className: "tmo-face", style: { width: size, height: size } });
|
|
20
21
|
}
|
|
21
22
|
/** The page of friends, which Rooms has: the one place friends are added, answered and removed. */
|
|
22
23
|
exports.FRIENDS_VIEW = '@celljs/ta-rooms/friends';
|
|
@@ -140,7 +140,7 @@ class MomentsHost {
|
|
|
140
140
|
}
|
|
141
141
|
return {
|
|
142
142
|
me,
|
|
143
|
-
friends: friends.map(({ id, name }) => ({ id, name })),
|
|
143
|
+
friends: friends.map(({ id, name, look }) => ({ id, name, ...(look ? { look } : {}) })),
|
|
144
144
|
asking: requests.length,
|
|
145
145
|
posts: posts.sort((a, b) => b.at - a.at),
|
|
146
146
|
};
|
|
@@ -196,6 +196,8 @@ export type TalkMessage = {
|
|
|
196
196
|
export interface MomentsPerson {
|
|
197
197
|
id: string;
|
|
198
198
|
name: string;
|
|
199
|
+
/** The look of its double (TaRoomMember.look), as it is drawn. */
|
|
200
|
+
look?: string;
|
|
199
201
|
}
|
|
200
202
|
/** A post as the page shows it. */
|
|
201
203
|
export interface FeedPost {
|
|
@@ -187,7 +187,7 @@ function PostView({ post, me, now }) {
|
|
|
187
187
|
const Spark = (0, context_1.icon)('Sparkles');
|
|
188
188
|
const Comment = (0, context_1.icon)('MessageCircle');
|
|
189
189
|
return (context_1.React.createElement("article", { className: "tmo-post", "data-post": `${post.room}:${post.id}` },
|
|
190
|
-
context_1.React.createElement(friends_1.Face, { id: post.author.id, size: 42 }),
|
|
190
|
+
context_1.React.createElement(friends_1.Face, { id: post.author.id, look: post.author.look, mine: post.mine, size: 42 }),
|
|
191
191
|
context_1.React.createElement("div", { className: "tmo-post-body" },
|
|
192
192
|
context_1.React.createElement("div", { className: "tmo-name" }, post.author.name),
|
|
193
193
|
post.why && (context_1.React.createElement("div", { className: "tmo-why", title: (0, context_1.t)('whyHint') },
|
|
@@ -237,7 +237,7 @@ function FriendsRow() {
|
|
|
237
237
|
context_1.React.createElement("span", { className: "tmo-friends-label" }, (0, context_1.t)('friends')),
|
|
238
238
|
(state === null || state === void 0 ? void 0 : state.asking) ? context_1.React.createElement("span", { className: "tmo-dot" }) : null,
|
|
239
239
|
context_1.React.createElement("span", { className: "tmo-grow" }),
|
|
240
|
-
friends.length > 0 && GroupFace && context_1.React.createElement(GroupFace, { members: friends.slice(0, 4).map(friend => ({ seed: friend.id })), size: 24 }),
|
|
240
|
+
friends.length > 0 && GroupFace && context_1.React.createElement(GroupFace, { members: friends.slice(0, 4).map(friend => ({ seed: friend.id, look: friend.look })), size: 24 }),
|
|
241
241
|
context_1.React.createElement("span", { className: "tmo-quiet" }, friends.length ? (0, context_1.t)('friendsCount', { n: friends.length }) : (0, context_1.t)('friendsNone')),
|
|
242
242
|
Chevron && (context_1.React.createElement("span", { className: "tmo-quiet tmo-chevron" },
|
|
243
243
|
context_1.React.createElement(Chevron, { size: 16 })))));
|
|
@@ -285,8 +285,7 @@ function MomentsPage() {
|
|
|
285
285
|
return (context_1.React.createElement("section", { className: "tmo-page", "aria-label": (0, context_1.t)('title') },
|
|
286
286
|
context_1.React.createElement("div", { className: "tmo-feed" },
|
|
287
287
|
context_1.React.createElement(FriendsRow, null),
|
|
288
|
-
state.posts.length ? (state.posts.map(post => context_1.React.createElement(PostView, { key: `${post.room}:${post.id}`, post: post, me: state.me.id, now: now }))) : state.friends.length ? (context_1.React.createElement(context_1.pi.ui.Empty, { title: (0, context_1.t)('noPosts'), hint: (0, context_1.t)('noPostsHint') })) : (context_1.React.createElement(
|
|
289
|
-
context_1.React.createElement(context_1.pi.ui.Empty, { title: (0, context_1.t)('emptyTitle'), hint: (0, context_1.t)('emptyHint'), compact: true }),
|
|
288
|
+
state.posts.length ? (state.posts.map(post => context_1.React.createElement(PostView, { key: `${post.room}:${post.id}`, post: post, me: state.me.id, now: now }))) : state.friends.length ? (context_1.React.createElement(context_1.pi.ui.Empty, { title: (0, context_1.t)('noPosts'), hint: (0, context_1.t)('noPostsHint') })) : (context_1.React.createElement(context_1.pi.ui.Empty, { title: (0, context_1.t)('emptyTitle'), hint: (0, context_1.t)('emptyHint') },
|
|
290
289
|
context_1.React.createElement("button", { type: "button", className: "ta-button ta-primary", onClick: friends_1.openFriends },
|
|
291
290
|
Add && context_1.React.createElement(Add, { size: 14 }),
|
|
292
291
|
" ",
|
|
@@ -301,7 +300,7 @@ function MomentsMark() {
|
|
|
301
300
|
return null;
|
|
302
301
|
}
|
|
303
302
|
return (context_1.React.createElement("span", { className: "tmo-mark" },
|
|
304
|
-
context_1.React.createElement(friends_1.Face, { id: latest.author.id, size: 26 }),
|
|
303
|
+
context_1.React.createElement(friends_1.Face, { id: latest.author.id, look: latest.author.look, size: 26 }),
|
|
305
304
|
context_1.React.createElement("i", { className: "tmo-mark-dot" })));
|
|
306
305
|
}
|
|
307
306
|
//# sourceMappingURL=page.js.map
|
|
@@ -142,7 +142,7 @@ var PostUtil;
|
|
|
142
142
|
return [];
|
|
143
143
|
}
|
|
144
144
|
const online = owner.self || owner.online;
|
|
145
|
-
const author = { id: owner.id, name: owner.name || room.ownerName };
|
|
145
|
+
const author = { id: owner.id, name: owner.name || room.ownerName, ...(owner.look ? { look: owner.look } : {}) };
|
|
146
146
|
const byMember = new Map(room.members.map(member => [member.member, member]));
|
|
147
147
|
const self = room.members.find(member => member.self);
|
|
148
148
|
const marks = (prefix, id) => {
|
|
@@ -162,7 +162,7 @@ var PostUtil;
|
|
|
162
162
|
mine = true;
|
|
163
163
|
}
|
|
164
164
|
if (who.id === me || who.id === owner.id || owner.id === me || friends.has(who.id)) {
|
|
165
|
-
people.push({ id: who.id, name: who.name });
|
|
165
|
+
people.push({ id: who.id, name: who.name, ...(who.look ? { look: who.look } : {}) });
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
return { people, mine };
|
|
@@ -79,6 +79,12 @@ class MomentsStore {
|
|
|
79
79
|
if (latest > this.seen) {
|
|
80
80
|
this.seen = latest;
|
|
81
81
|
this.emit();
|
|
82
|
+
// Another page may have seen later posts than this one has yet: what is kept only moves on.
|
|
83
|
+
const kept = await context_1.pi.storage.get(moments_protocol_1.Keys.SEEN).catch(() => undefined);
|
|
84
|
+
if (typeof kept === 'number' && kept >= latest) {
|
|
85
|
+
await this.readSeen();
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
82
88
|
await context_1.pi.storage.set(moments_protocol_1.Keys.SEEN, latest);
|
|
83
89
|
}
|
|
84
90
|
}
|