@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extension-with-deps",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pi-extension-with-deps",
|
|
9
|
-
"version": "1.5.
|
|
9
|
+
"version": "1.5.2",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"ms": "^2.1.3"
|
|
12
12
|
},
|
|
@@ -16,56 +16,83 @@
|
|
|
16
16
|
"@earendil-works/chord/delta": [
|
|
17
17
|
"../../../packages/chord/src/delta/index.ts"
|
|
18
18
|
],
|
|
19
|
-
"@earendil-works/chord/
|
|
20
|
-
"../../../packages/chord/src/
|
|
19
|
+
"@earendil-works/chord/json": [
|
|
20
|
+
"../../../packages/chord/src/json.ts"
|
|
21
21
|
],
|
|
22
|
-
"@earendil-works/chord/
|
|
23
|
-
"../../../packages/chord/src/
|
|
22
|
+
"@earendil-works/chord/watch": [
|
|
23
|
+
"../../../packages/chord/src/watch.ts"
|
|
24
24
|
],
|
|
25
|
-
"@earendil-works/chord/
|
|
26
|
-
"../../../packages/chord/src/
|
|
25
|
+
"@earendil-works/chord/output": [
|
|
26
|
+
"../../../packages/chord/src/output.ts"
|
|
27
27
|
],
|
|
28
|
-
"@
|
|
29
|
-
"../../../packages/chord/
|
|
28
|
+
"@earendil-works/chord/sqlite": [
|
|
29
|
+
"../../../packages/chord/src/sqlite/index.ts"
|
|
30
30
|
],
|
|
31
|
-
"@
|
|
32
|
-
"../../../packages/chord/
|
|
31
|
+
"@earendil-works/chord/sqlite/node": [
|
|
32
|
+
"../../../packages/chord/src/sqlite/node.ts"
|
|
33
33
|
],
|
|
34
|
-
"@
|
|
35
|
-
"../../../packages/chord/
|
|
34
|
+
"@earendil-works/chord/sqlite/cloudflare": [
|
|
35
|
+
"../../../packages/chord/src/sqlite/cloudflare.ts"
|
|
36
36
|
],
|
|
37
|
-
"@
|
|
38
|
-
"../../../packages/chord/
|
|
37
|
+
"@earendil-works/chord/telemetry-sqlite": [
|
|
38
|
+
"../../../packages/chord/src/telemetry-sqlite/index.ts"
|
|
39
39
|
],
|
|
40
|
-
"@
|
|
41
|
-
"../../../packages/chord/
|
|
40
|
+
"@earendil-works/chord/http": [
|
|
41
|
+
"../../../packages/chord/src/node/http/index.ts"
|
|
42
42
|
],
|
|
43
|
-
"@
|
|
44
|
-
"../../../packages/chord/
|
|
43
|
+
"@earendil-works/chord/workers": [
|
|
44
|
+
"../../../packages/chord/src/node/workers/index.ts"
|
|
45
45
|
],
|
|
46
|
-
"@earendil-works/chord/
|
|
47
|
-
"../../../packages/chord/src/
|
|
46
|
+
"@earendil-works/chord/workers/child": [
|
|
47
|
+
"../../../packages/chord/src/node/workers/child.ts"
|
|
48
48
|
],
|
|
49
|
-
"@earendil-works/chord/
|
|
50
|
-
"../../../packages/chord/src/
|
|
49
|
+
"@earendil-works/chord/plugins": [
|
|
50
|
+
"../../../packages/chord/src/node/plugins/index.ts"
|
|
51
51
|
],
|
|
52
|
-
"@earendil-works/chord/
|
|
53
|
-
"../../../packages/chord/src/node.ts"
|
|
52
|
+
"@earendil-works/chord/plugins/runtime": [
|
|
53
|
+
"../../../packages/chord/src/node/plugins/runtime.ts"
|
|
54
54
|
],
|
|
55
|
-
"@earendil-works/chord/
|
|
56
|
-
"../../../packages/chord/src/
|
|
55
|
+
"@earendil-works/chord/app": [
|
|
56
|
+
"../../../packages/chord/src/node/app/index.ts"
|
|
57
57
|
],
|
|
58
|
-
"@earendil-works/chord/
|
|
59
|
-
"../../../packages/chord/src/
|
|
58
|
+
"@earendil-works/chord/app/files": [
|
|
59
|
+
"../../../packages/chord/src/node/app/files-entry.ts"
|
|
60
60
|
],
|
|
61
|
-
"@earendil-works/chord/
|
|
62
|
-
"../../../packages/chord/src/
|
|
61
|
+
"@earendil-works/chord/web": [
|
|
62
|
+
"../../../packages/chord/src/web/index.ts"
|
|
63
63
|
],
|
|
64
|
-
"@earendil-works/chord/
|
|
65
|
-
"../../../packages/chord/src/
|
|
64
|
+
"@earendil-works/chord/surfaces": [
|
|
65
|
+
"../../../packages/chord/src/node/surfaces/index.ts"
|
|
66
66
|
],
|
|
67
|
-
"@earendil-works/chord/
|
|
68
|
-
"../../../packages/chord/src/
|
|
67
|
+
"@earendil-works/chord/react": [
|
|
68
|
+
"../../../packages/chord/src/react/index.ts"
|
|
69
|
+
],
|
|
70
|
+
"@earendil-works/chord/tui": [
|
|
71
|
+
"../../../packages/chord/src/tui/index.ts"
|
|
72
|
+
],
|
|
73
|
+
"@earendil-works/chord/tui/launcher": [
|
|
74
|
+
"../../../packages/chord/src/node/tui/index.ts"
|
|
75
|
+
],
|
|
76
|
+
"@earendil-works/chord/sync": [
|
|
77
|
+
"../../../packages/chord/src/sync/index.ts"
|
|
78
|
+
],
|
|
79
|
+
"@test/contracts/*": [
|
|
80
|
+
"../../chord/test/node/fixtures/plugins/contracts/*.ts"
|
|
81
|
+
],
|
|
82
|
+
"@example/contracts/*": [
|
|
83
|
+
"../../chord/test/examples/35-plugins/plugins/contracts/*.ts"
|
|
84
|
+
],
|
|
85
|
+
"@example/weather/*": [
|
|
86
|
+
"../../chord/test/examples/36-plugin-failures/plugins/weather/*.ts"
|
|
87
|
+
],
|
|
88
|
+
"@example/prices/*": [
|
|
89
|
+
"../../chord/test/examples/36-plugin-failures/plugins/prices/*.ts"
|
|
90
|
+
],
|
|
91
|
+
"@example/shapes/*": [
|
|
92
|
+
"../../chord/test/examples/37-plugin-imports/plugins/shapes/*.ts"
|
|
93
|
+
],
|
|
94
|
+
"@example/shared/*": [
|
|
95
|
+
"../../chord/test/examples/38-watch-and-rollout/plugins/contracts/*.ts"
|
|
69
96
|
],
|
|
70
97
|
"@earendil-works/pi-telemetry": [
|
|
71
98
|
"../../../packages/telemetry/src/index.ts"
|
|
@@ -171,7 +198,8 @@
|
|
|
171
198
|
"include": [
|
|
172
199
|
"./extensions/**/*",
|
|
173
200
|
"../../*/src/**/*.d.ts",
|
|
174
|
-
"../test/suite/regressions/8261-subagent-project-trust.test.ts"
|
|
201
|
+
"../test/suite/regressions/8261-subagent-project-trust.test.ts",
|
|
202
|
+
"../test/subagent-extension.test.ts"
|
|
175
203
|
],
|
|
176
204
|
"exclude": [
|
|
177
205
|
"**/node_modules/**",
|
package/dist/pi/package.json
CHANGED
|
@@ -699,6 +699,10 @@ var TEXTS = {
|
|
|
699
699
|
en: (agent, command) => `${agent} ran \`${command}\` and said nothing back; it may only show in ${agent}'s own interface.`,
|
|
700
700
|
zh: (agent, command) => `${agent} 已执行 \`${command}\`,没有返回内容(这个命令可能只在 ${agent} 自己的界面里有显示)。`
|
|
701
701
|
},
|
|
702
|
+
starting: {
|
|
703
|
+
en: (agent) => `Starting ${agent}…`,
|
|
704
|
+
zh: (agent) => `正在启动 ${agent}…`
|
|
705
|
+
},
|
|
702
706
|
unfinished: {
|
|
703
707
|
en: (agent) => `${agent} ended its turn before this call finished.`,
|
|
704
708
|
zh: (agent) => `${agent} 在这次调用完成前结束了这一轮。`
|
|
@@ -986,6 +990,9 @@ class AgentBindings {
|
|
|
986
990
|
sessionId(agent) {
|
|
987
991
|
return this.ids.get(agent);
|
|
988
992
|
}
|
|
993
|
+
ready(config) {
|
|
994
|
+
return this.opened.has(config.id) && this.agentOf(config, this.cwd, this.owner).running;
|
|
995
|
+
}
|
|
989
996
|
open(config, signal) {
|
|
990
997
|
this.used.set(JSON.stringify([config.id, this.cwd, this.owner]), { config, cwd: this.cwd, owner: this.owner });
|
|
991
998
|
const agent = this.agentOf(config, this.cwd, this.owner);
|
|
@@ -1717,7 +1724,18 @@ function activate(pi, options = {}) {
|
|
|
1717
1724
|
learn(config, session);
|
|
1718
1725
|
}, options.agentOf, options.release);
|
|
1719
1726
|
const streamer = new AgentStreamer({
|
|
1720
|
-
open: (config, signal) =>
|
|
1727
|
+
open: async (config, signal) => {
|
|
1728
|
+
if (bindings.ready(config)) {
|
|
1729
|
+
return bindings.open(config, signal);
|
|
1730
|
+
}
|
|
1731
|
+
const ui = context?.hasUI ? context.ui : undefined;
|
|
1732
|
+
ui?.setWorkingMessage(text("starting", config.name));
|
|
1733
|
+
try {
|
|
1734
|
+
return await bindings.open(config, signal);
|
|
1735
|
+
} finally {
|
|
1736
|
+
ui?.setWorkingMessage();
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1721
1739
|
calls,
|
|
1722
1740
|
ended: (config, session) => {
|
|
1723
1741
|
if (session.title && !pi.getSessionName()) {
|
|
@@ -47,6 +47,8 @@ export declare class AgentBindings {
|
|
|
47
47
|
*/
|
|
48
48
|
forget(): void;
|
|
49
49
|
sessionId(agent: string): string | undefined;
|
|
50
|
+
/** Its session is open in a program that runs: `open` gives it at once. */
|
|
51
|
+
ready(config: AgentConfig): boolean;
|
|
50
52
|
open(config: AgentConfig, signal?: AbortSignal): Promise<OpenedSession>;
|
|
51
53
|
/** The pi session closed: the processes it had of its own stop; shared ones stay for the others. */
|
|
52
54
|
close(): void;
|
|
@@ -101,6 +101,10 @@ class AgentBindings {
|
|
|
101
101
|
sessionId(agent) {
|
|
102
102
|
return this.ids.get(agent);
|
|
103
103
|
}
|
|
104
|
+
/** Its session is open in a program that runs: `open` gives it at once. */
|
|
105
|
+
ready(config) {
|
|
106
|
+
return this.opened.has(config.id) && this.agentOf(config, this.cwd, this.owner).running;
|
|
107
|
+
}
|
|
104
108
|
open(config, signal) {
|
|
105
109
|
this.used.set(JSON.stringify([config.id, this.cwd, this.owner]), { config, cwd: this.cwd, owner: this.owner });
|
|
106
110
|
const agent = this.agentOf(config, this.cwd, this.owner);
|
|
@@ -14,6 +14,7 @@ const agent_session_1 = require("./agent-session");
|
|
|
14
14
|
const agent_streamer_1 = require("./agent-streamer");
|
|
15
15
|
const agent_tool_1 = require("./agent-tool");
|
|
16
16
|
const message_stream_1 = require("./message-stream");
|
|
17
|
+
const texts_1 = require("./texts");
|
|
17
18
|
/** TA_FILE_WRITE_EVENT of @celljs/ta-protocol, which this bundle does not import. */
|
|
18
19
|
const TA_FILE_WRITE_EVENT = 'ta:file-write';
|
|
19
20
|
/** The custom message that starts a pi turn when an agent began one on its own. */
|
|
@@ -169,7 +170,20 @@ function activate(pi, options = {}) {
|
|
|
169
170
|
learn(config, session);
|
|
170
171
|
}, options.agentOf, options.release);
|
|
171
172
|
const streamer = new agent_streamer_1.AgentStreamer({
|
|
172
|
-
open: (config, signal) =>
|
|
173
|
+
open: async (config, signal) => {
|
|
174
|
+
if (bindings.ready(config)) {
|
|
175
|
+
return bindings.open(config, signal);
|
|
176
|
+
}
|
|
177
|
+
// Starting the program and loading its session takes a moment: the user sees what it waits for.
|
|
178
|
+
const ui = (context === null || context === void 0 ? void 0 : context.hasUI) ? context.ui : undefined;
|
|
179
|
+
ui === null || ui === void 0 ? void 0 : ui.setWorkingMessage((0, texts_1.text)('starting', config.name));
|
|
180
|
+
try {
|
|
181
|
+
return await bindings.open(config, signal);
|
|
182
|
+
}
|
|
183
|
+
finally {
|
|
184
|
+
ui === null || ui === void 0 ? void 0 : ui.setWorkingMessage();
|
|
185
|
+
}
|
|
186
|
+
},
|
|
173
187
|
calls,
|
|
174
188
|
ended: (config, session) => {
|
|
175
189
|
var _a;
|
|
@@ -20,6 +20,10 @@ declare const TEXTS: {
|
|
|
20
20
|
readonly en: (agent: string, command: string) => string;
|
|
21
21
|
readonly zh: (agent: string, command: string) => string;
|
|
22
22
|
};
|
|
23
|
+
readonly starting: {
|
|
24
|
+
readonly en: (agent: string) => string;
|
|
25
|
+
readonly zh: (agent: string) => string;
|
|
26
|
+
};
|
|
23
27
|
readonly unfinished: {
|
|
24
28
|
readonly en: (agent: string) => string;
|
|
25
29
|
readonly zh: (agent: string) => string;
|
|
@@ -24,6 +24,10 @@ const TEXTS = {
|
|
|
24
24
|
en: (agent, command) => `${agent} ran \`${command}\` and said nothing back; it may only show in ${agent}'s own interface.`,
|
|
25
25
|
zh: (agent, command) => `${agent} 已执行 \`${command}\`,没有返回内容(这个命令可能只在 ${agent} 自己的界面里有显示)。`,
|
|
26
26
|
},
|
|
27
|
+
starting: {
|
|
28
|
+
en: (agent) => `Starting ${agent}…`,
|
|
29
|
+
zh: (agent) => `正在启动 ${agent}…`,
|
|
30
|
+
},
|
|
27
31
|
unfinished: {
|
|
28
32
|
en: (agent) => `${agent} ended its turn before this call finished.`,
|
|
29
33
|
zh: (agent) => `${agent} 在这次调用完成前结束了这一轮。`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-agents",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
4
4
|
"description": "A pi package for Ta: other coding agents (CodeBuddy Code, Claude Code, Codex and any agent that speaks ACP) as models to pick, each running a conversation on its own harness",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@earendil-works/pi-ai": "^1.5.
|
|
30
|
-
"@earendil-works/pi-coding-agent": "^1.5.
|
|
29
|
+
"@earendil-works/pi-ai": "^1.5.2",
|
|
30
|
+
"@earendil-works/pi-coding-agent": "^1.5.2"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
@@ -135,6 +135,21 @@ var TaLocation;
|
|
|
135
135
|
return name || (remote === null || remote === undefined ? undefined : remote.host) || location;
|
|
136
136
|
}
|
|
137
137
|
TaLocation2.basename = basename;
|
|
138
|
+
function homeRelative(location) {
|
|
139
|
+
var _a;
|
|
140
|
+
const remote = parse(location);
|
|
141
|
+
const path2 = remote ? remote.path ? remote.path.slice(1) : "~" : location;
|
|
142
|
+
const match = /^~(?:[\\/]+(.*))?$/.exec(path2);
|
|
143
|
+
return match ? ((_a = match[1]) !== null && _a !== undefined ? _a : "").replace(/[\\/]+$/, "") : undefined;
|
|
144
|
+
}
|
|
145
|
+
TaLocation2.homeRelative = homeRelative;
|
|
146
|
+
function isAbsolute(location) {
|
|
147
|
+
if (homeRelative(location) !== undefined) {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
return isRemote(location) || /^([\\/]|[A-Za-z]:)/.test(location);
|
|
151
|
+
}
|
|
152
|
+
TaLocation2.isAbsolute = isAbsolute;
|
|
138
153
|
function parentPath(path2) {
|
|
139
154
|
const trimmed = path2.replace(/[\\/]+$/, "");
|
|
140
155
|
const at = Math.max(trimmed.lastIndexOf("/"), trimmed.lastIndexOf("\\"));
|
|
@@ -203,6 +218,37 @@ ${message}`;
|
|
|
203
218
|
}
|
|
204
219
|
TaMessageContext2.strip = strip;
|
|
205
220
|
})(TaMessageContext || (TaMessageContext = {}));
|
|
221
|
+
var TaImageNote;
|
|
222
|
+
(function(TaImageNote2) {
|
|
223
|
+
const NOTE = /^\[Image: original \d+x\d+, displayed at \d+x\d+\. Multiply coordinates by [\d.]+ to map to original image\.\]$|^\[Image converted from [^\]]+ to [^\]]+\.\]$/;
|
|
224
|
+
function strip(text) {
|
|
225
|
+
const lines = text.split(`
|
|
226
|
+
`);
|
|
227
|
+
const kept = lines.filter((line) => !NOTE.test(line.trim()));
|
|
228
|
+
if (kept.length === lines.length) {
|
|
229
|
+
return text;
|
|
230
|
+
}
|
|
231
|
+
return kept.join(`
|
|
232
|
+
`).replace(/\n+$/, "").replace(/^\n+/, "");
|
|
233
|
+
}
|
|
234
|
+
TaImageNote2.strip = strip;
|
|
235
|
+
})(TaImageNote || (TaImageNote = {}));
|
|
236
|
+
var TaAgentSummary;
|
|
237
|
+
(function(TaAgentSummary2) {
|
|
238
|
+
const START = /^\s*<conversation_history_summary>/;
|
|
239
|
+
const BLOCK = /^\s*<conversation_history_summary>[\s\S]*?(?:<\/conversation_history_summary>\s*|$)/;
|
|
240
|
+
function read(text) {
|
|
241
|
+
if (!START.test(text)) {
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
return text.replace(/<\/?(?:conversation_history_summary|summary)>/g, "").replace(/<\/?\w*$/, "").trim();
|
|
245
|
+
}
|
|
246
|
+
TaAgentSummary2.read = read;
|
|
247
|
+
function strip(text) {
|
|
248
|
+
return text.replace(BLOCK, "");
|
|
249
|
+
}
|
|
250
|
+
TaAgentSummary2.strip = strip;
|
|
251
|
+
})(TaAgentSummary || (TaAgentSummary = {}));
|
|
206
252
|
var TaSkillUse;
|
|
207
253
|
(function(TaSkillUse2) {
|
|
208
254
|
const BLOCK = /^<skill name="([^"]+)" location="([^"]+)">\n([\s\S]*?)\n<\/skill>(?:\n\n([\s\S]+))?$/;
|
|
@@ -335,6 +335,21 @@ var TaLocation;
|
|
|
335
335
|
return name || (remote === null || remote === undefined ? undefined : remote.host) || location;
|
|
336
336
|
}
|
|
337
337
|
TaLocation2.basename = basename;
|
|
338
|
+
function homeRelative(location) {
|
|
339
|
+
var _a;
|
|
340
|
+
const remote = parse(location);
|
|
341
|
+
const path2 = remote ? remote.path ? remote.path.slice(1) : "~" : location;
|
|
342
|
+
const match = /^~(?:[\\/]+(.*))?$/.exec(path2);
|
|
343
|
+
return match ? ((_a = match[1]) !== null && _a !== undefined ? _a : "").replace(/[\\/]+$/, "") : undefined;
|
|
344
|
+
}
|
|
345
|
+
TaLocation2.homeRelative = homeRelative;
|
|
346
|
+
function isAbsolute(location) {
|
|
347
|
+
if (homeRelative(location) !== undefined) {
|
|
348
|
+
return false;
|
|
349
|
+
}
|
|
350
|
+
return isRemote(location) || /^([\\/]|[A-Za-z]:)/.test(location);
|
|
351
|
+
}
|
|
352
|
+
TaLocation2.isAbsolute = isAbsolute;
|
|
338
353
|
function parentPath(path2) {
|
|
339
354
|
const trimmed = path2.replace(/[\\/]+$/, "");
|
|
340
355
|
const at = Math.max(trimmed.lastIndexOf("/"), trimmed.lastIndexOf("\\"));
|
|
@@ -403,6 +418,37 @@ ${message}`;
|
|
|
403
418
|
}
|
|
404
419
|
TaMessageContext2.strip = strip;
|
|
405
420
|
})(TaMessageContext || (TaMessageContext = {}));
|
|
421
|
+
var TaImageNote;
|
|
422
|
+
(function(TaImageNote2) {
|
|
423
|
+
const NOTE = /^\[Image: original \d+x\d+, displayed at \d+x\d+\. Multiply coordinates by [\d.]+ to map to original image\.\]$|^\[Image converted from [^\]]+ to [^\]]+\.\]$/;
|
|
424
|
+
function strip(text) {
|
|
425
|
+
const lines = text.split(`
|
|
426
|
+
`);
|
|
427
|
+
const kept = lines.filter((line) => !NOTE.test(line.trim()));
|
|
428
|
+
if (kept.length === lines.length) {
|
|
429
|
+
return text;
|
|
430
|
+
}
|
|
431
|
+
return kept.join(`
|
|
432
|
+
`).replace(/\n+$/, "").replace(/^\n+/, "");
|
|
433
|
+
}
|
|
434
|
+
TaImageNote2.strip = strip;
|
|
435
|
+
})(TaImageNote || (TaImageNote = {}));
|
|
436
|
+
var TaAgentSummary;
|
|
437
|
+
(function(TaAgentSummary2) {
|
|
438
|
+
const START = /^\s*<conversation_history_summary>/;
|
|
439
|
+
const BLOCK = /^\s*<conversation_history_summary>[\s\S]*?(?:<\/conversation_history_summary>\s*|$)/;
|
|
440
|
+
function read(text) {
|
|
441
|
+
if (!START.test(text)) {
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
return text.replace(/<\/?(?:conversation_history_summary|summary)>/g, "").replace(/<\/?\w*$/, "").trim();
|
|
445
|
+
}
|
|
446
|
+
TaAgentSummary2.read = read;
|
|
447
|
+
function strip(text) {
|
|
448
|
+
return text.replace(BLOCK, "");
|
|
449
|
+
}
|
|
450
|
+
TaAgentSummary2.strip = strip;
|
|
451
|
+
})(TaAgentSummary || (TaAgentSummary = {}));
|
|
406
452
|
var TaSkillUse;
|
|
407
453
|
(function(TaSkillUse2) {
|
|
408
454
|
const BLOCK = /^<skill name="([^"]+)" location="([^"]+)">\n([\s\S]*?)\n<\/skill>(?:\n\n([\s\S]+))?$/;
|
|
@@ -12,8 +12,8 @@ A built-in Ta package (enabled by default but can be toggled in the Web client's
|
|
|
12
12
|
- **Channel**: members (agents, with the first being the lead) and messages. Messages are sent to members `@`-mentioned; agents' answers are posted back to the channel, and if they `@` someone in their answer, it is passed on to them. Each agent processes one message at a time. Users can mute members in a channel (`muted`): they do not answer anything in this channel, even if `@`-mentioned; when the lead is muted, messages with no one `@`-mentioned go to the next unmuted member.
|
|
13
13
|
- **Loop prevention** (`ChannelsUtil.limit`): relaying between agents is at most 3 hops; one message yields at most 8 answers, with at most 2 per agent. When cut off, after this round a light-colored note is appended to the channel ("reached relay limit, waiting for you to continue"), only once per round; the return from `post_to_channel` includes this note too.
|
|
14
14
|
- **Tools**: each session in Ta (web pages and other clients connected to ta serve) has `create_agent`, `create_channel`, `add_to_channel`, `post_to_channel`, and `list_channels`. When a user specifies a goal ("assemble a team to do the landing page"), Ta creates agents and channels, posts the goal, and waits for answers from each member before replying to the user. When a role is missing from a channel, Ta uses `add_to_channel` to add an existing agent (added after existing members; lead unchanged). The open page marks this channel with a green dot in the sidebar, which disappears when opened. Pausing Ta just stops waiting; agents continue to answer in the channel.
|
|
15
|
-
- **Tasks of the double** (see `docs/design/ta-double.md`): a channel Ta builds with its tools has `by: 'ta'` and the session that built it (`origin`), and is listed as a task of the double (`registerTasks`), not among the user's own channels; the agents it makes are `temporary`, shown with their team until the user keeps them in the members panel or the agent's menu, and one in no channel is listed among the members. This list of the navigation is called "Double": the double's card, the tasks
|
|
16
|
-
- **UI**: "Agents" at the top of the navigation bar (above "Conversations"; the first bottom tab on a phone) puts the double, channels, and agents together (the double is a built-in page from ta-web, and once enabled is listed at the top, no longer appears separately in the navigation bar); the search box and + are at the top of the sidebar. + → create agent opens a draft page in the main area: first assigns an unused name and avatar, clicking the name in the top bar can rename or pick from 16 avatars, the sidebar has one more line "not started"; the agent is truly created when the first message is sent from the input box (responsibility is generic, what to do is written in this message), then switches to its session and sends the message. + → create channel is a dialog: name, search and check agents (1–12, first checked is lead), create; channel row has lead first, next member in overlapping avatars, lead is labeled beside the name, second line is the most recent message or who's answering; agents are grouped by working directory, second line is "idle" or which channel they're answering in, right side is time of most recent message. Click agent to open its session: it is in front at once, under the agent's name, showing that it opens (`pi.switchSession` takes the promise of the `openAgent` request), and shows as the current conversation once the server opens or finds the session. Hovering over agent row (long-press on touch) shows …, menu has: stop (abort its current answer), restart (open new session), rename, responsibility (edit the role in the system prompt, takes effect in next session), move to… (switch working directory, open new session in that directory), copy working directory, export conversation (Markdown, strip channel context blocks), add to channel, delete (leave all channels it's in, delete channels that only have it, keep the session file); when near the bottom the menu expands upward. Channel is a page in the main area (not in the right workbench), displayed as a group chat: others' messages on the left with avatar and name, user's on the
|
|
15
|
+
- **Tasks of the double** (see `docs/design/ta-double.md`): a channel Ta builds with its tools has `by: 'ta'` and the session that built it (`origin`), and is listed as a task of the double (`registerTasks`), not among the user's own channels; the agents it makes are `temporary`, shown with their team until the user keeps them in the members panel or the agent's menu, and one in no channel is listed among the members. This list of the navigation is called "Double": the double's card, the tasks in one list (what waits for you first, then what goes on, then what ended), the members (as contacts, by directory if the user wants), the channels, each section folding (kept in the browser). A team opened from its task shows in the workbench on the right, with "Open in the main area" in its bar. While the double asks first, the team tools ask with `ctx.ui.confirm` before they build a team and before work goes to a channel the user did not let them use. Below, the channels and agents once listed flat are now under "Channels" and "Members".
|
|
16
|
+
- **UI**: "Agents" at the top of the navigation bar (above "Conversations"; the first bottom tab on a phone) puts the double, channels, and agents together (the double is a built-in page from ta-web, and once enabled is listed at the top, no longer appears separately in the navigation bar); the search box and + are at the top of the sidebar. + → create agent opens a draft page in the main area: first assigns an unused name and avatar, clicking the name in the top bar can rename or pick from 16 avatars, the sidebar has one more line "not started"; the agent is truly created when the first message is sent from the input box (responsibility is generic, what to do is written in this message), then switches to its session and sends the message. + → create channel is a dialog: name, search and check agents (1–12, first checked is lead), create; channel row has lead first, next member in overlapping avatars, lead is labeled beside the name, second line is the most recent message or who's answering; agents are grouped by working directory, second line is "idle" or which channel they're answering in, right side is time of most recent message. Click agent to open its session: it is in front at once, under the agent's name, showing that it opens (`pi.switchSession` takes the promise of the `openAgent` request), and shows as the current conversation once the server opens or finds the session. Hovering over agent row (long-press on touch) shows …, menu has: stop (abort its current answer), restart (open new session), rename, responsibility (edit the role in the system prompt, takes effect in next session), move to… (switch working directory, open new session in that directory), copy working directory, export conversation (Markdown, strip channel context blocks), add to channel, delete (leave all channels it's in, delete channels that only have it, keep the session file); when near the bottom the menu expands upward. Channel is a page in the main area (not in the right workbench), displayed as a group chat: others' messages on the left with avatar and name, user's on the right, consecutive messages are grouped, after a long pause insert a time line; top bar is channel name and member avatars, click avatar to open "Channel Members" (`members`, `location: 'panel'` view, follows the current channel) in the right workbench: lists members, lead has a marker, answering ones are marked green; each row opens that agent's session, hovering (long-press on touch) shows set as lead, mute, restart session (forget earlier conversation, open new session next time it answers, old session stays in conversation list), and remove from channel (at least one left); top has "Add Members" as a searchable agent list, check to add, bottom of list has "New Agent" to open the draft page for creating a new agent; bottom has delete channel (confirm once more, messages deleted too, ongoing answers no longer posted). Input box is the conversation input box (`pi.ui.Composer`), `@` lists members, + allows naming members or adding members (opens the member list for adding); messages use the conversation's Markdown rendering (`pi.ui.Markdown`), `@`-mentioned members are bold.
|
|
17
17
|
|
|
18
18
|
## Data and Forwarding
|
|
19
19
|
|
|
@@ -12,8 +12,8 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 包 关
|
|
|
12
12
|
- **频道**:成员(智能体,第一个是负责人)和消息。消息发给其中 `@` 到的成员;智能体的回答贴回频道,它在回答里 `@` 谁就再交给谁。每个智能体一次只处理一条消息。用户可以把成员设为免打扰(`muted`):它在这个频道里什么都不回答,被 `@` 也不回答;负责人免打扰时,没人被 `@` 的消息交给下一位没有免打扰的成员。
|
|
13
13
|
- **防循环**(`ChannelsUtil.limit`):智能体之间接力最多 3 跳,一条消息引出的回答最多 8 条、每个智能体最多 2 条;被截断时,等这一轮结束后在频道里追加一行淡色说明("已到交接上限,等你继续"),每轮只追加一次,`post_to_channel` 的返回里也带上这句。
|
|
14
14
|
- **工具**:ta serve 里 Ta 的每个会话(Web 页面里的对话,以及连到 ta serve 的其他客户端)都有 `create_agent`、`create_channel`、`add_to_channel`、`post_to_channel`、`list_channels`。用户说一个目标("组个团队做落地页")时,Ta 建好智能体和频道、把目标贴进去,等各成员回答完再回复用户;频道缺某个角色时,Ta 用 `add_to_channel` 把已有的智能体加进来(加在已有成员之后,负责人不变);开着的页面在侧栏给这个频道标一个绿点,打开后消失。中途停止 Ta 只是不再等待,智能体会在频道里接着回答。
|
|
15
|
-
- **分身的任务**(见 `docs/design/ta-double.md`):Ta 用工具建的频道带 `by: 'ta'` 和建它的会话 `origin`,作为分身的任务(`registerTasks`)列出,不进用户自己的"频道"分组;它建的智能体带 `temporary`,只在团队里出现,在成员面板或智能体菜单里"留下"后才成为常驻成员,不在任何频道里的临时智能体也列在成员里。导航栏里这个列表叫"分身":分身卡片、"
|
|
16
|
-
- **界面**:导航栏最上面的"智能体"(在"对话"上面,手机上是第一个底部标签)把分身、频道和智能体放在一起(分身是 ta-web 内置的页面,开启后列在最上面,导航栏里不再单独出现):侧栏顶部是搜索框和 +。+ → 新建智能体在主区域打开一个草稿页:先给一个没人用的名字和头像,顶栏点名字可以改名、从 16 个头像里挑,侧栏顶部多一行"还没开工";输入框发出第一条消息时才真正建好智能体(职责是通用的,具体做什么写在这条消息里),随即切到它的会话并发出这条消息。+ → 新建频道是一个弹窗:名称、搜索并勾选智能体(1–12 个,先勾的是负责人)、创建;频道行是负责人在前、下一位成员在后的叠放头像,名称旁标出负责人,第二行是最近一条消息或谁正在回答;智能体按工作目录分组,第二行是"空闲"或正在哪个频道回答,右侧是最近一次发言的时间。点智能体打开它的会话:立即切过去,以智能体的名字显示"正在打开"(`pi.switchSession` 接收 `openAgent` 请求的 Promise),服务端打开或找到会话后显示为当前对话。智能体行悬停(触屏上常显)出现 …,菜单里是:停止(中止它正在进行的回答)、重新开始(开新会话)、重命名、职责(编辑系统提示词里的角色,下一个会话生效)、移至…(换工作目录,在新目录开新会话)、复制工作目录、导出对话(Markdown,去掉频道的上下文块)、加入频道、删除(退出所在频道,只剩它的频道一并删除,会话文件保留);靠近底部时菜单向上展开。频道是主区域的一个页面(不进右侧工作台),以群聊显示:别人的消息在左边带头像和名字,用户的在右边,连续发言合成一组,停顿久了插一行时间;顶栏是频道名和成员头像,点头像在右侧工作台打开"频道成员"(`members`,`location: 'panel'` 的视图,跟着当前频道):列出成员,负责人带标记,正在回答的标绿;每行点开是智能体的会话,悬停(触屏上常显)出现设为负责人、免打扰、重开会话(忘掉之前的对话,下次回答时开新会话,旧会话仍在对话列表里)和移出频道(至少留一位);顶部"添加成员"换成可搜索的智能体列表,勾选后添加,列表底部的"新建智能体"打开新建智能体的草稿页;底部是删除频道(再确认一次,消息一并删除,正在进行的回答不再贴出)。输入框就是对话的输入框(`pi.ui.Composer`),`@` 列出成员,+
|
|
15
|
+
- **分身的任务**(见 `docs/design/ta-double.md`):Ta 用工具建的频道带 `by: 'ta'` 和建它的会话 `origin`,作为分身的任务(`registerTasks`)列出,不进用户自己的"频道"分组;它建的智能体带 `temporary`,只在团队里出现,在成员面板或智能体菜单里"留下"后才成为常驻成员,不在任何频道里的临时智能体也列在成员里。导航栏里这个列表叫"分身":分身卡片、"任务"(一个列表,待你处理的在前,然后进行中、已结束)、"成员"(像通讯录,可选按目录分组)、"频道",各组可折叠(折叠状态存在浏览器本地)。从任务打开的团队显示在右侧工作台,顶栏可"在主区打开"。分身开启"开始任务前先问我"时,建团队前、以及第一次往用户放行过以外的频道派活前,用 `ctx.ui.confirm` 询问。下文的列表描述里,原先平铺的频道和智能体现在分别在"频道"和"成员"分组。
|
|
16
|
+
- **界面**:导航栏最上面的"智能体"(在"对话"上面,手机上是第一个底部标签)把分身、频道和智能体放在一起(分身是 ta-web 内置的页面,开启后列在最上面,导航栏里不再单独出现):侧栏顶部是搜索框和 +。+ → 新建智能体在主区域打开一个草稿页:先给一个没人用的名字和头像,顶栏点名字可以改名、从 16 个头像里挑,侧栏顶部多一行"还没开工";输入框发出第一条消息时才真正建好智能体(职责是通用的,具体做什么写在这条消息里),随即切到它的会话并发出这条消息。+ → 新建频道是一个弹窗:名称、搜索并勾选智能体(1–12 个,先勾的是负责人)、创建;频道行是负责人在前、下一位成员在后的叠放头像,名称旁标出负责人,第二行是最近一条消息或谁正在回答;智能体按工作目录分组,第二行是"空闲"或正在哪个频道回答,右侧是最近一次发言的时间。点智能体打开它的会话:立即切过去,以智能体的名字显示"正在打开"(`pi.switchSession` 接收 `openAgent` 请求的 Promise),服务端打开或找到会话后显示为当前对话。智能体行悬停(触屏上常显)出现 …,菜单里是:停止(中止它正在进行的回答)、重新开始(开新会话)、重命名、职责(编辑系统提示词里的角色,下一个会话生效)、移至…(换工作目录,在新目录开新会话)、复制工作目录、导出对话(Markdown,去掉频道的上下文块)、加入频道、删除(退出所在频道,只剩它的频道一并删除,会话文件保留);靠近底部时菜单向上展开。频道是主区域的一个页面(不进右侧工作台),以群聊显示:别人的消息在左边带头像和名字,用户的在右边,连续发言合成一组,停顿久了插一行时间;顶栏是频道名和成员头像,点头像在右侧工作台打开"频道成员"(`members`,`location: 'panel'` 的视图,跟着当前频道):列出成员,负责人带标记,正在回答的标绿;每行点开是智能体的会话,悬停(触屏上常显)出现设为负责人、免打扰、重开会话(忘掉之前的对话,下次回答时开新会话,旧会话仍在对话列表里)和移出频道(至少留一位);顶部"添加成员"换成可搜索的智能体列表,勾选后添加,列表底部的"新建智能体"打开新建智能体的草稿页;底部是删除频道(再确认一次,消息一并删除,正在进行的回答不再贴出)。输入框就是对话的输入框(`pi.ui.Composer`),`@` 列出成员,+ 里可以点名成员、添加成员(打开频道成员的添加列表),或"做成扩展"(在频道里请负责人用 ta-package 技能把这里商量和做成的事做成扩展);消息用对话的 Markdown 渲染(`pi.ui.Markdown`),点名的成员加粗。
|
|
17
17
|
|
|
18
18
|
## 数据与转发
|
|
19
19
|
|
|
@@ -135,6 +135,21 @@ var TaLocation;
|
|
|
135
135
|
return name || (remote === null || remote === undefined ? undefined : remote.host) || location;
|
|
136
136
|
}
|
|
137
137
|
TaLocation2.basename = basename;
|
|
138
|
+
function homeRelative(location) {
|
|
139
|
+
var _a;
|
|
140
|
+
const remote = parse(location);
|
|
141
|
+
const path2 = remote ? remote.path ? remote.path.slice(1) : "~" : location;
|
|
142
|
+
const match = /^~(?:[\\/]+(.*))?$/.exec(path2);
|
|
143
|
+
return match ? ((_a = match[1]) !== null && _a !== undefined ? _a : "").replace(/[\\/]+$/, "") : undefined;
|
|
144
|
+
}
|
|
145
|
+
TaLocation2.homeRelative = homeRelative;
|
|
146
|
+
function isAbsolute(location) {
|
|
147
|
+
if (homeRelative(location) !== undefined) {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
return isRemote(location) || /^([\\/]|[A-Za-z]:)/.test(location);
|
|
151
|
+
}
|
|
152
|
+
TaLocation2.isAbsolute = isAbsolute;
|
|
138
153
|
function parentPath(path2) {
|
|
139
154
|
const trimmed = path2.replace(/[\\/]+$/, "");
|
|
140
155
|
const at = Math.max(trimmed.lastIndexOf("/"), trimmed.lastIndexOf("\\"));
|
|
@@ -183,6 +198,10 @@ var TaErrorCode = {
|
|
|
183
198
|
MODEL_NOT_FOUND: "CELL_TA_MODEL_NOT_FOUND",
|
|
184
199
|
INVALID_ARGUMENT: "CELL_TA_INVALID_ARGUMENT",
|
|
185
200
|
COMMAND_FAILED: "CELL_TA_COMMAND_FAILED",
|
|
201
|
+
NOTHING_TO_COMPACT: "CELL_TA_NOTHING_TO_COMPACT",
|
|
202
|
+
ALREADY_COMPACTED: "CELL_TA_ALREADY_COMPACTED",
|
|
203
|
+
SESSION_BUSY: "CELL_TA_SESSION_BUSY",
|
|
204
|
+
CANCELLED: "CELL_TA_CANCELLED",
|
|
186
205
|
NOT_SIGNED_IN: "CELL_TA_NOT_SIGNED_IN",
|
|
187
206
|
ENVIRONMENT_FAILED: "CELL_TA_ENVIRONMENT_FAILED",
|
|
188
207
|
CONNECTION_LOST: "CELL_TA_CONNECTION_LOST"
|
|
@@ -213,6 +232,37 @@ ${message}`;
|
|
|
213
232
|
}
|
|
214
233
|
TaMessageContext2.strip = strip;
|
|
215
234
|
})(TaMessageContext || (TaMessageContext = {}));
|
|
235
|
+
var TaImageNote;
|
|
236
|
+
(function(TaImageNote2) {
|
|
237
|
+
const NOTE = /^\[Image: original \d+x\d+, displayed at \d+x\d+\. Multiply coordinates by [\d.]+ to map to original image\.\]$|^\[Image converted from [^\]]+ to [^\]]+\.\]$/;
|
|
238
|
+
function strip(text) {
|
|
239
|
+
const lines = text.split(`
|
|
240
|
+
`);
|
|
241
|
+
const kept = lines.filter((line) => !NOTE.test(line.trim()));
|
|
242
|
+
if (kept.length === lines.length) {
|
|
243
|
+
return text;
|
|
244
|
+
}
|
|
245
|
+
return kept.join(`
|
|
246
|
+
`).replace(/\n+$/, "").replace(/^\n+/, "");
|
|
247
|
+
}
|
|
248
|
+
TaImageNote2.strip = strip;
|
|
249
|
+
})(TaImageNote || (TaImageNote = {}));
|
|
250
|
+
var TaAgentSummary;
|
|
251
|
+
(function(TaAgentSummary2) {
|
|
252
|
+
const START = /^\s*<conversation_history_summary>/;
|
|
253
|
+
const BLOCK = /^\s*<conversation_history_summary>[\s\S]*?(?:<\/conversation_history_summary>\s*|$)/;
|
|
254
|
+
function read(text) {
|
|
255
|
+
if (!START.test(text)) {
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
return text.replace(/<\/?(?:conversation_history_summary|summary)>/g, "").replace(/<\/?\w*$/, "").trim();
|
|
259
|
+
}
|
|
260
|
+
TaAgentSummary2.read = read;
|
|
261
|
+
function strip(text) {
|
|
262
|
+
return text.replace(BLOCK, "");
|
|
263
|
+
}
|
|
264
|
+
TaAgentSummary2.strip = strip;
|
|
265
|
+
})(TaAgentSummary || (TaAgentSummary = {}));
|
|
216
266
|
var TaSkillUse;
|
|
217
267
|
(function(TaSkillUse2) {
|
|
218
268
|
const BLOCK = /^<skill name="([^"]+)" location="([^"]+)">\n([\s\S]*?)\n<\/skill>(?:\n\n([\s\S]+))?$/;
|
|
@@ -82,15 +82,23 @@ function NewAgentHead({ context }) {
|
|
|
82
82
|
function NewAgentPage({ context }) {
|
|
83
83
|
const { pi, service, ui } = context;
|
|
84
84
|
const { draft } = (0, views_1.useUi)(ui);
|
|
85
|
+
const { loaded } = (0, views_1.useChannels)(service);
|
|
85
86
|
const w = views_1.ChannelViews.words(pi);
|
|
86
87
|
const Pencil = views_1.ChannelViews.icon(pi, 'Pencil');
|
|
87
88
|
const Composer = pi.ui.Composer;
|
|
88
|
-
// Shown again after a reload, when what was being made is gone: a new one
|
|
89
|
+
// Shown again after a reload, when what was being made is gone: a new one, once the team is read so that its name
|
|
90
|
+
// is free. Only the first time: the draft goes the moment its first message makes the agent, while the page is
|
|
91
|
+
// still in front, and no other is wanted then.
|
|
92
|
+
const first = react_1.React.useRef(true);
|
|
89
93
|
react_1.React.useEffect(() => {
|
|
90
|
-
if (!
|
|
94
|
+
if (!loaded || !first.current) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
first.current = false;
|
|
98
|
+
if (!ui.state.draft) {
|
|
91
99
|
newAgent(context);
|
|
92
100
|
}
|
|
93
|
-
}, [
|
|
101
|
+
}, [loaded, ui, context]);
|
|
94
102
|
if (!draft) {
|
|
95
103
|
return null;
|
|
96
104
|
}
|
|
@@ -159,7 +159,7 @@ function RoomFace({ members, faces, size, working }) {
|
|
|
159
159
|
if (!next) {
|
|
160
160
|
return react_1.React.createElement(Face, { face: (_a = faces.get(lead.id)) !== null && _a !== void 0 ? _a : 0, size: size, working: working.includes(lead.id) });
|
|
161
161
|
}
|
|
162
|
-
const small = Math.round(size * 0.
|
|
162
|
+
const small = Math.round(size * 0.76);
|
|
163
163
|
return (react_1.React.createElement("span", { className: "tac-room", style: { width: size, height: size }, "aria-hidden": "true" },
|
|
164
164
|
react_1.React.createElement("span", { className: "tac-room-back" },
|
|
165
165
|
react_1.React.createElement(Face, { face: (_b = faces.get(next.id)) !== null && _b !== void 0 ? _b : 0, size: small, working: working.includes(next.id) })),
|