@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
|
@@ -10,6 +10,8 @@ A built-in pi package for Ta (enabled by default, can be disabled in Settings
|
|
|
10
10
|
- Import: use the button, the page's top-right menu, or drag files to the page. In the dialog, select a `.tgz` file or enter an `npm:…` / Git address to install (`installPackage`, equivalent to `ta install`). After import, install, or remove, call `reloadExtensions` so the current session and page get the updates immediately.
|
|
11
11
|
- "Share with Others": export → send .tgz file → they import. A three-step diagram shows this flow, with a note explaining that npm, Git sources, or telling Ta directly also work.
|
|
12
12
|
- Each row and the page of a package of the marketplace have Share: the share dialog of Ta (a QR code, a link).
|
|
13
|
+
- Settings → Making extensions (`settings.tsx`, `registerSettings`): the model of the conversations that make or change an extension, kept as `makeModel` in the data of this package (`make-model.ts`); unset, the default model, and the default too, the user told why, when the one set cannot be used (its credentials went). Make and Change of the Extensions page, and Make an extension of a scheduled task, open their conversation on it.
|
|
14
|
+
- Make an extension in the + of the message box of every conversation (`composer.tsx`, `registerComposerAddon`): asks Ta, in that conversation, to make an extension of what it did, its inputs a form or buttons, its steps a command or a tool, its results a view that suits them. The conversation shows one line, the rest for the model is in a `<context>` block; while a reply runs, it waits its turn. With a model set for making extensions, the conversation is copied instead (`forkToFile`) and the copy goes on on that model, the conversation left as it was; the entry names the model. The box of a channel has it too ([@celljs/ta-channels](../ta-channels/README.en.md)), for its lead; the one of a scheduled task is [@celljs/ta-cron](../ta-cron/README.en.md)'s.
|
|
13
15
|
- The search of Quick open gets three sections from here (`search.ts`, `registerSearch`): Installed and Come with Ta, filtered in memory, and Marketplace, npm searched through the host a page at a time, with Install on those not installed.
|
|
14
16
|
- Extensions opened without installing are not listed under "Mine": Quick open installs or deletes them ([@celljs/ta-launcher](../ta-launcher/README.en.md)). The page of a package of the marketplace with a web extension has Open besides Install: its pages run at once as a temporary extension (`pi.openTemporary`), found in Quick open afterwards.
|
|
15
17
|
- "Marketplace" (`market-view.tsx`, `market-detail.tsx`): npm packages with the `pi-package` keyword—the ones listed in pi's official package directory.
|
|
@@ -27,4 +29,4 @@ A built-in pi package for Ta (enabled by default, can be disabled in Settings
|
|
|
27
29
|
- Extensions imported from files are placed only in the user's `extensions/`. To use one in a project, place the directory in the project's `.ta/extensions/` and commit it.
|
|
28
30
|
- Extensions run code on this machine. Before importing extensions from others, the page warns to only import from trusted sources, and the skill asks Ta to review it first and explain what it does. Marketplace installs are one-click (no approval prompts, following pi's practice); you can view the intro and source code at the bottom of the list or in the detail page.
|
|
29
31
|
- The marketplace only recognizes the official npm registry (search, manifests, and download counts at registry.npmjs.org). READMEs depend on jsDelivr or GitHub. If either is unreachable, the page shows why and offers "Retry"; this doesn't affect already-installed extensions. Installation still uses pi's npm, respecting your npm config.
|
|
30
|
-
- Most npm data is in English; Chinese searches won't find everything. Topic buttons use English keywords.
|
|
32
|
+
- Most npm data is in English; Chinese searches won't find everything. Topic buttons use English keywords.
|
|
@@ -15,6 +15,8 @@ Ta 自带的 pi 包(默认开启,可在 设置 → 扩展 关闭):告诉
|
|
|
15
15
|
- 点卡片进入详情页(`Esc` 或"返回"回到列表,滚动位置不变):头像、名称、说明、作者/版本/下载量/许可证/时间、安装或移除、npm/源代码/主页链接,`pi.video` / `pi.image` 预览,以及 README。带 Web 扩展的包还有"打开":不安装,作为临时扩展直接运行它的页面(`pi.openTemporary`,见 [@celljs/ta-launcher](../ta-launcher/README.md)),之后在"快捷打开"里找到它。
|
|
16
16
|
- 免安装打开的临时扩展不列在"我的"里,由"快捷打开"安装或删除。
|
|
17
17
|
- 每一行和市场详情页都有"分享":打开 Ta 的分享弹窗(二维码、链接)。
|
|
18
|
+
- 设置 → 做扩展(`settings.tsx`,`registerSettings`):做、改扩展的对话用哪个模型,存在本包数据的 `makeModel`(`make-model.ts`),不选就跟随默认模型;选的模型用不了时(凭据没了)改用默认模型并提示原因。扩展页的"做一个扩展""修改"、定时任务的"做成扩展"都按它开新对话。
|
|
19
|
+
- 每个对话输入框 + 菜单里的"做成扩展"(`composer.tsx`,`registerComposerAddon`):在这个对话里请 Ta 把对话做的事做成扩展,输入做成表单或按钮,步骤做成命令或工具,结果用合适的界面呈现。对话里只显示一句话,给模型的说明在 `<context>` 块里;回答进行中时排在它后面。设置了做扩展的模型时,改为把这个对话复制一份(`forkToFile`),在副本里用那个模型来做,原对话不动;菜单项的说明会写出模型。频道的输入框也有这个入口([@celljs/ta-channels](../ta-channels/README.md)),由负责人来做;定时任务的"做成扩展"见 [@celljs/ta-cron](../ta-cron/README.md)。
|
|
18
20
|
- 快捷打开的搜索里加了"已安装""内置""市场"三个分区(`search.ts`,`registerSearch`):前两个在内存里过滤,市场经服务端搜 npm、分页,未安装的有"安装"按钮。
|
|
19
21
|
- **服务端**(`pi.host`,`web-src/host.ts` → `host/index.mjs`):页面经 `callHost`(`TaPackageServer.callPackageHost`)调用。
|
|
20
22
|
- `exportPackage(id)`:把包目录打成一个 `.tgz`(gzip 的 tar,顶层是包目录,去掉 `node_modules`、`.git` 和链接),用 base64 交给页面下载。和 `tar -czf <名字>.tgz <名字>` 的格式相同,没有 Ta 也能用 `tar` 解开。
|
|
@@ -27,4 +29,4 @@ Ta 自带的 pi 包(默认开启,可在 设置 → 扩展 关闭):告诉
|
|
|
27
29
|
- 从文件导入的扩展只放进用户的 `extensions/`;要给一个项目用,把目录放进项目的 `.ta/extensions/` 并提交。
|
|
28
30
|
- 扩展会在本机运行代码:导入别人给的扩展前,页面提示只导入信任的来源,技能也要求 Ta 先读一遍再说明它做什么。市场的安装是一键的(照 pi 的做法不弹审批),列表底部和详情里都可以先看介绍和源代码。
|
|
29
31
|
- 市场只认 npm 官方源(搜索、清单、下载量都在 registry.npmjs.org),README 依赖 jsDelivr 或 GitHub;连不上时页面显示原因和"重试",不影响已安装的扩展。安装仍走 pi 的 npm 安装,遵循用户自己的 npm 配置。
|
|
30
|
-
- npm 的数据大多是英文,按中文搜不到;话题按钮用英文关键词。
|
|
32
|
+
- npm 的数据大多是英文,按中文搜不到;话题按钮用英文关键词。
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ExtensionActions = exports.PackagesStore = void 0;
|
|
4
4
|
const extensions_util_1 = require("./extensions-util");
|
|
5
5
|
const i18n_1 = require("./i18n");
|
|
6
|
+
const make_model_1 = require("./make-model");
|
|
6
7
|
/** The packages of the server, listed again after each change and each reply of Ta, which may have made one. */
|
|
7
8
|
class PackagesStore {
|
|
8
9
|
constructor(pi) {
|
|
@@ -175,7 +176,8 @@ class ExtensionActions {
|
|
|
175
176
|
async converse(text) {
|
|
176
177
|
await this.guard(async () => {
|
|
177
178
|
const { cwd } = await this.pi.server.getServerInfo();
|
|
178
|
-
|
|
179
|
+
// On the model set for making extensions, else the default (make-model.ts).
|
|
180
|
+
const sessionId = await make_model_1.MakeModel.open(this.pi, { cwd });
|
|
179
181
|
await this.pi.switchSession(sessionId);
|
|
180
182
|
await this.pi.sendUserMessage(text);
|
|
181
183
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { WebComposerAddon, WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/**
|
|
3
|
+
* What asks Ta to make an extension of a conversation: 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).
|
|
6
|
+
*/
|
|
7
|
+
export declare namespace ConversationExtension {
|
|
8
|
+
const CONTEXT: string;
|
|
9
|
+
function message(language: string): string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The + of the message box of every conversation: Make an extension, which asks Ta to make one of what the
|
|
13
|
+
* conversation did. In that very conversation, after a reply that runs; with a model set for making
|
|
14
|
+
* extensions (settings.tsx), in a copy of it on that model, shown in its place, the conversation left as it was.
|
|
15
|
+
*/
|
|
16
|
+
export declare function composerAddon(pi: WebExtensionAPI): WebComposerAddon;
|
|
17
|
+
//# sourceMappingURL=composer.d.ts.map
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConversationExtension = void 0;
|
|
4
|
+
exports.composerAddon = composerAddon;
|
|
5
|
+
const context_1 = require("./context");
|
|
6
|
+
const i18n_1 = require("./i18n");
|
|
7
|
+
const make_model_1 = require("./make-model");
|
|
8
|
+
// biome-ignore lint/correctness/noUnusedImports: the JSX below compiles to React.createElement (jsxFactory)
|
|
9
|
+
const react_1 = require("./react");
|
|
10
|
+
/**
|
|
11
|
+
* What asks Ta to make an extension of a conversation: a line in the user's language, which the
|
|
12
|
+
* conversation shows, after a `<context>` block for the model, which the pages of Ta leave out
|
|
13
|
+
* (TaMessageContext of @celljs/ta-protocol).
|
|
14
|
+
*/
|
|
15
|
+
var ConversationExtension;
|
|
16
|
+
(function (ConversationExtension) {
|
|
17
|
+
ConversationExtension.CONTEXT = [
|
|
18
|
+
'The user wants what was done in this conversation made into an extension of Ta, with the ta-package skill, kept in extensions/: a tool that does it again without it being explained again.',
|
|
19
|
+
'- Look back over the conversation for what is worth keeping: the task, the steps that worked, the inputs that change from one time to the next, and what came out.',
|
|
20
|
+
'- The inputs become a form or a few buttons, the steps a command or a tool of its pi extension (or a prompt it sends), and the results a view that suits them: a page, a card of the board, or the view of a message, rather than plain text.',
|
|
21
|
+
'- Leave out what was only tried and dropped. When the conversation holds nothing to make a tool of, say so and ask what the extension should do.',
|
|
22
|
+
].join('\n');
|
|
23
|
+
function message(language) {
|
|
24
|
+
return `<context>\n${ConversationExtension.CONTEXT}\n</context>\n${i18n_1.ExtensionWords.of(language).fromChatAsk}`;
|
|
25
|
+
}
|
|
26
|
+
ConversationExtension.message = message;
|
|
27
|
+
})(ConversationExtension || (exports.ConversationExtension = ConversationExtension = {}));
|
|
28
|
+
/**
|
|
29
|
+
* The + of the message box of every conversation: Make an extension, which asks Ta to make one of what the
|
|
30
|
+
* conversation did. In that very conversation, after a reply that runs; with a model set for making
|
|
31
|
+
* extensions (settings.tsx), in a copy of it on that model, shown in its place, the conversation left as it was.
|
|
32
|
+
*/
|
|
33
|
+
function composerAddon(pi) {
|
|
34
|
+
// The model set, for the entry to say where it goes; read again when the settings change it.
|
|
35
|
+
let model;
|
|
36
|
+
const listeners = new Set();
|
|
37
|
+
const read = () => void make_model_1.MakeModel.get(pi).then(next => {
|
|
38
|
+
if (next !== model) {
|
|
39
|
+
model = next;
|
|
40
|
+
for (const listener of listeners) {
|
|
41
|
+
listener();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
read();
|
|
46
|
+
pi.storage.onChange(keys => keys.includes(make_model_1.MAKE_MODEL_KEY) && read());
|
|
47
|
+
const failed = (error) => pi.ui.notify(error instanceof Error ? error.message : String(error), 'error');
|
|
48
|
+
const ask = () => ({ clientMessageId: `ta-extensions:conversation:${Date.now()}`, message: ConversationExtension.message(pi.ui.language) });
|
|
49
|
+
const send = async (conversation) => {
|
|
50
|
+
var _a;
|
|
51
|
+
var _b;
|
|
52
|
+
if (!(await make_model_1.MakeModel.get(pi))) {
|
|
53
|
+
await pi.server.prompt(conversation.sessionId, { ...ask(), streamingBehavior: 'followUp' });
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const cwd = (_b = conversation.cwd) !== null && _b !== void 0 ? _b : (await pi.server.getServerInfo()).cwd;
|
|
57
|
+
const { entries } = await pi.server.getEntries(conversation.sessionId);
|
|
58
|
+
const last = (_a = entries.at(-1)) === null || _a === void 0 ? void 0 : _a.id;
|
|
59
|
+
const { sessionFile } = last ? await pi.server.forkToFile(conversation.sessionId, last, 'at') : { sessionFile: undefined };
|
|
60
|
+
const sessionId = make_model_1.MakeModel.open(pi, { cwd, sessionFile });
|
|
61
|
+
await pi.switchSession(sessionId, { title: i18n_1.ExtensionWords.of(pi.ui.language).fromChat, cwd });
|
|
62
|
+
await pi.server.prompt(await sessionId, ask());
|
|
63
|
+
};
|
|
64
|
+
return {
|
|
65
|
+
subscribe: listener => {
|
|
66
|
+
listeners.add(listener);
|
|
67
|
+
return () => listeners.delete(listener);
|
|
68
|
+
},
|
|
69
|
+
actions: conversation => {
|
|
70
|
+
const words = i18n_1.ExtensionWords.of(pi.ui.language);
|
|
71
|
+
const Sparkles = (0, context_1.icon)(pi, 'Sparkles');
|
|
72
|
+
return [
|
|
73
|
+
{
|
|
74
|
+
key: 'make-extension',
|
|
75
|
+
label: words.fromChat,
|
|
76
|
+
detail: model ? i18n_1.ExtensionWords.fill(words.fromChatModel, { model: model.slice(model.indexOf('/') + 1) }) : words.fromChatDetail,
|
|
77
|
+
icon: react_1.React.createElement(Sparkles, { size: 16 }),
|
|
78
|
+
run: () => void send(conversation).catch(failed),
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=composer.js.map
|
|
@@ -20,6 +20,14 @@ declare const EN: {
|
|
|
20
20
|
placeholder: string;
|
|
21
21
|
makePrompt: string;
|
|
22
22
|
changePrompt: string;
|
|
23
|
+
fromChat: string;
|
|
24
|
+
fromChatDetail: string;
|
|
25
|
+
fromChatAsk: string;
|
|
26
|
+
fromChatModel: string;
|
|
27
|
+
settingsTitle: string;
|
|
28
|
+
modelLabel: string;
|
|
29
|
+
modelHint: string;
|
|
30
|
+
modelFailed: string;
|
|
23
31
|
changeTitle: string;
|
|
24
32
|
changePlaceholder: string;
|
|
25
33
|
mine: string;
|
|
@@ -57,6 +65,7 @@ declare const EN: {
|
|
|
57
65
|
change: string;
|
|
58
66
|
remove: string;
|
|
59
67
|
copySource: string;
|
|
68
|
+
more: string;
|
|
60
69
|
copied: string;
|
|
61
70
|
removeTitle: string;
|
|
62
71
|
removeDetail: string;
|
|
@@ -8,6 +8,14 @@ const EN = {
|
|
|
8
8
|
placeholder: 'Describe the extension, for example: a pomodoro timer beside the conversation',
|
|
9
9
|
makePrompt: 'Make an extension: {text}',
|
|
10
10
|
changePrompt: 'Change the extension {name} (in {root}): {text}',
|
|
11
|
+
fromChat: 'Make an extension',
|
|
12
|
+
fromChatDetail: 'Of what this conversation did',
|
|
13
|
+
fromChatAsk: 'Make what this conversation did an extension, to do it again in a click',
|
|
14
|
+
fromChatModel: 'In a new conversation, on {model}',
|
|
15
|
+
settingsTitle: 'Making extensions',
|
|
16
|
+
modelLabel: 'Model',
|
|
17
|
+
modelHint: 'The new conversations that make or change an extension use it (the Extensions page, Make an extension of a scheduled task, and of a conversation, which then goes on in a copy of it); unset, the default model',
|
|
18
|
+
modelFailed: 'The model for making extensions ({model}) cannot be used, so the default one is: {message}',
|
|
11
19
|
changeTitle: 'Change {name}',
|
|
12
20
|
changePlaceholder: 'What should it do differently?',
|
|
13
21
|
mine: 'Yours',
|
|
@@ -57,6 +65,7 @@ const EN = {
|
|
|
57
65
|
change: 'Change',
|
|
58
66
|
remove: 'Remove',
|
|
59
67
|
copySource: 'Copy the source',
|
|
68
|
+
more: 'More',
|
|
60
69
|
copied: 'Copied {source}',
|
|
61
70
|
removeTitle: 'Remove {name}?',
|
|
62
71
|
removeDetail: 'Its pages, cards and commands go with it.',
|
|
@@ -128,6 +137,14 @@ const ZH = {
|
|
|
128
137
|
placeholder: '描述你想要的扩展,例如:在对话旁放一个番茄钟',
|
|
129
138
|
makePrompt: '做一个扩展:{text}',
|
|
130
139
|
changePrompt: '修改扩展 {name}(在 {root}):{text}',
|
|
140
|
+
fromChat: '做成扩展',
|
|
141
|
+
fromChatDetail: '把这次对话做成工具',
|
|
142
|
+
fromChatAsk: '把这次对话做的事做成扩展,以后一键就能再用',
|
|
143
|
+
fromChatModel: '用 {model} 在新对话里做',
|
|
144
|
+
settingsTitle: '做扩展',
|
|
145
|
+
modelLabel: '模型',
|
|
146
|
+
modelHint: '扩展页和各处“做成扩展”开的对话用这个模型;不选就跟随默认模型',
|
|
147
|
+
modelFailed: '做扩展的模型({model})现在用不了,已改用默认模型:{message}',
|
|
131
148
|
changeTitle: '修改 {name}',
|
|
132
149
|
changePlaceholder: '想让它有什么不同?',
|
|
133
150
|
mine: '我的扩展',
|
|
@@ -177,6 +194,7 @@ const ZH = {
|
|
|
177
194
|
change: '修改',
|
|
178
195
|
remove: '移除',
|
|
179
196
|
copySource: '复制来源',
|
|
197
|
+
more: '更多',
|
|
180
198
|
copied: '已复制 {source}',
|
|
181
199
|
removeTitle: '移除扩展 {name}?',
|
|
182
200
|
removeDetail: '它的页面、卡片和命令也会一起移除。',
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = activate;
|
|
4
4
|
const actions_1 = require("./actions");
|
|
5
|
+
const composer_1 = require("./composer");
|
|
5
6
|
const i18n_1 = require("./i18n");
|
|
6
7
|
const market_store_1 = require("./market-store");
|
|
7
8
|
const page_1 = require("./page");
|
|
8
9
|
// biome-ignore lint/correctness/noUnusedImports: the JSX below compiles to React.createElement (jsxFactory)
|
|
9
10
|
const react_1 = require("./react");
|
|
10
11
|
const search_1 = require("./search");
|
|
12
|
+
const settings_1 = require("./settings");
|
|
11
13
|
const signal_1 = require("./signal");
|
|
12
14
|
const style_1 = require("./style");
|
|
13
15
|
/**
|
|
@@ -48,6 +50,8 @@ function activate(pi) {
|
|
|
48
50
|
order: 90,
|
|
49
51
|
});
|
|
50
52
|
(0, search_1.registerSearches)(context);
|
|
53
|
+
pi.registerComposerAddon((0, composer_1.composerAddon)(pi));
|
|
54
|
+
pi.registerSettings((0, settings_1.makeSettings)(pi));
|
|
51
55
|
// A reply of Ta may have made, changed or removed one.
|
|
52
56
|
pi.on('agent_end', () => void store.load());
|
|
53
57
|
return removeStyle;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TaOpenSessionOptions } from '@celljs/ta-protocol';
|
|
2
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
3
|
+
/**
|
|
4
|
+
* The model of the conversations that make extensions, set once in the settings (Making extensions): kept in
|
|
5
|
+
* the data of this package under this key, `<provider>/<model id>`, none for the default model of Ta's
|
|
6
|
+
* settings. Other packages that open such a conversation read it with
|
|
7
|
+
* `pi.packages.getExtensionData('@celljs/ta-extensions', 'makeModel')` (@celljs/ta-cron does).
|
|
8
|
+
*/
|
|
9
|
+
export declare const MAKE_MODEL_KEY = "makeModel";
|
|
10
|
+
export declare namespace MakeModel {
|
|
11
|
+
function get(pi: WebExtensionAPI): Promise<string | undefined>;
|
|
12
|
+
/** `''` goes back to the default model. */
|
|
13
|
+
function set(pi: WebExtensionAPI, model: string): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* A new session on the model of the settings, or on the default when there is none; when that model
|
|
16
|
+
* cannot be used now (its credentials went), on the default, and the user is told why.
|
|
17
|
+
*/
|
|
18
|
+
function open(pi: WebExtensionAPI, options: Omit<TaOpenSessionOptions, 'model'>): Promise<string>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=make-model.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MakeModel = exports.MAKE_MODEL_KEY = void 0;
|
|
4
|
+
const i18n_1 = require("./i18n");
|
|
5
|
+
/**
|
|
6
|
+
* The model of the conversations that make extensions, set once in the settings (Making extensions): kept in
|
|
7
|
+
* the data of this package under this key, `<provider>/<model id>`, none for the default model of Ta's
|
|
8
|
+
* settings. Other packages that open such a conversation read it with
|
|
9
|
+
* `pi.packages.getExtensionData('@celljs/ta-extensions', 'makeModel')` (@celljs/ta-cron does).
|
|
10
|
+
*/
|
|
11
|
+
exports.MAKE_MODEL_KEY = 'makeModel';
|
|
12
|
+
var MakeModel;
|
|
13
|
+
(function (MakeModel) {
|
|
14
|
+
async function get(pi) {
|
|
15
|
+
const value = await pi.storage.get(exports.MAKE_MODEL_KEY).catch(() => undefined);
|
|
16
|
+
return typeof value === 'string' && value ? value : undefined;
|
|
17
|
+
}
|
|
18
|
+
MakeModel.get = get;
|
|
19
|
+
/** `''` goes back to the default model. */
|
|
20
|
+
function set(pi, model) {
|
|
21
|
+
return pi.storage.set(exports.MAKE_MODEL_KEY, model || null);
|
|
22
|
+
}
|
|
23
|
+
MakeModel.set = set;
|
|
24
|
+
/**
|
|
25
|
+
* A new session on the model of the settings, or on the default when there is none; when that model
|
|
26
|
+
* cannot be used now (its credentials went), on the default, and the user is told why.
|
|
27
|
+
*/
|
|
28
|
+
async function open(pi, options) {
|
|
29
|
+
const model = await get(pi);
|
|
30
|
+
if (model) {
|
|
31
|
+
try {
|
|
32
|
+
return (await pi.server.openSession({ ...options, model })).sessionId;
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
36
|
+
pi.ui.notify(i18n_1.ExtensionWords.fill(i18n_1.ExtensionWords.of(pi.ui.language).modelFailed, { model, message }), 'warning');
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return (await pi.server.openSession(options)).sessionId;
|
|
40
|
+
}
|
|
41
|
+
MakeModel.open = open;
|
|
42
|
+
})(MakeModel || (exports.MakeModel = MakeModel = {}));
|
|
43
|
+
//# sourceMappingURL=make-model.js.map
|
|
@@ -142,42 +142,66 @@ function ShareSteps({ pi, actions }) {
|
|
|
142
142
|
react_1.React.createElement("span", null, words.shareSteps[index])))))),
|
|
143
143
|
react_1.React.createElement("div", { className: "tax-note" }, words.shareMore)));
|
|
144
144
|
}
|
|
145
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* One extension: what it is and holds, a switch; what can be done with it, on hover as icons with a mouse, under a
|
|
147
|
+
* … with a finger (and a right click or a long press on the row, the menu of every list of Ta). On a phone the tags
|
|
148
|
+
* go to the second line, so that the name keeps the room, and a swipe to the left shows Remove, as WeChat's.
|
|
149
|
+
*/
|
|
146
150
|
function PackageRow({ pi, actions, pkg }) {
|
|
147
151
|
var _a, _b, _c;
|
|
148
152
|
const words = actions.words;
|
|
153
|
+
const { touch, handheld } = pi.ui.useDevice();
|
|
154
|
+
const [menu, openMenu] = pi.ui.useContextMenu();
|
|
149
155
|
const mine = pkg.origin === 'directory';
|
|
150
156
|
const Icon = (0, context_1.icon)(pi, (_a = pkg.icon) !== null && _a !== void 0 ? _a : (mine ? 'Puzzle' : 'PackageOpen'), mine ? 'Puzzle' : 'PackageOpen');
|
|
157
|
+
const More = (0, context_1.icon)(pi, 'Ellipsis');
|
|
151
158
|
const title = (_b = ta_protocol_1.TaPackageTextUtil.pick(pkg.title, pi.ui.language)) !== null && _b !== void 0 ? _b : pkg.name;
|
|
152
159
|
const summary = (_c = ta_protocol_1.TaPackageTextUtil.pick(pkg.summary, pi.ui.language)) !== null && _c !== void 0 ? _c : pkg.description;
|
|
153
160
|
const tags = [...pkg.resources.map(type => words.kinds[type]), ...(pkg.scope === 'project' ? [words.project] : [])];
|
|
154
161
|
const share = () => pi.ui.shareExtension({ title, source: mine ? undefined : pkg.source, packageId: pkg.id });
|
|
162
|
+
const remove = { key: 'remove', label: words.remove, icon: 'Trash2', danger: true, run: () => actions.remove(pkg) };
|
|
155
163
|
const buttons = mine
|
|
156
164
|
? [
|
|
157
165
|
{ key: 'change', label: words.change, icon: 'Pencil', run: () => actions.change(pkg) },
|
|
158
166
|
{ key: 'export', label: words.export, icon: 'Download', run: () => actions.exportPackage(pkg) },
|
|
159
167
|
{ key: 'share', label: words.share, icon: 'QrCode', run: async () => share() },
|
|
160
|
-
|
|
168
|
+
remove,
|
|
161
169
|
]
|
|
162
170
|
: [
|
|
163
171
|
{ key: 'copy', label: words.copySource, icon: 'Copy', run: () => actions.copySource(pkg) },
|
|
164
172
|
{ key: 'share', label: words.share, icon: 'QrCode', run: async () => share() },
|
|
165
|
-
|
|
173
|
+
remove,
|
|
166
174
|
];
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
175
|
+
const item = (button) => ({
|
|
176
|
+
key: button.key,
|
|
177
|
+
label: button.label,
|
|
178
|
+
icon: (0, context_1.icon)(pi, button.icon),
|
|
179
|
+
danger: button.danger,
|
|
180
|
+
run: () => void button.run(),
|
|
181
|
+
});
|
|
182
|
+
const items = [buttons.filter(button => button !== remove).map(item), [item(remove)]];
|
|
183
|
+
const tagList = tags.map(tag => (react_1.React.createElement("span", { key: tag, className: "tax-tag" }, tag)));
|
|
184
|
+
const description = summary || (mine ? undefined : pkg.source);
|
|
185
|
+
const SwipeRow = pi.ui.SwipeRow;
|
|
186
|
+
return (react_1.React.createElement(SwipeRow, { className: "tax-item", actions: [{ key: 'remove', label: words.remove, danger: true, run: () => void remove.run() }] },
|
|
187
|
+
react_1.React.createElement("div", { className: `tax-row${pkg.enabled ? '' : ' tax-off'}`, onContextMenu: event => openMenu(event, items) },
|
|
188
|
+
react_1.React.createElement("span", { className: "tax-icon" },
|
|
189
|
+
react_1.React.createElement(Icon, { size: 17 })),
|
|
190
|
+
react_1.React.createElement("div", { className: "tax-main" },
|
|
191
|
+
react_1.React.createElement("div", { className: "tax-name" },
|
|
192
|
+
react_1.React.createElement("span", { title: title === pkg.name ? undefined : pkg.name }, title),
|
|
193
|
+
pkg.version && react_1.React.createElement("span", { className: "tax-version" }, pkg.version),
|
|
194
|
+
!handheld && tagList),
|
|
195
|
+
(description || (handheld && tags.length > 0)) && (react_1.React.createElement("div", { className: "tax-meta" },
|
|
196
|
+
handheld && tagList,
|
|
197
|
+
description && react_1.React.createElement("span", { className: "tax-description" }, description)))),
|
|
198
|
+
touch ? (react_1.React.createElement("button", { type: "button", className: "tax-action tax-more", title: words.more, "aria-label": words.more, "aria-haspopup": "menu", onClick: event => openMenu(event, items) },
|
|
199
|
+
react_1.React.createElement(More, { size: 17 }))) : (react_1.React.createElement("div", { className: "tax-actions" }, buttons.map(button => {
|
|
200
|
+
const ButtonIcon = (0, context_1.icon)(pi, button.icon);
|
|
201
|
+
return (react_1.React.createElement("button", { key: button.key, type: "button", className: `tax-action${button.danger ? ' tax-danger' : ''}`, title: button.label, "aria-label": button.label, onClick: () => void button.run() },
|
|
202
|
+
react_1.React.createElement(ButtonIcon, { size: 15 })));
|
|
203
|
+
}))),
|
|
204
|
+
react_1.React.createElement("input", { type: "checkbox", role: "switch", className: "tax-switch", "aria-label": i18n_1.ExtensionWords.fill(words.turnOn, { name: title }), "aria-checked": pkg.enabled, checked: pkg.enabled, onChange: event => void actions.setEnabled(pkg, event.target.checked) })),
|
|
205
|
+
menu));
|
|
182
206
|
}
|
|
183
207
|
//# sourceMappingURL=page.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WebExtensionAPI, WebSettingsSection } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/** Making extensions, in the settings: the model of the conversations that make them. */
|
|
3
|
+
export declare function makeSettings(pi: WebExtensionAPI): WebSettingsSection;
|
|
4
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.makeSettings = makeSettings;
|
|
4
|
+
const context_1 = require("./context");
|
|
5
|
+
const i18n_1 = require("./i18n");
|
|
6
|
+
const make_model_1 = require("./make-model");
|
|
7
|
+
const react_1 = require("./react");
|
|
8
|
+
/** The model picked for the conversations that make extensions, read again when another page changes it. */
|
|
9
|
+
function ModelSetting({ pi }) {
|
|
10
|
+
const [value, setValue] = react_1.React.useState('');
|
|
11
|
+
react_1.React.useEffect(() => {
|
|
12
|
+
let live = true;
|
|
13
|
+
const read = () => void make_model_1.MakeModel.get(pi).then(model => live && setValue(model !== null && model !== void 0 ? model : ''));
|
|
14
|
+
read();
|
|
15
|
+
const stop = pi.storage.onChange(keys => keys.includes(make_model_1.MAKE_MODEL_KEY) && read());
|
|
16
|
+
return () => {
|
|
17
|
+
live = false;
|
|
18
|
+
stop();
|
|
19
|
+
};
|
|
20
|
+
}, [pi]);
|
|
21
|
+
const ModelPicker = pi.ui.ModelPicker;
|
|
22
|
+
return (react_1.React.createElement(ModelPicker, { value: value, label: i18n_1.ExtensionWords.of(pi.ui.language).modelLabel, onChange: model => {
|
|
23
|
+
setValue(model);
|
|
24
|
+
void make_model_1.MakeModel.set(pi, model).catch(error => pi.ui.notify(error instanceof Error ? error.message : String(error), 'error'));
|
|
25
|
+
} }));
|
|
26
|
+
}
|
|
27
|
+
/** Making extensions, in the settings: the model of the conversations that make them. */
|
|
28
|
+
function makeSettings(pi) {
|
|
29
|
+
const words = () => i18n_1.ExtensionWords.of(pi.ui.language);
|
|
30
|
+
return {
|
|
31
|
+
title: () => words().settingsTitle,
|
|
32
|
+
icon: (0, context_1.icon)(pi, 'Sparkles', 'Puzzle'),
|
|
33
|
+
rows: [
|
|
34
|
+
{
|
|
35
|
+
key: 'model',
|
|
36
|
+
label: () => words().modelLabel,
|
|
37
|
+
description: () => words().modelHint,
|
|
38
|
+
stacked: true,
|
|
39
|
+
render: () => react_1.React.createElement(ModelSetting, { pi: pi }),
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** The styles of the page; only the --ta-* variables of the page, so they follow its theme. */
|
|
2
|
-
export declare const STYLE = "\n.tax-page { --tax-accent: var(--ta-green); position: relative; height: 100%; overflow: auto; color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); }\n.tax-body { display: flex; flex-direction: column; gap: 32px; max-width: 760px; margin: 0 auto; padding: 28px 24px 56px; box-sizing: border-box; }\n.tax-hero { display: flex; flex-direction: column; gap: 10px; }\n.tax-hero h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: calc(20px * var(--ta-font-scale)); font-weight: 600; letter-spacing: -0.01em; }\n.tax-hero h1 svg { color: var(--tax-accent); }\n.tax-hero > p { margin: 0 0 6px; color: var(--ta-muted); }\n.tax-kinds { margin-top: 6px; }\n.tax-section { display: flex; flex-direction: column; gap: 8px; }\n.tax-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }\n.tax-section-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; }\n.tax-count { padding: 0 6px; border-radius: 8px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); }\n.tax-button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--ta-border-muted); border-radius: 8px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms, border-color 120ms; }\n.tax-button:hover { background: var(--ta-hover); border-color: var(--ta-border); }\n.tax-button:disabled { opacity: .55; cursor: default; }\n.tax-list { border: 1px solid var(--ta-border-muted); border-radius: 12px; overflow: hidden; }\n.tax-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; }\n.tax-
|
|
2
|
+
export declare const STYLE = "\n.tax-page { --tax-accent: var(--ta-green); position: relative; height: 100%; overflow: auto; color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); }\n.tax-body { display: flex; flex-direction: column; gap: 32px; max-width: 760px; margin: 0 auto; padding: 28px 24px 56px; box-sizing: border-box; }\n.tax-hero { display: flex; flex-direction: column; gap: 10px; }\n.tax-hero h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: calc(20px * var(--ta-font-scale)); font-weight: 600; letter-spacing: -0.01em; }\n.tax-hero h1 svg { color: var(--tax-accent); }\n.tax-hero > p { margin: 0 0 6px; color: var(--ta-muted); }\n.tax-kinds { margin-top: 6px; }\n.tax-section { display: flex; flex-direction: column; gap: 8px; }\n.tax-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }\n.tax-section-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; }\n.tax-count { padding: 0 6px; border-radius: 8px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); }\n.tax-button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--ta-border-muted); border-radius: 8px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms, border-color 120ms; }\n.tax-button:hover { background: var(--ta-hover); border-color: var(--ta-border); }\n.tax-button:disabled { opacity: .55; cursor: default; }\n.tax-list { --ta-swipe-bg: var(--ta-main); border: 1px solid var(--ta-border-muted); border-radius: 12px; overflow: hidden; }\n.tax-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; }\n.tax-item + .tax-item { border-top: 1px solid var(--ta-border-muted); }\n.tax-row:hover { background: var(--ta-hover); }\n.tax-row:hover .tax-icon, .tax-row:hover .tax-tag { background: var(--ta-hover-strong); }\n.tax-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--ta-chip); color: var(--tax-accent); transition: color 160ms; }\n.tax-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; transition: opacity 160ms; }\n.tax-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }\n.tax-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tax-version { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; }\n.tax-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.tax-description { flex: 1; min-width: 0; overflow: hidden; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.tax-tag { flex: none; padding: 0 6px; border-radius: 5px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-weight: 400; line-height: calc(17px * var(--ta-font-scale)); }\n.tax-off .tax-main { opacity: .5; }\n.tax-off .tax-icon { color: var(--ta-muted); }\n.tax-actions { display: flex; gap: 2px; flex: none; opacity: 0; transition: opacity 120ms; }\n.tax-row:hover .tax-actions, .tax-row:focus-within .tax-actions { opacity: 1; }\n.tax-action { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--ta-muted); cursor: pointer; }\n.tax-action:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.tax-action.tax-danger:hover { color: var(--ta-red); }\n/* A finger: one \u2026 for the menu instead of a row of icons, and a target of a finger's size */\n.tax-more { flex: none; width: 36px; height: 36px; margin-right: -4px; }\n:root[data-handheld] .tax-body { gap: 24px; padding: 16px 12px 40px; }\n:root[data-handheld] .tax-row { gap: 10px; padding: 10px 12px; }\n:root[data-handheld] .tax-steps { gap: 4px; }\n:root[data-handheld] .tax-step { flex: 1; width: auto; min-width: 0; }\n.tax-switch { appearance: none; -webkit-appearance: none; position: relative; width: 36px; height: 20px; flex: none; margin: 0 0 0 4px; border-radius: 10px; background: var(--ta-hover-strong); cursor: pointer; transition: background 160ms; }\n.tax-switch::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); }\n.tax-switch:checked { background: var(--ta-green); }\n.tax-switch:checked::after { transform: translateX(16px); }\n.tax-switch:focus-visible { outline: 2px solid var(--ta-border-focus); outline-offset: 2px; }\n.tax-empty { padding: 16px; border: 1px dashed var(--ta-border-muted); border-radius: 12px; color: var(--ta-muted); text-align: center; }\n.tax-share { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 16px 16px; border: 1px solid var(--ta-border-muted); border-radius: 12px; }\n.tax-steps { display: flex; align-items: flex-start; justify-content: center; gap: 10px; width: 100%; }\n.tax-step { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 120px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); text-align: center; }\n.tax-step-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--tax-accent) 12%, transparent); color: var(--tax-accent); }\n.tax-step-arrow { display: inline-flex; align-items: center; height: 44px; color: var(--ta-muted); }\n.tax-note { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tax-note code { padding: 1px 5px; border-radius: 4px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.tax-drop-overlay { position: absolute; inset: 12px; z-index: 5; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--ta-border-focus); border-radius: 16px; background: color-mix(in srgb, var(--ta-main) 85%, transparent); color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; pointer-events: none; }\n.tax-dialog { display: flex; flex-direction: column; gap: 14px; min-width: min(440px, 80vw); }\n.tax-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; border: 1.5px dashed var(--ta-border); border-radius: 12px; color: var(--ta-secondary); text-align: center; transition: border-color 120ms, background 120ms; }\n.tax-drop.tax-over { border-color: var(--ta-border-focus); background: var(--ta-hover); }\n.tax-drop svg { color: var(--ta-muted); }\n.tax-link { padding: 0; border: 0; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.tax-link:hover { text-decoration: underline; }\n.tax-or { display: flex; align-items: center; gap: 10px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tax-or::before, .tax-or::after { content: ''; flex: 1; height: 1px; background: var(--ta-border-muted); }\n.tax-source { display: flex; gap: 8px; }\n.tax-source input { flex: 1; min-width: 0; height: 34px; padding: 0 11px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-input); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; box-sizing: border-box; }\n.tax-source input:focus { border-color: var(--ta-border-focus); }\n.tax-source .tax-button { height: 34px; }\n";
|
|
3
3
|
export declare function injectStyle(): () => void;
|
|
4
4
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -19,9 +19,9 @@ exports.STYLE = `
|
|
|
19
19
|
.tax-button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--ta-border-muted); border-radius: 8px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms, border-color 120ms; }
|
|
20
20
|
.tax-button:hover { background: var(--ta-hover); border-color: var(--ta-border); }
|
|
21
21
|
.tax-button:disabled { opacity: .55; cursor: default; }
|
|
22
|
-
.tax-list { border: 1px solid var(--ta-border-muted); border-radius: 12px; overflow: hidden; }
|
|
22
|
+
.tax-list { --ta-swipe-bg: var(--ta-main); border: 1px solid var(--ta-border-muted); border-radius: 12px; overflow: hidden; }
|
|
23
23
|
.tax-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
|
|
24
|
-
.tax-
|
|
24
|
+
.tax-item + .tax-item { border-top: 1px solid var(--ta-border-muted); }
|
|
25
25
|
.tax-row:hover { background: var(--ta-hover); }
|
|
26
26
|
.tax-row:hover .tax-icon, .tax-row:hover .tax-tag { background: var(--ta-hover-strong); }
|
|
27
27
|
.tax-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--ta-chip); color: var(--tax-accent); transition: color 160ms; }
|
|
@@ -29,16 +29,22 @@ exports.STYLE = `
|
|
|
29
29
|
.tax-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
|
|
30
30
|
.tax-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
31
31
|
.tax-version { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; }
|
|
32
|
-
.tax-
|
|
32
|
+
.tax-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
33
|
+
.tax-description { flex: 1; min-width: 0; overflow: hidden; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }
|
|
33
34
|
.tax-tag { flex: none; padding: 0 6px; border-radius: 5px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-weight: 400; line-height: calc(17px * var(--ta-font-scale)); }
|
|
34
35
|
.tax-off .tax-main { opacity: .5; }
|
|
35
36
|
.tax-off .tax-icon { color: var(--ta-muted); }
|
|
36
37
|
.tax-actions { display: flex; gap: 2px; flex: none; opacity: 0; transition: opacity 120ms; }
|
|
37
38
|
.tax-row:hover .tax-actions, .tax-row:focus-within .tax-actions { opacity: 1; }
|
|
38
|
-
@media (hover: none) { .tax-actions { opacity: 1; } }
|
|
39
39
|
.tax-action { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--ta-muted); cursor: pointer; }
|
|
40
40
|
.tax-action:hover { background: var(--ta-hover-strong); color: var(--ta-text); }
|
|
41
41
|
.tax-action.tax-danger:hover { color: var(--ta-red); }
|
|
42
|
+
/* A finger: one … for the menu instead of a row of icons, and a target of a finger's size */
|
|
43
|
+
.tax-more { flex: none; width: 36px; height: 36px; margin-right: -4px; }
|
|
44
|
+
:root[data-handheld] .tax-body { gap: 24px; padding: 16px 12px 40px; }
|
|
45
|
+
:root[data-handheld] .tax-row { gap: 10px; padding: 10px 12px; }
|
|
46
|
+
:root[data-handheld] .tax-steps { gap: 4px; }
|
|
47
|
+
:root[data-handheld] .tax-step { flex: 1; width: auto; min-width: 0; }
|
|
42
48
|
.tax-switch { appearance: none; -webkit-appearance: none; position: relative; width: 36px; height: 20px; flex: none; margin: 0 0 0 4px; border-radius: 10px; background: var(--ta-hover-strong); cursor: pointer; transition: background 160ms; }
|
|
43
49
|
.tax-switch::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); }
|
|
44
50
|
.tax-switch:checked { background: var(--ta-green); }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-extensions",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
4
4
|
"description": "A pi package for Ta: the page of extensions, where the user makes one by saying what it should do, and hands extensions on or takes them in as one file",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -50,6 +50,7 @@ export default function (pi) {
|
|
|
50
50
|
- `registerTool({ name, description, parameters, execute(toolCallId, params) })`: a tool the model can call in the conversations the page opens, which runs in the browser; `parameters` is a JSON schema of an object; `execute` returns the text the model reads, or throws.
|
|
51
51
|
- `registerOpener(link => boolean)`: opens what links of replies point to: `{ type: 'file', cwd, path, selection? }` (`selection` is `{ startLine, startColumn?, endLine?, endColumn? }`, from 1), `{ type: 'directory', cwd, path }` or `{ type: 'url', url }`; return `true` when it opened it, else the next opener is asked. @celljs/ta-workspace opens files, directories and pages already; register one only for links the package shows its own way.
|
|
52
52
|
- `registerComposerAddon({ actions?(conversation), above?, subscribe?(listener) })`: adds to the message box of every conversation (the double's, an agent's, any other): `actions` gives a section of entries of its + menu (`{ key, label, icon?, detail?, run() }`, or `items` for a list shown in its place, entries with `checked` and `group`); `above` is a component drawn above the box with `{ conversation }`; `subscribe` tells the boxes to read `actions` again. `conversation` is `{ sessionId, sessionFile?, cwd?, kind: 'double' | 'chat', group?, title? }`.
|
|
53
|
+
- `registerSettings({ title, icon?, rows })`: a section of Ta's settings, after its own, for what the user sets once (a model the extension uses, a choice it makes); `rows` are `{ key, label, description?, render, stacked? }`, `render` the component of the control (beside the label, under it with `stacked`), its value kept with `storage`. Do not add one for what a page of the extension shows anyway.
|
|
53
54
|
- `on(type, handler)`: events of the conversation shown, as pi sends them (`agent_start`, `agent_end`, `message_end`, `tool_execution_end`, ...).
|
|
54
55
|
- `sendUserMessage(text)`: sends a message to the conversation shown as if the user typed it; `'/name args'` runs a command of a pi extension.
|
|
55
56
|
- `switchSession(sessionId, opening?)`: shows another open session of ta serve (an id of `server.listSessions()`) as the conversation; on a phone the drawer closes. Pass a promise of the id for a session still opening (`{ title, cwd }` in `opening` says what it is): it is in front at once, showing that it opens, so a click never waits on the server.
|
|
@@ -59,14 +60,15 @@ export default function (pi) {
|
|
|
59
60
|
- `ui.openEditor({ id, title, render, icon?, onClose? }, { preview?, preserveFocus? })`: a tab beside the conversation, for a file, a diff, a page or anything to read at length; opening an id that is open shows it again. With `preview` (a single click), the next preview takes its place until it is kept (`ui.pinEditor(id)`, or a double click on it). `ui.setEditorDirty(id, dirty)` marks it changed and not saved: the user is asked before it closes. `ui.closeEditor(id)` closes it; `onClose` runs when the user does. `ui.useActiveEditor()`: a React hook, the id of the tab shown.
|
|
60
61
|
- `ui.CodeEditor` (`{ path, value, readOnly?, line?, column?, endColumn?, selection?, onChange?, onSave? }`; `selection`, `{ startLine, startColumn?, endLine?, endColumn? }`, selects those lines and shows them in the middle) and `ui.DiffEditor` (`{ path, original, modified, inline?, readOnly?, onChange?, onSave?, onDiff? }`): Monaco, bundled with the page, for the text of a file and the change between two texts.
|
|
61
62
|
- `ui.createTerminal({ cols?, rows?, cwd? })`: a terminal as VS Code's (xterm.js on WebGL, in the page's theme), loaded the first time one is made; URLs and paths of files in it (`src/a.ts:10:5`) open with Cmd or Ctrl + click, paths from `cwd` or the directory the shell reports (OSC 7): `write(data)` the program's output, `onData(listener)` what the user types, `onResize(listener)` its new size in characters, `attach(element)` shows it in an element with a size and `position: relative` (returns the function that takes it out; it keeps its screen meanwhile), `focus()`, `dispose()`. `pi.terminals` runs a shell of the server behind it.
|
|
62
|
-
- `ui.useCwd()`: a React hook, the directory of the conversation shown. `ui.useSessionId()`: the session of the conversation shown.
|
|
63
|
+
- `ui.useCwd()`: a React hook, the directory of the conversation shown; the default directory while a page, Discover or the lists of a phone are in front. `ui.useSessionId()`: the session of the conversation shown.
|
|
63
64
|
- `ui.showView(id)`: shows a view of any extension by its id, a page in the main area or a workbench tool as its tab; `''` shows the conversation again. `ui.useView(id)`: a React hook, `{ title, location, shown, menu? }` while that view is loaded, else `undefined`.
|
|
64
65
|
- `ui.Composer`: the message box of every conversation, `{ placeholder?, onSend(text), mentions?, mentionLabel?, actions? }`: `mentions` (`{ name, detail? }[]`) is what `@` lists; `actions` are sections of its + menu, entries `{ key, label, icon?, detail?, insert? | run() }` (`insert` puts text at the caret). Use it for any conversation an extension shows, rather than a box of its own. `ui.Markdown` (`{ text }`) renders messages as the conversations do. `ui.Empty` (`{ title, hint?, compact?, tone?, picture?, children? }`) is what an empty list or view shows, as Ta's own lists: a short title without a full stop, at most one quieter hint, centered in its parent (a column of flex); `compact` in a menu, picker or dialog; `picture` above it where seeing what will be there helps (a first page, a list the user fills). Use it rather than text of your own. `ui.Picture` (`{ width?, height?, frame?, className?, children }`, 160 by 96 in a rounded frame unless told) is a small picture as Ta's own: draw a few `rect`, `circle`, `path` and `text` in it with the classes `ta-pic-pane` (a surface), `ta-pic-line` (a bar of text), `ta-pic-box` (an outline), `ta-pic-accent` (what it is about), `ta-pic-mark` (green), `ta-pic-soft` (half of it), `ta-pic-dot`, `ta-pic-bad` (red), `ta-pic-path` (a dashed way), `ta-pic-stroke` (a green line), `ta-pic-tick` (a line on green) and `ta-pic-text` (code), never colors of your own, so it follows the theme. `ui.PictureCards` (`{ cards, columns?, compactColumns? }`, cards `{ key, picture, label, hint?, title?, disabled?, onPick() }`) is a row of them to pick from, as the suggestions of an empty conversation. `ui.Dialog` (`{ title, onClose, children }`) is a dialog over the whole page, as Ta's own: use it to make or change things rather than a form in a sidebar.
|
|
65
|
-
- `ui.usePages()`: a React hook, every page there is (`{ id, extension, title, icon?, state, onOpen, place, usedAt?, source?, temporary? }`), what Quick open lists; `ui.stopExtension(name)` stops one that started on open, `ui.forgetPage(id)` takes one out of Recent. `openTemporary(source, 'link')` opens a package of npm or Git without installing it and shows its first page: ask the user first. `ui.useContextMenu()`: a React hook, `[menu, open]`: render `menu`, and call `open(event, sections)` from `onContextMenu` (a long press on a touch screen is one), sections of `{ key, label, icon?, disabled?, danger?, run }`. `ui.shareExtension({ title, source?, packageId? })` opens Ta's dialog that shares an extension (a link and its QR code), `ui.openShared(text)` opens such a link after asking, and `registerSearch({ key, title, order?, remote?, search(query, offset), subscribe? })` adds a section to the search of Quick open (entries `{ key, title, detail?, icon?, tint?, action?, open(), menu? }`). `ui.QrCode` (`{ text }`) draws a QR code; `ui.scanCode?.(instructions)`, only in the Ta app, scans one with the camera.
|
|
66
|
+
- `ui.usePages()`: a React hook, every page there is (`{ id, extension, title, icon?, state, onOpen, place, usedAt?, source?, temporary? }`), what Quick open lists; `ui.stopExtension(name)` stops one that started on open, `ui.forgetPage(id)` takes one out of Recent. `openTemporary(source, 'link')` opens a package of npm or Git without installing it and shows its first page: ask the user first. `ui.useContextMenu()`: a React hook, `[menu, open]`: render `menu`, and call `open(event, sections)` from `onContextMenu` (a long press on a touch screen is one), sections of `{ key, label, icon?, disabled?, danger?, run }`. `ui.shareExtension({ title, source?, packageId? })` opens Ta's dialog that shares an extension (a link and its QR code), `ui.openShared(text)` opens such a link after asking, and `registerSearch({ key, title, order?, remote?, search(query, offset), subscribe? })` adds a section to the search of Quick open (entries `{ key, title, detail?, icon?, tint?, action?, open(), menu? }`). `ui.QrCode` (`{ text }`) draws a QR code; `ui.ImageViewer` (`{ src, alt?, className?, onLoad?, onBackground? }`) shows a picture to zoom and drag, as the previews of the workbench do (it fills a column of flex); `ui.scanCode?.(instructions)`, only in the Ta app, scans one with the camera.
|
|
66
67
|
- `ui.Avatar`: Ta's avatar, the Cell logo, as a component `{ size?, mood?, mark? }`; `mark`, one or two characters, tells agents apart. Use it wherever Ta speaks, and draw Ta no other way.
|
|
67
68
|
- `ui.icons`: the lucide icons of the page by name (`Plus`, `Hash`, `Search`, `Files`, ...): a web extension cannot import them. Check for one before using it: the list only grows.
|
|
68
69
|
- `storage.get(key)` and `storage.set(key, value)`: small JSON values kept on the server for the package, so they stay across browsers and devices; setting `null` removes a key. A package keeps at most 4 MB there. `storage.onChange(keys => ...)` hears keys changed by other pages or the server. `storage.directory(cwd)` has the same methods for values of one directory (use `ui.useCwd()`), such as the folders open in a tree: keep there what belongs to a directory, and in `storage` what belongs to the user.
|
|
69
70
|
- `ui.theme` (`'light'` or `'dark'`) and `ui.language` (`'zh-CN'` or `'en-US'`): write the words of the extension in the language of the page.
|
|
71
|
+
- `files`: the bytes of a file, for what the page cannot load by URL. `files.byUrl` is false when the page is not served by ta serve itself (the app on a phone, a page through a relay): then a URL of `workspace.fileUrl` (an image, a page) does not load, and `files.read(url)` gives `{ type, size, data }` instead — over the WebSocket, sealed end to end. Use it for pictures and pages of the workspace that must show anywhere.
|
|
70
72
|
- The services of ta serve, for what the rest cannot do, all on its one connection: `server` (sessions: the commands of pi's RPC mode, `listSessions`, `openSession`, `prompt`, ...), `workspace` (files and programs of a directory: `listDirectory`, `readFile`, `writeFile`, `fileUrl`, `findFiles`, `runCommand`), `terminals` (`openTerminal`, `writeTerminal`, ...; output by `onTerminalData`) and `packages` (`listPackages`, `installPackage`, `removePackage`, and for temporary packages `openTemporaryPackage`, `updateTemporaryPackage`, `installTemporaryPackage`).
|
|
71
73
|
|
|
72
74
|
Look like the page: inherit its font, and use its colors through CSS variables, which follow the light and dark theme: `var(--ta-text)`, `var(--ta-secondary)`, `var(--ta-muted)`, `var(--ta-card)`, `var(--ta-raised)`, `var(--ta-border)`, `var(--ta-accent)`, `var(--ta-red)`. Radius 8px for controls. Write a font size in px as `calc(13px * var(--ta-font-scale))` (a line height in px too), so that it follows the font size of the settings; the messages of a conversation and its field carry the class `ta-conversation`, which adds the font size of conversations. Keep data the extension must remember with `pi.storage`; `localStorage` only for what belongs to one browser, under keys that start with the package name.
|
|
@@ -77,6 +79,8 @@ The two halves talk through the conversation: the web extension sends `/command
|
|
|
77
79
|
|
|
78
80
|
Ta comes with some packages of its own, which are on until the user turns them off in Settings → Extensions: `@celljs/ta-workspace` (the explorer, search, source control, terminals and browser beside the conversation), `@celljs/ta-channels` (agents and channels), `@celljs/ta-computer-use` (desktop apps through Cua Driver), `@celljs/ta-changes` (the files each reply changed, their diffs, and undo), `@celljs/ta-cron` (prompts that run on a schedule, with the Scheduled page, `/loop`, `/remind`, `/schedule` and the tool `schedule_task`), `@celljs/ta-bots` (bots of WeChat and WeCom connected to the double, an agent or a conversation, with the tool `bot_send_file`), `@celljs/ta-agents` (other coding agents such as CodeBuddy Code, Claude Code and Codex as models), `@celljs/ta-launcher` (Quick open: Recent and Mine, and links of extensions opened without installing) and `@celljs/ta-extensions` (this skill, and the Extensions page in the navigation, which lists the user's packages to change, export or remove and imports others). Do not copy or change them; build a new package for something new. The web page calls packages "extensions": use that word with the user.
|
|
79
81
|
|
|
82
|
+
A web extension can read and drive the scheduled tasks of `@celljs/ta-cron`, to show what a task finds in a page of its own: `pi.packages.callPackageHost('@celljs/ta-cron', method, params)` with `list` (the tasks: `{ id, name, prompt, schedule, cwd, enabled, nextRunAt?, lastRunAt?, lastStatus?, runCount, failCount }`), `get` `[id]`, `runs` `[id, limit?]` (newest first: `{ id, status, trigger, startedAt, endedAt?, summary?, error?, sessionFile? }`, `status` one of `running`, `success`, `error`, `missed`; `summary` is the last answer of the run, at most 4000 characters), `run` `[id]` (now; resolves once it started), `setEnabled` `[id, enabled]` and `update` `[id, patch]` (the fields of the update of `schedule_task`). Read them again when the page shows and every few seconds while a run is `running`; the task keeps its schedule, so the extension schedules nothing of its own.
|
|
83
|
+
|
|
80
84
|
Under `ta serve`, with `@celljs/ta-channels` on, you have tools to build a team for what the user wants: `create_agent` (a name and a role: another Ta with its own session), `create_channel` (agents, the lead first), `add_to_channel` (agents that exist, after the members; the lead stays), `post_to_channel` (a message; the agents it names with @ answer, or the lead, and they may hand on a few times) and `list_channels`. The agents run in ta serve, so they go on when the page closes. When the user asks for a team, for roles working together or for a review by several hands, create the agents and the channel and post the goal; do not write a package for it. In `ta` without `serve` the tools say they need `ta serve`: tell the user so.
|
|
81
85
|
|
|
82
86
|
## Hand on and take in
|
|
@@ -92,4 +96,4 @@ A package travels as one `.tgz` file: a gzipped tar of its directory, the direct
|
|
|
92
96
|
|
|
93
97
|
1. `node --check web.js` and, for the pi extension, read it once more against pi's documentation.
|
|
94
98
|
2. When your reply on the web page ends, the page loads new and changed web extensions and their tools, and reloads the pi extensions of its conversation. Otherwise the page loads them when it is shown again, and `/reload` reloads pi extensions in the terminal. Do not ask the user to restart anything.
|
|
95
|
-
3. Tell the user in one or two sentences what the package does and where it shows. No file listings unless asked.
|
|
99
|
+
3. Tell the user in one or two sentences what the package does and where it shows. No file listings unless asked.
|