@celljs/ta 4.13.0 → 4.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +997 -811
- package/dist/gateway.mjs +315 -129
- package/dist/pi/CHANGELOG.md +11 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/package.json +3 -3
- package/dist/pi/packages/ta-bots/extension/index.mjs +21 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +171 -114
- package/dist/pi/packages/ta-bots/package.json +3 -3
- package/dist/pi/packages/ta-changes/extension/index.mjs +21 -0
- package/dist/pi/packages/ta-changes/package.json +3 -3
- package/dist/pi/packages/ta-channels/extension/index.mjs +23 -2
- package/dist/pi/packages/ta-channels/host/index.mjs +170 -113
- package/dist/pi/packages/ta-channels/lib/extension.js +2 -2
- 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/extension/index.mjs +22 -1
- package/dist/pi/packages/ta-cron/lib/extension.js +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 -113
- package/dist/pi/packages/ta-games/package.json +3 -3
- package/dist/pi/packages/ta-glance/extension/index.mjs +21 -0
- 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/extension/index.mjs +24 -3
- package/dist/pi/packages/ta-initiative/host/index.mjs +3 -0
- package/dist/pi/packages/ta-initiative/lib/extension.js +3 -4
- 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 +104 -47
- package/dist/pi/packages/ta-moments/host/index.mjs +103 -46
- package/dist/pi/packages/ta-moments/lib/editor.js +1 -1
- package/dist/pi/packages/ta-moments/lib/extension.js +2 -2
- 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 -128
- package/dist/pi/packages/ta-nearby/extension/index.mjs +22 -1
- package/dist/pi/packages/ta-nearby/host/index.mjs +189 -4
- package/dist/pi/packages/ta-nearby/lib/extension.js +1 -1
- 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/extension/index.mjs +21 -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/extension/index.mjs +22 -1
- package/dist/pi/packages/ta-recall/host/index.mjs +30 -12
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +3 -3
- package/dist/pi/packages/ta-recall/lib/extension.js +1 -1
- 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-recall/web/index.js +21 -0
- package/dist/pi/packages/ta-rooms/extension/index.mjs +23 -2
- package/dist/pi/packages/ta-rooms/host/index.mjs +21 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +2 -2
- 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/extension/index.mjs +21 -0
- 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/extension/index.mjs +21 -0
- package/dist/pi/packages/ta-team/host/index.mjs +590 -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 -139
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-DJMZKA5d.js → abnfDiagram-S7VZAUFO-DMceNIR5.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-DwZ8A2Bp.js → architecture-WOLXFQ4H-5AdYeEv8.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-DPezb7-w.js → architectureDiagram-YGSQEFNW-CqkJHg0A.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-SrFYBlSp.js → blockDiagram-APKKGZFW-BtuHdIjQ.js} +1 -1
- package/dist/public/assets/{browser-D2CY3Lfb.js → browser-D2BcOPKG.js} +1 -1
- package/dist/public/assets/{browser-CljOqDFz.js → browser-Ds5TwWWr.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-COCMkiJ6.js → c4Diagram-KJ2TOQU5-eebbjTgZ.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CWRxZCiu.js → chunk-6MUBBAK2-BjMKSfTf.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-Dgn3RHlx.js → chunk-AXFCVDMN-BElluw_7.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-BDnAChfb.js → chunk-BG4553SI-CUDwpWNL.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-DSgprMfc.js → chunk-DQASFODM-B-92o8Uj.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-ChtjyKjP.js → chunk-HFQBQIA3-pveEMcXK.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-B2o0ufJC.js → chunk-KQLB2F66-m7DKNjYW.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-C4qJvDaX.js → chunk-KS47KZWR-CnSSETdj.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-2jTGUstS.js → chunk-LEVMRMFU-Ds7OnJrC.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-CKAWW7fj.js → chunk-M57EVK23-PJSYCuUh.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-B5TUKZAt.js → chunk-OY52VR5R-C3ygRwSC.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-CyQFTqwG.js → chunk-QB3YPZ4I-DcFtmZh7.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-C6git_yh.js → chunk-R3KSYZAL-B4BOidE6.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-AwEqcNnS.js → chunk-STOXU5M4-DcXfwN7k.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-GKcRDmvw.js → chunk-TU62E6Q5-B-rpQQxX.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-CMG5EfZ9.js → chunk-X4PVCEUW-BBtlFSw1.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-BHd-dKtZ.js → chunk-XXDRQBXY-Do8BIocv.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-HaRsBCG9.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-BPBTCfj3.js → cose-bilkent-JH36ORCC-B7Qv6Hv_.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dfu5k3iG.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-dAmWDtva.js → cynefinDiagram-L36ESFBY-BX-R5Z6L.js} +1 -1
- package/dist/public/assets/{d3-selection-BhemR5ul.js → d3-selection-D3xgEEla.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-D93g6hNI.js → dagre-SPEB5RXH-MfJ9yO0v.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-FJBKgG3X.js → diagram-3B7GL73J-DxFRc2vC.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-BP22T976.js → diagram-DNEMPZML-BcBwOLbM.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-DcrCJXRt.js → diagram-L3MUGCDN--Rw-isPI.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DUgd3PHQ.js → diagram-LA4NIPWU-DXkY85UN.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-ejTInqzQ.js → diagram-MHCOC4E2-CbNmfAid.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-BLjkgho1.js → diagram-XPFHEONP-D1nGQjzf.js} +1 -1
- package/dist/public/assets/{dist-C9xqTt0E.js → dist-B1JMTrET.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-CB1QQ4_T.js → ebnfDiagram-UZSYDL2S-DGXbVfke.js} +1 -1
- package/dist/public/assets/{editor.api-lz6I1oVk.js → editor.api-e3yQoo1r.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CLBx1s2b.js → elk-XV6XMXQE-pA-iT6fg.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-Dsj6RYi5.js → erDiagram-EYBAPDEH-BpgBun7y.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-smOORsSG.js → eventmodeling-K75KTNOO-CVfyCcul.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-BHlXeeVG.js +1 -0
- package/dist/public/assets/{freemarker2-DrLPw7Mc.js → freemarker2-dYGec-fT.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-BV9WK0rK.js → ganttDiagram-23REXITY-DjLTTWwA.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-CFVSDv3q.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CsSpSQ0T.js → gitGraphDiagram-STJD7YCW-D9m7IVyJ.js} +1 -1
- package/dist/public/assets/{handlebars-CLx5-csF.js → handlebars-Bxerz7ci.js} +1 -1
- package/dist/public/assets/{html-C9LmGm46.js → html-DlVnGsdp.js} +1 -1
- package/dist/public/assets/{index-CLWW0mVu.js → index-CZmGe9gc.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-C_Db4yjo.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-wm5AnXDz.js → infoDiagram-KBXO4MBG-DoYdhkAy.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-BLUBDeS3.js → ishikawaDiagram-M35NCXHK-Bc0GAInW.js} +1 -1
- package/dist/public/assets/{javascript-C4S1eQb7.js → javascript-DZrowo_I.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-DXc7-I_g.js → journeyDiagram-OPLOXDXO-BM7Dwstu.js} +1 -1
- package/dist/public/assets/{jsonMode-lLJKR2M6.js → jsonMode-Bs30wPr5.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-D5Ra4L_5.js → kanban-definition-BZKZHSQY-CO-Crrdu.js} +1 -1
- package/dist/public/assets/{liquid-DRlm-XZd.js → liquid-dLz9d3ax.js} +1 -1
- package/dist/public/assets/{mdx-CzIqeqPy.js → mdx-DO0x92Kn.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-BIPB1BgS.js → mermaid-parser.core-BXwArNvw.js} +3 -3
- package/dist/public/assets/{mermaid.core-DxBlQ6oF.js → mermaid.core-C6mppfDC.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-BdupvuYr.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-ChpJIYsY.js → monaco-J_Pr5zjk.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-Bw7hmDUU.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-C_GF7Fng.js → pegDiagram-FD4XPPHP-DPDrbtS2.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-cb_eq1B6.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-WlpNP-IM.js → pieDiagram-J4AKIIQI-DXuaepGJ.js} +1 -1
- package/dist/public/assets/{python-BJgFCfc8.js → python-nnmIOv4s.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-CkCL5rJY.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-DZZKUytl.js → railroad-abnf-LNEFI6M7-CkCl68xY.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CS7KsJdb.js → railroad-ebnf-DWYD2UWJ-DO3GiRv6.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-CiukTZVd.js → railroad-peg-JR7BVNR7-DZBsKy4P.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-BS0R_H3-.js → railroadDiagram-MRQ6NCDL-BeLq7Mqp.js} +1 -1
- package/dist/public/assets/{razor-jcBIjr45.js → razor-l2rRITgB.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-C0_T9jgl.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-DF15sUfS.js → sankeyDiagram-WGJFYUXA-tyo-p7oc.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-7AkTLleX.js → sequenceDiagram-5NDRBG5M-BSGPbeJX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js → stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-CR-ieLeo.js → swimlanes-UMQ2AFYF-BJfgQyQo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BWvcVkFg.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-DeM0Uekm.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-B7zp7QPf.js → typescript-LasX-M7S.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-D6rDIgdU.js → usecaseDiagram-AFA6YXN4-BzlSB4R4.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-CncVDcMl.js → vennDiagram-NNMJR3RB-4xaWLrMk.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-BXBG-txR.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DKPAMfTE.js → wardleyDiagram-S7YFUSEH-C-iK1p-O.js} +1 -1
- package/dist/public/assets/{xml-BJIgLD52.js → xml-CGhYQUqn.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DmmXGebm.js → xychartDiagram-GGNKY7IX-CFsnisdM.js} +1 -1
- package/dist/public/assets/{yaml-Dxb2gmP5.js → yaml-BcOaPfuH.js} +1 -1
- package/dist/public/index.html +2 -2
- package/dist/serve/index.mjs +2333 -1253
- 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-DyqqRII3.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +0 -1
- package/dist/public/assets/module-BPxWyxwR.js +0 -2362
- package/dist/public/assets/module-Blc8dqbf.js +0 -1
- package/dist/public/assets/module-C9WFrzAc.js +0 -1
- package/dist/public/assets/module-C_MSCGQC.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/packet-JDAUHWVQ-BjrqMgis.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-4nLUXAkG.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-BD2LqZSr.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-COK2pFDF.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-BL13z_2J.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-Lx2qjQpO.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +0 -1
|
@@ -288,10 +288,11 @@ function restOfDay(now = new Date) {
|
|
|
288
288
|
end.setHours(23, 59, 59, 999);
|
|
289
289
|
return Math.max(1, Math.round((end.getTime() - now.getTime()) / 60000));
|
|
290
290
|
}
|
|
291
|
-
function Face({ seed, face, size }) {
|
|
291
|
+
function Face({ seed, face, look, size }) {
|
|
292
292
|
return /* @__PURE__ */ React.createElement(pi.ui.Face, {
|
|
293
293
|
seed,
|
|
294
294
|
face,
|
|
295
|
+
look,
|
|
295
296
|
size
|
|
296
297
|
});
|
|
297
298
|
}
|
|
@@ -324,6 +325,7 @@ function Looking({ peers }) {
|
|
|
324
325
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
325
326
|
seed: peer.friend?.id ?? peer.e,
|
|
326
327
|
face: peer.face,
|
|
328
|
+
look: peer.look,
|
|
327
329
|
size: 30
|
|
328
330
|
}))));
|
|
329
331
|
}
|
|
@@ -365,6 +367,7 @@ function PeerTile({ peer, chosen, toggle }) {
|
|
|
365
367
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
366
368
|
seed: peer.friend?.id ?? peer.e,
|
|
367
369
|
face: peer.face,
|
|
370
|
+
look: peer.look,
|
|
368
371
|
size: 52
|
|
369
372
|
}), /* @__PURE__ */ React.createElement("span", {
|
|
370
373
|
className: "tnb-check"
|
|
@@ -382,6 +385,7 @@ function InviteRow({ invite }) {
|
|
|
382
385
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
383
386
|
seed: invite.friend?.id ?? invite.e,
|
|
384
387
|
face: invite.face,
|
|
388
|
+
look: invite.look,
|
|
385
389
|
size: 40
|
|
386
390
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
387
391
|
className: "tnb-invite-text"
|
|
@@ -588,6 +592,7 @@ function ShowOverlay({ shown, close }) {
|
|
|
588
592
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
589
593
|
seed: current.friend?.id ?? current.k,
|
|
590
594
|
face: current.face,
|
|
595
|
+
look: current.look,
|
|
591
596
|
size: 48
|
|
592
597
|
}), /* @__PURE__ */ React.createElement("strong", null, t("wantsToShow", { name: who(current), title: current.title }))), /* @__PURE__ */ React.createElement("p", {
|
|
593
598
|
className: "tnb-quiet"
|
|
@@ -609,6 +614,7 @@ function ShowOverlay({ shown, close }) {
|
|
|
609
614
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
610
615
|
seed: current.friend?.id ?? current.k,
|
|
611
616
|
face: current.face,
|
|
617
|
+
look: current.look,
|
|
612
618
|
size: 26
|
|
613
619
|
}), /* @__PURE__ */ React.createElement("span", {
|
|
614
620
|
className: "tnb-show-title tnb-ellipsis"
|
|
@@ -690,6 +696,7 @@ function GreetRow({ greet }) {
|
|
|
690
696
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
691
697
|
seed: greet.friend?.id ?? greet.e,
|
|
692
698
|
face: greet.face,
|
|
699
|
+
look: greet.look,
|
|
693
700
|
size: 40
|
|
694
701
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
695
702
|
className: "tnb-invite-text"
|
|
@@ -847,6 +854,7 @@ function openInvite(invite) {
|
|
|
847
854
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
848
855
|
seed: invite.friend?.id ?? invite.e,
|
|
849
856
|
face: invite.face,
|
|
857
|
+
look: invite.look,
|
|
850
858
|
size: 48
|
|
851
859
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
852
860
|
className: "tnb-invite-text"
|
|
@@ -954,7 +962,7 @@ var STYLE = `
|
|
|
954
962
|
/* Off: what it does, and for how long */
|
|
955
963
|
.tnb-off, .tnb-on { display: flex; flex-direction: column; align-items: center; text-align: center; }
|
|
956
964
|
.tnb-off h2 { margin: 6px 0 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }
|
|
957
|
-
.tnb-off p { max-width: 380px; margin: 0; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; }
|
|
965
|
+
.tnb-off p { max-width: 380px; margin: 0; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
|
|
958
966
|
.tnb-durations { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; margin-top: 20px; }
|
|
959
967
|
.tnb-durations .ta-button { width: 100%; justify-content: center; min-height: 40px; }
|
|
960
968
|
/* Rings that go out from the user */
|
|
@@ -24,6 +24,7 @@ The data of the package (`@celljs/ta-notify`): `notices` (the latest 30, the new
|
|
|
24
24
|
What its host (`pi.host`) answers, for web extensions through `callPackageHost('@celljs/ta-notify', …)`:
|
|
25
25
|
|
|
26
26
|
- `mute(target, muted, title?)`: mutes a conversation or not; the list after.
|
|
27
|
+
- `notices()`: the notices kept, the newest last. Another package (the brief of ta-recall) reads them so, not by the data of this package.
|
|
27
28
|
- `notify({ from, id, level, title, text, view? })`: another package tells the user of what is no conversation's (a double in a room asks for a permission), as the setting Tell me allows; a notice of the system while the page is not in front, a tap opening `view`.
|
|
28
29
|
|
|
29
30
|
Another extension that tells the user news of its own uses the page's `ui.notifySession` (see @celljs/ta-web), not the data of this package.
|
|
@@ -24,6 +24,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
|
|
|
24
24
|
包宿主(`pi.host`)的方法,Web 扩展经 `callPackageHost('@celljs/ta-notify', …)` 调用:
|
|
25
25
|
|
|
26
26
|
- `mute(target, muted, title?)`:设成或取消免打扰,返回新的列表。
|
|
27
|
+
- `notices()`:保留的提醒,最新的在后。别的包(ta-recall 的简报)这样读,不读本包的数据。
|
|
27
28
|
- `notify({ from, id, level, title, text, view? })`:别的包告诉用户不属于某个对话的事(如房间里分身请你授权),按"提醒我"的设置过滤;页面不在前台时发系统通知,点开打开 `view`。
|
|
28
29
|
|
|
29
30
|
别的扩展要告诉用户自己的消息,用页面的 `ui.notifySession`(见 @celljs/ta-web),不要写这个包的数据。
|
|
@@ -27,6 +27,27 @@ var TaHostUtil;
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
TaHostUtil2.reach = reach;
|
|
30
|
+
function marked(systemPrompt, mark) {
|
|
31
|
+
return role(systemPrompt).includes(mark);
|
|
32
|
+
}
|
|
33
|
+
TaHostUtil2.marked = marked;
|
|
34
|
+
function role(systemPrompt) {
|
|
35
|
+
if (!systemPrompt) {
|
|
36
|
+
return "";
|
|
37
|
+
}
|
|
38
|
+
const open = `<addendum>
|
|
39
|
+
`;
|
|
40
|
+
const start = systemPrompt.indexOf(open);
|
|
41
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
42
|
+
`);
|
|
43
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
44
|
+
return "";
|
|
45
|
+
}
|
|
46
|
+
const end = systemPrompt.indexOf(`
|
|
47
|
+
</addendum>`, start);
|
|
48
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
49
|
+
}
|
|
50
|
+
TaHostUtil2.role = role;
|
|
30
51
|
})(TaHostUtil || (TaHostUtil = {}));
|
|
31
52
|
var TA_ASK_ENTRY = "ta-ask";
|
|
32
53
|
var TaAskUtil;
|
|
@@ -90,5 +90,7 @@ export interface NotifyService {
|
|
|
90
90
|
notify(input: PackageNoticeInput): Promise<Notice | undefined>;
|
|
91
91
|
/** Mutes a conversation or not; the list after. */
|
|
92
92
|
mute(target: string, muted: boolean, title?: string): Promise<Muted[]>;
|
|
93
|
+
/** The notices kept, the newest last: how another package reads them (ta-recall's brief), not by this package's data. */
|
|
94
|
+
notices(): Promise<Notice[]>;
|
|
93
95
|
}
|
|
94
96
|
//# sourceMappingURL=notify-protocol.d.ts.map
|
|
@@ -15,6 +15,7 @@ export declare class NotifyHost implements NotifyService, TaPackageService {
|
|
|
15
15
|
post(input: NoticeInput): Promise<Notice | undefined>;
|
|
16
16
|
notify(input: PackageNoticeInput): Promise<Notice | undefined>;
|
|
17
17
|
mute(target: string, muted: boolean, title?: string): Promise<Muted[]>;
|
|
18
|
+
notices(): Promise<Notice[]>;
|
|
18
19
|
/** Nothing runs on its own: what is written is written. */
|
|
19
20
|
dispose(): void;
|
|
20
21
|
protected read(key: string): Promise<unknown>;
|
|
@@ -85,6 +85,9 @@ class NotifyHost {
|
|
|
85
85
|
return next;
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
+
async notices() {
|
|
89
|
+
return notify_util_1.NotifyUtil.notices(await this.read(notify_protocol_1.Keys.NOTICES));
|
|
90
|
+
}
|
|
88
91
|
/** Nothing runs on its own: what is written is written. */
|
|
89
92
|
dispose() { }
|
|
90
93
|
read(key) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-notify",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: tells the user when a conversation needs them, failed or answered, while they look elsewhere, and lets Ta ask them to decide with answers to pick",
|
|
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",
|
|
@@ -17,7 +17,7 @@ Settings → Recall: the daily brief, its time, one written now, and the offers
|
|
|
17
17
|
|
|
18
18
|
Sessions a package opened for a role of its own (an agent of a channel, a run of a schedule) are offered nothing to keep.
|
|
19
19
|
|
|
20
|
-
Offering to keep something is a kind of Initiative (`@celljs/ta-initiative`), `recall.keep`: declined twice in a row it goes down to In the brief and is no longer offered in conversations; what you keep, have made or decline is told to it. The brief tells too what waits in Suggestions and what Ta did on its own.
|
|
20
|
+
Offering to keep something is a kind of Initiative (`@celljs/ta-initiative`), `recall.keep`: declined twice in a row it goes down to In the brief and is no longer offered in conversations; what you keep, have made or decline is told to it. The brief tells too what waits in Suggestions and what Ta did on its own. The notices, the runs of scheduled tasks and the suggestions are read by the methods of those packages' hosts (`notices` of ta-notify, `list` / `runs` of ta-cron, `proposals` of ta-initiative), never by their data; a package that is off leaves its part out.
|
|
21
21
|
|
|
22
22
|
## Data and calls
|
|
23
23
|
|
|
@@ -17,7 +17,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
|
|
|
17
17
|
|
|
18
18
|
由别的包打开、承担固定角色的会话(频道里的智能体、定时任务的运行)不建议存下来。
|
|
19
19
|
|
|
20
|
-
建议存下来是"主动"(`@celljs/ta-initiative`)的一类事 `recall.keep`:你连续拒绝两次后它降到"只进简报",就不再在对话里建议;存下、做成扩展或拒绝都会回报给它。简报也写上"Ta 的建议"里等你决定的事和 Ta
|
|
20
|
+
建议存下来是"主动"(`@celljs/ta-initiative`)的一类事 `recall.keep`:你连续拒绝两次后它降到"只进简报",就不再在对话里建议;存下、做成扩展或拒绝都会回报给它。简报也写上"Ta 的建议"里等你决定的事和 Ta 自己做了的事。提醒、定时任务的运行和建议都经各包宿主的方法读(`ta-notify` 的 `notices`、`ta-cron` 的 `list` / `runs`、`ta-initiative` 的 `proposals`),不读它们的包数据;包关着时简报就没有那一段。
|
|
21
21
|
|
|
22
22
|
## 数据与调用
|
|
23
23
|
|
|
@@ -30,6 +30,27 @@ var TaHostUtil;
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
TaHostUtil2.reach = reach;
|
|
33
|
+
function marked(systemPrompt, mark) {
|
|
34
|
+
return role(systemPrompt).includes(mark);
|
|
35
|
+
}
|
|
36
|
+
TaHostUtil2.marked = marked;
|
|
37
|
+
function role(systemPrompt) {
|
|
38
|
+
if (!systemPrompt) {
|
|
39
|
+
return "";
|
|
40
|
+
}
|
|
41
|
+
const open = `<addendum>
|
|
42
|
+
`;
|
|
43
|
+
const start = systemPrompt.indexOf(open);
|
|
44
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
45
|
+
`);
|
|
46
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
47
|
+
return "";
|
|
48
|
+
}
|
|
49
|
+
const end = systemPrompt.indexOf(`
|
|
50
|
+
</addendum>`, start);
|
|
51
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
52
|
+
}
|
|
53
|
+
TaHostUtil2.role = role;
|
|
33
54
|
})(TaHostUtil || (TaHostUtil = {}));
|
|
34
55
|
var TA_WITH_OTHERS_MARK = "[ta:speaks-with-others]";
|
|
35
56
|
var TA_KEEP_MARK = "[ta:keep]";
|
|
@@ -677,7 +698,7 @@ function activate(pi) {
|
|
|
677
698
|
asked = undefined;
|
|
678
699
|
draft = undefined;
|
|
679
700
|
briefing = false;
|
|
680
|
-
if (event.messageType === "custom" || typeof event.prompt !== "string" || ctx.getSystemPrompt?.()
|
|
701
|
+
if (event.messageType === "custom" || typeof event.prompt !== "string" || TaHostUtil.marked(ctx.getSystemPrompt?.(), TA_WITH_OTHERS_MARK)) {
|
|
681
702
|
return;
|
|
682
703
|
}
|
|
683
704
|
if (event.prompt.includes(BRIEF_MARK)) {
|
|
@@ -32,6 +32,27 @@ var TaHostUtil;
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
TaHostUtil2.reach = reach;
|
|
35
|
+
function marked(systemPrompt, mark) {
|
|
36
|
+
return role(systemPrompt).includes(mark);
|
|
37
|
+
}
|
|
38
|
+
TaHostUtil2.marked = marked;
|
|
39
|
+
function role(systemPrompt) {
|
|
40
|
+
if (!systemPrompt) {
|
|
41
|
+
return "";
|
|
42
|
+
}
|
|
43
|
+
const open = `<addendum>
|
|
44
|
+
`;
|
|
45
|
+
const start = systemPrompt.indexOf(open);
|
|
46
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
47
|
+
`);
|
|
48
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
49
|
+
return "";
|
|
50
|
+
}
|
|
51
|
+
const end = systemPrompt.indexOf(`
|
|
52
|
+
</addendum>`, start);
|
|
53
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
54
|
+
}
|
|
55
|
+
TaHostUtil2.role = role;
|
|
35
56
|
})(TaHostUtil || (TaHostUtil = {}));
|
|
36
57
|
var TA_BRIEF_SOURCE = "brief";
|
|
37
58
|
var TA_ASK_ENTRY = "ta-ask";
|
|
@@ -1075,23 +1096,17 @@ class RecallHost {
|
|
|
1075
1096
|
return sources.filter((source) => !!source);
|
|
1076
1097
|
}
|
|
1077
1098
|
async notices() {
|
|
1078
|
-
const value = await this.
|
|
1079
|
-
return;
|
|
1080
|
-
});
|
|
1099
|
+
const value = await this.fromPackage(NOTIFY, "notices");
|
|
1081
1100
|
return Array.isArray(value) ? value.filter((notice) => !!notice && typeof notice.at === "number" && typeof notice.text === "string") : [];
|
|
1082
1101
|
}
|
|
1083
1102
|
async runs(since) {
|
|
1084
|
-
const tasks = await this.
|
|
1085
|
-
return;
|
|
1086
|
-
});
|
|
1103
|
+
const tasks = await this.fromPackage(CRON2, "list");
|
|
1087
1104
|
if (!Array.isArray(tasks)) {
|
|
1088
1105
|
return [];
|
|
1089
1106
|
}
|
|
1090
1107
|
const ran = tasks.filter((task) => task && typeof task.id === "string" && Date.parse(task.lastRunAt ?? "") >= since);
|
|
1091
1108
|
return Promise.all(ran.map(async (task) => {
|
|
1092
|
-
const runs = await this.
|
|
1093
|
-
return;
|
|
1094
|
-
});
|
|
1109
|
+
const runs = await this.fromPackage(CRON2, "runs", task.id, 1);
|
|
1095
1110
|
const run = Array.isArray(runs) ? runs[0] : undefined;
|
|
1096
1111
|
return {
|
|
1097
1112
|
name: String(task.name ?? task.id),
|
|
@@ -1102,9 +1117,7 @@ class RecallHost {
|
|
|
1102
1117
|
}));
|
|
1103
1118
|
}
|
|
1104
1119
|
async suggestions() {
|
|
1105
|
-
const value = await this.
|
|
1106
|
-
return;
|
|
1107
|
-
});
|
|
1120
|
+
const value = await this.fromPackage(INITIATIVE, "proposals");
|
|
1108
1121
|
return Array.isArray(value) ? value.filter((one) => !!one && typeof one.title === "string" && typeof one.state === "string" && typeof one.at === "number") : [];
|
|
1109
1122
|
}
|
|
1110
1123
|
async initiative(method, ...params) {
|
|
@@ -1132,6 +1145,11 @@ class RecallHost {
|
|
|
1132
1145
|
return;
|
|
1133
1146
|
});
|
|
1134
1147
|
}
|
|
1148
|
+
fromPackage(name, method, ...params) {
|
|
1149
|
+
return this.host.callPackageHost(name, method, params).catch(() => {
|
|
1150
|
+
return;
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1135
1153
|
serial(work) {
|
|
1136
1154
|
const next = this.queue.then(work, work);
|
|
1137
1155
|
this.queue = next.catch(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BriefSettings, type BriefSummary, type Conversation } from './recall-protocol';
|
|
2
|
-
/** A notice of ta-notify, as its
|
|
2
|
+
/** A notice of ta-notify, as its host gives it (`notices`): only what a brief reads. */
|
|
3
3
|
export interface BriefNotice {
|
|
4
4
|
at: number;
|
|
5
5
|
level: string;
|
|
@@ -7,14 +7,14 @@ export interface BriefNotice {
|
|
|
7
7
|
title?: string;
|
|
8
8
|
sessionFile?: string;
|
|
9
9
|
}
|
|
10
|
-
/** A task of ta-cron and the summary of its last run, as
|
|
10
|
+
/** A task of ta-cron and the summary of its last run, as its host gives them (`list`, `runs`): only what a brief reads. */
|
|
11
11
|
export interface BriefRun {
|
|
12
12
|
name: string;
|
|
13
13
|
at: number;
|
|
14
14
|
status?: string;
|
|
15
15
|
summary?: string;
|
|
16
16
|
}
|
|
17
|
-
/** A proposal of ta-initiative, as its
|
|
17
|
+
/** A proposal of ta-initiative, as its host gives it (`proposals`): only what a brief reads. */
|
|
18
18
|
export interface BriefSuggestion {
|
|
19
19
|
title: string;
|
|
20
20
|
why?: string;
|
|
@@ -40,7 +40,7 @@ function activate(pi) {
|
|
|
40
40
|
draft = undefined;
|
|
41
41
|
briefing = false;
|
|
42
42
|
// What the user asked elsewhere is theirs: not for a session that speaks with others.
|
|
43
|
-
if (event.messageType === 'custom' || typeof event.prompt !== 'string' || ((_a = ctx.getSystemPrompt) === null || _a === void 0 ? void 0 : _a.call(ctx)
|
|
43
|
+
if (event.messageType === 'custom' || typeof event.prompt !== 'string' || ta_extension_host_1.TaHostUtil.marked((_a = ctx.getSystemPrompt) === null || _a === void 0 ? void 0 : _a.call(ctx), ta_extension_host_1.TA_WITH_OTHERS_MARK)) {
|
|
44
44
|
return undefined;
|
|
45
45
|
}
|
|
46
46
|
if (event.prompt.includes(BRIEF_MARK)) {
|
|
@@ -37,16 +37,18 @@ export declare class RecallHost implements RecallService, TaPackageService {
|
|
|
37
37
|
protected briefSession(sessions: TaSessionInfo[], file: string | undefined): Promise<TaSessionInfo>;
|
|
38
38
|
/** What the packages that are on have for the brief (TA_BRIEF_SOURCE). */
|
|
39
39
|
protected sources(): Promise<BriefSource[]>;
|
|
40
|
-
/** The notices of ta-notify, when it is
|
|
40
|
+
/** The notices of ta-notify (its host's `notices`), when it is on. */
|
|
41
41
|
protected notices(): Promise<BriefNotice[]>;
|
|
42
|
-
/** The tasks of ta-cron that ran since, with the summary of their last run, when it is
|
|
42
|
+
/** The tasks of ta-cron that ran since, with the summary of their last run (its host's `list` and `runs`), when it is on. */
|
|
43
43
|
protected runs(since: number): Promise<BriefRun[]>;
|
|
44
|
-
/** The proposals of ta-initiative, when it is
|
|
44
|
+
/** The proposals of ta-initiative (its host's `proposals`), when it is on. */
|
|
45
45
|
protected suggestions(): Promise<BriefSuggestion[]>;
|
|
46
46
|
/** A call of the host of ta-initiative, which defines KEEP_KIND first; undefined when it is not there (turned off). */
|
|
47
47
|
protected initiative(method: string, ...params: unknown[]): Promise<unknown>;
|
|
48
48
|
protected decide(key: string, decision: KeepDecision): Promise<void>;
|
|
49
49
|
protected read(key: string): Promise<unknown>;
|
|
50
|
+
/** What the host of another package answers, by a method its README names; undefined when it is off or fails. */
|
|
51
|
+
protected fromPackage(name: string, method: string, ...params: unknown[]): Promise<unknown>;
|
|
50
52
|
protected serial<T>(work: () => Promise<T>): Promise<T>;
|
|
51
53
|
}
|
|
52
54
|
//# sourceMappingURL=recall-service.d.ts.map
|
|
@@ -260,23 +260,23 @@ class RecallHost {
|
|
|
260
260
|
.map(async (info) => brief_util_1.BriefUtil.source(info.name, await this.host.getExtensionData(info.name, ta_extension_host_1.TA_BRIEF_SOURCE).catch(() => undefined))));
|
|
261
261
|
return sources.filter((source) => !!source);
|
|
262
262
|
}
|
|
263
|
-
/** The notices of ta-notify, when it is
|
|
263
|
+
/** The notices of ta-notify (its host's `notices`), when it is on. */
|
|
264
264
|
async notices() {
|
|
265
|
-
const value = await this.
|
|
265
|
+
const value = await this.fromPackage(NOTIFY, 'notices');
|
|
266
266
|
return Array.isArray(value)
|
|
267
267
|
? value.filter((notice) => !!notice && typeof notice.at === 'number' && typeof notice.text === 'string')
|
|
268
268
|
: [];
|
|
269
269
|
}
|
|
270
|
-
/** The tasks of ta-cron that ran since, with the summary of their last run, when it is
|
|
270
|
+
/** The tasks of ta-cron that ran since, with the summary of their last run (its host's `list` and `runs`), when it is on. */
|
|
271
271
|
async runs(since) {
|
|
272
|
-
const tasks = await this.
|
|
272
|
+
const tasks = await this.fromPackage(CRON, 'list');
|
|
273
273
|
if (!Array.isArray(tasks)) {
|
|
274
274
|
return [];
|
|
275
275
|
}
|
|
276
276
|
const ran = tasks.filter(task => { var _a; return task && typeof task.id === 'string' && Date.parse((_a = task.lastRunAt) !== null && _a !== void 0 ? _a : '') >= since; });
|
|
277
277
|
return Promise.all(ran.map(async (task) => {
|
|
278
278
|
var _a;
|
|
279
|
-
const runs = await this.
|
|
279
|
+
const runs = await this.fromPackage(CRON, 'runs', task.id, 1);
|
|
280
280
|
const run = Array.isArray(runs) ? runs[0] : undefined;
|
|
281
281
|
return {
|
|
282
282
|
name: String((_a = task.name) !== null && _a !== void 0 ? _a : task.id),
|
|
@@ -286,9 +286,9 @@ class RecallHost {
|
|
|
286
286
|
};
|
|
287
287
|
}));
|
|
288
288
|
}
|
|
289
|
-
/** The proposals of ta-initiative, when it is
|
|
289
|
+
/** The proposals of ta-initiative (its host's `proposals`), when it is on. */
|
|
290
290
|
async suggestions() {
|
|
291
|
-
const value = await this.
|
|
291
|
+
const value = await this.fromPackage(INITIATIVE, 'proposals');
|
|
292
292
|
return Array.isArray(value)
|
|
293
293
|
? value.filter((one) => !!one && typeof one.title === 'string' && typeof one.state === 'string' && typeof one.at === 'number')
|
|
294
294
|
: [];
|
|
@@ -318,6 +318,10 @@ class RecallHost {
|
|
|
318
318
|
read(key) {
|
|
319
319
|
return this.host.getExtensionData(recall_protocol_1.NAME, key).catch(() => undefined);
|
|
320
320
|
}
|
|
321
|
+
/** What the host of another package answers, by a method its README names; undefined when it is off or fails. */
|
|
322
|
+
fromPackage(name, method, ...params) {
|
|
323
|
+
return this.host.callPackageHost(name, method, params).catch(() => undefined);
|
|
324
|
+
}
|
|
321
325
|
serial(work) {
|
|
322
326
|
const next = this.queue.then(work, work);
|
|
323
327
|
this.queue = next.catch(() => undefined);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-recall",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: asks earlier conversations what was done, offers to keep a request asked again as an extension (steps, a card, a page), and writes a daily brief of what got done and what waits for 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",
|
|
@@ -702,6 +702,27 @@ var TaHostUtil;
|
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
704
|
TaHostUtil2.reach = reach;
|
|
705
|
+
function marked(systemPrompt, mark) {
|
|
706
|
+
return role(systemPrompt).includes(mark);
|
|
707
|
+
}
|
|
708
|
+
TaHostUtil2.marked = marked;
|
|
709
|
+
function role(systemPrompt) {
|
|
710
|
+
if (!systemPrompt) {
|
|
711
|
+
return "";
|
|
712
|
+
}
|
|
713
|
+
const open = `<addendum>
|
|
714
|
+
`;
|
|
715
|
+
const start = systemPrompt.indexOf(open);
|
|
716
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
717
|
+
`);
|
|
718
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
719
|
+
return "";
|
|
720
|
+
}
|
|
721
|
+
const end = systemPrompt.indexOf(`
|
|
722
|
+
</addendum>`, start);
|
|
723
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
724
|
+
}
|
|
725
|
+
TaHostUtil2.role = role;
|
|
705
726
|
})(TaHostUtil || (TaHostUtil = {}));
|
|
706
727
|
var TA_KEEP_MARK = "[ta:keep]";
|
|
707
728
|
var TA_ASK_ENTRY = "ta-ask";
|
|
@@ -30,6 +30,27 @@ var TaHostUtil;
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
TaHostUtil2.reach = reach;
|
|
33
|
+
function marked(systemPrompt, mark) {
|
|
34
|
+
return role(systemPrompt).includes(mark);
|
|
35
|
+
}
|
|
36
|
+
TaHostUtil2.marked = marked;
|
|
37
|
+
function role(systemPrompt) {
|
|
38
|
+
if (!systemPrompt) {
|
|
39
|
+
return "";
|
|
40
|
+
}
|
|
41
|
+
const open = `<addendum>
|
|
42
|
+
`;
|
|
43
|
+
const start = systemPrompt.indexOf(open);
|
|
44
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
45
|
+
`);
|
|
46
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
47
|
+
return "";
|
|
48
|
+
}
|
|
49
|
+
const end = systemPrompt.indexOf(`
|
|
50
|
+
</addendum>`, start);
|
|
51
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
52
|
+
}
|
|
53
|
+
TaHostUtil2.role = role;
|
|
33
54
|
})(TaHostUtil || (TaHostUtil = {}));
|
|
34
55
|
var TA_WITH_OTHERS_MARK = "[ta:speaks-with-others]";
|
|
35
56
|
var TA_ASK_ENTRY = "ta-ask";
|
|
@@ -432,7 +453,7 @@ function activate(pi) {
|
|
|
432
453
|
answered: !!answer,
|
|
433
454
|
doubles: answer?.service?.service
|
|
434
455
|
}));
|
|
435
|
-
const isDouble = (ctx) => ctx.getSystemPrompt()
|
|
456
|
+
const isDouble = (ctx) => TaHostUtil.marked(ctx.getSystemPrompt(), ROOM_DOUBLE_MARK);
|
|
436
457
|
const turnOf = async (ctx) => {
|
|
437
458
|
const turn = (await reach()).doubles?.turnOf(ctx.sessionManager.getSessionFile());
|
|
438
459
|
return turn?.active ? turn : undefined;
|
|
@@ -468,7 +489,7 @@ function activate(pi) {
|
|
|
468
489
|
options.skills = [];
|
|
469
490
|
}
|
|
470
491
|
} else {
|
|
471
|
-
const agent = ctx.getSystemPrompt()
|
|
492
|
+
const agent = TaHostUtil.marked(ctx.getSystemPrompt(), AGENT_MARK);
|
|
472
493
|
const off = new Set([...ROOM_TOOLS, ...agent ? USER_TOOLS : []]);
|
|
473
494
|
const active = pi.getActiveTools();
|
|
474
495
|
if (active.some((name) => off.has(name))) {
|
|
@@ -287,6 +287,27 @@ var TaHostUtil;
|
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
289
|
TaHostUtil2.reach = reach;
|
|
290
|
+
function marked(systemPrompt, mark) {
|
|
291
|
+
return role(systemPrompt).includes(mark);
|
|
292
|
+
}
|
|
293
|
+
TaHostUtil2.marked = marked;
|
|
294
|
+
function role(systemPrompt) {
|
|
295
|
+
if (!systemPrompt) {
|
|
296
|
+
return "";
|
|
297
|
+
}
|
|
298
|
+
const open = `<addendum>
|
|
299
|
+
`;
|
|
300
|
+
const start = systemPrompt.indexOf(open);
|
|
301
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
302
|
+
`);
|
|
303
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
304
|
+
return "";
|
|
305
|
+
}
|
|
306
|
+
const end = systemPrompt.indexOf(`
|
|
307
|
+
</addendum>`, start);
|
|
308
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
309
|
+
}
|
|
310
|
+
TaHostUtil2.role = role;
|
|
290
311
|
})(TaHostUtil || (TaHostUtil = {}));
|
|
291
312
|
var TA_WITH_OTHERS_MARK = "[ta:speaks-with-others]";
|
|
292
313
|
var TA_ASK_ENTRY = "ta-ask";
|
|
@@ -101,7 +101,7 @@ function activate(pi) {
|
|
|
101
101
|
answered: !!answer,
|
|
102
102
|
doubles: (_a = answer === null || answer === void 0 ? void 0 : answer.service) === null || _a === void 0 ? void 0 : _a.service,
|
|
103
103
|
}); })));
|
|
104
|
-
const isDouble = (ctx) => ctx.getSystemPrompt()
|
|
104
|
+
const isDouble = (ctx) => ta_extension_host_1.TaHostUtil.marked(ctx.getSystemPrompt(), double_protocol_1.ROOM_DOUBLE_MARK);
|
|
105
105
|
/** What a double may do now: nothing but chat when its host is not there. */
|
|
106
106
|
const turnOf = async (ctx) => {
|
|
107
107
|
var _a;
|
|
@@ -146,7 +146,7 @@ function activate(pi) {
|
|
|
146
146
|
}
|
|
147
147
|
else {
|
|
148
148
|
// The tools of a double are not for the user's conversations, and the agents of channels do not act in rooms.
|
|
149
|
-
const agent = ctx.getSystemPrompt()
|
|
149
|
+
const agent = ta_extension_host_1.TaHostUtil.marked(ctx.getSystemPrompt(), AGENT_MARK);
|
|
150
150
|
const off = new Set([...double_util_1.ROOM_TOOLS, ...(agent ? double_util_1.USER_TOOLS : [])]);
|
|
151
151
|
const active = pi.getActiveTools();
|
|
152
152
|
if (active.some(name => off.has(name))) {
|
|
@@ -78,14 +78,13 @@ function FriendsPage() {
|
|
|
78
78
|
friendRequests.length > 0 && (react_1.React.createElement("section", { className: "trm-section" },
|
|
79
79
|
react_1.React.createElement("h3", null, (0, page_1.t)('friendRequestsTitle')),
|
|
80
80
|
react_1.React.createElement("ul", { className: "trm-card" }, friendRequests.map(request => (react_1.React.createElement(FriendRequestRow, { key: request.id, request: request })))))),
|
|
81
|
-
react_1.React.createElement(
|
|
81
|
+
(friends === null || friends === void 0 ? void 0 : friends.length) === 0 ? (react_1.React.createElement(page_1.pi.ui.Empty, { title: (0, page_1.t)('friendsEmpty'), hint: (0, page_1.t)('friendsEmptyHint') },
|
|
82
|
+
react_1.React.createElement("button", { type: "button", className: "ta-button ta-primary", onClick: openAddFriend },
|
|
83
|
+
react_1.React.createElement(Add, { size: 14 }),
|
|
84
|
+
" ",
|
|
85
|
+
(0, page_1.t)('addFriend')))) : (react_1.React.createElement("section", { className: "trm-section" },
|
|
82
86
|
!!(friends === null || friends === void 0 ? void 0 : friends.length) && react_1.React.createElement("h3", null, `${(0, page_1.t)('friends')} · ${friends.length}`),
|
|
83
|
-
friends === undefined ? (page_1.pi.ui.Skeleton ? (react_1.React.createElement(page_1.pi.ui.Skeleton, { rows: 3 })) : null) :
|
|
84
|
-
react_1.React.createElement(page_1.pi.ui.Empty, { compact: true, title: (0, page_1.t)('friendsEmpty'), hint: (0, page_1.t)('friendsEmptyHint') }),
|
|
85
|
-
react_1.React.createElement("button", { type: "button", className: "ta-button ta-primary", onClick: openAddFriend },
|
|
86
|
-
react_1.React.createElement(Add, { size: 14 }),
|
|
87
|
-
" ",
|
|
88
|
-
(0, page_1.t)('addFriend')))) : (react_1.React.createElement("ul", { className: "trm-rooms" }, friends.map(friend => (react_1.React.createElement(FriendRow, { key: friend.id, friend: friend }))))))));
|
|
87
|
+
friends === undefined ? (page_1.pi.ui.Skeleton ? (react_1.React.createElement(page_1.pi.ui.Skeleton, { rows: 3 })) : null) : (react_1.React.createElement("ul", { className: "trm-rooms" }, friends.map(friend => (react_1.React.createElement(FriendRow, { key: friend.id, friend: friend })))))))));
|
|
89
88
|
}
|
|
90
89
|
function FriendsHead() {
|
|
91
90
|
const Add = (0, page_1.icon)('UserPlus');
|
|
@@ -104,7 +103,7 @@ function FriendsEntry() {
|
|
|
104
103
|
react_1.React.createElement("span", { className: "trm-friends-entry-label" }, (0, page_1.t)('friends')),
|
|
105
104
|
friendRequests.length > 0 && react_1.React.createElement("span", { className: "trm-dot" }),
|
|
106
105
|
react_1.React.createElement("span", { className: "trm-grow" }),
|
|
107
|
-
list.length > 0 && page_1.pi.ui.GroupFace && react_1.React.createElement(page_1.pi.ui.GroupFace, { members: list.slice(0, 4).map(friend => ({ seed: friend.id })), size: 24 }),
|
|
106
|
+
list.length > 0 && page_1.pi.ui.GroupFace && (react_1.React.createElement(page_1.pi.ui.GroupFace, { members: list.slice(0, 4).map(friend => ({ seed: friend.id, look: friend.look })), size: 24 })),
|
|
108
107
|
react_1.React.createElement("span", { className: "trm-quiet" }, list.length ? (0, page_1.t)('friendsCount', { n: list.length }) : (0, page_1.t)('friendsNone')),
|
|
109
108
|
react_1.React.createElement(Chevron, { size: 16 })));
|
|
110
109
|
}
|
|
@@ -120,6 +120,18 @@ export declare class RoomBook {
|
|
|
120
120
|
protected read(next: BookState): void;
|
|
121
121
|
}
|
|
122
122
|
export declare const book: RoomBook;
|
|
123
|
+
/**
|
|
124
|
+
* How the Ta the page knows look (TaRoomMember.look, TaFriend.look), by identity: the members of rooms, friends, those who
|
|
125
|
+
* ask. The user's own is `double`, the double as the user picked it.
|
|
126
|
+
*/
|
|
127
|
+
export declare namespace RoomLooks {
|
|
128
|
+
function of(state: BookState): Map<string, string>;
|
|
129
|
+
/** What `ui.Face` draws the Ta of `id` by. */
|
|
130
|
+
function faceOf(state: BookState, id: string): {
|
|
131
|
+
look?: string;
|
|
132
|
+
double?: boolean;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
123
135
|
export declare function useBook(): BookState;
|
|
124
136
|
/** What was said in a room, as it changes; nothing for one not joined. */
|
|
125
137
|
export declare function useLines(room: TaRoomInfo): readonly ChatLine[];
|