@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/serve/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
3
|
-
import { basename, dirname, extname, isAbsolute, join, posix, relative, resolve, sep } from "node:path";
|
|
3
|
+
import { basename, dirname, extname, isAbsolute, join, posix, relative, resolve, sep, win32 } from "node:path";
|
|
4
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
5
5
|
import { appendFileSync, chmodSync, createReadStream, createWriteStream, existsSync, linkSync, lstatSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, statSync, unwatchFile, watchFile, writeFileSync } from "node:fs";
|
|
6
6
|
import { STATUS_CODES, createServer } from "node:http";
|
|
@@ -8,7 +8,7 @@ import { IncomingMessage, createServer as createServer$1 } from "http";
|
|
|
8
8
|
import { createHmac, timingSafeEqual } from "crypto";
|
|
9
9
|
import { createHash, randomBytes, randomUUID, timingSafeEqual as timingSafeEqual$1 } from "node:crypto";
|
|
10
10
|
import { parseArgs, promisify } from "node:util";
|
|
11
|
-
import { gunzip, gunzipSync, gzip, gzipSync } from "node:zlib";
|
|
11
|
+
import { constants, deflateRawSync, gunzip, gunzipSync, gzip, gzipSync, inflateRawSync } from "node:zlib";
|
|
12
12
|
import { createBrotliDecompress, createGunzip, createInflate } from "zlib";
|
|
13
13
|
import { EventEmitter } from "node:events";
|
|
14
14
|
import { createReadStream as createReadStream$1, existsSync as existsSync$1, stat } from "fs";
|
|
@@ -4286,7 +4286,7 @@ var init_security_check_protocol = __esmMin((() => {
|
|
|
4286
4286
|
};
|
|
4287
4287
|
}));
|
|
4288
4288
|
// ../../packages/core/esm/common/application/application-protocol.js
|
|
4289
|
-
var __decorate$
|
|
4289
|
+
var __decorate$98, __metadata$81, ApplicationLifecycle, Application, ApplicationStateService, ApplicationShell, AbstractApplication, AbstractApplicationStateService;
|
|
4290
4290
|
var init_application_protocol = __esmMin((() => {
|
|
4291
4291
|
init_promise_util();
|
|
4292
4292
|
init_emitter();
|
|
@@ -4294,7 +4294,7 @@ var init_application_protocol = __esmMin((() => {
|
|
|
4294
4294
|
init_annotation$1();
|
|
4295
4295
|
init_security_check_protocol();
|
|
4296
4296
|
init_error_util();
|
|
4297
|
-
__decorate$
|
|
4297
|
+
__decorate$98 = function(decorators, target, key, desc) {
|
|
4298
4298
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4299
4299
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4300
4300
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4347,13 +4347,13 @@ var init_application_protocol = __esmMin((() => {
|
|
|
4347
4347
|
});
|
|
4348
4348
|
}
|
|
4349
4349
|
};
|
|
4350
|
-
__decorate$
|
|
4350
|
+
__decorate$98([
|
|
4351
4351
|
Autowired(ApplicationLifecycle),
|
|
4352
4352
|
Optional(),
|
|
4353
4353
|
__metadata$81("design:type", Array)
|
|
4354
4354
|
], AbstractApplication.prototype, "lifecycles", void 0);
|
|
4355
|
-
__decorate$
|
|
4356
|
-
__decorate$
|
|
4355
|
+
__decorate$98([Autowired(Logger), __metadata$81("design:type", Object)], AbstractApplication.prototype, "logger", void 0);
|
|
4356
|
+
__decorate$98([Autowired(SecurityChecker), __metadata$81("design:type", Object)], AbstractApplication.prototype, "securityChecker", void 0);
|
|
4357
4357
|
AbstractApplicationStateService = class {
|
|
4358
4358
|
constructor() {
|
|
4359
4359
|
this._state = "init";
|
|
@@ -4459,11 +4459,11 @@ var init_application_host = __esmMin((() => {
|
|
|
4459
4459
|
})(ApplicationHost || (ApplicationHost = {}));
|
|
4460
4460
|
}));
|
|
4461
4461
|
// ../../packages/core/esm/common/application/application.js
|
|
4462
|
-
var __decorate$
|
|
4462
|
+
var __decorate$97, __metadata$80, ApplicationImpl;
|
|
4463
4463
|
var init_application$2 = __esmMin((() => {
|
|
4464
4464
|
init_annotation$1();
|
|
4465
4465
|
init_application_protocol();
|
|
4466
|
-
__decorate$
|
|
4466
|
+
__decorate$97 = function(decorators, target, key, desc) {
|
|
4467
4467
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4468
4468
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4469
4469
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4491,20 +4491,20 @@ var init_application$2 = __esmMin((() => {
|
|
|
4491
4491
|
});
|
|
4492
4492
|
}
|
|
4493
4493
|
};
|
|
4494
|
-
__decorate$
|
|
4495
|
-
__decorate$
|
|
4494
|
+
__decorate$97([Autowired(ApplicationStateService), __metadata$80("design:type", Object)], ApplicationImpl.prototype, "stateService", void 0);
|
|
4495
|
+
__decorate$97([
|
|
4496
4496
|
Autowired(ApplicationShell),
|
|
4497
4497
|
Optional(),
|
|
4498
4498
|
__metadata$80("design:type", Object)
|
|
4499
4499
|
], ApplicationImpl.prototype, "shell", void 0);
|
|
4500
|
-
ApplicationImpl = __decorate$
|
|
4500
|
+
ApplicationImpl = __decorate$97([Component(Application)], ApplicationImpl);
|
|
4501
4501
|
}));
|
|
4502
4502
|
// ../../packages/core/esm/common/application/application-state.js
|
|
4503
|
-
var __decorate$
|
|
4503
|
+
var __decorate$96, ApplicationStateServiceImpl;
|
|
4504
4504
|
var init_application_state = __esmMin((() => {
|
|
4505
4505
|
init_annotation$1();
|
|
4506
4506
|
init_application_protocol();
|
|
4507
|
-
__decorate$
|
|
4507
|
+
__decorate$96 = function(decorators, target, key, desc) {
|
|
4508
4508
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4509
4509
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4510
4510
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4518,7 +4518,7 @@ var init_application_state = __esmMin((() => {
|
|
|
4518
4518
|
});
|
|
4519
4519
|
}
|
|
4520
4520
|
};
|
|
4521
|
-
ApplicationStateServiceImpl = __decorate$
|
|
4521
|
+
ApplicationStateServiceImpl = __decorate$96([Component(ApplicationStateService)], ApplicationStateServiceImpl);
|
|
4522
4522
|
}));
|
|
4523
4523
|
// ../../packages/core/esm/common/application/index.js
|
|
4524
4524
|
var init_application$1 = __esmMin((() => {
|
|
@@ -4598,12 +4598,12 @@ var init_container = __esmMin((() => {
|
|
|
4598
4598
|
init_auto_bind();
|
|
4599
4599
|
}));
|
|
4600
4600
|
// ../../packages/core/esm/common/logger/abstract-logger.js
|
|
4601
|
-
var __decorate$
|
|
4601
|
+
var __decorate$95, __metadata$79, RANK, AbstractLogger;
|
|
4602
4602
|
var init_abstract_logger = __esmMin((() => {
|
|
4603
4603
|
init_annotation$1();
|
|
4604
4604
|
init_error_util();
|
|
4605
4605
|
init_logger_protocol();
|
|
4606
|
-
__decorate$
|
|
4606
|
+
__decorate$95 = function(decorators, target, key, desc) {
|
|
4607
4607
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4608
4608
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4609
4609
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4669,21 +4669,21 @@ var init_abstract_logger = __esmMin((() => {
|
|
|
4669
4669
|
});
|
|
4670
4670
|
}
|
|
4671
4671
|
};
|
|
4672
|
-
__decorate$
|
|
4673
|
-
__decorate$
|
|
4672
|
+
__decorate$95([Value(`${LOGGER_LEVEL} ?? 'info'`), __metadata$79("design:type", String)], AbstractLogger.prototype, "level", void 0);
|
|
4673
|
+
__decorate$95([
|
|
4674
4674
|
Autowired(TraceIdProvider),
|
|
4675
4675
|
Optional(),
|
|
4676
4676
|
__metadata$79("design:type", Object)
|
|
4677
4677
|
], AbstractLogger.prototype, "traceIdProvider", void 0);
|
|
4678
4678
|
}));
|
|
4679
4679
|
// ../../packages/core/esm/common/logger/logger.js
|
|
4680
|
-
var __decorate$
|
|
4680
|
+
var __decorate$94, write, LoggerImpl;
|
|
4681
4681
|
var init_logger$1 = __esmMin((() => {
|
|
4682
4682
|
init_annotation$1();
|
|
4683
4683
|
init_container();
|
|
4684
4684
|
init_abstract_logger();
|
|
4685
4685
|
init_logger_protocol();
|
|
4686
|
-
__decorate$
|
|
4686
|
+
__decorate$94 = function(decorators, target, key, desc) {
|
|
4687
4687
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4688
4688
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4689
4689
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4715,17 +4715,17 @@ var init_logger$1 = __esmMin((() => {
|
|
|
4715
4715
|
});
|
|
4716
4716
|
}
|
|
4717
4717
|
};
|
|
4718
|
-
LoggerImpl = __decorate$
|
|
4718
|
+
LoggerImpl = __decorate$94([Component({
|
|
4719
4719
|
id: Logger,
|
|
4720
4720
|
scope: Scope.Transient
|
|
4721
4721
|
})], LoggerImpl);
|
|
4722
4722
|
}));
|
|
4723
4723
|
// ../../packages/core/esm/common/logger/logger-service.js
|
|
4724
|
-
var __decorate$
|
|
4724
|
+
var __decorate$93, LoggerServiceImpl;
|
|
4725
4725
|
var init_logger_service = __esmMin((() => {
|
|
4726
4726
|
init_annotation$1();
|
|
4727
4727
|
init_logger_protocol();
|
|
4728
|
-
__decorate$
|
|
4728
|
+
__decorate$93 = function(decorators, target, key, desc) {
|
|
4729
4729
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4730
4730
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4731
4731
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4742,7 +4742,7 @@ var init_logger_service = __esmMin((() => {
|
|
|
4742
4742
|
});
|
|
4743
4743
|
}
|
|
4744
4744
|
};
|
|
4745
|
-
LoggerServiceImpl = __decorate$
|
|
4745
|
+
LoggerServiceImpl = __decorate$93([Component(LoggerService)], LoggerServiceImpl);
|
|
4746
4746
|
}));
|
|
4747
4747
|
// ../../packages/core/esm/common/logger/index.js
|
|
4748
4748
|
var init_logger = __esmMin((() => {
|
|
@@ -4752,12 +4752,12 @@ var init_logger = __esmMin((() => {
|
|
|
4752
4752
|
init_logger_service();
|
|
4753
4753
|
}));
|
|
4754
4754
|
// ../../packages/core/esm/common/aop/class-filter.js
|
|
4755
|
-
var __decorate$
|
|
4755
|
+
var __decorate$92, __metadata$78, ClassFilterImpl;
|
|
4756
4756
|
var init_class_filter = __esmMin((() => {
|
|
4757
4757
|
init_container$1();
|
|
4758
4758
|
init_aop_protocol();
|
|
4759
4759
|
init_annotation$1();
|
|
4760
|
-
__decorate$
|
|
4760
|
+
__decorate$92 = function(decorators, target, key, desc) {
|
|
4761
4761
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4762
4762
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4763
4763
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4782,20 +4782,20 @@ var init_class_filter = __esmMin((() => {
|
|
|
4782
4782
|
});
|
|
4783
4783
|
}
|
|
4784
4784
|
};
|
|
4785
|
-
__decorate$
|
|
4786
|
-
ClassFilterImpl = __decorate$
|
|
4785
|
+
__decorate$92([Autowired(Container), __metadata$78("design:type", Container)], ClassFilterImpl.prototype, "container", void 0);
|
|
4786
|
+
ClassFilterImpl = __decorate$92([Component({
|
|
4787
4787
|
id: ClassFilter,
|
|
4788
4788
|
proxy: false
|
|
4789
4789
|
})], ClassFilterImpl);
|
|
4790
4790
|
}));
|
|
4791
4791
|
// ../../packages/core/esm/common/aop/aop-proxy-factory.js
|
|
4792
|
-
var __decorate$
|
|
4792
|
+
var __decorate$91, __metadata$77, AopProxyFactoryImpl;
|
|
4793
4793
|
var init_aop_proxy_factory = __esmMin((() => {
|
|
4794
4794
|
init_proxy_util();
|
|
4795
4795
|
init_container$1();
|
|
4796
4796
|
init_aop_protocol();
|
|
4797
4797
|
init_annotation$1();
|
|
4798
|
-
__decorate$
|
|
4798
|
+
__decorate$91 = function(decorators, target, key, desc) {
|
|
4799
4799
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4800
4800
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4801
4801
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -4862,8 +4862,8 @@ var init_aop_proxy_factory = __esmMin((() => {
|
|
|
4862
4862
|
});
|
|
4863
4863
|
}
|
|
4864
4864
|
};
|
|
4865
|
-
__decorate$
|
|
4866
|
-
AopProxyFactoryImpl = __decorate$
|
|
4865
|
+
__decorate$91([Autowired(Container), __metadata$77("design:type", Container)], AopProxyFactoryImpl.prototype, "container", void 0);
|
|
4866
|
+
AopProxyFactoryImpl = __decorate$91([Component({
|
|
4867
4867
|
id: AopProxyFactory,
|
|
4868
4868
|
proxy: false
|
|
4869
4869
|
})], AopProxyFactoryImpl);
|
|
@@ -5337,11 +5337,11 @@ var init_expression_engine = __esmMin((() => {
|
|
|
5337
5337
|
};
|
|
5338
5338
|
}));
|
|
5339
5339
|
// ../../packages/core/esm/common/el/application-expression-engine.js
|
|
5340
|
-
var __decorate$
|
|
5340
|
+
var __decorate$90, ApplicationExpressionEngine;
|
|
5341
5341
|
var init_application_expression_engine = __esmMin((() => {
|
|
5342
5342
|
init_component();
|
|
5343
5343
|
init_expression_engine();
|
|
5344
|
-
__decorate$
|
|
5344
|
+
__decorate$90 = function(decorators, target, key, desc) {
|
|
5345
5345
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5346
5346
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5347
5347
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -5355,7 +5355,7 @@ var init_application_expression_engine = __esmMin((() => {
|
|
|
5355
5355
|
});
|
|
5356
5356
|
}
|
|
5357
5357
|
};
|
|
5358
|
-
ApplicationExpressionEngine = __decorate$
|
|
5358
|
+
ApplicationExpressionEngine = __decorate$90([Component(ExpressionEngine)], ApplicationExpressionEngine);
|
|
5359
5359
|
}));
|
|
5360
5360
|
// ../../packages/core/esm/common/el/expression-util.js
|
|
5361
5361
|
var ExpressionSectionCompiler, ExpressionError, ExpressionUtil;
|
|
@@ -5645,13 +5645,13 @@ var init_expression_util = __esmMin((() => {
|
|
|
5645
5645
|
})(ExpressionUtil || (ExpressionUtil = {}));
|
|
5646
5646
|
}));
|
|
5647
5647
|
// ../../packages/core/esm/common/el/expression-compiler.js
|
|
5648
|
-
var __decorate$
|
|
5648
|
+
var __decorate$89, __metadata$76, ExpressionCompilerImpl;
|
|
5649
5649
|
var init_expression_compiler = __esmMin((() => {
|
|
5650
5650
|
init_annotation$1();
|
|
5651
5651
|
init_expression_protocol();
|
|
5652
5652
|
init_expression_engine();
|
|
5653
5653
|
init_expression_util();
|
|
5654
|
-
__decorate$
|
|
5654
|
+
__decorate$89 = function(decorators, target, key, desc) {
|
|
5655
5655
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5656
5656
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5657
5657
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -5674,17 +5674,17 @@ var init_expression_compiler = __esmMin((() => {
|
|
|
5674
5674
|
});
|
|
5675
5675
|
}
|
|
5676
5676
|
};
|
|
5677
|
-
__decorate$
|
|
5678
|
-
ExpressionCompilerImpl = __decorate$
|
|
5677
|
+
__decorate$89([Autowired(ExpressionEngine), __metadata$76("design:type", ExpressionEngine)], ExpressionCompilerImpl.prototype, "engine", void 0);
|
|
5678
|
+
ExpressionCompilerImpl = __decorate$89([Component(ExpressionCompiler)], ExpressionCompilerImpl);
|
|
5679
5679
|
}));
|
|
5680
5680
|
// ../../packages/core/esm/common/el/expression-context-provider.js
|
|
5681
|
-
var __decorate$
|
|
5681
|
+
var __decorate$88, __metadata$75, __param$5, ExpressionContextProviderImpl;
|
|
5682
5682
|
var init_expression_context_provider = __esmMin((() => {
|
|
5683
5683
|
init_annotation$1();
|
|
5684
5684
|
init_expression_protocol();
|
|
5685
5685
|
init_utils$3();
|
|
5686
5686
|
init_config$1();
|
|
5687
|
-
__decorate$
|
|
5687
|
+
__decorate$88 = function(decorators, target, key, desc) {
|
|
5688
5688
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5689
5689
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5690
5690
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -5719,7 +5719,7 @@ var init_expression_context_provider = __esmMin((() => {
|
|
|
5719
5719
|
});
|
|
5720
5720
|
}
|
|
5721
5721
|
};
|
|
5722
|
-
ExpressionContextProviderImpl = __decorate$
|
|
5722
|
+
ExpressionContextProviderImpl = __decorate$88([
|
|
5723
5723
|
Component(ExpressionContextProvider),
|
|
5724
5724
|
__param$5(0, Autowired(ContextInitializer)),
|
|
5725
5725
|
__param$5(0, Optional()),
|
|
@@ -5727,13 +5727,13 @@ var init_expression_context_provider = __esmMin((() => {
|
|
|
5727
5727
|
], ExpressionContextProviderImpl);
|
|
5728
5728
|
}));
|
|
5729
5729
|
// ../../packages/core/esm/common/el/expression-handler.js
|
|
5730
|
-
var __decorate$
|
|
5730
|
+
var __decorate$87, __metadata$74, ExpressionHandlerImpl;
|
|
5731
5731
|
var init_expression_handler = __esmMin((() => {
|
|
5732
5732
|
init_annotation$1();
|
|
5733
5733
|
init_expression_protocol();
|
|
5734
5734
|
init_expression_util();
|
|
5735
5735
|
init_config_util();
|
|
5736
|
-
__decorate$
|
|
5736
|
+
__decorate$87 = function(decorators, target, key, desc) {
|
|
5737
5737
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5738
5738
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5739
5739
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -5774,18 +5774,18 @@ var init_expression_handler = __esmMin((() => {
|
|
|
5774
5774
|
});
|
|
5775
5775
|
}
|
|
5776
5776
|
};
|
|
5777
|
-
__decorate$
|
|
5778
|
-
__decorate$
|
|
5779
|
-
ExpressionHandlerImpl = __decorate$
|
|
5777
|
+
__decorate$87([Autowired(ExpressionContextProvider), __metadata$74("design:type", Object)], ExpressionHandlerImpl.prototype, "expressionContextProvider", void 0);
|
|
5778
|
+
__decorate$87([Autowired(ExpressionCompiler), __metadata$74("design:type", Object)], ExpressionHandlerImpl.prototype, "expressionCompiler", void 0);
|
|
5779
|
+
ExpressionHandlerImpl = __decorate$87([Component(ExpressionHandler)], ExpressionHandlerImpl);
|
|
5780
5780
|
}));
|
|
5781
5781
|
// ../../packages/core/esm/common/el/core-context-initializer.js
|
|
5782
|
-
var __decorate$
|
|
5782
|
+
var __decorate$86, __metadata$73, CoreContextInitializer;
|
|
5783
5783
|
var init_core_context_initializer = __esmMin((() => {
|
|
5784
5784
|
init_annotation$1();
|
|
5785
5785
|
init_expression_protocol();
|
|
5786
5786
|
init_expression_engine();
|
|
5787
5787
|
init_expression_util();
|
|
5788
|
-
__decorate$
|
|
5788
|
+
__decorate$86 = function(decorators, target, key, desc) {
|
|
5789
5789
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5790
5790
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5791
5791
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -5816,12 +5816,12 @@ var init_core_context_initializer = __esmMin((() => {
|
|
|
5816
5816
|
});
|
|
5817
5817
|
}
|
|
5818
5818
|
};
|
|
5819
|
-
__decorate$
|
|
5820
|
-
__decorate$
|
|
5819
|
+
__decorate$86([Autowired(ExpressionEngine), __metadata$73("design:type", ExpressionEngine)], CoreContextInitializer.prototype, "engine", void 0);
|
|
5820
|
+
__decorate$86([Autowired({
|
|
5821
5821
|
id: ExpressionHandler,
|
|
5822
5822
|
detached: true
|
|
5823
5823
|
}), __metadata$73("design:type", Object)], CoreContextInitializer.prototype, "expressionHandler", void 0);
|
|
5824
|
-
CoreContextInitializer = __decorate$
|
|
5824
|
+
CoreContextInitializer = __decorate$86([Component(ContextInitializer)], CoreContextInitializer);
|
|
5825
5825
|
}));
|
|
5826
5826
|
// ../../packages/core/esm/common/el/index.js
|
|
5827
5827
|
var init_el = __esmMin((() => {
|
|
@@ -5835,12 +5835,12 @@ var init_el = __esmMin((() => {
|
|
|
5835
5835
|
init_core_context_initializer();
|
|
5836
5836
|
}));
|
|
5837
5837
|
// ../../packages/core/esm/common/config/config-provider.js
|
|
5838
|
-
var __decorate$
|
|
5838
|
+
var __decorate$85, __metadata$72, ConfigProviderImpl;
|
|
5839
5839
|
var init_config_provider = __esmMin((() => {
|
|
5840
5840
|
init_config_protocol();
|
|
5841
5841
|
init_annotation$1();
|
|
5842
5842
|
init_el();
|
|
5843
|
-
__decorate$
|
|
5843
|
+
__decorate$85 = function(decorators, target, key, desc) {
|
|
5844
5844
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5845
5845
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5846
5846
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -5861,8 +5861,8 @@ var init_config_provider = __esmMin((() => {
|
|
|
5861
5861
|
});
|
|
5862
5862
|
}
|
|
5863
5863
|
};
|
|
5864
|
-
__decorate$
|
|
5865
|
-
ConfigProviderImpl = __decorate$
|
|
5864
|
+
__decorate$85([Autowired(ExpressionHandler), __metadata$72("design:type", Object)], ConfigProviderImpl.prototype, "expressionHandler", void 0);
|
|
5865
|
+
ConfigProviderImpl = __decorate$85([Component(ConfigProvider)], ConfigProviderImpl);
|
|
5866
5866
|
}));
|
|
5867
5867
|
// ../../packages/core/esm/common/config/index.js
|
|
5868
5868
|
var init_config$1 = __esmMin((() => {
|
|
@@ -5878,11 +5878,11 @@ var init_provider_protocol = __esmMin((() => {
|
|
|
5878
5878
|
ComponentFilterContribution = Symbol("ComponentFilterContribution");
|
|
5879
5879
|
}));
|
|
5880
5880
|
// ../../packages/core/esm/common/provider/component-filter-registry.js
|
|
5881
|
-
var __decorate$
|
|
5881
|
+
var __decorate$84, __metadata$71, __param$4, ComponentFilterRegistryImpl;
|
|
5882
5882
|
var init_component_filter_registry = __esmMin((() => {
|
|
5883
5883
|
init_provider_protocol();
|
|
5884
5884
|
init_annotation$1();
|
|
5885
|
-
__decorate$
|
|
5885
|
+
__decorate$84 = function(decorators, target, key, desc) {
|
|
5886
5886
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5887
5887
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5888
5888
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -5929,7 +5929,7 @@ var init_component_filter_registry = __esmMin((() => {
|
|
|
5929
5929
|
});
|
|
5930
5930
|
}
|
|
5931
5931
|
};
|
|
5932
|
-
ComponentFilterRegistryImpl = __decorate$
|
|
5932
|
+
ComponentFilterRegistryImpl = __decorate$84([
|
|
5933
5933
|
Component(ComponentFilterRegistry),
|
|
5934
5934
|
__param$4(0, Autowired(ComponentFilterContribution)),
|
|
5935
5935
|
__param$4(0, Optional()),
|
|
@@ -5990,12 +5990,12 @@ var init_provider = __esmMin((() => {
|
|
|
5990
5990
|
init_provider_protocol();
|
|
5991
5991
|
}));
|
|
5992
5992
|
// ../../packages/core/esm/common/security-check/security-checker.js
|
|
5993
|
-
var __decorate$
|
|
5993
|
+
var __decorate$83, __metadata$70, SecurityCheckerImpl;
|
|
5994
5994
|
var init_security_checker = __esmMin((() => {
|
|
5995
5995
|
init_annotation$1();
|
|
5996
5996
|
init_logger_protocol();
|
|
5997
5997
|
init_security_check_protocol();
|
|
5998
|
-
__decorate$
|
|
5998
|
+
__decorate$83 = function(decorators, target, key, desc) {
|
|
5999
5999
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6000
6000
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6001
6001
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -6031,14 +6031,14 @@ var init_security_checker = __esmMin((() => {
|
|
|
6031
6031
|
});
|
|
6032
6032
|
}
|
|
6033
6033
|
};
|
|
6034
|
-
__decorate$
|
|
6034
|
+
__decorate$83([
|
|
6035
6035
|
Autowired(SecurityCheck),
|
|
6036
6036
|
Optional(),
|
|
6037
6037
|
__metadata$70("design:type", Array)
|
|
6038
6038
|
], SecurityCheckerImpl.prototype, "checks", void 0);
|
|
6039
|
-
__decorate$
|
|
6040
|
-
__decorate$
|
|
6041
|
-
SecurityCheckerImpl = __decorate$
|
|
6039
|
+
__decorate$83([Value(`${SECURITY_CHECKS} ?? 'warn'`), __metadata$70("design:type", String)], SecurityCheckerImpl.prototype, "policy", void 0);
|
|
6040
|
+
__decorate$83([Autowired(Logger), __metadata$70("design:type", Object)], SecurityCheckerImpl.prototype, "logger", void 0);
|
|
6041
|
+
SecurityCheckerImpl = __decorate$83([Component(SecurityChecker)], SecurityCheckerImpl);
|
|
6042
6042
|
}));
|
|
6043
6043
|
// ../../packages/core/esm/common/security-check/index.js
|
|
6044
6044
|
var init_security_check = __esmMin((() => {
|
|
@@ -6071,10 +6071,10 @@ var static_module_default$1 = autoBind((bind) => {
|
|
|
6071
6071
|
bindAutowiredProvider(bind);
|
|
6072
6072
|
});
|
|
6073
6073
|
// ../../packages/core/esm/node/application/exit-signal-lifecycle.js
|
|
6074
|
-
var __decorate$
|
|
6074
|
+
var __decorate$82, TAG, ExitSignalLifecycle;
|
|
6075
6075
|
var init_exit_signal_lifecycle = __esmMin((() => {
|
|
6076
6076
|
init_common$6();
|
|
6077
|
-
__decorate$
|
|
6077
|
+
__decorate$82 = function(decorators, target, key, desc) {
|
|
6078
6078
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6079
6079
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6080
6080
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -6099,7 +6099,7 @@ var init_exit_signal_lifecycle = __esmMin((() => {
|
|
|
6099
6099
|
});
|
|
6100
6100
|
}
|
|
6101
6101
|
};
|
|
6102
|
-
ExitSignalLifecycle = __decorate$
|
|
6102
|
+
ExitSignalLifecycle = __decorate$82([Component(ApplicationLifecycle)], ExitSignalLifecycle);
|
|
6103
6103
|
}));
|
|
6104
6104
|
// ../../packages/core/esm/node/application/index.js
|
|
6105
6105
|
var init_application = __esmMin((() => {
|
|
@@ -6497,12 +6497,12 @@ var init_default_rest_operations = __esmMin((() => {
|
|
|
6497
6497
|
};
|
|
6498
6498
|
}));
|
|
6499
6499
|
// ../../packages/http/esm/common/client/rest-operations-factory.js
|
|
6500
|
-
var __decorate$
|
|
6500
|
+
var __decorate$81, __metadata$69, DefaultRestOperationsFactory;
|
|
6501
6501
|
var init_rest_operations_factory = __esmMin((() => {
|
|
6502
6502
|
init_common$6();
|
|
6503
6503
|
init_client_protocol$1();
|
|
6504
6504
|
init_default_rest_operations();
|
|
6505
|
-
__decorate$
|
|
6505
|
+
__decorate$81 = function(decorators, target, key, desc) {
|
|
6506
6506
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6507
6507
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6508
6508
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -6522,8 +6522,8 @@ var init_rest_operations_factory = __esmMin((() => {
|
|
|
6522
6522
|
});
|
|
6523
6523
|
}
|
|
6524
6524
|
};
|
|
6525
|
-
__decorate$
|
|
6526
|
-
DefaultRestOperationsFactory = __decorate$
|
|
6525
|
+
__decorate$81([Value("http.client"), __metadata$69("design:type", Object)], DefaultRestOperationsFactory.prototype, "clientConfig", void 0);
|
|
6526
|
+
DefaultRestOperationsFactory = __decorate$81([Component(RestOperationsFactory)], DefaultRestOperationsFactory);
|
|
6527
6527
|
}));
|
|
6528
6528
|
// ../../packages/http/esm/common/client/index.js
|
|
6529
6529
|
var init_client$1 = __esmMin((() => {
|
|
@@ -6884,13 +6884,13 @@ var init_prompt$1 = __esmMin((() => {
|
|
|
6884
6884
|
};
|
|
6885
6885
|
}));
|
|
6886
6886
|
// ../../ai-packages/ai-core/esm/common/chat/prompt/prompt-template.js
|
|
6887
|
-
var __decorate$
|
|
6887
|
+
var __decorate$80, SamplePromptTemplate;
|
|
6888
6888
|
var init_prompt_template = __esmMin((() => {
|
|
6889
6889
|
init_common$6();
|
|
6890
6890
|
init_prompt_protocol();
|
|
6891
6891
|
init_prompt$1();
|
|
6892
6892
|
init_message();
|
|
6893
|
-
__decorate$
|
|
6893
|
+
__decorate$80 = function(decorators, target, key, desc) {
|
|
6894
6894
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6895
6895
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6896
6896
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -6919,15 +6919,15 @@ var init_prompt_template = __esmMin((() => {
|
|
|
6919
6919
|
});
|
|
6920
6920
|
}
|
|
6921
6921
|
};
|
|
6922
|
-
SamplePromptTemplate = __decorate$
|
|
6922
|
+
SamplePromptTemplate = __decorate$80([Component(PromptTemplate)], SamplePromptTemplate);
|
|
6923
6923
|
}));
|
|
6924
6924
|
// ../../ai-packages/ai-core/esm/common/chat/prompt/el-prompt-template.js
|
|
6925
|
-
var __decorate$
|
|
6925
|
+
var __decorate$79, __metadata$68, ELPromptTemplate;
|
|
6926
6926
|
var init_el_prompt_template = __esmMin((() => {
|
|
6927
6927
|
init_common$6();
|
|
6928
6928
|
init_prompt$1();
|
|
6929
6929
|
init_message();
|
|
6930
|
-
__decorate$
|
|
6930
|
+
__decorate$79 = function(decorators, target, key, desc) {
|
|
6931
6931
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6932
6932
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6933
6933
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -6963,8 +6963,8 @@ var init_el_prompt_template = __esmMin((() => {
|
|
|
6963
6963
|
});
|
|
6964
6964
|
}
|
|
6965
6965
|
};
|
|
6966
|
-
__decorate$
|
|
6967
|
-
ELPromptTemplate = __decorate$
|
|
6966
|
+
__decorate$79([Autowired(ExpressionHandler), __metadata$68("design:type", Object)], ELPromptTemplate.prototype, "expressionHandler", void 0);
|
|
6967
|
+
ELPromptTemplate = __decorate$79([Component(ELPromptTemplate)], ELPromptTemplate);
|
|
6968
6968
|
}));
|
|
6969
6969
|
// ../../ai-packages/ai-core/esm/common/chat/prompt/index.js
|
|
6970
6970
|
var init_prompt = __esmMin((() => {
|
|
@@ -7012,11 +7012,11 @@ var init_chat_protocol = __esmMin((() => {
|
|
|
7012
7012
|
})(ChatResponse || (ChatResponse = {}));
|
|
7013
7013
|
}));
|
|
7014
7014
|
// ../../ai-packages/ai-core/esm/common/chat/model/proxy-chat-model.js
|
|
7015
|
-
var __decorate$
|
|
7015
|
+
var __decorate$78, __metadata$67, ProxyChatModel;
|
|
7016
7016
|
var init_proxy_chat_model = __esmMin((() => {
|
|
7017
7017
|
init_common$6();
|
|
7018
7018
|
init_chat_protocol();
|
|
7019
|
-
__decorate$
|
|
7019
|
+
__decorate$78 = function(decorators, target, key, desc) {
|
|
7020
7020
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7021
7021
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7022
7022
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -7062,14 +7062,14 @@ var init_proxy_chat_model = __esmMin((() => {
|
|
|
7062
7062
|
});
|
|
7063
7063
|
}
|
|
7064
7064
|
};
|
|
7065
|
-
__decorate$
|
|
7066
|
-
__decorate$
|
|
7065
|
+
__decorate$78([Autowired(ChatModel), __metadata$67("design:type", Array)], ProxyChatModel.prototype, "chatModels", void 0);
|
|
7066
|
+
__decorate$78([
|
|
7067
7067
|
PostConstruct(),
|
|
7068
7068
|
__metadata$67("design:type", Function),
|
|
7069
7069
|
__metadata$67("design:paramtypes", []),
|
|
7070
7070
|
__metadata$67("design:returntype", void 0)
|
|
7071
7071
|
], ProxyChatModel.prototype, "init", null);
|
|
7072
|
-
ProxyChatModel = __decorate$
|
|
7072
|
+
ProxyChatModel = __decorate$78([Component(ProxyChatModel)], ProxyChatModel);
|
|
7073
7073
|
}));
|
|
7074
7074
|
// ../../ai-packages/ai-core/esm/common/chat/model/index.js
|
|
7075
7075
|
var init_model$1 = __esmMin((() => {
|
|
@@ -7152,12 +7152,12 @@ var init_error$6 = __esmMin((() => {
|
|
|
7152
7152
|
init_error$7();
|
|
7153
7153
|
}));
|
|
7154
7154
|
// ../../ai-packages/ai-core/esm/common/model/function/function-callback-register.js
|
|
7155
|
-
var __decorate$
|
|
7155
|
+
var __decorate$77, FunctionCallbackRegisterImpl;
|
|
7156
7156
|
var init_function_callback_register = __esmMin((() => {
|
|
7157
7157
|
init_common$6();
|
|
7158
7158
|
init_function_protocol();
|
|
7159
7159
|
init_error$6();
|
|
7160
|
-
__decorate$
|
|
7160
|
+
__decorate$77 = function(decorators, target, key, desc) {
|
|
7161
7161
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7162
7162
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7163
7163
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -7194,7 +7194,7 @@ var init_function_callback_register = __esmMin((() => {
|
|
|
7194
7194
|
});
|
|
7195
7195
|
}
|
|
7196
7196
|
};
|
|
7197
|
-
FunctionCallbackRegisterImpl = __decorate$
|
|
7197
|
+
FunctionCallbackRegisterImpl = __decorate$77([Component(FunctionCallbackRegister)], FunctionCallbackRegisterImpl);
|
|
7198
7198
|
}));
|
|
7199
7199
|
// ../../ai-packages/ai-core/esm/common/model/function/index.js
|
|
7200
7200
|
var init_function = __esmMin((() => {
|
|
@@ -7212,13 +7212,13 @@ var init_tool_protocol = __esmMin((() => {
|
|
|
7212
7212
|
ToolHandler = Symbol("ToolHandler");
|
|
7213
7213
|
}));
|
|
7214
7214
|
// ../../ai-packages/ai-core/esm/common/chat/tool/tool-handler.js
|
|
7215
|
-
var __decorate$
|
|
7215
|
+
var __decorate$76, __metadata$66, ToolHanderImpl;
|
|
7216
7216
|
var init_tool_handler = __esmMin((() => {
|
|
7217
7217
|
init_common$6();
|
|
7218
7218
|
init_model();
|
|
7219
7219
|
init_tool_protocol();
|
|
7220
7220
|
init_message();
|
|
7221
|
-
__decorate$
|
|
7221
|
+
__decorate$76 = function(decorators, target, key, desc) {
|
|
7222
7222
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7223
7223
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7224
7224
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -7270,8 +7270,8 @@ var init_tool_handler = __esmMin((() => {
|
|
|
7270
7270
|
});
|
|
7271
7271
|
}
|
|
7272
7272
|
};
|
|
7273
|
-
__decorate$
|
|
7274
|
-
ToolHanderImpl = __decorate$
|
|
7273
|
+
__decorate$76([Autowired(FunctionCallbackRegister), __metadata$66("design:type", Object)], ToolHanderImpl.prototype, "functionCallbackRegister", void 0);
|
|
7274
|
+
ToolHanderImpl = __decorate$76([Component(ToolHandler)], ToolHanderImpl);
|
|
7275
7275
|
}));
|
|
7276
7276
|
// ../../ai-packages/ai-core/esm/common/chat/tool/index.js
|
|
7277
7277
|
var init_tool = __esmMin((() => {
|
|
@@ -8418,7 +8418,7 @@ var init_pi_message_util = __esmMin((() => {
|
|
|
8418
8418
|
})(PiMessageUtil || (PiMessageUtil = {}));
|
|
8419
8419
|
}));
|
|
8420
8420
|
// ../../ai-packages/ai-pi/esm/node/chat/pi-chat-model.js
|
|
8421
|
-
var __decorate$
|
|
8421
|
+
var __decorate$75, __metadata$65, PiChatModel;
|
|
8422
8422
|
var init_pi_chat_model = __esmMin((() => {
|
|
8423
8423
|
init_common$5();
|
|
8424
8424
|
init_common$6();
|
|
@@ -8426,7 +8426,7 @@ var init_pi_chat_model = __esmMin((() => {
|
|
|
8426
8426
|
init_error$5();
|
|
8427
8427
|
init_pi_protocol();
|
|
8428
8428
|
init_pi_message_util();
|
|
8429
|
-
__decorate$
|
|
8429
|
+
__decorate$75 = function(decorators, target, key, desc) {
|
|
8430
8430
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8431
8431
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8432
8432
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -8498,8 +8498,8 @@ var init_pi_chat_model = __esmMin((() => {
|
|
|
8498
8498
|
});
|
|
8499
8499
|
}
|
|
8500
8500
|
};
|
|
8501
|
-
__decorate$
|
|
8502
|
-
PiChatModel = __decorate$
|
|
8501
|
+
__decorate$75([Autowired(PiModelsProvider), __metadata$65("design:type", Object)], PiChatModel.prototype, "modelsProvider", void 0);
|
|
8502
|
+
PiChatModel = __decorate$75([Component(ChatModel)], PiChatModel);
|
|
8503
8503
|
}));
|
|
8504
8504
|
// ../../ai-packages/ai-pi/esm/node/chat/pi-chat-options.js
|
|
8505
8505
|
var init_pi_chat_options = __esmMin((() => {}));
|
|
@@ -8604,14 +8604,14 @@ var init_pi_endpoint_util = __esmMin((() => {
|
|
|
8604
8604
|
})(PiEndpointUtil || (PiEndpointUtil = {}));
|
|
8605
8605
|
}));
|
|
8606
8606
|
// ../../ai-packages/ai-pi/esm/node/models/pi-models-provider.js
|
|
8607
|
-
var __decorate$
|
|
8607
|
+
var __decorate$74, __metadata$64, DefaultPiModelsProvider;
|
|
8608
8608
|
var init_pi_models_provider = __esmMin((() => {
|
|
8609
8609
|
init_common$6();
|
|
8610
8610
|
init_error$5();
|
|
8611
8611
|
init_pi$2();
|
|
8612
8612
|
init_pi_protocol();
|
|
8613
8613
|
init_pi_endpoint_util();
|
|
8614
|
-
__decorate$
|
|
8614
|
+
__decorate$74 = function(decorators, target, key, desc) {
|
|
8615
8615
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8616
8616
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8617
8617
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -8667,13 +8667,13 @@ var init_pi_models_provider = __esmMin((() => {
|
|
|
8667
8667
|
});
|
|
8668
8668
|
}
|
|
8669
8669
|
};
|
|
8670
|
-
__decorate$
|
|
8671
|
-
__decorate$
|
|
8670
|
+
__decorate$74([Value(PI_OPTIONS), __metadata$64("design:type", Object)], DefaultPiModelsProvider.prototype, "options", void 0);
|
|
8671
|
+
__decorate$74([
|
|
8672
8672
|
Autowired(PiModelsContribution),
|
|
8673
8673
|
Optional(),
|
|
8674
8674
|
__metadata$64("design:type", Array)
|
|
8675
8675
|
], DefaultPiModelsProvider.prototype, "contributions", void 0);
|
|
8676
|
-
DefaultPiModelsProvider = __decorate$
|
|
8676
|
+
DefaultPiModelsProvider = __decorate$74([Component(PiModelsProvider)], DefaultPiModelsProvider);
|
|
8677
8677
|
}));
|
|
8678
8678
|
// ../../ai-packages/ai-pi/esm/node/models/index.js
|
|
8679
8679
|
var init_models = __esmMin((() => {
|
|
@@ -8768,14 +8768,14 @@ var init_pi$1 = __esmMin((() => {
|
|
|
8768
8768
|
init_pi_types$3();
|
|
8769
8769
|
}));
|
|
8770
8770
|
// ../../ai-packages/ai-agent/esm/node/agent/agent-factory.js
|
|
8771
|
-
var __decorate$
|
|
8771
|
+
var __decorate$73, __metadata$63, DefaultAgentFactory;
|
|
8772
8772
|
var init_agent_factory = __esmMin((() => {
|
|
8773
8773
|
init_node$9();
|
|
8774
8774
|
init_common$6();
|
|
8775
8775
|
init_agent_protocol();
|
|
8776
8776
|
init_error$4();
|
|
8777
8777
|
init_pi$1();
|
|
8778
|
-
__decorate$
|
|
8778
|
+
__decorate$73 = function(decorators, target, key, desc) {
|
|
8779
8779
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8780
8780
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8781
8781
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -8824,14 +8824,14 @@ var init_agent_factory = __esmMin((() => {
|
|
|
8824
8824
|
});
|
|
8825
8825
|
}
|
|
8826
8826
|
};
|
|
8827
|
-
__decorate$
|
|
8828
|
-
__decorate$
|
|
8829
|
-
__decorate$
|
|
8827
|
+
__decorate$73([Value(AGENT_OPTIONS), __metadata$63("design:type", Object)], DefaultAgentFactory.prototype, "options", void 0);
|
|
8828
|
+
__decorate$73([Autowired(PiModelsProvider), __metadata$63("design:type", Object)], DefaultAgentFactory.prototype, "modelsProvider", void 0);
|
|
8829
|
+
__decorate$73([
|
|
8830
8830
|
Autowired(AgentTool),
|
|
8831
8831
|
Optional(),
|
|
8832
8832
|
__metadata$63("design:type", Array)
|
|
8833
8833
|
], DefaultAgentFactory.prototype, "tools", void 0);
|
|
8834
|
-
DefaultAgentFactory = __decorate$
|
|
8834
|
+
DefaultAgentFactory = __decorate$73([Component(AgentFactory)], DefaultAgentFactory);
|
|
8835
8835
|
}));
|
|
8836
8836
|
// ../../ai-packages/ai-agent/esm/node/agent/index.js
|
|
8837
8837
|
var init_agent = __esmMin((() => {
|
|
@@ -8929,11 +8929,11 @@ var init_coding_agent_protocol = __esmMin((() => {
|
|
|
8929
8929
|
CODING_AGENT_OPTIONS = "ai.codingAgent";
|
|
8930
8930
|
}));
|
|
8931
8931
|
// ../../ai-packages/ai-coding-agent/esm/node/application-lifecycle.js
|
|
8932
|
-
var __decorate$
|
|
8932
|
+
var __decorate$72, __metadata$62, CodingAgentApplicationLifecycle;
|
|
8933
8933
|
var init_application_lifecycle = __esmMin((() => {
|
|
8934
8934
|
init_common$6();
|
|
8935
8935
|
init_coding_agent_protocol();
|
|
8936
|
-
__decorate$
|
|
8936
|
+
__decorate$72 = function(decorators, target, key, desc) {
|
|
8937
8937
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8938
8938
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8939
8939
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -8953,8 +8953,8 @@ var init_application_lifecycle = __esmMin((() => {
|
|
|
8953
8953
|
});
|
|
8954
8954
|
}
|
|
8955
8955
|
};
|
|
8956
|
-
__decorate$
|
|
8957
|
-
CodingAgentApplicationLifecycle = __decorate$
|
|
8956
|
+
__decorate$72([Autowired(AgentSessionManager), __metadata$62("design:type", Object)], CodingAgentApplicationLifecycle.prototype, "sessionManager", void 0);
|
|
8957
|
+
CodingAgentApplicationLifecycle = __decorate$72([Component(ApplicationLifecycle)], CodingAgentApplicationLifecycle);
|
|
8958
8958
|
}));
|
|
8959
8959
|
// ../../ai-packages/ai-coding-agent/esm/node/error/errors.js
|
|
8960
8960
|
var CodingAgentError, AgentSessionNotFoundError, AgentModelNotFoundError, AgentExtensionError;
|
|
@@ -9083,13 +9083,13 @@ var init_pi = __esmMin((() => {
|
|
|
9083
9083
|
init_pi_types$2();
|
|
9084
9084
|
}));
|
|
9085
9085
|
// ../../ai-packages/ai-coding-agent/esm/node/runtime/model-runtime-provider.js
|
|
9086
|
-
var __decorate$
|
|
9086
|
+
var __decorate$71, __metadata$61, DefaultModelRuntimeProvider;
|
|
9087
9087
|
var init_model_runtime_provider = __esmMin((() => {
|
|
9088
9088
|
init_node$9();
|
|
9089
9089
|
init_common$6();
|
|
9090
9090
|
init_coding_agent_protocol();
|
|
9091
9091
|
init_pi();
|
|
9092
|
-
__decorate$
|
|
9092
|
+
__decorate$71 = function(decorators, target, key, desc) {
|
|
9093
9093
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9094
9094
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9095
9095
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -9139,14 +9139,14 @@ var init_model_runtime_provider = __esmMin((() => {
|
|
|
9139
9139
|
});
|
|
9140
9140
|
}
|
|
9141
9141
|
};
|
|
9142
|
-
__decorate$
|
|
9143
|
-
__decorate$
|
|
9144
|
-
__decorate$
|
|
9142
|
+
__decorate$71([Value(CODING_AGENT_OPTIONS), __metadata$61("design:type", Object)], DefaultModelRuntimeProvider.prototype, "options", void 0);
|
|
9143
|
+
__decorate$71([Value(PI_OPTIONS), __metadata$61("design:type", Object)], DefaultModelRuntimeProvider.prototype, "piOptions", void 0);
|
|
9144
|
+
__decorate$71([
|
|
9145
9145
|
Autowired(ModelRuntimeContribution),
|
|
9146
9146
|
Optional(),
|
|
9147
9147
|
__metadata$61("design:type", Array)
|
|
9148
9148
|
], DefaultModelRuntimeProvider.prototype, "contributions", void 0);
|
|
9149
|
-
DefaultModelRuntimeProvider = __decorate$
|
|
9149
|
+
DefaultModelRuntimeProvider = __decorate$71([Component(ModelRuntimeProvider)], DefaultModelRuntimeProvider);
|
|
9150
9150
|
}));
|
|
9151
9151
|
// ../../ai-packages/ai-coding-agent/esm/node/runtime/index.js
|
|
9152
9152
|
var init_runtime = __esmMin((() => {
|
|
@@ -9173,7 +9173,7 @@ var init_agent_tool_util = __esmMin((() => {
|
|
|
9173
9173
|
})(AgentToolUtil || (AgentToolUtil = {}));
|
|
9174
9174
|
}));
|
|
9175
9175
|
// ../../ai-packages/ai-coding-agent/esm/node/session/agent-session-factory.js
|
|
9176
|
-
var __decorate$
|
|
9176
|
+
var __decorate$70, __metadata$60, DefaultAgentSessionFactory;
|
|
9177
9177
|
var init_agent_session_factory = __esmMin((() => {
|
|
9178
9178
|
init_node$8();
|
|
9179
9179
|
init_common$6();
|
|
@@ -9181,7 +9181,7 @@ var init_agent_session_factory = __esmMin((() => {
|
|
|
9181
9181
|
init_error$3();
|
|
9182
9182
|
init_pi();
|
|
9183
9183
|
init_agent_tool_util();
|
|
9184
|
-
__decorate$
|
|
9184
|
+
__decorate$70 = function(decorators, target, key, desc) {
|
|
9185
9185
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9186
9186
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9187
9187
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -9305,28 +9305,28 @@ var init_agent_session_factory = __esmMin((() => {
|
|
|
9305
9305
|
});
|
|
9306
9306
|
}
|
|
9307
9307
|
};
|
|
9308
|
-
__decorate$
|
|
9309
|
-
__decorate$
|
|
9310
|
-
__decorate$
|
|
9308
|
+
__decorate$70([Value(CODING_AGENT_OPTIONS), __metadata$60("design:type", Object)], DefaultAgentSessionFactory.prototype, "options", void 0);
|
|
9309
|
+
__decorate$70([Autowired(ModelRuntimeProvider), __metadata$60("design:type", Object)], DefaultAgentSessionFactory.prototype, "modelRuntimeProvider", void 0);
|
|
9310
|
+
__decorate$70([
|
|
9311
9311
|
Autowired(AgentExtension),
|
|
9312
9312
|
Optional(),
|
|
9313
9313
|
__metadata$60("design:type", Array)
|
|
9314
9314
|
], DefaultAgentSessionFactory.prototype, "extensions", void 0);
|
|
9315
|
-
__decorate$
|
|
9315
|
+
__decorate$70([
|
|
9316
9316
|
Autowired(AgentTool),
|
|
9317
9317
|
Optional(),
|
|
9318
9318
|
__metadata$60("design:type", Array)
|
|
9319
9319
|
], DefaultAgentSessionFactory.prototype, "tools", void 0);
|
|
9320
|
-
__decorate$
|
|
9321
|
-
DefaultAgentSessionFactory = __decorate$
|
|
9320
|
+
__decorate$70([Autowired(Logger), __metadata$60("design:type", Object)], DefaultAgentSessionFactory.prototype, "logger", void 0);
|
|
9321
|
+
DefaultAgentSessionFactory = __decorate$70([Component(AgentSessionFactory)], DefaultAgentSessionFactory);
|
|
9322
9322
|
}));
|
|
9323
9323
|
// ../../ai-packages/ai-coding-agent/esm/node/session/agent-session-manager.js
|
|
9324
|
-
var __decorate$
|
|
9324
|
+
var __decorate$69, __metadata$59, DefaultAgentSessionManager;
|
|
9325
9325
|
var init_agent_session_manager = __esmMin((() => {
|
|
9326
9326
|
init_common$6();
|
|
9327
9327
|
init_coding_agent_protocol();
|
|
9328
9328
|
init_error$3();
|
|
9329
|
-
__decorate$
|
|
9329
|
+
__decorate$69 = function(decorators, target, key, desc) {
|
|
9330
9330
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9331
9331
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9332
9332
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -9388,8 +9388,8 @@ var init_agent_session_manager = __esmMin((() => {
|
|
|
9388
9388
|
});
|
|
9389
9389
|
}
|
|
9390
9390
|
};
|
|
9391
|
-
__decorate$
|
|
9392
|
-
DefaultAgentSessionManager = __decorate$
|
|
9391
|
+
__decorate$69([Autowired(AgentSessionFactory), __metadata$59("design:type", Object)], DefaultAgentSessionManager.prototype, "sessionFactory", void 0);
|
|
9392
|
+
DefaultAgentSessionManager = __decorate$69([Component(AgentSessionManager)], DefaultAgentSessionManager);
|
|
9393
9393
|
}));
|
|
9394
9394
|
// ../../ai-packages/ai-coding-agent/esm/node/session/index.js
|
|
9395
9395
|
var init_session$2 = __esmMin((() => {
|
|
@@ -9453,13 +9453,13 @@ var init_utils$1 = __esmMin((() => {
|
|
|
9453
9453
|
init_url_util();
|
|
9454
9454
|
}));
|
|
9455
9455
|
// ../../packages/web/esm/common/resolver/path-resolver.js
|
|
9456
|
-
var __decorate$
|
|
9456
|
+
var __decorate$68, __metadata$58, PathResolverImpl;
|
|
9457
9457
|
var init_path_resolver = __esmMin((() => {
|
|
9458
9458
|
init_resolver_protocol();
|
|
9459
9459
|
init_common$6();
|
|
9460
9460
|
init_constants$1();
|
|
9461
9461
|
init_utils$1();
|
|
9462
|
-
__decorate$
|
|
9462
|
+
__decorate$68 = function(decorators, target, key, desc) {
|
|
9463
9463
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9464
9464
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9465
9465
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -9483,8 +9483,8 @@ var init_path_resolver = __esmMin((() => {
|
|
|
9483
9483
|
});
|
|
9484
9484
|
}
|
|
9485
9485
|
};
|
|
9486
|
-
__decorate$
|
|
9487
|
-
PathResolverImpl = __decorate$
|
|
9486
|
+
__decorate$68([Value(SERVER_PATH), __metadata$58("design:type", String)], PathResolverImpl.prototype, "serverPath", void 0);
|
|
9487
|
+
PathResolverImpl = __decorate$68([Component(PathResolver)], PathResolverImpl);
|
|
9488
9488
|
}));
|
|
9489
9489
|
// ../../packages/web/esm/common/resolver/index.js
|
|
9490
9490
|
var init_resolver = __esmMin((() => {
|
|
@@ -9500,10 +9500,10 @@ var init_module$7 = __esmMin((() => {
|
|
|
9500
9500
|
module_default$7 = autoBind();
|
|
9501
9501
|
}));
|
|
9502
9502
|
// ../../packages/web/esm/node/middleware/middleware-provider.js
|
|
9503
|
-
var __decorate$
|
|
9503
|
+
var __decorate$67, __metadata$57, __param$3, Middleware, MiddlewareProvider;
|
|
9504
9504
|
var init_middleware_provider = __esmMin((() => {
|
|
9505
9505
|
init_common$6();
|
|
9506
|
-
__decorate$
|
|
9506
|
+
__decorate$67 = function(decorators, target, key, desc) {
|
|
9507
9507
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9508
9508
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9509
9509
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -9533,7 +9533,7 @@ var init_middleware_provider = __esmMin((() => {
|
|
|
9533
9533
|
});
|
|
9534
9534
|
}
|
|
9535
9535
|
};
|
|
9536
|
-
MiddlewareProvider = __decorate$
|
|
9536
|
+
MiddlewareProvider = __decorate$67([
|
|
9537
9537
|
Component(),
|
|
9538
9538
|
__param$3(0, Autowired(Middleware)),
|
|
9539
9539
|
__param$3(0, Optional()),
|
|
@@ -10180,11 +10180,11 @@ var init_pipe_protocol = __esmMin((() => {
|
|
|
10180
10180
|
PipeManager = Symbol("PipeManager");
|
|
10181
10181
|
}));
|
|
10182
10182
|
// ../../packages/web/esm/common/pipe/pipe-manager.js
|
|
10183
|
-
var __decorate$
|
|
10183
|
+
var __decorate$66, __metadata$56, PipeManagerImpl;
|
|
10184
10184
|
var init_pipe_manager = __esmMin((() => {
|
|
10185
10185
|
init_common$6();
|
|
10186
10186
|
init_pipe_protocol();
|
|
10187
|
-
__decorate$
|
|
10187
|
+
__decorate$66 = function(decorators, target, key, desc) {
|
|
10188
10188
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10189
10189
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10190
10190
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10209,15 +10209,15 @@ var init_pipe_manager = __esmMin((() => {
|
|
|
10209
10209
|
});
|
|
10210
10210
|
}
|
|
10211
10211
|
};
|
|
10212
|
-
__decorate$
|
|
10213
|
-
PipeManagerImpl = __decorate$
|
|
10212
|
+
__decorate$66([Autowired(PipeProvider), __metadata$56("design:type", Object)], PipeManagerImpl.prototype, "pipeProvider", void 0);
|
|
10213
|
+
PipeManagerImpl = __decorate$66([Component(PipeManager)], PipeManagerImpl);
|
|
10214
10214
|
}));
|
|
10215
10215
|
// ../../packages/web/esm/common/pipe/pipe-provider.js
|
|
10216
|
-
var __decorate$
|
|
10216
|
+
var __decorate$65, __metadata$55, __param$2, PipeProviderImpl;
|
|
10217
10217
|
var init_pipe_provider = __esmMin((() => {
|
|
10218
10218
|
init_common$6();
|
|
10219
10219
|
init_pipe_protocol();
|
|
10220
|
-
__decorate$
|
|
10220
|
+
__decorate$65 = function(decorators, target, key, desc) {
|
|
10221
10221
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10222
10222
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10223
10223
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10246,7 +10246,7 @@ var init_pipe_provider = __esmMin((() => {
|
|
|
10246
10246
|
});
|
|
10247
10247
|
}
|
|
10248
10248
|
};
|
|
10249
|
-
PipeProviderImpl = __decorate$
|
|
10249
|
+
PipeProviderImpl = __decorate$65([
|
|
10250
10250
|
Component(PipeProvider),
|
|
10251
10251
|
__param$2(0, Autowired(PipeTransform)),
|
|
10252
10252
|
__param$2(0, Optional()),
|
|
@@ -10254,11 +10254,11 @@ var init_pipe_provider = __esmMin((() => {
|
|
|
10254
10254
|
], PipeProviderImpl);
|
|
10255
10255
|
}));
|
|
10256
10256
|
// ../../packages/web/esm/common/pipe/type-conversion-pipe.js
|
|
10257
|
-
var __decorate$
|
|
10257
|
+
var __decorate$64, TYPES$3, TypeConversionPipe;
|
|
10258
10258
|
var init_type_conversion_pipe = __esmMin((() => {
|
|
10259
10259
|
init_common$6();
|
|
10260
10260
|
init_pipe_protocol();
|
|
10261
|
-
__decorate$
|
|
10261
|
+
__decorate$64 = function(decorators, target, key, desc) {
|
|
10262
10262
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10263
10263
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10264
10264
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10291,7 +10291,7 @@ var init_type_conversion_pipe = __esmMin((() => {
|
|
|
10291
10291
|
});
|
|
10292
10292
|
}
|
|
10293
10293
|
};
|
|
10294
|
-
TypeConversionPipe = __decorate$
|
|
10294
|
+
TypeConversionPipe = __decorate$64([Component(PipeTransform)], TypeConversionPipe);
|
|
10295
10295
|
}));
|
|
10296
10296
|
// ../../packages/web/esm/common/pipe/validation-errors.js
|
|
10297
10297
|
var ValidationErrors;
|
|
@@ -10319,7 +10319,7 @@ var init_pipe = __esmMin((() => {
|
|
|
10319
10319
|
init_validation_errors();
|
|
10320
10320
|
}));
|
|
10321
10321
|
// ../../packages/web/esm/node/error/error-handler-provider.js
|
|
10322
|
-
var __decorate$
|
|
10322
|
+
var __decorate$63, __metadata$54, __param$1, AbstractErrorHandler, DefaultErrorHandler, HttpErrorHandler, ValidationErrorsHandler, ErrorHandlerProvider;
|
|
10323
10323
|
var init_error_handler_provider = __esmMin((() => {
|
|
10324
10324
|
init_common$6();
|
|
10325
10325
|
init_error_protocol();
|
|
@@ -10327,7 +10327,7 @@ var init_error_handler_provider = __esmMin((() => {
|
|
|
10327
10327
|
init_error_response_util();
|
|
10328
10328
|
init_common$4();
|
|
10329
10329
|
init_pipe();
|
|
10330
|
-
__decorate$
|
|
10330
|
+
__decorate$63 = function(decorators, target, key, desc) {
|
|
10331
10331
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10332
10332
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10333
10333
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10364,7 +10364,7 @@ var init_error_handler_provider = __esmMin((() => {
|
|
|
10364
10364
|
});
|
|
10365
10365
|
}
|
|
10366
10366
|
};
|
|
10367
|
-
__decorate$
|
|
10367
|
+
__decorate$63([Autowired(ErrorMessageResolver), __metadata$54("design:type", Object)], AbstractErrorHandler.prototype, "errorMessageResolver", void 0);
|
|
10368
10368
|
DefaultErrorHandler = class DefaultErrorHandler extends AbstractErrorHandler {
|
|
10369
10369
|
static {
|
|
10370
10370
|
Object.defineProperty(this, "name", {
|
|
@@ -10373,7 +10373,7 @@ var init_error_handler_provider = __esmMin((() => {
|
|
|
10373
10373
|
});
|
|
10374
10374
|
}
|
|
10375
10375
|
};
|
|
10376
|
-
DefaultErrorHandler = __decorate$
|
|
10376
|
+
DefaultErrorHandler = __decorate$63([Component(ErrorHandler)], DefaultErrorHandler);
|
|
10377
10377
|
HttpErrorHandler = class HttpErrorHandler {
|
|
10378
10378
|
constructor() {
|
|
10379
10379
|
this.priority = 101;
|
|
@@ -10392,8 +10392,8 @@ var init_error_handler_provider = __esmMin((() => {
|
|
|
10392
10392
|
});
|
|
10393
10393
|
}
|
|
10394
10394
|
};
|
|
10395
|
-
__decorate$
|
|
10396
|
-
HttpErrorHandler = __decorate$
|
|
10395
|
+
__decorate$63([Autowired(ErrorMessageResolver), __metadata$54("design:type", Object)], HttpErrorHandler.prototype, "errorMessageResolver", void 0);
|
|
10396
|
+
HttpErrorHandler = __decorate$63([Component(ErrorHandler)], HttpErrorHandler);
|
|
10397
10397
|
ValidationErrorsHandler = class ValidationErrorsHandler {
|
|
10398
10398
|
constructor() {
|
|
10399
10399
|
this.priority = 201;
|
|
@@ -10411,7 +10411,7 @@ var init_error_handler_provider = __esmMin((() => {
|
|
|
10411
10411
|
});
|
|
10412
10412
|
}
|
|
10413
10413
|
};
|
|
10414
|
-
ValidationErrorsHandler = __decorate$
|
|
10414
|
+
ValidationErrorsHandler = __decorate$63([Component(ErrorHandler)], ValidationErrorsHandler);
|
|
10415
10415
|
ErrorHandlerProvider = class ErrorHandlerProvider {
|
|
10416
10416
|
constructor(handlers) {
|
|
10417
10417
|
this.handlers = handlers;
|
|
@@ -10427,7 +10427,7 @@ var init_error_handler_provider = __esmMin((() => {
|
|
|
10427
10427
|
});
|
|
10428
10428
|
}
|
|
10429
10429
|
};
|
|
10430
|
-
ErrorHandlerProvider = __decorate$
|
|
10430
|
+
ErrorHandlerProvider = __decorate$63([
|
|
10431
10431
|
Component(),
|
|
10432
10432
|
__param$1(0, Autowired(ErrorHandler)),
|
|
10433
10433
|
__metadata$54("design:paramtypes", [Array])
|
|
@@ -10446,7 +10446,7 @@ var init_handler_protocol = __esmMin((() => {
|
|
|
10446
10446
|
HandlerMapping = Symbol("HandlerMapping");
|
|
10447
10447
|
}));
|
|
10448
10448
|
// ../../packages/web/esm/node/dispatcher/dispatcher.js
|
|
10449
|
-
var __decorate$
|
|
10449
|
+
var __decorate$62, __metadata$53, DispatcherImpl;
|
|
10450
10450
|
var init_dispatcher$1 = __esmMin((() => {
|
|
10451
10451
|
init_context();
|
|
10452
10452
|
init_middleware();
|
|
@@ -10457,7 +10457,7 @@ var init_dispatcher$1 = __esmMin((() => {
|
|
|
10457
10457
|
init_common$4();
|
|
10458
10458
|
init_http_error();
|
|
10459
10459
|
init_error_response_util();
|
|
10460
|
-
__decorate$
|
|
10460
|
+
__decorate$62 = function(decorators, target, key, desc) {
|
|
10461
10461
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10462
10462
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10463
10463
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10517,12 +10517,12 @@ var init_dispatcher$1 = __esmMin((() => {
|
|
|
10517
10517
|
});
|
|
10518
10518
|
}
|
|
10519
10519
|
};
|
|
10520
|
-
__decorate$
|
|
10521
|
-
__decorate$
|
|
10522
|
-
__decorate$
|
|
10523
|
-
__decorate$
|
|
10524
|
-
__decorate$
|
|
10525
|
-
DispatcherImpl = __decorate$
|
|
10520
|
+
__decorate$62([Autowired(HandlerExecutionChain), __metadata$53("design:type", Object)], DispatcherImpl.prototype, "handlerExecutionChain", void 0);
|
|
10521
|
+
__decorate$62([Autowired(HandlerMapping), __metadata$53("design:type", Object)], DispatcherImpl.prototype, "handlerMapping", void 0);
|
|
10522
|
+
__decorate$62([Autowired(MiddlewareProvider), __metadata$53("design:type", MiddlewareProvider)], DispatcherImpl.prototype, "middlewareProvider", void 0);
|
|
10523
|
+
__decorate$62([Autowired(ErrorHandlerProvider), __metadata$53("design:type", ErrorHandlerProvider)], DispatcherImpl.prototype, "errorHandlerProvider", void 0);
|
|
10524
|
+
__decorate$62([Autowired(Logger), __metadata$53("design:type", Object)], DispatcherImpl.prototype, "logger", void 0);
|
|
10525
|
+
DispatcherImpl = __decorate$62([Component(Dispatcher)], DispatcherImpl);
|
|
10526
10526
|
}));
|
|
10527
10527
|
// ../../packages/web/esm/node/dispatcher/index.js
|
|
10528
10528
|
var init_dispatcher = __esmMin((() => {
|
|
@@ -10555,12 +10555,12 @@ var init_not_found_error = __esmMin((() => {
|
|
|
10555
10555
|
};
|
|
10556
10556
|
}));
|
|
10557
10557
|
// ../../packages/web/esm/node/error/error-message-resolver.js
|
|
10558
|
-
var __decorate$
|
|
10558
|
+
var __decorate$61, __metadata$52, ErrorMessageResolverImpl;
|
|
10559
10559
|
var init_error_message_resolver = __esmMin((() => {
|
|
10560
10560
|
init_common$6();
|
|
10561
10561
|
init_http_error();
|
|
10562
10562
|
init_error_protocol();
|
|
10563
|
-
__decorate$
|
|
10563
|
+
__decorate$61 = function(decorators, target, key, desc) {
|
|
10564
10564
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10565
10565
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10566
10566
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10592,8 +10592,8 @@ var init_error_message_resolver = __esmMin((() => {
|
|
|
10592
10592
|
});
|
|
10593
10593
|
}
|
|
10594
10594
|
};
|
|
10595
|
-
__decorate$
|
|
10596
|
-
ErrorMessageResolverImpl = __decorate$
|
|
10595
|
+
__decorate$61([Value("web.errors.exposeMessages"), __metadata$52("design:type", Boolean)], ErrorMessageResolverImpl.prototype, "exposeMessages", void 0);
|
|
10596
|
+
ErrorMessageResolverImpl = __decorate$61([Component(ErrorMessageResolver)], ErrorMessageResolverImpl);
|
|
10597
10597
|
}));
|
|
10598
10598
|
// ../../packages/web/esm/node/error/index.js
|
|
10599
10599
|
var init_error$2 = __esmMin((() => {
|
|
@@ -10605,13 +10605,13 @@ var init_error$2 = __esmMin((() => {
|
|
|
10605
10605
|
init_error_response_util();
|
|
10606
10606
|
}));
|
|
10607
10607
|
// ../../packages/web/esm/node/handler/handler-execution-chain.js
|
|
10608
|
-
var __decorate$
|
|
10608
|
+
var __decorate$60, HandlerExecutionChainImpl;
|
|
10609
10609
|
var init_handler_execution_chain = __esmMin((() => {
|
|
10610
10610
|
init_middleware();
|
|
10611
10611
|
init_common$6();
|
|
10612
10612
|
init_context();
|
|
10613
10613
|
init_handler_protocol();
|
|
10614
|
-
__decorate$
|
|
10614
|
+
__decorate$60 = function(decorators, target, key, desc) {
|
|
10615
10615
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10616
10616
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10617
10617
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10631,16 +10631,16 @@ var init_handler_execution_chain = __esmMin((() => {
|
|
|
10631
10631
|
});
|
|
10632
10632
|
}
|
|
10633
10633
|
};
|
|
10634
|
-
HandlerExecutionChainImpl = __decorate$
|
|
10634
|
+
HandlerExecutionChainImpl = __decorate$60([Component(HandlerExecutionChain)], HandlerExecutionChainImpl);
|
|
10635
10635
|
}));
|
|
10636
10636
|
// ../../packages/web/esm/node/handler/handler-mapping.js
|
|
10637
|
-
var __decorate$
|
|
10637
|
+
var __decorate$59, __metadata$51, __param, HandlerMappingImpl;
|
|
10638
10638
|
var init_handler_mapping = __esmMin((() => {
|
|
10639
10639
|
init_common$6();
|
|
10640
10640
|
init_handler_protocol();
|
|
10641
10641
|
init_error$2();
|
|
10642
10642
|
init_context();
|
|
10643
|
-
__decorate$
|
|
10643
|
+
__decorate$59 = function(decorators, target, key, desc) {
|
|
10644
10644
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10645
10645
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10646
10646
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10678,7 +10678,7 @@ var init_handler_mapping = __esmMin((() => {
|
|
|
10678
10678
|
});
|
|
10679
10679
|
}
|
|
10680
10680
|
};
|
|
10681
|
-
HandlerMappingImpl = __decorate$
|
|
10681
|
+
HandlerMappingImpl = __decorate$59([
|
|
10682
10682
|
Component(HandlerMapping),
|
|
10683
10683
|
__param(0, Autowired(HandlerAdapter)),
|
|
10684
10684
|
__param(0, Optional()),
|
|
@@ -10700,13 +10700,13 @@ var init_trace_protocol = __esmMin((() => {
|
|
|
10700
10700
|
TraceIdResolver = Symbol("TraceIdResolver");
|
|
10701
10701
|
}));
|
|
10702
10702
|
// ../../packages/web/esm/node/trace/trace-middleware.js
|
|
10703
|
-
var __decorate$
|
|
10703
|
+
var __decorate$58, __metadata$50, TraceMiddleware;
|
|
10704
10704
|
var init_trace_middleware = __esmMin((() => {
|
|
10705
10705
|
init_middleware();
|
|
10706
10706
|
init_context();
|
|
10707
10707
|
init_common$6();
|
|
10708
10708
|
init_trace_protocol();
|
|
10709
|
-
__decorate$
|
|
10709
|
+
__decorate$58 = function(decorators, target, key, desc) {
|
|
10710
10710
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10711
10711
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10712
10712
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10732,17 +10732,17 @@ var init_trace_middleware = __esmMin((() => {
|
|
|
10732
10732
|
});
|
|
10733
10733
|
}
|
|
10734
10734
|
};
|
|
10735
|
-
__decorate$
|
|
10736
|
-
__decorate$
|
|
10737
|
-
TraceMiddleware = __decorate$
|
|
10735
|
+
__decorate$58([Autowired(TraceIdResolver), __metadata$50("design:type", Object)], TraceMiddleware.prototype, "traceIdResolver", void 0);
|
|
10736
|
+
__decorate$58([Value(TRACE_ID_RESPONSE_FIELD), __metadata$50("design:type", String)], TraceMiddleware.prototype, "traceField", void 0);
|
|
10737
|
+
TraceMiddleware = __decorate$58([Component(Middleware)], TraceMiddleware);
|
|
10738
10738
|
}));
|
|
10739
10739
|
// ../../packages/web/esm/node/trace/trace-id-resolver.js
|
|
10740
|
-
var __decorate$
|
|
10740
|
+
var __decorate$57, __metadata$49, TraceIdResolverImpl;
|
|
10741
10741
|
var init_trace_id_resolver = __esmMin((() => {
|
|
10742
10742
|
init_common$6();
|
|
10743
10743
|
init_trace_protocol();
|
|
10744
10744
|
init_context();
|
|
10745
|
-
__decorate$
|
|
10745
|
+
__decorate$57 = function(decorators, target, key, desc) {
|
|
10746
10746
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10747
10747
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10748
10748
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10766,15 +10766,15 @@ var init_trace_id_resolver = __esmMin((() => {
|
|
|
10766
10766
|
});
|
|
10767
10767
|
}
|
|
10768
10768
|
};
|
|
10769
|
-
__decorate$
|
|
10770
|
-
TraceIdResolverImpl = __decorate$
|
|
10769
|
+
__decorate$57([Value(TRACE_ID_REQUEST_FIELD), __metadata$49("design:type", String)], TraceIdResolverImpl.prototype, "traceField", void 0);
|
|
10770
|
+
TraceIdResolverImpl = __decorate$57([Component(TraceIdResolver)], TraceIdResolverImpl);
|
|
10771
10771
|
}));
|
|
10772
10772
|
// ../../packages/web/esm/node/trace/trace-id-provider.js
|
|
10773
|
-
var __decorate$
|
|
10773
|
+
var __decorate$56, TraceIdProviderImpl;
|
|
10774
10774
|
var init_trace_id_provider = __esmMin((() => {
|
|
10775
10775
|
init_common$6();
|
|
10776
10776
|
init_context();
|
|
10777
|
-
__decorate$
|
|
10777
|
+
__decorate$56 = function(decorators, target, key, desc) {
|
|
10778
10778
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10779
10779
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10780
10780
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10791,7 +10791,7 @@ var init_trace_id_provider = __esmMin((() => {
|
|
|
10791
10791
|
});
|
|
10792
10792
|
}
|
|
10793
10793
|
};
|
|
10794
|
-
TraceIdProviderImpl = __decorate$
|
|
10794
|
+
TraceIdProviderImpl = __decorate$56([Component(TraceIdProvider)], TraceIdProviderImpl);
|
|
10795
10795
|
}));
|
|
10796
10796
|
// ../../packages/web/esm/node/trace/index.js
|
|
10797
10797
|
var init_trace = __esmMin((() => {
|
|
@@ -10833,14 +10833,14 @@ function isAllowed(origin, allowed) {
|
|
|
10833
10833
|
if (allowed instanceof RegExp) return allowed.test(origin);
|
|
10834
10834
|
return !!allowed;
|
|
10835
10835
|
}
|
|
10836
|
-
var __decorate$
|
|
10836
|
+
var __decorate$55, __metadata$48, CorsMiddleware;
|
|
10837
10837
|
var init_cors_middleware = __esmMin((() => {
|
|
10838
10838
|
init_middleware();
|
|
10839
10839
|
init_common$6();
|
|
10840
10840
|
init_common$4();
|
|
10841
10841
|
init_common$3();
|
|
10842
10842
|
init_cors_protocol();
|
|
10843
|
-
__decorate$
|
|
10843
|
+
__decorate$55 = function(decorators, target, key, desc) {
|
|
10844
10844
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10845
10845
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10846
10846
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -10918,15 +10918,15 @@ var init_cors_middleware = __esmMin((() => {
|
|
|
10918
10918
|
});
|
|
10919
10919
|
}
|
|
10920
10920
|
};
|
|
10921
|
-
__decorate$
|
|
10922
|
-
__decorate$
|
|
10923
|
-
__decorate$
|
|
10921
|
+
__decorate$55([Value(CORS), __metadata$48("design:type", Object)], CorsMiddleware.prototype, "options", void 0);
|
|
10922
|
+
__decorate$55([Value(ENDPOINT), __metadata$48("design:type", String)], CorsMiddleware.prototype, "endpoint", void 0);
|
|
10923
|
+
__decorate$55([
|
|
10924
10924
|
PostConstruct(),
|
|
10925
10925
|
__metadata$48("design:type", Function),
|
|
10926
10926
|
__metadata$48("design:paramtypes", []),
|
|
10927
10927
|
__metadata$48("design:returntype", void 0)
|
|
10928
10928
|
], CorsMiddleware.prototype, "init", null);
|
|
10929
|
-
CorsMiddleware = __decorate$
|
|
10929
|
+
CorsMiddleware = __decorate$55([Component(Middleware)], CorsMiddleware);
|
|
10930
10930
|
}));
|
|
10931
10931
|
// ../../packages/web/esm/node/cors/index.js
|
|
10932
10932
|
var init_cors = __esmMin((() => {
|
|
@@ -11143,13 +11143,13 @@ var init_http_request = __esmMin((() => {
|
|
|
11143
11143
|
};
|
|
11144
11144
|
}));
|
|
11145
11145
|
// ../../packages/web/esm/node/http/http-middleware.js
|
|
11146
|
-
var __decorate$
|
|
11146
|
+
var __decorate$54, __metadata$47, HttpMiddleware;
|
|
11147
11147
|
var init_http_middleware = __esmMin((() => {
|
|
11148
11148
|
init_middleware();
|
|
11149
11149
|
init_context();
|
|
11150
11150
|
init_common$6();
|
|
11151
11151
|
init_http_protocol();
|
|
11152
|
-
__decorate$
|
|
11152
|
+
__decorate$54 = function(decorators, target, key, desc) {
|
|
11153
11153
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11154
11154
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11155
11155
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11182,15 +11182,15 @@ var init_http_middleware = __esmMin((() => {
|
|
|
11182
11182
|
});
|
|
11183
11183
|
}
|
|
11184
11184
|
};
|
|
11185
|
-
__decorate$
|
|
11186
|
-
HttpMiddleware = __decorate$
|
|
11185
|
+
__decorate$54([Autowired(Logger), __metadata$47("design:type", Object)], HttpMiddleware.prototype, "logger", void 0);
|
|
11186
|
+
HttpMiddleware = __decorate$54([Component(Middleware)], HttpMiddleware);
|
|
11187
11187
|
}));
|
|
11188
11188
|
// ../../packages/web/esm/node/http/server-aware.js
|
|
11189
|
-
var __decorate$
|
|
11189
|
+
var __decorate$53, EmptyServerAware;
|
|
11190
11190
|
var init_server_aware = __esmMin((() => {
|
|
11191
11191
|
init_common$6();
|
|
11192
11192
|
init_http_protocol();
|
|
11193
|
-
__decorate$
|
|
11193
|
+
__decorate$53 = function(decorators, target, key, desc) {
|
|
11194
11194
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11195
11195
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11196
11196
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11205,7 +11205,7 @@ var init_server_aware = __esmMin((() => {
|
|
|
11205
11205
|
});
|
|
11206
11206
|
}
|
|
11207
11207
|
};
|
|
11208
|
-
EmptyServerAware = __decorate$
|
|
11208
|
+
EmptyServerAware = __decorate$53([Component(ServerAware)], EmptyServerAware);
|
|
11209
11209
|
}));
|
|
11210
11210
|
// ../../packages/web/esm/node/http/index.js
|
|
11211
11211
|
var init_http = __esmMin((() => {
|
|
@@ -11325,12 +11325,12 @@ var init_cookies$1 = __esmMin((() => {
|
|
|
11325
11325
|
};
|
|
11326
11326
|
}));
|
|
11327
11327
|
// ../../packages/web/esm/node/cookies/cookies-factory.js
|
|
11328
|
-
var __decorate$
|
|
11328
|
+
var __decorate$52, __metadata$46, CookiesFactory;
|
|
11329
11329
|
var init_cookies_factory = __esmMin((() => {
|
|
11330
11330
|
init_context();
|
|
11331
11331
|
init_common$6();
|
|
11332
11332
|
init_cookies$1();
|
|
11333
|
-
__decorate$
|
|
11333
|
+
__decorate$52 = function(decorators, target, key, desc) {
|
|
11334
11334
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11335
11335
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11336
11336
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11350,19 +11350,19 @@ var init_cookies_factory = __esmMin((() => {
|
|
|
11350
11350
|
});
|
|
11351
11351
|
}
|
|
11352
11352
|
};
|
|
11353
|
-
__decorate$
|
|
11354
|
-
__decorate$
|
|
11355
|
-
CookiesFactory = __decorate$
|
|
11353
|
+
__decorate$52([Value("web.cookies.keys"), __metadata$46("design:type", Array)], CookiesFactory.prototype, "keys", void 0);
|
|
11354
|
+
__decorate$52([Value("web.cookies.secure"), __metadata$46("design:type", Boolean)], CookiesFactory.prototype, "secure", void 0);
|
|
11355
|
+
CookiesFactory = __decorate$52([Component()], CookiesFactory);
|
|
11356
11356
|
}));
|
|
11357
11357
|
// ../../packages/web/esm/node/cookies/cookies-middleware.js
|
|
11358
|
-
var __decorate$
|
|
11358
|
+
var __decorate$51, __metadata$45, CookiesMiddleware;
|
|
11359
11359
|
var init_cookies_middleware = __esmMin((() => {
|
|
11360
11360
|
init_middleware();
|
|
11361
11361
|
init_context();
|
|
11362
11362
|
init_common$6();
|
|
11363
11363
|
init_cookies_factory();
|
|
11364
11364
|
init_cookies_protocol();
|
|
11365
|
-
__decorate$
|
|
11365
|
+
__decorate$51 = function(decorators, target, key, desc) {
|
|
11366
11366
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11367
11367
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11368
11368
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11386,12 +11386,12 @@ var init_cookies_middleware = __esmMin((() => {
|
|
|
11386
11386
|
});
|
|
11387
11387
|
}
|
|
11388
11388
|
};
|
|
11389
|
-
__decorate$
|
|
11390
|
-
CookiesMiddleware = __decorate$
|
|
11391
|
-
})), __decorate$
|
|
11389
|
+
__decorate$51([Autowired(CookiesFactory), __metadata$45("design:type", CookiesFactory)], CookiesMiddleware.prototype, "cookiesFactory", void 0);
|
|
11390
|
+
CookiesMiddleware = __decorate$51([Component(Middleware)], CookiesMiddleware);
|
|
11391
|
+
})), __decorate$50, __metadata$44, DEFAULT_COOKIE_KEYS, CookiesSecurityCheck;
|
|
11392
11392
|
var init_cookies_security_check = __esmMin((() => {
|
|
11393
11393
|
init_common$6();
|
|
11394
|
-
__decorate$
|
|
11394
|
+
__decorate$50 = function(decorators, target, key, desc) {
|
|
11395
11395
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11396
11396
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11397
11397
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11429,8 +11429,8 @@ var init_cookies_security_check = __esmMin((() => {
|
|
|
11429
11429
|
});
|
|
11430
11430
|
}
|
|
11431
11431
|
};
|
|
11432
|
-
__decorate$
|
|
11433
|
-
CookiesSecurityCheck = __decorate$
|
|
11432
|
+
__decorate$50([Value("web.cookies.keys"), __metadata$44("design:type", Array)], CookiesSecurityCheck.prototype, "keys", void 0);
|
|
11433
|
+
CookiesSecurityCheck = __decorate$50([Component(SecurityCheck)], CookiesSecurityCheck);
|
|
11434
11434
|
}));
|
|
11435
11435
|
// ../../packages/web/esm/node/cookies/index.js
|
|
11436
11436
|
var init_cookies = __esmMin((() => {
|
|
@@ -11451,12 +11451,12 @@ var init_session_protocol = __esmMin((() => {
|
|
|
11451
11451
|
SESSION_MIDDLEWARE_PRIORITY = COOKIES_MIDDLEWARE_PRIORITY - 100;
|
|
11452
11452
|
}));
|
|
11453
11453
|
// ../../packages/web/esm/node/session/session-manager.js
|
|
11454
|
-
var __decorate$
|
|
11454
|
+
var __decorate$49, __metadata$43, SessionManagerImpl;
|
|
11455
11455
|
var init_session_manager = __esmMin((() => {
|
|
11456
11456
|
init_session_protocol();
|
|
11457
11457
|
init_common$6();
|
|
11458
11458
|
init_context();
|
|
11459
|
-
__decorate$
|
|
11459
|
+
__decorate$49 = function(decorators, target, key, desc) {
|
|
11460
11460
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11461
11461
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11462
11462
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11498,11 +11498,11 @@ var init_session_manager = __esmMin((() => {
|
|
|
11498
11498
|
});
|
|
11499
11499
|
}
|
|
11500
11500
|
};
|
|
11501
|
-
__decorate$
|
|
11502
|
-
__decorate$
|
|
11503
|
-
__decorate$
|
|
11504
|
-
__decorate$
|
|
11505
|
-
SessionManagerImpl = __decorate$
|
|
11501
|
+
__decorate$49([Value("web.session.sessionIdKey"), __metadata$43("design:type", String)], SessionManagerImpl.prototype, "sessionIdKey", void 0);
|
|
11502
|
+
__decorate$49([Value("web.session"), __metadata$43("design:type", Object)], SessionManagerImpl.prototype, "sessionOptions", void 0);
|
|
11503
|
+
__decorate$49([Autowired(SessionStrategy), __metadata$43("design:type", Object)], SessionManagerImpl.prototype, "sessionStrategy", void 0);
|
|
11504
|
+
__decorate$49([Autowired(SessionStore), __metadata$43("design:type", Object)], SessionManagerImpl.prototype, "sessionStore", void 0);
|
|
11505
|
+
SessionManagerImpl = __decorate$49([Component(SessionManager)], SessionManagerImpl);
|
|
11506
11506
|
}));
|
|
11507
11507
|
// ../../packages/web/esm/node/session/session.js
|
|
11508
11508
|
/** What JSON.stringify leaves out: a key holding it does not make a session changed. */
|
|
@@ -11563,12 +11563,12 @@ var init_session$1 = __esmMin((() => {
|
|
|
11563
11563
|
};
|
|
11564
11564
|
}));
|
|
11565
11565
|
// ../../packages/web/esm/node/session/session-store.js
|
|
11566
|
-
var __decorate$
|
|
11566
|
+
var __decorate$48, __metadata$42, gzip$1, ungzip, CookieSessionStore;
|
|
11567
11567
|
var init_session_store = __esmMin((() => {
|
|
11568
11568
|
init_session_protocol();
|
|
11569
11569
|
init_common$6();
|
|
11570
11570
|
init_context();
|
|
11571
|
-
__decorate$
|
|
11571
|
+
__decorate$48 = function(decorators, target, key, desc) {
|
|
11572
11572
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11573
11573
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11574
11574
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11603,18 +11603,18 @@ var init_session_store = __esmMin((() => {
|
|
|
11603
11603
|
});
|
|
11604
11604
|
}
|
|
11605
11605
|
};
|
|
11606
|
-
__decorate$
|
|
11607
|
-
__decorate$
|
|
11608
|
-
__decorate$
|
|
11609
|
-
CookieSessionStore = __decorate$
|
|
11606
|
+
__decorate$48([Value("web.session"), __metadata$42("design:type", Object)], CookieSessionStore.prototype, "sessionOptions", void 0);
|
|
11607
|
+
__decorate$48([Autowired(SessionStrategy), __metadata$42("design:type", Object)], CookieSessionStore.prototype, "sessionStrategy", void 0);
|
|
11608
|
+
__decorate$48([Autowired(Logger), __metadata$42("design:type", Object)], CookieSessionStore.prototype, "logger", void 0);
|
|
11609
|
+
CookieSessionStore = __decorate$48([Component(SessionStore)], CookieSessionStore);
|
|
11610
11610
|
}));
|
|
11611
11611
|
// ../../packages/web/esm/node/session/session-strategy.js
|
|
11612
|
-
var __decorate$
|
|
11612
|
+
var __decorate$47, __metadata$41, SessionStrategyImpl;
|
|
11613
11613
|
var init_session_strategy = __esmMin((() => {
|
|
11614
11614
|
init_session_protocol();
|
|
11615
11615
|
init_session$1();
|
|
11616
11616
|
init_common$6();
|
|
11617
|
-
__decorate$
|
|
11617
|
+
__decorate$47 = function(decorators, target, key, desc) {
|
|
11618
11618
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11619
11619
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11620
11620
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11647,17 +11647,17 @@ var init_session_strategy = __esmMin((() => {
|
|
|
11647
11647
|
});
|
|
11648
11648
|
}
|
|
11649
11649
|
};
|
|
11650
|
-
__decorate$
|
|
11651
|
-
SessionStrategyImpl = __decorate$
|
|
11650
|
+
__decorate$47([Value("web.session"), __metadata$41("design:type", Object)], SessionStrategyImpl.prototype, "sessionOptions", void 0);
|
|
11651
|
+
SessionStrategyImpl = __decorate$47([Component(SessionStrategy)], SessionStrategyImpl);
|
|
11652
11652
|
}));
|
|
11653
11653
|
// ../../packages/web/esm/node/session/session-middleware.js
|
|
11654
|
-
var __decorate$
|
|
11654
|
+
var __decorate$46, __metadata$40, SessionMiddleware;
|
|
11655
11655
|
var init_session_middleware = __esmMin((() => {
|
|
11656
11656
|
init_middleware();
|
|
11657
11657
|
init_context();
|
|
11658
11658
|
init_common$6();
|
|
11659
11659
|
init_session_protocol();
|
|
11660
|
-
__decorate$
|
|
11660
|
+
__decorate$46 = function(decorators, target, key, desc) {
|
|
11661
11661
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11662
11662
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11663
11663
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11685,9 +11685,9 @@ var init_session_middleware = __esmMin((() => {
|
|
|
11685
11685
|
});
|
|
11686
11686
|
}
|
|
11687
11687
|
};
|
|
11688
|
-
__decorate$
|
|
11689
|
-
__decorate$
|
|
11690
|
-
SessionMiddleware = __decorate$
|
|
11688
|
+
__decorate$46([Autowired(SessionManager), __metadata$40("design:type", Object)], SessionMiddleware.prototype, "sessionManager", void 0);
|
|
11689
|
+
__decorate$46([Value("web.session"), __metadata$40("design:type", Object)], SessionMiddleware.prototype, "sessionOptions", void 0);
|
|
11690
|
+
SessionMiddleware = __decorate$46([Component(Middleware)], SessionMiddleware);
|
|
11691
11691
|
}));
|
|
11692
11692
|
// ../../packages/web/esm/node/session/index.js
|
|
11693
11693
|
var init_session = __esmMin((() => {
|
|
@@ -11792,13 +11792,13 @@ var init_path_pattern = __esmMin((() => {
|
|
|
11792
11792
|
};
|
|
11793
11793
|
}));
|
|
11794
11794
|
// ../../packages/web/esm/node/matcher/request-matcher.js
|
|
11795
|
-
var __decorate$
|
|
11795
|
+
var __decorate$45, __metadata$39, RequestMatcherImpl;
|
|
11796
11796
|
var init_request_matcher = __esmMin((() => {
|
|
11797
11797
|
init_matcher_protocol();
|
|
11798
11798
|
init_context();
|
|
11799
11799
|
init_common$6();
|
|
11800
11800
|
init_path_pattern();
|
|
11801
|
-
__decorate$
|
|
11801
|
+
__decorate$45 = function(decorators, target, key, desc) {
|
|
11802
11802
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11803
11803
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11804
11804
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11832,8 +11832,8 @@ var init_request_matcher = __esmMin((() => {
|
|
|
11832
11832
|
});
|
|
11833
11833
|
}
|
|
11834
11834
|
};
|
|
11835
|
-
__decorate$
|
|
11836
|
-
RequestMatcherImpl = __decorate$
|
|
11835
|
+
__decorate$45([Value("web.route.cacheSize"), __metadata$39("design:type", Number)], RequestMatcherImpl.prototype, "cacheSize", void 0);
|
|
11836
|
+
RequestMatcherImpl = __decorate$45([Component(RequestMatcher)], RequestMatcherImpl);
|
|
11837
11837
|
}));
|
|
11838
11838
|
// ../../packages/web/esm/node/matcher/index.js
|
|
11839
11839
|
var init_matcher = __esmMin((() => {
|
|
@@ -11847,14 +11847,14 @@ var init_redirect_protocol = __esmMin((() => {
|
|
|
11847
11847
|
RedirectStrategy = Symbol("RedirectStrategy");
|
|
11848
11848
|
}));
|
|
11849
11849
|
// ../../packages/web/esm/node/redirect/redirect-strategy.js
|
|
11850
|
-
var __decorate$
|
|
11850
|
+
var __decorate$44, __metadata$38, DefaultRedirectStrategy;
|
|
11851
11851
|
var init_redirect_strategy = __esmMin((() => {
|
|
11852
11852
|
init_redirect_protocol();
|
|
11853
11853
|
init_common$6();
|
|
11854
11854
|
init_context();
|
|
11855
11855
|
init_common$4();
|
|
11856
11856
|
init_resolver();
|
|
11857
|
-
__decorate$
|
|
11857
|
+
__decorate$44 = function(decorators, target, key, desc) {
|
|
11858
11858
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11859
11859
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
11860
11860
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -11876,8 +11876,8 @@ var init_redirect_strategy = __esmMin((() => {
|
|
|
11876
11876
|
});
|
|
11877
11877
|
}
|
|
11878
11878
|
};
|
|
11879
|
-
__decorate$
|
|
11880
|
-
DefaultRedirectStrategy = __decorate$
|
|
11879
|
+
__decorate$44([Autowired(PathResolver), __metadata$38("design:type", Object)], DefaultRedirectStrategy.prototype, "pathResolver", void 0);
|
|
11880
|
+
DefaultRedirectStrategy = __decorate$44([Component(RedirectStrategy)], DefaultRedirectStrategy);
|
|
11881
11881
|
}));
|
|
11882
11882
|
// ../../packages/web/esm/node/redirect/index.js
|
|
11883
11883
|
var init_redirect = __esmMin((() => {
|
|
@@ -12065,13 +12065,13 @@ var init_body_parser = __esmMin((() => {
|
|
|
12065
12065
|
};
|
|
12066
12066
|
}));
|
|
12067
12067
|
// ../../packages/web/esm/node/body/body-middleware.js
|
|
12068
|
-
var __decorate$
|
|
12068
|
+
var __decorate$43, __metadata$37, BodyMiddleware;
|
|
12069
12069
|
var init_body_middleware = __esmMin((() => {
|
|
12070
12070
|
init_middleware();
|
|
12071
12071
|
init_common$6();
|
|
12072
12072
|
init_body_protocol();
|
|
12073
12073
|
init_body_parser();
|
|
12074
|
-
__decorate$
|
|
12074
|
+
__decorate$43 = function(decorators, target, key, desc) {
|
|
12075
12075
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12076
12076
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12077
12077
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -12098,14 +12098,14 @@ var init_body_middleware = __esmMin((() => {
|
|
|
12098
12098
|
});
|
|
12099
12099
|
}
|
|
12100
12100
|
};
|
|
12101
|
-
__decorate$
|
|
12102
|
-
__decorate$
|
|
12101
|
+
__decorate$43([Value("web.body"), __metadata$37("design:type", Object)], BodyMiddleware.prototype, "options", void 0);
|
|
12102
|
+
__decorate$43([
|
|
12103
12103
|
PostConstruct(),
|
|
12104
12104
|
__metadata$37("design:type", Function),
|
|
12105
12105
|
__metadata$37("design:paramtypes", []),
|
|
12106
12106
|
__metadata$37("design:returntype", void 0)
|
|
12107
12107
|
], BodyMiddleware.prototype, "init", null);
|
|
12108
|
-
BodyMiddleware = __decorate$
|
|
12108
|
+
BodyMiddleware = __decorate$43([Component(Middleware)], BodyMiddleware);
|
|
12109
12109
|
}));
|
|
12110
12110
|
// ../../packages/web/esm/node/body/index.js
|
|
12111
12111
|
var init_body = __esmMin((() => {
|
|
@@ -12144,11 +12144,11 @@ var init_health_protocol = __esmMin((() => {
|
|
|
12144
12144
|
})(HealthStatus || (HealthStatus = {}));
|
|
12145
12145
|
}));
|
|
12146
12146
|
// ../../packages/web/esm/node/health/health-indicator.js
|
|
12147
|
-
var __decorate$
|
|
12147
|
+
var __decorate$42, PingHealthIndicator;
|
|
12148
12148
|
var init_health_indicator = __esmMin((() => {
|
|
12149
12149
|
init_common$6();
|
|
12150
12150
|
init_health_protocol();
|
|
12151
|
-
__decorate$
|
|
12151
|
+
__decorate$42 = function(decorators, target, key, desc) {
|
|
12152
12152
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12153
12153
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12154
12154
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -12165,7 +12165,7 @@ var init_health_indicator = __esmMin((() => {
|
|
|
12165
12165
|
});
|
|
12166
12166
|
}
|
|
12167
12167
|
};
|
|
12168
|
-
PingHealthIndicator = __decorate$
|
|
12168
|
+
PingHealthIndicator = __decorate$42([Component(HealthIndicator)], PingHealthIndicator);
|
|
12169
12169
|
}));
|
|
12170
12170
|
// ../../packages/web/esm/node/health/health-errors.js
|
|
12171
12171
|
var HealthNotFoundError;
|
|
@@ -12185,12 +12185,12 @@ var init_health_errors = __esmMin((() => {
|
|
|
12185
12185
|
};
|
|
12186
12186
|
}));
|
|
12187
12187
|
// ../../packages/web/esm/node/health/health-executor.js
|
|
12188
|
-
var __decorate$
|
|
12188
|
+
var __decorate$41, __metadata$36, HealthExecutorImpl;
|
|
12189
12189
|
var init_health_executor = __esmMin((() => {
|
|
12190
12190
|
init_common$6();
|
|
12191
12191
|
init_health_errors();
|
|
12192
12192
|
init_health_protocol();
|
|
12193
|
-
__decorate$
|
|
12193
|
+
__decorate$41 = function(decorators, target, key, desc) {
|
|
12194
12194
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12195
12195
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12196
12196
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -12234,12 +12234,12 @@ var init_health_executor = __esmMin((() => {
|
|
|
12234
12234
|
});
|
|
12235
12235
|
}
|
|
12236
12236
|
};
|
|
12237
|
-
__decorate$
|
|
12238
|
-
__decorate$
|
|
12239
|
-
HealthExecutorImpl = __decorate$
|
|
12237
|
+
__decorate$41([Autowired(HealthIndicator), __metadata$36("design:type", Array)], HealthExecutorImpl.prototype, "healthIndicators", void 0);
|
|
12238
|
+
__decorate$41([Autowired(HealthStatusAggregator), __metadata$36("design:type", Object)], HealthExecutorImpl.prototype, "healthStatusAggregator", void 0);
|
|
12239
|
+
HealthExecutorImpl = __decorate$41([Component(HealthExecutor)], HealthExecutorImpl);
|
|
12240
12240
|
}));
|
|
12241
12241
|
// ../../packages/web/esm/node/health/health-middleware.js
|
|
12242
|
-
var __decorate$
|
|
12242
|
+
var __decorate$40, __metadata$35, HealthMiddleware;
|
|
12243
12243
|
var init_health_middleware = __esmMin((() => {
|
|
12244
12244
|
init_middleware();
|
|
12245
12245
|
init_common$6();
|
|
@@ -12248,7 +12248,7 @@ var init_health_middleware = __esmMin((() => {
|
|
|
12248
12248
|
init_matcher();
|
|
12249
12249
|
init_resolver();
|
|
12250
12250
|
init_common$4();
|
|
12251
|
-
__decorate$
|
|
12251
|
+
__decorate$40 = function(decorators, target, key, desc) {
|
|
12252
12252
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12253
12253
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12254
12254
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -12290,18 +12290,18 @@ var init_health_middleware = __esmMin((() => {
|
|
|
12290
12290
|
});
|
|
12291
12291
|
}
|
|
12292
12292
|
};
|
|
12293
|
-
__decorate$
|
|
12294
|
-
__decorate$
|
|
12295
|
-
__decorate$
|
|
12296
|
-
__decorate$
|
|
12297
|
-
HealthMiddleware = __decorate$
|
|
12293
|
+
__decorate$40([Autowired(HealthExecutor), __metadata$35("design:type", Object)], HealthMiddleware.prototype, "healthExecutor", void 0);
|
|
12294
|
+
__decorate$40([Autowired(RequestMatcher), __metadata$35("design:type", Object)], HealthMiddleware.prototype, "requestMatcher", void 0);
|
|
12295
|
+
__decorate$40([Autowired(PathResolver), __metadata$35("design:type", Object)], HealthMiddleware.prototype, "pathResolver", void 0);
|
|
12296
|
+
__decorate$40([Value("web.health"), __metadata$35("design:type", Object)], HealthMiddleware.prototype, "healthOptions", void 0);
|
|
12297
|
+
HealthMiddleware = __decorate$40([Component(Middleware)], HealthMiddleware);
|
|
12298
12298
|
}));
|
|
12299
12299
|
// ../../packages/web/esm/node/health/health-status-aggregator.js
|
|
12300
|
-
var __decorate$
|
|
12300
|
+
var __decorate$39, defaultOrder, HealthStatusAggregatorImpl;
|
|
12301
12301
|
var init_health_status_aggregator = __esmMin((() => {
|
|
12302
12302
|
init_common$6();
|
|
12303
12303
|
init_health_protocol();
|
|
12304
|
-
__decorate$
|
|
12304
|
+
__decorate$39 = function(decorators, target, key, desc) {
|
|
12305
12305
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12306
12306
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12307
12307
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -12326,7 +12326,7 @@ var init_health_status_aggregator = __esmMin((() => {
|
|
|
12326
12326
|
});
|
|
12327
12327
|
}
|
|
12328
12328
|
};
|
|
12329
|
-
HealthStatusAggregatorImpl = __decorate$
|
|
12329
|
+
HealthStatusAggregatorImpl = __decorate$39([Component(HealthStatusAggregator)], HealthStatusAggregatorImpl);
|
|
12330
12330
|
}));
|
|
12331
12331
|
// ../../packages/web/esm/node/health/index.js
|
|
12332
12332
|
var init_health = __esmMin((() => {
|
|
@@ -12946,13 +12946,13 @@ var init_rpc_method_util = __esmMin((() => {
|
|
|
12946
12946
|
})(RpcMethodUtil || (RpcMethodUtil = {}));
|
|
12947
12947
|
}));
|
|
12948
12948
|
// ../../packages/rpc/esm/common/client/rpc-client-registry.js
|
|
12949
|
-
var __decorate$
|
|
12949
|
+
var __decorate$38, __metadata$34, RpcClientRegistry, RpcClientRegistryImpl;
|
|
12950
12950
|
var init_rpc_client_registry = __esmMin((() => {
|
|
12951
12951
|
init_common$6();
|
|
12952
12952
|
init_protocol();
|
|
12953
12953
|
init_rpc_method_util();
|
|
12954
12954
|
init_client_protocol();
|
|
12955
|
-
__decorate$
|
|
12955
|
+
__decorate$38 = function(decorators, target, key, desc) {
|
|
12956
12956
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12957
12957
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12958
12958
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -12990,12 +12990,12 @@ var init_rpc_client_registry = __esmMin((() => {
|
|
|
12990
12990
|
});
|
|
12991
12991
|
}
|
|
12992
12992
|
};
|
|
12993
|
-
__decorate$
|
|
12993
|
+
__decorate$38([
|
|
12994
12994
|
Autowired(RPC_CLIENT),
|
|
12995
12995
|
Optional(),
|
|
12996
12996
|
__metadata$34("design:type", Array)
|
|
12997
12997
|
], RpcClientRegistryImpl.prototype, "clients", void 0);
|
|
12998
|
-
RpcClientRegistryImpl = __decorate$
|
|
12998
|
+
RpcClientRegistryImpl = __decorate$38([Component(RpcClientRegistry)], RpcClientRegistryImpl);
|
|
12999
12999
|
}));
|
|
13000
13000
|
// ../../packages/rpc/esm/common/endpoint/endpoint-protocol.js
|
|
13001
13001
|
var EndpointResolver;
|
|
@@ -13008,14 +13008,14 @@ var init_constants = __esmMin((() => {
|
|
|
13008
13008
|
RPC_PATH = "rpc.path";
|
|
13009
13009
|
}));
|
|
13010
13010
|
// ../../packages/rpc/esm/common/endpoint/endpoint-resolver.js
|
|
13011
|
-
var __decorate$
|
|
13011
|
+
var __decorate$37, __metadata$33, EndpointResolverImpl;
|
|
13012
13012
|
var init_endpoint_resolver = __esmMin((() => {
|
|
13013
13013
|
init_common$6();
|
|
13014
13014
|
init_constants();
|
|
13015
13015
|
init_common$3();
|
|
13016
13016
|
init_error();
|
|
13017
13017
|
init_endpoint_protocol();
|
|
13018
|
-
__decorate$
|
|
13018
|
+
__decorate$37 = function(decorators, target, key, desc) {
|
|
13019
13019
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13020
13020
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13021
13021
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -13046,12 +13046,12 @@ var init_endpoint_resolver = __esmMin((() => {
|
|
|
13046
13046
|
});
|
|
13047
13047
|
}
|
|
13048
13048
|
};
|
|
13049
|
-
__decorate$
|
|
13050
|
-
__decorate$
|
|
13051
|
-
__decorate$
|
|
13052
|
-
__decorate$
|
|
13053
|
-
__decorate$
|
|
13054
|
-
EndpointResolverImpl = __decorate$
|
|
13049
|
+
__decorate$37([Value("rpc.endpoint"), __metadata$33("design:type", Object)], EndpointResolverImpl.prototype, "endpoint", void 0);
|
|
13050
|
+
__decorate$37([Value("rpc.defaultEndpoint"), __metadata$33("design:type", String)], EndpointResolverImpl.prototype, "defaultEndpoint", void 0);
|
|
13051
|
+
__decorate$37([Value(RPC_PATH), __metadata$33("design:type", String)], EndpointResolverImpl.prototype, "rpcPath", void 0);
|
|
13052
|
+
__decorate$37([Value("rpc.websocket.endpoint"), __metadata$33("design:type", String)], EndpointResolverImpl.prototype, "websocketEndpoint", void 0);
|
|
13053
|
+
__decorate$37([Autowired(PathResolver), __metadata$33("design:type", Object)], EndpointResolverImpl.prototype, "pathResolver", void 0);
|
|
13054
|
+
EndpointResolverImpl = __decorate$37([Component(EndpointResolver)], EndpointResolverImpl);
|
|
13055
13055
|
}));
|
|
13056
13056
|
// ../../packages/rpc/esm/common/endpoint/index.js
|
|
13057
13057
|
var init_endpoint = __esmMin((() => {
|
|
@@ -13064,11 +13064,11 @@ var init_processor_protocol = __esmMin((() => {
|
|
|
13064
13064
|
ClientConfigProcessor = Symbol("ClientConfigProcessor");
|
|
13065
13065
|
}));
|
|
13066
13066
|
// ../../packages/rpc/esm/common/processor/client-config-processor.js
|
|
13067
|
-
var __decorate$
|
|
13067
|
+
var __decorate$36, NoOpClientConfigProcessor;
|
|
13068
13068
|
var init_client_config_processor = __esmMin((() => {
|
|
13069
13069
|
init_common$6();
|
|
13070
13070
|
init_processor_protocol();
|
|
13071
|
-
__decorate$
|
|
13071
|
+
__decorate$36 = function(decorators, target, key, desc) {
|
|
13072
13072
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13073
13073
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13074
13074
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -13083,7 +13083,7 @@ var init_client_config_processor = __esmMin((() => {
|
|
|
13083
13083
|
});
|
|
13084
13084
|
}
|
|
13085
13085
|
};
|
|
13086
|
-
NoOpClientConfigProcessor = __decorate$
|
|
13086
|
+
NoOpClientConfigProcessor = __decorate$36([Component(ClientConfigProcessor)], NoOpClientConfigProcessor);
|
|
13087
13087
|
}));
|
|
13088
13088
|
// ../../packages/rpc/esm/common/processor/index.js
|
|
13089
13089
|
var init_processor = __esmMin((() => {
|
|
@@ -13091,7 +13091,7 @@ var init_processor = __esmMin((() => {
|
|
|
13091
13091
|
init_client_config_processor();
|
|
13092
13092
|
}));
|
|
13093
13093
|
// ../../packages/rpc/esm/common/transport/transport-provider.js
|
|
13094
|
-
var __decorate$
|
|
13094
|
+
var __decorate$35, __metadata$32, RpcTransportProviderImpl;
|
|
13095
13095
|
var init_transport_provider = __esmMin((() => {
|
|
13096
13096
|
init_common$6();
|
|
13097
13097
|
init_common$4();
|
|
@@ -13101,7 +13101,7 @@ var init_transport_provider = __esmMin((() => {
|
|
|
13101
13101
|
init_http_transport();
|
|
13102
13102
|
init_transport_protocol();
|
|
13103
13103
|
init_websocket_transport();
|
|
13104
|
-
__decorate$
|
|
13104
|
+
__decorate$35 = function(decorators, target, key, desc) {
|
|
13105
13105
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13106
13106
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13107
13107
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -13152,16 +13152,16 @@ var init_transport_provider = __esmMin((() => {
|
|
|
13152
13152
|
});
|
|
13153
13153
|
}
|
|
13154
13154
|
};
|
|
13155
|
-
__decorate$
|
|
13156
|
-
__decorate$
|
|
13157
|
-
__decorate$
|
|
13158
|
-
__decorate$
|
|
13159
|
-
__decorate$
|
|
13160
|
-
__decorate$
|
|
13161
|
-
__decorate$
|
|
13162
|
-
__decorate$
|
|
13163
|
-
__decorate$
|
|
13164
|
-
RpcTransportProviderImpl = __decorate$
|
|
13155
|
+
__decorate$35([Value("rpc.transport"), __metadata$32("design:type", String)], RpcTransportProviderImpl.prototype, "kind", void 0);
|
|
13156
|
+
__decorate$35([Value("rpc.endpoint"), __metadata$32("design:type", Object)], RpcTransportProviderImpl.prototype, "endpoints", void 0);
|
|
13157
|
+
__decorate$35([Value("rpc.client.config"), __metadata$32("design:type", Object)], RpcTransportProviderImpl.prototype, "clientConfig", void 0);
|
|
13158
|
+
__decorate$35([Value("rpc.merge"), __metadata$32("design:type", Object)], RpcTransportProviderImpl.prototype, "merge", void 0);
|
|
13159
|
+
__decorate$35([Value("rpc.websocket"), __metadata$32("design:type", Object)], RpcTransportProviderImpl.prototype, "websocketOptions", void 0);
|
|
13160
|
+
__decorate$35([Autowired(EndpointResolver), __metadata$32("design:type", Object)], RpcTransportProviderImpl.prototype, "endpointResolver", void 0);
|
|
13161
|
+
__decorate$35([Autowired(RestOperations), __metadata$32("design:type", Object)], RpcTransportProviderImpl.prototype, "restOperations", void 0);
|
|
13162
|
+
__decorate$35([Autowired(ClientConfigProcessor), __metadata$32("design:type", Object)], RpcTransportProviderImpl.prototype, "clientConfigProcessor", void 0);
|
|
13163
|
+
__decorate$35([Autowired(RpcClientRegistry), __metadata$32("design:type", Object)], RpcTransportProviderImpl.prototype, "clients", void 0);
|
|
13164
|
+
RpcTransportProviderImpl = __decorate$35([Component([RpcTransportProvider, ApplicationLifecycle])], RpcTransportProviderImpl);
|
|
13165
13165
|
}));
|
|
13166
13166
|
// ../../packages/rpc/esm/common/transport/index.js
|
|
13167
13167
|
var init_transport = __esmMin((() => {
|
|
@@ -13286,11 +13286,11 @@ var init_rpc_context = __esmMin((() => {
|
|
|
13286
13286
|
})(RpcContext || (RpcContext = {}));
|
|
13287
13287
|
}));
|
|
13288
13288
|
// ../../packages/rpc/esm/node/connection/rpc-connection-manager.js
|
|
13289
|
-
var __decorate$
|
|
13289
|
+
var __decorate$34, RpcConnectionManagerImpl;
|
|
13290
13290
|
var init_rpc_connection_manager = __esmMin((() => {
|
|
13291
13291
|
init_common$6();
|
|
13292
13292
|
init_connection_protocol();
|
|
13293
|
-
__decorate$
|
|
13293
|
+
__decorate$34 = function(decorators, target, key, desc) {
|
|
13294
13294
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13295
13295
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13296
13296
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -13322,7 +13322,7 @@ var init_rpc_connection_manager = __esmMin((() => {
|
|
|
13322
13322
|
});
|
|
13323
13323
|
}
|
|
13324
13324
|
};
|
|
13325
|
-
RpcConnectionManagerImpl = __decorate$
|
|
13325
|
+
RpcConnectionManagerImpl = __decorate$34([Component(RpcConnectionManager)], RpcConnectionManagerImpl);
|
|
13326
13326
|
}));
|
|
13327
13327
|
// ../../packages/rpc/esm/node/connection/rpc-connection.js
|
|
13328
13328
|
var seq, RpcConnectionImpl;
|
|
@@ -13442,13 +13442,13 @@ var init_connection = __esmMin((() => {
|
|
|
13442
13442
|
init_rpc_connection();
|
|
13443
13443
|
}));
|
|
13444
13444
|
// ../../packages/rpc/esm/node/server/rpc-invoker.js
|
|
13445
|
-
var __decorate$
|
|
13445
|
+
var __decorate$33, __metadata$31, RpcInvoker, RpcInvokerImpl;
|
|
13446
13446
|
var init_rpc_invoker = __esmMin((() => {
|
|
13447
13447
|
init_common$6();
|
|
13448
13448
|
init_common$3();
|
|
13449
13449
|
init_node$6();
|
|
13450
13450
|
init_common$2();
|
|
13451
|
-
__decorate$
|
|
13451
|
+
__decorate$33 = function(decorators, target, key, desc) {
|
|
13452
13452
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13453
13453
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13454
13454
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -13545,19 +13545,19 @@ var init_rpc_invoker = __esmMin((() => {
|
|
|
13545
13545
|
});
|
|
13546
13546
|
}
|
|
13547
13547
|
};
|
|
13548
|
-
__decorate$
|
|
13548
|
+
__decorate$33([
|
|
13549
13549
|
Autowired(RPC_SERVICE),
|
|
13550
13550
|
Optional(),
|
|
13551
13551
|
__metadata$31("design:type", Array)
|
|
13552
13552
|
], RpcInvokerImpl.prototype, "metadata", void 0);
|
|
13553
|
-
__decorate$
|
|
13554
|
-
__decorate$
|
|
13555
|
-
__decorate$
|
|
13556
|
-
__decorate$
|
|
13557
|
-
RpcInvokerImpl = __decorate$
|
|
13553
|
+
__decorate$33([Autowired(PipeManager), __metadata$31("design:type", Object)], RpcInvokerImpl.prototype, "pipeManager", void 0);
|
|
13554
|
+
__decorate$33([Autowired(ErrorMessageResolver), __metadata$31("design:type", Object)], RpcInvokerImpl.prototype, "errorMessageResolver", void 0);
|
|
13555
|
+
__decorate$33([Autowired(Logger), __metadata$31("design:type", Object)], RpcInvokerImpl.prototype, "logger", void 0);
|
|
13556
|
+
__decorate$33([Autowired(Container), __metadata$31("design:type", Container)], RpcInvokerImpl.prototype, "container", void 0);
|
|
13557
|
+
RpcInvokerImpl = __decorate$33([Component(RpcInvoker)], RpcInvokerImpl);
|
|
13558
13558
|
}));
|
|
13559
13559
|
// ../../packages/rpc/esm/node/server/rpc-handler-adapter.js
|
|
13560
|
-
var __decorate$
|
|
13560
|
+
var __decorate$32, __metadata$30, RPC_HANDLER_ADAPTER_PRIORITY, RpcHandlerAdapter;
|
|
13561
13561
|
var init_rpc_handler_adapter = __esmMin((() => {
|
|
13562
13562
|
init_common$6();
|
|
13563
13563
|
init_common$4();
|
|
@@ -13565,7 +13565,7 @@ var init_rpc_handler_adapter = __esmMin((() => {
|
|
|
13565
13565
|
init_node$6();
|
|
13566
13566
|
init_common$2();
|
|
13567
13567
|
init_rpc_invoker();
|
|
13568
|
-
__decorate$
|
|
13568
|
+
__decorate$32 = function(decorators, target, key, desc) {
|
|
13569
13569
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13570
13570
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
13571
13571
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -13615,10 +13615,10 @@ var init_rpc_handler_adapter = __esmMin((() => {
|
|
|
13615
13615
|
});
|
|
13616
13616
|
}
|
|
13617
13617
|
};
|
|
13618
|
-
__decorate$
|
|
13619
|
-
__decorate$
|
|
13620
|
-
__decorate$
|
|
13621
|
-
RpcHandlerAdapter = __decorate$
|
|
13618
|
+
__decorate$32([Autowired(RpcInvoker), __metadata$30("design:type", Object)], RpcHandlerAdapter.prototype, "invoker", void 0);
|
|
13619
|
+
__decorate$32([Autowired(PathResolver), __metadata$30("design:type", Object)], RpcHandlerAdapter.prototype, "pathResolver", void 0);
|
|
13620
|
+
__decorate$32([Value(RPC_PATH), __metadata$30("design:type", String)], RpcHandlerAdapter.prototype, "rpcPath", void 0);
|
|
13621
|
+
RpcHandlerAdapter = __decorate$32([Component(HandlerAdapter)], RpcHandlerAdapter);
|
|
13622
13622
|
}));
|
|
13623
13623
|
// ../../packages/rpc/esm/node/server/index.js
|
|
13624
13624
|
var init_server = __esmMin((() => {
|
|
@@ -13626,7 +13626,7 @@ var init_server = __esmMin((() => {
|
|
|
13626
13626
|
init_rpc_handler_adapter();
|
|
13627
13627
|
}));
|
|
13628
13628
|
// ../../packages/rpc/esm/node/websocket/websocket-frames.js
|
|
13629
|
-
var WebSocketProtocolError, WebSocketFrames, WebSocketFrameParser;
|
|
13629
|
+
var WebSocketProtocolError, WebSocketFrames, WebSocketFrameParser, TAIL, WebSocketDeflate;
|
|
13630
13630
|
var init_websocket_frames = __esmMin((() => {
|
|
13631
13631
|
WebSocketProtocolError = class extends Error {
|
|
13632
13632
|
constructor(code, message) {
|
|
@@ -13647,11 +13647,12 @@ var init_websocket_frames = __esmMin((() => {
|
|
|
13647
13647
|
WebSocketFrames.CLOSE = 8;
|
|
13648
13648
|
WebSocketFrames.PING = 9;
|
|
13649
13649
|
WebSocketFrames.PONG = 10;
|
|
13650
|
-
|
|
13650
|
+
/** A frame of one whole message; `compressed` sets RSV1, for a payload of `WebSocketDeflate.compress`. */
|
|
13651
|
+
function encode(opcode, payload = Buffer.alloc(0), compressed = false) {
|
|
13651
13652
|
const length = payload.length;
|
|
13652
13653
|
const size = length < 126 ? 2 : length < 65536 ? 4 : 10;
|
|
13653
13654
|
const header = Buffer.alloc(size);
|
|
13654
|
-
header[0] = 128 | opcode;
|
|
13655
|
+
header[0] = 128 | (compressed ? 64 : 0) | opcode;
|
|
13655
13656
|
if (length < 126) header[1] = length;
|
|
13656
13657
|
else if (length < 65536) {
|
|
13657
13658
|
header[1] = 126;
|
|
@@ -13678,8 +13679,10 @@ var init_websocket_frames = __esmMin((() => {
|
|
|
13678
13679
|
WebSocketFrames.isControl = isControl;
|
|
13679
13680
|
})(WebSocketFrames || (WebSocketFrames = {}));
|
|
13680
13681
|
WebSocketFrameParser = class {
|
|
13681
|
-
|
|
13682
|
+
/** With `deflate` (negotiated permessage-deflate), RSV1 may be set. */
|
|
13683
|
+
constructor(maxPayload, deflate = false) {
|
|
13682
13684
|
this.maxPayload = maxPayload;
|
|
13685
|
+
this.deflate = deflate;
|
|
13683
13686
|
this.buffer = Buffer.alloc(0);
|
|
13684
13687
|
}
|
|
13685
13688
|
/** The frames completed by `chunk`; throws a {@link WebSocketProtocolError} on frames the protocol forbids. */
|
|
@@ -13694,7 +13697,8 @@ var init_websocket_frames = __esmMin((() => {
|
|
|
13694
13697
|
if (buffer.length < 2) return;
|
|
13695
13698
|
const fin = (buffer[0] & 128) !== 0;
|
|
13696
13699
|
const opcode = buffer[0] & 15;
|
|
13697
|
-
|
|
13700
|
+
const compressed = (buffer[0] & 64) !== 0;
|
|
13701
|
+
if ((buffer[0] & (this.deflate ? 48 : 112)) !== 0) throw new WebSocketProtocolError(1002, "Reserved bits are set.");
|
|
13698
13702
|
if (![
|
|
13699
13703
|
0,
|
|
13700
13704
|
1,
|
|
@@ -13717,7 +13721,8 @@ var init_websocket_frames = __esmMin((() => {
|
|
|
13717
13721
|
length = high * 4294967296 + buffer.readUInt32BE(6);
|
|
13718
13722
|
offset = 10;
|
|
13719
13723
|
}
|
|
13720
|
-
if (WebSocketFrames.isControl(opcode) && (length > 125 || !fin)) throw new WebSocketProtocolError(1002, "Control frames are at most 125 bytes and not
|
|
13724
|
+
if (WebSocketFrames.isControl(opcode) && (length > 125 || !fin || compressed)) throw new WebSocketProtocolError(1002, "Control frames are at most 125 bytes, not fragmented and not compressed.");
|
|
13725
|
+
if (compressed && opcode === WebSocketFrames.CONTINUATION) throw new WebSocketProtocolError(1002, "Only the first frame of a message says it is compressed.");
|
|
13721
13726
|
if (length > this.maxPayload) throw new WebSocketProtocolError(1009, `The message is larger than ${this.maxPayload} bytes.`);
|
|
13722
13727
|
if (buffer.length < offset + 4 + length) return;
|
|
13723
13728
|
const mask = buffer.subarray(offset, offset + 4);
|
|
@@ -13726,6 +13731,7 @@ var init_websocket_frames = __esmMin((() => {
|
|
|
13726
13731
|
this.buffer = buffer.subarray(offset + 4 + length);
|
|
13727
13732
|
return {
|
|
13728
13733
|
fin,
|
|
13734
|
+
compressed,
|
|
13729
13735
|
opcode,
|
|
13730
13736
|
payload
|
|
13731
13737
|
};
|
|
@@ -13737,6 +13743,54 @@ var init_websocket_frames = __esmMin((() => {
|
|
|
13737
13743
|
});
|
|
13738
13744
|
}
|
|
13739
13745
|
};
|
|
13746
|
+
TAIL = Buffer.from([
|
|
13747
|
+
0,
|
|
13748
|
+
0,
|
|
13749
|
+
255,
|
|
13750
|
+
255
|
|
13751
|
+
]);
|
|
13752
|
+
(function(WebSocketDeflate) {
|
|
13753
|
+
/** What the server answers in `Sec-WebSocket-Extensions` to an offer it takes. */
|
|
13754
|
+
WebSocketDeflate.RESPONSE = "permessage-deflate; server_no_context_takeover; client_no_context_takeover";
|
|
13755
|
+
/** Smaller messages go as they are: a frame of them is about as small compressed. */
|
|
13756
|
+
WebSocketDeflate.MIN_BYTES = 1024;
|
|
13757
|
+
/**
|
|
13758
|
+
* Whether the client offers permessage-deflate as this server does it: an offer that limits the
|
|
13759
|
+
* server's window (`server_max_window_bits` under 15) is not taken, the others are.
|
|
13760
|
+
*/
|
|
13761
|
+
function offered(header) {
|
|
13762
|
+
return (Array.isArray(header) ? header.join(",") : header !== null && header !== void 0 ? header : "").split(",").some((offer) => {
|
|
13763
|
+
const [name, ...params] = offer.split(";").map((part) => part.trim().toLowerCase());
|
|
13764
|
+
if (name !== "permessage-deflate") return false;
|
|
13765
|
+
return params.every((param) => {
|
|
13766
|
+
const [key, value] = param.split("=").map((part) => part.trim().replace(/^"|"$/g, ""));
|
|
13767
|
+
return key !== "server_max_window_bits" || value === "15";
|
|
13768
|
+
});
|
|
13769
|
+
});
|
|
13770
|
+
}
|
|
13771
|
+
WebSocketDeflate.offered = offered;
|
|
13772
|
+
function compress(data) {
|
|
13773
|
+
const deflated = deflateRawSync(data, {
|
|
13774
|
+
level: 3,
|
|
13775
|
+
finishFlush: constants.Z_SYNC_FLUSH
|
|
13776
|
+
});
|
|
13777
|
+
return deflated.subarray(0, deflated.length - TAIL.length);
|
|
13778
|
+
}
|
|
13779
|
+
WebSocketDeflate.compress = compress;
|
|
13780
|
+
/** Throws a {@link WebSocketProtocolError} for what does not inflate, or inflates past `maxBytes`. */
|
|
13781
|
+
function decompress(data, maxBytes) {
|
|
13782
|
+
try {
|
|
13783
|
+
return inflateRawSync(Buffer.concat([data, TAIL]), {
|
|
13784
|
+
maxOutputLength: maxBytes,
|
|
13785
|
+
finishFlush: constants.Z_SYNC_FLUSH
|
|
13786
|
+
});
|
|
13787
|
+
} catch (error) {
|
|
13788
|
+
if (error.code === "ERR_BUFFER_TOO_LARGE") throw new WebSocketProtocolError(1009, `The message is larger than ${maxBytes} bytes.`);
|
|
13789
|
+
throw new WebSocketProtocolError(1007, "A compressed message does not inflate.");
|
|
13790
|
+
}
|
|
13791
|
+
}
|
|
13792
|
+
WebSocketDeflate.decompress = decompress;
|
|
13793
|
+
})(WebSocketDeflate || (WebSocketDeflate = {}));
|
|
13740
13794
|
}));
|
|
13741
13795
|
// ../../packages/rpc/esm/node/websocket/websocket-connection.js
|
|
13742
13796
|
var WebSocketConnection;
|
|
@@ -13753,7 +13807,10 @@ var init_websocket_connection = __esmMin((() => {
|
|
|
13753
13807
|
const [major, minor] = bunVersion.split(".").map(Number);
|
|
13754
13808
|
return major > 1 || major === 1 && minor >= 4;
|
|
13755
13809
|
}
|
|
13756
|
-
/**
|
|
13810
|
+
/**
|
|
13811
|
+
* The key of an upgrade request that can become a connection, and whether its client is a page that
|
|
13812
|
+
* offered permessage-deflate (for `WebSocketConnectionOptions.deflate`); or why not (status and message).
|
|
13813
|
+
*/
|
|
13757
13814
|
static check(request) {
|
|
13758
13815
|
var _a, _b;
|
|
13759
13816
|
const upgrade = String((_a = request.headers.upgrade) !== null && _a !== void 0 ? _a : "").toLowerCase();
|
|
@@ -13771,14 +13828,18 @@ var init_websocket_connection = __esmMin((() => {
|
|
|
13771
13828
|
status: 400,
|
|
13772
13829
|
message: "Missing or invalid Sec-WebSocket-Key."
|
|
13773
13830
|
};
|
|
13774
|
-
return {
|
|
13831
|
+
return {
|
|
13832
|
+
key,
|
|
13833
|
+
deflate: !!request.headers.origin && WebSocketDeflate.offered(request.headers["sec-websocket-extensions"])
|
|
13834
|
+
};
|
|
13775
13835
|
}
|
|
13776
13836
|
static accept(key) {
|
|
13777
13837
|
return createHash("sha1").update(key + WebSocketConnection.GUID).digest("base64");
|
|
13778
13838
|
}
|
|
13779
13839
|
/** Answers the upgrade request and starts reading; `head` are the bytes already read after it. */
|
|
13780
13840
|
static open(socket, key, head, options) {
|
|
13781
|
-
|
|
13841
|
+
const extensions = options.deflate ? `Sec-WebSocket-Extensions: ${WebSocketDeflate.RESPONSE}\r\n` : "";
|
|
13842
|
+
socket.write(`HTTP/1.1 101 Switching Protocols\r\nUpgrade: websocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: ${WebSocketConnection.accept(key)}\r\n${extensions}\r\n`);
|
|
13782
13843
|
const connection = new WebSocketConnection(socket, options);
|
|
13783
13844
|
connection.start(head);
|
|
13784
13845
|
return connection;
|
|
@@ -13795,10 +13856,12 @@ var init_websocket_connection = __esmMin((() => {
|
|
|
13795
13856
|
this.onCloseEmitter = new Emitter();
|
|
13796
13857
|
this.decoder = new TextDecoder("utf-8", { fatal: true });
|
|
13797
13858
|
this.fragments = [];
|
|
13859
|
+
/** The message of the fragments is compressed. */
|
|
13860
|
+
this.compressed = false;
|
|
13798
13861
|
this.fragmentsLength = 0;
|
|
13799
13862
|
this.state = "open";
|
|
13800
13863
|
this.alive = true;
|
|
13801
|
-
this.parser = new WebSocketFrameParser(options.maxPayload);
|
|
13864
|
+
this.parser = new WebSocketFrameParser(options.maxPayload, !!options.deflate);
|
|
13802
13865
|
}
|
|
13803
13866
|
get onMessage() {
|
|
13804
13867
|
return this.onMessageEmitter.event;
|
|
@@ -13810,7 +13873,11 @@ var init_websocket_connection = __esmMin((() => {
|
|
|
13810
13873
|
return this.state === "open";
|
|
13811
13874
|
}
|
|
13812
13875
|
send(text) {
|
|
13813
|
-
if (this.state === "open")
|
|
13876
|
+
if (this.state === "open") {
|
|
13877
|
+
const data = Buffer.from(text);
|
|
13878
|
+
if (this.options.deflate && data.length >= WebSocketDeflate.MIN_BYTES) this.socket.write(WebSocketFrames.encode(WebSocketFrames.TEXT, WebSocketDeflate.compress(data), true));
|
|
13879
|
+
else this.socket.write(WebSocketFrames.encode(WebSocketFrames.TEXT, data));
|
|
13880
|
+
}
|
|
13814
13881
|
}
|
|
13815
13882
|
close(code = 1e3, reason = "") {
|
|
13816
13883
|
var _a, _b;
|
|
@@ -13842,13 +13909,13 @@ var init_websocket_connection = __esmMin((() => {
|
|
|
13842
13909
|
try {
|
|
13843
13910
|
for (const frame of this.parser.push(chunk)) {
|
|
13844
13911
|
this.alive = true;
|
|
13845
|
-
this.handle(frame.opcode, frame.fin, frame.payload);
|
|
13912
|
+
this.handle(frame.opcode, frame.fin, frame.payload, frame.compressed);
|
|
13846
13913
|
}
|
|
13847
13914
|
} catch (error) {
|
|
13848
13915
|
this.close(error instanceof WebSocketProtocolError ? error.code : 1011, error instanceof Error ? error.message : "");
|
|
13849
13916
|
}
|
|
13850
13917
|
}
|
|
13851
|
-
handle(opcode, fin, payload) {
|
|
13918
|
+
handle(opcode, fin, payload, compressed = false) {
|
|
13852
13919
|
switch (opcode) {
|
|
13853
13920
|
case WebSocketFrames.PING:
|
|
13854
13921
|
this.socket.write(WebSocketFrames.encode(WebSocketFrames.PONG, payload));
|
|
@@ -13866,6 +13933,7 @@ var init_websocket_connection = __esmMin((() => {
|
|
|
13866
13933
|
case WebSocketFrames.BINARY: throw new WebSocketProtocolError(1003, "Only text messages are accepted.");
|
|
13867
13934
|
case WebSocketFrames.TEXT:
|
|
13868
13935
|
if (this.fragments.length) throw new WebSocketProtocolError(1002, "A new message started inside a fragmented one.");
|
|
13936
|
+
this.compressed = compressed;
|
|
13869
13937
|
break;
|
|
13870
13938
|
case WebSocketFrames.CONTINUATION: if (!this.fragments.length) throw new WebSocketProtocolError(1002, "A continuation frame without a message.");
|
|
13871
13939
|
}
|
|
@@ -13873,9 +13941,11 @@ var init_websocket_connection = __esmMin((() => {
|
|
|
13873
13941
|
if (this.fragmentsLength > this.options.maxPayload) throw new WebSocketProtocolError(1009, `The message is larger than ${this.options.maxPayload} bytes.`);
|
|
13874
13942
|
this.fragments.push(payload);
|
|
13875
13943
|
if (fin) {
|
|
13876
|
-
const
|
|
13944
|
+
const joined = this.fragments.length === 1 ? this.fragments[0] : Buffer.concat(this.fragments);
|
|
13945
|
+
const message = this.compressed ? WebSocketDeflate.decompress(joined, this.options.maxPayload) : joined;
|
|
13877
13946
|
this.fragments = [];
|
|
13878
13947
|
this.fragmentsLength = 0;
|
|
13948
|
+
this.compressed = false;
|
|
13879
13949
|
let text;
|
|
13880
13950
|
try {
|
|
13881
13951
|
text = this.decoder.decode(message);
|
|
@@ -14032,7 +14102,7 @@ var init_websocket_exchange = __esmMin((() => {
|
|
|
14032
14102
|
};
|
|
14033
14103
|
}));
|
|
14034
14104
|
// ../../packages/rpc/esm/node/websocket/rpc-websocket-server.js
|
|
14035
|
-
var __decorate$
|
|
14105
|
+
var __decorate$31, __metadata$29, RpcWebSocketServer;
|
|
14036
14106
|
var init_rpc_websocket_server = __esmMin((() => {
|
|
14037
14107
|
init_common$6();
|
|
14038
14108
|
init_common$3();
|
|
@@ -14042,7 +14112,7 @@ var init_rpc_websocket_server = __esmMin((() => {
|
|
|
14042
14112
|
init_rpc_connection();
|
|
14043
14113
|
init_websocket_connection();
|
|
14044
14114
|
init_websocket_exchange();
|
|
14045
|
-
__decorate$
|
|
14115
|
+
__decorate$31 = function(decorators, target, key, desc) {
|
|
14046
14116
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14047
14117
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14048
14118
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -14072,9 +14142,9 @@ var init_rpc_websocket_server = __esmMin((() => {
|
|
|
14072
14142
|
this.connections.closeAll();
|
|
14073
14143
|
}
|
|
14074
14144
|
upgrade(request, socket, head) {
|
|
14075
|
-
var _a, _b, _c;
|
|
14076
|
-
var
|
|
14077
|
-
if (((
|
|
14145
|
+
var _a, _b, _c, _d;
|
|
14146
|
+
var _e, _f, _g, _h, _j;
|
|
14147
|
+
if (((_e = request.url) !== null && _e !== void 0 ? _e : "").split("?")[0] !== this.path) {
|
|
14078
14148
|
if (this.server.listenerCount("upgrade") === 1) socket.destroy();
|
|
14079
14149
|
return;
|
|
14080
14150
|
}
|
|
@@ -14088,15 +14158,16 @@ var init_rpc_websocket_server = __esmMin((() => {
|
|
|
14088
14158
|
WebSocketConnection.refuse(socket, 403, "Origin not allowed; add it to rpc.websocket.allowedOrigins.");
|
|
14089
14159
|
return;
|
|
14090
14160
|
}
|
|
14091
|
-
if (!((
|
|
14161
|
+
if (!((_f = this.guards) !== null && _f !== void 0 ? _f : []).every((guard) => guard.allows(request))) {
|
|
14092
14162
|
WebSocketConnection.refuse(socket, 401, "Not authorized.");
|
|
14093
14163
|
return;
|
|
14094
14164
|
}
|
|
14095
14165
|
const socketConnection = WebSocketConnection.open(socket, checked.key, head !== null && head !== void 0 ? head : Buffer.alloc(0), {
|
|
14096
|
-
maxPayload: (
|
|
14097
|
-
heartbeat: (
|
|
14166
|
+
maxPayload: (_g = (_a = this.options) === null || _a === void 0 ? void 0 : _a.maxPayload) !== null && _g !== void 0 ? _g : 1048576,
|
|
14167
|
+
heartbeat: (_h = (_b = this.options) === null || _b === void 0 ? void 0 : _b.heartbeat) !== null && _h !== void 0 ? _h : 3e4,
|
|
14168
|
+
deflate: checked.deflate && ((_c = this.options) === null || _c === void 0 ? void 0 : _c.deflate) !== false
|
|
14098
14169
|
});
|
|
14099
|
-
const connection = new RpcConnectionImpl(socketConnection, request, (c, r) => this.dispatch(c, r), (
|
|
14170
|
+
const connection = new RpcConnectionImpl(socketConnection, request, (c, r) => this.dispatch(c, r), (_j = (_d = this.options) === null || _d === void 0 ? void 0 : _d.callTimeout) !== null && _j !== void 0 ? _j : 3e4);
|
|
14100
14171
|
this.connections.add(connection);
|
|
14101
14172
|
}
|
|
14102
14173
|
/**
|
|
@@ -14153,19 +14224,19 @@ var init_rpc_websocket_server = __esmMin((() => {
|
|
|
14153
14224
|
});
|
|
14154
14225
|
}
|
|
14155
14226
|
};
|
|
14156
|
-
__decorate$
|
|
14157
|
-
__decorate$
|
|
14158
|
-
__decorate$
|
|
14159
|
-
__decorate$
|
|
14160
|
-
__decorate$
|
|
14161
|
-
__decorate$
|
|
14162
|
-
__decorate$
|
|
14227
|
+
__decorate$31([Value("rpc.transport"), __metadata$29("design:type", String)], RpcWebSocketServer.prototype, "transport", void 0);
|
|
14228
|
+
__decorate$31([Value("rpc.websocket"), __metadata$29("design:type", Object)], RpcWebSocketServer.prototype, "options", void 0);
|
|
14229
|
+
__decorate$31([Value(RPC_PATH), __metadata$29("design:type", String)], RpcWebSocketServer.prototype, "rpcPath", void 0);
|
|
14230
|
+
__decorate$31([Autowired(PathResolver), __metadata$29("design:type", Object)], RpcWebSocketServer.prototype, "pathResolver", void 0);
|
|
14231
|
+
__decorate$31([Autowired(Dispatcher), __metadata$29("design:type", Object)], RpcWebSocketServer.prototype, "dispatcher", void 0);
|
|
14232
|
+
__decorate$31([Autowired(RpcConnectionManager), __metadata$29("design:type", Object)], RpcWebSocketServer.prototype, "connections", void 0);
|
|
14233
|
+
__decorate$31([
|
|
14163
14234
|
Autowired(RpcWebSocketGuard),
|
|
14164
14235
|
Optional(),
|
|
14165
14236
|
__metadata$29("design:type", Array)
|
|
14166
14237
|
], RpcWebSocketServer.prototype, "guards", void 0);
|
|
14167
|
-
__decorate$
|
|
14168
|
-
RpcWebSocketServer = __decorate$
|
|
14238
|
+
__decorate$31([Autowired(Logger), __metadata$29("design:type", Object)], RpcWebSocketServer.prototype, "logger", void 0);
|
|
14239
|
+
RpcWebSocketServer = __decorate$31([Component([ServerAware, ApplicationLifecycle])], RpcWebSocketServer);
|
|
14169
14240
|
}));
|
|
14170
14241
|
// ../../packages/rpc/esm/node/websocket/index.js
|
|
14171
14242
|
var init_websocket = __esmMin((() => {
|
|
@@ -14536,7 +14607,7 @@ var init_embedded_assets = __esmMin((() => {
|
|
|
14536
14607
|
})(EmbeddedAssets || (EmbeddedAssets = {}));
|
|
14537
14608
|
}));
|
|
14538
14609
|
// ../../packages/serve-static/esm/node/serve-static-middleware.js
|
|
14539
|
-
var __decorate$
|
|
14610
|
+
var __decorate$30, __metadata$28, SPA_INDEX, FRESH_TYPES, ServeStaticMiddleware;
|
|
14540
14611
|
var init_serve_static_middleware = __esmMin((() => {
|
|
14541
14612
|
init_node$6();
|
|
14542
14613
|
init_serve_static();
|
|
@@ -14545,7 +14616,7 @@ var init_serve_static_middleware = __esmMin((() => {
|
|
|
14545
14616
|
init_common$6();
|
|
14546
14617
|
init_common$4();
|
|
14547
14618
|
init_common$3();
|
|
14548
|
-
__decorate$
|
|
14619
|
+
__decorate$30 = function(decorators, target, key, desc) {
|
|
14549
14620
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14550
14621
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
14551
14622
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -14647,16 +14718,16 @@ var init_serve_static_middleware = __esmMin((() => {
|
|
|
14647
14718
|
});
|
|
14648
14719
|
}
|
|
14649
14720
|
};
|
|
14650
|
-
__decorate$
|
|
14651
|
-
__decorate$
|
|
14652
|
-
__decorate$
|
|
14653
|
-
__decorate$
|
|
14721
|
+
__decorate$30([Value("serveStatic"), __metadata$28("design:type", Object)], ServeStaticMiddleware.prototype, "config", void 0);
|
|
14722
|
+
__decorate$30([Value(SERVER_PATH), __metadata$28("design:type", String)], ServeStaticMiddleware.prototype, "path", void 0);
|
|
14723
|
+
__decorate$30([Autowired(RequestMatcher), __metadata$28("design:type", Object)], ServeStaticMiddleware.prototype, "requestMatcher", void 0);
|
|
14724
|
+
__decorate$30([
|
|
14654
14725
|
PostConstruct(),
|
|
14655
14726
|
__metadata$28("design:type", Function),
|
|
14656
14727
|
__metadata$28("design:paramtypes", []),
|
|
14657
14728
|
__metadata$28("design:returntype", void 0)
|
|
14658
14729
|
], ServeStaticMiddleware.prototype, "init", null);
|
|
14659
|
-
ServeStaticMiddleware = __decorate$
|
|
14730
|
+
ServeStaticMiddleware = __decorate$30([Component(Middleware)], ServeStaticMiddleware);
|
|
14660
14731
|
}));
|
|
14661
14732
|
// ../../packages/serve-static/esm/node/index.js
|
|
14662
14733
|
var init_node$4 = __esmMin((() => {
|
|
@@ -14809,6 +14880,24 @@ var init_location = __esmMin((() => {
|
|
|
14809
14880
|
return path.slice(Math.max(path.lastIndexOf("/"), path.lastIndexOf("\\")) + 1) || (remote === null || remote === void 0 ? void 0 : remote.host) || location;
|
|
14810
14881
|
}
|
|
14811
14882
|
TaLocation.basename = basename;
|
|
14883
|
+
/**
|
|
14884
|
+
* What a location names under the home directory of its machine, as a shell and git read `~`: `~`,
|
|
14885
|
+
* `~/src`, `ssh://<host>` and `ssh://<host>/~/src` are `''` and `'src'`; undefined for any other.
|
|
14886
|
+
*/
|
|
14887
|
+
function homeRelative(location) {
|
|
14888
|
+
var _a;
|
|
14889
|
+
const remote = parse(location);
|
|
14890
|
+
const path = remote ? remote.path ? remote.path.slice(1) : "~" : location;
|
|
14891
|
+
const match = /^~(?:[\\/]+(.*))?$/.exec(path);
|
|
14892
|
+
return match ? ((_a = match[1]) !== null && _a !== void 0 ? _a : "").replace(/[\\/]+$/, "") : void 0;
|
|
14893
|
+
}
|
|
14894
|
+
TaLocation.homeRelative = homeRelative;
|
|
14895
|
+
/** Whether a location names its directory whole: not `~`, not relative, not the home of a host. */
|
|
14896
|
+
function isAbsolute(location) {
|
|
14897
|
+
if (homeRelative(location) !== void 0) return false;
|
|
14898
|
+
return isRemote(location) || /^([\\/]|[A-Za-z]:)/.test(location);
|
|
14899
|
+
}
|
|
14900
|
+
TaLocation.isAbsolute = isAbsolute;
|
|
14812
14901
|
function parentPath(path) {
|
|
14813
14902
|
const trimmed = path.replace(/[\\/]+$/, "");
|
|
14814
14903
|
const at = Math.max(trimmed.lastIndexOf("/"), trimmed.lastIndexOf("\\"));
|
|
@@ -14960,7 +15049,7 @@ var init_ta_extension_host = __esmMin((() => {
|
|
|
14960
15049
|
TA_HOST_EVENT = "ta:host";
|
|
14961
15050
|
}));
|
|
14962
15051
|
// ../../ta-packages/ta-protocol/esm/common/ta-protocol.js
|
|
14963
|
-
var TaServer, TaClient, TA_WEBSOCKET_PATH, TA_SERVE_FILE, TaErrorCode, TaErrorUtil, TA_RPC_ERROR_CODE, TaMessageContext, TaSkillUse;
|
|
15052
|
+
var TaServer, TaClient, TA_WEBSOCKET_PATH, TA_SERVE_FILE, TaErrorCode, TaErrorUtil, TA_RPC_ERROR_CODE, TaMessageContext, TaImageNote, TaAgentSummary, TaSkillUse;
|
|
14964
15053
|
var init_ta_protocol = __esmMin((() => {
|
|
14965
15054
|
TaServer = Symbol("TaServer");
|
|
14966
15055
|
TaClient = Symbol("TaClient");
|
|
@@ -14974,6 +15063,14 @@ var init_ta_protocol = __esmMin((() => {
|
|
|
14974
15063
|
MODEL_NOT_FOUND: "CELL_TA_MODEL_NOT_FOUND",
|
|
14975
15064
|
INVALID_ARGUMENT: "CELL_TA_INVALID_ARGUMENT",
|
|
14976
15065
|
COMMAND_FAILED: "CELL_TA_COMMAND_FAILED",
|
|
15066
|
+
/** Compacting found nothing to compact: the conversation is still short. */
|
|
15067
|
+
NOTHING_TO_COMPACT: "CELL_TA_NOTHING_TO_COMPACT",
|
|
15068
|
+
/** Compacting found nothing to compact: nothing came after the last compaction. */
|
|
15069
|
+
ALREADY_COMPACTED: "CELL_TA_ALREADY_COMPACTED",
|
|
15070
|
+
/** The session is answering or compacting, which has to end first. */
|
|
15071
|
+
SESSION_BUSY: "CELL_TA_SESSION_BUSY",
|
|
15072
|
+
/** Stopped before it ended, by the user (abort) or an extension: nothing to report. */
|
|
15073
|
+
CANCELLED: "CELL_TA_CANCELLED",
|
|
14977
15074
|
/** No provider of models is signed in for the model, or there is no model: sign in (TaAuthServer) first. */
|
|
14978
15075
|
NOT_SIGNED_IN: "CELL_TA_NOT_SIGNED_IN",
|
|
14979
15076
|
/** Behind a gateway (`ta gateway`): the environment of the tenant did not start; TaGatewayServer changes or restarts it. */
|
|
@@ -15005,6 +15102,32 @@ var init_ta_protocol = __esmMin((() => {
|
|
|
15005
15102
|
}
|
|
15006
15103
|
TaMessageContext.strip = strip;
|
|
15007
15104
|
})(TaMessageContext || (TaMessageContext = {}));
|
|
15105
|
+
(function(TaImageNote) {
|
|
15106
|
+
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 [^\]]+\.\]$/;
|
|
15107
|
+
/** The text without the notes of its images: what the user sees of it. */
|
|
15108
|
+
function strip(text) {
|
|
15109
|
+
const lines = text.split("\n");
|
|
15110
|
+
const kept = lines.filter((line) => !NOTE.test(line.trim()));
|
|
15111
|
+
if (kept.length === lines.length) return text;
|
|
15112
|
+
return kept.join("\n").replace(/\n+$/, "").replace(/^\n+/, "");
|
|
15113
|
+
}
|
|
15114
|
+
TaImageNote.strip = strip;
|
|
15115
|
+
})(TaImageNote || (TaImageNote = {}));
|
|
15116
|
+
(function(TaAgentSummary) {
|
|
15117
|
+
const START = /^\s*<conversation_history_summary>/;
|
|
15118
|
+
const BLOCK = /^\s*<conversation_history_summary>[\s\S]*?(?:<\/conversation_history_summary>\s*|$)/;
|
|
15119
|
+
/** The summary `text` is, without its tags (and the start of a closing tag while it streams); else undefined. */
|
|
15120
|
+
function read(text) {
|
|
15121
|
+
if (!START.test(text)) return;
|
|
15122
|
+
return text.replace(/<\/?(?:conversation_history_summary|summary)>/g, "").replace(/<\/?\w*$/, "").trim();
|
|
15123
|
+
}
|
|
15124
|
+
TaAgentSummary.read = read;
|
|
15125
|
+
/** The text without the summary it starts with. */
|
|
15126
|
+
function strip(text) {
|
|
15127
|
+
return text.replace(BLOCK, "");
|
|
15128
|
+
}
|
|
15129
|
+
TaAgentSummary.strip = strip;
|
|
15130
|
+
})(TaAgentSummary || (TaAgentSummary = {}));
|
|
15008
15131
|
(function(TaSkillUse) {
|
|
15009
15132
|
const BLOCK = /^<skill name="([^"]+)" location="([^"]+)">\n([\s\S]*?)\n<\/skill>(?:\n\n([\s\S]+))?$/;
|
|
15010
15133
|
function parse(message) {
|
|
@@ -17984,12 +18107,12 @@ var init_node$3 = __esmMin((() => {
|
|
|
17984
18107
|
init_ta_packages();
|
|
17985
18108
|
}));
|
|
17986
18109
|
// ../../ta-packages/ta-host/esm/node/extension-providers.js
|
|
17987
|
-
var __decorate$
|
|
18110
|
+
var __decorate$29, __metadata$27, ExtensionProviders, ExtensionProvidersImpl;
|
|
17988
18111
|
var init_extension_providers = __esmMin((() => {
|
|
17989
18112
|
init_node$7();
|
|
17990
18113
|
init_common$6();
|
|
17991
18114
|
init_node$3();
|
|
17992
|
-
__decorate$
|
|
18115
|
+
__decorate$29 = function(decorators, target, key, desc) {
|
|
17993
18116
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17994
18117
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17995
18118
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -18030,9 +18153,9 @@ var init_extension_providers = __esmMin((() => {
|
|
|
18030
18153
|
});
|
|
18031
18154
|
}
|
|
18032
18155
|
};
|
|
18033
|
-
__decorate$
|
|
18034
|
-
__decorate$
|
|
18035
|
-
ExtensionProvidersImpl = __decorate$
|
|
18156
|
+
__decorate$29([Value(CODING_AGENT_OPTIONS), __metadata$27("design:type", Object)], ExtensionProvidersImpl.prototype, "codingAgentOptions", void 0);
|
|
18157
|
+
__decorate$29([Autowired(ModelRuntimeProvider), __metadata$27("design:type", Object)], ExtensionProvidersImpl.prototype, "modelRuntimeProvider", void 0);
|
|
18158
|
+
ExtensionProvidersImpl = __decorate$29([Component(ExtensionProviders)], ExtensionProvidersImpl);
|
|
18036
18159
|
}));
|
|
18037
18160
|
// ../../ta-packages/ta-host/esm/node/host-protocol.js
|
|
18038
18161
|
var TaSessionFactory, TaSessionRegistry, TaSessionCatalog, WebExtensionCatalog, TA_HOST_OPTIONS, TA_EXEC_OPTIONS;
|
|
@@ -18045,7 +18168,7 @@ var init_host_protocol = __esmMin((() => {
|
|
|
18045
18168
|
TA_EXEC_OPTIONS = "ta.exec";
|
|
18046
18169
|
}));
|
|
18047
18170
|
// ../../ta-packages/ta-host/esm/node/ta-errors.js
|
|
18048
|
-
var TaError, NOT_SIGNED_IN, TaErrors;
|
|
18171
|
+
var TaError, NOT_SIGNED_IN, KNOWN, TaErrors;
|
|
18049
18172
|
var init_ta_errors = __esmMin((() => {
|
|
18050
18173
|
init_common$6();
|
|
18051
18174
|
init_common$1();
|
|
@@ -18056,7 +18179,29 @@ var init_ta_errors = __esmMin((() => {
|
|
|
18056
18179
|
hint
|
|
18057
18180
|
}
|
|
18058
18181
|
}));
|
|
18059
|
-
NOT_SIGNED_IN = /^No (API key found for|model selected|models available)\b/;
|
|
18182
|
+
NOT_SIGNED_IN = /^(No (API key found for|model selected|models available)|Authentication failed for)\b/;
|
|
18183
|
+
KNOWN = [
|
|
18184
|
+
{
|
|
18185
|
+
pattern: /^Nothing to compact\b/,
|
|
18186
|
+
code: TaErrorCode.NOTHING_TO_COMPACT,
|
|
18187
|
+
hint: "Compact once the conversation is longer."
|
|
18188
|
+
},
|
|
18189
|
+
{
|
|
18190
|
+
pattern: /^Already compacted$/,
|
|
18191
|
+
code: TaErrorCode.ALREADY_COMPACTED,
|
|
18192
|
+
hint: "Compact again once more has been said."
|
|
18193
|
+
},
|
|
18194
|
+
{
|
|
18195
|
+
pattern: /^(Cannot submit a prompt while compaction is in progress|Wait for the current (response|compaction))\b/,
|
|
18196
|
+
code: TaErrorCode.SESSION_BUSY,
|
|
18197
|
+
hint: "Try again once the session is idle."
|
|
18198
|
+
},
|
|
18199
|
+
{
|
|
18200
|
+
pattern: /^Compaction cancelled$/,
|
|
18201
|
+
code: TaErrorCode.CANCELLED,
|
|
18202
|
+
hint: "It was stopped; nothing to do."
|
|
18203
|
+
}
|
|
18204
|
+
];
|
|
18060
18205
|
(function(TaErrors) {
|
|
18061
18206
|
function sessionNotFound(sessionId) {
|
|
18062
18207
|
return TaError(TaErrorCode.SESSION_NOT_FOUND, `No open session has the id ${sessionId}.`, "Open it again with openSession and its session file: idle sessions are closed, their files stay.");
|
|
@@ -18095,14 +18240,16 @@ var init_ta_errors = __esmMin((() => {
|
|
|
18095
18240
|
function commandFailed(cause) {
|
|
18096
18241
|
if (ApplicationError.is(cause)) return cause;
|
|
18097
18242
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
18098
|
-
if (NOT_SIGNED_IN.test(message)) return TaError(TaErrorCode.NOT_SIGNED_IN, message.split(/\n| Use \/login/)[0].trim(), "Sign in to a provider of models (TaAuthServer.login), then send it again.");
|
|
18243
|
+
if (NOT_SIGNED_IN.test(message)) return TaError(TaErrorCode.NOT_SIGNED_IN, message.split(/\n| (Use |Run ')\/login/)[0].trim(), "Sign in to a provider of models (TaAuthServer.login), then send it again.");
|
|
18244
|
+
const known = KNOWN.find(({ pattern }) => pattern.test(message));
|
|
18245
|
+
if (known) return TaError(known.code, message, known.hint);
|
|
18099
18246
|
return TaError(TaErrorCode.COMMAND_FAILED, message, "The message comes from the agent; fix what it says and send the command again.");
|
|
18100
18247
|
}
|
|
18101
18248
|
TaErrors.commandFailed = commandFailed;
|
|
18102
18249
|
})(TaErrors || (TaErrors = {}));
|
|
18103
18250
|
}));
|
|
18104
18251
|
// ../../ta-packages/ta-host/esm/node/auth-server-impl.js
|
|
18105
|
-
var __decorate$
|
|
18252
|
+
var __decorate$28, __metadata$26, CANCELLED, Login, AuthServerUtil, TaAuthServerImpl;
|
|
18106
18253
|
var init_auth_server_impl = __esmMin((() => {
|
|
18107
18254
|
init_node$7();
|
|
18108
18255
|
init_common$6();
|
|
@@ -18112,7 +18259,7 @@ var init_auth_server_impl = __esmMin((() => {
|
|
|
18112
18259
|
init_extension_providers();
|
|
18113
18260
|
init_host_protocol();
|
|
18114
18261
|
init_ta_errors();
|
|
18115
|
-
__decorate$
|
|
18262
|
+
__decorate$28 = function(decorators, target, key, desc) {
|
|
18116
18263
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18117
18264
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
18118
18265
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -18353,11 +18500,11 @@ var init_auth_server_impl = __esmMin((() => {
|
|
|
18353
18500
|
});
|
|
18354
18501
|
}
|
|
18355
18502
|
};
|
|
18356
|
-
__decorate$
|
|
18357
|
-
__decorate$
|
|
18358
|
-
__decorate$
|
|
18359
|
-
__decorate$
|
|
18360
|
-
TaAuthServerImpl = __decorate$
|
|
18503
|
+
__decorate$28([Autowired(ModelRuntimeProvider), __metadata$26("design:type", Object)], TaAuthServerImpl.prototype, "modelRuntimeProvider", void 0);
|
|
18504
|
+
__decorate$28([Autowired(TaSessionRegistry), __metadata$26("design:type", Object)], TaAuthServerImpl.prototype, "sessions", void 0);
|
|
18505
|
+
__decorate$28([Autowired(ExtensionProviders), __metadata$26("design:type", Object)], TaAuthServerImpl.prototype, "extensionProviders", void 0);
|
|
18506
|
+
__decorate$28([Value(CODING_AGENT_OPTIONS), __metadata$26("design:type", Object)], TaAuthServerImpl.prototype, "codingAgentOptions", void 0);
|
|
18507
|
+
TaAuthServerImpl = __decorate$28([Rpc(TaAuthServer)], TaAuthServerImpl);
|
|
18361
18508
|
}));
|
|
18362
18509
|
// ../../ta-packages/ta-host/esm/node/client-channel.js
|
|
18363
18510
|
var FLUSH_INTERVAL_MS, STREAMED_EVENTS, ClientChannel;
|
|
@@ -18537,13 +18684,14 @@ var init_client_tool_broker = __esmMin((() => {
|
|
|
18537
18684
|
var EventLog;
|
|
18538
18685
|
var init_event_log = __esmMin((() => {
|
|
18539
18686
|
EventLog = class {
|
|
18540
|
-
|
|
18687
|
+
/** `firstSeq`: the seq before the first event; a session opened again under its id starts past those its clients saw. */
|
|
18688
|
+
constructor(sessionId, maxBytes, firstSeq = 0) {
|
|
18541
18689
|
this.sessionId = sessionId;
|
|
18542
18690
|
this.maxBytes = maxBytes;
|
|
18543
18691
|
this.entries = [];
|
|
18544
18692
|
this.head = 0;
|
|
18545
18693
|
this.bytes = 0;
|
|
18546
|
-
this.seq =
|
|
18694
|
+
this.seq = firstSeq;
|
|
18547
18695
|
}
|
|
18548
18696
|
get lastSeq() {
|
|
18549
18697
|
return this.seq;
|
|
@@ -19696,12 +19844,12 @@ var init_remote_protocol = __esmMin((() => {
|
|
|
19696
19844
|
PortForwards = Symbol("PortForwards");
|
|
19697
19845
|
}));
|
|
19698
19846
|
// ../../ta-packages/ta-host/esm/node/working-directory.js
|
|
19699
|
-
var __decorate$
|
|
19847
|
+
var __decorate$27, TaWorkingDirectory, RECENT_HOSTS, TaWorkingDirectoryImpl;
|
|
19700
19848
|
var init_working_directory = __esmMin((() => {
|
|
19701
19849
|
init_common$6();
|
|
19702
19850
|
init_ta_brand();
|
|
19703
19851
|
init_ta_packages();
|
|
19704
|
-
__decorate$
|
|
19852
|
+
__decorate$27 = function(decorators, target, key, desc) {
|
|
19705
19853
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19706
19854
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19707
19855
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19754,10 +19902,10 @@ var init_working_directory = __esmMin((() => {
|
|
|
19754
19902
|
});
|
|
19755
19903
|
}
|
|
19756
19904
|
};
|
|
19757
|
-
TaWorkingDirectoryImpl = __decorate$
|
|
19905
|
+
TaWorkingDirectoryImpl = __decorate$27([Component(TaWorkingDirectory)], TaWorkingDirectoryImpl);
|
|
19758
19906
|
}));
|
|
19759
19907
|
// ../../ta-packages/ta-host/esm/node/exec-environment-factory.js
|
|
19760
|
-
var __decorate$
|
|
19908
|
+
var __decorate$26, __metadata$25, DefaultExecEnvironmentFactory;
|
|
19761
19909
|
var init_exec_environment_factory = __esmMin((() => {
|
|
19762
19910
|
init_common$6();
|
|
19763
19911
|
init_node$2();
|
|
@@ -19766,7 +19914,7 @@ var init_exec_environment_factory = __esmMin((() => {
|
|
|
19766
19914
|
init_remote_protocol();
|
|
19767
19915
|
init_ta_errors();
|
|
19768
19916
|
init_working_directory();
|
|
19769
|
-
__decorate$
|
|
19917
|
+
__decorate$26 = function(decorators, target, key, desc) {
|
|
19770
19918
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19771
19919
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19772
19920
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19778,12 +19926,7 @@ var init_exec_environment_factory = __esmMin((() => {
|
|
|
19778
19926
|
DefaultExecEnvironmentFactory = class DefaultExecEnvironmentFactory {
|
|
19779
19927
|
/** Its `cwd` is the path there: the one to resolve paths against, not the location. */
|
|
19780
19928
|
create(location) {
|
|
19781
|
-
|
|
19782
|
-
try {
|
|
19783
|
-
remote = TaLocation.parse(location);
|
|
19784
|
-
} catch (error) {
|
|
19785
|
-
throw TaErrors.invalidArgument(error.message, "Write ssh://<host>/<absolute path>.");
|
|
19786
|
-
}
|
|
19929
|
+
const remote = this.parse(location);
|
|
19787
19930
|
if (remote) {
|
|
19788
19931
|
if (!remote.path) throw TaErrors.invalidArgument(`${location} names no directory.`, "Resolve it first (TaRemoteServer.resolveLocation), or write its path.");
|
|
19789
19932
|
return new RemoteExecEnvironment(this.remoteHosts.client(remote.host), remote.path);
|
|
@@ -19791,6 +19934,21 @@ var init_exec_environment_factory = __esmMin((() => {
|
|
|
19791
19934
|
const client = this.remote();
|
|
19792
19935
|
return client ? new RemoteExecEnvironment(client, location) : new LocalExecEnvironment(location);
|
|
19793
19936
|
}
|
|
19937
|
+
/**
|
|
19938
|
+
* A location as the user wrote it, whole: `~` is the home directory of its machine (where ssh starts
|
|
19939
|
+
* there, and where the exec server started), and a relative path is under the default directory.
|
|
19940
|
+
*/
|
|
19941
|
+
async resolve(location) {
|
|
19942
|
+
var _a;
|
|
19943
|
+
var _b;
|
|
19944
|
+
const remote = this.parse(location);
|
|
19945
|
+
const home = TaLocation.homeRelative(location);
|
|
19946
|
+
if (remote) return home === void 0 ? location : TaLocation.ssh(remote.host, posix.join((await this.remoteHosts.client(remote.host).info()).cwd, home));
|
|
19947
|
+
const info = await ((_a = this.remote()) === null || _a === void 0 ? void 0 : _a.info());
|
|
19948
|
+
const path = ((_b = info === null || info === void 0 ? void 0 : info.platform) !== null && _b !== void 0 ? _b : process.platform) === "win32" ? win32 : posix;
|
|
19949
|
+
if (home !== void 0) return path.join(info ? info.cwd : homedir(), home);
|
|
19950
|
+
return path.isAbsolute(location) ? location : path.resolve(await this.defaultCwd(), location);
|
|
19951
|
+
}
|
|
19794
19952
|
/** The working directory the user chose, else that of this process, or of the exec server. */
|
|
19795
19953
|
async defaultCwd() {
|
|
19796
19954
|
var _a;
|
|
@@ -19799,6 +19957,13 @@ var init_exec_environment_factory = __esmMin((() => {
|
|
|
19799
19957
|
const client = this.remote();
|
|
19800
19958
|
return client ? (await client.info()).cwd : process.cwd();
|
|
19801
19959
|
}
|
|
19960
|
+
parse(location) {
|
|
19961
|
+
try {
|
|
19962
|
+
return TaLocation.parse(location);
|
|
19963
|
+
} catch (error) {
|
|
19964
|
+
throw TaErrors.invalidArgument(error.message, "Write ssh://<host>/<absolute path>.");
|
|
19965
|
+
}
|
|
19966
|
+
}
|
|
19802
19967
|
remote() {
|
|
19803
19968
|
var _a, _b;
|
|
19804
19969
|
const { url, token = "", epoch } = (_a = this.options) !== null && _a !== void 0 ? _a : {};
|
|
@@ -19816,24 +19981,24 @@ var init_exec_environment_factory = __esmMin((() => {
|
|
|
19816
19981
|
});
|
|
19817
19982
|
}
|
|
19818
19983
|
};
|
|
19819
|
-
__decorate$
|
|
19820
|
-
__decorate$
|
|
19984
|
+
__decorate$26([Value(TA_EXEC_OPTIONS), __metadata$25("design:type", Object)], DefaultExecEnvironmentFactory.prototype, "options", void 0);
|
|
19985
|
+
__decorate$26([
|
|
19821
19986
|
Autowired(TaWorkingDirectory),
|
|
19822
19987
|
Optional(),
|
|
19823
19988
|
__metadata$25("design:type", Object)
|
|
19824
19989
|
], DefaultExecEnvironmentFactory.prototype, "workingDirectory", void 0);
|
|
19825
|
-
__decorate$
|
|
19826
|
-
DefaultExecEnvironmentFactory = __decorate$
|
|
19990
|
+
__decorate$26([Autowired(RemoteHosts), __metadata$25("design:type", Object)], DefaultExecEnvironmentFactory.prototype, "remoteHosts", void 0);
|
|
19991
|
+
DefaultExecEnvironmentFactory = __decorate$26([Component(ExecEnvironmentFactory)], DefaultExecEnvironmentFactory);
|
|
19827
19992
|
}));
|
|
19828
19993
|
// ../../ta-packages/ta-host/esm/node/extension-data.js
|
|
19829
|
-
var __decorate$
|
|
19994
|
+
var __decorate$25, __metadata$24, ExtensionDataStore, MAX_BYTES$1, MAX_KEY, MAX_CWD, READABLE, NAME, ExtensionDataUtil, ExtensionDataStoreImpl;
|
|
19830
19995
|
var init_extension_data = __esmMin((() => {
|
|
19831
19996
|
init_node$7();
|
|
19832
19997
|
init_common$6();
|
|
19833
19998
|
init_ta_brand();
|
|
19834
19999
|
init_host_protocol();
|
|
19835
20000
|
init_ta_errors();
|
|
19836
|
-
__decorate$
|
|
20001
|
+
__decorate$25 = function(decorators, target, key, desc) {
|
|
19837
20002
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19838
20003
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19839
20004
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -19965,17 +20130,17 @@ var init_extension_data = __esmMin((() => {
|
|
|
19965
20130
|
});
|
|
19966
20131
|
}
|
|
19967
20132
|
};
|
|
19968
|
-
__decorate$
|
|
19969
|
-
__decorate$
|
|
19970
|
-
ExtensionDataStoreImpl = __decorate$
|
|
20133
|
+
__decorate$25([Value(CODING_AGENT_OPTIONS), __metadata$24("design:type", Object)], ExtensionDataStoreImpl.prototype, "codingAgentOptions", void 0);
|
|
20134
|
+
__decorate$25([Value(TA_EXEC_OPTIONS), __metadata$24("design:type", Object)], ExtensionDataStoreImpl.prototype, "execOptions", void 0);
|
|
20135
|
+
ExtensionDataStoreImpl = __decorate$25([Component(ExtensionDataStore)], ExtensionDataStoreImpl);
|
|
19971
20136
|
}));
|
|
19972
20137
|
// ../../ta-packages/ta-host/esm/node/extension-data-notifier.js
|
|
19973
|
-
var __decorate$
|
|
20138
|
+
var __decorate$24, __metadata$23, ExtensionDataNotifier, NOTICE_MS, ExtensionDataScope, ExtensionDataBatch, ExtensionDataNotifierImpl;
|
|
19974
20139
|
var init_extension_data_notifier = __esmMin((() => {
|
|
19975
20140
|
init_common$6();
|
|
19976
20141
|
init_common$1();
|
|
19977
20142
|
init_extension_data();
|
|
19978
|
-
__decorate$
|
|
20143
|
+
__decorate$24 = function(decorators, target, key, desc) {
|
|
19979
20144
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19980
20145
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19981
20146
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -20087,8 +20252,8 @@ var init_extension_data_notifier = __esmMin((() => {
|
|
|
20087
20252
|
});
|
|
20088
20253
|
}
|
|
20089
20254
|
};
|
|
20090
|
-
__decorate$
|
|
20091
|
-
ExtensionDataNotifierImpl = __decorate$
|
|
20255
|
+
__decorate$24([Autowired(ExtensionDataStore), __metadata$23("design:type", Object)], ExtensionDataNotifierImpl.prototype, "store", void 0);
|
|
20256
|
+
ExtensionDataNotifierImpl = __decorate$24([Component(ExtensionDataNotifier)], ExtensionDataNotifierImpl);
|
|
20092
20257
|
}));
|
|
20093
20258
|
// ../../ta-packages/ta-host/esm/node/package-host-extension.js
|
|
20094
20259
|
var PackageHostExtension;
|
|
@@ -20121,7 +20286,7 @@ var init_package_host_extension = __esmMin((() => {
|
|
|
20121
20286
|
};
|
|
20122
20287
|
}));
|
|
20123
20288
|
// ../../ta-packages/ta-host/esm/node/package-hosts.js
|
|
20124
|
-
var __decorate$
|
|
20289
|
+
var __decorate$23, __metadata$22, PackageHosts, PackageHostUtil, PackageHostsImpl;
|
|
20125
20290
|
var init_package_hosts = __esmMin((() => {
|
|
20126
20291
|
init_node$7();
|
|
20127
20292
|
init_common$6();
|
|
@@ -20131,7 +20296,7 @@ var init_package_hosts = __esmMin((() => {
|
|
|
20131
20296
|
init_extension_data();
|
|
20132
20297
|
init_remote_protocol();
|
|
20133
20298
|
init_ta_errors();
|
|
20134
|
-
__decorate$
|
|
20299
|
+
__decorate$23 = function(decorators, target, key, desc) {
|
|
20135
20300
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20136
20301
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20137
20302
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -20276,21 +20441,21 @@ var init_package_hosts = __esmMin((() => {
|
|
|
20276
20441
|
});
|
|
20277
20442
|
}
|
|
20278
20443
|
};
|
|
20279
|
-
__decorate$
|
|
20280
|
-
__decorate$
|
|
20281
|
-
__decorate$
|
|
20282
|
-
__decorate$
|
|
20444
|
+
__decorate$23([Autowired(PiDirectories), __metadata$22("design:type", Object)], PackageHostsImpl.prototype, "directories", void 0);
|
|
20445
|
+
__decorate$23([Value(CODING_AGENT_OPTIONS), __metadata$22("design:type", Object)], PackageHostsImpl.prototype, "codingAgentOptions", void 0);
|
|
20446
|
+
__decorate$23([Autowired(ExtensionDataStore), __metadata$22("design:type", Object)], PackageHostsImpl.prototype, "data", void 0);
|
|
20447
|
+
__decorate$23([Autowired({
|
|
20283
20448
|
id: TaServer,
|
|
20284
20449
|
detached: true
|
|
20285
20450
|
}), __metadata$22("design:type", Object)], PackageHostsImpl.prototype, "server", void 0);
|
|
20286
|
-
__decorate$
|
|
20451
|
+
__decorate$23([Autowired({
|
|
20287
20452
|
id: TaPackageServer,
|
|
20288
20453
|
detached: true
|
|
20289
20454
|
}), __metadata$22("design:type", Object)], PackageHostsImpl.prototype, "packages", void 0);
|
|
20290
|
-
PackageHostsImpl = __decorate$
|
|
20455
|
+
PackageHostsImpl = __decorate$23([Component([PackageHosts, ApplicationLifecycle])], PackageHostsImpl);
|
|
20291
20456
|
}));
|
|
20292
20457
|
// ../../ta-packages/ta-host/esm/node/package-server-impl.js
|
|
20293
|
-
var __decorate$
|
|
20458
|
+
var __decorate$22, __metadata$21, TaPackageServerImpl;
|
|
20294
20459
|
var init_package_server_impl = __esmMin((() => {
|
|
20295
20460
|
init_common$6();
|
|
20296
20461
|
init_common$2();
|
|
@@ -20302,7 +20467,7 @@ var init_package_server_impl = __esmMin((() => {
|
|
|
20302
20467
|
init_host_protocol();
|
|
20303
20468
|
init_package_hosts();
|
|
20304
20469
|
init_ta_errors();
|
|
20305
|
-
__decorate$
|
|
20470
|
+
__decorate$22 = function(decorators, target, key, desc) {
|
|
20306
20471
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20307
20472
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20308
20473
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -20377,12 +20542,12 @@ var init_package_server_impl = __esmMin((() => {
|
|
|
20377
20542
|
});
|
|
20378
20543
|
}
|
|
20379
20544
|
};
|
|
20380
|
-
__decorate$
|
|
20381
|
-
__decorate$
|
|
20382
|
-
__decorate$
|
|
20383
|
-
__decorate$
|
|
20384
|
-
__decorate$
|
|
20385
|
-
TaPackageServerImpl = __decorate$
|
|
20545
|
+
__decorate$22([Autowired(ExecEnvironmentFactory), __metadata$21("design:type", Object)], TaPackageServerImpl.prototype, "environments", void 0);
|
|
20546
|
+
__decorate$22([Autowired(WebExtensionCatalog), __metadata$21("design:type", Object)], TaPackageServerImpl.prototype, "webExtensions", void 0);
|
|
20547
|
+
__decorate$22([Autowired(ExtensionDataStore), __metadata$21("design:type", Object)], TaPackageServerImpl.prototype, "extensionData", void 0);
|
|
20548
|
+
__decorate$22([Autowired(ExtensionDataNotifier), __metadata$21("design:type", Object)], TaPackageServerImpl.prototype, "extensionDataNotifier", void 0);
|
|
20549
|
+
__decorate$22([Autowired(PackageHosts), __metadata$21("design:type", Object)], TaPackageServerImpl.prototype, "packageHosts", void 0);
|
|
20550
|
+
TaPackageServerImpl = __decorate$22([Rpc(TaPackageServer)], TaPackageServerImpl);
|
|
20386
20551
|
}));
|
|
20387
20552
|
// ../../ta-packages/ta-host/esm/node/receipt-book.js
|
|
20388
20553
|
var ReceiptBook;
|
|
@@ -20459,16 +20624,21 @@ var init_relay_bytes = __esmMin((() => {
|
|
|
20459
20624
|
})(RelayBytes || (RelayBytes = {}));
|
|
20460
20625
|
}));
|
|
20461
20626
|
// ../../ta-packages/ta-relay/esm/common/relay-cipher.js
|
|
20462
|
-
var encoder, decoder, IV_LENGTH, RelayCipher;
|
|
20627
|
+
var encoder, decoder, IV_LENGTH, PLAIN, DEFLATED, DEFLATE_MIN_BYTES, RelayCipher, RelayDeflate;
|
|
20463
20628
|
var init_relay_cipher = __esmMin((() => {
|
|
20464
20629
|
init_relay_bytes();
|
|
20465
20630
|
encoder = new TextEncoder();
|
|
20466
20631
|
decoder = new TextDecoder();
|
|
20467
20632
|
IV_LENGTH = 12;
|
|
20633
|
+
PLAIN = 0;
|
|
20634
|
+
DEFLATED = 1;
|
|
20635
|
+
DEFLATE_MIN_BYTES = 1024;
|
|
20468
20636
|
RelayCipher = class RelayCipher {
|
|
20469
20637
|
constructor(sendKey, receiveKey) {
|
|
20470
20638
|
this.sendKey = sendKey;
|
|
20471
20639
|
this.receiveKey = receiveKey;
|
|
20640
|
+
/** Messages sealed from now are compressed when large, and those opened may be: both sides set it at the same message. */
|
|
20641
|
+
this.compress = false;
|
|
20472
20642
|
this.sent = 0;
|
|
20473
20643
|
this.received = 0;
|
|
20474
20644
|
this.sealing = Promise.resolve();
|
|
@@ -20497,7 +20667,7 @@ var init_relay_cipher = __esmMin((() => {
|
|
|
20497
20667
|
const data = await globalThis.crypto.subtle.encrypt({
|
|
20498
20668
|
name: "AES-GCM",
|
|
20499
20669
|
iv
|
|
20500
|
-
}, this.sendKey,
|
|
20670
|
+
}, this.sendKey, await this.pack(text));
|
|
20501
20671
|
return RelayBytes.toBase64(new Uint8Array(data));
|
|
20502
20672
|
});
|
|
20503
20673
|
this.sealing = sealed.catch(() => void 0);
|
|
@@ -20511,11 +20681,23 @@ var init_relay_cipher = __esmMin((() => {
|
|
|
20511
20681
|
name: "AES-GCM",
|
|
20512
20682
|
iv
|
|
20513
20683
|
}, this.receiveKey, RelayBytes.fromBase64(frame));
|
|
20514
|
-
return
|
|
20684
|
+
return this.unpack(new Uint8Array(data));
|
|
20515
20685
|
});
|
|
20516
20686
|
this.opening = opened.catch(() => void 0);
|
|
20517
20687
|
return opened;
|
|
20518
20688
|
}
|
|
20689
|
+
/** The bytes of a message to seal: as they are until compression is agreed, then behind the byte that says how. */
|
|
20690
|
+
async pack(text) {
|
|
20691
|
+
const bytes = encoder.encode(text);
|
|
20692
|
+
if (!this.compress) return bytes;
|
|
20693
|
+
const deflated = bytes.length >= DEFLATE_MIN_BYTES ? await RelayDeflate.compress(bytes) : void 0;
|
|
20694
|
+
return deflated && deflated.length < bytes.length ? RelayBytes.concat(Uint8Array.of(DEFLATED), deflated) : RelayBytes.concat(Uint8Array.of(PLAIN), bytes);
|
|
20695
|
+
}
|
|
20696
|
+
async unpack(bytes) {
|
|
20697
|
+
if (!this.compress) return decoder.decode(bytes);
|
|
20698
|
+
const body = bytes.subarray(1);
|
|
20699
|
+
return decoder.decode(bytes[0] === DEFLATED ? await RelayDeflate.decompress(body) : body);
|
|
20700
|
+
}
|
|
20519
20701
|
static iv(counter) {
|
|
20520
20702
|
const iv = new Uint8Array(IV_LENGTH);
|
|
20521
20703
|
new DataView(iv.buffer).setUint32(4, Math.floor(counter / 2 ** 32));
|
|
@@ -20529,6 +20711,32 @@ var init_relay_cipher = __esmMin((() => {
|
|
|
20529
20711
|
});
|
|
20530
20712
|
}
|
|
20531
20713
|
};
|
|
20714
|
+
(function(RelayDeflate) {
|
|
20715
|
+
let support;
|
|
20716
|
+
function supported() {
|
|
20717
|
+
if (support === void 0) try {
|
|
20718
|
+
new CompressionStream("deflate-raw");
|
|
20719
|
+
new DecompressionStream("deflate-raw");
|
|
20720
|
+
support = true;
|
|
20721
|
+
} catch (_a) {
|
|
20722
|
+
support = false;
|
|
20723
|
+
}
|
|
20724
|
+
return support;
|
|
20725
|
+
}
|
|
20726
|
+
RelayDeflate.supported = supported;
|
|
20727
|
+
function compress(bytes) {
|
|
20728
|
+
return through(bytes, new CompressionStream("deflate-raw"));
|
|
20729
|
+
}
|
|
20730
|
+
RelayDeflate.compress = compress;
|
|
20731
|
+
function decompress(bytes) {
|
|
20732
|
+
return through(bytes, new DecompressionStream("deflate-raw"));
|
|
20733
|
+
}
|
|
20734
|
+
RelayDeflate.decompress = decompress;
|
|
20735
|
+
async function through(bytes, stream) {
|
|
20736
|
+
const piped = new Blob([bytes]).stream().pipeThrough(stream);
|
|
20737
|
+
return new Uint8Array(await new Response(piped).arrayBuffer());
|
|
20738
|
+
}
|
|
20739
|
+
})(RelayDeflate || (RelayDeflate = {}));
|
|
20532
20740
|
}));
|
|
20533
20741
|
// ../../ta-packages/ta-relay/esm/common/relay-socket.js
|
|
20534
20742
|
var CONNECTING, OPEN, CLOSING, CLOSED, HELLO_MS, RelaySocket;
|
|
@@ -20565,7 +20773,8 @@ var init_relay_socket = __esmMin((() => {
|
|
|
20565
20773
|
t: "hello",
|
|
20566
20774
|
v: 1,
|
|
20567
20775
|
device: pairing.device,
|
|
20568
|
-
nonce: RelayBytes.toBase64(this.nonce)
|
|
20776
|
+
nonce: RelayBytes.toBase64(this.nonce),
|
|
20777
|
+
...RelayDeflate.supported() ? { z: 1 } : {}
|
|
20569
20778
|
};
|
|
20570
20779
|
this.socket.send(JSON.stringify(hello));
|
|
20571
20780
|
this.pingTimer = setInterval(() => this.ping(), (_a = options.pingMs) !== null && _a !== void 0 ? _a : RELAY_PING_MS);
|
|
@@ -20617,6 +20826,7 @@ var init_relay_socket = __esmMin((() => {
|
|
|
20617
20826
|
if (welcome.t !== "ready") throw new Error(welcome.reason);
|
|
20618
20827
|
const cipher = await RelayCipher.derive(RelayBytes.fromBase64(this.pairing.key), this.nonce, RelayBytes.fromBase64(welcome.nonce), "client");
|
|
20619
20828
|
if (await cipher.open(welcome.proof) !== "ta-relay ready") throw new Error("The host did not show the key.");
|
|
20829
|
+
cipher.compress = welcome.z === 1 && RelayDeflate.supported();
|
|
20620
20830
|
this.cipher = cipher;
|
|
20621
20831
|
clearTimeout(this.helloTimer);
|
|
20622
20832
|
this.state = OPEN;
|
|
@@ -20664,41 +20874,202 @@ var init_relay_socket = __esmMin((() => {
|
|
|
20664
20874
|
RelaySocket.CLOSED = CLOSED;
|
|
20665
20875
|
/** The close code when the host does not know the device, or does not show its key. */
|
|
20666
20876
|
RelaySocket.REFUSED = 4403;
|
|
20667
|
-
}));
|
|
20668
|
-
|
|
20669
|
-
var RelayShareUtil;
|
|
20670
|
-
var init_relay_share = __esmMin((() => {
|
|
20877
|
+
})), RELAY_FILES_TIMEOUT_MS, RelayFilesUtil;
|
|
20878
|
+
var init_relay_files = __esmMin((() => {
|
|
20671
20879
|
init_relay_bytes();
|
|
20672
|
-
init_relay_protocol();
|
|
20673
20880
|
init_relay_socket();
|
|
20674
|
-
|
|
20675
|
-
|
|
20676
|
-
|
|
20677
|
-
|
|
20678
|
-
|
|
20679
|
-
|
|
20680
|
-
|
|
20681
|
-
|
|
20682
|
-
});
|
|
20683
|
-
if (share.name) fragment.set("n", share.name);
|
|
20684
|
-
return `${share.relay}${RELAY_SHARE_PATH}#${fragment}`;
|
|
20881
|
+
RELAY_FILES_TIMEOUT_MS = 3e4;
|
|
20882
|
+
(function(RelayFilesUtil) {
|
|
20883
|
+
/** The frame that turns a channel into a channel of files. */
|
|
20884
|
+
function hello() {
|
|
20885
|
+
return {
|
|
20886
|
+
t: "files",
|
|
20887
|
+
v: 1
|
|
20888
|
+
};
|
|
20685
20889
|
}
|
|
20686
|
-
|
|
20687
|
-
|
|
20890
|
+
RelayFilesUtil.hello = hello;
|
|
20891
|
+
/** Whether a frame of a device asks for files, rather than for ta serve's socket (`{t:'files', v:1}`). */
|
|
20892
|
+
function isHello(text) {
|
|
20688
20893
|
try {
|
|
20689
|
-
parse(text);
|
|
20690
|
-
return
|
|
20894
|
+
const frame = JSON.parse(text);
|
|
20895
|
+
return frame.t === "files" && frame.v === 1;
|
|
20691
20896
|
} catch (_a) {
|
|
20692
20897
|
return false;
|
|
20693
20898
|
}
|
|
20694
20899
|
}
|
|
20695
|
-
|
|
20696
|
-
|
|
20697
|
-
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20900
|
+
RelayFilesUtil.isHello = isHello;
|
|
20901
|
+
})(RelayFilesUtil || (RelayFilesUtil = {}));
|
|
20902
|
+
(class {
|
|
20903
|
+
constructor(pairing, options = {}) {
|
|
20904
|
+
this.pairing = pairing;
|
|
20905
|
+
this.options = options;
|
|
20906
|
+
this.called = 1;
|
|
20907
|
+
this.pending = /* @__PURE__ */ new Map();
|
|
20908
|
+
}
|
|
20909
|
+
/** The bytes of a URL of {@link RELAY_FILES_PREFIX}, as ta serve answers them. */
|
|
20910
|
+
async get(url) {
|
|
20911
|
+
if (!url.startsWith("/api/files/")) throw new Error("Ta reads only the files it offers by URL.");
|
|
20912
|
+
await this.connect();
|
|
20913
|
+
const id = this.called++;
|
|
20914
|
+
return new Promise((resolve, reject) => {
|
|
20915
|
+
var _a;
|
|
20916
|
+
const timeout = (_a = this.options.timeoutMs) !== null && _a !== void 0 ? _a : RELAY_FILES_TIMEOUT_MS;
|
|
20917
|
+
const timer = setTimeout(() => this.settle(id, /* @__PURE__ */ new Error("The file took too long to come.")), timeout);
|
|
20918
|
+
this.pending.set(id, {
|
|
20919
|
+
chunks: [],
|
|
20920
|
+
received: 0,
|
|
20921
|
+
resolve,
|
|
20922
|
+
reject,
|
|
20923
|
+
timer
|
|
20924
|
+
});
|
|
20925
|
+
this.send({
|
|
20926
|
+
t: "get",
|
|
20927
|
+
id,
|
|
20928
|
+
url
|
|
20929
|
+
});
|
|
20930
|
+
});
|
|
20931
|
+
}
|
|
20932
|
+
/** Whether the channel is open: the page may keep one for as long as it shows files. */
|
|
20933
|
+
get open() {
|
|
20934
|
+
var _a;
|
|
20935
|
+
return ((_a = this.socket) === null || _a === void 0 ? void 0 : _a.readyState) === RelaySocket.OPEN;
|
|
20936
|
+
}
|
|
20937
|
+
close() {
|
|
20938
|
+
const socket = this.socket;
|
|
20939
|
+
this.socket = void 0;
|
|
20940
|
+
this.opening = void 0;
|
|
20941
|
+
this.fail(/* @__PURE__ */ new Error("The files are closed."));
|
|
20942
|
+
socket === null || socket === void 0 || socket.close();
|
|
20943
|
+
}
|
|
20944
|
+
send(frame) {
|
|
20945
|
+
var _a;
|
|
20946
|
+
(_a = this.socket) === null || _a === void 0 || _a.send(JSON.stringify(frame));
|
|
20947
|
+
}
|
|
20948
|
+
/** Opens the channel, once: the first file asked for opens it. */
|
|
20949
|
+
connect() {
|
|
20950
|
+
var _a;
|
|
20951
|
+
if (((_a = this.socket) === null || _a === void 0 ? void 0 : _a.readyState) === RelaySocket.OPEN) return Promise.resolve();
|
|
20952
|
+
if (!this.opening) {
|
|
20953
|
+
const socket = new RelaySocket(this.pairing);
|
|
20954
|
+
this.socket = socket;
|
|
20955
|
+
this.opening = new Promise((resolve, reject) => {
|
|
20956
|
+
socket.onmessage = ({ data }) => this.receive(data);
|
|
20957
|
+
socket.onopen = () => {
|
|
20958
|
+
this.send(RelayFilesUtil.hello());
|
|
20959
|
+
resolve();
|
|
20960
|
+
};
|
|
20961
|
+
socket.onclose = ({ code }) => {
|
|
20962
|
+
const error = /* @__PURE__ */ new Error(code === RelaySocket.REFUSED ? "This device is no longer paired with the computer." : "The computer is not running Ta, or cannot be reached.");
|
|
20963
|
+
if (this.socket === socket) this.socket = void 0;
|
|
20964
|
+
this.fail(error);
|
|
20965
|
+
reject(error);
|
|
20966
|
+
};
|
|
20967
|
+
});
|
|
20968
|
+
const clear = () => {
|
|
20969
|
+
this.opening = void 0;
|
|
20970
|
+
};
|
|
20971
|
+
this.opening.then(clear, clear);
|
|
20972
|
+
}
|
|
20973
|
+
return this.opening;
|
|
20974
|
+
}
|
|
20975
|
+
receive(text) {
|
|
20976
|
+
var _a, _b;
|
|
20977
|
+
let frame;
|
|
20978
|
+
try {
|
|
20979
|
+
frame = JSON.parse(text);
|
|
20980
|
+
} catch (_c) {
|
|
20981
|
+
this.close();
|
|
20982
|
+
return;
|
|
20983
|
+
}
|
|
20984
|
+
if (!("id" in frame) || typeof frame.id !== "number") return;
|
|
20985
|
+
const pending = this.pending.get(frame.id);
|
|
20986
|
+
if (!pending) return;
|
|
20987
|
+
if (frame.t === "head") pending.head = {
|
|
20988
|
+
type: (_a = frame.type) !== null && _a !== void 0 ? _a : "application/octet-stream",
|
|
20989
|
+
size: (_b = frame.size) !== null && _b !== void 0 ? _b : 0
|
|
20990
|
+
};
|
|
20991
|
+
else if (frame.t === "chunk") {
|
|
20992
|
+
const bytes = RelayBytes.fromBase64(frame.d);
|
|
20993
|
+
pending.received += bytes.length;
|
|
20994
|
+
if (pending.received > 134217728) {
|
|
20995
|
+
this.settle(frame.id, /* @__PURE__ */ new Error("The file is too large to show here."));
|
|
20996
|
+
return;
|
|
20997
|
+
}
|
|
20998
|
+
pending.chunks.push(bytes);
|
|
20999
|
+
} else if (frame.t === "end") {
|
|
21000
|
+
if (!pending.head) {
|
|
21001
|
+
this.settle(frame.id, /* @__PURE__ */ new Error("The file came without its head."));
|
|
21002
|
+
return;
|
|
21003
|
+
}
|
|
21004
|
+
this.finish(frame.id, {
|
|
21005
|
+
type: pending.head.type,
|
|
21006
|
+
size: pending.received,
|
|
21007
|
+
data: RelayBytes.concat(...pending.chunks)
|
|
21008
|
+
});
|
|
21009
|
+
} else if (frame.t === "error") this.settle(frame.id, new Error(frame.message));
|
|
21010
|
+
}
|
|
21011
|
+
settle(id, error) {
|
|
21012
|
+
const pending = this.pending.get(id);
|
|
21013
|
+
if (pending) {
|
|
21014
|
+
this.pending.delete(id);
|
|
21015
|
+
clearTimeout(pending.timer);
|
|
21016
|
+
pending.reject(error);
|
|
21017
|
+
}
|
|
21018
|
+
}
|
|
21019
|
+
finish(id, bytes) {
|
|
21020
|
+
const pending = this.pending.get(id);
|
|
21021
|
+
if (pending) {
|
|
21022
|
+
this.pending.delete(id);
|
|
21023
|
+
clearTimeout(pending.timer);
|
|
21024
|
+
pending.resolve(bytes);
|
|
21025
|
+
}
|
|
21026
|
+
}
|
|
21027
|
+
/** The channel went: what was asked for is not coming. */
|
|
21028
|
+
fail(error) {
|
|
21029
|
+
for (const [id] of [...this.pending]) this.settle(id, error);
|
|
21030
|
+
}
|
|
21031
|
+
static {
|
|
21032
|
+
Object.defineProperty(this, "name", {
|
|
21033
|
+
value: "RelayFiles",
|
|
21034
|
+
configurable: true
|
|
21035
|
+
});
|
|
21036
|
+
}
|
|
21037
|
+
});
|
|
21038
|
+
}));
|
|
21039
|
+
// ../../ta-packages/ta-relay/esm/common/relay-share.js
|
|
21040
|
+
var RelayShareUtil;
|
|
21041
|
+
var init_relay_share = __esmMin((() => {
|
|
21042
|
+
init_relay_bytes();
|
|
21043
|
+
init_relay_protocol();
|
|
21044
|
+
init_relay_socket();
|
|
21045
|
+
(function(RelayShareUtil) {
|
|
21046
|
+
/** `https://<relay>/share#v=1&h=<host>&s=<share>&k=<key>&n=<name>`: the key in the fragment, which is not sent to the relay. */
|
|
21047
|
+
function link(share) {
|
|
21048
|
+
const fragment = new URLSearchParams({
|
|
21049
|
+
v: "1",
|
|
21050
|
+
h: share.host,
|
|
21051
|
+
s: share.share,
|
|
21052
|
+
k: share.key
|
|
21053
|
+
});
|
|
21054
|
+
if (share.name) fragment.set("n", share.name);
|
|
21055
|
+
return `${share.relay}${RELAY_SHARE_PATH}#${fragment}`;
|
|
21056
|
+
}
|
|
21057
|
+
RelayShareUtil.link = link;
|
|
21058
|
+
function is(text) {
|
|
21059
|
+
try {
|
|
21060
|
+
parse(text);
|
|
21061
|
+
return true;
|
|
21062
|
+
} catch (_a) {
|
|
21063
|
+
return false;
|
|
21064
|
+
}
|
|
21065
|
+
}
|
|
21066
|
+
RelayShareUtil.is = is;
|
|
21067
|
+
/** Throws on what is not a link of {@link link}. */
|
|
21068
|
+
function parse(text) {
|
|
21069
|
+
var _a;
|
|
21070
|
+
const url = new URL(text.trim());
|
|
21071
|
+
const fragment = new URLSearchParams(url.hash.slice(1));
|
|
21072
|
+
const [host, share, key] = [
|
|
20702
21073
|
"h",
|
|
20703
21074
|
"s",
|
|
20704
21075
|
"k"
|
|
@@ -20795,19 +21166,175 @@ var init_common = __esmMin((() => {
|
|
|
20795
21166
|
init_qr_code();
|
|
20796
21167
|
init_relay_bytes();
|
|
20797
21168
|
init_relay_cipher();
|
|
21169
|
+
init_relay_files();
|
|
20798
21170
|
init_relay_pairing();
|
|
20799
21171
|
init_relay_protocol();
|
|
20800
21172
|
init_relay_room();
|
|
20801
21173
|
init_relay_share();
|
|
20802
21174
|
init_relay_socket();
|
|
20803
21175
|
}));
|
|
21176
|
+
// ../../ta-packages/ta-relay/esm/node/relay-files-host.js
|
|
21177
|
+
var RelayFilesHost;
|
|
21178
|
+
var init_relay_files_host = __esmMin((() => {
|
|
21179
|
+
init_relay_bytes();
|
|
21180
|
+
init_relay_files();
|
|
21181
|
+
RelayFilesHost = class RelayFilesHost {
|
|
21182
|
+
constructor(options) {
|
|
21183
|
+
this.options = options;
|
|
21184
|
+
this.reading = 0;
|
|
21185
|
+
this.running = /* @__PURE__ */ new Set();
|
|
21186
|
+
this.base = `http://127.0.0.1:${new URL(options.localUrl).port}`;
|
|
21187
|
+
}
|
|
21188
|
+
/** A frame of the device: a file to read, or something of a version it does not know. */
|
|
21189
|
+
async receive(text) {
|
|
21190
|
+
let frame;
|
|
21191
|
+
try {
|
|
21192
|
+
frame = JSON.parse(text);
|
|
21193
|
+
} catch (_a) {
|
|
21194
|
+
return;
|
|
21195
|
+
}
|
|
21196
|
+
if (!frame || typeof frame !== "object" || frame.t !== "get" || typeof frame.url !== "string" || typeof frame.id !== "number") return;
|
|
21197
|
+
await this.read(frame.id, frame.url);
|
|
21198
|
+
}
|
|
21199
|
+
/** The device went: what it asked for is not read to the end. */
|
|
21200
|
+
close() {
|
|
21201
|
+
for (const controller of this.running) controller.abort();
|
|
21202
|
+
this.running.clear();
|
|
21203
|
+
}
|
|
21204
|
+
/** What to fetch for what a device asked, or undefined: a path of {@link RELAY_FILES_PREFIX} of this ta serve alone. */
|
|
21205
|
+
static target(base, url) {
|
|
21206
|
+
let parsed;
|
|
21207
|
+
try {
|
|
21208
|
+
parsed = new URL(url, base);
|
|
21209
|
+
} catch (_a) {
|
|
21210
|
+
return;
|
|
21211
|
+
}
|
|
21212
|
+
if (parsed.origin !== base || !parsed.pathname.startsWith("/api/files/")) return;
|
|
21213
|
+
return base + parsed.pathname + parsed.search;
|
|
21214
|
+
}
|
|
21215
|
+
async read(id, url) {
|
|
21216
|
+
var _a, _b;
|
|
21217
|
+
const target = RelayFilesHost.target(this.base, url);
|
|
21218
|
+
if (!target) {
|
|
21219
|
+
this.options.send({
|
|
21220
|
+
t: "error",
|
|
21221
|
+
id,
|
|
21222
|
+
message: "Ta reads only the files it offers by URL."
|
|
21223
|
+
});
|
|
21224
|
+
return;
|
|
21225
|
+
}
|
|
21226
|
+
if (this.reading >= 4) {
|
|
21227
|
+
this.options.send({
|
|
21228
|
+
t: "error",
|
|
21229
|
+
id,
|
|
21230
|
+
message: "Too many files are loading at once."
|
|
21231
|
+
});
|
|
21232
|
+
return;
|
|
21233
|
+
}
|
|
21234
|
+
const controller = new AbortController();
|
|
21235
|
+
this.running.add(controller);
|
|
21236
|
+
this.reading++;
|
|
21237
|
+
const timer = setTimeout(() => controller.abort(), RELAY_FILES_TIMEOUT_MS);
|
|
21238
|
+
try {
|
|
21239
|
+
const response = await fetch(target, {
|
|
21240
|
+
signal: controller.signal,
|
|
21241
|
+
redirect: "error",
|
|
21242
|
+
headers: { accept: "*/*" }
|
|
21243
|
+
});
|
|
21244
|
+
if (!response.ok) {
|
|
21245
|
+
this.options.send({
|
|
21246
|
+
t: "error",
|
|
21247
|
+
id,
|
|
21248
|
+
message: `The file is not there (${response.status}).`
|
|
21249
|
+
});
|
|
21250
|
+
return;
|
|
21251
|
+
}
|
|
21252
|
+
const length = Number((_a = response.headers.get("content-length")) !== null && _a !== void 0 ? _a : 0);
|
|
21253
|
+
if (length > 134217728) {
|
|
21254
|
+
this.options.send({
|
|
21255
|
+
t: "error",
|
|
21256
|
+
id,
|
|
21257
|
+
message: "The file is too large to show here."
|
|
21258
|
+
});
|
|
21259
|
+
return;
|
|
21260
|
+
}
|
|
21261
|
+
this.options.send({
|
|
21262
|
+
t: "head",
|
|
21263
|
+
id,
|
|
21264
|
+
status: response.status,
|
|
21265
|
+
type: (_b = response.headers.get("content-type")) !== null && _b !== void 0 ? _b : "application/octet-stream",
|
|
21266
|
+
size: length || void 0
|
|
21267
|
+
});
|
|
21268
|
+
if (!response.body) {
|
|
21269
|
+
this.options.send({
|
|
21270
|
+
t: "end",
|
|
21271
|
+
id
|
|
21272
|
+
});
|
|
21273
|
+
return;
|
|
21274
|
+
}
|
|
21275
|
+
let sent = 0;
|
|
21276
|
+
let parts = [];
|
|
21277
|
+
let held = 0;
|
|
21278
|
+
const flush = () => {
|
|
21279
|
+
if (held > 0) {
|
|
21280
|
+
this.options.send({
|
|
21281
|
+
t: "chunk",
|
|
21282
|
+
id,
|
|
21283
|
+
d: RelayBytes.toBase64(RelayBytes.concat(...parts))
|
|
21284
|
+
});
|
|
21285
|
+
parts = [];
|
|
21286
|
+
held = 0;
|
|
21287
|
+
}
|
|
21288
|
+
};
|
|
21289
|
+
for await (const piece of response.body) {
|
|
21290
|
+
const chunk = piece;
|
|
21291
|
+
sent += chunk.length;
|
|
21292
|
+
if (sent > 134217728) {
|
|
21293
|
+
this.options.send({
|
|
21294
|
+
t: "error",
|
|
21295
|
+
id,
|
|
21296
|
+
message: "The file is too large to show here."
|
|
21297
|
+
});
|
|
21298
|
+
return;
|
|
21299
|
+
}
|
|
21300
|
+
parts.push(chunk);
|
|
21301
|
+
held += chunk.length;
|
|
21302
|
+
if (held >= 196608) flush();
|
|
21303
|
+
}
|
|
21304
|
+
flush();
|
|
21305
|
+
this.options.send({
|
|
21306
|
+
t: "end",
|
|
21307
|
+
id
|
|
21308
|
+
});
|
|
21309
|
+
} catch (error) {
|
|
21310
|
+
this.options.send({
|
|
21311
|
+
t: "error",
|
|
21312
|
+
id,
|
|
21313
|
+
message: controller.signal.aborted ? "The file took too long to come." : `The file could not be read: ${error.message}`
|
|
21314
|
+
});
|
|
21315
|
+
} finally {
|
|
21316
|
+
clearTimeout(timer);
|
|
21317
|
+
this.running.delete(controller);
|
|
21318
|
+
this.reading--;
|
|
21319
|
+
}
|
|
21320
|
+
}
|
|
21321
|
+
static {
|
|
21322
|
+
Object.defineProperty(this, "name", {
|
|
21323
|
+
value: "RelayFilesHost",
|
|
21324
|
+
configurable: true
|
|
21325
|
+
});
|
|
21326
|
+
}
|
|
21327
|
+
};
|
|
21328
|
+
}));
|
|
20804
21329
|
// ../../ta-packages/ta-relay/esm/node/relay-host.js
|
|
20805
21330
|
var MAX_RECONNECT_DELAY_MS, HELLO_TIMEOUT_MS, RelayChannel, RelayHost;
|
|
20806
21331
|
var init_relay_host = __esmMin((() => {
|
|
20807
21332
|
init_relay_bytes();
|
|
20808
21333
|
init_relay_cipher();
|
|
21334
|
+
init_relay_files();
|
|
20809
21335
|
init_relay_pairing();
|
|
20810
21336
|
init_relay_protocol();
|
|
21337
|
+
init_relay_files_host();
|
|
20811
21338
|
MAX_RECONNECT_DELAY_MS = 3e4;
|
|
20812
21339
|
HELLO_TIMEOUT_MS = 1e4;
|
|
20813
21340
|
RelayChannel = class {
|
|
@@ -20819,7 +21346,7 @@ var init_relay_host = __esmMin((() => {
|
|
|
20819
21346
|
this.timer = setTimeout(() => this.close(), HELLO_TIMEOUT_MS);
|
|
20820
21347
|
}
|
|
20821
21348
|
async receive(text) {
|
|
20822
|
-
var _a;
|
|
21349
|
+
var _a, _b;
|
|
20823
21350
|
if (!this.cipher) {
|
|
20824
21351
|
await this.hello(text);
|
|
20825
21352
|
return;
|
|
@@ -20827,18 +21354,40 @@ var init_relay_host = __esmMin((() => {
|
|
|
20827
21354
|
let data;
|
|
20828
21355
|
try {
|
|
20829
21356
|
data = await this.cipher.open(text);
|
|
20830
|
-
} catch (
|
|
21357
|
+
} catch (_c) {
|
|
20831
21358
|
this.close();
|
|
20832
21359
|
return;
|
|
20833
21360
|
}
|
|
20834
|
-
if (
|
|
21361
|
+
if (!this.mode) {
|
|
21362
|
+
this.mode = RelayFilesUtil.isHello(data) ? "files" : "rpc";
|
|
21363
|
+
if (this.mode === "files") this.files = new RelayFilesHost({
|
|
21364
|
+
localUrl: this.options.localUrl,
|
|
21365
|
+
send: (frame) => this.sendFrame(frame)
|
|
21366
|
+
});
|
|
21367
|
+
else this.connectLocal(this.cipher);
|
|
21368
|
+
}
|
|
21369
|
+
if (this.mode === "files") {
|
|
21370
|
+
await ((_a = this.files) === null || _a === void 0 ? void 0 : _a.receive(data));
|
|
21371
|
+
return;
|
|
21372
|
+
}
|
|
21373
|
+
if (((_b = this.local) === null || _b === void 0 ? void 0 : _b.readyState) === WebSocket.OPEN) this.local.send(data);
|
|
20835
21374
|
else this.early.push(data);
|
|
20836
21375
|
}
|
|
20837
21376
|
/** From the relay: the device is gone. */
|
|
20838
21377
|
closed() {
|
|
20839
|
-
var _a;
|
|
21378
|
+
var _a, _b;
|
|
20840
21379
|
clearTimeout(this.timer);
|
|
20841
|
-
(_a = this.
|
|
21380
|
+
(_a = this.files) === null || _a === void 0 || _a.close();
|
|
21381
|
+
(_b = this.local) === null || _b === void 0 || _b.close();
|
|
21382
|
+
}
|
|
21383
|
+
/** A frame of the files of the workspace, sealed as the rest. */
|
|
21384
|
+
sendFrame(frame) {
|
|
21385
|
+
var _a;
|
|
21386
|
+
(_a = this.cipher) === null || _a === void 0 || _a.seal(JSON.stringify(frame)).then((sealed) => this.host.send({
|
|
21387
|
+
t: "data",
|
|
21388
|
+
ch: this.id,
|
|
21389
|
+
d: sealed
|
|
21390
|
+
}));
|
|
20842
21391
|
}
|
|
20843
21392
|
async hello(text) {
|
|
20844
21393
|
var _a;
|
|
@@ -20865,13 +21414,16 @@ var init_relay_host = __esmMin((() => {
|
|
|
20865
21414
|
const nonce = RelayBytes.random(16);
|
|
20866
21415
|
const cipher = await RelayCipher.derive(RelayBytes.fromBase64(key), RelayBytes.fromBase64(hello.nonce), nonce, "host");
|
|
20867
21416
|
this.cipher = cipher;
|
|
21417
|
+
const compress = hello.z === 1 && RelayDeflate.supported();
|
|
21418
|
+
const proof = await cipher.seal(RELAY_PROOF);
|
|
21419
|
+
cipher.compress = compress;
|
|
20868
21420
|
this.answer({
|
|
20869
21421
|
t: "ready",
|
|
20870
21422
|
nonce: RelayBytes.toBase64(nonce),
|
|
20871
|
-
proof
|
|
21423
|
+
proof,
|
|
21424
|
+
...compress ? { z: 1 } : {}
|
|
20872
21425
|
});
|
|
20873
21426
|
if (share) await this.sendShare(cipher, share);
|
|
20874
|
-
else this.connectLocal(cipher);
|
|
20875
21427
|
}
|
|
20876
21428
|
/** A package handed on: what it is, its bytes in chunks, the end; then the channel closes. It never reaches ta serve's socket. */
|
|
20877
21429
|
async sendShare(cipher, share) {
|
|
@@ -21086,6 +21638,7 @@ var init_relay_host = __esmMin((() => {
|
|
|
21086
21638
|
// ../../ta-packages/ta-relay/esm/node/index.js
|
|
21087
21639
|
var init_node$1 = __esmMin((() => {
|
|
21088
21640
|
init_common();
|
|
21641
|
+
init_relay_files_host();
|
|
21089
21642
|
init_relay_host();
|
|
21090
21643
|
init_relay_server();
|
|
21091
21644
|
init_relay_store();
|
|
@@ -21633,14 +22186,14 @@ var init_sign_in_flow = __esmMin((() => {
|
|
|
21633
22186
|
};
|
|
21634
22187
|
}));
|
|
21635
22188
|
// ../../ta-packages/ta-host/esm/node/sign-in/ta-sign-in.js
|
|
21636
|
-
var __decorate$
|
|
22189
|
+
var __decorate$21, __metadata$20, TA_SIGN_IN, TaSignIn;
|
|
21637
22190
|
var init_ta_sign_in = __esmMin((() => {
|
|
21638
22191
|
init_common$6();
|
|
21639
22192
|
init_ta_brand();
|
|
21640
22193
|
init_access_store();
|
|
21641
22194
|
init_sign_in_flow();
|
|
21642
22195
|
init_sign_in_provider();
|
|
21643
|
-
__decorate$
|
|
22196
|
+
__decorate$21 = function(decorators, target, key, desc) {
|
|
21644
22197
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
21645
22198
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21646
22199
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -21661,10 +22214,10 @@ var init_ta_sign_in = __esmMin((() => {
|
|
|
21661
22214
|
});
|
|
21662
22215
|
}
|
|
21663
22216
|
};
|
|
21664
|
-
TaSignIn = __decorate$
|
|
22217
|
+
TaSignIn = __decorate$21([Component(TA_SIGN_IN), __metadata$20("design:paramtypes", [])], TaSignIn);
|
|
21665
22218
|
}));
|
|
21666
22219
|
// ../../ta-packages/ta-host/esm/node/ta-access.js
|
|
21667
|
-
var __decorate$
|
|
22220
|
+
var __decorate$20, __metadata$19, LOOPBACK_NAMES, API_PATH, TA_ACCESS, ACCESS_MIDDLEWARE_PRIORITY, TaAccessUtil, TaAccess;
|
|
21668
22221
|
var init_ta_access = __esmMin((() => {
|
|
21669
22222
|
init_common$6();
|
|
21670
22223
|
init_node$5();
|
|
@@ -21674,7 +22227,7 @@ var init_ta_access = __esmMin((() => {
|
|
|
21674
22227
|
init_node$6();
|
|
21675
22228
|
init_host_protocol();
|
|
21676
22229
|
init_ta_sign_in();
|
|
21677
|
-
__decorate$
|
|
22230
|
+
__decorate$20 = function(decorators, target, key, desc) {
|
|
21678
22231
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
21679
22232
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21680
22233
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -21727,6 +22280,25 @@ var init_ta_access = __esmMin((() => {
|
|
|
21727
22280
|
return request.method === "POST" && path.startsWith(`${API_PATH}/`);
|
|
21728
22281
|
}
|
|
21729
22282
|
TaAccessUtil.isHttpCall = isHttpCall;
|
|
22283
|
+
/**
|
|
22284
|
+
* What starts this ta serve (`ta serve --host --port --exec`, the desktop app, the gateway) and is read
|
|
22285
|
+
* once it listens. Left in its environment, every program of its sessions and terminals would take it: a
|
|
22286
|
+
* `ta serve` or a Cell app run there would listen on this one's port, a Ta reached from there would take its token.
|
|
22287
|
+
*/
|
|
22288
|
+
TaAccessUtil.SERVE_ENV = [
|
|
22289
|
+
"CELL_SERVER__HOST",
|
|
22290
|
+
"CELL_SERVER__PORT",
|
|
22291
|
+
"CELL_TA__EXEC__URL",
|
|
22292
|
+
"CELL_TA__EXEC__TOKEN",
|
|
22293
|
+
"TA_EXEC_TOKEN",
|
|
22294
|
+
"TA_SERVE_TOKEN",
|
|
22295
|
+
"TA_SERVE_OPEN_WEB"
|
|
22296
|
+
];
|
|
22297
|
+
/** Removes {@link SERVE_ENV} from `env`, for what this process starts. */
|
|
22298
|
+
function releaseServeEnv(env) {
|
|
22299
|
+
for (const key of TaAccessUtil.SERVE_ENV) delete env[key];
|
|
22300
|
+
}
|
|
22301
|
+
TaAccessUtil.releaseServeEnv = releaseServeEnv;
|
|
21730
22302
|
/** The token goes in the fragment, which the browser does not send to the server or in `Referer`. */
|
|
21731
22303
|
function webUrl(httpUrl, token) {
|
|
21732
22304
|
return `${httpUrl}/#token=${token}`;
|
|
@@ -21769,6 +22341,9 @@ var init_ta_access = __esmMin((() => {
|
|
|
21769
22341
|
constructor() {
|
|
21770
22342
|
this.priority = ACCESS_MIDDLEWARE_PRIORITY;
|
|
21771
22343
|
this.token = process.env.TA_SERVE_TOKEN || TaServeStateUtil.read().token || randomBytes(32).toString("base64url");
|
|
22344
|
+
/** Read before the environment lets them go (TaAccessUtil.releaseServeEnv). */
|
|
22345
|
+
this.chosenToken = !!process.env.TA_SERVE_TOKEN;
|
|
22346
|
+
this.openWeb = !!process.env.TA_SERVE_OPEN_WEB;
|
|
21772
22347
|
this.infoFile = join(TaBrand.agentDir(), TA_SERVE_FILE);
|
|
21773
22348
|
}
|
|
21774
22349
|
allows(request) {
|
|
@@ -21821,14 +22396,15 @@ var init_ta_access = __esmMin((() => {
|
|
|
21821
22396
|
const kept = TaServeStateUtil.read().token;
|
|
21822
22397
|
TaServeStateUtil.write({
|
|
21823
22398
|
port,
|
|
21824
|
-
token:
|
|
22399
|
+
token: this.chosenToken ? kept : this.token
|
|
21825
22400
|
});
|
|
22401
|
+
TaAccessUtil.releaseServeEnv(process.env);
|
|
21826
22402
|
console.log(`ta serve: ${info.url} (token in ${this.infoFile})`);
|
|
21827
|
-
if (
|
|
22403
|
+
if (this.openWeb) {
|
|
21828
22404
|
const url = TaAccessUtil.webUrl(`http://${origin}`, this.token);
|
|
21829
22405
|
console.log(`ta serve: web client at ${url}`);
|
|
21830
22406
|
TaAccessUtil.openBrowser(url);
|
|
21831
|
-
} else if (!TaAccessUtil.isLoopbackHost(this.host)) for (const line of TaAccessUtil.signInLines(this.signIn, port,
|
|
22407
|
+
} else if (!TaAccessUtil.isLoopbackHost(this.host)) for (const line of TaAccessUtil.signInLines(this.signIn, port, this.chosenToken ? void 0 : this.token)) console.log(`ta serve: ${line}`);
|
|
21832
22408
|
}
|
|
21833
22409
|
static {
|
|
21834
22410
|
Object.defineProperty(this, "name", {
|
|
@@ -21837,10 +22413,10 @@ var init_ta_access = __esmMin((() => {
|
|
|
21837
22413
|
});
|
|
21838
22414
|
}
|
|
21839
22415
|
};
|
|
21840
|
-
__decorate$
|
|
21841
|
-
__decorate$
|
|
21842
|
-
__decorate$
|
|
21843
|
-
TaAccess = __decorate$
|
|
22416
|
+
__decorate$20([Value("server.host"), __metadata$19("design:type", String)], TaAccess.prototype, "host", void 0);
|
|
22417
|
+
__decorate$20([Autowired(TaSessionRegistry), __metadata$19("design:type", Object)], TaAccess.prototype, "sessions", void 0);
|
|
22418
|
+
__decorate$20([Autowired(TA_SIGN_IN), __metadata$19("design:type", Function)], TaAccess.prototype, "signIn", void 0);
|
|
22419
|
+
TaAccess = __decorate$20([Component([
|
|
21844
22420
|
TA_ACCESS,
|
|
21845
22421
|
RpcWebSocketGuard,
|
|
21846
22422
|
Middleware,
|
|
@@ -21849,7 +22425,7 @@ var init_ta_access = __esmMin((() => {
|
|
|
21849
22425
|
])], TaAccess);
|
|
21850
22426
|
}));
|
|
21851
22427
|
// ../../ta-packages/ta-host/esm/node/relay-bridge.js
|
|
21852
|
-
var __decorate$
|
|
22428
|
+
var __decorate$19, __metadata$18, RelayBridge_1, RELAY_BRIDGE, WATCH_INTERVAL_MS, RelayBridge, device, TaRelayServerImpl;
|
|
21853
22429
|
var init_relay_bridge = __esmMin((() => {
|
|
21854
22430
|
init_common$6();
|
|
21855
22431
|
init_common$2();
|
|
@@ -21862,7 +22438,7 @@ var init_relay_bridge = __esmMin((() => {
|
|
|
21862
22438
|
init_host_protocol();
|
|
21863
22439
|
init_ta_access();
|
|
21864
22440
|
init_ta_errors();
|
|
21865
|
-
__decorate$
|
|
22441
|
+
__decorate$19 = function(decorators, target, key, desc) {
|
|
21866
22442
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
21867
22443
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21868
22444
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -21920,8 +22496,8 @@ var init_relay_bridge = __esmMin((() => {
|
|
|
21920
22496
|
});
|
|
21921
22497
|
}
|
|
21922
22498
|
};
|
|
21923
|
-
__decorate$
|
|
21924
|
-
RelayBridge = RelayBridge_1 = __decorate$
|
|
22499
|
+
__decorate$19([Autowired(TA_ACCESS), __metadata$18("design:type", Function)], RelayBridge.prototype, "access", void 0);
|
|
22500
|
+
RelayBridge = RelayBridge_1 = __decorate$19([Component([
|
|
21925
22501
|
RELAY_BRIDGE,
|
|
21926
22502
|
ServerAware,
|
|
21927
22503
|
ApplicationLifecycle
|
|
@@ -21992,13 +22568,13 @@ var init_relay_bridge = __esmMin((() => {
|
|
|
21992
22568
|
});
|
|
21993
22569
|
}
|
|
21994
22570
|
};
|
|
21995
|
-
__decorate$
|
|
21996
|
-
__decorate$
|
|
21997
|
-
__decorate$
|
|
21998
|
-
TaRelayServerImpl = __decorate$
|
|
22571
|
+
__decorate$19([Autowired(RELAY_BRIDGE), __metadata$18("design:type", RelayBridge)], TaRelayServerImpl.prototype, "bridge", void 0);
|
|
22572
|
+
__decorate$19([Autowired(WebExtensionCatalog), __metadata$18("design:type", Object)], TaRelayServerImpl.prototype, "catalog", void 0);
|
|
22573
|
+
__decorate$19([Autowired(ExecEnvironmentFactory), __metadata$18("design:type", Object)], TaRelayServerImpl.prototype, "environments", void 0);
|
|
22574
|
+
TaRelayServerImpl = __decorate$19([Rpc(TaRelayServer)], TaRelayServerImpl);
|
|
21999
22575
|
}));
|
|
22000
22576
|
// ../../ta-packages/ta-host/esm/node/remote/pi-directories.js
|
|
22001
|
-
var __decorate$
|
|
22577
|
+
var __decorate$18, __metadata$17, DefaultPiDirectories;
|
|
22002
22578
|
var init_pi_directories = __esmMin((() => {
|
|
22003
22579
|
init_node$7();
|
|
22004
22580
|
init_common$6();
|
|
@@ -22006,7 +22582,7 @@ var init_pi_directories = __esmMin((() => {
|
|
|
22006
22582
|
init_common$1();
|
|
22007
22583
|
init_host_protocol();
|
|
22008
22584
|
init_remote_protocol();
|
|
22009
|
-
__decorate$
|
|
22585
|
+
__decorate$18 = function(decorators, target, key, desc) {
|
|
22010
22586
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22011
22587
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22012
22588
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -22045,19 +22621,19 @@ var init_pi_directories = __esmMin((() => {
|
|
|
22045
22621
|
});
|
|
22046
22622
|
}
|
|
22047
22623
|
};
|
|
22048
|
-
__decorate$
|
|
22049
|
-
__decorate$
|
|
22050
|
-
DefaultPiDirectories = __decorate$
|
|
22624
|
+
__decorate$18([Value(CODING_AGENT_OPTIONS), __metadata$17("design:type", Object)], DefaultPiDirectories.prototype, "codingAgentOptions", void 0);
|
|
22625
|
+
__decorate$18([Value(TA_EXEC_OPTIONS), __metadata$17("design:type", Object)], DefaultPiDirectories.prototype, "execOptions", void 0);
|
|
22626
|
+
DefaultPiDirectories = __decorate$18([Component(PiDirectories)], DefaultPiDirectories);
|
|
22051
22627
|
}));
|
|
22052
22628
|
// ../../ta-packages/ta-host/esm/node/remote/port-forwards.js
|
|
22053
|
-
var __decorate$
|
|
22629
|
+
var __decorate$17, __metadata$16, DefaultPortForwards;
|
|
22054
22630
|
var init_port_forwards = __esmMin((() => {
|
|
22055
22631
|
init_common$6();
|
|
22056
22632
|
init_node$2();
|
|
22057
22633
|
init_common$1();
|
|
22058
22634
|
init_ta_errors();
|
|
22059
22635
|
init_remote_protocol();
|
|
22060
|
-
__decorate$
|
|
22636
|
+
__decorate$17 = function(decorators, target, key, desc) {
|
|
22061
22637
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22062
22638
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22063
22639
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -22180,12 +22756,12 @@ var init_port_forwards = __esmMin((() => {
|
|
|
22180
22756
|
});
|
|
22181
22757
|
}
|
|
22182
22758
|
};
|
|
22183
|
-
__decorate$
|
|
22184
|
-
__decorate$
|
|
22185
|
-
DefaultPortForwards = __decorate$
|
|
22759
|
+
__decorate$17([Autowired(ExecEnvironmentFactory), __metadata$16("design:type", Object)], DefaultPortForwards.prototype, "environments", void 0);
|
|
22760
|
+
__decorate$17([Autowired(RemoteHosts), __metadata$16("design:type", Object)], DefaultPortForwards.prototype, "hosts", void 0);
|
|
22761
|
+
DefaultPortForwards = __decorate$17([Component([PortForwards, ApplicationLifecycle])], DefaultPortForwards);
|
|
22186
22762
|
}));
|
|
22187
22763
|
// ../../ta-packages/ta-host/esm/node/remote/remote-hosts.js
|
|
22188
|
-
var __decorate$
|
|
22764
|
+
var __decorate$16, __metadata$15, PROMPT_TIMEOUT_MS, DefaultRemoteHosts;
|
|
22189
22765
|
var init_remote_hosts = __esmMin((() => {
|
|
22190
22766
|
init_node$7();
|
|
22191
22767
|
init_common$6();
|
|
@@ -22195,7 +22771,7 @@ var init_remote_hosts = __esmMin((() => {
|
|
|
22195
22771
|
init_ta_errors();
|
|
22196
22772
|
init_working_directory();
|
|
22197
22773
|
init_remote_protocol();
|
|
22198
|
-
__decorate$
|
|
22774
|
+
__decorate$16 = function(decorators, target, key, desc) {
|
|
22199
22775
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22200
22776
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22201
22777
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -22269,11 +22845,6 @@ var init_remote_hosts = __esmMin((() => {
|
|
|
22269
22845
|
await this.disconnect(host);
|
|
22270
22846
|
this.workingDirectory.removeRecentHost(host);
|
|
22271
22847
|
}
|
|
22272
|
-
async resolve(location) {
|
|
22273
|
-
const remote = this.parse(location);
|
|
22274
|
-
if (!remote || remote.path) return location;
|
|
22275
|
-
return TaLocation.ssh(remote.host, (await this.client(remote.host).info()).cwd);
|
|
22276
|
-
}
|
|
22277
22848
|
async disconnect(host) {
|
|
22278
22849
|
const ssh = this.hosts.get(host);
|
|
22279
22850
|
this.hosts.delete(host);
|
|
@@ -22340,13 +22911,6 @@ var init_remote_hosts = __esmMin((() => {
|
|
|
22340
22911
|
var _b;
|
|
22341
22912
|
return (_b = (_a = this.hosts.get(host)) === null || _a === void 0 ? void 0 : _a.client.connected) !== null && _b !== void 0 ? _b : false;
|
|
22342
22913
|
}
|
|
22343
|
-
parse(location) {
|
|
22344
|
-
try {
|
|
22345
|
-
return TaLocation.parse(location);
|
|
22346
|
-
} catch (error) {
|
|
22347
|
-
throw TaErrors.invalidArgument(error.message, "Write ssh://<host>/<absolute path>.");
|
|
22348
|
-
}
|
|
22349
|
-
}
|
|
22350
22914
|
static {
|
|
22351
22915
|
Object.defineProperty(this, "name", {
|
|
22352
22916
|
value: "DefaultRemoteHosts",
|
|
@@ -22354,13 +22918,13 @@ var init_remote_hosts = __esmMin((() => {
|
|
|
22354
22918
|
});
|
|
22355
22919
|
}
|
|
22356
22920
|
};
|
|
22357
|
-
__decorate$
|
|
22358
|
-
__decorate$
|
|
22359
|
-
__decorate$
|
|
22360
|
-
DefaultRemoteHosts = __decorate$
|
|
22921
|
+
__decorate$16([Value(TA_REMOTE_OPTIONS), __metadata$15("design:type", Object)], DefaultRemoteHosts.prototype, "options", void 0);
|
|
22922
|
+
__decorate$16([Value(CODING_AGENT_OPTIONS), __metadata$15("design:type", Object)], DefaultRemoteHosts.prototype, "codingAgentOptions", void 0);
|
|
22923
|
+
__decorate$16([Autowired(TaWorkingDirectory), __metadata$15("design:type", Object)], DefaultRemoteHosts.prototype, "workingDirectory", void 0);
|
|
22924
|
+
DefaultRemoteHosts = __decorate$16([Component([RemoteHosts, ApplicationLifecycle])], DefaultRemoteHosts);
|
|
22361
22925
|
}));
|
|
22362
22926
|
// ../../ta-packages/ta-host/esm/node/remote/remote-server-impl.js
|
|
22363
|
-
var __decorate$
|
|
22927
|
+
var __decorate$15, __metadata$14, TaRemoteServerImpl;
|
|
22364
22928
|
var init_remote_server_impl = __esmMin((() => {
|
|
22365
22929
|
init_common$6();
|
|
22366
22930
|
init_common$2();
|
|
@@ -22369,7 +22933,7 @@ var init_remote_server_impl = __esmMin((() => {
|
|
|
22369
22933
|
init_common$1();
|
|
22370
22934
|
init_ta_errors();
|
|
22371
22935
|
init_remote_protocol();
|
|
22372
|
-
__decorate$
|
|
22936
|
+
__decorate$15 = function(decorators, target, key, desc) {
|
|
22373
22937
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22374
22938
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22375
22939
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -22389,7 +22953,7 @@ var init_remote_server_impl = __esmMin((() => {
|
|
|
22389
22953
|
return TaErrors.guard(() => this.hosts.remove(host));
|
|
22390
22954
|
}
|
|
22391
22955
|
resolveLocation(location) {
|
|
22392
|
-
return TaErrors.guard(() => this.
|
|
22956
|
+
return TaErrors.guard(() => this.environments.resolve(location));
|
|
22393
22957
|
}
|
|
22394
22958
|
forwardPort(port, cwd) {
|
|
22395
22959
|
return TaErrors.guard(async () => this.ports.forward(cwd || await this.environments.defaultCwd(), port));
|
|
@@ -22416,10 +22980,10 @@ var init_remote_server_impl = __esmMin((() => {
|
|
|
22416
22980
|
});
|
|
22417
22981
|
}
|
|
22418
22982
|
};
|
|
22419
|
-
__decorate$
|
|
22420
|
-
__decorate$
|
|
22421
|
-
__decorate$
|
|
22422
|
-
TaRemoteServerImpl = __decorate$
|
|
22983
|
+
__decorate$15([Autowired(RemoteHosts), __metadata$14("design:type", Object)], TaRemoteServerImpl.prototype, "hosts", void 0);
|
|
22984
|
+
__decorate$15([Autowired(PortForwards), __metadata$14("design:type", Object)], TaRemoteServerImpl.prototype, "ports", void 0);
|
|
22985
|
+
__decorate$15([Autowired(ExecEnvironmentFactory), __metadata$14("design:type", Object)], TaRemoteServerImpl.prototype, "environments", void 0);
|
|
22986
|
+
TaRemoteServerImpl = __decorate$15([Rpc(TaRemoteServer)], TaRemoteServerImpl);
|
|
22423
22987
|
}));
|
|
22424
22988
|
// ../../ta-packages/ta-host/esm/node/remote/index.js
|
|
22425
22989
|
var init_remote = __esmMin((() => {
|
|
@@ -22534,6 +23098,12 @@ var init_remote_ui_context = __esmMin((() => {
|
|
|
22534
23098
|
this.keep(`widget:${key}`, (content === null || content === void 0 ? void 0 : content.length) ? request : void 0);
|
|
22535
23099
|
}
|
|
22536
23100
|
}
|
|
23101
|
+
setWorkingMessage(message) {
|
|
23102
|
+
this.publish({
|
|
23103
|
+
type: "working_message",
|
|
23104
|
+
message: message || void 0
|
|
23105
|
+
});
|
|
23106
|
+
}
|
|
22537
23107
|
setTitle(title) {
|
|
22538
23108
|
this.tell({
|
|
22539
23109
|
method: "setTitle",
|
|
@@ -22555,7 +23125,6 @@ var init_remote_ui_context = __esmMin((() => {
|
|
|
22555
23125
|
onTerminalInput() {
|
|
22556
23126
|
return () => void 0;
|
|
22557
23127
|
}
|
|
22558
|
-
setWorkingMessage() {}
|
|
22559
23128
|
setWorkingVisible() {}
|
|
22560
23129
|
setWorkingIndicator() {}
|
|
22561
23130
|
setHiddenThinkingLabel() {}
|
|
@@ -22638,6 +23207,8 @@ var init_session_info_util = __esmMin((() => {
|
|
|
22638
23207
|
init_common$1();
|
|
22639
23208
|
(function(SessionInfoUtil) {
|
|
22640
23209
|
const LENGTH = 120;
|
|
23210
|
+
/** Of the text of the last message, what lastMessage reads: its lines are joined, many of them empty or marks only. */
|
|
23211
|
+
const PREVIEW_READ = 2e3;
|
|
22641
23212
|
/**
|
|
22642
23213
|
* The first line of the first message of the user that has text, without its context, cut to a title's length;
|
|
22643
23214
|
* a skill the user ran is `/skill:name` and what follows, not the skill's file.
|
|
@@ -22645,13 +23216,27 @@ var init_session_info_util = __esmMin((() => {
|
|
|
22645
23216
|
function firstMessage(messages) {
|
|
22646
23217
|
for (const message of messages) {
|
|
22647
23218
|
if (message.role !== "user") continue;
|
|
22648
|
-
const said = TaMessageContext.strip(text(message.content));
|
|
23219
|
+
const said = TaImageNote.strip(TaMessageContext.strip(text(message.content)));
|
|
22649
23220
|
const skill = TaSkillUse.parse(said);
|
|
22650
23221
|
const line = (skill ? TaSkillUse.command(skill) : said).split("\n").map((part) => part.trim()).find(Boolean);
|
|
22651
23222
|
if (line) return line.length > LENGTH ? `${line.slice(0, 119)}…` : line;
|
|
22652
23223
|
}
|
|
22653
23224
|
}
|
|
22654
23225
|
SessionInfoUtil.firstMessage = firstMessage;
|
|
23226
|
+
/**
|
|
23227
|
+
* The text of the last message of the user or the agent that has some, on one line and cut to a preview's
|
|
23228
|
+
* length, as a messaging app shows the last thing said under its name: without its context, the marks of
|
|
23229
|
+
* markdown at the start of its lines, and the thinking and tool calls of the agent.
|
|
23230
|
+
*/
|
|
23231
|
+
function lastMessage(messages) {
|
|
23232
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
23233
|
+
const message = messages[i];
|
|
23234
|
+
if (message.role !== "user" && message.role !== "assistant") continue;
|
|
23235
|
+
const line = (message.role === "user" ? TaImageNote.strip(TaMessageContext.strip(text(message.content))) : TaAgentSummary.strip(text(message.content))).slice(0, PREVIEW_READ).split("\n").map((part) => part.replace(/^\s*(?:#{1,6}\s+|>\s*|[-*+]\s+|\d+\.\s+)/, "").replace(/[*_`]{1,3}/g, "").trim()).filter(Boolean).join(" ").replace(/\s+/g, " ");
|
|
23236
|
+
if (line) return line.length > LENGTH ? `${line.slice(0, 119)}…` : line;
|
|
23237
|
+
}
|
|
23238
|
+
}
|
|
23239
|
+
SessionInfoUtil.lastMessage = lastMessage;
|
|
22655
23240
|
/** The time of the last message that has one, else `fallback`. */
|
|
22656
23241
|
function updatedAt(messages, fallback) {
|
|
22657
23242
|
for (let i = messages.length - 1; i >= 0; i--) {
|
|
@@ -22671,14 +23256,14 @@ var init_session_info_util = __esmMin((() => {
|
|
|
22671
23256
|
})(SessionInfoUtil || (SessionInfoUtil = {}));
|
|
22672
23257
|
}));
|
|
22673
23258
|
// ../../ta-packages/ta-host/esm/node/session-catalog.js
|
|
22674
|
-
var __decorate$
|
|
23259
|
+
var __decorate$14, __metadata$13, BATCH, SessionCatalogUtil, DefaultTaSessionCatalog;
|
|
22675
23260
|
var init_session_catalog = __esmMin((() => {
|
|
22676
23261
|
init_node$7();
|
|
22677
23262
|
init_common$6();
|
|
22678
23263
|
init_host_protocol();
|
|
22679
23264
|
init_remote_protocol();
|
|
22680
23265
|
init_session_info_util();
|
|
22681
|
-
__decorate$
|
|
23266
|
+
__decorate$14 = function(decorators, target, key, desc) {
|
|
22682
23267
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22683
23268
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
22684
23269
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -22739,6 +23324,7 @@ var init_session_catalog = __esmMin((() => {
|
|
|
22739
23324
|
let header;
|
|
22740
23325
|
let sessionName;
|
|
22741
23326
|
let firstMessage;
|
|
23327
|
+
const messages = [];
|
|
22742
23328
|
let messageCount = 0;
|
|
22743
23329
|
let updatedAt;
|
|
22744
23330
|
const marks = [];
|
|
@@ -22756,6 +23342,7 @@ var init_session_catalog = __esmMin((() => {
|
|
|
22756
23342
|
const message = entry.message;
|
|
22757
23343
|
messageCount++;
|
|
22758
23344
|
firstMessage !== null && firstMessage !== void 0 || (firstMessage = SessionInfoUtil.firstMessage([message]));
|
|
23345
|
+
messages.push(message);
|
|
22759
23346
|
if (typeof message.timestamp === "number") updatedAt = Math.max(updatedAt !== null && updatedAt !== void 0 ? updatedAt : 0, message.timestamp);
|
|
22760
23347
|
}
|
|
22761
23348
|
}
|
|
@@ -22767,6 +23354,7 @@ var init_session_catalog = __esmMin((() => {
|
|
|
22767
23354
|
piCwd: typeof header.cwd === "string" ? header.cwd : "",
|
|
22768
23355
|
sessionName,
|
|
22769
23356
|
firstMessage,
|
|
23357
|
+
lastMessage: SessionInfoUtil.lastMessage(messages),
|
|
22770
23358
|
messageCount,
|
|
22771
23359
|
createdAt,
|
|
22772
23360
|
updatedAt: updatedAt !== null && updatedAt !== void 0 ? updatedAt : createdAt,
|
|
@@ -22789,10 +23377,11 @@ var init_session_catalog = __esmMin((() => {
|
|
|
22789
23377
|
/** By file: its size and time when read, and what it held. */
|
|
22790
23378
|
this.cache = /* @__PURE__ */ new Map();
|
|
22791
23379
|
}
|
|
22792
|
-
async list() {
|
|
23380
|
+
async list(open = /* @__PURE__ */ new Set()) {
|
|
22793
23381
|
const files = await this.files(await this.sessionsDir());
|
|
23382
|
+
const closed = files.filter((file) => !open.has(file));
|
|
22794
23383
|
const sessions = [];
|
|
22795
|
-
for (let i = 0; i <
|
|
23384
|
+
for (let i = 0; i < closed.length; i += BATCH) await Promise.all(closed.slice(i, i + BATCH).map(async (file) => {
|
|
22796
23385
|
const summary = await this.summary(file);
|
|
22797
23386
|
if (summary) {
|
|
22798
23387
|
const { piCwd, ...info } = summary;
|
|
@@ -22841,9 +23430,9 @@ var init_session_catalog = __esmMin((() => {
|
|
|
22841
23430
|
});
|
|
22842
23431
|
}
|
|
22843
23432
|
};
|
|
22844
|
-
__decorate$
|
|
22845
|
-
__decorate$
|
|
22846
|
-
DefaultTaSessionCatalog = __decorate$
|
|
23433
|
+
__decorate$14([Value(CODING_AGENT_OPTIONS), __metadata$13("design:type", Object)], DefaultTaSessionCatalog.prototype, "codingAgentOptions", void 0);
|
|
23434
|
+
__decorate$14([Autowired(PiDirectories), __metadata$13("design:type", Object)], DefaultTaSessionCatalog.prototype, "directories", void 0);
|
|
23435
|
+
DefaultTaSessionCatalog = __decorate$14([Component(TaSessionCatalog)], DefaultTaSessionCatalog);
|
|
22847
23436
|
}));
|
|
22848
23437
|
// ../../ta-packages/ta-host/esm/node/session-files.js
|
|
22849
23438
|
var ExecSessionFiles;
|
|
@@ -22880,6 +23469,72 @@ var init_session_files = __esmMin((() => {
|
|
|
22880
23469
|
}
|
|
22881
23470
|
};
|
|
22882
23471
|
}));
|
|
23472
|
+
// ../../ta-packages/ta-host/esm/node/session-handles.js
|
|
23473
|
+
var __decorate$13, TaSessionHandles, MAX_HANDLES, TaSessionHandlesImpl;
|
|
23474
|
+
var init_session_handles = __esmMin((() => {
|
|
23475
|
+
init_common$6();
|
|
23476
|
+
init_ta_brand();
|
|
23477
|
+
__decorate$13 = function(decorators, target, key, desc) {
|
|
23478
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23479
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23480
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23481
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23482
|
+
};
|
|
23483
|
+
TaSessionHandles = Symbol("TaSessionHandles");
|
|
23484
|
+
MAX_HANDLES = 200;
|
|
23485
|
+
TaSessionHandlesImpl = class TaSessionHandlesImpl {
|
|
23486
|
+
constructor() {
|
|
23487
|
+
this.file = join(TaBrand.agentDir(), "ta-sessions.json");
|
|
23488
|
+
}
|
|
23489
|
+
get(sessionId) {
|
|
23490
|
+
return this.read().get(sessionId);
|
|
23491
|
+
}
|
|
23492
|
+
idOf(sessionFile) {
|
|
23493
|
+
for (const [id, handle] of this.read()) if (handle.sessionFile === sessionFile) return id;
|
|
23494
|
+
}
|
|
23495
|
+
set(sessionId, handle) {
|
|
23496
|
+
const handles = this.read();
|
|
23497
|
+
for (const [id, other] of handles) if (id !== sessionId && other.sessionFile === handle.sessionFile) handles.delete(id);
|
|
23498
|
+
handles.delete(sessionId);
|
|
23499
|
+
handles.set(sessionId, handle);
|
|
23500
|
+
for (const id of handles.keys()) {
|
|
23501
|
+
if (handles.size <= MAX_HANDLES) break;
|
|
23502
|
+
handles.delete(id);
|
|
23503
|
+
}
|
|
23504
|
+
this.write(handles);
|
|
23505
|
+
}
|
|
23506
|
+
delete(sessionId) {
|
|
23507
|
+
const handles = this.read();
|
|
23508
|
+
if (handles.delete(sessionId)) this.write(handles);
|
|
23509
|
+
}
|
|
23510
|
+
read() {
|
|
23511
|
+
if (!this.cache) {
|
|
23512
|
+
this.cache = /* @__PURE__ */ new Map();
|
|
23513
|
+
try {
|
|
23514
|
+
const data = JSON.parse(readFileSync(this.file, "utf8"));
|
|
23515
|
+
for (const [id, handle] of Object.entries(data && typeof data === "object" && !Array.isArray(data) ? data : {})) {
|
|
23516
|
+
const { sessionFile, cwd } = handle !== null && handle !== void 0 ? handle : {};
|
|
23517
|
+
if (typeof sessionFile === "string" && typeof cwd === "string") this.cache.set(id, handle);
|
|
23518
|
+
}
|
|
23519
|
+
} catch (_a) {}
|
|
23520
|
+
}
|
|
23521
|
+
return this.cache;
|
|
23522
|
+
}
|
|
23523
|
+
write(handles) {
|
|
23524
|
+
try {
|
|
23525
|
+
writeFileSync(`${this.file}.tmp`, `${JSON.stringify(Object.fromEntries(handles))}\n`, { mode: 384 });
|
|
23526
|
+
renameSync(`${this.file}.tmp`, this.file);
|
|
23527
|
+
} catch (_a) {}
|
|
23528
|
+
}
|
|
23529
|
+
static {
|
|
23530
|
+
Object.defineProperty(this, "name", {
|
|
23531
|
+
value: "TaSessionHandlesImpl",
|
|
23532
|
+
configurable: true
|
|
23533
|
+
});
|
|
23534
|
+
}
|
|
23535
|
+
};
|
|
23536
|
+
TaSessionHandlesImpl = __decorate$13([Component(TaSessionHandles)], TaSessionHandlesImpl);
|
|
23537
|
+
}));
|
|
22883
23538
|
// ../../ta-packages/ta-host/esm/node/session-storage/session-storage-protocol.js
|
|
22884
23539
|
var LeaseHeldError, StaleLeaseError, SessionLeaseUtil;
|
|
22885
23540
|
var init_session_storage_protocol = __esmMin((() => {
|
|
@@ -23542,7 +24197,11 @@ var init_sign_in_pages = __esmMin((() => {
|
|
|
23542
24197
|
function cookie(header, name) {
|
|
23543
24198
|
for (const part of (header !== null && header !== void 0 ? header : "").split(";")) {
|
|
23544
24199
|
const [key, ...value] = part.trim().split("=");
|
|
23545
|
-
if (key === name)
|
|
24200
|
+
if (key === name) try {
|
|
24201
|
+
return decodeURIComponent(value.join("="));
|
|
24202
|
+
} catch (_a) {
|
|
24203
|
+
return;
|
|
24204
|
+
}
|
|
23546
24205
|
}
|
|
23547
24206
|
}
|
|
23548
24207
|
SignInPageUtil.cookie = cookie;
|
|
@@ -23703,17 +24362,35 @@ var init_sign_in = __esmMin((() => {
|
|
|
23703
24362
|
init_ta_sign_in();
|
|
23704
24363
|
}));
|
|
23705
24364
|
// ../../ta-packages/ta-host/esm/node/ta-event-util.js
|
|
23706
|
-
var TaEventUtil;
|
|
24365
|
+
var leaned, TaEventUtil;
|
|
23707
24366
|
var init_ta_event_util = __esmMin((() => {
|
|
24367
|
+
leaned = /* @__PURE__ */ new WeakMap();
|
|
23708
24368
|
(function(TaEventUtil) {
|
|
23709
24369
|
/**
|
|
23710
24370
|
* An event of pi as it goes on the wire, the JSON form of pi's RPC and JSON modes (pi does not export
|
|
23711
24371
|
* its function). pi's `message_update` holds the whole message so far: sent as is, a reply would cost
|
|
23712
|
-
* the square of its length.
|
|
24372
|
+
* the square of its length. The images of tool results go without their bytes (`leanMessage`).
|
|
23713
24373
|
*/
|
|
23714
24374
|
function toWire(event) {
|
|
23715
24375
|
var _a;
|
|
23716
|
-
|
|
24376
|
+
switch (event.type) {
|
|
24377
|
+
case "message_update": break;
|
|
24378
|
+
case "message_start":
|
|
24379
|
+
case "message_end": return withLean(event, "message", leanMessage(event.message));
|
|
24380
|
+
case "tool_execution_update": return withLean(event, "partialResult", leanResult(event.partialResult));
|
|
24381
|
+
case "tool_execution_end": return withLean(event, "result", leanResult(event.result));
|
|
24382
|
+
case "turn_end": {
|
|
24383
|
+
const message = leanMessage(event.message);
|
|
24384
|
+
const toolResults = leanAll(event.toolResults);
|
|
24385
|
+
return message === event.message && toolResults === event.toolResults ? event : {
|
|
24386
|
+
...event,
|
|
24387
|
+
message,
|
|
24388
|
+
toolResults
|
|
24389
|
+
};
|
|
24390
|
+
}
|
|
24391
|
+
case "agent_end": return withLean(event, "messages", leanAll(event.messages));
|
|
24392
|
+
default: return event;
|
|
24393
|
+
}
|
|
23717
24394
|
const { partial, ...delta } = event.assistantMessageEvent;
|
|
23718
24395
|
const block = delta.type === "toolcall_start" ? partial === null || partial === void 0 ? void 0 : partial.content[(_a = delta.contentIndex) !== null && _a !== void 0 ? _a : -1] : void 0;
|
|
23719
24396
|
const assistantMessageEvent = block ? {
|
|
@@ -23728,6 +24405,58 @@ var init_ta_event_util = __esmMin((() => {
|
|
|
23728
24405
|
};
|
|
23729
24406
|
}
|
|
23730
24407
|
TaEventUtil.toWire = toWire;
|
|
24408
|
+
/**
|
|
24409
|
+
* A message as clients get it: a tool's result keeps its images' kind but not their bytes (`data` is
|
|
24410
|
+
* empty). Clients do not show them (the model reads them), and screenshots are most of the bytes of a
|
|
24411
|
+
* conversation that has them: on a slow network a page of it would be one picture nobody sees.
|
|
24412
|
+
*/
|
|
24413
|
+
function leanMessage(message) {
|
|
24414
|
+
return (message === null || message === void 0 ? void 0 : message.role) === "toolResult" ? leanResult(message) : message;
|
|
24415
|
+
}
|
|
24416
|
+
TaEventUtil.leanMessage = leanMessage;
|
|
24417
|
+
/** The result of a tool, or a message of one, without the bytes of its images. */
|
|
24418
|
+
function leanResult(result) {
|
|
24419
|
+
const content = result === null || result === void 0 ? void 0 : result.content;
|
|
24420
|
+
if (!result || typeof result !== "object" || !Array.isArray(content)) return result;
|
|
24421
|
+
const known = leaned.get(result);
|
|
24422
|
+
if (known) return known;
|
|
24423
|
+
const lean = content.some((block) => (block === null || block === void 0 ? void 0 : block.type) === "image" && block.data) ? {
|
|
24424
|
+
...result,
|
|
24425
|
+
content: content.map((block) => (block === null || block === void 0 ? void 0 : block.type) === "image" ? {
|
|
24426
|
+
type: "image",
|
|
24427
|
+
mimeType: block.mimeType,
|
|
24428
|
+
data: ""
|
|
24429
|
+
} : block)
|
|
24430
|
+
} : result;
|
|
24431
|
+
leaned.set(result, lean);
|
|
24432
|
+
return lean;
|
|
24433
|
+
}
|
|
24434
|
+
TaEventUtil.leanResult = leanResult;
|
|
24435
|
+
/** A conversation as clients get it: its messages and the results of its calls lean. */
|
|
24436
|
+
function leanConversation(conversation) {
|
|
24437
|
+
const tools = {};
|
|
24438
|
+
for (const [id, run] of Object.entries(conversation.tools)) tools[id] = run.result === void 0 ? run : {
|
|
24439
|
+
...run,
|
|
24440
|
+
result: leanResult(run.result)
|
|
24441
|
+
};
|
|
24442
|
+
return {
|
|
24443
|
+
...conversation,
|
|
24444
|
+
messages: leanAll(conversation.messages),
|
|
24445
|
+
tools
|
|
24446
|
+
};
|
|
24447
|
+
}
|
|
24448
|
+
TaEventUtil.leanConversation = leanConversation;
|
|
24449
|
+
function leanAll(messages) {
|
|
24450
|
+
if (!Array.isArray(messages)) return messages;
|
|
24451
|
+
const lean = messages.map(leanMessage);
|
|
24452
|
+
return lean.every((message, index) => message === messages[index]) ? messages : lean;
|
|
24453
|
+
}
|
|
24454
|
+
function withLean(event, key, value) {
|
|
24455
|
+
return value === event[key] ? event : {
|
|
24456
|
+
...event,
|
|
24457
|
+
[key]: value
|
|
24458
|
+
};
|
|
24459
|
+
}
|
|
23731
24460
|
})(TaEventUtil || (TaEventUtil = {}));
|
|
23732
24461
|
}));
|
|
23733
24462
|
// ../../ta-packages/ta-host/esm/node/ta-server-impl.js
|
|
@@ -23741,7 +24470,6 @@ var init_ta_server_impl = __esmMin((() => {
|
|
|
23741
24470
|
init_ta_brand();
|
|
23742
24471
|
init_common$1();
|
|
23743
24472
|
init_host_protocol();
|
|
23744
|
-
init_remote_protocol();
|
|
23745
24473
|
init_session_info_util();
|
|
23746
24474
|
init_ta_errors();
|
|
23747
24475
|
init_working_directory();
|
|
@@ -23766,7 +24494,7 @@ var init_ta_server_impl = __esmMin((() => {
|
|
|
23766
24494
|
async setWorkingDirectory(cwd) {
|
|
23767
24495
|
return this.guard(async () => {
|
|
23768
24496
|
var _a;
|
|
23769
|
-
const path = typeof cwd === "string" && cwd.trim() ? await this.
|
|
24497
|
+
const path = typeof cwd === "string" && cwd.trim() ? await this.environments.resolve(cwd.trim()) : "";
|
|
23770
24498
|
const env = path ? this.environments.create(path) : void 0;
|
|
23771
24499
|
if (!env || !((_a = await env.stat(env.cwd)) === null || _a === void 0 ? void 0 : _a.isDirectory)) throw TaErrors.invalidArgument(`${cwd} is not a directory.`, "Pass the absolute path of a directory that exists on the server, or an ssh:// location.");
|
|
23772
24500
|
this.workingDirectory.set(path);
|
|
@@ -23784,8 +24512,11 @@ var init_ta_server_impl = __esmMin((() => {
|
|
|
23784
24512
|
}
|
|
23785
24513
|
listSavedSessions() {
|
|
23786
24514
|
return this.guard(async () => {
|
|
23787
|
-
const open = new Set(this.sessions.list().
|
|
23788
|
-
|
|
24515
|
+
const open = new Set(this.sessions.list().flatMap((session) => {
|
|
24516
|
+
var _a;
|
|
24517
|
+
return (_a = session.pi.sessionFile) !== null && _a !== void 0 ? _a : [];
|
|
24518
|
+
}));
|
|
24519
|
+
return this.catalog.list(open);
|
|
23789
24520
|
});
|
|
23790
24521
|
}
|
|
23791
24522
|
attach(sessionId, afterSeq, options) {
|
|
@@ -23795,7 +24526,10 @@ var init_ta_server_impl = __esmMin((() => {
|
|
|
23795
24526
|
return this.on(sessionId, (session) => session.earlierMessages(before !== null && before !== void 0 ? before : void 0, timestamp !== null && timestamp !== void 0 ? timestamp : void 0, budget));
|
|
23796
24527
|
}
|
|
23797
24528
|
detach(sessionId) {
|
|
23798
|
-
return this.
|
|
24529
|
+
return this.guard(async () => {
|
|
24530
|
+
var _a;
|
|
24531
|
+
(_a = this.sessions.list().find((session) => session.id === sessionId)) === null || _a === void 0 || _a.detach(this.sessions.channel(RpcContext.requireConnection()));
|
|
24532
|
+
});
|
|
23799
24533
|
}
|
|
23800
24534
|
respondUi(sessionId, response) {
|
|
23801
24535
|
return this.on(sessionId, (session) => session.respondUi(response));
|
|
@@ -24021,7 +24755,7 @@ var init_ta_server_impl = __esmMin((() => {
|
|
|
24021
24755
|
});
|
|
24022
24756
|
}
|
|
24023
24757
|
on(sessionId, command) {
|
|
24024
|
-
return this.guard(async () => command(this.sessions.
|
|
24758
|
+
return this.guard(async () => command(await this.sessions.resolve(sessionId)));
|
|
24025
24759
|
}
|
|
24026
24760
|
guard(command) {
|
|
24027
24761
|
return TaErrors.guard(command);
|
|
@@ -24036,7 +24770,6 @@ var init_ta_server_impl = __esmMin((() => {
|
|
|
24036
24770
|
__decorate$8([Autowired(TaSessionRegistry), __metadata$8("design:type", Object)], TaServerImpl.prototype, "sessions", void 0);
|
|
24037
24771
|
__decorate$8([Autowired(ExecEnvironmentFactory), __metadata$8("design:type", Object)], TaServerImpl.prototype, "environments", void 0);
|
|
24038
24772
|
__decorate$8([Autowired(TaWorkingDirectory), __metadata$8("design:type", Object)], TaServerImpl.prototype, "workingDirectory", void 0);
|
|
24039
|
-
__decorate$8([Autowired(RemoteHosts), __metadata$8("design:type", Object)], TaServerImpl.prototype, "remoteHosts", void 0);
|
|
24040
24773
|
__decorate$8([Autowired(TaSessionCatalog), __metadata$8("design:type", Object)], TaServerImpl.prototype, "catalog", void 0);
|
|
24041
24774
|
TaServerImpl = __decorate$8([Rpc(TaServer)], TaServerImpl);
|
|
24042
24775
|
}));
|
|
@@ -24203,15 +24936,16 @@ var init_ta_session = __esmMin((() => {
|
|
|
24203
24936
|
init_ta_event_util();
|
|
24204
24937
|
TaSession = class {
|
|
24205
24938
|
constructor(context) {
|
|
24939
|
+
var _a;
|
|
24206
24940
|
this.context = context;
|
|
24207
|
-
this.id = randomUUID();
|
|
24208
24941
|
this.createdAt = Date.now();
|
|
24209
24942
|
this.receipts = new ReceiptBook();
|
|
24210
24943
|
this.channels = /* @__PURE__ */ new Set();
|
|
24211
24944
|
this.live = new LiveRun();
|
|
24212
24945
|
this.started = false;
|
|
24213
24946
|
this.runtime = context.runtime;
|
|
24214
|
-
this.
|
|
24947
|
+
this.id = (_a = context.id) !== null && _a !== void 0 ? _a : randomUUID();
|
|
24948
|
+
this.log = new EventLog(this.id, context.options.eventBufferBytes, context.id ? Date.now() : 0);
|
|
24215
24949
|
this.ui = new RemoteUiContext((event) => this.publish(event));
|
|
24216
24950
|
context.clientTools.connect((event) => this.publish(event));
|
|
24217
24951
|
}
|
|
@@ -24238,6 +24972,7 @@ var init_ta_session = __esmMin((() => {
|
|
|
24238
24972
|
sessionFile: pi.sessionFile,
|
|
24239
24973
|
sessionName: pi.sessionName,
|
|
24240
24974
|
firstMessage: SessionInfoUtil.firstMessage(pi.messages),
|
|
24975
|
+
lastMessage: SessionInfoUtil.lastMessage(pi.messages),
|
|
24241
24976
|
model: model ? `${model.provider}/${model.id}` : void 0,
|
|
24242
24977
|
isStreaming: pi.isStreaming,
|
|
24243
24978
|
messageCount: pi.messages.length,
|
|
@@ -24257,7 +24992,7 @@ var init_ta_session = __esmMin((() => {
|
|
|
24257
24992
|
return {
|
|
24258
24993
|
info: this.info(),
|
|
24259
24994
|
events,
|
|
24260
|
-
conversation: afterSeq === void 0 || gap ? MessagePage.recent(this.
|
|
24995
|
+
conversation: afterSeq === void 0 || gap ? MessagePage.recent(this.conversation(), options.recentBytes) : void 0,
|
|
24261
24996
|
pendingUi: this.ui.pendingRequests,
|
|
24262
24997
|
shownUi: this.ui.shownRequests,
|
|
24263
24998
|
pendingClientTools: this.context.clientTools.pendingRequests,
|
|
@@ -24266,7 +25001,11 @@ var init_ta_session = __esmMin((() => {
|
|
|
24266
25001
|
};
|
|
24267
25002
|
}
|
|
24268
25003
|
earlierMessages(before, timestamp, budget) {
|
|
24269
|
-
return MessagePage.before(this.
|
|
25004
|
+
return MessagePage.before(this.conversation().messages, before, timestamp, budget);
|
|
25005
|
+
}
|
|
25006
|
+
/** The conversation of the events sent, as clients get it. */
|
|
25007
|
+
conversation() {
|
|
25008
|
+
return TaEventUtil.leanConversation(this.live.conversation(this.pi.messages, this.pi.isStreaming));
|
|
24270
25009
|
}
|
|
24271
25010
|
detach(channel) {
|
|
24272
25011
|
if (this.channels.delete(channel)) {
|
|
@@ -24347,12 +25086,12 @@ var init_ta_session = __esmMin((() => {
|
|
|
24347
25086
|
* (a tool that ignores the abort, a stream that hangs) or an extension slow to shut down is given
|
|
24348
25087
|
* `closeTimeoutMs`; then pi is cut off from its agent, so that nothing more goes into the file.
|
|
24349
25088
|
*/
|
|
24350
|
-
async close() {
|
|
25089
|
+
async close(announce = true) {
|
|
24351
25090
|
var _a;
|
|
24352
25091
|
clearTimeout(this.idleTimer);
|
|
24353
25092
|
this.ui.cancelAll();
|
|
24354
25093
|
this.context.clientTools.cancelAll();
|
|
24355
|
-
this.publish({ type: "session_closed" });
|
|
25094
|
+
if (announce) this.publish({ type: "session_closed" });
|
|
24356
25095
|
this.channels.clear();
|
|
24357
25096
|
(_a = this.unsubscribe) === null || _a === void 0 || _a.call(this);
|
|
24358
25097
|
try {
|
|
@@ -24381,7 +25120,7 @@ var init_ta_session = __esmMin((() => {
|
|
|
24381
25120
|
const disposition = await run();
|
|
24382
25121
|
return {
|
|
24383
25122
|
clientMessageId: input.clientMessageId,
|
|
24384
|
-
status: disposition === "
|
|
25123
|
+
status: disposition === "started" ? "accepted" : disposition
|
|
24385
25124
|
};
|
|
24386
25125
|
} catch (error) {
|
|
24387
25126
|
this.receipts.forget(input.clientMessageId);
|
|
@@ -24437,7 +25176,7 @@ var init_ta_session = __esmMin((() => {
|
|
|
24437
25176
|
clearTimeout(this.idleTimer);
|
|
24438
25177
|
this.idleTimer = void 0;
|
|
24439
25178
|
if (this.isIdle()) {
|
|
24440
|
-
this.idleTimer = setTimeout(() => this.isIdle() && this.context.requestClose(this), this.context.options.idleTimeoutMs);
|
|
25179
|
+
this.idleTimer = setTimeout(() => this.isIdle() && this.context.requestClose(this, true), this.context.options.idleTimeoutMs);
|
|
24441
25180
|
this.idleTimer.unref();
|
|
24442
25181
|
}
|
|
24443
25182
|
}
|
|
@@ -24450,7 +25189,7 @@ var init_ta_session = __esmMin((() => {
|
|
|
24450
25189
|
};
|
|
24451
25190
|
}));
|
|
24452
25191
|
// ../../ta-packages/ta-host/esm/node/ta-session-factory.js
|
|
24453
|
-
var __decorate$7, __metadata$7, DefaultTaSessionFactory;
|
|
25192
|
+
var __decorate$7, __metadata$7, SessionFileUtil, DefaultTaSessionFactory;
|
|
24454
25193
|
var init_ta_session_factory = __esmMin((() => {
|
|
24455
25194
|
init_node$7();
|
|
24456
25195
|
init_common$6();
|
|
@@ -24475,12 +25214,28 @@ var init_ta_session_factory = __esmMin((() => {
|
|
|
24475
25214
|
__metadata$7 = function(k, v) {
|
|
24476
25215
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24477
25216
|
};
|
|
25217
|
+
(function(SessionFileUtil) {
|
|
25218
|
+
/**
|
|
25219
|
+
* The directory pi is to work in for a session file it opens: none for a file that says (pi reads it from
|
|
25220
|
+
* its header); `cwd`, where the caller asks, for one with no header yet. pi writes a file once the agent
|
|
25221
|
+
* first answered, so the file of a session opened and never answered (an agent made but not yet asked) is
|
|
25222
|
+
* not there, and pi would take the directory ta serve runs in, the home directory under the desktop app.
|
|
25223
|
+
*/
|
|
25224
|
+
function cwdOverride(sessionFile, cwd) {
|
|
25225
|
+
try {
|
|
25226
|
+
return statSync(sessionFile).size > 0 ? void 0 : cwd;
|
|
25227
|
+
} catch (_a) {
|
|
25228
|
+
return cwd;
|
|
25229
|
+
}
|
|
25230
|
+
}
|
|
25231
|
+
SessionFileUtil.cwdOverride = cwdOverride;
|
|
25232
|
+
})(SessionFileUtil || (SessionFileUtil = {}));
|
|
24478
25233
|
DefaultTaSessionFactory = class DefaultTaSessionFactory {
|
|
24479
25234
|
constructor() {
|
|
24480
25235
|
this.extensions = [];
|
|
24481
25236
|
this.tools = [];
|
|
24482
25237
|
}
|
|
24483
|
-
async create(requested, requestClose) {
|
|
25238
|
+
async create(requested, requestClose, id) {
|
|
24484
25239
|
var _a;
|
|
24485
25240
|
var _b, _c, _d;
|
|
24486
25241
|
const clientTools = new ClientToolBroker(requested.clientTools);
|
|
@@ -24543,6 +25298,7 @@ var init_ta_session_factory = __esmMin((() => {
|
|
|
24543
25298
|
clientTools,
|
|
24544
25299
|
options: this.options,
|
|
24545
25300
|
requestClose,
|
|
25301
|
+
id,
|
|
24546
25302
|
group: options.group,
|
|
24547
25303
|
role: options.appendSystemPrompt,
|
|
24548
25304
|
locate: (cwd) => this.directories.fromPi(cwd)
|
|
@@ -24557,7 +25313,7 @@ var init_ta_session_factory = __esmMin((() => {
|
|
|
24557
25313
|
openSessionManager(sdk, options) {
|
|
24558
25314
|
if (!options.sessionFile) return sdk.SessionManager.create(options.cwd);
|
|
24559
25315
|
try {
|
|
24560
|
-
return sdk.SessionManager.open(options.sessionFile);
|
|
25316
|
+
return sdk.SessionManager.open(options.sessionFile, void 0, SessionFileUtil.cwdOverride(options.sessionFile, options.cwd));
|
|
24561
25317
|
} catch (error) {
|
|
24562
25318
|
throw TaErrors.invalidArgument(`Cannot open the session ${options.sessionFile}: ${error.message}`, "Pass a session file that exists; listSessions shows the open ones.");
|
|
24563
25319
|
}
|
|
@@ -24667,6 +25423,7 @@ var init_ta_session_registry = __esmMin((() => {
|
|
|
24667
25423
|
init_common$6();
|
|
24668
25424
|
init_client_channel();
|
|
24669
25425
|
init_host_protocol();
|
|
25426
|
+
init_session_handles();
|
|
24670
25427
|
init_ta_errors();
|
|
24671
25428
|
__decorate$6 = function(decorators, target, key, desc) {
|
|
24672
25429
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -24685,34 +25442,51 @@ var init_ta_session_registry = __esmMin((() => {
|
|
|
24685
25442
|
this.opening = 0;
|
|
24686
25443
|
/** The closes under way, by session file: out of the list already, their files locked until they end. */
|
|
24687
25444
|
this.closing = /* @__PURE__ */ new Map();
|
|
25445
|
+
/** Sessions opening again under their ids: the calls that come meanwhile wait for the same. */
|
|
25446
|
+
this.waking = /* @__PURE__ */ new Map();
|
|
24688
25447
|
}
|
|
24689
|
-
|
|
24690
|
-
const
|
|
24691
|
-
|
|
24692
|
-
if (
|
|
24693
|
-
this.
|
|
24694
|
-
try {
|
|
24695
|
-
const session = await this.factory.create(options, (ended) => void this.close(ended.id));
|
|
24696
|
-
this.sessions.set(session.id, session);
|
|
24697
|
-
return session;
|
|
24698
|
-
} finally {
|
|
24699
|
-
this.opening--;
|
|
24700
|
-
}
|
|
25448
|
+
open(options) {
|
|
25449
|
+
const known = options.sessionFile ? this.handles.idOf(options.sessionFile) : void 0;
|
|
25450
|
+
const waking = known && this.waking.get(known);
|
|
25451
|
+
if (waking) return waking;
|
|
25452
|
+
return this.create(options, known && !this.sessions.has(known) ? known : void 0);
|
|
24701
25453
|
}
|
|
24702
25454
|
require(sessionId) {
|
|
24703
25455
|
const session = this.sessions.get(sessionId);
|
|
24704
25456
|
if (!session) throw TaErrors.sessionNotFound(sessionId);
|
|
24705
25457
|
return session;
|
|
24706
25458
|
}
|
|
25459
|
+
resolve(sessionId) {
|
|
25460
|
+
const session = this.sessions.get(sessionId);
|
|
25461
|
+
if (session) return Promise.resolve(session);
|
|
25462
|
+
const waking = this.waking.get(sessionId);
|
|
25463
|
+
if (waking) return waking;
|
|
25464
|
+
const handle = this.handles.get(sessionId);
|
|
25465
|
+
if (!handle || !existsSync(handle.sessionFile)) return Promise.reject(TaErrors.sessionNotFound(sessionId));
|
|
25466
|
+
const options = {
|
|
25467
|
+
cwd: handle.cwd,
|
|
25468
|
+
sessionFile: handle.sessionFile,
|
|
25469
|
+
clientTools: handle.clientTools
|
|
25470
|
+
};
|
|
25471
|
+
const opening = this.create(options, sessionId).finally(() => this.waking.delete(sessionId));
|
|
25472
|
+
this.waking.set(sessionId, opening);
|
|
25473
|
+
return opening;
|
|
25474
|
+
}
|
|
24707
25475
|
list() {
|
|
24708
25476
|
return [...this.sessions.values()];
|
|
24709
25477
|
}
|
|
24710
|
-
async close(sessionId) {
|
|
25478
|
+
async close(sessionId, idle = false) {
|
|
25479
|
+
if (!idle) this.handles.delete(sessionId);
|
|
24711
25480
|
const session = this.sessions.get(sessionId);
|
|
24712
25481
|
if (!session) return;
|
|
24713
25482
|
this.sessions.delete(sessionId);
|
|
24714
25483
|
const file = session.pi.sessionFile;
|
|
24715
|
-
|
|
25484
|
+
if (idle && file) this.handles.set(sessionId, {
|
|
25485
|
+
...this.handles.get(sessionId),
|
|
25486
|
+
sessionFile: file,
|
|
25487
|
+
cwd: session.cwd
|
|
25488
|
+
});
|
|
25489
|
+
const closing = session.close(!idle);
|
|
24716
25490
|
if (file) this.closing.set(file, closing);
|
|
24717
25491
|
try {
|
|
24718
25492
|
await closing;
|
|
@@ -24721,7 +25495,7 @@ var init_ta_session_registry = __esmMin((() => {
|
|
|
24721
25495
|
}
|
|
24722
25496
|
}
|
|
24723
25497
|
async closeAll() {
|
|
24724
|
-
await Promise.all([...this.sessions.keys()].map((id) => this.close(id)));
|
|
25498
|
+
await Promise.all([...this.sessions.keys()].map((id) => this.close(id, true)));
|
|
24725
25499
|
}
|
|
24726
25500
|
/** The one channel of a connection; it leaves every session when the connection ends. */
|
|
24727
25501
|
channel(connection) {
|
|
@@ -24736,6 +25510,26 @@ var init_ta_session_registry = __esmMin((() => {
|
|
|
24736
25510
|
}
|
|
24737
25511
|
return channel;
|
|
24738
25512
|
}
|
|
25513
|
+
/** `id`: the id it had, to open it again under. */
|
|
25514
|
+
async create(options, id) {
|
|
25515
|
+
const closing = options.sessionFile && this.closing.get(options.sessionFile);
|
|
25516
|
+
if (closing) await closing.catch(() => void 0);
|
|
25517
|
+
if (this.sessions.size + this.opening >= this.options.maxSessions) throw TaErrors.tooManySessions(this.options.maxSessions);
|
|
25518
|
+
this.opening++;
|
|
25519
|
+
try {
|
|
25520
|
+
const session = await this.factory.create(options, (ended, idle) => void this.close(ended.id, idle), id);
|
|
25521
|
+
this.sessions.set(session.id, session);
|
|
25522
|
+
const sessionFile = session.pi.sessionFile;
|
|
25523
|
+
if (sessionFile) this.handles.set(session.id, {
|
|
25524
|
+
sessionFile,
|
|
25525
|
+
cwd: session.cwd,
|
|
25526
|
+
clientTools: options.clientTools
|
|
25527
|
+
});
|
|
25528
|
+
return session;
|
|
25529
|
+
} finally {
|
|
25530
|
+
this.opening--;
|
|
25531
|
+
}
|
|
25532
|
+
}
|
|
24739
25533
|
static {
|
|
24740
25534
|
Object.defineProperty(this, "name", {
|
|
24741
25535
|
value: "DefaultTaSessionRegistry",
|
|
@@ -24745,6 +25539,7 @@ var init_ta_session_registry = __esmMin((() => {
|
|
|
24745
25539
|
};
|
|
24746
25540
|
__decorate$6([Value(TA_HOST_OPTIONS), __metadata$6("design:type", Object)], DefaultTaSessionRegistry.prototype, "options", void 0);
|
|
24747
25541
|
__decorate$6([Autowired(TaSessionFactory), __metadata$6("design:type", Object)], DefaultTaSessionRegistry.prototype, "factory", void 0);
|
|
25542
|
+
__decorate$6([Autowired(TaSessionHandles), __metadata$6("design:type", Object)], DefaultTaSessionRegistry.prototype, "handles", void 0);
|
|
24748
25543
|
DefaultTaSessionRegistry = __decorate$6([Component(TaSessionRegistry)], DefaultTaSessionRegistry);
|
|
24749
25544
|
}));
|
|
24750
25545
|
// ../../ta-packages/ta-host/esm/node/web-extension-util.js
|
|
@@ -25081,14 +25876,19 @@ var init_workspace_util = __esmMin((() => {
|
|
|
25081
25876
|
/** `path` inside `cwd`, absolute, and relative with `/`; throws when it leaves `cwd`. */
|
|
25082
25877
|
function inside(cwd, path) {
|
|
25083
25878
|
const absolute = resolve(cwd, path || ".");
|
|
25084
|
-
|
|
25085
|
-
if (rel === ".." || rel.startsWith(`..${sep}`) || isAbsolute(rel)) throw TaErrors.invalidArgument(`The path ${path} is outside of ${cwd}.`, "Pass a path inside the directory of the workspace.");
|
|
25879
|
+
if (!contains(cwd, absolute)) throw TaErrors.invalidArgument(`The path ${path} is outside of ${cwd}.`, "Pass a path inside the directory of the workspace.");
|
|
25086
25880
|
return {
|
|
25087
25881
|
absolute,
|
|
25088
|
-
relative:
|
|
25882
|
+
relative: relative(cwd, absolute).split(sep).join("/")
|
|
25089
25883
|
};
|
|
25090
25884
|
}
|
|
25091
25885
|
WorkspaceUtil.inside = inside;
|
|
25886
|
+
/** Whether `absolute` is `cwd` or inside it. */
|
|
25887
|
+
function contains(cwd, absolute) {
|
|
25888
|
+
const rel = relative(cwd, absolute);
|
|
25889
|
+
return rel !== ".." && !rel.startsWith(`..${sep}`) && !isAbsolute(rel);
|
|
25890
|
+
}
|
|
25891
|
+
WorkspaceUtil.contains = contains;
|
|
25092
25892
|
/** Joins a relative path of a directory with a name, with `/`. */
|
|
25093
25893
|
function join(dir, name) {
|
|
25094
25894
|
return dir && dir !== "." ? posix.join(dir, name) : name;
|
|
@@ -26117,18 +26917,24 @@ var init_workspace_files = __esmMin((() => {
|
|
|
26117
26917
|
constructor() {
|
|
26118
26918
|
/** Before TaAccess, which turns away `/api` requests without the token. */
|
|
26119
26919
|
this.priority = ACCESS_MIDDLEWARE_PRIORITY + 1;
|
|
26920
|
+
/** By id, the directory paths stay in, and the one whose execution environment reads them. */
|
|
26120
26921
|
this.directories = /* @__PURE__ */ new Map();
|
|
26121
26922
|
this.ids = /* @__PURE__ */ new Map();
|
|
26122
26923
|
}
|
|
26123
26924
|
url(cwd, path) {
|
|
26124
|
-
const
|
|
26125
|
-
|
|
26925
|
+
const absolute = resolve(cwd, path || ".");
|
|
26926
|
+
const root = WorkspaceUtil.contains(cwd, absolute) ? cwd : dirname(absolute);
|
|
26927
|
+
const key = `${cwd}\0${root}`;
|
|
26928
|
+
let id = this.ids.get(key);
|
|
26126
26929
|
if (!id) {
|
|
26127
26930
|
id = randomBytes(ID_BYTES).toString("base64url");
|
|
26128
|
-
this.ids.set(
|
|
26129
|
-
this.directories.set(id,
|
|
26931
|
+
this.ids.set(key, id);
|
|
26932
|
+
this.directories.set(id, {
|
|
26933
|
+
root,
|
|
26934
|
+
cwd
|
|
26935
|
+
});
|
|
26130
26936
|
}
|
|
26131
|
-
return WorkspaceFilesUtil.url(id, relative);
|
|
26937
|
+
return WorkspaceFilesUtil.url(id, WorkspaceUtil.inside(root, absolute).relative);
|
|
26132
26938
|
}
|
|
26133
26939
|
async handle(ctx, next) {
|
|
26134
26940
|
const request = ctx.request;
|
|
@@ -26138,8 +26944,8 @@ var init_workspace_files = __esmMin((() => {
|
|
|
26138
26944
|
return;
|
|
26139
26945
|
}
|
|
26140
26946
|
const response = ctx.response;
|
|
26141
|
-
const
|
|
26142
|
-
if (!
|
|
26947
|
+
const directory = this.directories.get(target.id);
|
|
26948
|
+
if (!directory || !this.acceptsHost(request)) {
|
|
26143
26949
|
this.fail(response, 404);
|
|
26144
26950
|
return;
|
|
26145
26951
|
}
|
|
@@ -26148,11 +26954,11 @@ var init_workspace_files = __esmMin((() => {
|
|
|
26148
26954
|
this.fail(response, 405);
|
|
26149
26955
|
return;
|
|
26150
26956
|
}
|
|
26151
|
-
await this.send(request, response,
|
|
26957
|
+
await this.send(request, response, directory, target.path);
|
|
26152
26958
|
}
|
|
26153
|
-
async send(request, response,
|
|
26154
|
-
const env = this.environments.create(cwd);
|
|
26155
|
-
const file = await this.find(env, path);
|
|
26959
|
+
async send(request, response, directory, path) {
|
|
26960
|
+
const env = this.environments.create(directory.cwd);
|
|
26961
|
+
const file = await this.find(env, directory.root, path);
|
|
26156
26962
|
if (!file) {
|
|
26157
26963
|
this.fail(response, 404);
|
|
26158
26964
|
return;
|
|
@@ -26193,11 +26999,11 @@ var init_workspace_files = __esmMin((() => {
|
|
|
26193
26999
|
if (env.local) await this.stream(response, absolute, start, end);
|
|
26194
27000
|
else response.end(await this.read(env, absolute, stat.size, start, end));
|
|
26195
27001
|
}
|
|
26196
|
-
/** The file at `path`, or the `index.html` of the directory there. */
|
|
26197
|
-
async find(env, path) {
|
|
27002
|
+
/** The file at `path` of `root`, or the `index.html` of the directory there. */
|
|
27003
|
+
async find(env, root, path) {
|
|
26198
27004
|
let absolute;
|
|
26199
27005
|
try {
|
|
26200
|
-
absolute = WorkspaceUtil.inside(
|
|
27006
|
+
absolute = WorkspaceUtil.inside(root, path).absolute;
|
|
26201
27007
|
} catch (_a) {
|
|
26202
27008
|
return;
|
|
26203
27009
|
}
|
|
@@ -26582,6 +27388,7 @@ var init_node = __esmMin((() => {
|
|
|
26582
27388
|
init_remote_ui_context();
|
|
26583
27389
|
init_session_catalog();
|
|
26584
27390
|
init_session_files();
|
|
27391
|
+
init_session_handles();
|
|
26585
27392
|
init_session_info_util();
|
|
26586
27393
|
init_session_storage();
|
|
26587
27394
|
init_settings_server_impl();
|