@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
|
@@ -181,119 +181,6 @@ var TaPackageTextUtil;
|
|
|
181
181
|
}
|
|
182
182
|
TaPackageTextUtil2.pick = pick;
|
|
183
183
|
})(TaPackageTextUtil || (TaPackageTextUtil = {}));
|
|
184
|
-
// ../ta-protocol/esm/common/relay-protocol.js
|
|
185
|
-
var TaRelayServer = Symbol("TaRelayServer");
|
|
186
|
-
// ../ta-protocol/esm/common/remote-protocol.js
|
|
187
|
-
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
188
|
-
// ../ta-protocol/esm/common/room-protocol.js
|
|
189
|
-
var TaRoomServer = Symbol("TaRoomServer");
|
|
190
|
-
var TaRoomWatchUtil;
|
|
191
|
-
(function(TaRoomWatchUtil2) {
|
|
192
|
-
function of(messages, state) {
|
|
193
|
-
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
194
|
-
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
195
|
-
}
|
|
196
|
-
TaRoomWatchUtil2.of = of;
|
|
197
|
-
function union(watches) {
|
|
198
|
-
let messages = false;
|
|
199
|
-
const state = [];
|
|
200
|
-
for (const watch of watches) {
|
|
201
|
-
messages || (messages = watch.messages);
|
|
202
|
-
state.push(...watch.state);
|
|
203
|
-
}
|
|
204
|
-
return of(messages, messages ? [] : state);
|
|
205
|
-
}
|
|
206
|
-
TaRoomWatchUtil2.union = union;
|
|
207
|
-
function same(a, b) {
|
|
208
|
-
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
209
|
-
`) === b.state.join(`
|
|
210
|
-
`);
|
|
211
|
-
}
|
|
212
|
-
TaRoomWatchUtil2.same = same;
|
|
213
|
-
function hears(watch, event) {
|
|
214
|
-
if (event.type === "message") {
|
|
215
|
-
return watch.messages;
|
|
216
|
-
}
|
|
217
|
-
if (event.type === "state") {
|
|
218
|
-
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
219
|
-
}
|
|
220
|
-
return true;
|
|
221
|
-
}
|
|
222
|
-
TaRoomWatchUtil2.hears = hears;
|
|
223
|
-
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
224
|
-
// ../ta-protocol/esm/common/settings-protocol.js
|
|
225
|
-
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
226
|
-
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
227
|
-
var TA_HOST_EVENT = "ta:host";
|
|
228
|
-
var TaHostUtil;
|
|
229
|
-
(function(TaHostUtil2) {
|
|
230
|
-
TaHostUtil2.WAIT_MS = 1000;
|
|
231
|
-
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
232
|
-
return new Promise((resolve) => {
|
|
233
|
-
let heard = false;
|
|
234
|
-
let answered = false;
|
|
235
|
-
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
236
|
-
const request = {
|
|
237
|
-
name,
|
|
238
|
-
heard: () => {
|
|
239
|
-
heard = true;
|
|
240
|
-
},
|
|
241
|
-
resolve: (answer) => {
|
|
242
|
-
answered = true;
|
|
243
|
-
clearTimeout(timer);
|
|
244
|
-
resolve(answer);
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
events.emit(TA_HOST_EVENT, request);
|
|
248
|
-
if (!heard && !answered) {
|
|
249
|
-
clearTimeout(timer);
|
|
250
|
-
resolve(undefined);
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
TaHostUtil2.reach = reach;
|
|
255
|
-
})(TaHostUtil || (TaHostUtil = {}));
|
|
256
|
-
var TA_ASK_ENTRY = "ta-ask";
|
|
257
|
-
var TaAskUtil;
|
|
258
|
-
(function(TaAskUtil2) {
|
|
259
|
-
const LENGTH = 120;
|
|
260
|
-
function entry(question) {
|
|
261
|
-
const line = question.replace(/\s+/g, " ").trim();
|
|
262
|
-
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
263
|
-
}
|
|
264
|
-
TaAskUtil2.entry = entry;
|
|
265
|
-
function asking(entries) {
|
|
266
|
-
var _a;
|
|
267
|
-
for (let i = entries.length - 1;i >= 0; i--) {
|
|
268
|
-
const entry2 = entries[i];
|
|
269
|
-
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
273
|
-
return read(entry2);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
|
-
TaAskUtil2.asking = asking;
|
|
279
|
-
function next(asked, entry2) {
|
|
280
|
-
var _a;
|
|
281
|
-
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
282
|
-
return;
|
|
283
|
-
}
|
|
284
|
-
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
285
|
-
}
|
|
286
|
-
TaAskUtil2.next = next;
|
|
287
|
-
function read(found) {
|
|
288
|
-
var _a;
|
|
289
|
-
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
290
|
-
if (typeof question !== "string" || !question.trim()) {
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
294
|
-
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
295
|
-
}
|
|
296
|
-
})(TaAskUtil || (TaAskUtil = {}));
|
|
297
184
|
// ../ta-protocol/esm/common/ta-protocol.js
|
|
298
185
|
var TaServer = Symbol("TaServer");
|
|
299
186
|
var TaClient = Symbol("TaClient");
|
|
@@ -497,6 +384,176 @@ var TaSkillUse;
|
|
|
497
384
|
}
|
|
498
385
|
TaSkillUse2.command = command;
|
|
499
386
|
})(TaSkillUse || (TaSkillUse = {}));
|
|
387
|
+
|
|
388
|
+
// ../ta-protocol/esm/common/presence-protocol.js
|
|
389
|
+
var TaPresenceServer = Symbol("TaPresenceServer");
|
|
390
|
+
var TaMessageAuthor;
|
|
391
|
+
(function(TaMessageAuthor2) {
|
|
392
|
+
const LINE = /^\[ta:by ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
|
|
393
|
+
const LINES = /^\[ta:by [^\]\n]*\]$\n?/gm;
|
|
394
|
+
function strip(message) {
|
|
395
|
+
const context = TaMessageContext.read(message);
|
|
396
|
+
if (context === undefined || !LINE.test(context)) {
|
|
397
|
+
return message;
|
|
398
|
+
}
|
|
399
|
+
const kept = context.replace(LINES, "").replace(/\n+$/, "");
|
|
400
|
+
const body = TaMessageContext.strip(message);
|
|
401
|
+
return kept.trim() ? TaMessageContext.wrap(kept, body) : body;
|
|
402
|
+
}
|
|
403
|
+
TaMessageAuthor2.strip = strip;
|
|
404
|
+
function mark(message, id, name) {
|
|
405
|
+
const plain = strip(message);
|
|
406
|
+
if (/^[/!]/.test(plain)) {
|
|
407
|
+
return plain;
|
|
408
|
+
}
|
|
409
|
+
const line = `[ta:by ${id.replace(/[\s\]]/g, "")} ${name.replace(/[\]\n]/g, " ").trim() || id}]`;
|
|
410
|
+
const context = TaMessageContext.read(plain);
|
|
411
|
+
return TaMessageContext.wrap(context === undefined ? line : `${context}
|
|
412
|
+
${line}`, TaMessageContext.strip(plain));
|
|
413
|
+
}
|
|
414
|
+
TaMessageAuthor2.mark = mark;
|
|
415
|
+
function of(message) {
|
|
416
|
+
var _a;
|
|
417
|
+
const context = TaMessageContext.read(message);
|
|
418
|
+
const match = context === undefined ? null : LINE.exec(context);
|
|
419
|
+
return match ? { id: match[1], name: ((_a = match[2]) !== null && _a !== undefined ? _a : match[1]).trim() } : undefined;
|
|
420
|
+
}
|
|
421
|
+
TaMessageAuthor2.of = of;
|
|
422
|
+
})(TaMessageAuthor || (TaMessageAuthor = {}));
|
|
423
|
+
// ../ta-protocol/esm/common/relay-protocol.js
|
|
424
|
+
var TaRelayServer = Symbol("TaRelayServer");
|
|
425
|
+
// ../ta-protocol/esm/common/remote-protocol.js
|
|
426
|
+
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
427
|
+
// ../ta-protocol/esm/common/room-protocol.js
|
|
428
|
+
var TaRoomServer = Symbol("TaRoomServer");
|
|
429
|
+
var TaRoomWatchUtil;
|
|
430
|
+
(function(TaRoomWatchUtil2) {
|
|
431
|
+
function of(messages, state) {
|
|
432
|
+
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
433
|
+
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
434
|
+
}
|
|
435
|
+
TaRoomWatchUtil2.of = of;
|
|
436
|
+
function union(watches) {
|
|
437
|
+
let messages = false;
|
|
438
|
+
const state = [];
|
|
439
|
+
for (const watch of watches) {
|
|
440
|
+
messages || (messages = watch.messages);
|
|
441
|
+
state.push(...watch.state);
|
|
442
|
+
}
|
|
443
|
+
return of(messages, messages ? [] : state);
|
|
444
|
+
}
|
|
445
|
+
TaRoomWatchUtil2.union = union;
|
|
446
|
+
function same(a, b) {
|
|
447
|
+
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
448
|
+
`) === b.state.join(`
|
|
449
|
+
`);
|
|
450
|
+
}
|
|
451
|
+
TaRoomWatchUtil2.same = same;
|
|
452
|
+
function hears(watch, event) {
|
|
453
|
+
if (event.type === "message") {
|
|
454
|
+
return watch.messages;
|
|
455
|
+
}
|
|
456
|
+
if (event.type === "state") {
|
|
457
|
+
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
458
|
+
}
|
|
459
|
+
return true;
|
|
460
|
+
}
|
|
461
|
+
TaRoomWatchUtil2.hears = hears;
|
|
462
|
+
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
463
|
+
// ../ta-protocol/esm/common/settings-protocol.js
|
|
464
|
+
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
465
|
+
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
466
|
+
var TA_HOST_EVENT = "ta:host";
|
|
467
|
+
var TaHostUtil;
|
|
468
|
+
(function(TaHostUtil2) {
|
|
469
|
+
TaHostUtil2.WAIT_MS = 1000;
|
|
470
|
+
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
471
|
+
return new Promise((resolve) => {
|
|
472
|
+
let heard = false;
|
|
473
|
+
let answered = false;
|
|
474
|
+
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
475
|
+
const request = {
|
|
476
|
+
name,
|
|
477
|
+
heard: () => {
|
|
478
|
+
heard = true;
|
|
479
|
+
},
|
|
480
|
+
resolve: (answer) => {
|
|
481
|
+
answered = true;
|
|
482
|
+
clearTimeout(timer);
|
|
483
|
+
resolve(answer);
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
events.emit(TA_HOST_EVENT, request);
|
|
487
|
+
if (!heard && !answered) {
|
|
488
|
+
clearTimeout(timer);
|
|
489
|
+
resolve(undefined);
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
TaHostUtil2.reach = reach;
|
|
494
|
+
function marked(systemPrompt, mark) {
|
|
495
|
+
return role(systemPrompt).includes(mark);
|
|
496
|
+
}
|
|
497
|
+
TaHostUtil2.marked = marked;
|
|
498
|
+
function role(systemPrompt) {
|
|
499
|
+
if (!systemPrompt) {
|
|
500
|
+
return "";
|
|
501
|
+
}
|
|
502
|
+
const open = `<addendum>
|
|
503
|
+
`;
|
|
504
|
+
const start = systemPrompt.indexOf(open);
|
|
505
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
506
|
+
`);
|
|
507
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
508
|
+
return "";
|
|
509
|
+
}
|
|
510
|
+
const end = systemPrompt.indexOf(`
|
|
511
|
+
</addendum>`, start);
|
|
512
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
513
|
+
}
|
|
514
|
+
TaHostUtil2.role = role;
|
|
515
|
+
})(TaHostUtil || (TaHostUtil = {}));
|
|
516
|
+
var TA_ASK_ENTRY = "ta-ask";
|
|
517
|
+
var TaAskUtil;
|
|
518
|
+
(function(TaAskUtil2) {
|
|
519
|
+
const LENGTH = 120;
|
|
520
|
+
function entry(question) {
|
|
521
|
+
const line = question.replace(/\s+/g, " ").trim();
|
|
522
|
+
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
523
|
+
}
|
|
524
|
+
TaAskUtil2.entry = entry;
|
|
525
|
+
function asking(entries) {
|
|
526
|
+
var _a;
|
|
527
|
+
for (let i = entries.length - 1;i >= 0; i--) {
|
|
528
|
+
const entry2 = entries[i];
|
|
529
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
532
|
+
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
533
|
+
return read(entry2);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
TaAskUtil2.asking = asking;
|
|
539
|
+
function next(asked, entry2) {
|
|
540
|
+
var _a;
|
|
541
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
545
|
+
}
|
|
546
|
+
TaAskUtil2.next = next;
|
|
547
|
+
function read(found) {
|
|
548
|
+
var _a;
|
|
549
|
+
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
550
|
+
if (typeof question !== "string" || !question.trim()) {
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
554
|
+
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
555
|
+
}
|
|
556
|
+
})(TaAskUtil || (TaAskUtil = {}));
|
|
500
557
|
// ../ta-protocol/esm/common/team-protocol.js
|
|
501
558
|
var TA_OWNER = "owner";
|
|
502
559
|
var TA_UNDECLARED = "extensions.install";
|
|
@@ -23,7 +23,7 @@ exports.ASK_FIRST_MARK = 'Ask the user before you hand out work';
|
|
|
23
23
|
function activate(pi) {
|
|
24
24
|
let reached;
|
|
25
25
|
const reach = () => (reached !== null && reached !== void 0 ? reached : (reached = ta_extension_host_1.TaHostUtil.reach(pi.events, channels_util_1.NAME).then(answer => ({ answered: !!answer, team: answer === null || answer === void 0 ? void 0 : answer.service }))));
|
|
26
|
-
const isAgent = (ctx) => ctx.getSystemPrompt()
|
|
26
|
+
const isAgent = (ctx) => ta_extension_host_1.TaHostUtil.marked(ctx.getSystemPrompt(), channels_util_1.AGENT_MARK);
|
|
27
27
|
/** The channels the user let Ta work in, in this process: asked once each. */
|
|
28
28
|
const allowed = new Set();
|
|
29
29
|
pi.on('session_start', () => {
|
|
@@ -69,7 +69,7 @@ function activate(pi) {
|
|
|
69
69
|
throw new Error(answered ? exports.NO_TEAM : exports.NO_SERVER);
|
|
70
70
|
}
|
|
71
71
|
const input = params !== null && params !== void 0 ? params : {};
|
|
72
|
-
if (ctx.getSystemPrompt()
|
|
72
|
+
if (ta_extension_host_1.TaHostUtil.marked(ctx.getSystemPrompt(), exports.ASK_FIRST_MARK)) {
|
|
73
73
|
const question = team_ask_1.TeamAsk.question(tool.name, input, team.state, allowed);
|
|
74
74
|
if (question && !(await ask(ctx, question))) {
|
|
75
75
|
return { content: [{ type: 'text', text: team_ask_1.TeamAsk.REFUSED }], details: undefined };
|
|
@@ -156,12 +156,12 @@ function ChannelRoom({ context, channelId: fixed }) {
|
|
|
156
156
|
channel.topic && react_1.React.createElement("span", null, channel.topic),
|
|
157
157
|
react_1.React.createElement("span", { className: "tac-chat-hint" }, w.quiet))),
|
|
158
158
|
messages &&
|
|
159
|
-
RoomUtil.rows(messages).map(({ message, first, separator }) => { var _a, _b, _c; return (react_1.React.createElement(react_1.React.Fragment, { key: message.id },
|
|
159
|
+
RoomUtil.rows(messages).map(({ message, first, separator }) => { var _a, _b, _c, _d; return (react_1.React.createElement(react_1.React.Fragment, { key: message.id },
|
|
160
160
|
separator && react_1.React.createElement("div", { className: "tac-chat-time" }, time(message.at)),
|
|
161
161
|
message.author === channels_util_1.SYSTEM ? (react_1.React.createElement("div", { className: "tac-notice", role: "note" }, w.stopped)) : message.notice ? (react_1.React.createElement("button", { type: "button", className: "tac-notice tac-notice-line", disabled: !channel.notice, onClick: () => setNotice({ open: true, editing: false }) }, i18n_1.ChannelWords.format(message.notice === 'cleared' ? w.noticeCleared : w.noticeUpdated, { name: name(message.author) }))) : message.author === channels_util_1.USER && ((_a = message.by) !== null && _a !== void 0 ? _a : team_protocol_1.TA_OWNER) !== me ? (react_1.React.createElement("div", { className: `tac-msg${first ? ' tac-first' : ''}` },
|
|
162
|
-
react_1.React.createElement("div", { className: "tac-msg-face" }, first && pi.ui.Face && react_1.React.createElement(pi.ui.Face, { seed: (_b = message.by) !== null && _b !== void 0 ? _b : team_protocol_1.TA_OWNER, size: 28 })),
|
|
162
|
+
react_1.React.createElement("div", { className: "tac-msg-face" }, first && pi.ui.Face && (react_1.React.createElement(pi.ui.Face, { seed: (_b = message.by) !== null && _b !== void 0 ? _b : team_protocol_1.TA_OWNER, double: ((_c = message.by) !== null && _c !== void 0 ? _c : team_protocol_1.TA_OWNER) === team_protocol_1.TA_OWNER, size: 28 }))),
|
|
163
163
|
react_1.React.createElement("div", { className: "tac-msg-col" },
|
|
164
|
-
first && react_1.React.createElement("div", { className: "tac-msg-name" }, (
|
|
164
|
+
first && react_1.React.createElement("div", { className: "tac-msg-name" }, (_d = message.byName) !== null && _d !== void 0 ? _d : w.owner),
|
|
165
165
|
react_1.React.createElement("div", { className: "tac-msg-bubble", title: time(message.at) },
|
|
166
166
|
react_1.React.createElement(Mentions, { text: message.text, agents: state.team.agents }))))) : message.author === channels_util_1.USER ? (react_1.React.createElement("div", { className: "ta-message ta-user tac-mine" },
|
|
167
167
|
react_1.React.createElement("div", { className: "ta-bubble" },
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-channels",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: agents with roles of their own and channels where the user, Ta and the agents talk; Ta builds the team for what the user wants",
|
|
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",
|
|
@@ -3383,6 +3383,7 @@ function ChannelRoom({ context, channelId: fixed }) {
|
|
|
3383
3383
|
className: "tac-msg-face"
|
|
3384
3384
|
}, first && pi.ui.Face && /* @__PURE__ */ React.createElement(pi.ui.Face, {
|
|
3385
3385
|
seed: message.by ?? TA_OWNER,
|
|
3386
|
+
double: (message.by ?? TA_OWNER) === TA_OWNER,
|
|
3386
3387
|
size: 28
|
|
3387
3388
|
})), /* @__PURE__ */ React.createElement("div", {
|
|
3388
3389
|
className: "tac-msg-col"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-computer-use",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: the desktop apps of this computer, used in the background through Cua Driver, which starts only when the agent first needs it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/cellbang/
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/cellbang/
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -33,7 +33,7 @@ Times are local to the machine of the Ta service. A command may end with `--name
|
|
|
33
33
|
## How it runs
|
|
34
34
|
|
|
35
35
|
- Three parts, none of which changes Ta's core:
|
|
36
|
-
- **Server side** (`pi.host`, `web-src/host.ts`): the scheduler. It runs in the Ta service with one timer, asleep until the next task is due (it looks again within a minute at the latest, to follow a changed clock or a machine that slept). Tasks and runs are kept in the data of the package (`extension-data/@celljs/ta-cron.json` of the agent directory), the last 20 runs of each task.
|
|
36
|
+
- **Server side** (`pi.host`, `web-src/host.ts`): the scheduler. It runs in the Ta service with one timer, asleep until the next task is due (it looks again within a minute at the latest, to follow a changed clock or a machine that slept). Tasks and runs are kept in the data of the package (`extension-data/@celljs/ta-cron.json` of the agent directory), the last 20 runs of each task. Other packages read the tasks and runs with `callPackageHost('@celljs/ta-cron', …)`: `list()`, `runs(id, limit?)` (newest first), not by the data of this package (the brief of ta-recall does so).
|
|
37
37
|
- **pi extension** (`pi.extensions`, `web-src/extension.ts`): `/loop`, `/remind`, `/schedule` and the tool `schedule_task`. A command answers with a card in the conversation, which the model does not read.
|
|
38
38
|
- **Web extension** (`pi.web`, `web-src/index.tsx`): the Scheduled page, the cards of the commands, a notice when a run ends, and the Next up card of the board (a swipe to the right over the first tab of a phone, a button of the rail elsewhere): the three tasks running or due first.
|
|
39
39
|
- **One run, one conversation**: each run opens a new session (in the `ta-cron` group) in the task's directory (by default that of the conversation that made it; an `ssh://` directory works too), with the task's model and thinking level if it has them. The system prompt it adds tells Ta that nobody watches, not to ask anything, and to end with a summary; the last answer is the summary of the run. Once the run ends its session closes (after whoever is looking at it leaves), and its file stays.
|
|
@@ -33,7 +33,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
|
|
|
33
33
|
## 怎么运行
|
|
34
34
|
|
|
35
35
|
- 由三部分组成,都不改 Ta 的核心:
|
|
36
|
-
- **服务端**(`pi.host`,`web-src/host.ts`):调度器。Ta 服务启动时运行,只有一个计时器,睡到最近一个任务的时间(最长一分钟后再看一次,以便跟上系统时间的变化和休眠)。任务和运行记录存在包数据里(agent 目录的 `extension-data/@celljs/ta-cron.json`),每个任务保留最近 20
|
|
36
|
+
- **服务端**(`pi.host`,`web-src/host.ts`):调度器。Ta 服务启动时运行,只有一个计时器,睡到最近一个任务的时间(最长一分钟后再看一次,以便跟上系统时间的变化和休眠)。任务和运行记录存在包数据里(agent 目录的 `extension-data/@celljs/ta-cron.json`),每个任务保留最近 20 次运行。别的包经 `callPackageHost('@celljs/ta-cron', …)` 读任务和运行:`list()`、`runs(id, limit?)`(新的在前),不读本包的数据(ta-recall 的简报就这样读)。
|
|
37
37
|
- **pi 扩展**(`pi.extensions`,`web-src/extension.ts`):`/loop`、`/remind`、`/schedule` 和工具 `schedule_task`。命令的回答是对话里的一张卡片,不进入模型的上下文。
|
|
38
38
|
- **Web 扩展**(`pi.web`,`web-src/index.tsx`):"定时任务"页、命令回答的卡片、运行结束时的通知,以及小组件面板(首页往右划,电脑上是导轨的按钮)里的"接下来"卡片:正在运行和最近要运行的三个任务。
|
|
39
39
|
- **一次运行,一个对话**:每次运行打开一个新会话(归在 `ta-cron` 分组下),工作目录是任务的目录(默认是创建它的对话的目录,可以是 `ssh://` 远程目录),可单独指定模型和思考级别。追加的系统提示告诉 Ta 没人在看、不要提问、最后写一段总结;最后一条回答就是这次运行的总结。运行结束后会话关闭(有人正在看时等看完再关),对话文件保留。
|
|
@@ -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_KEEP_MARK = "[ta:keep]";
|
|
32
53
|
var TA_ASK_ENTRY = "ta-ask";
|
|
@@ -929,7 +950,7 @@ function activate(pi) {
|
|
|
929
950
|
host: answer?.host,
|
|
930
951
|
scheduler: answer?.service
|
|
931
952
|
}));
|
|
932
|
-
const isRun = (ctx) => ctx.getSystemPrompt()
|
|
953
|
+
const isRun = (ctx) => TaHostUtil.marked(ctx.getSystemPrompt(), RUN_MARK);
|
|
933
954
|
const scheduler = async (ctx) => {
|
|
934
955
|
if (isRun(ctx)) {
|
|
935
956
|
throw new Error(NOT_IN_RUN);
|
|
@@ -23,7 +23,7 @@ function activate(pi) {
|
|
|
23
23
|
host: answer === null || answer === void 0 ? void 0 : answer.host,
|
|
24
24
|
scheduler: answer === null || answer === void 0 ? void 0 : answer.service,
|
|
25
25
|
}))));
|
|
26
|
-
const isRun = (ctx) => ctx.getSystemPrompt()
|
|
26
|
+
const isRun = (ctx) => ta_extension_host_1.TaHostUtil.marked(ctx.getSystemPrompt(), cron_protocol_1.RUN_MARK);
|
|
27
27
|
const scheduler = async (ctx) => {
|
|
28
28
|
if (isRun(ctx)) {
|
|
29
29
|
throw new Error(exports.NOT_IN_RUN);
|
|
@@ -37,6 +37,8 @@ export declare class CronClient {
|
|
|
37
37
|
protected stop?: () => void;
|
|
38
38
|
constructor(api: WebExtensionAPI);
|
|
39
39
|
start(): void;
|
|
40
|
+
/** A read nobody waits on: one let into the Ta who may not see the tasks (CELL_TA_FORBIDDEN) is shown none, not an error. */
|
|
41
|
+
protected quietly(reading: Promise<void>): void;
|
|
40
42
|
dispose(): void;
|
|
41
43
|
subscribe(listener: () => void): () => void;
|
|
42
44
|
/** A new task asked for at the head of the page: the page showing opens its editor; one opened later does not. */
|
|
@@ -66,16 +66,20 @@ class CronClient {
|
|
|
66
66
|
start() {
|
|
67
67
|
this.stop = this.api.storage.onChange(keys => {
|
|
68
68
|
if (keys.includes(cron_protocol_1.Keys.TASKS)) {
|
|
69
|
-
|
|
69
|
+
this.quietly(this.load());
|
|
70
70
|
}
|
|
71
71
|
for (const key of keys) {
|
|
72
72
|
const id = key.startsWith('runs/') ? key.slice(5) : undefined;
|
|
73
73
|
if (id && this.state.runs[id]) {
|
|
74
|
-
|
|
74
|
+
this.quietly(this.loadRuns(id));
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
|
|
78
|
+
this.quietly(this.load());
|
|
79
|
+
}
|
|
80
|
+
/** A read nobody waits on: one let into the Ta who may not see the tasks (CELL_TA_FORBIDDEN) is shown none, not an error. */
|
|
81
|
+
quietly(reading) {
|
|
82
|
+
reading.catch(() => undefined);
|
|
79
83
|
}
|
|
80
84
|
dispose() {
|
|
81
85
|
var _a;
|
|
@@ -113,7 +117,7 @@ class CronClient {
|
|
|
113
117
|
this.reading = undefined;
|
|
114
118
|
if (this.again) {
|
|
115
119
|
this.again = false;
|
|
116
|
-
|
|
120
|
+
this.quietly(this.load());
|
|
117
121
|
}
|
|
118
122
|
}
|
|
119
123
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-cron",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: prompts that run on a schedule, once, every so often or by a cron expression, each run in a conversation of its own in the Ta service",
|
|
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",
|
|
@@ -711,16 +711,21 @@ class CronClient {
|
|
|
711
711
|
start() {
|
|
712
712
|
this.stop = this.api.storage.onChange((keys) => {
|
|
713
713
|
if (keys.includes(Keys.TASKS)) {
|
|
714
|
-
this.load();
|
|
714
|
+
this.quietly(this.load());
|
|
715
715
|
}
|
|
716
716
|
for (const key of keys) {
|
|
717
717
|
const id = key.startsWith("runs/") ? key.slice(5) : undefined;
|
|
718
718
|
if (id && this.state.runs[id]) {
|
|
719
|
-
this.loadRuns(id);
|
|
719
|
+
this.quietly(this.loadRuns(id));
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
});
|
|
723
|
-
this.load();
|
|
723
|
+
this.quietly(this.load());
|
|
724
|
+
}
|
|
725
|
+
quietly(reading) {
|
|
726
|
+
reading.catch(() => {
|
|
727
|
+
return;
|
|
728
|
+
});
|
|
724
729
|
}
|
|
725
730
|
dispose() {
|
|
726
731
|
this.stop?.();
|
|
@@ -754,7 +759,7 @@ class CronClient {
|
|
|
754
759
|
this.reading = undefined;
|
|
755
760
|
if (this.again) {
|
|
756
761
|
this.again = false;
|
|
757
|
-
this.load();
|
|
762
|
+
this.quietly(this.load());
|
|
758
763
|
}
|
|
759
764
|
}
|
|
760
765
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-extensions",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: the page of extensions, where the user makes one by saying what it should do, and hands extensions on or takes them in as one file",
|
|
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",
|
|
@@ -78,7 +78,7 @@ export default function (pi) {
|
|
|
78
78
|
- `ui.Composer`: the message box of every conversation, with its microphone and its hold to talk, `{ placeholder?, onSend(text), mentions?, mentionLabel?, actions?, voiceSends?, onTalkSent?(), onListening?(listening), working?, onStop?(), after? }`: `mentions` (`{ name, detail? }[]`) is what `@` lists; `actions` are sections of its + menu, entries `{ key, label, icon?, detail?, setting?, toggle?, checked?, insert? | run() }` (`insert` puts text at the caret; tiles, `setting` and `toggle` as above). As the double's box: `voiceSends` sends what the microphone hears at once, `onTalkSent` says a message was said by voice (read its answer aloud with `ui.voice`), `onListening` says the user talks now, `working` makes the send button stop (`onStop`) while nothing is typed, `after` are buttons of the page before the microphone. Use it for any conversation an extension shows, rather than a box of its own. `ui.HoldToTalk` (`{ onSend(text), onEdit?(text), hints?, title?, className?, children }`) is a button held to talk, as the bar of the message box: the page dims and listens with its own recognizer (the app's on iOS), 取消 and 编辑 to slide onto; it renders nothing where the page cannot listen. `ui.voice` (`canListen()`, `canSpeak()`, `speak(text, onEnd?)`, `hush()`) reads aloud in the voice of the settings. Never a `SpeechRecognition` or `speechSynthesis` of your own. A page that is a conversation may take a message from another extension: `ui.useView(id).send?.(text)` (the double's page, `assistant/assistant`, has it; its answer comes as the view's `preview`). `ui.Markdown` (`{ text }`) renders messages as the conversations do. `ui.Empty` (`{ title, hint?, compact?, tone?, picture?, children? }`) is what an empty list or view shows, as Ta's own lists: a short title without a full stop, at most one quieter hint, centered in its parent (a column of flex); `compact` in a menu, picker or dialog; `picture` above it where seeing what will be there helps (a first page, a list the user fills). Use it rather than text of your own. `ui.Picture` (`{ width?, height?, frame?, className?, children }`, 160 by 96 in a rounded frame unless told) is a small picture as Ta's own: draw a few `rect`, `circle`, `path` and `text` in it with the classes `ta-pic-pane` (a surface), `ta-pic-line` (a bar of text), `ta-pic-box` (an outline), `ta-pic-accent` (what it is about), `ta-pic-mark` (green), `ta-pic-soft` (half of it), `ta-pic-dot`, `ta-pic-bad` (red), `ta-pic-path` (a dashed way), `ta-pic-stroke` (a green line), `ta-pic-tick` (a line on green) and `ta-pic-text` (code), never colors of your own, so it follows the theme. `ui.PictureCards` (`{ cards, columns?, compactColumns? }`, cards `{ key, picture, label, hint?, title?, disabled?, onPick() }`) is a row of them to pick from, as the suggestions of an empty conversation. `ui.Dialog` (`{ title, onClose, children }`) is a dialog over the whole page, as Ta's own: use it to make or change things rather than a form in a sidebar.
|
|
79
79
|
- `ui.usePages()`: a React hook, every page there is (`{ id, extension, title, icon?, state, onOpen, place, usedAt?, source?, temporary? }`), what Quick open lists; `ui.stopExtension(name)` stops one that started on open, `ui.forgetPage(id)` takes one out of Recent. `openTemporary(source, 'link')` opens a package of npm or Git without installing it and shows its first page: ask the user first. `ui.useContextMenu()`: a React hook, `[menu, open]`: render `menu`, and call `open(event, sections)` from `onContextMenu` (a long press on a touch screen is one), sections of `{ key, label, icon?, disabled?, danger?, run }`. `ui.shareExtension({ title, source?, packageId? })` opens Ta's dialog that shares an extension (a link and its QR code), `ui.openShared(text)` opens such a link after asking, and `registerSearch({ key, title, order?, remote?, search(query, offset), subscribe? })` adds a section to the search of Quick open (entries `{ key, title, detail?, icon?, tint?, action?, open(), menu? }`). `ui.QrCode` (`{ text }`) draws a QR code; `ui.ImageViewer` (`{ src, alt?, className?, onLoad?, onBackground?, onPrevious?, onNext?, autoFocus? }`) shows a picture to zoom and drag, as the previews of the workbench do (it fills a column of flex; `onPrevious` / `onNext` go to the pictures beside it, by side buttons and ← →); `ui.scanCode?.(instructions)`, only in the Ta app, scans one with the camera; `ui.scan?.()` is the Scan of the page itself (Discover, the + of the first list), which opens what the code carries (a computer, a link of an extension, a page, text to copy).
|
|
80
80
|
- What waits on ta serve says so, so that the user sees the click took: `ui.useBusy()`, a React hook, `[busy, run]`; `run(action)` stays busy until what `action` returns settles and runs nothing else meanwhile (a second click). Mark what waits with the page's classes, which show it only once it took a moment: `ta-busy` on a button with `<span className="ta-spinner ta-busy-mark" />` in it (add `ta-on-brand` on a button of the brand's color), `ta-pending` on a row being taken away, `<span className="ta-spinner ta-later" />` for a spinner of its own. `ui.Switch` (`{ checked, onChange, label, disabled? }`) is the page's switch: an `onChange` that returns a promise moves it at once, its knob turning until done. Both are newer than some Ta apps: `(pi.ui.useBusy ?? fallback)()`, `pi.ui.Switch ?? fallback`.
|
|
81
|
-
- Lists drawn as the page's: `ui.useSessions()` and `ui.useSavedSessions()`, React hooks, the open sessions of ta serve and the conversations saved lately, as the lists of the page have them (never a poll of `server.listSessions()` of your own); `ui.Face` (`{ face?, seed?, size, working?, online? }`, the same for the same `seed` on every device) and `ui.GroupFace` (`{ members, size }`) for who is not Ta; `ui.SwipeRow` for a row a finger swipes for its actions, `ui.SelectCheck` and `ui.SelectBar` for several chosen at once; `ui.Stack` (`{ base, top, open, onClose }`) for what a tap in a list pushes over it. Work the package does for the user is a task: `registerTasks(source)`, listed with the double's by `ui.useTasks()`, removed after asking with `ui.removeTasks(tasks)`. Newer than some Ta apps: `pi.ui.Face ?? fallback`.
|
|
81
|
+
- Lists drawn as the page's: `ui.useSessions()` and `ui.useSavedSessions()`, React hooks, the open sessions of ta serve and the conversations saved lately, as the lists of the page have them (never a poll of `server.listSessions()` of your own); `ui.useAsks()` the conversations waiting for the user to decide, as the top of the list of chats has them (`pi.ui.useAsks?.() ?? []`); `ui.Face` (`{ face?, seed?, size, working?, online? }`, the same for the same `seed` on every device) and `ui.GroupFace` (`{ members, size }`) for who is not Ta; `ui.SwipeRow` for a row a finger swipes for its actions, `ui.SelectCheck` and `ui.SelectBar` for several chosen at once; `ui.Stack` (`{ base, top, open, onClose }`) for what a tap in a list pushes over it. Work the package does for the user is a task: `registerTasks(source)`, listed with the double's by `ui.useTasks()`, removed after asking with `ui.removeTasks(tasks)`. Newer than some Ta apps: `pi.ui.Face ?? fallback`.
|
|
82
82
|
- `ui.Avatar`: Ta's avatar, the Cell logo, as a component `{ size?, mood?, mark? }`; `mark`, one or two characters, tells agents apart. Use it wherever Ta speaks, and draw Ta no other way.
|
|
83
83
|
- `ui.icons`: the lucide icons of the page by name (`Plus`, `Hash`, `Search`, `Files`, ...): a web extension cannot import them. Check for one before using it: the list only grows.
|
|
84
84
|
- `storage.get(key)` and `storage.set(key, value)`: small JSON values kept on the server for the package, so they stay across browsers and devices; setting `null` removes a key. A package keeps at most 4 MB there. `storage.onChange(keys => ...)` hears keys changed by other pages or the server. `storage.directory(cwd)` has the same methods for values of one directory (use `ui.useCwd()`), such as the folders open in a tree: keep there what belongs to a directory, and in `storage` what belongs to the user. Keys of `storage` that should go to the user's other computers (a best score, preferences) are listed in `"pi": { "sync": ["best"] }` of package.json; the built-in Sync (@celljs/ta-sync) carries them, when the user turned it on. The pages of people the user let into their Ta (the built-in Members, @celljs/ta-team) keep values of their own in `storage`: theirs are not the user's. A call the person may not make fails with the code `CELL_TA_FORBIDDEN` and a message that says what it needs.
|