@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
package/dist/cli.mjs
CHANGED
|
@@ -258,9 +258,12 @@ var init_emitter = __esm(() => {
|
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
// ../../packages/rpc/esm/node/websocket/websocket-frames.js
|
|
261
|
+
import { constants, deflateRawSync, inflateRawSync } from "node:zlib";
|
|
262
|
+
|
|
261
263
|
class WebSocketFrameParser {
|
|
262
|
-
constructor(maxPayload) {
|
|
264
|
+
constructor(maxPayload, deflate = false) {
|
|
263
265
|
this.maxPayload = maxPayload;
|
|
266
|
+
this.deflate = deflate;
|
|
264
267
|
this.buffer = Buffer.alloc(0);
|
|
265
268
|
}
|
|
266
269
|
push(chunk) {
|
|
@@ -278,7 +281,8 @@ class WebSocketFrameParser {
|
|
|
278
281
|
}
|
|
279
282
|
const fin = (buffer[0] & 128) !== 0;
|
|
280
283
|
const opcode = buffer[0] & 15;
|
|
281
|
-
|
|
284
|
+
const compressed = (buffer[0] & 64) !== 0;
|
|
285
|
+
if ((buffer[0] & (this.deflate ? 48 : 112)) !== 0) {
|
|
282
286
|
throw new WebSocketProtocolError(1002, "Reserved bits are set.");
|
|
283
287
|
}
|
|
284
288
|
if (![0, 1, 2, 8, 9, 10].includes(opcode)) {
|
|
@@ -306,8 +310,11 @@ class WebSocketFrameParser {
|
|
|
306
310
|
length = high * 4294967296 + buffer.readUInt32BE(6);
|
|
307
311
|
offset = 10;
|
|
308
312
|
}
|
|
309
|
-
if (WebSocketFrames.isControl(opcode) && (length > 125 || !fin)) {
|
|
310
|
-
throw new WebSocketProtocolError(1002, "Control frames are at most 125 bytes and not
|
|
313
|
+
if (WebSocketFrames.isControl(opcode) && (length > 125 || !fin || compressed)) {
|
|
314
|
+
throw new WebSocketProtocolError(1002, "Control frames are at most 125 bytes, not fragmented and not compressed.");
|
|
315
|
+
}
|
|
316
|
+
if (compressed && opcode === WebSocketFrames.CONTINUATION) {
|
|
317
|
+
throw new WebSocketProtocolError(1002, "Only the first frame of a message says it is compressed.");
|
|
311
318
|
}
|
|
312
319
|
if (length > this.maxPayload) {
|
|
313
320
|
throw new WebSocketProtocolError(1009, `The message is larger than ${this.maxPayload} bytes.`);
|
|
@@ -321,10 +328,10 @@ class WebSocketFrameParser {
|
|
|
321
328
|
payload[i] ^= mask[i & 3];
|
|
322
329
|
}
|
|
323
330
|
this.buffer = buffer.subarray(offset + 4 + length);
|
|
324
|
-
return { fin, opcode, payload };
|
|
331
|
+
return { fin, compressed, opcode, payload };
|
|
325
332
|
}
|
|
326
333
|
}
|
|
327
|
-
var WebSocketProtocolError, WebSocketFrames;
|
|
334
|
+
var WebSocketProtocolError, WebSocketFrames, TAIL, WebSocketDeflate;
|
|
328
335
|
var init_websocket_frames = __esm(() => {
|
|
329
336
|
WebSocketProtocolError = class WebSocketProtocolError extends Error {
|
|
330
337
|
constructor(code, message) {
|
|
@@ -339,11 +346,11 @@ var init_websocket_frames = __esm(() => {
|
|
|
339
346
|
WebSocketFrames2.CLOSE = 8;
|
|
340
347
|
WebSocketFrames2.PING = 9;
|
|
341
348
|
WebSocketFrames2.PONG = 10;
|
|
342
|
-
function encode(opcode, payload = Buffer.alloc(0)) {
|
|
349
|
+
function encode(opcode, payload = Buffer.alloc(0), compressed = false) {
|
|
343
350
|
const length = payload.length;
|
|
344
351
|
const size = length < 126 ? 2 : length < 65536 ? 4 : 10;
|
|
345
352
|
const header = Buffer.alloc(size);
|
|
346
|
-
header[0] = 128 | opcode;
|
|
353
|
+
header[0] = 128 | (compressed ? 64 : 0) | opcode;
|
|
347
354
|
if (length < 126) {
|
|
348
355
|
header[1] = length;
|
|
349
356
|
} else if (length < 65536) {
|
|
@@ -370,6 +377,41 @@ var init_websocket_frames = __esm(() => {
|
|
|
370
377
|
}
|
|
371
378
|
WebSocketFrames2.isControl = isControl;
|
|
372
379
|
})(WebSocketFrames || (WebSocketFrames = {}));
|
|
380
|
+
TAIL = Buffer.from([0, 0, 255, 255]);
|
|
381
|
+
(function(WebSocketDeflate2) {
|
|
382
|
+
WebSocketDeflate2.RESPONSE = "permessage-deflate; server_no_context_takeover; client_no_context_takeover";
|
|
383
|
+
WebSocketDeflate2.MIN_BYTES = 1024;
|
|
384
|
+
function offered(header) {
|
|
385
|
+
const offers = (Array.isArray(header) ? header.join(",") : header !== null && header !== undefined ? header : "").split(",");
|
|
386
|
+
return offers.some((offer) => {
|
|
387
|
+
const [name, ...params] = offer.split(";").map((part) => part.trim().toLowerCase());
|
|
388
|
+
if (name !== "permessage-deflate") {
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
return params.every((param) => {
|
|
392
|
+
const [key, value] = param.split("=").map((part) => part.trim().replace(/^"|"$/g, ""));
|
|
393
|
+
return key !== "server_max_window_bits" || value === "15";
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
WebSocketDeflate2.offered = offered;
|
|
398
|
+
function compress(data) {
|
|
399
|
+
const deflated = deflateRawSync(data, { level: 3, finishFlush: constants.Z_SYNC_FLUSH });
|
|
400
|
+
return deflated.subarray(0, deflated.length - TAIL.length);
|
|
401
|
+
}
|
|
402
|
+
WebSocketDeflate2.compress = compress;
|
|
403
|
+
function decompress(data, maxBytes) {
|
|
404
|
+
try {
|
|
405
|
+
return inflateRawSync(Buffer.concat([data, TAIL]), { maxOutputLength: maxBytes, finishFlush: constants.Z_SYNC_FLUSH });
|
|
406
|
+
} catch (error) {
|
|
407
|
+
if (error.code === "ERR_BUFFER_TOO_LARGE") {
|
|
408
|
+
throw new WebSocketProtocolError(1009, `The message is larger than ${maxBytes} bytes.`);
|
|
409
|
+
}
|
|
410
|
+
throw new WebSocketProtocolError(1007, "A compressed message does not inflate.");
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
WebSocketDeflate2.decompress = decompress;
|
|
414
|
+
})(WebSocketDeflate || (WebSocketDeflate = {}));
|
|
373
415
|
});
|
|
374
416
|
|
|
375
417
|
// ../../packages/rpc/esm/node/websocket/websocket-connection.js
|
|
@@ -402,17 +444,20 @@ class WebSocketConnection {
|
|
|
402
444
|
if (typeof key !== "string" || Buffer.from(key, "base64").length !== 16) {
|
|
403
445
|
return { status: 400, message: "Missing or invalid Sec-WebSocket-Key." };
|
|
404
446
|
}
|
|
405
|
-
|
|
447
|
+
const deflate = !!request.headers.origin && WebSocketDeflate.offered(request.headers["sec-websocket-extensions"]);
|
|
448
|
+
return { key, deflate };
|
|
406
449
|
}
|
|
407
450
|
static accept(key) {
|
|
408
451
|
return createHash("sha1").update(key + WebSocketConnection.GUID).digest("base64");
|
|
409
452
|
}
|
|
410
453
|
static open(socket, key, head, options) {
|
|
454
|
+
const extensions = options.deflate ? `Sec-WebSocket-Extensions: ${WebSocketDeflate.RESPONSE}\r
|
|
455
|
+
` : "";
|
|
411
456
|
socket.write(`HTTP/1.1 101 Switching Protocols\r
|
|
412
457
|
Upgrade: websocket\r
|
|
413
458
|
Connection: Upgrade\r
|
|
414
459
|
Sec-WebSocket-Accept: ${WebSocketConnection.accept(key)}\r
|
|
415
|
-
\r
|
|
460
|
+
${extensions}\r
|
|
416
461
|
`);
|
|
417
462
|
const connection = new WebSocketConnection(socket, options);
|
|
418
463
|
connection.start(head);
|
|
@@ -434,10 +479,11 @@ ${message}`);
|
|
|
434
479
|
this.onCloseEmitter = new Emitter;
|
|
435
480
|
this.decoder = new TextDecoder("utf-8", { fatal: true });
|
|
436
481
|
this.fragments = [];
|
|
482
|
+
this.compressed = false;
|
|
437
483
|
this.fragmentsLength = 0;
|
|
438
484
|
this.state = "open";
|
|
439
485
|
this.alive = true;
|
|
440
|
-
this.parser = new WebSocketFrameParser(options.maxPayload);
|
|
486
|
+
this.parser = new WebSocketFrameParser(options.maxPayload, !!options.deflate);
|
|
441
487
|
}
|
|
442
488
|
get onMessage() {
|
|
443
489
|
return this.onMessageEmitter.event;
|
|
@@ -450,7 +496,12 @@ ${message}`);
|
|
|
450
496
|
}
|
|
451
497
|
send(text) {
|
|
452
498
|
if (this.state === "open") {
|
|
453
|
-
|
|
499
|
+
const data = Buffer.from(text);
|
|
500
|
+
if (this.options.deflate && data.length >= WebSocketDeflate.MIN_BYTES) {
|
|
501
|
+
this.socket.write(WebSocketFrames.encode(WebSocketFrames.TEXT, WebSocketDeflate.compress(data), true));
|
|
502
|
+
} else {
|
|
503
|
+
this.socket.write(WebSocketFrames.encode(WebSocketFrames.TEXT, data));
|
|
504
|
+
}
|
|
454
505
|
}
|
|
455
506
|
}
|
|
456
507
|
close(code = 1000, reason = "") {
|
|
@@ -487,13 +538,13 @@ ${message}`);
|
|
|
487
538
|
try {
|
|
488
539
|
for (const frame of this.parser.push(chunk)) {
|
|
489
540
|
this.alive = true;
|
|
490
|
-
this.handle(frame.opcode, frame.fin, frame.payload);
|
|
541
|
+
this.handle(frame.opcode, frame.fin, frame.payload, frame.compressed);
|
|
491
542
|
}
|
|
492
543
|
} catch (error) {
|
|
493
544
|
this.close(error instanceof WebSocketProtocolError ? error.code : 1011, error instanceof Error ? error.message : "");
|
|
494
545
|
}
|
|
495
546
|
}
|
|
496
|
-
handle(opcode, fin, payload) {
|
|
547
|
+
handle(opcode, fin, payload, compressed = false) {
|
|
497
548
|
switch (opcode) {
|
|
498
549
|
case WebSocketFrames.PING:
|
|
499
550
|
this.socket.write(WebSocketFrames.encode(WebSocketFrames.PONG, payload));
|
|
@@ -517,6 +568,7 @@ ${message}`);
|
|
|
517
568
|
if (this.fragments.length) {
|
|
518
569
|
throw new WebSocketProtocolError(1002, "A new message started inside a fragmented one.");
|
|
519
570
|
}
|
|
571
|
+
this.compressed = compressed;
|
|
520
572
|
break;
|
|
521
573
|
case WebSocketFrames.CONTINUATION:
|
|
522
574
|
if (!this.fragments.length) {
|
|
@@ -530,9 +582,11 @@ ${message}`);
|
|
|
530
582
|
}
|
|
531
583
|
this.fragments.push(payload);
|
|
532
584
|
if (fin) {
|
|
533
|
-
const
|
|
585
|
+
const joined = this.fragments.length === 1 ? this.fragments[0] : Buffer.concat(this.fragments);
|
|
586
|
+
const message = this.compressed ? WebSocketDeflate.decompress(joined, this.options.maxPayload) : joined;
|
|
534
587
|
this.fragments = [];
|
|
535
588
|
this.fragmentsLength = 0;
|
|
589
|
+
this.compressed = false;
|
|
536
590
|
let text;
|
|
537
591
|
try {
|
|
538
592
|
text = this.decoder.decode(message);
|
package/dist/gateway.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import { createReadStream, existsSync as existsSync2, mkdirSync as mkdirSync4, s
|
|
|
8
8
|
import { createServer as createServer2, request as httpRequest } from "node:http";
|
|
9
9
|
import { request as httpsRequest } from "node:https";
|
|
10
10
|
import { extname, join as join5, normalize, sep } from "node:path";
|
|
11
|
+
import { pipeline } from "node:stream";
|
|
11
12
|
|
|
12
13
|
// ../../packages/rpc/esm/node/websocket/websocket-connection.js
|
|
13
14
|
import { createHash } from "node:crypto";
|
|
@@ -252,6 +253,8 @@ var WaitUntilEvent;
|
|
|
252
253
|
})(WaitUntilEvent || (WaitUntilEvent = {}));
|
|
253
254
|
|
|
254
255
|
// ../../packages/rpc/esm/node/websocket/websocket-frames.js
|
|
256
|
+
import { constants, deflateRawSync, inflateRawSync } from "node:zlib";
|
|
257
|
+
|
|
255
258
|
class WebSocketProtocolError extends Error {
|
|
256
259
|
constructor(code, message) {
|
|
257
260
|
super(message);
|
|
@@ -266,11 +269,11 @@ var WebSocketFrames;
|
|
|
266
269
|
WebSocketFrames2.CLOSE = 8;
|
|
267
270
|
WebSocketFrames2.PING = 9;
|
|
268
271
|
WebSocketFrames2.PONG = 10;
|
|
269
|
-
function encode(opcode, payload = Buffer.alloc(0)) {
|
|
272
|
+
function encode(opcode, payload = Buffer.alloc(0), compressed = false) {
|
|
270
273
|
const length = payload.length;
|
|
271
274
|
const size = length < 126 ? 2 : length < 65536 ? 4 : 10;
|
|
272
275
|
const header = Buffer.alloc(size);
|
|
273
|
-
header[0] = 128 | opcode;
|
|
276
|
+
header[0] = 128 | (compressed ? 64 : 0) | opcode;
|
|
274
277
|
if (length < 126) {
|
|
275
278
|
header[1] = length;
|
|
276
279
|
} else if (length < 65536) {
|
|
@@ -299,8 +302,9 @@ var WebSocketFrames;
|
|
|
299
302
|
})(WebSocketFrames || (WebSocketFrames = {}));
|
|
300
303
|
|
|
301
304
|
class WebSocketFrameParser {
|
|
302
|
-
constructor(maxPayload) {
|
|
305
|
+
constructor(maxPayload, deflate = false) {
|
|
303
306
|
this.maxPayload = maxPayload;
|
|
307
|
+
this.deflate = deflate;
|
|
304
308
|
this.buffer = Buffer.alloc(0);
|
|
305
309
|
}
|
|
306
310
|
push(chunk) {
|
|
@@ -318,7 +322,8 @@ class WebSocketFrameParser {
|
|
|
318
322
|
}
|
|
319
323
|
const fin = (buffer[0] & 128) !== 0;
|
|
320
324
|
const opcode = buffer[0] & 15;
|
|
321
|
-
|
|
325
|
+
const compressed = (buffer[0] & 64) !== 0;
|
|
326
|
+
if ((buffer[0] & (this.deflate ? 48 : 112)) !== 0) {
|
|
322
327
|
throw new WebSocketProtocolError(1002, "Reserved bits are set.");
|
|
323
328
|
}
|
|
324
329
|
if (![0, 1, 2, 8, 9, 10].includes(opcode)) {
|
|
@@ -346,8 +351,11 @@ class WebSocketFrameParser {
|
|
|
346
351
|
length = high * 4294967296 + buffer.readUInt32BE(6);
|
|
347
352
|
offset = 10;
|
|
348
353
|
}
|
|
349
|
-
if (WebSocketFrames.isControl(opcode) && (length > 125 || !fin)) {
|
|
350
|
-
throw new WebSocketProtocolError(1002, "Control frames are at most 125 bytes and not
|
|
354
|
+
if (WebSocketFrames.isControl(opcode) && (length > 125 || !fin || compressed)) {
|
|
355
|
+
throw new WebSocketProtocolError(1002, "Control frames are at most 125 bytes, not fragmented and not compressed.");
|
|
356
|
+
}
|
|
357
|
+
if (compressed && opcode === WebSocketFrames.CONTINUATION) {
|
|
358
|
+
throw new WebSocketProtocolError(1002, "Only the first frame of a message says it is compressed.");
|
|
351
359
|
}
|
|
352
360
|
if (length > this.maxPayload) {
|
|
353
361
|
throw new WebSocketProtocolError(1009, `The message is larger than ${this.maxPayload} bytes.`);
|
|
@@ -361,9 +369,45 @@ class WebSocketFrameParser {
|
|
|
361
369
|
payload[i] ^= mask[i & 3];
|
|
362
370
|
}
|
|
363
371
|
this.buffer = buffer.subarray(offset + 4 + length);
|
|
364
|
-
return { fin, opcode, payload };
|
|
372
|
+
return { fin, compressed, opcode, payload };
|
|
365
373
|
}
|
|
366
374
|
}
|
|
375
|
+
var TAIL = Buffer.from([0, 0, 255, 255]);
|
|
376
|
+
var WebSocketDeflate;
|
|
377
|
+
(function(WebSocketDeflate2) {
|
|
378
|
+
WebSocketDeflate2.RESPONSE = "permessage-deflate; server_no_context_takeover; client_no_context_takeover";
|
|
379
|
+
WebSocketDeflate2.MIN_BYTES = 1024;
|
|
380
|
+
function offered(header) {
|
|
381
|
+
const offers = (Array.isArray(header) ? header.join(",") : header !== null && header !== undefined ? header : "").split(",");
|
|
382
|
+
return offers.some((offer) => {
|
|
383
|
+
const [name, ...params] = offer.split(";").map((part) => part.trim().toLowerCase());
|
|
384
|
+
if (name !== "permessage-deflate") {
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
return params.every((param) => {
|
|
388
|
+
const [key, value] = param.split("=").map((part) => part.trim().replace(/^"|"$/g, ""));
|
|
389
|
+
return key !== "server_max_window_bits" || value === "15";
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
WebSocketDeflate2.offered = offered;
|
|
394
|
+
function compress(data) {
|
|
395
|
+
const deflated = deflateRawSync(data, { level: 3, finishFlush: constants.Z_SYNC_FLUSH });
|
|
396
|
+
return deflated.subarray(0, deflated.length - TAIL.length);
|
|
397
|
+
}
|
|
398
|
+
WebSocketDeflate2.compress = compress;
|
|
399
|
+
function decompress(data, maxBytes) {
|
|
400
|
+
try {
|
|
401
|
+
return inflateRawSync(Buffer.concat([data, TAIL]), { maxOutputLength: maxBytes, finishFlush: constants.Z_SYNC_FLUSH });
|
|
402
|
+
} catch (error) {
|
|
403
|
+
if (error.code === "ERR_BUFFER_TOO_LARGE") {
|
|
404
|
+
throw new WebSocketProtocolError(1009, `The message is larger than ${maxBytes} bytes.`);
|
|
405
|
+
}
|
|
406
|
+
throw new WebSocketProtocolError(1007, "A compressed message does not inflate.");
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
WebSocketDeflate2.decompress = decompress;
|
|
410
|
+
})(WebSocketDeflate || (WebSocketDeflate = {}));
|
|
367
411
|
|
|
368
412
|
// ../../packages/rpc/esm/node/websocket/websocket-connection.js
|
|
369
413
|
class WebSocketConnection {
|
|
@@ -393,17 +437,20 @@ class WebSocketConnection {
|
|
|
393
437
|
if (typeof key !== "string" || Buffer.from(key, "base64").length !== 16) {
|
|
394
438
|
return { status: 400, message: "Missing or invalid Sec-WebSocket-Key." };
|
|
395
439
|
}
|
|
396
|
-
|
|
440
|
+
const deflate = !!request.headers.origin && WebSocketDeflate.offered(request.headers["sec-websocket-extensions"]);
|
|
441
|
+
return { key, deflate };
|
|
397
442
|
}
|
|
398
443
|
static accept(key) {
|
|
399
444
|
return createHash("sha1").update(key + WebSocketConnection.GUID).digest("base64");
|
|
400
445
|
}
|
|
401
446
|
static open(socket, key, head, options) {
|
|
447
|
+
const extensions = options.deflate ? `Sec-WebSocket-Extensions: ${WebSocketDeflate.RESPONSE}\r
|
|
448
|
+
` : "";
|
|
402
449
|
socket.write(`HTTP/1.1 101 Switching Protocols\r
|
|
403
450
|
Upgrade: websocket\r
|
|
404
451
|
Connection: Upgrade\r
|
|
405
452
|
Sec-WebSocket-Accept: ${WebSocketConnection.accept(key)}\r
|
|
406
|
-
\r
|
|
453
|
+
${extensions}\r
|
|
407
454
|
`);
|
|
408
455
|
const connection = new WebSocketConnection(socket, options);
|
|
409
456
|
connection.start(head);
|
|
@@ -425,10 +472,11 @@ ${message}`);
|
|
|
425
472
|
this.onCloseEmitter = new Emitter;
|
|
426
473
|
this.decoder = new TextDecoder("utf-8", { fatal: true });
|
|
427
474
|
this.fragments = [];
|
|
475
|
+
this.compressed = false;
|
|
428
476
|
this.fragmentsLength = 0;
|
|
429
477
|
this.state = "open";
|
|
430
478
|
this.alive = true;
|
|
431
|
-
this.parser = new WebSocketFrameParser(options.maxPayload);
|
|
479
|
+
this.parser = new WebSocketFrameParser(options.maxPayload, !!options.deflate);
|
|
432
480
|
}
|
|
433
481
|
get onMessage() {
|
|
434
482
|
return this.onMessageEmitter.event;
|
|
@@ -441,7 +489,12 @@ ${message}`);
|
|
|
441
489
|
}
|
|
442
490
|
send(text) {
|
|
443
491
|
if (this.state === "open") {
|
|
444
|
-
|
|
492
|
+
const data = Buffer.from(text);
|
|
493
|
+
if (this.options.deflate && data.length >= WebSocketDeflate.MIN_BYTES) {
|
|
494
|
+
this.socket.write(WebSocketFrames.encode(WebSocketFrames.TEXT, WebSocketDeflate.compress(data), true));
|
|
495
|
+
} else {
|
|
496
|
+
this.socket.write(WebSocketFrames.encode(WebSocketFrames.TEXT, data));
|
|
497
|
+
}
|
|
445
498
|
}
|
|
446
499
|
}
|
|
447
500
|
close(code = 1000, reason = "") {
|
|
@@ -478,13 +531,13 @@ ${message}`);
|
|
|
478
531
|
try {
|
|
479
532
|
for (const frame of this.parser.push(chunk)) {
|
|
480
533
|
this.alive = true;
|
|
481
|
-
this.handle(frame.opcode, frame.fin, frame.payload);
|
|
534
|
+
this.handle(frame.opcode, frame.fin, frame.payload, frame.compressed);
|
|
482
535
|
}
|
|
483
536
|
} catch (error) {
|
|
484
537
|
this.close(error instanceof WebSocketProtocolError ? error.code : 1011, error instanceof Error ? error.message : "");
|
|
485
538
|
}
|
|
486
539
|
}
|
|
487
|
-
handle(opcode, fin, payload) {
|
|
540
|
+
handle(opcode, fin, payload, compressed = false) {
|
|
488
541
|
switch (opcode) {
|
|
489
542
|
case WebSocketFrames.PING:
|
|
490
543
|
this.socket.write(WebSocketFrames.encode(WebSocketFrames.PONG, payload));
|
|
@@ -508,6 +561,7 @@ ${message}`);
|
|
|
508
561
|
if (this.fragments.length) {
|
|
509
562
|
throw new WebSocketProtocolError(1002, "A new message started inside a fragmented one.");
|
|
510
563
|
}
|
|
564
|
+
this.compressed = compressed;
|
|
511
565
|
break;
|
|
512
566
|
case WebSocketFrames.CONTINUATION:
|
|
513
567
|
if (!this.fragments.length) {
|
|
@@ -521,9 +575,11 @@ ${message}`);
|
|
|
521
575
|
}
|
|
522
576
|
this.fragments.push(payload);
|
|
523
577
|
if (fin) {
|
|
524
|
-
const
|
|
578
|
+
const joined = this.fragments.length === 1 ? this.fragments[0] : Buffer.concat(this.fragments);
|
|
579
|
+
const message = this.compressed ? WebSocketDeflate.decompress(joined, this.options.maxPayload) : joined;
|
|
525
580
|
this.fragments = [];
|
|
526
581
|
this.fragmentsLength = 0;
|
|
582
|
+
this.compressed = false;
|
|
527
583
|
let text;
|
|
528
584
|
try {
|
|
529
585
|
text = this.decoder.decode(message);
|
|
@@ -843,6 +899,21 @@ var TaLocation;
|
|
|
843
899
|
return name || (remote === null || remote === undefined ? undefined : remote.host) || location;
|
|
844
900
|
}
|
|
845
901
|
TaLocation2.basename = basename;
|
|
902
|
+
function homeRelative(location) {
|
|
903
|
+
var _a;
|
|
904
|
+
const remote = parse(location);
|
|
905
|
+
const path2 = remote ? remote.path ? remote.path.slice(1) : "~" : location;
|
|
906
|
+
const match = /^~(?:[\\/]+(.*))?$/.exec(path2);
|
|
907
|
+
return match ? ((_a = match[1]) !== null && _a !== undefined ? _a : "").replace(/[\\/]+$/, "") : undefined;
|
|
908
|
+
}
|
|
909
|
+
TaLocation2.homeRelative = homeRelative;
|
|
910
|
+
function isAbsolute(location) {
|
|
911
|
+
if (homeRelative(location) !== undefined) {
|
|
912
|
+
return false;
|
|
913
|
+
}
|
|
914
|
+
return isRemote(location) || /^([\\/]|[A-Za-z]:)/.test(location);
|
|
915
|
+
}
|
|
916
|
+
TaLocation2.isAbsolute = isAbsolute;
|
|
846
917
|
function parentPath(path2) {
|
|
847
918
|
const trimmed = path2.replace(/[\\/]+$/, "");
|
|
848
919
|
const at = Math.max(trimmed.lastIndexOf("/"), trimmed.lastIndexOf("\\"));
|
|
@@ -892,6 +963,10 @@ var TaErrorCode = {
|
|
|
892
963
|
MODEL_NOT_FOUND: "CELL_TA_MODEL_NOT_FOUND",
|
|
893
964
|
INVALID_ARGUMENT: "CELL_TA_INVALID_ARGUMENT",
|
|
894
965
|
COMMAND_FAILED: "CELL_TA_COMMAND_FAILED",
|
|
966
|
+
NOTHING_TO_COMPACT: "CELL_TA_NOTHING_TO_COMPACT",
|
|
967
|
+
ALREADY_COMPACTED: "CELL_TA_ALREADY_COMPACTED",
|
|
968
|
+
SESSION_BUSY: "CELL_TA_SESSION_BUSY",
|
|
969
|
+
CANCELLED: "CELL_TA_CANCELLED",
|
|
895
970
|
NOT_SIGNED_IN: "CELL_TA_NOT_SIGNED_IN",
|
|
896
971
|
ENVIRONMENT_FAILED: "CELL_TA_ENVIRONMENT_FAILED",
|
|
897
972
|
CONNECTION_LOST: "CELL_TA_CONNECTION_LOST"
|
|
@@ -923,6 +998,37 @@ ${message}`;
|
|
|
923
998
|
}
|
|
924
999
|
TaMessageContext2.strip = strip;
|
|
925
1000
|
})(TaMessageContext || (TaMessageContext = {}));
|
|
1001
|
+
var TaImageNote;
|
|
1002
|
+
(function(TaImageNote2) {
|
|
1003
|
+
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 [^\]]+\.\]$/;
|
|
1004
|
+
function strip(text) {
|
|
1005
|
+
const lines = text.split(`
|
|
1006
|
+
`);
|
|
1007
|
+
const kept = lines.filter((line) => !NOTE.test(line.trim()));
|
|
1008
|
+
if (kept.length === lines.length) {
|
|
1009
|
+
return text;
|
|
1010
|
+
}
|
|
1011
|
+
return kept.join(`
|
|
1012
|
+
`).replace(/\n+$/, "").replace(/^\n+/, "");
|
|
1013
|
+
}
|
|
1014
|
+
TaImageNote2.strip = strip;
|
|
1015
|
+
})(TaImageNote || (TaImageNote = {}));
|
|
1016
|
+
var TaAgentSummary;
|
|
1017
|
+
(function(TaAgentSummary2) {
|
|
1018
|
+
const START = /^\s*<conversation_history_summary>/;
|
|
1019
|
+
const BLOCK = /^\s*<conversation_history_summary>[\s\S]*?(?:<\/conversation_history_summary>\s*|$)/;
|
|
1020
|
+
function read(text) {
|
|
1021
|
+
if (!START.test(text)) {
|
|
1022
|
+
return;
|
|
1023
|
+
}
|
|
1024
|
+
return text.replace(/<\/?(?:conversation_history_summary|summary)>/g, "").replace(/<\/?\w*$/, "").trim();
|
|
1025
|
+
}
|
|
1026
|
+
TaAgentSummary2.read = read;
|
|
1027
|
+
function strip(text) {
|
|
1028
|
+
return text.replace(BLOCK, "");
|
|
1029
|
+
}
|
|
1030
|
+
TaAgentSummary2.strip = strip;
|
|
1031
|
+
})(TaAgentSummary || (TaAgentSummary = {}));
|
|
926
1032
|
var TaSkillUse;
|
|
927
1033
|
(function(TaSkillUse2) {
|
|
928
1034
|
const BLOCK = /^<skill name="([^"]+)" location="([^"]+)">\n([\s\S]*?)\n<\/skill>(?:\n\n([\s\S]+))?$/;
|
|
@@ -1263,7 +1369,11 @@ var SignInPageUtil;
|
|
|
1263
1369
|
for (const part of (header !== null && header !== undefined ? header : "").split(";")) {
|
|
1264
1370
|
const [key, ...value] = part.trim().split("=");
|
|
1265
1371
|
if (key === name) {
|
|
1266
|
-
|
|
1372
|
+
try {
|
|
1373
|
+
return decodeURIComponent(value.join("="));
|
|
1374
|
+
} catch (_a) {
|
|
1375
|
+
return;
|
|
1376
|
+
}
|
|
1267
1377
|
}
|
|
1268
1378
|
}
|
|
1269
1379
|
return;
|
|
@@ -1729,6 +1839,7 @@ class DockerSandbox {
|
|
|
1729
1839
|
Memory: this.options.memory,
|
|
1730
1840
|
NanoCpus: this.options.cpus ? Math.round(this.options.cpus * 1e9) : undefined,
|
|
1731
1841
|
PidsLimit: this.options.pids,
|
|
1842
|
+
CapDrop: ["NET_RAW"],
|
|
1732
1843
|
RestartPolicy: { Name: "unless-stopped" },
|
|
1733
1844
|
Init: false
|
|
1734
1845
|
}
|
|
@@ -1979,7 +2090,7 @@ class Environments {
|
|
|
1979
2090
|
});
|
|
1980
2091
|
const next = this.tenants.update(tenant.id, { environment: choice });
|
|
1981
2092
|
this.provider(next);
|
|
1982
|
-
this.
|
|
2093
|
+
Object.assign(this.state(tenant.id), { status: "stopped", endpoint: undefined, error: undefined });
|
|
1983
2094
|
return next;
|
|
1984
2095
|
}
|
|
1985
2096
|
async dispose() {
|
|
@@ -2016,6 +2127,10 @@ var GatewayServiceUtil;
|
|
|
2016
2127
|
return typeof method === "string" && GatewayServiceUtil2.SERVICES.includes(method.split("/")[0]);
|
|
2017
2128
|
}
|
|
2018
2129
|
GatewayServiceUtil2.owns = owns;
|
|
2130
|
+
function mayOwn(text) {
|
|
2131
|
+
return GatewayServiceUtil2.SERVICES.some((service) => text.includes(`"${service}/`));
|
|
2132
|
+
}
|
|
2133
|
+
GatewayServiceUtil2.mayOwn = mayOwn;
|
|
2019
2134
|
function error(id, message, code, hint) {
|
|
2020
2135
|
return JSON.stringify({ jsonrpc: "2.0", id, error: { code: TA_RPC_ERROR_CODE, message, data: { kind: "application", data: { code, hint } } } });
|
|
2021
2136
|
}
|
|
@@ -2231,11 +2346,14 @@ class GatewaySocket {
|
|
|
2231
2346
|
};
|
|
2232
2347
|
}
|
|
2233
2348
|
fromBrowser(text) {
|
|
2234
|
-
|
|
2349
|
+
if (this.failure === undefined && !GatewayServiceUtil.mayOwn(text)) {
|
|
2350
|
+
this.forward(text);
|
|
2351
|
+
return;
|
|
2352
|
+
}
|
|
2235
2353
|
let message;
|
|
2236
2354
|
try {
|
|
2237
2355
|
message = JSON.parse(text);
|
|
2238
|
-
} catch (
|
|
2356
|
+
} catch (_a) {
|
|
2239
2357
|
this.close(1007, "Not JSON.");
|
|
2240
2358
|
return;
|
|
2241
2359
|
}
|
|
@@ -2249,6 +2367,10 @@ class GatewaySocket {
|
|
|
2249
2367
|
}
|
|
2250
2368
|
return;
|
|
2251
2369
|
}
|
|
2370
|
+
this.forward(text);
|
|
2371
|
+
}
|
|
2372
|
+
forward(text) {
|
|
2373
|
+
var _a;
|
|
2252
2374
|
if (((_a = this.inner) === null || _a === undefined ? undefined : _a.readyState) === WebSocket.OPEN) {
|
|
2253
2375
|
this.inner.send(text);
|
|
2254
2376
|
} else if (this.queued.length < MAX_QUEUED) {
|
|
@@ -2322,13 +2444,18 @@ class LocalSandbox {
|
|
|
2322
2444
|
stdio: "ignore"
|
|
2323
2445
|
});
|
|
2324
2446
|
const url = `http://127.0.0.1:${port}`;
|
|
2325
|
-
|
|
2326
|
-
child.once("exit", () => {
|
|
2447
|
+
const gone = () => {
|
|
2327
2448
|
var _a;
|
|
2328
2449
|
if (((_a = this.running.get(tenant.id)) === null || _a === undefined ? undefined : _a.child) === child) {
|
|
2329
2450
|
this.running.delete(tenant.id);
|
|
2330
2451
|
}
|
|
2452
|
+
};
|
|
2453
|
+
child.once("error", (error) => {
|
|
2454
|
+
console.warn(`ta gateway: the local sandbox of ${tenant.id} did not start: ${error.message}`);
|
|
2455
|
+
gone();
|
|
2331
2456
|
});
|
|
2457
|
+
this.running.set(tenant.id, { child, url });
|
|
2458
|
+
child.once("exit", gone);
|
|
2332
2459
|
return { url, token: tenant.token };
|
|
2333
2460
|
}
|
|
2334
2461
|
async stop(tenant) {
|
|
@@ -2513,6 +2640,11 @@ var GatewayServerUtil;
|
|
|
2513
2640
|
return join5(root, "index.html");
|
|
2514
2641
|
}
|
|
2515
2642
|
GatewayServerUtil2.file = file;
|
|
2643
|
+
function filesTarget(requestUrl, endpoint) {
|
|
2644
|
+
const target = new URL(requestUrl, endpoint);
|
|
2645
|
+
return target.origin === new URL(endpoint).origin && target.pathname.startsWith(`${TA_FILES_PATH}/`) ? target : undefined;
|
|
2646
|
+
}
|
|
2647
|
+
GatewayServerUtil2.filesTarget = filesTarget;
|
|
2516
2648
|
})(GatewayServerUtil || (GatewayServerUtil = {}));
|
|
2517
2649
|
|
|
2518
2650
|
class GatewayServer {
|
|
@@ -2638,18 +2770,26 @@ class GatewayServer {
|
|
|
2638
2770
|
response.setHeader("Set-Cookie", [...list, `${FILES_COOKIE}=${token}; Path=${TA_FILES_PATH}; Max-Age=31536000; HttpOnly; SameSite=Lax${secure}`]);
|
|
2639
2771
|
}
|
|
2640
2772
|
origin(request2) {
|
|
2641
|
-
|
|
2642
|
-
return (_a = this.flow.publicUrl) !== null && _a !== undefined ? _a : `http://${request2.headers.host}`;
|
|
2773
|
+
return SignInUtil.origin(request2, this.flow.publicUrl);
|
|
2643
2774
|
}
|
|
2644
2775
|
async files(request2, response) {
|
|
2645
2776
|
var _a, _b;
|
|
2777
|
+
if (request2.method !== "GET" && request2.method !== "HEAD") {
|
|
2778
|
+
response.setHeader("Allow", "GET, HEAD");
|
|
2779
|
+
SignInPageUtil.end(response, 405);
|
|
2780
|
+
return;
|
|
2781
|
+
}
|
|
2646
2782
|
const caller = this.caller((_a = SignInPageUtil.cookie(request2.headers.cookie, FILES_COOKIE)) !== null && _a !== undefined ? _a : "");
|
|
2647
2783
|
if (!caller) {
|
|
2648
2784
|
SignInPageUtil.end(response, 404);
|
|
2649
2785
|
return;
|
|
2650
2786
|
}
|
|
2651
2787
|
const endpoint = await this.environments.ensure(caller.tenant);
|
|
2652
|
-
const target =
|
|
2788
|
+
const target = GatewayServerUtil.filesTarget((_b = request2.url) !== null && _b !== undefined ? _b : "/", endpoint.url);
|
|
2789
|
+
if (!target) {
|
|
2790
|
+
SignInPageUtil.end(response, 404);
|
|
2791
|
+
return;
|
|
2792
|
+
}
|
|
2653
2793
|
const headers = {};
|
|
2654
2794
|
for (const name of ["range", "if-none-match", "accept", "accept-encoding", "user-agent"]) {
|
|
2655
2795
|
const value = request2.headers[name];
|
|
@@ -2662,11 +2802,10 @@ class GatewayServer {
|
|
|
2662
2802
|
const outgoing = send(target, { method: request2.method, headers }, (incoming) => {
|
|
2663
2803
|
var _a2;
|
|
2664
2804
|
response.writeHead((_a2 = incoming.statusCode) !== null && _a2 !== undefined ? _a2 : 502, incoming.headers);
|
|
2665
|
-
incoming
|
|
2666
|
-
incoming.on("end", () => resolve());
|
|
2667
|
-
incoming.on("error", reject);
|
|
2805
|
+
pipeline(incoming, response, () => resolve());
|
|
2668
2806
|
});
|
|
2669
2807
|
outgoing.on("error", reject);
|
|
2808
|
+
response.once("close", () => outgoing.destroy());
|
|
2670
2809
|
outgoing.end();
|
|
2671
2810
|
});
|
|
2672
2811
|
}
|
|
@@ -2686,7 +2825,10 @@ class GatewayServer {
|
|
|
2686
2825
|
response.end();
|
|
2687
2826
|
return;
|
|
2688
2827
|
}
|
|
2689
|
-
createReadStream(file)
|
|
2828
|
+
const stream = createReadStream(file);
|
|
2829
|
+
stream.once("error", () => response.headersSent ? response.destroy() : SignInPageUtil.end(response, 404));
|
|
2830
|
+
response.once("close", () => stream.destroy());
|
|
2831
|
+
stream.pipe(response);
|
|
2690
2832
|
}
|
|
2691
2833
|
upgrade(request2, socket, head) {
|
|
2692
2834
|
var _a, _b;
|
|
@@ -2708,7 +2850,7 @@ class GatewayServer {
|
|
|
2708
2850
|
return;
|
|
2709
2851
|
}
|
|
2710
2852
|
this.tenants.update(caller.tenant.id, { lastActiveAt: Date.now() });
|
|
2711
|
-
const connection = WebSocketConnection.open(socket, checked.key, head, { maxPayload: 32 * 1024 * 1024, heartbeat: 30000 });
|
|
2853
|
+
const connection = WebSocketConnection.open(socket, checked.key, head, { maxPayload: 32 * 1024 * 1024, heartbeat: 30000, deflate: checked.deflate });
|
|
2712
2854
|
const gatewaySocket = new GatewaySocket(connection, caller, this.environments, this.service);
|
|
2713
2855
|
this.sockets.add(gatewaySocket);
|
|
2714
2856
|
connection.onClose(() => this.sockets.delete(gatewaySocket));
|
package/dist/pi/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @celljs/ta
|
|
2
2
|
|
|
3
|
+
## 4.10.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f63f4bb: Dependencies updated within their major versions: pi 1.5.0 → 1.5.2 (`@earendil-works/pi-*`; Ta ships pi's bundle patched again for 1.5.2), vite 8.3.8, winston 3.19.0, @vendia/serverless-express 4.12.6. pi 1.5.1 sends Anthropic requests as message threads, keeps prompt caches warm between runs when it pays (`cacheWarming: "idle"`), streams the read tool and takes grep's context lines from ripgrep; see pi's changelog.
|
|
8
|
+
- 2f474ef: Ta 手机应用打开得更快:启动画面等的是从电脑取回首页列表的网络往返,不是固定时长。现在经中继连上后立即开始取数据,Web 扩展也先按上次的列表和本机缓存的代码启动,从中继握手后只需一次往返;网络较慢时(往返 300ms / 600ms)启动画面的停留从约 1.35 秒 / 3 秒降到约 0.76 秒 / 1.36 秒。启动画面最多停留 2 秒(原来 3 秒),网络再慢就先显示列表骨架。
|
|
9
|
+
|
|
10
|
+
## 4.9.1
|
|
11
|
+
|
|
12
|
+
No changes in this release.
|
|
13
|
+
|
|
3
14
|
## 4.9.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|