@qwen-code/qwen-code 0.18.2 → 0.18.3-nightly.20260621.6b2f800ab
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/README.md +64 -492
- package/bundled/loop/SKILL.md +53 -26
- package/bundled/loop/SKILL.test.ts +67 -0
- package/bundled/qc-helper/docs/configuration/auth.md +7 -6
- package/bundled/qc-helper/docs/configuration/model-providers.md +16 -2
- package/bundled/qc-helper/docs/configuration/settings.md +51 -44
- package/bundled/qc-helper/docs/extension/introduction.md +38 -0
- package/bundled/qc-helper/docs/features/approval-mode.md +2 -0
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/overview.md +4 -4
- package/bundled/qc-helper/docs/features/channels/qqbot.md +179 -0
- package/bundled/qc-helper/docs/features/commands.md +49 -0
- package/bundled/qc-helper/docs/features/followup-suggestions.md +10 -6
- package/bundled/qc-helper/docs/features/hooks.md +6 -3
- package/bundled/qc-helper/docs/features/status-line.md +4 -2
- package/bundled/qc-helper/docs/qwen-serve.md +9 -4
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +11 -5
- package/bundled/qc-helper/docs/support/troubleshooting.md +5 -0
- package/chunks/{agent-P5U6QLWL.js → agent-66UJLGYF.js} +24 -23
- package/chunks/{agent-headless-24356DC7.js → agent-headless-XWKLG7OO.js} +24 -23
- package/chunks/{anthropicContentGenerator-KLBHYGH6.js → anthropicContentGenerator-5S4OMMNL.js} +9 -7
- package/chunks/{askUserQuestion-QPZXR3UO.js → askUserQuestion-WHVYL2S2.js} +2 -2
- package/chunks/{ca-RK4QPLIX.js → ca-K6MD665I.js} +42 -2
- package/chunks/{chunk-WPTCDQN6.js → chunk-26ZYKTYZ.js} +2 -2
- package/chunks/{chunk-O4PICXES.js → chunk-2MPVVENX.js} +14 -6
- package/chunks/{chunk-VIEIRAK3.js → chunk-2O3NAOJG.js} +4 -2
- package/chunks/{chunk-NNIYWQIS.js → chunk-42HGOMED.js} +2 -1
- package/chunks/{chunk-B4ZF2KSI.js → chunk-AE6RQU6F.js} +2 -2
- package/chunks/{chunk-FIQECJTQ.js → chunk-ATLUHLZE.js} +1 -1
- package/chunks/{chunk-BJ5HQ23U.js → chunk-C6MI2ASN.js} +9 -10
- package/chunks/{chunk-LYRSMKLS.js → chunk-CTHZVIMD.js} +2 -2
- package/chunks/{chunk-MN5RAXVB.js → chunk-CX3SGIPK.js} +18 -6
- package/chunks/{chunk-IQHSD7K5.js → chunk-FH4P6RQA.js} +1 -1
- package/chunks/{chunk-LYSND7KR.js → chunk-G4BUMVEY.js} +12 -2
- package/chunks/{chunk-YJDVHAGL.js → chunk-GBN55AWZ.js} +2 -2
- package/chunks/{chunk-ZNUMXPNK.js → chunk-GOMVJKBL.js} +7 -3
- package/chunks/{chunk-NGDXHX3A.js → chunk-GRVAP37P.js} +63 -11
- package/chunks/{chunk-CPVI5J2L.js → chunk-ID533GA3.js} +1 -1
- package/chunks/{chunk-VU6A2OBJ.js → chunk-JXQ23SNT.js} +217 -219
- package/chunks/{chunk-ZMIBJS45.js → chunk-KGV3F6UF.js} +1 -1
- package/chunks/{chunk-SFRV6BGY.js → chunk-LF6BKGZT.js} +3 -3
- package/chunks/{chunk-LXYWINWF.js → chunk-LTN3VYMZ.js} +1 -1
- package/chunks/{chunk-IDYDPBBN.js → chunk-MSJ2MXJ6.js} +3 -3
- package/chunks/{chunk-25FFAMED.js → chunk-NLCTUNOS.js} +1048 -295
- package/chunks/{chunk-JZEKEWO5.js → chunk-TOSAOARP.js} +6 -6
- package/chunks/{chunk-M7OBURJM.js → chunk-VIA5MAE5.js} +24 -12
- package/chunks/{chunk-RTTAC5VW.js → chunk-VKILGMZQ.js} +1 -1
- package/chunks/{chunk-QFJ67S5R.js → chunk-VN7FXOAW.js} +732 -617
- package/chunks/{chunk-HA2UEYZP.js → chunk-WE6TNQJU.js} +13 -6
- package/chunks/chunk-XGU3ETVO.js +1026 -0
- package/chunks/{chunk-ZOFNJQNJ.js → chunk-XU7BKR3B.js} +3 -3
- package/chunks/{chunk-QP4R5FTG.js → chunk-Z7XXFPGP.js} +4 -3
- package/chunks/{chunk-TW522KN6.js → chunk-ZTQ26VBE.js} +13 -6
- package/chunks/{chunk-EQ5NHJBY.js → chunk-ZV5QED4A.js} +109573 -106663
- package/chunks/{computer-use-EGW2I2HZ.js → computer-use-5AHVGVR3.js} +26 -24
- package/chunks/contextCommand-PTDKJROT.js +54 -0
- package/chunks/{cron-create-DQKRQMCP.js → cron-create-THNDTYXU.js} +6 -6
- package/chunks/{cron-delete-DOFPHFTI.js → cron-delete-BS5H6TFJ.js} +6 -6
- package/chunks/{cron-list-RCVOO3CB.js → cron-list-7OBVHT7K.js} +24 -10
- package/chunks/{de-FGPM4KW5.js → de-K2F3T3TR.js} +41 -1
- package/chunks/{dist-2UCAYOX7.js → dist-BD27IA3L.js} +16 -5
- package/chunks/{dist-UH7CYT7F.js → dist-DZ6AJDX4.js} +52 -11
- package/chunks/{dist-KF43SZZV.js → dist-GKRNVFBH.js} +5 -1
- package/chunks/{dist-33LHH26D.js → dist-KIYB7DQW.js} +1 -1
- package/chunks/dist-QFFZWACU.js +2136 -0
- package/chunks/{edit-FJSOCDO2.js → edit-ADXZN3M7.js} +26 -27
- package/chunks/{en-VP6XPGEC.js → en-KGSAKBJP.js} +232 -0
- package/chunks/{enter-worktree-X6MVFDLR.js → enter-worktree-F5SJSHNH.js} +24 -23
- package/chunks/{enterPlanMode-MZAEQZH3.js → enterPlanMode-MCQ4HWPP.js} +52 -28
- package/chunks/{exit-worktree-RM2UPOYQ.js → exit-worktree-26AFS3YQ.js} +191 -41
- package/chunks/{exitPlanMode-7BVY3CWJ.js → exitPlanMode-UOPIPSEA.js} +85 -46
- package/chunks/{fr-ATYBVCLT.js → fr-2CAQEOK6.js} +41 -1
- package/chunks/{geminiContentGenerator-A6JHLUHK.js → geminiContentGenerator-RJA7BIHQ.js} +4 -4
- package/chunks/{glob-L3AZLCV6.js → glob-AWTDID4C.js} +26 -24
- package/chunks/{grep-SNCPCXIP.js → grep-QJ5TEMYZ.js} +96 -43
- package/chunks/{ja-W2QEA2OI.js → ja-QWL7V6OJ.js} +41 -1
- package/chunks/{keychain-token-storage-QSTRHKKL.js → keychain-token-storage-YHXIWXIB.js} +2 -2
- package/chunks/loop-wakeup-SSBWZ64K.js +167 -0
- package/chunks/{ls-TRD77UTS.js → ls-YPFUHZRQ.js} +3 -3
- package/chunks/{lsp-2VFWQPZS.js → lsp-FD6DNVAF.js} +2 -2
- package/chunks/{monitor-TS6WL6DN.js → monitor-SQYLCQAK.js} +24 -23
- package/chunks/{notebook-edit-26RNH24J.js → notebook-edit-7RR3ABQ5.js} +25 -26
- package/chunks/{openaiContentGenerator-7CA63X5G.js → openaiContentGenerator-2CHXJZ4A.js} +14 -11
- package/chunks/{pt-ZKEWJFBW.js → pt-2SPOLMAY.js} +41 -1
- package/chunks/{qwenContentGenerator-4WJTJXFZ.js → qwenContentGenerator-ZXEKDN2J.js} +27 -26
- package/chunks/{qwenOAuth2-KK433U33.js → qwenOAuth2-WZ54YZ4J.js} +4 -4
- package/chunks/{read-file-EUIHK6HD.js → read-file-AZAKLZFP.js} +9 -8
- package/chunks/{ripGrep-7J5B22W2.js → ripGrep-T5PS4VWB.js} +24 -23
- package/chunks/{ru-VEKTPJ74.js → ru-35IVJTEH.js} +41 -1
- package/chunks/{scheduler-J3OUGTTS.js → scheduler-VZ5KYSX6.js} +24 -23
- package/chunks/{send-message-QZOC5GA2.js → send-message-FWFTX62Q.js} +2 -2
- package/chunks/{serve-VF4ZNUJP.js → serve-RN6CHKG3.js} +1308 -291
- package/chunks/{shell-G6XCJAG3.js → shell-ANALFMWT.js} +24 -23
- package/chunks/{skill-7OVC6JIH.js → skill-JIKQTL4U.js} +11 -10
- package/chunks/{src-XV5MLRND.js → src-EMRXVZY7.js} +159 -59
- package/chunks/{syntheticOutput-WJSUK4SZ.js → syntheticOutput-JY5NEDTV.js} +3 -3
- package/chunks/{task-create-GGSC27HO.js → task-create-IGILDV25.js} +7 -7
- package/chunks/{task-list-EDHHHSK4.js → task-list-KBEJVAAG.js} +6 -6
- package/chunks/{task-stop-WR5PDVZY.js → task-stop-WFTMQ6AC.js} +2 -2
- package/chunks/{task-update-UR7NUHBV.js → task-update-UIVX7ZEV.js} +7 -7
- package/chunks/{team-create-JXSC7ROC.js → team-create-BVKQF4WK.js} +26 -25
- package/chunks/{team-delete-FC33URJK.js → team-delete-LPOXDPVB.js} +6 -6
- package/chunks/{todoWrite-GO2ME7ZV.js → todoWrite-R4RIJKOD.js} +4 -4
- package/chunks/{tool-search-YRWSWA2H.js → tool-search-E4VYDNQO.js} +9 -8
- package/chunks/{web-fetch-NLLATYIL.js → web-fetch-JU7SS6KE.js} +5 -5
- package/chunks/{workflow-ZN3DYFMU.js → workflow-VDPJJYAF.js} +242 -39
- package/chunks/{write-file-355M4V7Z.js → write-file-NCN66V2C.js} +26 -27
- package/chunks/{zh-TW-6YFNCKTA.js → zh-TW-BSG6BUWK.js} +232 -2
- package/chunks/{zh-OIXDDQHB.js → zh-X4KM6MTW.js} +233 -0
- package/cli.js +11094 -5768
- package/examples/agent/agents/diary.md +1 -1
- package/examples/mcp-server/qwen-extension.json +8 -1
- package/examples/starter/agents/diary.md +1 -1
- package/locales/ca.js +67 -2
- package/locales/de.js +68 -2
- package/locales/en.js +304 -0
- package/locales/fr.js +69 -2
- package/locales/ja.js +65 -2
- package/locales/pt.js +67 -2
- package/locales/ru.js +68 -2
- package/locales/zh-TW.js +288 -2
- package/locales/zh.js +288 -0
- package/package.json +4 -3
- package/web-shell/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/web-shell/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/web-shell/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/web-shell/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/web-shell/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/web-shell/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/web-shell/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/web-shell/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/web-shell/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/web-shell/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/web-shell/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/web-shell/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/web-shell/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/web-shell/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/web-shell/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/web-shell/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/web-shell/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/web-shell/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/web-shell/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/web-shell/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/web-shell/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/web-shell/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/web-shell/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/web-shell/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/web-shell/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/web-shell/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/web-shell/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/web-shell/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/web-shell/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/web-shell/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/web-shell/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/web-shell/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/web-shell/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/web-shell/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/web-shell/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/web-shell/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/web-shell/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/web-shell/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/web-shell/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/web-shell/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/web-shell/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/web-shell/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/web-shell/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/web-shell/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/web-shell/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/web-shell/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/web-shell/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/web-shell/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/web-shell/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/web-shell/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/web-shell/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/web-shell/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/web-shell/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/web-shell/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/web-shell/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/web-shell/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/web-shell/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/web-shell/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/web-shell/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/web-shell/assets/abap-DsBKuouk.js +1 -0
- package/web-shell/assets/actionscript-3-D_z4Izcz.js +1 -0
- package/web-shell/assets/ada-727ZlQH0.js +1 -0
- package/web-shell/assets/andromeeda-C3khCPGq.js +1 -0
- package/web-shell/assets/angular-html-LfdN0zeE.js +1 -0
- package/web-shell/assets/angular-ts-CKsD7JZE.js +1 -0
- package/web-shell/assets/apache-Dn00JSTd.js +1 -0
- package/web-shell/assets/apex-COJ4H7py.js +1 -0
- package/web-shell/assets/apl-BBq3IX1j.js +1 -0
- package/web-shell/assets/applescript-Bu5BbsvL.js +1 -0
- package/web-shell/assets/ara-7O62HKoU.js +1 -0
- package/web-shell/assets/arc-CRFN10gD.js +1 -0
- package/web-shell/assets/architectureDiagram-3BPJPVTR-IRlu1CpH.js +36 -0
- package/web-shell/assets/asciidoc-BPT9niGB.js +1 -0
- package/web-shell/assets/asm-Dhn9LcZ4.js +1 -0
- package/web-shell/assets/astro-CqkE3fuf.js +1 -0
- package/web-shell/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/web-shell/assets/awk-eg146-Ew.js +1 -0
- package/web-shell/assets/ayu-dark-Cv9koXgw.js +1 -0
- package/web-shell/assets/ballerina-Du268qiB.js +1 -0
- package/web-shell/assets/bat-fje9CFhw.js +1 -0
- package/web-shell/assets/beancount-BwXTMy5W.js +1 -0
- package/web-shell/assets/berry-3xVqZejG.js +1 -0
- package/web-shell/assets/bibtex-xW4inM5L.js +1 -0
- package/web-shell/assets/bicep-DHo0CJ0O.js +1 -0
- package/web-shell/assets/blade-a8OxSdnT.js +1 -0
- package/web-shell/assets/blockDiagram-GPEHLZMM-htIZ6iw8.js +132 -0
- package/web-shell/assets/bsl-Dgyn0ogV.js +1 -0
- package/web-shell/assets/c-C3t2pwGQ.js +1 -0
- package/web-shell/assets/c4Diagram-AAUBKEIU-A2GoRq3O.js +10 -0
- package/web-shell/assets/cadence-DNquZEk8.js +1 -0
- package/web-shell/assets/cairo--RitsXJZ.js +1 -0
- package/web-shell/assets/catppuccin-frappe-CD_QflpE.js +1 -0
- package/web-shell/assets/catppuccin-latte-DRW-0cLl.js +1 -0
- package/web-shell/assets/catppuccin-macchiato-C-_shW-Y.js +1 -0
- package/web-shell/assets/catppuccin-mocha-LGGdnPYs.js +1 -0
- package/web-shell/assets/channel-WwImfsc7.js +1 -0
- package/web-shell/assets/chunk-2J33WTMH-CdP2AC6u.js +1 -0
- package/web-shell/assets/chunk-4BX2VUAB-DrA07nW2.js +1 -0
- package/web-shell/assets/chunk-55IACEB6-CFGnVU2f.js +1 -0
- package/web-shell/assets/chunk-727SXJPM-BTMkq3Tk.js +206 -0
- package/web-shell/assets/chunk-AQP2D5EJ-C9sYg04Z.js +231 -0
- package/web-shell/assets/chunk-FMBD7UC4-Cag-cj6I.js +15 -0
- package/web-shell/assets/chunk-ND2GUHAM-CDSTFoR7.js +1 -0
- package/web-shell/assets/chunk-QZHKN3VN-CN9Z6oOs.js +1 -0
- package/web-shell/assets/clarity-BHOwM8T6.js +1 -0
- package/web-shell/assets/classDiagram-4FO5ZUOK-CJKQYFeJ.js +1 -0
- package/web-shell/assets/classDiagram-v2-Q7XG4LA2-CJKQYFeJ.js +1 -0
- package/web-shell/assets/clojure-DxSadP1t.js +1 -0
- package/web-shell/assets/cmake-DbXoA79R.js +1 -0
- package/web-shell/assets/cobol-PTqiYgYu.js +1 -0
- package/web-shell/assets/codeowners-Bp6g37R7.js +1 -0
- package/web-shell/assets/codeql-sacFqUAJ.js +1 -0
- package/web-shell/assets/coffee-dyiR41kL.js +1 -0
- package/web-shell/assets/common-lisp-C7gG9l05.js +1 -0
- package/web-shell/assets/coq-Dsg_Bt_b.js +1 -0
- package/web-shell/assets/cose-bilkent-S5V4N54A-DuN9j8Du.js +1 -0
- package/web-shell/assets/cpp-BksuvNSY.js +1 -0
- package/web-shell/assets/crystal-DtDmRg-F.js +1 -0
- package/web-shell/assets/csharp-D9R-vmeu.js +1 -0
- package/web-shell/assets/css-BPhBrDlE.js +1 -0
- package/web-shell/assets/csv-B0qRVHPH.js +1 -0
- package/web-shell/assets/cue-DtFQj3wx.js +1 -0
- package/web-shell/assets/cypher-m2LEI-9-.js +1 -0
- package/web-shell/assets/cytoscape.esm-CUqq0XTU.js +331 -0
- package/web-shell/assets/d-BoXegm-a.js +1 -0
- package/web-shell/assets/dagre-BM42HDAG-ByCWe45f.js +4 -0
- package/web-shell/assets/dark-plus-C3mMm8J8.js +1 -0
- package/web-shell/assets/dart-B9wLZaAG.js +1 -0
- package/web-shell/assets/dax-ClGRhx96.js +1 -0
- package/web-shell/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/web-shell/assets/desktop-DEIpsLCJ.js +1 -0
- package/web-shell/assets/diagram-2AECGRRQ-eWyU_pKZ.js +43 -0
- package/web-shell/assets/diagram-5GNKFQAL-0Bfu3Fq5.js +10 -0
- package/web-shell/assets/diagram-KO2AKTUF-B6KBKkQP.js +3 -0
- package/web-shell/assets/diagram-LMA3HP47-TToDmeA_.js +24 -0
- package/web-shell/assets/diagram-OG6HWLK6-CQCkC2Yx.js +24 -0
- package/web-shell/assets/diff-BgYniUM_.js +1 -0
- package/web-shell/assets/docker-COcR7UxN.js +1 -0
- package/web-shell/assets/dotenv-BjQB5zDj.js +1 -0
- package/web-shell/assets/dracula-BzJJZx-M.js +1 -0
- package/web-shell/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/web-shell/assets/dream-maker-C-nORZOA.js +1 -0
- package/web-shell/assets/edge-D5gP-w-T.js +1 -0
- package/web-shell/assets/elixir-CLiX3zqd.js +1 -0
- package/web-shell/assets/elm-CmHSxxaM.js +1 -0
- package/web-shell/assets/emacs-lisp-BX77sIaO.js +1 -0
- package/web-shell/assets/erDiagram-TEJ5UH35-Cm9ls1iB.js +85 -0
- package/web-shell/assets/erb-BYTLMnw6.js +1 -0
- package/web-shell/assets/erlang-B-DoSBHF.js +1 -0
- package/web-shell/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/web-shell/assets/everforest-light-C8M2exoo.js +1 -0
- package/web-shell/assets/fennel-bCA53EVm.js +1 -0
- package/web-shell/assets/fish-w-ucz2PV.js +1 -0
- package/web-shell/assets/flowDiagram-I6XJVG4X-Dyoz80Pv.js +162 -0
- package/web-shell/assets/fluent-Dayu4EKP.js +1 -0
- package/web-shell/assets/fortran-fixed-form-TqA4NnZg.js +1 -0
- package/web-shell/assets/fortran-free-form-DKXYxT9g.js +1 -0
- package/web-shell/assets/fsharp-XplgxFYe.js +1 -0
- package/web-shell/assets/ganttDiagram-6RSMTGT7-Cfut9yaU.js +292 -0
- package/web-shell/assets/gdresource-BHYsBjWJ.js +1 -0
- package/web-shell/assets/gdscript-DfxzS6Rs.js +1 -0
- package/web-shell/assets/gdshader-SKMF96pI.js +1 -0
- package/web-shell/assets/genie-ajMbGru0.js +1 -0
- package/web-shell/assets/gherkin--30QC5Em.js +1 -0
- package/web-shell/assets/git-commit-i4q6IMui.js +1 -0
- package/web-shell/assets/git-rebase-B-v9cOL2.js +1 -0
- package/web-shell/assets/gitGraphDiagram-PVQCEYII-BCuJdlfD.js +106 -0
- package/web-shell/assets/github-dark-DHJKELXO.js +1 -0
- package/web-shell/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/web-shell/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/web-shell/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/web-shell/assets/github-light-DAi9KRSo.js +1 -0
- package/web-shell/assets/github-light-default-D7oLnXFd.js +1 -0
- package/web-shell/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/web-shell/assets/gleam-B430Bg39.js +1 -0
- package/web-shell/assets/glimmer-js-D-cwc0-E.js +1 -0
- package/web-shell/assets/glimmer-ts-pgjy16dm.js +1 -0
- package/web-shell/assets/glsl-DBO2IWDn.js +1 -0
- package/web-shell/assets/gnuplot-CM8KxXT1.js +1 -0
- package/web-shell/assets/go-B1SYOhNW.js +1 -0
- package/web-shell/assets/graph-qsFoMdT2.js +1 -0
- package/web-shell/assets/graphql-cDcHW_If.js +1 -0
- package/web-shell/assets/groovy-DkBy-JyN.js +1 -0
- package/web-shell/assets/hack-D1yCygmZ.js +1 -0
- package/web-shell/assets/haml-B2EZWmdv.js +1 -0
- package/web-shell/assets/handlebars-BQGss363.js +1 -0
- package/web-shell/assets/haskell-BILxekzW.js +1 -0
- package/web-shell/assets/haxe-C5wWYbrZ.js +1 -0
- package/web-shell/assets/hcl-HzYwdGDm.js +1 -0
- package/web-shell/assets/hjson-T-Tgc4AT.js +1 -0
- package/web-shell/assets/hlsl-ifBTmRxC.js +1 -0
- package/web-shell/assets/houston-DnULxvSX.js +1 -0
- package/web-shell/assets/html-C2L_23MC.js +1 -0
- package/web-shell/assets/html-derivative-CSfWNPLT.js +1 -0
- package/web-shell/assets/http-FRrOvY1W.js +1 -0
- package/web-shell/assets/hxml-TIA70rKU.js +1 -0
- package/web-shell/assets/hy-BMj5Y0dO.js +1 -0
- package/web-shell/assets/imba-bv_oIlVt.js +1 -0
- package/web-shell/assets/index-BDZiTAkl.css +1 -0
- package/web-shell/assets/index-DaebdpHq.js +516 -0
- package/web-shell/assets/infoDiagram-5YYISTIA-CXKxF2VL.js +2 -0
- package/web-shell/assets/ini-BjABl1g7.js +1 -0
- package/web-shell/assets/init-Gi6I4Gst.js +1 -0
- package/web-shell/assets/ishikawaDiagram-YF4QCWOH-DE7HWSU8.js +70 -0
- package/web-shell/assets/java-xI-RfyKK.js +1 -0
- package/web-shell/assets/javascript-ySlJ1b_l.js +1 -0
- package/web-shell/assets/jinja-DGy0s7-h.js +1 -0
- package/web-shell/assets/jison-BqZprYcd.js +1 -0
- package/web-shell/assets/journeyDiagram-JHISSGLW-D__YUfds.js +139 -0
- package/web-shell/assets/json-BQoSv7ci.js +1 -0
- package/web-shell/assets/json5-w8dY5SsB.js +1 -0
- package/web-shell/assets/jsonc-TU54ms6u.js +1 -0
- package/web-shell/assets/jsonl-DREVFZK8.js +1 -0
- package/web-shell/assets/jsonnet-BfivnA6A.js +1 -0
- package/web-shell/assets/jssm-P4WzXJd0.js +1 -0
- package/web-shell/assets/jsx-BAng5TT0.js +1 -0
- package/web-shell/assets/julia-BBuGR-5E.js +1 -0
- package/web-shell/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/web-shell/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/web-shell/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/web-shell/assets/kanban-definition-UN3LZRKU-D82R169M.js +89 -0
- package/web-shell/assets/kotlin-B5lbUyaz.js +1 -0
- package/web-shell/assets/kusto-mebxcVVE.js +1 -0
- package/web-shell/assets/laserwave-DUszq2jm.js +1 -0
- package/web-shell/assets/latex-C-cWTeAZ.js +1 -0
- package/web-shell/assets/layout-CNYaLpI5.js +1 -0
- package/web-shell/assets/lean-XBlWyCtg.js +1 -0
- package/web-shell/assets/less-BfCpw3nA.js +1 -0
- package/web-shell/assets/light-plus-B7mTdjB0.js +1 -0
- package/web-shell/assets/linear-DpyMbKqT.js +1 -0
- package/web-shell/assets/liquid-D3W5UaiH.js +1 -0
- package/web-shell/assets/log-Cc5clBb7.js +1 -0
- package/web-shell/assets/logo-IuBKFhSY.js +1 -0
- package/web-shell/assets/lua-CvWAzNxB.js +1 -0
- package/web-shell/assets/luau-Du5NY7AG.js +1 -0
- package/web-shell/assets/make-Bvotw-X0.js +1 -0
- package/web-shell/assets/markdown-UIAJJxZW.js +1 -0
- package/web-shell/assets/marko-z0MBrx5-.js +1 -0
- package/web-shell/assets/material-theme-D5KoaKCx.js +1 -0
- package/web-shell/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/web-shell/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/web-shell/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/web-shell/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/web-shell/assets/matlab-D9-PGadD.js +1 -0
- package/web-shell/assets/mdc-DB_EDNY_.js +1 -0
- package/web-shell/assets/mdx-sdHcTMYB.js +1 -0
- package/web-shell/assets/mermaid-Ci6OQyBP.js +1 -0
- package/web-shell/assets/mermaid.core-D1KEFDhn.js +309 -0
- package/web-shell/assets/min-dark-CafNBF8u.js +1 -0
- package/web-shell/assets/min-light-CTRr51gU.js +1 -0
- package/web-shell/assets/mindmap-definition-RKZ34NQL-BwVUFGFE.js +96 -0
- package/web-shell/assets/mipsasm-BC5c_5Pe.js +1 -0
- package/web-shell/assets/mojo-Tz6hzZYG.js +1 -0
- package/web-shell/assets/monokai-D4h5O-jR.js +1 -0
- package/web-shell/assets/move-DB_GagMm.js +1 -0
- package/web-shell/assets/narrat-DLbgOhZU.js +1 -0
- package/web-shell/assets/nextflow-B0XVJmRM.js +1 -0
- package/web-shell/assets/nginx-D_VnBJ67.js +1 -0
- package/web-shell/assets/night-owl-C39BiMTA.js +1 -0
- package/web-shell/assets/nim-ZlGxZxc3.js +1 -0
- package/web-shell/assets/nix-shcSOmrb.js +1 -0
- package/web-shell/assets/nord-Ddv68eIx.js +1 -0
- package/web-shell/assets/nushell-D4Tzg5kh.js +1 -0
- package/web-shell/assets/objective-c-Deuh7S70.js +1 -0
- package/web-shell/assets/objective-cpp-BUEGK8hf.js +1 -0
- package/web-shell/assets/ocaml-BNioltXt.js +1 -0
- package/web-shell/assets/one-dark-pro-GBQ2dnAY.js +1 -0
- package/web-shell/assets/one-light-PoHY5YXO.js +1 -0
- package/web-shell/assets/ordinal-Cboi1Yqb.js +1 -0
- package/web-shell/assets/pascal-JqZropPD.js +1 -0
- package/web-shell/assets/perl-CHQXSrWU.js +1 -0
- package/web-shell/assets/php-B5ebYQev.js +1 -0
- package/web-shell/assets/pieDiagram-4H26LBE5-BO_qoEGx.js +30 -0
- package/web-shell/assets/plastic-3e1v2bzS.js +1 -0
- package/web-shell/assets/plsql-LKU2TuZ1.js +1 -0
- package/web-shell/assets/po-BFLt1xDp.js +1 -0
- package/web-shell/assets/poimandres-CS3Unz2-.js +1 -0
- package/web-shell/assets/polar-DKykz6zU.js +1 -0
- package/web-shell/assets/postcss-B3ZDOciz.js +1 -0
- package/web-shell/assets/powerquery-CSHBycmS.js +1 -0
- package/web-shell/assets/powershell-BIEUsx6d.js +1 -0
- package/web-shell/assets/prisma-B48N-Iqd.js +1 -0
- package/web-shell/assets/prolog-BY-TUvya.js +1 -0
- package/web-shell/assets/proto-zocC4JxJ.js +1 -0
- package/web-shell/assets/pug-CM9l7STV.js +1 -0
- package/web-shell/assets/puppet-Cza_XSSt.js +1 -0
- package/web-shell/assets/purescript-Bg-kzb6g.js +1 -0
- package/web-shell/assets/python-DhUJRlN_.js +1 -0
- package/web-shell/assets/qml-D8XfuvdV.js +1 -0
- package/web-shell/assets/qmldir-C8lEn-DE.js +1 -0
- package/web-shell/assets/qss-DhMKtDLN.js +1 -0
- package/web-shell/assets/quadrantDiagram-W4KKPZXB-Cx0ZaWPo.js +7 -0
- package/web-shell/assets/r-CwjWoCRV.js +1 -0
- package/web-shell/assets/racket-CzouJOBO.js +1 -0
- package/web-shell/assets/raku-B1bQXN8T.js +1 -0
- package/web-shell/assets/razor-CNLDkMZG.js +1 -0
- package/web-shell/assets/red-bN70gL4F.js +1 -0
- package/web-shell/assets/reg-5LuOXUq_.js +1 -0
- package/web-shell/assets/regexp-DWJ3fJO_.js +1 -0
- package/web-shell/assets/rel-DJlmqQ1C.js +1 -0
- package/web-shell/assets/requirementDiagram-4Y6WPE33-BJPXejOA.js +84 -0
- package/web-shell/assets/riscv-QhoSD0DR.js +1 -0
- package/web-shell/assets/rose-pine-CmCqftbK.js +1 -0
- package/web-shell/assets/rose-pine-dawn-Ds-gbosJ.js +1 -0
- package/web-shell/assets/rose-pine-moon-CjDtw9vr.js +1 -0
- package/web-shell/assets/rst-4NLicBqY.js +1 -0
- package/web-shell/assets/ruby-DeZ3UC14.js +1 -0
- package/web-shell/assets/rust-Be6lgOlo.js +1 -0
- package/web-shell/assets/sankeyDiagram-5OEKKPKP-C1xeIL9i.js +40 -0
- package/web-shell/assets/sas-BmTFh92c.js +1 -0
- package/web-shell/assets/sass-BJ4Li9vH.js +1 -0
- package/web-shell/assets/scala-DQVVAn-B.js +1 -0
- package/web-shell/assets/scheme-BJGe-b2p.js +1 -0
- package/web-shell/assets/scss-C31hgJw-.js +1 -0
- package/web-shell/assets/sdbl-BLhTXw86.js +1 -0
- package/web-shell/assets/sequenceDiagram-3UESZ5HK-CSYKQUjf.js +162 -0
- package/web-shell/assets/shaderlab-B7qAK45m.js +1 -0
- package/web-shell/assets/shellscript-atvbtKCR.js +1 -0
- package/web-shell/assets/shellsession-C_rIy8kc.js +1 -0
- package/web-shell/assets/slack-dark-BthQWCQV.js +1 -0
- package/web-shell/assets/slack-ochin-DqwNpetd.js +1 -0
- package/web-shell/assets/smalltalk-DkLiglaE.js +1 -0
- package/web-shell/assets/snazzy-light-Bw305WKR.js +1 -0
- package/web-shell/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/web-shell/assets/solarized-light-L9t79GZl.js +1 -0
- package/web-shell/assets/solidity-C1w2a3ep.js +1 -0
- package/web-shell/assets/soy-C-lX7w71.js +1 -0
- package/web-shell/assets/sparql-bYkjHRlG.js +1 -0
- package/web-shell/assets/splunk-Cf8iN4DR.js +1 -0
- package/web-shell/assets/sql-COK4E0Yg.js +1 -0
- package/web-shell/assets/ssh-config-BknIz3MU.js +1 -0
- package/web-shell/assets/stata-DorPZHa4.js +1 -0
- package/web-shell/assets/stateDiagram-AJRCARHV-d9hiHlAW.js +1 -0
- package/web-shell/assets/stateDiagram-v2-BHNVJYJU-DgReoybQ.js +1 -0
- package/web-shell/assets/stylus-BeQkCIfX.js +1 -0
- package/web-shell/assets/svelte-MSaWC3Je.js +1 -0
- package/web-shell/assets/swift-BSxZ-RaX.js +1 -0
- package/web-shell/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/web-shell/assets/system-verilog-C7L56vO4.js +1 -0
- package/web-shell/assets/systemd-CUnW07Te.js +1 -0
- package/web-shell/assets/talonscript-C1XDQQGZ.js +1 -0
- package/web-shell/assets/tasl-CQjiPCtT.js +1 -0
- package/web-shell/assets/tcl-DQ1-QYvQ.js +1 -0
- package/web-shell/assets/templ-dwX3ZSMB.js +1 -0
- package/web-shell/assets/terraform-BbSNqyBO.js +1 -0
- package/web-shell/assets/tex-rYs2v40G.js +1 -0
- package/web-shell/assets/timeline-definition-PNZ67QCA-BhCBkq8k.js +120 -0
- package/web-shell/assets/tokyo-night-DBQeEorK.js +1 -0
- package/web-shell/assets/toml-CB2ApiWb.js +1 -0
- package/web-shell/assets/ts-tags-CipyTH0X.js +1 -0
- package/web-shell/assets/tsv-B_m7g4N7.js +1 -0
- package/web-shell/assets/tsx-B6W0miNI.js +1 -0
- package/web-shell/assets/turtle-BMR_PYu6.js +1 -0
- package/web-shell/assets/twig-NC5TFiHP.js +1 -0
- package/web-shell/assets/typescript-Dj6nwHGl.js +1 -0
- package/web-shell/assets/typespec-BpWG_bgh.js +1 -0
- package/web-shell/assets/typst-BVUVsWT6.js +1 -0
- package/web-shell/assets/v-CAQ2eGtk.js +1 -0
- package/web-shell/assets/vala-BFOHcciG.js +1 -0
- package/web-shell/assets/vb-CdO5JTpU.js +1 -0
- package/web-shell/assets/vennDiagram-CIIHVFJN-DPPFWp_y.js +34 -0
- package/web-shell/assets/verilog-CJaU5se_.js +1 -0
- package/web-shell/assets/vesper-BEBZ7ncR.js +1 -0
- package/web-shell/assets/vhdl-DYoNaHQp.js +1 -0
- package/web-shell/assets/viml-m4uW47V2.js +1 -0
- package/web-shell/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/web-shell/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/web-shell/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/web-shell/assets/vue-BuYVFjOK.js +1 -0
- package/web-shell/assets/vue-html-xdeiXROB.js +1 -0
- package/web-shell/assets/vyper-nyqBNV6O.js +1 -0
- package/web-shell/assets/wardley-L42UT6IY-CcOUIgXY.js +173 -0
- package/web-shell/assets/wardleyDiagram-YWT4CUSO-p7oR5X7r.js +78 -0
- package/web-shell/assets/wasm-C6j12Q_x.js +1 -0
- package/web-shell/assets/wasm-CG6Dc4jp.js +1 -0
- package/web-shell/assets/wenyan-7A4Fjokl.js +1 -0
- package/web-shell/assets/wgsl-CB0Krxn9.js +1 -0
- package/web-shell/assets/wikitext-DCE3LsBG.js +1 -0
- package/web-shell/assets/wolfram-C3FkfJm5.js +1 -0
- package/web-shell/assets/xml-e3z08dGr.js +1 -0
- package/web-shell/assets/xsl-Dd0NUgwM.js +1 -0
- package/web-shell/assets/xychartDiagram-2RQKCTM6-Dfr7-SEy.js +7 -0
- package/web-shell/assets/yaml-CVw76BM1.js +1 -0
- package/web-shell/assets/zenscript-HnGAYVZD.js +1 -0
- package/web-shell/assets/zig-BVz_zdnA.js +1 -0
- package/web-shell/index.html +23 -0
- package/chunks/chunk-C64WAJOC.js +0 -117
- package/chunks/contextCommand-HI2X2Y7I.js +0 -53
|
@@ -4,45 +4,46 @@ import {
|
|
|
4
4
|
Client,
|
|
5
5
|
StdioClientTransport,
|
|
6
6
|
extract
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZV5QED4A.js";
|
|
8
8
|
import "./chunk-K5PGHDBN.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-XU7BKR3B.js";
|
|
10
|
+
import "./chunk-2O3NAOJG.js";
|
|
11
|
+
import "./chunk-XGU3ETVO.js";
|
|
12
|
+
import "./chunk-2MPVVENX.js";
|
|
13
|
+
import "./chunk-ZTQ26VBE.js";
|
|
14
|
+
import "./chunk-C6MI2ASN.js";
|
|
15
|
+
import "./chunk-LF6BKGZT.js";
|
|
16
|
+
import "./chunk-26ZYKTYZ.js";
|
|
17
17
|
import "./chunk-MLZQVCF3.js";
|
|
18
18
|
import "./chunk-LD2XBG6Z.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-ID533GA3.js";
|
|
20
|
+
import "./chunk-KGV3F6UF.js";
|
|
21
21
|
import "./chunk-77WXWU44.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-AE6RQU6F.js";
|
|
23
23
|
import {
|
|
24
24
|
safeJsonStringify
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NLCTUNOS.js";
|
|
26
26
|
import "./chunk-3PJXIDKI.js";
|
|
27
27
|
import "./chunk-UWCTAVOD.js";
|
|
28
28
|
import "./chunk-OFEVLU4C.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-OMX7CUOE.js";
|
|
30
|
+
import "./chunk-FH4P6RQA.js";
|
|
31
|
+
import "./chunk-CTHZVIMD.js";
|
|
32
|
+
import "./chunk-VKILGMZQ.js";
|
|
32
33
|
import {
|
|
33
34
|
BaseDeclarativeTool,
|
|
34
35
|
BaseToolInvocation
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-GOMVJKBL.js";
|
|
37
|
+
import "./chunk-MSJ2MXJ6.js";
|
|
38
|
+
import "./chunk-ATLUHLZE.js";
|
|
38
39
|
import "./chunk-64WXLC72.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-LTN3VYMZ.js";
|
|
41
|
+
import "./chunk-42HGOMED.js";
|
|
42
|
+
import "./chunk-G4BUMVEY.js";
|
|
42
43
|
import "./chunk-55ZMG67I.js";
|
|
43
44
|
import "./chunk-H6BD2ELD.js";
|
|
44
45
|
import "./chunk-5IFG2VC4.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-WE6TNQJU.js";
|
|
46
47
|
import "./chunk-ZERZSAZL.js";
|
|
47
48
|
import "./chunk-QN5NZ3UQ.js";
|
|
48
49
|
import "./chunk-BR4QREVK.js";
|
|
@@ -1969,7 +1970,8 @@ function coerceTypes(params, schema) {
|
|
|
1969
1970
|
const fieldType = properties[key]?.type;
|
|
1970
1971
|
if ((fieldType === "integer" || fieldType === "number") && typeof value === "string") {
|
|
1971
1972
|
const trimmed = value.trim();
|
|
1972
|
-
|
|
1973
|
+
const matchesType = fieldType === "integer" ? /^-?\d+$/.test(trimmed) : /^-?\d+(\.\d+)?$/.test(trimmed);
|
|
1974
|
+
if (matchesType) {
|
|
1973
1975
|
const parsed = fieldType === "integer" ? parseInt(trimmed, 10) : parseFloat(trimmed);
|
|
1974
1976
|
if (Number.isFinite(parsed)) {
|
|
1975
1977
|
result[key] = parsed;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
collectContextData,
|
|
5
|
+
contextCommand,
|
|
6
|
+
formatContextUsageText
|
|
7
|
+
} from "./chunk-TOSAOARP.js";
|
|
8
|
+
import "./chunk-VIA5MAE5.js";
|
|
9
|
+
import "./chunk-ZV5QED4A.js";
|
|
10
|
+
import "./chunk-K5PGHDBN.js";
|
|
11
|
+
import "./chunk-XU7BKR3B.js";
|
|
12
|
+
import "./chunk-2O3NAOJG.js";
|
|
13
|
+
import "./chunk-XGU3ETVO.js";
|
|
14
|
+
import "./chunk-2MPVVENX.js";
|
|
15
|
+
import "./chunk-ZTQ26VBE.js";
|
|
16
|
+
import "./chunk-C6MI2ASN.js";
|
|
17
|
+
import "./chunk-LF6BKGZT.js";
|
|
18
|
+
import "./chunk-26ZYKTYZ.js";
|
|
19
|
+
import "./chunk-MLZQVCF3.js";
|
|
20
|
+
import "./chunk-LD2XBG6Z.js";
|
|
21
|
+
import "./chunk-ID533GA3.js";
|
|
22
|
+
import "./chunk-KGV3F6UF.js";
|
|
23
|
+
import "./chunk-77WXWU44.js";
|
|
24
|
+
import "./chunk-AE6RQU6F.js";
|
|
25
|
+
import "./chunk-NLCTUNOS.js";
|
|
26
|
+
import "./chunk-3PJXIDKI.js";
|
|
27
|
+
import "./chunk-UWCTAVOD.js";
|
|
28
|
+
import "./chunk-OFEVLU4C.js";
|
|
29
|
+
import "./chunk-OMX7CUOE.js";
|
|
30
|
+
import "./chunk-FH4P6RQA.js";
|
|
31
|
+
import "./chunk-CTHZVIMD.js";
|
|
32
|
+
import "./chunk-VKILGMZQ.js";
|
|
33
|
+
import "./chunk-GOMVJKBL.js";
|
|
34
|
+
import "./chunk-MSJ2MXJ6.js";
|
|
35
|
+
import "./chunk-ATLUHLZE.js";
|
|
36
|
+
import "./chunk-64WXLC72.js";
|
|
37
|
+
import "./chunk-LTN3VYMZ.js";
|
|
38
|
+
import "./chunk-42HGOMED.js";
|
|
39
|
+
import "./chunk-G4BUMVEY.js";
|
|
40
|
+
import "./chunk-55ZMG67I.js";
|
|
41
|
+
import "./chunk-H6BD2ELD.js";
|
|
42
|
+
import "./chunk-5IFG2VC4.js";
|
|
43
|
+
import "./chunk-WE6TNQJU.js";
|
|
44
|
+
import "./chunk-ZERZSAZL.js";
|
|
45
|
+
import "./chunk-QN5NZ3UQ.js";
|
|
46
|
+
import "./chunk-BR4QREVK.js";
|
|
47
|
+
import "./chunk-Z2Z3GUXZ.js";
|
|
48
|
+
import "./chunk-A4BMJM77.js";
|
|
49
|
+
import "./chunk-J2S4EL5Y.js";
|
|
50
|
+
export {
|
|
51
|
+
collectContextData,
|
|
52
|
+
contextCommand,
|
|
53
|
+
formatContextUsageText
|
|
54
|
+
};
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
import {
|
|
4
4
|
nextFireTime,
|
|
5
5
|
parseCron
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2MPVVENX.js";
|
|
7
7
|
import {
|
|
8
8
|
humanReadableCron
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZTQ26VBE.js";
|
|
10
10
|
import {
|
|
11
11
|
CRON_TASKS_DISPLAY_PATH
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-C6MI2ASN.js";
|
|
13
13
|
import "./chunk-OMX7CUOE.js";
|
|
14
14
|
import {
|
|
15
15
|
BaseDeclarativeTool,
|
|
16
16
|
BaseToolInvocation,
|
|
17
17
|
ToolDisplayNames,
|
|
18
18
|
ToolNames
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-GOMVJKBL.js";
|
|
20
|
+
import "./chunk-LTN3VYMZ.js";
|
|
21
|
+
import "./chunk-WE6TNQJU.js";
|
|
22
22
|
import "./chunk-Z2Z3GUXZ.js";
|
|
23
23
|
import {
|
|
24
24
|
init_esbuild_shims
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
import {
|
|
4
4
|
CRON_TASKS_DISPLAY_PATH,
|
|
5
5
|
removeCronTasks
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C6MI2ASN.js";
|
|
7
7
|
import "./chunk-OMX7CUOE.js";
|
|
8
8
|
import {
|
|
9
9
|
BaseDeclarativeTool,
|
|
10
10
|
BaseToolInvocation,
|
|
11
11
|
ToolDisplayNames,
|
|
12
12
|
ToolNames
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-GOMVJKBL.js";
|
|
14
|
+
import "./chunk-LTN3VYMZ.js";
|
|
15
15
|
import {
|
|
16
16
|
getErrorMessage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WE6TNQJU.js";
|
|
18
18
|
import "./chunk-Z2Z3GUXZ.js";
|
|
19
19
|
import {
|
|
20
20
|
init_esbuild_shims
|
|
@@ -73,14 +73,14 @@ var CronDeleteTool = class _CronDeleteTool extends BaseDeclarativeTool {
|
|
|
73
73
|
super(
|
|
74
74
|
_CronDeleteTool.Name,
|
|
75
75
|
ToolDisplayNames.CRON_DELETE,
|
|
76
|
-
`Cancel a cron job previously scheduled with CronCreate. Removes
|
|
76
|
+
`Cancel a cron job previously scheduled with CronCreate, or a pending loop wakeup scheduled with LoopWakeup. Removes cron jobs from the in-memory session store or from ${CRON_TASKS_DISPLAY_PATH} (durable jobs).`,
|
|
77
77
|
"other" /* Other */,
|
|
78
78
|
{
|
|
79
79
|
type: "object",
|
|
80
80
|
properties: {
|
|
81
81
|
id: {
|
|
82
82
|
type: "string",
|
|
83
|
-
description: "Job ID returned by CronCreate."
|
|
83
|
+
description: "Job ID returned by CronCreate or LoopWakeup."
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
required: ["id"],
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
humanReadableCron
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZTQ26VBE.js";
|
|
6
6
|
import {
|
|
7
7
|
CRON_TASKS_DISPLAY_PATH,
|
|
8
8
|
readCronTasks
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C6MI2ASN.js";
|
|
10
10
|
import "./chunk-OMX7CUOE.js";
|
|
11
11
|
import {
|
|
12
12
|
BaseDeclarativeTool,
|
|
13
13
|
BaseToolInvocation,
|
|
14
14
|
ToolDisplayNames,
|
|
15
15
|
ToolNames
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-GOMVJKBL.js";
|
|
17
|
+
import "./chunk-LTN3VYMZ.js";
|
|
18
|
+
import "./chunk-WE6TNQJU.js";
|
|
19
19
|
import "./chunk-Z2Z3GUXZ.js";
|
|
20
20
|
import {
|
|
21
21
|
init_esbuild_shims
|
|
@@ -26,6 +26,17 @@ import {
|
|
|
26
26
|
|
|
27
27
|
// packages/core/src/tools/cron-list.ts
|
|
28
28
|
init_esbuild_shims();
|
|
29
|
+
function truncatePrompt(prompt) {
|
|
30
|
+
return prompt.length > 60 ? prompt.slice(0, 57) + "..." : prompt;
|
|
31
|
+
}
|
|
32
|
+
__name(truncatePrompt, "truncatePrompt");
|
|
33
|
+
function displaySchedule(cron, fireAtMs) {
|
|
34
|
+
if (cron === "@wakeup" && fireAtMs !== void 0) {
|
|
35
|
+
return `wakeup at ${new Date(fireAtMs).toISOString()}`;
|
|
36
|
+
}
|
|
37
|
+
return humanReadableCron(cron);
|
|
38
|
+
}
|
|
39
|
+
__name(displaySchedule, "displaySchedule");
|
|
29
40
|
var CronListInvocation = class extends BaseToolInvocation {
|
|
30
41
|
constructor(config, params) {
|
|
31
42
|
super(params);
|
|
@@ -63,21 +74,24 @@ var CronListInvocation = class extends BaseToolInvocation {
|
|
|
63
74
|
cron: job.cronExpr,
|
|
64
75
|
prompt: job.prompt,
|
|
65
76
|
recurring: job.recurring,
|
|
66
|
-
durable: false
|
|
77
|
+
durable: false,
|
|
78
|
+
fireAtMs: job.fireAtMs
|
|
67
79
|
}))
|
|
68
80
|
];
|
|
69
81
|
if (jobs.length === 0) {
|
|
70
|
-
const result = "No active cron jobs.";
|
|
82
|
+
const result = "No active cron jobs or loop wakeups.";
|
|
71
83
|
return { llmContent: result, returnDisplay: result };
|
|
72
84
|
}
|
|
73
85
|
const llmLines = jobs.map((job) => {
|
|
74
86
|
const type = job.recurring ? "recurring" : "one-shot";
|
|
75
87
|
const durability = job.durable ? "durable" : "session-only";
|
|
76
|
-
|
|
88
|
+
const schedule = job.cron === "@wakeup" ? displaySchedule(job.cron, job.fireAtMs) : job.cron;
|
|
89
|
+
const prompt = job.cron === "@wakeup" ? truncatePrompt(job.prompt) : job.prompt;
|
|
90
|
+
return `${job.id} \u2014 ${schedule} (${type}) [${durability}]: ${prompt}`;
|
|
77
91
|
});
|
|
78
92
|
const llmContent = llmLines.join("\n");
|
|
79
93
|
const displayLines = jobs.map(
|
|
80
|
-
(job) => `${job.id} ${
|
|
94
|
+
(job) => `${job.id} ${displaySchedule(job.cron, job.fireAtMs)} [${job.durable ? "durable" : "session-only"}]`
|
|
81
95
|
);
|
|
82
96
|
const returnDisplay = displayLines.join("\n");
|
|
83
97
|
return { llmContent, returnDisplay };
|
|
@@ -88,7 +102,7 @@ var CronListTool = class _CronListTool extends BaseDeclarativeTool {
|
|
|
88
102
|
super(
|
|
89
103
|
_CronListTool.Name,
|
|
90
104
|
ToolDisplayNames.CRON_LIST,
|
|
91
|
-
`List all cron jobs scheduled via CronCreate
|
|
105
|
+
`List all cron jobs scheduled via CronCreate (session-only, or durable under ${CRON_TASKS_DISPLAY_PATH}) and pending loop wakeups scheduled via LoopWakeup (always session-only).`,
|
|
92
106
|
"other" /* Other */,
|
|
93
107
|
{
|
|
94
108
|
type: "object",
|
|
@@ -325,9 +325,39 @@ var de_default = {
|
|
|
325
325
|
"Auto Edit": "Automatisch bearbeiten",
|
|
326
326
|
YOLO: "YOLO",
|
|
327
327
|
"toggle vim mode on/off": "Vim-Modus ein-/ausschalten",
|
|
328
|
-
"check session stats. Usage: /stats [model|tools]": "Sitzungsstatistiken pr\xFCfen. Verwendung: /stats [model|tools]",
|
|
329
328
|
"Show model-specific usage statistics.": "Modellspezifische Nutzungsstatistiken anzeigen.",
|
|
330
329
|
"Show tool-specific usage statistics.": "Werkzeugspezifische Nutzungsstatistiken anzeigen.",
|
|
330
|
+
"Show daily token usage statistics.": "T\xE4gliche Token-Nutzungsstatistiken anzeigen.",
|
|
331
|
+
"Show monthly token usage statistics.": "Monatliche Token-Nutzungsstatistiken anzeigen.",
|
|
332
|
+
"Export token usage statistics to CSV or JSON.": "Token-Nutzungsstatistiken als CSV oder JSON exportieren.",
|
|
333
|
+
"No usage data.": "Keine Nutzungsdaten.",
|
|
334
|
+
"{{label}}: {{tokens}} tokens ({{requests}} requests)": "{{label}}: {{tokens}} Tokens ({{requests}} Anfragen)",
|
|
335
|
+
"Daily token usage for {{value}}": "T\xE4gliche Token-Nutzung f\xFCr {{value}}",
|
|
336
|
+
"Monthly token usage for {{value}}": "Monatliche Token-Nutzung f\xFCr {{value}}",
|
|
337
|
+
"Total: {{tokens}} tokens": "Gesamt: {{tokens}} Tokens",
|
|
338
|
+
"Requests: {{requests}}": "Anfragen: {{requests}}",
|
|
339
|
+
"Breakdown:": "Aufschl\xFCsselung:",
|
|
340
|
+
"Input: {{tokens}}": "Eingabe: {{tokens}}",
|
|
341
|
+
"Output: {{tokens}}": "Ausgabe: {{tokens}}",
|
|
342
|
+
"Cached (included in Input): {{tokens}}": "Cache (in Eingabe enthalten): {{tokens}}",
|
|
343
|
+
"Thoughts: {{tokens}}": "Gedanken: {{tokens}}",
|
|
344
|
+
"By model:": "Nach Modell:",
|
|
345
|
+
"By auth type:": "Nach Authentifizierungstyp:",
|
|
346
|
+
"By model/auth type:": "Nach Modell/Authentifizierungstyp:",
|
|
347
|
+
"By source:": "Nach Quelle:",
|
|
348
|
+
"Failed to load token usage stats: {{error}}": "Token-Nutzungsstatistiken konnten nicht geladen werden: {{error}}",
|
|
349
|
+
"Expected --format csv or --format json.": "--format csv oder --format json erwartet.",
|
|
350
|
+
"Expected a file path after --output.": "Nach --output wird ein Dateipfad erwartet.",
|
|
351
|
+
"Unexpected argument: {{argument}}": "Unerwartetes Argument: {{argument}}",
|
|
352
|
+
"Usage: /stats export <daily|monthly> [YYYY-MM-DD|YYYY-MM] [--format csv|json] [--output path]": "Verwendung: /stats export <daily|monthly> [YYYY-MM-DD|YYYY-MM] [--format csv|json] [--output path]",
|
|
353
|
+
"Token usage export path must be within the project working directory.": "Der Exportpfad f\xFCr die Token-Nutzung muss im Arbeitsverzeichnis des Projekts liegen.",
|
|
354
|
+
"Export target does not exist: {{path}}": "Exportziel existiert nicht: {{path}}",
|
|
355
|
+
"Cannot resolve export path within the working directory.": "Der Exportpfad kann nicht innerhalb des Arbeitsverzeichnisses aufgel\xF6st werden.",
|
|
356
|
+
"Could not create a temporary export file.": "Tempor\xE4re Exportdatei konnte nicht erstellt werden.",
|
|
357
|
+
"Token usage exported to {{format}}: {{path}}": "Token-Nutzung nach {{format}} exportiert: {{path}}",
|
|
358
|
+
"Failed to export token usage stats: {{error}}": "Token-Nutzungsstatistiken konnten nicht exportiert werden: {{error}}",
|
|
359
|
+
"Unclosed quote in arguments.": "Nicht geschlossenes Anf\xFChrungszeichen in Argumenten.",
|
|
360
|
+
"Note: generation timing (TTFT/TPS) belongs to generation metrics.": "Hinweis: Generierungszeiten (TTFT/TPS) geh\xF6ren zu den Generierungsmetriken.",
|
|
331
361
|
"exit the cli": "CLI beenden",
|
|
332
362
|
"Manage workspace directories": "Arbeitsbereichsverzeichnisse verwalten",
|
|
333
363
|
"Add directories to the workspace. Use comma to separate multiple paths": "Verzeichnisse zum Arbeitsbereich hinzuf\xFCgen. Komma zum Trennen mehrerer Pfade verwenden",
|
|
@@ -1473,6 +1503,16 @@ var de_default = {
|
|
|
1473
1503
|
"Metadata write warning": "Warnung beim Schreiben der Metadaten",
|
|
1474
1504
|
"Subsequent dreams may be skipped as locked until the next session's staleness sweep cleans the file.": "Weitere Dream-L\xE4ufe k\xF6nnen als gesperrt \xFCbersprungen werden, bis der n\xE4chste Stale-Sweep der Sitzung die Datei bereinigt.",
|
|
1475
1505
|
"The scheduler gate did not see this dream's timestamp; the next dream cycle may re-fire sooner than usual.": "Das Scheduler-Gate hat den Zeitstempel dieses Dream-Laufs nicht gesehen; der n\xE4chste Dream-Zyklus kann fr\xFCher als \xFCblich erneut starten.",
|
|
1506
|
+
// === History collapse/expand commands ===
|
|
1507
|
+
"Set history to collapse by default when resuming a session": "Set history to collapse by default when resuming a session",
|
|
1508
|
+
"Set history to expand by default when resuming a session": "Set history to expand by default when resuming a session",
|
|
1509
|
+
"Expand the currently collapsed history transcript": "Expand the currently collapsed history transcript",
|
|
1510
|
+
"Control history display preferences and visibility": "Control history display preferences and visibility",
|
|
1511
|
+
"History will be collapsed by default for future resumed sessions.": "History will be collapsed by default for future resumed sessions.",
|
|
1512
|
+
"History will be expanded by default for future resumed sessions.": "History will be expanded by default for future resumed sessions.",
|
|
1513
|
+
"History is already expanded in this session.": "History is already expanded in this session.",
|
|
1514
|
+
"Usage: /history collapse-on-resume|expand-on-resume|expand-now": "Usage: /history collapse-on-resume|expand-on-resume|expand-now",
|
|
1515
|
+
"History collapsed: {{n}} messages hidden. Use /history expand-now to show.": "Geschichte eingeklappt: {{n}} Nachrichten ausgeblendet. Verwenden Sie /history expand-now zum Anzeigen.",
|
|
1476
1516
|
// === Same-as-English optimization ===
|
|
1477
1517
|
"Agents:": "Agenten:",
|
|
1478
1518
|
Prompt: "Eingabe",
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
sendMessage,
|
|
12
12
|
sendTyping,
|
|
13
13
|
uploadToCdn
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Z7XXFPGP.js";
|
|
15
15
|
import {
|
|
16
16
|
ChannelBase
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JXQ23SNT.js";
|
|
18
18
|
import "./chunk-UFC57OYT.js";
|
|
19
19
|
import "./chunk-K5PGHDBN.js";
|
|
20
20
|
import {
|
|
@@ -252,7 +252,7 @@ __name(computeMd5, "computeMd5");
|
|
|
252
252
|
|
|
253
253
|
// packages/channels/weixin/dist/send.js
|
|
254
254
|
function markdownToPlainText(text) {
|
|
255
|
-
return text.replace(/```[\s\S]*?\n([\s\S]*?)```/g, "$1").replace(/`([^`]+)`/g, "$1").replace(/\*\*\*(.+?)\*\*\*/g, "$1").replace(/\*\*(.+?)\*\*/g, "$1").replace(/\*(.+?)\*/g, "$1").replace(/___(.+?)___/g, "$1").replace(/__(.+?)__/g, "$1").replace(/_(.+?)_/g, "$1").replace(/~~(.+?)~~/g, "$1").replace(/^#{1,6}\s+/gm, "").replace(
|
|
255
|
+
return text.replace(/```[\s\S]*?\n([\s\S]*?)```/g, "$1").replace(/`([^`]+)`/g, "$1").replace(/\*\*\*(.+?)\*\*\*/g, "$1").replace(/\*\*(.+?)\*\*/g, "$1").replace(/\*(.+?)\*/g, "$1").replace(/___(.+?)___/g, "$1").replace(/__(.+?)__/g, "$1").replace(/_(.+?)_/g, "$1").replace(/~~(.+?)~~/g, "$1").replace(/^#{1,6}\s+/gm, "").replace(/!\[([^\]]*)\]\([^)]+\)/g, "[$1]").replace(/\[([^\]]+)\]\(([^)]+)\)/g, "$1 ($2)").replace(/^>\s+/gm, "").replace(/^[-*_]{3,}$/gm, "---").replace(/^[\s]*[-*+]\s+/gm, "- ").replace(/^[\s]*(\d+)\.\s+/gm, "$1. ").replace(/\n{3,}/g, "\n\n").trim();
|
|
256
256
|
}
|
|
257
257
|
__name(markdownToPlainText, "markdownToPlainText");
|
|
258
258
|
var ALLOWED_EXTS = /* @__PURE__ */ new Set([".png", ".jpg", ".jpeg", ".gif", ".webp"]);
|
|
@@ -274,6 +274,17 @@ function isInsideAllowedDir(realPath, allowedDir) {
|
|
|
274
274
|
return relative === "" || !relative.startsWith("..") && !pathImpl.isAbsolute(relative);
|
|
275
275
|
}
|
|
276
276
|
__name(isInsideAllowedDir, "isInsideAllowedDir");
|
|
277
|
+
function trimDisplayDir(dir) {
|
|
278
|
+
if (/^[a-zA-Z]:[\\/]?$/.test(dir))
|
|
279
|
+
return dir;
|
|
280
|
+
const trimmed = dir.replace(/[\\/]+$/, "");
|
|
281
|
+
return trimmed || dir;
|
|
282
|
+
}
|
|
283
|
+
__name(trimDisplayDir, "trimDisplayDir");
|
|
284
|
+
function formatAllowedImageDirs(dirs) {
|
|
285
|
+
return Array.from(new Set(dirs.map(trimDisplayDir))).join(", ");
|
|
286
|
+
}
|
|
287
|
+
__name(formatAllowedImageDirs, "formatAllowedImageDirs");
|
|
277
288
|
function detectImageMime(data) {
|
|
278
289
|
if (data[0] === 137 && data[1] === 80 && data[2] === 78 && data[3] === 71) {
|
|
279
290
|
return "image/png";
|
|
@@ -281,7 +292,7 @@ function detectImageMime(data) {
|
|
|
281
292
|
if (data[0] === 71 && data[1] === 73 && data[2] === 70) {
|
|
282
293
|
return "image/gif";
|
|
283
294
|
}
|
|
284
|
-
if (data[0] === 82 && data[1] === 73 && data[2] === 70 && data[3] === 70) {
|
|
295
|
+
if (data[0] === 82 && data[1] === 73 && data[2] === 70 && data[3] === 70 && data[8] === 87 && data[9] === 69 && data[10] === 66 && data[11] === 80) {
|
|
285
296
|
return "image/webp";
|
|
286
297
|
}
|
|
287
298
|
if (data[0] === 255 && data[1] === 216 && data[2] === 255) {
|
|
@@ -318,7 +329,7 @@ function validateImagePath(imagePath, workspaceDirs = []) {
|
|
|
318
329
|
...workspaceDirs.map((d) => realpathSync(resolve(d)) + "/")
|
|
319
330
|
];
|
|
320
331
|
if (!ALLOWED_DIRS.some((dir) => isInsideAllowedDir(real, dir))) {
|
|
321
|
-
throw new Error(`Image path outside allowed directories: ${real}`);
|
|
332
|
+
throw new Error(`Image path outside allowed directories: ${real}. Allowed directories: ${formatAllowedImageDirs(ALLOWED_DIRS)}`);
|
|
322
333
|
}
|
|
323
334
|
let fd;
|
|
324
335
|
try {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import "./chunk-7RYW5LQV.js";
|
|
9
9
|
import {
|
|
10
10
|
ChannelBase
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JXQ23SNT.js";
|
|
12
12
|
import "./chunk-UFC57OYT.js";
|
|
13
13
|
import "./chunk-K5PGHDBN.js";
|
|
14
14
|
import "./chunk-UWCTAVOD.js";
|
|
@@ -4360,17 +4360,58 @@ function splitChunks(text) {
|
|
|
4360
4360
|
let buf = "";
|
|
4361
4361
|
const lines = text.split("\n");
|
|
4362
4362
|
let inCode = false;
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4363
|
+
const flush = /* @__PURE__ */ __name((keepCodeOpen = inCode) => {
|
|
4364
|
+
if (keepCodeOpen) {
|
|
4365
|
+
buf += "\n```";
|
|
4366
|
+
}
|
|
4367
|
+
chunks.push(buf);
|
|
4368
|
+
buf = keepCodeOpen ? "```" : "";
|
|
4369
|
+
}, "flush");
|
|
4370
|
+
const appendLine = /* @__PURE__ */ __name((line, needsLineBreak, closesCodeFence, leavesCodeFenceOpen) => {
|
|
4371
|
+
let remaining = line;
|
|
4372
|
+
let prefixPending = needsLineBreak;
|
|
4373
|
+
let lineOpenedFenceInBuffer = false;
|
|
4374
|
+
while (remaining.length > 0 || prefixPending) {
|
|
4375
|
+
const prefix = prefixPending ? "\n" : "";
|
|
4376
|
+
const fitsAsFinalPiece = remaining.length <= CHUNK_LIMIT - buf.length - prefix.length;
|
|
4377
|
+
const closeFenceOverhead = inCode && !(closesCodeFence && fitsAsFinalPiece) || !inCode && leavesCodeFenceOpen ? "\n```".length : 0;
|
|
4378
|
+
const available = CHUNK_LIMIT - closeFenceOverhead - buf.length - prefix.length;
|
|
4379
|
+
if (available <= 0) {
|
|
4380
|
+
flush(inCode || lineOpenedFenceInBuffer);
|
|
4381
|
+
continue;
|
|
4382
|
+
}
|
|
4383
|
+
let pieceLength = Math.min(available, remaining.length);
|
|
4384
|
+
if (pieceLength < remaining.length) {
|
|
4385
|
+
for (let fenceStart = Math.max(0, pieceLength - 2); fenceStart < pieceLength; fenceStart++) {
|
|
4386
|
+
if (remaining.slice(fenceStart, fenceStart + 3) === "```" && pieceLength < fenceStart + 3) {
|
|
4387
|
+
pieceLength = fenceStart;
|
|
4388
|
+
break;
|
|
4389
|
+
}
|
|
4390
|
+
}
|
|
4391
|
+
}
|
|
4392
|
+
if (pieceLength === 0 && remaining.length > 0) {
|
|
4393
|
+
flush(inCode || lineOpenedFenceInBuffer);
|
|
4394
|
+
continue;
|
|
4395
|
+
}
|
|
4396
|
+
const piece = remaining.slice(0, pieceLength);
|
|
4397
|
+
const appendedText = prefix + piece;
|
|
4398
|
+
buf += appendedText;
|
|
4399
|
+
remaining = remaining.slice(piece.length);
|
|
4400
|
+
prefixPending = false;
|
|
4401
|
+
lineOpenedFenceInBuffer ||= !inCode && leavesCodeFenceOpen && appendedText.includes("```");
|
|
4402
|
+
if (remaining.length > 0) {
|
|
4403
|
+
const keepCodeOpen = inCode || lineOpenedFenceInBuffer;
|
|
4404
|
+
flush(keepCodeOpen);
|
|
4405
|
+
prefixPending = keepCodeOpen;
|
|
4368
4406
|
}
|
|
4369
|
-
chunks.push(buf);
|
|
4370
|
-
buf = inCode ? "```" : "";
|
|
4371
4407
|
}
|
|
4372
|
-
|
|
4373
|
-
|
|
4408
|
+
}, "appendLine");
|
|
4409
|
+
for (let i = 0; i < lines.length; i++) {
|
|
4410
|
+
const line = lines[i] || "";
|
|
4411
|
+
const fenceCount = (line.match(/```/g) || []).length;
|
|
4412
|
+
const togglesCodeFence = fenceCount % 2 === 1;
|
|
4413
|
+
appendLine(line, i > 0, inCode && togglesCodeFence, inCode !== togglesCodeFence);
|
|
4414
|
+
if (togglesCodeFence) {
|
|
4374
4415
|
inCode = !inCode;
|
|
4375
4416
|
}
|
|
4376
4417
|
}
|
|
@@ -4572,7 +4613,7 @@ var DingtalkChannel = class extends ChannelBase {
|
|
|
4572
4613
|
* conversation ID — skip the webhook-URL fallback case.
|
|
4573
4614
|
*/
|
|
4574
4615
|
isConversationId(chatId) {
|
|
4575
|
-
return !!chatId &&
|
|
4616
|
+
return !!chatId && !/^https?:\/\//i.test(chatId);
|
|
4576
4617
|
}
|
|
4577
4618
|
onPromptStart(chatId, _sessionId, messageId) {
|
|
4578
4619
|
if (!messageId || !this.isConversationId(chatId))
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-KQIKOTQJ.js";
|
|
7
7
|
import {
|
|
8
8
|
ChannelBase
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JXQ23SNT.js";
|
|
10
10
|
import "./chunk-UFC57OYT.js";
|
|
11
11
|
import "./chunk-K5PGHDBN.js";
|
|
12
12
|
import {
|
|
@@ -9833,6 +9833,10 @@ var TelegramChannel = class extends ChannelBase {
|
|
|
9833
9833
|
}
|
|
9834
9834
|
}
|
|
9835
9835
|
disconnect() {
|
|
9836
|
+
for (const interval of this.typingIntervals.values()) {
|
|
9837
|
+
clearInterval(interval);
|
|
9838
|
+
}
|
|
9839
|
+
this.typingIntervals.clear();
|
|
9836
9840
|
this.bot.stop();
|
|
9837
9841
|
}
|
|
9838
9842
|
buildEnvelope(msg, text, entities) {
|