@celljs/ta 4.9.0 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +69 -15
- package/dist/gateway.mjs +170 -28
- package/dist/pi/CHANGELOG.md +11 -0
- package/dist/pi/dist/bundle/chunks/anthropic-messages-CA3HHOL3.js +6 -0
- package/dist/pi/dist/bundle/chunks/{azure-openai-responses-FSC6BAW3.js → azure-openai-responses-76TWS6DT.js} +1 -1
- package/dist/pi/dist/bundle/chunks/bedrock-converse-stream.js +3 -3
- package/dist/pi/dist/bundle/chunks/chunk-4KSTFUIK.js +19 -0
- package/dist/pi/dist/bundle/chunks/chunk-4UNPP53I.js +55 -0
- package/dist/pi/dist/bundle/chunks/chunk-AUUCDC7R.js +4 -0
- package/dist/pi/dist/bundle/chunks/{chunk-V6KH5QG4.js → chunk-BAC3QPNW.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{chunk-4EYXVSA5.js → chunk-FF6XOTWB.js} +9 -9
- package/dist/pi/dist/bundle/chunks/chunk-FMPAMX2W.js +82 -0
- package/dist/pi/dist/bundle/chunks/chunk-GFUN2N5K.js +2 -0
- package/dist/pi/dist/bundle/chunks/chunk-IEBK4HQA.js +2 -0
- package/dist/pi/dist/bundle/chunks/{chunk-C2WU32PX.js → chunk-IQUU5XIT.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{chunk-EBFHJFEE.js → chunk-LQLJ7CDW.js} +1 -1
- package/dist/pi/dist/bundle/chunks/chunk-MMDXLZVS.js +30 -0
- package/dist/pi/dist/bundle/chunks/{chunk-GN3QYODH.js → chunk-QN4TOIZN.js} +1 -1
- package/dist/pi/dist/bundle/chunks/chunk-RKNK4Y6L.js +2 -0
- package/dist/pi/dist/bundle/chunks/{chunk-B46VJEHW.js → chunk-V7SLUK6A.js} +1 -1
- package/dist/pi/dist/bundle/chunks/chunk-VEJDBY3O.js +1237 -0
- package/dist/pi/dist/bundle/chunks/chunk-VKJQ6CME.js +8 -0
- package/dist/pi/dist/bundle/chunks/{chunk-3TGLJEWK.js → chunk-WL4TUXY7.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{chunk-YZKQS34S.js → chunk-Y55SJART.js} +5 -1
- package/dist/pi/dist/bundle/chunks/{chunk-EOO47QGR.js → chunk-ZBIZYD6W.js} +1 -1
- package/dist/pi/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
- package/dist/pi/dist/bundle/chunks/chunk-ZGYS4UTC.js +2 -0
- package/dist/pi/dist/bundle/chunks/{cli-MCOUW5WS.js → cli-7RHMDOHL.js} +7 -7
- package/dist/pi/dist/bundle/chunks/{cloudflare-workers-ai-system-one-WLAFJSP6.js → cloudflare-workers-ai-system-one-U4J7D646.js} +1 -1
- package/dist/pi/dist/bundle/chunks/codemode-worker.js +2 -0
- package/dist/pi/dist/bundle/chunks/{easter-egg-3d-WMBNSJ4M.js → easter-egg-3d-GEVPKQF6.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{execute-4CEBORGZ.js → execute-L2EEDV3L.js} +5 -3
- package/dist/pi/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/pi/dist/bundle/chunks/{google-generative-ai-INGKNW72.js → google-generative-ai-D5B6W47J.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{google-vertex-IBTX6MBF.js → google-vertex-U4H5YDEW.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{llama-cpp-classify-V5U3QKXI.js → llama-cpp-classify-EJXCQRUQ.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{mistral-conversations-S4OWXIXQ.js → mistral-conversations-S277EKLB.js} +1 -1
- package/dist/pi/dist/bundle/chunks/openai-codex-responses-TEQRB65N.js +10 -0
- package/dist/pi/dist/bundle/chunks/{openai-completions-EJNYB6IX.js → openai-completions-HRZOSLBO.js} +3 -3
- package/dist/pi/dist/bundle/chunks/{openai-decisions-IXI34BYG.js → openai-decisions-F66BDLOM.js} +1 -1
- package/dist/pi/dist/bundle/chunks/openai-responses-BAKFWTGE.js +4 -0
- package/dist/pi/dist/bundle/chunks/{openrouter-images-PISKSFMS.js → openrouter-images-VXF5TVIK.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{pi-messages-NORUKF4E.js → pi-messages-UBJKNDRN.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{runtime-FQB7RU7U.js → runtime-J5ZSBGTX.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{typesafe-system-one-CHVC2UUI.js → typesafe-system-one-56TEMIHL.js} +1 -1
- package/dist/pi/dist/bundle/chunks/virtual-modules-KITQRTYM.js +2 -0
- package/dist/pi/dist/bundle/cli-runtime.js +1 -1
- package/dist/pi/dist/bundle/index.js +1 -1
- package/dist/pi/dist/bundle/rpc-entry.js +1 -1
- package/dist/pi/docs/cli.md +14 -1
- package/dist/pi/docs/extensions.md +27 -7
- package/dist/pi/docs/keybindings.md +1 -1
- package/dist/pi/docs/llama-cpp.md +5 -8
- package/dist/pi/docs/models-configuration.md +6 -1
- package/dist/pi/docs/models.md +2 -1
- package/dist/pi/docs/prompt-templates.md +1 -1
- package/dist/pi/docs/providers.md +1 -1
- package/dist/pi/docs/rpc.md +4 -2
- package/dist/pi/docs/sessions.md +7 -1
- package/dist/pi/docs/settings.md +1 -1
- package/dist/pi/docs/tui.md +1 -1
- package/dist/pi/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/dist/pi/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/dist/pi/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/dist/pi/examples/extensions/gondolin/package-lock.json +2 -2
- package/dist/pi/examples/extensions/gondolin/package.json +1 -1
- package/dist/pi/examples/extensions/plan-mode/index.ts +23 -13
- package/dist/pi/examples/extensions/plan-mode/utils.ts +42 -16
- package/dist/pi/examples/extensions/subagent/README.md +14 -11
- package/dist/pi/examples/extensions/subagent/index.ts +392 -171
- package/dist/pi/examples/extensions/with-deps/package-lock.json +2 -2
- package/dist/pi/examples/extensions/with-deps/package.json +1 -1
- package/dist/pi/examples/tsconfig.json +63 -35
- package/dist/pi/package.json +1 -1
- 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 +69 -13
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +19 -4
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js +43 -9
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js +3 -0
- package/dist/pi/packages/ta-agents/lib/extension.d.ts +2 -1
- package/dist/pi/packages/ta-agents/lib/extension.js +26 -4
- package/dist/pi/packages/ta-agents/lib/json-rpc.js +7 -1
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +4 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +4 -0
- package/dist/pi/packages/ta-agents/package.json +3 -3
- package/dist/pi/packages/ta-bots/extension/index.mjs +46 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +46 -0
- 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/README.en.md +2 -2
- package/dist/pi/packages/ta-channels/README.md +2 -2
- package/dist/pi/packages/ta-channels/host/index.mjs +50 -0
- package/dist/pi/packages/ta-channels/lib/create.js +11 -3
- package/dist/pi/packages/ta-channels/lib/faces.js +1 -1
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +6 -9
- package/dist/pi/packages/ta-channels/lib/i18n.js +12 -18
- package/dist/pi/packages/ta-channels/lib/more-menu.d.ts +3 -2
- package/dist/pi/packages/ta-channels/lib/more-menu.js +21 -29
- package/dist/pi/packages/ta-channels/lib/room.js +13 -8
- package/dist/pi/packages/ta-channels/lib/sidebar.js +241 -79
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +83 -37
- package/dist/pi/packages/ta-channels/lib/tasks.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/tasks.js +22 -12
- package/dist/pi/packages/ta-channels/lib/views.d.ts +49 -1
- package/dist/pi/packages/ta-channels/lib/views.js +100 -1
- package/dist/pi/packages/ta-channels/package.json +1 -1
- package/dist/pi/packages/ta-channels/web/index.js +482 -259
- package/dist/pi/packages/ta-computer-use/package.json +2 -2
- package/dist/pi/packages/ta-cron/README.en.md +2 -2
- package/dist/pi/packages/ta-cron/README.md +2 -2
- package/dist/pi/packages/ta-cron/host/index.mjs +6 -0
- package/dist/pi/packages/ta-cron/lib/editor.js +60 -27
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +12 -1
- package/dist/pi/packages/ta-cron/lib/i18n.js +24 -2
- package/dist/pi/packages/ta-cron/lib/page.d.ts +33 -3
- package/dist/pi/packages/ta-cron/lib/page.js +119 -4
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +166 -46
- package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +15 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.js +56 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +11 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts +4 -1
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +102 -66
- package/dist/pi/packages/ta-cron/package.json +1 -1
- package/dist/pi/packages/ta-cron/web/index.js +928 -404
- package/dist/pi/packages/ta-extensions/README.en.md +3 -1
- package/dist/pi/packages/ta-extensions/README.md +3 -1
- package/dist/pi/packages/ta-extensions/lib/actions.js +3 -1
- package/dist/pi/packages/ta-extensions/lib/composer.d.ts +17 -0
- package/dist/pi/packages/ta-extensions/lib/composer.js +84 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +9 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.js +18 -0
- package/dist/pi/packages/ta-extensions/lib/index.js +4 -0
- package/dist/pi/packages/ta-extensions/lib/make-model.d.ts +20 -0
- package/dist/pi/packages/ta-extensions/lib/make-model.js +43 -0
- package/dist/pi/packages/ta-extensions/lib/page.js +42 -18
- package/dist/pi/packages/ta-extensions/lib/settings.d.ts +4 -0
- package/dist/pi/packages/ta-extensions/lib/settings.js +44 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +10 -4
- package/dist/pi/packages/ta-extensions/package.json +1 -1
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +7 -3
- package/dist/pi/packages/ta-extensions/web/index.js +269 -26
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-workspace/README.md +1 -1
- package/dist/pi/packages/ta-workspace/README.zh-cn.md +1 -1
- package/dist/pi/packages/ta-workspace/lib/bytes.d.ts +11 -0
- package/dist/pi/packages/ta-workspace/lib/bytes.js +40 -0
- package/dist/pi/packages/ta-workspace/lib/common.d.ts +2 -1
- package/dist/pi/packages/ta-workspace/lib/common.js +15 -37
- package/dist/pi/packages/ta-workspace/lib/editors.js +12 -3
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +1 -2
- package/dist/pi/packages/ta-workspace/lib/i18n.js +2 -4
- package/dist/pi/packages/ta-workspace/lib/index.js +17 -1
- package/dist/pi/packages/ta-workspace/lib/launcher.d.ts +9 -0
- package/dist/pi/packages/ta-workspace/lib/launcher.js +39 -0
- package/dist/pi/packages/ta-workspace/lib/preview.d.ts +13 -3
- package/dist/pi/packages/ta-workspace/lib/preview.js +17 -14
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +20 -7
- package/dist/pi/packages/ta-workspace/lib/terminal-sessions.d.ts +51 -0
- package/dist/pi/packages/ta-workspace/lib/terminal-sessions.js +226 -0
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +0 -39
- package/dist/pi/packages/ta-workspace/lib/terminal.js +28 -240
- package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts +18 -0
- package/dist/pi/packages/ta-workspace/lib/util/keys.js +23 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +19 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.js +32 -1
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +238 -68
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-C1tb6dM5.js → abnfDiagram-S7VZAUFO-BmIko5tV.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-DN1Va8BF.js → architecture-WOLXFQ4H-XgsdQ7ul.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-BmK2SYtQ.js → architectureDiagram-YGSQEFNW--sVhMS03.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-DvLrLzTm.js → blockDiagram-APKKGZFW-8f9b-9k2.js} +1 -1
- package/dist/public/assets/browser-DOHZ0JCf.js +12 -0
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CrQlWwrG.js → c4Diagram-KJ2TOQU5-CwYQ0Jfy.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CHKMsuY_.js → chunk-6MUBBAK2-7Y9ezehi.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-CWJ7Np6s.js → chunk-AXFCVDMN-CZIH4pWz.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-3v5XbQGM.js → chunk-BG4553SI-DsNATY2m.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-2CC-yiCz.js → chunk-DQASFODM-CoXkfYE-.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-D2hzQPAy.js → chunk-HFQBQIA3-C5OLqki8.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-SifAZs2r.js → chunk-KQLB2F66-DMHuYGEF.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-BP0C0VCC.js → chunk-KS47KZWR-BKeOttO1.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-B1f5vw5b.js → chunk-LEVMRMFU-D6zCwkk7.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-B2MCJt7Y.js → chunk-M57EVK23-B5-QqcZg.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-cDpZJMk4.js → chunk-OY52VR5R-DQrq3n0T.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-BE0we2xc.js → chunk-QB3YPZ4I-j6ZT7EDR.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-D9wOfqqH.js → chunk-R3KSYZAL-D5MXUO36.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-BIaVsc0K.js → chunk-STOXU5M4-DaBkw4dD.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-BZc0OZEM.js → chunk-TU62E6Q5-vXcRfGci.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-Bngfwwzm.js → chunk-X4PVCEUW-CIh6H4Y2.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-C5FQ6XHK.js → chunk-XXDRQBXY-C_Vwv1FM.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-_om54nmt.js → classDiagram-v2-L25IHNXF-DccDWEJn.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-Dwpeee_6.js → cose-bilkent-JH36ORCC-BX47lumZ.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-MaI-3dMQ.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-DP5_y9Dq.js → cynefinDiagram-L36ESFBY-BE6WOGxW.js} +1 -1
- package/dist/public/assets/{d3-selection-DFiMlEmn.js → d3-selection-ZcE6yRN5.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-DYwsk6gk.js → dagre-SPEB5RXH-CE6SOOcN.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-Dq_nT3AZ.js → diagram-3B7GL73J-xC8VtiYL.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-ChURW6y9.js → diagram-DNEMPZML-4dmcBbjL.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-CgVp4Rto.js → diagram-L3MUGCDN-D14Yn3sQ.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-vrqLMDby.js → diagram-LA4NIPWU-GxSXIhsK.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-lvfOr5ij.js → diagram-MHCOC4E2-Cm7Prlpc.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-oQ18TeVp.js → diagram-XPFHEONP-mkUnnKFu.js} +1 -1
- package/dist/public/assets/{dist-BOxxmveI.js → dist-acJS-BlA.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-C7_tlZCS.js → ebnfDiagram-UZSYDL2S-m77ua3UQ.js} +1 -1
- package/dist/public/assets/{editor.api-CoZ8MEuz.js → editor.api-CljTm-EQ.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-Dkt5-ikg.js → elk-XV6XMXQE-DsQY1hw9.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-27kh3zlx.js → erDiagram-EYBAPDEH-CV8gJM0P.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-CxVEejjN.js → eventmodeling-K75KTNOO-C1pymbUr.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-shBnAQFk.js +1 -0
- package/dist/public/assets/{freemarker2-D6CwPIXh.js → freemarker2-DYJXaMHN.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-C-amlwpX.js → ganttDiagram-23REXITY-CppxOWRh.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BtQWboBz.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-DKhzI0Xz.js → gitGraphDiagram-STJD7YCW-CrQrZhcP.js} +1 -1
- package/dist/public/assets/{handlebars-mxNr68Gm.js → handlebars-DZCnH9e2.js} +1 -1
- package/dist/public/assets/{html-Bze6s9R9.js → html-DuzouNES.js} +1 -1
- package/dist/public/assets/{index-BhQUc9PU.js → index-B7OYKvCE.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-CDSLjba_.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-WHuWjEDO.js → infoDiagram-KBXO4MBG-6pby19tQ.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-DFHUwD0J.js → ishikawaDiagram-M35NCXHK-Duf8c8rQ.js} +1 -1
- package/dist/public/assets/{javascript-4NMPu7y1.js → javascript-2d_L6cVd.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-C7gV6zEr.js → journeyDiagram-OPLOXDXO-Dvv-xzNo.js} +1 -1
- package/dist/public/assets/{jsonMode-B1JEHPMp.js → jsonMode-CFadYXyI.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-DlRu_d2Q.js → kanban-definition-BZKZHSQY-Dsk6F-TT.js} +1 -1
- package/dist/public/assets/{liquid-B7sIf4NX.js → liquid-Din4CF34.js} +1 -1
- package/dist/public/assets/{mdx-CAN0qez6.js → mdx-DivDuCWI.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-BGmotBhf.js → mermaid-parser.core-BfCv4CYZ.js} +3 -3
- package/dist/public/assets/{mermaid.core-Cl6SS3cM.js → mermaid.core-DC20ZwJj.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DiQ8Feqr.js → mindmap-definition-I2QAS2VK-DRZRrJU_.js} +1 -1
- package/dist/public/assets/module-BAQaY56j.js +1 -0
- package/dist/public/assets/module-DxRGg3ED.js +1947 -0
- package/dist/public/assets/{monaco-CwCjTWAO.js → monaco-D1d6MOPe.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-dYb4P9eU.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-XhCpv6BX.js → pegDiagram-FD4XPPHP-DcGr3Tbk.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CIompBnc.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-DUVzuXUd.js → pieDiagram-J4AKIIQI-GF7pu6ch.js} +1 -1
- package/dist/public/assets/{python-DsoF66Sp.js → python-BQbTTTT5.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-Ddobf0z0.js → quadrantDiagram-XTYBLID2-D-bcu7Ey.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-DiJl7BtK.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-B5cRBukM.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-DkrNo-Gf.js → railroad-abnf-LNEFI6M7-BiBHsI-K.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-DaB7gY8P.js → railroad-ebnf-DWYD2UWJ-zKjrfkHs.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-D_QG87QV.js → railroad-peg-JR7BVNR7-DKuVn0GT.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-x-nUoBjv.js → railroadDiagram-MRQ6NCDL-Cyn-16mJ.js} +1 -1
- package/dist/public/assets/{razor-DSrcJyQe.js → razor-DiLk54O0.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-kNNcbsty.js → requirementDiagram-Y7LWUY3S-CwU2EBkW.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-ClC12Odk.js → sankeyDiagram-WGJFYUXA-ajf00HyW.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-DDQITP2g.js → sequenceDiagram-5NDRBG5M-DiX_OIAw.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-N1t_36oh.js → stateDiagram-v2-FJ4FJNEA-CV5bRqB7.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-DSt9fFYE.js → swimlanes-UMQ2AFYF-BGQKSlj7.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-DxXlavVT.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-CfymOw_s.js → timeline-definition-SEUHKTQE-DhQoApff.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-BOP6mkZC.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-BJxuPMz3.js +1 -0
- package/dist/public/assets/{typescript-J7rF-zX8.js → typescript-COQ1g-up.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-CK_mRc2_.js → usecaseDiagram-AFA6YXN4-CmLFzjie.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-DW8xR6IJ.js → vennDiagram-NNMJR3RB-DOa6JR5K.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-jqlowjVL.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-Css55Zq5.js → wardleyDiagram-S7YFUSEH-BV7EEShp.js} +1 -1
- package/dist/public/assets/{xml-CJeviG_a.js → xml-BbvtjuaG.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-BnhK9cFS.js → xychartDiagram-GGNKY7IX-DtMpPbsq.js} +1 -1
- package/dist/public/assets/{yaml-Gw3uo6rF.js → yaml-Bw8NFga9.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/public/launch.svg +46 -42
- package/dist/serve/index.mjs +1367 -560
- package/package.json +25 -25
- package/dist/pi/dist/bundle/chunks/anthropic-messages-BWGCKOF4.js +0 -6
- package/dist/pi/dist/bundle/chunks/chunk-44DLKSKE.js +0 -1232
- package/dist/pi/dist/bundle/chunks/chunk-62VOPMLK.js +0 -65
- package/dist/pi/dist/bundle/chunks/chunk-7O7QKK6A.js +0 -2
- package/dist/pi/dist/bundle/chunks/chunk-CHWNPHIS.js +0 -82
- package/dist/pi/dist/bundle/chunks/chunk-NL4X6LBY.js +0 -4
- package/dist/pi/dist/bundle/chunks/chunk-NZY7EIPA.js +0 -4
- package/dist/pi/dist/bundle/chunks/chunk-R2EGYMOO.js +0 -7
- package/dist/pi/dist/bundle/chunks/chunk-UKVNB6C4.js +0 -2
- package/dist/pi/dist/bundle/chunks/chunk-USJZMAIR.js +0 -2
- package/dist/pi/dist/bundle/chunks/chunk-VOLAXWGI.js +0 -2
- package/dist/pi/dist/bundle/chunks/openai-codex-responses-QAWLOQSN.js +0 -10
- package/dist/pi/dist/bundle/chunks/openai-responses-MD3562FB.js +0 -4
- package/dist/pi/dist/bundle/chunks/virtual-modules-O76XM3OB.js +0 -2
- package/dist/public/assets/browser-DAv3ly6M.js +0 -12
- package/dist/public/assets/cynefin-EF2NZ3EQ-CW_93VVD.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-BRowRdve.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BGmojXlx.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-CRRVgGj2.js +0 -1
- package/dist/public/assets/module-1nDbf1AK.js +0 -1761
- package/dist/public/assets/module-BkKfSTDV.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-DUlqTCWQ.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-2RgP4ScO.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-Dap8k-yH.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-Ds10NBze.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BHAN4SQO.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-f1hLUBjI.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-_NPRpuUC.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-CLBqtefx.js +0 -1
|
@@ -1060,7 +1060,7 @@ function RoomFace({ members, faces, size, working }) {
|
|
|
1060
1060
|
working: working.includes(lead.id)
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
|
-
const small = Math.round(size * 0.
|
|
1063
|
+
const small = Math.round(size * 0.76);
|
|
1064
1064
|
return /* @__PURE__ */ React.createElement("span", {
|
|
1065
1065
|
className: "tac-room",
|
|
1066
1066
|
style: { width: size, height: size },
|
|
@@ -1093,6 +1093,9 @@ var EN = {
|
|
|
1093
1093
|
topic: "Topic",
|
|
1094
1094
|
members: "Members",
|
|
1095
1095
|
addMembers: "Add members",
|
|
1096
|
+
makeExtension: "Make an extension",
|
|
1097
|
+
makeExtensionDetail: "Of what was worked out here",
|
|
1098
|
+
makeExtensionAsk: "Make what this channel worked out an extension, with the ta-package skill, to do it again in a click",
|
|
1096
1099
|
add: "Add",
|
|
1097
1100
|
allMembers: "Every agent is in this channel already",
|
|
1098
1101
|
membersHint: "The first one you pick leads: it answers what names nobody.",
|
|
@@ -1117,12 +1120,10 @@ var EN = {
|
|
|
1117
1120
|
search: "Search",
|
|
1118
1121
|
clear: "Clear",
|
|
1119
1122
|
new: "New",
|
|
1120
|
-
idle: "Idle",
|
|
1121
1123
|
answeringIn: "Answering in #{channel}",
|
|
1122
1124
|
answeringNow: "{name} is answering…",
|
|
1123
1125
|
noMatch: "No matching agents or channels",
|
|
1124
1126
|
noMessages: "No messages yet",
|
|
1125
|
-
leadOf: "Lead: {name}",
|
|
1126
1127
|
noAgentsYet: "No agents yet",
|
|
1127
1128
|
noAgentsYetHint: "Create one with +, or ask Ta for a team",
|
|
1128
1129
|
myDouble: "My double",
|
|
@@ -1201,20 +1202,16 @@ var EN = {
|
|
|
1201
1202
|
membersSection: "Members",
|
|
1202
1203
|
byDirectory: "Group by directory",
|
|
1203
1204
|
channelsSection: "Channels",
|
|
1204
|
-
waitingSection: "Waiting for you",
|
|
1205
|
-
runningSection: "In progress",
|
|
1206
|
-
endedSection: "Ended",
|
|
1207
1205
|
showAll: "Show all {count}",
|
|
1208
1206
|
showFewer: "Show fewer",
|
|
1209
|
-
noTasksYet: "Nothing handed out yet",
|
|
1210
1207
|
waitingCount: "{count} need you",
|
|
1211
1208
|
runningCount: "{count} running",
|
|
1209
|
+
freshCount: "{count} new",
|
|
1212
1210
|
standingBy: "Standing by",
|
|
1213
|
-
noTasksYetHint: "Tell the double what you want done",
|
|
1214
1211
|
noTasksHere: "What the double hands out, tasks and teams, is listed here",
|
|
1215
|
-
tellDouble: "Talk to the double",
|
|
1216
1212
|
deleteTask: "Delete the team",
|
|
1217
|
-
|
|
1213
|
+
deleteTaskHint: "The messages of #{channel} go with it. Its agents stay, among your members.",
|
|
1214
|
+
selectTasks: "Select"
|
|
1218
1215
|
};
|
|
1219
1216
|
var ZH = {
|
|
1220
1217
|
title: "分身",
|
|
@@ -1228,6 +1225,9 @@ var ZH = {
|
|
|
1228
1225
|
topic: "主题",
|
|
1229
1226
|
members: "成员",
|
|
1230
1227
|
addMembers: "添加成员",
|
|
1228
|
+
makeExtension: "做成扩展",
|
|
1229
|
+
makeExtensionDetail: "把这里商量出的事做成工具",
|
|
1230
|
+
makeExtensionAsk: "把这个频道里商量和做成的事做成扩展(用 ta-package 技能),以后一键就能再用",
|
|
1231
1231
|
add: "添加",
|
|
1232
1232
|
allMembers: "所有智能体都已在这个频道里",
|
|
1233
1233
|
membersHint: "先选的成员是负责人:没人被 @ 的消息由它回答。",
|
|
@@ -1252,12 +1252,10 @@ var ZH = {
|
|
|
1252
1252
|
search: "搜索",
|
|
1253
1253
|
clear: "清除",
|
|
1254
1254
|
new: "新建",
|
|
1255
|
-
idle: "空闲",
|
|
1256
1255
|
answeringIn: "正在 #{channel} 回答",
|
|
1257
1256
|
answeringNow: "{name} 正在回答…",
|
|
1258
1257
|
noMatch: "没有匹配的智能体或频道",
|
|
1259
1258
|
noMessages: "还没有消息",
|
|
1260
|
-
leadOf: "负责人:{name}",
|
|
1261
1259
|
noAgentsYet: "还没有智能体",
|
|
1262
1260
|
noAgentsYetHint: "点 + 新建,或让 Ta 组个团队",
|
|
1263
1261
|
myDouble: "我的分身",
|
|
@@ -1336,20 +1334,16 @@ var ZH = {
|
|
|
1336
1334
|
membersSection: "成员",
|
|
1337
1335
|
byDirectory: "按目录分组",
|
|
1338
1336
|
channelsSection: "频道",
|
|
1339
|
-
waitingSection: "待你处理",
|
|
1340
|
-
runningSection: "进行中",
|
|
1341
|
-
endedSection: "已结束",
|
|
1342
1337
|
showAll: "显示全部 {count} 个",
|
|
1343
1338
|
showFewer: "收起",
|
|
1344
|
-
noTasksYet: "还没有交出的事",
|
|
1345
1339
|
waitingCount: "{count} 个待你处理",
|
|
1346
1340
|
runningCount: "{count} 个进行中",
|
|
1341
|
+
freshCount: "{count} 个新结果",
|
|
1347
1342
|
standingBy: "待命",
|
|
1348
|
-
noTasksYetHint: "告诉分身你想做什么",
|
|
1349
1343
|
noTasksHere: "分身交出去的任务和团队会列在这里",
|
|
1350
|
-
tellDouble: "和分身说",
|
|
1351
1344
|
deleteTask: "删除这个团队",
|
|
1352
|
-
|
|
1345
|
+
deleteTaskHint: "#{channel} 的消息会一起删除,团队成员会留在你的成员里。",
|
|
1346
|
+
selectTasks: "多选"
|
|
1353
1347
|
};
|
|
1354
1348
|
var ChannelWords;
|
|
1355
1349
|
((ChannelWords) => {
|
|
@@ -1427,7 +1421,7 @@ var ChannelViews;
|
|
|
1427
1421
|
});
|
|
1428
1422
|
if (!known) {
|
|
1429
1423
|
const agent = ChannelsUtil.findAgent(context.service.state.team, agentId);
|
|
1430
|
-
await context.pi.switchSession(opened, { title: agent?.name });
|
|
1424
|
+
await context.pi.switchSession(opened, { title: agent?.name, sessionFile: agent?.sessionFile });
|
|
1431
1425
|
return;
|
|
1432
1426
|
}
|
|
1433
1427
|
const shown = context.pi.switchSession(known).catch(() => {
|
|
@@ -1497,6 +1491,76 @@ function useServerCwd(pi) {
|
|
|
1497
1491
|
}
|
|
1498
1492
|
var SidebarUtil;
|
|
1499
1493
|
((SidebarUtil) => {
|
|
1494
|
+
function needsLook(task, seen) {
|
|
1495
|
+
if (task.status === "waiting") {
|
|
1496
|
+
return true;
|
|
1497
|
+
}
|
|
1498
|
+
if (task.status !== "done" && task.status !== "failed") {
|
|
1499
|
+
return false;
|
|
1500
|
+
}
|
|
1501
|
+
return !!task.endedAt && task.endedAt > (seen.at[task.key] ?? seen.since);
|
|
1502
|
+
}
|
|
1503
|
+
SidebarUtil.needsLook = needsLook;
|
|
1504
|
+
function answering(agents, sessions, opened) {
|
|
1505
|
+
const busy = new Set;
|
|
1506
|
+
for (const session of sessions) {
|
|
1507
|
+
if (!session.isStreaming) {
|
|
1508
|
+
continue;
|
|
1509
|
+
}
|
|
1510
|
+
const agent = agents.find((candidate) => !!session.sessionFile && candidate.sessionFile === session.sessionFile || opened.get(candidate.id) === session.sessionId);
|
|
1511
|
+
if (agent) {
|
|
1512
|
+
busy.add(agent.id);
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
return busy;
|
|
1516
|
+
}
|
|
1517
|
+
SidebarUtil.answering = answering;
|
|
1518
|
+
function watch(before, answering2, inChannel) {
|
|
1519
|
+
const channel = answering2.filter((id) => inChannel.includes(id) || before.channel.includes(id));
|
|
1520
|
+
return { own: answering2.filter((id) => !channel.includes(id)), channel };
|
|
1521
|
+
}
|
|
1522
|
+
SidebarUtil.watch = watch;
|
|
1523
|
+
function toLook(marks, before, now, shown, at, known) {
|
|
1524
|
+
const next = { ...marks };
|
|
1525
|
+
let changed = false;
|
|
1526
|
+
for (const id of before.own) {
|
|
1527
|
+
if (id !== shown && !now.own.includes(id) && !now.channel.includes(id)) {
|
|
1528
|
+
next[id] = at;
|
|
1529
|
+
changed = true;
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
for (const id of Object.keys(next)) {
|
|
1533
|
+
if (id === shown || known && !known.includes(id)) {
|
|
1534
|
+
delete next[id];
|
|
1535
|
+
changed = true;
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
return changed ? next : undefined;
|
|
1539
|
+
}
|
|
1540
|
+
SidebarUtil.toLook = toLook;
|
|
1541
|
+
function lastLines(agents, messages, sessions) {
|
|
1542
|
+
const lines = new Map;
|
|
1543
|
+
const keep = (id, text, at) => {
|
|
1544
|
+
const line = text?.replace(/\s+/g, " ").trim();
|
|
1545
|
+
if (line && at >= (lines.get(id)?.at ?? 0)) {
|
|
1546
|
+
lines.set(id, { text: line, at });
|
|
1547
|
+
}
|
|
1548
|
+
};
|
|
1549
|
+
for (const list of Object.values(messages)) {
|
|
1550
|
+
for (const message of list) {
|
|
1551
|
+
keep(message.author, message.text, message.at);
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
const byFile = new Map(agents.filter((agent) => agent.sessionFile).map((agent) => [agent.sessionFile, agent.id]));
|
|
1555
|
+
for (const session of sessions) {
|
|
1556
|
+
const id = session.sessionFile && byFile.get(session.sessionFile);
|
|
1557
|
+
if (id) {
|
|
1558
|
+
keep(id, session.lastMessage, session.updatedAt);
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
return lines;
|
|
1562
|
+
}
|
|
1563
|
+
SidebarUtil.lastLines = lastLines;
|
|
1500
1564
|
function time(at, language, now = new Date) {
|
|
1501
1565
|
if (!at) {
|
|
1502
1566
|
return "";
|
|
@@ -1511,6 +1575,11 @@ var SidebarUtil;
|
|
|
1511
1575
|
return date.toLocaleDateString(language, { year: "2-digit", month: "numeric", day: "numeric" });
|
|
1512
1576
|
}
|
|
1513
1577
|
SidebarUtil.time = time;
|
|
1578
|
+
function where(cwd) {
|
|
1579
|
+
const remote = /^ssh:\/\/([^/:]+)(?::\d+)?(\/.*)?$/.exec(cwd);
|
|
1580
|
+
return remote ? `${remote[1]}:${decodeURIComponent(remote[2] ?? "/")}` : cwd;
|
|
1581
|
+
}
|
|
1582
|
+
SidebarUtil.where = where;
|
|
1514
1583
|
function folder(cwd) {
|
|
1515
1584
|
const parts = cwd.split(/[\\/]+/).filter(Boolean);
|
|
1516
1585
|
return parts[parts.length - 1] ?? cwd;
|
|
@@ -1672,14 +1741,20 @@ function NewAgentHead({ context }) {
|
|
|
1672
1741
|
function NewAgentPage({ context }) {
|
|
1673
1742
|
const { pi, service, ui } = context;
|
|
1674
1743
|
const { draft } = useUi(ui);
|
|
1744
|
+
const { loaded } = useChannels(service);
|
|
1675
1745
|
const w = ChannelViews.words(pi);
|
|
1676
1746
|
const Pencil = ChannelViews.icon(pi, "Pencil");
|
|
1677
1747
|
const Composer = pi.ui.Composer;
|
|
1748
|
+
const first = React.useRef(true);
|
|
1678
1749
|
React.useEffect(() => {
|
|
1679
|
-
if (!
|
|
1750
|
+
if (!loaded || !first.current) {
|
|
1751
|
+
return;
|
|
1752
|
+
}
|
|
1753
|
+
first.current = false;
|
|
1754
|
+
if (!ui.state.draft) {
|
|
1680
1755
|
newAgent(context);
|
|
1681
1756
|
}
|
|
1682
|
-
}, [
|
|
1757
|
+
}, [loaded, ui, context]);
|
|
1683
1758
|
if (!draft) {
|
|
1684
1759
|
return null;
|
|
1685
1760
|
}
|
|
@@ -2215,7 +2290,6 @@ function ChannelRoom({ context, channelId: fixed }) {
|
|
|
2215
2290
|
const channelId = fixed ?? shown;
|
|
2216
2291
|
const faces = useFaces(state.team);
|
|
2217
2292
|
const w = ChannelViews.words(pi);
|
|
2218
|
-
const list = React.useRef(null);
|
|
2219
2293
|
const channel = state.team.channels.find((candidate) => candidate.id === channelId);
|
|
2220
2294
|
const messages = channel ? state.messages[channel.id] : undefined;
|
|
2221
2295
|
const working = channel ? state.working[channel.id] ?? [] : [];
|
|
@@ -2224,12 +2298,8 @@ function ChannelRoom({ context, channelId: fixed }) {
|
|
|
2224
2298
|
service.messages(channelId);
|
|
2225
2299
|
}
|
|
2226
2300
|
}, [service, channelId]);
|
|
2227
|
-
React.
|
|
2228
|
-
|
|
2229
|
-
if (element) {
|
|
2230
|
-
element.scrollTop = element.scrollHeight;
|
|
2231
|
-
}
|
|
2232
|
-
}, [channelId, messages?.length, working.length]);
|
|
2301
|
+
const sent = React.useMemo(() => messages?.filter((message) => message.author === USER).length ?? 0, [messages]);
|
|
2302
|
+
const list = pi.ui.useChatScroll(sent, channelId);
|
|
2233
2303
|
const Markdown = pi.ui.Markdown;
|
|
2234
2304
|
const Composer = pi.ui.Composer;
|
|
2235
2305
|
const Avatar = pi.ui.Avatar;
|
|
@@ -2339,6 +2409,15 @@ function ChannelRoom({ context, channelId: fixed }) {
|
|
|
2339
2409
|
context.showMembers(true);
|
|
2340
2410
|
}
|
|
2341
2411
|
}
|
|
2412
|
+
],
|
|
2413
|
+
[
|
|
2414
|
+
{
|
|
2415
|
+
key: "make-extension",
|
|
2416
|
+
label: w.makeExtension,
|
|
2417
|
+
detail: w.makeExtensionDetail,
|
|
2418
|
+
icon: ChannelViews.maybeIcon(pi, "Sparkles", null, 16),
|
|
2419
|
+
run: () => void service.post(channel.id, w.makeExtensionAsk).catch((error) => pi.ui.notify(ChannelViews.message(error), "error"))
|
|
2420
|
+
}
|
|
2342
2421
|
]
|
|
2343
2422
|
],
|
|
2344
2423
|
onSend: (text) => service.post(channel.id, text)
|
|
@@ -2347,27 +2426,28 @@ function ChannelRoom({ context, channelId: fixed }) {
|
|
|
2347
2426
|
|
|
2348
2427
|
// web-src/more-menu.tsx
|
|
2349
2428
|
var MARGIN = 8;
|
|
2350
|
-
var FINGER_GAP = 14;
|
|
2351
|
-
function safeArea() {
|
|
2352
|
-
const probe = document.createElement("div");
|
|
2353
|
-
probe.style.cssText = "position:fixed;visibility:hidden;pointer-events:none;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)";
|
|
2354
|
-
document.body.appendChild(probe);
|
|
2355
|
-
const style = getComputedStyle(probe);
|
|
2356
|
-
const area = { top: Number.parseFloat(style.paddingTop) || 0, bottom: Number.parseFloat(style.paddingBottom) || 0 };
|
|
2357
|
-
probe.remove();
|
|
2358
|
-
return area;
|
|
2359
|
-
}
|
|
2360
2429
|
function MoreMenu({ pi, label, items }) {
|
|
2361
2430
|
const w = ChannelViews.words(pi);
|
|
2362
2431
|
const [open, setOpen] = React.useState(false);
|
|
2363
|
-
const anchor = React.useRef({
|
|
2432
|
+
const anchor = React.useRef({
|
|
2433
|
+
right: 0,
|
|
2434
|
+
below: 0,
|
|
2435
|
+
above: 0,
|
|
2436
|
+
finger: undefined
|
|
2437
|
+
});
|
|
2364
2438
|
const root = React.useRef(null);
|
|
2365
2439
|
const menu = React.useRef(null);
|
|
2366
2440
|
const Ellipsis = ChannelViews.icon(pi, "Ellipsis");
|
|
2367
2441
|
const show = React.useCallback((button, at) => {
|
|
2368
2442
|
const box = button.getBoundingClientRect();
|
|
2369
2443
|
const touch = document.documentElement.hasAttribute("data-touch");
|
|
2370
|
-
|
|
2444
|
+
const row = root.current?.parentElement?.getBoundingClientRect() ?? box;
|
|
2445
|
+
anchor.current = {
|
|
2446
|
+
right: box.right,
|
|
2447
|
+
below: at?.y ?? box.bottom,
|
|
2448
|
+
above: at?.y ?? box.top,
|
|
2449
|
+
finger: touch && at ? { ...at, around: { top: row.top, bottom: row.bottom } } : undefined
|
|
2450
|
+
};
|
|
2371
2451
|
setOpen(true);
|
|
2372
2452
|
}, []);
|
|
2373
2453
|
React.useLayoutEffect(() => {
|
|
@@ -2376,23 +2456,15 @@ function MoreMenu({ pi, label, items }) {
|
|
|
2376
2456
|
return;
|
|
2377
2457
|
}
|
|
2378
2458
|
const { right, below, above, finger } = anchor.current;
|
|
2379
|
-
const width = element.offsetWidth;
|
|
2380
|
-
const height = element.offsetHeight;
|
|
2381
2459
|
if (finger) {
|
|
2382
|
-
|
|
2383
|
-
const highest = safe.top + MARGIN;
|
|
2384
|
-
const lowest = window.innerHeight - safe.bottom - MARGIN - height;
|
|
2385
|
-
const over = finger.y - FINGER_GAP - height;
|
|
2386
|
-
const top2 = over >= highest ? over : Math.max(highest, Math.min(finger.y + FINGER_GAP, lowest));
|
|
2387
|
-
element.style.top = `${top2}px`;
|
|
2388
|
-
element.style.left = `${Math.max(MARGIN, Math.min(finger.x - width / 2, window.innerWidth - MARGIN - width))}px`;
|
|
2389
|
-
element.style.transformOrigin = top2 < finger.y ? "center bottom" : "center top";
|
|
2390
|
-
return;
|
|
2460
|
+
return pi.ui.attachMenu(element, finger, () => setOpen(false));
|
|
2391
2461
|
}
|
|
2462
|
+
const width = element.offsetWidth;
|
|
2463
|
+
const height = element.offsetHeight;
|
|
2392
2464
|
const top = below + 4 + height <= window.innerHeight - MARGIN ? below + 4 : Math.max(MARGIN, above - 4 - height);
|
|
2393
2465
|
element.style.top = `${top}px`;
|
|
2394
2466
|
element.style.left = `${Math.max(MARGIN, right - width)}px`;
|
|
2395
|
-
}, [open]);
|
|
2467
|
+
}, [open, pi]);
|
|
2396
2468
|
React.useEffect(() => {
|
|
2397
2469
|
const row = root.current?.parentElement;
|
|
2398
2470
|
const button = root.current?.querySelector(".tac-action");
|
|
@@ -2795,7 +2867,7 @@ class ChannelTaskSource {
|
|
|
2795
2867
|
const last = messages?.at(-1);
|
|
2796
2868
|
if (!last) {
|
|
2797
2869
|
const building = Date.now() - channel.createdAt < BUILDING_MS;
|
|
2798
|
-
return building ? { status: "running", detail: w.building } : { status: "done", detail: channel.topic
|
|
2870
|
+
return building ? { status: "running", detail: w.building } : { status: "done", detail: channel.topic || w.noMessages, endedAt: channel.createdAt };
|
|
2799
2871
|
}
|
|
2800
2872
|
if (last.author === SYSTEM) {
|
|
2801
2873
|
return { status: "waiting", detail: w.yourTurn };
|
|
@@ -2806,7 +2878,7 @@ class ChannelTaskSource {
|
|
|
2806
2878
|
entry(channel, members, faces, working, status, detail, endedAt) {
|
|
2807
2879
|
return {
|
|
2808
2880
|
id: channel.id,
|
|
2809
|
-
title: channel
|
|
2881
|
+
title: taskTitle(channel),
|
|
2810
2882
|
status,
|
|
2811
2883
|
detail,
|
|
2812
2884
|
startedAt: channel.createdAt,
|
|
@@ -2819,10 +2891,19 @@ class ChannelTaskSource {
|
|
|
2819
2891
|
working
|
|
2820
2892
|
}),
|
|
2821
2893
|
open: () => openScene(this.context, channel),
|
|
2822
|
-
menu: () => taskMenu(this.context, channel, working)
|
|
2894
|
+
menu: () => taskMenu(this.context, channel, working),
|
|
2895
|
+
remove: () => deleteTeam(this.context, channel),
|
|
2896
|
+
removeHint: ChannelWords.format(ChannelViews.words(this.context.pi).deleteTaskHint, { channel: channel.name })
|
|
2823
2897
|
};
|
|
2824
2898
|
}
|
|
2825
2899
|
}
|
|
2900
|
+
function taskTitle(channel) {
|
|
2901
|
+
return channel.name;
|
|
2902
|
+
}
|
|
2903
|
+
async function deleteTeam(context, channel) {
|
|
2904
|
+
await context.service.deleteChannel(channel.id);
|
|
2905
|
+
context.pi.ui.closeEditor(`channel:${channel.id}`);
|
|
2906
|
+
}
|
|
2826
2907
|
function openScene(context, channel) {
|
|
2827
2908
|
context.pi.ui.openEditor({
|
|
2828
2909
|
id: `channel:${channel.id}`,
|
|
@@ -2879,15 +2960,13 @@ function taskMenu(context, channel, working) {
|
|
|
2879
2960
|
label: w.deleteTask,
|
|
2880
2961
|
icon: icon("Trash2"),
|
|
2881
2962
|
danger: true,
|
|
2882
|
-
run: act(
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
await service.deleteChannel(channel.id);
|
|
2888
|
-
pi.ui.closeEditor(`channel:${channel.id}`);
|
|
2963
|
+
run: act(() => pi.ui.removeTasks([
|
|
2964
|
+
{
|
|
2965
|
+
title: taskTitle(channel),
|
|
2966
|
+
removeHint: ChannelWords.format(w.deleteTaskHint, { channel: channel.name }),
|
|
2967
|
+
remove: () => deleteTeam(context, channel)
|
|
2889
2968
|
}
|
|
2890
|
-
|
|
2969
|
+
]))
|
|
2891
2970
|
}
|
|
2892
2971
|
]
|
|
2893
2972
|
];
|
|
@@ -2991,30 +3070,34 @@ function ChannelMenu({ context, channel, working }) {
|
|
|
2991
3070
|
}
|
|
2992
3071
|
|
|
2993
3072
|
// web-src/sidebar.tsx
|
|
2994
|
-
function Row({ pi, avatar, title, badge, preview, live, dot, waiting,
|
|
3073
|
+
function Row({ pi, avatar, title, badge, preview, live, dot, waiting, fresh, time, hint, selected, onSelect, more, swipe, check, place }) {
|
|
3074
|
+
const single = !preview && !place;
|
|
3075
|
+
const spinner = dot === "running" && /* @__PURE__ */ React.createElement("span", {
|
|
3076
|
+
className: "tac-spinner ta-spinner"
|
|
3077
|
+
});
|
|
2995
3078
|
const row = /* @__PURE__ */ React.createElement("button", {
|
|
2996
3079
|
type: "button",
|
|
2997
|
-
className: `tac-item${selected ? " tac-selected" : ""}`,
|
|
3080
|
+
className: `tac-item${selected ? " tac-selected" : ""}${single ? " tac-item-single" : ""}`,
|
|
2998
3081
|
"aria-current": selected || undefined,
|
|
2999
3082
|
title: hint,
|
|
3000
3083
|
onClick: onSelect
|
|
3084
|
+
}, check, /* @__PURE__ */ React.createElement("span", {
|
|
3085
|
+
className: "tac-avatar"
|
|
3001
3086
|
}, avatar, /* @__PURE__ */ React.createElement("span", {
|
|
3087
|
+
className: `tac-dot${dot ? ` tac-dot-${dot}` : ""}`
|
|
3088
|
+
})), /* @__PURE__ */ React.createElement("span", {
|
|
3002
3089
|
className: "tac-item-text"
|
|
3003
3090
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
3004
3091
|
className: "tac-item-top"
|
|
3005
3092
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
3006
3093
|
className: "tac-item-title"
|
|
3007
|
-
}, title), badge, /* @__PURE__ */ React.createElement("span", {
|
|
3094
|
+
}, title), badge, single && spinner, /* @__PURE__ */ React.createElement("span", {
|
|
3008
3095
|
className: "tac-item-time"
|
|
3009
|
-
}, time)), /* @__PURE__ */ React.createElement("span", {
|
|
3096
|
+
}, time)), !single && /* @__PURE__ */ React.createElement("span", {
|
|
3010
3097
|
className: "tac-item-bottom"
|
|
3011
|
-
},
|
|
3012
|
-
className: `
|
|
3013
|
-
}
|
|
3014
|
-
className: `tac-item-preview${live ? " tac-live" : ""}${waiting ? " tac-waiting" : ""}`
|
|
3015
|
-
}, preview), fresh && /* @__PURE__ */ React.createElement("span", {
|
|
3016
|
-
className: "tac-fresh"
|
|
3017
|
-
}))));
|
|
3098
|
+
}, place, /* @__PURE__ */ React.createElement("span", {
|
|
3099
|
+
className: `tac-item-preview${live ? " tac-now" : ""}${waiting ? " tac-waiting" : ""}${fresh ? " tac-fresh" : ""}`
|
|
3100
|
+
}, preview), spinner)));
|
|
3018
3101
|
const SwipeRow = pi.ui.SwipeRow;
|
|
3019
3102
|
const className = `tac-item-row${selected ? " tac-selected" : ""}`;
|
|
3020
3103
|
if (SwipeRow && (more || swipe)) {
|
|
@@ -3116,6 +3199,7 @@ function SidebarHead({ context }) {
|
|
|
3116
3199
|
}
|
|
3117
3200
|
var FOLDED_KEY = "ta-channels.folded";
|
|
3118
3201
|
var BY_DIRECTORY_KEY = "ui.membersByDirectory";
|
|
3202
|
+
var NO_SESSIONS = [];
|
|
3119
3203
|
var ENDED_SHOWN = 5;
|
|
3120
3204
|
function useFolded() {
|
|
3121
3205
|
const [folded, setFolded] = React.useState(() => {
|
|
@@ -3167,6 +3251,7 @@ function Section({
|
|
|
3167
3251
|
folded,
|
|
3168
3252
|
onFold,
|
|
3169
3253
|
action,
|
|
3254
|
+
alert,
|
|
3170
3255
|
children
|
|
3171
3256
|
}) {
|
|
3172
3257
|
const closed = folded.has(id);
|
|
@@ -3180,98 +3265,198 @@ function Section({
|
|
|
3180
3265
|
"aria-expanded": !closed,
|
|
3181
3266
|
onClick: () => onFold(id)
|
|
3182
3267
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
3183
|
-
className: "tac-section-chevron",
|
|
3184
|
-
"aria-hidden": "true"
|
|
3185
|
-
}), /* @__PURE__ */ React.createElement("span", {
|
|
3186
3268
|
className: "tac-section-title"
|
|
3187
|
-
}, title), /* @__PURE__ */ React.createElement("span", {
|
|
3269
|
+
}, title), closed && count > 0 && /* @__PURE__ */ React.createElement("span", {
|
|
3188
3270
|
className: "tac-section-count"
|
|
3189
|
-
}, count)
|
|
3271
|
+
}, count), closed && alert && /* @__PURE__ */ React.createElement("span", {
|
|
3272
|
+
className: "tac-section-alert"
|
|
3273
|
+
}), /* @__PURE__ */ React.createElement("span", {
|
|
3274
|
+
className: "tac-section-chevron",
|
|
3275
|
+
"aria-hidden": "true"
|
|
3276
|
+
})), !closed && action), !closed && /* @__PURE__ */ React.createElement("div", {
|
|
3190
3277
|
className: "tac-section-body"
|
|
3191
3278
|
}, children));
|
|
3192
3279
|
}
|
|
3193
|
-
var
|
|
3194
|
-
function
|
|
3280
|
+
var SEEN_KEY = "ui.seenTasks";
|
|
3281
|
+
function useSeenTasks(storage, tasks) {
|
|
3282
|
+
const [seen, setSeen] = React.useState();
|
|
3283
|
+
React.useEffect(() => {
|
|
3284
|
+
let live = true;
|
|
3285
|
+
const read = () => storage.get(SEEN_KEY).then((kept) => {
|
|
3286
|
+
if (!live) {
|
|
3287
|
+
return;
|
|
3288
|
+
}
|
|
3289
|
+
const next = kept ?? { since: Date.now(), at: {} };
|
|
3290
|
+
setSeen(next);
|
|
3291
|
+
if (!kept) {
|
|
3292
|
+
storage.set(SEEN_KEY, next).catch(() => {
|
|
3293
|
+
return;
|
|
3294
|
+
});
|
|
3295
|
+
}
|
|
3296
|
+
}, () => {
|
|
3297
|
+
return;
|
|
3298
|
+
});
|
|
3299
|
+
read();
|
|
3300
|
+
const stop = storage.onChange((keys) => keys.includes(SEEN_KEY) && void read());
|
|
3301
|
+
return () => {
|
|
3302
|
+
live = false;
|
|
3303
|
+
stop();
|
|
3304
|
+
};
|
|
3305
|
+
}, [storage]);
|
|
3306
|
+
const needsLook = (task) => SidebarUtil.needsLook(task, seen ?? { since: Number.POSITIVE_INFINITY, at: {} });
|
|
3307
|
+
const open = (task) => {
|
|
3308
|
+
if (seen) {
|
|
3309
|
+
const keys = new Set(tasks.map((each) => each.key));
|
|
3310
|
+
const at = Object.fromEntries(Object.entries(seen.at).filter(([key]) => keys.has(key)));
|
|
3311
|
+
const next = { since: seen.since, at: { ...at, [task.key]: Date.now() } };
|
|
3312
|
+
setSeen(next);
|
|
3313
|
+
storage.set(SEEN_KEY, next).catch(() => {
|
|
3314
|
+
return;
|
|
3315
|
+
});
|
|
3316
|
+
}
|
|
3317
|
+
task.open();
|
|
3318
|
+
};
|
|
3319
|
+
return { needsLook, open };
|
|
3320
|
+
}
|
|
3321
|
+
var TO_LOOK_KEY = "ui.agentsToLook";
|
|
3322
|
+
var DOUBLE_LOOK = "double";
|
|
3323
|
+
var NO_MARKS = {};
|
|
3324
|
+
var NOBODY = { own: [], channel: [] };
|
|
3325
|
+
function useVisible() {
|
|
3326
|
+
const [visible, setVisible] = React.useState(() => document.visibilityState === "visible");
|
|
3327
|
+
React.useEffect(() => {
|
|
3328
|
+
const change = () => setVisible(document.visibilityState === "visible");
|
|
3329
|
+
document.addEventListener("visibilitychange", change);
|
|
3330
|
+
return () => document.removeEventListener("visibilitychange", change);
|
|
3331
|
+
}, []);
|
|
3332
|
+
return visible;
|
|
3333
|
+
}
|
|
3334
|
+
function useToLook(storage, answering, inChannel, shown, known) {
|
|
3335
|
+
const [marks, setMarks] = useStored(storage, TO_LOOK_KEY, NO_MARKS);
|
|
3336
|
+
const looking = useVisible() ? shown : undefined;
|
|
3337
|
+
const before = React.useRef(NOBODY);
|
|
3338
|
+
const latest = React.useRef(marks);
|
|
3339
|
+
latest.current = marks;
|
|
3340
|
+
const setRef = React.useRef(setMarks);
|
|
3341
|
+
setRef.current = setMarks;
|
|
3342
|
+
const key = JSON.stringify([answering, inChannel, looking ?? null, known ?? null]);
|
|
3343
|
+
React.useEffect(() => {
|
|
3344
|
+
const [answeringNow, inChannelNow, lookingNow, knownNow] = JSON.parse(key);
|
|
3345
|
+
const now = SidebarUtil.watch(before.current, answeringNow, inChannelNow);
|
|
3346
|
+
const next = SidebarUtil.toLook(latest.current, before.current, now, lookingNow ?? undefined, Date.now(), knownNow ?? undefined);
|
|
3347
|
+
before.current = now;
|
|
3348
|
+
if (next) {
|
|
3349
|
+
setRef.current(next);
|
|
3350
|
+
}
|
|
3351
|
+
}, [key]);
|
|
3352
|
+
return marks;
|
|
3353
|
+
}
|
|
3354
|
+
function useSessionLines(context, changed) {
|
|
3195
3355
|
const { pi } = context;
|
|
3356
|
+
const [lines, setLines] = React.useState(context.sessionLines);
|
|
3357
|
+
React.useEffect(() => {
|
|
3358
|
+
let live = true;
|
|
3359
|
+
const read = () => Promise.all([pi.server.listSessions().catch(() => []), pi.server.listSavedSessions().catch(() => [])]).then(([open, saved]) => {
|
|
3360
|
+
context.sessionLines = [...saved, ...open];
|
|
3361
|
+
if (live) {
|
|
3362
|
+
setLines(context.sessionLines);
|
|
3363
|
+
}
|
|
3364
|
+
});
|
|
3365
|
+
read();
|
|
3366
|
+
const again = () => document.visibilityState === "visible" && void read();
|
|
3367
|
+
document.addEventListener("visibilitychange", again);
|
|
3368
|
+
return () => {
|
|
3369
|
+
live = false;
|
|
3370
|
+
document.removeEventListener("visibilitychange", again);
|
|
3371
|
+
};
|
|
3372
|
+
}, [context, pi, changed]);
|
|
3373
|
+
return lines;
|
|
3374
|
+
}
|
|
3375
|
+
function useTaskSelection(pi, tasks) {
|
|
3376
|
+
const [chosen, setChosen] = React.useState();
|
|
3377
|
+
const removable = tasks.filter((task) => task.remove);
|
|
3378
|
+
const selected = chosen ? removable.filter((task) => chosen.has(task.key)) : [];
|
|
3379
|
+
const selecting = !!chosen && removable.length > 0;
|
|
3380
|
+
React.useEffect(() => {
|
|
3381
|
+
if (chosen && removable.length === 0) {
|
|
3382
|
+
setChosen(undefined);
|
|
3383
|
+
}
|
|
3384
|
+
}, [chosen, removable.length]);
|
|
3385
|
+
return {
|
|
3386
|
+
selecting,
|
|
3387
|
+
selected,
|
|
3388
|
+
removable,
|
|
3389
|
+
isChosen: (task) => !!chosen?.has(task.key),
|
|
3390
|
+
start: (task) => setChosen(new Set([task.key])),
|
|
3391
|
+
toggle: (task) => setChosen((before) => {
|
|
3392
|
+
const next = new Set(before);
|
|
3393
|
+
if (!next.delete(task.key)) {
|
|
3394
|
+
next.add(task.key);
|
|
3395
|
+
}
|
|
3396
|
+
return next;
|
|
3397
|
+
}),
|
|
3398
|
+
selectAll: (all) => setChosen(new Set(all ? removable.map((task) => task.key) : [])),
|
|
3399
|
+
done: () => setChosen(undefined),
|
|
3400
|
+
removeSelected: async () => {
|
|
3401
|
+
if (await pi.ui.removeTasks(selected)) {
|
|
3402
|
+
setChosen(undefined);
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
};
|
|
3406
|
+
}
|
|
3407
|
+
function TaskItem({ context, task, selection, seen }) {
|
|
3408
|
+
const { pi } = context;
|
|
3409
|
+
const w = ChannelViews.words(pi);
|
|
3196
3410
|
const Own = task.icon;
|
|
3197
3411
|
const ListTodo = pi.ui.icons.ListTodo ?? ChannelViews.icon(pi, "List");
|
|
3198
|
-
const
|
|
3199
|
-
|
|
3200
|
-
|
|
3412
|
+
const ListChecks = ChannelViews.icon(pi, "ListChecks");
|
|
3413
|
+
const SelectCheck = pi.ui.SelectCheck;
|
|
3414
|
+
const removable = !!task.remove && !!SelectCheck;
|
|
3415
|
+
const selecting = selection.selecting && !!SelectCheck;
|
|
3416
|
+
const items = () => [
|
|
3417
|
+
...(task.menu?.() ?? []).map((section) => section.map(({ icon: Icon, ...item }) => ({ ...item, icon: Icon && /* @__PURE__ */ React.createElement(Icon, {
|
|
3418
|
+
size: 15
|
|
3419
|
+
}) }))),
|
|
3420
|
+
...removable ? [[{ key: "select", label: w.selectTasks, icon: /* @__PURE__ */ React.createElement(ListChecks, {
|
|
3421
|
+
size: 15
|
|
3422
|
+
}), run: () => selection.start(task) }]] : []
|
|
3423
|
+
];
|
|
3424
|
+
const swipe = task.remove && !selecting ? [{ key: "delete", label: w.delete, danger: true, run: () => void pi.ui.removeTasks([task]) }] : undefined;
|
|
3201
3425
|
return /* @__PURE__ */ React.createElement(Row, {
|
|
3202
3426
|
pi,
|
|
3203
3427
|
avatar: Own ? /* @__PURE__ */ React.createElement("span", {
|
|
3204
3428
|
className: "tac-task-face"
|
|
3205
3429
|
}, /* @__PURE__ */ React.createElement(Own, {
|
|
3206
|
-
size:
|
|
3430
|
+
size: 40
|
|
3207
3431
|
})) : /* @__PURE__ */ React.createElement("span", {
|
|
3208
3432
|
className: "tac-task-face tac-task-glyph"
|
|
3209
3433
|
}, /* @__PURE__ */ React.createElement(ListTodo, {
|
|
3210
3434
|
size: 17
|
|
3211
3435
|
})),
|
|
3212
3436
|
title: task.title,
|
|
3213
|
-
dot:
|
|
3437
|
+
dot: task.status === "running" ? "running" : seen.needsLook(task) ? "attention" : undefined,
|
|
3214
3438
|
preview: task.detail ?? "",
|
|
3215
3439
|
waiting: task.status === "waiting",
|
|
3216
3440
|
time: SidebarUtil.time(task.endedAt ?? task.startedAt, pi.ui.language),
|
|
3217
3441
|
hint: task.title,
|
|
3218
|
-
selected:
|
|
3219
|
-
onSelect: () => task.open(),
|
|
3220
|
-
more: task.menu && /* @__PURE__ */ React.createElement(MoreMenu, {
|
|
3442
|
+
selected: selecting && selection.isChosen(task),
|
|
3443
|
+
onSelect: selecting ? () => removable && selection.toggle(task) : () => seen.open(task),
|
|
3444
|
+
more: !selecting && (task.menu || removable) && /* @__PURE__ */ React.createElement(MoreMenu, {
|
|
3221
3445
|
pi,
|
|
3222
3446
|
label: task.title,
|
|
3223
3447
|
items
|
|
3448
|
+
}),
|
|
3449
|
+
swipe,
|
|
3450
|
+
check: selecting && /* @__PURE__ */ React.createElement(SelectCheck, {
|
|
3451
|
+
checked: selection.isChosen(task),
|
|
3452
|
+
disabled: !removable
|
|
3224
3453
|
})
|
|
3225
3454
|
});
|
|
3226
3455
|
}
|
|
3227
|
-
function TeamPicture({ pi }) {
|
|
3228
|
-
const Picture = pi.ui.Picture;
|
|
3229
|
-
const rows = [
|
|
3230
|
-
["ta-pic-mark", 70, "ta-pic-accent"],
|
|
3231
|
-
["ta-pic-plus", 52, "ta-pic-pane"],
|
|
3232
|
-
["ta-pic-dot", 84, "ta-pic-pane"]
|
|
3233
|
-
];
|
|
3234
|
-
return /* @__PURE__ */ React.createElement(Picture, null, /* @__PURE__ */ React.createElement("rect", {
|
|
3235
|
-
className: "ta-pic-pane",
|
|
3236
|
-
x: "1",
|
|
3237
|
-
y: "1",
|
|
3238
|
-
width: "158",
|
|
3239
|
-
height: "17",
|
|
3240
|
-
rx: "9"
|
|
3241
|
-
}), /* @__PURE__ */ React.createElement("text", {
|
|
3242
|
-
className: "ta-pic-text",
|
|
3243
|
-
x: "11",
|
|
3244
|
-
y: "12.5"
|
|
3245
|
-
}, "# team"), rows.map(([face, width, bubble], index) => {
|
|
3246
|
-
const y = 26 + index * 22;
|
|
3247
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
3248
|
-
key: y
|
|
3249
|
-
}, /* @__PURE__ */ React.createElement("circle", {
|
|
3250
|
-
className: face,
|
|
3251
|
-
cx: "20",
|
|
3252
|
-
cy: y + 7,
|
|
3253
|
-
r: "6.5"
|
|
3254
|
-
}), /* @__PURE__ */ React.createElement("rect", {
|
|
3255
|
-
className: bubble,
|
|
3256
|
-
x: "33",
|
|
3257
|
-
y,
|
|
3258
|
-
width,
|
|
3259
|
-
height: "14",
|
|
3260
|
-
rx: "7"
|
|
3261
|
-
}), /* @__PURE__ */ React.createElement("rect", {
|
|
3262
|
-
className: index === 0 ? "ta-pic-mark ta-pic-soft" : "ta-pic-line",
|
|
3263
|
-
x: "40",
|
|
3264
|
-
y: y + 4.5,
|
|
3265
|
-
width: width - 22,
|
|
3266
|
-
height: "5",
|
|
3267
|
-
rx: "2.5"
|
|
3268
|
-
}));
|
|
3269
|
-
}));
|
|
3270
|
-
}
|
|
3271
3456
|
function AgentsSidebar({ context }) {
|
|
3272
3457
|
const { pi, service, ui } = context;
|
|
3273
3458
|
const state = useChannels(service);
|
|
3274
|
-
const { query, draft, channelId, fresh } = useUi(ui);
|
|
3459
|
+
const { query, draft, channelId, fresh: unread } = useUi(ui);
|
|
3275
3460
|
const w = ChannelViews.words(pi);
|
|
3276
3461
|
const faces = useFaces(state.team);
|
|
3277
3462
|
const serverCwd = useServerCwd(pi) ?? "";
|
|
@@ -3290,11 +3475,25 @@ function AgentsSidebar({ context }) {
|
|
|
3290
3475
|
const FolderTree = pi.ui.icons.FolderTree ?? Folder;
|
|
3291
3476
|
const HostTag = pi.ui.HostTag;
|
|
3292
3477
|
const ListTodo = pi.ui.icons.ListTodo ?? ChannelViews.icon(pi, "List");
|
|
3478
|
+
const ChevronRight = ChannelViews.icon(pi, "ChevronRight");
|
|
3293
3479
|
const Avatar = pi.ui.Avatar;
|
|
3294
3480
|
const Empty = pi.ui.Empty;
|
|
3295
3481
|
const Skeleton = pi.ui.Skeleton;
|
|
3296
3482
|
const { team, working } = state;
|
|
3297
3483
|
const own = React.useMemo(() => ChannelsUtil.ownChannels(team), [team]);
|
|
3484
|
+
const seen = useSeenTasks(pi.storage, tasks);
|
|
3485
|
+
const said = Object.values(state.messages).reduce((count, list) => count + list.length, 0);
|
|
3486
|
+
const sessionLines = useSessionLines(context, `${said}:${Object.values(working).flat().join(",")}:${team.agents.length}`);
|
|
3487
|
+
const openSessions = pi.ui.useSessions?.() ?? NO_SESSIONS;
|
|
3488
|
+
const lastLines = React.useMemo(() => sessionLines && SidebarUtil.lastLines(team.agents, state.messages, [...sessionLines, ...openSessions]), [team.agents, state.messages, sessionLines, openSessions]);
|
|
3489
|
+
const answering = React.useMemo(() => SidebarUtil.answering(team.agents, openSessions, context.sessions), [team.agents, openSessions, context.sessions]);
|
|
3490
|
+
const doubleBusy = !!double?.busy;
|
|
3491
|
+
const inChannel = Object.values(working).flat();
|
|
3492
|
+
const pageShown = !!double?.shown || !!channelPage?.shown || !!agentPage?.shown;
|
|
3493
|
+
const shownFile = shownSession ? openSessions.find((session) => session.sessionId === shownSession)?.sessionFile : undefined;
|
|
3494
|
+
const shownAgent = pageShown ? undefined : team.agents.find((agent) => !!shownSession && context.sessions.get(agent.id) === shownSession || !!shownFile && agent.sessionFile === shownFile)?.id;
|
|
3495
|
+
const toLook = useToLook(pi.storage, [...answering, ...doubleBusy ? [DOUBLE_LOOK] : []], inChannel, double?.shown ? DOUBLE_LOOK : shownAgent, state.loaded ? [DOUBLE_LOOK, ...team.agents.map((agent) => agent.id)] : undefined);
|
|
3496
|
+
const doubleFresh = !doubleBusy && !!toLook[DOUBLE_LOOK];
|
|
3298
3497
|
React.useEffect(() => {
|
|
3299
3498
|
for (const channel of own) {
|
|
3300
3499
|
service.messages(channel.id).catch(() => {
|
|
@@ -3303,19 +3502,14 @@ function AgentsSidebar({ context }) {
|
|
|
3303
3502
|
}
|
|
3304
3503
|
}, [service, own]);
|
|
3305
3504
|
const name = (id) => ChannelsUtil.authorName(team, id, { user: w.you, ta: w.ta });
|
|
3306
|
-
const lastSaid = new Map;
|
|
3307
|
-
for (const messages of Object.values(state.messages)) {
|
|
3308
|
-
for (const message of messages) {
|
|
3309
|
-
lastSaid.set(message.author, Math.max(lastSaid.get(message.author) ?? 0, message.at));
|
|
3310
|
-
}
|
|
3311
|
-
}
|
|
3312
3505
|
const shownTasks = tasks.filter((task) => SidebarUtil.matches(query, task.title, task.detail));
|
|
3313
3506
|
const groups = SidebarUtil.taskGroups(shownTasks);
|
|
3507
|
+
const selection = useTaskSelection(pi, shownTasks);
|
|
3508
|
+
const SelectBar = pi.ui.SelectBar;
|
|
3314
3509
|
const channels = ChannelsUtil.pinnedFirst(own).filter((channel) => SidebarUtil.matches(query, channel.name, channel.topic, ...membersOf(team, channel).map((agent) => agent.name)));
|
|
3315
3510
|
const agents = ChannelsUtil.standing(team).filter((agent) => SidebarUtil.matches(query, agent.name, agent.role));
|
|
3316
3511
|
const directories = SidebarUtil.directories(agents, serverCwd);
|
|
3317
3512
|
const memberGroups = SidebarUtil.memberGroups(agents, serverCwd, byDirectory && !query.trim());
|
|
3318
|
-
const pageShown = !!double?.shown || !!channelPage?.shown || !!agentPage?.shown;
|
|
3319
3513
|
const openAgent = (agent) => {
|
|
3320
3514
|
setOpening(agent.id);
|
|
3321
3515
|
ChannelViews.openAgent(context, agent.id).catch((error) => pi.ui.notify(ChannelViews.message(error), "error")).finally(() => setOpening(undefined));
|
|
@@ -3324,13 +3518,14 @@ function AgentsSidebar({ context }) {
|
|
|
3324
3518
|
const sessionId = context.sessions.get(agent.id);
|
|
3325
3519
|
return opening === agent.id || !pageShown && !!sessionId && sessionId === shownSession;
|
|
3326
3520
|
};
|
|
3327
|
-
const ended = allEnded ? groups.ended : groups.ended.slice(0, ENDED_SHOWN);
|
|
3521
|
+
const ended = allEnded || selection.selecting ? groups.ended : groups.ended.slice(0, ENDED_SHOWN);
|
|
3328
3522
|
const nothing = query && shownTasks.length === 0 && channels.length === 0 && agents.length === 0;
|
|
3329
|
-
const blank = state.loaded && !query && !draft && tasks.length === 0 && own.length === 0 && ChannelsUtil.standing(team).length === 0;
|
|
3330
3523
|
const running = tasks.filter((task) => task.status === "running").length;
|
|
3331
3524
|
const waiting = tasks.filter((task) => task.status === "waiting").length;
|
|
3525
|
+
const fresh = tasks.filter((task) => task.status !== "waiting" && seen.needsLook(task)).length;
|
|
3332
3526
|
const doubleLine = [
|
|
3333
3527
|
waiting > 0 ? ChannelWords.format(w.waitingCount, { count: String(waiting) }) : "",
|
|
3528
|
+
fresh > 0 ? ChannelWords.format(w.freshCount, { count: String(fresh) }) : "",
|
|
3334
3529
|
running > 0 ? ChannelWords.format(w.runningCount, { count: String(running) }) : ""
|
|
3335
3530
|
].filter(Boolean).join(" · ");
|
|
3336
3531
|
return /* @__PURE__ */ React.createElement("div", {
|
|
@@ -3347,16 +3542,28 @@ function AgentsSidebar({ context }) {
|
|
|
3347
3542
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
3348
3543
|
className: "tac-double-face"
|
|
3349
3544
|
}, /* @__PURE__ */ React.createElement(Avatar, {
|
|
3350
|
-
size:
|
|
3545
|
+
size: 42,
|
|
3546
|
+
mood: doubleBusy ? "working" : "idle"
|
|
3547
|
+
}), /* @__PURE__ */ React.createElement("span", {
|
|
3548
|
+
className: `tac-dot${waiting > 0 || fresh > 0 || doubleFresh ? " tac-dot-attention" : running > 0 || doubleBusy ? " tac-dot-running" : ""}`
|
|
3351
3549
|
})), /* @__PURE__ */ React.createElement("span", {
|
|
3352
3550
|
className: "tac-double-text"
|
|
3353
3551
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
3354
|
-
className: "tac-double-
|
|
3355
|
-
}, double.title), /* @__PURE__ */ React.createElement("span", {
|
|
3356
|
-
className: `tac-double-line${waiting > 0 ? " tac-waiting" : ""}`
|
|
3552
|
+
className: "tac-double-top"
|
|
3357
3553
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
3358
|
-
className:
|
|
3359
|
-
}
|
|
3554
|
+
className: "tac-double-name"
|
|
3555
|
+
}, double.title), !doubleLine && double.preview && /* @__PURE__ */ React.createElement("span", {
|
|
3556
|
+
className: "tac-item-time"
|
|
3557
|
+
}, SidebarUtil.time(double.preview.at, pi.ui.language))), /* @__PURE__ */ React.createElement("span", {
|
|
3558
|
+
className: `tac-double-line${waiting > 0 || fresh > 0 ? " tac-waiting" : doubleFresh && !doubleLine ? " tac-fresh" : ""}`
|
|
3559
|
+
}, /* @__PURE__ */ React.createElement("span", null, doubleLine || double.preview?.text || w.standingBy), (doubleBusy || running > 0) && /* @__PURE__ */ React.createElement("span", {
|
|
3560
|
+
className: "tac-spinner ta-spinner"
|
|
3561
|
+
}))), /* @__PURE__ */ React.createElement("span", {
|
|
3562
|
+
className: "tac-double-go",
|
|
3563
|
+
"aria-hidden": "true"
|
|
3564
|
+
}, /* @__PURE__ */ React.createElement(ChevronRight, {
|
|
3565
|
+
size: 18
|
|
3566
|
+
}))), double.menu && /* @__PURE__ */ React.createElement(MoreMenu, {
|
|
3360
3567
|
pi,
|
|
3361
3568
|
label: double.title,
|
|
3362
3569
|
items: () => (double.menu?.() ?? []).map((section) => section.map(({ icon: Icon, ...item }) => ({ ...item, icon: Icon && /* @__PURE__ */ React.createElement(Icon, {
|
|
@@ -3366,7 +3573,7 @@ function AgentsSidebar({ context }) {
|
|
|
3366
3573
|
pi,
|
|
3367
3574
|
avatar: /* @__PURE__ */ React.createElement(Face, {
|
|
3368
3575
|
face: draft.face,
|
|
3369
|
-
size:
|
|
3576
|
+
size: 40
|
|
3370
3577
|
}),
|
|
3371
3578
|
title: draft.name || w.newAgentName,
|
|
3372
3579
|
preview: w.notStarted,
|
|
@@ -3377,67 +3584,26 @@ function AgentsSidebar({ context }) {
|
|
|
3377
3584
|
rows: 4
|
|
3378
3585
|
}), nothing && /* @__PURE__ */ React.createElement(Empty, {
|
|
3379
3586
|
title: w.noMatch
|
|
3380
|
-
}),
|
|
3381
|
-
picture: /* @__PURE__ */ React.createElement(TeamPicture, {
|
|
3382
|
-
pi
|
|
3383
|
-
}),
|
|
3384
|
-
title: w.noTasksYet,
|
|
3385
|
-
hint: w.noTasksYetHint
|
|
3386
|
-
}, double && /* @__PURE__ */ React.createElement("button", {
|
|
3387
|
-
type: "button",
|
|
3388
|
-
className: "tac-button tac-team-up",
|
|
3389
|
-
onClick: () => pi.ui.showView(DOUBLE_PAGE)
|
|
3390
|
-
}, w.tellDouble)), state.loaded && !blank && !query && tasks.length === 0 && /* @__PURE__ */ React.createElement(Section, {
|
|
3587
|
+
}), state.loaded && (shownTasks.length > 0 || !query && tasks.length === 0) && /* @__PURE__ */ React.createElement(Section, {
|
|
3391
3588
|
id: "tasks",
|
|
3392
3589
|
title: w.tasks,
|
|
3393
|
-
count:
|
|
3590
|
+
count: shownTasks.length,
|
|
3394
3591
|
folded,
|
|
3395
|
-
onFold: fold
|
|
3396
|
-
|
|
3592
|
+
onFold: fold,
|
|
3593
|
+
alert: shownTasks.some((task) => seen.needsLook(task))
|
|
3594
|
+
}, shownTasks.length === 0 && /* @__PURE__ */ React.createElement("button", {
|
|
3397
3595
|
type: "button",
|
|
3398
3596
|
className: "tac-tasks-empty",
|
|
3399
3597
|
onClick: () => pi.ui.showView(DOUBLE_PAGE)
|
|
3400
|
-
}, /* @__PURE__ */ React.createElement("span", {
|
|
3401
|
-
className: "tac-task-face tac-task-glyph"
|
|
3402
3598
|
}, /* @__PURE__ */ React.createElement(ListTodo, {
|
|
3403
|
-
size:
|
|
3404
|
-
})
|
|
3405
|
-
className: "tac-item-text"
|
|
3406
|
-
}, /* @__PURE__ */ React.createElement("span", {
|
|
3407
|
-
className: "tac-item-title"
|
|
3408
|
-
}, w.noTasksYet), /* @__PURE__ */ React.createElement("span", {
|
|
3409
|
-
className: "tac-item-preview"
|
|
3410
|
-
}, w.noTasksHere)))), groups.waiting.length > 0 && /* @__PURE__ */ React.createElement(Section, {
|
|
3411
|
-
id: "waiting",
|
|
3412
|
-
title: w.waitingSection,
|
|
3413
|
-
count: groups.waiting.length,
|
|
3414
|
-
folded,
|
|
3415
|
-
onFold: fold
|
|
3416
|
-
}, groups.waiting.map((task) => /* @__PURE__ */ React.createElement(TaskItem, {
|
|
3417
|
-
key: task.key,
|
|
3418
|
-
context,
|
|
3419
|
-
task
|
|
3420
|
-
}))), groups.running.length > 0 && /* @__PURE__ */ React.createElement(Section, {
|
|
3421
|
-
id: "running",
|
|
3422
|
-
title: w.runningSection,
|
|
3423
|
-
count: groups.running.length,
|
|
3424
|
-
folded,
|
|
3425
|
-
onFold: fold
|
|
3426
|
-
}, groups.running.map((task) => /* @__PURE__ */ React.createElement(TaskItem, {
|
|
3427
|
-
key: task.key,
|
|
3428
|
-
context,
|
|
3429
|
-
task
|
|
3430
|
-
}))), groups.ended.length > 0 && /* @__PURE__ */ React.createElement(Section, {
|
|
3431
|
-
id: "ended",
|
|
3432
|
-
title: w.endedSection,
|
|
3433
|
-
count: groups.ended.length,
|
|
3434
|
-
folded,
|
|
3435
|
-
onFold: fold
|
|
3436
|
-
}, ended.map((task) => /* @__PURE__ */ React.createElement(TaskItem, {
|
|
3599
|
+
size: 14
|
|
3600
|
+
}), /* @__PURE__ */ React.createElement("span", null, w.noTasksHere)), [...groups.waiting, ...groups.running, ...ended].map((task) => /* @__PURE__ */ React.createElement(TaskItem, {
|
|
3437
3601
|
key: task.key,
|
|
3438
3602
|
context,
|
|
3439
|
-
task
|
|
3440
|
-
|
|
3603
|
+
task,
|
|
3604
|
+
selection,
|
|
3605
|
+
seen
|
|
3606
|
+
})), groups.ended.length > ENDED_SHOWN && !selection.selecting && /* @__PURE__ */ React.createElement("button", {
|
|
3441
3607
|
type: "button",
|
|
3442
3608
|
className: "tac-show-all",
|
|
3443
3609
|
onClick: () => setAllEnded(!allEnded)
|
|
@@ -3447,6 +3613,7 @@ function AgentsSidebar({ context }) {
|
|
|
3447
3613
|
count: agents.length,
|
|
3448
3614
|
folded,
|
|
3449
3615
|
onFold: fold,
|
|
3616
|
+
alert: agents.some((agent) => !!toLook[agent.id]),
|
|
3450
3617
|
action: directories > 1 && /* @__PURE__ */ React.createElement("button", {
|
|
3451
3618
|
type: "button",
|
|
3452
3619
|
className: "tac-section-action",
|
|
@@ -3468,30 +3635,36 @@ function AgentsSidebar({ context }) {
|
|
|
3468
3635
|
location: group.cwd
|
|
3469
3636
|
})), group.agents.map((agent) => {
|
|
3470
3637
|
const where = team.channels.find((channel) => working[channel.id]?.includes(agent.id));
|
|
3638
|
+
const cwd = agent.cwd ?? serverCwd;
|
|
3639
|
+
const last = lastLines?.get(agent.id);
|
|
3640
|
+
const line = lastLines ? last?.text ?? w.noMessages : "";
|
|
3641
|
+
const busy = !!where || answering.has(agent.id);
|
|
3642
|
+
const unseen = !busy && !!toLook[agent.id];
|
|
3471
3643
|
return /* @__PURE__ */ React.createElement(Row, {
|
|
3472
3644
|
pi,
|
|
3473
3645
|
key: agent.id,
|
|
3474
3646
|
avatar: /* @__PURE__ */ React.createElement(AgentAvatar, {
|
|
3475
3647
|
agent,
|
|
3476
3648
|
faces,
|
|
3477
|
-
size:
|
|
3478
|
-
working:
|
|
3649
|
+
size: 40,
|
|
3650
|
+
working: busy
|
|
3479
3651
|
}),
|
|
3480
3652
|
title: agent.name,
|
|
3481
|
-
|
|
3482
|
-
location:
|
|
3653
|
+
place: /* @__PURE__ */ React.createElement(HostTag, {
|
|
3654
|
+
location: cwd
|
|
3483
3655
|
}),
|
|
3484
|
-
preview: where ? ChannelWords.format(w.answeringIn, { channel: where.name }) :
|
|
3485
|
-
live:
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3656
|
+
preview: where ? ChannelWords.format(w.answeringIn, { channel: where.name }) : line,
|
|
3657
|
+
live: busy,
|
|
3658
|
+
fresh: unseen,
|
|
3659
|
+
dot: busy ? "running" : unseen ? "attention" : undefined,
|
|
3660
|
+
time: lastLines ? SidebarUtil.time(last?.at ?? agent.createdAt, pi.ui.language) : "",
|
|
3661
|
+
hint: SidebarUtil.where(cwd),
|
|
3489
3662
|
selected: agentSelected(agent),
|
|
3490
3663
|
onSelect: () => openAgent(agent),
|
|
3491
3664
|
more: /* @__PURE__ */ React.createElement(AgentMenu, {
|
|
3492
3665
|
context,
|
|
3493
3666
|
agent,
|
|
3494
|
-
cwd
|
|
3667
|
+
cwd,
|
|
3495
3668
|
working: !!where
|
|
3496
3669
|
}),
|
|
3497
3670
|
swipe: swipeDelete(pi, () => deleteAgent(context, agent))
|
|
@@ -3501,7 +3674,8 @@ ${agent.cwd ?? serverCwd}`,
|
|
|
3501
3674
|
title: w.channelsSection,
|
|
3502
3675
|
count: channels.length,
|
|
3503
3676
|
folded,
|
|
3504
|
-
onFold: fold
|
|
3677
|
+
onFold: fold,
|
|
3678
|
+
alert: channels.some((channel) => unread.includes(channel.id))
|
|
3505
3679
|
}, channels.map((channel) => {
|
|
3506
3680
|
const members = membersOf(team, channel);
|
|
3507
3681
|
const busy = working[channel.id] ?? [];
|
|
@@ -3513,23 +3687,20 @@ ${agent.cwd ?? serverCwd}`,
|
|
|
3513
3687
|
avatar: /* @__PURE__ */ React.createElement(RoomFace, {
|
|
3514
3688
|
members,
|
|
3515
3689
|
faces,
|
|
3516
|
-
size:
|
|
3690
|
+
size: 40,
|
|
3517
3691
|
working: busy
|
|
3518
3692
|
}),
|
|
3519
3693
|
title: channel.name,
|
|
3520
|
-
badge:
|
|
3521
|
-
className: "tac-lead",
|
|
3522
|
-
title: ChannelWords.format(w.leadOf, { name: members[0].name })
|
|
3523
|
-
}, ChannelViews.maybeIcon(pi, "Crown", null, 11), /* @__PURE__ */ React.createElement("span", null, w.lead)), channel.pinned && /* @__PURE__ */ React.createElement("span", {
|
|
3694
|
+
badge: channel.pinned && /* @__PURE__ */ React.createElement("span", {
|
|
3524
3695
|
className: "tac-pinned",
|
|
3525
3696
|
title: w.pinned,
|
|
3526
3697
|
role: "img",
|
|
3527
3698
|
"aria-label": w.pinned
|
|
3528
|
-
}, ChannelViews.maybeIcon(pi, "Pin", null, 12))
|
|
3699
|
+
}, ChannelViews.maybeIcon(pi, "Pin", null, 12)),
|
|
3529
3700
|
preview,
|
|
3530
3701
|
live: busy.length > 0,
|
|
3702
|
+
dot: busy.length > 0 ? "running" : unread.includes(channel.id) ? "attention" : undefined,
|
|
3531
3703
|
time: SidebarUtil.time(last?.at ?? channel.createdAt, pi.ui.language),
|
|
3532
|
-
fresh: fresh.includes(channel.id),
|
|
3533
3704
|
hint: channel.topic ? `#${channel.name} · ${channel.topic}` : `#${channel.name}`,
|
|
3534
3705
|
selected: !!channelPage?.shown && channelId === channel.id,
|
|
3535
3706
|
onSelect: () => context.showChannel(channel.id),
|
|
@@ -3540,7 +3711,13 @@ ${agent.cwd ?? serverCwd}`,
|
|
|
3540
3711
|
}),
|
|
3541
3712
|
swipe: swipeDelete(pi, () => deleteChannel(context, channel))
|
|
3542
3713
|
});
|
|
3543
|
-
})))
|
|
3714
|
+
}))), selection.selecting && SelectBar && /* @__PURE__ */ React.createElement(SelectBar, {
|
|
3715
|
+
count: selection.selected.length,
|
|
3716
|
+
total: selection.removable.length,
|
|
3717
|
+
onSelectAll: selection.selectAll,
|
|
3718
|
+
onDone: selection.done,
|
|
3719
|
+
actions: [{ key: "delete", label: w.delete, danger: true, run: () => void selection.removeSelected() }]
|
|
3720
|
+
}));
|
|
3544
3721
|
}
|
|
3545
3722
|
|
|
3546
3723
|
// web-src/style.ts
|
|
@@ -3564,17 +3741,22 @@ var STYLE = `
|
|
|
3564
3741
|
.tac-list { flex: 1; min-height: 0; overflow: auto; padding: 2px 0 12px; }
|
|
3565
3742
|
.tac-list:has(> .ta-empty:not(.ta-empty-compact)) { display: flex; flex-direction: column; }
|
|
3566
3743
|
.tac-list > .tac-view > .tac-form { margin: 2px 10px 8px; }
|
|
3567
|
-
|
|
3568
|
-
.tac-double
|
|
3569
|
-
.tac-double
|
|
3570
|
-
.tac-double
|
|
3571
|
-
.tac-double-
|
|
3744
|
+
/* The double first, a card of its own: the one the user talks to. --tac-double-bg and -edge change with hover and press. */
|
|
3745
|
+
.tac-double { --tac-double-bg: var(--ta-raised); --tac-double-edge: color-mix(in srgb, var(--ta-text) 7%, transparent); display: flex; align-items: center; gap: 14px; width: 100%; min-height: 80px; margin: 4px 0 14px; padding: 12px 44px 12px 12px; border: 1px solid var(--tac-double-edge); border-radius: 18px; background: var(--tac-double-bg); color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; transition: background-color 120ms, border-color 160ms; box-sizing: border-box; }
|
|
3746
|
+
:root[data-theme='light'] .tac-double { --tac-double-bg: var(--ta-card); --tac-double-edge: var(--ta-border-muted); }
|
|
3747
|
+
.tac-double:hover { --tac-double-bg: var(--ta-hover); }
|
|
3748
|
+
.tac-double.tac-selected { --tac-double-edge: color-mix(in srgb, var(--ta-accent) 40%, transparent); }
|
|
3749
|
+
/* The dinosaur on a disc of its color, as a profile picture. */
|
|
3750
|
+
.tac-double-face { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--ta-accent) 13%, transparent); }
|
|
3751
|
+
.tac-double-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
|
|
3752
|
+
/* A finger has no … to hover: the card says it opens, as a profile card does. */
|
|
3753
|
+
.tac-double-go { display: none; flex: none; margin-right: -2px; color: var(--ta-muted); opacity: 0.7; }
|
|
3754
|
+
:root[data-touch] .tac-double-go { display: inline-flex; }
|
|
3572
3755
|
.tac-double-row { position: relative; }
|
|
3573
3756
|
.tac-pinned { display: inline-flex; flex: none; color: var(--ta-muted); }
|
|
3574
|
-
.tac-double-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(
|
|
3757
|
+
.tac-double-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(16px * var(--ta-font-scale)); font-weight: 600; line-height: calc(22px * var(--ta-font-scale)); letter-spacing: 0.01em; }
|
|
3575
3758
|
.tac-item-bottom { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
3576
3759
|
.tac-item-bottom .tac-item-preview { flex: 1; min-width: 0; }
|
|
3577
|
-
.tac-fresh { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-green); }
|
|
3578
3760
|
.tac-head { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-left: 8px; }
|
|
3579
3761
|
.tac-head-title { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; white-space: nowrap; }
|
|
3580
3762
|
.tac-head-title strong { overflow: hidden; text-overflow: ellipsis; font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; }
|
|
@@ -3588,8 +3770,8 @@ var STYLE = `
|
|
|
3588
3770
|
.tac-head-more { margin-left: 4px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }
|
|
3589
3771
|
.tac-action.tac-on { background: var(--ta-hover-strong); color: var(--ta-text); }
|
|
3590
3772
|
.tac-room-page { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--ta-main); color: var(--ta-text); }
|
|
3591
|
-
.tac-chat { flex: 1; min-height: 0; overflow-y: auto; }
|
|
3592
|
-
.tac-chat-col { display: flex; flex-direction: column; gap: 4px; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 12px; box-sizing: border-box; }
|
|
3773
|
+
.tac-chat { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overflow-anchor: none; }
|
|
3774
|
+
.tac-chat-col { position: relative; display: flex; flex-direction: column; gap: 4px; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 12px; box-sizing: border-box; }
|
|
3593
3775
|
.tac-chat-time { align-self: center; margin: 14px 0 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
|
|
3594
3776
|
.tac-chat-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12vh auto 0; max-width: 360px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); text-align: center; }
|
|
3595
3777
|
.tac-chat-empty strong { margin-top: 6px; color: var(--ta-text); font-size: calc(16px * var(--ta-font-scale)); }
|
|
@@ -3665,15 +3847,18 @@ div.tac-dialog-label { flex-direction: row; justify-content: space-between; marg
|
|
|
3665
3847
|
.tac-identity { position: fixed; top: calc(60px + env(safe-area-inset-top) + var(--ta-titlebar, 0px)); left: 12px; right: 12px; width: auto; max-width: none; transform: none; animation: none; }
|
|
3666
3848
|
}
|
|
3667
3849
|
.tac-empty { padding: 8px 18px; }
|
|
3668
|
-
.tac-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height:
|
|
3850
|
+
.tac-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 1px 0; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; transition: background 120ms; }
|
|
3669
3851
|
.tac-item:hover { background: var(--ta-hover); }
|
|
3670
3852
|
.tac-item.tac-selected { background: var(--ta-selected); }
|
|
3671
|
-
|
|
3853
|
+
/* A row with nothing to say under its name, as a contact: one line, a little lower. */
|
|
3854
|
+
.tac-item.tac-item-single { min-height: 54px; padding-top: 7px; padding-bottom: 7px; }
|
|
3855
|
+
.tac-item-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
|
|
3672
3856
|
.tac-item-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
3673
|
-
.tac-item-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(
|
|
3857
|
+
.tac-item-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; line-height: calc(19px * var(--ta-font-scale)); }
|
|
3674
3858
|
.tac-item-time { flex: none; margin-left: auto; padding-left: 4px; color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
|
|
3675
3859
|
.tac-item-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }
|
|
3676
|
-
|
|
3860
|
+
/* What goes on now is said plainly: the green dot on the face marks it. */
|
|
3861
|
+
.tac-item-preview.tac-now { color: var(--ta-secondary); }
|
|
3677
3862
|
.tac-lead { display: inline-flex; align-items: center; gap: 3px; flex: none; max-width: 96px; overflow: hidden; padding: 0 6px; border: 1px solid color-mix(in srgb, var(--ta-green) 35%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--ta-green) 10%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 600; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }
|
|
3678
3863
|
.tac-lead span { overflow: hidden; text-overflow: ellipsis; }
|
|
3679
3864
|
.tac-lead svg { flex: none; }
|
|
@@ -3681,6 +3866,13 @@ div.tac-dialog-label { flex-direction: row; justify-content: space-between; marg
|
|
|
3681
3866
|
.tac-folder span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3682
3867
|
.tac-folder .ta-host-tag { margin: 0 0 0 1px; vertical-align: 0; }
|
|
3683
3868
|
.tac-item-top .ta-host-tag { margin: 0; vertical-align: 0; }
|
|
3869
|
+
/* A remote agent's host, on the line of where it works: as quiet as the line, its blue says it is elsewhere. */
|
|
3870
|
+
.tac-item-bottom .ta-host-tag { height: auto; margin: 0; padding: 0; background: none; color: color-mix(in srgb, var(--ta-blue) 70%, var(--ta-muted)); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; line-height: calc(17px * var(--ta-font-scale)); }
|
|
3871
|
+
.tac-item-bottom .ta-host-tag { gap: 4px; }
|
|
3872
|
+
.tac-item-bottom .ta-host-tag > svg { width: calc(12px * var(--ta-font-scale)); height: calc(12px * var(--ta-font-scale)); }
|
|
3873
|
+
.tac-item-bottom .ta-host-tag + .tac-item-preview::before { content: '·'; margin-right: 6px; }
|
|
3874
|
+
/* The panda's ears are ink, lost on a dark page: a lighter ink there. */
|
|
3875
|
+
:root:not([data-theme='light']) .tac-face[data-face="11"] .tac-face-body > g > circle { fill: #4a4a52; }
|
|
3684
3876
|
.tac-face { display: inline-flex; flex: none; }
|
|
3685
3877
|
.tac-face svg { display: block; overflow: visible; }
|
|
3686
3878
|
.tac-face-eyes { transform-box: fill-box; transform-origin: center; animation: tac-blink 5.2s infinite; }
|
|
@@ -3712,7 +3904,6 @@ textarea.tac-input { resize: vertical; min-height: 56px; line-height: 1.5; }
|
|
|
3712
3904
|
.tac-button.tac-primary { border-color: transparent; background: var(--ta-text); color: var(--ta-main); }
|
|
3713
3905
|
.tac-button:disabled { opacity: 0.5; cursor: default; }
|
|
3714
3906
|
.tac-button.tac-danger { border-color: transparent; background: var(--ta-red); color: #fff; }
|
|
3715
|
-
.tac-team-up { margin-top: 6px; padding: 6px 14px; }
|
|
3716
3907
|
.tac-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }
|
|
3717
3908
|
.tac-link:hover { background: var(--ta-hover); }
|
|
3718
3909
|
.tac-link.tac-danger { color: var(--ta-red); }
|
|
@@ -3786,43 +3977,73 @@ textarea.tac-role-input { min-height: 200px; max-height: 50vh; font-size: calc(1
|
|
|
3786
3977
|
:root[data-touch] .tac-item-more > .tac-action { visibility: hidden; }
|
|
3787
3978
|
:root[data-touch] .tac-item-row .tac-item-time { visibility: visible; }
|
|
3788
3979
|
:root[data-touch] .tac-double { padding-right: 10px; }
|
|
3789
|
-
:root[data-touch] .tac-item:not(.tac-selected):hover
|
|
3980
|
+
:root[data-touch] .tac-item:not(.tac-selected):hover { --tac-bg: var(--ta-side); background: none; }
|
|
3981
|
+
:root[data-touch] .tac-double:hover { --tac-double-bg: var(--ta-raised); }
|
|
3982
|
+
:root[data-theme='light'][data-touch] .tac-double:hover { --tac-double-bg: var(--ta-card); }
|
|
3790
3983
|
/* A phone, as its messaging apps: the row picked is not marked; its conversation covers the list, and back on the list nothing is picked. */
|
|
3791
|
-
:root[data-handheld] .tac-item.tac-selected
|
|
3792
|
-
:root[data-
|
|
3984
|
+
:root[data-handheld] .tac-item.tac-selected { --tac-bg: var(--ta-side); background: none; }
|
|
3985
|
+
:root[data-handheld] .tac-double.tac-selected { --tac-double-edge: color-mix(in srgb, var(--ta-text) 7%, transparent); }
|
|
3986
|
+
:root[data-theme='light'][data-handheld] .tac-double.tac-selected { --tac-double-edge: var(--ta-border-muted); }
|
|
3987
|
+
:root[data-touch] .tac-item:active { --tac-bg: var(--ta-hover); background: var(--ta-hover); }
|
|
3988
|
+
:root[data-touch] .tac-double:active, :root[data-touch] .tac-double:has(~ .tac-item-more > [aria-expanded="true"]) { --tac-double-bg: var(--ta-hover); }
|
|
3793
3989
|
/* The side bar of the double: its sections, folding */
|
|
3794
|
-
.tac-double-
|
|
3795
|
-
.tac-double-
|
|
3796
|
-
.tac-double-line
|
|
3797
|
-
.tac-double-line > span:
|
|
3990
|
+
.tac-double-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
|
|
3991
|
+
.tac-double-top > .tac-double-name { flex: 1; min-width: 0; }
|
|
3992
|
+
.tac-double-line { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }
|
|
3993
|
+
.tac-double-line > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3994
|
+
/* Something goes on: a spinner ends its line, as in the list of conversations. */
|
|
3995
|
+
.tac-spinner.ta-spinner { width: 12px; height: 12px; }
|
|
3798
3996
|
.tac-double-line.tac-waiting { color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-text)); }
|
|
3799
3997
|
.tac-section { display: flex; flex-direction: column; }
|
|
3800
|
-
|
|
3801
|
-
.tac-section
|
|
3802
|
-
.tac-section-head
|
|
3998
|
+
/* A section is named, not boxed: a quiet name and count, the chevron only while hovered or folded. */
|
|
3999
|
+
.tac-section + .tac-section { margin-top: 10px; }
|
|
4000
|
+
.tac-section-head { display: flex; align-items: center; gap: 6px; width: 100%; height: 30px; margin: 0; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; letter-spacing: 0.02em; text-align: left; cursor: pointer; transition: color 120ms; }
|
|
4001
|
+
.tac-section-head:hover { color: var(--ta-secondary); }
|
|
3803
4002
|
.tac-section-head-row { position: relative; }
|
|
3804
|
-
/* Left of the
|
|
3805
|
-
.tac-section-action { position: absolute; top:
|
|
4003
|
+
/* Left of the chevron; seen on hover, or while on. */
|
|
4004
|
+
.tac-section-action { position: absolute; top: 4px; right: 26px; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ta-muted); cursor: pointer; opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }
|
|
3806
4005
|
.tac-section-head-row:hover .tac-section-action, .tac-section-action:focus-visible, .tac-section-action[aria-pressed="true"] { opacity: 1; }
|
|
3807
4006
|
.tac-section-action:hover { background: var(--ta-hover-strong); color: var(--ta-secondary); }
|
|
3808
4007
|
.tac-section-action[aria-pressed="true"] { color: var(--ta-accent); }
|
|
3809
4008
|
.tac-section-head:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }
|
|
3810
|
-
.tac-section-chevron { width: 6px; height: 6px; margin: 0 3px 0
|
|
4009
|
+
.tac-section-chevron { flex: none; width: 6px; height: 6px; margin: 0 3px 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; opacity: 0; transform: translateY(-1px) rotate(45deg); transition: transform 160ms var(--ta-ease, ease), opacity 120ms; }
|
|
4010
|
+
.tac-section-head-row:hover .tac-section-chevron, .tac-section-head:focus-visible .tac-section-chevron, .tac-closed .tac-section-chevron { opacity: 1; }
|
|
3811
4011
|
.tac-closed .tac-section-chevron { transform: translateX(-1px) rotate(-45deg); }
|
|
3812
|
-
.tac-section-title {
|
|
3813
|
-
.tac-section-count { flex: none; color: var(--ta-muted); font-size: calc(
|
|
4012
|
+
.tac-section-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
4013
|
+
.tac-section-count { flex: none; color: var(--ta-muted); opacity: 0.7; font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
|
|
3814
4014
|
.tac-section-body { display: flex; flex-direction: column; animation: tac-unfold 160ms ease-out; }
|
|
3815
4015
|
.tac-section-body > .tac-folder:first-child { margin-top: 4px; }
|
|
3816
4016
|
@keyframes tac-unfold { from { opacity: 0; transform: translateY(-3px); } }
|
|
3817
4017
|
@media (prefers-reduced-motion: reduce) { .tac-section-body, .tac-section-chevron { animation: none; transition: none; } }
|
|
3818
|
-
|
|
4018
|
+
/*
|
|
4019
|
+
* On the corner of the face, as the presence of a contact: green while it goes on, amber while it needs the user
|
|
4020
|
+
* (it waits, or ended or wrote since they last looked); nothing else. Cut out of the face by the row's color (--tac-bg).
|
|
4021
|
+
*/
|
|
4022
|
+
.tac-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--tac-bg, var(--ta-side)); border-radius: 50%; background: var(--tac-dot); }
|
|
4023
|
+
.tac-avatar { position: relative; display: inline-flex; flex: none; }
|
|
4024
|
+
.tac-double-face { position: relative; }
|
|
4025
|
+
.tac-item:hover { --tac-bg: var(--ta-hover); }
|
|
4026
|
+
.tac-item.tac-selected { --tac-bg: var(--ta-selected); }
|
|
4027
|
+
.tac-double-face > .tac-dot { right: 1px; bottom: 1px; width: 14px; height: 14px; border-width: 2.5px; --tac-bg: var(--tac-double-bg); }
|
|
4028
|
+
.tac-dot-running { --tac-dot: var(--ta-green); }
|
|
4029
|
+
.tac-dot-attention { --tac-dot: var(--ta-yellow); }
|
|
4030
|
+
/* The dot grows in, turns from green to amber when an answer ends unseen (a ripple or two says so), and shrinks away once looked at. */
|
|
4031
|
+
.tac-dot { transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease, background-color 0.5s ease; }
|
|
4032
|
+
.tac-dot-running, .tac-dot-attention { transform: none; opacity: 1; }
|
|
4033
|
+
.tac-dot-attention::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; animation: tac-ripple 1.5s ease-out 0.3s 2 both; }
|
|
4034
|
+
@keyframes tac-ripple { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-yellow) 55%, transparent); } to { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ta-yellow) 0%, transparent); } }
|
|
4035
|
+
@media (prefers-reduced-motion: reduce) { .tac-dot { transition: opacity 0.18s ease; } .tac-dot-attention::after { animation: none; } }
|
|
4036
|
+
/* What came unseen reads as unread: in the color of the text, not muted. */
|
|
4037
|
+
.tac-item-preview.tac-fresh, .tac-double-line.tac-fresh { color: var(--ta-text); }
|
|
4038
|
+
.tac-section-alert { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-yellow); }
|
|
4039
|
+
|
|
3819
4040
|
.tac-item-preview.tac-waiting { color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-text)); }
|
|
3820
|
-
.tac-task-face { display: inline-grid; place-items: center; width:
|
|
4041
|
+
.tac-task-face { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; overflow: hidden; }
|
|
3821
4042
|
.tac-task-glyph { background: var(--ta-chip); color: var(--ta-secondary); }
|
|
3822
|
-
|
|
3823
|
-
.tac-tasks-empty
|
|
3824
|
-
.tac-tasks-empty
|
|
3825
|
-
.tac-tasks-empty
|
|
4043
|
+
/* No task yet: one quiet line where they will be, so the place is known before the first. */
|
|
4044
|
+
.tac-tasks-empty { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin: 0; padding: 4px 10px 8px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); text-align: left; cursor: pointer; transition: color 120ms; }
|
|
4045
|
+
.tac-tasks-empty:hover { color: var(--ta-secondary); }
|
|
4046
|
+
.tac-tasks-empty svg { flex: none; margin-top: calc(2px * var(--ta-font-scale)); }
|
|
3826
4047
|
.tac-show-all { align-self: flex-start; height: 26px; margin: 0 4px 4px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); cursor: pointer; }
|
|
3827
4048
|
.tac-show-all:hover { background: var(--ta-hover); color: var(--ta-secondary); }
|
|
3828
4049
|
.tac-temporary { flex: none; padding: 0 5px; border-radius: 999px; background: var(--ta-hover-strong); color: var(--ta-secondary); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); }
|
|
@@ -3841,10 +4062,12 @@ textarea.tac-role-input { min-height: 200px; max-height: 50vh; font-size: calc(1
|
|
|
3841
4062
|
:root[data-touch] .tac-agent-menu button { height: 44px; padding: 0 14px; border-radius: 10px; }
|
|
3842
4063
|
:root[data-touch] .tac-agent-menu button:active:not(:disabled) { background: var(--ta-hover); }
|
|
3843
4064
|
:root[data-touch] .tac-agent-menu .tac-menu-line { margin: 4px 10px; }
|
|
3844
|
-
:root[data-touch] .tac-item:has(~ .tac-item-more > [aria-expanded="true"])
|
|
4065
|
+
:root[data-touch] .tac-item:has(~ .tac-item-more > [aria-expanded="true"]) { background: var(--ta-hover); }
|
|
3845
4066
|
@keyframes tac-menu-in { from { opacity: 0; transform: scale(0.94); } }
|
|
3846
4067
|
@media (prefers-reduced-motion: reduce) { :root[data-touch] .tac-agent-menu { animation: none; } }
|
|
3847
|
-
:
|
|
4068
|
+
/* A finger: no hover to show it; while off it stays away from the list (the choice is the user's on every device), on it shows to turn it off. */
|
|
4069
|
+
:root[data-touch] .tac-section-action { right: 4px; }
|
|
4070
|
+
:root[data-touch] .tac-section-action:not([aria-pressed="true"]) { display: none; }
|
|
3848
4071
|
`;
|
|
3849
4072
|
function injectStyle() {
|
|
3850
4073
|
const element = document.createElement("style");
|