@celljs/ta 4.15.0 → 4.15.1
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 +77 -3
- package/dist/pi/CHANGELOG.md +7 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-3d/README.en.md +11 -0
- package/dist/pi/packages/ta-3d/README.md +11 -0
- package/dist/pi/packages/ta-3d/extension/index.mjs +120 -0
- package/dist/pi/packages/ta-3d/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-3d/lib/extension.js +24 -0
- package/dist/pi/packages/ta-3d/lib/i18n.d.ts +19 -0
- package/dist/pi/packages/ta-3d/lib/i18n.js +50 -0
- package/dist/pi/packages/ta-3d/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-3d/lib/index.js +22 -0
- package/dist/pi/packages/ta-3d/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-3d/lib/react.js +8 -0
- package/dist/pi/packages/ta-3d/lib/scene-card.d.ts +4 -0
- package/dist/pi/packages/ta-3d/lib/scene-card.js +60 -0
- package/dist/pi/packages/ta-3d/lib/scene-prompt.d.ts +7 -0
- package/dist/pi/packages/ta-3d/lib/scene-prompt.js +15 -0
- package/dist/pi/packages/ta-3d/lib/scene-protocol.d.ts +5 -0
- package/dist/pi/packages/ta-3d/lib/scene-protocol.js +8 -0
- package/dist/pi/packages/ta-3d/lib/scene-spec.d.ts +59 -0
- package/dist/pi/packages/ta-3d/lib/scene-spec.js +141 -0
- package/dist/pi/packages/ta-3d/lib/scene-view.d.ts +57 -0
- package/dist/pi/packages/ta-3d/lib/scene-view.js +339 -0
- package/dist/pi/packages/ta-3d/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-3d/lib/style.js +33 -0
- package/dist/pi/packages/ta-3d/package.json +58 -0
- package/dist/pi/packages/ta-3d/web/index.js +660 -0
- package/dist/pi/packages/ta-agents/README.en.md +2 -2
- package/dist/pi/packages/ta-agents/README.md +2 -2
- package/dist/pi/packages/ta-agents/extension/index.mjs +198 -6
- package/dist/pi/packages/ta-agents/lib/acp-agent.d.ts +4 -0
- package/dist/pi/packages/ta-agents/lib/acp-agent.js +20 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +14 -5
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +13 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js +29 -4
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +5 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +16 -4
- package/dist/pi/packages/ta-agents/lib/agent-session.js +34 -4
- package/dist/pi/packages/ta-agents/lib/agent-sign-in.d.ts +28 -0
- package/dist/pi/packages/ta-agents/lib/agent-sign-in.js +62 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.d.ts +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +40 -3
- package/dist/pi/packages/ta-agents/lib/extension.js +12 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +43 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +47 -0
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/host/index.mjs +33 -4
- package/dist/pi/packages/ta-bots/lib/bot-service.d.ts +6 -0
- package/dist/pi/packages/ta-bots/lib/bot-service.js +27 -2
- package/dist/pi/packages/ta-bots/lib/bot-store.d.ts +8 -1
- package/dist/pi/packages/ta-bots/lib/bot-store.js +16 -2
- package/dist/pi/packages/ta-bots/lib/weixin-channel.js +3 -1
- package/dist/pi/packages/ta-bots/package.json +1 -1
- package/dist/pi/packages/ta-changes/package.json +1 -1
- package/dist/pi/packages/ta-channels/package.json +1 -1
- package/dist/pi/packages/ta-computer-use/package.json +1 -1
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +4 -2
- package/dist/pi/packages/ta-cron/package.json +1 -1
- package/dist/pi/packages/ta-cron/web/index.js +8 -4
- package/dist/pi/packages/ta-extensions/package.json +1 -1
- package/dist/pi/packages/ta-games/package.json +1 -1
- package/dist/pi/packages/ta-glance/extension/index.mjs +1 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +1 -0
- package/dist/pi/packages/ta-glance/package.json +1 -1
- package/dist/pi/packages/ta-initiative/lib/inbox.js +47 -29
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-initiative/lib/style.js +27 -14
- package/dist/pi/packages/ta-initiative/package.json +1 -1
- package/dist/pi/packages/ta-initiative/web/index.js +92 -50
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-moments/package.json +1 -1
- package/dist/pi/packages/ta-nearby/lib/page.js +1 -1
- package/dist/pi/packages/ta-nearby/package.json +1 -1
- package/dist/pi/packages/ta-nearby/web/index.js +3 -4
- package/dist/pi/packages/ta-notify/lib/settings.js +9 -2
- package/dist/pi/packages/ta-notify/package.json +1 -1
- package/dist/pi/packages/ta-notify/web/index.js +18 -6
- package/dist/pi/packages/ta-plot/README.en.md +12 -0
- package/dist/pi/packages/ta-plot/README.md +12 -0
- package/dist/pi/packages/ta-plot/extension/index.mjs +121 -0
- package/dist/pi/packages/ta-plot/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-plot/lib/extension.js +24 -0
- package/dist/pi/packages/ta-plot/lib/i18n.d.ts +14 -0
- package/dist/pi/packages/ta-plot/lib/i18n.js +30 -0
- package/dist/pi/packages/ta-plot/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-plot/lib/index.js +25 -0
- package/dist/pi/packages/ta-plot/lib/plot-expression.d.ts +16 -0
- package/dist/pi/packages/ta-plot/lib/plot-expression.js +209 -0
- package/dist/pi/packages/ta-plot/lib/plot-painter.d.ts +28 -0
- package/dist/pi/packages/ta-plot/lib/plot-painter.js +208 -0
- package/dist/pi/packages/ta-plot/lib/plot-prompt.d.ts +7 -0
- package/dist/pi/packages/ta-plot/lib/plot-prompt.js +16 -0
- package/dist/pi/packages/ta-plot/lib/plot-protocol.d.ts +7 -0
- package/dist/pi/packages/ta-plot/lib/plot-protocol.js +10 -0
- package/dist/pi/packages/ta-plot/lib/plot-scene.d.ts +65 -0
- package/dist/pi/packages/ta-plot/lib/plot-scene.js +427 -0
- package/dist/pi/packages/ta-plot/lib/plot-spec.d.ts +86 -0
- package/dist/pi/packages/ta-plot/lib/plot-spec.js +165 -0
- package/dist/pi/packages/ta-plot/lib/plot-view.d.ts +4 -0
- package/dist/pi/packages/ta-plot/lib/plot-view.js +205 -0
- package/dist/pi/packages/ta-plot/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-plot/lib/react.js +8 -0
- package/dist/pi/packages/ta-plot/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-plot/lib/style.js +47 -0
- package/dist/pi/packages/ta-plot/package.json +57 -0
- package/dist/pi/packages/ta-plot/web/index.js +1320 -0
- package/dist/pi/packages/ta-recall/package.json +1 -1
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +8 -1
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +1 -0
- package/dist/pi/packages/ta-rooms/package.json +1 -1
- package/dist/pi/packages/ta-rooms/web/index.js +17 -5
- package/dist/pi/packages/ta-share/lib/share-dialog.js +3 -1
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +1 -0
- package/dist/pi/packages/ta-share/package.json +1 -1
- package/dist/pi/packages/ta-share/web/index.js +6 -2
- package/dist/pi/packages/ta-sync/lib/panel.js +4 -1
- package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-sync/lib/style.js +1 -0
- package/dist/pi/packages/ta-sync/package.json +1 -1
- package/dist/pi/packages/ta-sync/web/index.js +9 -3
- package/dist/pi/packages/ta-sync-cloud/package.json +1 -1
- package/dist/pi/packages/ta-team/lib/dialogs.js +6 -3
- package/dist/pi/packages/ta-team/package.json +1 -1
- package/dist/pi/packages/ta-team/web/index.js +11 -6
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-sclOP11q.js → abnfDiagram-S7VZAUFO-CD8CaArq.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-Bitg4Dpy.js → architecture-WOLXFQ4H-f2a9bodL.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-Hc0W5khF.js → architectureDiagram-YGSQEFNW-BCWH9CwO.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-D2ZWatLV.js → blockDiagram-APKKGZFW-fUamQMeJ.js} +1 -1
- package/dist/public/assets/{browser-D-etIMuL.js → browser-CrMa174j.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CWEcyfwV.js → c4Diagram-KJ2TOQU5-CkLtnwp1.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CWbrJHxK.js → chunk-6MUBBAK2-cwcGPuAH.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-DJQdD4iX.js → chunk-AXFCVDMN-DNkmkYfC.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-CYiiJcBj.js → chunk-BG4553SI-C8qbbr2Z.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-NrNC1UeX.js → chunk-DQASFODM-C-PJ2CrJ.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-BIHXOwS2.js → chunk-HFQBQIA3-BYcgxNEL.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-CcU_AFwQ.js → chunk-KQLB2F66-BTDNzrRl.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-DGfNbbcL.js → chunk-KS47KZWR-1sGg1pKP.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-B4PSS_Pp.js → chunk-LEVMRMFU-7lAsFwHT.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-1555_mm4.js → chunk-M57EVK23-C8K-ltig.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-zbNEbYJ8.js → chunk-OY52VR5R-CBe1QL_V.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-C-nNDGuN.js → chunk-QB3YPZ4I-COhYyyE_.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-DcXXuhbl.js → chunk-R3KSYZAL-CREAgaSS.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-Bb77QkUj.js → chunk-STOXU5M4-CTl0P8_C.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-D8IJkNq5.js → chunk-TU62E6Q5-B_GG7baF.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BzejexgB.js → chunk-X4PVCEUW-CDrSpVOj.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-D2GPHyll.js → chunk-XXDRQBXY-sKeiDEnC.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-CUEzxxI8.js → classDiagram-v2-L25IHNXF-Cqo1O5FQ.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-CJdgJyUw.js → cose-bilkent-JH36ORCC-CTSKeRBe.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-CP12ndt7.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-D0F_9jN8.js → cynefinDiagram-L36ESFBY-67xEPyP9.js} +1 -1
- package/dist/public/assets/{d3-selection-BoARy1rP.js → d3-selection-BUiX-3qh.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-CzI5gZOv.js → dagre-SPEB5RXH-DDw-u3Kg.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-BCtNcE7M.js → diagram-3B7GL73J-BBFInaCs.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-DV9U4KeH.js → diagram-DNEMPZML-ZdnFKM7-.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-DHU45Sd4.js → diagram-L3MUGCDN-CPb04hOv.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-Ba5oVP56.js → diagram-LA4NIPWU-P9wHFGDS.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-B1Nk6qet.js → diagram-MHCOC4E2-Ce_Cr-t6.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-DFwA3q09.js → diagram-XPFHEONP-CfS34OHW.js} +1 -1
- package/dist/public/assets/{dist-Col1xVDT.js → dist-6pZqZEaM.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-BuBgxBJ2.js → ebnfDiagram-UZSYDL2S-BkHabCn2.js} +1 -1
- package/dist/public/assets/{editor.api-BLlyFz5x.js → editor.api-CO4Q0NKb.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-BPEI--zX.js → elk-XV6XMXQE-JpreOVeR.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-Cci0kYUw.js → erDiagram-EYBAPDEH-DDFJwzHx.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-B0eT5X1_.js → eventmodeling-K75KTNOO-DsnkF6Zc.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Djxeacjw.js +1 -0
- package/dist/public/assets/{freemarker2-CAZGFA3W.js → freemarker2-Cm4NK652.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-DEm85e1I.js → ganttDiagram-23REXITY-C7eedoYb.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-qlWN7ijl.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-DJAZD2LR.js → gitGraphDiagram-STJD7YCW-Cuh3ih-z.js} +1 -1
- package/dist/public/assets/{handlebars-Agkl4nGr.js → handlebars-BnE51DUi.js} +1 -1
- package/dist/public/assets/{html-Cu-CsqZI.js → html-7koekDfa.js} +1 -1
- package/dist/public/assets/{index-TeLHaE4u.js → index-CQG1XddL.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-jN69V28z.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-4zHsBnIy.js → infoDiagram-KBXO4MBG-BY3iq7I8.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Bg8OYLGr.js → ishikawaDiagram-M35NCXHK-COjlz24y.js} +1 -1
- package/dist/public/assets/{javascript-BdMDRX8l.js → javascript-BUZgUhdn.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-B2xtzmpE.js → journeyDiagram-OPLOXDXO-DReJE04Q.js} +1 -1
- package/dist/public/assets/{jsonMode-Dg92qQvX.js → jsonMode-qPeVDBDp.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-DQ4N7t_w.js → kanban-definition-BZKZHSQY-BB0_ePvg.js} +1 -1
- package/dist/public/assets/{liquid-BydEnYkh.js → liquid-CNKL9dLX.js} +1 -1
- package/dist/public/assets/{mdx-XZXeM7ll.js → mdx-D1_UzrBc.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-H24--uw9.js → mermaid-parser.core-DiE3z_tV.js} +3 -3
- package/dist/public/assets/{mermaid.core-BmCrSjUU.js → mermaid.core-CBCRrLdl.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-CGQXKItp.js → mindmap-definition-I2QAS2VK-D-Y5fKl1.js} +1 -1
- package/dist/public/assets/module-BEbKICB1.js +2475 -0
- package/dist/public/assets/module-Egyx6Otv.js +1 -0
- package/dist/public/assets/{monaco-DP8M_Ttp.js → monaco--czRbHhk.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-Cl8QuXQJ.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-CXKRGFUs.js → pegDiagram-FD4XPPHP-1jx5jc73.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-kVGJsGZe.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-9XEDP1wR.js → pieDiagram-J4AKIIQI-DGv_WCCu.js} +1 -1
- package/dist/public/assets/{python-C-0PA82u.js → python-DNZu5LjV.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-C-uxTp-5.js → quadrantDiagram-XTYBLID2-BgY0lf8V.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-Dw71L-n8.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-DkaUvI4_.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CTft_ST0.js → railroad-abnf-LNEFI6M7-tZ7rJxwM.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-DfRJhL7G.js → railroad-ebnf-DWYD2UWJ-JO6n_1TK.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-DFePx4YD.js → railroad-peg-JR7BVNR7-Bf0PG2YJ.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-BmK1KUsT.js → railroadDiagram-MRQ6NCDL-BMjog84X.js} +1 -1
- package/dist/public/assets/{razor-DEKNSiT7.js → razor-DU-x8qSP.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-Ds27pS9Y.js → requirementDiagram-Y7LWUY3S-CktbbWjr.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-e2OTzBma.js → sankeyDiagram-WGJFYUXA-CQonOre7.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-BcoIpxF6.js → sequenceDiagram-5NDRBG5M-CAe8-JvA.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CNr67mC9.js → stateDiagram-v2-FJ4FJNEA-BrkqOuRm.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-DKPgHCev.js → swimlanes-UMQ2AFYF-sLpgHBKo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-amBdr5Wc.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-BcCmuE6C.js → timeline-definition-SEUHKTQE-CHE0x-WN.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-DKLyFqZk.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CRG6ogj8.js +1 -0
- package/dist/public/assets/{typescript-B1Uk3m6A.js → typescript-BrNT2oWW.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BpCD8dP7.js → usecaseDiagram-AFA6YXN4-DwkFRI5R.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-CQjX5_-8.js → vennDiagram-NNMJR3RB-BquQVmJq.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-D2jQfflX.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-D7gYo9fV.js → wardleyDiagram-S7YFUSEH-sNYFUfMe.js} +1 -1
- package/dist/public/assets/{xml-DBh_LekU.js → xml-BY65QKv7.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-B_1aOZKU.js → xychartDiagram-GGNKY7IX-CnWEYuid.js} +1 -1
- package/dist/public/assets/{yaml-BE55tHva.js → yaml-BMovUwzO.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +1959 -466
- package/package.json +39 -37
- package/dist/public/assets/cynefin-EF2NZ3EQ-DBnkPRHn.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-CmMdmAxj.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-DKo3OVhR.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-tKl26QqM.js +0 -1
- package/dist/public/assets/module-1mERtQ0Z.js +0 -1
- package/dist/public/assets/module-BxIQdJqY.js +0 -2449
- package/dist/public/assets/packet-JDAUHWVQ-CnBx3hR7.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-hogxgeR2.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-CdWiN8Cw.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-DnYOBI5V.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-U0uzjboz.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-4ppY0Rs5.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-CAvLAs7q.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-D_F3qmRJ.js +0 -1
|
@@ -711,16 +711,17 @@ function useBusy(ui) {
|
|
|
711
711
|
function message(error) {
|
|
712
712
|
return error instanceof Error ? error.message : String(error);
|
|
713
713
|
}
|
|
714
|
-
function clock(at) {
|
|
714
|
+
function clock(at, now = Date.now()) {
|
|
715
715
|
const date = new Date(at);
|
|
716
716
|
const pad = (value) => String(value).padStart(2, "0");
|
|
717
|
-
|
|
717
|
+
const time = `${pad(date.getHours())}:${pad(date.getMinutes())}`;
|
|
718
|
+
return date.toDateString() === new Date(now).toDateString() ? time : `${pad(date.getMonth() + 1)}-${pad(date.getDate())} ${time}`;
|
|
718
719
|
}
|
|
719
720
|
function kindTitle(kinds, id, language) {
|
|
720
721
|
const kind = kinds.find((one) => one.kind.id === id)?.kind;
|
|
721
722
|
return kind ? KindTitleUtil.pick(kind.title, language) : id;
|
|
722
723
|
}
|
|
723
|
-
function Act({ pi, label, primary, onClick }) {
|
|
724
|
+
function Act({ pi, label, primary, icon: Icon, onClick }) {
|
|
724
725
|
const [busy, run] = useBusy(pi.ui);
|
|
725
726
|
const words = InitiativeWords.of(pi.ui.language);
|
|
726
727
|
const act = async () => {
|
|
@@ -737,8 +738,26 @@ function Act({ pi, label, primary, onClick }) {
|
|
|
737
738
|
onClick: () => void run(act)
|
|
738
739
|
}, busy && /* @__PURE__ */ React.createElement("span", {
|
|
739
740
|
className: "ta-spinner ta-busy-mark"
|
|
741
|
+
}), Icon && /* @__PURE__ */ React.createElement(Icon, {
|
|
742
|
+
size: 13
|
|
740
743
|
}), /* @__PURE__ */ React.createElement("span", null, label));
|
|
741
744
|
}
|
|
745
|
+
function Head({ pi, proposal, kinds, at, words }) {
|
|
746
|
+
const Mark = pi.ui.icons.Sparkles;
|
|
747
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
748
|
+
className: "tin-kind"
|
|
749
|
+
}, Mark && /* @__PURE__ */ React.createElement("span", {
|
|
750
|
+
className: "tin-mark"
|
|
751
|
+
}, /* @__PURE__ */ React.createElement(Mark, {
|
|
752
|
+
size: 12
|
|
753
|
+
})), /* @__PURE__ */ React.createElement("span", {
|
|
754
|
+
className: "tin-kind-title"
|
|
755
|
+
}, kindTitle(kinds, proposal.kind, pi.ui.language)), proposal.state === "digest" && /* @__PURE__ */ React.createElement("span", {
|
|
756
|
+
className: "tin-tag"
|
|
757
|
+
}, words.inBrief), /* @__PURE__ */ React.createElement("span", {
|
|
758
|
+
className: "tin-time"
|
|
759
|
+
}, clock(at)));
|
|
760
|
+
}
|
|
742
761
|
function Evidence({ pi, proposal, words }) {
|
|
743
762
|
const files = proposal.evidence ?? [];
|
|
744
763
|
if (files.length === 0) {
|
|
@@ -767,33 +786,25 @@ function Waiting({
|
|
|
767
786
|
};
|
|
768
787
|
const reversible = kinds.find((one) => one.kind.id === proposal.kind)?.kind.reversible ?? false;
|
|
769
788
|
return /* @__PURE__ */ React.createElement("li", {
|
|
770
|
-
className: "tin-card"
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
789
|
+
className: "tin-card",
|
|
790
|
+
"data-tone": "wait"
|
|
791
|
+
}, /* @__PURE__ */ React.createElement(Head, {
|
|
792
|
+
pi,
|
|
793
|
+
proposal,
|
|
794
|
+
kinds,
|
|
795
|
+
at: proposal.at,
|
|
796
|
+
words
|
|
797
|
+
}), /* @__PURE__ */ React.createElement("div", {
|
|
778
798
|
className: "tin-title"
|
|
779
799
|
}, proposal.title), proposal.why && /* @__PURE__ */ React.createElement("div", {
|
|
780
800
|
className: "tin-why"
|
|
781
|
-
}, proposal.why), /* @__PURE__ */ React.createElement(Evidence, {
|
|
801
|
+
}, proposal.why), away && /* @__PURE__ */ React.createElement(Evidence, {
|
|
782
802
|
pi,
|
|
783
803
|
proposal,
|
|
784
804
|
words
|
|
785
805
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
786
|
-
className: "tin-
|
|
787
|
-
}, /* @__PURE__ */ React.createElement(
|
|
788
|
-
pi,
|
|
789
|
-
label: words.accept,
|
|
790
|
-
primary: true,
|
|
791
|
-
onClick: decide("accept")
|
|
792
|
-
}), /* @__PURE__ */ React.createElement(Act, {
|
|
793
|
-
pi,
|
|
794
|
-
label: words.decline,
|
|
795
|
-
onClick: decide("decline")
|
|
796
|
-
})), /* @__PURE__ */ React.createElement("div", {
|
|
806
|
+
className: "tin-foot"
|
|
807
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
797
808
|
className: "tin-more"
|
|
798
809
|
}, reversible && /* @__PURE__ */ React.createElement("button", {
|
|
799
810
|
type: "button",
|
|
@@ -807,7 +818,18 @@ function Waiting({
|
|
|
807
818
|
onClick: () => void decide("never")().catch(() => {
|
|
808
819
|
return;
|
|
809
820
|
})
|
|
810
|
-
}, words.neverAgain))
|
|
821
|
+
}, words.neverAgain)), /* @__PURE__ */ React.createElement("div", {
|
|
822
|
+
className: "tin-actions"
|
|
823
|
+
}, /* @__PURE__ */ React.createElement(Act, {
|
|
824
|
+
pi,
|
|
825
|
+
label: words.decline,
|
|
826
|
+
onClick: decide("decline")
|
|
827
|
+
}), /* @__PURE__ */ React.createElement(Act, {
|
|
828
|
+
pi,
|
|
829
|
+
label: words.accept,
|
|
830
|
+
primary: true,
|
|
831
|
+
onClick: decide("accept")
|
|
832
|
+
}))));
|
|
811
833
|
}
|
|
812
834
|
function Done({
|
|
813
835
|
pi,
|
|
@@ -817,27 +839,33 @@ function Done({
|
|
|
817
839
|
now
|
|
818
840
|
}) {
|
|
819
841
|
const words = InitiativeWords.of(pi.ui.language);
|
|
820
|
-
const
|
|
842
|
+
const tone = proposal.state === "undone" ? "undone" : proposal.state === "failed" ? "failed" : "done";
|
|
843
|
+
const state = tone === "undone" ? words.undoneState : tone === "failed" ? InitiativeWords.format(words.failedState, { error: proposal.error ?? "" }) : words.inboxDone;
|
|
821
844
|
return /* @__PURE__ */ React.createElement("li", {
|
|
822
845
|
className: "tin-card tin-done",
|
|
823
|
-
"data-
|
|
824
|
-
}, /* @__PURE__ */ React.createElement(
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
846
|
+
"data-tone": tone
|
|
847
|
+
}, /* @__PURE__ */ React.createElement(Head, {
|
|
848
|
+
pi,
|
|
849
|
+
proposal,
|
|
850
|
+
kinds,
|
|
851
|
+
at: proposal.decidedAt ?? proposal.at,
|
|
852
|
+
words
|
|
853
|
+
}), /* @__PURE__ */ React.createElement("div", {
|
|
829
854
|
className: "tin-title"
|
|
830
855
|
}, proposal.title), proposal.why && /* @__PURE__ */ React.createElement("div", {
|
|
831
856
|
className: "tin-why"
|
|
832
|
-
}, proposal.why),
|
|
857
|
+
}, proposal.why), /* @__PURE__ */ React.createElement("div", {
|
|
858
|
+
className: "tin-foot"
|
|
859
|
+
}, /* @__PURE__ */ React.createElement("span", {
|
|
833
860
|
className: "tin-state"
|
|
834
|
-
}, state), InboxUtil.canUndo(proposal, now) && /* @__PURE__ */ React.createElement("div", {
|
|
861
|
+
}, /* @__PURE__ */ React.createElement("i", null), /* @__PURE__ */ React.createElement("span", null, state)), InboxUtil.canUndo(proposal, now) && /* @__PURE__ */ React.createElement("div", {
|
|
835
862
|
className: "tin-actions"
|
|
836
863
|
}, /* @__PURE__ */ React.createElement(Act, {
|
|
837
864
|
pi,
|
|
838
865
|
label: words.undo,
|
|
866
|
+
icon: pi.ui.icons.Undo2,
|
|
839
867
|
onClick: () => store.undo(proposal.id)
|
|
840
|
-
})));
|
|
868
|
+
}))));
|
|
841
869
|
}
|
|
842
870
|
function Inbox({ pi, store }) {
|
|
843
871
|
const state = useInitiative(React, store);
|
|
@@ -920,8 +948,9 @@ function ProposalCards({ pi, store, ids }) {
|
|
|
920
948
|
now
|
|
921
949
|
}) : /* @__PURE__ */ React.createElement("li", {
|
|
922
950
|
key: proposal.id,
|
|
923
|
-
className: "tin-decided"
|
|
924
|
-
|
|
951
|
+
className: "tin-decided",
|
|
952
|
+
"data-state": proposal.state
|
|
953
|
+
}, /* @__PURE__ */ React.createElement("i", null), /* @__PURE__ */ React.createElement("span", null, proposal.state === "done" ? words.acceptedLine : proposal.state === "declined" ? words.declinedLine : words.expiredLine, " · ", proposal.title))));
|
|
925
954
|
}
|
|
926
955
|
|
|
927
956
|
// web-src/page-initiative.ts
|
|
@@ -1287,27 +1316,40 @@ var STYLE = `
|
|
|
1287
1316
|
.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; box-sizing: border-box; }
|
|
1288
1317
|
.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }
|
|
1289
1318
|
.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1319
|
+
/*
|
|
1320
|
+
* A card: its head (a mark in the tone of where it stands, the kind, the time), what and why, and a foot under a
|
|
1321
|
+
* hairline with what the user may do. Tones: blue waits for the user, green done, red failed, grey undone.
|
|
1322
|
+
*/
|
|
1323
|
+
.tin-card { --tin-tone: var(--ta-blue); padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }
|
|
1324
|
+
.tin-card[data-tone='done'] { --tin-tone: var(--ta-green); }
|
|
1325
|
+
.tin-card[data-tone='failed'] { --tin-tone: var(--ta-red); }
|
|
1326
|
+
.tin-card[data-tone='undone'] { --tin-tone: var(--ta-muted); }
|
|
1327
|
+
.tin-kind { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }
|
|
1328
|
+
.tin-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: calc(20px * var(--ta-font-scale)); height: calc(20px * var(--ta-font-scale)); border-radius: 50%; color: var(--tin-tone); background: color-mix(in srgb, var(--tin-tone) 14%, transparent); }
|
|
1329
|
+
.tin-kind-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1330
|
+
.tin-tag { flex: none; padding: 0 6px; border-radius: 6px; background: var(--ta-hover); line-height: 1.6; }
|
|
1294
1331
|
.tin-time { flex: none; font-variant-numeric: tabular-nums; }
|
|
1295
|
-
.tin-title { margin-top:
|
|
1296
|
-
.tin-why { margin-top:
|
|
1297
|
-
.tin-
|
|
1298
|
-
.tin-
|
|
1299
|
-
.tin-
|
|
1300
|
-
.tin-
|
|
1301
|
-
.tin-actions
|
|
1302
|
-
|
|
1303
|
-
.tin-
|
|
1332
|
+
.tin-title { margin-top: 8px; color: var(--ta-text); font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
|
|
1333
|
+
.tin-why { margin-top: 3px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; overflow-wrap: anywhere; }
|
|
1334
|
+
.tin-card[data-tone='undone'] .tin-title { color: var(--ta-muted); font-weight: 500; }
|
|
1335
|
+
.tin-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ta-border-muted); }
|
|
1336
|
+
.tin-state { flex: 1; min-width: 0; display: inline-flex; align-items: baseline; gap: 7px; color: var(--tin-tone); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
|
|
1337
|
+
.tin-state > i, .tin-decided > i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }
|
|
1338
|
+
.tin-actions { display: flex; gap: 8px; margin-left: auto; }
|
|
1339
|
+
.tin-actions .ta-button { height: calc(28px * var(--ta-font-scale)); min-width: 56px; padding: 0 12px; justify-content: center; gap: 5px; }
|
|
1340
|
+
.tin-actions .ta-button:not(.ta-primary) { color: var(--ta-secondary); }
|
|
1341
|
+
.tin-actions .ta-button:not(.ta-primary):hover:not(:disabled) { color: var(--ta-text); }
|
|
1342
|
+
[data-touch] .tin-actions .ta-button { height: 34px; min-width: 64px; }
|
|
1343
|
+
.tin-more { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
|
|
1304
1344
|
.tin-link { padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; text-align: left; }
|
|
1305
1345
|
.tin-link:hover { color: var(--ta-text); }
|
|
1306
1346
|
.tin-card > .tin-link { margin-top: 6px; display: block; }
|
|
1307
1347
|
.tin-above { margin: 0 0 8px; }
|
|
1308
1348
|
.tin-above .tin-card { padding: 10px 12px; }
|
|
1349
|
+
.tin-above .tin-foot { margin-top: 10px; padding-top: 8px; }
|
|
1309
1350
|
.tin-in-chat { margin: 4px 0; max-width: 620px; }
|
|
1310
|
-
.tin-decided { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; }
|
|
1351
|
+
.tin-decided { display: flex; align-items: baseline; gap: 7px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; }
|
|
1352
|
+
.tin-decided[data-state='done'] > i { color: var(--ta-green); }
|
|
1311
1353
|
.tin-empty { padding: 48px 12px; color: var(--ta-muted); text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }
|
|
1312
1354
|
.tin-quiet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
|
|
1313
1355
|
/* The kinds, in the settings */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-launcher",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.1",
|
|
4
4
|
"description": "A pi package for Ta: what a phone pulls down over its first tab (a button of the rail elsewhere), the pages used lately and those kept in Mine, opened without installing too",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-manual",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.1",
|
|
4
4
|
"description": "A pi package for Ta: the user manual, a page of short illustrated guides to what Ta does, and the ta-manual skill that answers how to use Ta from it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-moments",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.1",
|
|
4
4
|
"description": "A pi package for Ta: Moments, what friends made with Ta that one can take and use. Ta drafts a post of what you made and you post it; your Ta friends see it, like it and take it, their Ta reading the code first",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -247,7 +247,7 @@ function NearbyPage() {
|
|
|
247
247
|
react_1.React.createElement("span", { className: "tnb-quiet" }, t('nobodyHint')))) : (react_1.React.createElement(react_1.React.Fragment, null,
|
|
248
248
|
react_1.React.createElement("ul", { className: "tnb-peers" }, status.peers.map(peer => (react_1.React.createElement(PeerTile, { key: peer.e, peer: peer, chosen: !left.has(peer.e), toggle: () => toggle(peer.e) })))),
|
|
249
249
|
react_1.React.createElement("div", { className: "tnb-make" },
|
|
250
|
-
chosen.length > 0 && (react_1.React.createElement(
|
|
250
|
+
chosen.length > 0 && (react_1.React.createElement(Busy, { primary: true, onClick: () => makeRoom(chosen) }, chosen.length === status.peers.length ? t('makeRoomAll') : t('makeRoom', { n: chosen.length }))),
|
|
251
251
|
react_1.React.createElement("p", { className: "tnb-quiet" }, t('sayIt'))))),
|
|
252
252
|
react_1.React.createElement(SpotRow, { status: status, now: now }),
|
|
253
253
|
react_1.React.createElement(MeetRow, { status: status }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-nearby",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.1",
|
|
4
4
|
"description": "A pi package for Ta: the other Ta around on the same network while you let them see you, known to Ta in your conversations, and rooms of those present made in a tap",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -694,10 +694,9 @@ function NearbyPage() {
|
|
|
694
694
|
toggle: () => toggle(peer.e)
|
|
695
695
|
}))), /* @__PURE__ */ React.createElement("div", {
|
|
696
696
|
className: "tnb-make"
|
|
697
|
-
}, chosen.length > 0 && /* @__PURE__ */ React.createElement(
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
onClick: () => void makeRoom(chosen).catch((error) => pi.ui.notify(message(error), "error"))
|
|
697
|
+
}, chosen.length > 0 && /* @__PURE__ */ React.createElement(Busy, {
|
|
698
|
+
primary: true,
|
|
699
|
+
onClick: () => makeRoom(chosen)
|
|
701
700
|
}, chosen.length === status.peers.length ? t("makeRoomAll") : t("makeRoom", { n: chosen.length })), /* @__PURE__ */ React.createElement("p", {
|
|
702
701
|
className: "tnb-quiet"
|
|
703
702
|
}, t("sayIt")))), /* @__PURE__ */ React.createElement(SpotRow, {
|
|
@@ -51,16 +51,23 @@ function SystemSetting({ pi }) {
|
|
|
51
51
|
}
|
|
52
52
|
return react_1.React.createElement("span", { className: "ta-notify-state" }, state === 'granted' ? words.systemOn : state === 'denied' ? words.systemDenied : words.systemNone);
|
|
53
53
|
}
|
|
54
|
+
/** Unmutes on ta serve: turns until it did, a second click doing nothing meanwhile. */
|
|
55
|
+
function UnmuteButton({ pi, item, label }) {
|
|
56
|
+
const [busy, run] = pi.ui.useBusy();
|
|
57
|
+
const unmute = () => void run(() => pi.callHost('mute', item.target, false).catch(error => pi.ui.notify(error instanceof Error ? error.message : String(error), 'error')));
|
|
58
|
+
return (react_1.React.createElement("button", { type: "button", className: `ta-button${busy ? ' ta-busy' : ''}`, "aria-busy": busy || undefined, disabled: busy, onClick: unmute },
|
|
59
|
+
busy && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" }),
|
|
60
|
+
react_1.React.createElement("span", null, label)));
|
|
61
|
+
}
|
|
54
62
|
function MutedSetting({ pi }) {
|
|
55
63
|
const words = i18n_1.NotifyWords.of(pi.ui.language);
|
|
56
64
|
const [muted] = useStored(pi, notify_protocol_1.Keys.MUTED, notify_util_1.NotifyUtil.muted);
|
|
57
65
|
if (muted.length === 0) {
|
|
58
66
|
return react_1.React.createElement("span", { className: "ta-notify-state" }, words.mutedNone);
|
|
59
67
|
}
|
|
60
|
-
const unmute = (item) => void pi.callHost('mute', item.target, false).catch(error => pi.ui.notify(error instanceof Error ? error.message : String(error), 'error'));
|
|
61
68
|
return (react_1.React.createElement("ul", { className: "ta-notify-muted" }, muted.map(item => (react_1.React.createElement("li", { key: item.target },
|
|
62
69
|
react_1.React.createElement("span", { className: "ta-notify-muted-name", title: item.target }, item.title || words.untitled),
|
|
63
|
-
react_1.React.createElement(
|
|
70
|
+
react_1.React.createElement(UnmuteButton, { pi: pi, item: item, label: words.unmute }))))));
|
|
64
71
|
}
|
|
65
72
|
/** Notifications, in the settings: of what the user is told, the notices of the system, and the conversations muted. */
|
|
66
73
|
function notifySettings(pi) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-notify",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.1",
|
|
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"
|
|
@@ -354,6 +354,19 @@ function SystemSetting({ pi }) {
|
|
|
354
354
|
className: "ta-notify-state"
|
|
355
355
|
}, state === "granted" ? words.systemOn : state === "denied" ? words.systemDenied : words.systemNone);
|
|
356
356
|
}
|
|
357
|
+
function UnmuteButton({ pi, item, label }) {
|
|
358
|
+
const [busy, run] = pi.ui.useBusy();
|
|
359
|
+
const unmute = () => void run(() => pi.callHost("mute", item.target, false).catch((error) => pi.ui.notify(error instanceof Error ? error.message : String(error), "error")));
|
|
360
|
+
return /* @__PURE__ */ React.createElement("button", {
|
|
361
|
+
type: "button",
|
|
362
|
+
className: `ta-button${busy ? " ta-busy" : ""}`,
|
|
363
|
+
"aria-busy": busy || undefined,
|
|
364
|
+
disabled: busy,
|
|
365
|
+
onClick: unmute
|
|
366
|
+
}, busy && /* @__PURE__ */ React.createElement("span", {
|
|
367
|
+
className: "ta-spinner ta-busy-mark"
|
|
368
|
+
}), /* @__PURE__ */ React.createElement("span", null, label));
|
|
369
|
+
}
|
|
357
370
|
function MutedSetting({ pi }) {
|
|
358
371
|
const words = NotifyWords.of(pi.ui.language);
|
|
359
372
|
const [muted] = useStored(pi, Keys.MUTED, NotifyUtil.muted);
|
|
@@ -362,7 +375,6 @@ function MutedSetting({ pi }) {
|
|
|
362
375
|
className: "ta-notify-state"
|
|
363
376
|
}, words.mutedNone);
|
|
364
377
|
}
|
|
365
|
-
const unmute = (item) => void pi.callHost("mute", item.target, false).catch((error) => pi.ui.notify(error instanceof Error ? error.message : String(error), "error"));
|
|
366
378
|
return /* @__PURE__ */ React.createElement("ul", {
|
|
367
379
|
className: "ta-notify-muted"
|
|
368
380
|
}, muted.map((item) => /* @__PURE__ */ React.createElement("li", {
|
|
@@ -370,11 +382,11 @@ function MutedSetting({ pi }) {
|
|
|
370
382
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
371
383
|
className: "ta-notify-muted-name",
|
|
372
384
|
title: item.target
|
|
373
|
-
}, item.title || words.untitled), /* @__PURE__ */ React.createElement(
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}
|
|
385
|
+
}, item.title || words.untitled), /* @__PURE__ */ React.createElement(UnmuteButton, {
|
|
386
|
+
pi,
|
|
387
|
+
item,
|
|
388
|
+
label: words.unmute
|
|
389
|
+
}))));
|
|
378
390
|
}
|
|
379
391
|
function notifySettings(pi) {
|
|
380
392
|
const words = () => NotifyWords.of(pi.ui.language);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Cell - Ta Plot
|
|
2
|
+
|
|
3
|
+
A pi package that comes with Ta (on by default; Settings → Extensions of the web client turns it off): Function plot. When a reply talks of functions and curves, Ta draws them as animated plots rather than describing them or drawing them with a chart of points.
|
|
4
|
+
|
|
5
|
+
- **Functions and curves**: under the Ta service, every turn's system prompt gets a `<ta-plot>` section: to show a function or a curve (a parabola, a hyperbola, sin x, a family of curves, a graph to explain a point), Ta writes a `ta-plot` block (JSON), which the web client draws on a canvas: a grid and axes, curves drawn in one after another, parametric curves, dashed guides (asymptotes, axes of symmetry), labeled points, and with `dot` a point running along the curves.
|
|
6
|
+
- **Moving, dragged**: a param that uses `t` (seconds since shown) moves its curves; a param written as a slider (`{"value", "min", "max", "step"?, "label"?}`) gets a slider under the plot, and moving across the plot drags the first one; a curve with `family` draws itself faintly for a set of values of the slider too, the current one bold: a family of curves.
|
|
7
|
+
- **Surfaces and curves in space**: `surfaces` (z = f(x, y), colored by height without a color) or curves and points with `z` are drawn in a box of the axes on the 3D engine of the page (`ui.Game3D`), turning slowly, turned by dragging; params, sliders and `t` work the same.
|
|
8
|
+
- **Computed, never run**: expressions are read by the package's own parser (numbers, `+ - * / % ^`, parentheses, variables, the functions of Math, pi and e), never run as code; a plot that cannot be drawn says why and shows its text.
|
|
9
|
+
- **Light on power**: it animates only while the card is seen, and stops once drawn when nothing moves.
|
|
10
|
+
- **Elsewhere**: external agents (ta-agents) get the section too; replies to WeChat and WeCom bots draw no plot; blocks of language `plot` are drawn as well (the name the user extension had).
|
|
11
|
+
|
|
12
|
+
The format is in `web-src/plot-spec.ts`, the prompt in `web-src/plot-prompt.ts`, expressions in `web-src/plot-expression.ts`.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Cell - Ta Plot
|
|
2
|
+
|
|
3
|
+
Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展 关闭):函数图像。回复里讲到函数和曲线时,Ta 直接把它画成带动画的图像,而不是用文字描述或拿点拼图。
|
|
4
|
+
|
|
5
|
+
- **画函数和曲线**:在 Ta 服务下,每一轮的系统提示里多一段 `<ta-plot>`:要展示函数或曲线(抛物线、双曲线、sin x、一族曲线、解释某个概念的图)时,写一个 `ta-plot` 代码块(JSON),Web 把它画在画布上:网格与坐标轴、逐条画出的曲线、参数方程、虚线(渐近线、对称轴)、标注点,`dot` 让一个小点沿曲线跑。
|
|
6
|
+
- **会动、可拖**:参数用到 `t`(显示后的秒数)时曲线跟着动;参数写成滑块(`{"value", "min", "max", "step"?, "label"?}`)时下方出现滑条,在图上左右拖动也能调第一个滑块;曲线加 `family` 后,会把滑块取的一组值淡淡地都画出来,当前值加粗,即曲线族。
|
|
7
|
+
- **曲面与空间曲线**:写 `surfaces`(z = f(x, y),不给颜色就按高度着色)或带 `z` 的曲线、点时,用页面的 3D 引擎(`ui.Game3D`)画在一个坐标盒里,慢慢自转,拖动旋转;参数、滑块和 `t` 照样可用。
|
|
8
|
+
- **只算不跑**:表达式由包自己的解析器读(数字、`+ - * / % ^`、括号、变量、Math 的函数与 pi、e),从不当作代码执行;画不出来时显示原因和原文。
|
|
9
|
+
- **省电**:动画只在卡片可见时跑,没有会动的东西时画完就停。
|
|
10
|
+
- **别处**:外部 Agent(ta-agents)也会拿到这段写法;发到微信、企业微信机器人的回复不画图;`plot` 语言的代码块也照样画(原先的用户扩展用这个名字)。
|
|
11
|
+
|
|
12
|
+
格式见 `web-src/plot-spec.ts`,提示词见 `web-src/plot-prompt.ts`,表达式见 `web-src/plot-expression.ts`。
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
2
|
+
var TA_HOST_EVENT = "ta:host";
|
|
3
|
+
var TaHostUtil;
|
|
4
|
+
(function(TaHostUtil2) {
|
|
5
|
+
TaHostUtil2.WAIT_MS = 1000;
|
|
6
|
+
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
7
|
+
return new Promise((resolve) => {
|
|
8
|
+
let heard = false;
|
|
9
|
+
let answered = false;
|
|
10
|
+
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
11
|
+
const request = {
|
|
12
|
+
name,
|
|
13
|
+
heard: () => {
|
|
14
|
+
heard = true;
|
|
15
|
+
},
|
|
16
|
+
resolve: (answer) => {
|
|
17
|
+
answered = true;
|
|
18
|
+
clearTimeout(timer);
|
|
19
|
+
resolve(answer);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
events.emit(TA_HOST_EVENT, request);
|
|
23
|
+
if (!heard && !answered) {
|
|
24
|
+
clearTimeout(timer);
|
|
25
|
+
resolve(undefined);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
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;
|
|
51
|
+
})(TaHostUtil || (TaHostUtil = {}));
|
|
52
|
+
var TA_ASK_ENTRY = "ta-ask";
|
|
53
|
+
var TaAskUtil;
|
|
54
|
+
(function(TaAskUtil2) {
|
|
55
|
+
const LENGTH = 120;
|
|
56
|
+
function entry(question) {
|
|
57
|
+
const line = question.replace(/\s+/g, " ").trim();
|
|
58
|
+
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
59
|
+
}
|
|
60
|
+
TaAskUtil2.entry = entry;
|
|
61
|
+
function asking(entries) {
|
|
62
|
+
var _a;
|
|
63
|
+
for (let i = entries.length - 1;i >= 0; i--) {
|
|
64
|
+
const entry2 = entries[i];
|
|
65
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
69
|
+
return read(entry2);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
TaAskUtil2.asking = asking;
|
|
75
|
+
function next(asked, entry2) {
|
|
76
|
+
var _a;
|
|
77
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
81
|
+
}
|
|
82
|
+
TaAskUtil2.next = next;
|
|
83
|
+
function read(found) {
|
|
84
|
+
var _a;
|
|
85
|
+
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
86
|
+
if (typeof question !== "string" || !question.trim()) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
90
|
+
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
91
|
+
}
|
|
92
|
+
})(TaAskUtil || (TaAskUtil = {}));
|
|
93
|
+
|
|
94
|
+
// web-src/plot-protocol.ts
|
|
95
|
+
var NAME = "@celljs/ta-plot";
|
|
96
|
+
var LANGUAGE = "ta-plot";
|
|
97
|
+
|
|
98
|
+
// web-src/plot-prompt.ts
|
|
99
|
+
var PLOT_PROMPT = `To show the user a function or a curve (a parabola, a hyperbola, sin x, a family of curves with a parameter to drag, a surface z = f(x, y), a curve in space, a graph to explain a point), write a fenced block of language ${LANGUAGE} holding JSON rather than describing it or drawing it with a chart of points; Ta draws it, animated:
|
|
100
|
+
{"title"?: string, "x": [min, max], "y": [min, max], "params"?: {"a": "1.5 + 0.5*sin(t)", "b": 1}, "curves": [...], "points"?: [{"x": 0, "y": 0, "label": "vertex"}], "dot"?: true}
|
|
101
|
+
A param may instead be a slider the user drags, {"c": {"value": 1, "min": -2, "max": 3, "step"?: 0.1, "label"?: string}}, also dragged by moving across the plot; give one whenever the user wants to see how a param changes a curve. A curve with "family": "c" (or {"param": "c", "count": 11}) also draws itself faintly for evenly spaced values of the slider c, the current one bold: a family of curves; add its envelope as a dashed curve when there is one.
|
|
102
|
+
A curve is {"y": "a*x^2"} (y of x, over the x range) or {"x": "a*cosh(s)", "y": "b*sinh(s)", "s": [-2, 2]} (parametric, s over its range), with "label"?, "dash"?: true (asymptotes, axes of symmetry, guides) and "color"? (a CSS color).
|
|
103
|
+
In space: "surfaces": [{"z": "sin(x)*cos(y)", "label"?, "color"?}] (z of x and y, over the x and y ranges, colored by height without a color), a curve with "z" too ({"x": "cos(s)", "y": "sin(s)", "z": "s/4", "s": [0, 12]}) and points with "z"; an optional "z": [min, max]. Ta draws it in 3D, turning slowly, the user turns it by dragging; params, sliders and t work the same.
|
|
104
|
+
Expressions: numbers, + - * / ^ %, parentheses, x, y (of a surface), s, t (seconds since shown: a param or curve that uses it moves), the params (a param may use the sliders and the params before it), and sin cos tan asin acos atan atan2 sinh cosh tanh asinh acosh atanh sqrt cbrt abs exp log log2 log10 pow min max floor ceil round sign hypot pi e. Curves draw in when shown; dot puts a point running along the solid curves. Point coordinates may be expressions too. Labels and title in the user's language, short.`;
|
|
105
|
+
|
|
106
|
+
// web-src/extension.ts
|
|
107
|
+
function activate(pi) {
|
|
108
|
+
let served;
|
|
109
|
+
const underServe = () => served ??= TaHostUtil.reach(pi.events, NAME).then((answer) => answer !== undefined);
|
|
110
|
+
pi.on("session_start", () => {
|
|
111
|
+
underServe();
|
|
112
|
+
});
|
|
113
|
+
pi.on("before_agent_start", async (event) => {
|
|
114
|
+
if (await underServe()) {
|
|
115
|
+
event.systemPromptOptions.sections = { ...event.systemPromptOptions.sections, [LANGUAGE]: PLOT_PROMPT };
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
activate as default
|
|
121
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** The little of pi's extension API this uses. */
|
|
2
|
+
interface Pi {
|
|
3
|
+
events: {
|
|
4
|
+
emit(event: string, data: unknown): void;
|
|
5
|
+
};
|
|
6
|
+
on(event: string, handler: (event: never) => unknown): unknown;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The pi extension, in every session: tells the model to show functions and curves as a `ta-plot` block
|
|
10
|
+
* (PLOT_PROMPT), a section of pi's system prompt of its own. Only under ta serve, whose pages draw the plots; under
|
|
11
|
+
* `ta` alone, in a terminal, the prompt stays as pi's.
|
|
12
|
+
*/
|
|
13
|
+
export default function activate(pi: Pi): void;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const ta_extension_host_1 = require("@celljs/ta-protocol/lib/common/ta-extension-host");
|
|
5
|
+
const plot_prompt_1 = require("./plot-prompt");
|
|
6
|
+
const plot_protocol_1 = require("./plot-protocol");
|
|
7
|
+
/**
|
|
8
|
+
* The pi extension, in every session: tells the model to show functions and curves as a `ta-plot` block
|
|
9
|
+
* (PLOT_PROMPT), a section of pi's system prompt of its own. Only under ta serve, whose pages draw the plots; under
|
|
10
|
+
* `ta` alone, in a terminal, the prompt stays as pi's.
|
|
11
|
+
*/
|
|
12
|
+
function activate(pi) {
|
|
13
|
+
let served;
|
|
14
|
+
const underServe = () => (served !== null && served !== void 0 ? served : (served = ta_extension_host_1.TaHostUtil.reach(pi.events, plot_protocol_1.NAME).then(answer => answer !== undefined)));
|
|
15
|
+
pi.on('session_start', () => {
|
|
16
|
+
void underServe();
|
|
17
|
+
});
|
|
18
|
+
pi.on('before_agent_start', async (event) => {
|
|
19
|
+
if (await underServe()) {
|
|
20
|
+
event.systemPromptOptions.sections = { ...event.systemPromptOptions.sections, [plot_protocol_1.LANGUAGE]: plot_prompt_1.PLOT_PROMPT };
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=extension.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
2
|
+
import type { Language } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
3
|
+
declare const EN: {
|
|
4
|
+
drawing: string;
|
|
5
|
+
failed: string;
|
|
6
|
+
};
|
|
7
|
+
type Words = typeof EN;
|
|
8
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
9
|
+
export declare const WORDS: Readonly<Record<TaLanguage, Words>>;
|
|
10
|
+
export declare namespace PlotWords {
|
|
11
|
+
function of(language: Language): Words;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlotWords = exports.WORDS = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
5
|
+
const EN = {
|
|
6
|
+
drawing: 'Drawing the plot…',
|
|
7
|
+
failed: 'This plot cannot be drawn: {reason}',
|
|
8
|
+
};
|
|
9
|
+
const ZH = {
|
|
10
|
+
drawing: '正在画图…',
|
|
11
|
+
failed: '这张图画不出来:{reason}',
|
|
12
|
+
};
|
|
13
|
+
const ZH_TW = {
|
|
14
|
+
drawing: '正在畫圖…',
|
|
15
|
+
failed: '這張圖畫不出來:{reason}',
|
|
16
|
+
};
|
|
17
|
+
const JA = {
|
|
18
|
+
drawing: 'グラフを描画中…',
|
|
19
|
+
failed: 'このグラフは描けません:{reason}',
|
|
20
|
+
};
|
|
21
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
22
|
+
exports.WORDS = { 'zh-CN': ZH, 'zh-TW': ZH_TW, 'en-US': EN, 'ja-JP': JA };
|
|
23
|
+
var PlotWords;
|
|
24
|
+
(function (PlotWords) {
|
|
25
|
+
function of(language) {
|
|
26
|
+
return language_1.TaLanguageUtil.pick(language, exports.WORDS);
|
|
27
|
+
}
|
|
28
|
+
PlotWords.of = of;
|
|
29
|
+
})(PlotWords || (exports.PlotWords = PlotWords = {}));
|
|
30
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/**
|
|
3
|
+
* The page side of Function plot: a `ta-plot` block of a reply drawn as an animated plot. The pi extension
|
|
4
|
+
* (extension.ts) tells the model to write such a block for functions and curves.
|
|
5
|
+
*/
|
|
6
|
+
export default function activate(pi: WebExtensionAPI): () => void;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|