@celljs/ta 4.15.0 → 4.15.2
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 +79 -4
- package/dist/gateway.mjs +1320 -178
- package/dist/pi/CHANGELOG.md +15 -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 +35 -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/host/index.mjs +3 -0
- 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-extensions/web/index.js +2 -0
- 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/extension/index.mjs +2 -0
- package/dist/pi/packages/ta-moments/host/index.mjs +2 -0
- package/dist/pi/packages/ta-moments/package.json +1 -1
- package/dist/pi/packages/ta-moments/web/index.js +2 -0
- 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/pi/packages/ta-workspace/web/index.js +2 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-sclOP11q.js → abnfDiagram-S7VZAUFO-Dd51Bqbx.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-Bitg4Dpy.js → architecture-WOLXFQ4H-BbG3_x7_.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-Hc0W5khF.js → architectureDiagram-YGSQEFNW-DbJO4t8I.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-D2ZWatLV.js → blockDiagram-APKKGZFW-BwtrHF1f.js} +1 -1
- package/dist/public/assets/{browser-D-etIMuL.js → browser-CTbeNBsA.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CWEcyfwV.js → c4Diagram-KJ2TOQU5-CfBe5A0H.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CWbrJHxK.js → chunk-6MUBBAK2-C7R0mhrg.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-DJQdD4iX.js → chunk-AXFCVDMN-VQgQruZT.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-CYiiJcBj.js → chunk-BG4553SI-CkUi_vD5.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-NrNC1UeX.js → chunk-DQASFODM-BAQq7ktk.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-BIHXOwS2.js → chunk-HFQBQIA3-B1oF8lB7.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-CcU_AFwQ.js → chunk-KQLB2F66-DE5amcgT.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-DGfNbbcL.js → chunk-KS47KZWR-ev9S_csp.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-B4PSS_Pp.js → chunk-LEVMRMFU-ziqnRvTG.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-1555_mm4.js → chunk-M57EVK23-DaqPdEKA.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-zbNEbYJ8.js → chunk-OY52VR5R-DFOG8j6z.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-C-nNDGuN.js → chunk-QB3YPZ4I-eg35JLLN.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-DcXXuhbl.js → chunk-R3KSYZAL-J73nie-R.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-Bb77QkUj.js → chunk-STOXU5M4-B8EvDZvB.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-D8IJkNq5.js → chunk-TU62E6Q5-DyCM007V.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BzejexgB.js → chunk-X4PVCEUW-BBGeCNmA.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-D2GPHyll.js → chunk-XXDRQBXY-CAtJ2Wph.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-CUEzxxI8.js → classDiagram-v2-L25IHNXF-DhQM6yHy.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-CJdgJyUw.js → cose-bilkent-JH36ORCC-AqIcHabu.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-yFytgtiy.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-D0F_9jN8.js → cynefinDiagram-L36ESFBY-7SyXzhRd.js} +1 -1
- package/dist/public/assets/{d3-selection-BoARy1rP.js → d3-selection-DsahLieG.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-CzI5gZOv.js → dagre-SPEB5RXH-DalaGtMS.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-BCtNcE7M.js → diagram-3B7GL73J-BcY-qB9G.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-DV9U4KeH.js → diagram-DNEMPZML-NV7fbe0h.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-DHU45Sd4.js → diagram-L3MUGCDN-BPx4GHoj.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-Ba5oVP56.js → diagram-LA4NIPWU-BeUxqmw1.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-B1Nk6qet.js → diagram-MHCOC4E2-Dlg1S5na.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-DFwA3q09.js → diagram-XPFHEONP-DQhRoMkK.js} +1 -1
- package/dist/public/assets/{dist-Col1xVDT.js → dist-CQU8zJh_.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-BuBgxBJ2.js → ebnfDiagram-UZSYDL2S-gVEs3Um2.js} +1 -1
- package/dist/public/assets/{editor.api-BLlyFz5x.js → editor.api-SQ1snuat.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-BPEI--zX.js → elk-XV6XMXQE-CHtlrPwu.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-Cci0kYUw.js → erDiagram-EYBAPDEH-B0xok726.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-B0eT5X1_.js → eventmodeling-K75KTNOO-CFwphA0e.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Cwye_DsX.js +1 -0
- package/dist/public/assets/{freemarker2-CAZGFA3W.js → freemarker2-DJKO-X2B.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-DEm85e1I.js → ganttDiagram-23REXITY-B5wVGN1A.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BYzb--zb.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-DJAZD2LR.js → gitGraphDiagram-STJD7YCW-DEjNU1R_.js} +1 -1
- package/dist/public/assets/{handlebars-Agkl4nGr.js → handlebars-ChVN7JPd.js} +1 -1
- package/dist/public/assets/{html-Cu-CsqZI.js → html-CQ0znKSa.js} +1 -1
- package/dist/public/assets/{index-TeLHaE4u.js → index-CLlacdXR.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-na0qX3JP.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-4zHsBnIy.js → infoDiagram-KBXO4MBG-CJtrS72M.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Bg8OYLGr.js → ishikawaDiagram-M35NCXHK-qYI1QBsK.js} +1 -1
- package/dist/public/assets/{javascript-BdMDRX8l.js → javascript-B-DHbkyI.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-B2xtzmpE.js → journeyDiagram-OPLOXDXO-BOQ2y2ZZ.js} +1 -1
- package/dist/public/assets/{jsonMode-Dg92qQvX.js → jsonMode-XuGC5N_z.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-DQ4N7t_w.js → kanban-definition-BZKZHSQY-BJ64tKdP.js} +1 -1
- package/dist/public/assets/{liquid-BydEnYkh.js → liquid-B0Ujylzc.js} +1 -1
- package/dist/public/assets/{mdx-XZXeM7ll.js → mdx-B19-V510.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-H24--uw9.js → mermaid-parser.core-Scb01iBq.js} +3 -3
- package/dist/public/assets/{mermaid.core-BmCrSjUU.js → mermaid.core-BMuvs7us.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-CGQXKItp.js → mindmap-definition-I2QAS2VK-BYfOS3XN.js} +1 -1
- package/dist/public/assets/module-B3SKdB70.js +1 -0
- package/dist/public/assets/module-DOrYVZ7B.js +2615 -0
- package/dist/public/assets/{monaco-DP8M_Ttp.js → monaco-Bbe2os7m.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-jhCd70vR.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-CXKRGFUs.js → pegDiagram-FD4XPPHP-D-Vlq9Gm.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-DV0NJFsI.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-9XEDP1wR.js → pieDiagram-J4AKIIQI-_-94-aMD.js} +1 -1
- package/dist/public/assets/{python-C-0PA82u.js → python-CWnMIOYq.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-C-uxTp-5.js → quadrantDiagram-XTYBLID2-BhFUbUYz.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-Co-Hlf34.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-DKMPEjDD.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CTft_ST0.js → railroad-abnf-LNEFI6M7-yUa9GGCQ.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-DfRJhL7G.js → railroad-ebnf-DWYD2UWJ-xY4YiL8M.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-DFePx4YD.js → railroad-peg-JR7BVNR7-BYFYCUAQ.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-BmK1KUsT.js → railroadDiagram-MRQ6NCDL-C9FVhj0k.js} +1 -1
- package/dist/public/assets/{razor-DEKNSiT7.js → razor-bDtpN6EJ.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-Ds27pS9Y.js → requirementDiagram-Y7LWUY3S-DLmAg-6C.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-e2OTzBma.js → sankeyDiagram-WGJFYUXA-Bl5IpDk4.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-BcoIpxF6.js → sequenceDiagram-5NDRBG5M-Z-N0OiT_.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CNr67mC9.js → stateDiagram-v2-FJ4FJNEA-ctKQz8Mo.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-DKPgHCev.js → swimlanes-UMQ2AFYF-CWLKnALg.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CU76xJSu.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-BcCmuE6C.js → timeline-definition-SEUHKTQE-DP8Ph_d6.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-JMMnu_MW.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CPlAD3X1.js +1 -0
- package/dist/public/assets/{typescript-B1Uk3m6A.js → typescript-CGpNlLbn.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BpCD8dP7.js → usecaseDiagram-AFA6YXN4-DvFjNj3J.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-CQjX5_-8.js → vennDiagram-NNMJR3RB-3m2F2H-I.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-Dhc8wpLp.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-D7gYo9fV.js → wardleyDiagram-S7YFUSEH-CsMntu16.js} +1 -1
- package/dist/public/assets/{xml-DBh_LekU.js → xml-ByiLoakX.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-B_1aOZKU.js → xychartDiagram-GGNKY7IX-C80rxvM0.js} +1 -1
- package/dist/public/assets/{yaml-BE55tHva.js → yaml-Cz2Af5Rj.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +2589 -757
- 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
|
@@ -27,7 +27,14 @@ export declare class BotStore {
|
|
|
27
27
|
saveBots(bots: Bot[]): Promise<void>;
|
|
28
28
|
saveStatus(status: Record<string, BotState>): Promise<void>;
|
|
29
29
|
secret(id: string): Promise<BotSecret | undefined>;
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* The tokens of these bots of WeChat, which a new code is asked with so that WeChat tells one connected
|
|
32
|
+
* already. Only of bots in the list: the token of a bot the list lost would have WeChat say that its
|
|
33
|
+
* account is connected, and no bot would be made.
|
|
34
|
+
*/
|
|
35
|
+
tokens(bots: readonly Bot[]): Promise<string[]>;
|
|
36
|
+
/** The secrets of bots that are not in this list. */
|
|
37
|
+
orphans(bots: readonly Bot[]): Promise<[string, BotSecret][]>;
|
|
31
38
|
setSecret(id: string, secret: BotSecret | undefined): Promise<void>;
|
|
32
39
|
/** Where the updates of a bot of WeChat stand, and the context token of each of its chats. */
|
|
33
40
|
memory(id: string): WeixinMemory & {
|
|
@@ -28,8 +28,22 @@ class BotStore {
|
|
|
28
28
|
async secret(id) {
|
|
29
29
|
return (await this.allSecrets())[id];
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
/**
|
|
32
|
+
* The tokens of these bots of WeChat, which a new code is asked with so that WeChat tells one connected
|
|
33
|
+
* already. Only of bots in the list: the token of a bot the list lost would have WeChat say that its
|
|
34
|
+
* account is connected, and no bot would be made.
|
|
35
|
+
*/
|
|
36
|
+
async tokens(bots) {
|
|
37
|
+
const secrets = await this.allSecrets();
|
|
38
|
+
return bots.flatMap(bot => {
|
|
39
|
+
const secret = secrets[bot.id];
|
|
40
|
+
return (secret === null || secret === void 0 ? void 0 : secret.kind) === 'weixin' ? [secret.token] : [];
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/** The secrets of bots that are not in this list. */
|
|
44
|
+
async orphans(bots) {
|
|
45
|
+
const known = new Set(bots.map(bot => bot.id));
|
|
46
|
+
return Object.entries(await this.allSecrets()).filter(([id]) => !known.has(id));
|
|
33
47
|
}
|
|
34
48
|
async setSecret(id, secret) {
|
|
35
49
|
const secrets = { ...(await this.allSecrets()) };
|
|
@@ -182,8 +182,10 @@ class WeixinChannel {
|
|
|
182
182
|
texts.push(item.text_item.text);
|
|
183
183
|
}
|
|
184
184
|
else if (item.type === weixin_api_1.WeixinItemType.VOICE && ((_b = item.voice_item) === null || _b === void 0 ? void 0 : _b.text)) {
|
|
185
|
-
// WeChat writes what was said
|
|
185
|
+
// WeChat writes what was said: the model reads that, as of WeCom; the recording (SILK) it could not hear
|
|
186
|
+
// would only make it say it cannot.
|
|
186
187
|
texts.push(item.voice_item.text);
|
|
188
|
+
continue;
|
|
187
189
|
}
|
|
188
190
|
const file = await this.media(item).catch(error => {
|
|
189
191
|
texts.push(`[${WeixinChannel.label(item.type)}: ${(0, channel_protocol_1.errorText)(error)}]`);
|
|
@@ -238,6 +238,7 @@ var TaErrorCode = {
|
|
|
238
238
|
CANCELLED: "CELL_TA_CANCELLED",
|
|
239
239
|
NOT_SIGNED_IN: "CELL_TA_NOT_SIGNED_IN",
|
|
240
240
|
ENVIRONMENT_FAILED: "CELL_TA_ENVIRONMENT_FAILED",
|
|
241
|
+
RATE_LIMITED: "CELL_TA_RATE_LIMITED",
|
|
241
242
|
FORBIDDEN: "CELL_TA_FORBIDDEN",
|
|
242
243
|
LIMIT: "CELL_TA_LIMIT",
|
|
243
244
|
CONNECTION_LOST: "CELL_TA_CONNECTION_LOST"
|
|
@@ -684,6 +685,8 @@ var TaActionUtil;
|
|
|
684
685
|
}
|
|
685
686
|
TaActionUtil2.inside = inside;
|
|
686
687
|
})(TaActionUtil || (TaActionUtil = {}));
|
|
688
|
+
// ../ta-protocol/esm/common/usage-protocol.js
|
|
689
|
+
var TaUsageServer = Symbol("TaUsageServer");
|
|
687
690
|
// ../ta-protocol/esm/common/workspace-protocol.js
|
|
688
691
|
var TaWorkspaceServer = Symbol("TaWorkspaceServer");
|
|
689
692
|
var TaTerminalServer = Symbol("TaTerminalServer");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-channels",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.2",
|
|
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"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-computer-use",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.2",
|
|
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"
|
|
@@ -128,11 +128,13 @@ function Detail({ client, task, now, onEdit }) {
|
|
|
128
128
|
const Sparkles = (0, page_1.icon)('Sparkles');
|
|
129
129
|
const Ask = (0, page_1.icon)('MessageCircle');
|
|
130
130
|
const running = task.lastStatus === 'running';
|
|
131
|
+
const [starting, start] = (0, react_1.useBusy)(page_1.pi.ui);
|
|
131
132
|
return (react_1.React.createElement("div", { className: "tcr-detail" },
|
|
132
133
|
react_1.React.createElement("div", { className: "tcr-toolbar" },
|
|
133
|
-
react_1.React.createElement("button", { type: "button", className:
|
|
134
|
+
react_1.React.createElement("button", { type: "button", className: starting ? 'tcr-button ta-busy' : 'tcr-button', "aria-busy": starting || undefined, disabled: running || starting, onClick: () => void start(() => guard(() => client.runNow(task.id))) },
|
|
134
135
|
react_1.React.createElement(Play, { size: 14 }),
|
|
135
|
-
(0, page_1.t)('runNow')
|
|
136
|
+
(0, page_1.t)('runNow'),
|
|
137
|
+
starting && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" })),
|
|
136
138
|
react_1.React.createElement("button", { type: "button", className: "tcr-button", onClick: () => onEdit(task) },
|
|
137
139
|
react_1.React.createElement(Pencil, { size: 14 }),
|
|
138
140
|
(0, page_1.t)('edit')),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-cron",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.2",
|
|
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"
|
|
@@ -2691,18 +2691,22 @@ function Detail({ client, task, now, onEdit }) {
|
|
|
2691
2691
|
const Sparkles = icon("Sparkles");
|
|
2692
2692
|
const Ask = icon("MessageCircle");
|
|
2693
2693
|
const running = task.lastStatus === "running";
|
|
2694
|
+
const [starting, start] = useBusy(pi.ui);
|
|
2694
2695
|
return /* @__PURE__ */ React.createElement("div", {
|
|
2695
2696
|
className: "tcr-detail"
|
|
2696
2697
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
2697
2698
|
className: "tcr-toolbar"
|
|
2698
2699
|
}, /* @__PURE__ */ React.createElement("button", {
|
|
2699
2700
|
type: "button",
|
|
2700
|
-
className: "tcr-button",
|
|
2701
|
-
|
|
2702
|
-
|
|
2701
|
+
className: starting ? "tcr-button ta-busy" : "tcr-button",
|
|
2702
|
+
"aria-busy": starting || undefined,
|
|
2703
|
+
disabled: running || starting,
|
|
2704
|
+
onClick: () => void start(() => guard(() => client.runNow(task.id)))
|
|
2703
2705
|
}, /* @__PURE__ */ React.createElement(Play, {
|
|
2704
2706
|
size: 14
|
|
2705
|
-
}), t("runNow")
|
|
2707
|
+
}), t("runNow"), starting && /* @__PURE__ */ React.createElement("span", {
|
|
2708
|
+
className: "ta-spinner ta-busy-mark"
|
|
2709
|
+
})), /* @__PURE__ */ React.createElement("button", {
|
|
2706
2710
|
type: "button",
|
|
2707
2711
|
className: "tcr-button",
|
|
2708
2712
|
onClick: () => onEdit(task)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-extensions",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.2",
|
|
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"
|
|
@@ -1492,6 +1492,8 @@ var TaActionUtil;
|
|
|
1492
1492
|
}
|
|
1493
1493
|
TaActionUtil2.inside = inside;
|
|
1494
1494
|
})(TaActionUtil || (TaActionUtil = {}));
|
|
1495
|
+
// ../ta-protocol/esm/common/usage-protocol.js
|
|
1496
|
+
var TaUsageServer = Symbol("TaUsageServer");
|
|
1495
1497
|
// ../ta-protocol/esm/common/workspace-protocol.js
|
|
1496
1498
|
var TaWorkspaceServer = Symbol("TaWorkspaceServer");
|
|
1497
1499
|
var TaTerminalServer = Symbol("TaTerminalServer");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-games",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.2",
|
|
4
4
|
"description": "A pi package for Ta: games and game-like extensions on Phaser and Three.js, the game engines of Ta's web page, with the ta-game skill and the Games page",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -487,6 +487,7 @@ How to reply:
|
|
|
487
487
|
- A short question or small talk: one to three sentences, no card.
|
|
488
488
|
- When the reply reports work done, results, a comparison, choices to make, or an analysis with several facts or relations: after the first line put one card, a fenced block of language ${LANGUAGE} holding JSON, instead of paragraphs, headings and long lists. Ta draws it as a picture. After the card at most two short lines, only for what it cannot hold; never repeat what it shows.
|
|
489
489
|
- Code the user must read or copy stays in ordinary code blocks.
|
|
490
|
+
- Several pictures (screenshots, before and after, light and dark): one after another, each \`\` with nothing else between them. Ta shows them together as a grid, the words under each.
|
|
490
491
|
|
|
491
492
|
The card: {"status": "done" | "partial" | "failed" | "blocked" | "info", "title"?: string, "blocks": [...]}
|
|
492
493
|
status: done = finished, partial = done in part, failed, blocked = waiting for the user, info = an answer, no work. Leave out title: the first line already says it.
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* `ta-glance` block) rather than paragraphs. In English, as the rest of the system prompt; the model answers in the
|
|
4
4
|
* user's language. Kept the same from turn to turn, so that the cache of the prompt holds.
|
|
5
5
|
*/
|
|
6
|
-
export declare const GLANCE_PROMPT = "The user reads your replies in Ta, often on a phone, and wants to take in the result at a glance, not read long text.\n\nHow to reply:\n- Lead with the answer. The first line is the conclusion in one sentence, what matters in **bold**. Nothing before it: no \"Sure\", no restating the request.\n- Then only what the user needs to act or decide. Leave out the process (what you read, ran, tried), what the user already knows and repeating yourself. Prefer numbers and names to adjectives.\n- A short question or small talk: one to three sentences, no card.\n- When the reply reports work done, results, a comparison, choices to make, or an analysis with several facts or relations: after the first line put one card, a fenced block of language ta-glance holding JSON, instead of paragraphs, headings and long lists. Ta draws it as a picture. After the card at most two short lines, only for what it cannot hold; never repeat what it shows.\n- Code the user must read or copy stays in ordinary code blocks.\n\nThe card: {\"status\": \"done\" | \"partial\" | \"failed\" | \"blocked\" | \"info\", \"title\"?: string, \"blocks\": [...]}\nstatus: done = finished, partial = done in part, failed, blocked = waiting for the user, info = an answer, no work. Leave out title: the first line already says it.\nBlocks, 1 to 4 of them, the most important first, each with only the fields shown. Every text a few words, in the user's language; inline Markdown works (**bold**, `path/to/file` opens the file).\n- {\"type\":\"stats\",\"items\":[{\"label\":\"Tests\",\"value\":\"128/128\",\"tone\":\"good\"},{\"label\":\"Startup\",\"value\":\"210 ms\",\"delta\":\"-34%\",\"tone\":\"good\"}]}: key numbers, at most 6; tone good | bad | warn.\n- {\"type\":\"changes\",\"items\":[{\"path\":\"src/a.ts\",\"kind\":\"edit\",\"add\":12,\"del\":3,\"note\":\"why, in a few words\"}]}: files changed, a path each (points go in notes); kind add | edit | delete.\n- {\"type\":\"steps\",\"items\":[{\"text\":\"...\",\"status\":\"done\"}]}: progress or a plan; status done | doing | todo | failed | skipped.\n- {\"type\":\"compare\",\"unit\":\"ms\",\"better\":\"lower\",\"items\":[{\"label\":\"Startup\",\"before\":320,\"after\":210}]}: before and after, numbers only (words go in a table).\n- {\"type\":\"bars\",\"unit\":\"MB\",\"items\":[{\"label\":\"ta\",\"value\":66},{\"label\":\"pi\",\"value\":129}]}: amounts side by side.\n- {\"type\":\"flow\",\"items\":[\"Request\",\"Gateway\",\"Session\",\"Model\"]}: a sequence or a path.\n- {\"type\":\"diagram\",\"mermaid\":\"graph LR; A-->B\"}: relations a flow cannot show, under 12 nodes.\n- {\"type\":\"table\",\"columns\":[\"\",\"\"],\"rows\":[[\"\",\"\"]]}: a few rows that compare things on several points.\n- {\"type\":\"options\",\"question\":\"Which one?\",\"items\":[{\"label\":\"A\",\"detail\":\"one line\",\"pros\":[\"...\"],\"cons\":[\"...\"],\"recommended\":true}]}: when the user must choose; each is a button that answers with its label.\n- {\"type\":\"notes\",\"items\":[{\"text\":\"...\",\"tone\":\"risk\"}]}: risks, caveats, what the user must do; tone risk | info | todo.\n- {\"type\":\"next\",\"items\":[\"Run the e2e tests\"]}: at most 3 things the user may well ask next, each a button that sends it.\n- {\"type\":\"details\",\"title\":\"How\",\"markdown\":\"...\"}: what few will read, folded.";
|
|
6
|
+
export declare const GLANCE_PROMPT = "The user reads your replies in Ta, often on a phone, and wants to take in the result at a glance, not read long text.\n\nHow to reply:\n- Lead with the answer. The first line is the conclusion in one sentence, what matters in **bold**. Nothing before it: no \"Sure\", no restating the request.\n- Then only what the user needs to act or decide. Leave out the process (what you read, ran, tried), what the user already knows and repeating yourself. Prefer numbers and names to adjectives.\n- A short question or small talk: one to three sentences, no card.\n- When the reply reports work done, results, a comparison, choices to make, or an analysis with several facts or relations: after the first line put one card, a fenced block of language ta-glance holding JSON, instead of paragraphs, headings and long lists. Ta draws it as a picture. After the card at most two short lines, only for what it cannot hold; never repeat what it shows.\n- Code the user must read or copy stays in ordinary code blocks.\n- Several pictures (screenshots, before and after, light and dark): one after another, each `` with nothing else between them. Ta shows them together as a grid, the words under each.\n\nThe card: {\"status\": \"done\" | \"partial\" | \"failed\" | \"blocked\" | \"info\", \"title\"?: string, \"blocks\": [...]}\nstatus: done = finished, partial = done in part, failed, blocked = waiting for the user, info = an answer, no work. Leave out title: the first line already says it.\nBlocks, 1 to 4 of them, the most important first, each with only the fields shown. Every text a few words, in the user's language; inline Markdown works (**bold**, `path/to/file` opens the file).\n- {\"type\":\"stats\",\"items\":[{\"label\":\"Tests\",\"value\":\"128/128\",\"tone\":\"good\"},{\"label\":\"Startup\",\"value\":\"210 ms\",\"delta\":\"-34%\",\"tone\":\"good\"}]}: key numbers, at most 6; tone good | bad | warn.\n- {\"type\":\"changes\",\"items\":[{\"path\":\"src/a.ts\",\"kind\":\"edit\",\"add\":12,\"del\":3,\"note\":\"why, in a few words\"}]}: files changed, a path each (points go in notes); kind add | edit | delete.\n- {\"type\":\"steps\",\"items\":[{\"text\":\"...\",\"status\":\"done\"}]}: progress or a plan; status done | doing | todo | failed | skipped.\n- {\"type\":\"compare\",\"unit\":\"ms\",\"better\":\"lower\",\"items\":[{\"label\":\"Startup\",\"before\":320,\"after\":210}]}: before and after, numbers only (words go in a table).\n- {\"type\":\"bars\",\"unit\":\"MB\",\"items\":[{\"label\":\"ta\",\"value\":66},{\"label\":\"pi\",\"value\":129}]}: amounts side by side.\n- {\"type\":\"flow\",\"items\":[\"Request\",\"Gateway\",\"Session\",\"Model\"]}: a sequence or a path.\n- {\"type\":\"diagram\",\"mermaid\":\"graph LR; A-->B\"}: relations a flow cannot show, under 12 nodes.\n- {\"type\":\"table\",\"columns\":[\"\",\"\"],\"rows\":[[\"\",\"\"]]}: a few rows that compare things on several points.\n- {\"type\":\"options\",\"question\":\"Which one?\",\"items\":[{\"label\":\"A\",\"detail\":\"one line\",\"pros\":[\"...\"],\"cons\":[\"...\"],\"recommended\":true}]}: when the user must choose; each is a button that answers with its label.\n- {\"type\":\"notes\",\"items\":[{\"text\":\"...\",\"tone\":\"risk\"}]}: risks, caveats, what the user must do; tone risk | info | todo.\n- {\"type\":\"next\",\"items\":[\"Run the e2e tests\"]}: at most 3 things the user may well ask next, each a button that sends it.\n- {\"type\":\"details\",\"title\":\"How\",\"markdown\":\"...\"}: what few will read, folded.";
|
|
7
7
|
//# sourceMappingURL=glance-prompt.d.ts.map
|
|
@@ -15,6 +15,7 @@ How to reply:
|
|
|
15
15
|
- A short question or small talk: one to three sentences, no card.
|
|
16
16
|
- When the reply reports work done, results, a comparison, choices to make, or an analysis with several facts or relations: after the first line put one card, a fenced block of language ${glance_protocol_1.LANGUAGE} holding JSON, instead of paragraphs, headings and long lists. Ta draws it as a picture. After the card at most two short lines, only for what it cannot hold; never repeat what it shows.
|
|
17
17
|
- Code the user must read or copy stays in ordinary code blocks.
|
|
18
|
+
- Several pictures (screenshots, before and after, light and dark): one after another, each \`\` with nothing else between them. Ta shows them together as a grid, the words under each.
|
|
18
19
|
|
|
19
20
|
The card: {"status": "done" | "partial" | "failed" | "blocked" | "info", "title"?: string, "blocks": [...]}
|
|
20
21
|
status: done = finished, partial = done in part, failed, blocked = waiting for the user, info = an answer, no work. Leave out title: the first line already says it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-glance",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.2",
|
|
4
4
|
"description": "A pi package for Ta: replies lead with the answer, short, and show results as cards (key numbers, files, steps, comparisons, choices) rather than paragraphs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -13,10 +13,12 @@ const react_1 = require("./react");
|
|
|
13
13
|
function message(error) {
|
|
14
14
|
return error instanceof Error ? error.message : String(error);
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
/** The time of a card: of today, the hour; of another day, the date too. */
|
|
17
|
+
function clock(at, now = Date.now()) {
|
|
17
18
|
const date = new Date(at);
|
|
18
19
|
const pad = (value) => String(value).padStart(2, '0');
|
|
19
|
-
|
|
20
|
+
const time = `${pad(date.getHours())}:${pad(date.getMinutes())}`;
|
|
21
|
+
return date.toDateString() === new Date(now).toDateString() ? time : `${pad(date.getMonth() + 1)}-${pad(date.getDate())} ${time}`;
|
|
20
22
|
}
|
|
21
23
|
function kindTitle(kinds, id, language) {
|
|
22
24
|
var _a;
|
|
@@ -24,7 +26,7 @@ function kindTitle(kinds, id, language) {
|
|
|
24
26
|
return kind ? initiative_protocol_1.KindTitleUtil.pick(kind.title, language) : id;
|
|
25
27
|
}
|
|
26
28
|
/** A button that waits on the host, with the spinner of the page. */
|
|
27
|
-
function Act({ pi, label, primary, onClick }) {
|
|
29
|
+
function Act({ pi, label, primary, icon: Icon, onClick }) {
|
|
28
30
|
const [busy, run] = (0, react_1.useBusy)(pi.ui);
|
|
29
31
|
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
30
32
|
const act = async () => {
|
|
@@ -37,8 +39,22 @@ function Act({ pi, label, primary, onClick }) {
|
|
|
37
39
|
};
|
|
38
40
|
return (react_1.React.createElement("button", { type: "button", className: `ta-button${primary ? ' ta-primary' : ''}${busy ? ' ta-busy' : ''}`, disabled: busy, onClick: () => void run(act) },
|
|
39
41
|
busy && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" }),
|
|
42
|
+
Icon && react_1.React.createElement(Icon, { size: 13 }),
|
|
40
43
|
react_1.React.createElement("span", null, label)));
|
|
41
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* The head of a card: a mark in the tone of where it stands (blue waits for the user, green done, red failed), the kind
|
|
47
|
+
* and the time.
|
|
48
|
+
*/
|
|
49
|
+
function Head({ pi, proposal, kinds, at, words }) {
|
|
50
|
+
const Mark = pi.ui.icons.Sparkles;
|
|
51
|
+
return (react_1.React.createElement("div", { className: "tin-kind" },
|
|
52
|
+
Mark && (react_1.React.createElement("span", { className: "tin-mark" },
|
|
53
|
+
react_1.React.createElement(Mark, { size: 12 }))),
|
|
54
|
+
react_1.React.createElement("span", { className: "tin-kind-title" }, kindTitle(kinds, proposal.kind, pi.ui.language)),
|
|
55
|
+
proposal.state === 'digest' && react_1.React.createElement("span", { className: "tin-tag" }, words.inBrief),
|
|
56
|
+
react_1.React.createElement("span", { className: "tin-time" }, clock(at))));
|
|
57
|
+
}
|
|
42
58
|
function Evidence({ pi, proposal, words }) {
|
|
43
59
|
var _a;
|
|
44
60
|
const files = (_a = proposal.evidence) !== null && _a !== void 0 ? _a : [];
|
|
@@ -59,38 +75,38 @@ function Waiting({ pi, store, proposal, kinds, away, }) {
|
|
|
59
75
|
}
|
|
60
76
|
};
|
|
61
77
|
const reversible = (_b = (_a = kinds.find(one => one.kind.id === proposal.kind)) === null || _a === void 0 ? void 0 : _a.kind.reversible) !== null && _b !== void 0 ? _b : false;
|
|
62
|
-
return (react_1.React.createElement("li", { className: "tin-card" },
|
|
63
|
-
react_1.React.createElement(
|
|
64
|
-
react_1.React.createElement("span", null, kindTitle(kinds, proposal.kind, pi.ui.language)),
|
|
65
|
-
proposal.state === 'digest' && react_1.React.createElement("span", { className: "tin-tag" }, words.inBrief),
|
|
66
|
-
react_1.React.createElement("span", { className: "tin-time" }, clock(proposal.at))),
|
|
78
|
+
return (react_1.React.createElement("li", { className: "tin-card", "data-tone": "wait" },
|
|
79
|
+
react_1.React.createElement(Head, { pi: pi, proposal: proposal, kinds: kinds, at: proposal.at, words: words }),
|
|
67
80
|
react_1.React.createElement("div", { className: "tin-title" }, proposal.title),
|
|
68
81
|
proposal.why && react_1.React.createElement("div", { className: "tin-why" }, proposal.why),
|
|
69
|
-
react_1.React.createElement(Evidence, { pi: pi, proposal: proposal, words: words }),
|
|
70
|
-
react_1.React.createElement("div", { className: "tin-
|
|
71
|
-
react_1.React.createElement(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
away && react_1.React.createElement(Evidence, { pi: pi, proposal: proposal, words: words }),
|
|
83
|
+
react_1.React.createElement("div", { className: "tin-foot" },
|
|
84
|
+
react_1.React.createElement("div", { className: "tin-more" },
|
|
85
|
+
reversible && (react_1.React.createElement("button", { type: "button", className: "tin-link", onClick: () => void decide('always')().catch(() => undefined) }, words.always)),
|
|
86
|
+
react_1.React.createElement("button", { type: "button", className: "tin-link", onClick: () => void decide('never')().catch(() => undefined) }, words.neverAgain)),
|
|
87
|
+
react_1.React.createElement("div", { className: "tin-actions" },
|
|
88
|
+
react_1.React.createElement(Act, { pi: pi, label: words.decline, onClick: decide('decline') }),
|
|
89
|
+
react_1.React.createElement(Act, { pi: pi, label: words.accept, primary: true, onClick: decide('accept') })))));
|
|
76
90
|
}
|
|
77
91
|
function Done({ pi, store, proposal, kinds, now, }) {
|
|
78
92
|
var _a, _b;
|
|
79
93
|
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
80
|
-
const
|
|
94
|
+
const tone = proposal.state === 'undone' ? 'undone' : proposal.state === 'failed' ? 'failed' : 'done';
|
|
95
|
+
const state = tone === 'undone'
|
|
81
96
|
? words.undoneState
|
|
82
|
-
:
|
|
97
|
+
: tone === 'failed'
|
|
83
98
|
? i18n_1.InitiativeWords.format(words.failedState, { error: (_a = proposal.error) !== null && _a !== void 0 ? _a : '' })
|
|
84
|
-
:
|
|
85
|
-
return (react_1.React.createElement("li", { className: "tin-card tin-done", "data-
|
|
86
|
-
react_1.React.createElement(
|
|
87
|
-
react_1.React.createElement("span", null, kindTitle(kinds, proposal.kind, pi.ui.language)),
|
|
88
|
-
react_1.React.createElement("span", { className: "tin-time" }, clock((_b = proposal.decidedAt) !== null && _b !== void 0 ? _b : proposal.at))),
|
|
99
|
+
: words.inboxDone;
|
|
100
|
+
return (react_1.React.createElement("li", { className: "tin-card tin-done", "data-tone": tone },
|
|
101
|
+
react_1.React.createElement(Head, { pi: pi, proposal: proposal, kinds: kinds, at: (_b = proposal.decidedAt) !== null && _b !== void 0 ? _b : proposal.at, words: words }),
|
|
89
102
|
react_1.React.createElement("div", { className: "tin-title" }, proposal.title),
|
|
90
103
|
proposal.why && react_1.React.createElement("div", { className: "tin-why" }, proposal.why),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
104
|
+
react_1.React.createElement("div", { className: "tin-foot" },
|
|
105
|
+
react_1.React.createElement("span", { className: "tin-state" },
|
|
106
|
+
react_1.React.createElement("i", null),
|
|
107
|
+
react_1.React.createElement("span", null, state)),
|
|
108
|
+
inbox_util_1.InboxUtil.canUndo(proposal, now) && (react_1.React.createElement("div", { className: "tin-actions" },
|
|
109
|
+
react_1.React.createElement(Act, { pi: pi, label: words.undo, icon: pi.ui.icons.Undo2, onClick: () => store.undo(proposal.id) }))))));
|
|
94
110
|
}
|
|
95
111
|
/** The suggestions of Ta: what waits for the user, then what Ta did on its own lately, which they may undo. */
|
|
96
112
|
function Inbox({ pi, store }) {
|
|
@@ -135,9 +151,11 @@ function ProposalCards({ pi, store, ids }) {
|
|
|
135
151
|
if (proposals.length === 0) {
|
|
136
152
|
return null;
|
|
137
153
|
}
|
|
138
|
-
return (react_1.React.createElement("ul", { className: "tin-list tin-in-chat" }, proposals.map(proposal => (0, inbox_util_1.waits)(proposal) ? (react_1.React.createElement(Waiting, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds })) : proposal.auto ? (react_1.React.createElement(Done, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds, now: now })) : (react_1.React.createElement("li", { key: proposal.id, className: "tin-decided" },
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
154
|
+
return (react_1.React.createElement("ul", { className: "tin-list tin-in-chat" }, proposals.map(proposal => (0, inbox_util_1.waits)(proposal) ? (react_1.React.createElement(Waiting, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds })) : proposal.auto ? (react_1.React.createElement(Done, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds, now: now })) : (react_1.React.createElement("li", { key: proposal.id, className: "tin-decided", "data-state": proposal.state },
|
|
155
|
+
react_1.React.createElement("i", null),
|
|
156
|
+
react_1.React.createElement("span", null,
|
|
157
|
+
proposal.state === 'done' ? words.acceptedLine : proposal.state === 'declined' ? words.declinedLine : words.expiredLine,
|
|
158
|
+
' · ',
|
|
159
|
+
proposal.title))))));
|
|
142
160
|
}
|
|
143
161
|
//# sourceMappingURL=inbox.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. */
|
|
2
|
-
export declare const STYLE = "\n.tev-field { height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tev-field:disabled { opacity: 0.5; }\n.tev-now { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }\n.tev-profile { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 100%; }\n.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }\n[data-touch] .tev-profile-text { font-size: 16px; }\n/* The suggestions: a card each, its kind, what and why, the answers */\n.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; box-sizing: border-box; }\n.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }\n.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }\n.tin-card { padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }\n.tin-kind { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tin-
|
|
2
|
+
export declare const STYLE = "\n.tev-field { height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tev-field:disabled { opacity: 0.5; }\n.tev-now { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }\n.tev-profile { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 100%; }\n.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }\n[data-touch] .tev-profile-text { font-size: 16px; }\n/* The suggestions: a card each, its kind, what and why, the answers */\n.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; box-sizing: border-box; }\n.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }\n.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }\n/*\n * 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\n * hairline with what the user may do. Tones: blue waits for the user, green done, red failed, grey undone.\n */\n.tin-card { --tin-tone: var(--ta-blue); padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }\n.tin-card[data-tone='done'] { --tin-tone: var(--ta-green); }\n.tin-card[data-tone='failed'] { --tin-tone: var(--ta-red); }\n.tin-card[data-tone='undone'] { --tin-tone: var(--ta-muted); }\n.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)); }\n.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); }\n.tin-kind-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tin-tag { flex: none; padding: 0 6px; border-radius: 6px; background: var(--ta-hover); line-height: 1.6; }\n.tin-time { flex: none; font-variant-numeric: tabular-nums; }\n.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; }\n.tin-why { margin-top: 3px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; overflow-wrap: anywhere; }\n.tin-card[data-tone='undone'] .tin-title { color: var(--ta-muted); font-weight: 500; }\n.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); }\n.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; }\n.tin-state > i, .tin-decided > i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }\n.tin-actions { display: flex; gap: 8px; margin-left: auto; }\n.tin-actions .ta-button { height: calc(28px * var(--ta-font-scale)); min-width: 56px; padding: 0 12px; justify-content: center; gap: 5px; }\n.tin-actions .ta-button:not(.ta-primary) { color: var(--ta-secondary); }\n.tin-actions .ta-button:not(.ta-primary):hover:not(:disabled) { color: var(--ta-text); }\n[data-touch] .tin-actions .ta-button { height: 34px; min-width: 64px; }\n.tin-more { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }\n.tin-link { padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; text-align: left; }\n.tin-link:hover { color: var(--ta-text); }\n.tin-card > .tin-link { margin-top: 6px; display: block; }\n.tin-above { margin: 0 0 8px; }\n.tin-above .tin-card { padding: 10px 12px; }\n.tin-above .tin-foot { margin-top: 10px; padding-top: 8px; }\n.tin-in-chat { margin: 4px 0; max-width: 620px; }\n.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; }\n.tin-decided[data-state='done'] > i { color: var(--ta-green); }\n.tin-empty { padding: 48px 12px; color: var(--ta-muted); text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }\n.tin-quiet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }\n/* The kinds, in the settings */\n.tin-kinds { margin: 0; padding: 0; list-style: none; width: 100%; }\n.tin-kind-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ta-border-muted); }\n.tin-kind-row:first-child { border-top: 0; }\n.tin-kind-text { flex: 1; min-width: 0; }\n.tin-kind-name { color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); }\n.tin-kind-reason { margin-top: 2px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tev-when { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n";
|
|
3
3
|
export declare function injectStyle(): () => void;
|
|
4
4
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -14,27 +14,40 @@ exports.STYLE = `
|
|
|
14
14
|
.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; box-sizing: border-box; }
|
|
15
15
|
.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }
|
|
16
16
|
.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
/*
|
|
18
|
+
* 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
|
|
19
|
+
* hairline with what the user may do. Tones: blue waits for the user, green done, red failed, grey undone.
|
|
20
|
+
*/
|
|
21
|
+
.tin-card { --tin-tone: var(--ta-blue); padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }
|
|
22
|
+
.tin-card[data-tone='done'] { --tin-tone: var(--ta-green); }
|
|
23
|
+
.tin-card[data-tone='failed'] { --tin-tone: var(--ta-red); }
|
|
24
|
+
.tin-card[data-tone='undone'] { --tin-tone: var(--ta-muted); }
|
|
25
|
+
.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)); }
|
|
26
|
+
.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); }
|
|
27
|
+
.tin-kind-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
28
|
+
.tin-tag { flex: none; padding: 0 6px; border-radius: 6px; background: var(--ta-hover); line-height: 1.6; }
|
|
21
29
|
.tin-time { flex: none; font-variant-numeric: tabular-nums; }
|
|
22
|
-
.tin-title { margin-top:
|
|
23
|
-
.tin-why { margin-top:
|
|
24
|
-
.tin-
|
|
25
|
-
.tin-
|
|
26
|
-
.tin-
|
|
27
|
-
.tin-
|
|
28
|
-
.tin-actions
|
|
29
|
-
|
|
30
|
-
.tin-
|
|
30
|
+
.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; }
|
|
31
|
+
.tin-why { margin-top: 3px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; overflow-wrap: anywhere; }
|
|
32
|
+
.tin-card[data-tone='undone'] .tin-title { color: var(--ta-muted); font-weight: 500; }
|
|
33
|
+
.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); }
|
|
34
|
+
.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; }
|
|
35
|
+
.tin-state > i, .tin-decided > i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }
|
|
36
|
+
.tin-actions { display: flex; gap: 8px; margin-left: auto; }
|
|
37
|
+
.tin-actions .ta-button { height: calc(28px * var(--ta-font-scale)); min-width: 56px; padding: 0 12px; justify-content: center; gap: 5px; }
|
|
38
|
+
.tin-actions .ta-button:not(.ta-primary) { color: var(--ta-secondary); }
|
|
39
|
+
.tin-actions .ta-button:not(.ta-primary):hover:not(:disabled) { color: var(--ta-text); }
|
|
40
|
+
[data-touch] .tin-actions .ta-button { height: 34px; min-width: 64px; }
|
|
41
|
+
.tin-more { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
|
|
31
42
|
.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; }
|
|
32
43
|
.tin-link:hover { color: var(--ta-text); }
|
|
33
44
|
.tin-card > .tin-link { margin-top: 6px; display: block; }
|
|
34
45
|
.tin-above { margin: 0 0 8px; }
|
|
35
46
|
.tin-above .tin-card { padding: 10px 12px; }
|
|
47
|
+
.tin-above .tin-foot { margin-top: 10px; padding-top: 8px; }
|
|
36
48
|
.tin-in-chat { margin: 4px 0; max-width: 620px; }
|
|
37
|
-
.tin-decided { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; }
|
|
49
|
+
.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; }
|
|
50
|
+
.tin-decided[data-state='done'] > i { color: var(--ta-green); }
|
|
38
51
|
.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; }
|
|
39
52
|
.tin-quiet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
|
|
40
53
|
/* The kinds, in the settings */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-initiative",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.2",
|
|
4
4
|
"description": "A pi package for Ta: what Ta does on its own and how far, by kind and by the user's trust; proposals other packages offer, the user's suggestions to decide or undo, and a weekly review that keeps the scheduled tasks and learns the user",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|