@celljs/ta 4.9.1 → 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 +144 -20
- package/dist/pi/CHANGELOG.md +7 -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/extension/index.mjs +19 -1
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js +4 -0
- package/dist/pi/packages/ta-agents/lib/extension.js +15 -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 +4 -8
- package/dist/pi/packages/ta-channels/lib/i18n.js +8 -16
- 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 +184 -74
- 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.js +3 -4
- 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 +398 -243
- 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 +15 -0
- 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/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 +235 -67
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-EVMX_yOb.js → abnfDiagram-S7VZAUFO-BmIko5tV.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-CDgbgZ_o.js → architecture-WOLXFQ4H-XgsdQ7ul.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-dHreaCWz.js → architectureDiagram-YGSQEFNW--sVhMS03.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-D6FhzBDq.js → blockDiagram-APKKGZFW-8f9b-9k2.js} +1 -1
- package/dist/public/assets/browser-DOHZ0JCf.js +12 -0
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-BFpcr8Cs.js → c4Diagram-KJ2TOQU5-CwYQ0Jfy.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-BczXkMV-.js → chunk-6MUBBAK2-7Y9ezehi.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-CjJsv3jB.js → chunk-AXFCVDMN-CZIH4pWz.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-FBaleaLz.js → chunk-BG4553SI-DsNATY2m.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-BFdXY5sX.js → chunk-DQASFODM-CoXkfYE-.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C5cwK-Fg.js → chunk-HFQBQIA3-C5OLqki8.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-BUek3IRk.js → chunk-KQLB2F66-DMHuYGEF.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-BxsYBzt6.js → chunk-KS47KZWR-BKeOttO1.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-Bdcwz9fS.js → chunk-LEVMRMFU-D6zCwkk7.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-kkpP5oug.js → chunk-M57EVK23-B5-QqcZg.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-CFhQgxmD.js → chunk-OY52VR5R-DQrq3n0T.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-BVXqu0eC.js → chunk-QB3YPZ4I-j6ZT7EDR.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-B7SUqqLI.js → chunk-R3KSYZAL-D5MXUO36.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-B3abfbnH.js → chunk-STOXU5M4-DaBkw4dD.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-C9NqnUav.js → chunk-TU62E6Q5-vXcRfGci.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BeLfETDx.js → chunk-X4PVCEUW-CIh6H4Y2.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-DXai1i8p.js → chunk-XXDRQBXY-C_Vwv1FM.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-Zj6ne_tC.js → classDiagram-v2-L25IHNXF-DccDWEJn.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-C0-TjqfJ.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-BnqxfzPa.js → cynefinDiagram-L36ESFBY-BE6WOGxW.js} +1 -1
- package/dist/public/assets/{d3-selection-DfFLTR9d.js → d3-selection-ZcE6yRN5.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-kI17e5cH.js → dagre-SPEB5RXH-CE6SOOcN.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-DgPjeLA5.js → diagram-3B7GL73J-xC8VtiYL.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-CRhPfa0I.js → diagram-DNEMPZML-4dmcBbjL.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-ExuTg12b.js → diagram-L3MUGCDN-D14Yn3sQ.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-Dgx5xNiY.js → diagram-LA4NIPWU-GxSXIhsK.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BuifkUTl.js → diagram-MHCOC4E2-Cm7Prlpc.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-CFEaBo7z.js → diagram-XPFHEONP-mkUnnKFu.js} +1 -1
- package/dist/public/assets/{dist-C-iJHcSK.js → dist-acJS-BlA.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-D-hp5yNt.js → ebnfDiagram-UZSYDL2S-m77ua3UQ.js} +1 -1
- package/dist/public/assets/{editor.api-BopUWpqY.js → editor.api-CljTm-EQ.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CBbk_IpU.js → elk-XV6XMXQE-DsQY1hw9.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-B02R_WWE.js → erDiagram-EYBAPDEH-CV8gJM0P.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-aCZfYnCI.js → eventmodeling-K75KTNOO-C1pymbUr.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-shBnAQFk.js +1 -0
- package/dist/public/assets/{freemarker2-DMN60LeK.js → freemarker2-DYJXaMHN.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-DioU8TlD.js → ganttDiagram-23REXITY-CppxOWRh.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BtQWboBz.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW--q3ctg6y.js → gitGraphDiagram-STJD7YCW-CrQrZhcP.js} +1 -1
- package/dist/public/assets/{handlebars-B_-qdvpB.js → handlebars-DZCnH9e2.js} +1 -1
- package/dist/public/assets/{html-BN8Ah3Js.js → html-DuzouNES.js} +1 -1
- package/dist/public/assets/{index-B3A--ac8.js → index-B7OYKvCE.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-CDSLjba_.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-CGXteYo9.js → infoDiagram-KBXO4MBG-6pby19tQ.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-DM2LmOAc.js → ishikawaDiagram-M35NCXHK-Duf8c8rQ.js} +1 -1
- package/dist/public/assets/{javascript-BlizGb0q.js → javascript-2d_L6cVd.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-CNITRtGl.js → journeyDiagram-OPLOXDXO-Dvv-xzNo.js} +1 -1
- package/dist/public/assets/{jsonMode-CEUmT5sN.js → jsonMode-CFadYXyI.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-BPUuS9um.js → kanban-definition-BZKZHSQY-Dsk6F-TT.js} +1 -1
- package/dist/public/assets/{liquid-BbyLjUbE.js → liquid-Din4CF34.js} +1 -1
- package/dist/public/assets/{mdx-DiQz7Q35.js → mdx-DivDuCWI.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-Dum100hC.js → mermaid-parser.core-BfCv4CYZ.js} +3 -3
- package/dist/public/assets/{mermaid.core-BWmWf6XO.js → mermaid.core-DC20ZwJj.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-L8HyYUDY.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-zOOyBmxy.js → monaco-D1d6MOPe.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-dYb4P9eU.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-CTZKPo0Z.js → pegDiagram-FD4XPPHP-DcGr3Tbk.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CIompBnc.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-DAeT3dFi.js → pieDiagram-J4AKIIQI-GF7pu6ch.js} +1 -1
- package/dist/public/assets/{python-C984gt98.js → python-BQbTTTT5.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2--PXxwV1Z.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-BYcFfrCa.js → railroad-abnf-LNEFI6M7-BiBHsI-K.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-Cd33qxAm.js → railroad-ebnf-DWYD2UWJ-zKjrfkHs.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-C5TpzaU8.js → railroad-peg-JR7BVNR7-DKuVn0GT.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-DlWwjbhH.js → railroadDiagram-MRQ6NCDL-Cyn-16mJ.js} +1 -1
- package/dist/public/assets/{razor-BBqMR1Qn.js → razor-DiLk54O0.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CsYBy9HS.js → requirementDiagram-Y7LWUY3S-CwU2EBkW.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-Baxyb5p9.js → sankeyDiagram-WGJFYUXA-ajf00HyW.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-Cq6VeBT_.js → sequenceDiagram-5NDRBG5M-DiX_OIAw.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-O60WKaE7.js → stateDiagram-v2-FJ4FJNEA-CV5bRqB7.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-C2nf1-Cc.js → swimlanes-UMQ2AFYF-BGQKSlj7.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-DxXlavVT.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-DEfUG6YH.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-Gtq7f0aU.js → typescript-COQ1g-up.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-Gw9DyJcx.js → usecaseDiagram-AFA6YXN4-CmLFzjie.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-Clb3MLWF.js → vennDiagram-NNMJR3RB-DOa6JR5K.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-jqlowjVL.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-BrTRpwu2.js → wardleyDiagram-S7YFUSEH-BV7EEShp.js} +1 -1
- package/dist/public/assets/{xml-Bx3nk7iG.js → xml-BbvtjuaG.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-BfjTcIsb.js → xychartDiagram-GGNKY7IX-DtMpPbsq.js} +1 -1
- package/dist/public/assets/{yaml-dFLE_rSl.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 +1354 -555
- 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-y6EDNUmc.js +0 -12
- package/dist/public/assets/cynefin-EF2NZ3EQ-CoY4CrZu.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-CATkJShO.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-g4yHXXxx.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-CKADJjz4.js +0 -1
- package/dist/public/assets/module-CH7IXa5L.js +0 -1781
- package/dist/public/assets/module-DNAasuMC.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-CpKMhX4K.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-CW-zGDRd.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-Cg8W433p.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-DriMt2PQ.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-B46JxqS8.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-1LhEWwC9.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-D3t3N7nS.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-D3sAsd8p.js +0 -1
|
@@ -4,74 +4,118 @@ exports.STYLE = void 0;
|
|
|
4
4
|
exports.injectStyle = injectStyle;
|
|
5
5
|
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. */
|
|
6
6
|
exports.STYLE = `
|
|
7
|
+
/* The card of the board: the tasks to run next */
|
|
7
8
|
.tcr-card { display: flex; flex-direction: column; margin: -4px -6px; }
|
|
8
9
|
.tcr-card-row { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; }
|
|
9
10
|
.tcr-card-row:hover { background: var(--ta-hover); }
|
|
10
11
|
.tcr-card-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); }
|
|
11
12
|
.tcr-card-when { flex: none; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
/* The page: it scrolls in its own box, which takes what the main area has left under its head. */
|
|
15
|
+
.tcr-scroll { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
|
|
16
|
+
.tcr-page { box-sizing: border-box; width: 100%; max-width: 860px; margin: 0 auto; padding: 20px 24px 64px; }
|
|
17
|
+
.tcr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 28px; }
|
|
14
18
|
.tcr-stat { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }
|
|
15
19
|
/* The head: the title in the middle, the + at the right, a box of the same width on the left to keep it there. */
|
|
16
20
|
.tcr-title-bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; padding-left: 36px; }
|
|
17
|
-
|
|
21
|
+
|
|
22
|
+
/* Buttons and what is written quietly */
|
|
23
|
+
.tcr-button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--ta-border); border-radius: 8px; background: var(--ta-card); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background 120ms, border-color 120ms, opacity 120ms, transform 120ms var(--ta-ease); }
|
|
18
24
|
.tcr-button:hover:not(:disabled) { background: var(--ta-hover); }
|
|
19
|
-
.tcr-button:active:not(:disabled) { transform: scale(.
|
|
25
|
+
.tcr-button:active:not(:disabled) { transform: scale(.97); }
|
|
20
26
|
.tcr-button:disabled { opacity: .45; cursor: default; }
|
|
27
|
+
.tcr-button > svg { flex: none; color: var(--ta-secondary); }
|
|
21
28
|
.tcr-primary { background: var(--ta-brand); border-color: var(--ta-brand); color: var(--ta-brand-text); }
|
|
22
29
|
.tcr-primary:hover:not(:disabled) { background: var(--ta-brand); opacity: .88; }
|
|
30
|
+
/* What hands the task to Ta to make more of: green, as what Ta makes. */
|
|
31
|
+
.tcr-accent { border-color: color-mix(in srgb, var(--ta-green) 45%, var(--ta-border)); background: color-mix(in srgb, var(--ta-green) 9%, var(--ta-card)); }
|
|
32
|
+
.tcr-accent > svg { color: var(--ta-green); }
|
|
33
|
+
.tcr-accent:hover:not(:disabled) { background: color-mix(in srgb, var(--ta-green) 16%, var(--ta-card)); }
|
|
23
34
|
.tcr-link { align-self: flex-start; border: 0; padding: 0; background: none; color: var(--ta-link); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }
|
|
24
35
|
.tcr-link:hover { text-decoration: underline; }
|
|
25
|
-
.tcr-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--ta-muted); cursor: pointer; }
|
|
36
|
+
.tcr-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--ta-muted); cursor: pointer; transition: background 120ms, color 120ms; }
|
|
26
37
|
.tcr-icon:hover { background: var(--ta-hover); color: var(--ta-text); }
|
|
27
38
|
.tcr-muted { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
28
39
|
.tcr-pad { padding: 6px 2px; }
|
|
29
40
|
.tcr-chip { flex: none; padding: 0 7px; border-radius: 6px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(11.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); white-space: nowrap; }
|
|
30
|
-
.tcr-
|
|
31
|
-
.tcr-
|
|
41
|
+
.tcr-count { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; line-height: calc(17px * var(--ta-font-scale)); }
|
|
42
|
+
.tcr-chevron { display: inline-flex; flex: none; color: var(--ta-muted); transition: transform 180ms var(--ta-ease); }
|
|
43
|
+
|
|
44
|
+
/* The tasks */
|
|
45
|
+
.tcr-list { display: flex; flex-direction: column; gap: 10px; }
|
|
46
|
+
.tcr-task { border: 1px solid var(--ta-border-muted); border-radius: 14px; background: var(--ta-card); transition: border-color 140ms, box-shadow 180ms; animation: tcr-in 160ms var(--ta-ease) both; }
|
|
32
47
|
.tcr-task:hover, .tcr-task.tcr-open { border-color: var(--ta-border); }
|
|
33
|
-
.tcr-task.tcr-menu-open { position: relative; z-index: 5; }
|
|
34
48
|
.tcr-task.tcr-open { box-shadow: var(--ta-shadow-pop); }
|
|
35
|
-
.tcr-disabled .tcr-task-name, .tcr-disabled .tcr-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.tcr-task-main { display: flex; align-items: center; gap:
|
|
39
|
-
.tcr-task-
|
|
40
|
-
|
|
49
|
+
.tcr-disabled .tcr-task-name, .tcr-disabled .tcr-task-meta, .tcr-disabled .tcr-task-state, .tcr-disabled .tcr-mark { opacity: .55; }
|
|
50
|
+
.tcr-task-row { display: flex; align-items: center; gap: 6px; padding-right: 10px; }
|
|
51
|
+
/* What opens the task: the mark of its state, its name over its rule, directory and last run, then its next run. */
|
|
52
|
+
.tcr-task-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 64px; padding: 10px 6px 10px 14px; border: 0; border-radius: 14px 0 0 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; outline: none; }
|
|
53
|
+
.tcr-task-main:focus-visible { box-shadow: inset 0 0 0 2px var(--ta-border-focus); }
|
|
54
|
+
/* A tile of the color of the task's state, its last run a dot at its corner. */
|
|
55
|
+
.tcr-mark { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ta-chip); color: var(--ta-secondary); }
|
|
56
|
+
.tcr-mark .tcr-dot { position: absolute; right: -2px; bottom: -2px; box-shadow: 0 0 0 2.5px var(--ta-card); }
|
|
57
|
+
.tcr-tone-success { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }
|
|
58
|
+
.tcr-tone-error, .tcr-tone-missed { background: color-mix(in srgb, var(--ta-red) 13%, transparent); color: var(--ta-red); }
|
|
59
|
+
.tcr-tone-running { background: color-mix(in srgb, var(--ta-blue) 15%, transparent); color: var(--ta-blue); }
|
|
60
|
+
.tcr-task-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
|
|
61
|
+
.tcr-task-meta { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
62
|
+
.tcr-task-name { min-width: 0; overflow: hidden; font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
|
|
63
|
+
.tcr-task-dir { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
64
|
+
.tcr-task-last { flex: none; white-space: nowrap; }
|
|
65
|
+
.tcr-task-next { display: none; flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
66
|
+
.tcr-task-last::before { content: '·'; margin-right: 8px; }
|
|
41
67
|
.tcr-task-state { flex: none; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
|
|
42
68
|
.tcr-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-border); }
|
|
43
69
|
.tcr-success { background: var(--ta-green); }
|
|
44
70
|
.tcr-error, .tcr-missed { background: var(--ta-red); }
|
|
45
71
|
.tcr-running { background: var(--ta-blue); animation: tcr-pulse 1.2s ease-in-out infinite; }
|
|
46
|
-
.tcr-off { background:
|
|
72
|
+
.tcr-off { background: var(--ta-card); box-shadow: inset 0 0 0 1.5px var(--ta-border); }
|
|
47
73
|
.tcr-pulse { animation: tcr-fade 1.6s ease-in-out infinite; }
|
|
48
|
-
@keyframes tcr-
|
|
74
|
+
@keyframes tcr-in { from { opacity: 0; transform: translateY(3px); } }
|
|
75
|
+
@keyframes tcr-pulse { 50% { transform: scale(1.4); opacity: .55; } }
|
|
49
76
|
@keyframes tcr-fade { 50% { opacity: .45; } }
|
|
50
|
-
|
|
77
|
+
|
|
78
|
+
/* The switch of a task: as the switches of the page */
|
|
79
|
+
.tcr-switch { position: relative; flex: none; width: 36px; height: 20px; cursor: pointer; }
|
|
51
80
|
.tcr-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
|
|
52
|
-
.tcr-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--ta-border); transition: background 160ms; pointer-events: none; }
|
|
53
|
-
.tcr-switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width:
|
|
81
|
+
.tcr-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--ta-hover-strong, var(--ta-border)); transition: background 160ms; pointer-events: none; }
|
|
82
|
+
.tcr-switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform 180ms var(--ta-ease); }
|
|
54
83
|
.tcr-switch input:checked + span { background: var(--ta-green); }
|
|
55
|
-
.tcr-switch input:checked + span::after { transform: translateX(
|
|
84
|
+
.tcr-switch input:checked + span::after { transform: translateX(16px); }
|
|
56
85
|
.tcr-switch input:focus-visible + span { outline: 2px solid var(--ta-border-focus); outline-offset: 2px; }
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
.tcr-
|
|
60
|
-
.tcr-
|
|
61
|
-
.tcr-
|
|
62
|
-
.tcr-
|
|
63
|
-
.tcr-prompt-
|
|
64
|
-
.tcr-
|
|
65
|
-
|
|
86
|
+
|
|
87
|
+
/* What a task holds, opened: what can be done with it, its prompt and its runs */
|
|
88
|
+
.tcr-detail { display: flex; flex-direction: column; margin: 0 16px; padding: 14px 0 16px; border-top: 1px solid var(--ta-border-muted); animation: tcr-in 160ms var(--ta-ease); }
|
|
89
|
+
.tcr-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
|
|
90
|
+
.tcr-stats { margin-left: auto; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
|
|
91
|
+
.tcr-label { display: flex; align-items: center; margin: 0 0 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; }
|
|
92
|
+
.tcr-prompt-block { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
|
|
93
|
+
.tcr-prompt-text { padding: 10px 12px; border-radius: 10px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
94
|
+
/* A long prompt: four lines (of 13px at 1.6), fading into the box, until the user shows the rest. */
|
|
95
|
+
.tcr-clamped { max-height: calc(83px * var(--ta-font-scale)); overflow: hidden; }
|
|
96
|
+
.tcr-fade { -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
|
|
97
|
+
/* The runs: a line of time down their dots, the newest at the top. */
|
|
98
|
+
.tcr-runs { position: relative; display: flex; flex-direction: column; gap: 2px; }
|
|
99
|
+
.tcr-run { position: relative; border-radius: 10px; transition: background 140ms; }
|
|
100
|
+
.tcr-run::before { content: ''; position: absolute; left: 13px; top: 22px; bottom: -6px; width: 1.5px; background: var(--ta-border-muted); }
|
|
101
|
+
.tcr-run.tcr-last::before { display: none; }
|
|
66
102
|
.tcr-run.tcr-open { background: var(--ta-hover); }
|
|
67
|
-
.tcr-run-head { display: flex; align-items: center; gap: 10px; width: 100%; height:
|
|
103
|
+
.tcr-run-head { position: relative; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: calc(13px * var(--ta-font-scale)); text-align: left; cursor: pointer; outline: none; }
|
|
68
104
|
.tcr-run-head:hover { background: var(--ta-hover); }
|
|
105
|
+
.tcr-run-head:focus-visible { box-shadow: inset 0 0 0 2px var(--ta-border-focus); }
|
|
106
|
+
.tcr-run-head .tcr-dot { position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--ta-card); }
|
|
107
|
+
.tcr-run.tcr-open .tcr-run-head .tcr-dot, .tcr-run-head:hover .tcr-dot { box-shadow: none; }
|
|
69
108
|
.tcr-run-time { flex: none; font-variant-numeric: tabular-nums; }
|
|
70
109
|
.tcr-run-status { flex: none; color: var(--ta-secondary); }
|
|
110
|
+
.tcr-is-error, .tcr-is-missed { color: var(--ta-red); }
|
|
71
111
|
.tcr-run-line { flex: 1; min-width: 0; overflow: hidden; color: var(--ta-muted); text-overflow: ellipsis; white-space: nowrap; }
|
|
72
|
-
.tcr-
|
|
73
|
-
.tcr-run-
|
|
112
|
+
.tcr-open > .tcr-run-head .tcr-chevron { transform: rotate(90deg); }
|
|
113
|
+
.tcr-run-head:not(:hover) .tcr-chevron { opacity: .6; }
|
|
114
|
+
.tcr-run-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 2px 14px 14px 30px; font-size: calc(13.5px * var(--ta-font-scale)); animation: tcr-in 140ms var(--ta-ease); }
|
|
115
|
+
.tcr-run-body > :first-child { align-self: stretch; min-width: 0; overflow-wrap: anywhere; }
|
|
74
116
|
.tcr-run-error { color: var(--ta-red); white-space: pre-wrap; }
|
|
117
|
+
|
|
118
|
+
/* The page without tasks */
|
|
75
119
|
.tcr-empty { display: flex; flex-direction: column; align-items: center; padding: 48px 0 24px; text-align: center; }
|
|
76
120
|
.tcr-empty-title { margin-top: 14px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }
|
|
77
121
|
.tcr-empty-hint { margin-top: 6px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }
|
|
@@ -83,35 +127,111 @@ exports.STYLE = `
|
|
|
83
127
|
.tcr-clock-pin { fill: var(--ta-green); }
|
|
84
128
|
@keyframes tcr-spin { to { transform: rotate(360deg); } }
|
|
85
129
|
.tcr-examples { width: 100%; max-width: 560px; margin-top: 26px; }
|
|
86
|
-
|
|
87
|
-
|
|
130
|
+
|
|
131
|
+
/*
|
|
132
|
+
* The dialog of a task: wider than the page's dialogs, for the row of rules; its fields scroll under the
|
|
133
|
+
* title while its buttons stay at its foot.
|
|
134
|
+
*/
|
|
135
|
+
.ta-web-dialog:has(> .tcr-form) { width: min(560px, 100%); max-height: min(84vh, 780px); padding-bottom: 0; }
|
|
136
|
+
.tcr-form { box-sizing: border-box; display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0 -18px; }
|
|
137
|
+
.tcr-form-body { display: flex; flex-direction: column; gap: 18px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 18px; }
|
|
88
138
|
.tcr-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
89
139
|
.tcr-field .tcr-label { margin: 0; }
|
|
90
|
-
.tcr-input { box-sizing: border-box; width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-input); color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); outline: none; transition: border-color 120ms; }
|
|
91
|
-
.tcr-input:focus { border-color: var(--ta-border-focus); }
|
|
92
|
-
.tcr-prompt { height: auto; padding:
|
|
140
|
+
.tcr-input { box-sizing: border-box; width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-input); color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); outline: none; transition: border-color 120ms, box-shadow 120ms; }
|
|
141
|
+
.tcr-input:focus { border-color: var(--ta-border-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-border-focus) 18%, transparent); }
|
|
142
|
+
.tcr-prompt { height: auto; min-height: 104px; padding: 9px 11px; line-height: 1.55; resize: vertical; }
|
|
93
143
|
.tcr-mono { font-family: var(--ta-mono); }
|
|
94
144
|
.tcr-amount { width: 90px; flex: none; }
|
|
95
145
|
.tcr-row { display: flex; gap: 8px; }
|
|
96
|
-
.tcr-segments { display: flex; gap: 2px; padding:
|
|
97
|
-
.tcr-segment { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); white-space: nowrap; cursor: pointer; transition: background 140ms, color 140ms; }
|
|
98
|
-
.tcr-segment[aria-pressed='true'] {
|
|
99
|
-
.tcr-
|
|
100
|
-
.tcr-preview
|
|
101
|
-
.tcr-
|
|
146
|
+
.tcr-segments { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ta-chip); align-self: stretch; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
|
|
147
|
+
.tcr-segment { flex: 1 0 auto; height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); white-space: nowrap; cursor: pointer; transition: background 140ms, color 140ms, box-shadow 140ms; }
|
|
148
|
+
.tcr-segment:hover:not([aria-pressed='true']) { color: var(--ta-text); }
|
|
149
|
+
.tcr-segment[aria-pressed='true'] { background: var(--ta-raised); color: var(--ta-text); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 0 0 .5px var(--ta-border-muted); }
|
|
150
|
+
.tcr-preview { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ta-green) 11%, transparent); color: var(--ta-green); font-size: calc(12.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
|
|
151
|
+
.tcr-preview.tcr-bad { background: color-mix(in srgb, var(--ta-red) 11%, transparent); color: var(--ta-red); }
|
|
152
|
+
.tcr-folder { display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; }
|
|
153
|
+
.tcr-folder:hover { border-color: var(--ta-border); background: var(--ta-hover); }
|
|
154
|
+
.tcr-folder > svg { flex: none; color: var(--ta-muted); }
|
|
155
|
+
.tcr-folder-name { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
102
156
|
.tcr-folder-path { flex: 1; min-width: 0; overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: right; }
|
|
103
157
|
.tcr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
|
|
104
158
|
.tcr-wide { grid-column: 1 / -1; }
|
|
105
|
-
.tcr-
|
|
159
|
+
.tcr-options { display: flex; flex-direction: column; gap: 12px; }
|
|
160
|
+
.tcr-more-toggle { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-left: -4px; padding: 2px 6px 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }
|
|
161
|
+
.tcr-more-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }
|
|
162
|
+
.tcr-more-toggle .tcr-chevron { transform: rotate(-90deg); }
|
|
163
|
+
.tcr-options.tcr-open .tcr-more-toggle .tcr-chevron { transform: none; }
|
|
164
|
+
.tcr-options .tcr-grid { animation: tcr-in 140ms var(--ta-ease); }
|
|
165
|
+
.tcr-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--ta-border-muted); }
|
|
166
|
+
.tcr-actions .tcr-button { height: 32px; padding: 0 14px; font-size: calc(13px * var(--ta-font-scale)); }
|
|
167
|
+
.tcr-shortcut { margin-right: auto; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
|
|
168
|
+
|
|
169
|
+
/* A task in a conversation, as a command or the tool answers */
|
|
106
170
|
.tcr-reply { margin: 4px 0; padding: 10px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-card); font-size: calc(13px * var(--ta-font-scale)); }
|
|
107
171
|
.tcr-reply-head { display: flex; align-items: center; gap: 8px; color: var(--ta-secondary); }
|
|
108
172
|
.tcr-reply-head svg { color: var(--ta-green); }
|
|
109
173
|
.tcr-reply-head .tcr-link { margin-left: auto; }
|
|
110
174
|
.tcr-reply-task { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
|
|
111
|
-
.tcr-reply .tcr-prompt-text { margin: 8px 0 0; }
|
|
175
|
+
.tcr-reply .tcr-prompt-text { margin: 8px 0 0; max-height: 160px; overflow: auto; }
|
|
112
176
|
.tcr-reply-error { color: var(--ta-red); }
|
|
113
177
|
.tcr-help { margin: 8px 0 0; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.6; white-space: pre-wrap; color: var(--ta-secondary); }
|
|
114
|
-
|
|
178
|
+
|
|
179
|
+
/*
|
|
180
|
+
* A phone (device/device-protocol.ts: data-layout): the name of a task over its rule and its next run,
|
|
181
|
+
* so that the name is not cut to nothing by the rest; everything a finger taps is a finger's size.
|
|
182
|
+
*/
|
|
183
|
+
[data-layout='compact'] .tcr-page { padding: 12px 10px 48px; }
|
|
184
|
+
[data-layout='compact'] .tcr-head { margin-bottom: 8px; min-height: 24px; }
|
|
185
|
+
[data-layout='compact'] .tcr-list { gap: 8px; }
|
|
186
|
+
[data-layout='compact'] .tcr-task-row { gap: 2px; padding-right: 6px; }
|
|
187
|
+
[data-layout='compact'] .tcr-task-main { gap: 10px; min-height: 68px; padding: 12px 2px 12px 12px; }
|
|
188
|
+
[data-layout='compact'] .tcr-mark { width: 34px; height: 34px; }
|
|
189
|
+
[data-layout='compact'] .tcr-task-name { font-size: calc(15px * var(--ta-font-scale)); }
|
|
190
|
+
[data-layout='compact'] .tcr-task-dir, [data-layout='compact'] .tcr-task-last { display: none; }
|
|
191
|
+
[data-layout='compact'] .tcr-task-state { display: none; }
|
|
192
|
+
[data-layout='compact'] .tcr-task-next { display: inline; }
|
|
193
|
+
[data-layout='compact'] .tcr-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
194
|
+
[data-layout='compact'] .tcr-detail { margin: 0 12px; padding: 12px 0 14px; }
|
|
195
|
+
[data-layout='compact'] .tcr-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 14px; padding: 0 12px; }
|
|
196
|
+
[data-layout='compact'] .tcr-stats { display: none; }
|
|
197
|
+
[data-layout='compact'] .tcr-run-head { flex-wrap: wrap; row-gap: 2px; padding: 8px; }
|
|
198
|
+
/* What a run answered goes under its time rather than past it, where a phone has no room. */
|
|
199
|
+
[data-layout='compact'] .tcr-run-line { box-sizing: border-box; flex: 1 1 100%; order: 9; padding-left: 18px; }
|
|
200
|
+
[data-layout='compact'] .tcr-run::before { left: 11px; }
|
|
201
|
+
[data-layout='compact'] .tcr-run-body { padding: 2px 10px 12px 14px; }
|
|
202
|
+
[data-layout='compact'] .tcr-empty { padding: 32px 0 16px; }
|
|
203
|
+
[data-layout='compact'] .tcr-clock { width: 92px; height: 92px; }
|
|
204
|
+
[data-layout='compact'] .tcr-examples { margin-top: 20px; }
|
|
205
|
+
[data-layout='compact'] .tcr-grid { grid-template-columns: 1fr; }
|
|
206
|
+
[data-layout='compact'] .tcr-form-body { gap: 16px; }
|
|
207
|
+
[data-layout='compact'] .ta-web-dialog:has(> .tcr-form) { max-height: min(92dvh, calc(100% - 8px - env(safe-area-inset-top))); }
|
|
208
|
+
[data-layout='compact'] .tcr-actions { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
|
|
209
|
+
[data-layout='compact'] .tcr-actions .tcr-button { flex: 1; justify-content: center; }
|
|
210
|
+
|
|
211
|
+
/* A finger: a target of its own size around what is drawn (44px), and the press showing at once. */
|
|
212
|
+
[data-touch] .tcr-icon { width: 36px; height: 36px; border-radius: 10px; }
|
|
213
|
+
[data-touch] .tcr-icon::after { content: ''; position: absolute; inset: -4px; }
|
|
214
|
+
[data-touch] .tcr-icon:hover { background: none; }
|
|
215
|
+
[data-touch] .tcr-icon:active { background: var(--ta-hover); color: var(--ta-text); }
|
|
216
|
+
[data-touch] .tcr-switch::after { content: ''; position: absolute; inset: -12px -6px; }
|
|
217
|
+
[data-touch] .tcr-task-main:active { background: var(--ta-hover); }
|
|
218
|
+
[data-touch] .tcr-run-head { min-height: 44px; }
|
|
219
|
+
[data-touch] .tcr-run-head:hover { background: none; }
|
|
220
|
+
[data-touch] .tcr-run-head:active { background: var(--ta-hover); }
|
|
221
|
+
[data-touch] .tcr-button { height: 36px; padding: 0 14px; }
|
|
222
|
+
[data-touch] .tcr-segment { height: 32px; }
|
|
223
|
+
[data-touch] .tcr-more-toggle { padding: 8px 6px 8px 4px; font-size: max(15px, calc(13.5px * var(--ta-font-scale))); }
|
|
224
|
+
/* A link of the dialog, which a finger taps too: a line of its own height. */
|
|
225
|
+
[data-touch] .tcr-link { padding: 8px 0; font-size: max(16px, calc(13.5px * var(--ta-font-scale))); }
|
|
226
|
+
/* Under 16px iOS zooms into the field it focuses, which loses the dialog around it: never smaller. */
|
|
227
|
+
[data-touch] .tcr-input { font-size: max(16px, calc(13.5px * var(--ta-font-scale))); }
|
|
228
|
+
[data-touch] .tcr-folder { height: auto; min-height: 40px; padding: 6px 10px; }
|
|
229
|
+
[data-touch] .tcr-folder-path { font-size: max(16px, calc(12px * var(--ta-font-scale))); }
|
|
230
|
+
|
|
231
|
+
@media (prefers-reduced-motion: reduce) {
|
|
232
|
+
.tcr-task, .tcr-detail, .tcr-run-body, .tcr-clock-hand, .tcr-running, .tcr-pulse, .tcr-options .tcr-grid { animation: none; }
|
|
233
|
+
.tcr-chevron { transition: none; }
|
|
234
|
+
}
|
|
115
235
|
`;
|
|
116
236
|
function injectStyle() {
|
|
117
237
|
const element = document.createElement('style');
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Run, Task } from './cron-protocol';
|
|
2
|
+
/**
|
|
3
|
+
* What asks Ta to make an extension of a scheduled task: a line in the user's language, which the
|
|
4
|
+
* conversation shows, after a `<context>` block for the model, which the pages of Ta leave out
|
|
5
|
+
* (TaMessageContext of @celljs/ta-protocol, not bundled here).
|
|
6
|
+
*/
|
|
7
|
+
export declare namespace TaskExtension {
|
|
8
|
+
function message(task: Task, runs: readonly Run[] | undefined, language: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* What the model reads: the task, what its last run answered, and how an extension of it stays one with
|
|
11
|
+
* it. All of it is here, for a model without the tool schedule_task (another coding agent).
|
|
12
|
+
*/
|
|
13
|
+
function context(task: Task, runs: readonly Run[] | undefined): string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=task-extension.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaskExtension = void 0;
|
|
4
|
+
const i18n_1 = require("./i18n");
|
|
5
|
+
const schedule_util_1 = require("./schedule-util");
|
|
6
|
+
/** How much of the prompt and of the last answer the model is given here; the rest it reads with schedule_task. */
|
|
7
|
+
const PROMPT_MAX = 4000;
|
|
8
|
+
const ANSWER_MAX = 2000;
|
|
9
|
+
/**
|
|
10
|
+
* What asks Ta to make an extension of a scheduled task: a line in the user's language, which the
|
|
11
|
+
* conversation shows, after a `<context>` block for the model, which the pages of Ta leave out
|
|
12
|
+
* (TaMessageContext of @celljs/ta-protocol, not bundled here).
|
|
13
|
+
*/
|
|
14
|
+
var TaskExtension;
|
|
15
|
+
(function (TaskExtension) {
|
|
16
|
+
function message(task, runs, language) {
|
|
17
|
+
const words = i18n_1.CronWords.of(language);
|
|
18
|
+
return `<context>\n${context(task, runs)}\n</context>\n${i18n_1.CronWords.format(words.extensionAsk, { name: task.name })}`;
|
|
19
|
+
}
|
|
20
|
+
TaskExtension.message = message;
|
|
21
|
+
/**
|
|
22
|
+
* What the model reads: the task, what its last run answered, and how an extension of it stays one with
|
|
23
|
+
* it. All of it is here, for a model without the tool schedule_task (another coding agent).
|
|
24
|
+
*/
|
|
25
|
+
function context(task, runs) {
|
|
26
|
+
var _a;
|
|
27
|
+
const answer = (_a = runs === null || runs === void 0 ? void 0 : runs.find(run => run.status === 'success' && run.summary)) === null || _a === void 0 ? void 0 : _a.summary;
|
|
28
|
+
const lines = [
|
|
29
|
+
`The user wants the scheduled task "${task.name}" made into an extension of Ta, with the ta-package skill, kept in extensions/:`,
|
|
30
|
+
'- a page that shows the results of its runs in a form that suits them (a list by severity, figures, a state, what changed since the run before) rather than as the text of a run, where the user goes through past runs, runs it now and turns it on or off;',
|
|
31
|
+
'- a card of the board (location "board") with the latest result at a glance, when that is useful.',
|
|
32
|
+
'',
|
|
33
|
+
`The task goes on running on its schedule in @celljs/ta-cron: the extension reads and drives it with pi.packages.callPackageHost('@celljs/ta-cron', method, params), as the skill says, and schedules nothing of its own.`,
|
|
34
|
+
'Where the results need structure, have each run end its answer with a fenced json block of a shape you choose, the whole answer under 4000 characters (what a run keeps of it), and have the page read that block, showing runs from before as text. Change the prompt of the task for it with schedule_task (action "update"); without that tool, give the user the new prompt to paste in the Edit dialog of the task.',
|
|
35
|
+
'',
|
|
36
|
+
`Task: ${task.id}, ${schedule_util_1.ScheduleUtil.describe(task.schedule, 'en-US')}, in ${task.cwd}, ${task.enabled ? 'on' : 'off'}, ran ${task.runCount} times (${task.failCount} failed).`,
|
|
37
|
+
'Its prompt:',
|
|
38
|
+
fence(clip(task.prompt, PROMPT_MAX)),
|
|
39
|
+
];
|
|
40
|
+
if (answer) {
|
|
41
|
+
lines.push('What its last run answered:', fence(clip(answer, ANSWER_MAX)));
|
|
42
|
+
}
|
|
43
|
+
return lines.join('\n');
|
|
44
|
+
}
|
|
45
|
+
TaskExtension.context = context;
|
|
46
|
+
function clip(text, max) {
|
|
47
|
+
return text.length > max ? `${text.slice(0, max - 1)}…` : text;
|
|
48
|
+
}
|
|
49
|
+
/** In a fence longer than any run of backticks in it. */
|
|
50
|
+
function fence(text) {
|
|
51
|
+
const longest = Math.max(2, ...Array.from(text.matchAll(/`+/g), match => match[0].length));
|
|
52
|
+
const marks = '`'.repeat(longest + 1);
|
|
53
|
+
return `${marks}\n${text}\n${marks}`;
|
|
54
|
+
}
|
|
55
|
+
})(TaskExtension || (exports.TaskExtension = TaskExtension = {}));
|
|
56
|
+
//# sourceMappingURL=task-extension.js.map
|
|
@@ -12,6 +12,8 @@ export declare namespace TaskUtil {
|
|
|
12
12
|
function find(tasks: readonly Task[], ref: unknown): Task;
|
|
13
13
|
/** What a run adds to the system prompt: that nobody watches it, and that it ends with a summary. */
|
|
14
14
|
function systemPrompt(task: Task, now: Date): string;
|
|
15
|
+
/** What a run said, on one line: its first line with words, without the marks of Markdown around them. */
|
|
16
|
+
function firstLine(text: string): string;
|
|
15
17
|
/** Whether a run of the task ended long enough ago, by its rule, to be called missed: a task that runs once, past its grace. */
|
|
16
18
|
function missed(task: Task, now: Date): boolean;
|
|
17
19
|
}
|
|
@@ -158,6 +158,17 @@ var TaskUtil;
|
|
|
158
158
|
}
|
|
159
159
|
return value;
|
|
160
160
|
}
|
|
161
|
+
/** What a run said, on one line: its first line with words, without the marks of Markdown around them. */
|
|
162
|
+
function firstLine(text) {
|
|
163
|
+
var _a;
|
|
164
|
+
const line = (_a = text.split('\n').find(candidate => candidate.trim())) !== null && _a !== void 0 ? _a : '';
|
|
165
|
+
return line
|
|
166
|
+
.replace(/^\s*(?:#{1,6}\s+|[-*+]\s+|>\s*|\d+[.)]\s+)/, '')
|
|
167
|
+
.replace(/\*\*|__|`/g, '')
|
|
168
|
+
.replace(/\[([^\]]*)\]\([^)]*\)/g, '$1')
|
|
169
|
+
.trim();
|
|
170
|
+
}
|
|
171
|
+
TaskUtil.firstLine = firstLine;
|
|
161
172
|
/** Whether a run of the task ended long enough ago, by its rule, to be called missed: a task that runs once, past its grace. */
|
|
162
173
|
function missed(task, now) {
|
|
163
174
|
return task.schedule.kind === 'once' && !!task.nextRunAt && now.getTime() - new Date(task.nextRunAt).getTime() > cron_protocol_1.Limits.GRACE_MS;
|
|
@@ -3,7 +3,10 @@ import { type CronClient } from './page';
|
|
|
3
3
|
export declare function TasksHead({ client }: {
|
|
4
4
|
client: CronClient;
|
|
5
5
|
}): import("react").JSX.Element;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* The page of the tasks: each with its rule, its next run and its switch; opened, its prompt and runs. It
|
|
8
|
+
* scrolls in its own box, the main area giving it what is left under the head.
|
|
9
|
+
*/
|
|
7
10
|
export declare function TasksPage({ client }: {
|
|
8
11
|
client: CronClient;
|
|
9
12
|
}): import("react").JSX.Element;
|