@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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TeamSharedHome = void 0;
|
|
4
|
+
const relay_host_calls_1 = require("@celljs/ta-relay/lib/common/relay-host-calls");
|
|
4
5
|
const page_1 = require("./page");
|
|
5
6
|
const protocol_1 = require("./protocol");
|
|
6
|
-
const remote_1 = require("./remote");
|
|
7
7
|
/** Where the page asks the Ta it switches to for what to open: in this browser alone. */
|
|
8
8
|
const OPEN_KEY = 'ta-team.open';
|
|
9
9
|
/** What was shared is read again this often while the home is shown. */
|
|
@@ -40,7 +40,7 @@ class TeamSharedHome {
|
|
|
40
40
|
const joined = ((_a = (await page_1.pi.storage.get(protocol_1.JOINED_KEY).catch(() => undefined))) !== null && _a !== void 0 ? _a : []).filter(one => typeof (one === null || one === void 0 ? void 0 : one.pairing) === 'string');
|
|
41
41
|
this.show(joined);
|
|
42
42
|
const read = await Promise.all(joined.map(async (one) => {
|
|
43
|
-
const remote =
|
|
43
|
+
const remote = relay_host_calls_1.RelayHostCalls.of(one.pairing, protocol_1.NAME);
|
|
44
44
|
try {
|
|
45
45
|
const shared = (await remote.callHost('sharedWithMe'));
|
|
46
46
|
return { ...one, shared: shared.map(({ kind, id, name, face, mark }) => ({ kind, id, name, face, mark })), readAt: Date.now() };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. Prefix `ttm-`. */
|
|
2
|
-
export declare const STYLE = "\n.ttm-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; }\n.ttm-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; padding: 8px 12px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n.ttm-pad { padding: 16px; }\n.ttm-hero { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--ta-raised); }\n.ttm-hero strong { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ttm-section h3 { display: flex; align-items: center; justify-content: space-between; height: 30px; margin: 0; padding: 0 10px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ttm-card { margin: 0; padding: 2px 6px; list-style: none; border-radius: 14px; background: var(--ta-raised); }\n.ttm-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 6px; box-sizing: border-box; }\n.ttm-row + .ttm-row, .ttm-card > li + li { border-top: 1px solid var(--ta-border-muted); }\n.ttm-row-wrap { flex-wrap: wrap; }\n.ttm-row-wrap .ttm-answers { width: 100%; justify-content: flex-end; }\n.ttm-row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }\n.ttm-row-title { display: flex; align-items: center; gap: 6px; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; }\n.ttm-row-line { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ttm-live { color: var(--ta-green); }\n.ttm-button-row { width: 100%; border: 0; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }\n@media (hover: hover) { .ttm-button-row:hover { background: var(--ta-hover); } }\n.ttm-add { color: var(--ta-link); min-height: 44px; }\n.ttm-answers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }\n.ttm-tag { flex: none; 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)); font-weight: 400; line-height: calc(17px * var(--ta-font-scale)); }\n.ttm-tag-good { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.ttm-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 6px; }\n.ttm-chip { padding: 3px 8px; border-radius: 999px; background: var(--ta-hover); font-size: calc(12px * var(--ta-font-scale)); }\n.ttm-quiet { color: var(--ta-muted); }\n.ttm-small { font-size: calc(12px * var(--ta-font-scale)); min-height: 0; }\n.ttm-mono { font-family: var(--ta-mono, ui-monospace, monospace); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ttm-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ttm-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); cursor: pointer; }\n.ttm-icon:hover { background: var(--ta-hover); }\n.ttm-danger { color: var(--ta-red); }\n.ttm-link { padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.ttm-letter { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ta-hover); font-weight: 600; }\n.ttm-select, .ttm-input { box-sizing: border-box; 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)); }\n.ttm-input { width: 100%; }\n.ttm-select-small { padding: 4px 8px; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ttm-record { display: flex; justify-content: space-between; gap: 10px; padding: 8px 6px; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ttm-record-text { min-width: 0; }\n.ttm-dialog { display: flex; flex-direction: column; gap: 12px; min-width: min(420px, 82vw); }\n.ttm-role { max-height: 70vh; overflow-y: auto; }\n.ttm-lead { margin: 0; line-height: 1.5; }\n.ttm-hint { margin: 0; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n.ttm-error { margin: 0; color: var(--ta-red); }\n.ttm-field { display: flex; flex-direction: column; gap: 6px; font-size: calc(13px * var(--ta-font-scale)); }\n.ttm-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }\n.ttm-check > span { display: flex; flex-direction: column; gap: 2px; }\n.ttm-check small { color: var(--ta-muted); }\n.ttm-check-small { font-size: calc(13px * var(--ta-font-scale)); }\n.ttm-risky { color: var(--ta-orange, var(--ta-red)) !important; }\n.ttm-area { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; margin: 0; padding: 8px 0; border: 0; border-top: 1px solid var(--ta-border-muted); }\n.ttm-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }\n.ttm-center { justify-content: center; }\n.ttm-grow { flex: 1; }\n.ttm-qr { display: flex; justify-content: center; }\n/*
|
|
2
|
+
export declare const STYLE = "\n.ttm-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; }\n.ttm-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; padding: 8px 12px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n.ttm-pad { padding: 16px; }\n.ttm-hero { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--ta-raised); }\n.ttm-hero strong { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ttm-section h3 { display: flex; align-items: center; justify-content: space-between; height: 30px; margin: 0; padding: 0 10px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ttm-card { margin: 0; padding: 2px 6px; list-style: none; border-radius: 14px; background: var(--ta-raised); }\n.ttm-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 6px; box-sizing: border-box; }\n.ttm-row + .ttm-row, .ttm-card > li + li { border-top: 1px solid var(--ta-border-muted); }\n.ttm-row-wrap { flex-wrap: wrap; }\n.ttm-row-wrap .ttm-answers { width: 100%; justify-content: flex-end; }\n.ttm-row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }\n.ttm-row-title { display: flex; align-items: center; gap: 6px; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; }\n.ttm-row-line { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ttm-live { color: var(--ta-green); }\n.ttm-button-row { width: 100%; border: 0; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }\n@media (hover: hover) { .ttm-button-row:hover { background: var(--ta-hover); } }\n.ttm-add { color: var(--ta-link); min-height: 44px; }\n.ttm-answers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }\n.ttm-tag { flex: none; 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)); font-weight: 400; line-height: calc(17px * var(--ta-font-scale)); }\n.ttm-tag-good { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.ttm-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 6px; }\n.ttm-chip { padding: 3px 8px; border-radius: 999px; background: var(--ta-hover); font-size: calc(12px * var(--ta-font-scale)); }\n.ttm-quiet { color: var(--ta-muted); }\n.ttm-small { font-size: calc(12px * var(--ta-font-scale)); min-height: 0; }\n.ttm-mono { font-family: var(--ta-mono, ui-monospace, monospace); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ttm-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ttm-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); cursor: pointer; }\n.ttm-icon:hover { background: var(--ta-hover); }\n.ttm-danger { color: var(--ta-red); }\n.ttm-follow-wrap { display: flex; align-items: center; gap: 4px; }\n.ttm-follow { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--ta-chip, var(--ta-hover)); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ttm-follow-wrap > .ttm-follow { margin-right: 6px; }\n.ttm-link { padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.ttm-letter { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ta-hover); font-weight: 600; }\n.ttm-select, .ttm-input { box-sizing: border-box; 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)); }\n.ttm-input { width: 100%; }\n.ttm-textarea { resize: vertical; min-height: 56px; }\n.ttm-sign-ins { display: flex; flex-direction: column; gap: 8px; }\n.ttm-select-small { padding: 4px 8px; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ttm-record { display: flex; justify-content: space-between; gap: 10px; padding: 8px 6px; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ttm-record-text { min-width: 0; }\n.ttm-dialog { display: flex; flex-direction: column; gap: 12px; min-width: min(420px, 82vw); }\n.ttm-role { max-height: 70vh; overflow-y: auto; }\n.ttm-lead { margin: 0; line-height: 1.5; }\n.ttm-hint { margin: 0; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n.ttm-error { margin: 0; color: var(--ta-red); }\n.ttm-field { display: flex; flex-direction: column; gap: 6px; font-size: calc(13px * var(--ta-font-scale)); }\n.ttm-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }\n.ttm-check > span { display: flex; flex-direction: column; gap: 2px; }\n.ttm-check small { color: var(--ta-muted); }\n.ttm-check-small { font-size: calc(13px * var(--ta-font-scale)); }\n.ttm-risky { color: var(--ta-orange, var(--ta-red)) !important; }\n.ttm-area { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; margin: 0; padding: 8px 0; border: 0; border-top: 1px solid var(--ta-border-muted); }\n.ttm-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }\n.ttm-center { justify-content: center; }\n.ttm-grow { flex: 1; }\n.ttm-qr { display: flex; justify-content: center; }\n/* The tabs of the page are the page's segmented control (.ta-segmented); only what it lacks: they size to their labels and carry a count */\n.ttm-segments { align-self: flex-start; max-width: 100%; overflow-x: auto; }\n.ttm-segments button { position: relative; padding: 0 14px; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ttm-badge { min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: calc(10px * var(--ta-font-scale)); line-height: 16px; text-align: center; }\n.ttm-choices { display: flex; flex-direction: column; gap: 6px; }\n.ttm-choice { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; cursor: pointer; }\n.ttm-choice.ttm-on { border-color: var(--ta-border-focus); background: color-mix(in srgb, var(--ta-border-focus) 6%, transparent); }\n.ttm-choice input { margin-top: 3px; }\n.ttm-choice > span { display: flex; flex-direction: column; gap: 2px; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ttm-choice small { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\nfieldset.ttm-plain { margin: 0; padding: 0; border: 0; min-width: 0; }\nfieldset.ttm-plain:disabled .ttm-choice { cursor: default; opacity: .75; }\n.ttm-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 220px; overflow-y: auto; }\n.ttm-pick { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; }\n.ttm-pick.ttm-on { border-color: var(--ta-border-focus); background: color-mix(in srgb, var(--ta-border-focus) 8%, transparent); }\n.ttm-member { min-width: min(460px, 86vw); max-height: 78vh; overflow-y: auto; }\n.ttm-member-top { display: flex; align-items: center; gap: 12px; }\n.ttm-member-top strong { font-size: calc(15px * var(--ta-font-scale)); }\n.ttm-hidden { display: none; }\n.ttm-number { width: 76px; text-align: right; }\n.ttm-hero-row { flex-direction: row; align-items: center; gap: 12px; }\n.ttm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }\n.ttm-search { flex: 1; min-width: 140px; width: auto; padding: 5px 10px; font-size: calc(13px * var(--ta-font-scale)); }\n.ttm-tag-bad { background: color-mix(in srgb, var(--ta-red) 14%, transparent); color: var(--ta-red); margin-left: 6px; }\n.ttm-tag-warn { background: color-mix(in srgb, var(--ta-orange, var(--ta-red)) 14%, transparent); color: var(--ta-orange, var(--ta-red)); margin-left: 6px; }\n.ttm-wrap { white-space: normal; flex-wrap: wrap; }\n.ttm-seen { opacity: .6; }\n[data-layout='compact'] .ttm-hero-row { flex-direction: column; align-items: stretch; }\n[data-layout='compact'] .ttm-record { flex-direction: column; gap: 2px; }\n.ttm-link-box { padding: 8px 10px; border-radius: 8px; background: var(--ta-hover); font-family: var(--ta-mono, ui-monospace, monospace); font-size: calc(11.5px * var(--ta-font-scale)); word-break: break-all; user-select: all; }\n";
|
|
3
3
|
export declare function injectStyle(): () => void;
|
|
4
4
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -34,10 +34,15 @@ exports.STYLE = `
|
|
|
34
34
|
.ttm-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); cursor: pointer; }
|
|
35
35
|
.ttm-icon:hover { background: var(--ta-hover); }
|
|
36
36
|
.ttm-danger { color: var(--ta-red); }
|
|
37
|
+
.ttm-follow-wrap { display: flex; align-items: center; gap: 4px; }
|
|
38
|
+
.ttm-follow { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--ta-chip, var(--ta-hover)); font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
39
|
+
.ttm-follow-wrap > .ttm-follow { margin-right: 6px; }
|
|
37
40
|
.ttm-link { padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }
|
|
38
41
|
.ttm-letter { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ta-hover); font-weight: 600; }
|
|
39
42
|
.ttm-select, .ttm-input { box-sizing: border-box; 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)); }
|
|
40
43
|
.ttm-input { width: 100%; }
|
|
44
|
+
.ttm-textarea { resize: vertical; min-height: 56px; }
|
|
45
|
+
.ttm-sign-ins { display: flex; flex-direction: column; gap: 8px; }
|
|
41
46
|
.ttm-select-small { padding: 4px 8px; font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
42
47
|
.ttm-record { display: flex; justify-content: space-between; gap: 10px; padding: 8px 6px; font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
43
48
|
.ttm-record-text { min-width: 0; }
|
|
@@ -57,10 +62,9 @@ exports.STYLE = `
|
|
|
57
62
|
.ttm-center { justify-content: center; }
|
|
58
63
|
.ttm-grow { flex: 1; }
|
|
59
64
|
.ttm-qr { display: flex; justify-content: center; }
|
|
60
|
-
/*
|
|
61
|
-
.ttm-segments {
|
|
62
|
-
.ttm-
|
|
63
|
-
.ttm-segment.ttm-on { background: var(--ta-main); color: var(--ta-text); font-weight: 500; box-shadow: 0 1px 2px rgb(0 0 0 / 8%); }
|
|
65
|
+
/* The tabs of the page are the page's segmented control (.ta-segmented); only what it lacks: they size to their labels and carry a count */
|
|
66
|
+
.ttm-segments { align-self: flex-start; max-width: 100%; overflow-x: auto; }
|
|
67
|
+
.ttm-segments button { position: relative; padding: 0 14px; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
64
68
|
.ttm-badge { min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: calc(10px * var(--ta-font-scale)); line-height: 16px; text-align: center; }
|
|
65
69
|
.ttm-choices { display: flex; flex-direction: column; gap: 6px; }
|
|
66
70
|
.ttm-choice { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; cursor: pointer; }
|
|
@@ -27,6 +27,7 @@ class TeamAdmin {
|
|
|
27
27
|
throw new team_error_1.TeamError('No such role.');
|
|
28
28
|
}
|
|
29
29
|
this.team.mayGive(by, role);
|
|
30
|
+
policy_1.TeamPolicy.mayHold(member, role);
|
|
30
31
|
member.role = role.id;
|
|
31
32
|
this.team.record(by, 'role', { member: member.id, role: role.id });
|
|
32
33
|
this.team.save();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RelayTeamAnswer, type RelayTeamWays } from '@celljs/ta-relay/lib/common/relay-team';
|
|
2
|
+
import { type TeamAccount, type TeamInvite, type TeamJoin, type TeamMember } from './protocol';
|
|
2
3
|
import { type TeamContext } from './team-core';
|
|
3
4
|
import { TeamWaits } from './team-waits';
|
|
4
5
|
/** What a link shares besides its role, as TeamShares makes it (13.2). */
|
|
@@ -11,6 +12,21 @@ export declare class TeamInvites {
|
|
|
11
12
|
protected readonly team: TeamContext;
|
|
12
13
|
protected readonly grantsOf: InviteGrants;
|
|
13
14
|
protected readonly waits: TeamWaits;
|
|
15
|
+
/** The state of each sign-in started by a link, and that link's: a sign-in is used by the link that started it alone. */
|
|
16
|
+
protected readonly signIns: Map<string, {
|
|
17
|
+
invite: string;
|
|
18
|
+
at: number;
|
|
19
|
+
handoff?: string;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Sign-ins done in a browser for the Ta app that asks (17): the app opened the page of the link with a handoff id of
|
|
23
|
+
* its own, the browser signed in, and the account waits here under that id till the app asks with it.
|
|
24
|
+
*/
|
|
25
|
+
protected readonly handoffs: Map<string, {
|
|
26
|
+
invite: string;
|
|
27
|
+
account: TeamAccount;
|
|
28
|
+
at: number;
|
|
29
|
+
}>;
|
|
14
30
|
constructor(team: TeamContext, grantsOf: InviteGrants);
|
|
15
31
|
dispose(): void;
|
|
16
32
|
createInvite(input: {
|
|
@@ -22,25 +38,77 @@ export declare class TeamInvites {
|
|
|
22
38
|
level?: unknown;
|
|
23
39
|
}): Promise<TeamInvite>;
|
|
24
40
|
stopInvite(inviteId: unknown): void;
|
|
41
|
+
/** How one holding a link says who they are (docs/design/ta-team.md 17): the providers, and whether they must sign in. */
|
|
42
|
+
ways(input?: {
|
|
43
|
+
via?: unknown;
|
|
44
|
+
}): RelayTeamWays;
|
|
45
|
+
/** Where the browser of one holding a link goes to sign in, coming back to the page of the link on the relay. */
|
|
46
|
+
signIn(input: {
|
|
47
|
+
provider?: unknown;
|
|
48
|
+
handoff?: unknown;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
url: string;
|
|
51
|
+
state: string;
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* The browser came back signed in for the Ta app (a sign-in of {@link signIn} with a handoff): the account is
|
|
55
|
+
* verified now and kept for the app, which takes it with {@link handedOff}.
|
|
56
|
+
*/
|
|
57
|
+
signedIn(input: {
|
|
58
|
+
state?: unknown;
|
|
59
|
+
code?: unknown;
|
|
60
|
+
}): Promise<{
|
|
61
|
+
account: TeamAccount;
|
|
62
|
+
}>;
|
|
63
|
+
/** Waits a while for the browser to sign in for the app: the account once it did (it stays till the app asks with it). */
|
|
64
|
+
handedOff(handoff: unknown): Promise<{
|
|
65
|
+
status: 'waiting' | 'done';
|
|
66
|
+
account?: TeamAccount;
|
|
67
|
+
}>;
|
|
68
|
+
protected prune(now: number): void;
|
|
25
69
|
/** One holding a link asks to come in: let in at once by a link that needs no answer, else waiting for one. */
|
|
26
70
|
ask(input: {
|
|
27
71
|
name?: unknown;
|
|
28
72
|
box?: unknown;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
73
|
+
via?: unknown;
|
|
74
|
+
signIn?: {
|
|
75
|
+
state?: unknown;
|
|
76
|
+
code?: unknown;
|
|
77
|
+
handoff?: unknown;
|
|
78
|
+
};
|
|
79
|
+
}): Promise<RelayTeamAnswer>;
|
|
34
80
|
/** Waits a while for the answer to a request to come in. */
|
|
35
81
|
wait(request: unknown): Promise<{
|
|
36
82
|
status: TeamJoin['status'] | 'gone';
|
|
37
83
|
answer?: TeamJoin['answer'];
|
|
38
84
|
}>;
|
|
39
85
|
answerJoin(joinId: unknown, accept: unknown, roleId?: unknown): Promise<TeamJoin>;
|
|
86
|
+
/** The account of a sign-in this link started, as its provider says; throws when it is not one, or the provider refuses. */
|
|
87
|
+
protected account(invite: TeamInvite, signIn: {
|
|
88
|
+
state?: unknown;
|
|
89
|
+
code?: unknown;
|
|
90
|
+
handoff?: unknown;
|
|
91
|
+
}): Promise<TeamAccount>;
|
|
92
|
+
/** The account of a code the provider gave for a sign-in this link started, the state used once. */
|
|
93
|
+
protected verified(invite: TeamInvite, signIn: {
|
|
94
|
+
state?: unknown;
|
|
95
|
+
code?: unknown;
|
|
96
|
+
}): Promise<TeamAccount>;
|
|
97
|
+
protected manages(invite: TeamInvite): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Whether who asks by a link signs in first: whether to sign in is theirs (who does not is anonymous, by the name
|
|
100
|
+
* they give), but from a browser a role that manages members wants an account.
|
|
101
|
+
*/
|
|
102
|
+
protected needsAccount(invite: TeamInvite, web: boolean): boolean;
|
|
40
103
|
/** What runs out with time: links (with their devices), requests unanswered, grants. */
|
|
41
104
|
expire(now?: number): void;
|
|
42
105
|
protected inviteOfCaller(): TeamInvite;
|
|
43
106
|
protected letIn(join: TeamJoin, roleId: string, by: string): Promise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* A member coming in again with their account, from another browser or by another link: a device more for the same
|
|
109
|
+
* member, their role and grants as they are. The oldest of their devices go past MAX_DEVICES.
|
|
110
|
+
*/
|
|
111
|
+
protected letInAgain(join: TeamJoin, member: TeamMember): Promise<void>;
|
|
44
112
|
protected drop(invite: TeamInvite): void;
|
|
45
113
|
}
|
|
46
114
|
//# sourceMappingURL=team-invites.d.ts.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TeamInvites = void 0;
|
|
4
4
|
const team_protocol_1 = require("@celljs/ta-protocol/lib/common/team-protocol");
|
|
5
|
+
const relay_team_1 = require("@celljs/ta-relay/lib/common/relay-team");
|
|
5
6
|
const policy_1 = require("./policy");
|
|
6
7
|
const protocol_1 = require("./protocol");
|
|
7
|
-
const seal_1 = require("./seal");
|
|
8
8
|
const team_core_1 = require("./team-core");
|
|
9
9
|
const team_error_1 = require("./team-error");
|
|
10
10
|
const team_expiry_1 = require("./team-expiry");
|
|
@@ -12,6 +12,13 @@ const team_waits_1 = require("./team-waits");
|
|
|
12
12
|
const DAY = 24 * 60 * 60 * 1000;
|
|
13
13
|
/** Requests to come in waiting at once. */
|
|
14
14
|
const MAX_JOINS = 50;
|
|
15
|
+
/** Sign-ins of those asking under way at once, and how long each has with its provider (as SignInFlow). */
|
|
16
|
+
const MAX_SIGN_INS = 200;
|
|
17
|
+
const SIGN_IN_MS = 10 * 60 * 1000;
|
|
18
|
+
/** The id the Ta app makes for a sign-in it hands to the browser (RelayTeamLinkUtil.signInFor). */
|
|
19
|
+
const HANDOFF = /^[A-Za-z0-9_-]{16,64}$/;
|
|
20
|
+
/** Devices one member keeps, coming in again by their account: the oldest go. */
|
|
21
|
+
const MAX_DEVICES = 10;
|
|
15
22
|
/**
|
|
16
23
|
* Coming in (docs/design/ta-team.md 8): links that invite, one holding a link asking and waiting, the answer, and the
|
|
17
24
|
* device sealed for the one let in alone. What runs out with time goes here too.
|
|
@@ -21,6 +28,13 @@ class TeamInvites {
|
|
|
21
28
|
this.team = team;
|
|
22
29
|
this.grantsOf = grantsOf;
|
|
23
30
|
this.waits = new team_waits_1.TeamWaits();
|
|
31
|
+
/** The state of each sign-in started by a link, and that link's: a sign-in is used by the link that started it alone. */
|
|
32
|
+
this.signIns = new Map();
|
|
33
|
+
/**
|
|
34
|
+
* Sign-ins done in a browser for the Ta app that asks (17): the app opened the page of the link with a handoff id of
|
|
35
|
+
* its own, the browser signed in, and the account waits here under that id till the app asks with it.
|
|
36
|
+
*/
|
|
37
|
+
this.handoffs = new Map();
|
|
24
38
|
}
|
|
25
39
|
dispose() {
|
|
26
40
|
this.waits.wakeAll();
|
|
@@ -50,7 +64,7 @@ class TeamInvites {
|
|
|
50
64
|
id,
|
|
51
65
|
role: role.id,
|
|
52
66
|
device: pairing.device,
|
|
53
|
-
link:
|
|
67
|
+
link: relay_team_1.RelayTeamLinkUtil.format({
|
|
54
68
|
relay: pairing.relay,
|
|
55
69
|
host: pairing.host,
|
|
56
70
|
device: pairing.device,
|
|
@@ -81,24 +95,121 @@ class TeamInvites {
|
|
|
81
95
|
this.team.save();
|
|
82
96
|
}
|
|
83
97
|
}
|
|
98
|
+
/** How one holding a link says who they are (docs/design/ta-team.md 17): the providers, and whether they must sign in. */
|
|
99
|
+
ways(input) {
|
|
100
|
+
const invite = this.inviteOfCaller();
|
|
101
|
+
const providers = this.team.host.team.accounts.providers();
|
|
102
|
+
const manages = this.manages(invite);
|
|
103
|
+
return { providers, required: this.needsAccount(invite, (input === null || input === void 0 ? void 0 : input.via) === 'web'), ...(manages ? { manages } : {}) };
|
|
104
|
+
}
|
|
105
|
+
/** Where the browser of one holding a link goes to sign in, coming back to the page of the link on the relay. */
|
|
106
|
+
async signIn(input) {
|
|
107
|
+
var _a;
|
|
108
|
+
const invite = this.inviteOfCaller();
|
|
109
|
+
const provider = String((_a = input === null || input === void 0 ? void 0 : input.provider) !== null && _a !== void 0 ? _a : '');
|
|
110
|
+
const handoff = (input === null || input === void 0 ? void 0 : input.handoff) === undefined ? undefined : String(input.handoff);
|
|
111
|
+
if (handoff !== undefined && !HANDOFF.test(handoff)) {
|
|
112
|
+
throw new team_error_1.TeamError('Not a handoff of the Ta app.');
|
|
113
|
+
}
|
|
114
|
+
if (!this.team.host.team.accounts.providers().some(one => one.id === provider)) {
|
|
115
|
+
throw new team_error_1.TeamError('This Ta does not sign in with that.');
|
|
116
|
+
}
|
|
117
|
+
const now = Date.now();
|
|
118
|
+
this.prune(now);
|
|
119
|
+
// Back to the page of the link, on the relay of the link: the code the provider sends with the browser is of no use
|
|
120
|
+
// to that relay, the secret and PKCE's verifier staying here.
|
|
121
|
+
const back = `${new URL(invite.link).origin}${relay_team_1.RELAY_JOIN_PATH}`;
|
|
122
|
+
const started = await this.team.host.team.accounts.start(provider, back);
|
|
123
|
+
this.signIns.set(started.state, { invite: invite.id, at: now, ...(handoff ? { handoff } : {}) });
|
|
124
|
+
return started;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The browser came back signed in for the Ta app (a sign-in of {@link signIn} with a handoff): the account is
|
|
128
|
+
* verified now and kept for the app, which takes it with {@link handedOff}.
|
|
129
|
+
*/
|
|
130
|
+
async signedIn(input) {
|
|
131
|
+
var _a;
|
|
132
|
+
var _b;
|
|
133
|
+
const invite = this.inviteOfCaller();
|
|
134
|
+
const handoff = (_a = this.signIns.get(String((_b = input === null || input === void 0 ? void 0 : input.state) !== null && _b !== void 0 ? _b : ''))) === null || _a === void 0 ? void 0 : _a.handoff;
|
|
135
|
+
if (!handoff) {
|
|
136
|
+
throw new team_error_1.TeamError('The sign-in expired: sign in again.');
|
|
137
|
+
}
|
|
138
|
+
const account = await this.verified(invite, input);
|
|
139
|
+
this.handoffs.set(handoff, { invite: invite.id, account, at: Date.now() });
|
|
140
|
+
this.waits.wake(`handoff:${handoff}`);
|
|
141
|
+
return { account };
|
|
142
|
+
}
|
|
143
|
+
/** Waits a while for the browser to sign in for the app: the account once it did (it stays till the app asks with it). */
|
|
144
|
+
async handedOff(handoff) {
|
|
145
|
+
const invite = this.inviteOfCaller();
|
|
146
|
+
const id = String(handoff !== null && handoff !== void 0 ? handoff : '');
|
|
147
|
+
const find = () => {
|
|
148
|
+
const kept = this.handoffs.get(id);
|
|
149
|
+
return (kept === null || kept === void 0 ? void 0 : kept.invite) === invite.id && Date.now() - kept.at <= SIGN_IN_MS ? kept : undefined;
|
|
150
|
+
};
|
|
151
|
+
if (!find()) {
|
|
152
|
+
await this.waits.sleep(`handoff:${id}`, protocol_1.WAIT_MS);
|
|
153
|
+
}
|
|
154
|
+
const kept = find();
|
|
155
|
+
return kept ? { status: 'done', account: kept.account } : { status: 'waiting' };
|
|
156
|
+
}
|
|
157
|
+
prune(now) {
|
|
158
|
+
for (const [state, started] of this.signIns) {
|
|
159
|
+
if (now - started.at > SIGN_IN_MS || this.signIns.size >= MAX_SIGN_INS) {
|
|
160
|
+
this.signIns.delete(state);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
for (const [id, kept] of this.handoffs) {
|
|
164
|
+
if (now - kept.at > SIGN_IN_MS || this.handoffs.size >= MAX_SIGN_INS) {
|
|
165
|
+
this.handoffs.delete(id);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
84
169
|
/** One holding a link asks to come in: let in at once by a link that needs no answer, else waiting for one. */
|
|
85
170
|
async ask(input) {
|
|
86
171
|
var _a;
|
|
87
172
|
const { team } = this;
|
|
88
173
|
const invite = this.inviteOfCaller();
|
|
89
|
-
|
|
174
|
+
if (!relay_team_1.RelayTeamSeal.isKey(input === null || input === void 0 ? void 0 : input.box)) {
|
|
175
|
+
throw new team_error_1.TeamError('Give a name, and the public key of the request.');
|
|
176
|
+
}
|
|
177
|
+
const web = (input === null || input === void 0 ? void 0 : input.via) === 'web';
|
|
178
|
+
const who = `${team_protocol_1.TA_INVITE_PREFIX}${invite.id}`;
|
|
179
|
+
const account = (input === null || input === void 0 ? void 0 : input.signIn) ? await this.account(invite, input.signIn) : undefined;
|
|
180
|
+
const name = String((input === null || input === void 0 ? void 0 : input.name) || (account === null || account === void 0 ? void 0 : account.name) || (account === null || account === void 0 ? void 0 : account.id) || '')
|
|
90
181
|
.trim()
|
|
91
182
|
.slice(0, 40);
|
|
92
|
-
if (!name
|
|
183
|
+
if (!name) {
|
|
93
184
|
throw new team_error_1.TeamError('Give a name, and the public key of the request.');
|
|
94
185
|
}
|
|
95
|
-
if (
|
|
186
|
+
if (!account && this.needsAccount(invite, web)) {
|
|
187
|
+
// From a browser a role that manages members wants an account; without a provider, the Ta app.
|
|
188
|
+
const reason = web && this.manages(invite) && !team.host.team.accounts.providers().length ? 'app' : 'account';
|
|
189
|
+
team.record(who, 'ask', { name, ...(web ? { web } : {}), refused: reason });
|
|
190
|
+
return { request: '', status: 'refused', reason };
|
|
191
|
+
}
|
|
192
|
+
// One who is a member already, by the account they signed in with: in again, as the same person.
|
|
193
|
+
const member = account && team.data.members.find(one => { var _a; return ((_a = one.account) === null || _a === void 0 ? void 0 : _a.id) === account.id; });
|
|
194
|
+
if (!member && team.data.joins.filter(join => join.status === 'waiting').length >= MAX_JOINS) {
|
|
96
195
|
throw new team_error_1.TeamError('Too many are waiting to come in; try again later.');
|
|
97
196
|
}
|
|
98
|
-
const join = {
|
|
197
|
+
const join = {
|
|
198
|
+
id: (0, team_core_1.newId)(),
|
|
199
|
+
invite: invite.id,
|
|
200
|
+
name: (_a = member === null || member === void 0 ? void 0 : member.name) !== null && _a !== void 0 ? _a : name,
|
|
201
|
+
box: input.box,
|
|
202
|
+
at: Date.now(),
|
|
203
|
+
status: 'waiting',
|
|
204
|
+
...(web ? { web: true } : {}),
|
|
205
|
+
...(account ? { account } : {}),
|
|
206
|
+
};
|
|
99
207
|
team.data.joins.push(join);
|
|
100
|
-
team.record(
|
|
101
|
-
if (
|
|
208
|
+
team.record(who, 'ask', { join: join.id, name, ...(web ? { web } : {}), ...(account ? { account: account.id } : {}) });
|
|
209
|
+
if (member) {
|
|
210
|
+
await this.letIn(join, member.role, member.by);
|
|
211
|
+
}
|
|
212
|
+
else if (!invite.approve) {
|
|
102
213
|
await this.letIn(join, invite.role, invite.by);
|
|
103
214
|
}
|
|
104
215
|
else {
|
|
@@ -140,9 +251,53 @@ class TeamInvites {
|
|
|
140
251
|
throw new team_error_1.TeamError('No such role.');
|
|
141
252
|
}
|
|
142
253
|
team.mayGive(by, role);
|
|
254
|
+
policy_1.TeamPolicy.mayHold(join, role);
|
|
143
255
|
await this.letIn(join, role.id, by);
|
|
144
256
|
return join;
|
|
145
257
|
}
|
|
258
|
+
/** The account of a sign-in this link started, as its provider says; throws when it is not one, or the provider refuses. */
|
|
259
|
+
async account(invite, signIn) {
|
|
260
|
+
if ((signIn === null || signIn === void 0 ? void 0 : signIn.handoff) !== undefined) {
|
|
261
|
+
const id = String(signIn.handoff);
|
|
262
|
+
const kept = this.handoffs.get(id);
|
|
263
|
+
this.handoffs.delete(id);
|
|
264
|
+
if (!kept || kept.invite !== invite.id || Date.now() - kept.at > SIGN_IN_MS) {
|
|
265
|
+
throw new team_error_1.TeamError('The sign-in expired: sign in again.');
|
|
266
|
+
}
|
|
267
|
+
return kept.account;
|
|
268
|
+
}
|
|
269
|
+
return this.verified(invite, signIn);
|
|
270
|
+
}
|
|
271
|
+
/** The account of a code the provider gave for a sign-in this link started, the state used once. */
|
|
272
|
+
async verified(invite, signIn) {
|
|
273
|
+
var _a, _b;
|
|
274
|
+
const state = String((_a = signIn === null || signIn === void 0 ? void 0 : signIn.state) !== null && _a !== void 0 ? _a : '');
|
|
275
|
+
const code = String((_b = signIn === null || signIn === void 0 ? void 0 : signIn.code) !== null && _b !== void 0 ? _b : '');
|
|
276
|
+
const started = this.signIns.get(state);
|
|
277
|
+
this.signIns.delete(state);
|
|
278
|
+
if (!started || started.invite !== invite.id || Date.now() - started.at > SIGN_IN_MS || !code) {
|
|
279
|
+
throw new team_error_1.TeamError('The sign-in expired: sign in again.');
|
|
280
|
+
}
|
|
281
|
+
try {
|
|
282
|
+
const { id, name } = await this.team.host.team.accounts.verify(state, code);
|
|
283
|
+
return { id, ...(name ? { name: name.slice(0, 40) } : {}) };
|
|
284
|
+
}
|
|
285
|
+
catch (failure) {
|
|
286
|
+
throw new team_error_1.TeamError(`The sign-in did not work: ${failure instanceof Error ? failure.message : String(failure)}`);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
manages(invite) {
|
|
290
|
+
var _a;
|
|
291
|
+
var _b;
|
|
292
|
+
return policy_1.TeamPolicy.manages((_b = (_a = policy_1.TeamPolicy.roleOf(this.team.data, invite.role)) === null || _a === void 0 ? void 0 : _a.actions) !== null && _b !== void 0 ? _b : []);
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Whether who asks by a link signs in first: whether to sign in is theirs (who does not is anonymous, by the name
|
|
296
|
+
* they give), but from a browser a role that manages members wants an account.
|
|
297
|
+
*/
|
|
298
|
+
needsAccount(invite, web) {
|
|
299
|
+
return web && this.manages(invite);
|
|
300
|
+
}
|
|
146
301
|
/** What runs out with time: links (with their devices), requests unanswered, grants. */
|
|
147
302
|
expire(now = Date.now()) {
|
|
148
303
|
const dropped = team_expiry_1.TeamExpiry.expire(this.team.data, now);
|
|
@@ -164,12 +319,25 @@ class TeamInvites {
|
|
|
164
319
|
async letIn(join, roleId, by) {
|
|
165
320
|
var _a, _b;
|
|
166
321
|
const { team } = this;
|
|
322
|
+
const again = join.account && team.data.members.find(one => { var _a, _b; return ((_a = one.account) === null || _a === void 0 ? void 0 : _a.id) === ((_b = join.account) === null || _b === void 0 ? void 0 : _b.id); });
|
|
323
|
+
if (again) {
|
|
324
|
+
await this.letInAgain(join, again);
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
167
327
|
if (team.data.members.length >= team.data.limits.members) {
|
|
168
328
|
throw new team_error_1.TeamError(`This Ta has ${team.data.limits.members} members, as many as its owner lets: remove one, or raise the limit.`);
|
|
169
329
|
}
|
|
170
|
-
const member = {
|
|
330
|
+
const member = {
|
|
331
|
+
id: `m:${(0, team_core_1.newId)()}`,
|
|
332
|
+
name: join.name,
|
|
333
|
+
role: roleId,
|
|
334
|
+
joinedAt: Date.now(),
|
|
335
|
+
by,
|
|
336
|
+
...(join.web ? { web: true } : {}),
|
|
337
|
+
...(join.account ? { account: join.account } : {}),
|
|
338
|
+
};
|
|
171
339
|
const { link: _link, ...device } = await team.host.team.pair(member.id, join.name);
|
|
172
|
-
join.answer = await
|
|
340
|
+
join.answer = await relay_team_1.RelayTeamSeal.seal(join.box, join.id, JSON.stringify(device));
|
|
173
341
|
join.status = 'accepted';
|
|
174
342
|
join.member = member.id;
|
|
175
343
|
join.by = by;
|
|
@@ -188,6 +356,35 @@ class TeamInvites {
|
|
|
188
356
|
team.save();
|
|
189
357
|
this.waits.wake(`join:${join.id}`);
|
|
190
358
|
}
|
|
359
|
+
/**
|
|
360
|
+
* A member coming in again with their account, from another browser or by another link: a device more for the same
|
|
361
|
+
* member, their role and grants as they are. The oldest of their devices go past MAX_DEVICES.
|
|
362
|
+
*/
|
|
363
|
+
async letInAgain(join, member) {
|
|
364
|
+
var _a;
|
|
365
|
+
const { team } = this;
|
|
366
|
+
const { link: _link, ...device } = await team.host.team.pair(member.id, member.name);
|
|
367
|
+
const theirs = team.host.team
|
|
368
|
+
.devices()
|
|
369
|
+
.filter(one => one.member === member.id && one.id !== device.device)
|
|
370
|
+
.sort((a, b) => a.createdAt - b.createdAt);
|
|
371
|
+
for (const old of theirs.slice(0, Math.max(0, theirs.length + 1 - MAX_DEVICES))) {
|
|
372
|
+
team.host.team.unpair(old.id);
|
|
373
|
+
}
|
|
374
|
+
join.answer = await relay_team_1.RelayTeamSeal.seal(join.box, join.id, JSON.stringify(device));
|
|
375
|
+
join.status = 'accepted';
|
|
376
|
+
join.member = member.id;
|
|
377
|
+
join.by = member.by;
|
|
378
|
+
team.record(`${team_protocol_1.TA_INVITE_PREFIX}${join.invite}`, 'join', {
|
|
379
|
+
join: join.id,
|
|
380
|
+
member: member.id,
|
|
381
|
+
name: member.name,
|
|
382
|
+
again: true,
|
|
383
|
+
account: (_a = join.account) === null || _a === void 0 ? void 0 : _a.id,
|
|
384
|
+
});
|
|
385
|
+
team.save();
|
|
386
|
+
this.waits.wake(`join:${join.id}`);
|
|
387
|
+
}
|
|
191
388
|
drop(invite) {
|
|
192
389
|
const { team } = this;
|
|
193
390
|
team.host.team.unpair(invite.device);
|
|
@@ -66,6 +66,8 @@ class TeamPeople {
|
|
|
66
66
|
ownerName: team.ownerName,
|
|
67
67
|
limits: team.data.limits,
|
|
68
68
|
alerts: team.may(principal, 'audit.view') ? [...team.data.alerts].reverse().slice(0, 50) : [],
|
|
69
|
+
// Their names, for the accounts the page shows; what to sign in with is no secret.
|
|
70
|
+
providers: team.host.team.accounts.providers(),
|
|
69
71
|
};
|
|
70
72
|
}
|
|
71
73
|
/** Only the author of a conversation (or who manages roles) makes it seen by them alone, or by everyone again. */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-team",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: people let into your Ta by a link, each with a role (admin, collaborator, viewer, guest, or one of your own), what they may do checked by the Ta service for every call and every tool, asking for more and the answers, and a record",
|
|
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",
|
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
"host": {
|
|
57
57
|
"ask": "invite",
|
|
58
58
|
"wait": "invite",
|
|
59
|
+
"ways": "invite",
|
|
60
|
+
"signIn": "invite",
|
|
61
|
+
"signedIn": "invite",
|
|
62
|
+
"handedOff": "invite",
|
|
59
63
|
"*": "anyone"
|
|
60
64
|
},
|
|
61
65
|
"tools": {
|